Socket
Socket
Sign inDemoInstall

p-queue

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

p-queue - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

4

index.js

@@ -61,4 +61,4 @@ 'use strict';

if (opts.concurrency < 1) {
throw new TypeError('Expected `concurrency` to be a number from 1 and up');
if (!(typeof opts.concurrency === 'number' && opts.concurrency >= 1)) {
throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${opts.concurrency}\` (${typeof opts.concurrency})`);
}

@@ -65,0 +65,0 @@

{
"name": "p-queue",
"version": "2.1.0",
"version": "2.2.0",
"description": "Promise queue with concurrency control",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -171,4 +171,4 @@ # p-queue [![Build Status](https://travis-ci.org/sindresorhus/p-queue.svg?branch=master)](https://travis-ci.org/sindresorhus/p-queue)

10. Pending promises: 1
11. Queue is empty again
12. Resolved 🐙
11. Resolved 🐙
12. All work is done
```

@@ -175,0 +175,0 @@

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