From 212fd7d15a1ab8da3566fec182d8877b6572d81b Mon Sep 17 00:00:00 2001 From: Alejandro Henkel Date: Sat, 25 Feb 2017 23:30:11 -0600 Subject: [PATCH] Update: Replace lodash.* modules (closes #71) (#77) --- lib/helpers/buildTree.js | 2 +- lib/helpers/normalizeArgs.js | 4 ++-- lib/registry.js | 2 +- lib/tree.js | 4 ++-- package.json | 9 +++++---- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/helpers/buildTree.js b/lib/helpers/buildTree.js index 361d8bf..dbc3aaf 100644 --- a/lib/helpers/buildTree.js +++ b/lib/helpers/buildTree.js @@ -1,6 +1,6 @@ 'use strict'; -var map = require('lodash.map'); +var map = require('collection-map'); var metadata = require('./metadata'); diff --git a/lib/helpers/normalizeArgs.js b/lib/helpers/normalizeArgs.js index a7e44d1..6e5daa5 100644 --- a/lib/helpers/normalizeArgs.js +++ b/lib/helpers/normalizeArgs.js @@ -2,8 +2,8 @@ var assert = require('assert'); -var map = require('lodash.map'); -var flatten = require('lodash.flatten'); +var map = require('arr-map'); +var flatten = require('arr-flatten'); function normalizeArgs(registry, args) { function getFunction(task) { diff --git a/lib/registry.js b/lib/registry.js index a8504fd..d441232 100644 --- a/lib/registry.js +++ b/lib/registry.js @@ -1,6 +1,6 @@ 'use strict'; -var reduce = require('lodash.reduce'); +var reduce = require('object.reduce'); var validateRegistry = require('./helpers/validateRegistry'); diff --git a/lib/tree.js b/lib/tree.js index 4de6798..ed06364 100644 --- a/lib/tree.js +++ b/lib/tree.js @@ -1,7 +1,7 @@ 'use strict'; -var defaults = require('lodash.defaults'); -var map = require('lodash.map'); +var defaults = require('object.defaults'); +var map = require('collection-map'); var metadata = require('./helpers/metadata'); diff --git a/package.json b/package.json index 28d3033..671cf72 100644 --- a/package.json +++ b/package.json @@ -26,13 +26,14 @@ "coveralls": "npm run cover && istanbul-coveralls" }, "dependencies": { + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", "bach": "^1.0.0", + "collection-map": "^0.1.0", "es6-weak-map": "^2.0.1", "last-run": "^1.1.0", - "lodash.defaults": "^4.0.1", - "lodash.flatten": "^4.0.0", - "lodash.map": "^4.1.0", - "lodash.reduce": "^4.1.0", + "object.defaults": "^0.3.0", + "object.reduce": "^0.1.7", "undertaker-registry": "^1.0.0" }, "devDependencies": {