wrangler 3.57.1 → 3.58.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.
@@ -477,7 +477,7 @@ var require_util = __commonJS({
477
477
  var { InvalidArgumentError } = require_errors();
478
478
  var { Blob: Blob6 } = require("buffer");
479
479
  var nodeUtil = require("util");
480
- var { stringify } = require("querystring");
480
+ var { stringify: stringify2 } = require("querystring");
481
481
  var { headerNameLowerCasedRecord } = require_constants();
482
482
  var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v2) => Number(v2));
483
483
  function nop() {
@@ -495,7 +495,7 @@ var require_util = __commonJS({
495
495
  if (url4.includes("?") || url4.includes("#")) {
496
496
  throw new Error('Query params cannot be passed when url already contains "?" or "#".');
497
497
  }
498
- const stringified = stringify(queryParams);
498
+ const stringified = stringify2(queryParams);
499
499
  if (stringified) {
500
500
  url4 += "?" + stringified;
501
501
  }
@@ -15494,7 +15494,7 @@ var require_util6 = __commonJS({
15494
15494
  }
15495
15495
  }
15496
15496
  __name(validateCookieMaxAge, "validateCookieMaxAge");
15497
- function stringify(cookie) {
15497
+ function stringify2(cookie) {
15498
15498
  if (cookie.name.length === 0) {
15499
15499
  return null;
15500
15500
  }
@@ -15542,7 +15542,7 @@ var require_util6 = __commonJS({
15542
15542
  }
15543
15543
  return out.join("; ");
15544
15544
  }
15545
- __name(stringify, "stringify");
15545
+ __name(stringify2, "stringify");
15546
15546
  var kHeadersListNode;
15547
15547
  function getHeadersList(headers) {
15548
15548
  if (headers[kHeadersList]) {
@@ -15561,7 +15561,7 @@ var require_util6 = __commonJS({
15561
15561
  __name(getHeadersList, "getHeadersList");
15562
15562
  module3.exports = {
15563
15563
  isCTLExcludingHtab,
15564
- stringify,
15564
+ stringify: stringify2,
15565
15565
  getHeadersList
15566
15566
  };
15567
15567
  }
@@ -15716,7 +15716,7 @@ var require_cookies = __commonJS({
15716
15716
  "use strict";
15717
15717
  init_import_meta_url();
15718
15718
  var { parseSetCookie } = require_parse();
15719
- var { stringify, getHeadersList } = require_util6();
15719
+ var { stringify: stringify2, getHeadersList } = require_util6();
15720
15720
  var { webidl } = require_webidl();
15721
15721
  var { Headers: Headers5 } = require_headers();
15722
15722
  function getCookies(headers) {
@@ -15761,9 +15761,9 @@ var require_cookies = __commonJS({
15761
15761
  webidl.argumentLengthCheck(arguments, 2, { header: "setCookie" });
15762
15762
  webidl.brandCheck(headers, Headers5, { strict: false });
15763
15763
  cookie = webidl.converters.Cookie(cookie);
15764
- const str = stringify(cookie);
15764
+ const str = stringify2(cookie);
15765
15765
  if (str) {
15766
- headers.append("Set-Cookie", stringify(cookie));
15766
+ headers.append("Set-Cookie", stringify2(cookie));
15767
15767
  }
15768
15768
  }
15769
15769
  __name(setCookie, "setCookie");
@@ -53219,18 +53219,18 @@ var require_Box = __commonJS({
53219
53219
  };
53220
53220
  Object.defineProperty(exports2, "__esModule", { value: true });
53221
53221
  var react_1 = __importStar(require_react());
53222
- var Box7 = react_1.forwardRef((_a2, ref) => {
53222
+ var Box6 = react_1.forwardRef((_a2, ref) => {
53223
53223
  var { children } = _a2, style = __rest(_a2, ["children"]);
53224
53224
  const transformedStyle = Object.assign(Object.assign({}, style), { marginLeft: style.marginLeft || style.marginX || style.margin || 0, marginRight: style.marginRight || style.marginX || style.margin || 0, marginTop: style.marginTop || style.marginY || style.margin || 0, marginBottom: style.marginBottom || style.marginY || style.margin || 0, paddingLeft: style.paddingLeft || style.paddingX || style.padding || 0, paddingRight: style.paddingRight || style.paddingX || style.padding || 0, paddingTop: style.paddingTop || style.paddingY || style.padding || 0, paddingBottom: style.paddingBottom || style.paddingY || style.padding || 0 });
53225
53225
  return react_1.default.createElement("ink-box", { ref, style: transformedStyle }, children);
53226
53226
  });
53227
- Box7.displayName = "Box";
53228
- Box7.defaultProps = {
53227
+ Box6.displayName = "Box";
53228
+ Box6.defaultProps = {
53229
53229
  flexDirection: "row",
53230
53230
  flexGrow: 0,
53231
53231
  flexShrink: 1
53232
53232
  };
53233
- exports2.default = Box7;
53233
+ exports2.default = Box6;
53234
53234
  }
53235
53235
  });
53236
53236
 
@@ -53246,7 +53246,7 @@ var require_Text = __commonJS({
53246
53246
  var react_1 = __importDefault(require_react());
53247
53247
  var chalk_1 = __importDefault(require_source());
53248
53248
  var colorize_1 = __importDefault(require_colorize());
53249
- var Text12 = /* @__PURE__ */ __name(({ color, backgroundColor, dimColor, bold: bold2, italic, underline, strikethrough, inverse, wrap: wrap4, children }) => {
53249
+ var Text11 = /* @__PURE__ */ __name(({ color, backgroundColor, dimColor, bold: bold2, italic, underline, strikethrough, inverse, wrap: wrap4, children }) => {
53250
53250
  if (children === void 0 || children === null) {
53251
53251
  return null;
53252
53252
  }
@@ -53279,8 +53279,8 @@ var require_Text = __commonJS({
53279
53279
  }, "transform");
53280
53280
  return react_1.default.createElement("ink-text", { style: { flexGrow: 0, flexShrink: 1, flexDirection: "row", textWrap: wrap4 }, internal_transform: transform }, children);
53281
53281
  }, "Text");
53282
- Text12.displayName = "Text";
53283
- Text12.defaultProps = {
53282
+ Text11.displayName = "Text";
53283
+ Text11.defaultProps = {
53284
53284
  dimColor: false,
53285
53285
  bold: false,
53286
53286
  italic: false,
@@ -53288,7 +53288,7 @@ var require_Text = __commonJS({
53288
53288
  strikethrough: false,
53289
53289
  wrap: "wrap"
53290
53290
  };
53291
- exports2.default = Text12;
53291
+ exports2.default = Text11;
53292
53292
  }
53293
53293
  });
53294
53294
 
@@ -60263,9 +60263,9 @@ var require_stringify = __commonJS({
60263
60263
  "../../node_modules/.pnpm/@iarna+toml@3.0.0/node_modules/@iarna/toml/stringify.js"(exports2, module3) {
60264
60264
  "use strict";
60265
60265
  init_import_meta_url();
60266
- module3.exports = stringify;
60266
+ module3.exports = stringify2;
60267
60267
  module3.exports.value = stringifyInline;
60268
- function stringify(obj) {
60268
+ function stringify2(obj) {
60269
60269
  if (obj === null)
60270
60270
  throw typeError("null");
60271
60271
  if (obj === void 0)
@@ -60281,7 +60281,7 @@ var require_stringify = __commonJS({
60281
60281
  throw typeError(type);
60282
60282
  return stringifyObject("", "", obj);
60283
60283
  }
60284
- __name(stringify, "stringify");
60284
+ __name(stringify2, "stringify");
60285
60285
  function typeError(type) {
60286
60286
  return new Error("Can only stringify objects, not " + type);
60287
60287
  }
@@ -86841,7 +86841,7 @@ var require_stringify2 = __commonJS({
86841
86841
  return typeof v2 === "string" || typeof v2 === "number" || typeof v2 === "boolean" || typeof v2 === "symbol" || typeof v2 === "bigint";
86842
86842
  }, "isNonNullishPrimitive");
86843
86843
  var sentinel = {};
86844
- var stringify = /* @__PURE__ */ __name(function stringify2(object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format10, formatter, encodeValuesOnly, charset, sideChannel) {
86844
+ var stringify2 = /* @__PURE__ */ __name(function stringify3(object, prefix, generateArrayPrefix, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format10, formatter, encodeValuesOnly, charset, sideChannel) {
86845
86845
  var obj = object;
86846
86846
  var tmpSc = sideChannel;
86847
86847
  var step = 0;
@@ -86916,7 +86916,7 @@ var require_stringify2 = __commonJS({
86916
86916
  sideChannel.set(object, step);
86917
86917
  var valueSideChannel = getSideChannel();
86918
86918
  valueSideChannel.set(sentinel, sideChannel);
86919
- pushToArray(values, stringify2(
86919
+ pushToArray(values, stringify3(
86920
86920
  value,
86921
86921
  keyPrefix,
86922
86922
  generateArrayPrefix,
@@ -87014,7 +87014,7 @@ var require_stringify2 = __commonJS({
87014
87014
  if (options29.skipNulls && obj[key] === null) {
87015
87015
  continue;
87016
87016
  }
87017
- pushToArray(keys, stringify(
87017
+ pushToArray(keys, stringify2(
87018
87018
  obj[key],
87019
87019
  key,
87020
87020
  generateArrayPrefix,
@@ -87254,13 +87254,13 @@ var require_lib3 = __commonJS({
87254
87254
  "../../node_modules/.pnpm/qs@6.10.3/node_modules/qs/lib/index.js"(exports2, module3) {
87255
87255
  "use strict";
87256
87256
  init_import_meta_url();
87257
- var stringify = require_stringify2();
87257
+ var stringify2 = require_stringify2();
87258
87258
  var parse7 = require_parse4();
87259
87259
  var formats = require_formats();
87260
87260
  module3.exports = {
87261
87261
  formats,
87262
87262
  parse: parse7,
87263
- stringify
87263
+ stringify: stringify2
87264
87264
  };
87265
87265
  }
87266
87266
  });
@@ -92471,7 +92471,7 @@ var require_response2 = __commonJS({
92471
92471
  var escape2 = app.get("json escape");
92472
92472
  var replacer2 = app.get("json replacer");
92473
92473
  var spaces = app.get("json spaces");
92474
- var body = stringify(val, replacer2, spaces, escape2);
92474
+ var body = stringify2(val, replacer2, spaces, escape2);
92475
92475
  if (!this.get("Content-Type")) {
92476
92476
  this.set("Content-Type", "application/json");
92477
92477
  }
@@ -92493,7 +92493,7 @@ var require_response2 = __commonJS({
92493
92493
  var escape2 = app.get("json escape");
92494
92494
  var replacer2 = app.get("json replacer");
92495
92495
  var spaces = app.get("json spaces");
92496
- var body = stringify(val, replacer2, spaces, escape2);
92496
+ var body = stringify2(val, replacer2, spaces, escape2);
92497
92497
  var callback = this.req.query[app.get("jsonp callback name")];
92498
92498
  if (!this.get("Content-Type")) {
92499
92499
  this.set("X-Content-Type-Options", "nosniff");
@@ -92851,7 +92851,7 @@ var require_response2 = __commonJS({
92851
92851
  file.pipe(res2);
92852
92852
  }
92853
92853
  __name(sendfile, "sendfile");
92854
- function stringify(value, replacer2, spaces, escape2) {
92854
+ function stringify2(value, replacer2, spaces, escape2) {
92855
92855
  var json = replacer2 || spaces ? JSON.stringify(value, replacer2, spaces) : JSON.stringify(value);
92856
92856
  if (escape2 && typeof json === "string") {
92857
92857
  json = json.replace(/[<>&]/g, function(c2) {
@@ -92869,7 +92869,7 @@ var require_response2 = __commonJS({
92869
92869
  }
92870
92870
  return json;
92871
92871
  }
92872
- __name(stringify, "stringify");
92872
+ __name(stringify2, "stringify");
92873
92873
  }
92874
92874
  });
92875
92875
 
@@ -95043,7 +95043,7 @@ var require_fast_json_stable_stringify = __commonJS({
95043
95043
  };
95044
95044
  }(opts.cmp);
95045
95045
  var seen = [];
95046
- return (/* @__PURE__ */ __name(function stringify(node2) {
95046
+ return (/* @__PURE__ */ __name(function stringify2(node2) {
95047
95047
  if (node2 && node2.toJSON && typeof node2.toJSON === "function") {
95048
95048
  node2 = node2.toJSON();
95049
95049
  }
@@ -95059,7 +95059,7 @@ var require_fast_json_stable_stringify = __commonJS({
95059
95059
  for (i = 0; i < node2.length; i++) {
95060
95060
  if (i)
95061
95061
  out += ",";
95062
- out += stringify(node2[i]) || "null";
95062
+ out += stringify2(node2[i]) || "null";
95063
95063
  }
95064
95064
  return out + "]";
95065
95065
  }
@@ -95075,7 +95075,7 @@ var require_fast_json_stable_stringify = __commonJS({
95075
95075
  out = "";
95076
95076
  for (i = 0; i < keys.length; i++) {
95077
95077
  var key = keys[i];
95078
- var value = stringify(node2[key]);
95078
+ var value = stringify2(node2[key]);
95079
95079
  if (!value)
95080
95080
  continue;
95081
95081
  if (out)
@@ -103322,10 +103322,10 @@ function $asStringSmall (str) {
103322
103322
  var require_fast_safe_stringify = __commonJS({
103323
103323
  "../../node_modules/.pnpm/fast-safe-stringify@2.1.1/node_modules/fast-safe-stringify/index.js"(exports2, module3) {
103324
103324
  init_import_meta_url();
103325
- module3.exports = stringify;
103326
- stringify.default = stringify;
103327
- stringify.stable = deterministicStringify;
103328
- stringify.stableStringify = deterministicStringify;
103325
+ module3.exports = stringify2;
103326
+ stringify2.default = stringify2;
103327
+ stringify2.stable = deterministicStringify;
103328
+ stringify2.stableStringify = deterministicStringify;
103329
103329
  var LIMIT_REPLACE_NODE = "[...]";
103330
103330
  var CIRCULAR_REPLACE_NODE = "[Circular]";
103331
103331
  var arr = [];
@@ -103337,7 +103337,7 @@ var require_fast_safe_stringify = __commonJS({
103337
103337
  };
103338
103338
  }
103339
103339
  __name(defaultOptions, "defaultOptions");
103340
- function stringify(obj, replacer2, spacer, options29) {
103340
+ function stringify2(obj, replacer2, spacer, options29) {
103341
103341
  if (typeof options29 === "undefined") {
103342
103342
  options29 = defaultOptions();
103343
103343
  }
@@ -103363,7 +103363,7 @@ var require_fast_safe_stringify = __commonJS({
103363
103363
  }
103364
103364
  return res;
103365
103365
  }
103366
- __name(stringify, "stringify");
103366
+ __name(stringify2, "stringify");
103367
103367
  function setReplace(replace, val, k2, parent) {
103368
103368
  var propertyDescriptor = Object.getOwnPropertyDescriptor(parent, k2);
103369
103369
  if (propertyDescriptor.get !== void 0) {
@@ -112176,7 +112176,7 @@ var require_util12 = __commonJS({
112176
112176
  var { InvalidArgumentError } = require_errors2();
112177
112177
  var { Blob: Blob6 } = require("buffer");
112178
112178
  var nodeUtil = require("util");
112179
- var { stringify } = require("querystring");
112179
+ var { stringify: stringify2 } = require("querystring");
112180
112180
  var [nodeMajor, nodeMinor] = process.versions.node.split(".").map((v2) => Number(v2));
112181
112181
  function nop() {
112182
112182
  }
@@ -112193,7 +112193,7 @@ var require_util12 = __commonJS({
112193
112193
  if (url4.includes("?") || url4.includes("#")) {
112194
112194
  throw new Error('Query params cannot be passed when url already contains "?" or "#".');
112195
112195
  }
112196
- const stringified = stringify(queryParams);
112196
+ const stringified = stringify2(queryParams);
112197
112197
  if (stringified) {
112198
112198
  url4 += "?" + stringified;
112199
112199
  }
@@ -125116,7 +125116,7 @@ var require_util17 = __commonJS({
125116
125116
  }
125117
125117
  }
125118
125118
  __name(validateCookieMaxAge, "validateCookieMaxAge");
125119
- function stringify(cookie) {
125119
+ function stringify2(cookie) {
125120
125120
  if (cookie.name.length === 0) {
125121
125121
  return null;
125122
125122
  }
@@ -125164,7 +125164,7 @@ var require_util17 = __commonJS({
125164
125164
  }
125165
125165
  return out.join("; ");
125166
125166
  }
125167
- __name(stringify, "stringify");
125167
+ __name(stringify2, "stringify");
125168
125168
  var kHeadersListNode;
125169
125169
  function getHeadersList(headers) {
125170
125170
  if (headers[kHeadersList]) {
@@ -125183,7 +125183,7 @@ var require_util17 = __commonJS({
125183
125183
  __name(getHeadersList, "getHeadersList");
125184
125184
  module3.exports = {
125185
125185
  isCTLExcludingHtab,
125186
- stringify,
125186
+ stringify: stringify2,
125187
125187
  getHeadersList
125188
125188
  };
125189
125189
  }
@@ -125338,7 +125338,7 @@ var require_cookies2 = __commonJS({
125338
125338
  "use strict";
125339
125339
  init_import_meta_url();
125340
125340
  var { parseSetCookie } = require_parse7();
125341
- var { stringify, getHeadersList } = require_util17();
125341
+ var { stringify: stringify2, getHeadersList } = require_util17();
125342
125342
  var { webidl } = require_webidl2();
125343
125343
  var { Headers: Headers5 } = require_headers2();
125344
125344
  function getCookies(headers) {
@@ -125383,9 +125383,9 @@ var require_cookies2 = __commonJS({
125383
125383
  webidl.argumentLengthCheck(arguments, 2, { header: "setCookie" });
125384
125384
  webidl.brandCheck(headers, Headers5, { strict: false });
125385
125385
  cookie = webidl.converters.Cookie(cookie);
125386
- const str = stringify(cookie);
125386
+ const str = stringify2(cookie);
125387
125387
  if (str) {
125388
- headers.append("Set-Cookie", stringify(cookie));
125388
+ headers.append("Set-Cookie", stringify2(cookie));
125389
125389
  }
125390
125390
  }
125391
125391
  __name(setCookie, "setCookie");
@@ -133938,9 +133938,9 @@ var require_stringify3 = __commonJS({
133938
133938
  "../../node_modules/.pnpm/@iarna+toml@2.2.5/node_modules/@iarna/toml/stringify.js"(exports2, module3) {
133939
133939
  "use strict";
133940
133940
  init_import_meta_url();
133941
- module3.exports = stringify;
133941
+ module3.exports = stringify2;
133942
133942
  module3.exports.value = stringifyInline;
133943
- function stringify(obj) {
133943
+ function stringify2(obj) {
133944
133944
  if (obj === null)
133945
133945
  throw typeError("null");
133946
133946
  if (obj === void 0)
@@ -133956,7 +133956,7 @@ var require_stringify3 = __commonJS({
133956
133956
  throw typeError(type);
133957
133957
  return stringifyObject("", "", obj);
133958
133958
  }
133959
- __name(stringify, "stringify");
133959
+ __name(stringify2, "stringify");
133960
133960
  function typeError(type) {
133961
133961
  return new Error("Can only stringify objects, not " + type);
133962
133962
  }
@@ -139695,7 +139695,14 @@ async function generateHandler({
139695
139695
  if (responseWithoutHeaders.status >= 500) {
139696
139696
  return responseWithoutHeaders;
139697
139697
  }
139698
- return await attachHeaders(responseWithoutHeaders);
139698
+ const responseWithHeaders = await attachHeaders(responseWithoutHeaders);
139699
+ if (responseWithHeaders.status === 404) {
139700
+ if (responseWithHeaders.headers.has("cache-control")) {
139701
+ responseWithHeaders.headers.delete("cache-control");
139702
+ }
139703
+ responseWithHeaders.headers.append("cache-control", "no-store");
139704
+ }
139705
+ return responseWithHeaders;
139699
139706
  async function serveAsset(servingAssetEntry, options29 = { preserve: true }) {
139700
139707
  let content;
139701
139708
  try {
@@ -141079,10 +141086,10 @@ var require_Indicator = __commonJS({
141079
141086
  "use strict";
141080
141087
  init_import_meta_url();
141081
141088
  Object.defineProperty(exports2, "__esModule", { value: true });
141082
- var React19 = require_react();
141089
+ var React18 = require_react();
141083
141090
  var ink_1 = require_build2();
141084
141091
  var figures = require_figures3();
141085
- var Indicator = /* @__PURE__ */ __name(({ isSelected = false }) => React19.createElement(ink_1.Box, { marginRight: 1 }, isSelected ? React19.createElement(ink_1.Text, { color: "blue" }, figures.pointer) : React19.createElement(ink_1.Text, null, " ")), "Indicator");
141092
+ var Indicator = /* @__PURE__ */ __name(({ isSelected = false }) => React18.createElement(ink_1.Box, { marginRight: 1 }, isSelected ? React18.createElement(ink_1.Text, { color: "blue" }, figures.pointer) : React18.createElement(ink_1.Text, null, " ")), "Indicator");
141086
141093
  exports2.default = Indicator;
141087
141094
  }
141088
141095
  });
@@ -141093,9 +141100,9 @@ var require_Item = __commonJS({
141093
141100
  "use strict";
141094
141101
  init_import_meta_url();
141095
141102
  Object.defineProperty(exports2, "__esModule", { value: true });
141096
- var React19 = require_react();
141103
+ var React18 = require_react();
141097
141104
  var ink_1 = require_build2();
141098
- var Item = /* @__PURE__ */ __name(({ isSelected = false, label }) => React19.createElement(ink_1.Text, { color: isSelected ? "blue" : void 0 }, label), "Item");
141105
+ var Item = /* @__PURE__ */ __name(({ isSelected = false, label }) => React18.createElement(ink_1.Text, { color: isSelected ? "blue" : void 0 }, label), "Item");
141099
141106
  exports2.default = Item;
141100
141107
  }
141101
141108
  });
@@ -141106,7 +141113,7 @@ var require_SelectInput = __commonJS({
141106
141113
  "use strict";
141107
141114
  init_import_meta_url();
141108
141115
  Object.defineProperty(exports2, "__esModule", { value: true });
141109
- var React19 = require_react();
141116
+ var React18 = require_react();
141110
141117
  var react_1 = require_react();
141111
141118
  var isEqual = require_lodash2();
141112
141119
  var arrayRotate = require_arr_rotate();
@@ -141168,14 +141175,14 @@ var require_SelectInput = __commonJS({
141168
141175
  onHighlight
141169
141176
  ]), { isActive: isFocused });
141170
141177
  const slicedItems = hasLimit ? arrayRotate(items, rotateIndex).slice(0, limit) : items;
141171
- return React19.createElement(ink_1.Box, { flexDirection: "column" }, slicedItems.map((item, index) => {
141178
+ return React18.createElement(ink_1.Box, { flexDirection: "column" }, slicedItems.map((item, index) => {
141172
141179
  var _a2;
141173
141180
  const isSelected = index === selectedIndex;
141174
- return React19.createElement(
141181
+ return React18.createElement(
141175
141182
  ink_1.Box,
141176
141183
  { key: (_a2 = item.key) !== null && _a2 !== void 0 ? _a2 : item.value },
141177
- React19.createElement(indicatorComponent, { isSelected }),
141178
- React19.createElement(itemComponent, { ...item, isSelected })
141184
+ React18.createElement(indicatorComponent, { isSelected }),
141185
+ React18.createElement(itemComponent, { ...item, isSelected })
141179
141186
  );
141180
141187
  }));
141181
141188
  }
@@ -144043,7 +144050,7 @@ var require_build4 = __commonJS({
144043
144050
  "use strict";
144044
144051
  init_import_meta_url();
144045
144052
  Object.defineProperty(exports2, "__esModule", { value: true });
144046
- var React19 = require_react();
144053
+ var React18 = require_react();
144047
144054
  var react_1 = require_react();
144048
144055
  var ink_1 = require_build2();
144049
144056
  var spinners = require_cli_spinners();
@@ -144061,7 +144068,7 @@ var require_build4 = __commonJS({
144061
144068
  clearInterval(timer);
144062
144069
  };
144063
144070
  }, [spinner2]);
144064
- return React19.createElement(ink_1.Text, null, spinner2.frames[frame]);
144071
+ return React18.createElement(ink_1.Text, null, spinner2.frames[frame]);
144065
144072
  }, "Spinner");
144066
144073
  exports2.default = Spinner2;
144067
144074
  }
@@ -150169,6 +150176,7 @@ __export(cli_exports2, {
150169
150176
  getPlatformProxy: () => getPlatformProxy,
150170
150177
  unstable_DevEnv: () => DevEnv,
150171
150178
  unstable_dev: () => unstable_dev,
150179
+ unstable_generateASSETSBinding: () => generateASSETSBinding2,
150172
150180
  unstable_getMiniflareWorkerOptions: () => unstable_getMiniflareWorkerOptions,
150173
150181
  unstable_pages: () => unstable_pages,
150174
150182
  unstable_splitSqlQuery: () => splitSqlQuery,
@@ -152025,8 +152033,8 @@ async function getPorts(options29) {
152025
152033
  __name(getPorts, "getPorts");
152026
152034
 
152027
152035
  // src/dev.tsx
152028
- var import_ink14 = __toESM(require_build2());
152029
- var import_react20 = __toESM(require_react());
152036
+ var import_ink13 = __toESM(require_build2());
152037
+ var import_react19 = __toESM(require_react());
152030
152038
 
152031
152039
  // src/config/index.ts
152032
152040
  init_import_meta_url();
@@ -152598,7 +152606,7 @@ var Logger = class {
152598
152606
  }
152599
152607
  doLog(messageLevel, args) {
152600
152608
  const message = this.formatMessage(messageLevel, (0, import_node_util.format)(...args));
152601
- const inUnitTests = typeof jest !== "undefined";
152609
+ const inUnitTests = typeof vitest !== "undefined";
152602
152610
  if (!inUnitTests) {
152603
152611
  void appendToDebugLogFile(messageLevel, message);
152604
152612
  }
@@ -152646,7 +152654,7 @@ init_import_meta_url();
152646
152654
  init_import_meta_url();
152647
152655
 
152648
152656
  // package.json
152649
- var version = "3.57.1";
152657
+ var version = "3.58.0";
152650
152658
  var package_default = {
152651
152659
  name: "wrangler",
152652
152660
  version,
@@ -152696,7 +152704,6 @@ var package_default = {
152696
152704
  "wrangler-dist",
152697
152705
  "templates",
152698
152706
  "kv-asset-handler.js",
152699
- "Cloudflare_CA.pem",
152700
152707
  "config-schema.json"
152701
152708
  ],
152702
152709
  scripts: {
@@ -152711,41 +152718,13 @@ var package_default = {
152711
152718
  "generate-json-schema": "pnpm exec ts-json-schema-generator --no-type-check --path src/config/config.ts --type RawConfig --out config-schema.json",
152712
152719
  prepublishOnly: "SOURCEMAPS=false pnpm run -w build",
152713
152720
  start: "pnpm run bundle && cross-env NODE_OPTIONS=--enable-source-maps ./bin/wrangler.js",
152714
- test: "pnpm run assert-git-version && jest",
152715
- "test:ci": "pnpm run test",
152721
+ test: "pnpm run assert-git-version && vitest",
152722
+ "test:ci": "pnpm run test run",
152716
152723
  "test:debug": "pnpm run test --silent=false --verbose=true",
152717
152724
  "test:e2e": "vitest -c ./e2e/vitest.config.ts",
152718
152725
  "test:watch": "pnpm run test --testTimeout=50000 --watch",
152719
152726
  "type:tests": "tsc -p ./src/__tests__/tsconfig.json && tsc -p ./e2e/tsconfig.json"
152720
152727
  },
152721
- jest: {
152722
- moduleNameMapper: {
152723
- clipboardy: "<rootDir>/src/__tests__/helpers/clipboardy-mock.js",
152724
- "miniflare/cli": "<rootDir>/../../node_modules/miniflare/dist/src/cli.js"
152725
- },
152726
- restoreMocks: true,
152727
- setupFilesAfterEnv: [
152728
- "<rootDir>/src/__tests__/jest.setup.ts"
152729
- ],
152730
- testRegex: "src/__tests__/.*\\.(test|spec)\\.[jt]sx?$",
152731
- testTimeout: 5e4,
152732
- transform: {
152733
- "^.+\\.c?(t|j)sx?$": [
152734
- "esbuild-jest",
152735
- {
152736
- sourcemap: true
152737
- }
152738
- ]
152739
- },
152740
- transformIgnorePatterns: [
152741
- "node_modules/.pnpm/(?!find-up|locate-path|p-locate|p-limit|p-timeout|p-queue|yocto-queue|path-exists|execa|strip-final-newline|npm-run-path|path-key|onetime|mimic-fn|human-signals|is-stream|get-port|supports-color|pretty-bytes|strip-ansi|ansi-regex)"
152742
- ],
152743
- snapshotFormat: {
152744
- escapeString: true,
152745
- printBasicPrototype: true
152746
- },
152747
- prettierPath: null
152748
- },
152749
152728
  dependencies: {
152750
152729
  "@cloudflare/kv-asset-handler": "workspace:*",
152751
152730
  "@esbuild-plugins/node-globals-polyfill": "^0.2.3",
@@ -152768,7 +152747,7 @@ var package_default = {
152768
152747
  "@cloudflare/pages-shared": "workspace:^",
152769
152748
  "@cloudflare/types": "^6.18.4",
152770
152749
  "@cloudflare/workers-tsconfig": "workspace:*",
152771
- "@cloudflare/workers-types": "^4.20240512.0",
152750
+ "@cloudflare/workers-types": "^4.20240524.0",
152772
152751
  "@cspotcode/source-map-support": "0.8.1",
152773
152752
  "@iarna/toml": "^3.0.0",
152774
152753
  "@microsoft/api-extractor": "^7.28.3",
@@ -152781,7 +152760,6 @@ var package_default = {
152781
152760
  "@types/glob-to-regexp": "0.4.1",
152782
152761
  "@types/is-ci": "^3.0.0",
152783
152762
  "@types/javascript-time-ago": "^2.0.3",
152784
- "@types/jest": "^29.5.5",
152785
152763
  "@types/mime": "^2.0.3",
152786
152764
  "@types/minimatch": "^5.1.2",
152787
152765
  "@types/prompts": "^2.0.14",
@@ -152805,7 +152783,6 @@ var package_default = {
152805
152783
  "devtools-protocol": "^0.0.955664",
152806
152784
  dotenv: "^16.0.0",
152807
152785
  "es-module-lexer": "^1.3.0",
152808
- "esbuild-jest": "0.5.0",
152809
152786
  execa: "^6.1.0",
152810
152787
  express: "^4.18.1",
152811
152788
  "find-up": "^6.3.0",
@@ -152820,13 +152797,11 @@ var package_default = {
152820
152797
  "ink-table": "^3.0.0",
152821
152798
  "is-ci": "^3.0.1",
152822
152799
  "javascript-time-ago": "^2.5.4",
152823
- jest: "^29.7.0",
152824
- "jest-fetch-mock": "^3.0.3",
152825
- "jest-websocket-mock": "^2.5.0",
152826
152800
  "md5-file": "5.0.0",
152827
152801
  mime: "^3.0.0",
152828
152802
  minimatch: "^5.1.0",
152829
- msw: "^0.49.1",
152803
+ "mock-socket": "^9.3.1",
152804
+ msw: "^2.3.0",
152830
152805
  open: "^8.4.0",
152831
152806
  "p-queue": "^7.2.0",
152832
152807
  "patch-console": "^1.0.0",
@@ -152848,6 +152823,7 @@ var package_default = {
152848
152823
  undici: "5.28.4",
152849
152824
  "update-check": "^1.5.4",
152850
152825
  vitest: "^1.6.0",
152826
+ "vitest-websocket-mock": "^0.3.0",
152851
152827
  ws: "^8.5.0",
152852
152828
  "xdg-app-paths": "^8.3.0",
152853
152829
  yargs: "^17.7.2",
@@ -152857,7 +152833,7 @@ var package_default = {
152857
152833
  fsevents: "~2.3.2"
152858
152834
  },
152859
152835
  peerDependencies: {
152860
- "@cloudflare/workers-types": "^4.20240512.0"
152836
+ "@cloudflare/workers-types": "^4.20240524.0"
152861
152837
  },
152862
152838
  peerDependenciesMeta: {
152863
152839
  "@cloudflare/workers-types": {
@@ -153985,6 +153961,7 @@ var ParseError = class extends UserError {
153985
153961
  __name(ParseError, "ParseError");
153986
153962
  var APIError = class extends ParseError {
153987
153963
  #status;
153964
+ code;
153988
153965
  constructor({ status: status2, ...rest }) {
153989
153966
  super(rest);
153990
153967
  this.name = this.constructor.name;
@@ -154614,7 +154591,7 @@ function getAuthFromEnv() {
154614
154591
  }
154615
154592
  }
154616
154593
  __name(getAuthFromEnv, "getAuthFromEnv");
154617
- var USER_AUTH_CONFIG_FILE = "config/default.toml";
154594
+ var USER_AUTH_CONFIG_PATH = "config";
154618
154595
  var DefaultScopes = {
154619
154596
  "account:read": "See your account info such as account details, analytics, and memberships.",
154620
154597
  "user:read": "See your user info such as name, email address, and account memberships.",
@@ -155013,28 +154990,25 @@ async function generatePKCECodes() {
155013
154990
  return { codeChallenge, codeVerifier };
155014
154991
  }
155015
154992
  __name(generatePKCECodes, "generatePKCECodes");
154993
+ function getAuthConfigFilePath() {
154994
+ const environment = getCloudflareApiEnvironmentFromEnv();
154995
+ const filePath = `${USER_AUTH_CONFIG_PATH}/${environment === "production" ? "default.toml" : `${environment}.toml`}`;
154996
+ return import_node_path6.default.join(getGlobalWranglerConfigPath(), filePath);
154997
+ }
154998
+ __name(getAuthConfigFilePath, "getAuthConfigFilePath");
155016
154999
  function writeAuthConfigFile(config) {
155017
- const authConfigFilePath = import_node_path6.default.join(
155018
- getGlobalWranglerConfigPath(),
155019
- USER_AUTH_CONFIG_FILE
155020
- );
155021
- (0, import_node_fs3.mkdirSync)(import_node_path6.default.dirname(authConfigFilePath), {
155000
+ const configPath = getAuthConfigFilePath();
155001
+ (0, import_node_fs3.mkdirSync)(import_node_path6.default.dirname(configPath), {
155022
155002
  recursive: true
155023
155003
  });
155024
- (0, import_node_fs3.writeFileSync)(
155025
- import_node_path6.default.join(authConfigFilePath),
155026
- import_toml2.default.stringify(config),
155027
- { encoding: "utf-8" }
155028
- );
155004
+ (0, import_node_fs3.writeFileSync)(import_node_path6.default.join(configPath), import_toml2.default.stringify(config), {
155005
+ encoding: "utf-8"
155006
+ });
155029
155007
  reinitialiseAuthTokens();
155030
155008
  }
155031
155009
  __name(writeAuthConfigFile, "writeAuthConfigFile");
155032
155010
  function readAuthConfigFile() {
155033
- const authConfigFilePath = import_node_path6.default.join(
155034
- getGlobalWranglerConfigPath(),
155035
- USER_AUTH_CONFIG_FILE
155036
- );
155037
- const toml = parseTOML(readFileSync5(authConfigFilePath));
155011
+ const toml = parseTOML(readFileSync5(getAuthConfigFilePath()));
155038
155012
  return toml;
155039
155013
  }
155040
155014
  __name(readAuthConfigFile, "readAuthConfigFile");
@@ -155199,7 +155173,7 @@ async function logout() {
155199
155173
  }
155200
155174
  });
155201
155175
  await response.text();
155202
- (0, import_node_fs3.rmSync)(import_node_path6.default.join(getGlobalWranglerConfigPath(), USER_AUTH_CONFIG_FILE));
155176
+ (0, import_node_fs3.rmSync)(getAuthConfigFilePath());
155203
155177
  logger.log(`Successfully logged out.`);
155204
155178
  }
155205
155179
  __name(logout, "logout");
@@ -155585,6 +155559,9 @@ function hasMorePages(result_info) {
155585
155559
  }
155586
155560
  __name(hasMorePages, "hasMorePages");
155587
155561
  function throwFetchError(resource, response) {
155562
+ if (typeof vitest !== "undefined" && !("errors" in response)) {
155563
+ throw response;
155564
+ }
155588
155565
  for (const error3 of response.errors) {
155589
155566
  maybeThrowFriendlyError(error3);
155590
155567
  }
@@ -159258,20 +159235,20 @@ async function applyMiddlewareLoaderFacade(entry, tmpDirPath, middleware) {
159258
159235
  )}";`
159259
159236
  )
159260
159237
  ).join("\n");
159261
- const middlewareFns = middlewareIdentifiers.map(([m2]) => `${m2}.default`);
159238
+ const middlewareFns = middlewareIdentifiers.map(([m2]) => `${m2}.default`).join(",");
159262
159239
  if (entry.format === "modules") {
159263
159240
  await fs6.promises.writeFile(
159264
159241
  dynamicFacadePath,
159265
159242
  dedent`
159266
159243
  import worker, * as OTHER_EXPORTS from "${prepareFilePath(entry.file)}";
159267
159244
  ${imports}
159268
-
159269
- worker.middleware = [
159270
- ${middlewareFns.join(",")},
159271
- ...(worker.middleware ?? []),
159272
- ].filter(Boolean);
159273
-
159245
+
159274
159246
  export * from "${prepareFilePath(entry.file)}";
159247
+
159248
+ export const __INTERNAL_WRANGLER_MIDDLEWARE__ = [
159249
+ ...(OTHER_EXPORTS.__INJECT_FOR_TESTING_WRANGLER_MIDDLEWARE__ ?? []),
159250
+ ${middlewareFns}
159251
+ ]
159275
159252
  export default worker;
159276
159253
  `
159277
159254
  );
@@ -160756,8 +160733,8 @@ var clipboardy_default = clipboard5;
160756
160733
 
160757
160734
  // src/dev/dev.tsx
160758
160735
  var import_command_exists2 = __toESM(require_command_exists2());
160759
- var import_ink13 = __toESM(require_build2());
160760
- var import_react19 = __toESM(require_react());
160736
+ var import_ink12 = __toESM(require_build2());
160737
+ var import_react18 = __toESM(require_react());
160761
160738
 
160762
160739
  // ../../node_modules/.pnpm/react-error-boundary@3.1.4_react@17.0.2/node_modules/react-error-boundary/dist/react-error-boundary.esm.js
160763
160740
  init_import_meta_url();
@@ -162531,8 +162508,8 @@ async function localPropsToConfigBundle(props) {
162531
162508
  (0, import_node_assert10.default)(props.bundle !== void 0);
162532
162509
  const serviceBindings = {};
162533
162510
  if (props.enablePagesAssetsServiceBinding !== void 0) {
162534
- const generateASSETSBinding2 = (init_assets(), __toCommonJS(assets_exports)).default;
162535
- serviceBindings.ASSETS = await generateASSETSBinding2({
162511
+ const generateASSETSBinding3 = (init_assets(), __toCommonJS(assets_exports)).default;
162512
+ serviceBindings.ASSETS = await generateASSETSBinding3({
162536
162513
  log: logger,
162537
162514
  ...props.enablePagesAssetsServiceBinding
162538
162515
  });
@@ -162700,9 +162677,9 @@ __name(useLocalWorker, "useLocalWorker");
162700
162677
  // src/dev/remote.tsx
162701
162678
  init_import_meta_url();
162702
162679
  var import_node_path54 = __toESM(require("node:path"));
162703
- var import_ink11 = __toESM(require_build2());
162680
+ var import_ink10 = __toESM(require_build2());
162704
162681
  var import_ink_select_input3 = __toESM(require_build3());
162705
- var import_react17 = __toESM(require_react());
162682
+ var import_react16 = __toESM(require_react());
162706
162683
 
162707
162684
  // src/deploy/deploy.ts
162708
162685
  init_import_meta_url();
@@ -163247,7 +163224,7 @@ __name(stripPrefix, "stripPrefix");
163247
163224
  // src/deployments.ts
163248
163225
  init_import_meta_url();
163249
163226
  var import_url8 = require("url");
163250
- var import_toml7 = __toESM(require_toml());
163227
+ var import_toml8 = __toESM(require_toml());
163251
163228
  var import_chalk19 = __toESM(require_chalk());
163252
163229
  var import_undici23 = __toESM(require_undici());
163253
163230
 
@@ -163256,7 +163233,7 @@ init_import_meta_url();
163256
163233
  var fs26 = __toESM(require("node:fs"));
163257
163234
  var import_promises20 = require("node:fs/promises");
163258
163235
  var import_node_path52 = __toESM(require("node:path"));
163259
- var import_toml6 = __toESM(require_toml());
163236
+ var import_toml7 = __toESM(require_toml());
163260
163237
  init_execa();
163261
163238
 
163262
163239
  // src/git-client.ts
@@ -163578,7 +163555,7 @@ __name(parse6, "parse");
163578
163555
  init_import_meta_url();
163579
163556
  var import_node_module3 = __toESM(require("node:module"));
163580
163557
  var import_node_os8 = __toESM(require("node:os"));
163581
- var import_toml5 = __toESM(require_toml());
163558
+ var import_toml6 = __toESM(require_toml());
163582
163559
  var import_chalk18 = __toESM(require_chalk());
163583
163560
  var import_undici22 = __toESM(require_undici());
163584
163561
 
@@ -175250,7 +175227,8 @@ function prettyBytes(number, options29) {
175250
175227
  __name(prettyBytes, "prettyBytes");
175251
175228
 
175252
175229
  // src/d1/formatTimeAgo.ts
175253
- TimeAgo.addDefaultLocale(en_json_default);
175230
+ TimeAgo.addLocale(en_json_default);
175231
+ TimeAgo.setDefaultLocale("en");
175254
175232
  var timeAgo = new TimeAgo("en-US");
175255
175233
  var formatTimeAgo = /* @__PURE__ */ __name((date) => {
175256
175234
  const result = timeAgo.format(date);
@@ -182657,6 +182635,9 @@ var upload = /* @__PURE__ */ __name(async (args) => {
182657
182635
  );
182658
182636
  }, "upload");
182659
182637
  function isJwtExpired(token) {
182638
+ if (typeof vitest !== "undefined" && (token === "<<funfetti-auth-jwt>>" || token === "<<funfetti-auth-jwt2>>")) {
182639
+ return false;
182640
+ }
182660
182641
  try {
182661
182642
  const decodedJwt = JSON.parse(
182662
182643
  Buffer.from(token.split(".")[1], "base64").toString()
@@ -188087,6 +188068,7 @@ init_import_meta_url();
188087
188068
  var import_node_path49 = __toESM(require("node:path"));
188088
188069
  var import_node_readline3 = __toESM(require("node:readline"));
188089
188070
  var import_undici17 = __toESM(require_undici());
188071
+ var VERSION_NOT_DEPLOYED_ERR_CODE = 10215;
188090
188072
  function isMissingWorkerError(e3) {
188091
188073
  return typeof e3 === "object" && e3 !== null && e3.code === 10007;
188092
188074
  }
@@ -188193,15 +188175,25 @@ var secret2 = /* @__PURE__ */ __name((secretYargs) => {
188193
188175
  );
188194
188176
  async function submitSecret() {
188195
188177
  const url4 = !args.env || isLegacyEnv(config) ? `/accounts/${accountId}/workers/scripts/${scriptName}/secrets` : `/accounts/${accountId}/workers/services/${scriptName}/environments/${args.env}/secrets`;
188196
- return await fetchResult(url4, {
188197
- method: "PUT",
188198
- headers: { "Content-Type": "application/json" },
188199
- body: JSON.stringify({
188200
- name: args.key,
188201
- text: secretValue,
188202
- type: "secret_text"
188203
- })
188204
- });
188178
+ try {
188179
+ return await fetchResult(url4, {
188180
+ method: "PUT",
188181
+ headers: { "Content-Type": "application/json" },
188182
+ body: JSON.stringify({
188183
+ name: args.key,
188184
+ text: secretValue,
188185
+ type: "secret_text"
188186
+ })
188187
+ });
188188
+ } catch (e3) {
188189
+ if (e3 instanceof APIError && e3.code === VERSION_NOT_DEPLOYED_ERR_CODE) {
188190
+ throw new UserError(
188191
+ "Secret edit failed. You attempted to modify a secret, but the latest version of your Worker isn't currently deployed. Please ensure that the latest version of your Worker is fully deployed (wrangler versions deploy --x-versions) before modifying secrets. Alternatively, you can use the Cloudflare dashboard to modify secrets and deploy the version.\n\nNote: This limitation will be addressed in an upcoming release."
188192
+ );
188193
+ } else {
188194
+ throw e3;
188195
+ }
188196
+ }
188205
188197
  }
188206
188198
  __name(submitSecret, "submitSecret");
188207
188199
  try {
@@ -198487,7 +198479,7 @@ async function generateTypes(configToDTS, config, envInterface, outputPath) {
198487
198479
  );
198488
198480
  }
198489
198481
  if (configToDTS.ai) {
198490
- envTypeStructure.push(constructType(configToDTS.ai.binding, "unknown"));
198482
+ envTypeStructure.push(constructType(configToDTS.ai.binding, "Ai"));
198491
198483
  }
198492
198484
  if (configToDTS.version_metadata) {
198493
198485
  envTypeStructure.push(
@@ -198586,8 +198578,7 @@ var vectorizeBetaWarning = `--------------------
198586
198578
 
198587
198579
  // src/vectorize/create.tsx
198588
198580
  init_import_meta_url();
198589
- var import_ink10 = __toESM(require_build2());
198590
- var import_react15 = __toESM(require_react());
198581
+ var import_toml5 = __toESM(require_toml());
198591
198582
 
198592
198583
  // src/vectorize/client.ts
198593
198584
  init_import_meta_url();
@@ -198720,9 +198711,21 @@ async function handler25(args) {
198720
198711
  return;
198721
198712
  }
198722
198713
  logger.log(
198723
- renderToString(
198724
- /* @__PURE__ */ import_react15.default.createElement(import_ink10.Box, { flexDirection: "column" }, /* @__PURE__ */ import_react15.default.createElement(import_ink10.Text, null, "\u2705 Successfully created a new Vectorize index: '", indexResult.name, "'"), /* @__PURE__ */ import_react15.default.createElement(import_ink10.Text, null, "\u{1F4CB} To start querying from a Worker, add the following binding configuration into 'wrangler.toml':"), /* @__PURE__ */ import_react15.default.createElement(import_ink10.Text, null, "\xA0"), /* @__PURE__ */ import_react15.default.createElement(import_ink10.Text, null, "[[vectorize]]"), /* @__PURE__ */ import_react15.default.createElement(import_ink10.Text, null, 'binding = "VECTORIZE_INDEX" # available within your Worker on env.VECTORIZE_INDEX'), /* @__PURE__ */ import_react15.default.createElement(import_ink10.Text, null, 'index_name = "', indexResult.name, '"'))
198725
- )
198714
+ `\u2705 Successfully created a new Vectorize index: '${indexResult.name}'`
198715
+ );
198716
+ logger.log(
198717
+ `\u{1F4CB} To start querying from a Worker, add the following binding configuration into 'wrangler.toml':
198718
+ `
198719
+ );
198720
+ logger.log(
198721
+ (0, import_toml5.stringify)({
198722
+ vectorize: [
198723
+ {
198724
+ binding: "VECTORIZE_INDEX",
198725
+ index_name: indexResult.name
198726
+ }
198727
+ ]
198728
+ })
198726
198729
  );
198727
198730
  }
198728
198731
  __name(handler25, "handler");
@@ -199970,14 +199973,10 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
199970
199973
  "workers/tag": props.tag
199971
199974
  }
199972
199975
  };
199973
- const bundleSizePromise = printBundleSize(
199976
+ await printBundleSize(
199974
199977
  { name: import_node_path50.default.basename(resolvedEntryPointPath), content },
199975
199978
  modules
199976
199979
  );
199977
- if (process.env.JEST_WORKER_ID !== void 0) {
199978
- await bundleSizePromise;
199979
- } else {
199980
- }
199981
199980
  const withoutStaticAssets = {
199982
199981
  ...bindings,
199983
199982
  kv_namespaces: config.kv_namespaces,
@@ -200764,7 +200763,7 @@ function getRules(config) {
200764
200763
  logger.warn(
200765
200764
  `Deprecation: The \`build.upload.rules\` config field is no longer used, the rules should be specified via the \`rules\` config field. Delete the \`build.upload\` field from the configuration file, and add this:
200766
200765
 
200767
- ${import_toml5.default.stringify({ rules: config.build.upload.rules })}`
200766
+ ${import_toml6.default.stringify({ rules: config.build.upload.rules })}`
200768
200767
  );
200769
200768
  }
200770
200769
  return rules;
@@ -201319,7 +201318,7 @@ ${tryRunningItIn}${oneOfThese}`
201319
201318
  throw e3;
201320
201319
  } finally {
201321
201320
  try {
201322
- if (typeof jest === "undefined") {
201321
+ if (typeof vitest === "undefined") {
201323
201322
  process.disconnect?.();
201324
201323
  }
201325
201324
  await closeSentry();
@@ -201514,7 +201513,7 @@ The \`init\` command will be removed in a future version.`
201514
201513
  try {
201515
201514
  await (0, import_promises20.writeFile)(
201516
201515
  wranglerTomlDestination,
201517
- import_toml6.default.stringify({
201516
+ import_toml7.default.stringify({
201518
201517
  name: workerName,
201519
201518
  compatibility_date: compatibilityDate
201520
201519
  }) + "\n"
@@ -201671,7 +201670,7 @@ ${err.message ?? err}`
201671
201670
  compatibility_date: parsedWranglerToml.compatibility_date,
201672
201671
  ...extraToml
201673
201672
  };
201674
- fs26.writeFileSync(wranglerTomlDestination, import_toml6.default.stringify(newToml));
201673
+ fs26.writeFileSync(wranglerTomlDestination, import_toml7.default.stringify(newToml));
201675
201674
  }
201676
201675
  const isNamedWorker = isCreatingWranglerToml && import_node_path52.default.dirname(packagePath) !== process.cwd();
201677
201676
  const isAddingTestScripts = isAddingTests && !packageJsonContent.scripts?.test;
@@ -202460,7 +202459,7 @@ Author ID: ${deploymentDetails.metadata.author_id}
202460
202459
  Usage Model: ${deploymentDetails.resources.script_runtime.usage_model}
202461
202460
  Handlers: ${deploymentDetails.resources.script.handlers}${compatDateStr}${compatFlagsStr}
202462
202461
  --------------------------bindings--------------------------
202463
- ${bindings.length > 0 ? import_toml7.default.stringify(mapBindings(bindings)) : `None`}
202462
+ ${bindings.length > 0 ? import_toml8.default.stringify(mapBindings(bindings)) : `None`}
202464
202463
  `;
202465
202464
  logger.log(version3);
202466
202465
  logVersionIdChange();
@@ -202917,14 +202916,10 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
202917
202916
  tail_consumers: config.tail_consumers,
202918
202917
  limits: config.limits
202919
202918
  };
202920
- const bundleSizePromise = printBundleSize(
202919
+ await printBundleSize(
202921
202920
  { name: import_node_path53.default.basename(resolvedEntryPointPath), content },
202922
202921
  modules
202923
202922
  );
202924
- if (process.env.JEST_WORKER_ID !== void 0) {
202925
- await bundleSizePromise;
202926
- } else {
202927
- }
202928
202923
  const withoutStaticAssets = {
202929
202924
  ...bindings,
202930
202925
  kv_namespaces: config.kv_namespaces,
@@ -203419,7 +203414,7 @@ var import_node_http22 = require("node:http2");
203419
203414
  var import_node_https = __toESM(require("node:https"));
203420
203415
  var import_http_terminator2 = __toESM(require_src5());
203421
203416
  var import_miniflare13 = require("miniflare");
203422
- var import_react16 = __toESM(require_react());
203417
+ var import_react15 = __toESM(require_react());
203423
203418
  var import_serve_static = __toESM(require_serve_static());
203424
203419
  function addCfPreviewTokenHeader(headers, previewTokenValue) {
203425
203420
  headers["cf-workers-preview-token"] = previewTokenValue;
@@ -203808,9 +203803,9 @@ __name(waitForPortToBeAvailable, "waitForPortToBeAvailable");
203808
203803
 
203809
203804
  // src/dev/remote.tsx
203810
203805
  function Remote(props) {
203811
- const [accountId, setAccountId] = (0, import_react17.useState)(props.accountId);
203812
- const accountChoicesRef = (0, import_react17.useRef)();
203813
- const [accountChoices, setAccountChoices] = (0, import_react17.useState)();
203806
+ const [accountId, setAccountId] = (0, import_react16.useState)(props.accountId);
203807
+ const accountChoicesRef = (0, import_react16.useRef)();
203808
+ const [accountChoices, setAccountChoices] = (0, import_react16.useState)();
203814
203809
  useWorker({
203815
203810
  name: props.name,
203816
203811
  bundle: props.bundle,
@@ -203832,7 +203827,7 @@ function Remote(props) {
203832
203827
  port: props.port
203833
203828
  });
203834
203829
  const errorHandler = useErrorHandler();
203835
- (0, import_react17.useEffect)(() => {
203830
+ (0, import_react16.useEffect)(() => {
203836
203831
  if (accountChoicesRef.current !== void 0 || props.accountId !== void 0) {
203837
203832
  return;
203838
203833
  }
@@ -203854,7 +203849,7 @@ function Remote(props) {
203854
203849
  }
203855
203850
  );
203856
203851
  });
203857
- return accountId === void 0 && accountChoices !== void 0 ? /* @__PURE__ */ import_react17.default.createElement(
203852
+ return accountId === void 0 && accountChoices !== void 0 ? /* @__PURE__ */ import_react16.default.createElement(
203858
203853
  ChooseAccount,
203859
203854
  {
203860
203855
  accounts: accountChoices,
@@ -203868,12 +203863,12 @@ function Remote(props) {
203868
203863
  }
203869
203864
  __name(Remote, "Remote");
203870
203865
  function useWorker(props) {
203871
- const [session, setSession] = (0, import_react17.useState)();
203872
- const [token, setToken] = (0, import_react17.useState)();
203873
- const [restartCounter, setRestartCounter] = (0, import_react17.useState)(0);
203874
- const startedRef = (0, import_react17.useRef)(false);
203866
+ const [session, setSession] = (0, import_react16.useState)();
203867
+ const [token, setToken] = (0, import_react16.useState)();
203868
+ const [restartCounter, setRestartCounter] = (0, import_react16.useState)(0);
203869
+ const startedRef = (0, import_react16.useRef)(false);
203875
203870
  const { onReady } = props;
203876
- (0, import_react17.useEffect)(() => {
203871
+ (0, import_react16.useEffect)(() => {
203877
203872
  const abortController = new AbortController();
203878
203873
  async function start() {
203879
203874
  if (props.accountId === void 0) {
@@ -203929,7 +203924,7 @@ For more details, refer to https://developers.cloudflare.com/workers/configurati
203929
203924
  props.sendMetrics,
203930
203925
  restartCounter
203931
203926
  ]);
203932
- (0, import_react17.useEffect)(() => {
203927
+ (0, import_react16.useEffect)(() => {
203933
203928
  const abortController = new AbortController();
203934
203929
  async function start() {
203935
203930
  if (props.accountId === void 0) {
@@ -204276,7 +204271,7 @@ async function getWorkerAccountAndContext(props) {
204276
204271
  }
204277
204272
  __name(getWorkerAccountAndContext, "getWorkerAccountAndContext");
204278
204273
  function ChooseAccount(props) {
204279
- return /* @__PURE__ */ import_react17.default.createElement(import_react17.default.Fragment, null, /* @__PURE__ */ import_react17.default.createElement(import_ink11.Text, { bold: true }, "Select an account from below:"), /* @__PURE__ */ import_react17.default.createElement(
204274
+ return /* @__PURE__ */ import_react16.default.createElement(import_react16.default.Fragment, null, /* @__PURE__ */ import_react16.default.createElement(import_ink10.Text, { bold: true }, "Select an account from below:"), /* @__PURE__ */ import_react16.default.createElement(
204280
204275
  import_ink_select_input3.default,
204281
204276
  {
204282
204277
  items: props.accounts.map((item) => ({
@@ -204329,8 +204324,8 @@ init_import_meta_url();
204329
204324
  var import_node_assert18 = __toESM(require("node:assert"));
204330
204325
  var import_node_path55 = __toESM(require("node:path"));
204331
204326
  var import_chokidar3 = require("chokidar");
204332
- var import_ink12 = __toESM(require_build2());
204333
- var import_react18 = __toESM(require_react());
204327
+ var import_ink11 = __toESM(require_build2());
204328
+ var import_react17 = __toESM(require_react());
204334
204329
  function useEsbuild({
204335
204330
  entry,
204336
204331
  destination,
@@ -204359,9 +204354,9 @@ function useEsbuild({
204359
204354
  onStart,
204360
204355
  defineNavigatorUserAgent
204361
204356
  }) {
204362
- const [bundle, setBundle] = (0, import_react18.useState)();
204363
- const { exit: exit6 } = (0, import_ink12.useApp)();
204364
- (0, import_react18.useEffect)(() => {
204357
+ const [bundle, setBundle] = (0, import_react17.useState)();
204358
+ const { exit: exit6 } = (0, import_ink11.useApp)();
204359
+ (0, import_react17.useEffect)(() => {
204365
204360
  let stopWatching = void 0;
204366
204361
  const entryDirectory = import_node_path55.default.dirname(entry.file);
204367
204362
  const moduleCollector = noBundle ? noopModuleCollector : createModuleCollector({
@@ -204554,9 +204549,9 @@ __name(validateDevProps, "validateDevProps");
204554
204549
 
204555
204550
  // src/dev/dev.tsx
204556
204551
  function useDevRegistry(name, services, durableObjects, mode) {
204557
- const [workers, setWorkers] = (0, import_react19.useState)({});
204558
- const hasFailedToFetch = (0, import_react19.useRef)(false);
204559
- (0, import_react19.useEffect)(() => {
204552
+ const [workers, setWorkers] = (0, import_react18.useState)({});
204553
+ const hasFailedToFetch = (0, import_react18.useRef)(false);
204554
+ (0, import_react18.useEffect)(() => {
204560
204555
  startWorkerRegistry().catch((err) => {
204561
204556
  logger.error("failed to start worker registry", err);
204562
204557
  });
@@ -204617,8 +204612,8 @@ function useDevRegistry(name, services, durableObjects, mode) {
204617
204612
  __name(useDevRegistry, "useDevRegistry");
204618
204613
  function DevImplementation(props) {
204619
204614
  validateDevProps(props);
204620
- const { isRawModeSupported } = (0, import_ink13.useStdin)();
204621
- return props.showInteractiveDevSession ?? isRawModeSupported ? /* @__PURE__ */ import_react19.default.createElement(InteractiveDevSession, { ...props }) : /* @__PURE__ */ import_react19.default.createElement(DevSession, { ...props, local: props.initialMode === "local" });
204615
+ const { isRawModeSupported } = (0, import_ink12.useStdin)();
204616
+ return props.showInteractiveDevSession ?? isRawModeSupported ? /* @__PURE__ */ import_react18.default.createElement(InteractiveDevSession, { ...props }) : /* @__PURE__ */ import_react18.default.createElement(DevSession, { ...props, local: props.initialMode === "local" });
204622
204617
  }
204623
204618
  __name(DevImplementation, "DevImplementation");
204624
204619
  var ip;
@@ -204651,17 +204646,17 @@ function InteractiveDevSession(props) {
204651
204646
  port = newPort;
204652
204647
  props.onReady?.(newIp, newPort, proxyData);
204653
204648
  }, "onReady");
204654
- return /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(DevSession, { ...props, local: toggles.local, onReady }), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Box, { borderStyle: "round", paddingLeft: 1, paddingRight: 1 }, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[b]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " open a browser, "), props.inspect ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[d]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " open Devtools, ")) : null, !props.forceLocal ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[l]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " ", toggles.local ? "turn off" : "turn on", " local mode, ")) : null, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[c]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " clear console, "), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[x]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " to exit")));
204649
+ return /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement(DevSession, { ...props, local: toggles.local, onReady }), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Box, { borderStyle: "round", paddingLeft: 1, paddingRight: 1 }, /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, { bold: true }, "[b]"), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, null, " open a browser, "), props.inspect ? /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, { bold: true }, "[d]"), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, null, " open Devtools, ")) : null, !props.forceLocal ? /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, { bold: true }, "[l]"), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, null, " ", toggles.local ? "turn off" : "turn on", " local mode, ")) : null, /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, { bold: true }, "[c]"), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, null, " clear console, "), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, { bold: true }, "[x]"), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, null, " to exit")));
204655
204650
  }
204656
204651
  __name(InteractiveDevSession, "InteractiveDevSession");
204657
204652
  function DevSession(props) {
204658
- const [devEnv] = (0, import_react19.useState)(() => new DevEnv());
204659
- (0, import_react19.useEffect)(() => {
204653
+ const [devEnv] = (0, import_react18.useState)(() => new DevEnv());
204654
+ (0, import_react18.useEffect)(() => {
204660
204655
  return () => {
204661
204656
  void devEnv.teardown();
204662
204657
  };
204663
204658
  }, [devEnv]);
204664
- const startDevWorkerOptions = (0, import_react19.useMemo)(
204659
+ const startDevWorkerOptions = (0, import_react18.useMemo)(
204665
204660
  () => ({
204666
204661
  name: props.name ?? "worker",
204667
204662
  script: { contents: "" },
@@ -204695,16 +204690,16 @@ function DevSession(props) {
204695
204690
  props.liveReload
204696
204691
  ]
204697
204692
  );
204698
- const onBundleStart = (0, import_react19.useCallback)(() => {
204693
+ const onBundleStart = (0, import_react18.useCallback)(() => {
204699
204694
  devEnv.proxy.onBundleStart({
204700
204695
  type: "bundleStart",
204701
204696
  config: startDevWorkerOptions
204702
204697
  });
204703
204698
  }, [devEnv, startDevWorkerOptions]);
204704
- const esbuildStartTimeoutRef = (0, import_react19.useRef)();
204705
- const latestReloadCompleteEvent = (0, import_react19.useRef)();
204706
- const bundle = (0, import_react19.useRef)();
204707
- const onCustomBuildEnd = (0, import_react19.useCallback)(() => {
204699
+ const esbuildStartTimeoutRef = (0, import_react18.useRef)();
204700
+ const latestReloadCompleteEvent = (0, import_react18.useRef)();
204701
+ const bundle = (0, import_react18.useRef)();
204702
+ const onCustomBuildEnd = (0, import_react18.useCallback)(() => {
204708
204703
  const TIMEOUT = 300;
204709
204704
  clearTimeout(esbuildStartTimeoutRef.current);
204710
204705
  esbuildStartTimeoutRef.current = setTimeout(() => {
@@ -204716,11 +204711,11 @@ function DevSession(props) {
204716
204711
  clearTimeout(esbuildStartTimeoutRef.current);
204717
204712
  };
204718
204713
  }, [devEnv, latestReloadCompleteEvent]);
204719
- const onEsbuildStart = (0, import_react19.useCallback)(() => {
204714
+ const onEsbuildStart = (0, import_react18.useCallback)(() => {
204720
204715
  clearTimeout(esbuildStartTimeoutRef.current);
204721
204716
  onBundleStart();
204722
204717
  }, [esbuildStartTimeoutRef, onBundleStart]);
204723
- const onReloadStart = (0, import_react19.useCallback)(
204718
+ const onReloadStart = (0, import_react18.useCallback)(
204724
204719
  (esbuildBundle) => {
204725
204720
  devEnv.proxy.onReloadStart({
204726
204721
  type: "reloadStart",
@@ -204738,7 +204733,7 @@ function DevSession(props) {
204738
204733
  props.bindings.durable_objects,
204739
204734
  props.local ? "local" : "remote"
204740
204735
  );
204741
- (0, import_react19.useEffect)(() => {
204736
+ (0, import_react18.useEffect)(() => {
204742
204737
  devEnv.proxy.onConfigUpdate({
204743
204738
  type: "configUpdate",
204744
204739
  config: startDevWorkerOptions
@@ -204778,7 +204773,7 @@ function DevSession(props) {
204778
204773
  props.compatibilityFlags
204779
204774
  )
204780
204775
  });
204781
- (0, import_react19.useEffect)(() => {
204776
+ (0, import_react18.useEffect)(() => {
204782
204777
  if (bundle.current) {
204783
204778
  onReloadStart(bundle.current);
204784
204779
  }
@@ -204823,7 +204818,7 @@ function DevSession(props) {
204823
204818
  props.onReady(finalIp, finalPort, proxyData);
204824
204819
  }
204825
204820
  }, "announceAndOnReady");
204826
- return props.local ? /* @__PURE__ */ import_react19.default.createElement(
204821
+ return props.local ? /* @__PURE__ */ import_react18.default.createElement(
204827
204822
  Local,
204828
204823
  {
204829
204824
  name: props.name,
@@ -204855,7 +204850,7 @@ function DevSession(props) {
204855
204850
  sourceMapPath: bundle.current?.sourceMapPath,
204856
204851
  services: props.bindings.services
204857
204852
  }
204858
- ) : /* @__PURE__ */ import_react19.default.createElement(
204853
+ ) : /* @__PURE__ */ import_react18.default.createElement(
204859
204854
  Remote,
204860
204855
  {
204861
204856
  name: props.name,
@@ -204887,9 +204882,9 @@ function DevSession(props) {
204887
204882
  }
204888
204883
  __name(DevSession, "DevSession");
204889
204884
  function useTmpDir(projectRoot) {
204890
- const [directory, setDirectory] = (0, import_react19.useState)();
204885
+ const [directory, setDirectory] = (0, import_react18.useState)();
204891
204886
  const handleError = useErrorHandler();
204892
- (0, import_react19.useEffect)(() => {
204887
+ (0, import_react18.useEffect)(() => {
204893
204888
  let dir;
204894
204889
  try {
204895
204890
  dir = getWranglerTmpDir(projectRoot, "dev");
@@ -204907,7 +204902,7 @@ function useTmpDir(projectRoot) {
204907
204902
  }
204908
204903
  __name(useTmpDir, "useTmpDir");
204909
204904
  function useCustomBuild(expectedEntry, build5, onStart, onEnd) {
204910
- (0, import_react19.useEffect)(() => {
204905
+ (0, import_react18.useEffect)(() => {
204911
204906
  if (!build5.command) {
204912
204907
  return;
204913
204908
  }
@@ -204955,9 +204950,9 @@ async function findTunnelHostname() {
204955
204950
  }
204956
204951
  __name(findTunnelHostname, "findTunnelHostname");
204957
204952
  function useTunnel(toggle) {
204958
- const tunnel = (0, import_react19.useRef)();
204959
- const removeSignalExitListener = (0, import_react19.useRef)();
204960
- (0, import_react19.useEffect)(() => {
204953
+ const tunnel = (0, import_react18.useRef)();
204954
+ const removeSignalExitListener = (0, import_react18.useRef)();
204955
+ (0, import_react18.useEffect)(() => {
204961
204956
  async function startTunnel() {
204962
204957
  if (toggle) {
204963
204958
  try {
@@ -205009,9 +205004,9 @@ function useTunnel(toggle) {
205009
205004
  __name(useTunnel, "useTunnel");
205010
205005
  function useHotkeys(props) {
205011
205006
  const { initial, inspectorPort, inspect: inspect2, localProtocol, forceLocal } = props;
205012
- const [toggles, setToggles] = (0, import_react19.useState)(initial);
205013
- const { exit: exit6 } = (0, import_ink13.useApp)();
205014
- (0, import_ink13.useInput)(
205007
+ const [toggles, setToggles] = (0, import_react18.useState)(initial);
205008
+ const { exit: exit6 } = (0, import_ink12.useApp)();
205009
+ (0, import_ink12.useInput)(
205015
205010
  async (input, key) => {
205016
205011
  switch (input.toLowerCase()) {
205017
205012
  case "c":
@@ -205065,9 +205060,9 @@ function useHotkeys(props) {
205065
205060
  }
205066
205061
  __name(useHotkeys, "useHotkeys");
205067
205062
  function ErrorFallback(props) {
205068
- const { exit: exit6 } = (0, import_ink13.useApp)();
205069
- (0, import_react19.useEffect)(() => exit6(props.error));
205070
- return /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, "Something went wrong:"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, props.error.stack));
205063
+ const { exit: exit6 } = (0, import_ink12.useApp)();
205064
+ (0, import_react18.useEffect)(() => exit6(props.error));
205065
+ return /* @__PURE__ */ import_react18.default.createElement(import_react18.default.Fragment, null, /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, null, "Something went wrong:"), /* @__PURE__ */ import_react18.default.createElement(import_ink12.Text, null, props.error.stack));
205071
205066
  }
205072
205067
  __name(ErrorFallback, "ErrorFallback");
205073
205068
  var dev_default = withErrorBoundary(DevImplementation, {
@@ -205727,7 +205722,7 @@ async function startDev(args) {
205727
205722
  args,
205728
205723
  configParam
205729
205724
  );
205730
- return /* @__PURE__ */ import_react20.default.createElement(
205725
+ return /* @__PURE__ */ import_react19.default.createElement(
205731
205726
  dev_default,
205732
205727
  {
205733
205728
  name: getScriptName({ name: args.name, env: args.env }, configParam),
@@ -205787,7 +205782,7 @@ async function startDev(args) {
205787
205782
  );
205788
205783
  }
205789
205784
  __name(getDevReactElement, "getDevReactElement");
205790
- const devReactElement = (0, import_ink14.render)(await getDevReactElement(config));
205785
+ const devReactElement = (0, import_ink13.render)(await getDevReactElement(config));
205791
205786
  rerender = devReactElement.rerender;
205792
205787
  return {
205793
205788
  devReactElement,
@@ -207397,7 +207392,8 @@ function unstable_getMiniflareWorkerOptions(configPath, environment) {
207397
207392
  if (bindings.services !== void 0) {
207398
207393
  bindingOptions.serviceBindings = Object.fromEntries(
207399
207394
  bindings.services.map((binding) => {
207400
- return [binding.binding, binding.service];
207395
+ const name = binding.service === config.name ? import_miniflare18.kCurrentWorker : binding.service;
207396
+ return [binding.binding, { name, entrypoint: binding.entrypoint }];
207401
207397
  })
207402
207398
  );
207403
207399
  }
@@ -207437,18 +207433,23 @@ async function getBindingsProxy(options29 = {}) {
207437
207433
  __name(getBindingsProxy, "getBindingsProxy");
207438
207434
 
207439
207435
  // src/cli.ts
207440
- if (typeof jest === "undefined" && require.main === module) {
207436
+ if (typeof vitest === "undefined" && require.main === module) {
207441
207437
  main(hideBin(import_process6.default.argv)).catch((e3) => {
207442
207438
  const exitCode = e3 instanceof FatalError && e3.code || 1;
207443
207439
  import_process6.default.exit(exitCode);
207444
207440
  });
207445
207441
  }
207442
+ var generateASSETSBinding2 = (
207443
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
207444
+ (init_assets(), __toCommonJS(assets_exports)).default
207445
+ );
207446
207446
  // Annotate the CommonJS export names for ESM import in node:
207447
207447
  0 && (module.exports = {
207448
207448
  getBindingsProxy,
207449
207449
  getPlatformProxy,
207450
207450
  unstable_DevEnv,
207451
207451
  unstable_dev,
207452
+ unstable_generateASSETSBinding,
207452
207453
  unstable_getMiniflareWorkerOptions,
207453
207454
  unstable_pages,
207454
207455
  unstable_splitSqlQuery,
@@ -208074,3 +208075,4 @@ yargs-parser/build/lib/index.js:
208074
208075
  * SPDX-License-Identifier: ISC
208075
208076
  *)
208076
208077
  */
208078
+ //# sourceMappingURL=cli.js.map