mailgun.js
Advanced tools
Comparing version 5.2.1 to 5.2.2
@@ -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 @@ |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1143017
2486
1880