wrangler 3.98.0 → 3.99.0
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/package.json +8 -8
- package/wrangler-dist/cli.d.ts +7 -5
- package/wrangler-dist/cli.js +926 -888
package/wrangler-dist/cli.js
CHANGED
@@ -18110,27 +18110,27 @@ var require_utils2 = __commonJS({
|
|
18110
18110
|
}, 0);
|
18111
18111
|
}
|
18112
18112
|
__name(strlen, "strlen");
|
18113
|
-
function
|
18113
|
+
function repeat2(str, times) {
|
18114
18114
|
return Array(times + 1).join(str);
|
18115
18115
|
}
|
18116
|
-
__name(
|
18116
|
+
__name(repeat2, "repeat");
|
18117
18117
|
function pad2(str, len, pad3, dir) {
|
18118
18118
|
let length = strlen(str);
|
18119
18119
|
if (len + 1 >= length) {
|
18120
18120
|
let padlen = len - length;
|
18121
18121
|
switch (dir) {
|
18122
18122
|
case "right": {
|
18123
|
-
str =
|
18123
|
+
str = repeat2(pad3, padlen) + str;
|
18124
18124
|
break;
|
18125
18125
|
}
|
18126
18126
|
case "center": {
|
18127
18127
|
let right2 = Math.ceil(padlen / 2);
|
18128
18128
|
let left2 = padlen - right2;
|
18129
|
-
str =
|
18129
|
+
str = repeat2(pad3, left2) + str + repeat2(pad3, right2);
|
18130
18130
|
break;
|
18131
18131
|
}
|
18132
18132
|
default: {
|
18133
|
-
str = str +
|
18133
|
+
str = str + repeat2(pad3, padlen);
|
18134
18134
|
break;
|
18135
18135
|
}
|
18136
18136
|
}
|
@@ -18401,7 +18401,7 @@ var require_utils2 = __commonJS({
|
|
18401
18401
|
__name(hyperlink, "hyperlink");
|
18402
18402
|
module3.exports = {
|
18403
18403
|
strlen,
|
18404
|
-
repeat,
|
18404
|
+
repeat: repeat2,
|
18405
18405
|
pad: pad2,
|
18406
18406
|
truncate: truncate4,
|
18407
18407
|
mergeOptions,
|
@@ -33719,7 +33719,7 @@ var require_extension = __commonJS({
|
|
33719
33719
|
return offers;
|
33720
33720
|
}
|
33721
33721
|
__name(parse6, "parse");
|
33722
|
-
function
|
33722
|
+
function format11(extensions) {
|
33723
33723
|
return Object.keys(extensions).map((extension) => {
|
33724
33724
|
let configurations = extensions[extension];
|
33725
33725
|
if (!Array.isArray(configurations))
|
@@ -33736,8 +33736,8 @@ var require_extension = __commonJS({
|
|
33736
33736
|
}).join(", ");
|
33737
33737
|
}).join(", ");
|
33738
33738
|
}
|
33739
|
-
__name(
|
33740
|
-
module3.exports = { format:
|
33739
|
+
__name(format11, "format");
|
33740
|
+
module3.exports = { format: format11, parse: parse6 };
|
33741
33741
|
}
|
33742
33742
|
});
|
33743
33743
|
|
@@ -33771,7 +33771,7 @@ var require_websocket2 = __commonJS({
|
|
33771
33771
|
var {
|
33772
33772
|
EventTarget: { addEventListener, removeEventListener }
|
33773
33773
|
} = require_event_target();
|
33774
|
-
var { format:
|
33774
|
+
var { format: format11, parse: parse6 } = require_extension();
|
33775
33775
|
var { toBuffer } = require_buffer_util();
|
33776
33776
|
var closeTimeout = 30 * 1e3;
|
33777
33777
|
var kAborted = Symbol("kAborted");
|
@@ -34319,7 +34319,7 @@ var require_websocket2 = __commonJS({
|
|
34319
34319
|
false,
|
34320
34320
|
opts.maxPayload
|
34321
34321
|
);
|
34322
|
-
opts.headers["Sec-WebSocket-Extensions"] =
|
34322
|
+
opts.headers["Sec-WebSocket-Extensions"] = format11({
|
34323
34323
|
[PerMessageDeflate.extensionName]: perMessageDeflate.offer()
|
34324
34324
|
});
|
34325
34325
|
}
|
@@ -38720,12 +38720,12 @@ var require_common = __commonJS({
|
|
38720
38720
|
args.unshift("%O");
|
38721
38721
|
}
|
38722
38722
|
let index = 0;
|
38723
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2,
|
38723
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format11) => {
|
38724
38724
|
if (match2 === "%%") {
|
38725
38725
|
return "%";
|
38726
38726
|
}
|
38727
38727
|
index++;
|
38728
|
-
const formatter = createDebug.formatters[
|
38728
|
+
const formatter = createDebug.formatters[format11];
|
38729
38729
|
if (typeof formatter === "function") {
|
38730
38730
|
const val = args[index];
|
38731
38731
|
match2 = formatter.call(self2, val);
|
@@ -39835,12 +39835,12 @@ var require_common2 = __commonJS({
|
|
39835
39835
|
args.unshift("%O");
|
39836
39836
|
}
|
39837
39837
|
let index = 0;
|
39838
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2,
|
39838
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format11) => {
|
39839
39839
|
if (match2 === "%%") {
|
39840
39840
|
return "%";
|
39841
39841
|
}
|
39842
39842
|
index++;
|
39843
|
-
const formatter = createDebug.formatters[
|
39843
|
+
const formatter = createDebug.formatters[format11];
|
39844
39844
|
if (typeof formatter === "function") {
|
39845
39845
|
const val = args[index];
|
39846
39846
|
match2 = formatter.call(self2, val);
|
@@ -40952,8 +40952,8 @@ var require_depd = __commonJS({
|
|
40952
40952
|
process.emit("deprecation", err);
|
40953
40953
|
return;
|
40954
40954
|
}
|
40955
|
-
var
|
40956
|
-
var output =
|
40955
|
+
var format11 = process.stderr.isTTY ? formatColor : formatPlain;
|
40956
|
+
var output = format11.call(this, msg, caller, stack.slice(i));
|
40957
40957
|
process.stderr.write(output + "\n", "utf8");
|
40958
40958
|
}
|
40959
40959
|
__name(log2, "log");
|
@@ -41140,7 +41140,7 @@ var require_bytes = __commonJS({
|
|
41140
41140
|
"use strict";
|
41141
41141
|
init_import_meta_url();
|
41142
41142
|
module3.exports = bytes;
|
41143
|
-
module3.exports.format =
|
41143
|
+
module3.exports.format = format11;
|
41144
41144
|
module3.exports.parse = parse6;
|
41145
41145
|
var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
|
41146
41146
|
var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
|
@@ -41158,12 +41158,12 @@ var require_bytes = __commonJS({
|
|
41158
41158
|
return parse6(value);
|
41159
41159
|
}
|
41160
41160
|
if (typeof value === "number") {
|
41161
|
-
return
|
41161
|
+
return format11(value, options30);
|
41162
41162
|
}
|
41163
41163
|
return null;
|
41164
41164
|
}
|
41165
41165
|
__name(bytes, "bytes");
|
41166
|
-
function
|
41166
|
+
function format11(value, options30) {
|
41167
41167
|
if (!Number.isFinite(value)) {
|
41168
41168
|
return null;
|
41169
41169
|
}
|
@@ -41200,7 +41200,7 @@ var require_bytes = __commonJS({
|
|
41200
41200
|
}
|
41201
41201
|
return str + unitSeparator + unit;
|
41202
41202
|
}
|
41203
|
-
__name(
|
41203
|
+
__name(format11, "format");
|
41204
41204
|
function parse6(val) {
|
41205
41205
|
if (typeof val === "number" && !isNaN(val)) {
|
41206
41206
|
return val;
|
@@ -41238,9 +41238,9 @@ var require_content_type = __commonJS({
|
|
41238
41238
|
var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
|
41239
41239
|
var QUOTE_REGEXP = /([\\"])/g;
|
41240
41240
|
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
41241
|
-
exports2.format =
|
41241
|
+
exports2.format = format11;
|
41242
41242
|
exports2.parse = parse6;
|
41243
|
-
function
|
41243
|
+
function format11(obj) {
|
41244
41244
|
if (!obj || typeof obj !== "object") {
|
41245
41245
|
throw new TypeError("argument obj is required");
|
41246
41246
|
}
|
@@ -41263,7 +41263,7 @@ var require_content_type = __commonJS({
|
|
41263
41263
|
}
|
41264
41264
|
return string;
|
41265
41265
|
}
|
41266
|
-
__name(
|
41266
|
+
__name(format11, "format");
|
41267
41267
|
function parse6(string) {
|
41268
41268
|
if (!string) {
|
41269
41269
|
throw new TypeError("argument string is required");
|
@@ -41896,11 +41896,11 @@ var require_debug2 = __commonJS({
|
|
41896
41896
|
args.unshift("%O");
|
41897
41897
|
}
|
41898
41898
|
var index = 0;
|
41899
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match2,
|
41899
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, function(match2, format11) {
|
41900
41900
|
if (match2 === "%%")
|
41901
41901
|
return match2;
|
41902
41902
|
index++;
|
41903
|
-
var formatter = exports2.formatters[
|
41903
|
+
var formatter = exports2.formatters[format11];
|
41904
41904
|
if ("function" === typeof formatter) {
|
41905
41905
|
var val = args[index];
|
41906
41906
|
match2 = formatter.call(self2, val);
|
@@ -46372,9 +46372,9 @@ var require_media_typer = __commonJS({
|
|
46372
46372
|
var subtypeNameRegExp = /^[A-Za-z0-9][A-Za-z0-9!#$&^_.-]{0,126}$/;
|
46373
46373
|
var typeNameRegExp = /^[A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126}$/;
|
46374
46374
|
var typeRegExp = /^ *([A-Za-z0-9][A-Za-z0-9!#$&^_-]{0,126})\/([A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,126}) *$/;
|
46375
|
-
exports2.format =
|
46375
|
+
exports2.format = format11;
|
46376
46376
|
exports2.parse = parse6;
|
46377
|
-
function
|
46377
|
+
function format11(obj) {
|
46378
46378
|
if (!obj || typeof obj !== "object") {
|
46379
46379
|
throw new TypeError("argument obj is required");
|
46380
46380
|
}
|
@@ -46408,7 +46408,7 @@ var require_media_typer = __commonJS({
|
|
46408
46408
|
}
|
46409
46409
|
return string;
|
46410
46410
|
}
|
46411
|
-
__name(
|
46411
|
+
__name(format11, "format");
|
46412
46412
|
function parse6(string) {
|
46413
46413
|
if (!string) {
|
46414
46414
|
throw new TypeError("argument string is required");
|
@@ -56753,7 +56753,7 @@ var require_utils4 = __commonJS({
|
|
56753
56753
|
return strWithoutPlus;
|
56754
56754
|
}
|
56755
56755
|
}, "decode");
|
56756
|
-
var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind,
|
56756
|
+
var encode = /* @__PURE__ */ __name(function encode2(str, defaultEncoder, charset, kind, format11) {
|
56757
56757
|
if (str.length === 0) {
|
56758
56758
|
return str;
|
56759
56759
|
}
|
@@ -56771,7 +56771,7 @@ var require_utils4 = __commonJS({
|
|
56771
56771
|
var out = "";
|
56772
56772
|
for (var i = 0; i < string.length; ++i) {
|
56773
56773
|
var c2 = string.charCodeAt(i);
|
56774
|
-
if (c2 === 45 || c2 === 46 || c2 === 95 || c2 === 126 || c2 >= 48 && c2 <= 57 || c2 >= 65 && c2 <= 90 || c2 >= 97 && c2 <= 122 ||
|
56774
|
+
if (c2 === 45 || c2 === 46 || c2 === 95 || c2 === 126 || c2 >= 48 && c2 <= 57 || c2 >= 65 && c2 <= 90 || c2 >= 97 && c2 <= 122 || format11 === formats.RFC1738 && (c2 === 40 || c2 === 41)) {
|
56775
56775
|
out += string.charAt(i);
|
56776
56776
|
continue;
|
56777
56777
|
}
|
@@ -56866,7 +56866,7 @@ var require_stringify2 = __commonJS({
|
|
56866
56866
|
indices: /* @__PURE__ */ __name(function indices(prefix, key) {
|
56867
56867
|
return prefix + "[" + key + "]";
|
56868
56868
|
}, "indices"),
|
56869
|
-
repeat: /* @__PURE__ */ __name(function
|
56869
|
+
repeat: /* @__PURE__ */ __name(function repeat2(prefix) {
|
56870
56870
|
return prefix;
|
56871
56871
|
}, "repeat")
|
56872
56872
|
};
|
@@ -56901,7 +56901,7 @@ var require_stringify2 = __commonJS({
|
|
56901
56901
|
return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
|
56902
56902
|
}, "isNonNullishPrimitive");
|
56903
56903
|
var sentinel = {};
|
56904
|
-
var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate,
|
56904
|
+
var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format11, formatter, encodeValuesOnly, charset, sideChannel) {
|
56905
56905
|
var obj = object;
|
56906
56906
|
var tmpSc = sideChannel;
|
56907
56907
|
var step = 0;
|
@@ -56934,22 +56934,22 @@ var require_stringify2 = __commonJS({
|
|
56934
56934
|
}
|
56935
56935
|
if (obj === null) {
|
56936
56936
|
if (strictNullHandling) {
|
56937
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key",
|
56937
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format11) : prefix;
|
56938
56938
|
}
|
56939
56939
|
obj = "";
|
56940
56940
|
}
|
56941
56941
|
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
56942
56942
|
if (encoder) {
|
56943
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key",
|
56943
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format11);
|
56944
56944
|
if (generateArrayPrefix === "comma" && encodeValuesOnly) {
|
56945
56945
|
var valuesArray = split.call(String(obj), ",");
|
56946
56946
|
var valuesJoined = "";
|
56947
56947
|
for (var i = 0; i < valuesArray.length; ++i) {
|
56948
|
-
valuesJoined += (i === 0 ? "" : ",") + formatter(encoder(valuesArray[i], defaults.encoder, charset, "value",
|
56948
|
+
valuesJoined += (i === 0 ? "" : ",") + formatter(encoder(valuesArray[i], defaults.encoder, charset, "value", format11));
|
56949
56949
|
}
|
56950
56950
|
return [formatter(keyValue) + "=" + valuesJoined];
|
56951
56951
|
}
|
56952
|
-
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value",
|
56952
|
+
return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format11))];
|
56953
56953
|
}
|
56954
56954
|
return [formatter(prefix) + "=" + formatter(String(obj))];
|
56955
56955
|
}
|
@@ -56987,7 +56987,7 @@ var require_stringify2 = __commonJS({
|
|
56987
56987
|
sort,
|
56988
56988
|
allowDots,
|
56989
56989
|
serializeDate,
|
56990
|
-
|
56990
|
+
format11,
|
56991
56991
|
formatter,
|
56992
56992
|
encodeValuesOnly,
|
56993
56993
|
charset,
|
@@ -57007,14 +57007,14 @@ var require_stringify2 = __commonJS({
|
|
57007
57007
|
if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
|
57008
57008
|
throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
|
57009
57009
|
}
|
57010
|
-
var
|
57010
|
+
var format11 = formats["default"];
|
57011
57011
|
if (typeof opts.format !== "undefined") {
|
57012
57012
|
if (!has.call(formats.formatters, opts.format)) {
|
57013
57013
|
throw new TypeError("Unknown format option provided.");
|
57014
57014
|
}
|
57015
|
-
|
57015
|
+
format11 = opts.format;
|
57016
57016
|
}
|
57017
|
-
var formatter = formats.formatters[
|
57017
|
+
var formatter = formats.formatters[format11];
|
57018
57018
|
var filter = defaults.filter;
|
57019
57019
|
if (typeof opts.filter === "function" || isArray(opts.filter)) {
|
57020
57020
|
filter = opts.filter;
|
@@ -57029,7 +57029,7 @@ var require_stringify2 = __commonJS({
|
|
57029
57029
|
encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
|
57030
57030
|
encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
57031
57031
|
filter,
|
57032
|
-
format:
|
57032
|
+
format: format11,
|
57033
57033
|
formatter,
|
57034
57034
|
serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
|
57035
57035
|
skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
|
@@ -57983,17 +57983,17 @@ var require_path_to_regexp = __commonJS({
|
|
57983
57983
|
});
|
57984
57984
|
return new RegExp("(?:" + path70.join("|") + ")", flags2);
|
57985
57985
|
}
|
57986
|
-
path70 = ("^" + path70 + (strict ? "" : path70[path70.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match2, slash,
|
57986
|
+
path70 = ("^" + path70 + (strict ? "" : path70[path70.length - 1] === "/" ? "?" : "/?")).replace(/\/\(/g, "/(?:").replace(/([\/\.])/g, "\\$1").replace(/(\\\/)?(\\\.)?:(\w+)(\(.*?\))?(\*)?(\?)?/g, function(match2, slash, format11, key, capture, star, optional, offset) {
|
57987
57987
|
slash = slash || "";
|
57988
|
-
|
57989
|
-
capture = capture || "([^\\/" +
|
57988
|
+
format11 = format11 || "";
|
57989
|
+
capture = capture || "([^\\/" + format11 + "]+?)";
|
57990
57990
|
optional = optional || "";
|
57991
57991
|
keys.push({
|
57992
57992
|
name: key,
|
57993
57993
|
optional: !!optional,
|
57994
57994
|
offset: offset + extraOffset
|
57995
57995
|
});
|
57996
|
-
var result = "" + (optional ? "" : slash) + "(?:" +
|
57996
|
+
var result = "" + (optional ? "" : slash) + "(?:" + format11 + (optional ? slash : "") + capture + (star ? "((?:[\\/" + format11 + "].+?)?)" : "") + ")" + optional;
|
57997
57997
|
extraOffset += result.length - match2.length;
|
57998
57998
|
return result;
|
57999
57999
|
}).replace(/\*/g, function(star, index2) {
|
@@ -58864,7 +58864,7 @@ var require_content_disposition = __commonJS({
|
|
58864
58864
|
var opts = options30 || {};
|
58865
58865
|
var type = opts.type || "attachment";
|
58866
58866
|
var params = createparams(filename, opts.fallback);
|
58867
|
-
return
|
58867
|
+
return format11(new ContentDisposition(type, params));
|
58868
58868
|
}
|
58869
58869
|
__name(contentDisposition, "contentDisposition");
|
58870
58870
|
function createparams(filename, fallback) {
|
@@ -58897,7 +58897,7 @@ var require_content_disposition = __commonJS({
|
|
58897
58897
|
return params;
|
58898
58898
|
}
|
58899
58899
|
__name(createparams, "createparams");
|
58900
|
-
function
|
58900
|
+
function format11(obj) {
|
58901
58901
|
var parameters = obj.parameters;
|
58902
58902
|
var type = obj.type;
|
58903
58903
|
if (!type || typeof type !== "string" || !TOKEN_REGEXP.test(type)) {
|
@@ -58915,7 +58915,7 @@ var require_content_disposition = __commonJS({
|
|
58915
58915
|
}
|
58916
58916
|
return string;
|
58917
58917
|
}
|
58918
|
-
__name(
|
58918
|
+
__name(format11, "format");
|
58919
58919
|
function decodefield(str) {
|
58920
58920
|
var match2 = EXT_VALUE_REGEXP.exec(str);
|
58921
58921
|
if (!match2) {
|
@@ -69624,10 +69624,10 @@ var require_ajv = __commonJS({
|
|
69624
69624
|
return text.slice(0, -separator.length);
|
69625
69625
|
}
|
69626
69626
|
__name(errorsText, "errorsText");
|
69627
|
-
function addFormat(name2,
|
69628
|
-
if (typeof
|
69629
|
-
|
69630
|
-
this._formats[name2] =
|
69627
|
+
function addFormat(name2, format11) {
|
69628
|
+
if (typeof format11 == "string")
|
69629
|
+
format11 = new RegExp(format11);
|
69630
|
+
this._formats[name2] = format11;
|
69631
69631
|
return this;
|
69632
69632
|
}
|
69633
69633
|
__name(addFormat, "addFormat");
|
@@ -69659,8 +69659,8 @@ var require_ajv = __commonJS({
|
|
69659
69659
|
__name(addInitialSchemas, "addInitialSchemas");
|
69660
69660
|
function addInitialFormats(self2) {
|
69661
69661
|
for (var name2 in self2._opts.formats) {
|
69662
|
-
var
|
69663
|
-
self2.addFormat(name2,
|
69662
|
+
var format11 = self2._opts.formats[name2];
|
69663
|
+
self2.addFormat(name2, format11);
|
69664
69664
|
}
|
69665
69665
|
}
|
69666
69666
|
__name(addInitialFormats, "addInitialFormats");
|
@@ -72142,12 +72142,12 @@ var require_fast_json_stringify = __commonJS({
|
|
72142
72142
|
date: "$asDate",
|
72143
72143
|
time: "$asTime"
|
72144
72144
|
};
|
72145
|
-
function getStringSerializer(
|
72146
|
-
return stringSerializerMap[
|
72145
|
+
function getStringSerializer(format11) {
|
72146
|
+
return stringSerializerMap[format11] || "$asString";
|
72147
72147
|
}
|
72148
72148
|
__name(getStringSerializer, "getStringSerializer");
|
72149
|
-
function getTestSerializer(
|
72150
|
-
return stringSerializerMap[
|
72149
|
+
function getTestSerializer(format11) {
|
72150
|
+
return stringSerializerMap[format11];
|
72151
72151
|
}
|
72152
72152
|
__name(getTestSerializer, "getTestSerializer");
|
72153
72153
|
var asFunctions = `
|
@@ -72317,8 +72317,8 @@ function $asStringSmall (str) {
|
|
72317
72317
|
pp[regex2] = ppLocation.schema;
|
72318
72318
|
}
|
72319
72319
|
const type = pp[regex2].type;
|
72320
|
-
const
|
72321
|
-
const stringSerializer = getStringSerializer(
|
72320
|
+
const format11 = pp[regex2].format;
|
72321
|
+
const stringSerializer = getStringSerializer(format11);
|
72322
72322
|
try {
|
72323
72323
|
RegExp(regex2);
|
72324
72324
|
} catch (err) {
|
@@ -72410,8 +72410,8 @@ function $asStringSmall (str) {
|
|
72410
72410
|
ap = apLocation.schema;
|
72411
72411
|
}
|
72412
72412
|
const type = ap.type;
|
72413
|
-
const
|
72414
|
-
const stringSerializer = getStringSerializer(
|
72413
|
+
const format11 = ap.format;
|
72414
|
+
const stringSerializer = getStringSerializer(format11);
|
72415
72415
|
if (type === "object") {
|
72416
72416
|
code += `${buildObject(apLocation, "", "buildObjectAP")}
|
72417
72417
|
${addComma}
|
@@ -76673,11 +76673,11 @@ var require_picomatch = __commonJS({
|
|
76673
76673
|
return { isMatch: false, output: "" };
|
76674
76674
|
}
|
76675
76675
|
const opts = options30 || {};
|
76676
|
-
const
|
76676
|
+
const format11 = opts.format || (posix2 ? utils.toPosixSlashes : null);
|
76677
76677
|
let match2 = input === glob;
|
76678
|
-
let output = match2 &&
|
76678
|
+
let output = match2 && format11 ? format11(input) : input;
|
76679
76679
|
if (match2 === false) {
|
76680
|
-
output =
|
76680
|
+
output = format11 ? format11(input) : input;
|
76681
76681
|
match2 = output === glob;
|
76682
76682
|
}
|
76683
76683
|
if (match2 === false || opts.capture === true) {
|
@@ -76809,9 +76809,9 @@ var require_colors2 = __commonJS({
|
|
76809
76809
|
}
|
76810
76810
|
});
|
76811
76811
|
|
76812
|
-
// ../../node_modules/.pnpm/semver@7.
|
76812
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js
|
76813
76813
|
var require_constants9 = __commonJS({
|
76814
|
-
"../../node_modules/.pnpm/semver@7.
|
76814
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/constants.js"(exports2, module3) {
|
76815
76815
|
init_import_meta_url();
|
76816
76816
|
var SEMVER_SPEC_VERSION = "2.0.0";
|
76817
76817
|
var MAX_LENGTH = 256;
|
@@ -76841,9 +76841,9 @@ var require_constants9 = __commonJS({
|
|
76841
76841
|
}
|
76842
76842
|
});
|
76843
76843
|
|
76844
|
-
// ../../node_modules/.pnpm/semver@7.
|
76844
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js
|
76845
76845
|
var require_debug3 = __commonJS({
|
76846
|
-
"../../node_modules/.pnpm/semver@7.
|
76846
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/debug.js"(exports2, module3) {
|
76847
76847
|
init_import_meta_url();
|
76848
76848
|
var debug = typeof process === "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...args) => console.error("SEMVER", ...args) : () => {
|
76849
76849
|
};
|
@@ -76851,9 +76851,9 @@ var require_debug3 = __commonJS({
|
|
76851
76851
|
}
|
76852
76852
|
});
|
76853
76853
|
|
76854
|
-
// ../../node_modules/.pnpm/semver@7.
|
76854
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js
|
76855
76855
|
var require_re = __commonJS({
|
76856
|
-
"../../node_modules/.pnpm/semver@7.
|
76856
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/re.js"(exports2, module3) {
|
76857
76857
|
init_import_meta_url();
|
76858
76858
|
var {
|
76859
76859
|
MAX_SAFE_COMPONENT_LENGTH,
|
@@ -76910,8 +76910,11 @@ var require_re = __commonJS({
|
|
76910
76910
|
createToken("XRANGEPLAINLOOSE", `[v=\\s]*(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:\\.(${src[t3.XRANGEIDENTIFIERLOOSE]})(?:${src[t3.PRERELEASELOOSE]})?${src[t3.BUILD]}?)?)?`);
|
76911
76911
|
createToken("XRANGE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAIN]}$`);
|
76912
76912
|
createToken("XRANGELOOSE", `^${src[t3.GTLT]}\\s*${src[t3.XRANGEPLAINLOOSE]}$`);
|
76913
|
-
createToken("
|
76913
|
+
createToken("COERCEPLAIN", `${"(^|[^\\d])(\\d{1,"}${MAX_SAFE_COMPONENT_LENGTH}})(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?(?:\\.(\\d{1,${MAX_SAFE_COMPONENT_LENGTH}}))?`);
|
76914
|
+
createToken("COERCE", `${src[t3.COERCEPLAIN]}(?:$|[^\\d])`);
|
76915
|
+
createToken("COERCEFULL", src[t3.COERCEPLAIN] + `(?:${src[t3.PRERELEASE]})?(?:${src[t3.BUILD]})?(?:$|[^\\d])`);
|
76914
76916
|
createToken("COERCERTL", src[t3.COERCE], true);
|
76917
|
+
createToken("COERCERTLFULL", src[t3.COERCEFULL], true);
|
76915
76918
|
createToken("LONETILDE", "(?:~>?)");
|
76916
76919
|
createToken("TILDETRIM", `(\\s*)${src[t3.LONETILDE]}\\s+`, true);
|
76917
76920
|
exports2.tildeTrimReplace = "$1~";
|
@@ -76934,9 +76937,9 @@ var require_re = __commonJS({
|
|
76934
76937
|
}
|
76935
76938
|
});
|
76936
76939
|
|
76937
|
-
// ../../node_modules/.pnpm/semver@7.
|
76940
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js
|
76938
76941
|
var require_parse_options = __commonJS({
|
76939
|
-
"../../node_modules/.pnpm/semver@7.
|
76942
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/parse-options.js"(exports2, module3) {
|
76940
76943
|
init_import_meta_url();
|
76941
76944
|
var looseOption = Object.freeze({ loose: true });
|
76942
76945
|
var emptyOpts = Object.freeze({});
|
@@ -76953,9 +76956,9 @@ var require_parse_options = __commonJS({
|
|
76953
76956
|
}
|
76954
76957
|
});
|
76955
76958
|
|
76956
|
-
// ../../node_modules/.pnpm/semver@7.
|
76959
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js
|
76957
76960
|
var require_identifiers = __commonJS({
|
76958
|
-
"../../node_modules/.pnpm/semver@7.
|
76961
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/identifiers.js"(exports2, module3) {
|
76959
76962
|
init_import_meta_url();
|
76960
76963
|
var numeric = /^[0-9]+$/;
|
76961
76964
|
var compareIdentifiers = /* @__PURE__ */ __name((a, b2) => {
|
@@ -76975,9 +76978,9 @@ var require_identifiers = __commonJS({
|
|
76975
76978
|
}
|
76976
76979
|
});
|
76977
76980
|
|
76978
|
-
// ../../node_modules/.pnpm/semver@7.
|
76981
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js
|
76979
76982
|
var require_semver = __commonJS({
|
76980
|
-
"../../node_modules/.pnpm/semver@7.
|
76983
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/semver.js"(exports2, module3) {
|
76981
76984
|
init_import_meta_url();
|
76982
76985
|
var debug = require_debug3();
|
76983
76986
|
var { MAX_LENGTH, MAX_SAFE_INTEGER } = require_constants9();
|
@@ -77104,7 +77107,7 @@ var require_semver = __commonJS({
|
|
77104
77107
|
do {
|
77105
77108
|
const a = this.build[i];
|
77106
77109
|
const b2 = other.build[i];
|
77107
|
-
debug("
|
77110
|
+
debug("build compare", i, a, b2);
|
77108
77111
|
if (a === void 0 && b2 === void 0) {
|
77109
77112
|
return 0;
|
77110
77113
|
} else if (b2 === void 0) {
|
@@ -77219,9 +77222,9 @@ var require_semver = __commonJS({
|
|
77219
77222
|
}
|
77220
77223
|
});
|
77221
77224
|
|
77222
|
-
// ../../node_modules/.pnpm/semver@7.
|
77225
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js
|
77223
77226
|
var require_parse7 = __commonJS({
|
77224
|
-
"../../node_modules/.pnpm/semver@7.
|
77227
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/parse.js"(exports2, module3) {
|
77225
77228
|
init_import_meta_url();
|
77226
77229
|
var SemVer = require_semver();
|
77227
77230
|
var parse6 = /* @__PURE__ */ __name((version4, options30, throwErrors = false) => {
|
@@ -77241,9 +77244,9 @@ var require_parse7 = __commonJS({
|
|
77241
77244
|
}
|
77242
77245
|
});
|
77243
77246
|
|
77244
|
-
// ../../node_modules/.pnpm/semver@7.
|
77247
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js
|
77245
77248
|
var require_valid = __commonJS({
|
77246
|
-
"../../node_modules/.pnpm/semver@7.
|
77249
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/valid.js"(exports2, module3) {
|
77247
77250
|
init_import_meta_url();
|
77248
77251
|
var parse6 = require_parse7();
|
77249
77252
|
var valid = /* @__PURE__ */ __name((version4, options30) => {
|
@@ -77254,9 +77257,9 @@ var require_valid = __commonJS({
|
|
77254
77257
|
}
|
77255
77258
|
});
|
77256
77259
|
|
77257
|
-
// ../../node_modules/.pnpm/semver@7.
|
77260
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js
|
77258
77261
|
var require_clean = __commonJS({
|
77259
|
-
"../../node_modules/.pnpm/semver@7.
|
77262
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/clean.js"(exports2, module3) {
|
77260
77263
|
init_import_meta_url();
|
77261
77264
|
var parse6 = require_parse7();
|
77262
77265
|
var clean = /* @__PURE__ */ __name((version4, options30) => {
|
@@ -77267,9 +77270,9 @@ var require_clean = __commonJS({
|
|
77267
77270
|
}
|
77268
77271
|
});
|
77269
77272
|
|
77270
|
-
// ../../node_modules/.pnpm/semver@7.
|
77273
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js
|
77271
77274
|
var require_inc = __commonJS({
|
77272
|
-
"../../node_modules/.pnpm/semver@7.
|
77275
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/inc.js"(exports2, module3) {
|
77273
77276
|
init_import_meta_url();
|
77274
77277
|
var SemVer = require_semver();
|
77275
77278
|
var inc = /* @__PURE__ */ __name((version4, release2, options30, identifier, identifierBase) => {
|
@@ -77291,9 +77294,9 @@ var require_inc = __commonJS({
|
|
77291
77294
|
}
|
77292
77295
|
});
|
77293
77296
|
|
77294
|
-
// ../../node_modules/.pnpm/semver@7.
|
77297
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js
|
77295
77298
|
var require_diff = __commonJS({
|
77296
|
-
"../../node_modules/.pnpm/semver@7.
|
77299
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/diff.js"(exports2, module3) {
|
77297
77300
|
init_import_meta_url();
|
77298
77301
|
var parse6 = require_parse7();
|
77299
77302
|
var diff = /* @__PURE__ */ __name((version1, version22) => {
|
@@ -77336,9 +77339,9 @@ var require_diff = __commonJS({
|
|
77336
77339
|
}
|
77337
77340
|
});
|
77338
77341
|
|
77339
|
-
// ../../node_modules/.pnpm/semver@7.
|
77342
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js
|
77340
77343
|
var require_major = __commonJS({
|
77341
|
-
"../../node_modules/.pnpm/semver@7.
|
77344
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/major.js"(exports2, module3) {
|
77342
77345
|
init_import_meta_url();
|
77343
77346
|
var SemVer = require_semver();
|
77344
77347
|
var major = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).major, "major");
|
@@ -77346,9 +77349,9 @@ var require_major = __commonJS({
|
|
77346
77349
|
}
|
77347
77350
|
});
|
77348
77351
|
|
77349
|
-
// ../../node_modules/.pnpm/semver@7.
|
77352
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js
|
77350
77353
|
var require_minor = __commonJS({
|
77351
|
-
"../../node_modules/.pnpm/semver@7.
|
77354
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/minor.js"(exports2, module3) {
|
77352
77355
|
init_import_meta_url();
|
77353
77356
|
var SemVer = require_semver();
|
77354
77357
|
var minor = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).minor, "minor");
|
@@ -77356,9 +77359,9 @@ var require_minor = __commonJS({
|
|
77356
77359
|
}
|
77357
77360
|
});
|
77358
77361
|
|
77359
|
-
// ../../node_modules/.pnpm/semver@7.
|
77362
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js
|
77360
77363
|
var require_patch = __commonJS({
|
77361
|
-
"../../node_modules/.pnpm/semver@7.
|
77364
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/patch.js"(exports2, module3) {
|
77362
77365
|
init_import_meta_url();
|
77363
77366
|
var SemVer = require_semver();
|
77364
77367
|
var patch = /* @__PURE__ */ __name((a, loose) => new SemVer(a, loose).patch, "patch");
|
@@ -77366,9 +77369,9 @@ var require_patch = __commonJS({
|
|
77366
77369
|
}
|
77367
77370
|
});
|
77368
77371
|
|
77369
|
-
// ../../node_modules/.pnpm/semver@7.
|
77372
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js
|
77370
77373
|
var require_prerelease = __commonJS({
|
77371
|
-
"../../node_modules/.pnpm/semver@7.
|
77374
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/prerelease.js"(exports2, module3) {
|
77372
77375
|
init_import_meta_url();
|
77373
77376
|
var parse6 = require_parse7();
|
77374
77377
|
var prerelease = /* @__PURE__ */ __name((version4, options30) => {
|
@@ -77379,9 +77382,9 @@ var require_prerelease = __commonJS({
|
|
77379
77382
|
}
|
77380
77383
|
});
|
77381
77384
|
|
77382
|
-
// ../../node_modules/.pnpm/semver@7.
|
77385
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js
|
77383
77386
|
var require_compare = __commonJS({
|
77384
|
-
"../../node_modules/.pnpm/semver@7.
|
77387
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare.js"(exports2, module3) {
|
77385
77388
|
init_import_meta_url();
|
77386
77389
|
var SemVer = require_semver();
|
77387
77390
|
var compare = /* @__PURE__ */ __name((a, b2, loose) => new SemVer(a, loose).compare(new SemVer(b2, loose)), "compare");
|
@@ -77389,9 +77392,9 @@ var require_compare = __commonJS({
|
|
77389
77392
|
}
|
77390
77393
|
});
|
77391
77394
|
|
77392
|
-
// ../../node_modules/.pnpm/semver@7.
|
77395
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js
|
77393
77396
|
var require_rcompare = __commonJS({
|
77394
|
-
"../../node_modules/.pnpm/semver@7.
|
77397
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rcompare.js"(exports2, module3) {
|
77395
77398
|
init_import_meta_url();
|
77396
77399
|
var compare = require_compare();
|
77397
77400
|
var rcompare = /* @__PURE__ */ __name((a, b2, loose) => compare(b2, a, loose), "rcompare");
|
@@ -77399,9 +77402,9 @@ var require_rcompare = __commonJS({
|
|
77399
77402
|
}
|
77400
77403
|
});
|
77401
77404
|
|
77402
|
-
// ../../node_modules/.pnpm/semver@7.
|
77405
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js
|
77403
77406
|
var require_compare_loose = __commonJS({
|
77404
|
-
"../../node_modules/.pnpm/semver@7.
|
77407
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-loose.js"(exports2, module3) {
|
77405
77408
|
init_import_meta_url();
|
77406
77409
|
var compare = require_compare();
|
77407
77410
|
var compareLoose = /* @__PURE__ */ __name((a, b2) => compare(a, b2, true), "compareLoose");
|
@@ -77409,9 +77412,9 @@ var require_compare_loose = __commonJS({
|
|
77409
77412
|
}
|
77410
77413
|
});
|
77411
77414
|
|
77412
|
-
// ../../node_modules/.pnpm/semver@7.
|
77415
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js
|
77413
77416
|
var require_compare_build = __commonJS({
|
77414
|
-
"../../node_modules/.pnpm/semver@7.
|
77417
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/compare-build.js"(exports2, module3) {
|
77415
77418
|
init_import_meta_url();
|
77416
77419
|
var SemVer = require_semver();
|
77417
77420
|
var compareBuild = /* @__PURE__ */ __name((a, b2, loose) => {
|
@@ -77423,9 +77426,9 @@ var require_compare_build = __commonJS({
|
|
77423
77426
|
}
|
77424
77427
|
});
|
77425
77428
|
|
77426
|
-
// ../../node_modules/.pnpm/semver@7.
|
77429
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js
|
77427
77430
|
var require_sort = __commonJS({
|
77428
|
-
"../../node_modules/.pnpm/semver@7.
|
77431
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/sort.js"(exports2, module3) {
|
77429
77432
|
init_import_meta_url();
|
77430
77433
|
var compareBuild = require_compare_build();
|
77431
77434
|
var sort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b2) => compareBuild(a, b2, loose)), "sort");
|
@@ -77433,9 +77436,9 @@ var require_sort = __commonJS({
|
|
77433
77436
|
}
|
77434
77437
|
});
|
77435
77438
|
|
77436
|
-
// ../../node_modules/.pnpm/semver@7.
|
77439
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js
|
77437
77440
|
var require_rsort = __commonJS({
|
77438
|
-
"../../node_modules/.pnpm/semver@7.
|
77441
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/rsort.js"(exports2, module3) {
|
77439
77442
|
init_import_meta_url();
|
77440
77443
|
var compareBuild = require_compare_build();
|
77441
77444
|
var rsort = /* @__PURE__ */ __name((list, loose) => list.sort((a, b2) => compareBuild(b2, a, loose)), "rsort");
|
@@ -77443,9 +77446,9 @@ var require_rsort = __commonJS({
|
|
77443
77446
|
}
|
77444
77447
|
});
|
77445
77448
|
|
77446
|
-
// ../../node_modules/.pnpm/semver@7.
|
77449
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js
|
77447
77450
|
var require_gt = __commonJS({
|
77448
|
-
"../../node_modules/.pnpm/semver@7.
|
77451
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gt.js"(exports2, module3) {
|
77449
77452
|
init_import_meta_url();
|
77450
77453
|
var compare = require_compare();
|
77451
77454
|
var gt = /* @__PURE__ */ __name((a, b2, loose) => compare(a, b2, loose) > 0, "gt");
|
@@ -77453,9 +77456,9 @@ var require_gt = __commonJS({
|
|
77453
77456
|
}
|
77454
77457
|
});
|
77455
77458
|
|
77456
|
-
// ../../node_modules/.pnpm/semver@7.
|
77459
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js
|
77457
77460
|
var require_lt = __commonJS({
|
77458
|
-
"../../node_modules/.pnpm/semver@7.
|
77461
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lt.js"(exports2, module3) {
|
77459
77462
|
init_import_meta_url();
|
77460
77463
|
var compare = require_compare();
|
77461
77464
|
var lt2 = /* @__PURE__ */ __name((a, b2, loose) => compare(a, b2, loose) < 0, "lt");
|
@@ -77463,9 +77466,9 @@ var require_lt = __commonJS({
|
|
77463
77466
|
}
|
77464
77467
|
});
|
77465
77468
|
|
77466
|
-
// ../../node_modules/.pnpm/semver@7.
|
77469
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js
|
77467
77470
|
var require_eq = __commonJS({
|
77468
|
-
"../../node_modules/.pnpm/semver@7.
|
77471
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/eq.js"(exports2, module3) {
|
77469
77472
|
init_import_meta_url();
|
77470
77473
|
var compare = require_compare();
|
77471
77474
|
var eq = /* @__PURE__ */ __name((a, b2, loose) => compare(a, b2, loose) === 0, "eq");
|
@@ -77473,9 +77476,9 @@ var require_eq = __commonJS({
|
|
77473
77476
|
}
|
77474
77477
|
});
|
77475
77478
|
|
77476
|
-
// ../../node_modules/.pnpm/semver@7.
|
77479
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js
|
77477
77480
|
var require_neq = __commonJS({
|
77478
|
-
"../../node_modules/.pnpm/semver@7.
|
77481
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/neq.js"(exports2, module3) {
|
77479
77482
|
init_import_meta_url();
|
77480
77483
|
var compare = require_compare();
|
77481
77484
|
var neq = /* @__PURE__ */ __name((a, b2, loose) => compare(a, b2, loose) !== 0, "neq");
|
@@ -77483,9 +77486,9 @@ var require_neq = __commonJS({
|
|
77483
77486
|
}
|
77484
77487
|
});
|
77485
77488
|
|
77486
|
-
// ../../node_modules/.pnpm/semver@7.
|
77489
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js
|
77487
77490
|
var require_gte = __commonJS({
|
77488
|
-
"../../node_modules/.pnpm/semver@7.
|
77491
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/gte.js"(exports2, module3) {
|
77489
77492
|
init_import_meta_url();
|
77490
77493
|
var compare = require_compare();
|
77491
77494
|
var gte = /* @__PURE__ */ __name((a, b2, loose) => compare(a, b2, loose) >= 0, "gte");
|
@@ -77493,9 +77496,9 @@ var require_gte = __commonJS({
|
|
77493
77496
|
}
|
77494
77497
|
});
|
77495
77498
|
|
77496
|
-
// ../../node_modules/.pnpm/semver@7.
|
77499
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js
|
77497
77500
|
var require_lte = __commonJS({
|
77498
|
-
"../../node_modules/.pnpm/semver@7.
|
77501
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/lte.js"(exports2, module3) {
|
77499
77502
|
init_import_meta_url();
|
77500
77503
|
var compare = require_compare();
|
77501
77504
|
var lte = /* @__PURE__ */ __name((a, b2, loose) => compare(a, b2, loose) <= 0, "lte");
|
@@ -77503,9 +77506,9 @@ var require_lte = __commonJS({
|
|
77503
77506
|
}
|
77504
77507
|
});
|
77505
77508
|
|
77506
|
-
// ../../node_modules/.pnpm/semver@7.
|
77509
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js
|
77507
77510
|
var require_cmp = __commonJS({
|
77508
|
-
"../../node_modules/.pnpm/semver@7.
|
77511
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/cmp.js"(exports2, module3) {
|
77509
77512
|
init_import_meta_url();
|
77510
77513
|
var eq = require_eq();
|
77511
77514
|
var neq = require_neq();
|
@@ -77553,9 +77556,9 @@ var require_cmp = __commonJS({
|
|
77553
77556
|
}
|
77554
77557
|
});
|
77555
77558
|
|
77556
|
-
// ../../node_modules/.pnpm/semver@7.
|
77559
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js
|
77557
77560
|
var require_coerce = __commonJS({
|
77558
|
-
"../../node_modules/.pnpm/semver@7.
|
77561
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/coerce.js"(exports2, module3) {
|
77559
77562
|
init_import_meta_url();
|
77560
77563
|
var SemVer = require_semver();
|
77561
77564
|
var parse6 = require_parse7();
|
@@ -77573,693 +77576,76 @@ var require_coerce = __commonJS({
|
|
77573
77576
|
options30 = options30 || {};
|
77574
77577
|
let match2 = null;
|
77575
77578
|
if (!options30.rtl) {
|
77576
|
-
match2 = version4.match(re[t3.COERCE]);
|
77579
|
+
match2 = version4.match(options30.includePrerelease ? re[t3.COERCEFULL] : re[t3.COERCE]);
|
77577
77580
|
} else {
|
77581
|
+
const coerceRtlRegex = options30.includePrerelease ? re[t3.COERCERTLFULL] : re[t3.COERCERTL];
|
77578
77582
|
let next;
|
77579
|
-
while ((next =
|
77583
|
+
while ((next = coerceRtlRegex.exec(version4)) && (!match2 || match2.index + match2[0].length !== version4.length)) {
|
77580
77584
|
if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
|
77581
77585
|
match2 = next;
|
77582
77586
|
}
|
77583
|
-
|
77587
|
+
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
77584
77588
|
}
|
77585
|
-
|
77589
|
+
coerceRtlRegex.lastIndex = -1;
|
77586
77590
|
}
|
77587
77591
|
if (match2 === null) {
|
77588
77592
|
return null;
|
77589
77593
|
}
|
77590
|
-
|
77594
|
+
const major = match2[2];
|
77595
|
+
const minor = match2[3] || "0";
|
77596
|
+
const patch = match2[4] || "0";
|
77597
|
+
const prerelease = options30.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
77598
|
+
const build5 = options30.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
77599
|
+
return parse6(`${major}.${minor}.${patch}${prerelease}${build5}`, options30);
|
77591
77600
|
}, "coerce");
|
77592
77601
|
module3.exports = coerce2;
|
77593
77602
|
}
|
77594
77603
|
});
|
77595
77604
|
|
77596
|
-
// ../../node_modules/.pnpm/
|
77597
|
-
var
|
77598
|
-
"../../node_modules/.pnpm/
|
77599
|
-
"use strict";
|
77605
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js
|
77606
|
+
var require_lrucache = __commonJS({
|
77607
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/internal/lrucache.js"(exports2, module3) {
|
77600
77608
|
init_import_meta_url();
|
77601
|
-
module3.exports = function(Yallist) {
|
77602
|
-
Yallist.prototype[Symbol.iterator] = function* () {
|
77603
|
-
for (let walker = this.head; walker; walker = walker.next) {
|
77604
|
-
yield walker.value;
|
77605
|
-
}
|
77606
|
-
};
|
77607
|
-
};
|
77608
|
-
}
|
77609
|
-
});
|
77610
|
-
|
77611
|
-
// ../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js
|
77612
|
-
var require_yallist = __commonJS({
|
77613
|
-
"../../node_modules/.pnpm/yallist@4.0.0/node_modules/yallist/yallist.js"(exports2, module3) {
|
77614
|
-
"use strict";
|
77615
|
-
init_import_meta_url();
|
77616
|
-
module3.exports = Yallist;
|
77617
|
-
Yallist.Node = Node2;
|
77618
|
-
Yallist.create = Yallist;
|
77619
|
-
function Yallist(list) {
|
77620
|
-
var self2 = this;
|
77621
|
-
if (!(self2 instanceof Yallist)) {
|
77622
|
-
self2 = new Yallist();
|
77623
|
-
}
|
77624
|
-
self2.tail = null;
|
77625
|
-
self2.head = null;
|
77626
|
-
self2.length = 0;
|
77627
|
-
if (list && typeof list.forEach === "function") {
|
77628
|
-
list.forEach(function(item) {
|
77629
|
-
self2.push(item);
|
77630
|
-
});
|
77631
|
-
} else if (arguments.length > 0) {
|
77632
|
-
for (var i = 0, l2 = arguments.length; i < l2; i++) {
|
77633
|
-
self2.push(arguments[i]);
|
77634
|
-
}
|
77635
|
-
}
|
77636
|
-
return self2;
|
77637
|
-
}
|
77638
|
-
__name(Yallist, "Yallist");
|
77639
|
-
Yallist.prototype.removeNode = function(node2) {
|
77640
|
-
if (node2.list !== this) {
|
77641
|
-
throw new Error("removing node which does not belong to this list");
|
77642
|
-
}
|
77643
|
-
var next = node2.next;
|
77644
|
-
var prev = node2.prev;
|
77645
|
-
if (next) {
|
77646
|
-
next.prev = prev;
|
77647
|
-
}
|
77648
|
-
if (prev) {
|
77649
|
-
prev.next = next;
|
77650
|
-
}
|
77651
|
-
if (node2 === this.head) {
|
77652
|
-
this.head = next;
|
77653
|
-
}
|
77654
|
-
if (node2 === this.tail) {
|
77655
|
-
this.tail = prev;
|
77656
|
-
}
|
77657
|
-
node2.list.length--;
|
77658
|
-
node2.next = null;
|
77659
|
-
node2.prev = null;
|
77660
|
-
node2.list = null;
|
77661
|
-
return next;
|
77662
|
-
};
|
77663
|
-
Yallist.prototype.unshiftNode = function(node2) {
|
77664
|
-
if (node2 === this.head) {
|
77665
|
-
return;
|
77666
|
-
}
|
77667
|
-
if (node2.list) {
|
77668
|
-
node2.list.removeNode(node2);
|
77669
|
-
}
|
77670
|
-
var head = this.head;
|
77671
|
-
node2.list = this;
|
77672
|
-
node2.next = head;
|
77673
|
-
if (head) {
|
77674
|
-
head.prev = node2;
|
77675
|
-
}
|
77676
|
-
this.head = node2;
|
77677
|
-
if (!this.tail) {
|
77678
|
-
this.tail = node2;
|
77679
|
-
}
|
77680
|
-
this.length++;
|
77681
|
-
};
|
77682
|
-
Yallist.prototype.pushNode = function(node2) {
|
77683
|
-
if (node2 === this.tail) {
|
77684
|
-
return;
|
77685
|
-
}
|
77686
|
-
if (node2.list) {
|
77687
|
-
node2.list.removeNode(node2);
|
77688
|
-
}
|
77689
|
-
var tail = this.tail;
|
77690
|
-
node2.list = this;
|
77691
|
-
node2.prev = tail;
|
77692
|
-
if (tail) {
|
77693
|
-
tail.next = node2;
|
77694
|
-
}
|
77695
|
-
this.tail = node2;
|
77696
|
-
if (!this.head) {
|
77697
|
-
this.head = node2;
|
77698
|
-
}
|
77699
|
-
this.length++;
|
77700
|
-
};
|
77701
|
-
Yallist.prototype.push = function() {
|
77702
|
-
for (var i = 0, l2 = arguments.length; i < l2; i++) {
|
77703
|
-
push(this, arguments[i]);
|
77704
|
-
}
|
77705
|
-
return this.length;
|
77706
|
-
};
|
77707
|
-
Yallist.prototype.unshift = function() {
|
77708
|
-
for (var i = 0, l2 = arguments.length; i < l2; i++) {
|
77709
|
-
unshift(this, arguments[i]);
|
77710
|
-
}
|
77711
|
-
return this.length;
|
77712
|
-
};
|
77713
|
-
Yallist.prototype.pop = function() {
|
77714
|
-
if (!this.tail) {
|
77715
|
-
return void 0;
|
77716
|
-
}
|
77717
|
-
var res = this.tail.value;
|
77718
|
-
this.tail = this.tail.prev;
|
77719
|
-
if (this.tail) {
|
77720
|
-
this.tail.next = null;
|
77721
|
-
} else {
|
77722
|
-
this.head = null;
|
77723
|
-
}
|
77724
|
-
this.length--;
|
77725
|
-
return res;
|
77726
|
-
};
|
77727
|
-
Yallist.prototype.shift = function() {
|
77728
|
-
if (!this.head) {
|
77729
|
-
return void 0;
|
77730
|
-
}
|
77731
|
-
var res = this.head.value;
|
77732
|
-
this.head = this.head.next;
|
77733
|
-
if (this.head) {
|
77734
|
-
this.head.prev = null;
|
77735
|
-
} else {
|
77736
|
-
this.tail = null;
|
77737
|
-
}
|
77738
|
-
this.length--;
|
77739
|
-
return res;
|
77740
|
-
};
|
77741
|
-
Yallist.prototype.forEach = function(fn2, thisp) {
|
77742
|
-
thisp = thisp || this;
|
77743
|
-
for (var walker = this.head, i = 0; walker !== null; i++) {
|
77744
|
-
fn2.call(thisp, walker.value, i, this);
|
77745
|
-
walker = walker.next;
|
77746
|
-
}
|
77747
|
-
};
|
77748
|
-
Yallist.prototype.forEachReverse = function(fn2, thisp) {
|
77749
|
-
thisp = thisp || this;
|
77750
|
-
for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {
|
77751
|
-
fn2.call(thisp, walker.value, i, this);
|
77752
|
-
walker = walker.prev;
|
77753
|
-
}
|
77754
|
-
};
|
77755
|
-
Yallist.prototype.get = function(n2) {
|
77756
|
-
for (var i = 0, walker = this.head; walker !== null && i < n2; i++) {
|
77757
|
-
walker = walker.next;
|
77758
|
-
}
|
77759
|
-
if (i === n2 && walker !== null) {
|
77760
|
-
return walker.value;
|
77761
|
-
}
|
77762
|
-
};
|
77763
|
-
Yallist.prototype.getReverse = function(n2) {
|
77764
|
-
for (var i = 0, walker = this.tail; walker !== null && i < n2; i++) {
|
77765
|
-
walker = walker.prev;
|
77766
|
-
}
|
77767
|
-
if (i === n2 && walker !== null) {
|
77768
|
-
return walker.value;
|
77769
|
-
}
|
77770
|
-
};
|
77771
|
-
Yallist.prototype.map = function(fn2, thisp) {
|
77772
|
-
thisp = thisp || this;
|
77773
|
-
var res = new Yallist();
|
77774
|
-
for (var walker = this.head; walker !== null; ) {
|
77775
|
-
res.push(fn2.call(thisp, walker.value, this));
|
77776
|
-
walker = walker.next;
|
77777
|
-
}
|
77778
|
-
return res;
|
77779
|
-
};
|
77780
|
-
Yallist.prototype.mapReverse = function(fn2, thisp) {
|
77781
|
-
thisp = thisp || this;
|
77782
|
-
var res = new Yallist();
|
77783
|
-
for (var walker = this.tail; walker !== null; ) {
|
77784
|
-
res.push(fn2.call(thisp, walker.value, this));
|
77785
|
-
walker = walker.prev;
|
77786
|
-
}
|
77787
|
-
return res;
|
77788
|
-
};
|
77789
|
-
Yallist.prototype.reduce = function(fn2, initial) {
|
77790
|
-
var acc;
|
77791
|
-
var walker = this.head;
|
77792
|
-
if (arguments.length > 1) {
|
77793
|
-
acc = initial;
|
77794
|
-
} else if (this.head) {
|
77795
|
-
walker = this.head.next;
|
77796
|
-
acc = this.head.value;
|
77797
|
-
} else {
|
77798
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
77799
|
-
}
|
77800
|
-
for (var i = 0; walker !== null; i++) {
|
77801
|
-
acc = fn2(acc, walker.value, i);
|
77802
|
-
walker = walker.next;
|
77803
|
-
}
|
77804
|
-
return acc;
|
77805
|
-
};
|
77806
|
-
Yallist.prototype.reduceReverse = function(fn2, initial) {
|
77807
|
-
var acc;
|
77808
|
-
var walker = this.tail;
|
77809
|
-
if (arguments.length > 1) {
|
77810
|
-
acc = initial;
|
77811
|
-
} else if (this.tail) {
|
77812
|
-
walker = this.tail.prev;
|
77813
|
-
acc = this.tail.value;
|
77814
|
-
} else {
|
77815
|
-
throw new TypeError("Reduce of empty list with no initial value");
|
77816
|
-
}
|
77817
|
-
for (var i = this.length - 1; walker !== null; i--) {
|
77818
|
-
acc = fn2(acc, walker.value, i);
|
77819
|
-
walker = walker.prev;
|
77820
|
-
}
|
77821
|
-
return acc;
|
77822
|
-
};
|
77823
|
-
Yallist.prototype.toArray = function() {
|
77824
|
-
var arr = new Array(this.length);
|
77825
|
-
for (var i = 0, walker = this.head; walker !== null; i++) {
|
77826
|
-
arr[i] = walker.value;
|
77827
|
-
walker = walker.next;
|
77828
|
-
}
|
77829
|
-
return arr;
|
77830
|
-
};
|
77831
|
-
Yallist.prototype.toArrayReverse = function() {
|
77832
|
-
var arr = new Array(this.length);
|
77833
|
-
for (var i = 0, walker = this.tail; walker !== null; i++) {
|
77834
|
-
arr[i] = walker.value;
|
77835
|
-
walker = walker.prev;
|
77836
|
-
}
|
77837
|
-
return arr;
|
77838
|
-
};
|
77839
|
-
Yallist.prototype.slice = function(from, to) {
|
77840
|
-
to = to || this.length;
|
77841
|
-
if (to < 0) {
|
77842
|
-
to += this.length;
|
77843
|
-
}
|
77844
|
-
from = from || 0;
|
77845
|
-
if (from < 0) {
|
77846
|
-
from += this.length;
|
77847
|
-
}
|
77848
|
-
var ret = new Yallist();
|
77849
|
-
if (to < from || to < 0) {
|
77850
|
-
return ret;
|
77851
|
-
}
|
77852
|
-
if (from < 0) {
|
77853
|
-
from = 0;
|
77854
|
-
}
|
77855
|
-
if (to > this.length) {
|
77856
|
-
to = this.length;
|
77857
|
-
}
|
77858
|
-
for (var i = 0, walker = this.head; walker !== null && i < from; i++) {
|
77859
|
-
walker = walker.next;
|
77860
|
-
}
|
77861
|
-
for (; walker !== null && i < to; i++, walker = walker.next) {
|
77862
|
-
ret.push(walker.value);
|
77863
|
-
}
|
77864
|
-
return ret;
|
77865
|
-
};
|
77866
|
-
Yallist.prototype.sliceReverse = function(from, to) {
|
77867
|
-
to = to || this.length;
|
77868
|
-
if (to < 0) {
|
77869
|
-
to += this.length;
|
77870
|
-
}
|
77871
|
-
from = from || 0;
|
77872
|
-
if (from < 0) {
|
77873
|
-
from += this.length;
|
77874
|
-
}
|
77875
|
-
var ret = new Yallist();
|
77876
|
-
if (to < from || to < 0) {
|
77877
|
-
return ret;
|
77878
|
-
}
|
77879
|
-
if (from < 0) {
|
77880
|
-
from = 0;
|
77881
|
-
}
|
77882
|
-
if (to > this.length) {
|
77883
|
-
to = this.length;
|
77884
|
-
}
|
77885
|
-
for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {
|
77886
|
-
walker = walker.prev;
|
77887
|
-
}
|
77888
|
-
for (; walker !== null && i > from; i--, walker = walker.prev) {
|
77889
|
-
ret.push(walker.value);
|
77890
|
-
}
|
77891
|
-
return ret;
|
77892
|
-
};
|
77893
|
-
Yallist.prototype.splice = function(start, deleteCount, ...nodes) {
|
77894
|
-
if (start > this.length) {
|
77895
|
-
start = this.length - 1;
|
77896
|
-
}
|
77897
|
-
if (start < 0) {
|
77898
|
-
start = this.length + start;
|
77899
|
-
}
|
77900
|
-
for (var i = 0, walker = this.head; walker !== null && i < start; i++) {
|
77901
|
-
walker = walker.next;
|
77902
|
-
}
|
77903
|
-
var ret = [];
|
77904
|
-
for (var i = 0; walker && i < deleteCount; i++) {
|
77905
|
-
ret.push(walker.value);
|
77906
|
-
walker = this.removeNode(walker);
|
77907
|
-
}
|
77908
|
-
if (walker === null) {
|
77909
|
-
walker = this.tail;
|
77910
|
-
}
|
77911
|
-
if (walker !== this.head && walker !== this.tail) {
|
77912
|
-
walker = walker.prev;
|
77913
|
-
}
|
77914
|
-
for (var i = 0; i < nodes.length; i++) {
|
77915
|
-
walker = insert(this, walker, nodes[i]);
|
77916
|
-
}
|
77917
|
-
return ret;
|
77918
|
-
};
|
77919
|
-
Yallist.prototype.reverse = function() {
|
77920
|
-
var head = this.head;
|
77921
|
-
var tail = this.tail;
|
77922
|
-
for (var walker = head; walker !== null; walker = walker.prev) {
|
77923
|
-
var p2 = walker.prev;
|
77924
|
-
walker.prev = walker.next;
|
77925
|
-
walker.next = p2;
|
77926
|
-
}
|
77927
|
-
this.head = tail;
|
77928
|
-
this.tail = head;
|
77929
|
-
return this;
|
77930
|
-
};
|
77931
|
-
function insert(self2, node2, value) {
|
77932
|
-
var inserted = node2 === self2.head ? new Node2(value, null, node2, self2) : new Node2(value, node2, node2.next, self2);
|
77933
|
-
if (inserted.next === null) {
|
77934
|
-
self2.tail = inserted;
|
77935
|
-
}
|
77936
|
-
if (inserted.prev === null) {
|
77937
|
-
self2.head = inserted;
|
77938
|
-
}
|
77939
|
-
self2.length++;
|
77940
|
-
return inserted;
|
77941
|
-
}
|
77942
|
-
__name(insert, "insert");
|
77943
|
-
function push(self2, item) {
|
77944
|
-
self2.tail = new Node2(item, self2.tail, null, self2);
|
77945
|
-
if (!self2.head) {
|
77946
|
-
self2.head = self2.tail;
|
77947
|
-
}
|
77948
|
-
self2.length++;
|
77949
|
-
}
|
77950
|
-
__name(push, "push");
|
77951
|
-
function unshift(self2, item) {
|
77952
|
-
self2.head = new Node2(item, null, self2.head, self2);
|
77953
|
-
if (!self2.tail) {
|
77954
|
-
self2.tail = self2.head;
|
77955
|
-
}
|
77956
|
-
self2.length++;
|
77957
|
-
}
|
77958
|
-
__name(unshift, "unshift");
|
77959
|
-
function Node2(value, prev, next, list) {
|
77960
|
-
if (!(this instanceof Node2)) {
|
77961
|
-
return new Node2(value, prev, next, list);
|
77962
|
-
}
|
77963
|
-
this.list = list;
|
77964
|
-
this.value = value;
|
77965
|
-
if (prev) {
|
77966
|
-
prev.next = this;
|
77967
|
-
this.prev = prev;
|
77968
|
-
} else {
|
77969
|
-
this.prev = null;
|
77970
|
-
}
|
77971
|
-
if (next) {
|
77972
|
-
next.prev = this;
|
77973
|
-
this.next = next;
|
77974
|
-
} else {
|
77975
|
-
this.next = null;
|
77976
|
-
}
|
77977
|
-
}
|
77978
|
-
__name(Node2, "Node");
|
77979
|
-
try {
|
77980
|
-
require_iterator()(Yallist);
|
77981
|
-
} catch (er) {
|
77982
|
-
}
|
77983
|
-
}
|
77984
|
-
});
|
77985
|
-
|
77986
|
-
// ../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js
|
77987
|
-
var require_lru_cache = __commonJS({
|
77988
|
-
"../../node_modules/.pnpm/lru-cache@6.0.0/node_modules/lru-cache/index.js"(exports2, module3) {
|
77989
|
-
"use strict";
|
77990
|
-
init_import_meta_url();
|
77991
|
-
var Yallist = require_yallist();
|
77992
|
-
var MAX = Symbol("max");
|
77993
|
-
var LENGTH = Symbol("length");
|
77994
|
-
var LENGTH_CALCULATOR = Symbol("lengthCalculator");
|
77995
|
-
var ALLOW_STALE = Symbol("allowStale");
|
77996
|
-
var MAX_AGE = Symbol("maxAge");
|
77997
|
-
var DISPOSE = Symbol("dispose");
|
77998
|
-
var NO_DISPOSE_ON_SET = Symbol("noDisposeOnSet");
|
77999
|
-
var LRU_LIST = Symbol("lruList");
|
78000
|
-
var CACHE = Symbol("cache");
|
78001
|
-
var UPDATE_AGE_ON_GET = Symbol("updateAgeOnGet");
|
78002
|
-
var naiveLength = /* @__PURE__ */ __name(() => 1, "naiveLength");
|
78003
77609
|
var LRUCache = class {
|
78004
|
-
constructor(
|
78005
|
-
|
78006
|
-
|
78007
|
-
if (!options30)
|
78008
|
-
options30 = {};
|
78009
|
-
if (options30.max && (typeof options30.max !== "number" || options30.max < 0))
|
78010
|
-
throw new TypeError("max must be a non-negative number");
|
78011
|
-
const max = this[MAX] = options30.max || Infinity;
|
78012
|
-
const lc = options30.length || naiveLength;
|
78013
|
-
this[LENGTH_CALCULATOR] = typeof lc !== "function" ? naiveLength : lc;
|
78014
|
-
this[ALLOW_STALE] = options30.stale || false;
|
78015
|
-
if (options30.maxAge && typeof options30.maxAge !== "number")
|
78016
|
-
throw new TypeError("maxAge must be a number");
|
78017
|
-
this[MAX_AGE] = options30.maxAge || 0;
|
78018
|
-
this[DISPOSE] = options30.dispose;
|
78019
|
-
this[NO_DISPOSE_ON_SET] = options30.noDisposeOnSet || false;
|
78020
|
-
this[UPDATE_AGE_ON_GET] = options30.updateAgeOnGet || false;
|
78021
|
-
this.reset();
|
78022
|
-
}
|
78023
|
-
// resize the cache when the max changes.
|
78024
|
-
set max(mL) {
|
78025
|
-
if (typeof mL !== "number" || mL < 0)
|
78026
|
-
throw new TypeError("max must be a non-negative number");
|
78027
|
-
this[MAX] = mL || Infinity;
|
78028
|
-
trim(this);
|
78029
|
-
}
|
78030
|
-
get max() {
|
78031
|
-
return this[MAX];
|
78032
|
-
}
|
78033
|
-
set allowStale(allowStale) {
|
78034
|
-
this[ALLOW_STALE] = !!allowStale;
|
78035
|
-
}
|
78036
|
-
get allowStale() {
|
78037
|
-
return this[ALLOW_STALE];
|
78038
|
-
}
|
78039
|
-
set maxAge(mA) {
|
78040
|
-
if (typeof mA !== "number")
|
78041
|
-
throw new TypeError("maxAge must be a non-negative number");
|
78042
|
-
this[MAX_AGE] = mA;
|
78043
|
-
trim(this);
|
78044
|
-
}
|
78045
|
-
get maxAge() {
|
78046
|
-
return this[MAX_AGE];
|
78047
|
-
}
|
78048
|
-
// resize the cache when the lengthCalculator changes.
|
78049
|
-
set lengthCalculator(lC) {
|
78050
|
-
if (typeof lC !== "function")
|
78051
|
-
lC = naiveLength;
|
78052
|
-
if (lC !== this[LENGTH_CALCULATOR]) {
|
78053
|
-
this[LENGTH_CALCULATOR] = lC;
|
78054
|
-
this[LENGTH] = 0;
|
78055
|
-
this[LRU_LIST].forEach((hit) => {
|
78056
|
-
hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key);
|
78057
|
-
this[LENGTH] += hit.length;
|
78058
|
-
});
|
78059
|
-
}
|
78060
|
-
trim(this);
|
78061
|
-
}
|
78062
|
-
get lengthCalculator() {
|
78063
|
-
return this[LENGTH_CALCULATOR];
|
78064
|
-
}
|
78065
|
-
get length() {
|
78066
|
-
return this[LENGTH];
|
78067
|
-
}
|
78068
|
-
get itemCount() {
|
78069
|
-
return this[LRU_LIST].length;
|
78070
|
-
}
|
78071
|
-
rforEach(fn2, thisp) {
|
78072
|
-
thisp = thisp || this;
|
78073
|
-
for (let walker = this[LRU_LIST].tail; walker !== null; ) {
|
78074
|
-
const prev = walker.prev;
|
78075
|
-
forEachStep(this, fn2, walker, thisp);
|
78076
|
-
walker = prev;
|
78077
|
-
}
|
78078
|
-
}
|
78079
|
-
forEach(fn2, thisp) {
|
78080
|
-
thisp = thisp || this;
|
78081
|
-
for (let walker = this[LRU_LIST].head; walker !== null; ) {
|
78082
|
-
const next = walker.next;
|
78083
|
-
forEachStep(this, fn2, walker, thisp);
|
78084
|
-
walker = next;
|
78085
|
-
}
|
78086
|
-
}
|
78087
|
-
keys() {
|
78088
|
-
return this[LRU_LIST].toArray().map((k2) => k2.key);
|
78089
|
-
}
|
78090
|
-
values() {
|
78091
|
-
return this[LRU_LIST].toArray().map((k2) => k2.value);
|
78092
|
-
}
|
78093
|
-
reset() {
|
78094
|
-
if (this[DISPOSE] && this[LRU_LIST] && this[LRU_LIST].length) {
|
78095
|
-
this[LRU_LIST].forEach((hit) => this[DISPOSE](hit.key, hit.value));
|
78096
|
-
}
|
78097
|
-
this[CACHE] = /* @__PURE__ */ new Map();
|
78098
|
-
this[LRU_LIST] = new Yallist();
|
78099
|
-
this[LENGTH] = 0;
|
78100
|
-
}
|
78101
|
-
dump() {
|
78102
|
-
return this[LRU_LIST].map((hit) => isStale(this, hit) ? false : {
|
78103
|
-
k: hit.key,
|
78104
|
-
v: hit.value,
|
78105
|
-
e: hit.now + (hit.maxAge || 0)
|
78106
|
-
}).toArray().filter((h2) => h2);
|
78107
|
-
}
|
78108
|
-
dumpLru() {
|
78109
|
-
return this[LRU_LIST];
|
78110
|
-
}
|
78111
|
-
set(key, value, maxAge) {
|
78112
|
-
maxAge = maxAge || this[MAX_AGE];
|
78113
|
-
if (maxAge && typeof maxAge !== "number")
|
78114
|
-
throw new TypeError("maxAge must be a number");
|
78115
|
-
const now = maxAge ? Date.now() : 0;
|
78116
|
-
const len = this[LENGTH_CALCULATOR](value, key);
|
78117
|
-
if (this[CACHE].has(key)) {
|
78118
|
-
if (len > this[MAX]) {
|
78119
|
-
del(this, this[CACHE].get(key));
|
78120
|
-
return false;
|
78121
|
-
}
|
78122
|
-
const node2 = this[CACHE].get(key);
|
78123
|
-
const item = node2.value;
|
78124
|
-
if (this[DISPOSE]) {
|
78125
|
-
if (!this[NO_DISPOSE_ON_SET])
|
78126
|
-
this[DISPOSE](key, item.value);
|
78127
|
-
}
|
78128
|
-
item.now = now;
|
78129
|
-
item.maxAge = maxAge;
|
78130
|
-
item.value = value;
|
78131
|
-
this[LENGTH] += len - item.length;
|
78132
|
-
item.length = len;
|
78133
|
-
this.get(key);
|
78134
|
-
trim(this);
|
78135
|
-
return true;
|
78136
|
-
}
|
78137
|
-
const hit = new Entry(key, value, len, now, maxAge);
|
78138
|
-
if (hit.length > this[MAX]) {
|
78139
|
-
if (this[DISPOSE])
|
78140
|
-
this[DISPOSE](key, value);
|
78141
|
-
return false;
|
78142
|
-
}
|
78143
|
-
this[LENGTH] += hit.length;
|
78144
|
-
this[LRU_LIST].unshift(hit);
|
78145
|
-
this[CACHE].set(key, this[LRU_LIST].head);
|
78146
|
-
trim(this);
|
78147
|
-
return true;
|
78148
|
-
}
|
78149
|
-
has(key) {
|
78150
|
-
if (!this[CACHE].has(key))
|
78151
|
-
return false;
|
78152
|
-
const hit = this[CACHE].get(key).value;
|
78153
|
-
return !isStale(this, hit);
|
77610
|
+
constructor() {
|
77611
|
+
this.max = 1e3;
|
77612
|
+
this.map = /* @__PURE__ */ new Map();
|
78154
77613
|
}
|
78155
77614
|
get(key) {
|
78156
|
-
|
78157
|
-
|
78158
|
-
|
78159
|
-
|
78160
|
-
|
78161
|
-
|
78162
|
-
|
78163
|
-
|
78164
|
-
return null;
|
78165
|
-
del(this, node2);
|
78166
|
-
return node2.value;
|
77615
|
+
const value = this.map.get(key);
|
77616
|
+
if (value === void 0) {
|
77617
|
+
return void 0;
|
77618
|
+
} else {
|
77619
|
+
this.map.delete(key);
|
77620
|
+
this.map.set(key, value);
|
77621
|
+
return value;
|
77622
|
+
}
|
78167
77623
|
}
|
78168
|
-
|
78169
|
-
|
77624
|
+
delete(key) {
|
77625
|
+
return this.map.delete(key);
|
78170
77626
|
}
|
78171
|
-
|
78172
|
-
this.
|
78173
|
-
|
78174
|
-
|
78175
|
-
|
78176
|
-
|
78177
|
-
if (expiresAt === 0)
|
78178
|
-
this.set(hit.k, hit.v);
|
78179
|
-
else {
|
78180
|
-
const maxAge = expiresAt - now;
|
78181
|
-
if (maxAge > 0) {
|
78182
|
-
this.set(hit.k, hit.v, maxAge);
|
78183
|
-
}
|
77627
|
+
set(key, value) {
|
77628
|
+
const deleted = this.delete(key);
|
77629
|
+
if (!deleted && value !== void 0) {
|
77630
|
+
if (this.map.size >= this.max) {
|
77631
|
+
const firstKey = this.map.keys().next().value;
|
77632
|
+
this.delete(firstKey);
|
78184
77633
|
}
|
77634
|
+
this.map.set(key, value);
|
78185
77635
|
}
|
78186
|
-
|
78187
|
-
prune() {
|
78188
|
-
this[CACHE].forEach((value, key) => get(this, key, false));
|
77636
|
+
return this;
|
78189
77637
|
}
|
78190
77638
|
};
|
78191
77639
|
__name(LRUCache, "LRUCache");
|
78192
|
-
var get = /* @__PURE__ */ __name((self2, key, doUse) => {
|
78193
|
-
const node2 = self2[CACHE].get(key);
|
78194
|
-
if (node2) {
|
78195
|
-
const hit = node2.value;
|
78196
|
-
if (isStale(self2, hit)) {
|
78197
|
-
del(self2, node2);
|
78198
|
-
if (!self2[ALLOW_STALE])
|
78199
|
-
return void 0;
|
78200
|
-
} else {
|
78201
|
-
if (doUse) {
|
78202
|
-
if (self2[UPDATE_AGE_ON_GET])
|
78203
|
-
node2.value.now = Date.now();
|
78204
|
-
self2[LRU_LIST].unshiftNode(node2);
|
78205
|
-
}
|
78206
|
-
}
|
78207
|
-
return hit.value;
|
78208
|
-
}
|
78209
|
-
}, "get");
|
78210
|
-
var isStale = /* @__PURE__ */ __name((self2, hit) => {
|
78211
|
-
if (!hit || !hit.maxAge && !self2[MAX_AGE])
|
78212
|
-
return false;
|
78213
|
-
const diff = Date.now() - hit.now;
|
78214
|
-
return hit.maxAge ? diff > hit.maxAge : self2[MAX_AGE] && diff > self2[MAX_AGE];
|
78215
|
-
}, "isStale");
|
78216
|
-
var trim = /* @__PURE__ */ __name((self2) => {
|
78217
|
-
if (self2[LENGTH] > self2[MAX]) {
|
78218
|
-
for (let walker = self2[LRU_LIST].tail; self2[LENGTH] > self2[MAX] && walker !== null; ) {
|
78219
|
-
const prev = walker.prev;
|
78220
|
-
del(self2, walker);
|
78221
|
-
walker = prev;
|
78222
|
-
}
|
78223
|
-
}
|
78224
|
-
}, "trim");
|
78225
|
-
var del = /* @__PURE__ */ __name((self2, node2) => {
|
78226
|
-
if (node2) {
|
78227
|
-
const hit = node2.value;
|
78228
|
-
if (self2[DISPOSE])
|
78229
|
-
self2[DISPOSE](hit.key, hit.value);
|
78230
|
-
self2[LENGTH] -= hit.length;
|
78231
|
-
self2[CACHE].delete(hit.key);
|
78232
|
-
self2[LRU_LIST].removeNode(node2);
|
78233
|
-
}
|
78234
|
-
}, "del");
|
78235
|
-
var Entry = class {
|
78236
|
-
constructor(key, value, length, now, maxAge) {
|
78237
|
-
this.key = key;
|
78238
|
-
this.value = value;
|
78239
|
-
this.length = length;
|
78240
|
-
this.now = now;
|
78241
|
-
this.maxAge = maxAge || 0;
|
78242
|
-
}
|
78243
|
-
};
|
78244
|
-
__name(Entry, "Entry");
|
78245
|
-
var forEachStep = /* @__PURE__ */ __name((self2, fn2, node2, thisp) => {
|
78246
|
-
let hit = node2.value;
|
78247
|
-
if (isStale(self2, hit)) {
|
78248
|
-
del(self2, node2);
|
78249
|
-
if (!self2[ALLOW_STALE])
|
78250
|
-
hit = void 0;
|
78251
|
-
}
|
78252
|
-
if (hit)
|
78253
|
-
fn2.call(thisp, hit.value, hit.key, self2);
|
78254
|
-
}, "forEachStep");
|
78255
77640
|
module3.exports = LRUCache;
|
78256
77641
|
}
|
78257
77642
|
});
|
78258
77643
|
|
78259
|
-
// ../../node_modules/.pnpm/semver@7.
|
77644
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js
|
78260
77645
|
var require_range = __commonJS({
|
78261
|
-
"../../node_modules/.pnpm/semver@7.
|
77646
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/range.js"(exports2, module3) {
|
78262
77647
|
init_import_meta_url();
|
77648
|
+
var SPACE_CHARACTERS = /\s+/g;
|
78263
77649
|
var Range = class {
|
78264
77650
|
constructor(range, options30) {
|
78265
77651
|
options30 = parseOptions(options30);
|
@@ -78273,13 +77659,13 @@ var require_range = __commonJS({
|
|
78273
77659
|
if (range instanceof Comparator) {
|
78274
77660
|
this.raw = range.value;
|
78275
77661
|
this.set = [[range]];
|
78276
|
-
this.
|
77662
|
+
this.formatted = void 0;
|
78277
77663
|
return this;
|
78278
77664
|
}
|
78279
77665
|
this.options = options30;
|
78280
77666
|
this.loose = !!options30.loose;
|
78281
77667
|
this.includePrerelease = !!options30.includePrerelease;
|
78282
|
-
this.raw = range.trim().
|
77668
|
+
this.raw = range.trim().replace(SPACE_CHARACTERS, " ");
|
78283
77669
|
this.set = this.raw.split("||").map((r3) => this.parseRange(r3.trim())).filter((c2) => c2.length);
|
78284
77670
|
if (!this.set.length) {
|
78285
77671
|
throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
|
@@ -78298,10 +77684,27 @@ var require_range = __commonJS({
|
|
78298
77684
|
}
|
78299
77685
|
}
|
78300
77686
|
}
|
78301
|
-
this.
|
77687
|
+
this.formatted = void 0;
|
77688
|
+
}
|
77689
|
+
get range() {
|
77690
|
+
if (this.formatted === void 0) {
|
77691
|
+
this.formatted = "";
|
77692
|
+
for (let i = 0; i < this.set.length; i++) {
|
77693
|
+
if (i > 0) {
|
77694
|
+
this.formatted += "||";
|
77695
|
+
}
|
77696
|
+
const comps = this.set[i];
|
77697
|
+
for (let k2 = 0; k2 < comps.length; k2++) {
|
77698
|
+
if (k2 > 0) {
|
77699
|
+
this.formatted += " ";
|
77700
|
+
}
|
77701
|
+
this.formatted += comps[k2].toString().trim();
|
77702
|
+
}
|
77703
|
+
}
|
77704
|
+
}
|
77705
|
+
return this.formatted;
|
78302
77706
|
}
|
78303
77707
|
format() {
|
78304
|
-
this.range = this.set.map((comps) => comps.join(" ").trim()).join("||").trim();
|
78305
77708
|
return this.range;
|
78306
77709
|
}
|
78307
77710
|
toString() {
|
@@ -78383,8 +77786,8 @@ var require_range = __commonJS({
|
|
78383
77786
|
};
|
78384
77787
|
__name(Range, "Range");
|
78385
77788
|
module3.exports = Range;
|
78386
|
-
var LRU =
|
78387
|
-
var cache2 = new LRU(
|
77789
|
+
var LRU = require_lrucache();
|
77790
|
+
var cache2 = new LRU();
|
78388
77791
|
var parseOptions = require_parse_options();
|
78389
77792
|
var Comparator = require_comparator();
|
78390
77793
|
var debug = require_debug3();
|
@@ -78562,7 +77965,7 @@ var require_range = __commonJS({
|
|
78562
77965
|
debug("replaceGTE0", comp, options30);
|
78563
77966
|
return comp.trim().replace(re[options30.includePrerelease ? t3.GTE0PRE : t3.GTE0], "");
|
78564
77967
|
}, "replaceGTE0");
|
78565
|
-
var hyphenReplace = /* @__PURE__ */ __name((incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr
|
77968
|
+
var hyphenReplace = /* @__PURE__ */ __name((incPr) => ($0, from, fM, fm, fp, fpr, fb, to, tM, tm, tp, tpr) => {
|
78566
77969
|
if (isX(fM)) {
|
78567
77970
|
from = "";
|
78568
77971
|
} else if (isX(fm)) {
|
@@ -78615,9 +78018,9 @@ var require_range = __commonJS({
|
|
78615
78018
|
}
|
78616
78019
|
});
|
78617
78020
|
|
78618
|
-
// ../../node_modules/.pnpm/semver@7.
|
78021
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js
|
78619
78022
|
var require_comparator = __commonJS({
|
78620
|
-
"../../node_modules/.pnpm/semver@7.
|
78023
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/classes/comparator.js"(exports2, module3) {
|
78621
78024
|
init_import_meta_url();
|
78622
78025
|
var ANY = Symbol("SemVer ANY");
|
78623
78026
|
var Comparator = class {
|
@@ -78729,9 +78132,9 @@ var require_comparator = __commonJS({
|
|
78729
78132
|
}
|
78730
78133
|
});
|
78731
78134
|
|
78732
|
-
// ../../node_modules/.pnpm/semver@7.
|
78135
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js
|
78733
78136
|
var require_satisfies = __commonJS({
|
78734
|
-
"../../node_modules/.pnpm/semver@7.
|
78137
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/functions/satisfies.js"(exports2, module3) {
|
78735
78138
|
init_import_meta_url();
|
78736
78139
|
var Range = require_range();
|
78737
78140
|
var satisfies = /* @__PURE__ */ __name((version4, range, options30) => {
|
@@ -78746,9 +78149,9 @@ var require_satisfies = __commonJS({
|
|
78746
78149
|
}
|
78747
78150
|
});
|
78748
78151
|
|
78749
|
-
// ../../node_modules/.pnpm/semver@7.
|
78152
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js
|
78750
78153
|
var require_to_comparators = __commonJS({
|
78751
|
-
"../../node_modules/.pnpm/semver@7.
|
78154
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/to-comparators.js"(exports2, module3) {
|
78752
78155
|
init_import_meta_url();
|
78753
78156
|
var Range = require_range();
|
78754
78157
|
var toComparators = /* @__PURE__ */ __name((range, options30) => new Range(range, options30).set.map((comp) => comp.map((c2) => c2.value).join(" ").trim().split(" ")), "toComparators");
|
@@ -78756,9 +78159,9 @@ var require_to_comparators = __commonJS({
|
|
78756
78159
|
}
|
78757
78160
|
});
|
78758
78161
|
|
78759
|
-
// ../../node_modules/.pnpm/semver@7.
|
78162
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js
|
78760
78163
|
var require_max_satisfying = __commonJS({
|
78761
|
-
"../../node_modules/.pnpm/semver@7.
|
78164
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/max-satisfying.js"(exports2, module3) {
|
78762
78165
|
init_import_meta_url();
|
78763
78166
|
var SemVer = require_semver();
|
78764
78167
|
var Range = require_range();
|
@@ -78785,9 +78188,9 @@ var require_max_satisfying = __commonJS({
|
|
78785
78188
|
}
|
78786
78189
|
});
|
78787
78190
|
|
78788
|
-
// ../../node_modules/.pnpm/semver@7.
|
78191
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js
|
78789
78192
|
var require_min_satisfying = __commonJS({
|
78790
|
-
"../../node_modules/.pnpm/semver@7.
|
78193
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-satisfying.js"(exports2, module3) {
|
78791
78194
|
init_import_meta_url();
|
78792
78195
|
var SemVer = require_semver();
|
78793
78196
|
var Range = require_range();
|
@@ -78814,9 +78217,9 @@ var require_min_satisfying = __commonJS({
|
|
78814
78217
|
}
|
78815
78218
|
});
|
78816
78219
|
|
78817
|
-
// ../../node_modules/.pnpm/semver@7.
|
78220
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js
|
78818
78221
|
var require_min_version = __commonJS({
|
78819
|
-
"../../node_modules/.pnpm/semver@7.
|
78222
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/min-version.js"(exports2, module3) {
|
78820
78223
|
init_import_meta_url();
|
78821
78224
|
var SemVer = require_semver();
|
78822
78225
|
var Range = require_range();
|
@@ -78871,9 +78274,9 @@ var require_min_version = __commonJS({
|
|
78871
78274
|
}
|
78872
78275
|
});
|
78873
78276
|
|
78874
|
-
// ../../node_modules/.pnpm/semver@7.
|
78277
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js
|
78875
78278
|
var require_valid2 = __commonJS({
|
78876
|
-
"../../node_modules/.pnpm/semver@7.
|
78279
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/valid.js"(exports2, module3) {
|
78877
78280
|
init_import_meta_url();
|
78878
78281
|
var Range = require_range();
|
78879
78282
|
var validRange = /* @__PURE__ */ __name((range, options30) => {
|
@@ -78887,9 +78290,9 @@ var require_valid2 = __commonJS({
|
|
78887
78290
|
}
|
78888
78291
|
});
|
78889
78292
|
|
78890
|
-
// ../../node_modules/.pnpm/semver@7.
|
78293
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js
|
78891
78294
|
var require_outside = __commonJS({
|
78892
|
-
"../../node_modules/.pnpm/semver@7.
|
78295
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/outside.js"(exports2, module3) {
|
78893
78296
|
init_import_meta_url();
|
78894
78297
|
var SemVer = require_semver();
|
78895
78298
|
var Comparator = require_comparator();
|
@@ -78956,9 +78359,9 @@ var require_outside = __commonJS({
|
|
78956
78359
|
}
|
78957
78360
|
});
|
78958
78361
|
|
78959
|
-
// ../../node_modules/.pnpm/semver@7.
|
78362
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js
|
78960
78363
|
var require_gtr = __commonJS({
|
78961
|
-
"../../node_modules/.pnpm/semver@7.
|
78364
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/gtr.js"(exports2, module3) {
|
78962
78365
|
init_import_meta_url();
|
78963
78366
|
var outside = require_outside();
|
78964
78367
|
var gtr = /* @__PURE__ */ __name((version4, range, options30) => outside(version4, range, ">", options30), "gtr");
|
@@ -78966,9 +78369,9 @@ var require_gtr = __commonJS({
|
|
78966
78369
|
}
|
78967
78370
|
});
|
78968
78371
|
|
78969
|
-
// ../../node_modules/.pnpm/semver@7.
|
78372
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js
|
78970
78373
|
var require_ltr = __commonJS({
|
78971
|
-
"../../node_modules/.pnpm/semver@7.
|
78374
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/ltr.js"(exports2, module3) {
|
78972
78375
|
init_import_meta_url();
|
78973
78376
|
var outside = require_outside();
|
78974
78377
|
var ltr = /* @__PURE__ */ __name((version4, range, options30) => outside(version4, range, "<", options30), "ltr");
|
@@ -78976,9 +78379,9 @@ var require_ltr = __commonJS({
|
|
78976
78379
|
}
|
78977
78380
|
});
|
78978
78381
|
|
78979
|
-
// ../../node_modules/.pnpm/semver@7.
|
78382
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js
|
78980
78383
|
var require_intersects = __commonJS({
|
78981
|
-
"../../node_modules/.pnpm/semver@7.
|
78384
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/intersects.js"(exports2, module3) {
|
78982
78385
|
init_import_meta_url();
|
78983
78386
|
var Range = require_range();
|
78984
78387
|
var intersects = /* @__PURE__ */ __name((r1, r22, options30) => {
|
@@ -78990,9 +78393,9 @@ var require_intersects = __commonJS({
|
|
78990
78393
|
}
|
78991
78394
|
});
|
78992
78395
|
|
78993
|
-
// ../../node_modules/.pnpm/semver@7.
|
78396
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js
|
78994
78397
|
var require_simplify = __commonJS({
|
78995
|
-
"../../node_modules/.pnpm/semver@7.
|
78398
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/simplify.js"(exports2, module3) {
|
78996
78399
|
init_import_meta_url();
|
78997
78400
|
var satisfies = require_satisfies();
|
78998
78401
|
var compare = require_compare();
|
@@ -79040,9 +78443,9 @@ var require_simplify = __commonJS({
|
|
79040
78443
|
}
|
79041
78444
|
});
|
79042
78445
|
|
79043
|
-
// ../../node_modules/.pnpm/semver@7.
|
78446
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js
|
79044
78447
|
var require_subset = __commonJS({
|
79045
|
-
"../../node_modules/.pnpm/semver@7.
|
78448
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/ranges/subset.js"(exports2, module3) {
|
79046
78449
|
init_import_meta_url();
|
79047
78450
|
var Range = require_range();
|
79048
78451
|
var Comparator = require_comparator();
|
@@ -79203,9 +78606,9 @@ var require_subset = __commonJS({
|
|
79203
78606
|
}
|
79204
78607
|
});
|
79205
78608
|
|
79206
|
-
// ../../node_modules/.pnpm/semver@7.
|
78609
|
+
// ../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js
|
79207
78610
|
var require_semver2 = __commonJS({
|
79208
|
-
"../../node_modules/.pnpm/semver@7.
|
78611
|
+
"../../node_modules/.pnpm/semver@7.6.3/node_modules/semver/index.js"(exports2, module3) {
|
79209
78612
|
init_import_meta_url();
|
79210
78613
|
var internalRe = require_re();
|
79211
78614
|
var constants3 = require_constants9();
|
@@ -103047,7 +102450,7 @@ var require_src10 = __commonJS({
|
|
103047
102450
|
Watcher: () => Watcher
|
103048
102451
|
});
|
103049
102452
|
var import_assert7 = __toModule(require("assert"));
|
103050
|
-
var
|
102453
|
+
var import_fs17 = __toModule(require("fs"));
|
103051
102454
|
var import_path19 = __toModule(require("path"));
|
103052
102455
|
var import_util9 = __toModule(require("util"));
|
103053
102456
|
var log2 = (0, import_util9.debuglog)("mf-watch");
|
@@ -103058,9 +102461,9 @@ var require_src10 = __commonJS({
|
|
103058
102461
|
__name(withinDir, "withinDir");
|
103059
102462
|
function walkDirs(root, callback) {
|
103060
102463
|
callback(root);
|
103061
|
-
for (const name2 of
|
102464
|
+
for (const name2 of import_fs17.default.readdirSync(root)) {
|
103062
102465
|
const filePath = import_path19.default.join(root, name2);
|
103063
|
-
if (!
|
102466
|
+
if (!import_fs17.default.statSync(filePath).isDirectory())
|
103064
102467
|
continue;
|
103065
102468
|
walkDirs(filePath, callback);
|
103066
102469
|
}
|
@@ -103086,12 +102489,12 @@ var require_src10 = __commonJS({
|
|
103086
102489
|
if (curr.mtimeMs === 0)
|
103087
102490
|
return;
|
103088
102491
|
log2(`${this.filePath}: created, tidying up temporary watcher...`);
|
103089
|
-
|
102492
|
+
import_fs17.default.unwatchFile(this.filePath, this.watchFileListener);
|
103090
102493
|
this.watchFileListener = void 0;
|
103091
102494
|
this.callback();
|
103092
102495
|
void this.start();
|
103093
102496
|
};
|
103094
|
-
|
102497
|
+
import_fs17.default.watchFile(this.filePath, { interval: this.options.createPollInterval }, this.watchFileListener);
|
103095
102498
|
}
|
103096
102499
|
startPollingWatcher() {
|
103097
102500
|
(0, import_assert7.default)(!this.watching);
|
@@ -103106,14 +102509,14 @@ var require_src10 = __commonJS({
|
|
103106
102509
|
this.callback();
|
103107
102510
|
}
|
103108
102511
|
};
|
103109
|
-
|
102512
|
+
import_fs17.default.watchFile(this.filePath, { interval: this.options.pollInterval }, this.watchFileListener);
|
103110
102513
|
}
|
103111
102514
|
listener = (event, fileName) => {
|
103112
102515
|
log2(`${this.filePath}: ${event}: ${fileName}`);
|
103113
102516
|
if (fileName) {
|
103114
102517
|
try {
|
103115
102518
|
const resolved = import_path19.default.resolve(this.filePath, fileName);
|
103116
|
-
const mtime =
|
102519
|
+
const mtime = import_fs17.default.statSync(resolved).mtimeMs;
|
103117
102520
|
const previousMtime = this.lastMtimes?.get(resolved);
|
103118
102521
|
if (previousMtime === mtime) {
|
103119
102522
|
log2(`${this.filePath}: ${resolved}: ignored spurious event`);
|
@@ -103124,7 +102527,7 @@ var require_src10 = __commonJS({
|
|
103124
102527
|
}
|
103125
102528
|
}
|
103126
102529
|
this.callback();
|
103127
|
-
if (!
|
102530
|
+
if (!import_fs17.default.existsSync(this.filePath)) {
|
103128
102531
|
this.dispose();
|
103129
102532
|
this.startCreateWatcher();
|
103130
102533
|
}
|
@@ -103137,13 +102540,13 @@ var require_src10 = __commonJS({
|
|
103137
102540
|
this.startCreateWatcher();
|
103138
102541
|
}
|
103139
102542
|
};
|
103140
|
-
|
102543
|
+
import_fs17.default.watchFile(this.filePath, { interval: this.options.pollInterval }, this.watchFileListener);
|
103141
102544
|
}
|
103142
102545
|
startPlatformRecursiveWatcher() {
|
103143
102546
|
(0, import_assert7.default)(!this.watching);
|
103144
102547
|
log2(`${this.filePath}: recursively watching with platform...`);
|
103145
102548
|
this.lastMtimes = /* @__PURE__ */ new Map();
|
103146
|
-
this.watcher =
|
102549
|
+
this.watcher = import_fs17.default.watch(this.filePath, { recursive: true }, this.listener);
|
103147
102550
|
this.startDeletedWatcher();
|
103148
102551
|
}
|
103149
102552
|
startRecursiveWatcher() {
|
@@ -103154,7 +102557,7 @@ var require_src10 = __commonJS({
|
|
103154
102557
|
const update = /* @__PURE__ */ __name((dir, event, fileName) => {
|
103155
102558
|
let dirIsDirectory = false;
|
103156
102559
|
try {
|
103157
|
-
dirIsDirectory =
|
102560
|
+
dirIsDirectory = import_fs17.default.statSync(dir).isDirectory();
|
103158
102561
|
} catch {
|
103159
102562
|
}
|
103160
102563
|
if (!dirIsDirectory) {
|
@@ -103167,7 +102570,7 @@ var require_src10 = __commonJS({
|
|
103167
102570
|
const filePath = import_path19.default.join(dir, fileName);
|
103168
102571
|
this.listener(event, filePath);
|
103169
102572
|
try {
|
103170
|
-
if (
|
102573
|
+
if (import_fs17.default.statSync(filePath).isDirectory()) {
|
103171
102574
|
walkDirs(filePath, walkCallback);
|
103172
102575
|
}
|
103173
102576
|
} catch (e3) {
|
@@ -103184,7 +102587,7 @@ var require_src10 = __commonJS({
|
|
103184
102587
|
}, "update");
|
103185
102588
|
const walkCallback = /* @__PURE__ */ __name((dir) => {
|
103186
102589
|
if (!watchers.has(dir)) {
|
103187
|
-
watchers.set(dir,
|
102590
|
+
watchers.set(dir, import_fs17.default.watch(dir, update.bind(this, dir)));
|
103188
102591
|
}
|
103189
102592
|
}, "walkCallback");
|
103190
102593
|
try {
|
@@ -103199,7 +102602,7 @@ var require_src10 = __commonJS({
|
|
103199
102602
|
}
|
103200
102603
|
start() {
|
103201
102604
|
try {
|
103202
|
-
if (
|
102605
|
+
if (import_fs17.default.statSync(this.filePath).isDirectory()) {
|
103203
102606
|
if (this.options.forceRecursive) {
|
103204
102607
|
return this.startRecursiveWatcher();
|
103205
102608
|
} else {
|
@@ -103222,7 +102625,7 @@ var require_src10 = __commonJS({
|
|
103222
102625
|
dispose() {
|
103223
102626
|
log2(`${this.filePath}: disposing...`);
|
103224
102627
|
if (this.watchFileListener) {
|
103225
|
-
|
102628
|
+
import_fs17.default.unwatchFile(this.filePath, this.watchFileListener);
|
103226
102629
|
this.watchFileListener = void 0;
|
103227
102630
|
}
|
103228
102631
|
this.watcher?.close();
|
@@ -108192,6 +107595,15 @@ function normaliseHeaders(headers) {
|
|
108192
107595
|
return {};
|
108193
107596
|
}
|
108194
107597
|
}
|
107598
|
+
function generateETagHeader(assetKey) {
|
107599
|
+
const strongETag = `"${assetKey}"`;
|
107600
|
+
const weakETag = `W/"${assetKey}"`;
|
107601
|
+
return { strongETag, weakETag };
|
107602
|
+
}
|
107603
|
+
function checkIfNoneMatch(request3, strongETag, weakETag) {
|
107604
|
+
const ifNoneMatch = request3.headers.get("if-none-match");
|
107605
|
+
return ifNoneMatch === weakETag || ifNoneMatch === strongETag;
|
107606
|
+
}
|
108195
107607
|
async function generateHandler2({
|
108196
107608
|
request: request3,
|
108197
107609
|
metadata,
|
@@ -108480,16 +107892,15 @@ async function generateHandler2({
|
|
108480
107892
|
return new NotAcceptableResponse();
|
108481
107893
|
}
|
108482
107894
|
const assetKey = getAssetKey(servingAssetEntry, content);
|
108483
|
-
const
|
108484
|
-
const
|
108485
|
-
|
108486
|
-
if (ifNoneMatch === weakEtag || ifNoneMatch === etag) {
|
107895
|
+
const { strongETag, weakETag } = generateETagHeader(assetKey);
|
107896
|
+
const isIfNoneMatch = checkIfNoneMatch(request3, strongETag, weakETag);
|
107897
|
+
if (isIfNoneMatch) {
|
108487
107898
|
return new NotModifiedResponse();
|
108488
107899
|
}
|
108489
107900
|
try {
|
108490
107901
|
const asset = await fetchAsset(assetKey);
|
108491
107902
|
const headers = {
|
108492
|
-
etag,
|
107903
|
+
etag: strongETag,
|
108493
107904
|
"content-type": asset.contentType
|
108494
107905
|
};
|
108495
107906
|
let encodeBody = "automatic";
|
@@ -108579,6 +107990,18 @@ async function generateHandler2({
|
|
108579
107990
|
return new Response(null, preservedResponse);
|
108580
107991
|
}
|
108581
107992
|
if (assetKey) {
|
107993
|
+
const { strongETag, weakETag } = generateETagHeader(assetKey);
|
107994
|
+
const isIfNoneMatch = checkIfNoneMatch(
|
107995
|
+
request3,
|
107996
|
+
strongETag,
|
107997
|
+
weakETag
|
107998
|
+
);
|
107999
|
+
if (isIfNoneMatch) {
|
108000
|
+
if (setMetrics) {
|
108001
|
+
setMetrics({ preservationCacheResult: "not-modified" });
|
108002
|
+
}
|
108003
|
+
return new NotModifiedResponse();
|
108004
|
+
}
|
108582
108005
|
const asset = await fetchAsset(assetKey);
|
108583
108006
|
if (asset) {
|
108584
108007
|
return new Response(asset.body, preservedResponse);
|
@@ -108687,6 +108110,8 @@ var init_handler = __esm({
|
|
108687
108110
|
ANALYTICS_VERSION2 = 1;
|
108688
108111
|
ALLOWED_EARLY_HINT_LINK_ATTRIBUTES = ["rel", "as", "href"];
|
108689
108112
|
__name(normaliseHeaders, "normaliseHeaders");
|
108113
|
+
__name(generateETagHeader, "generateETagHeader");
|
108114
|
+
__name(checkIfNoneMatch, "checkIfNoneMatch");
|
108690
108115
|
__name(generateHandler2, "generateHandler");
|
108691
108116
|
__name(parseQualityWeightedList, "parseQualityWeightedList");
|
108692
108117
|
__name(isCacheable, "isCacheable");
|
@@ -108907,6 +108332,7 @@ var init_assets = __esm({
|
|
108907
108332
|
// src/cli.ts
|
108908
108333
|
var cli_exports2 = {};
|
108909
108334
|
__export(cli_exports2, {
|
108335
|
+
experimental_patchConfig: () => experimental_patchConfig,
|
108910
108336
|
experimental_readRawConfig: () => experimental_readRawConfig,
|
108911
108337
|
getBindingsProxy: () => getBindingsProxy,
|
108912
108338
|
getPlatformProxy: () => getPlatformProxy,
|
@@ -111188,7 +110614,7 @@ var import_undici3 = __toESM(require_undici());
|
|
111188
110614
|
|
111189
110615
|
// package.json
|
111190
110616
|
var name = "wrangler";
|
111191
|
-
var version = "3.
|
110617
|
+
var version = "3.99.0";
|
111192
110618
|
|
111193
110619
|
// src/environment-variables/misc-variables.ts
|
111194
110620
|
init_import_meta_url();
|
@@ -112045,6 +111471,242 @@ var CharacterCodes;
|
|
112045
111471
|
CharacterCodes2[CharacterCodes2["tab"] = 9] = "tab";
|
112046
111472
|
})(CharacterCodes || (CharacterCodes = {}));
|
112047
111473
|
|
111474
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/format.js
|
111475
|
+
function format4(documentText, range, options30) {
|
111476
|
+
let initialIndentLevel;
|
111477
|
+
let formatText;
|
111478
|
+
let formatTextStart;
|
111479
|
+
let rangeStart;
|
111480
|
+
let rangeEnd;
|
111481
|
+
if (range) {
|
111482
|
+
rangeStart = range.offset;
|
111483
|
+
rangeEnd = rangeStart + range.length;
|
111484
|
+
formatTextStart = rangeStart;
|
111485
|
+
while (formatTextStart > 0 && !isEOL(documentText, formatTextStart - 1)) {
|
111486
|
+
formatTextStart--;
|
111487
|
+
}
|
111488
|
+
let endOffset = rangeEnd;
|
111489
|
+
while (endOffset < documentText.length && !isEOL(documentText, endOffset)) {
|
111490
|
+
endOffset++;
|
111491
|
+
}
|
111492
|
+
formatText = documentText.substring(formatTextStart, endOffset);
|
111493
|
+
initialIndentLevel = computeIndentLevel(formatText, options30);
|
111494
|
+
} else {
|
111495
|
+
formatText = documentText;
|
111496
|
+
initialIndentLevel = 0;
|
111497
|
+
formatTextStart = 0;
|
111498
|
+
rangeStart = 0;
|
111499
|
+
rangeEnd = documentText.length;
|
111500
|
+
}
|
111501
|
+
const eol = getEOL(options30, documentText);
|
111502
|
+
let numberLineBreaks = 0;
|
111503
|
+
let indentLevel = 0;
|
111504
|
+
let indentValue;
|
111505
|
+
if (options30.insertSpaces) {
|
111506
|
+
indentValue = repeat(" ", options30.tabSize || 4);
|
111507
|
+
} else {
|
111508
|
+
indentValue = " ";
|
111509
|
+
}
|
111510
|
+
let scanner = createScanner(formatText, false);
|
111511
|
+
let hasError = false;
|
111512
|
+
function newLinesAndIndent() {
|
111513
|
+
if (numberLineBreaks > 1) {
|
111514
|
+
return repeat(eol, numberLineBreaks) + repeat(indentValue, initialIndentLevel + indentLevel);
|
111515
|
+
} else {
|
111516
|
+
return eol + repeat(indentValue, initialIndentLevel + indentLevel);
|
111517
|
+
}
|
111518
|
+
}
|
111519
|
+
__name(newLinesAndIndent, "newLinesAndIndent");
|
111520
|
+
function scanNext() {
|
111521
|
+
let token = scanner.scan();
|
111522
|
+
numberLineBreaks = 0;
|
111523
|
+
while (token === 15 || token === 14) {
|
111524
|
+
if (token === 14 && options30.keepLines) {
|
111525
|
+
numberLineBreaks += 1;
|
111526
|
+
} else if (token === 14) {
|
111527
|
+
numberLineBreaks = 1;
|
111528
|
+
}
|
111529
|
+
token = scanner.scan();
|
111530
|
+
}
|
111531
|
+
hasError = token === 16 || scanner.getTokenError() !== 0;
|
111532
|
+
return token;
|
111533
|
+
}
|
111534
|
+
__name(scanNext, "scanNext");
|
111535
|
+
const editOperations = [];
|
111536
|
+
function addEdit(text, startOffset, endOffset) {
|
111537
|
+
if (!hasError && (!range || startOffset < rangeEnd && endOffset > rangeStart) && documentText.substring(startOffset, endOffset) !== text) {
|
111538
|
+
editOperations.push({ offset: startOffset, length: endOffset - startOffset, content: text });
|
111539
|
+
}
|
111540
|
+
}
|
111541
|
+
__name(addEdit, "addEdit");
|
111542
|
+
let firstToken = scanNext();
|
111543
|
+
if (options30.keepLines && numberLineBreaks > 0) {
|
111544
|
+
addEdit(repeat(eol, numberLineBreaks), 0, 0);
|
111545
|
+
}
|
111546
|
+
if (firstToken !== 17) {
|
111547
|
+
let firstTokenStart = scanner.getTokenOffset() + formatTextStart;
|
111548
|
+
let initialIndent = repeat(indentValue, initialIndentLevel);
|
111549
|
+
addEdit(initialIndent, formatTextStart, firstTokenStart);
|
111550
|
+
}
|
111551
|
+
while (firstToken !== 17) {
|
111552
|
+
let firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart;
|
111553
|
+
let secondToken = scanNext();
|
111554
|
+
let replaceContent = "";
|
111555
|
+
let needsLineBreak = false;
|
111556
|
+
while (numberLineBreaks === 0 && (secondToken === 12 || secondToken === 13)) {
|
111557
|
+
let commentTokenStart = scanner.getTokenOffset() + formatTextStart;
|
111558
|
+
addEdit(" ", firstTokenEnd, commentTokenStart);
|
111559
|
+
firstTokenEnd = scanner.getTokenOffset() + scanner.getTokenLength() + formatTextStart;
|
111560
|
+
needsLineBreak = secondToken === 12;
|
111561
|
+
replaceContent = needsLineBreak ? newLinesAndIndent() : "";
|
111562
|
+
secondToken = scanNext();
|
111563
|
+
}
|
111564
|
+
if (secondToken === 2) {
|
111565
|
+
if (firstToken !== 1) {
|
111566
|
+
indentLevel--;
|
111567
|
+
}
|
111568
|
+
;
|
111569
|
+
if (options30.keepLines && numberLineBreaks > 0 || !options30.keepLines && firstToken !== 1) {
|
111570
|
+
replaceContent = newLinesAndIndent();
|
111571
|
+
} else if (options30.keepLines) {
|
111572
|
+
replaceContent = " ";
|
111573
|
+
}
|
111574
|
+
} else if (secondToken === 4) {
|
111575
|
+
if (firstToken !== 3) {
|
111576
|
+
indentLevel--;
|
111577
|
+
}
|
111578
|
+
;
|
111579
|
+
if (options30.keepLines && numberLineBreaks > 0 || !options30.keepLines && firstToken !== 3) {
|
111580
|
+
replaceContent = newLinesAndIndent();
|
111581
|
+
} else if (options30.keepLines) {
|
111582
|
+
replaceContent = " ";
|
111583
|
+
}
|
111584
|
+
} else {
|
111585
|
+
switch (firstToken) {
|
111586
|
+
case 3:
|
111587
|
+
case 1:
|
111588
|
+
indentLevel++;
|
111589
|
+
if (options30.keepLines && numberLineBreaks > 0 || !options30.keepLines) {
|
111590
|
+
replaceContent = newLinesAndIndent();
|
111591
|
+
} else {
|
111592
|
+
replaceContent = " ";
|
111593
|
+
}
|
111594
|
+
break;
|
111595
|
+
case 5:
|
111596
|
+
if (options30.keepLines && numberLineBreaks > 0 || !options30.keepLines) {
|
111597
|
+
replaceContent = newLinesAndIndent();
|
111598
|
+
} else {
|
111599
|
+
replaceContent = " ";
|
111600
|
+
}
|
111601
|
+
break;
|
111602
|
+
case 12:
|
111603
|
+
replaceContent = newLinesAndIndent();
|
111604
|
+
break;
|
111605
|
+
case 13:
|
111606
|
+
if (numberLineBreaks > 0) {
|
111607
|
+
replaceContent = newLinesAndIndent();
|
111608
|
+
} else if (!needsLineBreak) {
|
111609
|
+
replaceContent = " ";
|
111610
|
+
}
|
111611
|
+
break;
|
111612
|
+
case 6:
|
111613
|
+
if (options30.keepLines && numberLineBreaks > 0) {
|
111614
|
+
replaceContent = newLinesAndIndent();
|
111615
|
+
} else if (!needsLineBreak) {
|
111616
|
+
replaceContent = " ";
|
111617
|
+
}
|
111618
|
+
break;
|
111619
|
+
case 10:
|
111620
|
+
if (options30.keepLines && numberLineBreaks > 0) {
|
111621
|
+
replaceContent = newLinesAndIndent();
|
111622
|
+
} else if (secondToken === 6 && !needsLineBreak) {
|
111623
|
+
replaceContent = "";
|
111624
|
+
}
|
111625
|
+
break;
|
111626
|
+
case 7:
|
111627
|
+
case 8:
|
111628
|
+
case 9:
|
111629
|
+
case 11:
|
111630
|
+
case 2:
|
111631
|
+
case 4:
|
111632
|
+
if (options30.keepLines && numberLineBreaks > 0) {
|
111633
|
+
replaceContent = newLinesAndIndent();
|
111634
|
+
} else {
|
111635
|
+
if ((secondToken === 12 || secondToken === 13) && !needsLineBreak) {
|
111636
|
+
replaceContent = " ";
|
111637
|
+
} else if (secondToken !== 5 && secondToken !== 17) {
|
111638
|
+
hasError = true;
|
111639
|
+
}
|
111640
|
+
}
|
111641
|
+
break;
|
111642
|
+
case 16:
|
111643
|
+
hasError = true;
|
111644
|
+
break;
|
111645
|
+
}
|
111646
|
+
if (numberLineBreaks > 0 && (secondToken === 12 || secondToken === 13)) {
|
111647
|
+
replaceContent = newLinesAndIndent();
|
111648
|
+
}
|
111649
|
+
}
|
111650
|
+
if (secondToken === 17) {
|
111651
|
+
if (options30.keepLines && numberLineBreaks > 0) {
|
111652
|
+
replaceContent = newLinesAndIndent();
|
111653
|
+
} else {
|
111654
|
+
replaceContent = options30.insertFinalNewline ? eol : "";
|
111655
|
+
}
|
111656
|
+
}
|
111657
|
+
const secondTokenStart = scanner.getTokenOffset() + formatTextStart;
|
111658
|
+
addEdit(replaceContent, firstTokenEnd, secondTokenStart);
|
111659
|
+
firstToken = secondToken;
|
111660
|
+
}
|
111661
|
+
return editOperations;
|
111662
|
+
}
|
111663
|
+
__name(format4, "format");
|
111664
|
+
function repeat(s, count) {
|
111665
|
+
let result = "";
|
111666
|
+
for (let i = 0; i < count; i++) {
|
111667
|
+
result += s;
|
111668
|
+
}
|
111669
|
+
return result;
|
111670
|
+
}
|
111671
|
+
__name(repeat, "repeat");
|
111672
|
+
function computeIndentLevel(content, options30) {
|
111673
|
+
let i = 0;
|
111674
|
+
let nChars = 0;
|
111675
|
+
const tabSize = options30.tabSize || 4;
|
111676
|
+
while (i < content.length) {
|
111677
|
+
let ch = content.charAt(i);
|
111678
|
+
if (ch === " ") {
|
111679
|
+
nChars++;
|
111680
|
+
} else if (ch === " ") {
|
111681
|
+
nChars += tabSize;
|
111682
|
+
} else {
|
111683
|
+
break;
|
111684
|
+
}
|
111685
|
+
i++;
|
111686
|
+
}
|
111687
|
+
return Math.floor(nChars / tabSize);
|
111688
|
+
}
|
111689
|
+
__name(computeIndentLevel, "computeIndentLevel");
|
111690
|
+
function getEOL(options30, text) {
|
111691
|
+
for (let i = 0; i < text.length; i++) {
|
111692
|
+
const ch = text.charAt(i);
|
111693
|
+
if (ch === "\r") {
|
111694
|
+
if (i + 1 < text.length && text.charAt(i + 1) === "\n") {
|
111695
|
+
return "\r\n";
|
111696
|
+
}
|
111697
|
+
return "\r";
|
111698
|
+
} else if (ch === "\n") {
|
111699
|
+
return "\n";
|
111700
|
+
}
|
111701
|
+
}
|
111702
|
+
return options30 && options30.eol || "\n";
|
111703
|
+
}
|
111704
|
+
__name(getEOL, "getEOL");
|
111705
|
+
function isEOL(text, offset) {
|
111706
|
+
return "\r\n".indexOf(text.charAt(offset)) !== -1;
|
111707
|
+
}
|
111708
|
+
__name(isEOL, "isEOL");
|
111709
|
+
|
112048
111710
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
112049
111711
|
init_import_meta_url();
|
112050
111712
|
|
@@ -112101,6 +111763,99 @@ function parse(text, errors = [], options30 = ParseOptions.DEFAULT) {
|
|
112101
111763
|
return currentParent[0];
|
112102
111764
|
}
|
112103
111765
|
__name(parse, "parse");
|
111766
|
+
function parseTree(text, errors = [], options30 = ParseOptions.DEFAULT) {
|
111767
|
+
let currentParent = { type: "array", offset: -1, length: -1, children: [], parent: void 0 };
|
111768
|
+
function ensurePropertyComplete(endOffset) {
|
111769
|
+
if (currentParent.type === "property") {
|
111770
|
+
currentParent.length = endOffset - currentParent.offset;
|
111771
|
+
currentParent = currentParent.parent;
|
111772
|
+
}
|
111773
|
+
}
|
111774
|
+
__name(ensurePropertyComplete, "ensurePropertyComplete");
|
111775
|
+
function onValue(valueNode) {
|
111776
|
+
currentParent.children.push(valueNode);
|
111777
|
+
return valueNode;
|
111778
|
+
}
|
111779
|
+
__name(onValue, "onValue");
|
111780
|
+
const visitor = {
|
111781
|
+
onObjectBegin: (offset) => {
|
111782
|
+
currentParent = onValue({ type: "object", offset, length: -1, parent: currentParent, children: [] });
|
111783
|
+
},
|
111784
|
+
onObjectProperty: (name2, offset, length) => {
|
111785
|
+
currentParent = onValue({ type: "property", offset, length: -1, parent: currentParent, children: [] });
|
111786
|
+
currentParent.children.push({ type: "string", value: name2, offset, length, parent: currentParent });
|
111787
|
+
},
|
111788
|
+
onObjectEnd: (offset, length) => {
|
111789
|
+
ensurePropertyComplete(offset + length);
|
111790
|
+
currentParent.length = offset + length - currentParent.offset;
|
111791
|
+
currentParent = currentParent.parent;
|
111792
|
+
ensurePropertyComplete(offset + length);
|
111793
|
+
},
|
111794
|
+
onArrayBegin: (offset, length) => {
|
111795
|
+
currentParent = onValue({ type: "array", offset, length: -1, parent: currentParent, children: [] });
|
111796
|
+
},
|
111797
|
+
onArrayEnd: (offset, length) => {
|
111798
|
+
currentParent.length = offset + length - currentParent.offset;
|
111799
|
+
currentParent = currentParent.parent;
|
111800
|
+
ensurePropertyComplete(offset + length);
|
111801
|
+
},
|
111802
|
+
onLiteralValue: (value, offset, length) => {
|
111803
|
+
onValue({ type: getNodeType(value), offset, length, parent: currentParent, value });
|
111804
|
+
ensurePropertyComplete(offset + length);
|
111805
|
+
},
|
111806
|
+
onSeparator: (sep4, offset, length) => {
|
111807
|
+
if (currentParent.type === "property") {
|
111808
|
+
if (sep4 === ":") {
|
111809
|
+
currentParent.colonOffset = offset;
|
111810
|
+
} else if (sep4 === ",") {
|
111811
|
+
ensurePropertyComplete(offset);
|
111812
|
+
}
|
111813
|
+
}
|
111814
|
+
},
|
111815
|
+
onError: (error2, offset, length) => {
|
111816
|
+
errors.push({ error: error2, offset, length });
|
111817
|
+
}
|
111818
|
+
};
|
111819
|
+
visit(text, visitor, options30);
|
111820
|
+
const result = currentParent.children[0];
|
111821
|
+
if (result) {
|
111822
|
+
delete result.parent;
|
111823
|
+
}
|
111824
|
+
return result;
|
111825
|
+
}
|
111826
|
+
__name(parseTree, "parseTree");
|
111827
|
+
function findNodeAtLocation(root, path70) {
|
111828
|
+
if (!root) {
|
111829
|
+
return void 0;
|
111830
|
+
}
|
111831
|
+
let node2 = root;
|
111832
|
+
for (let segment of path70) {
|
111833
|
+
if (typeof segment === "string") {
|
111834
|
+
if (node2.type !== "object" || !Array.isArray(node2.children)) {
|
111835
|
+
return void 0;
|
111836
|
+
}
|
111837
|
+
let found = false;
|
111838
|
+
for (const propertyNode of node2.children) {
|
111839
|
+
if (Array.isArray(propertyNode.children) && propertyNode.children[0].value === segment && propertyNode.children.length === 2) {
|
111840
|
+
node2 = propertyNode.children[1];
|
111841
|
+
found = true;
|
111842
|
+
break;
|
111843
|
+
}
|
111844
|
+
}
|
111845
|
+
if (!found) {
|
111846
|
+
return void 0;
|
111847
|
+
}
|
111848
|
+
} else {
|
111849
|
+
const index = segment;
|
111850
|
+
if (node2.type !== "array" || index < 0 || !Array.isArray(node2.children) || index >= node2.children.length) {
|
111851
|
+
return void 0;
|
111852
|
+
}
|
111853
|
+
node2 = node2.children[index];
|
111854
|
+
}
|
111855
|
+
}
|
111856
|
+
return node2;
|
111857
|
+
}
|
111858
|
+
__name(findNodeAtLocation, "findNodeAtLocation");
|
112104
111859
|
function visit(text, visitor, options30 = ParseOptions.DEFAULT) {
|
112105
111860
|
const _scanner = createScanner(text, false);
|
112106
111861
|
const _jsonPath = [];
|
@@ -112399,6 +112154,174 @@ function visit(text, visitor, options30 = ParseOptions.DEFAULT) {
|
|
112399
112154
|
return true;
|
112400
112155
|
}
|
112401
112156
|
__name(visit, "visit");
|
112157
|
+
function getNodeType(value) {
|
112158
|
+
switch (typeof value) {
|
112159
|
+
case "boolean":
|
112160
|
+
return "boolean";
|
112161
|
+
case "number":
|
112162
|
+
return "number";
|
112163
|
+
case "string":
|
112164
|
+
return "string";
|
112165
|
+
case "object": {
|
112166
|
+
if (!value) {
|
112167
|
+
return "null";
|
112168
|
+
} else if (Array.isArray(value)) {
|
112169
|
+
return "array";
|
112170
|
+
}
|
112171
|
+
return "object";
|
112172
|
+
}
|
112173
|
+
default:
|
112174
|
+
return "null";
|
112175
|
+
}
|
112176
|
+
}
|
112177
|
+
__name(getNodeType, "getNodeType");
|
112178
|
+
|
112179
|
+
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/impl/edit.js
|
112180
|
+
function setProperty(text, originalPath, value, options30) {
|
112181
|
+
const path70 = originalPath.slice();
|
112182
|
+
const errors = [];
|
112183
|
+
const root = parseTree(text, errors);
|
112184
|
+
let parent = void 0;
|
112185
|
+
let lastSegment = void 0;
|
112186
|
+
while (path70.length > 0) {
|
112187
|
+
lastSegment = path70.pop();
|
112188
|
+
parent = findNodeAtLocation(root, path70);
|
112189
|
+
if (parent === void 0 && value !== void 0) {
|
112190
|
+
if (typeof lastSegment === "string") {
|
112191
|
+
value = { [lastSegment]: value };
|
112192
|
+
} else {
|
112193
|
+
value = [value];
|
112194
|
+
}
|
112195
|
+
} else {
|
112196
|
+
break;
|
112197
|
+
}
|
112198
|
+
}
|
112199
|
+
if (!parent) {
|
112200
|
+
if (value === void 0) {
|
112201
|
+
throw new Error("Can not delete in empty document");
|
112202
|
+
}
|
112203
|
+
return withFormatting(text, { offset: root ? root.offset : 0, length: root ? root.length : 0, content: JSON.stringify(value) }, options30);
|
112204
|
+
} else if (parent.type === "object" && typeof lastSegment === "string" && Array.isArray(parent.children)) {
|
112205
|
+
const existing = findNodeAtLocation(parent, [lastSegment]);
|
112206
|
+
if (existing !== void 0) {
|
112207
|
+
if (value === void 0) {
|
112208
|
+
if (!existing.parent) {
|
112209
|
+
throw new Error("Malformed AST");
|
112210
|
+
}
|
112211
|
+
const propertyIndex = parent.children.indexOf(existing.parent);
|
112212
|
+
let removeBegin;
|
112213
|
+
let removeEnd = existing.parent.offset + existing.parent.length;
|
112214
|
+
if (propertyIndex > 0) {
|
112215
|
+
let previous = parent.children[propertyIndex - 1];
|
112216
|
+
removeBegin = previous.offset + previous.length;
|
112217
|
+
} else {
|
112218
|
+
removeBegin = parent.offset + 1;
|
112219
|
+
if (parent.children.length > 1) {
|
112220
|
+
let next = parent.children[1];
|
112221
|
+
removeEnd = next.offset;
|
112222
|
+
}
|
112223
|
+
}
|
112224
|
+
return withFormatting(text, { offset: removeBegin, length: removeEnd - removeBegin, content: "" }, options30);
|
112225
|
+
} else {
|
112226
|
+
return withFormatting(text, { offset: existing.offset, length: existing.length, content: JSON.stringify(value) }, options30);
|
112227
|
+
}
|
112228
|
+
} else {
|
112229
|
+
if (value === void 0) {
|
112230
|
+
return [];
|
112231
|
+
}
|
112232
|
+
const newProperty = `${JSON.stringify(lastSegment)}: ${JSON.stringify(value)}`;
|
112233
|
+
const index = options30.getInsertionIndex ? options30.getInsertionIndex(parent.children.map((p2) => p2.children[0].value)) : parent.children.length;
|
112234
|
+
let edit;
|
112235
|
+
if (index > 0) {
|
112236
|
+
let previous = parent.children[index - 1];
|
112237
|
+
edit = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
|
112238
|
+
} else if (parent.children.length === 0) {
|
112239
|
+
edit = { offset: parent.offset + 1, length: 0, content: newProperty };
|
112240
|
+
} else {
|
112241
|
+
edit = { offset: parent.offset + 1, length: 0, content: newProperty + "," };
|
112242
|
+
}
|
112243
|
+
return withFormatting(text, edit, options30);
|
112244
|
+
}
|
112245
|
+
} else if (parent.type === "array" && typeof lastSegment === "number" && Array.isArray(parent.children)) {
|
112246
|
+
const insertIndex = lastSegment;
|
112247
|
+
if (insertIndex === -1) {
|
112248
|
+
const newProperty = `${JSON.stringify(value)}`;
|
112249
|
+
let edit;
|
112250
|
+
if (parent.children.length === 0) {
|
112251
|
+
edit = { offset: parent.offset + 1, length: 0, content: newProperty };
|
112252
|
+
} else {
|
112253
|
+
const previous = parent.children[parent.children.length - 1];
|
112254
|
+
edit = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
|
112255
|
+
}
|
112256
|
+
return withFormatting(text, edit, options30);
|
112257
|
+
} else if (value === void 0 && parent.children.length >= 0) {
|
112258
|
+
const removalIndex = lastSegment;
|
112259
|
+
const toRemove = parent.children[removalIndex];
|
112260
|
+
let edit;
|
112261
|
+
if (parent.children.length === 1) {
|
112262
|
+
edit = { offset: parent.offset + 1, length: parent.length - 2, content: "" };
|
112263
|
+
} else if (parent.children.length - 1 === removalIndex) {
|
112264
|
+
let previous = parent.children[removalIndex - 1];
|
112265
|
+
let offset = previous.offset + previous.length;
|
112266
|
+
let parentEndOffset = parent.offset + parent.length;
|
112267
|
+
edit = { offset, length: parentEndOffset - 2 - offset, content: "" };
|
112268
|
+
} else {
|
112269
|
+
edit = { offset: toRemove.offset, length: parent.children[removalIndex + 1].offset - toRemove.offset, content: "" };
|
112270
|
+
}
|
112271
|
+
return withFormatting(text, edit, options30);
|
112272
|
+
} else if (value !== void 0) {
|
112273
|
+
let edit;
|
112274
|
+
const newProperty = `${JSON.stringify(value)}`;
|
112275
|
+
if (!options30.isArrayInsertion && parent.children.length > lastSegment) {
|
112276
|
+
const toModify = parent.children[lastSegment];
|
112277
|
+
edit = { offset: toModify.offset, length: toModify.length, content: newProperty };
|
112278
|
+
} else if (parent.children.length === 0 || lastSegment === 0) {
|
112279
|
+
edit = { offset: parent.offset + 1, length: 0, content: parent.children.length === 0 ? newProperty : newProperty + "," };
|
112280
|
+
} else {
|
112281
|
+
const index = lastSegment > parent.children.length ? parent.children.length : lastSegment;
|
112282
|
+
const previous = parent.children[index - 1];
|
112283
|
+
edit = { offset: previous.offset + previous.length, length: 0, content: "," + newProperty };
|
112284
|
+
}
|
112285
|
+
return withFormatting(text, edit, options30);
|
112286
|
+
} else {
|
112287
|
+
throw new Error(`Can not ${value === void 0 ? "remove" : options30.isArrayInsertion ? "insert" : "modify"} Array index ${insertIndex} as length is not sufficient`);
|
112288
|
+
}
|
112289
|
+
} else {
|
112290
|
+
throw new Error(`Can not add ${typeof lastSegment !== "number" ? "index" : "property"} to parent of type ${parent.type}`);
|
112291
|
+
}
|
112292
|
+
}
|
112293
|
+
__name(setProperty, "setProperty");
|
112294
|
+
function withFormatting(text, edit, options30) {
|
112295
|
+
if (!options30.formattingOptions) {
|
112296
|
+
return [edit];
|
112297
|
+
}
|
112298
|
+
let newText = applyEdit(text, edit);
|
112299
|
+
let begin = edit.offset;
|
112300
|
+
let end = edit.offset + edit.content.length;
|
112301
|
+
if (edit.length === 0 || edit.content.length === 0) {
|
112302
|
+
while (begin > 0 && !isEOL(newText, begin - 1)) {
|
112303
|
+
begin--;
|
112304
|
+
}
|
112305
|
+
while (end < newText.length && !isEOL(newText, end)) {
|
112306
|
+
end++;
|
112307
|
+
}
|
112308
|
+
}
|
112309
|
+
const edits = format4(newText, { offset: begin, length: end - begin }, { ...options30.formattingOptions, keepLines: false });
|
112310
|
+
for (let i = edits.length - 1; i >= 0; i--) {
|
112311
|
+
const edit2 = edits[i];
|
112312
|
+
newText = applyEdit(newText, edit2);
|
112313
|
+
begin = Math.min(begin, edit2.offset);
|
112314
|
+
end = Math.max(end, edit2.offset + edit2.length);
|
112315
|
+
end += edit2.content.length - edit2.length;
|
112316
|
+
}
|
112317
|
+
const editLength = text.length - (newText.length - end) - begin;
|
112318
|
+
return [{ offset: begin, length: editLength, content: newText.substring(begin, end) }];
|
112319
|
+
}
|
112320
|
+
__name(withFormatting, "withFormatting");
|
112321
|
+
function applyEdit(text, edit) {
|
112322
|
+
return text.substring(0, edit.offset) + edit.content + text.substring(edit.offset + edit.length);
|
112323
|
+
}
|
112324
|
+
__name(applyEdit, "applyEdit");
|
112402
112325
|
|
112403
112326
|
// ../../node_modules/.pnpm/jsonc-parser@3.2.0/node_modules/jsonc-parser/lib/esm/main.js
|
112404
112327
|
var ScanError;
|
@@ -112489,6 +112412,35 @@ function printParseErrorCode(code) {
|
|
112489
112412
|
return "<unknown ParseErrorCode>";
|
112490
112413
|
}
|
112491
112414
|
__name(printParseErrorCode, "printParseErrorCode");
|
112415
|
+
function format5(documentText, range, options30) {
|
112416
|
+
return format4(documentText, range, options30);
|
112417
|
+
}
|
112418
|
+
__name(format5, "format");
|
112419
|
+
function modify(text, path70, value, options30) {
|
112420
|
+
return setProperty(text, path70, value, options30);
|
112421
|
+
}
|
112422
|
+
__name(modify, "modify");
|
112423
|
+
function applyEdits(text, edits) {
|
112424
|
+
let sortedEdits = edits.slice(0).sort((a, b2) => {
|
112425
|
+
const diff = a.offset - b2.offset;
|
112426
|
+
if (diff === 0) {
|
112427
|
+
return a.length - b2.length;
|
112428
|
+
}
|
112429
|
+
return diff;
|
112430
|
+
});
|
112431
|
+
let lastModifiedOffset = text.length;
|
112432
|
+
for (let i = sortedEdits.length - 1; i >= 0; i--) {
|
112433
|
+
let e3 = sortedEdits[i];
|
112434
|
+
if (e3.offset + e3.length <= lastModifiedOffset) {
|
112435
|
+
text = applyEdit(text, e3);
|
112436
|
+
} else {
|
112437
|
+
throw new Error("Overlapping edit");
|
112438
|
+
}
|
112439
|
+
lastModifiedOffset = e3.offset;
|
112440
|
+
}
|
112441
|
+
return text;
|
112442
|
+
}
|
112443
|
+
__name(applyEdits, "applyEdits");
|
112492
112444
|
|
112493
112445
|
// src/parse.ts
|
112494
112446
|
function formatMessage({ text, notes, location, kind = "error" }, color = true) {
|
@@ -117169,10 +117121,10 @@ function configFormat(configPath) {
|
|
117169
117121
|
}
|
117170
117122
|
__name(configFormat, "configFormat");
|
117171
117123
|
function configFileName(configPath) {
|
117172
|
-
const
|
117173
|
-
if (
|
117124
|
+
const format11 = configFormat(configPath);
|
117125
|
+
if (format11 === "toml") {
|
117174
117126
|
return "wrangler.toml";
|
117175
|
-
} else if (
|
117127
|
+
} else if (format11 === "jsonc") {
|
117176
117128
|
return "wrangler.json";
|
117177
117129
|
} else {
|
117178
117130
|
return "Wrangler configuration";
|
@@ -117180,8 +117132,8 @@ function configFileName(configPath) {
|
|
117180
117132
|
}
|
117181
117133
|
__name(configFileName, "configFileName");
|
117182
117134
|
function formatConfigSnippet(snippet, configPath, formatted = true) {
|
117183
|
-
const
|
117184
|
-
if (
|
117135
|
+
const format11 = configFormat(configPath);
|
117136
|
+
if (format11 === "toml") {
|
117185
117137
|
return import_toml3.default.stringify(snippet);
|
117186
117138
|
} else {
|
117187
117139
|
return formatted ? JSON.stringify(snippet, null, 2) : JSON.stringify(snippet);
|
@@ -118601,7 +118553,7 @@ var log = /* @__PURE__ */ __name((msg) => {
|
|
118601
118553
|
var newline = /* @__PURE__ */ __name(() => {
|
118602
118554
|
log("");
|
118603
118555
|
}, "newline");
|
118604
|
-
var
|
118556
|
+
var format6 = /* @__PURE__ */ __name((msg, {
|
118605
118557
|
linePrefix = gray(shapes.bar),
|
118606
118558
|
firstLinePrefix = linePrefix,
|
118607
118559
|
newlineBefore = false,
|
@@ -118623,7 +118575,7 @@ var format5 = /* @__PURE__ */ __name((msg, {
|
|
118623
118575
|
}, "format");
|
118624
118576
|
var updateStatus = /* @__PURE__ */ __name((msg, printNewLine = true) => {
|
118625
118577
|
logRaw(
|
118626
|
-
|
118578
|
+
format6(msg, {
|
118627
118579
|
firstLinePrefix: gray(shapes.leftT),
|
118628
118580
|
linePrefix: gray(shapes.bar),
|
118629
118581
|
newlineAfter: printNewLine
|
@@ -118651,7 +118603,7 @@ var cancel = /* @__PURE__ */ __name((msg, {
|
|
118651
118603
|
multiline = false
|
118652
118604
|
} = {}) => {
|
118653
118605
|
logRaw(
|
118654
|
-
|
118606
|
+
format6(msg, {
|
118655
118607
|
firstLinePrefix: `${gray(shape)} ${status.cancel}`,
|
118656
118608
|
linePrefix: gray(shapes.bar),
|
118657
118609
|
newlineBefore: true,
|
@@ -118669,7 +118621,7 @@ var warn = /* @__PURE__ */ __name((msg, {
|
|
118669
118621
|
newlineBefore = true
|
118670
118622
|
} = {}) => {
|
118671
118623
|
logRaw(
|
118672
|
-
|
118624
|
+
format6(msg, {
|
118673
118625
|
firstLinePrefix: gray(shape) + space() + status.warning,
|
118674
118626
|
linePrefix: gray(shapes.bar),
|
118675
118627
|
formatLine: (line) => dim(line),
|
@@ -118686,7 +118638,7 @@ var success = /* @__PURE__ */ __name((msg, {
|
|
118686
118638
|
multiline = false
|
118687
118639
|
} = {}) => {
|
118688
118640
|
logRaw(
|
118689
|
-
|
118641
|
+
format6(msg, {
|
118690
118642
|
firstLinePrefix: gray(shape) + space() + status.success,
|
118691
118643
|
linePrefix: gray(shapes.bar),
|
118692
118644
|
newlineBefore: true,
|
@@ -118863,18 +118815,18 @@ var getRenderers = /* @__PURE__ */ __name((config) => {
|
|
118863
118815
|
var getTextRenderers = /* @__PURE__ */ __name((config) => {
|
118864
118816
|
const { question } = config;
|
118865
118817
|
const helpText = config.helpText ?? "";
|
118866
|
-
const
|
118818
|
+
const format11 = config.format ?? ((val) => String(val));
|
118867
118819
|
const defaultValue = config.defaultValue?.toString() ?? "";
|
118868
118820
|
const activeRenderer = /* @__PURE__ */ __name(({ value }) => [
|
118869
118821
|
`${blCorner} ${bold(question)} ${dim(helpText)}`,
|
118870
|
-
`${space(2)}${
|
118822
|
+
`${space(2)}${format11(value || dim(defaultValue))}`,
|
118871
118823
|
``
|
118872
118824
|
// extra line for readability
|
118873
118825
|
], "activeRenderer");
|
118874
118826
|
return {
|
118875
118827
|
initial: () => [
|
118876
118828
|
`${blCorner} ${bold(question)} ${dim(helpText)}`,
|
118877
|
-
`${space(2)}${gray(
|
118829
|
+
`${space(2)}${gray(format11(defaultValue))}`,
|
118878
118830
|
``
|
118879
118831
|
// extra line for readability
|
118880
118832
|
],
|
@@ -118883,11 +118835,11 @@ var getTextRenderers = /* @__PURE__ */ __name((config) => {
|
|
118883
118835
|
`${leftT} ${status.error} ${dim(error2)}`,
|
118884
118836
|
`${grayBar}`,
|
118885
118837
|
`${blCorner} ${question} ${dim(helpText)}`,
|
118886
|
-
`${space(2)}${
|
118838
|
+
`${space(2)}${format11(value)}`,
|
118887
118839
|
``
|
118888
118840
|
// extra line for readability
|
118889
118841
|
],
|
118890
|
-
submit: ({ value }) => renderSubmit(config,
|
118842
|
+
submit: ({ value }) => renderSubmit(config, format11(value ?? "")),
|
118891
118843
|
cancel: activeRenderer
|
118892
118844
|
};
|
118893
118845
|
}, "getTextRenderers");
|
@@ -120740,11 +120692,11 @@ var import_glob_to_regexp = __toESM(require_glob_to_regexp());
|
|
120740
120692
|
|
120741
120693
|
// src/deployment-bundle/bundle-type.ts
|
120742
120694
|
init_import_meta_url();
|
120743
|
-
function getBundleType(
|
120695
|
+
function getBundleType(format11, file) {
|
120744
120696
|
if (file && file.endsWith(".py")) {
|
120745
120697
|
return "python";
|
120746
120698
|
}
|
120747
|
-
return
|
120699
|
+
return format11 === "modules" ? "esm" : "commonjs";
|
120748
120700
|
}
|
120749
120701
|
__name(getBundleType, "getBundleType");
|
120750
120702
|
|
@@ -121721,15 +121673,16 @@ const HEADER_ID = "X-Miniflare-Durable-Object-Id";
|
|
121721
121673
|
const HEADER_CF_BLOB = "X-Miniflare-Durable-Object-Cf-Blob";
|
121722
121674
|
|
121723
121675
|
const HANDLER_RESERVED_KEYS = new Set([
|
121724
|
-
"tail",
|
121725
|
-
"trace",
|
121726
|
-
"scheduled",
|
121727
121676
|
"alarm",
|
121677
|
+
"scheduled",
|
121678
|
+
"self",
|
121679
|
+
"tail",
|
121680
|
+
"tailStream",
|
121728
121681
|
"test",
|
121729
|
-
"
|
121682
|
+
"trace",
|
121730
121683
|
"webSocketClose",
|
121731
121684
|
"webSocketError",
|
121732
|
-
"
|
121685
|
+
"webSocketMessage",
|
121733
121686
|
]);
|
121734
121687
|
|
121735
121688
|
function createProxyPrototypeClass(handlerSuperKlass, getUnknownPrototypeKey) {
|
@@ -137524,7 +137477,7 @@ var RelativeTimeFormat = /* @__PURE__ */ function() {
|
|
137524
137477
|
__name(RelativeTimeFormat2, "RelativeTimeFormat");
|
137525
137478
|
_createClass2(RelativeTimeFormat2, [{
|
137526
137479
|
key: "format",
|
137527
|
-
value: /* @__PURE__ */ __name(function
|
137480
|
+
value: /* @__PURE__ */ __name(function format11() {
|
137528
137481
|
var _parseFormatArgs = parseFormatArgs(arguments), _parseFormatArgs2 = _slicedToArray(_parseFormatArgs, 2), number = _parseFormatArgs2[0], unit = _parseFormatArgs2[1];
|
137529
137482
|
return this.getRule(number, unit).replace("{0}", this.formatNumber(Math.abs(number)));
|
137530
137483
|
}, "format")
|
@@ -138522,7 +138475,7 @@ var monthAndDay = {
|
|
138522
138475
|
var future = _ref.future, getMinTimeForUnit = _ref.getMinTimeForUnit;
|
138523
138476
|
return getMinTimeForUnit("day");
|
138524
138477
|
}, "minTime"),
|
138525
|
-
format: /* @__PURE__ */ __name(function
|
138478
|
+
format: /* @__PURE__ */ __name(function format7(value, locale) {
|
138526
138479
|
if (!formatters[locale]) {
|
138527
138480
|
formatters[locale] = {};
|
138528
138481
|
}
|
@@ -138546,7 +138499,7 @@ var yearMonthAndDay = {
|
|
138546
138499
|
return (minFittingNow - timestamp) / 1e3;
|
138547
138500
|
}
|
138548
138501
|
}, "minTime"),
|
138549
|
-
format: /* @__PURE__ */ __name(function
|
138502
|
+
format: /* @__PURE__ */ __name(function format8(value, locale) {
|
138550
138503
|
if (!formatters[locale]) {
|
138551
138504
|
formatters[locale] = {};
|
138552
138505
|
}
|
@@ -139100,7 +139053,7 @@ var TimeAgo = /* @__PURE__ */ function() {
|
|
139100
139053
|
__name(TimeAgo2, "TimeAgo");
|
139101
139054
|
_createClass4(TimeAgo2, [{
|
139102
139055
|
key: "format",
|
139103
|
-
value: /* @__PURE__ */ __name(function
|
139056
|
+
value: /* @__PURE__ */ __name(function format11(input, style, options30) {
|
139104
139057
|
if (!options30) {
|
139105
139058
|
if (style && !isStyle(style)) {
|
139106
139059
|
options30 = style;
|
@@ -144111,7 +144064,7 @@ async function getEntry(args, config, command2) {
|
|
144111
144064
|
config.configPath
|
144112
144065
|
);
|
144113
144066
|
const projectRoot = paths.projectRoot ?? process.cwd();
|
144114
|
-
const { format:
|
144067
|
+
const { format: format11, exports: exports2 } = await guessWorkerFormat(
|
144115
144068
|
paths.absolutePath,
|
144116
144069
|
projectRoot,
|
144117
144070
|
args.format ?? config.build?.upload?.format,
|
@@ -144123,7 +144076,7 @@ async function getEntry(args, config, command2) {
|
|
144123
144076
|
"WARNING: You have Durable Object bindings that are not defined locally in the worker being developed.\nBe aware that changes to the data stored in these Durable Objects will be permanent and affect the live instances.\nRemote Durable Objects that are affected:\n" + remoteBindings.map((b2) => `- ${JSON.stringify(b2)}`).join("\n")
|
144124
144077
|
);
|
144125
144078
|
}
|
144126
|
-
if (
|
144079
|
+
if (format11 === "service-worker" && localBindings.length > 0) {
|
144127
144080
|
const errorMessage = "You seem to be trying to use Durable Objects in a Worker written as a service-worker.";
|
144128
144081
|
const addScriptName = `You can use Durable Objects defined in other Workers by specifying a \`script_name\` in your ${configFileName(config.configPath)} file, where \`script_name\` is the name of the Worker that implements that Durable Object. For example:`;
|
144129
144082
|
const addScriptNameExamples = generateAddScriptNameExamples(localBindings);
|
@@ -144140,7 +144093,7 @@ ${migrateUrl}`
|
|
144140
144093
|
return {
|
144141
144094
|
file: paths.absolutePath,
|
144142
144095
|
projectRoot,
|
144143
|
-
format:
|
144096
|
+
format: format11,
|
144144
144097
|
moduleRoot: args.moduleRoot ?? config.base_dir ?? import_node_path29.default.dirname(paths.absolutePath),
|
144145
144098
|
name: config.name ?? "worker",
|
144146
144099
|
exports: exports2
|
@@ -151234,7 +151187,7 @@ function diffSec(date, relativeDate) {
|
|
151234
151187
|
__name(diffSec, "diffSec");
|
151235
151188
|
|
151236
151189
|
// ../../node_modules/.pnpm/timeago.js@4.0.2/node_modules/timeago.js/esm/format.js
|
151237
|
-
var
|
151190
|
+
var format9 = /* @__PURE__ */ __name(function(date, locale, opts) {
|
151238
151191
|
var sec = diffSec(date, opts && opts.relativeDate);
|
151239
151192
|
return formatDiff(sec, getLocale(locale));
|
151240
151193
|
}, "format");
|
@@ -151263,7 +151216,7 @@ async function ListHandler3() {
|
|
151263
151216
|
"Project Name": project.name,
|
151264
151217
|
"Project Domains": `${project.domains.join(", ")}`,
|
151265
151218
|
"Git Provider": project.source ? "Yes" : "No",
|
151266
|
-
"Last Modified": project.latest_deployment ?
|
151219
|
+
"Last Modified": project.latest_deployment ? format9(project.latest_deployment.modified_on) : format9(project.created_on)
|
151267
151220
|
};
|
151268
151221
|
});
|
151269
151222
|
saveToConfigCache(PAGES_CONFIG_CACHE_FILENAME, {
|
@@ -152154,7 +152107,7 @@ async function Handler13({
|
|
152154
152107
|
samplingRate,
|
152155
152108
|
search,
|
152156
152109
|
status: status2,
|
152157
|
-
format:
|
152110
|
+
format: format11 = "pretty",
|
152158
152111
|
debug,
|
152159
152112
|
...args
|
152160
152113
|
}) {
|
@@ -152163,7 +152116,7 @@ async function Handler13({
|
|
152163
152116
|
"Invalid value for `--status`. Valid options: " + statusChoices.join(", ")
|
152164
152117
|
);
|
152165
152118
|
}
|
152166
|
-
if (
|
152119
|
+
if (format11 === "pretty") {
|
152167
152120
|
await printWranglerBanner();
|
152168
152121
|
}
|
152169
152122
|
const config = readConfig(args);
|
@@ -152216,7 +152169,7 @@ async function Handler13({
|
|
152216
152169
|
if (envDeployments.length === 0) {
|
152217
152170
|
throw new FatalError("No deployments for environment: " + environment, 1);
|
152218
152171
|
}
|
152219
|
-
if (
|
152172
|
+
if (format11 === "pretty") {
|
152220
152173
|
logger.log(
|
152221
152174
|
"No deployment specified. Using latest deployment for",
|
152222
152175
|
environment,
|
@@ -152263,7 +152216,7 @@ async function Handler13({
|
|
152263
152216
|
})();
|
152264
152217
|
(0, import_signal_exit5.default)(onCloseTail);
|
152265
152218
|
tail.on("message", (data) => {
|
152266
|
-
if (
|
152219
|
+
if (format11 === "pretty") {
|
152267
152220
|
prettyPrintLogs(data);
|
152268
152221
|
} else {
|
152269
152222
|
jsonPrintLogs(data);
|
@@ -152287,7 +152240,7 @@ async function Handler13({
|
|
152287
152240
|
);
|
152288
152241
|
}
|
152289
152242
|
}
|
152290
|
-
if (
|
152243
|
+
if (format11 === "pretty") {
|
152291
152244
|
logger.log(`Connected to deployment ${deploymentId}, waiting for logs...`);
|
152292
152245
|
}
|
152293
152246
|
}
|
@@ -152329,7 +152282,7 @@ async function ListHandler4({ projectName, environment }) {
|
|
152329
152282
|
const shortSha = /* @__PURE__ */ __name((sha) => sha.slice(0, 7), "shortSha");
|
152330
152283
|
const getStatus = /* @__PURE__ */ __name((deployment) => {
|
152331
152284
|
if (deployment.latest_stage.status === "success" && deployment.latest_stage.ended_on) {
|
152332
|
-
return
|
152285
|
+
return format9(deployment.latest_stage.ended_on);
|
152333
152286
|
}
|
152334
152287
|
return titleCase(deployment.latest_stage.status);
|
152335
152288
|
}, "getStatus");
|
@@ -172742,18 +172695,18 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
172742
172695
|
const start = Date.now();
|
172743
172696
|
const workerName = scriptName;
|
172744
172697
|
const workerUrl = `/accounts/${accountId}/workers/scripts/${scriptName}`;
|
172745
|
-
const { format:
|
172746
|
-
if (config.wasm_modules &&
|
172698
|
+
const { format: format11 } = props.entry;
|
172699
|
+
if (config.wasm_modules && format11 === "modules") {
|
172747
172700
|
throw new UserError(
|
172748
172701
|
"You cannot configure [wasm_modules] with an ES module worker. Instead, import the .wasm module directly in your code"
|
172749
172702
|
);
|
172750
172703
|
}
|
172751
|
-
if (config.text_blobs &&
|
172704
|
+
if (config.text_blobs && format11 === "modules") {
|
172752
172705
|
throw new UserError(
|
172753
172706
|
`You cannot configure [text_blobs] with an ES module worker. Instead, import the file directly in your code, and optionally configure \`[rules]\` in your ${configFileName(config.configPath)} file`
|
172754
172707
|
);
|
172755
172708
|
}
|
172756
|
-
if (config.data_blobs &&
|
172709
|
+
if (config.data_blobs && format11 === "modules") {
|
172757
172710
|
throw new UserError(
|
172758
172711
|
`You cannot configure [data_blobs] with an ES module worker. Instead, import the file directly in your code, and optionally configure \`[rules]\` in your ${configFileName(config.configPath)} file`
|
172759
172712
|
);
|
@@ -173508,8 +173461,8 @@ init_import_meta_url();
|
|
173508
173461
|
function buildFormatLongFn(args) {
|
173509
173462
|
return (options30 = {}) => {
|
173510
173463
|
const width = options30.width ? String(options30.width) : args.defaultWidth;
|
173511
|
-
const
|
173512
|
-
return
|
173464
|
+
const format11 = args.formats[width] || args.formats[args.defaultWidth];
|
173465
|
+
return format11;
|
173513
173466
|
};
|
173514
173467
|
}
|
173515
173468
|
__name(buildFormatLongFn, "buildFormatLongFn");
|
@@ -176084,7 +176037,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176084
176037
|
const notProd = !prod;
|
176085
176038
|
const workerName = notProd ? `${scriptName} (${envName})` : scriptName;
|
176086
176039
|
const workerUrl = props.dispatchNamespace ? `/accounts/${accountId}/workers/dispatch/namespaces/${props.dispatchNamespace}/scripts/${scriptName}` : notProd ? `/accounts/${accountId}/workers/services/${scriptName}/environments/${envName}` : `/accounts/${accountId}/workers/scripts/${scriptName}`;
|
176087
|
-
const { format:
|
176040
|
+
const { format: format11 } = props.entry;
|
176088
176041
|
if (!props.dispatchNamespace && prod && accountId && scriptName) {
|
176089
176042
|
const yes = await confirmLatestDeploymentOverwrite(accountId, scriptName);
|
176090
176043
|
if (!yes) {
|
@@ -176092,22 +176045,22 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176092
176045
|
return { versionId, workerTag };
|
176093
176046
|
}
|
176094
176047
|
}
|
176095
|
-
if (!props.isWorkersSite && Boolean(props.legacyAssetPaths) &&
|
176048
|
+
if (!props.isWorkersSite && Boolean(props.legacyAssetPaths) && format11 === "service-worker") {
|
176096
176049
|
throw new UserError(
|
176097
176050
|
"You cannot use the service-worker format with an `assets` directory yet. For information on how to migrate to the module-worker format, see: https://developers.cloudflare.com/workers/learning/migrating-to-module-workers/"
|
176098
176051
|
);
|
176099
176052
|
}
|
176100
|
-
if (config.wasm_modules &&
|
176053
|
+
if (config.wasm_modules && format11 === "modules") {
|
176101
176054
|
throw new UserError(
|
176102
176055
|
"You cannot configure [wasm_modules] with an ES module worker. Instead, import the .wasm module directly in your code"
|
176103
176056
|
);
|
176104
176057
|
}
|
176105
|
-
if (config.text_blobs &&
|
176058
|
+
if (config.text_blobs && format11 === "modules") {
|
176106
176059
|
throw new UserError(
|
176107
176060
|
`You cannot configure [text_blobs] with an ES module worker. Instead, import the file directly in your code, and optionally configure \`[rules]\` in your ${configFileName(config.configPath)} file`
|
176108
176061
|
);
|
176109
176062
|
}
|
176110
|
-
if (config.data_blobs &&
|
176063
|
+
if (config.data_blobs && format11 === "modules") {
|
176111
176064
|
throw new UserError(
|
176112
176065
|
`You cannot configure [data_blobs] with an ES module worker. Instead, import the file directly in your code, and optionally configure \`[rules]\` in your ${configFileName(config.configPath)} file`
|
176113
176066
|
);
|
@@ -176227,7 +176180,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176227
176180
|
vars: { ...config.vars, ...props.vars },
|
176228
176181
|
text_blobs: {
|
176229
176182
|
...config.text_blobs,
|
176230
|
-
...legacyAssets.manifest &&
|
176183
|
+
...legacyAssets.manifest && format11 === "service-worker" && {
|
176231
176184
|
__STATIC_CONTENT_MANIFEST: "__STATIC_CONTENT_MANIFEST"
|
176232
176185
|
}
|
176233
176186
|
}
|
@@ -176290,7 +176243,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176290
176243
|
maskedVars[key] = "(hidden)";
|
176291
176244
|
}
|
176292
176245
|
}
|
176293
|
-
const canUseNewVersionsDeploymentsApi = props.experimentalVersions && workerExists && props.dispatchNamespace === void 0 && prod &&
|
176246
|
+
const canUseNewVersionsDeploymentsApi = props.experimentalVersions && workerExists && props.dispatchNamespace === void 0 && prod && format11 === "modules" && migrations === void 0 && !config.first_party_worker;
|
176294
176247
|
if (props.dryRun) {
|
176295
176248
|
printBindings({ ...withoutStaticAssets, vars: maskedVars });
|
176296
176249
|
} else {
|
@@ -176962,6 +176915,21 @@ function validateAssetsArgsAndConfig(args, config) {
|
|
176962
176915
|
"Cannot use assets with a binding in an assets-only Worker.\nPlease remove the asset binding from your configuration file, or provide a Worker script in your configuration file (`main`)."
|
176963
176916
|
);
|
176964
176917
|
}
|
176918
|
+
if (config?.placement?.mode === "smart" && config?.assets?.experimental_serve_directly === false) {
|
176919
|
+
logger.warn(
|
176920
|
+
"Turning on Smart Placement in a Worker that is using assets and serve_directly set to false means that your entire Worker could be moved to run closer to your data source, and all requests will go to that Worker before serving assets.\nThis could result in poor performance as round trip times could increase when serving assets.\n\nRead more: https://developers.cloudflare.com/workers/static-assets/binding/#smart-placement"
|
176921
|
+
);
|
176922
|
+
}
|
176923
|
+
if ("legacy" in args ? args.assets?.assetConfig?.serve_directly === false && !args.assets?.binding : config?.assets?.experimental_serve_directly === false && !config?.assets?.binding) {
|
176924
|
+
logger.warn(
|
176925
|
+
"experimental_serve_directly=false set without an assets binding\nSetting experimental_serve_directly to false will always invoke your Worker script.\nTo fetch your assets from your Worker, please set the [assets.binding] key in your configuration file.\n\nRead more: https://developers.cloudflare.com/workers/static-assets/binding/#binding"
|
176926
|
+
);
|
176927
|
+
}
|
176928
|
+
if ("legacy" in args ? args.entrypoint === noOpEntrypoint && args.assets?.assetConfig?.serve_directly === false : !config?.main && config?.assets?.experimental_serve_directly === false) {
|
176929
|
+
throw new UserError(
|
176930
|
+
"Cannot set experimental_serve_directly=false without a Worker script.\nPlease remove experimental_serve_directly from your configuration file, or provide a Worker script in your configuration file (`main`)."
|
176931
|
+
);
|
176932
|
+
}
|
176965
176933
|
}
|
176966
176934
|
__name(validateAssetsArgsAndConfig, "validateAssetsArgsAndConfig");
|
176967
176935
|
var CF_ASSETS_IGNORE_FILENAME = ".assetsignore";
|
@@ -179917,6 +179885,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
179917
179885
|
return;
|
179918
179886
|
}
|
179919
179887
|
try {
|
179888
|
+
if (props.bundleId !== this.#currentBundleId) {
|
179889
|
+
return;
|
179890
|
+
}
|
179920
179891
|
const { workerAccount, workerContext } = await getWorkerAccountAndContext(
|
179921
179892
|
{
|
179922
179893
|
accountId: props.accountId,
|
@@ -179929,6 +179900,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
179929
179900
|
}
|
179930
179901
|
);
|
179931
179902
|
const scriptId = props.name || (workerContext.zone ? this.#session.id : this.#session.host.split(".")[0]);
|
179903
|
+
if (props.bundleId !== this.#currentBundleId) {
|
179904
|
+
return;
|
179905
|
+
}
|
179932
179906
|
const init2 = await createRemoteWorkerInit({
|
179933
179907
|
bundle: props.bundle,
|
179934
179908
|
modules: props.modules,
|
@@ -179944,6 +179918,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
179944
179918
|
compatibilityDate: props.compatibilityDate,
|
179945
179919
|
compatibilityFlags: props.compatibilityFlags
|
179946
179920
|
});
|
179921
|
+
if (props.bundleId !== this.#currentBundleId) {
|
179922
|
+
return;
|
179923
|
+
}
|
179947
179924
|
const workerPreviewToken = await createWorkerPreview(
|
179948
179925
|
init2,
|
179949
179926
|
workerAccount,
|
@@ -180000,6 +179977,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
180000
179977
|
const { bindings } = await convertBindingsToCfWorkerInitBindings(
|
180001
179978
|
config.bindings
|
180002
179979
|
);
|
179980
|
+
if (id !== this.#currentBundleId) {
|
179981
|
+
return;
|
179982
|
+
}
|
180003
179983
|
const token = await this.#previewToken({
|
180004
179984
|
bundle,
|
180005
179985
|
modules: bundle.modules,
|
@@ -180023,7 +180003,8 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
180023
180003
|
routes,
|
180024
180004
|
host: config.dev.origin?.hostname,
|
180025
180005
|
sendMetrics: config.sendMetrics,
|
180026
|
-
configPath: config.config
|
180006
|
+
configPath: config.config,
|
180007
|
+
bundleId: id
|
180027
180008
|
});
|
180028
180009
|
if (id !== this.#currentBundleId || !token) {
|
180029
180010
|
return;
|
@@ -180577,6 +180558,62 @@ async function getBindingsProxy(options30 = {}) {
|
|
180577
180558
|
}
|
180578
180559
|
__name(getBindingsProxy, "getBindingsProxy");
|
180579
180560
|
|
180561
|
+
// src/config/patch-config.ts
|
180562
|
+
init_import_meta_url();
|
180563
|
+
var import_fs16 = require("fs");
|
180564
|
+
var import_toml10 = __toESM(require_toml());
|
180565
|
+
var experimental_patchConfig = /* @__PURE__ */ __name((configPath, patch, isArrayInsertion = true) => {
|
180566
|
+
let configString = readFileSync5(configPath);
|
180567
|
+
if (configPath.endsWith("toml")) {
|
180568
|
+
if (configString.includes("#")) {
|
180569
|
+
throw new PatchConfigError(
|
180570
|
+
"cannot patch .toml config if comments are present"
|
180571
|
+
);
|
180572
|
+
} else {
|
180573
|
+
configString = JSON.stringify(parseTOML(configString));
|
180574
|
+
}
|
180575
|
+
}
|
180576
|
+
const patchPaths = [];
|
180577
|
+
getJSONPath(patch, patchPaths, isArrayInsertion);
|
180578
|
+
for (const patchPath of patchPaths) {
|
180579
|
+
const value = patchPath.pop();
|
180580
|
+
const edit = modify(configString, patchPath, value, {
|
180581
|
+
isArrayInsertion
|
180582
|
+
});
|
180583
|
+
configString = applyEdits(configString, edit);
|
180584
|
+
}
|
180585
|
+
const formatEdit = format5(configString, void 0, {});
|
180586
|
+
configString = applyEdits(configString, formatEdit);
|
180587
|
+
if (configPath.endsWith(".toml")) {
|
180588
|
+
configString = import_toml10.default.stringify(parseJSONC(configString));
|
180589
|
+
}
|
180590
|
+
(0, import_fs16.writeFileSync)(configPath, configString);
|
180591
|
+
return configString;
|
180592
|
+
}, "experimental_patchConfig");
|
180593
|
+
var getJSONPath = /* @__PURE__ */ __name((obj, allPaths, isArrayInsertion, prevPath = []) => {
|
180594
|
+
for (const [k2, v2] of Object.entries(obj)) {
|
180595
|
+
const currentPath = [...prevPath, k2];
|
180596
|
+
if (Array.isArray(v2)) {
|
180597
|
+
v2.forEach((x2, i) => {
|
180598
|
+
if (isArrayInsertion) {
|
180599
|
+
allPaths.push([...currentPath, -1, x2]);
|
180600
|
+
} else if (typeof x2 === "object") {
|
180601
|
+
getJSONPath(x2, allPaths, isArrayInsertion, [...currentPath, i]);
|
180602
|
+
} else {
|
180603
|
+
allPaths.push([...currentPath, i, x2]);
|
180604
|
+
}
|
180605
|
+
});
|
180606
|
+
} else if (typeof v2 === "object") {
|
180607
|
+
getJSONPath(v2, allPaths, isArrayInsertion, currentPath);
|
180608
|
+
} else {
|
180609
|
+
allPaths.push([...currentPath, v2]);
|
180610
|
+
}
|
180611
|
+
}
|
180612
|
+
}, "getJSONPath");
|
180613
|
+
var PatchConfigError = class extends Error {
|
180614
|
+
};
|
180615
|
+
__name(PatchConfigError, "PatchConfigError");
|
180616
|
+
|
180580
180617
|
// src/cli.ts
|
180581
180618
|
if (typeof vitest === "undefined" && require.main === module) {
|
180582
180619
|
main(hideBin(import_process6.default.argv)).catch((e3) => {
|
@@ -180590,6 +180627,7 @@ var generateASSETSBinding2 = (
|
|
180590
180627
|
);
|
180591
180628
|
// Annotate the CommonJS export names for ESM import in node:
|
180592
180629
|
0 && (module.exports = {
|
180630
|
+
experimental_patchConfig,
|
180593
180631
|
experimental_readRawConfig,
|
180594
180632
|
getBindingsProxy,
|
180595
180633
|
getPlatformProxy,
|