@types/dns2 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dns2/LICENSE +0 -0
- dns2/README.md +1 -1
- dns2/index.d.ts +10 -5
- dns2/package.json +3 -3
dns2/LICENSE
CHANGED
|
File without changes
|
dns2/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for dns2 (https://github.com/song940/node
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dns2.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Fri, 22 Sep 2023 20:29:40 GMT
|
|
12
12
|
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
|
|
13
13
|
* Global values: none
|
|
14
14
|
|
dns2/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
|
|
6
6
|
/// <reference types="node" />
|
|
7
7
|
|
|
8
|
-
import * as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import * as udp from "dgram";
|
|
9
|
+
import { EventEmitter } from "events";
|
|
10
|
+
import * as net from "net";
|
|
11
11
|
|
|
12
12
|
declare class Packet {
|
|
13
13
|
static TYPE: {
|
|
@@ -57,7 +57,7 @@ declare namespace DNS {
|
|
|
57
57
|
retries: number;
|
|
58
58
|
timeout: number;
|
|
59
59
|
recursive: boolean;
|
|
60
|
-
resolverProtocol:
|
|
60
|
+
resolverProtocol: "UDP" | "TCP";
|
|
61
61
|
nameServers: string[];
|
|
62
62
|
rootServers: string[];
|
|
63
63
|
}
|
|
@@ -130,7 +130,12 @@ declare class DNS {
|
|
|
130
130
|
static TCPServer: typeof TcpDnsServer;
|
|
131
131
|
|
|
132
132
|
query(name: string, type: DNS.PacketQuestion, cls?: DNS.PacketClass, clientIp?: string): Promise<DNS.DnsResponse>;
|
|
133
|
-
resolve(
|
|
133
|
+
resolve(
|
|
134
|
+
domain: string,
|
|
135
|
+
type?: DNS.PacketQuestion,
|
|
136
|
+
cls?: DNS.PacketClass,
|
|
137
|
+
clientIp?: string,
|
|
138
|
+
): Promise<DNS.DnsResponse>;
|
|
134
139
|
resolveA(domain: string, clientIp?: string): Promise<DNS.DnsResponse>;
|
|
135
140
|
resolveAAAA(domain: string): Promise<DNS.DnsResponse>;
|
|
136
141
|
resolveMX(domain: string): Promise<DNS.DnsResponse>;
|
dns2/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/dns2",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.4",
|
|
4
4
|
"description": "TypeScript definitions for dns2",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dns2",
|
|
6
6
|
"license": "MIT",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@types/node": "*"
|
|
24
24
|
},
|
|
25
|
-
"typesPublisherContentHash": "
|
|
26
|
-
"typeScriptVersion": "4.
|
|
25
|
+
"typesPublisherContentHash": "2d7ed4673bd9f953130b8c2a7b73327985c6710fa8d245117e2d295399f2da7d",
|
|
26
|
+
"typeScriptVersion": "4.5"
|
|
27
27
|
}
|