@cloudflare/kv-asset-handler
Advanced tools
Comparing version 0.0.4 to 0.0.5
{ | ||
"name": "@cloudflare/kv-asset-handler", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"description": "Routes requests to KV assets", | ||
@@ -5,0 +5,0 @@ "main": "./src/index.js", |
@@ -61,4 +61,6 @@ import mime from 'mime' | ||
if (request.method !== 'GET') { | ||
throw new Error(`this is not a GET request: ${request.method}`) | ||
const SUPPORTED_METHODS = ["GET", "HEAD"] | ||
if (!SUPPORTED_METHODS.includes(request.method)) { | ||
throw new Error(`${request.method} is not a valid request method`) | ||
} | ||
@@ -65,0 +67,0 @@ |
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
26679
341