Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

resend

Package Overview
Dependencies
Maintainers
10
Versions
131
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.7.0
to
6.8.0
+4
-2
dist/index.cjs
let svix = require("svix");
//#region package.json
var version = "6.7.0";
var version = "6.8.0";

@@ -131,3 +131,5 @@ //#endregion

text: payload.text,
topic_id: payload.topicId
topic_id: payload.topicId,
send: payload.send,
scheduled_at: payload.scheduledAt
}, options);

@@ -134,0 +136,0 @@ }

@@ -436,2 +436,35 @@ import * as React$1 from "react";

}
type SendBroadcastOnCreationOptions = {
/**
* Whether to send the broadcast immediately or keep it as a draft.
* If not provided or set to false, the broadcast will be created as a draft.
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
send: true;
/**
* Schedule time to send the broadcast. Can only be used if `send` is true.
* The date should be in ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z)
* or relative time (eg: in 2 days).
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
scheduledAt?: string;
} | {
/**
* Whether to send the broadcast immediately or keep it as a draft.
* If not provided or set to false, the broadcast will be created as a draft.
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
send?: false;
/**
* Schedule time to send the broadcast. Can only be used if `send` is true.
* The date should be in ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z)
* or relative time (eg: in 2 days).
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
scheduledAt?: never;
};
interface CreateBroadcastBaseOptions {

@@ -475,3 +508,3 @@ /**

}
type CreateBroadcastOptions = RequireAtLeastOne<EmailRenderOptions> & RequireAtLeastOne<SegmentOptions> & CreateBroadcastBaseOptions;
type CreateBroadcastOptions = RequireAtLeastOne<EmailRenderOptions> & RequireAtLeastOne<SegmentOptions> & CreateBroadcastBaseOptions & SendBroadcastOnCreationOptions;
interface CreateBroadcastRequestOptions extends PostOptions {}

@@ -478,0 +511,0 @@ interface CreateBroadcastResponseSuccess {

@@ -436,2 +436,35 @@ import * as React$1 from "react";

}
type SendBroadcastOnCreationOptions = {
/**
* Whether to send the broadcast immediately or keep it as a draft.
* If not provided or set to false, the broadcast will be created as a draft.
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
send: true;
/**
* Schedule time to send the broadcast. Can only be used if `send` is true.
* The date should be in ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z)
* or relative time (eg: in 2 days).
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
scheduledAt?: string;
} | {
/**
* Whether to send the broadcast immediately or keep it as a draft.
* If not provided or set to false, the broadcast will be created as a draft.
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
send?: false;
/**
* Schedule time to send the broadcast. Can only be used if `send` is true.
* The date should be in ISO 8601 format (e.g: 2024-08-05T11:52:01.858Z)
* or relative time (eg: in 2 days).
*
* @link https://resend.com/docs/api-reference/broadcasts/create#body-parameters
*/
scheduledAt?: never;
};
interface CreateBroadcastBaseOptions {

@@ -475,3 +508,3 @@ /**

}
type CreateBroadcastOptions = RequireAtLeastOne<EmailRenderOptions> & RequireAtLeastOne<SegmentOptions> & CreateBroadcastBaseOptions;
type CreateBroadcastOptions = RequireAtLeastOne<EmailRenderOptions> & RequireAtLeastOne<SegmentOptions> & CreateBroadcastBaseOptions & SendBroadcastOnCreationOptions;
interface CreateBroadcastRequestOptions extends PostOptions {}

@@ -478,0 +511,0 @@ interface CreateBroadcastResponseSuccess {

import { Webhook } from "svix";
//#region package.json
var version = "6.7.0";
var version = "6.8.0";

@@ -131,3 +131,5 @@ //#endregion

text: payload.text,
topic_id: payload.topicId
topic_id: payload.topicId,
send: payload.send,
scheduled_at: payload.scheduledAt
}, options);

@@ -134,0 +136,0 @@ }

{
"name": "resend",
"version": "6.7.0",
"version": "6.8.0",
"description": "Node.js library for the Resend API",

@@ -32,15 +32,2 @@ "main": "./dist/index.cjs",

},
"scripts": {
"build": "tsdown src/index.ts --format esm,cjs --dts",
"integration:nextjs": "cd ./integrations/nextjs && next build --turbopack",
"lint": "biome check .",
"lint:fix": "biome check . --write",
"prepublishOnly": "pnpm run build",
"test": "vitest run",
"test:dev": "cross-env TEST_MODE=dev vitest run",
"test:integrations": "vitest run integrations",
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit"
},
"repository": {

@@ -73,3 +60,3 @@ "type": "git",

"@types/node": "24.10.4",
"@types/react": "19.2.7",
"@types/react": "19.2.8",
"cross-env": "10.1.0",

@@ -79,8 +66,19 @@ "dotenv": "17.2.3",

"rimraf": "6.1.2",
"tsdown": "0.18.4",
"tsdown": "0.19.0",
"typescript": "5.9.3",
"vitest": "4.0.16",
"vitest": "4.0.17",
"vitest-fetch-mock": "0.4.5"
},
"packageManager": "pnpm@10.27.0"
}
"scripts": {
"build": "tsdown src/index.ts --format esm,cjs --dts",
"integration:nextjs": "cd ./integrations/nextjs && next build --turbopack",
"lint": "biome check .",
"lint:fix": "biome check . --write",
"test": "vitest run",
"test:dev": "cross-env TEST_MODE=dev vitest run",
"test:integrations": "vitest run integrations",
"test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run",
"test:watch": "vitest",
"typecheck": "tsc --noEmit"
}
}