@cdk8s/awscdk-resolver 0.0.362 → 0.0.364

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 (56) hide show
  1. package/.jsii +3 -3
  2. package/lib/resolve.js +1 -1
  3. package/node_modules/@aws-sdk/client-cloudformation/package.json +15 -15
  4. package/node_modules/@aws-sdk/client-sso/package.json +14 -14
  5. package/node_modules/@aws-sdk/core/package.json +5 -5
  6. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  7. package/node_modules/@aws-sdk/credential-provider-http/dist-cjs/fromHttp/fromHttp.js +1 -1
  8. package/node_modules/@aws-sdk/credential-provider-http/dist-es/fromHttp/fromHttp.js +1 -1
  9. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  10. package/node_modules/@aws-sdk/credential-provider-ini/package.json +11 -11
  11. package/node_modules/@aws-sdk/credential-provider-node/package.json +13 -12
  12. package/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +3 -2
  13. package/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +2 -1
  14. package/node_modules/@aws-sdk/credential-provider-process/package.json +4 -4
  15. package/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +19 -3
  16. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +8 -0
  17. package/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +7 -2
  18. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +1 -1
  19. package/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +3 -0
  20. package/node_modules/@aws-sdk/credential-provider-sso/package.json +6 -6
  21. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +3 -1
  22. package/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +3 -1
  23. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +5 -4
  24. package/node_modules/@aws-sdk/middleware-user-agent/package.json +3 -3
  25. package/node_modules/@aws-sdk/nested-clients/package.json +14 -14
  26. package/node_modules/@aws-sdk/region-config-resolver/package.json +3 -3
  27. package/node_modules/@aws-sdk/token-providers/package.json +5 -5
  28. package/node_modules/@aws-sdk/util-endpoints/package.json +2 -2
  29. package/node_modules/@aws-sdk/util-user-agent-node/package.json +3 -3
  30. package/node_modules/@smithy/config-resolver/package.json +2 -2
  31. package/node_modules/@smithy/credential-provider-imds/package.json +2 -2
  32. package/node_modules/@smithy/middleware-endpoint/package.json +3 -3
  33. package/node_modules/@smithy/middleware-retry/package.json +3 -3
  34. package/node_modules/@smithy/node-config-provider/package.json +2 -2
  35. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/externalDataInterceptor.js +1 -0
  36. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +5 -1
  37. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +24 -2
  38. package/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +9 -5
  39. package/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js +16 -0
  40. package/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +4 -0
  41. package/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +2 -1
  42. package/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +5 -1
  43. package/node_modules/@smithy/shared-ini-file-loader/dist-types/externalDataInterceptor.d.ts +9 -0
  44. package/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +5 -1
  45. package/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +2 -1
  46. package/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +2 -0
  47. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/externalDataInterceptor.d.ts +9 -0
  48. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +5 -1
  49. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +2 -1
  50. package/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +2 -0
  51. package/node_modules/@smithy/shared-ini-file-loader/package.json +1 -1
  52. package/node_modules/@smithy/smithy-client/package.json +2 -2
  53. package/node_modules/@smithy/util-defaults-mode-browser/package.json +2 -2
  54. package/node_modules/@smithy/util-defaults-mode-node/package.json +5 -5
  55. package/node_modules/@smithy/util-endpoints/package.json +2 -2
  56. package/package.json +5 -5
@@ -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/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
+ };
@@ -38,9 +38,13 @@ export interface SSOToken {
38
38
  */
39
39
  startUrl?: string;
40
40
  }
41
+ /**
42
+ * @internal
43
+ */
44
+ export declare const tokenIntercept: Record<string, any>;
41
45
  /**
42
46
  * @internal
43
47
  * @param id - can be either a start URL or the SSO session name.
44
48
  * Returns the SSO token from the file system.
45
49
  */
46
- export declare const getSSOTokenFromFile: (id: string) => Promise<SSOToken>;
50
+ export declare const getSSOTokenFromFile: (id: string) => Promise<any>;
@@ -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, SSOToken } 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,3 +1,5 @@
1
+ export declare const filePromisesHash: Record<string, Promise<string>>;
2
+ export declare const fileIntercept: Record<string, Promise<string>>;
1
3
  interface SlurpFileOptions {
2
4
  ignoreCache?: boolean;
3
5
  }
@@ -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
+ };
@@ -38,9 +38,13 @@ export interface SSOToken {
38
38
  */
39
39
  startUrl?: string;
40
40
  }
41
+ /**
42
+ * @internal
43
+ */
44
+ export declare const tokenIntercept: Record<string, any>;
41
45
  /**
42
46
  * @internal
43
47
  * @param id - can be either a start URL or the SSO session name.
44
48
  * Returns the SSO token from the file system.
45
49
  */
46
- export declare const getSSOTokenFromFile: (id: string) => Promise<SSOToken>;
50
+ export declare const getSSOTokenFromFile: (id: string) => Promise<any>;
@@ -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, SSOToken } 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,3 +1,5 @@
1
+ export declare const filePromisesHash: Record<string, Promise<string>>;
2
+ export declare const fileIntercept: Record<string, Promise<string>>;
1
3
  interface SlurpFileOptions {
2
4
  ignoreCache?: boolean;
3
5
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/shared-ini-file-loader",
3
- "version": "4.1.1",
3
+ "version": "4.2.0",
4
4
  "dependencies": {
5
5
  "@smithy/types": "^4.5.0",
6
6
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/smithy-client",
3
- "version": "4.6.1",
3
+ "version": "4.6.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 smithy-client",
@@ -26,7 +26,7 @@
26
26
  "sideEffects": false,
27
27
  "dependencies": {
28
28
  "@smithy/core": "^3.11.0",
29
- "@smithy/middleware-endpoint": "^4.2.1",
29
+ "@smithy/middleware-endpoint": "^4.2.2",
30
30
  "@smithy/middleware-stack": "^4.1.1",
31
31
  "@smithy/protocol-http": "^5.2.1",
32
32
  "@smithy/types": "^4.5.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-browser",
3
- "version": "4.1.1",
3
+ "version": "4.1.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 util-defaults-mode-browser",
@@ -25,7 +25,7 @@
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
27
  "@smithy/property-provider": "^4.1.1",
28
- "@smithy/smithy-client": "^4.6.1",
28
+ "@smithy/smithy-client": "^4.6.2",
29
29
  "@smithy/types": "^4.5.0",
30
30
  "bowser": "^2.11.0",
31
31
  "tslib": "^2.6.2"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-defaults-mode-node",
3
- "version": "4.1.1",
3
+ "version": "4.1.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 util-defaults-mode-node",
@@ -24,11 +24,11 @@
24
24
  "license": "Apache-2.0",
25
25
  "sideEffects": false,
26
26
  "dependencies": {
27
- "@smithy/config-resolver": "^4.2.1",
28
- "@smithy/credential-provider-imds": "^4.1.1",
29
- "@smithy/node-config-provider": "^4.2.1",
27
+ "@smithy/config-resolver": "^4.2.2",
28
+ "@smithy/credential-provider-imds": "^4.1.2",
29
+ "@smithy/node-config-provider": "^4.2.2",
30
30
  "@smithy/property-provider": "^4.1.1",
31
- "@smithy/smithy-client": "^4.6.1",
31
+ "@smithy/smithy-client": "^4.6.2",
32
32
  "@smithy/types": "^4.5.0",
33
33
  "tslib": "^2.6.2"
34
34
  },
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smithy/util-endpoints",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Utilities to help with endpoint resolution.",
5
5
  "main": "./dist-cjs/index.js",
6
6
  "module": "./dist-es/index.js",
@@ -29,7 +29,7 @@
29
29
  "license": "Apache-2.0",
30
30
  "sideEffects": false,
31
31
  "dependencies": {
32
- "@smithy/node-config-provider": "^4.2.1",
32
+ "@smithy/node-config-provider": "^4.2.2",
33
33
  "@smithy/types": "^4.5.0",
34
34
  "tslib": "^2.6.2"
35
35
  },
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  "organization": false
43
43
  },
44
44
  "devDependencies": {
45
- "@cdk8s/projen-common": "0.0.621",
45
+ "@cdk8s/projen-common": "0.0.622",
46
46
  "@stylistic/eslint-plugin": "^2",
47
47
  "@types/fs-extra": "^11.0.4",
48
48
  "@types/jest": "^27",
@@ -52,13 +52,13 @@
52
52
  "aws-cdk": "^2.1029.1",
53
53
  "aws-cdk-lib": "2.195.0",
54
54
  "cdk8s": "2.68.91",
55
- "cdk8s-cli": "^2.201.26",
55
+ "cdk8s-cli": "^2.201.27",
56
56
  "commit-and-tag-version": "^12",
57
57
  "constructs": "10.3.0",
58
58
  "eslint": "^9",
59
59
  "eslint-import-resolver-typescript": "^3.10.1",
60
60
  "eslint-plugin-import": "^2.32.0",
61
- "fs-extra": "^11.3.1",
61
+ "fs-extra": "^11.3.2",
62
62
  "jest": "^27",
63
63
  "jest-junit": "^16",
64
64
  "jsii": "^5",
@@ -77,7 +77,7 @@
77
77
  "constructs": "^10.3.0"
78
78
  },
79
79
  "dependencies": {
80
- "@aws-sdk/client-cloudformation": "^3.888.0"
80
+ "@aws-sdk/client-cloudformation": "^3.890.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.362",
96
+ "version": "0.0.364",
97
97
  "jest": {
98
98
  "coverageProvider": "v8",
99
99
  "testMatch": [