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

mailgun.js

Package Overview
Dependencies
Maintainers
11
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mailgun.js - npm Package Compare versions

Comparing version 7.0.3 to 7.0.4

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Changelog

### [7.0.4](https://github.com/mailgun/mailgun.js/compare/v7.0.3...v7.0.4) (2022-07-07)
### Bug Fixes
* Message Data (one of text, html, template required) ([abd2862](https://github.com/mailgun/mailgun.js/commits/abd2862fcf36ca54d68dea14cb2b2658d33092ec))
### Other changes
* Add content to message data ([a878cc1](https://github.com/mailgun/mailgun.js/commits/a878cc1acb0b4ca441b100278ca0fd2b47d137e3))
* Add propetry for mime messages ([f701cfb](https://github.com/mailgun/mailgun.js/commits/f701cfb591f08dbb882953bb2b77131fae089bad))
* Fix build error ([c7fcb5e](https://github.com/mailgun/mailgun.js/commits/c7fcb5e05bd84fc6ef04589bde37846a11f9466d))
* Fix tests ([b4791c4](https://github.com/mailgun/mailgun.js/commits/b4791c4e746a97aec359635272c2b29cb956ab6f))
### [7.0.3](https://github.com/mailgun/mailgun.js/compare/v7.0.2...v7.0.3) (2022-06-30)

@@ -7,0 +22,0 @@

41

interfaces/Messages.d.ts

@@ -1,3 +0,30 @@

export declare type MailgunMessageData = {
/// <reference types="node" />
/**
* Ensures the object has least one key present and not undefined
*
* @see {@link https://stackoverflow.com/a/49725198}
*/
export declare type AtLeastOneKeyPresent<Object_, Keys extends keyof Object_ = keyof Object_> = Pick<Object_, Exclude<keyof Object_, Keys>> & {
[K in Keys]-?: Required<Pick<Object_, K>> & Partial<Pick<Object_, Exclude<Keys, K>>>;
}[Keys];
export declare type MailgunMessageContent = AtLeastOneKeyPresent<{
/**
* Body of the message. (text version)
*/
text?: string;
/**
* Body of the message. (HTML version)
*/
html?: string;
/**
* Body of the message. (MIME version)
*/
message?: string | Buffer | Blob;
/**
* Name of a template stored via [template API](https://documentation.mailgun.com/en/latest/api-templates.html#api-templates). See [Templates](https://documentation.mailgun.com/en/latest/user_manual.html#templating) for more information
*/
template?: string;
}>;
export declare type MailgunMessageData = MailgunMessageContent & {
/**
* Email address for `From` header

@@ -25,10 +52,2 @@ */

/**
* Body of the message. (text version)
*/
text?: string;
/**
* Body of the message. (HTML version)
*/
html?: string;
/**
* [AMP](https://developers.google.com/gmail/ampemail/) part of the message. Please follow google guidelines to compose and send AMP emails.

@@ -50,6 +69,2 @@ */

/**
* Name of a template stored via [template API](https://documentation.mailgun.com/en/latest/api-templates.html#api-templates). See [Templates](https://documentation.mailgun.com/en/latest/user_manual.html#templating) for more information
*/
template?: string;
/**
* Use this parameter to send a message to specific version of a template

@@ -56,0 +71,0 @@ */

@@ -17,2 +17,2 @@ /*!

/*! mailgun.js v7.0.2 */
/*! mailgun.js v7.0.3 */
/*! https://mths.be/base64 v1.0.0 by @mathias | MIT license */
/*! mailgun.js v7.0.2 */
/*! mailgun.js v7.0.3 */
{
"name": "mailgun.js",
"version": "7.0.3",
"version": "7.0.4",
"main": "./mailgun.node.js",

@@ -5,0 +5,0 @@ "browser": "./mailgun.web.js",

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

7.0.3
7.0.4

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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