From f0e19119de35776151ce380cb9a49a1dcadf9398 Mon Sep 17 00:00:00 2001 From: David Federman Date: Sun, 4 Mar 2018 10:58:35 -0800 Subject: [PATCH] Perf: replace async with neo-async --- package.json | 2 +- src/Worker.js | 2 +- yarn.lock | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index a7c7ea5a..42c726ac 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "author": "Felix Kling", "license": "BSD-3-Clause", "dependencies": { - "async": "^1.5.0", "babel-plugin-transform-flow-strip-types": "^6.8.0", "babel-preset-es2015": "^6.9.0", "babel-preset-stage-1": "^6.5.0", @@ -36,6 +35,7 @@ "flow-parser": "^0.*", "lodash": "^4.13.1", "micromatch": "^2.3.7", + "neo-async": "^2.5.0", "node-dir": "0.1.8", "nomnom": "^1.8.1", "recast": "^0.12.5", diff --git a/src/Worker.js b/src/Worker.js index efa5518c..35267061 100644 --- a/src/Worker.js +++ b/src/Worker.js @@ -12,7 +12,7 @@ const EventEmitter = require('events').EventEmitter; -const async = require('async'); +const async = require('neo-async'); const fs = require('fs'); const writeFileAtomic = require('write-file-atomic'); const getParser = require('./getParser'); diff --git a/yarn.lock b/yarn.lock index 95c406aa..ed1e9f7c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -133,7 +133,7 @@ ast-types@0.9.11: version "0.9.11" resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.9.11.tgz#371177bb59232ff5ceaa1d09ee5cad705b1a5aa9" -async@^1.4.0, async@^1.5.0: +async@^1.4.0: version "1.5.2" resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" @@ -2296,6 +2296,10 @@ natural-compare@^1.4.0: version "1.4.0" resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" +neo-async@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.5.0.tgz#76b1c823130cca26acfbaccc8fbaf0a2fa33b18f" + node-dir@0.1.8: version "0.1.8" resolved "https://registry.yarnpkg.com/node-dir/-/node-dir-0.1.8.tgz#55fb8deb699070707fb67f91a460f0448294c77d"