@quilted/quilt 0.5.60 → 0.5.63
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/CHANGELOG.md +20 -0
- package/build/cjs/email.cjs +6 -18
- package/build/cjs/html.cjs +25 -75
- package/build/cjs/http-handlers/index.cjs +1 -3
- package/build/cjs/http-handlers/node.cjs +1 -3
- package/build/cjs/http.cjs +25 -75
- package/build/cjs/index.cjs +37 -111
- package/build/cjs/react/index.cjs +2 -6
- package/build/cjs/react/jsx-runtime.cjs +1 -3
- package/build/cjs/react/server.cjs +1 -3
- package/build/cjs/server/http-handler.cjs +2 -0
- package/build/cjs/server/index.cjs +17 -51
- package/build/cjs/static/index.cjs +2 -4
- package/build/cjs/testing.cjs +8 -24
- package/build/esm/server/http-handler.mjs +2 -0
- package/build/esnext/server/http-handler.esnext +2 -0
- package/build/tsconfig.tsbuildinfo +64 -29
- package/build/typescript/index.d.ts +1 -0
- package/build/typescript/index.d.ts.map +1 -1
- package/build/typescript/server/http-handler.d.ts.map +1 -1
- package/package.json +38 -39
- package/src/index.ts +1 -0
- package/src/server/http-handler.tsx +4 -0
- package/tsconfig.json +2 -1
|
@@ -307,8 +307,8 @@
|
|
|
307
307
|
"affectsGlobalScope": false
|
|
308
308
|
},
|
|
309
309
|
"../../http/build/typescript/cookies.d.ts": {
|
|
310
|
-
"version": "
|
|
311
|
-
"signature": "
|
|
310
|
+
"version": "f26046ff932e6ab35b04ffbc547fbe62de66e5fe6864cf07534f93572d8da11e",
|
|
311
|
+
"signature": "f26046ff932e6ab35b04ffbc547fbe62de66e5fe6864cf07534f93572d8da11e",
|
|
312
312
|
"affectsGlobalScope": false
|
|
313
313
|
},
|
|
314
314
|
"../../http/build/typescript/headers.d.ts": {
|
|
@@ -322,8 +322,8 @@
|
|
|
322
322
|
"affectsGlobalScope": false
|
|
323
323
|
},
|
|
324
324
|
"../../http/build/typescript/status-code.d.ts": {
|
|
325
|
-
"version": "
|
|
326
|
-
"signature": "
|
|
325
|
+
"version": "f1b41f2dc1db713a2af437a963686b762c07b41a519bd81e77c114cadebe4f63",
|
|
326
|
+
"signature": "f1b41f2dc1db713a2af437a963686b762c07b41a519bd81e77c114cadebe4f63",
|
|
327
327
|
"affectsGlobalScope": false
|
|
328
328
|
},
|
|
329
329
|
"../../http/build/typescript/response-type.d.ts": {
|
|
@@ -342,8 +342,8 @@
|
|
|
342
342
|
"affectsGlobalScope": false
|
|
343
343
|
},
|
|
344
344
|
"../../http/build/typescript/index.d.ts": {
|
|
345
|
-
"version": "
|
|
346
|
-
"signature": "
|
|
345
|
+
"version": "0650d048da26b8f94447a35939e5362db7e59a3a63924444fd4b5379389620f1",
|
|
346
|
+
"signature": "0650d048da26b8f94447a35939e5362db7e59a3a63924444fd4b5379389620f1",
|
|
347
347
|
"affectsGlobalScope": false
|
|
348
348
|
},
|
|
349
349
|
"../../react-http/build/typescript/hooks/cookie.d.ts": {
|
|
@@ -1162,9 +1162,9 @@
|
|
|
1162
1162
|
"affectsGlobalScope": false
|
|
1163
1163
|
},
|
|
1164
1164
|
"../../async/build/typescript/global.d.ts": {
|
|
1165
|
-
"version": "
|
|
1166
|
-
"signature": "
|
|
1167
|
-
"affectsGlobalScope":
|
|
1165
|
+
"version": "9eaa5d7e95022f99f9c5d0a800e204645be8a771b772dc2a8969bd11fa6d9c3d",
|
|
1166
|
+
"signature": "9eaa5d7e95022f99f9c5d0a800e204645be8a771b772dc2a8969bd11fa6d9c3d",
|
|
1167
|
+
"affectsGlobalScope": false
|
|
1168
1168
|
},
|
|
1169
1169
|
"../../async/build/typescript/loader.d.ts": {
|
|
1170
1170
|
"version": "39af1ddd7a9fe9bea1b50adfa155fba2f7306fbd7c68647094c8265c1ae5d934",
|
|
@@ -1611,9 +1611,14 @@
|
|
|
1611
1611
|
"signature": "2d0761aa399e092a54bd2de63ae9ceeaa9f34266e561b18790b3584be77cb47a",
|
|
1612
1612
|
"affectsGlobalScope": false
|
|
1613
1613
|
},
|
|
1614
|
+
"../../useful-react-types/build/typescript/index.d.ts": {
|
|
1615
|
+
"version": "4be1ee3027182d456e372b41f0314a4efc20950675b674360d1d1cae73cdab56",
|
|
1616
|
+
"signature": "4be1ee3027182d456e372b41f0314a4efc20950675b674360d1d1cae73cdab56",
|
|
1617
|
+
"affectsGlobalScope": false
|
|
1618
|
+
},
|
|
1614
1619
|
"../src/index.ts": {
|
|
1615
|
-
"version": "
|
|
1616
|
-
"signature": "
|
|
1620
|
+
"version": "1d738c12b76e866dc9a35dcd4cbf01da899cfcb5c596cdd8a9c1aabfd0e8bb46",
|
|
1621
|
+
"signature": "9335acdbb9bfc656016705c71e9dbc4b2cbb5e91da3374cdefe4d278821ece9f",
|
|
1617
1622
|
"affectsGlobalScope": false
|
|
1618
1623
|
},
|
|
1619
1624
|
"../../react-testing/build/typescript/types.d.ts": {
|
|
@@ -1702,8 +1707,8 @@
|
|
|
1702
1707
|
"affectsGlobalScope": false
|
|
1703
1708
|
},
|
|
1704
1709
|
"../../http-handlers/build/typescript/response.d.ts": {
|
|
1705
|
-
"version": "
|
|
1706
|
-
"signature": "
|
|
1710
|
+
"version": "c7abcd0d49dcb826ece0e05f2213c9c4c8cc64050a723e6978f91d95803cc58e",
|
|
1711
|
+
"signature": "c7abcd0d49dcb826ece0e05f2213c9c4c8cc64050a723e6978f91d95803cc58e",
|
|
1707
1712
|
"affectsGlobalScope": false
|
|
1708
1713
|
},
|
|
1709
1714
|
"../../http-handlers/build/typescript/fetch.d.ts": {
|
|
@@ -1982,8 +1987,8 @@
|
|
|
1982
1987
|
"affectsGlobalScope": false
|
|
1983
1988
|
},
|
|
1984
1989
|
"../../http-handlers/build/typescript/node.d.ts": {
|
|
1985
|
-
"version": "
|
|
1986
|
-
"signature": "
|
|
1990
|
+
"version": "5c2e7930bad2bd81e08c1c9a2ec12e5e5ab3fc4ecf67b6b4a1643e59c6d3c6e4",
|
|
1991
|
+
"signature": "5c2e7930bad2bd81e08c1c9a2ec12e5e5ab3fc4ecf67b6b4a1643e59c6d3c6e4",
|
|
1987
1992
|
"affectsGlobalScope": false
|
|
1988
1993
|
},
|
|
1989
1994
|
"../src/http-handlers/node.ts": {
|
|
@@ -2162,7 +2167,7 @@
|
|
|
2162
2167
|
"affectsGlobalScope": false
|
|
2163
2168
|
},
|
|
2164
2169
|
"../src/server/http-handler.tsx": {
|
|
2165
|
-
"version": "
|
|
2170
|
+
"version": "c70f0b72782746792c879cd1e753e4013192484f48e163c3159fc09eeda80b88",
|
|
2166
2171
|
"signature": "dc5c88d8037a2a5a5f369f71f96ccd9d8fcdcddb3a10df8b942991d478b59d41",
|
|
2167
2172
|
"affectsGlobalScope": false
|
|
2168
2173
|
},
|
|
@@ -2846,6 +2851,11 @@
|
|
|
2846
2851
|
"signature": "4266ccd2cf1d6a281efd9c7ddf9efd7daecf76575364148bd233e18919cac3ed",
|
|
2847
2852
|
"affectsGlobalScope": false
|
|
2848
2853
|
},
|
|
2854
|
+
"../../../node_modules/.pnpm/@types+ws@8.5.2/node_modules/@types/ws/index.d.ts": {
|
|
2855
|
+
"version": "77a5c173bcffb453051d4b36454ff7928a091e4a0d1388346bd77c332b7cda09",
|
|
2856
|
+
"signature": "77a5c173bcffb453051d4b36454ff7928a091e4a0d1388346bd77c332b7cda09",
|
|
2857
|
+
"affectsGlobalScope": false
|
|
2858
|
+
},
|
|
2849
2859
|
"../../../node_modules/.pnpm/@types+yargs-parser@20.2.0/node_modules/@types/yargs-parser/index.d.ts": {
|
|
2850
2860
|
"version": "3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f",
|
|
2851
2861
|
"signature": "3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f",
|
|
@@ -3594,6 +3604,16 @@
|
|
|
3594
3604
|
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/net.d.ts",
|
|
3595
3605
|
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/url.d.ts"
|
|
3596
3606
|
],
|
|
3607
|
+
"../../../node_modules/.pnpm/@types+ws@8.5.2/node_modules/@types/ws/index.d.ts": [
|
|
3608
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/events.d.ts",
|
|
3609
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/http.d.ts",
|
|
3610
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/https.d.ts",
|
|
3611
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/index.d.ts",
|
|
3612
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/stream.d.ts",
|
|
3613
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/tls.d.ts",
|
|
3614
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/url.d.ts",
|
|
3615
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/zlib.d.ts"
|
|
3616
|
+
],
|
|
3597
3617
|
"../../../node_modules/.pnpm/@types+yargs@16.0.3/node_modules/@types/yargs/index.d.ts": [
|
|
3598
3618
|
"../../../node_modules/.pnpm/@types+yargs-parser@20.2.0/node_modules/@types/yargs-parser/index.d.ts"
|
|
3599
3619
|
],
|
|
@@ -4241,6 +4261,7 @@
|
|
|
4241
4261
|
"../../react-router/build/typescript/index.d.ts",
|
|
4242
4262
|
"../../react-server-render/build/typescript/index.d.ts",
|
|
4243
4263
|
"../../react-workers/build/typescript/index.d.ts",
|
|
4264
|
+
"../../useful-react-types/build/typescript/index.d.ts",
|
|
4244
4265
|
"../src/App.tsx"
|
|
4245
4266
|
],
|
|
4246
4267
|
"../src/magic/app.ts": [
|
|
@@ -4428,9 +4449,6 @@
|
|
|
4428
4449
|
"../../graphql/build/typescript/index.d.ts",
|
|
4429
4450
|
"../../useful-types/build/typescript/index.d.ts"
|
|
4430
4451
|
],
|
|
4431
|
-
"../../react-graphql/build/typescript/hooks/useGraphQL.d.ts": [
|
|
4432
|
-
"../../graphql/build/typescript/index.d.ts"
|
|
4433
|
-
],
|
|
4434
4452
|
"../../react-graphql/build/typescript/hooks/useMutation.d.ts": [
|
|
4435
4453
|
"../../graphql/build/typescript/index.d.ts",
|
|
4436
4454
|
"../../useful-types/build/typescript/index.d.ts"
|
|
@@ -4620,9 +4638,6 @@
|
|
|
4620
4638
|
"../../react-http/build/typescript/hooks/content-security-policy.d.ts": [
|
|
4621
4639
|
"../../http/build/typescript/index.d.ts"
|
|
4622
4640
|
],
|
|
4623
|
-
"../../react-http/build/typescript/hooks/cookie.d.ts": [
|
|
4624
|
-
"../../http/build/typescript/index.d.ts"
|
|
4625
|
-
],
|
|
4626
4641
|
"../../react-http/build/typescript/hooks/http-action.d.ts": [
|
|
4627
4642
|
"../../react-http/build/typescript/manager.d.ts"
|
|
4628
4643
|
],
|
|
@@ -4672,9 +4687,6 @@
|
|
|
4672
4687
|
"../../../node_modules/.pnpm/@types+react@17.0.13/node_modules/@types/react/index.d.ts",
|
|
4673
4688
|
"../../performance/build/typescript/index.d.ts"
|
|
4674
4689
|
],
|
|
4675
|
-
"../../react-performance/build/typescript/hooks.d.ts": [
|
|
4676
|
-
"../../performance/build/typescript/index.d.ts"
|
|
4677
|
-
],
|
|
4678
4690
|
"../../react-performance/build/typescript/index.d.ts": [
|
|
4679
4691
|
"../../performance/build/typescript/index.d.ts",
|
|
4680
4692
|
"../../react-performance/build/typescript/PerformanceContext.d.ts",
|
|
@@ -4751,8 +4763,7 @@
|
|
|
4751
4763
|
"../../routing/build/typescript/index.d.ts"
|
|
4752
4764
|
],
|
|
4753
4765
|
"../../react-router/build/typescript/hooks/navigate.d.ts": [
|
|
4754
|
-
"../../react-router/build/typescript/router.d.ts"
|
|
4755
|
-
"../../routing/build/typescript/index.d.ts"
|
|
4766
|
+
"../../react-router/build/typescript/router.d.ts"
|
|
4756
4767
|
],
|
|
4757
4768
|
"../../react-router/build/typescript/hooks/navigation-block.d.ts": [
|
|
4758
4769
|
"../../react-router/build/typescript/types.d.ts"
|
|
@@ -4872,6 +4883,9 @@
|
|
|
4872
4883
|
"../../routing/build/typescript/utilities.d.ts": [
|
|
4873
4884
|
"../../routing/build/typescript/types.d.ts"
|
|
4874
4885
|
],
|
|
4886
|
+
"../../useful-react-types/build/typescript/index.d.ts": [
|
|
4887
|
+
"../../../node_modules/.pnpm/@types+react@17.0.13/node_modules/@types/react/index.d.ts"
|
|
4888
|
+
],
|
|
4875
4889
|
"../../workers/build/typescript/create/basic.d.ts": [
|
|
4876
4890
|
"../../workers/build/typescript/create/utilities.d.ts"
|
|
4877
4891
|
],
|
|
@@ -5599,6 +5613,16 @@
|
|
|
5599
5613
|
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/net.d.ts",
|
|
5600
5614
|
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/url.d.ts"
|
|
5601
5615
|
],
|
|
5616
|
+
"../../../node_modules/.pnpm/@types+ws@8.5.2/node_modules/@types/ws/index.d.ts": [
|
|
5617
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/events.d.ts",
|
|
5618
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/http.d.ts",
|
|
5619
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/https.d.ts",
|
|
5620
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/index.d.ts",
|
|
5621
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/stream.d.ts",
|
|
5622
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/tls.d.ts",
|
|
5623
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/url.d.ts",
|
|
5624
|
+
"../../../node_modules/.pnpm/@types+node@15.12.5/node_modules/@types/node/zlib.d.ts"
|
|
5625
|
+
],
|
|
5602
5626
|
"../../../node_modules/.pnpm/@types+yargs@16.0.3/node_modules/@types/yargs/index.d.ts": [
|
|
5603
5627
|
"../../../node_modules/.pnpm/@types+yargs-parser@20.2.0/node_modules/@types/yargs-parser/index.d.ts"
|
|
5604
5628
|
],
|
|
@@ -6185,8 +6209,9 @@
|
|
|
6185
6209
|
"../../http/build/typescript/index.d.ts"
|
|
6186
6210
|
],
|
|
6187
6211
|
"../../http-handlers/build/typescript/node.d.ts": [
|
|
6188
|
-
"../../../node_modules/.pnpm/@types+node@
|
|
6189
|
-
"../../../node_modules/.pnpm/@types+node@
|
|
6212
|
+
"../../../node_modules/.pnpm/@types+node@17.0.21/node_modules/@types/node/http.d.ts",
|
|
6213
|
+
"../../../node_modules/.pnpm/@types+node@17.0.21/node_modules/@types/node/index.d.ts",
|
|
6214
|
+
"../../../node_modules/.pnpm/@types+node@17.0.21/node_modules/@types/node/util.d.ts",
|
|
6190
6215
|
"../../http-handlers/build/typescript/types.d.ts"
|
|
6191
6216
|
],
|
|
6192
6217
|
"../../http-handlers/build/typescript/response.d.ts": [
|
|
@@ -6197,7 +6222,11 @@
|
|
|
6197
6222
|
"../../http/build/typescript/index.d.ts",
|
|
6198
6223
|
"../../routing/build/typescript/index.d.ts"
|
|
6199
6224
|
],
|
|
6225
|
+
"../../http/build/typescript/cookies.d.ts": [
|
|
6226
|
+
"../../../node_modules/.pnpm/@types+node@17.0.21/node_modules/@types/node/util.d.ts"
|
|
6227
|
+
],
|
|
6200
6228
|
"../../http/build/typescript/index.d.ts": [
|
|
6229
|
+
"../../../node_modules/.pnpm/@types+node@17.0.21/node_modules/@types/node/util.d.ts",
|
|
6201
6230
|
"../../http/build/typescript/content-security-policy.d.ts",
|
|
6202
6231
|
"../../http/build/typescript/cookies.d.ts",
|
|
6203
6232
|
"../../http/build/typescript/headers.d.ts",
|
|
@@ -6240,6 +6269,7 @@
|
|
|
6240
6269
|
"../../react-router/build/typescript/index.d.ts",
|
|
6241
6270
|
"../../react-server-render/build/typescript/index.d.ts",
|
|
6242
6271
|
"../../react-workers/build/typescript/index.d.ts",
|
|
6272
|
+
"../../useful-react-types/build/typescript/index.d.ts",
|
|
6243
6273
|
"../src/App.tsx"
|
|
6244
6274
|
],
|
|
6245
6275
|
"../src/magic/app.ts": [
|
|
@@ -6858,6 +6888,9 @@
|
|
|
6858
6888
|
"../../routing/build/typescript/utilities.d.ts": [
|
|
6859
6889
|
"../../routing/build/typescript/types.d.ts"
|
|
6860
6890
|
],
|
|
6891
|
+
"../../useful-react-types/build/typescript/index.d.ts": [
|
|
6892
|
+
"../../../node_modules/.pnpm/@types+react@17.0.13/node_modules/@types/react/index.d.ts"
|
|
6893
|
+
],
|
|
6861
6894
|
"../../workers/build/typescript/create/basic.d.ts": [
|
|
6862
6895
|
"../../workers/build/typescript/create/utilities.d.ts"
|
|
6863
6896
|
],
|
|
@@ -7069,6 +7102,7 @@
|
|
|
7069
7102
|
"../../../node_modules/.pnpm/@types+send@0.17.1/node_modules/@types/send/index.d.ts",
|
|
7070
7103
|
"../../../node_modules/.pnpm/@types+stack-utils@2.0.0/node_modules/@types/stack-utils/index.d.ts",
|
|
7071
7104
|
"../../../node_modules/.pnpm/@types+websocket@1.0.2/node_modules/@types/websocket/index.d.ts",
|
|
7105
|
+
"../../../node_modules/.pnpm/@types+ws@8.5.2/node_modules/@types/ws/index.d.ts",
|
|
7072
7106
|
"../../../node_modules/.pnpm/@types+yargs-parser@20.2.0/node_modules/@types/yargs-parser/index.d.ts",
|
|
7073
7107
|
"../../../node_modules/.pnpm/@types+yargs@16.0.3/node_modules/@types/yargs/index.d.ts",
|
|
7074
7108
|
"../../../node_modules/.pnpm/@types+yauzl@2.9.2/node_modules/@types/yauzl/index.d.ts",
|
|
@@ -7443,6 +7477,7 @@
|
|
|
7443
7477
|
"../../routing/build/typescript/index.d.ts",
|
|
7444
7478
|
"../../routing/build/typescript/types.d.ts",
|
|
7445
7479
|
"../../routing/build/typescript/utilities.d.ts",
|
|
7480
|
+
"../../useful-react-types/build/typescript/index.d.ts",
|
|
7446
7481
|
"../../useful-types/build/typescript/index.d.ts",
|
|
7447
7482
|
"../../workers/build/typescript/create/basic.d.ts",
|
|
7448
7483
|
"../../workers/build/typescript/create/callable.d.ts",
|
|
@@ -13,5 +13,6 @@ export type { NavigateTo, RouteDefinition } from '@quilted/react-router';
|
|
|
13
13
|
export { useWorker, createWorker, createCallableWorker, } from '@quilted/react-workers';
|
|
14
14
|
export type { BasicWorkerCreator, CallableWorkerCreator, } from '@quilted/react-workers';
|
|
15
15
|
export { useCookie, useCookies } from '@quilted/react-http';
|
|
16
|
+
export type { PropsWithChildren } from '@quilted/useful-react-types';
|
|
16
17
|
export { App } from './App';
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,SAAS,EACT,eAAe,EACf,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,aAAa,EACb,eAAe,EACf,QAAQ,EACR,UAAU,EACV,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,eAAe,EACf,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,EACb,aAAa,EACb,SAAS,EACT,SAAS,EACT,QAAQ,EACR,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACvE,OAAO,EACL,SAAS,EACT,YAAY,EACZ,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AACjD,YAAY,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAChD,OAAO,EACL,QAAQ,EACR,aAAa,EACb,UAAU,EACV,oBAAoB,GACrB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EACV,SAAS,EACT,eAAe,EACf,eAAe,EACf,YAAY,EACZ,kBAAkB,EAClB,WAAW,GACZ,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,cAAc,EACd,aAAa,EACb,eAAe,EACf,QAAQ,EACR,UAAU,EACV,WAAW,GACZ,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,YAAY,EACZ,eAAe,EACf,sBAAsB,GACvB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,eAAe,EAAC,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAC,YAAY,EAAE,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EACL,kBAAkB,EAClB,cAAc,EACd,wBAAwB,GACzB,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,WAAW,EACX,qBAAqB,EACrB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,SAAS,EACT,eAAe,EACf,aAAa,EACb,aAAa,EACb,SAAS,EACT,SAAS,EACT,QAAQ,EACR,WAAW,EACX,WAAW,EACX,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAC,UAAU,EAAE,eAAe,EAAC,MAAM,uBAAuB,CAAC;AACvE,OAAO,EACL,SAAS,EACT,YAAY,EACZ,oBAAoB,GACrB,MAAM,wBAAwB,CAAC;AAChC,YAAY,EACV,kBAAkB,EAClB,qBAAqB,GACtB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAC,SAAS,EAAE,UAAU,EAAC,MAAM,qBAAqB,CAAC;AAC1D,YAAY,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC"}
|
|
@@ -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,CAqDhB;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.63",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/lemonmade/quilt.git",
|
|
@@ -14,110 +14,111 @@
|
|
|
14
14
|
"license": "MIT",
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
|
-
"quilt:
|
|
18
|
-
"
|
|
17
|
+
"quilt:from-source": "./src/index.ts",
|
|
18
|
+
"quilt:esnext": "./build/esnext/index.esnext",
|
|
19
19
|
"import": "./build/esm/index.mjs",
|
|
20
20
|
"require": "./build/cjs/index.cjs"
|
|
21
21
|
},
|
|
22
22
|
"./server": {
|
|
23
|
-
"quilt:
|
|
24
|
-
"
|
|
23
|
+
"quilt:from-source": "./src/server/index.ts",
|
|
24
|
+
"quilt:esnext": "./build/esnext/server/index.esnext",
|
|
25
25
|
"import": "./build/esm/server/index.mjs",
|
|
26
26
|
"require": "./build/cjs/server/index.cjs"
|
|
27
27
|
},
|
|
28
28
|
"./static": {
|
|
29
|
-
"quilt:
|
|
30
|
-
"
|
|
29
|
+
"quilt:from-source": "./src/static/index.tsx",
|
|
30
|
+
"quilt:esnext": "./build/esnext/static/index.esnext",
|
|
31
31
|
"import": "./build/esm/static/index.mjs",
|
|
32
32
|
"require": "./build/cjs/static/index.cjs"
|
|
33
33
|
},
|
|
34
34
|
"./html": {
|
|
35
|
-
"quilt:
|
|
36
|
-
"
|
|
35
|
+
"quilt:from-source": "./src/html.ts",
|
|
36
|
+
"quilt:esnext": "./build/esnext/html.esnext",
|
|
37
37
|
"import": "./build/esm/html.mjs",
|
|
38
38
|
"require": "./build/cjs/html.cjs"
|
|
39
39
|
},
|
|
40
40
|
"./email": {
|
|
41
|
-
"quilt:
|
|
42
|
-
"
|
|
41
|
+
"quilt:from-source": "./src/email.ts",
|
|
42
|
+
"quilt:esnext": "./build/esnext/email.esnext",
|
|
43
43
|
"import": "./build/esm/email.mjs",
|
|
44
44
|
"require": "./build/cjs/email.cjs"
|
|
45
45
|
},
|
|
46
46
|
"./global": {
|
|
47
|
-
"quilt:
|
|
48
|
-
"
|
|
47
|
+
"quilt:from-source": "./src/global.ts",
|
|
48
|
+
"quilt:esnext": "./build/esnext/global.esnext",
|
|
49
49
|
"import": "./build/esm/global.mjs",
|
|
50
50
|
"require": "./build/cjs/global.cjs"
|
|
51
51
|
},
|
|
52
52
|
"./http": {
|
|
53
|
-
"quilt:
|
|
54
|
-
"
|
|
53
|
+
"quilt:from-source": "./src/http.ts",
|
|
54
|
+
"quilt:esnext": "./build/esnext/http.esnext",
|
|
55
55
|
"import": "./build/esm/http.mjs",
|
|
56
56
|
"require": "./build/cjs/http.cjs"
|
|
57
57
|
},
|
|
58
58
|
"./testing": {
|
|
59
|
-
"quilt:
|
|
60
|
-
"
|
|
59
|
+
"quilt:from-source": "./src/testing.ts",
|
|
60
|
+
"quilt:esnext": "./build/esnext/testing.esnext",
|
|
61
61
|
"import": "./build/esm/testing.mjs",
|
|
62
62
|
"require": "./build/cjs/testing.cjs"
|
|
63
63
|
},
|
|
64
64
|
"./matchers": {
|
|
65
|
-
"quilt:
|
|
66
|
-
"
|
|
65
|
+
"quilt:from-source": "./src/matchers.ts",
|
|
66
|
+
"quilt:esnext": "./build/esnext/matchers.esnext",
|
|
67
67
|
"import": "./build/esm/matchers.mjs",
|
|
68
68
|
"require": "./build/cjs/matchers.cjs"
|
|
69
69
|
},
|
|
70
70
|
"./react/jsx-runtime": {
|
|
71
|
-
"quilt:
|
|
72
|
-
"
|
|
71
|
+
"quilt:from-source": "./src/react/jsx-runtime.ts",
|
|
72
|
+
"quilt:esnext": "./build/esnext/react/jsx-runtime.esnext",
|
|
73
73
|
"import": "./build/esm/react/jsx-runtime.mjs",
|
|
74
74
|
"require": "./build/cjs/react/jsx-runtime.cjs"
|
|
75
75
|
},
|
|
76
76
|
"./react/server": {
|
|
77
|
-
"quilt:
|
|
78
|
-
"
|
|
77
|
+
"quilt:from-source": "./src/react/server.ts",
|
|
78
|
+
"quilt:esnext": "./build/esnext/react/server.esnext",
|
|
79
79
|
"import": "./build/esm/react/server.mjs",
|
|
80
80
|
"require": "./build/cjs/react/server.cjs"
|
|
81
81
|
},
|
|
82
82
|
"./react": {
|
|
83
|
-
"quilt:
|
|
84
|
-
"
|
|
83
|
+
"quilt:from-source": "./src/react/index.ts",
|
|
84
|
+
"quilt:esnext": "./build/esnext/react/index.esnext",
|
|
85
85
|
"import": "./build/esm/react/index.mjs",
|
|
86
86
|
"require": "./build/cjs/react/index.cjs"
|
|
87
87
|
},
|
|
88
88
|
"./http-handlers/node": {
|
|
89
|
-
"quilt:
|
|
90
|
-
"
|
|
89
|
+
"quilt:from-source": "./src/http-handlers/node.ts",
|
|
90
|
+
"quilt:esnext": "./build/esnext/http-handlers/node.esnext",
|
|
91
91
|
"import": "./build/esm/http-handlers/node.mjs",
|
|
92
92
|
"require": "./build/cjs/http-handlers/node.cjs"
|
|
93
93
|
},
|
|
94
94
|
"./http-handlers": {
|
|
95
|
-
"quilt:
|
|
96
|
-
"
|
|
95
|
+
"quilt:from-source": "./src/http-handlers/index.ts",
|
|
96
|
+
"quilt:esnext": "./build/esnext/http-handlers/index.esnext",
|
|
97
97
|
"import": "./build/esm/http-handlers/index.mjs",
|
|
98
98
|
"require": "./build/cjs/http-handlers/index.cjs"
|
|
99
99
|
},
|
|
100
100
|
"./polyfills/base": {
|
|
101
|
-
"quilt:
|
|
102
|
-
"
|
|
101
|
+
"quilt:from-source": "./src/polyfills/base.ts",
|
|
102
|
+
"quilt:esnext": "./build/esnext/polyfills/base.esnext",
|
|
103
103
|
"import": "./build/esm/polyfills/base.mjs",
|
|
104
104
|
"require": "./build/cjs/polyfills/base.cjs"
|
|
105
105
|
},
|
|
106
106
|
"./polyfills/fetch": {
|
|
107
|
-
"quilt:
|
|
108
|
-
"
|
|
107
|
+
"quilt:from-source": "./src/polyfills/fetch.ts",
|
|
108
|
+
"quilt:esnext": "./build/esnext/polyfills/fetch.esnext",
|
|
109
109
|
"import": "./build/esm/polyfills/fetch.mjs",
|
|
110
110
|
"require": "./build/cjs/polyfills/fetch.cjs"
|
|
111
111
|
},
|
|
112
112
|
"./polyfills/noop": {
|
|
113
|
-
"quilt:
|
|
114
|
-
"
|
|
113
|
+
"quilt:from-source": "./src/polyfills/noop.ts",
|
|
114
|
+
"quilt:esnext": "./build/esnext/polyfills/noop.esnext",
|
|
115
115
|
"import": "./build/esm/polyfills/noop.mjs",
|
|
116
116
|
"require": "./build/cjs/polyfills/noop.cjs"
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
|
+
"types": "./build/typescript/index.d.ts",
|
|
119
120
|
"typesVersions": {
|
|
120
|
-
"
|
|
121
|
+
"*": {
|
|
121
122
|
"server": [
|
|
122
123
|
"./build/typescript/server/index.d.ts"
|
|
123
124
|
],
|
|
@@ -174,9 +175,6 @@
|
|
|
174
175
|
],
|
|
175
176
|
"magic/http-handler": [
|
|
176
177
|
"./build/typescript/magic/http-handler.d.ts"
|
|
177
|
-
],
|
|
178
|
-
"*": [
|
|
179
|
-
"./build/typescript/index.d.ts"
|
|
180
178
|
]
|
|
181
179
|
}
|
|
182
180
|
},
|
|
@@ -201,6 +199,7 @@
|
|
|
201
199
|
"@quilted/react-server-render": "^0.3.7",
|
|
202
200
|
"@quilted/react-testing": "^0.5.1",
|
|
203
201
|
"@quilted/react-workers": "^0.2.12",
|
|
202
|
+
"@quilted/useful-react-types": "^0.1.0",
|
|
204
203
|
"@types/react": "^17.0.0",
|
|
205
204
|
"@types/react-dom": "^17.0.0",
|
|
206
205
|
"preact": "^10.5.0",
|
package/src/index.ts
CHANGED
|
@@ -22,6 +22,10 @@ export function createServerRenderingRequestHandler(
|
|
|
22
22
|
{assets}: Pick<Options, 'assets'>,
|
|
23
23
|
): RequestHandler {
|
|
24
24
|
return async (request) => {
|
|
25
|
+
const accepts = request.headers.get('Accept');
|
|
26
|
+
|
|
27
|
+
if (accepts != null && !accepts.includes('text/html')) return;
|
|
28
|
+
|
|
25
29
|
const {
|
|
26
30
|
html: htmlManager,
|
|
27
31
|
http,
|
package/tsconfig.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"extends": "
|
|
2
|
+
"extends": "@quilted/typescript/pkg.json",
|
|
3
3
|
"compilerOptions": {
|
|
4
4
|
"rootDir": "src",
|
|
5
5
|
"outDir": "build/typescript"
|
|
@@ -22,6 +22,7 @@
|
|
|
22
22
|
{"path": "../react-server-render"},
|
|
23
23
|
{"path": "../react-testing"},
|
|
24
24
|
{"path": "../react-workers"},
|
|
25
|
+
{"path": "../useful-react-types"},
|
|
25
26
|
{"path": "../workers"}
|
|
26
27
|
]
|
|
27
28
|
}
|