@granite-js/pulumi-aws 0.1.19 → 0.1.21

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 (58) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/chunk-5W7B34BN.js +3307 -0
  3. package/dist/chunk-64IS37V6.js +17 -0
  4. package/dist/chunk-AEOST5WF.js +63 -0
  5. package/dist/chunk-B7OAPHPY.js +46 -0
  6. package/dist/chunk-FO7L563E.js +13695 -0
  7. package/dist/chunk-FRWSD3YQ.js +1722 -0
  8. package/dist/chunk-IEZY5C3G.js +120 -0
  9. package/dist/chunk-ITI6QA2Q.js +12 -0
  10. package/dist/chunk-IUKLHJNE.js +49 -0
  11. package/dist/chunk-JBVMOFGH.js +152 -0
  12. package/dist/chunk-JSBRDJBE.js +30 -0
  13. package/dist/chunk-KGNTV362.js +209 -0
  14. package/dist/chunk-KRJS4RAS.js +1732 -0
  15. package/dist/chunk-M5GUUX64.js +63 -0
  16. package/dist/chunk-QAE2S7MG.js +3351 -0
  17. package/dist/chunk-SX6SVQKS.js +67 -0
  18. package/dist/chunk-TJ744C2T.js +198 -0
  19. package/dist/chunk-UNXXS5FM.js +120 -0
  20. package/dist/chunk-UT2RMOJS.js +2447 -0
  21. package/dist/chunk-VOTRVWIB.js +1965 -0
  22. package/dist/chunk-W3VXP3A3.js +119 -0
  23. package/dist/chunk-WCHHWTND.js +113 -0
  24. package/dist/chunk-X6XO7USX.js +110 -0
  25. package/dist/chunk-XLUI7RQ4.js +115 -0
  26. package/dist/dist-es-2M7RLZ5O.js +200 -0
  27. package/dist/dist-es-ADTONJUN-RVFWNZHO.js +67 -0
  28. package/dist/dist-es-CDFIYJVE.js +163 -0
  29. package/dist/dist-es-GHYMLBON.js +379 -0
  30. package/dist/dist-es-HJVOMDYC-PIAMWMAL.js +87 -0
  31. package/dist/dist-es-IDBDK36G-Y6TQMRO5.js +299 -0
  32. package/dist/dist-es-OCQVKISC-TNAJ62WG.js +161 -0
  33. package/dist/dist-es-OZGLUDWT.js +305 -0
  34. package/dist/dist-es-PRWCVZGQ-HTTVI42T.js +21 -0
  35. package/dist/dist-es-S75EKWRJ.js +88 -0
  36. package/dist/dist-es-SUPEA6VE-3B5JSW5C.js +368 -0
  37. package/dist/dist-es-WQHDOVD7.js +21 -0
  38. package/dist/dist-es-XQME5F6W.js +67 -0
  39. package/dist/dist-es-Y7VN37H5-WQ3GYROF.js +196 -0
  40. package/dist/lambda/auto-cache-removal.d.cts +17 -0
  41. package/dist/lambda/auto-cache-removal.d.ts +17 -0
  42. package/dist/lambda/auto-cache-removal.js +5313 -0
  43. package/dist/lambda/origin-request.d.cts +14 -0
  44. package/dist/lambda/origin-request.d.ts +14 -0
  45. package/dist/lambda/origin-request.js +113 -0
  46. package/dist/lambda/origin-response.d.cts +6 -0
  47. package/dist/lambda/origin-response.d.ts +6 -0
  48. package/dist/lambda/origin-response.js +52 -0
  49. package/dist/loadSso-CZSSLFH6-SA5HOQAX.js +645 -0
  50. package/dist/loadSso-T7GJVVO2.js +655 -0
  51. package/dist/sso-oidc-55SJ27II.js +827 -0
  52. package/dist/sso-oidc-PKO5GYK5-LC65L46O.js +820 -0
  53. package/dist/sts-OPF4H3GL.js +1162 -0
  54. package/dist/sts-P7Q3MYTS-BKGWHQE4.js +1152 -0
  55. package/lambda/auto-cache-removal.d.ts +1 -0
  56. package/lambda/origin-request.d.ts +1 -0
  57. package/lambda/origin-response.d.ts +1 -0
  58. package/package.json +37 -10
@@ -0,0 +1,120 @@
1
+ // ../deployment-manager/dist/chunk-UNXXS5FM.js
2
+ var package_default = {
3
+ name: "@aws-sdk/nested-clients",
4
+ version: "3.817.0",
5
+ description: "Nested clients for AWS SDK packages.",
6
+ main: "./dist-cjs/index.js",
7
+ module: "./dist-es/index.js",
8
+ types: "./dist-types/index.d.ts",
9
+ scripts: {
10
+ build: "yarn lint && concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
11
+ "build:cjs": "node ../../scripts/compilation/inline nested-clients",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build",
14
+ "build:types": "tsc -p tsconfig.types.json",
15
+ "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
16
+ clean: "rimraf ./dist-* && rimraf *.tsbuildinfo",
17
+ lint: "node ../../scripts/validation/submodules-linter.js --pkg nested-clients",
18
+ test: "yarn g:vitest run",
19
+ "test:watch": "yarn g:vitest watch"
20
+ },
21
+ engines: {
22
+ node: ">=18.0.0"
23
+ },
24
+ author: {
25
+ name: "AWS SDK for JavaScript Team",
26
+ url: "https://aws.amazon.com/javascript/"
27
+ },
28
+ license: "Apache-2.0",
29
+ dependencies: {
30
+ "@aws-crypto/sha256-browser": "5.2.0",
31
+ "@aws-crypto/sha256-js": "5.2.0",
32
+ "@aws-sdk/core": "3.816.0",
33
+ "@aws-sdk/middleware-host-header": "3.804.0",
34
+ "@aws-sdk/middleware-logger": "3.804.0",
35
+ "@aws-sdk/middleware-recursion-detection": "3.804.0",
36
+ "@aws-sdk/middleware-user-agent": "3.816.0",
37
+ "@aws-sdk/region-config-resolver": "3.808.0",
38
+ "@aws-sdk/types": "3.804.0",
39
+ "@aws-sdk/util-endpoints": "3.808.0",
40
+ "@aws-sdk/util-user-agent-browser": "3.804.0",
41
+ "@aws-sdk/util-user-agent-node": "3.816.0",
42
+ "@smithy/config-resolver": "^4.1.2",
43
+ "@smithy/core": "^3.3.3",
44
+ "@smithy/fetch-http-handler": "^5.0.2",
45
+ "@smithy/hash-node": "^4.0.2",
46
+ "@smithy/invalid-dependency": "^4.0.2",
47
+ "@smithy/middleware-content-length": "^4.0.2",
48
+ "@smithy/middleware-endpoint": "^4.1.6",
49
+ "@smithy/middleware-retry": "^4.1.7",
50
+ "@smithy/middleware-serde": "^4.0.5",
51
+ "@smithy/middleware-stack": "^4.0.2",
52
+ "@smithy/node-config-provider": "^4.1.1",
53
+ "@smithy/node-http-handler": "^4.0.4",
54
+ "@smithy/protocol-http": "^5.1.0",
55
+ "@smithy/smithy-client": "^4.2.6",
56
+ "@smithy/types": "^4.2.0",
57
+ "@smithy/url-parser": "^4.0.2",
58
+ "@smithy/util-base64": "^4.0.0",
59
+ "@smithy/util-body-length-browser": "^4.0.0",
60
+ "@smithy/util-body-length-node": "^4.0.0",
61
+ "@smithy/util-defaults-mode-browser": "^4.0.14",
62
+ "@smithy/util-defaults-mode-node": "^4.0.14",
63
+ "@smithy/util-endpoints": "^3.0.4",
64
+ "@smithy/util-middleware": "^4.0.2",
65
+ "@smithy/util-retry": "^4.0.3",
66
+ "@smithy/util-utf8": "^4.0.0",
67
+ tslib: "^2.6.2"
68
+ },
69
+ devDependencies: {
70
+ concurrently: "7.0.0",
71
+ "downlevel-dts": "0.10.1",
72
+ rimraf: "3.0.2",
73
+ typescript: "~5.8.3"
74
+ },
75
+ typesVersions: {
76
+ "<4.0": {
77
+ "dist-types/*": [
78
+ "dist-types/ts3.4/*"
79
+ ]
80
+ }
81
+ },
82
+ files: [
83
+ "./sso-oidc.d.ts",
84
+ "./sso-oidc.js",
85
+ "./sts.d.ts",
86
+ "./sts.js",
87
+ "dist-*/**"
88
+ ],
89
+ browser: {
90
+ "./dist-es/submodules/sso-oidc/runtimeConfig": "./dist-es/submodules/sso-oidc/runtimeConfig.browser",
91
+ "./dist-es/submodules/sts/runtimeConfig": "./dist-es/submodules/sts/runtimeConfig.browser"
92
+ },
93
+ "react-native": {},
94
+ homepage: "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",
95
+ repository: {
96
+ type: "git",
97
+ url: "https://github.com/aws/aws-sdk-js-v3.git",
98
+ directory: "packages/nested-clients"
99
+ },
100
+ exports: {
101
+ "./sso-oidc": {
102
+ types: "./dist-types/submodules/sso-oidc/index.d.ts",
103
+ module: "./dist-es/submodules/sso-oidc/index.js",
104
+ node: "./dist-cjs/submodules/sso-oidc/index.js",
105
+ import: "./dist-es/submodules/sso-oidc/index.js",
106
+ require: "./dist-cjs/submodules/sso-oidc/index.js"
107
+ },
108
+ "./sts": {
109
+ types: "./dist-types/submodules/sts/index.d.ts",
110
+ module: "./dist-es/submodules/sts/index.js",
111
+ node: "./dist-cjs/submodules/sts/index.js",
112
+ import: "./dist-es/submodules/sts/index.js",
113
+ require: "./dist-cjs/submodules/sts/index.js"
114
+ }
115
+ }
116
+ };
117
+
118
+ export {
119
+ package_default
120
+ };
@@ -0,0 +1,12 @@
1
+ // ../../.yarn/cache/@aws-sdk-core-npm-3.816.0-71722eb284-f11ab1da51.zip/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
2
+ function setCredentialFeature(credentials, feature, value) {
3
+ if (!credentials.$source) {
4
+ credentials.$source = {};
5
+ }
6
+ credentials.$source[feature] = value;
7
+ return credentials;
8
+ }
9
+
10
+ export {
11
+ setCredentialFeature
12
+ };
@@ -0,0 +1,49 @@
1
+ import {
2
+ setCredentialFeature
3
+ } from "./chunk-64IS37V6.js";
4
+ import {
5
+ CredentialsProviderError,
6
+ init_esm_shims
7
+ } from "./chunk-JBVMOFGH.js";
8
+
9
+ // ../deployment-manager/dist/chunk-G4F2ENEO.js
10
+ init_esm_shims();
11
+ init_esm_shims();
12
+ var ENV_KEY = "AWS_ACCESS_KEY_ID";
13
+ var ENV_SECRET = "AWS_SECRET_ACCESS_KEY";
14
+ var ENV_SESSION = "AWS_SESSION_TOKEN";
15
+ var ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION";
16
+ var ENV_CREDENTIAL_SCOPE = "AWS_CREDENTIAL_SCOPE";
17
+ var ENV_ACCOUNT_ID = "AWS_ACCOUNT_ID";
18
+ var fromEnv = (init) => async () => {
19
+ init?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");
20
+ const accessKeyId = process.env[ENV_KEY];
21
+ const secretAccessKey = process.env[ENV_SECRET];
22
+ const sessionToken = process.env[ENV_SESSION];
23
+ const expiry = process.env[ENV_EXPIRATION];
24
+ const credentialScope = process.env[ENV_CREDENTIAL_SCOPE];
25
+ const accountId = process.env[ENV_ACCOUNT_ID];
26
+ if (accessKeyId && secretAccessKey) {
27
+ const credentials = {
28
+ accessKeyId,
29
+ secretAccessKey,
30
+ ...sessionToken && { sessionToken },
31
+ ...expiry && { expiration: new Date(expiry) },
32
+ ...credentialScope && { credentialScope },
33
+ ...accountId && { accountId }
34
+ };
35
+ setCredentialFeature(credentials, "CREDENTIALS_ENV_VARS", "g");
36
+ return credentials;
37
+ }
38
+ throw new CredentialsProviderError("Unable to find environment variable credentials.", { logger: init?.logger });
39
+ };
40
+
41
+ export {
42
+ ENV_KEY,
43
+ ENV_SECRET,
44
+ ENV_SESSION,
45
+ ENV_EXPIRATION,
46
+ ENV_CREDENTIAL_SCOPE,
47
+ ENV_ACCOUNT_ID,
48
+ fromEnv
49
+ };
@@ -0,0 +1,152 @@
1
+ // ../deployment-manager/dist/chunk-VSWNXL2A.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esm = (fn, res) => function __init() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
11
+ var __commonJS = (cb, mod) => function __require() {
12
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
+ };
14
+ var __copyProps = (to, from, except, desc) => {
15
+ if (from && typeof from === "object" || typeof from === "function") {
16
+ for (let key of __getOwnPropNames(from))
17
+ if (!__hasOwnProp.call(to, key) && key !== except)
18
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
19
+ }
20
+ return to;
21
+ };
22
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
23
+ // If the importer is in node compatibility mode or this is not an ESM
24
+ // file that has been converted to a CommonJS file using a Babel-
25
+ // compatible transform (i.e. "__esModule" has not been set), then set
26
+ // "default" to the CommonJS "module.exports" for node compatibility.
27
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
28
+ mod
29
+ ));
30
+ var init_esm_shims = __esm({
31
+ "../../.yarn/__virtual__/tsup-virtual-699424e35d/0/cache/tsup-npm-8.5.0-e9d25b74d7-2eddc1138a.zip/node_modules/tsup/assets/esm_shims.js"() {
32
+ "use strict";
33
+ }
34
+ });
35
+ init_esm_shims();
36
+ var ProviderError = class _ProviderError extends Error {
37
+ constructor(message, options = true) {
38
+ let logger;
39
+ let tryNextLink = true;
40
+ if (typeof options === "boolean") {
41
+ logger = void 0;
42
+ tryNextLink = options;
43
+ } else if (options != null && typeof options === "object") {
44
+ logger = options.logger;
45
+ tryNextLink = options.tryNextLink ?? true;
46
+ }
47
+ super(message);
48
+ this.name = "ProviderError";
49
+ this.tryNextLink = tryNextLink;
50
+ Object.setPrototypeOf(this, _ProviderError.prototype);
51
+ logger?.debug?.(`@smithy/property-provider ${tryNextLink ? "->" : "(!)"} ${message}`);
52
+ }
53
+ static from(error, options = true) {
54
+ return Object.assign(new this(error.message, options), error);
55
+ }
56
+ };
57
+ init_esm_shims();
58
+ var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
59
+ constructor(message, options = true) {
60
+ super(message, options);
61
+ this.name = "CredentialsProviderError";
62
+ Object.setPrototypeOf(this, _CredentialsProviderError.prototype);
63
+ }
64
+ };
65
+ init_esm_shims();
66
+ init_esm_shims();
67
+ var TokenProviderError = class _TokenProviderError extends ProviderError {
68
+ constructor(message, options = true) {
69
+ super(message, options);
70
+ this.name = "TokenProviderError";
71
+ Object.setPrototypeOf(this, _TokenProviderError.prototype);
72
+ }
73
+ };
74
+ init_esm_shims();
75
+ var chain = (...providers) => async () => {
76
+ if (providers.length === 0) {
77
+ throw new ProviderError("No providers in chain");
78
+ }
79
+ let lastProviderError;
80
+ for (const provider of providers) {
81
+ try {
82
+ const credentials = await provider();
83
+ return credentials;
84
+ } catch (err) {
85
+ lastProviderError = err;
86
+ if (err?.tryNextLink) {
87
+ continue;
88
+ }
89
+ throw err;
90
+ }
91
+ }
92
+ throw lastProviderError;
93
+ };
94
+ init_esm_shims();
95
+ var fromStatic = (staticValue) => () => Promise.resolve(staticValue);
96
+ init_esm_shims();
97
+ var memoize = (provider, isExpired, requiresRefresh) => {
98
+ let resolved;
99
+ let pending;
100
+ let hasResult;
101
+ let isConstant = false;
102
+ const coalesceProvider = async () => {
103
+ if (!pending) {
104
+ pending = provider();
105
+ }
106
+ try {
107
+ resolved = await pending;
108
+ hasResult = true;
109
+ isConstant = false;
110
+ } finally {
111
+ pending = void 0;
112
+ }
113
+ return resolved;
114
+ };
115
+ if (isExpired === void 0) {
116
+ return async (options) => {
117
+ if (!hasResult || options?.forceRefresh) {
118
+ resolved = await coalesceProvider();
119
+ }
120
+ return resolved;
121
+ };
122
+ }
123
+ return async (options) => {
124
+ if (!hasResult || options?.forceRefresh) {
125
+ resolved = await coalesceProvider();
126
+ }
127
+ if (isConstant) {
128
+ return resolved;
129
+ }
130
+ if (requiresRefresh && !requiresRefresh(resolved)) {
131
+ isConstant = true;
132
+ return resolved;
133
+ }
134
+ if (isExpired(resolved)) {
135
+ await coalesceProvider();
136
+ return resolved;
137
+ }
138
+ return resolved;
139
+ };
140
+ };
141
+
142
+ export {
143
+ __commonJS,
144
+ __toESM,
145
+ init_esm_shims,
146
+ ProviderError,
147
+ CredentialsProviderError,
148
+ TokenProviderError,
149
+ chain,
150
+ fromStatic,
151
+ memoize
152
+ };
@@ -0,0 +1,30 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __commonJS = (cb, mod) => function __require() {
8
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
23
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
24
+ mod
25
+ ));
26
+
27
+ export {
28
+ __commonJS,
29
+ __toESM
30
+ };
@@ -0,0 +1,209 @@
1
+ import {
2
+ IniSectionType
3
+ } from "./chunk-M5GUUX64.js";
4
+
5
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js
6
+ var ENV_PROFILE = "AWS_PROFILE";
7
+ var DEFAULT_PROFILE = "default";
8
+ var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
9
+
10
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
11
+ import { join } from "path";
12
+
13
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js
14
+ import { homedir } from "os";
15
+ import { sep } from "path";
16
+ var homeDirCache = {};
17
+ var getHomeDirCacheKey = () => {
18
+ if (process && process.geteuid) {
19
+ return `${process.geteuid()}`;
20
+ }
21
+ return "DEFAULT";
22
+ };
23
+ var getHomeDir = () => {
24
+ const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env;
25
+ if (HOME)
26
+ return HOME;
27
+ if (USERPROFILE)
28
+ return USERPROFILE;
29
+ if (HOMEPATH)
30
+ return `${HOMEDRIVE}${HOMEPATH}`;
31
+ const homeDirCacheKey = getHomeDirCacheKey();
32
+ if (!homeDirCache[homeDirCacheKey])
33
+ homeDirCache[homeDirCacheKey] = homedir();
34
+ return homeDirCache[homeDirCacheKey];
35
+ };
36
+
37
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
38
+ var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
39
+ var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
40
+
41
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
42
+ import { join as join3 } from "path";
43
+
44
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js
45
+ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
46
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
47
+ if (indexOfSeparator === -1) {
48
+ return false;
49
+ }
50
+ return Object.values(IniSectionType).includes(key.substring(0, indexOfSeparator));
51
+ }).reduce((acc, [key, value]) => {
52
+ const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
53
+ const updatedKey = key.substring(0, indexOfSeparator) === IniSectionType.PROFILE ? key.substring(indexOfSeparator + 1) : key;
54
+ acc[updatedKey] = value;
55
+ return acc;
56
+ }, {
57
+ ...data.default && { default: data.default }
58
+ });
59
+
60
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js
61
+ import { join as join2 } from "path";
62
+ var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
63
+ var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
64
+
65
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js
66
+ var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
67
+ var profileNameBlockList = ["__proto__", "profile __proto__"];
68
+ var parseIni = (iniData) => {
69
+ const map = {};
70
+ let currentSection;
71
+ let currentSubSection;
72
+ for (const iniLine of iniData.split(/\r?\n/)) {
73
+ const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim();
74
+ const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]";
75
+ if (isSection) {
76
+ currentSection = void 0;
77
+ currentSubSection = void 0;
78
+ const sectionName = trimmedLine.substring(1, trimmedLine.length - 1);
79
+ const matches = prefixKeyRegex.exec(sectionName);
80
+ if (matches) {
81
+ const [, prefix, , name] = matches;
82
+ if (Object.values(IniSectionType).includes(prefix)) {
83
+ currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR);
84
+ }
85
+ } else {
86
+ currentSection = sectionName;
87
+ }
88
+ if (profileNameBlockList.includes(sectionName)) {
89
+ throw new Error(`Found invalid profile name "${sectionName}"`);
90
+ }
91
+ } else if (currentSection) {
92
+ const indexOfEqualsSign = trimmedLine.indexOf("=");
93
+ if (![0, -1].includes(indexOfEqualsSign)) {
94
+ const [name, value] = [
95
+ trimmedLine.substring(0, indexOfEqualsSign).trim(),
96
+ trimmedLine.substring(indexOfEqualsSign + 1).trim()
97
+ ];
98
+ if (value === "") {
99
+ currentSubSection = name;
100
+ } else {
101
+ if (currentSubSection && iniLine.trimStart() === iniLine) {
102
+ currentSubSection = void 0;
103
+ }
104
+ map[currentSection] = map[currentSection] || {};
105
+ const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name;
106
+ map[currentSection][key] = value;
107
+ }
108
+ }
109
+ }
110
+ }
111
+ return map;
112
+ };
113
+
114
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js
115
+ import { promises as fsPromises } from "fs";
116
+ var { readFile } = fsPromises;
117
+ var filePromisesHash = {};
118
+ var slurpFile = (path, options) => {
119
+ if (!filePromisesHash[path] || options?.ignoreCache) {
120
+ filePromisesHash[path] = readFile(path, "utf8");
121
+ }
122
+ return filePromisesHash[path];
123
+ };
124
+
125
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
126
+ var swallowError = () => ({});
127
+ var CONFIG_PREFIX_SEPARATOR = ".";
128
+ var loadSharedConfigFiles = async (init = {}) => {
129
+ const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
130
+ const homeDir = getHomeDir();
131
+ const relativeHomeDirPrefix = "~/";
132
+ let resolvedFilepath = filepath;
133
+ if (filepath.startsWith(relativeHomeDirPrefix)) {
134
+ resolvedFilepath = join3(homeDir, filepath.slice(2));
135
+ }
136
+ let resolvedConfigFilepath = configFilepath;
137
+ if (configFilepath.startsWith(relativeHomeDirPrefix)) {
138
+ resolvedConfigFilepath = join3(homeDir, configFilepath.slice(2));
139
+ }
140
+ const parsedFiles = await Promise.all([
141
+ slurpFile(resolvedConfigFilepath, {
142
+ ignoreCache: init.ignoreCache
143
+ }).then(parseIni).then(getConfigData).catch(swallowError),
144
+ slurpFile(resolvedFilepath, {
145
+ ignoreCache: init.ignoreCache
146
+ }).then(parseIni).catch(swallowError)
147
+ ]);
148
+ return {
149
+ configFile: parsedFiles[0],
150
+ credentialsFile: parsedFiles[1]
151
+ };
152
+ };
153
+
154
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
155
+ var getSsoSessionData = (data) => Object.entries(data).filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)).reduce((acc, [key, value]) => ({ ...acc, [key.substring(key.indexOf(CONFIG_PREFIX_SEPARATOR) + 1)]: value }), {});
156
+
157
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js
158
+ var swallowError2 = () => ({});
159
+ var loadSsoSessionData = async (init = {}) => slurpFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
160
+
161
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js
162
+ var mergeConfigFiles = (...files) => {
163
+ const merged = {};
164
+ for (const file of files) {
165
+ for (const [key, values] of Object.entries(file)) {
166
+ if (merged[key] !== void 0) {
167
+ Object.assign(merged[key], values);
168
+ } else {
169
+ merged[key] = values;
170
+ }
171
+ }
172
+ }
173
+ return merged;
174
+ };
175
+
176
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js
177
+ var parseKnownFiles = async (init) => {
178
+ const parsedFiles = await loadSharedConfigFiles(init);
179
+ return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
180
+ };
181
+
182
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
183
+ import { createHash } from "crypto";
184
+ import { join as join4 } from "path";
185
+ var getSSOTokenFilepath = (id) => {
186
+ const hasher = createHash("sha1");
187
+ const cacheName = hasher.update(id).digest("hex");
188
+ return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
189
+ };
190
+
191
+ // ../../.yarn/cache/@smithy-shared-ini-file-loader-npm-4.0.3-4011fc1192-04129a5d8e.zip/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
192
+ import { promises as fsPromises2 } from "fs";
193
+ var { readFile: readFile2 } = fsPromises2;
194
+ var getSSOTokenFromFile = async (id) => {
195
+ const ssoTokenFilepath = getSSOTokenFilepath(id);
196
+ const ssoTokenText = await readFile2(ssoTokenFilepath, "utf8");
197
+ return JSON.parse(ssoTokenText);
198
+ };
199
+
200
+ export {
201
+ ENV_PROFILE,
202
+ getProfileName,
203
+ getSSOTokenFilepath,
204
+ getSSOTokenFromFile,
205
+ CONFIG_PREFIX_SEPARATOR,
206
+ loadSharedConfigFiles,
207
+ loadSsoSessionData,
208
+ parseKnownFiles
209
+ };