Skip to content

Commit 5e0ad40

Browse files
authored
fix vulnerabilities (#217)
* fix by npm audit fix * update mocha
1 parent 1975091 commit 5e0ad40

File tree

4 files changed

+3323
-1713
lines changed

4 files changed

+3323
-1713
lines changed

lib/validate-signature.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createHmac, timingSafeEqual } from "crypto";
22

3-
function s2b(str: string, encoding: string): Buffer {
3+
function s2b(str: string, encoding: BufferEncoding): Buffer {
44
return Buffer.from(str, encoding);
55
}
66

0 commit comments

Comments
 (0)