mercadopago
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -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" |
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
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
0
200226
75