Socket
Socket
Sign inDemoInstall

@types/node

Package Overview
Dependencies
Maintainers
1
Versions
1894
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/node - npm Package Compare versions

Comparing version 18.19.42 to 18.19.43

4

node v18.19/package.json
{
"name": "@types/node",
"version": "18.19.42",
"version": "18.19.43",
"description": "TypeScript definitions for node",

@@ -220,4 +220,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",

},
"typesPublisherContentHash": "8dd150d0686e4e022db7d50eb68cff47831cd0928d268895f5ec68389bdf193e",
"typesPublisherContentHash": "7822f2e7f22f7070d22af915d93cb6dc4dcdf3e8a784cab073ce5b99d8a6f6bd",
"typeScriptVersion": "4.8"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Tue, 23 Jul 2024 18:09:25 GMT
* Last updated: Fri, 02 Aug 2024 08:37:31 GMT
* Dependencies: [undici-types](https://npmjs.com/package/undici-types)

@@ -14,0 +14,0 @@

@@ -6,3 +6,2 @@ /**

declare module "node:test" {
import { AsyncResource } from "node:async_hooks";
/**

@@ -208,3 +207,3 @@ * Programmatically start the test runner.

*/
testNamePatterns?: string | RegExp | string[] | RegExp[];
testNamePatterns?: string | RegExp | ReadonlyArray<string | RegExp> | undefined;
/**

@@ -214,7 +213,7 @@ * If truthy, the test context will only run tests that have the `only` option set

*/
only?: boolean;
only?: boolean | undefined;
/**
* A function that accepts the TestsStream instance and can be used to setup listeners before any tests are run.
*/
setup?: (root: Test) => void | Promise<void>;
setup?: ((reporter: TestsStream) => void | Promise<void>) | undefined;
/**

@@ -232,11 +231,2 @@ * Whether to run in watch mode or not.

}
class Test extends AsyncResource {
concurrency: number;
nesting: number;
only: boolean;
reporter: TestsStream;
runOnlySubtests: boolean;
testNumber: number;
timeout: number | null;
}

@@ -250,3 +240,6 @@ /**

interface TestsStream extends NodeJS.ReadableStream {
addListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
addListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
addListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
addListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
addListener(event: "test:fail", listener: (data: TestFail) => void): this;

@@ -258,4 +251,8 @@ addListener(event: "test:pass", listener: (data: TestPass) => void): this;

addListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
addListener(event: "test:watch:drained", listener: () => void): this;
addListener(event: string, listener: (...args: any[]) => void): this;
emit(event: "test:coverage", data: TestCoverage): boolean;
emit(event: "test:dequeue", data: TestDequeue): boolean;
emit(event: "test:diagnostic", data: DiagnosticData): boolean;
emit(event: "test:enqueue", data: TestEnqueue): boolean;
emit(event: "test:fail", data: TestFail): boolean;

@@ -267,4 +264,8 @@ emit(event: "test:pass", data: TestPass): boolean;

emit(event: "test:stdout", data: TestStdout): boolean;
emit(event: "test:watch:drained"): boolean;
emit(event: string | symbol, ...args: any[]): boolean;
on(event: "test:coverage", listener: (data: TestCoverage) => void): this;
on(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
on(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
on(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
on(event: "test:fail", listener: (data: TestFail) => void): this;

@@ -276,4 +277,8 @@ on(event: "test:pass", listener: (data: TestPass) => void): this;

on(event: "test:stdout", listener: (data: TestStdout) => void): this;
on(event: "test:watch:drained", listener: () => void): this;
on(event: string, listener: (...args: any[]) => void): this;
once(event: "test:coverage", listener: (data: TestCoverage) => void): this;
once(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
once(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
once(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
once(event: "test:fail", listener: (data: TestFail) => void): this;

@@ -285,4 +290,8 @@ once(event: "test:pass", listener: (data: TestPass) => void): this;

once(event: "test:stdout", listener: (data: TestStdout) => void): this;
once(event: "test:watch:drained", listener: () => void): this;
once(event: string, listener: (...args: any[]) => void): this;
prependListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
prependListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
prependListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
prependListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
prependListener(event: "test:fail", listener: (data: TestFail) => void): this;

@@ -294,4 +303,8 @@ prependListener(event: "test:pass", listener: (data: TestPass) => void): this;

prependListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
prependListener(event: "test:watch:drained", listener: () => void): this;
prependListener(event: string, listener: (...args: any[]) => void): this;
prependOnceListener(event: "test:coverage", listener: (data: TestCoverage) => void): this;
prependOnceListener(event: "test:dequeue", listener: (data: TestDequeue) => void): this;
prependOnceListener(event: "test:diagnostic", listener: (data: DiagnosticData) => void): this;
prependOnceListener(event: "test:enqueue", listener: (data: TestEnqueue) => void): this;
prependOnceListener(event: "test:fail", listener: (data: TestFail) => void): this;

@@ -303,2 +316,3 @@ prependOnceListener(event: "test:pass", listener: (data: TestPass) => void): this;

prependOnceListener(event: "test:stdout", listener: (data: TestStdout) => void): this;
prependOnceListener(event: "test:watch:drained", listener: () => void): this;
prependOnceListener(event: string, listener: (...args: any[]) => void): this;

@@ -766,2 +780,3 @@ }

}
type Timer = "setInterval" | "clearInterval" | "setTimeout" | "clearTimeout";

@@ -916,2 +931,5 @@ /**

interface TestError extends Error {
cause: Error;
}
interface TestLocationInfo {

@@ -943,2 +961,129 @@ /**

}
interface TestCoverage {
/**
* An object containing the coverage report.
*/
summary: {
/**
* An array of coverage reports for individual files.
*/
files: Array<{
/**
* The absolute path of the file.
*/
path: string;
/**
* The total number of lines.
*/
totalLineCount: number;
/**
* The total number of branches.
*/
totalBranchCount: number;
/**
* The total number of functions.
*/
totalFunctionCount: number;
/**
* The number of covered lines.
*/
coveredLineCount: number;
/**
* The number of covered branches.
*/
coveredBranchCount: number;
/**
* The number of covered functions.
*/
coveredFunctionCount: number;
/**
* The percentage of lines covered.
*/
coveredLinePercent: number;
/**
* The percentage of branches covered.
*/
coveredBranchPercent: number;
/**
* The percentage of functions covered.
*/
coveredFunctionPercent: number;
/**
* An array of integers representing line numbers that are uncovered.
*/
uncoveredLineNumbers: number[];
}>;
/**
* An object containing a summary of coverage for all files.
*/
totals: {
/**
* The total number of lines.
*/
totalLineCount: number;
/**
* The total number of branches.
*/
totalBranchCount: number;
/**
* The total number of functions.
*/
totalFunctionCount: number;
/**
* The number of covered lines.
*/
coveredLineCount: number;
/**
* The number of covered branches.
*/
coveredBranchCount: number;
/**
* The number of covered functions.
*/
coveredFunctionCount: number;
/**
* The percentage of lines covered.
*/
coveredLinePercent: number;
/**
* The percentage of branches covered.
*/
coveredBranchPercent: number;
/**
* The percentage of functions covered.
*/
coveredFunctionPercent: number;
};
/**
* The working directory when code coverage began. This
* is useful for displaying relative path names in case
* the tests changed the working directory of the Node.js process.
*/
workingDirectory: string;
};
/**
* The nesting level of the test.
*/
nesting: number;
}
interface TestDequeue extends TestLocationInfo {
/**
* The test name
*/
name: string;
/**
* The nesting level of the test.
*/
nesting: number;
}
interface TestEnqueue extends TestLocationInfo {
/**
* The test name
*/
name: string;
/**
* The nesting level of the test.
*/
nesting: number;
}
interface TestFail extends TestLocationInfo {

@@ -956,3 +1101,3 @@ /**

*/
error: Error;
error: TestError;
/**

@@ -1053,22 +1198,2 @@ * The type of the test, used to denote whether this is a suite.

}
interface TestEnqueue extends TestLocationInfo {
/**
* The test name
*/
name: string;
/**
* The nesting level of the test.
*/
nesting: number;
}
interface TestDequeue extends TestLocationInfo {
/**
* The test name
*/
name: string;
/**
* The nesting level of the test.
*/
nesting: number;
}

@@ -1096,3 +1221,6 @@ /**

type TestEvent =
| { type: "test:coverage"; data: TestCoverage }
| { type: "test:dequeue"; data: TestDequeue }
| { type: "test:diagnostic"; data: DiagnosticData }
| { type: "test:enqueue"; data: TestEnqueue }
| { type: "test:fail"; data: TestFail }

@@ -1104,5 +1232,3 @@ | { type: "test:pass"; data: TestPass }

| { type: "test:stdout"; data: TestStdout }
| { type: "test:enqueue"; data: TestEnqueue }
| { type: "test:dequeue"; data: TestDequeue }
| { type: "test:watch:drained" };
| { type: "test:watch:drained"; data: undefined };
type TestEventGenerator = AsyncGenerator<TestEvent, void>;

@@ -1109,0 +1235,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc