cdk-assets 4.4.11 → 4.4.12
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/THIRD_PARTY_LICENSES +1 -413
- package/bin/cdk-assets.js +907 -907
- package/bin/docker-credential-cdk-assets.js +871 -871
- package/package.json +7 -7
package/bin/cdk-assets.js
CHANGED
|
@@ -6,11 +6,20 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
8
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
-
var __esm = (fn, res) => function __init() {
|
|
10
|
-
|
|
9
|
+
var __esm = (fn, res, err) => function __init() {
|
|
10
|
+
if (err) throw err[0];
|
|
11
|
+
try {
|
|
12
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
13
|
+
} catch (e16) {
|
|
14
|
+
throw err = [e16], e16;
|
|
15
|
+
}
|
|
11
16
|
};
|
|
12
17
|
var __commonJS = (cb, mod) => function __require() {
|
|
13
|
-
|
|
18
|
+
try {
|
|
19
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
+
} catch (e16) {
|
|
21
|
+
throw mod = 0, e16;
|
|
22
|
+
}
|
|
14
23
|
};
|
|
15
24
|
var __export = (target, all) => {
|
|
16
25
|
for (var name in all)
|
|
@@ -24,6 +33,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
24
33
|
}
|
|
25
34
|
return to;
|
|
26
35
|
};
|
|
36
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
27
37
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
28
38
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
29
39
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -143,7 +153,7 @@ async function shell(command, options) {
|
|
|
143
153
|
...options,
|
|
144
154
|
stdio: [options.input ? "pipe" : "ignore", "pipe", "pipe"]
|
|
145
155
|
});
|
|
146
|
-
return new Promise((
|
|
156
|
+
return new Promise((resolve5, reject) => {
|
|
147
157
|
if (options.input) {
|
|
148
158
|
child.stdin.write(options.input);
|
|
149
159
|
child.stdin.end();
|
|
@@ -162,7 +172,7 @@ async function shell(command, options) {
|
|
|
162
172
|
child.once("close", (code, signal) => {
|
|
163
173
|
handleShellOutput(renderCommandLine(command), options, "close");
|
|
164
174
|
if (code === 0) {
|
|
165
|
-
|
|
175
|
+
resolve5(Buffer.concat(stdout).toString("utf-8"));
|
|
166
176
|
} else {
|
|
167
177
|
const out = Buffer.concat(stderr).toString("utf-8").trim();
|
|
168
178
|
reject(
|
|
@@ -370,6 +380,24 @@ var init_docker = __esm({
|
|
|
370
380
|
async tag(sourceTag, targetTag) {
|
|
371
381
|
await this.execute(["tag", sourceTag, targetTag]);
|
|
372
382
|
}
|
|
383
|
+
/**
|
|
384
|
+
* Find a local image tagged with the given imageTag (the tag portion after the colon).
|
|
385
|
+
* Returns the full `repository:tag` string, or undefined if not found.
|
|
386
|
+
*/
|
|
387
|
+
async findImageByTag(imageTag) {
|
|
388
|
+
try {
|
|
389
|
+
const configArgs = this.configDir ? ["--config", this.configDir] : [];
|
|
390
|
+
const shellEventPublisher = shellEventPublisherFromEventEmitter(this.eventEmitter);
|
|
391
|
+
const output = await shell(
|
|
392
|
+
[getDockerCmd(), ...configArgs, "images", "--format", "{{.Repository}}:{{.Tag}}", "--filter", `reference=*/*:${imageTag}`],
|
|
393
|
+
{ shellEventPublisher, subprocessOutputDestination: "ignore" }
|
|
394
|
+
);
|
|
395
|
+
const firstLine = output.trim().split("\n")[0]?.trim();
|
|
396
|
+
return firstLine || void 0;
|
|
397
|
+
} catch {
|
|
398
|
+
return void 0;
|
|
399
|
+
}
|
|
400
|
+
}
|
|
373
401
|
async push(options) {
|
|
374
402
|
await this.execute(["push", options.tag], {
|
|
375
403
|
subprocessOutputDestination: this.subprocessOutputDestination
|
|
@@ -767,14 +795,14 @@ var init_assets = __esm({
|
|
|
767
795
|
var require_helpers = __commonJS({
|
|
768
796
|
"../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
|
|
769
797
|
"use strict";
|
|
770
|
-
var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema,
|
|
771
|
-
if (Array.isArray(
|
|
772
|
-
this.path =
|
|
773
|
-
this.property =
|
|
798
|
+
var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path12, name, argument) {
|
|
799
|
+
if (Array.isArray(path12)) {
|
|
800
|
+
this.path = path12;
|
|
801
|
+
this.property = path12.reduce(function(sum, item) {
|
|
774
802
|
return sum + makeSuffix(item);
|
|
775
803
|
}, "instance");
|
|
776
|
-
} else if (
|
|
777
|
-
this.property =
|
|
804
|
+
} else if (path12 !== void 0) {
|
|
805
|
+
this.property = path12;
|
|
778
806
|
}
|
|
779
807
|
if (message) {
|
|
780
808
|
this.message = message;
|
|
@@ -869,28 +897,28 @@ var require_helpers = __commonJS({
|
|
|
869
897
|
name: { value: "SchemaError", enumerable: false }
|
|
870
898
|
}
|
|
871
899
|
);
|
|
872
|
-
var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options,
|
|
900
|
+
var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path12, base, schemas) {
|
|
873
901
|
this.schema = schema;
|
|
874
902
|
this.options = options;
|
|
875
|
-
if (Array.isArray(
|
|
876
|
-
this.path =
|
|
877
|
-
this.propertyPath =
|
|
903
|
+
if (Array.isArray(path12)) {
|
|
904
|
+
this.path = path12;
|
|
905
|
+
this.propertyPath = path12.reduce(function(sum, item) {
|
|
878
906
|
return sum + makeSuffix(item);
|
|
879
907
|
}, "instance");
|
|
880
908
|
} else {
|
|
881
|
-
this.propertyPath =
|
|
909
|
+
this.propertyPath = path12;
|
|
882
910
|
}
|
|
883
911
|
this.base = base;
|
|
884
912
|
this.schemas = schemas;
|
|
885
913
|
}, "SchemaContext");
|
|
886
|
-
SchemaContext.prototype.resolve = /* @__PURE__ */ __name(function
|
|
914
|
+
SchemaContext.prototype.resolve = /* @__PURE__ */ __name(function resolve5(target) {
|
|
887
915
|
return (() => resolveUrl(this.base, target))();
|
|
888
916
|
}, "resolve");
|
|
889
917
|
SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
|
|
890
|
-
var
|
|
918
|
+
var path12 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
|
|
891
919
|
var id = schema.$id || schema.id;
|
|
892
920
|
let base = (() => resolveUrl(this.base, id || ""))();
|
|
893
|
-
var ctx = new SchemaContext(schema, this.options,
|
|
921
|
+
var ctx = new SchemaContext(schema, this.options, path12, base, Object.create(this.schemas));
|
|
894
922
|
if (id && !ctx.schemas[base]) {
|
|
895
923
|
ctx.schemas[base] = schema;
|
|
896
924
|
}
|
|
@@ -2002,7 +2030,7 @@ var require_validator = __commonJS({
|
|
|
2002
2030
|
}
|
|
2003
2031
|
return schema;
|
|
2004
2032
|
}, "superResolve");
|
|
2005
|
-
Validator2.prototype.resolve = /* @__PURE__ */ __name(function
|
|
2033
|
+
Validator2.prototype.resolve = /* @__PURE__ */ __name(function resolve5(schema, switchSchema, ctx) {
|
|
2006
2034
|
switchSchema = ctx.resolve(switchSchema);
|
|
2007
2035
|
if (ctx.schemas[switchSchema]) {
|
|
2008
2036
|
return { subschema: ctx.schemas[switchSchema], switchSchema };
|
|
@@ -2267,6 +2295,18 @@ var require_semver = __commonJS({
|
|
|
2267
2295
|
var { safeRe: re, t } = require_re();
|
|
2268
2296
|
var parseOptions = require_parse_options();
|
|
2269
2297
|
var { compareIdentifiers } = require_identifiers();
|
|
2298
|
+
var isPrereleaseIdentifier = /* @__PURE__ */ __name((prerelease, identifier) => {
|
|
2299
|
+
const identifiers = identifier.split(".");
|
|
2300
|
+
if (identifiers.length > prerelease.length) {
|
|
2301
|
+
return false;
|
|
2302
|
+
}
|
|
2303
|
+
for (let i16 = 0; i16 < identifiers.length; i16++) {
|
|
2304
|
+
if (compareIdentifiers(prerelease[i16], identifiers[i16]) !== 0) {
|
|
2305
|
+
return false;
|
|
2306
|
+
}
|
|
2307
|
+
}
|
|
2308
|
+
return true;
|
|
2309
|
+
}, "isPrereleaseIdentifier");
|
|
2270
2310
|
var SemVer = class _SemVer {
|
|
2271
2311
|
static {
|
|
2272
2312
|
__name(this, "SemVer");
|
|
@@ -2516,8 +2556,9 @@ var require_semver = __commonJS({
|
|
|
2516
2556
|
if (identifierBase === false) {
|
|
2517
2557
|
prerelease = [identifier];
|
|
2518
2558
|
}
|
|
2519
|
-
if (
|
|
2520
|
-
|
|
2559
|
+
if (isPrereleaseIdentifier(this.prerelease, identifier)) {
|
|
2560
|
+
const prereleaseBase = this.prerelease[identifier.split(".").length];
|
|
2561
|
+
if (isNaN(prereleaseBase)) {
|
|
2521
2562
|
this.prerelease = prerelease;
|
|
2522
2563
|
}
|
|
2523
2564
|
} else {
|
|
@@ -3193,6 +3234,7 @@ var require_range = __commonJS({
|
|
|
3193
3234
|
return comp;
|
|
3194
3235
|
}, "parseComparator");
|
|
3195
3236
|
var isX = /* @__PURE__ */ __name((id) => !id || id.toLowerCase() === "x" || id === "*", "isX");
|
|
3237
|
+
var invalidXRangeOrder = /* @__PURE__ */ __name((M, m10, p5) => isX(M) && !isX(m10) || isX(m10) && p5 && !isX(p5), "invalidXRangeOrder");
|
|
3196
3238
|
var replaceTildes = /* @__PURE__ */ __name((comp, options) => {
|
|
3197
3239
|
return comp.trim().split(/\s+/).map((c16) => replaceTilde(c16, options)).join(" ");
|
|
3198
3240
|
}, "replaceTildes");
|
|
@@ -3252,9 +3294,9 @@ var require_range = __commonJS({
|
|
|
3252
3294
|
debug("no pr");
|
|
3253
3295
|
if (M === "0") {
|
|
3254
3296
|
if (m10 === "0") {
|
|
3255
|
-
ret = `>=${M}.${m10}.${p5}
|
|
3297
|
+
ret = `>=${M}.${m10}.${p5} <${M}.${m10}.${+p5 + 1}-0`;
|
|
3256
3298
|
} else {
|
|
3257
|
-
ret = `>=${M}.${m10}.${p5}
|
|
3299
|
+
ret = `>=${M}.${m10}.${p5} <${M}.${+m10 + 1}.0-0`;
|
|
3258
3300
|
}
|
|
3259
3301
|
} else {
|
|
3260
3302
|
ret = `>=${M}.${m10}.${p5} <${+M + 1}.0.0-0`;
|
|
@@ -3273,6 +3315,9 @@ var require_range = __commonJS({
|
|
|
3273
3315
|
const r16 = options.loose ? re[t.XRANGELOOSE] : re[t.XRANGE];
|
|
3274
3316
|
return comp.replace(r16, (ret, gtlt, M, m10, p5, pr) => {
|
|
3275
3317
|
debug("xRange", comp, ret, gtlt, M, m10, p5, pr);
|
|
3318
|
+
if (invalidXRangeOrder(M, m10, p5)) {
|
|
3319
|
+
return comp;
|
|
3320
|
+
}
|
|
3276
3321
|
const xM = isX(M);
|
|
3277
3322
|
const xm = xM || isX(m10);
|
|
3278
3323
|
const xp = xm || isX(p5);
|
|
@@ -4075,7 +4120,7 @@ var require_semver2 = __commonJS({
|
|
|
4075
4120
|
// ../@aws-cdk/cloud-assembly-schema/cli-version.json
|
|
4076
4121
|
var require_cli_version = __commonJS({
|
|
4077
4122
|
"../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
|
|
4078
|
-
module2.exports = { version: "2.
|
|
4123
|
+
module2.exports = { version: "2.1127.0" };
|
|
4079
4124
|
}
|
|
4080
4125
|
});
|
|
4081
4126
|
|
|
@@ -7919,6 +7964,7 @@ var init_container_images = __esm({
|
|
|
7919
7964
|
this.asset = asset;
|
|
7920
7965
|
this.host = host;
|
|
7921
7966
|
this.options = options;
|
|
7967
|
+
this.buildCompleted = false;
|
|
7922
7968
|
}
|
|
7923
7969
|
static {
|
|
7924
7970
|
__name(this, "ContainerImageAssetHandler");
|
|
@@ -7951,6 +7997,7 @@ var init_container_images = __esm({
|
|
|
7951
7997
|
return;
|
|
7952
7998
|
}
|
|
7953
7999
|
await dockerForBuilding.tag(localTagName, initOnce.imageUri);
|
|
8000
|
+
this.buildCompleted = true;
|
|
7954
8001
|
}
|
|
7955
8002
|
async isPublished() {
|
|
7956
8003
|
try {
|
|
@@ -7978,6 +8025,13 @@ var init_container_images = __esm({
|
|
|
7978
8025
|
if (this.host.aborted) {
|
|
7979
8026
|
return;
|
|
7980
8027
|
}
|
|
8028
|
+
if (!this.buildCompleted && !await dockerForPushing.exists(initOnce.imageUri)) {
|
|
8029
|
+
const imageTag = this.asset.destination.imageTag;
|
|
8030
|
+
const existing = await dockerForPushing.findImageByTag(imageTag);
|
|
8031
|
+
if (existing) {
|
|
8032
|
+
await dockerForPushing.tag(existing, initOnce.imageUri);
|
|
8033
|
+
}
|
|
8034
|
+
}
|
|
7981
8035
|
this.host.emitMessage("upload" /* UPLOAD */, `Push ${initOnce.imageUri}`);
|
|
7982
8036
|
await dockerForPushing.push({
|
|
7983
8037
|
tag: initOnce.imageUri
|
|
@@ -8147,11 +8201,11 @@ var require_Mime = __commonJS({
|
|
|
8147
8201
|
}
|
|
8148
8202
|
}
|
|
8149
8203
|
};
|
|
8150
|
-
Mime.prototype.getType = function(
|
|
8151
|
-
|
|
8152
|
-
let last =
|
|
8204
|
+
Mime.prototype.getType = function(path12) {
|
|
8205
|
+
path12 = String(path12);
|
|
8206
|
+
let last = path12.replace(/^.*[/\\]/, "").toLowerCase();
|
|
8153
8207
|
let ext = last.replace(/^.*\./, "").toLowerCase();
|
|
8154
|
-
let hasPath = last.length <
|
|
8208
|
+
let hasPath = last.length < path12.length;
|
|
8155
8209
|
let hasDot = ext.length < last.length - 1;
|
|
8156
8210
|
return (hasDot || !hasPath) && this._types[ext] || null;
|
|
8157
8211
|
};
|
|
@@ -8186,6 +8240,28 @@ var require_mime = __commonJS({
|
|
|
8186
8240
|
}
|
|
8187
8241
|
});
|
|
8188
8242
|
|
|
8243
|
+
// ../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts
|
|
8244
|
+
async function pathExists(pathName) {
|
|
8245
|
+
try {
|
|
8246
|
+
await pfs.stat(pathName);
|
|
8247
|
+
return true;
|
|
8248
|
+
} catch (e16) {
|
|
8249
|
+
if (e16.code !== "ENOENT") {
|
|
8250
|
+
throw e16;
|
|
8251
|
+
}
|
|
8252
|
+
return false;
|
|
8253
|
+
}
|
|
8254
|
+
}
|
|
8255
|
+
var fs8, pfs;
|
|
8256
|
+
var init_fs_extra = __esm({
|
|
8257
|
+
"../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
|
|
8258
|
+
"use strict";
|
|
8259
|
+
fs8 = __toESM(require("fs"));
|
|
8260
|
+
pfs = fs8.promises;
|
|
8261
|
+
__name(pathExists, "pathExists");
|
|
8262
|
+
}
|
|
8263
|
+
});
|
|
8264
|
+
|
|
8189
8265
|
// ../../node_modules/fast-glob/out/utils/array.js
|
|
8190
8266
|
var require_array = __commonJS({
|
|
8191
8267
|
"../../node_modules/fast-glob/out/utils/array.js"(exports2) {
|
|
@@ -8265,7 +8341,7 @@ var require_path = __commonJS({
|
|
|
8265
8341
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
8266
8342
|
exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
|
|
8267
8343
|
var os5 = require("os");
|
|
8268
|
-
var
|
|
8344
|
+
var path12 = require("path");
|
|
8269
8345
|
var IS_WINDOWS_PLATFORM = os5.platform() === "win32";
|
|
8270
8346
|
var LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
8271
8347
|
var POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g;
|
|
@@ -8278,7 +8354,7 @@ var require_path = __commonJS({
|
|
|
8278
8354
|
__name(unixify, "unixify");
|
|
8279
8355
|
exports2.unixify = unixify;
|
|
8280
8356
|
function makeAbsolute(cwd, filepath) {
|
|
8281
|
-
return
|
|
8357
|
+
return path12.resolve(cwd, filepath);
|
|
8282
8358
|
}
|
|
8283
8359
|
__name(makeAbsolute, "makeAbsolute");
|
|
8284
8360
|
exports2.makeAbsolute = makeAbsolute;
|
|
@@ -9595,7 +9671,7 @@ var require_braces = __commonJS({
|
|
|
9595
9671
|
var require_constants3 = __commonJS({
|
|
9596
9672
|
"../../node_modules/micromatch/node_modules/picomatch/lib/constants.js"(exports2, module2) {
|
|
9597
9673
|
"use strict";
|
|
9598
|
-
var
|
|
9674
|
+
var path12 = require("path");
|
|
9599
9675
|
var WIN_SLASH = "\\\\/";
|
|
9600
9676
|
var WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
9601
9677
|
var DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
@@ -9769,7 +9845,7 @@ var require_constants3 = __commonJS({
|
|
|
9769
9845
|
/* | */
|
|
9770
9846
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
9771
9847
|
/* \uFEFF */
|
|
9772
|
-
SEP:
|
|
9848
|
+
SEP: path12.sep,
|
|
9773
9849
|
/**
|
|
9774
9850
|
* Create EXTGLOB_CHARS
|
|
9775
9851
|
*/
|
|
@@ -9796,7 +9872,7 @@ var require_constants3 = __commonJS({
|
|
|
9796
9872
|
var require_utils2 = __commonJS({
|
|
9797
9873
|
"../../node_modules/micromatch/node_modules/picomatch/lib/utils.js"(exports2) {
|
|
9798
9874
|
"use strict";
|
|
9799
|
-
var
|
|
9875
|
+
var path12 = require("path");
|
|
9800
9876
|
var win32 = process.platform === "win32";
|
|
9801
9877
|
var {
|
|
9802
9878
|
REGEX_BACKSLASH,
|
|
@@ -9825,7 +9901,7 @@ var require_utils2 = __commonJS({
|
|
|
9825
9901
|
if (options && typeof options.windows === "boolean") {
|
|
9826
9902
|
return options.windows;
|
|
9827
9903
|
}
|
|
9828
|
-
return win32 === true ||
|
|
9904
|
+
return win32 === true || path12.sep === "\\";
|
|
9829
9905
|
};
|
|
9830
9906
|
exports2.escapeLast = (input, char, lastIdx) => {
|
|
9831
9907
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -11189,7 +11265,7 @@ var require_parse3 = __commonJS({
|
|
|
11189
11265
|
var require_picomatch = __commonJS({
|
|
11190
11266
|
"../../node_modules/micromatch/node_modules/picomatch/lib/picomatch.js"(exports2, module2) {
|
|
11191
11267
|
"use strict";
|
|
11192
|
-
var
|
|
11268
|
+
var path12 = require("path");
|
|
11193
11269
|
var scan = require_scan2();
|
|
11194
11270
|
var parse = require_parse3();
|
|
11195
11271
|
var utils = require_utils2();
|
|
@@ -11274,7 +11350,7 @@ var require_picomatch = __commonJS({
|
|
|
11274
11350
|
};
|
|
11275
11351
|
picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
|
|
11276
11352
|
const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
|
|
11277
|
-
return regex.test(
|
|
11353
|
+
return regex.test(path12.basename(input));
|
|
11278
11354
|
};
|
|
11279
11355
|
picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
11280
11356
|
picomatch.parse = (pattern, options) => {
|
|
@@ -11501,7 +11577,7 @@ var require_pattern = __commonJS({
|
|
|
11501
11577
|
"use strict";
|
|
11502
11578
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11503
11579
|
exports2.isAbsolute = exports2.partitionAbsoluteAndRelative = exports2.removeDuplicateSlashes = exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
|
|
11504
|
-
var
|
|
11580
|
+
var path12 = require("path");
|
|
11505
11581
|
var globParent = require_glob_parent();
|
|
11506
11582
|
var micromatch = require_micromatch();
|
|
11507
11583
|
var GLOBSTAR = "**";
|
|
@@ -11611,7 +11687,7 @@ var require_pattern = __commonJS({
|
|
|
11611
11687
|
__name(endsWithSlashGlobStar, "endsWithSlashGlobStar");
|
|
11612
11688
|
exports2.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
11613
11689
|
function isAffectDepthOfReadingPattern(pattern) {
|
|
11614
|
-
const basename =
|
|
11690
|
+
const basename = path12.basename(pattern);
|
|
11615
11691
|
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
11616
11692
|
}
|
|
11617
11693
|
__name(isAffectDepthOfReadingPattern, "isAffectDepthOfReadingPattern");
|
|
@@ -11678,7 +11754,7 @@ var require_pattern = __commonJS({
|
|
|
11678
11754
|
__name(partitionAbsoluteAndRelative, "partitionAbsoluteAndRelative");
|
|
11679
11755
|
exports2.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
11680
11756
|
function isAbsolute(pattern) {
|
|
11681
|
-
return
|
|
11757
|
+
return path12.isAbsolute(pattern);
|
|
11682
11758
|
}
|
|
11683
11759
|
__name(isAbsolute, "isAbsolute");
|
|
11684
11760
|
exports2.isAbsolute = isAbsolute;
|
|
@@ -11867,10 +11943,10 @@ var require_utils3 = __commonJS({
|
|
|
11867
11943
|
exports2.array = array;
|
|
11868
11944
|
var errno = require_errno();
|
|
11869
11945
|
exports2.errno = errno;
|
|
11870
|
-
var
|
|
11871
|
-
exports2.fs =
|
|
11872
|
-
var
|
|
11873
|
-
exports2.path =
|
|
11946
|
+
var fs12 = require_fs();
|
|
11947
|
+
exports2.fs = fs12;
|
|
11948
|
+
var path12 = require_path();
|
|
11949
|
+
exports2.path = path12;
|
|
11874
11950
|
var pattern = require_pattern();
|
|
11875
11951
|
exports2.pattern = pattern;
|
|
11876
11952
|
var stream = require_stream();
|
|
@@ -11990,8 +12066,8 @@ var require_async = __commonJS({
|
|
|
11990
12066
|
"use strict";
|
|
11991
12067
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11992
12068
|
exports2.read = void 0;
|
|
11993
|
-
function read(
|
|
11994
|
-
settings.fs.lstat(
|
|
12069
|
+
function read(path12, settings, callback) {
|
|
12070
|
+
settings.fs.lstat(path12, (lstatError, lstat) => {
|
|
11995
12071
|
if (lstatError !== null) {
|
|
11996
12072
|
callFailureCallback(callback, lstatError);
|
|
11997
12073
|
return;
|
|
@@ -12000,7 +12076,7 @@ var require_async = __commonJS({
|
|
|
12000
12076
|
callSuccessCallback(callback, lstat);
|
|
12001
12077
|
return;
|
|
12002
12078
|
}
|
|
12003
|
-
settings.fs.stat(
|
|
12079
|
+
settings.fs.stat(path12, (statError, stat) => {
|
|
12004
12080
|
if (statError !== null) {
|
|
12005
12081
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
12006
12082
|
callFailureCallback(callback, statError);
|
|
@@ -12035,13 +12111,13 @@ var require_sync = __commonJS({
|
|
|
12035
12111
|
"use strict";
|
|
12036
12112
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12037
12113
|
exports2.read = void 0;
|
|
12038
|
-
function read(
|
|
12039
|
-
const lstat = settings.fs.lstatSync(
|
|
12114
|
+
function read(path12, settings) {
|
|
12115
|
+
const lstat = settings.fs.lstatSync(path12);
|
|
12040
12116
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
12041
12117
|
return lstat;
|
|
12042
12118
|
}
|
|
12043
12119
|
try {
|
|
12044
|
-
const stat = settings.fs.statSync(
|
|
12120
|
+
const stat = settings.fs.statSync(path12);
|
|
12045
12121
|
if (settings.markSymbolicLink) {
|
|
12046
12122
|
stat.isSymbolicLink = () => true;
|
|
12047
12123
|
}
|
|
@@ -12064,12 +12140,12 @@ var require_fs2 = __commonJS({
|
|
|
12064
12140
|
"use strict";
|
|
12065
12141
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12066
12142
|
exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
|
|
12067
|
-
var
|
|
12143
|
+
var fs12 = require("fs");
|
|
12068
12144
|
exports2.FILE_SYSTEM_ADAPTER = {
|
|
12069
|
-
lstat:
|
|
12070
|
-
stat:
|
|
12071
|
-
lstatSync:
|
|
12072
|
-
statSync:
|
|
12145
|
+
lstat: fs12.lstat,
|
|
12146
|
+
stat: fs12.stat,
|
|
12147
|
+
lstatSync: fs12.lstatSync,
|
|
12148
|
+
statSync: fs12.statSync
|
|
12073
12149
|
};
|
|
12074
12150
|
function createFileSystemAdapter(fsMethods) {
|
|
12075
12151
|
if (fsMethods === void 0) {
|
|
@@ -12087,7 +12163,7 @@ var require_settings = __commonJS({
|
|
|
12087
12163
|
"../../node_modules/@nodelib/fs.stat/out/settings.js"(exports2) {
|
|
12088
12164
|
"use strict";
|
|
12089
12165
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12090
|
-
var
|
|
12166
|
+
var fs12 = require_fs2();
|
|
12091
12167
|
var Settings = class {
|
|
12092
12168
|
static {
|
|
12093
12169
|
__name(this, "Settings");
|
|
@@ -12095,7 +12171,7 @@ var require_settings = __commonJS({
|
|
|
12095
12171
|
constructor(_options = {}) {
|
|
12096
12172
|
this._options = _options;
|
|
12097
12173
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
12098
|
-
this.fs =
|
|
12174
|
+
this.fs = fs12.createFileSystemAdapter(this._options.fs);
|
|
12099
12175
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
12100
12176
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
12101
12177
|
}
|
|
@@ -12117,18 +12193,18 @@ var require_out = __commonJS({
|
|
|
12117
12193
|
var sync = require_sync();
|
|
12118
12194
|
var settings_1 = require_settings();
|
|
12119
12195
|
exports2.Settings = settings_1.default;
|
|
12120
|
-
function stat(
|
|
12196
|
+
function stat(path12, optionsOrSettingsOrCallback, callback) {
|
|
12121
12197
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
12122
|
-
async.read(
|
|
12198
|
+
async.read(path12, getSettings(), optionsOrSettingsOrCallback);
|
|
12123
12199
|
return;
|
|
12124
12200
|
}
|
|
12125
|
-
async.read(
|
|
12201
|
+
async.read(path12, getSettings(optionsOrSettingsOrCallback), callback);
|
|
12126
12202
|
}
|
|
12127
12203
|
__name(stat, "stat");
|
|
12128
12204
|
exports2.stat = stat;
|
|
12129
|
-
function statSync3(
|
|
12205
|
+
function statSync3(path12, optionsOrSettings) {
|
|
12130
12206
|
const settings = getSettings(optionsOrSettings);
|
|
12131
|
-
return sync.read(
|
|
12207
|
+
return sync.read(path12, settings);
|
|
12132
12208
|
}
|
|
12133
12209
|
__name(statSync3, "statSync");
|
|
12134
12210
|
exports2.statSync = statSync3;
|
|
@@ -12261,8 +12337,8 @@ var require_utils4 = __commonJS({
|
|
|
12261
12337
|
"use strict";
|
|
12262
12338
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12263
12339
|
exports2.fs = void 0;
|
|
12264
|
-
var
|
|
12265
|
-
exports2.fs =
|
|
12340
|
+
var fs12 = require_fs3();
|
|
12341
|
+
exports2.fs = fs12;
|
|
12266
12342
|
}
|
|
12267
12343
|
});
|
|
12268
12344
|
|
|
@@ -12358,16 +12434,16 @@ var require_async2 = __commonJS({
|
|
|
12358
12434
|
return;
|
|
12359
12435
|
}
|
|
12360
12436
|
const tasks = names.map((name) => {
|
|
12361
|
-
const
|
|
12437
|
+
const path12 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
12362
12438
|
return (done) => {
|
|
12363
|
-
fsStat.stat(
|
|
12439
|
+
fsStat.stat(path12, settings.fsStatSettings, (error2, stats) => {
|
|
12364
12440
|
if (error2 !== null) {
|
|
12365
12441
|
done(error2);
|
|
12366
12442
|
return;
|
|
12367
12443
|
}
|
|
12368
12444
|
const entry = {
|
|
12369
12445
|
name,
|
|
12370
|
-
path:
|
|
12446
|
+
path: path12,
|
|
12371
12447
|
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
12372
12448
|
};
|
|
12373
12449
|
if (settings.stats) {
|
|
@@ -12467,14 +12543,14 @@ var require_fs4 = __commonJS({
|
|
|
12467
12543
|
"use strict";
|
|
12468
12544
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12469
12545
|
exports2.createFileSystemAdapter = exports2.FILE_SYSTEM_ADAPTER = void 0;
|
|
12470
|
-
var
|
|
12546
|
+
var fs12 = require("fs");
|
|
12471
12547
|
exports2.FILE_SYSTEM_ADAPTER = {
|
|
12472
|
-
lstat:
|
|
12473
|
-
stat:
|
|
12474
|
-
lstatSync:
|
|
12475
|
-
statSync:
|
|
12476
|
-
readdir:
|
|
12477
|
-
readdirSync:
|
|
12548
|
+
lstat: fs12.lstat,
|
|
12549
|
+
stat: fs12.stat,
|
|
12550
|
+
lstatSync: fs12.lstatSync,
|
|
12551
|
+
statSync: fs12.statSync,
|
|
12552
|
+
readdir: fs12.readdir,
|
|
12553
|
+
readdirSync: fs12.readdirSync
|
|
12478
12554
|
};
|
|
12479
12555
|
function createFileSystemAdapter(fsMethods) {
|
|
12480
12556
|
if (fsMethods === void 0) {
|
|
@@ -12492,9 +12568,9 @@ var require_settings2 = __commonJS({
|
|
|
12492
12568
|
"../../node_modules/@nodelib/fs.scandir/out/settings.js"(exports2) {
|
|
12493
12569
|
"use strict";
|
|
12494
12570
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
12495
|
-
var
|
|
12571
|
+
var path12 = require("path");
|
|
12496
12572
|
var fsStat = require_out();
|
|
12497
|
-
var
|
|
12573
|
+
var fs12 = require_fs4();
|
|
12498
12574
|
var Settings = class {
|
|
12499
12575
|
static {
|
|
12500
12576
|
__name(this, "Settings");
|
|
@@ -12502,8 +12578,8 @@ var require_settings2 = __commonJS({
|
|
|
12502
12578
|
constructor(_options = {}) {
|
|
12503
12579
|
this._options = _options;
|
|
12504
12580
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
12505
|
-
this.fs =
|
|
12506
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
12581
|
+
this.fs = fs12.createFileSystemAdapter(this._options.fs);
|
|
12582
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path12.sep);
|
|
12507
12583
|
this.stats = this._getValue(this._options.stats, false);
|
|
12508
12584
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
12509
12585
|
this.fsStatSettings = new fsStat.Settings({
|
|
@@ -12530,18 +12606,18 @@ var require_out2 = __commonJS({
|
|
|
12530
12606
|
var sync = require_sync2();
|
|
12531
12607
|
var settings_1 = require_settings2();
|
|
12532
12608
|
exports2.Settings = settings_1.default;
|
|
12533
|
-
function scandir(
|
|
12609
|
+
function scandir(path12, optionsOrSettingsOrCallback, callback) {
|
|
12534
12610
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
12535
|
-
async.read(
|
|
12611
|
+
async.read(path12, getSettings(), optionsOrSettingsOrCallback);
|
|
12536
12612
|
return;
|
|
12537
12613
|
}
|
|
12538
|
-
async.read(
|
|
12614
|
+
async.read(path12, getSettings(optionsOrSettingsOrCallback), callback);
|
|
12539
12615
|
}
|
|
12540
12616
|
__name(scandir, "scandir");
|
|
12541
12617
|
exports2.scandir = scandir;
|
|
12542
|
-
function scandirSync(
|
|
12618
|
+
function scandirSync(path12, optionsOrSettings) {
|
|
12543
12619
|
const settings = getSettings(optionsOrSettings);
|
|
12544
|
-
return sync.read(
|
|
12620
|
+
return sync.read(path12, settings);
|
|
12545
12621
|
}
|
|
12546
12622
|
__name(scandirSync, "scandirSync");
|
|
12547
12623
|
exports2.scandirSync = scandirSync;
|
|
@@ -12842,13 +12918,13 @@ var require_queue = __commonJS({
|
|
|
12842
12918
|
queue.drained = drained;
|
|
12843
12919
|
return queue;
|
|
12844
12920
|
function push(value) {
|
|
12845
|
-
var p5 = new Promise(function(
|
|
12921
|
+
var p5 = new Promise(function(resolve5, reject) {
|
|
12846
12922
|
pushCb(value, function(err, result) {
|
|
12847
12923
|
if (err) {
|
|
12848
12924
|
reject(err);
|
|
12849
12925
|
return;
|
|
12850
12926
|
}
|
|
12851
|
-
|
|
12927
|
+
resolve5(result);
|
|
12852
12928
|
});
|
|
12853
12929
|
});
|
|
12854
12930
|
p5.catch(noop);
|
|
@@ -12856,13 +12932,13 @@ var require_queue = __commonJS({
|
|
|
12856
12932
|
}
|
|
12857
12933
|
__name(push, "push");
|
|
12858
12934
|
function unshift(value) {
|
|
12859
|
-
var p5 = new Promise(function(
|
|
12935
|
+
var p5 = new Promise(function(resolve5, reject) {
|
|
12860
12936
|
unshiftCb(value, function(err, result) {
|
|
12861
12937
|
if (err) {
|
|
12862
12938
|
reject(err);
|
|
12863
12939
|
return;
|
|
12864
12940
|
}
|
|
12865
|
-
|
|
12941
|
+
resolve5(result);
|
|
12866
12942
|
});
|
|
12867
12943
|
});
|
|
12868
12944
|
p5.catch(noop);
|
|
@@ -12870,15 +12946,15 @@ var require_queue = __commonJS({
|
|
|
12870
12946
|
}
|
|
12871
12947
|
__name(unshift, "unshift");
|
|
12872
12948
|
function drained() {
|
|
12873
|
-
var p5 = new Promise(function(
|
|
12949
|
+
var p5 = new Promise(function(resolve5) {
|
|
12874
12950
|
process.nextTick(function() {
|
|
12875
12951
|
if (queue.idle()) {
|
|
12876
|
-
|
|
12952
|
+
resolve5();
|
|
12877
12953
|
} else {
|
|
12878
12954
|
var previousDrain = queue.drain;
|
|
12879
12955
|
queue.drain = function() {
|
|
12880
12956
|
if (typeof previousDrain === "function") previousDrain();
|
|
12881
|
-
|
|
12957
|
+
resolve5();
|
|
12882
12958
|
queue.drain = previousDrain;
|
|
12883
12959
|
};
|
|
12884
12960
|
}
|
|
@@ -13238,7 +13314,7 @@ var require_settings3 = __commonJS({
|
|
|
13238
13314
|
"../../node_modules/@nodelib/fs.walk/out/settings.js"(exports2) {
|
|
13239
13315
|
"use strict";
|
|
13240
13316
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13241
|
-
var
|
|
13317
|
+
var path12 = require("path");
|
|
13242
13318
|
var fsScandir = require_out2();
|
|
13243
13319
|
var Settings = class {
|
|
13244
13320
|
static {
|
|
@@ -13251,7 +13327,7 @@ var require_settings3 = __commonJS({
|
|
|
13251
13327
|
this.deepFilter = this._getValue(this._options.deepFilter, null);
|
|
13252
13328
|
this.entryFilter = this._getValue(this._options.entryFilter, null);
|
|
13253
13329
|
this.errorFilter = this._getValue(this._options.errorFilter, null);
|
|
13254
|
-
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator,
|
|
13330
|
+
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path12.sep);
|
|
13255
13331
|
this.fsScandirSettings = new fsScandir.Settings({
|
|
13256
13332
|
followSymbolicLinks: this._options.followSymbolicLinks,
|
|
13257
13333
|
fs: this._options.fs,
|
|
@@ -13317,7 +13393,7 @@ var require_reader2 = __commonJS({
|
|
|
13317
13393
|
"../../node_modules/fast-glob/out/readers/reader.js"(exports2) {
|
|
13318
13394
|
"use strict";
|
|
13319
13395
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13320
|
-
var
|
|
13396
|
+
var path12 = require("path");
|
|
13321
13397
|
var fsStat = require_out();
|
|
13322
13398
|
var utils = require_utils3();
|
|
13323
13399
|
var Reader = class {
|
|
@@ -13333,7 +13409,7 @@ var require_reader2 = __commonJS({
|
|
|
13333
13409
|
});
|
|
13334
13410
|
}
|
|
13335
13411
|
_getFullEntryPath(filepath) {
|
|
13336
|
-
return
|
|
13412
|
+
return path12.resolve(this._settings.cwd, filepath);
|
|
13337
13413
|
}
|
|
13338
13414
|
_makeEntry(stats, pattern) {
|
|
13339
13415
|
const entry = {
|
|
@@ -13403,9 +13479,9 @@ var require_stream3 = __commonJS({
|
|
|
13403
13479
|
});
|
|
13404
13480
|
}
|
|
13405
13481
|
_getStat(filepath) {
|
|
13406
|
-
return new Promise((
|
|
13482
|
+
return new Promise((resolve5, reject) => {
|
|
13407
13483
|
this._stat(filepath, this._fsStatSettings, (error2, stats) => {
|
|
13408
|
-
return error2 === null ?
|
|
13484
|
+
return error2 === null ? resolve5(stats) : reject(error2);
|
|
13409
13485
|
});
|
|
13410
13486
|
});
|
|
13411
13487
|
}
|
|
@@ -13432,10 +13508,10 @@ var require_async5 = __commonJS({
|
|
|
13432
13508
|
this._readerStream = new stream_1.default(this._settings);
|
|
13433
13509
|
}
|
|
13434
13510
|
dynamic(root16, options) {
|
|
13435
|
-
return new Promise((
|
|
13511
|
+
return new Promise((resolve5, reject) => {
|
|
13436
13512
|
this._walkAsync(root16, options, (error2, entries) => {
|
|
13437
13513
|
if (error2 === null) {
|
|
13438
|
-
|
|
13514
|
+
resolve5(entries);
|
|
13439
13515
|
} else {
|
|
13440
13516
|
reject(error2);
|
|
13441
13517
|
}
|
|
@@ -13445,10 +13521,10 @@ var require_async5 = __commonJS({
|
|
|
13445
13521
|
async static(patterns, options) {
|
|
13446
13522
|
const entries = [];
|
|
13447
13523
|
const stream = this._readerStream.static(patterns, options);
|
|
13448
|
-
return new Promise((
|
|
13524
|
+
return new Promise((resolve5, reject) => {
|
|
13449
13525
|
stream.once("error", reject);
|
|
13450
13526
|
stream.on("data", (entry) => entries.push(entry));
|
|
13451
|
-
stream.once("end", () =>
|
|
13527
|
+
stream.once("end", () => resolve5(entries));
|
|
13452
13528
|
});
|
|
13453
13529
|
}
|
|
13454
13530
|
};
|
|
@@ -13773,7 +13849,7 @@ var require_provider = __commonJS({
|
|
|
13773
13849
|
"../../node_modules/fast-glob/out/providers/provider.js"(exports2) {
|
|
13774
13850
|
"use strict";
|
|
13775
13851
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13776
|
-
var
|
|
13852
|
+
var path12 = require("path");
|
|
13777
13853
|
var deep_1 = require_deep();
|
|
13778
13854
|
var entry_1 = require_entry();
|
|
13779
13855
|
var error_1 = require_error();
|
|
@@ -13790,7 +13866,7 @@ var require_provider = __commonJS({
|
|
|
13790
13866
|
this.entryTransformer = new entry_2.default(this._settings);
|
|
13791
13867
|
}
|
|
13792
13868
|
_getRootDirectory(task) {
|
|
13793
|
-
return
|
|
13869
|
+
return path12.resolve(this._settings.cwd, task.base);
|
|
13794
13870
|
}
|
|
13795
13871
|
_getReaderOptions(task) {
|
|
13796
13872
|
const basePath = task.base === "." ? "" : task.base;
|
|
@@ -13983,16 +14059,16 @@ var require_settings4 = __commonJS({
|
|
|
13983
14059
|
"use strict";
|
|
13984
14060
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13985
14061
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
13986
|
-
var
|
|
14062
|
+
var fs12 = require("fs");
|
|
13987
14063
|
var os5 = require("os");
|
|
13988
14064
|
var CPU_COUNT = Math.max(os5.cpus().length, 1);
|
|
13989
14065
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = {
|
|
13990
|
-
lstat:
|
|
13991
|
-
lstatSync:
|
|
13992
|
-
stat:
|
|
13993
|
-
statSync:
|
|
13994
|
-
readdir:
|
|
13995
|
-
readdirSync:
|
|
14066
|
+
lstat: fs12.lstat,
|
|
14067
|
+
lstatSync: fs12.lstatSync,
|
|
14068
|
+
stat: fs12.stat,
|
|
14069
|
+
statSync: fs12.statSync,
|
|
14070
|
+
readdir: fs12.readdir,
|
|
14071
|
+
readdirSync: fs12.readdirSync
|
|
13996
14072
|
};
|
|
13997
14073
|
var Settings = class {
|
|
13998
14074
|
static {
|
|
@@ -14394,8 +14470,8 @@ var require_minimatch = __commonJS({
|
|
|
14394
14470
|
return new Minimatch(pattern, options).match(p5);
|
|
14395
14471
|
};
|
|
14396
14472
|
module2.exports = minimatch;
|
|
14397
|
-
var
|
|
14398
|
-
minimatch.sep =
|
|
14473
|
+
var path12 = require_path2();
|
|
14474
|
+
minimatch.sep = path12.sep;
|
|
14399
14475
|
var GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
14400
14476
|
minimatch.GLOBSTAR = GLOBSTAR;
|
|
14401
14477
|
var expand = require_brace_expansion();
|
|
@@ -15007,8 +15083,8 @@ var require_minimatch = __commonJS({
|
|
|
15007
15083
|
if (this.empty) return f16 === "";
|
|
15008
15084
|
if (f16 === "/" && partial) return true;
|
|
15009
15085
|
const options = this.options;
|
|
15010
|
-
if (
|
|
15011
|
-
f16 = f16.split(
|
|
15086
|
+
if (path12.sep !== "/") {
|
|
15087
|
+
f16 = f16.split(path12.sep).join("/");
|
|
15012
15088
|
}
|
|
15013
15089
|
f16 = f16.split(slashSplit);
|
|
15014
15090
|
this.debug(this.pattern, "split", f16);
|
|
@@ -15046,20 +15122,20 @@ var require_minimatch = __commonJS({
|
|
|
15046
15122
|
var require_readdir_glob = __commonJS({
|
|
15047
15123
|
"../../node_modules/readdir-glob/index.js"(exports2, module2) {
|
|
15048
15124
|
module2.exports = readdirGlob;
|
|
15049
|
-
var
|
|
15125
|
+
var fs12 = require("fs");
|
|
15050
15126
|
var { EventEmitter } = require("events");
|
|
15051
15127
|
var { Minimatch } = require_minimatch();
|
|
15052
|
-
var { resolve:
|
|
15128
|
+
var { resolve: resolve5 } = require("path");
|
|
15053
15129
|
function readdir(dir, strict) {
|
|
15054
|
-
return new Promise((
|
|
15055
|
-
|
|
15130
|
+
return new Promise((resolve6, reject) => {
|
|
15131
|
+
fs12.readdir(dir, { withFileTypes: true }, (err, files) => {
|
|
15056
15132
|
if (err) {
|
|
15057
15133
|
switch (err.code) {
|
|
15058
15134
|
case "ENOTDIR":
|
|
15059
15135
|
if (strict) {
|
|
15060
15136
|
reject(err);
|
|
15061
15137
|
} else {
|
|
15062
|
-
|
|
15138
|
+
resolve6([]);
|
|
15063
15139
|
}
|
|
15064
15140
|
break;
|
|
15065
15141
|
case "ENOTSUP":
|
|
@@ -15069,7 +15145,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15069
15145
|
case "ENAMETOOLONG":
|
|
15070
15146
|
// Filename too long
|
|
15071
15147
|
case "UNKNOWN":
|
|
15072
|
-
|
|
15148
|
+
resolve6([]);
|
|
15073
15149
|
break;
|
|
15074
15150
|
case "ELOOP":
|
|
15075
15151
|
// Too many levels of symbolic links
|
|
@@ -15078,38 +15154,38 @@ var require_readdir_glob = __commonJS({
|
|
|
15078
15154
|
break;
|
|
15079
15155
|
}
|
|
15080
15156
|
} else {
|
|
15081
|
-
|
|
15157
|
+
resolve6(files);
|
|
15082
15158
|
}
|
|
15083
15159
|
});
|
|
15084
15160
|
});
|
|
15085
15161
|
}
|
|
15086
15162
|
__name(readdir, "readdir");
|
|
15087
15163
|
function stat(file, followSymlinks) {
|
|
15088
|
-
return new Promise((
|
|
15089
|
-
const statFunc = followSymlinks ?
|
|
15164
|
+
return new Promise((resolve6, reject) => {
|
|
15165
|
+
const statFunc = followSymlinks ? fs12.stat : fs12.lstat;
|
|
15090
15166
|
statFunc(file, (err, stats) => {
|
|
15091
15167
|
if (err) {
|
|
15092
15168
|
switch (err.code) {
|
|
15093
15169
|
case "ENOENT":
|
|
15094
15170
|
if (followSymlinks) {
|
|
15095
|
-
|
|
15171
|
+
resolve6(stat(file, false));
|
|
15096
15172
|
} else {
|
|
15097
|
-
|
|
15173
|
+
resolve6(null);
|
|
15098
15174
|
}
|
|
15099
15175
|
break;
|
|
15100
15176
|
default:
|
|
15101
|
-
|
|
15177
|
+
resolve6(null);
|
|
15102
15178
|
break;
|
|
15103
15179
|
}
|
|
15104
15180
|
} else {
|
|
15105
|
-
|
|
15181
|
+
resolve6(stats);
|
|
15106
15182
|
}
|
|
15107
15183
|
});
|
|
15108
15184
|
});
|
|
15109
15185
|
}
|
|
15110
15186
|
__name(stat, "stat");
|
|
15111
|
-
async function* exploreWalkAsync(dir,
|
|
15112
|
-
let files = await readdir(
|
|
15187
|
+
async function* exploreWalkAsync(dir, path12, followSymlinks, useStat, shouldSkip, strict) {
|
|
15188
|
+
let files = await readdir(path12 + dir, strict);
|
|
15113
15189
|
for (const file of files) {
|
|
15114
15190
|
let name = file.name;
|
|
15115
15191
|
if (name === void 0) {
|
|
@@ -15118,7 +15194,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15118
15194
|
}
|
|
15119
15195
|
const filename = dir + "/" + name;
|
|
15120
15196
|
const relative = filename.slice(1);
|
|
15121
|
-
const absolute =
|
|
15197
|
+
const absolute = path12 + "/" + relative;
|
|
15122
15198
|
let stats = null;
|
|
15123
15199
|
if (useStat || followSymlinks) {
|
|
15124
15200
|
stats = await stat(absolute, followSymlinks);
|
|
@@ -15132,7 +15208,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15132
15208
|
if (stats.isDirectory()) {
|
|
15133
15209
|
if (!shouldSkip(relative)) {
|
|
15134
15210
|
yield { relative, absolute, stats };
|
|
15135
|
-
yield* exploreWalkAsync(filename,
|
|
15211
|
+
yield* exploreWalkAsync(filename, path12, followSymlinks, useStat, shouldSkip, false);
|
|
15136
15212
|
}
|
|
15137
15213
|
} else {
|
|
15138
15214
|
yield { relative, absolute, stats };
|
|
@@ -15140,8 +15216,8 @@ var require_readdir_glob = __commonJS({
|
|
|
15140
15216
|
}
|
|
15141
15217
|
}
|
|
15142
15218
|
__name(exploreWalkAsync, "exploreWalkAsync");
|
|
15143
|
-
async function* explore(
|
|
15144
|
-
yield* exploreWalkAsync("",
|
|
15219
|
+
async function* explore(path12, followSymlinks, useStat, shouldSkip) {
|
|
15220
|
+
yield* exploreWalkAsync("", path12, followSymlinks, useStat, shouldSkip, true);
|
|
15145
15221
|
}
|
|
15146
15222
|
__name(explore, "explore");
|
|
15147
15223
|
function readOptions(options) {
|
|
@@ -15199,7 +15275,7 @@ var require_readdir_glob = __commonJS({
|
|
|
15199
15275
|
(skip) => new Minimatch(skip, { dot: true })
|
|
15200
15276
|
);
|
|
15201
15277
|
}
|
|
15202
|
-
this.iterator = explore(
|
|
15278
|
+
this.iterator = explore(resolve5(cwd || "."), this.options.follow, this.options.stat, this._shouldSkipDirectory.bind(this));
|
|
15203
15279
|
this.paused = false;
|
|
15204
15280
|
this.inactive = false;
|
|
15205
15281
|
this.aborted = false;
|
|
@@ -15378,10 +15454,10 @@ var require_async7 = __commonJS({
|
|
|
15378
15454
|
if (typeof args[arity - 1] === "function") {
|
|
15379
15455
|
return asyncFn.apply(this, args);
|
|
15380
15456
|
}
|
|
15381
|
-
return new Promise((
|
|
15457
|
+
return new Promise((resolve5, reject2) => {
|
|
15382
15458
|
args[arity - 1] = (err, ...cbArgs) => {
|
|
15383
15459
|
if (err) return reject2(err);
|
|
15384
|
-
|
|
15460
|
+
resolve5(cbArgs.length > 1 ? cbArgs : cbArgs[0]);
|
|
15385
15461
|
};
|
|
15386
15462
|
asyncFn.apply(this, args);
|
|
15387
15463
|
});
|
|
@@ -15654,14 +15730,14 @@ var require_async7 = __commonJS({
|
|
|
15654
15730
|
var applyEachSeries = applyEach$1(mapSeries$1);
|
|
15655
15731
|
const PROMISE_SYMBOL = /* @__PURE__ */ Symbol("promiseCallback");
|
|
15656
15732
|
function promiseCallback() {
|
|
15657
|
-
let
|
|
15733
|
+
let resolve5, reject2;
|
|
15658
15734
|
function callback(err, ...args) {
|
|
15659
15735
|
if (err) return reject2(err);
|
|
15660
|
-
|
|
15736
|
+
resolve5(args.length > 1 ? args : args[0]);
|
|
15661
15737
|
}
|
|
15662
15738
|
__name(callback, "callback");
|
|
15663
15739
|
callback[PROMISE_SYMBOL] = new Promise((res, rej) => {
|
|
15664
|
-
|
|
15740
|
+
resolve5 = res, reject2 = rej;
|
|
15665
15741
|
});
|
|
15666
15742
|
return callback;
|
|
15667
15743
|
}
|
|
@@ -16030,8 +16106,8 @@ var require_async7 = __commonJS({
|
|
|
16030
16106
|
});
|
|
16031
16107
|
}
|
|
16032
16108
|
if (rejectOnError || !callback) {
|
|
16033
|
-
return new Promise((
|
|
16034
|
-
res =
|
|
16109
|
+
return new Promise((resolve5, reject2) => {
|
|
16110
|
+
res = resolve5;
|
|
16035
16111
|
rej = reject2;
|
|
16036
16112
|
});
|
|
16037
16113
|
}
|
|
@@ -16073,10 +16149,10 @@ var require_async7 = __commonJS({
|
|
|
16073
16149
|
__name(_maybeDrain, "_maybeDrain");
|
|
16074
16150
|
const eventMethod = /* @__PURE__ */ __name((name) => (handler) => {
|
|
16075
16151
|
if (!handler) {
|
|
16076
|
-
return new Promise((
|
|
16152
|
+
return new Promise((resolve5, reject2) => {
|
|
16077
16153
|
once2(name, (err, data2) => {
|
|
16078
16154
|
if (err) return reject2(err);
|
|
16079
|
-
|
|
16155
|
+
resolve5(data2);
|
|
16080
16156
|
});
|
|
16081
16157
|
});
|
|
16082
16158
|
}
|
|
@@ -17313,54 +17389,54 @@ var require_polyfills = __commonJS({
|
|
|
17313
17389
|
}
|
|
17314
17390
|
var chdir;
|
|
17315
17391
|
module2.exports = patch;
|
|
17316
|
-
function patch(
|
|
17392
|
+
function patch(fs12) {
|
|
17317
17393
|
if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
|
|
17318
|
-
patchLchmod(
|
|
17319
|
-
}
|
|
17320
|
-
if (!
|
|
17321
|
-
patchLutimes(
|
|
17322
|
-
}
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17332
|
-
|
|
17333
|
-
|
|
17334
|
-
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17339
|
-
|
|
17340
|
-
|
|
17341
|
-
if (
|
|
17342
|
-
|
|
17394
|
+
patchLchmod(fs12);
|
|
17395
|
+
}
|
|
17396
|
+
if (!fs12.lutimes) {
|
|
17397
|
+
patchLutimes(fs12);
|
|
17398
|
+
}
|
|
17399
|
+
fs12.chown = chownFix(fs12.chown);
|
|
17400
|
+
fs12.fchown = chownFix(fs12.fchown);
|
|
17401
|
+
fs12.lchown = chownFix(fs12.lchown);
|
|
17402
|
+
fs12.chmod = chmodFix(fs12.chmod);
|
|
17403
|
+
fs12.fchmod = chmodFix(fs12.fchmod);
|
|
17404
|
+
fs12.lchmod = chmodFix(fs12.lchmod);
|
|
17405
|
+
fs12.chownSync = chownFixSync(fs12.chownSync);
|
|
17406
|
+
fs12.fchownSync = chownFixSync(fs12.fchownSync);
|
|
17407
|
+
fs12.lchownSync = chownFixSync(fs12.lchownSync);
|
|
17408
|
+
fs12.chmodSync = chmodFixSync(fs12.chmodSync);
|
|
17409
|
+
fs12.fchmodSync = chmodFixSync(fs12.fchmodSync);
|
|
17410
|
+
fs12.lchmodSync = chmodFixSync(fs12.lchmodSync);
|
|
17411
|
+
fs12.stat = statFix(fs12.stat);
|
|
17412
|
+
fs12.fstat = statFix(fs12.fstat);
|
|
17413
|
+
fs12.lstat = statFix(fs12.lstat);
|
|
17414
|
+
fs12.statSync = statFixSync(fs12.statSync);
|
|
17415
|
+
fs12.fstatSync = statFixSync(fs12.fstatSync);
|
|
17416
|
+
fs12.lstatSync = statFixSync(fs12.lstatSync);
|
|
17417
|
+
if (fs12.chmod && !fs12.lchmod) {
|
|
17418
|
+
fs12.lchmod = function(path12, mode, cb) {
|
|
17343
17419
|
if (cb) process.nextTick(cb);
|
|
17344
17420
|
};
|
|
17345
|
-
|
|
17421
|
+
fs12.lchmodSync = function() {
|
|
17346
17422
|
};
|
|
17347
17423
|
}
|
|
17348
|
-
if (
|
|
17349
|
-
|
|
17424
|
+
if (fs12.chown && !fs12.lchown) {
|
|
17425
|
+
fs12.lchown = function(path12, uid, gid, cb) {
|
|
17350
17426
|
if (cb) process.nextTick(cb);
|
|
17351
17427
|
};
|
|
17352
|
-
|
|
17428
|
+
fs12.lchownSync = function() {
|
|
17353
17429
|
};
|
|
17354
17430
|
}
|
|
17355
17431
|
if (platform === "win32") {
|
|
17356
|
-
|
|
17432
|
+
fs12.rename = typeof fs12.rename !== "function" ? fs12.rename : (function(fs$rename) {
|
|
17357
17433
|
function rename(from, to, cb) {
|
|
17358
17434
|
var start = Date.now();
|
|
17359
17435
|
var backoff = 0;
|
|
17360
17436
|
fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
|
|
17361
17437
|
if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
|
|
17362
17438
|
setTimeout(function() {
|
|
17363
|
-
|
|
17439
|
+
fs12.stat(to, function(stater, st) {
|
|
17364
17440
|
if (stater && stater.code === "ENOENT")
|
|
17365
17441
|
fs$rename(from, to, CB);
|
|
17366
17442
|
else
|
|
@@ -17377,9 +17453,9 @@ var require_polyfills = __commonJS({
|
|
|
17377
17453
|
__name(rename, "rename");
|
|
17378
17454
|
if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
|
|
17379
17455
|
return rename;
|
|
17380
|
-
})(
|
|
17456
|
+
})(fs12.rename);
|
|
17381
17457
|
}
|
|
17382
|
-
|
|
17458
|
+
fs12.read = typeof fs12.read !== "function" ? fs12.read : (function(fs$read) {
|
|
17383
17459
|
function read(fd, buffer, offset, length, position, callback_) {
|
|
17384
17460
|
var callback;
|
|
17385
17461
|
if (callback_ && typeof callback_ === "function") {
|
|
@@ -17387,23 +17463,23 @@ var require_polyfills = __commonJS({
|
|
|
17387
17463
|
callback = /* @__PURE__ */ __name(function(er, _2, __) {
|
|
17388
17464
|
if (er && er.code === "EAGAIN" && eagCounter < 10) {
|
|
17389
17465
|
eagCounter++;
|
|
17390
|
-
return fs$read.call(
|
|
17466
|
+
return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
|
|
17391
17467
|
}
|
|
17392
17468
|
callback_.apply(this, arguments);
|
|
17393
17469
|
}, "callback");
|
|
17394
17470
|
}
|
|
17395
|
-
return fs$read.call(
|
|
17471
|
+
return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
|
|
17396
17472
|
}
|
|
17397
17473
|
__name(read, "read");
|
|
17398
17474
|
if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
|
|
17399
17475
|
return read;
|
|
17400
|
-
})(
|
|
17401
|
-
|
|
17476
|
+
})(fs12.read);
|
|
17477
|
+
fs12.readSync = typeof fs12.readSync !== "function" ? fs12.readSync : /* @__PURE__ */ (function(fs$readSync) {
|
|
17402
17478
|
return function(fd, buffer, offset, length, position) {
|
|
17403
17479
|
var eagCounter = 0;
|
|
17404
17480
|
while (true) {
|
|
17405
17481
|
try {
|
|
17406
|
-
return fs$readSync.call(
|
|
17482
|
+
return fs$readSync.call(fs12, fd, buffer, offset, length, position);
|
|
17407
17483
|
} catch (er) {
|
|
17408
17484
|
if (er.code === "EAGAIN" && eagCounter < 10) {
|
|
17409
17485
|
eagCounter++;
|
|
@@ -17413,11 +17489,11 @@ var require_polyfills = __commonJS({
|
|
|
17413
17489
|
}
|
|
17414
17490
|
}
|
|
17415
17491
|
};
|
|
17416
|
-
})(
|
|
17417
|
-
function patchLchmod(
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
|
|
17492
|
+
})(fs12.readSync);
|
|
17493
|
+
function patchLchmod(fs13) {
|
|
17494
|
+
fs13.lchmod = function(path12, mode, callback) {
|
|
17495
|
+
fs13.open(
|
|
17496
|
+
path12,
|
|
17421
17497
|
constants.O_WRONLY | constants.O_SYMLINK,
|
|
17422
17498
|
mode,
|
|
17423
17499
|
function(err, fd) {
|
|
@@ -17425,74 +17501,74 @@ var require_polyfills = __commonJS({
|
|
|
17425
17501
|
if (callback) callback(err);
|
|
17426
17502
|
return;
|
|
17427
17503
|
}
|
|
17428
|
-
|
|
17429
|
-
|
|
17504
|
+
fs13.fchmod(fd, mode, function(err2) {
|
|
17505
|
+
fs13.close(fd, function(err22) {
|
|
17430
17506
|
if (callback) callback(err2 || err22);
|
|
17431
17507
|
});
|
|
17432
17508
|
});
|
|
17433
17509
|
}
|
|
17434
17510
|
);
|
|
17435
17511
|
};
|
|
17436
|
-
|
|
17437
|
-
var fd =
|
|
17512
|
+
fs13.lchmodSync = function(path12, mode) {
|
|
17513
|
+
var fd = fs13.openSync(path12, constants.O_WRONLY | constants.O_SYMLINK, mode);
|
|
17438
17514
|
var threw = true;
|
|
17439
17515
|
var ret;
|
|
17440
17516
|
try {
|
|
17441
|
-
ret =
|
|
17517
|
+
ret = fs13.fchmodSync(fd, mode);
|
|
17442
17518
|
threw = false;
|
|
17443
17519
|
} finally {
|
|
17444
17520
|
if (threw) {
|
|
17445
17521
|
try {
|
|
17446
|
-
|
|
17522
|
+
fs13.closeSync(fd);
|
|
17447
17523
|
} catch (er) {
|
|
17448
17524
|
}
|
|
17449
17525
|
} else {
|
|
17450
|
-
|
|
17526
|
+
fs13.closeSync(fd);
|
|
17451
17527
|
}
|
|
17452
17528
|
}
|
|
17453
17529
|
return ret;
|
|
17454
17530
|
};
|
|
17455
17531
|
}
|
|
17456
17532
|
__name(patchLchmod, "patchLchmod");
|
|
17457
|
-
function patchLutimes(
|
|
17458
|
-
if (constants.hasOwnProperty("O_SYMLINK") &&
|
|
17459
|
-
|
|
17460
|
-
|
|
17533
|
+
function patchLutimes(fs13) {
|
|
17534
|
+
if (constants.hasOwnProperty("O_SYMLINK") && fs13.futimes) {
|
|
17535
|
+
fs13.lutimes = function(path12, at, mt, cb) {
|
|
17536
|
+
fs13.open(path12, constants.O_SYMLINK, function(er, fd) {
|
|
17461
17537
|
if (er) {
|
|
17462
17538
|
if (cb) cb(er);
|
|
17463
17539
|
return;
|
|
17464
17540
|
}
|
|
17465
|
-
|
|
17466
|
-
|
|
17541
|
+
fs13.futimes(fd, at, mt, function(er2) {
|
|
17542
|
+
fs13.close(fd, function(er22) {
|
|
17467
17543
|
if (cb) cb(er2 || er22);
|
|
17468
17544
|
});
|
|
17469
17545
|
});
|
|
17470
17546
|
});
|
|
17471
17547
|
};
|
|
17472
|
-
|
|
17473
|
-
var fd =
|
|
17548
|
+
fs13.lutimesSync = function(path12, at, mt) {
|
|
17549
|
+
var fd = fs13.openSync(path12, constants.O_SYMLINK);
|
|
17474
17550
|
var ret;
|
|
17475
17551
|
var threw = true;
|
|
17476
17552
|
try {
|
|
17477
|
-
ret =
|
|
17553
|
+
ret = fs13.futimesSync(fd, at, mt);
|
|
17478
17554
|
threw = false;
|
|
17479
17555
|
} finally {
|
|
17480
17556
|
if (threw) {
|
|
17481
17557
|
try {
|
|
17482
|
-
|
|
17558
|
+
fs13.closeSync(fd);
|
|
17483
17559
|
} catch (er) {
|
|
17484
17560
|
}
|
|
17485
17561
|
} else {
|
|
17486
|
-
|
|
17562
|
+
fs13.closeSync(fd);
|
|
17487
17563
|
}
|
|
17488
17564
|
}
|
|
17489
17565
|
return ret;
|
|
17490
17566
|
};
|
|
17491
|
-
} else if (
|
|
17492
|
-
|
|
17567
|
+
} else if (fs13.futimes) {
|
|
17568
|
+
fs13.lutimes = function(_a5, _b, _c16, cb) {
|
|
17493
17569
|
if (cb) process.nextTick(cb);
|
|
17494
17570
|
};
|
|
17495
|
-
|
|
17571
|
+
fs13.lutimesSync = function() {
|
|
17496
17572
|
};
|
|
17497
17573
|
}
|
|
17498
17574
|
}
|
|
@@ -17500,7 +17576,7 @@ var require_polyfills = __commonJS({
|
|
|
17500
17576
|
function chmodFix(orig) {
|
|
17501
17577
|
if (!orig) return orig;
|
|
17502
17578
|
return function(target, mode, cb) {
|
|
17503
|
-
return orig.call(
|
|
17579
|
+
return orig.call(fs12, target, mode, function(er) {
|
|
17504
17580
|
if (chownErOk(er)) er = null;
|
|
17505
17581
|
if (cb) cb.apply(this, arguments);
|
|
17506
17582
|
});
|
|
@@ -17511,7 +17587,7 @@ var require_polyfills = __commonJS({
|
|
|
17511
17587
|
if (!orig) return orig;
|
|
17512
17588
|
return function(target, mode) {
|
|
17513
17589
|
try {
|
|
17514
|
-
return orig.call(
|
|
17590
|
+
return orig.call(fs12, target, mode);
|
|
17515
17591
|
} catch (er) {
|
|
17516
17592
|
if (!chownErOk(er)) throw er;
|
|
17517
17593
|
}
|
|
@@ -17521,7 +17597,7 @@ var require_polyfills = __commonJS({
|
|
|
17521
17597
|
function chownFix(orig) {
|
|
17522
17598
|
if (!orig) return orig;
|
|
17523
17599
|
return function(target, uid, gid, cb) {
|
|
17524
|
-
return orig.call(
|
|
17600
|
+
return orig.call(fs12, target, uid, gid, function(er) {
|
|
17525
17601
|
if (chownErOk(er)) er = null;
|
|
17526
17602
|
if (cb) cb.apply(this, arguments);
|
|
17527
17603
|
});
|
|
@@ -17532,7 +17608,7 @@ var require_polyfills = __commonJS({
|
|
|
17532
17608
|
if (!orig) return orig;
|
|
17533
17609
|
return function(target, uid, gid) {
|
|
17534
17610
|
try {
|
|
17535
|
-
return orig.call(
|
|
17611
|
+
return orig.call(fs12, target, uid, gid);
|
|
17536
17612
|
} catch (er) {
|
|
17537
17613
|
if (!chownErOk(er)) throw er;
|
|
17538
17614
|
}
|
|
@@ -17554,14 +17630,14 @@ var require_polyfills = __commonJS({
|
|
|
17554
17630
|
if (cb) cb.apply(this, arguments);
|
|
17555
17631
|
}
|
|
17556
17632
|
__name(callback, "callback");
|
|
17557
|
-
return options ? orig.call(
|
|
17633
|
+
return options ? orig.call(fs12, target, options, callback) : orig.call(fs12, target, callback);
|
|
17558
17634
|
};
|
|
17559
17635
|
}
|
|
17560
17636
|
__name(statFix, "statFix");
|
|
17561
17637
|
function statFixSync(orig) {
|
|
17562
17638
|
if (!orig) return orig;
|
|
17563
17639
|
return function(target, options) {
|
|
17564
|
-
var stats = options ? orig.call(
|
|
17640
|
+
var stats = options ? orig.call(fs12, target, options) : orig.call(fs12, target);
|
|
17565
17641
|
if (stats) {
|
|
17566
17642
|
if (stats.uid < 0) stats.uid += 4294967296;
|
|
17567
17643
|
if (stats.gid < 0) stats.gid += 4294967296;
|
|
@@ -17593,16 +17669,16 @@ var require_legacy_streams = __commonJS({
|
|
|
17593
17669
|
"../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
|
|
17594
17670
|
var Stream = require("stream").Stream;
|
|
17595
17671
|
module2.exports = legacy;
|
|
17596
|
-
function legacy(
|
|
17672
|
+
function legacy(fs12) {
|
|
17597
17673
|
return {
|
|
17598
17674
|
ReadStream,
|
|
17599
17675
|
WriteStream
|
|
17600
17676
|
};
|
|
17601
|
-
function ReadStream(
|
|
17602
|
-
if (!(this instanceof ReadStream)) return new ReadStream(
|
|
17677
|
+
function ReadStream(path12, options) {
|
|
17678
|
+
if (!(this instanceof ReadStream)) return new ReadStream(path12, options);
|
|
17603
17679
|
Stream.call(this);
|
|
17604
17680
|
var self2 = this;
|
|
17605
|
-
this.path =
|
|
17681
|
+
this.path = path12;
|
|
17606
17682
|
this.fd = null;
|
|
17607
17683
|
this.readable = true;
|
|
17608
17684
|
this.paused = false;
|
|
@@ -17636,7 +17712,7 @@ var require_legacy_streams = __commonJS({
|
|
|
17636
17712
|
});
|
|
17637
17713
|
return;
|
|
17638
17714
|
}
|
|
17639
|
-
|
|
17715
|
+
fs12.open(this.path, this.flags, this.mode, function(err, fd) {
|
|
17640
17716
|
if (err) {
|
|
17641
17717
|
self2.emit("error", err);
|
|
17642
17718
|
self2.readable = false;
|
|
@@ -17648,10 +17724,10 @@ var require_legacy_streams = __commonJS({
|
|
|
17648
17724
|
});
|
|
17649
17725
|
}
|
|
17650
17726
|
__name(ReadStream, "ReadStream");
|
|
17651
|
-
function WriteStream(
|
|
17652
|
-
if (!(this instanceof WriteStream)) return new WriteStream(
|
|
17727
|
+
function WriteStream(path12, options) {
|
|
17728
|
+
if (!(this instanceof WriteStream)) return new WriteStream(path12, options);
|
|
17653
17729
|
Stream.call(this);
|
|
17654
|
-
this.path =
|
|
17730
|
+
this.path = path12;
|
|
17655
17731
|
this.fd = null;
|
|
17656
17732
|
this.writable = true;
|
|
17657
17733
|
this.flags = "w";
|
|
@@ -17676,7 +17752,7 @@ var require_legacy_streams = __commonJS({
|
|
|
17676
17752
|
this.busy = false;
|
|
17677
17753
|
this._queue = [];
|
|
17678
17754
|
if (this.fd === null) {
|
|
17679
|
-
this._open =
|
|
17755
|
+
this._open = fs12.open;
|
|
17680
17756
|
this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
|
|
17681
17757
|
this.flush();
|
|
17682
17758
|
}
|
|
@@ -17714,7 +17790,7 @@ var require_clone = __commonJS({
|
|
|
17714
17790
|
// ../../node_modules/graceful-fs/graceful-fs.js
|
|
17715
17791
|
var require_graceful_fs = __commonJS({
|
|
17716
17792
|
"../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
|
|
17717
|
-
var
|
|
17793
|
+
var fs12 = require("fs");
|
|
17718
17794
|
var polyfills = require_polyfills();
|
|
17719
17795
|
var legacy = require_legacy_streams();
|
|
17720
17796
|
var clone = require_clone();
|
|
@@ -17748,12 +17824,12 @@ var require_graceful_fs = __commonJS({
|
|
|
17748
17824
|
m10 = "GFS4: " + m10.split(/\n/).join("\nGFS4: ");
|
|
17749
17825
|
console.error(m10);
|
|
17750
17826
|
}, "debug");
|
|
17751
|
-
if (!
|
|
17827
|
+
if (!fs12[gracefulQueue]) {
|
|
17752
17828
|
queue = global[gracefulQueue] || [];
|
|
17753
|
-
publishQueue(
|
|
17754
|
-
|
|
17829
|
+
publishQueue(fs12, queue);
|
|
17830
|
+
fs12.close = (function(fs$close) {
|
|
17755
17831
|
function close(fd, cb) {
|
|
17756
|
-
return fs$close.call(
|
|
17832
|
+
return fs$close.call(fs12, fd, function(err) {
|
|
17757
17833
|
if (!err) {
|
|
17758
17834
|
resetQueue();
|
|
17759
17835
|
}
|
|
@@ -17766,10 +17842,10 @@ var require_graceful_fs = __commonJS({
|
|
|
17766
17842
|
value: fs$close
|
|
17767
17843
|
});
|
|
17768
17844
|
return close;
|
|
17769
|
-
})(
|
|
17770
|
-
|
|
17845
|
+
})(fs12.close);
|
|
17846
|
+
fs12.closeSync = (function(fs$closeSync) {
|
|
17771
17847
|
function closeSync(fd) {
|
|
17772
|
-
fs$closeSync.apply(
|
|
17848
|
+
fs$closeSync.apply(fs12, arguments);
|
|
17773
17849
|
resetQueue();
|
|
17774
17850
|
}
|
|
17775
17851
|
__name(closeSync, "closeSync");
|
|
@@ -17777,38 +17853,38 @@ var require_graceful_fs = __commonJS({
|
|
|
17777
17853
|
value: fs$closeSync
|
|
17778
17854
|
});
|
|
17779
17855
|
return closeSync;
|
|
17780
|
-
})(
|
|
17856
|
+
})(fs12.closeSync);
|
|
17781
17857
|
if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
|
|
17782
17858
|
process.on("exit", function() {
|
|
17783
|
-
debug(
|
|
17784
|
-
require("assert").equal(
|
|
17859
|
+
debug(fs12[gracefulQueue]);
|
|
17860
|
+
require("assert").equal(fs12[gracefulQueue].length, 0);
|
|
17785
17861
|
});
|
|
17786
17862
|
}
|
|
17787
17863
|
}
|
|
17788
17864
|
var queue;
|
|
17789
17865
|
if (!global[gracefulQueue]) {
|
|
17790
|
-
publishQueue(global,
|
|
17791
|
-
}
|
|
17792
|
-
module2.exports = patch(clone(
|
|
17793
|
-
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !
|
|
17794
|
-
module2.exports = patch(
|
|
17795
|
-
|
|
17796
|
-
}
|
|
17797
|
-
function patch(
|
|
17798
|
-
polyfills(
|
|
17799
|
-
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
var fs$readFile =
|
|
17803
|
-
|
|
17804
|
-
function readFile2(
|
|
17866
|
+
publishQueue(global, fs12[gracefulQueue]);
|
|
17867
|
+
}
|
|
17868
|
+
module2.exports = patch(clone(fs12));
|
|
17869
|
+
if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs12.__patched) {
|
|
17870
|
+
module2.exports = patch(fs12);
|
|
17871
|
+
fs12.__patched = true;
|
|
17872
|
+
}
|
|
17873
|
+
function patch(fs13) {
|
|
17874
|
+
polyfills(fs13);
|
|
17875
|
+
fs13.gracefulify = patch;
|
|
17876
|
+
fs13.createReadStream = createReadStream2;
|
|
17877
|
+
fs13.createWriteStream = createWriteStream;
|
|
17878
|
+
var fs$readFile = fs13.readFile;
|
|
17879
|
+
fs13.readFile = readFile2;
|
|
17880
|
+
function readFile2(path12, options, cb) {
|
|
17805
17881
|
if (typeof options === "function")
|
|
17806
17882
|
cb = options, options = null;
|
|
17807
|
-
return go$readFile(
|
|
17808
|
-
function go$readFile(
|
|
17809
|
-
return fs$readFile(
|
|
17883
|
+
return go$readFile(path12, options, cb);
|
|
17884
|
+
function go$readFile(path13, options2, cb2, startTime) {
|
|
17885
|
+
return fs$readFile(path13, options2, function(err) {
|
|
17810
17886
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
17811
|
-
enqueue([go$readFile, [
|
|
17887
|
+
enqueue([go$readFile, [path13, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
17812
17888
|
else {
|
|
17813
17889
|
if (typeof cb2 === "function")
|
|
17814
17890
|
cb2.apply(this, arguments);
|
|
@@ -17818,16 +17894,16 @@ var require_graceful_fs = __commonJS({
|
|
|
17818
17894
|
__name(go$readFile, "go$readFile");
|
|
17819
17895
|
}
|
|
17820
17896
|
__name(readFile2, "readFile");
|
|
17821
|
-
var fs$writeFile =
|
|
17822
|
-
|
|
17823
|
-
function writeFile(
|
|
17897
|
+
var fs$writeFile = fs13.writeFile;
|
|
17898
|
+
fs13.writeFile = writeFile;
|
|
17899
|
+
function writeFile(path12, data2, options, cb) {
|
|
17824
17900
|
if (typeof options === "function")
|
|
17825
17901
|
cb = options, options = null;
|
|
17826
|
-
return go$writeFile(
|
|
17827
|
-
function go$writeFile(
|
|
17828
|
-
return fs$writeFile(
|
|
17902
|
+
return go$writeFile(path12, data2, options, cb);
|
|
17903
|
+
function go$writeFile(path13, data3, options2, cb2, startTime) {
|
|
17904
|
+
return fs$writeFile(path13, data3, options2, function(err) {
|
|
17829
17905
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
17830
|
-
enqueue([go$writeFile, [
|
|
17906
|
+
enqueue([go$writeFile, [path13, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
17831
17907
|
else {
|
|
17832
17908
|
if (typeof cb2 === "function")
|
|
17833
17909
|
cb2.apply(this, arguments);
|
|
@@ -17837,17 +17913,17 @@ var require_graceful_fs = __commonJS({
|
|
|
17837
17913
|
__name(go$writeFile, "go$writeFile");
|
|
17838
17914
|
}
|
|
17839
17915
|
__name(writeFile, "writeFile");
|
|
17840
|
-
var fs$appendFile =
|
|
17916
|
+
var fs$appendFile = fs13.appendFile;
|
|
17841
17917
|
if (fs$appendFile)
|
|
17842
|
-
|
|
17843
|
-
function appendFile(
|
|
17918
|
+
fs13.appendFile = appendFile;
|
|
17919
|
+
function appendFile(path12, data2, options, cb) {
|
|
17844
17920
|
if (typeof options === "function")
|
|
17845
17921
|
cb = options, options = null;
|
|
17846
|
-
return go$appendFile(
|
|
17847
|
-
function go$appendFile(
|
|
17848
|
-
return fs$appendFile(
|
|
17922
|
+
return go$appendFile(path12, data2, options, cb);
|
|
17923
|
+
function go$appendFile(path13, data3, options2, cb2, startTime) {
|
|
17924
|
+
return fs$appendFile(path13, data3, options2, function(err) {
|
|
17849
17925
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
17850
|
-
enqueue([go$appendFile, [
|
|
17926
|
+
enqueue([go$appendFile, [path13, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
17851
17927
|
else {
|
|
17852
17928
|
if (typeof cb2 === "function")
|
|
17853
17929
|
cb2.apply(this, arguments);
|
|
@@ -17857,9 +17933,9 @@ var require_graceful_fs = __commonJS({
|
|
|
17857
17933
|
__name(go$appendFile, "go$appendFile");
|
|
17858
17934
|
}
|
|
17859
17935
|
__name(appendFile, "appendFile");
|
|
17860
|
-
var fs$copyFile =
|
|
17936
|
+
var fs$copyFile = fs13.copyFile;
|
|
17861
17937
|
if (fs$copyFile)
|
|
17862
|
-
|
|
17938
|
+
fs13.copyFile = copyFile;
|
|
17863
17939
|
function copyFile(src, dest, flags, cb) {
|
|
17864
17940
|
if (typeof flags === "function") {
|
|
17865
17941
|
cb = flags;
|
|
@@ -17879,34 +17955,34 @@ var require_graceful_fs = __commonJS({
|
|
|
17879
17955
|
__name(go$copyFile, "go$copyFile");
|
|
17880
17956
|
}
|
|
17881
17957
|
__name(copyFile, "copyFile");
|
|
17882
|
-
var fs$readdir =
|
|
17883
|
-
|
|
17958
|
+
var fs$readdir = fs13.readdir;
|
|
17959
|
+
fs13.readdir = readdir;
|
|
17884
17960
|
var noReaddirOptionVersions = /^v[0-5]\./;
|
|
17885
|
-
function readdir(
|
|
17961
|
+
function readdir(path12, options, cb) {
|
|
17886
17962
|
if (typeof options === "function")
|
|
17887
17963
|
cb = options, options = null;
|
|
17888
|
-
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(
|
|
17889
|
-
return fs$readdir(
|
|
17890
|
-
|
|
17964
|
+
var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path13, options2, cb2, startTime) {
|
|
17965
|
+
return fs$readdir(path13, fs$readdirCallback(
|
|
17966
|
+
path13,
|
|
17891
17967
|
options2,
|
|
17892
17968
|
cb2,
|
|
17893
17969
|
startTime
|
|
17894
17970
|
));
|
|
17895
|
-
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(
|
|
17896
|
-
return fs$readdir(
|
|
17897
|
-
|
|
17971
|
+
}, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path13, options2, cb2, startTime) {
|
|
17972
|
+
return fs$readdir(path13, options2, fs$readdirCallback(
|
|
17973
|
+
path13,
|
|
17898
17974
|
options2,
|
|
17899
17975
|
cb2,
|
|
17900
17976
|
startTime
|
|
17901
17977
|
));
|
|
17902
17978
|
}, "go$readdir");
|
|
17903
|
-
return go$readdir(
|
|
17904
|
-
function fs$readdirCallback(
|
|
17979
|
+
return go$readdir(path12, options, cb);
|
|
17980
|
+
function fs$readdirCallback(path13, options2, cb2, startTime) {
|
|
17905
17981
|
return function(err, files) {
|
|
17906
17982
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
17907
17983
|
enqueue([
|
|
17908
17984
|
go$readdir,
|
|
17909
|
-
[
|
|
17985
|
+
[path13, options2, cb2],
|
|
17910
17986
|
err,
|
|
17911
17987
|
startTime || Date.now(),
|
|
17912
17988
|
Date.now()
|
|
@@ -17923,21 +17999,21 @@ var require_graceful_fs = __commonJS({
|
|
|
17923
17999
|
}
|
|
17924
18000
|
__name(readdir, "readdir");
|
|
17925
18001
|
if (process.version.substr(0, 4) === "v0.8") {
|
|
17926
|
-
var legStreams = legacy(
|
|
18002
|
+
var legStreams = legacy(fs13);
|
|
17927
18003
|
ReadStream = legStreams.ReadStream;
|
|
17928
18004
|
WriteStream = legStreams.WriteStream;
|
|
17929
18005
|
}
|
|
17930
|
-
var fs$ReadStream =
|
|
18006
|
+
var fs$ReadStream = fs13.ReadStream;
|
|
17931
18007
|
if (fs$ReadStream) {
|
|
17932
18008
|
ReadStream.prototype = Object.create(fs$ReadStream.prototype);
|
|
17933
18009
|
ReadStream.prototype.open = ReadStream$open;
|
|
17934
18010
|
}
|
|
17935
|
-
var fs$WriteStream =
|
|
18011
|
+
var fs$WriteStream = fs13.WriteStream;
|
|
17936
18012
|
if (fs$WriteStream) {
|
|
17937
18013
|
WriteStream.prototype = Object.create(fs$WriteStream.prototype);
|
|
17938
18014
|
WriteStream.prototype.open = WriteStream$open;
|
|
17939
18015
|
}
|
|
17940
|
-
Object.defineProperty(
|
|
18016
|
+
Object.defineProperty(fs13, "ReadStream", {
|
|
17941
18017
|
get: /* @__PURE__ */ __name(function() {
|
|
17942
18018
|
return ReadStream;
|
|
17943
18019
|
}, "get"),
|
|
@@ -17947,7 +18023,7 @@ var require_graceful_fs = __commonJS({
|
|
|
17947
18023
|
enumerable: true,
|
|
17948
18024
|
configurable: true
|
|
17949
18025
|
});
|
|
17950
|
-
Object.defineProperty(
|
|
18026
|
+
Object.defineProperty(fs13, "WriteStream", {
|
|
17951
18027
|
get: /* @__PURE__ */ __name(function() {
|
|
17952
18028
|
return WriteStream;
|
|
17953
18029
|
}, "get"),
|
|
@@ -17958,7 +18034,7 @@ var require_graceful_fs = __commonJS({
|
|
|
17958
18034
|
configurable: true
|
|
17959
18035
|
});
|
|
17960
18036
|
var FileReadStream = ReadStream;
|
|
17961
|
-
Object.defineProperty(
|
|
18037
|
+
Object.defineProperty(fs13, "FileReadStream", {
|
|
17962
18038
|
get: /* @__PURE__ */ __name(function() {
|
|
17963
18039
|
return FileReadStream;
|
|
17964
18040
|
}, "get"),
|
|
@@ -17969,7 +18045,7 @@ var require_graceful_fs = __commonJS({
|
|
|
17969
18045
|
configurable: true
|
|
17970
18046
|
});
|
|
17971
18047
|
var FileWriteStream = WriteStream;
|
|
17972
|
-
Object.defineProperty(
|
|
18048
|
+
Object.defineProperty(fs13, "FileWriteStream", {
|
|
17973
18049
|
get: /* @__PURE__ */ __name(function() {
|
|
17974
18050
|
return FileWriteStream;
|
|
17975
18051
|
}, "get"),
|
|
@@ -17979,7 +18055,7 @@ var require_graceful_fs = __commonJS({
|
|
|
17979
18055
|
enumerable: true,
|
|
17980
18056
|
configurable: true
|
|
17981
18057
|
});
|
|
17982
|
-
function ReadStream(
|
|
18058
|
+
function ReadStream(path12, options) {
|
|
17983
18059
|
if (this instanceof ReadStream)
|
|
17984
18060
|
return fs$ReadStream.apply(this, arguments), this;
|
|
17985
18061
|
else
|
|
@@ -18001,7 +18077,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18001
18077
|
});
|
|
18002
18078
|
}
|
|
18003
18079
|
__name(ReadStream$open, "ReadStream$open");
|
|
18004
|
-
function WriteStream(
|
|
18080
|
+
function WriteStream(path12, options) {
|
|
18005
18081
|
if (this instanceof WriteStream)
|
|
18006
18082
|
return fs$WriteStream.apply(this, arguments), this;
|
|
18007
18083
|
else
|
|
@@ -18021,24 +18097,24 @@ var require_graceful_fs = __commonJS({
|
|
|
18021
18097
|
});
|
|
18022
18098
|
}
|
|
18023
18099
|
__name(WriteStream$open, "WriteStream$open");
|
|
18024
|
-
function createReadStream2(
|
|
18025
|
-
return new
|
|
18100
|
+
function createReadStream2(path12, options) {
|
|
18101
|
+
return new fs13.ReadStream(path12, options);
|
|
18026
18102
|
}
|
|
18027
18103
|
__name(createReadStream2, "createReadStream");
|
|
18028
|
-
function
|
|
18029
|
-
return new
|
|
18104
|
+
function createWriteStream(path12, options) {
|
|
18105
|
+
return new fs13.WriteStream(path12, options);
|
|
18030
18106
|
}
|
|
18031
|
-
__name(
|
|
18032
|
-
var fs$open =
|
|
18033
|
-
|
|
18034
|
-
function open(
|
|
18107
|
+
__name(createWriteStream, "createWriteStream");
|
|
18108
|
+
var fs$open = fs13.open;
|
|
18109
|
+
fs13.open = open;
|
|
18110
|
+
function open(path12, flags, mode, cb) {
|
|
18035
18111
|
if (typeof mode === "function")
|
|
18036
18112
|
cb = mode, mode = null;
|
|
18037
|
-
return go$open(
|
|
18038
|
-
function go$open(
|
|
18039
|
-
return fs$open(
|
|
18113
|
+
return go$open(path12, flags, mode, cb);
|
|
18114
|
+
function go$open(path13, flags2, mode2, cb2, startTime) {
|
|
18115
|
+
return fs$open(path13, flags2, mode2, function(err, fd) {
|
|
18040
18116
|
if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
|
|
18041
|
-
enqueue([go$open, [
|
|
18117
|
+
enqueue([go$open, [path13, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
|
|
18042
18118
|
else {
|
|
18043
18119
|
if (typeof cb2 === "function")
|
|
18044
18120
|
cb2.apply(this, arguments);
|
|
@@ -18048,22 +18124,22 @@ var require_graceful_fs = __commonJS({
|
|
|
18048
18124
|
__name(go$open, "go$open");
|
|
18049
18125
|
}
|
|
18050
18126
|
__name(open, "open");
|
|
18051
|
-
return
|
|
18127
|
+
return fs13;
|
|
18052
18128
|
}
|
|
18053
18129
|
__name(patch, "patch");
|
|
18054
18130
|
function enqueue(elem) {
|
|
18055
18131
|
debug("ENQUEUE", elem[0].name, elem[1]);
|
|
18056
|
-
|
|
18132
|
+
fs12[gracefulQueue].push(elem);
|
|
18057
18133
|
retry();
|
|
18058
18134
|
}
|
|
18059
18135
|
__name(enqueue, "enqueue");
|
|
18060
18136
|
var retryTimer;
|
|
18061
18137
|
function resetQueue() {
|
|
18062
18138
|
var now = Date.now();
|
|
18063
|
-
for (var i16 = 0; i16 <
|
|
18064
|
-
if (
|
|
18065
|
-
|
|
18066
|
-
|
|
18139
|
+
for (var i16 = 0; i16 < fs12[gracefulQueue].length; ++i16) {
|
|
18140
|
+
if (fs12[gracefulQueue][i16].length > 2) {
|
|
18141
|
+
fs12[gracefulQueue][i16][3] = now;
|
|
18142
|
+
fs12[gracefulQueue][i16][4] = now;
|
|
18067
18143
|
}
|
|
18068
18144
|
}
|
|
18069
18145
|
retry();
|
|
@@ -18072,9 +18148,9 @@ var require_graceful_fs = __commonJS({
|
|
|
18072
18148
|
function retry() {
|
|
18073
18149
|
clearTimeout(retryTimer);
|
|
18074
18150
|
retryTimer = void 0;
|
|
18075
|
-
if (
|
|
18151
|
+
if (fs12[gracefulQueue].length === 0)
|
|
18076
18152
|
return;
|
|
18077
|
-
var elem =
|
|
18153
|
+
var elem = fs12[gracefulQueue].shift();
|
|
18078
18154
|
var fn = elem[0];
|
|
18079
18155
|
var args = elem[1];
|
|
18080
18156
|
var err = elem[2];
|
|
@@ -18096,7 +18172,7 @@ var require_graceful_fs = __commonJS({
|
|
|
18096
18172
|
debug("RETRY", fn.name, args);
|
|
18097
18173
|
fn.apply(null, args.concat([startTime]));
|
|
18098
18174
|
} else {
|
|
18099
|
-
|
|
18175
|
+
fs12[gracefulQueue].push(elem);
|
|
18100
18176
|
}
|
|
18101
18177
|
}
|
|
18102
18178
|
if (retryTimer === void 0) {
|
|
@@ -20258,22 +20334,22 @@ var require_lazystream = __commonJS({
|
|
|
20258
20334
|
// ../../node_modules/normalize-path/index.js
|
|
20259
20335
|
var require_normalize_path = __commonJS({
|
|
20260
20336
|
"../../node_modules/normalize-path/index.js"(exports2, module2) {
|
|
20261
|
-
module2.exports = function(
|
|
20262
|
-
if (typeof
|
|
20337
|
+
module2.exports = function(path12, stripTrailing) {
|
|
20338
|
+
if (typeof path12 !== "string") {
|
|
20263
20339
|
throw new TypeError("expected path to be a string");
|
|
20264
20340
|
}
|
|
20265
|
-
if (
|
|
20266
|
-
var len =
|
|
20267
|
-
if (len <= 1) return
|
|
20341
|
+
if (path12 === "\\" || path12 === "/") return "/";
|
|
20342
|
+
var len = path12.length;
|
|
20343
|
+
if (len <= 1) return path12;
|
|
20268
20344
|
var prefix = "";
|
|
20269
|
-
if (len > 4 &&
|
|
20270
|
-
var ch =
|
|
20271
|
-
if ((ch === "?" || ch === ".") &&
|
|
20272
|
-
|
|
20345
|
+
if (len > 4 && path12[3] === "\\") {
|
|
20346
|
+
var ch = path12[2];
|
|
20347
|
+
if ((ch === "?" || ch === ".") && path12.slice(0, 2) === "\\\\") {
|
|
20348
|
+
path12 = path12.slice(2);
|
|
20273
20349
|
prefix = "//";
|
|
20274
20350
|
}
|
|
20275
20351
|
}
|
|
20276
|
-
var segs =
|
|
20352
|
+
var segs = path12.split(/[/\\]+/);
|
|
20277
20353
|
if (stripTrailing !== false && segs[segs.length - 1] === "") {
|
|
20278
20354
|
segs.pop();
|
|
20279
20355
|
}
|
|
@@ -22293,25 +22369,25 @@ var require_util2 = __commonJS({
|
|
|
22293
22369
|
};
|
|
22294
22370
|
},
|
|
22295
22371
|
createDeferredPromise: /* @__PURE__ */ __name(function() {
|
|
22296
|
-
let
|
|
22372
|
+
let resolve5;
|
|
22297
22373
|
let reject;
|
|
22298
22374
|
const promise = new Promise((res, rej) => {
|
|
22299
|
-
|
|
22375
|
+
resolve5 = res;
|
|
22300
22376
|
reject = rej;
|
|
22301
22377
|
});
|
|
22302
22378
|
return {
|
|
22303
22379
|
promise,
|
|
22304
|
-
resolve:
|
|
22380
|
+
resolve: resolve5,
|
|
22305
22381
|
reject
|
|
22306
22382
|
};
|
|
22307
22383
|
}, "createDeferredPromise"),
|
|
22308
22384
|
promisify(fn) {
|
|
22309
|
-
return new Promise((
|
|
22385
|
+
return new Promise((resolve5, reject) => {
|
|
22310
22386
|
fn((err, ...args) => {
|
|
22311
22387
|
if (err) {
|
|
22312
22388
|
return reject(err);
|
|
22313
22389
|
}
|
|
22314
|
-
return
|
|
22390
|
+
return resolve5(...args);
|
|
22315
22391
|
});
|
|
22316
22392
|
});
|
|
22317
22393
|
},
|
|
@@ -23147,7 +23223,7 @@ var require_end_of_stream = __commonJS({
|
|
|
23147
23223
|
validateBoolean(opts.cleanup, "cleanup");
|
|
23148
23224
|
autoCleanup = opts.cleanup;
|
|
23149
23225
|
}
|
|
23150
|
-
return new Promise2((
|
|
23226
|
+
return new Promise2((resolve5, reject) => {
|
|
23151
23227
|
const cleanup = eos(stream, opts, (err) => {
|
|
23152
23228
|
if (autoCleanup) {
|
|
23153
23229
|
cleanup();
|
|
@@ -23155,7 +23231,7 @@ var require_end_of_stream = __commonJS({
|
|
|
23155
23231
|
if (err) {
|
|
23156
23232
|
reject(err);
|
|
23157
23233
|
} else {
|
|
23158
|
-
|
|
23234
|
+
resolve5();
|
|
23159
23235
|
}
|
|
23160
23236
|
});
|
|
23161
23237
|
});
|
|
@@ -24377,7 +24453,7 @@ var require_readable2 = __commonJS({
|
|
|
24377
24453
|
error2 = this.readableEnded ? null : new AbortError();
|
|
24378
24454
|
this.destroy(error2);
|
|
24379
24455
|
}
|
|
24380
|
-
return new Promise2((
|
|
24456
|
+
return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
|
|
24381
24457
|
};
|
|
24382
24458
|
Readable4.prototype.push = function(chunk, encoding) {
|
|
24383
24459
|
return readableAddChunk(this, chunk, encoding, false);
|
|
@@ -24946,12 +25022,12 @@ var require_readable2 = __commonJS({
|
|
|
24946
25022
|
__name(streamToAsyncIterator, "streamToAsyncIterator");
|
|
24947
25023
|
async function* createAsyncIterator(stream, options) {
|
|
24948
25024
|
let callback = nop;
|
|
24949
|
-
function next(
|
|
25025
|
+
function next(resolve5) {
|
|
24950
25026
|
if (this === stream) {
|
|
24951
25027
|
callback();
|
|
24952
25028
|
callback = nop;
|
|
24953
25029
|
} else {
|
|
24954
|
-
callback =
|
|
25030
|
+
callback = resolve5;
|
|
24955
25031
|
}
|
|
24956
25032
|
}
|
|
24957
25033
|
__name(next, "next");
|
|
@@ -26033,7 +26109,7 @@ var require_duplexify = __commonJS({
|
|
|
26033
26109
|
);
|
|
26034
26110
|
}, "duplexify");
|
|
26035
26111
|
function fromAsyncGen(fn) {
|
|
26036
|
-
let { promise, resolve:
|
|
26112
|
+
let { promise, resolve: resolve5 } = createDeferredPromise();
|
|
26037
26113
|
const ac = new AbortController2();
|
|
26038
26114
|
const signal = ac.signal;
|
|
26039
26115
|
const value = fn(
|
|
@@ -26048,7 +26124,7 @@ var require_duplexify = __commonJS({
|
|
|
26048
26124
|
throw new AbortError(void 0, {
|
|
26049
26125
|
cause: signal.reason
|
|
26050
26126
|
});
|
|
26051
|
-
({ promise, resolve:
|
|
26127
|
+
({ promise, resolve: resolve5 } = createDeferredPromise());
|
|
26052
26128
|
yield chunk;
|
|
26053
26129
|
}
|
|
26054
26130
|
})(),
|
|
@@ -26059,8 +26135,8 @@ var require_duplexify = __commonJS({
|
|
|
26059
26135
|
return {
|
|
26060
26136
|
value,
|
|
26061
26137
|
write(chunk, encoding, cb) {
|
|
26062
|
-
const _resolve =
|
|
26063
|
-
|
|
26138
|
+
const _resolve = resolve5;
|
|
26139
|
+
resolve5 = null;
|
|
26064
26140
|
_resolve({
|
|
26065
26141
|
chunk,
|
|
26066
26142
|
done: false,
|
|
@@ -26068,8 +26144,8 @@ var require_duplexify = __commonJS({
|
|
|
26068
26144
|
});
|
|
26069
26145
|
},
|
|
26070
26146
|
final(cb) {
|
|
26071
|
-
const _resolve =
|
|
26072
|
-
|
|
26147
|
+
const _resolve = resolve5;
|
|
26148
|
+
resolve5 = null;
|
|
26073
26149
|
_resolve({
|
|
26074
26150
|
done: true,
|
|
26075
26151
|
cb
|
|
@@ -26533,7 +26609,7 @@ var require_pipeline = __commonJS({
|
|
|
26533
26609
|
callback();
|
|
26534
26610
|
}
|
|
26535
26611
|
}, "resume");
|
|
26536
|
-
const wait = /* @__PURE__ */ __name(() => new Promise2((
|
|
26612
|
+
const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
|
|
26537
26613
|
if (error2) {
|
|
26538
26614
|
reject(error2);
|
|
26539
26615
|
} else {
|
|
@@ -26541,7 +26617,7 @@ var require_pipeline = __commonJS({
|
|
|
26541
26617
|
if (error2) {
|
|
26542
26618
|
reject(error2);
|
|
26543
26619
|
} else {
|
|
26544
|
-
|
|
26620
|
+
resolve5();
|
|
26545
26621
|
}
|
|
26546
26622
|
}, "onresolve");
|
|
26547
26623
|
}
|
|
@@ -27200,8 +27276,8 @@ var require_operators = __commonJS({
|
|
|
27200
27276
|
next = null;
|
|
27201
27277
|
}
|
|
27202
27278
|
if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
|
|
27203
|
-
await new Promise2((
|
|
27204
|
-
resume =
|
|
27279
|
+
await new Promise2((resolve5) => {
|
|
27280
|
+
resume = resolve5;
|
|
27205
27281
|
});
|
|
27206
27282
|
}
|
|
27207
27283
|
}
|
|
@@ -27236,8 +27312,8 @@ var require_operators = __commonJS({
|
|
|
27236
27312
|
queue.shift();
|
|
27237
27313
|
maybeResume();
|
|
27238
27314
|
}
|
|
27239
|
-
await new Promise2((
|
|
27240
|
-
next =
|
|
27315
|
+
await new Promise2((resolve5) => {
|
|
27316
|
+
next = resolve5;
|
|
27241
27317
|
});
|
|
27242
27318
|
}
|
|
27243
27319
|
} finally {
|
|
@@ -27513,7 +27589,7 @@ var require_promises = __commonJS({
|
|
|
27513
27589
|
var { finished } = require_end_of_stream();
|
|
27514
27590
|
require_stream6();
|
|
27515
27591
|
function pipeline(...streams) {
|
|
27516
|
-
return new Promise2((
|
|
27592
|
+
return new Promise2((resolve5, reject) => {
|
|
27517
27593
|
let signal;
|
|
27518
27594
|
let end;
|
|
27519
27595
|
const lastArg = streams[streams.length - 1];
|
|
@@ -27528,7 +27604,7 @@ var require_promises = __commonJS({
|
|
|
27528
27604
|
if (err) {
|
|
27529
27605
|
reject(err);
|
|
27530
27606
|
} else {
|
|
27531
|
-
|
|
27607
|
+
resolve5(value);
|
|
27532
27608
|
}
|
|
27533
27609
|
},
|
|
27534
27610
|
{
|
|
@@ -29656,11 +29732,11 @@ var require_commonjs = __commonJS({
|
|
|
29656
29732
|
return (f16) => f16.length === len && f16 !== "." && f16 !== "..";
|
|
29657
29733
|
}, "qmarksTestNoExtDot");
|
|
29658
29734
|
var defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
|
|
29659
|
-
var
|
|
29735
|
+
var path12 = {
|
|
29660
29736
|
win32: { sep: "\\" },
|
|
29661
29737
|
posix: { sep: "/" }
|
|
29662
29738
|
};
|
|
29663
|
-
exports2.sep = defaultPlatform === "win32" ?
|
|
29739
|
+
exports2.sep = defaultPlatform === "win32" ? path12.win32.sep : path12.posix.sep;
|
|
29664
29740
|
exports2.minimatch.sep = exports2.sep;
|
|
29665
29741
|
exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
|
|
29666
29742
|
exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
|
|
@@ -32554,10 +32630,10 @@ var require_commonjs3 = __commonJS({
|
|
|
32554
32630
|
* Return a void Promise that resolves once the stream ends.
|
|
32555
32631
|
*/
|
|
32556
32632
|
async promise() {
|
|
32557
|
-
return new Promise((
|
|
32633
|
+
return new Promise((resolve5, reject) => {
|
|
32558
32634
|
this.on(DESTROYED, () => reject(new Error("stream destroyed")));
|
|
32559
32635
|
this.on("error", (er) => reject(er));
|
|
32560
|
-
this.on("end", () =>
|
|
32636
|
+
this.on("end", () => resolve5());
|
|
32561
32637
|
});
|
|
32562
32638
|
}
|
|
32563
32639
|
/**
|
|
@@ -32581,7 +32657,7 @@ var require_commonjs3 = __commonJS({
|
|
|
32581
32657
|
return Promise.resolve({ done: false, value: res });
|
|
32582
32658
|
if (this[EOF])
|
|
32583
32659
|
return stop();
|
|
32584
|
-
let
|
|
32660
|
+
let resolve5;
|
|
32585
32661
|
let reject;
|
|
32586
32662
|
const onerr = /* @__PURE__ */ __name((er) => {
|
|
32587
32663
|
this.off("data", ondata);
|
|
@@ -32595,19 +32671,19 @@ var require_commonjs3 = __commonJS({
|
|
|
32595
32671
|
this.off("end", onend);
|
|
32596
32672
|
this.off(DESTROYED, ondestroy);
|
|
32597
32673
|
this.pause();
|
|
32598
|
-
|
|
32674
|
+
resolve5({ value, done: !!this[EOF] });
|
|
32599
32675
|
}, "ondata");
|
|
32600
32676
|
const onend = /* @__PURE__ */ __name(() => {
|
|
32601
32677
|
this.off("error", onerr);
|
|
32602
32678
|
this.off("data", ondata);
|
|
32603
32679
|
this.off(DESTROYED, ondestroy);
|
|
32604
32680
|
stop();
|
|
32605
|
-
|
|
32681
|
+
resolve5({ done: true, value: void 0 });
|
|
32606
32682
|
}, "onend");
|
|
32607
32683
|
const ondestroy = /* @__PURE__ */ __name(() => onerr(new Error("stream destroyed")), "ondestroy");
|
|
32608
32684
|
return new Promise((res2, rej) => {
|
|
32609
32685
|
reject = rej;
|
|
32610
|
-
|
|
32686
|
+
resolve5 = res2;
|
|
32611
32687
|
this.once(DESTROYED, ondestroy);
|
|
32612
32688
|
this.once("error", onerr);
|
|
32613
32689
|
this.once("end", onend);
|
|
@@ -33023,12 +33099,12 @@ var require_commonjs4 = __commonJS({
|
|
|
33023
33099
|
/**
|
|
33024
33100
|
* Get the Path object referenced by the string path, resolved from this Path
|
|
33025
33101
|
*/
|
|
33026
|
-
resolve(
|
|
33027
|
-
if (!
|
|
33102
|
+
resolve(path12) {
|
|
33103
|
+
if (!path12) {
|
|
33028
33104
|
return this;
|
|
33029
33105
|
}
|
|
33030
|
-
const rootPath = this.getRootString(
|
|
33031
|
-
const dir =
|
|
33106
|
+
const rootPath = this.getRootString(path12);
|
|
33107
|
+
const dir = path12.substring(rootPath.length);
|
|
33032
33108
|
const dirParts = dir.split(this.splitSep);
|
|
33033
33109
|
const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
|
|
33034
33110
|
return result;
|
|
@@ -33632,9 +33708,9 @@ var require_commonjs4 = __commonJS({
|
|
|
33632
33708
|
if (this.#asyncReaddirInFlight) {
|
|
33633
33709
|
await this.#asyncReaddirInFlight;
|
|
33634
33710
|
} else {
|
|
33635
|
-
let
|
|
33711
|
+
let resolve5 = /* @__PURE__ */ __name(() => {
|
|
33636
33712
|
}, "resolve");
|
|
33637
|
-
this.#asyncReaddirInFlight = new Promise((res) =>
|
|
33713
|
+
this.#asyncReaddirInFlight = new Promise((res) => resolve5 = res);
|
|
33638
33714
|
try {
|
|
33639
33715
|
for (const e16 of await this.#fs.promises.readdir(fullpath, {
|
|
33640
33716
|
withFileTypes: true
|
|
@@ -33647,7 +33723,7 @@ var require_commonjs4 = __commonJS({
|
|
|
33647
33723
|
children.provisional = 0;
|
|
33648
33724
|
}
|
|
33649
33725
|
this.#asyncReaddirInFlight = void 0;
|
|
33650
|
-
|
|
33726
|
+
resolve5();
|
|
33651
33727
|
}
|
|
33652
33728
|
return children.slice(0, children.provisional);
|
|
33653
33729
|
}
|
|
@@ -33784,8 +33860,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33784
33860
|
/**
|
|
33785
33861
|
* @internal
|
|
33786
33862
|
*/
|
|
33787
|
-
getRootString(
|
|
33788
|
-
return node_path_1.win32.parse(
|
|
33863
|
+
getRootString(path12) {
|
|
33864
|
+
return node_path_1.win32.parse(path12).root;
|
|
33789
33865
|
}
|
|
33790
33866
|
/**
|
|
33791
33867
|
* @internal
|
|
@@ -33835,8 +33911,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33835
33911
|
/**
|
|
33836
33912
|
* @internal
|
|
33837
33913
|
*/
|
|
33838
|
-
getRootString(
|
|
33839
|
-
return
|
|
33914
|
+
getRootString(path12) {
|
|
33915
|
+
return path12.startsWith("/") ? "/" : "";
|
|
33840
33916
|
}
|
|
33841
33917
|
/**
|
|
33842
33918
|
* @internal
|
|
@@ -33889,8 +33965,8 @@ var require_commonjs4 = __commonJS({
|
|
|
33889
33965
|
*
|
|
33890
33966
|
* @internal
|
|
33891
33967
|
*/
|
|
33892
|
-
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs:
|
|
33893
|
-
this.#fs = fsFromOption(
|
|
33968
|
+
constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS } = {}) {
|
|
33969
|
+
this.#fs = fsFromOption(fs12);
|
|
33894
33970
|
if (cwd instanceof URL || cwd.startsWith("file://")) {
|
|
33895
33971
|
cwd = (0, node_url_1.fileURLToPath)(cwd);
|
|
33896
33972
|
}
|
|
@@ -33929,11 +34005,11 @@ var require_commonjs4 = __commonJS({
|
|
|
33929
34005
|
/**
|
|
33930
34006
|
* Get the depth of a provided path, string, or the cwd
|
|
33931
34007
|
*/
|
|
33932
|
-
depth(
|
|
33933
|
-
if (typeof
|
|
33934
|
-
|
|
34008
|
+
depth(path12 = this.cwd) {
|
|
34009
|
+
if (typeof path12 === "string") {
|
|
34010
|
+
path12 = this.cwd.resolve(path12);
|
|
33935
34011
|
}
|
|
33936
|
-
return
|
|
34012
|
+
return path12.depth();
|
|
33937
34013
|
}
|
|
33938
34014
|
/**
|
|
33939
34015
|
* Return the cache of child entries. Exposed so subclasses can create
|
|
@@ -34420,9 +34496,9 @@ var require_commonjs4 = __commonJS({
|
|
|
34420
34496
|
process2();
|
|
34421
34497
|
return results;
|
|
34422
34498
|
}
|
|
34423
|
-
chdir(
|
|
34499
|
+
chdir(path12 = this.cwd) {
|
|
34424
34500
|
const oldCwd = this.cwd;
|
|
34425
|
-
this.cwd = typeof
|
|
34501
|
+
this.cwd = typeof path12 === "string" ? this.cwd.resolve(path12) : path12;
|
|
34426
34502
|
this.cwd[setAsCwd](oldCwd);
|
|
34427
34503
|
}
|
|
34428
34504
|
};
|
|
@@ -34452,8 +34528,8 @@ var require_commonjs4 = __commonJS({
|
|
|
34452
34528
|
/**
|
|
34453
34529
|
* @internal
|
|
34454
34530
|
*/
|
|
34455
|
-
newRoot(
|
|
34456
|
-
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
34531
|
+
newRoot(fs12) {
|
|
34532
|
+
return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
|
|
34457
34533
|
}
|
|
34458
34534
|
/**
|
|
34459
34535
|
* Return true if the provided path string is an absolute path
|
|
@@ -34485,8 +34561,8 @@ var require_commonjs4 = __commonJS({
|
|
|
34485
34561
|
/**
|
|
34486
34562
|
* @internal
|
|
34487
34563
|
*/
|
|
34488
|
-
newRoot(
|
|
34489
|
-
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs:
|
|
34564
|
+
newRoot(fs12) {
|
|
34565
|
+
return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
|
|
34490
34566
|
}
|
|
34491
34567
|
/**
|
|
34492
34568
|
* Return true if the provided path string is an absolute path
|
|
@@ -34831,8 +34907,8 @@ var require_processor = __commonJS({
|
|
|
34831
34907
|
}
|
|
34832
34908
|
// match, absolute, ifdir
|
|
34833
34909
|
entries() {
|
|
34834
|
-
return [...this.store.entries()].map(([
|
|
34835
|
-
|
|
34910
|
+
return [...this.store.entries()].map(([path12, n5]) => [
|
|
34911
|
+
path12,
|
|
34836
34912
|
!!(n5 & 2),
|
|
34837
34913
|
!!(n5 & 1)
|
|
34838
34914
|
]);
|
|
@@ -35059,9 +35135,9 @@ var require_walker = __commonJS({
|
|
|
35059
35135
|
signal;
|
|
35060
35136
|
maxDepth;
|
|
35061
35137
|
includeChildMatches;
|
|
35062
|
-
constructor(patterns,
|
|
35138
|
+
constructor(patterns, path12, opts) {
|
|
35063
35139
|
this.patterns = patterns;
|
|
35064
|
-
this.path =
|
|
35140
|
+
this.path = path12;
|
|
35065
35141
|
this.opts = opts;
|
|
35066
35142
|
this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
|
|
35067
35143
|
this.includeChildMatches = opts.includeChildMatches !== false;
|
|
@@ -35080,11 +35156,11 @@ var require_walker = __commonJS({
|
|
|
35080
35156
|
});
|
|
35081
35157
|
}
|
|
35082
35158
|
}
|
|
35083
|
-
#ignored(
|
|
35084
|
-
return this.seen.has(
|
|
35159
|
+
#ignored(path12) {
|
|
35160
|
+
return this.seen.has(path12) || !!this.#ignore?.ignored?.(path12);
|
|
35085
35161
|
}
|
|
35086
|
-
#childrenIgnored(
|
|
35087
|
-
return !!this.#ignore?.childrenIgnored?.(
|
|
35162
|
+
#childrenIgnored(path12) {
|
|
35163
|
+
return !!this.#ignore?.childrenIgnored?.(path12);
|
|
35088
35164
|
}
|
|
35089
35165
|
// backpressure mechanism
|
|
35090
35166
|
pause() {
|
|
@@ -35303,8 +35379,8 @@ var require_walker = __commonJS({
|
|
|
35303
35379
|
__name(this, "GlobWalker");
|
|
35304
35380
|
}
|
|
35305
35381
|
matches = /* @__PURE__ */ new Set();
|
|
35306
|
-
constructor(patterns,
|
|
35307
|
-
super(patterns,
|
|
35382
|
+
constructor(patterns, path12, opts) {
|
|
35383
|
+
super(patterns, path12, opts);
|
|
35308
35384
|
}
|
|
35309
35385
|
matchEmit(e16) {
|
|
35310
35386
|
this.matches.add(e16);
|
|
@@ -35345,8 +35421,8 @@ var require_walker = __commonJS({
|
|
|
35345
35421
|
__name(this, "GlobStream");
|
|
35346
35422
|
}
|
|
35347
35423
|
results;
|
|
35348
|
-
constructor(patterns,
|
|
35349
|
-
super(patterns,
|
|
35424
|
+
constructor(patterns, path12, opts) {
|
|
35425
|
+
super(patterns, path12, opts);
|
|
35350
35426
|
this.results = new minipass_1.Minipass({
|
|
35351
35427
|
signal: this.signal,
|
|
35352
35428
|
objectMode: true
|
|
@@ -35627,7 +35703,7 @@ var require_commonjs5 = __commonJS({
|
|
|
35627
35703
|
exports2.glob = exports2.sync = exports2.iterate = exports2.iterateSync = exports2.stream = exports2.streamSync = exports2.Ignore = exports2.hasMagic = exports2.Glob = exports2.unescape = exports2.escape = void 0;
|
|
35628
35704
|
exports2.globStreamSync = globStreamSync;
|
|
35629
35705
|
exports2.globStream = globStream;
|
|
35630
|
-
exports2.globSync =
|
|
35706
|
+
exports2.globSync = globSync;
|
|
35631
35707
|
exports2.globIterateSync = globIterateSync;
|
|
35632
35708
|
exports2.globIterate = globIterate;
|
|
35633
35709
|
var minimatch_1 = require_commonjs();
|
|
@@ -35660,10 +35736,10 @@ var require_commonjs5 = __commonJS({
|
|
|
35660
35736
|
return new glob_js_1.Glob(pattern, options).stream();
|
|
35661
35737
|
}
|
|
35662
35738
|
__name(globStream, "globStream");
|
|
35663
|
-
function
|
|
35739
|
+
function globSync(pattern, options = {}) {
|
|
35664
35740
|
return new glob_js_1.Glob(pattern, options).walkSync();
|
|
35665
35741
|
}
|
|
35666
|
-
__name(
|
|
35742
|
+
__name(globSync, "globSync");
|
|
35667
35743
|
async function glob_(pattern, options = {}) {
|
|
35668
35744
|
return new glob_js_1.Glob(pattern, options).walk();
|
|
35669
35745
|
}
|
|
@@ -35682,13 +35758,13 @@ var require_commonjs5 = __commonJS({
|
|
|
35682
35758
|
exports2.iterate = Object.assign(globIterate, {
|
|
35683
35759
|
sync: globIterateSync
|
|
35684
35760
|
});
|
|
35685
|
-
exports2.sync = Object.assign(
|
|
35761
|
+
exports2.sync = Object.assign(globSync, {
|
|
35686
35762
|
stream: globStreamSync,
|
|
35687
35763
|
iterate: globIterateSync
|
|
35688
35764
|
});
|
|
35689
35765
|
exports2.glob = Object.assign(glob_, {
|
|
35690
35766
|
glob: glob_,
|
|
35691
|
-
globSync
|
|
35767
|
+
globSync,
|
|
35692
35768
|
sync: exports2.sync,
|
|
35693
35769
|
globStream,
|
|
35694
35770
|
stream: exports2.stream,
|
|
@@ -35710,8 +35786,8 @@ var require_commonjs5 = __commonJS({
|
|
|
35710
35786
|
// ../../node_modules/archiver-utils/file.js
|
|
35711
35787
|
var require_file = __commonJS({
|
|
35712
35788
|
"../../node_modules/archiver-utils/file.js"(exports2, module2) {
|
|
35713
|
-
var
|
|
35714
|
-
var
|
|
35789
|
+
var fs12 = require_graceful_fs();
|
|
35790
|
+
var path12 = require("path");
|
|
35715
35791
|
var flatten2 = require_flatten();
|
|
35716
35792
|
var difference = require_difference();
|
|
35717
35793
|
var union = require_union();
|
|
@@ -35736,8 +35812,8 @@ var require_file = __commonJS({
|
|
|
35736
35812
|
return result;
|
|
35737
35813
|
}, "processPatterns");
|
|
35738
35814
|
file.exists = function() {
|
|
35739
|
-
var filepath =
|
|
35740
|
-
return
|
|
35815
|
+
var filepath = path12.join.apply(path12, arguments);
|
|
35816
|
+
return fs12.existsSync(filepath);
|
|
35741
35817
|
};
|
|
35742
35818
|
file.expand = function(...args) {
|
|
35743
35819
|
var options = isPlainObject(args[0]) ? args.shift() : {};
|
|
@@ -35750,12 +35826,12 @@ var require_file = __commonJS({
|
|
|
35750
35826
|
});
|
|
35751
35827
|
if (options.filter) {
|
|
35752
35828
|
matches = matches.filter(function(filepath) {
|
|
35753
|
-
filepath =
|
|
35829
|
+
filepath = path12.join(options.cwd || "", filepath);
|
|
35754
35830
|
try {
|
|
35755
35831
|
if (typeof options.filter === "function") {
|
|
35756
35832
|
return options.filter(filepath);
|
|
35757
35833
|
} else {
|
|
35758
|
-
return
|
|
35834
|
+
return fs12.statSync(filepath)[options.filter]();
|
|
35759
35835
|
}
|
|
35760
35836
|
} catch (e16) {
|
|
35761
35837
|
return false;
|
|
@@ -35767,7 +35843,7 @@ var require_file = __commonJS({
|
|
|
35767
35843
|
file.expandMapping = function(patterns, destBase, options) {
|
|
35768
35844
|
options = Object.assign({
|
|
35769
35845
|
rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
|
|
35770
|
-
return
|
|
35846
|
+
return path12.join(destBase2 || "", destPath);
|
|
35771
35847
|
}, "rename")
|
|
35772
35848
|
}, options);
|
|
35773
35849
|
var files = [];
|
|
@@ -35775,14 +35851,14 @@ var require_file = __commonJS({
|
|
|
35775
35851
|
file.expand(options, patterns).forEach(function(src) {
|
|
35776
35852
|
var destPath = src;
|
|
35777
35853
|
if (options.flatten) {
|
|
35778
|
-
destPath =
|
|
35854
|
+
destPath = path12.basename(destPath);
|
|
35779
35855
|
}
|
|
35780
35856
|
if (options.ext) {
|
|
35781
35857
|
destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
|
|
35782
35858
|
}
|
|
35783
35859
|
var dest = options.rename(destBase, destPath, options);
|
|
35784
35860
|
if (options.cwd) {
|
|
35785
|
-
src =
|
|
35861
|
+
src = path12.join(options.cwd, src);
|
|
35786
35862
|
}
|
|
35787
35863
|
dest = dest.replace(pathSeparatorRe, "/");
|
|
35788
35864
|
src = src.replace(pathSeparatorRe, "/");
|
|
@@ -35863,8 +35939,8 @@ var require_file = __commonJS({
|
|
|
35863
35939
|
// ../../node_modules/archiver-utils/index.js
|
|
35864
35940
|
var require_archiver_utils = __commonJS({
|
|
35865
35941
|
"../../node_modules/archiver-utils/index.js"(exports2, module2) {
|
|
35866
|
-
var
|
|
35867
|
-
var
|
|
35942
|
+
var fs12 = require_graceful_fs();
|
|
35943
|
+
var path12 = require("path");
|
|
35868
35944
|
var isStream = require_is_stream();
|
|
35869
35945
|
var lazystream = require_lazystream();
|
|
35870
35946
|
var normalizePath = require_normalize_path();
|
|
@@ -35912,7 +35988,7 @@ var require_archiver_utils = __commonJS({
|
|
|
35912
35988
|
};
|
|
35913
35989
|
utils.lazyReadStream = function(filepath) {
|
|
35914
35990
|
return new lazystream.Readable(function() {
|
|
35915
|
-
return
|
|
35991
|
+
return fs12.createReadStream(filepath);
|
|
35916
35992
|
});
|
|
35917
35993
|
};
|
|
35918
35994
|
utils.normalizeInputSource = function(source) {
|
|
@@ -35940,7 +36016,7 @@ var require_archiver_utils = __commonJS({
|
|
|
35940
36016
|
callback = base;
|
|
35941
36017
|
base = dirpath;
|
|
35942
36018
|
}
|
|
35943
|
-
|
|
36019
|
+
fs12.readdir(dirpath, function(err, list3) {
|
|
35944
36020
|
var i16 = 0;
|
|
35945
36021
|
var file;
|
|
35946
36022
|
var filepath;
|
|
@@ -35952,11 +36028,11 @@ var require_archiver_utils = __commonJS({
|
|
|
35952
36028
|
if (!file) {
|
|
35953
36029
|
return callback(null, results);
|
|
35954
36030
|
}
|
|
35955
|
-
filepath =
|
|
35956
|
-
|
|
36031
|
+
filepath = path12.join(dirpath, file);
|
|
36032
|
+
fs12.stat(filepath, function(err2, stats) {
|
|
35957
36033
|
results.push({
|
|
35958
36034
|
path: filepath,
|
|
35959
|
-
relative:
|
|
36035
|
+
relative: path12.relative(base, filepath).replace(/\\/g, "/"),
|
|
35960
36036
|
stats
|
|
35961
36037
|
});
|
|
35962
36038
|
if (stats && stats.isDirectory()) {
|
|
@@ -36562,25 +36638,25 @@ var require_util3 = __commonJS({
|
|
|
36562
36638
|
};
|
|
36563
36639
|
},
|
|
36564
36640
|
createDeferredPromise: /* @__PURE__ */ __name(function() {
|
|
36565
|
-
let
|
|
36641
|
+
let resolve5;
|
|
36566
36642
|
let reject;
|
|
36567
36643
|
const promise = new Promise((res, rej) => {
|
|
36568
|
-
|
|
36644
|
+
resolve5 = res;
|
|
36569
36645
|
reject = rej;
|
|
36570
36646
|
});
|
|
36571
36647
|
return {
|
|
36572
36648
|
promise,
|
|
36573
|
-
resolve:
|
|
36649
|
+
resolve: resolve5,
|
|
36574
36650
|
reject
|
|
36575
36651
|
};
|
|
36576
36652
|
}, "createDeferredPromise"),
|
|
36577
36653
|
promisify(fn) {
|
|
36578
|
-
return new Promise((
|
|
36654
|
+
return new Promise((resolve5, reject) => {
|
|
36579
36655
|
fn((err, ...args) => {
|
|
36580
36656
|
if (err) {
|
|
36581
36657
|
return reject(err);
|
|
36582
36658
|
}
|
|
36583
|
-
return
|
|
36659
|
+
return resolve5(...args);
|
|
36584
36660
|
});
|
|
36585
36661
|
});
|
|
36586
36662
|
},
|
|
@@ -37409,7 +37485,7 @@ var require_end_of_stream2 = __commonJS({
|
|
|
37409
37485
|
validateBoolean(opts.cleanup, "cleanup");
|
|
37410
37486
|
autoCleanup = opts.cleanup;
|
|
37411
37487
|
}
|
|
37412
|
-
return new Promise2((
|
|
37488
|
+
return new Promise2((resolve5, reject) => {
|
|
37413
37489
|
const cleanup = eos(stream, opts, (err) => {
|
|
37414
37490
|
if (autoCleanup) {
|
|
37415
37491
|
cleanup();
|
|
@@ -37417,7 +37493,7 @@ var require_end_of_stream2 = __commonJS({
|
|
|
37417
37493
|
if (err) {
|
|
37418
37494
|
reject(err);
|
|
37419
37495
|
} else {
|
|
37420
|
-
|
|
37496
|
+
resolve5();
|
|
37421
37497
|
}
|
|
37422
37498
|
});
|
|
37423
37499
|
});
|
|
@@ -38326,7 +38402,7 @@ var require_readable3 = __commonJS({
|
|
|
38326
38402
|
error2 = this.readableEnded ? null : new AbortError();
|
|
38327
38403
|
this.destroy(error2);
|
|
38328
38404
|
}
|
|
38329
|
-
return new Promise2((
|
|
38405
|
+
return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
|
|
38330
38406
|
};
|
|
38331
38407
|
Readable4.prototype.push = function(chunk, encoding) {
|
|
38332
38408
|
return readableAddChunk(this, chunk, encoding, false);
|
|
@@ -38895,12 +38971,12 @@ var require_readable3 = __commonJS({
|
|
|
38895
38971
|
__name(streamToAsyncIterator, "streamToAsyncIterator");
|
|
38896
38972
|
async function* createAsyncIterator(stream, options) {
|
|
38897
38973
|
let callback = nop;
|
|
38898
|
-
function next(
|
|
38974
|
+
function next(resolve5) {
|
|
38899
38975
|
if (this === stream) {
|
|
38900
38976
|
callback();
|
|
38901
38977
|
callback = nop;
|
|
38902
38978
|
} else {
|
|
38903
|
-
callback =
|
|
38979
|
+
callback = resolve5;
|
|
38904
38980
|
}
|
|
38905
38981
|
}
|
|
38906
38982
|
__name(next, "next");
|
|
@@ -39982,7 +40058,7 @@ var require_duplexify2 = __commonJS({
|
|
|
39982
40058
|
);
|
|
39983
40059
|
}, "duplexify");
|
|
39984
40060
|
function fromAsyncGen(fn) {
|
|
39985
|
-
let { promise, resolve:
|
|
40061
|
+
let { promise, resolve: resolve5 } = createDeferredPromise();
|
|
39986
40062
|
const ac = new AbortController2();
|
|
39987
40063
|
const signal = ac.signal;
|
|
39988
40064
|
const value = fn(
|
|
@@ -39997,7 +40073,7 @@ var require_duplexify2 = __commonJS({
|
|
|
39997
40073
|
throw new AbortError(void 0, {
|
|
39998
40074
|
cause: signal.reason
|
|
39999
40075
|
});
|
|
40000
|
-
({ promise, resolve:
|
|
40076
|
+
({ promise, resolve: resolve5 } = createDeferredPromise());
|
|
40001
40077
|
yield chunk;
|
|
40002
40078
|
}
|
|
40003
40079
|
})(),
|
|
@@ -40008,8 +40084,8 @@ var require_duplexify2 = __commonJS({
|
|
|
40008
40084
|
return {
|
|
40009
40085
|
value,
|
|
40010
40086
|
write(chunk, encoding, cb) {
|
|
40011
|
-
const _resolve =
|
|
40012
|
-
|
|
40087
|
+
const _resolve = resolve5;
|
|
40088
|
+
resolve5 = null;
|
|
40013
40089
|
_resolve({
|
|
40014
40090
|
chunk,
|
|
40015
40091
|
done: false,
|
|
@@ -40017,8 +40093,8 @@ var require_duplexify2 = __commonJS({
|
|
|
40017
40093
|
});
|
|
40018
40094
|
},
|
|
40019
40095
|
final(cb) {
|
|
40020
|
-
const _resolve =
|
|
40021
|
-
|
|
40096
|
+
const _resolve = resolve5;
|
|
40097
|
+
resolve5 = null;
|
|
40022
40098
|
_resolve({
|
|
40023
40099
|
done: true,
|
|
40024
40100
|
cb
|
|
@@ -40482,7 +40558,7 @@ var require_pipeline2 = __commonJS({
|
|
|
40482
40558
|
callback();
|
|
40483
40559
|
}
|
|
40484
40560
|
}, "resume");
|
|
40485
|
-
const wait = /* @__PURE__ */ __name(() => new Promise2((
|
|
40561
|
+
const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
|
|
40486
40562
|
if (error2) {
|
|
40487
40563
|
reject(error2);
|
|
40488
40564
|
} else {
|
|
@@ -40490,7 +40566,7 @@ var require_pipeline2 = __commonJS({
|
|
|
40490
40566
|
if (error2) {
|
|
40491
40567
|
reject(error2);
|
|
40492
40568
|
} else {
|
|
40493
|
-
|
|
40569
|
+
resolve5();
|
|
40494
40570
|
}
|
|
40495
40571
|
}, "onresolve");
|
|
40496
40572
|
}
|
|
@@ -41149,8 +41225,8 @@ var require_operators2 = __commonJS({
|
|
|
41149
41225
|
next = null;
|
|
41150
41226
|
}
|
|
41151
41227
|
if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
|
|
41152
|
-
await new Promise2((
|
|
41153
|
-
resume =
|
|
41228
|
+
await new Promise2((resolve5) => {
|
|
41229
|
+
resume = resolve5;
|
|
41154
41230
|
});
|
|
41155
41231
|
}
|
|
41156
41232
|
}
|
|
@@ -41185,8 +41261,8 @@ var require_operators2 = __commonJS({
|
|
|
41185
41261
|
queue.shift();
|
|
41186
41262
|
maybeResume();
|
|
41187
41263
|
}
|
|
41188
|
-
await new Promise2((
|
|
41189
|
-
next =
|
|
41264
|
+
await new Promise2((resolve5) => {
|
|
41265
|
+
next = resolve5;
|
|
41190
41266
|
});
|
|
41191
41267
|
}
|
|
41192
41268
|
} finally {
|
|
@@ -41462,7 +41538,7 @@ var require_promises2 = __commonJS({
|
|
|
41462
41538
|
var { finished } = require_end_of_stream2();
|
|
41463
41539
|
require_stream7();
|
|
41464
41540
|
function pipeline(...streams) {
|
|
41465
|
-
return new Promise2((
|
|
41541
|
+
return new Promise2((resolve5, reject) => {
|
|
41466
41542
|
let signal;
|
|
41467
41543
|
let end;
|
|
41468
41544
|
const lastArg = streams[streams.length - 1];
|
|
@@ -41477,7 +41553,7 @@ var require_promises2 = __commonJS({
|
|
|
41477
41553
|
if (err) {
|
|
41478
41554
|
reject(err);
|
|
41479
41555
|
} else {
|
|
41480
|
-
|
|
41556
|
+
resolve5(value);
|
|
41481
41557
|
}
|
|
41482
41558
|
},
|
|
41483
41559
|
{
|
|
@@ -41683,10 +41759,10 @@ var require_ours2 = __commonJS({
|
|
|
41683
41759
|
// ../../node_modules/archiver/lib/core.js
|
|
41684
41760
|
var require_core = __commonJS({
|
|
41685
41761
|
"../../node_modules/archiver/lib/core.js"(exports2, module2) {
|
|
41686
|
-
var
|
|
41762
|
+
var fs12 = require("fs");
|
|
41687
41763
|
var glob = require_readdir_glob();
|
|
41688
41764
|
var async = require_async7();
|
|
41689
|
-
var
|
|
41765
|
+
var path12 = require("path");
|
|
41690
41766
|
var util = require_archiver_utils();
|
|
41691
41767
|
var inherits = require("util").inherits;
|
|
41692
41768
|
var ArchiverError = require_error2();
|
|
@@ -41747,7 +41823,7 @@ var require_core = __commonJS({
|
|
|
41747
41823
|
data2.sourcePath = filepath;
|
|
41748
41824
|
task.data = data2;
|
|
41749
41825
|
this._entriesCount++;
|
|
41750
|
-
if (data2.stats && data2.stats instanceof
|
|
41826
|
+
if (data2.stats && data2.stats instanceof fs12.Stats) {
|
|
41751
41827
|
task = this._updateQueueTaskWithStats(task, data2.stats);
|
|
41752
41828
|
if (task) {
|
|
41753
41829
|
if (data2.stats.size) {
|
|
@@ -41918,7 +41994,7 @@ var require_core = __commonJS({
|
|
|
41918
41994
|
callback();
|
|
41919
41995
|
return;
|
|
41920
41996
|
}
|
|
41921
|
-
|
|
41997
|
+
fs12.lstat(task.filepath, function(err, stats) {
|
|
41922
41998
|
if (this._state.aborted) {
|
|
41923
41999
|
setImmediate(callback);
|
|
41924
42000
|
return;
|
|
@@ -41961,10 +42037,10 @@ var require_core = __commonJS({
|
|
|
41961
42037
|
task.data.sourceType = "buffer";
|
|
41962
42038
|
task.source = Buffer.concat([]);
|
|
41963
42039
|
} else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
|
|
41964
|
-
var linkPath =
|
|
41965
|
-
var dirName =
|
|
42040
|
+
var linkPath = fs12.readlinkSync(task.filepath);
|
|
42041
|
+
var dirName = path12.dirname(task.filepath);
|
|
41966
42042
|
task.data.type = "symlink";
|
|
41967
|
-
task.data.linkname =
|
|
42043
|
+
task.data.linkname = path12.relative(dirName, path12.resolve(dirName, linkPath));
|
|
41968
42044
|
task.data.sourceType = "buffer";
|
|
41969
42045
|
task.source = Buffer.concat([]);
|
|
41970
42046
|
} else {
|
|
@@ -42144,11 +42220,11 @@ var require_core = __commonJS({
|
|
|
42144
42220
|
this._finalize();
|
|
42145
42221
|
}
|
|
42146
42222
|
var self2 = this;
|
|
42147
|
-
return new Promise(function(
|
|
42223
|
+
return new Promise(function(resolve5, reject) {
|
|
42148
42224
|
var errored;
|
|
42149
42225
|
self2._module.on("end", function() {
|
|
42150
42226
|
if (!errored) {
|
|
42151
|
-
|
|
42227
|
+
resolve5();
|
|
42152
42228
|
}
|
|
42153
42229
|
});
|
|
42154
42230
|
self2._module.on("error", function(err) {
|
|
@@ -43223,25 +43299,25 @@ var require_util5 = __commonJS({
|
|
|
43223
43299
|
};
|
|
43224
43300
|
},
|
|
43225
43301
|
createDeferredPromise: /* @__PURE__ */ __name(function() {
|
|
43226
|
-
let
|
|
43302
|
+
let resolve5;
|
|
43227
43303
|
let reject;
|
|
43228
43304
|
const promise = new Promise((res, rej) => {
|
|
43229
|
-
|
|
43305
|
+
resolve5 = res;
|
|
43230
43306
|
reject = rej;
|
|
43231
43307
|
});
|
|
43232
43308
|
return {
|
|
43233
43309
|
promise,
|
|
43234
|
-
resolve:
|
|
43310
|
+
resolve: resolve5,
|
|
43235
43311
|
reject
|
|
43236
43312
|
};
|
|
43237
43313
|
}, "createDeferredPromise"),
|
|
43238
43314
|
promisify(fn) {
|
|
43239
|
-
return new Promise((
|
|
43315
|
+
return new Promise((resolve5, reject) => {
|
|
43240
43316
|
fn((err, ...args) => {
|
|
43241
43317
|
if (err) {
|
|
43242
43318
|
return reject(err);
|
|
43243
43319
|
}
|
|
43244
|
-
return
|
|
43320
|
+
return resolve5(...args);
|
|
43245
43321
|
});
|
|
43246
43322
|
});
|
|
43247
43323
|
},
|
|
@@ -44070,7 +44146,7 @@ var require_end_of_stream3 = __commonJS({
|
|
|
44070
44146
|
validateBoolean(opts.cleanup, "cleanup");
|
|
44071
44147
|
autoCleanup = opts.cleanup;
|
|
44072
44148
|
}
|
|
44073
|
-
return new Promise2((
|
|
44149
|
+
return new Promise2((resolve5, reject) => {
|
|
44074
44150
|
const cleanup = eos(stream, opts, (err) => {
|
|
44075
44151
|
if (autoCleanup) {
|
|
44076
44152
|
cleanup();
|
|
@@ -44078,7 +44154,7 @@ var require_end_of_stream3 = __commonJS({
|
|
|
44078
44154
|
if (err) {
|
|
44079
44155
|
reject(err);
|
|
44080
44156
|
} else {
|
|
44081
|
-
|
|
44157
|
+
resolve5();
|
|
44082
44158
|
}
|
|
44083
44159
|
});
|
|
44084
44160
|
});
|
|
@@ -44987,7 +45063,7 @@ var require_readable4 = __commonJS({
|
|
|
44987
45063
|
error2 = this.readableEnded ? null : new AbortError();
|
|
44988
45064
|
this.destroy(error2);
|
|
44989
45065
|
}
|
|
44990
|
-
return new Promise2((
|
|
45066
|
+
return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
|
|
44991
45067
|
};
|
|
44992
45068
|
Readable4.prototype.push = function(chunk, encoding) {
|
|
44993
45069
|
return readableAddChunk(this, chunk, encoding, false);
|
|
@@ -45556,12 +45632,12 @@ var require_readable4 = __commonJS({
|
|
|
45556
45632
|
__name(streamToAsyncIterator, "streamToAsyncIterator");
|
|
45557
45633
|
async function* createAsyncIterator(stream, options) {
|
|
45558
45634
|
let callback = nop;
|
|
45559
|
-
function next(
|
|
45635
|
+
function next(resolve5) {
|
|
45560
45636
|
if (this === stream) {
|
|
45561
45637
|
callback();
|
|
45562
45638
|
callback = nop;
|
|
45563
45639
|
} else {
|
|
45564
|
-
callback =
|
|
45640
|
+
callback = resolve5;
|
|
45565
45641
|
}
|
|
45566
45642
|
}
|
|
45567
45643
|
__name(next, "next");
|
|
@@ -46643,7 +46719,7 @@ var require_duplexify3 = __commonJS({
|
|
|
46643
46719
|
);
|
|
46644
46720
|
}, "duplexify");
|
|
46645
46721
|
function fromAsyncGen(fn) {
|
|
46646
|
-
let { promise, resolve:
|
|
46722
|
+
let { promise, resolve: resolve5 } = createDeferredPromise();
|
|
46647
46723
|
const ac = new AbortController2();
|
|
46648
46724
|
const signal = ac.signal;
|
|
46649
46725
|
const value = fn(
|
|
@@ -46658,7 +46734,7 @@ var require_duplexify3 = __commonJS({
|
|
|
46658
46734
|
throw new AbortError(void 0, {
|
|
46659
46735
|
cause: signal.reason
|
|
46660
46736
|
});
|
|
46661
|
-
({ promise, resolve:
|
|
46737
|
+
({ promise, resolve: resolve5 } = createDeferredPromise());
|
|
46662
46738
|
yield chunk;
|
|
46663
46739
|
}
|
|
46664
46740
|
})(),
|
|
@@ -46669,8 +46745,8 @@ var require_duplexify3 = __commonJS({
|
|
|
46669
46745
|
return {
|
|
46670
46746
|
value,
|
|
46671
46747
|
write(chunk, encoding, cb) {
|
|
46672
|
-
const _resolve =
|
|
46673
|
-
|
|
46748
|
+
const _resolve = resolve5;
|
|
46749
|
+
resolve5 = null;
|
|
46674
46750
|
_resolve({
|
|
46675
46751
|
chunk,
|
|
46676
46752
|
done: false,
|
|
@@ -46678,8 +46754,8 @@ var require_duplexify3 = __commonJS({
|
|
|
46678
46754
|
});
|
|
46679
46755
|
},
|
|
46680
46756
|
final(cb) {
|
|
46681
|
-
const _resolve =
|
|
46682
|
-
|
|
46757
|
+
const _resolve = resolve5;
|
|
46758
|
+
resolve5 = null;
|
|
46683
46759
|
_resolve({
|
|
46684
46760
|
done: true,
|
|
46685
46761
|
cb
|
|
@@ -47143,7 +47219,7 @@ var require_pipeline3 = __commonJS({
|
|
|
47143
47219
|
callback();
|
|
47144
47220
|
}
|
|
47145
47221
|
}, "resume");
|
|
47146
|
-
const wait = /* @__PURE__ */ __name(() => new Promise2((
|
|
47222
|
+
const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
|
|
47147
47223
|
if (error2) {
|
|
47148
47224
|
reject(error2);
|
|
47149
47225
|
} else {
|
|
@@ -47151,7 +47227,7 @@ var require_pipeline3 = __commonJS({
|
|
|
47151
47227
|
if (error2) {
|
|
47152
47228
|
reject(error2);
|
|
47153
47229
|
} else {
|
|
47154
|
-
|
|
47230
|
+
resolve5();
|
|
47155
47231
|
}
|
|
47156
47232
|
}, "onresolve");
|
|
47157
47233
|
}
|
|
@@ -47810,8 +47886,8 @@ var require_operators3 = __commonJS({
|
|
|
47810
47886
|
next = null;
|
|
47811
47887
|
}
|
|
47812
47888
|
if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
|
|
47813
|
-
await new Promise2((
|
|
47814
|
-
resume =
|
|
47889
|
+
await new Promise2((resolve5) => {
|
|
47890
|
+
resume = resolve5;
|
|
47815
47891
|
});
|
|
47816
47892
|
}
|
|
47817
47893
|
}
|
|
@@ -47846,8 +47922,8 @@ var require_operators3 = __commonJS({
|
|
|
47846
47922
|
queue.shift();
|
|
47847
47923
|
maybeResume();
|
|
47848
47924
|
}
|
|
47849
|
-
await new Promise2((
|
|
47850
|
-
next =
|
|
47925
|
+
await new Promise2((resolve5) => {
|
|
47926
|
+
next = resolve5;
|
|
47851
47927
|
});
|
|
47852
47928
|
}
|
|
47853
47929
|
} finally {
|
|
@@ -48123,7 +48199,7 @@ var require_promises3 = __commonJS({
|
|
|
48123
48199
|
var { finished } = require_end_of_stream3();
|
|
48124
48200
|
require_stream8();
|
|
48125
48201
|
function pipeline(...streams) {
|
|
48126
|
-
return new Promise2((
|
|
48202
|
+
return new Promise2((resolve5, reject) => {
|
|
48127
48203
|
let signal;
|
|
48128
48204
|
let end;
|
|
48129
48205
|
const lastArg = streams[streams.length - 1];
|
|
@@ -48138,7 +48214,7 @@ var require_promises3 = __commonJS({
|
|
|
48138
48214
|
if (err) {
|
|
48139
48215
|
reject(err);
|
|
48140
48216
|
} else {
|
|
48141
|
-
|
|
48217
|
+
resolve5(value);
|
|
48142
48218
|
}
|
|
48143
48219
|
},
|
|
48144
48220
|
{
|
|
@@ -49103,25 +49179,25 @@ var require_util7 = __commonJS({
|
|
|
49103
49179
|
};
|
|
49104
49180
|
},
|
|
49105
49181
|
createDeferredPromise: /* @__PURE__ */ __name(function() {
|
|
49106
|
-
let
|
|
49182
|
+
let resolve5;
|
|
49107
49183
|
let reject;
|
|
49108
49184
|
const promise = new Promise((res, rej) => {
|
|
49109
|
-
|
|
49185
|
+
resolve5 = res;
|
|
49110
49186
|
reject = rej;
|
|
49111
49187
|
});
|
|
49112
49188
|
return {
|
|
49113
49189
|
promise,
|
|
49114
|
-
resolve:
|
|
49190
|
+
resolve: resolve5,
|
|
49115
49191
|
reject
|
|
49116
49192
|
};
|
|
49117
49193
|
}, "createDeferredPromise"),
|
|
49118
49194
|
promisify(fn) {
|
|
49119
|
-
return new Promise((
|
|
49195
|
+
return new Promise((resolve5, reject) => {
|
|
49120
49196
|
fn((err, ...args) => {
|
|
49121
49197
|
if (err) {
|
|
49122
49198
|
return reject(err);
|
|
49123
49199
|
}
|
|
49124
|
-
return
|
|
49200
|
+
return resolve5(...args);
|
|
49125
49201
|
});
|
|
49126
49202
|
});
|
|
49127
49203
|
},
|
|
@@ -49950,7 +50026,7 @@ var require_end_of_stream4 = __commonJS({
|
|
|
49950
50026
|
validateBoolean(opts.cleanup, "cleanup");
|
|
49951
50027
|
autoCleanup = opts.cleanup;
|
|
49952
50028
|
}
|
|
49953
|
-
return new Promise2((
|
|
50029
|
+
return new Promise2((resolve5, reject) => {
|
|
49954
50030
|
const cleanup = eos(stream, opts, (err) => {
|
|
49955
50031
|
if (autoCleanup) {
|
|
49956
50032
|
cleanup();
|
|
@@ -49958,7 +50034,7 @@ var require_end_of_stream4 = __commonJS({
|
|
|
49958
50034
|
if (err) {
|
|
49959
50035
|
reject(err);
|
|
49960
50036
|
} else {
|
|
49961
|
-
|
|
50037
|
+
resolve5();
|
|
49962
50038
|
}
|
|
49963
50039
|
});
|
|
49964
50040
|
});
|
|
@@ -50867,7 +50943,7 @@ var require_readable5 = __commonJS({
|
|
|
50867
50943
|
error2 = this.readableEnded ? null : new AbortError();
|
|
50868
50944
|
this.destroy(error2);
|
|
50869
50945
|
}
|
|
50870
|
-
return new Promise2((
|
|
50946
|
+
return new Promise2((resolve5, reject) => eos(this, (err) => err && err !== error2 ? reject(err) : resolve5(null)));
|
|
50871
50947
|
};
|
|
50872
50948
|
Readable4.prototype.push = function(chunk, encoding) {
|
|
50873
50949
|
return readableAddChunk(this, chunk, encoding, false);
|
|
@@ -51436,12 +51512,12 @@ var require_readable5 = __commonJS({
|
|
|
51436
51512
|
__name(streamToAsyncIterator, "streamToAsyncIterator");
|
|
51437
51513
|
async function* createAsyncIterator(stream, options) {
|
|
51438
51514
|
let callback = nop;
|
|
51439
|
-
function next(
|
|
51515
|
+
function next(resolve5) {
|
|
51440
51516
|
if (this === stream) {
|
|
51441
51517
|
callback();
|
|
51442
51518
|
callback = nop;
|
|
51443
51519
|
} else {
|
|
51444
|
-
callback =
|
|
51520
|
+
callback = resolve5;
|
|
51445
51521
|
}
|
|
51446
51522
|
}
|
|
51447
51523
|
__name(next, "next");
|
|
@@ -52523,7 +52599,7 @@ var require_duplexify4 = __commonJS({
|
|
|
52523
52599
|
);
|
|
52524
52600
|
}, "duplexify");
|
|
52525
52601
|
function fromAsyncGen(fn) {
|
|
52526
|
-
let { promise, resolve:
|
|
52602
|
+
let { promise, resolve: resolve5 } = createDeferredPromise();
|
|
52527
52603
|
const ac = new AbortController2();
|
|
52528
52604
|
const signal = ac.signal;
|
|
52529
52605
|
const value = fn(
|
|
@@ -52538,7 +52614,7 @@ var require_duplexify4 = __commonJS({
|
|
|
52538
52614
|
throw new AbortError(void 0, {
|
|
52539
52615
|
cause: signal.reason
|
|
52540
52616
|
});
|
|
52541
|
-
({ promise, resolve:
|
|
52617
|
+
({ promise, resolve: resolve5 } = createDeferredPromise());
|
|
52542
52618
|
yield chunk;
|
|
52543
52619
|
}
|
|
52544
52620
|
})(),
|
|
@@ -52549,8 +52625,8 @@ var require_duplexify4 = __commonJS({
|
|
|
52549
52625
|
return {
|
|
52550
52626
|
value,
|
|
52551
52627
|
write(chunk, encoding, cb) {
|
|
52552
|
-
const _resolve =
|
|
52553
|
-
|
|
52628
|
+
const _resolve = resolve5;
|
|
52629
|
+
resolve5 = null;
|
|
52554
52630
|
_resolve({
|
|
52555
52631
|
chunk,
|
|
52556
52632
|
done: false,
|
|
@@ -52558,8 +52634,8 @@ var require_duplexify4 = __commonJS({
|
|
|
52558
52634
|
});
|
|
52559
52635
|
},
|
|
52560
52636
|
final(cb) {
|
|
52561
|
-
const _resolve =
|
|
52562
|
-
|
|
52637
|
+
const _resolve = resolve5;
|
|
52638
|
+
resolve5 = null;
|
|
52563
52639
|
_resolve({
|
|
52564
52640
|
done: true,
|
|
52565
52641
|
cb
|
|
@@ -53023,7 +53099,7 @@ var require_pipeline4 = __commonJS({
|
|
|
53023
53099
|
callback();
|
|
53024
53100
|
}
|
|
53025
53101
|
}, "resume");
|
|
53026
|
-
const wait = /* @__PURE__ */ __name(() => new Promise2((
|
|
53102
|
+
const wait = /* @__PURE__ */ __name(() => new Promise2((resolve5, reject) => {
|
|
53027
53103
|
if (error2) {
|
|
53028
53104
|
reject(error2);
|
|
53029
53105
|
} else {
|
|
@@ -53031,7 +53107,7 @@ var require_pipeline4 = __commonJS({
|
|
|
53031
53107
|
if (error2) {
|
|
53032
53108
|
reject(error2);
|
|
53033
53109
|
} else {
|
|
53034
|
-
|
|
53110
|
+
resolve5();
|
|
53035
53111
|
}
|
|
53036
53112
|
}, "onresolve");
|
|
53037
53113
|
}
|
|
@@ -53690,8 +53766,8 @@ var require_operators4 = __commonJS({
|
|
|
53690
53766
|
next = null;
|
|
53691
53767
|
}
|
|
53692
53768
|
if (!done && (queue.length >= highWaterMark || cnt >= concurrency)) {
|
|
53693
|
-
await new Promise2((
|
|
53694
|
-
resume =
|
|
53769
|
+
await new Promise2((resolve5) => {
|
|
53770
|
+
resume = resolve5;
|
|
53695
53771
|
});
|
|
53696
53772
|
}
|
|
53697
53773
|
}
|
|
@@ -53726,8 +53802,8 @@ var require_operators4 = __commonJS({
|
|
|
53726
53802
|
queue.shift();
|
|
53727
53803
|
maybeResume();
|
|
53728
53804
|
}
|
|
53729
|
-
await new Promise2((
|
|
53730
|
-
next =
|
|
53805
|
+
await new Promise2((resolve5) => {
|
|
53806
|
+
next = resolve5;
|
|
53731
53807
|
});
|
|
53732
53808
|
}
|
|
53733
53809
|
} finally {
|
|
@@ -54003,7 +54079,7 @@ var require_promises4 = __commonJS({
|
|
|
54003
54079
|
var { finished } = require_end_of_stream4();
|
|
54004
54080
|
require_stream9();
|
|
54005
54081
|
function pipeline(...streams) {
|
|
54006
|
-
return new Promise2((
|
|
54082
|
+
return new Promise2((resolve5, reject) => {
|
|
54007
54083
|
let signal;
|
|
54008
54084
|
let end;
|
|
54009
54085
|
const lastArg = streams[streams.length - 1];
|
|
@@ -54018,7 +54094,7 @@ var require_promises4 = __commonJS({
|
|
|
54018
54094
|
if (err) {
|
|
54019
54095
|
reject(err);
|
|
54020
54096
|
} else {
|
|
54021
|
-
|
|
54097
|
+
resolve5(value);
|
|
54022
54098
|
}
|
|
54023
54099
|
},
|
|
54024
54100
|
{
|
|
@@ -55999,8 +56075,8 @@ var require_streamx = __commonJS({
|
|
|
55999
56075
|
return this;
|
|
56000
56076
|
},
|
|
56001
56077
|
next() {
|
|
56002
|
-
return new Promise(function(
|
|
56003
|
-
promiseResolve =
|
|
56078
|
+
return new Promise(function(resolve5, reject) {
|
|
56079
|
+
promiseResolve = resolve5;
|
|
56004
56080
|
promiseReject = reject;
|
|
56005
56081
|
const data2 = stream.read();
|
|
56006
56082
|
if (data2 !== null) ondata(data2);
|
|
@@ -56033,11 +56109,11 @@ var require_streamx = __commonJS({
|
|
|
56033
56109
|
__name(ondata, "ondata");
|
|
56034
56110
|
function destroy(err) {
|
|
56035
56111
|
stream.destroy(err);
|
|
56036
|
-
return new Promise((
|
|
56037
|
-
if (stream._duplexState & DESTROYED) return
|
|
56112
|
+
return new Promise((resolve5, reject) => {
|
|
56113
|
+
if (stream._duplexState & DESTROYED) return resolve5({ value: void 0, done: true });
|
|
56038
56114
|
stream.once("close", function() {
|
|
56039
56115
|
if (err) reject(err);
|
|
56040
|
-
else
|
|
56116
|
+
else resolve5({ value: void 0, done: true });
|
|
56041
56117
|
});
|
|
56042
56118
|
});
|
|
56043
56119
|
}
|
|
@@ -56085,8 +56161,8 @@ var require_streamx = __commonJS({
|
|
|
56085
56161
|
const writes = pending + (ws._duplexState & WRITE_WRITING ? 1 : 0);
|
|
56086
56162
|
if (writes === 0) return Promise.resolve(true);
|
|
56087
56163
|
if (state8.drains === null) state8.drains = [];
|
|
56088
|
-
return new Promise((
|
|
56089
|
-
state8.drains.push({ writes, resolve:
|
|
56164
|
+
return new Promise((resolve5) => {
|
|
56165
|
+
state8.drains.push({ writes, resolve: resolve5 });
|
|
56090
56166
|
});
|
|
56091
56167
|
}
|
|
56092
56168
|
write(data2) {
|
|
@@ -56201,10 +56277,10 @@ var require_streamx = __commonJS({
|
|
|
56201
56277
|
}
|
|
56202
56278
|
__name(transformAfterFlush, "transformAfterFlush");
|
|
56203
56279
|
function pipelinePromise(...streams) {
|
|
56204
|
-
return new Promise((
|
|
56280
|
+
return new Promise((resolve5, reject) => {
|
|
56205
56281
|
return pipeline(...streams, (err) => {
|
|
56206
56282
|
if (err) return reject(err);
|
|
56207
|
-
|
|
56283
|
+
resolve5();
|
|
56208
56284
|
});
|
|
56209
56285
|
});
|
|
56210
56286
|
}
|
|
@@ -56903,16 +56979,16 @@ var require_extract = __commonJS({
|
|
|
56903
56979
|
cb(err);
|
|
56904
56980
|
}
|
|
56905
56981
|
__name(consumeCallback, "consumeCallback");
|
|
56906
|
-
function onnext(
|
|
56982
|
+
function onnext(resolve5, reject) {
|
|
56907
56983
|
if (error2) {
|
|
56908
56984
|
return reject(error2);
|
|
56909
56985
|
}
|
|
56910
56986
|
if (entryStream) {
|
|
56911
|
-
|
|
56987
|
+
resolve5({ value: entryStream, done: false });
|
|
56912
56988
|
entryStream = null;
|
|
56913
56989
|
return;
|
|
56914
56990
|
}
|
|
56915
|
-
promiseResolve =
|
|
56991
|
+
promiseResolve = resolve5;
|
|
56916
56992
|
promiseReject = reject;
|
|
56917
56993
|
consumeCallback(null);
|
|
56918
56994
|
if (extract._finished && promiseResolve) {
|
|
@@ -56943,11 +57019,11 @@ var require_extract = __commonJS({
|
|
|
56943
57019
|
function destroy(err) {
|
|
56944
57020
|
extract.destroy(err);
|
|
56945
57021
|
consumeCallback(err);
|
|
56946
|
-
return new Promise((
|
|
56947
|
-
if (extract.destroyed) return
|
|
57022
|
+
return new Promise((resolve5, reject) => {
|
|
57023
|
+
if (extract.destroyed) return resolve5({ value: void 0, done: true });
|
|
56948
57024
|
extract.once("close", function() {
|
|
56949
57025
|
if (err) reject(err);
|
|
56950
|
-
else
|
|
57026
|
+
else resolve5({ value: void 0, done: true });
|
|
56951
57027
|
});
|
|
56952
57028
|
});
|
|
56953
57029
|
}
|
|
@@ -57730,98 +57806,109 @@ var require_archiver = __commonJS({
|
|
|
57730
57806
|
}
|
|
57731
57807
|
});
|
|
57732
57808
|
|
|
57733
|
-
// ../@aws-cdk/
|
|
57734
|
-
|
|
57735
|
-
|
|
57736
|
-
|
|
57737
|
-
|
|
57738
|
-
|
|
57739
|
-
|
|
57740
|
-
|
|
57741
|
-
|
|
57742
|
-
|
|
57743
|
-
|
|
57744
|
-
|
|
57745
|
-
|
|
57746
|
-
}
|
|
57747
|
-
|
|
57748
|
-
|
|
57749
|
-
|
|
57750
|
-
|
|
57751
|
-
|
|
57752
|
-
|
|
57753
|
-
|
|
57754
|
-
|
|
57755
|
-
|
|
57756
|
-
|
|
57757
|
-
|
|
57758
|
-
|
|
57759
|
-
|
|
57760
|
-
|
|
57761
|
-
|
|
57809
|
+
// ../@aws-cdk/private-tools/lib/zip/index.js
|
|
57810
|
+
var require_zip2 = __commonJS({
|
|
57811
|
+
"../@aws-cdk/private-tools/lib/zip/index.js"(exports2) {
|
|
57812
|
+
"use strict";
|
|
57813
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
57814
|
+
exports2.zipDirectory = zipDirectory2;
|
|
57815
|
+
exports2.zipString = zipString;
|
|
57816
|
+
var fs_1 = require("fs");
|
|
57817
|
+
var path12 = require("path");
|
|
57818
|
+
var stream_1 = require("stream");
|
|
57819
|
+
var fast_glob_1 = require_out4();
|
|
57820
|
+
var archiver = require_archiver();
|
|
57821
|
+
async function zipDirectory2(directory, outputFile, eventEmitter = () => {
|
|
57822
|
+
}) {
|
|
57823
|
+
const temporaryOutputFile = `${outputFile}.${randomString()}._tmp`;
|
|
57824
|
+
await writeZipFile(directory, temporaryOutputFile);
|
|
57825
|
+
await moveIntoPlace(temporaryOutputFile, outputFile, eventEmitter);
|
|
57826
|
+
}
|
|
57827
|
+
__name(zipDirectory2, "zipDirectory");
|
|
57828
|
+
function zipString(fileName, rawString) {
|
|
57829
|
+
return new Promise((resolve5, reject) => {
|
|
57830
|
+
const buffers = [];
|
|
57831
|
+
const converter = new stream_1.Writable();
|
|
57832
|
+
converter._write = (chunk, _2, callback) => {
|
|
57833
|
+
buffers.push(chunk);
|
|
57834
|
+
process.nextTick(callback);
|
|
57835
|
+
};
|
|
57836
|
+
converter.on("finish", () => resolve5(Buffer.concat(buffers)));
|
|
57837
|
+
const archive = archiver("zip");
|
|
57838
|
+
archive.on("error", reject);
|
|
57839
|
+
archive.pipe(converter);
|
|
57840
|
+
archive.append(rawString, {
|
|
57841
|
+
name: fileName,
|
|
57842
|
+
date: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z")
|
|
57843
|
+
});
|
|
57844
|
+
void archive.finalize();
|
|
57762
57845
|
});
|
|
57763
57846
|
}
|
|
57764
|
-
|
|
57765
|
-
|
|
57766
|
-
|
|
57767
|
-
|
|
57768
|
-
|
|
57769
|
-
|
|
57770
|
-
|
|
57771
|
-
|
|
57772
|
-
|
|
57773
|
-
|
|
57774
|
-
|
|
57775
|
-
|
|
57776
|
-
|
|
57777
|
-
|
|
57778
|
-
|
|
57779
|
-
|
|
57780
|
-
|
|
57847
|
+
__name(zipString, "zipString");
|
|
57848
|
+
function writeZipFile(directory, outputFile) {
|
|
57849
|
+
return new Promise(async (ok, fail) => {
|
|
57850
|
+
const globOptions = {
|
|
57851
|
+
dot: true,
|
|
57852
|
+
onlyFiles: true,
|
|
57853
|
+
followSymbolicLinks: true,
|
|
57854
|
+
cwd: directory
|
|
57855
|
+
};
|
|
57856
|
+
const files = (0, fast_glob_1.globSync)("**", globOptions);
|
|
57857
|
+
const output = (0, fs_1.createWriteStream)(outputFile);
|
|
57858
|
+
const archive = archiver("zip");
|
|
57859
|
+
archive.on("warning", fail);
|
|
57860
|
+
archive.on("error", fail);
|
|
57861
|
+
output.once("close", ok);
|
|
57862
|
+
archive.pipe(output);
|
|
57863
|
+
for (const file of files) {
|
|
57864
|
+
const fullPath = path12.resolve(directory, file);
|
|
57865
|
+
const [data2, stat] = await Promise.all([fs_1.promises.readFile(fullPath), fs_1.promises.stat(fullPath)]);
|
|
57866
|
+
archive.append(data2, {
|
|
57867
|
+
name: file,
|
|
57868
|
+
date: /* @__PURE__ */ new Date("1980-01-01T00:00:00.000Z"),
|
|
57869
|
+
// reset dates to get the same hash for the same content
|
|
57870
|
+
mode: stat.mode
|
|
57871
|
+
});
|
|
57872
|
+
}
|
|
57873
|
+
await archive.finalize();
|
|
57874
|
+
});
|
|
57781
57875
|
}
|
|
57782
|
-
}
|
|
57783
|
-
}
|
|
57784
|
-
function sleep(ms) {
|
|
57785
|
-
return new Promise((ok) => setTimeout(ok, ms));
|
|
57786
|
-
}
|
|
57787
|
-
function randomString() {
|
|
57788
|
-
return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
|
|
57789
|
-
}
|
|
57790
|
-
var import_fs, path9, import_fast_glob, archiver;
|
|
57791
|
-
var init_archive = __esm({
|
|
57792
|
-
"../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
|
|
57793
|
-
"use strict";
|
|
57794
|
-
import_fs = require("fs");
|
|
57795
|
-
path9 = __toESM(require("path"));
|
|
57796
|
-
import_fast_glob = __toESM(require_out4());
|
|
57797
|
-
archiver = require_archiver();
|
|
57798
|
-
__name(zipDirectory, "zipDirectory");
|
|
57799
57876
|
__name(writeZipFile, "writeZipFile");
|
|
57877
|
+
async function moveIntoPlace(source, target, eventEmitter) {
|
|
57878
|
+
let delay = 100;
|
|
57879
|
+
let attempts = 5;
|
|
57880
|
+
while (true) {
|
|
57881
|
+
try {
|
|
57882
|
+
await fs_1.promises.rename(source, target);
|
|
57883
|
+
return;
|
|
57884
|
+
} catch (e16) {
|
|
57885
|
+
if (e16.code !== "EPERM" || attempts-- <= 0) {
|
|
57886
|
+
throw e16;
|
|
57887
|
+
}
|
|
57888
|
+
eventEmitter(e16.message);
|
|
57889
|
+
await sleep(Math.floor(Math.random() * delay));
|
|
57890
|
+
delay *= 2;
|
|
57891
|
+
}
|
|
57892
|
+
}
|
|
57893
|
+
}
|
|
57800
57894
|
__name(moveIntoPlace, "moveIntoPlace");
|
|
57895
|
+
function sleep(ms) {
|
|
57896
|
+
return new Promise((ok) => setTimeout(ok, ms));
|
|
57897
|
+
}
|
|
57801
57898
|
__name(sleep, "sleep");
|
|
57899
|
+
function randomString() {
|
|
57900
|
+
return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
|
|
57901
|
+
}
|
|
57802
57902
|
__name(randomString, "randomString");
|
|
57803
57903
|
}
|
|
57804
57904
|
});
|
|
57805
57905
|
|
|
57806
|
-
// ../@aws-cdk/cdk-assets-lib/lib/private/
|
|
57807
|
-
|
|
57808
|
-
|
|
57809
|
-
|
|
57810
|
-
return true;
|
|
57811
|
-
} catch (e16) {
|
|
57812
|
-
if (e16.code !== "ENOENT") {
|
|
57813
|
-
throw e16;
|
|
57814
|
-
}
|
|
57815
|
-
return false;
|
|
57816
|
-
}
|
|
57817
|
-
}
|
|
57818
|
-
var fs9, pfs;
|
|
57819
|
-
var init_fs_extra = __esm({
|
|
57820
|
-
"../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
|
|
57906
|
+
// ../@aws-cdk/cdk-assets-lib/lib/private/tools.ts
|
|
57907
|
+
var tools_exports = {};
|
|
57908
|
+
var init_tools = __esm({
|
|
57909
|
+
"../@aws-cdk/cdk-assets-lib/lib/private/tools.ts"() {
|
|
57821
57910
|
"use strict";
|
|
57822
|
-
|
|
57823
|
-
pfs = fs9.promises;
|
|
57824
|
-
__name(pathExists, "pathExists");
|
|
57911
|
+
__reExport(tools_exports, __toESM(require_zip2()));
|
|
57825
57912
|
}
|
|
57826
57913
|
});
|
|
57827
57914
|
|
|
@@ -57844,27 +57931,27 @@ async function cached(cache16, key, factory) {
|
|
|
57844
57931
|
cache16.set(key, fresh);
|
|
57845
57932
|
return fresh;
|
|
57846
57933
|
}
|
|
57847
|
-
var
|
|
57934
|
+
var import_fs, path9, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
|
|
57848
57935
|
var init_files = __esm({
|
|
57849
57936
|
"../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
|
|
57850
57937
|
"use strict";
|
|
57851
|
-
|
|
57852
|
-
|
|
57938
|
+
import_fs = require("fs");
|
|
57939
|
+
path9 = __toESM(require("path"));
|
|
57853
57940
|
import_cloud_assembly_schema = __toESM(require_lib2());
|
|
57854
57941
|
mime = __toESM(require_mime());
|
|
57855
57942
|
init_client_options();
|
|
57856
57943
|
init_progress();
|
|
57857
|
-
init_archive();
|
|
57858
57944
|
init_fs_extra();
|
|
57859
57945
|
init_placeholders2();
|
|
57860
57946
|
init_shell();
|
|
57947
|
+
init_tools();
|
|
57861
57948
|
EMPTY_ZIP_FILE_SIZE = 22;
|
|
57862
57949
|
FileAssetHandler = class {
|
|
57863
57950
|
constructor(workDir, asset, host) {
|
|
57864
57951
|
this.workDir = workDir;
|
|
57865
57952
|
this.asset = asset;
|
|
57866
57953
|
this.host = host;
|
|
57867
|
-
this.fileCacheRoot =
|
|
57954
|
+
this.fileCacheRoot = path9.join(workDir, ".cache");
|
|
57868
57955
|
}
|
|
57869
57956
|
static {
|
|
57870
57957
|
__name(this, "FileAssetHandler");
|
|
@@ -57975,7 +58062,7 @@ var init_files = __esm({
|
|
|
57975
58062
|
{
|
|
57976
58063
|
Bucket: destination.bucketName,
|
|
57977
58064
|
Key: destination.objectKey,
|
|
57978
|
-
Body: (0,
|
|
58065
|
+
Body: (0, import_fs.createReadStream)(publishFile.packagedPath),
|
|
57979
58066
|
ContentType: publishFile.contentType,
|
|
57980
58067
|
ChecksumAlgorithm: "SHA256"
|
|
57981
58068
|
},
|
|
@@ -57989,17 +58076,17 @@ var init_files = __esm({
|
|
|
57989
58076
|
`'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
|
|
57990
58077
|
);
|
|
57991
58078
|
}
|
|
57992
|
-
const fullPath =
|
|
58079
|
+
const fullPath = path9.resolve(this.workDir, source.path);
|
|
57993
58080
|
if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
|
|
57994
58081
|
const contentType = "application/zip";
|
|
57995
|
-
await
|
|
57996
|
-
const packagedPath =
|
|
58082
|
+
await import_fs.promises.mkdir(this.fileCacheRoot, { recursive: true });
|
|
58083
|
+
const packagedPath = path9.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
|
|
57997
58084
|
if (await pathExists(packagedPath)) {
|
|
57998
58085
|
this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
|
|
57999
58086
|
return { packagedPath, contentType };
|
|
58000
58087
|
}
|
|
58001
58088
|
this.host.emitMessage("build" /* BUILD */, `Zip ${fullPath} -> ${packagedPath}`);
|
|
58002
|
-
await zipDirectory(fullPath, packagedPath, (m10) => this.host.emitMessage("debug" /* DEBUG */, m10));
|
|
58089
|
+
await (0, tools_exports.zipDirectory)(fullPath, packagedPath, (m10) => this.host.emitMessage("debug" /* DEBUG */, m10));
|
|
58003
58090
|
return { packagedPath, contentType };
|
|
58004
58091
|
} else {
|
|
58005
58092
|
const contentType = mime.getType(fullPath) ?? "application/octet-stream";
|
|
@@ -58134,12 +58221,12 @@ function prefixTreeChars(xs, prefix = "") {
|
|
|
58134
58221
|
}
|
|
58135
58222
|
return ret;
|
|
58136
58223
|
}
|
|
58137
|
-
var
|
|
58224
|
+
var fs10, path10, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
|
|
58138
58225
|
var init_asset_manifest = __esm({
|
|
58139
58226
|
"../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
|
|
58140
58227
|
"use strict";
|
|
58141
|
-
|
|
58142
|
-
|
|
58228
|
+
fs10 = __toESM(require("fs"));
|
|
58229
|
+
path10 = __toESM(require("path"));
|
|
58143
58230
|
import_cloud_assembly_schema2 = __toESM(require_lib2());
|
|
58144
58231
|
AssetManifest = class _AssetManifest {
|
|
58145
58232
|
constructor(directory, manifest) {
|
|
@@ -58161,7 +58248,7 @@ var init_asset_manifest = __esm({
|
|
|
58161
58248
|
static fromFile(fileName) {
|
|
58162
58249
|
try {
|
|
58163
58250
|
const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
|
|
58164
|
-
return new _AssetManifest(
|
|
58251
|
+
return new _AssetManifest(path10.dirname(fileName), obj);
|
|
58165
58252
|
} catch (e16) {
|
|
58166
58253
|
throw new Error(`Cannot read asset manifest '${fileName}': ${e16.message}`);
|
|
58167
58254
|
}
|
|
@@ -58174,12 +58261,12 @@ var init_asset_manifest = __esm({
|
|
|
58174
58261
|
static fromPath(filePath) {
|
|
58175
58262
|
let st;
|
|
58176
58263
|
try {
|
|
58177
|
-
st =
|
|
58264
|
+
st = fs10.statSync(filePath);
|
|
58178
58265
|
} catch (e16) {
|
|
58179
58266
|
throw new Error(`Cannot read asset manifest at '${filePath}': ${e16.message}`);
|
|
58180
58267
|
}
|
|
58181
58268
|
if (st.isDirectory()) {
|
|
58182
|
-
return _AssetManifest.fromFile(
|
|
58269
|
+
return _AssetManifest.fromFile(path10.join(filePath, _AssetManifest.DEFAULT_FILENAME));
|
|
58183
58270
|
}
|
|
58184
58271
|
return _AssetManifest.fromFile(filePath);
|
|
58185
58272
|
}
|
|
@@ -58383,12 +58470,12 @@ function pLimit(concurrency) {
|
|
|
58383
58470
|
let stopped = false;
|
|
58384
58471
|
function dispatch() {
|
|
58385
58472
|
if (activeCount < concurrency && queue.length > 0) {
|
|
58386
|
-
const [fac,
|
|
58473
|
+
const [fac, resolve5, reject] = queue.shift();
|
|
58387
58474
|
activeCount++;
|
|
58388
58475
|
fac().then(
|
|
58389
58476
|
(r16) => {
|
|
58390
58477
|
resumeNext();
|
|
58391
|
-
|
|
58478
|
+
resolve5(r16);
|
|
58392
58479
|
},
|
|
58393
58480
|
(e16) => {
|
|
58394
58481
|
resumeNext();
|
|
@@ -58410,8 +58497,8 @@ function pLimit(concurrency) {
|
|
|
58410
58497
|
}
|
|
58411
58498
|
__name(resumeNext, "resumeNext");
|
|
58412
58499
|
const ret = /* @__PURE__ */ __name((promiseFactory) => {
|
|
58413
|
-
return new Promise((
|
|
58414
|
-
queue.push([promiseFactory,
|
|
58500
|
+
return new Promise((resolve5, reject) => {
|
|
58501
|
+
queue.push([promiseFactory, resolve5, reject]);
|
|
58415
58502
|
dispatch();
|
|
58416
58503
|
});
|
|
58417
58504
|
}, "ret");
|
|
@@ -59446,9 +59533,9 @@ var init_createPaginator = __esm({
|
|
|
59446
59533
|
return await client.send(command, ...args);
|
|
59447
59534
|
}, "makePagedClientRequest");
|
|
59448
59535
|
__name(createPaginator, "createPaginator");
|
|
59449
|
-
get = /* @__PURE__ */ __name((fromObject,
|
|
59536
|
+
get = /* @__PURE__ */ __name((fromObject, path12) => {
|
|
59450
59537
|
let cursor2 = fromObject;
|
|
59451
|
-
const pathComponents =
|
|
59538
|
+
const pathComponents = path12.split(".");
|
|
59452
59539
|
for (const step of pathComponents) {
|
|
59453
59540
|
if (!cursor2 || typeof cursor2 !== "object") {
|
|
59454
59541
|
return void 0;
|
|
@@ -60121,7 +60208,7 @@ var require_headStream = __commonJS({
|
|
|
60121
60208
|
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
60122
60209
|
return (0, headStream_browser_1.headStream)(stream, bytes);
|
|
60123
60210
|
}
|
|
60124
|
-
return new Promise((
|
|
60211
|
+
return new Promise((resolve5, reject) => {
|
|
60125
60212
|
const collector = new Collector2();
|
|
60126
60213
|
collector.limit = bytes;
|
|
60127
60214
|
stream.pipe(collector);
|
|
@@ -60132,7 +60219,7 @@ var require_headStream = __commonJS({
|
|
|
60132
60219
|
collector.on("error", reject);
|
|
60133
60220
|
collector.on("finish", function() {
|
|
60134
60221
|
const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
|
|
60135
|
-
|
|
60222
|
+
resolve5(bytes2);
|
|
60136
60223
|
});
|
|
60137
60224
|
});
|
|
60138
60225
|
}, "headStream");
|
|
@@ -60341,21 +60428,21 @@ var require_dist_cjs13 = __commonJS({
|
|
|
60341
60428
|
let sendBody = true;
|
|
60342
60429
|
if (!externalAgent && expect === "100-continue") {
|
|
60343
60430
|
sendBody = await Promise.race([
|
|
60344
|
-
new Promise((
|
|
60345
|
-
timeoutId = Number(timing.setTimeout(() =>
|
|
60431
|
+
new Promise((resolve5) => {
|
|
60432
|
+
timeoutId = Number(timing.setTimeout(() => resolve5(true), Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs)));
|
|
60346
60433
|
}),
|
|
60347
|
-
new Promise((
|
|
60434
|
+
new Promise((resolve5) => {
|
|
60348
60435
|
httpRequest.on("continue", () => {
|
|
60349
60436
|
timing.clearTimeout(timeoutId);
|
|
60350
|
-
|
|
60437
|
+
resolve5(true);
|
|
60351
60438
|
});
|
|
60352
60439
|
httpRequest.on("response", () => {
|
|
60353
60440
|
timing.clearTimeout(timeoutId);
|
|
60354
|
-
|
|
60441
|
+
resolve5(false);
|
|
60355
60442
|
});
|
|
60356
60443
|
httpRequest.on("error", () => {
|
|
60357
60444
|
timing.clearTimeout(timeoutId);
|
|
60358
|
-
|
|
60445
|
+
resolve5(false);
|
|
60359
60446
|
});
|
|
60360
60447
|
})
|
|
60361
60448
|
]);
|
|
@@ -60434,13 +60521,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60434
60521
|
return socketWarningTimestamp;
|
|
60435
60522
|
}
|
|
60436
60523
|
constructor(options) {
|
|
60437
|
-
this.configProvider = new Promise((
|
|
60524
|
+
this.configProvider = new Promise((resolve5, reject) => {
|
|
60438
60525
|
if (typeof options === "function") {
|
|
60439
60526
|
options().then((_options) => {
|
|
60440
|
-
|
|
60527
|
+
resolve5(this.resolveDefaultConfig(_options));
|
|
60441
60528
|
}).catch(reject);
|
|
60442
60529
|
} else {
|
|
60443
|
-
|
|
60530
|
+
resolve5(this.resolveDefaultConfig(options));
|
|
60444
60531
|
}
|
|
60445
60532
|
});
|
|
60446
60533
|
}
|
|
@@ -60460,7 +60547,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60460
60547
|
return new Promise((_resolve, _reject) => {
|
|
60461
60548
|
let writeRequestBodyPromise = void 0;
|
|
60462
60549
|
const timeouts = [];
|
|
60463
|
-
const
|
|
60550
|
+
const resolve5 = /* @__PURE__ */ __name(async (arg) => {
|
|
60464
60551
|
await writeRequestBodyPromise;
|
|
60465
60552
|
timeouts.forEach(timing.clearTimeout);
|
|
60466
60553
|
_resolve(arg);
|
|
@@ -60494,12 +60581,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60494
60581
|
const password = request.password ?? "";
|
|
60495
60582
|
auth = `${username}:${password}`;
|
|
60496
60583
|
}
|
|
60497
|
-
let
|
|
60584
|
+
let path12 = request.path;
|
|
60498
60585
|
if (queryString) {
|
|
60499
|
-
|
|
60586
|
+
path12 += `?${queryString}`;
|
|
60500
60587
|
}
|
|
60501
60588
|
if (request.fragment) {
|
|
60502
|
-
|
|
60589
|
+
path12 += `#${request.fragment}`;
|
|
60503
60590
|
}
|
|
60504
60591
|
let hostname = request.hostname ?? "";
|
|
60505
60592
|
if (hostname[0] === "[" && hostname.endsWith("]")) {
|
|
@@ -60511,7 +60598,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60511
60598
|
headers: request.headers,
|
|
60512
60599
|
host: hostname,
|
|
60513
60600
|
method: request.method,
|
|
60514
|
-
path:
|
|
60601
|
+
path: path12,
|
|
60515
60602
|
port: request.port,
|
|
60516
60603
|
agent,
|
|
60517
60604
|
auth
|
|
@@ -60524,7 +60611,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60524
60611
|
headers: getTransformedHeaders(res.headers),
|
|
60525
60612
|
body: res
|
|
60526
60613
|
});
|
|
60527
|
-
|
|
60614
|
+
resolve5({ response: httpResponse });
|
|
60528
60615
|
});
|
|
60529
60616
|
req.on("error", (err) => {
|
|
60530
60617
|
if (NODEJS_TIMEOUT_ERROR_CODES2.includes(err.code)) {
|
|
@@ -60849,13 +60936,13 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60849
60936
|
return new _NodeHttp2Handler(instanceOrOptions);
|
|
60850
60937
|
}
|
|
60851
60938
|
constructor(options) {
|
|
60852
|
-
this.configProvider = new Promise((
|
|
60939
|
+
this.configProvider = new Promise((resolve5, reject) => {
|
|
60853
60940
|
if (typeof options === "function") {
|
|
60854
60941
|
options().then((opts) => {
|
|
60855
|
-
|
|
60942
|
+
resolve5(opts || {});
|
|
60856
60943
|
}).catch(reject);
|
|
60857
60944
|
} else {
|
|
60858
|
-
|
|
60945
|
+
resolve5(options || {});
|
|
60859
60946
|
}
|
|
60860
60947
|
});
|
|
60861
60948
|
}
|
|
@@ -60877,7 +60964,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60877
60964
|
return new Promise((_resolve, _reject) => {
|
|
60878
60965
|
let fulfilled = false;
|
|
60879
60966
|
let writeRequestBodyPromise = void 0;
|
|
60880
|
-
const
|
|
60967
|
+
const resolve5 = /* @__PURE__ */ __name(async (arg) => {
|
|
60881
60968
|
await writeRequestBodyPromise;
|
|
60882
60969
|
_resolve(arg);
|
|
60883
60970
|
}, "resolve");
|
|
@@ -60914,16 +61001,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60914
61001
|
reject(err);
|
|
60915
61002
|
}, "rejectWithDestroy");
|
|
60916
61003
|
const queryString = querystringBuilder.buildQueryString(query ?? {});
|
|
60917
|
-
let
|
|
61004
|
+
let path12 = request.path;
|
|
60918
61005
|
if (queryString) {
|
|
60919
|
-
|
|
61006
|
+
path12 += `?${queryString}`;
|
|
60920
61007
|
}
|
|
60921
61008
|
if (request.fragment) {
|
|
60922
|
-
|
|
61009
|
+
path12 += `#${request.fragment}`;
|
|
60923
61010
|
}
|
|
60924
61011
|
const clientHttp2Stream = session.request({
|
|
60925
61012
|
...request.headers,
|
|
60926
|
-
[http2.constants.HTTP2_HEADER_PATH]:
|
|
61013
|
+
[http2.constants.HTTP2_HEADER_PATH]: path12,
|
|
60927
61014
|
[http2.constants.HTTP2_HEADER_METHOD]: method
|
|
60928
61015
|
});
|
|
60929
61016
|
if (effectiveRequestTimeout) {
|
|
@@ -60962,7 +61049,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
60962
61049
|
body: clientHttp2Stream
|
|
60963
61050
|
});
|
|
60964
61051
|
fulfilled = true;
|
|
60965
|
-
|
|
61052
|
+
resolve5({ response: httpResponse });
|
|
60966
61053
|
if (useIsolatedSession) {
|
|
60967
61054
|
session.close();
|
|
60968
61055
|
}
|
|
@@ -61007,7 +61094,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
61007
61094
|
if (isReadableStreamInstance2(stream)) {
|
|
61008
61095
|
return collectReadableStream2(stream);
|
|
61009
61096
|
}
|
|
61010
|
-
return new Promise((
|
|
61097
|
+
return new Promise((resolve5, reject) => {
|
|
61011
61098
|
const collector = new Collector2();
|
|
61012
61099
|
stream.pipe(collector);
|
|
61013
61100
|
stream.on("error", (err) => {
|
|
@@ -61017,7 +61104,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
|
|
|
61017
61104
|
collector.on("error", reject);
|
|
61018
61105
|
collector.on("finish", function() {
|
|
61019
61106
|
const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
|
|
61020
|
-
|
|
61107
|
+
resolve5(bytes);
|
|
61021
61108
|
});
|
|
61022
61109
|
});
|
|
61023
61110
|
}, "streamCollector");
|
|
@@ -61063,7 +61150,7 @@ var require_dist_cjs14 = __commonJS({
|
|
|
61063
61150
|
}
|
|
61064
61151
|
__name(createRequest, "createRequest");
|
|
61065
61152
|
function requestTimeout(timeoutInMs = 0) {
|
|
61066
|
-
return new Promise((
|
|
61153
|
+
return new Promise((resolve5, reject) => {
|
|
61067
61154
|
if (timeoutInMs) {
|
|
61068
61155
|
setTimeout(() => {
|
|
61069
61156
|
const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`);
|
|
@@ -61113,13 +61200,13 @@ var require_dist_cjs14 = __commonJS({
|
|
|
61113
61200
|
const abortError = buildAbortError(abortSignal);
|
|
61114
61201
|
return Promise.reject(abortError);
|
|
61115
61202
|
}
|
|
61116
|
-
let
|
|
61203
|
+
let path12 = request.path;
|
|
61117
61204
|
const queryString = querystringBuilder.buildQueryString(request.query || {});
|
|
61118
61205
|
if (queryString) {
|
|
61119
|
-
|
|
61206
|
+
path12 += `?${queryString}`;
|
|
61120
61207
|
}
|
|
61121
61208
|
if (request.fragment) {
|
|
61122
|
-
|
|
61209
|
+
path12 += `#${request.fragment}`;
|
|
61123
61210
|
}
|
|
61124
61211
|
let auth = "";
|
|
61125
61212
|
if (request.username != null || request.password != null) {
|
|
@@ -61128,7 +61215,7 @@ var require_dist_cjs14 = __commonJS({
|
|
|
61128
61215
|
auth = `${username}:${password}@`;
|
|
61129
61216
|
}
|
|
61130
61217
|
const { port, method } = request;
|
|
61131
|
-
const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${
|
|
61218
|
+
const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path12}`;
|
|
61132
61219
|
const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
|
|
61133
61220
|
const requestOptions = {
|
|
61134
61221
|
body,
|
|
@@ -61184,7 +61271,7 @@ var require_dist_cjs14 = __commonJS({
|
|
|
61184
61271
|
requestTimeout(requestTimeoutInMs)
|
|
61185
61272
|
];
|
|
61186
61273
|
if (abortSignal) {
|
|
61187
|
-
raceOfPromises.push(new Promise((
|
|
61274
|
+
raceOfPromises.push(new Promise((resolve5, reject) => {
|
|
61188
61275
|
const onAbort = /* @__PURE__ */ __name(() => {
|
|
61189
61276
|
const abortError = buildAbortError(abortSignal);
|
|
61190
61277
|
reject(abortError);
|
|
@@ -61267,7 +61354,7 @@ var require_dist_cjs14 = __commonJS({
|
|
|
61267
61354
|
}
|
|
61268
61355
|
__name(collectStream2, "collectStream");
|
|
61269
61356
|
function readToBase642(blob) {
|
|
61270
|
-
return new Promise((
|
|
61357
|
+
return new Promise((resolve5, reject) => {
|
|
61271
61358
|
const reader = new FileReader();
|
|
61272
61359
|
reader.onloadend = () => {
|
|
61273
61360
|
if (reader.readyState !== 2) {
|
|
@@ -61276,7 +61363,7 @@ var require_dist_cjs14 = __commonJS({
|
|
|
61276
61363
|
const result = reader.result ?? "";
|
|
61277
61364
|
const commaIndex = result.indexOf(",");
|
|
61278
61365
|
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
61279
|
-
|
|
61366
|
+
resolve5(result.substring(dataOffset));
|
|
61280
61367
|
};
|
|
61281
61368
|
reader.onabort = () => reject(new Error("Read aborted"));
|
|
61282
61369
|
reader.onerror = () => reject(reader.error);
|
|
@@ -63106,12 +63193,12 @@ function __metadata(metadataKey, metadataValue) {
|
|
|
63106
63193
|
}
|
|
63107
63194
|
function __awaiter(thisArg, _arguments, P, generator) {
|
|
63108
63195
|
function adopt(value) {
|
|
63109
|
-
return value instanceof P ? value : new P(function(
|
|
63110
|
-
|
|
63196
|
+
return value instanceof P ? value : new P(function(resolve5) {
|
|
63197
|
+
resolve5(value);
|
|
63111
63198
|
});
|
|
63112
63199
|
}
|
|
63113
63200
|
__name(adopt, "adopt");
|
|
63114
|
-
return new (P || (P = Promise))(function(
|
|
63201
|
+
return new (P || (P = Promise))(function(resolve5, reject) {
|
|
63115
63202
|
function fulfilled(value) {
|
|
63116
63203
|
try {
|
|
63117
63204
|
step(generator.next(value));
|
|
@@ -63129,7 +63216,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
63129
63216
|
}
|
|
63130
63217
|
__name(rejected, "rejected");
|
|
63131
63218
|
function step(result) {
|
|
63132
|
-
result.done ?
|
|
63219
|
+
result.done ? resolve5(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
63133
63220
|
}
|
|
63134
63221
|
__name(step, "step");
|
|
63135
63222
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
@@ -63331,15 +63418,15 @@ function __asyncValues(o5) {
|
|
|
63331
63418
|
}, i16);
|
|
63332
63419
|
function verb(n5) {
|
|
63333
63420
|
i16[n5] = o5[n5] && function(v) {
|
|
63334
|
-
return new Promise(function(
|
|
63335
|
-
v = o5[n5](v), settle(
|
|
63421
|
+
return new Promise(function(resolve5, reject) {
|
|
63422
|
+
v = o5[n5](v), settle(resolve5, reject, v.done, v.value);
|
|
63336
63423
|
});
|
|
63337
63424
|
};
|
|
63338
63425
|
}
|
|
63339
63426
|
__name(verb, "verb");
|
|
63340
|
-
function settle(
|
|
63427
|
+
function settle(resolve5, reject, d16, v) {
|
|
63341
63428
|
Promise.resolve(v).then(function(v2) {
|
|
63342
|
-
|
|
63429
|
+
resolve5({ value: v2, done: d16 });
|
|
63343
63430
|
}, reject);
|
|
63344
63431
|
}
|
|
63345
63432
|
__name(settle, "settle");
|
|
@@ -63434,13 +63521,13 @@ function __disposeResources(env) {
|
|
|
63434
63521
|
__name(next, "next");
|
|
63435
63522
|
return next();
|
|
63436
63523
|
}
|
|
63437
|
-
function __rewriteRelativeImportExtension(
|
|
63438
|
-
if (typeof
|
|
63439
|
-
return
|
|
63524
|
+
function __rewriteRelativeImportExtension(path12, preserveJsx) {
|
|
63525
|
+
if (typeof path12 === "string" && /^\.\.?\//.test(path12)) {
|
|
63526
|
+
return path12.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m10, tsx, d16, ext, cm) {
|
|
63440
63527
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d16 && (!ext || !cm) ? m10 : d16 + ext + "." + cm.toLowerCase() + "js";
|
|
63441
63528
|
});
|
|
63442
63529
|
}
|
|
63443
|
-
return
|
|
63530
|
+
return path12;
|
|
63444
63531
|
}
|
|
63445
63532
|
var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
|
|
63446
63533
|
var init_tslib_es6 = __esm({
|
|
@@ -64395,11 +64482,11 @@ var init_HttpBindingProtocol = __esm({
|
|
|
64395
64482
|
const opTraits = translateTraits(operationSchema.traits);
|
|
64396
64483
|
if (opTraits.http) {
|
|
64397
64484
|
request.method = opTraits.http[0];
|
|
64398
|
-
const [
|
|
64485
|
+
const [path12, search] = opTraits.http[1].split("?");
|
|
64399
64486
|
if (request.path == "/") {
|
|
64400
|
-
request.path =
|
|
64487
|
+
request.path = path12;
|
|
64401
64488
|
} else {
|
|
64402
|
-
request.path +=
|
|
64489
|
+
request.path += path12;
|
|
64403
64490
|
}
|
|
64404
64491
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
64405
64492
|
for (const [key, value] of traitSearchParams) {
|
|
@@ -64807,8 +64894,8 @@ var init_requestBuilder = __esm({
|
|
|
64807
64894
|
return this;
|
|
64808
64895
|
}
|
|
64809
64896
|
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
64810
|
-
this.resolvePathStack.push((
|
|
64811
|
-
this.path = resolvedPath(
|
|
64897
|
+
this.resolvePathStack.push((path12) => {
|
|
64898
|
+
this.path = resolvedPath(path12, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
64812
64899
|
});
|
|
64813
64900
|
return this;
|
|
64814
64901
|
}
|
|
@@ -65504,18 +65591,18 @@ var require_dist_cjs20 = __commonJS({
|
|
|
65504
65591
|
return void 0;
|
|
65505
65592
|
}
|
|
65506
65593
|
__name(coalesce2, "coalesce");
|
|
65507
|
-
var getAttrPathList2 = /* @__PURE__ */ __name((
|
|
65508
|
-
const parts =
|
|
65594
|
+
var getAttrPathList2 = /* @__PURE__ */ __name((path12) => {
|
|
65595
|
+
const parts = path12.split(".");
|
|
65509
65596
|
const pathList = [];
|
|
65510
65597
|
for (const part of parts) {
|
|
65511
65598
|
const squareBracketIndex = part.indexOf("[");
|
|
65512
65599
|
if (squareBracketIndex !== -1) {
|
|
65513
65600
|
if (part.indexOf("]") !== part.length - 1) {
|
|
65514
|
-
throw new EndpointError2(`Path: '${
|
|
65601
|
+
throw new EndpointError2(`Path: '${path12}' does not end with ']'`);
|
|
65515
65602
|
}
|
|
65516
65603
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
65517
65604
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
65518
|
-
throw new EndpointError2(`Invalid array index: '${arrayIndex}' in path: '${
|
|
65605
|
+
throw new EndpointError2(`Invalid array index: '${arrayIndex}' in path: '${path12}'`);
|
|
65519
65606
|
}
|
|
65520
65607
|
if (squareBracketIndex !== 0) {
|
|
65521
65608
|
pathList.push(part.slice(0, squareBracketIndex));
|
|
@@ -65527,9 +65614,9 @@ var require_dist_cjs20 = __commonJS({
|
|
|
65527
65614
|
}
|
|
65528
65615
|
return pathList;
|
|
65529
65616
|
}, "getAttrPathList");
|
|
65530
|
-
var getAttr2 = /* @__PURE__ */ __name((value,
|
|
65617
|
+
var getAttr2 = /* @__PURE__ */ __name((value, path12) => getAttrPathList2(path12).reduce((acc, index) => {
|
|
65531
65618
|
if (typeof acc !== "object") {
|
|
65532
|
-
throw new EndpointError2(`Index '${index}' in '${
|
|
65619
|
+
throw new EndpointError2(`Index '${index}' in '${path12}' not found in '${JSON.stringify(value)}'`);
|
|
65533
65620
|
} else if (Array.isArray(acc)) {
|
|
65534
65621
|
const i16 = parseInt(index);
|
|
65535
65622
|
return acc[i16 < 0 ? acc.length + i16 : i16];
|
|
@@ -65568,8 +65655,8 @@ var require_dist_cjs20 = __commonJS({
|
|
|
65568
65655
|
return value;
|
|
65569
65656
|
}
|
|
65570
65657
|
if (typeof value === "object" && "hostname" in value) {
|
|
65571
|
-
const { hostname: hostname2, port, protocol: protocol2 = "", path:
|
|
65572
|
-
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${
|
|
65658
|
+
const { hostname: hostname2, port, protocol: protocol2 = "", path: path12 = "", query = {} } = value;
|
|
65659
|
+
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path12}`);
|
|
65573
65660
|
url.search = Object.entries(query).map(([k16, v]) => `${k16}=${v}`).join("&");
|
|
65574
65661
|
return url;
|
|
65575
65662
|
}
|
|
@@ -67265,7 +67352,7 @@ var init_retryMiddleware = __esm({
|
|
|
67265
67352
|
init_parseRetryAfterHeader();
|
|
67266
67353
|
init_util2();
|
|
67267
67354
|
__name(bindRetryMiddleware, "bindRetryMiddleware");
|
|
67268
|
-
cooldown = /* @__PURE__ */ __name((ms) => new Promise((
|
|
67355
|
+
cooldown = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
|
|
67269
67356
|
isRetryStrategyV2 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
|
|
67270
67357
|
getRetryErrorInfo = /* @__PURE__ */ __name((error2, logger3) => {
|
|
67271
67358
|
const errorInfo = {
|
|
@@ -67367,7 +67454,7 @@ var init_DefaultRateLimiter = __esm({
|
|
|
67367
67454
|
this.refillTokenBucket();
|
|
67368
67455
|
while (amount > this.availableTokens) {
|
|
67369
67456
|
const delay = (amount - this.availableTokens) / this.fillRate * 1e3;
|
|
67370
|
-
await new Promise((
|
|
67457
|
+
await new Promise((resolve5) => _DefaultRateLimiter.setTimeoutFn(resolve5, delay));
|
|
67371
67458
|
this.refillTokenBucket();
|
|
67372
67459
|
}
|
|
67373
67460
|
this.availableTokens = this.availableTokens - amount;
|
|
@@ -67826,7 +67913,7 @@ var init_StandardRetryStrategy2 = __esm({
|
|
|
67826
67913
|
const delayFromResponse = getDelayFromRetryAfterHeader(err.$response);
|
|
67827
67914
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
67828
67915
|
totalDelay += delay;
|
|
67829
|
-
await new Promise((
|
|
67916
|
+
await new Promise((resolve5) => setTimeout(resolve5, delay));
|
|
67830
67917
|
continue;
|
|
67831
67918
|
}
|
|
67832
67919
|
if (!err.$metadata) {
|
|
@@ -68811,14 +68898,14 @@ var require_readFile = __commonJS({
|
|
|
68811
68898
|
var promises_1 = require("node:fs/promises");
|
|
68812
68899
|
exports2.filePromises = {};
|
|
68813
68900
|
exports2.fileIntercept = {};
|
|
68814
|
-
var readFile2 = /* @__PURE__ */ __name((
|
|
68815
|
-
if (exports2.fileIntercept[
|
|
68816
|
-
return exports2.fileIntercept[
|
|
68901
|
+
var readFile2 = /* @__PURE__ */ __name((path12, options) => {
|
|
68902
|
+
if (exports2.fileIntercept[path12] !== void 0) {
|
|
68903
|
+
return exports2.fileIntercept[path12];
|
|
68817
68904
|
}
|
|
68818
|
-
if (!exports2.filePromises[
|
|
68819
|
-
exports2.filePromises[
|
|
68905
|
+
if (!exports2.filePromises[path12] || options?.ignoreCache) {
|
|
68906
|
+
exports2.filePromises[path12] = (0, promises_1.readFile)(path12, "utf8");
|
|
68820
68907
|
}
|
|
68821
|
-
return exports2.filePromises[
|
|
68908
|
+
return exports2.filePromises[path12];
|
|
68822
68909
|
}, "readFile");
|
|
68823
68910
|
exports2.readFile = readFile2;
|
|
68824
68911
|
}
|
|
@@ -68831,7 +68918,7 @@ var require_dist_cjs28 = __commonJS({
|
|
|
68831
68918
|
var getHomeDir2 = require_getHomeDir();
|
|
68832
68919
|
var getSSOTokenFilepath = require_getSSOTokenFilepath();
|
|
68833
68920
|
var getSSOTokenFromFile = require_getSSOTokenFromFile();
|
|
68834
|
-
var
|
|
68921
|
+
var path12 = require("path");
|
|
68835
68922
|
var types = require_dist_cjs();
|
|
68836
68923
|
var readFile2 = require_readFile();
|
|
68837
68924
|
var ENV_PROFILE2 = "AWS_PROFILE";
|
|
@@ -68853,9 +68940,9 @@ var require_dist_cjs28 = __commonJS({
|
|
|
68853
68940
|
...data2.default && { default: data2.default }
|
|
68854
68941
|
}), "getConfigData");
|
|
68855
68942
|
var ENV_CONFIG_PATH2 = "AWS_CONFIG_FILE";
|
|
68856
|
-
var getConfigFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH2] ||
|
|
68943
|
+
var getConfigFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH2] || path12.join(getHomeDir2.getHomeDir(), ".aws", "config"), "getConfigFilepath");
|
|
68857
68944
|
var ENV_CREDENTIALS_PATH2 = "AWS_SHARED_CREDENTIALS_FILE";
|
|
68858
|
-
var getCredentialsFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH2] ||
|
|
68945
|
+
var getCredentialsFilepath2 = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH2] || path12.join(getHomeDir2.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
|
|
68859
68946
|
var prefixKeyRegex2 = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
68860
68947
|
var profileNameBlockList2 = ["__proto__", "profile __proto__"];
|
|
68861
68948
|
var parseIni2 = /* @__PURE__ */ __name((iniData) => {
|
|
@@ -68910,11 +68997,11 @@ var require_dist_cjs28 = __commonJS({
|
|
|
68910
68997
|
const relativeHomeDirPrefix = "~/";
|
|
68911
68998
|
let resolvedFilepath = filepath;
|
|
68912
68999
|
if (filepath.startsWith(relativeHomeDirPrefix)) {
|
|
68913
|
-
resolvedFilepath =
|
|
69000
|
+
resolvedFilepath = path12.join(homeDir, filepath.slice(2));
|
|
68914
69001
|
}
|
|
68915
69002
|
let resolvedConfigFilepath = configFilepath;
|
|
68916
69003
|
if (configFilepath.startsWith(relativeHomeDirPrefix)) {
|
|
68917
|
-
resolvedConfigFilepath =
|
|
69004
|
+
resolvedConfigFilepath = path12.join(homeDir, configFilepath.slice(2));
|
|
68918
69005
|
}
|
|
68919
69006
|
const parsedFiles = await Promise.all([
|
|
68920
69007
|
readFile2.readFile(resolvedConfigFilepath, {
|
|
@@ -68953,8 +69040,8 @@ var require_dist_cjs28 = __commonJS({
|
|
|
68953
69040
|
getFileRecord() {
|
|
68954
69041
|
return readFile2.fileIntercept;
|
|
68955
69042
|
},
|
|
68956
|
-
interceptFile(
|
|
68957
|
-
readFile2.fileIntercept[
|
|
69043
|
+
interceptFile(path13, contents) {
|
|
69044
|
+
readFile2.fileIntercept[path13] = Promise.resolve(contents);
|
|
68958
69045
|
},
|
|
68959
69046
|
getTokenRecord() {
|
|
68960
69047
|
return getSSOTokenFromFile.tokenIntercept;
|
|
@@ -69281,8 +69368,8 @@ var require_dist_cjs31 = __commonJS({
|
|
|
69281
69368
|
return endpoint.url.href;
|
|
69282
69369
|
}
|
|
69283
69370
|
if ("hostname" in endpoint) {
|
|
69284
|
-
const { protocol, hostname, port, path:
|
|
69285
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}${
|
|
69371
|
+
const { protocol, hostname, port, path: path12 } = endpoint;
|
|
69372
|
+
return `${protocol}//${hostname}${port ? ":" + port : ""}${path12}`;
|
|
69286
69373
|
}
|
|
69287
69374
|
}
|
|
69288
69375
|
return endpoint;
|
|
@@ -70558,7 +70645,7 @@ var require_dist_cjs35 = __commonJS({
|
|
|
70558
70645
|
const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
|
|
70559
70646
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
70560
70647
|
totalDelay += delay;
|
|
70561
|
-
await new Promise((
|
|
70648
|
+
await new Promise((resolve5) => setTimeout(resolve5, delay));
|
|
70562
70649
|
continue;
|
|
70563
70650
|
}
|
|
70564
70651
|
if (!err.$metadata) {
|
|
@@ -70770,7 +70857,7 @@ var require_dist_cjs35 = __commonJS({
|
|
|
70770
70857
|
return retryStrategy.retry(next, args);
|
|
70771
70858
|
}
|
|
70772
70859
|
}, "retryMiddleware");
|
|
70773
|
-
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((
|
|
70860
|
+
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
|
|
70774
70861
|
var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
|
|
70775
70862
|
var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
|
|
70776
70863
|
const errorInfo = {
|
|
@@ -71409,10 +71496,10 @@ ${longDate}
|
|
|
71409
71496
|
${credentialScope}
|
|
71410
71497
|
${utilHexEncoding.toHex(hashedRequest)}`;
|
|
71411
71498
|
}
|
|
71412
|
-
getCanonicalPath({ path:
|
|
71499
|
+
getCanonicalPath({ path: path12 }) {
|
|
71413
71500
|
if (this.uriEscapePath) {
|
|
71414
71501
|
const normalizedPathSegments = [];
|
|
71415
|
-
for (const pathSegment of
|
|
71502
|
+
for (const pathSegment of path12.split("/")) {
|
|
71416
71503
|
if (pathSegment?.length === 0)
|
|
71417
71504
|
continue;
|
|
71418
71505
|
if (pathSegment === ".")
|
|
@@ -71423,11 +71510,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
|
|
|
71423
71510
|
normalizedPathSegments.push(pathSegment);
|
|
71424
71511
|
}
|
|
71425
71512
|
}
|
|
71426
|
-
const normalizedPath = `${
|
|
71513
|
+
const normalizedPath = `${path12?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path12?.endsWith("/") ? "/" : ""}`;
|
|
71427
71514
|
const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
|
|
71428
71515
|
return doubleEncoded.replace(/%2F/g, "/");
|
|
71429
71516
|
}
|
|
71430
|
-
return
|
|
71517
|
+
return path12;
|
|
71431
71518
|
}
|
|
71432
71519
|
validateResolvedCredentials(credentials) {
|
|
71433
71520
|
if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
|
|
@@ -72005,7 +72092,7 @@ var require_dist_cjs38 = __commonJS({
|
|
|
72005
72092
|
var nodeConfigProvider = require_dist_cjs29();
|
|
72006
72093
|
var urlParser = require_dist_cjs18();
|
|
72007
72094
|
function httpRequest(options) {
|
|
72008
|
-
return new Promise((
|
|
72095
|
+
return new Promise((resolve5, reject) => {
|
|
72009
72096
|
const req = http.request({
|
|
72010
72097
|
method: "GET",
|
|
72011
72098
|
...options,
|
|
@@ -72030,7 +72117,7 @@ var require_dist_cjs38 = __commonJS({
|
|
|
72030
72117
|
chunks.push(chunk);
|
|
72031
72118
|
});
|
|
72032
72119
|
res.on("end", () => {
|
|
72033
|
-
|
|
72120
|
+
resolve5(buffer.Buffer.concat(chunks));
|
|
72034
72121
|
req.destroy();
|
|
72035
72122
|
});
|
|
72036
72123
|
});
|
|
@@ -72914,7 +73001,7 @@ var require_headStream2 = __commonJS({
|
|
|
72914
73001
|
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
72915
73002
|
return (0, headStream_browser_1.headStream)(stream, bytes);
|
|
72916
73003
|
}
|
|
72917
|
-
return new Promise((
|
|
73004
|
+
return new Promise((resolve5, reject) => {
|
|
72918
73005
|
const collector = new Collector2();
|
|
72919
73006
|
collector.limit = bytes;
|
|
72920
73007
|
stream.pipe(collector);
|
|
@@ -72925,7 +73012,7 @@ var require_headStream2 = __commonJS({
|
|
|
72925
73012
|
collector.on("error", reject);
|
|
72926
73013
|
collector.on("finish", function() {
|
|
72927
73014
|
const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
|
|
72928
|
-
|
|
73015
|
+
resolve5(bytes2);
|
|
72929
73016
|
});
|
|
72930
73017
|
});
|
|
72931
73018
|
}, "headStream");
|
|
@@ -73279,7 +73366,7 @@ var require_retry_wrapper = __commonJS({
|
|
|
73279
73366
|
try {
|
|
73280
73367
|
return await toRetry();
|
|
73281
73368
|
} catch (e16) {
|
|
73282
|
-
await new Promise((
|
|
73369
|
+
await new Promise((resolve5) => setTimeout(resolve5, delayMs));
|
|
73283
73370
|
}
|
|
73284
73371
|
}
|
|
73285
73372
|
return await toRetry();
|
|
@@ -74213,7 +74300,7 @@ var require_dist_cjs42 = __commonJS({
|
|
|
74213
74300
|
const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
|
|
74214
74301
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
74215
74302
|
totalDelay += delay;
|
|
74216
|
-
await new Promise((
|
|
74303
|
+
await new Promise((resolve5) => setTimeout(resolve5, delay));
|
|
74217
74304
|
continue;
|
|
74218
74305
|
}
|
|
74219
74306
|
if (!err.$metadata) {
|
|
@@ -74425,7 +74512,7 @@ var require_dist_cjs42 = __commonJS({
|
|
|
74425
74512
|
return retryStrategy.retry(next, args);
|
|
74426
74513
|
}
|
|
74427
74514
|
}, "retryMiddleware");
|
|
74428
|
-
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((
|
|
74515
|
+
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
|
|
74429
74516
|
var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
|
|
74430
74517
|
var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
|
|
74431
74518
|
const errorInfo = {
|
|
@@ -76046,11 +76133,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
|
|
|
76046
76133
|
}
|
|
76047
76134
|
}
|
|
76048
76135
|
const { service, operation: operation2 } = (0, import_util_middleware6.getSmithyContext)(context);
|
|
76049
|
-
const
|
|
76136
|
+
const path12 = `/service/${service}/operation/${operation2}`;
|
|
76050
76137
|
if (request.path.endsWith("/")) {
|
|
76051
|
-
request.path +=
|
|
76138
|
+
request.path += path12.slice(1);
|
|
76052
76139
|
} else {
|
|
76053
|
-
request.path +=
|
|
76140
|
+
request.path += path12;
|
|
76054
76141
|
}
|
|
76055
76142
|
return request;
|
|
76056
76143
|
}
|
|
@@ -93533,8 +93620,8 @@ var require_dist_cjs60 = __commonJS({
|
|
|
93533
93620
|
return value;
|
|
93534
93621
|
};
|
|
93535
93622
|
}, "getCircularReplacer");
|
|
93536
|
-
var
|
|
93537
|
-
return new Promise((
|
|
93623
|
+
var sleep = /* @__PURE__ */ __name((seconds) => {
|
|
93624
|
+
return new Promise((resolve5) => setTimeout(resolve5, seconds * 1e3));
|
|
93538
93625
|
}, "sleep");
|
|
93539
93626
|
var waiterServiceDefaults = {
|
|
93540
93627
|
minDelay: 2,
|
|
@@ -93587,7 +93674,7 @@ var require_dist_cjs60 = __commonJS({
|
|
|
93587
93674
|
if (Date.now() + delayMs > waitUntil) {
|
|
93588
93675
|
return { state: exports2.WaiterState.TIMEOUT, observedResponses };
|
|
93589
93676
|
}
|
|
93590
|
-
await
|
|
93677
|
+
await sleep(delayMs / 1e3);
|
|
93591
93678
|
}
|
|
93592
93679
|
const { state: state8, reason } = await acceptorChecks(client, input);
|
|
93593
93680
|
if (reason) {
|
|
@@ -93663,8 +93750,8 @@ var require_dist_cjs60 = __commonJS({
|
|
|
93663
93750
|
}, "validateWaiterOptions");
|
|
93664
93751
|
var abortTimeout = /* @__PURE__ */ __name((abortSignal) => {
|
|
93665
93752
|
let onAbort;
|
|
93666
|
-
const promise = new Promise((
|
|
93667
|
-
onAbort = /* @__PURE__ */ __name(() =>
|
|
93753
|
+
const promise = new Promise((resolve5) => {
|
|
93754
|
+
onAbort = /* @__PURE__ */ __name(() => resolve5({ state: exports2.WaiterState.ABORTED }), "onAbort");
|
|
93668
93755
|
if (typeof abortSignal.addEventListener === "function") {
|
|
93669
93756
|
abortSignal.addEventListener("abort", onAbort);
|
|
93670
93757
|
} else {
|
|
@@ -95357,7 +95444,7 @@ var require_headStream3 = __commonJS({
|
|
|
95357
95444
|
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
95358
95445
|
return (0, headStream_browser_1.headStream)(stream, bytes);
|
|
95359
95446
|
}
|
|
95360
|
-
return new Promise((
|
|
95447
|
+
return new Promise((resolve5, reject) => {
|
|
95361
95448
|
const collector = new Collector2();
|
|
95362
95449
|
collector.limit = bytes;
|
|
95363
95450
|
stream.pipe(collector);
|
|
@@ -95368,7 +95455,7 @@ var require_headStream3 = __commonJS({
|
|
|
95368
95455
|
collector.on("error", reject);
|
|
95369
95456
|
collector.on("finish", function() {
|
|
95370
95457
|
const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
|
|
95371
|
-
|
|
95458
|
+
resolve5(bytes2);
|
|
95372
95459
|
});
|
|
95373
95460
|
});
|
|
95374
95461
|
}, "headStream");
|
|
@@ -97589,7 +97676,7 @@ var require_dist_cjs71 = __commonJS({
|
|
|
97589
97676
|
const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
|
|
97590
97677
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
97591
97678
|
totalDelay += delay;
|
|
97592
|
-
await new Promise((
|
|
97679
|
+
await new Promise((resolve5) => setTimeout(resolve5, delay));
|
|
97593
97680
|
continue;
|
|
97594
97681
|
}
|
|
97595
97682
|
if (!err.$metadata) {
|
|
@@ -97801,7 +97888,7 @@ var require_dist_cjs71 = __commonJS({
|
|
|
97801
97888
|
return retryStrategy.retry(next, args);
|
|
97802
97889
|
}
|
|
97803
97890
|
}, "retryMiddleware");
|
|
97804
|
-
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((
|
|
97891
|
+
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
|
|
97805
97892
|
var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
|
|
97806
97893
|
var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
|
|
97807
97894
|
const errorInfo = {
|
|
@@ -106625,7 +106712,7 @@ var require_headStream4 = __commonJS({
|
|
|
106625
106712
|
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
106626
106713
|
return (0, headStream_browser_1.headStream)(stream, bytes);
|
|
106627
106714
|
}
|
|
106628
|
-
return new Promise((
|
|
106715
|
+
return new Promise((resolve5, reject) => {
|
|
106629
106716
|
const collector = new Collector2();
|
|
106630
106717
|
collector.limit = bytes;
|
|
106631
106718
|
stream.pipe(collector);
|
|
@@ -106636,7 +106723,7 @@ var require_headStream4 = __commonJS({
|
|
|
106636
106723
|
collector.on("error", reject);
|
|
106637
106724
|
collector.on("finish", function() {
|
|
106638
106725
|
const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
|
|
106639
|
-
|
|
106726
|
+
resolve5(bytes2);
|
|
106640
106727
|
});
|
|
106641
106728
|
});
|
|
106642
106729
|
}, "headStream");
|
|
@@ -106990,7 +107077,7 @@ var require_retry_wrapper2 = __commonJS({
|
|
|
106990
107077
|
try {
|
|
106991
107078
|
return await toRetry();
|
|
106992
107079
|
} catch (e16) {
|
|
106993
|
-
await new Promise((
|
|
107080
|
+
await new Promise((resolve5) => setTimeout(resolve5, delayMs));
|
|
106994
107081
|
}
|
|
106995
107082
|
}
|
|
106996
107083
|
return await toRetry();
|
|
@@ -113377,7 +113464,7 @@ var require_dist_cjs85 = __commonJS({
|
|
|
113377
113464
|
streamEnded = true;
|
|
113378
113465
|
});
|
|
113379
113466
|
while (!generationEnded) {
|
|
113380
|
-
const value = await new Promise((
|
|
113467
|
+
const value = await new Promise((resolve5) => setTimeout(() => resolve5(records.shift()), 0));
|
|
113381
113468
|
if (value) {
|
|
113382
113469
|
yield value;
|
|
113383
113470
|
}
|
|
@@ -113414,7 +113501,7 @@ var require_dist_cjs85 = __commonJS({
|
|
|
113414
113501
|
var require_dist_cjs86 = __commonJS({
|
|
113415
113502
|
"../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
|
|
113416
113503
|
"use strict";
|
|
113417
|
-
var
|
|
113504
|
+
var fs12 = require("fs");
|
|
113418
113505
|
var utilUtf8 = require_dist_cjs9();
|
|
113419
113506
|
var stream = require("stream");
|
|
113420
113507
|
var HashCalculator = class extends stream.Writable {
|
|
@@ -113435,12 +113522,12 @@ var require_dist_cjs86 = __commonJS({
|
|
|
113435
113522
|
callback();
|
|
113436
113523
|
}
|
|
113437
113524
|
};
|
|
113438
|
-
var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((
|
|
113525
|
+
var fileStreamHasher = /* @__PURE__ */ __name((hashCtor, fileStream) => new Promise((resolve5, reject) => {
|
|
113439
113526
|
if (!isReadStream(fileStream)) {
|
|
113440
113527
|
reject(new Error("Unable to calculate hash for non-file streams."));
|
|
113441
113528
|
return;
|
|
113442
113529
|
}
|
|
113443
|
-
const fileStreamTee =
|
|
113530
|
+
const fileStreamTee = fs12.createReadStream(fileStream.path, {
|
|
113444
113531
|
start: fileStream.start,
|
|
113445
113532
|
end: fileStream.end
|
|
113446
113533
|
});
|
|
@@ -113453,7 +113540,7 @@ var require_dist_cjs86 = __commonJS({
|
|
|
113453
113540
|
});
|
|
113454
113541
|
hashCalculator.on("error", reject);
|
|
113455
113542
|
hashCalculator.on("finish", function() {
|
|
113456
|
-
hash.digest().then(
|
|
113543
|
+
hash.digest().then(resolve5).catch(reject);
|
|
113457
113544
|
});
|
|
113458
113545
|
}), "fileStreamHasher");
|
|
113459
113546
|
var isReadStream = /* @__PURE__ */ __name((stream2) => typeof stream2.path === "string", "isReadStream");
|
|
@@ -113464,14 +113551,14 @@ var require_dist_cjs86 = __commonJS({
|
|
|
113464
113551
|
const hash = new hashCtor();
|
|
113465
113552
|
const hashCalculator = new HashCalculator(hash);
|
|
113466
113553
|
readableStream.pipe(hashCalculator);
|
|
113467
|
-
return new Promise((
|
|
113554
|
+
return new Promise((resolve5, reject) => {
|
|
113468
113555
|
readableStream.on("error", (err) => {
|
|
113469
113556
|
hashCalculator.end();
|
|
113470
113557
|
reject(err);
|
|
113471
113558
|
});
|
|
113472
113559
|
hashCalculator.on("error", reject);
|
|
113473
113560
|
hashCalculator.on("finish", () => {
|
|
113474
|
-
hash.digest().then(
|
|
113561
|
+
hash.digest().then(resolve5).catch(reject);
|
|
113475
113562
|
});
|
|
113476
113563
|
});
|
|
113477
113564
|
}, "readableStreamHasher");
|
|
@@ -113740,8 +113827,8 @@ var require_dist_cjs89 = __commonJS({
|
|
|
113740
113827
|
return value;
|
|
113741
113828
|
};
|
|
113742
113829
|
}, "getCircularReplacer");
|
|
113743
|
-
var
|
|
113744
|
-
return new Promise((
|
|
113830
|
+
var sleep = /* @__PURE__ */ __name((seconds) => {
|
|
113831
|
+
return new Promise((resolve5) => setTimeout(resolve5, seconds * 1e3));
|
|
113745
113832
|
}, "sleep");
|
|
113746
113833
|
var waiterServiceDefaults = {
|
|
113747
113834
|
minDelay: 2,
|
|
@@ -113794,7 +113881,7 @@ var require_dist_cjs89 = __commonJS({
|
|
|
113794
113881
|
if (Date.now() + delayMs > waitUntil) {
|
|
113795
113882
|
return { state: exports2.WaiterState.TIMEOUT, observedResponses };
|
|
113796
113883
|
}
|
|
113797
|
-
await
|
|
113884
|
+
await sleep(delayMs / 1e3);
|
|
113798
113885
|
}
|
|
113799
113886
|
const { state: state8, reason } = await acceptorChecks(client, input);
|
|
113800
113887
|
if (reason) {
|
|
@@ -113870,8 +113957,8 @@ var require_dist_cjs89 = __commonJS({
|
|
|
113870
113957
|
}, "validateWaiterOptions");
|
|
113871
113958
|
var abortTimeout = /* @__PURE__ */ __name((abortSignal) => {
|
|
113872
113959
|
let onAbort;
|
|
113873
|
-
const promise = new Promise((
|
|
113874
|
-
onAbort = /* @__PURE__ */ __name(() =>
|
|
113960
|
+
const promise = new Promise((resolve5) => {
|
|
113961
|
+
onAbort = /* @__PURE__ */ __name(() => resolve5({ state: exports2.WaiterState.ABORTED }), "onAbort");
|
|
113875
113962
|
if (typeof abortSignal.addEventListener === "function") {
|
|
113876
113963
|
abortSignal.addEventListener("abort", onAbort);
|
|
113877
113964
|
} else {
|
|
@@ -116865,7 +116952,7 @@ var require_dist_cjs92 = __commonJS({
|
|
|
116865
116952
|
const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
|
|
116866
116953
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
116867
116954
|
totalDelay += delay;
|
|
116868
|
-
await new Promise((
|
|
116955
|
+
await new Promise((resolve5) => setTimeout(resolve5, delay));
|
|
116869
116956
|
continue;
|
|
116870
116957
|
}
|
|
116871
116958
|
if (!err.$metadata) {
|
|
@@ -117077,7 +117164,7 @@ var require_dist_cjs92 = __commonJS({
|
|
|
117077
117164
|
return retryStrategy.retry(next, args);
|
|
117078
117165
|
}
|
|
117079
117166
|
}, "retryMiddleware");
|
|
117080
|
-
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((
|
|
117167
|
+
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
|
|
117081
117168
|
var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
|
|
117082
117169
|
var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
|
|
117083
117170
|
const errorInfo = {
|
|
@@ -118321,7 +118408,7 @@ var require_headStream5 = __commonJS({
|
|
|
118321
118408
|
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
118322
118409
|
return (0, headStream_browser_1.headStream)(stream, bytes);
|
|
118323
118410
|
}
|
|
118324
|
-
return new Promise((
|
|
118411
|
+
return new Promise((resolve5, reject) => {
|
|
118325
118412
|
const collector = new Collector2();
|
|
118326
118413
|
collector.limit = bytes;
|
|
118327
118414
|
stream.pipe(collector);
|
|
@@ -118332,7 +118419,7 @@ var require_headStream5 = __commonJS({
|
|
|
118332
118419
|
collector.on("error", reject);
|
|
118333
118420
|
collector.on("finish", function() {
|
|
118334
118421
|
const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
|
|
118335
|
-
|
|
118422
|
+
resolve5(bytes2);
|
|
118336
118423
|
});
|
|
118337
118424
|
});
|
|
118338
118425
|
}, "headStream");
|
|
@@ -118686,7 +118773,7 @@ var require_retry_wrapper3 = __commonJS({
|
|
|
118686
118773
|
try {
|
|
118687
118774
|
return await toRetry();
|
|
118688
118775
|
} catch (e16) {
|
|
118689
|
-
await new Promise((
|
|
118776
|
+
await new Promise((resolve5) => setTimeout(resolve5, delayMs));
|
|
118690
118777
|
}
|
|
118691
118778
|
}
|
|
118692
118779
|
return await toRetry();
|
|
@@ -127349,7 +127436,7 @@ var require_dist_cjs106 = __commonJS({
|
|
|
127349
127436
|
const delayFromResponse = getDelayFromRetryAfterHeader2(err.$response);
|
|
127350
127437
|
const delay = Math.max(delayFromResponse || 0, delayFromDecider);
|
|
127351
127438
|
totalDelay += delay;
|
|
127352
|
-
await new Promise((
|
|
127439
|
+
await new Promise((resolve5) => setTimeout(resolve5, delay));
|
|
127353
127440
|
continue;
|
|
127354
127441
|
}
|
|
127355
127442
|
if (!err.$metadata) {
|
|
@@ -127561,7 +127648,7 @@ var require_dist_cjs106 = __commonJS({
|
|
|
127561
127648
|
return retryStrategy.retry(next, args);
|
|
127562
127649
|
}
|
|
127563
127650
|
}, "retryMiddleware");
|
|
127564
|
-
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((
|
|
127651
|
+
var cooldown2 = /* @__PURE__ */ __name((ms) => new Promise((resolve5) => setTimeout(resolve5, ms)), "cooldown");
|
|
127565
127652
|
var isRetryStrategyV22 = /* @__PURE__ */ __name((retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && typeof retryStrategy.recordSuccess !== "undefined", "isRetryStrategyV2");
|
|
127566
127653
|
var getRetryErrorInfo2 = /* @__PURE__ */ __name((error2, logger3) => {
|
|
127567
127654
|
const errorInfo = {
|
|
@@ -133734,7 +133821,7 @@ var require_headStream6 = __commonJS({
|
|
|
133734
133821
|
if ((0, stream_type_check_1.isReadableStream)(stream)) {
|
|
133735
133822
|
return (0, headStream_browser_1.headStream)(stream, bytes);
|
|
133736
133823
|
}
|
|
133737
|
-
return new Promise((
|
|
133824
|
+
return new Promise((resolve5, reject) => {
|
|
133738
133825
|
const collector = new Collector2();
|
|
133739
133826
|
collector.limit = bytes;
|
|
133740
133827
|
stream.pipe(collector);
|
|
@@ -133745,7 +133832,7 @@ var require_headStream6 = __commonJS({
|
|
|
133745
133832
|
collector.on("error", reject);
|
|
133746
133833
|
collector.on("finish", function() {
|
|
133747
133834
|
const bytes2 = new Uint8Array(Buffer.concat(this.buffers));
|
|
133748
|
-
|
|
133835
|
+
resolve5(bytes2);
|
|
133749
133836
|
});
|
|
133750
133837
|
});
|
|
133751
133838
|
}, "headStream");
|
|
@@ -134099,7 +134186,7 @@ var require_retry_wrapper4 = __commonJS({
|
|
|
134099
134186
|
try {
|
|
134100
134187
|
return await toRetry();
|
|
134101
134188
|
} catch (e16) {
|
|
134102
|
-
await new Promise((
|
|
134189
|
+
await new Promise((resolve5) => setTimeout(resolve5, delayMs));
|
|
134103
134190
|
}
|
|
134104
134191
|
}
|
|
134105
134192
|
return await toRetry();
|
|
@@ -142274,35 +142361,35 @@ var require_dist_cjs124 = __commonJS({
|
|
|
142274
142361
|
getItem(key) {
|
|
142275
142362
|
return this.withObjectStore("readonly", (store) => {
|
|
142276
142363
|
const req = store.get(key);
|
|
142277
|
-
return new Promise((
|
|
142278
|
-
req.onerror = () =>
|
|
142279
|
-
req.onsuccess = () =>
|
|
142364
|
+
return new Promise((resolve5) => {
|
|
142365
|
+
req.onerror = () => resolve5(null);
|
|
142366
|
+
req.onsuccess = () => resolve5(req.result ? req.result.value : null);
|
|
142280
142367
|
});
|
|
142281
142368
|
}).catch(() => null);
|
|
142282
142369
|
}
|
|
142283
142370
|
removeItem(key) {
|
|
142284
142371
|
return this.withObjectStore("readwrite", (store) => {
|
|
142285
142372
|
const req = store.delete(key);
|
|
142286
|
-
return new Promise((
|
|
142373
|
+
return new Promise((resolve5, reject) => {
|
|
142287
142374
|
req.onerror = () => reject(req.error);
|
|
142288
|
-
req.onsuccess = () =>
|
|
142375
|
+
req.onsuccess = () => resolve5();
|
|
142289
142376
|
});
|
|
142290
142377
|
});
|
|
142291
142378
|
}
|
|
142292
142379
|
setItem(id, value) {
|
|
142293
142380
|
return this.withObjectStore("readwrite", (store) => {
|
|
142294
142381
|
const req = store.put({ id, value });
|
|
142295
|
-
return new Promise((
|
|
142382
|
+
return new Promise((resolve5, reject) => {
|
|
142296
142383
|
req.onerror = () => reject(req.error);
|
|
142297
|
-
req.onsuccess = () =>
|
|
142384
|
+
req.onsuccess = () => resolve5();
|
|
142298
142385
|
});
|
|
142299
142386
|
});
|
|
142300
142387
|
}
|
|
142301
142388
|
getDb() {
|
|
142302
142389
|
const openDbRequest = self.indexedDB.open(this.dbName, 1);
|
|
142303
|
-
return new Promise((
|
|
142390
|
+
return new Promise((resolve5, reject) => {
|
|
142304
142391
|
openDbRequest.onsuccess = () => {
|
|
142305
|
-
|
|
142392
|
+
resolve5(openDbRequest.result);
|
|
142306
142393
|
};
|
|
142307
142394
|
openDbRequest.onerror = () => {
|
|
142308
142395
|
reject(openDbRequest.error);
|
|
@@ -142323,9 +142410,9 @@ var require_dist_cjs124 = __commonJS({
|
|
|
142323
142410
|
return this.getDb().then((db) => {
|
|
142324
142411
|
const tx = db.transaction(STORE_NAME, mode);
|
|
142325
142412
|
tx.oncomplete = () => db.close();
|
|
142326
|
-
return new Promise((
|
|
142413
|
+
return new Promise((resolve5, reject) => {
|
|
142327
142414
|
tx.onerror = () => reject(tx.error);
|
|
142328
|
-
|
|
142415
|
+
resolve5(action(tx.objectStore(STORE_NAME)));
|
|
142329
142416
|
}).catch((err) => {
|
|
142330
142417
|
db.close();
|
|
142331
142418
|
throw err;
|
|
@@ -142991,98 +143078,11 @@ var init_constants3 = __esm({
|
|
|
142991
143078
|
}
|
|
142992
143079
|
});
|
|
142993
143080
|
|
|
142994
|
-
// ../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/types/dist-cjs/index.js
|
|
142995
|
-
var require_dist_cjs126 = __commonJS({
|
|
142996
|
-
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/types/dist-cjs/index.js"(exports2) {
|
|
142997
|
-
"use strict";
|
|
142998
|
-
exports2.HttpAuthLocation = void 0;
|
|
142999
|
-
(function(HttpAuthLocation) {
|
|
143000
|
-
HttpAuthLocation["HEADER"] = "header";
|
|
143001
|
-
HttpAuthLocation["QUERY"] = "query";
|
|
143002
|
-
})(exports2.HttpAuthLocation || (exports2.HttpAuthLocation = {}));
|
|
143003
|
-
exports2.HttpApiKeyAuthLocation = void 0;
|
|
143004
|
-
(function(HttpApiKeyAuthLocation2) {
|
|
143005
|
-
HttpApiKeyAuthLocation2["HEADER"] = "header";
|
|
143006
|
-
HttpApiKeyAuthLocation2["QUERY"] = "query";
|
|
143007
|
-
})(exports2.HttpApiKeyAuthLocation || (exports2.HttpApiKeyAuthLocation = {}));
|
|
143008
|
-
exports2.EndpointURLScheme = void 0;
|
|
143009
|
-
(function(EndpointURLScheme2) {
|
|
143010
|
-
EndpointURLScheme2["HTTP"] = "http";
|
|
143011
|
-
EndpointURLScheme2["HTTPS"] = "https";
|
|
143012
|
-
})(exports2.EndpointURLScheme || (exports2.EndpointURLScheme = {}));
|
|
143013
|
-
exports2.AlgorithmId = void 0;
|
|
143014
|
-
(function(AlgorithmId) {
|
|
143015
|
-
AlgorithmId["MD5"] = "md5";
|
|
143016
|
-
AlgorithmId["CRC32"] = "crc32";
|
|
143017
|
-
AlgorithmId["CRC32C"] = "crc32c";
|
|
143018
|
-
AlgorithmId["SHA1"] = "sha1";
|
|
143019
|
-
AlgorithmId["SHA256"] = "sha256";
|
|
143020
|
-
})(exports2.AlgorithmId || (exports2.AlgorithmId = {}));
|
|
143021
|
-
var getChecksumConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
143022
|
-
const checksumAlgorithms = [];
|
|
143023
|
-
if (runtimeConfig.sha256 !== void 0) {
|
|
143024
|
-
checksumAlgorithms.push({
|
|
143025
|
-
algorithmId: /* @__PURE__ */ __name(() => exports2.AlgorithmId.SHA256, "algorithmId"),
|
|
143026
|
-
checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig.sha256, "checksumConstructor")
|
|
143027
|
-
});
|
|
143028
|
-
}
|
|
143029
|
-
if (runtimeConfig.md5 != void 0) {
|
|
143030
|
-
checksumAlgorithms.push({
|
|
143031
|
-
algorithmId: /* @__PURE__ */ __name(() => exports2.AlgorithmId.MD5, "algorithmId"),
|
|
143032
|
-
checksumConstructor: /* @__PURE__ */ __name(() => runtimeConfig.md5, "checksumConstructor")
|
|
143033
|
-
});
|
|
143034
|
-
}
|
|
143035
|
-
return {
|
|
143036
|
-
addChecksumAlgorithm(algo) {
|
|
143037
|
-
checksumAlgorithms.push(algo);
|
|
143038
|
-
},
|
|
143039
|
-
checksumAlgorithms() {
|
|
143040
|
-
return checksumAlgorithms;
|
|
143041
|
-
}
|
|
143042
|
-
};
|
|
143043
|
-
}, "getChecksumConfiguration");
|
|
143044
|
-
var resolveChecksumRuntimeConfig = /* @__PURE__ */ __name((clientConfig) => {
|
|
143045
|
-
const runtimeConfig = {};
|
|
143046
|
-
clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => {
|
|
143047
|
-
runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor();
|
|
143048
|
-
});
|
|
143049
|
-
return runtimeConfig;
|
|
143050
|
-
}, "resolveChecksumRuntimeConfig");
|
|
143051
|
-
var getDefaultClientConfiguration = /* @__PURE__ */ __name((runtimeConfig) => {
|
|
143052
|
-
return getChecksumConfiguration(runtimeConfig);
|
|
143053
|
-
}, "getDefaultClientConfiguration");
|
|
143054
|
-
var resolveDefaultRuntimeConfig16 = /* @__PURE__ */ __name((config) => {
|
|
143055
|
-
return resolveChecksumRuntimeConfig(config);
|
|
143056
|
-
}, "resolveDefaultRuntimeConfig");
|
|
143057
|
-
exports2.FieldPosition = void 0;
|
|
143058
|
-
(function(FieldPosition2) {
|
|
143059
|
-
FieldPosition2[FieldPosition2["HEADER"] = 0] = "HEADER";
|
|
143060
|
-
FieldPosition2[FieldPosition2["TRAILER"] = 1] = "TRAILER";
|
|
143061
|
-
})(exports2.FieldPosition || (exports2.FieldPosition = {}));
|
|
143062
|
-
var SMITHY_CONTEXT_KEY3 = "__smithy_context";
|
|
143063
|
-
exports2.IniSectionType = void 0;
|
|
143064
|
-
(function(IniSectionType3) {
|
|
143065
|
-
IniSectionType3["PROFILE"] = "profile";
|
|
143066
|
-
IniSectionType3["SSO_SESSION"] = "sso-session";
|
|
143067
|
-
IniSectionType3["SERVICES"] = "services";
|
|
143068
|
-
})(exports2.IniSectionType || (exports2.IniSectionType = {}));
|
|
143069
|
-
exports2.RequestHandlerProtocol = void 0;
|
|
143070
|
-
(function(RequestHandlerProtocol) {
|
|
143071
|
-
RequestHandlerProtocol["HTTP_0_9"] = "http/0.9";
|
|
143072
|
-
RequestHandlerProtocol["HTTP_1_0"] = "http/1.0";
|
|
143073
|
-
RequestHandlerProtocol["TDS_8_0"] = "tds/8.0";
|
|
143074
|
-
})(exports2.RequestHandlerProtocol || (exports2.RequestHandlerProtocol = {}));
|
|
143075
|
-
exports2.SMITHY_CONTEXT_KEY = SMITHY_CONTEXT_KEY3;
|
|
143076
|
-
exports2.getDefaultClientConfiguration = getDefaultClientConfiguration;
|
|
143077
|
-
exports2.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig16;
|
|
143078
|
-
}
|
|
143079
|
-
});
|
|
143080
|
-
|
|
143081
143081
|
// ../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js
|
|
143082
143082
|
var import_types3, getConfigData;
|
|
143083
143083
|
var init_getConfigData = __esm({
|
|
143084
143084
|
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getConfigData.js"() {
|
|
143085
|
-
import_types3 = __toESM(
|
|
143085
|
+
import_types3 = __toESM(require_dist_cjs());
|
|
143086
143086
|
init_constants3();
|
|
143087
143087
|
getConfigData = /* @__PURE__ */ __name((data2) => Object.entries(data2).filter(([key]) => {
|
|
143088
143088
|
const indexOfSeparator = key.indexOf(CONFIG_PREFIX_SEPARATOR);
|
|
@@ -143127,7 +143127,7 @@ var init_getCredentialsFilepath = __esm({
|
|
|
143127
143127
|
var import_types4, prefixKeyRegex, profileNameBlockList, parseIni;
|
|
143128
143128
|
var init_parseIni = __esm({
|
|
143129
143129
|
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/parseIni.js"() {
|
|
143130
|
-
import_types4 = __toESM(
|
|
143130
|
+
import_types4 = __toESM(require_dist_cjs());
|
|
143131
143131
|
init_constants3();
|
|
143132
143132
|
prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
|
|
143133
143133
|
profileNameBlockList = ["__proto__", "profile __proto__"];
|
|
@@ -143186,14 +143186,14 @@ var init_readFile = __esm({
|
|
|
143186
143186
|
import_promises = require("node:fs/promises");
|
|
143187
143187
|
filePromises = {};
|
|
143188
143188
|
fileIntercept = {};
|
|
143189
|
-
readFile = /* @__PURE__ */ __name((
|
|
143190
|
-
if (fileIntercept[
|
|
143191
|
-
return fileIntercept[
|
|
143189
|
+
readFile = /* @__PURE__ */ __name((path12, options) => {
|
|
143190
|
+
if (fileIntercept[path12] !== void 0) {
|
|
143191
|
+
return fileIntercept[path12];
|
|
143192
143192
|
}
|
|
143193
|
-
if (!filePromises[
|
|
143194
|
-
filePromises[
|
|
143193
|
+
if (!filePromises[path12] || options?.ignoreCache) {
|
|
143194
|
+
filePromises[path12] = (0, import_promises.readFile)(path12, "utf8");
|
|
143195
143195
|
}
|
|
143196
|
-
return filePromises[
|
|
143196
|
+
return filePromises[path12];
|
|
143197
143197
|
}, "readFile");
|
|
143198
143198
|
}
|
|
143199
143199
|
});
|
|
@@ -143335,7 +143335,7 @@ var init_configLoader = __esm({
|
|
|
143335
143335
|
var import_types5, getSmithyContext22;
|
|
143336
143336
|
var init_getSmithyContext2 = __esm({
|
|
143337
143337
|
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/transport/getSmithyContext.js"() {
|
|
143338
|
-
import_types5 = __toESM(
|
|
143338
|
+
import_types5 = __toESM(require_dist_cjs());
|
|
143339
143339
|
getSmithyContext22 = /* @__PURE__ */ __name((context) => context[import_types5.SMITHY_CONTEXT_KEY] || (context[import_types5.SMITHY_CONTEXT_KEY] = {}), "getSmithyContext");
|
|
143340
143340
|
}
|
|
143341
143341
|
});
|
|
@@ -144253,8 +144253,8 @@ var init_createConfigValueProvider = __esm({
|
|
|
144253
144253
|
return endpoint.url.href;
|
|
144254
144254
|
}
|
|
144255
144255
|
if ("hostname" in endpoint) {
|
|
144256
|
-
const { protocol, hostname, port, path:
|
|
144257
|
-
return `${protocol}//${hostname}${port ? ":" + port : ""}${
|
|
144256
|
+
const { protocol, hostname, port, path: path12 } = endpoint;
|
|
144257
|
+
return `${protocol}//${hostname}${port ? ":" + port : ""}${path12}`;
|
|
144258
144258
|
}
|
|
144259
144259
|
}
|
|
144260
144260
|
return endpoint;
|
|
@@ -144685,18 +144685,18 @@ var getAttrPathList;
|
|
|
144685
144685
|
var init_getAttrPathList = __esm({
|
|
144686
144686
|
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttrPathList.js"() {
|
|
144687
144687
|
init_types();
|
|
144688
|
-
getAttrPathList = /* @__PURE__ */ __name((
|
|
144689
|
-
const parts =
|
|
144688
|
+
getAttrPathList = /* @__PURE__ */ __name((path12) => {
|
|
144689
|
+
const parts = path12.split(".");
|
|
144690
144690
|
const pathList = [];
|
|
144691
144691
|
for (const part of parts) {
|
|
144692
144692
|
const squareBracketIndex = part.indexOf("[");
|
|
144693
144693
|
if (squareBracketIndex !== -1) {
|
|
144694
144694
|
if (part.indexOf("]") !== part.length - 1) {
|
|
144695
|
-
throw new EndpointError(`Path: '${
|
|
144695
|
+
throw new EndpointError(`Path: '${path12}' does not end with ']'`);
|
|
144696
144696
|
}
|
|
144697
144697
|
const arrayIndex = part.slice(squareBracketIndex + 1, -1);
|
|
144698
144698
|
if (Number.isNaN(parseInt(arrayIndex))) {
|
|
144699
|
-
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${
|
|
144699
|
+
throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path12}'`);
|
|
144700
144700
|
}
|
|
144701
144701
|
if (squareBracketIndex !== 0) {
|
|
144702
144702
|
pathList.push(part.slice(0, squareBracketIndex));
|
|
@@ -144717,9 +144717,9 @@ var init_getAttr = __esm({
|
|
|
144717
144717
|
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/getAttr.js"() {
|
|
144718
144718
|
init_types();
|
|
144719
144719
|
init_getAttrPathList();
|
|
144720
|
-
getAttr = /* @__PURE__ */ __name((value,
|
|
144720
|
+
getAttr = /* @__PURE__ */ __name((value, path12) => getAttrPathList(path12).reduce((acc, index) => {
|
|
144721
144721
|
if (typeof acc !== "object") {
|
|
144722
|
-
throw new EndpointError(`Index '${index}' in '${
|
|
144722
|
+
throw new EndpointError(`Index '${index}' in '${path12}' not found in '${JSON.stringify(value)}'`);
|
|
144723
144723
|
} else if (Array.isArray(acc)) {
|
|
144724
144724
|
const i16 = parseInt(index);
|
|
144725
144725
|
return acc[i16 < 0 ? acc.length + i16 : i16];
|
|
@@ -144768,7 +144768,7 @@ var init_isIpAddress = __esm({
|
|
|
144768
144768
|
var import_types8, DEFAULT_PORTS, parseURL;
|
|
144769
144769
|
var init_parseURL = __esm({
|
|
144770
144770
|
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/lib/parseURL.js"() {
|
|
144771
|
-
import_types8 = __toESM(
|
|
144771
|
+
import_types8 = __toESM(require_dist_cjs());
|
|
144772
144772
|
init_isIpAddress();
|
|
144773
144773
|
DEFAULT_PORTS = {
|
|
144774
144774
|
[import_types8.EndpointURLScheme.HTTP]: 80,
|
|
@@ -144781,8 +144781,8 @@ var init_parseURL = __esm({
|
|
|
144781
144781
|
return value;
|
|
144782
144782
|
}
|
|
144783
144783
|
if (typeof value === "object" && "hostname" in value) {
|
|
144784
|
-
const { hostname: hostname2, port, protocol: protocol2 = "", path:
|
|
144785
|
-
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${
|
|
144784
|
+
const { hostname: hostname2, port, protocol: protocol2 = "", path: path12 = "", query = {} } = value;
|
|
144785
|
+
const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path12}`);
|
|
144786
144786
|
url.search = Object.entries(query).map(([k16, v]) => `${k16}=${v}`).join("&");
|
|
144787
144787
|
return url;
|
|
144788
144788
|
}
|
|
@@ -146032,7 +146032,7 @@ async function collectStream(stream) {
|
|
|
146032
146032
|
return collected;
|
|
146033
146033
|
}
|
|
146034
146034
|
function readToBase64(blob) {
|
|
146035
|
-
return new Promise((
|
|
146035
|
+
return new Promise((resolve5, reject) => {
|
|
146036
146036
|
const reader = new FileReader();
|
|
146037
146037
|
reader.onloadend = () => {
|
|
146038
146038
|
if (reader.readyState !== 2) {
|
|
@@ -146041,7 +146041,7 @@ function readToBase64(blob) {
|
|
|
146041
146041
|
const result = reader.result ?? "";
|
|
146042
146042
|
const commaIndex = result.indexOf(",");
|
|
146043
146043
|
const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length;
|
|
146044
|
-
|
|
146044
|
+
resolve5(result.substring(dataOffset));
|
|
146045
146045
|
};
|
|
146046
146046
|
reader.onabort = () => reject(new Error("Read aborted"));
|
|
146047
146047
|
reader.onerror = () => reject(reader.error);
|
|
@@ -146173,7 +146173,7 @@ var init_stream_collector = __esm({
|
|
|
146173
146173
|
if (isReadableStreamInstance(stream)) {
|
|
146174
146174
|
return collectReadableStream(stream);
|
|
146175
146175
|
}
|
|
146176
|
-
return new Promise((
|
|
146176
|
+
return new Promise((resolve5, reject) => {
|
|
146177
146177
|
const collector = new Collector();
|
|
146178
146178
|
stream.pipe(collector);
|
|
146179
146179
|
stream.on("error", (err) => {
|
|
@@ -146183,7 +146183,7 @@ var init_stream_collector = __esm({
|
|
|
146183
146183
|
collector.on("error", reject);
|
|
146184
146184
|
collector.on("finish", function() {
|
|
146185
146185
|
const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes));
|
|
146186
|
-
|
|
146186
|
+
resolve5(bytes);
|
|
146187
146187
|
});
|
|
146188
146188
|
});
|
|
146189
146189
|
}, "streamCollector");
|
|
@@ -146971,7 +146971,7 @@ async function* readableToIterable(readStream) {
|
|
|
146971
146971
|
streamEnded = true;
|
|
146972
146972
|
});
|
|
146973
146973
|
while (!generationEnded) {
|
|
146974
|
-
const value = await new Promise((
|
|
146974
|
+
const value = await new Promise((resolve5) => setTimeout(() => resolve5(records.shift()), 0));
|
|
146975
146975
|
if (value) {
|
|
146976
146976
|
yield value;
|
|
146977
146977
|
}
|
|
@@ -147537,11 +147537,11 @@ var init_HttpBindingProtocol3 = __esm({
|
|
|
147537
147537
|
const opTraits = translateTraits2(operationSchema.traits);
|
|
147538
147538
|
if (opTraits.http) {
|
|
147539
147539
|
request.method = opTraits.http[0];
|
|
147540
|
-
const [
|
|
147540
|
+
const [path12, search] = opTraits.http[1].split("?");
|
|
147541
147541
|
if (request.path == "/") {
|
|
147542
|
-
request.path =
|
|
147542
|
+
request.path = path12;
|
|
147543
147543
|
} else {
|
|
147544
|
-
request.path +=
|
|
147544
|
+
request.path += path12;
|
|
147545
147545
|
}
|
|
147546
147546
|
const traitSearchParams = new URLSearchParams(search ?? "");
|
|
147547
147547
|
for (const [key, value] of traitSearchParams) {
|
|
@@ -147949,8 +147949,8 @@ var init_requestBuilder4 = __esm({
|
|
|
147949
147949
|
return this;
|
|
147950
147950
|
}
|
|
147951
147951
|
p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
|
|
147952
|
-
this.resolvePathStack.push((
|
|
147953
|
-
this.path = resolvedPath2(
|
|
147952
|
+
this.resolvePathStack.push((path12) => {
|
|
147953
|
+
this.path = resolvedPath2(path12, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
|
|
147954
147954
|
});
|
|
147955
147955
|
return this;
|
|
147956
147956
|
}
|
|
@@ -148262,7 +148262,7 @@ var init_HttpInterceptingShapeSerializer3 = __esm({
|
|
|
148262
148262
|
var import_types18, Field;
|
|
148263
148263
|
var init_Field = __esm({
|
|
148264
148264
|
"../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/Field.js"() {
|
|
148265
|
-
import_types18 = __toESM(
|
|
148265
|
+
import_types18 = __toESM(require_dist_cjs());
|
|
148266
148266
|
Field = class {
|
|
148267
148267
|
static {
|
|
148268
148268
|
__name(this, "Field");
|
|
@@ -148539,7 +148539,7 @@ var require_runtimeConfig5 = __commonJS({
|
|
|
148539
148539
|
});
|
|
148540
148540
|
|
|
148541
148541
|
// ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
|
|
148542
|
-
var
|
|
148542
|
+
var require_dist_cjs126 = __commonJS({
|
|
148543
148543
|
"../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports2) {
|
|
148544
148544
|
"use strict";
|
|
148545
148545
|
var clientS3 = require_dist_cjs90();
|
|
@@ -148995,7 +148995,7 @@ to input.params.ContentLength in bytes.
|
|
|
148995
148995
|
}
|
|
148996
148996
|
}
|
|
148997
148997
|
async __abortTimeout(abortSignal) {
|
|
148998
|
-
return new Promise((
|
|
148998
|
+
return new Promise((resolve5, reject) => {
|
|
148999
148999
|
abortSignal.onabort = () => {
|
|
149000
149000
|
const abortError = new Error("Upload aborted.");
|
|
149001
149001
|
abortError.name = "AbortError";
|
|
@@ -149053,7 +149053,7 @@ var init_aws = __esm({
|
|
|
149053
149053
|
import_client_secrets_manager = __toESM(require_dist_cjs103());
|
|
149054
149054
|
import_client_sts = __toESM(require_dist_cjs123());
|
|
149055
149055
|
import_credential_providers = __toESM(require_dist_cjs125());
|
|
149056
|
-
import_lib_storage = __toESM(
|
|
149056
|
+
import_lib_storage = __toESM(require_dist_cjs126());
|
|
149057
149057
|
import_config_resolver31 = __toESM(require_dist_cjs25());
|
|
149058
149058
|
import_node_config_provider16 = __toESM(require_dist_cjs29());
|
|
149059
149059
|
USER_AGENT = "cdk-assets";
|
|
@@ -149191,9 +149191,9 @@ var require_lib5 = __commonJS({
|
|
|
149191
149191
|
var require_build = __commonJS({
|
|
149192
149192
|
"../../node_modules/y18n/build/index.cjs"(exports2, module2) {
|
|
149193
149193
|
"use strict";
|
|
149194
|
-
var
|
|
149194
|
+
var fs12 = require("fs");
|
|
149195
149195
|
var util = require("util");
|
|
149196
|
-
var
|
|
149196
|
+
var path12 = require("path");
|
|
149197
149197
|
var shim;
|
|
149198
149198
|
var Y18N = class {
|
|
149199
149199
|
static {
|
|
@@ -149359,14 +149359,14 @@ var require_build = __commonJS({
|
|
|
149359
149359
|
__name(y18n$1, "y18n$1");
|
|
149360
149360
|
var nodePlatformShim = {
|
|
149361
149361
|
fs: {
|
|
149362
|
-
readFileSync:
|
|
149363
|
-
writeFile:
|
|
149362
|
+
readFileSync: fs12.readFileSync,
|
|
149363
|
+
writeFile: fs12.writeFile
|
|
149364
149364
|
},
|
|
149365
149365
|
format: util.format,
|
|
149366
|
-
resolve:
|
|
149366
|
+
resolve: path12.resolve,
|
|
149367
149367
|
exists: /* @__PURE__ */ __name((file) => {
|
|
149368
149368
|
try {
|
|
149369
|
-
return
|
|
149369
|
+
return fs12.statSync(file).isFile();
|
|
149370
149370
|
} catch (err) {
|
|
149371
149371
|
return false;
|
|
149372
149372
|
}
|
|
@@ -149384,8 +149384,8 @@ var require_build2 = __commonJS({
|
|
|
149384
149384
|
"../../node_modules/yargs-parser/build/index.cjs"(exports2, module2) {
|
|
149385
149385
|
"use strict";
|
|
149386
149386
|
var util = require("util");
|
|
149387
|
-
var
|
|
149388
|
-
var
|
|
149387
|
+
var path12 = require("path");
|
|
149388
|
+
var fs12 = require("fs");
|
|
149389
149389
|
function camelCase(str) {
|
|
149390
149390
|
const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
|
|
149391
149391
|
if (!isCamelCase) {
|
|
@@ -150367,13 +150367,13 @@ var require_build2 = __commonJS({
|
|
|
150367
150367
|
return env;
|
|
150368
150368
|
}, "env"),
|
|
150369
150369
|
format: util.format,
|
|
150370
|
-
normalize:
|
|
150371
|
-
resolve:
|
|
150372
|
-
require: /* @__PURE__ */ __name((
|
|
150370
|
+
normalize: path12.normalize,
|
|
150371
|
+
resolve: path12.resolve,
|
|
150372
|
+
require: /* @__PURE__ */ __name((path13) => {
|
|
150373
150373
|
if (typeof require !== "undefined") {
|
|
150374
|
-
return require(
|
|
150375
|
-
} else if (
|
|
150376
|
-
return JSON.parse(
|
|
150374
|
+
return require(path13);
|
|
150375
|
+
} else if (path13.match(/\.json$/)) {
|
|
150376
|
+
return JSON.parse(fs12.readFileSync(path13, "utf8"));
|
|
150377
150377
|
} else {
|
|
150378
150378
|
throw Error("only .json config files are supported in ESM");
|
|
150379
150379
|
}
|
|
@@ -151370,15 +151370,15 @@ var require_route = __commonJS({
|
|
|
151370
151370
|
}
|
|
151371
151371
|
__name(link, "link");
|
|
151372
151372
|
function wrapConversion(toModel, graph) {
|
|
151373
|
-
const
|
|
151373
|
+
const path12 = [graph[toModel].parent, toModel];
|
|
151374
151374
|
let fn = conversions[graph[toModel].parent][toModel];
|
|
151375
151375
|
let cur = graph[toModel].parent;
|
|
151376
151376
|
while (graph[cur].parent) {
|
|
151377
|
-
|
|
151377
|
+
path12.unshift(graph[cur].parent);
|
|
151378
151378
|
fn = link(conversions[graph[cur].parent][cur], fn);
|
|
151379
151379
|
cur = graph[cur].parent;
|
|
151380
151380
|
}
|
|
151381
|
-
fn.conversion =
|
|
151381
|
+
fn.conversion = path12;
|
|
151382
151382
|
return fn;
|
|
151383
151383
|
}
|
|
151384
151384
|
__name(wrapConversion, "wrapConversion");
|
|
@@ -152049,17 +152049,17 @@ var require_build3 = __commonJS({
|
|
|
152049
152049
|
// ../../node_modules/escalade/sync/index.js
|
|
152050
152050
|
var require_sync7 = __commonJS({
|
|
152051
152051
|
"../../node_modules/escalade/sync/index.js"(exports2, module2) {
|
|
152052
|
-
var { dirname: dirname2, resolve:
|
|
152052
|
+
var { dirname: dirname2, resolve: resolve5 } = require("path");
|
|
152053
152053
|
var { readdirSync: readdirSync2, statSync: statSync3 } = require("fs");
|
|
152054
152054
|
module2.exports = function(start, callback) {
|
|
152055
|
-
let dir =
|
|
152055
|
+
let dir = resolve5(".", start);
|
|
152056
152056
|
let tmp, stats = statSync3(dir);
|
|
152057
152057
|
if (!stats.isDirectory()) {
|
|
152058
152058
|
dir = dirname2(dir);
|
|
152059
152059
|
}
|
|
152060
152060
|
while (true) {
|
|
152061
152061
|
tmp = callback(dir, readdirSync2(dir));
|
|
152062
|
-
if (tmp) return
|
|
152062
|
+
if (tmp) return resolve5(dir, tmp);
|
|
152063
152063
|
dir = dirname2(tmp = dir);
|
|
152064
152064
|
if (tmp === dir) break;
|
|
152065
152065
|
}
|
|
@@ -152095,9 +152095,9 @@ var require_get_caller_file = __commonJS({
|
|
|
152095
152095
|
var require_require_directory = __commonJS({
|
|
152096
152096
|
"../../node_modules/require-directory/index.js"(exports2, module2) {
|
|
152097
152097
|
"use strict";
|
|
152098
|
-
var
|
|
152098
|
+
var fs12 = require("fs");
|
|
152099
152099
|
var join13 = require("path").join;
|
|
152100
|
-
var
|
|
152100
|
+
var resolve5 = require("path").resolve;
|
|
152101
152101
|
var dirname2 = require("path").dirname;
|
|
152102
152102
|
var defaultOptions = {
|
|
152103
152103
|
extensions: ["js", "json", "coffee"],
|
|
@@ -152109,22 +152109,22 @@ var require_require_directory = __commonJS({
|
|
|
152109
152109
|
return obj;
|
|
152110
152110
|
}, "visit")
|
|
152111
152111
|
};
|
|
152112
|
-
function checkFileInclusion(
|
|
152112
|
+
function checkFileInclusion(path12, filename, options) {
|
|
152113
152113
|
return (
|
|
152114
152114
|
// verify file has valid extension
|
|
152115
152115
|
new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && // if options.include is a RegExp, evaluate it and make sure the path passes
|
|
152116
|
-
!(options.include && options.include instanceof RegExp && !options.include.test(
|
|
152117
|
-
!(options.include && typeof options.include === "function" && !options.include(
|
|
152118
|
-
!(options.exclude && options.exclude instanceof RegExp && options.exclude.test(
|
|
152119
|
-
!(options.exclude && typeof options.exclude === "function" && options.exclude(
|
|
152116
|
+
!(options.include && options.include instanceof RegExp && !options.include.test(path12)) && // if options.include is a function, evaluate it and make sure the path passes
|
|
152117
|
+
!(options.include && typeof options.include === "function" && !options.include(path12, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
|
|
152118
|
+
!(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path12)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
|
|
152119
|
+
!(options.exclude && typeof options.exclude === "function" && options.exclude(path12, filename))
|
|
152120
152120
|
);
|
|
152121
152121
|
}
|
|
152122
152122
|
__name(checkFileInclusion, "checkFileInclusion");
|
|
152123
|
-
function requireDirectory(m10,
|
|
152123
|
+
function requireDirectory(m10, path12, options) {
|
|
152124
152124
|
var retval = {};
|
|
152125
|
-
if (
|
|
152126
|
-
options =
|
|
152127
|
-
|
|
152125
|
+
if (path12 && !options && typeof path12 !== "string") {
|
|
152126
|
+
options = path12;
|
|
152127
|
+
path12 = null;
|
|
152128
152128
|
}
|
|
152129
152129
|
options = options || {};
|
|
152130
152130
|
for (var prop in defaultOptions) {
|
|
@@ -152132,10 +152132,10 @@ var require_require_directory = __commonJS({
|
|
|
152132
152132
|
options[prop] = defaultOptions[prop];
|
|
152133
152133
|
}
|
|
152134
152134
|
}
|
|
152135
|
-
|
|
152136
|
-
|
|
152137
|
-
var joined = join13(
|
|
152138
|
-
if (
|
|
152135
|
+
path12 = !path12 ? dirname2(m10.filename) : resolve5(dirname2(m10.filename), path12);
|
|
152136
|
+
fs12.readdirSync(path12).forEach(function(filename) {
|
|
152137
|
+
var joined = join13(path12, filename), files, key, obj;
|
|
152138
|
+
if (fs12.statSync(joined).isDirectory() && options.recurse) {
|
|
152139
152139
|
files = requireDirectory(m10, joined, options);
|
|
152140
152140
|
if (Object.keys(files).length) {
|
|
152141
152141
|
retval[options.rename(filename, joined, filename)] = files;
|
|
@@ -153904,15 +153904,15 @@ function log(level, message, stream) {
|
|
|
153904
153904
|
}
|
|
153905
153905
|
}
|
|
153906
153906
|
}
|
|
153907
|
-
var
|
|
153907
|
+
var fs11, path11, logThreshold, VERSION, LOG_LEVELS;
|
|
153908
153908
|
var init_logging = __esm({
|
|
153909
153909
|
"bin/logging.ts"() {
|
|
153910
153910
|
"use strict";
|
|
153911
|
-
|
|
153912
|
-
|
|
153911
|
+
fs11 = __toESM(require("fs"));
|
|
153912
|
+
path11 = __toESM(require("path"));
|
|
153913
153913
|
logThreshold = "info";
|
|
153914
153914
|
VERSION = JSON.parse(
|
|
153915
|
-
|
|
153915
|
+
fs11.readFileSync(path11.join(__dirname, "..", "package.json"), { encoding: "utf-8" })
|
|
153916
153916
|
).version;
|
|
153917
153917
|
LOG_LEVELS = {
|
|
153918
153918
|
verbose: 1,
|