Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

deepl-node

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepl-node - npm Package Compare versions

Comparing version 1.2.2 to 1.3.1

19

CHANGELOG.md

@@ -8,2 +8,19 @@ # Changelog

## [1.3.1] - 2022-05-18
Replaces version 1.3.0 which was broken due an incorrect package version.
### Added
* New languages available: Indonesian (`'id'`) and Turkish (`'tr'`). Add
language code constants and tests.
Note: older library versions also support the new languages, this update only
adds new code constants.
### Changed
* Change return type of `nonRegionalLanguageCode()` to newly-added type
`NonRegionalLanguageCode`.
## [1.3.0] - 2022-05-18
Due to an incorrect package version, this version was removed.
## [1.2.2] - 2022-04-20

@@ -67,2 +84,4 @@ ### Added

[1.3.1]: https://github.com/DeepLcom/deepl-node/compare/v1.2.2...v1.3.1
[1.3.0]: https://github.com/DeepLcom/deepl-node/releases/tag/v1.3.0
[1.2.2]: https://github.com/DeepLcom/deepl-node/compare/v1.2.1...v1.2.2

@@ -69,0 +88,0 @@ [1.2.1]: https://github.com/DeepLcom/deepl-node/compare/v1.2.0...v1.2.1

4

dist/index.d.ts
/// <reference types="node" />
import { GlossaryEntries } from './glossaryEntries';
import { DocumentTranslateOptions, GlossaryId, GlossaryInfo, LanguageCode, SourceGlossaryLanguageCode, SourceLanguageCode, TargetGlossaryLanguageCode, TargetLanguageCode, TranslateTextOptions, TranslatorOptions } from './types';
import { DocumentTranslateOptions, GlossaryId, GlossaryInfo, LanguageCode, NonRegionalLanguageCode, SourceGlossaryLanguageCode, SourceLanguageCode, TargetGlossaryLanguageCode, TargetLanguageCode, TranslateTextOptions, TranslatorOptions } from './types';
import * as fs from 'fs';

@@ -131,3 +131,3 @@ export * from './errors';

*/
export declare function nonRegionalLanguageCode(langCode: string): LanguageCode;
export declare function nonRegionalLanguageCode(langCode: string): NonRegionalLanguageCode;
/**

@@ -134,0 +134,0 @@ * Holds the result of a text translation request.

@@ -299,3 +299,3 @@ "use strict";

Authorization: `DeepL-Auth-Key ${authKey}`,
'User-Agent': 'deepl-node/1.2.2',
'User-Agent': 'deepl-node/1.3.1',
...((_a = options === null || options === void 0 ? void 0 : options.headers) !== null && _a !== void 0 ? _a : {}),

@@ -302,0 +302,0 @@ };

@@ -99,3 +99,3 @@ /**

*/
declare type CommonLanguageCode = 'bg' | 'cs' | 'da' | 'de' | 'el' | 'es' | 'et' | 'fi' | 'fr' | 'hu' | 'it' | 'ja' | 'lt' | 'lv' | 'nl' | 'pl' | 'ro' | 'ru' | 'sk' | 'sl' | 'sv' | 'zh';
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' | 'zh';
/**

@@ -120,2 +120,7 @@ * Language codes that may be used as a source language.

/**
* Language codes that do not include a regional variant, for example 'en' is included, but 'en-US'
* is not.
*/
export declare type NonRegionalLanguageCode = CommonLanguageCode | 'en' | 'pt';
/**
* Language codes that may be used as a source language for glossaries.

@@ -122,0 +127,0 @@ * Note: although the language code type definitions are case-sensitive, this package and the DeepL

{
"name": "deepl-node",
"description": "deepl-node is the official DeepL Node.js client library",
"version": "1.2.2",
"version": "1.3.1",
"author": "DeepL SE <open-source@deepl.com> (https://www.deepl.com)",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -23,4 +23,4 @@ # deepl-node

To use the package, you'll need an API authentication key. To get a key,
[please create an account here][create-account]. You can translate up to 500,000
characters/month for free.
[please create an account here][create-account]. With a DeepL API Free account
you can translate up to 500,000 characters/month for free.

@@ -27,0 +27,0 @@ ## Installation

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc