@proteinjs/email-server 1.2.5 → 1.2.7

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.2.6](https://github.com/proteinjs/notifications/compare/@proteinjs/email-server@1.2.5...@proteinjs/email-server@1.2.6) (2025-05-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * `SignupConfirmationEmailConfig.getExistingUserEmailContent` is now optional. ([e528950](https://github.com/proteinjs/notifications/commit/e5289502ffbc44c44868c4d4e8274ede8cb748f8))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [1.2.1](https://github.com/proteinjs/notifications/compare/@proteinjs/email-server@1.2.0...@proteinjs/email-server@1.2.1) (2024-08-16)
7
18
 
8
19
 
@@ -35,11 +35,13 @@ export interface SignupConfirmationEmailConfig {
35
35
  /**
36
36
  * Generates the email content for an existing user if they attempt to sign up again.
37
37
  *
38
+ * If not provided, an email will not be sent in this scenario.
39
+ *
38
40
  * @returns An object containing the email content:
39
41
  * - text: The plain text version of the email (required)
40
42
  * - html: The HTML version of the email (optional, used for styling)
41
43
  */
42
- getExistingUserEmailContent: () => {
44
+ getExistingUserEmailContent?: () => {
43
45
  text: string;
44
46
  html?: string;
45
47
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SignupConfirmationEmailConfig.d.ts","sourceRoot":"","sources":["../../../src/configs/SignupConfirmationEmailConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoB,MAAM,uBAAuB,CAAC;AACnE,OAAO,IAAI,MAAM,uBAAuB,CAAC;AAEzC,MAAM,WAAW,2CAA4C,SAAQ,QAAQ;IAC3E,SAAS,IAAI,6BAA6B,CAAC;CAC5C;AAED,eAAO,MAAM,8CAA8C,QAAO,2CAiBjE,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;IAEvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;IACH,sBAAsB,EAAE,MAAM;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAEF;;;;;;OAMG;IACH,2BAA2B,EAAE,MAAM;QACjC,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH"}
1
+ {"version":3,"file":"SignupConfirmationEmailConfig.d.ts","sourceRoot":"","sources":["../../../src/configs/SignupConfirmationEmailConfig.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAoB,MAAM,uBAAuB,CAAC;AACnE,OAAO,IAAI,MAAM,uBAAuB,CAAC;AAEzC,MAAM,WAAW,2CAA4C,SAAQ,QAAQ;IAC3E,SAAS,IAAI,6BAA6B,CAAC;CAC5C;AAED,eAAO,MAAM,8CAA8C,QAAO,2CAiBjE,CAAC;AAEF,MAAM,WAAW,6BAA6B;IAC5C;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC;IAEvB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;OAGG;IACH,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAE7B;;;;;;OAMG;IACH,sBAAsB,EAAE,MAAM;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IAEF;;;;;;;;OAQG;IACH,2BAA2B,CAAC,EAAE,MAAM;QAClC,IAAI,EAAE,MAAM,CAAC;QACb,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@proteinjs/email-server",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "Email server libraries",
5
5
  "main": "./dist/generated/index.js",
6
6
  "types": "./dist/generated/index.d.ts",
@@ -23,12 +23,12 @@
23
23
  "watch": "reflection-watch"
24
24
  },
25
25
  "dependencies": {
26
- "@proteinjs/logger": "1.0.8",
26
+ "@proteinjs/logger": "1.0.9",
27
27
  "@proteinjs/reflection": "1.1.10",
28
28
  "nodemailer": "6.9.14"
29
29
  },
30
30
  "devDependencies": {
31
- "@proteinjs/reflection-build": "1.1.0",
31
+ "@proteinjs/reflection-build": "1.1.1",
32
32
  "@types/jest": "29.5.5",
33
33
  "@types/node": "20.3.1",
34
34
  "@types/nodemailer": "6.4.15",
@@ -59,11 +59,13 @@ export interface SignupConfirmationEmailConfig {
59
59
  /**
60
60
  * Generates the email content for an existing user if they attempt to sign up again.
61
61
  *
62
+ * If not provided, an email will not be sent in this scenario.
63
+ *
62
64
  * @returns An object containing the email content:
63
65
  * - text: The plain text version of the email (required)
64
66
  * - html: The HTML version of the email (optional, used for styling)
65
67
  */
66
- getExistingUserEmailContent: () => {
68
+ getExistingUserEmailContent?: () => {
67
69
  text: string;
68
70
  html?: string;
69
71
  };