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

webpack-hot-middleware

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-hot-middleware - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

client.js
/*eslint-env browser*/
/*global __resourceQuery*/
require("eventsource-polyfill");
var options = {

@@ -7,0 +5,0 @@ path: "/__webpack_hmr",

2

middleware.js

@@ -29,3 +29,3 @@ module.exports = webpackHotMiddleware;

return function(req, res, next) {
if (req.path !== opts.path) return next();
if (req.url !== opts.path) return next();
eventStream.handler(req, res);

@@ -32,0 +32,0 @@ };

{
"name": "webpack-hot-middleware",
"version": "2.0.1",
"version": "2.0.2",
"description": "Webpack hot reloading you can attach to your own server",

@@ -16,5 +16,4 @@ "main": "middleware.js",

"dependencies": {
"eventsource-polyfill": "^0.9.6",
"strip-ansi": "^2.0.1"
}
}
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