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

mailgun-js

Package Overview
Dependencies
Maintainers
1
Versions
80
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 0.12.0 to 0.12.1

package-lock.json

32

lib/mailgun.js

@@ -154,3 +154,3 @@ var tsscmp = require('tsscmp');

Mailgun.prototype.validate = function (address, private, opts, fn) {
Mailgun.prototype.validate = function (address, isPrivate, opts, fn) {
if (typeof opts === 'function') {

@@ -161,14 +161,14 @@ fn = opts;

if (typeof private === 'object') {
opts = private;
private = false;
if (typeof isPrivate === 'object') {
opts = isPrivate;
isPrivate = false;
}
if (typeof private === 'function') {
fn = private;
private = false;
if (typeof isPrivate === 'function') {
fn = isPrivate;
isPrivate = false;
opts = {};
}
var resource = private ? `/address/private/validate` : `/address/validate`;
var resource = isPrivate ? `/address/private/validate` : `/address/validate`;
var options = this.getRequestOptions(resource);

@@ -181,3 +181,3 @@

Mailgun.prototype.parse = function (addresses, private, opts, fn) {
Mailgun.prototype.parse = function (addresses, isPrivate, opts, fn) {
if (typeof opts === 'function') {

@@ -188,14 +188,14 @@ fn = opts;

if (typeof private === 'object') {
opts = private;
private = false;
if (typeof isPrivate === 'object') {
opts = isPrivate;
isPrivate = false;
}
if (typeof private === 'function') {
fn = private;
private = false;
if (typeof isPrivate === 'function') {
fn = isPrivate;
isPrivate = false;
opts = {};
}
var resource = private ? `/address/private/parse` : `/address/parse`;
var resource = isPrivate ? `/address/private/parse` : `/address/parse`;
var options = this.getRequestOptions(resource);

@@ -202,0 +202,0 @@

@@ -8,3 +8,3 @@ {

],
"version": "0.12.0",
"version": "0.12.1",
"homepage": "https://github.com/bojand/mailgun-js",

@@ -11,0 +11,0 @@ "license": "MIT",

@@ -325,3 +325,3 @@ # mailgun.js

Module works with Node-style callbacks, but also implements promises with the [Q](http://github.com/kriskowal/q) library.
Module works with Node-style callbacks, but also implements promises with the [promisify-call](https://www.npmjs.com/package/promisify-call) library.

@@ -328,0 +328,0 @@ ```js

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