icoa-cli 2.14.2 → 2.14.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/demo-exam.js +1 -1
- package/dist/lib/exam-state.js +2 -0
- package/dist/repl.js +2 -0
- package/package.json +1 -1
package/dist/lib/demo-exam.js
CHANGED
package/dist/lib/exam-state.js
CHANGED
|
@@ -30,6 +30,8 @@ export function getExamDeadline() {
|
|
|
30
30
|
const state = getExamState();
|
|
31
31
|
if (!state)
|
|
32
32
|
return null;
|
|
33
|
+
if (!state.session.durationMinutes)
|
|
34
|
+
return null; // 0 = no time limit
|
|
33
35
|
const start = new Date(state.session.startedAt).getTime();
|
|
34
36
|
return new Date(start + state.session.durationMinutes * 60 * 1000);
|
|
35
37
|
}
|
package/dist/repl.js
CHANGED
|
@@ -183,6 +183,8 @@ export async function startRepl(program, resumeMode) {
|
|
|
183
183
|
console.log(chalk.gray(' ─────────────────────────────────────────────'));
|
|
184
184
|
console.log(chalk.bold.cyan(' demo') + chalk.gray(' Free practice exam (30 questions)'));
|
|
185
185
|
console.log(chalk.white(' exam <token>') + chalk.gray(' Enter exam with access token'));
|
|
186
|
+
console.log(chalk.white(' lang es') + chalk.gray(' Switch language (15 supported)'));
|
|
187
|
+
console.log(chalk.gray(' e.g. lang es (Español), lang zh, lang fr'));
|
|
186
188
|
console.log(chalk.gray(' ─────────────────────────────────────────────'));
|
|
187
189
|
console.log();
|
|
188
190
|
}
|