@miniflare/http-server
Advanced tools
Comparing version 2.3.0 to 2.4.0
@@ -525,3 +525,4 @@ var __create = Object.create; | ||
const accept = req.headers.accept?.toLowerCase() ?? ""; | ||
if (accept.includes("text/html") || accept.includes("*/*") || accept.includes("text/*")) { | ||
const userAgent = req.headers["user-agent"]?.toLowerCase() ?? ""; | ||
if (!userAgent.includes("curl/") && (accept.includes("text/html") || accept.includes("*/*") || accept.includes("text/*"))) { | ||
const Youch = require("youch"); | ||
@@ -528,0 +529,0 @@ const youch = new Youch(e, req); |
{ | ||
"name": "@miniflare/http-server", | ||
"version": "2.3.0", | ||
"version": "2.4.0", | ||
"description": "HTTP server module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -38,5 +38,5 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/core": "2.3.0", | ||
"@miniflare/shared": "2.3.0", | ||
"@miniflare/web-sockets": "2.3.0", | ||
"@miniflare/core": "2.4.0", | ||
"@miniflare/shared": "2.4.0", | ||
"@miniflare/web-sockets": "2.4.0", | ||
"kleur": "^4.1.4", | ||
@@ -49,5 +49,5 @@ "selfsigned": "^2.0.0", | ||
"devDependencies": { | ||
"@miniflare/shared-test": "2.3.0", | ||
"@miniflare/shared-test": "2.4.0", | ||
"@types/node-forge": "^0.10.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
42350
746
+ Added@miniflare/core@2.4.0(transitive)
+ Added@miniflare/shared@2.4.0(transitive)
+ Added@miniflare/watcher@2.4.0(transitive)
+ Added@miniflare/web-sockets@2.4.0(transitive)
- Removed@miniflare/core@2.3.0(transitive)
- Removed@miniflare/shared@2.3.0(transitive)
- Removed@miniflare/watcher@2.3.0(transitive)
- Removed@miniflare/web-sockets@2.3.0(transitive)
Updated@miniflare/core@2.4.0
Updated@miniflare/shared@2.4.0
Updated@miniflare/web-sockets@2.4.0