Socket
Socket
Sign inDemoInstall

node-hot-loader

Package Overview
Dependencies
173
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.8.0 to 1.8.1

7

CHANGELOG.md

@@ -0,1 +1,8 @@

<a name="1.8.1"></a>
## <small>1.8.1 (2018-04-27)</small>
* Improve error logging ([5ced217](https://github.com/vlazh/node-hot-loader/commit/5ced217))
<a name="1.8.0"></a>

@@ -2,0 +9,0 @@ ## 1.8.0 (2018-04-27)

5

lib/HmrClient.js

@@ -92,4 +92,5 @@ 'use strict';

onErrored: info => {
this.logger.error(`Ignored an error while updating module ${info.moduleId} (${info.type})`);
throw info.error; // for log error in catch and not invoke then.
this.logger.warn(`Ignored an error while updating module ${info.moduleId} (${info.type})`);
// If throw error then module.hot.status() always equals 'apply' and module.hot.check() will not work.
this.logger.error(info.error);
}

@@ -96,0 +97,0 @@ }).then(renewedModules => {

2

package.json
{
"name": "node-hot-loader",
"version": "1.8.0",
"version": "1.8.1",
"description": "Hot module replacement for Node.js applications",

@@ -5,0 +5,0 @@ "main": "./lib/node-hot.js",

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