New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.2.1 to 2.3.0

9

CHANGELOG.md

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

# [2.3.0](https://github.com/jsless/hable/compare/v2.2.1...v2.3.0) (2019-09-01)
### Features
* hide deprecate warnings on production builds ([0861df3](https://github.com/jsless/hable/commit/0861df3))
## [2.2.1](https://github.com/jsless/hable/compare/v2.2.0...v2.2.1) (2019-08-21)

@@ -7,0 +16,0 @@

7

lib/hookable.js

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

this._deprecatedHooks = {}
this.hook = this.hook.bind(this)
this.callHook = this.callHook.bind(this)
}

@@ -20,3 +17,5 @@

if (this._deprecatedHooks[name]) {
this._logger.warn(`${name} hook has been deprecated, please use ${this._deprecatedHooks[name]}`)
if (process.env.NODE_ENV !== 'production') {
this._logger.warn(`${name} hook has been deprecated, please use ${this._deprecatedHooks[name]}`)
}
name = this._deprecatedHooks[name]

@@ -23,0 +22,0 @@ }

{
"name": "hable",
"version": "2.2.1",
"version": "2.3.0",
"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