Comparing version 1.6.1 to 1.6.2
@@ -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 @@ }); |
{ | ||
"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 @@ }, |
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
72701
1
1345
- Removedjsprim@0.6.1
- Removedextsprintf@1.0.2(transitive)
- Removedjson-schema@0.2.2(transitive)
- Removedjsprim@0.6.1(transitive)
- Removedverror@1.3.6(transitive)