Upgrade to lodash v4

This commit is contained in:
Tim Perry 2017-08-16 18:16:21 +02:00
parent b28a4a5f99
commit e204707ee0
4 changed files with 4 additions and 3 deletions

View File

@ -5,6 +5,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
### Changed ### Changed
- Upgrade to Lodash v4, drastically reducing install size (due to dedupes)
- Updated npm package description - Updated npm package description
- Added support for looking up shared apps via [owner]/[appname] strings - Added support for looking up shared apps via [owner]/[appname] strings

View File

@ -145,7 +145,7 @@ buildConfig = function(image, deviceType, advanced) {
return helpers.getManifest(image, deviceType).get('options').then(function(questions) { return helpers.getManifest(image, deviceType).get('options').then(function(questions) {
var advancedGroup, override; var advancedGroup, override;
if (!advanced) { if (!advanced) {
advancedGroup = _.findWhere(questions, { advancedGroup = _.find(questions, {
name: 'advanced', name: 'advanced',
isGroup: true isGroup: true
}); });

View File

@ -152,7 +152,7 @@ buildConfig = (image, deviceType, advanced = false) ->
.get('options') .get('options')
.then (questions) -> .then (questions) ->
if not advanced if not advanced
advancedGroup = _.findWhere questions, advancedGroup = _.find questions,
name: 'advanced' name: 'advanced'
isGroup: true isGroup: true

View File

@ -59,7 +59,7 @@
"is-root": "^1.0.0", "is-root": "^1.0.0",
"js-yaml": "^3.7.0", "js-yaml": "^3.7.0",
"klaw": "^1.3.1", "klaw": "^1.3.1",
"lodash": "^3.10.0", "lodash": "^4.17.4",
"mixpanel": "^0.4.0", "mixpanel": "^0.4.0",
"moment": "^2.12.0", "moment": "^2.12.0",
"mz": "^2.6.0", "mz": "^2.6.0",