Skip to content

Commit 2863f9d

Browse files
authored
🤖 Merge PR DefinitelyTyped#74254 node/process: add excludeEnv option to diagnostic report configuration by @y-hsgw
1 parent 605212b commit 2863f9d

5 files changed

Lines changed: 17 additions & 0 deletions

File tree

‎types/node/process.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,11 @@ declare module "node:process" {
594594
* @default false
595595
*/
596596
reportOnUncaughtException: boolean;
597+
/**
598+
* If true, a diagnostic report is generated without the environment variables.
599+
* @default false
600+
*/
601+
excludeEnv: boolean;
597602
/**
598603
* The signal used to trigger the creation of a diagnostic report.
599604
* @default 'SIGUSR2'

‎types/node/v22/process.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -474,6 +474,11 @@ declare module "process" {
474474
* @default false
475475
*/
476476
reportOnUncaughtException: boolean;
477+
/**
478+
* If true, a diagnostic report is generated without the environment variables.
479+
* @default false
480+
*/
481+
excludeEnv: boolean;
477482
/**
478483
* The signal used to trigger the creation of a diagnostic report.
479484
* @default 'SIGUSR2'

‎types/node/v22/test/process.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ import { fileURLToPath } from "node:url";
6868
report.reportOnFatalError = true;
6969
report.reportOnSignal = true;
7070
report.reportOnUncaughtException = true;
71+
report.excludeEnv = true;
7172
report.signal = "SIGINT";
7273
let dest = report.writeReport("asdasd", new Error());
7374
dest = report.writeReport("asdasd");

‎types/node/v24/process.d.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ declare module "process" {
472472
* @default false
473473
*/
474474
reportOnUncaughtException: boolean;
475+
/**
476+
* If true, a diagnostic report is generated without the environment variables.
477+
* @default false
478+
*/
479+
excludeEnv: boolean;
475480
/**
476481
* The signal used to trigger the creation of a diagnostic report.
477482
* @default 'SIGUSR2'

‎types/node/v24/test/process.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ import { fileURLToPath } from "node:url";
6868
report.reportOnFatalError = true;
6969
report.reportOnSignal = true;
7070
report.reportOnUncaughtException = true;
71+
report.excludeEnv = true;
7172
report.signal = "SIGINT";
7273
let dest = report.writeReport("asdasd", new Error());
7374
dest = report.writeReport("asdasd");

0 commit comments

Comments
 (0)