🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

fastq

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fastq - npm Package Compare versions

Comparing version

to
1.4.1

2

package.json
{
"name": "fastq",
"version": "1.4.0",
"version": "1.4.1",
"description": "Fast, in memory work queue",

@@ -5,0 +5,0 @@ "main": "queue.js",

@@ -74,3 +74,3 @@ 'use strict'

current.value = value
current.callback = done
current.callback = done || noop

@@ -98,3 +98,3 @@ if (_running === self.concurrency || self.paused) {

current.value = value
current.callback = done
current.callback = done || noop

@@ -101,0 +101,0 @@ if (_running === self.concurrency || self.paused) {

@@ -422,1 +422,27 @@ 'use strict'

})
test('push without cb', function (t) {
t.plan(1)
var queue = buildQueue(worker, 1)
queue.push(42)
function worker (arg, cb) {
t.equal(arg, 42)
cb()
}
})
test('unshift without cb', function (t) {
t.plan(1)
var queue = buildQueue(worker, 1)
queue.unshift(42)
function worker (arg, cb) {
t.equal(arg, 42)
cb()
}
})