Socket
Socket
Sign inDemoInstall

@gatsbyjs/webpack-hot-middleware

Package Overview
Dependencies
Maintainers
23
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gatsbyjs/webpack-hot-middleware - npm Package Compare versions

Comparing version 2.25.3 to 2.25.4-alpha-lazy-comp.0

11

client.js

@@ -16,5 +16,11 @@ /*eslint-env browser*/

ansiColors: {},
beforeUpdateApplyThenable() {
return {
then(cb) {
cb()
}
}
}
};
if (__resourceQuery) {
var { URLSearchParams } = require('url');
var overrides = new URLSearchParams(__resourceQuery.slice(1));

@@ -74,2 +80,5 @@ setOverrides(Object.fromEntries(overrides));

}
if (overrides.beforeUpdateApplyThenable) {
options.beforeUpdateApplyThenable = overrides.beforeUpdateApplyThenable
}
}

@@ -76,0 +85,0 @@

2

package.json
{
"name": "@gatsbyjs/webpack-hot-middleware",
"version": "2.25.3",
"version": "2.25.4-alpha-lazy-comp.0",
"description": "Webpack hot reloading you can attach to your own server",

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

@@ -76,11 +76,13 @@ /**

var applyResult = module.hot.apply(applyOptions, applyCallback);
// webpack 2 promise
if (applyResult && applyResult.then) {
// HotModuleReplacement.runtime.js refers to the result as `outdatedModules`
applyResult.then(function (outdatedModules) {
applyCallback(null, outdatedModules);
});
applyResult.catch(applyCallback);
}
options.beforeUpdateApplyThenable().then(() => {
var applyResult = module.hot.apply(applyOptions, applyCallback);
// webpack 2 promise
if (applyResult && applyResult.then) {
// HotModuleReplacement.runtime.js refers to the result as `outdatedModules`
applyResult.then(function (outdatedModules) {
applyCallback(null, outdatedModules);
});
applyResult.catch(applyCallback);
}
});
};

@@ -87,0 +89,0 @@

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