Socket
Socket
Sign inDemoInstall

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.7.0 to 2.7.1

16

middleware.js

@@ -21,5 +21,4 @@ module.exports = webpackHotMiddleware;

//for multi-compiler, stats will be an object with a 'children' array of stats
var children = statsResult.children && statsResult.children.length ?
statsResult.children : [statsResult];
children.forEach(function(stats) {
var bundles = extractBundles(statsResult);
bundles.forEach(function(stats) {
if (opts.log) {

@@ -86,2 +85,13 @@ opts.log("webpack built " + (stats.name ? stats.name + " " : "") +

function extractBundles(stats) {
// Stats has modules, single bundle
if (stats.modules) return [stats];
// Stats has children, multiple bundles
if (stats.children && stats.children.length) return stats.children;
// Not sure, assume single
return [stats];
}
function buildModuleMap(modules) {

@@ -88,0 +98,0 @@ var map = {};

2

package.json
{
"name": "webpack-hot-middleware",
"version": "2.7.0",
"version": "2.7.1",
"description": "Webpack hot reloading you can attach to your own server",

@@ -5,0 +5,0 @@ "main": "middleware.js",

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