+4
-2
| 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 @@ } |
+34
-1
@@ -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 { |
+34
-1
@@ -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 { |
+4
-2
| 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 @@ } |
+17
-19
| { | ||
| "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" | ||
| } | ||
| } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
172722
1.49%1758
0.23%