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.1 to 2.8.0

7

client-overlay.js

@@ -5,6 +5,7 @@ /*eslint-env browser*/

clientOverlay.style.display = 'none';
clientOverlay.style.background = '#fdd';
clientOverlay.style.color = '#000';
clientOverlay.style.background = '#111';
clientOverlay.style.color = '#fff';
clientOverlay.style.whiteSpace = 'pre';
clientOverlay.style.fontFamily = 'monospace';
clientOverlay.style.fontSize = '16px';
clientOverlay.style.position = 'fixed';

@@ -29,3 +30,3 @@ clientOverlay.style.zIndex = 9999;

var div = document.createElement('div');
div.textContent = msg;
div.innerHTML = msg;
clientOverlay.appendChild(div);

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

@@ -82,2 +82,6 @@ /*eslint-env browser*/

var strip = require('strip-ansi');
var Ansi = require('ansi-to-html-umd');
var ansi = new Ansi({
escapeXML: true
});

@@ -93,5 +97,4 @@ var overlay;

obj[type].forEach(function(msg) {
var clean = strip(msg);
if (options.warn) console.warn("[HMR] " + clean);
list.push(clean);
if (options.warn) console.warn("[HMR] " + strip(msg));
list.push(ansi.toHtml(msg));
});

@@ -130,4 +133,7 @@ if (overlay && type !== 'warnings') overlay.showProblems(list);

customHandler = handler;
},
useCustomOverlay: function useCustomOverlay(customOverlay) {
overlay = customOverlay;
}
};
}

@@ -23,3 +23,3 @@ /* eslint-env browser */

// require('unknown-module')
// a = /regex/q
// } syntax-error

@@ -26,0 +26,0 @@ if (module.hot) {

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

@@ -21,2 +21,3 @@ "main": "middleware.js",

"devDependencies": {
"ansi-to-html-umd": "^0.4.2",
"express": "^4.13.3",

@@ -23,0 +24,0 @@ "mocha": "^2.3.2",

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