@xyo-network/core 2.42.13 → 2.42.15
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/cjs/lib/index.d.ts +0 -1
- package/dist/cjs/lib/index.d.ts.map +1 -1
- package/dist/cjs/lib/index.js +0 -1
- package/dist/cjs/lib/index.js.map +1 -1
- package/dist/docs.json +1481 -2795
- package/dist/esm/lib/index.d.ts +0 -1
- package/dist/esm/lib/index.d.ts.map +1 -1
- package/dist/esm/lib/index.js +0 -1
- package/dist/esm/lib/index.js.map +1 -1
- package/package.json +3 -5
- package/src/lib/index.ts +0 -1
- package/dist/cjs/lib/dns/DnsRecordType.d.ts +0 -15
- package/dist/cjs/lib/dns/DnsRecordType.d.ts.map +0 -1
- package/dist/cjs/lib/dns/DnsRecordType.js +0 -19
- package/dist/cjs/lib/dns/DnsRecordType.js.map +0 -1
- package/dist/cjs/lib/dns/DnsReturnCode.d.ts +0 -14
- package/dist/cjs/lib/dns/DnsReturnCode.d.ts.map +0 -1
- package/dist/cjs/lib/dns/DnsReturnCode.js +0 -18
- package/dist/cjs/lib/dns/DnsReturnCode.js.map +0 -1
- package/dist/cjs/lib/dns/GoogleDnsResult.d.ts +0 -17
- package/dist/cjs/lib/dns/GoogleDnsResult.d.ts.map +0 -1
- package/dist/cjs/lib/dns/GoogleDnsResult.js +0 -3
- package/dist/cjs/lib/dns/GoogleDnsResult.js.map +0 -1
- package/dist/cjs/lib/dns/GoogleDnsResultAnswer.d.ts +0 -8
- package/dist/cjs/lib/dns/GoogleDnsResultAnswer.d.ts.map +0 -1
- package/dist/cjs/lib/dns/GoogleDnsResultAnswer.js +0 -3
- package/dist/cjs/lib/dns/GoogleDnsResultAnswer.js.map +0 -1
- package/dist/cjs/lib/dns/GoogleDnsResultQuestion.d.ts +0 -11
- package/dist/cjs/lib/dns/GoogleDnsResultQuestion.d.ts.map +0 -1
- package/dist/cjs/lib/dns/GoogleDnsResultQuestion.js +0 -3
- package/dist/cjs/lib/dns/GoogleDnsResultQuestion.js.map +0 -1
- package/dist/cjs/lib/dns/domainExists.d.ts +0 -8
- package/dist/cjs/lib/dns/domainExists.d.ts.map +0 -1
- package/dist/cjs/lib/dns/domainExists.js +0 -19
- package/dist/cjs/lib/dns/domainExists.js.map +0 -1
- package/dist/cjs/lib/dns/domainResolve.d.ts +0 -9
- package/dist/cjs/lib/dns/domainResolve.d.ts.map +0 -1
- package/dist/cjs/lib/dns/domainResolve.js +0 -19
- package/dist/cjs/lib/dns/domainResolve.js.map +0 -1
- package/dist/cjs/lib/dns/googleDnsOverHttps.d.ts +0 -5
- package/dist/cjs/lib/dns/googleDnsOverHttps.d.ts.map +0 -1
- package/dist/cjs/lib/dns/googleDnsOverHttps.js +0 -11
- package/dist/cjs/lib/dns/googleDnsOverHttps.js.map +0 -1
- package/dist/cjs/lib/dns/index.d.ts +0 -9
- package/dist/cjs/lib/dns/index.d.ts.map +0 -1
- package/dist/cjs/lib/dns/index.js +0 -12
- package/dist/cjs/lib/dns/index.js.map +0 -1
- package/dist/esm/lib/dns/DnsRecordType.d.ts +0 -15
- package/dist/esm/lib/dns/DnsRecordType.d.ts.map +0 -1
- package/dist/esm/lib/dns/DnsRecordType.js +0 -16
- package/dist/esm/lib/dns/DnsRecordType.js.map +0 -1
- package/dist/esm/lib/dns/DnsReturnCode.d.ts +0 -14
- package/dist/esm/lib/dns/DnsReturnCode.d.ts.map +0 -1
- package/dist/esm/lib/dns/DnsReturnCode.js +0 -15
- package/dist/esm/lib/dns/DnsReturnCode.js.map +0 -1
- package/dist/esm/lib/dns/GoogleDnsResult.d.ts +0 -17
- package/dist/esm/lib/dns/GoogleDnsResult.d.ts.map +0 -1
- package/dist/esm/lib/dns/GoogleDnsResult.js +0 -2
- package/dist/esm/lib/dns/GoogleDnsResult.js.map +0 -1
- package/dist/esm/lib/dns/GoogleDnsResultAnswer.d.ts +0 -8
- package/dist/esm/lib/dns/GoogleDnsResultAnswer.d.ts.map +0 -1
- package/dist/esm/lib/dns/GoogleDnsResultAnswer.js +0 -2
- package/dist/esm/lib/dns/GoogleDnsResultAnswer.js.map +0 -1
- package/dist/esm/lib/dns/GoogleDnsResultQuestion.d.ts +0 -11
- package/dist/esm/lib/dns/GoogleDnsResultQuestion.d.ts.map +0 -1
- package/dist/esm/lib/dns/GoogleDnsResultQuestion.js +0 -2
- package/dist/esm/lib/dns/GoogleDnsResultQuestion.js.map +0 -1
- package/dist/esm/lib/dns/domainExists.d.ts +0 -8
- package/dist/esm/lib/dns/domainExists.d.ts.map +0 -1
- package/dist/esm/lib/dns/domainExists.js +0 -15
- package/dist/esm/lib/dns/domainExists.js.map +0 -1
- package/dist/esm/lib/dns/domainResolve.d.ts +0 -9
- package/dist/esm/lib/dns/domainResolve.d.ts.map +0 -1
- package/dist/esm/lib/dns/domainResolve.js +0 -15
- package/dist/esm/lib/dns/domainResolve.js.map +0 -1
- package/dist/esm/lib/dns/googleDnsOverHttps.d.ts +0 -5
- package/dist/esm/lib/dns/googleDnsOverHttps.d.ts.map +0 -1
- package/dist/esm/lib/dns/googleDnsOverHttps.js +0 -7
- package/dist/esm/lib/dns/googleDnsOverHttps.js.map +0 -1
- package/dist/esm/lib/dns/index.d.ts +0 -9
- package/dist/esm/lib/dns/index.d.ts.map +0 -1
- package/dist/esm/lib/dns/index.js +0 -9
- package/dist/esm/lib/dns/index.js.map +0 -1
- package/src/lib/dns/DnsRecordType.ts +0 -14
- package/src/lib/dns/DnsReturnCode.ts +0 -14
- package/src/lib/dns/GoogleDnsResult.ts +0 -17
- package/src/lib/dns/GoogleDnsResultAnswer.ts +0 -8
- package/src/lib/dns/GoogleDnsResultQuestion.ts +0 -11
- package/src/lib/dns/domainExists.ts +0 -15
- package/src/lib/dns/domainResolve.ts +0 -16
- package/src/lib/dns/googleDnsOverHttps.ts +0 -10
- package/src/lib/dns/index.ts +0 -8
package/dist/esm/lib/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA"}
|
package/dist/esm/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA"}
|
package/package.json
CHANGED
|
@@ -14,12 +14,10 @@
|
|
|
14
14
|
"@xylabs/assert": "^2.6.11",
|
|
15
15
|
"@xylabs/bignumber": "^2.6.11",
|
|
16
16
|
"@xylabs/buffer": "^2.6.11",
|
|
17
|
-
"@xyo-network/typeof": "^2.42.
|
|
18
|
-
"axios": "~1.2.1",
|
|
17
|
+
"@xyo-network/typeof": "^2.42.15",
|
|
19
18
|
"keccak256": "^1.0.6",
|
|
20
19
|
"lodash": "^4.17.21",
|
|
21
20
|
"sha.js": "^2.4.11",
|
|
22
|
-
"tslib": "^2.4.1",
|
|
23
21
|
"uuid": "^9.0.0"
|
|
24
22
|
},
|
|
25
23
|
"description": "Primary SDK for using XYO Protocol 2.0",
|
|
@@ -27,7 +25,7 @@
|
|
|
27
25
|
"@types/lodash": "^4.14.191",
|
|
28
26
|
"@types/sha.js": "^2.4.0",
|
|
29
27
|
"@types/uuid": "^9.0.0",
|
|
30
|
-
"@xylabs/ts-scripts-yarn3": "^2.
|
|
28
|
+
"@xylabs/ts-scripts-yarn3": "^2.10.21"
|
|
31
29
|
},
|
|
32
30
|
"browser": "dist/esm/index.js",
|
|
33
31
|
"docs": "dist/docs.json",
|
|
@@ -61,5 +59,5 @@
|
|
|
61
59
|
},
|
|
62
60
|
"sideEffects": false,
|
|
63
61
|
"types": "dist/esm/index.d.ts",
|
|
64
|
-
"version": "2.42.
|
|
62
|
+
"version": "2.42.15"
|
|
65
63
|
}
|
package/src/lib/index.ts
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsRecordType.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DnsRecordType = void 0;
|
|
4
|
-
var DnsRecordType;
|
|
5
|
-
(function (DnsRecordType) {
|
|
6
|
-
DnsRecordType[DnsRecordType["A"] = 1] = "A";
|
|
7
|
-
DnsRecordType[DnsRecordType["AAAA"] = 28] = "AAAA";
|
|
8
|
-
DnsRecordType[DnsRecordType["CAA"] = 257] = "CAA";
|
|
9
|
-
DnsRecordType[DnsRecordType["CNAME"] = 5] = "CNAME";
|
|
10
|
-
DnsRecordType[DnsRecordType["DNAME"] = 39] = "DNAME";
|
|
11
|
-
DnsRecordType[DnsRecordType["MX"] = 15] = "MX";
|
|
12
|
-
DnsRecordType[DnsRecordType["NS"] = 2] = "NS";
|
|
13
|
-
DnsRecordType[DnsRecordType["PTR"] = 12] = "PTR";
|
|
14
|
-
DnsRecordType[DnsRecordType["SOA"] = 6] = "SOA";
|
|
15
|
-
DnsRecordType[DnsRecordType["SPF"] = 99] = "SPF";
|
|
16
|
-
DnsRecordType[DnsRecordType["SRV"] = 33] = "SRV";
|
|
17
|
-
DnsRecordType[DnsRecordType["TXT"] = 16] = "TXT";
|
|
18
|
-
})(DnsRecordType = exports.DnsRecordType || (exports.DnsRecordType = {}));
|
|
19
|
-
//# sourceMappingURL=DnsRecordType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsRecordType.js","sourceRoot":"","sources":["../../../../src/lib/dns/DnsRecordType.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,2CAAK,CAAA;IACL,kDAAS,CAAA;IACT,iDAAS,CAAA;IACT,mDAAS,CAAA;IACT,oDAAU,CAAA;IACV,8CAAO,CAAA;IACP,6CAAM,CAAA;IACN,gDAAQ,CAAA;IACR,+CAAO,CAAA;IACP,gDAAQ,CAAA;IACR,gDAAQ,CAAA;IACR,gDAAQ,CAAA;AACV,CAAC,EAbW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAaxB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsReturnCode.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DnsReturnCode = void 0;
|
|
4
|
-
var DnsReturnCode;
|
|
5
|
-
(function (DnsReturnCode) {
|
|
6
|
-
DnsReturnCode[DnsReturnCode["NoError"] = 0] = "NoError";
|
|
7
|
-
DnsReturnCode[DnsReturnCode["QueryFormatError"] = 1] = "QueryFormatError";
|
|
8
|
-
DnsReturnCode[DnsReturnCode["ServerFailed"] = 2] = "ServerFailed";
|
|
9
|
-
DnsReturnCode[DnsReturnCode["DomainDoesNotExist"] = 3] = "DomainDoesNotExist";
|
|
10
|
-
DnsReturnCode[DnsReturnCode["NotImplemented"] = 4] = "NotImplemented";
|
|
11
|
-
DnsReturnCode[DnsReturnCode["Refused"] = 5] = "Refused";
|
|
12
|
-
DnsReturnCode[DnsReturnCode["NameShouldNotExist"] = 6] = "NameShouldNotExist";
|
|
13
|
-
DnsReturnCode[DnsReturnCode["RRSetShouldNotExist"] = 7] = "RRSetShouldNotExist";
|
|
14
|
-
DnsReturnCode[DnsReturnCode["NotAuthoratative"] = 8] = "NotAuthoratative";
|
|
15
|
-
DnsReturnCode[DnsReturnCode["NotInZone"] = 9] = "NotInZone";
|
|
16
|
-
})(DnsReturnCode || (DnsReturnCode = {}));
|
|
17
|
-
exports.DnsReturnCode = DnsReturnCode;
|
|
18
|
-
//# sourceMappingURL=DnsReturnCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsReturnCode.js","sourceRoot":"","sources":["../../../../src/lib/dns/DnsReturnCode.ts"],"names":[],"mappings":";;;AAAA,IAAK,aAWJ;AAXD,WAAK,aAAa;IAChB,uDAAW,CAAA;IACX,yEAAoB,CAAA;IACpB,iEAAgB,CAAA;IAChB,6EAAsB,CAAA;IACtB,qEAAkB,CAAA;IAClB,uDAAW,CAAA;IACX,6EAAsB,CAAA;IACtB,+EAAuB,CAAA;IACvB,yEAAoB,CAAA;IACpB,2DAAa,CAAA;AACf,CAAC,EAXI,aAAa,KAAb,aAAa,QAWjB;AAEQ,sCAAa"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DnsReturnCode } from './DnsReturnCode';
|
|
2
|
-
import { GoogleDnsResultAnswer } from './GoogleDnsResultAnswer';
|
|
3
|
-
import { GoogleDnsResultQuestion } from './GoogleDnsResultQuestion';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResult.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResult.js","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResult.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultAnswer.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultAnswer.js","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultAnswer.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DnsRecordType } from './DnsRecordType';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultQuestion.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultQuestion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultQuestion.js","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultQuestion.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainExists.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/domainExists.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,QAAA,MAAM,YAAY,YAAmB,MAAM,qBAI1C,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.domainExists = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const DnsReturnCode_1 = require("./DnsReturnCode");
|
|
6
|
-
const domainResolve_1 = require("./domainResolve");
|
|
7
|
-
/**
|
|
8
|
-
* Checks if a domain exists (resolves using DNS)
|
|
9
|
-
* @param domain - string
|
|
10
|
-
* @returns boolean
|
|
11
|
-
*/
|
|
12
|
-
const domainExists = (domain) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
13
|
-
if (domain === undefined)
|
|
14
|
-
return false;
|
|
15
|
-
const dnsResult = yield (0, domainResolve_1.domainResolve)(domain);
|
|
16
|
-
return (dnsResult === null || dnsResult === void 0 ? void 0 : dnsResult.Status) === DnsReturnCode_1.DnsReturnCode.NoError;
|
|
17
|
-
});
|
|
18
|
-
exports.domainExists = domainExists;
|
|
19
|
-
//# sourceMappingURL=domainExists.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainExists.js","sourceRoot":"","sources":["../../../../src/lib/dns/domainExists.ts"],"names":[],"mappings":";;;;AAAA,mDAA+C;AAC/C,mDAA+C;AAE/C;;;;GAIG;AACH,MAAM,YAAY,GAAG,CAAO,MAAe,EAAE,EAAE;IAC7C,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IACtC,MAAM,SAAS,GAAG,MAAM,IAAA,6BAAa,EAAC,MAAM,CAAC,CAAA;IAC7C,OAAO,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,MAAK,6BAAa,CAAC,OAAO,CAAA;AACpD,CAAC,CAAA,CAAA;AAEQ,oCAAY"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DnsRecordType } from './DnsRecordType';
|
|
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").GoogleDnsResult | undefined>;
|
|
8
|
-
export { domainResolve };
|
|
9
|
-
//# sourceMappingURL=domainResolve.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainResolve.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/domainResolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG/C;;;;GAIG;AACH,QAAA,MAAM,aAAa,YAAmB,MAAM,2FAK3C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.domainResolve = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const DnsRecordType_1 = require("./DnsRecordType");
|
|
6
|
-
const googleDnsOverHttps_1 = require("./googleDnsOverHttps");
|
|
7
|
-
/**
|
|
8
|
-
* Resolves DNS information (resolves using DNS)
|
|
9
|
-
* @param domain - string
|
|
10
|
-
* @returns GoogleDnsResult
|
|
11
|
-
*/
|
|
12
|
-
const domainResolve = (domain, type = DnsRecordType_1.DnsRecordType.A) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
13
|
-
if (domain) {
|
|
14
|
-
const dnsResult = yield (0, googleDnsOverHttps_1.googleDnsOverHttps)(domain, type);
|
|
15
|
-
return dnsResult;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
exports.domainResolve = domainResolve;
|
|
19
|
-
//# sourceMappingURL=domainResolve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainResolve.js","sourceRoot":"","sources":["../../../../src/lib/dns/domainResolve.ts"],"names":[],"mappings":";;;;AAAA,mDAA+C;AAC/C,6DAAyD;AAEzD;;;;GAIG;AACH,MAAM,aAAa,GAAG,CAAO,MAAe,EAAE,IAAI,GAAG,6BAAa,CAAC,CAAC,EAAE,EAAE;IACtE,IAAI,MAAM,EAAE;QACV,MAAM,SAAS,GAAG,MAAM,IAAA,uCAAkB,EAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACxD,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA,CAAA;AAEQ,sCAAa"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DnsRecordType } from './DnsRecordType';
|
|
2
|
-
import { GoogleDnsResult } from './GoogleDnsResult';
|
|
3
|
-
declare const googleDnsOverHttps: (name: string, type?: DnsRecordType) => Promise<GoogleDnsResult>;
|
|
4
|
-
export { googleDnsOverHttps };
|
|
5
|
-
//# sourceMappingURL=googleDnsOverHttps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"googleDnsOverHttps.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/googleDnsOverHttps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,QAAA,MAAM,kBAAkB,SAAgB,MAAM,mDAE7C,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.googleDnsOverHttps = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const axios_1 = tslib_1.__importDefault(require("axios"));
|
|
6
|
-
const DnsRecordType_1 = require("./DnsRecordType");
|
|
7
|
-
const googleDnsOverHttps = (name, type = DnsRecordType_1.DnsRecordType.A) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
8
|
-
return (yield axios_1.default.get(`https://dns.google/resolve?name=${name}&type=${type}`)).data;
|
|
9
|
-
});
|
|
10
|
-
exports.googleDnsOverHttps = googleDnsOverHttps;
|
|
11
|
-
//# sourceMappingURL=googleDnsOverHttps.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"googleDnsOverHttps.js","sourceRoot":"","sources":["../../../../src/lib/dns/googleDnsOverHttps.ts"],"names":[],"mappings":";;;;AAAA,0DAAyB;AAEzB,mDAA+C;AAG/C,MAAM,kBAAkB,GAAG,CAAO,IAAY,EAAE,IAAI,GAAG,6BAAa,CAAC,CAAC,EAAE,EAAE;IACxE,OAAO,CAAC,MAAM,eAAK,CAAC,GAAG,CAAkB,mCAAmC,IAAI,SAAS,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAA;AACxG,CAAC,CAAA,CAAA;AAEQ,gDAAkB"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './DnsRecordType';
|
|
2
|
-
export * from './DnsReturnCode';
|
|
3
|
-
export * from './domainExists';
|
|
4
|
-
export * from './domainResolve';
|
|
5
|
-
export * from './googleDnsOverHttps';
|
|
6
|
-
export * from './GoogleDnsResult';
|
|
7
|
-
export * from './GoogleDnsResultAnswer';
|
|
8
|
-
export * from './GoogleDnsResultQuestion';
|
|
9
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,2BAA2B,CAAA"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./DnsRecordType"), exports);
|
|
5
|
-
tslib_1.__exportStar(require("./DnsReturnCode"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./domainExists"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./domainResolve"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./googleDnsOverHttps"), exports);
|
|
9
|
-
tslib_1.__exportStar(require("./GoogleDnsResult"), exports);
|
|
10
|
-
tslib_1.__exportStar(require("./GoogleDnsResultAnswer"), exports);
|
|
11
|
-
tslib_1.__exportStar(require("./GoogleDnsResultQuestion"), exports);
|
|
12
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/dns/index.ts"],"names":[],"mappings":";;;AAAA,0DAA+B;AAC/B,0DAA+B;AAC/B,yDAA8B;AAC9B,0DAA+B;AAC/B,+DAAoC;AACpC,4DAAiC;AACjC,kEAAuC;AACvC,oEAAyC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsRecordType.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/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"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export var DnsRecordType;
|
|
2
|
-
(function (DnsRecordType) {
|
|
3
|
-
DnsRecordType[DnsRecordType["A"] = 1] = "A";
|
|
4
|
-
DnsRecordType[DnsRecordType["AAAA"] = 28] = "AAAA";
|
|
5
|
-
DnsRecordType[DnsRecordType["CAA"] = 257] = "CAA";
|
|
6
|
-
DnsRecordType[DnsRecordType["CNAME"] = 5] = "CNAME";
|
|
7
|
-
DnsRecordType[DnsRecordType["DNAME"] = 39] = "DNAME";
|
|
8
|
-
DnsRecordType[DnsRecordType["MX"] = 15] = "MX";
|
|
9
|
-
DnsRecordType[DnsRecordType["NS"] = 2] = "NS";
|
|
10
|
-
DnsRecordType[DnsRecordType["PTR"] = 12] = "PTR";
|
|
11
|
-
DnsRecordType[DnsRecordType["SOA"] = 6] = "SOA";
|
|
12
|
-
DnsRecordType[DnsRecordType["SPF"] = 99] = "SPF";
|
|
13
|
-
DnsRecordType[DnsRecordType["SRV"] = 33] = "SRV";
|
|
14
|
-
DnsRecordType[DnsRecordType["TXT"] = 16] = "TXT";
|
|
15
|
-
})(DnsRecordType || (DnsRecordType = {}));
|
|
16
|
-
//# sourceMappingURL=DnsRecordType.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsRecordType.js","sourceRoot":"","sources":["../../../../src/lib/dns/DnsRecordType.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,aAaX;AAbD,WAAY,aAAa;IACvB,2CAAK,CAAA;IACL,kDAAS,CAAA;IACT,iDAAS,CAAA;IACT,mDAAS,CAAA;IACT,oDAAU,CAAA;IACV,8CAAO,CAAA;IACP,6CAAM,CAAA;IACN,gDAAQ,CAAA;IACR,+CAAO,CAAA;IACP,gDAAQ,CAAA;IACR,gDAAQ,CAAA;IACR,gDAAQ,CAAA;AACV,CAAC,EAbW,aAAa,KAAb,aAAa,QAaxB"}
|
|
@@ -1,14 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsReturnCode.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/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"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
var DnsReturnCode;
|
|
2
|
-
(function (DnsReturnCode) {
|
|
3
|
-
DnsReturnCode[DnsReturnCode["NoError"] = 0] = "NoError";
|
|
4
|
-
DnsReturnCode[DnsReturnCode["QueryFormatError"] = 1] = "QueryFormatError";
|
|
5
|
-
DnsReturnCode[DnsReturnCode["ServerFailed"] = 2] = "ServerFailed";
|
|
6
|
-
DnsReturnCode[DnsReturnCode["DomainDoesNotExist"] = 3] = "DomainDoesNotExist";
|
|
7
|
-
DnsReturnCode[DnsReturnCode["NotImplemented"] = 4] = "NotImplemented";
|
|
8
|
-
DnsReturnCode[DnsReturnCode["Refused"] = 5] = "Refused";
|
|
9
|
-
DnsReturnCode[DnsReturnCode["NameShouldNotExist"] = 6] = "NameShouldNotExist";
|
|
10
|
-
DnsReturnCode[DnsReturnCode["RRSetShouldNotExist"] = 7] = "RRSetShouldNotExist";
|
|
11
|
-
DnsReturnCode[DnsReturnCode["NotAuthoratative"] = 8] = "NotAuthoratative";
|
|
12
|
-
DnsReturnCode[DnsReturnCode["NotInZone"] = 9] = "NotInZone";
|
|
13
|
-
})(DnsReturnCode || (DnsReturnCode = {}));
|
|
14
|
-
export { DnsReturnCode };
|
|
15
|
-
//# sourceMappingURL=DnsReturnCode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DnsReturnCode.js","sourceRoot":"","sources":["../../../../src/lib/dns/DnsReturnCode.ts"],"names":[],"mappings":"AAAA,IAAK,aAWJ;AAXD,WAAK,aAAa;IAChB,uDAAW,CAAA;IACX,yEAAoB,CAAA;IACpB,iEAAgB,CAAA;IAChB,6EAAsB,CAAA;IACtB,qEAAkB,CAAA;IAClB,uDAAW,CAAA;IACX,6EAAsB,CAAA;IACtB,+EAAuB,CAAA;IACvB,yEAAoB,CAAA;IACpB,2DAAa,CAAA;AACf,CAAC,EAXI,aAAa,KAAb,aAAa,QAWjB;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { DnsReturnCode } from './DnsReturnCode';
|
|
2
|
-
import { GoogleDnsResultAnswer } from './GoogleDnsResultAnswer';
|
|
3
|
-
import { GoogleDnsResultQuestion } from './GoogleDnsResultQuestion';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResult.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResult.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AAEnE,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResult.js","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResult.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultAnswer.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultAnswer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultAnswer.js","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultAnswer.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DnsRecordType } from './DnsRecordType';
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultQuestion.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultQuestion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C,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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GoogleDnsResultQuestion.js","sourceRoot":"","sources":["../../../../src/lib/dns/GoogleDnsResultQuestion.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainExists.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/domainExists.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,QAAA,MAAM,YAAY,YAAmB,MAAM,qBAI1C,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DnsReturnCode } from './DnsReturnCode';
|
|
2
|
-
import { domainResolve } from './domainResolve';
|
|
3
|
-
/**
|
|
4
|
-
* Checks if a domain exists (resolves using DNS)
|
|
5
|
-
* @param domain - string
|
|
6
|
-
* @returns boolean
|
|
7
|
-
*/
|
|
8
|
-
const domainExists = async (domain) => {
|
|
9
|
-
if (domain === undefined)
|
|
10
|
-
return false;
|
|
11
|
-
const dnsResult = await domainResolve(domain);
|
|
12
|
-
return dnsResult?.Status === DnsReturnCode.NoError;
|
|
13
|
-
};
|
|
14
|
-
export { domainExists };
|
|
15
|
-
//# sourceMappingURL=domainExists.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainExists.js","sourceRoot":"","sources":["../../../../src/lib/dns/domainExists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;GAIG;AACH,MAAM,YAAY,GAAG,KAAK,EAAE,MAAe,EAAE,EAAE;IAC7C,IAAI,MAAM,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IACtC,MAAM,SAAS,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,CAAA;IAC7C,OAAO,SAAS,EAAE,MAAM,KAAK,aAAa,CAAC,OAAO,CAAA;AACpD,CAAC,CAAA;AAED,OAAO,EAAE,YAAY,EAAE,CAAA"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { DnsRecordType } from './DnsRecordType';
|
|
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").GoogleDnsResult | undefined>;
|
|
8
|
-
export { domainResolve };
|
|
9
|
-
//# sourceMappingURL=domainResolve.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainResolve.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/domainResolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAG/C;;;;GAIG;AACH,QAAA,MAAM,aAAa,YAAmB,MAAM,2FAK3C,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { DnsRecordType } from './DnsRecordType';
|
|
2
|
-
import { googleDnsOverHttps } from './googleDnsOverHttps';
|
|
3
|
-
/**
|
|
4
|
-
* Resolves DNS information (resolves using DNS)
|
|
5
|
-
* @param domain - string
|
|
6
|
-
* @returns GoogleDnsResult
|
|
7
|
-
*/
|
|
8
|
-
const domainResolve = async (domain, type = DnsRecordType.A) => {
|
|
9
|
-
if (domain) {
|
|
10
|
-
const dnsResult = await googleDnsOverHttps(domain, type);
|
|
11
|
-
return dnsResult;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export { domainResolve };
|
|
15
|
-
//# sourceMappingURL=domainResolve.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"domainResolve.js","sourceRoot":"","sources":["../../../../src/lib/dns/domainResolve.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAEzD;;;;GAIG;AACH,MAAM,aAAa,GAAG,KAAK,EAAE,MAAe,EAAE,IAAI,GAAG,aAAa,CAAC,CAAC,EAAE,EAAE;IACtE,IAAI,MAAM,EAAE;QACV,MAAM,SAAS,GAAG,MAAM,kBAAkB,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;QACxD,OAAO,SAAS,CAAA;KACjB;AACH,CAAC,CAAA;AAED,OAAO,EAAE,aAAa,EAAE,CAAA"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { DnsRecordType } from './DnsRecordType';
|
|
2
|
-
import { GoogleDnsResult } from './GoogleDnsResult';
|
|
3
|
-
declare const googleDnsOverHttps: (name: string, type?: DnsRecordType) => Promise<GoogleDnsResult>;
|
|
4
|
-
export { googleDnsOverHttps };
|
|
5
|
-
//# sourceMappingURL=googleDnsOverHttps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"googleDnsOverHttps.d.ts","sourceRoot":"","sources":["../../../../src/lib/dns/googleDnsOverHttps.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAEnD,QAAA,MAAM,kBAAkB,SAAgB,MAAM,mDAE7C,CAAA;AAED,OAAO,EAAE,kBAAkB,EAAE,CAAA"}
|