@cdk8s/awscdk-resolver 0.0.663 → 0.0.665

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.
Files changed (26) hide show
  1. package/.jsii +4 -4
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/dist-cjs/index.js +1 -1
  4. package/node_modules/@aws-sdk/client-cloudformation/package.json +8 -8
  5. package/node_modules/@aws-sdk/core/package.json +5 -5
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +5 -5
  7. package/node_modules/@aws-sdk/credential-provider-http/package.json +7 -7
  8. package/node_modules/@aws-sdk/credential-provider-ini/package.json +12 -12
  9. package/node_modules/@aws-sdk/credential-provider-login/package.json +6 -6
  10. package/node_modules/@aws-sdk/credential-provider-node/package.json +10 -10
  11. package/node_modules/@aws-sdk/credential-provider-process/package.json +5 -5
  12. package/node_modules/@aws-sdk/credential-provider-sso/package.json +7 -7
  13. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +6 -6
  14. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  15. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  19. package/node_modules/@aws-sdk/nested-clients/package.json +8 -8
  20. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  21. package/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +8 -4
  22. package/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +8 -4
  23. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  24. package/node_modules/@aws-sdk/types/package.json +2 -2
  25. package/node_modules/@aws-sdk/xml-builder/package.json +2 -2
  26. package/package.json +5 -5
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.1115.0"
10
+ "@aws-sdk/client-cloudformation": "^3.1116.0"
11
11
  },
12
12
  "dependencies": {
13
13
  "aws-cdk-lib": "^2.195.0",
@@ -3993,7 +3993,7 @@
3993
3993
  "stability": "stable"
3994
3994
  },
3995
3995
  "homepage": "https://github.com/cdk8s-team/cdk8s-awscdk-resolver.git",
3996
- "jsiiVersion": "5.9.52 (build c132e73)",
3996
+ "jsiiVersion": "5.9.53 (build 16812ce)",
3997
3997
  "license": "Apache-2.0",
3998
3998
  "metadata": {
3999
3999
  "jsii": {
@@ -4083,6 +4083,6 @@
4083
4083
  "symbolId": "src/resolve:AwsCdkResolver"
4084
4084
  }
4085
4085
  },
4086
- "version": "0.0.663",
4087
- "fingerprint": "uyuSbkSQHbUajGh7QWOepysxX7rKjtfrN28UtXxRmNU="
4086
+ "version": "0.0.665",
4087
+ "fingerprint": "/hgQWblontTnCUHmuL8Ky+urDzsxtEfiNnDr0U3PU04="
4088
4088
  }
package/lib/resolve.js CHANGED
@@ -39,7 +39,7 @@ const child_process_1 = require("child_process");
39
39
  const path = __importStar(require("path"));
40
40
  const aws_cdk_lib_1 = require("aws-cdk-lib");
41
41
  class AwsCdkResolver {
42
- static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.663" };
42
+ static [JSII_RTTI_SYMBOL_1] = { fqn: "@cdk8s/awscdk-resolver.AwsCdkResolver", version: "0.0.665" };
43
43
  resolve(context) {
44
44
  if (!aws_cdk_lib_1.Token.isUnresolved(context.value)) {
45
45
  return;
@@ -69,7 +69,7 @@ const commonParams = {
69
69
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
70
70
  };
71
71
 
72
- var version = "3.1114.0";
72
+ var version = "3.1115.0";
73
73
  var packageInfo = {
74
74
  version: version};
75
75
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloudformation",
3
- "version": "3.1115.0",
3
+ "version": "3.1116.0",
4
4
  "description": "AWS SDK for JavaScript Cloudformation Client for Node.js, Browser and React Native",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cloudformation",
6
6
  "license": "Apache-2.0",
@@ -48,13 +48,13 @@
48
48
  "test:index": "tsc -p tsconfig.test.json && node ./test/index-objects.spec.mjs"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.977.8",
52
- "@aws-sdk/credential-provider-node": "^3.972.80",
53
- "@aws-sdk/types": "^3.974.4",
54
- "@smithy/core": "^3.31.1",
55
- "@smithy/fetch-http-handler": "^5.6.13",
56
- "@smithy/node-http-handler": "^4.9.13",
57
- "@smithy/types": "^4.16.1",
51
+ "@aws-sdk/core": "^3.977.9",
52
+ "@aws-sdk/credential-provider-node": "^3.972.81",
53
+ "@aws-sdk/types": "^3.974.5",
54
+ "@smithy/core": "^3.33.3",
55
+ "@smithy/fetch-http-handler": "^5.7.2",
56
+ "@smithy/node-http-handler": "^4.11.3",
57
+ "@smithy/types": "^4.17.2",
58
58
  "tslib": "^2.6.2"
59
59
  },
60
60
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/core",
3
- "version": "3.977.8",
3
+ "version": "3.977.9",
4
4
  "description": "Core functions & classes shared by multiple AWS SDK clients.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/core",
6
6
  "license": "Apache-2.0",
@@ -124,12 +124,12 @@
124
124
  "test:temp:retry": "SMITHY_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && AWS_NEW_RETRIES_2026=true node ./integ/retry.integ.spec && node ./integ/retry.integ.spec"
125
125
  },
126
126
  "dependencies": {
127
- "@aws-sdk/types": "^3.974.4",
128
- "@aws-sdk/xml-builder": "^3.972.39",
127
+ "@aws-sdk/types": "^3.974.5",
128
+ "@aws-sdk/xml-builder": "^3.972.40",
129
129
  "@aws/lambda-invoke-store": "^0.3.0",
130
- "@smithy/core": "^3.31.1",
130
+ "@smithy/core": "^3.33.3",
131
131
  "@smithy/signature-v4": "^5.6.12",
132
- "@smithy/types": "^4.16.1",
132
+ "@smithy/types": "^4.17.2",
133
133
  "bowser": "^2.11.0",
134
134
  "tslib": "^2.6.2"
135
135
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-env",
3
- "version": "3.972.69",
3
+ "version": "3.972.70",
4
4
  "description": "AWS credential provider that sources credentials from known environment variables",
5
5
  "keywords": [
6
6
  "aws",
@@ -43,10 +43,10 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/core": "^3.977.8",
47
- "@aws-sdk/types": "^3.974.4",
48
- "@smithy/core": "^3.31.1",
49
- "@smithy/types": "^4.16.1",
46
+ "@aws-sdk/core": "^3.977.9",
47
+ "@aws-sdk/types": "^3.974.5",
48
+ "@smithy/core": "^3.33.3",
49
+ "@smithy/types": "^4.17.2",
50
50
  "tslib": "^2.6.2"
51
51
  },
52
52
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-http",
3
- "version": "3.972.71",
3
+ "version": "3.972.72",
4
4
  "description": "AWS credential provider for containers and HTTP sources",
5
5
  "keywords": [
6
6
  "aws",
@@ -53,12 +53,12 @@
53
53
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
54
54
  },
55
55
  "dependencies": {
56
- "@aws-sdk/core": "^3.977.8",
57
- "@aws-sdk/types": "^3.974.4",
58
- "@smithy/core": "^3.31.1",
59
- "@smithy/fetch-http-handler": "^5.6.13",
60
- "@smithy/node-http-handler": "^4.9.13",
61
- "@smithy/types": "^4.16.1",
56
+ "@aws-sdk/core": "^3.977.9",
57
+ "@aws-sdk/types": "^3.974.5",
58
+ "@smithy/core": "^3.33.3",
59
+ "@smithy/fetch-http-handler": "^5.7.2",
60
+ "@smithy/node-http-handler": "^4.11.3",
61
+ "@smithy/types": "^4.17.2",
62
62
  "tslib": "^2.6.2"
63
63
  },
64
64
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-ini",
3
- "version": "3.973.14",
3
+ "version": "3.973.15",
4
4
  "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,18 +45,18 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.8",
49
- "@aws-sdk/credential-provider-env": "^3.972.69",
50
- "@aws-sdk/credential-provider-http": "^3.972.71",
51
- "@aws-sdk/credential-provider-login": "^3.972.76",
52
- "@aws-sdk/credential-provider-process": "^3.972.69",
53
- "@aws-sdk/credential-provider-sso": "^3.973.13",
54
- "@aws-sdk/credential-provider-web-identity": "^3.972.75",
55
- "@aws-sdk/nested-clients": "^3.997.43",
56
- "@aws-sdk/types": "^3.974.4",
57
- "@smithy/core": "^3.31.1",
48
+ "@aws-sdk/core": "^3.977.9",
49
+ "@aws-sdk/credential-provider-env": "^3.972.70",
50
+ "@aws-sdk/credential-provider-http": "^3.972.72",
51
+ "@aws-sdk/credential-provider-login": "^3.972.77",
52
+ "@aws-sdk/credential-provider-process": "^3.972.70",
53
+ "@aws-sdk/credential-provider-sso": "^3.973.14",
54
+ "@aws-sdk/credential-provider-web-identity": "^3.972.76",
55
+ "@aws-sdk/nested-clients": "^3.997.44",
56
+ "@aws-sdk/types": "^3.974.5",
57
+ "@smithy/core": "^3.33.3",
58
58
  "@smithy/credential-provider-imds": "^4.4.16",
59
- "@smithy/types": "^4.16.1",
59
+ "@smithy/types": "^4.17.2",
60
60
  "tslib": "^2.6.2"
61
61
  },
62
62
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-login",
3
- "version": "3.972.76",
3
+ "version": "3.972.77",
4
4
  "description": "AWS credential provider that sources credentials from aws login cached tokens",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,11 +45,11 @@
45
45
  "test:watch": "yarn g:vitest watch"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.8",
49
- "@aws-sdk/nested-clients": "^3.997.43",
50
- "@aws-sdk/types": "^3.974.4",
51
- "@smithy/core": "^3.31.1",
52
- "@smithy/types": "^4.16.1",
48
+ "@aws-sdk/core": "^3.977.9",
49
+ "@aws-sdk/nested-clients": "^3.997.44",
50
+ "@aws-sdk/types": "^3.974.5",
51
+ "@smithy/core": "^3.33.3",
52
+ "@smithy/types": "^4.17.2",
53
53
  "tslib": "^2.6.2"
54
54
  },
55
55
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-node",
3
- "version": "3.972.80",
3
+ "version": "3.972.81",
4
4
  "description": "AWS credential provider that sources credentials from a Node.JS environment. ",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,16 +45,16 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/credential-provider-env": "^3.972.69",
49
- "@aws-sdk/credential-provider-http": "^3.972.71",
50
- "@aws-sdk/credential-provider-ini": "^3.973.14",
51
- "@aws-sdk/credential-provider-process": "^3.972.69",
52
- "@aws-sdk/credential-provider-sso": "^3.973.13",
53
- "@aws-sdk/credential-provider-web-identity": "^3.972.75",
54
- "@aws-sdk/types": "^3.974.4",
55
- "@smithy/core": "^3.31.1",
48
+ "@aws-sdk/credential-provider-env": "^3.972.70",
49
+ "@aws-sdk/credential-provider-http": "^3.972.72",
50
+ "@aws-sdk/credential-provider-ini": "^3.973.15",
51
+ "@aws-sdk/credential-provider-process": "^3.972.70",
52
+ "@aws-sdk/credential-provider-sso": "^3.973.14",
53
+ "@aws-sdk/credential-provider-web-identity": "^3.972.76",
54
+ "@aws-sdk/types": "^3.974.5",
55
+ "@smithy/core": "^3.33.3",
56
56
  "@smithy/credential-provider-imds": "^4.4.16",
57
- "@smithy/types": "^4.16.1",
57
+ "@smithy/types": "^4.17.2",
58
58
  "tslib": "^2.6.2"
59
59
  },
60
60
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-process",
3
- "version": "3.972.69",
3
+ "version": "3.972.70",
4
4
  "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config",
5
5
  "keywords": [
6
6
  "aws",
@@ -43,10 +43,10 @@
43
43
  "test:watch": "yarn g:vitest watch"
44
44
  },
45
45
  "dependencies": {
46
- "@aws-sdk/core": "^3.977.8",
47
- "@aws-sdk/types": "^3.974.4",
48
- "@smithy/core": "^3.31.1",
49
- "@smithy/types": "^4.16.1",
46
+ "@aws-sdk/core": "^3.977.9",
47
+ "@aws-sdk/types": "^3.974.5",
48
+ "@smithy/core": "^3.33.3",
49
+ "@smithy/types": "^4.17.2",
50
50
  "tslib": "^2.6.2"
51
51
  },
52
52
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-sso",
3
- "version": "3.973.13",
3
+ "version": "3.973.14",
4
4
  "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -45,12 +45,12 @@
45
45
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-sdk/core": "^3.977.8",
49
- "@aws-sdk/nested-clients": "^3.997.43",
50
- "@aws-sdk/token-providers": "3.1111.0",
51
- "@aws-sdk/types": "^3.974.4",
52
- "@smithy/core": "^3.31.1",
53
- "@smithy/types": "^4.16.1",
48
+ "@aws-sdk/core": "^3.977.9",
49
+ "@aws-sdk/nested-clients": "^3.997.44",
50
+ "@aws-sdk/token-providers": "3.1116.0",
51
+ "@aws-sdk/types": "^3.974.5",
52
+ "@smithy/core": "^3.33.3",
53
+ "@smithy/types": "^4.17.2",
54
54
  "tslib": "^2.6.2"
55
55
  },
56
56
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.972.75",
3
+ "version": "3.972.76",
4
4
  "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials",
5
5
  "keywords": [
6
6
  "aws",
@@ -50,11 +50,11 @@
50
50
  "test:watch": "yarn g:vitest watch"
51
51
  },
52
52
  "dependencies": {
53
- "@aws-sdk/core": "^3.977.8",
54
- "@aws-sdk/nested-clients": "^3.997.43",
55
- "@aws-sdk/types": "^3.974.4",
56
- "@smithy/core": "^3.31.1",
57
- "@smithy/types": "^4.16.1",
53
+ "@aws-sdk/core": "^3.977.9",
54
+ "@aws-sdk/nested-clients": "^3.997.44",
55
+ "@aws-sdk/types": "^3.974.5",
56
+ "@smithy/core": "^3.33.3",
57
+ "@smithy/types": "^4.17.2",
58
58
  "tslib": "^2.6.2"
59
59
  },
60
60
  "devDependencies": {
@@ -83,7 +83,7 @@ const commonParams = {
83
83
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
84
84
  };
85
85
 
86
- var version = "3.997.42";
86
+ var version = "3.997.43";
87
87
  var packageInfo = {
88
88
  version: version};
89
89
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.42";
81
+ var version = "3.997.43";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.42";
81
+ var version = "3.997.43";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -78,7 +78,7 @@ const commonParams = {
78
78
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
79
79
  };
80
80
 
81
- var version = "3.997.42";
81
+ var version = "3.997.43";
82
82
  var packageInfo = {
83
83
  version: version};
84
84
 
@@ -258,7 +258,7 @@ const commonParams = {
258
258
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
259
259
  };
260
260
 
261
- var version = "3.997.42";
261
+ var version = "3.997.43";
262
262
  var packageInfo = {
263
263
  version: version};
264
264
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.997.43",
3
+ "version": "3.997.44",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
6
6
  "license": "Apache-2.0",
@@ -100,13 +100,13 @@
100
100
  "test:watch": "yarn g:vitest watch"
101
101
  },
102
102
  "dependencies": {
103
- "@aws-sdk/core": "^3.977.8",
104
- "@aws-sdk/signature-v4-multi-region": "^3.996.45",
105
- "@aws-sdk/types": "^3.974.4",
106
- "@smithy/core": "^3.31.1",
107
- "@smithy/fetch-http-handler": "^5.6.13",
108
- "@smithy/node-http-handler": "^4.9.13",
109
- "@smithy/types": "^4.16.1",
103
+ "@aws-sdk/core": "^3.977.9",
104
+ "@aws-sdk/signature-v4-multi-region": "^3.996.46",
105
+ "@aws-sdk/types": "^3.974.5",
106
+ "@smithy/core": "^3.33.3",
107
+ "@smithy/fetch-http-handler": "^5.7.2",
108
+ "@smithy/node-http-handler": "^4.11.3",
109
+ "@smithy/types": "^4.17.2",
110
110
  "tslib": "^2.6.2"
111
111
  },
112
112
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.996.45",
3
+ "version": "3.996.46",
4
4
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/signature-v4-multi-region",
5
5
  "license": "Apache-2.0",
6
6
  "author": {
@@ -42,9 +42,9 @@
42
42
  "test:browser": "yarn build:browser && yarn g:vitest run -c vitest.config.browser.mts"
43
43
  },
44
44
  "dependencies": {
45
- "@aws-sdk/types": "^3.974.4",
45
+ "@aws-sdk/types": "^3.974.5",
46
46
  "@smithy/signature-v4": "^5.6.12",
47
- "@smithy/types": "^4.16.1",
47
+ "@smithy/types": "^4.17.2",
48
48
  "tslib": "^2.6.2"
49
49
  },
50
50
  "devDependencies": {
@@ -61,7 +61,7 @@ const writeSSOTokenToFile = (id, ssoToken) => {
61
61
  return writeFile(tokenFilepath, tokenString);
62
62
  };
63
63
 
64
- const lastRefreshAttemptTime = new Date(0);
64
+ const lastRefreshAttemptTimes = new Map();
65
65
  const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
66
66
  init.logger?.debug("@aws-sdk/token-providers - fromSso");
67
67
  const profiles = await parseKnownFiles(init);
@@ -98,11 +98,15 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
98
98
  validateTokenKey("accessToken", ssoToken.accessToken);
99
99
  validateTokenKey("expiresAt", ssoToken.expiresAt);
100
100
  const { accessToken, expiresAt } = ssoToken;
101
- const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
101
+ const existingToken = {
102
+ token: accessToken,
103
+ expiration: new Date(expiresAt),
104
+ };
102
105
  if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
103
106
  return existingToken;
104
107
  }
105
- if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {
108
+ const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
109
+ if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
106
110
  validateTokenExpiry(existingToken);
107
111
  return existingToken;
108
112
  }
@@ -110,7 +114,7 @@ const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
110
114
  validateTokenKey("clientSecret", ssoToken.clientSecret, true);
111
115
  validateTokenKey("refreshToken", ssoToken.refreshToken, true);
112
116
  try {
113
- lastRefreshAttemptTime.setTime(Date.now());
117
+ lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
114
118
  const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
115
119
  validateTokenKey("accessToken", newSsoOidcToken.accessToken);
116
120
  validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
@@ -4,7 +4,7 @@ import { getNewSsoOidcToken } from "./getNewSsoOidcToken";
4
4
  import { validateTokenExpiry } from "./validateTokenExpiry";
5
5
  import { validateTokenKey } from "./validateTokenKey";
6
6
  import { writeSSOTokenToFile } from "./writeSSOTokenToFile";
7
- const lastRefreshAttemptTime = new Date(0);
7
+ const lastRefreshAttemptTimes = new Map();
8
8
  export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
9
9
  init.logger?.debug("@aws-sdk/token-providers - fromSso");
10
10
  const profiles = await parseKnownFiles(init);
@@ -41,11 +41,15 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
41
41
  validateTokenKey("accessToken", ssoToken.accessToken);
42
42
  validateTokenKey("expiresAt", ssoToken.expiresAt);
43
43
  const { accessToken, expiresAt } = ssoToken;
44
- const existingToken = { token: accessToken, expiration: new Date(expiresAt) };
44
+ const existingToken = {
45
+ token: accessToken,
46
+ expiration: new Date(expiresAt),
47
+ };
45
48
  if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) {
46
49
  return existingToken;
47
50
  }
48
- if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) {
51
+ const lastRefreshAttemptTime = lastRefreshAttemptTimes.get(ssoSessionName) ?? 0;
52
+ if (Date.now() - lastRefreshAttemptTime < 30 * 1000) {
49
53
  validateTokenExpiry(existingToken);
50
54
  return existingToken;
51
55
  }
@@ -53,7 +57,7 @@ export const fromSso = (init = {}) => async ({ callerClientConfig } = {}) => {
53
57
  validateTokenKey("clientSecret", ssoToken.clientSecret, true);
54
58
  validateTokenKey("refreshToken", ssoToken.refreshToken, true);
55
59
  try {
56
- lastRefreshAttemptTime.setTime(Date.now());
60
+ lastRefreshAttemptTimes.set(ssoSessionName, Date.now());
57
61
  const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion, init, callerClientConfig);
58
62
  validateTokenKey("accessToken", newSsoOidcToken.accessToken);
59
63
  validateTokenKey("expiresIn", newSsoOidcToken.expiresIn);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.1111.0",
3
+ "version": "3.1116.0",
4
4
  "description": "A collection of token providers",
5
5
  "keywords": [
6
6
  "aws",
@@ -48,11 +48,11 @@
48
48
  "test:integration:watch": "yarn g:vitest watch -c vitest.config.integ.mts"
49
49
  },
50
50
  "dependencies": {
51
- "@aws-sdk/core": "^3.977.8",
52
- "@aws-sdk/nested-clients": "^3.997.43",
53
- "@aws-sdk/types": "^3.974.4",
54
- "@smithy/core": "^3.31.1",
55
- "@smithy/types": "^4.16.1",
51
+ "@aws-sdk/core": "^3.977.9",
52
+ "@aws-sdk/nested-clients": "^3.997.44",
53
+ "@aws-sdk/types": "^3.974.5",
54
+ "@smithy/core": "^3.33.3",
55
+ "@smithy/types": "^4.17.2",
56
56
  "tslib": "^2.6.2"
57
57
  },
58
58
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/types",
3
- "version": "3.974.4",
3
+ "version": "3.974.5",
4
4
  "description": "Types for the AWS SDK",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/types",
6
6
  "license": "Apache-2.0",
@@ -41,7 +41,7 @@
41
41
  "test": "tsc -p tsconfig.test.json"
42
42
  },
43
43
  "dependencies": {
44
- "@smithy/types": "^4.16.1",
44
+ "@smithy/types": "^4.17.2",
45
45
  "tslib": "^2.6.2"
46
46
  },
47
47
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/xml-builder",
3
- "version": "3.972.39",
3
+ "version": "3.972.40",
4
4
  "description": "XML utilities for the AWS SDK",
5
5
  "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages-internal/xml-builder",
6
6
  "license": "Apache-2.0",
@@ -47,7 +47,7 @@
47
47
  "test:fuzz": "jazzer tests/xml-parser.fuzz.js corpus --sync -i xml-parser -- -max_total_time=300"
48
48
  },
49
49
  "dependencies": {
50
- "@smithy/types": "^4.16.1",
50
+ "@smithy/types": "^4.17.2",
51
51
  "tslib": "^2.6.2"
52
52
  },
53
53
  "devDependencies": {
package/package.json CHANGED
@@ -43,7 +43,7 @@
43
43
  "organization": false
44
44
  },
45
45
  "devDependencies": {
46
- "@cdk8s/projen-common": "0.1.19",
46
+ "@cdk8s/projen-common": "0.1.20",
47
47
  "@stylistic/eslint-plugin": "^2",
48
48
  "@types/fs-extra": "^11.0.4",
49
49
  "@types/jest": "^27",
@@ -53,7 +53,7 @@
53
53
  "aws-cdk": "^2.1138.0",
54
54
  "aws-cdk-lib": "2.195.0",
55
55
  "cdk8s": "2.68.91",
56
- "cdk8s-cli": "^2.207.53",
56
+ "cdk8s-cli": "^2.207.56",
57
57
  "commit-and-tag-version": "^12",
58
58
  "constructs": "10.3.0",
59
59
  "eslint": "^9",
@@ -67,7 +67,7 @@
67
67
  "jsii-docgen": "^10.5.0",
68
68
  "jsii-pacmak": "^1.139.0",
69
69
  "jsii-rosetta": "^5",
70
- "projen": "^0.101.34",
70
+ "projen": "^0.103.1",
71
71
  "ts-jest": "^27",
72
72
  "ts-node": "^10.9.2",
73
73
  "typescript": "^5.9.3"
@@ -78,7 +78,7 @@
78
78
  "constructs": "^10.3.0"
79
79
  },
80
80
  "dependencies": {
81
- "@aws-sdk/client-cloudformation": "^3.1115.0"
81
+ "@aws-sdk/client-cloudformation": "^3.1116.0"
82
82
  },
83
83
  "bundledDependencies": [
84
84
  "@aws-sdk/client-cloudformation"
@@ -92,7 +92,7 @@
92
92
  "publishConfig": {
93
93
  "access": "public"
94
94
  },
95
- "version": "0.0.663",
95
+ "version": "0.0.665",
96
96
  "jest": {
97
97
  "coverageProvider": "v8",
98
98
  "testMatch": [