@cedarjs/mailer-handler-resend 6.0.0-canary.2750 → 6.0.0-canary.2758

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +6 -30
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -1,33 +1,10 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var index_exports = {};
20
- __export(index_exports, {
21
- ResendMailHandler: () => ResendMailHandler
22
- });
23
- module.exports = __toCommonJS(index_exports);
24
- var import_resend = require("resend");
25
- var import_mailer_core = require("@cedarjs/mailer-core");
26
- class ResendMailHandler extends import_mailer_core.AbstractMailHandler {
1
+ import { Resend } from "resend";
2
+ import { AbstractMailHandler } from "@cedarjs/mailer-core";
3
+ class ResendMailHandler extends AbstractMailHandler {
27
4
  client;
28
5
  constructor({ apiToken, apiKey }) {
29
6
  super();
30
- this.client = new import_resend.Resend(apiKey ?? apiToken);
7
+ this.client = new Resend(apiKey ?? apiToken);
31
8
  }
32
9
  async send(content, sendOptions, handlerOptions) {
33
10
  const transformedAttachments = [];
@@ -74,7 +51,6 @@ class ResendMailHandler extends import_mailer_core.AbstractMailHandler {
74
51
  };
75
52
  }
76
53
  }
77
- // Annotate the CommonJS export names for ESM import in node:
78
- 0 && (module.exports = {
54
+ export {
79
55
  ResendMailHandler
80
- });
56
+ };
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@cedarjs/mailer-handler-resend",
3
- "version": "6.0.0-canary.2750",
3
+ "version": "6.0.0-canary.2758",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/cedarjs/cedar.git",
7
7
  "directory": "packages/mailer/handlers/resend"
8
8
  },
9
9
  "license": "MIT",
10
- "type": "commonjs",
10
+ "type": "module",
11
11
  "main": "./dist/index.js",
12
12
  "types": "./dist/index.d.ts",
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
16
  "scripts": {
17
- "build": "node ./build.mts && yarn build:types",
17
+ "build": "node ./build.mts",
18
18
  "build:pack": "yarn pack -o cedarjs-mailer-handler-resend.tgz",
19
- "build:types": "tsc --build --verbose",
19
+ "build:types": "tsc --build --verbose ./tsconfig.build.json",
20
20
  "build:watch": "nodemon --watch src --ext \"js,jsx,ts,tsx\" --ignore dist --exec \"yarn build\"",
21
21
  "prepublishOnly": "NODE_ENV=production yarn build"
22
22
  },
23
23
  "dependencies": {
24
- "@cedarjs/mailer-core": "6.0.0-canary.2750",
24
+ "@cedarjs/mailer-core": "6.0.0-canary.2758",
25
25
  "resend": "4.8.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@cedarjs/framework-tools": "6.0.0-canary.2750",
28
+ "@cedarjs/framework-tools": "6.0.0-canary.2758",
29
29
  "typescript": "5.9.3"
30
30
  },
31
31
  "publishConfig": {