@yxw007/translate 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // translate v0.0.10 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
1
+ // translate v0.0.11 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- // translate v0.0.10 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
1
+ // translate v0.0.11 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@aws-sdk/client-translate'), require('deepl-node')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', '@aws-sdk/client-translate', 'deepl-node'], factory) :
package/dist/index.d.ts CHANGED
@@ -30,7 +30,6 @@ declare const engines: {
30
30
  readonly baidu: typeof baidu;
31
31
  readonly deepl: typeof deepl;
32
32
  };
33
- type Engines = keyof typeof engines;
34
33
 
35
34
  declare const _default$6: {
36
35
  readonly Afrikaans: "af";
@@ -2237,6 +2236,7 @@ declare function getLanguage(engine: Engines): {
2237
2236
  };
2238
2237
  };
2239
2238
 
2239
+ type Engines = keyof typeof engines;
2240
2240
  type TranslateOptions<T extends Engines> = {
2241
2241
  from?: FromLanguage<T>;
2242
2242
  to: ToLanguage<T>;
@@ -2291,5 +2291,5 @@ declare const _default: {
2291
2291
  getLanguage: typeof getLanguage;
2292
2292
  };
2293
2293
 
2294
- export { type BaseEngineOption, Cache, type CacheRecord, type Engine, type EngineTranslateOptions, type FromLanguage, type ToLanguage, type TranslateOptions, type ValuesOf, _default as default, engines, getLanguage, translator };
2294
+ export { type BaseEngineOption, Cache, type CacheRecord, type Engine, type EngineTranslateOptions, type Engines, type FromLanguage, type ToLanguage, type TranslateOptions, type ValuesOf, _default as default, engines, getLanguage, translator };
2295
2295
  //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,4 @@
1
- // translate v0.0.10 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
1
+ // translate v0.0.11 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
2
2
  'use strict';
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
@@ -1,4 +1,4 @@
1
- // translate v0.0.10 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
1
+ // translate v0.0.11 Copyright (c) 2024 Potter<aa4790139@gmail.com> and contributors
2
2
  import { TranslateClient, TranslateTextCommand } from '@aws-sdk/client-translate';
3
3
  import deeplEngine from 'deepl-node';
4
4
 
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yxw007/translate",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "A simple library that supports multiple translation engines",
5
5
  "author": "Potter<aa4790139@gmail.com>",
6
6
  "homepage": "https://github.com/yxw007/translate",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yxw007/translate",
3
- "version": "0.0.10",
3
+ "version": "0.0.11",
4
4
  "description": "A simple library that supports multiple translation engines",
5
5
  "author": "Potter<aa4790139@gmail.com>",
6
6
  "homepage": "https://github.com/yxw007/translate",