@aoxborrow/registrar-client 0.4.0 → 0.5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aoxborrow/registrar-client",
3
- "version": "0.4.0",
3
+ "version": "0.5.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",
@@ -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
- { name: 'clientIp', label: 'Client IP', type: 'text', required: false, default: '0.0.0.0' },
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)