You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

hyper-chain

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hyper-chain - npm Package Compare versions

Comparing version

to
0.0.9

18

lib/chain.js

@@ -214,2 +214,20 @@ // Generated by CoffeeScript 1.12.7

};
chain.await = function(name_at_group, fn) {
internal_fns.push(function(exe_ctx) {
var _fail, _ok, a_done, group, name, ref, task_promise;
a_done = exe_ctx.createAsyncPoint(name_at_group);
fn.call(exe_ctx, exe_ctx.cur, a_done);
_ok = function() {
return exe_ctx.resume();
};
_fail = function(err) {
exe_ctx.error = err;
return exe_ctx.resume();
};
ref = _.split(name_at_group, '@'), name = ref[0], group = ref[1];
task_promise = exe_ctx.getMergedPromise(name);
return task_promise.then(_ok, _fail);
});
return chain;
};
chain.makePromise = function(name_at_group, fn) {

@@ -216,0 +234,0 @@ internal_fns.push(function(exe_ctx) {

2

package.json
{
"name": "hyper-chain",
"version": "0.0.8",
"version": "0.0.9",
"description": "function builder for reactive programing. support promise, node-callback and designed for robust error handling. ",

@@ -5,0 +5,0 @@ "main": "lib",