doomain 0.1.20 → 0.1.22
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 +58 -1
- 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/update.d.ts +9 -0
- package/dist/commands/update.js +28 -0
- package/dist/commands/upgrade.d.ts +1 -0
- package/dist/commands/upgrade.js +1 -0
- package/dist/lib/command-schema.d.ts +1 -1
- package/dist/lib/command-schema.js +76 -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/dist/lib/self-update.d.ts +27 -0
- package/dist/lib/self-update.js +63 -0
- package/oclif.manifest.json +306 -1
- package/package.json +3 -2
package/oclif.manifest.json
CHANGED
|
@@ -142,6 +142,68 @@
|
|
|
142
142
|
"schema.js"
|
|
143
143
|
]
|
|
144
144
|
},
|
|
145
|
+
"update": {
|
|
146
|
+
"aliases": [],
|
|
147
|
+
"args": {},
|
|
148
|
+
"description": "Install the latest doomain version from npm without using the existing npm cache.",
|
|
149
|
+
"examples": [
|
|
150
|
+
"<%= config.bin %> <%= command.id %>",
|
|
151
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
152
|
+
],
|
|
153
|
+
"flags": {
|
|
154
|
+
"json": {
|
|
155
|
+
"description": "Output a single JSON object and never prompt.",
|
|
156
|
+
"name": "json",
|
|
157
|
+
"allowNo": false,
|
|
158
|
+
"type": "boolean"
|
|
159
|
+
}
|
|
160
|
+
},
|
|
161
|
+
"hasDynamicHelp": false,
|
|
162
|
+
"hiddenAliases": [],
|
|
163
|
+
"id": "update",
|
|
164
|
+
"pluginAlias": "doomain",
|
|
165
|
+
"pluginName": "doomain",
|
|
166
|
+
"pluginType": "core",
|
|
167
|
+
"strict": true,
|
|
168
|
+
"enableJsonFlag": false,
|
|
169
|
+
"isESM": true,
|
|
170
|
+
"relativePath": [
|
|
171
|
+
"dist",
|
|
172
|
+
"commands",
|
|
173
|
+
"update.js"
|
|
174
|
+
]
|
|
175
|
+
},
|
|
176
|
+
"upgrade": {
|
|
177
|
+
"aliases": [],
|
|
178
|
+
"args": {},
|
|
179
|
+
"description": "Install the latest doomain version from npm without using the existing npm cache.",
|
|
180
|
+
"examples": [
|
|
181
|
+
"<%= config.bin %> <%= command.id %>",
|
|
182
|
+
"<%= config.bin %> <%= command.id %> --json"
|
|
183
|
+
],
|
|
184
|
+
"flags": {
|
|
185
|
+
"json": {
|
|
186
|
+
"description": "Output a single JSON object and never prompt.",
|
|
187
|
+
"name": "json",
|
|
188
|
+
"allowNo": false,
|
|
189
|
+
"type": "boolean"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"hasDynamicHelp": false,
|
|
193
|
+
"hiddenAliases": [],
|
|
194
|
+
"id": "upgrade",
|
|
195
|
+
"pluginAlias": "doomain",
|
|
196
|
+
"pluginName": "doomain",
|
|
197
|
+
"pluginType": "core",
|
|
198
|
+
"strict": true,
|
|
199
|
+
"enableJsonFlag": false,
|
|
200
|
+
"isESM": true,
|
|
201
|
+
"relativePath": [
|
|
202
|
+
"dist",
|
|
203
|
+
"commands",
|
|
204
|
+
"upgrade.js"
|
|
205
|
+
]
|
|
206
|
+
},
|
|
145
207
|
"verify": {
|
|
146
208
|
"aliases": [],
|
|
147
209
|
"args": {},
|
|
@@ -312,6 +374,163 @@
|
|
|
312
374
|
"vercel.js"
|
|
313
375
|
]
|
|
314
376
|
},
|
|
377
|
+
"dns:delete": {
|
|
378
|
+
"aliases": [],
|
|
379
|
+
"args": {
|
|
380
|
+
"domain": {
|
|
381
|
+
"description": "Fully qualified DNS name whose record should be removed.",
|
|
382
|
+
"name": "domain",
|
|
383
|
+
"required": true
|
|
384
|
+
}
|
|
385
|
+
},
|
|
386
|
+
"description": "Safely remove exact DNS records and verify their absence.",
|
|
387
|
+
"examples": [
|
|
388
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --value 203.0.113.10 --dry-run --json",
|
|
389
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --all-matching --json"
|
|
390
|
+
],
|
|
391
|
+
"flags": {
|
|
392
|
+
"account": {
|
|
393
|
+
"description": "DNS provider profile/account alias. Defaults to the provider default account.",
|
|
394
|
+
"name": "account",
|
|
395
|
+
"hasDynamicHelp": false,
|
|
396
|
+
"multiple": false,
|
|
397
|
+
"type": "option"
|
|
398
|
+
},
|
|
399
|
+
"all-matching": {
|
|
400
|
+
"description": "Delete every record matching the name and type (and value, if set).",
|
|
401
|
+
"name": "all-matching",
|
|
402
|
+
"allowNo": false,
|
|
403
|
+
"type": "boolean"
|
|
404
|
+
},
|
|
405
|
+
"dry-run": {
|
|
406
|
+
"description": "Preview the exact records without deleting them.",
|
|
407
|
+
"name": "dry-run",
|
|
408
|
+
"allowNo": false,
|
|
409
|
+
"type": "boolean"
|
|
410
|
+
},
|
|
411
|
+
"json": {
|
|
412
|
+
"description": "Output a single JSON object and never prompt.",
|
|
413
|
+
"name": "json",
|
|
414
|
+
"allowNo": false,
|
|
415
|
+
"type": "boolean"
|
|
416
|
+
},
|
|
417
|
+
"provider": {
|
|
418
|
+
"description": "DNS provider id. Inferred from the target domain when omitted.",
|
|
419
|
+
"name": "provider",
|
|
420
|
+
"hasDynamicHelp": false,
|
|
421
|
+
"multiple": false,
|
|
422
|
+
"type": "option"
|
|
423
|
+
},
|
|
424
|
+
"type": {
|
|
425
|
+
"description": "DNS record type to remove.",
|
|
426
|
+
"name": "type",
|
|
427
|
+
"required": true,
|
|
428
|
+
"hasDynamicHelp": false,
|
|
429
|
+
"multiple": false,
|
|
430
|
+
"options": [
|
|
431
|
+
"A",
|
|
432
|
+
"AAAA",
|
|
433
|
+
"CNAME",
|
|
434
|
+
"MX",
|
|
435
|
+
"TXT"
|
|
436
|
+
],
|
|
437
|
+
"type": "option"
|
|
438
|
+
},
|
|
439
|
+
"value": {
|
|
440
|
+
"description": "Expected record value. Required unless --all-matching is passed.",
|
|
441
|
+
"name": "value",
|
|
442
|
+
"hasDynamicHelp": false,
|
|
443
|
+
"multiple": false,
|
|
444
|
+
"type": "option"
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
"hasDynamicHelp": false,
|
|
448
|
+
"hiddenAliases": [],
|
|
449
|
+
"id": "dns:delete",
|
|
450
|
+
"pluginAlias": "doomain",
|
|
451
|
+
"pluginName": "doomain",
|
|
452
|
+
"pluginType": "core",
|
|
453
|
+
"strict": true,
|
|
454
|
+
"enableJsonFlag": false,
|
|
455
|
+
"isESM": true,
|
|
456
|
+
"relativePath": [
|
|
457
|
+
"dist",
|
|
458
|
+
"commands",
|
|
459
|
+
"dns",
|
|
460
|
+
"delete.js"
|
|
461
|
+
]
|
|
462
|
+
},
|
|
463
|
+
"dns:diagnose": {
|
|
464
|
+
"aliases": [],
|
|
465
|
+
"args": {
|
|
466
|
+
"domain": {
|
|
467
|
+
"description": "Fully qualified DNS name to diagnose.",
|
|
468
|
+
"name": "domain",
|
|
469
|
+
"required": true
|
|
470
|
+
}
|
|
471
|
+
},
|
|
472
|
+
"description": "Compare DNS provider records with system and public resolver answers.",
|
|
473
|
+
"examples": [
|
|
474
|
+
"<%= config.bin %> <%= command.id %> example.com --json",
|
|
475
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --target 203.0.113.10 --json"
|
|
476
|
+
],
|
|
477
|
+
"flags": {
|
|
478
|
+
"account": {
|
|
479
|
+
"description": "DNS provider profile/account alias. Defaults to the provider default account.",
|
|
480
|
+
"name": "account",
|
|
481
|
+
"hasDynamicHelp": false,
|
|
482
|
+
"multiple": false,
|
|
483
|
+
"type": "option"
|
|
484
|
+
},
|
|
485
|
+
"json": {
|
|
486
|
+
"description": "Output a single JSON object and never prompt.",
|
|
487
|
+
"name": "json",
|
|
488
|
+
"allowNo": false,
|
|
489
|
+
"type": "boolean"
|
|
490
|
+
},
|
|
491
|
+
"provider": {
|
|
492
|
+
"description": "DNS provider id. Inferred from the target domain when omitted.",
|
|
493
|
+
"name": "provider",
|
|
494
|
+
"hasDynamicHelp": false,
|
|
495
|
+
"multiple": false,
|
|
496
|
+
"type": "option"
|
|
497
|
+
},
|
|
498
|
+
"target": {
|
|
499
|
+
"description": "Expected IP address or canonical hostname.",
|
|
500
|
+
"name": "target",
|
|
501
|
+
"hasDynamicHelp": false,
|
|
502
|
+
"multiple": false,
|
|
503
|
+
"type": "option"
|
|
504
|
+
},
|
|
505
|
+
"type": {
|
|
506
|
+
"description": "Record type to compare.",
|
|
507
|
+
"name": "type",
|
|
508
|
+
"hasDynamicHelp": false,
|
|
509
|
+
"multiple": false,
|
|
510
|
+
"options": [
|
|
511
|
+
"A",
|
|
512
|
+
"AAAA",
|
|
513
|
+
"CNAME"
|
|
514
|
+
],
|
|
515
|
+
"type": "option"
|
|
516
|
+
}
|
|
517
|
+
},
|
|
518
|
+
"hasDynamicHelp": false,
|
|
519
|
+
"hiddenAliases": [],
|
|
520
|
+
"id": "dns:diagnose",
|
|
521
|
+
"pluginAlias": "doomain",
|
|
522
|
+
"pluginName": "doomain",
|
|
523
|
+
"pluginType": "core",
|
|
524
|
+
"strict": true,
|
|
525
|
+
"enableJsonFlag": false,
|
|
526
|
+
"isESM": true,
|
|
527
|
+
"relativePath": [
|
|
528
|
+
"dist",
|
|
529
|
+
"commands",
|
|
530
|
+
"dns",
|
|
531
|
+
"diagnose.js"
|
|
532
|
+
]
|
|
533
|
+
},
|
|
315
534
|
"dns:point": {
|
|
316
535
|
"aliases": [],
|
|
317
536
|
"args": {
|
|
@@ -419,6 +638,92 @@
|
|
|
419
638
|
"point.js"
|
|
420
639
|
]
|
|
421
640
|
},
|
|
641
|
+
"dns:remove": {
|
|
642
|
+
"aliases": [],
|
|
643
|
+
"args": {
|
|
644
|
+
"domain": {
|
|
645
|
+
"description": "Fully qualified DNS name whose record should be removed.",
|
|
646
|
+
"name": "domain",
|
|
647
|
+
"required": true
|
|
648
|
+
}
|
|
649
|
+
},
|
|
650
|
+
"description": "Safely remove exact DNS records and verify their absence.",
|
|
651
|
+
"examples": [
|
|
652
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --value 203.0.113.10 --dry-run --json",
|
|
653
|
+
"<%= config.bin %> <%= command.id %> app.example.com --type A --all-matching --json"
|
|
654
|
+
],
|
|
655
|
+
"flags": {
|
|
656
|
+
"account": {
|
|
657
|
+
"description": "DNS provider profile/account alias. Defaults to the provider default account.",
|
|
658
|
+
"name": "account",
|
|
659
|
+
"hasDynamicHelp": false,
|
|
660
|
+
"multiple": false,
|
|
661
|
+
"type": "option"
|
|
662
|
+
},
|
|
663
|
+
"all-matching": {
|
|
664
|
+
"description": "Delete every record matching the name and type (and value, if set).",
|
|
665
|
+
"name": "all-matching",
|
|
666
|
+
"allowNo": false,
|
|
667
|
+
"type": "boolean"
|
|
668
|
+
},
|
|
669
|
+
"dry-run": {
|
|
670
|
+
"description": "Preview the exact records without deleting them.",
|
|
671
|
+
"name": "dry-run",
|
|
672
|
+
"allowNo": false,
|
|
673
|
+
"type": "boolean"
|
|
674
|
+
},
|
|
675
|
+
"json": {
|
|
676
|
+
"description": "Output a single JSON object and never prompt.",
|
|
677
|
+
"name": "json",
|
|
678
|
+
"allowNo": false,
|
|
679
|
+
"type": "boolean"
|
|
680
|
+
},
|
|
681
|
+
"provider": {
|
|
682
|
+
"description": "DNS provider id. Inferred from the target domain when omitted.",
|
|
683
|
+
"name": "provider",
|
|
684
|
+
"hasDynamicHelp": false,
|
|
685
|
+
"multiple": false,
|
|
686
|
+
"type": "option"
|
|
687
|
+
},
|
|
688
|
+
"type": {
|
|
689
|
+
"description": "DNS record type to remove.",
|
|
690
|
+
"name": "type",
|
|
691
|
+
"required": true,
|
|
692
|
+
"hasDynamicHelp": false,
|
|
693
|
+
"multiple": false,
|
|
694
|
+
"options": [
|
|
695
|
+
"A",
|
|
696
|
+
"AAAA",
|
|
697
|
+
"CNAME",
|
|
698
|
+
"MX",
|
|
699
|
+
"TXT"
|
|
700
|
+
],
|
|
701
|
+
"type": "option"
|
|
702
|
+
},
|
|
703
|
+
"value": {
|
|
704
|
+
"description": "Expected record value. Required unless --all-matching is passed.",
|
|
705
|
+
"name": "value",
|
|
706
|
+
"hasDynamicHelp": false,
|
|
707
|
+
"multiple": false,
|
|
708
|
+
"type": "option"
|
|
709
|
+
}
|
|
710
|
+
},
|
|
711
|
+
"hasDynamicHelp": false,
|
|
712
|
+
"hiddenAliases": [],
|
|
713
|
+
"id": "dns:remove",
|
|
714
|
+
"pluginAlias": "doomain",
|
|
715
|
+
"pluginName": "doomain",
|
|
716
|
+
"pluginType": "core",
|
|
717
|
+
"strict": true,
|
|
718
|
+
"enableJsonFlag": false,
|
|
719
|
+
"isESM": true,
|
|
720
|
+
"relativePath": [
|
|
721
|
+
"dist",
|
|
722
|
+
"commands",
|
|
723
|
+
"dns",
|
|
724
|
+
"delete.js"
|
|
725
|
+
]
|
|
726
|
+
},
|
|
422
727
|
"domains:find": {
|
|
423
728
|
"aliases": [],
|
|
424
729
|
"args": {
|
|
@@ -1001,5 +1306,5 @@
|
|
|
1001
1306
|
]
|
|
1002
1307
|
}
|
|
1003
1308
|
},
|
|
1004
|
-
"version": "0.1.
|
|
1309
|
+
"version": "0.1.22"
|
|
1005
1310
|
}
|
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.22",
|
|
5
5
|
"author": "Crafter Station",
|
|
6
6
|
"packageManager": "bun@1.3.13",
|
|
7
7
|
"bin": {
|
|
@@ -82,12 +82,13 @@
|
|
|
82
82
|
"scripts": {
|
|
83
83
|
"build": "shx rm -rf dist && tsc -b",
|
|
84
84
|
"check": "biome lint .",
|
|
85
|
+
"check:manifest": "node scripts/check-manifest-version.js",
|
|
85
86
|
"format": "biome format --write .",
|
|
86
87
|
"lint": "biome lint .",
|
|
87
88
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
88
89
|
"posttest": "bun run lint",
|
|
89
90
|
"prepare": "husky",
|
|
90
|
-
"prepack": "oclif manifest && oclif readme",
|
|
91
|
+
"prepack": "oclif manifest && bun run check:manifest && oclif readme",
|
|
91
92
|
"test": "mocha --forbid-only \"test/**/*.test.ts\"",
|
|
92
93
|
"version": "oclif readme && git add README.md"
|
|
93
94
|
},
|