create-cloudflare 2.68.3 → 2.68.4
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/dist/cli.js +384 -95
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -25398,7 +25398,7 @@ var require_onetime = __commonJS({
|
|
|
25398
25398
|
});
|
|
25399
25399
|
|
|
25400
25400
|
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js
|
|
25401
|
-
var
|
|
25401
|
+
var require_signals2 = __commonJS({
|
|
25402
25402
|
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
|
|
25403
25403
|
module2.exports = [
|
|
25404
25404
|
"SIGABRT",
|
|
@@ -25435,7 +25435,7 @@ var require_signals = __commonJS({
|
|
|
25435
25435
|
});
|
|
25436
25436
|
|
|
25437
25437
|
// ../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js
|
|
25438
|
-
var
|
|
25438
|
+
var require_signal_exit2 = __commonJS({
|
|
25439
25439
|
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
|
|
25440
25440
|
var process13 = global.process;
|
|
25441
25441
|
var processOk = function(process14) {
|
|
@@ -25448,7 +25448,7 @@ var require_signal_exit = __commonJS({
|
|
|
25448
25448
|
};
|
|
25449
25449
|
} else {
|
|
25450
25450
|
assert7 = require("assert");
|
|
25451
|
-
signals =
|
|
25451
|
+
signals = require_signals2();
|
|
25452
25452
|
isWin = /^win/i.test(process13.platform);
|
|
25453
25453
|
EE = require("events");
|
|
25454
25454
|
if (typeof EE !== "function") {
|
|
@@ -74957,55 +74957,6 @@ function constructWranglerConfig(workerOrWorkers) {
|
|
|
74957
74957
|
}
|
|
74958
74958
|
__name(constructWranglerConfig, "constructWranglerConfig");
|
|
74959
74959
|
|
|
74960
|
-
// ../workers-utils/dist/chunk-O4YGOZSW.mjs
|
|
74961
|
-
var MetricsRegistry = class {
|
|
74962
|
-
static {
|
|
74963
|
-
__name(this, "MetricsRegistry");
|
|
74964
|
-
}
|
|
74965
|
-
counters = [];
|
|
74966
|
-
/**
|
|
74967
|
-
* Create and register a new counter metric.
|
|
74968
|
-
*
|
|
74969
|
-
* @param name - The metric name (e.g. "service_request_total")
|
|
74970
|
-
* @param help - A human-readable description of the metric
|
|
74971
|
-
* @returns A Counter that can be incremented
|
|
74972
|
-
*/
|
|
74973
|
-
createCounter(name3, help) {
|
|
74974
|
-
const entry = { name: name3, help, value: 0 };
|
|
74975
|
-
this.counters.push(entry);
|
|
74976
|
-
return {
|
|
74977
|
-
inc: /* @__PURE__ */ __name(() => {
|
|
74978
|
-
entry.value++;
|
|
74979
|
-
}, "inc"),
|
|
74980
|
-
add: /* @__PURE__ */ __name((amount) => {
|
|
74981
|
-
if (amount < 0) {
|
|
74982
|
-
throw new Error("Counter value cannot decrease");
|
|
74983
|
-
}
|
|
74984
|
-
entry.value += amount;
|
|
74985
|
-
}, "add")
|
|
74986
|
-
};
|
|
74987
|
-
}
|
|
74988
|
-
/**
|
|
74989
|
-
* Serialize all registered metrics in Prometheus text exposition format.
|
|
74990
|
-
*
|
|
74991
|
-
* @see https://prometheus.io/docs/instrumenting/exposition_formats/#text-based-format
|
|
74992
|
-
*/
|
|
74993
|
-
metrics() {
|
|
74994
|
-
return this.counters.map((c2) => {
|
|
74995
|
-
let result = "";
|
|
74996
|
-
if (c2.help.length > 0) {
|
|
74997
|
-
result += `# HELP ${c2.name} ${c2.help}
|
|
74998
|
-
`;
|
|
74999
|
-
}
|
|
75000
|
-
result += `# TYPE ${c2.name} counter
|
|
75001
|
-
`;
|
|
75002
|
-
result += `${c2.name} ${c2.value}
|
|
75003
|
-
`;
|
|
75004
|
-
return result;
|
|
75005
|
-
}).join("");
|
|
75006
|
-
}
|
|
75007
|
-
};
|
|
75008
|
-
|
|
75009
74960
|
// ../workers-utils/dist/chunk-GMTGAG26.mjs
|
|
75010
74961
|
var import_node_fs = __toESM(require("node:fs"), 1);
|
|
75011
74962
|
var import_node_path = __toESM(require("node:path"), 1);
|
|
@@ -77890,7 +77841,7 @@ var require_XDGAppPaths = __commonJS2({
|
|
|
77890
77841
|
}
|
|
77891
77842
|
__name(typeOf, "typeOf");
|
|
77892
77843
|
function Adapt(adapter_) {
|
|
77893
|
-
var meta = adapter_.meta,
|
|
77844
|
+
var meta = adapter_.meta, path52 = adapter_.path, xdg = adapter_.xdg;
|
|
77894
77845
|
var XDGAppPaths_ = /* @__PURE__ */ (function() {
|
|
77895
77846
|
function XDGAppPaths_2(options_) {
|
|
77896
77847
|
if (options_ === void 0) {
|
|
@@ -77913,7 +77864,7 @@ var require_XDGAppPaths = __commonJS2({
|
|
|
77913
77864
|
meta.mainFilename()
|
|
77914
77865
|
];
|
|
77915
77866
|
var nameFallback = "$eval";
|
|
77916
|
-
var name3 =
|
|
77867
|
+
var name3 = path52.parse(((_c2 = namePriorityList.find(function(e2) {
|
|
77917
77868
|
return isString2(e2);
|
|
77918
77869
|
})) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
|
|
77919
77870
|
XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
|
|
@@ -77934,28 +77885,28 @@ var require_XDGAppPaths = __commonJS2({
|
|
|
77934
77885
|
}
|
|
77935
77886
|
__name(finalPathSegment, "finalPathSegment");
|
|
77936
77887
|
XDGAppPaths.cache = /* @__PURE__ */ __name(function cache(dirOptions) {
|
|
77937
|
-
return
|
|
77888
|
+
return path52.join(xdg.cache(), finalPathSegment(dirOptions));
|
|
77938
77889
|
}, "cache");
|
|
77939
77890
|
XDGAppPaths.config = /* @__PURE__ */ __name(function config49(dirOptions) {
|
|
77940
|
-
return
|
|
77891
|
+
return path52.join(xdg.config(), finalPathSegment(dirOptions));
|
|
77941
77892
|
}, "config");
|
|
77942
77893
|
XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
|
|
77943
|
-
return
|
|
77894
|
+
return path52.join(xdg.data(), finalPathSegment(dirOptions));
|
|
77944
77895
|
}, "data");
|
|
77945
77896
|
XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
|
|
77946
|
-
return xdg.runtime() ?
|
|
77897
|
+
return xdg.runtime() ? path52.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
|
|
77947
77898
|
}, "runtime");
|
|
77948
77899
|
XDGAppPaths.state = /* @__PURE__ */ __name(function state(dirOptions) {
|
|
77949
|
-
return
|
|
77900
|
+
return path52.join(xdg.state(), finalPathSegment(dirOptions));
|
|
77950
77901
|
}, "state");
|
|
77951
77902
|
XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
|
|
77952
77903
|
return xdg.configDirs().map(function(s) {
|
|
77953
|
-
return
|
|
77904
|
+
return path52.join(s, finalPathSegment(dirOptions));
|
|
77954
77905
|
});
|
|
77955
77906
|
}, "configDirs");
|
|
77956
77907
|
XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
|
|
77957
77908
|
return xdg.dataDirs().map(function(s) {
|
|
77958
|
-
return
|
|
77909
|
+
return path52.join(s, finalPathSegment(dirOptions));
|
|
77959
77910
|
});
|
|
77960
77911
|
}, "dataDirs");
|
|
77961
77912
|
return XDGAppPaths;
|
|
@@ -77979,7 +77930,7 @@ var require_XDG = __commonJS2({
|
|
|
77979
77930
|
exports2.__esModule = true;
|
|
77980
77931
|
exports2.Adapt = void 0;
|
|
77981
77932
|
function Adapt(adapter_) {
|
|
77982
|
-
var env3 = adapter_.env, osPaths = adapter_.osPaths,
|
|
77933
|
+
var env3 = adapter_.env, osPaths = adapter_.osPaths, path52 = adapter_.path;
|
|
77983
77934
|
var isMacOS = /^darwin$/i.test(adapter_.process.platform);
|
|
77984
77935
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
|
77985
77936
|
function baseDir() {
|
|
@@ -77987,7 +77938,7 @@ var require_XDG = __commonJS2({
|
|
|
77987
77938
|
}
|
|
77988
77939
|
__name(baseDir, "baseDir");
|
|
77989
77940
|
function valOrPath(val, pathSegments) {
|
|
77990
|
-
return val ||
|
|
77941
|
+
return val || path52.join.apply(path52, pathSegments);
|
|
77991
77942
|
}
|
|
77992
77943
|
__name(valOrPath, "valOrPath");
|
|
77993
77944
|
var linux = /* @__PURE__ */ __name(function() {
|
|
@@ -78066,11 +78017,11 @@ var require_XDG = __commonJS2({
|
|
|
78066
78017
|
XDG.state = extension.state;
|
|
78067
78018
|
XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
|
|
78068
78019
|
var pathList = env3.get("XDG_CONFIG_DIRS");
|
|
78069
|
-
return __spreadArray2([extension.config()], pathList ? pathList.split(
|
|
78020
|
+
return __spreadArray2([extension.config()], pathList ? pathList.split(path52.delimiter) : []);
|
|
78070
78021
|
}, "configDirs");
|
|
78071
78022
|
XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
|
|
78072
78023
|
var pathList = env3.get("XDG_DATA_DIRS");
|
|
78073
|
-
return __spreadArray2([extension.data()], pathList ? pathList.split(
|
|
78024
|
+
return __spreadArray2([extension.data()], pathList ? pathList.split(path52.delimiter) : []);
|
|
78074
78025
|
}, "dataDirs");
|
|
78075
78026
|
return XDG;
|
|
78076
78027
|
}
|
|
@@ -78097,7 +78048,7 @@ var require_OSPaths = __commonJS2({
|
|
|
78097
78048
|
}
|
|
78098
78049
|
__name(isEmpty, "isEmpty");
|
|
78099
78050
|
function Adapt(adapter_) {
|
|
78100
|
-
var env3 = adapter_.env, os22 = adapter_.os,
|
|
78051
|
+
var env3 = adapter_.env, os22 = adapter_.os, path52 = adapter_.path;
|
|
78101
78052
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
|
78102
78053
|
function normalizePath(path_) {
|
|
78103
78054
|
return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
|
|
@@ -78112,7 +78063,7 @@ var require_OSPaths = __commonJS2({
|
|
|
78112
78063
|
typeof os22.homedir === "function" ? os22.homedir() : void 0,
|
|
78113
78064
|
env3.get("USERPROFILE"),
|
|
78114
78065
|
env3.get("HOME"),
|
|
78115
|
-
env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ?
|
|
78066
|
+
env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ? path52.join(env3.get("HOMEDRIVE") || "", env3.get("HOMEPATH") || "") : void 0
|
|
78116
78067
|
];
|
|
78117
78068
|
return normalizePath(priorityList.find(function(v) {
|
|
78118
78069
|
return !isEmpty(v);
|
|
@@ -78123,7 +78074,7 @@ var require_OSPaths = __commonJS2({
|
|
|
78123
78074
|
__name(home, "home");
|
|
78124
78075
|
function temp() {
|
|
78125
78076
|
function joinPathToBase(base, segments) {
|
|
78126
|
-
return base ?
|
|
78077
|
+
return base ? path52.join.apply(path52, __spreadArray2([base], segments)) : void 0;
|
|
78127
78078
|
}
|
|
78128
78079
|
__name(joinPathToBase, "joinPathToBase");
|
|
78129
78080
|
function posix() {
|
|
@@ -78226,7 +78177,7 @@ var require_node = __commonJS2({
|
|
|
78226
78177
|
exports2.__esModule = true;
|
|
78227
78178
|
exports2.adapter = void 0;
|
|
78228
78179
|
var os22 = __importStar2(__require("os"));
|
|
78229
|
-
var
|
|
78180
|
+
var path52 = __importStar2(__require("path"));
|
|
78230
78181
|
exports2.adapter = {
|
|
78231
78182
|
atImportPermissions: { env: true },
|
|
78232
78183
|
env: {
|
|
@@ -78235,7 +78186,7 @@ var require_node = __commonJS2({
|
|
|
78235
78186
|
}, "get")
|
|
78236
78187
|
},
|
|
78237
78188
|
os: os22,
|
|
78238
|
-
path:
|
|
78189
|
+
path: path52,
|
|
78239
78190
|
process
|
|
78240
78191
|
};
|
|
78241
78192
|
}
|
|
@@ -78277,7 +78228,7 @@ var require_node2 = __commonJS2({
|
|
|
78277
78228
|
};
|
|
78278
78229
|
exports2.__esModule = true;
|
|
78279
78230
|
exports2.adapter = void 0;
|
|
78280
|
-
var
|
|
78231
|
+
var path52 = __importStar2(__require("path"));
|
|
78281
78232
|
var os_paths_1 = __importDefault2(require_mod_cjs());
|
|
78282
78233
|
exports2.adapter = {
|
|
78283
78234
|
atImportPermissions: { env: true },
|
|
@@ -78287,7 +78238,7 @@ var require_node2 = __commonJS2({
|
|
|
78287
78238
|
}, "get")
|
|
78288
78239
|
},
|
|
78289
78240
|
osPaths: os_paths_1["default"],
|
|
78290
|
-
path:
|
|
78241
|
+
path: path52,
|
|
78291
78242
|
process
|
|
78292
78243
|
};
|
|
78293
78244
|
}
|
|
@@ -78329,7 +78280,7 @@ var require_node3 = __commonJS2({
|
|
|
78329
78280
|
};
|
|
78330
78281
|
exports2.__esModule = true;
|
|
78331
78282
|
exports2.adapter = void 0;
|
|
78332
|
-
var
|
|
78283
|
+
var path52 = __importStar2(__require("path"));
|
|
78333
78284
|
var xdg_portable_1 = __importDefault2(require_mod_cjs2());
|
|
78334
78285
|
exports2.adapter = {
|
|
78335
78286
|
atImportPermissions: { env: true, read: true },
|
|
@@ -78344,7 +78295,7 @@ var require_node3 = __commonJS2({
|
|
|
78344
78295
|
return process.pkg ? process.execPath : void 0;
|
|
78345
78296
|
}, "pkgMainFilename")
|
|
78346
78297
|
},
|
|
78347
|
-
path:
|
|
78298
|
+
path: path52,
|
|
78348
78299
|
process,
|
|
78349
78300
|
xdg: xdg_portable_1["default"]
|
|
78350
78301
|
};
|
|
@@ -78357,15 +78308,207 @@ var require_mod_cjs3 = __commonJS2({
|
|
|
78357
78308
|
module2.exports = XDGAppPaths_js_1.Adapt(node_js_1.adapter).XDGAppPaths;
|
|
78358
78309
|
}
|
|
78359
78310
|
});
|
|
78311
|
+
var require_signals = __commonJS2({
|
|
78312
|
+
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/signals.js"(exports2, module2) {
|
|
78313
|
+
module2.exports = [
|
|
78314
|
+
"SIGABRT",
|
|
78315
|
+
"SIGALRM",
|
|
78316
|
+
"SIGHUP",
|
|
78317
|
+
"SIGINT",
|
|
78318
|
+
"SIGTERM"
|
|
78319
|
+
];
|
|
78320
|
+
if (process.platform !== "win32") {
|
|
78321
|
+
module2.exports.push(
|
|
78322
|
+
"SIGVTALRM",
|
|
78323
|
+
"SIGXCPU",
|
|
78324
|
+
"SIGXFSZ",
|
|
78325
|
+
"SIGUSR2",
|
|
78326
|
+
"SIGTRAP",
|
|
78327
|
+
"SIGSYS",
|
|
78328
|
+
"SIGQUIT",
|
|
78329
|
+
"SIGIOT"
|
|
78330
|
+
// should detect profiler and enable/disable accordingly.
|
|
78331
|
+
// see #21
|
|
78332
|
+
// 'SIGPROF'
|
|
78333
|
+
);
|
|
78334
|
+
}
|
|
78335
|
+
if (process.platform === "linux") {
|
|
78336
|
+
module2.exports.push(
|
|
78337
|
+
"SIGIO",
|
|
78338
|
+
"SIGPOLL",
|
|
78339
|
+
"SIGPWR",
|
|
78340
|
+
"SIGSTKFLT",
|
|
78341
|
+
"SIGUNUSED"
|
|
78342
|
+
);
|
|
78343
|
+
}
|
|
78344
|
+
}
|
|
78345
|
+
});
|
|
78346
|
+
var require_signal_exit = __commonJS2({
|
|
78347
|
+
"../../node_modules/.pnpm/signal-exit@3.0.7/node_modules/signal-exit/index.js"(exports2, module2) {
|
|
78348
|
+
var process22 = global.process;
|
|
78349
|
+
var processOk = /* @__PURE__ */ __name(function(process32) {
|
|
78350
|
+
return process32 && typeof process32 === "object" && typeof process32.removeListener === "function" && typeof process32.emit === "function" && typeof process32.reallyExit === "function" && typeof process32.listeners === "function" && typeof process32.kill === "function" && typeof process32.pid === "number" && typeof process32.on === "function";
|
|
78351
|
+
}, "processOk");
|
|
78352
|
+
if (!processOk(process22)) {
|
|
78353
|
+
module2.exports = function() {
|
|
78354
|
+
return function() {
|
|
78355
|
+
};
|
|
78356
|
+
};
|
|
78357
|
+
} else {
|
|
78358
|
+
assert22 = __require("assert");
|
|
78359
|
+
signals = require_signals();
|
|
78360
|
+
isWin = /^win/i.test(process22.platform);
|
|
78361
|
+
EE = __require("events");
|
|
78362
|
+
if (typeof EE !== "function") {
|
|
78363
|
+
EE = EE.EventEmitter;
|
|
78364
|
+
}
|
|
78365
|
+
if (process22.__signal_exit_emitter__) {
|
|
78366
|
+
emitter = process22.__signal_exit_emitter__;
|
|
78367
|
+
} else {
|
|
78368
|
+
emitter = process22.__signal_exit_emitter__ = new EE();
|
|
78369
|
+
emitter.count = 0;
|
|
78370
|
+
emitter.emitted = {};
|
|
78371
|
+
}
|
|
78372
|
+
if (!emitter.infinite) {
|
|
78373
|
+
emitter.setMaxListeners(Infinity);
|
|
78374
|
+
emitter.infinite = true;
|
|
78375
|
+
}
|
|
78376
|
+
module2.exports = function(cb, opts) {
|
|
78377
|
+
if (!processOk(global.process)) {
|
|
78378
|
+
return function() {
|
|
78379
|
+
};
|
|
78380
|
+
}
|
|
78381
|
+
assert22.equal(typeof cb, "function", "a callback must be provided for exit handler");
|
|
78382
|
+
if (loaded === false) {
|
|
78383
|
+
load();
|
|
78384
|
+
}
|
|
78385
|
+
var ev = "exit";
|
|
78386
|
+
if (opts && opts.alwaysLast) {
|
|
78387
|
+
ev = "afterexit";
|
|
78388
|
+
}
|
|
78389
|
+
var remove = /* @__PURE__ */ __name(function() {
|
|
78390
|
+
emitter.removeListener(ev, cb);
|
|
78391
|
+
if (emitter.listeners("exit").length === 0 && emitter.listeners("afterexit").length === 0) {
|
|
78392
|
+
unload();
|
|
78393
|
+
}
|
|
78394
|
+
}, "remove");
|
|
78395
|
+
emitter.on(ev, cb);
|
|
78396
|
+
return remove;
|
|
78397
|
+
};
|
|
78398
|
+
unload = /* @__PURE__ */ __name(function unload2() {
|
|
78399
|
+
if (!loaded || !processOk(global.process)) {
|
|
78400
|
+
return;
|
|
78401
|
+
}
|
|
78402
|
+
loaded = false;
|
|
78403
|
+
signals.forEach(function(sig) {
|
|
78404
|
+
try {
|
|
78405
|
+
process22.removeListener(sig, sigListeners[sig]);
|
|
78406
|
+
} catch (er) {
|
|
78407
|
+
}
|
|
78408
|
+
});
|
|
78409
|
+
process22.emit = originalProcessEmit;
|
|
78410
|
+
process22.reallyExit = originalProcessReallyExit;
|
|
78411
|
+
emitter.count -= 1;
|
|
78412
|
+
}, "unload");
|
|
78413
|
+
module2.exports.unload = unload;
|
|
78414
|
+
emit = /* @__PURE__ */ __name(function emit2(event, code, signal) {
|
|
78415
|
+
if (emitter.emitted[event]) {
|
|
78416
|
+
return;
|
|
78417
|
+
}
|
|
78418
|
+
emitter.emitted[event] = true;
|
|
78419
|
+
emitter.emit(event, code, signal);
|
|
78420
|
+
}, "emit");
|
|
78421
|
+
sigListeners = {};
|
|
78422
|
+
signals.forEach(function(sig) {
|
|
78423
|
+
sigListeners[sig] = /* @__PURE__ */ __name(function listener() {
|
|
78424
|
+
if (!processOk(global.process)) {
|
|
78425
|
+
return;
|
|
78426
|
+
}
|
|
78427
|
+
var listeners = process22.listeners(sig);
|
|
78428
|
+
if (listeners.length === emitter.count) {
|
|
78429
|
+
unload();
|
|
78430
|
+
emit("exit", null, sig);
|
|
78431
|
+
emit("afterexit", null, sig);
|
|
78432
|
+
if (isWin && sig === "SIGHUP") {
|
|
78433
|
+
sig = "SIGINT";
|
|
78434
|
+
}
|
|
78435
|
+
process22.kill(process22.pid, sig);
|
|
78436
|
+
}
|
|
78437
|
+
}, "listener");
|
|
78438
|
+
});
|
|
78439
|
+
module2.exports.signals = function() {
|
|
78440
|
+
return signals;
|
|
78441
|
+
};
|
|
78442
|
+
loaded = false;
|
|
78443
|
+
load = /* @__PURE__ */ __name(function load2() {
|
|
78444
|
+
if (loaded || !processOk(global.process)) {
|
|
78445
|
+
return;
|
|
78446
|
+
}
|
|
78447
|
+
loaded = true;
|
|
78448
|
+
emitter.count += 1;
|
|
78449
|
+
signals = signals.filter(function(sig) {
|
|
78450
|
+
try {
|
|
78451
|
+
process22.on(sig, sigListeners[sig]);
|
|
78452
|
+
return true;
|
|
78453
|
+
} catch (er) {
|
|
78454
|
+
return false;
|
|
78455
|
+
}
|
|
78456
|
+
});
|
|
78457
|
+
process22.emit = processEmit;
|
|
78458
|
+
process22.reallyExit = processReallyExit;
|
|
78459
|
+
}, "load");
|
|
78460
|
+
module2.exports.load = load;
|
|
78461
|
+
originalProcessReallyExit = process22.reallyExit;
|
|
78462
|
+
processReallyExit = /* @__PURE__ */ __name(function processReallyExit2(code) {
|
|
78463
|
+
if (!processOk(global.process)) {
|
|
78464
|
+
return;
|
|
78465
|
+
}
|
|
78466
|
+
process22.exitCode = code || /* istanbul ignore next */
|
|
78467
|
+
0;
|
|
78468
|
+
emit("exit", process22.exitCode, null);
|
|
78469
|
+
emit("afterexit", process22.exitCode, null);
|
|
78470
|
+
originalProcessReallyExit.call(process22, process22.exitCode);
|
|
78471
|
+
}, "processReallyExit");
|
|
78472
|
+
originalProcessEmit = process22.emit;
|
|
78473
|
+
processEmit = /* @__PURE__ */ __name(function processEmit2(ev, arg) {
|
|
78474
|
+
if (ev === "exit" && processOk(global.process)) {
|
|
78475
|
+
if (arg !== void 0) {
|
|
78476
|
+
process22.exitCode = arg;
|
|
78477
|
+
}
|
|
78478
|
+
var ret = originalProcessEmit.apply(this, arguments);
|
|
78479
|
+
emit("exit", process22.exitCode, null);
|
|
78480
|
+
emit("afterexit", process22.exitCode, null);
|
|
78481
|
+
return ret;
|
|
78482
|
+
} else {
|
|
78483
|
+
return originalProcessEmit.apply(this, arguments);
|
|
78484
|
+
}
|
|
78485
|
+
}, "processEmit");
|
|
78486
|
+
}
|
|
78487
|
+
var assert22;
|
|
78488
|
+
var signals;
|
|
78489
|
+
var isWin;
|
|
78490
|
+
var EE;
|
|
78491
|
+
var emitter;
|
|
78492
|
+
var unload;
|
|
78493
|
+
var emit;
|
|
78494
|
+
var sigListeners;
|
|
78495
|
+
var loaded;
|
|
78496
|
+
var load;
|
|
78497
|
+
var originalProcessReallyExit;
|
|
78498
|
+
var processReallyExit;
|
|
78499
|
+
var originalProcessEmit;
|
|
78500
|
+
var processEmit;
|
|
78501
|
+
}
|
|
78502
|
+
});
|
|
78360
78503
|
var require_command_exists = __commonJS2({
|
|
78361
78504
|
"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports2, module2) {
|
|
78362
78505
|
var exec4 = __require("child_process").exec;
|
|
78363
78506
|
var execSync = __require("child_process").execSync;
|
|
78364
|
-
var
|
|
78365
|
-
var
|
|
78366
|
-
var access =
|
|
78367
|
-
var accessSync2 =
|
|
78368
|
-
var constants2 =
|
|
78507
|
+
var fs32 = __require("fs");
|
|
78508
|
+
var path52 = __require("path");
|
|
78509
|
+
var access = fs32.access;
|
|
78510
|
+
var accessSync2 = fs32.accessSync;
|
|
78511
|
+
var constants2 = fs32.constants || fs32;
|
|
78369
78512
|
var isUsingWindows = process.platform == "win32";
|
|
78370
78513
|
var fileNotExists = /* @__PURE__ */ __name(function(commandName, callback) {
|
|
78371
78514
|
access(
|
|
@@ -78466,8 +78609,8 @@ var require_command_exists = __commonJS2({
|
|
|
78466
78609
|
cleanInput = /* @__PURE__ */ __name(function(s) {
|
|
78467
78610
|
var isPathName = /[\\]/.test(s);
|
|
78468
78611
|
if (isPathName) {
|
|
78469
|
-
var dirname22 = '"' +
|
|
78470
|
-
var basename5 = '"' +
|
|
78612
|
+
var dirname22 = '"' + path52.dirname(s) + '"';
|
|
78613
|
+
var basename5 = '"' + path52.basename(s) + '"';
|
|
78471
78614
|
return dirname22 + ":" + basename5;
|
|
78472
78615
|
}
|
|
78473
78616
|
return '"' + s + '"';
|
|
@@ -78990,8 +79133,8 @@ function getErrorMap() {
|
|
|
78990
79133
|
}
|
|
78991
79134
|
__name(getErrorMap, "getErrorMap");
|
|
78992
79135
|
var makeIssue = /* @__PURE__ */ __name((params) => {
|
|
78993
|
-
const { data, path:
|
|
78994
|
-
const fullPath = [...
|
|
79136
|
+
const { data, path: path52, errorMaps, issueData } = params;
|
|
79137
|
+
const fullPath = [...path52, ...issueData.path || []];
|
|
78995
79138
|
const fullIssue = {
|
|
78996
79139
|
...issueData,
|
|
78997
79140
|
path: fullPath
|
|
@@ -79097,11 +79240,11 @@ var ParseInputLazyPath = class {
|
|
|
79097
79240
|
static {
|
|
79098
79241
|
__name(this, "ParseInputLazyPath");
|
|
79099
79242
|
}
|
|
79100
|
-
constructor(parent, value,
|
|
79243
|
+
constructor(parent, value, path52, key) {
|
|
79101
79244
|
this._cachedPath = [];
|
|
79102
79245
|
this.parent = parent;
|
|
79103
79246
|
this.data = value;
|
|
79104
|
-
this._path =
|
|
79247
|
+
this._path = path52;
|
|
79105
79248
|
this._key = key;
|
|
79106
79249
|
}
|
|
79107
79250
|
get path() {
|
|
@@ -82883,9 +83026,9 @@ Please add "${field}" to "env.${envName}".`
|
|
|
82883
83026
|
return rawEnv[field] ?? defaultValue;
|
|
82884
83027
|
}
|
|
82885
83028
|
__name(notInheritable, "notInheritable");
|
|
82886
|
-
function unwindPropertyPath(root,
|
|
83029
|
+
function unwindPropertyPath(root, path52) {
|
|
82887
83030
|
let container = root;
|
|
82888
|
-
const parts =
|
|
83031
|
+
const parts = path52.split(".");
|
|
82889
83032
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
82890
83033
|
if (!hasProperty(container, parts[i])) {
|
|
82891
83034
|
return;
|
|
@@ -85199,6 +85342,42 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
85199
85342
|
);
|
|
85200
85343
|
isValid2 = false;
|
|
85201
85344
|
}
|
|
85345
|
+
if (hasProperty(value, "schedules") && value.schedules !== void 0) {
|
|
85346
|
+
if (typeof value.schedules === "string") {
|
|
85347
|
+
if (value.schedules.length === 0) {
|
|
85348
|
+
diagnostics.errors.push(
|
|
85349
|
+
`"${field}" bindings "schedules" field must not be an empty string.`
|
|
85350
|
+
);
|
|
85351
|
+
isValid2 = false;
|
|
85352
|
+
}
|
|
85353
|
+
} else if (Array.isArray(value.schedules)) {
|
|
85354
|
+
if (value.schedules.length === 0) {
|
|
85355
|
+
diagnostics.errors.push(
|
|
85356
|
+
`"${field}" bindings "schedules" field must not be an empty array.`
|
|
85357
|
+
);
|
|
85358
|
+
isValid2 = false;
|
|
85359
|
+
} else if (!value.schedules.every((s) => typeof s === "string")) {
|
|
85360
|
+
diagnostics.errors.push(
|
|
85361
|
+
`"${field}" bindings should, optionally, have a string or array of strings "schedules" field but got ${JSON.stringify(
|
|
85362
|
+
value
|
|
85363
|
+
)}.`
|
|
85364
|
+
);
|
|
85365
|
+
isValid2 = false;
|
|
85366
|
+
} else if (value.schedules.some((s) => s === "")) {
|
|
85367
|
+
diagnostics.errors.push(
|
|
85368
|
+
`"${field}" bindings "schedules" field must not contain empty strings.`
|
|
85369
|
+
);
|
|
85370
|
+
isValid2 = false;
|
|
85371
|
+
}
|
|
85372
|
+
} else {
|
|
85373
|
+
diagnostics.errors.push(
|
|
85374
|
+
`"${field}" bindings should, optionally, have a string or array of strings "schedules" field but got ${JSON.stringify(
|
|
85375
|
+
value
|
|
85376
|
+
)}.`
|
|
85377
|
+
);
|
|
85378
|
+
isValid2 = false;
|
|
85379
|
+
}
|
|
85380
|
+
}
|
|
85202
85381
|
if (hasProperty(value, "limits") && value.limits !== void 0) {
|
|
85203
85382
|
if (typeof value.limits !== "object" || value.limits === null || Array.isArray(value.limits)) {
|
|
85204
85383
|
diagnostics.errors.push(
|
|
@@ -85237,7 +85416,8 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
85237
85416
|
"class_name",
|
|
85238
85417
|
"script_name",
|
|
85239
85418
|
"remote",
|
|
85240
|
-
"limits"
|
|
85419
|
+
"limits",
|
|
85420
|
+
"schedules"
|
|
85241
85421
|
]);
|
|
85242
85422
|
return isValid2;
|
|
85243
85423
|
}, "validateWorkflowBinding");
|
|
@@ -87773,6 +87953,57 @@ function isDockerfile(imagePath, configPath) {
|
|
|
87773
87953
|
return false;
|
|
87774
87954
|
}
|
|
87775
87955
|
__name(isDockerfile, "isDockerfile");
|
|
87956
|
+
var BINDING_LOCAL_SUPPORT = {
|
|
87957
|
+
plain_text: "local-only",
|
|
87958
|
+
secret_text: "local-only",
|
|
87959
|
+
json: "local-only",
|
|
87960
|
+
wasm_module: "local-only",
|
|
87961
|
+
text_blob: "local-only",
|
|
87962
|
+
data_blob: "local-only",
|
|
87963
|
+
version_metadata: "local-only",
|
|
87964
|
+
inherit: "local-only",
|
|
87965
|
+
logfwdr: "local-only",
|
|
87966
|
+
assets: "local-only",
|
|
87967
|
+
unsafe_hello_world: "local-only",
|
|
87968
|
+
durable_object_namespace: "local-only",
|
|
87969
|
+
hyperdrive: "local-only",
|
|
87970
|
+
fetcher: "local-only",
|
|
87971
|
+
analytics_engine: "local-only",
|
|
87972
|
+
secrets_store_secret: "local-only",
|
|
87973
|
+
ratelimit: "local-only",
|
|
87974
|
+
worker_loader: "local-only",
|
|
87975
|
+
kv_namespace: "local-and-remote",
|
|
87976
|
+
r2_bucket: "local-and-remote",
|
|
87977
|
+
d1: "local-and-remote",
|
|
87978
|
+
workflow: "local-and-remote",
|
|
87979
|
+
browser: "local-and-remote",
|
|
87980
|
+
images: "local-and-remote",
|
|
87981
|
+
stream: "local-and-remote",
|
|
87982
|
+
send_email: "local-and-remote",
|
|
87983
|
+
pipeline: "local-and-remote",
|
|
87984
|
+
service: "local-and-remote",
|
|
87985
|
+
// TODO: Miniflare currently ignores `remote: true` on queues, tracked in #13727.
|
|
87986
|
+
queue: "local-and-remote",
|
|
87987
|
+
vectorize: "remote",
|
|
87988
|
+
mtls_certificate: "remote",
|
|
87989
|
+
dispatch_namespace: "remote",
|
|
87990
|
+
// Reach out to the @cloudflare/wrangler team before adding anything here
|
|
87991
|
+
ai: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
87992
|
+
ai_search: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
87993
|
+
ai_search_namespace: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
87994
|
+
media: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
87995
|
+
artifacts: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
87996
|
+
flagship: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
87997
|
+
vpc_service: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator",
|
|
87998
|
+
vpc_network: "DO-NOT-USE-this-resource-will-never-have-a-local-simulator"
|
|
87999
|
+
};
|
|
88000
|
+
function getBindingLocalSupport(type) {
|
|
88001
|
+
if (type in BINDING_LOCAL_SUPPORT) {
|
|
88002
|
+
return BINDING_LOCAL_SUPPORT[type];
|
|
88003
|
+
}
|
|
88004
|
+
return "local-only";
|
|
88005
|
+
}
|
|
88006
|
+
__name(getBindingLocalSupport, "getBindingLocalSupport");
|
|
87776
88007
|
var supportedPagesConfigFields = [
|
|
87777
88008
|
"pages_build_output_dir",
|
|
87778
88009
|
"name",
|
|
@@ -87902,6 +88133,64 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
|
|
|
87902
88133
|
}
|
|
87903
88134
|
}
|
|
87904
88135
|
__name(validateDurableObjectBinding2, "validateDurableObjectBinding");
|
|
88136
|
+
var import_signal_exit = __toESM2(require_signal_exit());
|
|
88137
|
+
function getWranglerHiddenDirPath(projectRoot) {
|
|
88138
|
+
projectRoot ??= process.cwd();
|
|
88139
|
+
return import_node_path2.default.join(projectRoot, ".wrangler");
|
|
88140
|
+
}
|
|
88141
|
+
__name(getWranglerHiddenDirPath, "getWranglerHiddenDirPath");
|
|
88142
|
+
var STALE_WRANGLER_TMP_DIR_MS = 24 * 60 * 60 * 1e3;
|
|
88143
|
+
var sweptTmpRoots = /* @__PURE__ */ new Set();
|
|
88144
|
+
function sweepStaleWranglerTmpDirs(tmpRoot) {
|
|
88145
|
+
if (sweptTmpRoots.has(tmpRoot)) {
|
|
88146
|
+
return;
|
|
88147
|
+
}
|
|
88148
|
+
sweptTmpRoots.add(tmpRoot);
|
|
88149
|
+
let entries;
|
|
88150
|
+
try {
|
|
88151
|
+
entries = import_node_fs2.default.readdirSync(tmpRoot, { withFileTypes: true });
|
|
88152
|
+
} catch {
|
|
88153
|
+
return;
|
|
88154
|
+
}
|
|
88155
|
+
const cutoff = Date.now() - STALE_WRANGLER_TMP_DIR_MS;
|
|
88156
|
+
for (const entry of entries) {
|
|
88157
|
+
if (!entry.isDirectory()) {
|
|
88158
|
+
continue;
|
|
88159
|
+
}
|
|
88160
|
+
const entryPath = import_node_path2.default.join(tmpRoot, entry.name);
|
|
88161
|
+
try {
|
|
88162
|
+
if (import_node_fs2.default.statSync(entryPath).mtimeMs < cutoff) {
|
|
88163
|
+
removeDirSync(entryPath);
|
|
88164
|
+
}
|
|
88165
|
+
} catch {
|
|
88166
|
+
}
|
|
88167
|
+
}
|
|
88168
|
+
}
|
|
88169
|
+
__name(sweepStaleWranglerTmpDirs, "sweepStaleWranglerTmpDirs");
|
|
88170
|
+
function getWranglerTmpDir(projectRoot, prefix, cleanup = true) {
|
|
88171
|
+
const tmpRoot = import_node_path2.default.join(getWranglerHiddenDirPath(projectRoot), "tmp");
|
|
88172
|
+
import_node_fs2.default.mkdirSync(tmpRoot, { recursive: true });
|
|
88173
|
+
sweepStaleWranglerTmpDirs(tmpRoot);
|
|
88174
|
+
const tmpPrefix = import_node_path2.default.join(tmpRoot, `${prefix}-`);
|
|
88175
|
+
const tmpDir = import_node_fs2.default.realpathSync(import_node_fs2.default.mkdtempSync(tmpPrefix));
|
|
88176
|
+
const cleanupDir = /* @__PURE__ */ __name(() => {
|
|
88177
|
+
if (cleanup) {
|
|
88178
|
+
try {
|
|
88179
|
+
removeDirSync(tmpDir);
|
|
88180
|
+
} catch {
|
|
88181
|
+
}
|
|
88182
|
+
}
|
|
88183
|
+
}, "cleanupDir");
|
|
88184
|
+
const removeExitListener = (0, import_signal_exit.default)(cleanupDir);
|
|
88185
|
+
return {
|
|
88186
|
+
path: tmpDir,
|
|
88187
|
+
remove() {
|
|
88188
|
+
removeExitListener();
|
|
88189
|
+
cleanupDir();
|
|
88190
|
+
}
|
|
88191
|
+
};
|
|
88192
|
+
}
|
|
88193
|
+
__name(getWranglerTmpDir, "getWranglerTmpDir");
|
|
87905
88194
|
var import_command_exists = __toESM2(require_command_exists2());
|
|
87906
88195
|
var UPDATE_SERVICE_URL = "https://update.argotunnel.com";
|
|
87907
88196
|
var CLOUDFLARED_VERSION_PATTERN = /^\d{4}\.\d+\.\d+$/;
|
|
@@ -89633,9 +89922,9 @@ var import_node_process5 = __toESM(require("node:process"), 1);
|
|
|
89633
89922
|
// ../../node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
|
|
89634
89923
|
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
89635
89924
|
var import_onetime = __toESM(require_onetime(), 1);
|
|
89636
|
-
var
|
|
89925
|
+
var import_signal_exit2 = __toESM(require_signal_exit2(), 1);
|
|
89637
89926
|
var restoreCursor = (0, import_onetime.default)(() => {
|
|
89638
|
-
(0,
|
|
89927
|
+
(0, import_signal_exit2.default)(() => {
|
|
89639
89928
|
import_node_process4.default.stderr.write("\x1B[?25h");
|
|
89640
89929
|
}, { alwaysLast: true });
|
|
89641
89930
|
});
|
|
@@ -95618,7 +95907,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
95618
95907
|
var yargs_default = Yargs;
|
|
95619
95908
|
|
|
95620
95909
|
// package.json
|
|
95621
|
-
var version = "2.68.
|
|
95910
|
+
var version = "2.68.4";
|
|
95622
95911
|
|
|
95623
95912
|
// src/metrics.ts
|
|
95624
95913
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -97829,14 +98118,14 @@ __name2(getPropertyName, "getPropertyName");
|
|
|
97829
98118
|
var package_default = {
|
|
97830
98119
|
name: "frameworks_clis_info",
|
|
97831
98120
|
dependencies: {
|
|
97832
|
-
"@angular/create": "21.2.
|
|
98121
|
+
"@angular/create": "21.2.12",
|
|
97833
98122
|
"@tanstack/create-start": "0.59.32",
|
|
97834
|
-
"create-analog": "2.5.
|
|
98123
|
+
"create-analog": "2.5.2",
|
|
97835
98124
|
"create-astro": "5.0.6",
|
|
97836
98125
|
"create-docusaurus": "3.10.1",
|
|
97837
98126
|
"create-hono": "0.19.4",
|
|
97838
98127
|
"create-next-app": "16.2.6",
|
|
97839
|
-
"create-qwik": "1.
|
|
98128
|
+
"create-qwik": "1.20.0",
|
|
97840
98129
|
"create-react-router": "7.15.1",
|
|
97841
98130
|
"create-rwsdk": "3.1.3",
|
|
97842
98131
|
"create-solid": "0.7.0",
|
|
@@ -100304,7 +100593,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
100304
100593
|
var import_node_assert6 = __toESM(require("node:assert"));
|
|
100305
100594
|
|
|
100306
100595
|
// ../wrangler/package.json
|
|
100307
|
-
var version2 = "4.
|
|
100596
|
+
var version2 = "4.95.0";
|
|
100308
100597
|
|
|
100309
100598
|
// src/git.ts
|
|
100310
100599
|
var offerGit = async (ctx) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-cloudflare",
|
|
3
|
-
"version": "2.68.
|
|
3
|
+
"version": "2.68.4",
|
|
4
4
|
"description": "A CLI for creating and deploying new applications to Cloudflare.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cloudflare",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@babel/parser": "^7.21.3",
|
|
32
32
|
"@babel/types": "^7.21.4",
|
|
33
33
|
"@clack/prompts": "^1.2.0",
|
|
34
|
-
"@cloudflare/workers-types": "^4.
|
|
34
|
+
"@cloudflare/workers-types": "^4.20260526.1",
|
|
35
35
|
"@types/command-exists": "^1.2.0",
|
|
36
36
|
"@types/cross-spawn": "^6.0.2",
|
|
37
37
|
"@types/deepmerge": "^2.2.0",
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
"wrap-ansi": "^9.0.0",
|
|
73
73
|
"xdg-app-paths": "^8.3.0",
|
|
74
74
|
"yargs": "^17.7.2",
|
|
75
|
-
"@cloudflare/cli-shared-helpers": "0.1.
|
|
75
|
+
"@cloudflare/cli-shared-helpers": "0.1.4",
|
|
76
76
|
"@cloudflare/codemod": "1.1.0",
|
|
77
77
|
"@cloudflare/mock-npm-registry": "0.0.0",
|
|
78
|
-
"@cloudflare/vite-plugin": "1.
|
|
78
|
+
"@cloudflare/vite-plugin": "1.39.0",
|
|
79
79
|
"@cloudflare/workers-tsconfig": "0.0.0",
|
|
80
|
-
"@cloudflare/workers-utils": "0.21.
|
|
81
|
-
"wrangler": "4.
|
|
80
|
+
"@cloudflare/workers-utils": "0.21.1",
|
|
81
|
+
"wrangler": "4.95.0"
|
|
82
82
|
},
|
|
83
83
|
"engines": {
|
|
84
84
|
"node": ">=22.0.0"
|