diff --git a/functions-templates/typescript/hello-world/package-lock.json b/functions-templates/typescript/hello-world/package-lock.json index a4f4d348dd2..334e7fcdc3d 100644 --- a/functions-templates/typescript/hello-world/package-lock.json +++ b/functions-templates/typescript/hello-world/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "dependencies": { "@netlify/functions": "^2.7.0", - "@types/node": "^14.0.0", + "@types/node": "^20.0.0", "typescript": "^4.0.0" } }, @@ -301,9 +301,12 @@ } }, "node_modules/@types/node": { - "version": "14.18.63", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", - "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "dependencies": { + "undici-types": "~5.26.4" + } }, "node_modules/lodash.merge": { "version": "4.6.2", @@ -322,6 +325,11 @@ "node": ">=4.2.0" } }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "node_modules/urlpattern-polyfill": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", @@ -516,9 +524,12 @@ "integrity": "sha512-yL0jI6Ltuz8R+Opj7jClGrul6pOoYrdfVmzQS4SITXRPH7I5IRZbrwe/6/v8v4WYMa6MYZG480S1+uc/IGfqsA==" }, "@types/node": { - "version": "14.18.63", - "resolved": "https://registry.npmjs.org/@types/node/-/node-14.18.63.tgz", - "integrity": "sha512-fAtCfv4jJg+ExtXhvCkCqUKZ+4ok/JQk01qDKhL5BDDoS3AxKXhV5/MAVUZyQnSEd2GT92fkgZl0pz0Q0AzcIQ==" + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", + "requires": { + "undici-types": "~5.26.4" + } }, "lodash.merge": { "version": "4.6.2", @@ -530,6 +541,11 @@ "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==" }, + "undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, "urlpattern-polyfill": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/urlpattern-polyfill/-/urlpattern-polyfill-8.0.2.tgz", diff --git a/functions-templates/typescript/hello-world/package.json b/functions-templates/typescript/hello-world/package.json index acd9edf146c..3b79cfb9cf4 100644 --- a/functions-templates/typescript/hello-world/package.json +++ b/functions-templates/typescript/hello-world/package.json @@ -15,7 +15,7 @@ "license": "MIT", "dependencies": { "@netlify/functions": "^2.7.0", - "@types/node": "^14.0.0", + "@types/node": "^20.0.0", "typescript": "^4.0.0" } } diff --git a/functions-templates/typescript/scheduled-function/package.json b/functions-templates/typescript/scheduled-function/package.json index 3e8cbf0ba6e..a3334384899 100644 --- a/functions-templates/typescript/scheduled-function/package.json +++ b/functions-templates/typescript/scheduled-function/package.json @@ -16,7 +16,7 @@ "license": "MIT", "dependencies": { "@netlify/functions": "^2.7.0", - "@types/node": "^18.0.0", + "@types/node": "^20.0.0", "typescript": "^4.5.5" } } diff --git a/package-lock.json b/package-lock.json index 7a41499db10..b01f2cb2a65 100644 --- a/package-lock.json +++ b/package-lock.json @@ -135,7 +135,7 @@ "@types/fs-extra": "11.0.4", "@types/inquirer": "9.0.7", "@types/jsonwebtoken": "9.0.6", - "@types/node": "20.9.0", + "@types/node": "20.12.12", "@types/node-fetch": "2.6.11", "@types/parse-gitignore": "1.0.2", "@types/prettyjson": "0.0.33", @@ -6348,9 +6348,9 @@ "dev": true }, "node_modules/@types/node": { - "version": "20.9.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.0.tgz", - "integrity": "sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==", + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", "dependencies": { "undici-types": "~5.26.4" } @@ -29204,9 +29204,9 @@ "dev": true }, "@types/node": { - "version": "20.9.0", - "resolved": "https://registry.npmjs.org/@types/node/-/node-20.9.0.tgz", - "integrity": "sha512-nekiGu2NDb1BcVofVcEKMIwzlx4NjHlcjhoxxKBNLtz15Y1z7MYf549DFvkHSId02Ax6kGwWntIBPC3l/JZcmw==", + "version": "20.12.12", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.12.tgz", + "integrity": "sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==", "requires": { "undici-types": "~5.26.4" } diff --git a/package.json b/package.json index 8c954aa6dbd..a934a2003c7 100644 --- a/package.json +++ b/package.json @@ -191,7 +191,7 @@ "@types/fs-extra": "11.0.4", "@types/inquirer": "9.0.7", "@types/jsonwebtoken": "9.0.6", - "@types/node": "20.9.0", + "@types/node": "20.12.12", "@types/node-fetch": "2.6.11", "@types/parse-gitignore": "1.0.2", "@types/prettyjson": "0.0.33", diff --git a/src/utils/live-tunnel.ts b/src/utils/live-tunnel.ts index 76a1609d381..e4a7a00c637 100644 --- a/src/utils/live-tunnel.ts +++ b/src/utils/live-tunnel.ts @@ -62,7 +62,6 @@ const connectTunnel = function ({ localPort, netlifyApiToken, session }) { } const ps = execa(execPath, args, { stdio: 'inherit' }) - // @ts-expect-error TS(7006) FIXME: Parameter 'code' implicitly has an 'any' type. ps.on('close', (code) => process.exit(code)) ps.on('SIGINT', process.exit) ps.on('SIGTERM', process.exit)