Comparing version 2.1.0 to 2.2.0
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10063