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

mailgun.js

Package Overview
Dependencies
Maintainers
7
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.1.0 to 5.2.0

7

CHANGELOG.md

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

## [5.2.0](https://github.com/mailgun/mailgun.js/compare/v5.1.0...v5.2.0) (2022-04-11)
### Features
* Add validation methods to mailing list client ([224790c](https://github.com/mailgun/mailgun.js/commits/224790c4c20466a2203856d703b51e7d4a03a195))
## [5.1.0](https://github.com/mailgun/mailgun.js/compare/v5.0.5...v5.1.0) (2022-04-08)

@@ -7,0 +14,0 @@

@@ -17,2 +17,46 @@ export interface ListsQuery {

}
export interface StartValidationResult {
status: number;
id: string;
message: string;
}
export interface ValidationResponse {
status: string;
download_url: {
csv: string;
json: string;
};
id: string;
quantity: number;
records_processed: number;
summary: {
result: {
catch_all: number;
deliverable: number;
do_not_send: number;
undeliverable: number;
unknown: number;
};
risk: {
high: number;
low: number;
medium: number;
unknown: number;
};
};
}
export interface ValidationApiResponse extends ValidationResponse {
created_at: number;
}
export interface ValidationResultData extends ValidationResponse {
created_at: Date;
}
export interface ValidationResult {
status: number;
validationResult: ValidationResultData;
}
export interface CancelValidationResult {
status: number;
message: string;
}
export interface MailingList {

@@ -19,0 +63,0 @@ access_level: string;

6

lists.d.ts
import Request from './request';
import { ListsQuery, CreateUpdateList, DestroyedList, MailingList } from './interfaces/lists';
import { ListsQuery, CreateUpdateList, DestroyedList, MailingList, StartValidationResult, ValidationResult, CancelValidationResult } from './interfaces/lists';
import { IMailListsMembers } from './interfaces/mailListMembers';

@@ -9,2 +9,3 @@ export default class ListsClient {

constructor(request: Request, members: IMailListsMembers);
private parseValidationResult;
list(query?: ListsQuery): Promise<MailingList[]>;

@@ -15,2 +16,5 @@ get(mailListAddress: string): Promise<MailingList>;

destroy(mailListAddress: string): Promise<DestroyedList>;
validate(mailListAddress: string): Promise<StartValidationResult>;
validationResult(mailListAddress: string): Promise<ValidationResult>;
cancelValidation(mailListAddress: string): Promise<CancelValidationResult>;
}

2

mailgun.node.js.LICENSE.txt

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

/*! mailgun.js v5.0.5 */
/*! mailgun.js v5.1.0 */

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

/*! mailgun.js v5.0.5 */
/*! mailgun.js v5.1.0 */
{
"name": "mailgun.js",
"version": "5.1.0",
"version": "5.2.0",
"main": "./mailgun.node.js",

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

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

5.1.0
5.2.0

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