@hot-updater/cloudflare 0.20.0-rc.0 → 0.20.1
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/iac/index.cjs +137 -155
- package/dist/iac/index.js +137 -155
- package/dist/index.cjs +58 -58
- package/dist/index.d.cts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +59 -59
- package/package.json +4 -4
- package/worker/dist/README.md +1 -1
- package/worker/dist/index.js +116 -117
- package/worker/dist/index.js.map +3 -3
- package/worker/wrangler.json +1 -1
package/dist/iac/index.js
CHANGED
|
@@ -59,7 +59,7 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
|
59
59
|
|
|
60
60
|
//#endregion
|
|
61
61
|
//#region ../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js
|
|
62
|
-
var require_src = __commonJS({ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js"(exports, module) {
|
|
62
|
+
var require_src = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/sisteransi@1.0.5/node_modules/sisteransi/src/index.js": ((exports, module) => {
|
|
63
63
|
const ESC = "\x1B";
|
|
64
64
|
const CSI = `${ESC}[`;
|
|
65
65
|
const beep = "\x07";
|
|
@@ -112,11 +112,11 @@ var require_src = __commonJS({ "../../node_modules/.pnpm/sisteransi@1.0.5/node_m
|
|
|
112
112
|
erase,
|
|
113
113
|
beep
|
|
114
114
|
};
|
|
115
|
-
} });
|
|
115
|
+
}) });
|
|
116
116
|
|
|
117
117
|
//#endregion
|
|
118
118
|
//#region ../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js
|
|
119
|
-
var require_picocolors = __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js"(exports, module) {
|
|
119
|
+
var require_picocolors = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1/node_modules/picocolors/picocolors.js": ((exports, module) => {
|
|
120
120
|
let p = process || {}, argv = p.argv || [], env = p.env || {};
|
|
121
121
|
let isColorSupported = !(!!env.NO_COLOR || argv.includes("--no-color")) && (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || (p.stdout || {}).isTTY && env.TERM !== "dumb" || !!env.CI);
|
|
122
122
|
let formatter = (open, close, replace = open) => (input) => {
|
|
@@ -181,12 +181,12 @@ var require_picocolors = __commonJS({ "../../node_modules/.pnpm/picocolors@1.1.1
|
|
|
181
181
|
};
|
|
182
182
|
module.exports = createColors();
|
|
183
183
|
module.exports.createColors = createColors;
|
|
184
|
-
} });
|
|
184
|
+
}) });
|
|
185
185
|
|
|
186
186
|
//#endregion
|
|
187
187
|
//#region ../../node_modules/.pnpm/@clack+core@0.4.1/node_modules/@clack/core/dist/index.mjs
|
|
188
|
-
var import_src$1 = __toESM(require_src(), 1);
|
|
189
|
-
var import_picocolors$1 = __toESM(require_picocolors(), 1);
|
|
188
|
+
var import_src$1 = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
189
|
+
var import_picocolors$1 = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
190
190
|
function J$1({ onlyFirst: t = !1 } = {}) {
|
|
191
191
|
const F$1 = ["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))", "(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");
|
|
192
192
|
return new RegExp(F$1, t ? void 0 : "g");
|
|
@@ -431,7 +431,7 @@ const iD = sD(), v = new Set(["\x1B", ""]), CD = 39, w$1 = "\x07", W$1 = "[",
|
|
|
431
431
|
`)];
|
|
432
432
|
for (const [E, a$1] of o$2.entries()) {
|
|
433
433
|
if (e$1 += a$1, v.has(a$1)) {
|
|
434
|
-
const { groups: B$1 } = new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`).exec(o$2.slice(E).join("")) || { groups: {} };
|
|
434
|
+
const { groups: B$1 } = (/* @__PURE__ */ new RegExp(`(?:\\${W$1}(?<code>\\d+)m|\\${y}(?<uri>.*)${w$1})`)).exec(o$2.slice(E).join("")) || { groups: {} };
|
|
435
435
|
if (B$1.code !== void 0) {
|
|
436
436
|
const p$1 = Number.parseFloat(B$1.code);
|
|
437
437
|
s = p$1 === CD ? void 0 : p$1;
|
|
@@ -824,8 +824,8 @@ var PD = class extends x {
|
|
|
824
824
|
|
|
825
825
|
//#endregion
|
|
826
826
|
//#region ../../node_modules/.pnpm/@clack+prompts@0.10.0/node_modules/@clack/prompts/dist/index.mjs
|
|
827
|
-
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
828
|
-
var import_src = __toESM(require_src(), 1);
|
|
827
|
+
var import_picocolors = /* @__PURE__ */ __toESM(require_picocolors(), 1);
|
|
828
|
+
var import_src = /* @__PURE__ */ __toESM(require_src(), 1);
|
|
829
829
|
function ce() {
|
|
830
830
|
return g.platform !== "win32" ? g.env.TERM !== "linux" : !!g.env.CI || !!g.env.WT_SESSION || !!g.env.TERMINUS_SUBLIME || g.env.ConEmuTask === "{cmd::Cmder}" || g.env.TERM_PROGRAM === "Terminus-Sublime" || g.env.TERM_PROGRAM === "vscode" || g.env.TERM === "xterm-256color" || g.env.TERM === "alacritty" || g.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
831
831
|
}
|
|
@@ -1229,11 +1229,10 @@ ${J}${r$1.trimStart()}`), s = 3 + stripVTControlCharacters(r$1.trimStart()).leng
|
|
|
1229
1229
|
|
|
1230
1230
|
//#endregion
|
|
1231
1231
|
//#region ../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js
|
|
1232
|
-
var require_dayjs_min = __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js"(exports, module) {
|
|
1232
|
+
var require_dayjs_min = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/node_modules/dayjs/dayjs.min.js": ((exports, module) => {
|
|
1233
1233
|
(function(t, e$1) {
|
|
1234
1234
|
"object" == typeof exports && "undefined" != typeof module ? module.exports = e$1() : "function" == typeof define && define.amd ? define(e$1) : (t = "undefined" != typeof globalThis ? globalThis : t || self).dayjs = e$1();
|
|
1235
|
-
})(
|
|
1236
|
-
"use strict";
|
|
1235
|
+
})(exports, (function() {
|
|
1237
1236
|
var t = 1e3, e$1 = 6e4, n$1 = 36e5, r$1 = "millisecond", i$1 = "second", s = "minute", u$2 = "hour", a$1 = "day", o$2 = "week", c$2 = "month", f$2 = "quarter", h$2 = "year", d$2 = "date", l$1 = "Invalid Date", $$1 = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, y$1 = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, M$1 = {
|
|
1238
1237
|
name: "en",
|
|
1239
1238
|
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
@@ -1420,7 +1419,7 @@ var require_dayjs_min = __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/nod
|
|
|
1420
1419
|
var r$3 = t$2 < 12 ? "AM" : "PM";
|
|
1421
1420
|
return n$3 ? r$3.toLowerCase() : r$3;
|
|
1422
1421
|
};
|
|
1423
|
-
return r$2.replace(y$1, function(t$2, r$3) {
|
|
1422
|
+
return r$2.replace(y$1, (function(t$2, r$3) {
|
|
1424
1423
|
return r$3 || function(t$3) {
|
|
1425
1424
|
switch (t$3) {
|
|
1426
1425
|
case "YY": return String(e$2.$y).slice(-2);
|
|
@@ -1450,7 +1449,7 @@ var require_dayjs_min = __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/nod
|
|
|
1450
1449
|
}
|
|
1451
1450
|
return null;
|
|
1452
1451
|
}(t$2) || i$2.replace(":", "");
|
|
1453
|
-
});
|
|
1452
|
+
}));
|
|
1454
1453
|
}, m$2.utcOffset = function() {
|
|
1455
1454
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1456
1455
|
}, m$2.diff = function(r$2, d$3, l$2) {
|
|
@@ -1514,20 +1513,21 @@ var require_dayjs_min = __commonJS({ "../../node_modules/.pnpm/dayjs@1.11.13/nod
|
|
|
1514
1513
|
["$M", c$2],
|
|
1515
1514
|
["$y", h$2],
|
|
1516
1515
|
["$D", d$2]
|
|
1517
|
-
].forEach(function(t$1) {
|
|
1516
|
+
].forEach((function(t$1) {
|
|
1518
1517
|
k$2[t$1[1]] = function(e$2) {
|
|
1519
1518
|
return this.$g(e$2, t$1[0], t$1[1]);
|
|
1520
1519
|
};
|
|
1521
|
-
}), O$1.extend = function(t$1, e$2) {
|
|
1520
|
+
})), O$1.extend = function(t$1, e$2) {
|
|
1522
1521
|
return t$1.$i || (t$1(e$2, _$3, O$1), t$1.$i = !0), O$1;
|
|
1523
1522
|
}, O$1.locale = w$2, O$1.isDayjs = S$1, O$1.unix = function(t$1) {
|
|
1524
1523
|
return O$1(1e3 * t$1);
|
|
1525
1524
|
}, O$1.en = D$1[g$2], O$1.Ls = D$1, O$1.p = {}, O$1;
|
|
1526
|
-
});
|
|
1527
|
-
} });
|
|
1525
|
+
}));
|
|
1526
|
+
}) });
|
|
1528
1527
|
|
|
1529
1528
|
//#endregion
|
|
1530
1529
|
//#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
1530
|
+
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min(), 1);
|
|
1531
1531
|
function isPlainObject(value) {
|
|
1532
1532
|
if (typeof value !== "object" || value === null) return false;
|
|
1533
1533
|
const prototype = Object.getPrototypeOf(value);
|
|
@@ -2327,10 +2327,10 @@ const handleCommand = (filePath, rawArguments, rawOptions) => {
|
|
|
2327
2327
|
|
|
2328
2328
|
//#endregion
|
|
2329
2329
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
2330
|
-
var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
2330
|
+
var require_windows = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js": ((exports, module) => {
|
|
2331
2331
|
module.exports = isexe$3;
|
|
2332
2332
|
isexe$3.sync = sync$2;
|
|
2333
|
-
var fs$
|
|
2333
|
+
var fs$4 = __require("fs");
|
|
2334
2334
|
function checkPathExt(path$8, options) {
|
|
2335
2335
|
var pathext = options.pathExt !== void 0 ? options.pathExt : process.env.PATHEXT;
|
|
2336
2336
|
if (!pathext) return true;
|
|
@@ -2347,28 +2347,28 @@ var require_windows = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_mo
|
|
|
2347
2347
|
return checkPathExt(path$8, options);
|
|
2348
2348
|
}
|
|
2349
2349
|
function isexe$3(path$8, options, cb) {
|
|
2350
|
-
fs$
|
|
2350
|
+
fs$4.stat(path$8, function(er, stat) {
|
|
2351
2351
|
cb(er, er ? false : checkStat$1(stat, path$8, options));
|
|
2352
2352
|
});
|
|
2353
2353
|
}
|
|
2354
2354
|
function sync$2(path$8, options) {
|
|
2355
|
-
return checkStat$1(fs$
|
|
2355
|
+
return checkStat$1(fs$4.statSync(path$8), path$8, options);
|
|
2356
2356
|
}
|
|
2357
|
-
} });
|
|
2357
|
+
}) });
|
|
2358
2358
|
|
|
2359
2359
|
//#endregion
|
|
2360
2360
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
2361
|
-
var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
2361
|
+
var require_mode = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js": ((exports, module) => {
|
|
2362
2362
|
module.exports = isexe$2;
|
|
2363
2363
|
isexe$2.sync = sync$1;
|
|
2364
|
-
var fs$
|
|
2364
|
+
var fs$3 = __require("fs");
|
|
2365
2365
|
function isexe$2(path$8, options, cb) {
|
|
2366
|
-
fs$
|
|
2366
|
+
fs$3.stat(path$8, function(er, stat) {
|
|
2367
2367
|
cb(er, er ? false : checkStat(stat, options));
|
|
2368
2368
|
});
|
|
2369
2369
|
}
|
|
2370
2370
|
function sync$1(path$8, options) {
|
|
2371
|
-
return checkStat(fs$
|
|
2371
|
+
return checkStat(fs$3.statSync(path$8), options);
|
|
2372
2372
|
}
|
|
2373
2373
|
function checkStat(stat, options) {
|
|
2374
2374
|
return stat.isFile() && checkMode(stat, options);
|
|
@@ -2386,12 +2386,12 @@ var require_mode = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modul
|
|
|
2386
2386
|
var ret = mod & o$2 || mod & g$2 && gid === myGid || mod & u$2 && uid === myUid || mod & ug && myUid === 0;
|
|
2387
2387
|
return ret;
|
|
2388
2388
|
}
|
|
2389
|
-
} });
|
|
2389
|
+
}) });
|
|
2390
2390
|
|
|
2391
2391
|
//#endregion
|
|
2392
2392
|
//#region ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
2393
|
-
var require_isexe = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
2394
|
-
|
|
2393
|
+
var require_isexe = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js": ((exports, module) => {
|
|
2394
|
+
__require("fs");
|
|
2395
2395
|
var core;
|
|
2396
2396
|
if (process.platform === "win32" || global.TESTING_WINDOWS) core = require_windows();
|
|
2397
2397
|
else core = require_mode();
|
|
@@ -2429,16 +2429,16 @@ var require_isexe = __commonJS({ "../../node_modules/.pnpm/isexe@2.0.0/node_modu
|
|
|
2429
2429
|
else throw er;
|
|
2430
2430
|
}
|
|
2431
2431
|
}
|
|
2432
|
-
} });
|
|
2432
|
+
}) });
|
|
2433
2433
|
|
|
2434
2434
|
//#endregion
|
|
2435
2435
|
//#region ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
2436
|
-
var require_which = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
|
|
2436
|
+
var require_which = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js": ((exports, module) => {
|
|
2437
2437
|
const isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
2438
2438
|
const path$7 = __require("path");
|
|
2439
2439
|
const COLON = isWindows ? ";" : ":";
|
|
2440
2440
|
const isexe = require_isexe();
|
|
2441
|
-
const getNotFoundError = (cmd) => Object.assign(new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
2441
|
+
const getNotFoundError = (cmd) => Object.assign(/* @__PURE__ */ new Error(`not found: ${cmd}`), { code: "ENOENT" });
|
|
2442
2442
|
const getPathInfo = (cmd, opt) => {
|
|
2443
2443
|
const colon = opt.colon || COLON;
|
|
2444
2444
|
const pathEnv = cmd.match(/\//) || isWindows && cmd.match(/\\/) ? [""] : [...isWindows ? [process.cwd()] : [], ...(opt.path || process.env.PATH || "").split(colon)];
|
|
@@ -2504,11 +2504,11 @@ var require_which = __commonJS({ "../../node_modules/.pnpm/which@2.0.2/node_modu
|
|
|
2504
2504
|
};
|
|
2505
2505
|
module.exports = which$1;
|
|
2506
2506
|
which$1.sync = whichSync;
|
|
2507
|
-
} });
|
|
2507
|
+
}) });
|
|
2508
2508
|
|
|
2509
2509
|
//#endregion
|
|
2510
2510
|
//#region ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
2511
|
-
var require_path_key = __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
|
|
2511
|
+
var require_path_key = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js": ((exports, module) => {
|
|
2512
2512
|
const pathKey$1 = (options = {}) => {
|
|
2513
2513
|
const environment = options.env || process.env;
|
|
2514
2514
|
const platform$1 = options.platform || process.platform;
|
|
@@ -2517,11 +2517,11 @@ var require_path_key = __commonJS({ "../../node_modules/.pnpm/path-key@3.1.1/nod
|
|
|
2517
2517
|
};
|
|
2518
2518
|
module.exports = pathKey$1;
|
|
2519
2519
|
module.exports.default = pathKey$1;
|
|
2520
|
-
} });
|
|
2520
|
+
}) });
|
|
2521
2521
|
|
|
2522
2522
|
//#endregion
|
|
2523
2523
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
2524
|
-
var require_resolveCommand = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
2524
|
+
var require_resolveCommand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js": ((exports, module) => {
|
|
2525
2525
|
const path$6 = __require("path");
|
|
2526
2526
|
const which = require_which();
|
|
2527
2527
|
const getPathKey = require_path_key();
|
|
@@ -2549,11 +2549,11 @@ var require_resolveCommand = __commonJS({ "../../node_modules/.pnpm/cross-spawn@
|
|
|
2549
2549
|
return resolveCommandAttempt(parsed) || resolveCommandAttempt(parsed, true);
|
|
2550
2550
|
}
|
|
2551
2551
|
module.exports = resolveCommand$1;
|
|
2552
|
-
} });
|
|
2552
|
+
}) });
|
|
2553
2553
|
|
|
2554
2554
|
//#endregion
|
|
2555
2555
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
2556
|
-
var require_escape = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
2556
|
+
var require_escape = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js": ((exports, module) => {
|
|
2557
2557
|
const metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
2558
2558
|
function escapeCommand(arg) {
|
|
2559
2559
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
@@ -2570,17 +2570,17 @@ var require_escape = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/no
|
|
|
2570
2570
|
}
|
|
2571
2571
|
module.exports.command = escapeCommand;
|
|
2572
2572
|
module.exports.argument = escapeArgument;
|
|
2573
|
-
} });
|
|
2573
|
+
}) });
|
|
2574
2574
|
|
|
2575
2575
|
//#endregion
|
|
2576
2576
|
//#region ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
2577
|
-
var require_shebang_regex = __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
|
|
2577
|
+
var require_shebang_regex = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js": ((exports, module) => {
|
|
2578
2578
|
module.exports = /^#!(.*)/;
|
|
2579
|
-
} });
|
|
2579
|
+
}) });
|
|
2580
2580
|
|
|
2581
2581
|
//#endregion
|
|
2582
2582
|
//#region ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
2583
|
-
var require_shebang_command = __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
|
|
2583
|
+
var require_shebang_command = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js": ((exports, module) => {
|
|
2584
2584
|
const shebangRegex = require_shebang_regex();
|
|
2585
2585
|
module.exports = (string = "") => {
|
|
2586
2586
|
const match = string.match(shebangRegex);
|
|
@@ -2590,11 +2590,11 @@ var require_shebang_command = __commonJS({ "../../node_modules/.pnpm/shebang-com
|
|
|
2590
2590
|
if (binary === "env") return argument;
|
|
2591
2591
|
return argument ? `${binary} ${argument}` : binary;
|
|
2592
2592
|
};
|
|
2593
|
-
} });
|
|
2593
|
+
}) });
|
|
2594
2594
|
|
|
2595
2595
|
//#endregion
|
|
2596
2596
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
2597
|
-
var require_readShebang = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
2597
|
+
var require_readShebang = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js": ((exports, module) => {
|
|
2598
2598
|
const fs$2 = __require("fs");
|
|
2599
2599
|
const shebangCommand = require_shebang_command();
|
|
2600
2600
|
function readShebang$1(command) {
|
|
@@ -2609,11 +2609,11 @@ var require_readShebang = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0
|
|
|
2609
2609
|
return shebangCommand(buffer.toString());
|
|
2610
2610
|
}
|
|
2611
2611
|
module.exports = readShebang$1;
|
|
2612
|
-
} });
|
|
2612
|
+
}) });
|
|
2613
2613
|
|
|
2614
2614
|
//#endregion
|
|
2615
2615
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
2616
|
-
var require_parse = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
2616
|
+
var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js": ((exports, module) => {
|
|
2617
2617
|
const path$5 = __require("path");
|
|
2618
2618
|
const resolveCommand = require_resolveCommand();
|
|
2619
2619
|
const escape = require_escape();
|
|
@@ -2672,14 +2672,14 @@ var require_parse = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/nod
|
|
|
2672
2672
|
return options.shell ? parsed : parseNonShell(parsed);
|
|
2673
2673
|
}
|
|
2674
2674
|
module.exports = parse$1;
|
|
2675
|
-
} });
|
|
2675
|
+
}) });
|
|
2676
2676
|
|
|
2677
2677
|
//#endregion
|
|
2678
2678
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
2679
|
-
var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
2679
|
+
var require_enoent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js": ((exports, module) => {
|
|
2680
2680
|
const isWin = process.platform === "win32";
|
|
2681
2681
|
function notFoundError(original, syscall) {
|
|
2682
|
-
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
2682
|
+
return Object.assign(/* @__PURE__ */ new Error(`${syscall} ${original.command} ENOENT`), {
|
|
2683
2683
|
code: "ENOENT",
|
|
2684
2684
|
errno: "ENOENT",
|
|
2685
2685
|
syscall: `${syscall} ${original.command}`,
|
|
@@ -2712,11 +2712,11 @@ var require_enoent = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/no
|
|
|
2712
2712
|
verifyENOENTSync,
|
|
2713
2713
|
notFoundError
|
|
2714
2714
|
};
|
|
2715
|
-
} });
|
|
2715
|
+
}) });
|
|
2716
2716
|
|
|
2717
2717
|
//#endregion
|
|
2718
2718
|
//#region ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
2719
|
-
var require_cross_spawn = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
|
|
2719
|
+
var require_cross_spawn = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js": ((exports, module) => {
|
|
2720
2720
|
const cp = __require("child_process");
|
|
2721
2721
|
const parse = require_parse();
|
|
2722
2722
|
const enoent = require_enoent();
|
|
@@ -2737,10 +2737,11 @@ var require_cross_spawn = __commonJS({ "../../node_modules/.pnpm/cross-spawn@7.0
|
|
|
2737
2737
|
module.exports.sync = spawnSync$1;
|
|
2738
2738
|
module.exports._parse = parse;
|
|
2739
2739
|
module.exports._enoent = enoent;
|
|
2740
|
-
} });
|
|
2740
|
+
}) });
|
|
2741
2741
|
|
|
2742
2742
|
//#endregion
|
|
2743
2743
|
//#region ../../node_modules/.pnpm/path-key@4.0.0/node_modules/path-key/index.js
|
|
2744
|
+
var import_cross_spawn = /* @__PURE__ */ __toESM(require_cross_spawn(), 1);
|
|
2744
2745
|
function pathKey(options = {}) {
|
|
2745
2746
|
const { env: env$1 = process.env, platform: platform$1 = process.platform } = options;
|
|
2746
2747
|
if (platform$1 !== "win32") return "PATH";
|
|
@@ -3311,7 +3312,7 @@ const throwOnMissingStrict = (isSubprocess) => {
|
|
|
3311
3312
|
const throwOnStrictDisconnect = (isSubprocess) => {
|
|
3312
3313
|
throw new Error(`${getMethodName("sendMessage", isSubprocess)} failed: the ${getOtherProcessName(isSubprocess)} exited without listening to incoming messages.`);
|
|
3313
3314
|
};
|
|
3314
|
-
const getAbortDisconnectError = () => new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);
|
|
3315
|
+
const getAbortDisconnectError = () => /* @__PURE__ */ new Error(`\`cancelSignal\` aborted: the ${getOtherProcessName(true)} disconnected.`);
|
|
3315
3316
|
const throwOnMissingParent = () => {
|
|
3316
3317
|
throw new Error("`getCancelSignal()` cannot be used without setting the `cancelSignal` subprocess option.");
|
|
3317
3318
|
};
|
|
@@ -3949,7 +3950,6 @@ const fixCwdError = (originalMessage, cwd) => {
|
|
|
3949
3950
|
|
|
3950
3951
|
//#endregion
|
|
3951
3952
|
//#region ../../node_modules/.pnpm/execa@9.5.2/node_modules/execa/lib/arguments/options.js
|
|
3952
|
-
var import_cross_spawn = __toESM(require_cross_spawn(), 1);
|
|
3953
3953
|
const normalizeOptions = (filePath, rawArguments, rawOptions) => {
|
|
3954
3954
|
rawOptions.cwd = normalizeCwd(rawOptions.cwd);
|
|
3955
3955
|
const [processedFile, processedArguments, processedOptions] = handleNodeOption(filePath, rawArguments, rawOptions);
|
|
@@ -4277,7 +4277,7 @@ const arrayMethods = {
|
|
|
4277
4277
|
async function getStreamAsArrayBuffer(stream, options) {
|
|
4278
4278
|
return getStreamContents$1(stream, arrayBufferMethods, options);
|
|
4279
4279
|
}
|
|
4280
|
-
const initArrayBuffer = () => ({ contents: new ArrayBuffer(0) });
|
|
4280
|
+
const initArrayBuffer = () => ({ contents: /* @__PURE__ */ new ArrayBuffer(0) });
|
|
4281
4281
|
const useTextEncoder = (chunk) => textEncoder.encode(chunk);
|
|
4282
4282
|
const textEncoder = new TextEncoder();
|
|
4283
4283
|
const useUint8Array = (chunk) => new Uint8Array(chunk);
|
|
@@ -4626,10 +4626,9 @@ function parseBigint(milliseconds) {
|
|
|
4626
4626
|
}
|
|
4627
4627
|
function parseMilliseconds(milliseconds) {
|
|
4628
4628
|
switch (typeof milliseconds) {
|
|
4629
|
-
case "number":
|
|
4629
|
+
case "number":
|
|
4630
4630
|
if (Number.isFinite(milliseconds)) return parseNumber(milliseconds);
|
|
4631
4631
|
break;
|
|
4632
|
-
}
|
|
4633
4632
|
case "bigint": return parseBigint(milliseconds);
|
|
4634
4633
|
}
|
|
4635
4634
|
throw new TypeError("Expected a finite number or bigint");
|
|
@@ -5169,10 +5168,10 @@ const getDuplicateStream = ({ stdioItem: { type, value, optionName }, direction,
|
|
|
5169
5168
|
optionName
|
|
5170
5169
|
});
|
|
5171
5170
|
};
|
|
5172
|
-
const getOtherStdioItems = (fileDescriptors, type) => fileDescriptors.flatMap(({ direction, stdioItems }) => stdioItems.filter((stdioItem) => stdioItem.type === type).map((stdioItem) => ({
|
|
5171
|
+
const getOtherStdioItems = (fileDescriptors, type) => fileDescriptors.flatMap(({ direction, stdioItems }) => stdioItems.filter((stdioItem) => stdioItem.type === type).map(((stdioItem) => ({
|
|
5173
5172
|
...stdioItem,
|
|
5174
5173
|
direction
|
|
5175
|
-
})));
|
|
5174
|
+
}))));
|
|
5176
5175
|
const validateDuplicateStreamSync = ({ otherStdioItems, type, value, optionName, direction }) => {
|
|
5177
5176
|
if (SPECIAL_DUPLICATE_TYPES_SYNC.has(type)) getDuplicateStreamInstance({
|
|
5178
5177
|
otherStdioItems,
|
|
@@ -5689,7 +5688,7 @@ const logLine = (line, fdNumber, verboseInfo) => {
|
|
|
5689
5688
|
const transformOutputSync = ({ fileDescriptors, syncResult: { output }, options, isMaxBuffer, verboseInfo }) => {
|
|
5690
5689
|
if (output === null) return { output: Array.from({ length: 3 }) };
|
|
5691
5690
|
const state = {};
|
|
5692
|
-
const outputFiles = new Set([]);
|
|
5691
|
+
const outputFiles = /* @__PURE__ */ new Set([]);
|
|
5693
5692
|
const transformedOutput = output.map((result, fdNumber) => transformOutputResultSync({
|
|
5694
5693
|
result,
|
|
5695
5694
|
fileDescriptors,
|
|
@@ -6251,9 +6250,9 @@ const getHighWaterMark = (streams, objectMode) => {
|
|
|
6251
6250
|
return Math.max(...highWaterMarks);
|
|
6252
6251
|
};
|
|
6253
6252
|
var MergedStream = class extends PassThrough {
|
|
6254
|
-
#streams = new Set([]);
|
|
6255
|
-
#ended = new Set([]);
|
|
6256
|
-
#aborted = new Set([]);
|
|
6253
|
+
#streams = /* @__PURE__ */ new Set([]);
|
|
6254
|
+
#ended = /* @__PURE__ */ new Set([]);
|
|
6255
|
+
#aborted = /* @__PURE__ */ new Set([]);
|
|
6257
6256
|
#onFinished;
|
|
6258
6257
|
#unpipeEvent = Symbol("unpipe");
|
|
6259
6258
|
#streamPromises = /* @__PURE__ */ new WeakMap();
|
|
@@ -6852,7 +6851,7 @@ const unpipeOnAbort = (unpipeSignal, unpipeContext) => unpipeSignal === void 0 ?
|
|
|
6852
6851
|
const unpipeOnSignalAbort = async (unpipeSignal, { sourceStream, mergedStream, fileDescriptors, sourceOptions, startTime }) => {
|
|
6853
6852
|
await aborted(unpipeSignal, sourceStream);
|
|
6854
6853
|
await mergedStream.remove(sourceStream);
|
|
6855
|
-
const error = new Error("Pipe canceled by `unpipeSignal` option.");
|
|
6854
|
+
const error = /* @__PURE__ */ new Error("Pipe canceled by `unpipeSignal` option.");
|
|
6856
6855
|
throw createNonCommandError({
|
|
6857
6856
|
error,
|
|
6858
6857
|
fileDescriptors,
|
|
@@ -7954,8 +7953,8 @@ const createWrangler = ({ stdio, accountId, cloudflareApiToken, cwd }) => {
|
|
|
7954
7953
|
|
|
7955
7954
|
//#endregion
|
|
7956
7955
|
//#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js
|
|
7957
|
-
var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js"(exports, module) {
|
|
7958
|
-
module.exports = function() {
|
|
7956
|
+
var require_parser = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/parser.js": ((exports, module) => {
|
|
7957
|
+
module.exports = (function() {
|
|
7959
7958
|
function peg$subclass(child, parent) {
|
|
7960
7959
|
function ctor() {
|
|
7961
7960
|
this.constructor = child;
|
|
@@ -7974,7 +7973,7 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
7974
7973
|
}
|
|
7975
7974
|
peg$subclass(SyntaxError, Error);
|
|
7976
7975
|
function parse$2(input) {
|
|
7977
|
-
var options = arguments.length > 1 ? arguments[1] : {}, peg$FAILED = {}, peg$startRuleFunctions = { start: peg$parsestart }, peg$startRuleFunction = peg$parsestart, peg$
|
|
7976
|
+
var options = arguments.length > 1 ? arguments[1] : {}, peg$FAILED = {}, peg$startRuleFunctions = { start: peg$parsestart }, peg$startRuleFunction = peg$parsestart, peg$c1 = function() {
|
|
7978
7977
|
return nodes;
|
|
7979
7978
|
}, peg$c2 = peg$FAILED, peg$c3 = "#", peg$c4 = {
|
|
7980
7979
|
type: "literal",
|
|
@@ -8053,8 +8052,8 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
8053
8052
|
description: "\"E\""
|
|
8054
8053
|
}, peg$c42 = function(left, right) {
|
|
8055
8054
|
return node("Float", parseFloat(left + "e" + right), line, column);
|
|
8056
|
-
}, peg$c43 = function(text
|
|
8057
|
-
return node("Float", parseFloat(text
|
|
8055
|
+
}, peg$c43 = function(text) {
|
|
8056
|
+
return node("Float", parseFloat(text), line, column);
|
|
8058
8057
|
}, peg$c44 = "+", peg$c45 = {
|
|
8059
8058
|
type: "literal",
|
|
8060
8059
|
value: "+",
|
|
@@ -8067,8 +8066,8 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
8067
8066
|
description: "\"-\""
|
|
8068
8067
|
}, peg$c49 = function(digits) {
|
|
8069
8068
|
return "-" + digits.join("");
|
|
8070
|
-
}, peg$c50 = function(text
|
|
8071
|
-
return node("Integer", parseInt(text
|
|
8069
|
+
}, peg$c50 = function(text) {
|
|
8070
|
+
return node("Integer", parseInt(text, 10), line, column);
|
|
8072
8071
|
}, peg$c51 = "true", peg$c52 = {
|
|
8073
8072
|
type: "literal",
|
|
8074
8073
|
value: "true",
|
|
@@ -8126,9 +8125,9 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
8126
8125
|
value: "Z",
|
|
8127
8126
|
description: "\"Z\""
|
|
8128
8127
|
}, peg$c79 = function(date, time) {
|
|
8129
|
-
return node("Date", new Date(date + "T" + time + "Z"), line, column);
|
|
8128
|
+
return node("Date", /* @__PURE__ */ new Date(date + "T" + time + "Z"), line, column);
|
|
8130
8129
|
}, peg$c80 = function(date, time) {
|
|
8131
|
-
return node("Date", new Date(date + "T" + time), line, column);
|
|
8130
|
+
return node("Date", /* @__PURE__ */ new Date(date + "T" + time), line, column);
|
|
8132
8131
|
}, peg$c81 = /^[ \t]/, peg$c82 = {
|
|
8133
8132
|
type: "class",
|
|
8134
8133
|
value: "[ \\t]",
|
|
@@ -8222,27 +8221,12 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
8222
8221
|
if (!(options.startRule in peg$startRuleFunctions)) throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
|
|
8223
8222
|
peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
|
|
8224
8223
|
}
|
|
8225
|
-
function text() {
|
|
8226
|
-
return input.substring(peg$reportedPos, peg$currPos);
|
|
8227
|
-
}
|
|
8228
|
-
function offset() {
|
|
8229
|
-
return peg$reportedPos;
|
|
8230
|
-
}
|
|
8231
8224
|
function line() {
|
|
8232
8225
|
return peg$computePosDetails(peg$reportedPos).line;
|
|
8233
8226
|
}
|
|
8234
8227
|
function column() {
|
|
8235
8228
|
return peg$computePosDetails(peg$reportedPos).column;
|
|
8236
8229
|
}
|
|
8237
|
-
function expected(description) {
|
|
8238
|
-
throw peg$buildException(null, [{
|
|
8239
|
-
type: "other",
|
|
8240
|
-
description
|
|
8241
|
-
}], peg$reportedPos);
|
|
8242
|
-
}
|
|
8243
|
-
function error(message) {
|
|
8244
|
-
throw peg$buildException(message, null, peg$reportedPos);
|
|
8245
|
-
}
|
|
8246
8230
|
function peg$computePosDetails(pos) {
|
|
8247
8231
|
function advance(details, startPos, endPos) {
|
|
8248
8232
|
var p$1, ch;
|
|
@@ -8276,26 +8260,26 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
8276
8260
|
}
|
|
8277
8261
|
return peg$cachedPosDetails;
|
|
8278
8262
|
}
|
|
8279
|
-
function peg$fail(expected
|
|
8263
|
+
function peg$fail(expected) {
|
|
8280
8264
|
if (peg$currPos < peg$maxFailPos) return;
|
|
8281
8265
|
if (peg$currPos > peg$maxFailPos) {
|
|
8282
8266
|
peg$maxFailPos = peg$currPos;
|
|
8283
8267
|
peg$maxFailExpected = [];
|
|
8284
8268
|
}
|
|
8285
|
-
peg$maxFailExpected.push(expected
|
|
8269
|
+
peg$maxFailExpected.push(expected);
|
|
8286
8270
|
}
|
|
8287
|
-
function peg$buildException(message, expected
|
|
8288
|
-
function cleanupExpected(expected$
|
|
8271
|
+
function peg$buildException(message, expected, pos) {
|
|
8272
|
+
function cleanupExpected(expected$1) {
|
|
8289
8273
|
var i$1 = 1;
|
|
8290
|
-
expected$
|
|
8274
|
+
expected$1.sort(function(a$1, b$2) {
|
|
8291
8275
|
if (a$1.description < b$2.description) return -1;
|
|
8292
8276
|
else if (a$1.description > b$2.description) return 1;
|
|
8293
8277
|
else return 0;
|
|
8294
8278
|
});
|
|
8295
|
-
while (i$1 < expected$
|
|
8279
|
+
while (i$1 < expected$1.length) if (expected$1[i$1 - 1] === expected$1[i$1]) expected$1.splice(i$1, 1);
|
|
8296
8280
|
else i$1++;
|
|
8297
8281
|
}
|
|
8298
|
-
function buildMessage(expected$
|
|
8282
|
+
function buildMessage(expected$1, found$1) {
|
|
8299
8283
|
function stringEscape(s) {
|
|
8300
8284
|
function hex(ch) {
|
|
8301
8285
|
return ch.charCodeAt(0).toString(16).toUpperCase();
|
|
@@ -8310,15 +8294,15 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
8310
8294
|
return "\\u" + hex(ch);
|
|
8311
8295
|
});
|
|
8312
8296
|
}
|
|
8313
|
-
var expectedDescs = new Array(expected$
|
|
8314
|
-
for (i$1 = 0; i$1 < expected$
|
|
8315
|
-
expectedDesc = expected$
|
|
8297
|
+
var expectedDescs = new Array(expected$1.length), expectedDesc, foundDesc, i$1;
|
|
8298
|
+
for (i$1 = 0; i$1 < expected$1.length; i$1++) expectedDescs[i$1] = expected$1[i$1].description;
|
|
8299
|
+
expectedDesc = expected$1.length > 1 ? expectedDescs.slice(0, -1).join(", ") + " or " + expectedDescs[expected$1.length - 1] : expectedDescs[0];
|
|
8316
8300
|
foundDesc = found$1 ? "\"" + stringEscape(found$1) + "\"" : "end of input";
|
|
8317
8301
|
return "Expected " + expectedDesc + " but " + foundDesc + " found.";
|
|
8318
8302
|
}
|
|
8319
8303
|
var posDetails = peg$computePosDetails(pos), found = pos < input.length ? input.charAt(pos) : null;
|
|
8320
|
-
if (expected
|
|
8321
|
-
return new SyntaxError(message !== null ? message : buildMessage(expected
|
|
8304
|
+
if (expected !== null) cleanupExpected(expected);
|
|
8305
|
+
return new SyntaxError(message !== null ? message : buildMessage(expected, found), expected, found, pos, posDetails.line, posDetails.column);
|
|
8322
8306
|
}
|
|
8323
8307
|
function peg$parsestart() {
|
|
8324
8308
|
var s0, s1, s2;
|
|
@@ -11603,19 +11587,18 @@ var require_parser = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modu
|
|
|
11603
11587
|
SyntaxError,
|
|
11604
11588
|
parse: parse$2
|
|
11605
11589
|
};
|
|
11606
|
-
}();
|
|
11607
|
-
} });
|
|
11590
|
+
})();
|
|
11591
|
+
}) });
|
|
11608
11592
|
|
|
11609
11593
|
//#endregion
|
|
11610
11594
|
//#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/compiler.js
|
|
11611
|
-
var require_compiler = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/compiler.js"(exports, module) {
|
|
11595
|
+
var require_compiler = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/lib/compiler.js": ((exports, module) => {
|
|
11612
11596
|
function compile(nodes) {
|
|
11613
11597
|
var assignedPaths = [];
|
|
11614
11598
|
var valueAssignments = [];
|
|
11615
11599
|
var currentPath = "";
|
|
11616
11600
|
var data = Object.create(null);
|
|
11617
11601
|
var context = data;
|
|
11618
|
-
var arrayMode = false;
|
|
11619
11602
|
return reduce(nodes);
|
|
11620
11603
|
function reduce(nodes$1) {
|
|
11621
11604
|
var node;
|
|
@@ -11704,7 +11687,7 @@ var require_compiler = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_mo
|
|
|
11704
11687
|
function deepRef(start, keys, value, line, column) {
|
|
11705
11688
|
var traversed = [];
|
|
11706
11689
|
var traversedPath = "";
|
|
11707
|
-
|
|
11690
|
+
keys.join(".");
|
|
11708
11691
|
var ctx = start;
|
|
11709
11692
|
for (var i$1 = 0; i$1 < keys.length; i$1++) {
|
|
11710
11693
|
var key = keys[i$1];
|
|
@@ -11733,22 +11716,22 @@ var require_compiler = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_mo
|
|
|
11733
11716
|
}
|
|
11734
11717
|
}
|
|
11735
11718
|
module.exports = { compile };
|
|
11736
|
-
} });
|
|
11719
|
+
}) });
|
|
11737
11720
|
|
|
11738
11721
|
//#endregion
|
|
11739
11722
|
//#region ../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/index.js
|
|
11740
|
-
var require_toml = __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/index.js"(exports, module) {
|
|
11723
|
+
var require_toml = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/toml@3.0.0/node_modules/toml/index.js": ((exports, module) => {
|
|
11741
11724
|
var parser = require_parser();
|
|
11742
11725
|
var compiler = require_compiler();
|
|
11743
11726
|
module.exports = { parse: function(input) {
|
|
11744
11727
|
var nodes = parser.parse(input.toString());
|
|
11745
11728
|
return compiler.compile(nodes);
|
|
11746
11729
|
} };
|
|
11747
|
-
} });
|
|
11730
|
+
}) });
|
|
11748
11731
|
|
|
11749
11732
|
//#endregion
|
|
11750
11733
|
//#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js
|
|
11751
|
-
var require_XDGAppPaths = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js"(exports) {
|
|
11734
|
+
var require_XDGAppPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/lib/XDGAppPaths.js": ((exports) => {
|
|
11752
11735
|
exports.__esModule = true;
|
|
11753
11736
|
exports.Adapt = void 0;
|
|
11754
11737
|
function isBoolean(t) {
|
|
@@ -11832,12 +11815,12 @@ var require_XDGAppPaths = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8
|
|
|
11832
11815
|
return { XDGAppPaths: new XDGAppPaths_() };
|
|
11833
11816
|
}
|
|
11834
11817
|
exports.Adapt = Adapt$2;
|
|
11835
|
-
} });
|
|
11818
|
+
}) });
|
|
11836
11819
|
|
|
11837
11820
|
//#endregion
|
|
11838
11821
|
//#region ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js
|
|
11839
|
-
var require_XDG = __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js"(exports) {
|
|
11840
|
-
var __spreadArray$1 =
|
|
11822
|
+
var require_XDG = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/lib/XDG.js": ((exports) => {
|
|
11823
|
+
var __spreadArray$1 = exports && exports.__spreadArray || function(to, from) {
|
|
11841
11824
|
for (var i$1 = 0, il = from.length, j = to.length; i$1 < il; i$1++, j++) to[j] = from[i$1];
|
|
11842
11825
|
return to;
|
|
11843
11826
|
};
|
|
@@ -11989,12 +11972,12 @@ var require_XDG = __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/nod
|
|
|
11989
11972
|
return { XDG: new XDG_() };
|
|
11990
11973
|
}
|
|
11991
11974
|
exports.Adapt = Adapt$1;
|
|
11992
|
-
} });
|
|
11975
|
+
}) });
|
|
11993
11976
|
|
|
11994
11977
|
//#endregion
|
|
11995
11978
|
//#region ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js
|
|
11996
|
-
var require_OSPaths = __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js"(exports) {
|
|
11997
|
-
var __spreadArray =
|
|
11979
|
+
var require_OSPaths = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/lib/OSPaths.js": ((exports) => {
|
|
11980
|
+
var __spreadArray = exports && exports.__spreadArray || function(to, from) {
|
|
11998
11981
|
for (var i$1 = 0, il = from.length, j = to.length; i$1 < il; i$1++, j++) to[j] = from[i$1];
|
|
11999
11982
|
return to;
|
|
12000
11983
|
};
|
|
@@ -12098,12 +12081,12 @@ var require_OSPaths = __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node
|
|
|
12098
12081
|
return { OSPaths: new OSPaths_() };
|
|
12099
12082
|
}
|
|
12100
12083
|
exports.Adapt = Adapt;
|
|
12101
|
-
} });
|
|
12084
|
+
}) });
|
|
12102
12085
|
|
|
12103
12086
|
//#endregion
|
|
12104
12087
|
//#region ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js
|
|
12105
|
-
var require_node$2 = __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js"(exports) {
|
|
12106
|
-
var __createBinding$2 =
|
|
12088
|
+
var require_node$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/platform-adapters/node.js": ((exports) => {
|
|
12089
|
+
var __createBinding$2 = exports && exports.__createBinding || (Object.create ? (function(o$2, m$1, k$2, k2) {
|
|
12107
12090
|
if (k2 === void 0) k2 = k$2;
|
|
12108
12091
|
Object.defineProperty(o$2, k2, {
|
|
12109
12092
|
enumerable: true,
|
|
@@ -12111,19 +12094,19 @@ var require_node$2 = __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_
|
|
|
12111
12094
|
return m$1[k$2];
|
|
12112
12095
|
}
|
|
12113
12096
|
});
|
|
12114
|
-
} : function(o$2, m$1, k$2, k2) {
|
|
12097
|
+
}) : (function(o$2, m$1, k$2, k2) {
|
|
12115
12098
|
if (k2 === void 0) k2 = k$2;
|
|
12116
12099
|
o$2[k2] = m$1[k$2];
|
|
12117
|
-
});
|
|
12118
|
-
var __setModuleDefault$2 =
|
|
12100
|
+
}));
|
|
12101
|
+
var __setModuleDefault$2 = exports && exports.__setModuleDefault || (Object.create ? (function(o$2, v$1) {
|
|
12119
12102
|
Object.defineProperty(o$2, "default", {
|
|
12120
12103
|
enumerable: true,
|
|
12121
12104
|
value: v$1
|
|
12122
12105
|
});
|
|
12123
|
-
} : function(o$2, v$1) {
|
|
12106
|
+
}) : function(o$2, v$1) {
|
|
12124
12107
|
o$2["default"] = v$1;
|
|
12125
12108
|
});
|
|
12126
|
-
var __importStar$2 =
|
|
12109
|
+
var __importStar$2 = exports && exports.__importStar || function(mod) {
|
|
12127
12110
|
if (mod && mod.__esModule) return mod;
|
|
12128
12111
|
var result = {};
|
|
12129
12112
|
if (mod != null) {
|
|
@@ -12145,20 +12128,20 @@ var require_node$2 = __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_
|
|
|
12145
12128
|
path: path$4,
|
|
12146
12129
|
process
|
|
12147
12130
|
};
|
|
12148
|
-
} });
|
|
12131
|
+
}) });
|
|
12149
12132
|
|
|
12150
12133
|
//#endregion
|
|
12151
12134
|
//#region ../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js
|
|
12152
|
-
var require_mod_cjs$2 = __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js"(exports, module) {
|
|
12135
|
+
var require_mod_cjs$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/os-paths@7.4.0/node_modules/os-paths/dist/cjs/mod.cjs.js": ((exports, module) => {
|
|
12153
12136
|
var OSPaths_js_1 = require_OSPaths();
|
|
12154
12137
|
var node_js_1$2 = require_node$2();
|
|
12155
12138
|
module.exports = OSPaths_js_1.Adapt(node_js_1$2.adapter).OSPaths;
|
|
12156
|
-
} });
|
|
12139
|
+
}) });
|
|
12157
12140
|
|
|
12158
12141
|
//#endregion
|
|
12159
12142
|
//#region ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js
|
|
12160
|
-
var require_node$1 = __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js"(exports) {
|
|
12161
|
-
var __createBinding$1 =
|
|
12143
|
+
var require_node$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/platform-adapters/node.js": ((exports) => {
|
|
12144
|
+
var __createBinding$1 = exports && exports.__createBinding || (Object.create ? (function(o$2, m$1, k$2, k2) {
|
|
12162
12145
|
if (k2 === void 0) k2 = k$2;
|
|
12163
12146
|
Object.defineProperty(o$2, k2, {
|
|
12164
12147
|
enumerable: true,
|
|
@@ -12166,19 +12149,19 @@ var require_node$1 = __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/
|
|
|
12166
12149
|
return m$1[k$2];
|
|
12167
12150
|
}
|
|
12168
12151
|
});
|
|
12169
|
-
} : function(o$2, m$1, k$2, k2) {
|
|
12152
|
+
}) : (function(o$2, m$1, k$2, k2) {
|
|
12170
12153
|
if (k2 === void 0) k2 = k$2;
|
|
12171
12154
|
o$2[k2] = m$1[k$2];
|
|
12172
|
-
});
|
|
12173
|
-
var __setModuleDefault$1 =
|
|
12155
|
+
}));
|
|
12156
|
+
var __setModuleDefault$1 = exports && exports.__setModuleDefault || (Object.create ? (function(o$2, v$1) {
|
|
12174
12157
|
Object.defineProperty(o$2, "default", {
|
|
12175
12158
|
enumerable: true,
|
|
12176
12159
|
value: v$1
|
|
12177
12160
|
});
|
|
12178
|
-
} : function(o$2, v$1) {
|
|
12161
|
+
}) : function(o$2, v$1) {
|
|
12179
12162
|
o$2["default"] = v$1;
|
|
12180
12163
|
});
|
|
12181
|
-
var __importStar$1 =
|
|
12164
|
+
var __importStar$1 = exports && exports.__importStar || function(mod) {
|
|
12182
12165
|
if (mod && mod.__esModule) return mod;
|
|
12183
12166
|
var result = {};
|
|
12184
12167
|
if (mod != null) {
|
|
@@ -12187,7 +12170,7 @@ var require_node$1 = __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/
|
|
|
12187
12170
|
__setModuleDefault$1(result, mod);
|
|
12188
12171
|
return result;
|
|
12189
12172
|
};
|
|
12190
|
-
var __importDefault$1 =
|
|
12173
|
+
var __importDefault$1 = exports && exports.__importDefault || function(mod) {
|
|
12191
12174
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12192
12175
|
};
|
|
12193
12176
|
exports.__esModule = true;
|
|
@@ -12203,20 +12186,20 @@ var require_node$1 = __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/
|
|
|
12203
12186
|
path: path$3,
|
|
12204
12187
|
process
|
|
12205
12188
|
};
|
|
12206
|
-
} });
|
|
12189
|
+
}) });
|
|
12207
12190
|
|
|
12208
12191
|
//#endregion
|
|
12209
12192
|
//#region ../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js
|
|
12210
|
-
var require_mod_cjs$1 = __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js"(exports, module) {
|
|
12193
|
+
var require_mod_cjs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-portable@10.6.0/node_modules/xdg-portable/dist/cjs/mod.cjs.js": ((exports, module) => {
|
|
12211
12194
|
var XDG_js_1 = require_XDG();
|
|
12212
12195
|
var node_js_1$1 = require_node$1();
|
|
12213
12196
|
module.exports = XDG_js_1.Adapt(node_js_1$1.adapter).XDG;
|
|
12214
|
-
} });
|
|
12197
|
+
}) });
|
|
12215
12198
|
|
|
12216
12199
|
//#endregion
|
|
12217
12200
|
//#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js
|
|
12218
|
-
var require_node = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js"(exports) {
|
|
12219
|
-
var __createBinding =
|
|
12201
|
+
var require_node = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/platform-adapters/node.js": ((exports) => {
|
|
12202
|
+
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o$2, m$1, k$2, k2) {
|
|
12220
12203
|
if (k2 === void 0) k2 = k$2;
|
|
12221
12204
|
Object.defineProperty(o$2, k2, {
|
|
12222
12205
|
enumerable: true,
|
|
@@ -12224,19 +12207,19 @@ var require_node = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/no
|
|
|
12224
12207
|
return m$1[k$2];
|
|
12225
12208
|
}
|
|
12226
12209
|
});
|
|
12227
|
-
} : function(o$2, m$1, k$2, k2) {
|
|
12210
|
+
}) : (function(o$2, m$1, k$2, k2) {
|
|
12228
12211
|
if (k2 === void 0) k2 = k$2;
|
|
12229
12212
|
o$2[k2] = m$1[k$2];
|
|
12230
|
-
});
|
|
12231
|
-
var __setModuleDefault =
|
|
12213
|
+
}));
|
|
12214
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o$2, v$1) {
|
|
12232
12215
|
Object.defineProperty(o$2, "default", {
|
|
12233
12216
|
enumerable: true,
|
|
12234
12217
|
value: v$1
|
|
12235
12218
|
});
|
|
12236
|
-
} : function(o$2, v$1) {
|
|
12219
|
+
}) : function(o$2, v$1) {
|
|
12237
12220
|
o$2["default"] = v$1;
|
|
12238
12221
|
});
|
|
12239
|
-
var __importStar =
|
|
12222
|
+
var __importStar = exports && exports.__importStar || function(mod) {
|
|
12240
12223
|
if (mod && mod.__esModule) return mod;
|
|
12241
12224
|
var result = {};
|
|
12242
12225
|
if (mod != null) {
|
|
@@ -12245,7 +12228,7 @@ var require_node = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/no
|
|
|
12245
12228
|
__setModuleDefault(result, mod);
|
|
12246
12229
|
return result;
|
|
12247
12230
|
};
|
|
12248
|
-
var __importDefault =
|
|
12231
|
+
var __importDefault = exports && exports.__importDefault || function(mod) {
|
|
12249
12232
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
12250
12233
|
};
|
|
12251
12234
|
exports.__esModule = true;
|
|
@@ -12272,27 +12255,27 @@ var require_node = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/no
|
|
|
12272
12255
|
process,
|
|
12273
12256
|
xdg: xdg_portable_1["default"]
|
|
12274
12257
|
};
|
|
12275
|
-
} });
|
|
12258
|
+
}) });
|
|
12276
12259
|
|
|
12277
12260
|
//#endregion
|
|
12278
12261
|
//#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js
|
|
12279
|
-
var require_mod_cjs = __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js"(exports, module) {
|
|
12262
|
+
var require_mod_cjs = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/mod.cjs.js": ((exports, module) => {
|
|
12280
12263
|
var XDGAppPaths_js_1 = require_XDGAppPaths();
|
|
12281
12264
|
var node_js_1 = require_node();
|
|
12282
12265
|
module.exports = XDGAppPaths_js_1.Adapt(node_js_1.adapter).XDGAppPaths;
|
|
12283
|
-
} });
|
|
12266
|
+
}) });
|
|
12284
12267
|
|
|
12285
12268
|
//#endregion
|
|
12286
12269
|
//#region ../../node_modules/.pnpm/xdg-app-paths@8.3.0/node_modules/xdg-app-paths/dist/cjs/esm-wrapper/mod.esm.js
|
|
12270
|
+
var import_toml = /* @__PURE__ */ __toESM(require_toml(), 1);
|
|
12287
12271
|
var mod_esm_exports = {};
|
|
12288
12272
|
__export(mod_esm_exports, { default: () => mod_esm_default });
|
|
12289
|
-
var import_mod_cjs = __toESM(require_mod_cjs(), 1);
|
|
12290
|
-
__reExport(mod_esm_exports, __toESM(require_mod_cjs(), 1));
|
|
12273
|
+
var import_mod_cjs = /* @__PURE__ */ __toESM(require_mod_cjs(), 1);
|
|
12274
|
+
__reExport(mod_esm_exports, /* @__PURE__ */ __toESM(require_mod_cjs(), 1));
|
|
12291
12275
|
var mod_esm_default = import_mod_cjs.default;
|
|
12292
12276
|
|
|
12293
12277
|
//#endregion
|
|
12294
12278
|
//#region iac/getWranglerLoginAuthToken.ts
|
|
12295
|
-
var import_toml = __toESM(require_toml());
|
|
12296
12279
|
const isDirectory = (configPath) => {
|
|
12297
12280
|
try {
|
|
12298
12281
|
return fs.statSync(configPath).isDirectory();
|
|
@@ -12318,7 +12301,6 @@ const getWranglerLoginAuthToken = () => {
|
|
|
12318
12301
|
|
|
12319
12302
|
//#endregion
|
|
12320
12303
|
//#region iac/index.ts
|
|
12321
|
-
var import_dayjs_min = __toESM(require_dayjs_min());
|
|
12322
12304
|
const getConfigTemplate = (build) => {
|
|
12323
12305
|
const storageConfig = {
|
|
12324
12306
|
imports: [{
|
|
@@ -12560,10 +12542,10 @@ const runInit = async ({ build }) => {
|
|
|
12560
12542
|
HOT_UPDATER_CLOUDFLARE_R2_BUCKET_NAME: selectedBucketName,
|
|
12561
12543
|
HOT_UPDATER_CLOUDFLARE_D1_DATABASE_ID: selectedD1DatabaseId
|
|
12562
12544
|
});
|
|
12563
|
-
f.success("Generated '.env' file with Cloudflare settings.");
|
|
12545
|
+
f.success("Generated '.env.hotupdater' file with Cloudflare settings.");
|
|
12564
12546
|
f.success("Generated 'hot-updater.config.ts' file with Cloudflare settings.");
|
|
12565
12547
|
if (subdomains.subdomain) Me(transformTemplate(SOURCE_TEMPLATE, { source: `https://${workerName}.${subdomains.subdomain}.workers.dev/api/check-update` }));
|
|
12566
|
-
f.message(`Next step: ${link("https://
|
|
12548
|
+
f.message(`Next step: ${link("https://hot-updater.dev/guide/providers/2_cloudflare.html#step-4-add-hotupdater-to-your-project")}`);
|
|
12567
12549
|
f.success("Done! 🎉");
|
|
12568
12550
|
};
|
|
12569
12551
|
|