Skip to content

Commit

Permalink
update lodash and fix breaking changes from it
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiemonge committed Mar 17, 2016
1 parent 4d98906 commit 58b9441
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lib/detect-dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function findMainFiles(config, component, componentConfigFile) {
});
}

return $._.unique(filePaths.reduce(function (acc, filePath) {
return $._.uniq(filePaths.reduce(function (acc, filePath) {
acc = acc.concat(
$.glob.sync(filePath, { cwd: cwd, root: '/' })
.map(function (path) {
Expand Down Expand Up @@ -163,7 +163,7 @@ function gatherInfo(config) {
}

var mains = findMainFiles(config, component, componentConfigFile);
var fileTypes = $._.chain(mains).map($.path.extname).unique().value();
var fileTypes = $._.chain(mains).map($.path.extname).uniq().value();

dep.main = mains;
dep.type = fileTypes;
Expand Down Expand Up @@ -281,7 +281,7 @@ function mergeSort(items) {
var globalDependencies = $._.toArray(config.get('global-dependencies').get());

var dependencies = globalDependencies.filter(function (dependency) {
return $._.contains(dependency.type, fileType);
return $._.includes(dependency.type, fileType);
});

return $._(mergeSort(dependencies)).
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"dependencies": {
"bower-config": "^1.3.0",
"glob": "^7.0.3",
"lodash": "^2.4.1",
"lodash": "^4.6.1",
"propprop": "^0.3.0",
"through2": "^2.0.1",
"wiredep-cli": "^0.1.0"
Expand Down
2 changes: 1 addition & 1 deletion wiredep.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function wiredep(opts) {
('src', [])
('stream', opts.stream ? opts.stream : {});

$._.pluck(config.get('file-types'), 'detect').
$._.map(config.get('file-types'), 'detect').
forEach(function (fileType) {
Object.keys(fileType).
forEach(function (detectableFileType) {
Expand Down

0 comments on commit 58b9441

Please sign in to comment.