@cloudflare/pages-shared 0.11.54 → 0.11.56

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.
@@ -227,9 +227,10 @@ export async function generateHandler<
227
227
  ? `${destination.pathname}${destination.search || search}${
228
228
  destination.hash
229
229
  }`
230
- : `${destination.href}${destination.search ? "" : search}${
231
- destination.hash
232
- }`;
230
+ : `${destination.href.slice(0, destination.href.length - (destination.search.length + destination.hash.length))}${
231
+ destination.search ? destination.search : search
232
+ }${destination.hash}`;
233
+
233
234
  switch (status) {
234
235
  case 301:
235
236
  return new MovedPermanentlyResponse(location, undefined, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/pages-shared",
3
- "version": "0.11.54",
3
+ "version": "0.11.56",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/cloudflare/workers-sdk.git",
@@ -13,10 +13,10 @@
13
13
  "metadata-generator/**/*"
14
14
  ],
15
15
  "dependencies": {
16
- "miniflare": "3.20240821.1"
16
+ "miniflare": "3.20240909.0"
17
17
  },
18
18
  "devDependencies": {
19
- "@cloudflare/workers-types": "^4.20240821.1",
19
+ "@cloudflare/workers-types": "^4.20240909.0",
20
20
  "@miniflare/cache": "^2.14.2",
21
21
  "@miniflare/core": "^2.14.2",
22
22
  "@miniflare/html-rewriter": "^2.14.2",