Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
bodrovis committed Jul 13, 2021
2 parents eb6bda5 + c51b0ed commit 9b2eb10
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 42 deletions.
3 changes: 1 addition & 2 deletions dist/interfaces/upload_file_params.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
export interface UploadFileParams {
data: string;
filename: string;
queue?: boolean;
lang_iso: string;
convert_placeholder?: boolean;
convert_placeholders?: boolean;
detect_icu_plurals?: boolean;
tags?: any[];
tag_inserted_keys?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion dist/models/translation_provider.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/models/translation_status.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ gem "minima", "~> 2.0"

# If you want to use GitHub Pages, remove the "gem "jekyll"" above and
# uncomment the line below. To upgrade, run `bundle update github-pages`.
gem "github-pages", "~> 214", group: :jekyll_plugins
gem "github-pages", "~> 215", group: :jekyll_plugins

# If you have any plugins, put them here!
group :jekyll_plugins do
Expand Down
36 changes: 22 additions & 14 deletions docs/Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (6.0.3.7)
activesupport (6.0.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
zeitwerk (~> 2.2, >= 2.2.2)
addressable (2.7.0)
addressable (2.8.0)
public_suffix (>= 2.0.2, < 5.0)
coffee-script (2.4.1)
coffee-script-source
Expand All @@ -16,8 +16,8 @@ GEM
colorator (1.1.0)
commonmarker (0.17.13)
ruby-enum (~> 0.5)
concurrent-ruby (1.1.8)
dnsruby (1.61.5)
concurrent-ruby (1.1.9)
dnsruby (1.61.7)
simpleidn (~> 0.1)
em-websocket (0.5.2)
eventmachine (>= 0.12.9)
Expand All @@ -26,20 +26,28 @@ GEM
ffi (>= 1.15.0)
eventmachine (1.2.7-x64-mingw32)
execjs (2.8.1)
faraday (1.4.1)
faraday (1.5.1)
faraday-em_http (~> 1.0)
faraday-em_synchrony (~> 1.0)
faraday-excon (~> 1.1)
faraday-httpclient (~> 1.0.1)
faraday-net_http (~> 1.0)
faraday-net_http_persistent (~> 1.1)
faraday-patron (~> 1.0)
multipart-post (>= 1.2, < 3)
ruby2_keywords (>= 0.0.4)
faraday-em_http (1.0.0)
faraday-em_synchrony (1.0.0)
faraday-excon (1.1.0)
faraday-httpclient (1.0.1)
faraday-net_http (1.0.1)
faraday-net_http_persistent (1.1.0)
ffi (1.15.0-x64-mingw32)
faraday-net_http_persistent (1.2.0)
faraday-patron (1.0.0)
ffi (1.15.3-x64-mingw32)
forwardable-extended (2.6.0)
gemoji (3.0.1)
github-pages (214)
github-pages-health-check (= 1.17.0)
github-pages (215)
github-pages-health-check (= 1.17.2)
jekyll (= 3.9.0)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
Expand Down Expand Up @@ -82,7 +90,7 @@ GEM
nokogiri (>= 1.10.4, < 2.0)
rouge (= 3.26.0)
terminal-table (~> 1.4)
github-pages-health-check (1.17.0)
github-pages-health-check (1.17.2)
addressable (~> 2.3)
dnsruby (~> 1.60)
octokit (~> 4.0)
Expand Down Expand Up @@ -215,7 +223,7 @@ GEM
jekyll-seo-tag (~> 2.1)
minitest (5.14.4)
multipart-post (2.1.1)
nokogiri (1.11.4-x64-mingw32)
nokogiri (1.11.7-x64-mingw32)
racc (~> 1.4)
octokit (4.21.0)
faraday (>= 0.9)
Expand All @@ -232,7 +240,7 @@ GEM
ruby-enum (0.9.0)
i18n
ruby2_keywords (0.0.4)
rubyzip (2.3.0)
rubyzip (2.3.2)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
Expand Down Expand Up @@ -264,7 +272,7 @@ PLATFORMS
x64-mingw32

DEPENDENCIES
github-pages (~> 214)
github-pages (~> 215)
jekyll (~> 3.9.0)
jekyll-feed (~> 0.15.1)
kramdown-parser-gfm
Expand All @@ -274,4 +282,4 @@ DEPENDENCIES
wdm (~> 0.1.0)

BUNDLED WITH
2.2.16
2.2.23
4 changes: 4 additions & 0 deletions docs/additional_info/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 6.2.2 (13-Jul-21)

* Fix `UploadFileParams` interface to comply with the API params

## 6.2.1 (18-May-21)

* Test with Node 16
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lokalise/node-api",
"version": "6.2.1",
"version": "6.2.2",
"description": "Official Lokalise API 2.0 Node.js client",
"license": "BSD-3-Clause",
"repository": {
Expand All @@ -26,7 +26,7 @@
"@types/node": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"acorn": "^8.2.4",
"acorn": "^8.4.1",
"chai": "^4.2.0",
"codecov": "^3.8.2",
"dotenv": "^10.0.0",
Expand All @@ -38,7 +38,7 @@
"mocha": "^9.0.0",
"mocha-cassettes": "1.2.3",
"nyc": "^15.1",
"prettier": "^2.3.0",
"prettier": "^2.3.2",
"source-map-support": "^0.5.19",
"ts-node": "^10.0.0",
"typescript": "^4.2.4"
Expand Down
3 changes: 1 addition & 2 deletions src/interfaces/upload_file_params.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
export interface UploadFileParams {
data: string;
filename: string;
queue?: boolean;
lang_iso: string;
convert_placeholder?: boolean;
convert_placeholders?: boolean;
detect_icu_plurals?: boolean;
tags?: any[];
tag_inserted_keys?: boolean;
Expand Down
3 changes: 2 additions & 1 deletion src/models/translation_provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { TranslationProvider as TranslationProviderInterface } from "../interfac

export class TranslationProvider
extends BaseModel
implements TranslationProviderInterface {
implements TranslationProviderInterface
{
public provider_id: number;
public name: string;
public slug: string;
Expand Down
3 changes: 2 additions & 1 deletion src/models/translation_status.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ import { TranslationStatus as TranslationStatusInterface } from "../interfaces/t

export class TranslationStatus
extends BaseModel
implements TranslationStatusInterface {
implements TranslationStatusInterface
{
public status_id: number;
public title: string;
public color: string;
Expand Down
7 changes: 3 additions & 4 deletions test/translation_statuses/translation_statuses.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,10 @@ describe("TranslationStatuses", function () {

cassette
.createTest("available_colors", async () => {
const colors_data = await lokaliseApi.translationStatuses.available_colors(
{
const colors_data =
await lokaliseApi.translationStatuses.available_colors({
project_id: project_id,
}
);
});
expect(colors_data.colors).to.include("#f2d600");
})
.register(this);
Expand Down
11 changes: 6 additions & 5 deletions test/user_groups/user_groups.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,12 @@ describe("UserGroups", function () {

cassette
.createTest("remove_project_from_group", async () => {
const user_group = await lokaliseApi.userGroups.remove_projects_from_group(
team_id,
new_group_id,
[project_id]
);
const user_group =
await lokaliseApi.userGroups.remove_projects_from_group(
team_id,
new_group_id,
[project_id]
);
expect(user_group.group_id).to.eq(new_group_id);
expect(user_group.projects).not.to.include(project_id);
})
Expand Down

0 comments on commit 9b2eb10

Please sign in to comment.