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

task-queue

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

task-queue - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

12

index.js

@@ -7,4 +7,4 @@ /**

var _opts = options;
var _array = this._opts.initialSize ? new Array(this._opts.initialSize) : [];
var _running = this._opts.start | false;
var _array = _opts.initialSize ? new Array(_opts.initialSize) : [];
var _running = _opts.start | false;

@@ -15,5 +15,5 @@ _opts.concurrency = this._opts.concurrency | 1;

if (_running) {
var i, actual_concurrency = _opts.concurrency > this._array.length ? this._array.length : _opts.concurrency;
var i, actual_concurrency = _opts.concurrency > _array.length ? _array.length : _opts.concurrency;
for (i = 0; i < actual_concurrency; i++){
var popped = this._array.pop();
var popped = _array.pop();
if (popped)

@@ -36,3 +36,3 @@ setImmediate(function () {

task.method = fn;
this._array.push(task);
_array.push(task);
_exec();

@@ -42,3 +42,3 @@ },

if(this.size() > 0)
return this._array.pop();
return _array.pop();
return null;

@@ -45,0 +45,0 @@ },

{
"author" : "Roberto Sales <robertosalesc@dcc.ufba.br>",
"name": "task-queue",
"version": "0.0.4",
"version": "0.0.5",
"description": "async single worker tasks queue that supports concurrency, priority and provide simple interface for passing task arguments",

@@ -6,0 +6,0 @@ "keywords": ["task", "queue", "worker", "concurrency", "async", "priority"],

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