@xyo-network/dns 3.0.6 → 3.0.8

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.
@@ -0,0 +1,15 @@
1
+ export declare enum DnsRecordType {
2
+ A = 1,
3
+ AAAA = 28,
4
+ CAA = 257,
5
+ CNAME = 5,
6
+ DNAME = 39,
7
+ MX = 15,
8
+ NS = 2,
9
+ PTR = 12,
10
+ SOA = 6,
11
+ SPF = 99,
12
+ SRV = 33,
13
+ TXT = 16
14
+ }
15
+ //# sourceMappingURL=DnsRecordType.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DnsRecordType.d.ts","sourceRoot":"","sources":["../../src/DnsRecordType.ts"],"names":[],"mappings":"AAAA,oBAAY,aAAa;IACvB,CAAC,IAAI;IACL,IAAI,KAAK;IACT,GAAG,MAAM;IACT,KAAK,IAAI;IACT,KAAK,KAAK;IACV,EAAE,KAAK;IACP,EAAE,IAAI;IACN,GAAG,KAAK;IACR,GAAG,IAAI;IACP,GAAG,KAAK;IACR,GAAG,KAAK;IACR,GAAG,KAAK;CACT"}
@@ -0,0 +1,14 @@
1
+ declare enum DnsReturnCode {
2
+ NoError = 0,
3
+ QueryFormatError = 1,
4
+ ServerFailed = 2,
5
+ DomainDoesNotExist = 3,
6
+ NotImplemented = 4,
7
+ Refused = 5,
8
+ NameShouldNotExist = 6,
9
+ RRSetShouldNotExist = 7,
10
+ NotAuthoratative = 8,
11
+ NotInZone = 9
12
+ }
13
+ export { 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,aAAK,aAAa;IAChB,OAAO,IAAI;IACX,gBAAgB,IAAI;IACpB,YAAY,IAAI;IAChB,kBAAkB,IAAI;IACtB,cAAc,IAAI;IAClB,OAAO,IAAI;IACX,kBAAkB,IAAI;IACtB,mBAAmB,IAAI;IACvB,gBAAgB,IAAI;IACpB,SAAS,IAAI;CACd;AAED,OAAO,EAAE,aAAa,EAAE,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,8 @@
1
+ import type { DnsRecordType } from './DnsRecordType.ts';
2
+ export interface GoogleDnsResultAnswer {
3
+ TTL?: number;
4
+ data?: string;
5
+ name?: string;
6
+ type?: DnsRecordType;
7
+ }
8
+ //# sourceMappingURL=GoogleDnsResultAnswer.d.ts.map
@@ -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,3 @@
1
+ declare const domainExists: (domain?: string) => Promise<boolean>;
2
+ export { domainExists };
3
+ //# sourceMappingURL=domainExists.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"domainExists.d.ts","sourceRoot":"","sources":["../../src/domainExists.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,YAAY,YAAmB,MAAM,qBAI1C,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
@@ -0,0 +1,4 @@
1
+ import { DnsRecordType } from './DnsRecordType.ts';
2
+ declare const domainResolve: (domain?: string, type?: DnsRecordType) => Promise<import("./GoogleDnsResult.ts").GoogleDnsResult | undefined>;
3
+ export { domainResolve };
4
+ //# 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;AAQlD,QAAA,MAAM,aAAa,YAAmB,MAAM,8FAI3C,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,SAAgB,MAAM,mDAE7C,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
@@ -1,66 +1,9 @@
1
- declare enum DnsRecordType {
2
- A = 1,
3
- AAAA = 28,
4
- CAA = 257,
5
- CNAME = 5,
6
- DNAME = 39,
7
- MX = 15,
8
- NS = 2,
9
- PTR = 12,
10
- SOA = 6,
11
- SPF = 99,
12
- SRV = 33,
13
- TXT = 16
14
- }
15
-
16
- declare enum DnsReturnCode {
17
- NoError = 0,
18
- QueryFormatError = 1,
19
- ServerFailed = 2,
20
- DomainDoesNotExist = 3,
21
- NotImplemented = 4,
22
- Refused = 5,
23
- NameShouldNotExist = 6,
24
- RRSetShouldNotExist = 7,
25
- NotAuthoratative = 8,
26
- NotInZone = 9
27
- }
28
-
29
- declare const domainExists: (domain?: string) => Promise<boolean>;
30
-
31
- interface GoogleDnsResultAnswer {
32
- TTL?: number;
33
- data?: string;
34
- name?: string;
35
- type?: DnsRecordType;
36
- }
37
-
38
- interface GoogleDnsResultQuestion {
39
- cd?: boolean;
40
- ct?: string;
41
- do?: boolean;
42
- edns_client_subnet?: string;
43
- name?: string;
44
- random_padding?: string;
45
- type?: DnsRecordType;
46
- }
47
-
48
- interface GoogleDnsResult {
49
- AD?: boolean;
50
- Answer?: GoogleDnsResultAnswer[];
51
- Authority?: GoogleDnsResultAnswer[];
52
- CD?: boolean;
53
- Comment?: string;
54
- Question?: GoogleDnsResultQuestion[];
55
- RA?: boolean;
56
- RD?: boolean;
57
- Status?: DnsReturnCode;
58
- TC?: boolean;
59
- edns_client_subnet?: string;
60
- }
61
-
62
- declare const domainResolve: (domain?: string, type?: DnsRecordType) => Promise<GoogleDnsResult | undefined>;
63
-
64
- declare const googleDnsOverHttps: (name: string, type?: DnsRecordType) => Promise<GoogleDnsResult>;
65
-
66
- 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,23 +1,24 @@
1
1
  {
2
2
  "name": "@xyo-network/dns",
3
- "author": {
4
- "email": "support@xyo.network",
5
- "name": "XYO Development Team",
6
- "url": "https://xyo.network"
7
- },
3
+ "version": "3.0.8",
4
+ "description": "Primary SDK for using XYO Protocol 2.0",
5
+ "homepage": "https://xyo.network",
8
6
  "bugs": {
9
- "email": "support@xyo.network",
10
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues"
7
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues",
8
+ "email": "support@xyo.network"
11
9
  },
12
- "description": "Primary SDK for using XYO Protocol 2.0",
13
- "dependencies": {
14
- "@xylabs/axios": "^4.0.2"
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
15
13
  },
16
- "devDependencies": {
17
- "@xylabs/ts-scripts-yarn3": "^4.0.0-rc.30",
18
- "@xylabs/tsconfig": "^4.0.0-rc.30",
19
- "typescript": "^5.5.4"
14
+ "license": "LGPL-3.0-only",
15
+ "author": {
16
+ "name": "XYO Development Team",
17
+ "email": "support@xyo.network",
18
+ "url": "https://xyo.network"
20
19
  },
20
+ "sideEffects": false,
21
+ "type": "module",
21
22
  "exports": {
22
23
  ".": {
23
24
  "types": "./dist/neutral/index.d.ts",
@@ -27,16 +28,15 @@
27
28
  },
28
29
  "module": "dist/neutral/index.mjs",
29
30
  "types": "dist/neutral/index.d.ts",
30
- "homepage": "https://xyo.network",
31
- "license": "LGPL-3.0-only",
32
- "publishConfig": {
33
- "access": "public"
31
+ "dependencies": {
32
+ "@xylabs/axios": "^4.0.3"
34
33
  },
35
- "repository": {
36
- "type": "git",
37
- "url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js.git"
34
+ "devDependencies": {
35
+ "@xylabs/ts-scripts-yarn3": "^4.0.7",
36
+ "@xylabs/tsconfig": "^4.0.7",
37
+ "typescript": "^5.5.4"
38
38
  },
39
- "sideEffects": false,
40
- "version": "3.0.6",
41
- "type": "module"
39
+ "publishConfig": {
40
+ "access": "public"
41
+ }
42
42
  }
package/xy.config.ts CHANGED
@@ -2,9 +2,7 @@ import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
2
  const config: XyTsupConfig = {
3
3
  compile: {
4
4
  browser: {},
5
- neutral: {
6
- src: true,
7
- },
5
+ neutral: { src: true },
8
6
  node: {},
9
7
  },
10
8
  }