Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hook-up

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hook-up - npm Package Compare versions

Comparing version 0.2.4 to 0.2.5

7

lib/hook-up.js

@@ -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],

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc