@volter/twin-standard 1.0.71 → 1.0.72
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/conformance.js +1 -1
- package/package.json +2 -2
- package/src/conformance.ts +1 -1
package/dist/src/conformance.js
CHANGED
|
@@ -386,7 +386,7 @@ async function lifeServed(pack) {
|
|
|
386
386
|
const headers = new Headers(request.headers);
|
|
387
387
|
headers.set('host', url.host);
|
|
388
388
|
const body = request.method === 'GET' || request.method === 'HEAD' ? undefined : await request.arrayBuffer();
|
|
389
|
-
const answer = await within(10_000, fetch(`http://127.0.0.1:${port}${url.pathname}${url.search}`, { method: request.method, headers, redirect: 'manual', ...(body ? { body } : {}) }));
|
|
389
|
+
const answer = await within(10_000, fetch(`http://127.0.0.1:${port}${url.pathname}${url.search}`, { method: request.method, headers, redirect: 'manual', keepalive: false, ...(body ? { body } : {}) }));
|
|
390
390
|
return answer === 'timeout' ? new Response(`no answer in 10 s from the served pack (${request.method} ${url.pathname})`, { status: 599 }) : answer;
|
|
391
391
|
},
|
|
392
392
|
// a socket opened as an application opens it: a WebSocket to the served port, the vendor's host in its Host header
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/twin-standard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.72",
|
|
4
4
|
"description": "The Protocol 3 standard for Volter twin packs: the criteria a pack is graded by, the grader, the gate a pack repository and the twin catalog run on every change and submission, and the spec derivation the grade checks against. Pin a version: every place a pack is judged judges by that standard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"twin",
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
"yaml": "2.9.0"
|
|
76
76
|
},
|
|
77
77
|
"peerDependencies": {
|
|
78
|
-
"@volter/world-core": "3.0.
|
|
78
|
+
"@volter/world-core": "3.0.80",
|
|
79
79
|
"@volter/world-runtime": "*",
|
|
80
80
|
"playwright": "^1.63.0"
|
|
81
81
|
},
|
package/src/conformance.ts
CHANGED
|
@@ -341,7 +341,7 @@ async function lifeServed(pack: string): Promise<string[]> {
|
|
|
341
341
|
const headers = new Headers(request.headers);
|
|
342
342
|
headers.set('host', url.host);
|
|
343
343
|
const body = request.method === 'GET' || request.method === 'HEAD' ? undefined : await request.arrayBuffer();
|
|
344
|
-
const answer = await within(10_000, fetch(`http://127.0.0.1:${port}${url.pathname}${url.search}`, { method: request.method, headers, redirect: 'manual', ...(body ? { body } : {}) }));
|
|
344
|
+
const answer = await within(10_000, fetch(`http://127.0.0.1:${port}${url.pathname}${url.search}`, { method: request.method, headers, redirect: 'manual', keepalive: false, ...(body ? { body } : {}) }));
|
|
345
345
|
return answer === 'timeout' ? new Response(`no answer in 10 s from the served pack (${request.method} ${url.pathname})`, { status: 599 }) : answer;
|
|
346
346
|
},
|
|
347
347
|
// a socket opened as an application opens it: a WebSocket to the served port, the vendor's host in its Host header
|