update electron to v43

This commit is contained in:
olcxja 2026-07-09 22:38:33 +02:00
commit fb6c8b6ee9
5385 changed files with 513060 additions and 123058 deletions

View file

@ -1,13 +1,13 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.hashFile = void 0;
exports.hashFile = hashFile;
const crypto_1 = require("crypto");
const fs_1 = require("fs");
function hashFile(file, algorithm = "sha512", encoding = "base64", options) {
return new Promise((resolve, reject) => {
const hash = crypto_1.createHash(algorithm);
const hash = (0, crypto_1.createHash)(algorithm);
hash.on("error", reject).setEncoding(encoding);
fs_1.createReadStream(file, { ...options, highWaterMark: 1024 * 1024 /* better to use more memory but hash faster */ })
(0, fs_1.createReadStream)(file, { ...options, highWaterMark: 1024 * 1024 /* better to use more memory but hash faster */ })
.on("error", reject)
.on("end", () => {
hash.end();
@ -16,5 +16,4 @@ function hashFile(file, algorithm = "sha512", encoding = "base64", options) {
.pipe(hash, { end: false });
});
}
exports.hashFile = hashFile;
//# sourceMappingURL=hash.js.map