vintasend-pug 0.1.15 → 0.1.21
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.
|
@@ -5,9 +5,9 @@ import type { BaseNotificationTypeConfig } from 'vintasend/dist/types/notificati
|
|
|
5
5
|
import pug from 'pug';
|
|
6
6
|
export declare class PugEmailTemplateRenderer<Config extends BaseNotificationTypeConfig> implements BaseEmailTemplateRenderer<Config> {
|
|
7
7
|
private options;
|
|
8
|
-
constructor(options
|
|
8
|
+
constructor(options: pug.Options);
|
|
9
9
|
render(notification: DatabaseNotification<Config>, context: JsonObject): Promise<EmailTemplate>;
|
|
10
10
|
}
|
|
11
|
-
export declare class PugEmailTemplateRendererFactory {
|
|
12
|
-
create
|
|
11
|
+
export declare class PugEmailTemplateRendererFactory<Config extends BaseNotificationTypeConfig> {
|
|
12
|
+
create(options?: pug.Options): PugEmailTemplateRenderer<Config>;
|
|
13
13
|
}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.PugEmailTemplateRendererFactory = exports.PugEmailTemplateRenderer = void 0;
|
|
7
7
|
const pug_1 = __importDefault(require("pug"));
|
|
8
8
|
class PugEmailTemplateRenderer {
|
|
9
|
-
constructor(options
|
|
9
|
+
constructor(options) {
|
|
10
10
|
this.options = options;
|
|
11
11
|
}
|
|
12
12
|
async render(notification, context) {
|
|
@@ -25,7 +25,7 @@ class PugEmailTemplateRenderer {
|
|
|
25
25
|
}
|
|
26
26
|
exports.PugEmailTemplateRenderer = PugEmailTemplateRenderer;
|
|
27
27
|
class PugEmailTemplateRendererFactory {
|
|
28
|
-
create(options) {
|
|
28
|
+
create(options = {}) {
|
|
29
29
|
return new PugEmailTemplateRenderer(options);
|
|
30
30
|
}
|
|
31
31
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vintasend-pug",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"license": "MIT",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"pug": "^3.0.3",
|
|
20
|
-
"vintasend": "^0.1.
|
|
20
|
+
"vintasend": "^0.1.21"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@types/jest": "^29.5.14",
|