resend 1.0.0 → 1.0.1-canary.1
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/build/package.json
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-canary.1",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/"
|
|
9
9
|
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./build/src/index.d.ts",
|
|
14
|
+
"default": "./build/src/index.mjs"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./build/src/index.d.ts",
|
|
18
|
+
"default": "./build/src/index.js"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
10
22
|
"engines": {
|
|
11
23
|
"node": ">=16"
|
|
12
24
|
},
|
|
@@ -21,14 +33,14 @@
|
|
|
21
33
|
},
|
|
22
34
|
"repository": {
|
|
23
35
|
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/
|
|
36
|
+
"url": "git+https://github.com/resendlabs/resend-node.git"
|
|
25
37
|
},
|
|
26
38
|
"author": "",
|
|
27
39
|
"license": "MIT",
|
|
28
40
|
"bugs": {
|
|
29
|
-
"url": "https://github.com/
|
|
41
|
+
"url": "https://github.com/resendlabs/resend-node/issues"
|
|
30
42
|
},
|
|
31
|
-
"homepage": "https://github.com/
|
|
43
|
+
"homepage": "https://github.com/resendlabs/resend-node#readme",
|
|
32
44
|
"dependencies": {
|
|
33
45
|
"@react-email/render": "0.0.7",
|
|
34
46
|
"node-fetch": "2.6.12",
|
|
@@ -6,73 +6,73 @@ interface CreateEmailBaseOptions {
|
|
|
6
6
|
/**
|
|
7
7
|
* Filename and content of attachments (max 40mb per email)
|
|
8
8
|
*
|
|
9
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
9
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
10
10
|
*/
|
|
11
11
|
attachments?: Attachment[];
|
|
12
12
|
/**
|
|
13
13
|
* Blind carbon copy recipient email address. For multiple addresses, send as an array of strings.
|
|
14
14
|
*
|
|
15
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
15
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
16
16
|
*/
|
|
17
17
|
bcc?: string | string[];
|
|
18
18
|
/**
|
|
19
19
|
* Carbon copy recipient email address. For multiple addresses, send as an array of strings.
|
|
20
20
|
*
|
|
21
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
21
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
22
22
|
*/
|
|
23
23
|
cc?: string | string[];
|
|
24
24
|
/**
|
|
25
25
|
* Sender email address. To include a friendly name, use the format `"Your Name <sender@domain.com>"`
|
|
26
26
|
*
|
|
27
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
27
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
28
28
|
*/
|
|
29
29
|
from: string;
|
|
30
30
|
/**
|
|
31
31
|
* Custom headers to add to the email.
|
|
32
32
|
*
|
|
33
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
33
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
34
34
|
*/
|
|
35
35
|
headers?: Record<string, string>;
|
|
36
36
|
/**
|
|
37
37
|
* The React component used to write the message.
|
|
38
38
|
*
|
|
39
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
39
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
40
40
|
*/
|
|
41
41
|
react?: React.ReactElement | React.ReactNode | null;
|
|
42
42
|
/**
|
|
43
43
|
* The HTML version of the message.
|
|
44
44
|
*
|
|
45
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
45
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
46
46
|
*/
|
|
47
47
|
html?: string;
|
|
48
48
|
/**
|
|
49
49
|
* The plain text version of the message.
|
|
50
50
|
*
|
|
51
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
51
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
52
52
|
*/
|
|
53
53
|
text?: string;
|
|
54
54
|
/**
|
|
55
55
|
* Reply-to email address. For multiple addresses, send as an array of strings.
|
|
56
56
|
*
|
|
57
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
57
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
58
58
|
*/
|
|
59
59
|
reply_to?: string | string[];
|
|
60
60
|
/**
|
|
61
61
|
* Email subject.
|
|
62
62
|
*
|
|
63
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
63
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
64
64
|
*/
|
|
65
65
|
subject: string;
|
|
66
66
|
/**
|
|
67
67
|
* Email tags
|
|
68
68
|
*
|
|
69
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
69
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
70
70
|
*/
|
|
71
71
|
tags?: Tag[];
|
|
72
72
|
/**
|
|
73
73
|
* Recipient email address. For multiple addresses, send as an array of strings. Max 50.
|
|
74
74
|
*
|
|
75
|
-
* @link https://resend.com/api-reference/emails/send-email#body-parameters
|
|
75
|
+
* @link https://resend.com/docs/api-reference/emails/send-email#body-parameters
|
|
76
76
|
*/
|
|
77
77
|
to: string | string[];
|
|
78
78
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-canary.1",
|
|
4
4
|
"description": "Node.js library for the Resend API",
|
|
5
5
|
"main": "build/src/index.js",
|
|
6
6
|
"typings": "build/src/index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"build/"
|
|
9
9
|
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"import": {
|
|
13
|
+
"types": "./build/src/index.d.ts",
|
|
14
|
+
"default": "./build/src/index.mjs"
|
|
15
|
+
},
|
|
16
|
+
"require": {
|
|
17
|
+
"types": "./build/src/index.d.ts",
|
|
18
|
+
"default": "./build/src/index.js"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
10
22
|
"engines": {
|
|
11
23
|
"node": ">=16"
|
|
12
24
|
},
|
|
@@ -21,14 +33,14 @@
|
|
|
21
33
|
},
|
|
22
34
|
"repository": {
|
|
23
35
|
"type": "git",
|
|
24
|
-
"url": "git+https://github.com/
|
|
36
|
+
"url": "git+https://github.com/resendlabs/resend-node.git"
|
|
25
37
|
},
|
|
26
38
|
"author": "",
|
|
27
39
|
"license": "MIT",
|
|
28
40
|
"bugs": {
|
|
29
|
-
"url": "https://github.com/
|
|
41
|
+
"url": "https://github.com/resendlabs/resend-node/issues"
|
|
30
42
|
},
|
|
31
|
-
"homepage": "https://github.com/
|
|
43
|
+
"homepage": "https://github.com/resendlabs/resend-node#readme",
|
|
32
44
|
"dependencies": {
|
|
33
45
|
"@react-email/render": "0.0.7",
|
|
34
46
|
"node-fetch": "2.6.12",
|