@quilted/quilt 0.5.50 → 0.5.51
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/build/cjs/server/http-handler.cjs +3 -22
- package/build/esm/server/http-handler.mjs +3 -22
- package/build/esnext/server/http-handler.esnext +3 -22
- package/build/tsconfig.tsbuildinfo +60 -28
- package/build/typescript/server/http-handler.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/server/http-handler.tsx +4 -16
|
@@ -22,25 +22,15 @@ function createServerRenderingRequestHandler(App, {
|
|
|
22
22
|
});
|
|
23
23
|
const {
|
|
24
24
|
headers,
|
|
25
|
-
cookies,
|
|
26
25
|
statusCode = 200,
|
|
27
26
|
redirectUrl
|
|
28
27
|
} = http.state;
|
|
29
28
|
|
|
30
29
|
if (redirectUrl) {
|
|
31
|
-
|
|
30
|
+
return httpHandlers.redirect(redirectUrl, {
|
|
32
31
|
status: statusCode,
|
|
33
32
|
headers
|
|
34
33
|
});
|
|
35
|
-
|
|
36
|
-
for (const [name, {
|
|
37
|
-
value,
|
|
38
|
-
...options
|
|
39
|
-
}] of cookies.records()) {
|
|
40
|
-
response.cookies.set(name, value, options);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
return response;
|
|
44
34
|
}
|
|
45
35
|
|
|
46
36
|
const usedAssets = asyncAssets.used({
|
|
@@ -60,25 +50,16 @@ function createServerRenderingRequestHandler(App, {
|
|
|
60
50
|
}), {
|
|
61
51
|
options: assetOptions
|
|
62
52
|
})]);
|
|
63
|
-
|
|
53
|
+
return httpHandlers.html(server.render( /*#__PURE__*/jsxRuntime.jsx(server.Html, {
|
|
64
54
|
manager: htmlManager,
|
|
65
55
|
styles: styles,
|
|
66
56
|
scripts: scripts,
|
|
67
57
|
preloadAssets: preload,
|
|
68
58
|
children: markup
|
|
69
59
|
})), {
|
|
70
|
-
headers
|
|
60
|
+
headers,
|
|
71
61
|
status: statusCode
|
|
72
62
|
});
|
|
73
|
-
|
|
74
|
-
for (const [name, {
|
|
75
|
-
value,
|
|
76
|
-
...options
|
|
77
|
-
}] of cookies.records()) {
|
|
78
|
-
response.cookies.set(name, value, options);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
return response;
|
|
82
63
|
};
|
|
83
64
|
}
|
|
84
65
|
function createServerRenderingHttpHandler(App, {
|
|
@@ -18,25 +18,15 @@ function createServerRenderingRequestHandler(App, {
|
|
|
18
18
|
});
|
|
19
19
|
const {
|
|
20
20
|
headers,
|
|
21
|
-
cookies,
|
|
22
21
|
statusCode = 200,
|
|
23
22
|
redirectUrl
|
|
24
23
|
} = http.state;
|
|
25
24
|
|
|
26
25
|
if (redirectUrl) {
|
|
27
|
-
|
|
26
|
+
return redirect(redirectUrl, {
|
|
28
27
|
status: statusCode,
|
|
29
28
|
headers
|
|
30
29
|
});
|
|
31
|
-
|
|
32
|
-
for (const [name, {
|
|
33
|
-
value,
|
|
34
|
-
...options
|
|
35
|
-
}] of cookies.records()) {
|
|
36
|
-
response.cookies.set(name, value, options);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return response;
|
|
40
30
|
}
|
|
41
31
|
|
|
42
32
|
const usedAssets = asyncAssets.used({
|
|
@@ -56,25 +46,16 @@ function createServerRenderingRequestHandler(App, {
|
|
|
56
46
|
}), {
|
|
57
47
|
options: assetOptions
|
|
58
48
|
})]);
|
|
59
|
-
|
|
49
|
+
return html(render( /*#__PURE__*/jsx(Html, {
|
|
60
50
|
manager: htmlManager,
|
|
61
51
|
styles: styles,
|
|
62
52
|
scripts: scripts,
|
|
63
53
|
preloadAssets: preload,
|
|
64
54
|
children: markup
|
|
65
55
|
})), {
|
|
66
|
-
headers
|
|
56
|
+
headers,
|
|
67
57
|
status: statusCode
|
|
68
58
|
});
|
|
69
|
-
|
|
70
|
-
for (const [name, {
|
|
71
|
-
value,
|
|
72
|
-
...options
|
|
73
|
-
}] of cookies.records()) {
|
|
74
|
-
response.cookies.set(name, value, options);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return response;
|
|
78
59
|
};
|
|
79
60
|
}
|
|
80
61
|
function createServerRenderingHttpHandler(App, {
|
|
@@ -18,25 +18,15 @@ function createServerRenderingRequestHandler(App, {
|
|
|
18
18
|
});
|
|
19
19
|
const {
|
|
20
20
|
headers,
|
|
21
|
-
cookies,
|
|
22
21
|
statusCode = 200,
|
|
23
22
|
redirectUrl
|
|
24
23
|
} = http.state;
|
|
25
24
|
|
|
26
25
|
if (redirectUrl) {
|
|
27
|
-
|
|
26
|
+
return redirect(redirectUrl, {
|
|
28
27
|
status: statusCode,
|
|
29
28
|
headers
|
|
30
29
|
});
|
|
31
|
-
|
|
32
|
-
for (const [name, {
|
|
33
|
-
value,
|
|
34
|
-
...options
|
|
35
|
-
}] of cookies.records()) {
|
|
36
|
-
response.cookies.set(name, value, options);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return response;
|
|
40
30
|
}
|
|
41
31
|
|
|
42
32
|
const usedAssets = asyncAssets.used({
|
|
@@ -56,25 +46,16 @@ function createServerRenderingRequestHandler(App, {
|
|
|
56
46
|
}), {
|
|
57
47
|
options: assetOptions
|
|
58
48
|
})]);
|
|
59
|
-
|
|
49
|
+
return html(render( /*#__PURE__*/jsx(Html, {
|
|
60
50
|
manager: htmlManager,
|
|
61
51
|
styles: styles,
|
|
62
52
|
scripts: scripts,
|
|
63
53
|
preloadAssets: preload,
|
|
64
54
|
children: markup
|
|
65
55
|
})), {
|
|
66
|
-
headers
|
|
56
|
+
headers,
|
|
67
57
|
status: statusCode
|
|
68
58
|
});
|
|
69
|
-
|
|
70
|
-
for (const [name, {
|
|
71
|
-
value,
|
|
72
|
-
...options
|
|
73
|
-
}] of cookies.records()) {
|
|
74
|
-
response.cookies.set(name, value, options);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
return response;
|
|
78
59
|
};
|
|
79
60
|
}
|
|
80
61
|
function createServerRenderingHttpHandler(App, {
|
|
@@ -306,9 +306,14 @@
|
|
|
306
306
|
"signature": "1b38963302e00e5699e1f60ef8831893061669f200d533af9a204418bf10fb85",
|
|
307
307
|
"affectsGlobalScope": false
|
|
308
308
|
},
|
|
309
|
+
"../../http/build/typescript/cookies.d.ts": {
|
|
310
|
+
"version": "9758a93eb2e04be6326fbd5c8e9669980baf592a2e3a3de30447e6a6a7628510",
|
|
311
|
+
"signature": "9758a93eb2e04be6326fbd5c8e9669980baf592a2e3a3de30447e6a6a7628510",
|
|
312
|
+
"affectsGlobalScope": false
|
|
313
|
+
},
|
|
309
314
|
"../../http/build/typescript/headers.d.ts": {
|
|
310
|
-
"version": "
|
|
311
|
-
"signature": "
|
|
315
|
+
"version": "e767fbad42c49239078520097c0c412b70f6d0ca6f6802ba1f18d04745ef2773",
|
|
316
|
+
"signature": "e767fbad42c49239078520097c0c412b70f6d0ca6f6802ba1f18d04745ef2773",
|
|
312
317
|
"affectsGlobalScope": false
|
|
313
318
|
},
|
|
314
319
|
"../../http/build/typescript/method.d.ts": {
|
|
@@ -326,11 +331,6 @@
|
|
|
326
331
|
"signature": "4af1d9c3ef1d7c9299e58b87f441e284a2b30a433a334329b4e849e94f0d8405",
|
|
327
332
|
"affectsGlobalScope": false
|
|
328
333
|
},
|
|
329
|
-
"../../http/build/typescript/cookies.d.ts": {
|
|
330
|
-
"version": "66cc945734779a8fa587ec43160dc08fd4c7a0f695bd397ded1aa083dc010975",
|
|
331
|
-
"signature": "66cc945734779a8fa587ec43160dc08fd4c7a0f695bd397ded1aa083dc010975",
|
|
332
|
-
"affectsGlobalScope": false
|
|
333
|
-
},
|
|
334
334
|
"../../http/build/typescript/content-security-policy.d.ts": {
|
|
335
335
|
"version": "b1bee01e36203cb9d5c35f345bfaed736defc3b1393271350b77ae131b555aef",
|
|
336
336
|
"signature": "b1bee01e36203cb9d5c35f345bfaed736defc3b1393271350b77ae131b555aef",
|
|
@@ -342,13 +342,18 @@
|
|
|
342
342
|
"affectsGlobalScope": false
|
|
343
343
|
},
|
|
344
344
|
"../../http/build/typescript/index.d.ts": {
|
|
345
|
-
"version": "
|
|
346
|
-
"signature": "
|
|
345
|
+
"version": "aaf91e5ed62f772837f6fade2bf1d3b302a94e5f4968c2dd2da0e4d878eb7789",
|
|
346
|
+
"signature": "aaf91e5ed62f772837f6fade2bf1d3b302a94e5f4968c2dd2da0e4d878eb7789",
|
|
347
|
+
"affectsGlobalScope": false
|
|
348
|
+
},
|
|
349
|
+
"../../react-http/build/typescript/types.d.ts": {
|
|
350
|
+
"version": "c8b390dd6656b2440ce2ed32f0f7575aaad09f4dc81811256cfca2efd7c147bf",
|
|
351
|
+
"signature": "c8b390dd6656b2440ce2ed32f0f7575aaad09f4dc81811256cfca2efd7c147bf",
|
|
347
352
|
"affectsGlobalScope": false
|
|
348
353
|
},
|
|
349
354
|
"../../react-http/build/typescript/hooks/cookie.d.ts": {
|
|
350
|
-
"version": "
|
|
351
|
-
"signature": "
|
|
355
|
+
"version": "6799c0c57904cc60e0b0c97a11c50fccff34de72bea3f4bf8c349ad570ecb909",
|
|
356
|
+
"signature": "6799c0c57904cc60e0b0c97a11c50fccff34de72bea3f4bf8c349ad570ecb909",
|
|
352
357
|
"affectsGlobalScope": false
|
|
353
358
|
},
|
|
354
359
|
"../../react-http/build/typescript/hooks/cache-control.d.ts": {
|
|
@@ -412,8 +417,8 @@
|
|
|
412
417
|
"affectsGlobalScope": false
|
|
413
418
|
},
|
|
414
419
|
"../../react-http/build/typescript/manager.d.ts": {
|
|
415
|
-
"version": "
|
|
416
|
-
"signature": "
|
|
420
|
+
"version": "0697ef11e00f65672588344f73774b6c01d9f4d0f2c74a46bebc46f7c6d1edbe",
|
|
421
|
+
"signature": "0697ef11e00f65672588344f73774b6c01d9f4d0f2c74a46bebc46f7c6d1edbe",
|
|
417
422
|
"affectsGlobalScope": false
|
|
418
423
|
},
|
|
419
424
|
"../../react-http/build/typescript/hooks/http-action.d.ts": {
|
|
@@ -1752,8 +1757,8 @@
|
|
|
1752
1757
|
"affectsGlobalScope": false
|
|
1753
1758
|
},
|
|
1754
1759
|
"../../react-http/build/typescript/context.d.ts": {
|
|
1755
|
-
"version": "
|
|
1756
|
-
"signature": "
|
|
1760
|
+
"version": "f899eb7c30f7b237aeb1a0ff8ac75ba5ba96033b6c465400b9002513bed5fd86",
|
|
1761
|
+
"signature": "f899eb7c30f7b237aeb1a0ff8ac75ba5ba96033b6c465400b9002513bed5fd86",
|
|
1757
1762
|
"affectsGlobalScope": false
|
|
1758
1763
|
},
|
|
1759
1764
|
"../../react-http/build/typescript/server.d.ts": {
|
|
@@ -1777,8 +1782,8 @@
|
|
|
1777
1782
|
"affectsGlobalScope": false
|
|
1778
1783
|
},
|
|
1779
1784
|
"../../http-handlers/build/typescript/types.d.ts": {
|
|
1780
|
-
"version": "
|
|
1781
|
-
"signature": "
|
|
1785
|
+
"version": "8c0ce0cee0db52ef79c2b1e7fecc74d3b9f0b0ba310f5765ebd0e877b5bc4a07",
|
|
1786
|
+
"signature": "8c0ce0cee0db52ef79c2b1e7fecc74d3b9f0b0ba310f5765ebd0e877b5bc4a07",
|
|
1782
1787
|
"affectsGlobalScope": false
|
|
1783
1788
|
},
|
|
1784
1789
|
"../../http-handlers/build/typescript/http-handler.d.ts": {
|
|
@@ -1787,8 +1792,8 @@
|
|
|
1787
1792
|
"affectsGlobalScope": false
|
|
1788
1793
|
},
|
|
1789
1794
|
"../../http-handlers/build/typescript/response.d.ts": {
|
|
1790
|
-
"version": "
|
|
1791
|
-
"signature": "
|
|
1795
|
+
"version": "b70f0e0411b6bb7ca3d6e3d9ba165ea2adfc86004878eb021885dcbfa6378bea",
|
|
1796
|
+
"signature": "b70f0e0411b6bb7ca3d6e3d9ba165ea2adfc86004878eb021885dcbfa6378bea",
|
|
1792
1797
|
"affectsGlobalScope": false
|
|
1793
1798
|
},
|
|
1794
1799
|
"../../http-handlers/build/typescript/fetch.d.ts": {
|
|
@@ -1796,9 +1801,14 @@
|
|
|
1796
1801
|
"signature": "d646d08c0599484911468e44cf3bb72107fefde75266f224dfcc7d4ea9095309",
|
|
1797
1802
|
"affectsGlobalScope": false
|
|
1798
1803
|
},
|
|
1804
|
+
"../../http-handlers/build/typescript/cookies.d.ts": {
|
|
1805
|
+
"version": "7a72c3a32e728f2b46c4673557b8fb9fea63ed72ae25d3ee7fd96d116d6d0764",
|
|
1806
|
+
"signature": "7a72c3a32e728f2b46c4673557b8fb9fea63ed72ae25d3ee7fd96d116d6d0764",
|
|
1807
|
+
"affectsGlobalScope": false
|
|
1808
|
+
},
|
|
1799
1809
|
"../../http-handlers/build/typescript/index.d.ts": {
|
|
1800
|
-
"version": "
|
|
1801
|
-
"signature": "
|
|
1810
|
+
"version": "3fb0576bd3c432a84a90e176b20d3c2cae5b05ba47d3e35b1831846b16780ecd",
|
|
1811
|
+
"signature": "3fb0576bd3c432a84a90e176b20d3c2cae5b05ba47d3e35b1831846b16780ecd",
|
|
1802
1812
|
"affectsGlobalScope": false
|
|
1803
1813
|
},
|
|
1804
1814
|
"../../react-server-render/build/typescript/manager.d.ts": {
|
|
@@ -1822,7 +1832,7 @@
|
|
|
1822
1832
|
"affectsGlobalScope": false
|
|
1823
1833
|
},
|
|
1824
1834
|
"../src/server/http-handler.tsx": {
|
|
1825
|
-
"version": "
|
|
1835
|
+
"version": "b7139111dafaa7fcc7853b41981c821c97d6a81f4129ef298be8fc36cf57ea8c",
|
|
1826
1836
|
"signature": "dc5c88d8037a2a5a5f369f71f96ccd9d8fcdcddb3a10df8b942991d478b59d41",
|
|
1827
1837
|
"affectsGlobalScope": false
|
|
1828
1838
|
},
|
|
@@ -2397,8 +2407,8 @@
|
|
|
2397
2407
|
"affectsGlobalScope": false
|
|
2398
2408
|
},
|
|
2399
2409
|
"../../../node_modules/@types/estree/index.d.ts": {
|
|
2400
|
-
"version": "
|
|
2401
|
-
"signature": "
|
|
2410
|
+
"version": "89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b",
|
|
2411
|
+
"signature": "89ccbe04e737ce613f5f04990271cfa84901446350b8551b0555ddf19319723b",
|
|
2402
2412
|
"affectsGlobalScope": false
|
|
2403
2413
|
},
|
|
2404
2414
|
"../../../node_modules/@types/fs-extra/index.d.ts": {
|
|
@@ -4077,6 +4087,10 @@
|
|
|
4077
4087
|
"../../graphql/build/typescript/utilities/cache.d.ts": [
|
|
4078
4088
|
"../../graphql/build/typescript/types.d.ts"
|
|
4079
4089
|
],
|
|
4090
|
+
"../../http-handlers/build/typescript/cookies.d.ts": [
|
|
4091
|
+
"../../http-handlers/build/typescript/types.d.ts",
|
|
4092
|
+
"../../http/build/typescript/index.d.ts"
|
|
4093
|
+
],
|
|
4080
4094
|
"../../http-handlers/build/typescript/fetch.d.ts": [
|
|
4081
4095
|
"../../routing/build/typescript/index.d.ts"
|
|
4082
4096
|
],
|
|
@@ -4085,6 +4099,7 @@
|
|
|
4085
4099
|
"../../routing/build/typescript/index.d.ts"
|
|
4086
4100
|
],
|
|
4087
4101
|
"../../http-handlers/build/typescript/index.d.ts": [
|
|
4102
|
+
"../../http-handlers/build/typescript/cookies.d.ts",
|
|
4088
4103
|
"../../http-handlers/build/typescript/fetch.d.ts",
|
|
4089
4104
|
"../../http-handlers/build/typescript/http-handler.d.ts",
|
|
4090
4105
|
"../../http-handlers/build/typescript/response.d.ts",
|
|
@@ -4493,13 +4508,14 @@
|
|
|
4493
4508
|
"../../react-http/build/typescript/context.d.ts": [
|
|
4494
4509
|
"../../../node_modules/@types/react/index.d.ts",
|
|
4495
4510
|
"../../http/build/typescript/index.d.ts",
|
|
4496
|
-
"../../react-http/build/typescript/manager.d.ts"
|
|
4511
|
+
"../../react-http/build/typescript/manager.d.ts",
|
|
4512
|
+
"../../react-http/build/typescript/types.d.ts"
|
|
4497
4513
|
],
|
|
4498
4514
|
"../../react-http/build/typescript/hooks/content-security-policy.d.ts": [
|
|
4499
4515
|
"../../http/build/typescript/index.d.ts"
|
|
4500
4516
|
],
|
|
4501
4517
|
"../../react-http/build/typescript/hooks/cookie.d.ts": [
|
|
4502
|
-
"../../http/build/typescript/
|
|
4518
|
+
"../../react-http/build/typescript/types.d.ts"
|
|
4503
4519
|
],
|
|
4504
4520
|
"../../react-http/build/typescript/hooks/http-action.d.ts": [
|
|
4505
4521
|
"../../react-http/build/typescript/manager.d.ts"
|
|
@@ -4536,6 +4552,7 @@
|
|
|
4536
4552
|
],
|
|
4537
4553
|
"../../react-http/build/typescript/manager.d.ts": [
|
|
4538
4554
|
"../../http/build/typescript/index.d.ts",
|
|
4555
|
+
"../../react-http/build/typescript/types.d.ts",
|
|
4539
4556
|
"../../react-server-render/build/typescript/index.d.ts"
|
|
4540
4557
|
],
|
|
4541
4558
|
"../../react-http/build/typescript/server.d.ts": [
|
|
@@ -4543,6 +4560,9 @@
|
|
|
4543
4560
|
"../../react-http/build/typescript/context.d.ts",
|
|
4544
4561
|
"../../react-http/build/typescript/manager.d.ts"
|
|
4545
4562
|
],
|
|
4563
|
+
"../../react-http/build/typescript/types.d.ts": [
|
|
4564
|
+
"../../http/build/typescript/index.d.ts"
|
|
4565
|
+
],
|
|
4546
4566
|
"../../react-idle/build/typescript/index.d.ts": [
|
|
4547
4567
|
"../../react-idle/build/typescript/hooks.d.ts"
|
|
4548
4568
|
],
|
|
@@ -6041,6 +6061,10 @@
|
|
|
6041
6061
|
"../../graphql/build/typescript/utilities/cache.d.ts": [
|
|
6042
6062
|
"../../graphql/build/typescript/types.d.ts"
|
|
6043
6063
|
],
|
|
6064
|
+
"../../http-handlers/build/typescript/cookies.d.ts": [
|
|
6065
|
+
"../../http-handlers/build/typescript/types.d.ts",
|
|
6066
|
+
"../../http/build/typescript/index.d.ts"
|
|
6067
|
+
],
|
|
6044
6068
|
"../../http-handlers/build/typescript/fetch.d.ts": [
|
|
6045
6069
|
"../../routing/build/typescript/index.d.ts"
|
|
6046
6070
|
],
|
|
@@ -6049,6 +6073,7 @@
|
|
|
6049
6073
|
"../../routing/build/typescript/index.d.ts"
|
|
6050
6074
|
],
|
|
6051
6075
|
"../../http-handlers/build/typescript/index.d.ts": [
|
|
6076
|
+
"../../http-handlers/build/typescript/cookies.d.ts",
|
|
6052
6077
|
"../../http-handlers/build/typescript/fetch.d.ts",
|
|
6053
6078
|
"../../http-handlers/build/typescript/http-handler.d.ts",
|
|
6054
6079
|
"../../http-handlers/build/typescript/response.d.ts",
|
|
@@ -6438,13 +6463,14 @@
|
|
|
6438
6463
|
"../../react-http/build/typescript/context.d.ts": [
|
|
6439
6464
|
"../../../node_modules/@types/react/index.d.ts",
|
|
6440
6465
|
"../../http/build/typescript/index.d.ts",
|
|
6441
|
-
"../../react-http/build/typescript/manager.d.ts"
|
|
6466
|
+
"../../react-http/build/typescript/manager.d.ts",
|
|
6467
|
+
"../../react-http/build/typescript/types.d.ts"
|
|
6442
6468
|
],
|
|
6443
6469
|
"../../react-http/build/typescript/hooks/content-security-policy.d.ts": [
|
|
6444
6470
|
"../../http/build/typescript/index.d.ts"
|
|
6445
6471
|
],
|
|
6446
6472
|
"../../react-http/build/typescript/hooks/cookie.d.ts": [
|
|
6447
|
-
"../../http/build/typescript/
|
|
6473
|
+
"../../react-http/build/typescript/types.d.ts"
|
|
6448
6474
|
],
|
|
6449
6475
|
"../../react-http/build/typescript/hooks/http-action.d.ts": [
|
|
6450
6476
|
"../../react-http/build/typescript/manager.d.ts"
|
|
@@ -6481,6 +6507,7 @@
|
|
|
6481
6507
|
],
|
|
6482
6508
|
"../../react-http/build/typescript/manager.d.ts": [
|
|
6483
6509
|
"../../http/build/typescript/index.d.ts",
|
|
6510
|
+
"../../react-http/build/typescript/types.d.ts",
|
|
6484
6511
|
"../../react-server-render/build/typescript/index.d.ts"
|
|
6485
6512
|
],
|
|
6486
6513
|
"../../react-http/build/typescript/server.d.ts": [
|
|
@@ -6488,6 +6515,9 @@
|
|
|
6488
6515
|
"../../react-http/build/typescript/context.d.ts",
|
|
6489
6516
|
"../../react-http/build/typescript/manager.d.ts"
|
|
6490
6517
|
],
|
|
6518
|
+
"../../react-http/build/typescript/types.d.ts": [
|
|
6519
|
+
"../../http/build/typescript/index.d.ts"
|
|
6520
|
+
],
|
|
6491
6521
|
"../../react-idle/build/typescript/index.d.ts": [
|
|
6492
6522
|
"../../react-idle/build/typescript/hooks.d.ts"
|
|
6493
6523
|
],
|
|
@@ -7082,6 +7112,7 @@
|
|
|
7082
7112
|
"../../graphql/build/typescript/matchers/index.d.ts",
|
|
7083
7113
|
"../../graphql/build/typescript/types.d.ts",
|
|
7084
7114
|
"../../graphql/build/typescript/utilities/cache.d.ts",
|
|
7115
|
+
"../../http-handlers/build/typescript/cookies.d.ts",
|
|
7085
7116
|
"../../http-handlers/build/typescript/fetch.d.ts",
|
|
7086
7117
|
"../../http-handlers/build/typescript/http-handler.d.ts",
|
|
7087
7118
|
"../../http-handlers/build/typescript/index.d.ts",
|
|
@@ -7212,6 +7243,7 @@
|
|
|
7212
7243
|
"../../react-http/build/typescript/index.d.ts",
|
|
7213
7244
|
"../../react-http/build/typescript/manager.d.ts",
|
|
7214
7245
|
"../../react-http/build/typescript/server.d.ts",
|
|
7246
|
+
"../../react-http/build/typescript/types.d.ts",
|
|
7215
7247
|
"../../react-idle/build/typescript/hooks.d.ts",
|
|
7216
7248
|
"../../react-idle/build/typescript/index.d.ts",
|
|
7217
7249
|
"../../react-performance/build/typescript/PerformanceContext.d.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http-handler.d.ts","sourceRoot":"","sources":["../../../src/server/http-handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAIvD,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,OAAQ,SAAQ,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC;IACjE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,wBAAgB,mCAAmC,CACjD,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,EACvB,EAAC,MAAM,EAAC,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,GAChC,cAAc,
|
|
1
|
+
{"version":3,"file":"http-handler.d.ts","sourceRoot":"","sources":["../../../src/server/http-handler.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,OAAO,CAAC;AAEzC,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,uBAAuB,CAAC;AAIvD,OAAO,KAAK,EACV,WAAW,EACX,cAAc,EACd,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,OAAQ,SAAQ,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC;IACjE,MAAM,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC7B,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAED,wBAAgB,mCAAmC,CACjD,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,EACvB,EAAC,MAAM,EAAC,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,CAAC,GAChC,cAAc,CAiDhB;AAED,wBAAgB,gCAAgC,CAC9C,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,EACvB,EAAC,MAAM,EAAE,MAAM,EAAE,OAAqC,EAAC,EAAE,OAAO,eAIjE"}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quilted/quilt",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.51",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/lemonmade/quilt.git",
|
|
@@ -106,17 +106,17 @@
|
|
|
106
106
|
"dependencies": {
|
|
107
107
|
"@quilted/async": "^0.3.12",
|
|
108
108
|
"@quilted/graphql": "^0.4.11",
|
|
109
|
-
"@quilted/http-handlers": "^0.2.
|
|
109
|
+
"@quilted/http-handlers": "^0.2.17",
|
|
110
110
|
"@quilted/polyfills": "^0.2.12",
|
|
111
111
|
"@quilted/preact-mini-compat": "^0.2.7",
|
|
112
112
|
"@quilted/react-async": "^0.3.22",
|
|
113
113
|
"@quilted/react-email": "^0.2.18",
|
|
114
114
|
"@quilted/react-graphql": "^0.4.27",
|
|
115
115
|
"@quilted/react-html": "^0.3.18",
|
|
116
|
-
"@quilted/react-http": "^0.3.
|
|
116
|
+
"@quilted/react-http": "^0.3.7",
|
|
117
117
|
"@quilted/react-idle": "^0.3.6",
|
|
118
118
|
"@quilted/react-performance": "^0.1.0",
|
|
119
|
-
"@quilted/react-router": "^0.3.
|
|
119
|
+
"@quilted/react-router": "^0.3.27",
|
|
120
120
|
"@quilted/react-server-render": "^0.3.7",
|
|
121
121
|
"@quilted/react-testing": "^0.5.1",
|
|
122
122
|
"@quilted/react-workers": "^0.2.12",
|
|
@@ -154,5 +154,5 @@
|
|
|
154
154
|
"@quilted/eslint-config/package"
|
|
155
155
|
]
|
|
156
156
|
},
|
|
157
|
-
"gitHead": "
|
|
157
|
+
"gitHead": "6aa14a9da4f201c6e8d5209f7da02ca482291dfa"
|
|
158
158
|
}
|
|
@@ -32,19 +32,13 @@ export function createServerRenderingRequestHandler(
|
|
|
32
32
|
headers: request.headers,
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
const {headers,
|
|
35
|
+
const {headers, statusCode = 200, redirectUrl} = http.state;
|
|
36
36
|
|
|
37
37
|
if (redirectUrl) {
|
|
38
|
-
|
|
38
|
+
return redirect(redirectUrl, {
|
|
39
39
|
status: statusCode as 301,
|
|
40
40
|
headers,
|
|
41
41
|
});
|
|
42
|
-
|
|
43
|
-
for (const [name, {value, ...options}] of cookies.records()) {
|
|
44
|
-
response.cookies.set(name, value, options);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return response;
|
|
48
42
|
}
|
|
49
43
|
|
|
50
44
|
const usedAssets = asyncAssets.used({timing: 'load'});
|
|
@@ -58,7 +52,7 @@ export function createServerRenderingRequestHandler(
|
|
|
58
52
|
}),
|
|
59
53
|
]);
|
|
60
54
|
|
|
61
|
-
|
|
55
|
+
return html(
|
|
62
56
|
render(
|
|
63
57
|
<Html
|
|
64
58
|
manager={htmlManager}
|
|
@@ -70,16 +64,10 @@ export function createServerRenderingRequestHandler(
|
|
|
70
64
|
</Html>,
|
|
71
65
|
),
|
|
72
66
|
{
|
|
73
|
-
headers
|
|
67
|
+
headers,
|
|
74
68
|
status: statusCode,
|
|
75
69
|
},
|
|
76
70
|
);
|
|
77
|
-
|
|
78
|
-
for (const [name, {value, ...options}] of cookies.records()) {
|
|
79
|
-
response.cookies.set(name, value, options);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return response;
|
|
83
71
|
};
|
|
84
72
|
}
|
|
85
73
|
|