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

msem-api-lib

Package Overview
Dependencies
Maintainers
9
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

msem-api-lib - npm Package Compare versions

Comparing version 1.3.4 to 1.3.5

14

mail/index.js

@@ -19,2 +19,5 @@ "use strict";

global.DOMParser = _xmldom.DOMParser;
const {
Readable
} = require("stream");
const btoa = str => {

@@ -77,4 +80,11 @@ const buf = Buffer.from(str, "utf-8");

});
Seq(attachment).forEach(path => {
body.append("attachment", _fs.default.createReadStream(path));
Seq(attachment).forEach(item => {
if (typeof item === "object") {
body.append("attachment", Readable.from(item.data), {
filename: item.filename
});
}
if (typeof item === "string") {
body.append("attachment", _fs.default.createReadStream(item));
}
});

@@ -81,0 +91,0 @@ const response = await (0, _nodeFetch.default)(`https://${config.host}/v3/${config.domain}/messages`, {

2

package.json
{
"name": "msem-api-lib",
"version": "1.3.4",
"version": "1.3.5",
"scripts": {

@@ -5,0 +5,0 @@ "build:lib": "babel ./src -x '.js,.ts,.tsx' -d .",

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