New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@azteam/util

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@azteam/util - npm Package Compare versions

Comparing version 1.0.12 to 1.0.13

2

package.json
{
"name": "@azteam/util",
"version": "1.0.12",
"version": "1.0.13",
"description": "",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -155,7 +155,12 @@ import sanitizeHtml from 'sanitize-html';

export function promiseAllLimit(data, limit, asyncFunction) {
export async function promiseAllLimit(data, limit, asyncFunction) {
let result = [];
while (data.length) {
const sliceValues = data.splice(0, limit);
sliceValues.map(asyncFunction);
const subResult = await Promise.all(sliceValues.map(asyncFunction));
result = [...result, ...subResult];
}
return result;
}
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