@aoxborrow/registrar-client 0.4.0 → 0.6.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 +120 -31
- package/dist/index.cjs +544 -44
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +40 -1
- package/dist/index.d.ts +40 -1
- package/dist/index.js +544 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
- package/src/registrars/index.ts +2 -0
- package/src/registrars/namecheap.ts +4 -1
- package/src/registrars/namecom.ts +704 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aoxborrow/registrar-client",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "One consistent, fully-typed TypeScript interface to many domain registrar APIs (GoDaddy, Cloudflare, Namecheap, Spaceship, Dynadot, Porkbun, and more) behind a single pluggable multi-provider client",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Aaron Oxborrow",
|
package/src/index.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { GandiRegistrar } from './registrars/gandi';
|
|
|
25
25
|
export { GoDaddyRegistrar } from './registrars/godaddy';
|
|
26
26
|
export { NameBrightRegistrar } from './registrars/namebright';
|
|
27
27
|
export { NamecheapRegistrar } from './registrars/namecheap';
|
|
28
|
+
export { NamecomRegistrar } from './registrars/namecom';
|
|
28
29
|
export { NameSiloRegistrar } from './registrars/namesilo';
|
|
29
30
|
export { PorkbunRegistrar } from './registrars/porkbun';
|
|
30
31
|
export { SpaceshipRegistrar } from './registrars/spaceship';
|
package/src/registrars/index.ts
CHANGED
|
@@ -10,6 +10,7 @@ import { GandiRegistrar } from './gandi';
|
|
|
10
10
|
import { GoDaddyRegistrar } from './godaddy';
|
|
11
11
|
import { NameBrightRegistrar } from './namebright';
|
|
12
12
|
import { NamecheapRegistrar } from './namecheap';
|
|
13
|
+
import { NamecomRegistrar } from './namecom';
|
|
13
14
|
import { NameSiloRegistrar } from './namesilo';
|
|
14
15
|
import { PorkbunRegistrar } from './porkbun';
|
|
15
16
|
import { SpaceshipRegistrar } from './spaceship';
|
|
@@ -22,6 +23,7 @@ export const registrars = {
|
|
|
22
23
|
godaddy: GoDaddyRegistrar,
|
|
23
24
|
namebright: NameBrightRegistrar,
|
|
24
25
|
namecheap: NamecheapRegistrar,
|
|
26
|
+
namecom: NamecomRegistrar,
|
|
25
27
|
namesilo: NameSiloRegistrar,
|
|
26
28
|
porkbun: PorkbunRegistrar,
|
|
27
29
|
spaceship: SpaceshipRegistrar,
|
|
@@ -196,7 +196,10 @@ export class NamecheapRegistrar extends BaseRegistrar {
|
|
|
196
196
|
static readonly configFields: ConfigField[] = [
|
|
197
197
|
{ name: 'username', label: 'Username', type: 'text', required: true },
|
|
198
198
|
{ name: 'apiKey', label: 'API Key', type: 'password', required: true },
|
|
199
|
-
|
|
199
|
+
// Required: Namecheap rejects any request whose ClientIp isn't on the
|
|
200
|
+
// account's whitelist, so a placeholder like 0.0.0.0 only defers the
|
|
201
|
+
// failure to the first call. Make the user supply the whitelisted IP.
|
|
202
|
+
{ name: 'clientIp', label: 'Client IP', type: 'text', required: true },
|
|
200
203
|
];
|
|
201
204
|
// Namecheap runs a sandbox at api.sandbox.namecheap.com (separate account at
|
|
202
205
|
// sandbox.namecheap.com with its own API key)
|