@types/node
Advanced tools
+18
-19
@@ -253,2 +253,5 @@ /** | ||
| } | ||
| export interface AnyCaaRecord extends CaaRecord { | ||
| type: "CAA"; | ||
| } | ||
| export interface MxRecord { | ||
@@ -321,2 +324,3 @@ priority: number; | ||
| | AnyAaaaRecord | ||
| | AnyCaaRecord | ||
| | AnyCnameRecord | ||
@@ -350,3 +354,3 @@ | AnyMxRecord | ||
| hostname: string, | ||
| rrtype: "A", | ||
| rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", | ||
| callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, | ||
@@ -356,7 +360,2 @@ ): void; | ||
| hostname: string, | ||
| rrtype: "AAAA", | ||
| callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, | ||
| ): void; | ||
| export function resolve( | ||
| hostname: string, | ||
| rrtype: "ANY", | ||
@@ -367,4 +366,4 @@ callback: (err: NodeJS.ErrnoException | null, addresses: AnyRecord[]) => void, | ||
| hostname: string, | ||
| rrtype: "CNAME", | ||
| callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, | ||
| rrtype: "CAA", | ||
| callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void, | ||
| ): void; | ||
@@ -383,12 +382,2 @@ export function resolve( | ||
| hostname: string, | ||
| rrtype: "NS", | ||
| callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, | ||
| ): void; | ||
| export function resolve( | ||
| hostname: string, | ||
| rrtype: "PTR", | ||
| callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, | ||
| ): void; | ||
| export function resolve( | ||
| hostname: string, | ||
| rrtype: "SOA", | ||
@@ -419,2 +408,3 @@ callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void, | ||
| | string[] | ||
| | CaaRecord[] | ||
| | MxRecord[] | ||
@@ -432,2 +422,3 @@ | NaptrRecord[] | ||
| function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>; | ||
| function __promisify__(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>; | ||
| function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>; | ||
@@ -443,3 +434,11 @@ function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>; | ||
| ): Promise< | ||
| string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | TlsaRecord[] | string[][] | AnyRecord[] | ||
| | string[] | ||
| | CaaRecord[] | ||
| | MxRecord[] | ||
| | NaptrRecord[] | ||
| | SoaRecord | ||
| | SrvRecord[] | ||
| | TlsaRecord[] | ||
| | string[][] | ||
| | AnyRecord[] | ||
| >; | ||
@@ -446,0 +445,0 @@ } |
@@ -130,11 +130,7 @@ /** | ||
| function resolve(hostname: string): Promise<string[]>; | ||
| function resolve(hostname: string, rrtype: "A"): Promise<string[]>; | ||
| function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>; | ||
| function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>; | ||
| function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>; | ||
| function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>; | ||
| function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>; | ||
| function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>; | ||
| function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>; | ||
| function resolve(hostname: string, rrtype: "NS"): Promise<string[]>; | ||
| function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>; | ||
| function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>; | ||
@@ -144,7 +140,12 @@ function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>; | ||
| function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>; | ||
| function resolve( | ||
| hostname: string, | ||
| rrtype: string, | ||
| ): Promise< | ||
| string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | TlsaRecord[] | string[][] | AnyRecord[] | ||
| function resolve(hostname: string, rrtype: string): Promise< | ||
| | string[] | ||
| | CaaRecord[] | ||
| | MxRecord[] | ||
| | NaptrRecord[] | ||
| | SoaRecord | ||
| | SrvRecord[] | ||
| | TlsaRecord[] | ||
| | string[][] | ||
| | AnyRecord[] | ||
| >; | ||
@@ -151,0 +152,0 @@ /** |
| { | ||
| "name": "@types/node", | ||
| "version": "22.16.0", | ||
| "version": "22.16.1", | ||
| "description": "TypeScript definitions for node", | ||
@@ -223,4 +223,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "3b4dc3ecaa3f888296eb8b7cb9d14cb24b118c6f2bf065e3344543c6b0359df5", | ||
| "typesPublisherContentHash": "9330dcf33e6f8538db41d4c56b65319f35c2ab636a7ed37d9caaa95e373ea64e", | ||
| "typeScriptVersion": "5.1" | ||
| } |
@@ -11,3 +11,3 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Tue, 01 Jul 2025 20:02:28 GMT | ||
| * Last updated: Tue, 08 Jul 2025 17:03:33 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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
32
-3.03%2385878
-0.02%