@vendure/email-plugin 3.6.5-master-202606240308 → 3.6.5-master-202606250308
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/lib/src/types.d.ts +38 -0
- package/package.json +4 -4
package/lib/src/types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { Omit } from '@vendure/common/lib/omit';
|
|
|
3
3
|
import { Injector, RequestContext, SerializedRequestContext, VendureEvent } from '@vendure/core';
|
|
4
4
|
import { Attachment } from 'nodemailer/lib/mailer';
|
|
5
5
|
import SESTransport from 'nodemailer/lib/ses-transport';
|
|
6
|
+
import SMTPPool from 'nodemailer/lib/smtp-pool';
|
|
6
7
|
import SMTPTransport from 'nodemailer/lib/smtp-transport';
|
|
7
8
|
import { EmailGenerator } from './generator/email-generator';
|
|
8
9
|
import { EmailEventHandler } from './handler/event-handler';
|
|
@@ -178,6 +179,43 @@ export interface SMTPTransportOptions extends SMTPTransport.Options {
|
|
|
178
179
|
* @default false
|
|
179
180
|
*/
|
|
180
181
|
logging?: boolean;
|
|
182
|
+
/**
|
|
183
|
+
* @description
|
|
184
|
+
* Set to true to use a pooled connection (defaults to false) instead of creating a new connection for
|
|
185
|
+
* every email. Nodemailer pooled-SMTP option, forwarded directly to `nodemailer.createTransport()`.
|
|
186
|
+
*
|
|
187
|
+
* @default false
|
|
188
|
+
*/
|
|
189
|
+
pool?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* @description
|
|
192
|
+
* The maximum number of simultaneous connections to make against the SMTP server.
|
|
193
|
+
* Only applies when `pool` is `true`.
|
|
194
|
+
*
|
|
195
|
+
* @default 5
|
|
196
|
+
*/
|
|
197
|
+
maxConnections?: SMTPPool.Options['maxConnections'];
|
|
198
|
+
/**
|
|
199
|
+
* @description
|
|
200
|
+
* Limits the number of messages sent over a single connection. After `maxMessages` is reached the
|
|
201
|
+
* connection is dropped and a new one is created. Only applies when `pool` is `true`.
|
|
202
|
+
*
|
|
203
|
+
* @default 100
|
|
204
|
+
*/
|
|
205
|
+
maxMessages?: SMTPPool.Options['maxMessages'];
|
|
206
|
+
/**
|
|
207
|
+
* @description
|
|
208
|
+
* Defines the time measuring period in milliseconds for rate limiting. Only applies when `pool` is `true`.
|
|
209
|
+
*
|
|
210
|
+
* @default 1000
|
|
211
|
+
*/
|
|
212
|
+
rateDelta?: SMTPPool.Options['rateDelta'];
|
|
213
|
+
/**
|
|
214
|
+
* @description
|
|
215
|
+
* Limits the number of messages sent in the `rateDelta` window. Once reached, sending is paused until
|
|
216
|
+
* the end of the period. Only applies when `pool` is `true`.
|
|
217
|
+
*/
|
|
218
|
+
rateLimit?: SMTPPool.Options['rateLimit'];
|
|
181
219
|
}
|
|
182
220
|
/**
|
|
183
221
|
* @description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/email-plugin",
|
|
3
|
-
"version": "3.6.5-master-
|
|
3
|
+
"version": "3.6.5-master-202606250308",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"watch": "tsc -p ./tsconfig.build.json --watch",
|
|
18
18
|
"build": "rimraf lib && tsc -p ./tsconfig.build.json",
|
|
19
19
|
"lint": "eslint --fix .",
|
|
20
|
-
"test": "vitest --config vitest.config.mts --run"
|
|
20
|
+
"test": "vitest --config vitest.config.mts --run --typecheck"
|
|
21
21
|
},
|
|
22
22
|
"homepage": "https://www.vendure.io/",
|
|
23
23
|
"funding": "https://github.com/sponsors/michaelbromley",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"@types/express": "^5.0.1",
|
|
39
39
|
"@types/fs-extra": "^11.0.4",
|
|
40
40
|
"@types/mjml": "^4.7.4",
|
|
41
|
-
"@vendure/common": "^3.6.5-master-
|
|
42
|
-
"@vendure/core": "^3.6.5-master-
|
|
41
|
+
"@vendure/common": "^3.6.5-master-202606250308",
|
|
42
|
+
"@vendure/core": "^3.6.5-master-202606250308",
|
|
43
43
|
"rimraf": "^5.0.5",
|
|
44
44
|
"typescript": "5.8.2"
|
|
45
45
|
}
|