domain-alive 0.1.10 → 0.1.11
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/index.js +8 -14
- package/dist/index.mjs +8 -14
- package/package.json +10 -10
package/dist/index.js
CHANGED
|
@@ -1181,7 +1181,8 @@ const whoiserNoWhoisSymbol = Symbol('"whoiser" library returns "No WHOIS data fo
|
|
|
1181
1181
|
throw error;
|
|
1182
1182
|
}), retryOption);
|
|
1183
1183
|
} catch (e) {
|
|
1184
|
-
|
|
1184
|
+
const errorMessage = extractErrorMessage.extractErrorMessage(e, true, false) || 'unknown error';
|
|
1185
|
+
errorLog$1('[whois] %s %s', registerableDomain, errorMessage);
|
|
1185
1186
|
return whoisErrorCountAsAlive;
|
|
1186
1187
|
}
|
|
1187
1188
|
if (whois === whoiserTLDNotSupportedSymbol) {
|
|
@@ -1370,7 +1371,8 @@ tencentcloud.com. 86400 IN SOA ns-tel1.qq.com. webmaster.qq.com. 165111089
|
|
|
1370
1371
|
confirmations++;
|
|
1371
1372
|
}
|
|
1372
1373
|
} catch (e) {
|
|
1373
|
-
|
|
1374
|
+
const errorMessage = extractErrorMessage.extractErrorMessage(e, true, false) || 'unknown error';
|
|
1375
|
+
errorNsLog('[NS] %s error (%s) %s', domain, resolve.server, errorMessage);
|
|
1374
1376
|
} finally{
|
|
1375
1377
|
attempts++;
|
|
1376
1378
|
log$1('[NS] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
|
|
@@ -1470,12 +1472,8 @@ function createDomainAliveChecker(options = {}) {
|
|
|
1470
1472
|
confirmations++;
|
|
1471
1473
|
}
|
|
1472
1474
|
} catch (e) {
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
dns: resolve.server
|
|
1476
|
-
});
|
|
1477
|
-
}
|
|
1478
|
-
errorLog('[A] %s error %O', domain, e);
|
|
1475
|
+
const errorMessage = extractErrorMessage.extractErrorMessage(e, true, false) || 'unknown error';
|
|
1476
|
+
errorLog('[A] %s error (%s) %s', domain, resolve.server, errorMessage);
|
|
1479
1477
|
} finally{
|
|
1480
1478
|
attempts++;
|
|
1481
1479
|
log('[A] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
|
|
@@ -1503,12 +1501,8 @@ function createDomainAliveChecker(options = {}) {
|
|
|
1503
1501
|
confirmations++;
|
|
1504
1502
|
}
|
|
1505
1503
|
} catch (e) {
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
dns: resolve.server
|
|
1509
|
-
});
|
|
1510
|
-
}
|
|
1511
|
-
errorLog('[AAAA] %s error %O', domain, e);
|
|
1504
|
+
const errorMessage = extractErrorMessage.extractErrorMessage(e, true, false) || 'unknown error';
|
|
1505
|
+
errorLog('[AAAA] %s error (%s) %s', domain, resolve.server, errorMessage);
|
|
1512
1506
|
} finally{
|
|
1513
1507
|
attempts++;
|
|
1514
1508
|
log('[AAAA] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
|
package/dist/index.mjs
CHANGED
|
@@ -1174,7 +1174,8 @@ const whoiserNoWhoisSymbol = Symbol('"whoiser" library returns "No WHOIS data fo
|
|
|
1174
1174
|
throw error;
|
|
1175
1175
|
}), retryOption);
|
|
1176
1176
|
} catch (e) {
|
|
1177
|
-
|
|
1177
|
+
const errorMessage = extractErrorMessage(e, true, false) || 'unknown error';
|
|
1178
|
+
errorLog$1('[whois] %s %s', registerableDomain, errorMessage);
|
|
1178
1179
|
return whoisErrorCountAsAlive;
|
|
1179
1180
|
}
|
|
1180
1181
|
if (whois === whoiserTLDNotSupportedSymbol) {
|
|
@@ -1363,7 +1364,8 @@ tencentcloud.com. 86400 IN SOA ns-tel1.qq.com. webmaster.qq.com. 165111089
|
|
|
1363
1364
|
confirmations++;
|
|
1364
1365
|
}
|
|
1365
1366
|
} catch (e) {
|
|
1366
|
-
|
|
1367
|
+
const errorMessage = extractErrorMessage(e, true, false) || 'unknown error';
|
|
1368
|
+
errorNsLog('[NS] %s error (%s) %s', domain, resolve.server, errorMessage);
|
|
1367
1369
|
} finally{
|
|
1368
1370
|
attempts++;
|
|
1369
1371
|
log$1('[NS] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
|
|
@@ -1463,12 +1465,8 @@ function createDomainAliveChecker(options = {}) {
|
|
|
1463
1465
|
confirmations++;
|
|
1464
1466
|
}
|
|
1465
1467
|
} catch (e) {
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
dns: resolve.server
|
|
1469
|
-
});
|
|
1470
|
-
}
|
|
1471
|
-
errorLog('[A] %s error %O', domain, e);
|
|
1468
|
+
const errorMessage = extractErrorMessage(e, true, false) || 'unknown error';
|
|
1469
|
+
errorLog('[A] %s error (%s) %s', domain, resolve.server, errorMessage);
|
|
1472
1470
|
} finally{
|
|
1473
1471
|
attempts++;
|
|
1474
1472
|
log('[A] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
|
|
@@ -1496,12 +1494,8 @@ function createDomainAliveChecker(options = {}) {
|
|
|
1496
1494
|
confirmations++;
|
|
1497
1495
|
}
|
|
1498
1496
|
} catch (e) {
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
dns: resolve.server
|
|
1502
|
-
});
|
|
1503
|
-
}
|
|
1504
|
-
errorLog('[AAAA] %s error %O', domain, e);
|
|
1497
|
+
const errorMessage = extractErrorMessage(e, true, false) || 'unknown error';
|
|
1498
|
+
errorLog('[AAAA] %s error (%s) %s', domain, resolve.server, errorMessage);
|
|
1505
1499
|
} finally{
|
|
1506
1500
|
attempts++;
|
|
1507
1501
|
log('[AAAA] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "domain-alive",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"description": "A Node.js library for checking if an FQDN (Fully Qualified Domain Name) is alive or not, uses a combination techniques of `NS` records, WHOIS/RDAP lookups, `A/AAAA` records",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,20 +32,20 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"debug": "4.4.1",
|
|
34
34
|
"dns2": "github:lsongdev/node-dns#3adb7e91b3101c0e4f43ebaca3a568269ea04d11",
|
|
35
|
-
"foxts": "^
|
|
36
|
-
"tldts": "^7.0.
|
|
35
|
+
"foxts": "^5.0.0",
|
|
36
|
+
"tldts": "^7.0.17"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@eslint-sukka/node": "^
|
|
39
|
+
"@eslint-sukka/node": "^8.0.2",
|
|
40
40
|
"@swc-node/register": "^1.11.1",
|
|
41
41
|
"@types/debug": "^4.1.12",
|
|
42
42
|
"@types/dns2": "^2.0.10",
|
|
43
|
-
"@types/node": "^24.
|
|
44
|
-
"bumpp": "^10.
|
|
45
|
-
"bunchee": "^6.6.
|
|
46
|
-
"eslint": "^9.
|
|
47
|
-
"eslint-config-sukka": "^
|
|
48
|
-
"eslint-formatter-sukka": "^
|
|
43
|
+
"@types/node": "^24.10.0",
|
|
44
|
+
"bumpp": "^10.3.1",
|
|
45
|
+
"bunchee": "^6.6.2",
|
|
46
|
+
"eslint": "^9.39.1",
|
|
47
|
+
"eslint-config-sukka": "^8.0.2",
|
|
48
|
+
"eslint-formatter-sukka": "^8.0.2",
|
|
49
49
|
"typescript": "^5.9.3",
|
|
50
50
|
"whoiser": "2.0.0-beta.8"
|
|
51
51
|
},
|