doomain 0.1.21 → 0.1.23
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 +59 -2
- package/bin/dev.js +3 -1
- package/bin/ensure-current-manifest.js +18 -0
- package/bin/run.js +4 -1
- package/dist/commands/dns/delete.d.ts +1 -0
- package/dist/commands/dns/delete.js +1 -0
- package/dist/commands/dns/diagnose.d.ts +16 -0
- package/dist/commands/dns/diagnose.js +49 -0
- package/dist/commands/dns/point.js +17 -0
- package/dist/commands/dns/remove.d.ts +18 -0
- package/dist/commands/dns/remove.js +77 -0
- package/dist/commands/providers/status.js +1 -2
- package/dist/commands/version.d.ts +5 -0
- package/dist/commands/version.js +8 -0
- package/dist/lib/command-schema.d.ts +1 -1
- package/dist/lib/command-schema.js +69 -1
- package/dist/lib/diagnose-dns.d.ts +53 -0
- package/dist/lib/diagnose-dns.js +156 -0
- package/dist/lib/dns-propagation.d.ts +45 -0
- package/dist/lib/dns-propagation.js +114 -0
- package/dist/lib/dns-reconciliation.d.ts +31 -0
- package/dist/lib/dns-reconciliation.js +53 -0
- package/dist/lib/dns-records.d.ts +18 -0
- package/dist/lib/dns-records.js +73 -0
- package/dist/lib/domain-provider.js +1 -1
- package/dist/lib/errors.d.ts +1 -1
- package/dist/lib/point-domain.d.ts +6 -3
- package/dist/lib/point-domain.js +36 -70
- package/dist/lib/providers/hostinger/index.d.ts +1 -0
- package/dist/lib/providers/hostinger/index.js +46 -10
- package/dist/lib/providers/spaceship/index.js +16 -7
- package/dist/lib/providers/status.d.ts +3 -0
- package/dist/lib/providers/status.js +2 -0
- package/dist/lib/remove-domain.d.ts +38 -0
- package/dist/lib/remove-domain.js +125 -0
- package/oclif.manifest.json +264 -1
- package/package.json +9 -2
package/oclif.manifest.json
CHANGED
|
@@ -259,6 +259,26 @@
|
|
|
259
259
|
"verify.js"
|
|
260
260
|
]
|
|
261
261
|
},
|
|
262
|
+
"version": {
|
|
263
|
+
"aliases": [],
|
|
264
|
+
"args": {},
|
|
265
|
+
"description": "Display the installed doomain version.",
|
|
266
|
+
"flags": {},
|
|
267
|
+
"hasDynamicHelp": false,
|
|
268
|
+
"hiddenAliases": [],
|
|
269
|
+
"id": "version",
|
|
270
|
+
"pluginAlias": "doomain",
|
|
271
|
+
"pluginName": "doomain",
|
|
272
|
+
"pluginType": "core",
|
|
273
|
+
"strict": true,
|
|
274
|
+
"enableJsonFlag": false,
|
|
275
|
+
"isESM": true,
|
|
276
|
+
"relativePath": [
|
|
277
|
+
"dist",
|
|
278
|
+
"commands",
|
|
279
|
+
"version.js"
|
|
280
|
+
]
|
|
281
|
+
},
|
|
262
282
|
"wizard": {
|
|
263
283
|
"aliases": [],
|
|
264
284
|
"args": {},
|
|
@@ -374,6 +394,163 @@
|
|
|
374
394
|
"vercel.js"
|
|
375
395
|
]
|
|
376
396
|
},
|
|
397
|
+
"dns:delete": {
|
|
398
|
+
"aliases": [],
|
|
399
|
+
"args": {
|
|
400
|
+
"domain": {
|
|
401
|
+
"description": "Fully qualified DNS name whose record should be removed.",
|
|
402
|
+
"name": "domain",
|
|
403
|
+
"required": true
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"description": "Safely remove exact DNS records and verify their absence.",
|
|
407
|
+
"examples": [
|
|
408
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --value 203.0.113.10 --dry-run --json",
|
|
409
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --all-matching --json"
|
|
410
|
+
],
|
|
411
|
+
"flags": {
|
|
412
|
+
"account": {
|
|
413
|
+
"description": "DNS provider profile/account alias. Defaults to the provider default account.",
|
|
414
|
+
"name": "account",
|
|
415
|
+
"hasDynamicHelp": false,
|
|
416
|
+
"multiple": false,
|
|
417
|
+
"type": "option"
|
|
418
|
+
},
|
|
419
|
+
"all-matching": {
|
|
420
|
+
"description": "Delete every record matching the name and type (and value, if set).",
|
|
421
|
+
"name": "all-matching",
|
|
422
|
+
"allowNo": false,
|
|
423
|
+
"type": "boolean"
|
|
424
|
+
},
|
|
425
|
+
"dry-run": {
|
|
426
|
+
"description": "Preview the exact records without deleting them.",
|
|
427
|
+
"name": "dry-run",
|
|
428
|
+
"allowNo": false,
|
|
429
|
+
"type": "boolean"
|
|
430
|
+
},
|
|
431
|
+
"json": {
|
|
432
|
+
"description": "Output a single JSON object and never prompt.",
|
|
433
|
+
"name": "json",
|
|
434
|
+
"allowNo": false,
|
|
435
|
+
"type": "boolean"
|
|
436
|
+
},
|
|
437
|
+
"provider": {
|
|
438
|
+
"description": "DNS provider id. Inferred from the target domain when omitted.",
|
|
439
|
+
"name": "provider",
|
|
440
|
+
"hasDynamicHelp": false,
|
|
441
|
+
"multiple": false,
|
|
442
|
+
"type": "option"
|
|
443
|
+
},
|
|
444
|
+
"type": {
|
|
445
|
+
"description": "DNS record type to remove.",
|
|
446
|
+
"name": "type",
|
|
447
|
+
"required": true,
|
|
448
|
+
"hasDynamicHelp": false,
|
|
449
|
+
"multiple": false,
|
|
450
|
+
"options": [
|
|
451
|
+
"A",
|
|
452
|
+
"AAAA",
|
|
453
|
+
"CNAME",
|
|
454
|
+
"MX",
|
|
455
|
+
"TXT"
|
|
456
|
+
],
|
|
457
|
+
"type": "option"
|
|
458
|
+
},
|
|
459
|
+
"value": {
|
|
460
|
+
"description": "Expected record value. Required unless --all-matching is passed.",
|
|
461
|
+
"name": "value",
|
|
462
|
+
"hasDynamicHelp": false,
|
|
463
|
+
"multiple": false,
|
|
464
|
+
"type": "option"
|
|
465
|
+
}
|
|
466
|
+
},
|
|
467
|
+
"hasDynamicHelp": false,
|
|
468
|
+
"hiddenAliases": [],
|
|
469
|
+
"id": "dns:delete",
|
|
470
|
+
"pluginAlias": "doomain",
|
|
471
|
+
"pluginName": "doomain",
|
|
472
|
+
"pluginType": "core",
|
|
473
|
+
"strict": true,
|
|
474
|
+
"enableJsonFlag": false,
|
|
475
|
+
"isESM": true,
|
|
476
|
+
"relativePath": [
|
|
477
|
+
"dist",
|
|
478
|
+
"commands",
|
|
479
|
+
"dns",
|
|
480
|
+
"delete.js"
|
|
481
|
+
]
|
|
482
|
+
},
|
|
483
|
+
"dns:diagnose": {
|
|
484
|
+
"aliases": [],
|
|
485
|
+
"args": {
|
|
486
|
+
"domain": {
|
|
487
|
+
"description": "Fully qualified DNS name to diagnose.",
|
|
488
|
+
"name": "domain",
|
|
489
|
+
"required": true
|
|
490
|
+
}
|
|
491
|
+
},
|
|
492
|
+
"description": "Compare DNS provider records with system and public resolver answers.",
|
|
493
|
+
"examples": [
|
|
494
|
+
"<%= config.bin %> <%= command.id %> example.com --json",
|
|
495
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --target 203.0.113.10 --json"
|
|
496
|
+
],
|
|
497
|
+
"flags": {
|
|
498
|
+
"account": {
|
|
499
|
+
"description": "DNS provider profile/account alias. Defaults to the provider default account.",
|
|
500
|
+
"name": "account",
|
|
501
|
+
"hasDynamicHelp": false,
|
|
502
|
+
"multiple": false,
|
|
503
|
+
"type": "option"
|
|
504
|
+
},
|
|
505
|
+
"json": {
|
|
506
|
+
"description": "Output a single JSON object and never prompt.",
|
|
507
|
+
"name": "json",
|
|
508
|
+
"allowNo": false,
|
|
509
|
+
"type": "boolean"
|
|
510
|
+
},
|
|
511
|
+
"provider": {
|
|
512
|
+
"description": "DNS provider id. Inferred from the target domain when omitted.",
|
|
513
|
+
"name": "provider",
|
|
514
|
+
"hasDynamicHelp": false,
|
|
515
|
+
"multiple": false,
|
|
516
|
+
"type": "option"
|
|
517
|
+
},
|
|
518
|
+
"target": {
|
|
519
|
+
"description": "Expected IP address or canonical hostname.",
|
|
520
|
+
"name": "target",
|
|
521
|
+
"hasDynamicHelp": false,
|
|
522
|
+
"multiple": false,
|
|
523
|
+
"type": "option"
|
|
524
|
+
},
|
|
525
|
+
"type": {
|
|
526
|
+
"description": "Record type to compare.",
|
|
527
|
+
"name": "type",
|
|
528
|
+
"hasDynamicHelp": false,
|
|
529
|
+
"multiple": false,
|
|
530
|
+
"options": [
|
|
531
|
+
"A",
|
|
532
|
+
"AAAA",
|
|
533
|
+
"CNAME"
|
|
534
|
+
],
|
|
535
|
+
"type": "option"
|
|
536
|
+
}
|
|
537
|
+
},
|
|
538
|
+
"hasDynamicHelp": false,
|
|
539
|
+
"hiddenAliases": [],
|
|
540
|
+
"id": "dns:diagnose",
|
|
541
|
+
"pluginAlias": "doomain",
|
|
542
|
+
"pluginName": "doomain",
|
|
543
|
+
"pluginType": "core",
|
|
544
|
+
"strict": true,
|
|
545
|
+
"enableJsonFlag": false,
|
|
546
|
+
"isESM": true,
|
|
547
|
+
"relativePath": [
|
|
548
|
+
"dist",
|
|
549
|
+
"commands",
|
|
550
|
+
"dns",
|
|
551
|
+
"diagnose.js"
|
|
552
|
+
]
|
|
553
|
+
},
|
|
377
554
|
"dns:point": {
|
|
378
555
|
"aliases": [],
|
|
379
556
|
"args": {
|
|
@@ -481,6 +658,92 @@
|
|
|
481
658
|
"point.js"
|
|
482
659
|
]
|
|
483
660
|
},
|
|
661
|
+
"dns:remove": {
|
|
662
|
+
"aliases": [],
|
|
663
|
+
"args": {
|
|
664
|
+
"domain": {
|
|
665
|
+
"description": "Fully qualified DNS name whose record should be removed.",
|
|
666
|
+
"name": "domain",
|
|
667
|
+
"required": true
|
|
668
|
+
}
|
|
669
|
+
},
|
|
670
|
+
"description": "Safely remove exact DNS records and verify their absence.",
|
|
671
|
+
"examples": [
|
|
672
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --value 203.0.113.10 --dry-run --json",
|
|
673
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --all-matching --json"
|
|
674
|
+
],
|
|
675
|
+
"flags": {
|
|
676
|
+
"account": {
|
|
677
|
+
"description": "DNS provider profile/account alias. Defaults to the provider default account.",
|
|
678
|
+
"name": "account",
|
|
679
|
+
"hasDynamicHelp": false,
|
|
680
|
+
"multiple": false,
|
|
681
|
+
"type": "option"
|
|
682
|
+
},
|
|
683
|
+
"all-matching": {
|
|
684
|
+
"description": "Delete every record matching the name and type (and value, if set).",
|
|
685
|
+
"name": "all-matching",
|
|
686
|
+
"allowNo": false,
|
|
687
|
+
"type": "boolean"
|
|
688
|
+
},
|
|
689
|
+
"dry-run": {
|
|
690
|
+
"description": "Preview the exact records without deleting them.",
|
|
691
|
+
"name": "dry-run",
|
|
692
|
+
"allowNo": false,
|
|
693
|
+
"type": "boolean"
|
|
694
|
+
},
|
|
695
|
+
"json": {
|
|
696
|
+
"description": "Output a single JSON object and never prompt.",
|
|
697
|
+
"name": "json",
|
|
698
|
+
"allowNo": false,
|
|
699
|
+
"type": "boolean"
|
|
700
|
+
},
|
|
701
|
+
"provider": {
|
|
702
|
+
"description": "DNS provider id. Inferred from the target domain when omitted.",
|
|
703
|
+
"name": "provider",
|
|
704
|
+
"hasDynamicHelp": false,
|
|
705
|
+
"multiple": false,
|
|
706
|
+
"type": "option"
|
|
707
|
+
},
|
|
708
|
+
"type": {
|
|
709
|
+
"description": "DNS record type to remove.",
|
|
710
|
+
"name": "type",
|
|
711
|
+
"required": true,
|
|
712
|
+
"hasDynamicHelp": false,
|
|
713
|
+
"multiple": false,
|
|
714
|
+
"options": [
|
|
715
|
+
"A",
|
|
716
|
+
"AAAA",
|
|
717
|
+
"CNAME",
|
|
718
|
+
"MX",
|
|
719
|
+
"TXT"
|
|
720
|
+
],
|
|
721
|
+
"type": "option"
|
|
722
|
+
},
|
|
723
|
+
"value": {
|
|
724
|
+
"description": "Expected record value. Required unless --all-matching is passed.",
|
|
725
|
+
"name": "value",
|
|
726
|
+
"hasDynamicHelp": false,
|
|
727
|
+
"multiple": false,
|
|
728
|
+
"type": "option"
|
|
729
|
+
}
|
|
730
|
+
},
|
|
731
|
+
"hasDynamicHelp": false,
|
|
732
|
+
"hiddenAliases": [],
|
|
733
|
+
"id": "dns:remove",
|
|
734
|
+
"pluginAlias": "doomain",
|
|
735
|
+
"pluginName": "doomain",
|
|
736
|
+
"pluginType": "core",
|
|
737
|
+
"strict": true,
|
|
738
|
+
"enableJsonFlag": false,
|
|
739
|
+
"isESM": true,
|
|
740
|
+
"relativePath": [
|
|
741
|
+
"dist",
|
|
742
|
+
"commands",
|
|
743
|
+
"dns",
|
|
744
|
+
"delete.js"
|
|
745
|
+
]
|
|
746
|
+
},
|
|
484
747
|
"domains:find": {
|
|
485
748
|
"aliases": [],
|
|
486
749
|
"args": {
|
|
@@ -1063,5 +1326,5 @@
|
|
|
1063
1326
|
]
|
|
1064
1327
|
}
|
|
1065
1328
|
},
|
|
1066
|
-
"version": "0.1.
|
|
1329
|
+
"version": "0.1.23"
|
|
1067
1330
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "doomain",
|
|
3
3
|
"description": "Configure production domains and DNS records in seconds",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.23",
|
|
5
5
|
"author": "Crafter Station",
|
|
6
6
|
"packageManager": "bun@1.3.13",
|
|
7
7
|
"bin": {
|
|
@@ -47,6 +47,12 @@
|
|
|
47
47
|
"main": "dist/index.js",
|
|
48
48
|
"type": "module",
|
|
49
49
|
"oclif": {
|
|
50
|
+
"additionalHelpFlags": [
|
|
51
|
+
"-h"
|
|
52
|
+
],
|
|
53
|
+
"additionalVersionFlags": [
|
|
54
|
+
"-v"
|
|
55
|
+
],
|
|
50
56
|
"bin": "doomain",
|
|
51
57
|
"dirname": "doomain",
|
|
52
58
|
"commands": "./dist/commands",
|
|
@@ -82,12 +88,13 @@
|
|
|
82
88
|
"scripts": {
|
|
83
89
|
"build": "shx rm -rf dist && tsc -b",
|
|
84
90
|
"check": "biome lint .",
|
|
91
|
+
"check:manifest": "node scripts/check-manifest-version.js",
|
|
85
92
|
"format": "biome format --write .",
|
|
86
93
|
"lint": "biome lint .",
|
|
87
94
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
88
95
|
"posttest": "bun run lint",
|
|
89
96
|
"prepare": "husky",
|
|
90
|
-
"prepack": "oclif manifest && oclif readme",
|
|
97
|
+
"prepack": "oclif manifest && bun run check:manifest && oclif readme",
|
|
91
98
|
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
92
99
|
"version": "oclif readme && git add README.md"
|
|
93
100
|
},
|