@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.
- package/dist/browser/index.cjs +1 -1
- package/dist/browser/index.umd.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/node/index.cjs +1 -1
- package/dist/node/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/browser/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// translate v0.0.
|
|
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
|
package/dist/node/index.cjs
CHANGED
package/dist/node/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// translate v0.0.
|
|
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
package/package.json
CHANGED