You're Invited: Meet the Socket team at BSidesSF and RSAC - April 27 - May 1.RSVP

task-queue

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

task-queue - npm Package Compare versions

Comparing version

to
1.0.0

@@ -0,11 +1,18 @@

module.exports = require('./lib/tq');
/**
* Created by root on 24/08/14.
*/
/*
var Buffer = require('cbuffer-resizable');
var Heap = require('binaryheap-resizable');
var objdefined = require('objdefined');
var extend = require('extend');
var util = require('util');
var objdefined = function(obj, opt){
if(arguments.length > 1)
return obj !== undefined && obj != null ? obj : opt;
return obj !== undefined && obj != null;
};
var q = function(options){

@@ -105,3 +112,3 @@ if(!(this instanceof q)){

var size;
if(size = q.prototype.enqueue.call(this, fn, objdefined(opts, {priority: 1}))){
if(size = q.prototype.enqueue.call(this, fn, objdefined(opts, {}))){
return size;

@@ -119,2 +126,2 @@ }

PriorityQueue: p
};
}; */
{
"author" : "Roberto Sales <robertosalesc@dcc.ufba.br>",
"name": "task-queue",
"version": "0.1.3",
"version": "1.0.0",
"description": "async single worker tasks queue that supports concurrency, priority and provide simple interface for passing task arguments",

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

"cbuffer-resizable": "~0.0.3",
"binaryheap-resizable": "~0.0.6",
"objdefined": "~0.0.1",
"extend": "*"
"binaryheap-resizable": "~1.0.0"
},
"devDependencies":{
"mocha": "1.x.x",
"chai": "1.x.x",
"coffee-script": "1.8.x"
},
"scripts": {
"clean": "rm -rf lib/*",
"prepublish": "npm run clean && coffee -o lib/ -c src/",
"pretest": "npm run clean && coffee -m -o lib/ -c src/",
"test": "./node_modules/.bin/mocha --compilers coffee:coffee-script/register --reporter spec"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet