Comparing version 1.0.0 to 1.0.1
@@ -6,4 +6,4 @@ "use strict"; | ||
}); | ||
exports.default = reloquent; | ||
exports.askSingle = askSingle; | ||
exports.default = void 0; | ||
@@ -21,2 +21,4 @@ var _askQuestions = _interopRequireDefault(require("./lib/ask-questions")); | ||
* @property {(s: string) => string} [postProcess] A transformation function for the answer. | ||
* | ||
* @typedef {Object.<string, Question>} Questions | ||
*/ | ||
@@ -26,4 +28,5 @@ | ||
* Ask user questions via the CLI. | ||
* @param {Object.<string, Question>} questions A question or a questions configuration. | ||
* @param {Questions} questions A question or a questions configuration. | ||
* @param {number} [timeout] How long to wait before rejecting the promise. Waits forever by default. | ||
* @returns {Object.<string, string>} An object with answers. | ||
*/ | ||
@@ -38,2 +41,3 @@ async function reloquent(questions, timeout) { | ||
* @param {number} [timeout] How long to wait before rejecting the promise. Waits forever by default. | ||
* @returns {string} An answer to the question | ||
*/ | ||
@@ -49,2 +53,6 @@ | ||
return answer; | ||
} | ||
} | ||
var _default = reloquent; | ||
exports.default = _default; | ||
//# sourceMappingURL=index.js.map |
@@ -79,2 +79,3 @@ "use strict"; | ||
return res; | ||
} | ||
} | ||
//# sourceMappingURL=ask-questions.js.map |
@@ -45,2 +45,3 @@ "use strict"; | ||
return rl; | ||
} | ||
} | ||
//# sourceMappingURL=ask.js.map |
@@ -1,3 +0,8 @@ | ||
## 1.0.0 (9 June) | ||
## 1.0.1 (11 June 2018) | ||
- [build] build with source maps | ||
- [doc] document return type | ||
## 1.0.0 (9 June 2018) | ||
- [ecma] update to modules | ||
@@ -8,9 +13,9 @@ - [api] change the api to allow to ask single questions. | ||
## 0.2.0 (31 May) | ||
## 0.2.0 (31 May 2017) | ||
- [feature] `askQuestions`: ask multiple questions. | ||
## 0.1.0 (23 May) | ||
## 0.1.0 (23 May 2017) | ||
- Create `reloquent`: reading from readline interface with a timeout | ||
- [repo]: `test`, `src`, `example`, `.eslintrc` |
{ | ||
"name": "reloquent", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Ask user configurable questions via read-line.", | ||
@@ -10,3 +10,3 @@ "main": "build", | ||
"test-build": "BABEL_ENV=test-build zoroaster test/spec -b", | ||
"build": "babel src --out-dir build", | ||
"build": "babel src --out-dir build --source-maps", | ||
"e": "node example", | ||
@@ -13,0 +13,0 @@ "example/single.js": "yarn e example/single.js", |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
19196
10
146
0