api-cccucuta
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -8,5 +8,4 @@ var Client = require('./lib') | ||
module.exports = { | ||
comercio: comercio | ||
} |
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", |
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
238
13087