@volter/world-host 3.0.29 → 3.0.31
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/twins-host.js +1 -1
- package/package.json +5 -5
- package/src/twins-host.ts +1 -1
package/dist/src/twins-host.js
CHANGED
|
@@ -298,7 +298,7 @@ export async function createWorldHost(options) {
|
|
|
298
298
|
// this machine's loopback origins, where the World's own page needs no token either
|
|
299
299
|
const site = origins && !originBase ? siteOfHost(at.hostname, byServed.keys()) : undefined;
|
|
300
300
|
if (site)
|
|
301
|
-
return byServed.get(site.world).site(request, site.site);
|
|
301
|
+
return !site.site.includes('.') && site.site.includes('--') ? byServed.get(site.world).handle(request) : byServed.get(site.world).site(request, site.site);
|
|
302
302
|
// a World's content plane serves that World's twins' pages and nothing else of this host's (no console, no admin)
|
|
303
303
|
const pagesFor = origins ? pagesOfHost(at.hostname, byServed.keys(), originBase) : undefined;
|
|
304
304
|
if (pagesFor)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/world-host",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.31",
|
|
4
4
|
"description": "The hosted remote: worlds under one URL, each holding the canonical history of a real vendor account and its sealed credential — what a local world clones from and pushes to.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@volter/world-access": "3.0.1",
|
|
30
|
-
"@volter/world-core": "3.0.
|
|
31
|
-
"@volter/world-runtime": "3.0.
|
|
30
|
+
"@volter/world-core": "3.0.31",
|
|
31
|
+
"@volter/world-runtime": "3.0.31"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@volter/world-console": "3.0.
|
|
34
|
+
"@volter/world-console": "3.0.26"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@volter/world-console": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@volter/world-console": "3.0.
|
|
42
|
+
"@volter/world-console": "3.0.26"
|
|
43
43
|
},
|
|
44
44
|
"exports": {
|
|
45
45
|
".": {
|
package/src/twins-host.ts
CHANGED
|
@@ -256,7 +256,7 @@ export async function createWorldHost(options: WorldHostOptions): Promise<WorldH
|
|
|
256
256
|
// a site the World's twins answer, under the World's local origin (`<hostname>.<world>--<org>.localhost`): only on
|
|
257
257
|
// this machine's loopback origins, where the World's own page needs no token either
|
|
258
258
|
const site = origins && !originBase ? siteOfHost(at.hostname, byServed.keys()) : undefined;
|
|
259
|
-
if (site) return byServed.get(site.world)!.site(request, site.site);
|
|
259
|
+
if (site) return !site.site.includes('.') && site.site.includes('--') ? byServed.get(site.world)!.handle(request) : byServed.get(site.world)!.site(request, site.site);
|
|
260
260
|
// a World's content plane serves that World's twins' pages and nothing else of this host's (no console, no admin)
|
|
261
261
|
const pagesFor = origins ? pagesOfHost(at.hostname, byServed.keys(), originBase) : undefined;
|
|
262
262
|
if (pagesFor) return path === '/-/ping' ? json({ ok: true, worlds: [pagesFor] }) : byServed.get(pagesFor)!.handle(request);
|