@mysetup/nodemailer 1.0.0 → 1.2.0
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/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/nodemailer.d.ts +2 -2
- package/dist/nodemailer.d.ts.map +1 -1
- package/dist/nodemailer.js +4 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
|
package/dist/index.js
CHANGED
package/dist/nodemailer.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { type SendEmailInput } from "./types";
|
|
2
|
-
export declare const connectNodeMailer: (data: SendEmailInput) => Promise<string | undefined>;
|
|
1
|
+
import { type SendEmailEnv, type SendEmailInput } from "./types";
|
|
2
|
+
export declare const connectNodeMailer: (data: SendEmailInput, config: SendEmailEnv) => Promise<string | undefined>;
|
|
3
3
|
//# sourceMappingURL=nodemailer.d.ts.map
|
package/dist/nodemailer.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodemailer.d.ts","sourceRoot":"","sources":["../nodemailer.ts"],"names":[],"mappings":"AAOA,OAAO,
|
|
1
|
+
{"version":3,"file":"nodemailer.d.ts","sourceRoot":"","sources":["../nodemailer.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAE,MAAM,SAAS,CAAC;AAqCjE,eAAO,MAAM,iBAAiB,SACpB,cAAc,UACZ,YAAY,gCAgCvB,CAAC"}
|
package/dist/nodemailer.js
CHANGED
|
@@ -73,7 +73,7 @@ var sendMail = function (mailOptions, env) {
|
|
|
73
73
|
});
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
|
-
var connectNodeMailer = function (data) { return __awaiter(void 0, void 0, void 0, function () {
|
|
76
|
+
var connectNodeMailer = function (data, config) { return __awaiter(void 0, void 0, void 0, function () {
|
|
77
77
|
var templatePath, htmlTemplate, mailOptions, env, error_1;
|
|
78
78
|
return __generator(this, function (_a) {
|
|
79
79
|
switch (_a.label) {
|
|
@@ -89,9 +89,9 @@ var connectNodeMailer = function (data) { return __awaiter(void 0, void 0, void
|
|
|
89
89
|
html: htmlTemplate,
|
|
90
90
|
};
|
|
91
91
|
env = {
|
|
92
|
-
user:
|
|
93
|
-
pass:
|
|
94
|
-
from:
|
|
92
|
+
user: config.user,
|
|
93
|
+
pass: config.pass,
|
|
94
|
+
from: config.from,
|
|
95
95
|
};
|
|
96
96
|
return [4 /*yield*/, sendMail(mailOptions, env)];
|
|
97
97
|
case 2:
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,IAAI,CAAC;CACf"}
|