New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/client-translate

Package Overview
Dependencies
Maintainers
7
Versions
438
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/client-translate - npm Package Compare versions

Comparing version 3.39.0 to 3.40.0

127

dist-cjs/endpoints.js

@@ -6,17 +6,49 @@ "use strict";

const regionHash = {
"us-east-1-fips": {
hostname: "translate-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
"us-east-1": {
variants: [
{
hostname: "translate.us-east-1.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-east-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-east-2-fips": {
hostname: "translate-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
"us-east-2": {
variants: [
{
hostname: "translate.us-east-2.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-east-2.amazonaws.com",
tags: ["fips"],
},
],
},
"us-gov-west-1-fips": {
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
"us-gov-west-1": {
variants: [
{
hostname: "translate.us-gov-west-1.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-west-2-fips": {
hostname: "translate-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
"us-west-2": {
variants: [
{
hostname: "translate.us-west-2.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-west-2.amazonaws.com",
tags: ["fips"],
},
],
},

@@ -53,3 +85,20 @@ };

regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
hostname: "translate.{region}.amazonaws.com",
variants: [
{
hostname: "translate.{region}.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.{region}.amazonaws.com",
tags: ["fips"],
},
{
hostname: "translate-fips.{region}.api.aws",
tags: ["dualstack", "fips"],
},
{
hostname: "translate.{region}.api.aws",
tags: ["dualstack"],
},
],
},

@@ -59,3 +108,20 @@ "aws-cn": {

regionRegex: "^cn\\-\\w+\\-\\d+$",
hostname: "translate.{region}.amazonaws.com.cn",
variants: [
{
hostname: "translate.{region}.amazonaws.com.cn",
tags: [],
},
{
hostname: "translate-fips.{region}.amazonaws.com.cn",
tags: ["fips"],
},
{
hostname: "translate-fips.{region}.api.amazonwebservices.com.cn",
tags: ["dualstack", "fips"],
},
{
hostname: "translate.{region}.api.amazonwebservices.com.cn",
tags: ["dualstack"],
},
],
},

@@ -65,3 +131,8 @@ "aws-iso": {

regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
hostname: "translate.{region}.c2s.ic.gov",
variants: [
{
hostname: "translate.{region}.c2s.ic.gov",
tags: [],
},
],
},

@@ -71,3 +142,8 @@ "aws-iso-b": {

regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
hostname: "translate.{region}.sc2s.sgov.gov",
variants: [
{
hostname: "translate.{region}.sc2s.sgov.gov",
tags: [],
},
],
},

@@ -77,3 +153,20 @@ "aws-us-gov": {

regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
hostname: "translate.{region}.amazonaws.com",
variants: [
{
hostname: "translate.{region}.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.{region}.amazonaws.com",
tags: ["fips"],
},
{
hostname: "translate-fips.{region}.api.aws",
tags: ["dualstack", "fips"],
},
{
hostname: "translate.{region}.api.aws",
tags: ["dualstack"],
},
],
},

@@ -80,0 +173,0 @@ };

9

dist-cjs/runtimeConfig.browser.js

@@ -7,2 +7,3 @@ "use strict";

const sha256_browser_1 = require("@aws-crypto/sha256-browser");
const config_resolver_1 = require("@aws-sdk/config-resolver");
const fetch_http_handler_1 = require("@aws-sdk/fetch-http-handler");

@@ -17,3 +18,3 @@ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");

const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);

@@ -35,6 +36,8 @@ return {

streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector,
utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8,
utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8,
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_browser_1.fromUtf8,
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_browser_1.toUtf8,
};
};
exports.getRuntimeConfig = getRuntimeConfig;

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

const getRuntimeConfig = (config) => {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
smithy_client_1.emitWarningIfUnsupportedVersion(process.version);

@@ -39,6 +39,8 @@ const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);

streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8,
utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8,
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
};
};
exports.getRuntimeConfig = getRuntimeConfig;
import { __assign, __awaiter, __generator } from "tslib";
import { getRegionInfo } from "@aws-sdk/config-resolver";
var regionHash = {
"us-east-1-fips": {
hostname: "translate-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
"us-east-1": {
variants: [
{
hostname: "translate.us-east-1.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-east-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-east-2-fips": {
hostname: "translate-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
"us-east-2": {
variants: [
{
hostname: "translate.us-east-2.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-east-2.amazonaws.com",
tags: ["fips"],
},
],
},
"us-gov-west-1-fips": {
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
"us-gov-west-1": {
variants: [
{
hostname: "translate.us-gov-west-1.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-gov-west-1.amazonaws.com",
tags: ["fips"],
},
],
},
"us-west-2-fips": {
hostname: "translate-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
"us-west-2": {
variants: [
{
hostname: "translate.us-west-2.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.us-west-2.amazonaws.com",
tags: ["fips"],
},
],
},

@@ -50,3 +82,20 @@ };

regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
hostname: "translate.{region}.amazonaws.com",
variants: [
{
hostname: "translate.{region}.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.{region}.amazonaws.com",
tags: ["fips"],
},
{
hostname: "translate-fips.{region}.api.aws",
tags: ["dualstack", "fips"],
},
{
hostname: "translate.{region}.api.aws",
tags: ["dualstack"],
},
],
},

@@ -56,3 +105,20 @@ "aws-cn": {

regionRegex: "^cn\\-\\w+\\-\\d+$",
hostname: "translate.{region}.amazonaws.com.cn",
variants: [
{
hostname: "translate.{region}.amazonaws.com.cn",
tags: [],
},
{
hostname: "translate-fips.{region}.amazonaws.com.cn",
tags: ["fips"],
},
{
hostname: "translate-fips.{region}.api.amazonwebservices.com.cn",
tags: ["dualstack", "fips"],
},
{
hostname: "translate.{region}.api.amazonwebservices.com.cn",
tags: ["dualstack"],
},
],
},

@@ -62,3 +128,8 @@ "aws-iso": {

regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
hostname: "translate.{region}.c2s.ic.gov",
variants: [
{
hostname: "translate.{region}.c2s.ic.gov",
tags: [],
},
],
},

@@ -68,3 +139,8 @@ "aws-iso-b": {

regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
hostname: "translate.{region}.sc2s.sgov.gov",
variants: [
{
hostname: "translate.{region}.sc2s.sgov.gov",
tags: [],
},
],
},

@@ -74,3 +150,20 @@ "aws-us-gov": {

regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
hostname: "translate.{region}.amazonaws.com",
variants: [
{
hostname: "translate.{region}.amazonaws.com",
tags: [],
},
{
hostname: "translate-fips.{region}.amazonaws.com",
tags: ["fips"],
},
{
hostname: "translate-fips.{region}.api.aws",
tags: ["dualstack", "fips"],
},
{
hostname: "translate.{region}.api.aws",
tags: ["dualstack"],
},
],
},

@@ -77,0 +170,0 @@ };

import { __assign } from "tslib";
import packageInfo from "../package.json";
import { Sha256 } from "@aws-crypto/sha256-browser";
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";

@@ -13,5 +14,5 @@ import { invalidProvider } from "@aws-sdk/invalid-dependency";

export var getRuntimeConfig = function (config) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
var clientSharedValues = getSharedRuntimeConfig(config);
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
};
import { __assign } from "tslib";
import packageInfo from "../package.json";
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";

@@ -17,6 +17,6 @@ import { Hash } from "@aws-sdk/hash-node";

export var getRuntimeConfig = function (config) {
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
emitWarningIfUnsupportedVersion(process.version);
var clientSharedValues = getSharedRuntimeConfig(config);
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
};

@@ -11,5 +11,5 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

* <p>Creates a parallel data resource in Amazon Translate by importing an input file from
* Amazon S3. Parallel data files contain examples of source phrases and their translations from
* your translation memory. By adding parallel data, you can influence the style, tone, and word
* choice in your translation output.</p>
* Amazon S3. Parallel data files contain examples that show how you want segments of text to be
* translated. By adding parallel data, you can influence the style, tone, and word choice in
* your translation output.</p>
* @example

@@ -16,0 +16,0 @@ * Use a bare-bones client and the command you need to make an API call.

@@ -10,3 +10,3 @@ import { Command as $Command } from "@aws-sdk/smithy-client";

/**
* <p>Gets the properties associated with an asycnhronous batch translation job including name,
* <p>Gets the properties associated with an asynchronous batch translation job including name,
* ID, status, source and target languages, input/output S3 buckets, and so on.</p>

@@ -13,0 +13,0 @@ * @example

@@ -359,2 +359,7 @@ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";

* </li>
* <li>
* <p>
* <code>application/x-xliff+xml</code>: The input data consists of one or more XML
* Localization Interchange File Format (XLIFF) files (.xlf). Amazon Translate supports only XLIFF version 1.2.</p>
* </li>
* </ul>

@@ -418,2 +423,6 @@ * <important>

S3Uri: string | undefined;
/**
* <p>The encryption key used to encrypt this object.</p>
*/
EncryptionKey?: EncryptionKey;
}

@@ -469,3 +478,3 @@ export declare namespace OutputDataConfig {

/**
* <p>An explanation of any errors that may have occured during the translation job.</p>
* <p>An explanation of any errors that may have occurred during the translation job.</p>
*/

@@ -538,2 +547,12 @@ Message?: string;

* presigned URL to that has a 30 minute expiration.</p>
*
* <important>
* <p>Amazon Translate doesn't scan parallel data input files for the risk of CSV injection
* attacks. </p>
* <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
* malicious code. The record begins with a special character, such as =, +, -, or @. When the
* file is opened in a spreadsheet program, the program might interpret the record as a formula
* and run the code within it.</p>
* <p>Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
* </important>
*/

@@ -640,5 +659,15 @@ Location: string | undefined;

/**
* <p>The location of the most recent parallel data input file that was successfully imported
* into Amazon Translate. The location is returned as a presigned URL that has a 30 minute
* expiration.</p>
* <p>The Amazon S3 location of the most recent parallel data input file that was successfully
* imported into Amazon Translate. The location is returned as a presigned URL that has a 30
* minute expiration.</p>
*
* <important>
* <p>Amazon Translate doesn't scan parallel data input files for the risk of CSV injection
* attacks. </p>
* <p>CSV injection occurs when a .csv or .tsv file is altered so that a record contains
* malicious code. The record begins with a special character, such as =, +, -, or @. When the
* file is opened in a spreadsheet program, the program might interpret the record as a formula
* and run the code within it.</p>
* <p>Before you download a parallel data input file from Amazon S3, ensure that you recognize the file and trust its creator.</p>
* </important>
*/

@@ -982,3 +1011,3 @@ DataLocation?: ParallelDataDataLocation;

/**
* <p>The token to use to retreive the next page of results. This value is <code>null</code>
* <p>The token to use to retrieve the next page of results. This value is <code>null</code>
* when there are no more results to return.</p>

@@ -1011,3 +1040,3 @@ */

* <p>The Amazon Resource Name (ARN) of an AWS Identity Access and Management (IAM) role
* that grants Amazon Translate read access to your input data. For more nformation, see <a>identity-and-access-management</a>.</p>
* that grants Amazon Translate read access to your input data. For more information, see <a>identity-and-access-management</a>.</p>
*/

@@ -1026,10 +1055,20 @@ DataAccessRoleArn: string | undefined;

/**
* <p>The name of the terminology to use in the batch translation job. For a list of available
* terminologies, use the <a>ListTerminologies</a> operation.</p>
* <p>The name of a custom terminology resource to add to the translation job. This resource
* lists examples source terms and the desired translation for each term.</p>
* <p>This parameter accepts only one custom terminology resource.</p>
* <p>For a list of available custom terminology resources, use the <a>ListTerminologies</a> operation.</p>
* <p>For more information, see <a>how-custom-terminology</a>.</p>
*/
TerminologyNames?: string[];
/**
* <p>The names of the parallel data resources to use in the batch translation job. For a list
* of available parallel data resources, use the <a>ListParallelData</a>
* operation.</p>
* <p>The name of a parallel data resource to add to the translation job. This resource consists
* of examples that show how you want segments of text to be translated. When you add parallel
* data to a translation job, you create an <i>Active Custom Translation</i> job. </p>
* <p>This parameter accepts only one parallel data resource.</p>
* <note>
* <p>Active Custom Translation jobs are priced at a higher rate than other jobs that don't
* use parallel data. For more information, see <a href="http://aws.amazon.com/translate/pricing/">Amazon Translate pricing</a>.</p>
* </note>
* <p>For a list of available parallel data resources, use the <a>ListParallelData</a> operation.</p>
* <p>For more information, see <a>customizing-translations-parallel-data</a>.</p>
*/

@@ -1036,0 +1075,0 @@ ParallelDataNames?: string[];

@@ -19,2 +19,4 @@ import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";

streamCollector: import("@aws-sdk/types").StreamCollector;
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
utf8Decoder: import("@aws-sdk/types").Decoder;

@@ -21,0 +23,0 @@ utf8Encoder: import("@aws-sdk/types").Encoder;

@@ -19,2 +19,4 @@ import { NodeHttpHandler } from "@aws-sdk/node-http-handler";

streamCollector: import("@aws-sdk/types").StreamCollector;
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
utf8Decoder: import("@aws-sdk/types").Decoder;

@@ -21,0 +23,0 @@ utf8Encoder: import("@aws-sdk/types").Encoder;

@@ -21,2 +21,4 @@ import { TranslateClientConfig } from "./TranslateClient";

logger: import("@aws-sdk/types").Logger;
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
serviceId: string;

@@ -23,0 +25,0 @@ region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;

@@ -24,5 +24,5 @@ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";

* <p>Creates a parallel data resource in Amazon Translate by importing an input file from
* Amazon S3. Parallel data files contain examples of source phrases and their translations from
* your translation memory. By adding parallel data, you can influence the style, tone, and word
* choice in your translation output.</p>
* Amazon S3. Parallel data files contain examples that show how you want segments of text to be
* translated. By adding parallel data, you can influence the style, tone, and word choice in
* your translation output.</p>
*/

@@ -45,3 +45,3 @@ createParallelData(args: CreateParallelDataCommandInput, options?: __HttpHandlerOptions): Promise<CreateParallelDataCommandOutput>;

/**
* <p>Gets the properties associated with an asycnhronous batch translation job including name,
* <p>Gets the properties associated with an asynchronous batch translation job including name,
* ID, status, source and target languages, input/output S3 buckets, and so on.</p>

@@ -48,0 +48,0 @@ */

@@ -94,2 +94,10 @@ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";

/**
* Enables IPv6/IPv4 dualstack endpoint.
*/
useDualstackEndpoint?: boolean | __Provider<boolean>;
/**
* Enables FIPS compatible endpoints.
*/
useFipsEndpoint?: boolean | __Provider<boolean>;
/**
* Unique service identifier.

@@ -96,0 +104,0 @@ * @internal

@@ -238,2 +238,4 @@ import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";

S3Uri: string | undefined;
EncryptionKey?: EncryptionKey;
}

@@ -240,0 +242,0 @@ export declare namespace OutputDataConfig {

@@ -17,2 +17,4 @@ import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler";

streamCollector: import("@aws-sdk/types").StreamCollector;
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
utf8Decoder: import("@aws-sdk/types").Decoder;

@@ -19,0 +21,0 @@ utf8Encoder: import("@aws-sdk/types").Encoder;

@@ -17,2 +17,4 @@ import { NodeHttpHandler } from "@aws-sdk/node-http-handler";

streamCollector: import("@aws-sdk/types").StreamCollector;
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
utf8Decoder: import("@aws-sdk/types").Decoder;

@@ -19,0 +21,0 @@ utf8Encoder: import("@aws-sdk/types").Encoder;

@@ -19,2 +19,4 @@ import { TranslateClientConfig } from "./TranslateClient";

logger: import("@aws-sdk/types").Logger;
useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
serviceId: string;

@@ -21,0 +23,0 @@ region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>;

@@ -55,2 +55,6 @@ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";

useDualstackEndpoint?: boolean | __Provider<boolean>;
useFipsEndpoint?: boolean | __Provider<boolean>;
serviceId?: string;

@@ -57,0 +61,0 @@

{
"name": "@aws-sdk/client-translate",
"description": "AWS SDK for JavaScript Translate Client for Node.js, Browser and React Native",
"version": "3.39.0",
"version": "3.40.0",
"scripts": {

@@ -24,22 +24,22 @@ "build": "yarn build:cjs && yarn build:es && yarn build:types",

"@aws-crypto/sha256-js": "2.0.0",
"@aws-sdk/client-sts": "3.39.0",
"@aws-sdk/config-resolver": "3.39.0",
"@aws-sdk/credential-provider-node": "3.39.0",
"@aws-sdk/fetch-http-handler": "3.38.0",
"@aws-sdk/hash-node": "3.38.0",
"@aws-sdk/invalid-dependency": "3.38.0",
"@aws-sdk/middleware-content-length": "3.38.0",
"@aws-sdk/middleware-host-header": "3.38.0",
"@aws-sdk/middleware-logger": "3.38.0",
"@aws-sdk/middleware-retry": "3.39.0",
"@aws-sdk/middleware-serde": "3.38.0",
"@aws-sdk/middleware-signing": "3.39.0",
"@aws-sdk/middleware-stack": "3.38.0",
"@aws-sdk/middleware-user-agent": "3.38.0",
"@aws-sdk/node-config-provider": "3.39.0",
"@aws-sdk/node-http-handler": "3.38.0",
"@aws-sdk/protocol-http": "3.38.0",
"@aws-sdk/smithy-client": "3.38.0",
"@aws-sdk/types": "3.38.0",
"@aws-sdk/url-parser": "3.38.0",
"@aws-sdk/client-sts": "3.40.0",
"@aws-sdk/config-resolver": "3.40.0",
"@aws-sdk/credential-provider-node": "3.40.0",
"@aws-sdk/fetch-http-handler": "3.40.0",
"@aws-sdk/hash-node": "3.40.0",
"@aws-sdk/invalid-dependency": "3.40.0",
"@aws-sdk/middleware-content-length": "3.40.0",
"@aws-sdk/middleware-host-header": "3.40.0",
"@aws-sdk/middleware-logger": "3.40.0",
"@aws-sdk/middleware-retry": "3.40.0",
"@aws-sdk/middleware-serde": "3.40.0",
"@aws-sdk/middleware-signing": "3.40.0",
"@aws-sdk/middleware-stack": "3.40.0",
"@aws-sdk/middleware-user-agent": "3.40.0",
"@aws-sdk/node-config-provider": "3.40.0",
"@aws-sdk/node-http-handler": "3.40.0",
"@aws-sdk/protocol-http": "3.40.0",
"@aws-sdk/smithy-client": "3.40.0",
"@aws-sdk/types": "3.40.0",
"@aws-sdk/url-parser": "3.40.0",
"@aws-sdk/util-base64-browser": "3.37.0",

@@ -49,4 +49,4 @@ "@aws-sdk/util-base64-node": "3.37.0",

"@aws-sdk/util-body-length-node": "3.37.0",
"@aws-sdk/util-user-agent-browser": "3.38.0",
"@aws-sdk/util-user-agent-node": "3.39.0",
"@aws-sdk/util-user-agent-browser": "3.40.0",
"@aws-sdk/util-user-agent-node": "3.40.0",
"@aws-sdk/util-utf8-browser": "3.37.0",

@@ -53,0 +53,0 @@ "@aws-sdk/util-utf8-node": "3.37.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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