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

@alttiri/util-node-js

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

@alttiri/util-node-js - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

2

package.json
{
"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() {

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