@vitnode/nodemailer 1.2.0-canary.60 → 1.2.0-canary.62

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitnode/nodemailer",
3
- "version": "1.2.0-canary.60",
3
+ "version": "1.2.0-canary.62",
4
4
  "description": "Nodemailer integration package for VitNode, enabling email functionalities.",
5
5
  "author": "VitNode Team",
6
6
  "license": "MIT",
@@ -34,8 +34,8 @@
34
34
  "eslint": "^9.39.1",
35
35
  "tsc-alias": "^1.8.16",
36
36
  "typescript": "^5.9.3",
37
- "@vitnode/core": "1.2.0-canary.60",
38
- "@vitnode/config": "1.2.0-canary.60"
37
+ "@vitnode/config": "1.2.0-canary.62",
38
+ "@vitnode/core": "1.2.0-canary.62"
39
39
  },
40
40
  "scripts": {
41
41
  "build:plugins": "tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json",
package/.swcrc DELETED
@@ -1,25 +0,0 @@
1
- {
2
- "$schema": "https://swc.rs/schema.json",
3
- "minify": true,
4
- "jsc": {
5
- "baseUrl": "./",
6
- "target": "esnext",
7
- "paths": {
8
- "@/*": ["./src/*"]
9
- },
10
- "parser": {
11
- "syntax": "typescript",
12
- "tsx": true
13
- },
14
- "transform": {
15
- "react": {
16
- "runtime": "automatic"
17
- }
18
- }
19
- },
20
- "module": {
21
- "type": "nodenext",
22
- "strict": true,
23
- "resolveFully": true
24
- }
25
- }
@@ -1,6 +0,0 @@
1
-
2
- 
3
- > @vitnode/nodemailer@1.2.0-canary.60 build:plugins /Users/axendev/Documents/vitnode/packages/nodemailer
4
- > tsc && swc src -d dist --config-file .swcrc && tsc-alias -p tsconfig.json
5
-
6
- Successfully compiled: 1 file with swc (32.72ms)
package/eslint.config.mjs DELETED
@@ -1,17 +0,0 @@
1
- import eslintVitNode from "@vitnode/config/eslint";
2
- import { fileURLToPath } from "node:url";
3
- import { dirname } from "node:path";
4
-
5
- const __dirname = dirname(fileURLToPath(import.meta.url));
6
-
7
- export default [
8
- ...eslintVitNode,
9
- {
10
- languageOptions: {
11
- parserOptions: {
12
- project: "./tsconfig.json",
13
- tsconfigRootDir: __dirname,
14
- },
15
- },
16
- },
17
- ];
package/src/index.ts DELETED
@@ -1,52 +0,0 @@
1
- import type { EmailApiPlugin } from "@vitnode/core/api/models/email";
2
-
3
- import { createTransport } from "nodemailer";
4
-
5
- export const NodemailerEmailAdapter = ({
6
- host = "",
7
- port = 587,
8
- secure = false,
9
- user = "",
10
- password = "",
11
- from = "",
12
- }: {
13
- from: string | undefined;
14
- host: string | undefined;
15
- password: string | undefined;
16
- port?: number;
17
- secure?: boolean;
18
- user: string | undefined;
19
- }): EmailApiPlugin => {
20
- return {
21
- sendEmail: async ({ metadata, to, subject, html, replyTo }) => {
22
- if (!(host && user && password && from)) {
23
- throw new Error("Missing nodemailer configuration");
24
- }
25
-
26
- const transporter = createTransport(
27
- {
28
- host,
29
- port,
30
- secure,
31
- auth: {
32
- user,
33
- pass: password,
34
- },
35
- },
36
- {
37
- from: {
38
- name: metadata.shortTitle ?? metadata.title,
39
- address: from,
40
- },
41
- replyTo,
42
- },
43
- );
44
-
45
- await transporter.sendMail({
46
- to,
47
- subject,
48
- html,
49
- });
50
- },
51
- };
52
- };
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "extends": "@vitnode/config/tsconfig",
4
- "compilerOptions": {
5
- "target": "ESNext",
6
- "module": "esnext",
7
- "moduleResolution": "bundler",
8
- "rootDir": "./",
9
- "outDir": "./dist",
10
- "emitDeclarationOnly": true,
11
- "declaration": true,
12
- "declarationMap": true,
13
- "paths": {
14
- "@/*": ["./src/*"]
15
- }
16
- },
17
- "exclude": ["node_modules"],
18
- "include": ["src"]
19
- }