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

fastq

Package Overview
Dependencies
Maintainers
1
Versions
25
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 1.9.0 to 1.10.0

4

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

@@ -39,3 +39,3 @@ "main": "queue.js",

"pre-commit": "^1.2.2",
"snazzy": "^8.0.0",
"snazzy": "^9.0.0",
"standard": "^15.0.0",

@@ -42,0 +42,0 @@ "tape": "^5.0.0",

@@ -12,2 +12,6 @@ 'use strict'

if (concurrency < 1) {
throw new Error('fastqueue concurrency must be greater than 1')
}
var cache = reusify(Task)

@@ -14,0 +18,0 @@ var queueHead = null

@@ -7,4 +7,3 @@ # fastq

Fast, in memory work queue. `fastq` is API compatible with
[`async.queue`](https://github.com/caolan/async#queueworker-concurrency)
Fast, in memory work queue.

@@ -11,0 +10,0 @@ Benchmarks (1 million tasks):

@@ -6,2 +6,12 @@ 'use strict'

test('concurrency', function (t) {
t.plan(2)
t.throws(buildQueue.bind(null, worker, 0))
t.doesNotThrow(buildQueue.bind(null, worker, 1))
function worker (arg, cb) {
cb(null, true)
}
})
test('worker execution', function (t) {

@@ -8,0 +18,0 @@ t.plan(3)

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