Comparing version 0.3.14 to 0.3.15
@@ -96,3 +96,2 @@ /* eslint max-lines: off */ | ||
}); | ||
return callback ? undefined : promise; | ||
}; | ||
@@ -104,3 +103,3 @@ return handle; | ||
--count; | ||
if (err.code === "EMFILE" || err.code === "ENFILE") { | ||
if (error.code === "EMFILE" || error.code === "ENFILE") { | ||
if (limit > openCount) limit = openCount - 1; | ||
@@ -135,3 +134,3 @@ const deferred = getDeferred(); | ||
const deferred = getDeferred(); | ||
queue.push({ fn: fs.promises.opendir, context: this, args, deferred }); | ||
queue.push({ fn: asyncFn, context: this, args, deferred }); | ||
release(); | ||
@@ -138,0 +137,0 @@ return deferred.promise; |
{ | ||
"name": "fs2", | ||
"version": "0.3.14", | ||
"version": "0.3.15", | ||
"description": "fs (file system package) extensions", | ||
@@ -5,0 +5,0 @@ "author": "Mariusz Nowak <medyk@medikoo.com> (http://www.medikoo.com/)", |
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
108161
3241