We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
hash.ts
1 parent b0d6d34 commit 6b0c439Copy full SHA for 6b0c439
src/vs/base/common/hash.ts
@@ -69,6 +69,13 @@ function objectHash(obj: any, initialHashVal: number): number {
69
}, initialHashVal);
70
}
71
72
+// this is shared global between browsers and nodejs
73
+declare const crypto: {
74
+ subtle: {
75
+ digest(a: string, b: ArrayBufferView): Promise<ArrayBuffer>;
76
+ };
77
+};
78
+
79
/** Hashes the input as SHA-1, returning a hex-encoded string. */
80
export const hashAsync = (input: string | ArrayBufferView | VSBuffer) => {
81
// Note: I would very much like to expose a streaming interface for hashing
0 commit comments