@maka/maka-cli 4.5.33 → 4.5.35

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 (138) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/build/_index.js +1 -1
  20. package/bundle/obf/src/commands/build/build.js +1 -1
  21. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/create.js +1 -1
  23. package/bundle/obf/src/commands/debug.js +1 -1
  24. package/bundle/obf/src/commands/deploy.js +1 -1
  25. package/bundle/obf/src/commands/game/_index.js +1 -1
  26. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/play.command.js +1 -1
  28. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  30. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  31. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  32. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  33. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  65. package/bundle/obf/src/commands/generate.js +1 -1
  66. package/bundle/obf/src/commands/get/_index.js +1 -1
  67. package/bundle/obf/src/commands/get/get.command.js +1 -1
  68. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/help.js +1 -1
  72. package/bundle/obf/src/commands/jsdoc.js +1 -1
  73. package/bundle/obf/src/commands/lint.js +1 -1
  74. package/bundle/obf/src/commands/login.js +1 -1
  75. package/bundle/obf/src/commands/logout.js +1 -1
  76. package/bundle/obf/src/commands/logs.js +1 -1
  77. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  78. package/bundle/obf/src/commands/murder.js +1 -1
  79. package/bundle/obf/src/commands/proxy.js +1 -1
  80. package/bundle/obf/src/commands/reconfig.js +1 -1
  81. package/bundle/obf/src/commands/run/_index.js +1 -1
  82. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  83. package/bundle/obf/src/commands/run/run.command.js +1 -1
  84. package/bundle/obf/src/commands/set/_index.js +1 -1
  85. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/set/set.command.js +1 -1
  88. package/bundle/obf/src/commands/ssh.js +1 -1
  89. package/bundle/obf/src/commands/ssl.js +1 -1
  90. package/bundle/obf/src/commands/test.js +1 -1
  91. package/bundle/obf/src/commands/version.js +1 -1
  92. package/bundle/obf/src/error.js +1 -1
  93. package/bundle/obf/src/exec.js +1 -1
  94. package/bundle/obf/src/generator.js +1 -1
  95. package/bundle/obf/src/generators/_index.js +1 -1
  96. package/bundle/obf/src/generators/api.js +1 -1
  97. package/bundle/obf/src/generators/collection.js +1 -1
  98. package/bundle/obf/src/generators/component.js +1 -1
  99. package/bundle/obf/src/generators/config.js +1 -1
  100. package/bundle/obf/src/generators/dbc.js +1 -1
  101. package/bundle/obf/src/generators/dockerfile.js +1 -1
  102. package/bundle/obf/src/generators/hook.js +1 -1
  103. package/bundle/obf/src/generators/kit.js +1 -1
  104. package/bundle/obf/src/generators/layout.js +1 -1
  105. package/bundle/obf/src/generators/maka.gen.js +1 -1
  106. package/bundle/obf/src/generators/methods.js +1 -1
  107. package/bundle/obf/src/generators/package.js +1 -1
  108. package/bundle/obf/src/generators/page.js +1 -1
  109. package/bundle/obf/src/generators/publish.js +1 -1
  110. package/bundle/obf/src/generators/route.js +1 -1
  111. package/bundle/obf/src/generators/service.js +1 -1
  112. package/bundle/obf/src/generators/services/_index.js +1 -1
  113. package/bundle/obf/src/generators/services/openssl.js +1 -1
  114. package/bundle/obf/src/generators/services/translation.js +1 -1
  115. package/bundle/obf/src/maka.js +1 -1
  116. package/bundle/obf/src/templates/meteor/app/server/main.js +4 -1
  117. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +4 -1
  118. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +4 -1
  119. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +4 -1
  120. package/bundle/obf/src/templates/meteor/config/settings.json +2 -1
  121. package/bundle/obf/src/tool.js +1 -1
  122. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  123. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  124. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  125. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  126. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  127. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  128. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  129. package/bundle/obf/src/tools/https/https.class.js +1 -1
  130. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  131. package/bundle/obf/src/tools/log/log.class.js +1 -1
  132. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  133. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  134. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  135. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  136. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  137. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  138. package/package.json +1 -1
@@ -1 +1 @@
1
- const a79q=a79d;(function(a,b){const n=a79d,c=a();while(!![]){try{const d=-parseInt(n(0x125))/0x1*(parseInt(n(0x11a))/0x2)+-parseInt(n(0x114))/0x3+-parseInt(n(0x111))/0x4*(-parseInt(n(0x12d))/0x5)+-parseInt(n(0x10c))/0x6+-parseInt(n(0x116))/0x7+-parseInt(n(0x10a))/0x8+parseInt(n(0x113))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x31657));function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x108;let f=c[d];return f;},a79d(a,b);}const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a79d;if(c){const e=c[o(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const p=a79d;return a79a['toString']()[p(0x124)](p(0x12c))['toString']()[p(0x11c)](a79a)[p(0x124)](p(0x12c));});a79a();function a79c(){const s=['66520pcPQHX','sshSync','env','ping','Checking\x20remote\x20host\x20availability','exit','existsSync','(((.+)+)+)+$','238470PGjnXM','~/pm2.config.js','getConfigPath','error','1765480SxIlJG','Reconfigure\x20your\x20deployed\x20applications','1261638bRrupe','join','scp','create','parse','28ikSOnu','reconfig','8425008ZjRuRS','503796WZKvZR','pm2\x20delete\x20all','1418711szlGwk','notice','apply','toString','8gdTVvm','ses.json','constructor','pm2.config.js','maka\x20reconfig\x20--env\x20prod','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','settings.json','maka\x20reconfig','fsi','success','search'];a79c=function(){return s;};return a79c();}import a79e from'fs';import a79f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a79q(0x10f)]({'name':a79q(0x112),'validOpts':[''],'requiredOpts':[a79q(0x127)],'mustBeInMakaProject':!![],'usage':a79q(0x121),'shortDesc':a79q(0x10b),'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':[a79q(0x11e)]},async function(a,b){const r=a79q;try{const c=this[r(0x122)][r(0x108)](b[r(0x127)]),d=a79f['join'](c,'ssh.json'),f=a79e['readFileSync'](d)[r(0x119)](),g=JSON[r(0x110)](f);Object['assign'](g,{'env':c}),Log[r(0x117)](r(0x129));const h=SSH[r(0x128)]('uname\x20-a',g);if(!h)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(h)Log[r(0x123)]('Remote\x20host\x20connection\x20successful');const i=a79f[r(0x10d)](c,'_keys',r(0x11b));if(a79e[r(0x12b)](i)){const l={'source':i,'dest':'~/ses.json','verbose':!![]};SSH[r(0x10e)](l,{...g});}const j=a79f[r(0x10d)](c,r(0x11d));SSH['scp']({'source':j,'dest':r(0x12e),'verbose':!![]},{...g});const k=a79f[r(0x10d)](c,r(0x120));SSH[r(0x10e)]({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH[r(0x126)](r(0x115),g),await SSH['ssh'](r(0x11f),{...g},{'verbose':!![]});}catch(m){console[r(0x109)](m),process[r(0x12a)](0x0);}});
1
+ const a79q=a79d;(function(a,b){const n=a79d,c=a();while(!![]){try{const d=parseInt(n(0x1c6))/0x1*(parseInt(n(0x1d4))/0x2)+parseInt(n(0x1ad))/0x3+parseInt(n(0x1ca))/0x4*(parseInt(n(0x1b7))/0x5)+parseInt(n(0x1b0))/0x6*(-parseInt(n(0x1ae))/0x7)+parseInt(n(0x1c9))/0x8+-parseInt(n(0x1bb))/0x9+-parseInt(n(0x1be))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x1a825));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a79d;if(c){const e=c[o(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const p=a79d;return a79a[p(0x1d7)]()[p(0x1d2)](p(0x1b2))['toString']()[p(0x1b4)](a79a)[p(0x1d2)]('(((.+)+)+)+$');});a79a();import a79e from'fs';import a79f from'path';import{Command}from'../command.js';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a79d(a,b);}import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';function a79c(){const s=['1296424YpdcuK','100MYoFAm','apply','ssh','ses.json','notice','success','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','search','join','2LDZDRN','Reconfigure\x20your\x20deployed\x20applications','uname\x20-a','toString','create','error','428856HrNPMs','147pKXmRJ','assign','49122MYekjN','settings.json','(((.+)+)+)+$','parse','constructor','scp','pm2\x20delete\x20all','12665TjJzoI','~/ses.json','existsSync','getConfigPath','749403gIqdFy','readFileSync','maka\x20reconfig\x20--env\x20prod','704720wvYAoR','env','ssh.json','~/pm2.config.js','Remote\x20host\x20connection\x20successful','pm2.config.js','fsi','ping','65917nFVzCR','Checking\x20remote\x20host\x20availability','maka\x20reconfig'];a79c=function(){return s;};return a79c();}Command[a79q(0x1ab)]({'name':a79q(0x1d1),'validOpts':[''],'requiredOpts':[a79q(0x1bf)],'mustBeInMakaProject':!![],'usage':a79q(0x1c8),'shortDesc':a79q(0x1d5),'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':[a79q(0x1bd)]},async function(a,b){const r=a79q;try{const c=this[r(0x1c4)][r(0x1ba)](b[r(0x1bf)]),d=a79f['join'](c,r(0x1c0)),f=a79e[r(0x1bc)](d)[r(0x1d7)](),g=JSON[r(0x1b3)](f);Object[r(0x1af)](g,{'env':c}),Log[r(0x1ce)](r(0x1c7));const h=SSH[r(0x1c5)](r(0x1d6),g);if(!h)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(h)Log[r(0x1cf)](r(0x1c2));const i=a79f[r(0x1d3)](c,'_keys',r(0x1cd));if(a79e[r(0x1b9)](i)){const l={'source':i,'dest':r(0x1b8),'verbose':!![]};SSH[r(0x1b5)](l,{...g});}const j=a79f[r(0x1d3)](c,r(0x1c3));SSH[r(0x1b5)]({'source':j,'dest':r(0x1c1),'verbose':!![]},{...g});const k=a79f[r(0x1d3)](c,r(0x1b1));SSH[r(0x1b5)]({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH['sshSync'](r(0x1b6),g),await SSH[r(0x1cc)](r(0x1d0),{...g},{'verbose':!![]});}catch(m){console[r(0x1ac)](m),process['exit'](0x0);}});
@@ -1 +1 @@
1
- function a80d(a,b){var c=a80c();return a80d=function(d,e){d=d-0x15a;var f=c[d];return f;},a80d(a,b);}(function(a,b){var f=a80d,c=a();while(!![]){try{var d=parseInt(f(0x15b))/0x1+parseInt(f(0x162))/0x2+-parseInt(f(0x15f))/0x3+-parseInt(f(0x15d))/0x4*(parseInt(f(0x160))/0x5)+parseInt(f(0x15c))/0x6*(parseInt(f(0x165))/0x7)+parseInt(f(0x164))/0x8+-parseInt(f(0x161))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x41386));var a80b=(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;};}()),a80a=a80b(this,function(){var g=a80d;return a80a['toString']()['search'](g(0x163))['toString']()[g(0x15e)](a80a)[g(0x15a)]('(((.+)+)+)+$');});function a80c(){var h=['4RMakFU','constructor','260502PgCxtl','1932935PgHtRR','3440574VfrjiU','936532qPqUjj','(((.+)+)+)+$','284888BRtuGj','14Xslkpx','search','228786MSiLgK','1170558upvpmf'];a80c=function(){return h;};return a80c();}a80a();import'./run.command.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a80d,c=a();while(!![]){try{var d=-parseInt(f(0x1b5))/0x1*(-parseInt(f(0x1b0))/0x2)+parseInt(f(0x1b3))/0x3+parseInt(f(0x1b4))/0x4+-parseInt(f(0x1ab))/0x5*(-parseInt(f(0x1af))/0x6)+-parseInt(f(0x1ae))/0x7+-parseInt(f(0x1b2))/0x8+-parseInt(f(0x1b6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x7ff6b));var a80b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a80d;if(c){var e=c[g(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){var h=a80d;return a80a[h(0x1ad)]()['search'](h(0x1b1))[h(0x1ad)]()[h(0x1ac)](a80a)[h(0x1aa)](h(0x1b1));});a80a();function a80d(a,b){var c=a80c();return a80d=function(d,e){d=d-0x1aa;var f=c[d];return f;},a80d(a,b);}function a80c(){var i=['460682lnShuK','(((.+)+)+)+$','4907272aJNxeX','2902443etLaLb','3392044MMrzLv','1iQJumX','8544564jVpfeW','apply','search','3266045UskVMP','constructor','toString','4284686IJliKq','6cLgZxv'];a80c=function(){return i;};return a80c();}import'./run.command.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a81l=a81d;(function(a,b){const i=a81d,c=a();while(!![]){try{const d=-parseInt(i(0x95))/0x1*(-parseInt(i(0x8b))/0x2)+parseInt(i(0x90))/0x3+parseInt(i(0x84))/0x4*(-parseInt(i(0x8c))/0x5)+-parseInt(i(0x80))/0x6*(-parseInt(i(0x7f))/0x7)+parseInt(i(0x87))/0x8*(-parseInt(i(0x82))/0x9)+-parseInt(i(0x86))/0xa+-parseInt(i(0x94))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x7156f));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a81d;if(c){const e=c[j(0x89)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const k=a81d;return a81a['toString']()['search']('(((.+)+)+)+$')[k(0x7c)]()[k(0x81)](a81a)[k(0x7a)](k(0x8e));});a81a();import a81e from'./run.command.js';import{execSync}from'child_process';import a81f from'path';import a81g from'fs';import{Log}from'../../tools/log/log.class.js';function a81c(){const n=['2238738ImItWY','PM2\x20Config\x20File:\x20','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','exit','13761605ZIKILI','7TIzWyq','docker','\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','appName','search','join','toString','create','inherit','5643743YFMDQD','6EuNxpr','constructor','131481sYriKs','createFile','935196OxCkia','notice','1598950SSbkby','40DWmSBc','pm2.config.js','apply','existsSync','179868yEghFp','5iCHRVB','fsi','(((.+)+)+)+$','templateContent'];a81c=function(){return n;};return a81c();}import{Command}from'../../command.js';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x78;let f=c[d];return f;},a81d(a,b);}import{paramCase}from'change-case';Command[a81l(0x7d)]({'name':a81l(0x96),'aliases':['d'],'shortDesc':a81l(0x92),'description':a81l(0x78),'usage':'maka\x20run\x20docker','validOpts':['']},async function(){const m=a81l;try{const a=this[m(0x8d)]['getProjectConfig'](),b=this[m(0x8d)]['getConfigPath'](m(0x96)),c=a81f['join'](b,'docker-compose.yaml'),d=a81f[m(0x7b)](b,m(0x88));Log['notice'](m(0x91)+d),Log[m(0x85)]('Docker\x20Compose\x20Path:\x20'+c);if(!a81g[m(0x8a)](c)){const f={'app':a[m(0x79)],'appFileCase':paramCase(a[m(0x79)])},g=this[m(0x8d)][m(0x8f)]({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this[m(0x8d)][m(0x83)]({'filePath':c,'data':g});}execSync('docker-compose\x20--project-directory\x20'+b+'\x20up\x20--remove-orphans',{'stdio':m(0x7e)});}catch(h){process[m(0x93)](0x1);}},a81e);
1
+ function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0xe8;let f=c[d];return f;},a81d(a,b);}const a81l=a81d;(function(a,b){const i=a81d,c=a();while(!![]){try{const d=-parseInt(i(0xf7))/0x1+-parseInt(i(0xeb))/0x2*(-parseInt(i(0xfb))/0x3)+parseInt(i(0x103))/0x4+-parseInt(i(0xf2))/0x5*(-parseInt(i(0xfe))/0x6)+parseInt(i(0x100))/0x7+-parseInt(i(0xfa))/0x8+-parseInt(i(0x101))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xd6369));function a81c(){const n=['docker-compose.yaml','docker-compose\x20--project-directory\x20','search','createFile','61855weXUaP','PM2\x20Config\x20File:\x20','templateContent','exit','notice','1136172XZfVJb','existsSync','(((.+)+)+)+$','8464232JczLan','1225713JPOjtn','join','apply','654OeIhbl','getConfigPath','11686416DWBJUS','14311683RTpSoR','maka\x20run\x20docker','4941228vrEMcb','appName','create','fsi','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','getProjectConfig','2vuBZaR','config/docker-compose.yaml','toString'];a81c=function(){return n;};return a81c();}const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a81d;if(c){const e=c[j(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const k=a81d;return a81a[k(0xed)]()[k(0xf0)](k(0xf9))[k(0xed)]()['constructor'](a81a)[k(0xf0)](k(0xf9));});a81a();import a81e from'./run.command.js';import{execSync}from'child_process';import a81f from'path';import a81g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a81l(0x105)]({'name':'docker','aliases':['d'],'shortDesc':a81l(0xe9),'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':a81l(0x102),'validOpts':['']},async function(){const m=a81l;try{const a=this['fsi'][m(0xea)](),b=this[m(0xe8)][m(0xff)]('docker'),c=a81f[m(0xfc)](b,m(0xee)),d=a81f[m(0xfc)](b,'pm2.config.js');Log[m(0xf6)](m(0xf3)+d),Log[m(0xf6)]('Docker\x20Compose\x20Path:\x20'+c);if(!a81g[m(0xf8)](c)){const f={'app':a[m(0x104)],'appFileCase':paramCase(a[m(0x104)])},g=this[m(0xe8)][m(0xf4)]({'srcPath':m(0xec),'context':f})+'\x0a';this[m(0xe8)][m(0xf1)]({'filePath':c,'data':g});}execSync(m(0xef)+b+'\x20up\x20--remove-orphans',{'stdio':'inherit'});}catch(h){process[m(0xf5)](0x1);}},a81e);
@@ -1 +1 @@
1
- const a82t=a82d;function a82c(){const w=['invokeMeteorCommand','3542bToJpJ','search','Node\x20Env\x20Config:\x20','local','isFile','notice','.meteor','slice','1818FXFsxl','13648280amLtrV','production','--settings','33134dJpYNc','2062875ydaMlr','error','findProjectDirectory','--production','create','splice','9mKMQzr','development','settings.json','argv','3291720gFpCCw','forEach','getConfigPath','exclude-archs','openSync','extraPackages','settings','exit','mobile-server','4AYoEMl','cordova-build','push','warn','toString','--env','isDirectory','concat','config','run','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)','ios','port','fsi','filter','env','allowIncompatibleUpdate','(((.+)+)+)+$','constructor','2373672iYvkxJ','Run\x20your\x20Meteor\x20application','runSubCommand','split','compareMakaToLatest','join','1736925sKRFkE','findSubCommand','Meteor\x20Settings:\x20'];a82c=function(){return w;};return a82c();}function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x155;let f=c[d];return f;},a82d(a,b);}(function(a,b){const q=a82d,c=a();while(!![]){try{const d=parseInt(q(0x166))/0x1*(-parseInt(q(0x17a))/0x2)+parseInt(q(0x167))/0x3+parseInt(q(0x18d))/0x4+parseInt(q(0x156))/0x5+parseInt(q(0x162))/0x6*(-parseInt(q(0x15a))/0x7)+parseInt(q(0x171))/0x8*(parseInt(q(0x16d))/0x9)+-parseInt(q(0x163))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x6f337));const a82b=(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;};}()),a82a=a82b(this,function(){const r=a82d;return a82a['toString']()[r(0x15b)](r(0x18b))[r(0x17e)]()[r(0x18c)](a82a)['search'](r(0x18b));});a82a();import a82e from'path';import a82f from'fs';import a82g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const s=a82d;a82f[s(0x175)](a,'r'),a82g[s(0x182)]({'path':a});},Run=Command[a82t(0x16b)]({'name':a82t(0x183),'mustBeInMakaProject':!![],'shortDesc':a82t(0x18e),'description':'\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.','validOpts':[a82t(0x189),'docker','r','rawLogs','p',a82t(0x186),'i','inspect','m','mobileServer','v','verbose',a82t(0x18a),a82t(0x176),'x',a82t(0x174),a82t(0x164)]},async function(a,b){const u=a82t;try{const c=a[0x0],d=this[u(0x157)](c);d&&this[u(0x18f)](c,a,b);if(c===u(0x185)){const m=this['fsi'][u(0x169)](),n=a82e[u(0x155)](m,'app',u(0x160),u(0x15d),u(0x17b));this[u(0x187)][u(0x180)](n)&&await rimraf(n);}if(b[u(0x179)]&&b[u(0x179)]===!![]||b['m']&&b['m']===!![])throw u(0x184);await this[u(0x187)][u(0x191)]();const f=b[u(0x189)]?b[u(0x189)]:u(0x16e),g=this['fsi'][u(0x173)](f),h=a82e[u(0x155)](g,'process.env');let i=a82e[u(0x155)](g,u(0x16f));b[u(0x177)]?i=b['settings']:i=a82e[u(0x155)](g,u(0x16f));if(this['fsi'][u(0x15e)](h)&&!b['docker'])Log['notice'](u(0x15c)+h),syncSource(h);else!b['docker']&&Log[u(0x17d)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+h);this[u(0x187)]['isFile'](i)?(Log[u(0x15f)](u(0x158)+i),a=a['concat']([u(0x165),i])):Log[u(0x17d)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+i);const j=g[u(0x190)](a82e['sep']),k=j[j['length']-0x1];k===u(0x164)&&a[u(0x17c)](u(0x16a));const l=process[u(0x170)][u(0x161)](0x2)[u(0x188)](o=>o!==u(0x183))[u(0x188)](o=>o!==a[0x0]);l[u(0x172)]((o,p)=>{const v=u;o===v(0x17f)&&l[v(0x16c)](p,0x2),o==='-e'&&l['splice'](p,0x2);}),this[u(0x187)][u(0x159)](u(0x183),a[u(0x181)](l));}catch(o){console[u(0x168)](o),process[u(0x178)](0x1);}});export default Run;
1
+ const a82u=a82d;(function(a,b){const q=a82d,c=a();while(!![]){try{const d=-parseInt(q(0x1a3))/0x1+-parseInt(q(0x1bf))/0x2*(parseInt(q(0x1a7))/0x3)+parseInt(q(0x1b6))/0x4*(parseInt(q(0x1ac))/0x5)+parseInt(q(0x19c))/0x6+parseInt(q(0x1b7))/0x7*(-parseInt(q(0x1ca))/0x8)+-parseInt(q(0x1d5))/0x9*(-parseInt(q(0x1c1))/0xa)+-parseInt(q(0x1c9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x2e655));function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x19b;let f=c[d];return f;},a82d(a,b);}const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a82d;if(c){const e=c[r(0x1d6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const s=a82d;return a82a['toString']()[s(0x1b5)](s(0x1d0))[s(0x1ae)]()[s(0x19d)](a82a)[s(0x1b5)](s(0x1d0));});a82a();function a82c(){const x=['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)','production','settings.json','18HVplVf','runSubCommand','warn','compareMakaToLatest','exit','835nHVAPR','join','toString','findProjectDirectory','openSync','--settings','fsi','local','process.env','search','1672jDTaGX','14qfxxJx','env','--production','port','findSubCommand','concat','slice','Node\x20Env\x20Config:\x20','50992Cwsrrk','verbose','863860CiAqOK','app','isFile','ios','sep','getConfigPath','forEach','splice','1515272jRUDXe','311512fbJugG','run','notice','error','Cannot\x20find\x20Node\x20Environment\x20File:\x20','isDirectory','(((.+)+)+)+$','mobile-server','config','cordova-build','length','27iautAr','apply','extraPackages','1911360sgAWYW','constructor','push','filter','development','exclude-archs','settings','88881HUrMIb'];a82c=function(){return x;};return a82c();}import a82e from'path';import a82f from'fs';import a82g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const t=a82d;a82f[t(0x1b0)](a,'r'),a82g[t(0x1d2)]({'path':a});},Run=Command['create']({'name':a82u(0x1cb),'mustBeInMakaProject':!![],'shortDesc':'Run\x20your\x20Meteor\x20application','description':'\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.','validOpts':[a82u(0x1b8),'docker','r','rawLogs','p',a82u(0x1ba),'i','inspect','m','mobileServer','v',a82u(0x1c0),'allowIncompatibleUpdate',a82u(0x19b),'x',a82u(0x1a1),'production']},async function(a,b){const v=a82u;try{const c=a[0x0],d=this[v(0x1bb)](c);d&&this[v(0x1a8)](c,a,b);if(c===v(0x1c4)){const m=this[v(0x1b2)][v(0x1af)](),n=a82e[v(0x1ad)](m,v(0x1c2),'.meteor',v(0x1b3),v(0x1d3));this['fsi'][v(0x1cf)](n)&&await rimraf(n);}if(b['mobile-server']&&b[v(0x1d1)]===!![]||b['m']&&b['m']===!![])throw v(0x1a4);await this[v(0x1b2)][v(0x1aa)]();const f=b[v(0x1b8)]?b[v(0x1b8)]:v(0x1a0),g=this['fsi'][v(0x1c6)](f),h=a82e[v(0x1ad)](g,v(0x1b4));let i=a82e[v(0x1ad)](g,'settings.json');b[v(0x1a2)]?i=b['settings']:i=a82e[v(0x1ad)](g,v(0x1a6));if(this['fsi']['isFile'](h)&&!b['docker'])Log[v(0x1cc)](v(0x1be)+h),syncSource(h);else!b['docker']&&Log[v(0x1a9)](v(0x1ce)+h);this[v(0x1b2)][v(0x1c3)](i)?(Log['notice']('Meteor\x20Settings:\x20'+i),a=a[v(0x1bc)]([v(0x1b1),i])):Log[v(0x1a9)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+i);const j=g['split'](a82e[v(0x1c5)]),k=j[j[v(0x1d4)]-0x1];k===v(0x1a5)&&a[v(0x19e)](v(0x1b9));const l=process['argv'][v(0x1bd)](0x2)[v(0x19f)](o=>o!==v(0x1cb))['filter'](o=>o!==a[0x0]);l[v(0x1c7)]((o,p)=>{const w=v;o==='--env'&&l[w(0x1c8)](p,0x2),o==='-e'&&l[w(0x1c8)](p,0x2);}),this[v(0x1b2)]['invokeMeteorCommand'](v(0x1cb),a[v(0x1bc)](l));}catch(o){console[v(0x1cd)](o),process[v(0x1ab)](0x1);}});export default Run;
@@ -1 +1 @@
1
- function a83c(){var i=['1910470jUbnLD','search','constructor','63wSBApc','toString','7501495UIURPW','7JEkJbm','(((.+)+)+)+$','8394864GhimLt','479876OzCDEe','1468TMdzEn','18MCMfxv','10057640GtboHj','apply','677ZGpZXm','9326284GoLJPd'];a83c=function(){return i;};return a83c();}(function(a,b){var f=a83d,c=a();while(!![]){try{var d=-parseInt(f(0x1bf))/0x1*(parseInt(f(0x1bb))/0x2)+-parseInt(f(0x1bc))/0x3*(-parseInt(f(0x1ba))/0x4)+-parseInt(f(0x1c6))/0x5+-parseInt(f(0x1b9))/0x6+-parseInt(f(0x1b7))/0x7*(-parseInt(f(0x1bd))/0x8)+-parseInt(f(0x1c4))/0x9*(-parseInt(f(0x1c1))/0xa)+parseInt(f(0x1c0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xbaf87));var a83b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a83d;if(c){var e=c[g(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){var h=a83d;return a83a['toString']()[h(0x1c2)](h(0x1b8))[h(0x1c5)]()[h(0x1c3)](a83a)[h(0x1c2)]('(((.+)+)+)+$');});a83a();import'./set.command.js';function a83d(a,b){var c=a83c();return a83d=function(d,e){d=d-0x1b7;var f=c[d];return f;},a83d(a,b);}import'./global.sub.cmd.js';import'./local.sub.cmd.js';
1
+ (function(a,b){var f=a83d,c=a();while(!![]){try{var d=parseInt(f(0x1ce))/0x1+-parseInt(f(0x1cc))/0x2*(-parseInt(f(0x1cb))/0x3)+-parseInt(f(0x1d0))/0x4+parseInt(f(0x1c2))/0x5+parseInt(f(0x1c3))/0x6*(-parseInt(f(0x1ca))/0x7)+-parseInt(f(0x1c5))/0x8+parseInt(f(0x1c4))/0x9*(parseInt(f(0x1c9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x5356e));var a83b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a83d;if(c){var e=c[g(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){var h=a83d;return a83a[h(0x1c7)]()['search'](h(0x1cf))['toString']()[h(0x1c6)](a83a)[h(0x1cd)](h(0x1cf));});a83a();import'./set.command.js';import'./global.sub.cmd.js';function a83d(a,b){var c=a83c();return a83d=function(d,e){d=d-0x1c2;var f=c[d];return f;},a83d(a,b);}function a83c(){var i=['apply','3850QoOLWb','362775qUIWuT','3zoEEuj','250440LVlfKE','search','414386BmNDzT','(((.+)+)+)+$','641000ECrLur','1396160yLleuk','18HkkVfC','4833JAgboM','2948000hkENwC','constructor','toString'];a83c=function(){return i;};return a83c();}import'./local.sub.cmd.js';
@@ -1 +1 @@
1
- const a84j=a84d;(function(a,b){const h=a84d,c=a();while(!![]){try{const d=parseInt(h(0x152))/0x1*(-parseInt(h(0x155))/0x2)+parseInt(h(0x153))/0x3*(-parseInt(h(0x159))/0x4)+parseInt(h(0x16a))/0x5*(parseInt(h(0x174))/0x6)+-parseInt(h(0x172))/0x7*(-parseInt(h(0x15e))/0x8)+parseInt(h(0x154))/0x9*(-parseInt(h(0x173))/0xa)+-parseInt(h(0x16f))/0xb+parseInt(h(0x157))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0xc5265));function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x152;let f=c[d];return f;},a84d(a,b);}const a84b=(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;};}()),a84a=a84b(this,function(){const i=a84d;return a84a['toString']()[i(0x169)](i(0x16e))['toString']()[i(0x15b)](a84a)[i(0x169)]('(((.+)+)+)+$');});function a84c(){const l=['fsi','constructor','workspace','maka\x20set:global-config\x20<args>','5668504CYQUuQ','maka\x20set:gc\x20--insecure\x20<path>','Set\x20OpenAI\x20Key:\x20','resolve','Could\x20not\x20find\x20directory','global-config','Set\x20CA\x20Cert\x20Path:\x20','error','success','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','disallowInsecure','search','155QGHUvj','isFile','cacert','Set\x20global\x20Maka-CLI\x20settings','(((.+)+)+)+$','4815701QILCPt','boolean','exit','7HDmqKO','240CjCEzR','122058ONAOZK','Set\x20allowInsecure:\x20','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','allowInsecure','openai','setGlobalConfig','1IXbIOk','27IAvVTZ','505188ZqSCPV','3093972Pcfnfw','maka\x20set:gc\x20--workspace\x20<path>','37708692pYpLoC','One\x20or\x20the\x20other\x20buddy','152052PoYGpH'];a84c=function(){return l;};return a84c();}a84a();import a84e from'path';import a84f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a84j(0x163),'usage':a84j(0x15d),'aliases':['gc'],'minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':[a84j(0x16c),a84j(0x177),'disallowInsecure',a84j(0x15c),'openai','help'],'shortDesc':a84j(0x16d),'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\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','examples':['maka\x20set:global-config\x20--cacert\x20<path>',a84j(0x15f),a84j(0x156)]},async function(a,b){const k=a84j;try{if(b[k(0x16c)]){if(this[k(0x15a)][k(0x16b)](b[k(0x16c)]))this[k(0x15a)][k(0x179)]({'cert':b[k(0x16c)]}),Log[k(0x166)](k(0x164)+b[k(0x16c)]);else{const c=typeof b[k(0x16c)]===k(0x170)?k(0x176):k(0x167)+b['cacert'];throw Log[k(0x165)](c);}}if(b[k(0x15c)]){const d=this['fsi']['isDirectory'](b['workspace']);if(d)this[k(0x15a)][k(0x179)]({'workspace':a84e[k(0x161)](b[k(0x15c)])}),Log[k(0x166)]('Set\x20workspace:\x20'+a84e['resolve'](b[k(0x15c)]));else throw Log['error'](k(0x162));}b[k(0x178)]&&(this[k(0x15a)]['setGlobalConfig']({'openai':b['openai']}),Log[k(0x166)](k(0x160)+b[k(0x178)]));if(b[k(0x177)]){if(b[k(0x177)]&&b[k(0x168)])throw Log[k(0x165)](k(0x158));let f=b['allowInsecure'];b[k(0x168)]&&(f=![]),this['fsi'][k(0x179)]({'allowInsecure':f}),Log['success'](k(0x175)+f);}process['exit'](0x0);}catch(g){console[k(0x165)](g),process[k(0x171)](0x0);}},a84f);
1
+ const a84j=a84d;(function(a,b){const h=a84d,c=a();while(!![]){try{const d=parseInt(h(0x160))/0x1*(parseInt(h(0x16c))/0x2)+parseInt(h(0x177))/0x3+-parseInt(h(0x15a))/0x4+parseInt(h(0x16b))/0x5*(parseInt(h(0x151))/0x6)+-parseInt(h(0x169))/0x7+parseInt(h(0x16d))/0x8*(parseInt(h(0x153))/0x9)+-parseInt(h(0x16e))/0xa*(parseInt(h(0x174))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0xd9fc2));const a84b=(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;};}()),a84a=a84b(this,function(){const i=a84d;return a84a[i(0x156)]()[i(0x173)](i(0x163))[i(0x156)]()[i(0x158)](a84a)[i(0x173)](i(0x163));});a84a();import a84e from'path';import a84f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x14e;let f=c[d];return f;},a84d(a,b);}function a84c(){const l=['1294563dkuddO','Set\x20global\x20Maka-CLI\x20settings','fsi','cacert','122250qIEcsl','Set\x20workspace:\x20','44190PMbGlx','exit','setGlobalConfig','toString','boolean','constructor','Set\x20allowInsecure:\x20','5711160QFFLjY','maka\x20set:global-config\x20--cacert\x20<path>','help','global-config','success','maka\x20set:global-config\x20<args>','325171lTYsLA','Could\x20not\x20find\x20directory','allowInsecure','(((.+)+)+)+$','isDirectory','\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','resolve','One\x20or\x20the\x20other\x20buddy','error','2809828kVvfdX','Set\x20OpenAI\x20Key:\x20','405QQuDgb','10orAgzC','2120eWPDFs','10JkGWNU','maka\x20set:gc\x20--workspace\x20<path>','Set\x20CA\x20Cert\x20Path:\x20','workspace','create','search','25155251abcYiQ','disallowInsecure','openai'];a84c=function(){return l;};return a84c();}Command[a84j(0x172)]({'name':a84j(0x15d),'usage':a84j(0x15f),'aliases':['gc'],'minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':[a84j(0x150),a84j(0x162),a84j(0x175),a84j(0x171),'openai',a84j(0x15c)],'shortDesc':a84j(0x14e),'description':a84j(0x165),'examples':[a84j(0x15b),'maka\x20set:gc\x20--insecure\x20<path>',a84j(0x16f)]},async function(a,b){const k=a84j;try{if(b[k(0x150)]){if(this[k(0x14f)]['isFile'](b[k(0x150)]))this[k(0x14f)]['setGlobalConfig']({'cert':b['cacert']}),Log[k(0x15e)](k(0x170)+b['cacert']);else{const c=typeof b[k(0x150)]===k(0x157)?'Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.':'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+b[k(0x150)];throw Log[k(0x168)](c);}}if(b[k(0x171)]){const d=this[k(0x14f)][k(0x164)](b[k(0x171)]);if(d)this['fsi'][k(0x155)]({'workspace':a84e[k(0x166)](b[k(0x171)])}),Log['success'](k(0x152)+a84e['resolve'](b[k(0x171)]));else throw Log[k(0x168)](k(0x161));}b[k(0x176)]&&(this[k(0x14f)][k(0x155)]({'openai':b[k(0x176)]}),Log[k(0x15e)](k(0x16a)+b[k(0x176)]));if(b[k(0x162)]){if(b[k(0x162)]&&b[k(0x175)])throw Log[k(0x168)](k(0x167));let f=b[k(0x162)];b[k(0x175)]&&(f=![]),this['fsi'][k(0x155)]({'allowInsecure':f}),Log[k(0x15e)](k(0x159)+f);}process[k(0x154)](0x0);}catch(g){console[k(0x168)](g),process[k(0x154)](0x0);}},a84f);
@@ -1 +1 @@
1
- var a85h=a85d;(function(a,b){var f=a85d,c=a();while(!![]){try{var d=parseInt(f(0x10f))/0x1+-parseInt(f(0x104))/0x2+parseInt(f(0x107))/0x3+-parseInt(f(0x109))/0x4*(parseInt(f(0x110))/0x5)+parseInt(f(0x101))/0x6*(-parseInt(f(0x10d))/0x7)+parseInt(f(0x10a))/0x8+parseInt(f(0x102))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xa7e3f));var a85b=(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;};}()),a85a=a85b(this,function(){var g=a85d;return a85a[g(0x111)]()[g(0xff)]('(((.+)+)+)+$')[g(0x111)]()[g(0x108)](a85a)[g(0xff)](g(0x10b));});a85a();import a85e from'./set.command.js';import{Command}from'../../command.js';function a85d(a,b){var c=a85c();return a85d=function(d,e){d=d-0xff;var f=c[d];return f;},a85d(a,b);}import{Log}from'../../tools/log/log.class.js';function a85c(){var j=['875340CtXuEB','constructor','7636fUxsjw','8874544yjvDda','(((.+)+)+)+$','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','14xiVhZd','notice','1057768GieoLh','1355deLOdd','toString','search','Sorry,\x20not\x20implemented\x20yet','1503696gwOQwK','3186405jtrGcJ','maka\x20set:lc\x20<opts>','2213322oeZwHm','maka\x20set:local-config\x20<opts>','create'];a85c=function(){return j;};return a85c();}Command[a85h(0x106)]({'name':'local-config','usage':a85h(0x105),'examples':[a85h(0x103),'maka\x20set:local-config\x20<opts>'],'aliases':['lc'],'mustBeInMakaProject':!![],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a85h(0x10c)},async function(){var i=a85h;Log[i(0x10e)](i(0x100));},a85e);
1
+ function a85d(a,b){var c=a85c();return a85d=function(d,e){d=d-0x12a;var f=c[d];return f;},a85d(a,b);}var a85i=a85d;(function(a,b){var f=a85d,c=a();while(!![]){try{var d=parseInt(f(0x134))/0x1+parseInt(f(0x139))/0x2+parseInt(f(0x12f))/0x3*(-parseInt(f(0x130))/0x4)+parseInt(f(0x12a))/0x5*(-parseInt(f(0x13d))/0x6)+-parseInt(f(0x13e))/0x7*(parseInt(f(0x132))/0x8)+-parseInt(f(0x137))/0x9+parseInt(f(0x13c))/0xa*(parseInt(f(0x12d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x27138));var a85b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a85d;if(c){var e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){var h=a85d;return a85a['toString']()[h(0x133)](h(0x12b))[h(0x136)]()[h(0x12c)](a85a)[h(0x133)]('(((.+)+)+)+$');});a85a();import a85e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a85i(0x135),'usage':'maka\x20set:local-config\x20<opts>','examples':['maka\x20set:lc\x20<opts>',a85i(0x12e)],'aliases':['lc'],'mustBeInMakaProject':!![],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a85i(0x13b)},async function(){var j=a85i;Log[j(0x131)](j(0x13a));},a85e);function a85c(){var k=['609872oouDWS','Sorry,\x20not\x20implemented\x20yet','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','11060tdTsmt','74712bjUCqh','53767ygUdMr','25afBebV','(((.+)+)+)+$','constructor','2123seFWKE','maka\x20set:local-config\x20<opts>','60szMppZ','41752mwxwsG','notice','88YtxDTt','search','225865qOyXeF','local-config','toString','2058228POcTDG','apply'];a85c=function(){return k;};return a85c();}
@@ -1 +1 @@
1
- const a86h=a86d;(function(a,b){const f=a86d,c=a();while(!![]){try{const d=-parseInt(f(0x8f))/0x1*(parseInt(f(0x90))/0x2)+parseInt(f(0x92))/0x3*(parseInt(f(0x8c))/0x4)+parseInt(f(0x91))/0x5*(-parseInt(f(0x8b))/0x6)+-parseInt(f(0x97))/0x7+-parseInt(f(0x85))/0x8*(parseInt(f(0x89))/0x9)+-parseInt(f(0x95))/0xa*(-parseInt(f(0x94))/0xb)+parseInt(f(0x8e))/0xc*(parseInt(f(0x86))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x9e7ee));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 g=a86d;return a86a[g(0x87)]()['search'](g(0x8d))[g(0x87)]()['constructor'](a86a)[g(0x8a)](g(0x8d));});a86a();import{Command}from'../../command.js';function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x85;let f=c[d];return f;},a86d(a,b);}import{UsageError}from'../../error.js';function a86c(){const j=['108hNYDPx','1639952KpqiKi','(((.+)+)+)+$','12asVFmk','179WPDaJX','13022STPOim','18015KEeLbx','9eQymyc','findSubCommand','11glpBni','7552990vjCSqc','set','4362505ajBFVK','44648ogOpvh','8758633lejSvc','toString','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','252ywqbnx','search'];a86c=function(){return j;};return a86c();}const SetCommand=Command['create']({'name':a86h(0x96),'usage':'maka\x20set:<sub-command>\x20<opts>','minArgLength':0x1,'shortDesc':a86h(0x88),'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 i=a86h,c=a[0x0];if(b['help'])throw new UsageError();const d=this[i(0x93)](c);d&&this['runSubCommand'](c,a,b);});export default SetCommand;
1
+ const a86h=a86d;(function(a,b){const f=a86d,c=a();while(!![]){try{const d=-parseInt(f(0x140))/0x1+parseInt(f(0x148))/0x2+parseInt(f(0x139))/0x3+-parseInt(f(0x143))/0x4+parseInt(f(0x14a))/0x5*(-parseInt(f(0x146))/0x6)+parseInt(f(0x147))/0x7*(parseInt(f(0x13d))/0x8)+parseInt(f(0x14b))/0x9*(-parseInt(f(0x145))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x42f86));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 g=a86d;return a86a[g(0x142)]()[g(0x13e)](g(0x141))['toString']()[g(0x138)](a86a)[g(0x13e)](g(0x141));});a86a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const SetCommand=Command[a86h(0x144)]({'name':a86h(0x13b),'usage':a86h(0x13a),'minArgLength':0x1,'shortDesc':a86h(0x13c),'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 i=a86h,c=a[0x0];if(b[i(0x149)])throw new UsageError();const d=this[i(0x13f)](c);d&&this['runSubCommand'](c,a,b);});function a86c(){const j=['699567zGJhnI','maka\x20set:<sub-command>\x20<opts>','set','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','3206680pwYrTS','search','findSubCommand','21742veBfTv','(((.+)+)+)+$','toString','111660PtkENX','create','5590MzDbuj','74412lJdTEB','7kIRCdB','380158tHFPaZ','help','180cTPzNw','864fAtLuR','constructor'];a86c=function(){return j;};return a86c();}function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x138;let f=c[d];return f;},a86d(a,b);}export default SetCommand;
@@ -1 +1 @@
1
- const a87m=a87d;(function(a,b){const j=a87d,c=a();while(!![]){try{const d=-parseInt(j(0x9d))/0x1*(parseInt(j(0xa6))/0x2)+-parseInt(j(0x9f))/0x3*(parseInt(j(0xa1))/0x4)+-parseInt(j(0x92))/0x5+-parseInt(j(0x93))/0x6+parseInt(j(0x97))/0x7*(parseInt(j(0x95))/0x8)+-parseInt(j(0x9e))/0x9+parseInt(j(0xa5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x7b39a));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a87d;if(c){const e=c[k(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const l=a87d;return a87a[l(0x90)]()[l(0x8a)](l(0x87))[l(0x90)]()['constructor'](a87a)[l(0x8a)](l(0x87));});a87a();import a87e from'fs';function a87c(){const o=['toString','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','4526775PhXMXf','2980566seqGZy','length','24664MBvNfk','parse','1113JCQhBj','assign','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','create','env','ssh.json','1UJZYbq','960012YETqwE','87leeYcW','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','57220NHcAUN','error','getConfigPath','ssh','20957640YHwOyp','315204TYLZhB','(((.+)+)+)+$','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','exit','search','sshSync','apply','join','readFileSync','fsi'];a87c=function(){return o;};return a87c();}import a87f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x87;let f=c[d];return f;},a87d(a,b);}Command[a87m(0x9a)]({'name':a87m(0xa4),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a87m(0x9b)],'validOpts':[a87m(0x9b),'v'],'shortDesc':a87m(0x91),'examples':['maka\x20ssh\x20--env\x20dev','maka\x20ssh\x20--env\x20staging','maka\x20ssh\x20--env\x20prod',a87m(0x99),a87m(0xa0),a87m(0x88)]},async function(a,b){const n=a87m;try{const c=this[n(0x8f)][n(0xa3)](b['env']);let d='';a[n(0x94)]>0x0&&(d=a[0x0]);const f=a87f[n(0x8d)](c,n(0x9c)),g=a87e[n(0x8e)](f)[n(0x90)](),h=JSON[n(0x96)](g);Object[n(0x98)](h,{'env':c}),SSH[n(0x8b)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[n(0xa2)](i),process[n(0x89)](0x0);}});
1
+ const a87m=a87d;function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x113;let f=c[d];return f;},a87d(a,b);}(function(a,b){const j=a87d,c=a();while(!![]){try{const d=parseInt(j(0x119))/0x1+-parseInt(j(0x115))/0x2+parseInt(j(0x12e))/0x3*(parseInt(j(0x11f))/0x4)+-parseInt(j(0x125))/0x5*(parseInt(j(0x12f))/0x6)+-parseInt(j(0x11b))/0x7*(parseInt(j(0x124))/0x8)+-parseInt(j(0x127))/0x9*(-parseInt(j(0x122))/0xa)+parseInt(j(0x130))/0xb*(parseInt(j(0x126))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xbed5c));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a87d;if(c){const e=c[k(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const l=a87d;return a87a[l(0x120)]()[l(0x129)](l(0x123))[l(0x120)]()['constructor'](a87a)[l(0x129)](l(0x123));});a87a();import a87e from'fs';function a87c(){const o=['maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','ssh.json','1472690eNQarI','maka\x20ssh\x20--env\x20staging','length','join','1017506DgyTqa','env','3081162BfByrD','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','ssh','apply','28Wmweon','toString','maka\x20ssh\x20--env\x20prod','4610JLKWEE','(((.+)+)+)+$','8ccXwJo','10155EoImMZ','2240340nxldss','12528siihbx','assign','search','exit','maka\x20ssh\x20<command>','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','error','148479gtXdkH','2898JsXmLX','55YhbZdq'];a87c=function(){return o;};return a87c();}import a87f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';Command['create']({'name':a87m(0x11d),'usage':a87m(0x12b),'mustBeInMakaProject':!![],'requiredOpts':[a87m(0x11a)],'validOpts':['env','v'],'shortDesc':a87m(0x12c),'examples':['maka\x20ssh\x20--env\x20dev',a87m(0x116),a87m(0x121),a87m(0x11c),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22',a87m(0x113)]},async function(a,b){const n=a87m;try{const c=this['fsi']['getConfigPath'](b[n(0x11a)]);let d='';a[n(0x117)]>0x0&&(d=a[0x0]);const f=a87f[n(0x118)](c,n(0x114)),g=a87e['readFileSync'](f)[n(0x120)](),h=JSON['parse'](g);Object[n(0x128)](h,{'env':c}),SSH['sshSync'](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[n(0x12d)](i),process[n(0x12a)](0x0);}});
@@ -1 +1 @@
1
- const a88y=a88d;(function(a,b){const v=a88d,c=a();while(!![]){try{const d=-parseInt(v(0x171))/0x1+-parseInt(v(0x17d))/0x2*(-parseInt(v(0x179))/0x3)+parseInt(v(0x17c))/0x4+-parseInt(v(0x182))/0x5*(parseInt(v(0x168))/0x6)+-parseInt(v(0x16e))/0x7*(-parseInt(v(0x16f))/0x8)+parseInt(v(0x176))/0x9*(parseInt(v(0x15e))/0xa)+-parseInt(v(0x172))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x23e39));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a88d;if(c){const e=c[w(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const x=a88d;return a88a[x(0x178)]()['search'](x(0x18d))[x(0x178)]()[x(0x189)](a88a)[x(0x17b)](x(0x18d));});function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x156;let f=c[d];return f;},a88d(a,b);}a88a();import a88e from'fs';import a88f from'path';function a88c(){const A=['231NLcOeL','59144FVdGLE','success','255947XBcwjM','981024hxJirK','domainNames','generate-ssc','ssl','9iDTfGG','apply','toString','258EEUAaQ','exit','search','1134884VFvAMW','1158DNikCi','genSSC','.csr','withSpinner','error','255nnvlQG','ssh','Please\x20provide\x20a\x20command.','email','[?]\x20Domains\x20to\x20register:\x20','appName','mkKeysDir','constructor','Verifying\x20Letsencrypt\x20configuration','maka\x20ssl\x20--env\x20dev\x20generate-csr','\x20--email\x20','(((.+)+)+)+$','Remote\x20host\x20connection\x20successful','notice','join','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','generate-csr','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','getProjectConfig','emailUpdate','getConfigPath','stringify','writeFileSync','Using\x20saved\x20letsencrypt\x20config','.key','Create\x20and\x20manage\x20your\x20SSL\x20operations.','fsi','parse','1907110tyungJ','/ssh.json','Email\x20to\x20use\x20for\x20auto-updates:\x20','existsSync','uname\x20-a','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','New\x20CSR\x20written\x20to\x20','start','ask','letsencrypt.json','32478VKWBlM','domains','readFileSync','Checking\x20remote\x20host\x20availability','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','sudo\x20snap\x20install\x20--classic\x20certbot'];a88c=function(){return A;};return a88c();}import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':a88y(0x175),'usage':'maka\x20ssl\x20[command]','validOpts':[a88y(0x169),a88y(0x185)],'requiredOpts':['env'],'shortDesc':a88y(0x15b),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a88y(0x18b),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a88y(0x16c)]},async function(a,b){const z=a88y,c=this['fsi'][z(0x194)](),d=this[z(0x15c)][z(0x156)](b['env']),f=this['fsi'][z(0x188)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0x192))SSL['genCSR']({'keyName':c[z(0x187)]+'.key','csrName':c['appName']+z(0x17f),'cwd':f});else{if(g===z(0x174)){if(!a88e[z(0x161)](a88f[z(0x190)](f,c['appName']+z(0x15a))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a88f[z(0x190)](f,c[z(0x187)]+z(0x15a));if(!a88e['existsSync'](a88f[z(0x190)](f,c[z(0x187)]+z(0x17f))))throw z(0x193)+a88f[z(0x190)](f,c[z(0x187)]+z(0x17f));SSL[z(0x17e)]({'keyName':c['appName']+z(0x15a),'crtName':c[z(0x187)]+'.crt','cwd':f}),Log['notice'](z(0x164)+f);}else{if(g==='letsencrypt'){let h=b[z(0x169)],i=b[z(0x185)];try{const p=a88e[z(0x16a)](a88f[z(0x190)](d,'letsencrypt.json'))[z(0x178)](),q=JSON[z(0x15d)](p);h=b[z(0x169)]?b[z(0x169)]:q[z(0x173)],i=b['email']?b['email']:q[z(0x195)],(!b[z(0x185)]||!b[z(0x169)])&&Log[z(0x18f)](z(0x159));}catch(r){}const j=JSON[z(0x15d)](a88e['readFileSync'](d+z(0x15f))[z(0x178)]());Object['assign'](j,{'env':d}),Log[z(0x18f)](z(0x16b));try{const s=SSH['ping'](z(0x162),j);if(!s)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(s)Log[z(0x170)](z(0x18e));}catch(t){Log['error'](t);return;}const k=Log[z(0x180)]();k[z(0x165)](z(0x18a)),SSH[z(0x183)](z(0x163),{...j}),SSH[z(0x183)](z(0x16d),{...j}),SSH[z(0x183)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...j}),k[z(0x170)]();const l=h?h:await Actions[z(0x166)](z(0x186)),m=i?i:await Actions[z(0x166)](z(0x160));SSH['ssh'](z(0x191)+l+z(0x18c)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x157)](n,null,0x2);a88e[z(0x158)](a88f[z(0x190)](d,z(0x167)),o);}else throw z(0x184);}}}catch(u){console[z(0x181)](u),process[z(0x17a)](0x0);}});
1
+ const a88y=a88d;(function(a,b){const v=a88d,c=a();while(!![]){try{const d=-parseInt(v(0x179))/0x1*(-parseInt(v(0x15a))/0x2)+-parseInt(v(0x15f))/0x3*(-parseInt(v(0x186))/0x4)+parseInt(v(0x147))/0x5*(-parseInt(v(0x155))/0x6)+parseInt(v(0x14b))/0x7+-parseInt(v(0x153))/0x8*(-parseInt(v(0x171))/0x9)+-parseInt(v(0x150))/0xa+parseInt(v(0x176))/0xb*(-parseInt(v(0x15e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x4322b));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a88d;if(c){const e=c[w(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const x=a88d;return a88a[x(0x14d)]()['search']('(((.+)+)+)+$')[x(0x14d)]()[x(0x14e)](a88a)[x(0x16b)](x(0x163));});function a88c(){const A=['32922jiaNsr','Remote\x20host\x20connection\x20successful','New\x20CSR\x20written\x20to\x20','\x20--email\x20','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','parse','readFileSync','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','apply','sudo\x20snap\x20install\x20--classic\x20certbot','error','generate-csr','getProjectConfig','1764284mmvapU','.csr','genSSC','23775jUpnCI','appName','Please\x20provide\x20a\x20command.','getConfigPath','914907WXHxca','[?]\x20Domains\x20to\x20register:\x20','toString','constructor','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','105290pvCqEA','Email\x20to\x20use\x20for\x20auto-updates:\x20','email','85464UnexmN','letsencrypt.json','78dWOWjW','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','mkKeysDir','emailUpdate','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','2FXfXHO','Verifying\x20Letsencrypt\x20configuration','exit','domains','3084FFGRFr','3RAbiHR','stringify','success','assign','(((.+)+)+)+$','writeFileSync','join','env','ssl','fsi','ssh','/ssh.json','search','create','.key','Create\x20and\x20manage\x20your\x20SSL\x20operations.','.crt','generate-ssc','342WsOJaW','start','notice','uname\x20-a','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','28391HyZLYi','existsSync','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process'];a88c=function(){return A;};return a88c();}a88a();import a88e from'fs';import a88f 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';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x145;let f=c[d];return f;},a88d(a,b);}Command[a88y(0x16c)]({'name':a88y(0x167),'usage':'maka\x20ssl\x20[command]','validOpts':[a88y(0x15d),'email'],'requiredOpts':[a88y(0x166)],'shortDesc':a88y(0x16e),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':['maka\x20ssl\x20--env\x20dev\x20generate-csr',a88y(0x175),a88y(0x178)]},async function(a,b){const z=a88y,c=this[z(0x168)][z(0x185)](),d=this[z(0x168)][z(0x14a)](b[z(0x166)]),f=this[z(0x168)][z(0x157)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0x184))SSL['genCSR']({'keyName':c['appName']+z(0x16d),'csrName':c[z(0x148)]+z(0x145),'cwd':f});else{if(g===z(0x170)){if(!a88e[z(0x177)](a88f[z(0x165)](f,c[z(0x148)]+'.key')))throw z(0x156)+a88f['join'](f,c[z(0x148)]+'.key');if(!a88e[z(0x177)](a88f[z(0x165)](f,c[z(0x148)]+z(0x145))))throw z(0x17d)+a88f[z(0x165)](f,c[z(0x148)]+z(0x145));SSL[z(0x146)]({'keyName':c['appName']+z(0x16d),'crtName':c[z(0x148)]+z(0x16f),'cwd':f}),Log[z(0x173)](z(0x17b)+f);}else{if(g==='letsencrypt'){let h=b[z(0x15d)],i=b[z(0x152)];try{const p=a88e[z(0x17f)](a88f['join'](d,z(0x154)))['toString'](),q=JSON[z(0x17e)](p);h=b[z(0x15d)]?b[z(0x15d)]:q['domainNames'],i=b[z(0x152)]?b['email']:q[z(0x158)],(!b[z(0x152)]||!b[z(0x15d)])&&Log[z(0x173)]('Using\x20saved\x20letsencrypt\x20config');}catch(r){}const j=JSON['parse'](a88e[z(0x17f)](d+z(0x16a))[z(0x14d)]());Object[z(0x162)](j,{'env':d}),Log[z(0x173)]('Checking\x20remote\x20host\x20availability');try{const s=SSH['ping'](z(0x174),j);if(!s)throw z(0x14f);if(s)Log[z(0x161)](z(0x17a));}catch(t){Log[z(0x183)](t);return;}const k=Log['withSpinner']();k[z(0x172)](z(0x15b)),SSH[z(0x169)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...j}),SSH[z(0x169)](z(0x182),{...j}),SSH['ssh'](z(0x180),{...j}),k[z(0x161)]();const l=h?h:await Actions['ask'](z(0x14c)),m=i?i:await Actions['ask'](z(0x151));SSH[z(0x169)](z(0x159)+l+z(0x17c)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x160)](n,null,0x2);a88e[z(0x164)](a88f[z(0x165)](d,'letsencrypt.json'),o);}else throw z(0x149);}}}catch(u){console[z(0x183)](u),process[z(0x15c)](0x0);}});
@@ -1 +1 @@
1
- const a89q=a89d;function a89c(){const t=['7505329SmLEpi','driver-package','process.env','driver','fsi','test','maka\x20test\x20<opts>','invokeMeteorCommand','concat','create','findProjectDirectory','packages','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','unit','--packages','--settings','--driver','once','utf8','notice','none','jasmine','testAppPath','777yCQzHq','config','join','test-packages','search','24BlqWII','13343zzANXP','--env','--full-app','Meteor\x20Settings:\x20','constructor','parse','(((.+)+)+)+$','driverPackage','splice','Node\x20Env\x20Config:\x20','engines','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','29574paaNyR','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','rawLogs','140248XpqJgl','slice','isFile','28957XMTwNN','meteortesting:mocha','113825EuFkPu','toString','readFileSync','env','apply','warn','2400mITong','inspect','forEach','mocha','251952OsPzWM','6CkuvSl','40sJsPrr','exit','603yGbwhT','--driver-package','getConfigPath'];a89c=function(){return t;};return a89c();}(function(a,b){const m=a89d,c=a();while(!![]){try{const d=-parseInt(m(0x9d))/0x1*(-parseInt(m(0xaa))/0x2)+parseInt(m(0xa9))/0x3*(parseInt(m(0xab))/0x4)+-parseInt(m(0x9f))/0x5+-parseInt(m(0x97))/0x6*(parseInt(m(0xc7))/0x7)+-parseInt(m(0x9a))/0x8*(parseInt(m(0xad))/0x9)+parseInt(m(0xa5))/0xa*(parseInt(m(0xcd))/0xb)+-parseInt(m(0xcc))/0xc*(-parseInt(m(0xb0))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x99544));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a89d;if(c){const e=c[n(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const o=a89d;return a89a[o(0xa0)]()[o(0xcb)](o(0xd3))['toString']()[o(0xd1)](a89a)[o(0xcb)](o(0xd3));});a89a();import a89e from'fs';function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0x95;let f=c[d];return f;},a89d(a,b);}import a89f from'path';import a89g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a89d;a89e['openSync'](a,'r'),a89g[p(0xc8)]({'path':a});};Command[a89q(0xb9)]({'name':a89q(0xb5),'mustBeInMakaProject':!![],'validOpts':[a89q(0xc1),a89q(0xbb),'driver',a89q(0xd4),a89q(0xbd),a89q(0xa2),a89q(0x99),'port',a89q(0xa6),a89q(0xc6)],'usage':a89q(0xb6),'shortDesc':a89q(0xbc),'examples':[]},function(a,b){const r=a89q;try{let c=this[r(0xb4)][r(0xaf)]('development');b[r(0xa2)]&&(c=this['fsi'][r(0xaf)](b['env']));(!b[r(0xbd)]||!!b['once'])&&(a=a['concat']([r(0xcf)]));b[r(0xbd)]&&delete b[r(0xbd)];let d=b['driver-package']||b['driver']||r(0xc4);if(d==='none'){const j=JSON[r(0xd2)](a89e[r(0xa1)](a89f[r(0xc9)](this['fsi'][r(0xba)](),'.maka','config.json'),r(0xc2)));if(j[r(0x95)][r(0xb5)]===r(0xc5))d='sanjo:jasmine';else j['engines'][r(0xb5)]===r(0xa8)&&(d=r(0x9e));}if(d===r(0xc4))throw r(0x98);(!b[r(0xb1)]||!b[r(0xb3)])&&(a=a['concat']([r(0xae),d]));const f=a89f[r(0xc9)](c,'settings.json');this[r(0xb4)][r(0x9c)](f)?(Log[r(0xc3)](r(0xd0)+f),a=a['concat']([r(0xbf),f])):Log[r(0xa4)](r(0x96)+f);const g=a89f[r(0xc9)](c,r(0xb2));this[r(0xb4)][r(0x9c)](g)?(Log[r(0xc3)](r(0xd6)+g),syncSource(g)):Log['warn']('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+g);const h=process['argv'][r(0x9b)](0x2)['filter'](k=>k!==r(0xce))['filter'](k=>k!==r(0xb5))['filter'](k=>k!==a[0x0]);h[r(0xa7)]((k,l)=>{const s=r;(k===s(0xce)||k===s(0xc0))&&h[s(0xd5)](l,0x2),k===s(0xbe)&&h['splice'](l,0x1);});const i=b[r(0xbb)]?r(0xca):r(0xb5);this[r(0xb4)][r(0xb7)](i,a[r(0xb8)](h));}catch(k){console['error'](k),process[r(0xac)](0x0);}});
1
+ function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0x9b;let f=c[d];return f;},a89d(a,b);}const a89q=a89d;(function(a,b){const m=a89d,c=a();while(!![]){try{const d=-parseInt(m(0xd9))/0x1*(parseInt(m(0x9d))/0x2)+-parseInt(m(0xae))/0x3*(parseInt(m(0xa9))/0x4)+-parseInt(m(0xa4))/0x5+-parseInt(m(0xc5))/0x6+-parseInt(m(0xaa))/0x7*(-parseInt(m(0xc0))/0x8)+parseInt(m(0xa8))/0x9+parseInt(m(0xb1))/0xa*(parseInt(m(0xb6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x3dfee));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a89d;if(c){const e=c[n(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const o=a89d;return a89a[o(0xd8)]()[o(0x9b)]('(((.+)+)+)+$')[o(0xd8)]()[o(0xce)](a89a)[o(0x9b)](o(0xd7));});function a89c(){const t=['testAppPath','--packages','none','2907388pSFBPx','concat','readFileSync','maka\x20test\x20<opts>','driverPackage','once','openSync','env','unit','warn','160UdMpis','driver','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','driver-package','error','2808270mavmxw','Meteor\x20Settings:\x20','port','packages','--driver-package','--full-app','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','filter','apply','constructor','engines','fsi','invokeMeteorCommand','meteortesting:mocha','.maka','Cannot\x20find\x20Node\x20Environment\x20File:\x20','isFile','mocha','(((.+)+)+)+$','toString','179125BMCtev','config.json','search','--settings','2DqfWnJ','settings.json','sanjo:jasmine','config','slice','getConfigPath','Node\x20Env\x20Config:\x20','1490480HWwtAT','join','test','argv','4368663CNyGpa','388HpDbvo','55244BDpvVn','utf8','splice','findProjectDirectory','7329QNMNNK','--env','test-packages','30XFHnAM','notice'];a89c=function(){return t;};return a89c();}a89a();import a89e from'fs';import a89f from'path';import a89g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a89d;a89e[p(0xbc)](a,'r'),a89g[p(0xa0)]({'path':a});};Command['create']({'name':'test','mustBeInMakaProject':!![],'validOpts':[a89q(0xbb),a89q(0xc8),a89q(0xc1),a89q(0xba),a89q(0xbe),a89q(0xbd),'rawLogs',a89q(0xc7),'inspect',a89q(0xb3)],'usage':a89q(0xb9),'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a89q;try{let c=this[r(0xd0)][r(0xa2)]('development');b[r(0xbd)]&&(c=this[r(0xd0)][r(0xa2)](b['env']));(!b[r(0xbe)]||!!b[r(0xbb)])&&(a=a[r(0xb7)]([r(0xca)]));b[r(0xbe)]&&delete b['unit'];let d=b[r(0xc3)]||b['driver']||r(0xb5);if(d===r(0xb5)){const j=JSON['parse'](a89e[r(0xb8)](a89f['join'](this[r(0xd0)][r(0xad)](),r(0xd3),r(0xda)),r(0xab)));if(j[r(0xcf)][r(0xa6)]==='jasmine')d=r(0x9f);else j[r(0xcf)][r(0xa6)]===r(0xd6)&&(d=r(0xd2));}if(d==='none')throw r(0xc2);(!b[r(0xc3)]||!b[r(0xc1)])&&(a=a[r(0xb7)]([r(0xc9),d]));const f=a89f[r(0xa5)](c,r(0x9e));this[r(0xd0)]['isFile'](f)?(Log['notice'](r(0xc6)+f),a=a[r(0xb7)]([r(0x9c),f])):Log[r(0xbf)](r(0xcb)+f);const g=a89f[r(0xa5)](c,'process.env');this[r(0xd0)][r(0xd5)](g)?(Log[r(0xb2)](r(0xa3)+g),syncSource(g)):Log['warn'](r(0xd4)+g);const h=process[r(0xa7)][r(0xa1)](0x2)['filter'](k=>k!=='--env')[r(0xcc)](k=>k!==r(0xa6))[r(0xcc)](k=>k!==a[0x0]);h['forEach']((k,l)=>{const s=r;(k===s(0xaf)||k==='--driver')&&h[s(0xac)](l,0x2),k===s(0xb4)&&h[s(0xac)](l,0x1);});const i=b[r(0xc8)]?r(0xb0):r(0xa6);this[r(0xd0)][r(0xd1)](i,a[r(0xb7)](h));}catch(k){console[r(0xc4)](k),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a90n=a90d;(function(a,b){const k=a90d,c=a();while(!![]){try{const d=parseInt(k(0x88))/0x1*(parseInt(k(0x89))/0x2)+-parseInt(k(0x8a))/0x3+-parseInt(k(0x99))/0x4+parseInt(k(0x86))/0x5*(-parseInt(k(0x8d))/0x6)+-parseInt(k(0x83))/0x7*(parseInt(k(0xa0))/0x8)+-parseInt(k(0x9a))/0x9+parseInt(k(0x85))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xa8fbb));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a90d;if(c){const e=c[l(0x7b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const m=a90d;return a90a[m(0x9f)]()[m(0x80)](m(0x9d))['toString']()[m(0x7f)](a90a)[m(0x80)]('(((.+)+)+)+$');});a90a();import{execSync}from'child_process';import a90e from'semver';function a90c(){const p=['\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','isMakaProject','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','bright','fsi','maka\x20v','apply','4.5.33','platform','Project\x27s\x20Meteor\x20Node\x20Version\x20','constructor','search','Project\x27s\x20Meteor\x20Version\x20','\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','7DDhVjZ','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','26602170AJjHuY','59715MpaRoG','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','3uydxyX','864700NlPXgU','3425859XtKvJY','Maka\x20','meteor','420jqPZOc','error','System\x27s\x20Node\x20Version\x20','node\x20-v','----------------------System----------------------------','verbose','----------------------Project----------------------------','compareMakaToLatest','replace','warn','version','System\x27s\x20Meteor\x20Version\x20','2834584tttQOo','1441584PuoraV','N/A','\x20node\x20-v','(((.+)+)+)+$','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','toString','3346616lfgoCX','\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','create','maka\x20version','getGlobalMeteorVersion'];a90c=function(){return p;};return a90c();}function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x78;let f=c[d];return f;},a90d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a90n(0x7c)};Command[a90n(0xa2)]({'name':a90n(0x97),'aliases':['v'],'usage':a90n(0xa3),'maxArgLength':0x1,'validOpts':[a90n(0x92)],'shortDesc':a90n(0x84),'examples':[a90n(0x7a),'maka\x20version','maka\x20version\x20--verbose'],'description':a90n(0xa1)},async function(a,b){const o=a90n;try{const c=process[o(0x7d)]==='win32'?'meteor.bat':o(0x8c);Log['majestic'](o(0x8b)+pjson[o(0x97)]);if(b['verbose']){await this[o(0x79)][o(0x94)](),Log[o(0x78)](o(0x91));const d=this[o(0x79)][o(0xa4)]();Log[o(0x78)]((o(0x98)+d)[o(0x95)]('\x0a',''));const f=execSync(c+o(0x9c))[o(0x9f)]()[o(0x95)](/\r?\n|\r/,'')[o(0x95)]('v','');Log[o(0x78)](o(0x9e)+f);const g=execSync(o(0x90))[o(0x9f)]()[o(0x95)](/\r?\n|\r/,'')[o(0x95)]('v','');a90e['gt'](f,g)?(Log[o(0x96)](o(0x8f)+g),Log[o(0x96)](o(0xa7)+g+')\x20to\x20at\x20least\x20meteor\x27s\x20('+f+')')):Log[o(0x78)](o(0x8f)+g);if(this[o(0x79)][o(0xa6)]()){Log[o(0x78)](o(0x93));const h=this[o(0x79)]['getProjectMeteorVersion']();a90e['gt'](d,h)?(Log[o(0x96)](o(0x81)+h[o(0x95)]('\x0a','')),Log[o(0x96)](o(0x87)+d+'\x22')):Log['notice'](('Project\x27s\x20Meteor\x20Version\x20'+h)['replace']('\x0a',''));const i=await this[o(0x79)]['getProjectsMeteorNodeVersion']();i===o(0x9b)?(Log[o(0x96)](o(0x7e)+i),Log['warn'](o(0xa5))):Log['bright'](o(0x7e)+i),Log['bright'](o(0x82));}}}catch(j){console[o(0x8e)](j),process['exit'](0x0);}});
1
+ const a90m=a90d;(function(a,b){const k=a90d,c=a();while(!![]){try{const d=-parseInt(k(0x9c))/0x1*(parseInt(k(0x97))/0x2)+parseInt(k(0x9e))/0x3+-parseInt(k(0xbe))/0x4*(parseInt(k(0xc2))/0x5)+-parseInt(k(0xb2))/0x6*(-parseInt(k(0xa4))/0x7)+-parseInt(k(0x9f))/0x8+-parseInt(k(0xa1))/0x9+parseInt(k(0xb7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xac5f9));const a90b=(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;};}()),a90a=a90b(this,function(){const l=a90d;return a90a[l(0xb6)]()[l(0xa6)](l(0xbf))[l(0xb6)]()[l(0xbc)](a90a)[l(0xa6)](l(0xbf));});a90a();import{execSync}from'child_process';import a90e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x94;let f=c[d];return f;},a90d(a,b);}const pjson={'version':a90m(0xbd)};function a90c(){const o=['----------------------System----------------------------','N/A','30eCKhCo','majestic','\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','Project\x27s\x20Meteor\x20Version\x20','toString','18108720gzQyRI',')\x20to\x20at\x20least\x20meteor\x27s\x20(','replace','bright','\x20node\x20-v','constructor','4.5.35','1794692SUyuyn','(((.+)+)+)+$','platform','----------------------Project----------------------------','10gZiDTI','warn','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','Project\x27s\x20Meteor\x20Node\x20Version\x20','meteor.bat','node\x20-v','exit','3454jwiqkO','fsi','Maka\x20','getProjectsMeteorNodeVersion','meteor','271uJRiqs','System\x27s\x20Meteor\x20Version\x20','3160377XOHOEm','638224dZpHRB','isMakaProject','9222876XMKVuE','System\x27s\x20Node\x20Version\x20','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','436261GdNxnQ','getGlobalMeteorVersion','search','getProjectMeteorVersion','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','win32','error','maka\x20version','version','maka\x20v'];a90c=function(){return o;};return a90c();}Command['create']({'name':a90m(0xae),'aliases':['v'],'usage':a90m(0xad),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a90m(0xaa),'examples':[a90m(0xaf),a90m(0xad),'maka\x20version\x20--verbose'],'description':a90m(0xa3)},async function(a,b){const n=a90m;try{const c=process[n(0xc0)]===n(0xab)?n(0x94):n(0x9b);Log[n(0xb3)](n(0x99)+pjson[n(0xae)]);if(b['verbose']){await this[n(0x98)]['compareMakaToLatest'](),Log[n(0xba)](n(0xb0));const d=this[n(0x98)][n(0xa5)]();Log[n(0xba)]((n(0x9d)+d)[n(0xb9)]('\x0a',''));const f=execSync(c+n(0xbb))[n(0xb6)]()[n(0xb9)](/\r?\n|\r/,'')['replace']('v','');Log[n(0xba)](n(0xa8)+f);const g=execSync(n(0x95))[n(0xb6)]()['replace'](/\r?\n|\r/,'')[n(0xb9)]('v','');a90e['gt'](f,g)?(Log[n(0xc3)](n(0xa2)+g),Log[n(0xc3)](n(0xa9)+g+n(0xb8)+f+')')):Log[n(0xba)](n(0xa2)+g);if(this[n(0x98)][n(0xa0)]()){Log['bright'](n(0xc1));const h=this[n(0x98)][n(0xa7)]();a90e['gt'](d,h)?(Log[n(0xc3)](n(0xb5)+h[n(0xb9)]('\x0a','')),Log['warn']('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice']((n(0xb5)+h)[n(0xb9)]('\x0a',''));const i=await this[n(0x98)][n(0x9a)]();i===n(0xb1)?(Log[n(0xc3)](n(0xc5)+i),Log[n(0xc3)](n(0xc4))):Log[n(0xba)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[n(0xba)](n(0xb4));}}}catch(j){console[n(0xac)](j),process[n(0x96)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a91d,c=a();while(!![]){try{var d=-parseInt(f(0xb5))/0x1*(parseInt(f(0xbb))/0x2)+parseInt(f(0xb9))/0x3*(-parseInt(f(0xb7))/0x4)+-parseInt(f(0xbd))/0x5+parseInt(f(0xb4))/0x6*(parseInt(f(0xb1))/0x7)+parseInt(f(0xbe))/0x8*(-parseInt(f(0xb2))/0x9)+parseInt(f(0xb0))/0xa*(-parseInt(f(0xbc))/0xb)+parseInt(f(0xb3))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0xcea9b));var a91b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a91d;if(c){var e=c[g(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){var h=a91d;return a91a[h(0xb6)]()[h(0xba)](h(0xaf))[h(0xb6)]()[h(0xbf)](a91a)[h(0xba)](h(0xaf));});a91a();export class UsageError{}function a91c(){var i=['117AHKZcz','48418308dptizK','6uvonCH','109517paCOao','toString','1130836uovZCf','apply','3bCXlWJ','search','10JbEiJj','1336808mXNOOt','7462150ytjfsx','380504UZXCKq','constructor','(((.+)+)+)+$','60ediTvT','3372901TojBVM'];a91c=function(){return i;};return a91c();}function a91d(a,b){var c=a91c();return a91d=function(d,e){d=d-0xaf;var f=c[d];return f;},a91d(a,b);}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
1
+ (function(a,b){var f=a91d,c=a();while(!![]){try{var d=-parseInt(f(0x98))/0x1+-parseInt(f(0x97))/0x2*(-parseInt(f(0x9d))/0x3)+parseInt(f(0x93))/0x4+-parseInt(f(0x9b))/0x5*(parseInt(f(0x99))/0x6)+parseInt(f(0x92))/0x7*(parseInt(f(0x95))/0x8)+parseInt(f(0x8f))/0x9*(-parseInt(f(0x90))/0xa)+parseInt(f(0x91))/0xb*(parseInt(f(0x9e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x758a8));function a91d(a,b){var c=a91c();return a91d=function(d,e){d=d-0x8f;var f=c[d];return f;},a91d(a,b);}var a91b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a91d;if(c){var e=c[g(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){var h=a91d;return a91a[h(0x94)]()['search'](h(0x9a))[h(0x94)]()[h(0x96)](a91a)['search']('(((.+)+)+)+$');});a91a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a91c(){var i=['toString','3416hZQvtG','constructor','4QbhktK','311621GPdhUv','102aNcCLH','(((.+)+)+)+$','192155YmZtov','apply','894057JjuSlg','180228UCYxFf','21168xBbjmx','3170hkdDZF','649enzcCb','6769ejEvKB','1187648KfNLAf'];a91c=function(){return i;};return a91c();}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- var a92h=a92d;function a92c(){var i=['env','439528eQbtIM','45myifZS','(((.+)+)+)+$','1107295TLNiyo','1019898PXIKLs','1544514CcgdsE','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','4796076VJBCAj','131360JTlCzU','44GsHOQy','toString','381079hdBTJj','search'];a92c=function(){return i;};return a92c();}(function(a,b){var f=a92d,c=a();while(!![]){try{var d=parseInt(f(0x1b3))/0x1+parseInt(f(0x1ba))/0x2+-parseInt(f(0x1bb))/0x3+-parseInt(f(0x1b1))/0x4*(parseInt(f(0x1be))/0x5)+parseInt(f(0x1bd))/0x6+-parseInt(f(0x1b9))/0x7+parseInt(f(0x1b6))/0x8*(-parseInt(f(0x1b7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x6ec16));var a92b=(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;};}()),a92a=a92b(this,function(){var g=a92d;return a92a[g(0x1b2)]()[g(0x1b4)](g(0x1b8))[g(0x1b2)]()['constructor'](a92a)[g(0x1b4)]('(((.+)+)+)+$');});a92a(),process[a92h(0x1b5)]['NODE_OPTIONS']=a92h(0x1bc);function a92d(a,b){var c=a92c();return a92d=function(d,e){d=d-0x1b1;var f=c[d];return f;},a92d(a,b);}import'./maka.js';
2
+ function a92c(){var j=['62BtmgBX','apply','search','1134118zJyipQ','1000136EUcmVt','4114664RxLkiI','5HaJsqp','1126476Rimeeo','constructor','10825451dlGbiE','4720446YGWSFG','172611dumNLN','toString','env','(((.+)+)+)+$'];a92c=function(){return j;};return a92c();}var a92i=a92d;(function(a,b){var f=a92d,c=a();while(!![]){try{var d=parseInt(f(0x1b6))/0x1+parseInt(f(0x1b3))/0x2*(-parseInt(f(0x1af))/0x3)+parseInt(f(0x1b7))/0x4*(parseInt(f(0x1b9))/0x5)+-parseInt(f(0x1ba))/0x6+parseInt(f(0x1bc))/0x7+parseInt(f(0x1b8))/0x8+-parseInt(f(0x1bd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xe7b63));function a92d(a,b){var c=a92c();return a92d=function(d,e){d=d-0x1af;var f=c[d];return f;},a92d(a,b);}var a92b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a92d;if(c){var e=c[g(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){var h=a92d;return a92a[h(0x1b0)]()['search'](h(0x1b2))[h(0x1b0)]()[h(0x1bb)](a92a)[h(0x1b5)](h(0x1b2));});a92a(),process[a92i(0x1b1)]['NODE_OPTIONS']='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
@@ -1 +1 @@
1
- const a93u=a93d;(function(a,b){const q=a93d,c=a();while(!![]){try{const d=parseInt(q(0x164))/0x1*(-parseInt(q(0x161))/0x2)+-parseInt(q(0x16d))/0x3+-parseInt(q(0x16a))/0x4+parseInt(q(0x17b))/0x5*(parseInt(q(0x170))/0x6)+-parseInt(q(0x19f))/0x7+-parseInt(q(0x197))/0x8+parseInt(q(0x154))/0x9*(parseInt(q(0x177))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x28713));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a93d;if(c){const e=c[r(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const s=a93d;return a93a[s(0x17e)]()['search'](s(0x16b))[s(0x17e)]()[s(0x1ac)](a93a)[s(0x187)](s(0x16b));});a93a();function a93c(){const G=['list','validateParams','Name','Please\x20run\x20\x22maka\x20install\x20meteor\x22','map','Too\x20many\x20arguments','66496aEmroO','options','Generators:','To\x20use\x20these\x20pro\x20flags,\x20\x22','exit','notice','root','forEach','2217348rZQbBo','Too\x20many\x20options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Generator.create\x20requires\x20a\x20handler\x20function!','cwd','There\x20is\x20no\x20Meteor\x20application\x20here','No\x20resource\x20name\x20specified','checkWhere','length','Alias','Client','filter','Location','constructor','findGenerator','tableList','where','addGenerator\x20requires\x20a\x20Generator\x20instance','mustBeInMakaProject','aliases','_generators','appPathPrefix','Generator.create\x20requires\x20some\x20options!','fsi','9mjBQGx','minOptsLength','validateMakaProject','function','shortDesc','invoke','apply','getPro','maxOptsLength','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','dir','chdir','_handler','212078fAfjiX','bright','maxArgLength','1PybYHh','Server','keys','pop','name','number','1037468XLGrdk','(((.+)+)+)+$','addGenerator','832470AwHHEY','validateMakaSubscription','server','5082szBaEC','noResource','replace','Both','bind','sort','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','11116010piWIvK','error','includes','minArgLength','130iqDOxP','roles','assign','toString','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','help','To\x20use\x20this\x20generator,\x20\x22','Too\x20few\x20options','push','create','client','domainLicense','search','join','match','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','sep','both','Generator\x20requires\x20a\x20name','proFlags','resourceName','findProjectDirectory'];a93c=function(){return G;};return a93c();}import a93e from'path';import a93f from'cli-table';import{paramCase}from'change-case';function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x151;let f=c[d];return f;},a93d(a,b);}import a93g 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=a93d,c=process[t(0x1a3)]();let d=null;try{process['chdir'](a),d=b();}finally{process[t(0x15f)](c);}return d;}export class Generator extends Tool{[a93u(0x198)];[a93u(0x1b3)];constructor(a,b){const v=a93u;super();if(!a)throw new Error(v(0x18a));if(!a[v(0x168)])throw new Error(v(0x18d));if(typeof b!==v(0x157))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[v(0x1b3)]=[],this[v(0x198)]=Object['assign']({},a),this[v(0x168)]=this[v(0x198)][v(0x168)],this['_handler']=b[v(0x174)](this);}static[a93u(0x184)](a,b,c){const w=a93u;if(!a)throw new Error(w(0x152));if(typeof b!=='function')throw new Error(w(0x1a2));const d=new Generator(a,b);return c=c||a93g,Object[w(0x17d)](d,{'parent':c?.[w(0x198)]?.[w(0x168)]}),c[w(0x16c)](d),d;}['addGenerator'](a){const x=a93u;if(!(a instanceof Generator))throw new Error(x(0x1b0));this[x(0x1b3)][x(0x183)](a);}[a93u(0x1ad)](a){const y=a93u,b=this[y(0x1b3)]['find'](c=>c[y(0x189)](a));return b;}async['validateMakaSubscription'](a,b){const z=a93u,c=this[z(0x1ad)](a[0x0]);if(c){const d=c?.[z(0x168)]||a[0x0],e=c?.['parent']||'',f=Object[z(0x166)](b),g=await this[z(0x153)][z(0x15b)]();!g&&(Log[z(0x178)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const h=!g?.[z(0x17c)][z(0x179)]('singleLicense')&&!g?.[z(0x17c)]['includes'](z(0x186)),i=g?.['proGenerators'][z(0x179)](d)||g?.['proGenerators'][z(0x179)](e);if(i&&h)throw z(0x181)+d+z(0x176);if(f[z(0x1a7)]>0x0){const j=g?.[z(0x18e)][z(0x1aa)](k=>f[z(0x179)](k));if(j&&j[z(0x1a7)]>0x0&&h)throw z(0x19a)+j?.['join'](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a93u(0x159)](a,b){const A=a93u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x198)];try{await this[A(0x16e)](a,b);}catch(g){Log['error'](g),process[A(0x19b)](0x1);}const f=a['slice']();b[A(0x18f)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[A(0x180)])throw new UsageError();if(this[A(0x198)][A(0x1b1)]){const h=this[A(0x156)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x198)]['mustHaveMeteorInstalled']){const i=this['validateMeteorInstall']();if(!i)throw new NoMeteorFoundError();}if(typeof this['options'][A(0x17a)]==='number'){if(a[A(0x1a7)]<this['options'][A(0x17a)]){Log[A(0x178)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options']['maxArgLength']==='number'){if(a['length']>this[A(0x198)][A(0x163)]){Log[A(0x178)](A(0x196));throw new UsageError();}}if(typeof this['options'][A(0x155)]===A(0x169)){if(Object[A(0x166)](b)['length']<this[A(0x198)][A(0x155)]){Log['error'](A(0x182));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===A(0x169)){if(Object[A(0x166)](b)[A(0x1a7)]>=this[A(0x198)][A(0x15c)]){Log[A(0x178)](A(0x1a0));throw new UsageError();}}await this[A(0x192)](a,b,this[A(0x198)]);if(!b[A(0x18f)]&&!this[A(0x198)][A(0x171)]){Log[A(0x178)](A(0x1a5));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0x1b3)]['length']>0x0&&b['help']&&(Log['notice'](A(0x199)),this[A(0x1ae)](this[A(0x1b3)]));else{if(j instanceof MustBeInProjectError)Log[A(0x178)](A(0x15d));else{if(j instanceof NoMeteorFoundError)Log['error'](A(0x1a1)),Log[A(0x19c)](A(0x194));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x178)](A(0x1a4));else throw j;}}}process[A(0x19b)](0x1);}return new Promise(k=>{const B=A;inside(b[B(0x1a3)],async()=>{const C=B;try{if(!b[C(0x19d)]&&!this[C(0x153)][C(0x190)]())throw new MustBeInProjectError();const l=b['resourceName']?.[C(0x172)](/\\/g,'/')['split']('/');!b[C(0x15e)]&&(l?.[C(0x1a7)]>0x1?(b[C(0x18f)]=l[C(0x167)](),f[0x0]=b['resourceName'],b[C(0x15e)]=l[C(0x195)](m=>{return paramCase(m);})[C(0x188)](a93e[C(0x18b)])):b['dir']='');if(this['options'][C(0x1a6)]){if(!b['where']){const n={'type':C(0x191),'name':'colLocAnswer','message':C(0x1ab),'choices':[{'name':C(0x1a9),'value':'client'},{'name':C(0x165),'value':C(0x16f)},{'name':C(0x173),'value':C(0x18c)}]},{colLocAnswer:o}=await Actions[C(0x198)](n);o?b[C(0x1af)]=o:b[C(0x1af)]='both';}const m=[C(0x18c),C(0x185),C(0x16f)];if(!m[C(0x179)](b[C(0x1af)])){Log[C(0x178)](C(0x17f));throw new UsageError();}switch(b[C(0x1af)]){case C(0x18c):b['appPathPrefix']='lib';break;case C(0x16f):b[C(0x151)]=C(0x16f);break;case C(0x185):b['appPathPrefix']='client';break;default:b[C(0x151)]='';}}k(this[C(0x160)]['call'](this,f,b));}catch(p){console['error'](p);}});});}['listGenerators'](){const D=a93u;this[D(0x1ae)](this[D(0x1b3)]);}[a93u(0x1ae)](a){const E=a93u,b=new a93f({});b[E(0x183)]([E(0x193),E(0x1a8),'Description']),a[E(0x175)]()[E(0x19e)](c=>{const F=E;b[F(0x183)]([c[F(0x168)],c[F(0x1b2)](),c[F(0x158)]()]);}),Log[E(0x162)](b[E(0x17e)]());}}
1
+ const a93u=a93d;(function(a,b){const q=a93d,c=a();while(!![]){try{const d=parseInt(q(0x117))/0x1*(-parseInt(q(0x11b))/0x2)+-parseInt(q(0xd2))/0x3*(-parseInt(q(0xd4))/0x4)+parseInt(q(0xe7))/0x5+parseInt(q(0x125))/0x6*(parseInt(q(0xc2))/0x7)+parseInt(q(0xe3))/0x8+-parseInt(q(0xed))/0x9*(parseInt(q(0x118))/0xa)+-parseInt(q(0x104))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xc1ba4));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a93d;if(c){const e=c[r(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const s=a93d;return a93a[s(0xfc)]()[s(0x108)](s(0x110))['toString']()[s(0x11f)](a93a)[s(0x108)]('(((.+)+)+)+$');});function a93c(){const G=['parent','help','appPathPrefix','9wAKDkM','mustHaveMeteorInstalled','replace','filter','split','minOptsLength','notice','match','root','noResource','Client','pop','Generators:','findGenerator','apply','toString','There\x20is\x20no\x20Meteor\x20application\x20here','cwd','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_handler','Description','listGenerators','invoke','5381585JuulGO','sort','name','push','search','number','Generator.create\x20requires\x20a\x20handler\x20function!','Generator\x20requires\x20a\x20handler\x20function','_generators','dir','function','options','(((.+)+)+)+$','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','addGenerator','validateParams','Too\x20few\x20options','join','colLocAnswer','26514FVlIvn','11723530GSayXR','client','Both','44aADAoH','validateMakaSubscription','aliases','proGenerators','constructor','chdir','addGenerator\x20requires\x20a\x20Generator\x20instance','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Name','shortDesc','7557432lBKyqU','includes','Server','resourceName','Alias','find','map','7HdDGHT','error','maxArgLength','length','roles','call','where','Generator.create\x20requires\x20some\x20options!','exit','keys','sep','Too\x20few\x20arguments','create','both','proFlags','validateMakaProject','3620625QbeHUD','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','4bBkITI','To\x20use\x20these\x20pro\x20flags,\x20\x22','assign','Generator\x20requires\x20a\x20name','Too\x20many\x20arguments','tableList','No\x20resource\x20name\x20specified','Location','validateMeteorInstall','singleLicense','server','bright','maxOptsLength','getPro','fsi','1395392KPzRIa','checkWhere','bind','To\x20use\x20this\x20generator,\x20\x22','1987665rOlNos','minArgLength','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator'];a93c=function(){return G;};return a93c();}a93a();import a93e from'path';import a93f from'cli-table';function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0xc2;let f=c[d];return f;},a93d(a,b);}import{paramCase}from'change-case';import a93g 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=a93d,c=process[t(0xfe)]();let d=null;try{process[t(0x120)](a),d=b();}finally{process[t(0x120)](c);}return d;}export class Generator extends Tool{[a93u(0x10f)];[a93u(0x10c)];constructor(a,b){const v=a93u;super();if(!a)throw new Error(v(0xd3));if(!a[v(0x106)])throw new Error(v(0xd7));if(typeof b!==v(0x10e))throw new Error(v(0x10b));this['_generators']=[],this[v(0x10f)]=Object['assign']({},a),this[v(0x106)]=this['options'][v(0x106)],this[v(0x100)]=b[v(0xe5)](this);}static[a93u(0xce)](a,b,c){const w=a93u;if(!a)throw new Error(w(0xc9));if(typeof b!==w(0x10e))throw new Error(w(0x10a));const d=new Generator(a,b);return c=c||a93g,Object[w(0xd6)](d,{'parent':c?.['options']?.[w(0x106)]}),c[w(0x112)](d),d;}[a93u(0x112)](a){const x=a93u;if(!(a instanceof Generator))throw new Error(x(0x121));this[x(0x10c)][x(0x107)](a);}['findGenerator'](a){const y=a93u,b=this[y(0x10c)][y(0x12a)](c=>c[y(0xf4)](a));return b;}async[a93u(0x11c)](a,b){const z=a93u,c=this[z(0xfa)](a[0x0]);if(c){const d=c?.[z(0x106)]||a[0x0],e=c?.[z(0xea)]||'',f=Object['keys'](b),g=await this[z(0xe2)][z(0xe1)]();!g&&(Log[z(0xc3)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[z(0xca)](0x1));const h=!g?.[z(0xc6)][z(0x126)](z(0xdd))&&!g?.['roles']['includes']('domainLicense'),i=g?.[z(0x11e)][z(0x126)](d)||g?.[z(0x11e)][z(0x126)](e);if(i&&h)throw z(0xe6)+d+z(0x122);if(f[z(0xc5)]>0x0){const j=g?.[z(0xd0)][z(0xf0)](k=>f['includes'](k));if(j&&j[z(0xc5)]>0x0&&h)throw z(0xd5)+j?.[z(0x115)](',\x20')+z(0x122);}}}async[a93u(0x103)](a,b){const A=a93u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x10f)];try{await this[A(0x11c)](a,b);}catch(g){Log[A(0xc3)](g),process[A(0xca)](0x1);}const f=a['slice']();b['resourceName']=f[0x0];try{if((a[0x0]===_prevGen||a[A(0xc5)]===0x0)&&b[A(0xeb)])throw new UsageError();if(this[A(0x10f)]['mustBeInMakaProject']){const h=this[A(0xd1)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x10f)][A(0xee)]){const i=this[A(0xdc)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x10f)][A(0xe8)]===A(0x109)){if(a[A(0xc5)]<this[A(0x10f)]['minArgLength']){Log[A(0xc3)](A(0xcd));throw new UsageError();}}if(typeof this[A(0x10f)][A(0xc4)]===A(0x109)){if(a[A(0xc5)]>this[A(0x10f)][A(0xc4)]){Log[A(0xc3)](A(0xd8));throw new UsageError();}}if(typeof this['options'][A(0xf2)]===A(0x109)){if(Object[A(0xcb)](b)[A(0xc5)]<this['options'][A(0xf2)]){Log[A(0xc3)](A(0x114));throw new UsageError();}}if(typeof this[A(0x10f)][A(0xe0)]===A(0x109)){if(Object[A(0xcb)](b)[A(0xc5)]>=this[A(0x10f)]['maxOptsLength']){Log['error']('Too\x20many\x20options');throw new UsageError();}}await this[A(0x113)](a,b,this[A(0x10f)]);if(!b['resourceName']&&!this[A(0x10f)][A(0xf6)]){Log[A(0xc3)](A(0xda));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this['_generators'][A(0xc5)]>0x0&&b[A(0xeb)]&&(Log[A(0xf3)](A(0xf9)),this[A(0xd9)](this['_generators']));else{if(j instanceof MustBeInProjectError)Log['error'](A(0xe9));else{if(j instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[A(0xf3)](A(0xff));else{if(j instanceof NoMeteorAppFoundError)Log[A(0xc3)](A(0xfd));else throw j;}}}process[A(0xca)](0x1);}return new Promise(k=>{const B=A;inside(b[B(0xfe)],async()=>{const C=B;try{if(!b[C(0xf5)]&&!this[C(0xe2)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b[C(0x128)]?.[C(0xef)](/\\/g,'/')[C(0xf1)]('/');!b[C(0x10d)]&&(l?.['length']>0x1?(b[C(0x128)]=l[C(0xf8)](),f[0x0]=b[C(0x128)],b['dir']=l[C(0x12b)](m=>{return paramCase(m);})[C(0x115)](a93e[C(0xcc)])):b['dir']='');if(this[C(0x10f)][C(0xe4)]){if(!b[C(0xc8)]){const n={'type':'list','name':C(0x116),'message':C(0xdb),'choices':[{'name':C(0xf7),'value':C(0x119)},{'name':C(0x127),'value':'server'},{'name':C(0x11a),'value':C(0xcf)}]},{colLocAnswer:o}=await Actions[C(0x10f)](n);o?b['where']=o:b[C(0xc8)]=C(0xcf);}const m=[C(0xcf),C(0x119),C(0xde)];if(!m[C(0x126)](b[C(0xc8)])){Log['error'](C(0x111));throw new UsageError();}switch(b['where']){case C(0xcf):b[C(0xec)]='lib';break;case C(0xde):b[C(0xec)]=C(0xde);break;case C(0x119):b[C(0xec)]='client';break;default:b[C(0xec)]='';}}k(this[C(0x100)][C(0xc7)](this,f,b));}catch(p){console['error'](p);}});});}[a93u(0x102)](){const D=a93u;this[D(0xd9)](this[D(0x10c)]);}[a93u(0xd9)](a){const E=a93u,b=new a93f({});b[E(0x107)]([E(0x123),E(0x129),E(0x101)]),a[E(0x105)]()['forEach'](c=>{const F=E;b[F(0x107)]([c[F(0x106)],c[F(0x11d)](),c[F(0x124)]()]);}),Log[E(0xdf)](b[E(0xfc)]());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a94d,c=a();while(!![]){try{var d=parseInt(f(0xba))/0x1*(-parseInt(f(0xb9))/0x2)+parseInt(f(0xbb))/0x3*(-parseInt(f(0xc1))/0x4)+parseInt(f(0xc0))/0x5+parseInt(f(0xb8))/0x6+parseInt(f(0xc2))/0x7+parseInt(f(0xc3))/0x8+parseInt(f(0xbd))/0x9*(-parseInt(f(0xbc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xaa045));var a94b=(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;};}()),a94a=a94b(this,function(){var g=a94d;return a94a['toString']()['search'](g(0xbe))['toString']()[g(0xbf)](a94a)[g(0xb7)](g(0xbe));});a94a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';function a94d(a,b){var c=a94c();return a94d=function(d,e){d=d-0xb7;var f=c[d];return f;},a94d(a,b);}import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';function a94c(){var h=['595704OtVbqR','search','7093368uVZXKe','6PDdHwE','382751CQWnSf','3FEVRIN','186440vtGnUS','72VdSKUW','(((.+)+)+)+$','constructor','3821410TIbtoH','3400456ZbJcmT','5760545warMVf'];a94c=function(){return h;};return a94c();}import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a94d,c=a();while(!![]){try{var d=parseInt(f(0x1b3))/0x1+parseInt(f(0x1aa))/0x2*(parseInt(f(0x1a7))/0x3)+-parseInt(f(0x1b0))/0x4+-parseInt(f(0x1a6))/0x5*(parseInt(f(0x1b1))/0x6)+parseInt(f(0x1ac))/0x7+-parseInt(f(0x1ae))/0x8*(parseInt(f(0x1a9))/0x9)+-parseInt(f(0x1a5))/0xa*(-parseInt(f(0x1ad))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xa7c98));var a94b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a94d;if(c){var e=c[g(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){var h=a94d;return a94a[h(0x1b2)]()[h(0x1ab)](h(0x1af))[h(0x1b2)]()['constructor'](a94a)[h(0x1ab)](h(0x1af));});a94a();import'./services/_index.js';import'./api.js';import'./collection.js';function a94c(){var i=['65538ojcaWP','toString','1181547pLdZun','490HkMwRm','395GzjWBZ','2073483bwKUMA','apply','27PsEGJA','2wRYBip','search','8216845ygtqkk','261778oPndds','3552032rodtLD','(((.+)+)+)+$','5321840mMsOvo'];a94c=function(){return i;};return a94c();}import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';function a94d(a,b){var c=a94c();return a94d=function(d,e){d=d-0x1a5;var f=c[d];return f;},a94d(a,b);}import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a95y=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=parseInt(w(0xfa))/0x1+-parseInt(w(0x11d))/0x2*(-parseInt(w(0xcb))/0x3)+-parseInt(w(0xde))/0x4*(parseInt(w(0xdd))/0x5)+parseInt(w(0xd8))/0x6+parseInt(w(0xeb))/0x7+parseInt(w(0xdb))/0x8+-parseInt(w(0xe2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x5f41c));const a95b=(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;};}()),a95a=a95b(this,function(){const x=a95d;return a95a[x(0xce)]()[x(0xf5)](x(0x102))['toString']()[x(0xe4)](a95a)[x(0xf5)](x(0x102));});function a95c(){const B=['apollo','imports','api','withValue','3982314RbJHVH','injectAtBeginningOfFile','invoke','server','withFixtures','includes','api/api.js','dir','.app-tests.','startup','search','Resolvers\x20}\x20from\x20\x27','api/register-api.js','exit','TypeDefs\x20}\x20from\x20\x27','447949kvyMRf','ddp-rate-limiter','register-','resolvers.','api/publications.js','findGenerator','none','Publications','(((.+)+)+)+$','collection','withPubs','rest','graphql','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','No\x20API\x20boundaries\x20selected','Verifying\x20meteor\x20package\x20requirements\x20...','fsi','/imports/api','getProjectConfig','publications.','-api.','engines','rest-api.','if\x20\x5c(typeList','REST\x20API','const','API\x20boundaries\x20to\x20create','/graphql/typeDefs','rewriteDestinationPathForEngine','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','log','installMeteorPackage','Fixtures','checkbox','maka:rest','5390GFIpin','withMethods','Resolvers);\x0a\x0a','withGql','api/resolvers.js','typeList.push(','test','injectIntoFile','363oeelYZ','maka\x20{generate,\x20g}:{api}\x20<resource-name>','GraphQL','toString','api/typeDefs.js','api/methods.js','RPC\x20(Methods)','push','\x0aimport\x20{\x20resolvers\x20as\x20','typeDefs.','length','maka\x20g:api\x20todos','import\x20\x27./register-','1498608GwyYcI','template','checkMeteorPackage','2358600EsPFXd','TypeDefs);\x0a','1758165eqRfVH','4RGwVSL','withRest','apiAnswers','import\x20{\x20typeDefs\x20as\x20','10311606nrvypC','pathFromApp','constructor','rpc-methods.','maka:check'];a95c=function(){return B;};return a95c();}a95a();function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0xc7;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a95y(0xe9),'aliases':['a'],'usage':a95y(0xcc),'shortDesc':a95y(0x107),'validOpts':[a95y(0xf2)],'examples':[a95y(0xd6)]},async function(a,b){const z=a95y;try{const c=this[z(0x10a)][z(0x10c)](),d=[{'name':z(0xd1),'value':z(0x11e)},{'name':z(0x11a),'value':z(0xef)},{'name':z(0x101),'value':z(0x104)}];c[z(0x10f)][z(0xe9)]===z(0x105)&&d['push']({'name':z(0x112),'value':z(0xdf)});c[z(0x10f)][z(0x106)]===z(0xe7)&&d[z(0xd2)]({'name':z(0xcd),'value':z(0x120)});const f={'type':z(0x11b),'name':z(0xe0),'message':z(0x114),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[z(0xd5)]===0x0&&(Log['error'](z(0x108)),process[z(0xf8)](0x1)),this[z(0x10a)][z(0xea)](c,async()=>{const A=z,h=this[A(0x10a)][A(0xe3)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[A(0xf2)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][A(0xe9)],'graphql':c['engines'][A(0x106)],'test':c['engines'][A(0xc9)],'noRename':!![],'withPubs':g[A(0xf0)]('withPubs'),'withFixtures':g[A(0xf0)](A(0xef)),'withMethods':g[A(0xf0)](A(0x11e)),'withRest':g['includes'](A(0xdf))};let n='js';c[A(0x10f)]['js']==='tsx'&&(n='ts');(!this[A(0x10a)][A(0xda)](A(0x11c))||!this[A(0x10a)][A(0xda)](A(0xe6))||!this[A(0x10a)][A(0xda)](A(0xfb))||!this[A(0x10a)][A(0xda)]('mdg:validated-method')||!this[A(0x10a)][A(0xda)]('mongo'))&&(Log['notice'](A(0x109)),await this[A(0x10a)][A(0x119)](A(0x117),{'cwd':h}));const o=a95e[A(0xff)](A(0x103));o&&await o[A(0xed)]([j],{'config':c,'where':A(0xee)});c['engines'][A(0xe9)]===A(0x105)&&(m[A(0xdf)]&&this[A(0x10a)][A(0xd9)]({'srcPath':A(0xf1),'destPath':this['fsi'][A(0xe3)]({'pathParts':[A(0xe8),A(0xe9),b[A(0xf2)],j,A(0x110)+n]}),'context':m,'config':c}));m[A(0x11e)]&&this[A(0x10a)][A(0xd9)]({'srcPath':A(0xd0),'destPath':this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),'api',b[A(0xf2)],j,A(0xe5)+n]}),'context':m,'config':c});m['withFixtures']&&this[A(0x10a)][A(0xd9)]({'srcPath':'api/fixtures.js','destPath':this[A(0x10a)][A(0xe3)]({'pathParts':['imports',A(0xe9),b[A(0xf2)],j,'fixtures.'+n]}),'context':m,'config':c});c[A(0x10f)][A(0xc9)]!==A(0x100)&&this[A(0x10a)]['template']({'srcPath':'api/tests.js','destPath':this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),A(0xe9),b[A(0xf2)],j,j+A(0xf3)+n]}),'context':m,'config':c});m[A(0x104)]&&this[A(0x10a)][A(0xd9)]({'srcPath':A(0xfe),'destPath':this['fsi'][A(0xe3)]({'pathParts':['imports',A(0xe9),b[A(0xf2)],j,A(0x10d)+n]}),'context':m,'config':c});if(c[A(0x10f)][A(0x106)]===A(0xe7)){if(g[A(0xf0)](A(0x120))){const q=this[A(0x10a)][A(0xe3)]({'pathParts':['imports','startup',A(0xee),'index.'+c[A(0x10f)]['js']]}),r=this[A(0x10a)][A(0x116)]({'pathParts':[q],'config':c}),s=this[A(0x10a)]['pathFromApp']({'pathParts':[A(0xe8),'api',b[A(0xf2)],j,A(0x106),A(0xd4)+n]}),t=A(0x10b)+l+j+A(0x115);this[A(0x10a)]['template']({'srcPath':A(0xcf),'destPath':s,'context':m,'config':c}),this[A(0x10a)][A(0xec)]({'filePath':r,'content':A(0xe1)+k+A(0xf9)+t+'\x27;\x0a'}),this[A(0x10a)][A(0xca)]({'filePath':r,'content':A(0xc8)+k+A(0xdc),'begin':'const','end':A(0x111)});const u=this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),A(0xe9),b[A(0xf2)],j,A(0x106),A(0xfd)+n]}),v='/imports/api'+l+j+'/graphql/resolvers';this[A(0x10a)]['template']({'srcPath':A(0xc7),'destPath':u,'context':m,'config':c}),this[A(0x10a)][A(0xec)]({'filePath':r,'content':A(0xd3)+k+A(0xf6)+v+'\x27;'}),this[A(0x10a)][A(0xca)]({'filePath':r,'content':'resolverList.push('+k+A(0x11f),'begin':A(0x113),'end':'if\x20\x5c(typeList'});}}this[A(0x10a)]['template']({'srcPath':A(0xf7),'destPath':this[A(0x10a)][A(0xe3)]({'pathParts':['imports',A(0xf4),A(0xee),A(0xfc)+j+A(0x10e)+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x10a)][A(0xe3)]({'pathParts':[A(0xe8),'startup',A(0xee),'index.'+c['engines']['js']]});this[A(0x10a)]['injectAtEndOfFile']({'filePath':p,'content':A(0xd7)+j+'-api\x27;'});});}catch(h){console[z(0x118)](h),process['exit'](0x0);}});
1
+ const a95z=a95d;(function(a,b){const w=a95d,c=a();while(!![]){try{const d=-parseInt(w(0xbe))/0x1*(-parseInt(w(0xb8))/0x2)+-parseInt(w(0x90))/0x3*(parseInt(w(0x9c))/0x4)+-parseInt(w(0xa5))/0x5*(-parseInt(w(0xc5))/0x6)+-parseInt(w(0x88))/0x7*(-parseInt(w(0x9e))/0x8)+parseInt(w(0xa7))/0x9*(parseInt(w(0xc4))/0xa)+parseInt(w(0xb1))/0xb*(parseInt(w(0x8d))/0xc)+-parseInt(w(0xb9))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x62db7));function a95c(){const C=['/graphql/resolvers','pathFromApp','search','injectAtBeginningOfFile','typeList.push(','api/fixtures.js','graphql','/graphql/typeDefs','log','TypeDefs);\x0a','withValue','exit','No\x20API\x20boundaries\x20selected','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','apiAnswers','apollo','withGql','14fbrcBX','test','import\x20{\x20typeDefs\x20as\x20','\x0aimport\x20{\x20resolvers\x20as\x20','maka:check','9276bZjYvN','withFixtures','api/typeDefs.js','3gSEDXc','rest','index.','length','api/resolvers.js','api/register-api.js','api/tests.js','withRest','Fixtures','rewriteDestinationPathForEngine','startup','engines','1594772KRjHis','server','1777544qrllXK','create','-api\x27;','includes','apply','push','template','201515RrUtlA','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','27lYiRFT','checkMeteorPackage','RPC\x20(Methods)','injectIntoFile','GraphQL','withPubs','API\x20boundaries\x20to\x20create','typeDefs.','api/methods.js','mdg:validated-method','6281EKdYss','withMethods','-api.','/imports/api','error','Verifying\x20meteor\x20package\x20requirements\x20...','api/api.js','587094DMMoic','17554264CyDXwI','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api','(((.+)+)+)+$','if\x20\x5c(typeList','1OvrIDq','imports','rest-api.','publications.','const','ddp-rate-limiter','1770970XALHtv','66ooyeIx','collection','register-','fsi','injectAtEndOfFile','dir','REST\x20API','mongo','rpc-methods.'];a95c=function(){return C;};return a95c();}const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a95d;if(c){const e=c[x(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const y=a95d;return a95a['toString']()[y(0xd0)](y(0xbc))['toString']()['constructor'](a95a)[y(0xd0)]('(((.+)+)+)+$');});a95a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x7c;let f=c[d];return f;},a95d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a95e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a95z(0x9f)]({'name':'api','aliases':['a'],'usage':a95z(0xba),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a95z(0xca)],'examples':['maka\x20g:api\x20Todos'],'description':a95z(0x84)},async function(a,b){const A=a95z;try{const c=this['fsi']['getProjectConfig'](),d=[{'name':A(0xa9),'value':A(0xb2)},{'name':A(0x98),'value':A(0x8e)},{'name':'Publications','value':A(0xac)}];c[A(0x9b)]['api']===A(0x91)&&d[A(0xa3)]({'name':A(0xcb),'value':A(0x97)});c[A(0x9b)]['graphql']===A(0x86)&&d['push']({'name':A(0xab),'value':A(0x87)});const f={'type':'checkbox','name':A(0x85),'message':A(0xad),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[A(0x93)]===0x0&&(Log[A(0xb5)](A(0x83)),process['exit'](0x1)),this[A(0xc8)][A(0x81)](c,async()=>{const B=A,h=this[B(0xc8)][B(0xcf)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0xca)]?'/'+b[B(0xca)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0xbb)],'graphql':c[B(0x9b)][B(0x7d)],'test':c[B(0x9b)][B(0x89)],'noRename':!![],'withPubs':g['includes'](B(0xac)),'withFixtures':g[B(0xa1)](B(0x8e)),'withMethods':g[B(0xa1)](B(0xb2)),'withRest':g[B(0xa1)](B(0x97))};let n='js';c[B(0x9b)]['js']==='tsx'&&(n='ts');(!this[B(0xc8)][B(0xa8)]('maka:rest')||!this[B(0xc8)][B(0xa8)](B(0x8c))||!this[B(0xc8)]['checkMeteorPackage'](B(0xc3))||!this['fsi'][B(0xa8)](B(0xb0))||!this['fsi']['checkMeteorPackage'](B(0xcc)))&&(Log['notice'](B(0xb6)),await this[B(0xc8)]['installMeteorPackage'](B(0xa6),{'cwd':h}));const o=a95e['findGenerator'](B(0xc6));o&&await o['invoke']([j],{'config':c,'where':'server'});c['engines'][B(0xbb)]===B(0x91)&&(m[B(0x97)]&&this[B(0xc8)][B(0xa4)]({'srcPath':B(0xb7),'destPath':this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,B(0xc0)+n]}),'context':m,'config':c}));m[B(0xb2)]&&this[B(0xc8)]['template']({'srcPath':B(0xaf),'destPath':this[B(0xc8)][B(0xcf)]({'pathParts':['imports',B(0xbb),b[B(0xca)],j,B(0xcd)+n]}),'context':m,'config':c});m[B(0x8e)]&&this[B(0xc8)][B(0xa4)]({'srcPath':B(0x7c),'destPath':this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,'fixtures.'+n]}),'context':m,'config':c});c[B(0x9b)][B(0x89)]!=='none'&&this[B(0xc8)][B(0xa4)]({'srcPath':B(0x96),'destPath':this[B(0xc8)]['pathFromApp']({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,j+'.app-tests.'+n]}),'context':m,'config':c});m['withPubs']&&this[B(0xc8)][B(0xa4)]({'srcPath':'api/publications.js','destPath':this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,B(0xc1)+n]}),'context':m,'config':c});if(c[B(0x9b)][B(0x7d)]===B(0x86)){if(g[B(0xa1)]('withGql')){const q=this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),'startup',B(0x9d),B(0x92)+c[B(0x9b)]['js']]}),r=this[B(0xc8)][B(0x99)]({'pathParts':[q],'config':c}),s=this[B(0xc8)][B(0xcf)]({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,'graphql',B(0xae)+n]}),t=B(0xb4)+l+j+B(0x7e);this[B(0xc8)][B(0xa4)]({'srcPath':B(0x8f),'destPath':s,'context':m,'config':c}),this[B(0xc8)][B(0xd1)]({'filePath':r,'content':B(0x8a)+k+'TypeDefs\x20}\x20from\x20\x27'+t+'\x27;\x0a'}),this[B(0xc8)][B(0xaa)]({'filePath':r,'content':B(0xd2)+k+B(0x80),'begin':'const','end':B(0xbd)});const u=this['fsi']['pathFromApp']({'pathParts':[B(0xbf),B(0xbb),b[B(0xca)],j,B(0x7d),'resolvers.'+n]}),v=B(0xb4)+l+j+B(0xce);this[B(0xc8)][B(0xa4)]({'srcPath':B(0x94),'destPath':u,'context':m,'config':c}),this[B(0xc8)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0x8b)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0xc8)][B(0xaa)]({'filePath':r,'content':'resolverList.push('+k+'Resolvers);\x0a\x0a','begin':B(0xc2),'end':B(0xbd)});}}this[B(0xc8)]['template']({'srcPath':B(0x95),'destPath':this['fsi'][B(0xcf)]({'pathParts':[B(0xbf),B(0x9a),'server',B(0xc7)+j+B(0xb3)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xc8)]['pathFromApp']({'pathParts':[B(0xbf),'startup','server',B(0x92)+c[B(0x9b)]['js']]});this[B(0xc8)][B(0xc9)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0xa0)});});}catch(h){console[A(0x7f)](h),process[A(0x82)](0x0);}});
@@ -1 +1 @@
1
- const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(0x135))/0x1*(-parseInt(k(0x136))/0x2)+parseInt(k(0x11c))/0x3*(parseInt(k(0x115))/0x4)+parseInt(k(0x13e))/0x5*(-parseInt(k(0x110))/0x6)+-parseInt(k(0x129))/0x7*(-parseInt(k(0x116))/0x8)+parseInt(k(0x13a))/0x9+-parseInt(k(0x134))/0xa+-parseInt(k(0x11f))/0xb*(-parseInt(k(0x112))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x64967));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x10f;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x12c)]()[m(0x132)](m(0x113))[m(0x12c)]()[m(0x124)](a96a)[m(0x132)](m(0x113));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a96c(){const q=['maka\x20g:collection\x20todos','engines','imports','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','search','startup','6413500FrrhwO','230442mRUDSj','2wlvziJ','installMeteorPackage','\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','notice','262944GZCudG','appPathPrefix','template','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','76745rBsRRQ','dir','test','injectAtEndOfFile','6ckMPzj','collections','468fmEBVl','(((.+)+)+)+$','col','1395644BFaJGq','48SdykSw','create','apply','resourceName','maka:check','checkMeteorPackage','3CadvdW','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','collection/collection.js','111463RFLnko','where','collection','withValue','.app-tests.','constructor','fsi','error','import\x20\x27./collections','pathFromApp','613473yAWkKi','mongo','tsx','toString','none'];a96c=function(){return q;};return a96c();}import{Log}from'../tools/log/log.class.js';Generator[a96n(0x117)]({'name':a96n(0x121),'aliases':[a96n(0x114)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a96n(0x131),'validOpts':[a96n(0x13f),a96n(0x120)],'description':a96n(0x138),'examples':[a96n(0x12e)]},async function(a,b){const o=a96n;try{const c=this[o(0x125)]['pathFromApp']({}),d=this[o(0x125)]['getProjectConfig']();this[o(0x125)][o(0x122)](d,async()=>{const p=o,f=paramCase(b[p(0x119)]),g={'name':pascalCase(b[p(0x119)]),'collectionName':pascalCase(b[p(0x119)]),'fileName':f,'where':b['where'],'test':d[p(0x12f)][p(0x140)],'noRename':!![]};let h='js';d[p(0x12f)]['js']===p(0x12b)&&(h='ts');!this['fsi'][p(0x11b)](p(0x12a))&&(Log[p(0x139)](p(0x13d)),await this[p(0x125)][p(0x137)](p(0x12a),{'cwd':c}));!this[p(0x125)][p(0x11b)](p(0x11a))&&(Log[p(0x139)](p(0x11d)),await this[p(0x125)]['installMeteorPackage'](p(0x11a),{'cwd':c}));this[p(0x125)]['template']({'srcPath':p(0x11e),'destPath':this[p(0x125)][p(0x128)]({'pathParts':['imports',p(0x133),b[p(0x13b)],p(0x111),b[p(0x13f)],f+'.'+h]}),'context':g,'config':d});d[p(0x12f)][p(0x140)]!==p(0x12d)&&this['fsi'][p(0x13c)]({'srcPath':'collection/tests.js','destPath':this['fsi'][p(0x128)]({'pathParts':[p(0x130),p(0x133),b[p(0x13b)],p(0x111),b['dir'],f+p(0x123)+h]}),'context':g,'config':d});const i=b[p(0x13f)]?'/'+b['dir']+'/':'/',j=this[p(0x125)][p(0x128)]({'pathParts':[p(0x130),p(0x133),b[p(0x13b)],'index.'+d[p(0x12f)]['js']]});this[p(0x125)][p(0x10f)]({'filePath':j,'content':p(0x127)+i+f+'\x27;'});});}catch(f){Log[o(0x126)](f);}});
1
+ const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x1e0))/0x1+-parseInt(k(0x1cf))/0x2*(-parseInt(k(0x1c8))/0x3)+-parseInt(k(0x1bf))/0x4*(parseInt(k(0x1d8))/0x5)+parseInt(k(0x1dd))/0x6+-parseInt(k(0x1e5))/0x7*(-parseInt(k(0x1c3))/0x8)+-parseInt(k(0x1df))/0x9+parseInt(k(0x1c9))/0xa*(parseInt(k(0x1d5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x6f917));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x1d0)]()[m(0x1cb)](m(0x1cd))[m(0x1d0)]()[m(0x1bb)](a96a)[m(0x1cb)](m(0x1cd));});a96a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a96n(0x1c1)]({'name':a96n(0x1e4),'aliases':['col'],'usage':a96n(0x1e6),'checkWhere':!![],'shortDesc':a96n(0x1c0),'validOpts':[a96n(0x1ca),a96n(0x1e3)],'description':a96n(0x1db),'examples':[a96n(0x1c6)]},async function(a,b){const o=a96n;try{const c=this[o(0x1e8)][o(0x1de)]({}),d=this[o(0x1e8)][o(0x1c4)]();this['fsi']['withValue'](d,async()=>{const p=o,f=paramCase(b[p(0x1d4)]),g={'name':pascalCase(b[p(0x1d4)]),'collectionName':pascalCase(b[p(0x1d4)]),'fileName':f,'where':b[p(0x1e3)],'test':d[p(0x1d7)]['test'],'noRename':!![]};let h='js';d['engines']['js']===p(0x1d9)&&(h='ts');!this[p(0x1e8)]['checkMeteorPackage'](p(0x1e1))&&(Log[p(0x1be)](p(0x1c5)),await this[p(0x1e8)]['installMeteorPackage'](p(0x1e1),{'cwd':c}));!this['fsi']['checkMeteorPackage'](p(0x1e2))&&(Log[p(0x1be)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x1e8)][p(0x1e7)](p(0x1e2),{'cwd':c}));this[p(0x1e8)][p(0x1c2)]({'srcPath':'collection/collection.js','destPath':this[p(0x1e8)]['pathFromApp']({'pathParts':[p(0x1cc),p(0x1dc),b[p(0x1c7)],'collections',b[p(0x1ca)],f+'.'+h]}),'context':g,'config':d});d[p(0x1d7)][p(0x1da)]!=='none'&&this[p(0x1e8)]['template']({'srcPath':p(0x1d6),'destPath':this['fsi'][p(0x1de)]({'pathParts':[p(0x1cc),p(0x1dc),b[p(0x1c7)],'collections',b[p(0x1ca)],f+p(0x1d2)+h]}),'context':g,'config':d});const i=b[p(0x1ca)]?'/'+b[p(0x1ca)]+'/':'/',j=this['fsi']['pathFromApp']({'pathParts':['imports',p(0x1dc),b[p(0x1c7)],p(0x1ce)+d[p(0x1d7)]['js']]});this[p(0x1e8)][p(0x1bd)]({'filePath':j,'content':p(0x1bc)+i+f+'\x27;'});});}catch(f){Log[o(0x1d3)](f);}});function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a96d(a,b);}function a96c(){const q=['.app-tests.','error','resourceName','6950977yBVCwF','collection/tests.js','engines','100NuTYMZ','tsx','test','\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','startup','1979190TCIZvb','pathFromApp','6589521xSfHeT','852008neyial','mongo','maka:check','where','collection','497AASBih','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','installMeteorPackage','fsi','constructor','import\x20\x27./collections','injectAtEndOfFile','notice','44076eCkaYW','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','create','template','33112dTleeM','getProjectConfig','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','maka\x20g:collection\x20todos','appPathPrefix','18wrXWQg','20JrkFtl','dir','search','imports','(((.+)+)+)+$','index.','124664OtsPbz','toString','apply'];a96c=function(){return q;};return a96c();}