heimdall-api-platform 1.0.41 → 1.0.43

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/lib/clients/http-client.js +1 -1
  2. package/dist/lib/commons-cache.js +1 -1
  3. package/dist/lib/commons-const.js +1 -1
  4. package/dist/lib/commons-elasticsearch.js +1 -1
  5. package/dist/lib/commons-errors.js +1 -1
  6. package/dist/lib/commons-opensearch.js +1 -1
  7. package/dist/lib/commons-splunk.js +1 -1
  8. package/dist/lib/commons-util.js +1 -1
  9. package/dist/lib/default-routes-docs.js +1 -1
  10. package/dist/lib/default-routes-pos.js +1 -1
  11. package/dist/lib/default-routes-pre.js +1 -1
  12. package/dist/lib/environment.js +1 -1
  13. package/dist/lib/factory/api-gateway.js +1 -1
  14. package/dist/lib/factory/client-factory.js +1 -1
  15. package/dist/lib/factory/function-factory.js +1 -1
  16. package/dist/lib/factory/operation-flow-factory.js +1 -1
  17. package/dist/lib/factory/server-factory.js +1 -1
  18. package/dist/lib/factory/transformation-function-factory.js +1 -1
  19. package/dist/lib/handle-route.js +1 -1
  20. package/dist/lib/index.js +1 -1
  21. package/dist/lib/jwt-util.js +1 -1
  22. package/dist/lib/license/license-service.js +1 -1
  23. package/dist/lib/models/base-context.js +1 -1
  24. package/dist/lib/models/elastic-index-data.js +1 -1
  25. package/dist/lib/models/flow-context.js +1 -1
  26. package/dist/lib/models/flow-indexed.js +1 -1
  27. package/dist/lib/models/operation-function-indexed.js +1 -1
  28. package/dist/lib/models/operation-function-transformation-indexed.js +1 -1
  29. package/dist/lib/models/operation-http-indexed.js +1 -1
  30. package/dist/lib/models/operation-mock-indexed.js +1 -1
  31. package/dist/lib/models/route-context.js +1 -1
  32. package/dist/lib/models/security-route.js +1 -1
  33. package/dist/lib/models/service-context.js +1 -1
  34. package/dist/lib/models/service-group.js +1 -1
  35. package/dist/lib/models/service-route.js +1 -1
  36. package/dist/lib/models/splunk-data.js +1 -1
  37. package/dist/lib/operations/abstract-operation.js +1 -1
  38. package/dist/lib/operations/function.js +1 -1
  39. package/dist/lib/operations/http.js +1 -1
  40. package/dist/lib/operations/mock.js +1 -1
  41. package/dist/lib/operations/monitor-check.js +1 -1
  42. package/dist/lib/orchestration-flow.js +1 -1
  43. package/dist/lib/router.js +1 -1
  44. package/dist/lib/security-validation.js +1 -1
  45. package/dist/lib/services/server.js +1 -1
  46. package/dist/lib/services/template-monitorcheck-route.js +1 -1
  47. package/package.json +9 -8
@@ -1 +1 @@
1
- 'use strict';const _0x156fd3=_0x1867;function _0x1867(_0x8b8317,_0x2d4912){const _0x2c3cc5=_0x2c3c();return _0x1867=function(_0x1867bf,_0xbb9c9c){_0x1867bf=_0x1867bf-0xf5;let _0x8ae732=_0x2c3cc5[_0x1867bf];if(_0x1867['kdOuMV']===undefined){var _0x222cfa=function(_0x3966b4){const _0x99b887='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2687b9='',_0x202f33='';for(let _0x3e5dcb=0x0,_0x37bd0c,_0x41891d,_0x48aa74=0x0;_0x41891d=_0x3966b4['charAt'](_0x48aa74++);~_0x41891d&&(_0x37bd0c=_0x3e5dcb%0x4?_0x37bd0c*0x40+_0x41891d:_0x41891d,_0x3e5dcb++%0x4)?_0x2687b9+=String['fromCharCode'](0xff&_0x37bd0c>>(-0x2*_0x3e5dcb&0x6)):0x0){_0x41891d=_0x99b887['indexOf'](_0x41891d);}for(let _0x4408f3=0x0,_0x3dd9bf=_0x2687b9['length'];_0x4408f3<_0x3dd9bf;_0x4408f3++){_0x202f33+='%'+('00'+_0x2687b9['charCodeAt'](_0x4408f3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x202f33);};_0x1867['NyZHoj']=_0x222cfa,_0x8b8317=arguments,_0x1867['kdOuMV']=!![];}const _0x45d335=_0x2c3cc5[0x0],_0x5c0429=_0x1867bf+_0x45d335,_0x1df9b3=_0x8b8317[_0x5c0429];return!_0x1df9b3?(_0x8ae732=_0x1867['NyZHoj'](_0x8ae732),_0x8b8317[_0x5c0429]=_0x8ae732):_0x8ae732=_0x1df9b3,_0x8ae732;},_0x1867(_0x8b8317,_0x2d4912);}(function(_0x3532c0,_0x2cc784){const _0xdab6ca=_0x1867,_0x45a451=_0x3532c0();while(!![]){try{const _0x5a60f2=parseInt(_0xdab6ca(0x107))/0x1+parseInt(_0xdab6ca(0x112))/0x2+-parseInt(_0xdab6ca(0xf7))/0x3*(-parseInt(_0xdab6ca(0xff))/0x4)+-parseInt(_0xdab6ca(0xfd))/0x5*(parseInt(_0xdab6ca(0x110))/0x6)+parseInt(_0xdab6ca(0x10c))/0x7*(parseInt(_0xdab6ca(0xfa))/0x8)+parseInt(_0xdab6ca(0x108))/0x9+-parseInt(_0xdab6ca(0x105))/0xa*(parseInt(_0xdab6ca(0xf5))/0xb);if(_0x5a60f2===_0x2cc784)break;else _0x45a451['push'](_0x45a451['shift']());}catch(_0x24f4fc){_0x45a451['push'](_0x45a451['shift']());}}}(_0x2c3c,0x8f9ff));const path=require('path');function _0x2c3c(){const _0x2827ac=['zgvZy3jPChrPB24','mtfbteXyAxG','v09PrKy','nJi4odLwCen6Aeq','ywrKrMXVD0LUzM8','AKzXzKi','nta2ody0v2D4tgn2','BMfTzq','DKnRCu4','ndmWnti5nxbuvgrlsW','sgvHBhrOq2HLy2S','ngr4CejPuW','ChvZAa','Aw5MBW','CK9dzve','AgvHBhrOq2HLy2S','ywrKrMXVD0HLywX0Aa','nZaYodKZmhjZDvDqsq','Aw5MB0nOzwnR','odmWnJm3r3HxsM90','nJyZoteYou1HAvDRsa','AgvHBhrO','D3LrEKm','Bw9UAxrVCG','n1zeuvrbBq','Bwv0Ag9K','zMXVDW','rxjzEvq','nKDcBfjRsG','AgfZt3DUuhjVCgvYDhK','otK5mJaWzxPisu1t'];_0x2c3c=function(){return _0x2827ac;};return _0x2c3c();}class templateMonitorCheckRoute{constructor(_0x54c6d1,_0x329b36){const _0x30816c=_0x1867,_0x5d59e2={'WOiFF':'GET','wyQzC':_0x30816c(0x106),'jFqfB':_0x30816c(0xfc)};this[_0x30816c(0xfb)]=_0x54c6d1+_0x30816c(0xfe),this[_0x30816c(0x113)]=_0x329b36[_0x30816c(0x113)],this[_0x30816c(0x10d)]=_0x5d59e2[_0x30816c(0xf6)],this['route']=''+_0x54c6d1,this['flow']=[];_0x329b36[_0x30816c(0x111)]('healthCheck')&&this[_0x30816c(0x10e)]['push'](this['addFlowHealth'](_0x54c6d1,_0x329b36));;_0x329b36[_0x30816c(0x111)](_0x5d59e2[_0x30816c(0x10a)])&&(_0x5d59e2['jFqfB']===_0x5d59e2[_0x30816c(0xf9)]?this[_0x30816c(0x10e)][_0x30816c(0x100)](this[_0x30816c(0xf8)](_0x54c6d1,_0x329b36)):this[_0x30816c(0x10e)][_0x30816c(0x100)](this[_0x30816c(0xf8)](_0x1f6a25,_0x3905c0)));;}[_0x156fd3(0xf8)](_0x58d7e3,_0x304725){const _0xc63388=_0x156fd3,_0x4e7e9f={'InmSn':_0xc63388(0x101),'rOCeQ':_0xc63388(0x10b)};return{'resultVariable':_0x4e7e9f['InmSn'],'operation':{'clientName':_0x58d7e3,'path':_0x304725[_0xc63388(0x106)],'type':_0x4e7e9f[_0xc63388(0x102)]}};}[_0x156fd3(0x104)](_0x4887bf,_0x2b668f){const _0x2525ae=_0x156fd3,_0x2374ad={'ErYyT':'monitor'};return{'resultVariable':_0x2525ae(0x109),'operation':{'clientName':_0x4887bf,'path':_0x2b668f[_0x2525ae(0x103)],'type':_0x2374ad[_0x2525ae(0x10f)]}};}};module['exports']=templateMonitorCheckRoute;
1
+ 'use strict';function _0x4a60(_0x142a1b,_0x334b5d){_0x142a1b=_0x142a1b-0x18d;const _0x5a51b9=_0x5a51();let _0x4a6023=_0x5a51b9[_0x142a1b];if(_0x4a60['SYeOPX']===undefined){var _0x2aae44=function(_0x396dac){const _0x151438='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x478ccc='',_0x200e58='';for(let _0xf04fdb=0x0,_0x586ba4,_0x3959a9,_0x3872bf=0x0;_0x3959a9=_0x396dac['charAt'](_0x3872bf++);~_0x3959a9&&(_0x586ba4=_0xf04fdb%0x4?_0x586ba4*0x40+_0x3959a9:_0x3959a9,_0xf04fdb++%0x4)?_0x478ccc+=String['fromCharCode'](0xff&_0x586ba4>>(-0x2*_0xf04fdb&0x6)):0x0){_0x3959a9=_0x151438['indexOf'](_0x3959a9);}for(let _0x10d7c6=0x0,_0x27157d=_0x478ccc['length'];_0x10d7c6<_0x27157d;_0x10d7c6++){_0x200e58+='%'+('00'+_0x478ccc['charCodeAt'](_0x10d7c6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x200e58);};_0x4a60['wdTgLh']=_0x2aae44,_0x4a60['CNEWLs']={},_0x4a60['SYeOPX']=!![];}const _0xc82525=_0x5a51b9[0x0],_0x1515f1=_0x142a1b+_0xc82525,_0x1f87f1=_0x4a60['CNEWLs'][_0x1515f1];return!_0x1f87f1?(_0x4a6023=_0x4a60['wdTgLh'](_0x4a6023),_0x4a60['CNEWLs'][_0x1515f1]=_0x4a6023):_0x4a6023=_0x1f87f1,_0x4a6023;}const _0x4c56eb=_0x4a60;(function(_0x34dba0,_0xcf03c6){const _0x373a8e=_0x4a60,_0x325633=_0x34dba0();while(!![]){try{const _0x8b2c36=-parseInt(_0x373a8e(0x1ab))/0x1*(-parseInt(_0x373a8e(0x196))/0x2)+-parseInt(_0x373a8e(0x1b2))/0x3*(-parseInt(_0x373a8e(0x1aa))/0x4)+parseInt(_0x373a8e(0x1b1))/0x5*(-parseInt(_0x373a8e(0x1a3))/0x6)+-parseInt(_0x373a8e(0x1a6))/0x7+-parseInt(_0x373a8e(0x19b))/0x8+-parseInt(_0x373a8e(0x199))/0x9+parseInt(_0x373a8e(0x191))/0xa;if(_0x8b2c36===_0xcf03c6)break;else _0x325633['push'](_0x325633['shift']());}catch(_0x51138d){_0x325633['push'](_0x325633['shift']());}}}(_0x5a51,0x7eb8a));function _0x5a51(){const _0x400591=['r0rWv1u','ANfgyK4','Cgf0Aa','Bw9UAxrVCG','AgvHBhrOq2HLy2S','mZi1Ce9guurT','mJy0nJaWovPwwg9UDq','CM91Dgu','m3W4Fdr8mxW1Fdj8n3W2Fda','ywrKrMXVD0LUzM8','zMXVDW','mtKWody3mdbYtKjQA3i','v0PTAKG','rwLqquW','Bwv0Ag9K','AgfZt3DUuhjVCgvYDhK','ngj5A05LrG','z2Piywe','ywrKrMXVD0HLywX0Aa','nZq0mJy0ou9tzfjlBq','zgvZy3jPChrPB24','ndm2nZu3nKXKDuLwta','tMjgCMe','Aw5MB0nOzwnR','C0vbCu0','BMfTzq','Aw5MBW','r0vu','AgvHBhrO','ndy2mZjdwxL1DMm','sgvHBhrOq2HLy2S','uhfYzxK','ntK5nJiWn1btBgX3DW','zxHWB3j0CW','vMvxuwu','ChvZAa','nffACe9hsG','mJmXntmZsNPhq1zu'];_0x5a51=function(){return _0x400591;};return _0x5a51();}const path=require(_0x4c56eb(0x1ae));class templateMonitorCheckRoute{constructor(_0x3b750d,_0x16ea65){const _0x551161=_0x4c56eb,_0x122581={'GDpWU':_0x551161(0x18e),'NbFra':'GET','EiPAL':_0x551161(0x19d),'gjHaa':function(_0x53288e,_0x3d3589){return _0x53288e===_0x3d3589;},'YYJjz':_0x551161(0x1a5),'MvBkb':_0x551161(0x192)};this[_0x551161(0x19f)]=_0x3b750d+'HealthCheck',this[_0x551161(0x19a)]=_0x16ea65['description'],this[_0x551161(0x194)]=_0x551161(0x1a1),this[_0x551161(0x18d)]=''+_0x3b750d,this[_0x551161(0x190)]=[];_0x16ea65[_0x551161(0x195)](_0x551161(0x1b0))&&this[_0x551161(0x190)]['push'](this['addFlowHealth'](_0x3b750d,_0x16ea65));;if(_0x16ea65[_0x551161(0x195)](_0x122581[_0x551161(0x193)])){if(_0x122581[_0x551161(0x197)](_0x122581['YYJjz'],_0x122581['MvBkb'])){const _0x23f9e6=_0x122581[_0x551161(0x1ac)]['split']('|');let _0x477437=0x0;while(!![]){switch(_0x23f9e6[_0x477437++]){case'0':;continue;case'1':this[_0x551161(0x18d)]=''+_0x307a56;continue;case'2':_0x37ca62[_0x551161(0x195)](_0x551161(0x1b0))&&this[_0x551161(0x190)][_0x551161(0x1a9)](this[_0x551161(0x198)](_0x2ee5dd,_0x11d0b3));continue;case'3':this[_0x551161(0x19f)]=_0x29f7ba+_0x551161(0x1a4);continue;case'4':this[_0x551161(0x194)]=_0x122581[_0x551161(0x19c)];continue;case'5':this[_0x551161(0x190)]=[];continue;case'6':_0x437d72['hasOwnProperty'](_0x122581[_0x551161(0x193)])&&this['flow'][_0x551161(0x1a9)](this[_0x551161(0x18f)](_0x5bf09c,_0x3e97bd));continue;case'7':;continue;case'8':this['description']=_0x5259bd['description'];continue;}break;}}else this[_0x551161(0x190)][_0x551161(0x1a9)](this['addFlowInfo'](_0x3b750d,_0x16ea65));};}['addFlowInfo'](_0x5caca3,_0x4bceb9){const _0x2cf11b=_0x4c56eb,_0x507de9={'jqFbN':_0x2cf11b(0x1a0)};return{'resultVariable':_0x507de9[_0x2cf11b(0x1ad)],'operation':{'clientName':_0x5caca3,'path':_0x4bceb9[_0x2cf11b(0x19d)],'type':_0x2cf11b(0x1af)}};}[_0x4c56eb(0x198)](_0x321f4a,_0x17ec9b){const _0x290741=_0x4c56eb,_0x5d5af0={'VeWQe':_0x290741(0x1a2),'sEAqM':_0x290741(0x1af)};return{'resultVariable':_0x5d5af0[_0x290741(0x1a8)],'operation':{'clientName':_0x321f4a,'path':_0x17ec9b[_0x290741(0x1b0)],'type':_0x5d5af0[_0x290741(0x19e)]}};}};module[_0x4c56eb(0x1a7)]=templateMonitorCheckRoute;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "heimdall-api-platform",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "description": "",
5
5
  "main": "dist/lib/index.js",
6
6
  "license": "MIT",
@@ -9,8 +9,9 @@
9
9
  ],
10
10
  "scripts": {
11
11
  "prestart": "npm install",
12
- "test": "mocha --timeout 5000 'test/**/*.test.js'",
13
- "test:watch": "nodemon --exec 'npm test'",
12
+ "test": "jest",
13
+ "test:watch": "jest --watch",
14
+ "test:coverage": "jest --coverage",
14
15
  "clean": "rimraf dist",
15
16
  "start": "node server.js",
16
17
  "build": "npm run clean && node obfuscate-and-prepare.js",
@@ -41,20 +42,20 @@
41
42
  "cookie-parser": "^1.4.6",
42
43
  "cors": "^2.8.5",
43
44
  "dotenv": "^17.2.0",
44
- "express": "^4.18.2",
45
+ "express": "^5.2.1",
45
46
  "express-basic-auth": "^1.2.1",
46
47
  "express-throttle": "^2.0.0",
47
48
  "form-data": "^4.0.2",
48
- "helmet": "^7.0.0",
49
+ "helmet": "^8.1.0",
49
50
  "http-errors": "^2.0.0",
50
51
  "jsonwebtoken": "^9.0.1",
51
52
  "morgan": "^1.10.0",
52
- "multer": "^1.4.5-lts.1",
53
+ "multer": "^2.0.2",
53
54
  "node-cache": "^5.1.2",
54
55
  "object-hash": "^1.1.8",
55
56
  "pseudomap": "^1.0.2",
56
57
  "r7insight_node": "^3.3.1",
57
- "redis": "^3.1.2",
58
+ "redis": "^5.10.0",
58
59
  "redis-rate-limiter": "^1.2.0",
59
60
  "step": "^1.0.0",
60
61
  "underscore": "^1.9.1",
@@ -67,7 +68,7 @@
67
68
  "devDependencies": {
68
69
  "@vercel/ncc": "^0.38.3",
69
70
  "javascript-obfuscator": "^4.1.1",
70
- "mocha": "^11.1.0",
71
+ "jest": "^30.2.0",
71
72
  "nodemon": "^3.1.9",
72
73
  "rimraf": "^6.0.1"
73
74
  }