diff --git a/package.json b/package.json index 8ad7c38f3..5fd9e89cd 100644 --- a/package.json +++ b/package.json @@ -113,7 +113,7 @@ "standard-version": "9.5.0", "supertest": "6.3.3", "ts-node": "10.9.2", - "typescript": "5.2.2", + "typescript": "5.3.3", "verdaccio-auth-memory": "10.2.2", "verdaccio-memory": "10.3.2" }, diff --git a/src/lib/bootstrap.ts b/src/lib/bootstrap.ts index fc99a5229..4107cd937 100644 --- a/src/lib/bootstrap.ts +++ b/src/lib/bootstrap.ts @@ -7,7 +7,7 @@ import https from 'https'; import { assign, isFunction, isObject } from 'lodash'; import URL from 'url'; -import { Callback, ConfigWithHttps, HttpsConfKeyCert, HttpsConfPfx } from '@verdaccio/types'; +import { Callback, ConfigYaml, HttpsConfKeyCert, HttpsConfPfx } from '@verdaccio/types'; import endPointAPI from '../api/index'; import { getListListenAddresses, resolveConfigPath } from './cli/utils'; @@ -39,7 +39,7 @@ function displayExperimentsInfoBox(experiments) { * @deprecated use runServer instead */ function startVerdaccio( - config: any, + config: ConfigYaml, cliListen: string, configPath: string, pkgVersion: string, @@ -69,11 +69,7 @@ function startVerdaccio( // http webServer = http.createServer(app); } - if ( - config.server && - typeof config.server.keepAliveTimeout !== 'undefined' && - config.server.keepAliveTimeout !== 'null' - ) { + if (typeof config?.server?.keepAliveTimeout === 'number') { // library definition for node is not up to date (doesn't contain recent 8.0 changes) webServer.keepAliveTimeout = config.server.keepAliveTimeout * 1000; } @@ -124,7 +120,7 @@ function logHTTPSWarning(storageLocation) { function handleHTTPS( app: express.Application, configPath: string, - config: ConfigWithHttps + config: ConfigYaml ): https.Server { try { let httpsOptions = { diff --git a/yarn.lock b/yarn.lock index 45be235a2..7aa726e53 100644 --- a/yarn.lock +++ b/yarn.lock @@ -11316,23 +11316,23 @@ __metadata: languageName: node linkType: hard -"typescript@npm:5.2.2": - version: 5.2.2 - resolution: "typescript@npm:5.2.2" +"typescript@npm:5.3.3": + version: 5.3.3 + resolution: "typescript@npm:5.3.3" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: d65e50eb849bd21ff8677e5b9447f9c6e74777e346afd67754934264dcbf4bd59e7d2473f6062d9a015d66bd573311166357e3eb07fea0b52859cf9bb2b58555 + checksum: 6e4e6a14a50c222b3d14d4ea2f729e79f972fa536ac1522b91202a9a65af3605c2928c4a790a4a50aa13694d461c479ba92cedaeb1e7b190aadaa4e4b96b8e18 languageName: node linkType: hard -"typescript@patch:typescript@npm%3A5.2.2#optional!builtin": - version: 5.2.2 - resolution: "typescript@patch:typescript@npm%3A5.2.2#optional!builtin::version=5.2.2&hash=f3b441" +"typescript@patch:typescript@npm%3A5.3.3#optional!builtin": + version: 5.3.3 + resolution: "typescript@patch:typescript@npm%3A5.3.3#optional!builtin::version=5.3.3&hash=e012d7" bin: tsc: bin/tsc tsserver: bin/tsserver - checksum: f79cc2ba802c94c2b78dbb00d767a10adb67368ae764709737dc277273ec148aa4558033a03ce901406b35fddf4eac46dabc94a1e1d12d2587e2b9cfe5707b4a + checksum: c93786fcc9a70718ba1e3819bab56064ead5817004d1b8186f8ca66165f3a2d0100fee91fa64c840dcd45f994ca5d615d8e1f566d39a7470fc1e014dbb4cf15d languageName: node linkType: hard @@ -11722,7 +11722,7 @@ __metadata: standard-version: "npm:9.5.0" supertest: "npm:6.3.3" ts-node: "npm:10.9.2" - typescript: "npm:5.2.2" + typescript: "npm:5.3.3" validator: "npm:13.11.0" verdaccio-audit: "npm:12.0.0-next.4" verdaccio-auth-memory: "npm:10.2.2"