diff --git a/package-lock.json b/package-lock.json index 29c2d568746ee6..ed6a495c2640a0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,6 +15,7 @@ "@jazzer.js/core": "^2.1.0", "@metalsmith/layouts": "^2.7.0", "@metalsmith/markdown": "^1.10.0", + "@types/node": "^22.8.7", "autoprefixer": "^10.4.20", "babel-loader": "^9.2.1", "caniuse-lite": "^1.0.30001677", @@ -2468,10 +2469,14 @@ "dev": true }, "node_modules/@types/node": { - "version": "14.14.45", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.14.45.tgz", - "integrity": "sha512-DssMqTV9UnnoxDWu959sDLZzfvqCF0qDNRjaWeYSui9xkFe61kKo4l1TWNTQONpuXEm+gLMRvdlzvNHBamzmEw==", - "dev": true + "version": "22.8.7", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.8.7.tgz", + "integrity": "sha512-LidcG+2UeYIWcMuMUpBKOnryBWG/rnmOHQR5apjn8myTQcx3rinFRn7DcIFhMnS0PPFSC6OafdIKEad0lj6U0Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "undici-types": "~6.19.8" + } }, "node_modules/@types/normalize-package-data": { "version": "2.4.0", @@ -13513,6 +13518,13 @@ "node": ">=18.17" } }, + "node_modules/undici-types": { + "version": "6.19.8", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.19.8.tgz", + "integrity": "sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==", + "dev": true, + "license": "MIT" + }, "node_modules/unicode-canonical-property-names-ecmascript": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", diff --git a/package.json b/package.json index e71495f40d4b8e..fed5d09c91a7c9 100644 --- a/package.json +++ b/package.json @@ -10,6 +10,7 @@ "@jazzer.js/core": "^2.1.0", "@metalsmith/layouts": "^2.7.0", "@metalsmith/markdown": "^1.10.0", + "@types/node": "^22.8.7", "autoprefixer": "^10.4.20", "babel-loader": "^9.2.1", "caniuse-lite": "^1.0.30001677", diff --git a/test/types/tsconfig.json b/test/types/tsconfig.json index 5cd8ef4507e206..772a382c71e4d4 100644 --- a/test/types/tsconfig.json +++ b/test/types/tsconfig.json @@ -10,7 +10,7 @@ "module": "ESNext", "baseUrl": "./", "strict": true, - "types": [], + "types": ["node"], "lib": ["ESNext", "DOM"], "paths": { "pdfjs-dist": ["../../build/typestest"],