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

mailgun.js

Package Overview
Dependencies
Maintainers
3
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 3.3.1 to 3.3.2

2

dist/index.d.ts

@@ -5,4 +5,4 @@ import Client from './lib/client';

private formData;
constructor(FormData: new () => FormData);
constructor(FormData: new (...args: any[]) => FormData);
client(options: Options): Client;
}

@@ -28,3 +28,3 @@ import Request from './request';

ip_pools: IpPoolsClient;
constructor(options: Options, formData: new () => FormData);
constructor(options: Options, formData: new (...args: any[]) => FormData);
}
/*! MIT License © Sindre Sorhus */
/*! mailgun.js v3.3.1 */
/*! mailgun.js v3.3.2 */

@@ -7,3 +7,3 @@ import Client from './lib/client'

constructor(FormData: new () => FormData) {
constructor(FormData: new (...args: any[]) => FormData) {
this.formData = FormData;

@@ -10,0 +10,0 @@ }

@@ -33,3 +33,3 @@ import Request from './request';

constructor(options: Options, formData: new () => FormData) {
constructor(options: Options, formData: new (...args: any[]) => FormData) {
const config: RequestOptions = { ...options } as RequestOptions;

@@ -36,0 +36,0 @@

@@ -165,3 +165,3 @@

});
} else {
} else if (data[key] != null) {
formData.append(key, data[key]);

@@ -187,2 +187,2 @@ }

export default Request
export default Request
{
"name": "mailgun.js",
"version": "3.3.1",
"version": "3.3.2",
"main": "dist/mailgun.js",

@@ -5,0 +5,0 @@ "types": "dist/index.d.ts",

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

NOTE: startinf from version 3.0 you need to pass FormData (we need this to keep library universal). For node.js you can use `form-data` library.
NOTE: starting from version 3.0 you need to pass FormData (we need this to keep library universal). For node.js you can use `form-data` library.

@@ -599,3 +599,3 @@ ```js

| resolution | Can be either ``hour``, ``day`` or ``month``. Default: ``day`` |
| duration | Period of time with resoluton encoded. If provided, overwrites the start date. See list below. |
| duration | Period of time with resolution encoded. If provided, overwrites the start date. See list below. |

@@ -602,0 +602,0 @@ Duration is a string that represents a period of time with some resolution. It has a format `[0-9]+[m,d,h]` where

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

Sorry, the diff of this file is not supported yet

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