├── .eslintrc.js ├── .github ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── dependabot.yml ├── pull_request_template.md └── workflows │ └── release.yml ├── .gitignore ├── .prettierrc ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── nest-cli.json ├── package-lock.json ├── package.json ├── src ├── index.ts ├── resend-core.module.ts ├── resend.constant.ts ├── resend.interface.ts ├── resend.module.ts └── resend.service.ts ├── tsconfig.build.json └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | parser: '@typescript-eslint/parser', 3 | parserOptions: { 4 | project: 'tsconfig.json', 5 | tsconfigRootDir: __dirname, 6 | sourceType: 'module', 7 | }, 8 | plugins: ['@typescript-eslint/eslint-plugin'], 9 | extends: [ 10 | 'plugin:@typescript-eslint/recommended', 11 | 'plugin:prettier/recommended', 12 | ], 13 | root: true, 14 | env: { 15 | node: true, 16 | jest: true, 17 | }, 18 | ignorePatterns: ['.eslintrc.js'], 19 | rules: { 20 | '@typescript-eslint/interface-name-prefix': 'off', 21 | '@typescript-eslint/explicit-function-return-type': 'off', 22 | '@typescript-eslint/explicit-module-boundary-types': 'off', 23 | '@typescript-eslint/no-explicit-any': 'off', 24 | }, 25 | }; 26 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a report to help us improve 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | --- 8 | 9 | **Describe the bug** 10 | A clear and concise description of what the bug is. 11 | 12 | **To Reproduce** 13 | Steps to reproduce the behavior: 14 | 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen. 22 | 23 | **Screenshots** 24 | If applicable, add screenshots to help explain your problem. 25 | 26 | **Desktop (please complete the following information):** 27 | 28 | - OS: [e.g. iOS] 29 | - Browser [e.g. chrome, safari] 30 | - Version [e.g. 22] 31 | 32 | **Smartphone (please complete the following information):** 33 | 34 | - Device: [e.g. iPhone6] 35 | - OS: [e.g. iOS8.1] 36 | - Browser [e.g. stock browser, safari] 37 | - Version [e.g. 22] 38 | 39 | **Additional context** 40 | Add any other context about the problem here. 41 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea for this project 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | --- 8 | 9 | **Is your feature request related to a problem? Please describe.** 10 | A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] 11 | 12 | **Describe the solution you'd like** 13 | A clear and concise description of what you want to happen. 14 | 15 | **Describe alternatives you've considered** 16 | A clear and concise description of any alternative solutions or features you've considered. 17 | 18 | **Additional context** 19 | Add any other context or screenshots about the feature request here. 20 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | # To get started with Dependabot version updates, you'll need to specify which 2 | # package ecosystems to update and where the package manifests are located. 3 | # Please see the documentation for all configuration options: 4 | # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates 5 | 6 | version: 2 7 | updates: 8 | - package-ecosystem: 'npm' # See documentation for possible values 9 | directory: '/' # Location of package manifests 10 | schedule: 11 | interval: 'weekly' 12 | commit-message: 13 | prefix: 'npm' 14 | include: 'scope' 15 | labels: 16 | - '📦 dependencies' -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | ## Pull Request Description 2 | 3 | **What does this PR do?** 4 | 5 | A brief description of the changes introduced by this pull request. 6 | 7 | **Related Issue(s)** 8 | 9 | Link to any related GitHub issues or feature requests, if applicable. 10 | 11 | **Screenshots (if relevant)** 12 | 13 | Add any relevant screenshots or GIFs to showcase the changes visually. 14 | 15 |
16 | 17 | ### Checklist 18 | 19 | Please make sure to review and check the following before submitting the pull request: 20 | 21 | - [ ] The code follows the project's coding guidelines and style. 22 | - [ ] Appropriate unit tests have been added/updated to cover the changes. 23 | - [ ] All existing tests pass successfully. 24 | - [ ] The documentation has been updated to reflect any changes to functionality/APIs. 25 | - [ ] Code has been reviewed for security considerations (e.g., input validation, data sanitization). 26 | - [ ] The branch is up to date with the latest changes from the main repository. 27 | - [ ] Commit messages follow the project's commit message guidelines. 28 | 29 | ### Additional Notes 30 | 31 | Any additional information or context that would be helpful for reviewers to understand the changes. 32 | -------------------------------------------------------------------------------- /.github/workflows/release.yml: -------------------------------------------------------------------------------- 1 | # PUBLISH NODE PACKAGES & RELEASE PACKAGE 2 | # 3 | # Publish this project into the node package 4 | # so can access and install from the aplication 5 | # Publish using npmjs.com 6 | # ***** NOTE ***** 7 | # Every tag & release created will automatically create a new 8 | # version of packages 9 | 10 | name: Publish Node Package 11 | 12 | on: 13 | push: 14 | tags: 15 | - 'v*' 16 | 17 | jobs: 18 | publish-npm: 19 | name: Publish to NPM Package 20 | runs-on: ubuntu-latest 21 | steps: 22 | - uses: actions/checkout@v3 23 | - uses: actions/setup-node@v3 24 | with: 25 | node-version: 18 26 | registry-url: https://registry.npmjs.org/ 27 | - run: npm ci 28 | - run: npm run build 29 | - run: npm publish --access public 30 | env: 31 | NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} 32 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # compiled output 2 | /dist 3 | /node_modules 4 | 5 | # Logs 6 | logs 7 | *.log 8 | npm-debug.log* 9 | pnpm-debug.log* 10 | yarn-debug.log* 11 | yarn-error.log* 12 | lerna-debug.log* 13 | 14 | # OS 15 | .DS_Store 16 | 17 | # Tests 18 | /coverage 19 | /.nyc_output 20 | 21 | # IDEs and editors 22 | /.idea 23 | .project 24 | .classpath 25 | .c9/ 26 | *.launch 27 | .settings/ 28 | *.sublime-workspace 29 | 30 | # IDE - VSCode 31 | .vscode/* 32 | !.vscode/settings.json 33 | !.vscode/tasks.json 34 | !.vscode/launch.json 35 | !.vscode/extensions.json -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- 1 | { 2 | "semi": false, 3 | "singleQuote": true, 4 | "trailingComma": "all" 5 | } 6 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # 👛 Changelog 2 | 3 | All the change, feature and detail update for this project is documented on this file. 4 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | - Demonstrating empathy and kindness toward other people 21 | - Being respectful of differing opinions, viewpoints, and experiences 22 | - Giving and gracefully accepting constructive feedback 23 | - Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | - Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | - The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | - Trolling, insulting or derogatory comments, and personal or political attacks 33 | - Public or private harassment 34 | - Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | - Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | Paul Lee. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by [Mozilla's code of conduct 122 | enforcement ladder](https://github.com/mozilla/diversity). 123 | 124 | [homepage]: https://www.contributor-covenant.org 125 | 126 | For answers to common questions about this code of conduct, see the FAQ at 127 | https://www.contributor-covenant.org/faq. Translations are available at 128 | https://www.contributor-covenant.org/translations. 129 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # 🩷 Contributing 2 | 3 | Thank you for your interest in contributing to the this project! By contributing, you can help improve the package, fix bugs, add new features, and ensure its overall quality. This document will guide you through the process of contributing to the project. 4 | 5 | ## Table of Contents 6 | 7 | - [Getting Started](#getting-started) 8 | - [Prerequisites](#prerequisites) 9 | - [Fork the Repository](#fork-the-repository) 10 | - [Clone the Repository](#clone-the-repository) 11 | - [Setting Up the Development Environment](#setting-up-the-development-environment) 12 | - [Install Dependencies](#install-dependencies) 13 | - [Build the Package](#build-the-package) 14 | - [Testing](#testing) 15 | - [Unit Tests](#unit-tests) 16 | - [Integration Tests](#integration-tests) 17 | - [Making Changes](#making-changes) 18 | - [Create a New Branch](#create-a-new-branch) 19 | - [Commit Guidelines](#commit-guidelines) 20 | - [Submitting a Pull Request](#submitting-a-pull-request) 21 | - [Code of Conduct](#code-of-conduct) 22 | - [License](#license) 23 | 24 |
25 | 26 | ## Getting Started 27 | 28 | Before contributing to this project please read all of the instruction below. 29 | 30 | ### Prerequisites 31 | 32 | Before you start contributing to the NestJS package, you need to have the following software installed on your system: 33 | 34 | - Node.js (LTS version) 35 | - npm (Node Package Manager) 36 | 37 | ### Fork the Repository 38 | 39 | To contribute, you'll first need to fork the official repository to your GitHub account. You can do this by clicking the "Fork" button at the top right corner of the repository page. 40 | 41 | ### Clone the Repository 42 | 43 | After forking the repository, you can clone it to your local development environment using the following command: 44 | 45 | ```bash 46 | git clone https://github.com/jiangtaste/nestjs-resend.git 47 | ``` 48 | 49 |
50 | 51 | ## Setting Up the Development Environment 52 | 53 | ### Install Dependencies 54 | 55 | Navigate to the cloned repository and install the project dependencies: 56 | 57 | ```bash 58 | cd nestjs-resend 59 | npm install 60 | ``` 61 | 62 |
63 | 64 | ### Build the Package 65 | 66 | To build the package and ensure everything is set up correctly, use the following command: 67 | 68 | ```bash 69 | npm run build 70 | ``` 71 | 72 |
73 | 74 | ## Testing 75 | 76 | ### Unit Tests 77 | 78 | The NestJS package comes with a test suite to ensure the functionality is working as expected. Run the unit tests using the following command: 79 | 80 | ```bash 81 | npm run test 82 | ``` 83 | 84 |
85 | 86 | ## Making Changes 87 | 88 | ### Create a New Branch 89 | 90 | Before making any changes, create a new branch in your local repository. It is a good practice to name your branch appropriately, reflecting the changes you intend to make. 91 | 92 | ```bash 93 | git checkout -b feature/new-feature 94 | ``` 95 | 96 | ### Commit Guidelines 97 | 98 | Follow these guidelines when making commits: 99 | 100 | - Use clear and descriptive commit messages. 101 | - Use present tense in commit messages (e.g., "Add new feature" instead of "Added new feature"). 102 | - Keep commits focused and atomic. 103 | 104 |
105 | 106 | ## Submitting a Pull Request 107 | 108 | Once you've made the necessary changes, pushed them to your forked repository, and are satisfied with your contributions, you can submit a pull request to the main repository. Follow these steps: 109 | 110 | 1. Go to the original repository on GitHub. 111 | 2. Click on "Pull Requests" and then "New Pull Request." 112 | 3. Choose the branch you've made the changes on (e.g., `feature/new-feature`). 113 | 4. Add a descriptive title and detailed description of the changes made in the pull request. 114 | 5. Submit the pull request. 115 | 116 | Your pull request will then be reviewed by the maintainers. Please be patient, as the review process may take some time. 117 | 118 |
119 | 120 | ## Code of Conduct 121 | 122 | Contributors to the NestJS package are expected to adhere to the [Code of Conduct](CODE_OF_CONDUCT.md). Please familiarize yourself with these guidelines before participating in the project. 123 | 124 |
125 | 126 | ## License 127 | 128 | By contributing to the NestJS package, you agree that your contributions will be licensed under the project's [LICENSE](LICENSE). 129 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 Paul Lee 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | Nest Logo 3 |

4 | 5 | [circleci-image]: https://img.shields.io/circleci/build/github/nestjs/nest/master?token=abc123def456 6 | [circleci-url]: https://circleci.com/gh/nestjs/nest 7 | 8 |

A simple nestjs wrapper of Resend. It support send mail only

9 |

10 | NPM Version 11 | Package License 12 | NPM Downloads 13 |

14 | 16 | 17 | ## Features 18 | 19 | 1. send email 20 | 2. send batch emails 21 | 22 | ## Installation 23 | 24 | ```bash 25 | # npm 26 | $ npm install nestjs-resend 27 | 28 | # yarn 29 | $ yarn add nestjs-resend 30 | 31 | # pnpm 32 | $ pnpm add nestjs-resend 33 | ``` 34 | 35 | ## Usage 36 | 37 | ### Importing module 38 | 39 | ```typescript 40 | import { ResendModule } from 'nestjs-resend'; 41 | 42 | @Module({ 43 | imports: [ 44 | ResendModule.forRoot({ 45 | apiKey: 'your resend api key', 46 | }), 47 | ], 48 | providers: [], 49 | exports: [], 50 | }) 51 | ``` 52 | 53 | ### Importing module async 54 | 55 | ```typescript 56 | import { ResendModule } from 'nestjs-resend'; 57 | 58 | @Module({ 59 | imports: [ 60 | ResendModule.forRootAsync({ 61 | useFactory: async () => ({ 62 | apiKey: 'your resend api key', 63 | }) 64 | }), 65 | ], 66 | providers: [], 67 | exports: [], 68 | }) 69 | ``` 70 | 71 | ## Interfaces 72 | 73 | ```typescript 74 | interface Options { 75 | apiKey: string 76 | } 77 | ``` 78 | 79 | ## Send Email 80 | 81 | ```typescript 82 | import { ResendService } from 'nestjs-resend'; 83 | 84 | @Injectable() 85 | export class YourService { 86 | constructor(private readonly resendService: ResendService) { 87 | 88 | // text 89 | await this.resendService.send({ 90 | from: 'you@example.com', 91 | to: 'user@gmail.com', 92 | subject: 'hello world', 93 | text: 'it works!', 94 | }); 95 | 96 | // html 97 | await this.resendService.send({ 98 | from: 'you@example.com', 99 | to: 'user@gmail.com', 100 | subject: 'hello world', 101 | html: 'it works!', 102 | }); 103 | 104 | // react 105 | await this.resendService.send({ 106 | from: 'you@example.com', 107 | to: 'user@gmail.com', 108 | subject: 'hello world', 109 | react: , 110 | }); 111 | 112 | // To include a friendly name, use the format "Your Name " 113 | await this.resendService.send({ 114 | from: 'Your Name ', 115 | to: 'user@gmail.com', 116 | subject: 'hello world', 117 | react: , 118 | }); 119 | } 120 | ``` 121 | 122 | ## Send Batch Emails 123 | 124 | ```typescript 125 | import { ResendService } from 'nestjs-resend'; 126 | 127 | @Injectable() 128 | export class YourService { 129 | constructor(private readonly resendService: ResendService) { 130 | 131 | 132 | await this.resendService.sendBatch([ 133 | // text 134 | { 135 | from: 'you@example.com', 136 | to: 'user@gmail.com', 137 | subject: 'hello world', 138 | text: 'it works!', 139 | }, 140 | // html 141 | { 142 | from: 'you@example.com', 143 | to: 'user@gmail.com', 144 | subject: 'hello world', 145 | html: 'it works!', 146 | }, 147 | // react 148 | { 149 | from: 'you@example.com', 150 | to: 'user@gmail.com', 151 | subject: 'hello world', 152 | react: , 153 | }, 154 | // To include a friendly name, use the format "Your Name " 155 | { 156 | from: 'Your Name ', 157 | to: 'user@gmail.com', 158 | subject: 'hello world', 159 | react: , 160 | } 161 | ]); 162 | } 163 | ``` 164 | 165 | ## License 166 | 167 | Nestjs-Resend is [MIT licensed](LICENSE). 168 | -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- 1 | # ✅ Security Policy 2 | 3 | ## Supported Versions 4 | 5 | Use this section to tell people about which versions of your project are 6 | currently being supported with security updates. 7 | 8 | | Version | Supported | 9 | | ------- | ------------------ | 10 | | 1.0.0 | :white_check_mark: | 11 | 12 | ## Reporting a Vulnerability 13 | 14 | Use this section to tell people how to report a vulnerability. 15 | 16 | Tell them where to go, how often they can expect to get an update on a 17 | reported vulnerability, what to expect if the vulnerability is accepted or 18 | declined, etc. 19 | -------------------------------------------------------------------------------- /nest-cli.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/nest-cli", 3 | "collection": "@nestjs/schematics", 4 | "sourceRoot": "src", 5 | "compilerOptions": { 6 | "deleteOutDir": true 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nestjs-resend", 3 | "version": "1.0.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "nestjs-resend", 9 | "version": "1.0.1", 10 | "license": "MIT", 11 | "dependencies": { 12 | "@nestjs/common": "^10.0.0", 13 | "resend": "^4.0.0", 14 | "rxjs": "^7.8.1" 15 | }, 16 | "devDependencies": { 17 | "@types/node": "^22.5.2", 18 | "@typescript-eslint/eslint-plugin": "^8.4.0", 19 | "@typescript-eslint/parser": "^8.4.0", 20 | "eslint": "^9.1.1", 21 | "eslint-config-prettier": "^9.1.0", 22 | "eslint-plugin-prettier": "^5.2.1", 23 | "prettier": "^3.0.3", 24 | "rimraf": "^6.0.1", 25 | "typescript": "^5.2.2" 26 | }, 27 | "peerDependencies": { 28 | "@nestjs/common": "^10.0.0", 29 | "rxjs": "^7.8.1" 30 | } 31 | }, 32 | "../../../../usr/local/lib/node_modules/nestjs-resend": { 33 | "version": "1.0.0", 34 | "extraneous": true, 35 | "license": "MIT", 36 | "dependencies": { 37 | "@nestjs/common": "^10.0.0", 38 | "resend": "^4.0.0", 39 | "rxjs": "^7.8.1" 40 | }, 41 | "devDependencies": { 42 | "@types/node": "^22.5.2", 43 | "@typescript-eslint/eslint-plugin": "^8.4.0", 44 | "@typescript-eslint/parser": "^8.4.0", 45 | "eslint": "^9.1.1", 46 | "eslint-config-prettier": "^9.1.0", 47 | "eslint-plugin-prettier": "^5.2.1", 48 | "prettier": "^3.0.3", 49 | "rimraf": "^6.0.1", 50 | "typescript": "^5.2.2" 51 | }, 52 | "peerDependencies": { 53 | "@nestjs/common": "^10.0.0", 54 | "rxjs": "^7.8.1" 55 | } 56 | }, 57 | "node_modules/@eslint-community/eslint-utils": { 58 | "version": "4.4.0", 59 | "dev": true, 60 | "license": "MIT", 61 | "dependencies": { 62 | "eslint-visitor-keys": "^3.3.0" 63 | }, 64 | "engines": { 65 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 66 | }, 67 | "peerDependencies": { 68 | "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0" 69 | } 70 | }, 71 | "node_modules/@eslint-community/regexpp": { 72 | "version": "4.11.1", 73 | "dev": true, 74 | "license": "MIT", 75 | "engines": { 76 | "node": "^12.0.0 || ^14.0.0 || >=16.0.0" 77 | } 78 | }, 79 | "node_modules/@eslint/config-array": { 80 | "version": "0.18.0", 81 | "dev": true, 82 | "license": "Apache-2.0", 83 | "dependencies": { 84 | "@eslint/object-schema": "^2.1.4", 85 | "debug": "^4.3.1", 86 | "minimatch": "^3.1.2" 87 | }, 88 | "engines": { 89 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 90 | } 91 | }, 92 | "node_modules/@eslint/config-array/node_modules/brace-expansion": { 93 | "version": "1.1.11", 94 | "dev": true, 95 | "license": "MIT", 96 | "dependencies": { 97 | "balanced-match": "^1.0.0", 98 | "concat-map": "0.0.1" 99 | } 100 | }, 101 | "node_modules/@eslint/config-array/node_modules/minimatch": { 102 | "version": "3.1.2", 103 | "dev": true, 104 | "license": "ISC", 105 | "dependencies": { 106 | "brace-expansion": "^1.1.7" 107 | }, 108 | "engines": { 109 | "node": "*" 110 | } 111 | }, 112 | "node_modules/@eslint/core": { 113 | "version": "0.6.0", 114 | "dev": true, 115 | "license": "Apache-2.0", 116 | "engines": { 117 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 118 | } 119 | }, 120 | "node_modules/@eslint/eslintrc": { 121 | "version": "3.1.0", 122 | "dev": true, 123 | "license": "MIT", 124 | "dependencies": { 125 | "ajv": "^6.12.4", 126 | "debug": "^4.3.2", 127 | "espree": "^10.0.1", 128 | "globals": "^14.0.0", 129 | "ignore": "^5.2.0", 130 | "import-fresh": "^3.2.1", 131 | "js-yaml": "^4.1.0", 132 | "minimatch": "^3.1.2", 133 | "strip-json-comments": "^3.1.1" 134 | }, 135 | "engines": { 136 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 137 | }, 138 | "funding": { 139 | "url": "https://opencollective.com/eslint" 140 | } 141 | }, 142 | "node_modules/@eslint/eslintrc/node_modules/brace-expansion": { 143 | "version": "1.1.11", 144 | "dev": true, 145 | "license": "MIT", 146 | "dependencies": { 147 | "balanced-match": "^1.0.0", 148 | "concat-map": "0.0.1" 149 | } 150 | }, 151 | "node_modules/@eslint/eslintrc/node_modules/minimatch": { 152 | "version": "3.1.2", 153 | "dev": true, 154 | "license": "ISC", 155 | "dependencies": { 156 | "brace-expansion": "^1.1.7" 157 | }, 158 | "engines": { 159 | "node": "*" 160 | } 161 | }, 162 | "node_modules/@eslint/js": { 163 | "version": "9.12.0", 164 | "dev": true, 165 | "license": "MIT", 166 | "engines": { 167 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 168 | } 169 | }, 170 | "node_modules/@eslint/object-schema": { 171 | "version": "2.1.4", 172 | "dev": true, 173 | "license": "Apache-2.0", 174 | "engines": { 175 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 176 | } 177 | }, 178 | "node_modules/@eslint/plugin-kit": { 179 | "version": "0.2.0", 180 | "dev": true, 181 | "license": "Apache-2.0", 182 | "dependencies": { 183 | "levn": "^0.4.1" 184 | }, 185 | "engines": { 186 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 187 | } 188 | }, 189 | "node_modules/@humanfs/core": { 190 | "version": "0.19.0", 191 | "dev": true, 192 | "license": "Apache-2.0", 193 | "engines": { 194 | "node": ">=18.18.0" 195 | } 196 | }, 197 | "node_modules/@humanfs/node": { 198 | "version": "0.16.5", 199 | "dev": true, 200 | "license": "Apache-2.0", 201 | "dependencies": { 202 | "@humanfs/core": "^0.19.0", 203 | "@humanwhocodes/retry": "^0.3.0" 204 | }, 205 | "engines": { 206 | "node": ">=18.18.0" 207 | } 208 | }, 209 | "node_modules/@humanwhocodes/module-importer": { 210 | "version": "1.0.1", 211 | "dev": true, 212 | "license": "Apache-2.0", 213 | "engines": { 214 | "node": ">=12.22" 215 | }, 216 | "funding": { 217 | "type": "github", 218 | "url": "https://github.com/sponsors/nzakas" 219 | } 220 | }, 221 | "node_modules/@humanwhocodes/retry": { 222 | "version": "0.3.1", 223 | "dev": true, 224 | "license": "Apache-2.0", 225 | "engines": { 226 | "node": ">=18.18" 227 | }, 228 | "funding": { 229 | "type": "github", 230 | "url": "https://github.com/sponsors/nzakas" 231 | } 232 | }, 233 | "node_modules/@isaacs/cliui": { 234 | "version": "8.0.2", 235 | "license": "ISC", 236 | "dependencies": { 237 | "string-width": "^5.1.2", 238 | "string-width-cjs": "npm:string-width@^4.2.0", 239 | "strip-ansi": "^7.0.1", 240 | "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", 241 | "wrap-ansi": "^8.1.0", 242 | "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" 243 | }, 244 | "engines": { 245 | "node": ">=12" 246 | } 247 | }, 248 | "node_modules/@lukeed/csprng": { 249 | "version": "1.1.0", 250 | "license": "MIT", 251 | "engines": { 252 | "node": ">=8" 253 | } 254 | }, 255 | "node_modules/@nestjs/common": { 256 | "version": "10.4.5", 257 | "license": "MIT", 258 | "dependencies": { 259 | "iterare": "1.2.1", 260 | "tslib": "2.7.0", 261 | "uid": "2.0.2" 262 | }, 263 | "funding": { 264 | "type": "opencollective", 265 | "url": "https://opencollective.com/nest" 266 | }, 267 | "peerDependencies": { 268 | "class-transformer": "*", 269 | "class-validator": "*", 270 | "reflect-metadata": "^0.1.12 || ^0.2.0", 271 | "rxjs": "^7.1.0" 272 | }, 273 | "peerDependenciesMeta": { 274 | "class-transformer": { 275 | "optional": true 276 | }, 277 | "class-validator": { 278 | "optional": true 279 | } 280 | } 281 | }, 282 | "node_modules/@nodelib/fs.scandir": { 283 | "version": "2.1.5", 284 | "dev": true, 285 | "license": "MIT", 286 | "dependencies": { 287 | "@nodelib/fs.stat": "2.0.5", 288 | "run-parallel": "^1.1.9" 289 | }, 290 | "engines": { 291 | "node": ">= 8" 292 | } 293 | }, 294 | "node_modules/@nodelib/fs.stat": { 295 | "version": "2.0.5", 296 | "dev": true, 297 | "license": "MIT", 298 | "engines": { 299 | "node": ">= 8" 300 | } 301 | }, 302 | "node_modules/@nodelib/fs.walk": { 303 | "version": "1.2.8", 304 | "dev": true, 305 | "license": "MIT", 306 | "dependencies": { 307 | "@nodelib/fs.scandir": "2.1.5", 308 | "fastq": "^1.6.0" 309 | }, 310 | "engines": { 311 | "node": ">= 8" 312 | } 313 | }, 314 | "node_modules/@one-ini/wasm": { 315 | "version": "0.1.1", 316 | "license": "MIT" 317 | }, 318 | "node_modules/@pkgjs/parseargs": { 319 | "version": "0.11.0", 320 | "license": "MIT", 321 | "optional": true, 322 | "engines": { 323 | "node": ">=14" 324 | } 325 | }, 326 | "node_modules/@pkgr/core": { 327 | "version": "0.1.1", 328 | "dev": true, 329 | "license": "MIT", 330 | "engines": { 331 | "node": "^12.20.0 || ^14.18.0 || >=16.0.0" 332 | }, 333 | "funding": { 334 | "url": "https://opencollective.com/unts" 335 | } 336 | }, 337 | "node_modules/@react-email/render": { 338 | "version": "0.0.17", 339 | "license": "MIT", 340 | "dependencies": { 341 | "html-to-text": "9.0.5", 342 | "js-beautify": "^1.14.11", 343 | "react-promise-suspense": "0.3.4" 344 | }, 345 | "engines": { 346 | "node": ">=18.0.0" 347 | }, 348 | "peerDependencies": { 349 | "react": "^18.2.0", 350 | "react-dom": "^18.2.0" 351 | } 352 | }, 353 | "node_modules/@selderee/plugin-htmlparser2": { 354 | "version": "0.11.0", 355 | "license": "MIT", 356 | "dependencies": { 357 | "domhandler": "^5.0.3", 358 | "selderee": "^0.11.0" 359 | }, 360 | "funding": { 361 | "url": "https://ko-fi.com/killymxi" 362 | } 363 | }, 364 | "node_modules/@types/estree": { 365 | "version": "1.0.6", 366 | "dev": true, 367 | "license": "MIT" 368 | }, 369 | "node_modules/@types/json-schema": { 370 | "version": "7.0.15", 371 | "dev": true, 372 | "license": "MIT" 373 | }, 374 | "node_modules/@types/node": { 375 | "version": "22.7.5", 376 | "dev": true, 377 | "license": "MIT", 378 | "dependencies": { 379 | "undici-types": "~6.19.2" 380 | } 381 | }, 382 | "node_modules/@typescript-eslint/eslint-plugin": { 383 | "version": "8.9.0", 384 | "dev": true, 385 | "license": "MIT", 386 | "dependencies": { 387 | "@eslint-community/regexpp": "^4.10.0", 388 | "@typescript-eslint/scope-manager": "8.9.0", 389 | "@typescript-eslint/type-utils": "8.9.0", 390 | "@typescript-eslint/utils": "8.9.0", 391 | "@typescript-eslint/visitor-keys": "8.9.0", 392 | "graphemer": "^1.4.0", 393 | "ignore": "^5.3.1", 394 | "natural-compare": "^1.4.0", 395 | "ts-api-utils": "^1.3.0" 396 | }, 397 | "engines": { 398 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 399 | }, 400 | "funding": { 401 | "type": "opencollective", 402 | "url": "https://opencollective.com/typescript-eslint" 403 | }, 404 | "peerDependencies": { 405 | "@typescript-eslint/parser": "^8.0.0 || ^8.0.0-alpha.0", 406 | "eslint": "^8.57.0 || ^9.0.0" 407 | }, 408 | "peerDependenciesMeta": { 409 | "typescript": { 410 | "optional": true 411 | } 412 | } 413 | }, 414 | "node_modules/@typescript-eslint/parser": { 415 | "version": "8.9.0", 416 | "dev": true, 417 | "license": "BSD-2-Clause", 418 | "dependencies": { 419 | "@typescript-eslint/scope-manager": "8.9.0", 420 | "@typescript-eslint/types": "8.9.0", 421 | "@typescript-eslint/typescript-estree": "8.9.0", 422 | "@typescript-eslint/visitor-keys": "8.9.0", 423 | "debug": "^4.3.4" 424 | }, 425 | "engines": { 426 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 427 | }, 428 | "funding": { 429 | "type": "opencollective", 430 | "url": "https://opencollective.com/typescript-eslint" 431 | }, 432 | "peerDependencies": { 433 | "eslint": "^8.57.0 || ^9.0.0" 434 | }, 435 | "peerDependenciesMeta": { 436 | "typescript": { 437 | "optional": true 438 | } 439 | } 440 | }, 441 | "node_modules/@typescript-eslint/scope-manager": { 442 | "version": "8.9.0", 443 | "dev": true, 444 | "license": "MIT", 445 | "dependencies": { 446 | "@typescript-eslint/types": "8.9.0", 447 | "@typescript-eslint/visitor-keys": "8.9.0" 448 | }, 449 | "engines": { 450 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 451 | }, 452 | "funding": { 453 | "type": "opencollective", 454 | "url": "https://opencollective.com/typescript-eslint" 455 | } 456 | }, 457 | "node_modules/@typescript-eslint/type-utils": { 458 | "version": "8.9.0", 459 | "dev": true, 460 | "license": "MIT", 461 | "dependencies": { 462 | "@typescript-eslint/typescript-estree": "8.9.0", 463 | "@typescript-eslint/utils": "8.9.0", 464 | "debug": "^4.3.4", 465 | "ts-api-utils": "^1.3.0" 466 | }, 467 | "engines": { 468 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 469 | }, 470 | "funding": { 471 | "type": "opencollective", 472 | "url": "https://opencollective.com/typescript-eslint" 473 | }, 474 | "peerDependenciesMeta": { 475 | "typescript": { 476 | "optional": true 477 | } 478 | } 479 | }, 480 | "node_modules/@typescript-eslint/types": { 481 | "version": "8.9.0", 482 | "dev": true, 483 | "license": "MIT", 484 | "engines": { 485 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 486 | }, 487 | "funding": { 488 | "type": "opencollective", 489 | "url": "https://opencollective.com/typescript-eslint" 490 | } 491 | }, 492 | "node_modules/@typescript-eslint/typescript-estree": { 493 | "version": "8.9.0", 494 | "dev": true, 495 | "license": "BSD-2-Clause", 496 | "dependencies": { 497 | "@typescript-eslint/types": "8.9.0", 498 | "@typescript-eslint/visitor-keys": "8.9.0", 499 | "debug": "^4.3.4", 500 | "fast-glob": "^3.3.2", 501 | "is-glob": "^4.0.3", 502 | "minimatch": "^9.0.4", 503 | "semver": "^7.6.0", 504 | "ts-api-utils": "^1.3.0" 505 | }, 506 | "engines": { 507 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 508 | }, 509 | "funding": { 510 | "type": "opencollective", 511 | "url": "https://opencollective.com/typescript-eslint" 512 | }, 513 | "peerDependenciesMeta": { 514 | "typescript": { 515 | "optional": true 516 | } 517 | } 518 | }, 519 | "node_modules/@typescript-eslint/utils": { 520 | "version": "8.9.0", 521 | "dev": true, 522 | "license": "MIT", 523 | "dependencies": { 524 | "@eslint-community/eslint-utils": "^4.4.0", 525 | "@typescript-eslint/scope-manager": "8.9.0", 526 | "@typescript-eslint/types": "8.9.0", 527 | "@typescript-eslint/typescript-estree": "8.9.0" 528 | }, 529 | "engines": { 530 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 531 | }, 532 | "funding": { 533 | "type": "opencollective", 534 | "url": "https://opencollective.com/typescript-eslint" 535 | }, 536 | "peerDependencies": { 537 | "eslint": "^8.57.0 || ^9.0.0" 538 | } 539 | }, 540 | "node_modules/@typescript-eslint/visitor-keys": { 541 | "version": "8.9.0", 542 | "dev": true, 543 | "license": "MIT", 544 | "dependencies": { 545 | "@typescript-eslint/types": "8.9.0", 546 | "eslint-visitor-keys": "^3.4.3" 547 | }, 548 | "engines": { 549 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 550 | }, 551 | "funding": { 552 | "type": "opencollective", 553 | "url": "https://opencollective.com/typescript-eslint" 554 | } 555 | }, 556 | "node_modules/abbrev": { 557 | "version": "2.0.0", 558 | "license": "ISC", 559 | "engines": { 560 | "node": "^14.17.0 || ^16.13.0 || >=18.0.0" 561 | } 562 | }, 563 | "node_modules/acorn": { 564 | "version": "8.13.0", 565 | "dev": true, 566 | "license": "MIT", 567 | "bin": { 568 | "acorn": "bin/acorn" 569 | }, 570 | "engines": { 571 | "node": ">=0.4.0" 572 | } 573 | }, 574 | "node_modules/acorn-jsx": { 575 | "version": "5.3.2", 576 | "dev": true, 577 | "license": "MIT", 578 | "peerDependencies": { 579 | "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0" 580 | } 581 | }, 582 | "node_modules/ajv": { 583 | "version": "6.12.6", 584 | "dev": true, 585 | "license": "MIT", 586 | "dependencies": { 587 | "fast-deep-equal": "^3.1.1", 588 | "fast-json-stable-stringify": "^2.0.0", 589 | "json-schema-traverse": "^0.4.1", 590 | "uri-js": "^4.2.2" 591 | }, 592 | "funding": { 593 | "type": "github", 594 | "url": "https://github.com/sponsors/epoberezkin" 595 | } 596 | }, 597 | "node_modules/ansi-regex": { 598 | "version": "6.1.0", 599 | "license": "MIT", 600 | "engines": { 601 | "node": ">=12" 602 | }, 603 | "funding": { 604 | "url": "https://github.com/chalk/ansi-regex?sponsor=1" 605 | } 606 | }, 607 | "node_modules/ansi-styles": { 608 | "version": "4.3.0", 609 | "license": "MIT", 610 | "dependencies": { 611 | "color-convert": "^2.0.1" 612 | }, 613 | "engines": { 614 | "node": ">=8" 615 | }, 616 | "funding": { 617 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 618 | } 619 | }, 620 | "node_modules/argparse": { 621 | "version": "2.0.1", 622 | "dev": true, 623 | "license": "Python-2.0" 624 | }, 625 | "node_modules/balanced-match": { 626 | "version": "1.0.2", 627 | "license": "MIT" 628 | }, 629 | "node_modules/brace-expansion": { 630 | "version": "2.0.1", 631 | "license": "MIT", 632 | "dependencies": { 633 | "balanced-match": "^1.0.0" 634 | } 635 | }, 636 | "node_modules/braces": { 637 | "version": "3.0.3", 638 | "dev": true, 639 | "license": "MIT", 640 | "dependencies": { 641 | "fill-range": "^7.1.1" 642 | }, 643 | "engines": { 644 | "node": ">=8" 645 | } 646 | }, 647 | "node_modules/callsites": { 648 | "version": "3.1.0", 649 | "dev": true, 650 | "license": "MIT", 651 | "engines": { 652 | "node": ">=6" 653 | } 654 | }, 655 | "node_modules/chalk": { 656 | "version": "4.1.2", 657 | "dev": true, 658 | "license": "MIT", 659 | "dependencies": { 660 | "ansi-styles": "^4.1.0", 661 | "supports-color": "^7.1.0" 662 | }, 663 | "engines": { 664 | "node": ">=10" 665 | }, 666 | "funding": { 667 | "url": "https://github.com/chalk/chalk?sponsor=1" 668 | } 669 | }, 670 | "node_modules/color-convert": { 671 | "version": "2.0.1", 672 | "license": "MIT", 673 | "dependencies": { 674 | "color-name": "~1.1.4" 675 | }, 676 | "engines": { 677 | "node": ">=7.0.0" 678 | } 679 | }, 680 | "node_modules/color-name": { 681 | "version": "1.1.4", 682 | "license": "MIT" 683 | }, 684 | "node_modules/commander": { 685 | "version": "10.0.1", 686 | "license": "MIT", 687 | "engines": { 688 | "node": ">=14" 689 | } 690 | }, 691 | "node_modules/concat-map": { 692 | "version": "0.0.1", 693 | "dev": true, 694 | "license": "MIT" 695 | }, 696 | "node_modules/config-chain": { 697 | "version": "1.1.13", 698 | "license": "MIT", 699 | "dependencies": { 700 | "ini": "^1.3.4", 701 | "proto-list": "~1.2.1" 702 | } 703 | }, 704 | "node_modules/cross-spawn": { 705 | "version": "7.0.3", 706 | "license": "MIT", 707 | "dependencies": { 708 | "path-key": "^3.1.0", 709 | "shebang-command": "^2.0.0", 710 | "which": "^2.0.1" 711 | }, 712 | "engines": { 713 | "node": ">= 8" 714 | } 715 | }, 716 | "node_modules/debug": { 717 | "version": "4.3.7", 718 | "dev": true, 719 | "license": "MIT", 720 | "dependencies": { 721 | "ms": "^2.1.3" 722 | }, 723 | "engines": { 724 | "node": ">=6.0" 725 | }, 726 | "peerDependenciesMeta": { 727 | "supports-color": { 728 | "optional": true 729 | } 730 | } 731 | }, 732 | "node_modules/deep-is": { 733 | "version": "0.1.4", 734 | "dev": true, 735 | "license": "MIT" 736 | }, 737 | "node_modules/deepmerge": { 738 | "version": "4.3.1", 739 | "license": "MIT", 740 | "engines": { 741 | "node": ">=0.10.0" 742 | } 743 | }, 744 | "node_modules/dom-serializer": { 745 | "version": "2.0.0", 746 | "license": "MIT", 747 | "dependencies": { 748 | "domelementtype": "^2.3.0", 749 | "domhandler": "^5.0.2", 750 | "entities": "^4.2.0" 751 | }, 752 | "funding": { 753 | "url": "https://github.com/cheeriojs/dom-serializer?sponsor=1" 754 | } 755 | }, 756 | "node_modules/domelementtype": { 757 | "version": "2.3.0", 758 | "funding": [ 759 | { 760 | "type": "github", 761 | "url": "https://github.com/sponsors/fb55" 762 | } 763 | ], 764 | "license": "BSD-2-Clause" 765 | }, 766 | "node_modules/domhandler": { 767 | "version": "5.0.3", 768 | "license": "BSD-2-Clause", 769 | "dependencies": { 770 | "domelementtype": "^2.3.0" 771 | }, 772 | "engines": { 773 | "node": ">= 4" 774 | }, 775 | "funding": { 776 | "url": "https://github.com/fb55/domhandler?sponsor=1" 777 | } 778 | }, 779 | "node_modules/domutils": { 780 | "version": "3.1.0", 781 | "license": "BSD-2-Clause", 782 | "dependencies": { 783 | "dom-serializer": "^2.0.0", 784 | "domelementtype": "^2.3.0", 785 | "domhandler": "^5.0.3" 786 | }, 787 | "funding": { 788 | "url": "https://github.com/fb55/domutils?sponsor=1" 789 | } 790 | }, 791 | "node_modules/eastasianwidth": { 792 | "version": "0.2.0", 793 | "license": "MIT" 794 | }, 795 | "node_modules/editorconfig": { 796 | "version": "1.0.4", 797 | "license": "MIT", 798 | "dependencies": { 799 | "@one-ini/wasm": "0.1.1", 800 | "commander": "^10.0.0", 801 | "minimatch": "9.0.1", 802 | "semver": "^7.5.3" 803 | }, 804 | "bin": { 805 | "editorconfig": "bin/editorconfig" 806 | }, 807 | "engines": { 808 | "node": ">=14" 809 | } 810 | }, 811 | "node_modules/editorconfig/node_modules/minimatch": { 812 | "version": "9.0.1", 813 | "license": "ISC", 814 | "dependencies": { 815 | "brace-expansion": "^2.0.1" 816 | }, 817 | "engines": { 818 | "node": ">=16 || 14 >=14.17" 819 | }, 820 | "funding": { 821 | "url": "https://github.com/sponsors/isaacs" 822 | } 823 | }, 824 | "node_modules/emoji-regex": { 825 | "version": "9.2.2", 826 | "license": "MIT" 827 | }, 828 | "node_modules/entities": { 829 | "version": "4.5.0", 830 | "license": "BSD-2-Clause", 831 | "engines": { 832 | "node": ">=0.12" 833 | }, 834 | "funding": { 835 | "url": "https://github.com/fb55/entities?sponsor=1" 836 | } 837 | }, 838 | "node_modules/escape-string-regexp": { 839 | "version": "4.0.0", 840 | "dev": true, 841 | "license": "MIT", 842 | "engines": { 843 | "node": ">=10" 844 | }, 845 | "funding": { 846 | "url": "https://github.com/sponsors/sindresorhus" 847 | } 848 | }, 849 | "node_modules/eslint": { 850 | "version": "9.12.0", 851 | "dev": true, 852 | "license": "MIT", 853 | "dependencies": { 854 | "@eslint-community/eslint-utils": "^4.2.0", 855 | "@eslint-community/regexpp": "^4.11.0", 856 | "@eslint/config-array": "^0.18.0", 857 | "@eslint/core": "^0.6.0", 858 | "@eslint/eslintrc": "^3.1.0", 859 | "@eslint/js": "9.12.0", 860 | "@eslint/plugin-kit": "^0.2.0", 861 | "@humanfs/node": "^0.16.5", 862 | "@humanwhocodes/module-importer": "^1.0.1", 863 | "@humanwhocodes/retry": "^0.3.1", 864 | "@types/estree": "^1.0.6", 865 | "@types/json-schema": "^7.0.15", 866 | "ajv": "^6.12.4", 867 | "chalk": "^4.0.0", 868 | "cross-spawn": "^7.0.2", 869 | "debug": "^4.3.2", 870 | "escape-string-regexp": "^4.0.0", 871 | "eslint-scope": "^8.1.0", 872 | "eslint-visitor-keys": "^4.1.0", 873 | "espree": "^10.2.0", 874 | "esquery": "^1.5.0", 875 | "esutils": "^2.0.2", 876 | "fast-deep-equal": "^3.1.3", 877 | "file-entry-cache": "^8.0.0", 878 | "find-up": "^5.0.0", 879 | "glob-parent": "^6.0.2", 880 | "ignore": "^5.2.0", 881 | "imurmurhash": "^0.1.4", 882 | "is-glob": "^4.0.0", 883 | "json-stable-stringify-without-jsonify": "^1.0.1", 884 | "lodash.merge": "^4.6.2", 885 | "minimatch": "^3.1.2", 886 | "natural-compare": "^1.4.0", 887 | "optionator": "^0.9.3", 888 | "text-table": "^0.2.0" 889 | }, 890 | "bin": { 891 | "eslint": "bin/eslint.js" 892 | }, 893 | "engines": { 894 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 895 | }, 896 | "funding": { 897 | "url": "https://eslint.org/donate" 898 | }, 899 | "peerDependencies": { 900 | "jiti": "*" 901 | }, 902 | "peerDependenciesMeta": { 903 | "jiti": { 904 | "optional": true 905 | } 906 | } 907 | }, 908 | "node_modules/eslint-config-prettier": { 909 | "version": "9.1.0", 910 | "dev": true, 911 | "license": "MIT", 912 | "bin": { 913 | "eslint-config-prettier": "bin/cli.js" 914 | }, 915 | "peerDependencies": { 916 | "eslint": ">=7.0.0" 917 | } 918 | }, 919 | "node_modules/eslint-plugin-prettier": { 920 | "version": "5.2.1", 921 | "dev": true, 922 | "license": "MIT", 923 | "dependencies": { 924 | "prettier-linter-helpers": "^1.0.0", 925 | "synckit": "^0.9.1" 926 | }, 927 | "engines": { 928 | "node": "^14.18.0 || >=16.0.0" 929 | }, 930 | "funding": { 931 | "url": "https://opencollective.com/eslint-plugin-prettier" 932 | }, 933 | "peerDependencies": { 934 | "@types/eslint": ">=8.0.0", 935 | "eslint": ">=8.0.0", 936 | "eslint-config-prettier": "*", 937 | "prettier": ">=3.0.0" 938 | }, 939 | "peerDependenciesMeta": { 940 | "@types/eslint": { 941 | "optional": true 942 | }, 943 | "eslint-config-prettier": { 944 | "optional": true 945 | } 946 | } 947 | }, 948 | "node_modules/eslint-scope": { 949 | "version": "8.1.0", 950 | "dev": true, 951 | "license": "BSD-2-Clause", 952 | "dependencies": { 953 | "esrecurse": "^4.3.0", 954 | "estraverse": "^5.2.0" 955 | }, 956 | "engines": { 957 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 958 | }, 959 | "funding": { 960 | "url": "https://opencollective.com/eslint" 961 | } 962 | }, 963 | "node_modules/eslint-visitor-keys": { 964 | "version": "3.4.3", 965 | "dev": true, 966 | "license": "Apache-2.0", 967 | "engines": { 968 | "node": "^12.22.0 || ^14.17.0 || >=16.0.0" 969 | }, 970 | "funding": { 971 | "url": "https://opencollective.com/eslint" 972 | } 973 | }, 974 | "node_modules/eslint/node_modules/brace-expansion": { 975 | "version": "1.1.11", 976 | "dev": true, 977 | "license": "MIT", 978 | "dependencies": { 979 | "balanced-match": "^1.0.0", 980 | "concat-map": "0.0.1" 981 | } 982 | }, 983 | "node_modules/eslint/node_modules/eslint-visitor-keys": { 984 | "version": "4.1.0", 985 | "dev": true, 986 | "license": "Apache-2.0", 987 | "engines": { 988 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 989 | }, 990 | "funding": { 991 | "url": "https://opencollective.com/eslint" 992 | } 993 | }, 994 | "node_modules/eslint/node_modules/minimatch": { 995 | "version": "3.1.2", 996 | "dev": true, 997 | "license": "ISC", 998 | "dependencies": { 999 | "brace-expansion": "^1.1.7" 1000 | }, 1001 | "engines": { 1002 | "node": "*" 1003 | } 1004 | }, 1005 | "node_modules/espree": { 1006 | "version": "10.2.0", 1007 | "dev": true, 1008 | "license": "BSD-2-Clause", 1009 | "dependencies": { 1010 | "acorn": "^8.12.0", 1011 | "acorn-jsx": "^5.3.2", 1012 | "eslint-visitor-keys": "^4.1.0" 1013 | }, 1014 | "engines": { 1015 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1016 | }, 1017 | "funding": { 1018 | "url": "https://opencollective.com/eslint" 1019 | } 1020 | }, 1021 | "node_modules/espree/node_modules/eslint-visitor-keys": { 1022 | "version": "4.1.0", 1023 | "dev": true, 1024 | "license": "Apache-2.0", 1025 | "engines": { 1026 | "node": "^18.18.0 || ^20.9.0 || >=21.1.0" 1027 | }, 1028 | "funding": { 1029 | "url": "https://opencollective.com/eslint" 1030 | } 1031 | }, 1032 | "node_modules/esquery": { 1033 | "version": "1.6.0", 1034 | "dev": true, 1035 | "license": "BSD-3-Clause", 1036 | "dependencies": { 1037 | "estraverse": "^5.1.0" 1038 | }, 1039 | "engines": { 1040 | "node": ">=0.10" 1041 | } 1042 | }, 1043 | "node_modules/esrecurse": { 1044 | "version": "4.3.0", 1045 | "dev": true, 1046 | "license": "BSD-2-Clause", 1047 | "dependencies": { 1048 | "estraverse": "^5.2.0" 1049 | }, 1050 | "engines": { 1051 | "node": ">=4.0" 1052 | } 1053 | }, 1054 | "node_modules/estraverse": { 1055 | "version": "5.3.0", 1056 | "dev": true, 1057 | "license": "BSD-2-Clause", 1058 | "engines": { 1059 | "node": ">=4.0" 1060 | } 1061 | }, 1062 | "node_modules/esutils": { 1063 | "version": "2.0.3", 1064 | "dev": true, 1065 | "license": "BSD-2-Clause", 1066 | "engines": { 1067 | "node": ">=0.10.0" 1068 | } 1069 | }, 1070 | "node_modules/fast-deep-equal": { 1071 | "version": "3.1.3", 1072 | "dev": true, 1073 | "license": "MIT" 1074 | }, 1075 | "node_modules/fast-diff": { 1076 | "version": "1.3.0", 1077 | "dev": true, 1078 | "license": "Apache-2.0" 1079 | }, 1080 | "node_modules/fast-glob": { 1081 | "version": "3.3.2", 1082 | "dev": true, 1083 | "license": "MIT", 1084 | "dependencies": { 1085 | "@nodelib/fs.stat": "^2.0.2", 1086 | "@nodelib/fs.walk": "^1.2.3", 1087 | "glob-parent": "^5.1.2", 1088 | "merge2": "^1.3.0", 1089 | "micromatch": "^4.0.4" 1090 | }, 1091 | "engines": { 1092 | "node": ">=8.6.0" 1093 | } 1094 | }, 1095 | "node_modules/fast-glob/node_modules/glob-parent": { 1096 | "version": "5.1.2", 1097 | "dev": true, 1098 | "license": "ISC", 1099 | "dependencies": { 1100 | "is-glob": "^4.0.1" 1101 | }, 1102 | "engines": { 1103 | "node": ">= 6" 1104 | } 1105 | }, 1106 | "node_modules/fast-json-stable-stringify": { 1107 | "version": "2.1.0", 1108 | "dev": true, 1109 | "license": "MIT" 1110 | }, 1111 | "node_modules/fast-levenshtein": { 1112 | "version": "2.0.6", 1113 | "dev": true, 1114 | "license": "MIT" 1115 | }, 1116 | "node_modules/fastq": { 1117 | "version": "1.17.1", 1118 | "dev": true, 1119 | "license": "ISC", 1120 | "dependencies": { 1121 | "reusify": "^1.0.4" 1122 | } 1123 | }, 1124 | "node_modules/file-entry-cache": { 1125 | "version": "8.0.0", 1126 | "dev": true, 1127 | "license": "MIT", 1128 | "dependencies": { 1129 | "flat-cache": "^4.0.0" 1130 | }, 1131 | "engines": { 1132 | "node": ">=16.0.0" 1133 | } 1134 | }, 1135 | "node_modules/fill-range": { 1136 | "version": "7.1.1", 1137 | "dev": true, 1138 | "license": "MIT", 1139 | "dependencies": { 1140 | "to-regex-range": "^5.0.1" 1141 | }, 1142 | "engines": { 1143 | "node": ">=8" 1144 | } 1145 | }, 1146 | "node_modules/find-up": { 1147 | "version": "5.0.0", 1148 | "dev": true, 1149 | "license": "MIT", 1150 | "dependencies": { 1151 | "locate-path": "^6.0.0", 1152 | "path-exists": "^4.0.0" 1153 | }, 1154 | "engines": { 1155 | "node": ">=10" 1156 | }, 1157 | "funding": { 1158 | "url": "https://github.com/sponsors/sindresorhus" 1159 | } 1160 | }, 1161 | "node_modules/flat-cache": { 1162 | "version": "4.0.1", 1163 | "dev": true, 1164 | "license": "MIT", 1165 | "dependencies": { 1166 | "flatted": "^3.2.9", 1167 | "keyv": "^4.5.4" 1168 | }, 1169 | "engines": { 1170 | "node": ">=16" 1171 | } 1172 | }, 1173 | "node_modules/flatted": { 1174 | "version": "3.3.1", 1175 | "dev": true, 1176 | "license": "ISC" 1177 | }, 1178 | "node_modules/foreground-child": { 1179 | "version": "3.3.0", 1180 | "license": "ISC", 1181 | "dependencies": { 1182 | "cross-spawn": "^7.0.0", 1183 | "signal-exit": "^4.0.1" 1184 | }, 1185 | "engines": { 1186 | "node": ">=14" 1187 | }, 1188 | "funding": { 1189 | "url": "https://github.com/sponsors/isaacs" 1190 | } 1191 | }, 1192 | "node_modules/glob": { 1193 | "version": "10.4.5", 1194 | "license": "ISC", 1195 | "dependencies": { 1196 | "foreground-child": "^3.1.0", 1197 | "jackspeak": "^3.1.2", 1198 | "minimatch": "^9.0.4", 1199 | "minipass": "^7.1.2", 1200 | "package-json-from-dist": "^1.0.0", 1201 | "path-scurry": "^1.11.1" 1202 | }, 1203 | "bin": { 1204 | "glob": "dist/esm/bin.mjs" 1205 | }, 1206 | "funding": { 1207 | "url": "https://github.com/sponsors/isaacs" 1208 | } 1209 | }, 1210 | "node_modules/glob-parent": { 1211 | "version": "6.0.2", 1212 | "dev": true, 1213 | "license": "ISC", 1214 | "dependencies": { 1215 | "is-glob": "^4.0.3" 1216 | }, 1217 | "engines": { 1218 | "node": ">=10.13.0" 1219 | } 1220 | }, 1221 | "node_modules/globals": { 1222 | "version": "14.0.0", 1223 | "dev": true, 1224 | "license": "MIT", 1225 | "engines": { 1226 | "node": ">=18" 1227 | }, 1228 | "funding": { 1229 | "url": "https://github.com/sponsors/sindresorhus" 1230 | } 1231 | }, 1232 | "node_modules/graphemer": { 1233 | "version": "1.4.0", 1234 | "dev": true, 1235 | "license": "MIT" 1236 | }, 1237 | "node_modules/has-flag": { 1238 | "version": "4.0.0", 1239 | "dev": true, 1240 | "license": "MIT", 1241 | "engines": { 1242 | "node": ">=8" 1243 | } 1244 | }, 1245 | "node_modules/html-to-text": { 1246 | "version": "9.0.5", 1247 | "license": "MIT", 1248 | "dependencies": { 1249 | "@selderee/plugin-htmlparser2": "^0.11.0", 1250 | "deepmerge": "^4.3.1", 1251 | "dom-serializer": "^2.0.0", 1252 | "htmlparser2": "^8.0.2", 1253 | "selderee": "^0.11.0" 1254 | }, 1255 | "engines": { 1256 | "node": ">=14" 1257 | } 1258 | }, 1259 | "node_modules/htmlparser2": { 1260 | "version": "8.0.2", 1261 | "funding": [ 1262 | "https://github.com/fb55/htmlparser2?sponsor=1", 1263 | { 1264 | "type": "github", 1265 | "url": "https://github.com/sponsors/fb55" 1266 | } 1267 | ], 1268 | "license": "MIT", 1269 | "dependencies": { 1270 | "domelementtype": "^2.3.0", 1271 | "domhandler": "^5.0.3", 1272 | "domutils": "^3.0.1", 1273 | "entities": "^4.4.0" 1274 | } 1275 | }, 1276 | "node_modules/ignore": { 1277 | "version": "5.3.2", 1278 | "dev": true, 1279 | "license": "MIT", 1280 | "engines": { 1281 | "node": ">= 4" 1282 | } 1283 | }, 1284 | "node_modules/import-fresh": { 1285 | "version": "3.3.0", 1286 | "dev": true, 1287 | "license": "MIT", 1288 | "dependencies": { 1289 | "parent-module": "^1.0.0", 1290 | "resolve-from": "^4.0.0" 1291 | }, 1292 | "engines": { 1293 | "node": ">=6" 1294 | }, 1295 | "funding": { 1296 | "url": "https://github.com/sponsors/sindresorhus" 1297 | } 1298 | }, 1299 | "node_modules/imurmurhash": { 1300 | "version": "0.1.4", 1301 | "dev": true, 1302 | "license": "MIT", 1303 | "engines": { 1304 | "node": ">=0.8.19" 1305 | } 1306 | }, 1307 | "node_modules/ini": { 1308 | "version": "1.3.8", 1309 | "license": "ISC" 1310 | }, 1311 | "node_modules/is-extglob": { 1312 | "version": "2.1.1", 1313 | "dev": true, 1314 | "license": "MIT", 1315 | "engines": { 1316 | "node": ">=0.10.0" 1317 | } 1318 | }, 1319 | "node_modules/is-fullwidth-code-point": { 1320 | "version": "3.0.0", 1321 | "license": "MIT", 1322 | "engines": { 1323 | "node": ">=8" 1324 | } 1325 | }, 1326 | "node_modules/is-glob": { 1327 | "version": "4.0.3", 1328 | "dev": true, 1329 | "license": "MIT", 1330 | "dependencies": { 1331 | "is-extglob": "^2.1.1" 1332 | }, 1333 | "engines": { 1334 | "node": ">=0.10.0" 1335 | } 1336 | }, 1337 | "node_modules/is-number": { 1338 | "version": "7.0.0", 1339 | "dev": true, 1340 | "license": "MIT", 1341 | "engines": { 1342 | "node": ">=0.12.0" 1343 | } 1344 | }, 1345 | "node_modules/isexe": { 1346 | "version": "2.0.0", 1347 | "license": "ISC" 1348 | }, 1349 | "node_modules/iterare": { 1350 | "version": "1.2.1", 1351 | "license": "ISC", 1352 | "engines": { 1353 | "node": ">=6" 1354 | } 1355 | }, 1356 | "node_modules/jackspeak": { 1357 | "version": "3.4.3", 1358 | "license": "BlueOak-1.0.0", 1359 | "dependencies": { 1360 | "@isaacs/cliui": "^8.0.2" 1361 | }, 1362 | "funding": { 1363 | "url": "https://github.com/sponsors/isaacs" 1364 | }, 1365 | "optionalDependencies": { 1366 | "@pkgjs/parseargs": "^0.11.0" 1367 | } 1368 | }, 1369 | "node_modules/js-beautify": { 1370 | "version": "1.15.1", 1371 | "license": "MIT", 1372 | "dependencies": { 1373 | "config-chain": "^1.1.13", 1374 | "editorconfig": "^1.0.4", 1375 | "glob": "^10.3.3", 1376 | "js-cookie": "^3.0.5", 1377 | "nopt": "^7.2.0" 1378 | }, 1379 | "bin": { 1380 | "css-beautify": "js/bin/css-beautify.js", 1381 | "html-beautify": "js/bin/html-beautify.js", 1382 | "js-beautify": "js/bin/js-beautify.js" 1383 | }, 1384 | "engines": { 1385 | "node": ">=14" 1386 | } 1387 | }, 1388 | "node_modules/js-cookie": { 1389 | "version": "3.0.5", 1390 | "license": "MIT", 1391 | "engines": { 1392 | "node": ">=14" 1393 | } 1394 | }, 1395 | "node_modules/js-tokens": { 1396 | "version": "4.0.0", 1397 | "license": "MIT", 1398 | "peer": true 1399 | }, 1400 | "node_modules/js-yaml": { 1401 | "version": "4.1.0", 1402 | "dev": true, 1403 | "license": "MIT", 1404 | "dependencies": { 1405 | "argparse": "^2.0.1" 1406 | }, 1407 | "bin": { 1408 | "js-yaml": "bin/js-yaml.js" 1409 | } 1410 | }, 1411 | "node_modules/json-buffer": { 1412 | "version": "3.0.1", 1413 | "dev": true, 1414 | "license": "MIT" 1415 | }, 1416 | "node_modules/json-schema-traverse": { 1417 | "version": "0.4.1", 1418 | "dev": true, 1419 | "license": "MIT" 1420 | }, 1421 | "node_modules/json-stable-stringify-without-jsonify": { 1422 | "version": "1.0.1", 1423 | "dev": true, 1424 | "license": "MIT" 1425 | }, 1426 | "node_modules/keyv": { 1427 | "version": "4.5.4", 1428 | "dev": true, 1429 | "license": "MIT", 1430 | "dependencies": { 1431 | "json-buffer": "3.0.1" 1432 | } 1433 | }, 1434 | "node_modules/leac": { 1435 | "version": "0.6.0", 1436 | "license": "MIT", 1437 | "funding": { 1438 | "url": "https://ko-fi.com/killymxi" 1439 | } 1440 | }, 1441 | "node_modules/levn": { 1442 | "version": "0.4.1", 1443 | "dev": true, 1444 | "license": "MIT", 1445 | "dependencies": { 1446 | "prelude-ls": "^1.2.1", 1447 | "type-check": "~0.4.0" 1448 | }, 1449 | "engines": { 1450 | "node": ">= 0.8.0" 1451 | } 1452 | }, 1453 | "node_modules/locate-path": { 1454 | "version": "6.0.0", 1455 | "dev": true, 1456 | "license": "MIT", 1457 | "dependencies": { 1458 | "p-locate": "^5.0.0" 1459 | }, 1460 | "engines": { 1461 | "node": ">=10" 1462 | }, 1463 | "funding": { 1464 | "url": "https://github.com/sponsors/sindresorhus" 1465 | } 1466 | }, 1467 | "node_modules/lodash.merge": { 1468 | "version": "4.6.2", 1469 | "dev": true, 1470 | "license": "MIT" 1471 | }, 1472 | "node_modules/loose-envify": { 1473 | "version": "1.4.0", 1474 | "license": "MIT", 1475 | "peer": true, 1476 | "dependencies": { 1477 | "js-tokens": "^3.0.0 || ^4.0.0" 1478 | }, 1479 | "bin": { 1480 | "loose-envify": "cli.js" 1481 | } 1482 | }, 1483 | "node_modules/lru-cache": { 1484 | "version": "10.4.3", 1485 | "license": "ISC" 1486 | }, 1487 | "node_modules/merge2": { 1488 | "version": "1.4.1", 1489 | "dev": true, 1490 | "license": "MIT", 1491 | "engines": { 1492 | "node": ">= 8" 1493 | } 1494 | }, 1495 | "node_modules/micromatch": { 1496 | "version": "4.0.8", 1497 | "dev": true, 1498 | "license": "MIT", 1499 | "dependencies": { 1500 | "braces": "^3.0.3", 1501 | "picomatch": "^2.3.1" 1502 | }, 1503 | "engines": { 1504 | "node": ">=8.6" 1505 | } 1506 | }, 1507 | "node_modules/minimatch": { 1508 | "version": "9.0.5", 1509 | "license": "ISC", 1510 | "dependencies": { 1511 | "brace-expansion": "^2.0.1" 1512 | }, 1513 | "engines": { 1514 | "node": ">=16 || 14 >=14.17" 1515 | }, 1516 | "funding": { 1517 | "url": "https://github.com/sponsors/isaacs" 1518 | } 1519 | }, 1520 | "node_modules/minipass": { 1521 | "version": "7.1.2", 1522 | "license": "ISC", 1523 | "engines": { 1524 | "node": ">=16 || 14 >=14.17" 1525 | } 1526 | }, 1527 | "node_modules/ms": { 1528 | "version": "2.1.3", 1529 | "dev": true, 1530 | "license": "MIT" 1531 | }, 1532 | "node_modules/natural-compare": { 1533 | "version": "1.4.0", 1534 | "dev": true, 1535 | "license": "MIT" 1536 | }, 1537 | "node_modules/nopt": { 1538 | "version": "7.2.1", 1539 | "license": "ISC", 1540 | "dependencies": { 1541 | "abbrev": "^2.0.0" 1542 | }, 1543 | "bin": { 1544 | "nopt": "bin/nopt.js" 1545 | }, 1546 | "engines": { 1547 | "node": "^14.17.0 || ^16.13.0 || >=18.0.0" 1548 | } 1549 | }, 1550 | "node_modules/optionator": { 1551 | "version": "0.9.4", 1552 | "dev": true, 1553 | "license": "MIT", 1554 | "dependencies": { 1555 | "deep-is": "^0.1.3", 1556 | "fast-levenshtein": "^2.0.6", 1557 | "levn": "^0.4.1", 1558 | "prelude-ls": "^1.2.1", 1559 | "type-check": "^0.4.0", 1560 | "word-wrap": "^1.2.5" 1561 | }, 1562 | "engines": { 1563 | "node": ">= 0.8.0" 1564 | } 1565 | }, 1566 | "node_modules/p-limit": { 1567 | "version": "3.1.0", 1568 | "dev": true, 1569 | "license": "MIT", 1570 | "dependencies": { 1571 | "yocto-queue": "^0.1.0" 1572 | }, 1573 | "engines": { 1574 | "node": ">=10" 1575 | }, 1576 | "funding": { 1577 | "url": "https://github.com/sponsors/sindresorhus" 1578 | } 1579 | }, 1580 | "node_modules/p-locate": { 1581 | "version": "5.0.0", 1582 | "dev": true, 1583 | "license": "MIT", 1584 | "dependencies": { 1585 | "p-limit": "^3.0.2" 1586 | }, 1587 | "engines": { 1588 | "node": ">=10" 1589 | }, 1590 | "funding": { 1591 | "url": "https://github.com/sponsors/sindresorhus" 1592 | } 1593 | }, 1594 | "node_modules/package-json-from-dist": { 1595 | "version": "1.0.1", 1596 | "license": "BlueOak-1.0.0" 1597 | }, 1598 | "node_modules/parent-module": { 1599 | "version": "1.0.1", 1600 | "dev": true, 1601 | "license": "MIT", 1602 | "dependencies": { 1603 | "callsites": "^3.0.0" 1604 | }, 1605 | "engines": { 1606 | "node": ">=6" 1607 | } 1608 | }, 1609 | "node_modules/parseley": { 1610 | "version": "0.12.1", 1611 | "license": "MIT", 1612 | "dependencies": { 1613 | "leac": "^0.6.0", 1614 | "peberminta": "^0.9.0" 1615 | }, 1616 | "funding": { 1617 | "url": "https://ko-fi.com/killymxi" 1618 | } 1619 | }, 1620 | "node_modules/path-exists": { 1621 | "version": "4.0.0", 1622 | "dev": true, 1623 | "license": "MIT", 1624 | "engines": { 1625 | "node": ">=8" 1626 | } 1627 | }, 1628 | "node_modules/path-key": { 1629 | "version": "3.1.1", 1630 | "license": "MIT", 1631 | "engines": { 1632 | "node": ">=8" 1633 | } 1634 | }, 1635 | "node_modules/path-scurry": { 1636 | "version": "1.11.1", 1637 | "license": "BlueOak-1.0.0", 1638 | "dependencies": { 1639 | "lru-cache": "^10.2.0", 1640 | "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" 1641 | }, 1642 | "engines": { 1643 | "node": ">=16 || 14 >=14.18" 1644 | }, 1645 | "funding": { 1646 | "url": "https://github.com/sponsors/isaacs" 1647 | } 1648 | }, 1649 | "node_modules/peberminta": { 1650 | "version": "0.9.0", 1651 | "license": "MIT", 1652 | "funding": { 1653 | "url": "https://ko-fi.com/killymxi" 1654 | } 1655 | }, 1656 | "node_modules/picomatch": { 1657 | "version": "2.3.1", 1658 | "dev": true, 1659 | "license": "MIT", 1660 | "engines": { 1661 | "node": ">=8.6" 1662 | }, 1663 | "funding": { 1664 | "url": "https://github.com/sponsors/jonschlinkert" 1665 | } 1666 | }, 1667 | "node_modules/prelude-ls": { 1668 | "version": "1.2.1", 1669 | "dev": true, 1670 | "license": "MIT", 1671 | "engines": { 1672 | "node": ">= 0.8.0" 1673 | } 1674 | }, 1675 | "node_modules/prettier": { 1676 | "version": "3.3.3", 1677 | "dev": true, 1678 | "license": "MIT", 1679 | "bin": { 1680 | "prettier": "bin/prettier.cjs" 1681 | }, 1682 | "engines": { 1683 | "node": ">=14" 1684 | }, 1685 | "funding": { 1686 | "url": "https://github.com/prettier/prettier?sponsor=1" 1687 | } 1688 | }, 1689 | "node_modules/prettier-linter-helpers": { 1690 | "version": "1.0.0", 1691 | "dev": true, 1692 | "license": "MIT", 1693 | "dependencies": { 1694 | "fast-diff": "^1.1.2" 1695 | }, 1696 | "engines": { 1697 | "node": ">=6.0.0" 1698 | } 1699 | }, 1700 | "node_modules/proto-list": { 1701 | "version": "1.2.4", 1702 | "license": "ISC" 1703 | }, 1704 | "node_modules/punycode": { 1705 | "version": "2.3.1", 1706 | "dev": true, 1707 | "license": "MIT", 1708 | "engines": { 1709 | "node": ">=6" 1710 | } 1711 | }, 1712 | "node_modules/queue-microtask": { 1713 | "version": "1.2.3", 1714 | "dev": true, 1715 | "funding": [ 1716 | { 1717 | "type": "github", 1718 | "url": "https://github.com/sponsors/feross" 1719 | }, 1720 | { 1721 | "type": "patreon", 1722 | "url": "https://www.patreon.com/feross" 1723 | }, 1724 | { 1725 | "type": "consulting", 1726 | "url": "https://feross.org/support" 1727 | } 1728 | ], 1729 | "license": "MIT" 1730 | }, 1731 | "node_modules/react": { 1732 | "version": "18.3.1", 1733 | "license": "MIT", 1734 | "peer": true, 1735 | "dependencies": { 1736 | "loose-envify": "^1.1.0" 1737 | }, 1738 | "engines": { 1739 | "node": ">=0.10.0" 1740 | } 1741 | }, 1742 | "node_modules/react-dom": { 1743 | "version": "18.3.1", 1744 | "license": "MIT", 1745 | "peer": true, 1746 | "dependencies": { 1747 | "loose-envify": "^1.1.0", 1748 | "scheduler": "^0.23.2" 1749 | }, 1750 | "peerDependencies": { 1751 | "react": "^18.3.1" 1752 | } 1753 | }, 1754 | "node_modules/react-promise-suspense": { 1755 | "version": "0.3.4", 1756 | "license": "MIT", 1757 | "dependencies": { 1758 | "fast-deep-equal": "^2.0.1" 1759 | } 1760 | }, 1761 | "node_modules/react-promise-suspense/node_modules/fast-deep-equal": { 1762 | "version": "2.0.1", 1763 | "license": "MIT" 1764 | }, 1765 | "node_modules/reflect-metadata": { 1766 | "version": "0.2.2", 1767 | "license": "Apache-2.0", 1768 | "peer": true 1769 | }, 1770 | "node_modules/resend": { 1771 | "version": "4.0.0", 1772 | "license": "MIT", 1773 | "dependencies": { 1774 | "@react-email/render": "0.0.17" 1775 | }, 1776 | "engines": { 1777 | "node": ">=18" 1778 | } 1779 | }, 1780 | "node_modules/resolve-from": { 1781 | "version": "4.0.0", 1782 | "dev": true, 1783 | "license": "MIT", 1784 | "engines": { 1785 | "node": ">=4" 1786 | } 1787 | }, 1788 | "node_modules/reusify": { 1789 | "version": "1.0.4", 1790 | "dev": true, 1791 | "license": "MIT", 1792 | "engines": { 1793 | "iojs": ">=1.0.0", 1794 | "node": ">=0.10.0" 1795 | } 1796 | }, 1797 | "node_modules/rimraf": { 1798 | "version": "6.0.1", 1799 | "dev": true, 1800 | "license": "ISC", 1801 | "dependencies": { 1802 | "glob": "^11.0.0", 1803 | "package-json-from-dist": "^1.0.0" 1804 | }, 1805 | "bin": { 1806 | "rimraf": "dist/esm/bin.mjs" 1807 | }, 1808 | "engines": { 1809 | "node": "20 || >=22" 1810 | }, 1811 | "funding": { 1812 | "url": "https://github.com/sponsors/isaacs" 1813 | } 1814 | }, 1815 | "node_modules/rimraf/node_modules/glob": { 1816 | "version": "11.0.0", 1817 | "dev": true, 1818 | "license": "ISC", 1819 | "dependencies": { 1820 | "foreground-child": "^3.1.0", 1821 | "jackspeak": "^4.0.1", 1822 | "minimatch": "^10.0.0", 1823 | "minipass": "^7.1.2", 1824 | "package-json-from-dist": "^1.0.0", 1825 | "path-scurry": "^2.0.0" 1826 | }, 1827 | "bin": { 1828 | "glob": "dist/esm/bin.mjs" 1829 | }, 1830 | "engines": { 1831 | "node": "20 || >=22" 1832 | }, 1833 | "funding": { 1834 | "url": "https://github.com/sponsors/isaacs" 1835 | } 1836 | }, 1837 | "node_modules/rimraf/node_modules/jackspeak": { 1838 | "version": "4.0.2", 1839 | "dev": true, 1840 | "license": "BlueOak-1.0.0", 1841 | "dependencies": { 1842 | "@isaacs/cliui": "^8.0.2" 1843 | }, 1844 | "engines": { 1845 | "node": "20 || >=22" 1846 | }, 1847 | "funding": { 1848 | "url": "https://github.com/sponsors/isaacs" 1849 | } 1850 | }, 1851 | "node_modules/rimraf/node_modules/lru-cache": { 1852 | "version": "11.0.1", 1853 | "dev": true, 1854 | "license": "ISC", 1855 | "engines": { 1856 | "node": "20 || >=22" 1857 | } 1858 | }, 1859 | "node_modules/rimraf/node_modules/minimatch": { 1860 | "version": "10.0.1", 1861 | "dev": true, 1862 | "license": "ISC", 1863 | "dependencies": { 1864 | "brace-expansion": "^2.0.1" 1865 | }, 1866 | "engines": { 1867 | "node": "20 || >=22" 1868 | }, 1869 | "funding": { 1870 | "url": "https://github.com/sponsors/isaacs" 1871 | } 1872 | }, 1873 | "node_modules/rimraf/node_modules/path-scurry": { 1874 | "version": "2.0.0", 1875 | "dev": true, 1876 | "license": "BlueOak-1.0.0", 1877 | "dependencies": { 1878 | "lru-cache": "^11.0.0", 1879 | "minipass": "^7.1.2" 1880 | }, 1881 | "engines": { 1882 | "node": "20 || >=22" 1883 | }, 1884 | "funding": { 1885 | "url": "https://github.com/sponsors/isaacs" 1886 | } 1887 | }, 1888 | "node_modules/run-parallel": { 1889 | "version": "1.2.0", 1890 | "dev": true, 1891 | "funding": [ 1892 | { 1893 | "type": "github", 1894 | "url": "https://github.com/sponsors/feross" 1895 | }, 1896 | { 1897 | "type": "patreon", 1898 | "url": "https://www.patreon.com/feross" 1899 | }, 1900 | { 1901 | "type": "consulting", 1902 | "url": "https://feross.org/support" 1903 | } 1904 | ], 1905 | "license": "MIT", 1906 | "dependencies": { 1907 | "queue-microtask": "^1.2.2" 1908 | } 1909 | }, 1910 | "node_modules/rxjs": { 1911 | "version": "7.8.1", 1912 | "license": "Apache-2.0", 1913 | "dependencies": { 1914 | "tslib": "^2.1.0" 1915 | } 1916 | }, 1917 | "node_modules/scheduler": { 1918 | "version": "0.23.2", 1919 | "license": "MIT", 1920 | "peer": true, 1921 | "dependencies": { 1922 | "loose-envify": "^1.1.0" 1923 | } 1924 | }, 1925 | "node_modules/selderee": { 1926 | "version": "0.11.0", 1927 | "license": "MIT", 1928 | "dependencies": { 1929 | "parseley": "^0.12.0" 1930 | }, 1931 | "funding": { 1932 | "url": "https://ko-fi.com/killymxi" 1933 | } 1934 | }, 1935 | "node_modules/semver": { 1936 | "version": "7.6.3", 1937 | "license": "ISC", 1938 | "bin": { 1939 | "semver": "bin/semver.js" 1940 | }, 1941 | "engines": { 1942 | "node": ">=10" 1943 | } 1944 | }, 1945 | "node_modules/shebang-command": { 1946 | "version": "2.0.0", 1947 | "license": "MIT", 1948 | "dependencies": { 1949 | "shebang-regex": "^3.0.0" 1950 | }, 1951 | "engines": { 1952 | "node": ">=8" 1953 | } 1954 | }, 1955 | "node_modules/shebang-regex": { 1956 | "version": "3.0.0", 1957 | "license": "MIT", 1958 | "engines": { 1959 | "node": ">=8" 1960 | } 1961 | }, 1962 | "node_modules/signal-exit": { 1963 | "version": "4.1.0", 1964 | "license": "ISC", 1965 | "engines": { 1966 | "node": ">=14" 1967 | }, 1968 | "funding": { 1969 | "url": "https://github.com/sponsors/isaacs" 1970 | } 1971 | }, 1972 | "node_modules/string-width": { 1973 | "version": "5.1.2", 1974 | "license": "MIT", 1975 | "dependencies": { 1976 | "eastasianwidth": "^0.2.0", 1977 | "emoji-regex": "^9.2.2", 1978 | "strip-ansi": "^7.0.1" 1979 | }, 1980 | "engines": { 1981 | "node": ">=12" 1982 | }, 1983 | "funding": { 1984 | "url": "https://github.com/sponsors/sindresorhus" 1985 | } 1986 | }, 1987 | "node_modules/string-width-cjs": { 1988 | "name": "string-width", 1989 | "version": "4.2.3", 1990 | "license": "MIT", 1991 | "dependencies": { 1992 | "emoji-regex": "^8.0.0", 1993 | "is-fullwidth-code-point": "^3.0.0", 1994 | "strip-ansi": "^6.0.1" 1995 | }, 1996 | "engines": { 1997 | "node": ">=8" 1998 | } 1999 | }, 2000 | "node_modules/string-width-cjs/node_modules/ansi-regex": { 2001 | "version": "5.0.1", 2002 | "license": "MIT", 2003 | "engines": { 2004 | "node": ">=8" 2005 | } 2006 | }, 2007 | "node_modules/string-width-cjs/node_modules/emoji-regex": { 2008 | "version": "8.0.0", 2009 | "license": "MIT" 2010 | }, 2011 | "node_modules/string-width-cjs/node_modules/strip-ansi": { 2012 | "version": "6.0.1", 2013 | "license": "MIT", 2014 | "dependencies": { 2015 | "ansi-regex": "^5.0.1" 2016 | }, 2017 | "engines": { 2018 | "node": ">=8" 2019 | } 2020 | }, 2021 | "node_modules/strip-ansi": { 2022 | "version": "7.1.0", 2023 | "license": "MIT", 2024 | "dependencies": { 2025 | "ansi-regex": "^6.0.1" 2026 | }, 2027 | "engines": { 2028 | "node": ">=12" 2029 | }, 2030 | "funding": { 2031 | "url": "https://github.com/chalk/strip-ansi?sponsor=1" 2032 | } 2033 | }, 2034 | "node_modules/strip-ansi-cjs": { 2035 | "name": "strip-ansi", 2036 | "version": "6.0.1", 2037 | "license": "MIT", 2038 | "dependencies": { 2039 | "ansi-regex": "^5.0.1" 2040 | }, 2041 | "engines": { 2042 | "node": ">=8" 2043 | } 2044 | }, 2045 | "node_modules/strip-ansi-cjs/node_modules/ansi-regex": { 2046 | "version": "5.0.1", 2047 | "license": "MIT", 2048 | "engines": { 2049 | "node": ">=8" 2050 | } 2051 | }, 2052 | "node_modules/strip-json-comments": { 2053 | "version": "3.1.1", 2054 | "dev": true, 2055 | "license": "MIT", 2056 | "engines": { 2057 | "node": ">=8" 2058 | }, 2059 | "funding": { 2060 | "url": "https://github.com/sponsors/sindresorhus" 2061 | } 2062 | }, 2063 | "node_modules/supports-color": { 2064 | "version": "7.2.0", 2065 | "dev": true, 2066 | "license": "MIT", 2067 | "dependencies": { 2068 | "has-flag": "^4.0.0" 2069 | }, 2070 | "engines": { 2071 | "node": ">=8" 2072 | } 2073 | }, 2074 | "node_modules/synckit": { 2075 | "version": "0.9.2", 2076 | "dev": true, 2077 | "license": "MIT", 2078 | "dependencies": { 2079 | "@pkgr/core": "^0.1.0", 2080 | "tslib": "^2.6.2" 2081 | }, 2082 | "engines": { 2083 | "node": "^14.18.0 || >=16.0.0" 2084 | }, 2085 | "funding": { 2086 | "url": "https://opencollective.com/unts" 2087 | } 2088 | }, 2089 | "node_modules/text-table": { 2090 | "version": "0.2.0", 2091 | "dev": true, 2092 | "license": "MIT" 2093 | }, 2094 | "node_modules/to-regex-range": { 2095 | "version": "5.0.1", 2096 | "dev": true, 2097 | "license": "MIT", 2098 | "dependencies": { 2099 | "is-number": "^7.0.0" 2100 | }, 2101 | "engines": { 2102 | "node": ">=8.0" 2103 | } 2104 | }, 2105 | "node_modules/ts-api-utils": { 2106 | "version": "1.3.0", 2107 | "dev": true, 2108 | "license": "MIT", 2109 | "engines": { 2110 | "node": ">=16" 2111 | }, 2112 | "peerDependencies": { 2113 | "typescript": ">=4.2.0" 2114 | } 2115 | }, 2116 | "node_modules/tslib": { 2117 | "version": "2.7.0", 2118 | "license": "0BSD" 2119 | }, 2120 | "node_modules/type-check": { 2121 | "version": "0.4.0", 2122 | "dev": true, 2123 | "license": "MIT", 2124 | "dependencies": { 2125 | "prelude-ls": "^1.2.1" 2126 | }, 2127 | "engines": { 2128 | "node": ">= 0.8.0" 2129 | } 2130 | }, 2131 | "node_modules/typescript": { 2132 | "version": "5.6.3", 2133 | "dev": true, 2134 | "license": "Apache-2.0", 2135 | "bin": { 2136 | "tsc": "bin/tsc", 2137 | "tsserver": "bin/tsserver" 2138 | }, 2139 | "engines": { 2140 | "node": ">=14.17" 2141 | } 2142 | }, 2143 | "node_modules/uid": { 2144 | "version": "2.0.2", 2145 | "license": "MIT", 2146 | "dependencies": { 2147 | "@lukeed/csprng": "^1.0.0" 2148 | }, 2149 | "engines": { 2150 | "node": ">=8" 2151 | } 2152 | }, 2153 | "node_modules/undici-types": { 2154 | "version": "6.19.8", 2155 | "dev": true, 2156 | "license": "MIT" 2157 | }, 2158 | "node_modules/uri-js": { 2159 | "version": "4.4.1", 2160 | "dev": true, 2161 | "license": "BSD-2-Clause", 2162 | "dependencies": { 2163 | "punycode": "^2.1.0" 2164 | } 2165 | }, 2166 | "node_modules/which": { 2167 | "version": "2.0.2", 2168 | "license": "ISC", 2169 | "dependencies": { 2170 | "isexe": "^2.0.0" 2171 | }, 2172 | "bin": { 2173 | "node-which": "bin/node-which" 2174 | }, 2175 | "engines": { 2176 | "node": ">= 8" 2177 | } 2178 | }, 2179 | "node_modules/word-wrap": { 2180 | "version": "1.2.5", 2181 | "dev": true, 2182 | "license": "MIT", 2183 | "engines": { 2184 | "node": ">=0.10.0" 2185 | } 2186 | }, 2187 | "node_modules/wrap-ansi": { 2188 | "version": "8.1.0", 2189 | "license": "MIT", 2190 | "dependencies": { 2191 | "ansi-styles": "^6.1.0", 2192 | "string-width": "^5.0.1", 2193 | "strip-ansi": "^7.0.1" 2194 | }, 2195 | "engines": { 2196 | "node": ">=12" 2197 | }, 2198 | "funding": { 2199 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2200 | } 2201 | }, 2202 | "node_modules/wrap-ansi-cjs": { 2203 | "name": "wrap-ansi", 2204 | "version": "7.0.0", 2205 | "license": "MIT", 2206 | "dependencies": { 2207 | "ansi-styles": "^4.0.0", 2208 | "string-width": "^4.1.0", 2209 | "strip-ansi": "^6.0.0" 2210 | }, 2211 | "engines": { 2212 | "node": ">=10" 2213 | }, 2214 | "funding": { 2215 | "url": "https://github.com/chalk/wrap-ansi?sponsor=1" 2216 | } 2217 | }, 2218 | "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": { 2219 | "version": "5.0.1", 2220 | "license": "MIT", 2221 | "engines": { 2222 | "node": ">=8" 2223 | } 2224 | }, 2225 | "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": { 2226 | "version": "8.0.0", 2227 | "license": "MIT" 2228 | }, 2229 | "node_modules/wrap-ansi-cjs/node_modules/string-width": { 2230 | "version": "4.2.3", 2231 | "license": "MIT", 2232 | "dependencies": { 2233 | "emoji-regex": "^8.0.0", 2234 | "is-fullwidth-code-point": "^3.0.0", 2235 | "strip-ansi": "^6.0.1" 2236 | }, 2237 | "engines": { 2238 | "node": ">=8" 2239 | } 2240 | }, 2241 | "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": { 2242 | "version": "6.0.1", 2243 | "license": "MIT", 2244 | "dependencies": { 2245 | "ansi-regex": "^5.0.1" 2246 | }, 2247 | "engines": { 2248 | "node": ">=8" 2249 | } 2250 | }, 2251 | "node_modules/wrap-ansi/node_modules/ansi-styles": { 2252 | "version": "6.2.1", 2253 | "license": "MIT", 2254 | "engines": { 2255 | "node": ">=12" 2256 | }, 2257 | "funding": { 2258 | "url": "https://github.com/chalk/ansi-styles?sponsor=1" 2259 | } 2260 | }, 2261 | "node_modules/yocto-queue": { 2262 | "version": "0.1.0", 2263 | "dev": true, 2264 | "license": "MIT", 2265 | "engines": { 2266 | "node": ">=10" 2267 | }, 2268 | "funding": { 2269 | "url": "https://github.com/sponsors/sindresorhus" 2270 | } 2271 | } 2272 | } 2273 | } 2274 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nestjs-resend", 3 | "version": "1.0.1", 4 | "description": "NestJS provider for sending emails with resend", 5 | "author": "paullee", 6 | "license": "MIT", 7 | "main": "dist/index.js", 8 | "types": "dist/index.d.ts", 9 | "files": [ 10 | "dist/**" 11 | ], 12 | "scripts": { 13 | "build": "rimraf ./dist && tsc -p tsconfig.json", 14 | "format": "prettier --write \"src/**/*.ts\" \"test/**/*.ts\"" 15 | }, 16 | "dependencies": { 17 | "@nestjs/common": "^10.0.0", 18 | "resend": "^4.0.0", 19 | "rxjs": "^7.8.1" 20 | }, 21 | "devDependencies": { 22 | "@types/node": "^22.5.2", 23 | "@typescript-eslint/eslint-plugin": "^8.4.0", 24 | "@typescript-eslint/parser": "^8.4.0", 25 | "eslint": "^9.1.1", 26 | "eslint-config-prettier": "^9.1.0", 27 | "eslint-plugin-prettier": "^5.2.1", 28 | "prettier": "^3.0.3", 29 | "rimraf": "^6.0.1", 30 | "typescript": "^5.2.2" 31 | }, 32 | "peerDependencies": { 33 | "@nestjs/common": "^10.0.0", 34 | "rxjs": "^7.8.1" 35 | }, 36 | "repository": { 37 | "type": "git", 38 | "url": "git+https://github.com/jiangtaste/nestjs-resend.git" 39 | }, 40 | "keywords": [ 41 | "nestjs", 42 | "nest", 43 | "resend", 44 | "mailgun", 45 | "email" 46 | ], 47 | "bugs": { 48 | "url": "https://github.com/jiangtaste/nestjs-resend/issues" 49 | }, 50 | "homepage": "https://github.com/jiangtaste/nestjs-resend#readme" 51 | } 52 | -------------------------------------------------------------------------------- /src/index.ts: -------------------------------------------------------------------------------- 1 | export * from 'resend' 2 | export * from './resend.constant' 3 | export * from './resend.interface' 4 | export * from './resend.module' 5 | export * from './resend.service' 6 | -------------------------------------------------------------------------------- /src/resend-core.module.ts: -------------------------------------------------------------------------------- 1 | import { DynamicModule, Global, Module } from '@nestjs/common' 2 | import { RESEND_CONFIGURATION_OPTIONS } from './resend.constant' 3 | import { ResendOptions, ResendOptionsAsync } from './resend.interface' 4 | import { ResendService } from './resend.service' 5 | 6 | @Global() 7 | @Module({ 8 | providers: [ResendService], 9 | exports: [ResendService], 10 | }) 11 | export class ResendCoreModule { 12 | static forRoot(options: ResendOptions): DynamicModule { 13 | const resendModuleOptions = { 14 | provide: RESEND_CONFIGURATION_OPTIONS, 15 | useValue: options, 16 | } 17 | 18 | return { 19 | module: ResendCoreModule, 20 | providers: [resendModuleOptions], 21 | exports: [ResendService], 22 | } 23 | } 24 | 25 | static forRootAsync(options: ResendOptionsAsync): DynamicModule { 26 | const resendModuleOptions = { 27 | provide: RESEND_CONFIGURATION_OPTIONS, 28 | useFactory: options.useFactory, 29 | inject: options.inject || [], 30 | } 31 | 32 | return { 33 | module: ResendCoreModule, 34 | imports: options.imports, 35 | providers: [resendModuleOptions], 36 | exports: [ResendService], 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /src/resend.constant.ts: -------------------------------------------------------------------------------- 1 | export const RESEND_CONFIGURATION_OPTIONS = 'RESEND_CONFIGURATION' 2 | -------------------------------------------------------------------------------- /src/resend.interface.ts: -------------------------------------------------------------------------------- 1 | import { ModuleMetadata } from '@nestjs/common' 2 | 3 | export interface ResendOptions { 4 | apiKey: string 5 | } 6 | 7 | export interface ResendOptionsAsync extends Pick { 8 | name?: string 9 | useFactory: (...args: any[]) => ResendOptions | Promise 10 | inject?: any[] 11 | } 12 | -------------------------------------------------------------------------------- /src/resend.module.ts: -------------------------------------------------------------------------------- 1 | import { Module } from '@nestjs/common' 2 | import { ResendCoreModule } from './resend-core.module' 3 | import { ResendOptions, ResendOptionsAsync } from './resend.interface' 4 | 5 | @Module({}) 6 | export class ResendModule { 7 | static forRoot(options: ResendOptions) { 8 | return { 9 | module: ResendModule, 10 | imports: [ResendCoreModule.forRoot(options)], 11 | } 12 | } 13 | 14 | static forRootAsync(options: ResendOptionsAsync) { 15 | return { 16 | module: ResendModule, 17 | imports: [ResendCoreModule.forRootAsync(options)], 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /src/resend.service.ts: -------------------------------------------------------------------------------- 1 | import { Inject, Injectable } from '@nestjs/common' 2 | import { 3 | CreateBatchOptions, 4 | CreateEmailOptions, 5 | CreateEmailRequestOptions, 6 | Resend, 7 | } from 'resend' 8 | 9 | import { RESEND_CONFIGURATION_OPTIONS } from './resend.constant' 10 | import { ResendOptions } from './resend.interface' 11 | 12 | @Injectable() 13 | export class ResendService extends Resend { 14 | constructor( 15 | @Inject(RESEND_CONFIGURATION_OPTIONS) 16 | readonly options: ResendOptions, 17 | ) { 18 | if (!(options && options.apiKey)) { 19 | return 20 | } 21 | 22 | super(options.apiKey) 23 | } 24 | 25 | public send = async ( 26 | payload: CreateEmailOptions, 27 | options?: CreateEmailRequestOptions, 28 | ) => this.emails.send(payload, options) 29 | 30 | public sendBatch = async ( 31 | payload: CreateBatchOptions, 32 | options?: CreateEmailRequestOptions, 33 | ) => this.batch.send(payload, options) 34 | } 35 | -------------------------------------------------------------------------------- /tsconfig.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./tsconfig.json", 3 | "exclude": ["node_modules", "test", "dist", "**/*spec.ts"] 4 | } 5 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | "module": "commonjs", 4 | "declaration": true, 5 | "removeComments": true, 6 | "emitDecoratorMetadata": true, 7 | "experimentalDecorators": true, 8 | "allowSyntheticDefaultImports": true, 9 | "target": "es2017", 10 | "sourceMap": true, 11 | "outDir": "./dist", 12 | "baseUrl": "./", 13 | "incremental": true, 14 | "skipLibCheck": true, 15 | "strictNullChecks": false, 16 | "noImplicitAny": false, 17 | "strictBindCallApply": false, 18 | "forceConsistentCasingInFileNames": false, 19 | "noFallthroughCasesInSwitch": false 20 | } 21 | } 22 | --------------------------------------------------------------------------------