+7
-3
| let svix = require("svix"); | ||
| //#region package.json | ||
| var version = "6.5.1"; | ||
| var version = "6.5.2-batch.0"; | ||
@@ -103,3 +103,4 @@ //#endregion | ||
| } | ||
| return await this.resend.post("/emails/batch", emails, { | ||
| const endpoint = (typeof process !== "undefined" && process.env ? process.env.RESEND_EXPERIMENTAL_BATCH !== "false" && process.env.RESEND_EXPERIMENTAL_BATCH !== "0" : true) ? "/experimental/emails/batch" : "/emails/batch"; | ||
| return await this.resend.post(endpoint, emails, { | ||
| ...options, | ||
@@ -438,3 +439,6 @@ headers: { | ||
| custom_return_path: domain.customReturnPath, | ||
| capabilities: domain.capabilities | ||
| capabilities: domain.capabilities, | ||
| open_tracking: domain.openTracking, | ||
| click_tracking: domain.clickTracking, | ||
| tls: domain.tls | ||
| }; | ||
@@ -441,0 +445,0 @@ } |
+17
-24
@@ -66,25 +66,9 @@ import * as React$1 from "react"; | ||
| capabilities?: Partial<DomainCapabilities>; | ||
| open_tracking?: boolean; | ||
| click_tracking?: boolean; | ||
| tls?: 'enforced' | 'opportunistic'; | ||
| } | ||
| //#endregion | ||
| //#region src/interfaces.d.ts | ||
| declare const RESEND_ERROR_CODES_BY_KEY: { | ||
| readonly missing_required_field: 422; | ||
| readonly invalid_idempotency_key: 400; | ||
| readonly invalid_idempotent_request: 409; | ||
| readonly concurrent_idempotent_requests: 409; | ||
| readonly invalid_access: 422; | ||
| readonly invalid_parameter: 422; | ||
| readonly invalid_region: 422; | ||
| readonly rate_limit_exceeded: 429; | ||
| readonly missing_api_key: 401; | ||
| readonly invalid_api_key: 403; | ||
| readonly suspended_api_key: 403; | ||
| readonly invalid_from_address: 403; | ||
| readonly validation_error: 403; | ||
| readonly not_found: 404; | ||
| readonly method_not_allowed: 405; | ||
| readonly application_error: 500; | ||
| readonly internal_server_error: 500; | ||
| }; | ||
| type RESEND_ERROR_CODE_KEY = keyof typeof RESEND_ERROR_CODES_BY_KEY; | ||
| type RESEND_ERROR_CODE_KEY = 'missing_required_field' | 'invalid_idempotency_key' | 'invalid_idempotent_request' | 'concurrent_idempotent_requests' | 'invalid_access' | 'invalid_parameter' | 'invalid_region' | 'rate_limit_exceeded' | 'missing_api_key' | 'invalid_api_key' | 'suspended_api_key' | 'invalid_from_address' | 'validation_error' | 'not_found' | 'method_not_allowed' | 'application_error' | 'internal_server_error'; | ||
| type Response<T> = ({ | ||
@@ -567,4 +551,4 @@ data: T; | ||
| email: string; | ||
| first_name?: string; | ||
| last_name?: string; | ||
| first_name: string | null; | ||
| last_name: string | null; | ||
| unsubscribed: boolean; | ||
@@ -671,4 +655,10 @@ } | ||
| unsubscribed?: boolean; | ||
| firstName?: string; | ||
| lastName?: string; | ||
| /** | ||
| * Use `null` to clear the `firstName` | ||
| */ | ||
| firstName?: string | null; | ||
| /** | ||
| * Use `null` to clear the `lastName` | ||
| */ | ||
| lastName?: string | null; | ||
| properties?: UpdateContactPropertiesOptions; | ||
@@ -687,2 +677,5 @@ } & SelectingField; | ||
| capabilities?: Partial<DomainCapabilities>; | ||
| openTracking?: boolean; | ||
| clickTracking?: boolean; | ||
| tls?: 'enforced' | 'opportunistic'; | ||
| } | ||
@@ -689,0 +682,0 @@ interface CreateDomainRequestOptions extends PostOptions {} |
+17
-24
@@ -66,25 +66,9 @@ import * as React$1 from "react"; | ||
| capabilities?: Partial<DomainCapabilities>; | ||
| open_tracking?: boolean; | ||
| click_tracking?: boolean; | ||
| tls?: 'enforced' | 'opportunistic'; | ||
| } | ||
| //#endregion | ||
| //#region src/interfaces.d.ts | ||
| declare const RESEND_ERROR_CODES_BY_KEY: { | ||
| readonly missing_required_field: 422; | ||
| readonly invalid_idempotency_key: 400; | ||
| readonly invalid_idempotent_request: 409; | ||
| readonly concurrent_idempotent_requests: 409; | ||
| readonly invalid_access: 422; | ||
| readonly invalid_parameter: 422; | ||
| readonly invalid_region: 422; | ||
| readonly rate_limit_exceeded: 429; | ||
| readonly missing_api_key: 401; | ||
| readonly invalid_api_key: 403; | ||
| readonly suspended_api_key: 403; | ||
| readonly invalid_from_address: 403; | ||
| readonly validation_error: 403; | ||
| readonly not_found: 404; | ||
| readonly method_not_allowed: 405; | ||
| readonly application_error: 500; | ||
| readonly internal_server_error: 500; | ||
| }; | ||
| type RESEND_ERROR_CODE_KEY = keyof typeof RESEND_ERROR_CODES_BY_KEY; | ||
| type RESEND_ERROR_CODE_KEY = 'missing_required_field' | 'invalid_idempotency_key' | 'invalid_idempotent_request' | 'concurrent_idempotent_requests' | 'invalid_access' | 'invalid_parameter' | 'invalid_region' | 'rate_limit_exceeded' | 'missing_api_key' | 'invalid_api_key' | 'suspended_api_key' | 'invalid_from_address' | 'validation_error' | 'not_found' | 'method_not_allowed' | 'application_error' | 'internal_server_error'; | ||
| type Response<T> = ({ | ||
@@ -567,4 +551,4 @@ data: T; | ||
| email: string; | ||
| first_name?: string; | ||
| last_name?: string; | ||
| first_name: string | null; | ||
| last_name: string | null; | ||
| unsubscribed: boolean; | ||
@@ -671,4 +655,10 @@ } | ||
| unsubscribed?: boolean; | ||
| firstName?: string; | ||
| lastName?: string; | ||
| /** | ||
| * Use `null` to clear the `firstName` | ||
| */ | ||
| firstName?: string | null; | ||
| /** | ||
| * Use `null` to clear the `lastName` | ||
| */ | ||
| lastName?: string | null; | ||
| properties?: UpdateContactPropertiesOptions; | ||
@@ -687,2 +677,5 @@ } & SelectingField; | ||
| capabilities?: Partial<DomainCapabilities>; | ||
| openTracking?: boolean; | ||
| clickTracking?: boolean; | ||
| tls?: 'enforced' | 'opportunistic'; | ||
| } | ||
@@ -689,0 +682,0 @@ interface CreateDomainRequestOptions extends PostOptions {} |
+7
-3
| import { Webhook } from "svix"; | ||
| //#region package.json | ||
| var version = "6.5.1"; | ||
| var version = "6.5.2-batch.0"; | ||
@@ -103,3 +103,4 @@ //#endregion | ||
| } | ||
| return await this.resend.post("/emails/batch", emails, { | ||
| const endpoint = (typeof process !== "undefined" && process.env ? process.env.RESEND_EXPERIMENTAL_BATCH !== "false" && process.env.RESEND_EXPERIMENTAL_BATCH !== "0" : true) ? "/experimental/emails/batch" : "/emails/batch"; | ||
| return await this.resend.post(endpoint, emails, { | ||
| ...options, | ||
@@ -438,3 +439,6 @@ headers: { | ||
| custom_return_path: domain.customReturnPath, | ||
| capabilities: domain.capabilities | ||
| capabilities: domain.capabilities, | ||
| open_tracking: domain.openTracking, | ||
| click_tracking: domain.clickTracking, | ||
| tls: domain.tls | ||
| }; | ||
@@ -441,0 +445,0 @@ } |
+14
-12
| { | ||
| "name": "resend", | ||
| "version": "6.5.1", | ||
| "version": "6.5.2-batch.0", | ||
| "description": "Node.js library for the Resend API", | ||
@@ -32,2 +32,13 @@ "main": "./dist/index.cjs", | ||
| }, | ||
| "scripts": { | ||
| "build": "tsdown src/index.ts --format esm,cjs --dts", | ||
| "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:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run", | ||
| "test:watch": "vitest", | ||
| "typecheck": "tsc --noEmit" | ||
| }, | ||
| "repository": { | ||
@@ -70,12 +81,3 @@ "type": "git", | ||
| }, | ||
| "scripts": { | ||
| "build": "tsdown src/index.ts --format esm,cjs --dts", | ||
| "lint": "biome check .", | ||
| "lint:fix": "biome check . --write", | ||
| "test": "vitest run", | ||
| "test:dev": "cross-env TEST_MODE=dev vitest run", | ||
| "test:record": "rimraf --glob \"**/__recordings__\" && cross-env TEST_MODE=record vitest run", | ||
| "test:watch": "vitest", | ||
| "typecheck": "tsc --noEmit" | ||
| } | ||
| } | ||
| "packageManager": "pnpm@10.18.2" | ||
| } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 5 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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
161933
0.46%1756
0.46%1
Infinity%31
24%