@maka/maka-cli 4.5.28 → 4.5.29

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 a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0xed;let f=c[d];return f;},a78d(a,b);}(function(a,b){const n=a78d,c=a();while(!![]){try{const d=-parseInt(n(0x111))/0x1*(parseInt(n(0x10e))/0x2)+parseInt(n(0xf6))/0x3+-parseInt(n(0xfc))/0x4+-parseInt(n(0xef))/0x5+-parseInt(n(0xf2))/0x6*(parseInt(n(0xf3))/0x7)+-parseInt(n(0x10c))/0x8+parseInt(n(0xf4))/0x9*(parseInt(n(0x100))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x19814));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a78d;if(c){const e=c[o(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const p=a78d;return a78a[p(0xf1)]()[p(0x113)]('(((.+)+)+)+$')[p(0xf1)]()[p(0x109)](a78a)[p(0x113)](p(0x105));});a78a();import a78e from'fs';import a78f from'path';function a78c(){const s=['pm2.config.js','parse','(((.+)+)+)+$','Reconfigure\x20your\x20deployed\x20applications','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','reconfig','constructor','settings.json','create','494192oVwrmW','success','2QXPJRq','uname\x20-a','notice','6067RSwuri','apply','search','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','~/settings.json','join','pm2\x20delete\x20all','294005YmYvIG','error','toString','6SXoApd','1374975gCARnz','36dXDJnk','readFileSync','16293HnFQxE','scp','~/pm2.config.js','Checking\x20remote\x20host\x20availability','ping','exit','36960EPuGdN','~/ses.json','ssh','\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','1078360PxwrSb','existsSync','maka\x20reconfig'];a78c=function(){return s;};return a78c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a78q(0x10b)]({'name':a78q(0x108),'validOpts':[''],'requiredOpts':['env'],'mustBeInMakaProject':!![],'usage':a78q(0x102),'shortDesc':a78q(0x106),'description':a78q(0xff),'examples':['maka\x20reconfig\x20--env\x20prod']},async function(a,b){const r=a78q;try{const c=this['fsi']['getConfigPath'](b['env']),d=a78f[r(0xed)](c,'ssh.json'),f=a78e[r(0xf5)](d)[r(0xf1)](),g=JSON[r(0x104)](f);Object['assign'](g,{'env':c}),Log[r(0x110)](r(0xf9));const h=SSH[r(0xfa)](r(0x10f),g);if(!h)throw r(0x114);if(h)Log[r(0x10d)]('Remote\x20host\x20connection\x20successful');const i=a78f[r(0xed)](c,'_keys','ses.json');if(a78e[r(0x101)](i)){const l={'source':i,'dest':r(0xfd),'verbose':!![]};SSH['scp'](l,{...g});}const j=a78f[r(0xed)](c,r(0x103));SSH['scp']({'source':j,'dest':r(0xf8),'verbose':!![]},{...g});const k=a78f[r(0xed)](c,r(0x10a));SSH[r(0xf7)]({'source':k,'dest':r(0x115),'verbose':!![]},{...g}),SSH['sshSync'](r(0xee),g),await SSH[r(0xfe)](r(0x107),{...g},{'verbose':!![]});}catch(m){console[r(0xf0)](m),process[r(0xfb)](0x0);}});
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 +1 @@
1
- (function(a,b){var f=a79d,c=a();while(!![]){try{var d=-parseInt(f(0xd5))/0x1*(-parseInt(f(0xdb))/0x2)+-parseInt(f(0xd7))/0x3*(-parseInt(f(0xd8))/0x4)+parseInt(f(0xd3))/0x5+-parseInt(f(0xd1))/0x6*(parseInt(f(0xd6))/0x7)+-parseInt(f(0xd0))/0x8+parseInt(f(0xd4))/0x9*(parseInt(f(0xda))/0xa)+parseInt(f(0xdc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x18db2));var a79b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a79d;if(c){var e=c[g(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){var h=a79d;return a79a[h(0xd2)]()[h(0xcf)]('(((.+)+)+)+$')[h(0xd2)]()[h(0xd9)](a79a)[h(0xcf)](h(0xce));});function a79d(a,b){var c=a79c();return a79d=function(d,e){d=d-0xce;var f=c[d];return f;},a79d(a,b);}a79a();function a79c(){var i=['constructor','3110pdPMCx','28526UGBYqk','1521201PVsmee','apply','(((.+)+)+)+$','search','718712xnmwsy','1230SCZIAw','toString','120145veiWxB','549SlaGft','6PgsQFW','5845wqSmve','95955OHBWbL','12BQOMCv'];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(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 +1 @@
1
- function a80c(){const n=['\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','constructor','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','1100840IJcPGV','toString','1230817HEjqur','6642QuTgaF','getProjectConfig','6WmwOpo','fsi','join','apply','docker','notice','46739ZvrQLH','create','2325632tTyZoL','(((.+)+)+)+$','\x20up\x20--remove-orphans','search','3aluqYU','75928HXXOOL','appName','PM2\x20Config\x20File:\x20','pm2.config.js','docker-compose.yaml','4987785NXxdVL','getConfigPath','docker-compose\x20--project-directory\x20','exit','370RhISCy','12jSpTDS','existsSync'];a80c=function(){return n;};return a80c();}const a80l=a80d;(function(a,b){const i=a80d,c=a();while(!![]){try{const d=-parseInt(i(0xad))/0x1*(parseInt(i(0xa7))/0x2)+-parseInt(i(0xb3))/0x3*(-parseInt(i(0xb4))/0x4)+-parseInt(i(0xa2))/0x5+parseInt(i(0xbe))/0x6*(parseInt(i(0xa4))/0x7)+-parseInt(i(0xaf))/0x8+-parseInt(i(0xa5))/0x9*(-parseInt(i(0xbd))/0xa)+parseInt(i(0xb9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x30e68));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a80d;if(c){const e=c[j(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const k=a80d;return a80a[k(0xa3)]()['search'](k(0xb0))[k(0xa3)]()[k(0xc1)](a80a)[k(0xb2)](k(0xb0));});a80a();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';function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0xa2;let f=c[d];return f;},a80d(a,b);}import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a80l(0xae)]({'name':'docker','aliases':['d'],'shortDesc':a80l(0xc2),'description':a80l(0xc0),'usage':'maka\x20run\x20docker','validOpts':['']},async function(){const m=a80l;try{const a=this['fsi'][m(0xa6)](),b=this[m(0xa8)][m(0xba)](m(0xab)),c=a80f[m(0xa9)](b,m(0xb8)),d=a80f[m(0xa9)](b,m(0xb7));Log[m(0xac)](m(0xb6)+d),Log['notice']('Docker\x20Compose\x20Path:\x20'+c);if(!a80g[m(0xbf)](c)){const f={'app':a[m(0xb5)],'appFileCase':paramCase(a[m(0xb5)])},g=this[m(0xa8)]['templateContent']({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this['fsi']['createFile']({'filePath':c,'data':g});}execSync(m(0xbb)+b+m(0xb1),{'stdio':'inherit'});}catch(h){process[m(0xbc)](0x1);}},a80e);
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 +1 @@
1
- const a81u=a81d;(function(a,b){const q=a81d,c=a();while(!![]){try{const d=parseInt(q(0x71))/0x1+-parseInt(q(0x88))/0x2*(-parseInt(q(0x91))/0x3)+parseInt(q(0x82))/0x4+-parseInt(q(0x73))/0x5*(-parseInt(q(0xa0))/0x6)+-parseInt(q(0xa2))/0x7*(-parseInt(q(0x75))/0x8)+-parseInt(q(0x6c))/0x9+-parseInt(q(0x7d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x236aa));function a81c(){const x=['(((.+)+)+)+$','getConfigPath','mobileServer','--production','docker','3768780uEfPpV','notice','settings','settings.json','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)','785592sRaVSg','join','rawLogs','isFile','findProjectDirectory','verbose','2ihTIHH','slice','process.env','warn','findSubCommand','length','compareMakaToLatest','error','cordova-build','86235FeWavW','openSync','\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.','create','local','run','argv','invokeMeteorCommand','mobile-server','exit','forEach','extraPackages','ios','inspect','apply','60036cgEMPA','search','555037kBgZXF','config','splice','allowIncompatibleUpdate','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','exclude-archs','fsi','env','Run\x20your\x20Meteor\x20application','filter','Cannot\x20find\x20Node\x20Environment\x20File:\x20','714465zzNErE','concat','push','runSubCommand','--settings','48259OAkJDe','production','45iimUuJ','toString','24fiOQpV','Node\x20Env\x20Config:\x20','--env'];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(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const s=a81d;return a81a['toString']()[s(0xa1)]('(((.+)+)+)+$')[s(0x74)]()['constructor'](a81a)[s(0xa1)](s(0x78));});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';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x66;let f=c[d];return f;},a81d(a,b);}const syncSource=function(a){const t=a81d;a81f[t(0x92)](a,'r'),a81g[t(0xa3)]({'path':a});},Run=Command[a81u(0x94)]({'name':a81u(0x96),'mustBeInMakaProject':!![],'shortDesc':a81u(0x69),'description':a81u(0x93),'validOpts':['env',a81u(0x7c),'r',a81u(0x84),'p','port','i',a81u(0x9e),'m',a81u(0x7a),'v',a81u(0x87),a81u(0xa5),a81u(0x9c),'x',a81u(0x66),'production']},async function(a,b){const v=a81u;try{const c=a[0x0],d=this[v(0x8c)](c);d&&this[v(0x6f)](c,a,b);if(c===v(0x9d)){const m=this[v(0x67)][v(0x86)](),n=a81e[v(0x83)](m,'app','.meteor',v(0x95),v(0x90));this[v(0x67)]['isDirectory'](n)&&await rimraf(n);}if(b[v(0x99)]&&b[v(0x99)]===!![]||b['m']&&b['m']===!![])throw v(0x81);await this[v(0x67)][v(0x8e)]();const f=b[v(0x68)]?b['env']:'development',g=this['fsi'][v(0x79)](f),h=a81e[v(0x83)](g,v(0x8a));let i=a81e[v(0x83)](g,v(0x80));b[v(0x7f)]?i=b[v(0x7f)]:i=a81e[v(0x83)](g,v(0x80));if(this[v(0x67)][v(0x85)](h)&&!b[v(0x7c)])Log[v(0x7e)](v(0x76)+h),syncSource(h);else!b['docker']&&Log[v(0x8b)](v(0x6b)+h);this['fsi']['isFile'](i)?(Log['notice']('Meteor\x20Settings:\x20'+i),a=a[v(0x6d)]([v(0x70),i])):Log[v(0x8b)](v(0xa6)+i);const j=g['split'](a81e['sep']),k=j[j[v(0x8d)]-0x1];k===v(0x72)&&a[v(0x6e)](v(0x7b));const l=process[v(0x97)][v(0x89)](0x2)[v(0x6a)](o=>o!==v(0x96))['filter'](o=>o!==a[0x0]);l[v(0x9b)]((o,p)=>{const w=v;o===w(0x77)&&l[w(0xa4)](p,0x2),o==='-e'&&l[w(0xa4)](p,0x2);}),this[v(0x67)][v(0x98)](v(0x96),a[v(0x6d)](l));}catch(o){console[v(0x8f)](o),process[v(0x9a)](0x1);}});export default Run;
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 +1 @@
1
- function a82d(a,b){var c=a82c();return a82d=function(d,e){d=d-0xc2;var f=c[d];return f;},a82d(a,b);}(function(a,b){var f=a82d,c=a();while(!![]){try{var d=-parseInt(f(0xca))/0x1*(parseInt(f(0xc9))/0x2)+parseInt(f(0xc8))/0x3*(parseInt(f(0xc7))/0x4)+-parseInt(f(0xc6))/0x5*(-parseInt(f(0xcb))/0x6)+-parseInt(f(0xc2))/0x7*(-parseInt(f(0xcf))/0x8)+parseInt(f(0xcd))/0x9+-parseInt(f(0xcc))/0xa+-parseInt(f(0xc4))/0xb*(parseInt(f(0xd0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x297be));var a82b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a82d;if(c){var e=c[g(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){var h=a82d;return a82a['toString']()[h(0xc5)](h(0xd1))[h(0xc3)]()['constructor'](a82a)[h(0xc5)](h(0xd1));});function a82c(){var i=['toString','11BJvSFV','search','35zGHCMg','57172emJiZn','69hlnwNG','2HdiafT','70411cFXENl','107238sixVDZ','1249910DkufYC','2946132AtMbVh','apply','17648zXeToD','8061288cquMSs','(((.+)+)+)+$','812qvRRbq'];a82c=function(){return i;};return a82c();}a82a();import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
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 +1 @@
1
- const a83j=a83d;(function(a,b){const h=a83d,c=a();while(!![]){try{const d=parseInt(h(0x1cf))/0x1*(parseInt(h(0x1bc))/0x2)+-parseInt(h(0x1c9))/0x3*(-parseInt(h(0x1d8))/0x4)+parseInt(h(0x1c2))/0x5+parseInt(h(0x1d2))/0x6*(-parseInt(h(0x1d7))/0x7)+-parseInt(h(0x1d6))/0x8*(parseInt(h(0x1dc))/0x9)+-parseInt(h(0x1d4))/0xa*(-parseInt(h(0x1e0))/0xb)+-parseInt(h(0x1df))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xa006e));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['toString']()[i(0x1cb)](i(0x1c1))['toString']()[i(0x1c0)](a83a)['search'](i(0x1c1));});a83a();import a83e from'path';function a83c(){const l=['299752NuRiet','6349taJNcl','2615240FskBjZ','create','fsi','exit','45gAfMVb','One\x20or\x20the\x20other\x20buddy','success','24249312oiKDle','4767389LIGTfO','help','error','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','71042Cyqsjb','Set\x20workspace:\x20','\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','workspace','constructor','(((.+)+)+)+$','1540165PRXIDn','isFile','maka\x20set:gc\x20--insecure\x20<path>','disallowInsecure','setGlobalConfig','maka\x20set:gc\x20--workspace\x20<path>','Set\x20CA\x20Cert\x20Path:\x20','6jbzbzA','Could\x20not\x20find\x20directory','search','cacert','allowInsecure','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','31eeSHZR','Set\x20allowInsecure:\x20','resolve','1896ntfAeL','maka\x20set:global-config\x20--cacert\x20<path>','10hrUBOZ','boolean'];a83c=function(){return l;};return a83c();}import a83f from'./set.command.js';import{Command}from'../../command.js';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a83d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a83j(0x1d9)]({'name':'global-config','usage':'maka\x20set:global-config\x20<args>','aliases':['gc'],'minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':['cacert',a83j(0x1cd),'disallowInsecure','workspace',a83j(0x1e1)],'shortDesc':'Set\x20global\x20Maka-CLI\x20settings','description':a83j(0x1be),'examples':[a83j(0x1d3),a83j(0x1c4),a83j(0x1c7)]},async function(a,b){const k=a83j;try{if(b[k(0x1cc)]){if(this[k(0x1da)][k(0x1c3)](b['cacert']))this[k(0x1da)][k(0x1c6)]({'cert':b[k(0x1cc)]}),Log['success'](k(0x1c8)+b['cacert']);else{const c=typeof b['cacert']===k(0x1d5)?k(0x1ce):k(0x1e3)+b[k(0x1cc)];throw Log[k(0x1e2)](c);}}if(b[k(0x1bf)]){const d=this[k(0x1da)]['isDirectory'](b[k(0x1bf)]);if(d)this[k(0x1da)][k(0x1c6)]({'workspace':a83e[k(0x1d1)](b[k(0x1bf)])}),Log[k(0x1de)](k(0x1bd)+a83e['resolve'](b[k(0x1bf)]));else throw Log[k(0x1e2)](k(0x1ca));}if(b['allowInsecure']){if(b[k(0x1cd)]&&b[k(0x1c5)])throw Log[k(0x1e2)](k(0x1dd));let f=b[k(0x1cd)];b[k(0x1c5)]&&(f=![]),this[k(0x1da)][k(0x1c6)]({'allowInsecure':f}),Log[k(0x1de)](k(0x1d0)+f);}}catch(g){console['error'](g),process[k(0x1db)](0x0);}},a83f);
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 +1 @@
1
- var a84i=a84d;(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0xb5))/0x1+parseInt(f(0xb6))/0x2+parseInt(f(0xaa))/0x3*(parseInt(f(0xba))/0x4)+parseInt(f(0xbd))/0x5*(-parseInt(f(0xb8))/0x6)+parseInt(f(0xb9))/0x7*(parseInt(f(0xbf))/0x8)+parseInt(f(0xab))/0x9*(parseInt(f(0xbe))/0xa)+-parseInt(f(0xb2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0xd2363));function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0xaa;var f=c[d];return f;},a84d(a,b);}var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a['toString']()[h(0xb3)]('(((.+)+)+)+$')[h(0xb4)]()[h(0xb7)](a84a)[h(0xb3)](h(0xac));});a84a();import a84e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a84c(){var k=['740064hyuTsg','678126VTlSOC','18ZvFNUM','(((.+)+)+)+$','apply','maka\x20set:local-config\x20<opts>','local-config','notice','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','34138038vCJcpK','search','toString','38027dqBioy','2366172ZTboQu','constructor','1356OoXAcI','63xcWeYx','24EhCRYj','maka\x20set:lc\x20<opts>','create','16955ZXbxoD','6984840WhnkIE'];a84c=function(){return k;};return a84c();}Command[a84i(0xbc)]({'name':a84i(0xaf),'usage':a84i(0xae),'examples':[a84i(0xbb),a84i(0xae)],'aliases':['lc'],'mustBeInMakaProject':!![],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a84i(0xb1)},async function(){var j=a84i;Log[j(0xb0)]('Sorry,\x20not\x20implemented\x20yet');},a84e);
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 +1 @@
1
- const a85h=a85d;(function(a,b){const f=a85d,c=a();while(!![]){try{const d=parseInt(f(0x7a))/0x1*(parseInt(f(0x69))/0x2)+parseInt(f(0x70))/0x3*(-parseInt(f(0x76))/0x4)+-parseInt(f(0x6e))/0x5*(-parseInt(f(0x6f))/0x6)+-parseInt(f(0x77))/0x7*(-parseInt(f(0x7c))/0x8)+parseInt(f(0x72))/0x9+-parseInt(f(0x75))/0xa+-parseInt(f(0x6d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x41f14));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const g=a85d;return a85a['toString']()[g(0x6a)](g(0x79))['toString']()[g(0x6c)](a85a)[g(0x6a)]('(((.+)+)+)+$');});a85a();import{Command}from'../../command.js';function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x69;let f=c[d];return f;},a85d(a,b);}import{UsageError}from'../../error.js';const SetCommand=Command[a85h(0x71)]({'name':a85h(0x78),'usage':a85h(0x6b),'minArgLength':0x1,'shortDesc':a85h(0x73),'description':a85h(0x74),'validOpts':[]},async function(a,b){const i=a85h,c=a[0x0];if(b['help'])throw new UsageError();const d=this['findSubCommand'](c);d&&this[i(0x7b)](c,a,b);});export default SetCommand;function a85c(){const j=['maka\x20set:<sub-command>\x20<opts>','constructor','3374976VfuZqq','9850MRxTsv','1182bJNdFg','14640dAaEeH','create','525618nMVqJX','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','\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','1755980TAlFUR','324kjhrQG','849688XDfwAC','set','(((.+)+)+)+$','107883fCPuoI','runSubCommand','32anNHlL','4WUrLEL','search'];a85c=function(){return j;};return a85c();}
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 +1 @@
1
- const a86l=a86d;(function(a,b){const j=a86d,c=a();while(!![]){try{const d=parseInt(j(0x1fe))/0x1+-parseInt(j(0x200))/0x2+parseInt(j(0x1fd))/0x3*(-parseInt(j(0x1ed))/0x4)+-parseInt(j(0x1f0))/0x5+parseInt(j(0x1f9))/0x6*(parseInt(j(0x1f1))/0x7)+parseInt(j(0x1ef))/0x8+parseInt(j(0x1f6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xb0c0e));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const k=a86d;return a86a[k(0x1e8)]()[k(0x1e4)](k(0x201))[k(0x1e8)]()[k(0x1ee)](a86a)[k(0x1e4)](k(0x201));});a86a();function a86c(){const n=['2301432sZHFOx','99540MprLHZ','7EZUVrw','env','sshSync','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','maka\x20ssh\x20--env\x20staging','10017954suBGoU','assign','ssh.json','1515702AslLyr','readFileSync','fsi','maka\x20ssh\x20--env\x20prod','69LnzrTg','1341641rwNjvT','parse','1661668uEPTnX','(((.+)+)+)+$','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','search','length','create','getConfigPath','toString','error','maka\x20ssh\x20<command>','maka\x20ssh\x20--env\x20dev','exit','247012rmmUCc','constructor'];a86c=function(){return n;};return a86c();}import a86e from'fs';import a86f from'path';function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x1e4;let f=c[d];return f;},a86d(a,b);}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a86l(0x1e6)]({'name':'ssh','usage':a86l(0x1ea),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a86l(0x1f2),'v'],'shortDesc':a86l(0x1f4),'examples':[a86l(0x1eb),a86l(0x1f5),a86l(0x1fc),a86l(0x202),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22']},async function(a,b){const m=a86l;try{const c=this[m(0x1fb)][m(0x1e7)](b[m(0x1f2)]);let d='';a[m(0x1e5)]>0x0&&(d=a[0x0]);const f=a86f['join'](c,m(0x1f8)),g=a86e[m(0x1fa)](f)[m(0x1e8)](),h=JSON[m(0x1ff)](g);Object[m(0x1f7)](h,{'env':c}),SSH[m(0x1f3)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[m(0x1e9)](i),process[m(0x1ec)](0x0);}});
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 +1 @@
1
- const a87x=a87d;(function(a,b){const v=a87d,c=a();while(!![]){try{const d=-parseInt(v(0x1bb))/0x1*(-parseInt(v(0x1c6))/0x2)+parseInt(v(0x19d))/0x3*(parseInt(v(0x1b4))/0x4)+-parseInt(v(0x1d6))/0x5+-parseInt(v(0x1c4))/0x6*(parseInt(v(0x1a7))/0x7)+parseInt(v(0x1a5))/0x8*(-parseInt(v(0x1d7))/0x9)+parseInt(v(0x1bd))/0xa+-parseInt(v(0x1c8))/0xb*(-parseInt(v(0x1d3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xd4ef3));const a87b=(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;};}()),a87a=a87b(this,function(){const w=a87d;return a87a['toString']()[w(0x1af)](w(0x19b))['toString']()[w(0x1be)](a87a)['search'](w(0x19b));});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 a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x19a;let f=c[d];return f;},a87d(a,b);}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':a87x(0x1cb),'usage':a87x(0x1ab),'validOpts':[a87x(0x1d8),a87x(0x1c7)],'requiredOpts':[a87x(0x1cf)],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a87x(0x1a4),a87x(0x1bf),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const y=a87x,c=this[y(0x1d0)][y(0x1d5)](),d=this[y(0x1d0)]['getConfigPath'](b[y(0x1cf)]),f=this[y(0x1d0)][y(0x1c9)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===y(0x1ce))SSL[y(0x1a1)]({'keyName':c['appName']+y(0x19f),'csrName':c[y(0x1d4)]+y(0x1b1),'cwd':f});else{if(g===y(0x1ad)){if(!a87e['existsSync'](a87f[y(0x1a9)](f,c[y(0x1d4)]+y(0x19f))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a87f['join'](f,c[y(0x1d4)]+'.key');if(!a87e[y(0x1a2)](a87f['join'](f,c['appName']+y(0x1b1))))throw y(0x1cc)+a87f[y(0x1a9)](f,c[y(0x1d4)]+y(0x1b1));SSL[y(0x1c0)]({'keyName':c[y(0x1d4)]+y(0x19f),'crtName':c[y(0x1d4)]+y(0x1b6),'cwd':f}),Log[y(0x1c3)](y(0x1cd)+f);}else{if(g===y(0x1c5)){let h=b[y(0x1d8)],i=b[y(0x1c7)];try{const p=a87e['readFileSync'](a87f[y(0x1a9)](d,y(0x1ca)))[y(0x1b7)](),q=JSON[y(0x19e)](p);h=b[y(0x1d8)]?b[y(0x1d8)]:q[y(0x1b3)],i=b[y(0x1c7)]?b[y(0x1c7)]:q['emailUpdate'],(!b[y(0x1c7)]||!b[y(0x1d8)])&&Log[y(0x1c3)](y(0x1b8));}catch(r){}const j=JSON['parse'](a87e[y(0x1d2)](d+'/ssh.json')[y(0x1b7)]());Object[y(0x19a)](j,{'env':d}),Log[y(0x1c3)](y(0x1b5));try{const s=SSH[y(0x1bc)]('uname\x20-a',j);if(!s)throw y(0x19c);if(s)Log[y(0x1a6)]('Remote\x20host\x20connection\x20successful');}catch(t){Log[y(0x1ac)](t);return;}const k=Log[y(0x1b9)]();k['start'](y(0x1c2)),SSH[y(0x1d1)](y(0x1aa),{...j}),SSH[y(0x1d1)]('sudo\x20snap\x20install\x20--classic\x20certbot',{...j}),SSH['ssh'](y(0x1a3),{...j}),k[y(0x1a6)]();const l=h?h:await Actions[y(0x1b2)](y(0x1ae)),m=i?i:await Actions[y(0x1b2)](y(0x1a0));SSH['ssh'](y(0x1b0)+l+y(0x1ba)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[y(0x1c1)](n,null,0x2);a87e[y(0x1d9)](a87f[y(0x1a9)](d,y(0x1ca)),o);}else throw'Please\x20provide\x20a\x20command.';}}}catch(u){console['error'](u),process[y(0x1a8)](0x0);}});function a87c(){const z=['11YCeXsw','mkKeysDir','letsencrypt.json','ssl','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','New\x20CSR\x20written\x20to\x20','generate-csr','env','fsi','ssh','readFileSync','2801124koTHTk','appName','getProjectConfig','1371700ZIccOb','567513nKTvVM','domains','writeFileSync','assign','(((.+)+)+)+$','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','1913277zIZgsP','parse','.key','Email\x20to\x20use\x20for\x20auto-updates:\x20','genCSR','existsSync','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','maka\x20ssl\x20--env\x20dev\x20generate-csr','72APBQgz','success','14CSGDpK','exit','join','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','maka\x20ssl\x20[command]','error','generate-ssc','[?]\x20Domains\x20to\x20register:\x20','search','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','.csr','ask','domainNames','4NtiFVl','Checking\x20remote\x20host\x20availability','.crt','toString','Using\x20saved\x20letsencrypt\x20config','withSpinner','\x20--email\x20','1042255uHVPoL','ping','7068850kTZlRG','constructor','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','genSSC','stringify','Verifying\x20Letsencrypt\x20configuration','notice','2718882rWIkzj','letsencrypt','2PmblBc','email'];a87c=function(){return z;};return a87c();}
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 +1 @@
1
- const a88q=a88d;(function(a,b){const m=a88d,c=a();while(!![]){try{const d=parseInt(m(0xb2))/0x1*(parseInt(m(0xd7))/0x2)+parseInt(m(0xa1))/0x3+parseInt(m(0xb8))/0x4+parseInt(m(0xa5))/0x5*(parseInt(m(0xa2))/0x6)+parseInt(m(0x9c))/0x7*(-parseInt(m(0xd1))/0x8)+parseInt(m(0xcc))/0x9+-parseInt(m(0xc8))/0xa*(parseInt(m(0xa0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x3316e));function a88c(){const t=['engines','driverPackage','apply','config.json','8zLevAt','maka\x20test\x20<opts>','once','parse','error','3549SmsHlm','config','argv','mocha','30327bIMjAz','354042WXPiRW','369582FmYYcW','testAppPath','packages','10UaivIc','isFile','--full-app','concat','slice','notice','driver','warn','toString','--driver','none','search','sanjo:jasmine','30827DZbdSH','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','unit','--env','--packages','openSync','139924aJRALX','process.env','utf8','test-packages','jasmine','exit','--driver-package','join','meteortesting:mocha','test','env','splice','filter','Meteor\x20Settings:\x20','fsi','driver-package','1180wLGevt','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','--settings','Node\x20Env\x20Config:\x20','3237228UEXWwR','Cannot\x20find\x20Node\x20Environment\x20File:\x20','invokeMeteorCommand','(((.+)+)+)+$','readFileSync','3544uPuDYP','forEach'];a88c=function(){return t;};return a88c();}const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a88d;if(c){const e=c[n(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const o=a88d;return a88a[o(0xad)]()[o(0xb0)]('(((.+)+)+)+$')[o(0xad)]()['constructor'](a88a)[o(0xb0)](o(0xcf));});a88a();import a88e from'fs';import a88f from'path';import a88g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x9a;let f=c[d];return f;},a88d(a,b);}const syncSource=function(a){const p=a88d;a88e[p(0xb7)](a,'r'),a88g[p(0x9d)]({'path':a});};Command['create']({'name':'test','mustBeInMakaProject':!![],'validOpts':[a88q(0xd9),a88q(0xa4),a88q(0xab),a88q(0xd4),a88q(0xb4),a88q(0xc2),'rawLogs','port','inspect',a88q(0xa3)],'usage':a88q(0xd8),'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a88q;try{let c=this[r(0xc6)]['getConfigPath']('development');b[r(0xc2)]&&(c=this[r(0xc6)]['getConfigPath'](b[r(0xc2)]));(!b['unit']||!!b[r(0xd9)])&&(a=a[r(0xa8)]([r(0xa7)]));b[r(0xb4)]&&delete b[r(0xb4)];let d=b[r(0xc7)]||b[r(0xab)]||'none';if(d===r(0xaf)){const j=JSON[r(0x9a)](a88e[r(0xd0)](a88f[r(0xbf)](this[r(0xc6)]['findProjectDirectory'](),'.maka',r(0xd6)),r(0xba)));if(j[r(0xd3)][r(0xc1)]===r(0xbc))d=r(0xb1);else j['engines'][r(0xc1)]===r(0x9f)&&(d=r(0xc0));}if(d===r(0xaf))throw r(0xc9);(!b[r(0xc7)]||!b[r(0xab)])&&(a=a['concat']([r(0xbe),d]));const f=a88f[r(0xbf)](c,'settings.json');this[r(0xc6)][r(0xa6)](f)?(Log['notice'](r(0xc5)+f),a=a[r(0xa8)]([r(0xca),f])):Log['warn'](r(0xb3)+f);const g=a88f['join'](c,r(0xb9));this['fsi'][r(0xa6)](g)?(Log[r(0xaa)](r(0xcb)+g),syncSource(g)):Log[r(0xac)](r(0xcd)+g);const h=process[r(0x9e)][r(0xa9)](0x2)[r(0xc4)](k=>k!==r(0xb5))[r(0xc4)](k=>k!==r(0xc1))[r(0xc4)](k=>k!==a[0x0]);h[r(0xd2)]((k,l)=>{const s=r;(k===s(0xb5)||k===s(0xae))&&h[s(0xc3)](l,0x2),k===s(0xb6)&&h[s(0xc3)](l,0x1);});const i=b['packages']?r(0xbb):r(0xc1);this['fsi'][r(0xce)](i,a[r(0xa8)](h));}catch(k){console[r(0x9b)](k),process[r(0xbd)](0x0);}});
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 +1 @@
1
- const a89l=a89d;(function(a,b){const i=a89d,c=a();while(!![]){try{const d=parseInt(i(0xa7))/0x1*(-parseInt(i(0x80))/0x2)+parseInt(i(0x7b))/0x3*(parseInt(i(0xa2))/0x4)+parseInt(i(0x9a))/0x5+parseInt(i(0x92))/0x6+-parseInt(i(0x9d))/0x7*(-parseInt(i(0x9f))/0x8)+parseInt(i(0x84))/0x9*(parseInt(i(0x7d))/0xa)+parseInt(i(0x93))/0xb*(-parseInt(i(0x9e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x7b591));function a89c(){const n=['5155818DKZTxX','176473cmUYMH','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','isMakaProject','meteor.bat','bright','meteor','3190880gGObSP','apply','majestic','1423492hAwIkJ','564dAtkMO','16yIYbEm','\x20node\x20-v','----------------------System----------------------------','8ARESCM','compareMakaToLatest','warn','----------------------Project----------------------------','maka\x20v','71WGcDCP','version','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','N/A','\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','(((.+)+)+)+$','System\x27s\x20Node\x20Version\x20','83193eWWKBK','toString','903200KjjHiQ','Maka\x20','notice','24818WYsZtS','fsi','maka\x20version','Project\x27s\x20Meteor\x20Version\x20','18mrMEcV','node\x20-v','replace','error','search','win32','System\x27s\x20Meteor\x20Version\x20','platform','getProjectMeteorVersion','constructor','getProjectsMeteorNodeVersion','Project\x27s\x20Meteor\x20Node\x20Version\x20','getGlobalMeteorVersion','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.'];a89c=function(){return n;};return a89c();}const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a89d;if(c){const e=c[j(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const k=a89d;return a89a[k(0x7c)]()[k(0x88)](k(0x79))[k(0x7c)]()[k(0x8d)](a89a)[k(0x88)](k(0x79));});function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0x75;let f=c[d];return f;},a89d(a,b);}a89a();import{execSync}from'child_process';import a89e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.5.28'};Command['create']({'name':a89l(0x75),'aliases':['v'],'usage':a89l(0x82),'maxArgLength':0x1,'validOpts':[],'shortDesc':a89l(0x76),'examples':[a89l(0xa6),a89l(0x82)]},async function(){const m=a89l;try{const a=process[m(0x8b)]===m(0x89)?m(0x97):m(0x99);Log[m(0x9c)](m(0x7e)+pjson[m(0x75)]),await this[m(0x81)][m(0xa3)](),Log[m(0x98)](m(0xa1));const b=this[m(0x81)][m(0x90)]();Log[m(0x98)]((m(0x8a)+b)[m(0x86)]('\x0a',''));const c=execSync(a+m(0xa0))[m(0x7c)]()[m(0x86)](/\r?\n|\r/,'')[m(0x86)]('v','');Log['bright'](m(0x94)+c);const d=execSync(m(0x85))[m(0x7c)]()[m(0x86)](/\r?\n|\r/,'')[m(0x86)]('v','');a89e['gt'](c,d)?(Log['warn'](m(0x7a)+d),Log['warn'](m(0x95)+d+')\x20to\x20at\x20least\x20meteor\x27s\x20('+c+')')):Log['bright']('System\x27s\x20Node\x20Version\x20'+d);if(this['fsi'][m(0x96)]()){Log['bright'](m(0xa5));const f=this['fsi'][m(0x8c)]();a89e['gt'](b,f)?(Log[m(0xa4)](m(0x83)+f[m(0x86)]('\x0a','')),Log[m(0xa4)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+b+'\x22')):Log[m(0x7f)]((m(0x83)+f)[m(0x86)]('\x0a',''));const g=await this[m(0x81)][m(0x8e)]();g===m(0x77)?(Log[m(0xa4)](m(0x8f)+g),Log[m(0xa4)](m(0x91))):Log[m(0x98)](m(0x8f)+g),Log['bright'](m(0x78));}}catch(h){console[m(0x87)](h),process['exit'](0x0);}});
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 +1 @@
1
- (function(a,b){var f=a90d,c=a();while(!![]){try{var d=parseInt(f(0xfa))/0x1+parseInt(f(0xf0))/0x2+-parseInt(f(0xf1))/0x3*(parseInt(f(0xfb))/0x4)+-parseInt(f(0xf7))/0x5+parseInt(f(0xf3))/0x6*(parseInt(f(0xf2))/0x7)+-parseInt(f(0xef))/0x8+parseInt(f(0xf4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xce308));var a90b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a90d;if(c){var e=c[g(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){var h=a90d;return a90a[h(0xf5)]()[h(0xee)](h(0xf6))['toString']()[h(0xf8)](a90a)[h(0xee)](h(0xf6));});a90a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a90d(a,b){var c=a90c();return a90d=function(d,e){d=d-0xee;var f=c[d];return f;},a90d(a,b);}function a90c(){var i=['956xptLTd','search','8352640YfqUbO','1314876hUICsp','1959ncVHYG','39914NPHqOZ','678dYroQi','11671164mNJVIj','toString','(((.+)+)+)+$','4549235vweekp','constructor','apply','355986ogRnjM'];a90c=function(){return i;};return a90c();}
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,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a91c(){var j=['env','13006mJYmhs','1163460TrGMGw','7ahbzGM','toString','749283tEzWcg','4ztygCw','apply','2891140hWGNqX','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','search','11MoQKWn','2202326tlyMYm','5SRozXx','NODE_OPTIONS','6813216IpMYaV','95877fvMuLA','(((.+)+)+)+$','208idvxpE'];a91c=function(){return j;};return a91c();}var a91i=a91d;(function(a,b){var f=a91d,c=a();while(!![]){try{var d=parseInt(f(0x16e))/0x1*(-parseInt(f(0x16c))/0x2)+-parseInt(f(0x170))/0x3*(parseInt(f(0x171))/0x4)+parseInt(f(0x165))/0x5*(parseInt(f(0x16d))/0x6)+parseInt(f(0x177))/0x7+parseInt(f(0x16a))/0x8*(parseInt(f(0x168))/0x9)+parseInt(f(0x173))/0xa*(parseInt(f(0x176))/0xb)+-parseInt(f(0x167))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x33a72));var a91b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a91d;if(c){var e=c[g(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){var h=a91d;return a91a[h(0x16f)]()['search'](h(0x169))[h(0x16f)]()['constructor'](a91a)[h(0x175)](h(0x169));});a91a(),process[a91i(0x16b)][a91i(0x166)]=a91i(0x174);function a91d(a,b){var c=a91c();return a91d=function(d,e){d=d-0x165;var f=c[d];return f;},a91d(a,b);}import'./maka.js';
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';
@@ -1 +1 @@
1
- const a92u=a92d;(function(a,b){const q=a92d,c=a();while(!![]){try{const d=parseInt(q(0xc4))/0x1*(-parseInt(q(0x8a))/0x2)+parseInt(q(0xa6))/0x3*(parseInt(q(0xe6))/0x4)+-parseInt(q(0xb6))/0x5+-parseInt(q(0x9e))/0x6+parseInt(q(0xc6))/0x7+-parseInt(q(0x89))/0x8*(parseInt(q(0xca))/0x9)+parseInt(q(0xe1))/0xa*(parseInt(q(0xd9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xe6342));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a92d;if(c){const e=c[r(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const s=a92d;return a92a['toString']()[s(0xe5)](s(0xc0))['toString']()[s(0x87)](a92a)[s(0xe5)](s(0xc0));});a92a();import a92e from'path';import a92f from'cli-table';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x86;let f=c[d];return f;},a92d(a,b);}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';function a92c(){const F=['apply','Generator\x20requires\x20a\x20handler\x20function','root','search','4tkmmve','_handler','dir','minArgLength','function','validateMeteorInstall','constructor','bright','104wjtsDQ','5372wwTNBY','slice','roles','minOptsLength','pop','_generators','maxOptsLength','aliases','where','Generators:','usage','singleLicense','list','options','exit','colLocAnswer','sep','filter','cwd','push','4992846nIItHh','error','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','There\x20is\x20no\x20Meteor\x20application\x20here','proGenerators','listGenerators','getPro','2753769IVelLZ','Generator.create\x20requires\x20some\x20options!','Too\x20many\x20arguments','bind','appPathPrefix','number','No\x20resource\x20name\x20specified','match','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','Server','name','map','Name','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','checkWhere','fsi','5183685PdyDIK','domainLicense','Both','keys','maxArgLength','validateMakaSubscription','parent','assign','findProjectDirectory','forEach','(((.+)+)+)+$','Alias','sort','findGenerator','463zqbTAD','help','10707396nbIQEu','proFlags','server','tableList','691857VjfWfl','addGenerator','lib','join','mustHaveMeteorInstalled','toString','Too\x20few\x20arguments','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','resourceName','includes','call','invoke','client','Generator\x20requires\x20a\x20name','validateParams','11CcTPEN','Generator.create\x20requires\x20a\x20handler\x20function!','both','mustBeInMakaProject','Client','length','Please\x20run\x20\x22maka\x20install\x20meteor\x22','validateMakaProject','26072080ODQLfb'];a92c=function(){return F;};return a92c();}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(0x9c)]();let d=null;try{process['chdir'](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a92u(0x97)];[a92u(0x8f)];constructor(a,b){const v=a92u;super();if(!a)throw new Error(v(0xb3));if(!a[v(0xb0)])throw new Error(v(0xd7));if(typeof b!==v(0xea))throw new Error(v(0xe3));this[v(0x8f)]=[],this[v(0x97)]=Object[v(0xbd)]({},a),this[v(0xb0)]=this[v(0x97)][v(0xb0)],this['_handler']=b[v(0xa9)](this);}static['create'](a,b,c){const w=a92u;if(!a)throw new Error(w(0xa7));if(typeof b!==w(0xea))throw new Error(w(0xda));const d=new Generator(a,b);return c=c||a92g,Object[w(0xbd)](d,{'parent':c?.['options']?.['name']}),c['addGenerator'](d),d;}[a92u(0xcb)](a){const x=a92u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[x(0x8f)]['push'](a);}[a92u(0xc3)](a){const y=a92u,b=this[y(0x8f)]['find'](c=>c[y(0xad)](a));return b;}async[a92u(0xbb)](a,b){const z=a92u,c=this[z(0xc3)](a[0x0]);if(c){const d=c?.[z(0xb0)]||a[0x0],e=c?.[z(0xbc)]||'',f=Object[z(0xb9)](b),g=await this[z(0xb5)][z(0xa5)]();!g&&(Log[z(0x9f)](z(0xae)),process['exit'](0x1));const h=!g?.['roles'][z(0xd3)](z(0x95))&&!g?.[z(0x8c)]['includes'](z(0xb7)),i=g?.[z(0xa3)]['includes'](d)||g?.[z(0xa3)][z(0xd3)](e);if(i&&h)throw'To\x20use\x20this\x20generator,\x20\x22'+d+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(f[z(0xde)]>0x0){const j=g?.[z(0xc7)][z(0x9b)](k=>f[z(0xd3)](k));if(j&&j[z(0xde)]>0x0&&h)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+j?.[z(0xcd)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a92u(0xd5)](a,b){const A=a92u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x97)];try{await this[A(0xbb)](a,b);}catch(g){Log[A(0x9f)](g),process[A(0x98)](0x1);}const f=a[A(0x8b)]();b[A(0xd2)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[A(0xc5)])throw new UsageError();if(this[A(0x97)][A(0xdc)]){const h=this[A(0xe0)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x97)][A(0xce)]){const i=this[A(0x86)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x97)][A(0xe9)]==='number'){if(a[A(0xde)]<this['options'][A(0xe9)]){Log[A(0x9f)](A(0xd0));throw new UsageError();}}if(typeof this[A(0x97)]['maxArgLength']===A(0xab)){if(a[A(0xde)]>this[A(0x97)][A(0xba)]){Log[A(0x9f)](A(0xa8));throw new UsageError();}}if(typeof this[A(0x97)][A(0x8d)]===A(0xab)){if(Object[A(0xb9)](b)[A(0xde)]<this[A(0x97)][A(0x8d)]){Log[A(0x9f)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[A(0x97)][A(0x90)]===A(0xab)){if(Object['keys'](b)['length']>=this[A(0x97)][A(0x90)]){Log[A(0x9f)]('Too\x20many\x20options');throw new UsageError();}}this[A(0xd8)](a,b,this[A(0x97)]);if(!b['resourceName']&&!this['options']['noResource']){Log[A(0x9f)](A(0xac));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0x94)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0x8f)][A(0xde)]>0x0&&b[A(0xc5)]&&(Log['notice'](A(0x93)),this['tableList'](this[A(0x8f)]));else{if(j instanceof MustBeInProjectError)Log['error'](A(0xd1));else{if(j instanceof NoMeteorFoundError)Log[A(0x9f)](A(0xa0)),Log['notice'](A(0xdf));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x9f)](A(0xa2));else throw j;}}}process['exit'](0x1);}return new Promise(k=>{inside(b['cwd'],async()=>{const B=a92d;try{if(!b[B(0xe4)]&&!this['fsi'][B(0xbe)]())throw new MustBeInProjectError();const l=b[B(0xd2)]?.['replace'](/\\/g,'/')['split']('/');!b[B(0xe8)]&&(l?.['length']>0x1?(b['resourceName']=l[B(0x8e)](),f[0x0]=b[B(0xd2)],b[B(0xe8)]=l[B(0xb1)](m=>{return paramCase(m);})['join'](a92e[B(0x9a)])):b[B(0xe8)]='');if(this['options'][B(0xb4)]){if(!b['where']){const n={'type':B(0x96),'name':B(0x99),'message':'Location','choices':[{'name':B(0xdd),'value':'client'},{'name':B(0xaf),'value':B(0xc8)},{'name':B(0xb8),'value':B(0xdb)}]},{colLocAnswer:o}=await Actions[B(0x97)](n);o?b[B(0x92)]=o:b['where']=B(0xdb);}const m=['both',B(0xd6),B(0xc8)];if(!m['includes'](b[B(0x92)])){Log[B(0x9f)](B(0xa1));throw new UsageError();}switch(b[B(0x92)]){case B(0xdb):b[B(0xaa)]=B(0xcc);break;case B(0xc8):b[B(0xaa)]=B(0xc8);break;case B(0xd6):b[B(0xaa)]=B(0xd6);break;default:b[B(0xaa)]='';}}k(this[B(0xe7)][B(0xd4)](this,f,b));}catch(p){console[B(0x9f)](p);}});});}[a92u(0xa4)](){const C=a92u;this['tableList'](this[C(0x8f)]);}[a92u(0xc9)](a){const D=a92u,b=new a92f({});b[D(0x9d)]([D(0xb2),D(0xc1),'Description']),a[D(0xc2)]()[D(0xbf)](c=>{const E=D;b[E(0x9d)]([c[E(0xb0)],c[E(0x91)](),c['shortDesc']()]);}),Log[D(0x88)](b[D(0xcf)]());}}
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 +1 @@
1
- (function(a,b){var f=a93d,c=a();while(!![]){try{var d=parseInt(f(0x1c2))/0x1*(parseInt(f(0x1be))/0x2)+-parseInt(f(0x1c0))/0x3*(-parseInt(f(0x1bd))/0x4)+-parseInt(f(0x1bc))/0x5*(-parseInt(f(0x1c9))/0x6)+parseInt(f(0x1c1))/0x7*(parseInt(f(0x1c5))/0x8)+-parseInt(f(0x1c6))/0x9+parseInt(f(0x1c7))/0xa*(-parseInt(f(0x1bf))/0xb)+-parseInt(f(0x1c8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xbc47e));var a93b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){var g=a93d;return a93a[g(0x1cb)]()[g(0x1c3)]('(((.+)+)+)+$')['toString']()[g(0x1c4)](a93a)[g(0x1c3)](g(0x1ca));});a93a();import'./services/_index.js';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';function a93c(){var h=['30wMqbko','(((.+)+)+)+$','toString','531025GqUemW','30196GpSnfu','281094GFywQY','213037cRQzTk','573qqCauP','458360sTAVTl','9oAWlHk','search','constructor','16AaeEgg','10858167chqjcU','710esAttg','192588fmgYYr'];a93c=function(){return h;};return a93c();}import'./maka.gen.js';import'./dockerfile.js';function a93d(a,b){var c=a93c();return a93d=function(d,e){d=d-0x1bc;var f=c[d];return f;},a93d(a,b);}import'./maka.gen.js';
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 +1 @@
1
- const a94z=a94d;(function(a,b){const w=a94d,c=a();while(!![]){try{const d=parseInt(w(0x1fb))/0x1+-parseInt(w(0x206))/0x2*(-parseInt(w(0x1de))/0x3)+parseInt(w(0x20d))/0x4+parseInt(w(0x213))/0x5*(parseInt(w(0x211))/0x6)+-parseInt(w(0x1f1))/0x7+-parseInt(w(0x1d0))/0x8*(parseInt(w(0x215))/0x9)+parseInt(w(0x20f))/0xa*(parseInt(w(0x1ca))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xb87ab));function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a94d(a,b);}const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a94d;if(c){const e=c[x(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const y=a94d;return a94a['toString']()[y(0x212)](y(0x1d4))[y(0x1fc)]()[y(0x1e9)](a94a)[y(0x212)](y(0x1d4));});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';import{camelCase,paramCase,pascalCase}from'change-case';function a94c(){const C=['10776fZMoNm','/imports/api','pathFromApp','Resolvers);\x0a\x0a','(((.+)+)+)+$','push','findGenerator','GraphQL','api','Publications','RPC\x20(Methods)','API\x20boundaries\x20to\x20create','const','installMeteorPackage','3HkVRBF','typeList.push(','.app-tests.','injectAtEndOfFile','test','/graphql/resolvers','graphql','rest','injectIntoFile','maka:rest','none','constructor','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','rewriteDestinationPathForEngine','create','maka:check','engines','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','withFixtures','7131152lqzmPR','withMethods','api/publications.js','injectAtBeginningOfFile','apollo','fsi','api/api.js','checkbox','startup','maka\x20{generate,\x20g}:{api}\x20<resource-name>','581178sKNdLa','toString','ddp-rate-limiter','maka\x20g:api\x20todos','\x0aimport\x20{\x20resolvers\x20as\x20','No\x20API\x20boundaries\x20selected','api/tests.js','server','withGql','publications.','index.','1120382nynTqb','includes','dir','api/typeDefs.js','Resolvers\x20}\x20from\x20\x27','apply','api/methods.js','394532DXbjAQ','api/fixtures.js','10BjcxmL','if\x20\x5c(typeList','6wsRGRs','search','6759785TpUMZi','register-','8649mBphDO','error','collection','import\x20\x27./register-','withRest','apiAnswers','-api.','template','imports','5245581rmWLab','withPubs','resolverList.push(','withValue','checkMeteorPackage','fixtures.'];a94c=function(){return C;};return a94c();}Generator[a94z(0x1ec)]({'name':a94z(0x1d8),'aliases':['a'],'usage':a94z(0x1fa),'shortDesc':a94z(0x1ef),'validOpts':[a94z(0x208)],'examples':[a94z(0x1fe)]},async function(a,b){const A=a94z;try{const c=this[A(0x1f6)]['getProjectConfig'](),d=[{'name':A(0x1da),'value':A(0x1f2)},{'name':'Fixtures','value':A(0x1f0)},{'name':A(0x1d9),'value':A(0x1cb)}];c['engines']['api']===A(0x1e5)&&d['push']({'name':'REST\x20API','value':A(0x219)});c[A(0x1ee)][A(0x1e4)]===A(0x1f5)&&d[A(0x1d5)]({'name':A(0x1d7),'value':A(0x203)});const f={'type':A(0x1f8),'name':A(0x21a),'message':A(0x1db),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0x216)](A(0x200)),process['exit'](0x1)),this[A(0x1f6)][A(0x1cd)](c,async()=>{const B=A,h=this[B(0x1f6)][B(0x1d2)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x208)]?'/'+b[B(0x208)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1d8)],'graphql':c['engines'][B(0x1e4)],'test':c[B(0x1ee)][B(0x1e2)],'noRename':!![],'withPubs':g[B(0x207)]('withPubs'),'withFixtures':g[B(0x207)](B(0x1f0)),'withMethods':g[B(0x207)](B(0x1f2)),'withRest':g[B(0x207)](B(0x219))};let n='js';c['engines']['js']==='tsx'&&(n='ts');(!this['fsi'][B(0x1ce)](B(0x1e7))||!this['fsi']['checkMeteorPackage'](B(0x1ed))||!this[B(0x1f6)][B(0x1ce)](B(0x1fd))||!this[B(0x1f6)][B(0x1ce)]('mdg:validated-method')||!this['fsi'][B(0x1ce)]('mongo'))&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements\x20...'),await this['fsi'][B(0x1dd)](B(0x1ea),{'cwd':h}));const o=a94e[B(0x1d6)](B(0x217));o&&await o['invoke']([j],{'config':c,'where':B(0x202)});c[B(0x1ee)][B(0x1d8)]===B(0x1e5)&&(m['withRest']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x1f7),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20c),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x1f0)]&&this['fsi'][B(0x1c8)]({'srcPath':B(0x20e),'destPath':this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1cf)+n]}),'context':m,'config':c});c[B(0x1ee)][B(0x1e2)]!==B(0x1e8)&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x201),'destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b['dir'],j,j+B(0x1e0)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x1f3),'destPath':this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),'api',b[B(0x208)],j,B(0x204)+n]}),'context':m,'config':c});if(c[B(0x1ee)][B(0x1e4)]===B(0x1f5)){if(g[B(0x207)]('withGql')){const q=this['fsi']['pathFromApp']({'pathParts':['imports',B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]}),r=this[B(0x1f6)][B(0x1eb)]({'pathParts':[q],'config':c}),s=this[B(0x1f6)]['pathFromApp']({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'typeDefs.'+n]}),t=B(0x1d1)+l+j+'/graphql/typeDefs';this[B(0x1f6)][B(0x1c8)]({'srcPath':B(0x209),'destPath':s,'context':m,'config':c}),this['fsi'][B(0x1f4)]({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1df)+k+'TypeDefs);\x0a','begin':B(0x1dc),'end':'if\x20\x5c(typeList'});const u=this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1d8),b[B(0x208)],j,B(0x1e4),'resolvers.'+n]}),v=B(0x1d1)+l+j+B(0x1e3);this['fsi'][B(0x1c8)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x1f6)][B(0x1f4)]({'filePath':r,'content':B(0x1ff)+k+B(0x20a)+v+'\x27;'}),this[B(0x1f6)][B(0x1e6)]({'filePath':r,'content':B(0x1cc)+k+B(0x1d3),'begin':'const','end':B(0x210)});}}this[B(0x1f6)][B(0x1c8)]({'srcPath':'api/register-api.js','destPath':this[B(0x1f6)][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),B(0x202),B(0x214)+j+B(0x1c7)+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0x1d2)]({'pathParts':[B(0x1c9),B(0x1f9),'server',B(0x205)+c[B(0x1ee)]['js']]});this[B(0x1f6)][B(0x1e1)]({'filePath':p,'content':B(0x218)+j+'-api\x27;'});});}catch(h){console['log'](h),process['exit'](0x0);}});
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 +1 @@
1
- const a95n=a95d;(function(a,b){const k=a95d,c=a();while(!![]){try{const d=-parseInt(k(0x1f3))/0x1*(-parseInt(k(0x1ce))/0x2)+-parseInt(k(0x1da))/0x3+parseInt(k(0x1e8))/0x4+parseInt(k(0x1d8))/0x5+-parseInt(k(0x1f4))/0x6+parseInt(k(0x1e2))/0x7*(-parseInt(k(0x1c9))/0x8)+parseInt(k(0x1e1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x616c1));function a95c(){const q=['create','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','template','test','2SddXtb','.app-tests.','collection','where','dir','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','none','appPathPrefix','collections','injectAtEndOfFile','2561375zODFsL','(((.+)+)+)+$','1033827TlKFUK','resourceName','withValue','tsx','imports','startup','fsi','6531714JqJVvV','33299DWxXnc','error','getProjectConfig','\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','collection/collection.js','collection/tests.js','858636zJaXAL','checkMeteorPackage','maka:check','mongo','engines','col','installMeteorPackage','apply','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','notice','toString','373181CCNynG','4409700yirCGZ','maka\x20g:collection\x20todos','import\x20\x27./collections','pathFromApp','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','584UkYKLS'];a95c=function(){return q;};return a95c();}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a95d;if(c){const e=c[l(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const m=a95d;return a95a[m(0x1f2)]()['search'](m(0x1d9))[m(0x1f2)]()['constructor'](a95a)['search']('(((.+)+)+)+$');});a95a();import{paramCase,pascalCase}from'change-case';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a95n(0x1ca)]({'name':a95n(0x1d0),'aliases':[a95n(0x1ed)],'usage':a95n(0x1c8),'checkWhere':!![],'shortDesc':a95n(0x1cb),'validOpts':[a95n(0x1d2),a95n(0x1d1)],'description':a95n(0x1e5),'examples':[a95n(0x1f5)]},async function(a,b){const o=a95n;try{const c=this['fsi'][o(0x1c7)]({}),d=this[o(0x1e0)][o(0x1e4)]();this[o(0x1e0)][o(0x1dc)](d,async()=>{const p=o,f=paramCase(b[p(0x1db)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x1d1)],'test':d[p(0x1ec)]['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x1dd)&&(h='ts');!this[p(0x1e0)][p(0x1e9)](p(0x1eb))&&(Log[p(0x1f1)](p(0x1d3)),await this[p(0x1e0)][p(0x1ee)](p(0x1eb),{'cwd':c}));!this[p(0x1e0)][p(0x1e9)](p(0x1ea))&&(Log[p(0x1f1)](p(0x1f0)),await this[p(0x1e0)][p(0x1ee)]('maka:check',{'cwd':c}));this[p(0x1e0)]['template']({'srcPath':p(0x1e6),'destPath':this[p(0x1e0)]['pathFromApp']({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+'.'+h]}),'context':g,'config':d});d[p(0x1ec)][p(0x1cd)]!==p(0x1d4)&&this['fsi'][p(0x1cc)]({'srcPath':p(0x1e7),'destPath':this['fsi'][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],p(0x1d6),b[p(0x1d2)],f+p(0x1cf)+h]}),'context':g,'config':d});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x1e0)][p(0x1c7)]({'pathParts':[p(0x1de),p(0x1df),b[p(0x1d5)],'index.'+d['engines']['js']]});this[p(0x1e0)][p(0x1d7)]({'filePath':j,'content':p(0x1c6)+i+f+'\x27;'});});}catch(f){Log[o(0x1e3)](f);}});
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);}});