tessl 0.114.0 → 0.116.0
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/bin/tessl.js +5 -5
- package/package.json +1 -1
package/bin/tessl.js
CHANGED
|
@@ -331,10 +331,10 @@ async function extractTarball(stream, destination) {
|
|
|
331
331
|
if (!tar.stdin) {
|
|
332
332
|
throw new Error("Failed to open tar stdin");
|
|
333
333
|
}
|
|
334
|
-
const tarExit = new Promise((
|
|
334
|
+
const tarExit = new Promise((resolve, reject) => {
|
|
335
335
|
tar.on("exit", (code) => {
|
|
336
336
|
if (code === 0) {
|
|
337
|
-
|
|
337
|
+
resolve();
|
|
338
338
|
} else {
|
|
339
339
|
reject(new Error(`tar exited with code ${code}`));
|
|
340
340
|
}
|
|
@@ -424,7 +424,7 @@ async function downloadVerifyAndExtract({
|
|
|
424
424
|
await extractTarball(verifiedStream, destination);
|
|
425
425
|
}
|
|
426
426
|
async function promptConfirmation(message) {
|
|
427
|
-
return new Promise((
|
|
427
|
+
return new Promise((resolve) => {
|
|
428
428
|
const rl = createInterface({
|
|
429
429
|
input: process.stdin,
|
|
430
430
|
output: process.stdout
|
|
@@ -432,7 +432,7 @@ async function promptConfirmation(message) {
|
|
|
432
432
|
rl.question(`${message} (Y/n) `, (answer) => {
|
|
433
433
|
rl.close();
|
|
434
434
|
const a = answer.trim().toLowerCase();
|
|
435
|
-
|
|
435
|
+
resolve(a === "" || a === "y");
|
|
436
436
|
});
|
|
437
437
|
});
|
|
438
438
|
}
|
|
@@ -572,7 +572,7 @@ async function main() {
|
|
|
572
572
|
printUnsupportedPlatformMessage();
|
|
573
573
|
process.exit(1);
|
|
574
574
|
}
|
|
575
|
-
const installerVersion = "0.
|
|
575
|
+
const installerVersion = "0.116.0";
|
|
576
576
|
const path = await prepareBinary({
|
|
577
577
|
installerVersion,
|
|
578
578
|
platform,
|