cloudflare-esi
Advanced tools
Comparing version 0.2.1 to 0.2.2
@@ -229,4 +229,8 @@ import { create as createHandleChunk } from "./handleChunk"; | ||
}; | ||
// We create our own array here | ||
// because if we use the iterator directly and cleanup a key | ||
// it causes the loop to skip one as the iterator doesn't update correctly | ||
const current = new URL(request.url); | ||
for (const key of current.searchParams.keys()) { | ||
const keys = Array.from(current.searchParams.keys()); | ||
for (const key of keys) { | ||
const match = key.match(esiArgsRegex); | ||
@@ -233,0 +237,0 @@ if (match && match[1]) { |
{ | ||
"name": "cloudflare-esi", | ||
"version": "0.2.1", | ||
"version": "0.2.2", | ||
"repository": "cdloh/cloudflare-esi", | ||
@@ -5,0 +5,0 @@ "description": "ESI Parser built to run in Cloudflare workers", |
Sorry, the diff of this file is not supported yet
103517
1489