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.2.0 to 3.2.1

2

dist/index.d.ts

@@ -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

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