deepl-node
Advanced tools
Comparing version 1.7.2 to 1.7.3
@@ -8,2 +8,10 @@ # Changelog | ||
## [1.7.3] - 2023-01-04 | ||
### Changed | ||
* CI: suppress `npm audit` warnings for dev dependencies, due to CVE in | ||
`eslint-plugin-import > tsconfig-paths > json5`. | ||
### Fixed | ||
* Support `axios` v1.2.1, that resolves the issue in v1.2.0. | ||
## [1.7.2] - 2022-11-24 | ||
@@ -141,2 +149,3 @@ ### Fixed | ||
[1.7.3]: https://github.com/DeepLcom/deepl-node/compare/v1.7.2...v1.7.3 | ||
[1.7.2]: https://github.com/DeepLcom/deepl-node/compare/v1.7.1...v1.7.2 | ||
@@ -143,0 +152,0 @@ [1.7.1]: https://github.com/DeepLcom/deepl-node/compare/v1.7.0...v1.7.1 |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { AxiosRequestConfig } from 'axios'; | ||
@@ -6,3 +8,3 @@ import { URLSearchParams } from 'url'; | ||
import { ProxyConfig } from './types'; | ||
declare type HttpMethod = 'GET' | 'DELETE' | 'POST'; | ||
type HttpMethod = 'GET' | 'DELETE' | 'POST'; | ||
/** | ||
@@ -9,0 +11,0 @@ * Options for sending HTTP requests. |
@@ -80,2 +80,5 @@ "use strict"; | ||
axiosRequestConfig.data = form; | ||
if (axiosRequestConfig.headers === undefined) { | ||
axiosRequestConfig.headers = {}; | ||
} | ||
Object.assign(axiosRequestConfig.headers, form.getHeaders()); | ||
@@ -82,0 +85,0 @@ } |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { GlossaryEntries } from './glossaryEntries'; | ||
@@ -84,3 +86,3 @@ import { DocumentTranslateOptions, GlossaryId, GlossaryInfo, LanguageCode, NonRegionalLanguageCode, SourceGlossaryLanguageCode, SourceLanguageCode, TargetGlossaryLanguageCode, TargetLanguageCode, TranslateTextOptions, TranslatorOptions } from './types'; | ||
} | ||
export declare type DocumentStatusCode = 'queued' | 'translating' | 'error' | 'done'; | ||
export type DocumentStatusCode = 'queued' | 'translating' | 'error' | 'done'; | ||
/** | ||
@@ -87,0 +89,0 @@ * Status of a document translation request. |
@@ -298,3 +298,3 @@ "use strict"; | ||
Authorization: `DeepL-Auth-Key ${authKey}`, | ||
'User-Agent': 'deepl-node/1.7.2', | ||
'User-Agent': 'deepl-node/1.7.3', | ||
...((_a = options === null || options === void 0 ? void 0 : options.headers) !== null && _a !== void 0 ? _a : {}), | ||
@@ -301,0 +301,0 @@ }; |
@@ -44,7 +44,7 @@ /** | ||
} | ||
export declare type Formality = 'less' | 'more' | 'default' | 'prefer_less' | 'prefer_more'; | ||
export declare type SentenceSplittingMode = 'off' | 'on' | 'nonewlines' | 'default'; | ||
export declare type TagHandlingMode = 'html' | 'xml'; | ||
export declare type GlossaryId = string; | ||
export declare type TagList = string | string[]; | ||
export type Formality = 'less' | 'more' | 'default' | 'prefer_less' | 'prefer_more'; | ||
export type SentenceSplittingMode = 'off' | 'on' | 'nonewlines' | 'default'; | ||
export type TagHandlingMode = 'html' | 'xml'; | ||
export type GlossaryId = string; | ||
export type TagList = string | string[]; | ||
/** | ||
@@ -117,3 +117,3 @@ * Information about a glossary, excluding the entry list. | ||
*/ | ||
declare type CommonLanguageCode = 'bg' | 'cs' | 'da' | 'de' | 'el' | 'es' | 'et' | 'fi' | 'fr' | 'hu' | 'id' | 'it' | 'ja' | 'lt' | 'lv' | 'nl' | 'pl' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'tr' | 'uk' | 'zh'; | ||
type CommonLanguageCode = 'bg' | 'cs' | 'da' | 'de' | 'el' | 'es' | 'et' | 'fi' | 'fr' | 'hu' | 'id' | 'it' | 'ja' | 'lt' | 'lv' | 'nl' | 'pl' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'tr' | 'uk' | 'zh'; | ||
/** | ||
@@ -124,3 +124,3 @@ * Language codes that may be used as a source language. | ||
*/ | ||
export declare type SourceLanguageCode = CommonLanguageCode | 'en' | 'pt'; | ||
export type SourceLanguageCode = CommonLanguageCode | 'en' | 'pt'; | ||
/** | ||
@@ -131,3 +131,3 @@ * Language codes that may be used as a target language. | ||
*/ | ||
export declare type TargetLanguageCode = CommonLanguageCode | 'en-GB' | 'en-US' | 'pt-BR' | 'pt-PT'; | ||
export type TargetLanguageCode = CommonLanguageCode | 'en-GB' | 'en-US' | 'pt-BR' | 'pt-PT'; | ||
/** | ||
@@ -138,3 +138,3 @@ * All language codes, including source-only and target-only language codes. | ||
*/ | ||
export declare type LanguageCode = SourceLanguageCode | TargetLanguageCode; | ||
export type LanguageCode = SourceLanguageCode | TargetLanguageCode; | ||
/** | ||
@@ -144,3 +144,3 @@ * Language codes that do not include a regional variant, for example 'en' is included, but 'en-US' | ||
*/ | ||
export declare type NonRegionalLanguageCode = CommonLanguageCode | 'en' | 'pt'; | ||
export type NonRegionalLanguageCode = CommonLanguageCode | 'en' | 'pt'; | ||
/** | ||
@@ -151,3 +151,3 @@ * Language codes that may be used as a source language for glossaries. | ||
*/ | ||
export declare type SourceGlossaryLanguageCode = 'de' | 'en' | 'es' | 'fr' | 'ja'; | ||
export type SourceGlossaryLanguageCode = 'de' | 'en' | 'es' | 'fr' | 'ja'; | ||
/** | ||
@@ -158,3 +158,3 @@ * Language codes that may be used as a target language for glossaries. | ||
*/ | ||
export declare type TargetGlossaryLanguageCode = SourceGlossaryLanguageCode; | ||
export type TargetGlossaryLanguageCode = SourceGlossaryLanguageCode; | ||
export {}; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
export declare function logDebug(message: string, args?: object): void; | ||
@@ -3,0 +4,0 @@ export declare function logInfo(message: string, args?: object): void; |
{ | ||
"name": "deepl-node", | ||
"description": "deepl-node is the official DeepL Node.js client library", | ||
"version": "1.7.2", | ||
"version": "1.7.3", | ||
"author": "DeepL SE <open-source@deepl.com> (https://www.deepl.com)", | ||
@@ -23,3 +23,3 @@ "license": "MIT", | ||
"@types/node": ">=12.0", | ||
"axios": ">=0.21.2 <=1.1.3", | ||
"axios": ">=0.21.2 <1.2.0 || >=1.2.1", | ||
"form-data": "^3.0.0", | ||
@@ -26,0 +26,0 @@ "loglevel": ">=1.6.2" |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
115420
1928
+ Addedaxios@1.7.7(transitive)
- Removedaxios@1.1.3(transitive)