create-cloudflare 2.68.2 → 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 +438 -138
- 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,56 +74957,7 @@ function constructWranglerConfig(workerOrWorkers) {
|
|
|
74957
74957
|
}
|
|
74958
74958
|
__name(constructWranglerConfig, "constructWranglerConfig");
|
|
74959
74959
|
|
|
74960
|
-
// ../workers-utils/dist/chunk-
|
|
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
|
-
// ../workers-utils/dist/chunk-XXCQEG76.mjs
|
|
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);
|
|
75012
74963
|
var UserError = class extends Error {
|
|
@@ -77788,8 +77739,12 @@ function findRedirectedWranglerConfig(cwd, userConfigPath) {
|
|
|
77788
77739
|
};
|
|
77789
77740
|
}
|
|
77790
77741
|
__name(findRedirectedWranglerConfig, "findRedirectedWranglerConfig");
|
|
77742
|
+
function isRedirectedConfig(config49) {
|
|
77743
|
+
return config49.configPath !== void 0 && config49.configPath !== config49.userConfigPath;
|
|
77744
|
+
}
|
|
77745
|
+
__name(isRedirectedConfig, "isRedirectedConfig");
|
|
77791
77746
|
function isRedirectedRawConfig(rawConfig, configPath, userConfigPath) {
|
|
77792
|
-
return
|
|
77747
|
+
return isRedirectedConfig({ configPath, userConfigPath });
|
|
77793
77748
|
}
|
|
77794
77749
|
__name(isRedirectedRawConfig, "isRedirectedRawConfig");
|
|
77795
77750
|
function configFormat(configPath) {
|
|
@@ -77886,7 +77841,7 @@ var require_XDGAppPaths = __commonJS2({
|
|
|
77886
77841
|
}
|
|
77887
77842
|
__name(typeOf, "typeOf");
|
|
77888
77843
|
function Adapt(adapter_) {
|
|
77889
|
-
var meta = adapter_.meta,
|
|
77844
|
+
var meta = adapter_.meta, path52 = adapter_.path, xdg = adapter_.xdg;
|
|
77890
77845
|
var XDGAppPaths_ = /* @__PURE__ */ (function() {
|
|
77891
77846
|
function XDGAppPaths_2(options_) {
|
|
77892
77847
|
if (options_ === void 0) {
|
|
@@ -77909,7 +77864,7 @@ var require_XDGAppPaths = __commonJS2({
|
|
|
77909
77864
|
meta.mainFilename()
|
|
77910
77865
|
];
|
|
77911
77866
|
var nameFallback = "$eval";
|
|
77912
|
-
var name3 =
|
|
77867
|
+
var name3 = path52.parse(((_c2 = namePriorityList.find(function(e2) {
|
|
77913
77868
|
return isString2(e2);
|
|
77914
77869
|
})) !== null && _c2 !== void 0 ? _c2 : nameFallback) + suffix).name;
|
|
77915
77870
|
XDGAppPaths.$name = /* @__PURE__ */ __name(function $name() {
|
|
@@ -77930,28 +77885,28 @@ var require_XDGAppPaths = __commonJS2({
|
|
|
77930
77885
|
}
|
|
77931
77886
|
__name(finalPathSegment, "finalPathSegment");
|
|
77932
77887
|
XDGAppPaths.cache = /* @__PURE__ */ __name(function cache(dirOptions) {
|
|
77933
|
-
return
|
|
77888
|
+
return path52.join(xdg.cache(), finalPathSegment(dirOptions));
|
|
77934
77889
|
}, "cache");
|
|
77935
77890
|
XDGAppPaths.config = /* @__PURE__ */ __name(function config49(dirOptions) {
|
|
77936
|
-
return
|
|
77891
|
+
return path52.join(xdg.config(), finalPathSegment(dirOptions));
|
|
77937
77892
|
}, "config");
|
|
77938
77893
|
XDGAppPaths.data = /* @__PURE__ */ __name(function data(dirOptions) {
|
|
77939
|
-
return
|
|
77894
|
+
return path52.join(xdg.data(), finalPathSegment(dirOptions));
|
|
77940
77895
|
}, "data");
|
|
77941
77896
|
XDGAppPaths.runtime = /* @__PURE__ */ __name(function runtime(dirOptions) {
|
|
77942
|
-
return xdg.runtime() ?
|
|
77897
|
+
return xdg.runtime() ? path52.join(xdg.runtime(), finalPathSegment(dirOptions)) : void 0;
|
|
77943
77898
|
}, "runtime");
|
|
77944
77899
|
XDGAppPaths.state = /* @__PURE__ */ __name(function state(dirOptions) {
|
|
77945
|
-
return
|
|
77900
|
+
return path52.join(xdg.state(), finalPathSegment(dirOptions));
|
|
77946
77901
|
}, "state");
|
|
77947
77902
|
XDGAppPaths.configDirs = /* @__PURE__ */ __name(function configDirs(dirOptions) {
|
|
77948
77903
|
return xdg.configDirs().map(function(s) {
|
|
77949
|
-
return
|
|
77904
|
+
return path52.join(s, finalPathSegment(dirOptions));
|
|
77950
77905
|
});
|
|
77951
77906
|
}, "configDirs");
|
|
77952
77907
|
XDGAppPaths.dataDirs = /* @__PURE__ */ __name(function dataDirs(dirOptions) {
|
|
77953
77908
|
return xdg.dataDirs().map(function(s) {
|
|
77954
|
-
return
|
|
77909
|
+
return path52.join(s, finalPathSegment(dirOptions));
|
|
77955
77910
|
});
|
|
77956
77911
|
}, "dataDirs");
|
|
77957
77912
|
return XDGAppPaths;
|
|
@@ -77975,7 +77930,7 @@ var require_XDG = __commonJS2({
|
|
|
77975
77930
|
exports2.__esModule = true;
|
|
77976
77931
|
exports2.Adapt = void 0;
|
|
77977
77932
|
function Adapt(adapter_) {
|
|
77978
|
-
var env3 = adapter_.env, osPaths = adapter_.osPaths,
|
|
77933
|
+
var env3 = adapter_.env, osPaths = adapter_.osPaths, path52 = adapter_.path;
|
|
77979
77934
|
var isMacOS = /^darwin$/i.test(adapter_.process.platform);
|
|
77980
77935
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
|
77981
77936
|
function baseDir() {
|
|
@@ -77983,7 +77938,7 @@ var require_XDG = __commonJS2({
|
|
|
77983
77938
|
}
|
|
77984
77939
|
__name(baseDir, "baseDir");
|
|
77985
77940
|
function valOrPath(val, pathSegments) {
|
|
77986
|
-
return val ||
|
|
77941
|
+
return val || path52.join.apply(path52, pathSegments);
|
|
77987
77942
|
}
|
|
77988
77943
|
__name(valOrPath, "valOrPath");
|
|
77989
77944
|
var linux = /* @__PURE__ */ __name(function() {
|
|
@@ -78062,11 +78017,11 @@ var require_XDG = __commonJS2({
|
|
|
78062
78017
|
XDG.state = extension.state;
|
|
78063
78018
|
XDG.configDirs = /* @__PURE__ */ __name(function configDirs() {
|
|
78064
78019
|
var pathList = env3.get("XDG_CONFIG_DIRS");
|
|
78065
|
-
return __spreadArray2([extension.config()], pathList ? pathList.split(
|
|
78020
|
+
return __spreadArray2([extension.config()], pathList ? pathList.split(path52.delimiter) : []);
|
|
78066
78021
|
}, "configDirs");
|
|
78067
78022
|
XDG.dataDirs = /* @__PURE__ */ __name(function dataDirs() {
|
|
78068
78023
|
var pathList = env3.get("XDG_DATA_DIRS");
|
|
78069
|
-
return __spreadArray2([extension.data()], pathList ? pathList.split(
|
|
78024
|
+
return __spreadArray2([extension.data()], pathList ? pathList.split(path52.delimiter) : []);
|
|
78070
78025
|
}, "dataDirs");
|
|
78071
78026
|
return XDG;
|
|
78072
78027
|
}
|
|
@@ -78093,7 +78048,7 @@ var require_OSPaths = __commonJS2({
|
|
|
78093
78048
|
}
|
|
78094
78049
|
__name(isEmpty, "isEmpty");
|
|
78095
78050
|
function Adapt(adapter_) {
|
|
78096
|
-
var env3 = adapter_.env, os22 = adapter_.os,
|
|
78051
|
+
var env3 = adapter_.env, os22 = adapter_.os, path52 = adapter_.path;
|
|
78097
78052
|
var isWinOS = /^win/i.test(adapter_.process.platform);
|
|
78098
78053
|
function normalizePath(path_) {
|
|
78099
78054
|
return path_ ? adapter_.path.normalize(adapter_.path.join(path_, ".")) : void 0;
|
|
@@ -78108,7 +78063,7 @@ var require_OSPaths = __commonJS2({
|
|
|
78108
78063
|
typeof os22.homedir === "function" ? os22.homedir() : void 0,
|
|
78109
78064
|
env3.get("USERPROFILE"),
|
|
78110
78065
|
env3.get("HOME"),
|
|
78111
|
-
env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ?
|
|
78066
|
+
env3.get("HOMEDRIVE") || env3.get("HOMEPATH") ? path52.join(env3.get("HOMEDRIVE") || "", env3.get("HOMEPATH") || "") : void 0
|
|
78112
78067
|
];
|
|
78113
78068
|
return normalizePath(priorityList.find(function(v) {
|
|
78114
78069
|
return !isEmpty(v);
|
|
@@ -78119,7 +78074,7 @@ var require_OSPaths = __commonJS2({
|
|
|
78119
78074
|
__name(home, "home");
|
|
78120
78075
|
function temp() {
|
|
78121
78076
|
function joinPathToBase(base, segments) {
|
|
78122
|
-
return base ?
|
|
78077
|
+
return base ? path52.join.apply(path52, __spreadArray2([base], segments)) : void 0;
|
|
78123
78078
|
}
|
|
78124
78079
|
__name(joinPathToBase, "joinPathToBase");
|
|
78125
78080
|
function posix() {
|
|
@@ -78222,7 +78177,7 @@ var require_node = __commonJS2({
|
|
|
78222
78177
|
exports2.__esModule = true;
|
|
78223
78178
|
exports2.adapter = void 0;
|
|
78224
78179
|
var os22 = __importStar2(__require("os"));
|
|
78225
|
-
var
|
|
78180
|
+
var path52 = __importStar2(__require("path"));
|
|
78226
78181
|
exports2.adapter = {
|
|
78227
78182
|
atImportPermissions: { env: true },
|
|
78228
78183
|
env: {
|
|
@@ -78231,7 +78186,7 @@ var require_node = __commonJS2({
|
|
|
78231
78186
|
}, "get")
|
|
78232
78187
|
},
|
|
78233
78188
|
os: os22,
|
|
78234
|
-
path:
|
|
78189
|
+
path: path52,
|
|
78235
78190
|
process
|
|
78236
78191
|
};
|
|
78237
78192
|
}
|
|
@@ -78273,7 +78228,7 @@ var require_node2 = __commonJS2({
|
|
|
78273
78228
|
};
|
|
78274
78229
|
exports2.__esModule = true;
|
|
78275
78230
|
exports2.adapter = void 0;
|
|
78276
|
-
var
|
|
78231
|
+
var path52 = __importStar2(__require("path"));
|
|
78277
78232
|
var os_paths_1 = __importDefault2(require_mod_cjs());
|
|
78278
78233
|
exports2.adapter = {
|
|
78279
78234
|
atImportPermissions: { env: true },
|
|
@@ -78283,7 +78238,7 @@ var require_node2 = __commonJS2({
|
|
|
78283
78238
|
}, "get")
|
|
78284
78239
|
},
|
|
78285
78240
|
osPaths: os_paths_1["default"],
|
|
78286
|
-
path:
|
|
78241
|
+
path: path52,
|
|
78287
78242
|
process
|
|
78288
78243
|
};
|
|
78289
78244
|
}
|
|
@@ -78325,7 +78280,7 @@ var require_node3 = __commonJS2({
|
|
|
78325
78280
|
};
|
|
78326
78281
|
exports2.__esModule = true;
|
|
78327
78282
|
exports2.adapter = void 0;
|
|
78328
|
-
var
|
|
78283
|
+
var path52 = __importStar2(__require("path"));
|
|
78329
78284
|
var xdg_portable_1 = __importDefault2(require_mod_cjs2());
|
|
78330
78285
|
exports2.adapter = {
|
|
78331
78286
|
atImportPermissions: { env: true, read: true },
|
|
@@ -78340,7 +78295,7 @@ var require_node3 = __commonJS2({
|
|
|
78340
78295
|
return process.pkg ? process.execPath : void 0;
|
|
78341
78296
|
}, "pkgMainFilename")
|
|
78342
78297
|
},
|
|
78343
|
-
path:
|
|
78298
|
+
path: path52,
|
|
78344
78299
|
process,
|
|
78345
78300
|
xdg: xdg_portable_1["default"]
|
|
78346
78301
|
};
|
|
@@ -78353,15 +78308,207 @@ var require_mod_cjs3 = __commonJS2({
|
|
|
78353
78308
|
module2.exports = XDGAppPaths_js_1.Adapt(node_js_1.adapter).XDGAppPaths;
|
|
78354
78309
|
}
|
|
78355
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
|
+
});
|
|
78356
78503
|
var require_command_exists = __commonJS2({
|
|
78357
78504
|
"../../node_modules/.pnpm/command-exists@1.2.9/node_modules/command-exists/lib/command-exists.js"(exports2, module2) {
|
|
78358
78505
|
var exec4 = __require("child_process").exec;
|
|
78359
78506
|
var execSync = __require("child_process").execSync;
|
|
78360
|
-
var
|
|
78361
|
-
var
|
|
78362
|
-
var access =
|
|
78363
|
-
var accessSync2 =
|
|
78364
|
-
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;
|
|
78365
78512
|
var isUsingWindows = process.platform == "win32";
|
|
78366
78513
|
var fileNotExists = /* @__PURE__ */ __name(function(commandName, callback) {
|
|
78367
78514
|
access(
|
|
@@ -78462,8 +78609,8 @@ var require_command_exists = __commonJS2({
|
|
|
78462
78609
|
cleanInput = /* @__PURE__ */ __name(function(s) {
|
|
78463
78610
|
var isPathName = /[\\]/.test(s);
|
|
78464
78611
|
if (isPathName) {
|
|
78465
|
-
var dirname22 = '"' +
|
|
78466
|
-
var basename5 = '"' +
|
|
78612
|
+
var dirname22 = '"' + path52.dirname(s) + '"';
|
|
78613
|
+
var basename5 = '"' + path52.basename(s) + '"';
|
|
78467
78614
|
return dirname22 + ":" + basename5;
|
|
78468
78615
|
}
|
|
78469
78616
|
return '"' + s + '"';
|
|
@@ -78986,8 +79133,8 @@ function getErrorMap() {
|
|
|
78986
79133
|
}
|
|
78987
79134
|
__name(getErrorMap, "getErrorMap");
|
|
78988
79135
|
var makeIssue = /* @__PURE__ */ __name((params) => {
|
|
78989
|
-
const { data, path:
|
|
78990
|
-
const fullPath = [...
|
|
79136
|
+
const { data, path: path52, errorMaps, issueData } = params;
|
|
79137
|
+
const fullPath = [...path52, ...issueData.path || []];
|
|
78991
79138
|
const fullIssue = {
|
|
78992
79139
|
...issueData,
|
|
78993
79140
|
path: fullPath
|
|
@@ -79093,11 +79240,11 @@ var ParseInputLazyPath = class {
|
|
|
79093
79240
|
static {
|
|
79094
79241
|
__name(this, "ParseInputLazyPath");
|
|
79095
79242
|
}
|
|
79096
|
-
constructor(parent, value,
|
|
79243
|
+
constructor(parent, value, path52, key) {
|
|
79097
79244
|
this._cachedPath = [];
|
|
79098
79245
|
this.parent = parent;
|
|
79099
79246
|
this.data = value;
|
|
79100
|
-
this._path =
|
|
79247
|
+
this._path = path52;
|
|
79101
79248
|
this._key = key;
|
|
79102
79249
|
}
|
|
79103
79250
|
get path() {
|
|
@@ -82879,9 +83026,9 @@ Please add "${field}" to "env.${envName}".`
|
|
|
82879
83026
|
return rawEnv[field] ?? defaultValue;
|
|
82880
83027
|
}
|
|
82881
83028
|
__name(notInheritable, "notInheritable");
|
|
82882
|
-
function unwindPropertyPath(root,
|
|
83029
|
+
function unwindPropertyPath(root, path52) {
|
|
82883
83030
|
let container = root;
|
|
82884
|
-
const parts =
|
|
83031
|
+
const parts = path52.split(".");
|
|
82885
83032
|
for (let i = 0; i < parts.length - 1; i++) {
|
|
82886
83033
|
if (!hasProperty(container, parts[i])) {
|
|
82887
83034
|
return;
|
|
@@ -83305,13 +83452,13 @@ function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args,
|
|
|
83305
83452
|
isDispatchNamespace,
|
|
83306
83453
|
preserveOriginalMain
|
|
83307
83454
|
);
|
|
83308
|
-
const
|
|
83455
|
+
const isRedirectedConfig2 = isRedirectedRawConfig(
|
|
83309
83456
|
rawConfig,
|
|
83310
83457
|
configPath,
|
|
83311
83458
|
userConfigPath
|
|
83312
83459
|
);
|
|
83313
83460
|
const definedEnvironments = Object.keys(rawConfig.env ?? {});
|
|
83314
|
-
if (
|
|
83461
|
+
if (isRedirectedConfig2 && definedEnvironments.length > 0) {
|
|
83315
83462
|
diagnostics.errors.push(
|
|
83316
83463
|
dedent`
|
|
83317
83464
|
Redirected configurations cannot include environments but the following have been found:\n${definedEnvironments.map((env3) => ` - ${env3}`).join("\n")}
|
|
@@ -83327,7 +83474,7 @@ function normalizeAndValidateConfig(rawConfig, configPath, userConfigPath, args,
|
|
|
83327
83474
|
(0, import_node_assert2.default)(envName === void 0 || typeof envName === "string");
|
|
83328
83475
|
let activeEnv = topLevelEnv;
|
|
83329
83476
|
if (envName) {
|
|
83330
|
-
if (
|
|
83477
|
+
if (isRedirectedConfig2) {
|
|
83331
83478
|
if (!isPagesConfig(rawConfig) && rawConfig.targetEnvironment && rawConfig.targetEnvironment !== envName) {
|
|
83332
83479
|
const via = args.env !== void 0 ? "via the `--env/-e` CLI argument" : "via the CLOUDFLARE_ENV environment variable";
|
|
83333
83480
|
throw new Error(dedent`
|
|
@@ -83388,9 +83535,9 @@ Consider adding an environment configuration section to the ${configFileName(con
|
|
|
83388
83535
|
const config49 = {
|
|
83389
83536
|
configPath,
|
|
83390
83537
|
userConfigPath,
|
|
83391
|
-
topLevelName:
|
|
83392
|
-
definedEnvironments:
|
|
83393
|
-
targetEnvironment:
|
|
83538
|
+
topLevelName: isRedirectedConfig2 ? rawConfig.topLevelName : rawConfig.name,
|
|
83539
|
+
definedEnvironments: isRedirectedConfig2 ? rawConfig.definedEnvironments : definedEnvironments,
|
|
83540
|
+
targetEnvironment: isRedirectedConfig2 ? rawConfig.targetEnvironment : envName,
|
|
83394
83541
|
pages_build_output_dir: normalizeAndValidatePagesBuildOutputDir(
|
|
83395
83542
|
configPath,
|
|
83396
83543
|
rawConfig.pages_build_output_dir
|
|
@@ -84085,7 +84232,9 @@ function normalizeAndValidateEnvironment(diagnostics, configPath, rawEnv, isDisp
|
|
|
84085
84232
|
"Removed",
|
|
84086
84233
|
"error"
|
|
84087
84234
|
);
|
|
84088
|
-
|
|
84235
|
+
if (topLevelEnv === void 0 || rawConfig?.unsafe === void 0) {
|
|
84236
|
+
experimental(diagnostics, rawEnv, "unsafe");
|
|
84237
|
+
}
|
|
84089
84238
|
const route = normalizeAndValidateRoute(diagnostics, topLevelEnv, rawEnv);
|
|
84090
84239
|
const account_id = inheritableInWranglerEnvironments(
|
|
84091
84240
|
diagnostics,
|
|
@@ -84873,14 +85022,16 @@ var validateDefines = /* @__PURE__ */ __name((envName) => (diagnostics, field, v
|
|
|
84873
85022
|
if (configDefines.length > 0) {
|
|
84874
85023
|
if (typeof value === "object" && value !== null) {
|
|
84875
85024
|
const configEnvDefines = config49 === void 0 ? [] : Object.keys(value);
|
|
84876
|
-
|
|
84877
|
-
|
|
84878
|
-
|
|
84879
|
-
|
|
84880
|
-
|
|
84881
|
-
|
|
84882
|
-
|
|
84883
|
-
|
|
85025
|
+
const missingDefines = configDefines.filter(
|
|
85026
|
+
(varName) => !(varName in value)
|
|
85027
|
+
);
|
|
85028
|
+
if (missingDefines.length > 0) {
|
|
85029
|
+
diagnostics.warnings.push(
|
|
85030
|
+
`The following define entries exist at the top level, but not on "${fieldPath}".
|
|
85031
|
+
This is probably not what you want, since "define" configuration is not inherited by environments.
|
|
85032
|
+
Please add these entries to "env.${envName}.define":
|
|
85033
|
+
` + missingDefines.map((varName) => `- ${varName}`).join("\n")
|
|
85034
|
+
);
|
|
84884
85035
|
}
|
|
84885
85036
|
for (const varName of configEnvDefines) {
|
|
84886
85037
|
if (!configDefines.includes(varName)) {
|
|
@@ -84921,14 +85072,14 @@ var validateVars = /* @__PURE__ */ __name((envName) => (diagnostics, field, valu
|
|
|
84921
85072
|
const configVars = Object.keys(config49?.vars ?? {});
|
|
84922
85073
|
if (configVars.length > 0) {
|
|
84923
85074
|
if (typeof value === "object" && value !== null) {
|
|
84924
|
-
|
|
84925
|
-
|
|
84926
|
-
|
|
84927
|
-
|
|
84928
|
-
This is not what you
|
|
84929
|
-
Please add
|
|
84930
|
-
|
|
84931
|
-
|
|
85075
|
+
const missingVars = configVars.filter((varName) => !(varName in value));
|
|
85076
|
+
if (missingVars.length > 0) {
|
|
85077
|
+
diagnostics.warnings.push(
|
|
85078
|
+
`The following vars exist at the top level, but not on "${fieldPath}".
|
|
85079
|
+
This is probably not what you want, since "vars" configuration is not inherited by environments.
|
|
85080
|
+
Please add these vars to "env.${envName}.vars":
|
|
85081
|
+
` + missingVars.map((varName) => `- ${varName}`).join("\n")
|
|
85082
|
+
);
|
|
84932
85083
|
}
|
|
84933
85084
|
}
|
|
84934
85085
|
}
|
|
@@ -85191,6 +85342,42 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
85191
85342
|
);
|
|
85192
85343
|
isValid2 = false;
|
|
85193
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
|
+
}
|
|
85194
85381
|
if (hasProperty(value, "limits") && value.limits !== void 0) {
|
|
85195
85382
|
if (typeof value.limits !== "object" || value.limits === null || Array.isArray(value.limits)) {
|
|
85196
85383
|
diagnostics.errors.push(
|
|
@@ -85229,7 +85416,8 @@ var validateWorkflowBinding = /* @__PURE__ */ __name((diagnostics, field, value)
|
|
|
85229
85416
|
"class_name",
|
|
85230
85417
|
"script_name",
|
|
85231
85418
|
"remote",
|
|
85232
|
-
"limits"
|
|
85419
|
+
"limits",
|
|
85420
|
+
"schedules"
|
|
85233
85421
|
]);
|
|
85234
85422
|
return isValid2;
|
|
85235
85423
|
}, "validateWorkflowBinding");
|
|
@@ -87765,6 +87953,57 @@ function isDockerfile(imagePath, configPath) {
|
|
|
87765
87953
|
return false;
|
|
87766
87954
|
}
|
|
87767
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");
|
|
87768
88007
|
var supportedPagesConfigFields = [
|
|
87769
88008
|
"pages_build_output_dir",
|
|
87770
88009
|
"name",
|
|
@@ -87894,6 +88133,64 @@ Pages requires Durable Object bindings to specify the name of the Worker where t
|
|
|
87894
88133
|
}
|
|
87895
88134
|
}
|
|
87896
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");
|
|
87897
88194
|
var import_command_exists = __toESM2(require_command_exists2());
|
|
87898
88195
|
var UPDATE_SERVICE_URL = "https://update.argotunnel.com";
|
|
87899
88196
|
var CLOUDFLARED_VERSION_PATTERN = /^\d{4}\.\d+\.\d+$/;
|
|
@@ -88421,17 +88718,14 @@ function startTunnel(options) {
|
|
|
88421
88718
|
const timeoutMs = options.timeoutMs ?? TUNNEL_STARTUP_TIMEOUT_MS;
|
|
88422
88719
|
const reminderIntervalMs = options.reminderIntervalMs ?? DEFAULT_TUNNEL_REMINDER_INTERVAL_MS;
|
|
88423
88720
|
const defaultExpiryMs = options.expiryMs ?? DEFAULT_TUNNEL_EXPIRY_MS;
|
|
88721
|
+
const isNamedTunnel = options.token !== void 0;
|
|
88424
88722
|
const timeFormatter = new Intl.DateTimeFormat(void 0, {
|
|
88425
88723
|
timeStyle: "short"
|
|
88426
88724
|
});
|
|
88427
|
-
const cloudflaredArgs = [
|
|
88428
|
-
"tunnel",
|
|
88429
|
-
"--no-autoupdate",
|
|
88430
|
-
"--url",
|
|
88431
|
-
options.origin.href
|
|
88432
|
-
];
|
|
88725
|
+
const cloudflaredArgs = isNamedTunnel ? ["tunnel", "--no-autoupdate", "run"] : ["tunnel", "--no-autoupdate", "--url", options.origin.href];
|
|
88433
88726
|
const cloudflaredPromise = spawnCloudflared(cloudflaredArgs, {
|
|
88434
88727
|
stdio: "pipe",
|
|
88728
|
+
env: options.token ? { TUNNEL_TOKEN: options.token } : void 0,
|
|
88435
88729
|
skipVersionCheck: true,
|
|
88436
88730
|
logger
|
|
88437
88731
|
}).then((process22) => {
|
|
@@ -88441,15 +88735,20 @@ function startTunnel(options) {
|
|
|
88441
88735
|
}
|
|
88442
88736
|
return process22;
|
|
88443
88737
|
});
|
|
88444
|
-
const readyPromise = cloudflaredPromise.then(
|
|
88445
|
-
(
|
|
88738
|
+
const readyPromise = cloudflaredPromise.then((process22) => {
|
|
88739
|
+
if (isNamedTunnel) {
|
|
88740
|
+
return { mode: "named" };
|
|
88741
|
+
}
|
|
88742
|
+
return waitForQuickTunnelReady(process22, timeoutMs, {
|
|
88446
88743
|
logger,
|
|
88447
88744
|
origin: options.origin
|
|
88448
|
-
})
|
|
88449
|
-
).then((result) => {
|
|
88745
|
+
});
|
|
88746
|
+
}).then((result) => {
|
|
88450
88747
|
expiresAt = Date.now() + defaultExpiryMs;
|
|
88451
88748
|
scheduleExpiryTimeout();
|
|
88452
|
-
scheduleReminder(
|
|
88749
|
+
scheduleReminder(
|
|
88750
|
+
result.mode === "quick" ? result.publicUrl.origin : void 0
|
|
88751
|
+
);
|
|
88453
88752
|
return result;
|
|
88454
88753
|
});
|
|
88455
88754
|
function disposeTunnel() {
|
|
@@ -88482,7 +88781,7 @@ function startTunnel(options) {
|
|
|
88482
88781
|
return;
|
|
88483
88782
|
}
|
|
88484
88783
|
logger?.log(
|
|
88485
|
-
`The tunnel is still open at ${publicURL}. It expires in ${formatTunnelDuration(remainingMs)}. ${options.extendHint ?? ""}`
|
|
88784
|
+
`${publicURL ? `The tunnel is still open at ${publicURL}.` : "The tunnel is still open."} It expires in ${formatTunnelDuration(remainingMs)}. ${options.extendHint ?? ""}`
|
|
88486
88785
|
);
|
|
88487
88786
|
}, reminderIntervalMs);
|
|
88488
88787
|
reminderInterval.unref?.();
|
|
@@ -88535,6 +88834,7 @@ function startTunnel(options) {
|
|
|
88535
88834
|
__name(extendExpiry, "extendExpiry");
|
|
88536
88835
|
return {
|
|
88537
88836
|
ready: /* @__PURE__ */ __name(() => readyPromise, "ready"),
|
|
88837
|
+
isOpen: /* @__PURE__ */ __name(() => !disposed, "isOpen"),
|
|
88538
88838
|
dispose: disposeTunnel,
|
|
88539
88839
|
extendExpiry
|
|
88540
88840
|
};
|
|
@@ -88596,7 +88896,7 @@ function waitForQuickTunnelReady(cloudflared, timeoutMs, options) {
|
|
|
88596
88896
|
if (match && !resolved) {
|
|
88597
88897
|
resolved = true;
|
|
88598
88898
|
clearTimeout(timeoutId);
|
|
88599
|
-
resolve12({ publicUrl: new URL(match[0]) });
|
|
88899
|
+
resolve12({ mode: "quick", publicUrl: new URL(match[0]) });
|
|
88600
88900
|
}
|
|
88601
88901
|
});
|
|
88602
88902
|
}
|
|
@@ -89622,9 +89922,9 @@ var import_node_process5 = __toESM(require("node:process"), 1);
|
|
|
89622
89922
|
// ../../node_modules/.pnpm/restore-cursor@4.0.0/node_modules/restore-cursor/index.js
|
|
89623
89923
|
var import_node_process4 = __toESM(require("node:process"), 1);
|
|
89624
89924
|
var import_onetime = __toESM(require_onetime(), 1);
|
|
89625
|
-
var
|
|
89925
|
+
var import_signal_exit2 = __toESM(require_signal_exit2(), 1);
|
|
89626
89926
|
var restoreCursor = (0, import_onetime.default)(() => {
|
|
89627
|
-
(0,
|
|
89927
|
+
(0, import_signal_exit2.default)(() => {
|
|
89628
89928
|
import_node_process4.default.stderr.write("\x1B[?25h");
|
|
89629
89929
|
}, { alwaysLast: true });
|
|
89630
89930
|
});
|
|
@@ -95607,7 +95907,7 @@ var Yargs = YargsFactory(esm_default2);
|
|
|
95607
95907
|
var yargs_default = Yargs;
|
|
95608
95908
|
|
|
95609
95909
|
// package.json
|
|
95610
|
-
var version = "2.68.
|
|
95910
|
+
var version = "2.68.4";
|
|
95611
95911
|
|
|
95612
95912
|
// src/metrics.ts
|
|
95613
95913
|
var import_node_async_hooks = require("node:async_hooks");
|
|
@@ -97818,23 +98118,23 @@ __name2(getPropertyName, "getPropertyName");
|
|
|
97818
98118
|
var package_default = {
|
|
97819
98119
|
name: "frameworks_clis_info",
|
|
97820
98120
|
dependencies: {
|
|
97821
|
-
"@angular/create": "21.2.
|
|
97822
|
-
"@tanstack/create-start": "0.59.
|
|
97823
|
-
"create-analog": "2.5.
|
|
98121
|
+
"@angular/create": "21.2.12",
|
|
98122
|
+
"@tanstack/create-start": "0.59.32",
|
|
98123
|
+
"create-analog": "2.5.2",
|
|
97824
98124
|
"create-astro": "5.0.6",
|
|
97825
98125
|
"create-docusaurus": "3.10.1",
|
|
97826
98126
|
"create-hono": "0.19.4",
|
|
97827
98127
|
"create-next-app": "16.2.6",
|
|
97828
|
-
"create-qwik": "1.
|
|
97829
|
-
"create-react-router": "7.15.
|
|
98128
|
+
"create-qwik": "1.20.0",
|
|
98129
|
+
"create-react-router": "7.15.1",
|
|
97830
98130
|
"create-rwsdk": "3.1.3",
|
|
97831
98131
|
"create-solid": "0.7.0",
|
|
97832
|
-
"create-vike": "0.0.
|
|
97833
|
-
"create-vite": "9.0.
|
|
98132
|
+
"create-vike": "0.0.627",
|
|
98133
|
+
"create-vite": "9.0.7",
|
|
97834
98134
|
"create-vue": "3.22.3",
|
|
97835
98135
|
"create-waku": "0.12.5-1.0.0-alpha.10-0",
|
|
97836
98136
|
gatsby: "5.16.1",
|
|
97837
|
-
nuxi: "3.35.
|
|
98137
|
+
nuxi: "3.35.2",
|
|
97838
98138
|
sv: "0.15.3"
|
|
97839
98139
|
},
|
|
97840
98140
|
info: [
|
|
@@ -100293,7 +100593,7 @@ If the application uses Durable Objects or Workflows, refer to the relevant best
|
|
|
100293
100593
|
var import_node_assert6 = __toESM(require("node:assert"));
|
|
100294
100594
|
|
|
100295
100595
|
// ../wrangler/package.json
|
|
100296
|
-
var version2 = "4.
|
|
100596
|
+
var version2 = "4.95.0";
|
|
100297
100597
|
|
|
100298
100598
|
// src/git.ts
|
|
100299
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"
|