Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ahmedayob/email-toolkit

Package Overview
Dependencies
Maintainers
0
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ahmedayob/email-toolkit - npm Package Compare versions

Comparing version 0.1.10 to 0.1.11

13

dist/index.d.ts

@@ -542,8 +542,2 @@ import z, { z as z$1 } from 'zod';

/**
* Encodes the message body in Base64 format.
*
* @returns {string} The encoded message body.
*/
getEncodedMessageBody(): string;
/**
* Generates the signature block for the email.

@@ -555,11 +549,4 @@ *

getSignature({ from, url, name }: GetSignatureType): string[];
/**
* Formats the message body and encodes it in Base64.
*
* @private
* @returns {string} The formatted and encoded message body.
*/
private formatMessageBody;
}
export { type AddMessageType, type ApplicationSignature, type AttachmentContentType, AttachmentHeaderSchema, type AttachmentType, type AttachmentTypeType, Base64, CharsetType, CharsetTypeSchema, type ContentDispositionType, ContentTransferEncoding, ContentTransferEncodingSchema, ContentTypeSchema, EmailBuilder, type EmailBuilderClass, EmailBuilderHeader, EmailBuilderHeaderClass, EmailError, type EmailErrorInterface, type EmailType, type EmailTypeString, EmailValidator, EmailValidatorClass, type ExcludedHeadernameType, type GetSignatureType, type HeadernameType, type HeadersType, HeadersTypeSchema, type HeaderskeyNameType, type MIMEType, MIMETypes, type RawMessage, type SetHeaderType, StringSchema, type TupleUnion, type ValueType };

20

dist/index.js

@@ -176,3 +176,2 @@ "use strict";

getRawMessage(headers, attachments) {
const MessageBody = this.formatMessageBody();
if (!this.messagebody) {

@@ -194,3 +193,3 @@ return new EmailError({

``,
`${MessageBody}`,
`${this.messagebody}`,
``,

@@ -248,10 +247,2 @@ `</div>`,

/**
* Encodes the message body in Base64 format.
*
* @returns {string} The encoded message body.
*/
getEncodedMessageBody() {
return this.formatMessageBody();
}
/**
* Generates the signature block for the email.

@@ -273,11 +264,2 @@ *

}
/**
* Formats the message body and encodes it in Base64.
*
* @private
* @returns {string} The formatted and encoded message body.
*/
formatMessageBody() {
return Base64.encodeToBase64(this.messagebody);
}
};

@@ -284,0 +266,0 @@

2

package.json
{
"name": "@ahmedayob/email-toolkit",
"version": "0.1.10",
"version": "0.1.11",
"main": "index.js",

@@ -5,0 +5,0 @@ "module": "dist/index.mjs",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc