@volter/twin-standard 1.0.33 → 1.0.34
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.
|
@@ -33,7 +33,7 @@ export async function chromiumServed(packDir, host) {
|
|
|
33
33
|
return;
|
|
34
34
|
}
|
|
35
35
|
try {
|
|
36
|
-
const response = await fetchPack(new Request(request.url(), { method: request.method(), headers: request.
|
|
36
|
+
const response = await fetchPack(new Request(request.url(), { method: request.method(), headers: await request.allHeaders(), ...(request.postDataBuffer() ? { body: new Uint8Array(request.postDataBuffer()).buffer } : {}) }));
|
|
37
37
|
const headers = Object.fromEntries(response.headers);
|
|
38
38
|
const cookies = response.headers.getSetCookie();
|
|
39
39
|
if (cookies.length)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@volter/twin-standard",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.34",
|
|
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",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"yaml": "2.9.0"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
|
-
"@volter/world-core": "3.0.
|
|
73
|
+
"@volter/world-core": "3.0.42",
|
|
74
74
|
"@volter/world-runtime": "*",
|
|
75
75
|
"playwright": "^1.63.0"
|
|
76
76
|
},
|
|
@@ -17,7 +17,7 @@ export async function chromiumServed(packDir: string, host: string) {
|
|
|
17
17
|
if (request.url() === harness) { await route.fulfill({ status: 200, contentType: 'text/html', body: '<!doctype html><title>Catalog assessment</title>' }); return; }
|
|
18
18
|
if (!['xhr', 'fetch'].includes(request.resourceType())) { await route.abort('blockedbyclient'); return; }
|
|
19
19
|
try {
|
|
20
|
-
const response = await fetchPack(new Request(request.url(), { method: request.method(), headers: request.
|
|
20
|
+
const response = await fetchPack(new Request(request.url(), { method: request.method(), headers: await request.allHeaders(), ...(request.postDataBuffer() ? { body: new Uint8Array(request.postDataBuffer()!).buffer } : {}) }));
|
|
21
21
|
const headers = Object.fromEntries(response.headers);
|
|
22
22
|
const cookies = response.headers.getSetCookie();
|
|
23
23
|
if (cookies.length) headers['set-cookie'] = cookies.join('\n');
|