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.10 to 0.0.12

8

lib/index.js

@@ -30,3 +30,3 @@ var EventEmitter = require('events').EventEmitter,

//error should always be first args
err = args.shift();
var err = args.shift();

@@ -39,3 +39,7 @@ //on error

if(listeners.success) {
listeners.success.apply(this, args);
try {
listeners.success.apply(this, args);
} catch(e) {
listeners.error.call(this, err)
}
}

@@ -42,0 +46,0 @@

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

"repository": {},
"version": "0.0.10",
"version": "0.0.12",
"engines": {},

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

@@ -208,7 +208,3 @@

### .logAllErrors(v)
Captures all errors, and prints then to `stderr`.
## CoffeeScript Example

@@ -246,1 +242,6 @@

### Note
Calling `.error()`, `.success()`, `.callback()` generates a new function which copies the previous listeners.
Checkout [fs-test](outcome.js/blob/master/examples/fs-test.js) in the [examples](outcome.js/blog/master/examples) folder.
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