@alttiri/util-node-js
Advanced tools
Comparing version 2.0.6 to 2.0.7
{ | ||
"name": "@alttiri/util-node-js", | ||
"version": "2.0.6", | ||
"version": "2.0.7", | ||
"description": "Some Node.js util functions for personal use", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -127,2 +127,7 @@ import fs from "node:fs/promises"; | ||
export async function* _listFilesWithStat(settings, listEntries) { | ||
const listFilesGen = _listFiles(settings, listEntries); | ||
_listFilesWithStat.prototype.return = (value) => { | ||
listFilesGen.return(undefined); | ||
return { done: true, value }; | ||
}; | ||
const mutex = new Semaphore(); | ||
@@ -133,3 +138,3 @@ const semaphore = new Semaphore(settings.parallels); | ||
const countLatch = new CountLatch(); | ||
for await (const entry of _listFiles(settings, listEntries)) { | ||
for await (const entry of listFilesGen) { | ||
await semaphore.acquire(); | ||
@@ -136,0 +141,0 @@ void (async function getStats() { |
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
31124
815