From adaf66502d7d7e969d052164b3205eaee911f9f3 Mon Sep 17 00:00:00 2001 From: Erisa A Date: Sun, 5 Mar 2023 17:54:45 +0000 Subject: [PATCH] Remove dead code, bump compatibility date --- src/index.ts | 12 ------------ wrangler.toml | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) 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