@aws-sdk/client-sts 3.1048.0 → 3.1050.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js
CHANGED
|
@@ -12,7 +12,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
12
12
|
var runtimeConfig = require('./runtimeConfig');
|
|
13
13
|
var schemas_0 = require('./schemas/schemas_0');
|
|
14
14
|
var errors = require('./models/errors');
|
|
15
|
-
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
15
|
var STSServiceException = require('./models/STSServiceException');
|
|
17
16
|
|
|
18
17
|
const resolveClientEndpointParameters = (options) => {
|
|
@@ -274,7 +273,7 @@ const resolveRegion = async (_region, _parentRegion, credentialProviderLogger, l
|
|
|
274
273
|
const region = typeof _region === "function" ? await _region() : _region;
|
|
275
274
|
const parentRegion = typeof _parentRegion === "function" ? await _parentRegion() : _parentRegion;
|
|
276
275
|
let stsDefaultRegion = "";
|
|
277
|
-
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await
|
|
276
|
+
const resolvedRegion = region ?? parentRegion ?? (stsDefaultRegion = await client$1.stsRegionDefaultResolver(loaderConfig)());
|
|
278
277
|
credentialProviderLogger?.debug?.("@aws-sdk/client-sts::resolveRegion", "accepting first of:", `${region} (credential provider clientConfig)`, `${parentRegion} (contextual client)`, `${stsDefaultRegion} (STS default: AWS_REGION, profile region, or us-east-1)`);
|
|
279
278
|
return resolvedRegion;
|
|
280
279
|
};
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { setCredentialFeature } from "@aws-sdk/core/client";
|
|
2
|
-
import { stsRegionDefaultResolver } from "@aws-sdk/region-config-resolver";
|
|
1
|
+
import { setCredentialFeature, stsRegionDefaultResolver } from "@aws-sdk/core/client";
|
|
3
2
|
import { AssumeRoleCommand } from "./commands/AssumeRoleCommand";
|
|
4
3
|
import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand";
|
|
5
4
|
const getAccountIdFromAssumedRoleUser = (assumedRoleUser) => {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-sts",
|
|
3
3
|
"description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1050.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
29
29
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
30
|
-
"@aws-sdk/core": "^3.974.
|
|
31
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
30
|
+
"@aws-sdk/core": "^3.974.12",
|
|
31
|
+
"@aws-sdk/credential-provider-node": "^3.972.43",
|
|
32
32
|
"@aws-sdk/signature-v4-multi-region": "^3.996.27",
|
|
33
33
|
"@aws-sdk/types": "^3.973.8",
|
|
34
34
|
"@smithy/core": "^3.24.2",
|