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

array-changes-async

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-changes-async - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

18

lib/arrayChanges.js

@@ -197,3 +197,3 @@ /*global setTimeout */

var mutatedArrayLength = mutatedArray.length;
var setEqual = function (i, callback) {
var setEqual = function (i, stackCallsRemaining, callback) {
if (i >= mutatedArrayLength) {

@@ -208,9 +208,19 @@ return callback();

}
setEqual(i + 1, callback);
if (stackCallsRemaining === 0) {
return setTimeout(function () {
setEqual(i + 1, MAX_STACK_DEPTH, callback);
})
}
setEqual(i + 1, stackCallsRemaining - 1, callback);
});
}
return setEqual(i + 1, callback);
if (stackCallsRemaining === 0) {
return setTimeout(function () {
setEqual(i + 1, MAX_STACK_DEPTH, callback);
})
}
return setEqual(i + 1, stackCallsRemaining - 1, callback);
};
setEqual(0, function () {
setEqual(0, MAX_STACK_DEPTH, function () {
arrayChangesCallback(mutatedArray);

@@ -217,0 +227,0 @@ });

{
"name": "array-changes-async",
"version": "2.0.1",
"version": "2.0.2",
"description": "Array diffing",

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

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