@larkup/cli 0.3.22 → 0.3.25
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/{bowser-KBMRPWZW.js → bowser-ASWGABFI.js} +164 -121
- package/dist/{chunk-M4T7TRRC.js → chunk-5BSYIRDU.js} +101 -99
- package/dist/{chunk-JKTTCUZ3.js → chunk-6DABOFED.js} +45 -43
- package/dist/chunk-7EA4HEQD.js +34 -0
- package/dist/{chunk-G4JLV4D2.js → chunk-7FM7FGTQ.js} +44 -45
- package/dist/{chunk-3HURSQNH.js → chunk-7TW2TQDP.js} +2 -2
- package/dist/{chunk-G542PEOG.js → chunk-CONEIN76.js} +12 -40
- package/dist/{chunk-SUBMQE2G.js → chunk-H7OL7A3G.js} +29 -29
- package/dist/{chunk-NMIRIGDS.js → chunk-HQBHXWFO.js} +25 -25
- package/dist/{chunk-TEVXZRMI.js → chunk-ILXTFN5F.js} +73 -71
- package/dist/{chunk-CQRTVM3R.js → chunk-J7WYSJV7.js} +41 -36
- package/dist/{chunk-YL567TPU.js → chunk-JI3YBGMX.js} +4 -4
- package/dist/{chunk-4Y7OLVDR.js → chunk-K4ZAP2B4.js} +4 -4
- package/dist/{chunk-VMIDDBSU.js → chunk-KS7UJLUP.js} +3 -3
- package/dist/{chunk-5UNSW2YQ.js → chunk-MJ2NZ7GC.js} +2 -2
- package/dist/{chunk-MEKWGOS5.js → chunk-R344ACAN.js} +3 -3
- package/dist/{chunk-TX2W2TDD.js → chunk-UQHNRXYH.js} +3 -3
- package/dist/{chunk-5YXDD2GC.js → chunk-YK4G67UU.js} +135 -163
- package/dist/{chunk-MTXSOKLF.js → chunk-ZXBQA42I.js} +1066 -1027
- package/dist/{chunk-5LXQQ3B5.js → chunk-ZYEAPZDK.js} +67 -64
- package/dist/{dist-es-EYJKNFZZ.js → dist-es-3UDUJKAW.js} +10 -9
- package/dist/{dist-es-I5PEXU6M.js → dist-es-3ZGN24NL.js} +6 -5
- package/dist/{dist-es-HOKTEA4H.js → dist-es-6VWQDGTA.js} +23 -22
- package/dist/{dist-es-IBDQOMV4.js → dist-es-DJYED3JX.js} +21 -20
- package/dist/{dist-es-KLJ57YTV.js → dist-es-HKJET4EN.js} +3 -2
- package/dist/{dist-es-GCJ2YN2W.js → dist-es-JZZWWWB2.js} +15 -12
- package/dist/{dist-es-RSHHKZQR.js → dist-es-RQTS5BDT.js} +287 -236
- package/dist/{dist-es-SM3XZOJI.js → dist-es-RUHE7T2I.js} +11 -10
- package/dist/{dist-es-64SQQSB2.js → dist-es-S4JBTIGW.js} +9 -8
- package/dist/{dist-es-WKOKSFRW.js → dist-es-TGIPXSQR.js} +9 -8
- package/dist/{event-streams-DO25HTN4.js → event-streams-5GHJY7DB.js} +3 -2
- package/dist/{event-streams-DE7Y6VJA.js → event-streams-7GD5LM2F.js} +19 -18
- package/dist/index.js +92 -60
- package/dist/{loadSso-RBMT5EPI.js → loadSso-QUU5KKBX.js} +27 -26
- package/dist/{signin-S7FYOH5Y.js → signin-KDNHL2KM.js} +30 -29
- package/dist/{sso-oidc-YVLODDDB.js → sso-oidc-BNG5ERAX.js} +29 -28
- package/dist/{sts-R6CUYWGQ.js → sts-K53JNAYZ.js} +32 -31
- package/dist/{tool-loader-ZRVSMB4T.js → tool-loader-3TBSU7FY.js} +2 -2
- package/dist/{tool-registry-FLO7V4FK.js → tool-registry-HJLG5I6X.js} +1 -1
- package/package.json +12 -12
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
IniSectionType,
|
|
3
2
|
isValidHostLabel
|
|
4
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CONEIN76.js";
|
|
4
|
+
import {
|
|
5
|
+
IniSectionType
|
|
6
|
+
} from "./chunk-7EA4HEQD.js";
|
|
5
7
|
|
|
6
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
8
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/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.41.0/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.41.0/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.41.0/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.41.0/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.41.0/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.41.0/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.41.0/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 = {};
|
|
@@ -94,16 +96,16 @@ var getHomeDir = () => {
|
|
|
94
96
|
return homeDirCache[homeDirCacheKey];
|
|
95
97
|
};
|
|
96
98
|
|
|
97
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
99
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigFilepath.js
|
|
98
100
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
99
101
|
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
|
|
100
102
|
|
|
101
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
103
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getCredentialsFilepath.js
|
|
102
104
|
import { join as join2 } from "path";
|
|
103
105
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
104
106
|
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
|
|
105
107
|
|
|
106
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
108
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js
|
|
107
109
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/;
|
|
108
110
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
109
111
|
var parseIni = (iniData) => {
|
|
@@ -152,7 +154,7 @@ var parseIni = (iniData) => {
|
|
|
152
154
|
return map;
|
|
153
155
|
};
|
|
154
156
|
|
|
155
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
157
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/readFile.js
|
|
156
158
|
import { readFile as fsReadFile } from "fs/promises";
|
|
157
159
|
var filePromises = {};
|
|
158
160
|
var fileIntercept = {};
|
|
@@ -166,7 +168,7 @@ var readFile = (path, options) => {
|
|
|
166
168
|
return filePromises[path];
|
|
167
169
|
};
|
|
168
170
|
|
|
169
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
171
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSharedConfigFiles.js
|
|
170
172
|
var swallowError = () => ({});
|
|
171
173
|
var loadSharedConfigFiles = async (init = {}) => {
|
|
172
174
|
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
@@ -194,7 +196,7 @@ var loadSharedConfigFiles = async (init = {}) => {
|
|
|
194
196
|
};
|
|
195
197
|
};
|
|
196
198
|
|
|
197
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
199
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/mergeConfigFiles.js
|
|
198
200
|
var mergeConfigFiles = (...files) => {
|
|
199
201
|
const merged = {};
|
|
200
202
|
for (const file of files) {
|
|
@@ -209,13 +211,13 @@ var mergeConfigFiles = (...files) => {
|
|
|
209
211
|
return merged;
|
|
210
212
|
};
|
|
211
213
|
|
|
212
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
214
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseKnownFiles.js
|
|
213
215
|
var parseKnownFiles = async (init) => {
|
|
214
216
|
const parsedFiles = await loadSharedConfigFiles(init);
|
|
215
217
|
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
216
218
|
};
|
|
217
219
|
|
|
218
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
220
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/checkRegion.js
|
|
219
221
|
var validRegions = /* @__PURE__ */ new Set();
|
|
220
222
|
var checkRegion = (region, check = isValidHostLabel) => {
|
|
221
223
|
if (!validRegions.has(region) && !check(region)) {
|
|
@@ -229,13 +231,13 @@ var checkRegion = (region, check = isValidHostLabel) => {
|
|
|
229
231
|
}
|
|
230
232
|
};
|
|
231
233
|
|
|
232
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
234
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/isFipsRegion.js
|
|
233
235
|
var isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips"));
|
|
234
236
|
|
|
235
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
237
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getRealRegion.js
|
|
236
238
|
var getRealRegion = (region) => isFipsRegion(region) ? ["fips-aws-global", "aws-fips"].includes(region) ? "us-east-1" : region.replace(/fips-(dkr-|prod-)?|-fips/, "") : region;
|
|
237
239
|
|
|
238
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
240
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/resolveRegionConfig.js
|
|
239
241
|
var resolveRegionConfig = (input) => {
|
|
240
242
|
const { region, useFipsEndpoint } = input;
|
|
241
243
|
if (!region) {
|
|
@@ -258,7 +260,7 @@ var resolveRegionConfig = (input) => {
|
|
|
258
260
|
});
|
|
259
261
|
};
|
|
260
262
|
|
|
261
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
263
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/property-provider/TokenProviderError.js
|
|
262
264
|
var TokenProviderError = class _TokenProviderError extends ProviderError {
|
|
263
265
|
name = "TokenProviderError";
|
|
264
266
|
constructor(message, options = true) {
|
|
@@ -267,7 +269,7 @@ var TokenProviderError = class _TokenProviderError extends ProviderError {
|
|
|
267
269
|
}
|
|
268
270
|
};
|
|
269
271
|
|
|
270
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
272
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/property-provider/chain.js
|
|
271
273
|
var chain = (...providers) => async () => {
|
|
272
274
|
if (providers.length === 0) {
|
|
273
275
|
throw new ProviderError("No providers in chain");
|
|
@@ -288,10 +290,10 @@ var chain = (...providers) => async () => {
|
|
|
288
290
|
throw lastProviderError;
|
|
289
291
|
};
|
|
290
292
|
|
|
291
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
293
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/property-provider/fromValue.js
|
|
292
294
|
var fromValue = (staticValue) => () => Promise.resolve(staticValue);
|
|
293
295
|
|
|
294
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
296
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/property-provider/memoize.js
|
|
295
297
|
var memoize = (provider, isExpired, requiresRefresh) => {
|
|
296
298
|
let resolved;
|
|
297
299
|
let pending;
|
|
@@ -337,7 +339,7 @@ var memoize = (provider, isExpired, requiresRefresh) => {
|
|
|
337
339
|
};
|
|
338
340
|
};
|
|
339
341
|
|
|
340
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
342
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js
|
|
341
343
|
var booleanSelector = (obj, key, type) => {
|
|
342
344
|
if (!(key in obj)) {
|
|
343
345
|
return void 0;
|
|
@@ -351,14 +353,14 @@ var booleanSelector = (obj, key, type) => {
|
|
|
351
353
|
throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`);
|
|
352
354
|
};
|
|
353
355
|
|
|
354
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
356
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/types.js
|
|
355
357
|
var SelectorType;
|
|
356
358
|
(function(SelectorType2) {
|
|
357
359
|
SelectorType2["ENV"] = "env";
|
|
358
360
|
SelectorType2["CONFIG"] = "shared config entry";
|
|
359
361
|
})(SelectorType || (SelectorType = {}));
|
|
360
362
|
|
|
361
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
363
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFilepath.js
|
|
362
364
|
import { createHash } from "crypto";
|
|
363
365
|
import { join as join4 } from "path";
|
|
364
366
|
var getSSOTokenFilepath = (id) => {
|
|
@@ -367,7 +369,7 @@ var getSSOTokenFilepath = (id) => {
|
|
|
367
369
|
return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
368
370
|
};
|
|
369
371
|
|
|
370
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
372
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSSOTokenFromFile.js
|
|
371
373
|
import { readFile as readFile2 } from "fs/promises";
|
|
372
374
|
var tokenIntercept = {};
|
|
373
375
|
var getSSOTokenFromFile = async (id) => {
|
|
@@ -379,14 +381,14 @@ var getSSOTokenFromFile = async (id) => {
|
|
|
379
381
|
return JSON.parse(ssoTokenText);
|
|
380
382
|
};
|
|
381
383
|
|
|
382
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
384
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getSsoSessionData.js
|
|
383
385
|
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 }), {});
|
|
384
386
|
|
|
385
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
387
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/loadSsoSessionData.js
|
|
386
388
|
var swallowError2 = () => ({});
|
|
387
389
|
var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
|
|
388
390
|
|
|
389
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
391
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/getSelectorName.js
|
|
390
392
|
function getSelectorName(functionString) {
|
|
391
393
|
try {
|
|
392
394
|
const constants = new Set(Array.from(functionString.match(/([A-Z_]){3,}/g) ?? []));
|
|
@@ -399,7 +401,7 @@ function getSelectorName(functionString) {
|
|
|
399
401
|
}
|
|
400
402
|
}
|
|
401
403
|
|
|
402
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
404
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromEnv.js
|
|
403
405
|
var fromEnv = (envVarSelector, options) => async () => {
|
|
404
406
|
try {
|
|
405
407
|
const config = envVarSelector(process.env, options);
|
|
@@ -412,7 +414,7 @@ var fromEnv = (envVarSelector, options) => async () => {
|
|
|
412
414
|
}
|
|
413
415
|
};
|
|
414
416
|
|
|
415
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
417
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromSharedConfigFiles.js
|
|
416
418
|
var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => {
|
|
417
419
|
const profile = getProfileName(init);
|
|
418
420
|
const { configFile, credentialsFile } = await loadSharedConfigFiles(init);
|
|
@@ -431,18 +433,18 @@ var fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init
|
|
|
431
433
|
}
|
|
432
434
|
};
|
|
433
435
|
|
|
434
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
436
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/fromStatic.js
|
|
435
437
|
var isFunction = (func) => typeof func === "function";
|
|
436
438
|
var fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : fromValue(defaultValue);
|
|
437
439
|
|
|
438
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
440
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/node-config-provider/configLoader.js
|
|
439
441
|
var loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => {
|
|
440
442
|
const { signingName, logger } = configuration;
|
|
441
443
|
const envOptions = { signingName, logger };
|
|
442
444
|
return memoize(chain(fromEnv(environmentVariableSelector, envOptions), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue)));
|
|
443
445
|
};
|
|
444
446
|
|
|
445
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
447
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js
|
|
446
448
|
var ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT";
|
|
447
449
|
var CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint";
|
|
448
450
|
var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -451,7 +453,7 @@ var NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = {
|
|
|
451
453
|
default: false
|
|
452
454
|
};
|
|
453
455
|
|
|
454
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
456
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/endpointsConfig/NodeUseFipsEndpointConfigOptions.js
|
|
455
457
|
var ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT";
|
|
456
458
|
var CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint";
|
|
457
459
|
var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
@@ -460,7 +462,7 @@ var NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = {
|
|
|
460
462
|
default: false
|
|
461
463
|
};
|
|
462
464
|
|
|
463
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
465
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/constants.js
|
|
464
466
|
var AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV";
|
|
465
467
|
var AWS_REGION_ENV = "AWS_REGION";
|
|
466
468
|
var AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION";
|
|
@@ -471,7 +473,7 @@ var IMDS_TOKEN_PATH = "/latest/api/token";
|
|
|
471
473
|
var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
|
|
472
474
|
var X_AWS_EC2_METADATA_TOKEN_TTL = "x-aws-ec2-metadata-token-ttl-seconds";
|
|
473
475
|
|
|
474
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
476
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/getInstanceMetadataRegion.js
|
|
475
477
|
var TIMEOUT_MS = 1e3;
|
|
476
478
|
var NEG_CACHE_TTL_MS = 6e4;
|
|
477
479
|
var negativeCacheUntil = 0;
|
|
@@ -561,7 +563,7 @@ var imdsRequest = async (options) => {
|
|
|
561
563
|
});
|
|
562
564
|
};
|
|
563
565
|
|
|
564
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
566
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/config-resolver/regionConfig/config.js
|
|
565
567
|
var REGION_ENV_NAME = "AWS_REGION";
|
|
566
568
|
var REGION_INI_NAME = "region";
|
|
567
569
|
var NODE_REGION_CONFIG_OPTIONS = {
|
|
@@ -579,7 +581,7 @@ var NODE_REGION_CONFIG_FILE_OPTIONS = {
|
|
|
579
581
|
preferredFile: "credentials"
|
|
580
582
|
};
|
|
581
583
|
|
|
582
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
584
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/defaultsModeConfig.js
|
|
583
585
|
var AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE";
|
|
584
586
|
var AWS_DEFAULTS_MODE_CONFIG = "defaults_mode";
|
|
585
587
|
var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
@@ -592,7 +594,7 @@ var NODE_DEFAULTS_MODE_CONFIG_OPTIONS = {
|
|
|
592
594
|
default: "legacy"
|
|
593
595
|
};
|
|
594
596
|
|
|
595
|
-
// ../../node_modules/.pnpm/@smithy+core@3.
|
|
597
|
+
// ../../node_modules/.pnpm/@smithy+core@3.41.0/node_modules/@smithy/core/dist-es/submodules/config/defaults-mode/resolveDefaultsModeConfig.js
|
|
596
598
|
var resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS) } = {}) => memoize(async () => {
|
|
597
599
|
const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
|
|
598
600
|
switch (mode?.toLowerCase()) {
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
// ../../node_modules/.pnpm/@smithy+types@4.20.0/node_modules/@smithy/types/dist-es/extensions/checksum.js
|
|
2
|
+
var AlgorithmId;
|
|
3
|
+
(function(AlgorithmId2) {
|
|
4
|
+
AlgorithmId2["MD5"] = "md5";
|
|
5
|
+
AlgorithmId2["CRC32"] = "crc32";
|
|
6
|
+
AlgorithmId2["CRC32C"] = "crc32c";
|
|
7
|
+
AlgorithmId2["SHA1"] = "sha1";
|
|
8
|
+
AlgorithmId2["SHA256"] = "sha256";
|
|
9
|
+
})(AlgorithmId || (AlgorithmId = {}));
|
|
10
|
+
|
|
11
|
+
// ../../node_modules/.pnpm/@smithy+types@4.20.0/node_modules/@smithy/types/dist-es/middleware.js
|
|
12
|
+
var SMITHY_CONTEXT_KEY = "__smithy_context";
|
|
13
|
+
|
|
14
|
+
// ../../node_modules/.pnpm/@smithy+types@4.20.0/node_modules/@smithy/types/dist-es/endpoint.js
|
|
15
|
+
var EndpointURLScheme;
|
|
16
|
+
(function(EndpointURLScheme2) {
|
|
17
|
+
EndpointURLScheme2["HTTP"] = "http";
|
|
18
|
+
EndpointURLScheme2["HTTPS"] = "https";
|
|
19
|
+
})(EndpointURLScheme || (EndpointURLScheme = {}));
|
|
20
|
+
|
|
21
|
+
// ../../node_modules/.pnpm/@smithy+types@4.20.0/node_modules/@smithy/types/dist-es/profile.js
|
|
22
|
+
var IniSectionType;
|
|
23
|
+
(function(IniSectionType2) {
|
|
24
|
+
IniSectionType2["PROFILE"] = "profile";
|
|
25
|
+
IniSectionType2["SSO_SESSION"] = "sso-session";
|
|
26
|
+
IniSectionType2["SERVICES"] = "services";
|
|
27
|
+
})(IniSectionType || (IniSectionType = {}));
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
EndpointURLScheme,
|
|
31
|
+
AlgorithmId,
|
|
32
|
+
SMITHY_CONTEXT_KEY,
|
|
33
|
+
IniSectionType
|
|
34
|
+
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildQueryString
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ILXTFN5F.js";
|
|
4
4
|
import {
|
|
5
5
|
HttpResponse,
|
|
6
6
|
hasOwn
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YK4G67UU.js";
|
|
8
8
|
|
|
9
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
9
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js
|
|
10
10
|
function buildAbortError(abortSignal) {
|
|
11
11
|
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : void 0;
|
|
12
12
|
if (reason) {
|
|
@@ -25,10 +25,10 @@ function buildAbortError(abortSignal) {
|
|
|
25
25
|
return abortError;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
28
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/constants.js
|
|
29
29
|
var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
|
|
30
30
|
|
|
31
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
31
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js
|
|
32
32
|
var getTransformedHeaders = (headers) => {
|
|
33
33
|
const transformedHeaders = {};
|
|
34
34
|
for (const name in headers) {
|
|
@@ -41,16 +41,16 @@ var getTransformedHeaders = (headers) => {
|
|
|
41
41
|
return transformedHeaders;
|
|
42
42
|
};
|
|
43
43
|
|
|
44
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
44
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/node-https.js
|
|
45
45
|
import node_https from "https";
|
|
46
46
|
|
|
47
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
47
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/timing.js
|
|
48
48
|
var timing = {
|
|
49
49
|
setTimeout: (cb, ms) => setTimeout(cb, ms),
|
|
50
50
|
clearTimeout: (timeoutId) => clearTimeout(timeoutId)
|
|
51
51
|
};
|
|
52
52
|
|
|
53
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
53
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js
|
|
54
54
|
var DEFER_EVENT_LISTENER_TIME = 1e3;
|
|
55
55
|
var setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
|
56
56
|
if (!timeoutInMs) {
|
|
@@ -85,7 +85,7 @@ var setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
|
|
85
85
|
return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
|
|
86
86
|
};
|
|
87
87
|
|
|
88
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
88
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js
|
|
89
89
|
var setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, logger) => {
|
|
90
90
|
if (timeoutInMs) {
|
|
91
91
|
return timing.setTimeout(() => {
|
|
@@ -106,7 +106,7 @@ var setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, lo
|
|
|
106
106
|
return -1;
|
|
107
107
|
};
|
|
108
108
|
|
|
109
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
109
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js
|
|
110
110
|
var DEFER_EVENT_LISTENER_TIME2 = 3e3;
|
|
111
111
|
var setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME2) => {
|
|
112
112
|
if (keepAlive !== true) {
|
|
@@ -128,49 +128,50 @@ var setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs =
|
|
|
128
128
|
return timing.setTimeout(registerListener, deferTimeMs);
|
|
129
129
|
};
|
|
130
130
|
|
|
131
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
131
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/resolve-default-socket-timeout.js
|
|
132
132
|
var resolveDefaultSocketTimeout = (config) => {
|
|
133
133
|
const value = config?.defaultSocketTimeout;
|
|
134
134
|
return typeof value === "number" && Number.isFinite(value) && value > 0 ? value : void 0;
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
137
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js
|
|
138
138
|
var DEFER_EVENT_LISTENER_TIME3 = 3e3;
|
|
139
|
-
var setSocketTimeout = (request, reject, timeoutInMs = 0,
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
request.once("response", (res) => response = res);
|
|
139
|
+
var setSocketTimeout = (request, reject, timeoutInMs = 0, isServiceDefault = false) => {
|
|
140
|
+
if (!Number.isFinite(timeoutInMs) || timeoutInMs <= 0) {
|
|
141
|
+
return;
|
|
143
142
|
}
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
143
|
+
let response;
|
|
144
|
+
request.once("response", (res) => response = res);
|
|
145
|
+
const onTimeout = () => {
|
|
146
|
+
if (response?.complete) {
|
|
147
|
+
request.socket?.destroy();
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const error = Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${timeoutInMs} ms of inactivity (${isServiceDefault ? "service default socket timeout" : "configured by client requestHandler"}).`), { name: "TimeoutError" });
|
|
151
|
+
response?.destroy(error);
|
|
152
|
+
request.destroy();
|
|
153
|
+
reject(error);
|
|
154
|
+
};
|
|
155
|
+
const registerTimeout = () => {
|
|
156
|
+
const { socket } = request;
|
|
157
|
+
if (!socket) {
|
|
158
|
+
request.once("socket", registerTimeout);
|
|
159
|
+
} else if (socket.connecting) {
|
|
160
|
+
socket.once("connect", registerTimeout);
|
|
157
161
|
} else {
|
|
158
|
-
|
|
162
|
+
socket.setTimeout(timeoutInMs, onTimeout);
|
|
163
|
+
request.on("close", () => socket.removeListener("timeout", onTimeout));
|
|
159
164
|
}
|
|
160
165
|
};
|
|
161
|
-
if (
|
|
162
|
-
registerTimeout(
|
|
163
|
-
return
|
|
164
|
-
}
|
|
165
|
-
const deferralId = timing.setTimeout(registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME3), DEFER_EVENT_LISTENER_TIME3);
|
|
166
|
-
if (destroyResponseBodyOnTimeout) {
|
|
167
|
-
request.once("close", () => timing.clearTimeout(deferralId));
|
|
168
|
-
return 0;
|
|
166
|
+
if (timeoutInMs < 6e3) {
|
|
167
|
+
registerTimeout();
|
|
168
|
+
return;
|
|
169
169
|
}
|
|
170
|
-
|
|
170
|
+
const deferralId = timing.setTimeout(registerTimeout, DEFER_EVENT_LISTENER_TIME3);
|
|
171
|
+
request.once("close", () => timing.clearTimeout(deferralId));
|
|
171
172
|
};
|
|
172
173
|
|
|
173
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
174
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js
|
|
174
175
|
import { Readable } from "stream";
|
|
175
176
|
var MIN_WAIT_TIME = 6e3;
|
|
176
177
|
async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) {
|
|
@@ -230,7 +231,7 @@ function writeBody(httpRequest, body) {
|
|
|
230
231
|
httpRequest.end();
|
|
231
232
|
}
|
|
232
233
|
|
|
233
|
-
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.
|
|
234
|
+
// ../../node_modules/.pnpm/@smithy+node-http-handler@4.14.2/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
|
|
234
235
|
var hAgent = void 0;
|
|
235
236
|
var hRequest = void 0;
|
|
236
237
|
var NodeHttpHandler = class _NodeHttpHandler {
|
|
@@ -301,13 +302,11 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
301
302
|
let socketWarningTimeoutId = -1;
|
|
302
303
|
let connectionTimeoutId = -1;
|
|
303
304
|
let requestTimeoutId = -1;
|
|
304
|
-
let socketTimeoutId = -1;
|
|
305
305
|
let keepAliveTimeoutId = -1;
|
|
306
306
|
const clearTimeouts = () => {
|
|
307
307
|
timing.clearTimeout(socketWarningTimeoutId);
|
|
308
308
|
timing.clearTimeout(connectionTimeoutId);
|
|
309
309
|
timing.clearTimeout(requestTimeoutId);
|
|
310
|
-
timing.clearTimeout(socketTimeoutId);
|
|
311
310
|
timing.clearTimeout(keepAliveTimeoutId);
|
|
312
311
|
};
|
|
313
312
|
const resolve = async (arg) => {
|
|
@@ -402,9 +401,9 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
402
401
|
requestTimeoutId = setRequestTimeout(req, reject, effectiveRequestTimeout, config.throwOnRequestTimeout, logger ?? console);
|
|
403
402
|
const defaultSocketTimeout = config.socketTimeout === void 0 ? resolveDefaultSocketTimeout(config) : void 0;
|
|
404
403
|
if (defaultSocketTimeout) {
|
|
405
|
-
|
|
404
|
+
setSocketTimeout(req, reject, defaultSocketTimeout, true);
|
|
406
405
|
} else {
|
|
407
|
-
|
|
406
|
+
setSocketTimeout(req, reject, config.socketTimeout);
|
|
408
407
|
}
|
|
409
408
|
const httpAgent = nodeHttpsOptions.agent;
|
|
410
409
|
if (typeof httpAgent === "object" && "keepAlive" in httpAgent) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
escapeUri
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ILXTFN5F.js";
|
|
4
4
|
import {
|
|
5
5
|
HttpRequest,
|
|
6
6
|
fromHex,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
toHex,
|
|
12
12
|
toUint8Array,
|
|
13
13
|
writeKey
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YK4G67UU.js";
|
|
15
15
|
|
|
16
16
|
// ../../node_modules/.pnpm/@smithy+signature-v4@5.7.5/node_modules/@smithy/signature-v4/dist-es/signature-v4a-container.js
|
|
17
17
|
var signatureV4aContainer = {
|