mailgun.js
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -5,4 +5,4 @@ import Client from './lib/client'; | ||
private formData; | ||
constructor(FormData: FormData); | ||
constructor(FormData: new () => FormData); | ||
client(options: Options): Client; | ||
} |
@@ -28,3 +28,3 @@ import Request from './request'; | ||
ip_pools: IpPoolsClient; | ||
constructor(options: Options, formData: FormData); | ||
constructor(options: Options, formData: new () => FormData); | ||
} |
@@ -8,3 +8,3 @@ import RequestOptions from './interfaces/RequestOptions'; | ||
private formData; | ||
constructor(options: RequestOptions, formData: FormData); | ||
constructor(options: RequestOptions, formData: new () => FormData); | ||
request(method: string, url: string, options?: any): Promise<{ | ||
@@ -11,0 +11,0 @@ body: any; |
/*! MIT License © Sindre Sorhus */ | ||
/*! mailgun.js v3.2.0 */ | ||
/*! mailgun.js v3.2.1 */ |
@@ -5,5 +5,5 @@ import Client from './lib/client' | ||
export default class Mailgun { | ||
private formData: FormData | ||
private formData: new () => FormData | ||
constructor(FormData: FormData) { | ||
constructor(FormData: new () => FormData) { | ||
this.formData = FormData; | ||
@@ -10,0 +10,0 @@ } |
@@ -35,3 +35,3 @@ const defaults = require('lodash.defaults'); | ||
constructor(options: Options, formData: FormData) { | ||
constructor(options: Options, formData: new () => FormData) { | ||
let config: RequestOptions = { ...options } as RequestOptions; | ||
@@ -38,0 +38,0 @@ |
@@ -42,5 +42,5 @@ | ||
private headers: any; | ||
private formData: FormData; | ||
private formData: new () => FormData; | ||
constructor(options: RequestOptions, formData: FormData) { | ||
constructor(options: RequestOptions, formData: new () => FormData) { | ||
this.username = options.username; | ||
@@ -133,3 +133,3 @@ this.key = options.key; | ||
const formData: FormData = new (this.formData as any)(); | ||
const formData: FormData = new this.formData(); | ||
const params: any = { | ||
@@ -136,0 +136,0 @@ headers: { 'Content-Type': null } |
{ | ||
"name": "mailgun.js", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"main": "dist/mailgun.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
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
2210548