@larkup/cli 0.3.10 → 0.3.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-T4HV5OFN.js +6936 -0
- package/dist/{chunk-QAJSSODU.js → chunk-CQ7NVYHT.js} +108 -68
- package/dist/{chunk-2IVYLF4F.js → chunk-CVBK47OT.js} +93 -69
- package/dist/{chunk-QKPH65NY.js → chunk-DE4VP425.js} +16 -16
- package/dist/{chunk-IPKRK5UI.js → chunk-FNZK42G6.js} +3 -3
- package/dist/{chunk-A2PXF6Y7.js → chunk-HBASLJRD.js} +25 -25
- package/dist/{chunk-7KURHXYU.js → chunk-HX45PZFR.js} +44 -44
- package/dist/{chunk-HQPSE5ZU.js → chunk-IJE2RPSN.js} +55 -55
- package/dist/{chunk-ZBGNJVTC.js → chunk-KA5D5NKN.js} +3 -3
- package/dist/{chunk-ERDDY5EQ.js → chunk-LCK6D6SK.js} +4 -4
- package/dist/{chunk-ZYHZIBTH.js → chunk-LREGQMME.js} +44 -36
- package/dist/{chunk-3GL3SZFJ.js → chunk-M5367BNN.js} +12 -40
- package/dist/{chunk-543EWEC6.js → chunk-OFWLJSVC.js} +5 -5
- package/dist/{chunk-O5Z3TWHM.js → chunk-RJ2NIMTP.js} +2 -2
- package/dist/{chunk-RN25NOBI.js → chunk-V5MXHOEA.js} +3 -3
- package/dist/{chunk-TJPYJ5TS.js → chunk-WH6SGG26.js} +13 -13
- package/dist/chunk-WXRKGSWM.js +34 -0
- package/dist/{chunk-5RGEHTEF.js → chunk-XEB2OVD6.js} +45 -43
- package/dist/{chunk-5BX2UVG2.js → chunk-XFLXM5WU.js} +137 -95
- package/dist/{chunk-MACWQEJS.js → chunk-Z3C6M6AJ.js} +99 -107
- package/dist/{dist-es-YVYT5SVI.js → dist-es-2UI7ONZZ.js} +223 -220
- package/dist/{dist-es-DAE2AYZV.js → dist-es-5D5ADEYS.js} +21 -20
- package/dist/{dist-es-3L6W7F7P.js → dist-es-FI7PADBF.js} +6 -5
- package/dist/{dist-es-PQXH3VYE.js → dist-es-IAOJLUTI.js} +11 -10
- package/dist/{dist-es-6MPMKRLG.js → dist-es-KL7UCI6C.js} +23 -22
- package/dist/{dist-es-CVOBCRJ5.js → dist-es-MAY5SYH5.js} +11 -10
- package/dist/{dist-es-G4H4NZOY.js → dist-es-OED5OOKX.js} +9 -8
- package/dist/{dist-es-UWL5EGDP.js → dist-es-QQMKUAEQ.js} +3 -2
- package/dist/{dist-es-WEJJDMJW.js → dist-es-UJY2ZAAU.js} +10 -9
- package/dist/{dist-es-7LQAPSS6.js → dist-es-Y73OHM5Y.js} +9 -8
- package/dist/{event-streams-RZ2JU5EF.js → event-streams-IXBDR476.js} +3 -2
- package/dist/{event-streams-NVY5IGD3.js → event-streams-JRBKH3UT.js} +19 -18
- package/dist/index.js +19 -19
- package/dist/{lexer-DQCqS3nf-CGRGK47I.js → lexer-CanA6ArK-VIUEPQRT.js} +4 -4
- package/dist/{loadSso-DEHYSFO4.js → loadSso-S4KING47.js} +29 -28
- package/dist/{signin-CTAMN4QW.js → signin-ALRQUKQQ.js} +32 -31
- package/dist/{sso-oidc-ZYLSPNAE.js → sso-oidc-D3TLLZUS.js} +31 -30
- package/dist/{sts-EQDDSBAR.js → sts-PHP2EVI2.js} +45 -41
- package/dist/{tool-loader-SO27VEMQ.js → tool-loader-K6PLXSLW.js} +2 -2
- package/dist/{tool-registry-EWOMNTIB.js → tool-registry-G35SY4WN.js} +1 -1
- package/package.json +13 -13
- package/dist/api-X4PHQJTH.js +0 -6943
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IniSectionType,
|
|
3
2
|
isValidHostLabel
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-M5367BNN.js";
|
|
4
|
+
import {
|
|
5
|
+
IniSectionType
|
|
6
|
+
} from "./chunk-WXRKGSWM.js";
|
|
5
7
|
|
|
6
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
8
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/ProviderError.js
|
|
7
9
|
var ProviderError = class _ProviderError extends Error {
|
|
8
10
|
name = "ProviderError";
|
|
9
11
|
tryNextLink;
|
|
@@ -27,7 +29,7 @@ var ProviderError = class _ProviderError extends Error {
|
|
|
27
29
|
}
|
|
28
30
|
};
|
|
29
31
|
|
|
30
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
32
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/CredentialsProviderError.js
|
|
31
33
|
var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
|
|
32
34
|
name = "CredentialsProviderError";
|
|
33
35
|
constructor(message, options = true) {
|
|
@@ -36,18 +38,18 @@ var CredentialsProviderError = class _CredentialsProviderError extends ProviderE
|
|
|
36
38
|
}
|
|
37
39
|
};
|
|
38
40
|
|
|
39
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
41
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getProfileName.js
|
|
40
42
|
var ENV_PROFILE = "AWS_PROFILE";
|
|
41
43
|
var DEFAULT_PROFILE = "default";
|
|
42
44
|
var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
43
45
|
|
|
44
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
46
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
|
|
45
47
|
import { join as join3 } from "path";
|
|
46
48
|
|
|
47
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
49
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/constants.js
|
|
48
50
|
var CONFIG_PREFIX_SEPARATOR = ".";
|
|
49
51
|
|
|
50
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
52
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
|
|
51
53
|
var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
52
54
|
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
53
55
|
if (indexOfSeparator === -1) {
|
|
@@ -63,10 +65,10 @@ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
|
63
65
|
...data.default && { default: data.default }
|
|
64
66
|
});
|
|
65
67
|
|
|
66
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
68
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
|
|
67
69
|
import { join } from "path";
|
|
68
70
|
|
|
69
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
71
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js
|
|
70
72
|
import { homedir } from "os";
|
|
71
73
|
import { sep } from "path";
|
|
72
74
|
var homeDirCache = {};
|
|
@@ -90,16 +92,16 @@ var getHomeDir = () => {
|
|
|
90
92
|
return homeDirCache[homeDirCacheKey];
|
|
91
93
|
};
|
|
92
94
|
|
|
93
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
95
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
|
|
94
96
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
95
97
|
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
|
|
96
98
|
|
|
97
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
99
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
|
|
98
100
|
import { join as join2 } from "path";
|
|
99
101
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
100
102
|
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
|
|
101
103
|
|
|
102
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
104
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
|
|
103
105
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
|
|
104
106
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
105
107
|
var parseIni = (iniData) => {
|
|
@@ -148,7 +150,7 @@ var parseIni = (iniData) => {
|
|
|
148
150
|
return map;
|
|
149
151
|
};
|
|
150
152
|
|
|
151
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
153
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
|
|
152
154
|
import { readFile as fsReadFile } from "fs/promises";
|
|
153
155
|
var filePromises = {};
|
|
154
156
|
var fileIntercept = {};
|
|
@@ -162,7 +164,7 @@ var readFile = (path, options) => {
|
|
|
162
164
|
return filePromises[path];
|
|
163
165
|
};
|
|
164
166
|
|
|
165
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
167
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
|
|
166
168
|
var swallowError = () => ({});
|
|
167
169
|
var loadSharedConfigFiles = async (init = {}) => {
|
|
168
170
|
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
@@ -190,7 +192,7 @@ var loadSharedConfigFiles = async (init = {}) => {
|
|
|
190
192
|
};
|
|
191
193
|
};
|
|
192
194
|
|
|
193
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
195
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
|
|
194
196
|
var mergeConfigFiles = (...files) => {
|
|
195
197
|
const merged = {};
|
|
196
198
|
for (const file of files) {
|
|
@@ -205,13 +207,13 @@ var mergeConfigFiles = (...files) => {
|
|
|
205
207
|
return merged;
|
|
206
208
|
};
|
|
207
209
|
|
|
208
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
210
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
|
|
209
211
|
var parseKnownFiles = async (init) => {
|
|
210
212
|
const parsedFiles = await loadSharedConfigFiles(init);
|
|
211
213
|
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
212
214
|
};
|
|
213
215
|
|
|
214
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
216
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
|
|
215
217
|
var validRegions = /* @__PURE__ */ new Set();
|
|
216
218
|
var checkRegion = (region, check = isValidHostLabel) => {
|
|
217
219
|
if (!validRegions.has(region) && !check(region)) {
|
|
@@ -225,13 +227,13 @@ var checkRegion = (region, check = isValidHostLabel) => {
|
|
|
225
227
|
}
|
|
226
228
|
};
|
|
227
229
|
|
|
228
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
230
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
|
|
229
231
|
var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
230
232
|
|
|
231
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
233
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
|
|
232
234
|
var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
|
|
233
235
|
|
|
234
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
236
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
|
|
235
237
|
var resolveRegionConfig = (input) => {
|
|
236
238
|
const { region, useFipsEndpoint } = input;
|
|
237
239
|
if (!region) {
|
|
@@ -254,7 +256,7 @@ var resolveRegionConfig = (input) => {
|
|
|
254
256
|
});
|
|
255
257
|
};
|
|
256
258
|
|
|
257
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
259
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js
|
|
258
260
|
var TokenProviderError = class _TokenProviderError extends ProviderError {
|
|
259
261
|
name = "TokenProviderError";
|
|
260
262
|
constructor(message, options = true) {
|
|
@@ -263,7 +265,7 @@ var TokenProviderError = class _TokenProviderError extends ProviderError {
|
|
|
263
265
|
}
|
|
264
266
|
};
|
|
265
267
|
|
|
266
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
268
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
|
|
267
269
|
var chain = (...providers) => async () => {
|
|
268
270
|
if (providers.length === 0) {
|
|
269
271
|
throw new ProviderError("No providers in chain");
|
|
@@ -284,10 +286,10 @@ var chain = (...providers) => async () => {
|
|
|
284
286
|
throw lastProviderError;
|
|
285
287
|
};
|
|
286
288
|
|
|
287
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
289
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
|
|
288
290
|
var fromValue = (staticValue) => () => Promise.resolve(staticValue);
|
|
289
291
|
|
|
290
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
292
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
|
|
291
293
|
var memoize = (provider, isExpired, requiresRefresh) => {
|
|
292
294
|
let resolved;
|
|
293
295
|
let pending;
|
|
@@ -333,7 +335,7 @@ var memoize = (provider, isExpired, requiresRefresh) => {
|
|
|
333
335
|
};
|
|
334
336
|
};
|
|
335
337
|
|
|
336
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
338
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
|
|
337
339
|
var booleanSelector = (obj, key, type) => {
|
|
338
340
|
if (!(key in obj))
|
|
339
341
|
return void 0;
|
|
@@ -344,14 +346,14 @@ var booleanSelector = (obj, key, type) => {
|
|
|
344
346
|
throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
|
|
345
347
|
};
|
|
346
348
|
|
|
347
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
349
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
|
|
348
350
|
var SelectorType;
|
|
349
351
|
(function(SelectorType2) {
|
|
350
352
|
SelectorType2["ENV"] = "env";
|
|
351
353
|
SelectorType2["CONFIG"] = "shared config entry";
|
|
352
354
|
})(SelectorType || (SelectorType = {}));
|
|
353
355
|
|
|
354
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
356
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
|
|
355
357
|
import { createHash } from "crypto";
|
|
356
358
|
import { join as join4 } from "path";
|
|
357
359
|
var getSSOTokenFilepath = (id) => {
|
|
@@ -360,7 +362,7 @@ var getSSOTokenFilepath = (id) => {
|
|
|
360
362
|
return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
361
363
|
};
|
|
362
364
|
|
|
363
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
365
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
|
|
364
366
|
import { readFile as readFile2 } from "fs/promises";
|
|
365
367
|
var tokenIntercept = {};
|
|
366
368
|
var getSSOTokenFromFile = async (id) => {
|
|
@@ -372,14 +374,14 @@ var getSSOTokenFromFile = async (id) => {
|
|
|
372
374
|
return JSON.parse(ssoTokenText);
|
|
373
375
|
};
|
|
374
376
|
|
|
375
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
377
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
|
|
376
378
|
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 }), {});
|
|
377
379
|
|
|
378
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
380
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
|
|
379
381
|
var swallowError2 = () => ({});
|
|
380
382
|
var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
|
|
381
383
|
|
|
382
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
384
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
|
|
383
385
|
function getSelectorName(functionString) {
|
|
384
386
|
try {
|
|
385
387
|
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
@@ -392,7 +394,7 @@ function getSelectorName(functionString) {
|
|
|
392
394
|
}
|
|
393
395
|
}
|
|
394
396
|
|
|
395
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
397
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
|
|
396
398
|
var fromEnv = (envVarSelector, options) => async () => {
|
|
397
399
|
try {
|
|
398
400
|
const config = envVarSelector(process.env, options);
|
|
@@ -405,7 +407,7 @@ var fromEnv = (envVarSelector, options) => async () => {
|
|
|
405
407
|
}
|
|
406
408
|
};
|
|
407
409
|
|
|
408
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
410
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
|
|
409
411
|
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
410
412
|
const profile = getProfileName(init);
|
|
411
413
|
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
@@ -424,18 +426,18 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
424
426
|
}
|
|
425
427
|
};
|
|
426
428
|
|
|
427
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
429
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
|
|
428
430
|
var isFunction = (func) => typeof func === "function";
|
|
429
431
|
var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue);
|
|
430
432
|
|
|
431
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
433
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
|
|
432
434
|
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
433
435
|
const { signingName, logger } = configuration;
|
|
434
436
|
const envOptions = { signingName, logger };
|
|
435
437
|
return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
|
|
436
438
|
};
|
|
437
439
|
|
|
438
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
440
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
439
441
|
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
440
442
|
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
441
443
|
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -444,7 +446,7 @@ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
|
444
446
|
default: false
|
|
445
447
|
};
|
|
446
448
|
|
|
447
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
449
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
|
|
448
450
|
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
449
451
|
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
450
452
|
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -453,7 +455,7 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
|
453
455
|
default: false
|
|
454
456
|
};
|
|
455
457
|
|
|
456
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
458
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js
|
|
457
459
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
458
460
|
var AWS_REGION_ENV = "AWS_REGION";
|
|
459
461
|
var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
|
|
@@ -464,7 +466,7 @@ var IMDS_TOKEN_PATH = "/latest/api/token";
|
|
|
464
466
|
var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
465
467
|
var X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
|
|
466
468
|
|
|
467
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
469
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js
|
|
468
470
|
var TIMEOUT_MS = 1e3;
|
|
469
471
|
var NEG_CACHE_TTL_MS = 6e4;
|
|
470
472
|
var negativeCacheUntil = 0;
|
|
@@ -554,7 +556,7 @@ var imdsRequest = async (options) => {
|
|
|
554
556
|
});
|
|
555
557
|
};
|
|
556
558
|
|
|
557
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
559
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
|
|
558
560
|
var REGION_ENV_NAME = "AWS_REGION";
|
|
559
561
|
var REGION_INI_NAME = "region";
|
|
560
562
|
var NODE_REGION_CONFIG_OPTIONS = {
|
|
@@ -572,7 +574,7 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
|
572
574
|
preferredFile: "credentials"
|
|
573
575
|
};
|
|
574
576
|
|
|
575
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
577
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js
|
|
576
578
|
var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
|
|
577
579
|
var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
|
|
578
580
|
var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
@@ -585,7 +587,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
|
585
587
|
default: "legacy"
|
|
586
588
|
};
|
|
587
589
|
|
|
588
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
590
|
+
// ../../node_modules/.pnpm/@smithy+core@3.35.1/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js
|
|
589
591
|
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
|
|
590
592
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
591
593
|
switch (mode?.toLowerCase()) {
|