@absolutejs/dispatch-resend 0.0.1 → 0.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/README.md +2 -0
- package/dist/index.js +16 -1
- package/dist/index.js.map +2 -2
- package/dist/manifest.d.ts +3 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +8545 -0
- package/dist/manifest.js.map +123 -0
- package/dist/manifest.json +73 -0
- package/package.json +21 -4
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"contract": 1,
|
|
3
|
+
"identity": {
|
|
4
|
+
"accent": "#111827",
|
|
5
|
+
"category": "messaging",
|
|
6
|
+
"description": "Resend-backed `EmailAdapter` for `@absolutejs/dispatch`. Takes your Resend client; emits standard DispatchResult with the Resend message id.",
|
|
7
|
+
"docsUrl": "https://github.com/absolutejs/dispatch-adapters/tree/main/resend",
|
|
8
|
+
"name": "@absolutejs/dispatch-resend",
|
|
9
|
+
"tagline": "Deliver your site’s email with Resend."
|
|
10
|
+
},
|
|
11
|
+
"implements": [
|
|
12
|
+
{
|
|
13
|
+
"contract": "dispatch/email-adapter",
|
|
14
|
+
"factory": "createResendAdapter",
|
|
15
|
+
"from": "@absolutejs/dispatch-resend",
|
|
16
|
+
"requires": {
|
|
17
|
+
"env": [
|
|
18
|
+
{
|
|
19
|
+
"description": "Resend API key",
|
|
20
|
+
"docsUrl": "https://resend.com/api-keys",
|
|
21
|
+
"example": "re_xxxxxxxxx",
|
|
22
|
+
"key": "RESEND_KEY",
|
|
23
|
+
"secret": true
|
|
24
|
+
}
|
|
25
|
+
],
|
|
26
|
+
"peers": [
|
|
27
|
+
{
|
|
28
|
+
"name": "resend",
|
|
29
|
+
"range": "^4.0.0",
|
|
30
|
+
"reason": "Resend SDK client"
|
|
31
|
+
}
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"settings": {
|
|
35
|
+
"type": "object",
|
|
36
|
+
"properties": {
|
|
37
|
+
"defaultFrom": {
|
|
38
|
+
"description": "Used when a message doesn’t name a sender. Resend requires a verified sender.",
|
|
39
|
+
"examples": [
|
|
40
|
+
"hello@yoursite.com"
|
|
41
|
+
],
|
|
42
|
+
"format": "email",
|
|
43
|
+
"title": "Default sender",
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"title": "Resend",
|
|
49
|
+
"wiring": {
|
|
50
|
+
"code": "createResendAdapter({ client: new Resend(${env.RESEND_KEY}), ...${settings} })",
|
|
51
|
+
"imports": [
|
|
52
|
+
{
|
|
53
|
+
"from": "@absolutejs/dispatch-resend",
|
|
54
|
+
"names": [
|
|
55
|
+
"createResendAdapter"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"from": "resend",
|
|
60
|
+
"names": [
|
|
61
|
+
"Resend"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"settings": {
|
|
69
|
+
"type": "object",
|
|
70
|
+
"properties": {}
|
|
71
|
+
},
|
|
72
|
+
"wiring": []
|
|
73
|
+
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@absolutejs/dispatch-resend",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "Resend-backed EmailAdapter for @absolutejs/dispatch. Takes your Resend client; emits standard DispatchResult with the Resend message id.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/absolutejs/dispatch-adapters.git",
|
|
8
8
|
"directory": "resend"
|
|
9
9
|
},
|
|
10
|
+
"homepage": "https://github.com/absolutejs/dispatch-adapters/tree/main/resend",
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/absolutejs/dispatch-adapters/issues"
|
|
13
|
+
},
|
|
10
14
|
"main": "./dist/index.js",
|
|
11
15
|
"module": "./dist/index.js",
|
|
12
16
|
"types": "./dist/index.d.ts",
|
|
@@ -24,7 +28,7 @@
|
|
|
24
28
|
"transactional"
|
|
25
29
|
],
|
|
26
30
|
"scripts": {
|
|
27
|
-
"build": "rm -rf dist && bun build src/index.ts --outdir dist --sourcemap --target=bun --external @absolutejs/dispatch --external resend && tsc --project tsconfig.build.json",
|
|
31
|
+
"build": "rm -rf dist && bun build src/index.ts src/manifest.ts --outdir dist --sourcemap --target=bun --external @absolutejs/dispatch --external resend && tsc --project tsconfig.build.json && absolute-manifest emit",
|
|
28
32
|
"test": "bun test",
|
|
29
33
|
"typecheck": "tsc --noEmit",
|
|
30
34
|
"format": "prettier --write \"./**/*.{ts,json,md}\"",
|
|
@@ -46,10 +50,23 @@
|
|
|
46
50
|
"types": "./dist/index.d.ts",
|
|
47
51
|
"import": "./dist/index.js",
|
|
48
52
|
"default": "./dist/index.js"
|
|
49
|
-
}
|
|
53
|
+
},
|
|
54
|
+
"./manifest": {
|
|
55
|
+
"types": "./dist/manifest.d.ts",
|
|
56
|
+
"import": "./dist/manifest.js",
|
|
57
|
+
"default": "./dist/manifest.js"
|
|
58
|
+
},
|
|
59
|
+
"./manifest.json": "./dist/manifest.json"
|
|
50
60
|
},
|
|
51
61
|
"files": [
|
|
52
62
|
"dist",
|
|
53
63
|
"README.md"
|
|
54
|
-
]
|
|
64
|
+
],
|
|
65
|
+
"absolutejs": {
|
|
66
|
+
"manifestContract": 1
|
|
67
|
+
},
|
|
68
|
+
"dependencies": {
|
|
69
|
+
"@absolutejs/manifest": "^0.1.0",
|
|
70
|
+
"@sinclair/typebox": "^0.34.0"
|
|
71
|
+
}
|
|
55
72
|
}
|