Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hable

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hable - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## [2.0.1](https://github.com/jsless/hable/compare/v2.0.0...v2.0.1) (2019-08-21)
# [2.0.0](https://github.com/jsless/hable/compare/v1.0.1...v2.0.0) (2019-08-21)

@@ -7,0 +11,0 @@

10

lib/hookable.js

@@ -5,3 +5,3 @@ const { serial, flatHooks } = require('./utils')

constructor (logger = console) {
this.logger = logger
this._logger = logger
this._hooks = {}

@@ -20,3 +20,3 @@ this._deprecatedHooks = {}

if (this._deprecatedHooks[name]) {
this.logger.warn(`${name} hook has been deprecated, please use ${this._deprecatedHooks[name]}`)
this._logger.warn(`${name} hook has been deprecated, please use ${this._deprecatedHooks[name]}`)
name = this._deprecatedHooks[name]

@@ -47,4 +47,6 @@ }

} catch (err) {
name !== 'error' && await this.callHook('error', err)
this.logger.error(err)
if (name !== 'error') {
await this.callHook('error', err)
}
this._logger.error(err)
}

@@ -51,0 +53,0 @@ }

{
"name": "hable",
"version": "2.0.0",
"version": "2.0.1",
"description": "Awaitable hooks for Node.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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