Comparing version 2.3.0 to 2.3.1
@@ -58,16 +58,15 @@ 'use strict'; | ||
weekdaysShort: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(',') | ||
/** | ||
* DatePrompt Base Element | ||
* @param {Object} opts Options | ||
* @param {String} opts.message Message | ||
* @param {Number} [opts.initial] Index of default value | ||
* @param {String} [opts.mask] The format mask | ||
* @param {object} [opts.locales] The date locales | ||
* @param {String} [opts.error] The error message shown on invalid value | ||
* @param {Function} [opts.validate] Function to validate the submitted value | ||
* @param {Stream} [opts.stdin] The Readable stream to listen to | ||
* @param {Stream} [opts.stdout] The Writable stream to write readline data to | ||
*/ | ||
}; | ||
/** | ||
* DatePrompt Base Element | ||
* @param {Object} opts Options | ||
* @param {String} opts.message Message | ||
* @param {Number} [opts.initial] Index of default value | ||
* @param {String} [opts.mask] The format mask | ||
* @param {object} [opts.locales] The date locales | ||
* @param {String} [opts.error] The error message shown on invalid value | ||
* @param {Function} [opts.validate] Function to validate the submitted value | ||
* @param {Stream} [opts.stdin] The Readable stream to listen to | ||
* @param {Stream} [opts.stdout] The Writable stream to write readline data to | ||
*/ | ||
@@ -74,0 +73,0 @@ class DatePrompt extends Prompt { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } | ||
@@ -8,0 +8,0 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } |
@@ -28,3 +28,7 @@ 'use strict'; | ||
if (key.name === 'pagedown') return 'nextPage'; | ||
if (key.name === 'pageup') return 'prevPage'; | ||
if (key.name === 'pageup') return 'prevPage'; // TODO create home() in prompt types (e.g. TextPrompt) | ||
if (key.name === 'home') return 'home'; // TODO create end() in prompt types (e.g. TextPrompt) | ||
if (key.name === 'end') return 'end'; | ||
if (key.name === 'up') return 'up'; | ||
@@ -31,0 +35,0 @@ if (key.name === 'down') return 'down'; |
@@ -39,3 +39,3 @@ 'use strict'; | ||
return (erase.line + cursor.prevLine()).repeat(rows - 1) + erase.line + cursor.to(0); | ||
return erase.lines(rows); | ||
}; |
@@ -28,2 +28,6 @@ 'use strict'; | ||
if (key.name === 'pageup') return 'prevPage'; | ||
// TODO create home() in prompt types (e.g. TextPrompt) | ||
if (key.name === 'home') return 'home'; | ||
// TODO create end() in prompt types (e.g. TextPrompt) | ||
if (key.name === 'end') return 'end'; | ||
@@ -30,0 +34,0 @@ if (key.name === 'up') return 'up'; |
@@ -17,3 +17,3 @@ 'use strict'; | ||
return (erase.line + cursor.prevLine()).repeat(rows - 1) + erase.line + cursor.to(0); | ||
return erase.lines(rows); | ||
}; |
{ | ||
"name": "prompts", | ||
"version": "2.3.0", | ||
"version": "2.3.1", | ||
"description": "Lightweight, beautiful and user-friendly prompts", | ||
@@ -40,11 +40,11 @@ "license": "MIT", | ||
"kleur": "^3.0.3", | ||
"sisteransi": "^1.0.3" | ||
"sisteransi": "^1.0.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.5.5", | ||
"@babel/core": "^7.5.5", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.5.5", | ||
"@babel/preset-env": "^7.5.5", | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.8.3", | ||
"@babel/preset-env": "^7.8.4", | ||
"tap-spec": "^5.0.0", | ||
"tape": "^4.11.0" | ||
"tape": "^4.13.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "engines": { |
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
179277
4459
Updatedsisteransi@^1.0.4