nuxt-mail 8.0.0 → 8.0.2
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/normalize-options.d.ts +1 -1
- package/dist/types.d.ts +14 -11
- package/package.json +9 -8
package/dist/types.d.ts
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import type { SendMailOptions
|
|
1
|
+
import type { SendMailOptions } from 'nodemailer';
|
|
2
|
+
import type SMTPTransport from 'nodemailer/lib/smtp-transport';
|
|
3
|
+
import type { RequireAtLeastOne } from 'type-fest';
|
|
4
|
+
|
|
5
|
+
export type Message = RequireAtLeastOne<
|
|
6
|
+
SendMailOptions,
|
|
7
|
+
'to' | 'cc' | 'bcc'
|
|
8
|
+
> & { name?: string };
|
|
2
9
|
|
|
3
10
|
export interface MailOptions {
|
|
4
11
|
message: Message[];
|
|
5
|
-
smtp:
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export interface Message extends Omit<SendMailOptions, 'to' | 'cc' | 'bcc'> {
|
|
9
|
-
to: SendMailOptions['to'];
|
|
10
|
-
cc: SendMailOptions['cc'];
|
|
11
|
-
bcc: SendMailOptions['bcc'];
|
|
12
|
-
name?: string;
|
|
12
|
+
smtp: SMTPTransport.Options | null;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface MailOptionsInput extends Omit<MailOptions, 'message'> {
|
|
16
16
|
message: MailOptions['message'] | Message;
|
|
17
|
-
smtp:
|
|
17
|
+
smtp: SMTPTransport.Options;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface MessageWithConfig extends
|
|
20
|
+
export interface MessageWithConfig extends Omit<
|
|
21
|
+
SendMailOptions,
|
|
22
|
+
'to' | 'cc' | 'bcc'
|
|
23
|
+
> {
|
|
21
24
|
config: number;
|
|
22
25
|
}
|
|
23
26
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-mail",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.2",
|
|
4
4
|
"description": "Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"email",
|
|
@@ -47,24 +47,25 @@
|
|
|
47
47
|
"verify": "base verify"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@nuxt/kit": "^4.2.
|
|
50
|
+
"@nuxt/kit": "^4.2.2",
|
|
51
|
+
"@types/lodash-es": "^4.17.12",
|
|
52
|
+
"@types/nodemailer": "^7.0.4",
|
|
51
53
|
"defu": "^6.1.4",
|
|
52
|
-
"lodash-es": "^4.17.
|
|
53
|
-
"nodemailer": "^7.0.
|
|
54
|
+
"lodash-es": "^4.17.22",
|
|
55
|
+
"nodemailer": "^7.0.12",
|
|
56
|
+
"type-fest": "^5.3.1"
|
|
54
57
|
},
|
|
55
58
|
"devDependencies": {
|
|
56
|
-
"@dword-design/base": "^16.1.
|
|
59
|
+
"@dword-design/base": "^16.1.6",
|
|
57
60
|
"@dword-design/base-config-nuxt-module": "^5.0.0",
|
|
58
61
|
"@playwright/browser-chromium": "^1.57.0",
|
|
59
62
|
"@playwright/test": "^1.57.0",
|
|
60
63
|
"@types/fs-extra": "^11.0.4",
|
|
61
|
-
"@types/lodash-es": "^4.17.12",
|
|
62
|
-
"@types/nodemailer": "^7.0.4",
|
|
63
64
|
"axios": "^1.13.2",
|
|
64
65
|
"endent": "npm:@dword-design/endent@^1.4.7",
|
|
65
66
|
"execa": "^9.6.1",
|
|
66
67
|
"get-port": "^7.1.0",
|
|
67
|
-
"nuxt": "^4.2.
|
|
68
|
+
"nuxt": "^4.2.2",
|
|
68
69
|
"nuxt-dev-ready": "^5.0.1",
|
|
69
70
|
"output-files": "^3.0.0",
|
|
70
71
|
"port-ready": "npm:@dword-design/port-ready-fork@^0.0.3",
|