Socket
Socket
Sign inDemoInstall

webpack-hot-middleware

Package Overview
Dependencies
5
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.19.1 to 2.20.0

2

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

@@ -5,0 +5,0 @@ "keywords": [

@@ -17,3 +17,17 @@ /**

var failureStatuses = { abort: 1, fail: 1 };
var applyOptions = { ignoreUnaccepted: true };
var applyOptions = {
ignoreUnaccepted: true,
ignoreDeclined: true,
ignoreErrored: true,
onUnaccepted: function(data) {
console.warn("Ignored an update to unaccepted module " + data.chain.join(" -> "));
},
onDeclined: function(data) {
console.warn("Ignored an update to declined module " + data.chain.join(" -> "));
},
onErrored: function(data) {
console.error(data.error);
console.warn("Ignored an error while updating module " + data.moduleId + " (" + data.type + ")");
}
}

@@ -20,0 +34,0 @@ function upToDate(hash) {

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc