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

f-queue

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

f-queue - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

27

fqueue.js
/*
*fqueue.js v 0.3.0
*fqueue.js v 0.3.1
*Author: Sudhanshu Yadav

@@ -20,4 +20,7 @@ *s-yadav.github.com

var obj = arg[i];
for (var k in obj)
target[k] = obj[k];
for (var k in obj) {
if (obj.hasOwnProperty(k)) {
target[k] = obj[k];
}
}
}

@@ -29,3 +32,3 @@ return target;

for (var i = 0, ln = ary.length; i < ln; i++) {
if (ary[i] == elm) return i
if (ary[i] == elm) return i;
}

@@ -61,3 +64,3 @@ return -1;

for (var i = 0; i < left; i++) {
result.push(func[i].apply(this, argToArray(arguments)))
result.push(func[i].apply(this, argToArray(arguments)));
}

@@ -71,3 +74,3 @@ }

if (this.autoStep && !this.paused) {
this.next()
this.next();
}

@@ -77,3 +80,3 @@ },

this.left--;
if (this.left == 0) {
if (this.left === 0) {
this.paused = false;

@@ -119,3 +122,3 @@ //in this way if there are two asynchronous both passing arguments than only one will go

}
}
};

@@ -138,7 +141,7 @@ var fqueue = function (option) {

if (self.left == 0) {
if (self.left === 0) {
self.paused = false;
self.next.apply(self, argToArray(arguments));
}
}
};

@@ -151,3 +154,3 @@ if (settings.autoStart) {

}
};
//defaults

@@ -158,3 +161,3 @@ fqueue.defaults = {

startParams: []
}
};

@@ -161,0 +164,0 @@ //to make fqueue globally accessible

@@ -9,3 +9,3 @@ {

},
"version": "0.3.0",
"version": "0.3.1",
"repository": {

@@ -12,0 +12,0 @@ "type": "git",

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