Skip to content

Commit

Permalink
bump @types/node
Browse files Browse the repository at this point in the history
  • Loading branch information
foxt committed Dec 18, 2024
1 parent 7300a02 commit 7d682fd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
42 changes: 31 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"keytar": "^7.9.0"
},
"devDependencies": {
"@types/node": "^18.6.4",
"@types/node": "^20.17.10",
"@types/node-fetch": "^2.6.2",
"@types/tough-cookie": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^5.43.0",
Expand Down
4 changes: 2 additions & 2 deletions src/auth/iCSRPAuthenticator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export class GSASRPAuthenticator {


private async derivePassword(protocol: "s2k" | "s2k_fo", password: string, salt: Uint8Array, iterations: number) {
let passHash = new Uint8Array(await util.hash(srp.h, stringToU8Array(password)));
let passHash = new Uint8Array(await util.hash(srp.h, stringToU8Array(password).buffer as ArrayBuffer));
if (protocol == "s2k_fo")
passHash = stringToU8Array(util.toHex(passHash));
passHash = stringToU8Array(util.toHex(passHash)) as Uint8Array<ArrayBuffer>;


const imported = await crypto.subtle.importKey(
Expand Down

0 comments on commit 7d682fd

Please sign in to comment.