Comparing version 1.1.0 to 1.2.0
@@ -10,4 +10,3 @@ /* | ||
readline = require('readline'), | ||
utile = require('utile'), | ||
async = utile.async, | ||
async = require('async'), | ||
read = require('read'), | ||
@@ -400,9 +399,14 @@ validate = require('revalidator').validate, | ||
var yes = target.yes || RX_Y, | ||
options = utile.mixin({ | ||
description: typeof target === 'string' ? target : target.description||'yes/no', | ||
options = { | ||
description: typeof target === 'string' ? target : target.description || 'yes/no', | ||
pattern: target.pattern || RX_YN, | ||
name: 'confirm', | ||
message: target.message || 'yes/no' | ||
}, opts || {}); | ||
}; | ||
for (var k in (opts || {})) { | ||
if (opts.hasOwnProperty(k)) { | ||
options[k] = opts[k]; | ||
} | ||
} | ||
@@ -528,3 +532,3 @@ prompt.get([options], function (err, result) { | ||
length = raw.join('').length; | ||
raw[0] = raw[0]; | ||
// raw[0] = raw[0]; | ||
msg = raw.join(''); | ||
@@ -531,0 +535,0 @@ |
{ | ||
"name": "prompt", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "A beautiful command-line prompt for node.js", | ||
@@ -21,10 +21,11 @@ "author": "Nodejitsu Inc. <info@nodejitsu.com>", | ||
"dependencies": { | ||
"async": "~0.9.0", | ||
"colors": "^1.1.2", | ||
"read": "1.0.x", | ||
"revalidator": "0.1.x", | ||
"utile": "0.3.x", | ||
"winston": "2.x" | ||
}, | ||
"devDependencies": { | ||
"vows": "0.7.0" | ||
"eslint": "^7.32.0", | ||
"vows": "^0.7.0" | ||
}, | ||
@@ -31,0 +32,0 @@ "main": "./lib/prompt", |
@@ -93,3 +93,3 @@ /* | ||
message: 'Enter your username', | ||
validator: /^[\w|\-]+$/, | ||
validator: /^[\w|-]+$/, | ||
warning: 'username can only be letters, numbers, and dashes', | ||
@@ -99,3 +99,3 @@ empty: false | ||
riffwabbles: { | ||
pattern: /^[\w|\-]+$/, | ||
pattern: /^[\w|-]+$/, | ||
message: 'riffwabbles can only be letters, numbers, and dashes', | ||
@@ -132,3 +132,3 @@ default: 'foobizzles' | ||
username: { | ||
pattern: /^[\w|\-]+$/, | ||
pattern: /^[\w|-]+$/, | ||
message: 'Username can only be letters, numbers, and dashes' | ||
@@ -135,0 +135,0 @@ }, |
@@ -25,7 +25,7 @@ /* | ||
names.forEach(function (name) { | ||
complete.path = [name], | ||
complete.path = [name]; | ||
complete.schema = schema.properties[name]; | ||
}); | ||
return complete; | ||
}; | ||
} | ||
@@ -32,0 +32,0 @@ // |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
136830
30
2535
0
2
+ Addedasync@~0.9.0
- Removedutile@0.3.x
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddeep-equal@0.2.2(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedi@0.3.7(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedncp@1.0.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedutile@0.3.0(transitive)
- Removedwrappy@1.0.2(transitive)