mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-02-21 01:42:26 +00:00
Auto-merge for PR #643 via VersionBot
Fix lodash bugs in device move & quickstart
This commit is contained in:
commit
bd3b9e32a9
@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file
|
||||
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
|
||||
This project adheres to [Semantic Versioning](http://semver.org/).
|
||||
|
||||
## v6.6.5 - 2017-08-31
|
||||
|
||||
* Fix lodash bugs in device move & quickstart #643 [Tim Perry]
|
||||
|
||||
## v6.6.4 - 2017-08-31
|
||||
|
||||
* Catch uncommitted build output automatically in Travis #644 [Tim Perry]
|
||||
|
@ -249,7 +249,7 @@ exports.move = {
|
||||
patterns = require('../utils/patterns');
|
||||
return resin.models.device.get(params.uuid).then(function(device) {
|
||||
return options.application || patterns.selectApplication(function(application) {
|
||||
return _.all([application.device_type === device.device_type, device.application_name !== application.app_name]);
|
||||
return _.every([application.device_type === device.device_type, device.application_name !== application.app_name]);
|
||||
});
|
||||
}).tap(function(application) {
|
||||
return resin.models.device.move(params.uuid, application);
|
||||
|
@ -24,7 +24,7 @@ exports.getGroupDefaults = function(group) {
|
||||
_ = require('lodash');
|
||||
return _.chain(group).get('options').map(function(question) {
|
||||
return [question.name, question["default"]];
|
||||
}).object().value();
|
||||
}).fromPairs().value();
|
||||
};
|
||||
|
||||
exports.stateToString = function(state) {
|
||||
|
@ -343,7 +343,7 @@ exports.move =
|
||||
|
||||
resin.models.device.get(params.uuid).then (device) ->
|
||||
return options.application or patterns.selectApplication (application) ->
|
||||
return _.all [
|
||||
return _.every [
|
||||
application.device_type is device.device_type
|
||||
device.application_name isnt application.app_name
|
||||
]
|
||||
|
@ -23,7 +23,7 @@ exports.getGroupDefaults = (group) ->
|
||||
.get('options')
|
||||
.map (question) ->
|
||||
return [ question.name, question.default ]
|
||||
.object()
|
||||
.fromPairs()
|
||||
.value()
|
||||
|
||||
exports.stateToString = (state) ->
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "resin-cli",
|
||||
"version": "6.6.4",
|
||||
"version": "6.6.5",
|
||||
"description": "The official resin.io CLI tool",
|
||||
"main": "./build/actions/index.js",
|
||||
"homepage": "https://github.com/resin-io/resin-cli",
|
||||
|
Loading…
x
Reference in New Issue
Block a user