@aws-sdk/client-efs
Advanced tools
Comparing version 3.22.0 to 3.23.0
@@ -22,6 +22,3 @@ "use strict"; | ||
constructor(configuration) { | ||
let _config_0 = { | ||
...runtimeConfig_1.ClientDefaultValues, | ||
...configuration, | ||
}; | ||
let _config_0 = runtimeConfig_1.getRuntimeConfig(configuration); | ||
let _config_1 = config_resolver_1.resolveRegionConfig(_config_0); | ||
@@ -28,0 +25,0 @@ let _config_2 = config_resolver_1.resolveEndpointsConfig(_config_1); |
{ | ||
"name": "@aws-sdk/client-efs", | ||
"description": "AWS SDK for JavaScript Efs Client for Node.js, Browser and React Native", | ||
"version": "3.22.0", | ||
"version": "3.23.0", | ||
"scripts": { | ||
@@ -30,35 +30,35 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation", | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/client-sts": "3.22.0", | ||
"@aws-sdk/config-resolver": "3.22.0", | ||
"@aws-sdk/credential-provider-node": "3.22.0", | ||
"@aws-sdk/fetch-http-handler": "3.22.0", | ||
"@aws-sdk/hash-node": "3.22.0", | ||
"@aws-sdk/invalid-dependency": "3.22.0", | ||
"@aws-sdk/middleware-content-length": "3.22.0", | ||
"@aws-sdk/middleware-host-header": "3.22.0", | ||
"@aws-sdk/middleware-logger": "3.22.0", | ||
"@aws-sdk/middleware-retry": "3.22.0", | ||
"@aws-sdk/middleware-serde": "3.22.0", | ||
"@aws-sdk/middleware-signing": "3.22.0", | ||
"@aws-sdk/middleware-stack": "3.22.0", | ||
"@aws-sdk/middleware-user-agent": "3.22.0", | ||
"@aws-sdk/node-config-provider": "3.22.0", | ||
"@aws-sdk/node-http-handler": "3.22.0", | ||
"@aws-sdk/protocol-http": "3.22.0", | ||
"@aws-sdk/smithy-client": "3.22.0", | ||
"@aws-sdk/client-sts": "3.23.0", | ||
"@aws-sdk/config-resolver": "3.23.0", | ||
"@aws-sdk/credential-provider-node": "3.23.0", | ||
"@aws-sdk/fetch-http-handler": "3.23.0", | ||
"@aws-sdk/hash-node": "3.23.0", | ||
"@aws-sdk/invalid-dependency": "3.23.0", | ||
"@aws-sdk/middleware-content-length": "3.23.0", | ||
"@aws-sdk/middleware-host-header": "3.23.0", | ||
"@aws-sdk/middleware-logger": "3.23.0", | ||
"@aws-sdk/middleware-retry": "3.23.0", | ||
"@aws-sdk/middleware-serde": "3.23.0", | ||
"@aws-sdk/middleware-signing": "3.23.0", | ||
"@aws-sdk/middleware-stack": "3.23.0", | ||
"@aws-sdk/middleware-user-agent": "3.23.0", | ||
"@aws-sdk/node-config-provider": "3.23.0", | ||
"@aws-sdk/node-http-handler": "3.23.0", | ||
"@aws-sdk/protocol-http": "3.23.0", | ||
"@aws-sdk/smithy-client": "3.23.0", | ||
"@aws-sdk/types": "3.22.0", | ||
"@aws-sdk/url-parser": "3.22.0", | ||
"@aws-sdk/util-base64-browser": "3.22.0", | ||
"@aws-sdk/util-base64-node": "3.22.0", | ||
"@aws-sdk/util-body-length-browser": "3.22.0", | ||
"@aws-sdk/util-body-length-node": "3.22.0", | ||
"@aws-sdk/util-user-agent-browser": "3.22.0", | ||
"@aws-sdk/util-user-agent-node": "3.22.0", | ||
"@aws-sdk/util-utf8-browser": "3.22.0", | ||
"@aws-sdk/util-utf8-node": "3.22.0", | ||
"tslib": "^2.0.0", | ||
"@aws-sdk/url-parser": "3.23.0", | ||
"@aws-sdk/util-base64-browser": "3.23.0", | ||
"@aws-sdk/util-base64-node": "3.23.0", | ||
"@aws-sdk/util-body-length-browser": "3.23.0", | ||
"@aws-sdk/util-body-length-node": "3.23.0", | ||
"@aws-sdk/util-user-agent-browser": "3.23.0", | ||
"@aws-sdk/util-user-agent-node": "3.23.0", | ||
"@aws-sdk/util-utf8-browser": "3.23.0", | ||
"@aws-sdk/util-utf8-node": "3.23.0", | ||
"tslib": "^2.3.0", | ||
"uuid": "^8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-documentation-generator": "3.22.0", | ||
"@aws-sdk/client-documentation-generator": "3.23.0", | ||
"@types/node": "^12.7.5", | ||
@@ -65,0 +65,0 @@ "@types/uuid": "^8.3.0", |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientDefaultValues = void 0; | ||
exports.getRuntimeConfig = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -18,22 +18,25 @@ const package_json_1 = tslib_1.__importDefault(require("./package.json")); | ||
*/ | ||
exports.ClientDefaultValues = { | ||
...runtimeConfig_shared_1.ClientSharedValues, | ||
runtime: "browser", | ||
base64Decoder: util_base64_browser_1.fromBase64, | ||
base64Encoder: util_base64_browser_1.toBase64, | ||
bodyLengthChecker: util_body_length_browser_1.calculateBodyLength, | ||
credentialDefaultProvider: (_) => () => Promise.reject(new Error("Credential is missing")), | ||
defaultUserAgentProvider: util_user_agent_browser_1.defaultUserAgent({ | ||
serviceId: runtimeConfig_shared_1.ClientSharedValues.serviceId, | ||
clientVersion: package_json_1.default.version, | ||
}), | ||
maxAttempts: middleware_retry_1.DEFAULT_MAX_ATTEMPTS, | ||
region: invalid_dependency_1.invalidProvider("Region is missing"), | ||
requestHandler: new fetch_http_handler_1.FetchHttpHandler(), | ||
retryModeProvider: () => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE), | ||
sha256: sha256_browser_1.Sha256, | ||
streamCollector: fetch_http_handler_1.streamCollector, | ||
utf8Decoder: util_utf8_browser_1.fromUtf8, | ||
utf8Encoder: util_utf8_browser_1.toUtf8, | ||
const getRuntimeConfig = (config = {}) => { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); | ||
return { | ||
...clientSharedValues, | ||
...config, | ||
runtime: "browser", | ||
base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_browser_1.fromBase64, | ||
base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64, | ||
bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength, | ||
credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))), | ||
defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), | ||
maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS, | ||
region: (_g = config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"), | ||
requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(), | ||
retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : (() => Promise.resolve(middleware_retry_1.DEFAULT_RETRY_MODE)), | ||
sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256, | ||
streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : fetch_http_handler_1.streamCollector, | ||
utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_browser_1.fromUtf8, | ||
utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_browser_1.toUtf8, | ||
}; | ||
}; | ||
exports.getRuntimeConfig = getRuntimeConfig; | ||
//# sourceMappingURL=runtimeConfig.browser.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientDefaultValues = void 0; | ||
exports.getRuntimeConfig = void 0; | ||
const tslib_1 = require("tslib"); | ||
@@ -21,22 +21,25 @@ const package_json_1 = tslib_1.__importDefault(require("./package.json")); | ||
*/ | ||
exports.ClientDefaultValues = { | ||
...runtimeConfig_shared_1.ClientSharedValues, | ||
runtime: "node", | ||
base64Decoder: util_base64_node_1.fromBase64, | ||
base64Encoder: util_base64_node_1.toBase64, | ||
bodyLengthChecker: util_body_length_node_1.calculateBodyLength, | ||
credentialDefaultProvider: client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), | ||
defaultUserAgentProvider: util_user_agent_node_1.defaultUserAgent({ | ||
serviceId: runtimeConfig_shared_1.ClientSharedValues.serviceId, | ||
clientVersion: package_json_1.default.version, | ||
}), | ||
maxAttempts: node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), | ||
region: node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), | ||
requestHandler: new node_http_handler_1.NodeHttpHandler(), | ||
retryModeProvider: node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS), | ||
sha256: hash_node_1.Hash.bind(null, "sha256"), | ||
streamCollector: node_http_handler_1.streamCollector, | ||
utf8Decoder: util_utf8_node_1.fromUtf8, | ||
utf8Encoder: util_utf8_node_1.toUtf8, | ||
const getRuntimeConfig = (config = {}) => { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config); | ||
return { | ||
...clientSharedValues, | ||
...config, | ||
runtime: "node", | ||
base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64, | ||
base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64, | ||
bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength, | ||
credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider), | ||
defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), | ||
maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), | ||
region: (_g = config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), | ||
requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(), | ||
retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig(middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS), | ||
sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"), | ||
streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector, | ||
utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : util_utf8_node_1.fromUtf8, | ||
utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : util_utf8_node_1.toUtf8, | ||
}; | ||
}; | ||
exports.getRuntimeConfig = getRuntimeConfig; | ||
//# sourceMappingURL=runtimeConfig.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientDefaultValues = void 0; | ||
exports.getRuntimeConfig = void 0; | ||
const sha256_js_1 = require("@aws-crypto/sha256-js"); | ||
@@ -9,7 +9,13 @@ const runtimeConfig_browser_1 = require("./runtimeConfig.browser"); | ||
*/ | ||
exports.ClientDefaultValues = { | ||
...runtimeConfig_browser_1.ClientDefaultValues, | ||
runtime: "react-native", | ||
sha256: sha256_js_1.Sha256, | ||
const getRuntimeConfig = (config = {}) => { | ||
var _a; | ||
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config); | ||
return { | ||
...browserDefaults, | ||
...config, | ||
runtime: "react-native", | ||
sha256: (_a = config.sha256) !== null && _a !== void 0 ? _a : sha256_js_1.Sha256, | ||
}; | ||
}; | ||
exports.getRuntimeConfig = getRuntimeConfig; | ||
//# sourceMappingURL=runtimeConfig.native.js.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ClientSharedValues = void 0; | ||
exports.getRuntimeConfig = void 0; | ||
const endpoints_1 = require("./endpoints"); | ||
@@ -9,10 +9,14 @@ const url_parser_1 = require("@aws-sdk/url-parser"); | ||
*/ | ||
exports.ClientSharedValues = { | ||
apiVersion: "2015-02-01", | ||
disableHostPrefix: false, | ||
logger: {}, | ||
regionInfoProvider: endpoints_1.defaultRegionInfoProvider, | ||
serviceId: "EFS", | ||
urlParser: url_parser_1.parseUrl, | ||
const getRuntimeConfig = (config = {}) => { | ||
var _a, _b, _c, _d, _e; | ||
return ({ | ||
apiVersion: "2015-02-01", | ||
disableHostPrefix: (_a = config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, | ||
logger: (_b = config.logger) !== null && _b !== void 0 ? _b : {}, | ||
regionInfoProvider: (_c = config.regionInfoProvider) !== null && _c !== void 0 ? _c : endpoints_1.defaultRegionInfoProvider, | ||
serviceId: (_d = config.serviceId) !== null && _d !== void 0 ? _d : "EFS", | ||
urlParser: (_e = config.urlParser) !== null && _e !== void 0 ? _e : url_parser_1.parseUrl, | ||
}); | ||
}; | ||
exports.getRuntimeConfig = getRuntimeConfig; | ||
//# sourceMappingURL=runtimeConfig.shared.js.map |
@@ -1,3 +0,3 @@ | ||
import { __assign, __extends } from "tslib"; | ||
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig"; | ||
import { __extends } from "tslib"; | ||
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; | ||
import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver"; | ||
@@ -22,3 +22,3 @@ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length"; | ||
var _this = this; | ||
var _config_0 = __assign(__assign({}, __ClientDefaultValues), configuration); | ||
var _config_0 = __getRuntimeConfig(configuration); | ||
var _config_1 = resolveRegionConfig(_config_0); | ||
@@ -25,0 +25,0 @@ var _config_2 = resolveEndpointsConfig(_config_1); |
{ | ||
"name": "@aws-sdk/client-efs", | ||
"description": "AWS SDK for JavaScript Efs Client for Node.js, Browser and React Native", | ||
"version": "3.22.0", | ||
"version": "3.23.0", | ||
"scripts": { | ||
@@ -30,35 +30,35 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation", | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/client-sts": "3.22.0", | ||
"@aws-sdk/config-resolver": "3.22.0", | ||
"@aws-sdk/credential-provider-node": "3.22.0", | ||
"@aws-sdk/fetch-http-handler": "3.22.0", | ||
"@aws-sdk/hash-node": "3.22.0", | ||
"@aws-sdk/invalid-dependency": "3.22.0", | ||
"@aws-sdk/middleware-content-length": "3.22.0", | ||
"@aws-sdk/middleware-host-header": "3.22.0", | ||
"@aws-sdk/middleware-logger": "3.22.0", | ||
"@aws-sdk/middleware-retry": "3.22.0", | ||
"@aws-sdk/middleware-serde": "3.22.0", | ||
"@aws-sdk/middleware-signing": "3.22.0", | ||
"@aws-sdk/middleware-stack": "3.22.0", | ||
"@aws-sdk/middleware-user-agent": "3.22.0", | ||
"@aws-sdk/node-config-provider": "3.22.0", | ||
"@aws-sdk/node-http-handler": "3.22.0", | ||
"@aws-sdk/protocol-http": "3.22.0", | ||
"@aws-sdk/smithy-client": "3.22.0", | ||
"@aws-sdk/client-sts": "3.23.0", | ||
"@aws-sdk/config-resolver": "3.23.0", | ||
"@aws-sdk/credential-provider-node": "3.23.0", | ||
"@aws-sdk/fetch-http-handler": "3.23.0", | ||
"@aws-sdk/hash-node": "3.23.0", | ||
"@aws-sdk/invalid-dependency": "3.23.0", | ||
"@aws-sdk/middleware-content-length": "3.23.0", | ||
"@aws-sdk/middleware-host-header": "3.23.0", | ||
"@aws-sdk/middleware-logger": "3.23.0", | ||
"@aws-sdk/middleware-retry": "3.23.0", | ||
"@aws-sdk/middleware-serde": "3.23.0", | ||
"@aws-sdk/middleware-signing": "3.23.0", | ||
"@aws-sdk/middleware-stack": "3.23.0", | ||
"@aws-sdk/middleware-user-agent": "3.23.0", | ||
"@aws-sdk/node-config-provider": "3.23.0", | ||
"@aws-sdk/node-http-handler": "3.23.0", | ||
"@aws-sdk/protocol-http": "3.23.0", | ||
"@aws-sdk/smithy-client": "3.23.0", | ||
"@aws-sdk/types": "3.22.0", | ||
"@aws-sdk/url-parser": "3.22.0", | ||
"@aws-sdk/util-base64-browser": "3.22.0", | ||
"@aws-sdk/util-base64-node": "3.22.0", | ||
"@aws-sdk/util-body-length-browser": "3.22.0", | ||
"@aws-sdk/util-body-length-node": "3.22.0", | ||
"@aws-sdk/util-user-agent-browser": "3.22.0", | ||
"@aws-sdk/util-user-agent-node": "3.22.0", | ||
"@aws-sdk/util-utf8-browser": "3.22.0", | ||
"@aws-sdk/util-utf8-node": "3.22.0", | ||
"tslib": "^2.0.0", | ||
"@aws-sdk/url-parser": "3.23.0", | ||
"@aws-sdk/util-base64-browser": "3.23.0", | ||
"@aws-sdk/util-base64-node": "3.23.0", | ||
"@aws-sdk/util-body-length-browser": "3.23.0", | ||
"@aws-sdk/util-body-length-node": "3.23.0", | ||
"@aws-sdk/util-user-agent-browser": "3.23.0", | ||
"@aws-sdk/util-user-agent-node": "3.23.0", | ||
"@aws-sdk/util-utf8-browser": "3.23.0", | ||
"@aws-sdk/util-utf8-node": "3.23.0", | ||
"tslib": "^2.3.0", | ||
"uuid": "^8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-documentation-generator": "3.22.0", | ||
"@aws-sdk/client-documentation-generator": "3.23.0", | ||
"@types/node": "^12.7.5", | ||
@@ -65,0 +65,0 @@ "@types/uuid": "^8.3.0", |
@@ -11,10 +11,12 @@ import { __assign } from "tslib"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; | ||
import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; | ||
/** | ||
* @internal | ||
*/ | ||
export var ClientDefaultValues = __assign(__assign({}, ClientSharedValues), { runtime: "browser", base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, credentialDefaultProvider: function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }, defaultUserAgentProvider: defaultUserAgent({ | ||
serviceId: ClientSharedValues.serviceId, | ||
clientVersion: packageInfo.version, | ||
}), maxAttempts: DEFAULT_MAX_ATTEMPTS, region: invalidProvider("Region is missing"), requestHandler: new FetchHttpHandler(), retryModeProvider: function () { return Promise.resolve(DEFAULT_RETRY_MODE); }, sha256: Sha256, streamCollector: streamCollector, utf8Decoder: fromUtf8, utf8Encoder: toUtf8 }); | ||
export var getRuntimeConfig = function (config) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
if (config === void 0) { config = {}; } | ||
var clientSharedValues = getSharedRuntimeConfig(config); | ||
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 }); | ||
}; | ||
//# sourceMappingURL=runtimeConfig.browser.js.map |
@@ -14,10 +14,12 @@ import { __assign } from "tslib"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; | ||
import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; | ||
/** | ||
* @internal | ||
*/ | ||
export var ClientDefaultValues = __assign(__assign({}, ClientSharedValues), { runtime: "node", base64Decoder: fromBase64, base64Encoder: toBase64, bodyLengthChecker: calculateBodyLength, credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: defaultUserAgent({ | ||
serviceId: ClientSharedValues.serviceId, | ||
clientVersion: packageInfo.version, | ||
}), maxAttempts: loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: new NodeHttpHandler(), retryModeProvider: loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: Hash.bind(null, "sha256"), streamCollector: streamCollector, utf8Decoder: fromUtf8, utf8Encoder: toUtf8 }); | ||
export var getRuntimeConfig = function (config) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
if (config === void 0) { config = {}; } | ||
var clientSharedValues = getSharedRuntimeConfig(config); | ||
return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryModeProvider: (_j = config.retryModeProvider) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 }); | ||
}; | ||
//# sourceMappingURL=runtimeConfig.js.map |
import { __assign } from "tslib"; | ||
import { Sha256 } from "@aws-crypto/sha256-js"; | ||
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"; | ||
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; | ||
/** | ||
* @internal | ||
*/ | ||
export var ClientDefaultValues = __assign(__assign({}, BrowserDefaults), { runtime: "react-native", sha256: Sha256 }); | ||
export var getRuntimeConfig = function (config) { | ||
var _a; | ||
if (config === void 0) { config = {}; } | ||
var browserDefaults = getBrowserRuntimeConfig(config); | ||
return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config.sha256) !== null && _a !== void 0 ? _a : Sha256 }); | ||
}; | ||
//# sourceMappingURL=runtimeConfig.native.js.map |
@@ -6,10 +6,14 @@ import { defaultRegionInfoProvider } from "./endpoints"; | ||
*/ | ||
export var ClientSharedValues = { | ||
apiVersion: "2015-02-01", | ||
disableHostPrefix: false, | ||
logger: {}, | ||
regionInfoProvider: defaultRegionInfoProvider, | ||
serviceId: "EFS", | ||
urlParser: parseUrl, | ||
export var getRuntimeConfig = function (config) { | ||
var _a, _b, _c, _d, _e; | ||
if (config === void 0) { config = {}; } | ||
return ({ | ||
apiVersion: "2015-02-01", | ||
disableHostPrefix: (_a = config.disableHostPrefix) !== null && _a !== void 0 ? _a : false, | ||
logger: (_b = config.logger) !== null && _b !== void 0 ? _b : {}, | ||
regionInfoProvider: (_c = config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider, | ||
serviceId: (_d = config.serviceId) !== null && _d !== void 0 ? _d : "EFS", | ||
urlParser: (_e = config.urlParser) !== null && _e !== void 0 ? _e : parseUrl, | ||
}); | ||
}; | ||
//# sourceMappingURL=runtimeConfig.shared.js.map |
@@ -1,5 +0,37 @@ | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientDefaultValues: Required<ClientDefaults>; | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
runtime: string; | ||
base64Decoder: import("@aws-sdk/types").Decoder; | ||
base64Encoder: import("@aws-sdk/types").Encoder; | ||
bodyLengthChecker: (body: any) => number | undefined; | ||
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>; | ||
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>; | ||
maxAttempts: number | import("@aws-sdk/types").Provider<number>; | ||
region: string | import("@aws-sdk/types").Provider<any>; | ||
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler; | ||
retryModeProvider: import("@aws-sdk/types").Provider<string>; | ||
sha256: import("@aws-sdk/types").HashConstructor; | ||
streamCollector: import("@aws-sdk/types").StreamCollector; | ||
utf8Decoder: import("@aws-sdk/types").Decoder; | ||
utf8Encoder: import("@aws-sdk/types").Encoder; | ||
apiVersion: string; | ||
urlParser: import("@aws-sdk/types").UrlParser; | ||
disableHostPrefix: boolean; | ||
logger: import("@aws-sdk/types").Logger; | ||
serviceId: string; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined; | ||
tls?: boolean | undefined; | ||
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined; | ||
retryMode?: string | undefined; | ||
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined; | ||
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined; | ||
}; |
@@ -1,5 +0,37 @@ | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { NodeHttpHandler } from "@aws-sdk/node-http-handler"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientDefaultValues: Required<ClientDefaults>; | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
runtime: string; | ||
base64Decoder: import("@aws-sdk/types").Decoder; | ||
base64Encoder: import("@aws-sdk/types").Encoder; | ||
bodyLengthChecker: (body: any) => number | undefined; | ||
credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider; | ||
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>; | ||
maxAttempts: number | import("@aws-sdk/types").Provider<number>; | ||
region: string | import("@aws-sdk/types").Provider<string>; | ||
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler; | ||
retryModeProvider: import("@aws-sdk/types").Provider<string>; | ||
sha256: import("@aws-sdk/types").HashConstructor; | ||
streamCollector: import("@aws-sdk/types").StreamCollector; | ||
utf8Decoder: import("@aws-sdk/types").Decoder; | ||
utf8Encoder: import("@aws-sdk/types").Encoder; | ||
apiVersion: string; | ||
urlParser: import("@aws-sdk/types").UrlParser; | ||
disableHostPrefix: boolean; | ||
logger: import("@aws-sdk/types").Logger; | ||
serviceId: string; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined; | ||
tls?: boolean | undefined; | ||
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined; | ||
retryMode?: string | undefined; | ||
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined; | ||
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined; | ||
}; |
@@ -1,5 +0,36 @@ | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientDefaultValues: Required<ClientDefaults>; | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
runtime: string; | ||
sha256: import("@aws-sdk/types").HashConstructor; | ||
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler; | ||
apiVersion: string; | ||
urlParser: import("@aws-sdk/types").UrlParser; | ||
bodyLengthChecker: (body: any) => number | undefined; | ||
streamCollector: import("@aws-sdk/types").StreamCollector; | ||
base64Decoder: import("@aws-sdk/types").Decoder; | ||
base64Encoder: import("@aws-sdk/types").Encoder; | ||
utf8Decoder: import("@aws-sdk/types").Decoder; | ||
utf8Encoder: import("@aws-sdk/types").Encoder; | ||
disableHostPrefix: boolean; | ||
maxAttempts: number | import("@aws-sdk/types").Provider<number>; | ||
retryModeProvider: import("@aws-sdk/types").Provider<string>; | ||
logger: import("@aws-sdk/types").Logger; | ||
serviceId: string; | ||
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>; | ||
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>; | ||
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined; | ||
tls?: boolean | undefined; | ||
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined; | ||
retryMode?: string | undefined; | ||
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined; | ||
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined; | ||
}; |
import { Logger as __Logger } from "@aws-sdk/types"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientSharedValues: { | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
apiVersion: string; | ||
@@ -7,0 +8,0 @@ disableHostPrefix: boolean; |
@@ -1,5 +0,37 @@ | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { FetchHttpHandler } from "@aws-sdk/fetch-http-handler"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientDefaultValues: Required<ClientDefaults>; | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
runtime: string; | ||
base64Decoder: import("@aws-sdk/types").Decoder; | ||
base64Encoder: import("@aws-sdk/types").Encoder; | ||
bodyLengthChecker: (body: any) => number | undefined; | ||
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>; | ||
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>; | ||
maxAttempts: number | import("@aws-sdk/types").Provider<number>; | ||
region: string | import("@aws-sdk/types").Provider<any>; | ||
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | FetchHttpHandler; | ||
retryModeProvider: import("@aws-sdk/types").Provider<string>; | ||
sha256: import("@aws-sdk/types").HashConstructor; | ||
streamCollector: import("@aws-sdk/types").StreamCollector; | ||
utf8Decoder: import("@aws-sdk/types").Decoder; | ||
utf8Encoder: import("@aws-sdk/types").Encoder; | ||
apiVersion: string; | ||
urlParser: import("@aws-sdk/types").UrlParser; | ||
disableHostPrefix: boolean; | ||
logger: import("@aws-sdk/types").Logger; | ||
serviceId: string; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined; | ||
tls?: boolean | undefined; | ||
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined; | ||
retryMode?: string | undefined; | ||
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined; | ||
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined; | ||
}; |
@@ -1,5 +0,37 @@ | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { NodeHttpHandler } from "@aws-sdk/node-http-handler"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientDefaultValues: Required<ClientDefaults>; | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
runtime: string; | ||
base64Decoder: import("@aws-sdk/types").Decoder; | ||
base64Encoder: import("@aws-sdk/types").Encoder; | ||
bodyLengthChecker: (body: any) => number | undefined; | ||
credentialDefaultProvider: import("@aws-sdk/client-sts/dist/types/defaultStsRoleAssumers").DefaultCredentialProvider; | ||
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>; | ||
maxAttempts: number | import("@aws-sdk/types").Provider<number>; | ||
region: string | import("@aws-sdk/types").Provider<string>; | ||
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | NodeHttpHandler; | ||
retryModeProvider: import("@aws-sdk/types").Provider<string>; | ||
sha256: import("@aws-sdk/types").HashConstructor; | ||
streamCollector: import("@aws-sdk/types").StreamCollector; | ||
utf8Decoder: import("@aws-sdk/types").Decoder; | ||
utf8Encoder: import("@aws-sdk/types").Encoder; | ||
apiVersion: string; | ||
urlParser: import("@aws-sdk/types").UrlParser; | ||
disableHostPrefix: boolean; | ||
logger: import("@aws-sdk/types").Logger; | ||
serviceId: string; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined; | ||
tls?: boolean | undefined; | ||
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined; | ||
retryMode?: string | undefined; | ||
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined; | ||
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined; | ||
}; |
@@ -1,5 +0,36 @@ | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientDefaultValues: Required<ClientDefaults>; | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
runtime: string; | ||
sha256: import("@aws-sdk/types").HashConstructor; | ||
requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler; | ||
apiVersion: string; | ||
urlParser: import("@aws-sdk/types").UrlParser; | ||
bodyLengthChecker: (body: any) => number | undefined; | ||
streamCollector: import("@aws-sdk/types").StreamCollector; | ||
base64Decoder: import("@aws-sdk/types").Decoder; | ||
base64Encoder: import("@aws-sdk/types").Encoder; | ||
utf8Decoder: import("@aws-sdk/types").Decoder; | ||
utf8Encoder: import("@aws-sdk/types").Encoder; | ||
disableHostPrefix: boolean; | ||
maxAttempts: number | import("@aws-sdk/types").Provider<number>; | ||
retryModeProvider: import("@aws-sdk/types").Provider<string>; | ||
logger: import("@aws-sdk/types").Logger; | ||
serviceId: string; | ||
region: string | import("@aws-sdk/types").Provider<string> | import("@aws-sdk/types").Provider<any>; | ||
credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>; | ||
regionInfoProvider: import("@aws-sdk/types").RegionInfoProvider; | ||
defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>; | ||
endpoint?: string | import("@aws-sdk/types").Endpoint | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Endpoint> | undefined; | ||
tls?: boolean | undefined; | ||
retryStrategy?: import("@aws-sdk/types").RetryStrategy | undefined; | ||
retryMode?: string | undefined; | ||
credentials?: import("@aws-sdk/types").Credentials | import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials> | undefined; | ||
signer?: import("@aws-sdk/types").RequestSigner | import("@aws-sdk/types").Provider<import("@aws-sdk/types").RequestSigner> | undefined; | ||
signingEscapePath?: boolean | undefined; | ||
systemClockOffset?: number | undefined; | ||
signingRegion?: string | undefined; | ||
customUserAgent?: string | import("@aws-sdk/types").UserAgent | undefined; | ||
}; |
import { Logger as __Logger } from "@aws-sdk/types"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
/** | ||
* @internal | ||
*/ | ||
export declare const ClientSharedValues: { | ||
export declare const getRuntimeConfig: (config?: EFSClientConfig) => { | ||
apiVersion: string; | ||
@@ -7,0 +8,0 @@ disableHostPrefix: boolean; |
@@ -70,3 +70,3 @@ import { CreateAccessPointCommandInput, CreateAccessPointCommandOutput } from "./commands/CreateAccessPointCommand"; | ||
import { UpdateFileSystemCommandInput, UpdateFileSystemCommandOutput } from "./commands/UpdateFileSystemCommand"; | ||
import { ClientDefaultValues as __ClientDefaultValues } from "./runtimeConfig"; | ||
import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; | ||
import { | ||
@@ -339,6 +339,3 @@ EndpointsInputConfig, | ||
constructor(configuration: EFSClientConfig) { | ||
let _config_0 = { | ||
...__ClientDefaultValues, | ||
...configuration, | ||
}; | ||
let _config_0 = __getRuntimeConfig(configuration); | ||
let _config_1 = resolveRegionConfig(_config_0); | ||
@@ -345,0 +342,0 @@ let _config_2 = resolveEndpointsConfig(_config_1); |
{ | ||
"name": "@aws-sdk/client-efs", | ||
"description": "AWS SDK for JavaScript Efs Client for Node.js, Browser and React Native", | ||
"version": "3.22.0", | ||
"version": "3.23.0", | ||
"scripts": { | ||
@@ -30,35 +30,35 @@ "clean": "yarn remove-definitions && yarn remove-dist && yarn remove-documentation", | ||
"@aws-crypto/sha256-js": "^1.0.0", | ||
"@aws-sdk/client-sts": "3.22.0", | ||
"@aws-sdk/config-resolver": "3.22.0", | ||
"@aws-sdk/credential-provider-node": "3.22.0", | ||
"@aws-sdk/fetch-http-handler": "3.22.0", | ||
"@aws-sdk/hash-node": "3.22.0", | ||
"@aws-sdk/invalid-dependency": "3.22.0", | ||
"@aws-sdk/middleware-content-length": "3.22.0", | ||
"@aws-sdk/middleware-host-header": "3.22.0", | ||
"@aws-sdk/middleware-logger": "3.22.0", | ||
"@aws-sdk/middleware-retry": "3.22.0", | ||
"@aws-sdk/middleware-serde": "3.22.0", | ||
"@aws-sdk/middleware-signing": "3.22.0", | ||
"@aws-sdk/middleware-stack": "3.22.0", | ||
"@aws-sdk/middleware-user-agent": "3.22.0", | ||
"@aws-sdk/node-config-provider": "3.22.0", | ||
"@aws-sdk/node-http-handler": "3.22.0", | ||
"@aws-sdk/protocol-http": "3.22.0", | ||
"@aws-sdk/smithy-client": "3.22.0", | ||
"@aws-sdk/client-sts": "3.23.0", | ||
"@aws-sdk/config-resolver": "3.23.0", | ||
"@aws-sdk/credential-provider-node": "3.23.0", | ||
"@aws-sdk/fetch-http-handler": "3.23.0", | ||
"@aws-sdk/hash-node": "3.23.0", | ||
"@aws-sdk/invalid-dependency": "3.23.0", | ||
"@aws-sdk/middleware-content-length": "3.23.0", | ||
"@aws-sdk/middleware-host-header": "3.23.0", | ||
"@aws-sdk/middleware-logger": "3.23.0", | ||
"@aws-sdk/middleware-retry": "3.23.0", | ||
"@aws-sdk/middleware-serde": "3.23.0", | ||
"@aws-sdk/middleware-signing": "3.23.0", | ||
"@aws-sdk/middleware-stack": "3.23.0", | ||
"@aws-sdk/middleware-user-agent": "3.23.0", | ||
"@aws-sdk/node-config-provider": "3.23.0", | ||
"@aws-sdk/node-http-handler": "3.23.0", | ||
"@aws-sdk/protocol-http": "3.23.0", | ||
"@aws-sdk/smithy-client": "3.23.0", | ||
"@aws-sdk/types": "3.22.0", | ||
"@aws-sdk/url-parser": "3.22.0", | ||
"@aws-sdk/util-base64-browser": "3.22.0", | ||
"@aws-sdk/util-base64-node": "3.22.0", | ||
"@aws-sdk/util-body-length-browser": "3.22.0", | ||
"@aws-sdk/util-body-length-node": "3.22.0", | ||
"@aws-sdk/util-user-agent-browser": "3.22.0", | ||
"@aws-sdk/util-user-agent-node": "3.22.0", | ||
"@aws-sdk/util-utf8-browser": "3.22.0", | ||
"@aws-sdk/util-utf8-node": "3.22.0", | ||
"tslib": "^2.0.0", | ||
"@aws-sdk/url-parser": "3.23.0", | ||
"@aws-sdk/util-base64-browser": "3.23.0", | ||
"@aws-sdk/util-base64-node": "3.23.0", | ||
"@aws-sdk/util-body-length-browser": "3.23.0", | ||
"@aws-sdk/util-body-length-node": "3.23.0", | ||
"@aws-sdk/util-user-agent-browser": "3.23.0", | ||
"@aws-sdk/util-user-agent-node": "3.23.0", | ||
"@aws-sdk/util-utf8-browser": "3.23.0", | ||
"@aws-sdk/util-utf8-node": "3.23.0", | ||
"tslib": "^2.3.0", | ||
"uuid": "^8.3.2" | ||
}, | ||
"devDependencies": { | ||
"@aws-sdk/client-documentation-generator": "3.22.0", | ||
"@aws-sdk/client-documentation-generator": "3.23.0", | ||
"@types/node": "^12.7.5", | ||
@@ -65,0 +65,0 @@ "@types/uuid": "^8.3.0", |
@@ -11,4 +11,4 @@ import packageInfo from "./package.json"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser"; | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; | ||
@@ -18,21 +18,25 @@ /** | ||
*/ | ||
export const ClientDefaultValues: Required<ClientDefaults> = { | ||
...ClientSharedValues, | ||
runtime: "browser", | ||
base64Decoder: fromBase64, | ||
base64Encoder: toBase64, | ||
bodyLengthChecker: calculateBodyLength, | ||
credentialDefaultProvider: (_: unknown) => () => Promise.reject(new Error("Credential is missing")), | ||
defaultUserAgentProvider: defaultUserAgent({ | ||
serviceId: ClientSharedValues.serviceId, | ||
clientVersion: packageInfo.version, | ||
}), | ||
maxAttempts: DEFAULT_MAX_ATTEMPTS, | ||
region: invalidProvider("Region is missing"), | ||
requestHandler: new FetchHttpHandler(), | ||
retryModeProvider: () => Promise.resolve(DEFAULT_RETRY_MODE), | ||
sha256: Sha256, | ||
streamCollector, | ||
utf8Decoder: fromUtf8, | ||
utf8Encoder: toUtf8, | ||
export const getRuntimeConfig = (config: EFSClientConfig = {}) => { | ||
const clientSharedValues = getSharedRuntimeConfig(config); | ||
return { | ||
...clientSharedValues, | ||
...config, | ||
runtime: "browser", | ||
base64Decoder: config.base64Decoder ?? fromBase64, | ||
base64Encoder: config.base64Encoder ?? toBase64, | ||
bodyLengthChecker: config.bodyLengthChecker ?? calculateBodyLength, | ||
credentialDefaultProvider: | ||
config.credentialDefaultProvider ?? ((_: unknown) => () => Promise.reject(new Error("Credential is missing"))), | ||
defaultUserAgentProvider: | ||
config.defaultUserAgentProvider ?? | ||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
maxAttempts: config.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, | ||
region: config.region ?? invalidProvider("Region is missing"), | ||
requestHandler: config.requestHandler ?? new FetchHttpHandler(), | ||
retryModeProvider: config.retryModeProvider ?? (() => Promise.resolve(DEFAULT_RETRY_MODE)), | ||
sha256: config.sha256 ?? Sha256, | ||
streamCollector: config.streamCollector ?? streamCollector, | ||
utf8Decoder: config.utf8Decoder ?? fromUtf8, | ||
utf8Encoder: config.utf8Encoder ?? toUtf8, | ||
}; | ||
}; |
import { Sha256 } from "@aws-crypto/sha256-js"; | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { ClientDefaultValues as BrowserDefaults } from "./runtimeConfig.browser"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; | ||
@@ -8,6 +8,10 @@ /** | ||
*/ | ||
export const ClientDefaultValues: Required<ClientDefaults> = { | ||
...BrowserDefaults, | ||
runtime: "react-native", | ||
sha256: Sha256, | ||
export const getRuntimeConfig = (config: EFSClientConfig = {}) => { | ||
const browserDefaults = getBrowserRuntimeConfig(config); | ||
return { | ||
...browserDefaults, | ||
...config, | ||
runtime: "react-native", | ||
sha256: config.sha256 ?? Sha256, | ||
}; | ||
}; |
import { defaultRegionInfoProvider } from "./endpoints"; | ||
import { Logger as __Logger } from "@aws-sdk/types"; | ||
import { parseUrl } from "@aws-sdk/url-parser"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
@@ -8,9 +9,9 @@ /** | ||
*/ | ||
export const ClientSharedValues = { | ||
export const getRuntimeConfig = (config: EFSClientConfig = {}) => ({ | ||
apiVersion: "2015-02-01", | ||
disableHostPrefix: false, | ||
logger: {} as __Logger, | ||
regionInfoProvider: defaultRegionInfoProvider, | ||
serviceId: "EFS", | ||
urlParser: parseUrl, | ||
}; | ||
disableHostPrefix: config.disableHostPrefix ?? false, | ||
logger: config.logger ?? ({} as __Logger), | ||
regionInfoProvider: config.regionInfoProvider ?? defaultRegionInfoProvider, | ||
serviceId: config.serviceId ?? "EFS", | ||
urlParser: config.urlParser ?? parseUrl, | ||
}); |
@@ -14,4 +14,4 @@ import packageInfo from "./package.json"; | ||
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node"; | ||
import { ClientDefaults } from "./EFSClient"; | ||
import { ClientSharedValues } from "./runtimeConfig.shared"; | ||
import { EFSClientConfig } from "./EFSClient"; | ||
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; | ||
@@ -21,21 +21,25 @@ /** | ||
*/ | ||
export const ClientDefaultValues: Required<ClientDefaults> = { | ||
...ClientSharedValues, | ||
runtime: "node", | ||
base64Decoder: fromBase64, | ||
base64Encoder: toBase64, | ||
bodyLengthChecker: calculateBodyLength, | ||
credentialDefaultProvider: decorateDefaultCredentialProvider(credentialDefaultProvider), | ||
defaultUserAgentProvider: defaultUserAgent({ | ||
serviceId: ClientSharedValues.serviceId, | ||
clientVersion: packageInfo.version, | ||
}), | ||
maxAttempts: loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), | ||
region: loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), | ||
requestHandler: new NodeHttpHandler(), | ||
retryModeProvider: loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), | ||
sha256: Hash.bind(null, "sha256"), | ||
streamCollector, | ||
utf8Decoder: fromUtf8, | ||
utf8Encoder: toUtf8, | ||
export const getRuntimeConfig = (config: EFSClientConfig = {}) => { | ||
const clientSharedValues = getSharedRuntimeConfig(config); | ||
return { | ||
...clientSharedValues, | ||
...config, | ||
runtime: "node", | ||
base64Decoder: config.base64Decoder ?? fromBase64, | ||
base64Encoder: config.base64Encoder ?? toBase64, | ||
bodyLengthChecker: config.bodyLengthChecker ?? calculateBodyLength, | ||
credentialDefaultProvider: | ||
config.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), | ||
defaultUserAgentProvider: | ||
config.defaultUserAgentProvider ?? | ||
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), | ||
maxAttempts: config.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), | ||
region: config.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), | ||
requestHandler: config.requestHandler ?? new NodeHttpHandler(), | ||
retryModeProvider: config.retryModeProvider ?? loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), | ||
sha256: config.sha256 ?? Hash.bind(null, "sha256"), | ||
streamCollector: config.streamCollector ?? streamCollector, | ||
utf8Decoder: config.utf8Decoder ?? fromUtf8, | ||
utf8Encoder: config.utf8Encoder ?? toUtf8, | ||
}; | ||
}; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
2209479
35724
16
103
+ Added@aws-sdk/abort-controller@3.23.0(transitive)
+ Added@aws-sdk/client-sso@3.23.0(transitive)
+ Added@aws-sdk/client-sts@3.23.0(transitive)
+ Added@aws-sdk/config-resolver@3.23.0(transitive)
+ Added@aws-sdk/credential-provider-env@3.23.0(transitive)
+ Added@aws-sdk/credential-provider-imds@3.23.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.23.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.23.0(transitive)
+ Added@aws-sdk/credential-provider-process@3.23.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.23.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.23.0(transitive)
+ Added@aws-sdk/fetch-http-handler@3.23.0(transitive)
+ Added@aws-sdk/hash-node@3.23.0(transitive)
+ Added@aws-sdk/invalid-dependency@3.23.0(transitive)
+ Added@aws-sdk/is-array-buffer@3.23.0(transitive)
+ Added@aws-sdk/middleware-content-length@3.23.0(transitive)
+ Added@aws-sdk/middleware-host-header@3.23.0(transitive)
+ Added@aws-sdk/middleware-logger@3.23.0(transitive)
+ Added@aws-sdk/middleware-retry@3.23.0(transitive)
+ Added@aws-sdk/middleware-sdk-sts@3.23.0(transitive)
+ Added@aws-sdk/middleware-serde@3.23.0(transitive)
+ Added@aws-sdk/middleware-signing@3.23.0(transitive)
+ Added@aws-sdk/middleware-stack@3.23.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.23.0(transitive)
+ Added@aws-sdk/node-config-provider@3.23.0(transitive)
+ Added@aws-sdk/node-http-handler@3.23.0(transitive)
+ Added@aws-sdk/property-provider@3.23.0(transitive)
+ Added@aws-sdk/protocol-http@3.23.0(transitive)
+ Added@aws-sdk/querystring-builder@3.23.0(transitive)
+ Added@aws-sdk/querystring-parser@3.23.0(transitive)
+ Added@aws-sdk/shared-ini-file-loader@3.23.0(transitive)
+ Added@aws-sdk/signature-v4@3.23.0(transitive)
+ Added@aws-sdk/smithy-client@3.23.0(transitive)
+ Added@aws-sdk/url-parser@3.23.0(transitive)
+ Added@aws-sdk/util-base64-browser@3.23.0(transitive)
+ Added@aws-sdk/util-base64-node@3.23.0(transitive)
+ Added@aws-sdk/util-body-length-browser@3.23.0(transitive)
+ Added@aws-sdk/util-body-length-node@3.23.0(transitive)
+ Added@aws-sdk/util-buffer-from@3.23.0(transitive)
+ Added@aws-sdk/util-credentials@3.23.0(transitive)
+ Added@aws-sdk/util-hex-encoding@3.23.0(transitive)
+ Added@aws-sdk/util-uri-escape@3.23.0(transitive)
+ Added@aws-sdk/util-user-agent-browser@3.23.0(transitive)
+ Added@aws-sdk/util-user-agent-node@3.23.0(transitive)
+ Added@aws-sdk/util-utf8-browser@3.23.0(transitive)
+ Added@aws-sdk/util-utf8-node@3.23.0(transitive)
- Removed@aws-sdk/abort-controller@3.22.0(transitive)
- Removed@aws-sdk/client-sso@3.22.0(transitive)
- Removed@aws-sdk/client-sts@3.22.0(transitive)
- Removed@aws-sdk/config-resolver@3.22.0(transitive)
- Removed@aws-sdk/credential-provider-env@3.22.0(transitive)
- Removed@aws-sdk/credential-provider-imds@3.22.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.22.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.22.0(transitive)
- Removed@aws-sdk/credential-provider-process@3.22.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.22.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.22.0(transitive)
- Removed@aws-sdk/fetch-http-handler@3.22.0(transitive)
- Removed@aws-sdk/hash-node@3.22.0(transitive)
- Removed@aws-sdk/invalid-dependency@3.22.0(transitive)
- Removed@aws-sdk/is-array-buffer@3.22.0(transitive)
- Removed@aws-sdk/middleware-content-length@3.22.0(transitive)
- Removed@aws-sdk/middleware-host-header@3.22.0(transitive)
- Removed@aws-sdk/middleware-logger@3.22.0(transitive)
- Removed@aws-sdk/middleware-retry@3.22.0(transitive)
- Removed@aws-sdk/middleware-sdk-sts@3.22.0(transitive)
- Removed@aws-sdk/middleware-serde@3.22.0(transitive)
- Removed@aws-sdk/middleware-signing@3.22.0(transitive)
- Removed@aws-sdk/middleware-stack@3.22.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.22.0(transitive)
- Removed@aws-sdk/node-config-provider@3.22.0(transitive)
- Removed@aws-sdk/node-http-handler@3.22.0(transitive)
- Removed@aws-sdk/property-provider@3.22.0(transitive)
- Removed@aws-sdk/protocol-http@3.22.0(transitive)
- Removed@aws-sdk/querystring-builder@3.22.0(transitive)
- Removed@aws-sdk/querystring-parser@3.22.0(transitive)
- Removed@aws-sdk/shared-ini-file-loader@3.22.0(transitive)
- Removed@aws-sdk/signature-v4@3.22.0(transitive)
- Removed@aws-sdk/smithy-client@3.22.0(transitive)
- Removed@aws-sdk/url-parser@3.22.0(transitive)
- Removed@aws-sdk/util-base64-browser@3.22.0(transitive)
- Removed@aws-sdk/util-base64-node@3.22.0(transitive)
- Removed@aws-sdk/util-body-length-browser@3.22.0(transitive)
- Removed@aws-sdk/util-body-length-node@3.22.0(transitive)
- Removed@aws-sdk/util-buffer-from@3.22.0(transitive)
- Removed@aws-sdk/util-credentials@3.22.0(transitive)
- Removed@aws-sdk/util-hex-encoding@3.22.0(transitive)
- Removed@aws-sdk/util-uri-escape@3.22.0(transitive)
- Removed@aws-sdk/util-user-agent-browser@3.22.0(transitive)
- Removed@aws-sdk/util-user-agent-node@3.22.0(transitive)
- Removed@aws-sdk/util-utf8-browser@3.22.0(transitive)
- Removed@aws-sdk/util-utf8-node@3.22.0(transitive)
Updated@aws-sdk/client-sts@3.23.0
Updated@aws-sdk/hash-node@3.23.0
Updated@aws-sdk/url-parser@3.23.0
Updatedtslib@^2.3.0