wrangler 4.121.0 → 4.122.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 +16 -16
- package/wrangler-dist/cli.js +190 -134
- package/wrangler-dist/metafile-cjs.json +1 -1
package/wrangler-dist/cli.js
CHANGED
|
@@ -239,6 +239,24 @@ function formatCompatibilityDate(date11) {
|
|
|
239
239
|
function getTodaysCompatDate() {
|
|
240
240
|
return formatCompatibilityDate(/* @__PURE__ */ new Date());
|
|
241
241
|
}
|
|
242
|
+
function isNodejsCompatDefaultOn(compatibilityDate) {
|
|
243
|
+
return compatibilityDate !== void 0 && compatibilityDate >= NODEJS_COMPAT_DEFAULT_ON_DATE;
|
|
244
|
+
}
|
|
245
|
+
function resolveNodejsCompat(compatibilityDate, compatibilityFlags) {
|
|
246
|
+
const isDefaultOn = isNodejsCompatDefaultOn(compatibilityDate);
|
|
247
|
+
const isNodejsCompatEnabled = compatibilityFlags.includes("nodejs_compat") || isDefaultOn && !compatibilityFlags.includes("no_nodejs_compat");
|
|
248
|
+
const isNodejsCompatV2Enabled = compatibilityFlags.includes("nodejs_compat_v2") || !compatibilityFlags.includes("no_nodejs_compat_v2") && (isDefaultOn || isNodejsCompatEnabled && compatibilityDate >= NODEJS_COMPAT_V2_SWITCH_OVER_DATE);
|
|
249
|
+
return { isNodejsCompatEnabled, isNodejsCompatV2Enabled };
|
|
250
|
+
}
|
|
251
|
+
function stripRedundantNodejsCompatFlags(compatibilityDate, compatibilityFlags) {
|
|
252
|
+
if (!isNodejsCompatDefaultOn(compatibilityDate)) {
|
|
253
|
+
return compatibilityFlags;
|
|
254
|
+
}
|
|
255
|
+
const redundantFlags = ["nodejs_compat", "nodejs_compat_v2"].filter(
|
|
256
|
+
(flag) => !compatibilityFlags.includes(`no_${flag}`)
|
|
257
|
+
);
|
|
258
|
+
return compatibilityFlags.filter((flag) => !redundantFlags.includes(flag));
|
|
259
|
+
}
|
|
242
260
|
function assertNever(_value) {
|
|
243
261
|
}
|
|
244
262
|
function mapWorkerMetadataBindings(bindings2) {
|
|
@@ -699,8 +717,9 @@ function constructWranglerConfig(config5) {
|
|
|
699
717
|
...mappedBindings
|
|
700
718
|
};
|
|
701
719
|
}
|
|
702
|
-
var
|
|
703
|
-
|
|
720
|
+
var NODEJS_COMPAT_DEFAULT_ON_DATE, NODEJS_COMPAT_V2_SWITCH_OVER_DATE;
|
|
721
|
+
var init_chunk_NMPHTL5R = __esm({
|
|
722
|
+
"../workers-utils/dist/chunk-NMPHTL5R.mjs"() {
|
|
704
723
|
init_import_meta_url();
|
|
705
724
|
init_chunk_Q72B4Q5Z();
|
|
706
725
|
__name(isCompatDate, "isCompatDate");
|
|
@@ -709,6 +728,14 @@ var init_chunk_J6JRMPLM = __esm({
|
|
|
709
728
|
__name2(formatCompatibilityDate, "formatCompatibilityDate");
|
|
710
729
|
__name(getTodaysCompatDate, "getTodaysCompatDate");
|
|
711
730
|
__name2(getTodaysCompatDate, "getTodaysCompatDate");
|
|
731
|
+
NODEJS_COMPAT_DEFAULT_ON_DATE = "2026-08-04";
|
|
732
|
+
__name(isNodejsCompatDefaultOn, "isNodejsCompatDefaultOn");
|
|
733
|
+
__name2(isNodejsCompatDefaultOn, "isNodejsCompatDefaultOn");
|
|
734
|
+
NODEJS_COMPAT_V2_SWITCH_OVER_DATE = "2024-09-23";
|
|
735
|
+
__name(resolveNodejsCompat, "resolveNodejsCompat");
|
|
736
|
+
__name2(resolveNodejsCompat, "resolveNodejsCompat");
|
|
737
|
+
__name(stripRedundantNodejsCompatFlags, "stripRedundantNodejsCompatFlags");
|
|
738
|
+
__name2(stripRedundantNodejsCompatFlags, "stripRedundantNodejsCompatFlags");
|
|
712
739
|
__name(assertNever, "assertNever");
|
|
713
740
|
__name2(assertNever, "assertNever");
|
|
714
741
|
__name(mapWorkerMetadataBindings, "mapWorkerMetadataBindings");
|
|
@@ -31616,8 +31643,8 @@ function emoji() {
|
|
|
31616
31643
|
}
|
|
31617
31644
|
function timeSource(args) {
|
|
31618
31645
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
31619
|
-
const
|
|
31620
|
-
return
|
|
31646
|
+
const regex3 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
31647
|
+
return regex3;
|
|
31621
31648
|
}
|
|
31622
31649
|
function time(args) {
|
|
31623
31650
|
return new RegExp(`^${timeSource(args)}$`);
|
|
@@ -33901,10 +33928,10 @@ function hex2(_params) {
|
|
|
33901
33928
|
function hash(alg, params) {
|
|
33902
33929
|
const enc = params?.enc ?? "hex";
|
|
33903
33930
|
const format24 = `${alg}_${enc}`;
|
|
33904
|
-
const
|
|
33905
|
-
if (!
|
|
33931
|
+
const regex3 = regexes_exports[format24];
|
|
33932
|
+
if (!regex3)
|
|
33906
33933
|
throw new Error(`Unrecognized hash format: ${format24}`);
|
|
33907
|
-
return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format24,
|
|
33934
|
+
return /* @__PURE__ */ _stringFormat(ZodCustomStringFormat, format24, regex3, params);
|
|
33908
33935
|
}
|
|
33909
33936
|
function number2(params) {
|
|
33910
33937
|
return /* @__PURE__ */ _number(ZodNumber, params);
|
|
@@ -39009,7 +39036,7 @@ var import_undici, require_vendors, require_ci_info, require_command_exists, req
|
|
|
39009
39036
|
var init_dist = __esm({
|
|
39010
39037
|
"../workers-utils/dist/index.mjs"() {
|
|
39011
39038
|
init_import_meta_url();
|
|
39012
|
-
|
|
39039
|
+
init_chunk_NMPHTL5R();
|
|
39013
39040
|
init_chunk_34VZWBGB();
|
|
39014
39041
|
init_chunk_34VZWBGB();
|
|
39015
39042
|
init_chunk_3K53PSCY();
|
|
@@ -41859,8 +41886,8 @@ var init_dist = __esm({
|
|
|
41859
41886
|
__name(datetime, "datetime");
|
|
41860
41887
|
__name2(datetime, "datetime");
|
|
41861
41888
|
string = /* @__PURE__ */ __name2((params) => {
|
|
41862
|
-
const
|
|
41863
|
-
return new RegExp(`^${
|
|
41889
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
41890
|
+
return new RegExp(`^${regex3}$`);
|
|
41864
41891
|
}, "string");
|
|
41865
41892
|
bigint = /^-?\d+n?$/;
|
|
41866
41893
|
integer = /^-?\d+$/;
|
|
@@ -50311,9 +50338,9 @@ var init_dist = __esm({
|
|
|
50311
50338
|
json22.pattern = regexes[0].source;
|
|
50312
50339
|
else if (regexes.length > 1) {
|
|
50313
50340
|
json22.allOf = [
|
|
50314
|
-
...regexes.map((
|
|
50341
|
+
...regexes.map((regex3) => ({
|
|
50315
50342
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
50316
|
-
pattern:
|
|
50343
|
+
pattern: regex3.source
|
|
50317
50344
|
}))
|
|
50318
50345
|
];
|
|
50319
50346
|
}
|
|
@@ -58191,7 +58218,7 @@ var name, version2;
|
|
|
58191
58218
|
var init_package = __esm({
|
|
58192
58219
|
"package.json"() {
|
|
58193
58220
|
name = "wrangler";
|
|
58194
|
-
version2 = "4.
|
|
58221
|
+
version2 = "4.122.0";
|
|
58195
58222
|
}
|
|
58196
58223
|
});
|
|
58197
58224
|
|
|
@@ -58759,8 +58786,8 @@ var require_ansi_regex = __commonJS({
|
|
|
58759
58786
|
var require_strip_ansi = __commonJS({
|
|
58760
58787
|
"../../node_modules/.pnpm/strip-ansi@6.0.1/node_modules/strip-ansi/index.js"(exports2, module2) {
|
|
58761
58788
|
init_import_meta_url();
|
|
58762
|
-
var
|
|
58763
|
-
module2.exports = (string9) => typeof string9 === "string" ? string9.replace(
|
|
58789
|
+
var ansiRegex3 = require_ansi_regex();
|
|
58790
|
+
module2.exports = (string9) => typeof string9 === "string" ? string9.replace(ansiRegex3(), "") : string9;
|
|
58764
58791
|
}
|
|
58765
58792
|
});
|
|
58766
58793
|
|
|
@@ -58811,14 +58838,14 @@ var require_emoji_regex = __commonJS({
|
|
|
58811
58838
|
var require_string_width = __commonJS({
|
|
58812
58839
|
"../../node_modules/.pnpm/string-width@4.2.3/node_modules/string-width/index.js"(exports2, module2) {
|
|
58813
58840
|
init_import_meta_url();
|
|
58814
|
-
var
|
|
58841
|
+
var stripAnsi6 = require_strip_ansi();
|
|
58815
58842
|
var isFullwidthCodePoint2 = require_is_fullwidth_code_point();
|
|
58816
58843
|
var emojiRegex2 = require_emoji_regex();
|
|
58817
58844
|
var stringWidth2 = /* @__PURE__ */ __name((string9) => {
|
|
58818
58845
|
if (typeof string9 !== "string" || string9.length === 0) {
|
|
58819
58846
|
return 0;
|
|
58820
58847
|
}
|
|
58821
|
-
string9 =
|
|
58848
|
+
string9 = stripAnsi6(string9);
|
|
58822
58849
|
if (string9.length === 0) {
|
|
58823
58850
|
return 0;
|
|
58824
58851
|
}
|
|
@@ -62259,8 +62286,8 @@ var require_url_state_machine = __commonJS({
|
|
|
62259
62286
|
if (input === "") {
|
|
62260
62287
|
return 0;
|
|
62261
62288
|
}
|
|
62262
|
-
const
|
|
62263
|
-
if (
|
|
62289
|
+
const regex3 = R4 === 10 ? /[^0-9]/ : R4 === 16 ? /[^0-9A-Fa-f]/ : /[^0-7]/;
|
|
62290
|
+
if (regex3.test(input)) {
|
|
62264
62291
|
return failure;
|
|
62265
62292
|
}
|
|
62266
62293
|
return parseInt(input, R4);
|
|
@@ -127716,7 +127743,7 @@ var require_date2 = __commonJS({
|
|
|
127716
127743
|
var Month = _require3.Month;
|
|
127717
127744
|
var Seconds = _require3.Seconds;
|
|
127718
127745
|
var Year = _require3.Year;
|
|
127719
|
-
var
|
|
127746
|
+
var regex3 = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;
|
|
127720
127747
|
var regexGroups = {
|
|
127721
127748
|
1: ({
|
|
127722
127749
|
token
|
|
@@ -127773,7 +127800,7 @@ var require_date2 = __commonJS({
|
|
|
127773
127800
|
set mask(mask2) {
|
|
127774
127801
|
let result;
|
|
127775
127802
|
this.parts = [];
|
|
127776
|
-
while (result =
|
|
127803
|
+
while (result = regex3.exec(mask2)) {
|
|
127777
127804
|
let match4 = result.shift();
|
|
127778
127805
|
let idx = result.findIndex((gr2) => gr2 != null);
|
|
127779
127806
|
this.parts.push(idx in regexGroups ? regexGroups[idx]({
|
|
@@ -130173,7 +130200,7 @@ var require_date3 = __commonJS({
|
|
|
130173
130200
|
var { style, clear: clear3, figures } = require_util8();
|
|
130174
130201
|
var { erase, cursor } = require_src();
|
|
130175
130202
|
var { DatePart, Meridiem, Day, Hours, Milliseconds, Minutes, Month, Seconds, Year } = require_dateparts2();
|
|
130176
|
-
var
|
|
130203
|
+
var regex3 = /\\(.)|"((?:\\["\\]|[^"])+)"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;
|
|
130177
130204
|
var regexGroups = {
|
|
130178
130205
|
1: ({ token }) => token.replace(/\\(.)/g, "$1"),
|
|
130179
130206
|
2: (opts) => new Day(opts),
|
|
@@ -130228,7 +130255,7 @@ var require_date3 = __commonJS({
|
|
|
130228
130255
|
set mask(mask2) {
|
|
130229
130256
|
let result;
|
|
130230
130257
|
this.parts = [];
|
|
130231
|
-
while (result =
|
|
130258
|
+
while (result = regex3.exec(mask2)) {
|
|
130232
130259
|
let match4 = result.shift();
|
|
130233
130260
|
let idx = result.findIndex((gr2) => gr2 != null);
|
|
130234
130261
|
this.parts.push(idx in regexGroups ? regexGroups[idx]({ token: result[idx] || match4, date: this.date, parts: this.parts, locales: this.locales }) : result[idx] || match4);
|
|
@@ -137161,8 +137188,8 @@ var init_dist3 = __esm({
|
|
|
137161
137188
|
}, "success");
|
|
137162
137189
|
stripAnsi2 = /* @__PURE__ */ __name((str) => {
|
|
137163
137190
|
const pattern = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
137164
|
-
const
|
|
137165
|
-
return str.replace(linkRegex, "$2").replace(
|
|
137191
|
+
const regex3 = RegExp(pattern, "g");
|
|
137192
|
+
return str.replace(linkRegex, "$2").replace(regex3, "");
|
|
137166
137193
|
}, "stripAnsi");
|
|
137167
137194
|
linkRegex = /\u001B\]8;;(?<url>.+)\u001B\\(?<label>.+)\u001B\]8;;\u001B\\/g;
|
|
137168
137195
|
crash = /* @__PURE__ */ __name((msg, extra) => {
|
|
@@ -139277,31 +139304,34 @@ var init_cli_cursor = __esm({
|
|
|
139277
139304
|
}
|
|
139278
139305
|
});
|
|
139279
139306
|
|
|
139280
|
-
// ../../node_modules/.pnpm/ansi-regex@6.
|
|
139307
|
+
// ../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js
|
|
139281
139308
|
function ansiRegex({ onlyFirst = false } = {}) {
|
|
139282
|
-
const
|
|
139283
|
-
|
|
139284
|
-
|
|
139285
|
-
|
|
139309
|
+
const ST = "(?:\\u0007|\\u001B\\u005C|\\u009C)";
|
|
139310
|
+
const osc = `(?:\\u001B\\][\\s\\S]*?${ST})`;
|
|
139311
|
+
const csi = "[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";
|
|
139312
|
+
const pattern = `${osc}|${csi}`;
|
|
139286
139313
|
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
139287
139314
|
}
|
|
139288
139315
|
var init_ansi_regex = __esm({
|
|
139289
|
-
"../../node_modules/.pnpm/ansi-regex@6.
|
|
139316
|
+
"../../node_modules/.pnpm/ansi-regex@6.2.2/node_modules/ansi-regex/index.js"() {
|
|
139290
139317
|
init_import_meta_url();
|
|
139291
139318
|
__name(ansiRegex, "ansiRegex");
|
|
139292
139319
|
}
|
|
139293
139320
|
});
|
|
139294
139321
|
|
|
139295
|
-
// ../../node_modules/.pnpm/strip-ansi@7.
|
|
139322
|
+
// ../../node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js
|
|
139296
139323
|
function stripAnsi3(string9) {
|
|
139297
139324
|
if (typeof string9 !== "string") {
|
|
139298
139325
|
throw new TypeError(`Expected a \`string\`, got \`${typeof string9}\``);
|
|
139299
139326
|
}
|
|
139327
|
+
if (!string9.includes("\x1B") && !string9.includes("\x9B")) {
|
|
139328
|
+
return string9;
|
|
139329
|
+
}
|
|
139300
139330
|
return string9.replace(regex, "");
|
|
139301
139331
|
}
|
|
139302
139332
|
var regex;
|
|
139303
139333
|
var init_strip_ansi = __esm({
|
|
139304
|
-
"../../node_modules/.pnpm/strip-ansi@7.
|
|
139334
|
+
"../../node_modules/.pnpm/strip-ansi@7.2.0/node_modules/strip-ansi/index.js"() {
|
|
139305
139335
|
init_import_meta_url();
|
|
139306
139336
|
init_ansi_regex();
|
|
139307
139337
|
regex = ansiRegex();
|
|
@@ -139930,6 +139960,38 @@ var init_slice_ansi = __esm({
|
|
|
139930
139960
|
__name(sliceAnsi, "sliceAnsi");
|
|
139931
139961
|
}
|
|
139932
139962
|
});
|
|
139963
|
+
|
|
139964
|
+
// ../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js
|
|
139965
|
+
function ansiRegex2({ onlyFirst = false } = {}) {
|
|
139966
|
+
const pattern = [
|
|
139967
|
+
"[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)",
|
|
139968
|
+
"(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"
|
|
139969
|
+
].join("|");
|
|
139970
|
+
return new RegExp(pattern, onlyFirst ? void 0 : "g");
|
|
139971
|
+
}
|
|
139972
|
+
var init_ansi_regex2 = __esm({
|
|
139973
|
+
"../../node_modules/.pnpm/ansi-regex@6.0.1/node_modules/ansi-regex/index.js"() {
|
|
139974
|
+
init_import_meta_url();
|
|
139975
|
+
__name(ansiRegex2, "ansiRegex");
|
|
139976
|
+
}
|
|
139977
|
+
});
|
|
139978
|
+
|
|
139979
|
+
// ../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js
|
|
139980
|
+
function stripAnsi4(string9) {
|
|
139981
|
+
if (typeof string9 !== "string") {
|
|
139982
|
+
throw new TypeError(`Expected a \`string\`, got \`${typeof string9}\``);
|
|
139983
|
+
}
|
|
139984
|
+
return string9.replace(regex2, "");
|
|
139985
|
+
}
|
|
139986
|
+
var regex2;
|
|
139987
|
+
var init_strip_ansi2 = __esm({
|
|
139988
|
+
"../../node_modules/.pnpm/strip-ansi@7.1.0/node_modules/strip-ansi/index.js"() {
|
|
139989
|
+
init_import_meta_url();
|
|
139990
|
+
init_ansi_regex2();
|
|
139991
|
+
regex2 = ansiRegex2();
|
|
139992
|
+
__name(stripAnsi4, "stripAnsi");
|
|
139993
|
+
}
|
|
139994
|
+
});
|
|
139933
139995
|
function createLogUpdate(stream2, { showCursor: showCursor2 = false } = {}) {
|
|
139934
139996
|
let previousLineCount = 0;
|
|
139935
139997
|
let previousWidth = getWidth(stream2);
|
|
@@ -139978,7 +140040,7 @@ var init_log_update = __esm({
|
|
|
139978
140040
|
init_cli_cursor();
|
|
139979
140041
|
init_wrap_ansi();
|
|
139980
140042
|
init_slice_ansi();
|
|
139981
|
-
|
|
140043
|
+
init_strip_ansi2();
|
|
139982
140044
|
defaultTerminalHeight = 24;
|
|
139983
140045
|
getWidth = /* @__PURE__ */ __name((stream2) => {
|
|
139984
140046
|
const { columns } = stream2;
|
|
@@ -139996,7 +140058,7 @@ var init_log_update = __esm({
|
|
|
139996
140058
|
}
|
|
139997
140059
|
return sliceAnsi(
|
|
139998
140060
|
text,
|
|
139999
|
-
|
|
140061
|
+
stripAnsi4(lines.slice(0, toRemove).join("\n")).length + 1
|
|
140000
140062
|
);
|
|
140001
140063
|
}, "fitToTerminalHeight");
|
|
140002
140064
|
__name(createLogUpdate, "createLogUpdate");
|
|
@@ -145527,8 +145589,8 @@ function emoji3() {
|
|
|
145527
145589
|
}
|
|
145528
145590
|
function timeSource2(args) {
|
|
145529
145591
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
145530
|
-
const
|
|
145531
|
-
return
|
|
145592
|
+
const regex3 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
145593
|
+
return regex3;
|
|
145532
145594
|
}
|
|
145533
145595
|
function time3(args) {
|
|
145534
145596
|
return new RegExp(`^${timeSource2(args)}$`);
|
|
@@ -147812,10 +147874,10 @@ function hex22(_params) {
|
|
|
147812
147874
|
function hash2(alg, params) {
|
|
147813
147875
|
const enc = params?.enc ?? "hex";
|
|
147814
147876
|
const format11 = `${alg}_${enc}`;
|
|
147815
|
-
const
|
|
147816
|
-
if (!
|
|
147877
|
+
const regex3 = regexes_exports2[format11];
|
|
147878
|
+
if (!regex3)
|
|
147817
147879
|
throw new Error(`Unrecognized hash format: ${format11}`);
|
|
147818
|
-
return /* @__PURE__ */ _stringFormat2(ZodCustomStringFormat2, format11,
|
|
147880
|
+
return /* @__PURE__ */ _stringFormat2(ZodCustomStringFormat2, format11, regex3, params);
|
|
147819
147881
|
}
|
|
147820
147882
|
function number22(params) {
|
|
147821
147883
|
return /* @__PURE__ */ _number2(ZodNumber2, params);
|
|
@@ -151320,11 +151382,11 @@ This will delete all deployments associated with this Preview.`
|
|
|
151320
151382
|
logger.log(`
|
|
151321
151383
|
\u2728 Preview "${previewName}" deleted successfully.`);
|
|
151322
151384
|
}
|
|
151323
|
-
function
|
|
151385
|
+
function stripAnsi5(str) {
|
|
151324
151386
|
return str.replace(/\x1b\[[0-9;]*m/g, "");
|
|
151325
151387
|
}
|
|
151326
151388
|
function visibleLength(str) {
|
|
151327
|
-
return
|
|
151389
|
+
return stripAnsi5(str).length;
|
|
151328
151390
|
}
|
|
151329
151391
|
function padToVisibleWidth(str, width) {
|
|
151330
151392
|
const visible = visibleLength(str);
|
|
@@ -151795,11 +151857,11 @@ var init_dist8 = __esm({
|
|
|
151795
151857
|
static {
|
|
151796
151858
|
__name3(this, "IgnoreRule");
|
|
151797
151859
|
}
|
|
151798
|
-
constructor(origin, pattern, negative,
|
|
151860
|
+
constructor(origin, pattern, negative, regex3) {
|
|
151799
151861
|
this.origin = origin;
|
|
151800
151862
|
this.pattern = pattern;
|
|
151801
151863
|
this.negative = negative;
|
|
151802
|
-
this.regex =
|
|
151864
|
+
this.regex = regex3;
|
|
151803
151865
|
}
|
|
151804
151866
|
};
|
|
151805
151867
|
var createRule = /* @__PURE__ */ __name3((pattern, ignoreCase) => {
|
|
@@ -151810,12 +151872,12 @@ var init_dist8 = __esm({
|
|
|
151810
151872
|
pattern = pattern.substr(1);
|
|
151811
151873
|
}
|
|
151812
151874
|
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
151813
|
-
const
|
|
151875
|
+
const regex3 = makeRegex(pattern, ignoreCase);
|
|
151814
151876
|
return new IgnoreRule(
|
|
151815
151877
|
origin,
|
|
151816
151878
|
pattern,
|
|
151817
151879
|
negative,
|
|
151818
|
-
|
|
151880
|
+
regex3
|
|
151819
151881
|
);
|
|
151820
151882
|
}, "createRule");
|
|
151821
151883
|
var throwError = /* @__PURE__ */ __name3((message, Ctor) => {
|
|
@@ -158000,8 +158062,8 @@ Ensure all assets in your assets directory "${dir5}" conform with the Workers ma
|
|
|
158000
158062
|
__name(datetime3, "datetime");
|
|
158001
158063
|
__name3(datetime3, "datetime");
|
|
158002
158064
|
string4 = /* @__PURE__ */ __name3((params) => {
|
|
158003
|
-
const
|
|
158004
|
-
return new RegExp(`^${
|
|
158065
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
158066
|
+
return new RegExp(`^${regex3}$`);
|
|
158005
158067
|
}, "string");
|
|
158006
158068
|
bigint4 = /^-?\d+n?$/;
|
|
158007
158069
|
integer2 = /^-?\d+$/;
|
|
@@ -166452,9 +166514,9 @@ Ensure all assets in your assets directory "${dir5}" conform with the Workers ma
|
|
|
166452
166514
|
json22.pattern = regexes[0].source;
|
|
166453
166515
|
else if (regexes.length > 1) {
|
|
166454
166516
|
json22.allOf = [
|
|
166455
|
-
...regexes.map((
|
|
166517
|
+
...regexes.map((regex3) => ({
|
|
166456
166518
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
166457
|
-
pattern:
|
|
166519
|
+
pattern: regex3.source
|
|
166458
166520
|
}))
|
|
166459
166521
|
];
|
|
166460
166522
|
}
|
|
@@ -168795,8 +168857,8 @@ ${mountedAssetRoutes.map((route) => {
|
|
|
168795
168857
|
bottomLeftWithConnector: "\u252C",
|
|
168796
168858
|
connectorRight: "\u2524"
|
|
168797
168859
|
};
|
|
168798
|
-
__name(
|
|
168799
|
-
__name3(
|
|
168860
|
+
__name(stripAnsi5, "stripAnsi");
|
|
168861
|
+
__name3(stripAnsi5, "stripAnsi");
|
|
168800
168862
|
__name(visibleLength, "visibleLength");
|
|
168801
168863
|
__name3(visibleLength, "visibleLength");
|
|
168802
168864
|
__name(padToVisibleWidth, "padToVisibleWidth");
|
|
@@ -170645,9 +170707,9 @@ function createModuleCollector(props) {
|
|
|
170645
170707
|
);
|
|
170646
170708
|
const rulesMatchers = parsedRules.rules.flatMap((rule) => {
|
|
170647
170709
|
return rule.globs.map((glob) => {
|
|
170648
|
-
const
|
|
170710
|
+
const regex3 = (0, import_glob_to_regexp2.default)(glob);
|
|
170649
170711
|
return {
|
|
170650
|
-
regex:
|
|
170712
|
+
regex: regex3,
|
|
170651
170713
|
rule
|
|
170652
170714
|
};
|
|
170653
170715
|
});
|
|
@@ -170680,7 +170742,7 @@ function createModuleCollector(props) {
|
|
|
170680
170742
|
);
|
|
170681
170743
|
const fileHash = crypto2__default.default.createHash("sha1").update(fileContent).digest("hex");
|
|
170682
170744
|
const fileName = props.preserveFileNames ? cleanedPath : `./${fileHash}-${path31__namespace.default.basename(cleanedPath)}`;
|
|
170683
|
-
const { rule } = rulesMatchers.find(({ regex:
|
|
170745
|
+
const { rule } = rulesMatchers.find(({ regex: regex3 }) => regex3.test(fileName)) || {};
|
|
170684
170746
|
if (rule) {
|
|
170685
170747
|
modules.push({
|
|
170686
170748
|
name: fileName,
|
|
@@ -183836,7 +183898,7 @@ var init_dist12 = __esm({
|
|
|
183836
183898
|
init_wrapper();
|
|
183837
183899
|
init_create_worker_upload_form();
|
|
183838
183900
|
import_undici8 = __toESM(require_undici(), 1);
|
|
183839
|
-
version4 = "0.0.
|
|
183901
|
+
version4 = "0.0.11";
|
|
183840
183902
|
NoDefaultValueProvided2 = class extends UserError {
|
|
183841
183903
|
static {
|
|
183842
183904
|
__name(this, "NoDefaultValueProvided");
|
|
@@ -184264,7 +184326,6 @@ You can also run \`wrangler whoami\` to check your current authentication status
|
|
|
184264
184326
|
runtime;
|
|
184265
184327
|
proxy;
|
|
184266
184328
|
#bundle;
|
|
184267
|
-
#bundleVersion = 0;
|
|
184268
184329
|
#config;
|
|
184269
184330
|
start() {
|
|
184270
184331
|
this.proxy.start(this.#config);
|
|
@@ -184280,7 +184341,7 @@ You can also run \`wrangler whoami\` to check your current authentication status
|
|
|
184280
184341
|
bundle: {
|
|
184281
184342
|
...this.#bundle,
|
|
184282
184343
|
entrypointSource: `${this.#bundle.entrypointSource}
|
|
184283
|
-
// remote-bindings-update:${
|
|
184344
|
+
// remote-bindings-update:${crypto2.randomUUID()}`
|
|
184284
184345
|
}
|
|
184285
184346
|
});
|
|
184286
184347
|
}
|
|
@@ -185527,8 +185588,8 @@ function emoji4() {
|
|
|
185527
185588
|
}
|
|
185528
185589
|
function timeSource3(args) {
|
|
185529
185590
|
const hhmm = `(?:[01]\\d|2[0-3]):[0-5]\\d`;
|
|
185530
|
-
const
|
|
185531
|
-
return
|
|
185591
|
+
const regex3 = typeof args.precision === "number" ? args.precision === -1 ? `${hhmm}` : args.precision === 0 ? `${hhmm}:[0-5]\\d` : `${hhmm}:[0-5]\\d\\.\\d{${args.precision}}` : `${hhmm}(?::[0-5]\\d(?:\\.\\d+)?)?`;
|
|
185592
|
+
return regex3;
|
|
185532
185593
|
}
|
|
185533
185594
|
function time4(args) {
|
|
185534
185595
|
return new RegExp(`^${timeSource3(args)}$`);
|
|
@@ -185599,8 +185660,8 @@ var init_regexes = __esm({
|
|
|
185599
185660
|
__name(time4, "time");
|
|
185600
185661
|
__name(datetime4, "datetime");
|
|
185601
185662
|
string5 = /* @__PURE__ */ __name((params) => {
|
|
185602
|
-
const
|
|
185603
|
-
return new RegExp(`^${
|
|
185663
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
185664
|
+
return new RegExp(`^${regex3}$`);
|
|
185604
185665
|
}, "string");
|
|
185605
185666
|
bigint5 = /^-?\d+n?$/;
|
|
185606
185667
|
integer3 = /^-?\d+$/;
|
|
@@ -196521,9 +196582,9 @@ var init_json_schema_processors = __esm({
|
|
|
196521
196582
|
json5.pattern = regexes[0].source;
|
|
196522
196583
|
else if (regexes.length > 1) {
|
|
196523
196584
|
json5.allOf = [
|
|
196524
|
-
...regexes.map((
|
|
196585
|
+
...regexes.map((regex3) => ({
|
|
196525
196586
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
196526
|
-
pattern:
|
|
196587
|
+
pattern: regex3.source
|
|
196527
196588
|
}))
|
|
196528
196589
|
];
|
|
196529
196590
|
}
|
|
@@ -197854,10 +197915,10 @@ function hex5(_params) {
|
|
|
197854
197915
|
function hash3(alg, params) {
|
|
197855
197916
|
const enc = params?.enc ?? "hex";
|
|
197856
197917
|
const format11 = `${alg}_${enc}`;
|
|
197857
|
-
const
|
|
197858
|
-
if (!
|
|
197918
|
+
const regex3 = regexes_exports3[format11];
|
|
197919
|
+
if (!regex3)
|
|
197859
197920
|
throw new Error(`Unrecognized hash format: ${format11}`);
|
|
197860
|
-
return _stringFormat3(ZodCustomStringFormat3, format11,
|
|
197921
|
+
return _stringFormat3(ZodCustomStringFormat3, format11, regex3, params);
|
|
197861
197922
|
}
|
|
197862
197923
|
function number6(params) {
|
|
197863
197924
|
return _number3(ZodNumber3, params);
|
|
@@ -209393,9 +209454,9 @@ function hex23(_params) {
|
|
|
209393
209454
|
}
|
|
209394
209455
|
function hash4(alg, params) {
|
|
209395
209456
|
const format2$1 = `${alg}_${params?.enc ?? "hex"}`;
|
|
209396
|
-
const
|
|
209397
|
-
if (!
|
|
209398
|
-
return /* @__PURE__ */ _stringFormat4(ZodCustomStringFormat4, format2$1,
|
|
209457
|
+
const regex3 = regexes_exports4[format2$1];
|
|
209458
|
+
if (!regex3) throw new Error(`Unrecognized hash format: ${format2$1}`);
|
|
209459
|
+
return /* @__PURE__ */ _stringFormat4(ZodCustomStringFormat4, format2$1, regex3, params);
|
|
209399
209460
|
}
|
|
209400
209461
|
function number23(params) {
|
|
209401
209462
|
return /* @__PURE__ */ _number4(ZodNumber4, params);
|
|
@@ -236465,8 +236526,8 @@ ${captureLines}` : capture.stack;
|
|
|
236465
236526
|
__name(datetime6, "datetime");
|
|
236466
236527
|
__name6(datetime6, "datetime");
|
|
236467
236528
|
string8 = /* @__PURE__ */ __name6((params) => {
|
|
236468
|
-
const
|
|
236469
|
-
return /* @__PURE__ */ new RegExp(`^${
|
|
236529
|
+
const regex3 = params ? `[\\s\\S]{${params?.minimum ?? 0},${params?.maximum ?? ""}}` : `[\\s\\S]*`;
|
|
236530
|
+
return /* @__PURE__ */ new RegExp(`^${regex3}$`);
|
|
236470
236531
|
}, "string");
|
|
236471
236532
|
bigint8 = /^-?\d+n?$/;
|
|
236472
236533
|
integer4 = /^-?\d+$/;
|
|
@@ -244808,9 +244869,9 @@ ${captureLines}` : capture.stack;
|
|
|
244808
244869
|
if (patterns && patterns.size > 0) {
|
|
244809
244870
|
const regexes = [...patterns];
|
|
244810
244871
|
if (regexes.length === 1) json22.pattern = regexes[0].source;
|
|
244811
|
-
else if (regexes.length > 1) json22.allOf = [...regexes.map((
|
|
244872
|
+
else if (regexes.length > 1) json22.allOf = [...regexes.map((regex3) => ({
|
|
244812
244873
|
...ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0" ? { type: "string" } : {},
|
|
244813
|
-
pattern:
|
|
244874
|
+
pattern: regex3.source
|
|
244814
244875
|
}))];
|
|
244815
244876
|
}
|
|
244816
244877
|
}, "stringProcessor");
|
|
@@ -253212,11 +253273,11 @@ var require_ignore2 = __commonJS({
|
|
|
253212
253273
|
static {
|
|
253213
253274
|
__name(this, "IgnoreRule");
|
|
253214
253275
|
}
|
|
253215
|
-
constructor(origin, pattern, negative,
|
|
253276
|
+
constructor(origin, pattern, negative, regex3) {
|
|
253216
253277
|
this.origin = origin;
|
|
253217
253278
|
this.pattern = pattern;
|
|
253218
253279
|
this.negative = negative;
|
|
253219
|
-
this.regex =
|
|
253280
|
+
this.regex = regex3;
|
|
253220
253281
|
}
|
|
253221
253282
|
};
|
|
253222
253283
|
var createRule = /* @__PURE__ */ __name((pattern, ignoreCase) => {
|
|
@@ -253227,12 +253288,12 @@ var require_ignore2 = __commonJS({
|
|
|
253227
253288
|
pattern = pattern.substr(1);
|
|
253228
253289
|
}
|
|
253229
253290
|
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
253230
|
-
const
|
|
253291
|
+
const regex3 = makeRegex(pattern, ignoreCase);
|
|
253231
253292
|
return new IgnoreRule(
|
|
253232
253293
|
origin,
|
|
253233
253294
|
pattern,
|
|
253234
253295
|
negative,
|
|
253235
|
-
|
|
253296
|
+
regex3
|
|
253236
253297
|
);
|
|
253237
253298
|
}, "createRule");
|
|
253238
253299
|
var throwError = /* @__PURE__ */ __name((message, Ctor) => {
|
|
@@ -255054,11 +255115,11 @@ var require_main2 = __commonJS({
|
|
|
255054
255115
|
__name(_resolveEscapeSequences, "_resolveEscapeSequences");
|
|
255055
255116
|
function expandValue(value, processEnv, runningParsed) {
|
|
255056
255117
|
const env7 = { ...runningParsed, ...processEnv };
|
|
255057
|
-
const
|
|
255118
|
+
const regex3 = /(?<!\\)\${([^{}]+)}|(?<!\\)\$([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
255058
255119
|
let result = value;
|
|
255059
255120
|
let match4;
|
|
255060
255121
|
const seen = /* @__PURE__ */ new Set();
|
|
255061
|
-
while ((match4 =
|
|
255122
|
+
while ((match4 = regex3.exec(result)) !== null) {
|
|
255062
255123
|
seen.add(result);
|
|
255063
255124
|
const [template, bracedExpression, unbracedExpression] = match4;
|
|
255064
255125
|
const expression = bracedExpression || unbracedExpression;
|
|
@@ -255088,7 +255149,7 @@ var require_main2 = __commonJS({
|
|
|
255088
255149
|
if (result === runningParsed[key]) {
|
|
255089
255150
|
break;
|
|
255090
255151
|
}
|
|
255091
|
-
|
|
255152
|
+
regex3.lastIndex = 0;
|
|
255092
255153
|
}
|
|
255093
255154
|
return result;
|
|
255094
255155
|
}
|
|
@@ -273689,8 +273750,6 @@ var init_find = __esm({
|
|
|
273689
273750
|
__name(dir4, "dir");
|
|
273690
273751
|
}
|
|
273691
273752
|
});
|
|
273692
|
-
|
|
273693
|
-
// src/process-env.ts
|
|
273694
273753
|
function isProcessEnvPopulated(compatibility_date, compatibility_flags = []) {
|
|
273695
273754
|
if (compatibility_flags.includes("nodejs_compat_populate_process_env") && compatibility_flags.includes("nodejs_compat_do_not_populate_process_env")) {
|
|
273696
273755
|
throw new UserError(
|
|
@@ -273700,13 +273759,17 @@ function isProcessEnvPopulated(compatibility_date, compatibility_flags = []) {
|
|
|
273700
273759
|
}
|
|
273701
273760
|
);
|
|
273702
273761
|
}
|
|
273703
|
-
|
|
273762
|
+
const { isNodejsCompatEnabled } = miniflare.getNodeCompat(
|
|
273763
|
+
compatibility_date,
|
|
273764
|
+
compatibility_flags
|
|
273765
|
+
);
|
|
273766
|
+
if (compatibility_flags.includes("nodejs_compat_populate_process_env") && isNodejsCompatEnabled) {
|
|
273704
273767
|
return true;
|
|
273705
273768
|
}
|
|
273706
273769
|
if (compatibility_flags.includes("nodejs_compat_do_not_populate_process_env")) {
|
|
273707
273770
|
return false;
|
|
273708
273771
|
}
|
|
273709
|
-
return
|
|
273772
|
+
return isNodejsCompatEnabled && !!compatibility_date && compatibility_date >= "2025-04-01";
|
|
273710
273773
|
}
|
|
273711
273774
|
var init_process_env = __esm({
|
|
273712
273775
|
"src/process-env.ts"() {
|
|
@@ -274210,7 +274273,7 @@ function logRuntimeTypesMessage(tsconfigTypes, isNodeCompat = false) {
|
|
|
274210
274273
|
logAction("Install @types/node");
|
|
274211
274274
|
logger2.log(
|
|
274212
274275
|
source_default.dim(
|
|
274213
|
-
`Since
|
|
274276
|
+
`Since your Worker has Node.js compatibility enabled, you should install Node.js types by running "npm i --save-dev @types/node".`
|
|
274214
274277
|
)
|
|
274215
274278
|
);
|
|
274216
274279
|
logger2.log("");
|
|
@@ -300173,8 +300236,8 @@ function getDeviceContext(deviceOpt) {
|
|
|
300173
300236
|
}
|
|
300174
300237
|
return device;
|
|
300175
300238
|
}
|
|
300176
|
-
function matchFirst(
|
|
300177
|
-
const match4 =
|
|
300239
|
+
function matchFirst(regex3, text) {
|
|
300240
|
+
const match4 = regex3.exec(text);
|
|
300178
300241
|
return match4 ? match4[1] : void 0;
|
|
300179
300242
|
}
|
|
300180
300243
|
async function getDarwinInfo() {
|
|
@@ -309559,7 +309622,7 @@ async function runAutoConfig(autoConfigDetails, autoConfigOptions) {
|
|
|
309559
309622
|
const { npx } = packageManager;
|
|
309560
309623
|
const autoConfigSummary = await buildOperationsSummary(
|
|
309561
309624
|
{ ...autoConfigDetails, outputDir: autoConfigDetails.outputDir },
|
|
309562
|
-
dryRunConfigurationResults.wranglerConfig === null ? null :
|
|
309625
|
+
dryRunConfigurationResults.wranglerConfig === null ? null : ensureNodejsCompatIsEnabled({
|
|
309563
309626
|
...wranglerConfig,
|
|
309564
309627
|
...dryRunConfigurationResults.wranglerConfig
|
|
309565
309628
|
}),
|
|
@@ -309623,13 +309686,10 @@ ${JSON.stringify(autoConfigDetails, null, 2)}...`
|
|
|
309623
309686
|
);
|
|
309624
309687
|
}
|
|
309625
309688
|
if (configurationResults.wranglerConfig !== null) {
|
|
309626
|
-
await saveWranglerJsonc(
|
|
309627
|
-
|
|
309628
|
-
|
|
309629
|
-
|
|
309630
|
-
...configurationResults.wranglerConfig
|
|
309631
|
-
})
|
|
309632
|
-
);
|
|
309689
|
+
await saveWranglerJsonc(autoConfigDetails.projectPath, {
|
|
309690
|
+
...wranglerConfig,
|
|
309691
|
+
...configurationResults.wranglerConfig
|
|
309692
|
+
});
|
|
309633
309693
|
}
|
|
309634
309694
|
maybeAppendWranglerToGitIgnore(autoConfigDetails.projectPath);
|
|
309635
309695
|
if (autoConfigDetails.outputDir === autoConfigDetails.projectPath) {
|
|
@@ -309647,19 +309707,18 @@ ${JSON.stringify(autoConfigDetails, null, 2)}...`
|
|
|
309647
309707
|
}
|
|
309648
309708
|
return autoConfigSummary;
|
|
309649
309709
|
}
|
|
309650
|
-
function
|
|
309651
|
-
|
|
309652
|
-
|
|
309710
|
+
function ensureNodejsCompatIsEnabled(wranglerConfig) {
|
|
309711
|
+
const flags2 = (wranglerConfig.compatibility_flags ?? []).filter(
|
|
309712
|
+
(flag) => !flag.startsWith("nodejs_")
|
|
309713
|
+
);
|
|
309714
|
+
if (!isNodejsCompatDefaultOn(wranglerConfig.compatibility_date)) {
|
|
309715
|
+
flags2.push("nodejs_compat");
|
|
309653
309716
|
}
|
|
309654
|
-
|
|
309655
|
-
...wranglerConfig
|
|
309656
|
-
|
|
309657
|
-
|
|
309658
|
-
|
|
309659
|
-
) ?? [],
|
|
309660
|
-
"nodejs_compat"
|
|
309661
|
-
]
|
|
309662
|
-
};
|
|
309717
|
+
if (flags2.length === 0) {
|
|
309718
|
+
const { compatibility_flags: _removed, ...rest } = wranglerConfig;
|
|
309719
|
+
return rest;
|
|
309720
|
+
}
|
|
309721
|
+
return { ...wranglerConfig, compatibility_flags: flags2 };
|
|
309663
309722
|
}
|
|
309664
309723
|
async function saveWranglerJsonc(projectPath, wranglerConfig) {
|
|
309665
309724
|
let existingWranglerConfig = {};
|
|
@@ -309671,16 +309730,13 @@ async function saveWranglerJsonc(projectPath, wranglerConfig) {
|
|
|
309671
309730
|
wranglerConfigPath
|
|
309672
309731
|
);
|
|
309673
309732
|
}
|
|
309733
|
+
const mergedWranglerConfig = ensureNodejsCompatIsEnabled({
|
|
309734
|
+
...existingWranglerConfig,
|
|
309735
|
+
...wranglerConfig
|
|
309736
|
+
});
|
|
309674
309737
|
await fs$1.writeFile(
|
|
309675
309738
|
path31.resolve(projectPath, "wrangler.jsonc"),
|
|
309676
|
-
JSON.stringify(
|
|
309677
|
-
{
|
|
309678
|
-
...existingWranglerConfig,
|
|
309679
|
-
...wranglerConfig
|
|
309680
|
-
},
|
|
309681
|
-
null,
|
|
309682
|
-
2
|
|
309683
|
-
) + "\n"
|
|
309739
|
+
JSON.stringify(mergedWranglerConfig, null, 2) + "\n"
|
|
309684
309740
|
);
|
|
309685
309741
|
}
|
|
309686
309742
|
async function buildOperationsSummary(autoConfigDetails, wranglerConfigToWrite, projectCommands, context2, packageJsonScriptsOverrides) {
|
|
@@ -321884,28 +321940,28 @@ var init_dist17 = __esm({
|
|
|
321884
321940
|
};
|
|
321885
321941
|
Reader2.prototype.isRegexStart = function() {
|
|
321886
321942
|
var previous = this.values[this.values.length - 1];
|
|
321887
|
-
var
|
|
321943
|
+
var regex3 = previous !== null;
|
|
321888
321944
|
switch (previous) {
|
|
321889
321945
|
case "this":
|
|
321890
321946
|
case "]":
|
|
321891
|
-
|
|
321947
|
+
regex3 = false;
|
|
321892
321948
|
break;
|
|
321893
321949
|
case ")":
|
|
321894
321950
|
var keyword = this.values[this.paren - 1];
|
|
321895
|
-
|
|
321951
|
+
regex3 = keyword === "if" || keyword === "while" || keyword === "for" || keyword === "with";
|
|
321896
321952
|
break;
|
|
321897
321953
|
case "}":
|
|
321898
|
-
|
|
321954
|
+
regex3 = false;
|
|
321899
321955
|
if (this.values[this.curly - 3] === "function") {
|
|
321900
321956
|
var check5 = this.values[this.curly - 4];
|
|
321901
|
-
|
|
321957
|
+
regex3 = check5 ? !this.beforeFunctionExpression(check5) : false;
|
|
321902
321958
|
} else if (this.values[this.curly - 4] === "function") {
|
|
321903
321959
|
var check5 = this.values[this.curly - 5];
|
|
321904
|
-
|
|
321960
|
+
regex3 = check5 ? !this.beforeFunctionExpression(check5) : true;
|
|
321905
321961
|
}
|
|
321906
321962
|
break;
|
|
321907
321963
|
}
|
|
321908
|
-
return
|
|
321964
|
+
return regex3;
|
|
321909
321965
|
};
|
|
321910
321966
|
Reader2.prototype.push = function(token) {
|
|
321911
321967
|
if (token.type === 7 || token.type === 4) {
|
|
@@ -327053,12 +327109,12 @@ var init_dist17 = __esm({
|
|
|
327053
327109
|
pattern,
|
|
327054
327110
|
flags: flags2
|
|
327055
327111
|
}) {
|
|
327056
|
-
let
|
|
327112
|
+
let regex3 = null;
|
|
327057
327113
|
try {
|
|
327058
|
-
|
|
327114
|
+
regex3 = new RegExp(pattern, flags2);
|
|
327059
327115
|
} catch (_4) {
|
|
327060
327116
|
}
|
|
327061
|
-
const node2 = this.estreeParseLiteral(
|
|
327117
|
+
const node2 = this.estreeParseLiteral(regex3);
|
|
327062
327118
|
node2.regex = {
|
|
327063
327119
|
pattern,
|
|
327064
327120
|
flags: flags2
|
|
@@ -359860,8 +359916,8 @@ ${error111.stack}`;
|
|
|
359860
359916
|
__name8(confirmAutoConfigDetails, "confirmAutoConfigDetails");
|
|
359861
359917
|
__name(runAutoConfig, "runAutoConfig");
|
|
359862
359918
|
__name8(runAutoConfig, "runAutoConfig");
|
|
359863
|
-
__name(
|
|
359864
|
-
__name8(
|
|
359919
|
+
__name(ensureNodejsCompatIsEnabled, "ensureNodejsCompatIsEnabled");
|
|
359920
|
+
__name8(ensureNodejsCompatIsEnabled, "ensureNodejsCompatIsEnabled");
|
|
359865
359921
|
__name(saveWranglerJsonc, "saveWranglerJsonc");
|
|
359866
359922
|
__name8(saveWranglerJsonc, "saveWranglerJsonc");
|
|
359867
359923
|
__name(buildOperationsSummary, "buildOperationsSummary");
|
|
@@ -381351,18 +381407,18 @@ var require_util12 = __commonJS({
|
|
|
381351
381407
|
var nameChar = nameStartChar + "\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040";
|
|
381352
381408
|
var nameRegexp = "[" + nameStartChar + "][" + nameChar + "]*";
|
|
381353
381409
|
var regexName = new RegExp("^" + nameRegexp + "$");
|
|
381354
|
-
var getAllMatches = /* @__PURE__ */ __name(function(string9,
|
|
381410
|
+
var getAllMatches = /* @__PURE__ */ __name(function(string9, regex3) {
|
|
381355
381411
|
const matches = [];
|
|
381356
|
-
let match4 =
|
|
381412
|
+
let match4 = regex3.exec(string9);
|
|
381357
381413
|
while (match4) {
|
|
381358
381414
|
const allmatches = [];
|
|
381359
|
-
allmatches.startIndex =
|
|
381415
|
+
allmatches.startIndex = regex3.lastIndex - match4[0].length;
|
|
381360
381416
|
const len = match4.length;
|
|
381361
381417
|
for (let index = 0; index < len; index++) {
|
|
381362
381418
|
allmatches.push(match4[index]);
|
|
381363
381419
|
}
|
|
381364
381420
|
matches.push(allmatches);
|
|
381365
|
-
match4 =
|
|
381421
|
+
match4 = regex3.exec(string9);
|
|
381366
381422
|
}
|
|
381367
381423
|
return matches;
|
|
381368
381424
|
}, "getAllMatches");
|
|
@@ -416312,8 +416368,8 @@ function formatActionDescription(action) {
|
|
|
416312
416368
|
}
|
|
416313
416369
|
}
|
|
416314
416370
|
function isValidDate(dateString) {
|
|
416315
|
-
const
|
|
416316
|
-
if (!
|
|
416371
|
+
const regex3 = /^\d{4}-\d{2}-\d{2}$/;
|
|
416372
|
+
if (!regex3.test(dateString)) {
|
|
416317
416373
|
return false;
|
|
416318
416374
|
}
|
|
416319
416375
|
const date11 = /* @__PURE__ */ new Date(`${dateString}T00:00:00.000Z`);
|