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

after-all

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

after-all - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

.vimrc

1

index.js

@@ -22,2 +22,3 @@ var util = require('util');

return function thecallback(err) {
if (done) return;
if (util.isError(err)) {

@@ -24,0 +25,0 @@ done = true;

2

package.json
{
"name": "after-all",
"version": "0.1.0",
"version": "0.1.1",
"description": "Execute several async functions and get a callback when they are all done",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -107,2 +107,20 @@ var afterAll = require('../index');

});
it('should only call the final callback once in the case of an error', function() {
var count = 0;
var next = afterAll(function() {
(++count === 1).should.be.ok;
});
var n1 = next();
var n2 = next();
var n3 = next();
n1();
n2(new Error('Oops!'));
n3(new Error('Oops!'));
});
});
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