@aoxborrow/registrar-client 0.8.0 → 0.9.0
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 +49 -43
- package/dist/index.cjs +555 -32
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +28 -1
- package/dist/index.d.ts +28 -1
- package/dist/index.js +555 -33
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/registrars/domain101.ts +709 -0
- package/src/registrars/index.ts +12 -10
- package/src/types.ts +3 -0
package/src/registrars/index.ts
CHANGED
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
RegistrarOptions,
|
|
6
6
|
} from '../types';
|
|
7
7
|
import { CloudflareRegistrar } from './cloudflare';
|
|
8
|
+
import { Domain101Registrar } from './domain101';
|
|
8
9
|
import { DynadotRegistrar } from './dynadot';
|
|
9
10
|
import { GandiRegistrar } from './gandi';
|
|
10
11
|
import { GoDaddyRegistrar } from './godaddy';
|
|
@@ -17,16 +18,17 @@ import { SpaceshipRegistrar } from './spaceship';
|
|
|
17
18
|
|
|
18
19
|
// the built-in registrar providers, keyed by id
|
|
19
20
|
export const registrars = {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
21
|
+
'101domain': Domain101Registrar,
|
|
22
|
+
'cloudflare': CloudflareRegistrar,
|
|
23
|
+
'dynadot': DynadotRegistrar,
|
|
24
|
+
'gandi': GandiRegistrar,
|
|
25
|
+
'godaddy': GoDaddyRegistrar,
|
|
26
|
+
'namebright': NameBrightRegistrar,
|
|
27
|
+
'namecheap': NamecheapRegistrar,
|
|
28
|
+
'namecom': NamecomRegistrar,
|
|
29
|
+
'namesilo': NameSiloRegistrar,
|
|
30
|
+
'porkbun': PorkbunRegistrar,
|
|
31
|
+
'spaceship': SpaceshipRegistrar,
|
|
30
32
|
} satisfies Record<string, RegistrarConstructor>;
|
|
31
33
|
|
|
32
34
|
// id of a built-in registrar
|
package/src/types.ts
CHANGED
|
@@ -80,6 +80,9 @@ export interface ConnectionResult {
|
|
|
80
80
|
export interface OperationResult {
|
|
81
81
|
success: boolean;
|
|
82
82
|
message: string;
|
|
83
|
+
// Accepted by the registrar but still pending registry processing. Callers
|
|
84
|
+
// must not optimistically display the requested state as already active.
|
|
85
|
+
pending?: boolean;
|
|
83
86
|
// Present only on a failed write whose request may have reached the
|
|
84
87
|
// registrar (timed out, connection dropped mid-response, or a 5xx). The
|
|
85
88
|
// change may or may not have been applied: re-read the domain before trying
|