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

mailgun.js

Package Overview
Dependencies
Maintainers
9
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 5.2.1 to 5.2.2

10

CHANGELOG.md

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

### [5.2.2](https://github.com/mailgun/mailgun.js/compare/v5.2.1...v5.2.2) (2022-04-22)
### Bug Fixes
* Fix parsing of a response body with json data ([d57671f](https://github.com/mailgun/mailgun.js/commits/d57671f0b0af0c24e64684697e3f5d9001fa43cd))
* Update message type. Update readme file ([dd22ec0](https://github.com/mailgun/mailgun.js/commits/dd22ec0588b7ddcf04f2f96f6b109502446f766c))
* Update query parameter type for events get method ([1705a1f](https://github.com/mailgun/mailgun.js/commits/1705a1f34f855d53471548646dda44dbdd0d6338))
* Update response handler to support string response ([6e0f305](https://github.com/mailgun/mailgun.js/commits/6e0f3053e2ffe9dec25dd6fa8cfe19140be626ad))
### [5.2.1](https://github.com/mailgun/mailgun.js/compare/v5.2.0...v5.2.1) (2022-04-14)

@@ -7,0 +17,0 @@

6

events.d.ts

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

import { EventsList, EventsPage, EventsResponse, ParsedPagesList } from './interfaces/Events';
import { EventsList, EventsPage, EventsQuery, EventsResponse, ParsedPagesList } from './interfaces/Events';
import Request from './request';

@@ -10,5 +10,3 @@ export default class EventClient {

_parseEventList(response: EventsResponse): EventsList;
get(domain: string, query?: {
page: string;
}): Promise<EventsList>;
get(domain: string, query?: EventsQuery): Promise<EventsList>;
}

@@ -6,2 +6,23 @@ export interface EventsPage {

}
export interface FilterField {
event?: string;
list?: string;
attachment?: string;
from?: string;
'message-id'?: string;
subject?: string;
to?: string;
size?: string;
recipient?: string;
recipients?: string;
tags?: string;
severity?: string;
}
export interface EventsQuery extends FilterField {
page?: string;
begin?: string;
end?: string;
ascending?: 'yes' | 'no';
limit?: number;
}
export interface PagesList {

@@ -8,0 +29,0 @@ previous: string;

@@ -11,3 +11,3 @@ export declare type MailgunMessageData = {

*/
to?: string;
to?: string | string[];
/**

@@ -14,0 +14,0 @@ * Same as `To` but for `carbon copy`

@@ -5,2 +5,2 @@ /*! MIT License © Sindre Sorhus */

/*! mailgun.js v5.2.0 */
/*! mailgun.js v5.2.1 */

@@ -5,2 +5,2 @@ /*! MIT License © Sindre Sorhus */

/*! mailgun.js v5.2.0 */
/*! mailgun.js v5.2.1 */
{
"name": "mailgun.js",
"version": "5.2.1",
"version": "5.2.2",
"main": "./mailgun.node.js",

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

@@ -138,3 +138,5 @@ # Mailgun.js [![Build Status](https://travis-ci.org/mailgun/mailgun-js.svg)](https://travis-ci.org/mailgun/mailgun-js)

:---------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
to | Email address of the recipient(s). Example: "Bob <bob@host.com>". You can use commas to separate multiple recipients (e.g.: "test@example.com,test@example.com" or ["test@example.com", "test@example.com"]). Make sure to include all To, Cc and Bcc recipients of the message.
to | Email address of the recipient(s). Example: "Bob <bob@host.com>". You can use commas to separate multiple recipients (e.g.: "test@example.com,test@example.com" or ["test@example.com", "test@example.com"]).
cc | Same as `To` but for `carbon copy`
bcc | Same as `To` but for `blind carbon copy`
html | HTML version of the message.

@@ -141,0 +143,0 @@ text | Text version of the message.

@@ -14,2 +14,3 @@ import * as NodeFormData from 'form-data';

request(method: string, url: string, inputOptions?: any): Promise<APIResponse>;
private getResponseBody;
query(method: string, url: string, query: any, options?: any): Promise<APIResponse>;

@@ -16,0 +17,0 @@ command(method: string, url: string, data: any, options?: any): Promise<APIResponse>;

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

5.2.1
5.2.2

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