Comparing version 4.5.7 to 4.5.8
@@ -26,3 +26,3 @@ "use strict"; | ||
const isSafeMethodRe = /^(GET|HEAD)$/; | ||
const isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/; | ||
const isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/i; | ||
const csrf = (options) => { | ||
@@ -29,0 +29,0 @@ const handler = ((optsOrigin) => { |
// src/middleware/csrf/index.ts | ||
import { HTTPException } from "../../http-exception.js"; | ||
var isSafeMethodRe = /^(GET|HEAD)$/; | ||
var isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/; | ||
var isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/i; | ||
var csrf = (options) => { | ||
@@ -6,0 +6,0 @@ const handler = ((optsOrigin) => { |
{ | ||
"name": "hono", | ||
"version": "4.5.7", | ||
"version": "4.5.8", | ||
"description": "Web framework built on Web Standards", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
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
1011293