@maka/maka-cli 4.8.4 → 4.8.5

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 (147) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  25. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  26. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/_index.js +1 -1
  29. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/play.command.js +1 -1
  31. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  66. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  67. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/generate.js +1 -1
  69. package/bundle/obf/src/commands/get/_index.js +1 -1
  70. package/bundle/obf/src/commands/get/get.command.js +1 -1
  71. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  72. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  73. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/help.js +1 -1
  75. package/bundle/obf/src/commands/install.js +1 -1
  76. package/bundle/obf/src/commands/jsdoc.js +1 -1
  77. package/bundle/obf/src/commands/lint.js +1 -1
  78. package/bundle/obf/src/commands/login.js +1 -1
  79. package/bundle/obf/src/commands/logout.js +1 -1
  80. package/bundle/obf/src/commands/logs.js +1 -1
  81. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  82. package/bundle/obf/src/commands/murder.js +1 -1
  83. package/bundle/obf/src/commands/proxy.js +1 -1
  84. package/bundle/obf/src/commands/reconfig.js +1 -1
  85. package/bundle/obf/src/commands/run/_index.js +1 -1
  86. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/run/run.command.js +1 -1
  88. package/bundle/obf/src/commands/set/_index.js +1 -1
  89. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  90. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/set/set.command.js +1 -1
  92. package/bundle/obf/src/commands/ssh.js +1 -1
  93. package/bundle/obf/src/commands/ssl.js +1 -1
  94. package/bundle/obf/src/commands/test.js +1 -1
  95. package/bundle/obf/src/commands/version.js +1 -1
  96. package/bundle/obf/src/error.js +1 -1
  97. package/bundle/obf/src/exec.js +1 -1
  98. package/bundle/obf/src/generator.js +1 -1
  99. package/bundle/obf/src/generators/_index.js +1 -1
  100. package/bundle/obf/src/generators/api.js +1 -1
  101. package/bundle/obf/src/generators/collection.js +1 -1
  102. package/bundle/obf/src/generators/component.js +1 -1
  103. package/bundle/obf/src/generators/config.js +1 -1
  104. package/bundle/obf/src/generators/dbc.js +1 -1
  105. package/bundle/obf/src/generators/dockerfile.js +1 -1
  106. package/bundle/obf/src/generators/hook.js +1 -1
  107. package/bundle/obf/src/generators/kits/_index.js +1 -1
  108. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  109. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  110. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  111. package/bundle/obf/src/generators/kits/kit.js +1 -1
  112. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  113. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  114. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  115. package/bundle/obf/src/generators/layout.js +1 -1
  116. package/bundle/obf/src/generators/maka.gen.js +1 -1
  117. package/bundle/obf/src/generators/methods.js +1 -1
  118. package/bundle/obf/src/generators/package.js +1 -1
  119. package/bundle/obf/src/generators/page.js +1 -1
  120. package/bundle/obf/src/generators/publish.js +1 -1
  121. package/bundle/obf/src/generators/route.js +1 -1
  122. package/bundle/obf/src/generators/service.js +1 -1
  123. package/bundle/obf/src/generators/services/_index.js +1 -1
  124. package/bundle/obf/src/generators/services/openssl.js +1 -1
  125. package/bundle/obf/src/generators/services/translation.js +1 -1
  126. package/bundle/obf/src/maka.js +1 -1
  127. package/bundle/obf/src/templates/meteor/project/package.json +1 -1
  128. package/bundle/obf/src/tool.js +1 -1
  129. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  130. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  131. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  132. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  133. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  134. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  135. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  136. package/bundle/obf/src/tools/https/https.class.js +1 -1
  137. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  138. package/bundle/obf/src/tools/log/log.class.js +1 -1
  139. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  140. package/bundle/obf/src/tools/options/options.class.js +1 -1
  141. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  142. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  143. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  144. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  145. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  146. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  147. package/package.json +1 -1
@@ -1 +1 @@
1
- function a78c(){const q=['Logging\x20out\x20of\x20https://','(((.+)+)+)+$','1447947dWetOS','search','env','https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','post','get','getGlobalConfig','start','/api/v1/status','failure','authToken','header','1257UlmZyC','fsi','localhost','toString','cert','apply','33bRethJ','withSpinner','MAKA_DEV','Using\x20CA\x20Cert\x20','cacert','error','940016XGHqid','24VsDoHb','58178qhehzr','token','create','186jDHvQX','Preflight\x20Check','279566DhOzWM','8RbHkmv','263460OUhfCQ','notice','setGlobalConfig','isFile','maka\x20logout','success','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','/api/v1/logoutAll','constructor','257340pELsus','assign'];a78c=function(){return q;};return a78c();}const a78o=a78d;(function(a,b){const l=a78d,c=a();while(!![]){try{const d=parseInt(l(0x196))/0x1+-parseInt(l(0x199))/0x2*(parseInt(l(0x1b9))/0x3)+-parseInt(l(0x194))/0x4+parseInt(l(0x19d))/0x5*(parseInt(l(0x195))/0x6)+-parseInt(l(0x19b))/0x7+-parseInt(l(0x19c))/0x8*(-parseInt(l(0x1ac))/0x9)+-parseInt(l(0x1a8))/0xa*(-parseInt(l(0x1bf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x2f262));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a78d;if(c){const e=c[m(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const n=a78d;return a78a[n(0x1bc)]()[n(0x1ad)]('(((.+)+)+)+$')[n(0x1bc)]()[n(0x1a7)](a78a)[n(0x1ad)](n(0x1ab));});a78a();function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x192;let f=c[d];return f;},a78d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process[a78o(0x1ae)][a78o(0x1c1)]==='True'?a78o(0x1bb):'www.maka-cli.com';Command[a78o(0x198)]({'name':'logout','validOpts':[a78o(0x192)],'usage':'maka\x20logout','maxArgLength':0x2,'shortDesc':a78o(0x1b0),'disableAuthCheck':!![],'examples':[a78o(0x1a1)]},async function(a,b){const p=a78o,c=Log[p(0x1c0)]();try{let d='';b['cacert']&&(this[p(0x1ba)]['isFile'](b[p(0x192)])?(d=b[p(0x192)],Log[p(0x19e)](p(0x1c2)+d)):Log[p(0x193)](p(0x1a3)+d));const f=await this[p(0x1ba)][p(0x1b3)]();if(f[p(0x1bd)]){if(this[p(0x1ba)][p(0x1a0)](f[p(0x1bd)]))d=f['cert'];else{c['failure']();throw Log['error']('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+d);}}Log[p(0x1b8)](p(0x1aa)+hostname);const g={'url':'https://'+hostname+p(0x1b5)};b[p(0x192)]&&Object[p(0x1a9)](g,{'cert':d});c[p(0x1b4)](p(0x19a));const {statusCode:h}=await HTTPS[p(0x1b2)](g);if(h===0x198){c[p(0x1b6)]();throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}c[p(0x1a2)]();if(h!==0xc8){c[p(0x1b6)]();throw p(0x1af);}if(!f?.[p(0x197)]?.[p(0x1b7)])throw Log[p(0x193)](p(0x1a5));c[p(0x1b4)]('Logging\x20out');const i={'hostname':hostname,'path':p(0x1a6),'data':{},'headers':{'x-auth-token':f['token'][p(0x1b7)]}};b['cacert']&&Object['assign'](i,{'cert':d});const {statusCode:j}=await HTTPS[p(0x1b1)](i);if(j===0x198){c[p(0x1b6)]('\x0a');throw p(0x1a4);}this['fsi'][p(0x19f)]({'token':{'authToken':'','userId':'','when':''},'hash':''}),c[p(0x1a2)]();}catch(k){k&&console['error'](k),process['exit'](0x0);}});
1
+ const a78o=a78d;(function(a,b){const l=a78d,c=a();while(!![]){try{const d=-parseInt(l(0x138))/0x1+parseInt(l(0x13c))/0x2+-parseInt(l(0x13a))/0x3+parseInt(l(0x159))/0x4*(parseInt(l(0x14f))/0x5)+parseInt(l(0x136))/0x6+-parseInt(l(0x142))/0x7+parseInt(l(0x152))/0x8*(-parseInt(l(0x133))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x97ab5));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a78d;if(c){const e=c[m(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const n=a78d;return a78a[n(0x147)]()[n(0x149)]('(((.+)+)+)+$')[n(0x147)]()[n(0x153)](a78a)[n(0x149)](n(0x13b));});a78a();import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x12f;let f=c[d];return f;},a78d(a,b);}import{HTTPS}from'../tools/https/https.class.js';const hostname=process['env'][a78o(0x144)]===a78o(0x130)?a78o(0x14a):'www.maka-cli.com';function a78c(){const q=['search','localhost','fsi','isFile','setGlobalConfig','/api/v1/logoutAll','25eHefwo','getGlobalConfig','post','543520XzbGWd','constructor','Preflight\x20Check','error','assign','withSpinner','logout','791716wwjKBQ','Logging\x20out\x20of\x20https://','get','cacert','Using\x20CA\x20Cert\x20','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','success','True','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','27opMgTx','maka\x20logout','exit','1547322eNUEbp','authToken','230754aCDjtF','failure','2601672TErkeu','(((.+)+)+)+$','2140634xsGqqb','/api/v1/status','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','Logging\x20out','apply','start','2763698MdFKtb','https://','MAKA_DEV','token','cert','toString','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?'];a78c=function(){return q;};return a78c();}Command['create']({'name':a78o(0x158),'validOpts':['cacert'],'usage':a78o(0x134),'maxArgLength':0x2,'shortDesc':a78o(0x15e),'disableAuthCheck':!![],'examples':['maka\x20logout']},async function(a,b){const p=a78o,c=Log[p(0x157)]();try{let d='';b[p(0x15c)]&&(this['fsi'][p(0x14c)](b['cacert'])?(d=b[p(0x15c)],Log['notice'](p(0x15d)+d)):Log[p(0x155)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+d));const f=await this[p(0x14b)][p(0x150)]();if(f[p(0x146)]){if(this[p(0x14b)][p(0x14c)](f[p(0x146)]))d=f[p(0x146)];else{c['failure']();throw Log[p(0x155)](p(0x13e)+d);}}Log['header'](p(0x15a)+hostname);const g={'url':p(0x143)+hostname+p(0x13d)};b[p(0x15c)]&&Object[p(0x156)](g,{'cert':d});c[p(0x141)](p(0x154));const {statusCode:h}=await HTTPS[p(0x15b)](g);if(h===0x198){c[p(0x139)]();throw p(0x131);}c['success']();if(h!==0xc8){c['failure']();throw p(0x132);}if(!f?.[p(0x145)]?.[p(0x137)])throw Log[p(0x155)](p(0x148));c[p(0x141)](p(0x13f));const i={'hostname':hostname,'path':p(0x14e),'data':{},'headers':{'x-auth-token':f['token'][p(0x137)]}};b[p(0x15c)]&&Object[p(0x156)](i,{'cert':d});const {statusCode:j}=await HTTPS[p(0x151)](i);if(j===0x198){c[p(0x139)]('\x0a');throw p(0x131);}this[p(0x14b)][p(0x14d)]({'token':{'authToken':'','userId':'','when':''},'hash':''}),c[p(0x12f)]();}catch(k){k&&console[p(0x155)](k),process[p(0x135)](0x0);}});
@@ -1 +1 @@
1
- const a79l=a79d;(function(a,b){const j=a79d,c=a();while(!![]){try{const d=parseInt(j(0xc0))/0x1*(-parseInt(j(0xce))/0x2)+parseInt(j(0xb9))/0x3*(parseInt(j(0xbb))/0x4)+-parseInt(j(0xcf))/0x5+parseInt(j(0xc9))/0x6*(parseInt(j(0xc1))/0x7)+-parseInt(j(0xcd))/0x8*(parseInt(j(0xc4))/0x9)+-parseInt(j(0xbf))/0xa+parseInt(j(0xc3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x89f92));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const k=a79d;return a79a[k(0xba)]()[k(0xbd)]('(((.+)+)+)+$')['toString']()[k(0xd3)](a79a)[k(0xbd)]('(((.+)+)+)+$');});a79a();import a79e from'fs';import a79f from'path';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0xb9;let f=c[d];return f;},a79d(a,b);}import{Command}from'../command.js';function a79c(){const n=['3280625CMewqV','parse','error','ssh.json','constructor','3EtbsPc','toString','4511236XzpGZM','verbose','search','maka\x20logs','10071580JVwhkR','48533BXmLDL','751989cVbtrl','maka\x20logs\x20--env\x20dev','13560393hncfcb','63PrtLtV','readFileSync','getAppConfigPath','env','maka\x20l\x20-e\x20p','42XwqveZ','logs','create','assign','289384SDeiYv','26WDFhzi'];a79c=function(){return n;};return a79c();}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a79l(0xcb)]({'name':a79l(0xca),'aliases':['l','log'],'usage':a79l(0xbe),'requiredOpts':[a79l(0xc7)],'mustBeInMakaProject':!![],'validOpts':[a79l(0xbc)],'shortDesc':'View\x20the\x20PM2\x20logs','examples':[a79l(0xc2),'maka\x20logs\x20--env\x20staging',a79l(0xc8)]},function(a,b){const m=a79l;try{const c='pm2\x20logs',d=this['fsi'][m(0xc6)](b['env']),f=a79f['join'](d,m(0xd2)),g=a79e[m(0xc5)](f),h=JSON[m(0xd0)](g[m(0xba)]());Object[m(0xcc)](h,{'env':d}),SSH['sshSync'](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[m(0xd1)](i);}});
1
+ const a79m=a79d;(function(a,b){const j=a79d,c=a();while(!![]){try{const d=parseInt(j(0x10d))/0x1*(parseInt(j(0x107))/0x2)+-parseInt(j(0xef))/0x3*(-parseInt(j(0xf7))/0x4)+-parseInt(j(0x100))/0x5+-parseInt(j(0x10c))/0x6*(parseInt(j(0xf6))/0x7)+parseInt(j(0x108))/0x8+-parseInt(j(0x109))/0x9+-parseInt(j(0x10e))/0xa*(parseInt(j(0xfa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xcb5da));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a79d;if(c){const e=c[k(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const l=a79d;return a79a['toString']()[l(0xf1)](l(0xf8))['toString']()[l(0xfc)](a79a)[l(0xf1)](l(0xf8));});a79a();import a79e from'fs';import a79f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';function a79c(){const o=['maka\x20logs','join','1976340jwmWkP','650445nTkZZf','70WakJfC','getAppConfigPath','31467mMfHIe','assign','search','toString','sshSync','pm2\x20logs','parse','14uDNBGw','124aRztvA','(((.+)+)+)+$','fsi','467478WPgGBP','readFileSync','constructor','error','maka\x20logs\x20--env\x20dev','logs','6208820sYFHGQ','apply','verbose','ssh.json','View\x20the\x20PM2\x20logs','env','maka\x20logs\x20--env\x20staging','4IUmXgl','11409160gECQKT','190602MtqwzR'];a79c=function(){return o;};return a79c();}import{Log}from'../tools/log/log.class.js';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0xee;let f=c[d];return f;},a79d(a,b);}Command['create']({'name':a79m(0xff),'aliases':['l','log'],'usage':a79m(0x10a),'requiredOpts':[a79m(0x105)],'mustBeInMakaProject':!![],'validOpts':[a79m(0x102)],'shortDesc':a79m(0x104),'examples':[a79m(0xfe),a79m(0x106),'maka\x20l\x20-e\x20p']},function(a,b){const n=a79m;try{const c=n(0xf4),d=this[n(0xf9)][n(0xee)](b[n(0x105)]),f=a79f[n(0x10b)](d,n(0x103)),g=a79e[n(0xfb)](f),h=JSON[n(0xf5)](g[n(0xf2)]());Object[n(0xf0)](h,{'env':d}),SSH[n(0xf3)](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[n(0xfd)](i);}});
@@ -1 +1 @@
1
- const a80h=a80d;function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0xb9;let f=c[d];return f;},a80d(a,b);}(function(a,b){const f=a80d,c=a();while(!![]){try{const d=parseInt(f(0xca))/0x1*(parseInt(f(0xbe))/0x2)+-parseInt(f(0xba))/0x3*(parseInt(f(0xc6))/0x4)+-parseInt(f(0xbb))/0x5+-parseInt(f(0xb9))/0x6+parseInt(f(0xc3))/0x7+parseInt(f(0xbc))/0x8+parseInt(f(0xc5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x27690));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const g=a80d;return a80a[g(0xc4)]()[g(0xbf)]('(((.+)+)+)+$')[g(0xc4)]()[g(0xc9)](a80a)[g(0xbf)](g(0xc2));});a80a();import{Command}from'../command.js';const Maka=new Command({'name':'maka','minArgLength':0x1,'shortDesc':a80h(0xc1),'validOpts':[],'usage':a80h(0xc0),'disableAuthCheck':!![],'examples':['maka\x20--help','maka\x20install\x20meteor',a80h(0xc7),a80h(0xc8)],'description':'\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20\x20::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::::::\x20.:::::::\x20..\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20..:.....\x20.::..::.\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20\x20::::::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::..-::.\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::....\x20\x20::..---:..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20.\x20.:::::::\x20\x20::..::.\x20..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:.\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:--\x20\x20\x20\x20\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20:\x0a.:..::...::.\x20\x20\x20....:\x20\x20\x20.:\x20\x20\x20::\x20\x20....:.\x20\x20\x20\x20\x20\x20\x20\x20.::::\x20\x20.:\x20\x20::\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20\x20....:-\x20\x20.-..:.\x20\x20\x20....:-\x20\x20...\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20.:\x20\x20\x20:-\x20\x20.-\x20\x20.:\x20\x20.:\x20\x20\x20:-\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a.:.\x20\x20\x20:.\x20\x20\x20.:\x20\x20....\x20:.\x20.:.\x20\x20..\x20\x20....\x20:.\x20\x20\x20\x20\x20\x20\x20.....\x20\x20.:.\x20.:.\x0a\x0a\x20\x20'},async function(a,b){const i=a80h;try{const c=a[0x0];a['splice'](0x0,0x1),await this[i(0xbd)](c,a,b);}catch(d){process['exit'](0x1);}});export default Maka;function a80c(){const j=['501DCwrLt','1197410hZDzEY','813840HxAFGj','processAndRunCommand','12932VubPyz','search','maka\x20<command>\x20[<args>]\x20[<opts>]','A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','(((.+)+)+)+$','507297EbEruf','toString','2235060ASdTFv','1276OTIctS','maka\x20create\x20Todo','maka\x20run','constructor','45IuKjLr','1555992CXmshu'];a80c=function(){return j;};return a80c();}
1
+ const a80i=a80d;(function(a,b){const f=a80d,c=a();while(!![]){try{const d=-parseInt(f(0x177))/0x1*(-parseInt(f(0x182))/0x2)+parseInt(f(0x17c))/0x3+-parseInt(f(0x176))/0x4+-parseInt(f(0x18b))/0x5*(-parseInt(f(0x18a))/0x6)+-parseInt(f(0x17b))/0x7*(parseInt(f(0x179))/0x8)+-parseInt(f(0x18e))/0x9*(parseInt(f(0x175))/0xa)+parseInt(f(0x183))/0xb*(parseInt(f(0x180))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x4158a));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a80d;if(c){const e=c[g(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const h=a80d;return a80a[h(0x18c)]()[h(0x188)](h(0x184))[h(0x18c)]()[h(0x189)](a80a)[h(0x188)](h(0x184));});a80a();import{Command}from'../command.js';function a80c(){const k=['maka\x20create\x20Todo','maka\x20run','search','constructor','222nVCBYB','57730RsTLUZ','toString','maka','25767XlUnfA','1320yRWxhM','1970768cCcTDr','378107anXvxg','\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20\x20::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::::::\x20.:::::::\x20..\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20..:.....\x20.::..::.\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20\x20::::::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::..-::.\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::....\x20\x20::..---:..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20.\x20.:::::::\x20\x20::..::.\x20..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:.\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:--\x20\x20\x20\x20\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20:\x0a.:..::...::.\x20\x20\x20....:\x20\x20\x20.:\x20\x20\x20::\x20\x20....:.\x20\x20\x20\x20\x20\x20\x20\x20.::::\x20\x20.:\x20\x20::\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20\x20....:-\x20\x20.-..:.\x20\x20\x20....:-\x20\x20...\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20.:\x20\x20\x20:-\x20\x20.-\x20\x20.:\x20\x20.:\x20\x20\x20:-\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a.:.\x20\x20\x20:.\x20\x20\x20.:\x20\x20....\x20:.\x20.:.\x20\x20..\x20\x20....\x20:.\x20\x20\x20\x20\x20\x20\x20.....\x20\x20.:.\x20.:.\x0a\x0a\x20\x20','16MyOCQj','A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','239225zATrFi','981063PRYakV','maka\x20install\x20meteor','processAndRunCommand','maka\x20--help','216feRdpx','exit','2AJFJQu','45397qrdbHE','(((.+)+)+)+$','apply'];a80c=function(){return k;};return a80c();}function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x175;let f=c[d];return f;},a80d(a,b);}const Maka=new Command({'name':a80i(0x18d),'minArgLength':0x1,'shortDesc':a80i(0x17a),'validOpts':[],'usage':'maka\x20<command>\x20[<args>]\x20[<opts>]','disableAuthCheck':!![],'examples':[a80i(0x17f),a80i(0x17d),a80i(0x186),a80i(0x187)],'description':a80i(0x178)},async function(a,b){const j=a80i;try{const c=a[0x0];a['splice'](0x0,0x1),await this[j(0x17e)](c,a,b);}catch(d){process[j(0x181)](0x1);}});export default Maka;
@@ -1 +1 @@
1
- function a81c(){var k=['Murrrrderrrrr','apply','502194neTPRW','1359063PpQMwK','8852221NeqLJm','666adDlml','7852645vWgSlk','5671620AGAwwa','font-family:\x20monospace','%c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.___.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20,-^\x20\x20\x20\x20\x20^-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x0a.-------|\x20|--------------/\x20\x20__\x20\x20\x20\x20\x20__\x20\x20\x5c-------------------.__\x0a|WMWMWMW|\x20|>>>>>>>>>>>>>\x20|\x20/>>\x5c\x20\x20\x20/>>\x5c\x20|>>>>>>>>>>>>>>>>>>>>>>:>\x0a`-------|\x20|--------------|\x20\x5c__/\x20\x20\x20\x5c__/\x20|-------------------\x27^^\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x5c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20/|\x5c\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x5c_/\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|+H+H+H+|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^-----^\x0a\x0a','create','8bDYhth','error','search','murder','1465LZHmrG','(((.+)+)+)+$','toString','constructor','3ANLRDq','exit','910vAXHqT','log','2818628iLXaox'];a81c=function(){return k;};return a81c();}var a81i=a81d;(function(a,b){var f=a81d,c=a();while(!![]){try{var d=parseInt(f(0x7d))/0x1*(parseInt(f(0x73))/0x2)+parseInt(f(0x69))/0x3*(parseInt(f(0x6d))/0x4)+parseInt(f(0x74))/0x5+parseInt(f(0x75))/0x6+parseInt(f(0x72))/0x7+parseInt(f(0x79))/0x8*(parseInt(f(0x71))/0x9)+-parseInt(f(0x6b))/0xa*(parseInt(f(0x70))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xecab5));var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a81d;if(c){var e=c[g(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var h=a81d;return a81a[h(0x7f)]()[h(0x7b)](h(0x7e))[h(0x7f)]()[h(0x80)](a81a)[h(0x7b)]('(((.+)+)+)+$');});a81a();function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x69;var f=c[d];return f;},a81d(a,b);}import{Command}from'../command.js';Command[a81i(0x78)]({'name':a81i(0x7c),'usage':'maka\x20murder','maxArgLength':0x1,'shortDesc':a81i(0x6e),'validOpts':[]},async function(){var j=a81i;try{console[j(0x6c)](j(0x77),j(0x76));}catch(a){console[j(0x7a)](a),process[j(0x6a)](0x0);}});
1
+ var a81i=a81d;function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x1b4;var f=c[d];return f;},a81d(a,b);}function a81c(){var k=['12DBRdFt','search','2635668zAImqe','maka\x20murder','font-family:\x20monospace','8xHWRrp','163911gjEexc','apply','create','33393SNEDOk','exit','298OcbVPI','%c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.___.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20,-^\x20\x20\x20\x20\x20^-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x0a.-------|\x20|--------------/\x20\x20__\x20\x20\x20\x20\x20__\x20\x20\x5c-------------------.__\x0a|WMWMWMW|\x20|>>>>>>>>>>>>>\x20|\x20/>>\x5c\x20\x20\x20/>>\x5c\x20|>>>>>>>>>>>>>>>>>>>>>>:>\x0a`-------|\x20|--------------|\x20\x5c__/\x20\x20\x20\x5c__/\x20|-------------------\x27^^\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x5c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20/|\x5c\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x5c_/\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|+H+H+H+|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^-----^\x0a\x0a','2442575zWHrpt','50uFOkTw','(((.+)+)+)+$','8268995edavKe','Murrrrderrrrr','murder','5373396jaYPqn','constructor','56279971KQBunp','8DeiKeJ'];a81c=function(){return k;};return a81c();}(function(a,b){var f=a81d,c=a();while(!![]){try{var d=parseInt(f(0x1be))/0x1+parseInt(f(0x1c3))/0x2*(-parseInt(f(0x1c1))/0x3)+-parseInt(f(0x1b7))/0x4*(parseInt(f(0x1c5))/0x5)+parseInt(f(0x1b4))/0x6+parseInt(f(0x1c8))/0x7*(-parseInt(f(0x1bd))/0x8)+-parseInt(f(0x1ba))/0x9*(parseInt(f(0x1c6))/0xa)+-parseInt(f(0x1b6))/0xb*(-parseInt(f(0x1b8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xda718));var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a81d;if(c){var e=c[g(0x1bf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var h=a81d;return a81a['toString']()[h(0x1b9)]('(((.+)+)+)+$')['toString']()[h(0x1b5)](a81a)['search'](h(0x1c7));});a81a();import{Command}from'../command.js';Command[a81i(0x1c0)]({'name':a81i(0x1ca),'usage':a81i(0x1bb),'maxArgLength':0x1,'shortDesc':a81i(0x1c9),'validOpts':[]},async function(){var j=a81i;try{console['log'](j(0x1c4),j(0x1bc));}catch(a){console['error'](a),process[j(0x1c2)](0x0);}});
@@ -1 +1 @@
1
- function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x118;let f=c[d];return f;},a82d(a,b);}const a82z=a82d;(function(a,b){const w=a82d,c=a();while(!![]){try{const d=parseInt(w(0x12d))/0x1+parseInt(w(0x12a))/0x2*(-parseInt(w(0x152))/0x3)+parseInt(w(0x164))/0x4+-parseInt(w(0x13d))/0x5+-parseInt(w(0x14a))/0x6*(parseInt(w(0x123))/0x7)+-parseInt(w(0x134))/0x8*(parseInt(w(0x146))/0x9)+-parseInt(w(0x14b))/0xa*(-parseInt(w(0x130))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x507bc));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a82d;if(c){const e=c[x(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const y=a82d;return a82a['toString']()[y(0x12f)](y(0x11d))[y(0x125)]()['constructor'](a82a)[y(0x12f)](y(0x11d));});a82a();import a82e from'fs';import a82f from'path';import a82g from'http-proxy';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a82c(){const K=['proxy','maka\x20proxy',']\x20=>\x20','exit','366544vozPfq','join','localhost','\x20to\x20','help','sslconfig','utf8','fsi','.csr','(((.+)+)+)+$','\x20from\x20','headers','statusMessage','proxyReqWs','success','77qeNUfn','\x20-\x20Starting\x20WebSocket\x20handshake','toString','readFileSync','\x20request\x20to\x20','\x20responded\x20with\x20','.crt','16UfHGuo','error','targetHost','298152AQKHSd','=>\x20SSL\x20Proxy\x20forwarding\x20','search','11rsYdBs','end','text/plain','Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','16duWuDV','genSSC','host','toISOString','getAppConfigPath','CSR\x20file\x20created:\x20','Shutting\x20down\x20proxy\x20server...','SIGINT','Proxy\x20error:\x20','3001155ggKkPM','Proxy\x20server\x20closed.','message','.key','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','appName','method','headersSent','close','2198619ecDPom','\x20on\x20','development',']\x20WS\x20','206346CzyeWH','15685940uCTtVY','listen','listenPort','writeHead','targetPort','maka\x20proxy\x20--target-host\x20http://192.168.1.20','maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000','60603JIRDEY','Key\x20file\x20created:\x20','processAndRunGenerator','info','createProxyServer','isFile','warn','bright','url','proxyReq','apply',']\x20<=\x20Sending\x20','Internal\x20server\x20error.',']\x20WebSocket\x20connection\x20established'];a82c=function(){return K;};return a82c();}import{UsageError}from'../error.js';import{SSL}from'../tools/ssl/ssl.class.js';import a82h from'../generators/maka.gen.js';Command['create']({'name':a82z(0x160),'usage':a82z(0x161),'mustBeInMakaProject':!![],'validOpts':[a82z(0x118),a82z(0x14f),'listenPort',a82z(0x12c)],'maxArgLength':0x1,'shortDesc':a82z(0x133),'description':'\x0a\x20\x20If\x20you\x27re\x20running\x20your\x20Meteor\x20service,\x20and\x20need\x20to\x20stand\x20up\x20an\x20SSL\x0a\x20\x20Proxy,\x20this\x20command\x20will\x20automatically\x20create\x20a\x20key\x20pair\x20for\x20use\x20in\x20an\x20HTTPS\x0a\x20\x20proxy.\x0a\x0a\x20\x20For\x20example,\x20you\x27re\x20running\x20http://localhost:3000\x20with\x20\x22maka\x20run\x22\x20then\x20open\x20a\x20new\x0a\x20\x20terminal\x20and\x20run\x20\x22maka\x20proxy\x22\x20to\x20standup\x20https://localhost:3443.\x0a\x20\x20Then\x20open\x20your\x20browser\x20to\x20that\x20URL\x20(you\x20may\x20need\x20to\x20trust\x20the\x20certificates\x0a\x20\x20because\x20they\x20are\x20self-signed)\x20and\x20you\x27ll\x20have\x20an\x20SSL\x20connection\x20to\x20your\x0a\x20\x20http://localhost:3000.\x0a\x0a\x20\x20To\x20avoid\x20possibly\x20overwriting\x20PKI\x20files\x20in\x20higher\x20environments,\x20\x22maka\x20proxy\x22\x0a\x20\x20will\x20try\x20to\x20only\x20generate\x20/\x20store\x20PKI\x20keys\x20in\x20the\x20development\x20environment.\x0a\x20\x20','examples':[a82z(0x161),a82z(0x151),a82z(0x150)]},async function(a,b){const A=a82z,c=this[A(0x11b)]['getMakaProjectConfig'](),d=A(0x148),e=this[A(0x11b)][A(0x138)](d),f=this[A(0x11b)]['mkKeysDir']({'configPath':e}),g=b[A(0x14f)]?Number(b[A(0x14f)]):0xbb8,h=b[A(0x14d)]?Number(b['listenPort']):0xd73,i=b[A(0x12c)]?b['targetHost']:A(0x166),j=a82f[A(0x165)](f,c[A(0x142)]+A(0x140)),k=a82f[A(0x165)](f,c['appName']+A(0x129));(!this['fsi'][A(0x157)](j)||!this[A(0x11b)][A(0x157)](k))&&(await a82h[A(0x154)](A(0x119),[],{'env':d}),SSL['genCSR']({'keyName':c[A(0x142)]+A(0x140),'csrName':c['appName']+A(0x11c),'cwd':f,'useConfig':!![]}),this[A(0x11b)][A(0x157)](a82f[A(0x165)](f,c[A(0x142)]+A(0x11c)))&&Log[A(0x155)](A(0x139)+a82f['join'](f,c[A(0x142)]+A(0x11c))),SSL[A(0x135)]({'keyName':c[A(0x142)]+A(0x140),'crtName':c[A(0x142)]+'.crt','cwd':f,'useConfig':!![]}),this[A(0x11b)][A(0x157)](a82f[A(0x165)](f,c['appName']+A(0x129)))&&Log[A(0x155)]('SSC\x20file\x20created:\x20'+a82f[A(0x165)](f,c[A(0x142)]+A(0x129))),Log[A(0x155)](A(0x153)+j));if(g===h){Log[A(0x12b)](A(0x141));throw new UsageError();}const l={'ssl':{'key':a82e[A(0x126)](j,A(0x11a)),'cert':a82e[A(0x126)](k,A(0x11a))},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a82g[A(0x156)](l);m['on'](A(0x12b),(o,p,q)=>{const B=A;B(0x14e)in q&&(Log[B(0x12b)](B(0x13c)+o[B(0x13f)]),!q[B(0x144)]&&(q['writeHead'](0x1f4,{'content-type':B(0x132)}),q[B(0x131)](B(0x15e))));}),m['on']('proxyRes',(o,p)=>{const C=A,q=new Date()[C(0x137)](),r=p[C(0x143)],s=p['url'],t=p[C(0x11f)][C(0x136)],u=o['statusCode'],v=o[C(0x120)];Log[C(0x158)]('['+q+C(0x162)+r+'\x20'+s+'\x20from\x20'+t+C(0x128)+u+'\x20'+v);}),m['on'](A(0x15b),o=>{const D=A,p=new Date()['toISOString'](),q=o[D(0x143)],r=o['path'],s=o['getHeader'](D(0x136));Log[D(0x155)]('['+p+D(0x15d)+q+D(0x127)+r+D(0x147)+s);}),m['on'](A(0x121),(o,p)=>{const E=A,q=new Date()['toISOString'](),r=p['method'],s=p[E(0x15a)],t=p[E(0x11f)][E(0x136)];Log[E(0x122)]('['+q+E(0x149)+r+'\x20'+s+E(0x11e)+t+E(0x124));}),m['on']('open',()=>{const F=A,o=new Date()[F(0x137)]();Log[F(0x122)]('['+o+F(0x15f));}),m['on'](A(0x145),()=>{const G=A,o=new Date()['toISOString']();Log[G(0x12b)]('['+o+']\x20WebSocket\x20connection\x20closed');}),m[A(0x14c)](Number(h)),Log[A(0x159)](A(0x12e)+h+A(0x167)+g);const n=0x7d0;process['on'](A(0x13b),()=>{const H=A,o=Log['withSpinner']();o['start'](H(0x13a));const p=setTimeout(()=>{const I=H;o[I(0x122)](),process[I(0x163)](0x1);},n);m[H(0x145)](()=>{const J=H;clearTimeout(p),Log[J(0x155)](J(0x13e)),process[J(0x163)](0x0);});});});
1
+ const a82z=a82d;(function(a,b){const w=a82d,c=a();while(!![]){try{const d=-parseInt(w(0x12b))/0x1*(-parseInt(w(0x165))/0x2)+-parseInt(w(0x161))/0x3*(-parseInt(w(0x14f))/0x4)+parseInt(w(0x156))/0x5+parseInt(w(0x126))/0x6*(parseInt(w(0x149))/0x7)+parseInt(w(0x157))/0x8+parseInt(w(0x11e))/0x9+parseInt(w(0x124))/0xa*(-parseInt(w(0x150))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0xb80a3));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a82d;if(c){const e=c[x(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const y=a82d;return a82a[y(0x128)]()[y(0x123)]('(((.+)+)+)+$')[y(0x128)]()[y(0x16a)](a82a)[y(0x123)]('(((.+)+)+)+$');});a82a();import a82e from'fs';import a82f from'path';function a82c(){const K=['writeHead','listenPort','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','statusCode','=>\x20SSL\x20Proxy\x20forwarding\x20','\x0a\x20\x20If\x20you\x27re\x20running\x20your\x20Meteor\x20service,\x20and\x20need\x20to\x20stand\x20up\x20an\x20SSL\x0a\x20\x20Proxy,\x20this\x20command\x20will\x20automatically\x20create\x20a\x20key\x20pair\x20for\x20use\x20in\x20an\x20HTTPS\x0a\x20\x20proxy.\x0a\x0a\x20\x20For\x20example,\x20you\x27re\x20running\x20http://localhost:3000\x20with\x20\x22maka\x20run\x22\x20then\x20open\x20a\x20new\x0a\x20\x20terminal\x20and\x20run\x20\x22maka\x20proxy\x22\x20to\x20standup\x20https://localhost:3443.\x0a\x20\x20Then\x20open\x20your\x20browser\x20to\x20that\x20URL\x20(you\x20may\x20need\x20to\x20trust\x20the\x20certificates\x0a\x20\x20because\x20they\x20are\x20self-signed)\x20and\x20you\x27ll\x20have\x20an\x20SSL\x20connection\x20to\x20your\x0a\x20\x20http://localhost:3000.\x0a\x0a\x20\x20To\x20avoid\x20possibly\x20overwriting\x20PKI\x20files\x20in\x20higher\x20environments,\x20\x22maka\x20proxy\x22\x0a\x20\x20will\x20try\x20to\x20only\x20generate\x20/\x20store\x20PKI\x20keys\x20in\x20the\x20development\x20environment.\x0a\x20\x20','.key','proxyRes','url','readFileSync','\x20-\x20Starting\x20WebSocket\x20handshake','error','utf8','success','open','Internal\x20server\x20error.','message',']\x20<=\x20Sending\x20','host','path','getMakaProjectConfig',']\x20=>\x20','apply','\x20to\x20','genCSR',']\x20WS\x20','CSR\x20file\x20created:\x20','\x20on\x20','getAppConfigPath','287uuUjIX','warn','headers','maka\x20proxy','Shutting\x20down\x20proxy\x20server...','toISOString','1144508BVKzxM','1184139ZxCvhv','appName','Proxy\x20server\x20closed.','info','statusMessage',']\x20WebSocket\x20connection\x20established','1594645WWkuUk','10033240uMhzli','maka\x20proxy\x20--target-host\x20http://192.168.1.20','localhost','processAndRunGenerator','\x20from\x20','fsi','targetPort','Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','SSC\x20file\x20created:\x20','SIGINT','3fZGqrb','method','bright','.crt','23434XWVhsH','\x20request\x20to\x20','withSpinner','end','close','constructor','exit','.csr','2125305fYYXHD','sslconfig','genSSC','isFile','create','search','250aMOfQt','\x20responded\x20with\x20','75774UMPvyl','join','toString','text/plain','development','71hVimLZ'];a82c=function(){return K;};return a82c();}import a82g from'http-proxy';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x11c;let f=c[d];return f;},a82d(a,b);}import{UsageError}from'../error.js';import{SSL}from'../tools/ssl/ssl.class.js';import a82h from'../generators/maka.gen.js';Command[a82z(0x122)]({'name':'proxy','usage':a82z(0x14c),'mustBeInMakaProject':!![],'validOpts':['help','targetPort',a82z(0x12d),'targetHost'],'maxArgLength':0x1,'shortDesc':a82z(0x15e),'description':a82z(0x131),'examples':[a82z(0x14c),'maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000',a82z(0x158)]},async function(a,b){const A=a82z,c=this['fsi'][A(0x140)](),d=A(0x12a),e=this[A(0x15c)][A(0x148)](d),f=this[A(0x15c)]['mkKeysDir']({'configPath':e}),g=b[A(0x15d)]?Number(b[A(0x15d)]):0xbb8,h=b['listenPort']?Number(b[A(0x12d)]):0xd73,i=b['targetHost']?b['targetHost']:A(0x159),j=a82f['join'](f,c[A(0x151)]+A(0x132)),k=a82f[A(0x127)](f,c[A(0x151)]+A(0x164));(!this['fsi'][A(0x121)](j)||!this[A(0x15c)][A(0x121)](k))&&(await a82h[A(0x15a)](A(0x11f),[],{'env':d}),SSL[A(0x144)]({'keyName':c['appName']+A(0x132),'csrName':c[A(0x151)]+A(0x11d),'cwd':f,'useConfig':!![]}),this[A(0x15c)][A(0x121)](a82f[A(0x127)](f,c[A(0x151)]+A(0x11d)))&&Log[A(0x153)](A(0x146)+a82f[A(0x127)](f,c[A(0x151)]+A(0x11d))),SSL[A(0x120)]({'keyName':c['appName']+A(0x132),'crtName':c[A(0x151)]+A(0x164),'cwd':f,'useConfig':!![]}),this[A(0x15c)][A(0x121)](a82f[A(0x127)](f,c[A(0x151)]+A(0x164)))&&Log[A(0x153)](A(0x15f)+a82f['join'](f,c['appName']+A(0x164))),Log[A(0x153)]('Key\x20file\x20created:\x20'+j));if(g===h){Log[A(0x137)](A(0x12e));throw new UsageError();}const l={'ssl':{'key':a82e[A(0x135)](j,A(0x138)),'cert':a82e[A(0x135)](k,'utf8')},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a82g['createProxyServer'](l);m['on']('error',(o,p,q)=>{const B=A;B(0x12c)in q&&(Log['error']('Proxy\x20error:\x20'+o[B(0x13c)]),!q['headersSent']&&(q[B(0x12c)](0x1f4,{'content-type':B(0x129)}),q[B(0x168)](B(0x13b))));}),m['on'](A(0x133),(o,p)=>{const C=A,q=new Date()[C(0x14e)](),r=p[C(0x162)],s=p[C(0x134)],t=p[C(0x14b)]['host'],u=o[C(0x12f)],v=o[C(0x154)];Log[C(0x14a)]('['+q+C(0x141)+r+'\x20'+s+C(0x15b)+t+C(0x125)+u+'\x20'+v);}),m['on']('proxyReq',o=>{const D=A,p=new Date()[D(0x14e)](),q=o[D(0x162)],r=o[D(0x13f)],s=o['getHeader']('host');Log[D(0x153)]('['+p+D(0x13d)+q+D(0x166)+r+D(0x147)+s);}),m['on']('proxyReqWs',(o,p)=>{const E=A,q=new Date()['toISOString'](),r=p[E(0x162)],s=p['url'],t=p['headers'][E(0x13e)];Log[E(0x139)]('['+q+E(0x145)+r+'\x20'+s+'\x20from\x20'+t+E(0x136));}),m['on'](A(0x13a),()=>{const F=A,o=new Date()[F(0x14e)]();Log[F(0x139)]('['+o+F(0x155));}),m['on'](A(0x169),()=>{const G=A,o=new Date()[G(0x14e)]();Log['error']('['+o+']\x20WebSocket\x20connection\x20closed');}),m['listen'](Number(h)),Log[A(0x163)](A(0x130)+h+A(0x143)+g);const n=0x7d0;process['on'](A(0x160),()=>{const H=A,o=Log[H(0x167)]();o['start'](H(0x14d));const p=setTimeout(()=>{const I=H;o['success'](),process[I(0x11c)](0x1);},n);m['close'](()=>{const J=H;clearTimeout(p),Log[J(0x153)](J(0x152)),process['exit'](0x0);});});});
@@ -1 +1 @@
1
- const a83q=a83d;(function(a,b){const n=a83d,c=a();while(!![]){try{const d=-parseInt(n(0xbb))/0x1*(parseInt(n(0xb3))/0x2)+-parseInt(n(0xa6))/0x3+-parseInt(n(0xb7))/0x4+parseInt(n(0xb0))/0x5+-parseInt(n(0xaf))/0x6*(-parseInt(n(0xac))/0x7)+parseInt(n(0xae))/0x8*(parseInt(n(0xab))/0x9)+parseInt(n(0xb5))/0xa*(parseInt(n(0x99))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xe2247));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a83d;if(c){const e=c[o(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const p=a83d;return a83a[p(0x9b)]()[p(0x98)](p(0xb2))[p(0x9b)]()[p(0xad)](a83a)[p(0x98)]('(((.+)+)+)+$');});function a83c(){const s=['settings.json','parse','uname\x20-a','ssh','apply','reconfig','1127415uurFAA','join','existsSync','\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x0a\x20\x20This\x20does\x20not\x20restart\x20the\x20nginx\x20server\x20and\x20is\x20much\x20faster\x20than\x20deploying\x0a\x20\x20a\x20new\x20build.\x0a\x20\x20','ping','4742010vCxsmq','7tZKxSN','constructor','8xkjJFS','10314078mkosGr','6659360ONehaJ','~/settings.json','(((.+)+)+)+$','3289478oNjBAz','env','10wWEFmi','~/ses.json','6305132FSuyDu','Remote\x20host\x20connection\x20successful','~/pm2.config.js','getAppConfigPath','1PbmxSa','notice','Checking\x20remote\x20host\x20availability','search','10398641JfDuDp','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','toString','_keys','scp','fsi','exit'];a83c=function(){return s;};return a83c();}a83a();import a83e from'fs';import a83f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x98;let f=c[d];return f;},a83d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';Command['create']({'name':'reconfigure','aliases':[a83q(0xa5)],'validOpts':[''],'requiredOpts':[a83q(0xb4)],'mustBeInMakaProject':!![],'usage':'maka\x20reconfig','shortDesc':'Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy','description':a83q(0xa9),'examples':['maka\x20reconfig\x20--env\x20prod']},async function(a,b){const r=a83q;try{const c=this[r(0x9e)][r(0xba)](b['env']),d=a83f[r(0xa7)](c,'ssh.json'),f=a83e['readFileSync'](d)['toString'](),g=JSON[r(0xa1)](f);Object['assign'](g,{'env':c}),Log[r(0xbc)](r(0xbd));const h=SSH[r(0xaa)](r(0xa2),g);if(!h)throw r(0x9a);if(h)Log['success'](r(0xb8));const i=a83f[r(0xa7)](c,r(0x9c),'ses.json');if(a83e[r(0xa8)](i)){const l={'source':i,'dest':r(0xb6),'verbose':!![]};SSH[r(0x9d)](l,{...g});}const j=a83f[r(0xa7)](c,'pm2.config.js');SSH[r(0x9d)]({'source':j,'dest':r(0xb9),'verbose':!![]},{...g});const k=a83f[r(0xa7)](c,r(0xa0));SSH['scp']({'source':k,'dest':r(0xb1),'verbose':!![]},{...g}),SSH['sshSync']('pm2\x20delete\x20all',g),await SSH[r(0xa3)]('echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22',{...g},{'verbose':!![]});}catch(m){console['error'](m),process[r(0x9f)](0x0);}});
1
+ const a83q=a83d;(function(a,b){const n=a83d,c=a();while(!![]){try{const d=-parseInt(n(0xfe))/0x1*(-parseInt(n(0x108))/0x2)+-parseInt(n(0x106))/0x3*(parseInt(n(0xef))/0x4)+-parseInt(n(0x104))/0x5+parseInt(n(0xee))/0x6*(-parseInt(n(0xe5))/0x7)+parseInt(n(0x107))/0x8*(parseInt(n(0xf6))/0x9)+parseInt(n(0x100))/0xa*(-parseInt(n(0xe2))/0xb)+parseInt(n(0xfc))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x61969));function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0xe2;let f=c[d];return f;},a83d(a,b);}const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a83d;if(c){const e=c[o(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const p=a83d;return a83a[p(0xe8)]()['search']('(((.+)+)+)+$')['toString']()[p(0xeb)](a83a)[p(0xf3)]('(((.+)+)+)+$');});a83a();import a83e from'fs';import a83f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';function a83c(){const s=['_keys','233886QwtxJE','4WkFxwl','ses.json','maka\x20reconfig\x20--env\x20prod','scp','search','pm2.config.js','getAppConfigPath','45OtqueD','exit','settings.json','apply','assign','uname\x20-a','17384124qRNFiv','ping','179555UYPntE','join','330ZYIlYy','maka\x20reconfig','Remote\x20host\x20connection\x20successful','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','969940XnyXJG','sshSync','1503804cAvQYC','975608ZZxaBz','2qXTLwc','ssh','notice','env','238073WrTnaJ','fsi','Checking\x20remote\x20host\x20availability','77aYvPay','~/settings.json','existsSync','toString','reconfig','echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22','constructor','~/pm2.config.js'];a83c=function(){return s;};return a83c();}Command['create']({'name':'reconfigure','aliases':[a83q(0xe9)],'validOpts':[''],'requiredOpts':['env'],'mustBeInMakaProject':!![],'usage':a83q(0x101),'shortDesc':'Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy','description':'\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x0a\x20\x20This\x20does\x20not\x20restart\x20the\x20nginx\x20server\x20and\x20is\x20much\x20faster\x20than\x20deploying\x0a\x20\x20a\x20new\x20build.\x0a\x20\x20','examples':[a83q(0xf1)]},async function(a,b){const r=a83q;try{const c=this[r(0xe3)][r(0xf5)](b[r(0x10b)]),d=a83f[r(0xff)](c,'ssh.json'),f=a83e['readFileSync'](d)['toString'](),g=JSON['parse'](f);Object[r(0xfa)](g,{'env':c}),Log[r(0x10a)](r(0xe4));const h=SSH[r(0xfd)](r(0xfb),g);if(!h)throw r(0x103);if(h)Log['success'](r(0x102));const i=a83f[r(0xff)](c,r(0xed),r(0xf0));if(a83e[r(0xe7)](i)){const l={'source':i,'dest':'~/ses.json','verbose':!![]};SSH[r(0xf2)](l,{...g});}const j=a83f[r(0xff)](c,r(0xf4));SSH['scp']({'source':j,'dest':r(0xec),'verbose':!![]},{...g});const k=a83f[r(0xff)](c,r(0xf8));SSH[r(0xf2)]({'source':k,'dest':r(0xe6),'verbose':!![]},{...g}),SSH[r(0x105)]('pm2\x20delete\x20all',g),await SSH[r(0x109)](r(0xea),{...g},{'verbose':!![]});}catch(m){console['error'](m),process[r(0xf7)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0xa6))/0x1*(parseInt(f(0xa9))/0x2)+-parseInt(f(0xae))/0x3*(parseInt(f(0xad))/0x4)+parseInt(f(0xa4))/0x5+-parseInt(f(0xa5))/0x6+parseInt(f(0xa8))/0x7+parseInt(f(0xaa))/0x8+-parseInt(f(0xa7))/0x9*(parseInt(f(0xac))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x94a4e));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0xa2)]()[h(0xab)](h(0xa1))[h(0xa2)]()['constructor'](a84a)['search'](h(0xa1));});a84a();import'./run.command.js';function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0xa1;var f=c[d];return f;},a84d(a,b);}import'./docker.sub.cmd.js';function a84c(){var i=['11089490ApAHwE','2136UyuEsV','6819YXJmRX','(((.+)+)+)+$','toString','apply','4643665dYkPky','1662414QArUlj','1iasyoZ','9Cptgeg','6341804LCUFmg','648042WasnIa','8399360vlEPGg','search'];a84c=function(){return i;};return a84c();}
1
+ function a84c(){var i=['520PsOldp','toString','26RSwgPt','search','86116meCnBm','(((.+)+)+)+$','86934QuytOT','apply','22617PNUwyP','1013872BEBSPa','165138KgLOfx','2448670zMHyjc','63gvztRR','3974210oIEYWu'];a84c=function(){return i;};return a84c();}(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0xf1))/0x1+-parseInt(f(0xef))/0x2*(parseInt(f(0xf3))/0x3)+parseInt(f(0xe8))/0x4+-parseInt(f(0xec))/0x5+-parseInt(f(0xe9))/0x6+-parseInt(f(0xe7))/0x7*(parseInt(f(0xed))/0x8)+-parseInt(f(0xeb))/0x9*(-parseInt(f(0xea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x73507));function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0xe6;var f=c[d];return f;},a84d(a,b);}var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a['toString']()[h(0xf0)]('(((.+)+)+)+$')[h(0xee)]()['constructor'](a84a)[h(0xf0)](h(0xf2));});a84a();import'./run.command.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a85l=a85d;(function(a,b){const i=a85d,c=a();while(!![]){try{const d=parseInt(i(0x9b))/0x1+parseInt(i(0xb3))/0x2+-parseInt(i(0xad))/0x3*(-parseInt(i(0xb9))/0x4)+-parseInt(i(0x96))/0x5*(parseInt(i(0x9c))/0x6)+parseInt(i(0xa1))/0x7*(parseInt(i(0xa0))/0x8)+parseInt(i(0xb8))/0x9+-parseInt(i(0x9e))/0xa*(parseInt(i(0xa4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x2adf1));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a85d;if(c){const e=c[j(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const k=a85d;return a85a[k(0xa3)]()[k(0xab)](k(0xb5))['toString']()[k(0xa7)](a85a)['search'](k(0xb5));});a85a();function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x96;let f=c[d];return f;},a85d(a,b);}import a85e from'./run.command.js';import{execSync}from'child_process';import a85f from'path';import a85g from'fs';function a85c(){const n=['40nWqCRE','appName','392liCxQD','48209nUqQbi','pm2.config.js','toString','1954414GWhcdW','join','maka\x20run\x20docker','constructor','PM2\x20Config\x20File:\x20','createFile','\x20up\x20--remove-orphans','search','\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20','15EOgOlS','docker-compose.yaml','docker','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','getMakaProjectConfig','notice','476848LVFUGQ','exit','(((.+)+)+)+$','config/docker-compose.yaml','existsSync','430668FKynTn','227516ItoegK','5VFlEuX','apply','fsi','docker-compose\x20--project-directory\x20','templateContent','119919GPihXj','850536SCkcZf','ensureAllDependenciesInstalled'];a85c=function(){return n;};return a85c();}import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';Command['create']({'name':a85l(0xaf),'aliases':['d'],'shortDesc':a85l(0xb0),'description':a85l(0xac),'usage':a85l(0xa6),'isPro':![],'validOpts':['']},async function(){const m=a85l;try{const a=this[m(0x98)][m(0xb1)]();await this['fsi'][m(0x9d)]();const b=this[m(0x98)]['getAppConfigPath'](m(0xaf)),c=a85f['join'](b,m(0xae)),d=a85f[m(0xa5)](b,m(0xa2));Log[m(0xb2)](m(0xa8)+d),Log[m(0xb2)]('Docker\x20Compose\x20Path:\x20'+c);if(!a85g[m(0xb7)](c)){const f={'app':a[m(0x9f)],'appFileCase':paramCase(a[m(0x9f)])},g=this['fsi'][m(0x9a)]({'srcPath':m(0xb6),'context':f})+'\x0a';this[m(0x98)][m(0xa9)]({'filePath':c,'data':g});}execSync(m(0x99)+b+m(0xaa),{'stdio':'inherit'});}catch(h){process[m(0xb4)](0x1);}},a85e);
1
+ const a85k=a85d;(function(a,b){const i=a85d,c=a();while(!![]){try{const d=parseInt(i(0xc9))/0x1+-parseInt(i(0xb4))/0x2*(parseInt(i(0xae))/0x3)+-parseInt(i(0xb6))/0x4+-parseInt(i(0xc3))/0x5+parseInt(i(0xc8))/0x6+-parseInt(i(0xc7))/0x7*(parseInt(i(0xbc))/0x8)+parseInt(i(0xbf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x94620));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const j=a85d;return a85a[j(0xb1)]()[j(0xab)](j(0xcb))[j(0xb1)]()[j(0xc6)](a85a)[j(0xab)](j(0xcb));});a85a();import a85e from'./run.command.js';function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xab;let f=c[d];return f;},a85d(a,b);}import{execSync}from'child_process';import a85f from'path';import a85g from'fs';function a85c(){const m=['\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20','705892DlGBcT','createFile','templateContent','fsi','getMakaProjectConfig','docker-compose.yaml','1062592ARaGtb','inherit','getAppConfigPath','4040685eWVYyv','PM2\x20Config\x20File:\x20','create','maka\x20run\x20docker','2761635IcROre','exit','\x20up\x20--remove-orphans','constructor','35dVPdOn','7258470wbcIgT','1161947nvaNgv','pm2.config.js','(((.+)+)+)+$','appName','search','existsSync','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','17697ekiKgD','ensureAllDependenciesInstalled','docker','toString','docker-compose\x20--project-directory\x20','join','278TvKFKQ'];a85c=function(){return m;};return a85c();}import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a85k(0xc1)]({'name':a85k(0xb0),'aliases':['d'],'shortDesc':a85k(0xad),'description':a85k(0xb5),'usage':a85k(0xc2),'isPro':![],'validOpts':['']},async function(){const l=a85k;try{const a=this[l(0xb9)][l(0xba)]();await this['fsi'][l(0xaf)]();const b=this[l(0xb9)][l(0xbe)](l(0xb0)),c=a85f['join'](b,l(0xbb)),d=a85f[l(0xb3)](b,l(0xca));Log['notice'](l(0xc0)+d),Log['notice']('Docker\x20Compose\x20Path:\x20'+c);if(!a85g[l(0xac)](c)){const f={'app':a[l(0xcc)],'appFileCase':paramCase(a[l(0xcc)])},g=this[l(0xb9)][l(0xb8)]({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this[l(0xb9)][l(0xb7)]({'filePath':c,'data':g});}execSync(l(0xb2)+b+l(0xc5),{'stdio':l(0xbd)});}catch(h){process[l(0xc4)](0x1);}},a85e);
@@ -1 +1 @@
1
- const a86t=a86d;(function(a,b){const p=a86d,c=a();while(!![]){try{const d=parseInt(p(0x10c))/0x1*(-parseInt(p(0x130))/0x2)+parseInt(p(0x126))/0x3+-parseInt(p(0x13c))/0x4+parseInt(p(0x11f))/0x5+parseInt(p(0x12f))/0x6+parseInt(p(0x101))/0x7*(-parseInt(p(0x137))/0x8)+-parseInt(p(0x131))/0x9*(parseInt(p(0x10f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xc6284));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a86d;if(c){const e=c[q(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const r=a86d;return a86a[r(0x113)]()[r(0x117)](r(0x127))[r(0x113)]()[r(0x128)](a86a)[r(0x117)]('(((.+)+)+)+$');});a86a();function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0xff;let f=c[d];return f;},a86d(a,b);}import a86e from'path';function a86c(){const w=['ensureAllDependenciesInstalled','5946104wTlWUZ','production','notice','fsi','cordova-build','890176nVIADy','settings','local','7CilbHX','push','create','env','settings.json','app','info','Meteor\x20Settings:\x20','sep','Node\x20Env\x20Config:\x20','openSync','135301RcsMeY','autoupdate','--env','2390YvBiKu','--exclude-archs','length','run','toString','exit','\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x20\x20','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','search','getAppConfigPath','checkMeteorPackage','createFile','Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)','mobileServer','forEach','warn','5052390ZJjNvc','excludeArchs','filter','isFile','split','concat','inspect','632841gEymOB','(((.+)+)+)+$','constructor','ios','apply','--production','boolean','slice','splice','7072260hBlFIn','6BwnZed','8163DxubMc','join','findProjectDirectory','Run\x20your\x20Meteor\x20application','rawLogs'];a86c=function(){return w;};return a86c();}import a86f from'fs';import a86g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const s=a86d;a86f[s(0x10b)](a,'r'),a86g['config']({'path':a});},Run=Command[a86t(0x103)]({'name':'run','mustBeInMakaProject':!![],'aliases':['r'],'shortDesc':a86t(0x134),'description':a86t(0x115),'validOpts':[a86t(0x104),a86t(0x135),'port',a86t(0x125),a86t(0x11c),'verbose','allowIncompatibleUpdate','extraPackages','x',a86t(0x120),a86t(0x138),'ci']},async function(a,b){const u=a86t;try{await this['fsi'][u(0x119)](u(0x10d),{'shouldInstall':!![]}),await this[u(0x13a)][u(0x136)]();const c=a[0x0];if(c===u(0x129)){const l=this[u(0x13a)][u(0x133)](),m=a86e[u(0x132)](l,u(0x106),'.meteor',u(0x100),u(0x13b));this[u(0x13a)]['isDirectory'](m)&&await rimraf(m);}!b[u(0x120)]&&!b['x']&&(a=a[u(0x124)]([u(0x110),'\x22web.browser.legacy\x22']));if(b[u(0x11c)]&&typeof b[u(0x11c)]===u(0x12c))throw u(0x11b);const d=b[u(0x104)]?b[u(0x104)]:'development',f=this['fsi'][u(0x118)](d),g=a86e[u(0x132)](f,'process.env');let h=a86e[u(0x132)](f,'settings.json');b[u(0xff)]?h=b[u(0xff)]:h=a86e[u(0x132)](f,u(0x105));this[u(0x13a)][u(0x122)](g)?(Log[u(0x139)](u(0x10a)+g),syncSource(g)):(Log[u(0x107)](u(0x116)+g),this['fsi'][u(0x11a)]({'filePath':g,'data':''}));this[u(0x13a)][u(0x122)](h)?(Log[u(0x139)](u(0x108)+h),a=a['concat'](['--settings',h])):Log[u(0x11e)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+h);const i=f[u(0x123)](a86e[u(0x109)]),j=i[i[u(0x111)]-0x1];j==='production'&&a[u(0x102)](u(0x12b));const k=process['argv'][u(0x12d)](0x2)['filter'](n=>n!==u(0x112))[u(0x121)](n=>n!==a[0x0]);k[u(0x11d)]((n,o)=>{const v=u;n===v(0x10e)&&k[v(0x12e)](o,0x2),n==='-e'&&k[v(0x12e)](o,0x2);}),this[u(0x13a)]['invokeMeteorCommand'](u(0x112),a['concat'](k));}catch(n){Log['error'](n),process[u(0x114)](0x1);}});export default Run;
1
+ const a86s=a86d;(function(a,b){const p=a86d,c=a();while(!![]){try{const d=parseInt(p(0xa1))/0x1*(-parseInt(p(0xb9))/0x2)+-parseInt(p(0xbc))/0x3*(-parseInt(p(0xc2))/0x4)+parseInt(p(0x98))/0x5*(-parseInt(p(0x8e))/0x6)+parseInt(p(0xa7))/0x7*(-parseInt(p(0xb5))/0x8)+-parseInt(p(0xc4))/0x9*(parseInt(p(0xbd))/0xa)+parseInt(p(0xa4))/0xb+-parseInt(p(0xab))/0xc*(-parseInt(p(0xc5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x6acbe));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const q=a86d;return a86a[q(0xcb)]()[q(0xb7)](q(0xac))[q(0xcb)]()[q(0x9a)](a86a)[q(0xb7)](q(0xac));});a86a();function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x8e;let f=c[d];return f;},a86d(a,b);}import a86e from'path';import a86f from'fs';function a86c(){const v=['--exclude-archs','\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x20\x20','slice','error','push','concat','verbose','config','getAppConfigPath','956485fFvqFI','app','constructor','excludeArchs','notice','run','join','isDirectory','Node\x20Env\x20Config:\x20','412631JtQUCI','forEach','split','7076388HjSzbh','fsi','extraPackages','567014KzBSxo','filter','settings.json','production','3385632uKSRcB','(((.+)+)+)+$','ios','Run\x20your\x20Meteor\x20application','argv','local','--production','autoupdate','cordova-build','--env','40nxXHmo','--settings','search','create','2aSVmmw','settings','exit','12zvEozJ','70GXNYsh','info','splice','Meteor\x20Settings:\x20','checkMeteorPackage','621416poghGl','port','608733EyjSVP','39kQjqzd','process.env','mobileServer','findProjectDirectory','ensureAllDependenciesInstalled','openSync','toString','env','.meteor','isFile','boolean','invokeMeteorCommand','12FWqegI'];a86c=function(){return v;};return a86c();}import a86g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const r=a86d;a86f[r(0xca)](a,'r'),a86g[r(0x96)]({'path':a});},Run=Command[a86s(0xb8)]({'name':a86s(0x9d),'mustBeInMakaProject':!![],'aliases':['r'],'shortDesc':a86s(0xae),'description':a86s(0x90),'validOpts':[a86s(0xcc),'rawLogs',a86s(0xc3),'inspect',a86s(0xc7),a86s(0x95),'allowIncompatibleUpdate',a86s(0xa6),'x',a86s(0x9b),a86s(0xaa),'ci']},async function(a,b){const t=a86s;try{await this[t(0xa5)][t(0xc1)](t(0xb2),{'shouldInstall':!![]}),await this['fsi'][t(0xc9)]();const c=a[0x0];if(c===t(0xad)){const l=this['fsi'][t(0xc8)](),m=a86e['join'](l,t(0x99),t(0xcd),t(0xb0),t(0xb3));this['fsi'][t(0x9f)](m)&&await rimraf(m);}!b[t(0x9b)]&&!b['x']&&(a=a[t(0x94)]([t(0x8f),'\x22web.browser.legacy\x22']));if(b[t(0xc7)]&&typeof b['mobileServer']===t(0xcf))throw'Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)';const d=b[t(0xcc)]?b[t(0xcc)]:'development',f=this[t(0xa5)][t(0x97)](d),g=a86e['join'](f,t(0xc6));let h=a86e[t(0x9e)](f,t(0xa9));b[t(0xba)]?h=b[t(0xba)]:h=a86e[t(0x9e)](f,t(0xa9));this[t(0xa5)][t(0xce)](g)?(Log[t(0x9c)](t(0xa0)+g),syncSource(g)):(Log[t(0xbe)]('Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20'+g),this['fsi']['createFile']({'filePath':g,'data':''}));this[t(0xa5)][t(0xce)](h)?(Log['notice'](t(0xc0)+h),a=a[t(0x94)]([t(0xb6),h])):Log['warn']('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+h);const i=f[t(0xa3)](a86e['sep']),j=i[i['length']-0x1];j===t(0xaa)&&a[t(0x93)](t(0xb1));const k=process[t(0xaf)][t(0x91)](0x2)[t(0xa8)](n=>n!==t(0x9d))[t(0xa8)](n=>n!==a[0x0]);k[t(0xa2)]((n,o)=>{const u=t;n===u(0xb4)&&k[u(0xbf)](o,0x2),n==='-e'&&k[u(0xbf)](o,0x2);}),this[t(0xa5)][t(0xd0)](t(0x9d),a[t(0x94)](k));}catch(n){Log[t(0x92)](n),process[t(0xbb)](0x1);}});export default Run;
@@ -1 +1 @@
1
- (function(a,b){var f=a87d,c=a();while(!![]){try{var d=parseInt(f(0x12f))/0x1+-parseInt(f(0x136))/0x2*(-parseInt(f(0x12d))/0x3)+-parseInt(f(0x130))/0x4+parseInt(f(0x12e))/0x5*(parseInt(f(0x13a))/0x6)+-parseInt(f(0x131))/0x7+-parseInt(f(0x139))/0x8*(-parseInt(f(0x133))/0x9)+-parseInt(f(0x134))/0xa*(-parseInt(f(0x13b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x503da));var a87b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a87d;if(c){var e=c[g(0x132)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){var h=a87d;return a87a[h(0x135)]()[h(0x137)](h(0x13c))[h(0x135)]()[h(0x138)](a87a)[h(0x137)]('(((.+)+)+)+$');});function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0x12d;var f=c[d];return f;},a87d(a,b);}a87a();import'./set.command.js';function a87c(){var i=['constructor','48HOMhNO','11838LTKRhH','1680118ZBvYlG','(((.+)+)+)+$','833265HKCkbW','505cZcPGw','454923pvJSTO','2208384LAoUfB','4404995EwiaZq','apply','638037TZaaKN','10ZAqrLZ','toString','2qfEADe','search'];a87c=function(){return i;};return a87c();}import'./global.sub.cmd.js';import'./local.sub.cmd.js';
1
+ function a87c(){var h=['toString','1959akOlfs','177105KOJvmr','629760TpigkM','74IuXJnN','1765098cKeXDi','769912Rubiit','123746Awxphe','constructor','40923NJoWBf','1304mlZhfD','search'];a87c=function(){return h;};return a87c();}(function(a,b){var f=a87d,c=a();while(!![]){try{var d=parseInt(f(0x105))/0x1*(parseInt(f(0xfc))/0x2)+-parseInt(f(0xfb))/0x3+-parseInt(f(0xfe))/0x4+parseInt(f(0xfa))/0x5+-parseInt(f(0xfd))/0x6+parseInt(f(0xff))/0x7+-parseInt(f(0x102))/0x8*(-parseInt(f(0x101))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x298b2));function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0xfa;var f=c[d];return f;},a87d(a,b);}var a87b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){var g=a87d;return a87a[g(0x104)]()['search']('(((.+)+)+)+$')[g(0x104)]()[g(0x100)](a87a)[g(0x103)]('(((.+)+)+)+$');});a87a();import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
@@ -1 +1 @@
1
- const a88j=a88d;(function(a,b){const h=a88d,c=a();while(!![]){try{const d=-parseInt(h(0x156))/0x1+-parseInt(h(0x15e))/0x2*(-parseInt(h(0x161))/0x3)+-parseInt(h(0x14f))/0x4+parseInt(h(0x164))/0x5*(-parseInt(h(0x15c))/0x6)+-parseInt(h(0x15d))/0x7+parseInt(h(0x15f))/0x8+parseInt(h(0x16e))/0x9*(parseInt(h(0x167))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x977ba));function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x147;let f=c[d];return f;},a88d(a,b);}const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const i=a88d;return a88a[i(0x15a)]()[i(0x151)](i(0x14e))[i(0x15a)]()['constructor'](a88a)[i(0x151)]('(((.+)+)+)+$');});a88a();import a88e from'path';import a88f from'./set.command.js';import{Command}from'../../command.js';function a88c(){const l=['4147458xkFbiz','440986MnOYOd','9258336NwRJBI','boolean','3TCsIyP','workspace','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','845pLDKnr','maka\x20set:gc\x20--insecure\x20<path>','global-config','12224090leGXdv','Set\x20workspace:\x20','success','setGlobalConfig','pallet','help','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','9CrFcNe','isDirectory','exit','openai','Set\x20CA\x20Cert\x20Path:\x20','maka\x20set:global-config\x20--cacert\x20<path>','disallowInsecure','Set\x20global\x20Maka-CLI\x20settings','(((.+)+)+)+$','3555692LjymjF','cacert','search','maka\x20set:global-config','Set\x20OpenAI\x20Key:\x20','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','fsi','303784lXqPsR','dark','error','Could\x20not\x20find\x20directory','toString','allowInsecure','6906lkeWAe'];a88c=function(){return l;};return a88c();}import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a88j(0x166),'usage':a88j(0x152),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a88j(0x150),'boolFlag':![]},{'name':'allowInsecure','boolFlag':!![]},{'name':a88j(0x14c),'boolFlag':!![]},{'name':a88j(0x162),'boolFlag':![]},{'name':a88j(0x149),'boolFlag':![]},{'name':a88j(0x16c),'boolFlag':!![]},{'name':a88j(0x16b),'values':['light',a88j(0x157)]}],'shortDesc':a88j(0x14d),'description':a88j(0x163),'examples':[a88j(0x14b),a88j(0x165),'maka\x20set:gc\x20--workspace\x20<path>']},async function(a,b){const k=a88j;try{if(b['cacert']){if(this[k(0x155)]['isFile'](b[k(0x150)]))await this[k(0x155)][k(0x16a)]({'cert':b['cacert']}),Log['success'](k(0x14a)+b[k(0x150)]);else{const c=typeof b[k(0x150)]===k(0x160)?k(0x154):k(0x16d)+b[k(0x150)];throw Log[k(0x158)](c);}}if(b[k(0x162)]){const d=this[k(0x155)][k(0x147)](b[k(0x162)]);if(d)await this[k(0x155)][k(0x16a)]({'workspace':a88e['resolve'](b['workspace'])}),Log[k(0x169)](k(0x168)+a88e['resolve'](b[k(0x162)]));else throw Log[k(0x158)](k(0x159));}b[k(0x149)]&&(await this['fsi']['setGlobalConfig']({'openai':b[k(0x149)]}),Log[k(0x169)](k(0x153)+b['openai']));b[k(0x16b)]&&(await this[k(0x155)][k(0x16a)]({'pallet':b[k(0x16b)]}),Log[k(0x169)]('Set\x20color\x20pallet\x20to:\x20'+b[k(0x16b)]));if(b[k(0x15b)]){if(b[k(0x15b)]&&b['disallowInsecure'])throw Log[k(0x158)]('One\x20or\x20the\x20other\x20buddy');let f=b['allowInsecure'];b['disallowInsecure']&&(f=![]),await this[k(0x155)]['setGlobalConfig']({'allowInsecure':f}),Log[k(0x169)]('Set\x20allowInsecure:\x20'+f);}process[k(0x148)](0x0);}catch(g){console[k(0x158)](g),process[k(0x148)](0x0);}},a88f);
1
+ function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x171;let f=c[d];return f;},a88d(a,b);}const a88k=a88d;(function(a,b){const h=a88d,c=a();while(!![]){try{const d=-parseInt(h(0x172))/0x1*(-parseInt(h(0x173))/0x2)+-parseInt(h(0x19e))/0x3*(parseInt(h(0x197))/0x4)+-parseInt(h(0x176))/0x5*(parseInt(h(0x17a))/0x6)+parseInt(h(0x178))/0x7*(-parseInt(h(0x198))/0x8)+parseInt(h(0x185))/0x9*(-parseInt(h(0x184))/0xa)+parseInt(h(0x17d))/0xb+parseInt(h(0x192))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xcaca6));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a88d;if(c){const e=c[i(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const j=a88d;return a88a[j(0x187)]()[j(0x196)](j(0x19d))[j(0x187)]()[j(0x174)](a88a)[j(0x196)](j(0x19d));});a88a();import a88e from'path';function a88c(){const m=['success','global-config','37760004REZcmQ','isDirectory','maka\x20set:global-config','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','search','41092HaQihP','24872LKfzWE','apply','Set\x20workspace:\x20','openai','resolve','(((.+)+)+)+$','321DeKflv','Set\x20CA\x20Cert\x20Path:\x20','3037zGNIAr','164cHpvcp','constructor','allowInsecure','1865khOuln','create','2947NwhsUb','Set\x20global\x20Maka-CLI\x20settings','13488gRdyIm','pallet','dark','16748633EDDWHW','workspace','help','maka\x20set:gc\x20--insecure\x20<path>','exit','Set\x20allowInsecure:\x20','disallowInsecure','15100qghMyf','5013oLVyul','maka\x20set:global-config\x20--cacert\x20<path>','toString','fsi','setGlobalConfig','error','cacert','One\x20or\x20the\x20other\x20buddy','light','isFile','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'];a88c=function(){return m;};return a88c();}import a88f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a88k(0x177)]({'name':a88k(0x191),'usage':a88k(0x194),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a88k(0x18b),'boolFlag':![]},{'name':a88k(0x175),'boolFlag':!![]},{'name':'disallowInsecure','boolFlag':!![]},{'name':'workspace','boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a88k(0x17f),'boolFlag':!![]},{'name':a88k(0x17b),'values':[a88k(0x18d),a88k(0x17c)]}],'shortDesc':a88k(0x179),'description':a88k(0x195),'examples':[a88k(0x186),a88k(0x180),'maka\x20set:gc\x20--workspace\x20<path>']},async function(a,b){const l=a88k;try{if(b[l(0x18b)]){if(this[l(0x188)][l(0x18e)](b['cacert']))await this[l(0x188)][l(0x189)]({'cert':b[l(0x18b)]}),Log[l(0x190)](l(0x171)+b[l(0x18b)]);else{const c=typeof b[l(0x18b)]==='boolean'?'Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.':l(0x18f)+b[l(0x18b)];throw Log['error'](c);}}if(b[l(0x17e)]){const d=this[l(0x188)][l(0x193)](b['workspace']);if(d)await this[l(0x188)][l(0x189)]({'workspace':a88e[l(0x19c)](b['workspace'])}),Log[l(0x190)](l(0x19a)+a88e[l(0x19c)](b[l(0x17e)]));else throw Log[l(0x18a)]('Could\x20not\x20find\x20directory');}b['openai']&&(await this[l(0x188)][l(0x189)]({'openai':b[l(0x19b)]}),Log['success']('Set\x20OpenAI\x20Key:\x20'+b[l(0x19b)]));b[l(0x17b)]&&(await this[l(0x188)][l(0x189)]({'pallet':b[l(0x17b)]}),Log['success']('Set\x20color\x20pallet\x20to:\x20'+b[l(0x17b)]));if(b[l(0x175)]){if(b[l(0x175)]&&b[l(0x183)])throw Log[l(0x18a)](l(0x18c));let f=b['allowInsecure'];b[l(0x183)]&&(f=![]),await this['fsi']['setGlobalConfig']({'allowInsecure':f}),Log[l(0x190)](l(0x182)+f);}process[l(0x181)](0x0);}catch(g){console[l(0x18a)](g),process[l(0x181)](0x0);}},a88f);
@@ -1 +1 @@
1
- var a89i=a89d;function a89c(){var k=['Sorry,\x20not\x20implemented\x20yet','4910NoPCyY','400IgANWd','361818zHDIIl','create','1798038vwJSiR','2214OzAxIL','constructor','notice','9294BGkpJs','1155904Fefybl','apply','436562jPviJo','6QSfJia','Set\x20local\x20maka\x20app\x20settings','1064nLsEKT','15032MiPjsm','(((.+)+)+)+$','maka\x20set:local-config'];a89c=function(){return k;};return a89c();}(function(a,b){var f=a89d,c=a();while(!![]){try{var d=parseInt(f(0x199))/0x1+-parseInt(f(0x19a))/0x2*(parseInt(f(0x190))/0x3)+parseInt(f(0x197))/0x4+-parseInt(f(0x18f))/0x5*(-parseInt(f(0x196))/0x6)+-parseInt(f(0x19c))/0x7*(parseInt(f(0x18a))/0x8)+-parseInt(f(0x193))/0x9*(parseInt(f(0x18e))/0xa)+parseInt(f(0x192))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x3bbe0));var a89b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a89d;if(c){var e=c[g(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){var h=a89d;return a89a['toString']()['search']('(((.+)+)+)+$')['toString']()[h(0x194)](a89a)['search'](h(0x18b));});a89a();import a89e from'./set.command.js';import{Command}from'../../command.js';function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x18a;var f=c[d];return f;},a89d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a89i(0x191)]({'name':'local-config','usage':a89i(0x18c),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':a89i(0x19b),'validOpts':[],'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20'},async function(){var j=a89i;Log[j(0x195)](j(0x18d));},a89e);
1
+ var a89i=a89d;function a89c(){var k=['3173571BVXpem','constructor','1006146PvkstN','8cxbhKG','2018105eOiXXT','toString','6209581LZMHkq','7006890YUxokr','2GWwwiw','(((.+)+)+)+$','Sorry,\x20not\x20implemented\x20yet','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','notice','1603836wkYjyN','create','Set\x20local\x20maka\x20app\x20settings','local-config','search','13113081nZcveA','apply'];a89c=function(){return k;};return a89c();}(function(a,b){var f=a89d,c=a();while(!![]){try{var d=-parseInt(f(0x1ab))/0x1*(parseInt(f(0x1b1))/0x2)+-parseInt(f(0x1a9))/0x3+-parseInt(f(0x1b6))/0x4+-parseInt(f(0x1ad))/0x5+parseInt(f(0x1b0))/0x6+parseInt(f(0x1af))/0x7*(parseInt(f(0x1ac))/0x8)+parseInt(f(0x1bb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x9d0fc));var a89b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a89d;if(c){var e=c[g(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){var h=a89d;return a89a[h(0x1ae)]()['search']('(((.+)+)+)+$')[h(0x1ae)]()[h(0x1aa)](a89a)[h(0x1ba)](h(0x1b2));});a89a();import a89e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x1a9;var f=c[d];return f;},a89d(a,b);}Command[a89i(0x1b7)]({'name':a89i(0x1b9),'usage':'maka\x20set:local-config','examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':a89i(0x1b8),'validOpts':[],'description':a89i(0x1b4)},async function(){var j=a89i;Log[j(0x1b5)](j(0x1b3));},a89e);
@@ -1 +1 @@
1
- function a90c(){const k=['2104146HKplkq','1166SqsyOw','maka\x20set:<sub-command>','1310mESdQt','runSubCommand','set','10kmDrYY','toString','create','constructor','5798275XcYPqn','8bOgaCr','1608492jenkSO','38604nwcPCQ','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','87JfjzvL','apply','21023134aiHmLO','search','findSubCommand','3016080vOeMTj'];a90c=function(){return k;};return a90c();}const a90i=a90d;(function(a,b){const f=a90d,c=a();while(!![]){try{const d=-parseInt(f(0x1a4))/0x1*(-parseInt(f(0x1a6))/0x2)+parseInt(f(0x1b2))/0x3*(-parseInt(f(0x1b0))/0x4)+-parseInt(f(0x1b7))/0x5+-parseInt(f(0x1af))/0x6+-parseInt(f(0x1ad))/0x7*(parseInt(f(0x1ae))/0x8)+-parseInt(f(0x1b8))/0x9*(parseInt(f(0x1a9))/0xa)+parseInt(f(0x1b4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x70b3c));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a90d;if(c){const e=c[g(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const h=a90d;return a90a['toString']()['search']('(((.+)+)+)+$')[h(0x1aa)]()[h(0x1ac)](a90a)[h(0x1b5)]('(((.+)+)+)+$');});a90a();import{Command}from'../../command.js';const SetCommand=Command[a90i(0x1ab)]({'name':a90i(0x1a8),'usage':a90i(0x1a5),'shortDesc':'Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','description':a90i(0x1b1),'validOpts':[]},async function(a,b){const j=a90i,c=a[0x0],d=this[j(0x1b6)](c);d&&this[j(0x1a7)](c,a,b);});function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a90d(a,b);}export default SetCommand;
1
+ const a90i=a90d;(function(a,b){const f=a90d,c=a();while(!![]){try{const d=-parseInt(f(0x161))/0x1*(-parseInt(f(0x16e))/0x2)+parseInt(f(0x169))/0x3*(parseInt(f(0x172))/0x4)+parseInt(f(0x16d))/0x5*(-parseInt(f(0x166))/0x6)+-parseInt(f(0x165))/0x7*(parseInt(f(0x170))/0x8)+-parseInt(f(0x171))/0x9*(-parseInt(f(0x15e))/0xa)+-parseInt(f(0x15f))/0xb+-parseInt(f(0x168))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xcbda0));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a90d;if(c){const e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const h=a90d;return a90a[h(0x167)]()[h(0x163)](h(0x173))['toString']()[h(0x160)](a90a)[h(0x163)](h(0x173));});a90a();import{Command}from'../../command.js';function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x15e;let f=c[d];return f;},a90d(a,b);}function a90c(){const k=['(((.+)+)+)+$','156510iQlLFq','63415rZrqNp','constructor','53NULGCs','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','search','create','7Eazvch','492GwawQp','toString','6794196EnHtBS','3lxJmev','maka\x20set:<sub-command>','findSubCommand','apply','57580MsgCbT','45938AlsnDd','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','992336cBqmls','54oBtjQm','4656060ledhSt'];a90c=function(){return k;};return a90c();}const SetCommand=Command[a90i(0x164)]({'name':'set','usage':a90i(0x16a),'shortDesc':a90i(0x162),'description':a90i(0x16f),'validOpts':[]},async function(a,b){const j=a90i,c=a[0x0],d=this[j(0x16b)](c);d&&this['runSubCommand'](c,a,b);});export default SetCommand;
@@ -1 +1 @@
1
- const a91m=a91d;(function(a,b){const j=a91d,c=a();while(!![]){try{const d=-parseInt(j(0x20c))/0x1*(parseInt(j(0x20a))/0x2)+parseInt(j(0x1f2))/0x3+-parseInt(j(0x20b))/0x4+parseInt(j(0x1f4))/0x5+-parseInt(j(0x1fb))/0x6*(-parseInt(j(0x1fe))/0x7)+-parseInt(j(0x1f5))/0x8*(parseInt(j(0x200))/0x9)+-parseInt(j(0x1fd))/0xa*(parseInt(j(0x202))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x77139));function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a91d(a,b);}const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a91d;if(c){const e=c[k(0x1f6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const l=a91d;return a91a[l(0x208)]()[l(0x1f9)]('(((.+)+)+)+$')[l(0x208)]()[l(0x201)](a91a)[l(0x1f9)](l(0x210));});a91a();import a91e from'fs';import a91f from'path';import{Command}from'../command.js';function a91c(){const o=['(((.+)+)+)+$','sshSync','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','ssh.json','1379046LdHCLb','verbose','2264205rxvGnt','104dbgmtL','apply','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','join','search','ssh','30LUluaN','fsi','10vlHpLC','973462ReZTud','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','169893fmBUcO','constructor','3049838VMRQks','env','maka\x20ssh\x20--env\x20staging','parse','readFileSync','maka\x20ssh\x20<command>','toString','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','228842CjUBpX','1474460iwYiCY','2BQvNaY','create','error','length'];a91c=function(){return o;};return a91c();}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a91m(0x20d)]({'name':a91m(0x1fa),'usage':a91m(0x207),'mustBeInMakaProject':!![],'requiredOpts':[a91m(0x203)],'validOpts':['env',a91m(0x1f3)],'shortDesc':a91m(0x209),'examples':['maka\x20ssh\x20--env\x20dev',a91m(0x204),'maka\x20ssh\x20--env\x20prod',a91m(0x1f7),a91m(0x212),a91m(0x1ff)]},async function(a,b){const n=a91m;try{const c=this[n(0x1fc)]['getAppConfigPath'](b[n(0x203)]);let d='';a[n(0x20f)]>0x0&&(d=a[0x0]);const f=a91f[n(0x1f8)](c,n(0x1f1)),g=a91e[n(0x206)](f)[n(0x208)](),h=JSON[n(0x205)](g);Object['assign'](h,{'env':c}),SSH[n(0x211)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b[n(0x1f3)]});}catch(i){Log[n(0x20e)](i),process['exit'](0x1);}});
1
+ const a91m=a91d;(function(a,b){const j=a91d,c=a();while(!![]){try{const d=-parseInt(j(0x109))/0x1+parseInt(j(0x106))/0x2*(parseInt(j(0x102))/0x3)+parseInt(j(0x121))/0x4*(-parseInt(j(0x11f))/0x5)+-parseInt(j(0x114))/0x6+parseInt(j(0x118))/0x7*(parseInt(j(0x11a))/0x8)+parseInt(j(0x115))/0x9+parseInt(j(0x111))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x1db74));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a91d;if(c){const e=c[k(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const l=a91d;return a91a[l(0x11b)]()[l(0x123)](l(0x112))[l(0x11b)]()[l(0x105)](a91a)['search'](l(0x112));});a91a();function a91c(){const o=['17983TvZtQx','maka\x20ssh\x20--env\x20prod','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','readFileSync','fsi','join','ssh.json','length','1652790EgFnGp','(((.+)+)+)+$','error','735906FAKNig','588555DJEoJq','maka\x20ssh\x20--env\x20dev','verbose','42wdQwTJ','exit','14880qRxcJs','toString','ssh','env','parse','858560TxenDZ','assign','4rqtWrL','maka\x20ssh\x20--env\x20staging','search','apply','9wcDjJw','create','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','constructor','128152dMDZZT','sshSync','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.'];a91c=function(){return o;};return a91c();}import a91e from'fs';function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x101;let f=c[d];return f;},a91d(a,b);}import a91f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a91m(0x103)]({'name':a91m(0x11c),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a91m(0x11d)],'validOpts':[a91m(0x11d),a91m(0x117)],'shortDesc':a91m(0x108),'examples':[a91m(0x116),a91m(0x122),a91m(0x10a),a91m(0x104),a91m(0x10b),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22']},async function(a,b){const n=a91m;try{const c=this[n(0x10d)]['getAppConfigPath'](b['env']);let d='';a[n(0x110)]>0x0&&(d=a[0x0]);const f=a91f[n(0x10e)](c,n(0x10f)),g=a91e[n(0x10c)](f)[n(0x11b)](),h=JSON[n(0x11e)](g);Object[n(0x120)](h,{'env':c}),SSH[n(0x107)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b[n(0x117)]});}catch(i){Log[n(0x113)](i),process[n(0x119)](0x1);}});
@@ -1 +1 @@
1
- const a92y=a92d;function a92c(){const A=['36282QauGWY','join','fsi','(((.+)+)+)+$','search','mkKeysDir','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','Remote\x20host\x20connection\x20successful','writeFileSync','maka\x20ssl\x20--env\x20dev\x20generate-csr','success','4qIzOpi','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','.csr','readFileSync','/ssh.json','ssh','[?]\x20Domains\x20to\x20register:\x20','ask','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','assign','1233272ITTntG','6364315FDZkgs','parse','.crt','ssl','withSpinner','generate-csr','\x20--email\x20','maka\x20ssl\x20[command]','66rUVGBb','appName','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','domains','57286BNsoAS','New\x20CSR\x20written\x20to\x20','.key','10GLYAdX','emailUpdate','getMakaProjectConfig','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','existsSync','sudo\x20snap\x20install\x20--classic\x20certbot','email','1075892augGgQ','genCSR','728WTbQaU','14403972DCwzyx','uname\x20-a','notice','toString','domainNames','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','stringify','Using\x20saved\x20letsencrypt\x20config','5151339AavBMs','letsencrypt.json','constructor','error','Create\x20and\x20manage\x20your\x20SSL\x20operations.','apply'];a92c=function(){return A;};return a92c();}(function(a,b){const v=a92d,c=a();while(!![]){try{const d=-parseInt(v(0x1f9))/0x1+-parseInt(v(0x1ef))/0x2*(parseInt(v(0x1eb))/0x3)+-parseInt(v(0x215))/0x4*(-parseInt(v(0x220))/0x5)+parseInt(v(0x20a))/0x6*(-parseInt(v(0x1fb))/0x7)+-parseInt(v(0x21f))/0x8+-parseInt(v(0x204))/0x9*(-parseInt(v(0x1f2))/0xa)+parseInt(v(0x1fc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xa2801));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a92d;if(c){const e=c[w(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const x=a92d;return a92a[x(0x1ff)]()[x(0x20e)](x(0x20d))[x(0x1ff)]()[x(0x206)](a92a)[x(0x20e)](x(0x20d));});a92a();import a92e from'fs';import a92f from'path';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a92d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':a92y(0x223),'usage':a92y(0x1ea),'validOpts':[a92y(0x1ee),a92y(0x1f8)],'requiredOpts':['env'],'shortDesc':a92y(0x208),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a92y(0x213),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a92y(0x1f5)]},async function(a,b){const z=a92y,c=this[z(0x20c)][z(0x1f4)](),d=this[z(0x20c)]['getAppConfigPath'](b['env']),f=this['fsi'][z(0x20f)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0x1e8))SSL[z(0x1fa)]({'keyName':c[z(0x1ec)]+z(0x1f1),'csrName':c[z(0x1ec)]+z(0x217),'cwd':f});else{if(g==='generate-ssc'){if(!a92e[z(0x1f6)](a92f[z(0x20b)](f,c[z(0x1ec)]+z(0x1f1))))throw z(0x201)+a92f[z(0x20b)](f,c[z(0x1ec)]+z(0x1f1));if(!a92e[z(0x1f6)](a92f[z(0x20b)](f,c[z(0x1ec)]+z(0x217))))throw z(0x216)+a92f[z(0x20b)](f,c[z(0x1ec)]+z(0x217));SSL['genSSC']({'keyName':c[z(0x1ec)]+z(0x1f1),'crtName':c[z(0x1ec)]+z(0x222),'cwd':f}),Log[z(0x1fe)](z(0x1f0)+f);}else{if(g==='letsencrypt'){let h=b[z(0x1ee)],i=b[z(0x1f8)];try{const p=a92e[z(0x218)](a92f[z(0x20b)](d,'letsencrypt.json'))[z(0x1ff)](),q=JSON['parse'](p);h=b['domains']?b[z(0x1ee)]:q[z(0x200)],i=b[z(0x1f8)]?b[z(0x1f8)]:q[z(0x1f3)],(!b[z(0x1f8)]||!b[z(0x1ee)])&&Log[z(0x1fe)](z(0x203));}catch(r){}const j=JSON[z(0x221)](a92e[z(0x218)](d+z(0x219))[z(0x1ff)]());Object[z(0x21e)](j,{'env':d}),Log[z(0x1fe)]('Checking\x20remote\x20host\x20availability');try{const s=SSH['ping'](z(0x1fd),j);if(!s)throw z(0x21d);if(s)Log[z(0x214)](z(0x211));}catch(t){Log[z(0x207)](t);return;}const k=Log[z(0x224)]();k['start']('Verifying\x20Letsencrypt\x20configuration'),SSH[z(0x21a)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...j}),SSH[z(0x21a)](z(0x1f7),{...j}),SSH[z(0x21a)](z(0x1ed),{...j}),k[z(0x214)]();const l=h?h:await Actions[z(0x21c)](z(0x21b)),m=i?i:await Actions[z(0x21c)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[z(0x21a)](z(0x210)+l+z(0x1e9)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x202)](n,null,0x2);a92e[z(0x212)](a92f[z(0x20b)](d,z(0x205)),o);}else throw'Please\x20provide\x20a\x20command.';}}}catch(u){console[z(0x207)](u),process['exit'](0x0);}});
1
+ const a92y=a92d;(function(a,b){const v=a92d,c=a();while(!![]){try{const d=-parseInt(v(0x11d))/0x1*(-parseInt(v(0x113))/0x2)+-parseInt(v(0x12a))/0x3+parseInt(v(0x109))/0x4+parseInt(v(0x131))/0x5*(parseInt(v(0x121))/0x6)+-parseInt(v(0x134))/0x7*(-parseInt(v(0x133))/0x8)+-parseInt(v(0x13e))/0x9*(parseInt(v(0x13c))/0xa)+parseInt(v(0x123))/0xb*(parseInt(v(0x117))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x26e05));function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x101;let f=c[d];return f;},a92d(a,b);}const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a92d;if(c){const e=c[w(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const x=a92d;return a92a['toString']()['search'](x(0x110))['toString']()[x(0x138)](a92a)[x(0x126)](x(0x110));});a92a();import a92e from'fs';import a92f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';function a92c(){const A=['search','domainNames','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','Create\x20and\x20manage\x20your\x20SSL\x20operations.','483153EDCXTg','/ssh.json','getMakaProjectConfig','create','withSpinner','error','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','845WBjLkQ','notice','24dbUmxn','87794ucgwMo','maka\x20ssl\x20[command]','mkKeysDir','Checking\x20remote\x20host\x20availability','constructor','genCSR','emailUpdate','ssh','2509190GETxbo','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','9GVkgkf','letsencrypt','.csr','.key','ping','parse','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','writeFileSync','env','toString','244512RXEcAW','Email\x20to\x20use\x20for\x20auto-updates:\x20','stringify','genSSC','join','appName','ask','(((.+)+)+)+$','uname\x20-a','success','94zCwSmK','getAppConfigPath','exit','ssl','537228FMZUsY','Remote\x20host\x20connection\x20successful','apply','readFileSync','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','domains','907MecUMK','letsencrypt.json','New\x20CSR\x20written\x20to\x20','start','4134SvUPGH','email','77wPZRmL','fsi','generate-ssc'];a92c=function(){return A;};return a92c();}import{SSL}from'../tools/ssl/ssl.class.js';Command[a92y(0x12d)]({'name':a92y(0x116),'usage':a92y(0x135),'validOpts':[a92y(0x11c),a92y(0x122)],'requiredOpts':['env'],'shortDesc':a92y(0x129),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':['maka\x20ssl\x20--env\x20dev\x20generate-csr','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a92y(0x130)]},async function(a,b){const z=a92y,c=this[z(0x124)][z(0x12c)](),d=this['fsi'][z(0x114)](b[z(0x107)]),f=this['fsi'][z(0x136)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[z(0x139)]({'keyName':c[z(0x10e)]+z(0x101),'csrName':c[z(0x10e)]+z(0x140),'cwd':f});else{if(g===z(0x125)){if(!a92e['existsSync'](a92f[z(0x10d)](f,c['appName']+z(0x101))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a92f['join'](f,c[z(0x10e)]+z(0x101));if(!a92e['existsSync'](a92f[z(0x10d)](f,c[z(0x10e)]+z(0x140))))throw z(0x128)+a92f[z(0x10d)](f,c['appName']+'.csr');SSL[z(0x10c)]({'keyName':c['appName']+'.key','crtName':c[z(0x10e)]+'.crt','cwd':f}),Log[z(0x132)](z(0x11f)+f);}else{if(g===z(0x13f)){let h=b[z(0x11c)],i=b[z(0x122)];try{const p=a92e['readFileSync'](a92f['join'](d,z(0x11e)))[z(0x108)](),q=JSON[z(0x103)](p);h=b[z(0x11c)]?b[z(0x11c)]:q[z(0x127)],i=b[z(0x122)]?b[z(0x122)]:q[z(0x13a)],(!b['email']||!b[z(0x11c)])&&Log['notice']('Using\x20saved\x20letsencrypt\x20config');}catch(r){}const j=JSON[z(0x103)](a92e[z(0x11a)](d+z(0x12b))[z(0x108)]());Object['assign'](j,{'env':d}),Log[z(0x132)](z(0x137));try{const s=SSH[z(0x102)](z(0x111),j);if(!s)throw z(0x13d);if(s)Log['success'](z(0x118));}catch(t){Log['error'](t);return;}const k=Log[z(0x12e)]();k[z(0x120)]('Verifying\x20Letsencrypt\x20configuration'),SSH['ssh'](z(0x11b),{...j}),SSH['ssh']('sudo\x20snap\x20install\x20--classic\x20certbot',{...j}),SSH['ssh'](z(0x104),{...j}),k[z(0x112)]();const l=h?h:await Actions[z(0x10f)]('[?]\x20Domains\x20to\x20register:\x20'),m=i?i:await Actions['ask'](z(0x10a));SSH[z(0x13b)](z(0x105)+l+'\x20--email\x20'+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x10b)](n,null,0x2);a92e[z(0x106)](a92f[z(0x10d)](d,z(0x11e)),o);}else throw'Please\x20provide\x20a\x20command.';}}}catch(u){console[z(0x12f)](u),process[z(0x115)](0x0);}});
@@ -1 +1 @@
1
- const a93q=a93d;(function(a,b){const m=a93d,c=a();while(!![]){try{const d=-parseInt(m(0x201))/0x1+-parseInt(m(0x1e6))/0x2*(parseInt(m(0x205))/0x3)+parseInt(m(0x21e))/0x4+parseInt(m(0x1fb))/0x5+-parseInt(m(0x217))/0x6+parseInt(m(0x1f6))/0x7+parseInt(m(0x20f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x854ed));function a93c(){const t=['argv','isFile','utf8','concat','Cannot\x20find\x20Node\x20Environment\x20File:\x20','splice','driverPackage','2979870fnsvWY','--packages','config','warn','driver-package','toString','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','2728444zHCQYY','engines','getAppConfigPath','driver','494DYxIYM','search','invokeMeteorCommand','settings.json','port','filter','tests','process.env','error','exit','testAppPath','Node\x20Env\x20Config:\x20','jasmine','env','Meteor\x20Settings:\x20','join','3776878pekvAu','test','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','constructor','packages','3579540CwnhyI','create','apply','inspect','fsi','slice','460066RZFcgX','test-packages','meteortesting:mocha','notice','7278sFJgwW','--env','--full-app','readFileSync','development','unit','sanjo:jasmine','rawLogs','parse','once','1315112HHtQHn'];a93c=function(){return t;};return a93c();}const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a93d;if(c){const e=c[n(0x1fd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const o=a93d;return a93a[o(0x21c)]()[o(0x1e7)]('(((.+)+)+)+$')['toString']()[o(0x1f9)](a93a)[o(0x1e7)]('(((.+)+)+)+$');});a93a();import a93e from'fs';import a93f from'path';import a93g from'dotenv';function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a93d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a93d;a93e['openSync'](a,'r'),a93g[p(0x219)]({'path':a});};Command[a93q(0x1fc)]({'name':a93q(0x1f7),'mustBeInMakaProject':!![],'validOpts':[a93q(0x20e),a93q(0x1fa),'driver',a93q(0x216),'unit',a93q(0x1f3),a93q(0x20c),a93q(0x1ea),a93q(0x1fe),a93q(0x1f0)],'usage':'maka\x20test','aliases':['t',a93q(0x1ec)],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a93q;try{let c=this[r(0x1ff)][r(0x1e4)](r(0x209));b[r(0x1f3)]&&(c=this[r(0x1ff)][r(0x1e4)](b[r(0x1f3)]));(!b['unit']||!!b[r(0x20e)])&&(a=a['concat']([r(0x207)]));b[r(0x20a)]&&delete b[r(0x20a)];let d=b['driver-package']||b['driver']||'none';if(d==='none'){const j=JSON[r(0x20d)](a93e[r(0x208)](a93f[r(0x1f5)](this[r(0x1ff)]['findProjectDirectory'](),'.maka','config.json'),r(0x212)));if(j['engines'][r(0x1f7)]===r(0x1f2))d=r(0x20b);else j[r(0x1e3)][r(0x1f7)]==='mocha'&&(d=r(0x203));}if(d==='none')throw r(0x21d);(!b[r(0x21b)]||!b[r(0x1e5)])&&(a=a[r(0x213)](['--driver-package',d]));const f=a93f['join'](c,r(0x1e9));this[r(0x1ff)][r(0x211)](f)?(Log[r(0x204)](r(0x1f4)+f),a=a[r(0x213)](['--settings',f])):Log['warn'](r(0x1f8)+f);const g=a93f[r(0x1f5)](c,r(0x1ed));this[r(0x1ff)]['isFile'](g)?(Log[r(0x204)](r(0x1f1)+g),syncSource(g)):Log[r(0x21a)](r(0x214)+g);const h=process[r(0x210)][r(0x200)](0x2)[r(0x1eb)](k=>k!==r(0x206))[r(0x1eb)](k=>k!==r(0x1f7))[r(0x1eb)](k=>k!==a[0x0]);h['forEach']((k,l)=>{const s=r;(k===s(0x206)||k==='--driver')&&h['splice'](l,0x2),k===s(0x218)&&h[s(0x215)](l,0x1);});const i=b[r(0x1fa)]?r(0x202):r(0x1f7);this[r(0x1ff)][r(0x1e8)](i,a[r(0x213)](h));}catch(k){console[r(0x1ee)](k),process[r(0x1ef)](0x0);}});
1
+ const a93o=a93d;(function(a,b){const m=a93d,c=a();while(!![]){try{const d=parseInt(m(0x223))/0x1*(-parseInt(m(0x21b))/0x2)+-parseInt(m(0x205))/0x3+-parseInt(m(0x208))/0x4+parseInt(m(0x1fa))/0x5*(-parseInt(m(0x20a))/0x6)+-parseInt(m(0x224))/0x7*(-parseInt(m(0x1fb))/0x8)+-parseInt(m(0x1f1))/0x9*(-parseInt(m(0x1fd))/0xa)+parseInt(m(0x1f7))/0xb*(parseInt(m(0x1f3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xd7d0b));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const n=a93d;return a93a['toString']()[n(0x226)]('(((.+)+)+)+$')[n(0x211)]()[n(0x217)](a93a)['search']('(((.+)+)+)+$');});a93a();import a93e from'fs';import a93f from'path';import a93g from'dotenv';function a93c(){const r=['search','--driver-package','filter','invokeMeteorCommand','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','--env','packages','18KHzdju','--full-app','24JlYLye','concat','isFile','notice','8846937JmfyvC','env','forEach','840865OCISob','9048RRegab','settings.json','8310870jXxAHD','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','.maka','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','driver-package','none','Cannot\x20find\x20Node\x20Environment\x20File:\x20','slice','3035193xYAfdx','once','error','4891140bAWuoz','test','12CFtIcs','findProjectDirectory','getAppConfigPath','inspect','process.env','splice','jasmine','toString','sanjo:jasmine','test-packages','port','readFileSync','--packages','constructor','maka\x20test','tests','--settings','4asOvSS','fsi','driver','argv','--driver','join','unit','warn','64577KQeIhh','1939mrEaHr','utf8'];a93c=function(){return r;};return a93c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){a93e['openSync'](a,'r'),a93g['config']({'path':a});};function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a93d(a,b);}Command['create']({'name':a93o(0x209),'mustBeInMakaProject':!![],'validOpts':[a93o(0x206),a93o(0x1f0),a93o(0x21d),'driverPackage',a93o(0x221),a93o(0x1f8),'rawLogs',a93o(0x214),a93o(0x20d),'testAppPath'],'usage':a93o(0x218),'aliases':['t',a93o(0x219)],'shortDesc':a93o(0x1fe),'examples':[]},function(a,b){const p=a93o;try{let c=this[p(0x21c)][p(0x20c)]('development');b[p(0x1f8)]&&(c=this[p(0x21c)][p(0x20c)](b[p(0x1f8)]));(!b[p(0x221)]||!!b[p(0x206)])&&(a=a[p(0x1f4)]([p(0x1f2)]));b[p(0x221)]&&delete b[p(0x221)];let d=b[p(0x201)]||b[p(0x21d)]||p(0x202);if(d===p(0x202)){const j=JSON['parse'](a93e[p(0x215)](a93f['join'](this[p(0x21c)][p(0x20b)](),p(0x1ff),'config.json'),p(0x225)));if(j['engines']['test']===p(0x210))d=p(0x212);else j['engines'][p(0x209)]==='mocha'&&(d='meteortesting:mocha');}if(d===p(0x202))throw p(0x200);(!b[p(0x201)]||!b['driver'])&&(a=a[p(0x1f4)]([p(0x227),d]));const f=a93f[p(0x220)](c,p(0x1fc));this[p(0x21c)][p(0x1f5)](f)?(Log[p(0x1f6)]('Meteor\x20Settings:\x20'+f),a=a[p(0x1f4)]([p(0x21a),f])):Log[p(0x222)](p(0x1ee)+f);const g=a93f[p(0x220)](c,p(0x20e));this[p(0x21c)][p(0x1f5)](g)?(Log[p(0x1f6)]('Node\x20Env\x20Config:\x20'+g),syncSource(g)):Log[p(0x222)](p(0x203)+g);const h=process[p(0x21e)][p(0x204)](0x2)[p(0x1ec)](k=>k!==p(0x1ef))[p(0x1ec)](k=>k!==p(0x209))[p(0x1ec)](k=>k!==a[0x0]);h[p(0x1f9)]((k,l)=>{const q=p;(k==='--env'||k===q(0x21f))&&h[q(0x20f)](l,0x2),k===q(0x216)&&h['splice'](l,0x1);});const i=b[p(0x1f0)]?p(0x213):'test';this[p(0x21c)][p(0x1ed)](i,a[p(0x1f4)](h));}catch(k){console[p(0x207)](k),process['exit'](0x0);}});
@@ -1 +1 @@
1
- function a94c(){const p=['System\x27s\x20Node\x20Version\x20','search','maka\x20version','verbose','8kWSSEk','warn','majestic','maka\x20version\x20--verbose','502yaBykn','isMakaProject','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','fsi','getProjectMeteorVersion',')\x20to\x20at\x20least\x20meteor\x27s\x20(','maka\x20v','732780AfRAuA','4.8.4','42ueqjXO','toString','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','System\x27s\x20Meteor\x20Version\x20','meteor.bat','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','getGlobalMeteorVersion','create','11460618iDfpHJ','exit','6637720TAdqmh','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','getProjectsMeteorNodeVersion','N/A','Project\x27s\x20Meteor\x20Node\x20Version\x20','compareMakaToLatest','----------------------Project----------------------------','881796TFDbTl','error','platform','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','504390NNLGzY','apply','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','win32','replace','bright','version','1329076DcfULA','Project\x27s\x20Meteor\x20Version\x20','5813EyrwWP','\x20node\x20-v'];a94c=function(){return p;};return a94c();}const a94n=a94d;(function(a,b){const k=a94d,c=a();while(!![]){try{const d=parseInt(k(0x1c6))/0x1*(parseInt(k(0x1d0))/0x2)+-parseInt(k(0x1b9))/0x3+parseInt(k(0x1d7))/0x4+parseInt(k(0x1bd))/0x5+-parseInt(k(0x1d9))/0x6*(parseInt(k(0x1c4))/0x7)+parseInt(k(0x1cc))/0x8*(parseInt(k(0x1b0))/0x9)+-parseInt(k(0x1b2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xb229e));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a94d;if(c){const e=c[l(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const m=a94d;return a94a[m(0x1da)]()[m(0x1c9)]('(((.+)+)+)+$')[m(0x1da)]()['constructor'](a94a)[m(0x1c9)]('(((.+)+)+)+$');});a94a();function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1af;let f=c[d];return f;},a94d(a,b);}import{execSync}from'child_process';import a94e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a94n(0x1d8)};Command[a94n(0x1af)]({'name':'version','aliases':['v'],'usage':'maka\x20version','maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a94n(0x1de),'examples':[a94n(0x1d6),a94n(0x1ca),a94n(0x1cf)],'description':a94n(0x1db)},async function(a,b){const o=a94n;try{const c=process[o(0x1bb)]===o(0x1c0)?o(0x1dd):'meteor';Log[o(0x1ce)]('Maka\x20'+pjson[o(0x1c3)]),await this['fsi'][o(0x1b7)]();if(b[o(0x1cb)]){await this[o(0x1d3)][o(0x1b7)](),Log[o(0x1c2)]('----------------------System----------------------------');const d=this[o(0x1d3)][o(0x1df)]();Log[o(0x1c2)]((o(0x1dc)+d)[o(0x1c1)]('\x0a',''));const f=execSync(c+o(0x1c7))[o(0x1da)]()['replace'](/\r?\n|\r/,'')[o(0x1c1)]('v','');Log[o(0x1c2)]('System\x27s\x20Meteor\x27s\x20Node\x20Version\x20'+f);const g=execSync('node\x20-v')[o(0x1da)]()[o(0x1c1)](/\r?\n|\r/,'')[o(0x1c1)]('v','');a94e['gt'](f,g)?(Log[o(0x1cd)](o(0x1c8)+g),Log['warn'](o(0x1bf)+g+o(0x1d5)+f+')')):Log['bright']('System\x27s\x20Node\x20Version\x20'+g);if(this['fsi'][o(0x1d1)]()){Log['bright'](o(0x1b8));const h=this[o(0x1d3)][o(0x1d4)]();a94e['gt'](d,h)?(Log[o(0x1cd)]('Project\x27s\x20Meteor\x20Version\x20'+h[o(0x1c1)]('\x0a','')),Log[o(0x1cd)](o(0x1d2)+d+'\x22')):Log['notice']((o(0x1c5)+h)['replace']('\x0a',''));const i=await this[o(0x1d3)][o(0x1b4)]();i===o(0x1b5)?(Log[o(0x1cd)](o(0x1b6)+i),Log[o(0x1cd)](o(0x1bc))):Log[o(0x1c2)](o(0x1b6)+i),Log[o(0x1c2)](o(0x1b3));}}}catch(j){console[o(0x1ba)](j),process[o(0x1b1)](0x0);}});
1
+ const a94n=a94d;(function(a,b){const k=a94d,c=a();while(!![]){try{const d=-parseInt(k(0x122))/0x1*(-parseInt(k(0x129))/0x2)+parseInt(k(0x12b))/0x3+-parseInt(k(0x107))/0x4+parseInt(k(0x135))/0x5*(-parseInt(k(0x110))/0x6)+-parseInt(k(0x12f))/0x7+-parseInt(k(0x113))/0x8+parseInt(k(0x11a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x3e8fd));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a94d;if(c){const e=c[l(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const m=a94d;return a94a[m(0x109)]()[m(0x124)]('(((.+)+)+)+$')[m(0x109)]()[m(0x10e)](a94a)[m(0x124)]('(((.+)+)+)+$');});a94a();import{execSync}from'child_process';import a94e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a94n(0x133)};function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x105;let f=c[d];return f;},a94d(a,b);}Command[a94n(0x112)]({'name':a94n(0x108),'aliases':['v'],'usage':a94n(0x11d),'maxArgLength':0x1,'validOpts':[a94n(0x125)],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a94n(0x115),a94n(0x11d),a94n(0x12e)],'description':a94n(0x105)},async function(a,b){const o=a94n;try{const c=process[o(0x11b)]===o(0x132)?'meteor.bat':o(0x117);Log[o(0x123)](o(0x136)+pjson[o(0x108)]),await this[o(0x10d)][o(0x130)]();if(b[o(0x125)]){await this[o(0x10d)]['compareMakaToLatest'](),Log[o(0x128)]('----------------------System----------------------------');const d=this['fsi'][o(0x121)]();Log[o(0x128)]((o(0x111)+d)[o(0x11c)]('\x0a',''));const f=execSync(c+o(0x127))['toString']()['replace'](/\r?\n|\r/,'')[o(0x11c)]('v','');Log[o(0x128)]('System\x27s\x20Meteor\x27s\x20Node\x20Version\x20'+f);const g=execSync(o(0x134))[o(0x109)]()[o(0x11c)](/\r?\n|\r/,'')[o(0x11c)]('v','');a94e['gt'](f,g)?(Log[o(0x116)](o(0x12a)+g),Log['warn'](o(0x119)+g+o(0x11e)+f+')')):Log[o(0x128)](o(0x12a)+g);if(this['fsi'][o(0x118)]()){Log[o(0x128)](o(0x126));const h=this[o(0x10d)][o(0x12c)]();a94e['gt'](d,h)?(Log[o(0x116)](o(0x10c)+h[o(0x11c)]('\x0a','')),Log['warn'](o(0x131)+d+'\x22')):Log[o(0x10b)](('Project\x27s\x20Meteor\x20Version\x20'+h)['replace']('\x0a',''));const i=await this[o(0x10d)]['getProjectsMeteorNodeVersion']();i===o(0x114)?(Log[o(0x116)](o(0x106)+i),Log['warn'](o(0x12d))):Log[o(0x128)](o(0x106)+i),Log[o(0x128)](o(0x10f));}}}catch(j){console[o(0x11f)](j),process[o(0x10a)](0x0);}});function a94c(){const p=['\x20node\x20-v','bright','2cdcZQE','System\x27s\x20Node\x20Version\x20','1172673zVTnhP','getProjectMeteorVersion','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','maka\x20version\x20--verbose','3348240yrSUPZ','compareMakaToLatest','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','win32','4.8.5','node\x20-v','15OGsbvS','Maka\x20','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','Project\x27s\x20Meteor\x20Node\x20Version\x20','1691364utRxlC','version','toString','exit','notice','Project\x27s\x20Meteor\x20Version\x20','fsi','constructor','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','429342IhUjYb','System\x27s\x20Meteor\x20Version\x20','create','4073800BgtSmC','N/A','maka\x20v','warn','meteor','isMakaProject','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','10222794CbTUla','platform','replace','maka\x20version',')\x20to\x20at\x20least\x20meteor\x27s\x20(','error','apply','getGlobalMeteorVersion','354553UHqyAe','majestic','search','verbose','----------------------Project----------------------------'];a94c=function(){return p;};return a94c();}
@@ -1 +1 @@
1
- function a95c(){var h=['constructor','1993315ykZLqN','search','(((.+)+)+)+$','1866642ofCJYd','toString','2650473pFxJqY','3876232hmiHgn','3644658IfhVpz','2708380nukaPI','918184tduaEv','7SohpYz','2QYXxvv'];a95c=function(){return h;};return a95c();}(function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0xce))/0x1*(parseInt(f(0xd0))/0x2)+-parseInt(f(0xcc))/0x3+parseInt(f(0xcd))/0x4+parseInt(f(0xd2))/0x5+parseInt(f(0xd5))/0x6*(-parseInt(f(0xcf))/0x7)+parseInt(f(0xd8))/0x8+-parseInt(f(0xd7))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xa0a3d));function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0xcc;var f=c[d];return f;},a95d(a,b);}var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var g=a95d;return a95a['toString']()[g(0xd3)](g(0xd4))[g(0xd6)]()[g(0xd1)](a95a)[g(0xd3)](g(0xd4));});a95a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
1
+ (function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0x1ca))/0x1+parseInt(f(0x1c7))/0x2*(-parseInt(f(0x1c2))/0x3)+parseInt(f(0x1ce))/0x4*(-parseInt(f(0x1c3))/0x5)+-parseInt(f(0x1c1))/0x6*(parseInt(f(0x1cd))/0x7)+parseInt(f(0x1c8))/0x8+parseInt(f(0x1c4))/0x9+parseInt(f(0x1cc))/0xa*(parseInt(f(0x1c6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x56f05));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var g=a95d;return a95a['toString']()[g(0x1c5)](g(0x1cb))['toString']()[g(0x1c9)](a95a)['search'](g(0x1cb));});a95a();export class UsageError{}function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x1c1;var f=c[d];return f;},a95d(a,b);}export class UsageErrorWithSubs{}function a95c(){var h=['306702tbxybL','(((.+)+)+)+$','50WVKrlL','5453yIdNdI','84836DBKbwH','4254XWbkkP','3LyDklU','5PvIBIY','2926485jlisDZ','search','850113KrvHTT','666982BtUDwF','1958640KWeyAT','constructor'];a95c=function(){return h;};return a95c();}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0x151;var f=c[d];return f;},a96d(a,b);}var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0x154))/0x1*(-parseInt(f(0x15d))/0x2)+parseInt(f(0x151))/0x3*(parseInt(f(0x15e))/0x4)+-parseInt(f(0x159))/0x5*(-parseInt(f(0x15a))/0x6)+parseInt(f(0x156))/0x7+parseInt(f(0x15b))/0x8+-parseInt(f(0x15f))/0x9+-parseInt(f(0x157))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x7d7c8));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a96d;if(c){var e=c[g(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var h=a96d;return a96a['toString']()[h(0x158)]('(((.+)+)+)+$')['toString']()[h(0x15c)](a96a)['search'](h(0x160));});function a96c(){var j=['--experimental-modules\x20--no-warnings\x20--experimental-json-modules','95482qtOwdS','apply','6258861fXyLgq','6333960XLoTCA','search','25THPwyt','266268afyigB','292688unudsG','constructor','8tPXQcn','1020sfpWgD','4533066zPffDV','(((.+)+)+)+$','1371zOApsE','env'];a96c=function(){return j;};return a96c();}a96a(),process[a96i(0x152)]['NODE_OPTIONS']=a96i(0x153);import'./maka.js';
2
+ var a96h=a96d;function a96c(){var i=['4074066fJAsoh','(((.+)+)+)+$','8fHGzDd','search','11730YIqMJc','124525IQuQfN','5240510yRUqPs','138NvLFsx','NODE_OPTIONS','23190OPXgpz','128GMvqyS','16cASWSo','2407450grntDf','toString','86821DIEwZI','env','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','constructor'];a96c=function(){return i;};return a96c();}function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0x1cd;var f=c[d];return f;},a96d(a,b);}(function(a,b){var f=a96d,c=a();while(!![]){try{var d=parseInt(f(0x1d2))/0x1*(parseInt(f(0x1d8))/0x2)+parseInt(f(0x1d7))/0x3+parseInt(f(0x1d9))/0x4*(-parseInt(f(0x1d3))/0x5)+-parseInt(f(0x1d5))/0x6*(-parseInt(f(0x1dc))/0x7)+parseInt(f(0x1d0))/0x8*(-parseInt(f(0x1ce))/0x9)+-parseInt(f(0x1da))/0xa+parseInt(f(0x1d4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xb1832));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var g=a96d;return a96a[g(0x1db)]()[g(0x1d1)]('(((.+)+)+)+$')[g(0x1db)]()[g(0x1cd)](a96a)[g(0x1d1)](g(0x1cf));});a96a(),process[a96h(0x1dd)][a96h(0x1d6)]=a96h(0x1de);import'./maka.js';
@@ -1 +1 @@
1
- const a97u=a97d;(function(a,b){const r=a97d,c=a();while(!![]){try{const d=-parseInt(r(0xdf))/0x1+parseInt(r(0x106))/0x2*(-parseInt(r(0xe1))/0x3)+parseInt(r(0x121))/0x4+-parseInt(r(0xea))/0x5*(parseInt(r(0x13e))/0x6)+-parseInt(r(0xf6))/0x7+parseInt(r(0x117))/0x8+parseInt(r(0x110))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xbc7ee));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const s=a97d;return a97a[s(0x108)]()[s(0xe2)](s(0xd9))[s(0x108)]()[s(0x132)](a97a)[s(0xe2)](s(0xd9));});a97a();function a97c(){const M=['generatorName','891144CFLnGv','opts','9507OUTJSm','search','light','Alias','Too\x20many\x20options','Generator.create\x20requires\x20a\x20handler\x20function!','.maka','fsi','localeCompare','5PjKIOB','LIGHT','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Description','pallet','Location','from','_genTransactionId','cwd','addGenerator','setColorMode','exit','1528632eEiNWt','join','mustBeInMakaProject','notice','help','history.json','utf-8','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','minArgLength','Generator\x20requires\x20a\x20handler\x20function','replace','DARK','readFileSync','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','client','writeHistory','268bCnbzA','_historyFilePath','toString','call','params','Generator\x20format\x20is\x20incorrect','_undoHandler','function','dir','validateMakaSubscription','2468979GWlpUG','getGlobalConfig','readHistory','split','colLocAnswer','shift','root','10282984DMPHou','validateMeteorInstall','handleGenerateError','undo','name','_generators','assign','length','options','find','4949268uOiXZF','usage','listGenerators','slice','aliases','mustHaveMeteorInstalled','bind','resourceName','Too\x20few\x20options','addToHistory','statSync','maxArgLength','success','where','match','findProjectDirectory','number','constructor','writeFileSync','parse','\x20generator.\x20Skipping\x20undo.','validateEngines','existsSync','findGeneratorByName','tableList','chdir','details','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Generator\x20not\x20found','2944662czhchD','invoke','validateMakaProject','map','both','maxOptsLength','warn','Generator.create\x20requires\x20some\x20options!','push','error','deepen','Too\x20many\x20arguments','addGenerator\x20requires\x20a\x20Generator\x20instance','shortDesc','processAndRunGenerator','Name','message','pathFromProject','list','checkWhere','appPathPrefix','minOptsLength','Client','\x20not\x20found','server','_handler','Generator\x20','(((.+)+)+)+$','sort','requiredEngines','pop','bright'];a97c=function(){return M;};return a97c();}import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';import a97i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xcf;let f=c[d];return f;},a97d(a,b);}import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const t=a97d,c=process[t(0xf2)]();let d=null;try{process[t(0x13a)](a),d=await b();}finally{process[t(0x13a)](c);}return d;}export class Generator extends Tool{['options'];[a97u(0x11c)];[a97u(0x107)];[a97u(0x10c)];[a97u(0xf1)];constructor(a,b,c){const v=a97u;super();if(!a)throw new Error(v(0xfd));if(!a[v(0x11b)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(v(0xff));this['_generators']=[],this[v(0x11f)]=Object[v(0x11d)]({},a),this[v(0x11b)]=this[v(0x11f)][v(0x11b)],this[v(0xd7)]=b[v(0x127)](this);try{this['_historyFilePath']=this[v(0xe8)][v(0xcf)]({'pathParts':[v(0xe7),v(0xfb)]})||a97e[v(0xf7)]('.',v(0xe7),v(0xfb));}catch(d){Log[v(0x147)](d);}c&&(this[v(0x10c)]=c[v(0x127)](this));}['getHistoryFileSize'](){const w=a97u;if(a97f[w(0x137)](this[w(0x107)])){const a=a97f[w(0x12b)](this[w(0x107)]);return a['size'];}return 0x0;}['readHistory'](){const x=a97u;if(!a97f[x(0x137)](this[x(0x107)]))return[];return JSON[x(0x134)](a97f[x(0x102)](this[x(0x107)],x(0xfc)));}[a97u(0x105)](a){const y=a97u;this[y(0x107)]&&!a97f['existsSync'](this[y(0x107)])&&a97f[y(0x133)](this[y(0x107)],JSON['stringify']([])),a97f['writeFileSync'](this[y(0x107)],JSON['stringify'](a,null,0x2));}[a97u(0x12a)](a){const z=a97u;try{a?.[z(0x10a)]?.[z(0xe0)]['config']&&delete a[z(0x10a)][z(0xe0)]['config'];const b=this[z(0x112)](),c={'generatorName':this[z(0x11b)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x146)](c);const d=Buffer[z(0xf0)](JSON['stringify'](b))[z(0x11e)];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[z(0x115)]();}this[z(0x105)](b);}catch(f){Log[z(0x147)](f);}}static['create'](a,b,c,d){const A=a97u;if(!a)throw new Error(A(0x145));if(typeof b!==A(0x10d))throw new Error(A(0xe6));const e=new Generator(a,b);return c&&(e[A(0x10c)]=c[A(0x127)](e)),d=d||a97i,Object[A(0x11d)](e,{'parent':d?.[A(0x11f)]?.[A(0x11b)]}),d[A(0xf3)](e),e;}async[a97u(0x11a)](){const B=a97u,a=this[B(0x112)](),b=a[B(0xdc)]();if(!b){Log[B(0x144)]('Nothing\x20to\x20undo.');return;}const c=this[B(0x138)](b[B(0xde)]);if(!c){Log['error'](B(0xd8)+b['generatorName']+'\x20not\x20found.\x20Cannot\x20undo.');return;}c[B(0x10c)]?(await c[B(0x10c)](b['details']),this['writeHistory'](a)):Log[B(0x144)]('No\x20undo\x20handler\x20defined\x20for\x20'+b[B(0xde)]+B(0x135));}[a97u(0xf3)](a){const C=a97u;if(!(a instanceof Generator))throw new Error(C(0x14a));this[C(0x11c)][C(0x146)](a);}async[a97u(0x14c)](a,b=[],c={}){const D=a97u;let d;try{const f=a?.[D(0x113)](':');if(!f||f[D(0x11e)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[D(0x11c)],h;for(const i of f){h=g[D(0x120)](j=>j['match'](i));if(!h)throw'Generator\x20'+i+D(0xd5);await this[D(0x10f)](h),g=h['_generators'];}if(h)d=await h[D(0x13f)](b,c);else throw D(0x13d);}catch(j){Log[D(0x147)](j);}return d;}['findGeneratorByName'](a){const E=a97u,b=a?.['split'](':');if(!b||b[E(0x11e)]===0x0)return Log[E(0x147)](E(0x10b)),null;let c=this['_generators'],d;for(const e of b){d=c[E(0x120)](f=>f[E(0x12f)](e));if(!d)return Log[E(0x147)](E(0xd8)+e+E(0xd5)),null;c=d['_generators'];}return d||null;}async['invoke'](a,b){const F=a97u,c=a[F(0x124)]();b['resourceName']=c[0x0];try{const d=await this[F(0xe8)][F(0x111)](),f=d[F(0xee)]===F(0xe3)?ColorMode[F(0xeb)]:ColorMode[F(0x101)];Log[F(0xf4)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[F(0x11e)]===0x0&&this[F(0x11c)][F(0x11e)]>=0x0,h=b[F(0xfa)]||b['h'];if(g&&h){if(this[F(0x11c)][F(0x11e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x11f)][F(0xf8)]){const i=this[F(0x140)]();if(!i)throw new MustBeInProjectError();}if(this[F(0x11f)][F(0x126)]){const j=this[F(0x118)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][F(0xfe)]===F(0x131)){if(a[F(0x11e)]<this[F(0x11f)][F(0xfe)]){Log[F(0x147)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x11f)][F(0x12c)]===F(0x131)){if(a[F(0x11e)]>this[F(0x11f)][F(0x12c)]){Log[F(0x147)](F(0x149));throw new UsageError();}}if(typeof this[F(0x11f)][F(0xd3)]==='number'){if(Object['keys'](b)[F(0x11e)]<this['options']['minOptsLength']){Log[F(0x147)](F(0x129));throw new UsageError();}}if(typeof this['options'][F(0x143)]===F(0x131)){if(Object['keys'](b)['length']>=this[F(0x11f)][F(0x143)]){Log[F(0x147)](F(0xe5));throw new UsageError();}}}this[F(0x11f)][F(0xdb)]&&this[F(0x136)](this[F(0x11f)][F(0xdb)]);await this['validateParams'](a,b,this['options']);if(!b[F(0x128)]&&!this[F(0x11f)]['noNeedResource']){Log[F(0x147)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x119)](k),process[F(0xf5)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0x116)]&&!this[G(0xe8)][G(0x130)]())throw new MustBeInProjectError();const l=b[G(0x128)]?.[G(0x100)](/\\/g,'/')[G(0x113)]('/');!b[G(0x10e)]&&(l?.[G(0x11e)]>0x1?(b[G(0x128)]=l[G(0xdc)](),c[0x0]=b[G(0x128)],b['dir']=l[G(0x141)](n=>{return paramCase(n);})[G(0xf7)](a97e['sep'])):b[G(0x10e)]='');if(this[G(0x11f)][G(0xd1)]){if(!b[G(0x12e)]){const o={'type':G(0xd0),'name':G(0x114),'message':G(0xef),'choices':[{'name':G(0xd4),'value':G(0x104)},{'name':'Server','value':'server'},{'name':'Both','value':G(0x142)}]},{colLocAnswer:p}=await Actions[G(0x11f)](o);p?b['where']=p:b[G(0x12e)]=G(0x142);}const n=[G(0x142),'client',G(0xd6)];if(!n['includes'](b[G(0x12e)])){Log[G(0x147)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x12e)]){case G(0x142):b[G(0xd2)]='lib';break;case'server':b[G(0xd2)]='server';break;case'client':b[G(0xd2)]=G(0x104);break;default:b[G(0xd2)]='';}}const m=await this[G(0xd7)][G(0x109)](this,c,b);return this['addToHistory']({'params':{'args':c,'opts':this['fsi'][G(0x148)](b)},'success':m?.[G(0x12d)],'message':m?.[G(0x14e)],'details':m?.[G(0x13b)]}),m;}catch(q){this[G(0x119)](q);}});}[a97u(0x123)](){const H=a97u;this['tableList'](this[H(0x11c)]);}[a97u(0x119)](a){const I=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log[I(0x122)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice']('Generators:'),this[I(0x139)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log['error'](I(0x103));else{if(a instanceof NoMeteorFoundError)Log[I(0x147)](I(0xec)),Log[I(0xf9)](I(0x13c));else a instanceof NoMeteorAppFoundError&&Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a97u(0x139)](a){const J=a97u,b=new a97g({});b['push']([J(0x14d),J(0xe4),J(0xed)]),a[J(0xda)]((c,d)=>{const K=J;return c[K(0x11b)][K(0xe9)](d[K(0x11b)]);})['forEach'](c=>{const L=J;b[L(0x146)]([c['name'],c[L(0x125)](),c[L(0x14b)]()]);}),Log[J(0xdd)](b[J(0x108)]());}}
1
+ function a97c(){const M=['both','notice','search','keys','from','No\x20resource\x20name\x20specified','validateParams','_undoHandler','pop','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','validateMakaSubscription','.maka','314970JRzxgE','split','replace','806082tmkcCx','map','statSync','tableList','Generator\x20format\x20is\x20incorrect','validateMeteorInstall','_historyFilePath','Too\x20many\x20arguments','Location','requiredEngines','Alias','Description','join','noNeedResource','name','2490984LCVvAE','pathFromProject','maxOptsLength','client','list','match','mustBeInMakaProject','where','invoke','processAndRunGenerator','Both','Server','bind','fsi','addToHistory','cwd','writeFileSync','sep','bright','_genTransactionId','create','DARK','length','858264YYoZBu','Generator\x20not\x20found','server','params','warn','mustHaveMeteorInstalled','slice','aliases','_handler','getHistoryFileSize','size','sort','Generators:','opts','stringify','Client','success','parse','validateEngines','readHistory','\x20not\x20found.\x20Cannot\x20undo.','checkWhere','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','resourceName','shift','utf-8','LIGHT','appPathPrefix','1071138aLvPRs','minOptsLength','undo','deepen','toString','generatorName','\x20generator.\x20Skipping\x20undo.','writeHistory','handleGenerateError','Please\x20run\x20\x22maka\x20install\x20meteor\x22','260qFsUEv','error','Generator\x20','Generator.create\x20requires\x20a\x20handler\x20function!','findProjectDirectory','48095LEGizK','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','localeCompare','2576091KwSnQV','Generator.create\x20requires\x20some\x20options!','Name','minArgLength','chdir','options','Too\x20few\x20options','includes','colLocAnswer','number','validateMakaProject','_generators','assign','addGenerator','history.json','(((.+)+)+)+$','\x20not\x20found','push','details','exit','root','config','maxArgLength','pallet','dir','findGeneratorByName','find','addGenerator\x20requires\x20a\x20Generator\x20instance','No\x20undo\x20handler\x20defined\x20for\x20','existsSync','function','call','forEach'];a97c=function(){return M;};return a97c();}const a97u=a97d;(function(a,b){const r=a97d,c=a();while(!![]){try{const d=parseInt(r(0x1b7))/0x1+-parseInt(r(0x1fc))/0x2+parseInt(r(0x1ba))/0x3+parseInt(r(0x206))/0x4*(-parseInt(r(0x20b))/0x5)+parseInt(r(0x1c9))/0x6+parseInt(r(0x20e))/0x7+parseInt(r(0x1e0))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4c7e8));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const s=a97d;return a97a[s(0x200)]()[s(0x231)](s(0x21d))[s(0x200)]()['constructor'](a97a)[s(0x231)]('(((.+)+)+)+$');});a97a();import a97e from'path';import a97f from'fs';import a97g from'cli-table';import{v4 as a97h}from'uuid';import{paramCase}from'change-case';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1af;let f=c[d];return f;},a97d(a,b);}import a97i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a97h();async function inside(a='.',b){const t=a97d,c=process[t(0x1d8)]();let d=null;try{process[t(0x212)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a97u(0x213)];[a97u(0x219)];[a97u(0x1c0)];[a97u(0x1b2)];[a97u(0x1dc)];constructor(a,b,c){const v=a97u;super();if(!a)throw new Error(v(0x20c));if(!a['name'])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0x22c))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[v(0x219)]=[],this[v(0x213)]=Object['assign']({},a),this[v(0x1c8)]=this[v(0x213)][v(0x1c8)],this[v(0x1e8)]=b[v(0x1d5)](this);try{this[v(0x1c0)]=this[v(0x1d6)][v(0x1ca)]({'pathParts':['.maka',v(0x21c)]})||a97e['join']('.',v(0x1b6),v(0x21c));}catch(d){Log[v(0x207)](d);}c&&(this[v(0x1b2)]=c['bind'](this));}[a97u(0x1e9)](){const w=a97u;if(a97f[w(0x22b)](this[w(0x1c0)])){const a=a97f[w(0x1bc)](this[w(0x1c0)]);return a[w(0x1ea)];}return 0x0;}['readHistory'](){const x=a97u;if(!a97f[x(0x22b)](this['_historyFilePath']))return[];return JSON[x(0x1f1)](a97f['readFileSync'](this[x(0x1c0)],x(0x1f9)));}[a97u(0x203)](a){const y=a97u;this[y(0x1c0)]&&!a97f[y(0x22b)](this[y(0x1c0)])&&a97f[y(0x1d9)](this['_historyFilePath'],JSON[y(0x1ee)]([])),a97f[y(0x1d9)](this[y(0x1c0)],JSON['stringify'](a,null,0x2));}[a97u(0x1d7)](a){const z=a97u;try{a?.[z(0x1e3)]?.['opts'][z(0x223)]&&delete a['params'][z(0x1ed)]['config'];const b=this[z(0x1f3)](),c={'generatorName':this[z(0x1c8)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x21f)](c);const d=Buffer[z(0x1af)](JSON[z(0x1ee)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[z(0x1df)]>0x0){b[z(0x1f8)]();}this[z(0x203)](b);}catch(f){Log[z(0x207)](f);}}static[a97u(0x1dd)](a,b,c,d){const A=a97u;if(!a)throw new Error(A(0x20f));if(typeof b!==A(0x22c))throw new Error(A(0x209));const e=new Generator(a,b);return c&&(e[A(0x1b2)]=c[A(0x1d5)](e)),d=d||a97i,Object[A(0x21a)](e,{'parent':d?.[A(0x213)]?.[A(0x1c8)]}),d[A(0x21b)](e),e;}async[a97u(0x1fe)](){const B=a97u,a=this[B(0x1f3)](),b=a[B(0x1b3)]();if(!b){Log[B(0x1e4)]('Nothing\x20to\x20undo.');return;}const c=this['findGeneratorByName'](b[B(0x201)]);if(!c){Log[B(0x207)](B(0x208)+b[B(0x201)]+B(0x1f4));return;}c['_undoHandler']?(await c['_undoHandler'](b['details']),this[B(0x203)](a)):Log[B(0x1e4)](B(0x22a)+b[B(0x201)]+B(0x202));}[a97u(0x21b)](a){const C=a97u;if(!(a instanceof Generator))throw new Error(C(0x229));this[C(0x219)][C(0x21f)](a);}async[a97u(0x1d2)](a,b=[],c={}){const D=a97u;let d;try{const f=a?.[D(0x1b8)](':');if(!f||f['length']===0x0)throw D(0x1be);let g=this[D(0x219)],h;for(const i of f){h=g[D(0x228)](j=>j['match'](i));if(!h)throw D(0x208)+i+'\x20not\x20found';await this['validateMakaSubscription'](h),g=h[D(0x219)];}if(h)d=await h[D(0x1d1)](b,c);else throw D(0x1e1);}catch(j){Log[D(0x207)](j);}return d;}[a97u(0x227)](a){const E=a97u,b=a?.[E(0x1b8)](':');if(!b||b[E(0x1df)]===0x0)return Log[E(0x207)](E(0x1be)),null;let c=this[E(0x219)],d;for(const e of b){d=c['find'](f=>f[E(0x1ce)](e));if(!d)return Log[E(0x207)]('Generator\x20'+e+E(0x21e)),null;c=d[E(0x219)];}return d||null;}async[a97u(0x1d1)](a,b){const F=a97u,c=a[F(0x1e6)]();b['resourceName']=c[0x0];try{const d=await this['fsi']['getGlobalConfig'](),f=d[F(0x225)]==='light'?ColorMode[F(0x1fa)]:ColorMode[F(0x1de)];Log['setColorMode'](f),await this[F(0x1b5)](this);const g=a[0x0]===_prevGen||a[F(0x1df)]===0x0&&this[F(0x219)][F(0x1df)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this[F(0x219)][F(0x1df)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][F(0x1cf)]){const i=this[F(0x218)]();if(!i)throw new MustBeInProjectError();}if(this[F(0x213)][F(0x1e5)]){const j=this[F(0x1bf)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][F(0x211)]===F(0x217)){if(a['length']<this[F(0x213)]['minArgLength']){Log[F(0x207)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x213)]['maxArgLength']===F(0x217)){if(a[F(0x1df)]>this['options'][F(0x224)]){Log[F(0x207)](F(0x1c1));throw new UsageError();}}if(typeof this[F(0x213)]['minOptsLength']===F(0x217)){if(Object[F(0x232)](b)[F(0x1df)]<this[F(0x213)][F(0x1fd)]){Log[F(0x207)](F(0x214));throw new UsageError();}}if(typeof this[F(0x213)][F(0x1cb)]===F(0x217)){if(Object[F(0x232)](b)[F(0x1df)]>=this[F(0x213)][F(0x1cb)]){Log[F(0x207)]('Too\x20many\x20options');throw new UsageError();}}}this[F(0x213)][F(0x1c3)]&&this[F(0x1f2)](this[F(0x213)][F(0x1c3)]);await this[F(0x1b1)](a,b,this[F(0x213)]);if(!b[F(0x1f7)]&&!this[F(0x213)][F(0x1c7)]){Log[F(0x207)](F(0x1b0));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x204)](k),process[F(0x221)](0x1);}return await inside(b[F(0x1d8)],async()=>{const G=F;try{if(!b[G(0x222)]&&!this[G(0x1d6)][G(0x20a)]())throw new MustBeInProjectError();const l=b['resourceName']?.[G(0x1b9)](/\\/g,'/')[G(0x1b8)]('/');!b['dir']&&(l?.[G(0x1df)]>0x1?(b[G(0x1f7)]=l[G(0x1b3)](),c[0x0]=b[G(0x1f7)],b['dir']=l[G(0x1bb)](n=>{return paramCase(n);})[G(0x1c6)](a97e[G(0x1da)])):b[G(0x226)]='');if(this[G(0x213)][G(0x1f5)]){if(!b['where']){const o={'type':G(0x1cd),'name':G(0x216),'message':G(0x1c2),'choices':[{'name':G(0x1ef),'value':'client'},{'name':G(0x1d4),'value':G(0x1e2)},{'name':G(0x1d3),'value':G(0x22f)}]},{colLocAnswer:p}=await Actions[G(0x213)](o);p?b[G(0x1d0)]=p:b[G(0x1d0)]='both';}const n=['both',G(0x1cc),G(0x1e2)];if(!n[G(0x215)](b[G(0x1d0)])){Log[G(0x207)](G(0x1f6));throw new UsageError();}switch(b[G(0x1d0)]){case G(0x22f):b['appPathPrefix']='lib';break;case G(0x1e2):b['appPathPrefix']=G(0x1e2);break;case G(0x1cc):b[G(0x1fb)]=G(0x1cc);break;default:b[G(0x1fb)]='';}}const m=await this[G(0x1e8)][G(0x22d)](this,c,b);return this[G(0x1d7)]({'params':{'args':c,'opts':this['fsi'][G(0x1ff)](b)},'success':m?.[G(0x1f0)],'message':m?.['message'],'details':m?.[G(0x220)]}),m;}catch(q){this[G(0x204)](q);}});}['listGenerators'](){const H=a97u;this[H(0x1bd)](this[H(0x219)]);}['handleGenerateError'](a){const I=a97u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[I(0x213)];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[I(0x230)](I(0x1ec)),this[I(0x1bd)](this[I(0x219)]);else{if(a instanceof MustBeInProjectError)Log[I(0x207)](I(0x1b4));else{if(a instanceof NoMeteorFoundError)Log[I(0x207)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[I(0x230)](I(0x205));else a instanceof NoMeteorAppFoundError&&Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a97u(0x1bd)](a){const J=a97u,b=new a97g({});b[J(0x21f)]([J(0x210),J(0x1c4),J(0x1c5)]),a[J(0x1eb)]((c,d)=>{const K=J;return c[K(0x1c8)][K(0x20d)](d[K(0x1c8)]);})[J(0x22e)](c=>{const L=J;b['push']([c[L(0x1c8)],c[L(0x1e7)](),c['shortDesc']()]);}),Log[J(0x1db)](b['toString']());}}