Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 4 changed files Side-by-side Diff

lib/hit/dump-req-res.js
1 1 const MODULE_NAME = 'DUMP-REQ-RES';
2 2  
  3 +const querystring = require('querystring');
3 4 const fs = require('fs');
4 5 const path = require('path');
5 6 const fsPromise = require('fs').promises;
... ... @@ -52,6 +53,8 @@ ${
52 53 )
53 54 }
54 55  
  56 +${httpMethod === 'GET' ? '' : `FULL URL: ${endpointUrl}?${querystring.stringify(params)}`}
  57 +
55 58 RESPONSE-STATUS: ${responseStatus}
56 59 RESPONSE-BODY:
57 60 ${
lib/hit/prepaid-topup.js
... ... @@ -2,6 +2,7 @@ const MODULE_NAME = 'HIT.PREPAID-TOPUP';
2 2  
3 3 const axios = require('axios');
4 4 const urljoin = require('url-join');
  5 +const querystring = require('querystring');
5 6  
6 7 const config = require('komodo-sdk/config');
7 8 const logger = require('tektrans-logger');
... ... @@ -28,6 +29,13 @@ module.exports = async (xid, task) => {
28 29 };
29 30  
30 31 const endpointUrl = urljoin(config.partner.url, '/topup');
  32 + const fullEndpointUrl = urljoin(
  33 + endpointUrl,
  34 + [
  35 + '?',
  36 + querystring.stringify(params),
  37 + ],
  38 + );
31 39 let lastResponse = null;
32 40  
33 41 try {
... ... @@ -35,6 +43,7 @@ module.exports = async (xid, task) => {
35 43 xid,
36 44 endpointUrl,
37 45 params,
  46 + fullEndpointUrl,
38 47 });
39 48  
40 49 report(xid, {
1 1 {
2 2 "name": "komodo-gw-komodo-httpgetx",
3   - "version": "0.3.7",
  3 + "version": "0.3.8",
4 4 "lockfileVersion": 2,
5 5 "requires": true,
6 6 "packages": {
7 7 "": {
8 8 "name": "komodo-gw-komodo-httpgetx",
9   - "version": "0.3.7",
  9 + "version": "0.3.8",
10 10 "license": "ISC",
11 11 "dependencies": {
12 12 "axios": "^1.1.3",
1 1 {
2 2 "name": "komodo-gw-komodo-httpgetx",
3   - "version": "0.3.7",
  3 + "version": "0.3.8",
4 4 "description": "Komodo gateway to KOMODO HTTPGETX",
5 5 "main": "index.js",
6 6 "scripts": {