You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@types/node

Package Overview
Dependencies
Maintainers
1
Versions
2315
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
22.16.0
to
22.16.1
+18
-19
node v22.16/dns.d.ts

@@ -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 @@