@bitblit/ratchet-warden-server 4.0.97-alpha → 4.0.99-alpha
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/dist/cjs/server/provider/warden-mailer-message-sending-provider.js +4 -4
- package/dist/es/server/provider/warden-mailer-message-sending-provider.js +4 -4
- package/dist/tsconfig.cjs.tsbuildinfo +1 -1
- package/dist/tsconfig.es.tsbuildinfo +1 -1
- package/dist/tsconfig.types.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -4,6 +4,10 @@ exports.WardenMailerMessageSendingProvider = void 0;
|
|
|
4
4
|
const ratchet_warden_common_1 = require("@bitblit/ratchet-warden-common");
|
|
5
5
|
const ratchet_common_1 = require("@bitblit/ratchet-common");
|
|
6
6
|
class WardenMailerMessageSendingProvider {
|
|
7
|
+
constructor(mailer, options = WardenMailerMessageSendingProvider.defaultOptions()) {
|
|
8
|
+
this.mailer = mailer;
|
|
9
|
+
this.options = options;
|
|
10
|
+
}
|
|
7
11
|
static defaultOptions() {
|
|
8
12
|
const rval = {
|
|
9
13
|
emailBaseLayoutName: undefined,
|
|
@@ -12,10 +16,6 @@ class WardenMailerMessageSendingProvider {
|
|
|
12
16
|
};
|
|
13
17
|
return rval;
|
|
14
18
|
}
|
|
15
|
-
constructor(mailer, options = WardenMailerMessageSendingProvider.defaultOptions()) {
|
|
16
|
-
this.mailer = mailer;
|
|
17
|
-
this.options = options;
|
|
18
|
-
}
|
|
19
19
|
async formatMessage(contact, messageType, context) {
|
|
20
20
|
const rts = {
|
|
21
21
|
destinationAddresses: [contact.value],
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import { WardenContactType } from '@bitblit/ratchet-warden-common';
|
|
2
2
|
import { Logger } from '@bitblit/ratchet-common';
|
|
3
3
|
export class WardenMailerMessageSendingProvider {
|
|
4
|
+
constructor(mailer, options = WardenMailerMessageSendingProvider.defaultOptions()) {
|
|
5
|
+
this.mailer = mailer;
|
|
6
|
+
this.options = options;
|
|
7
|
+
}
|
|
4
8
|
static defaultOptions() {
|
|
5
9
|
const rval = {
|
|
6
10
|
emailBaseLayoutName: undefined,
|
|
@@ -9,10 +13,6 @@ export class WardenMailerMessageSendingProvider {
|
|
|
9
13
|
};
|
|
10
14
|
return rval;
|
|
11
15
|
}
|
|
12
|
-
constructor(mailer, options = WardenMailerMessageSendingProvider.defaultOptions()) {
|
|
13
|
-
this.mailer = mailer;
|
|
14
|
-
this.options = options;
|
|
15
|
-
}
|
|
16
16
|
async formatMessage(contact, messageType, context) {
|
|
17
17
|
const rts = {
|
|
18
18
|
destinationAddresses: [contact.value],
|