+7
-4
@@ -28,3 +28,3 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" }); | ||
| //#region package.json | ||
| var version = "6.13.0-preview-imports.0"; | ||
| var version = "6.13.0"; | ||
| //#endregion | ||
@@ -439,3 +439,2 @@ //#region src/common/utils/build-pagination-query.ts | ||
| this.appendField(formData, "on_conflict", payload.onConflict ?? null); | ||
| this.appendField(formData, "on_error", payload.onError ?? null); | ||
| this.appendField(formData, "segments", payload.segments ?? null); | ||
@@ -732,4 +731,8 @@ this.appendField(formData, "topics", payload.topics ?? null); | ||
| } | ||
| async get(id) { | ||
| return await this.resend.get(`/emails/receiving/${id}`); | ||
| async get(id, options = {}) { | ||
| const searchParams = new URLSearchParams(); | ||
| if (options.html_format !== void 0) searchParams.set("html_format", options.html_format); | ||
| const queryString = searchParams.toString(); | ||
| const path = queryString ? `/emails/receiving/${id}?${queryString}` : `/emails/receiving/${id}`; | ||
| return await this.resend.get(path); | ||
| } | ||
@@ -736,0 +739,0 @@ async list(options = {}) { |
+7
-4
| import PostalMime from "postal-mime"; | ||
| import { Webhook } from "standardwebhooks"; | ||
| //#region package.json | ||
| var version = "6.13.0-preview-imports.0"; | ||
| var version = "6.13.0"; | ||
| //#endregion | ||
@@ -414,3 +414,2 @@ //#region src/common/utils/build-pagination-query.ts | ||
| this.appendField(formData, "on_conflict", payload.onConflict ?? null); | ||
| this.appendField(formData, "on_error", payload.onError ?? null); | ||
| this.appendField(formData, "segments", payload.segments ?? null); | ||
@@ -707,4 +706,8 @@ this.appendField(formData, "topics", payload.topics ?? null); | ||
| } | ||
| async get(id) { | ||
| return await this.resend.get(`/emails/receiving/${id}`); | ||
| async get(id, options = {}) { | ||
| const searchParams = new URLSearchParams(); | ||
| if (options.html_format !== void 0) searchParams.set("html_format", options.html_format); | ||
| const queryString = searchParams.toString(); | ||
| const path = queryString ? `/emails/receiving/${id}?${queryString}` : `/emails/receiving/${id}`; | ||
| return await this.resend.get(path); | ||
| } | ||
@@ -711,0 +714,0 @@ async list(options = {}) { |
+1
-1
| { | ||
| "name": "resend", | ||
| "version": "6.13.0-preview-imports.0", | ||
| "version": "6.13.0", | ||
| "description": "Node.js library for the Resend API", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
+1
-1
@@ -85,3 +85,3 @@ | ||
| console.log(`Emaill ${data.id} with customer HTML content has been sent.`); | ||
| console.log(`Email ${data.id} with custom HTML content has been sent.`); | ||
| ``` | ||
@@ -88,0 +88,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
242011
0.44%2494
0.24%0
-100%