@sveltejs/kit 1.0.0-next.486 → 1.0.0-next.488
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/package.json +1 -1
- package/src/core/adapt/builder.js +0 -1
- package/src/core/prerender/crawl.js +4 -0
- package/src/core/prerender/entities.js +2252 -0
- package/src/core/sync/create_manifest_data/index.js +0 -5
- package/src/runtime/server/endpoint.js +17 -0
- package/src/runtime/server/index.js +3 -3
- package/types/private.d.ts +0 -1
package/package.json
CHANGED
|
@@ -46,7 +46,6 @@ export function create_builder({ config, build_data, routes, prerendered, log })
|
|
|
46
46
|
|
|
47
47
|
return {
|
|
48
48
|
id: route.id,
|
|
49
|
-
type: route.page ? 'page' : 'endpoint', // TODO change this if support pages+endpoints
|
|
50
49
|
segments: route.id.split('/').map((segment) => ({
|
|
51
50
|
dynamic: segment.includes('['),
|
|
52
51
|
rest: segment.includes('[...'),
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { decode } from './entities.js';
|
|
2
|
+
|
|
1
3
|
const DOCTYPE = 'DOCTYPE';
|
|
2
4
|
const CDATA_OPEN = '[CDATA[';
|
|
3
5
|
const CDATA_CLOSE = ']]>';
|
|
@@ -147,6 +149,8 @@ export function crawl(html) {
|
|
|
147
149
|
i -= 1;
|
|
148
150
|
}
|
|
149
151
|
|
|
152
|
+
value = decode(value);
|
|
153
|
+
|
|
150
154
|
if (name === 'href') {
|
|
151
155
|
href = value;
|
|
152
156
|
} else if (name === 'rel') {
|