mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
build(deps-dev): Update typescript & @types/node (#4325)
Co-authored-by: Link <link20050703@gmail.com>
This commit is contained in:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user