gmail-node-mailer
Advanced tools
Comparing version 1.8.66 to 1.9.0
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
var desc = Object.getOwnPropertyDescriptor(m, k); | ||
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { | ||
desc = { enumerable: true, get: function() { return m[k]; } }; | ||
} | ||
Object.defineProperty(o, k2, desc); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
@@ -7,1 +21,2 @@ exports.GmailMailer = void 0; | ||
Object.defineProperty(exports, "GmailMailer", { enumerable: true, get: function () { return GmailMailer_1.GmailMailer; } }); | ||
__exportStar(require("./types"), exports); |
{ | ||
"name": "gmail-node-mailer", | ||
"version": "1.8.66", | ||
"version": "1.9.0", | ||
"description": "gmail-node-mailer is a Node.js library for easy email sending via the Gmail API, featuring quick setup, HTML/plain text support, dynamic configuration for streamlined email integration, and now with support for attachments.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -179,8 +179,10 @@ /** | ||
} | ||
// Generate sender name from email if not provided | ||
if (!params.senderName) { | ||
const domainPart = senderEmail.substring(senderEmail.lastIndexOf("@") + 1); | ||
const rawSenderName = domainPart.substring(0, domainPart.lastIndexOf(".")); | ||
// Capitalize the first letter of the sender name | ||
params.senderName = rawSenderName.charAt(0).toUpperCase() + rawSenderName | ||
const rawSenderName = domainPart.substring(0, domainPart.indexOf('.')); | ||
params.senderName = rawSenderName.charAt(0).toUpperCase() + rawSenderName.slice(1) | ||
} | ||
const adjustedParams = { ...params, senderEmail }; | ||
@@ -187,0 +189,0 @@ |
// ./src/index.ts | ||
export { GmailMailer } from './GmailMailer'; | ||
export * from './types'; |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
44
107529
1581
5
1