@sveltejs/kit 1.8.1 → 1.8.2
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
CHANGED
|
@@ -460,7 +460,7 @@ export async function render_response({
|
|
|
460
460
|
: new Response(
|
|
461
461
|
new ReadableStream({
|
|
462
462
|
async start(controller) {
|
|
463
|
-
controller.enqueue(encoder.encode(transformed));
|
|
463
|
+
controller.enqueue(encoder.encode(transformed + '\n'));
|
|
464
464
|
for await (const chunk of chunks) {
|
|
465
465
|
controller.enqueue(encoder.encode(chunk));
|
|
466
466
|
}
|
|
@@ -525,7 +525,7 @@ function get_data(event, options, nodes, global) {
|
|
|
525
525
|
str = devalue.uneval({ id, data, error }, replacer);
|
|
526
526
|
}
|
|
527
527
|
|
|
528
|
-
push(
|
|
528
|
+
push(`<script>${global}.resolve(${str})</script>\n`);
|
|
529
529
|
if (count === 0) done();
|
|
530
530
|
}
|
|
531
531
|
);
|