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.8.0 to 0.8.1

3

lib/request.js

@@ -285,3 +285,4 @@ var https = require('https');

var skipContentTypeCheck = res.req && res.req.path && res.req.path.match(/\/campaigns/);
if (chunks && !error && (skipContentTypeCheck || (res.headers['content-type'].indexOf('application/json') >= 0))) {
var isJSON = res.headers['content-type'] && res.headers['content-type'].indexOf('application/json') >= 0;
if (chunks && !error && (skipContentTypeCheck || isJSON)) {
try {

@@ -288,0 +289,0 @@ body = JSON.parse(chunks);

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

],
"version": "0.8.0",
"version": "0.8.1",
"homepage": "https://github.com/bojand/mailgun-js",

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

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

* `apiKey` - Your Mailgun API KEY
* `domain` - Your Mailgun Domain
* `domain` - Your Mailgun Domain (Please note: domain field is MY-DOMAIN-NAME.com, not https://api.mailgun.net/v3/MY-DOMAIN-NAME.com)
* `mute` - Set to `true` if you wish to mute the console error logs in `validateWebhook()` function

@@ -89,0 +89,0 @@ * `proxy` - The proxy URI in format `http[s]://[auth@]host:port`. ex: `'http://proxy.example.com:8080'`

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