node_modules updated, buefy add to lib folder

This commit is contained in:
2019-06-04 14:29:48 +02:00
parent 0a3f6ff240
commit 5d28bc36e1
3957 changed files with 306575 additions and 21738 deletions
+5 -5
View File
@@ -5,8 +5,8 @@ var _ = require('lodash');
* Choice object
* Normalize input as choice object
* @constructor
* @param {String|Object} val Choice value. If an object is passed, it should contains
* at least one of `value` or `name` property
* @param {Number|String|Object} val Choice value. If an object is passed, it should contains
* at least one of `value` or `name` property
*/
module.exports = class Choice {
@@ -16,10 +16,10 @@ module.exports = class Choice {
return val;
}
if (_.isString(val)) {
this.name = val;
if (_.isString(val) || _.isNumber(val)) {
this.name = String(val);
this.value = val;
this.short = val;
this.short = String(val);
} else {
_.extend(this, val, {
name: val.name || val.value,
+2
View File
@@ -18,8 +18,10 @@ module.exports = class Choices {
if (!(val instanceof Separator)) {
val = new Separator(val.line);
}
return val;
}
return new Choice(val, answers);
});