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.17 to 1.0.18

21

lib/index.js

@@ -109,3 +109,3 @@ "use strict";

_promiseAllLimit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(data, limit, asyncFunction) {
var result, sliceValues, subResult;
var result, cloneData, sliceValues, subResult;
return _regeneratorRuntime().wrap(function _callee$(_context) {

@@ -116,18 +116,19 @@ while (1) {

result = [];
case 1:
if (!data.length) {
_context.next = 9;
cloneData = _toConsumableArray(data);
case 2:
if (!cloneData.length) {
_context.next = 10;
break;
}
sliceValues = data.splice(0, limit);
_context.next = 5;
sliceValues = cloneData.splice(0, limit);
_context.next = 6;
return Promise.all(sliceValues.map(asyncFunction));
case 5:
case 6:
subResult = _context.sent;
result = [].concat(_toConsumableArray(result), _toConsumableArray(subResult));
_context.next = 1;
_context.next = 2;
break;
case 9:
case 10:
return _context.abrupt("return", result);
case 10:
case 11:
case "end":

@@ -134,0 +135,0 @@ return _context.stop();

{
"name": "@azteam/util",
"version": "1.0.17",
"version": "1.0.18",
"description": "",

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

@@ -158,4 +158,6 @@ import sanitizeHtml from 'sanitize-html';

while (data.length) {
const sliceValues = data.splice(0, limit);
const cloneData = [...data];
while (cloneData.length) {
const sliceValues = cloneData.splice(0, limit);
const subResult = await Promise.all(sliceValues.map(asyncFunction));

@@ -162,0 +164,0 @@ result = [...result, ...subResult];

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