Comparing version 2.0.5 to 2.0.6
@@ -308,4 +308,7 @@ 'use strict'; | ||
if (this._pres[name] == null && this._posts[name] == null) { | ||
// Fast path: if there's no hooks for this function, just return the function | ||
return fn; | ||
// Fast path: if there's no hooks for this function, just return the | ||
// function wrapped in a nextTick() | ||
return function() { | ||
process.nextTick(() => fn.apply(this, arguments)); | ||
}; | ||
} | ||
@@ -312,0 +315,0 @@ return function() { |
{ | ||
"name": "kareem", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"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
60664
1421