Comparing version 2.2.1 to 2.3.0
@@ -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 @@ |
@@ -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", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
9744
2