@aws-sdk/client-sts
Advanced tools
Comparing version 3.631.0 to 3.632.0
@@ -1338,2 +1338,3 @@ "use strict"; | ||
); | ||
const isCompatibleRequestHandler = !isH2(requestHandler); | ||
stsClient = new stsClientCtor({ | ||
@@ -1343,3 +1344,3 @@ // A hack to make sts client uses the credential in current closure. | ||
region: resolvedRegion, | ||
requestHandler, | ||
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0, | ||
logger | ||
@@ -1380,5 +1381,6 @@ }); | ||
); | ||
const isCompatibleRequestHandler = !isH2(requestHandler); | ||
stsClient = new stsClientCtor({ | ||
region: resolvedRegion, | ||
requestHandler, | ||
requestHandler: isCompatibleRequestHandler ? requestHandler : void 0, | ||
logger | ||
@@ -1403,2 +1405,6 @@ }); | ||
}, "getDefaultRoleAssumerWithWebIdentity"); | ||
var isH2 = /* @__PURE__ */ __name((requestHandler) => { | ||
var _a2; | ||
return ((_a2 = requestHandler == null ? void 0 : requestHandler.metadata) == null ? void 0 : _a2.handlerProtocol) === "h2"; | ||
}, "isH2"); | ||
@@ -1405,0 +1411,0 @@ // src/defaultRoleAssumers.ts |
@@ -27,6 +27,7 @@ import { AssumeRoleCommand } from "./commands/AssumeRoleCommand"; | ||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger); | ||
const isCompatibleRequestHandler = !isH2(requestHandler); | ||
stsClient = new stsClientCtor({ | ||
credentialDefaultProvider: () => async () => closureSourceCreds, | ||
region: resolvedRegion, | ||
requestHandler: requestHandler, | ||
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined, | ||
logger: logger, | ||
@@ -56,5 +57,6 @@ }); | ||
const resolvedRegion = await resolveRegion(region, stsOptions?.parentClientConfig?.region, credentialProviderLogger); | ||
const isCompatibleRequestHandler = !isH2(requestHandler); | ||
stsClient = new stsClientCtor({ | ||
region: resolvedRegion, | ||
requestHandler: requestHandler, | ||
requestHandler: isCompatibleRequestHandler ? requestHandler : undefined, | ||
logger: logger, | ||
@@ -83,1 +85,4 @@ }); | ||
}); | ||
const isH2 = (requestHandler) => { | ||
return requestHandler?.metadata?.handlerProtocol === "h2"; | ||
}; |
{ | ||
"name": "@aws-sdk/client-sts", | ||
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", | ||
"version": "3.631.0", | ||
"version": "3.632.0", | ||
"scripts": { | ||
@@ -25,12 +25,12 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "5.2.0", | ||
"@aws-sdk/client-sso-oidc": "3.631.0", | ||
"@aws-sdk/client-sso-oidc": "3.632.0", | ||
"@aws-sdk/core": "3.629.0", | ||
"@aws-sdk/credential-provider-node": "3.631.0", | ||
"@aws-sdk/credential-provider-node": "3.632.0", | ||
"@aws-sdk/middleware-host-header": "3.620.0", | ||
"@aws-sdk/middleware-logger": "3.609.0", | ||
"@aws-sdk/middleware-recursion-detection": "3.620.0", | ||
"@aws-sdk/middleware-user-agent": "3.631.0", | ||
"@aws-sdk/middleware-user-agent": "3.632.0", | ||
"@aws-sdk/region-config-resolver": "3.614.0", | ||
"@aws-sdk/types": "3.609.0", | ||
"@aws-sdk/util-endpoints": "3.631.0", | ||
"@aws-sdk/util-endpoints": "3.632.0", | ||
"@aws-sdk/util-user-agent-browser": "3.609.0", | ||
@@ -37,0 +37,0 @@ "@aws-sdk/util-user-agent-node": "3.614.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
441986
8658
+ Added@aws-sdk/client-sso@3.632.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.632.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.632.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.632.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.632.0(transitive)
+ Added@aws-sdk/middleware-user-agent@3.632.0(transitive)
+ Added@aws-sdk/util-endpoints@3.632.0(transitive)
- Removed@aws-sdk/client-sso@3.631.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.631.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.631.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.631.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.631.0(transitive)
- Removed@aws-sdk/middleware-user-agent@3.631.0(transitive)
- Removed@aws-sdk/util-endpoints@3.631.0(transitive)