fix(core): update

This commit is contained in:
Philipp Kunz 2020-02-07 16:45:48 +00:00
parent c1a93102be
commit db19c7480f
8 changed files with 804 additions and 315 deletions

1
dist/index.d.ts vendored
View File

@ -1 +1,2 @@
export * from './smartinteract.classes.smartinteract';
export * from './smartinteract.classes.answerbucket';

3
dist/index.js vendored
View File

@ -4,4 +4,5 @@ function __export(m) {
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./smartinteract.classes.smartinteract"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDJEQUFxRCJ9
__export(require("./smartinteract.classes.answerbucket"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDJEQUFzRDtBQUN0RCwwREFBcUQifQ==

View File

@ -1,5 +1,11 @@
import { Objectmap } from 'lik';
import { AnswerBucket } from './smartinteract.classes.answerbucket';
/**
* the availeable question types
*/
export declare type questionType = 'input' | 'confirm' | 'list' | 'rawlist' | 'expand' | 'checkbox' | 'password' | 'editor';
/**
* a choice
*/
export interface IChoiceObject {
name: string;
value: any;
@ -47,23 +53,5 @@ export declare class SmartInteract {
/**
* checks if the current env is valid for userinput
*/
private isValidEnv();
}
/**
* class AnswerBucket holds answers
*/
export declare class AnswerBucket {
answerMap: Objectmap<IAnswerObject>;
/**
* add an answer to the bucket
*/
addAnswer(answerArg: IAnswerObject): void;
/**
* gets an answer for a specific name
*/
getAnswerFor(nameArg: string): any;
/**
* gets all answers as array
*/
getAllAnswers(): IAnswerObject[];
private isValidEnv;
}

View File

@ -1,16 +1,15 @@
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
const plugins = require("./smartinteract.plugins");
const smartq = require("smartq");
const lik_1 = require("lik");
const plugins = __importStar(require("./smartinteract.plugins"));
const smartpromise = __importStar(require("@pushrocks/smartpromise"));
const smartinteract_classes_answerbucket_1 = require("./smartinteract.classes.answerbucket");
/**
* class SmartInteract - allows to specify an user interaction during runtime
*/
@ -22,7 +21,7 @@ class SmartInteract {
/**
* holds the qestion queue, that is emptied once you call
*/
this.questionMap = new lik_1.Objectmap();
this.questionMap = new plugins.lik.Objectmap();
if (questionArrayArg) {
this.addQuestions(questionArrayArg);
}
@ -32,32 +31,33 @@ class SmartInteract {
* skips the queue
*/
askQuestion(optionsArg) {
let done = smartq.defer();
const done = smartpromise.defer();
if (this.isValidEnv()) {
plugins.inquirer.prompt([{
plugins.inquirer
.prompt([
{
name: optionsArg.name,
type: optionsArg.type,
message: optionsArg.message,
default: optionsArg.default,
choices: optionsArg.choices,
validate: optionsArg.validate
}]).then((answers) => {
// adjust to the fact that now dots define paths for inquirer
let answerValue = answers;
let nameArray = optionsArg.name.split('.');
for (let name of nameArray) {
answerValue = answerValue[name];
}
])
.then(answers => {
// adjust to the fact that now dots define paths for inquirer
const answerValue = plugins.smartparam.smartGet(answers, optionsArg.name);
done.resolve({
name: optionsArg.name,
value: answerValue
});
}).catch(err => {
})
.catch(err => {
console.log(err);
});
}
else {
let answer = {
const answer = {
name: optionsArg.name,
value: optionsArg.default
};
@ -75,19 +75,19 @@ class SmartInteract {
* run the question queue
*/
runQueue() {
let done = smartq.defer();
let answerBucket = new AnswerBucket();
let handleQuestion = () => __awaiter(this, void 0, void 0, function* () {
const done = smartpromise.defer();
const answerBucket = new smartinteract_classes_answerbucket_1.AnswerBucket();
const handleQuestion = async () => {
if (!this.questionMap.isEmpty()) {
let oneQuestion = this.questionMap.getOneAndRemove();
let answer = yield this.askQuestion(oneQuestion);
const oneQuestion = this.questionMap.getOneAndRemove();
const answer = await this.askQuestion(oneQuestion);
answerBucket.addAnswer(answer);
handleQuestion(); // recursion: as questions until empty
}
else {
done.resolve(answerBucket); // when empty, then resolve promise
}
});
};
handleQuestion();
return done.promise;
}
@ -104,34 +104,4 @@ class SmartInteract {
}
}
exports.SmartInteract = SmartInteract;
/**
* class AnswerBucket holds answers
*/
class AnswerBucket {
constructor() {
this.answerMap = new lik_1.Objectmap();
}
/**
* add an answer to the bucket
*/
addAnswer(answerArg) {
this.answerMap.add(answerArg);
}
/**
* gets an answer for a specific name
*/
getAnswerFor(nameArg) {
let answer = this.answerMap.find(answerArg => {
return answerArg.name === nameArg;
});
return answer.value;
}
/**
* gets all answers as array
*/
getAllAnswers() {
return this.answerMap.getArray();
}
}
exports.AnswerBucket = AnswerBucket;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpbnRlcmFjdC5jbGFzc2VzLnNtYXJ0aW50ZXJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9zbWFydGludGVyYWN0LmNsYXNzZXMuc21hcnRpbnRlcmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsbURBQWtEO0FBQ2xELGlDQUFnQztBQUNoQyw2QkFBK0I7QUEyQi9COztHQUVHO0FBQ0g7SUFP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BMkZDIn0=

View File

@ -1,3 +1,5 @@
import 'typings-global';
import * as lik from '@pushrocks/lik';
import * as smartparam from '@pushrocks/smartparam';
export { lik, smartparam };
import * as inquirer from 'inquirer';
export { inquirer };

View File

@ -1,6 +1,18 @@
"use strict";
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
result["default"] = mod;
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
require("typings-global");
const inquirer = require("inquirer");
// pushrocks scope
const lik = __importStar(require("@pushrocks/lik"));
exports.lik = lik;
const smartparam = __importStar(require("@pushrocks/smartparam"));
exports.smartparam = smartparam;
// third party scope
const inquirer = __importStar(require("inquirer"));
exports.inquirer = inquirer;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpbnRlcmFjdC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRpbnRlcmFjdC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUEsMEJBQXVCO0FBQ3ZCLHFDQUFvQztBQUdsQyw0QkFBUSJ9
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnRpbnRlcmFjdC5wbHVnaW5zLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvc21hcnRpbnRlcmFjdC5wbHVnaW5zLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLGtCQUFrQjtBQUNsQixvREFBc0M7QUFHN0Isa0JBQUc7QUFGWixrRUFBb0Q7QUFFdEMsZ0NBQVU7QUFFeEIsb0JBQW9CO0FBQ3BCLG1EQUFxQztBQUU1Qiw0QkFBUSJ9

971
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,9 +6,8 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"test": "tsrun test/test.ts",
"testLocal": "(npmts --notest && ts-node --compilerOptions '{\"target\":\"es6\"}' test/test.ts)",
"build": "(npmts --notest)"
"test": "(tstest test/)",
"build": "(tsbuild)"
},
"repository": {
"type": "git",
@ -32,7 +31,8 @@
"inquirer": "^7.0.4"
},
"devDependencies": {
"@gitzone/tsrun": "^1.2.8",
"@gitzone/tsbuild": "^2.1.17",
"@gitzone/tstest": "^1.0.28",
"@pushrocks/tapbundle": "^3.2.0",
"tslint": "^6.0.0",
"tslint-config-prettier": "^1.18.0"