@xyo-network/dns 7.0.11 → 7.0.13
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/README.md +47 -1
- 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 +8 -5
- package/dist/neutral/index.d.ts.map +1 -1
- package/dist/neutral/index.mjs +60 -2
- package/dist/neutral/index.mjs.map +3 -3
- package/package.json +18 -29
package/README.md
CHANGED
|
@@ -1,3 +1,49 @@
|
|
|
1
|
+
[![logo][]](https://xyo.network)
|
|
2
|
+
|
|
1
3
|
# @xyo-network/dns
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
[![npm][npm-badge]][npm-link]
|
|
6
|
+
[![license][license-badge]][license-link]
|
|
7
|
+
|
|
8
|
+
> Primary SDK for using XYO Protocol 2.0
|
|
9
|
+
|
|
10
|
+
## Install
|
|
11
|
+
|
|
12
|
+
Using npm:
|
|
13
|
+
|
|
14
|
+
```sh
|
|
15
|
+
npm install {{name}}
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Using yarn:
|
|
19
|
+
|
|
20
|
+
```sh
|
|
21
|
+
yarn add {{name}}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Using pnpm:
|
|
25
|
+
|
|
26
|
+
```sh
|
|
27
|
+
pnpm add {{name}}
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
Using bun:
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
bun add {{name}}
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
See the [LICENSE](LICENSE) file for license rights and limitations (LGPL-3.0-only).
|
|
40
|
+
|
|
41
|
+
## Credits
|
|
42
|
+
|
|
43
|
+
[Made with 🔥 and ❄️ by XYO Foundation](https://xyo.network)
|
|
44
|
+
|
|
45
|
+
[npm-badge]: https://img.shields.io/npm/v/@xyo-network/dns.svg
|
|
46
|
+
[npm-link]: https://www.npmjs.com/package/@xyo-network/dns
|
|
47
|
+
[license-badge]: https://img.shields.io/npm/l/@xyo-network/dns.svg
|
|
48
|
+
[license-link]: https://github.com/xylabs/sdk-js/blob/main/LICENSE
|
|
49
|
+
[logo]: https://cdn.xy.company/img/brand/XYO_full_colored.png
|
|
@@ -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":"AAEA,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 | undefined>;
|
|
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,KAAG,OAAO,CAAC,eAAe,GAAG,SAAS,CAG1H,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
package/dist/neutral/index.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
export * from '
|
|
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';
|
|
6
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA
|
|
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/dist/neutral/index.mjs
CHANGED
|
@@ -1,3 +1,61 @@
|
|
|
1
|
-
// src/
|
|
2
|
-
|
|
1
|
+
// src/DnsRecordType.ts
|
|
2
|
+
var DnsRecordType = {
|
|
3
|
+
A: 1,
|
|
4
|
+
AAAA: 28,
|
|
5
|
+
CAA: 257,
|
|
6
|
+
CNAME: 5,
|
|
7
|
+
DNAME: 39,
|
|
8
|
+
MX: 15,
|
|
9
|
+
NS: 2,
|
|
10
|
+
PTR: 12,
|
|
11
|
+
SOA: 6,
|
|
12
|
+
SPF: 99,
|
|
13
|
+
SRV: 33,
|
|
14
|
+
TXT: 16
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
// src/DnsReturnCode.ts
|
|
18
|
+
var DnsReturnCode = {
|
|
19
|
+
NoError: 0,
|
|
20
|
+
QueryFormatError: 1,
|
|
21
|
+
ServerFailed: 2,
|
|
22
|
+
DomainDoesNotExist: 3,
|
|
23
|
+
NotImplemented: 4,
|
|
24
|
+
Refused: 5,
|
|
25
|
+
NameShouldNotExist: 6,
|
|
26
|
+
RRSetShouldNotExist: 7,
|
|
27
|
+
NotAuthoritative: 8,
|
|
28
|
+
NotInZone: 9
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
// src/domainResolve.ts
|
|
32
|
+
import { isDefined } from "@ariestools/sdk";
|
|
33
|
+
|
|
34
|
+
// src/googleDnsOverHttps.ts
|
|
35
|
+
import { fetchJson } from "@ariestools/sdk";
|
|
36
|
+
var googleDnsOverHttps = async (name, type = DnsRecordType.A) => {
|
|
37
|
+
const response = await fetchJson(`https://dns.google/resolve?name=${name}&type=${type}`);
|
|
38
|
+
return response.data ?? void 0;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
// src/domainResolve.ts
|
|
42
|
+
var domainResolve = async (domain, type = DnsRecordType.A) => {
|
|
43
|
+
if (isDefined(domain)) {
|
|
44
|
+
return await googleDnsOverHttps(domain, type);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
// src/domainExists.ts
|
|
49
|
+
var domainExists = async (domain) => {
|
|
50
|
+
if (domain === void 0) return false;
|
|
51
|
+
const dnsResult = await domainResolve(domain);
|
|
52
|
+
return dnsResult?.Status === DnsReturnCode.NoError;
|
|
53
|
+
};
|
|
54
|
+
export {
|
|
55
|
+
DnsRecordType,
|
|
56
|
+
DnsReturnCode,
|
|
57
|
+
domainExists,
|
|
58
|
+
domainResolve,
|
|
59
|
+
googleDnsOverHttps
|
|
60
|
+
};
|
|
3
61
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/
|
|
4
|
-
"sourcesContent": ["/**\n * @
|
|
5
|
-
"mappings": ";
|
|
3
|
+
"sources": ["../../src/DnsRecordType.ts", "../../src/DnsReturnCode.ts", "../../src/domainResolve.ts", "../../src/googleDnsOverHttps.ts", "../../src/domainExists.ts"],
|
|
4
|
+
"sourcesContent": ["export const DnsRecordType = {\n A: 1,\n AAAA: 28,\n CAA: 257,\n CNAME: 5,\n DNAME: 39,\n MX: 15,\n NS: 2,\n PTR: 12,\n SOA: 6,\n SPF: 99,\n SRV: 33,\n TXT: 16,\n} as const\n\nexport type DnsRecordType = typeof DnsRecordType[keyof typeof DnsRecordType]\n", "export const DnsReturnCode = {\n NoError: 0,\n QueryFormatError: 1,\n ServerFailed: 2,\n DomainDoesNotExist: 3,\n NotImplemented: 4,\n Refused: 5,\n NameShouldNotExist: 6,\n RRSetShouldNotExist: 7,\n NotAuthoritative: 8,\n NotInZone: 9,\n}\n\nexport type DnsReturnCode = typeof DnsReturnCode[keyof typeof DnsReturnCode]\n", "import { isDefined } from '@ariestools/sdk'\n\nimport { DnsRecordType } from './DnsRecordType.ts'\nimport { googleDnsOverHttps } from './googleDnsOverHttps.ts'\n\n/**\n * Resolves DNS information (resolves using DNS)\n * @param domain - string\n * @returns GoogleDnsResult\n */\nconst domainResolve = async (domain?: string, type: DnsRecordType = DnsRecordType.A) => {\n if (isDefined(domain)) {\n return await googleDnsOverHttps(domain, type)\n }\n}\n\nexport { domainResolve }\n", "import { fetchJson } from '@ariestools/sdk'\n\nimport { DnsRecordType } from './DnsRecordType.ts'\nimport type { GoogleDnsResult } from './GoogleDnsResult.ts'\n\nconst googleDnsOverHttps = async (name: string, type: DnsRecordType = DnsRecordType.A): Promise<GoogleDnsResult | undefined> => {\n const response = await fetchJson<GoogleDnsResult>(`https://dns.google/resolve?name=${name}&type=${type}`)\n return response.data ?? undefined\n}\n\nexport { googleDnsOverHttps }\n", "import { DnsReturnCode } from './DnsReturnCode.ts'\nimport { domainResolve } from './domainResolve.ts'\n\n/**\n * Checks if a domain exists (resolves using DNS)\n * @param domain - string\n * @returns boolean\n */\nconst domainExists = async (domain?: string) => {\n if (domain === undefined) return false\n const dnsResult = await domainResolve(domain)\n return dnsResult?.Status === DnsReturnCode.NoError\n}\n\nexport { domainExists }\n"],
|
|
5
|
+
"mappings": ";AAAO,IAAM,gBAAgB;AAAA,EAC3B,GAAG;AAAA,EACH,MAAM;AAAA,EACN,KAAK;AAAA,EACL,OAAO;AAAA,EACP,OAAO;AAAA,EACP,IAAI;AAAA,EACJ,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AAAA,EACL,KAAK;AACP;;;ACbO,IAAM,gBAAgB;AAAA,EAC3B,SAAS;AAAA,EACT,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,oBAAoB;AAAA,EACpB,gBAAgB;AAAA,EAChB,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,qBAAqB;AAAA,EACrB,kBAAkB;AAAA,EAClB,WAAW;AACb;;;ACXA,SAAS,iBAAiB;;;ACA1B,SAAS,iBAAiB;AAK1B,IAAM,qBAAqB,OAAO,MAAc,OAAsB,cAAc,MAA4C;AAC9H,QAAM,WAAW,MAAM,UAA2B,mCAAmC,IAAI,SAAS,IAAI,EAAE;AACxG,SAAO,SAAS,QAAQ;AAC1B;;;ADEA,IAAM,gBAAgB,OAAO,QAAiB,OAAsB,cAAc,MAAM;AACtF,MAAI,UAAU,MAAM,GAAG;AACrB,WAAO,MAAM,mBAAmB,QAAQ,IAAI;AAAA,EAC9C;AACF;;;AENA,IAAM,eAAe,OAAO,WAAoB;AAC9C,MAAI,WAAW,OAAW,QAAO;AACjC,QAAM,YAAY,MAAM,cAAc,MAAM;AAC5C,SAAO,WAAW,WAAW,cAAc;AAC7C;",
|
|
6
6
|
"names": []
|
|
7
7
|
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/dns",
|
|
3
|
-
"version": "7.0.
|
|
4
|
-
"description": "
|
|
5
|
-
"deprecated": "Use @xyo-network/sdk-protocol/dns instead. @xyo-network/dns is a backward-compatibility re-export stub and will not receive further updates.",
|
|
3
|
+
"version": "7.0.13",
|
|
4
|
+
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
6
5
|
"homepage": "https://xyo.network",
|
|
7
6
|
"bugs": {
|
|
8
7
|
"url": "git+https://github.com/XYOracleNetwork/sdk-xyo-client-js/issues",
|
|
@@ -34,35 +33,25 @@
|
|
|
34
33
|
"!**/*.test.*",
|
|
35
34
|
"README.md"
|
|
36
35
|
],
|
|
37
|
-
"dependencies": {
|
|
38
|
-
"@xyo-network/sdk-protocol": "~7.0.11"
|
|
39
|
-
},
|
|
40
36
|
"devDependencies": {
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
37
|
+
"@ariestools/sdk": "~7.0.8",
|
|
38
|
+
"@opentelemetry/api": "~1.9.1",
|
|
39
|
+
"@opentelemetry/sdk-trace-base": "~2.9.0",
|
|
40
|
+
"@xylabs/toolchain": "~8.6.2",
|
|
41
|
+
"@xylabs/tsconfig": "~8.6.2",
|
|
42
|
+
"async-mutex": "~0.5.0",
|
|
43
|
+
"browserslist": "~4.28.4",
|
|
44
|
+
"eslint": "~10.6.0",
|
|
45
|
+
"eslint-import-resolver-typescript": "~4.4.5",
|
|
46
|
+
"typescript": "~6.0.3",
|
|
47
|
+
"zod": "~4.4.3"
|
|
47
48
|
},
|
|
48
49
|
"peerDependencies": {
|
|
49
|
-
"@ariestools/sdk": "^7.0.
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"@scure/base": "~2.2",
|
|
55
|
-
"@scure/bip39": "~2.2",
|
|
56
|
-
"@xylabs/geo": "^7.0",
|
|
57
|
-
"@xylabs/threads": "^7.0",
|
|
58
|
-
"ajv": "^8.20",
|
|
59
|
-
"async-mutex": "^0.5",
|
|
60
|
-
"debug": "^4.4",
|
|
61
|
-
"ethers": "^6.16",
|
|
62
|
-
"hash-wasm": "~4.12",
|
|
63
|
-
"idb": "^8.0",
|
|
64
|
-
"observable-fns": "^0.6",
|
|
65
|
-
"zod": "^4.4"
|
|
50
|
+
"@ariestools/sdk": "^7.0.8",
|
|
51
|
+
"@opentelemetry/api": "^1.9.1",
|
|
52
|
+
"@opentelemetry/sdk-trace-base": "^2.9.0",
|
|
53
|
+
"async-mutex": "^0.5.0",
|
|
54
|
+
"zod": "^4.4.3"
|
|
66
55
|
},
|
|
67
56
|
"engines": {
|
|
68
57
|
"node": "^24"
|