build(deps-dev): Update typescript & @types/node (#4325)

Co-authored-by: Link <link20050703@gmail.com>
This commit is contained in:
Fleny
2025-08-22 09:39:52 -07:00
committed by GitHub
co-authored by Link
parent aea991ae29
commit 8996169b9d
12 changed files with 58 additions and 58 deletions
+2 -2
View File
@@ -40,7 +40,7 @@
"@swc/core": "^1.13.3",
"@types/chai": "^5.2.2",
"@types/mocha": "^10.0.10",
"@types/node": "^24.1.0",
"@types/node": "^24.2.1",
"@types/sinon": "^17.0.4",
"c8": "^10.1.3",
"chai": "^5.2.1",
@@ -48,6 +48,6 @@
"sinon": "^21.0.0",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
}
}
+1 -1
View File
@@ -3,7 +3,7 @@
* Encodes a given Uint8Array, ArrayBuffer or string into RFC4648 base64 representation
* @param data
*/
export function encode(data: ArrayBuffer | string): string {
export function encode(data: Uint8Array | ArrayBuffer | string): string {
const uint8 = typeof data === 'string' ? new TextEncoder().encode(data) : data instanceof Uint8Array ? data : new Uint8Array(data)
let result = ''
let i