chore(deps): update @types/node to v18

Fixed the type of `fs.watch`, which may pass to `null` for the callback
(DefinitelyTyped/DefinitelyTyped#65505).

Removed `WritableStream` type, since its events don't match `busboy`
anymore (DefinitelyTyped/DefinitelyTyped#68313).
This commit is contained in:
Tiago de Paula 2025-10-26 18:41:01 -03:00
commit ff6136cd6a
No known key found for this signature in database
GPG key ID: 55BD118E42C985CF
4 changed files with 14 additions and 7 deletions

View file

@ -105,7 +105,7 @@
"@types/mime-types": "^3.0.1",
"@types/mocha": "^10.0.10",
"@types/mousetrap": "^1.6.15",
"@types/node": "^17.0.45",
"@types/node": "^18.19.130",
"@types/node-forge": "^1.3.14",
"@types/read": "^0.0.32",
"@types/semver": "^7.7.1",

View file

@ -87,7 +87,7 @@ class ClientManager {
autoloadUsers() {
fs.watch(Config.getUsersPath(), (_eventType, file) => {
if (!file.endsWith(".json")) {
if (!file?.endsWith(".json")) {
return;
}

View file

@ -132,7 +132,7 @@ class Uploader {
}
static routeUploadFile(this: void, req: Request, res: Response) {
let busboyInstance: NodeJS.WritableStream | busboy | null | undefined;
let busboyInstance: busboy | null | undefined;
let uploadUrl: string | URL;
let randomName: string;
let destDir: fs.PathLike;

View file

@ -1952,10 +1952,12 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.63.tgz#1788fa8da838dbb5f9ea994b834278205db6ca2b"
integrity sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==
"@types/node@^17.0.45":
version "17.0.45"
resolved "https://registry.yarnpkg.com/@types/node/-/node-17.0.45.tgz#2c0fafd78705e7a18b7906b5201a522719dc5190"
integrity sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==
"@types/node@^18.19.130":
version "18.19.130"
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.19.130.tgz#da4c6324793a79defb7a62cba3947ec5add00d59"
integrity sha512-GRaXQx6jGfL8sKfaIDD6OupbIHBr9jv7Jnaml9tB7l4v068PAOXqfcujMMo5PhbIs6ggR1XODELqahT2R8v0fg==
dependencies:
undici-types "~5.26.4"
"@types/normalize-package-data@^2.4.0":
version "2.4.4"
@ -8176,6 +8178,11 @@ undate@^0.3.0:
resolved "https://registry.yarnpkg.com/undate/-/undate-0.3.0.tgz#cbf6b1f179d69ace7393e6d92400c3afdf43d140"
integrity sha512-ssH8QTNBY6B+2fRr3stSQ+9m2NT8qTaun3ExTx5ibzYQvP7yX4+BnX0McNxFCvh6S5ia/DYu6bsCKQx/U4nb/Q==
undici-types@~5.26.4:
version "5.26.5"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
undici-types@~7.16.0:
version "7.16.0"
resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-7.16.0.tgz#ffccdff36aea4884cbfce9a750a0580224f58a46"