@smithy/middleware-endpoint
Advanced tools
Comparing version 2.2.3 to 2.3.0
@@ -13,2 +13,10 @@ "use strict"; | ||
}; | ||
if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") { | ||
return async () => { | ||
var _a; | ||
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; | ||
const configValue = (_a = credentials === null || credentials === void 0 ? void 0 : credentials.credentialScope) !== null && _a !== void 0 ? _a : credentials === null || credentials === void 0 ? void 0 : credentials.CredentialScope; | ||
return configValue; | ||
}; | ||
} | ||
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { | ||
@@ -15,0 +23,0 @@ return async () => { |
@@ -9,2 +9,9 @@ export const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => { | ||
}; | ||
if (configKey === "credentialScope" || canonicalEndpointParamKey === "CredentialScope") { | ||
return async () => { | ||
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; | ||
const configValue = credentials?.credentialScope ?? credentials?.CredentialScope; | ||
return configValue; | ||
}; | ||
} | ||
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { | ||
@@ -11,0 +18,0 @@ return async () => { |
{ | ||
"name": "@smithy/middleware-endpoint", | ||
"version": "2.2.3", | ||
"version": "2.3.0", | ||
"scripts": { | ||
@@ -26,8 +26,8 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", | ||
"dependencies": { | ||
"@smithy/middleware-serde": "^2.0.15", | ||
"@smithy/node-config-provider": "^2.1.8", | ||
"@smithy/shared-ini-file-loader": "^2.2.7", | ||
"@smithy/types": "^2.7.0", | ||
"@smithy/url-parser": "^2.0.15", | ||
"@smithy/util-middleware": "^2.0.8", | ||
"@smithy/middleware-serde": "^2.0.16", | ||
"@smithy/node-config-provider": "^2.1.9", | ||
"@smithy/shared-ini-file-loader": "^2.2.8", | ||
"@smithy/types": "^2.8.0", | ||
"@smithy/url-parser": "^2.0.16", | ||
"@smithy/util-middleware": "^2.0.9", | ||
"tslib": "^2.5.0" | ||
@@ -34,0 +34,0 @@ }, |
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
57809
1036