Comparing version 0.2.4 to 0.2.5
@@ -68,2 +68,3 @@ (function() { | ||
})["catch"](function(e) { | ||
var tmp; | ||
if (stateName && _state[stateName] === done) { | ||
@@ -73,3 +74,3 @@ _state[stateName] = false; | ||
if (catcher != null) { | ||
return catcher(e); | ||
return catcher.apply(obj, (tmp = _args.slice(1)).unshift(e) && tmp); | ||
} else { | ||
@@ -96,4 +97,4 @@ throw e; | ||
if (!((cb != null) && (index != null))) { | ||
hookInName = names.hookIn || "hooking-in"; | ||
throw new Error(hookInName + " needs a 'cb' and a 'index'"); | ||
hookInName = "." + names.hookIn || " hooking-in"; | ||
throw new Error("" + actionName + hookInName + " needs a 'cb' and a 'index'"); | ||
} | ||
@@ -100,0 +101,0 @@ tmp = (base = action._chain)[index] != null ? base[index] : base[index] = []; |
{ | ||
"name": "hook-up", | ||
"description": "Create your own hook api with 2-dimensional hooks - better than events or simple hooks", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"homepage": "https://github.com/paulpflug/", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -71,3 +71,3 @@ # hook-up | ||
catch: { | ||
"cache.get": (e) => { console.error(e) } | ||
"cache.get": (e, program) => { console.error(e) } | ||
}, | ||
@@ -74,0 +74,0 @@ args: [someArg], |
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
12504
221