@xyo-network/dns 3.9.18 → 3.9.20
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.
- package/dist/neutral/DnsRecordType.d.ts +16 -0
- package/dist/neutral/DnsRecordType.d.ts.map +1 -0
- package/dist/neutral/DnsReturnCode.d.ts +14 -0
- package/dist/neutral/DnsReturnCode.d.ts.map +1 -0
- package/dist/neutral/GoogleDnsResult.d.ts +17 -0
- package/dist/neutral/GoogleDnsResult.d.ts.map +1 -0
- package/dist/neutral/GoogleDnsResultAnswer.d.ts +8 -0
- package/dist/neutral/GoogleDnsResultAnswer.d.ts.map +1 -0
- package/dist/neutral/GoogleDnsResultQuestion.d.ts +11 -0
- package/dist/neutral/GoogleDnsResultQuestion.d.ts.map +1 -0
- package/dist/neutral/domainExists.d.ts +8 -0
- package/dist/neutral/domainExists.d.ts.map +1 -0
- package/dist/neutral/domainResolve.d.ts +9 -0
- package/dist/neutral/domainResolve.d.ts.map +1 -0
- package/dist/neutral/googleDnsOverHttps.d.ts +5 -0
- package/dist/neutral/googleDnsOverHttps.d.ts.map +1 -0
- package/dist/neutral/index.d.ts +9 -68
- package/dist/neutral/index.d.ts.map +1 -0
- package/package.json +4 -4
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const DnsRecordType: {
|
|
2
|
+
readonly A: 1;
|
|
3
|
+
readonly AAAA: 28;
|
|
4
|
+
readonly CAA: 257;
|
|
5
|
+
readonly CNAME: 5;
|
|
6
|
+
readonly DNAME: 39;
|
|
7
|
+
readonly MX: 15;
|
|
8
|
+
readonly NS: 2;
|
|
9
|
+
readonly PTR: 12;
|
|
10
|
+
readonly SOA: 6;
|
|
11
|
+
readonly SPF: 99;
|
|
12
|
+
readonly SRV: 33;
|
|
13
|
+
readonly TXT: 16;
|
|
14
|
+
};
|
|
15
|
+
export type DnsRecordType = typeof DnsRecordType[keyof typeof DnsRecordType];
|
|
16
|
+
//# sourceMappingURL=DnsRecordType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DnsRecordType.d.ts","sourceRoot":"","sources":["../../src/DnsRecordType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;;;CAahB,CAAA;AAEV,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const DnsReturnCode: {
|
|
2
|
+
NoError: number;
|
|
3
|
+
QueryFormatError: number;
|
|
4
|
+
ServerFailed: number;
|
|
5
|
+
DomainDoesNotExist: number;
|
|
6
|
+
NotImplemented: number;
|
|
7
|
+
Refused: number;
|
|
8
|
+
NameShouldNotExist: number;
|
|
9
|
+
RRSetShouldNotExist: number;
|
|
10
|
+
NotAuthoritative: number;
|
|
11
|
+
NotInZone: number;
|
|
12
|
+
};
|
|
13
|
+
export type DnsReturnCode = typeof DnsReturnCode[keyof typeof DnsReturnCode];
|
|
14
|
+
//# sourceMappingURL=DnsReturnCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DnsReturnCode.d.ts","sourceRoot":"","sources":["../../src/DnsReturnCode.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,MAAM,OAAO,aAAa,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { DnsReturnCode } from './DnsReturnCode.ts';
|
|
2
|
+
import type { GoogleDnsResultAnswer } from './GoogleDnsResultAnswer.ts';
|
|
3
|
+
import type { GoogleDnsResultQuestion } from './GoogleDnsResultQuestion.ts';
|
|
4
|
+
export interface GoogleDnsResult {
|
|
5
|
+
AD?: boolean;
|
|
6
|
+
Answer?: GoogleDnsResultAnswer[];
|
|
7
|
+
Authority?: GoogleDnsResultAnswer[];
|
|
8
|
+
CD?: boolean;
|
|
9
|
+
Comment?: string;
|
|
10
|
+
Question?: GoogleDnsResultQuestion[];
|
|
11
|
+
RA?: boolean;
|
|
12
|
+
RD?: boolean;
|
|
13
|
+
Status?: DnsReturnCode;
|
|
14
|
+
TC?: boolean;
|
|
15
|
+
edns_client_subnet?: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=GoogleDnsResult.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleDnsResult.d.ts","sourceRoot":"","sources":["../../src/GoogleDnsResult.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAA;AACvE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAE3E,MAAM,WAAW,eAAe;IAC9B,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,MAAM,CAAC,EAAE,qBAAqB,EAAE,CAAA;IAChC,SAAS,CAAC,EAAE,qBAAqB,EAAE,CAAA;IACnC,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,QAAQ,CAAC,EAAE,uBAAuB,EAAE,CAAA;IACpC,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,MAAM,CAAC,EAAE,aAAa,CAAA;IACtB,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleDnsResultAnswer.d.ts","sourceRoot":"","sources":["../../src/GoogleDnsResultAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,WAAW,qBAAqB;IACpC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DnsRecordType } from './DnsRecordType.ts';
|
|
2
|
+
export interface GoogleDnsResultQuestion {
|
|
3
|
+
cd?: boolean;
|
|
4
|
+
ct?: string;
|
|
5
|
+
do?: boolean;
|
|
6
|
+
edns_client_subnet?: string;
|
|
7
|
+
name?: string;
|
|
8
|
+
random_padding?: string;
|
|
9
|
+
type?: DnsRecordType;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=GoogleDnsResultQuestion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GoogleDnsResultQuestion.d.ts","sourceRoot":"","sources":["../../src/GoogleDnsResultQuestion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,WAAW,uBAAuB;IACtC,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,EAAE,CAAC,EAAE,OAAO,CAAA;IACZ,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,IAAI,CAAC,EAAE,aAAa,CAAA;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domainExists.d.ts","sourceRoot":"","sources":["../../src/domainExists.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,QAAA,MAAM,YAAY,GAAU,SAAS,MAAM,qBAI1C,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { DnsRecordType } from './DnsRecordType.ts';
|
|
2
|
+
/**
|
|
3
|
+
* Resolves DNS information (resolves using DNS)
|
|
4
|
+
* @param domain - string
|
|
5
|
+
* @returns GoogleDnsResult
|
|
6
|
+
*/
|
|
7
|
+
declare const domainResolve: (domain?: string, type?: DnsRecordType) => Promise<import("./GoogleDnsResult.ts").GoogleDnsResult | undefined>;
|
|
8
|
+
export { domainResolve };
|
|
9
|
+
//# sourceMappingURL=domainResolve.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domainResolve.d.ts","sourceRoot":"","sources":["../../src/domainResolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAGlD;;;;GAIG;AACH,QAAA,MAAM,aAAa,GAAU,SAAS,MAAM,EAAE,OAAM,aAA+B,wEAIlF,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DnsRecordType } from './DnsRecordType.ts';
|
|
2
|
+
import type { GoogleDnsResult } from './GoogleDnsResult.ts';
|
|
3
|
+
declare const googleDnsOverHttps: (name: string, type?: DnsRecordType) => Promise<GoogleDnsResult>;
|
|
4
|
+
export { googleDnsOverHttps };
|
|
5
|
+
//# sourceMappingURL=googleDnsOverHttps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleDnsOverHttps.d.ts","sourceRoot":"","sources":["../../src/googleDnsOverHttps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;AAE3D,QAAA,MAAM,kBAAkB,GAAU,MAAM,MAAM,EAAE,OAAM,aAA+B,6BAEpF,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,68 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly SOA: 6;
|
|
11
|
-
readonly SPF: 99;
|
|
12
|
-
readonly SRV: 33;
|
|
13
|
-
readonly TXT: 16;
|
|
14
|
-
};
|
|
15
|
-
type DnsRecordType = typeof DnsRecordType[keyof typeof DnsRecordType];
|
|
16
|
-
|
|
17
|
-
declare const DnsReturnCode: {
|
|
18
|
-
NoError: number;
|
|
19
|
-
QueryFormatError: number;
|
|
20
|
-
ServerFailed: number;
|
|
21
|
-
DomainDoesNotExist: number;
|
|
22
|
-
NotImplemented: number;
|
|
23
|
-
Refused: number;
|
|
24
|
-
NameShouldNotExist: number;
|
|
25
|
-
RRSetShouldNotExist: number;
|
|
26
|
-
NotAuthoritative: number;
|
|
27
|
-
NotInZone: number;
|
|
28
|
-
};
|
|
29
|
-
type DnsReturnCode = typeof DnsReturnCode[keyof typeof DnsReturnCode];
|
|
30
|
-
|
|
31
|
-
declare const domainExists: (domain?: string) => Promise<boolean>;
|
|
32
|
-
|
|
33
|
-
interface GoogleDnsResultAnswer {
|
|
34
|
-
TTL?: number;
|
|
35
|
-
data?: string;
|
|
36
|
-
name?: string;
|
|
37
|
-
type?: DnsRecordType;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
interface GoogleDnsResultQuestion {
|
|
41
|
-
cd?: boolean;
|
|
42
|
-
ct?: string;
|
|
43
|
-
do?: boolean;
|
|
44
|
-
edns_client_subnet?: string;
|
|
45
|
-
name?: string;
|
|
46
|
-
random_padding?: string;
|
|
47
|
-
type?: DnsRecordType;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
interface GoogleDnsResult {
|
|
51
|
-
AD?: boolean;
|
|
52
|
-
Answer?: GoogleDnsResultAnswer[];
|
|
53
|
-
Authority?: GoogleDnsResultAnswer[];
|
|
54
|
-
CD?: boolean;
|
|
55
|
-
Comment?: string;
|
|
56
|
-
Question?: GoogleDnsResultQuestion[];
|
|
57
|
-
RA?: boolean;
|
|
58
|
-
RD?: boolean;
|
|
59
|
-
Status?: DnsReturnCode;
|
|
60
|
-
TC?: boolean;
|
|
61
|
-
edns_client_subnet?: string;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
declare const domainResolve: (domain?: string, type?: DnsRecordType) => Promise<GoogleDnsResult | undefined>;
|
|
65
|
-
|
|
66
|
-
declare const googleDnsOverHttps: (name: string, type?: DnsRecordType) => Promise<GoogleDnsResult>;
|
|
67
|
-
|
|
68
|
-
export { DnsRecordType, DnsReturnCode, type GoogleDnsResult, type GoogleDnsResultAnswer, type GoogleDnsResultQuestion, domainExists, domainResolve, googleDnsOverHttps };
|
|
1
|
+
export * from './DnsRecordType.ts';
|
|
2
|
+
export * from './DnsReturnCode.ts';
|
|
3
|
+
export * from './domainExists.ts';
|
|
4
|
+
export * from './domainResolve.ts';
|
|
5
|
+
export * from './googleDnsOverHttps.ts';
|
|
6
|
+
export * from './GoogleDnsResult.ts';
|
|
7
|
+
export * from './GoogleDnsResultAnswer.ts';
|
|
8
|
+
export * from './GoogleDnsResultQuestion.ts';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,sBAAsB,CAAA;AACpC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,8BAA8B,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/dns",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.20",
|
|
4
4
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
5
5
|
"homepage": "https://xyo.network",
|
|
6
6
|
"bugs": {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"@xylabs/axios": "^4.5.1"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@xylabs/ts-scripts-yarn3": "^5.0.
|
|
36
|
-
"@xylabs/tsconfig": "^5.0.
|
|
37
|
-
"typescript": "^5.
|
|
35
|
+
"@xylabs/ts-scripts-yarn3": "^5.0.39",
|
|
36
|
+
"@xylabs/tsconfig": "^5.0.39",
|
|
37
|
+
"typescript": "^5.8.2"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|