Compare View

switch
from
...
to
 
Commits (2)

Changes

Showing 3 changed files Side-by-side Diff

lib/command-handler/inquiry.js
1 1 const moment = require('moment');
2 2  
  3 +const uniqid = require('uniqid');
3 4 const commandError = require('./error');
4 5 const coreapi = require('../coreapi');
5 6  
... ... @@ -31,7 +32,7 @@ function execute(tokens, params, cb) {
31 32 product_name: tokens[1].trim().toUpperCase(),
32 33 destination: tokens[2].trim().replace(/^\+62/, '0'),
33 34 terminal_password: tokens[3],
34   - request_id: `${generateRequestId(tokens[1], tokens[2])}${Number(tokens[4]) ? '_req' + Number(tokens[4]) : ''}`,
  35 + request_id: `${generateRequestId(tokens[1], tokens[2])}${Number(tokens[4]) ? `_req${Number(tokens[4])}` : `_rnd_${uniqid()}`}`,
35 36 };
36 37  
37 38 coreapi(coreEndpoint, coreParams, 'GET', cb);
1 1 {
2 2 "name": "komodo-center-messaging",
3   - "version": "0.13.2",
  3 + "version": "0.13.3",
4 4 "lockfileVersion": 1,
5 5 "requires": true,
6 6 "dependencies": {
... ... @@ -2439,7 +2439,7 @@
2439 2439 "basic-auth": "^2.0.0",
2440 2440 "body-parser": "^1.18.2",
2441 2441 "dot-object": "^1.7.0",
2442   - "express": "^4.16.3",
  2442 + "express": "^4.17.1",
2443 2443 "express-session": "^1.15.6",
2444 2444 "fs-copy-file": "^2.1.2",
2445 2445 "json-query": "^2.2.2",
... ... @@ -2449,7 +2449,7 @@
2449 2449 "node-machine-id": "^1.1.10",
2450 2450 "node-natural-sort": "^0.8.6",
2451 2451 "numeral": "^2.0.6",
2452   - "nunjucks": "^3.2.0",
  2452 + "nunjucks": "^3.2.1",
2453 2453 "pkginfo": "^0.4.1",
2454 2454 "redis": "^2.8.0",
2455 2455 "request": "^2.88.0",
... ... @@ -2462,6 +2462,16 @@
2462 2462 "winston": "^3.2.1",
2463 2463 "winston-circular-buffer": "^1.0.0",
2464 2464 "winston-daily-rotate-file": "^3.10.0"
  2465 + },
  2466 + "dependencies": {
  2467 + "uniqid": {
  2468 + "version": "4.1.1",
  2469 + "resolved": "https://registry.npmjs.org/uniqid/-/uniqid-4.1.1.tgz",
  2470 + "integrity": "sha1-iSIN32t1GuUrX3JISGNShZa7hME=",
  2471 + "requires": {
  2472 + "macaddress": "^0.2.8"
  2473 + }
  2474 + }
2465 2475 }
2466 2476 },
2467 2477 "kuler": {
... ... @@ -4066,12 +4076,9 @@
4066 4076 }
4067 4077 },
4068 4078 "uniqid": {
4069   - "version": "4.1.1",
4070   - "resolved": "https://registry.npmjs.org/uniqid/-/uniqid-4.1.1.tgz",
4071   - "integrity": "sha1-iSIN32t1GuUrX3JISGNShZa7hME=",
4072   - "requires": {
4073   - "macaddress": "^0.2.8"
4074   - }
  4079 + "version": "5.2.0",
  4080 + "resolved": "https://registry.npmjs.org/uniqid/-/uniqid-5.2.0.tgz",
  4081 + "integrity": "sha512-LH8zsvwJ/GL6YtNfSOmMCrI9piraAUjBfw2MCvleNE6a4pVKJwXjG2+HWhkVeFcSg+nmaPKbMrMOoxwQluZ1Mg=="
4075 4082 },
4076 4083 "unpipe": {
4077 4084 "version": "1.0.0",
1 1 {
2 2 "name": "komodo-center-messaging",
3   - "version": "0.13.2",
  3 + "version": "0.13.3",
4 4 "description": "Komodo Common Messaging Center",
5 5 "main": "index.js",
6 6 "scripts": {
... ... @@ -28,6 +28,7 @@
28 28 "natural-compare-lite": "^1.4.0",
29 29 "redis": "^2.8.0",
30 30 "request": "^2.88.0",
  31 + "uniqid": "^5.2.0",
31 32 "yargs": "^13.2.4"
32 33 },
33 34 "devDependencies": {