mailgun.js
Advanced tools
Comparing version 3.3.1 to 3.3.2
@@ -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
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
1851361
3233