@cdk8s/awscdk-resolver 0.0.215 → 0.0.217
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/.jsii +3 -3
- package/lib/resolve.js +1 -1
- package/node_modules/@aws-sdk/client-cloudformation/package.json +14 -14
- package/node_modules/@aws-sdk/client-sso/package.json +11 -11
- package/node_modules/@aws-sdk/client-sso-oidc/package.json +13 -13
- package/node_modules/@aws-sdk/client-sts/package.json +13 -13
- package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +11 -10
- package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/resolveAwsSdkSigV4Config.js +10 -9
- package/node_modules/@aws-sdk/core/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-http/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +25 -13
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +10 -1
- package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +13 -10
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +3 -2
- package/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +4 -7
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -10
- package/node_modules/@aws-sdk/credential-provider-node/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +9 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +9 -2
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +3 -3
- package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +5 -6
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
- package/node_modules/@aws-sdk/middleware-host-header/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-logger/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-recursion-detection/package.json +2 -2
- package/node_modules/@aws-sdk/middleware-user-agent/package.json +4 -4
- package/node_modules/@aws-sdk/region-config-resolver/package.json +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +12 -3
- package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +12 -1
- package/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +2 -2
- package/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +5 -2
- package/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/types/dist-cjs/index.js +0 -1
- package/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +36 -1
- package/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +11 -0
- package/node_modules/@aws-sdk/types/package.json +1 -1
- package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-browser/package.json +2 -2
- package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
- package/package.json +4 -4
package/.jsii
CHANGED
@@ -7,7 +7,7 @@
|
|
7
7
|
"url": "https://aws.amazon.com"
|
8
8
|
},
|
9
9
|
"bundled": {
|
10
|
-
"@aws-sdk/client-cloudformation": "^3.
|
10
|
+
"@aws-sdk/client-cloudformation": "^3.713.0"
|
11
11
|
},
|
12
12
|
"dependencies": {
|
13
13
|
"aws-cdk-lib": "^2.106.1",
|
@@ -3674,6 +3674,6 @@
|
|
3674
3674
|
"symbolId": "src/resolve:AwsCdkResolver"
|
3675
3675
|
}
|
3676
3676
|
},
|
3677
|
-
"version": "0.0.
|
3678
|
-
"fingerprint": "
|
3677
|
+
"version": "0.0.217",
|
3678
|
+
"fingerprint": "VQn68YYSOk5VlXQfFYhoGEdbIXki5mYIu7+lVlPB9CI="
|
3679
3679
|
}
|
package/lib/resolve.js
CHANGED
@@ -61,5 +61,5 @@ class AwsCdkResolver {
|
|
61
61
|
}
|
62
62
|
exports.AwsCdkResolver = AwsCdkResolver;
|
63
63
|
_a = JSII_RTTI_SYMBOL_1;
|
64
|
-
AwsCdkResolver[_a] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.
|
64
|
+
AwsCdkResolver[_a] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.217" };
|
65
65
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzb2x2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXNvbHZlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7O0FBQUEsaURBQTZDO0FBQzdDLDZCQUE2QjtBQUM3Qiw2Q0FBK0U7QUFJL0UsTUFBYSxjQUFjO0lBRWxCLE9BQU8sQ0FBQyxPQUEwQjtRQUV2QyxJQUFJLENBQUMsbUJBQUssQ0FBQyxZQUFZLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxFQUFFLENBQUM7WUFDdkMsT0FBTztRQUNULENBQUM7UUFFRCxJQUFJLE9BQU8sT0FBTyxDQUFDLEtBQUssS0FBSyxRQUFRLEVBQUUsQ0FBQztZQUN0QywrREFBK0Q7WUFDL0QsbUJBQW1CO1lBQ25CLE1BQU0sSUFBSSxLQUFLLENBQUMsdUJBQXVCLE9BQU0sQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLHNCQUFzQixDQUFDLENBQUM7UUFDdEYsQ0FBQztRQUVELE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyxVQUFVLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzlDLElBQUksQ0FBQztZQUNILE1BQ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biAgICAgIHNjcmlwdCxcbiAgICAgIFN0YWNrLm9mKG91dHB1dCkuc3RhY2tOYW1lLFxuICAgICAgb3V0cHV0Lm5vZGUuaWQsXG4gICAgXSwgeyBlbmNvZGluZzogJ3V0Zi04Jywgc3RkaW86IFsncGlwZSddIH0pLnRvU3RyaW5nKCkudHJpbSgpKTtcblxuICB9XG5cbn1cbiJdfQ==
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-cloudformation",
|
3
3
|
"description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.713.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-cloudformation",
|
@@ -20,19 +20,19 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
23
|
-
"@aws-sdk/client-sso-oidc": "3.
|
24
|
-
"@aws-sdk/client-sts": "3.
|
25
|
-
"@aws-sdk/core": "3.
|
26
|
-
"@aws-sdk/credential-provider-node": "3.
|
27
|
-
"@aws-sdk/middleware-host-header": "3.
|
28
|
-
"@aws-sdk/middleware-logger": "3.
|
29
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
31
|
-
"@aws-sdk/region-config-resolver": "3.
|
32
|
-
"@aws-sdk/types": "3.
|
33
|
-
"@aws-sdk/util-endpoints": "3.
|
34
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
35
|
-
"@aws-sdk/util-user-agent-node": "3.
|
23
|
+
"@aws-sdk/client-sso-oidc": "3.713.0",
|
24
|
+
"@aws-sdk/client-sts": "3.713.0",
|
25
|
+
"@aws-sdk/core": "3.713.0",
|
26
|
+
"@aws-sdk/credential-provider-node": "3.713.0",
|
27
|
+
"@aws-sdk/middleware-host-header": "3.713.0",
|
28
|
+
"@aws-sdk/middleware-logger": "3.713.0",
|
29
|
+
"@aws-sdk/middleware-recursion-detection": "3.713.0",
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.713.0",
|
31
|
+
"@aws-sdk/region-config-resolver": "3.713.0",
|
32
|
+
"@aws-sdk/types": "3.713.0",
|
33
|
+
"@aws-sdk/util-endpoints": "3.713.0",
|
34
|
+
"@aws-sdk/util-user-agent-browser": "3.713.0",
|
35
|
+
"@aws-sdk/util-user-agent-node": "3.713.0",
|
36
36
|
"@smithy/config-resolver": "^3.0.13",
|
37
37
|
"@smithy/core": "^2.5.5",
|
38
38
|
"@smithy/fetch-http-handler": "^4.1.2",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-sso",
|
3
3
|
"description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.713.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
@@ -20,16 +20,16 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
23
|
-
"@aws-sdk/core": "3.
|
24
|
-
"@aws-sdk/middleware-host-header": "3.
|
25
|
-
"@aws-sdk/middleware-logger": "3.
|
26
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
27
|
-
"@aws-sdk/middleware-user-agent": "3.
|
28
|
-
"@aws-sdk/region-config-resolver": "3.
|
29
|
-
"@aws-sdk/types": "3.
|
30
|
-
"@aws-sdk/util-endpoints": "3.
|
31
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
32
|
-
"@aws-sdk/util-user-agent-node": "3.
|
23
|
+
"@aws-sdk/core": "3.713.0",
|
24
|
+
"@aws-sdk/middleware-host-header": "3.713.0",
|
25
|
+
"@aws-sdk/middleware-logger": "3.713.0",
|
26
|
+
"@aws-sdk/middleware-recursion-detection": "3.713.0",
|
27
|
+
"@aws-sdk/middleware-user-agent": "3.713.0",
|
28
|
+
"@aws-sdk/region-config-resolver": "3.713.0",
|
29
|
+
"@aws-sdk/types": "3.713.0",
|
30
|
+
"@aws-sdk/util-endpoints": "3.713.0",
|
31
|
+
"@aws-sdk/util-user-agent-browser": "3.713.0",
|
32
|
+
"@aws-sdk/util-user-agent-node": "3.713.0",
|
33
33
|
"@smithy/config-resolver": "^3.0.13",
|
34
34
|
"@smithy/core": "^2.5.5",
|
35
35
|
"@smithy/fetch-http-handler": "^4.1.2",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/client-sso-oidc",
|
3
3
|
"description": "AWS SDK for JavaScript Sso Oidc Client for Node.js, Browser and React Native",
|
4
|
-
"version": "3.
|
4
|
+
"version": "3.713.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sso-oidc",
|
@@ -20,17 +20,17 @@
|
|
20
20
|
"dependencies": {
|
21
21
|
"@aws-crypto/sha256-browser": "5.2.0",
|
22
22
|
"@aws-crypto/sha256-js": "5.2.0",
|
23
|
-
"@aws-sdk/core": "3.
|
24
|
-
"@aws-sdk/credential-provider-node": "3.
|
25
|
-
"@aws-sdk/middleware-host-header": "3.
|
26
|
-
"@aws-sdk/middleware-logger": "3.
|
27
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
28
|
-
"@aws-sdk/middleware-user-agent": "3.
|
29
|
-
"@aws-sdk/region-config-resolver": "3.
|
30
|
-
"@aws-sdk/types": "3.
|
31
|
-
"@aws-sdk/util-endpoints": "3.
|
32
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
33
|
-
"@aws-sdk/util-user-agent-node": "3.
|
23
|
+
"@aws-sdk/core": "3.713.0",
|
24
|
+
"@aws-sdk/credential-provider-node": "3.713.0",
|
25
|
+
"@aws-sdk/middleware-host-header": "3.713.0",
|
26
|
+
"@aws-sdk/middleware-logger": "3.713.0",
|
27
|
+
"@aws-sdk/middleware-recursion-detection": "3.713.0",
|
28
|
+
"@aws-sdk/middleware-user-agent": "3.713.0",
|
29
|
+
"@aws-sdk/region-config-resolver": "3.713.0",
|
30
|
+
"@aws-sdk/types": "3.713.0",
|
31
|
+
"@aws-sdk/util-endpoints": "3.713.0",
|
32
|
+
"@aws-sdk/util-user-agent-browser": "3.713.0",
|
33
|
+
"@aws-sdk/util-user-agent-node": "3.713.0",
|
34
34
|
"@smithy/config-resolver": "^3.0.13",
|
35
35
|
"@smithy/core": "^2.5.5",
|
36
36
|
"@smithy/fetch-http-handler": "^4.1.2",
|
@@ -85,7 +85,7 @@
|
|
85
85
|
},
|
86
86
|
"license": "Apache-2.0",
|
87
87
|
"peerDependencies": {
|
88
|
-
"@aws-sdk/client-sts": "^3.
|
88
|
+
"@aws-sdk/client-sts": "^3.713.0"
|
89
89
|
},
|
90
90
|
"browser": {
|
91
91
|
"./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser"
|
@@ -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.713.0",
|
5
5
|
"scripts": {
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-sts",
|
@@ -22,18 +22,18 @@
|
|
22
22
|
"dependencies": {
|
23
23
|
"@aws-crypto/sha256-browser": "5.2.0",
|
24
24
|
"@aws-crypto/sha256-js": "5.2.0",
|
25
|
-
"@aws-sdk/client-sso-oidc": "3.
|
26
|
-
"@aws-sdk/core": "3.
|
27
|
-
"@aws-sdk/credential-provider-node": "3.
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
31
|
-
"@aws-sdk/middleware-user-agent": "3.
|
32
|
-
"@aws-sdk/region-config-resolver": "3.
|
33
|
-
"@aws-sdk/types": "3.
|
34
|
-
"@aws-sdk/util-endpoints": "3.
|
35
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
36
|
-
"@aws-sdk/util-user-agent-node": "3.
|
25
|
+
"@aws-sdk/client-sso-oidc": "3.713.0",
|
26
|
+
"@aws-sdk/core": "3.713.0",
|
27
|
+
"@aws-sdk/credential-provider-node": "3.713.0",
|
28
|
+
"@aws-sdk/middleware-host-header": "3.713.0",
|
29
|
+
"@aws-sdk/middleware-logger": "3.713.0",
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.713.0",
|
31
|
+
"@aws-sdk/middleware-user-agent": "3.713.0",
|
32
|
+
"@aws-sdk/region-config-resolver": "3.713.0",
|
33
|
+
"@aws-sdk/types": "3.713.0",
|
34
|
+
"@aws-sdk/util-endpoints": "3.713.0",
|
35
|
+
"@aws-sdk/util-user-agent-browser": "3.713.0",
|
36
|
+
"@aws-sdk/util-user-agent-node": "3.713.0",
|
37
37
|
"@smithy/config-resolver": "^3.0.13",
|
38
38
|
"@smithy/core": "^2.5.5",
|
39
39
|
"@smithy/fetch-http-handler": "^4.1.2",
|
@@ -196,14 +196,14 @@ var import_core2 = require("@smithy/core");
|
|
196
196
|
var import_signature_v4 = require("@smithy/signature-v4");
|
197
197
|
var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
198
198
|
let isUserSupplied = false;
|
199
|
-
let
|
199
|
+
let credentialsProvider;
|
200
200
|
if (config.credentials) {
|
201
201
|
isUserSupplied = true;
|
202
|
-
|
202
|
+
credentialsProvider = (0, import_core2.memoizeIdentityProvider)(config.credentials, import_core2.isIdentityExpired, import_core2.doesIdentityRequireRefresh);
|
203
203
|
}
|
204
|
-
if (!
|
204
|
+
if (!credentialsProvider) {
|
205
205
|
if (config.credentialDefaultProvider) {
|
206
|
-
|
206
|
+
credentialsProvider = (0, import_core2.normalizeProvider)(
|
207
207
|
config.credentialDefaultProvider(
|
208
208
|
Object.assign({}, config, {
|
209
209
|
parentClientConfig: config
|
@@ -211,11 +211,12 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
211
211
|
)
|
212
212
|
);
|
213
213
|
} else {
|
214
|
-
|
214
|
+
credentialsProvider = /* @__PURE__ */ __name(async () => {
|
215
215
|
throw new Error("`credentials` is missing");
|
216
|
-
}, "
|
216
|
+
}, "credentialsProvider");
|
217
217
|
}
|
218
218
|
}
|
219
|
+
const boundCredentialsProvider = /* @__PURE__ */ __name(async () => credentialsProvider({ callerClientConfig: config }), "boundCredentialsProvider");
|
219
220
|
const {
|
220
221
|
// Default for signingEscapePath
|
221
222
|
signingEscapePath = true,
|
@@ -242,7 +243,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
242
243
|
config.signingName = config.signingName || signingService || config.serviceId;
|
243
244
|
const params = {
|
244
245
|
...config,
|
245
|
-
credentials:
|
246
|
+
credentials: boundCredentialsProvider,
|
246
247
|
region: config.signingRegion,
|
247
248
|
service: config.signingName,
|
248
249
|
sha256,
|
@@ -269,7 +270,7 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
269
270
|
config.signingName = config.signingName || signingService || config.serviceId;
|
270
271
|
const params = {
|
271
272
|
...config,
|
272
|
-
credentials:
|
273
|
+
credentials: boundCredentialsProvider,
|
273
274
|
region: config.signingRegion,
|
274
275
|
service: config.signingName,
|
275
276
|
sha256,
|
@@ -283,9 +284,9 @@ var resolveAwsSdkSigV4Config = /* @__PURE__ */ __name((config) => {
|
|
283
284
|
...config,
|
284
285
|
systemClockOffset,
|
285
286
|
signingEscapePath,
|
286
|
-
credentials: isUserSupplied ? async () =>
|
287
|
+
credentials: isUserSupplied ? async () => boundCredentialsProvider().then(
|
287
288
|
(creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_CODE", "e")
|
288
|
-
) :
|
289
|
+
) : boundCredentialsProvider,
|
289
290
|
signer
|
290
291
|
};
|
291
292
|
}, "resolveAwsSdkSigV4Config");
|
@@ -3,23 +3,24 @@ import { doesIdentityRequireRefresh, isIdentityExpired, memoizeIdentityProvider,
|
|
3
3
|
import { SignatureV4 } from "@smithy/signature-v4";
|
4
4
|
export const resolveAwsSdkSigV4Config = (config) => {
|
5
5
|
let isUserSupplied = false;
|
6
|
-
let
|
6
|
+
let credentialsProvider;
|
7
7
|
if (config.credentials) {
|
8
8
|
isUserSupplied = true;
|
9
|
-
|
9
|
+
credentialsProvider = memoizeIdentityProvider(config.credentials, isIdentityExpired, doesIdentityRequireRefresh);
|
10
10
|
}
|
11
|
-
if (!
|
11
|
+
if (!credentialsProvider) {
|
12
12
|
if (config.credentialDefaultProvider) {
|
13
|
-
|
13
|
+
credentialsProvider = normalizeProvider(config.credentialDefaultProvider(Object.assign({}, config, {
|
14
14
|
parentClientConfig: config,
|
15
15
|
})));
|
16
16
|
}
|
17
17
|
else {
|
18
|
-
|
18
|
+
credentialsProvider = async () => {
|
19
19
|
throw new Error("`credentials` is missing");
|
20
20
|
};
|
21
21
|
}
|
22
22
|
}
|
23
|
+
const boundCredentialsProvider = async () => credentialsProvider({ callerClientConfig: config });
|
23
24
|
const { signingEscapePath = true, systemClockOffset = config.systemClockOffset || 0, sha256, } = config;
|
24
25
|
let signer;
|
25
26
|
if (config.signer) {
|
@@ -40,7 +41,7 @@ export const resolveAwsSdkSigV4Config = (config) => {
|
|
40
41
|
config.signingName = config.signingName || signingService || config.serviceId;
|
41
42
|
const params = {
|
42
43
|
...config,
|
43
|
-
credentials:
|
44
|
+
credentials: boundCredentialsProvider,
|
44
45
|
region: config.signingRegion,
|
45
46
|
service: config.signingName,
|
46
47
|
sha256,
|
@@ -64,7 +65,7 @@ export const resolveAwsSdkSigV4Config = (config) => {
|
|
64
65
|
config.signingName = config.signingName || signingService || config.serviceId;
|
65
66
|
const params = {
|
66
67
|
...config,
|
67
|
-
credentials:
|
68
|
+
credentials: boundCredentialsProvider,
|
68
69
|
region: config.signingRegion,
|
69
70
|
service: config.signingName,
|
70
71
|
sha256,
|
@@ -79,8 +80,8 @@ export const resolveAwsSdkSigV4Config = (config) => {
|
|
79
80
|
systemClockOffset,
|
80
81
|
signingEscapePath,
|
81
82
|
credentials: isUserSupplied
|
82
|
-
? async () =>
|
83
|
-
:
|
83
|
+
? async () => boundCredentialsProvider().then((creds) => setCredentialFeature(creds, "CREDENTIALS_CODE", "e"))
|
84
|
+
: boundCredentialsProvider,
|
84
85
|
signer,
|
85
86
|
};
|
86
87
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/core",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "Core functions & classes shared by multiple AWS SDK clients.",
|
5
5
|
"scripts": {
|
6
6
|
"build": "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
@@ -81,7 +81,7 @@
|
|
81
81
|
},
|
82
82
|
"license": "Apache-2.0",
|
83
83
|
"dependencies": {
|
84
|
-
"@aws-sdk/types": "3.
|
84
|
+
"@aws-sdk/types": "3.713.0",
|
85
85
|
"@smithy/core": "^2.5.5",
|
86
86
|
"@smithy/node-config-provider": "^3.1.12",
|
87
87
|
"@smithy/property-provider": "^3.1.11",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-env",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "AWS credential provider that sources credentials from known environment variables",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -25,8 +25,8 @@
|
|
25
25
|
},
|
26
26
|
"license": "Apache-2.0",
|
27
27
|
"dependencies": {
|
28
|
-
"@aws-sdk/core": "3.
|
29
|
-
"@aws-sdk/types": "3.
|
28
|
+
"@aws-sdk/core": "3.713.0",
|
29
|
+
"@aws-sdk/types": "3.713.0",
|
30
30
|
"@smithy/property-provider": "^3.1.11",
|
31
31
|
"@smithy/types": "^3.7.2",
|
32
32
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-http",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "AWS credential provider for containers and HTTP sources",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -27,8 +27,8 @@
|
|
27
27
|
},
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@aws-sdk/core": "3.
|
31
|
-
"@aws-sdk/types": "3.
|
30
|
+
"@aws-sdk/core": "3.713.0",
|
31
|
+
"@aws-sdk/types": "3.713.0",
|
32
32
|
"@smithy/fetch-http-handler": "^4.1.2",
|
33
33
|
"@smithy/node-http-handler": "^3.3.2",
|
34
34
|
"@smithy/property-provider": "^3.1.11",
|
@@ -100,28 +100,31 @@ var isCredentialSourceProfile = /* @__PURE__ */ __name((arg, { profile, logger }
|
|
100
100
|
return withProviderProfile;
|
101
101
|
}, "isCredentialSourceProfile");
|
102
102
|
var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, profiles, options, visitedProfiles = {}) => {
|
103
|
-
var _a, _b;
|
103
|
+
var _a, _b, _c;
|
104
104
|
(_a = options.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
105
|
-
const
|
105
|
+
const profileData = profiles[profileName];
|
106
|
+
const { source_profile, region } = profileData;
|
106
107
|
if (!options.roleAssumer) {
|
107
108
|
const { getDefaultRoleAssumer } = await Promise.resolve().then(() => __toESM(require("@aws-sdk/client-sts")));
|
108
109
|
options.roleAssumer = getDefaultRoleAssumer(
|
109
110
|
{
|
110
111
|
...options.clientConfig,
|
111
112
|
credentialProviderLogger: options.logger,
|
112
|
-
parentClientConfig:
|
113
|
+
parentClientConfig: {
|
114
|
+
...options == null ? void 0 : options.parentClientConfig,
|
115
|
+
region: region ?? ((_b = options == null ? void 0 : options.parentClientConfig) == null ? void 0 : _b.region)
|
116
|
+
}
|
113
117
|
},
|
114
118
|
options.clientPlugins
|
115
119
|
);
|
116
120
|
}
|
117
|
-
const { source_profile } = data;
|
118
121
|
if (source_profile && source_profile in visitedProfiles) {
|
119
122
|
throw new import_property_provider.CredentialsProviderError(
|
120
123
|
`Detected a cycle attempting to resolve credentials for profile ${(0, import_shared_ini_file_loader.getProfileName)(options)}. Profiles visited: ` + Object.keys(visitedProfiles).join(", "),
|
121
124
|
{ logger: options.logger }
|
122
125
|
);
|
123
126
|
}
|
124
|
-
(
|
127
|
+
(_c = options.logger) == null ? void 0 : _c.debug(
|
125
128
|
`@aws-sdk/credential-provider-ini - finding credential resolver using ${source_profile ? `source_profile=[${source_profile}]` : `profile=[${profileName}]`}`
|
126
129
|
);
|
127
130
|
const sourceCredsProvider = source_profile ? resolveProfileData(
|
@@ -133,17 +136,17 @@ var resolveAssumeRoleCredentials = /* @__PURE__ */ __name(async (profileName, pr
|
|
133
136
|
[source_profile]: true
|
134
137
|
},
|
135
138
|
isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {})
|
136
|
-
) : (await resolveCredentialSource(
|
137
|
-
if (isCredentialSourceWithoutRoleArn(
|
139
|
+
) : (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
140
|
+
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
138
141
|
return sourceCredsProvider.then((creds) => (0, import_client.setCredentialFeature)(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
139
142
|
} else {
|
140
143
|
const params = {
|
141
|
-
RoleArn:
|
142
|
-
RoleSessionName:
|
143
|
-
ExternalId:
|
144
|
-
DurationSeconds: parseInt(
|
144
|
+
RoleArn: profileData.role_arn,
|
145
|
+
RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
|
146
|
+
ExternalId: profileData.external_id,
|
147
|
+
DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10)
|
145
148
|
};
|
146
|
-
const { mfa_serial } =
|
149
|
+
const { mfa_serial } = profileData;
|
147
150
|
if (mfa_serial) {
|
148
151
|
if (!options.mfaCodeProvider) {
|
149
152
|
throw new import_property_provider.CredentialsProviderError(
|
@@ -251,8 +254,17 @@ var resolveProfileData = /* @__PURE__ */ __name(async (profileName, profiles, op
|
|
251
254
|
}, "resolveProfileData");
|
252
255
|
|
253
256
|
// src/fromIni.ts
|
254
|
-
var fromIni = /* @__PURE__ */ __name((
|
257
|
+
var fromIni = /* @__PURE__ */ __name((_init = {}) => async ({ callerClientConfig } = {}) => {
|
255
258
|
var _a;
|
259
|
+
const init = {
|
260
|
+
..._init
|
261
|
+
};
|
262
|
+
if (callerClientConfig == null ? void 0 : callerClientConfig.region) {
|
263
|
+
init.parentClientConfig = {
|
264
|
+
region: callerClientConfig.region,
|
265
|
+
..._init.parentClientConfig
|
266
|
+
};
|
267
|
+
}
|
256
268
|
(_a = init.logger) == null ? void 0 : _a.debug("@aws-sdk/credential-provider-ini - fromIni");
|
257
269
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
258
270
|
return resolveProfileData((0, import_shared_ini_file_loader.getProfileName)(init), profiles, init);
|
@@ -1,6 +1,15 @@
|
|
1
1
|
import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader";
|
2
2
|
import { resolveProfileData } from "./resolveProfileData";
|
3
|
-
export const fromIni = (
|
3
|
+
export const fromIni = (_init = {}) => async ({ callerClientConfig } = {}) => {
|
4
|
+
const init = {
|
5
|
+
..._init,
|
6
|
+
};
|
7
|
+
if (callerClientConfig?.region) {
|
8
|
+
init.parentClientConfig = {
|
9
|
+
region: callerClientConfig.region,
|
10
|
+
..._init.parentClientConfig,
|
11
|
+
};
|
12
|
+
}
|
4
13
|
init.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");
|
5
14
|
const profiles = await parseKnownFiles(init);
|
6
15
|
return resolveProfileData(getProfileName(init), profiles, init);
|
package/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js
CHANGED
@@ -28,16 +28,19 @@ const isCredentialSourceProfile = (arg, { profile, logger }) => {
|
|
28
28
|
};
|
29
29
|
export const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => {
|
30
30
|
options.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");
|
31
|
-
const
|
31
|
+
const profileData = profiles[profileName];
|
32
|
+
const { source_profile, region } = profileData;
|
32
33
|
if (!options.roleAssumer) {
|
33
34
|
const { getDefaultRoleAssumer } = await import("@aws-sdk/client-sts");
|
34
35
|
options.roleAssumer = getDefaultRoleAssumer({
|
35
36
|
...options.clientConfig,
|
36
37
|
credentialProviderLogger: options.logger,
|
37
|
-
parentClientConfig:
|
38
|
+
parentClientConfig: {
|
39
|
+
...options?.parentClientConfig,
|
40
|
+
region: region ?? options?.parentClientConfig?.region,
|
41
|
+
},
|
38
42
|
}, options.clientPlugins);
|
39
43
|
}
|
40
|
-
const { source_profile } = data;
|
41
44
|
if (source_profile && source_profile in visitedProfiles) {
|
42
45
|
throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` +
|
43
46
|
` ${getProfileName(options)}. Profiles visited: ` +
|
@@ -49,18 +52,18 @@ export const resolveAssumeRoleCredentials = async (profileName, profiles, option
|
|
49
52
|
...visitedProfiles,
|
50
53
|
[source_profile]: true,
|
51
54
|
}, isCredentialSourceWithoutRoleArn(profiles[source_profile] ?? {}))
|
52
|
-
: (await resolveCredentialSource(
|
53
|
-
if (isCredentialSourceWithoutRoleArn(
|
55
|
+
: (await resolveCredentialSource(profileData.credential_source, profileName, options.logger)(options))();
|
56
|
+
if (isCredentialSourceWithoutRoleArn(profileData)) {
|
54
57
|
return sourceCredsProvider.then((creds) => setCredentialFeature(creds, "CREDENTIALS_PROFILE_SOURCE_PROFILE", "o"));
|
55
58
|
}
|
56
59
|
else {
|
57
60
|
const params = {
|
58
|
-
RoleArn:
|
59
|
-
RoleSessionName:
|
60
|
-
ExternalId:
|
61
|
-
DurationSeconds: parseInt(
|
61
|
+
RoleArn: profileData.role_arn,
|
62
|
+
RoleSessionName: profileData.role_session_name || `aws-sdk-js-${Date.now()}`,
|
63
|
+
ExternalId: profileData.external_id,
|
64
|
+
DurationSeconds: parseInt(profileData.duration_seconds || "3600", 10),
|
62
65
|
};
|
63
|
-
const { mfa_serial } =
|
66
|
+
const { mfa_serial } = profileData;
|
64
67
|
if (mfa_serial) {
|
65
68
|
if (!options.mfaCodeProvider) {
|
66
69
|
throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, { logger: options.logger, tryNextLink: false });
|
@@ -1,7 +1,8 @@
|
|
1
1
|
import type { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
2
2
|
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
3
|
+
import type { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
3
4
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
4
|
-
import type { AwsCredentialIdentity,
|
5
|
+
import type { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
5
6
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
6
7
|
/**
|
7
8
|
* @public
|
@@ -46,4 +47,4 @@ export interface FromIniInit extends SourceProfileInit, CredentialProviderOption
|
|
46
47
|
* Creates a credential provider that will read from ini files and supports
|
47
48
|
* role assumption and multi-factor authentication.
|
48
49
|
*/
|
49
|
-
export declare const fromIni: (
|
50
|
+
export declare const fromIni: (_init?: FromIniInit) => RuntimeConfigAwsCredentialIdentityProvider;
|
@@ -1,11 +1,8 @@
|
|
1
1
|
import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity";
|
2
2
|
import { CredentialProviderOptions } from "@aws-sdk/types";
|
3
|
+
import { RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
3
4
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
4
|
-
import {
|
5
|
-
AwsCredentialIdentity,
|
6
|
-
AwsCredentialIdentityProvider,
|
7
|
-
Pluggable,
|
8
|
-
} from "@smithy/types";
|
5
|
+
import { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
9
6
|
import { AssumeRoleParams } from "./resolveAssumeRoleCredentials";
|
10
7
|
export interface FromIniInit
|
11
8
|
extends SourceProfileInit,
|
@@ -22,5 +19,5 @@ export interface FromIniInit
|
|
22
19
|
clientPlugins?: Pluggable<any, any>[];
|
23
20
|
}
|
24
21
|
export declare const fromIni: (
|
25
|
-
|
26
|
-
) =>
|
22
|
+
_init?: FromIniInit
|
23
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-ini",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -13,7 +13,9 @@
|
|
13
13
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
14
14
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
15
15
|
"test": "yarn g:vitest run",
|
16
|
-
"test:watch": "yarn g:vitest watch"
|
16
|
+
"test:watch": "yarn g:vitest watch",
|
17
|
+
"test:integration": "yarn g:vitest run -c vitest.config.integ.ts",
|
18
|
+
"test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.ts"
|
17
19
|
},
|
18
20
|
"keywords": [
|
19
21
|
"aws",
|
@@ -25,13 +27,13 @@
|
|
25
27
|
},
|
26
28
|
"license": "Apache-2.0",
|
27
29
|
"dependencies": {
|
28
|
-
"@aws-sdk/core": "3.
|
29
|
-
"@aws-sdk/credential-provider-env": "3.
|
30
|
-
"@aws-sdk/credential-provider-http": "3.
|
31
|
-
"@aws-sdk/credential-provider-process": "3.
|
32
|
-
"@aws-sdk/credential-provider-sso": "3.
|
33
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
34
|
-
"@aws-sdk/types": "3.
|
30
|
+
"@aws-sdk/core": "3.713.0",
|
31
|
+
"@aws-sdk/credential-provider-env": "3.713.0",
|
32
|
+
"@aws-sdk/credential-provider-http": "3.713.0",
|
33
|
+
"@aws-sdk/credential-provider-process": "3.713.0",
|
34
|
+
"@aws-sdk/credential-provider-sso": "3.713.0",
|
35
|
+
"@aws-sdk/credential-provider-web-identity": "3.713.0",
|
36
|
+
"@aws-sdk/types": "3.713.0",
|
35
37
|
"@smithy/credential-provider-imds": "^3.2.8",
|
36
38
|
"@smithy/property-provider": "^3.1.11",
|
37
39
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
@@ -47,7 +49,7 @@
|
|
47
49
|
"typescript": "~4.9.5"
|
48
50
|
},
|
49
51
|
"peerDependencies": {
|
50
|
-
"@aws-sdk/client-sts": "^3.
|
52
|
+
"@aws-sdk/client-sts": "^3.713.0"
|
51
53
|
},
|
52
54
|
"types": "./dist-types/index.d.ts",
|
53
55
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-node",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "AWS credential provider that sources credentials from a Node.JS environment. ",
|
5
5
|
"engines": {
|
6
6
|
"node": ">=16.0.0"
|
@@ -16,7 +16,7 @@
|
|
16
16
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
17
17
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
18
18
|
"test": "yarn g:vitest run",
|
19
|
-
"test:integration": "jest -c jest.config.integ.js",
|
19
|
+
"test:integration": "yarn g:jest -c jest.config.integ.js",
|
20
20
|
"test:watch": "yarn g:vitest watch"
|
21
21
|
},
|
22
22
|
"keywords": [
|
@@ -29,13 +29,13 @@
|
|
29
29
|
},
|
30
30
|
"license": "Apache-2.0",
|
31
31
|
"dependencies": {
|
32
|
-
"@aws-sdk/credential-provider-env": "3.
|
33
|
-
"@aws-sdk/credential-provider-http": "3.
|
34
|
-
"@aws-sdk/credential-provider-ini": "3.
|
35
|
-
"@aws-sdk/credential-provider-process": "3.
|
36
|
-
"@aws-sdk/credential-provider-sso": "3.
|
37
|
-
"@aws-sdk/credential-provider-web-identity": "3.
|
38
|
-
"@aws-sdk/types": "3.
|
32
|
+
"@aws-sdk/credential-provider-env": "3.713.0",
|
33
|
+
"@aws-sdk/credential-provider-http": "3.713.0",
|
34
|
+
"@aws-sdk/credential-provider-ini": "3.713.0",
|
35
|
+
"@aws-sdk/credential-provider-process": "3.713.0",
|
36
|
+
"@aws-sdk/credential-provider-sso": "3.713.0",
|
37
|
+
"@aws-sdk/credential-provider-web-identity": "3.713.0",
|
38
|
+
"@aws-sdk/types": "3.713.0",
|
39
39
|
"@smithy/credential-provider-imds": "^3.2.8",
|
40
40
|
"@smithy/property-provider": "^3.1.11",
|
41
41
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-process",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -25,8 +25,8 @@
|
|
25
25
|
},
|
26
26
|
"license": "Apache-2.0",
|
27
27
|
"dependencies": {
|
28
|
-
"@aws-sdk/core": "3.
|
29
|
-
"@aws-sdk/types": "3.
|
28
|
+
"@aws-sdk/core": "3.713.0",
|
29
|
+
"@aws-sdk/types": "3.713.0",
|
30
30
|
"@smithy/property-provider": "^3.1.11",
|
31
31
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
32
32
|
"@smithy/types": "^3.7.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-sso",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -25,10 +25,10 @@
|
|
25
25
|
},
|
26
26
|
"license": "Apache-2.0",
|
27
27
|
"dependencies": {
|
28
|
-
"@aws-sdk/client-sso": "3.
|
29
|
-
"@aws-sdk/core": "3.
|
30
|
-
"@aws-sdk/token-providers": "3.
|
31
|
-
"@aws-sdk/types": "3.
|
28
|
+
"@aws-sdk/client-sso": "3.713.0",
|
29
|
+
"@aws-sdk/core": "3.713.0",
|
30
|
+
"@aws-sdk/token-providers": "3.713.0",
|
31
|
+
"@aws-sdk/types": "3.713.0",
|
32
32
|
"@smithy/property-provider": "^3.1.11",
|
33
33
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
34
34
|
"@smithy/types": "^3.7.2",
|
@@ -24,7 +24,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
24
24
|
};
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
26
26
|
exports.fromWebToken = void 0;
|
27
|
-
const fromWebToken = (init) => async () => {
|
27
|
+
const fromWebToken = (init) => async (awsIdentityProperties) => {
|
28
28
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
29
29
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
30
30
|
let { roleAssumerWithWebIdentity } = init;
|
@@ -33,7 +33,14 @@ const fromWebToken = (init) => async () => {
|
|
33
33
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
34
34
|
...init.clientConfig,
|
35
35
|
credentialProviderLogger: init.logger,
|
36
|
-
|
36
|
+
...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig
|
37
|
+
? {
|
38
|
+
parentClientConfig: {
|
39
|
+
region: awsIdentityProperties?.callerClientConfig?.region,
|
40
|
+
...init.parentClientConfig,
|
41
|
+
},
|
42
|
+
}
|
43
|
+
: {}),
|
37
44
|
}, init.clientPlugins);
|
38
45
|
}
|
39
46
|
return roleAssumerWithWebIdentity({
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export const fromWebToken = (init) => async () => {
|
1
|
+
export const fromWebToken = (init) => async (awsIdentityProperties) => {
|
2
2
|
init.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");
|
3
3
|
const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds } = init;
|
4
4
|
let { roleAssumerWithWebIdentity } = init;
|
@@ -7,7 +7,14 @@ export const fromWebToken = (init) => async () => {
|
|
7
7
|
roleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity({
|
8
8
|
...init.clientConfig,
|
9
9
|
credentialProviderLogger: init.logger,
|
10
|
-
|
10
|
+
...(awsIdentityProperties?.callerClientConfig?.region || init.parentClientConfig
|
11
|
+
? {
|
12
|
+
parentClientConfig: {
|
13
|
+
region: awsIdentityProperties?.callerClientConfig?.region,
|
14
|
+
...init.parentClientConfig,
|
15
|
+
},
|
16
|
+
}
|
17
|
+
: {}),
|
11
18
|
}, init.clientPlugins);
|
12
19
|
}
|
13
20
|
return roleAssumerWithWebIdentity({
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import type { CredentialProviderOptions } from "@aws-sdk/types";
|
2
|
-
import type { AwsCredentialIdentity,
|
1
|
+
import type { CredentialProviderOptions, RuntimeConfigAwsCredentialIdentityProvider } from "@aws-sdk/types";
|
2
|
+
import type { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
3
3
|
/**
|
4
4
|
* @public
|
5
5
|
*/
|
@@ -141,5 +141,5 @@ export interface FromWebTokenInit extends Omit<LowerCaseKey<AssumeRoleWithWebIde
|
|
141
141
|
/**
|
142
142
|
* @internal
|
143
143
|
*/
|
144
|
-
export declare const fromWebToken: (init: FromWebTokenInit) =>
|
144
|
+
export declare const fromWebToken: (init: FromWebTokenInit) => RuntimeConfigAwsCredentialIdentityProvider;
|
145
145
|
export {};
|
package/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts
CHANGED
@@ -1,9 +1,8 @@
|
|
1
|
-
import { CredentialProviderOptions } from "@aws-sdk/types";
|
2
1
|
import {
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
} from "@smithy/types";
|
2
|
+
CredentialProviderOptions,
|
3
|
+
RuntimeConfigAwsCredentialIdentityProvider,
|
4
|
+
} from "@aws-sdk/types";
|
5
|
+
import { AwsCredentialIdentity, Pluggable } from "@smithy/types";
|
7
6
|
export interface AssumeRoleWithWebIdentityParams {
|
8
7
|
RoleArn: string;
|
9
8
|
RoleSessionName: string;
|
@@ -36,5 +35,5 @@ export interface FromWebTokenInit
|
|
36
35
|
}
|
37
36
|
export declare const fromWebToken: (
|
38
37
|
init: FromWebTokenInit
|
39
|
-
) =>
|
38
|
+
) => RuntimeConfigAwsCredentialIdentityProvider;
|
40
39
|
export {};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/credential-provider-web-identity",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -33,8 +33,8 @@
|
|
33
33
|
},
|
34
34
|
"license": "Apache-2.0",
|
35
35
|
"dependencies": {
|
36
|
-
"@aws-sdk/core": "3.
|
37
|
-
"@aws-sdk/types": "3.
|
36
|
+
"@aws-sdk/core": "3.713.0",
|
37
|
+
"@aws-sdk/types": "3.713.0",
|
38
38
|
"@smithy/property-provider": "^3.1.11",
|
39
39
|
"@smithy/types": "^3.7.2",
|
40
40
|
"tslib": "^2.6.2"
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"typescript": "~4.9.5"
|
49
49
|
},
|
50
50
|
"peerDependencies": {
|
51
|
-
"@aws-sdk/client-sts": "^3.
|
51
|
+
"@aws-sdk/client-sts": "^3.713.0"
|
52
52
|
},
|
53
53
|
"types": "./dist-types/index.d.ts",
|
54
54
|
"engines": {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-host-header",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-host-header",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
|
-
"@aws-sdk/types": "3.
|
26
|
+
"@aws-sdk/types": "3.713.0",
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
28
28
|
"@smithy/types": "^3.7.2",
|
29
29
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-logger",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-logger",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
"module": "./dist-es/index.js",
|
25
25
|
"types": "./dist-types/index.d.ts",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/types": "3.
|
27
|
+
"@aws-sdk/types": "3.713.0",
|
28
28
|
"@smithy/types": "^3.7.2",
|
29
29
|
"tslib": "^2.6.2"
|
30
30
|
},
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-recursion-detection",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-recursion-detection",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
},
|
24
24
|
"license": "Apache-2.0",
|
25
25
|
"dependencies": {
|
26
|
-
"@aws-sdk/types": "3.
|
26
|
+
"@aws-sdk/types": "3.713.0",
|
27
27
|
"@smithy/protocol-http": "^4.1.8",
|
28
28
|
"@smithy/types": "^3.7.2",
|
29
29
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/middleware-user-agent",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline middleware-user-agent",
|
@@ -24,9 +24,9 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/core": "3.
|
28
|
-
"@aws-sdk/types": "3.
|
29
|
-
"@aws-sdk/util-endpoints": "3.
|
27
|
+
"@aws-sdk/core": "3.713.0",
|
28
|
+
"@aws-sdk/types": "3.713.0",
|
29
|
+
"@aws-sdk/util-endpoints": "3.713.0",
|
30
30
|
"@smithy/core": "^2.5.5",
|
31
31
|
"@smithy/protocol-http": "^4.1.8",
|
32
32
|
"@smithy/types": "^3.7.2",
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/region-config-resolver",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline region-config-resolver",
|
@@ -22,7 +22,7 @@
|
|
22
22
|
},
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"dependencies": {
|
25
|
-
"@aws-sdk/types": "3.
|
25
|
+
"@aws-sdk/types": "3.713.0",
|
26
26
|
"@smithy/node-config-provider": "^3.1.12",
|
27
27
|
"@smithy/types": "^3.7.2",
|
28
28
|
"@smithy/util-config-provider": "^3.0.0",
|
@@ -103,9 +103,18 @@ var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
|
|
103
103
|
|
104
104
|
// src/fromSso.ts
|
105
105
|
var lastRefreshAttemptTime = /* @__PURE__ */ new Date(0);
|
106
|
-
var fromSso = /* @__PURE__ */ __name((
|
107
|
-
var _a;
|
108
|
-
|
106
|
+
var fromSso = /* @__PURE__ */ __name((_init = {}) => async (awsIdentityProperties) => {
|
107
|
+
var _a, _b, _c;
|
108
|
+
const init = {
|
109
|
+
..._init,
|
110
|
+
...((_a = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _a.region) ? {
|
111
|
+
parentClientConfig: {
|
112
|
+
region: (_b = awsIdentityProperties == null ? void 0 : awsIdentityProperties.callerClientConfig) == null ? void 0 : _b.region,
|
113
|
+
..._init.parentClientConfig
|
114
|
+
}
|
115
|
+
} : {}
|
116
|
+
};
|
117
|
+
(_c = init.logger) == null ? void 0 : _c.debug("@aws-sdk/token-providers - fromSso");
|
109
118
|
const profiles = await (0, import_shared_ini_file_loader.parseKnownFiles)(init);
|
110
119
|
const profileName = (0, import_shared_ini_file_loader.getProfileName)(init);
|
111
120
|
const profile = profiles[profileName];
|
@@ -6,7 +6,18 @@ import { validateTokenExpiry } from "./validateTokenExpiry";
|
|
6
6
|
import { validateTokenKey } from "./validateTokenKey";
|
7
7
|
import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
|
8
8
|
const lastRefreshAttemptTime = new Date(0);
|
9
|
-
export const fromSso = (
|
9
|
+
export const fromSso = (_init = {}) => async (awsIdentityProperties) => {
|
10
|
+
const init = {
|
11
|
+
..._init,
|
12
|
+
...(awsIdentityProperties?.callerClientConfig?.region
|
13
|
+
? {
|
14
|
+
parentClientConfig: {
|
15
|
+
region: awsIdentityProperties?.callerClientConfig?.region,
|
16
|
+
..._init.parentClientConfig,
|
17
|
+
},
|
18
|
+
}
|
19
|
+
: {}),
|
20
|
+
};
|
10
21
|
init.logger?.debug("@aws-sdk/token-providers - fromSso");
|
11
22
|
const profiles = await parseKnownFiles(init);
|
12
23
|
const profileName = getProfileName(init);
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { CredentialProviderOptions,
|
1
|
+
import { CredentialProviderOptions, RuntimeConfigIdentityProvider, TokenIdentity } from "@aws-sdk/types";
|
2
2
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
3
3
|
export interface FromSsoInit extends SourceProfileInit, CredentialProviderOptions {
|
4
4
|
/**
|
@@ -9,4 +9,4 @@ export interface FromSsoInit extends SourceProfileInit, CredentialProviderOption
|
|
9
9
|
/**
|
10
10
|
* Creates a token provider that will read from SSO token cache or ssoOidc.createToken() call.
|
11
11
|
*/
|
12
|
-
export declare const fromSso: (
|
12
|
+
export declare const fromSso: (_init?: FromSsoInit) => RuntimeConfigIdentityProvider<TokenIdentity>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import {
|
2
2
|
CredentialProviderOptions,
|
3
|
-
|
3
|
+
RuntimeConfigIdentityProvider,
|
4
|
+
TokenIdentity,
|
4
5
|
} from "@aws-sdk/types";
|
5
6
|
import { SourceProfileInit } from "@smithy/shared-ini-file-loader";
|
6
7
|
export interface FromSsoInit
|
@@ -8,4 +9,6 @@ export interface FromSsoInit
|
|
8
9
|
CredentialProviderOptions {
|
9
10
|
clientConfig?: any;
|
10
11
|
}
|
11
|
-
export declare const fromSso: (
|
12
|
+
export declare const fromSso: (
|
13
|
+
_init?: FromSsoInit
|
14
|
+
) => RuntimeConfigIdentityProvider<TokenIdentity>;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/token-providers",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "A collection of token providers",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -27,7 +27,7 @@
|
|
27
27
|
},
|
28
28
|
"license": "Apache-2.0",
|
29
29
|
"dependencies": {
|
30
|
-
"@aws-sdk/types": "3.
|
30
|
+
"@aws-sdk/types": "3.713.0",
|
31
31
|
"@smithy/property-provider": "^3.1.11",
|
32
32
|
"@smithy/shared-ini-file-loader": "^3.1.12",
|
33
33
|
"@smithy/types": "^3.7.2",
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"typescript": "~4.9.5"
|
43
43
|
},
|
44
44
|
"peerDependencies": {
|
45
|
-
"@aws-sdk/client-sso-oidc": "^3.
|
45
|
+
"@aws-sdk/client-sso-oidc": "^3.713.0"
|
46
46
|
},
|
47
47
|
"types": "./dist-types/index.d.ts",
|
48
48
|
"engines": {
|
@@ -100,7 +100,6 @@ __export(src_exports, {
|
|
100
100
|
HttpRequest: () => import_types.HttpRequest,
|
101
101
|
HttpResponse: () => import_types.HttpResponse,
|
102
102
|
Identity: () => import_types.Identity,
|
103
|
-
IdentityProvider: () => import_types.IdentityProvider,
|
104
103
|
IniSection: () => import_types.IniSection,
|
105
104
|
InitializeHandler: () => import_types.InitializeHandler,
|
106
105
|
InitializeHandlerArguments: () => import_types.InitializeHandlerArguments,
|
@@ -1,6 +1,41 @@
|
|
1
1
|
import type { AwsCredentialIdentity } from "@smithy/types";
|
2
2
|
import type { AwsSdkCredentialsFeatures } from "../feature-ids";
|
3
|
-
export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
|
3
|
+
export { AwsCredentialIdentity, AwsCredentialIdentityProvider, IdentityProvider } from "@smithy/types";
|
4
|
+
/**
|
5
|
+
* @public
|
6
|
+
*/
|
7
|
+
export interface AwsIdentityProperties {
|
8
|
+
callerClientConfig?: {
|
9
|
+
region(): Promise<string>;
|
10
|
+
};
|
11
|
+
}
|
12
|
+
/**
|
13
|
+
* @public
|
14
|
+
*
|
15
|
+
* Variation of {@link IdentityProvider} which accepts a contextual
|
16
|
+
* client configuration that includes an AWS region and potentially other
|
17
|
+
* configurable fields.
|
18
|
+
*
|
19
|
+
* Used to link a credential provider to a client if it is being called
|
20
|
+
* in the context of a client.
|
21
|
+
*/
|
22
|
+
export type RuntimeConfigIdentityProvider<T> = (awsIdentityProperties?: AwsIdentityProperties) => Promise<T>;
|
23
|
+
/**
|
24
|
+
* @public
|
25
|
+
*
|
26
|
+
* Variation of {@link AwsCredentialIdentityProvider} which accepts a contextual
|
27
|
+
* client configuration that includes an AWS region and potentially other
|
28
|
+
* configurable fields.
|
29
|
+
*
|
30
|
+
* Used to link a credential provider to a client if it is being called
|
31
|
+
* in the context of a client.
|
32
|
+
*/
|
33
|
+
export type RuntimeConfigAwsCredentialIdentityProvider = RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
|
34
|
+
/**
|
35
|
+
* @public
|
36
|
+
*
|
37
|
+
* AwsCredentialIdentity with source attribution metadata.
|
38
|
+
*/
|
4
39
|
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
5
40
|
$source?: AwsSdkCredentialsFeatures;
|
6
41
|
};
|
@@ -3,7 +3,18 @@ import { AwsSdkCredentialsFeatures } from "../feature-ids";
|
|
3
3
|
export {
|
4
4
|
AwsCredentialIdentity,
|
5
5
|
AwsCredentialIdentityProvider,
|
6
|
+
IdentityProvider,
|
6
7
|
} from "@smithy/types";
|
8
|
+
export interface AwsIdentityProperties {
|
9
|
+
callerClientConfig?: {
|
10
|
+
region(): Promise<string>;
|
11
|
+
};
|
12
|
+
}
|
13
|
+
export type RuntimeConfigIdentityProvider<T> = (
|
14
|
+
awsIdentityProperties?: AwsIdentityProperties
|
15
|
+
) => Promise<T>;
|
16
|
+
export type RuntimeConfigAwsCredentialIdentityProvider =
|
17
|
+
RuntimeConfigIdentityProvider<AwsCredentialIdentity>;
|
7
18
|
export type AttributedAwsCredentialIdentity = AwsCredentialIdentity & {
|
8
19
|
$source?: AwsSdkCredentialsFeatures;
|
9
20
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-endpoints",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"description": "Utilities to help with endpoint resolution",
|
5
5
|
"main": "./dist-cjs/index.js",
|
6
6
|
"module": "./dist-es/index.js",
|
@@ -24,7 +24,7 @@
|
|
24
24
|
},
|
25
25
|
"license": "Apache-2.0",
|
26
26
|
"dependencies": {
|
27
|
-
"@aws-sdk/types": "3.
|
27
|
+
"@aws-sdk/types": "3.713.0",
|
28
28
|
"@smithy/types": "^3.7.2",
|
29
29
|
"@smithy/util-endpoints": "^2.1.7",
|
30
30
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-browser",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-browser",
|
@@ -23,7 +23,7 @@
|
|
23
23
|
"license": "Apache-2.0",
|
24
24
|
"react-native": "dist-es/index.native.js",
|
25
25
|
"dependencies": {
|
26
|
-
"@aws-sdk/types": "3.
|
26
|
+
"@aws-sdk/types": "3.713.0",
|
27
27
|
"@smithy/types": "^3.7.2",
|
28
28
|
"bowser": "^2.11.0",
|
29
29
|
"tslib": "^2.6.2"
|
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@aws-sdk/util-user-agent-node",
|
3
|
-
"version": "3.
|
3
|
+
"version": "3.713.0",
|
4
4
|
"scripts": {
|
5
5
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
6
6
|
"build:cjs": "node ../../scripts/compilation/inline util-user-agent-node",
|
@@ -21,8 +21,8 @@
|
|
21
21
|
},
|
22
22
|
"license": "Apache-2.0",
|
23
23
|
"dependencies": {
|
24
|
-
"@aws-sdk/middleware-user-agent": "3.
|
25
|
-
"@aws-sdk/types": "3.
|
24
|
+
"@aws-sdk/middleware-user-agent": "3.713.0",
|
25
|
+
"@aws-sdk/types": "3.713.0",
|
26
26
|
"@smithy/node-config-provider": "^3.1.12",
|
27
27
|
"@smithy/types": "^3.7.2",
|
28
28
|
"tslib": "^2.6.2"
|
package/package.json
CHANGED
@@ -62,9 +62,9 @@
|
|
62
62
|
"jest": "^27",
|
63
63
|
"jest-junit": "^15",
|
64
64
|
"jsii": "^5",
|
65
|
-
"jsii-diff": "^1.
|
65
|
+
"jsii-diff": "^1.106.0",
|
66
66
|
"jsii-docgen": "^10.5.0",
|
67
|
-
"jsii-pacmak": "^1.
|
67
|
+
"jsii-pacmak": "^1.106.0",
|
68
68
|
"jsii-rosetta": "^5",
|
69
69
|
"projen": "^0.91.0",
|
70
70
|
"ts-jest": "^27",
|
@@ -77,7 +77,7 @@
|
|
77
77
|
"constructs": "^10.3.0"
|
78
78
|
},
|
79
79
|
"dependencies": {
|
80
|
-
"@aws-sdk/client-cloudformation": "^3.
|
80
|
+
"@aws-sdk/client-cloudformation": "^3.713.0"
|
81
81
|
},
|
82
82
|
"bundledDependencies": [
|
83
83
|
"@aws-sdk/client-cloudformation"
|
@@ -93,7 +93,7 @@
|
|
93
93
|
"publishConfig": {
|
94
94
|
"access": "public"
|
95
95
|
},
|
96
|
-
"version": "0.0.
|
96
|
+
"version": "0.0.217",
|
97
97
|
"jest": {
|
98
98
|
"coverageProvider": "v8",
|
99
99
|
"testMatch": [
|