replicas-cli 0.2.122 → 0.2.124
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/{chunk-NH63C5BC.mjs → chunk-4KZFIKR3.mjs} +1077 -1230
- package/dist/{chunk-HDHAEUVR.mjs → chunk-6E4PAXC5.mjs} +1 -1
- package/dist/{chunk-OMR2FLSI.mjs → chunk-AEKGTTWT.mjs} +2 -2
- package/dist/{chunk-R7VCWGZ2.mjs → chunk-CEE3Y7RM.mjs} +1 -1
- package/dist/{chunk-H7SOGPWV.mjs → chunk-H57WOA7R.mjs} +309 -22
- package/dist/{chunk-43COQWMG.mjs → chunk-HMKFI7SL.mjs} +19 -19
- package/dist/{chunk-G3M3ZN6T.mjs → chunk-K7B6G3FP.mjs} +6 -6
- package/dist/{chunk-EHHAQWN3.mjs → chunk-KHHYAMUK.mjs} +12 -12
- package/dist/{chunk-BY7XUH2G.mjs → chunk-R2544D2G.mjs} +162 -157
- package/dist/{chunk-ENRF2K6M.mjs → chunk-W27BU2E4.mjs} +72 -355
- package/dist/{chunk-PNVVO6MW.mjs → chunk-YZ62XZX5.mjs} +2 -2
- package/dist/{dist-es-XKOZULQT.mjs → dist-es-76ZS5ZGX.mjs} +19 -19
- package/dist/{dist-es-HC7MGS4M.mjs → dist-es-DRC4RUDF.mjs} +18 -18
- package/dist/{dist-es-VFOQQKFA.mjs → dist-es-FTV27CJE.mjs} +3 -3
- package/dist/{dist-es-WSBAYZQI.mjs → dist-es-MVWFIO2N.mjs} +7 -7
- package/dist/{dist-es-DZIRR447.mjs → dist-es-PGBT2GSM.mjs} +27 -27
- package/dist/{dist-es-URIWYPPF.mjs → dist-es-TKQAVPOM.mjs} +12 -14
- package/dist/{dist-es-I6P57CZS.mjs → dist-es-X7XEFTLU.mjs} +7 -7
- package/dist/index.mjs +3 -3
- package/dist/{interactive-OHZFZVXH.mjs → interactive-7BC3ZOP6.mjs} +1 -1
- package/dist/{loadSso-WA3733QO.mjs → loadSso-PADWQIUG.mjs} +109 -148
- package/dist/{signin-QNS25VI4.mjs → signin-4DZRTUJH.mjs} +123 -177
- package/dist/{sso-oidc-KJ5X6WUQ.mjs → sso-oidc-VICR4TNH.mjs} +111 -150
- package/dist/{sts-7OF5CJSW.mjs → sts-WJPOT3CH.mjs} +2853 -660
- package/package.json +1 -1
- package/dist/chunk-GXZPN42X.mjs +0 -178
- package/dist/event-streams-T3U3ZQLC.mjs +0 -247
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__publicField
|
|
4
4
|
} from "./chunk-FFDYI4OH.mjs";
|
|
5
5
|
|
|
6
|
-
// ../node_modules/.bun/@smithy+protocol-http@5.3.
|
|
6
|
+
// ../node_modules/.bun/@smithy+protocol-http@5.3.14/node_modules/@smithy/protocol-http/dist-es/httpRequest.js
|
|
7
7
|
var HttpRequest = class _HttpRequest {
|
|
8
8
|
constructor(options) {
|
|
9
9
|
__publicField(this, "method");
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__publicField
|
|
4
4
|
} from "./chunk-FFDYI4OH.mjs";
|
|
5
5
|
|
|
6
|
-
// ../node_modules/.bun/@smithy+property-provider@4.2.
|
|
6
|
+
// ../node_modules/.bun/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/ProviderError.js
|
|
7
7
|
var ProviderError = class _ProviderError extends Error {
|
|
8
8
|
constructor(message, options = true) {
|
|
9
9
|
let logger;
|
|
@@ -27,7 +27,7 @@ var ProviderError = class _ProviderError extends Error {
|
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
// ../node_modules/.bun/@smithy+property-provider@4.2.
|
|
30
|
+
// ../node_modules/.bun/@smithy+property-provider@4.2.14/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js
|
|
31
31
|
var CredentialsProviderError = class _CredentialsProviderError extends ProviderError {
|
|
32
32
|
constructor(message, options = true) {
|
|
33
33
|
super(message, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
// ../node_modules/.bun/@aws-sdk+core@3.
|
|
3
|
+
// ../node_modules/.bun/@aws-sdk+core@3.974.8/node_modules/@aws-sdk/core/dist-es/submodules/client/setCredentialFeature.js
|
|
4
4
|
function setCredentialFeature(credentials, feature, value) {
|
|
5
5
|
if (!credentials.$source) {
|
|
6
6
|
credentials.$source = {};
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
__publicField
|
|
9
9
|
} from "./chunk-FFDYI4OH.mjs";
|
|
10
10
|
|
|
11
|
-
// ../node_modules/.bun/@smithy+protocol-http@5.3.
|
|
11
|
+
// ../node_modules/.bun/@smithy+protocol-http@5.3.14/node_modules/@smithy/protocol-http/dist-es/httpResponse.js
|
|
12
12
|
var HttpResponse = class {
|
|
13
13
|
constructor(options) {
|
|
14
14
|
__publicField(this, "statusCode");
|
|
@@ -32,7 +32,7 @@ var HttpResponse = class {
|
|
|
32
32
|
var escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode);
|
|
33
33
|
var hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`;
|
|
34
34
|
|
|
35
|
-
// ../node_modules/.bun/@smithy+querystring-builder@4.2.
|
|
35
|
+
// ../node_modules/.bun/@smithy+querystring-builder@4.2.14/node_modules/@smithy/querystring-builder/dist-es/index.js
|
|
36
36
|
function buildQueryString(query) {
|
|
37
37
|
const parts = [];
|
|
38
38
|
for (let key of Object.keys(query).sort()) {
|
|
@@ -53,10 +53,10 @@ function buildQueryString(query) {
|
|
|
53
53
|
return parts.join("&");
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
56
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
|
|
57
57
|
import { Agent as hsAgent, request as hsRequest } from "https";
|
|
58
58
|
|
|
59
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
59
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/build-abort-error.js
|
|
60
60
|
function buildAbortError(abortSignal) {
|
|
61
61
|
const reason = abortSignal && typeof abortSignal === "object" && "reason" in abortSignal ? abortSignal.reason : void 0;
|
|
62
62
|
if (reason) {
|
|
@@ -75,10 +75,10 @@ function buildAbortError(abortSignal) {
|
|
|
75
75
|
return abortError;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
78
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/constants.js
|
|
79
79
|
var NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"];
|
|
80
80
|
|
|
81
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
81
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js
|
|
82
82
|
var getTransformedHeaders = (headers) => {
|
|
83
83
|
const transformedHeaders = {};
|
|
84
84
|
for (const name of Object.keys(headers)) {
|
|
@@ -88,13 +88,13 @@ var getTransformedHeaders = (headers) => {
|
|
|
88
88
|
return transformedHeaders;
|
|
89
89
|
};
|
|
90
90
|
|
|
91
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
91
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/timing.js
|
|
92
92
|
var timing = {
|
|
93
93
|
setTimeout: (cb, ms) => setTimeout(cb, ms),
|
|
94
94
|
clearTimeout: (timeoutId) => clearTimeout(timeoutId)
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
97
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js
|
|
98
98
|
var DEFER_EVENT_LISTENER_TIME = 1e3;
|
|
99
99
|
var setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
|
100
100
|
if (!timeoutInMs) {
|
|
@@ -129,8 +129,8 @@ var setConnectionTimeout = (request, reject, timeoutInMs = 0) => {
|
|
|
129
129
|
return timing.setTimeout(registerTimeout.bind(null, DEFER_EVENT_LISTENER_TIME), DEFER_EVENT_LISTENER_TIME);
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
133
|
-
var setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout,
|
|
132
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/set-request-timeout.js
|
|
133
|
+
var setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, logger2) => {
|
|
134
134
|
if (timeoutInMs) {
|
|
135
135
|
return timing.setTimeout(() => {
|
|
136
136
|
let msg = `@smithy/node-http-handler - [${throwOnRequestTimeout ? "ERROR" : "WARN"}] a request has exceeded the configured ${timeoutInMs} ms requestTimeout.`;
|
|
@@ -143,14 +143,14 @@ var setRequestTimeout = (req, reject, timeoutInMs = 0, throwOnRequestTimeout, lo
|
|
|
143
143
|
reject(error);
|
|
144
144
|
} else {
|
|
145
145
|
msg += ` Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.`;
|
|
146
|
-
|
|
146
|
+
logger2?.warn?.(msg);
|
|
147
147
|
}
|
|
148
148
|
}, timeoutInMs);
|
|
149
149
|
}
|
|
150
150
|
return -1;
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
153
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js
|
|
154
154
|
var DEFER_EVENT_LISTENER_TIME2 = 3e3;
|
|
155
155
|
var setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs = DEFER_EVENT_LISTENER_TIME2) => {
|
|
156
156
|
if (keepAlive !== true) {
|
|
@@ -172,7 +172,7 @@ var setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }, deferTimeMs =
|
|
|
172
172
|
return timing.setTimeout(registerListener, deferTimeMs);
|
|
173
173
|
};
|
|
174
174
|
|
|
175
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
175
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js
|
|
176
176
|
var DEFER_EVENT_LISTENER_TIME3 = 3e3;
|
|
177
177
|
var setSocketTimeout = (request, reject, timeoutInMs = 0) => {
|
|
178
178
|
const registerTimeout = (offset) => {
|
|
@@ -195,7 +195,7 @@ var setSocketTimeout = (request, reject, timeoutInMs = 0) => {
|
|
|
195
195
|
return timing.setTimeout(registerTimeout.bind(null, timeoutInMs === 0 ? 0 : DEFER_EVENT_LISTENER_TIME3), DEFER_EVENT_LISTENER_TIME3);
|
|
196
196
|
};
|
|
197
197
|
|
|
198
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
198
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js
|
|
199
199
|
import { Readable } from "stream";
|
|
200
200
|
var MIN_WAIT_TIME = 6e3;
|
|
201
201
|
async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME, externalAgent = false) {
|
|
@@ -255,7 +255,7 @@ function writeBody(httpRequest, body) {
|
|
|
255
255
|
httpRequest.end();
|
|
256
256
|
}
|
|
257
257
|
|
|
258
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
258
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js
|
|
259
259
|
var hAgent = void 0;
|
|
260
260
|
var hRequest = void 0;
|
|
261
261
|
var NodeHttpHandler = class _NodeHttpHandler {
|
|
@@ -281,7 +281,7 @@ var NodeHttpHandler = class _NodeHttpHandler {
|
|
|
281
281
|
}
|
|
282
282
|
return new _NodeHttpHandler(instanceOrOptions);
|
|
283
283
|
}
|
|
284
|
-
static checkSocketUsage(agent, socketWarningTimestamp,
|
|
284
|
+
static checkSocketUsage(agent, socketWarningTimestamp, logger2 = console) {
|
|
285
285
|
const { sockets, requests, maxSockets } = agent;
|
|
286
286
|
if (typeof maxSockets !== "number" || maxSockets === Infinity) {
|
|
287
287
|
return socketWarningTimestamp;
|
|
@@ -295,7 +295,7 @@ var NodeHttpHandler = class _NodeHttpHandler {
|
|
|
295
295
|
const socketsInUse = sockets[origin]?.length ?? 0;
|
|
296
296
|
const requestsEnqueued = requests[origin]?.length ?? 0;
|
|
297
297
|
if (socketsInUse >= maxSockets && requestsEnqueued >= 2 * maxSockets) {
|
|
298
|
-
|
|
298
|
+
logger2?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${socketsInUse} and ${requestsEnqueued} additional requests are enqueued.
|
|
299
299
|
See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
|
|
300
300
|
or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`);
|
|
301
301
|
return Date.now();
|
|
@@ -437,7 +437,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
437
437
|
return this.config ?? {};
|
|
438
438
|
}
|
|
439
439
|
resolveDefaultConfig(options) {
|
|
440
|
-
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger } = options || {};
|
|
440
|
+
const { requestTimeout, connectionTimeout, socketTimeout, socketAcquisitionWarningTimeout, httpAgent, httpsAgent, throwOnRequestTimeout, logger: logger2 } = options || {};
|
|
441
441
|
const keepAlive = true;
|
|
442
442
|
const maxSockets = 50;
|
|
443
443
|
return {
|
|
@@ -463,12 +463,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
463
463
|
}
|
|
464
464
|
return new hsAgent({ keepAlive, maxSockets, ...httpsAgent });
|
|
465
465
|
})(),
|
|
466
|
-
logger
|
|
466
|
+
logger: logger2
|
|
467
467
|
};
|
|
468
468
|
}
|
|
469
469
|
};
|
|
470
470
|
|
|
471
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
471
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js
|
|
472
472
|
import { Writable } from "stream";
|
|
473
473
|
var Collector = class extends Writable {
|
|
474
474
|
constructor() {
|
|
@@ -481,7 +481,7 @@ var Collector = class extends Writable {
|
|
|
481
481
|
}
|
|
482
482
|
};
|
|
483
483
|
|
|
484
|
-
// ../node_modules/.bun/@smithy+node-http-handler@4.
|
|
484
|
+
// ../node_modules/.bun/@smithy+node-http-handler@4.6.1/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js
|
|
485
485
|
var streamCollector = (stream) => {
|
|
486
486
|
if (isReadableStreamInstance(stream)) {
|
|
487
487
|
return collectReadableStream(stream);
|
|
@@ -523,6 +523,288 @@ async function collectReadableStream(stream) {
|
|
|
523
523
|
return collected;
|
|
524
524
|
}
|
|
525
525
|
|
|
526
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js
|
|
527
|
+
var expectNumber = (value) => {
|
|
528
|
+
if (value === null || value === void 0) {
|
|
529
|
+
return void 0;
|
|
530
|
+
}
|
|
531
|
+
if (typeof value === "string") {
|
|
532
|
+
const parsed = parseFloat(value);
|
|
533
|
+
if (!Number.isNaN(parsed)) {
|
|
534
|
+
if (String(parsed) !== String(value)) {
|
|
535
|
+
logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`));
|
|
536
|
+
}
|
|
537
|
+
return parsed;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
if (typeof value === "number") {
|
|
541
|
+
return value;
|
|
542
|
+
}
|
|
543
|
+
throw new TypeError(`Expected number, got ${typeof value}: ${value}`);
|
|
544
|
+
};
|
|
545
|
+
var MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23));
|
|
546
|
+
var expectFloat32 = (value) => {
|
|
547
|
+
const expected = expectNumber(value);
|
|
548
|
+
if (expected !== void 0 && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) {
|
|
549
|
+
if (Math.abs(expected) > MAX_FLOAT) {
|
|
550
|
+
throw new TypeError(`Expected 32-bit float, got ${value}`);
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
return expected;
|
|
554
|
+
};
|
|
555
|
+
var expectLong = (value) => {
|
|
556
|
+
if (value === null || value === void 0) {
|
|
557
|
+
return void 0;
|
|
558
|
+
}
|
|
559
|
+
if (Number.isInteger(value) && !Number.isNaN(value)) {
|
|
560
|
+
return value;
|
|
561
|
+
}
|
|
562
|
+
throw new TypeError(`Expected integer, got ${typeof value}: ${value}`);
|
|
563
|
+
};
|
|
564
|
+
var expectShort = (value) => expectSizedInt(value, 16);
|
|
565
|
+
var expectByte = (value) => expectSizedInt(value, 8);
|
|
566
|
+
var expectSizedInt = (value, size) => {
|
|
567
|
+
const expected = expectLong(value);
|
|
568
|
+
if (expected !== void 0 && castInt(expected, size) !== expected) {
|
|
569
|
+
throw new TypeError(`Expected ${size}-bit integer, got ${value}`);
|
|
570
|
+
}
|
|
571
|
+
return expected;
|
|
572
|
+
};
|
|
573
|
+
var castInt = (value, size) => {
|
|
574
|
+
switch (size) {
|
|
575
|
+
case 32:
|
|
576
|
+
return Int32Array.of(value)[0];
|
|
577
|
+
case 16:
|
|
578
|
+
return Int16Array.of(value)[0];
|
|
579
|
+
case 8:
|
|
580
|
+
return Int8Array.of(value)[0];
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
var strictParseDouble = (value) => {
|
|
584
|
+
if (typeof value == "string") {
|
|
585
|
+
return expectNumber(parseNumber(value));
|
|
586
|
+
}
|
|
587
|
+
return expectNumber(value);
|
|
588
|
+
};
|
|
589
|
+
var strictParseFloat32 = (value) => {
|
|
590
|
+
if (typeof value == "string") {
|
|
591
|
+
return expectFloat32(parseNumber(value));
|
|
592
|
+
}
|
|
593
|
+
return expectFloat32(value);
|
|
594
|
+
};
|
|
595
|
+
var NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g;
|
|
596
|
+
var parseNumber = (value) => {
|
|
597
|
+
const matches = value.match(NUMBER_REGEX);
|
|
598
|
+
if (matches === null || matches[0].length !== value.length) {
|
|
599
|
+
throw new TypeError(`Expected real number, got implicit NaN`);
|
|
600
|
+
}
|
|
601
|
+
return parseFloat(value);
|
|
602
|
+
};
|
|
603
|
+
var strictParseShort = (value) => {
|
|
604
|
+
if (typeof value === "string") {
|
|
605
|
+
return expectShort(parseNumber(value));
|
|
606
|
+
}
|
|
607
|
+
return expectShort(value);
|
|
608
|
+
};
|
|
609
|
+
var strictParseByte = (value) => {
|
|
610
|
+
if (typeof value === "string") {
|
|
611
|
+
return expectByte(parseNumber(value));
|
|
612
|
+
}
|
|
613
|
+
return expectByte(value);
|
|
614
|
+
};
|
|
615
|
+
var stackTraceWarning = (message) => {
|
|
616
|
+
return String(new TypeError(message).stack || message).split("\n").slice(0, 5).filter((s) => !s.includes("stackTraceWarning")).join("\n");
|
|
617
|
+
};
|
|
618
|
+
var logger = {
|
|
619
|
+
warn: console.warn
|
|
620
|
+
};
|
|
621
|
+
|
|
622
|
+
// ../node_modules/.bun/@smithy+core@3.23.17/node_modules/@smithy/core/dist-es/submodules/serde/date-utils.js
|
|
623
|
+
var DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"];
|
|
624
|
+
var MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
|
|
625
|
+
function dateToUtcString(date) {
|
|
626
|
+
const year = date.getUTCFullYear();
|
|
627
|
+
const month = date.getUTCMonth();
|
|
628
|
+
const dayOfWeek = date.getUTCDay();
|
|
629
|
+
const dayOfMonthInt = date.getUTCDate();
|
|
630
|
+
const hoursInt = date.getUTCHours();
|
|
631
|
+
const minutesInt = date.getUTCMinutes();
|
|
632
|
+
const secondsInt = date.getUTCSeconds();
|
|
633
|
+
const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`;
|
|
634
|
+
const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`;
|
|
635
|
+
const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`;
|
|
636
|
+
const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`;
|
|
637
|
+
return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`;
|
|
638
|
+
}
|
|
639
|
+
var RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/);
|
|
640
|
+
var parseRfc3339DateTime = (value) => {
|
|
641
|
+
if (value === null || value === void 0) {
|
|
642
|
+
return void 0;
|
|
643
|
+
}
|
|
644
|
+
if (typeof value !== "string") {
|
|
645
|
+
throw new TypeError("RFC-3339 date-times must be expressed as strings");
|
|
646
|
+
}
|
|
647
|
+
const match = RFC3339.exec(value);
|
|
648
|
+
if (!match) {
|
|
649
|
+
throw new TypeError("Invalid RFC-3339 date-time value");
|
|
650
|
+
}
|
|
651
|
+
const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
652
|
+
const year = strictParseShort(stripLeadingZeroes(yearStr));
|
|
653
|
+
const month = parseDateValue(monthStr, "month", 1, 12);
|
|
654
|
+
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
655
|
+
return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
656
|
+
};
|
|
657
|
+
var RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/);
|
|
658
|
+
var parseRfc3339DateTimeWithOffset = (value) => {
|
|
659
|
+
if (value === null || value === void 0) {
|
|
660
|
+
return void 0;
|
|
661
|
+
}
|
|
662
|
+
if (typeof value !== "string") {
|
|
663
|
+
throw new TypeError("RFC-3339 date-times must be expressed as strings");
|
|
664
|
+
}
|
|
665
|
+
const match = RFC3339_WITH_OFFSET.exec(value);
|
|
666
|
+
if (!match) {
|
|
667
|
+
throw new TypeError("Invalid RFC-3339 date-time value");
|
|
668
|
+
}
|
|
669
|
+
const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match;
|
|
670
|
+
const year = strictParseShort(stripLeadingZeroes(yearStr));
|
|
671
|
+
const month = parseDateValue(monthStr, "month", 1, 12);
|
|
672
|
+
const day = parseDateValue(dayStr, "day", 1, 31);
|
|
673
|
+
const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds });
|
|
674
|
+
if (offsetStr.toUpperCase() != "Z") {
|
|
675
|
+
date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr));
|
|
676
|
+
}
|
|
677
|
+
return date;
|
|
678
|
+
};
|
|
679
|
+
var IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
|
|
680
|
+
var RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/);
|
|
681
|
+
var ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/);
|
|
682
|
+
var parseRfc7231DateTime = (value) => {
|
|
683
|
+
if (value === null || value === void 0) {
|
|
684
|
+
return void 0;
|
|
685
|
+
}
|
|
686
|
+
if (typeof value !== "string") {
|
|
687
|
+
throw new TypeError("RFC-7231 date-times must be expressed as strings");
|
|
688
|
+
}
|
|
689
|
+
let match = IMF_FIXDATE.exec(value);
|
|
690
|
+
if (match) {
|
|
691
|
+
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
692
|
+
return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
|
|
693
|
+
}
|
|
694
|
+
match = RFC_850_DATE.exec(value);
|
|
695
|
+
if (match) {
|
|
696
|
+
const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match;
|
|
697
|
+
return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), {
|
|
698
|
+
hours,
|
|
699
|
+
minutes,
|
|
700
|
+
seconds,
|
|
701
|
+
fractionalMilliseconds
|
|
702
|
+
}));
|
|
703
|
+
}
|
|
704
|
+
match = ASC_TIME.exec(value);
|
|
705
|
+
if (match) {
|
|
706
|
+
const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match;
|
|
707
|
+
return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds });
|
|
708
|
+
}
|
|
709
|
+
throw new TypeError("Invalid RFC-7231 date-time value");
|
|
710
|
+
};
|
|
711
|
+
var parseEpochTimestamp = (value) => {
|
|
712
|
+
if (value === null || value === void 0) {
|
|
713
|
+
return void 0;
|
|
714
|
+
}
|
|
715
|
+
let valueAsDouble;
|
|
716
|
+
if (typeof value === "number") {
|
|
717
|
+
valueAsDouble = value;
|
|
718
|
+
} else if (typeof value === "string") {
|
|
719
|
+
valueAsDouble = strictParseDouble(value);
|
|
720
|
+
} else if (typeof value === "object" && value.tag === 1) {
|
|
721
|
+
valueAsDouble = value.value;
|
|
722
|
+
} else {
|
|
723
|
+
throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");
|
|
724
|
+
}
|
|
725
|
+
if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) {
|
|
726
|
+
throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");
|
|
727
|
+
}
|
|
728
|
+
return new Date(Math.round(valueAsDouble * 1e3));
|
|
729
|
+
};
|
|
730
|
+
var buildDate = (year, month, day, time) => {
|
|
731
|
+
const adjustedMonth = month - 1;
|
|
732
|
+
validateDayOfMonth(year, adjustedMonth, day);
|
|
733
|
+
return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds)));
|
|
734
|
+
};
|
|
735
|
+
var parseTwoDigitYear = (value) => {
|
|
736
|
+
const thisYear = (/* @__PURE__ */ new Date()).getUTCFullYear();
|
|
737
|
+
const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value));
|
|
738
|
+
if (valueInThisCentury < thisYear) {
|
|
739
|
+
return valueInThisCentury + 100;
|
|
740
|
+
}
|
|
741
|
+
return valueInThisCentury;
|
|
742
|
+
};
|
|
743
|
+
var FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1e3;
|
|
744
|
+
var adjustRfc850Year = (input) => {
|
|
745
|
+
if (input.getTime() - (/* @__PURE__ */ new Date()).getTime() > FIFTY_YEARS_IN_MILLIS) {
|
|
746
|
+
return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds()));
|
|
747
|
+
}
|
|
748
|
+
return input;
|
|
749
|
+
};
|
|
750
|
+
var parseMonthByShortName = (value) => {
|
|
751
|
+
const monthIdx = MONTHS.indexOf(value);
|
|
752
|
+
if (monthIdx < 0) {
|
|
753
|
+
throw new TypeError(`Invalid month: ${value}`);
|
|
754
|
+
}
|
|
755
|
+
return monthIdx + 1;
|
|
756
|
+
};
|
|
757
|
+
var DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
|
|
758
|
+
var validateDayOfMonth = (year, month, day) => {
|
|
759
|
+
let maxDays = DAYS_IN_MONTH[month];
|
|
760
|
+
if (month === 1 && isLeapYear(year)) {
|
|
761
|
+
maxDays = 29;
|
|
762
|
+
}
|
|
763
|
+
if (day > maxDays) {
|
|
764
|
+
throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`);
|
|
765
|
+
}
|
|
766
|
+
};
|
|
767
|
+
var isLeapYear = (year) => {
|
|
768
|
+
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
769
|
+
};
|
|
770
|
+
var parseDateValue = (value, type, lower, upper) => {
|
|
771
|
+
const dateVal = strictParseByte(stripLeadingZeroes(value));
|
|
772
|
+
if (dateVal < lower || dateVal > upper) {
|
|
773
|
+
throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`);
|
|
774
|
+
}
|
|
775
|
+
return dateVal;
|
|
776
|
+
};
|
|
777
|
+
var parseMilliseconds = (value) => {
|
|
778
|
+
if (value === null || value === void 0) {
|
|
779
|
+
return 0;
|
|
780
|
+
}
|
|
781
|
+
return strictParseFloat32("0." + value) * 1e3;
|
|
782
|
+
};
|
|
783
|
+
var parseOffsetToMilliseconds = (value) => {
|
|
784
|
+
const directionStr = value[0];
|
|
785
|
+
let direction = 1;
|
|
786
|
+
if (directionStr == "+") {
|
|
787
|
+
direction = 1;
|
|
788
|
+
} else if (directionStr == "-") {
|
|
789
|
+
direction = -1;
|
|
790
|
+
} else {
|
|
791
|
+
throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`);
|
|
792
|
+
}
|
|
793
|
+
const hour = Number(value.substring(1, 3));
|
|
794
|
+
const minute = Number(value.substring(4, 6));
|
|
795
|
+
return direction * (hour * 60 + minute) * 60 * 1e3;
|
|
796
|
+
};
|
|
797
|
+
var stripLeadingZeroes = (value) => {
|
|
798
|
+
let idx = 0;
|
|
799
|
+
while (idx < value.length - 1 && value.charAt(idx) === "0") {
|
|
800
|
+
idx++;
|
|
801
|
+
}
|
|
802
|
+
if (idx === 0) {
|
|
803
|
+
return value;
|
|
804
|
+
}
|
|
805
|
+
return value.slice(idx);
|
|
806
|
+
};
|
|
807
|
+
|
|
526
808
|
// ../node_modules/.bun/@smithy+util-base64@4.3.2/node_modules/@smithy/util-base64/dist-es/fromBase64.js
|
|
527
809
|
var BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/;
|
|
528
810
|
var fromBase64 = (input) => {
|
|
@@ -592,5 +874,10 @@ export {
|
|
|
592
874
|
NodeHttpHandler,
|
|
593
875
|
streamCollector,
|
|
594
876
|
fromHex,
|
|
595
|
-
toHex
|
|
877
|
+
toHex,
|
|
878
|
+
dateToUtcString,
|
|
879
|
+
parseRfc3339DateTime,
|
|
880
|
+
parseRfc3339DateTimeWithOffset,
|
|
881
|
+
parseRfc7231DateTime,
|
|
882
|
+
parseEpochTimestamp
|
|
596
883
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env bun
|
|
2
2
|
|
|
3
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
3
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js
|
|
4
4
|
var ENV_PROFILE = "AWS_PROFILE";
|
|
5
5
|
var DEFAULT_PROFILE = "default";
|
|
6
6
|
var getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE;
|
|
7
7
|
|
|
8
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
8
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
|
|
9
9
|
import { join } from "path";
|
|
10
10
|
|
|
11
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
11
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js
|
|
12
12
|
import { homedir } from "os";
|
|
13
13
|
import { sep } from "path";
|
|
14
14
|
var homeDirCache = {};
|
|
@@ -32,7 +32,7 @@ var getHomeDir = () => {
|
|
|
32
32
|
return homeDirCache[homeDirCacheKey];
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
35
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js
|
|
36
36
|
var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
|
|
37
37
|
var getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config");
|
|
38
38
|
|
|
@@ -44,13 +44,13 @@ var IniSectionType;
|
|
|
44
44
|
IniSectionType2["SERVICES"] = "services";
|
|
45
45
|
})(IniSectionType || (IniSectionType = {}));
|
|
46
46
|
|
|
47
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
47
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
|
|
48
48
|
import { join as join3 } from "path";
|
|
49
49
|
|
|
50
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
50
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/constants.js
|
|
51
51
|
var CONFIG_PREFIX_SEPARATOR = ".";
|
|
52
52
|
|
|
53
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
53
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js
|
|
54
54
|
var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
55
55
|
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
56
56
|
if (indexOfSeparator === -1) {
|
|
@@ -66,12 +66,12 @@ var getConfigData = (data) => Object.entries(data).filter(([key]) => {
|
|
|
66
66
|
...data.default && { default: data.default }
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
69
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js
|
|
70
70
|
import { join as join2 } from "path";
|
|
71
71
|
var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
|
|
72
72
|
var getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join2(getHomeDir(), ".aws", "credentials");
|
|
73
73
|
|
|
74
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
74
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js
|
|
75
75
|
var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
76
76
|
var profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
77
77
|
var parseIni = (iniData) => {
|
|
@@ -120,7 +120,7 @@ var parseIni = (iniData) => {
|
|
|
120
120
|
return map;
|
|
121
121
|
};
|
|
122
122
|
|
|
123
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
123
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/readFile.js
|
|
124
124
|
import { readFile as fsReadFile } from "fs/promises";
|
|
125
125
|
var filePromises = {};
|
|
126
126
|
var fileIntercept = {};
|
|
@@ -134,7 +134,7 @@ var readFile = (path, options) => {
|
|
|
134
134
|
return filePromises[path];
|
|
135
135
|
};
|
|
136
136
|
|
|
137
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
137
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js
|
|
138
138
|
var swallowError = () => ({});
|
|
139
139
|
var loadSharedConfigFiles = async (init = {}) => {
|
|
140
140
|
const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init;
|
|
@@ -162,14 +162,14 @@ var loadSharedConfigFiles = async (init = {}) => {
|
|
|
162
162
|
};
|
|
163
163
|
};
|
|
164
164
|
|
|
165
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
165
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js
|
|
166
166
|
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 }), {});
|
|
167
167
|
|
|
168
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
168
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js
|
|
169
169
|
var swallowError2 = () => ({});
|
|
170
170
|
var loadSsoSessionData = async (init = {}) => readFile(init.configFilepath ?? getConfigFilepath()).then(parseIni).then(getSsoSessionData).catch(swallowError2);
|
|
171
171
|
|
|
172
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
172
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js
|
|
173
173
|
var mergeConfigFiles = (...files) => {
|
|
174
174
|
const merged = {};
|
|
175
175
|
for (const file of files) {
|
|
@@ -184,16 +184,16 @@ var mergeConfigFiles = (...files) => {
|
|
|
184
184
|
return merged;
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
187
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js
|
|
188
188
|
var parseKnownFiles = async (init) => {
|
|
189
189
|
const parsedFiles = await loadSharedConfigFiles(init);
|
|
190
190
|
return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile);
|
|
191
191
|
};
|
|
192
192
|
|
|
193
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
193
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
|
|
194
194
|
import { readFile as readFile2 } from "fs/promises";
|
|
195
195
|
|
|
196
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
196
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js
|
|
197
197
|
import { createHash } from "crypto";
|
|
198
198
|
import { join as join4 } from "path";
|
|
199
199
|
var getSSOTokenFilepath = (id) => {
|
|
@@ -202,7 +202,7 @@ var getSSOTokenFilepath = (id) => {
|
|
|
202
202
|
return join4(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`);
|
|
203
203
|
};
|
|
204
204
|
|
|
205
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
205
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js
|
|
206
206
|
var tokenIntercept = {};
|
|
207
207
|
var getSSOTokenFromFile = async (id) => {
|
|
208
208
|
if (tokenIntercept[id]) {
|
|
@@ -213,7 +213,7 @@ var getSSOTokenFromFile = async (id) => {
|
|
|
213
213
|
return JSON.parse(ssoTokenText);
|
|
214
214
|
};
|
|
215
215
|
|
|
216
|
-
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.
|
|
216
|
+
// ../node_modules/.bun/@smithy+shared-ini-file-loader@4.4.9/node_modules/@smithy/shared-ini-file-loader/dist-es/externalDataInterceptor.js
|
|
217
217
|
var externalDataInterceptor = {
|
|
218
218
|
getFileRecord() {
|
|
219
219
|
return fileIntercept;
|