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

@coolgk/email

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coolgk/email - npm Package Compare versions

Comparing version 3.0.1 to 3.0.2

5

email.js

@@ -22,2 +22,3 @@ /*!

const string_1 = require("@coolgk/string");
const array_1 = require("@coolgk/array");
class Email {

@@ -33,7 +34,7 @@ constructor(options = { host: 'localhost' }) {

if (options[field]) {
options[field] = this._formatEmailAddress(field === 'from' ? [options[field]] : options[field]);
options[field] = this._formatEmailAddress(array_1.toArray(options[field]));
}
});
if (options.attachments) {
options.attachments.forEach((attachment) => {
array_1.toArray(options.attachments).forEach((attachment) => {
if (!attachment.name) {

@@ -40,0 +41,0 @@ attachment.name = path_1.basename(attachment.path);

2

package.json

@@ -1,1 +0,1 @@

{"name":"@coolgk/email","version":"3.0.1","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://github.com/coolgk/node-utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a email sender wrapper class","keywords":["email","smtp sender","typescript"],"dependencies":{"mime-types":"^2.1.17","emailjs":"^2.0.0","@coolgk/string":"^2","@types/mime-types":"^2.1.0"},"main":"./email.js","types":"./email.d.ts","license":"MIT"}
{"name":"@coolgk/email","version":"3.0.2","author":"Daniel Gong <daniel.k.gong@gmail.com>","homepage":"https://github.com/coolgk/node-utils","bugs":{"url":"https://github.com/coolgk/node-utils/issues"},"repository":{"type":"git","url":"https://github.com/coolgk/node-utils.git"},"description":"a email sender wrapper class","keywords":["email","smtp sender","typescript"],"dependencies":{"mime-types":"^2.1.17","emailjs":"^2.0.0","@coolgk/string":"^2","@coolgk/array":"^2","@types/mime-types":"^2.1.0"},"main":"./email.js","types":"./email.d.ts","license":"MIT"}
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