pulumi-namecheap 2.2.11 → 2.2.13

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 CHANGED
@@ -17,20 +17,29 @@ This package provides a Pulumi provider that enables you to manage your Namechea
17
17
  ## Installation
18
18
 
19
19
  ### npm
20
+
20
21
  ```bash
21
22
  npm install pulumi-namecheap
22
23
  ```
23
24
 
24
25
  ### yarn
26
+
25
27
  ```bash
26
28
  yarn add pulumi-namecheap
27
29
  ```
28
30
 
29
31
  ### pnpm
32
+
30
33
  ```bash
31
34
  pnpm add pulumi-namecheap
32
35
  ```
33
36
 
37
+ ### bun
38
+
39
+ ```bash
40
+ bun add pulumi-namecheap
41
+ ```
42
+
34
43
  ## Configuration
35
44
 
36
45
  Before using the provider, you need to configure authentication with your Namecheap API credentials.
@@ -51,6 +60,7 @@ Before using the provider, you need to configure authentication with your Namech
51
60
  You can configure the provider in several ways:
52
61
 
53
62
  #### 1. Using Pulumi Config
63
+
54
64
  ```bash
55
65
  pulumi config set namecheap:apiKey your-api-key
56
66
  pulumi config set namecheap:apiUser your-api-user
@@ -60,6 +70,7 @@ pulumi config set namecheap:useSandbox false # optional
60
70
  ```
61
71
 
62
72
  #### 2. Using Environment Variables
73
+
63
74
  ```bash
64
75
  export NAMECHEAP_API_KEY="your-api-key"
65
76
  export NAMECHEAP_API_USER="your-api-user"
@@ -69,16 +80,17 @@ export NAMECHEAP_USE_SANDBOX="false" # optional
69
80
  ```
70
81
 
71
82
  #### 3. Provider Constructor
83
+
72
84
  ```typescript
73
- import * as namecheap from "pulumi-namecheap";
74
-
75
- const provider = new namecheap.Provider("namecheap-provider", {
76
- apiKey: "your-api-key",
77
- apiUser: "your-api-user",
78
- userName: "your-username",
79
- clientIp: "your-client-ip",
80
- useSandbox: false, // optional
81
- });
85
+ import * as namecheap from 'pulumi-namecheap'
86
+
87
+ const provider = new namecheap.Provider('namecheap-provider', {
88
+ apiKey: 'your-api-key',
89
+ apiUser: 'your-api-user',
90
+ userName: 'your-username',
91
+ clientIp: 'your-client-ip',
92
+ useSandbox: false, // optional
93
+ })
82
94
  ```
83
95
 
84
96
  ## Usage
@@ -86,121 +98,125 @@ const provider = new namecheap.Provider("namecheap-provider", {
86
98
  ### Basic Domain Records Management
87
99
 
88
100
  ```typescript
89
- import * as namecheap from "pulumi-namecheap";
101
+ import * as namecheap from 'pulumi-namecheap'
90
102
 
91
103
  // Create DNS records for your domain
92
- const records = new namecheap.DomainRecords("my-domain-records", {
93
- domain: "example.com",
94
- mode: "OVERWRITE", // MERGE (default) or OVERWRITE
95
- records: [
96
- {
97
- hostname: "@",
98
- type: "A",
99
- address: "192.168.1.100",
100
- ttl: 300,
101
- },
102
- {
103
- hostname: "www",
104
- type: "CNAME",
105
- address: "example.com",
106
- ttl: 300,
107
- },
108
- {
109
- hostname: "@",
110
- type: "MX",
111
- address: "mail.example.com",
112
- mxPref: 10,
113
- ttl: 300,
114
- },
115
- {
116
- hostname: "@",
117
- type: "TXT",
118
- address: "v=spf1 include:_spf.google.com ~all",
119
- ttl: 300,
120
- },
121
- ],
122
- });
104
+ const records = new namecheap.DomainRecords('my-domain-records', {
105
+ domain: 'example.com',
106
+ mode: 'OVERWRITE', // MERGE (default) or OVERWRITE
107
+ records: [
108
+ {
109
+ hostname: '@',
110
+ type: 'A',
111
+ address: '192.168.1.100',
112
+ ttl: 300,
113
+ },
114
+ {
115
+ hostname: 'www',
116
+ type: 'CNAME',
117
+ address: 'example.com',
118
+ ttl: 300,
119
+ },
120
+ {
121
+ hostname: '@',
122
+ type: 'MX',
123
+ address: 'mail.example.com',
124
+ mxPref: 10,
125
+ ttl: 300,
126
+ },
127
+ {
128
+ hostname: '@',
129
+ type: 'TXT',
130
+ address: 'v=spf1 include:_spf.google.com ~all',
131
+ ttl: 300,
132
+ },
133
+ ],
134
+ })
123
135
  ```
124
136
 
125
137
  ### Advanced Configuration with Email Setup
126
138
 
127
139
  ```typescript
128
- import * as namecheap from "pulumi-namecheap";
129
-
130
- const domainRecords = new namecheap.DomainRecords("example-domain", {
131
- domain: "example.com",
132
- emailType: "GMAIL", // Configure Gmail for email
133
- mode: "MERGE",
134
- records: [
135
- // A record for root domain
136
- {
137
- hostname: "@",
138
- type: "A",
139
- address: "203.0.113.1",
140
- ttl: 1800,
141
- },
142
- // CNAME for www subdomain
143
- {
144
- hostname: "www",
145
- type: "CNAME",
146
- address: "example.com",
147
- ttl: 1800,
148
- },
149
- // Multiple MX records for redundancy
150
- {
151
- hostname: "@",
152
- type: "MX",
153
- address: "aspmx.l.google.com",
154
- mxPref: 1,
155
- ttl: 3600,
156
- },
157
- {
158
- hostname: "@",
159
- type: "MX",
160
- address: "alt1.aspmx.l.google.com",
161
- mxPref: 5,
162
- ttl: 3600,
163
- },
164
- // TXT record for domain verification
165
- {
166
- hostname: "@",
167
- type: "TXT",
168
- address: "google-site-verification=your-verification-string",
169
- ttl: 3600,
170
- },
171
- ],
172
- });
140
+ import * as namecheap from 'pulumi-namecheap'
141
+
142
+ const domainRecords = new namecheap.DomainRecords('example-domain', {
143
+ domain: 'example.com',
144
+ emailType: 'GMAIL', // Configure Gmail for email
145
+ mode: 'MERGE',
146
+ records: [
147
+ // A record for root domain
148
+ {
149
+ hostname: '@',
150
+ type: 'A',
151
+ address: '203.0.113.1',
152
+ ttl: 1800,
153
+ },
154
+ // CNAME for www subdomain
155
+ {
156
+ hostname: 'www',
157
+ type: 'CNAME',
158
+ address: 'example.com',
159
+ ttl: 1800,
160
+ },
161
+ // Multiple MX records for redundancy
162
+ {
163
+ hostname: '@',
164
+ type: 'MX',
165
+ address: 'aspmx.l.google.com',
166
+ mxPref: 1,
167
+ ttl: 3600,
168
+ },
169
+ {
170
+ hostname: '@',
171
+ type: 'MX',
172
+ address: 'alt1.aspmx.l.google.com',
173
+ mxPref: 5,
174
+ ttl: 3600,
175
+ },
176
+ // TXT record for domain verification
177
+ {
178
+ hostname: '@',
179
+ type: 'TXT',
180
+ address: 'google-site-verification=your-verification-string',
181
+ ttl: 3600,
182
+ },
183
+ ],
184
+ })
173
185
 
174
186
  // Export the domain records ID
175
- export const domainRecordsId = domainRecords.domainRecordsId;
187
+ export const domainRecordsId = domainRecords.domainRecordsId
176
188
  ```
177
189
 
178
190
  ### Using Custom Provider Instance
179
191
 
180
192
  ```typescript
181
- import * as namecheap from "pulumi-namecheap";
193
+ import * as namecheap from 'pulumi-namecheap'
182
194
 
183
195
  // Create a custom provider for sandbox testing
184
- const sandboxProvider = new namecheap.Provider("sandbox-provider", {
185
- apiKey: "your-sandbox-api-key",
186
- apiUser: "your-api-user",
187
- userName: "your-username",
188
- clientIp: "your-client-ip",
189
- useSandbox: true,
190
- });
196
+ const sandboxProvider = new namecheap.Provider('sandbox-provider', {
197
+ apiKey: 'your-sandbox-api-key',
198
+ apiUser: 'your-api-user',
199
+ userName: 'your-username',
200
+ clientIp: 'your-client-ip',
201
+ useSandbox: true,
202
+ })
191
203
 
192
204
  // Use the custom provider
193
- const testRecords = new namecheap.DomainRecords("test-records", {
194
- domain: "test-domain.com",
205
+ const testRecords = new namecheap.DomainRecords(
206
+ 'test-records',
207
+ {
208
+ domain: 'test-domain.com',
195
209
  records: [
196
- {
197
- hostname: "test",
198
- type: "A",
199
- address: "192.168.1.1",
200
- ttl: 300,
201
- },
210
+ {
211
+ hostname: 'test',
212
+ type: 'A',
213
+ address: '192.168.1.1',
214
+ ttl: 300,
215
+ },
202
216
  ],
203
- }, { provider: sandboxProvider });
217
+ },
218
+ { provider: sandboxProvider },
219
+ )
204
220
  ```
205
221
 
206
222
  ## Resources
@@ -237,7 +253,7 @@ For detailed API documentation, see the generated documentation in your IDE or v
237
253
 
238
254
  1. **Log in to Namecheap**: Go to your Namecheap account dashboard
239
255
  2. **Enable API Access**: Navigate to Profile → Tools → Namecheap API Access
240
- 3. **Generate API Key**: Create a new API key for your application
256
+ 3. **Generate API Key**: Create a new API key for your application
241
257
  4. **Whitelist IP**: Add your client IP address to the whitelist
242
258
  5. **Note Your Details**: Save your API key, username, and API user name
243
259
 
@@ -249,14 +265,14 @@ Namecheap provides a sandbox environment for testing. Set `useSandbox: true` in
249
265
 
250
266
  You can find more examples in the [examples directory](./examples) or check out these common use cases:
251
267
 
252
- - [Basic A/CNAME Records](./examples/basic-records)
268
+ - [Basic A/CNAME Records](./examples/basic-records)
253
269
  - [Email Configuration](./examples/email-setup)
254
270
  - [Multi-domain Management](./examples/multiple-domains)
255
271
  - [Sandbox Testing](./examples/sandbox-testing)
256
272
 
257
273
  ## Support
258
274
 
259
- This provider is a derived work of the [Terraform Provider](https://github.com/namecheap/terraform-provider-namecheap) distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/).
275
+ This provider is a derived work of the [Terraform Provider](https://github.com/namecheap/terraform-provider-namecheap) distributed under [MPL 2.0](https://www.mozilla.org/en-US/MPL/2.0/).
260
276
 
261
277
  If you encounter a bug or missing feature, please consult the source [`terraform-provider-namecheap` repo](https://github.com/namecheap/terraform-provider-namecheap/issues).
262
278
 
@@ -16,7 +16,7 @@ class DomainRecords extends pulumi.CustomResource {
16
16
  * @param opts Optional settings to control the behavior of the CustomResource.
17
17
  */
18
18
  static get(name, id, state, opts) {
19
- return new DomainRecords(name, state, Object.assign(Object.assign({}, opts), { id: id }));
19
+ return new DomainRecords(name, state, { ...opts, id: id });
20
20
  }
21
21
  /**
22
22
  * Returns true if the given object is an instance of DomainRecords. This is designed to work even
@@ -33,24 +33,24 @@ class DomainRecords extends pulumi.CustomResource {
33
33
  opts = opts || {};
34
34
  if (opts.id) {
35
35
  const state = argsOrState;
36
- resourceInputs["domain"] = state ? state.domain : undefined;
37
- resourceInputs["domainRecordsId"] = state ? state.domainRecordsId : undefined;
38
- resourceInputs["emailType"] = state ? state.emailType : undefined;
39
- resourceInputs["mode"] = state ? state.mode : undefined;
40
- resourceInputs["nameservers"] = state ? state.nameservers : undefined;
41
- resourceInputs["records"] = state ? state.records : undefined;
36
+ resourceInputs["domain"] = state?.domain;
37
+ resourceInputs["domainRecordsId"] = state?.domainRecordsId;
38
+ resourceInputs["emailType"] = state?.emailType;
39
+ resourceInputs["mode"] = state?.mode;
40
+ resourceInputs["nameservers"] = state?.nameservers;
41
+ resourceInputs["records"] = state?.records;
42
42
  }
43
43
  else {
44
44
  const args = argsOrState;
45
- if ((!args || args.domain === undefined) && !opts.urn) {
45
+ if (args?.domain === undefined && !opts.urn) {
46
46
  throw new Error("Missing required property 'domain'");
47
47
  }
48
- resourceInputs["domain"] = args ? args.domain : undefined;
49
- resourceInputs["domainRecordsId"] = args ? args.domainRecordsId : undefined;
50
- resourceInputs["emailType"] = args ? args.emailType : undefined;
51
- resourceInputs["mode"] = args ? args.mode : undefined;
52
- resourceInputs["nameservers"] = args ? args.nameservers : undefined;
53
- resourceInputs["records"] = args ? args.records : undefined;
48
+ resourceInputs["domain"] = args?.domain;
49
+ resourceInputs["domainRecordsId"] = args?.domainRecordsId;
50
+ resourceInputs["emailType"] = args?.emailType;
51
+ resourceInputs["mode"] = args?.mode;
52
+ resourceInputs["nameservers"] = args?.nameservers;
53
+ resourceInputs["records"] = args?.records;
54
54
  }
55
55
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
56
56
  super(DomainRecords.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
@@ -1 +1 @@
1
- {"version":3,"file":"domainRecords.js","sourceRoot":"","sources":["../domainRecords.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC,MAAa,aAAc,SAAQ,MAAM,CAAC,cAAc;IACpD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA0B,EAAE,IAAmC;QACxH,OAAO,IAAI,aAAa,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACpE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UA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D,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC;YACxC,cAAc,CAAC,iBAAiB,CAAC,GAAG,IAAI,EAAE,eAAe,CAAC;YAC1D,cAAc,CAAC,WAAW,CAAC,GAAG,IAAI,EAAE,SAAS,CAAC;YAC9C,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,EAAE,IAAI,CAAC;YACpC,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,EAAE,WAAW,CAAC;YAClD,cAAc,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,OAAO,CAAC;QAC9C,CAAC;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAChH,CAAC;;AA7EL,sCA8EC;AAhEG,gBAAgB;AACO,0BAAY,GAAG,6CAA6C,CAAC"}
package/bin/index.d.ts CHANGED
@@ -1,9 +1,7 @@
1
1
  export { DomainRecordsArgs, DomainRecordsState } from "./domainRecords";
2
2
  export type DomainRecords = import("./domainRecords").DomainRecords;
3
3
  export declare const DomainRecords: typeof import("./domainRecords").DomainRecords;
4
- export { ProviderArgs } from "./provider";
5
- export type Provider = import("./provider").Provider;
6
- export declare const Provider: typeof import("./provider").Provider;
4
+ export * from "./provider";
7
5
  import * as config from "./config";
8
6
  import * as types from "./types";
9
7
  export { config, types, };
package/bin/index.js CHANGED
@@ -1,14 +1,28 @@
1
1
  "use strict";
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5
+ if (k2 === undefined) k2 = k;
6
+ var desc = Object.getOwnPropertyDescriptor(m, k);
7
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
8
+ desc = { enumerable: true, get: function() { return m[k]; } };
9
+ }
10
+ Object.defineProperty(o, k2, desc);
11
+ }) : (function(o, m, k, k2) {
12
+ if (k2 === undefined) k2 = k;
13
+ o[k2] = m[k];
14
+ }));
15
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
17
+ };
4
18
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.types = exports.config = exports.Provider = exports.DomainRecords = void 0;
19
+ exports.types = exports.config = exports.DomainRecords = void 0;
6
20
  const pulumi = require("@pulumi/pulumi");
7
21
  const utilities = require("./utilities");
8
22
  exports.DomainRecords = null;
9
23
  utilities.lazyLoad(exports, ["DomainRecords"], () => require("./domainRecords"));
10
- exports.Provider = null;
11
- utilities.lazyLoad(exports, ["Provider"], () => require("./provider"));
24
+ __exportStar(require("./provider"), exports);
25
+ const provider_1 = require("./provider");
12
26
  // Export sub-modules:
13
27
  const config = require("./config");
14
28
  exports.config = config;
@@ -32,7 +46,7 @@ pulumi.runtime.registerResourcePackage("namecheap", {
32
46
  if (type !== "pulumi:providers:namecheap") {
33
47
  throw new Error(`unknown provider type ${type}`);
34
48
  }
35
- return new exports.Provider(name, undefined, { urn });
49
+ return new provider_1.Provider(name, undefined, { urn });
36
50
  },
37
51
  });
38
52
  //# sourceMappingURL=index.js.map
package/bin/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAK5B,QAAA,aAAa,GAAmD,IAAW,CAAC;AACzF,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,iBAAiB,C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echeap",
3
3
  "description": "A Pulumi provider for managing Namecheap domain records and DNS configuration, dynamically bridged from the Terraform Namecheap provider with support for A, AAAA, CNAME, MX, TXT records and email services.",
4
- "version": "2.2.11",
4
+ "version": "2.2.13",
5
5
  "homepage": "https://github.com/hckhanh/pulumi-any-terraform",
6
6
  "repository": {
7
7
  "type": "git",
@@ -9,6 +9,7 @@
9
9
  "directory": "packages/namecheap"
10
10
  },
11
11
  "private": false,
12
+ "sideEffects": false,
12
13
  "main": "./bin/index.js",
13
14
  "module": "./bin/index.js",
14
15
  "types": "./bin/index.d.ts",
@@ -20,12 +21,12 @@
20
21
  "async-mutex": "0.5.0"
21
22
  },
22
23
  "devDependencies": {
23
- "@pulumi/pulumi": "3.191.0",
24
- "@types/node": "24.3.0",
25
- "typescript": "5.9.2"
24
+ "@pulumi/pulumi": "3.201.0",
25
+ "@types/node": "24.7.0",
26
+ "typescript": "5.9.3"
26
27
  },
27
28
  "peerDependencies": {
28
- "@pulumi/pulumi": ">=3.191.0"
29
+ "@pulumi/pulumi": ">=3.190.0 <4"
29
30
  },
30
31
  "files": [
31
32
  "bin",
@@ -51,7 +52,7 @@
51
52
  "pulumi": {
52
53
  "resource": true,
53
54
  "name": "terraform-provider",
54
- "version": "0.8.0",
55
+ "version": "0.14.0",
55
56
  "parameterization": {
56
57
  "name": "namecheap",
57
58
  "version": "2.2.0",
package/bin/provider.d.ts CHANGED
@@ -35,6 +35,12 @@ export declare class Provider extends pulumi.ProviderResource {
35
35
  * @param opts A bag of options that control this resource's behavior.
36
36
  */
37
37
  constructor(name: string, args: ProviderArgs, opts?: pulumi.ResourceOptions);
38
+ /**
39
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
40
+ */
41
+ terraformConfig(): pulumi.Output<{
42
+ [key: string]: any;
43
+ }>;
38
44
  }
39
45
  /**
40
46
  * The set of arguments for constructing a Provider resource.
@@ -61,3 +67,13 @@ export interface ProviderArgs {
61
67
  */
62
68
  userName: pulumi.Input<string>;
63
69
  }
70
+ export declare namespace Provider {
71
+ /**
72
+ * The results of the Provider.terraformConfig method.
73
+ */
74
+ interface TerraformConfigResult {
75
+ readonly result: {
76
+ [key: string]: any;
77
+ };
78
+ }
79
+ }
package/bin/provider.js CHANGED
@@ -33,24 +33,33 @@ class Provider extends pulumi.ProviderResource {
33
33
  let resourceInputs = {};
34
34
  opts = opts || {};
35
35
  {
36
- if ((!args || args.apiKey === undefined) && !opts.urn) {
36
+ if (args?.apiKey === undefined && !opts.urn) {
37
37
  throw new Error("Missing required property 'apiKey'");
38
38
  }
39
- if ((!args || args.apiUser === undefined) && !opts.urn) {
39
+ if (args?.apiUser === undefined && !opts.urn) {
40
40
  throw new Error("Missing required property 'apiUser'");
41
41
  }
42
- if ((!args || args.userName === undefined) && !opts.urn) {
42
+ if (args?.userName === undefined && !opts.urn) {
43
43
  throw new Error("Missing required property 'userName'");
44
44
  }
45
- resourceInputs["apiKey"] = args ? args.apiKey : undefined;
46
- resourceInputs["apiUser"] = args ? args.apiUser : undefined;
47
- resourceInputs["clientIp"] = args ? args.clientIp : undefined;
48
- resourceInputs["useSandbox"] = pulumi.output(args ? args.useSandbox : undefined).apply(JSON.stringify);
49
- resourceInputs["userName"] = args ? args.userName : undefined;
45
+ resourceInputs["apiKey"] = args?.apiKey;
46
+ resourceInputs["apiUser"] = args?.apiUser;
47
+ resourceInputs["clientIp"] = args?.clientIp;
48
+ resourceInputs["useSandbox"] = pulumi.output(args?.useSandbox).apply(JSON.stringify);
49
+ resourceInputs["userName"] = args?.userName;
50
50
  }
51
51
  opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
52
52
  super(Provider.__pulumiType, name, resourceInputs, opts, false /*dependency*/, utilities.getPackage());
53
53
  }
54
+ /**
55
+ * This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider.
56
+ */
57
+ terraformConfig() {
58
+ const result = pulumi.runtime.call("pulumi:providers:namecheap/terraformConfig", {
59
+ "__self__": this,
60
+ }, this, utilities.getPackage());
61
+ return result.result;
62
+ }
54
63
  }
55
64
  exports.Provider = Provider;
56
65
  /** @internal */
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"","sources":["../provider.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;GAKG;AACH,MAAa,QAAS,SAAQ,MAAM,CAAC,gBAAgB;IAIjD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,mBAAmB,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC/E,CAAC;IAmBD;;;;;;OAMG;IACH,YAAY,IAAY,EAAE,IAAkB,EAAE,IAA6B;QACvE,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,CAAC;YACG,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACpD,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;YAC1D,CAAC;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACrD,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;YAC3D,CAAC;YACD,IAAI,CAAC,CAAC,IAAI,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC;gBACtD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;YAC5D,CAAC;YACD,cAAc,CAAC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AQ,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,KAAK,CAAC,cAAc,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED;;OAEG;IACH,eAAe;QACX,MAAM,MAAM,GAAkD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,4CAA4C,EAAE;YAC5H,UAAU,EAAE,IAAI;SACnB,EAAE,IAAI,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;QACjC,OAAO,MAAM,CAAC,MAAM,CAAC;IACzB,CAAC;;AAtEL,4BAuEC;AAtEG,gBAAgB;AACO,qBAAY,GAAG,WAAW,CAAC"}
package/bin/utilities.js CHANGED
@@ -1,15 +1,6 @@
1
1
  "use strict";
2
2
  // *** WARNING: this file was generated by pulumi-language-nodejs. ***
3
3
  // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
5
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6
- return new (P || (P = Promise))(function (resolve, reject) {
7
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
8
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
9
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
10
- step((generator = generator.apply(thisArg, _arguments || [])).next());
11
- });
12
- };
13
4
  Object.defineProperty(exports, "__esModule", { value: true });
14
5
  exports.getEnv = getEnv;
15
6
  exports.getEnvBoolean = getEnvBoolean;
@@ -80,62 +71,58 @@ function lazyLoad(exports, props, loadModule) {
80
71
  }
81
72
  }
82
73
  /** @internal */
83
- function callAsync(tok, props, res, opts) {
84
- return __awaiter(this, void 0, void 0, function* () {
85
- const o = runtime.call(tok, props, res);
86
- const value = yield o.promise(true /*withUnknowns*/);
87
- const isKnown = yield o.isKnown;
88
- const isSecret = yield o.isSecret;
89
- const problem = !isKnown ? "an unknown value"
90
- : isSecret ? "a secret value"
91
- : undefined;
92
- // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
93
- if (problem) {
94
- throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
95
- "This is an error in the provider, please report this to the provider developer.");
96
- }
97
- // Extract a single property if requested.
98
- if (opts && opts.property) {
99
- return value[opts.property];
100
- }
101
- return value;
102
- });
74
+ async function callAsync(tok, props, res, opts) {
75
+ const o = runtime.call(tok, props, res);
76
+ const value = await o.promise(true /*withUnknowns*/);
77
+ const isKnown = await o.isKnown;
78
+ const isSecret = await o.isSecret;
79
+ const problem = !isKnown ? "an unknown value"
80
+ : isSecret ? "a secret value"
81
+ : undefined;
82
+ // Ingoring o.resources silently. They are typically non-empty, r.f() calls include r as a dependency.
83
+ if (problem) {
84
+ throw new Error(`Plain resource method "${tok}" incorrectly returned ${problem}. ` +
85
+ "This is an error in the provider, please report this to the provider developer.");
86
+ }
87
+ // Extract a single property if requested.
88
+ if (opts && opts.property) {
89
+ return value[opts.property];
90
+ }
91
+ return value;
103
92
  }
104
93
  const _packageLock = new mutex.Mutex();
105
94
  var _packageRef = undefined;
106
- function getPackage() {
107
- return __awaiter(this, void 0, void 0, function* () {
95
+ async function getPackage() {
96
+ if (_packageRef === undefined) {
97
+ if (!runtime.supportsParameterization()) {
98
+ throw new Error("The Pulumi CLI does not support parameterization. Please update the Pulumi CLI");
99
+ }
100
+ await _packageLock.acquire();
108
101
  if (_packageRef === undefined) {
109
- if (!runtime.supportsParameterization()) {
110
- throw new Error("The Pulumi CLI does not support parameterization. Please update the Pulumi CLI");
111
- }
112
- yield _packageLock.acquire();
113
- if (_packageRef === undefined) {
114
- const monitor = runtime.getMonitor();
115
- const params = new resproto.Parameterization();
116
- params.setName("namecheap");
117
- params.setVersion("2.2.0");
118
- params.setValue(Uint8Array.from(atob("eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="), c => c.charCodeAt(0)));
119
- const req = new resproto.RegisterPackageRequest();
120
- req.setName("terraform-provider");
121
- req.setVersion("0.8.0");
122
- req.setDownloadUrl("");
123
- req.setParameterization(params);
124
- const resp = yield new Promise((resolve, reject) => {
125
- monitor.registerPackage(req, (err, resp) => {
126
- if (err) {
127
- reject(err);
128
- }
129
- else {
130
- resolve(resp);
131
- }
132
- });
102
+ const monitor = runtime.getMonitor();
103
+ const params = new resproto.Parameterization();
104
+ params.setName("namecheap");
105
+ params.setVersion("2.2.0");
106
+ params.setValue(Uint8Array.from(atob("eyJyZW1vdGUiOnsidXJsIjoicmVnaXN0cnkub3BlbnRvZnUub3JnL25hbWVjaGVhcC9uYW1lY2hlYXAiLCJ2ZXJzaW9uIjoiMi4yLjAifX0="), c => c.charCodeAt(0)));
107
+ const req = new resproto.RegisterPackageRequest();
108
+ req.setName("terraform-provider");
109
+ req.setVersion("0.14.0");
110
+ req.setDownloadUrl("");
111
+ req.setParameterization(params);
112
+ const resp = await new Promise((resolve, reject) => {
113
+ monitor.registerPackage(req, (err, resp) => {
114
+ if (err) {
115
+ reject(err);
116
+ }
117
+ else {
118
+ resolve(resp);
119
+ }
133
120
  });
134
- _packageRef = resp.getRef();
135
- }
136
- _packageLock.release();
121
+ });
122
+ _packageRef = resp.getRef();
137
123
  }
138
- return _packageRef;
139
- });
124
+ _packageLock.release();
125
+ }
126
+ return _packageRef;
140
127
  }
141
128
  //# sourceMappingURL=utilities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"utilities.js","sourceRoot":"","sources":["../utilities.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;AAQjF,wBAQC;AAED,sCAaC;AAED,oCASC;AAED,gCAQC;AAGD,oDAEC;AAGD,4BASC;AAGD,8BAwBC;AAID,gCAiCC;AAnID,6DAA6D;AAC7D,qCAAqC;AAErC,kDAAkD;AAGlD,SAAgB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C,CAAC;oBACb,CAAC;yBAAM,CAAC;wBACP,OAAO,CAAC,IAAI,CAAC,CAAC;oBACf,CAAC;gBACF,CAAC,CAAC,CAAC;YACJ,CAAC,CAAC,CAAC;YACH,WAAW,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC7B,CAAC;QACD,YAAY,CAAC,OAAO,EAAE,CAAC;IACxB,CAAC;IACD,OAAO,WAAqB,CAAC;AAC9B,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pulumi-namecheap",
3
3
  "description": "A Pulumi provider for managing Namecheap domain records and DNS configuration, dynamically bridged from the Terraform Namecheap provider with support for A, AAAA, CNAME, MX, TXT records and email services.",
4
- "version": "2.2.11",
4
+ "version": "2.2.13",
5
5
  "homepage": "https://github.com/hckhanh/pulumi-any-terraform",
6
6
  "repository": {
7
7
  "type": "git",
@@ -9,6 +9,7 @@
9
9
  "directory": "packages/namecheap"
10
10
  },
11
11
  "private": false,
12
+ "sideEffects": false,
12
13
  "main": "./bin/index.js",
13
14
  "module": "./bin/index.js",
14
15
  "types": "./bin/index.d.ts",
@@ -20,12 +21,12 @@
20
21
  "async-mutex": "0.5.0"
21
22
  },
22
23
  "devDependencies": {
23
- "@pulumi/pulumi": "3.191.0",
24
- "@types/node": "24.3.0",
25
- "typescript": "5.9.2"
24
+ "@pulumi/pulumi": "3.201.0",
25
+ "@types/node": "24.7.0",
26
+ "typescript": "5.9.3"
26
27
  },
27
28
  "peerDependencies": {
28
- "@pulumi/pulumi": ">=3.191.0"
29
+ "@pulumi/pulumi": ">=3.190.0 <4"
29
30
  },
30
31
  "files": [
31
32
  "bin",
@@ -51,7 +52,7 @@
51
52
  "pulumi": {
52
53
  "resource": true,
53
54
  "name": "terraform-provider",
54
- "version": "0.8.0",
55
+ "version": "0.14.0",
55
56
  "parameterization": {
56
57
  "name": "namecheap",
57
58
  "version": "2.2.0",