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

mercadopago

Package Overview
Dependencies
Maintainers
12
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mercadopago - npm Package Compare versions

Comparing version 1.5.8 to 1.5.9

testeteste.js

2

examples/payment/create.js

@@ -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'],

2

package.json
{
"name": "mercadopago",
"version": "1.5.8",
"version": "1.5.9",
"description": "Mercadopago SDK for Node.js",

@@ -5,0 +5,0 @@ "main": "index.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