-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Revert "feat: bump minimum node version to 16 and add tests (#86)"
This reverts commit 8e2842b.
- Loading branch information
1 parent
8e2842b
commit bb304ce
Showing
18 changed files
with
1,463 additions
and
3,622 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,5 +3,3 @@ dist | |
entry-asar/*.js* | ||
entry-asar/*.ts | ||
*.app | ||
test/fixtures/apps | ||
coverage |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,16 @@ | ||
import * as fs from 'fs-extra'; | ||
import * as crypto from 'crypto'; | ||
import { pipeline } from 'stream/promises'; | ||
|
||
import { d } from './debug'; | ||
|
||
export const sha = async (filePath: string) => { | ||
d('hashing', filePath); | ||
const hash = crypto.createHash('sha256'); | ||
hash.setEncoding('hex'); | ||
await pipeline(fs.createReadStream(filePath), hash); | ||
const fileStream = fs.createReadStream(filePath); | ||
fileStream.pipe(hash); | ||
await new Promise((resolve, reject) => { | ||
fileStream.on('end', () => resolve()); | ||
fileStream.on('error', (err) => reject(err)); | ||
}); | ||
return hash.read(); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.