From bbff7403fbf46f9ad92240ac213df8d30ef31b64 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 20 Sep 2018 02:56:13 +0200 Subject: update packages --- node_modules/p-limit/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'node_modules/p-limit/index.js') diff --git a/node_modules/p-limit/index.js b/node_modules/p-limit/index.js index bfafd2688..873f0e70d 100644 --- a/node_modules/p-limit/index.js +++ b/node_modules/p-limit/index.js @@ -1,4 +1,6 @@ 'use strict'; +const pTry = require('p-try'); + module.exports = concurrency => { if (concurrency < 1) { throw new TypeError('Expected `concurrency` to be a number from 1 and up'); @@ -19,7 +21,7 @@ module.exports = concurrency => { const run = () => { activeCount++; - fn().then( + pTry(fn).then( val => { resolve(val); next(); -- cgit v1.2.3