Comparing version 0.4.3 to 0.5.0
@@ -65,3 +65,3 @@ // | ||
return { | ||
host: 'mailgun.net', | ||
host: 'api.mailgun.net', | ||
port: 443, | ||
@@ -94,15 +94,10 @@ method: method, | ||
// Flexible argument magic! | ||
// Flexible argument magic | ||
var args = Array.prototype.slice.call(arguments, 4); | ||
// Pluck servername. | ||
if (args.length && typeof args[0] == 'string') | ||
servername = args.shift() || servername; | ||
// Pluck options. | ||
if (args.length && typeof args[0] == 'object') | ||
options = args.shift() || options; | ||
// Pluck callback. | ||
if (args.length && typeof args[0] == 'function') | ||
callback = args.shift() || callback; | ||
// Don't be messy. | ||
delete args; | ||
@@ -109,0 +104,0 @@ // We allow recipients to be passed as either a string or an array, |
{ | ||
"name": "mailgun", | ||
"version": "0.4.3", | ||
"version": "0.5.0", | ||
"description": "Mailgun for Node.js", | ||
@@ -5,0 +5,0 @@ "author": "shz", |
@@ -0,0 +0,0 @@ # node-mailgun |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18889
1
259