Initial commit
This commit is contained in:
commit
f1548f10cc
7585 files changed
+1411120
No files matched your search
+16
@@ -0,0 +1,16 @@
|
||||
/// <reference types="node" />
|
||||
import { NodeIntegrity } from "./asar";
|
||||
export interface AsarIntegrityOptions {
|
||||
readonly resourcesPath: string;
|
||||
readonly resourcesRelativePath: string;
|
||||
}
|
||||
export interface HeaderHash {
|
||||
algorithm: "SHA256";
|
||||
hash: string;
|
||||
}
|
||||
export interface AsarIntegrity {
|
||||
[key: string]: HeaderHash;
|
||||
}
|
||||
export declare function computeData({ resourcesPath, resourcesRelativePath }: AsarIntegrityOptions): Promise<AsarIntegrity>;
|
||||
export declare function hashFile(file: string, blockSize?: number): Promise<NodeIntegrity>;
|
||||
export declare function hashFileContents(contents: Buffer | string, blockSize?: number): NodeIntegrity;
|
||||
Reference in new issue
Block a user