mercadopago
Advanced tools
Comparing version 1.5.8 to 1.5.9
@@ -23,2 +23,3 @@ var mercadopago = require('../../index'); | ||
mercadopago.payment.create(payment).then(function (data) { | ||
console.log("data = " + data) | ||
res.render('jsonOutput', { | ||
@@ -28,2 +29,3 @@ result: data | ||
}).catch(function (error) { | ||
console.log("error = " + error) | ||
res.render('500', { | ||
@@ -30,0 +32,0 @@ error: error |
@@ -342,2 +342,3 @@ var request = require('request'); | ||
if (response.statusCode < 200 || (response.statusCode >= 300 && response.statusCode !== 304)) { | ||
if (!body) body = {}; // We do this to avoid that we get an error when accessing a body object property. This way body.message would generate undefined. | ||
// Create a mercadopagoError allowing to retry the operation | ||
@@ -344,0 +345,0 @@ mpError = new MercadoPagoError(body.message, body.cause, response.statusCode, req.headers['x-idempotency-key'], |
{ | ||
"name": "mercadopago", | ||
"version": "1.5.8", | ||
"version": "1.5.9", | ||
"description": "Mercadopago SDK for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
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
2463838
188
8242
1