Comparing version 2.0.6 to 2.0.7
@@ -305,5 +305,9 @@ 'use strict'; | ||
Kareem.prototype.hasHooks = function(name) { | ||
return this._pres[name] != null || this._posts[name] != null; | ||
}; | ||
Kareem.prototype.createWrapper = function(name, fn, context, options) { | ||
var _this = this; | ||
if (this._pres[name] == null && this._posts[name] == null) { | ||
if (!this.hasHooks(name)) { | ||
// Fast path: if there's no hooks for this function, just return the | ||
@@ -310,0 +314,0 @@ // function wrapped in a nextTick() |
{ | ||
"name": "kareem", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Next-generation take on pre/post function hooks", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
60744
1424