@volter/world-runtime 3.0.158 → 3.0.160
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/src/pack-facts.d.ts +1 -0
- package/dist/src/runtime.js +1 -1
- package/package.json +3 -3
- package/src/pack-facts.ts +1 -1
- package/src/runtime.ts +1 -1
package/dist/src/pack-facts.d.ts
CHANGED
package/dist/src/runtime.js
CHANGED
|
@@ -1562,7 +1562,7 @@ async function sidePortsFor(vendor, args, allocatedPorts) {
|
|
|
1562
1562
|
const given = at >= 0 ? Number(args[at + 1]) : Number.NaN;
|
|
1563
1563
|
const pinned = Number.isInteger(given) && given > 0;
|
|
1564
1564
|
const port = pinned ? given : await allocatePort(allocatedPorts);
|
|
1565
|
-
out.push({ name: side.name, option: side.option, flag: side.flag, port, pinned, url:
|
|
1565
|
+
out.push({ name: side.name, option: side.option, flag: side.flag, port, pinned, url: `${side.scheme ?? 'http'}://127.0.0.1:${port}${side.path ?? ''}` });
|
|
1566
1566
|
}
|
|
1567
1567
|
return out;
|
|
1568
1568
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-runtime",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.160",
|
|
4
4
|
"description": "World configs for twins: boot named local runtimes, allocate ports, generate world.env/instance.json, and run apps against fake-key twin worlds.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"node": ">=22.3"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@volter/world-core": "3.0.
|
|
73
|
+
"@volter/world-core": "3.0.152",
|
|
74
74
|
"@volter/world-console": "3.0.150"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@volter/browser-runtime": "0.1.104",
|
|
81
81
|
"@volter/browser-sandboxes": "0.1.84",
|
|
82
82
|
"@volter/world-access": "3.0.1",
|
|
83
|
-
"@volter/world-core": "3.0.
|
|
83
|
+
"@volter/world-core": "3.0.152",
|
|
84
84
|
"modern-screenshot": "4.7.0",
|
|
85
85
|
"mongodb": "~6.20.0",
|
|
86
86
|
"pg-gateway": "0.3.0-beta.4",
|
package/src/pack-facts.ts
CHANGED
|
@@ -38,7 +38,7 @@ export type PackFacts = {
|
|
|
38
38
|
/** The World's managed database the runtime binds the twin to at boot (TwinPack.managedDatabase). */
|
|
39
39
|
managedDatabase?: { kind: 'postgres'; arg: string; note: string };
|
|
40
40
|
/** Listeners the twin opens beside its main port, allocated and recorded by the runtime (TwinPack.sidePorts). */
|
|
41
|
-
sidePorts?: Array<{ name: string; option: string; flag: string; path?: string; note: string }>;
|
|
41
|
+
sidePorts?: Array<{ name: string; option: string; flag: string; path?: string; scheme?: string; note: string }>;
|
|
42
42
|
/** R16: the protocol major the package targets and its standing against the kernel that compiled the artifact. */
|
|
43
43
|
protocol?: { declared?: string; major: number; standing: 'current' | 'deprecated' | 'refused' | 'assumed' };
|
|
44
44
|
};
|
package/src/runtime.ts
CHANGED
|
@@ -1535,7 +1535,7 @@ async function sidePortsFor(vendor: string, args: readonly string[], allocatedPo
|
|
|
1535
1535
|
const given = at >= 0 ? Number(args[at + 1]) : Number.NaN;
|
|
1536
1536
|
const pinned = Number.isInteger(given) && given > 0;
|
|
1537
1537
|
const port = pinned ? given : await allocatePort(allocatedPorts);
|
|
1538
|
-
out.push({ name: side.name, option: side.option, flag: side.flag, port, pinned, url:
|
|
1538
|
+
out.push({ name: side.name, option: side.option, flag: side.flag, port, pinned, url: `${side.scheme ?? 'http'}://127.0.0.1:${port}${side.path ?? ''}` });
|
|
1539
1539
|
}
|
|
1540
1540
|
return out;
|
|
1541
1541
|
}
|