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

mercadopago

Package Overview
Dependencies
Maintainers
4
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.0.1 to 1.0.2

22

lib/request-manager.js

@@ -149,3 +149,3 @@ var request = require('request');

return this.exec({
return requestManager.exec({
path: '/oauth/token',

@@ -169,3 +169,3 @@ method: 'POST',

});
}.bind(this));
});
};

@@ -191,3 +191,3 @@

return this.exec({
return requestManager.exec({
path: '/oauth/token',

@@ -209,3 +209,3 @@ method: 'POST',

});
}.bind(this));
});
};

@@ -224,3 +224,3 @@

return new Promise(function (resolve, reject) {
return this.exec({
return requestManager.exec({
path: '/oauth/token',

@@ -241,3 +241,3 @@ method: 'POST',

});
}.bind(this));
});
};

@@ -258,5 +258,5 @@

'user-agent': configurations.getUserAgent(),
accept: (options.headers && options.headers.accept) ? options.headers.accept : this.JSON_MIME_TYPE,
accept: (options.headers && options.headers.accept) ? options.headers.accept : requestManager.JSON_MIME_TYPE,
'content-type': (options.headers && options.headers['content-type'])
? options.headers['content-type'] : this.JSON_MIME_TYPE
? options.headers['content-type'] : requestManager.JSON_MIME_TYPE
};

@@ -271,3 +271,3 @@ req.qs = (options.config && options.config.qs) ? options.config.qs : {}; // Always set the querystring object

}
if (req.headers['content-type'] === this.JSON_MIME_TYPE) {
if (req.headers['content-type'] === requestManager.JSON_MIME_TYPE) {
// If there is a schema available, validate the payload before continue

@@ -310,3 +310,3 @@ if (options.schema) {

try {
req = this.buildRequest(options);
req = requestManager.buildRequest(options);
} catch (e) {

@@ -317,3 +317,3 @@ reject(e);

return this.REST_CLIENT(req, function (error, response, body) {
return requestManager.REST_CLIENT(req, function (error, response, body) {
if (error) {

@@ -320,0 +320,0 @@ // Create a mercadopagoError allowing to retry the operation

{
"name": "mercadopago",
"version": "1.0.1",
"version": "1.0.2",
"publishConfig": {

@@ -5,0 +5,0 @@ "tag": "beta"

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