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

outcome

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

outcome - npm Package Compare versions

Comparing version 0.0.14 to 0.0.16

23

lib/index.js
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 @@

2

package.json

@@ -10,3 +10,3 @@ {

"repository": {},
"version": "0.0.14",
"version": "0.0.16",
"engines": {},

@@ -13,0 +13,0 @@ "dependencies": {},

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