+34
-5
@@ -1,6 +0,34 @@ | ||
| let mailparser = require("mailparser"); | ||
| //#region rolldown:runtime | ||
| var __create = Object.create; | ||
| var __defProp = Object.defineProperty; | ||
| var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
| var __getOwnPropNames = Object.getOwnPropertyNames; | ||
| var __getProtoOf = Object.getPrototypeOf; | ||
| var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
| var __copyProps = (to, from, except, desc) => { | ||
| if (from && typeof from === "object" || typeof from === "function") { | ||
| for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) { | ||
| key = keys[i]; | ||
| if (!__hasOwnProp.call(to, key) && key !== except) { | ||
| __defProp(to, key, { | ||
| get: ((k) => from[k]).bind(null, key), | ||
| enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable | ||
| }); | ||
| } | ||
| } | ||
| } | ||
| return to; | ||
| }; | ||
| var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { | ||
| value: mod, | ||
| enumerable: true | ||
| }) : target, mod)); | ||
| //#endregion | ||
| let postal_mime = require("postal-mime"); | ||
| postal_mime = __toESM(postal_mime); | ||
| let svix = require("svix"); | ||
| //#region package.json | ||
| var version = "6.9.1"; | ||
| var version = "6.9.2"; | ||
@@ -590,3 +618,4 @@ //#endregion | ||
| }; | ||
| const parsed = await (0, mailparser.simpleParser)(await rawResponse.text(), { skipImageLinks: true }); | ||
| const rawEmailContent = await rawResponse.text(); | ||
| const parsed = await postal_mime.default.parse(rawEmailContent, { attachmentEncoding: "base64" }); | ||
| const attachments = parsed.attachments.map((attachment) => { | ||
@@ -596,4 +625,4 @@ const contentId = attachment.contentId ? attachment.contentId.replace(/^<|>$/g, "") : void 0; | ||
| filename: attachment.filename, | ||
| content: attachment.content.toString("base64"), | ||
| content_type: attachment.contentType, | ||
| content: attachment.content.toString(), | ||
| content_type: attachment.mimeType, | ||
| content_id: contentId || void 0 | ||
@@ -600,0 +629,0 @@ }; |
+11
-14
@@ -712,2 +712,4 @@ import * as React$1 from "react"; | ||
| * @deprecated Use `segments` instead to add one or more segments to the new contact | ||
| * | ||
| * @see https://resend.com/docs/dashboard/segments/migrating-from-audiences-to-segments | ||
| */ | ||
@@ -720,4 +722,2 @@ audienceId: string; | ||
| properties?: CreateContactPropertiesOptions; | ||
| segments?: never; | ||
| topics?: never; | ||
| } | ||
@@ -737,6 +737,2 @@ interface CreateContactOptions { | ||
| }[]; | ||
| /** | ||
| * @deprecated Use `segments` instead to add one or more segments to the new contact | ||
| */ | ||
| audienceId?: never; | ||
| } | ||
@@ -1069,7 +1065,7 @@ interface CreateContactRequestOptions extends PostOptions {} | ||
| id: string; | ||
| filename: string; | ||
| filename: string | null; | ||
| size: number; | ||
| content_type: string; | ||
| content_id: string; | ||
| content_disposition: string; | ||
| content_id: string | null; | ||
| content_disposition: string | null; | ||
| }>; | ||
@@ -1158,3 +1154,4 @@ } | ||
| constructor(resend: Resend); | ||
| create(payload: CreateContactOptions | LegacyCreateContactOptions, options?: CreateContactRequestOptions): Promise<CreateContactResponse>; | ||
| create(paylaod: CreateContactOptions, options?: CreateContactRequestOptions): Promise<CreateContactResponse>; | ||
| create(paylaod: LegacyCreateContactOptions, options?: CreateContactRequestOptions): Promise<CreateContactResponse>; | ||
| list(options?: ListContactsOptions): Promise<ListContactsResponse>; | ||
@@ -1403,3 +1400,3 @@ get(options: GetContactOptions): Promise<GetContactResponse>; | ||
| description?: string; | ||
| defaultSubscription: 'opt_in' | 'opt_out'; | ||
| default_subscription: 'opt_in' | 'opt_out'; | ||
| created_at: string; | ||
@@ -1489,6 +1486,6 @@ } | ||
| id: string; | ||
| filename: string; | ||
| filename: string | null; | ||
| content_type: string; | ||
| content_disposition: string; | ||
| content_id?: string; | ||
| content_disposition: string | null; | ||
| content_id: string | null; | ||
| } | ||
@@ -1495,0 +1492,0 @@ interface ReceivedEmailEventData { |
+11
-14
@@ -712,2 +712,4 @@ import * as React$1 from "react"; | ||
| * @deprecated Use `segments` instead to add one or more segments to the new contact | ||
| * | ||
| * @see https://resend.com/docs/dashboard/segments/migrating-from-audiences-to-segments | ||
| */ | ||
@@ -720,4 +722,2 @@ audienceId: string; | ||
| properties?: CreateContactPropertiesOptions; | ||
| segments?: never; | ||
| topics?: never; | ||
| } | ||
@@ -737,6 +737,2 @@ interface CreateContactOptions { | ||
| }[]; | ||
| /** | ||
| * @deprecated Use `segments` instead to add one or more segments to the new contact | ||
| */ | ||
| audienceId?: never; | ||
| } | ||
@@ -1069,7 +1065,7 @@ interface CreateContactRequestOptions extends PostOptions {} | ||
| id: string; | ||
| filename: string; | ||
| filename: string | null; | ||
| size: number; | ||
| content_type: string; | ||
| content_id: string; | ||
| content_disposition: string; | ||
| content_id: string | null; | ||
| content_disposition: string | null; | ||
| }>; | ||
@@ -1158,3 +1154,4 @@ } | ||
| constructor(resend: Resend); | ||
| create(payload: CreateContactOptions | LegacyCreateContactOptions, options?: CreateContactRequestOptions): Promise<CreateContactResponse>; | ||
| create(paylaod: CreateContactOptions, options?: CreateContactRequestOptions): Promise<CreateContactResponse>; | ||
| create(paylaod: LegacyCreateContactOptions, options?: CreateContactRequestOptions): Promise<CreateContactResponse>; | ||
| list(options?: ListContactsOptions): Promise<ListContactsResponse>; | ||
@@ -1403,3 +1400,3 @@ get(options: GetContactOptions): Promise<GetContactResponse>; | ||
| description?: string; | ||
| defaultSubscription: 'opt_in' | 'opt_out'; | ||
| default_subscription: 'opt_in' | 'opt_out'; | ||
| created_at: string; | ||
@@ -1489,6 +1486,6 @@ } | ||
| id: string; | ||
| filename: string; | ||
| filename: string | null; | ||
| content_type: string; | ||
| content_disposition: string; | ||
| content_id?: string; | ||
| content_disposition: string | null; | ||
| content_id: string | null; | ||
| } | ||
@@ -1495,0 +1492,0 @@ interface ReceivedEmailEventData { |
+6
-5
@@ -1,6 +0,6 @@ | ||
| import { simpleParser } from "mailparser"; | ||
| import PostalMime from "postal-mime"; | ||
| import { Webhook } from "svix"; | ||
| //#region package.json | ||
| var version = "6.9.1"; | ||
| var version = "6.9.2"; | ||
@@ -590,3 +590,4 @@ //#endregion | ||
| }; | ||
| const parsed = await simpleParser(await rawResponse.text(), { skipImageLinks: true }); | ||
| const rawEmailContent = await rawResponse.text(); | ||
| const parsed = await PostalMime.parse(rawEmailContent, { attachmentEncoding: "base64" }); | ||
| const attachments = parsed.attachments.map((attachment) => { | ||
@@ -596,4 +597,4 @@ const contentId = attachment.contentId ? attachment.contentId.replace(/^<|>$/g, "") : void 0; | ||
| filename: attachment.filename, | ||
| content: attachment.content.toString("base64"), | ||
| content_type: attachment.contentType, | ||
| content: attachment.content.toString(), | ||
| content_type: attachment.mimeType, | ||
| content_id: contentId || void 0 | ||
@@ -600,0 +601,0 @@ }; |
+2
-2
| { | ||
| "name": "resend", | ||
| "version": "6.9.1", | ||
| "version": "6.9.2", | ||
| "description": "Node.js library for the Resend API", | ||
@@ -43,3 +43,3 @@ "main": "./dist/index.cjs", | ||
| "dependencies": { | ||
| "mailparser": "3.9.1", | ||
| "postal-mime": "2.7.3", | ||
| "svix": "1.84.1" | ||
@@ -46,0 +46,0 @@ }, |
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
189826
0.66%2015
1.46%+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed