From 1aa3be231ab5ff948eb5e29ff585ed9fbffafa7b Mon Sep 17 00:00:00 2001 From: barslev Date: Wed, 18 Mar 2020 14:37:16 +0100 Subject: [PATCH] Updates async to version 3. --- lib/BulkHtmlLoader.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/BulkHtmlLoader.js b/lib/BulkHtmlLoader.js index 6360f4a..7f10e88 100644 --- a/lib/BulkHtmlLoader.js +++ b/lib/BulkHtmlLoader.js @@ -128,9 +128,9 @@ BulkHtmlLoader.prototype = { q.concurrency = that._maxConcurrentConnections; // Final callback when queue completes - q.drain = function() { + q.drain(function() { callback(null, that._queue); - }; + }); q.push(queue); return that; diff --git a/package.json b/package.json index 815d738..2a9183d 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ ], "license": "MIT", "dependencies": { - "async": "^2.1.4", + "async": "^3.0.0", "bluebird": "^3.4.7", "cheerio": "^0.22.0", "lodash": "^4.17.4",