Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prompt

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prompt - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

.eslintrc

16

lib/prompt.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc