Comparing version 1.0.0 to 1.0.1
@@ -8,3 +8,3 @@ #!/usr/bin/env node | ||
var Queue = require('../queue'); | ||
var Queue = require('..'); | ||
@@ -11,0 +11,0 @@ var q = new Queue({ |
{ | ||
"name": "queue", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "An async job queue with adjustable concurrency", | ||
"main": "queue.js", | ||
"author": "Jesse Tane <jesse.tane@gmail.com>", | ||
@@ -10,3 +9,6 @@ "repository": { | ||
"url": "https://github.com/jessetane/queue.git" | ||
}, | ||
"scripts":{ | ||
"test":"node test/all.js" | ||
} | ||
} | ||
} |
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
var assert = require('assert'); | ||
var Queue = require('../queue'); | ||
var Queue = require('..'); | ||
@@ -16,2 +16,4 @@ var answers = []; | ||
var solutions = [ 'one', 'two', 'three' ]; | ||
assert(answers.length === solutions.length, "Answers '" + answers + "' don't match solutions '" + solutions + "'."); | ||
for (var i in answers) { | ||
@@ -22,3 +24,3 @@ var answer = answers[i]; | ||
} | ||
console.log('It works! ✔'); | ||
console.log('Concurrent works! ✔'); | ||
}); | ||
@@ -25,0 +27,0 @@ |
@@ -9,3 +9,3 @@ #!/usr/bin/env node | ||
var assert = require('assert'); | ||
var Queue = require('../queue'); | ||
var Queue = require('..'); | ||
@@ -16,2 +16,4 @@ var answers = []; | ||
var solutions = [ 'one', 'two', 'three' ]; | ||
assert(answers.length === solutions.length, "Answers '" + answers + "' don't match solutions '" + solutions + "'."); | ||
for (var i in answers) { | ||
@@ -22,18 +24,18 @@ var answer = answers[i]; | ||
} | ||
console.log('It works! ✔'); | ||
console.log('Synchronous works! ✔'); | ||
}); | ||
q.push(function(cb) { | ||
answers.push('one'); | ||
answers.push('three'); | ||
cb(); | ||
}); | ||
q.push(function(cb) { | ||
answers.push('two'); | ||
q.unshift(function(cb) { | ||
answers.push('one'); | ||
cb(); | ||
}); | ||
q.push(function(cb) { | ||
answers.push('three'); | ||
q.splice(1, 0, function(cb) { | ||
answers.push('two'); | ||
cb(); | ||
}); |
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
8189
9
227
0