@types/node
Advanced tools
+18
-2
@@ -228,3 +228,3 @@ /** | ||
| */ | ||
| load?: LoadHook | undefined; | ||
| load?: LoadHookSync | undefined; | ||
| /** | ||
@@ -234,3 +234,3 @@ * See [resolve hook](https://nodejs.org/docs/latest-v22.x/api/module.html#resolvespecifier-context-nextresolve). | ||
| */ | ||
| resolve?: ResolveHook | undefined; | ||
| resolve?: ResolveHookSync | undefined; | ||
| } | ||
@@ -434,2 +434,10 @@ interface ModuleHooks { | ||
| ) => ResolveFnOutput | Promise<ResolveFnOutput>; | ||
| type ResolveHookSync = ( | ||
| specifier: string, | ||
| context: ResolveHookContext, | ||
| nextResolve: ( | ||
| specifier: string, | ||
| context?: Partial<ResolveHookContext>, | ||
| ) => ResolveFnOutput, | ||
| ) => ResolveFnOutput; | ||
| interface LoadHookContext { | ||
@@ -474,2 +482,10 @@ /** | ||
| ) => LoadFnOutput | Promise<LoadFnOutput>; | ||
| type LoadHookSync = ( | ||
| url: string, | ||
| context: LoadHookContext, | ||
| nextLoad: ( | ||
| url: string, | ||
| context?: Partial<LoadHookContext>, | ||
| ) => LoadFnOutput, | ||
| ) => LoadFnOutput; | ||
| /** | ||
@@ -476,0 +492,0 @@ * `path` is the resolved path for the file for which a corresponding source map |
| { | ||
| "name": "@types/node", | ||
| "version": "22.15.22", | ||
| "version": "22.15.23", | ||
| "description": "TypeScript definitions for node", | ||
@@ -223,4 +223,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "9dfe7a25be073d9a58330259517f55bb6e2172c83e0a85a82cbb2753c16d93f9", | ||
| "typesPublisherContentHash": "3844c0b84003a1c9382712245a57b4124212f8132db577606add964efd038ea4", | ||
| "typeScriptVersion": "5.1" | ||
| } |
+1
-1
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Tue, 27 May 2025 17:34:27 GMT | ||
| * Last updated: Tue, 27 May 2025 18:40:40 GMT | ||
| * Dependencies: [undici-types](https://npmjs.com/package/undici-types) | ||
@@ -14,0 +14,0 @@ |
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
2355432
0.02%52176
0.03%