@lokalise/node-api
Advanced tools
Comparing version 5.2.2 to 5.3.0
@@ -17,2 +17,3 @@ export interface UploadFileParams { | ||
apply_tm?: boolean; | ||
use_automations?: boolean; | ||
hidden_from_contributors?: boolean; | ||
@@ -19,0 +20,0 @@ cleanup_mode?: boolean; |
# Changelog | ||
## 5.3.0 (24-Nov-20) | ||
* Add `use_automations` flag to `UploadFileParams` (default is `true`) | ||
* Update dependencies | ||
* Test against Node 15 | ||
## 5.2.2 (09-Nov-20) | ||
@@ -4,0 +10,0 @@ |
@@ -295,2 +295,3 @@ declare module "@lokalise/node-api" { | ||
apply_tm?: boolean; | ||
use_automations?: boolean; | ||
hidden_from_contributors?: boolean; | ||
@@ -297,0 +298,0 @@ cleanup_mode?: boolean; |
{ | ||
"name": "@lokalise/node-api", | ||
"version": "5.2.2", | ||
"version": "5.3.0", | ||
"description": "Official Lokalise API 2.0 Node.js client", | ||
@@ -25,6 +25,6 @@ "license": "BSD-3-Clause", | ||
"@types/chai": "^4.2.14", | ||
"@types/mocha": "^8.0.3", | ||
"@types/node": "^14.14.7", | ||
"@typescript-eslint/eslint-plugin": "^4.7.0", | ||
"@typescript-eslint/parser": "^4.7.0", | ||
"@types/mocha": "^8.0.4", | ||
"@types/node": "^14.14.9", | ||
"@typescript-eslint/eslint-plugin": "^4.8.2", | ||
"@typescript-eslint/parser": "^4.8.2", | ||
"acorn": "^8.0.4", | ||
@@ -34,3 +34,3 @@ "chai": "^4.2.0", | ||
"dotenv": "^8.2.0", | ||
"eslint": "^7.13.0", | ||
"eslint": "^7.14.0", | ||
"eslint-config-prettier": "^6.15.0", | ||
@@ -49,3 +49,3 @@ "eslint-plugin-node": "^11.1.0", | ||
"got": "^11.8.0", | ||
"typescript": "^4.0.5" | ||
"typescript": "^4.1.2" | ||
}, | ||
@@ -52,0 +52,0 @@ "bugs": { |
# Lokalise API v2 official Node.js client | ||
[![npm version](https://badge.fury.io/js/%40lokalise%2Fnode-api.svg)](https://badge.fury.io/js/%40lokalise%2Fnode-api) | ||
[![Build Status](https://travis-ci.org/lokalise/node-lokalise-api.svg?branch=master)](https://travis-ci.org/lokalise/node-lokalise-api) | ||
[![Build Status](https://travis-ci.com/lokalise/node-lokalise-api.svg?branch=master)](https://travis-ci.com/github/lokalise/node-lokalise-api) | ||
[![Test Coverage](https://codecov.io/gh/lokalise/node-lokalise-api/graph/badge.svg)](https://codecov.io/gh/lokalise/node-lokalise-api) | ||
@@ -6,0 +6,0 @@ ![Downloads total](https://img.shields.io/npm/dt/@lokalise/node-api) |
@@ -17,2 +17,3 @@ export interface UploadFileParams { | ||
apply_tm?: boolean; | ||
use_automations?: boolean; | ||
hidden_from_contributors?: boolean; | ||
@@ -19,0 +20,0 @@ cleanup_mode?: boolean; |
@@ -44,2 +44,18 @@ require("../setup"); | ||
cassette | ||
.createTest("upload without automations", async () => { | ||
const data = | ||
"ewogICAgImZydWl0IjogIkFwcGxlIiwKICAgICJzaXplIjogIkxhcmdlIiwKICAgICJjb2xvciI6ICJSZWQiCn0="; | ||
const process = await lokaliseApi.files.upload(project_id, { | ||
data: data, | ||
filename: "test_async.json", | ||
lang_iso: "en", | ||
use_automations: false, | ||
}); | ||
expect(process.type).to.eq("file-import"); | ||
expect(process.status).to.eq("queued"); | ||
}) | ||
.register(this); | ||
cassette | ||
.createTest("upload asynchronous re-check", async () => { | ||
@@ -46,0 +62,0 @@ const process = await lokaliseApi.queuedProcesses.get(process_id, { |
@@ -0,0 +0,0 @@ require("../setup"); |
@@ -0,0 +0,0 @@ require("../setup"); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
909054
491
5804
Updatedtypescript@^4.1.2