build: update @types/node to 16.11.7

Node.js 14 is no longer supported.
This commit is contained in:
Alan Agius 2023-05-17 13:57:47 +00:00 committed by Alan Agius
parent 78547f6b01
commit 77f21c1ba1
10 changed files with 14 additions and 18 deletions

View File

@ -4,8 +4,6 @@
```ts
/// <reference types="node" />
import { BaseException } from '@angular-devkit/core';
import { JsonValue } from '@angular-devkit/core';
import { logging } from '@angular-devkit/core';

View File

@ -4,8 +4,6 @@
```ts
/// <reference types="node" />
import { JsonValue } from '@angular-devkit/core';
import { logging } from '@angular-devkit/core';
import { Observable } from 'rxjs';

View File

@ -4,8 +4,6 @@
```ts
/// <reference types="node" />
import { BaseException } from '@angular-devkit/core';
import { JsonObject } from '@angular-devkit/core';
import { JsonValue } from '@angular-devkit/core';

View File

@ -108,7 +108,7 @@
"@types/karma": "^6.3.0",
"@types/less": "^3.0.3",
"@types/loader-utils": "^2.0.0",
"@types/node": "^14.15.0",
"@types/node": "^16.11.7",
"@types/node-fetch": "^2.1.6",
"@types/npm-package-arg": "^6.1.0",
"@types/pacote": "^11.1.3",

View File

@ -59,11 +59,13 @@ export class LocalMonitoredProcess implements MonitoredProcess {
map((statsByProcess) => {
// Ignore the spawned shell in the total process number.
const pids = Object.keys(statsByProcess).filter(
(pid) => pid != childProcess.pid.toString(),
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
(pid) => pid != childProcess.pid!.toString(),
);
const processes = pids.length;
// We want most stats from the parent process.
const { pid, ppid, ctime, elapsed, timestamp } = statsByProcess[childProcess.pid];
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
const { pid, ppid, ctime, elapsed, timestamp } = statsByProcess[childProcess.pid!];
// CPU and memory should be agreggated.
let cpu = 0;

View File

@ -18,7 +18,7 @@
"typescript": "~5.0.2"
},
"devDependencies": {
"@types/node": "^14.15.0",
"@types/node": "^16.11.7",
"@types/jasmine": "~4.3.0",
"jasmine": "^4.0.0"
}

View File

@ -18,7 +18,7 @@
"typescript": "~5.0.2"
},
"devDependencies": {
"@types/node": "^14.15.0",
"@types/node": "^16.11.7",
"@types/jasmine": "~4.3.0",
"jasmine": "~4.6.0"
}

View File

@ -4,7 +4,7 @@
"private": true,
"dependencies": {
"@types/jasmine": "~4.3.0",
"@types/node": "^14.15.0",
"@types/node": "^16.11.7",
"jasmine-core": "~4.6.0",
"jasmine-spec-reporter": "~7.0.0",
"karma-chrome-launcher": "~3.2.0",

View File

@ -236,13 +236,13 @@ export async function killAllProcesses(signal = 'SIGTERM'): Promise<void> {
while (_processes.length) {
const childProc = _processes.pop();
if (!childProc) {
if (!childProc || childProc.pid === undefined) {
continue;
}
processesToKill.push(
new Promise<void>((resolve) => {
treeKill(childProc.pid, signal, () => {
treeKill(childProc.pid!, signal, () => {
// Ignore all errors.
// This is due to a race condition with the `waitForMatch` logic.
// where promises are resolved on matches and not when the process terminates.

View File

@ -3289,10 +3289,10 @@
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.60.tgz#35f3d6213daed95da7f0f73e75bcc6980e90597b"
integrity sha512-F0KIgDJfy2nA3zMLmWGKxcH2ZVEtCZXHHdOQs2gSaQ27+lNeEfGxzkIw90aXswATX7AZ33tahPbzy6KAfUreVw==
"@types/node@^14.15.0":
version "14.18.44"
resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.44.tgz#1d42ba325c5b434ee78437378ef0b7589f32c151"
integrity sha512-Sg79dXC3jrRlG0QOLrK5eq2hRzpU4pkD7xBiYNYJ6r9OitJMxkpTpWf6m3qa2AWzb76uMHx+6x5T1Y/WAiS3nw==
"@types/node@^16.11.7":
version "16.18.31"
resolved "https://registry.yarnpkg.com/@types/node/-/node-16.18.31.tgz#7de39c2b9363f0d95b129cc969fcbf98e870251c"
integrity sha512-KPXltf4z4g517OlVJO9XQ2357CYw7fvuJ3ZuBynjXC5Jos9i+K7LvFb7bUIwtJXSZj0vTp9Q6NJBSQpkwwO8Zw==
"@types/npm-package-arg@*", "@types/npm-package-arg@^6.1.0":
version "6.1.1"