vike-lite 1.9.0 → 1.9.1

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/dist/server.d.mts CHANGED
@@ -1,7 +1,7 @@
1
1
  //#region src/server/renderPage.d.ts
2
2
  declare function renderPage(req: Request, {
3
3
  nonce
4
- }: {
4
+ }?: {
5
5
  nonce?: string;
6
6
  }): Promise<Response>;
7
7
  //#endregion
package/dist/server.mjs CHANGED
@@ -132,7 +132,7 @@ async function renderErrorPage(req, status, urlPathname, error, nonce) {
132
132
  return new Response(status === 404 ? "Not Found" : "Internal Server Error", { status });
133
133
  }
134
134
  }
135
- async function renderPage(req, { nonce }) {
135
+ async function renderPage(req, { nonce } = {}) {
136
136
  let { pathname } = new URL(req.url);
137
137
  if (BASE_URL !== "/") {
138
138
  const baseSlashed = BASE_URL.endsWith("/") ? BASE_URL : BASE_URL + "/";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vike-lite",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "module": "./dist/index.mjs",