🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

resend

Package Overview
Dependencies
Maintainers
14
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

resend - npm Package Compare versions

Comparing version
6.13.0-preview-imports.0
to
6.13.0
+7
-4
dist/index.cjs

@@ -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 = {}) {

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 = {}) {

{
"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",

@@ -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