wrangler 3.98.0 → 3.100.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 +10 -10
- package/wrangler-dist/cli.d.ts +7 -5
- package/wrangler-dist/cli.js +1139 -1092
- package/wrangler-dist/cli.js.map +7 -0
package/wrangler-dist/cli.js
CHANGED
@@ -17534,7 +17534,7 @@ var require_XDG = __commonJS({
|
|
17534
17534
|
exports2.__esModule = true;
|
17535
17535
|
exports2.Adapt = void 0;
|
17536
17536
|
function Adapt(adapter_) {
|
17537
|
-
var
|
17537
|
+
var env5 = adapter_.env, osPaths = adapter_.osPaths, path70 = adapter_.path;
|
17538
17538
|
var isMacOS = /^darwin$/i.test(adapter_.process.platform);
|
17539
17539
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
17540
17540
|
function baseDir() {
|
@@ -17547,63 +17547,63 @@ var require_XDG = __commonJS({
|
|
17547
17547
|
__name(valOrPath, "valOrPath");
|
17548
17548
|
var linux = /* @__PURE__ */ __name(function() {
|
17549
17549
|
var cache2 = /* @__PURE__ */ __name(function() {
|
17550
|
-
return valOrPath(
|
17550
|
+
return valOrPath(env5.get("XDG_CACHE_HOME"), [baseDir(), ".cache"]);
|
17551
17551
|
}, "cache");
|
17552
17552
|
var config = /* @__PURE__ */ __name(function() {
|
17553
|
-
return valOrPath(
|
17553
|
+
return valOrPath(env5.get("XDG_CONFIG_HOME"), [baseDir(), ".config"]);
|
17554
17554
|
}, "config");
|
17555
17555
|
var data = /* @__PURE__ */ __name(function() {
|
17556
|
-
return valOrPath(
|
17556
|
+
return valOrPath(env5.get("XDG_DATA_HOME"), [baseDir(), ".local", "share"]);
|
17557
17557
|
}, "data");
|
17558
17558
|
var runtime = /* @__PURE__ */ __name(function() {
|
17559
|
-
return
|
17559
|
+
return env5.get("XDG_RUNTIME_DIR") || void 0;
|
17560
17560
|
}, "runtime");
|
17561
17561
|
var state = /* @__PURE__ */ __name(function() {
|
17562
|
-
return valOrPath(
|
17562
|
+
return valOrPath(env5.get("XDG_STATE_HOME"), [baseDir(), ".local", "state"]);
|
17563
17563
|
}, "state");
|
17564
17564
|
return { cache: cache2, config, data, runtime, state };
|
17565
17565
|
}, "linux");
|
17566
17566
|
var macos = /* @__PURE__ */ __name(function() {
|
17567
17567
|
var cache2 = /* @__PURE__ */ __name(function() {
|
17568
|
-
return valOrPath(
|
17568
|
+
return valOrPath(env5.get("XDG_CACHE_HOME"), [baseDir(), "Library", "Caches"]);
|
17569
17569
|
}, "cache");
|
17570
17570
|
var config = /* @__PURE__ */ __name(function() {
|
17571
|
-
return valOrPath(
|
17571
|
+
return valOrPath(env5.get("XDG_CONFIG_HOME"), [baseDir(), "Library", "Preferences"]);
|
17572
17572
|
}, "config");
|
17573
17573
|
var data = /* @__PURE__ */ __name(function() {
|
17574
|
-
return valOrPath(
|
17574
|
+
return valOrPath(env5.get("XDG_DATA_HOME"), [baseDir(), "Library", "Application Support"]);
|
17575
17575
|
}, "data");
|
17576
17576
|
var runtime = /* @__PURE__ */ __name(function() {
|
17577
|
-
return
|
17577
|
+
return env5.get("XDG_RUNTIME_DIR") || void 0;
|
17578
17578
|
}, "runtime");
|
17579
17579
|
var state = /* @__PURE__ */ __name(function() {
|
17580
|
-
return valOrPath(
|
17580
|
+
return valOrPath(env5.get("XDG_STATE_HOME"), [baseDir(), "Library", "State"]);
|
17581
17581
|
}, "state");
|
17582
17582
|
return { cache: cache2, config, data, runtime, state };
|
17583
17583
|
}, "macos");
|
17584
17584
|
var windows = /* @__PURE__ */ __name(function() {
|
17585
17585
|
function appData() {
|
17586
|
-
return valOrPath(
|
17586
|
+
return valOrPath(env5.get("APPDATA"), [baseDir(), "AppData", "Roaming"]);
|
17587
17587
|
}
|
17588
17588
|
__name(appData, "appData");
|
17589
17589
|
function localAppData() {
|
17590
|
-
return valOrPath(
|
17590
|
+
return valOrPath(env5.get("LOCALAPPDATA"), [baseDir(), "AppData", "Local"]);
|
17591
17591
|
}
|
17592
17592
|
__name(localAppData, "localAppData");
|
17593
17593
|
var cache2 = /* @__PURE__ */ __name(function() {
|
17594
|
-
return valOrPath(
|
17594
|
+
return valOrPath(env5.get("XDG_CACHE_HOME"), [localAppData(), "xdg.cache"]);
|
17595
17595
|
}, "cache");
|
17596
17596
|
var config = /* @__PURE__ */ __name(function() {
|
17597
|
-
return valOrPath(
|
17597
|
+
return valOrPath(env5.get("XDG_CONFIG_HOME"), [appData(), "xdg.config"]);
|
17598
17598
|
}, "config");
|
17599
17599
|
var data = /* @__PURE__ */ __name(function() {
|
17600
|
-
return valOrPath(
|
17600
|
+
return valOrPath(env5.get("XDG_DATA_HOME"), [appData(), "xdg.data"]);
|
17601
17601
|
}, "data");
|
17602
17602
|
var runtime = /* @__PURE__ */ __name(function() {
|
17603
|
-
return
|
17603
|
+
return env5.get("XDG_RUNTIME_DIR") || void 0;
|
17604
17604
|
}, "runtime");
|
17605
17605
|
var state = /* @__PURE__ */ __name(function() {
|
17606
|
-
return valOrPath(
|
17606
|
+
return valOrPath(env5.get("XDG_STATE_HOME"), [localAppData(), "xdg.state"]);
|
17607
17607
|
}, "state");
|
17608
17608
|
return { cache: cache2, config, data, runtime, state };
|
17609
17609
|
}, "windows");
|
@@ -17620,11 +17620,11 @@ var require_XDG = __commonJS({
|
|
17620
17620
|
XDG.runtime = extension.runtime;
|
17621
17621
|
XDG.state = extension.state;
|
17622
17622
|
XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
|
17623
|
-
var pathList =
|
17623
|
+
var pathList = env5.get("XDG_CONFIG_DIRS");
|
17624
17624
|
return __spreadArray([extension.config()], pathList ? pathList.split(path70.delimiter) : []);
|
17625
17625
|
}, "configDirs");
|
17626
17626
|
XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
|
17627
|
-
var pathList =
|
17627
|
+
var pathList = env5.get("XDG_DATA_DIRS");
|
17628
17628
|
return __spreadArray([extension.data()], pathList ? pathList.split(path70.delimiter) : []);
|
17629
17629
|
}, "dataDirs");
|
17630
17630
|
return XDG;
|
@@ -17656,7 +17656,7 @@ var require_OSPaths = __commonJS({
|
|
17656
17656
|
}
|
17657
17657
|
__name(isEmpty, "isEmpty");
|
17658
17658
|
function Adapt(adapter_) {
|
17659
|
-
var
|
17659
|
+
var env5 = adapter_.env, os13 = adapter_.os, path70 = adapter_.path;
|
17660
17660
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
17661
17661
|
function normalizePath(path_) {
|
17662
17662
|
return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
|
@@ -17664,14 +17664,14 @@ var require_OSPaths = __commonJS({
|
|
17664
17664
|
__name(normalizePath, "normalizePath");
|
17665
17665
|
function home() {
|
17666
17666
|
var posix2 = /* @__PURE__ */ __name(function() {
|
17667
|
-
return normalizePath((typeof os13.homedir === "function" ? os13.homedir() : void 0) ||
|
17667
|
+
return normalizePath((typeof os13.homedir === "function" ? os13.homedir() : void 0) || env5.get("HOME"));
|
17668
17668
|
}, "posix");
|
17669
17669
|
var windows = /* @__PURE__ */ __name(function() {
|
17670
17670
|
var priorityList = [
|
17671
17671
|
typeof os13.homedir === "function" ? os13.homedir() : void 0,
|
17672
|
-
|
17673
|
-
|
17674
|
-
|
17672
|
+
env5.get("USERPROFILE"),
|
17673
|
+
env5.get("HOME"),
|
17674
|
+
env5.get("HOMEDRIVE") || env5.get("HOMEPATH") ? path70.join(env5.get("HOMEDRIVE") || "", env5.get("HOMEPATH") || "") : void 0
|
17675
17675
|
];
|
17676
17676
|
return normalizePath(priorityList.find(function(v2) {
|
17677
17677
|
return !isEmpty(v2);
|
@@ -17689,9 +17689,9 @@ var require_OSPaths = __commonJS({
|
|
17689
17689
|
var fallback = "/tmp";
|
17690
17690
|
var priorityList = [
|
17691
17691
|
typeof os13.tmpdir === "function" ? os13.tmpdir() : void 0,
|
17692
|
-
|
17693
|
-
|
17694
|
-
|
17692
|
+
env5.get("TMPDIR"),
|
17693
|
+
env5.get("TEMP"),
|
17694
|
+
env5.get("TMP")
|
17695
17695
|
];
|
17696
17696
|
return normalizePath(priorityList.find(function(v2) {
|
17697
17697
|
return !isEmpty(v2);
|
@@ -17705,28 +17705,28 @@ var require_OSPaths = __commonJS({
|
|
17705
17705
|
return void 0;
|
17706
17706
|
},
|
17707
17707
|
function() {
|
17708
|
-
return
|
17708
|
+
return env5.get("TEMP");
|
17709
17709
|
},
|
17710
17710
|
function() {
|
17711
|
-
return
|
17711
|
+
return env5.get("TMP");
|
17712
17712
|
},
|
17713
17713
|
function() {
|
17714
|
-
return joinPathToBase(
|
17714
|
+
return joinPathToBase(env5.get("LOCALAPPDATA"), ["Temp"]);
|
17715
17715
|
},
|
17716
17716
|
function() {
|
17717
17717
|
return joinPathToBase(home(), ["AppData", "Local", "Temp"]);
|
17718
17718
|
},
|
17719
17719
|
function() {
|
17720
|
-
return joinPathToBase(
|
17720
|
+
return joinPathToBase(env5.get("ALLUSERSPROFILE"), ["Temp"]);
|
17721
17721
|
},
|
17722
17722
|
function() {
|
17723
|
-
return joinPathToBase(
|
17723
|
+
return joinPathToBase(env5.get("SystemRoot"), ["Temp"]);
|
17724
17724
|
},
|
17725
17725
|
function() {
|
17726
|
-
return joinPathToBase(
|
17726
|
+
return joinPathToBase(env5.get("windir"), ["Temp"]);
|
17727
17727
|
},
|
17728
17728
|
function() {
|
17729
|
-
return joinPathToBase(
|
17729
|
+
return joinPathToBase(env5.get("SystemDrive"), ["\\", "Temp"]);
|
17730
17730
|
}
|
17731
17731
|
];
|
17732
17732
|
var v2 = priorityListLazy.find(function(v3) {
|
@@ -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,
|
@@ -18502,15 +18502,15 @@ var require_supports_colors = __commonJS({
|
|
18502
18502
|
init_import_meta_url();
|
18503
18503
|
var os13 = require("os");
|
18504
18504
|
var hasFlag3 = require_has_flag();
|
18505
|
-
var
|
18505
|
+
var env5 = process.env;
|
18506
18506
|
var forceColor = void 0;
|
18507
18507
|
if (hasFlag3("no-color") || hasFlag3("no-colors") || hasFlag3("color=false")) {
|
18508
18508
|
forceColor = false;
|
18509
18509
|
} else if (hasFlag3("color") || hasFlag3("colors") || hasFlag3("color=true") || hasFlag3("color=always")) {
|
18510
18510
|
forceColor = true;
|
18511
18511
|
}
|
18512
|
-
if ("FORCE_COLOR" in
|
18513
|
-
forceColor =
|
18512
|
+
if ("FORCE_COLOR" in env5) {
|
18513
|
+
forceColor = env5.FORCE_COLOR.length === 0 || parseInt(env5.FORCE_COLOR, 10) !== 0;
|
18514
18514
|
}
|
18515
18515
|
function translateLevel3(level) {
|
18516
18516
|
if (level === 0) {
|
@@ -18545,20 +18545,20 @@ var require_supports_colors = __commonJS({
|
|
18545
18545
|
}
|
18546
18546
|
return 1;
|
18547
18547
|
}
|
18548
|
-
if ("CI" in
|
18548
|
+
if ("CI" in env5) {
|
18549
18549
|
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI"].some(function(sign) {
|
18550
|
-
return sign in
|
18551
|
-
}) ||
|
18550
|
+
return sign in env5;
|
18551
|
+
}) || env5.CI_NAME === "codeship") {
|
18552
18552
|
return 1;
|
18553
18553
|
}
|
18554
18554
|
return min;
|
18555
18555
|
}
|
18556
|
-
if ("TEAMCITY_VERSION" in
|
18557
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
18556
|
+
if ("TEAMCITY_VERSION" in env5) {
|
18557
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env5.TEAMCITY_VERSION) ? 1 : 0;
|
18558
18558
|
}
|
18559
|
-
if ("TERM_PROGRAM" in
|
18560
|
-
var version4 = parseInt((
|
18561
|
-
switch (
|
18559
|
+
if ("TERM_PROGRAM" in env5) {
|
18560
|
+
var version4 = parseInt((env5.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
18561
|
+
switch (env5.TERM_PROGRAM) {
|
18562
18562
|
case "iTerm.app":
|
18563
18563
|
return version4 >= 3 ? 3 : 2;
|
18564
18564
|
case "Hyper":
|
@@ -18567,16 +18567,16 @@ var require_supports_colors = __commonJS({
|
|
18567
18567
|
return 2;
|
18568
18568
|
}
|
18569
18569
|
}
|
18570
|
-
if (/-256(color)?$/i.test(
|
18570
|
+
if (/-256(color)?$/i.test(env5.TERM)) {
|
18571
18571
|
return 2;
|
18572
18572
|
}
|
18573
|
-
if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(
|
18573
|
+
if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env5.TERM)) {
|
18574
18574
|
return 1;
|
18575
18575
|
}
|
18576
|
-
if ("COLORTERM" in
|
18576
|
+
if ("COLORTERM" in env5) {
|
18577
18577
|
return 1;
|
18578
18578
|
}
|
18579
|
-
if (
|
18579
|
+
if (env5.TERM === "dumb") {
|
18580
18580
|
return min;
|
18581
18581
|
}
|
18582
18582
|
return min;
|
@@ -22930,8 +22930,8 @@ var require_picocolors = __commonJS({
|
|
22930
22930
|
"../../node_modules/.pnpm/picocolors@1.0.1/node_modules/picocolors/picocolors.js"(exports2, module3) {
|
22931
22931
|
init_import_meta_url();
|
22932
22932
|
var argv = process.argv || [];
|
22933
|
-
var
|
22934
|
-
var isColorSupported = !("NO_COLOR" in
|
22933
|
+
var env5 = process.env;
|
22934
|
+
var isColorSupported = !("NO_COLOR" in env5 || argv.includes("--no-color")) && ("FORCE_COLOR" in env5 || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env5.TERM !== "dumb" || "CI" in env5);
|
22935
22935
|
var formatter = /* @__PURE__ */ __name((open3, close2, replace = open3) => (input) => {
|
22936
22936
|
let string = "" + input;
|
22937
22937
|
let index = string.indexOf(close2, open3.length);
|
@@ -23469,7 +23469,7 @@ var require_ci_info = __commonJS({
|
|
23469
23469
|
"use strict";
|
23470
23470
|
init_import_meta_url();
|
23471
23471
|
var vendors = require_vendors();
|
23472
|
-
var
|
23472
|
+
var env5 = process.env;
|
23473
23473
|
Object.defineProperty(exports2, "_vendors", {
|
23474
23474
|
value: vendors.map(function(v2) {
|
23475
23475
|
return v2.constant;
|
@@ -23489,14 +23489,14 @@ var require_ci_info = __commonJS({
|
|
23489
23489
|
exports2.name = vendor.name;
|
23490
23490
|
switch (typeof vendor.pr) {
|
23491
23491
|
case "string":
|
23492
|
-
exports2.isPR = !!
|
23492
|
+
exports2.isPR = !!env5[vendor.pr];
|
23493
23493
|
break;
|
23494
23494
|
case "object":
|
23495
23495
|
if ("env" in vendor.pr) {
|
23496
|
-
exports2.isPR = vendor.pr.env in
|
23496
|
+
exports2.isPR = vendor.pr.env in env5 && env5[vendor.pr.env] !== vendor.pr.ne;
|
23497
23497
|
} else if ("any" in vendor.pr) {
|
23498
23498
|
exports2.isPR = vendor.pr.any.some(function(key) {
|
23499
|
-
return !!
|
23499
|
+
return !!env5[key];
|
23500
23500
|
});
|
23501
23501
|
} else {
|
23502
23502
|
exports2.isPR = checkEnv(vendor.pr);
|
@@ -23506,30 +23506,30 @@ var require_ci_info = __commonJS({
|
|
23506
23506
|
exports2.isPR = null;
|
23507
23507
|
}
|
23508
23508
|
});
|
23509
|
-
exports2.isCI = !!(
|
23510
|
-
(
|
23511
|
-
|
23512
|
-
|
23513
|
-
|
23514
|
-
|
23515
|
-
|
23516
|
-
|
23517
|
-
|
23518
|
-
|
23509
|
+
exports2.isCI = !!(env5.CI !== "false" && // Bypass all checks if CI env is explicitly set to 'false'
|
23510
|
+
(env5.BUILD_ID || // Jenkins, Cloudbees
|
23511
|
+
env5.BUILD_NUMBER || // Jenkins, TeamCity
|
23512
|
+
env5.CI || // Travis CI, CircleCI, Cirrus CI, Gitlab CI, Appveyor, CodeShip, dsari
|
23513
|
+
env5.CI_APP_ID || // Appflow
|
23514
|
+
env5.CI_BUILD_ID || // Appflow
|
23515
|
+
env5.CI_BUILD_NUMBER || // Appflow
|
23516
|
+
env5.CI_NAME || // Codeship and others
|
23517
|
+
env5.CONTINUOUS_INTEGRATION || // Travis CI, Cirrus CI
|
23518
|
+
env5.RUN_ID || // TaskCluster, dsari
|
23519
23519
|
exports2.name || false));
|
23520
23520
|
function checkEnv(obj) {
|
23521
23521
|
if (typeof obj === "string")
|
23522
|
-
return !!
|
23522
|
+
return !!env5[obj];
|
23523
23523
|
if ("env" in obj) {
|
23524
|
-
return
|
23524
|
+
return env5[obj.env] && env5[obj.env].includes(obj.includes);
|
23525
23525
|
}
|
23526
23526
|
if ("any" in obj) {
|
23527
23527
|
return obj.any.some(function(k2) {
|
23528
|
-
return !!
|
23528
|
+
return !!env5[k2];
|
23529
23529
|
});
|
23530
23530
|
}
|
23531
23531
|
return Object.keys(obj).every(function(k2) {
|
23532
|
-
return
|
23532
|
+
return env5[k2] === obj[k2];
|
23533
23533
|
});
|
23534
23534
|
}
|
23535
23535
|
__name(checkEnv, "checkEnv");
|
@@ -30615,11 +30615,11 @@ var require_utils3 = __commonJS({
|
|
30615
30615
|
var content = file.apply(null, arguments);
|
30616
30616
|
return content ? parse6(content) : null;
|
30617
30617
|
};
|
30618
|
-
var
|
30619
|
-
|
30618
|
+
var env5 = exports2.env = function(prefix, env6) {
|
30619
|
+
env6 = env6 || process.env;
|
30620
30620
|
var obj = {};
|
30621
30621
|
var l2 = prefix.length;
|
30622
|
-
for (var k2 in
|
30622
|
+
for (var k2 in env6) {
|
30623
30623
|
if (k2.toLowerCase().indexOf(prefix.toLowerCase()) === 0) {
|
30624
30624
|
var keypath = k2.substring(l2).split("__");
|
30625
30625
|
var _emptyStringIndex;
|
@@ -30631,7 +30631,7 @@ var require_utils3 = __commonJS({
|
|
30631
30631
|
if (!_subkey || typeof cursor !== "object")
|
30632
30632
|
return;
|
30633
30633
|
if (i === keypath.length - 1)
|
30634
|
-
cursor[_subkey] =
|
30634
|
+
cursor[_subkey] = env6[k2];
|
30635
30635
|
if (cursor[_subkey] === void 0)
|
30636
30636
|
cursor[_subkey] = {};
|
30637
30637
|
cursor = cursor[_subkey];
|
@@ -30977,7 +30977,7 @@ var require_rc = __commonJS({
|
|
30977
30977
|
argv = require_minimist()(process.argv.slice(2));
|
30978
30978
|
defaults = ("string" === typeof defaults ? cc.json(defaults) : defaults) || {};
|
30979
30979
|
parse6 = parse6 || cc.parse;
|
30980
|
-
var
|
30980
|
+
var env5 = cc.env(name2 + "_");
|
30981
30981
|
var configs = [defaults];
|
30982
30982
|
var configFiles = [];
|
30983
30983
|
function addConfigFile(file) {
|
@@ -31003,12 +31003,12 @@ var require_rc = __commonJS({
|
|
31003
31003
|
join17(home, "." + name2 + "rc")
|
31004
31004
|
].forEach(addConfigFile);
|
31005
31005
|
addConfigFile(cc.find("." + name2 + "rc"));
|
31006
|
-
if (
|
31007
|
-
addConfigFile(
|
31006
|
+
if (env5.config)
|
31007
|
+
addConfigFile(env5.config);
|
31008
31008
|
if (argv.config)
|
31009
31009
|
addConfigFile(argv.config);
|
31010
31010
|
return deepExtend.apply(null, configs.concat([
|
31011
|
-
|
31011
|
+
env5,
|
31012
31012
|
argv,
|
31013
31013
|
configFiles.length ? { configs: configFiles, config: configFiles[configFiles.length - 1] } : void 0
|
31014
31014
|
]));
|
@@ -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
|
}
|
@@ -35838,7 +35838,7 @@ var require_resolveCommand = __commonJS({
|
|
35838
35838
|
var which = require_which();
|
35839
35839
|
var getPathKey = require_path_key();
|
35840
35840
|
function resolveCommandAttempt(parsed, withoutPathExt) {
|
35841
|
-
const
|
35841
|
+
const env5 = parsed.options.env || process.env;
|
35842
35842
|
const cwd2 = process.cwd();
|
35843
35843
|
const hasCustomCwd = parsed.options.cwd != null;
|
35844
35844
|
const shouldSwitchCwd = hasCustomCwd && process.chdir !== void 0 && !process.chdir.disabled;
|
@@ -35851,7 +35851,7 @@ var require_resolveCommand = __commonJS({
|
|
35851
35851
|
let resolved;
|
35852
35852
|
try {
|
35853
35853
|
resolved = which.sync(parsed.command, {
|
35854
|
-
path:
|
35854
|
+
path: env5[getPathKey({ env: env5 })],
|
35855
35855
|
pathExt: withoutPathExt ? path70.delimiter : void 0
|
35856
35856
|
});
|
35857
35857
|
} catch (e3) {
|
@@ -36129,13 +36129,13 @@ var init_strip_final_newline = __esm({
|
|
36129
36129
|
// ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
36130
36130
|
function pathKey(options30 = {}) {
|
36131
36131
|
const {
|
36132
|
-
env:
|
36132
|
+
env: env5 = process.env,
|
36133
36133
|
platform: platform2 = process.platform
|
36134
36134
|
} = options30;
|
36135
36135
|
if (platform2 !== "win32") {
|
36136
36136
|
return "PATH";
|
36137
36137
|
}
|
36138
|
-
return Object.keys(
|
36138
|
+
return Object.keys(env5).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
36139
36139
|
}
|
36140
36140
|
var init_path_key = __esm({
|
36141
36141
|
"../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js"() {
|
@@ -36163,12 +36163,12 @@ function npmRunPath(options30 = {}) {
|
|
36163
36163
|
result.push(import_node_path22.default.resolve(cwdString, execPath, ".."));
|
36164
36164
|
return [...result, path_].join(import_node_path22.default.delimiter);
|
36165
36165
|
}
|
36166
|
-
function npmRunPathEnv({ env:
|
36167
|
-
|
36168
|
-
const path70 = pathKey({ env:
|
36169
|
-
options30.path =
|
36170
|
-
|
36171
|
-
return
|
36166
|
+
function npmRunPathEnv({ env: env5 = import_node_process8.default.env, ...options30 } = {}) {
|
36167
|
+
env5 = { ...env5 };
|
36168
|
+
const path70 = pathKey({ env: env5 });
|
36169
|
+
options30.path = env5[path70];
|
36170
|
+
env5[path70] = npmRunPath(options30);
|
36171
|
+
return env5;
|
36172
36172
|
}
|
36173
36173
|
var import_node_process8, import_node_path22, import_node_url9;
|
36174
36174
|
var init_npm_run_path = __esm({
|
@@ -37308,11 +37308,11 @@ var init_execa = __esm({
|
|
37308
37308
|
init_command();
|
37309
37309
|
DEFAULT_MAX_BUFFER = 1e3 * 1e3 * 100;
|
37310
37310
|
getEnv = /* @__PURE__ */ __name(({ env: envOption, extendEnv, preferLocal, localDir, execPath }) => {
|
37311
|
-
const
|
37311
|
+
const env5 = extendEnv ? { ...import_node_process9.default.env, ...envOption } : envOption;
|
37312
37312
|
if (preferLocal) {
|
37313
|
-
return npmRunPathEnv({ env:
|
37313
|
+
return npmRunPathEnv({ env: env5, cwd: localDir, execPath });
|
37314
37314
|
}
|
37315
|
-
return
|
37315
|
+
return env5;
|
37316
37316
|
}, "getEnv");
|
37317
37317
|
handleArguments = /* @__PURE__ */ __name((file, args, options30 = {}) => {
|
37318
37318
|
const parsed = import_cross_spawn.default._parse(file, args, options30);
|
@@ -37425,8 +37425,8 @@ var require_parse4 = __commonJS({
|
|
37425
37425
|
return matches;
|
37426
37426
|
}
|
37427
37427
|
__name(matchAll, "matchAll");
|
37428
|
-
function getVar(
|
37429
|
-
var r3 = typeof
|
37428
|
+
function getVar(env5, pre, key) {
|
37429
|
+
var r3 = typeof env5 === "function" ? env5(key) : env5[key];
|
37430
37430
|
if (typeof r3 === "undefined" && key != "") {
|
37431
37431
|
r3 = "";
|
37432
37432
|
} else if (typeof r3 === "undefined") {
|
@@ -37438,7 +37438,7 @@ var require_parse4 = __commonJS({
|
|
37438
37438
|
return pre + r3;
|
37439
37439
|
}
|
37440
37440
|
__name(getVar, "getVar");
|
37441
|
-
function parseInternal(string,
|
37441
|
+
function parseInternal(string, env5, opts) {
|
37442
37442
|
if (!opts) {
|
37443
37443
|
opts = {};
|
37444
37444
|
}
|
@@ -37453,8 +37453,8 @@ var require_parse4 = __commonJS({
|
|
37453
37453
|
if (matches.length === 0) {
|
37454
37454
|
return [];
|
37455
37455
|
}
|
37456
|
-
if (!
|
37457
|
-
|
37456
|
+
if (!env5) {
|
37457
|
+
env5 = {};
|
37458
37458
|
}
|
37459
37459
|
var commented = false;
|
37460
37460
|
return matches.map(function(match2) {
|
@@ -37500,7 +37500,7 @@ var require_parse4 = __commonJS({
|
|
37500
37500
|
i2 += varend.index - 1;
|
37501
37501
|
}
|
37502
37502
|
}
|
37503
|
-
return getVar(
|
37503
|
+
return getVar(env5, "", varname);
|
37504
37504
|
}
|
37505
37505
|
__name(parseEnvVar, "parseEnvVar");
|
37506
37506
|
for (i2 = 0; i2 < s.length; i2++) {
|
@@ -37557,9 +37557,9 @@ var require_parse4 = __commonJS({
|
|
37557
37557
|
}, []);
|
37558
37558
|
}
|
37559
37559
|
__name(parseInternal, "parseInternal");
|
37560
|
-
module3.exports = /* @__PURE__ */ __name(function parse6(s,
|
37561
|
-
var mapped = parseInternal(s,
|
37562
|
-
if (typeof
|
37560
|
+
module3.exports = /* @__PURE__ */ __name(function parse6(s, env5, opts) {
|
37561
|
+
var mapped = parseInternal(s, env5, opts);
|
37562
|
+
if (typeof env5 !== "function") {
|
37563
37563
|
return mapped;
|
37564
37564
|
}
|
37565
37565
|
return mapped.reduce(function(acc, s2) {
|
@@ -38674,7 +38674,7 @@ var require_ms = __commonJS({
|
|
38674
38674
|
var require_common = __commonJS({
|
38675
38675
|
"../../node_modules/.pnpm/debug@4.3.6_supports-color@9.2.2/node_modules/debug/src/common.js"(exports2, module3) {
|
38676
38676
|
init_import_meta_url();
|
38677
|
-
function setup(
|
38677
|
+
function setup(env5) {
|
38678
38678
|
createDebug.debug = createDebug;
|
38679
38679
|
createDebug.default = createDebug;
|
38680
38680
|
createDebug.coerce = coerce2;
|
@@ -38683,8 +38683,8 @@ var require_common = __commonJS({
|
|
38683
38683
|
createDebug.enabled = enabled;
|
38684
38684
|
createDebug.humanize = require_ms();
|
38685
38685
|
createDebug.destroy = destroy;
|
38686
|
-
Object.keys(
|
38687
|
-
createDebug[key] =
|
38686
|
+
Object.keys(env5).forEach((key) => {
|
38687
|
+
createDebug[key] = env5[key];
|
38688
38688
|
});
|
38689
38689
|
createDebug.names = [];
|
38690
38690
|
createDebug.skips = [];
|
@@ -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);
|
@@ -39789,7 +39789,7 @@ var require_ms2 = __commonJS({
|
|
39789
39789
|
var require_common2 = __commonJS({
|
39790
39790
|
"../../node_modules/.pnpm/debug@4.3.7_supports-color@9.2.2/node_modules/debug/src/common.js"(exports2, module3) {
|
39791
39791
|
init_import_meta_url();
|
39792
|
-
function setup(
|
39792
|
+
function setup(env5) {
|
39793
39793
|
createDebug.debug = createDebug;
|
39794
39794
|
createDebug.default = createDebug;
|
39795
39795
|
createDebug.coerce = coerce2;
|
@@ -39798,8 +39798,8 @@ var require_common2 = __commonJS({
|
|
39798
39798
|
createDebug.enabled = enabled;
|
39799
39799
|
createDebug.humanize = require_ms2();
|
39800
39800
|
createDebug.destroy = destroy;
|
39801
|
-
Object.keys(
|
39802
|
-
createDebug[key] =
|
39801
|
+
Object.keys(env5).forEach((key) => {
|
39802
|
+
createDebug[key] = env5[key];
|
39803
39803
|
});
|
39804
39804
|
createDebug.names = [];
|
39805
39805
|
createDebug.skips = [];
|
@@ -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,
|
@@ -57778,7 +57778,7 @@ var require_finalhandler = __commonJS({
|
|
57778
57778
|
module3.exports = finalhandler;
|
57779
57779
|
function finalhandler(req, res, options30) {
|
57780
57780
|
var opts = options30 || {};
|
57781
|
-
var
|
57781
|
+
var env5 = opts.env || "production";
|
57782
57782
|
var onerror = opts.onerror;
|
57783
57783
|
return function(err) {
|
57784
57784
|
var headers;
|
@@ -57795,7 +57795,7 @@ var require_finalhandler = __commonJS({
|
|
57795
57795
|
} else {
|
57796
57796
|
headers = getErrorHeaders(err);
|
57797
57797
|
}
|
57798
|
-
msg = getErrorMessage2(err, status2,
|
57798
|
+
msg = getErrorMessage2(err, status2, env5);
|
57799
57799
|
} else {
|
57800
57800
|
status2 = 404;
|
57801
57801
|
msg = "Cannot " + req.method + " " + encodeUrl(getResourceName(req));
|
@@ -57826,9 +57826,9 @@ var require_finalhandler = __commonJS({
|
|
57826
57826
|
return headers;
|
57827
57827
|
}
|
57828
57828
|
__name(getErrorHeaders, "getErrorHeaders");
|
57829
|
-
function getErrorMessage2(err, status2,
|
57829
|
+
function getErrorMessage2(err, status2, env5) {
|
57830
57830
|
var msg;
|
57831
|
-
if (
|
57831
|
+
if (env5 !== "production") {
|
57832
57832
|
msg = err.stack;
|
57833
57833
|
if (!msg && typeof err.toString === "function") {
|
57834
57834
|
msg = err.toString();
|
@@ -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) {
|
@@ -60891,10 +60891,10 @@ var require_application = __commonJS({
|
|
60891
60891
|
this.defaultConfiguration();
|
60892
60892
|
}, "init");
|
60893
60893
|
app.defaultConfiguration = /* @__PURE__ */ __name(function defaultConfiguration() {
|
60894
|
-
var
|
60894
|
+
var env5 = "production";
|
60895
60895
|
this.enable("x-powered-by");
|
60896
60896
|
this.set("etag", "weak");
|
60897
|
-
this.set("env",
|
60897
|
+
this.set("env", env5);
|
60898
60898
|
this.set("query parser", "extended");
|
60899
60899
|
this.set("subdomain offset", 2);
|
60900
60900
|
this.set("trust proxy", false);
|
@@ -60902,7 +60902,7 @@ var require_application = __commonJS({
|
|
60902
60902
|
configurable: true,
|
60903
60903
|
value: true
|
60904
60904
|
});
|
60905
|
-
debug("booting in %s mode",
|
60905
|
+
debug("booting in %s mode", env5);
|
60906
60906
|
this.on("mount", /* @__PURE__ */ __name(function onmount(parent) {
|
60907
60907
|
if (this.settings[trustProxyDefaultSymbol] === true && typeof parent.settings["trust proxy fn"] === "function") {
|
60908
60908
|
delete this.settings["trust proxy"];
|
@@ -60919,7 +60919,7 @@ var require_application = __commonJS({
|
|
60919
60919
|
this.set("view", View);
|
60920
60920
|
this.set("views", resolve22("views"));
|
60921
60921
|
this.set("jsonp callback name", "callback");
|
60922
|
-
if (
|
60922
|
+
if (env5 === "production") {
|
60923
60923
|
this.enable("view cache");
|
60924
60924
|
}
|
60925
60925
|
Object.defineProperty(this, "router", {
|
@@ -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";
|
77600
|
-
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";
|
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) {
|
77615
77608
|
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();
|
@@ -105433,19 +104836,19 @@ Make sure "${service}" is mounted so Miniflare knows where to find it.`);
|
|
105433
104836
|
}
|
105434
104837
|
config.build = { cwd: configDir, upload: { dir: "" } };
|
105435
104838
|
(0, import_assert32.default)(config.build.upload);
|
105436
|
-
const
|
104839
|
+
const env5 = configEnv ? ` --env ${configEnv}` : "";
|
105437
104840
|
if (config.type === "webpack") {
|
105438
104841
|
let packageDir = "";
|
105439
104842
|
if (config.site) {
|
105440
104843
|
packageDir = config.site["entry-point"] ?? "workers-site";
|
105441
104844
|
}
|
105442
|
-
config.build.command = `wrangler build${
|
104845
|
+
config.build.command = `wrangler build${env5}`;
|
105443
104846
|
config.build.upload.main = import_path32.default.join(packageDir, "worker", "script.js");
|
105444
104847
|
config.miniflare ??= {};
|
105445
104848
|
config.miniflare.build_watch_dirs = ["src", "index.js"];
|
105446
104849
|
} else if (config.type === "rust") {
|
105447
104850
|
const rustScript = import_path32.default.join(__dirname, "plugins", "rust.js");
|
105448
|
-
config.build.command = `wrangler build${
|
104851
|
+
config.build.command = `wrangler build${env5} && ${process.execPath} ${rustScript}`;
|
105449
104852
|
config.build.upload.main = import_path32.default.join("worker", "generated", "script.js");
|
105450
104853
|
config.wasm_modules ??= {};
|
105451
104854
|
config.wasm_modules.wasm = import_path32.default.join(configDir, "worker", "generated", "script.wasm");
|
@@ -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,
|
@@ -109679,8 +109105,8 @@ var YargsParser = class {
|
|
109679
109105
|
if (typeof envPrefix === "undefined")
|
109680
109106
|
return;
|
109681
109107
|
const prefix = typeof envPrefix === "string" ? envPrefix : "";
|
109682
|
-
const
|
109683
|
-
Object.keys(
|
109108
|
+
const env5 = mixin.env();
|
109109
|
+
Object.keys(env5).forEach(function(envVar) {
|
109684
109110
|
if (prefix === "" || envVar.lastIndexOf(prefix, 0) === 0) {
|
109685
109111
|
const keys = envVar.split("__").map(function(key, i) {
|
109686
109112
|
if (i === 0) {
|
@@ -109689,7 +109115,7 @@ var YargsParser = class {
|
|
109689
109115
|
return camelCase(key);
|
109690
109116
|
});
|
109691
109117
|
if ((configOnly && flags2.configs[keys.join(".")] || !configOnly) && !hasKey2(argv2, keys)) {
|
109692
|
-
setArg(keys.join("."),
|
109118
|
+
setArg(keys.join("."), env5[envVar]);
|
109693
109119
|
}
|
109694
109120
|
}
|
109695
109121
|
});
|
@@ -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.100.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);
|
@@ -117279,11 +117231,11 @@ function tryLoadDotEnv(path70) {
|
|
117279
117231
|
}
|
117280
117232
|
}
|
117281
117233
|
__name(tryLoadDotEnv, "tryLoadDotEnv");
|
117282
|
-
function loadDotEnv(path70,
|
117283
|
-
if (
|
117234
|
+
function loadDotEnv(path70, env5) {
|
117235
|
+
if (env5 === void 0) {
|
117284
117236
|
return tryLoadDotEnv(path70);
|
117285
117237
|
} else {
|
117286
|
-
return tryLoadDotEnv(`${path70}.${
|
117238
|
+
return tryLoadDotEnv(`${path70}.${env5}`) ?? tryLoadDotEnv(path70);
|
117287
117239
|
}
|
117288
117240
|
}
|
117289
117241
|
__name(loadDotEnv, "loadDotEnv");
|
@@ -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");
|
@@ -119530,11 +119482,11 @@ var getRevokeUrlFromEnv = getEnvironmentVariableFactory({
|
|
119530
119482
|
defaultValue: () => `https://${getAuthDomainFromEnv()}/oauth2/revoke`
|
119531
119483
|
});
|
119532
119484
|
var getCloudflareAccessToken = /* @__PURE__ */ __name(async () => {
|
119533
|
-
const
|
119485
|
+
const env5 = getEnvironmentVariableFactory({
|
119534
119486
|
variableName: "WRANGLER_CF_AUTHORIZATION_TOKEN"
|
119535
119487
|
})();
|
119536
|
-
if (
|
119537
|
-
return
|
119488
|
+
if (env5 !== void 0) {
|
119489
|
+
return env5;
|
119538
119490
|
}
|
119539
119491
|
return getAccessToken(getAuthDomainFromEnv());
|
119540
119492
|
}, "getCloudflareAccessToken");
|
@@ -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) {
|
@@ -133578,7 +133531,7 @@ function renderDeploymentConfiguration(action, {
|
|
133578
133531
|
memory,
|
133579
133532
|
environmentVariables,
|
133580
133533
|
labels,
|
133581
|
-
env:
|
133534
|
+
env: env5,
|
133582
133535
|
network
|
133583
133536
|
}) {
|
133584
133537
|
let environmentVariablesText = "[]";
|
@@ -133588,7 +133541,7 @@ function renderDeploymentConfiguration(action, {
|
|
133588
133541
|
}
|
133589
133542
|
} else if (action === "create") {
|
133590
133543
|
environmentVariablesText = `
|
133591
|
-
No environment variables added! You can set some under [${
|
133544
|
+
No environment variables added! You can set some under [${env5 ? "env." + env5 + "." : ""}vars] and via command line`;
|
133592
133545
|
}
|
133593
133546
|
let labelsText = "[]";
|
133594
133547
|
if (labels !== void 0 && labels.length !== 0) {
|
@@ -133672,11 +133625,11 @@ function collectEnvironmentVariables(deploymentEnv, config, envArgs) {
|
|
133672
133625
|
if (envMap.size === 0) {
|
133673
133626
|
return void 0;
|
133674
133627
|
}
|
133675
|
-
const
|
133628
|
+
const env5 = Array.from(envMap).map(
|
133676
133629
|
([name2, value]) => ({ name: name2, value })
|
133677
133630
|
);
|
133678
|
-
sortEnvironmentVariables(
|
133679
|
-
return
|
133631
|
+
sortEnvironmentVariables(env5);
|
133632
|
+
return env5;
|
133680
133633
|
}
|
133681
133634
|
__name(collectEnvironmentVariables, "collectEnvironmentVariables");
|
133682
133635
|
async function promptForEnvironmentVariables(environmentVariables, initiallySelected, allowSkipping) {
|
@@ -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;
|
@@ -142629,6 +142582,7 @@ function getMetricsDispatcher(options30) {
|
|
142629
142582
|
isPagesCI: isPagesCI(),
|
142630
142583
|
isWorkersCI: isWorkersCI(),
|
142631
142584
|
isInteractive: isInteractive2(),
|
142585
|
+
hasAssets: options30.hasAssets ?? false,
|
142632
142586
|
argsUsed,
|
142633
142587
|
argsCombination
|
142634
142588
|
};
|
@@ -143263,13 +143217,23 @@ var import_unenv = require("unenv");
|
|
143263
143217
|
var REQUIRED_NODE_BUILT_IN_NAMESPACE = "node-built-in-modules";
|
143264
143218
|
var REQUIRED_UNENV_ALIAS_NAMESPACE = "required-unenv-alias";
|
143265
143219
|
var nodejsHybridPlugin = /* @__PURE__ */ __name(() => {
|
143266
|
-
const {
|
143220
|
+
const { env: env5 } = (0, import_unenv.defineEnv)({
|
143221
|
+
nodeCompat: true,
|
143222
|
+
presets: [import_unenv.cloudflare],
|
143223
|
+
resolve: true
|
143224
|
+
});
|
143225
|
+
const { alias, inject, external } = env5;
|
143226
|
+
const unresolvedAlias = (0, import_unenv.defineEnv)({
|
143227
|
+
nodeCompat: true,
|
143228
|
+
presets: [import_unenv.cloudflare],
|
143229
|
+
resolve: false
|
143230
|
+
}).env.alias;
|
143267
143231
|
return {
|
143268
143232
|
name: "hybrid-nodejs_compat",
|
143269
143233
|
setup(build5) {
|
143270
143234
|
errorOnServiceWorkerFormat(build5);
|
143271
143235
|
handleRequireCallsToNodeJSBuiltins(build5);
|
143272
|
-
handleUnenvAliasedPackages(build5, alias, external);
|
143236
|
+
handleUnenvAliasedPackages(build5, unresolvedAlias, alias, external);
|
143273
143237
|
handleNodeJSGlobals(build5, inject);
|
143274
143238
|
}
|
143275
143239
|
};
|
@@ -143326,28 +143290,19 @@ function handleRequireCallsToNodeJSBuiltins(build5) {
|
|
143326
143290
|
);
|
143327
143291
|
}
|
143328
143292
|
__name(handleRequireCallsToNodeJSBuiltins, "handleRequireCallsToNodeJSBuiltins");
|
143329
|
-
function handleUnenvAliasedPackages(build5, alias, external) {
|
143330
|
-
const
|
143331
|
-
for (const [module3, unresolvedAlias] of Object.entries(alias)) {
|
143332
|
-
try {
|
143333
|
-
aliasAbsolute[module3] = require.resolve(unresolvedAlias).replace(/\.cjs$/, ".mjs");
|
143334
|
-
} catch (e3) {
|
143335
|
-
}
|
143336
|
-
}
|
143337
|
-
const UNENV_ALIAS_RE = new RegExp(
|
143338
|
-
`^(${Object.keys(aliasAbsolute).join("|")})$`
|
143339
|
-
);
|
143293
|
+
function handleUnenvAliasedPackages(build5, unresolvedAlias, alias, external) {
|
143294
|
+
const UNENV_ALIAS_RE = new RegExp(`^(${Object.keys(alias).join("|")})$`);
|
143340
143295
|
build5.onResolve({ filter: UNENV_ALIAS_RE }, (args) => {
|
143341
|
-
const
|
143342
|
-
if (args.kind === "require-call" && (
|
143296
|
+
const unresolved = unresolvedAlias[args.path];
|
143297
|
+
if (args.kind === "require-call" && (unresolved.startsWith("unenv/runtime/npm/") || unresolved.startsWith("unenv/runtime/mock/"))) {
|
143343
143298
|
return {
|
143344
143299
|
path: args.path,
|
143345
143300
|
namespace: REQUIRED_UNENV_ALIAS_NAMESPACE
|
143346
143301
|
};
|
143347
143302
|
}
|
143348
143303
|
return {
|
143349
|
-
path:
|
143350
|
-
external: external.includes(
|
143304
|
+
path: alias[args.path],
|
143305
|
+
external: external.includes(unresolved)
|
143351
143306
|
};
|
143352
143307
|
});
|
143353
143308
|
build5.initialOptions.banner = { js: "", ...build5.initialOptions.banner };
|
@@ -144111,7 +144066,7 @@ async function getEntry(args, config, command2) {
|
|
144111
144066
|
config.configPath
|
144112
144067
|
);
|
144113
144068
|
const projectRoot = paths.projectRoot ?? process.cwd();
|
144114
|
-
const { format:
|
144069
|
+
const { format: format11, exports: exports2 } = await guessWorkerFormat(
|
144115
144070
|
paths.absolutePath,
|
144116
144071
|
projectRoot,
|
144117
144072
|
args.format ?? config.build?.upload?.format,
|
@@ -144123,7 +144078,7 @@ async function getEntry(args, config, command2) {
|
|
144123
144078
|
"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
144079
|
);
|
144125
144080
|
}
|
144126
|
-
if (
|
144081
|
+
if (format11 === "service-worker" && localBindings.length > 0) {
|
144127
144082
|
const errorMessage = "You seem to be trying to use Durable Objects in a Worker written as a service-worker.";
|
144128
144083
|
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
144084
|
const addScriptNameExamples = generateAddScriptNameExamples(localBindings);
|
@@ -144140,7 +144095,7 @@ ${migrateUrl}`
|
|
144140
144095
|
return {
|
144141
144096
|
file: paths.absolutePath,
|
144142
144097
|
projectRoot,
|
144143
|
-
format:
|
144098
|
+
format: format11,
|
144144
144099
|
moduleRoot: args.moduleRoot ?? config.base_dir ?? import_node_path29.default.dirname(paths.absolutePath),
|
144145
144100
|
name: config.name ?? "worker",
|
144146
144101
|
exports: exports2
|
@@ -145092,11 +145047,11 @@ var quote = /* @__PURE__ */ __name(function(args) {
|
|
145092
145047
|
const stringArgs = args.map((arg) => String(arg));
|
145093
145048
|
return import_shell_quote.default.quote(stringArgs);
|
145094
145049
|
}, "quote");
|
145095
|
-
function parse4(cmd,
|
145050
|
+
function parse4(cmd, env5) {
|
145096
145051
|
if (process.platform === "win32") {
|
145097
145052
|
cmd = cmd.replaceAll("\\", "\\\\");
|
145098
145053
|
}
|
145099
|
-
const entries = import_shell_quote.default.parse(cmd,
|
145054
|
+
const entries = import_shell_quote.default.parse(cmd, env5);
|
145100
145055
|
const argv = [];
|
145101
145056
|
for (const entry of entries) {
|
145102
145057
|
if (typeof entry === "string") {
|
@@ -150904,11 +150859,11 @@ async function deploy2({
|
|
150904
150859
|
if (branch) {
|
150905
150860
|
isProduction = project.production_branch === branch;
|
150906
150861
|
}
|
150907
|
-
const
|
150908
|
-
const deploymentConfig = project.deployment_configs[
|
150862
|
+
const env5 = isProduction ? "production" : "preview";
|
150863
|
+
const deploymentConfig = project.deployment_configs[env5];
|
150909
150864
|
let config;
|
150910
150865
|
try {
|
150911
|
-
config = readPagesConfig({ ...args, env:
|
150866
|
+
config = readPagesConfig({ ...args, env: env5 });
|
150912
150867
|
} catch (err) {
|
150913
150868
|
if (!(err instanceof FatalError && err.code === EXIT_CODE_INVALID_PAGES_CONFIG)) {
|
150914
150869
|
throw err;
|
@@ -151234,7 +151189,7 @@ function diffSec(date, relativeDate) {
|
|
151234
151189
|
__name(diffSec, "diffSec");
|
151235
151190
|
|
151236
151191
|
// ../../node_modules/.pnpm/timeago.js@4.0.2/node_modules/timeago.js/esm/format.js
|
151237
|
-
var
|
151192
|
+
var format9 = /* @__PURE__ */ __name(function(date, locale, opts) {
|
151238
151193
|
var sec = diffSec(date, opts && opts.relativeDate);
|
151239
151194
|
return formatDiff(sec, getLocale(locale));
|
151240
151195
|
}, "format");
|
@@ -151263,7 +151218,7 @@ async function ListHandler3() {
|
|
151263
151218
|
"Project Name": project.name,
|
151264
151219
|
"Project Domains": `${project.domains.join(", ")}`,
|
151265
151220
|
"Git Provider": project.source ? "Yes" : "No",
|
151266
|
-
"Last Modified": project.latest_deployment ?
|
151221
|
+
"Last Modified": project.latest_deployment ? format9(project.latest_deployment.modified_on) : format9(project.created_on)
|
151267
151222
|
};
|
151268
151223
|
});
|
151269
151224
|
saveToConfigCache(PAGES_CONFIG_CACHE_FILENAME, {
|
@@ -152001,12 +151956,12 @@ __name(prettifyOutcome, "prettifyOutcome");
|
|
152001
151956
|
|
152002
151957
|
// src/tail/createTail.ts
|
152003
151958
|
var TRACE_VERSION = "trace-v1";
|
152004
|
-
function makeCreateTailUrl(accountId, workerName,
|
152005
|
-
return
|
151959
|
+
function makeCreateTailUrl(accountId, workerName, env5) {
|
151960
|
+
return env5 ? `/accounts/${accountId}/workers/services/${workerName}/environments/${env5}/tails` : `/accounts/${accountId}/workers/scripts/${workerName}/tails`;
|
152006
151961
|
}
|
152007
151962
|
__name(makeCreateTailUrl, "makeCreateTailUrl");
|
152008
|
-
function makeDeleteTailUrl(accountId, workerName, tailId,
|
152009
|
-
return
|
151963
|
+
function makeDeleteTailUrl(accountId, workerName, tailId, env5) {
|
151964
|
+
return env5 ? `/accounts/${accountId}/workers/services/${workerName}/environments/${env5}/tails/${tailId}` : `/accounts/${accountId}/workers/scripts/${workerName}/tails/${tailId}`;
|
152010
151965
|
}
|
152011
151966
|
__name(makeDeleteTailUrl, "makeDeleteTailUrl");
|
152012
151967
|
async function createPagesTail({
|
@@ -152050,8 +152005,8 @@ async function createPagesTail({
|
|
152050
152005
|
return { tail, deleteTail, expiration: tailRecord.expires_at };
|
152051
152006
|
}
|
152052
152007
|
__name(createPagesTail, "createPagesTail");
|
152053
|
-
async function createTail(accountId, workerName, filters, debug,
|
152054
|
-
const createTailUrl = makeCreateTailUrl(accountId, workerName,
|
152008
|
+
async function createTail(accountId, workerName, filters, debug, env5) {
|
152009
|
+
const createTailUrl = makeCreateTailUrl(accountId, workerName, env5);
|
152055
152010
|
const {
|
152056
152011
|
id: tailId,
|
152057
152012
|
url: websocketUrl,
|
@@ -152060,7 +152015,7 @@ async function createTail(accountId, workerName, filters, debug, env6) {
|
|
152060
152015
|
method: "POST",
|
152061
152016
|
body: JSON.stringify(filters)
|
152062
152017
|
});
|
152063
|
-
const deleteUrl = makeDeleteTailUrl(accountId, workerName, tailId,
|
152018
|
+
const deleteUrl = makeDeleteTailUrl(accountId, workerName, tailId, env5);
|
152064
152019
|
async function deleteTail() {
|
152065
152020
|
await fetchResult(deleteUrl, { method: "DELETE" });
|
152066
152021
|
}
|
@@ -152154,7 +152109,7 @@ async function Handler13({
|
|
152154
152109
|
samplingRate,
|
152155
152110
|
search,
|
152156
152111
|
status: status2,
|
152157
|
-
format:
|
152112
|
+
format: format11 = "pretty",
|
152158
152113
|
debug,
|
152159
152114
|
...args
|
152160
152115
|
}) {
|
@@ -152163,7 +152118,7 @@ async function Handler13({
|
|
152163
152118
|
"Invalid value for `--status`. Valid options: " + statusChoices.join(", ")
|
152164
152119
|
);
|
152165
152120
|
}
|
152166
|
-
if (
|
152121
|
+
if (format11 === "pretty") {
|
152167
152122
|
await printWranglerBanner();
|
152168
152123
|
}
|
152169
152124
|
const config = readConfig(args);
|
@@ -152216,7 +152171,7 @@ async function Handler13({
|
|
152216
152171
|
if (envDeployments.length === 0) {
|
152217
152172
|
throw new FatalError("No deployments for environment: " + environment, 1);
|
152218
152173
|
}
|
152219
|
-
if (
|
152174
|
+
if (format11 === "pretty") {
|
152220
152175
|
logger.log(
|
152221
152176
|
"No deployment specified. Using latest deployment for",
|
152222
152177
|
environment,
|
@@ -152263,7 +152218,7 @@ async function Handler13({
|
|
152263
152218
|
})();
|
152264
152219
|
(0, import_signal_exit5.default)(onCloseTail);
|
152265
152220
|
tail.on("message", (data) => {
|
152266
|
-
if (
|
152221
|
+
if (format11 === "pretty") {
|
152267
152222
|
prettyPrintLogs(data);
|
152268
152223
|
} else {
|
152269
152224
|
jsonPrintLogs(data);
|
@@ -152287,7 +152242,7 @@ async function Handler13({
|
|
152287
152242
|
);
|
152288
152243
|
}
|
152289
152244
|
}
|
152290
|
-
if (
|
152245
|
+
if (format11 === "pretty") {
|
152291
152246
|
logger.log(`Connected to deployment ${deploymentId}, waiting for logs...`);
|
152292
152247
|
}
|
152293
152248
|
}
|
@@ -152329,7 +152284,7 @@ async function ListHandler4({ projectName, environment }) {
|
|
152329
152284
|
const shortSha = /* @__PURE__ */ __name((sha) => sha.slice(0, 7), "shortSha");
|
152330
152285
|
const getStatus = /* @__PURE__ */ __name((deployment) => {
|
152331
152286
|
if (deployment.latest_stage.status === "success" && deployment.latest_stage.ended_on) {
|
152332
|
-
return
|
152287
|
+
return format9(deployment.latest_stage.ended_on);
|
152333
152288
|
}
|
152334
152289
|
return titleCase(deployment.latest_stage.status);
|
152335
152290
|
}, "getStatus");
|
@@ -153551,15 +153506,15 @@ function readFromStdin() {
|
|
153551
153506
|
__name(readFromStdin, "readFromStdin");
|
153552
153507
|
|
153553
153508
|
// src/pages/secret/index.ts
|
153554
|
-
function isPagesEnv(
|
153555
|
-
return ["production", "preview"].includes(
|
153509
|
+
function isPagesEnv(env5) {
|
153510
|
+
return ["production", "preview"].includes(env5);
|
153556
153511
|
}
|
153557
153512
|
__name(isPagesEnv, "isPagesEnv");
|
153558
|
-
async function pagesProject(
|
153559
|
-
|
153560
|
-
if (!isPagesEnv(
|
153513
|
+
async function pagesProject(env5, cliProjectName) {
|
153514
|
+
env5 ??= "production";
|
153515
|
+
if (!isPagesEnv(env5)) {
|
153561
153516
|
throw new FatalError(
|
153562
|
-
`Pages does not support the "${
|
153517
|
+
`Pages does not support the "${env5}" named environment. Please specify "production" (default) or "preview"`,
|
153563
153518
|
1
|
153564
153519
|
);
|
153565
153520
|
}
|
@@ -153600,7 +153555,7 @@ Ignoring configuration file for now.`
|
|
153600
153555
|
} else {
|
153601
153556
|
throw new FatalError("Must specify a project name.", 1);
|
153602
153557
|
}
|
153603
|
-
return { env:
|
153558
|
+
return { env: env5, project, accountId, config };
|
153604
153559
|
}
|
153605
153560
|
__name(pagesProject, "pagesProject");
|
153606
153561
|
var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
@@ -153619,7 +153574,7 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153619
153574
|
},
|
153620
153575
|
async (args) => {
|
153621
153576
|
await printWranglerBanner();
|
153622
|
-
const { env:
|
153577
|
+
const { env: env5, project, accountId, config } = await pagesProject(
|
153623
153578
|
args.env,
|
153624
153579
|
args.projectName
|
153625
153580
|
);
|
@@ -153627,7 +153582,7 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153627
153582
|
isInteractive2() ? await prompt("Enter a secret value:", { isSecret: true }) : await readFromStdin()
|
153628
153583
|
);
|
153629
153584
|
logger.log(
|
153630
|
-
`\u{1F300} Creating the secret for the Pages project "${project.name}" (${
|
153585
|
+
`\u{1F300} Creating the secret for the Pages project "${project.name}" (${env5})`
|
153631
153586
|
);
|
153632
153587
|
await fetchResult(
|
153633
153588
|
`/accounts/${accountId}/pages/projects/${project.name}`,
|
@@ -153635,14 +153590,14 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153635
153590
|
method: "PATCH",
|
153636
153591
|
body: JSON.stringify({
|
153637
153592
|
deployment_configs: {
|
153638
|
-
[
|
153593
|
+
[env5]: {
|
153639
153594
|
env_vars: {
|
153640
153595
|
[args.key]: {
|
153641
153596
|
value: secretValue,
|
153642
153597
|
type: "secret_text"
|
153643
153598
|
}
|
153644
153599
|
},
|
153645
|
-
wrangler_config_hash: project.deployment_configs[
|
153600
|
+
wrangler_config_hash: project.deployment_configs[env5].wrangler_config_hash
|
153646
153601
|
}
|
153647
153602
|
}
|
153648
153603
|
})
|
@@ -153668,12 +153623,12 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153668
153623
|
},
|
153669
153624
|
async (args) => {
|
153670
153625
|
await printWranglerBanner();
|
153671
|
-
const { env:
|
153626
|
+
const { env: env5, project, accountId } = await pagesProject(
|
153672
153627
|
args.env,
|
153673
153628
|
args.projectName
|
153674
153629
|
);
|
153675
153630
|
logger.log(
|
153676
|
-
`\u{1F300} Creating the secrets for the Pages project "${project.name}" (${
|
153631
|
+
`\u{1F300} Creating the secrets for the Pages project "${project.name}" (${env5})`
|
153677
153632
|
);
|
153678
153633
|
let content;
|
153679
153634
|
if (args.json) {
|
@@ -153719,11 +153674,11 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153719
153674
|
method: "PATCH",
|
153720
153675
|
body: JSON.stringify({
|
153721
153676
|
deployment_configs: {
|
153722
|
-
[
|
153677
|
+
[env5]: {
|
153723
153678
|
env_vars: {
|
153724
153679
|
...upsertBindings
|
153725
153680
|
},
|
153726
|
-
wrangler_config_hash: project.deployment_configs[
|
153681
|
+
wrangler_config_hash: project.deployment_configs[env5].wrangler_config_hash
|
153727
153682
|
}
|
153728
153683
|
}
|
153729
153684
|
})
|
@@ -153756,15 +153711,15 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153756
153711
|
},
|
153757
153712
|
async (args) => {
|
153758
153713
|
await printWranglerBanner();
|
153759
|
-
const { env:
|
153714
|
+
const { env: env5, project, accountId, config } = await pagesProject(
|
153760
153715
|
args.env,
|
153761
153716
|
args.projectName
|
153762
153717
|
);
|
153763
153718
|
if (await confirm(
|
153764
|
-
`Are you sure you want to permanently delete the secret ${args.key} on the Pages project ${project.name} (${
|
153719
|
+
`Are you sure you want to permanently delete the secret ${args.key} on the Pages project ${project.name} (${env5})?`
|
153765
153720
|
)) {
|
153766
153721
|
logger.log(
|
153767
|
-
`\u{1F300} Deleting the secret ${args.key} on the Pages project ${project.name} (${
|
153722
|
+
`\u{1F300} Deleting the secret ${args.key} on the Pages project ${project.name} (${env5})`
|
153768
153723
|
);
|
153769
153724
|
await fetchResult(
|
153770
153725
|
`/accounts/${accountId}/pages/projects/${project.name}`,
|
@@ -153772,11 +153727,11 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153772
153727
|
method: "PATCH",
|
153773
153728
|
body: JSON.stringify({
|
153774
153729
|
deployment_configs: {
|
153775
|
-
[
|
153730
|
+
[env5]: {
|
153776
153731
|
env_vars: {
|
153777
153732
|
[args.key]: null
|
153778
153733
|
},
|
153779
|
-
wrangler_config_hash: project.deployment_configs[
|
153734
|
+
wrangler_config_hash: project.deployment_configs[env5].wrangler_config_hash
|
153780
153735
|
}
|
153781
153736
|
}
|
153782
153737
|
})
|
@@ -153800,16 +153755,16 @@ var secret = /* @__PURE__ */ __name((secretYargs, subHelp) => {
|
|
153800
153755
|
},
|
153801
153756
|
async (args) => {
|
153802
153757
|
await printWranglerBanner();
|
153803
|
-
const { env:
|
153758
|
+
const { env: env5, project, config } = await pagesProject(
|
153804
153759
|
args.env,
|
153805
153760
|
args.projectName
|
153806
153761
|
);
|
153807
153762
|
const secrets = Object.entries(
|
153808
|
-
project.deployment_configs[
|
153763
|
+
project.deployment_configs[env5].env_vars ?? {}
|
153809
153764
|
).filter(([_3, val]) => val?.type === "secret_text");
|
153810
153765
|
const message = [
|
153811
153766
|
`The "${source_default.blue(
|
153812
|
-
|
153767
|
+
env5
|
153813
153768
|
)}" environment of your Pages project "${source_default.blue(
|
153814
153769
|
project.name
|
153815
153770
|
)}" has access to the following secrets:`,
|
@@ -163660,17 +163615,17 @@ var BaseClient = class {
|
|
163660
163615
|
*/
|
163661
163616
|
sendEvent(event, hint = {}) {
|
163662
163617
|
this.emit("beforeSendEvent", event, hint);
|
163663
|
-
let
|
163618
|
+
let env5 = createEventEnvelope(event, this._dsn, this._options._metadata, this._options.tunnel);
|
163664
163619
|
for (const attachment of hint.attachments || []) {
|
163665
|
-
|
163666
|
-
|
163620
|
+
env5 = addItemToEnvelope(
|
163621
|
+
env5,
|
163667
163622
|
createAttachmentEnvelopeItem(
|
163668
163623
|
attachment,
|
163669
163624
|
this._options.transportOptions && this._options.transportOptions.textEncoder
|
163670
163625
|
)
|
163671
163626
|
);
|
163672
163627
|
}
|
163673
|
-
const promise = this._sendEnvelope(
|
163628
|
+
const promise = this._sendEnvelope(env5);
|
163674
163629
|
if (promise) {
|
163675
163630
|
promise.then((sendResponse) => this.emit("afterSendEvent", event, sendResponse), null);
|
163676
163631
|
}
|
@@ -163679,8 +163634,8 @@ var BaseClient = class {
|
|
163679
163634
|
* @inheritDoc
|
163680
163635
|
*/
|
163681
163636
|
sendSession(session) {
|
163682
|
-
const
|
163683
|
-
void this._sendEnvelope(
|
163637
|
+
const env5 = createSessionEnvelope(session, this._dsn, this._options._metadata, this._options.tunnel);
|
163638
|
+
void this._sendEnvelope(env5);
|
163684
163639
|
}
|
163685
163640
|
/**
|
163686
163641
|
* @inheritDoc
|
@@ -168711,10 +168666,10 @@ var import_miniflare20 = require("miniflare");
|
|
168711
168666
|
// src/dev/dev-vars.ts
|
168712
168667
|
init_import_meta_url();
|
168713
168668
|
var path58 = __toESM(require("node:path"));
|
168714
|
-
function getVarsForDev(config,
|
168669
|
+
function getVarsForDev(config, env5, silent = false) {
|
168715
168670
|
const configDir = path58.resolve(path58.dirname(config.configPath ?? "."));
|
168716
168671
|
const devVarsPath = path58.resolve(configDir, ".dev.vars");
|
168717
|
-
const loaded = loadDotEnv(devVarsPath,
|
168672
|
+
const loaded = loadDotEnv(devVarsPath, env5);
|
168718
168673
|
if (loaded !== void 0) {
|
168719
168674
|
const devVarsRelativePath = path58.relative(process.cwd(), loaded.path);
|
168720
168675
|
if (!silent) {
|
@@ -172742,18 +172697,18 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
172742
172697
|
const start = Date.now();
|
172743
172698
|
const workerName = scriptName;
|
172744
172699
|
const workerUrl = `/accounts/${accountId}/workers/scripts/${scriptName}`;
|
172745
|
-
const { format:
|
172746
|
-
if (config.wasm_modules &&
|
172700
|
+
const { format: format11 } = props.entry;
|
172701
|
+
if (config.wasm_modules && format11 === "modules") {
|
172747
172702
|
throw new UserError(
|
172748
172703
|
"You cannot configure [wasm_modules] with an ES module worker. Instead, import the .wasm module directly in your code"
|
172749
172704
|
);
|
172750
172705
|
}
|
172751
|
-
if (config.text_blobs &&
|
172706
|
+
if (config.text_blobs && format11 === "modules") {
|
172752
172707
|
throw new UserError(
|
172753
172708
|
`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
172709
|
);
|
172755
172710
|
}
|
172756
|
-
if (config.data_blobs &&
|
172711
|
+
if (config.data_blobs && format11 === "modules") {
|
172757
172712
|
throw new UserError(
|
172758
172713
|
`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
172714
|
);
|
@@ -173508,8 +173463,8 @@ init_import_meta_url();
|
|
173508
173463
|
function buildFormatLongFn(args) {
|
173509
173464
|
return (options30 = {}) => {
|
173510
173465
|
const width = options30.width ? String(options30.width) : args.defaultWidth;
|
173511
|
-
const
|
173512
|
-
return
|
173466
|
+
const format11 = args.formats[width] || args.formats[args.defaultWidth];
|
173467
|
+
return format11;
|
173513
173468
|
};
|
173514
173469
|
}
|
173515
173470
|
__name(buildFormatLongFn, "buildFormatLongFn");
|
@@ -175399,6 +175354,7 @@ async function main(argv) {
|
|
175399
175354
|
const { rawConfig, configPath } = experimental_readRawConfig(args);
|
175400
175355
|
dispatcher = getMetricsDispatcher({
|
175401
175356
|
sendMetrics: rawConfig.send_metrics,
|
175357
|
+
hasAssets: !!rawConfig.assets?.directory,
|
175402
175358
|
configPath
|
175403
175359
|
});
|
175404
175360
|
} catch (e3) {
|
@@ -176084,7 +176040,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176084
176040
|
const notProd = !prod;
|
176085
176041
|
const workerName = notProd ? `${scriptName} (${envName})` : scriptName;
|
176086
176042
|
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:
|
176043
|
+
const { format: format11 } = props.entry;
|
176088
176044
|
if (!props.dispatchNamespace && prod && accountId && scriptName) {
|
176089
176045
|
const yes = await confirmLatestDeploymentOverwrite(accountId, scriptName);
|
176090
176046
|
if (!yes) {
|
@@ -176092,22 +176048,22 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176092
176048
|
return { versionId, workerTag };
|
176093
176049
|
}
|
176094
176050
|
}
|
176095
|
-
if (!props.isWorkersSite && Boolean(props.legacyAssetPaths) &&
|
176051
|
+
if (!props.isWorkersSite && Boolean(props.legacyAssetPaths) && format11 === "service-worker") {
|
176096
176052
|
throw new UserError(
|
176097
176053
|
"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
176054
|
);
|
176099
176055
|
}
|
176100
|
-
if (config.wasm_modules &&
|
176056
|
+
if (config.wasm_modules && format11 === "modules") {
|
176101
176057
|
throw new UserError(
|
176102
176058
|
"You cannot configure [wasm_modules] with an ES module worker. Instead, import the .wasm module directly in your code"
|
176103
176059
|
);
|
176104
176060
|
}
|
176105
|
-
if (config.text_blobs &&
|
176061
|
+
if (config.text_blobs && format11 === "modules") {
|
176106
176062
|
throw new UserError(
|
176107
176063
|
`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
176064
|
);
|
176109
176065
|
}
|
176110
|
-
if (config.data_blobs &&
|
176066
|
+
if (config.data_blobs && format11 === "modules") {
|
176111
176067
|
throw new UserError(
|
176112
176068
|
`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
176069
|
);
|
@@ -176227,7 +176183,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176227
176183
|
vars: { ...config.vars, ...props.vars },
|
176228
176184
|
text_blobs: {
|
176229
176185
|
...config.text_blobs,
|
176230
|
-
...legacyAssets.manifest &&
|
176186
|
+
...legacyAssets.manifest && format11 === "service-worker" && {
|
176231
176187
|
__STATIC_CONTENT_MANIFEST: "__STATIC_CONTENT_MANIFEST"
|
176232
176188
|
}
|
176233
176189
|
}
|
@@ -176290,7 +176246,7 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
176290
176246
|
maskedVars[key] = "(hidden)";
|
176291
176247
|
}
|
176292
176248
|
}
|
176293
|
-
const canUseNewVersionsDeploymentsApi = props.experimentalVersions && workerExists && props.dispatchNamespace === void 0 && prod &&
|
176249
|
+
const canUseNewVersionsDeploymentsApi = props.experimentalVersions && workerExists && props.dispatchNamespace === void 0 && prod && format11 === "modules" && migrations === void 0 && !config.first_party_worker;
|
176294
176250
|
if (props.dryRun) {
|
176295
176251
|
printBindings({ ...withoutStaticAssets, vars: maskedVars });
|
176296
176252
|
} else {
|
@@ -176962,6 +176918,21 @@ function validateAssetsArgsAndConfig(args, config) {
|
|
176962
176918
|
"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
176919
|
);
|
176964
176920
|
}
|
176921
|
+
if (config?.placement?.mode === "smart" && config?.assets?.experimental_serve_directly === false) {
|
176922
|
+
logger.warn(
|
176923
|
+
"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"
|
176924
|
+
);
|
176925
|
+
}
|
176926
|
+
if ("legacy" in args ? args.assets?.assetConfig?.serve_directly === false && !args.assets?.binding : config?.assets?.experimental_serve_directly === false && !config?.assets?.binding) {
|
176927
|
+
logger.warn(
|
176928
|
+
"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"
|
176929
|
+
);
|
176930
|
+
}
|
176931
|
+
if ("legacy" in args ? args.entrypoint === noOpEntrypoint && args.assets?.assetConfig?.serve_directly === false : !config?.main && config?.assets?.experimental_serve_directly === false) {
|
176932
|
+
throw new UserError(
|
176933
|
+
"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`)."
|
176934
|
+
);
|
176935
|
+
}
|
176965
176936
|
}
|
176966
176937
|
__name(validateAssetsArgsAndConfig, "validateAssetsArgsAndConfig");
|
176967
176938
|
var CF_ASSETS_IGNORE_FILENAME = ".assetsignore";
|
@@ -178294,7 +178265,7 @@ function getResolvedLegacyAssetPaths(args, configParam) {
|
|
178294
178265
|
return legacyAssetPaths;
|
178295
178266
|
}
|
178296
178267
|
__name(getResolvedLegacyAssetPaths, "getResolvedLegacyAssetPaths");
|
178297
|
-
function getBindings2(configParam,
|
178268
|
+
function getBindings2(configParam, env5, local, args) {
|
178298
178269
|
const kvConfig = (configParam.kv_namespaces || []).map(
|
178299
178270
|
({ binding, preview_id, id }) => {
|
178300
178271
|
if (!preview_id && !local) {
|
@@ -178389,7 +178360,7 @@ function getBindings2(configParam, env6, local, args) {
|
|
178389
178360
|
// non-inheritable fields
|
178390
178361
|
vars: {
|
178391
178362
|
// Use a copy of combinedVars since we're modifying it later
|
178392
|
-
...getVarsForDev(configParam,
|
178363
|
+
...getVarsForDev(configParam, env5),
|
178393
178364
|
...args.vars
|
178394
178365
|
},
|
178395
178366
|
durable_objects: {
|
@@ -179421,6 +179392,11 @@ async function resolveConfig(config, input) {
|
|
179421
179392
|
"Cannot use legacy assets and Workers Sites in the same Worker."
|
179422
179393
|
);
|
179423
179394
|
}
|
179395
|
+
if (extractBindingsOfType("browser", resolved.bindings).length && !resolved.dev.remote) {
|
179396
|
+
throw new UserError(
|
179397
|
+
"Browser Rendering is not supported locally. Please use `wrangler dev --remote` instead."
|
179398
|
+
);
|
179399
|
+
}
|
179424
179400
|
validateAssetsArgsAndConfig(resolved);
|
179425
179401
|
const services = extractBindingsOfType("service", resolved.bindings);
|
179426
179402
|
if (services && services.length > 0 && resolved.dev?.remote) {
|
@@ -179917,6 +179893,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
179917
179893
|
return;
|
179918
179894
|
}
|
179919
179895
|
try {
|
179896
|
+
if (props.bundleId !== this.#currentBundleId) {
|
179897
|
+
return;
|
179898
|
+
}
|
179920
179899
|
const { workerAccount, workerContext } = await getWorkerAccountAndContext(
|
179921
179900
|
{
|
179922
179901
|
accountId: props.accountId,
|
@@ -179929,6 +179908,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
179929
179908
|
}
|
179930
179909
|
);
|
179931
179910
|
const scriptId = props.name || (workerContext.zone ? this.#session.id : this.#session.host.split(".")[0]);
|
179911
|
+
if (props.bundleId !== this.#currentBundleId) {
|
179912
|
+
return;
|
179913
|
+
}
|
179932
179914
|
const init2 = await createRemoteWorkerInit({
|
179933
179915
|
bundle: props.bundle,
|
179934
179916
|
modules: props.modules,
|
@@ -179944,6 +179926,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
179944
179926
|
compatibilityDate: props.compatibilityDate,
|
179945
179927
|
compatibilityFlags: props.compatibilityFlags
|
179946
179928
|
});
|
179929
|
+
if (props.bundleId !== this.#currentBundleId) {
|
179930
|
+
return;
|
179931
|
+
}
|
179947
179932
|
const workerPreviewToken = await createWorkerPreview(
|
179948
179933
|
init2,
|
179949
179934
|
workerAccount,
|
@@ -180000,6 +179985,9 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
180000
179985
|
const { bindings } = await convertBindingsToCfWorkerInitBindings(
|
180001
179986
|
config.bindings
|
180002
179987
|
);
|
179988
|
+
if (id !== this.#currentBundleId) {
|
179989
|
+
return;
|
179990
|
+
}
|
180003
179991
|
const token = await this.#previewToken({
|
180004
179992
|
bundle,
|
180005
179993
|
modules: bundle.modules,
|
@@ -180023,7 +180011,8 @@ var RemoteRuntimeController = class extends RuntimeController {
|
|
180023
180011
|
routes,
|
180024
180012
|
host: config.dev.origin?.hostname,
|
180025
180013
|
sendMetrics: config.sendMetrics,
|
180026
|
-
configPath: config.config
|
180014
|
+
configPath: config.config,
|
180015
|
+
bundleId: id
|
180027
180016
|
});
|
180028
180017
|
if (id !== this.#currentBundleId || !token) {
|
180029
180018
|
return;
|
@@ -180406,10 +180395,10 @@ __name(maybeGetRegisteredWorkers, "maybeGetRegisteredWorkers");
|
|
180406
180395
|
|
180407
180396
|
// src/api/integrations/platform/index.ts
|
180408
180397
|
async function getPlatformProxy(options30 = {}) {
|
180409
|
-
const
|
180398
|
+
const env5 = options30.environment;
|
180410
180399
|
const rawConfig = readConfig({
|
180411
180400
|
config: options30.configPath,
|
180412
|
-
env:
|
180401
|
+
env: env5
|
180413
180402
|
});
|
180414
180403
|
const miniflareOptions = await run(
|
180415
180404
|
{
|
@@ -180417,7 +180406,7 @@ async function getPlatformProxy(options30 = {}) {
|
|
180417
180406
|
MULTIWORKER: false,
|
180418
180407
|
RESOURCES_PROVISION: false
|
180419
180408
|
},
|
180420
|
-
() => getMiniflareOptionsFromConfig(rawConfig,
|
180409
|
+
() => getMiniflareOptionsFromConfig(rawConfig, env5, options30)
|
180421
180410
|
);
|
180422
180411
|
const mf = new import_miniflare25.Miniflare({
|
180423
180412
|
script: "",
|
@@ -180425,7 +180414,7 @@ async function getPlatformProxy(options30 = {}) {
|
|
180425
180414
|
...miniflareOptions
|
180426
180415
|
});
|
180427
180416
|
const bindings = await mf.getBindings();
|
180428
|
-
const vars = getVarsForDev(rawConfig,
|
180417
|
+
const vars = getVarsForDev(rawConfig, env5);
|
180429
180418
|
const cf = await mf.getCf();
|
180430
180419
|
deepFreeze(cf);
|
180431
180420
|
return {
|
@@ -180440,8 +180429,8 @@ async function getPlatformProxy(options30 = {}) {
|
|
180440
180429
|
};
|
180441
180430
|
}
|
180442
180431
|
__name(getPlatformProxy, "getPlatformProxy");
|
180443
|
-
async function getMiniflareOptionsFromConfig(rawConfig,
|
180444
|
-
const bindings = getBindings2(rawConfig,
|
180432
|
+
async function getMiniflareOptionsFromConfig(rawConfig, env5, options30) {
|
180433
|
+
const bindings = getBindings2(rawConfig, env5, true, {});
|
180445
180434
|
const workerDefinitions = await getBoundRegisteredWorkers({
|
180446
180435
|
name: rawConfig.name,
|
180447
180436
|
services: bindings.services,
|
@@ -180506,14 +180495,14 @@ function deepFreeze(obj) {
|
|
180506
180495
|
});
|
180507
180496
|
}
|
180508
180497
|
__name(deepFreeze, "deepFreeze");
|
180509
|
-
function unstable_getMiniflareWorkerOptions(configOrConfigPath,
|
180510
|
-
const config = typeof configOrConfigPath === "string" ? readConfig({ config: configOrConfigPath, env:
|
180498
|
+
function unstable_getMiniflareWorkerOptions(configOrConfigPath, env5) {
|
180499
|
+
const config = typeof configOrConfigPath === "string" ? readConfig({ config: configOrConfigPath, env: env5 }) : configOrConfigPath;
|
180511
180500
|
const modulesRules = config.rules.concat(DEFAULT_MODULE_RULES).map((rule) => ({
|
180512
180501
|
type: rule.type,
|
180513
180502
|
include: rule.globs,
|
180514
180503
|
fallthrough: rule.fallthrough
|
180515
180504
|
}));
|
180516
|
-
const bindings = getBindings2(config,
|
180505
|
+
const bindings = getBindings2(config, env5, true, {});
|
180517
180506
|
const { bindingOptions } = buildMiniflareBindingOptions({
|
180518
180507
|
name: void 0,
|
180519
180508
|
bindings,
|
@@ -180569,14 +180558,70 @@ init_import_meta_url();
|
|
180569
180558
|
// src/api/integrations/deprecated/getBindingsProxy.ts
|
180570
180559
|
init_import_meta_url();
|
180571
180560
|
async function getBindingsProxy(options30 = {}) {
|
180572
|
-
const { env:
|
180561
|
+
const { env: env5, ...restOfPlatformProxy } = await getPlatformProxy(options30);
|
180573
180562
|
return {
|
180574
|
-
bindings:
|
180563
|
+
bindings: env5,
|
180575
180564
|
...restOfPlatformProxy
|
180576
180565
|
};
|
180577
180566
|
}
|
180578
180567
|
__name(getBindingsProxy, "getBindingsProxy");
|
180579
180568
|
|
180569
|
+
// src/config/patch-config.ts
|
180570
|
+
init_import_meta_url();
|
180571
|
+
var import_fs16 = require("fs");
|
180572
|
+
var import_toml10 = __toESM(require_toml());
|
180573
|
+
var experimental_patchConfig = /* @__PURE__ */ __name((configPath, patch, isArrayInsertion = true) => {
|
180574
|
+
let configString = readFileSync5(configPath);
|
180575
|
+
if (configPath.endsWith("toml")) {
|
180576
|
+
if (configString.includes("#")) {
|
180577
|
+
throw new PatchConfigError(
|
180578
|
+
"cannot patch .toml config if comments are present"
|
180579
|
+
);
|
180580
|
+
} else {
|
180581
|
+
configString = JSON.stringify(parseTOML(configString));
|
180582
|
+
}
|
180583
|
+
}
|
180584
|
+
const patchPaths = [];
|
180585
|
+
getJSONPath(patch, patchPaths, isArrayInsertion);
|
180586
|
+
for (const patchPath of patchPaths) {
|
180587
|
+
const value = patchPath.pop();
|
180588
|
+
const edit = modify(configString, patchPath, value, {
|
180589
|
+
isArrayInsertion
|
180590
|
+
});
|
180591
|
+
configString = applyEdits(configString, edit);
|
180592
|
+
}
|
180593
|
+
const formatEdit = format5(configString, void 0, {});
|
180594
|
+
configString = applyEdits(configString, formatEdit);
|
180595
|
+
if (configPath.endsWith(".toml")) {
|
180596
|
+
configString = import_toml10.default.stringify(parseJSONC(configString));
|
180597
|
+
}
|
180598
|
+
(0, import_fs16.writeFileSync)(configPath, configString);
|
180599
|
+
return configString;
|
180600
|
+
}, "experimental_patchConfig");
|
180601
|
+
var getJSONPath = /* @__PURE__ */ __name((obj, allPaths, isArrayInsertion, prevPath = []) => {
|
180602
|
+
for (const [k2, v2] of Object.entries(obj)) {
|
180603
|
+
const currentPath = [...prevPath, k2];
|
180604
|
+
if (Array.isArray(v2)) {
|
180605
|
+
v2.forEach((x2, i) => {
|
180606
|
+
if (isArrayInsertion) {
|
180607
|
+
allPaths.push([...currentPath, -1, x2]);
|
180608
|
+
} else if (typeof x2 === "object") {
|
180609
|
+
getJSONPath(x2, allPaths, isArrayInsertion, [...currentPath, i]);
|
180610
|
+
} else {
|
180611
|
+
allPaths.push([...currentPath, i, x2]);
|
180612
|
+
}
|
180613
|
+
});
|
180614
|
+
} else if (typeof v2 === "object") {
|
180615
|
+
getJSONPath(v2, allPaths, isArrayInsertion, currentPath);
|
180616
|
+
} else {
|
180617
|
+
allPaths.push([...currentPath, v2]);
|
180618
|
+
}
|
180619
|
+
}
|
180620
|
+
}, "getJSONPath");
|
180621
|
+
var PatchConfigError = class extends Error {
|
180622
|
+
};
|
180623
|
+
__name(PatchConfigError, "PatchConfigError");
|
180624
|
+
|
180580
180625
|
// src/cli.ts
|
180581
180626
|
if (typeof vitest === "undefined" && require.main === module) {
|
180582
180627
|
main(hideBin(import_process6.default.argv)).catch((e3) => {
|
@@ -180590,6 +180635,7 @@ var generateASSETSBinding2 = (
|
|
180590
180635
|
);
|
180591
180636
|
// Annotate the CommonJS export names for ESM import in node:
|
180592
180637
|
0 && (module.exports = {
|
180638
|
+
experimental_patchConfig,
|
180593
180639
|
experimental_readRawConfig,
|
180594
180640
|
getBindingsProxy,
|
180595
180641
|
getPlatformProxy,
|
@@ -181138,3 +181184,4 @@ yargs-parser/build/lib/index.js:
|
|
181138
181184
|
* SPDX-License-Identifier: ISC
|
181139
181185
|
*)
|
181140
181186
|
*/
|
181187
|
+
//# sourceMappingURL=cli.js.map
|