wrangler 3.31.0 → 3.33.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 +4 -4
- package/wrangler-dist/cli.js +170 -152
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wrangler",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.33.0",
|
|
4
4
|
"description": "Command-line interface for all things Cloudflare Workers",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wrangler",
|
|
@@ -95,8 +95,8 @@
|
|
|
95
95
|
"selfsigned": "^2.0.1",
|
|
96
96
|
"source-map": "0.6.1",
|
|
97
97
|
"xxhash-wasm": "^1.0.1",
|
|
98
|
-
"
|
|
99
|
-
"
|
|
98
|
+
"@cloudflare/kv-asset-handler": "0.3.1",
|
|
99
|
+
"miniflare": "3.20240304.1"
|
|
100
100
|
},
|
|
101
101
|
"devDependencies": {
|
|
102
102
|
"@cloudflare/ai": "^1.0.35",
|
|
@@ -187,7 +187,7 @@
|
|
|
187
187
|
"yargs": "^17.7.2",
|
|
188
188
|
"yoga-layout": "file:../../vendor/yoga-layout-2.0.0-beta.1.tgz",
|
|
189
189
|
"@cloudflare/cli": "1.1.1",
|
|
190
|
-
"@cloudflare/pages-shared": "^0.11.
|
|
190
|
+
"@cloudflare/pages-shared": "^0.11.18",
|
|
191
191
|
"@cloudflare/workers-tsconfig": "0.0.0"
|
|
192
192
|
},
|
|
193
193
|
"optionalDependencies": {
|
package/wrangler-dist/cli.js
CHANGED
|
@@ -52019,14 +52019,14 @@ var require_templates = __commonJS({
|
|
|
52019
52019
|
return results;
|
|
52020
52020
|
}
|
|
52021
52021
|
__name(parseStyle, "parseStyle");
|
|
52022
|
-
function buildStyle(
|
|
52022
|
+
function buildStyle(chalk18, styles2) {
|
|
52023
52023
|
const enabled = {};
|
|
52024
52024
|
for (const layer of styles2) {
|
|
52025
52025
|
for (const style of layer.styles) {
|
|
52026
52026
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
52027
52027
|
}
|
|
52028
52028
|
}
|
|
52029
|
-
let current =
|
|
52029
|
+
let current = chalk18;
|
|
52030
52030
|
for (const [styleName, styles3] of Object.entries(enabled)) {
|
|
52031
52031
|
if (!Array.isArray(styles3)) {
|
|
52032
52032
|
continue;
|
|
@@ -52039,7 +52039,7 @@ var require_templates = __commonJS({
|
|
|
52039
52039
|
return current;
|
|
52040
52040
|
}
|
|
52041
52041
|
__name(buildStyle, "buildStyle");
|
|
52042
|
-
module3.exports = (
|
|
52042
|
+
module3.exports = (chalk18, temporary) => {
|
|
52043
52043
|
const styles2 = [];
|
|
52044
52044
|
const chunks = [];
|
|
52045
52045
|
let chunk = [];
|
|
@@ -52049,13 +52049,13 @@ var require_templates = __commonJS({
|
|
|
52049
52049
|
} else if (style) {
|
|
52050
52050
|
const string = chunk.join("");
|
|
52051
52051
|
chunk = [];
|
|
52052
|
-
chunks.push(styles2.length === 0 ? string : buildStyle(
|
|
52052
|
+
chunks.push(styles2.length === 0 ? string : buildStyle(chalk18, styles2)(string));
|
|
52053
52053
|
styles2.push({ inverse, styles: parseStyle(style) });
|
|
52054
52054
|
} else if (close2) {
|
|
52055
52055
|
if (styles2.length === 0) {
|
|
52056
52056
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
52057
52057
|
}
|
|
52058
|
-
chunks.push(buildStyle(
|
|
52058
|
+
chunks.push(buildStyle(chalk18, styles2)(chunk.join("")));
|
|
52059
52059
|
chunk = [];
|
|
52060
52060
|
styles2.pop();
|
|
52061
52061
|
} else {
|
|
@@ -52105,16 +52105,16 @@ var require_source = __commonJS({
|
|
|
52105
52105
|
};
|
|
52106
52106
|
__name(ChalkClass, "ChalkClass");
|
|
52107
52107
|
var chalkFactory = /* @__PURE__ */ __name((options25) => {
|
|
52108
|
-
const
|
|
52109
|
-
applyOptions(
|
|
52110
|
-
|
|
52111
|
-
Object.setPrototypeOf(
|
|
52112
|
-
Object.setPrototypeOf(
|
|
52113
|
-
|
|
52108
|
+
const chalk19 = {};
|
|
52109
|
+
applyOptions(chalk19, options25);
|
|
52110
|
+
chalk19.template = (...arguments_) => chalkTag(chalk19.template, ...arguments_);
|
|
52111
|
+
Object.setPrototypeOf(chalk19, Chalk.prototype);
|
|
52112
|
+
Object.setPrototypeOf(chalk19.template, chalk19);
|
|
52113
|
+
chalk19.template.constructor = () => {
|
|
52114
52114
|
throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.");
|
|
52115
52115
|
};
|
|
52116
|
-
|
|
52117
|
-
return
|
|
52116
|
+
chalk19.template.Instance = ChalkClass;
|
|
52117
|
+
return chalk19.template;
|
|
52118
52118
|
}, "chalkFactory");
|
|
52119
52119
|
function Chalk(options25) {
|
|
52120
52120
|
return chalkFactory(options25);
|
|
@@ -52226,7 +52226,7 @@ var require_source = __commonJS({
|
|
|
52226
52226
|
return openAll + string + closeAll;
|
|
52227
52227
|
}, "applyStyle");
|
|
52228
52228
|
var template;
|
|
52229
|
-
var chalkTag = /* @__PURE__ */ __name((
|
|
52229
|
+
var chalkTag = /* @__PURE__ */ __name((chalk19, ...strings) => {
|
|
52230
52230
|
const [firstString] = strings;
|
|
52231
52231
|
if (!isArray(firstString) || !isArray(firstString.raw)) {
|
|
52232
52232
|
return strings.join(" ");
|
|
@@ -52242,14 +52242,14 @@ var require_source = __commonJS({
|
|
|
52242
52242
|
if (template === void 0) {
|
|
52243
52243
|
template = require_templates();
|
|
52244
52244
|
}
|
|
52245
|
-
return template(
|
|
52245
|
+
return template(chalk19, parts.join(""));
|
|
52246
52246
|
}, "chalkTag");
|
|
52247
52247
|
Object.defineProperties(Chalk.prototype, styles2);
|
|
52248
|
-
var
|
|
52249
|
-
|
|
52250
|
-
|
|
52251
|
-
|
|
52252
|
-
module3.exports =
|
|
52248
|
+
var chalk18 = Chalk();
|
|
52249
|
+
chalk18.supportsColor = stdoutColor;
|
|
52250
|
+
chalk18.stderr = Chalk({ level: stderrColor ? stderrColor.level : 0 });
|
|
52251
|
+
chalk18.stderr.supportsColor = stderrColor;
|
|
52252
|
+
module3.exports = chalk18;
|
|
52253
52253
|
}
|
|
52254
52254
|
});
|
|
52255
52255
|
|
|
@@ -55689,14 +55689,14 @@ var require_templates2 = __commonJS({
|
|
|
55689
55689
|
return results;
|
|
55690
55690
|
}
|
|
55691
55691
|
__name(parseStyle, "parseStyle");
|
|
55692
|
-
function buildStyle(
|
|
55692
|
+
function buildStyle(chalk18, styles2) {
|
|
55693
55693
|
const enabled = {};
|
|
55694
55694
|
for (const layer of styles2) {
|
|
55695
55695
|
for (const style of layer.styles) {
|
|
55696
55696
|
enabled[style[0]] = layer.inverse ? null : style.slice(1);
|
|
55697
55697
|
}
|
|
55698
55698
|
}
|
|
55699
|
-
let current =
|
|
55699
|
+
let current = chalk18;
|
|
55700
55700
|
for (const styleName of Object.keys(enabled)) {
|
|
55701
55701
|
if (Array.isArray(enabled[styleName])) {
|
|
55702
55702
|
if (!(styleName in current)) {
|
|
@@ -55712,7 +55712,7 @@ var require_templates2 = __commonJS({
|
|
|
55712
55712
|
return current;
|
|
55713
55713
|
}
|
|
55714
55714
|
__name(buildStyle, "buildStyle");
|
|
55715
|
-
module3.exports = (
|
|
55715
|
+
module3.exports = (chalk18, tmp) => {
|
|
55716
55716
|
const styles2 = [];
|
|
55717
55717
|
const chunks = [];
|
|
55718
55718
|
let chunk = [];
|
|
@@ -55722,13 +55722,13 @@ var require_templates2 = __commonJS({
|
|
|
55722
55722
|
} else if (style) {
|
|
55723
55723
|
const str = chunk.join("");
|
|
55724
55724
|
chunk = [];
|
|
55725
|
-
chunks.push(styles2.length === 0 ? str : buildStyle(
|
|
55725
|
+
chunks.push(styles2.length === 0 ? str : buildStyle(chalk18, styles2)(str));
|
|
55726
55726
|
styles2.push({ inverse, styles: parseStyle(style) });
|
|
55727
55727
|
} else if (close2) {
|
|
55728
55728
|
if (styles2.length === 0) {
|
|
55729
55729
|
throw new Error("Found extraneous } in Chalk template literal");
|
|
55730
55730
|
}
|
|
55731
|
-
chunks.push(buildStyle(
|
|
55731
|
+
chunks.push(buildStyle(chalk18, styles2)(chunk.join("")));
|
|
55732
55732
|
chunk = [];
|
|
55733
55733
|
styles2.pop();
|
|
55734
55734
|
} else {
|
|
@@ -55767,16 +55767,16 @@ var require_chalk = __commonJS({
|
|
|
55767
55767
|
__name(applyOptions, "applyOptions");
|
|
55768
55768
|
function Chalk(options25) {
|
|
55769
55769
|
if (!this || !(this instanceof Chalk) || this.template) {
|
|
55770
|
-
const
|
|
55771
|
-
applyOptions(
|
|
55772
|
-
|
|
55770
|
+
const chalk18 = {};
|
|
55771
|
+
applyOptions(chalk18, options25);
|
|
55772
|
+
chalk18.template = function() {
|
|
55773
55773
|
const args = [].slice.call(arguments);
|
|
55774
|
-
return chalkTag.apply(null, [
|
|
55774
|
+
return chalkTag.apply(null, [chalk18.template].concat(args));
|
|
55775
55775
|
};
|
|
55776
|
-
Object.setPrototypeOf(
|
|
55777
|
-
Object.setPrototypeOf(
|
|
55778
|
-
|
|
55779
|
-
return
|
|
55776
|
+
Object.setPrototypeOf(chalk18, Chalk.prototype);
|
|
55777
|
+
Object.setPrototypeOf(chalk18.template, chalk18);
|
|
55778
|
+
chalk18.template.constructor = Chalk;
|
|
55779
|
+
return chalk18.template;
|
|
55780
55780
|
}
|
|
55781
55781
|
applyOptions(this, options25);
|
|
55782
55782
|
}
|
|
@@ -55898,7 +55898,7 @@ var require_chalk = __commonJS({
|
|
|
55898
55898
|
return str;
|
|
55899
55899
|
}
|
|
55900
55900
|
__name(applyStyle, "applyStyle");
|
|
55901
|
-
function chalkTag(
|
|
55901
|
+
function chalkTag(chalk18, strings) {
|
|
55902
55902
|
if (!Array.isArray(strings)) {
|
|
55903
55903
|
return [].slice.call(arguments, 1).join(" ");
|
|
55904
55904
|
}
|
|
@@ -55908,7 +55908,7 @@ var require_chalk = __commonJS({
|
|
|
55908
55908
|
parts.push(String(args[i - 1]).replace(/[{}\\]/g, "\\$&"));
|
|
55909
55909
|
parts.push(String(strings.raw[i]));
|
|
55910
55910
|
}
|
|
55911
|
-
return template(
|
|
55911
|
+
return template(chalk18, parts.join(""));
|
|
55912
55912
|
}
|
|
55913
55913
|
__name(chalkTag, "chalkTag");
|
|
55914
55914
|
Object.defineProperties(Chalk.prototype, styles2);
|
|
@@ -119643,7 +119643,7 @@ var import_node_assert2 = __toESM(require("node:assert"));
|
|
|
119643
119643
|
var import_undici3 = __toESM(require_undici());
|
|
119644
119644
|
|
|
119645
119645
|
// package.json
|
|
119646
|
-
var version = "3.
|
|
119646
|
+
var version = "3.33.0";
|
|
119647
119647
|
var package_default = {
|
|
119648
119648
|
name: "wrangler",
|
|
119649
119649
|
version,
|
|
@@ -128642,7 +128642,7 @@ var import_node_assert17 = __toESM(require("node:assert"));
|
|
|
128642
128642
|
var import_node_fs32 = require("node:fs");
|
|
128643
128643
|
var import_node_path49 = __toESM(require("node:path"));
|
|
128644
128644
|
var import_node_url13 = require("node:url");
|
|
128645
|
-
var
|
|
128645
|
+
var import_chalk16 = __toESM(require_chalk());
|
|
128646
128646
|
|
|
128647
128647
|
// src/deployment-bundle/bundle-reporter.ts
|
|
128648
128648
|
init_import_meta_url();
|
|
@@ -129055,7 +129055,7 @@ __name(createWorkerUploadForm, "createWorkerUploadForm");
|
|
|
129055
129055
|
init_import_meta_url();
|
|
129056
129056
|
var import_url8 = require("url");
|
|
129057
129057
|
var import_toml6 = __toESM(require_toml());
|
|
129058
|
-
var
|
|
129058
|
+
var import_chalk14 = __toESM(require_chalk());
|
|
129059
129059
|
var import_undici20 = __toESM(require_undici());
|
|
129060
129060
|
|
|
129061
129061
|
// src/init.ts
|
|
@@ -129383,7 +129383,7 @@ init_import_meta_url();
|
|
|
129383
129383
|
var import_node_module2 = __toESM(require("node:module"));
|
|
129384
129384
|
var import_node_os7 = __toESM(require("node:os"));
|
|
129385
129385
|
var import_toml4 = __toESM(require_toml());
|
|
129386
|
-
var
|
|
129386
|
+
var import_chalk13 = __toESM(require_chalk());
|
|
129387
129387
|
var import_undici19 = __toESM(require_undici());
|
|
129388
129388
|
|
|
129389
129389
|
// ../../node_modules/.pnpm/yargs@17.7.2/node_modules/yargs/index.mjs
|
|
@@ -141284,6 +141284,9 @@ function Options4(yargs) {
|
|
|
141284
141284
|
}).option("local", {
|
|
141285
141285
|
describe: "Execute commands/files against a local DB for use with wrangler dev",
|
|
141286
141286
|
type: "boolean"
|
|
141287
|
+
}).option("remote", {
|
|
141288
|
+
describe: "Execute commands/files against a remote DB for use with wrangler dev",
|
|
141289
|
+
type: "boolean"
|
|
141287
141290
|
}).option("file", {
|
|
141288
141291
|
describe: "A .sql file to ingest",
|
|
141289
141292
|
type: "string"
|
|
@@ -141312,6 +141315,7 @@ __name(Options4, "Options");
|
|
|
141312
141315
|
var Handler4 = /* @__PURE__ */ __name(async (args) => {
|
|
141313
141316
|
const {
|
|
141314
141317
|
local,
|
|
141318
|
+
remote,
|
|
141315
141319
|
database,
|
|
141316
141320
|
yes,
|
|
141317
141321
|
persistTo,
|
|
@@ -141333,6 +141337,7 @@ var Handler4 = /* @__PURE__ */ __name(async (args) => {
|
|
|
141333
141337
|
try {
|
|
141334
141338
|
const response = await executeSql({
|
|
141335
141339
|
local,
|
|
141340
|
+
remote,
|
|
141336
141341
|
config,
|
|
141337
141342
|
name: database,
|
|
141338
141343
|
shouldPrompt: isInteractive3 && !yes,
|
|
@@ -141377,6 +141382,7 @@ var Handler4 = /* @__PURE__ */ __name(async (args) => {
|
|
|
141377
141382
|
}, "Handler");
|
|
141378
141383
|
async function executeSql({
|
|
141379
141384
|
local,
|
|
141385
|
+
remote,
|
|
141380
141386
|
config,
|
|
141381
141387
|
name,
|
|
141382
141388
|
shouldPrompt,
|
|
@@ -141394,8 +141400,13 @@ async function executeSql({
|
|
|
141394
141400
|
const sql = file ? readFileSync5(file) : command2;
|
|
141395
141401
|
if (!sql)
|
|
141396
141402
|
throw new UserError(`Error: must provide --command or --file.`);
|
|
141397
|
-
if (
|
|
141398
|
-
throw new UserError(
|
|
141403
|
+
if (local && remote) {
|
|
141404
|
+
throw new UserError(
|
|
141405
|
+
`Error: can't use --local and --remote at the same time`
|
|
141406
|
+
);
|
|
141407
|
+
}
|
|
141408
|
+
if (preview && !remote)
|
|
141409
|
+
throw new UserError(`Error: can't use --preview without --remote`);
|
|
141399
141410
|
if (persistTo && !local)
|
|
141400
141411
|
throw new UserError(`Error: can't use --persist-to without --local`);
|
|
141401
141412
|
logger.log(`\u{1F300} Mapping SQL input into an array of statements`);
|
|
@@ -141407,18 +141418,18 @@ async function executeSql({
|
|
|
141407
141418
|
);
|
|
141408
141419
|
}
|
|
141409
141420
|
}
|
|
141410
|
-
const result =
|
|
141411
|
-
config,
|
|
141412
|
-
name,
|
|
141413
|
-
queries,
|
|
141414
|
-
persistTo
|
|
141415
|
-
}) : await executeRemotely({
|
|
141421
|
+
const result = remote || preview ? await executeRemotely({
|
|
141416
141422
|
config,
|
|
141417
141423
|
name,
|
|
141418
141424
|
shouldPrompt,
|
|
141419
141425
|
batches: batchSplit(queries, batchSize),
|
|
141420
141426
|
json,
|
|
141421
141427
|
preview
|
|
141428
|
+
}) : await executeLocally({
|
|
141429
|
+
config,
|
|
141430
|
+
name,
|
|
141431
|
+
queries,
|
|
141432
|
+
persistTo
|
|
141422
141433
|
});
|
|
141423
141434
|
if (json)
|
|
141424
141435
|
logger.loggerLevel = existingLogLevel;
|
|
@@ -141434,7 +141445,7 @@ async function executeLocally({
|
|
|
141434
141445
|
const localDB = getDatabaseInfoFromConfig(config, name);
|
|
141435
141446
|
if (!localDB) {
|
|
141436
141447
|
throw new UserError(
|
|
141437
|
-
`
|
|
141448
|
+
`Couldn't find a D1 DB with the name or binding '${name}' in wrangler.toml.`
|
|
141438
141449
|
);
|
|
141439
141450
|
}
|
|
141440
141451
|
const id = localDB.previewDatabaseUuid ?? localDB.uuid;
|
|
@@ -141445,6 +141456,9 @@ async function executeLocally({
|
|
|
141445
141456
|
d1Persist
|
|
141446
141457
|
)}:`
|
|
141447
141458
|
);
|
|
141459
|
+
logger.log(
|
|
141460
|
+
"\u{1F300} To execute on your remote database, add a --remote flag to your wrangler command."
|
|
141461
|
+
);
|
|
141448
141462
|
const mf = new import_miniflare8.Miniflare({
|
|
141449
141463
|
modules: true,
|
|
141450
141464
|
script: "",
|
|
@@ -141518,7 +141532,7 @@ async function executeRemotely({
|
|
|
141518
141532
|
const dbUuid = preview ? db.previewDatabaseUuid : db.uuid;
|
|
141519
141533
|
logger.log(`\u{1F300} Executing on remote database ${name} (${dbUuid}):`);
|
|
141520
141534
|
logger.log(
|
|
141521
|
-
"\u{1F300} To execute on your local development database,
|
|
141535
|
+
"\u{1F300} To execute on your local development database, remove the --remote flag from your wrangler command."
|
|
141522
141536
|
);
|
|
141523
141537
|
const results = [];
|
|
141524
141538
|
for (const sql of batches) {
|
|
@@ -141863,19 +141877,21 @@ async function getUnappliedMigrations({
|
|
|
141863
141877
|
migrationsTableName,
|
|
141864
141878
|
migrationsPath,
|
|
141865
141879
|
local,
|
|
141880
|
+
remote,
|
|
141866
141881
|
config,
|
|
141867
141882
|
name,
|
|
141868
141883
|
persistTo,
|
|
141869
141884
|
preview
|
|
141870
141885
|
}) {
|
|
141871
|
-
const appliedMigrations = (await listAppliedMigrations(
|
|
141886
|
+
const appliedMigrations = (await listAppliedMigrations({
|
|
141872
141887
|
migrationsTableName,
|
|
141873
141888
|
local,
|
|
141889
|
+
remote,
|
|
141874
141890
|
config,
|
|
141875
141891
|
name,
|
|
141876
141892
|
persistTo,
|
|
141877
141893
|
preview
|
|
141878
|
-
)).map((migration) => {
|
|
141894
|
+
})).map((migration) => {
|
|
141879
141895
|
return migration.name;
|
|
141880
141896
|
});
|
|
141881
141897
|
const projectMigrations = getMigrationNames(migrationsPath);
|
|
@@ -141888,9 +141904,18 @@ async function getUnappliedMigrations({
|
|
|
141888
141904
|
return unappliedMigrations;
|
|
141889
141905
|
}
|
|
141890
141906
|
__name(getUnappliedMigrations, "getUnappliedMigrations");
|
|
141891
|
-
var listAppliedMigrations = /* @__PURE__ */ __name(async (
|
|
141907
|
+
var listAppliedMigrations = /* @__PURE__ */ __name(async ({
|
|
141908
|
+
migrationsTableName,
|
|
141909
|
+
local,
|
|
141910
|
+
remote,
|
|
141911
|
+
config,
|
|
141912
|
+
name,
|
|
141913
|
+
persistTo,
|
|
141914
|
+
preview
|
|
141915
|
+
}) => {
|
|
141892
141916
|
const response = await executeSql({
|
|
141893
141917
|
local,
|
|
141918
|
+
remote,
|
|
141894
141919
|
config,
|
|
141895
141920
|
name,
|
|
141896
141921
|
shouldPrompt: isInteractive() && !CI.isCI(),
|
|
@@ -141920,19 +141945,17 @@ function getMigrationNames(migrationsPath) {
|
|
|
141920
141945
|
}
|
|
141921
141946
|
__name(getMigrationNames, "getMigrationNames");
|
|
141922
141947
|
function getNextMigrationNumber(migrationsPath) {
|
|
141923
|
-
|
|
141924
|
-
|
|
141925
|
-
|
|
141926
|
-
|
|
141927
|
-
highestMigrationNumber = migrationNumber;
|
|
141928
|
-
}
|
|
141929
|
-
}
|
|
141948
|
+
const migrationNumbers = getMigrationNames(migrationsPath).map(
|
|
141949
|
+
(migration) => parseInt(migration.split("_")[0])
|
|
141950
|
+
);
|
|
141951
|
+
const highestMigrationNumber = Math.max(...migrationNumbers, 0);
|
|
141930
141952
|
return highestMigrationNumber + 1;
|
|
141931
141953
|
}
|
|
141932
141954
|
__name(getNextMigrationNumber, "getNextMigrationNumber");
|
|
141933
141955
|
var initMigrationsTable = /* @__PURE__ */ __name(async ({
|
|
141934
141956
|
migrationsTableName,
|
|
141935
141957
|
local,
|
|
141958
|
+
remote,
|
|
141936
141959
|
config,
|
|
141937
141960
|
name,
|
|
141938
141961
|
persistTo,
|
|
@@ -141940,6 +141963,7 @@ var initMigrationsTable = /* @__PURE__ */ __name(async ({
|
|
|
141940
141963
|
}) => {
|
|
141941
141964
|
return executeSql({
|
|
141942
141965
|
local,
|
|
141966
|
+
remote,
|
|
141943
141967
|
config,
|
|
141944
141968
|
name,
|
|
141945
141969
|
shouldPrompt: isInteractive() && !CI.isCI(),
|
|
@@ -141960,7 +141984,10 @@ var initMigrationsTable = /* @__PURE__ */ __name(async ({
|
|
|
141960
141984
|
init_import_meta_url();
|
|
141961
141985
|
function MigrationOptions(yargs) {
|
|
141962
141986
|
return Database(yargs).option("local", {
|
|
141963
|
-
describe: "Execute commands/files against a local DB for use with wrangler dev
|
|
141987
|
+
describe: "Execute commands/files against a local DB for use with wrangler dev",
|
|
141988
|
+
type: "boolean"
|
|
141989
|
+
}).option("remote", {
|
|
141990
|
+
describe: "Execute commands/files against a remote DB for use with wrangler dev --remote",
|
|
141964
141991
|
type: "boolean"
|
|
141965
141992
|
}).option("preview", {
|
|
141966
141993
|
describe: "Execute commands/files against a preview D1 DB",
|
|
@@ -141988,15 +142015,16 @@ var ApplyHandler = withConfig(
|
|
|
141988
142015
|
config,
|
|
141989
142016
|
database,
|
|
141990
142017
|
local,
|
|
142018
|
+
remote,
|
|
141991
142019
|
persistTo,
|
|
141992
142020
|
preview,
|
|
141993
142021
|
batchSize
|
|
141994
142022
|
}) => {
|
|
141995
142023
|
await printWranglerBanner();
|
|
141996
142024
|
const databaseInfo = getDatabaseInfoFromConfig(config, database);
|
|
141997
|
-
if (!databaseInfo &&
|
|
142025
|
+
if (!databaseInfo && remote) {
|
|
141998
142026
|
throw new UserError(
|
|
141999
|
-
`
|
|
142027
|
+
`Couldn't find a D1 DB with the name or binding '${database}' in wrangler.toml.`
|
|
142000
142028
|
);
|
|
142001
142029
|
}
|
|
142002
142030
|
if (!config.configPath) {
|
|
@@ -142011,6 +142039,7 @@ var ApplyHandler = withConfig(
|
|
|
142011
142039
|
await initMigrationsTable({
|
|
142012
142040
|
migrationsTableName,
|
|
142013
142041
|
local,
|
|
142042
|
+
remote,
|
|
142014
142043
|
config,
|
|
142015
142044
|
name: database,
|
|
142016
142045
|
persistTo,
|
|
@@ -142020,6 +142049,7 @@ var ApplyHandler = withConfig(
|
|
|
142020
142049
|
migrationsTableName,
|
|
142021
142050
|
migrationsPath,
|
|
142022
142051
|
local,
|
|
142052
|
+
remote,
|
|
142023
142053
|
config,
|
|
142024
142054
|
name: database,
|
|
142025
142055
|
persistTo,
|
|
@@ -142081,6 +142111,7 @@ Your database may not be available to serve requests during the migration, conti
|
|
|
142081
142111
|
try {
|
|
142082
142112
|
const response = await executeSql({
|
|
142083
142113
|
local,
|
|
142114
|
+
remote,
|
|
142084
142115
|
config,
|
|
142085
142116
|
name: database,
|
|
142086
142117
|
shouldPrompt: isInteractive() && !CI.isCI(),
|
|
@@ -142152,7 +142183,7 @@ var CreateHandler2 = withConfig(
|
|
|
142152
142183
|
const databaseInfo = getDatabaseInfoFromConfig(config, database);
|
|
142153
142184
|
if (!databaseInfo) {
|
|
142154
142185
|
throw new UserError(
|
|
142155
|
-
`
|
|
142186
|
+
`Couldn't find a D1 DB with the name or binding '${database}' in wrangler.toml.`
|
|
142156
142187
|
);
|
|
142157
142188
|
}
|
|
142158
142189
|
if (!config.configPath) {
|
|
@@ -142197,15 +142228,22 @@ function ListOptions2(yargs) {
|
|
|
142197
142228
|
}
|
|
142198
142229
|
__name(ListOptions2, "ListOptions");
|
|
142199
142230
|
var ListHandler2 = withConfig(
|
|
142200
|
-
async ({
|
|
142231
|
+
async ({
|
|
142232
|
+
config,
|
|
142233
|
+
database,
|
|
142234
|
+
local,
|
|
142235
|
+
remote,
|
|
142236
|
+
persistTo,
|
|
142237
|
+
preview
|
|
142238
|
+
}) => {
|
|
142201
142239
|
await printWranglerBanner();
|
|
142202
|
-
if (
|
|
142240
|
+
if (remote) {
|
|
142203
142241
|
await requireAuth({});
|
|
142204
142242
|
}
|
|
142205
142243
|
const databaseInfo = getDatabaseInfoFromConfig(config, database);
|
|
142206
|
-
if (!databaseInfo &&
|
|
142244
|
+
if (!databaseInfo && remote) {
|
|
142207
142245
|
throw new UserError(
|
|
142208
|
-
`
|
|
142246
|
+
`Couldn't find a D1 DB with the name or binding '${database}' in wrangler.toml.`
|
|
142209
142247
|
);
|
|
142210
142248
|
}
|
|
142211
142249
|
if (!config.configPath) {
|
|
@@ -142220,6 +142258,7 @@ var ListHandler2 = withConfig(
|
|
|
142220
142258
|
await initMigrationsTable({
|
|
142221
142259
|
migrationsTableName,
|
|
142222
142260
|
local,
|
|
142261
|
+
remote,
|
|
142223
142262
|
config,
|
|
142224
142263
|
name: database,
|
|
142225
142264
|
persistTo,
|
|
@@ -142229,6 +142268,7 @@ var ListHandler2 = withConfig(
|
|
|
142229
142268
|
migrationsTableName,
|
|
142230
142269
|
migrationsPath,
|
|
142231
142270
|
local,
|
|
142271
|
+
remote,
|
|
142232
142272
|
config,
|
|
142233
142273
|
name: database,
|
|
142234
142274
|
persistTo,
|
|
@@ -143183,7 +143223,6 @@ __name(checkAndConfirmForceDeleteIfNecessary, "checkAndConfirmForceDeleteIfNeces
|
|
|
143183
143223
|
// src/deploy/index.ts
|
|
143184
143224
|
init_import_meta_url();
|
|
143185
143225
|
var import_node_path29 = __toESM(require("node:path"));
|
|
143186
|
-
var import_chalk11 = __toESM(require_chalk());
|
|
143187
143226
|
|
|
143188
143227
|
// src/sites.ts
|
|
143189
143228
|
init_import_meta_url();
|
|
@@ -143563,37 +143602,11 @@ function collectKeyValues(array) {
|
|
|
143563
143602
|
__name(collectKeyValues, "collectKeyValues");
|
|
143564
143603
|
|
|
143565
143604
|
// src/deploy/index.ts
|
|
143566
|
-
async function standardPricingWarning(
|
|
143567
|
-
if (
|
|
143568
|
-
|
|
143569
|
-
|
|
143570
|
-
|
|
143571
|
-
);
|
|
143572
|
-
}
|
|
143573
|
-
return;
|
|
143574
|
-
}
|
|
143575
|
-
try {
|
|
143576
|
-
const { standard, reason } = await fetchResult(`/accounts/${accountId}/workers/standard`);
|
|
143577
|
-
if (!standard && reason !== "enterprise without override") {
|
|
143578
|
-
logger.log(
|
|
143579
|
-
import_chalk11.default.blue(
|
|
143580
|
-
`\u{1F6A7} New Workers Standard pricing is now available. Please visit the dashboard to view details and opt-in to new pricing: https://dash.cloudflare.com/${accountId}/workers/standard/opt-in.`
|
|
143581
|
-
)
|
|
143582
|
-
);
|
|
143583
|
-
if (config.limits?.cpu_ms !== void 0) {
|
|
143584
|
-
logger.warn(
|
|
143585
|
-
"The `limits` defined in wrangler.toml can only be applied to scripts opted into Workers Standard pricing. Agree to the new pricing details to set limits for your script."
|
|
143586
|
-
);
|
|
143587
|
-
}
|
|
143588
|
-
return;
|
|
143589
|
-
}
|
|
143590
|
-
if (standard && config.usage_model !== void 0) {
|
|
143591
|
-
logger.warn(
|
|
143592
|
-
"The `usage_model` defined in wrangler.toml is no longer used because you have opted into Workers Standard pricing. Please remove this setting from your wrangler.toml and use the dashboard to configure the usage model for your script."
|
|
143593
|
-
);
|
|
143594
|
-
return;
|
|
143595
|
-
}
|
|
143596
|
-
} catch {
|
|
143605
|
+
async function standardPricingWarning(config) {
|
|
143606
|
+
if (config.usage_model !== void 0) {
|
|
143607
|
+
logger.warn(
|
|
143608
|
+
"The `usage_model` defined in wrangler.toml is deprecated and no longer used. Visit our developer docs for details: https://developers.cloudflare.com/workers/wrangler/configuration/#usage-model"
|
|
143609
|
+
);
|
|
143597
143610
|
}
|
|
143598
143611
|
}
|
|
143599
143612
|
__name(standardPricingWarning, "standardPricingWarning");
|
|
@@ -143780,7 +143793,7 @@ async function deployHandler(args) {
|
|
|
143780
143793
|
args.siteExclude
|
|
143781
143794
|
);
|
|
143782
143795
|
if (!args.dryRun)
|
|
143783
|
-
await standardPricingWarning(
|
|
143796
|
+
await standardPricingWarning(config);
|
|
143784
143797
|
await deploy({
|
|
143785
143798
|
config,
|
|
143786
143799
|
accountId,
|
|
@@ -148696,7 +148709,7 @@ __name(parseQuery, "parseQuery");
|
|
|
148696
148709
|
|
|
148697
148710
|
// src/tail/printing.ts
|
|
148698
148711
|
init_import_meta_url();
|
|
148699
|
-
var
|
|
148712
|
+
var import_chalk11 = __toESM(require_chalk());
|
|
148700
148713
|
function prettyPrintLogs(data) {
|
|
148701
148714
|
const eventMessage2 = JSON.parse(data.toString());
|
|
148702
148715
|
if (isScheduledEvent(eventMessage2.event)) {
|
|
@@ -148742,9 +148755,9 @@ function prettyPrintLogs(data) {
|
|
|
148742
148755
|
);
|
|
148743
148756
|
} else if (isTailInfo(eventMessage2.event)) {
|
|
148744
148757
|
if (eventMessage2.event.type === "overload") {
|
|
148745
|
-
logger.log(`${
|
|
148758
|
+
logger.log(`${import_chalk11.default.red.bold(eventMessage2.event.message)}`);
|
|
148746
148759
|
} else if (eventMessage2.event.type === "overload-stop") {
|
|
148747
|
-
logger.log(`${
|
|
148760
|
+
logger.log(`${import_chalk11.default.yellow.bold(eventMessage2.event.message)}`);
|
|
148748
148761
|
}
|
|
148749
148762
|
} else if (isQueueEvent(eventMessage2.event)) {
|
|
148750
148763
|
const outcome = prettifyOutcome(eventMessage2.outcome);
|
|
@@ -161654,6 +161667,12 @@ async function typesHandler(args) {
|
|
|
161654
161667
|
rules: config.rules,
|
|
161655
161668
|
queues: config.queues,
|
|
161656
161669
|
constellation: config.constellation,
|
|
161670
|
+
send_email: config.send_email,
|
|
161671
|
+
vectorize: config.vectorize,
|
|
161672
|
+
hyperdrive: config.hyperdrive,
|
|
161673
|
+
mtls_certificates: config.mtls_certificates,
|
|
161674
|
+
browser: config.browser,
|
|
161675
|
+
ai: config.ai,
|
|
161657
161676
|
secrets
|
|
161658
161677
|
};
|
|
161659
161678
|
await generateTypes(
|
|
@@ -161757,6 +161776,32 @@ async function generateTypes(configToDTS, config, envInterface, outputPath) {
|
|
|
161757
161776
|
}
|
|
161758
161777
|
}
|
|
161759
161778
|
}
|
|
161779
|
+
if (configToDTS.send_email) {
|
|
161780
|
+
for (const sendEmail of configToDTS.send_email) {
|
|
161781
|
+
envTypeStructure.push(`${sendEmail.name}: SendEmail;`);
|
|
161782
|
+
}
|
|
161783
|
+
}
|
|
161784
|
+
if (configToDTS.vectorize) {
|
|
161785
|
+
for (const vectorize2 of configToDTS.vectorize) {
|
|
161786
|
+
envTypeStructure.push(`${vectorize2.binding}: VectorizeIndex;`);
|
|
161787
|
+
}
|
|
161788
|
+
}
|
|
161789
|
+
if (configToDTS.hyperdrive) {
|
|
161790
|
+
for (const hyperdrive2 of configToDTS.hyperdrive) {
|
|
161791
|
+
envTypeStructure.push(`${hyperdrive2.binding}: Hyperdrive;`);
|
|
161792
|
+
}
|
|
161793
|
+
}
|
|
161794
|
+
if (configToDTS.mtls_certificates) {
|
|
161795
|
+
for (const mtlsCertificate of configToDTS.mtls_certificates) {
|
|
161796
|
+
envTypeStructure.push(`${mtlsCertificate.binding}: Fetcher;`);
|
|
161797
|
+
}
|
|
161798
|
+
}
|
|
161799
|
+
if (configToDTS.browser) {
|
|
161800
|
+
envTypeStructure.push(`${configToDTS.browser.binding}: Fetcher;`);
|
|
161801
|
+
}
|
|
161802
|
+
if (configToDTS.ai) {
|
|
161803
|
+
envTypeStructure.push(`${configToDTS.ai.binding}: unknown;`);
|
|
161804
|
+
}
|
|
161760
161805
|
const modulesTypeStructure = [];
|
|
161761
161806
|
if (configToDTS.rules) {
|
|
161762
161807
|
const moduleTypeMap = {
|
|
@@ -162208,7 +162253,6 @@ __name(vectorize, "vectorize");
|
|
|
162208
162253
|
// src/versions/index.ts
|
|
162209
162254
|
init_import_meta_url();
|
|
162210
162255
|
var import_node_path47 = __toESM(require("node:path"));
|
|
162211
|
-
var import_chalk13 = __toESM(require_chalk());
|
|
162212
162256
|
|
|
162213
162257
|
// src/versions/upload.ts
|
|
162214
162258
|
init_import_meta_url();
|
|
@@ -162675,37 +162719,11 @@ async function noBundleWorker(entry, rules, outDir) {
|
|
|
162675
162719
|
__name(noBundleWorker, "noBundleWorker");
|
|
162676
162720
|
|
|
162677
162721
|
// src/versions/index.ts
|
|
162678
|
-
async function standardPricingWarning2(
|
|
162679
|
-
if (
|
|
162680
|
-
|
|
162681
|
-
|
|
162682
|
-
|
|
162683
|
-
);
|
|
162684
|
-
}
|
|
162685
|
-
return;
|
|
162686
|
-
}
|
|
162687
|
-
try {
|
|
162688
|
-
const { standard, reason } = await fetchResult(`/accounts/${accountId}/workers/standard`);
|
|
162689
|
-
if (!standard && reason !== "enterprise without override") {
|
|
162690
|
-
logger.log(
|
|
162691
|
-
import_chalk13.default.blue(
|
|
162692
|
-
`\u{1F6A7} New Workers Standard pricing is now available. Please visit the dashboard to view details and opt-in to new pricing: https://dash.cloudflare.com/${accountId}/workers/standard/opt-in.`
|
|
162693
|
-
)
|
|
162694
|
-
);
|
|
162695
|
-
if (config.limits?.cpu_ms !== void 0) {
|
|
162696
|
-
logger.warn(
|
|
162697
|
-
"The `limits` defined in wrangler.toml can only be applied to scripts opted into Workers Standard pricing. Agree to the new pricing details to set limits for your script."
|
|
162698
|
-
);
|
|
162699
|
-
}
|
|
162700
|
-
return;
|
|
162701
|
-
}
|
|
162702
|
-
if (standard && config.usage_model !== void 0) {
|
|
162703
|
-
logger.warn(
|
|
162704
|
-
"The `usage_model` defined in wrangler.toml is no longer used because you have opted into Workers Standard pricing. Please remove this setting from your wrangler.toml and use the dashboard to configure the usage model for your script."
|
|
162705
|
-
);
|
|
162706
|
-
return;
|
|
162707
|
-
}
|
|
162708
|
-
} catch {
|
|
162722
|
+
async function standardPricingWarning2(config) {
|
|
162723
|
+
if (config.usage_model !== void 0) {
|
|
162724
|
+
logger.warn(
|
|
162725
|
+
"The `usage_model` defined in wrangler.toml is deprecated and no longer used. Visit our developer docs for details: https://developers.cloudflare.com/workers/wrangler/configuration/#usage-model"
|
|
162726
|
+
);
|
|
162709
162727
|
}
|
|
162710
162728
|
}
|
|
162711
162729
|
__name(standardPricingWarning2, "standardPricingWarning");
|
|
@@ -162832,7 +162850,7 @@ async function versionsUploadHandler(args) {
|
|
|
162832
162850
|
const cliVars = collectKeyValues(args.var);
|
|
162833
162851
|
const cliDefines = collectKeyValues(args.define);
|
|
162834
162852
|
const accountId = args.dryRun ? void 0 : await requireAuth(config);
|
|
162835
|
-
await standardPricingWarning2(
|
|
162853
|
+
await standardPricingWarning2(config);
|
|
162836
162854
|
await versionsUpload({
|
|
162837
162855
|
config,
|
|
162838
162856
|
accountId,
|
|
@@ -162864,7 +162882,7 @@ __name(versionsUploadHandler, "versionsUploadHandler");
|
|
|
162864
162882
|
|
|
162865
162883
|
// src/whoami.ts
|
|
162866
162884
|
init_import_meta_url();
|
|
162867
|
-
var
|
|
162885
|
+
var import_chalk12 = __toESM(require_chalk());
|
|
162868
162886
|
async function whoami() {
|
|
162869
162887
|
logger.log("Getting User settings...");
|
|
162870
162888
|
const user = await getUserInfo();
|
|
@@ -162875,7 +162893,7 @@ async function whoami() {
|
|
|
162875
162893
|
}
|
|
162876
162894
|
if (user.email !== void 0) {
|
|
162877
162895
|
logger.log(
|
|
162878
|
-
`\u{1F44B} You are logged in with an ${user.authType}, associated with the email ${
|
|
162896
|
+
`\u{1F44B} You are logged in with an ${user.authType}, associated with the email ${import_chalk12.default.blue(user.email)}!`
|
|
162879
162897
|
);
|
|
162880
162898
|
} else {
|
|
162881
162899
|
logger.log(
|
|
@@ -163449,7 +163467,7 @@ async function main(argv) {
|
|
|
163449
163467
|
const envAuth = getAuthFromEnv();
|
|
163450
163468
|
if (envAuth !== void 0 && "apiToken" in envAuth) {
|
|
163451
163469
|
const message = "\u{1F4CE} It looks like you are authenticating Wrangler via a custom API token set in an environment variable.\nPlease ensure it has the correct permissions for this operation.\n";
|
|
163452
|
-
logger.log(
|
|
163470
|
+
logger.log(import_chalk13.default.yellow(message));
|
|
163453
163471
|
}
|
|
163454
163472
|
await whoami();
|
|
163455
163473
|
} else if (e3 instanceof ParseError) {
|
|
@@ -164510,9 +164528,9 @@ async function rollbackDeployment(accountId, scriptName, { send_metrics: sendMet
|
|
|
164510
164528
|
rollbackMessage = message;
|
|
164511
164529
|
} else {
|
|
164512
164530
|
if (!await confirm(
|
|
164513
|
-
`This deployment ${
|
|
164531
|
+
`This deployment ${import_chalk14.default.underline(
|
|
164514
164532
|
firstHash
|
|
164515
|
-
)} will immediately replace the current deployment and become the active deployment across all your deployed routes and domains. However, your local development environment will not be affected by this rollback. ${
|
|
164533
|
+
)} will immediately replace the current deployment and become the active deployment across all your deployed routes and domains. However, your local development environment will not be affected by this rollback. ${import_chalk14.default.blue.bold(
|
|
164516
164534
|
"Note:"
|
|
164517
164535
|
)} Rolling back to a previous deployment will not rollback any of the bound resources (Durable Object, R2, KV, etc.).`
|
|
164518
164536
|
)) {
|
|
@@ -164649,7 +164667,7 @@ __name(addHyphens, "addHyphens");
|
|
|
164649
164667
|
|
|
164650
164668
|
// src/routes.ts
|
|
164651
164669
|
init_import_meta_url();
|
|
164652
|
-
var
|
|
164670
|
+
var import_chalk15 = __toESM(require_chalk());
|
|
164653
164671
|
async function getWorkersDevSubdomain(accountId) {
|
|
164654
164672
|
try {
|
|
164655
164673
|
const { subdomain } = await fetchResult(
|
|
@@ -164710,8 +164728,8 @@ async function registerSubdomain(accountId) {
|
|
|
164710
164728
|
}
|
|
164711
164729
|
}
|
|
164712
164730
|
const ok = await confirm(
|
|
164713
|
-
`Creating a workers.dev subdomain for your account at ${
|
|
164714
|
-
|
|
164731
|
+
`Creating a workers.dev subdomain for your account at ${import_chalk15.default.blue(
|
|
164732
|
+
import_chalk15.default.underline(`https://${potentialName}.workers.dev`)
|
|
164715
164733
|
)}. Ok to proceed?`
|
|
164716
164734
|
);
|
|
164717
164735
|
if (!ok) {
|
|
@@ -164747,8 +164765,8 @@ ${onboardingLink}`);
|
|
|
164747
164765
|
}
|
|
164748
164766
|
logger.log("Success! It may take a few minutes for DNS records to update.");
|
|
164749
164767
|
logger.log(
|
|
164750
|
-
`Visit ${
|
|
164751
|
-
|
|
164768
|
+
`Visit ${import_chalk15.default.blue(
|
|
164769
|
+
import_chalk15.default.underline(
|
|
164752
164770
|
`https://dash.cloudflare.com/${accountId}/workers/subdomain`
|
|
164753
164771
|
)
|
|
164754
164772
|
)} to edit your workers.dev subdomain`
|
|
@@ -165311,13 +165329,13 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
|
165311
165329
|
const assignedRoutes = routesWithOtherBindings[worker];
|
|
165312
165330
|
errorMessage += `"${worker}" is already assigned to routes:
|
|
165313
165331
|
${assignedRoutes.map(
|
|
165314
|
-
(r3) => ` - ${
|
|
165332
|
+
(r3) => ` - ${import_chalk16.default.underline(r3)}
|
|
165315
165333
|
`
|
|
165316
165334
|
)}`;
|
|
165317
165335
|
}
|
|
165318
165336
|
const resolution = "Unassign other workers from the routes you want to deploy to, and then try again.";
|
|
165319
|
-
const dashLink = `Visit ${
|
|
165320
|
-
|
|
165337
|
+
const dashLink = `Visit ${import_chalk16.default.blue(
|
|
165338
|
+
import_chalk16.default.underline(
|
|
165321
165339
|
`https://dash.cloudflare.com/${accountId}/workers/overview`
|
|
165322
165340
|
)
|
|
165323
165341
|
)} to unassign a worker from a route.`;
|
|
@@ -167333,7 +167351,7 @@ var dev_default = withErrorBoundary(DevImplementation, {
|
|
|
167333
167351
|
init_import_meta_url();
|
|
167334
167352
|
var path53 = __toESM(require("node:path"));
|
|
167335
167353
|
var util3 = __toESM(require("node:util"));
|
|
167336
|
-
var
|
|
167354
|
+
var import_chalk17 = __toESM(require_chalk());
|
|
167337
167355
|
var import_signal_exit9 = __toESM(require_signal_exit());
|
|
167338
167356
|
async function startDevServer(props) {
|
|
167339
167357
|
let workerDefinitions = {};
|
|
@@ -167639,7 +167657,7 @@ async function startLocalServer(props) {
|
|
|
167639
167657
|
"\u2394 Support for external Durable Objects in local mode is experimental and may change."
|
|
167640
167658
|
);
|
|
167641
167659
|
}
|
|
167642
|
-
logger.log(
|
|
167660
|
+
logger.log(import_chalk17.default.dim("\u2394 Starting local server..."));
|
|
167643
167661
|
const config = await localPropsToConfigBundle(props);
|
|
167644
167662
|
return new Promise((resolve19, reject) => {
|
|
167645
167663
|
const server2 = new MiniflareServer();
|
|
@@ -167687,7 +167705,7 @@ async function startLocalServer(props) {
|
|
|
167687
167705
|
reject(error2);
|
|
167688
167706
|
});
|
|
167689
167707
|
const removeMiniflareServerExitListener = (0, import_signal_exit9.default)(() => {
|
|
167690
|
-
logger.log(
|
|
167708
|
+
logger.log(import_chalk17.default.dim("\u2394 Shutting down local server..."));
|
|
167691
167709
|
void server2.onDispose();
|
|
167692
167710
|
});
|
|
167693
167711
|
const abortController = new AbortController();
|