handbrake-ts
Advanced tools
Comparing version 0.2.6 to 0.2.7
@@ -35,4 +35,5 @@ import { BehaviorSubject } from "rxjs"; | ||
runCommand(command: string): Promise<unknown>; | ||
wait(time: number): Promise<unknown>; | ||
} | ||
export {}; | ||
//# sourceMappingURL=Installator.d.ts.map |
@@ -108,2 +108,3 @@ "use strict"; | ||
.pipe(Node_1.unzipper.Extract({ path: unzipDir })); | ||
yield this.wait(500); | ||
console.log(Node_1.path.join(unzipDir, 'HandBrakeCLI.exe'), Node_1.fs.existsSync(Node_1.path.join(unzipDir, 'HandBrakeCLI.exe'))); | ||
@@ -194,7 +195,8 @@ console.log(this.config.getCliPath('win32'), Node_1.fs.existsSync(this.config.getCliPath('win32'))); | ||
return new Promise((res, rej) => { | ||
file.on('finish', () => { | ||
file.on('finish', () => __awaiter(this, void 0, void 0, function* () { | ||
// file.close(); | ||
console.log('finish download'); | ||
yield this.wait(500); | ||
res(fileName); | ||
}); | ||
})); | ||
}); | ||
@@ -240,4 +242,9 @@ } | ||
} | ||
wait(time) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return new Promise(res => setTimeout(res, time)); | ||
}); | ||
} | ||
} | ||
exports.Installator = Installator; | ||
//# sourceMappingURL=Installator.js.map |
{ | ||
"name": "handbrake-ts", | ||
"version": "0.2.6", | ||
"version": "0.2.7", | ||
"description": "Handbrake with TypeScript and support for electron", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
51311
686