domain-alive 0.1.6 → 0.1.7

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 CHANGED
@@ -1048,6 +1048,7 @@ const misspelledWhoisServer = {
1048
1048
  }
1049
1049
 
1050
1050
  const log$2 = debug__default.default('domain-alive:whois');
1051
+ const errorLog$1 = debug__default.default('domain-alive:error:whois');
1051
1052
  const getIcannTldOptions = {
1052
1053
  allowIcannDomains: true,
1053
1054
  // we want to extract "github.io" out of "sukkaw.github.io" even though github.io is in the
@@ -1180,7 +1181,7 @@ const whoiserNoWhoisSymbol = Symbol('"whoiser" library returns "No WHOIS data fo
1180
1181
  throw error;
1181
1182
  }), retryOption);
1182
1183
  } catch (e) {
1183
- log$2('[whois] %s %O', registerableDomain, e);
1184
+ errorLog$1('[whois] %s %O', registerableDomain, e);
1184
1185
  return whoisErrorCountAsAlive;
1185
1186
  }
1186
1187
  if (whois === whoiserTLDNotSupportedSymbol) {
@@ -1280,6 +1281,7 @@ async function cacheApply(cache, key, fn) {
1280
1281
 
1281
1282
  const log$1 = debug__default.default('domain-alive:is-registerable-domain-alive');
1282
1283
  const deadLog$1 = debug__default.default('domain-alive:dead-domain');
1284
+ const errorNsLog = debug__default.default('domain-alive:error:ns');
1283
1285
  const getRegisterableDomainTldtsOption = {
1284
1286
  allowIcannDomains: true,
1285
1287
  // we want to extract "github.io" out of "sukkaw.github.io" even though github.io is in the
@@ -1368,7 +1370,7 @@ tencentcloud.com. 86400 IN SOA ns-tel1.qq.com. webmaster.qq.com. 165111089
1368
1370
  confirmations++;
1369
1371
  }
1370
1372
  } catch (e) {
1371
- log$1('[NS] %s error %O', domain, e);
1373
+ errorNsLog('[NS] %s error %O', domain, e);
1372
1374
  } finally{
1373
1375
  attempts++;
1374
1376
  log$1('[NS] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
@@ -1401,6 +1403,7 @@ tencentcloud.com. 86400 IN SOA ns-tel1.qq.com. webmaster.qq.com. 165111089
1401
1403
 
1402
1404
  const log = debug__default.default('domain-alive:is-domain-alive');
1403
1405
  const deadLog = debug__default.default('domain-alive:dead-domain');
1406
+ const errorLog = debug__default.default('domain-alive:error:dns');
1404
1407
  const sharedNullishResult = Object.freeze({
1405
1408
  registerableDomain: null,
1406
1409
  registerableDomainAlive: false,
@@ -1472,7 +1475,7 @@ function createDomainAliveChecker(options = {}) {
1472
1475
  dns: resolve.server
1473
1476
  });
1474
1477
  }
1475
- log('[A] %s error %O', domain, e);
1478
+ errorLog('[A] %s error %O', domain, e);
1476
1479
  } finally{
1477
1480
  attempts++;
1478
1481
  log('[A] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
@@ -1505,7 +1508,7 @@ function createDomainAliveChecker(options = {}) {
1505
1508
  dns: resolve.server
1506
1509
  });
1507
1510
  }
1508
- log('[AAAA] %s error %O', domain, e);
1511
+ errorLog('[AAAA] %s error %O', domain, e);
1509
1512
  } finally{
1510
1513
  attempts++;
1511
1514
  log('[AAAA] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
package/dist/index.mjs CHANGED
@@ -1040,6 +1040,7 @@ const misspelledWhoisServer = {
1040
1040
  }
1041
1041
 
1042
1042
  const log$2 = debug('domain-alive:whois');
1043
+ const errorLog$1 = debug('domain-alive:error:whois');
1043
1044
  const getIcannTldOptions = {
1044
1045
  allowIcannDomains: true,
1045
1046
  // we want to extract "github.io" out of "sukkaw.github.io" even though github.io is in the
@@ -1172,7 +1173,7 @@ const whoiserNoWhoisSymbol = Symbol('"whoiser" library returns "No WHOIS data fo
1172
1173
  throw error;
1173
1174
  }), retryOption);
1174
1175
  } catch (e) {
1175
- log$2('[whois] %s %O', registerableDomain, e);
1176
+ errorLog$1('[whois] %s %O', registerableDomain, e);
1176
1177
  return whoisErrorCountAsAlive;
1177
1178
  }
1178
1179
  if (whois === whoiserTLDNotSupportedSymbol) {
@@ -1272,6 +1273,7 @@ async function cacheApply(cache, key, fn) {
1272
1273
 
1273
1274
  const log$1 = debug('domain-alive:is-registerable-domain-alive');
1274
1275
  const deadLog$1 = debug('domain-alive:dead-domain');
1276
+ const errorNsLog = debug('domain-alive:error:ns');
1275
1277
  const getRegisterableDomainTldtsOption = {
1276
1278
  allowIcannDomains: true,
1277
1279
  // we want to extract "github.io" out of "sukkaw.github.io" even though github.io is in the
@@ -1360,7 +1362,7 @@ tencentcloud.com. 86400 IN SOA ns-tel1.qq.com. webmaster.qq.com. 165111089
1360
1362
  confirmations++;
1361
1363
  }
1362
1364
  } catch (e) {
1363
- log$1('[NS] %s error %O', domain, e);
1365
+ errorNsLog('[NS] %s error %O', domain, e);
1364
1366
  } finally{
1365
1367
  attempts++;
1366
1368
  log$1('[NS] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
@@ -1393,6 +1395,7 @@ tencentcloud.com. 86400 IN SOA ns-tel1.qq.com. webmaster.qq.com. 165111089
1393
1395
 
1394
1396
  const log = debug('domain-alive:is-domain-alive');
1395
1397
  const deadLog = debug('domain-alive:dead-domain');
1398
+ const errorLog = debug('domain-alive:error:dns');
1396
1399
  const sharedNullishResult = Object.freeze({
1397
1400
  registerableDomain: null,
1398
1401
  registerableDomainAlive: false,
@@ -1464,7 +1467,7 @@ function createDomainAliveChecker(options = {}) {
1464
1467
  dns: resolve.server
1465
1468
  });
1466
1469
  }
1467
- log('[A] %s error %O', domain, e);
1470
+ errorLog('[A] %s error %O', domain, e);
1468
1471
  } finally{
1469
1472
  attempts++;
1470
1473
  log('[A] %s %d %d/%d', domain, confirmations, attempts, maxAttempts);
@@ -1497,7 +1500,7 @@ function createDomainAliveChecker(options = {}) {
1497
1500
  dns: resolve.server
1498
1501
  });
1499
1502
  }
1500
- log('[AAAA] %s error %O', domain, e);
1503
+ errorLog('[AAAA] %s error %O', domain, e);
1501
1504
  } finally{
1502
1505
  attempts++;
1503
1506
  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.6",
3
+ "version": "0.1.7",
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",
@@ -31,25 +31,25 @@
31
31
  "license": "MIT",
32
32
  "dependencies": {
33
33
  "async-retry": "^1.3.3",
34
- "debug": "^4.4.1",
34
+ "debug": "4.4.1",
35
35
  "dns2": "github:lsongdev/node-dns#3adb7e91b3101c0e4f43ebaca3a568269ea04d11",
36
- "foxts": "^3.12.0",
36
+ "foxts": "^3.13.0",
37
37
  "punycode": "^2.3.1",
38
- "tldts": "^7.0.12"
38
+ "tldts": "^7.0.14"
39
39
  },
40
40
  "devDependencies": {
41
- "@eslint-sukka/node": "^6.23.1",
41
+ "@eslint-sukka/node": "^7.0.2",
42
42
  "@swc-node/register": "^1.11.1",
43
43
  "@types/async-retry": "^1.4.9",
44
44
  "@types/debug": "^4.1.12",
45
45
  "@types/dns2": "^2.0.10",
46
- "@types/node": "^24.3.0",
46
+ "@types/node": "^24.3.3",
47
47
  "@types/punycode": "^2.1.4",
48
48
  "bumpp": "^10.2.3",
49
49
  "bunchee": "^6.6.0",
50
- "eslint": "^9.34.0",
51
- "eslint-config-sukka": "^6.23.1",
52
- "eslint-formatter-sukka": "^6.23.1",
50
+ "eslint": "^9.35.0",
51
+ "eslint-config-sukka": "^7.0.2",
52
+ "eslint-formatter-sukka": "^7.0.2",
53
53
  "typescript": "^5.9.2",
54
54
  "whoiser": "2.0.0-beta.8"
55
55
  },