@cedarjs/mailer-handler-nodemailer 6.0.0-canary.2750 → 6.0.0-canary.2756
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 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -40
- package/package.json +6 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import nodemailer from 'nodemailer';
|
|
2
|
-
import type SMTPTransport from 'nodemailer/lib/smtp-transport';
|
|
2
|
+
import type SMTPTransport from 'nodemailer/lib/smtp-transport/index.js';
|
|
3
3
|
import { AbstractMailHandler } from '@cedarjs/mailer-core';
|
|
4
4
|
import type { MailRenderedContent, MailResult, MailSendOptionsComplete } from '@cedarjs/mailer-core';
|
|
5
5
|
export type HandlerConfig = {
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,aAAa,MAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,aAAa,MAAM,wCAAwC,CAAA;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,KAAK,EACV,mBAAmB,EACnB,UAAU,EACV,uBAAuB,EACxB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,aAAa,GAAG,aAAa,CAAC,OAAO,GAAG,MAAM,CAAA;IACzD,QAAQ,CAAC,EAAE,aAAa,CAAC,OAAO,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,eAAe,CAAA;AAEvD,qBAAa,qBAAsB,SAAQ,mBAAmB;IAGhD,SAAS,CAAC,MAAM,EAAE,aAAa;IAF3C,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAA;gBAEvB,MAAM,EAAE,aAAa;IAUrC,IAAI,CACR,eAAe,EAAE,mBAAmB,EACpC,WAAW,EAAE,uBAAuB,EACpC,cAAc,CAAC,EAAE,cAAc,GAC9B,OAAO,CAAC,UAAU,CAAC;IAqBtB,QAAQ;;;;CAMT"}
|
package/dist/index.js
CHANGED
|
@@ -1,43 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var index_exports = {};
|
|
30
|
-
__export(index_exports, {
|
|
31
|
-
NodemailerMailHandler: () => NodemailerMailHandler
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(index_exports);
|
|
34
|
-
var import_nodemailer = __toESM(require("nodemailer"));
|
|
35
|
-
var import_mailer_core = require("@cedarjs/mailer-core");
|
|
36
|
-
class NodemailerMailHandler extends import_mailer_core.AbstractMailHandler {
|
|
1
|
+
import nodemailer from "nodemailer";
|
|
2
|
+
import { AbstractMailHandler } from "@cedarjs/mailer-core";
|
|
3
|
+
class NodemailerMailHandler extends AbstractMailHandler {
|
|
37
4
|
constructor(config) {
|
|
38
5
|
super();
|
|
39
6
|
this.config = config;
|
|
40
|
-
this.transporter =
|
|
7
|
+
this.transporter = nodemailer.createTransport(
|
|
41
8
|
config.transport,
|
|
42
9
|
config.defaults
|
|
43
10
|
);
|
|
@@ -71,7 +38,6 @@ class NodemailerMailHandler extends import_mailer_core.AbstractMailHandler {
|
|
|
71
38
|
};
|
|
72
39
|
}
|
|
73
40
|
}
|
|
74
|
-
|
|
75
|
-
0 && (module.exports = {
|
|
41
|
+
export {
|
|
76
42
|
NodemailerMailHandler
|
|
77
|
-
}
|
|
43
|
+
};
|
package/package.json
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/mailer-handler-nodemailer",
|
|
3
|
-
"version": "6.0.0-canary.
|
|
3
|
+
"version": "6.0.0-canary.2756",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
7
7
|
"directory": "packages/mailer/handlers/nodemailer"
|
|
8
8
|
},
|
|
9
9
|
"license": "MIT",
|
|
10
|
-
"type": "
|
|
10
|
+
"type": "module",
|
|
11
11
|
"main": "./dist/index.js",
|
|
12
12
|
"types": "./dist/index.d.ts",
|
|
13
13
|
"files": [
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "node ./build.mts
|
|
17
|
+
"build": "node ./build.mts",
|
|
18
18
|
"build:pack": "yarn pack -o cedarjs-mailer-handler-nodemailer.tgz",
|
|
19
|
-
"build:types": "tsc --build --verbose",
|
|
19
|
+
"build:types": "tsc --build --verbose ./tsconfig.build.json",
|
|
20
20
|
"build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
|
|
21
21
|
"prepublishOnly": "NODE_ENV=production yarn build"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@cedarjs/mailer-core": "6.0.0-canary.
|
|
24
|
+
"@cedarjs/mailer-core": "6.0.0-canary.2756",
|
|
25
25
|
"nodemailer": "8.0.4"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@cedarjs/framework-tools": "6.0.0-canary.
|
|
28
|
+
"@cedarjs/framework-tools": "6.0.0-canary.2756",
|
|
29
29
|
"@types/nodemailer": "^6",
|
|
30
30
|
"typescript": "5.9.3"
|
|
31
31
|
},
|