@alignable/bifrost 1.0.32 → 1.0.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.
@@ -1,9 +1,7 @@
1
1
  // renderer/wrapped/onAfterRenderHtml.ts
2
- import { render } from "vike/abort";
3
2
  function wrappedOnAfterRenderHtml(pageContext) {
4
3
  if (pageContext._wrappedServerOnly && !pageContext._wrappedServerOnly.renderedBody) {
5
- throw render(
6
- 500,
4
+ throw new Error(
7
5
  "proxied-body not found in DOM after SSR. This likely means the Layout threw during SSR (e.g. accessing `window` or `document`). Fix the SSR error in your Layout component."
8
6
  );
9
7
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../renderer/wrapped/onAfterRenderHtml.ts"],"sourcesContent":["import { PageContextServer } from \"vike/types\";\nimport { render } from \"vike/abort\";\n\nexport default function wrappedOnAfterRenderHtml(\n pageContext: PageContextServer\n) {\n if (\n pageContext._wrappedServerOnly &&\n !pageContext._wrappedServerOnly.renderedBody\n ) {\n // We set wrapped serverOnly but we never rendered the body\n throw render(\n 500,\n \"proxied-body not found in DOM after SSR. This likely means the Layout threw during SSR (e.g. accessing `window` or `document`). Fix the SSR error in your Layout component.\"\n );\n }\n}\n"],"mappings":";AACA,SAAS,cAAc;AAER,SAAR,yBACL,aACA;AACA,MACE,YAAY,sBACZ,CAAC,YAAY,mBAAmB,cAChC;AAEA,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../renderer/wrapped/onAfterRenderHtml.ts"],"sourcesContent":["import { PageContextServer } from \"vike/types\";\n\nexport default function wrappedOnAfterRenderHtml(\n pageContext: PageContextServer\n) {\n if (\n pageContext._wrappedServerOnly &&\n !pageContext._wrappedServerOnly.renderedBody\n ) {\n // We set wrapped serverOnly but we never rendered the body\n throw new Error(\n \"proxied-body not found in DOM after SSR. This likely means the Layout threw during SSR (e.g. accessing `window` or `document`). Fix the SSR error in your Layout component.\"\n );\n }\n}\n"],"mappings":";AAEe,SAAR,yBACL,aACA;AACA,MACE,YAAY,sBACZ,CAAC,YAAY,mBAAmB,cAChC;AAEA,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@alignable/bifrost",
3
3
  "repository": "https://github.com/Alignable/bifrost.git",
4
- "version": "1.0.32",
4
+ "version": "1.0.33",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
7
7
  "exports": {