task-queue
Advanced tools
15
index.js
@@ -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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
48823
77.73%2
-50%17
13.33%276
115.63%1
-50%1
-50%3
Infinity%2
Infinity%