@bitcobblers/wod-wiki-tools 0.36.2133 → 0.36.2134
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/bin/wod.cjs +14 -3
- package/dist/bin/wod.cjs.map +1 -1
- package/dist/bin/wod.mjs +13 -3
- package/dist/bin/wod.mjs.map +1 -1
- package/dist/{chunk-DZESCGCM.mjs → chunk-32FASQP5.mjs} +3 -3
- package/dist/{chunk-DZESCGCM.mjs.map → chunk-32FASQP5.mjs.map} +1 -1
- package/dist/{chunk-OZI2FYPF.mjs → chunk-B3QJYJVI.mjs} +5 -5
- package/dist/{chunk-OZI2FYPF.mjs.map → chunk-B3QJYJVI.mjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/{server-Z2T7IGZX.mjs → server-3TJZDKQC.mjs} +3 -3
- package/dist/{server-Z2T7IGZX.mjs.map → server-3TJZDKQC.mjs.map} +1 -1
- package/dist/web/playground/assets/{main-Bh_mthqc.js → main-Bj_mxNMk.js} +4 -4
- package/dist/web/playground/assets/{statementBuilderFlow-gvzmxfiE.js → statementBuilderFlow-DXlHS86r.js} +2 -2
- package/dist/web/playground/index.html +1 -1
- package/dist/web/playground/seed/core/chunks/{canvas.d2a5e6e7.json → canvas.054cd7db.json} +1 -1
- package/dist/web/playground/seed/core/manifest.json +5 -5
- package/dist/web/playground/seed/core/report.html +9 -9
- package/dist/web/server/assets/{main-CPRFCrjV.js → main-CfAVkURA.js} +4 -4
- package/dist/web/server/assets/{statementBuilderFlow-DT1tyXgc.js → statementBuilderFlow-CXugzTXB.js} +2 -2
- package/dist/web/server/index.html +1 -1
- package/dist/web/server/seed/core/chunks/{canvas.d2a5e6e7.json → canvas.054cd7db.json} +1 -1
- package/dist/web/server/seed/core/manifest.json +5 -5
- package/dist/web/server/seed/core/report.html +10 -10
- package/package.json +6 -6
package/dist/bin/wod.cjs
CHANGED
|
@@ -11,6 +11,7 @@ var crypto = require('crypto');
|
|
|
11
11
|
var promises = require('fs/promises');
|
|
12
12
|
var sql = require('@bitcobblers/wod-wiki-storage/sql');
|
|
13
13
|
var wodWikiStorage = require('@bitcobblers/wod-wiki-storage');
|
|
14
|
+
var url = require('url');
|
|
14
15
|
var wodWikiEngine = require('@bitcobblers/wod-wiki-engine');
|
|
15
16
|
|
|
16
17
|
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
@@ -1355,7 +1356,7 @@ __export(server_exports, {
|
|
|
1355
1356
|
function bun() {
|
|
1356
1357
|
const b = globalThis.Bun;
|
|
1357
1358
|
if (!b) {
|
|
1358
|
-
throw new Error("wod server/playground requires the Bun runtime
|
|
1359
|
+
throw new Error("wod server/playground requires the Bun runtime (https://bun.sh)");
|
|
1359
1360
|
}
|
|
1360
1361
|
return b;
|
|
1361
1362
|
}
|
|
@@ -2707,7 +2708,7 @@ ${escapeCsvField(data.parsed.metric)},${data.scalar},${escapeCsvField(data.unit
|
|
|
2707
2708
|
}
|
|
2708
2709
|
|
|
2709
2710
|
// src/version.ts
|
|
2710
|
-
var VERSION = "0.36.
|
|
2711
|
+
var VERSION = "0.36.2134";
|
|
2711
2712
|
|
|
2712
2713
|
// src/cli/runner.ts
|
|
2713
2714
|
function getFs2() {
|
|
@@ -3493,7 +3494,7 @@ async function cliMain(argv = process.argv.slice(2), io = {}) {
|
|
|
3493
3494
|
if (parsed.subcommand === "server" || parsed.subcommand === "serve" || parsed.subcommand === "playground") {
|
|
3494
3495
|
if (!("Bun" in globalThis)) {
|
|
3495
3496
|
writeErr(
|
|
3496
|
-
`[wod ${parsed.subcommand}] Error: hosting requires the Bun runtime (https://bun.sh)
|
|
3497
|
+
`[wod ${parsed.subcommand}] Error: hosting requires the Bun runtime (https://bun.sh). Install Bun to host: https://bun.sh`
|
|
3497
3498
|
);
|
|
3498
3499
|
return 1;
|
|
3499
3500
|
}
|
|
@@ -3524,6 +3525,16 @@ async function cliMain(argv = process.argv.slice(2), io = {}) {
|
|
|
3524
3525
|
}
|
|
3525
3526
|
|
|
3526
3527
|
// src/bin/wod.ts
|
|
3528
|
+
var isBun = typeof globalThis.Bun !== "undefined";
|
|
3529
|
+
if (!isBun) {
|
|
3530
|
+
const check = child_process.spawnSync("bun", ["--version"], { stdio: "ignore" });
|
|
3531
|
+
if (check.status === 0) {
|
|
3532
|
+
const res = child_process.spawnSync("bun", ["--no-env-file", url.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('wod.cjs', document.baseURI).href))), ...process.argv.slice(2)], {
|
|
3533
|
+
stdio: "inherit"
|
|
3534
|
+
});
|
|
3535
|
+
process.exit(res.status ?? 0);
|
|
3536
|
+
}
|
|
3537
|
+
}
|
|
3527
3538
|
void (async () => {
|
|
3528
3539
|
const exitCode = await cliMain(process.argv.slice(2));
|
|
3529
3540
|
process.exitCode = exitCode;
|