truecanvas 0.6.1 → 0.6.2
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/{chunk-NAK4DQWO.js → chunk-FJO64PGM.js} +8 -0
- package/dist/cli.js +1 -1
- package/dist/editor/assets/Menu-TTrH9CSM.js +9 -0
- package/dist/editor/assets/{Menu-BGfgJ59U.css → Menu-ikkNcA3s.css} +1 -1
- package/dist/editor/assets/hub-C_YkICvy.js +2 -0
- package/dist/editor/assets/main-Dx3BpXRE.js +27 -0
- package/dist/editor/hub.html +3 -3
- package/dist/editor/index.html +3 -3
- package/dist/hub.d.ts +1 -0
- package/dist/hub.js +1 -1
- package/package.json +1 -1
- package/dist/editor/assets/Menu-BbEG2pRj.js +0 -9
- package/dist/editor/assets/hub-DOR9_rf9.js +0 -2
- package/dist/editor/assets/main-vJb_YsG2.js +0 -27
|
@@ -564,6 +564,13 @@ async function startHub(opts) {
|
|
|
564
564
|
const store = new ProjectStore();
|
|
565
565
|
const editorDir = fileURLToPath(new URL("./editor/", import.meta.url));
|
|
566
566
|
const pkgDir = path5.resolve(path5.dirname(opts.cli), "..");
|
|
567
|
+
const version = (() => {
|
|
568
|
+
try {
|
|
569
|
+
return JSON.parse(fs5.readFileSync(path5.join(pkgDir, "package.json"), "utf8")).version;
|
|
570
|
+
} catch {
|
|
571
|
+
return "";
|
|
572
|
+
}
|
|
573
|
+
})();
|
|
567
574
|
const origin = `http://localhost:${opts.port}`;
|
|
568
575
|
const allowedHosts = /* @__PURE__ */ new Set([`localhost:${opts.port}`, `127.0.0.1:${opts.port}`]);
|
|
569
576
|
const clients = /* @__PURE__ */ new Set();
|
|
@@ -628,6 +635,7 @@ async function startHub(opts) {
|
|
|
628
635
|
const live = await Promise.all(running.map(async (dir) => [dir, await sessionsOf(dir)]));
|
|
629
636
|
return {
|
|
630
637
|
origin,
|
|
638
|
+
version,
|
|
631
639
|
active,
|
|
632
640
|
focus,
|
|
633
641
|
notice: opts.notice ?? null,
|