@types/node
Advanced tools
+27
-20
@@ -252,2 +252,5 @@ /** | ||
| } | ||
| export interface AnyCaaRecord extends CaaRecord { | ||
| type: "CAA"; | ||
| } | ||
| export interface MxRecord { | ||
@@ -311,2 +314,3 @@ priority: number; | ||
| | AnyAaaaRecord | ||
| | AnyCaaRecord | ||
| | AnyCnameRecord | ||
@@ -339,3 +343,3 @@ | AnyMxRecord | ||
| hostname: string, | ||
| rrtype: "A", | ||
| rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR", | ||
| callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, | ||
@@ -345,7 +349,2 @@ ): void; | ||
| hostname: string, | ||
| rrtype: "AAAA", | ||
| callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void, | ||
| ): void; | ||
| export function resolve( | ||
| hostname: string, | ||
| rrtype: "ANY", | ||
@@ -356,4 +355,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; | ||
@@ -372,12 +371,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", | ||
@@ -401,3 +390,11 @@ callback: (err: NodeJS.ErrnoException | null, addresses: SoaRecord) => void, | ||
| err: NodeJS.ErrnoException | null, | ||
| addresses: string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[], | ||
| addresses: | ||
| | string[] | ||
| | CaaRecord[] | ||
| | MxRecord[] | ||
| | NaptrRecord[] | ||
| | SoaRecord | ||
| | SrvRecord[] | ||
| | string[][] | ||
| | AnyRecord[], | ||
| ) => void, | ||
@@ -408,2 +405,3 @@ ): void; | ||
| function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>; | ||
| function __promisify__(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>; | ||
| function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>; | ||
@@ -417,3 +415,12 @@ function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>; | ||
| rrtype: string, | ||
| ): Promise<string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | string[][] | AnyRecord[]>; | ||
| ): Promise< | ||
| | string[] | ||
| | CaaRecord[] | ||
| | MxRecord[] | ||
| | NaptrRecord[] | ||
| | SoaRecord | ||
| | SrvRecord[] | ||
| | string[][] | ||
| | AnyRecord[] | ||
| >; | ||
| } | ||
@@ -420,0 +427,0 @@ /** |
@@ -129,18 +129,20 @@ /** | ||
| 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>; | ||
| 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[] | string[][] | AnyRecord[]>; | ||
| function resolve(hostname: string, rrtype: string): Promise< | ||
| | string[] | ||
| | CaaRecord[] | ||
| | MxRecord[] | ||
| | NaptrRecord[] | ||
| | SoaRecord | ||
| | SrvRecord[] | ||
| | string[][] | ||
| | AnyRecord[] | ||
| >; | ||
| /** | ||
@@ -147,0 +149,0 @@ * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4 |
| { | ||
| "name": "@types/node", | ||
| "version": "20.19.4", | ||
| "version": "20.19.5", | ||
| "description": "TypeScript definitions for node", | ||
@@ -218,4 +218,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node", | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "e74236e50d1b077f167f304bcaa0e640d09e9d282ff6a85ddafffc085b5565fd", | ||
| "typesPublisherContentHash": "72acc427f5057b12882d2b7c1b6bdab0371f5dc2f67c10e8b86542a3b70a9802", | ||
| "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 6 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 6 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
50234
0.02%2277937
-0.01%