@invisibleloop/pulse 0.1.32 → 0.1.33
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/public/.pulse-ui-version +1 -1
- package/src/server/index.js +2 -2
package/package.json
CHANGED
package/public/.pulse-ui-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.1.
|
|
1
|
+
0.1.33
|
package/src/server/index.js
CHANGED
|
@@ -574,7 +574,7 @@ export function createServer(specs, options = {}) {
|
|
|
574
574
|
}
|
|
575
575
|
|
|
576
576
|
if (stream) {
|
|
577
|
-
await handleStreamResponse(spec, ctx, req, res, extraBody, dev, canonicalBase, nonce, runtimeBundle, defaultCache, store, csp)
|
|
577
|
+
await handleStreamResponse(spec, ctx, req, res, extraBody, dev, canonicalBase, nonce, runtimeBundle, defaultCache, store, csp, faviconPath)
|
|
578
578
|
} else {
|
|
579
579
|
await handleStringResponse(spec, ctx, req, res, extraBody, dev, canonicalBase, nonce, runtimeBundle, defaultCache, store, csp)
|
|
580
580
|
}
|
|
@@ -737,7 +737,7 @@ async function handleStringResponse(spec, ctx, req, res, extraBody = '', dev = f
|
|
|
737
737
|
* Stream the response — shell first, deferred segments follow.
|
|
738
738
|
* On a page-cache hit, serves the buffered HTML as a string (no streaming needed).
|
|
739
739
|
*/
|
|
740
|
-
async function handleStreamResponse(spec, ctx, req, res, extraBody = '', dev = false, canonicalBase = '', nonce = '', runtimeBundle = '', defaultCache = null, store = null, csp = {}) {
|
|
740
|
+
async function handleStreamResponse(spec, ctx, req, res, extraBody = '', dev = false, canonicalBase = '', nonce = '', runtimeBundle = '', defaultCache = null, store = null, csp = {}, faviconPath = null) {
|
|
741
741
|
// Serve from in-process page cache when available — skip streaming overhead.
|
|
742
742
|
// Pages with spec.server or spec.store embed a nonce'd __PULSE_SERVER__ script so are never cached.
|
|
743
743
|
const cacheKey = spec.route + '\0' + JSON.stringify(ctx.params) + '\0' + JSON.stringify(ctx.query)
|