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

auth-net-request

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth-net-request - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

15

lib/index.js
var https = require('https')
, parser = require('xml2js')
, fs = require('fs');
, fs = require('fs')
, builder = new parser.Builder({headless: true});
module.exports = (function() {

@@ -37,2 +38,3 @@ var AuthorizeRequest = function(options) {

AuthorizeRequest.prototype.send = function(action, xml, options) {
xml = typeof xml == 'object' ? builder.buildObject(xml).replace('<root>', '').replace('</root>', '') : xml;
var callback = arguments[arguments.length - 1], string = ''

@@ -96,5 +98,8 @@ , originalValidationMode = this.validationMode; // In order to reset after the transaction

res.on('data', function(data) {
data = data.toString();
var data = "";
res.on('data', function(dataStream) {
data += dataStream.toString();
});
res.on('end', function () {
parser.parseString(data, {object: true, explicitArray: false}, function (err, response) {

@@ -141,2 +146,2 @@ if (response.ErrorResponse) {

return AuthorizeRequest;
})();
})();
{
"name": "auth-net-request",
"version": "2.1.0",
"version": "2.2.0",
"description": "Authorize.net requests 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