mailgun.js 5.0.2 → 5.0.3
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/.eslintrc +1 -1
- package/CHANGELOG.md +15 -0
- package/dist/mailgun.js.d.ts +86 -73
- package/dist/mailgun.node.js +2 -2
- package/dist/mailgun.node.js.LICENSE.txt +1 -1
- package/dist/mailgun.web.js +2 -2
- package/dist/mailgun.web.js.LICENSE.txt +1 -3
- package/examples/send-email.js +1 -1
- package/lib/index.ts +2 -3
- package/lib/interfaces/DomainTags.ts +0 -1
- package/lib/interfaces/DomainTemplates.ts +1 -1
- package/lib/interfaces/Domains.ts +4 -4
- package/lib/interfaces/IFormData.ts +1 -1
- package/lib/interfaces/Supressions.ts +65 -28
- package/lib/request.ts +2 -2
- package/lib/suppressions.ts +118 -63
- package/package.json +3 -4
- package/test/suppressions.test.ts +94 -10
- package/webpack/webpack.common.config.js +0 -1
- package/webpack/webpack.dev.config.js +10 -2
- package/webpack/webpack.release.config.js +10 -2
|
@@ -4,7 +4,12 @@ const commonConfig = require('./webpack.common.config');
|
|
|
4
4
|
const nodeConf = merge(commonConfig, {
|
|
5
5
|
target: 'node',
|
|
6
6
|
output: {
|
|
7
|
-
filename: 'mailgun.node.js'
|
|
7
|
+
filename: 'mailgun.node.js',
|
|
8
|
+
library: {
|
|
9
|
+
name: 'mailgun',
|
|
10
|
+
type: 'umd',
|
|
11
|
+
export: 'default',
|
|
12
|
+
}
|
|
8
13
|
},
|
|
9
14
|
watchOptions: {
|
|
10
15
|
aggregateTimeout: 300,
|
|
@@ -16,7 +21,10 @@ const nodeConf = merge(commonConfig, {
|
|
|
16
21
|
const webConf = merge(commonConfig, {
|
|
17
22
|
target: 'web',
|
|
18
23
|
output: {
|
|
19
|
-
filename: 'mailgun.web.js'
|
|
24
|
+
filename: 'mailgun.web.js',
|
|
25
|
+
library: {
|
|
26
|
+
type: 'amd'
|
|
27
|
+
}
|
|
20
28
|
},
|
|
21
29
|
watchOptions: {
|
|
22
30
|
aggregateTimeout: 300,
|
|
@@ -24,14 +24,22 @@ const productionConfig = merge(baseConfig, {
|
|
|
24
24
|
const nodeConf = merge(productionConfig, {
|
|
25
25
|
target: 'node',
|
|
26
26
|
output: {
|
|
27
|
-
filename: 'mailgun.node.js'
|
|
27
|
+
filename: 'mailgun.node.js',
|
|
28
|
+
library: {
|
|
29
|
+
name: 'mailgun',
|
|
30
|
+
type: 'umd',
|
|
31
|
+
export: 'default',
|
|
32
|
+
}
|
|
28
33
|
}
|
|
29
34
|
});
|
|
30
35
|
|
|
31
36
|
const webConf = merge(productionConfig, {
|
|
32
37
|
target: 'web',
|
|
33
38
|
output: {
|
|
34
|
-
filename: 'mailgun.web.js'
|
|
39
|
+
filename: 'mailgun.web.js',
|
|
40
|
+
library: {
|
|
41
|
+
type: 'amd'
|
|
42
|
+
}
|
|
35
43
|
}
|
|
36
44
|
});
|
|
37
45
|
module.exports = [nodeConf, webConf];
|