Skip to content

Commit

Permalink
Update: Replace lodash.* modules (closes #71) (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Alejandro Henkel authored and phated committed Feb 26, 2017
1 parent 11486e0 commit 212fd7d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lib/helpers/buildTree.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var map = require('lodash.map');
var map = require('collection-map');

var metadata = require('./metadata');

Expand Down
4 changes: 2 additions & 2 deletions lib/helpers/normalizeArgs.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion lib/registry.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

var reduce = require('lodash.reduce');
var reduce = require('object.reduce');

var validateRegistry = require('./helpers/validateRegistry');

Expand Down
4 changes: 2 additions & 2 deletions lib/tree.js
Original file line number Diff line number Diff line change
@@ -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');

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit 212fd7d

Please sign in to comment.