@crombolo/backoffice-host 0.50.0 → 0.51.0
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 +3 -3
- package/plugin/app-preview/umbraco-package.json +1 -1
- package/plugin/localizations/umbraco-package.json +1 -1
- package/plugin/seo/umbraco-package.json +1 -1
- package/plugin/sign-in/umbraco-package.json +1 -1
- package/plugin/umbraco-package.json +1 -1
- package/src/static.ts +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crombolo/backoffice-host",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.51.0",
|
|
4
4
|
"description": "Internal to crombolo, with no compatibility promise: use @crombolo/crombolo. Serves the Umbraco backoffice SPA: shell HTML, import map and package manifests.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Crombolo",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"access": "public"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@crombolo/core": "0.
|
|
36
|
-
"@crombolo/backoffice-dist": "0.
|
|
35
|
+
"@crombolo/core": "0.51.0",
|
|
36
|
+
"@crombolo/backoffice-dist": "0.51.0"
|
|
37
37
|
}
|
|
38
38
|
}
|
package/src/static.ts
CHANGED
|
@@ -123,6 +123,8 @@ export async function serveStaticFile(
|
|
|
123
123
|
if (request.headers.get('if-none-match') === etag) {
|
|
124
124
|
return new Response(null, { status: 304, headers })
|
|
125
125
|
}
|
|
126
|
+
// Bun.serve answers an empty file body 204, and an empty file is still one.
|
|
127
|
+
if (file.size === 0) return new Response('', { headers })
|
|
126
128
|
return new Response(body?.changed ? body.text : file, { headers })
|
|
127
129
|
}
|
|
128
130
|
|