From 7d1a28f7f2196986797f4762483d4aa139990daf Mon Sep 17 00:00:00 2001 From: Jordan Yaker Date: Thu, 15 Dec 2016 21:08:34 -0500 Subject: [PATCH] Removed the pkginfo dependency. --- lib/prompt.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/prompt.js b/lib/prompt.js index 230ae56..d4d3948 100644 --- a/lib/prompt.js +++ b/lib/prompt.js @@ -32,7 +32,7 @@ readline.Interface.prototype.setPrompt = function(prompt, length) { // // Expose version using `pkginfo` // -require('pkginfo')(module, 'version'); +module.exports.version = require('../package.json').version; var stdin, stdout, history = []; var prompt = module.exports = Object.create(events.EventEmitter.prototype); @@ -771,11 +771,11 @@ function convert(schema) { if(typeof schema.message !== 'undefined'){ schema.description = schema.message; } - + if(typeof schema.warning !== 'undefined'){ schema.message = schema.warning; } - + if (typeof schema.validator === 'function') { schema.conform = schema.validator; } else {