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

api-cccucuta

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

api-cccucuta - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

1

index.js

@@ -8,5 +8,4 @@ var Client = require('./lib')

module.exports = {
comercio: comercio
}

13

lib/index.js
var moment = require('moment')
var logger = require('../logcamara')
var ws = require('ws.js')

@@ -19,3 +18,3 @@ var Http = ws.Http

}
/*
var logInfo = function(tramaReq,tramaRes) {

@@ -25,7 +24,7 @@ logger.info(moment(new Date()).format('DD/MM/YYYY/HH:mm:ss.SSS') +' (REQUEST) ' +tramaReq);

}
*/
Client.prototype._requestConsulta = function(ctx, callback) {
var handlers = [new Http()]
ws.send(handlers, ctx, function(result) {
logInfo(ctx.request,JSON.stringify(result))
//logInfo(ctx.request,JSON.stringify(result))
//console.log('go>>>',JSON.stringify(result))

@@ -86,3 +85,3 @@ var response = JSON.stringify(result.response)

logInfo(ctx.request,JSON.stringify(result))
//logInfo(ctx.request,JSON.stringify(result))
//console.log('go>>>',JSON.stringify(result))

@@ -114,6 +113,6 @@ var response = JSON.stringify(result.response)

logInfo(ctx.request,JSON.stringify(result))
//logInfo(ctx.request,JSON.stringify(result))
//console.log('go>>>',JSON.stringify(result))
var response = JSON.stringify(result.response)
var codigoError= response.split('error_codigo>')[1].split('<')[0]
var codigoError= response.split('erroconsoler_codigo>')[1].split('<')[0]
var msnError = response.split('error_descripcion>')[1].split('<')[0]

@@ -120,0 +119,0 @@

{
"name": "api-cccucuta",
"version": "1.0.3",
"version": "1.0.4",
"description": "API",

@@ -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