@types/node
Advanced tools
+1
-1
@@ -91,3 +91,3 @@ /** | ||
| new( | ||
| options?: AssertOptions & { strict?: true }, | ||
| options?: AssertOptions & { strict?: true | undefined }, | ||
| ): AssertStrict; | ||
@@ -94,0 +94,0 @@ new( |
@@ -484,3 +484,3 @@ /** | ||
| */ | ||
| readonly worker?: Worker | undefined; | ||
| readonly worker?: Worker; | ||
| /** | ||
@@ -501,3 +501,3 @@ * A hash that stores the active worker objects, keyed by `id` field. This makes it easy to loop through all the workers. It is only available in the primary process. | ||
| */ | ||
| readonly workers?: NodeJS.Dict<Worker> | undefined; | ||
| readonly workers?: NodeJS.Dict<Worker>; | ||
| readonly SCHED_NONE: number; | ||
@@ -555,6 +555,5 @@ readonly SCHED_RR: number; | ||
| prependListener(event: "listening", listener: (worker: Worker, address: Address) => void): this; | ||
| // the handle is a net.Socket or net.Server object, or undefined. | ||
| prependListener( | ||
| event: "message", | ||
| listener: (worker: Worker, message: any, handle?: net.Socket | net.Server) => void, | ||
| listener: (worker: Worker, message: any, handle: net.Socket | net.Server) => void, | ||
| ): this; | ||
@@ -561,0 +560,0 @@ prependListener(event: "online", listener: (worker: Worker) => void): this; |
+1
-1
@@ -832,3 +832,3 @@ /** | ||
| */ | ||
| tries?: number; | ||
| tries?: number | undefined; | ||
| /** | ||
@@ -835,0 +835,0 @@ * The max retry timeout, in milliseconds. |
+1
-1
@@ -487,3 +487,3 @@ /** | ||
| */ | ||
| name?: string; | ||
| name?: string | undefined; | ||
| } | ||
@@ -490,0 +490,0 @@ |
+9
-12
@@ -11,16 +11,13 @@ /** | ||
| import { URL } from "node:url"; | ||
| type ServerOptions< | ||
| interface ServerOptions< | ||
| Request extends typeof http.IncomingMessage = typeof http.IncomingMessage, | ||
| Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse, | ||
| > = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>; | ||
| type RequestOptions = | ||
| & http.RequestOptions | ||
| & tls.SecureContextOptions | ||
| & { | ||
| checkServerIdentity?: | ||
| | ((hostname: string, cert: tls.DetailedPeerCertificate) => Error | undefined) | ||
| | undefined; | ||
| rejectUnauthorized?: boolean | undefined; // Defaults to true | ||
| servername?: string | undefined; // SNI TLS Extension | ||
| }; | ||
| > extends http.ServerOptions<Request, Response>, tls.TlsOptions {} | ||
| interface RequestOptions extends http.RequestOptions, tls.SecureContextOptions { | ||
| checkServerIdentity?: | ||
| | ((hostname: string, cert: tls.DetailedPeerCertificate) => Error | undefined) | ||
| | undefined; | ||
| rejectUnauthorized?: boolean | undefined; // Defaults to true | ||
| servername?: string | undefined; // SNI TLS Extension | ||
| } | ||
| interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions { | ||
@@ -27,0 +24,0 @@ maxCachedSessions?: number | undefined; |
+5
-5
@@ -35,3 +35,3 @@ /** | ||
| writable?: boolean | undefined; | ||
| signal?: AbortSignal; | ||
| signal?: AbortSignal | undefined; | ||
| } | ||
@@ -325,3 +325,3 @@ interface OnReadOpts { | ||
| */ | ||
| readonly remoteAddress?: string | undefined; | ||
| readonly remoteAddress: string | undefined; | ||
| /** | ||
@@ -332,3 +332,3 @@ * The string representation of the remote IP family. `'IPv4'` or `'IPv6'`. Value may be `undefined` if | ||
| */ | ||
| readonly remoteFamily?: string | undefined; | ||
| readonly remoteFamily: string | undefined; | ||
| /** | ||
@@ -339,3 +339,3 @@ * The numeric representation of the remote port. For example, `80` or `21`. Value may be `undefined` if | ||
| */ | ||
| readonly remotePort?: number | undefined; | ||
| readonly remotePort: number | undefined; | ||
| /** | ||
@@ -346,3 +346,3 @@ * The socket timeout in milliseconds as set by `socket.setTimeout()`. | ||
| */ | ||
| readonly timeout?: number | undefined; | ||
| readonly timeout?: number; | ||
| /** | ||
@@ -349,0 +349,0 @@ * Half-closes the socket. i.e., it sends a FIN packet. It is possible the |
+13
-3
@@ -33,6 +33,6 @@ /** | ||
| cidr: string | null; | ||
| scopeid?: number; | ||
| } | ||
| interface NetworkInterfaceInfoIPv4 extends NetworkInterfaceBase { | ||
| family: "IPv4"; | ||
| scopeid?: undefined; | ||
| } | ||
@@ -235,2 +235,11 @@ interface NetworkInterfaceInfoIPv6 extends NetworkInterfaceBase { | ||
| function homedir(): string; | ||
| interface UserInfoOptions { | ||
| encoding?: BufferEncoding | "buffer" | undefined; | ||
| } | ||
| interface UserInfoOptionsWithBufferEncoding extends UserInfoOptions { | ||
| encoding: "buffer"; | ||
| } | ||
| interface UserInfoOptionsWithStringEncoding extends UserInfoOptions { | ||
| encoding?: BufferEncoding | undefined; | ||
| } | ||
| /** | ||
@@ -249,4 +258,5 @@ * Returns information about the currently effective user. On POSIX platforms, | ||
| */ | ||
| function userInfo(options: { encoding: "buffer" }): UserInfo<Buffer>; | ||
| function userInfo(options?: { encoding: BufferEncoding }): UserInfo<string>; | ||
| function userInfo(options: UserInfoOptionsWithBufferEncoding): UserInfo<Buffer>; | ||
| function userInfo(options?: UserInfoOptionsWithStringEncoding): UserInfo<string>; | ||
| function userInfo(options: UserInfoOptions): UserInfo<string | Buffer>; | ||
| type SignalConstants = { | ||
@@ -253,0 +263,0 @@ [key in NodeJS.Signals]: number; |
| { | ||
| "name": "@types/node", | ||
| "version": "24.7.1", | ||
| "version": "24.7.2", | ||
| "description": "TypeScript definitions for node", | ||
@@ -153,4 +153,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "3707c233ea107d992d9f52fba949c67a272356911b6089143bd81b83b0ebb9c3", | ||
| "typesPublisherContentHash": "4bf36d2d52de2aa8898ee24d026198a784567fa5a42adcae5e37b826951ff66d", | ||
| "typeScriptVersion": "5.2" | ||
| } |
@@ -51,3 +51,3 @@ /** | ||
| */ | ||
| readonly kind?: number | undefined; | ||
| readonly kind: number; | ||
| /** | ||
@@ -58,3 +58,3 @@ * When `performanceEntry.entryType` is equal to 'gc', the `performance.flags` | ||
| */ | ||
| readonly flags?: number | undefined; | ||
| readonly flags: number; | ||
| } | ||
@@ -97,7 +97,2 @@ /** | ||
| readonly entryType: EntryType; | ||
| /** | ||
| * Additional detail specific to the `entryType`. | ||
| * @since v16.0.0 | ||
| */ | ||
| readonly detail?: NodeGCPerformanceDetail | unknown | undefined; // TODO: Narrow this based on entry type. | ||
| toJSON(): any; | ||
@@ -110,2 +105,3 @@ } | ||
| class PerformanceMark extends PerformanceEntry { | ||
| readonly detail: any; | ||
| readonly duration: 0; | ||
@@ -121,2 +117,3 @@ readonly entryType: "mark"; | ||
| class PerformanceMeasure extends PerformanceEntry { | ||
| readonly detail: any; | ||
| readonly entryType: "measure"; | ||
@@ -138,2 +135,3 @@ } | ||
| } | ||
| // TODO: PerformanceNodeEntry is missing | ||
| /** | ||
@@ -234,3 +232,3 @@ * _This property is an extension by Node.js. It is not available in Web browsers._ | ||
| */ | ||
| detail?: unknown | undefined; | ||
| detail?: unknown; | ||
| /** | ||
@@ -237,0 +235,0 @@ * Duration between start and end times. |
@@ -67,3 +67,3 @@ /** | ||
| options?: { | ||
| autoCommit?: boolean; | ||
| autoCommit?: boolean | undefined; | ||
| }, | ||
@@ -70,0 +70,0 @@ ); |
+1
-1
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Thu, 09 Oct 2025 17:35:09 GMT | ||
| * Last updated: Sat, 11 Oct 2025 14:02:18 GMT | ||
| * Dependencies: [undici-types](https://npmjs.com/package/undici-types) | ||
@@ -14,0 +14,0 @@ |
+2
-2
@@ -589,3 +589,3 @@ /** | ||
| */ | ||
| pskCallback?(socket: TLSSocket, identity: string): DataView | NodeJS.TypedArray | null; | ||
| pskCallback?: ((socket: TLSSocket, identity: string) => NodeJS.ArrayBufferView | null) | undefined; | ||
| /** | ||
@@ -631,3 +631,3 @@ * hint to send to a client to help | ||
| */ | ||
| pskCallback?(hint: string | null): PSKCallbackNegotation | null; | ||
| pskCallback?: ((hint: string | null) => PSKCallbackNegotation | null) | undefined; | ||
| } | ||
@@ -634,0 +634,0 @@ /** |
+2
-2
@@ -46,3 +46,3 @@ /** | ||
| */ | ||
| exposeInternals?: boolean; | ||
| exposeInternals?: boolean | undefined; | ||
| /** | ||
@@ -52,3 +52,3 @@ * If true, expose numeric values in artificial fields. | ||
| */ | ||
| exposeNumericValues?: boolean; | ||
| exposeNumericValues?: boolean | undefined; | ||
| } | ||
@@ -55,0 +55,0 @@ /** |
+18
-48
@@ -102,7 +102,9 @@ /** | ||
| } | ||
| interface RunningScriptInNewContextOptions extends RunningScriptOptions { | ||
| interface RunningScriptInNewContextOptions | ||
| extends RunningScriptOptions, Pick<CreateContextOptions, "microtaskMode"> | ||
| { | ||
| /** | ||
| * Human-readable name of the newly created context. | ||
| */ | ||
| contextName?: CreateContextOptions["name"]; | ||
| contextName?: CreateContextOptions["name"] | undefined; | ||
| /** | ||
@@ -113,15 +115,7 @@ * Origin corresponding to the newly created context for display purposes. The origin should be formatted like a URL, | ||
| */ | ||
| contextOrigin?: CreateContextOptions["origin"]; | ||
| contextCodeGeneration?: CreateContextOptions["codeGeneration"]; | ||
| /** | ||
| * If set to `afterEvaluate`, microtasks will be run immediately after the script has run. | ||
| */ | ||
| microtaskMode?: CreateContextOptions["microtaskMode"]; | ||
| contextOrigin?: CreateContextOptions["origin"] | undefined; | ||
| contextCodeGeneration?: CreateContextOptions["codeGeneration"] | undefined; | ||
| } | ||
| interface RunningCodeOptions extends RunningScriptOptions { | ||
| interface RunningCodeOptions extends RunningScriptOptions, Pick<ScriptOptions, "cachedData"> { | ||
| /** | ||
| * Provides an optional data with V8's code cache data for the supplied source. | ||
| */ | ||
| cachedData?: ScriptOptions["cachedData"] | undefined; | ||
| /** | ||
| * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is | ||
@@ -137,8 +131,6 @@ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see | ||
| } | ||
| interface RunningCodeInNewContextOptions extends RunningScriptInNewContextOptions { | ||
| interface RunningCodeInNewContextOptions | ||
| extends RunningScriptInNewContextOptions, Pick<ScriptOptions, "cachedData"> | ||
| { | ||
| /** | ||
| * Provides an optional data with V8's code cache data for the supplied source. | ||
| */ | ||
| cachedData?: ScriptOptions["cachedData"] | undefined; | ||
| /** | ||
| * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is | ||
@@ -154,13 +146,4 @@ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see | ||
| } | ||
| interface CompileFunctionOptions extends BaseOptions { | ||
| interface CompileFunctionOptions extends BaseOptions, Pick<ScriptOptions, "cachedData" | "produceCachedData"> { | ||
| /** | ||
| * Provides an optional data with V8's code cache data for the supplied source. | ||
| */ | ||
| cachedData?: ScriptOptions["cachedData"] | undefined; | ||
| /** | ||
| * Specifies whether to produce new cache data. | ||
| * @default false | ||
| */ | ||
| produceCachedData?: boolean | undefined; | ||
| /** | ||
| * The sandbox/context in which the said function should be compiled in. | ||
@@ -393,3 +376,3 @@ */ | ||
| /** @deprecated in favor of `script.createCachedData()` */ | ||
| cachedDataProduced?: boolean | undefined; | ||
| cachedDataProduced?: boolean; | ||
| /** | ||
@@ -401,4 +384,4 @@ * When `cachedData` is supplied to create the `vm.Script`, this value will be set | ||
| */ | ||
| cachedDataRejected?: boolean | undefined; | ||
| cachedData?: Buffer | undefined; | ||
| cachedDataRejected?: boolean; | ||
| cachedData?: Buffer; | ||
| /** | ||
@@ -421,3 +404,3 @@ * When the script is compiled from a source that contains a source map magic | ||
| */ | ||
| sourceMapURL?: string | undefined; | ||
| sourceMapURL: string | undefined; | ||
| } | ||
@@ -632,7 +615,3 @@ /** | ||
| options?: CompileFunctionOptions, | ||
| ): Function & { | ||
| cachedData?: Script["cachedData"] | undefined; | ||
| cachedDataProduced?: Script["cachedDataProduced"] | undefined; | ||
| cachedDataRejected?: Script["cachedDataRejected"] | undefined; | ||
| }; | ||
| ): Function & Pick<Script, "cachedData" | "cachedDataProduced" | "cachedDataRejected">; | ||
| /** | ||
@@ -694,6 +673,3 @@ * Measure the memory known to V8 and used by all contexts known to the | ||
| function measureMemory(options?: MeasureMemoryOptions): Promise<MemoryMeasurement>; | ||
| interface ModuleEvaluateOptions { | ||
| timeout?: RunningScriptOptions["timeout"] | undefined; | ||
| breakOnSigint?: RunningScriptOptions["breakOnSigint"] | undefined; | ||
| } | ||
| interface ModuleEvaluateOptions extends Pick<RunningScriptOptions, "breakOnSigint" | "timeout"> {} | ||
| type ModuleLinker = ( | ||
@@ -897,3 +873,3 @@ specifier: string, | ||
| } | ||
| interface SourceTextModuleOptions { | ||
| interface SourceTextModuleOptions extends Pick<ScriptOptions, "cachedData" | "columnOffset" | "lineOffset"> { | ||
| /** | ||
@@ -904,9 +880,3 @@ * String used in stack traces. | ||
| identifier?: string | undefined; | ||
| /** | ||
| * Provides an optional data with V8's code cache data for the supplied source. | ||
| */ | ||
| cachedData?: ScriptOptions["cachedData"] | undefined; | ||
| context?: Context | undefined; | ||
| lineOffset?: BaseOptions["lineOffset"] | undefined; | ||
| columnOffset?: BaseOptions["columnOffset"] | undefined; | ||
| /** | ||
@@ -913,0 +883,0 @@ * Called during evaluation of this module to initialize the `import.meta`. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 9 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 11 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 9 instances in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Debug access
Supply chain riskUses debug, reflection and dynamic code execution features.
Found 11 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 7 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
2471348
-0.04%54544
-0.05%336
0.3%