@sveltejs/adapter-cloudflare-workers
Advanced tools
Comparing version 1.2.1 to 1.2.2
@@ -43,3 +43,3 @@ import { Server } from 'SERVER'; | ||
let { pathname } = url; | ||
let { pathname, search } = url; | ||
try { | ||
@@ -61,3 +61,3 @@ pathname = decodeURIComponent(pathname); | ||
const location = pathname.at(-1) === '/' ? stripped_pathname : pathname + '/'; | ||
let location = pathname.at(-1) === '/' ? stripped_pathname : pathname + '/'; | ||
@@ -74,2 +74,3 @@ if (is_static_asset || prerendered.has(pathname)) { | ||
} else if (location && prerendered.has(location)) { | ||
if (search) location += search; | ||
return new Response('', { | ||
@@ -76,0 +77,0 @@ status: 308, |
{ | ||
"name": "@sveltejs/adapter-cloudflare-workers", | ||
"version": "1.2.1", | ||
"version": "1.2.2", | ||
"description": "SvelteKit adapter that creates a Cloudflare Workers site using a function for dynamic server rendering", | ||
@@ -41,3 +41,3 @@ "repository": { | ||
"scripts": { | ||
"lint": "prettier --check . --config ../../.prettierrc --ignore-path .gitignore", | ||
"lint": "prettier --check .", | ||
"format": "pnpm lint --write", | ||
@@ -44,0 +44,0 @@ "check": "tsc" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
237
10079