@maka/maka-cli 4.5.29 → 4.5.31

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 (132) 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/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/build/_index.js +1 -1
  19. package/bundle/obf/src/commands/build/build.js +1 -1
  20. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/create.js +1 -1
  22. package/bundle/obf/src/commands/debug.js +1 -1
  23. package/bundle/obf/src/commands/deploy.js +1 -1
  24. package/bundle/obf/src/commands/game/_index.js +1 -1
  25. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/play.command.js +1 -1
  27. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  62. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/generate.js +1 -1
  65. package/bundle/obf/src/commands/get/_index.js +1 -1
  66. package/bundle/obf/src/commands/get/get.command.js +1 -1
  67. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/help.js +1 -1
  71. package/bundle/obf/src/commands/jsdoc.js +1 -1
  72. package/bundle/obf/src/commands/lint.js +1 -1
  73. package/bundle/obf/src/commands/login.js +1 -1
  74. package/bundle/obf/src/commands/logout.js +1 -1
  75. package/bundle/obf/src/commands/logs.js +1 -1
  76. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  77. package/bundle/obf/src/commands/murder.js +1 -1
  78. package/bundle/obf/src/commands/proxy.js +1 -1
  79. package/bundle/obf/src/commands/reconfig.js +1 -1
  80. package/bundle/obf/src/commands/run/_index.js +1 -1
  81. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  82. package/bundle/obf/src/commands/run/run.command.js +1 -1
  83. package/bundle/obf/src/commands/set/_index.js +1 -1
  84. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  85. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/set.command.js +1 -1
  87. package/bundle/obf/src/commands/ssh.js +1 -1
  88. package/bundle/obf/src/commands/ssl.js +1 -1
  89. package/bundle/obf/src/commands/test.js +1 -1
  90. package/bundle/obf/src/commands/version.js +1 -1
  91. package/bundle/obf/src/error.js +1 -1
  92. package/bundle/obf/src/exec.js +1 -1
  93. package/bundle/obf/src/generator.js +1 -1
  94. package/bundle/obf/src/generators/_index.js +1 -1
  95. package/bundle/obf/src/generators/api.js +1 -1
  96. package/bundle/obf/src/generators/collection.js +1 -1
  97. package/bundle/obf/src/generators/component.js +1 -1
  98. package/bundle/obf/src/generators/config.js +1 -1
  99. package/bundle/obf/src/generators/dbc.js +1 -1
  100. package/bundle/obf/src/generators/dockerfile.js +1 -1
  101. package/bundle/obf/src/generators/hook.js +1 -1
  102. package/bundle/obf/src/generators/kit.js +1 -1
  103. package/bundle/obf/src/generators/layout.js +1 -1
  104. package/bundle/obf/src/generators/maka.gen.js +1 -1
  105. package/bundle/obf/src/generators/methods.js +1 -1
  106. package/bundle/obf/src/generators/package.js +1 -1
  107. package/bundle/obf/src/generators/page.js +1 -1
  108. package/bundle/obf/src/generators/publish.js +1 -1
  109. package/bundle/obf/src/generators/route.js +1 -1
  110. package/bundle/obf/src/generators/service.js +1 -1
  111. package/bundle/obf/src/generators/services/_index.js +1 -1
  112. package/bundle/obf/src/generators/services/openssl.js +1 -1
  113. package/bundle/obf/src/generators/services/translation.js +1 -1
  114. package/bundle/obf/src/maka.js +1 -1
  115. package/bundle/obf/src/tool.js +1 -1
  116. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  117. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  118. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  119. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  120. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  121. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  122. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  123. package/bundle/obf/src/tools/https/https.class.js +1 -1
  124. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  125. package/bundle/obf/src/tools/log/log.class.js +1 -1
  126. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  127. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  128. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  129. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  130. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  131. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  132. package/package.json +1 -1
@@ -1 +1 @@
1
- const a78q=a78d;(function(a,b){const n=a78d,c=a();while(!![]){try{const d=parseInt(n(0x1c7))/0x1*(parseInt(n(0x1d5))/0x2)+-parseInt(n(0x1c1))/0x3*(parseInt(n(0x1cd))/0x4)+parseInt(n(0x1d6))/0x5*(parseInt(n(0x1c4))/0x6)+parseInt(n(0x1b7))/0x7*(-parseInt(n(0x1af))/0x8)+parseInt(n(0x1d4))/0x9*(parseInt(n(0x1b9))/0xa)+-parseInt(n(0x1b5))/0xb*(parseInt(n(0x1be))/0xc)+-parseInt(n(0x1ad))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x83eb7));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a78d;if(c){const e=c[o(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const p=a78d;return a78a['toString']()[p(0x1c8)](p(0x1cc))[p(0x1c9)]()[p(0x1cf)](a78a)[p(0x1c8)]('(((.+)+)+)+$');});function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a78d(a,b);}a78a();import a78e from'fs';import a78f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a78c(){const s=['reconfig','ssh.json','4243602MfSBVi','settings.json','855617mScRdr','ses.json','5129900oLjkKh','_keys','assign','apply','parse','24NLjWdc','Reconfigure\x20your\x20deployed\x20applications','env','93NcvfUc','scp','~/ses.json','78AgCdUf','Remote\x20host\x20connection\x20successful','create','39736odsLrG','search','toString','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','fsi','(((.+)+)+)+$','10040psHtMf','notice','constructor','existsSync','exit','Checking\x20remote\x20host\x20availability','maka\x20reconfig\x20--env\x20prod','18Uuzrhr','10lbbryM','185135JBbCci','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','2522819damvsy','~/pm2.config.js','8ZLzOrl','pm2.config.js','join','uname\x20-a'];a78c=function(){return s;};return a78c();}import{SSH}from'../tools/ssh/ssh.class.js';Command[a78q(0x1c6)]({'name':a78q(0x1b3),'validOpts':[''],'requiredOpts':[a78q(0x1c0)],'mustBeInMakaProject':!![],'usage':'maka\x20reconfig','shortDesc':a78q(0x1bf),'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\x20\x20','examples':[a78q(0x1d3)]},async function(a,b){const r=a78q;try{const c=this[r(0x1cb)]['getConfigPath'](b[r(0x1c0)]),d=a78f[r(0x1b1)](c,r(0x1b4)),f=a78e['readFileSync'](d)[r(0x1c9)](),g=JSON[r(0x1bd)](f);Object[r(0x1bb)](g,{'env':c}),Log[r(0x1ce)](r(0x1d2));const h=SSH['ping'](r(0x1b2),g);if(!h)throw r(0x1ca);if(h)Log['success'](r(0x1c5));const i=a78f[r(0x1b1)](c,r(0x1ba),r(0x1b8));if(a78e[r(0x1d0)](i)){const l={'source':i,'dest':r(0x1c3),'verbose':!![]};SSH[r(0x1c2)](l,{...g});}const j=a78f[r(0x1b1)](c,r(0x1b0));SSH['scp']({'source':j,'dest':r(0x1ae),'verbose':!![]},{...g});const k=a78f['join'](c,r(0x1b6));SSH[r(0x1c2)]({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH['sshSync']('pm2\x20delete\x20all',g),await SSH['ssh'](r(0x1ac),{...g},{'verbose':!![]});}catch(m){console['error'](m),process[r(0x1d1)](0x0);}});
1
+ const a78q=a78d;(function(a,b){const n=a78d,c=a();while(!![]){try{const d=-parseInt(n(0x1b1))/0x1*(-parseInt(n(0x1ab))/0x2)+-parseInt(n(0x1be))/0x3*(-parseInt(n(0x1b9))/0x4)+-parseInt(n(0x1b3))/0x5+-parseInt(n(0x1c4))/0x6*(parseInt(n(0x1ba))/0x7)+parseInt(n(0x1cb))/0x8*(parseInt(n(0x1c7))/0x9)+-parseInt(n(0x1d0))/0xa+-parseInt(n(0x1c3))/0xb*(parseInt(n(0x1bb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xeb9e6));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a78d;if(c){const e=c[o(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const p=a78d;return a78a[p(0x1ce)]()[p(0x1bf)]('(((.+)+)+)+$')['toString']()[p(0x1b7)](a78a)[p(0x1bf)](p(0x1c1));});a78a();import a78e from'fs';function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a78d(a,b);}import a78f from'path';import{Command}from'../command.js';function a78c(){const s=['env','329iOcMTT','ses.json','1594170VeBefm','ssh','_keys','~/settings.json','constructor','join','568BgyBuP','21FSlyhO','11244uZtnGj','exit','getConfigPath','35907afDMzR','search','readFileSync','(((.+)+)+)+$','existsSync','17237LNccNt','951810atGgYK','maka\x20reconfig','notice','54XgZbbz','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','pm2\x20delete\x20all','apply','2042576HIuhYB','scp','~/ses.json','toString','ssh.json','4044690ctOodL','sshSync','success','parse','ping','2438ZDgMSc','create','pm2.config.js','error','maka\x20reconfig\x20--env\x20prod'];a78c=function(){return s;};return a78c();}import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a78q(0x1ac)]({'name':'reconfig','validOpts':[''],'requiredOpts':[a78q(0x1b0)],'mustBeInMakaProject':!![],'usage':a78q(0x1c5),'shortDesc':'Reconfigure\x20your\x20deployed\x20applications','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\x20\x20','examples':[a78q(0x1af)]},async function(a,b){const r=a78q;try{const c=this['fsi'][r(0x1bd)](b['env']),d=a78f[r(0x1b8)](c,r(0x1cf)),f=a78e[r(0x1c0)](d)[r(0x1ce)](),g=JSON[r(0x1a9)](f);Object['assign'](g,{'env':c}),Log[r(0x1c6)]('Checking\x20remote\x20host\x20availability');const h=SSH[r(0x1aa)]('uname\x20-a',g);if(!h)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(h)Log[r(0x1d2)]('Remote\x20host\x20connection\x20successful');const i=a78f[r(0x1b8)](c,r(0x1b5),r(0x1b2));if(a78e[r(0x1c2)](i)){const l={'source':i,'dest':r(0x1cd),'verbose':!![]};SSH['scp'](l,{...g});}const j=a78f[r(0x1b8)](c,r(0x1ad));SSH['scp']({'source':j,'dest':'~/pm2.config.js','verbose':!![]},{...g});const k=a78f[r(0x1b8)](c,'settings.json');SSH[r(0x1cc)]({'source':k,'dest':r(0x1b6),'verbose':!![]},{...g}),SSH[r(0x1d1)](r(0x1c9),g),await SSH[r(0x1b4)](r(0x1c8),{...g},{'verbose':!![]});}catch(m){console[r(0x1ae)](m),process[r(0x1bc)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a79d,c=a();while(!![]){try{var d=parseInt(f(0x179))/0x1*(parseInt(f(0x17d))/0x2)+-parseInt(f(0x176))/0x3*(parseInt(f(0x174))/0x4)+parseInt(f(0x181))/0x5*(-parseInt(f(0x177))/0x6)+-parseInt(f(0x17e))/0x7*(parseInt(f(0x17f))/0x8)+parseInt(f(0x17b))/0x9+parseInt(f(0x180))/0xa+-parseInt(f(0x172))/0xb*(-parseInt(f(0x17a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xed859));function a79d(a,b){var c=a79c();return a79d=function(d,e){d=d-0x172;var f=c[d];return f;},a79d(a,b);}var a79b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a79d;if(c){var e=c[g(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){var h=a79d;return a79a['toString']()['search']('(((.+)+)+)+$')['toString']()[h(0x178)](a79a)[h(0x173)](h(0x175));});a79a();function a79c(){var i=['12XVybOB','2480220YWgFSJ','apply','6BEcWpm','2044147odkqEC','8Wxmjkd','1773730FfmRRc','135hQYaLj','23948683vbvOjR','search','4Ltjpvh','(((.+)+)+)+$','4359063KfbLFn','85128GuEUrX','constructor','156967lQspCy'];a79c=function(){return i;};return a79c();}import'./run.command.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a79d,c=a();while(!![]){try{var d=-parseInt(f(0xcb))/0x1*(parseInt(f(0xc0))/0x2)+parseInt(f(0xc5))/0x3*(-parseInt(f(0xc7))/0x4)+-parseInt(f(0xc1))/0x5*(-parseInt(f(0xbb))/0x6)+-parseInt(f(0xc2))/0x7+parseInt(f(0xc3))/0x8*(parseInt(f(0xbd))/0x9)+-parseInt(f(0xc8))/0xa*(-parseInt(f(0xca))/0xb)+-parseInt(f(0xc4))/0xc*(parseInt(f(0xbf))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x27e64));var a79b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a79d;if(c){var e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){var h=a79d;return a79a[h(0xc9)]()[h(0xbe)]('(((.+)+)+)+$')[h(0xc9)]()[h(0xc6)](a79a)[h(0xbe)]('(((.+)+)+)+$');});function a79d(a,b){var c=a79c();return a79d=function(d,e){d=d-0xbb;var f=c[d];return f;},a79d(a,b);}a79a();import'./run.command.js';import'./docker.sub.cmd.js';function a79c(){var i=['43048ZlXidt','24LWZwFm','3pJwBum','constructor','969620sotNhJ','10WEFCEq','toString','2349853BoONbi','3ISfJYy','690vmOfeR','apply','333HeZMeq','search','538616uCsacU','96302CnnfQf','10415GXQSsl','133805kesIyM'];a79c=function(){return i;};return a79c();}
@@ -1 +1 @@
1
- const a80l=a80d;function a80c(){const n=['2946WhIGoF','docker','apply','getConfigPath','PM2\x20Config\x20File:\x20','44271755PihAlu','12175LvliIT','appName','130frqZJv','Docker\x20Compose\x20Path:\x20','join','createFile','toString','2441104lQPuGH','\x20up\x20--remove-orphans','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','1nViJWF','708858UxisfA','templateContent','443223thvYnE','notice','exit','503754ItlqQW','fsi','search','2865380vVQdRv','constructor','(((.+)+)+)+$','create','7qaxqui','maka\x20run\x20docker','docker-compose\x20--project-directory\x20'];a80c=function(){return n;};return a80c();}(function(a,b){const i=a80d,c=a();while(!![]){try{const d=-parseInt(i(0x1ee))/0x1*(parseInt(i(0x1ef))/0x2)+-parseInt(i(0x1f4))/0x3+-parseInt(i(0x1d7))/0x4+-parseInt(i(0x1e4))/0x5*(parseInt(i(0x1de))/0x6)+parseInt(i(0x1db))/0x7*(-parseInt(i(0x1eb))/0x8)+parseInt(i(0x1f1))/0x9*(-parseInt(i(0x1e6))/0xa)+parseInt(i(0x1e3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x9d7d7));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a80d;if(c){const e=c[j(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const k=a80d;return a80a[k(0x1ea)]()['search'](k(0x1d9))[k(0x1ea)]()[k(0x1d8)](a80a)[k(0x1d6)](k(0x1d9));});a80a();function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a80d(a,b);}import a80e from'./run.command.js';import{execSync}from'child_process';import a80f from'path';import a80g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a80l(0x1da)]({'name':a80l(0x1df),'aliases':['d'],'shortDesc':a80l(0x1ed),'description':'\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\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','usage':a80l(0x1dc),'validOpts':['']},async function(){const m=a80l;try{const a=this['fsi']['getProjectConfig'](),b=this[m(0x1f5)][m(0x1e1)](m(0x1df)),c=a80f[m(0x1e8)](b,'docker-compose.yaml'),d=a80f[m(0x1e8)](b,'pm2.config.js');Log[m(0x1f2)](m(0x1e2)+d),Log['notice'](m(0x1e7)+c);if(!a80g['existsSync'](c)){const f={'app':a['appName'],'appFileCase':paramCase(a[m(0x1e5)])},g=this[m(0x1f5)][m(0x1f0)]({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this['fsi'][m(0x1e9)]({'filePath':c,'data':g});}execSync(m(0x1dd)+b+m(0x1ec),{'stdio':'inherit'});}catch(h){process[m(0x1f3)](0x1);}},a80e);
1
+ const a80l=a80d;(function(a,b){const i=a80d,c=a();while(!![]){try{const d=-parseInt(i(0x164))/0x1+-parseInt(i(0x14b))/0x2+-parseInt(i(0x14f))/0x3+parseInt(i(0x154))/0x4+-parseInt(i(0x162))/0x5+parseInt(i(0x168))/0x6+-parseInt(i(0x153))/0x7*(-parseInt(i(0x158))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x38fa5));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a80d;if(c){const e=c[j(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const k=a80d;return a80a['toString']()[k(0x15f)](k(0x159))[k(0x151)]()[k(0x167)](a80a)[k(0x15f)](k(0x159));});a80a();import a80e from'./run.command.js';import{execSync}from'child_process';import a80f from'path';function a80c(){const n=['docker-compose\x20--project-directory\x20','1290200BZOqET','Docker\x20Compose\x20Path:\x20','57272SZdlTq','docker','create','constructor','1270302uHuYrg','appName','842310gHKgxM','maka\x20run\x20docker','templateContent','getConfigPath','240210IrzoRN','inherit','toString','\x20up\x20--remove-orphans','600775tetJgH','263104eTyXGL','apply','createFile','existsSync','72NYgSwC','(((.+)+)+)+$','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','PM2\x20Config\x20File:\x20','fsi','\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\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','join','search','docker-compose.yaml'];a80c=function(){return n;};return a80c();}import a80g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x14b;let f=c[d];return f;},a80d(a,b);}Command[a80l(0x166)]({'name':a80l(0x165),'aliases':['d'],'shortDesc':a80l(0x15a),'description':a80l(0x15d),'usage':a80l(0x14c),'validOpts':['']},async function(){const m=a80l;try{const a=this['fsi']['getProjectConfig'](),b=this[m(0x15c)][m(0x14e)]('docker'),c=a80f[m(0x15e)](b,m(0x160)),d=a80f[m(0x15e)](b,'pm2.config.js');Log['notice'](m(0x15b)+d),Log['notice'](m(0x163)+c);if(!a80g[m(0x157)](c)){const f={'app':a[m(0x169)],'appFileCase':paramCase(a[m(0x169)])},g=this[m(0x15c)][m(0x14d)]({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this[m(0x15c)][m(0x156)]({'filePath':c,'data':g});}execSync(m(0x161)+b+m(0x152),{'stdio':m(0x150)});}catch(h){process['exit'](0x1);}},a80e);
@@ -1 +1 @@
1
- const a81u=a81d;(function(a,b){const q=a81d,c=a();while(!![]){try{const d=-parseInt(q(0xd2))/0x1*(parseInt(q(0xab))/0x2)+parseInt(q(0xb4))/0x3+parseInt(q(0xc2))/0x4+-parseInt(q(0xd7))/0x5+-parseInt(q(0xd8))/0x6*(-parseInt(q(0xb0))/0x7)+parseInt(q(0xcb))/0x8*(-parseInt(q(0xbe))/0x9)+parseInt(q(0xe3))/0xa*(parseInt(q(0xc4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xa74d8));function a81c(){const x=['Run\x20your\x20Meteor\x20application','954367knqeDy','warn','create','search','docker','4982260eMWSJu','6dlsGCJ','Meteor\x20Settings:\x20','length','port','local','apply','getConfigPath','filter','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)','sep','constructor','2300360iIYCxB','--production','argv','extraPackages','runSubCommand','rawLogs','2xghiCK','\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.','--env','Cannot\x20find\x20Node\x20Environment\x20File:\x20','inspect','870611xQKkpg','split','development','findSubCommand','3922395VbVTtx','app','run','concat','(((.+)+)+)+$','splice','mobile-server','config','compareMakaToLatest','settings.json','30843RQYksI','findProjectDirectory','fsi','--settings','3292008InfdNf','push','22rODAFu','openSync','toString','forEach','.meteor','production','notice','184WDqlrc','settings','invokeMeteorCommand','ios','env','join'];a81c=function(){return x;};return a81c();}const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a81d;if(c){const e=c[r(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const s=a81d;return a81a['toString']()[s(0xd5)](s(0xb8))[s(0xc6)]()[s(0xe2)](a81a)['search'](s(0xb8));});a81a();import a81e from'path';import a81f from'fs';import a81g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0xa8;let f=c[d];return f;},a81d(a,b);}import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const t=a81d;a81f[t(0xc5)](a,'r'),a81g[t(0xbb)]({'path':a});},Run=Command[a81u(0xd4)]({'name':a81u(0xb6),'mustBeInMakaProject':!![],'shortDesc':a81u(0xd1),'description':a81u(0xac),'validOpts':[a81u(0xcf),'docker','r',a81u(0xaa),'p',a81u(0xdb),'i',a81u(0xaf),'m','mobileServer','v','verbose','allowIncompatibleUpdate',a81u(0xa8),'x','exclude-archs',a81u(0xc9)]},async function(a,b){const v=a81u;try{const c=a[0x0],d=this[v(0xb3)](c);d&&this[v(0xa9)](c,a,b);if(c===v(0xce)){const m=this[v(0xc0)][v(0xbf)](),n=a81e['join'](m,v(0xb5),v(0xc8),v(0xdc),'cordova-build');this[v(0xc0)]['isDirectory'](n)&&await rimraf(n);}if(b['mobile-server']&&b[v(0xba)]===!![]||b['m']&&b['m']===!![])throw v(0xe0);await this['fsi'][v(0xbc)]();const f=b[v(0xcf)]?b['env']:v(0xb2),g=this[v(0xc0)][v(0xde)](f),h=a81e[v(0xd0)](g,'process.env');let i=a81e['join'](g,v(0xbd));b[v(0xcc)]?i=b[v(0xcc)]:i=a81e[v(0xd0)](g,v(0xbd));if(this[v(0xc0)]['isFile'](h)&&!b[v(0xd6)])Log[v(0xca)]('Node\x20Env\x20Config:\x20'+h),syncSource(h);else!b[v(0xd6)]&&Log[v(0xd3)](v(0xae)+h);this['fsi']['isFile'](i)?(Log[v(0xca)](v(0xd9)+i),a=a[v(0xb7)]([v(0xc1),i])):Log[v(0xd3)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+i);const j=g[v(0xb1)](a81e[v(0xe1)]),k=j[j[v(0xda)]-0x1];k===v(0xc9)&&a[v(0xc3)](v(0xe4));const l=process[v(0xe5)]['slice'](0x2)['filter'](o=>o!==v(0xb6))[v(0xdf)](o=>o!==a[0x0]);l[v(0xc7)]((o,p)=>{const w=v;o===w(0xad)&&l[w(0xb9)](p,0x2),o==='-e'&&l[w(0xb9)](p,0x2);}),this['fsi'][v(0xcd)](v(0xb6),a['concat'](l));}catch(o){console['error'](o),process['exit'](0x1);}});export default Run;
1
+ const a81t=a81d;(function(a,b){const q=a81d,c=a();while(!![]){try{const d=-parseInt(q(0x1df))/0x1*(-parseInt(q(0x1d3))/0x2)+-parseInt(q(0x1d5))/0x3*(parseInt(q(0x1b9))/0x4)+parseInt(q(0x1e4))/0x5+parseInt(q(0x1d1))/0x6*(parseInt(q(0x1bb))/0x7)+-parseInt(q(0x1bd))/0x8*(-parseInt(q(0x1cb))/0x9)+parseInt(q(0x1c4))/0xa*(parseInt(q(0x1dc))/0xb)+-parseInt(q(0x1d0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x44cdc));function a81c(){const w=['run','filter','isDirectory','40RQXlsq','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','Meteor\x20Settings:\x20','mobile-server','argv','app','mobileServer','774hGntZt','warn','inspect','toString','openSync','11703696mQpVtz','294CYHRqy','concat','2ZaHtIn','exclude-archs','1002711ZBGWxG','splice','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)','runSubCommand','(((.+)+)+)+$','settings','Node\x20Env\x20Config:\x20','621291QCtDYs','port','invokeMeteorCommand','424647WdXNvf','fsi','exit','findProjectDirectory','--settings','521835GgVurY','ios','isFile','sep','allowIncompatibleUpdate','--env','length','search','docker','development','join','constructor','error','4VEfZLx','config','68467ZxScUj','Run\x20your\x20Meteor\x20application','33224eDdLmX','env','split','notice'];a81c=function(){return w;};return a81c();}const a81b=(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;};}()),a81a=a81b(this,function(){const r=a81d;return a81a[r(0x1ce)]()[r(0x1b3)]('(((.+)+)+)+$')['toString']()[r(0x1b7)](a81a)['search'](r(0x1d9));});function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a81d(a,b);}a81a();import a81e from'path';import a81f from'fs';import a81g 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=a81d;a81f[s(0x1cf)](a,'r'),a81g[s(0x1ba)]({'path':a});},Run=Command['create']({'name':a81t(0x1c1),'mustBeInMakaProject':!![],'shortDesc':a81t(0x1bc),'description':'\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.','validOpts':[a81t(0x1be),a81t(0x1b4),'r','rawLogs','p',a81t(0x1dd),'i',a81t(0x1cd),'m',a81t(0x1ca),'v','verbose',a81t(0x1b0),'extraPackages','x',a81t(0x1d4),'production']},async function(a,b){const u=a81t;try{const c=a[0x0],d=this['findSubCommand'](c);d&&this[u(0x1d8)](c,a,b);if(c===u(0x1e5)){const m=this[u(0x1e0)][u(0x1e2)](),n=a81e['join'](m,u(0x1c9),'.meteor','local','cordova-build');this['fsi'][u(0x1c3)](n)&&await rimraf(n);}if(b[u(0x1c7)]&&b[u(0x1c7)]===!![]||b['m']&&b['m']===!![])throw u(0x1d7);await this['fsi']['compareMakaToLatest']();const f=b['env']?b[u(0x1be)]:u(0x1b5),g=this[u(0x1e0)]['getConfigPath'](f),h=a81e[u(0x1b6)](g,'process.env');let i=a81e[u(0x1b6)](g,'settings.json');b[u(0x1da)]?i=b[u(0x1da)]:i=a81e[u(0x1b6)](g,'settings.json');if(this[u(0x1e0)][u(0x1e6)](h)&&!b[u(0x1b4)])Log['notice'](u(0x1db)+h),syncSource(h);else!b[u(0x1b4)]&&Log[u(0x1cc)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+h);this[u(0x1e0)]['isFile'](i)?(Log[u(0x1c0)](u(0x1c6)+i),a=a[u(0x1d2)]([u(0x1e3),i])):Log[u(0x1cc)](u(0x1c5)+i);const j=g[u(0x1bf)](a81e[u(0x1e7)]),k=j[j[u(0x1b2)]-0x1];k==='production'&&a['push']('--production');const l=process[u(0x1c8)]['slice'](0x2)[u(0x1c2)](o=>o!==u(0x1c1))[u(0x1c2)](o=>o!==a[0x0]);l['forEach']((o,p)=>{const v=u;o===v(0x1b1)&&l[v(0x1d6)](p,0x2),o==='-e'&&l['splice'](p,0x2);}),this[u(0x1e0)][u(0x1de)](u(0x1c1),a['concat'](l));}catch(o){console[u(0x1b8)](o),process[u(0x1e1)](0x1);}});export default Run;
@@ -1 +1 @@
1
- (function(a,b){var f=a82d,c=a();while(!![]){try{var d=parseInt(f(0x176))/0x1+parseInt(f(0x177))/0x2+-parseInt(f(0x178))/0x3*(-parseInt(f(0x17d))/0x4)+parseInt(f(0x179))/0x5+parseInt(f(0x180))/0x6+-parseInt(f(0x17c))/0x7+-parseInt(f(0x17f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x21b3b));function a82c(){var i=['749940EzsQsB','search','toString','796817bYCdWu','52xEfqYR','apply','2402928SgSlRZ','879492rpWXaU','176493lUUavL','36310tavbxg','14082rsjlii'];a82c=function(){return i;};return a82c();}var a82b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a82d;if(c){var e=c[g(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){var h=a82d;return a82a[h(0x17b)]()[h(0x17a)]('(((.+)+)+)+$')[h(0x17b)]()['constructor'](a82a)['search']('(((.+)+)+)+$');});a82a();import'./set.command.js';import'./global.sub.cmd.js';function a82d(a,b){var c=a82c();return a82d=function(d,e){d=d-0x176;var f=c[d];return f;},a82d(a,b);}import'./local.sub.cmd.js';
1
+ (function(a,b){var f=a82d,c=a();while(!![]){try{var d=parseInt(f(0x77))/0x1*(parseInt(f(0x78))/0x2)+parseInt(f(0x6e))/0x3+parseInt(f(0x6c))/0x4*(parseInt(f(0x6f))/0x5)+-parseInt(f(0x6a))/0x6+parseInt(f(0x74))/0x7*(-parseInt(f(0x6d))/0x8)+parseInt(f(0x70))/0x9*(parseInt(f(0x71))/0xa)+-parseInt(f(0x76))/0xb*(parseInt(f(0x79))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x3e98c));function a82d(a,b){var c=a82c();return a82d=function(d,e){d=d-0x6a;var f=c[d];return f;},a82d(a,b);}var a82b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a82d;if(c){var e=c[g(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){var h=a82d;return a82a['toString']()[h(0x6b)](h(0x73))['toString']()[h(0x75)](a82a)[h(0x6b)](h(0x73));});a82a();function a82c(){var i=['88dZTxEQ','315495moQXOH','557435lzHegk','4128228RsNxrV','10JzpeXf','apply','(((.+)+)+)+$','93359LBgamD','constructor','22mfLXnG','4UkJFkg','159406QfXcdk','2046792pGlSUu','2168448TUaKmj','search','8zkCzli'];a82c=function(){return i;};return a82c();}import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
@@ -1 +1 @@
1
- const a83j=a83d;(function(a,b){const h=a83d,c=a();while(!![]){try{const d=parseInt(h(0x134))/0x1+-parseInt(h(0x13c))/0x2+parseInt(h(0x125))/0x3*(parseInt(h(0x124))/0x4)+parseInt(h(0x12a))/0x5+parseInt(h(0x13e))/0x6*(-parseInt(h(0x131))/0x7)+-parseInt(h(0x12f))/0x8*(parseInt(h(0x13a))/0x9)+-parseInt(h(0x123))/0xa*(-parseInt(h(0x136))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xf2033));function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x11a;let f=c[d];return f;},a83d(a,b);}const a83b=(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;};}()),a83a=a83b(this,function(){const i=a83d;return a83a[i(0x128)]()[i(0x11b)]('(((.+)+)+)+$')[i(0x128)]()[i(0x13d)](a83a)[i(0x11b)](i(0x137));});a83a();import a83e from'path';import a83f from'./set.command.js';function a83c(){const l=['maka\x20set:global-config\x20--cacert\x20<path>','fsi','search','Set\x20CA\x20Cert\x20Path:\x20','Set\x20global\x20Maka-CLI\x20settings','maka\x20set:global-config\x20<args>','allowInsecure','disallowInsecure','setGlobalConfig','exit','80EEOYSQ','132036aaaNIM','159meFhPi','boolean','resolve','toString','workspace','7518780AeBLIb','maka\x20set:gc\x20--workspace\x20<path>','error','create','\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','296aVFFxh','isDirectory','63freJzq','cacert','One\x20or\x20the\x20other\x20buddy','1676201vPbNQh','success','487366lBJeYJ','(((.+)+)+)+$','maka\x20set:gc\x20--insecure\x20<path>','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','447273RizDgp','global-config','1966006iCissf','constructor','980538wsyJNR'];a83c=function(){return l;};return a83c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a83j(0x12d)]({'name':a83j(0x13b),'usage':a83j(0x11e),'aliases':['gc'],'minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':[a83j(0x132),a83j(0x11f),a83j(0x120),a83j(0x129),'help'],'shortDesc':a83j(0x11d),'description':a83j(0x12e),'examples':[a83j(0x13f),a83j(0x138),a83j(0x12b)]},async function(a,b){const k=a83j;try{if(b[k(0x132)]){if(this[k(0x11a)]['isFile'](b[k(0x132)]))this[k(0x11a)][k(0x121)]({'cert':b[k(0x132)]}),Log[k(0x135)](k(0x11c)+b['cacert']);else{const c=typeof b[k(0x132)]===k(0x126)?k(0x139):'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+b['cacert'];throw Log[k(0x12c)](c);}}if(b['workspace']){const d=this[k(0x11a)][k(0x130)](b['workspace']);if(d)this[k(0x11a)][k(0x121)]({'workspace':a83e[k(0x127)](b['workspace'])}),Log[k(0x135)]('Set\x20workspace:\x20'+a83e[k(0x127)](b[k(0x129)]));else throw Log[k(0x12c)]('Could\x20not\x20find\x20directory');}if(b[k(0x11f)]){if(b[k(0x11f)]&&b[k(0x120)])throw Log[k(0x12c)](k(0x133));let f=b[k(0x11f)];b['disallowInsecure']&&(f=![]),this[k(0x11a)]['setGlobalConfig']({'allowInsecure':f}),Log[k(0x135)]('Set\x20allowInsecure:\x20'+f);}}catch(g){console[k(0x12c)](g),process[k(0x122)](0x0);}},a83f);
1
+ const a83j=a83d;function a83c(){const l=['2709qnrpuH','5028YjjYes','maka\x20set:global-config\x20--cacert\x20<path>','Set\x20CA\x20Cert\x20Path:\x20','create','help','One\x20or\x20the\x20other\x20buddy','maka\x20set:global-config\x20<args>','exit','global-config','2188640BcFwWA','cacert','fsi','setGlobalConfig','workspace','boolean','\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','constructor','error','4813902vJSXzy','allowInsecure','success','Set\x20global\x20Maka-CLI\x20settings','isFile','Set\x20allowInsecure:\x20','2071910iCxbTN','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','(((.+)+)+)+$','disallowInsecure','2512DutfKT','3607TqZwAh','resolve','maka\x20set:gc\x20--workspace\x20<path>','search','368uTiBXe','7255MXOrhg','toString','52596dhhWwm'];a83c=function(){return l;};return a83c();}(function(a,b){const h=a83d,c=a();while(!![]){try{const d=-parseInt(h(0xe1))/0x1*(parseInt(h(0xe5))/0x2)+-parseInt(h(0xe8))/0x3+parseInt(h(0xe0))/0x4*(parseInt(h(0xe6))/0x5)+parseInt(h(0xea))/0x6*(-parseInt(h(0xe9))/0x7)+parseInt(h(0xf3))/0x8+parseInt(h(0xfc))/0x9+-parseInt(h(0xdc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x7bc59));function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0xdc;let f=c[d];return f;},a83d(a,b);}const a83b=(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;};}()),a83a=a83b(this,function(){const i=a83d;return a83a[i(0xe7)]()['search'](i(0xde))[i(0xe7)]()[i(0xfa)](a83a)[i(0xe4)](i(0xde));});a83a();import a83e from'path';import a83f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a83j(0xed)]({'name':a83j(0xf2),'usage':a83j(0xf0),'aliases':['gc'],'minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':[a83j(0xf4),a83j(0xfd),a83j(0xdf),a83j(0xf7),a83j(0xee)],'shortDesc':a83j(0xff),'description':a83j(0xf9),'examples':[a83j(0xeb),'maka\x20set:gc\x20--insecure\x20<path>',a83j(0xe3)]},async function(a,b){const k=a83j;try{if(b[k(0xf4)]){if(this[k(0xf5)][k(0x100)](b[k(0xf4)]))this['fsi']['setGlobalConfig']({'cert':b[k(0xf4)]}),Log[k(0xfe)](k(0xec)+b[k(0xf4)]);else{const c=typeof b['cacert']===k(0xf8)?'Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.':k(0xdd)+b[k(0xf4)];throw Log[k(0xfb)](c);}}if(b['workspace']){const d=this[k(0xf5)]['isDirectory'](b[k(0xf7)]);if(d)this[k(0xf5)][k(0xf6)]({'workspace':a83e[k(0xe2)](b['workspace'])}),Log[k(0xfe)]('Set\x20workspace:\x20'+a83e['resolve'](b['workspace']));else throw Log[k(0xfb)]('Could\x20not\x20find\x20directory');}if(b[k(0xfd)]){if(b['allowInsecure']&&b[k(0xdf)])throw Log[k(0xfb)](k(0xef));let f=b['allowInsecure'];b[k(0xdf)]&&(f=![]),this[k(0xf5)][k(0xf6)]({'allowInsecure':f}),Log[k(0xfe)](k(0x101)+f);}}catch(g){console['error'](g),process[k(0xf1)](0x0);}},a83f);
@@ -1 +1 @@
1
- var a84i=a84d;function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0xec;var f=c[d];return f;},a84d(a,b);}(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0x102))/0x1+-parseInt(f(0xf6))/0x2*(-parseInt(f(0xf9))/0x3)+parseInt(f(0xef))/0x4+-parseInt(f(0x101))/0x5*(parseInt(f(0xf3))/0x6)+-parseInt(f(0xfe))/0x7+-parseInt(f(0xf8))/0x8+-parseInt(f(0xfb))/0x9*(-parseInt(f(0xff))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x5d2b7));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0xec)]()[h(0xfc)](h(0xf2))[h(0xec)]()[h(0xf5)](a84a)[h(0xfc)]('(((.+)+)+)+$');});a84a();import a84e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a84c(){var k=['constructor','394ncAIfN','local-config','56688NqYVrc','1635vaxVzK','apply','5993874gmdYqI','search','create','3594878HgoUhn','20mzXCfG','Sorry,\x20not\x20implemented\x20yet','20oIbXkJ','449735kJkUyw','toString','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','Set\x20local\x20maka\x20app\x20settings','1589220qYcLny','maka\x20set:local-config\x20<opts>','notice','(((.+)+)+)+$','726966WuWFtz','maka\x20set:lc\x20<opts>'];a84c=function(){return k;};return a84c();}Command[a84i(0xfd)]({'name':a84i(0xf7),'usage':a84i(0xf0),'examples':[a84i(0xf4),a84i(0xf0)],'aliases':['lc'],'mustBeInMakaProject':!![],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':a84i(0xee),'validOpts':[],'description':a84i(0xed)},async function(){var j=a84i;Log[j(0xf1)](j(0x100));},a84e);
1
+ var a84i=a84d;(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0x1b6))/0x1+-parseInt(f(0x1b8))/0x2+parseInt(f(0x1c9))/0x3*(-parseInt(f(0x1bc))/0x4)+-parseInt(f(0x1c5))/0x5+-parseInt(f(0x1c2))/0x6*(parseInt(f(0x1c8))/0x7)+-parseInt(f(0x1c4))/0x8+parseInt(f(0x1c3))/0x9*(parseInt(f(0x1b9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x50f15));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x1ba)]()['search'](h(0x1ca))[h(0x1ba)]()[h(0x1bf)](a84a)[h(0x1bb)](h(0x1ca));});a84a();import a84e from'./set.command.js';function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x1b6;var f=c[d];return f;},a84d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a84i(0x1c0),'usage':a84i(0x1c6),'examples':[a84i(0x1c1),a84i(0x1c6)],'aliases':['lc'],'mustBeInMakaProject':!![],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a84i(0x1b7)},async function(){var j=a84i;Log[j(0x1bd)](j(0x1be));},a84e);function a84c(){var k=['Sorry,\x20not\x20implemented\x20yet','constructor','local-config','maka\x20set:lc\x20<opts>','2584866pcSTfB','424989PIgcuD','4682144iJtPDI','1838185XGCaCW','maka\x20set:local-config\x20<opts>','apply','7xxjRNZ','9OfRQWt','(((.+)+)+)+$','279938kUekKm','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','1048378tGWOXC','620PAliOm','toString','search','544424BXSuMB','notice'];a84c=function(){return k;};return a84c();}
@@ -1 +1 @@
1
- const a85i=a85d;(function(a,b){const f=a85d,c=a();while(!![]){try{const d=-parseInt(f(0x117))/0x1+parseInt(f(0x113))/0x2+parseInt(f(0x10c))/0x3*(parseInt(f(0x107))/0x4)+parseInt(f(0x10a))/0x5*(parseInt(f(0x115))/0x6)+-parseInt(f(0x111))/0x7*(-parseInt(f(0x110))/0x8)+parseInt(f(0x10d))/0x9+-parseInt(f(0x10b))/0xa*(parseInt(f(0x114))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x4c39a));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a85d;if(c){const e=c[g(0x10f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const h=a85d;return a85a['toString']()['search'](h(0x112))['toString']()['constructor'](a85a)['search']('(((.+)+)+)+$');});a85a();function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x107;let f=c[d];return f;},a85d(a,b);}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const SetCommand=Command[a85i(0x109)]({'name':a85i(0x108),'usage':a85i(0x116),'minArgLength':0x1,'shortDesc':'Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','description':'\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','validOpts':[]},async function(a,b){const j=a85i,c=a[0x0];if(b['help'])throw new UsageError();const d=this[j(0x10e)](c);d&&this['runSubCommand'](c,a,b);});function a85c(){const k=['15809629McrhMu','12084xQkjpH','maka\x20set:<sub-command>\x20<opts>','114142tWpTAG','175128nyNmQT','set','create','745TqfiDR','10KoCOYj','39ckGcar','5276520LRIbmC','findSubCommand','apply','107384AYhzvy','147gsSNLm','(((.+)+)+)+$','252368zdrnbn'];a85c=function(){return k;};return a85c();}export default SetCommand;
1
+ function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xb6;let f=c[d];return f;},a85d(a,b);}const a85i=a85d;(function(a,b){const f=a85d,c=a();while(!![]){try{const d=-parseInt(f(0xb6))/0x1*(-parseInt(f(0xc6))/0x2)+parseInt(f(0xbf))/0x3*(parseInt(f(0xbb))/0x4)+-parseInt(f(0xbe))/0x5*(parseInt(f(0xcd))/0x6)+-parseInt(f(0xc9))/0x7*(-parseInt(f(0xc2))/0x8)+parseInt(f(0xb8))/0x9+parseInt(f(0xcc))/0xa*(parseInt(f(0xba))/0xb)+parseInt(f(0xc7))/0xc*(-parseInt(f(0xb9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xa8c67));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a85d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const h=a85d;return a85a[h(0xc8)]()[h(0xcb)](h(0xb7))['toString']()[h(0xbd)](a85a)[h(0xcb)](h(0xb7));});a85a();function a85c(){const k=['3900sNbzXW','12TkGMwc','create','8ouaXzH','(((.+)+)+)+$','4066236FgFJGd','182GkDUIR','25135AnxyvB','8LrYIeO','findSubCommand','constructor','2110265ssXaNW','1442841KiAYWa','runSubCommand','apply','7194712gJerwq','maka\x20set:<sub-command>\x20<opts>','set','\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','312160nUbRyd','2500644qwIiYr','toString','7ibDuCQ','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','search'];a85c=function(){return k;};return a85c();}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const SetCommand=Command[a85i(0xce)]({'name':a85i(0xc4),'usage':a85i(0xc3),'minArgLength':0x1,'shortDesc':a85i(0xca),'description':a85i(0xc5),'validOpts':[]},async function(a,b){const j=a85i,c=a[0x0];if(b['help'])throw new UsageError();const d=this[j(0xbc)](c);d&&this[j(0xc0)](c,a,b);});export default SetCommand;
@@ -1 +1 @@
1
- function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a86d(a,b);}const a86m=a86d;(function(a,b){const j=a86d,c=a();while(!![]){try{const d=parseInt(j(0x1f3))/0x1+parseInt(j(0x1fc))/0x2*(parseInt(j(0x1fb))/0x3)+parseInt(j(0x1ff))/0x4+parseInt(j(0x208))/0x5+parseInt(j(0x1f2))/0x6+parseInt(j(0x209))/0x7+-parseInt(j(0x20a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xa72b3));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a86d;if(c){const e=c[k(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const l=a86d;return a86a[l(0x205)]()[l(0x1fe)](l(0x201))[l(0x205)]()['constructor'](a86a)[l(0x1fe)](l(0x201));});function a86c(){const o=['assign','toString','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','exit','5939740SxTAfJ','5645696ShrJQE','34212464VuyASN','getConfigPath','error','parse','env','create','1620072EbzNwk','1231346mJtZVC','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','ssh.json','sshSync','apply','ssh','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','801504bNuNOA','2GQnALg','maka\x20ssh\x20--env\x20prod','search','4793116YbPqyl','maka\x20ssh\x20<command>','(((.+)+)+)+$','readFileSync','maka\x20ssh\x20--env\x20dev'];a86c=function(){return o;};return a86c();}a86a();import a86e from'fs';import a86f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a86m(0x1f1)]({'name':a86m(0x1f9),'usage':a86m(0x200),'mustBeInMakaProject':!![],'requiredOpts':[a86m(0x1f0)],'validOpts':[a86m(0x1f0),'v'],'shortDesc':a86m(0x1fa),'examples':[a86m(0x203),'maka\x20ssh\x20--env\x20staging',a86m(0x1fd),a86m(0x1f4),a86m(0x206),a86m(0x1f5)]},async function(a,b){const n=a86m;try{const c=this['fsi'][n(0x20b)](b[n(0x1f0)]);let d='';a['length']>0x0&&(d=a[0x0]);const f=a86f['join'](c,n(0x1f6)),g=a86e[n(0x202)](f)[n(0x205)](),h=JSON[n(0x1ef)](g);Object[n(0x204)](h,{'env':c}),SSH[n(0x1f7)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[n(0x20c)](i),process[n(0x207)](0x0);}});
1
+ const a86m=a86d;(function(a,b){const j=a86d,c=a();while(!![]){try{const d=-parseInt(j(0x1e2))/0x1+parseInt(j(0x1df))/0x2*(-parseInt(j(0x1c4))/0x3)+-parseInt(j(0x1d5))/0x4+parseInt(j(0x1d7))/0x5*(parseInt(j(0x1e5))/0x6)+-parseInt(j(0x1d4))/0x7*(-parseInt(j(0x1de))/0x8)+-parseInt(j(0x1ca))/0x9*(parseInt(j(0x1e3))/0xa)+-parseInt(j(0x1c9))/0xb*(-parseInt(j(0x1cb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x3dd0c));function a86c(){const o=['search','170825HSOnFT','6430DGeXQQ','join','1170324qtKxMJ','1518807doMHhP','maka\x20ssh\x20<command>','ssh','error','ssh.json','11mqxrbU','459jVRorC','5546388FJOCma','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','getConfigPath','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','sshSync','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','exit','maka\x20ssh\x20--env\x20prod','length','21eOtPXa','1417688AdSLSU','maka\x20ssh\x20--env\x20dev','10JgxeNE','assign','env','toString','parse','apply','(((.+)+)+)+$','1240528wvUzTz','2brTWQa','constructor'];a86c=function(){return o;};return a86c();}const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a86d;if(c){const e=c[k(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const l=a86d;return a86a[l(0x1da)]()[l(0x1e1)](l(0x1dd))[l(0x1da)]()[l(0x1e0)](a86a)[l(0x1e1)]('(((.+)+)+)+$');});a86a();import a86e from'fs';import a86f from'path';function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a86d(a,b);}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';Command['create']({'name':a86m(0x1c6),'usage':a86m(0x1c5),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a86m(0x1d9),'v'],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':[a86m(0x1d6),'maka\x20ssh\x20--env\x20staging',a86m(0x1d2),a86m(0x1ce),a86m(0x1d0),a86m(0x1cc)]},async function(a,b){const n=a86m;try{const c=this['fsi'][n(0x1cd)](b[n(0x1d9)]);let d='';a[n(0x1d3)]>0x0&&(d=a[0x0]);const f=a86f[n(0x1e4)](c,n(0x1c8)),g=a86e['readFileSync'](f)[n(0x1da)](),h=JSON[n(0x1db)](g);Object[n(0x1d8)](h,{'env':c}),SSH[n(0x1cf)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[n(0x1c7)](i),process[n(0x1d1)](0x0);}});
@@ -1 +1 @@
1
- const a87y=a87d;function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a87d(a,b);}(function(a,b){const v=a87d,c=a();while(!![]){try{const d=parseInt(v(0x1f4))/0x1+-parseInt(v(0x20d))/0x2*(-parseInt(v(0x218))/0x3)+-parseInt(v(0x20e))/0x4*(parseInt(v(0x203))/0x5)+parseInt(v(0x1fb))/0x6*(parseInt(v(0x219))/0x7)+parseInt(v(0x213))/0x8+parseInt(v(0x1fd))/0x9+-parseInt(v(0x220))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xd1f62));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a87d;if(c){const e=c[w(0x210)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const x=a87d;return a87a[x(0x21c)]()['search'](x(0x225))[x(0x21c)]()[x(0x208)](a87a)[x(0x201)]('(((.+)+)+)+$');});a87a();import a87e from'fs';function a87c(){const A=['error','(((.+)+)+)+$','genCSR','generate-csr','sudo\x20snap\x20install\x20--classic\x20certbot','generate-ssc','notice','Please\x20provide\x20a\x20command.','ssh','Using\x20saved\x20letsencrypt\x20config','uname\x20-a','withSpinner','Remote\x20host\x20connection\x20successful','464377pEFjBC','start','existsSync','Email\x20to\x20use\x20for\x20auto-updates:\x20','maka\x20ssl\x20--env\x20dev\x20generate-csr','letsencrypt.json','create','66acKkFv','getProjectConfig','6808851QBhLXQ','ssl','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','search','domains','20635eecDcv','fsi','email','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','appName','constructor','success','exit','Checking\x20remote\x20host\x20availability','env','3506RMWkDS','412SGlfGx','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','apply','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','readFileSync','7907304ygHCOM','genSSC','.csr','getConfigPath','[?]\x20Domains\x20to\x20register:\x20','1791ZlVXAF','305053EoAWmc','Verifying\x20Letsencrypt\x20configuration','assign','toString','letsencrypt','.crt','join','24501560UvgPbE','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','\x20--email\x20','.key'];a87c=function(){return A;};return a87c();}import a87f 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';import{SSL}from'../tools/ssl/ssl.class.js';Command[a87y(0x1fa)]({'name':a87y(0x1fe),'usage':'maka\x20ssl\x20[command]','validOpts':[a87y(0x202),'email'],'requiredOpts':['env'],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a87y(0x1f8),a87y(0x206),a87y(0x211)]},async function(a,b){const z=a87y,c=this[z(0x204)][z(0x1fc)](),d=this['fsi'][z(0x216)](b[z(0x20c)]),f=this['fsi']['mkKeysDir']({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0x227))SSL[z(0x226)]({'keyName':c[z(0x207)]+z(0x223),'csrName':c[z(0x207)]+'.csr','cwd':f});else{if(g===z(0x1ec)){if(!a87e['existsSync'](a87f[z(0x21f)](f,c[z(0x207)]+z(0x223))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a87f[z(0x21f)](f,c['appName']+z(0x223));if(!a87e[z(0x1f6)](a87f['join'](f,c[z(0x207)]+'.csr')))throw'The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20'+a87f[z(0x21f)](f,c[z(0x207)]+z(0x215));SSL[z(0x214)]({'keyName':c[z(0x207)]+z(0x223),'crtName':c[z(0x207)]+z(0x21e),'cwd':f}),Log[z(0x1ed)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g===z(0x21d)){let h=b[z(0x202)],i=b[z(0x205)];try{const p=a87e[z(0x212)](a87f['join'](d,z(0x1f9)))[z(0x21c)](),q=JSON['parse'](p);h=b[z(0x202)]?b['domains']:q['domainNames'],i=b['email']?b[z(0x205)]:q['emailUpdate'],(!b[z(0x205)]||!b['domains'])&&Log[z(0x1ed)](z(0x1f0));}catch(r){}const j=JSON['parse'](a87e[z(0x212)](d+'/ssh.json')['toString']());Object[z(0x21b)](j,{'env':d}),Log[z(0x1ed)](z(0x20b));try{const s=SSH['ping'](z(0x1f1),j);if(!s)throw z(0x20f);if(s)Log['success'](z(0x1f3));}catch(t){Log[z(0x224)](t);return;}const k=Log[z(0x1f2)]();k[z(0x1f5)](z(0x21a)),SSH['ssh'](z(0x221),{...j}),SSH[z(0x1ef)](z(0x1eb),{...j}),SSH[z(0x1ef)](z(0x200),{...j}),k[z(0x209)]();const l=h?h:await Actions['ask'](z(0x217)),m=i?i:await Actions['ask'](z(0x1f7));SSH['ssh'](z(0x1ff)+l+z(0x222)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON['stringify'](n,null,0x2);a87e['writeFileSync'](a87f[z(0x21f)](d,z(0x1f9)),o);}else throw z(0x1ee);}}}catch(u){console[z(0x224)](u),process[z(0x20a)](0x0);}});
1
+ const a87y=a87d;(function(a,b){const v=a87d,c=a();while(!![]){try{const d=-parseInt(v(0x18d))/0x1*(-parseInt(v(0x187))/0x2)+-parseInt(v(0x1a2))/0x3*(parseInt(v(0x183))/0x4)+parseInt(v(0x1a3))/0x5+parseInt(v(0x185))/0x6+-parseInt(v(0x1a4))/0x7*(parseInt(v(0x197))/0x8)+parseInt(v(0x19c))/0x9*(parseInt(v(0x18f))/0xa)+-parseInt(v(0x1a5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x8b89e));function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x174;let f=c[d];return f;},a87d(a,b);}const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a87d;if(c){const e=c[w(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const x=a87d;return a87a[x(0x1a7)]()[x(0x1a8)](x(0x195))[x(0x1a7)]()[x(0x179)](a87a)[x(0x1a8)](x(0x195));});a87a();import a87e from'fs';import a87f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';function a87c(){const A=['letsencrypt','mkKeysDir','notice','letsencrypt.json','2AoWaXL','readFileSync','10RftTdu','.csr','Checking\x20remote\x20host\x20availability','maka\x20ssl\x20--env\x20dev\x20generate-csr','apply','Create\x20and\x20manage\x20your\x20SSL\x20operations.','(((.+)+)+)+$','genCSR','2035368ooiCSt','join','parse','appName','ping','7559361gIGlmZ','ask','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','getProjectConfig','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','.crt','3faZIYq','5511135fjRlEa','21jPTgOK','17386633PnNiWC','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','toString','search','emailUpdate','.key','Remote\x20host\x20connection\x20successful','getConfigPath','Verifying\x20Letsencrypt\x20configuration','Please\x20provide\x20a\x20command.','/ssh.json','create','genSSC','\x20--email\x20','Email\x20to\x20use\x20for\x20auto-updates:\x20','constructor','exit','env','fsi','existsSync','email','domainNames','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','error','ssh','1432308ANhQfa','generate-ssc','4836270igvNRa','New\x20CSR\x20written\x20to\x20','525292nKmjYI','domains'];a87c=function(){return A;};return a87c();}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a87y(0x175)]({'name':'ssl','usage':'maka\x20ssl\x20[command]','validOpts':['domains',a87y(0x17e)],'requiredOpts':['env'],'shortDesc':a87y(0x194),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a87y(0x192),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a87y(0x19e)]},async function(a,b){const z=a87y,c=this[z(0x17c)][z(0x19f)](),d=this[z(0x17c)][z(0x1ac)](b[z(0x17b)]),f=this[z(0x17c)][z(0x18a)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[z(0x196)]({'keyName':c[z(0x19a)]+z(0x1aa),'csrName':c[z(0x19a)]+'.csr','cwd':f});else{if(g===z(0x184)){if(!a87e[z(0x17d)](a87f[z(0x198)](f,c[z(0x19a)]+'.key')))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a87f[z(0x198)](f,c['appName']+z(0x1aa));if(!a87e[z(0x17d)](a87f[z(0x198)](f,c[z(0x19a)]+z(0x190))))throw'The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20'+a87f['join'](f,c[z(0x19a)]+z(0x190));SSL[z(0x176)]({'keyName':c[z(0x19a)]+z(0x1aa),'crtName':c[z(0x19a)]+z(0x1a1),'cwd':f}),Log['notice'](z(0x186)+f);}else{if(g===z(0x189)){let h=b[z(0x188)],i=b[z(0x17e)];try{const p=a87e[z(0x18e)](a87f[z(0x198)](d,z(0x18c)))[z(0x1a7)](),q=JSON[z(0x199)](p);h=b['domains']?b['domains']:q[z(0x17f)],i=b['email']?b[z(0x17e)]:q[z(0x1a9)],(!b[z(0x17e)]||!b['domains'])&&Log[z(0x18b)]('Using\x20saved\x20letsencrypt\x20config');}catch(r){}const j=JSON[z(0x199)](a87e[z(0x18e)](d+z(0x174))[z(0x1a7)]());Object['assign'](j,{'env':d}),Log[z(0x18b)](z(0x191));try{const s=SSH[z(0x19b)]('uname\x20-a',j);if(!s)throw z(0x1a6);if(s)Log['success'](z(0x1ab));}catch(t){Log[z(0x181)](t);return;}const k=Log['withSpinner']();k['start'](z(0x1ad)),SSH[z(0x182)](z(0x1a0),{...j}),SSH['ssh']('sudo\x20snap\x20install\x20--classic\x20certbot',{...j}),SSH[z(0x182)](z(0x180),{...j}),k['success']();const l=h?h:await Actions[z(0x19d)]('[?]\x20Domains\x20to\x20register:\x20'),m=i?i:await Actions[z(0x19d)](z(0x178));SSH[z(0x182)]('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+l+z(0x177)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON['stringify'](n,null,0x2);a87e['writeFileSync'](a87f[z(0x198)](d,z(0x18c)),o);}else throw z(0x1ae);}}}catch(u){console[z(0x181)](u),process[z(0x17a)](0x0);}});
@@ -1 +1 @@
1
- const a88p=a88d;(function(a,b){const m=a88d,c=a();while(!![]){try{const d=-parseInt(m(0x100))/0x1+parseInt(m(0x134))/0x2*(-parseInt(m(0x11e))/0x3)+parseInt(m(0x124))/0x4+-parseInt(m(0x10d))/0x5*(parseInt(m(0x117))/0x6)+parseInt(m(0x128))/0x7*(parseInt(m(0x13a))/0x8)+-parseInt(m(0x11d))/0x9+-parseInt(m(0x101))/0xa*(-parseInt(m(0x131))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xd817c));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 n=a88d;return a88a[n(0x12c)]()[n(0x137)]('(((.+)+)+)+$')['toString']()['constructor'](a88a)['search'](n(0x106));});a88a();import a88e from'fs';function a88c(){const s=['driverPackage','15700jHJuml','fsi','testAppPath','search','--packages','getConfigPath','415984dWCnfe','771951oCTCLk','30zjGFhD','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','concat','openSync','.maka','(((.+)+)+)+$','test-packages','driver-package','join','notice','packages','port','25IgJpuF','warn','splice','slice','Node\x20Env\x20Config:\x20','env','--settings','readFileSync','once','Cannot\x20find\x20Node\x20Environment\x20File:\x20','940458fKZXEc','unit','maka\x20test\x20<opts>','invokeMeteorCommand','forEach','isFile','1157373PNUQhE','549bWQwhD','filter','config','exit','argv','config.json','416040vaakRs','--env','test','mocha','28REttkq','none','jasmine','findProjectDirectory','toString','rawLogs','create','--driver','driver','13544399TWSgds','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)'];a88c=function(){return s;};return a88c();}import a88f from'path';import a88g from'dotenv';import{Command}from'../command.js';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x100;let f=c[d];return f;},a88d(a,b);}import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const o=a88d;a88e[o(0x104)](a,'r'),a88g[o(0x120)]({'path':a});};Command[a88p(0x12e)]({'name':a88p(0x126),'mustBeInMakaProject':!![],'validOpts':['once',a88p(0x10b),a88p(0x130),a88p(0x133),a88p(0x118),a88p(0x112),a88p(0x12d),a88p(0x10c),'inspect',a88p(0x136)],'usage':a88p(0x119),'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const q=a88p;try{let c=this[q(0x135)]['getConfigPath']('development');b[q(0x112)]&&(c=this['fsi'][q(0x139)](b['env']));(!b[q(0x118)]||!!b[q(0x115)])&&(a=a[q(0x103)](['--full-app']));b[q(0x118)]&&delete b[q(0x118)];let d=b[q(0x108)]||b['driver']||q(0x129);if(d===q(0x129)){const j=JSON['parse'](a88e[q(0x114)](a88f[q(0x109)](this[q(0x135)][q(0x12b)](),q(0x105),q(0x123)),'utf8'));if(j['engines'][q(0x126)]===q(0x12a))d='sanjo:jasmine';else j['engines']['test']===q(0x127)&&(d='meteortesting:mocha');}if(d==='none')throw q(0x132);(!b['driver-package']||!b['driver'])&&(a=a[q(0x103)](['--driver-package',d]));const f=a88f[q(0x109)](c,'settings.json');this[q(0x135)][q(0x11c)](f)?(Log[q(0x10a)]('Meteor\x20Settings:\x20'+f),a=a['concat']([q(0x113),f])):Log[q(0x10e)](q(0x102)+f);const g=a88f['join'](c,'process.env');this[q(0x135)][q(0x11c)](g)?(Log[q(0x10a)](q(0x111)+g),syncSource(g)):Log['warn'](q(0x116)+g);const h=process[q(0x122)][q(0x110)](0x2)[q(0x11f)](k=>k!==q(0x125))[q(0x11f)](k=>k!=='test')['filter'](k=>k!==a[0x0]);h[q(0x11b)]((k,l)=>{const r=q;(k==='--env'||k===r(0x12f))&&h[r(0x10f)](l,0x2),k===r(0x138)&&h[r(0x10f)](l,0x1);});const i=b[q(0x10b)]?q(0x107):q(0x126);this[q(0x135)][q(0x11a)](i,a[q(0x103)](h));}catch(k){console['error'](k),process[q(0x121)](0x0);}});
1
+ function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0xda;let f=c[d];return f;},a88d(a,b);}const a88q=a88d;(function(a,b){const m=a88d,c=a();while(!![]){try{const d=parseInt(m(0x10d))/0x1+parseInt(m(0xe2))/0x2*(parseInt(m(0x108))/0x3)+-parseInt(m(0x110))/0x4+-parseInt(m(0xe1))/0x5*(parseInt(m(0xfb))/0x6)+-parseInt(m(0x109))/0x7+parseInt(m(0x102))/0x8*(-parseInt(m(0x118))/0x9)+parseInt(m(0xfd))/0xa*(-parseInt(m(0xf8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x1f57a));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a88d;if(c){const e=c[n(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const o=a88d;return a88a['toString']()['search'](o(0xde))[o(0x10b)]()[o(0xfa)](a88a)['search'](o(0xde));});a88a();import a88e from'fs';import a88f from'path';function a88c(){const t=['constructor','906BpuVLU','slice','10gugvvz','env','readFileSync','getConfigPath','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','8MDEKsS','--full-app','.maka','driver','jasmine','isFile','3oLWNoR','516243yZXWjI','config','toString','development','251280jLbObC','notice','port','180580sOIWhE','mocha','settings.json','none','meteortesting:mocha','--env','engines','rawLogs','1126863SDSOlw','--settings','testAppPath','driver-package','sanjo:jasmine','apply','join','packages','(((.+)+)+)+$','filter','once','3615dqsQYA','508126eFJKVE','maka\x20test\x20<opts>','create','splice','parse','concat','openSync','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','unit','test','Node\x20Env\x20Config:\x20','warn','test-packages','Meteor\x20Settings:\x20','fsi','--packages','forEach','--driver-package','process.env','driverPackage','config.json','utf8','260601Czhtec','Cannot\x20find\x20Node\x20Environment\x20File:\x20'];a88c=function(){return t;};return a88c();}import a88g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a88d;a88e[p(0xe8)](a,'r'),a88g[p(0x10a)]({'path':a});};Command[a88q(0xe4)]({'name':'test','mustBeInMakaProject':!![],'validOpts':[a88q(0xe0),a88q(0xdd),a88q(0x105),a88q(0xf5),a88q(0xea),a88q(0xfe),a88q(0x117),a88q(0x10f),'inspect',a88q(0x11a)],'usage':a88q(0xe3),'shortDesc':a88q(0x101),'examples':[]},function(a,b){const r=a88q;try{let c=this[r(0xf0)]['getConfigPath'](r(0x10c));b[r(0xfe)]&&(c=this['fsi'][r(0x100)](b[r(0xfe)]));(!b[r(0xea)]||!!b[r(0xe0)])&&(a=a[r(0xe7)]([r(0x103)]));b[r(0xea)]&&delete b[r(0xea)];let d=b[r(0x11b)]||b['driver']||r(0x113);if(d===r(0x113)){const j=JSON[r(0xe6)](a88e[r(0xff)](a88f[r(0xdc)](this[r(0xf0)]['findProjectDirectory'](),r(0x104),r(0xf6)),r(0xf7)));if(j[r(0x116)]['test']===r(0x106))d=r(0xda);else j[r(0x116)][r(0xeb)]===r(0x111)&&(d=r(0x114));}if(d===r(0x113))throw r(0xe9);(!b[r(0x11b)]||!b[r(0x105)])&&(a=a[r(0xe7)]([r(0xf3),d]));const f=a88f[r(0xdc)](c,r(0x112));this[r(0xf0)]['isFile'](f)?(Log[r(0x10e)](r(0xef)+f),a=a[r(0xe7)]([r(0x119),f])):Log[r(0xed)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);const g=a88f[r(0xdc)](c,r(0xf4));this[r(0xf0)][r(0x107)](g)?(Log[r(0x10e)](r(0xec)+g),syncSource(g)):Log[r(0xed)](r(0xf9)+g);const h=process['argv'][r(0xfc)](0x2)['filter'](k=>k!==r(0x115))['filter'](k=>k!==r(0xeb))[r(0xdf)](k=>k!==a[0x0]);h[r(0xf2)]((k,l)=>{const s=r;(k===s(0x115)||k==='--driver')&&h[s(0xe5)](l,0x2),k===s(0xf1)&&h[s(0xe5)](l,0x1);});const i=b[r(0xdd)]?r(0xee):'test';this[r(0xf0)]['invokeMeteorCommand'](i,a[r(0xe7)](h));}catch(k){console['error'](k),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a89m=a89d;(function(a,b){const k=a89d,c=a();while(!![]){try{const d=-parseInt(k(0x117))/0x1+parseInt(k(0xff))/0x2*(-parseInt(k(0x11e))/0x3)+-parseInt(k(0x127))/0x4+parseInt(k(0x11b))/0x5+parseInt(k(0xfe))/0x6+-parseInt(k(0x111))/0x7*(parseInt(k(0x122))/0x8)+parseInt(k(0x10e))/0x9*(parseInt(k(0x119))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0xdbe2a));const a89b=(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;};}()),a89a=a89b(this,function(){const l=a89d;return a89a[l(0x118)]()['search'](l(0x10b))['toString']()[l(0x11f)](a89a)[l(0x104)](l(0x10b));});a89a();import{execSync}from'child_process';import a89e from'semver';import{Command}from'../command.js';function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0xfc;let f=c[d];return f;},a89d(a,b);}import{Log}from'../tools/log/log.class.js';const pjson={'version':a89m(0x105)};function a89c(){const o=['120knuVfX','notice','8726085fhiPZv','majestic','bright','126LSxvsw','constructor','fsi','maka\x20version\x20--verbose','2745048Ncqigg','\x20node\x20-v','version','N/A','maka\x20version','4312740YUPrEu','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','4156818eKoKkr','7798CdPhug','----------------------Project----------------------------','Maka\x20','getGlobalMeteorVersion','Project\x27s\x20Meteor\x20Node\x20Version\x20','search','4.5.29','Project\x27s\x20Meteor\x20Version\x20','meteor',')\x20to\x20at\x20least\x20meteor\x27s\x20(','platform','verbose','(((.+)+)+)+$','replace','compareMakaToLatest','2372859yUpMlh','error','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','35HsUKjx','----------------------System----------------------------','System\x27s\x20Node\x20Version\x20','win32','warn','meteor.bat','1743584qtqKRs','toString'];a89c=function(){return o;};return a89c();}Command['create']({'name':a89m(0x124),'aliases':['v'],'usage':'maka\x20version','maxArgLength':0x1,'validOpts':[a89m(0x10a)],'shortDesc':a89m(0xfc),'examples':['maka\x20v',a89m(0x126),a89m(0x121)],'description':'\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'},async function(a,b){const n=a89m;try{const c=process[n(0x109)]===n(0x114)?n(0x116):n(0x107);Log[n(0x11c)](n(0x101)+pjson[n(0x124)]);if(b[n(0x10a)]){await this[n(0x120)][n(0x10d)](),Log[n(0x11d)](n(0x112));const d=this[n(0x120)][n(0x102)]();Log[n(0x11d)](('System\x27s\x20Meteor\x20Version\x20'+d)[n(0x10c)]('\x0a',''));const f=execSync(c+n(0x123))[n(0x118)]()['replace'](/\r?\n|\r/,'')[n(0x10c)]('v','');Log[n(0x11d)](n(0x110)+f);const g=execSync('node\x20-v')[n(0x118)]()[n(0x10c)](/\r?\n|\r/,'')[n(0x10c)]('v','');a89e['gt'](f,g)?(Log['warn'](n(0x113)+g),Log[n(0x115)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+g+n(0x108)+f+')')):Log['bright']('System\x27s\x20Node\x20Version\x20'+g);if(this[n(0x120)]['isMakaProject']()){Log[n(0x11d)](n(0x100));const h=this['fsi']['getProjectMeteorVersion']();a89e['gt'](d,h)?(Log[n(0x115)](n(0x106)+h['replace']('\x0a','')),Log[n(0x115)](n(0xfd)+d+'\x22')):Log[n(0x11a)]((n(0x106)+h)[n(0x10c)]('\x0a',''));const i=await this['fsi']['getProjectsMeteorNodeVersion']();i===n(0x125)?(Log[n(0x115)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[n(0x115)]('\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.')):Log['bright'](n(0x103)+i),Log[n(0x11d)]('\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');}}}catch(j){console[n(0x10f)](j),process['exit'](0x0);}});
1
+ const a89n=a89d;(function(a,b){const k=a89d,c=a();while(!![]){try{const d=-parseInt(k(0x1e5))/0x1*(-parseInt(k(0x20c))/0x2)+parseInt(k(0x201))/0x3*(parseInt(k(0x1e8))/0x4)+-parseInt(k(0x1e0))/0x5+parseInt(k(0x210))/0x6*(-parseInt(k(0x1f7))/0x7)+-parseInt(k(0x1e6))/0x8+parseInt(k(0x1fb))/0x9*(parseInt(k(0x1ee))/0xa)+parseInt(k(0x202))/0xb*(parseInt(k(0x1ea))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x803cc));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a89d;if(c){const e=c[l(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const m=a89d;return a89a[m(0x1ed)]()[m(0x20f)]('(((.+)+)+)+$')[m(0x1ed)]()[m(0x1fd)](a89a)['search']('(((.+)+)+)+$');});a89a();function a89c(){const p=['getGlobalMeteorVersion','isMakaProject','replace','notice','System\x27s\x20Node\x20Version\x20','Maka\x20','4.5.31','maka\x20version','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','8OKWamf',')\x20to\x20at\x20least\x20meteor\x27s\x20(','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','search','30zXJqFM','error','compareMakaToLatest','fsi','warn','4383335LmGtwY','bright','----------------------Project----------------------------','version','\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','154739xmoUVw','3010096MHqdMJ','platform','1448xJeaQG','meteor','6589872VEuLlf','maka\x20version\x20--verbose','\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','toString','30KQolXJ','maka\x20v','node\x20-v','Project\x27s\x20Meteor\x20Node\x20Version\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','exit','verbose','Project\x27s\x20Meteor\x20Version\x20','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','538300ouFJLe','System\x27s\x20Meteor\x20Version\x20','meteor.bat','getProjectMeteorVersion','478323dxPFAt','getProjectsMeteorNodeVersion','constructor','majestic','apply','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','2370LQEFSB','22JkRqvo'];a89c=function(){return p;};return a89c();}import{execSync}from'child_process';import a89e from'semver';import{Command}from'../command.js';function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a89d(a,b);}import{Log}from'../tools/log/log.class.js';const pjson={'version':a89n(0x209)};Command['create']({'name':a89n(0x1e3),'aliases':['v'],'usage':a89n(0x20a),'maxArgLength':0x1,'validOpts':[a89n(0x1f4)],'shortDesc':a89n(0x1f6),'examples':[a89n(0x1ef),'maka\x20version',a89n(0x1eb)],'description':a89n(0x1ec)},async function(a,b){const o=a89n;try{const c=process[o(0x1e7)]==='win32'?o(0x1f9):o(0x1e9);Log[o(0x1fe)](o(0x208)+pjson[o(0x1e3)]);if(b[o(0x1f4)]){await this['fsi'][o(0x212)](),Log['bright']('----------------------System----------------------------');const d=this[o(0x213)][o(0x203)]();Log[o(0x1e1)]((o(0x1f8)+d)[o(0x205)]('\x0a',''));const f=execSync(c+'\x20node\x20-v')['toString']()['replace'](/\r?\n|\r/,'')[o(0x205)]('v','');Log['bright'](o(0x20b)+f);const g=execSync(o(0x1f0))[o(0x1ed)]()['replace'](/\r?\n|\r/,'')[o(0x205)]('v','');a89e['gt'](f,g)?(Log[o(0x214)](o(0x207)+g),Log[o(0x214)](o(0x200)+g+o(0x20d)+f+')')):Log[o(0x1e1)](o(0x207)+g);if(this['fsi'][o(0x204)]()){Log['bright'](o(0x1e2));const h=this[o(0x213)][o(0x1fa)]();a89e['gt'](d,h)?(Log[o(0x214)](o(0x1f5)+h[o(0x205)]('\x0a','')),Log[o(0x214)](o(0x20e)+d+'\x22')):Log[o(0x206)]((o(0x1f5)+h)[o(0x205)]('\x0a',''));const i=await this[o(0x213)][o(0x1fc)]();i==='N/A'?(Log[o(0x214)](o(0x1f1)+i),Log[o(0x214)](o(0x1f2))):Log['bright']('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[o(0x1e1)](o(0x1e4));}}}catch(j){console[o(0x211)](j),process[o(0x1f3)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a90d,c=a();while(!![]){try{var d=parseInt(f(0x16c))/0x1*(parseInt(f(0x16b))/0x2)+-parseInt(f(0x165))/0x3*(parseInt(f(0x167))/0x4)+parseInt(f(0x169))/0x5*(-parseInt(f(0x161))/0x6)+-parseInt(f(0x16a))/0x7+parseInt(f(0x168))/0x8+parseInt(f(0x163))/0x9*(-parseInt(f(0x162))/0xa)+parseInt(f(0x164))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x8729c));function a90c(){var i=['1495602cacjEx','2284832PpNfNr','3wwpkTI','apply','80372FROmEK','3301352ELuvtr','1366665tDIycD','730632nikfTY','13298zcgOzj','157aVTDhw','search','toString','18keJIfJ','10FrldXE'];a90c=function(){return i;};return a90c();}var a90b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a90d;if(c){var e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){var h=a90d;return a90a[h(0x16e)]()[h(0x16d)]('(((.+)+)+)+$')[h(0x16e)]()['constructor'](a90a)[h(0x16d)]('(((.+)+)+)+$');});a90a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a90d(a,b){var c=a90c();return a90d=function(d,e){d=d-0x161;var f=c[d];return f;},a90d(a,b);}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
1
+ (function(a,b){var f=a90d,c=a();while(!![]){try{var d=parseInt(f(0x1b2))/0x1+-parseInt(f(0x1b4))/0x2*(parseInt(f(0x1ba))/0x3)+-parseInt(f(0x1b7))/0x4*(-parseInt(f(0x1b9))/0x5)+-parseInt(f(0x1bd))/0x6+-parseInt(f(0x1be))/0x7+parseInt(f(0x1bc))/0x8*(-parseInt(f(0x1b3))/0x9)+parseInt(f(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xd1cac));var a90b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a90d;if(c){var e=c[g(0x1b5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){var h=a90d;return a90a['toString']()['search']('(((.+)+)+)+$')['toString']()['constructor'](a90a)[h(0x1b8)](h(0x1b6));});function a90c(){var i=['2690UcPEJd','64245xUPOqw','17372440PilZng','501864daHMgA','988134RkHdYK','3599211BVFKQB','867154tYIuLL','63iWCJDD','86oFwMZA','apply','(((.+)+)+)+$','2184GVdeze','search'];a90c=function(){return i;};return a90c();}a90a();export class UsageError{}export class UsageErrorWithSubs{}function a90d(a,b){var c=a90c();return a90d=function(d,e){d=d-0x1b2;var f=c[d];return f;},a90d(a,b);}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var a91i=a91d;(function(a,b){var f=a91d,c=a();while(!![]){try{var d=-parseInt(f(0x1c6))/0x1+parseInt(f(0x1ca))/0x2+parseInt(f(0x1c4))/0x3+-parseInt(f(0x1c8))/0x4+parseInt(f(0x1c1))/0x5+parseInt(f(0x1cb))/0x6*(-parseInt(f(0x1c0))/0x7)+-parseInt(f(0x1c7))/0x8*(-parseInt(f(0x1c9))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0xec2b4));function a91c(){var j=['toString','524713NKbyVU','7185560jfNPWm','env','(((.+)+)+)+$','2058603zqoTOC','constructor','887190TfODtE','8nkeLSr','5824420zFOMmd','14189445VdQKep','1770056ubnTjp','102acnyTU','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','search','NODE_OPTIONS','apply'];a91c=function(){return j;};return a91c();}var a91b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a91d;if(c){var e=c[g(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){var h=a91d;return a91a[h(0x1bf)]()[h(0x1cd)](h(0x1c3))['toString']()[h(0x1c5)](a91a)[h(0x1cd)](h(0x1c3));});function a91d(a,b){var c=a91c();return a91d=function(d,e){d=d-0x1bd;var f=c[d];return f;},a91d(a,b);}a91a(),process[a91i(0x1c2)][a91i(0x1bd)]=a91i(0x1cc);import'./maka.js';
2
+ var a91i=a91d;(function(a,b){var f=a91d,c=a();while(!![]){try{var d=parseInt(f(0x106))/0x1+-parseInt(f(0x107))/0x2*(parseInt(f(0x109))/0x3)+parseInt(f(0x10a))/0x4*(-parseInt(f(0x10c))/0x5)+-parseInt(f(0x110))/0x6*(parseInt(f(0x108))/0x7)+-parseInt(f(0x103))/0x8*(-parseInt(f(0x10e))/0x9)+-parseInt(f(0x102))/0xa*(-parseInt(f(0x104))/0xb)+parseInt(f(0x113))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0xb2ab7));var a91b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a91d;if(c){var e=c[g(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){var h=a91d;return a91a[h(0x10d)]()[h(0x105)]('(((.+)+)+)+$')[h(0x10d)]()[h(0x111)](a91a)['search'](h(0x10f));});a91a(),process[a91i(0x10b)][a91i(0x112)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';function a91d(a,b){var c=a91c();return a91d=function(d,e){d=d-0x102;var f=c[d];return f;},a91d(a,b);}function a91c(){var j=['389802KkoFdp','9MWAROX','152VSgvqw','env','103455ENwrVK','toString','27VlBPxr','(((.+)+)+)+$','108qmQNEr','constructor','NODE_OPTIONS','21279060gkLtvX','apply','10pAHWFm','1048680mapsJl','6221149jgwYCX','search','278934Ojrkyh','327044vxbPBL'];a91c=function(){return j;};return a91c();}
@@ -1 +1 @@
1
- function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x85;let f=c[d];return f;},a92d(a,b);}const a92u=a92d;(function(a,b){const q=a92d,c=a();while(!![]){try{const d=-parseInt(q(0xa4))/0x1*(-parseInt(q(0x8f))/0x2)+-parseInt(q(0x94))/0x3*(-parseInt(q(0xe1))/0x4)+parseInt(q(0xb3))/0x5+-parseInt(q(0xb1))/0x6*(-parseInt(q(0x87))/0x7)+-parseInt(q(0xd8))/0x8*(-parseInt(q(0x9e))/0x9)+parseInt(q(0xca))/0xa*(-parseInt(q(0x98))/0xb)+-parseInt(q(0x88))/0xc*(parseInt(q(0xde))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xd4ce8));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a92d;if(c){const e=c[r(0x90)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const s=a92d;return a92a[s(0xad)]()[s(0xd1)]('(((.+)+)+)+$')[s(0xad)]()[s(0xa8)](a92a)[s(0xd1)](s(0xe2));});a92a();import a92e from'path';import a92f from'cli-table';import{paramCase}from'change-case';function a92c(){const G=['chdir','Generator.create\x20requires\x20some\x20options!','Generator.create\x20requires\x20a\x20handler\x20function!','Generator\x20requires\x20a\x20handler\x20function','7vkHQuO','362304DIIUXQ','proGenerators','roles','client','minArgLength','parent','assign','16726wtIsUZ','apply','resourceName','where','both','6MWJFmt','checkWhere','server','notice','863269lgNYYI','noResource','shortDesc','domainLicense','To\x20use\x20these\x20pro\x20flags,\x20\x22','Too\x20many\x20arguments','4175757BTWRoU','Too\x20many\x20options','addGenerator','help','match','name','38alYuWv','Name','validateParams','Please\x20run\x20\x22maka\x20install\x20meteor\x22','constructor','root','push','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateMakaSubscription','toString','proFlags','_handler','number','7947078BDItBe','Location','19275QISJVB','getPro','Too\x20few\x20arguments','listGenerators','colLocAnswer','tableList','length','singleLicense','pop','includes','minOptsLength','maxArgLength','split','error','Too\x20few\x20options','mustHaveMeteorInstalled','usage','bright','cwd','There\x20is\x20no\x20Meteor\x20application\x20here','appPathPrefix','filter','aliases','90qruKNw','dir','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','validateMeteorInstall','sep','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','exit','search','function','options','maxOptsLength','fsi','sort','mustBeInMakaProject','24lPTrZH','replace','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','keys','Server','join','637yLRUjl','create','_generators','38588NLJmoJ','(((.+)+)+)+$'];a92c=function(){return G;};return a92c();}import a92g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a92d,c=process[t(0xc5)]();let d=null;try{process[t(0xe3)](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a92u(0xd3)];[a92u(0xe0)];constructor(a,b){const v=a92u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[v(0xa3)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0xd2))throw new Error(v(0x86));this['_generators']=[],this[v(0xd3)]=Object[v(0x8e)]({},a),this[v(0xa3)]=this['options'][v(0xa3)],this[v(0xaf)]=b['bind'](this);}static[a92u(0xdf)](a,b,c){const w=a92u;if(!a)throw new Error(w(0xe4));if(typeof b!==w(0xd2))throw new Error(w(0x85));const d=new Generator(a,b);return c=c||a92g,Object[w(0x8e)](d,{'parent':c?.[w(0xd3)]?.[w(0xa3)]}),c[w(0xa0)](d),d;}['addGenerator'](a){const x=a92u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][x(0xaa)](a);}['findGenerator'](a){const y=a92u,b=this['_generators']['find'](c=>c[y(0xa2)](a));return b;}async[a92u(0xac)](a,b){const z=a92u,c=this['findGenerator'](a[0x0]);if(c){const d=c?.[z(0xa3)]||a[0x0],e=c?.[z(0x8d)]||'',f=Object['keys'](b),g=await this[z(0xd5)][z(0xb4)]();!g&&(Log[z(0xc0)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[z(0xd0)](0x1));const h=!g?.[z(0x8a)][z(0xbc)](z(0xba))&&!g?.[z(0x8a)][z(0xbc)](z(0x9b)),i=g?.[z(0x89)][z(0xbc)](d)||g?.[z(0x89)][z(0xbc)](e);if(i&&h)throw'To\x20use\x20this\x20generator,\x20\x22'+d+z(0xda);if(f[z(0xb9)]>0x0){const j=g?.[z(0xae)][z(0xc8)](k=>f['includes'](k));if(j&&j[z(0xb9)]>0x0&&h)throw z(0x9c)+j?.[z(0xdd)](',\x20')+z(0xda);}}}async['invoke'](a,b){const A=a92u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{await this[A(0xac)](a,b);}catch(g){Log[A(0xc0)](g),process[A(0xd0)](0x1);}const f=a['slice']();b[A(0x91)]=f[0x0];try{if((a[0x0]===_prevGen||a[A(0xb9)]===0x0)&&b[A(0xa1)])throw new UsageError();if(this['options'][A(0xd7)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this[A(0xd3)][A(0xc2)]){const i=this[A(0xcd)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0xd3)][A(0x8c)]===A(0xb0)){if(a[A(0xb9)]<this[A(0xd3)][A(0x8c)]){Log[A(0xc0)](A(0xb5));throw new UsageError();}}if(typeof this[A(0xd3)][A(0xbe)]===A(0xb0)){if(a[A(0xb9)]>this['options'][A(0xbe)]){Log[A(0xc0)](A(0x9d));throw new UsageError();}}if(typeof this[A(0xd3)][A(0xbd)]===A(0xb0)){if(Object[A(0xdb)](b)[A(0xb9)]<this[A(0xd3)][A(0xbd)]){Log['error'](A(0xc1));throw new UsageError();}}if(typeof this[A(0xd3)][A(0xd4)]===A(0xb0)){if(Object[A(0xdb)](b)[A(0xb9)]>=this[A(0xd3)]['maxOptsLength']){Log['error'](A(0x9f));throw new UsageError();}}this[A(0xa6)](a,b,this['options']);if(!b[A(0x91)]&&!this['options'][A(0x99)]){Log[A(0xc0)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0xc3)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0xe0)]['length']>0x0&&b[A(0xa1)]&&(Log[A(0x97)]('Generators:'),this['tableList'](this['_generators']));else{if(j instanceof MustBeInProjectError)Log[A(0xc0)](A(0xcc));else{if(j instanceof NoMeteorFoundError)Log[A(0xc0)](A(0xab)),Log['notice'](A(0xa7));else{if(j instanceof NoMeteorAppFoundError)Log[A(0xc0)](A(0xc6));else throw j;}}}process[A(0xd0)](0x1);}return new Promise(k=>{const B=A;inside(b[B(0xc5)],async()=>{const C=B;try{if(!b[C(0xa9)]&&!this[C(0xd5)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b[C(0x91)]?.[C(0xd9)](/\\/g,'/')[C(0xbf)]('/');!b[C(0xcb)]&&(l?.[C(0xb9)]>0x1?(b['resourceName']=l[C(0xbb)](),f[0x0]=b[C(0x91)],b[C(0xcb)]=l['map'](m=>{return paramCase(m);})[C(0xdd)](a92e[C(0xce)])):b[C(0xcb)]='');if(this[C(0xd3)][C(0x95)]){if(!b['where']){const n={'type':'list','name':C(0xb7),'message':C(0xb2),'choices':[{'name':'Client','value':'client'},{'name':C(0xdc),'value':C(0x96)},{'name':'Both','value':'both'}]},{colLocAnswer:o}=await Actions['options'](n);o?b[C(0x92)]=o:b[C(0x92)]=C(0x93);}const m=[C(0x93),C(0x8b),C(0x96)];if(!m[C(0xbc)](b['where'])){Log['error'](C(0xcf));throw new UsageError();}switch(b[C(0x92)]){case C(0x93):b[C(0xc7)]='lib';break;case C(0x96):b[C(0xc7)]=C(0x96);break;case C(0x8b):b[C(0xc7)]=C(0x8b);break;default:b[C(0xc7)]='';}}k(this['_handler']['call'](this,f,b));}catch(p){console[C(0xc0)](p);}});});}[a92u(0xb6)](){const D=a92u;this[D(0xb8)](this[D(0xe0)]);}[a92u(0xb8)](a){const E=a92u,b=new a92f({});b[E(0xaa)]([E(0xa5),'Alias','Description']),a[E(0xd6)]()['forEach'](c=>{const F=E;b['push']([c[F(0xa3)],c[F(0xc9)](),c[F(0x9a)]()]);}),Log[E(0xc4)](b['toString']());}}
1
+ const a92t=a92d;(function(a,b){const q=a92d,c=a();while(!![]){try{const d=parseInt(q(0x110))/0x1+-parseInt(q(0xfe))/0x2+-parseInt(q(0xcc))/0x3+-parseInt(q(0x10b))/0x4+parseInt(q(0x118))/0x5+parseInt(q(0xd1))/0x6+parseInt(q(0xf8))/0x7*(parseInt(q(0xf9))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x81059));const a92b=(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;};}()),a92a=a92b(this,function(){const r=a92d;return a92a[r(0x104)]()[r(0xf6)](r(0x123))['toString']()['constructor'](a92a)[r(0xf6)](r(0x123));});a92a();function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0xc7;let f=c[d];return f;},a92d(a,b);}import a92e from'path';import a92f from'cli-table';import{paramCase}from'change-case';import a92g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';function a92c(){const E=['Please\x20run\x20\x22maka\x20install\x20meteor\x22','slice','function','addGenerator','mustHaveMeteorInstalled','aliases','split','lib','push','Generator\x20requires\x20a\x20name','exit','options','list','validateParams','keys','minArgLength','colLocAnswer','error','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','To\x20use\x20this\x20generator,\x20\x22','search','pop','5222525FrWciZ','8IJpcSr','getPro','validateMakaSubscription','singleLicense','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','1556904ULcmJY','proFlags','call','minOptsLength','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','number','toString','replace','Generators:','Server','Generator.create\x20requires\x20some\x20options!','create','listGenerators','2539320giXNPh','proGenerators','Too\x20few\x20arguments','includes','appPathPrefix','464993iSsFPu','Description','tableList','maxOptsLength','fsi','cwd','dir','_generators','2466335bkTSju','findProjectDirectory','invoke','validateMakaProject','Location','assign','noResource','sort','length','forEach','_handler','(((.+)+)+)+$','join','parent','filter','addGenerator\x20requires\x20a\x20Generator\x20instance','No\x20resource\x20name\x20specified','1463721XTwsQC','Too\x20few\x20options','root','findGenerator','Client','4351962YCPBWb','name','both','client','There\x20is\x20no\x20Meteor\x20application\x20here','where','Generator\x20requires\x20a\x20handler\x20function','shortDesc','maxArgLength','server','help','Too\x20many\x20options','Both','mustBeInMakaProject','chdir','resourceName'];a92c=function(){return E;};return a92c();}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a92d,c=process[s(0x115)]();let d=null;try{process['chdir'](a),d=b();}finally{process[s(0xdf)](c);}return d;}export class Generator extends Tool{[a92t(0xec)];[a92t(0x117)];constructor(a,b){const u=a92t;super();if(!a)throw new Error(u(0xf3));if(!a[u(0xd2)])throw new Error(u(0xea));if(typeof b!==u(0xe3))throw new Error(u(0xd7));this['_generators']=[],this[u(0xec)]=Object[u(0x11d)]({},a),this['name']=this[u(0xec)]['name'],this['_handler']=b['bind'](this);}static[a92t(0x109)](a,b,c){const v=a92t;if(!a)throw new Error(v(0x108));if(typeof b!==v(0xe3))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const d=new Generator(a,b);return c=c||a92g,Object['assign'](d,{'parent':c?.[v(0xec)]?.[v(0xd2)]}),c['addGenerator'](d),d;}[a92t(0xe4)](a){const w=a92t;if(!(a instanceof Generator))throw new Error(w(0xca));this[w(0x117)][w(0xe9)](a);}[a92t(0xcf)](a){const b=this['_generators']['find'](c=>c['match'](a));return b;}async['validateMakaSubscription'](a,b){const x=a92t,c=this[x(0xcf)](a[0x0]);if(c){const d=c?.[x(0xd2)]||a[0x0],e=c?.[x(0xc8)]||'',f=Object[x(0xef)](b),g=await this['fsi'][x(0xfa)]();!g&&(Log[x(0xf2)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const h=!g?.['roles']['includes'](x(0xfc))&&!g?.['roles'][x(0x10e)]('domainLicense'),i=g?.[x(0x10c)][x(0x10e)](d)||g?.['proGenerators'][x(0x10e)](e);if(i&&h)throw x(0xf5)+d+x(0x102);if(f[x(0x120)]>0x0){const j=g?.[x(0xff)][x(0xc9)](k=>f['includes'](k));if(j&&j[x(0x120)]>0x0&&h)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+j?.[x(0xc7)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a92t(0x11a)](a,b){const y=a92t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[y(0xec)];try{await this[y(0xfb)](a,b);}catch(g){Log['error'](g),process[y(0xeb)](0x1);}const f=a[y(0xe2)]();b[y(0xe0)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[y(0xdb)])throw new UsageError();if(this[y(0xec)][y(0xde)]){const h=this[y(0x11b)]();if(!h)throw new MustBeInProjectError();}if(this[y(0xec)][y(0xe5)]){const i=this['validateMeteorInstall']();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][y(0xf0)]===y(0x103)){if(a[y(0x120)]<this[y(0xec)][y(0xf0)]){Log[y(0xf2)](y(0x10d));throw new UsageError();}}if(typeof this[y(0xec)][y(0xd9)]===y(0x103)){if(a[y(0x120)]>this[y(0xec)]['maxArgLength']){Log[y(0xf2)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[y(0xec)][y(0x101)]===y(0x103)){if(Object[y(0xef)](b)[y(0x120)]<this[y(0xec)]['minOptsLength']){Log['error'](y(0xcd));throw new UsageError();}}if(typeof this[y(0xec)][y(0x113)]==='number'){if(Object['keys'](b)[y(0x120)]>=this[y(0xec)][y(0x113)]){Log[y(0xf2)](y(0xdc));throw new UsageError();}}await this[y(0xee)](a,b,this[y(0xec)]);if(!b['resourceName']&&!this[y(0xec)][y(0x11e)]){Log[y(0xf2)](y(0xcb));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[y(0x117)][y(0x120)]>0x0&&b[y(0xdb)]&&(Log['notice'](y(0x106)),this[y(0x112)](this['_generators']));else{if(j instanceof MustBeInProjectError)Log[y(0xf2)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(j instanceof NoMeteorFoundError)Log[y(0xf2)](y(0xf4)),Log['notice'](y(0xe1));else{if(j instanceof NoMeteorAppFoundError)Log['error'](y(0xd5));else throw j;}}}process[y(0xeb)](0x1);}return new Promise(k=>{const z=y;inside(b[z(0x115)],async()=>{const A=z;try{if(!b[A(0xce)]&&!this[A(0x114)][A(0x119)]())throw new MustBeInProjectError();const l=b['resourceName']?.[A(0x105)](/\\/g,'/')[A(0xe7)]('/');!b[A(0x116)]&&(l?.['length']>0x1?(b[A(0xe0)]=l[A(0xf7)](),f[0x0]=b[A(0xe0)],b[A(0x116)]=l['map'](m=>{return paramCase(m);})['join'](a92e['sep'])):b['dir']='');if(this[A(0xec)]['checkWhere']){if(!b[A(0xd6)]){const n={'type':A(0xed),'name':A(0xf1),'message':A(0x11c),'choices':[{'name':A(0xd0),'value':A(0xd4)},{'name':A(0x107),'value':A(0xda)},{'name':A(0xdd),'value':A(0xd3)}]},{colLocAnswer:o}=await Actions[A(0xec)](n);o?b[A(0xd6)]=o:b[A(0xd6)]='both';}const m=[A(0xd3),A(0xd4),'server'];if(!m['includes'](b[A(0xd6)])){Log[A(0xf2)](A(0xfd));throw new UsageError();}switch(b[A(0xd6)]){case A(0xd3):b[A(0x10f)]=A(0xe8);break;case A(0xda):b[A(0x10f)]='server';break;case A(0xd4):b[A(0x10f)]='client';break;default:b[A(0x10f)]='';}}k(this[A(0x122)][A(0x100)](this,f,b));}catch(p){console['error'](p);}});});}[a92t(0x10a)](){const B=a92t;this[B(0x112)](this['_generators']);}[a92t(0x112)](a){const C=a92t,b=new a92f({});b[C(0xe9)](['Name','Alias',C(0x111)]),a[C(0x11f)]()[C(0x121)](c=>{const D=C;b['push']([c[D(0xd2)],c[D(0xe6)](),c[D(0xd8)]()]);}),Log['bright'](b[C(0x104)]());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a93d,c=a();while(!![]){try{var d=parseInt(f(0xdb))/0x1+parseInt(f(0xd7))/0x2+parseInt(f(0xdd))/0x3+parseInt(f(0xdf))/0x4*(parseInt(f(0xdc))/0x5)+-parseInt(f(0xd4))/0x6+-parseInt(f(0xde))/0x7*(parseInt(f(0xd5))/0x8)+-parseInt(f(0xda))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x2daf9));var a93b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a93d;if(c){var e=c[g(0xd8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){var h=a93d;return a93a[h(0xd3)]()[h(0xd9)](h(0xd6))['toString']()[h(0xe0)](a93a)[h(0xd9)]('(((.+)+)+)+$');});a93a();import'./services/_index.js';import'./api.js';import'./collection.js';function a93c(){var i=['478982cvKrZI','apply','search','4414068jjCRwb','258622vAoocZ','1105445lSLYyY','440613nabMks','7jyeaBx','4qPkbpL','constructor','toString','264210tlkccE','1155656yUBccC','(((.+)+)+)+$'];a93c=function(){return i;};return a93c();}import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a93d(a,b){var c=a93c();return a93d=function(d,e){d=d-0xd3;var f=c[d];return f;},a93d(a,b);}import'./maka.gen.js';
1
+ function a93c(){var i=['search','442fiSlRT','5fRHezw','apply','3088122QTsHyP','(((.+)+)+)+$','4744692UFPYEm','33830AgBtYU','10644150vdLgSI','3513jlaRqg','2328176xsYOTn','119wQeNGW','toString','165208zvwQaU'];a93c=function(){return i;};return a93c();}(function(a,b){var f=a93d,c=a();while(!![]){try{var d=-parseInt(f(0x14a))/0x1+-parseInt(f(0x144))/0x2*(-parseInt(f(0x14c))/0x3)+-parseInt(f(0x14d))/0x4+parseInt(f(0x145))/0x5*(parseInt(f(0x147))/0x6)+parseInt(f(0x140))/0x7*(-parseInt(f(0x142))/0x8)+-parseInt(f(0x149))/0x9+parseInt(f(0x14b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x53ed4));var a93b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a93d;if(c){var e=c[g(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){var h=a93d;return a93a[h(0x141)]()[h(0x143)](h(0x148))['toString']()['constructor'](a93a)['search']('(((.+)+)+)+$');});a93a();import'./services/_index.js';function a93d(a,b){var c=a93c();return a93d=function(d,e){d=d-0x140;var f=c[d];return f;},a93d(a,b);}import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a94z=a94d;(function(a,b){const w=a94d,c=a();while(!![]){try{const d=parseInt(w(0x193))/0x1*(parseInt(w(0x1a3))/0x2)+-parseInt(w(0x185))/0x3+-parseInt(w(0x178))/0x4*(parseInt(w(0x176))/0x5)+parseInt(w(0x1a7))/0x6*(-parseInt(w(0x164))/0x7)+-parseInt(w(0x18f))/0x8+-parseInt(w(0x1a5))/0x9+parseInt(w(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x8c14b));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a94d;if(c){const e=c[x(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const y=a94d;return a94a[y(0x175)]()[y(0x1af)]('(((.+)+)+)+$')[y(0x175)]()[y(0x1a6)](a94a)['search'](y(0x186));});a94a();import{Generator}from'../generator.js';function a94c(){const C=['No\x20API\x20boundaries\x20selected','api/resolvers.js','if\x20\x5c(typeList','2448486oZtRvH','(((.+)+)+)+$','checkbox','server','apollo','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','pathFromApp','\x0aimport\x20{\x20resolvers\x20as\x20','injectIntoFile','injectAtEndOfFile','4981240utDNro','import\x20\x27./register-','maka\x20g:api\x20todos','length','7zJJQQj','template','Publications','/imports/api','test','options','typeDefs.','ddp-rate-limiter','apiAnswers','startup','withFixtures','exit','const','rest','includes','api','230158ovxbKB','api/tests.js','2232135Xwvcvm','constructor','12eQZLYV','tsx','withRest','injectAtBeginningOfFile','resolvers.','TypeDefs\x20}\x20from\x20\x27','register-','GraphQL','search','mongo','/graphql/typeDefs','fixtures.','installMeteorPackage','API\x20boundaries\x20to\x20create','apply','imports','Fixtures','withGql','api/typeDefs.js','dir','typeList.push(','publications.','327138cNHXqO','api/api.js','TypeDefs);\x0a','engines','import\x20{\x20typeDefs\x20as\x20','rewriteDestinationPathForEngine','withMethods','graphql','resolverList.push(','index.','rpc-methods.','withValue','21964830GaoNbV','REST\x20API','push','RPC\x20(Methods)','checkMeteorPackage','toString','5nTytTw','api/publications.js','2591860JPUXDX','.app-tests.','api/methods.js','withPubs','none','fsi','maka\x20{generate,\x20g}:{api}\x20<resource-name>','rest-api.','maka:check','mdg:validated-method'];a94c=function(){return C;};return a94c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x159;let f=c[d];return f;},a94d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'api','aliases':['a'],'usage':a94z(0x17e),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a94z(0x161)],'examples':[a94z(0x191)]},async function(a,b){const A=a94z;try{const c=this[A(0x17d)]['getProjectConfig'](),d=[{'name':A(0x173),'value':A(0x16a)},{'name':A(0x15e),'value':A(0x19d)},{'name':A(0x195),'value':A(0x17b)}];c[A(0x167)][A(0x1a2)]===A(0x1a0)&&d[A(0x172)]({'name':A(0x171),'value':A(0x1a9)});c[A(0x167)][A(0x16b)]===A(0x189)&&d[A(0x172)]({'name':A(0x1ae),'value':A(0x15f)});const f={'type':A(0x187),'name':A(0x19b),'message':A(0x15b),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x198)](f);g[A(0x192)]===0x0&&(Log['error'](A(0x182)),process[A(0x19e)](0x1)),this[A(0x17d)][A(0x16f)](c,async()=>{const B=A,h=this[B(0x17d)][B(0x18b)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x161)]?'/'+b[B(0x161)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x167)][B(0x1a2)],'graphql':c[B(0x167)][B(0x16b)],'test':c[B(0x167)][B(0x197)],'noRename':!![],'withPubs':g[B(0x1a1)]('withPubs'),'withFixtures':g[B(0x1a1)](B(0x19d)),'withMethods':g[B(0x1a1)](B(0x16a)),'withRest':g[B(0x1a1)]('withRest')};let n='js';c[B(0x167)]['js']===B(0x1a8)&&(n='ts');(!this['fsi'][B(0x174)]('maka:rest')||!this[B(0x17d)][B(0x174)](B(0x180))||!this['fsi']['checkMeteorPackage'](B(0x19a))||!this['fsi']['checkMeteorPackage'](B(0x181))||!this[B(0x17d)][B(0x174)](B(0x1b0)))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[B(0x17d)][B(0x15a)](B(0x18a),{'cwd':h}));const o=a94e['findGenerator']('collection');o&&await o['invoke']([j],{'config':c,'where':'server'});c[B(0x167)][B(0x1a2)]===B(0x1a0)&&(m['withRest']&&this['fsi'][B(0x194)]({'srcPath':B(0x165),'destPath':this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,B(0x17f)+n]}),'context':m,'config':c}));m[B(0x16a)]&&this[B(0x17d)][B(0x194)]({'srcPath':B(0x17a),'destPath':this[B(0x17d)]['pathFromApp']({'pathParts':['imports',B(0x1a2),b[B(0x161)],j,B(0x16e)+n]}),'context':m,'config':c});m['withFixtures']&&this['fsi'][B(0x194)]({'srcPath':'api/fixtures.js','destPath':this['fsi'][B(0x18b)]({'pathParts':[B(0x15d),B(0x1a2),b['dir'],j,B(0x159)+n]}),'context':m,'config':c});c[B(0x167)][B(0x197)]!==B(0x17c)&&this['fsi'][B(0x194)]({'srcPath':B(0x1a4),'destPath':this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,j+B(0x179)+n]}),'context':m,'config':c});m['withPubs']&&this['fsi'][B(0x194)]({'srcPath':B(0x177),'destPath':this[B(0x17d)]['pathFromApp']({'pathParts':['imports','api',b[B(0x161)],j,B(0x163)+n]}),'context':m,'config':c});if(c['engines']['graphql']===B(0x189)){if(g['includes'](B(0x15f))){const q=this[B(0x17d)]['pathFromApp']({'pathParts':[B(0x15d),B(0x19c),'server',B(0x16d)+c['engines']['js']]}),r=this[B(0x17d)][B(0x169)]({'pathParts':[q],'config':c}),s=this[B(0x17d)][B(0x18b)]({'pathParts':[B(0x15d),'api',b[B(0x161)],j,B(0x16b),B(0x199)+n]}),t='/imports/api'+l+j+B(0x1b1);this[B(0x17d)]['template']({'srcPath':B(0x160),'destPath':s,'context':m,'config':c}),this[B(0x17d)][B(0x1aa)]({'filePath':r,'content':B(0x168)+k+B(0x1ac)+t+'\x27;\x0a'}),this[B(0x17d)]['injectIntoFile']({'filePath':r,'content':B(0x162)+k+B(0x166),'begin':'const','end':B(0x184)});const u=this[B(0x17d)][B(0x18b)]({'pathParts':['imports',B(0x1a2),b[B(0x161)],j,B(0x16b),B(0x1ab)+n]}),v=B(0x196)+l+j+'/graphql/resolvers';this['fsi'][B(0x194)]({'srcPath':B(0x183),'destPath':u,'context':m,'config':c}),this[B(0x17d)][B(0x1aa)]({'filePath':r,'content':B(0x18c)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0x17d)][B(0x18d)]({'filePath':r,'content':B(0x16c)+k+'Resolvers);\x0a\x0a','begin':B(0x19f),'end':B(0x184)});}}this[B(0x17d)][B(0x194)]({'srcPath':'api/register-api.js','destPath':this[B(0x17d)][B(0x18b)]({'pathParts':['imports',B(0x19c),B(0x188),B(0x1ad)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x17d)]['pathFromApp']({'pathParts':[B(0x15d),'startup',B(0x188),B(0x16d)+c[B(0x167)]['js']]});this[B(0x17d)][B(0x18e)]({'filePath':p,'content':B(0x190)+j+'-api\x27;'});});}catch(h){console['log'](h),process[A(0x19e)](0x0);}});
1
+ const a94y=a94d;function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1e5;let f=c[d];return f;},a94d(a,b);}(function(a,b){const w=a94d,c=a();while(!![]){try{const d=-parseInt(w(0x210))/0x1*(-parseInt(w(0x236))/0x2)+parseInt(w(0x21c))/0x3+-parseInt(w(0x1fc))/0x4+parseInt(w(0x1e6))/0x5+-parseInt(w(0x225))/0x6*(-parseInt(w(0x206))/0x7)+-parseInt(w(0x23c))/0x8*(-parseInt(w(0x233))/0x9)+-parseInt(w(0x21b))/0xa*(parseInt(w(0x20e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x50f87));const a94b=(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;};}()),a94a=a94b(this,function(){const x=a94d;return a94a[x(0x214)]()[x(0x212)](x(0x1ff))[x(0x214)]()[x(0x1f4)](a94a)[x(0x212)](x(0x1ff));});a94a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a94e from'../generators/maka.gen.js';function a94c(){const B=['965664nHTirc','injectAtBeginningOfFile','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','(((.+)+)+)+$','typeList.push(','/imports/api','maka:check','ddp-rate-limiter','installMeteorPackage','checkMeteorPackage','7CSNuGB','TypeDefs\x20}\x20from\x20\x27','withGql','includes','Resolvers);\x0a\x0a','resolverList.push(','pathFromApp','length','33fbecDU','tsx','138819mbeHEt','RPC\x20(Methods)','search','checkbox','toString','/graphql/typeDefs','if\x20\x5c(typeList','invoke','withPubs','fixtures.','API\x20boundaries\x20to\x20create','2476550CZcmIa','504336KlgdeG','none','findGenerator','rewriteDestinationPathForEngine','api/typeDefs.js','server','apollo','options','api/api.js','1884354bQrHry','import\x20{\x20typeDefs\x20as\x20','api/publications.js','engines','Fixtures','withMethods','exit','GraphQL','withFixtures','notice','withRest','graphql','withValue','maka:rest','1179CAncpv','api/resolvers.js','template','6VMMdrA','test','publications.','No\x20API\x20boundaries\x20selected','imports','rest-api.','2792Dllpaf','api/fixtures.js','dir','fsi','api/tests.js','1858445caJBxu','rest','typeDefs.','rpc-methods.','.app-tests.','const','apiAnswers','error','startup','push','-api\x27;','maka\x20g:api\x20todos','api','injectAtEndOfFile','constructor','maka\x20{generate,\x20g}:{api}\x20<resource-name>','Publications','\x0aimport\x20{\x20resolvers\x20as\x20','mdg:validated-method','REST\x20API','\x27;\x0a','api/methods.js'];a94c=function(){return B;};return a94c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a94y(0x1f2),'aliases':['a'],'usage':a94y(0x1f5),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a94y(0x23e)],'examples':[a94y(0x1f1)]},async function(a,b){const z=a94y;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':z(0x211),'value':z(0x22a)},{'name':z(0x229),'value':z(0x22d)},{'name':z(0x1f6),'value':z(0x218)}];c['engines'][z(0x1f2)]===z(0x1e7)&&d['push']({'name':z(0x1f9),'value':'withRest'});c[z(0x228)][z(0x230)]===z(0x222)&&d[z(0x1ef)]({'name':z(0x22c),'value':z(0x208)});const f={'type':z(0x213),'name':z(0x1ec),'message':z(0x21a),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x223)](f);g[z(0x20d)]===0x0&&(Log[z(0x1ed)](z(0x239)),process[z(0x22b)](0x1)),this[z(0x23f)][z(0x231)](c,async()=>{const A=z,h=this[A(0x23f)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0x23e)]?'/'+b[A(0x23e)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x228)][A(0x1f2)],'graphql':c[A(0x228)][A(0x230)],'test':c[A(0x228)][A(0x237)],'noRename':!![],'withPubs':g['includes'](A(0x218)),'withFixtures':g[A(0x209)](A(0x22d)),'withMethods':g[A(0x209)]('withMethods'),'withRest':g[A(0x209)](A(0x22f))};let n='js';c[A(0x228)]['js']===A(0x20f)&&(n='ts');(!this[A(0x23f)][A(0x205)](A(0x232))||!this[A(0x23f)][A(0x205)](A(0x202))||!this[A(0x23f)][A(0x205)](A(0x203))||!this['fsi']['checkMeteorPackage'](A(0x1f8))||!this[A(0x23f)]['checkMeteorPackage']('mongo'))&&(Log[A(0x22e)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this[A(0x23f)][A(0x204)](A(0x1fe),{'cwd':h}));const o=a94e[A(0x21e)]('collection');o&&await o[A(0x217)]([j],{'config':c,'where':A(0x221)});c[A(0x228)][A(0x1f2)]===A(0x1e7)&&(m[A(0x22f)]&&this['fsi'][A(0x235)]({'srcPath':A(0x224),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x23b)+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][A(0x235)]({'srcPath':A(0x1fb),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b['dir'],j,A(0x1e9)+n]}),'context':m,'config':c});m[A(0x22d)]&&this['fsi'][A(0x235)]({'srcPath':A(0x23d),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x219)+n]}),'context':m,'config':c});c[A(0x228)][A(0x237)]!==A(0x21d)&&this[A(0x23f)][A(0x235)]({'srcPath':A(0x1e5),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,j+A(0x1ea)+n]}),'context':m,'config':c});m[A(0x218)]&&this[A(0x23f)][A(0x235)]({'srcPath':A(0x227),'destPath':this[A(0x23f)][A(0x20c)]({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x238)+n]}),'context':m,'config':c});if(c[A(0x228)][A(0x230)]===A(0x222)){if(g['includes'](A(0x208))){const q=this['fsi'][A(0x20c)]({'pathParts':['imports',A(0x1ee),A(0x221),'index.'+c[A(0x228)]['js']]}),r=this['fsi'][A(0x21f)]({'pathParts':[q],'config':c}),s=this[A(0x23f)]['pathFromApp']({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x230),A(0x1e8)+n]}),t='/imports/api'+l+j+A(0x215);this[A(0x23f)][A(0x235)]({'srcPath':A(0x220),'destPath':s,'context':m,'config':c}),this[A(0x23f)][A(0x1fd)]({'filePath':r,'content':A(0x226)+k+A(0x207)+t+A(0x1fa)}),this[A(0x23f)]['injectIntoFile']({'filePath':r,'content':A(0x200)+k+'TypeDefs);\x0a','begin':A(0x1eb),'end':A(0x216)});const u=this['fsi']['pathFromApp']({'pathParts':[A(0x23a),A(0x1f2),b[A(0x23e)],j,A(0x230),'resolvers.'+n]}),v=A(0x201)+l+j+'/graphql/resolvers';this['fsi'][A(0x235)]({'srcPath':A(0x234),'destPath':u,'context':m,'config':c}),this[A(0x23f)][A(0x1fd)]({'filePath':r,'content':A(0x1f7)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[A(0x23f)]['injectIntoFile']({'filePath':r,'content':A(0x20b)+k+A(0x20a),'begin':A(0x1eb),'end':A(0x216)});}}this[A(0x23f)]['template']({'srcPath':'api/register-api.js','destPath':this[A(0x23f)]['pathFromApp']({'pathParts':['imports','startup',A(0x221),'register-'+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi']['pathFromApp']({'pathParts':[A(0x23a),A(0x1ee),'server','index.'+c[A(0x228)]['js']]});this[A(0x23f)][A(0x1f3)]({'filePath':p,'content':'import\x20\x27./register-'+j+A(0x1f0)});});}catch(h){console['log'](h),process[z(0x22b)](0x0);}});
@@ -1 +1 @@
1
- const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0xd1))/0x1+parseInt(k(0xd4))/0x2+parseInt(k(0xe2))/0x3+parseInt(k(0xc2))/0x4*(parseInt(k(0xd5))/0x5)+parseInt(k(0xcd))/0x6*(-parseInt(k(0xba))/0x7)+-parseInt(k(0xb6))/0x8+-parseInt(k(0xbc))/0x9*(-parseInt(k(0xd2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x5b316));function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xb5;let f=c[d];return f;},a95d(a,b);}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0xcc)]()[m(0xd8)](m(0xb5))[m(0xcc)]()[m(0xe1)](a95a)[m(0xd8)](m(0xb5));});a95a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95c(){const q=['mongo','col','notice','appPathPrefix','engines','index.','none','template','withValue','toString','66LJWzmk','dir','create','pathFromApp','526478ozDejF','50IbpwfW','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','412920WpkLtH','5QLchzz','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','search','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','collection','resourceName','error','collections','installMeteorPackage','collection/tests.js','where','constructor','1435734FmAQSj','(((.+)+)+)+$','1634584QoNaTa','imports','import\x20\x27./collections','fsi','91161YZMDyZ','apply','73971JlACoG','getProjectConfig','startup','maka:check','test','maka\x20g:collection\x20todos','2085788NBzzdU'];a95c=function(){return q;};return a95c();}Generator[a95n(0xcf)]({'name':a95n(0xda),'aliases':[a95n(0xc4)],'usage':a95n(0xd9),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a95n(0xe0)],'description':a95n(0xd3),'examples':[a95n(0xc1)]},async function(a,b){const o=a95n;try{const c=this[o(0xb9)][o(0xd0)]({}),d=this[o(0xb9)][o(0xbd)]();this[o(0xb9)][o(0xcb)](d,async()=>{const p=o,f=paramCase(b[p(0xdb)]),g={'name':pascalCase(b[p(0xdb)]),'collectionName':pascalCase(b[p(0xdb)]),'fileName':f,'where':b['where'],'test':d[p(0xc7)][p(0xc0)],'noRename':!![]};let h='js';d[p(0xc7)]['js']==='tsx'&&(h='ts');!this[p(0xb9)][p(0xd6)](p(0xc3))&&(Log[p(0xc5)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this['fsi'][p(0xde)](p(0xc3),{'cwd':c}));!this['fsi'][p(0xd6)](p(0xbf))&&(Log[p(0xc5)](p(0xd7)),await this[p(0xb9)][p(0xde)](p(0xbf),{'cwd':c}));this[p(0xb9)][p(0xca)]({'srcPath':'collection/collection.js','destPath':this[p(0xb9)][p(0xd0)]({'pathParts':['imports',p(0xbe),b['appPathPrefix'],p(0xdd),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0xc7)][p(0xc0)]!==p(0xc9)&&this[p(0xb9)][p(0xca)]({'srcPath':p(0xdf),'destPath':this[p(0xb9)]['pathFromApp']({'pathParts':[p(0xb7),p(0xbe),b['appPathPrefix'],p(0xdd),b[p(0xce)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0xce)]?'/'+b[p(0xce)]+'/':'/',j=this[p(0xb9)][p(0xd0)]({'pathParts':[p(0xb7),'startup',b[p(0xc6)],p(0xc8)+d[p(0xc7)]['js']]});this[p(0xb9)]['injectAtEndOfFile']({'filePath':j,'content':p(0xb8)+i+f+'\x27;'});});}catch(f){Log[o(0xdc)](f);}});
1
+ const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0xf0))/0x1+parseInt(k(0xf2))/0x2*(parseInt(k(0xf3))/0x3)+-parseInt(k(0x10a))/0x4*(parseInt(k(0xf6))/0x5)+-parseInt(k(0x119))/0x6+parseInt(k(0x11d))/0x7+parseInt(k(0xfb))/0x8+-parseInt(k(0x105))/0x9*(-parseInt(k(0xef))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x61714));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0x104)]()[m(0x110)]('(((.+)+)+)+$')[m(0x104)]()[m(0xfe)](a95a)[m(0x110)](m(0x11b));});a95a();function a95c(){const q=['Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','template','collections','maka:check','search','startup','where','installMeteorPackage','dir','injectAtEndOfFile','collection/tests.js','withValue','import\x20\x27./collections','4317354AvHQIK','notice','(((.+)+)+)+$','test','1187816sBNsAL','create','139110TicaKT','20891MWaJmG','col','1421188yngmqC','3dtjrhY','imports','index.','155GXCIuC','appPathPrefix','pathFromApp','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkMeteorPackage','2351880zqTHwV','fsi','mongo','constructor','engines','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','.app-tests.','apply','collection/collection.js','toString','144kDKwxx','tsx','resourceName','collection','maka\x20g:collection\x20todos','33196WIyhhy'];a95c=function(){return q;};return a95c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xef;let f=c[d];return f;},a95d(a,b);}Generator[a95n(0x11e)]({'name':a95n(0x108),'aliases':[a95n(0xf1)],'usage':a95n(0xf9),'checkWhere':!![],'shortDesc':a95n(0x10b),'validOpts':[a95n(0x114),a95n(0x112)],'description':'\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','examples':[a95n(0x109)]},async function(a,b){const o=a95n;try{const c=this[o(0xfc)][o(0xf8)]({}),d=this[o(0xfc)]['getProjectConfig']();this[o(0xfc)][o(0x117)](d,async()=>{const p=o,f=paramCase(b[p(0x107)]),g={'name':pascalCase(b[p(0x107)]),'collectionName':pascalCase(b[p(0x107)]),'fileName':f,'where':b[p(0x112)],'test':d[p(0xff)][p(0x11c)],'noRename':!![]};let h='js';d[p(0xff)]['js']===p(0x106)&&(h='ts');!this[p(0xfc)][p(0xfa)](p(0xfd))&&(Log[p(0x11a)](p(0x100)),await this[p(0xfc)]['installMeteorPackage'](p(0xfd),{'cwd':c}));!this[p(0xfc)][p(0xfa)](p(0x10f))&&(Log[p(0x11a)](p(0x10c)),await this['fsi'][p(0x113)](p(0x10f),{'cwd':c}));this[p(0xfc)]['template']({'srcPath':p(0x103),'destPath':this[p(0xfc)][p(0xf8)]({'pathParts':[p(0xf4),p(0x111),b['appPathPrefix'],p(0x10e),b[p(0x114)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0x11c)]!=='none'&&this['fsi'][p(0x10d)]({'srcPath':p(0x116),'destPath':this[p(0xfc)][p(0xf8)]({'pathParts':['imports',p(0x111),b[p(0xf7)],'collections',b[p(0x114)],f+p(0x101)+h]}),'context':g,'config':d});const i=b[p(0x114)]?'/'+b[p(0x114)]+'/':'/',j=this[p(0xfc)][p(0xf8)]({'pathParts':['imports',p(0x111),b['appPathPrefix'],p(0xf5)+d[p(0xff)]['js']]});this['fsi'][p(0x115)]({'filePath':j,'content':p(0x118)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});