@smithy/middleware-endpoint
Advanced tools
Comparing version 3.0.5 to 3.1.0
@@ -82,2 +82,9 @@ var __defProp = Object.defineProperty; | ||
} | ||
if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") { | ||
return async () => { | ||
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; | ||
const configValue = (credentials == null ? void 0 : credentials.accountId) ?? (credentials == null ? void 0 : credentials.AccountId); | ||
return configValue; | ||
}; | ||
} | ||
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { | ||
@@ -84,0 +91,0 @@ return async () => { |
@@ -16,2 +16,9 @@ export const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => { | ||
} | ||
if (configKey === "accountId" || canonicalEndpointParamKey === "AccountId") { | ||
return async () => { | ||
const credentials = typeof config.credentials === "function" ? await config.credentials() : config.credentials; | ||
const configValue = credentials?.accountId ?? credentials?.AccountId; | ||
return configValue; | ||
}; | ||
} | ||
if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { | ||
@@ -18,0 +25,0 @@ return async () => { |
{ | ||
"name": "@smithy/middleware-endpoint", | ||
"version": "3.0.5", | ||
"version": "3.1.0", | ||
"scripts": { | ||
@@ -5,0 +5,0 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", |
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
57010
1047