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

queue

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

queue - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

index.js

2

example/example.js

@@ -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();
});
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