Skip to content

Commit fb659f5

Browse files
vveerrggclaude
andcommitted
chore(deps): update dependencies and fix TS 5.9 type error
Update @scure/base 1.2.4→1.2.6, typescript 5.3→5.9.3, vitest 1.1→1.6.1, prettier 3.1→3.8.1. Fix TS 5.9 strict Uint8Array/ArrayBuffer typing in stringToBuffer — return .buffer from TextEncoder.encode() to satisfy ArrayBuffer return type. Bump version to 0.1.1. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3793053 commit fb659f5

3 files changed

Lines changed: 60 additions & 54 deletions

File tree

package-lock.json

Lines changed: 52 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nostr-biometric-auth-utils",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"type": "module",
55
"description": "A utility library for biometric authentication in Nostr applications using WebAuthn.",
66
"main": "dist/index.js",
@@ -47,21 +47,21 @@
4747
},
4848
"homepage": "https://github.com/HumanjavaEnterprises/nostr-biometric-login-utils#readme",
4949
"dependencies": {
50-
"@scure/base": "^1.2.4",
50+
"@scure/base": "^1.2.6",
5151
"@simplewebauthn/browser": "^8.3.7",
5252
"@simplewebauthn/server": "^8.3.5",
5353
"nostr-crypto-utils": "^0.4.15"
5454
},
5555
"devDependencies": {
5656
"@simplewebauthn/types": "^12.0.0",
57-
"@types/node": "^20.10.6",
57+
"@types/node": "^20.19.33",
5858
"@typescript-eslint/eslint-plugin": "^6.16.0",
5959
"@typescript-eslint/parser": "^6.16.0",
6060
"eslint": "^8.56.0",
61-
"prettier": "^3.1.1",
62-
"rimraf": "^5.0.5",
63-
"typescript": "^5.3.3",
64-
"vitest": "^1.1.0"
61+
"prettier": "^3.8.1",
62+
"rimraf": "^5.0.10",
63+
"typescript": "^5.9.3",
64+
"vitest": "^1.6.1"
6565
},
6666
"engines": {
6767
"node": ">=16.0.0"

src/client/webauthn.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,6 @@ export class WebAuthnClient {
142142
}
143143

144144
private stringToBuffer(str: string): ArrayBuffer {
145-
return new TextEncoder().encode(str);
145+
return new TextEncoder().encode(str).buffer;
146146
}
147147
}

0 commit comments

Comments
 (0)