Comparing version 0.0.14 to 0.0.16
var EventEmitter = require('events').EventEmitter, | ||
//used for dispatching unhandledError messages | ||
globalEmitter = new EventEmitter(); | ||
globalEmitter = | ||
global.outcomeEmitter = | ||
global.outcomeEmitter ? global.outcomeEmitter : new EventEmitter(); | ||
@@ -57,5 +59,22 @@ var Chain = function(listeners) { | ||
} | ||
}; | ||
var oldToString = fn.toString; | ||
fn.toString = function() { | ||
var str = ["outcome()"]; | ||
if(listeners.error) { | ||
str.push("\n.e(", String(listeners.error), ")") | ||
} | ||
if(listeners.success) { | ||
str.push("\n.s(", String(listeners.success), ")") | ||
} | ||
return str.join("") | ||
} | ||
fn.listeners = listeners; | ||
@@ -62,0 +81,0 @@ |
@@ -10,3 +10,3 @@ { | ||
"repository": {}, | ||
"version": "0.0.14", | ||
"version": "0.0.16", | ||
"engines": {}, | ||
@@ -13,0 +13,0 @@ "dependencies": {}, |
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
38813
868