Comparing version 0.0.2 to 0.0.3
@@ -5,3 +5,18 @@ # Change Log | ||
<a name="0.0.3"></a> | ||
## [0.0.3](https://github.com/pi0/hable/compare/v0.0.2...v0.0.3) (2018-01-26) | ||
### Bug Fixes | ||
* bind hookObj to this context ([6f6f7bc](https://github.com/pi0/hable/commit/6f6f7bc)) | ||
### Performance Improvements | ||
* minor refactor ([e4083aa](https://github.com/pi0/hable/commit/e4083aa)) | ||
<a name="0.0.2"></a> | ||
## 0.0.2 (2018-01-26) |
{ | ||
"name": "hable", | ||
"version": "0.0.2", | ||
"description": "A simpler tapable alternative, which can be used to create hooks for plugins", | ||
"version": "0.0.3", | ||
"description": | ||
"A simpler tapable alternative, which can be used to create hooks for plugins", | ||
"main": "lib/hable.cjs.js", | ||
@@ -11,3 +12,4 @@ "module": "lib/hable.es.js", | ||
"dev": "npm run build --watch", | ||
"release": "npm run build && standard-version" | ||
"release": "npm run build && standard-version", | ||
"release2": "git push --follow-tags && npm publish" | ||
}, | ||
@@ -18,9 +20,3 @@ "repository": { | ||
}, | ||
"keywords": [ | ||
"tapable", | ||
"tappable", | ||
"hook", | ||
"plugin", | ||
"hookable" | ||
], | ||
"keywords": ["tapable", "tappable", "hook", "plugin", "hookable"], | ||
"author": "Pooya Parsa <pooya@pi0.ir>", | ||
@@ -27,0 +23,0 @@ "license": "MIT", |
@@ -6,3 +6,5 @@ import { serial, parallel } from 'items-promise' | ||
this.$hooks = {} | ||
this.hook = this.hook.bind(this) | ||
this.hookObj = this.hookObj.bind(this) | ||
} | ||
@@ -36,3 +38,6 @@ | ||
this.$hooks[name] = this.$hooks[name] || [] | ||
if (!this.$hooks[name]) { | ||
this.$hooks[name] = [] | ||
} | ||
this.$hooks[name].push(fn) | ||
@@ -39,0 +44,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
111090
40