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
@@ -35,9 +35,9 @@
"@swc/cli": "^0.7.8",
"@swc/core": "^1.13.3",
"@types/benchmark": "^2.1.5",
"@types/node": "^24.1.0",
"@types/node": "^24.2.1",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
}
}
+2 -2
View File
@@ -44,7 +44,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",
@@ -52,6 +52,6 @@
"sinon": "^21.0.0",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
}
}
+2 -2
View File
@@ -44,12 +44,12 @@
"@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",
"c8": "^10.1.3",
"chai": "^5.2.1",
"mocha": "patch:mocha@npm%3A11.0.2#~/.yarn/patches/mocha-npm-11.0.2-b5d6b95284.patch",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
}
}
+2 -2
View File
@@ -46,7 +46,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",
"@types/ws": "^8.18.1",
"c8": "^10.1.3",
@@ -55,6 +55,6 @@
"sinon": "^21.0.0",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
}
}
+2 -2
View File
@@ -43,7 +43,7 @@
"@types/chai": "^5.2.2",
"@types/chai-as-promised": "^8.0.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",
@@ -53,6 +53,6 @@
"sinon": "^21.0.0",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
}
}
+2 -2
View File
@@ -35,11 +35,11 @@
"@swc/cli": "^0.7.8",
"@swc/core": "^1.13.3",
"@types/mocha": "^10.0.10",
"@types/node": "^24.1.0",
"@types/node": "^24.2.1",
"c8": "^10.1.3",
"mocha": "patch:mocha@npm%3A11.0.2#~/.yarn/patches/mocha-npm-11.0.2-b5d6b95284.patch",
"ts-node": "^10.9.2",
"tsconfig": "*",
"typescript": "^5.8.3"
"typescript": "^5.9.2"
}
}
+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