Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@miniflare/http-server

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@miniflare/http-server - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

3

dist/src/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc