FRE-709: Document duplicate recovery wake - FRE-635 already recovered via FRE-708
This commit is contained in:
21
node_modules/resend/LICENSE
generated
vendored
Normal file
21
node_modules/resend/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2023 Plus Five Five, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
1205
node_modules/resend/dist/index.cjs
generated
vendored
Normal file
1205
node_modules/resend/dist/index.cjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
2142
node_modules/resend/dist/index.d.cts
generated
vendored
Normal file
2142
node_modules/resend/dist/index.d.cts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
2142
node_modules/resend/dist/index.d.mts
generated
vendored
Normal file
2142
node_modules/resend/dist/index.d.mts
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
1181
node_modules/resend/dist/index.mjs
generated
vendored
Normal file
1181
node_modules/resend/dist/index.mjs
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
87
node_modules/resend/package.json
generated
vendored
Normal file
87
node_modules/resend/package.json
generated
vendored
Normal file
@@ -0,0 +1,87 @@
|
||||
{
|
||||
"name": "resend",
|
||||
"version": "6.12.2",
|
||||
"description": "Node.js library for the Resend API",
|
||||
"main": "./dist/index.cjs",
|
||||
"module": "./dist/index.mjs",
|
||||
"types": "./dist/index.d.mts",
|
||||
"files": [
|
||||
"dist/**"
|
||||
],
|
||||
"engines": {
|
||||
"node": ">=20"
|
||||
},
|
||||
"devEngines": {
|
||||
"runtime": {
|
||||
"name": "node",
|
||||
"version": ">=22.0.0"
|
||||
}
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.cts",
|
||||
"default": "./dist/index.cjs"
|
||||
}
|
||||
}
|
||||
},
|
||||
"scripts": {
|
||||
"build": "tsdown src/index.ts --format esm,cjs --dts",
|
||||
"integration:nextjs": "cd ./e2e/nextjs && next build --turbopack",
|
||||
"lint": "biome check .",
|
||||
"lint:fix": "biome check . --write",
|
||||
"prepublishOnly": "pnpm run build",
|
||||
"test": "vitest run --exclude e2e",
|
||||
"test:dev": "cross-env TEST_MODE=dev vitest run --exclude e2e",
|
||||
"test:e2e": "vitest run e2e",
|
||||
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run --exclude e2e",
|
||||
"test:watch": "vitest --exclude e2e",
|
||||
"typecheck": "tsc --noEmit"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/resend/resend-node.git"
|
||||
},
|
||||
"author": "",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/resend/resend-node/issues"
|
||||
},
|
||||
"homepage": "https://github.com/resend/resend-node#readme",
|
||||
"dependencies": {
|
||||
"postal-mime": "2.7.4",
|
||||
"svix": "1.90.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@react-email/render": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@react-email/render": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"@biomejs/biome": "2.4.12",
|
||||
"@pollyjs/adapter-fetch": "6.0.7",
|
||||
"@pollyjs/core": "6.0.6",
|
||||
"@pollyjs/persister-fs": "6.0.6",
|
||||
"@types/mailparser": "3.4.6",
|
||||
"@types/node": "24.12.2",
|
||||
"@types/react": "19.2.14",
|
||||
"cross-env": "10.1.0",
|
||||
"dotenv": "17.4.2",
|
||||
"pkg-pr-new": "0.0.66",
|
||||
"react": "19.2.5",
|
||||
"react-dom": "19.2.5",
|
||||
"rimraf": "6.1.3",
|
||||
"tsdown": "0.21.4",
|
||||
"typescript": "6.0.3",
|
||||
"vitest": "4.1.4",
|
||||
"vitest-fetch-mock": "0.4.5"
|
||||
},
|
||||
"packageManager": "pnpm@10.33.0"
|
||||
}
|
||||
139
node_modules/resend/readme.md
generated
vendored
Normal file
139
node_modules/resend/readme.md
generated
vendored
Normal file
@@ -0,0 +1,139 @@
|
||||
|
||||

|
||||
|
||||
<p align="center">
|
||||
<a href="https://resend.com/docs/send-with-nodejs">Quickstart Docs</a>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
Framework guides
|
||||
</p>
|
||||
<p align="center">
|
||||
<a
|
||||
- <a href="https://resend.com/docs/send-with-nextjs">Next.js</a>
|
||||
- <a href="https://resend.com/docs/send-with-remix">Remix</a>
|
||||
- <a href="https://resend.com/docs/send-with-nuxt">Nuxt</a>
|
||||
- <a href="https://resend.com/docs/send-with-express">Express</a>
|
||||
- <a href="https://resend.com/docs/send-with-redwoodjs">RedwoodJS</a>
|
||||
- <a href="https://resend.com/docs/send-with-hono">Hono</a>
|
||||
- <a href="https://resend.com/docs/send-with-bun">Bun</a>
|
||||
- <a href="https://resend.com/docs/send-with-astro">Astro</a>
|
||||
</p>
|
||||
|
||||
# Resend Node.js SDK
|
||||
|
||||
Node.js library for the Resend API.
|
||||
|
||||
## Install
|
||||
|
||||
```bash
|
||||
npm install resend
|
||||
# or
|
||||
yarn add resend
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
Send email with:
|
||||
|
||||
- [Node.js](https://github.com/resend/resend-node-example)
|
||||
- [Next.js (App Router)](https://github.com/resend/resend-nextjs-app-router-example)
|
||||
- [Next.js (Pages Router)](https://github.com/resend/resend-nextjs-pages-router-example)
|
||||
- [Express](https://github.com/resend/resend-express-example)
|
||||
|
||||
## Setup
|
||||
|
||||
First, you need to get an API key, which is available in the [Resend Dashboard](https://resend.com/api-keys).
|
||||
|
||||
```js
|
||||
import { Resend } from 'resend';
|
||||
const resend = new Resend('re_xxxx...xxxxxx');
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
Send your first email:
|
||||
|
||||
```js
|
||||
const { data } = await resend.emails.send({
|
||||
from: 'you@example.com',
|
||||
to: 'user@gmail.com',
|
||||
replyTo: 'you@example.com',
|
||||
subject: 'hello world',
|
||||
text: 'it works!',
|
||||
});
|
||||
|
||||
console.log(`Email ${data.id} has been sent`);
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> In order to send from your own domain, you will first need to verify your domain in the [Resend Dashboard](https://resend.com/domains).
|
||||
|
||||
## Send email using HTML
|
||||
|
||||
Send an email custom HTML content:
|
||||
|
||||
```js
|
||||
const { data } = await resend.emails.send({
|
||||
from: 'you@example.com',
|
||||
to: 'user@gmail.com',
|
||||
replyTo: 'you@example.com',
|
||||
subject: 'hello world',
|
||||
html: '<strong>it works!</strong>',
|
||||
});
|
||||
|
||||
console.log(`Emaill ${data.id} with customer HTML content has been sent.`);
|
||||
```
|
||||
|
||||
## Send email using React
|
||||
|
||||
Start by creating your email template as a React component.
|
||||
|
||||
```jsx
|
||||
import React from 'react';
|
||||
|
||||
export default function EmailTemplate({ firstName, product }) {
|
||||
return (
|
||||
<div>
|
||||
<h1>Welcome, {firstName}!</h1>
|
||||
<p>Thanks for trying {product}. We’re thrilled to have you on board.</p>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
```
|
||||
|
||||
Then import the template component and pass it to the `react` property.
|
||||
|
||||
```jsx
|
||||
import EmailTemplate from '../components/EmailTemplate';
|
||||
|
||||
const { data } = await resend.emails.send({
|
||||
from: 'you@example.com',
|
||||
to: 'user@gmail.com',
|
||||
replyTo: 'you@example.com',
|
||||
subject: 'hello world',
|
||||
react: <EmailTemplate firstName="John" product="MyApp" />,
|
||||
});
|
||||
|
||||
console.log(`Email ${data.id} with a React template has been sent`);
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> If you're sending emails from a file that doesn't have JSX transpilation set up (e.g., in a `.js`/`.ts` file instead of JSX/TSX), use React's `jsx` runtime function instead of passing the component as JSX:
|
||||
>
|
||||
>```js
|
||||
>import { jsx } from 'react/jsx-runtime'
|
||||
>import EmailTemplate from '../components/EmailTemplate';
|
||||
>
|
||||
>await resend.emails.send({
|
||||
> from: 'you@example.com',
|
||||
> to: 'user@gmail.com',
|
||||
> replyTo: 'you@example.com',
|
||||
> subject: 'hello world',
|
||||
> react: jsx(EmailTemplate, { firstName:"John", product:"MyApp" }),
|
||||
>});
|
||||
>```
|
||||
|
||||
## License
|
||||
|
||||
MIT License
|
||||
Reference in New Issue
Block a user