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

vasync

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vasync - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

18

lib/vasync.js

@@ -7,3 +7,2 @@ /*

var mod_events = require('events');
var mod_jsprim = require('jsprim');
var mod_util = require('util');

@@ -34,2 +33,15 @@ var mod_verror = require('verror');

/*
* This is incorporated here from jsprim because jsprim ends up pulling in a lot
* of dependencies. If we end up needing more from jsprim, though, we should
* add it back and rip out this function.
*/
function isEmpty(obj)
{
var key;
for (key in obj)
return (false);
return (true);
}
/*
* Given a set of functions that complete asynchronously using the standard

@@ -489,3 +501,3 @@ * callback(err, result) pattern, invoke them all and merge the results. See

*/
if (!mod_jsprim.isEmpty(this.pending) || this.scheduled)
if (!isEmpty(this.pending) || this.scheduled)
return;

@@ -505,3 +517,3 @@

*/
if (mod_jsprim.isEmpty(self.pending))
if (isEmpty(self.pending))
self.emit('drain');

@@ -508,0 +520,0 @@ });

3

package.json
{
"name": "vasync",
"version": "1.6.1",
"version": "1.6.2",
"description": "utilities for observable asynchronous control flow",

@@ -18,3 +18,2 @@ "main": "./lib/vasync.js",

"dependencies": {
"jsprim": "0.6.1",
"verror": "1.1.0"

@@ -21,0 +20,0 @@ },

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