hono 4.5.7 → 4.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -23,7 +23,7 @@ __export(csrf_exports, {
23
23
  module.exports = __toCommonJS(csrf_exports);
24
24
  var import_http_exception = require("../../http-exception");
25
25
  const isSafeMethodRe = /^(GET|HEAD)$/;
26
- const isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/;
26
+ const isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/i;
27
27
  const csrf = (options) => {
28
28
  const handler = ((optsOrigin) => {
29
29
  if (!optsOrigin) {
@@ -1,7 +1,7 @@
1
1
  // src/middleware/csrf/index.ts
2
2
  import { HTTPException } from "../../http-exception.js";
3
3
  var isSafeMethodRe = /^(GET|HEAD)$/;
4
- var isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/;
4
+ var isRequestedByFormElementRe = /^\b(application\/x-www-form-urlencoded|multipart\/form-data|text\/plain)\b/i;
5
5
  var csrf = (options) => {
6
6
  const handler = ((optsOrigin) => {
7
7
  if (!optsOrigin) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hono",
3
- "version": "4.5.7",
3
+ "version": "4.5.8",
4
4
  "description": "Web framework built on Web Standards",
5
5
  "main": "dist/cjs/index.js",
6
6
  "type": "module",