@jjrawlins/cdk-ami-builder 0.0.20 → 0.0.22

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 (75) hide show
  1. package/.jsii +11 -11
  2. package/cdk-ami-builder/go.mod +1 -1
  3. package/cdk-ami-builder/jsii/jsii.go +2 -2
  4. package/cdk-ami-builder/version +1 -1
  5. package/lib/ImagePipeline/ImagePipeline.js +1 -1
  6. package/lib/Lambdas/CheckStateMachineStatus/CheckStateMachineStatus-function.js +1 -1
  7. package/lib/Lambdas/StartStateMachine/StartStateMachine-function.js +1 -1
  8. package/node_modules/@aws-sdk/client-ec2/package.json +16 -16
  9. package/node_modules/@aws-sdk/client-ecs/package.json +15 -15
  10. package/node_modules/@aws-sdk/client-kms/package.json +15 -15
  11. package/node_modules/@aws-sdk/client-s3/package.json +20 -20
  12. package/node_modules/@aws-sdk/client-secrets-manager/package.json +15 -15
  13. package/node_modules/@aws-sdk/client-sfn/package.json +15 -15
  14. package/node_modules/@aws-sdk/client-sns/package.json +15 -15
  15. package/node_modules/@aws-sdk/client-sqs/package.json +16 -16
  16. package/node_modules/@aws-sdk/client-ssm/package.json +15 -15
  17. package/node_modules/@aws-sdk/client-sso/package.json +14 -14
  18. package/node_modules/@aws-sdk/core/package.json +5 -5
  19. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  20. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
  21. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
  22. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  23. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  24. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -12
  25. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -2
  26. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -1
  27. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  28. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +19 -3
  29. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +8 -0
  30. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +7 -2
  31. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
  32. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +3 -0
  33. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  34. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +3 -1
  35. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +3 -1
  36. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -4
  37. package/node_modules/@aws-sdk/middleware-bucket-endpoint/package.json +3 -3
  38. package/node_modules/@aws-sdk/middleware-flexible-checksums/package.json +4 -4
  39. package/node_modules/@aws-sdk/middleware-sdk-ec2/package.json +4 -4
  40. package/node_modules/@aws-sdk/middleware-sdk-s3/package.json +6 -6
  41. package/node_modules/@aws-sdk/middleware-sdk-sqs/package.json +3 -3
  42. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  43. package/node_modules/@aws-sdk/nested-clients/package.json +14 -14
  44. package/node_modules/@aws-sdk/region-config-resolver/package.json +3 -3
  45. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +3 -3
  46. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  47. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  48. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  49. package/node_modules/@smithy/config-resolver/package.json +2 -2
  50. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  51. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  52. package/node_modules/@smithy/middleware-retry/package.json +3 -3
  53. package/node_modules/@smithy/node-config-provider/package.json +2 -2
  54. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +1 -0
  55. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +5 -1
  56. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +24 -2
  57. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +9 -5
  58. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  59. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +4 -0
  60. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +2 -1
  61. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +5 -1
  62. package/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  63. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +5 -1
  64. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +2 -1
  65. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +2 -0
  66. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
  67. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +5 -1
  68. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +2 -1
  69. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +2 -0
  70. package/node_modules/@smithy/shared-ini-file-loader/package.json +1 -1
  71. package/node_modules/@smithy/smithy-client/package.json +2 -2
  72. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  73. package/node_modules/@smithy/util-defaults-mode-node/package.json +5 -5
  74. package/node_modules/@smithy/util-endpoints/package.json +2 -2
  75. package/package.json +11 -11
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.fromTokenFile = void 0;
4
4
  const client_1 = require("@aws-sdk/core/client");
5
5
  const property_provider_1 = require("@smithy/property-provider");
6
+ const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader");
6
7
  const fs_1 = require("fs");
7
8
  const fromWebToken_1 = require("./fromWebToken");
8
9
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
@@ -20,7 +21,8 @@ const fromTokenFile = (init = {}) => async () => {
20
21
  }
21
22
  const credentials = await (0, fromWebToken_1.fromWebToken)({
22
23
  ...init,
23
- webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
24
+ webIdentityToken: shared_ini_file_loader_1.externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
25
+ (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }),
24
26
  roleArn,
25
27
  roleSessionName,
26
28
  })();
@@ -1,5 +1,6 @@
1
1
  import { setCredentialFeature } from "@aws-sdk/core/client";
2
2
  import { CredentialsProviderError } from "@smithy/property-provider";
3
+ import { externalDataInterceptor } from "@smithy/shared-ini-file-loader";
3
4
  import { readFileSync } from "fs";
4
5
  import { fromWebToken } from "./fromWebToken";
5
6
  const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE";
@@ -17,7 +18,8 @@ export const fromTokenFile = (init = {}) => async () => {
17
18
  }
18
19
  const credentials = await fromWebToken({
19
20
  ...init,
20
- webIdentityToken: readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
21
+ webIdentityToken: externalDataInterceptor?.getTokenRecord?.()[webIdentityTokenFile] ??
22
+ readFileSync(webIdentityTokenFile, { encoding: "ascii" }),
21
23
  roleArn,
22
24
  roleSessionName,
23
25
  })();
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/credential-provider-web-identity",
3
- "version": "3.888.0",
3
+ "version": "3.890.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,10 +33,11 @@
33
33
  },
34
34
  "license": "Apache-2.0",
35
35
  "dependencies": {
36
- "@aws-sdk/core": "3.888.0",
37
- "@aws-sdk/nested-clients": "3.888.0",
36
+ "@aws-sdk/core": "3.890.0",
37
+ "@aws-sdk/nested-clients": "3.890.0",
38
38
  "@aws-sdk/types": "3.887.0",
39
- "@smithy/property-provider": "^4.0.5",
39
+ "@smithy/property-provider": "^4.1.1",
40
+ "@smithy/shared-ini-file-loader": "^4.2.0",
40
41
  "@smithy/types": "^4.5.0",
41
42
  "tslib": "^2.6.2"
42
43
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-bucket-endpoint",
3
- "version": "3.887.0",
3
+ "version": "3.890.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-bucket-endpoint",
@@ -24,10 +24,10 @@
24
24
  "dependencies": {
25
25
  "@aws-sdk/types": "3.887.0",
26
26
  "@aws-sdk/util-arn-parser": "3.873.0",
27
- "@smithy/node-config-provider": "^4.2.1",
27
+ "@smithy/node-config-provider": "^4.2.2",
28
28
  "@smithy/protocol-http": "^5.2.1",
29
29
  "@smithy/types": "^4.5.0",
30
- "@smithy/util-config-provider": "^4.0.0",
30
+ "@smithy/util-config-provider": "^4.1.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
33
33
  "devDependencies": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-flexible-checksums",
3
- "version": "3.888.0",
3
+ "version": "3.890.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-flexible-checksums",
@@ -36,10 +36,10 @@
36
36
  "@aws-crypto/crc32": "5.2.0",
37
37
  "@aws-crypto/crc32c": "5.2.0",
38
38
  "@aws-crypto/util": "5.2.0",
39
- "@aws-sdk/core": "3.888.0",
39
+ "@aws-sdk/core": "3.890.0",
40
40
  "@aws-sdk/types": "3.887.0",
41
- "@smithy/is-array-buffer": "^4.0.0",
42
- "@smithy/node-config-provider": "^4.2.1",
41
+ "@smithy/is-array-buffer": "^4.1.0",
42
+ "@smithy/node-config-provider": "^4.2.2",
43
43
  "@smithy/protocol-http": "^5.2.1",
44
44
  "@smithy/types": "^4.5.0",
45
45
  "@smithy/util-middleware": "^4.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-ec2",
3
- "version": "3.887.0",
3
+ "version": "3.890.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-sdk-ec2",
@@ -27,10 +27,10 @@
27
27
  "dependencies": {
28
28
  "@aws-sdk/types": "3.887.0",
29
29
  "@aws-sdk/util-format-url": "3.887.0",
30
- "@smithy/middleware-endpoint": "^4.2.1",
30
+ "@smithy/middleware-endpoint": "^4.2.2",
31
31
  "@smithy/protocol-http": "^5.2.1",
32
- "@smithy/signature-v4": "^5.1.3",
33
- "@smithy/smithy-client": "^4.6.1",
32
+ "@smithy/signature-v4": "^5.2.1",
33
+ "@smithy/smithy-client": "^4.6.2",
34
34
  "@smithy/types": "^4.5.0",
35
35
  "tslib": "^2.6.2"
36
36
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-s3",
3
- "version": "3.888.0",
3
+ "version": "3.890.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-sdk-s3",
@@ -27,16 +27,16 @@
27
27
  },
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@aws-sdk/core": "3.888.0",
30
+ "@aws-sdk/core": "3.890.0",
31
31
  "@aws-sdk/types": "3.887.0",
32
32
  "@aws-sdk/util-arn-parser": "3.873.0",
33
33
  "@smithy/core": "^3.11.0",
34
- "@smithy/node-config-provider": "^4.2.1",
34
+ "@smithy/node-config-provider": "^4.2.2",
35
35
  "@smithy/protocol-http": "^5.2.1",
36
- "@smithy/signature-v4": "^5.1.3",
37
- "@smithy/smithy-client": "^4.6.1",
36
+ "@smithy/signature-v4": "^5.2.1",
37
+ "@smithy/smithy-client": "^4.6.2",
38
38
  "@smithy/types": "^4.5.0",
39
- "@smithy/util-config-provider": "^4.0.0",
39
+ "@smithy/util-config-provider": "^4.1.0",
40
40
  "@smithy/util-middleware": "^4.1.1",
41
41
  "@smithy/util-stream": "^4.3.1",
42
42
  "@smithy/util-utf8": "^4.1.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-sdk-sqs",
3
- "version": "3.887.0",
3
+ "version": "3.890.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-sdk-sqs",
@@ -24,9 +24,9 @@
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
26
  "@aws-sdk/types": "3.887.0",
27
- "@smithy/smithy-client": "^4.6.1",
27
+ "@smithy/smithy-client": "^4.6.2",
28
28
  "@smithy/types": "^4.5.0",
29
- "@smithy/util-hex-encoding": "^4.0.0",
29
+ "@smithy/util-hex-encoding": "^4.1.0",
30
30
  "@smithy/util-utf8": "^4.1.0",
31
31
  "tslib": "^2.6.2"
32
32
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/middleware-user-agent",
3
- "version": "3.888.0",
3
+ "version": "3.890.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.888.0",
27
+ "@aws-sdk/core": "3.890.0",
28
28
  "@aws-sdk/types": "3.887.0",
29
- "@aws-sdk/util-endpoints": "3.887.0",
29
+ "@aws-sdk/util-endpoints": "3.890.0",
30
30
  "@smithy/core": "^3.11.0",
31
31
  "@smithy/protocol-http": "^5.2.1",
32
32
  "@smithy/types": "^4.5.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/nested-clients",
3
- "version": "3.888.0",
3
+ "version": "3.890.0",
4
4
  "description": "Nested clients for AWS SDK packages.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,38 +28,38 @@
28
28
  "dependencies": {
29
29
  "@aws-crypto/sha256-browser": "5.2.0",
30
30
  "@aws-crypto/sha256-js": "5.2.0",
31
- "@aws-sdk/core": "3.888.0",
31
+ "@aws-sdk/core": "3.890.0",
32
32
  "@aws-sdk/middleware-host-header": "3.887.0",
33
33
  "@aws-sdk/middleware-logger": "3.887.0",
34
34
  "@aws-sdk/middleware-recursion-detection": "3.887.0",
35
- "@aws-sdk/middleware-user-agent": "3.888.0",
36
- "@aws-sdk/region-config-resolver": "3.887.0",
35
+ "@aws-sdk/middleware-user-agent": "3.890.0",
36
+ "@aws-sdk/region-config-resolver": "3.890.0",
37
37
  "@aws-sdk/types": "3.887.0",
38
- "@aws-sdk/util-endpoints": "3.887.0",
38
+ "@aws-sdk/util-endpoints": "3.890.0",
39
39
  "@aws-sdk/util-user-agent-browser": "3.887.0",
40
- "@aws-sdk/util-user-agent-node": "3.888.0",
41
- "@smithy/config-resolver": "^4.2.1",
40
+ "@aws-sdk/util-user-agent-node": "3.890.0",
41
+ "@smithy/config-resolver": "^4.2.2",
42
42
  "@smithy/core": "^3.11.0",
43
43
  "@smithy/fetch-http-handler": "^5.2.1",
44
44
  "@smithy/hash-node": "^4.1.1",
45
45
  "@smithy/invalid-dependency": "^4.1.1",
46
46
  "@smithy/middleware-content-length": "^4.1.1",
47
- "@smithy/middleware-endpoint": "^4.2.1",
48
- "@smithy/middleware-retry": "^4.2.1",
47
+ "@smithy/middleware-endpoint": "^4.2.2",
48
+ "@smithy/middleware-retry": "^4.2.2",
49
49
  "@smithy/middleware-serde": "^4.1.1",
50
50
  "@smithy/middleware-stack": "^4.1.1",
51
- "@smithy/node-config-provider": "^4.2.1",
51
+ "@smithy/node-config-provider": "^4.2.2",
52
52
  "@smithy/node-http-handler": "^4.2.1",
53
53
  "@smithy/protocol-http": "^5.2.1",
54
- "@smithy/smithy-client": "^4.6.1",
54
+ "@smithy/smithy-client": "^4.6.2",
55
55
  "@smithy/types": "^4.5.0",
56
56
  "@smithy/url-parser": "^4.1.1",
57
57
  "@smithy/util-base64": "^4.1.0",
58
58
  "@smithy/util-body-length-browser": "^4.1.0",
59
59
  "@smithy/util-body-length-node": "^4.1.0",
60
- "@smithy/util-defaults-mode-browser": "^4.1.1",
61
- "@smithy/util-defaults-mode-node": "^4.1.1",
62
- "@smithy/util-endpoints": "^3.1.1",
60
+ "@smithy/util-defaults-mode-browser": "^4.1.2",
61
+ "@smithy/util-defaults-mode-node": "^4.1.2",
62
+ "@smithy/util-endpoints": "^3.1.2",
63
63
  "@smithy/util-middleware": "^4.1.1",
64
64
  "@smithy/util-retry": "^4.1.1",
65
65
  "@smithy/util-utf8": "^4.1.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/region-config-resolver",
3
- "version": "3.887.0",
3
+ "version": "3.890.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",
@@ -23,9 +23,9 @@
23
23
  "license": "Apache-2.0",
24
24
  "dependencies": {
25
25
  "@aws-sdk/types": "3.887.0",
26
- "@smithy/node-config-provider": "^4.2.1",
26
+ "@smithy/node-config-provider": "^4.2.2",
27
27
  "@smithy/types": "^4.5.0",
28
- "@smithy/util-config-provider": "^4.0.0",
28
+ "@smithy/util-config-provider": "^4.1.0",
29
29
  "@smithy/util-middleware": "^4.1.1",
30
30
  "tslib": "^2.6.2"
31
31
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/signature-v4-multi-region",
3
- "version": "3.888.0",
3
+ "version": "3.890.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 signature-v4-multi-region",
@@ -24,10 +24,10 @@
24
24
  },
25
25
  "license": "Apache-2.0",
26
26
  "dependencies": {
27
- "@aws-sdk/middleware-sdk-s3": "3.888.0",
27
+ "@aws-sdk/middleware-sdk-s3": "3.890.0",
28
28
  "@aws-sdk/types": "3.887.0",
29
29
  "@smithy/protocol-http": "^5.2.1",
30
- "@smithy/signature-v4": "^5.1.3",
30
+ "@smithy/signature-v4": "^5.2.1",
31
31
  "@smithy/types": "^4.5.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/token-providers",
3
- "version": "3.888.0",
3
+ "version": "3.890.0",
4
4
  "description": "A collection of token providers",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "license": "Apache-2.0",
31
31
  "dependencies": {
32
- "@aws-sdk/core": "3.888.0",
33
- "@aws-sdk/nested-clients": "3.888.0",
32
+ "@aws-sdk/core": "3.890.0",
33
+ "@aws-sdk/nested-clients": "3.890.0",
34
34
  "@aws-sdk/types": "3.887.0",
35
- "@smithy/property-provider": "^4.0.5",
36
- "@smithy/shared-ini-file-loader": "^4.0.5",
35
+ "@smithy/property-provider": "^4.1.1",
36
+ "@smithy/shared-ini-file-loader": "^4.2.0",
37
37
  "@smithy/types": "^4.5.0",
38
38
  "tslib": "^2.6.2"
39
39
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-endpoints",
3
- "version": "3.887.0",
3
+ "version": "3.890.0",
4
4
  "description": "Utilities to help with endpoint resolution",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,7 +28,7 @@
28
28
  "@aws-sdk/types": "3.887.0",
29
29
  "@smithy/types": "^4.5.0",
30
30
  "@smithy/url-parser": "^4.1.1",
31
- "@smithy/util-endpoints": "^3.1.1",
31
+ "@smithy/util-endpoints": "^3.1.2",
32
32
  "tslib": "^2.6.2"
33
33
  },
34
34
  "engines": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-sdk/util-user-agent-node",
3
- "version": "3.888.0",
3
+ "version": "3.890.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,9 +21,9 @@
21
21
  },
22
22
  "license": "Apache-2.0",
23
23
  "dependencies": {
24
- "@aws-sdk/middleware-user-agent": "3.888.0",
24
+ "@aws-sdk/middleware-user-agent": "3.890.0",
25
25
  "@aws-sdk/types": "3.887.0",
26
- "@smithy/node-config-provider": "^4.2.1",
26
+ "@smithy/node-config-provider": "^4.2.2",
27
27
  "@smithy/types": "^4.5.0",
28
28
  "tslib": "^2.6.2"
29
29
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/config-resolver",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline config-resolver",
@@ -25,7 +25,7 @@
25
25
  "license": "Apache-2.0",
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
- "@smithy/node-config-provider": "^4.2.1",
28
+ "@smithy/node-config-provider": "^4.2.2",
29
29
  "@smithy/types": "^4.5.0",
30
30
  "@smithy/util-config-provider": "^4.1.0",
31
31
  "@smithy/util-middleware": "^4.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/credential-provider-imds",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -28,7 +28,7 @@
28
28
  "license": "Apache-2.0",
29
29
  "sideEffects": false,
30
30
  "dependencies": {
31
- "@smithy/node-config-provider": "^4.2.1",
31
+ "@smithy/node-config-provider": "^4.2.2",
32
32
  "@smithy/property-provider": "^4.1.1",
33
33
  "@smithy/types": "^4.5.0",
34
34
  "@smithy/url-parser": "^4.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-endpoint",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-endpoint",
@@ -27,8 +27,8 @@
27
27
  "dependencies": {
28
28
  "@smithy/core": "^3.11.0",
29
29
  "@smithy/middleware-serde": "^4.1.1",
30
- "@smithy/node-config-provider": "^4.2.1",
31
- "@smithy/shared-ini-file-loader": "^4.1.1",
30
+ "@smithy/node-config-provider": "^4.2.2",
31
+ "@smithy/shared-ini-file-loader": "^4.2.0",
32
32
  "@smithy/types": "^4.5.0",
33
33
  "@smithy/url-parser": "^4.1.1",
34
34
  "@smithy/util-middleware": "^4.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/middleware-retry",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "scripts": {
5
5
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
6
6
  "build:cjs": "node ../../scripts/inline middleware-retry",
@@ -34,10 +34,10 @@
34
34
  "license": "Apache-2.0",
35
35
  "sideEffects": false,
36
36
  "dependencies": {
37
- "@smithy/node-config-provider": "^4.2.1",
37
+ "@smithy/node-config-provider": "^4.2.2",
38
38
  "@smithy/protocol-http": "^5.2.1",
39
39
  "@smithy/service-error-classification": "^4.1.1",
40
- "@smithy/smithy-client": "^4.6.1",
40
+ "@smithy/smithy-client": "^4.6.2",
41
41
  "@smithy/types": "^4.5.0",
42
42
  "@smithy/util-middleware": "^4.1.1",
43
43
  "@smithy/util-retry": "^4.1.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/node-config-provider",
3
- "version": "4.2.1",
3
+ "version": "4.2.2",
4
4
  "description": "Load config default values from ini config files and environmental variable",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'",
@@ -27,7 +27,7 @@
27
27
  "types": "./dist-types/index.d.ts",
28
28
  "dependencies": {
29
29
  "@smithy/property-provider": "^4.1.1",
30
- "@smithy/shared-ini-file-loader": "^4.1.1",
30
+ "@smithy/shared-ini-file-loader": "^4.2.0",
31
31
  "@smithy/types": "^4.5.0",
32
32
  "tslib": "^2.6.2"
33
33
  },
@@ -0,0 +1 @@
1
+ module.exports = require("./index.js");
@@ -1,10 +1,14 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSSOTokenFromFile = void 0;
3
+ exports.getSSOTokenFromFile = exports.tokenIntercept = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const getSSOTokenFilepath_1 = require("./getSSOTokenFilepath");
6
6
  const { readFile } = fs_1.promises;
7
+ exports.tokenIntercept = {};
7
8
  const getSSOTokenFromFile = async (id) => {
9
+ if (exports.tokenIntercept[id]) {
10
+ return exports.tokenIntercept[id];
11
+ }
8
12
  const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id);
9
13
  const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
10
14
  return JSON.parse(ssoTokenText);
@@ -24,7 +24,10 @@ __export(index_exports, {
24
24
  CONFIG_PREFIX_SEPARATOR: () => CONFIG_PREFIX_SEPARATOR,
25
25
  DEFAULT_PROFILE: () => DEFAULT_PROFILE,
26
26
  ENV_PROFILE: () => ENV_PROFILE,
27
+ SSOToken: () => import_getSSOTokenFromFile2.SSOToken,
28
+ externalDataInterceptor: () => externalDataInterceptor,
27
29
  getProfileName: () => getProfileName,
30
+ getSSOTokenFromFile: () => import_getSSOTokenFromFile2.getSSOTokenFromFile,
28
31
  loadSharedConfigFiles: () => loadSharedConfigFiles,
29
32
  loadSsoSessionData: () => loadSsoSessionData,
30
33
  parseKnownFiles: () => parseKnownFiles
@@ -39,7 +42,7 @@ var getProfileName = /* @__PURE__ */ __name((init) => init.profile || process.en
39
42
 
40
43
  // src/index.ts
41
44
  __reExport(index_exports, require("././getSSOTokenFilepath"), module.exports);
42
- __reExport(index_exports, require("././getSSOTokenFromFile"), module.exports);
45
+ var import_getSSOTokenFromFile2 = require("././getSSOTokenFromFile");
43
46
 
44
47
  // src/loadSharedConfigFiles.ts
45
48
 
@@ -189,15 +192,34 @@ var parseKnownFiles = /* @__PURE__ */ __name(async (init) => {
189
192
  const parsedFiles = await loadSharedConfigFiles(init);
190
193
  return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
191
194
  }, "parseKnownFiles");
195
+
196
+ // src/externalDataInterceptor.ts
197
+ var import_getSSOTokenFromFile = require("././getSSOTokenFromFile");
198
+ var import_slurpFile3 = require("././slurpFile");
199
+ var externalDataInterceptor = {
200
+ getFileRecord() {
201
+ return import_slurpFile3.fileIntercept;
202
+ },
203
+ interceptFile(path, contents) {
204
+ import_slurpFile3.fileIntercept[path] = Promise.resolve(contents);
205
+ },
206
+ getTokenRecord() {
207
+ return import_getSSOTokenFromFile.tokenIntercept;
208
+ },
209
+ interceptToken(id, contents) {
210
+ import_getSSOTokenFromFile.tokenIntercept[id] = contents;
211
+ }
212
+ };
192
213
  // Annotate the CommonJS export names for ESM import in node:
193
214
 
194
215
  0 && (module.exports = {
216
+ getSSOTokenFromFile,
217
+ externalDataInterceptor,
195
218
  getHomeDir,
196
219
  ENV_PROFILE,
197
220
  DEFAULT_PROFILE,
198
221
  getProfileName,
199
222
  getSSOTokenFilepath,
200
- getSSOTokenFromFile,
201
223
  CONFIG_PREFIX_SEPARATOR,
202
224
  loadSharedConfigFiles,
203
225
  loadSsoSessionData,
@@ -1,13 +1,17 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.slurpFile = void 0;
3
+ exports.slurpFile = exports.fileIntercept = exports.filePromisesHash = void 0;
4
4
  const fs_1 = require("fs");
5
5
  const { readFile } = fs_1.promises;
6
- const filePromisesHash = {};
6
+ exports.filePromisesHash = {};
7
+ exports.fileIntercept = {};
7
8
  const slurpFile = (path, options) => {
8
- if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) {
9
- filePromisesHash[path] = readFile(path, "utf8");
9
+ if (exports.fileIntercept[path] !== undefined) {
10
+ return exports.fileIntercept[path];
10
11
  }
11
- return filePromisesHash[path];
12
+ if (!exports.filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) {
13
+ exports.filePromisesHash[path] = readFile(path, "utf8");
14
+ }
15
+ return exports.filePromisesHash[path];
12
16
  };
13
17
  exports.slurpFile = slurpFile;
@@ -0,0 +1,16 @@
1
+ import { tokenIntercept } from "./getSSOTokenFromFile";
2
+ import { fileIntercept } from "./slurpFile";
3
+ export const externalDataInterceptor = {
4
+ getFileRecord() {
5
+ return fileIntercept;
6
+ },
7
+ interceptFile(path, contents) {
8
+ fileIntercept[path] = Promise.resolve(contents);
9
+ },
10
+ getTokenRecord() {
11
+ return tokenIntercept;
12
+ },
13
+ interceptToken(id, contents) {
14
+ tokenIntercept[id] = contents;
15
+ },
16
+ };
@@ -1,7 +1,11 @@
1
1
  import { promises as fsPromises } from "fs";
2
2
  import { getSSOTokenFilepath } from "./getSSOTokenFilepath";
3
3
  const { readFile } = fsPromises;
4
+ export const tokenIntercept = {};
4
5
  export const getSSOTokenFromFile = async (id) => {
6
+ if (tokenIntercept[id]) {
7
+ return tokenIntercept[id];
8
+ }
5
9
  const ssoTokenFilepath = getSSOTokenFilepath(id);
6
10
  const ssoTokenText = await readFile(ssoTokenFilepath, "utf8");
7
11
  return JSON.parse(ssoTokenText);
@@ -1,8 +1,9 @@
1
1
  export * from "./getHomeDir";
2
2
  export * from "./getProfileName";
3
3
  export * from "./getSSOTokenFilepath";
4
- export * from "./getSSOTokenFromFile";
4
+ export { getSSOTokenFromFile } from "./getSSOTokenFromFile";
5
5
  export * from "./loadSharedConfigFiles";
6
6
  export * from "./loadSsoSessionData";
7
7
  export * from "./parseKnownFiles";
8
+ export { externalDataInterceptor } from "./externalDataInterceptor";
8
9
  export * from "./types";
@@ -1,7 +1,11 @@
1
1
  import { promises as fsPromises } from "fs";
2
2
  const { readFile } = fsPromises;
3
- const filePromisesHash = {};
3
+ export const filePromisesHash = {};
4
+ export const fileIntercept = {};
4
5
  export const slurpFile = (path, options) => {
6
+ if (fileIntercept[path] !== undefined) {
7
+ return fileIntercept[path];
8
+ }
5
9
  if (!filePromisesHash[path] || options?.ignoreCache) {
6
10
  filePromisesHash[path] = readFile(path, "utf8");
7
11
  }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @internal
3
+ */
4
+ export declare const externalDataInterceptor: {
5
+ getFileRecord(): Record<string, Promise<string>>;
6
+ interceptFile(path: string, contents: string): void;
7
+ getTokenRecord(): Record<string, any>;
8
+ interceptToken(id: string, contents: any): void;
9
+ };