New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gmail-node-mailer

Package Overview
Dependencies
Maintainers
1
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gmail-node-mailer - npm Package Compare versions

Comparing version 1.8.66 to 1.9.0

dist/config/emailConfig.d.ts

15

dist/index.js
"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);

2

package.json
{
"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';
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