@ahmedayob/email-toolkit
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -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 }; |
@@ -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 @@ |
{ | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
85480
1722