mailgun.js 12.0.0 → 12.0.2

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
@@ -1747,14 +1747,14 @@ The following service methods are available to instantiated clients. The example
1747
1747
  ```
1748
1748
 
1749
1749
  - #### generate
1750
- Initiates generation of a TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll the status endpoint in location field to check for success
1750
+ Initiates generation of a TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll the status endpoint in location field to check for success. Domain address must be formatted as `webPrefix.domainName` from domains settings
1751
1751
 
1752
1752
  `mg.domains.domainTracking.generate(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/httpapi.(*HttpAPI).generateStatusV2-fm-8)
1753
1753
 
1754
1754
  Example:
1755
1755
 
1756
1756
  ```JS
1757
- mg.domains.domainTracking.generate('foobar.example.com')
1757
+ mg.domains.domainTracking.generate('email.foobar.example.com')
1758
1758
  .then(msg => console.log(msg)) // logs response data
1759
1759
  .catch(err => console.error(err)); // logs any error
1760
1760
  ```
@@ -1770,14 +1770,14 @@ The following service methods are available to instantiated clients. The example
1770
1770
  ```
1771
1771
 
1772
1772
  - #### regenerate
1773
- Initiates regeneration of an expired TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll status endpoint in location field to check for success. This will not regenerate an existing certificate that is still valid
1773
+ Initiates regeneration of an expired TLS certificate for the tracking domain in a background task. Once generation is enqueued, you may poll status endpoint in location field to check for success. This will not regenerate an existing certificate that is still valid. Domain address must be formatted as `webPrefix.domainName` from domains settings
1774
1774
 
1775
1775
  `mg.domains.domainTracking.regenerate(domainAddress)` [api docs](https://documentation.mailgun.com/docs/mailgun/api-reference/openapi-final/tag/Domain-Tracking/#tag/Domain-Tracking/operation/httpapi.(*HttpAPI).generateStatusV2-fm-8)
1776
1776
 
1777
1777
  Example:
1778
1778
 
1779
1779
  ```JS
1780
- mg.domains.domainTracking.regenerate('foobar.example.com')
1780
+ mg.domains.domainTracking.regenerate('email.foobar.example.com')
1781
1781
  .then(msg => console.log(msg)) // logs response data
1782
1782
  .catch(err => console.error(err)); // logs any error
1783
1783
  ```
package/Types/index.js CHANGED
@@ -4405,7 +4405,7 @@ var Request$1 = /** @class */ (function () {
4405
4405
  this.username = options.username;
4406
4406
  this.key = options.key;
4407
4407
  this.url = options.url;
4408
- this.timeout = options.timeout;
4408
+ this.timeout = options.timeout || 60000; // Default timeout is 60 seconds
4409
4409
  this.headers = this.makeHeadersFromObject(options.headers);
4410
4410
  this.formDataBuilder = new FormDataBuilder(formData);
4411
4411
  this.maxBodyLength = 52428800; // 50 MB
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mailgun.js",
3
- "version": "12.0.0",
3
+ "version": "12.0.2",
4
4
  "author": "Mailgun",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -22,28 +22,30 @@
22
22
  "node": {
23
23
  "import": "./ESM/mailgun.node.js",
24
24
  "require": "./CJS/mailgun.node.cjs",
25
- "types": "./Types/index.d.ts",
26
25
  "default": "./CJS/mailgun.node.js"
27
26
  },
28
27
  "browser": {
29
28
  "import": "./ESM/mailgun.browser.js",
30
29
  "require": "./AMD/mailgun.amd.js",
31
- "types": "./Types/index.d.ts",
32
30
  "default": "./AMD/mailgun.amd.js"
31
+ },
32
+ "default": {
33
+ "types": "./Types/index.d.ts"
33
34
  }
34
35
  },
35
36
  "./definitions": {
36
37
  "node": {
37
38
  "import": "./ESM/definitions.node.js",
38
39
  "require": "./CJS/definitions.cjs",
39
- "types": "./Types/definitions.d.ts",
40
40
  "default": "./CJS/definitions.js"
41
41
  },
42
42
  "browser": {
43
43
  "import": "./ESM/definitions.browser.js",
44
44
  "require": "./AMD/definitions.js",
45
- "types": "./Types/definitions.d.ts",
46
45
  "default": "./AMD/definitions.js"
46
+ },
47
+ "default": {
48
+ "types": "./Types/definitions.d.ts"
47
49
  }
48
50
  }
49
51
  },
package/version.md CHANGED
@@ -1 +1 @@
1
- 12.0.0
1
+ 12.0.2