From 5678c16d07d891fda5fa86725121d4fb6461a67d Mon Sep 17 00:00:00 2001 From: Vincent Weevers Date: Mon, 27 May 2019 17:45:01 +0300 Subject: [PATCH] Replace async devDependency with async-each (#116) --- package.json | 2 +- test/compression-test.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 44081d91..d418c8fa 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "node-gyp-build": "~4.1.0" }, "devDependencies": { - "async": "^2.0.1", + "async-each": "^1.0.3", "coveralls": "^3.0.2", "cross-env": "^5.2.0", "delayed": "^1.0.1", diff --git a/test/compression-test.js b/test/compression-test.js index 515296ab..873ffc8f 100644 --- a/test/compression-test.js +++ b/test/compression-test.js @@ -1,4 +1,4 @@ -const async = require('async') +const each = require('async-each') const du = require('du') const delayed = require('delayed') const testCommon = require('./common') @@ -48,7 +48,7 @@ test('compression', function (t) { var db = testCommon.factory() db.open(function (err) { t.error(err) - async.forEach( + each( Array.apply(null, Array(multiples)).map(function (e, i) { return [ i, compressableData ] }), function (args, callback) { @@ -62,7 +62,7 @@ test('compression', function (t) { var db = testCommon.factory() db.open({ compression: false }, function (err) { t.error(err) - async.forEach( + each( Array.apply(null, Array(multiples)).map(function (e, i) { return [ i, compressableData ] }), function (args, callback) {