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:
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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