prompt-question
Advanced tools
Comparing version 5.0.0 to 5.0.1
'use strict'; | ||
var debug = require('debug')('prompt-question'); | ||
var extend = require('extend-shallow'); | ||
var Choices = require('prompt-choices'); | ||
@@ -231,3 +230,3 @@ var define = require('define-property'); | ||
set: function(checkbox) { | ||
if (isObject(checkbox)) { | ||
if (utils.isObject(checkbox)) { | ||
throw new TypeError('expected checkbox symbols to be an object'); | ||
@@ -234,0 +233,0 @@ } |
'use strict'; | ||
var define = require('define-property'); | ||
var extend = require('extend-shallow'); | ||
var typeOf = require('kind-of'); | ||
@@ -23,3 +22,3 @@ var utils = module.exports; | ||
if (utils.isObject(val)) { | ||
extend(cache, val); | ||
Object.assign(cache, val); | ||
@@ -36,4 +35,4 @@ } else if (val != null) { | ||
var opts = question.options; | ||
extend(question, cache); | ||
question.options = extend({}, opts, cache.options); | ||
Object.assign(question, cache); | ||
question.options = Object.assign({}, opts, cache.options); | ||
}; | ||
@@ -40,0 +39,0 @@ |
{ | ||
"name": "prompt-question", | ||
"description": "Question object, used by Enquirer and prompt plugins.", | ||
"version": "5.0.0", | ||
"version": "5.0.1", | ||
"homepage": "https://github.com/enquirer/prompt-question", | ||
@@ -27,3 +27,2 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
"define-property": "^1.0.0", | ||
"extend-shallow": "^2.0.1", | ||
"kind-of": "^4.0.0", | ||
@@ -30,0 +29,0 @@ "koalas": "^1.0.2", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6
20377
347
- Removedextend-shallow@^2.0.1