diff --git a/src/index.ts b/src/index.ts index fa4081c..eef8134 100644 --- a/src/index.ts +++ b/src/index.ts @@ -261,16 +261,4 @@ function validateUrl(url: string) { return true } -// zod and other validation libs too -// function validateBulkBody(body: Record) { -// // Starting `/` and no ending `/` -// const keyRe = /^\/.*?[^\/]$/; - -// if (!body || typeof body !== "object" || Array.isArray(body)) return false; -// return true; -// return body.map( -// ([key, url]) => keyRe.test(key) && validateUrl(url) -// ); -// } - export default app diff --git a/wrangler.toml b/wrangler.toml index ba93b5d..f356aaf 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -9,7 +9,7 @@ account_id = "ece1d09b06af2ced51407c97505ea0cc" kv_namespaces = [ { binding = "KV", id = "1be44406edc142a084435e24dbf8ae1d", preview_id = "15cfb90ecd654b8f8a9ccd600832093f" }] compatibility_flags = [] -compatibility_date = "2022-07-05" +compatibility_date = "2023-03-05" # Remove or comment out the route line if using workers_dev workers_dev = false