webpack-hot-middleware
Advanced tools
Comparing version 2.7.1 to 2.8.0
@@ -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", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
35518
768
7
1