@maka/maka-cli 5.0.25 → 5.0.27

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 (175) 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/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/test.js +1 -1
  100. package/bundle/obf/src/commands/undo.js +1 -1
  101. package/bundle/obf/src/commands/version.js +1 -1
  102. package/bundle/obf/src/error.js +1 -1
  103. package/bundle/obf/src/exec.js +1 -1
  104. package/bundle/obf/src/generator.js +1 -1
  105. package/bundle/obf/src/generators/_index.js +1 -1
  106. package/bundle/obf/src/generators/api.js +1 -1
  107. package/bundle/obf/src/generators/aws/_index.js +1 -1
  108. package/bundle/obf/src/generators/aws/aws.js +1 -1
  109. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  112. package/bundle/obf/src/generators/collection.js +1 -1
  113. package/bundle/obf/src/generators/component.js +1 -1
  114. package/bundle/obf/src/generators/config.js +1 -1
  115. package/bundle/obf/src/generators/dbc.js +1 -1
  116. package/bundle/obf/src/generators/dockerfile.js +1 -1
  117. package/bundle/obf/src/generators/hook.js +1 -1
  118. package/bundle/obf/src/generators/kits/_index.js +1 -1
  119. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/kit.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  131. package/bundle/obf/src/generators/layout.js +1 -1
  132. package/bundle/obf/src/generators/maka.gen.js +1 -1
  133. package/bundle/obf/src/generators/methods.js +1 -1
  134. package/bundle/obf/src/generators/package.js +1 -1
  135. package/bundle/obf/src/generators/page.js +1 -1
  136. package/bundle/obf/src/generators/publish.js +1 -1
  137. package/bundle/obf/src/generators/route.js +1 -1
  138. package/bundle/obf/src/generators/service.js +1 -1
  139. package/bundle/obf/src/generators/services/_index.js +1 -1
  140. package/bundle/obf/src/generators/services/openssl.js +1 -1
  141. package/bundle/obf/src/generators/services/translation.js +1 -1
  142. package/bundle/obf/src/maka.js +1 -1
  143. package/bundle/obf/src/templates/meteor/api/apollo-gateway.js +48 -0
  144. package/bundle/obf/src/templates/meteor/api/apollo-gateway.js.ts +53 -0
  145. package/bundle/obf/src/templates/meteor/api/graphql-api.js +61 -0
  146. package/bundle/obf/src/templates/meteor/api/graphql-api.js.ts +67 -0
  147. package/bundle/obf/src/templates/meteor/api/register-api.js +1 -0
  148. package/bundle/obf/src/templates/meteor/api/typeDefs.js +2 -1
  149. package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +2 -1
  150. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +0 -53
  151. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +0 -53
  152. package/bundle/obf/src/tool.js +1 -1
  153. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  154. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  155. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  157. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  158. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  160. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  161. package/bundle/obf/src/tools/https/https.class.js +1 -1
  162. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  163. package/bundle/obf/src/tools/log/log.class.js +1 -1
  164. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  165. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  166. package/bundle/obf/src/tools/options/options.class.js +1 -1
  167. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  168. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  169. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  170. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  171. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  172. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  173. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  174. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  175. package/package.json +1 -1
@@ -1 +1 @@
1
- const a136r=a136d;function a136c(){const t=['/>}/>\x0a','864530Pzujei','2185336MCSKbH','</Route>','search','create','startup','constructor','findAppDirectory','resourceName','14445574WjQzVG','filter','injectIntoFile','ssr','toLowerCase','private','51222JSVTaD','replace','532833qdXcBq','25895kqETuz','\x22\x20element={<Component.','routes.','<Route\x20path=\x22','<Route\x20path=\x22*\x22','117640lRbOOH','toString','route','join','9xdIYYU','length','320wAMapB','engines','split','50FIBocP','error','apply','12AtltWf','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','none','Scaffolding\x20for\x20a\x20Route.','imports','maka\x20{generate,\x20g}:{route,\x20r}','pop','client','(((.+)+)+)+$'];a136c=function(){return t;};return a136c();}(function(a,b){const o=a136d,c=a();while(!![]){try{const d=parseInt(o(0x16c))/0x1+-parseInt(o(0x175))/0x2*(parseInt(o(0x164))/0x3)+parseInt(o(0x172))/0x4*(-parseInt(o(0x167))/0x5)+parseInt(o(0x14b))/0x6*(-parseInt(o(0x166))/0x7)+parseInt(o(0x156))/0x8*(-parseInt(o(0x170))/0x9)+parseInt(o(0x155))/0xa+parseInt(o(0x15e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x3d380));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a136d;if(c){const e=c[p(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const q=a136d;return a136a[q(0x16d)]()[q(0x158)](q(0x153))[q(0x16d)]()[q(0x15b)](a136a)[q(0x158)](q(0x153));});a136a();import a136e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x14a;let f=c[d];return f;},a136d(a,b);}import{pascalCase}from'change-case';const aliases=['r'];Generator[a136r(0x159)]({'name':a136r(0x16e),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a136r(0x163),'boolFlag':!![]},{'name':a136r(0x16e)}],'usage':a136r(0x150),'shortDesc':a136r(0x14e),'examples':[]},async function(a,b){const s=a136r,{fsi:c,scaffold:d,projectConfig:f}=this;try{const g=c[s(0x15c)](),h=b[s(0x163)]??![];let i=b[s(0x15d)][s(0x174)]('/')[s(0x151)]();if(!i){Log[s(0x176)](s(0x14c));throw new UsageError();}i=pascalCase(i);let j=b['route']?'/'+b[s(0x16e)]:'/'+b[s(0x15d)][s(0x165)](/\\/g,'/')[s(0x162)]();a[s(0x171)]>0x1&&(j='/'+a[s(0x15f)](function(n){return n!=='/';})['join']('/')['toLowerCase']());j=j[s(0x165)](/\/\//g,'/');const k=f[s(0x173)]['js'],l=f[s(0x173)][s(0x161)]!==s(0x14d)?'lib':s(0x152),m=a136e[s(0x16f)](g,s(0x14f),s(0x15a),l,s(0x169)+k);h?await d[s(0x160)]({'filePath':m,'content':s(0x16a)+j+s(0x168)+i+s(0x154),'begin':['<Route\x20element={<PrivateRoute\x20/>}>'],'end':[s(0x157)]}):await d[s(0x160)]({'filePath':m,'content':s(0x16a)+j+s(0x168)+i+s(0x154),'begin':['<Route\x20index'],'end':[s(0x16b)]});}catch(n){Log[s(0x176)](n),process['exit'](0x1);}});
1
+ const a136q=a136d;function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0xb0;let f=c[d];return f;},a136d(a,b);}(function(a,b){const o=a136d,c=a();while(!![]){try{const d=parseInt(o(0xd2))/0x1+parseInt(o(0xc4))/0x2*(parseInt(o(0xc1))/0x3)+parseInt(o(0xce))/0x4+parseInt(o(0xd4))/0x5*(-parseInt(o(0xbf))/0x6)+-parseInt(o(0xb3))/0x7*(-parseInt(o(0xc9))/0x8)+-parseInt(o(0xcf))/0x9+-parseInt(o(0xd5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x4c6b4));function a136c(){const s=['constructor','lib','client','924315MXiLSs','<Route\x20path=\x22','(((.+)+)+)+$','injectIntoFile','startup','/>}/>\x0a','private','length','maka\x20{generate,\x20g}:{route,\x20r}','Scaffolding\x20for\x20a\x20Route.','route','create','66nFkvwA','toString','3uSkWwm','imports','error','895886sbFpea','engines','ssr','\x22\x20element={<Component.','search','32grQRzD','<Route\x20index','<Route\x20element={<PrivateRoute\x20/>}>','replace','resourceName','580688HEyiCP','162477JIYEYm','toLowerCase','routes.','65519VYbMQy','join','24595MooGAr','8016400lzHLLv'];a136c=function(){return s;};return a136c();}const a136b=(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;};}()),a136a=a136b(this,function(){const p=a136d;return a136a[p(0xc0)]()[p(0xc8)](p(0xb5))[p(0xc0)]()[p(0xb0)](a136a)[p(0xc8)](p(0xb5));});a136a();import a136e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{pascalCase}from'change-case';const aliases=['r'];Generator[a136q(0xbe)]({'name':a136q(0xbd),'mustBeInMakaProject':!![],'aliases':aliases,'validOpts':[{'name':a136q(0xb9),'boolFlag':!![]},{'name':a136q(0xbd)}],'usage':a136q(0xbb),'shortDesc':a136q(0xbc),'examples':[]},async function(a,b){const r=a136q,{fsi:c,scaffold:d,projectConfig:f}=this;try{const g=c['findAppDirectory'](),h=b[r(0xb9)]??![];let i=b[r(0xcd)]['split']('/')['pop']();if(!i){Log['error']('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}i=pascalCase(i);let j=b['route']?'/'+b['route']:'/'+b[r(0xcd)][r(0xcc)](/\\/g,'/')[r(0xd0)]();a[r(0xba)]>0x1&&(j='/'+a['filter'](function(n){return n!=='/';})[r(0xd3)]('/')['toLowerCase']());j=j[r(0xcc)](/\/\//g,'/');const k=f['engines']['js'],l=f[r(0xc5)][r(0xc6)]!=='none'?r(0xb1):r(0xb2),m=a136e[r(0xd3)](g,r(0xc2),r(0xb7),l,r(0xd1)+k);h?await d['injectIntoFile']({'filePath':m,'content':r(0xb4)+j+r(0xc7)+i+r(0xb8),'begin':[r(0xcb)],'end':['</Route>']}):await d[r(0xb6)]({'filePath':m,'content':r(0xb4)+j+'\x22\x20element={<Component.'+i+r(0xb8),'begin':[r(0xca)],'end':['<Route\x20path=\x22*\x22']});}catch(n){Log[r(0xc3)](n),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a137r=a137d;function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x77;let f=c[d];return f;},a137d(a,b);}(function(a,b){const o=a137d,c=a();while(!![]){try{const d=-parseInt(o(0x90))/0x1*(-parseInt(o(0x78))/0x2)+-parseInt(o(0x8d))/0x3+parseInt(o(0x77))/0x4*(-parseInt(o(0x7f))/0x5)+parseInt(o(0x87))/0x6*(parseInt(o(0x8f))/0x7)+-parseInt(o(0x83))/0x8*(-parseInt(o(0x99))/0x9)+parseInt(o(0x89))/0xa*(parseInt(o(0x93))/0xb)+-parseInt(o(0x98))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xaf8e4));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a137d;if(c){const e=c[p(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const q=a137d;return a137a[q(0x97)]()[q(0x80)](q(0x84))[q(0x97)]()[q(0x86)](a137a)[q(0x80)](q(0x84));});a137a();import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a137c(){const t=['engines','checkNpmPackage','winston\x20setimmediate','2844114mfiKQC','tsx','8899646ZJVYho','4UJbxiS','installNpmPackage','type','44BjrSYV','service','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','svc','toString','12954072avLlrY','36OpFTIC','4810088NxPIHr','655056SaKbQK','winston','create','service/logger/logger.js','projectConfig','apply','logger','5SmDpwG','search','lib','pathFromApp','2470312rlfjPk','(((.+)+)+)+$','resourceName','constructor','6yBfhEo','maka\x20g:svc\x20service-logger\x20--type=logger','331240kxxWwD'];a137c=function(){return t;};return a137c();}Generator[a137r(0x7a)]({'name':a137r(0x94),'aliases':[a137r(0x96)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a137r(0x95),'requiredOpts':[{'name':a137r(0x92),'values':[a137r(0x7e)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a137r(0x88)]},async function(a,b){const s=a137r,{cfg:c,fsi:d,pkg:f,scaffold:g}=this;try{const h=this[s(0x7c)],i=d['findAppDirectory'](),j=kebabCase(b[s(0x85)]),k={'name':pascalCase(b[s(0x85)]),'fileName':j,'camelCase':camelCase(b[s(0x85)]),'type':b['type'],'engine':h[s(0x8a)]['js'],'noRename':!![]};let l='js';h[s(0x8a)]['js']===s(0x8e)&&(l='ts');if(b['type']===s(0x7e)){!f[s(0x8b)](s(0x79))&&await f[s(0x91)](s(0x8c),{'cwd':i,'msg':'Installing\x20winston'});const m=g[s(0x82)]({'pathParts':['imports','startup',s(0x81),'services',j+'.'+l]});await g['template']({'srcPath':s(0x7b),'destPath':m,'context':k,'config':h});}}catch(n){Log['error'](n);}});
1
+ const a137r=a137d;function a137c(){const t=['4997279tDfITz','installNpmPackage','12FyAJmW','error','service','create','lib','2055485uUBhBT','resourceName','maka\x20g:svc\x20service-logger\x20--type=logger','template','maka\x20{generate,\x20g}:{service}\x20<resource-name>','checkNpmPackage','301634hGhPQe','findAppDirectory','1096WHoYcU','tsx','882548xwEcOl','6881630laDcbL','3ZaNmpC','engines','48765jJGzQO','search','svc','(((.+)+)+)+$','winston','service/logger/logger.js','logger','constructor','apply','1305PkKyoR','type'];a137c=function(){return t;};return a137c();}(function(a,b){const o=a137d,c=a();while(!![]){try{const d=parseInt(o(0x156))/0x1+-parseInt(o(0x16e))/0x2*(parseInt(o(0x174))/0x3)+-parseInt(o(0x172))/0x4+-parseInt(o(0x168))/0x5*(-parseInt(o(0x163))/0x6)+-parseInt(o(0x161))/0x7+-parseInt(o(0x170))/0x8*(parseInt(o(0x15f))/0x9)+parseInt(o(0x173))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x6ed12));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a137d;if(c){const e=c[p(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const q=a137d;return a137a['toString']()[q(0x157)](q(0x159))['toString']()[q(0x15d)](a137a)[q(0x157)](q(0x159));});a137a();import{camelCase,kebabCase,pascalCase}from'change-case';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x155;let f=c[d];return f;},a137d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a137r(0x166)]({'name':a137r(0x165),'aliases':[a137r(0x158)],'usage':a137r(0x16c),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a137r(0x15c)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a137r(0x16a)]},async function(a,b){const s=a137r,{cfg:c,fsi:d,pkg:f,scaffold:g}=this;try{const h=this['projectConfig'],i=d[s(0x16f)](),j=kebabCase(b['resourceName']),k={'name':pascalCase(b['resourceName']),'fileName':j,'camelCase':camelCase(b[s(0x169)]),'type':b['type'],'engine':h[s(0x155)]['js'],'noRename':!![]};let l='js';h[s(0x155)]['js']===s(0x171)&&(l='ts');if(b[s(0x160)]==='logger'){!f[s(0x16d)](s(0x15a))&&await f[s(0x162)]('winston\x20setimmediate',{'cwd':i,'msg':'Installing\x20winston'});const m=g['pathFromApp']({'pathParts':['imports','startup',s(0x167),'services',j+'.'+l]});await g[s(0x16b)]({'srcPath':s(0x15b),'destPath':m,'context':k,'config':h});}}catch(n){Log[s(0x164)](n);}});
@@ -1 +1 @@
1
- function a138c(){var h=['535996ZtsXxz','toString','417738MUyCSE','(((.+)+)+)+$','7KhCcmm','search','2748JnPIlZ','2175291cisBJI','6uyVDth','constructor','9220Aayxvn','361808rlCZOt','5gLqMeR','14HEaAaj','6622pASxbZ','1770100zHsvMK'];a138c=function(){return h;};return a138c();}(function(a,b){var f=a138d,c=a();while(!![]){try{var d=parseInt(f(0x110))/0x1*(-parseInt(f(0x106))/0x2)+parseInt(f(0x104))/0x3*(parseInt(f(0x10c))/0x4)+parseInt(f(0x108))/0x5*(-parseInt(f(0x10e))/0x6)+parseInt(f(0x109))/0x7*(parseInt(f(0x107))/0x8)+parseInt(f(0x103))/0x9+-parseInt(f(0x10b))/0xa+-parseInt(f(0x10a))/0xb*(parseInt(f(0x102))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x2cc5c));function a138d(a,b){var c=a138c();return a138d=function(d,e){d=d-0x102;var f=c[d];return f;},a138d(a,b);}var a138b=(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;};}()),a138a=a138b(this,function(){var g=a138d;return a138a[g(0x10d)]()[g(0x111)](g(0x10f))[g(0x10d)]()[g(0x105)](a138a)[g(0x111)](g(0x10f));});a138a();import'./translation.js';import'./openssl.js';
1
+ function a138c(){var i=['14841bRqCsj','395MrZkEh','2900ctMayn','8190136RpaoMQ','5484ZbrjZM','498zhJfvu','626778IYwNhR','5160351EyjHGs','search','187755AwctRe','constructor','1953SuBbeU','apply','(((.+)+)+)+$'];a138c=function(){return i;};return a138c();}(function(a,b){var f=a138d,c=a();while(!![]){try{var d=-parseInt(f(0x8e))/0x1+parseInt(f(0x8b))/0x2+-parseInt(f(0x82))/0x3*(parseInt(f(0x89))/0x4)+-parseInt(f(0x86))/0x5*(-parseInt(f(0x8a))/0x6)+parseInt(f(0x8c))/0x7+parseInt(f(0x88))/0x8+parseInt(f(0x85))/0x9*(-parseInt(f(0x87))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x7f8b4));var a138b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a138d;if(c){var e=c[g(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){var h=a138d;return a138a['toString']()[h(0x8d)](h(0x84))['toString']()[h(0x81)](a138a)[h(0x8d)](h(0x84));});a138a();import'./translation.js';function a138d(a,b){var c=a138c();return a138d=function(d,e){d=d-0x81;var f=c[d];return f;},a138d(a,b);}import'./openssl.js';
@@ -1 +1 @@
1
- const a139l=a139d;(function(a,b){const i=a139d,c=a();while(!![]){try{const d=parseInt(i(0x1db))/0x1+-parseInt(i(0x1e2))/0x2*(parseInt(i(0x1ed))/0x3)+-parseInt(i(0x1eb))/0x4+parseInt(i(0x1d4))/0x5+-parseInt(i(0x1d8))/0x6+parseInt(i(0x1e1))/0x7*(-parseInt(i(0x1d3))/0x8)+parseInt(i(0x1ea))/0x9*(parseInt(i(0x1ec))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x317d6));function a139c(){const n=['error','maka\x20g:sslconfig\x20--env\x20dev','getMakaProjectConfig','constructor','openssl.conf','7BReiNV','32254cHqpNX','service','join','apply','scaffold','appName','search','cfg','3083391xcvqgb','338244MeIxPs','20tUPjWa','33YxxZrL','sslconfig','1977424rCYGlo','777895vAQBgP','toString','getAppConfigPath','template','1284030TJHJBK','_keys','(((.+)+)+)+$','85074bKMEZo'];a139c=function(){return n;};return a139c();}const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a139d;if(c){const e=c[j(0x1e5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const k=a139d;return a139a[k(0x1d5)]()[k(0x1e8)](k(0x1da))[k(0x1d5)]()[k(0x1df)](a139a)[k(0x1e8)]('(((.+)+)+)+$');});a139a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a139e from'path';function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a139d(a,b);}Generator['create']({'name':a139l(0x1ee),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','resourceNameRequired':![],'requiredOpts':['env'],'examples':[a139l(0x1dd)],'validOpts':[]},async function(a,b){const m=a139l;try{const c=this[m(0x1e9)][m(0x1de)](),d=this['cfg'][m(0x1d6)](b['env']),f=a139e[m(0x1e4)](d,m(0x1d9),m(0x1e0)),g={'app':c[m(0x1e7)],'noRename':!![]};await this[m(0x1e6)][m(0x1d7)]({'srcPath':'openssl/openssl.conf','destPath':f,'framework':m(0x1e3),'context':g,'config':c});}catch(h){Log[m(0x1dc)](h);}});
1
+ const a139l=a139d;(function(a,b){const i=a139d,c=a();while(!![]){try{const d=-parseInt(i(0x126))/0x1+-parseInt(i(0x12b))/0x2+-parseInt(i(0x12e))/0x3*(parseInt(i(0x139))/0x4)+-parseInt(i(0x123))/0x5+-parseInt(i(0x134))/0x6*(-parseInt(i(0x120))/0x7)+-parseInt(i(0x12a))/0x8+-parseInt(i(0x12c))/0x9*(-parseInt(i(0x130))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xb84a5));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a139d;if(c){const e=c[j(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const k=a139d;return a139a[k(0x136)]()['search'](k(0x131))[k(0x136)]()[k(0x11d)](a139a)[k(0x135)](k(0x131));});function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x11d;let f=c[d];return f;},a139d(a,b);}function a139c(){const n=['appName','openssl.conf','1272BlhomD','search','toString','template','maka\x20g:sslconfig\x20--env\x20dev','1495436qiPbfn','constructor','apply','maka\x20{generate,\x20g}:sslconfig','10675Oilrbm','create','openssl/openssl.conf','5680295XjNVZO','join','cfg','905798BoTFdK','Generate\x20a\x20new\x20openssl\x20config\x20file','error','scaffold','4925520qKgrth','1266486cfDxVD','1675719QywKpk','getMakaProjectConfig','3Rrcjdj','env','220OeQPLv','(((.+)+)+)+$'];a139c=function(){return n;};return a139c();}a139a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a139e from'path';Generator[a139l(0x121)]({'name':'sslconfig','usage':a139l(0x11f),'shortDesc':a139l(0x127),'resourceNameRequired':![],'requiredOpts':[a139l(0x12f)],'examples':[a139l(0x138)],'validOpts':[]},async function(a,b){const m=a139l;try{const c=this[m(0x125)][m(0x12d)](),d=this[m(0x125)]['getAppConfigPath'](b['env']),f=a139e[m(0x124)](d,'_keys',m(0x133)),g={'app':c[m(0x132)],'noRename':!![]};await this[m(0x129)][m(0x137)]({'srcPath':m(0x122),'destPath':f,'framework':'service','context':g,'config':c});}catch(h){Log[m(0x128)](h);}});
@@ -1 +1 @@
1
- const a140D=a140d;function a140c(){const F=['installNpmPackage','4942410EVexiw','i18next\x20i18next-browser-languagedetector\x20react-i18next','apply','280482COkTfy','constructor','setProjectConfig','import\x20\x27../lib/services/translations/i18n\x27;\x0a','lang','search','lib','locales','Locale\x20already\x20exported:\x20','services','findAppDirectory','2097305faVyic','injectAtEndOfFile','engines','server','Locale\x20already\x20defined:\x20','1682823iuUPhL','imports','translation','toString','index.js','maka\x20g:translation\x20--lang=en\x20(default)','2JZMYqx','export\x20{\x20default\x20as\x20','11649834cewUsh','translations','root','i18n/index.js','default\x20as\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','meteor','error','10jMtcWV','warn','template','rewriteDestinationPathForEngine','isFile','checkNpmPackage','scaffold','Generate\x20a\x20new\x20locale\x20translation','\x20}\x20from\x20\x27./','grep','import\x20\x27../lib/services/translations/i18n\x27;','startup','injectAtBeginningOfFile','(((.+)+)+)+$','readFileSync','ssr','maka\x20{generate,\x20g}:translation','pathFromApp','service','i18n.js','create','maka\x20g:translation\x20--lang=de','3452888rRJUdO','1862068etMXBS'];a140c=function(){return F;};return a140c();}(function(a,b){const A=a140d,c=a();while(!![]){try{const d=-parseInt(A(0x11a))/0x1+-parseInt(A(0xf4))/0x2*(parseInt(A(0x12a))/0x3)+-parseInt(A(0x115))/0x4*(parseInt(A(0xfe))/0x5)+parseInt(A(0x117))/0x6+-parseInt(A(0x125))/0x7+parseInt(A(0x114))/0x8+parseInt(A(0xf6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x74a04));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a140d;if(c){const e=c[B(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const C=a140d;return a140a['toString']()[C(0x11f)]('(((.+)+)+)+$')[C(0x12d)]()[C(0x11b)](a140a)['search'](C(0x10b));});a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'fs';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0xf2;let f=c[d];return f;},a140d(a,b);}Generator[a140D(0x112)]({'name':a140D(0x12c),'usage':a140D(0x10e),'aliases':['t'],'resourceNameRequired':![],'requiredOpts':[{'name':a140D(0x11e),'boolFlag':![],'regex':/^[a-z]{2}$/}],'mustBeInMakaProject':!![],'shortDesc':a140D(0x105),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a140D(0xf3),'maka\x20g:translation\x20--lang=fr',a140D(0x113)],'validOpts':[]},async function(a,b){const E=a140D;try{const {fsi:c,scaffold:d,pkg:f,cfg:g,projectConfig:h}=this,i=c[E(0x124)]();!b[E(0x11e)]&&(b['lang']='en');!b[E(0xf8)]&&!f[E(0x103)]('i18next')&&(Log[E(0xff)](E(0xfb)),f[E(0x116)](E(0x118),{'cwd':i}),g[E(0x11c)]('features.withTranslations',!![]));const j=d['pathFromApp']({'pathParts':[E(0x12b),E(0x109),'client',E(0xf2)]}),k=d[E(0x101)]({'pathParts':[j],'config':h}),l=c[E(0x107)](a140e['readFileSync'](k)[E(0x12d)](),E(0x108))[0x0]&&!![];if(h['engines'][E(0x10d)]===E(0xfc)){!l&&d[E(0x10a)]({'filePath':k,'content':E(0x11d)});const w=d[E(0x10f)]({'pathParts':[E(0x12b),E(0x109),E(0x128),'index.js']}),x=d['rewriteDestinationPathForEngine']({'pathParts':[w],'config':h}),y=c[E(0x107)](a140e['readFileSync'](x)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!y&&d['injectAtBeginningOfFile']({'filePath':x,'content':E(0x11d)});}else!l&&d[E(0x10a)]({'filePath':k,'content':E(0x11d)});const m={'app':h['appName'],'config':h},n=d[E(0x10f)]({'pathParts':[E(0x12b),E(0x109),E(0x120),E(0x123),E(0xf7),E(0x111)]}),o=c[E(0x102)](d[E(0x101)]({'pathParts':[n],'config':h}));!o&&await d[E(0x100)]({'srcPath':'i18n/i18n.js','destPath':n,'framework':E(0x110),'context':m,'config':h});const p=d['pathFromApp']({'pathParts':[E(0x12b),E(0x109),E(0x120),E(0x123),'translations',E(0x121),b[E(0x11e)]+'.js']}),q=d[E(0x101)]({'pathParts':[p],'config':h}),r=c[E(0x102)](q);!r?await this[E(0x104)][E(0x100)]({'srcPath':'i18n/locales.js','destPath':p,'framework':E(0x110),'context':m,'config':h}):Log[E(0xff)](E(0x129)+q);const s=d[E(0x10f)]({'pathParts':[E(0x12b),E(0x109),E(0x120),'services',E(0xf7),E(0x121),'index.'+h[E(0x127)]['js']]}),t=d[E(0x101)]({'pathParts':[s],'config':h}),u=c[E(0x102)](t);!u&&await d[E(0x100)]({'srcPath':E(0xf9),'destPath':s,'framework':E(0x110),'context':m,'config':h});const v=c[E(0x107)](a140e[E(0x10c)](s)[E(0x12d)](),E(0xfa)+b['lang'])[0x0]&&!![];!v?await d[E(0x126)]({'filePath':s,'content':E(0xf5)+b[E(0x11e)]+E(0x106)+b[E(0x11e)]+'\x27;'}):Log[E(0xff)](E(0x122)+s);}catch(z){Log[E(0xfd)](z),process['exit'](0x1);}});
1
+ const a140C=a140d;(function(a,b){const A=a140d,c=a();while(!![]){try{const d=parseInt(A(0x1ee))/0x1*(parseInt(A(0x1fb))/0x2)+-parseInt(A(0x219))/0x3+parseInt(A(0x20f))/0x4+-parseInt(A(0x1eb))/0x5*(parseInt(A(0x215))/0x6)+parseInt(A(0x203))/0x7+-parseInt(A(0x1ea))/0x8+parseInt(A(0x211))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xb54ee));const a140b=(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;};}()),a140a=a140b(this,function(){const B=a140d;return a140a[B(0x1f5)]()[B(0x1e7)](B(0x20d))[B(0x1f5)]()['constructor'](a140a)[B(0x1e7)](B(0x20d));});function a140c(){const E=['service','ssr','index.js','index.','error','734LFZMPG','lang','grep','i18n/index.js','meteor','services','maka\x20g:translation\x20--lang=fr','features.withTranslations','3802526qsfNTG','pathFromApp','server','i18n.js','Locale\x20already\x20defined:\x20','\x20}\x20from\x20\x27./','injectAtEndOfFile','imports','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','installNpmPackage','(((.+)+)+)+$','exit','5544564WDUYKa','root','7321644nZeVkY','warn','checkNpmPackage','template','8164272XDEnhw','lib','appName','i18next\x20i18next-browser-languagedetector\x20react-i18next','3709104YsWCBC','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','locales','default\x20as\x20','startup','translations','search','import\x20\x27../lib/services/translations/i18n\x27;\x0a','maka\x20{generate,\x20g}:translation','2406712NDbJjq','5iLbJoe','isFile','i18n/i18n.js','2446GenUDj','injectAtBeginningOfFile','readFileSync','create','client','rewriteDestinationPathForEngine','engines','toString'];a140c=function(){return E;};return a140c();}function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a140d(a,b);}a140a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a140e from'fs';Generator[a140C(0x1f1)]({'name':'translation','usage':a140C(0x1e9),'aliases':['t'],'resourceNameRequired':![],'requiredOpts':[{'name':a140C(0x1fc),'boolFlag':![],'regex':/^[a-z]{2}$/}],'mustBeInMakaProject':!![],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a140C(0x20b),'examples':['maka\x20g:translation\x20--lang=en\x20(default)',a140C(0x201),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const D=a140C;try{const {fsi:c,scaffold:d,pkg:f,cfg:g,projectConfig:h}=this,i=c['findAppDirectory']();!b[D(0x1fc)]&&(b['lang']='en');!b[D(0x210)]&&!f[D(0x213)]('i18next')&&(Log['warn'](D(0x21a)),f[D(0x20c)](D(0x218),{'cwd':i}),g['setProjectConfig'](D(0x202),!![]));const j=d[D(0x204)]({'pathParts':['imports',D(0x21d),D(0x1f2),D(0x1f8)]}),k=d[D(0x1f3)]({'pathParts':[j],'config':h}),l=c['grep'](a140e['readFileSync'](k)[D(0x1f5)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(h[D(0x1f4)][D(0x1f7)]===D(0x1ff)){!l&&d[D(0x1ef)]({'filePath':k,'content':D(0x1e8)});const w=d[D(0x204)]({'pathParts':[D(0x20a),D(0x21d),D(0x205),'index.js']}),x=d['rewriteDestinationPathForEngine']({'pathParts':[w],'config':h}),y=c[D(0x1fd)](a140e[D(0x1f0)](x)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!y&&d[D(0x1ef)]({'filePath':x,'content':D(0x1e8)});}else!l&&d[D(0x1ef)]({'filePath':k,'content':D(0x1e8)});const m={'app':h[D(0x217)],'config':h},n=d['pathFromApp']({'pathParts':[D(0x20a),'startup',D(0x216),'services',D(0x21e),D(0x206)]}),o=c['isFile'](d[D(0x1f3)]({'pathParts':[n],'config':h}));!o&&await d['template']({'srcPath':D(0x1ed),'destPath':n,'framework':'service','context':m,'config':h});const p=d[D(0x204)]({'pathParts':['imports','startup',D(0x216),D(0x200),D(0x21e),D(0x21b),b['lang']+'.js']}),q=d[D(0x1f3)]({'pathParts':[p],'config':h}),r=c[D(0x1ec)](q);!r?await this['scaffold'][D(0x214)]({'srcPath':'i18n/locales.js','destPath':p,'framework':D(0x1f6),'context':m,'config':h}):Log[D(0x212)](D(0x207)+q);const s=d[D(0x204)]({'pathParts':['imports',D(0x21d),D(0x216),'services',D(0x21e),'locales',D(0x1f9)+h[D(0x1f4)]['js']]}),t=d[D(0x1f3)]({'pathParts':[s],'config':h}),u=c[D(0x1ec)](t);!u&&await d['template']({'srcPath':D(0x1fe),'destPath':s,'framework':D(0x1f6),'context':m,'config':h});const v=c[D(0x1fd)](a140e[D(0x1f0)](s)['toString'](),D(0x21c)+b['lang'])[0x0]&&!![];!v?await d[D(0x209)]({'filePath':s,'content':'export\x20{\x20default\x20as\x20'+b['lang']+D(0x208)+b[D(0x1fc)]+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+s);}catch(z){Log[D(0x1fa)](z),process[D(0x20e)](0x1);}});
@@ -1 +1 @@
1
- const a141l=a141d;function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a141d(a,b);}(function(a,b){const j=a141d,c=a();while(!![]){try{const d=parseInt(j(0x1fd))/0x1*(parseInt(j(0x1fe))/0x2)+-parseInt(j(0x1fb))/0x3*(parseInt(j(0x201))/0x4)+-parseInt(j(0x1f4))/0x5*(parseInt(j(0x1f2))/0x6)+parseInt(j(0x1f8))/0x7+parseInt(j(0x205))/0x8+parseInt(j(0x1fc))/0x9+parseInt(j(0x203))/0xa*(-parseInt(j(0x1f9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x82551));const a141b=(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;};}()),a141a=a141b(this,function(){const k=a141d;return a141a['toString']()[k(0x207)](k(0x1f7))['toString']()[k(0x1f3)](a141a)[k(0x207)](k(0x1f7));});a141a();import a141e from'minimist';import a141f from'os';import a141g from'path';import a141h from'humps';import a141i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a141c(){const m=['11346COlsSw','constructor','1835lMqoXo','url','slice','(((.+)+)+)+$','6321812uKsfgp','22bLuKSH','BROWSERSLIST_IGNORE_OLD_DATA','1683qIsmoV','4776318UCisFb','1lzPvut','631208BCDNKl','dirname','camelizeKeys','4616cfhFvf','MAKA_COMMAND_PATH','2142830AQUdsX','NODE_NO_WARNINGS','4435008NFzCEX','run','search','env','parse'];a141c=function(){return m;};return a141c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a141l(0x1f5)]),__dirname=a141g[a141l(0x1ff)](__filename);global[a141l(0x202)]=__dirname;const total_memory=a141f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']='--max-old-space-size='+total_mem_in_mb,process[a141l(0x208)][a141l(0x1fa)]='1',process[a141l(0x208)][a141l(0x204)]='1';const argv=a141e(process['argv'][a141l(0x1f6)](0x2)),args=argv['_'],deepCopyArgv=JSON[a141l(0x209)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a141h[a141l(0x200)](deepCopyArgv);a141i[a141l(0x206)](args,opts);
1
+ const a141m=a141d;(function(a,b){const j=a141d,c=a();while(!![]){try{const d=-parseInt(j(0x93))/0x1*(-parseInt(j(0x92))/0x2)+parseInt(j(0x8f))/0x3+parseInt(j(0x9b))/0x4*(-parseInt(j(0x97))/0x5)+parseInt(j(0x9c))/0x6*(parseInt(j(0x94))/0x7)+parseInt(j(0x99))/0x8+parseInt(j(0x8a))/0x9*(-parseInt(j(0x8b))/0xa)+parseInt(j(0x8e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xaecfe));function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x89;let f=c[d];return f;},a141d(a,b);}const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a141d;if(c){const e=c[k(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const l=a141d;return a141a[l(0x9e)]()[l(0xa2)](l(0x95))[l(0x9e)]()['constructor'](a141a)[l(0xa2)](l(0x95));});a141a();import a141e from'minimist';import a141f from'os';import a141g from'path';import a141h from'humps';import a141i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a141g[a141m(0x89)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a141f[a141m(0x8d)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a141m(0x98)](total_mem_in_mb),process[a141m(0xa0)][a141m(0x9a)]=a141m(0x9d)+total_mem_in_mb,process[a141m(0xa0)][a141m(0x90)]='1',process[a141m(0xa0)][a141m(0x9f)]='1';function a141c(){const n=['parse','search','camelizeKeys','dirname','36iOyIKQ','1291780NWnukQ','run','totalmem','509300cqKhfC','2458572vbVoIN','BROWSERSLIST_IGNORE_OLD_DATA','apply','257278FATPFM','5hzwVFh','5271MwGROv','(((.+)+)+)+$','argv','1867205yHdRun','floor','2553640GAUKCz','TOOL_NODE_FLAGS','12yvFFyZ','4182WrCXOb','--max-old-space-size=','toString','NODE_NO_WARNINGS','env'];a141c=function(){return n;};return a141c();}const argv=a141e(process[a141m(0x96)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a141m(0xa1)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a141h[a141m(0xa3)](deepCopyArgv);a141i[a141m(0x8c)](args,opts);
@@ -0,0 +1,48 @@
1
+ import { ApolloServer } from '@apollo/server';
2
+ import { ApolloGateway, IntrospectAndCompose } from '@apollo/gateway';
3
+ import { WebApp } from 'meteor/webapp';
4
+ import express from 'express';
5
+ import { expressMiddleware } from '@apollo/server/express4';
6
+ import { Meteor } from 'meteor/meteor';
7
+
8
+ // Use `IntrospectAndCompose` to introspect the 'rules' subgraph
9
+ const gateway = new ApolloGateway({
10
+ supergraphSdl: new IntrospectAndCompose({
11
+ subgraphs: [
12
+ ],
13
+ }),
14
+ });
15
+
16
+ const server = new ApolloServer({
17
+ gateway, // Attach the Apollo Gateway
18
+ cacheControl: {
19
+ defaultMaxAge: 5, // Cache control settings
20
+ },
21
+ cache: 'bounded',
22
+ formatError: (err) => {
23
+ if (Meteor.isProduction) {
24
+ return { message: err.extensions?.code || 'Internal Server Error' };
25
+ }
26
+ console.error(err);
27
+ return err;
28
+ },
29
+ });
30
+
31
+ const startApolloGateway = async (server) => {
32
+ await server.start();
33
+
34
+ // Use Meteor's WebApp to handle the Apollo middleware
35
+ WebApp.connectHandlers.use(
36
+ '/graphql', // The endpoint for the federated GraphQL API
37
+ express.json({ limit: '5mb' }), // Handle JSON requests
38
+ expressMiddleware(server, {
39
+ context: async ({ req }) => {
40
+ const token = req.headers.authorization || null;
41
+ return { token }; // Pass token for authentication
42
+ },
43
+ }),
44
+ );
45
+ };
46
+
47
+ // Start the Apollo Gateway server
48
+ startApolloGateway(server);
@@ -0,0 +1,53 @@
1
+ import { ApolloServer } from '@apollo/server';
2
+ import { ApolloGateway, IntrospectAndCompose } from '@apollo/gateway';
3
+ import { WebApp } from 'meteor/webapp';
4
+ import express, { Request, Response } from 'express';
5
+ import { expressMiddleware } from '@apollo/server/express4';
6
+ import { Meteor } from 'meteor/meteor';
7
+
8
+ // Define the context interface
9
+ interface Context {
10
+ token?: string;
11
+ }
12
+
13
+ // Use `IntrospectAndCompose` to introspect the subgraphs (empty for now, add subgraphs as needed)
14
+ const gateway = new ApolloGateway({
15
+ supergraphSdl: new IntrospectAndCompose({
16
+ subgraphs: [
17
+ ],
18
+ }),
19
+ });
20
+
21
+ const server = new ApolloServer<Context>({
22
+ gateway, // Attach the Apollo Gateway
23
+ cacheControl: {
24
+ defaultMaxAge: 5, // Cache control settings
25
+ },
26
+ cache: 'bounded',
27
+ formatError: (err) => {
28
+ if (Meteor.isProduction) {
29
+ return { message: err.extensions?.code || 'Internal Server Error' };
30
+ }
31
+ console.error(err);
32
+ return err;
33
+ },
34
+ });
35
+
36
+ const startApolloGateway = async (server: ApolloServer<Context>) => {
37
+ await server.start();
38
+
39
+ // Use Meteor's WebApp to handle the Apollo middleware
40
+ WebApp.connectHandlers.use(
41
+ '/graphql', // The endpoint for the federated GraphQL API
42
+ express.json({ limit: '5mb' }), // Handle JSON requests
43
+ expressMiddleware(server, {
44
+ context: async ({ req }: { req: Request }): Promise<Context> => {
45
+ const token = req.headers.authorization || null;
46
+ return { token }; // Pass token for authentication
47
+ },
48
+ }),
49
+ );
50
+ };
51
+
52
+ // Start the Apollo Gateway server
53
+ startApolloGateway(server);
@@ -0,0 +1,61 @@
1
+ import { resolvers } from './graphql/resolvers';
2
+ import { typeDefs } from './graphql/typeDefs';
3
+
4
+ import { ApolloServer } from '@apollo/server';
5
+ import { WebApp } from 'meteor/webapp';
6
+ import { expressMiddleware } from '@apollo/server/express4';
7
+ import { buildSubgraphSchema } from '@apollo/subgraph';
8
+ import express from 'express';
9
+ import rateLimit from 'express-rate-limit';
10
+
11
+ // Create rate limiter middleware
12
+ const limiter = rateLimit({
13
+ windowMs: 15 * 60 * 1000, // 15 minutes
14
+ max: 1, // Limit each IP to 100 requests per windowMs
15
+ message: 'Too many requests, please try again later.',
16
+ standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
17
+ legacyHeaders: false, // Disable the `X-RateLimit-*` headers,
18
+ keyGenerator: (req) => {
19
+ // Trust the 'X-Forwarded-For' header for client IP, but only if it exists
20
+ return req.headers['x-forwarded-for'] || req.ip;
21
+ }
22
+ });
23
+
24
+ const server = new ApolloServer({
25
+ schema: buildSubgraphSchema({ typeDefs, resolvers }),
26
+ cacheControl: {
27
+ defaultMaxAge: 5, // seconds
28
+ },
29
+ cache: 'bounded',
30
+ formatError: (err) => {
31
+ if (Meteor.isProduction) {
32
+ // Don't give specific errors to the client
33
+ err.message = err.extensions.code; // eslint-disable-line no-param-reassign
34
+ return err;
35
+ }
36
+ console.error(err);
37
+ return err;
38
+ },
39
+ validate: true, // Validates the schema on startup
40
+ });
41
+
42
+ const startApolloServer = async (server) => {
43
+ await server.start();
44
+
45
+ // Use Meteor's built-in WebApp and Express's built-in JSON parser
46
+ WebApp.connectHandlers.use(
47
+ '/graphql/<%= apiVersion %>/<%= fileName %>',
48
+ limiter, // Apply rate limiter middleware before GraphQL middleware
49
+ express.json({ limit: '5mb' }),
50
+ expressMiddleware(server, {
51
+ context: async ({ req }) => {
52
+ const token = req.headers.authorization;
53
+ // Validate and decode token here, e.g., using JWT:
54
+ return { token };
55
+ }
56
+ }),
57
+ );
58
+ };
59
+
60
+ // Start the Apollo server
61
+ startApolloServer(server);
@@ -0,0 +1,67 @@
1
+ import { resolvers } from './graphql/resolvers';
2
+ import { typeDefs } from './graphql/typeDefs';
3
+
4
+ import { ApolloServer } from '@apollo/server';
5
+ import { WebApp } from 'meteor/webapp';
6
+ import { expressMiddleware } from '@apollo/server/express4';
7
+ import { buildSubgraphSchema } from '@apollo/subgraph';
8
+ import express, { Request } from 'express';
9
+ import rateLimit from 'express-rate-limit';
10
+
11
+ // Define the types for the context
12
+ interface Context {
13
+ token?: string;
14
+ }
15
+
16
+ // Create rate limiter middleware
17
+ const limiter = rateLimit({
18
+ windowMs: 15 * 60 * 1000, // 15 minutes
19
+ max: 100, // Limit each IP to 100 requests per windowMs
20
+ message: 'Too many requests, please try again later.',
21
+ standardHeaders: true, // Return rate limit info in the `RateLimit-*` headers
22
+ legacyHeaders: false, // Disable the `X-RateLimit-*` headers
23
+ keyGenerator: (req: Request) => {
24
+ // Trust the 'X-Forwarded-For' header for client IP, but only if it exists
25
+ return req.headers['x-forwarded-for'] || req.ip;
26
+ }
27
+ });
28
+
29
+ // Create the Apollo Server instance
30
+ const server = new ApolloServer<Context>({
31
+ schema: buildSubgraphSchema({ typeDefs, resolvers }), // Federation-ready schema
32
+ cacheControl: {
33
+ defaultMaxAge: 5, // seconds
34
+ },
35
+ cache: 'bounded',
36
+ formatError: (err) => {
37
+ if (Meteor.isProduction) {
38
+ // Hide specific error details in production
39
+ err.message = err.extensions?.code || 'Internal Server Error'; // eslint-disable-line no-param-reassign
40
+ return err;
41
+ }
42
+ console.error(err);
43
+ return err;
44
+ },
45
+ validate: true, // Validates the schema on startup
46
+ });
47
+
48
+ const startApolloServer = async (server: ApolloServer<Context>) => {
49
+ await server.start();
50
+
51
+ // Use Meteor's WebApp with Express's JSON parser
52
+ WebApp.connectHandlers.use(
53
+ '/graphql/<%= apiVersion %>/<%= fileName %>',
54
+ limiter, // Apply rate limiter middleware before GraphQL middleware
55
+ express.json({ limit: '5mb' }), // JSON parsing middleware
56
+ expressMiddleware(server, {
57
+ context: async ({ req }: { req: Request }): Promise<Context> => {
58
+ const token = req.headers.authorization || null;
59
+ // You can add additional validation here (e.g., JWT validation)
60
+ return { token };
61
+ },
62
+ }),
63
+ );
64
+ };
65
+
66
+ // Start the Apollo server
67
+ startApolloServer(server);
@@ -1,2 +1,3 @@
1
1
  <% if( withMethods ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rpc-methods';<% } %>
2
2
  <% if( withRest ) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-rest-api';<% } %>
3
+ <% if (withGql) { %>import '../../api/<%= apiVersion %><%= optsDir %><%= fileName %>/<%= fileName %>-<%= apiVersion %>-graphql-api';<% } %>
@@ -1,4 +1,5 @@
1
- export const typeDefs = `
1
+ import { gql } from 'graphql-tag';
2
+ export const typeDefs = gql`
2
3
  type Query {
3
4
  <%= camelCase %>: String
4
5
  }
@@ -1,4 +1,5 @@
1
- export const typeDefs = `
1
+ import { gql } from 'graphql-tag';
2
+ export const typeDefs = gql`
2
3
  type Query {
3
4
  <%= camelCase %>: String
4
5
  }
@@ -3,59 +3,6 @@ import { WebAppInternals } from "meteor/webapp";
3
3
  Meteor.startup(() => {
4
4
  WebAppInternals.setInlineScriptsAllowed(false);
5
5
  });
6
- <% if (config.engines.graphql === 'apollo') { %>
7
- import { ApolloServer } from '@apollo/server';
8
- import bodyParser from 'body-parser';
9
- import { WebApp } from 'meteor/webapp';
10
- import { mergeTypeDefs, mergeResolvers } from '@graphql-tools/merge';
11
- import {
12
- ApolloServerPluginLandingPageGraphQLPlayground
13
- } from '@apollo/server-plugin-landing-page-graphql-playground';
14
- import { expressMiddleware } from '@apollo/server/express4';
15
- import express from 'express';
16
-
17
- const typeList = [];
18
- const resolverList = [];
19
- if (typeList.length > 0 && resolverList.length > 0) {
20
- const expressApp = express();
21
- const typeDefs = mergeTypeDefs(typeList);
22
- const resolvers = mergeResolvers(resolverList);
23
- const server = new ApolloServer({
24
- typeDefs,
25
- resolvers,
26
- cacheControl: {
27
- defaultMaxAge: 60, //seconds
28
- },
29
- cache: 'bounded',
30
- formatError: (err) => {
31
- if (Meteor.isProduction) {
32
- // Don't give specific errors to the client
33
- sysLogger.error(err);
34
- err.message = err.extensions.code; // eslint-disable-line no-param-reassign
35
- return err;
36
- }
37
- console.log(err);
38
- return err;
39
- },
40
- plugins: [
41
- ApolloServerPluginLandingPageGraphQLPlayground()
42
- ]
43
- });
44
-
45
- const startApolloServer = async(server) => {
46
- await server.start();
47
- expressApp.use(
48
- '/graphql',
49
- bodyParser.json({ limit: '50mb' }),
50
- expressMiddleware(server, {
51
- context: async ({ req }) => ({ token: req.headers.authorization })
52
- }),
53
- );
54
- WebApp.connectHandlers.use(expressApp);
55
- };
56
-
57
- startApolloServer(server);
58
- }<% } %>
59
6
  <% if (config.engines.ssr === 'meteor') { %>
60
7
  /************* SSR Code ********************/
61
8
  import AppRoutes from '../lib/routes';
@@ -3,59 +3,6 @@ import { WebAppInternals } from "meteor/webapp";
3
3
  Meteor.startup(() => {
4
4
  WebAppInternals.setInlineScriptsAllowed(false);
5
5
  });
6
- <% if (config.engines.graphql === 'apollo') { %>
7
- import bodyParser from 'body-parser';
8
- import { ApolloServer } from '@apollo/server';
9
- import { WebApp } from 'meteor/webapp';
10
- import { mergeTypeDefs, mergeResolvers } from '@graphql-tools/merge';
11
- import {
12
- ApolloServerPluginLandingPageGraphQLPlayground
13
- } from '@apollo/server-plugin-landing-page-graphql-playground';
14
- import { expressMiddleware } from '@apollo/server/express4';
15
- import express from 'express';
16
-
17
- const typeList = [];
18
- const resolverList = [];
19
- if (typeList.length > 0 && resolverList.length > 0) {
20
- const expressApp = express();
21
- const typeDefs = mergeTypeDefs(typeList);
22
- const resolvers = mergeResolvers(resolverList);
23
- const server = new ApolloServer({
24
- typeDefs,
25
- resolvers,
26
- cacheControl: {
27
- defaultMaxAge: 60, //seconds
28
- },
29
- cache: 'bounded',
30
- formatError: (err) => {
31
- if (Meteor.isProduction) {
32
- // Don't give specific errors to the client
33
- sysLogger.error(err);
34
- err.message = err.extensions.code; // eslint-disable-line no-param-reassign
35
- return err;
36
- }
37
- console.log(err);
38
- return err;
39
- },
40
- plugins: [
41
- ApolloServerPluginLandingPageGraphQLPlayground()
42
- ]
43
- });
44
-
45
- const startApolloServer = async(server) => {
46
- await server.start();
47
- expressApp.use(
48
- '/graphql',
49
- bodyParser.json({ limit: '50mb' }),
50
- expressMiddleware(server, {
51
- context: async ({ req }) => ({ token: req.headers.authorization })
52
- }),
53
- );
54
- WebApp.connectHandlers.use(expressApp);
55
- };
56
-
57
- startApolloServer(server);
58
- }<% } %>
59
6
  <% if (config.engines.ssr === 'meteor') { %>
60
7
  /************* SSR Code ********************/
61
8
  import AppRoutes from '../lib/routes';
@@ -1 +1 @@
1
- const a142y=a142d;function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a142d(a,b);}(function(a,b){const w=a142d,c=a();while(!![]){try{const d=-parseInt(w(0x1cc))/0x1+-parseInt(w(0x1fc))/0x2+parseInt(w(0x1ef))/0x3*(parseInt(w(0x218))/0x4)+parseInt(w(0x201))/0x5*(parseInt(w(0x219))/0x6)+parseInt(w(0x1f6))/0x7+-parseInt(w(0x213))/0x8+parseInt(w(0x207))/0x9*(parseInt(w(0x1f9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x728b5));const a142b=(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;};}()),a142a=a142b(this,function(){const x=a142d;return a142a['toString']()[x(0x205)](x(0x20b))[x(0x20f)]()['constructor'](a142a)['search'](x(0x20b));});a142a();import a142e from'path';function a142c(){const Q=['897226NuxfiR','Invalid\x20value\x20for\x20','No\x20description\x20provided.','keys','formatToNamedParam','error','homedir','aws','Please\x20choose\x20an\x20environment','None','resourceName','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','\x20installed\x20to\x20use\x20this\x20command.','charAt','askForOption','findProjectDirectory','platform','Please\x20provide\x20a\x20value\x20for\x20','concat','string','Local','cwd','getInstance','description','shortDesc','existsSync','select','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','name','You\x20must\x20have\x20','aliases','examples','options','validateMakaProject','local','339TApidJ','env','match','join','Invalid\x20option:\x20','Please\x20choose\x20a\x20valid\x20value\x20for\x20','mpi','3935365Znkvak','parent','cfg','11520aJDzeo','validateParams','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20command.','521808cjqSJg','filter','No\x20usage\x20provided.','validateInputOptions','win32','4658815gqDCbK','docker','getShortName','remapShortToLong','search','AppData','8163CYukYi','help','scaffold','usage','(((.+)+)+)+$','Please\x20choose\x20a\x20value\x20for\x20','exit','pkg','toString','find','_handler','validateUserIsLoggedIn','7340968AaMmzR','fsi','length','push','config','216mgvAcs','6yCULba','includes','engines','validateEngines','Please\x20provide\x20a\x20resource\x20name:','\x20version\x20','getAppProjectConfigs','map','experimental','ask','.meteor'];a142c=function(){return Q;};return a142c();}import a142f from'os';import a142g from'fs';import{Docker}from'./tools/docker/docker.class.js';import{AWS}from'./tools/aws/aws.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{CFG}from'./tools/cfg/cfg.class.js';import{MPI}from'./tools/mpi/mpi.class.js';import{Log}from'./tools/log/log.class.js';import{PKG}from'./tools/pkg/pkg.class.js';import{Scaffold}from'./tools/scaffold/scaffold.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError}from'./error.js';const homeDir=a142f[a142y(0x1d2)]();export class Tool{[a142y(0x202)];[a142y(0x214)];[a142y(0x1f8)];[a142y(0x1f5)];['pkg'];['aws'];[a142y(0x209)];[a142y(0x1ec)];['name'];[a142y(0x1f7)];[a142y(0x211)];constructor(){const z=a142y;this[z(0x202)]=new Docker(),this[z(0x214)]=FSI[z(0x1e2)](),this[z(0x1f8)]=CFG[z(0x1e2)](this[z(0x214)]),this[z(0x20e)]=PKG[z(0x1e2)](this['fsi']),this[z(0x1f5)]=MPI['getInstance'](this['fsi'],this['cfg'],this['pkg']),this[z(0x1d3)]=AWS[z(0x1e2)](this['fsi'],this['cfg'],this[z(0x209)]),this['scaffold']=Scaffold[z(0x1e2)](this[z(0x214)],this[z(0x1f5)]);}[a142y(0x203)](a){const A=a142y;return a[A(0x1d9)](0x0);}[a142y(0x204)](a,b){const B=a142y,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[B(0x203)](e[B(0x1e8)]);a[f]&&(d[e[B(0x1e8)]]=a[f],delete d[f]);}return d;}[a142y(0x1d0)](a){const C=a142y;if(a['every'](b=>typeof b===C(0x1df)))return a['map'](b=>({'name':b}));return a;}[a142y(0x1f1)](a){const D=a142y,b=[this[D(0x1e8)]]['concat'](this[D(0x1ec)][D(0x1ea)]||[]);return this[D(0x1f7)]&&b[D(0x216)](this['parent']),b[D(0x21a)](a);}[a142y(0x1ed)](){const E=a142y,a=this[E(0x214)][E(0x1db)]();return a!==undefined;}async[a142y(0x212)](){return!![];}['validateMeteorInstall'](){const F=a142y,a=process[F(0x1dc)]===F(0x200),b=a?a142e[F(0x1f2)](homeDir,F(0x206),F(0x1e0),'.meteor'):a142e['join'](homeDir,F(0x1cb));return a142g[F(0x1e5)](b);}async[a142y(0x21c)](a){const G=a142y,b=this['cfg']['getMakaProjectConfig']();if(!b)throw MustBeInProjectError;const c=b[G(0x21b)],d=Object[G(0x1cf)](a);if(d['length']>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](G(0x1e9)+e+G(0x21e)+a[e]+G(0x1d8));throw UsageError;}}}async[a142y(0x1fa)](a,b,c){const H=a142y,{requiredOpts:d,validArgs:e,validOpts:f,resourceNameRequired:g,mustBeInMakaProject:h}=c;if(h&&!this['validateMakaProject']()){Log[H(0x1d1)](H(0x1fb));throw MustBeInProjectError;}b[H(0x1d6)]===undefined&&g===!![]&&(b[H(0x1d6)]=await Actions[H(0x222)](H(0x21d)));let i=[],j=b;if(d){i=this[H(0x1d0)](d),j=this['remapShortToLong'](b,i);for(const m of i){const {name:n,values:o,regex:p}=m;if(!Object['keys'](j)['includes'](n)){if(n===H(0x1f0)){const q=this[H(0x1f8)][H(0x21f)]()[H(0x1fd)](r=>r!==H(0x1ee))[H(0x220)](r=>({'name':r,'value':r}));q['length']===0x0&&(Log[H(0x1d1)](H(0x1e7)),process[H(0x20d)](0x1)),b[H(0x1f0)]=await Actions[H(0x1e6)]({'name':H(0x1f0),'message':H(0x1d4),'choices':q});}else b[n]=await this['askForOption'](n,o,p);}else{if(o&&!o[H(0x21a)](j[n])){Log[H(0x1d1)](H(0x1cd)+n+':\x20'+j[n]);throw new UsageError();}}}}let k=this[H(0x1d0)](f),l=b;if(k&&k[H(0x215)]>0x0){k=k[H(0x1de)](i||[]),k['push']({'name':'resourceName','hidden':!![]}),k['push']({'name':H(0x208),'boolFlag':!![]}),k[H(0x216)]({'name':'dir','hidden':!![]}),k[H(0x216)]({'name':H(0x1e1),'hidden':!![]}),k[H(0x216)]({'name':'root','hidden':!![]}),k['push']({'name':H(0x217),'hidden':!![]}),l=this[H(0x204)](b,k);for(const r of k){const {name:s,values:t}=r,u=l[s];u!==undefined&&t&&!t[H(0x21a)](u)&&(l[s]=await Actions[H(0x1e6)]({'name':s,'message':H(0x1f4)+s,'choices':t[H(0x220)](v=>({'name':v,'value':v}))})),this[H(0x1ff)](l,k);}}if(e&&e[H(0x215)]>0x0)for(const v of a){!e[H(0x21a)](v)&&(Log['error']('Invalid\x20argument:\x20'+v),a[a['indexOf'](v)]=await Actions[H(0x222)](H(0x1d7)+v));}return Object['assign'](j,l);}async[a142y(0x1da)](a,b,c){const I=a142y;if(b)return Actions[I(0x1e6)]({'name':a,'message':I(0x20c)+a,'choices':b[I(0x220)](d=>({'name':d,'value':d}))});else{if(c){const d=await Actions[I(0x222)](I(0x1dd)+a);if(d[I(0x1f1)](c))return d;else{Log[I(0x1d1)]('Invalid\x20value\x20for\x20'+a+':\x20'+d);throw new UsageError();}}else return Actions[I(0x222)]('Please\x20provide\x20a\x20value\x20for\x20'+a);}}[a142y(0x1ff)](a,b){const J=a142y;for(const c of Object['keys'](a)){const d=b[J(0x210)](e=>e[J(0x1e8)]===c);if(!d){Log[J(0x1d1)](J(0x1f3)+c);throw new UsageError();}}}[a142y(0x1e3)](){const K=a142y;return this[K(0x1ec)][K(0x1e3)]||this[K(0x1ec)][K(0x1e4)]||K(0x1ce);}[a142y(0x1e4)](){const L=a142y;return this[L(0x1ec)][L(0x1e4)]||'NIE';}[a142y(0x20a)](){const M=a142y;return this['options'][M(0x20a)]||M(0x1fe);}[a142y(0x1eb)](){const N=a142y;return this[N(0x1ec)]['examples']||[];}['aliases'](){const O=a142y;return this[O(0x1ec)][O(0x1ea)]||O(0x1d5);}[a142y(0x221)](){const P=a142y;return this[P(0x1ec)][P(0x221)]||![];}}
1
+ const a142z=a142d;(function(a,b){const w=a142d,c=a();while(!![]){try{const d=-parseInt(w(0x129))/0x1+parseInt(w(0x11d))/0x2+-parseInt(w(0x122))/0x3*(parseInt(w(0x156))/0x4)+-parseInt(w(0x119))/0x5+-parseInt(w(0x13e))/0x6*(-parseInt(w(0x140))/0x7)+parseInt(w(0x145))/0x8+parseInt(w(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xaf5eb));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a142d;if(c){const e=c[x(0x132)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const y=a142d;return a142a['toString']()[y(0x151)]('(((.+)+)+)+$')['toString']()['constructor'](a142a)[y(0x151)]('(((.+)+)+)+$');});a142a();import a142e from'path';import a142f from'os';import a142g from'fs';import{Docker}from'./tools/docker/docker.class.js';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x106;let f=c[d];return f;},a142d(a,b);}import{AWS}from'./tools/aws/aws.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{CFG}from'./tools/cfg/cfg.class.js';import{MPI}from'./tools/mpi/mpi.class.js';import{Log}from'./tools/log/log.class.js';import{PKG}from'./tools/pkg/pkg.class.js';import{Scaffold}from'./tools/scaffold/scaffold.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError}from'./error.js';function a142c(){const R=['\x20version\x20','getMakaProjectConfig','concat','dir','description','948RCdwtk','config','33446MSztcL','every','name','examples','No\x20usage\x20provided.','7250160PQGppj','length','env','docker','formatToNamedParam','existsSync','AppData','parent','validateUserIsLoggedIn','validateMeteorInstall','root','Please\x20provide\x20a\x20resource\x20name:','search','.meteor','error','validateInputOptions','Please\x20choose\x20a\x20value\x20for\x20','1146636SVvcZp','fsi','Invalid\x20option:\x20','string','find','cfg','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','remapShortToLong','charAt','usage','homedir','\x20installed\x20to\x20use\x20this\x20command.','validateEngines','Invalid\x20value\x20for\x20','map','NIE','experimental','shortDesc','Please\x20provide\x20a\x20value\x20for\x20','No\x20description\x20provided.','_handler','5010945RSrtHD','options','select','2099349eFueZp','2178476Ovyztf','This\x20command\x20needs\x20a\x20higher\x20environment\x20to\x20run\x20(other\x20than\x20local).\x20Please\x20create\x20a\x20new\x20environment;\x20`maka\x20g:config\x20development`','local','aliases','aws','6VOogqH','mpi','getInstance','pkg','scaffold','validateParams','ask','689871OsDbug','askForOption','Please\x20choose\x20a\x20valid\x20value\x20for\x20','help','Please\x20choose\x20an\x20environment','You\x20must\x20have\x20','join','keys','resourceName','apply','getShortName','getAppProjectConfigs','None','validateMakaProject','includes','push'];a142c=function(){return R;};return a142c();}const homeDir=a142f[a142z(0x10e)]();export class Tool{[a142z(0x148)];[a142z(0x157)];[a142z(0x109)];[a142z(0x123)];[a142z(0x125)];[a142z(0x121)];[a142z(0x126)];[a142z(0x11a)];[a142z(0x142)];[a142z(0x14c)];[a142z(0x118)];constructor(){const A=a142z;this[A(0x148)]=new Docker(),this[A(0x157)]=FSI[A(0x124)](),this[A(0x109)]=CFG['getInstance'](this[A(0x157)]),this[A(0x125)]=PKG['getInstance'](this[A(0x157)]),this[A(0x123)]=MPI[A(0x124)](this[A(0x157)],this['cfg'],this[A(0x125)]),this['aws']=AWS[A(0x124)](this['fsi'],this[A(0x109)],this[A(0x126)]),this[A(0x126)]=Scaffold[A(0x124)](this[A(0x157)],this[A(0x123)]);}['getShortName'](a){const B=a142z;return a[B(0x10c)](0x0);}[a142z(0x10b)](a,b){const C=a142z,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[C(0x133)](e[C(0x142)]);a[f]&&(d[e[C(0x142)]]=a[f],delete d[f]);}return d;}[a142z(0x149)](a){const D=a142z;if(a[D(0x141)](b=>typeof b===D(0x107)))return a[D(0x112)](b=>({'name':b}));return a;}['match'](a){const E=a142z,b=[this['name']][E(0x13b)](this['options']['aliases']||[]);return this[E(0x14c)]&&b[E(0x138)](this[E(0x14c)]),b[E(0x137)](a);}['validateMakaProject'](){const F=a142z,a=this[F(0x157)]['findProjectDirectory']();return a!==undefined;}async[a142z(0x14d)](){return!![];}[a142z(0x14e)](){const G=a142z,a=process['platform']==='win32',b=a?a142e[G(0x12f)](homeDir,G(0x14b),'Local',G(0x152)):a142e[G(0x12f)](homeDir,G(0x152));return a142g[G(0x14a)](b);}async[a142z(0x110)](a){const H=a142z,b=this['cfg'][H(0x13a)]();if(!b)throw MustBeInProjectError;const c=b['engines'],d=Object[H(0x130)](a);if(d[H(0x146)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[H(0x153)](H(0x12e)+e+H(0x139)+a[e]+H(0x10f));throw UsageError;}}}async[a142z(0x127)](a,b,c){const I=a142z,{requiredOpts:d,validArgs:e,validOpts:f,resourceNameRequired:g,mustBeInMakaProject:h}=c;if(h&&!this[I(0x136)]()){Log[I(0x153)]('You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20command.');throw MustBeInProjectError;}b['resourceName']===undefined&&g===!![]&&(b['resourceName']=await Actions[I(0x128)](I(0x150)));let i=[],j=b;if(d){i=this[I(0x149)](d),j=this[I(0x10b)](b,i);for(const m of i){const {name:n,values:o,regex:p}=m;if(!Object[I(0x130)](j)[I(0x137)](n)){if(n===I(0x147)){const q=this['cfg'][I(0x134)]()['filter'](r=>r!==I(0x11f))[I(0x112)](r=>({'name':r,'value':r}));q[I(0x146)]===0x0&&(Log[I(0x153)](I(0x11e)),process['exit'](0x1)),b[I(0x147)]=await Actions[I(0x11b)]({'name':'env','message':I(0x12d),'choices':q});}else b[n]=await this[I(0x12a)](n,o,p);}else{if(o&&!o[I(0x137)](j[n])){Log['error'](I(0x111)+n+':\x20'+j[n]);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&k[I(0x146)]>0x0){k=k['concat'](i||[]),k['push']({'name':I(0x131),'hidden':!![]}),k['push']({'name':I(0x12c),'boolFlag':!![]}),k[I(0x138)]({'name':I(0x13c),'hidden':!![]}),k['push']({'name':'cwd','hidden':!![]}),k[I(0x138)]({'name':I(0x14f),'hidden':!![]}),k['push']({'name':I(0x13f),'hidden':!![]}),l=this['remapShortToLong'](b,k);for(const r of k){const {name:s,values:t}=r,u=l[s];u!==undefined&&t&&!t[I(0x137)](u)&&(l[s]=await Actions['select']({'name':s,'message':I(0x12b)+s,'choices':t[I(0x112)](v=>({'name':v,'value':v}))})),this[I(0x154)](l,k);}}if(e&&e[I(0x146)]>0x0)for(const v of a){!e[I(0x137)](v)&&(Log['error']('Invalid\x20argument:\x20'+v),a[a['indexOf'](v)]=await Actions[I(0x128)](I(0x10a)+v));}return Object['assign'](j,l);}async[a142z(0x12a)](a,b,c){const J=a142z;if(b)return Actions[J(0x11b)]({'name':a,'message':J(0x155)+a,'choices':b['map'](d=>({'name':d,'value':d}))});else{if(c){const d=await Actions['ask'](J(0x116)+a);if(d['match'](c))return d;else{Log[J(0x153)](J(0x111)+a+':\x20'+d);throw new UsageError();}}else return Actions[J(0x128)](J(0x116)+a);}}[a142z(0x154)](a,b){const K=a142z;for(const c of Object[K(0x130)](a)){const d=b[K(0x108)](e=>e[K(0x142)]===c);if(!d){Log[K(0x153)](K(0x106)+c);throw new UsageError();}}}[a142z(0x13d)](){const L=a142z;return this['options'][L(0x13d)]||this[L(0x11a)][L(0x115)]||L(0x117);}[a142z(0x115)](){const M=a142z;return this[M(0x11a)][M(0x115)]||M(0x113);}[a142z(0x10d)](){const N=a142z;return this[N(0x11a)][N(0x10d)]||N(0x144);}[a142z(0x143)](){const O=a142z;return this[O(0x11a)][O(0x143)]||[];}['aliases'](){const P=a142z;return this['options'][P(0x120)]||P(0x135);}[a142z(0x114)](){const Q=a142z;return this[Q(0x11a)][Q(0x114)]||![];}}
@@ -1 +1 @@
1
- const a143i=a143d;function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x197;let f=c[d];return f;},a143d(a,b);}(function(a,b){const f=a143d,c=a();while(!![]){try{const d=-parseInt(f(0x198))/0x1*(-parseInt(f(0x19b))/0x2)+parseInt(f(0x1a7))/0x3+-parseInt(f(0x19a))/0x4+-parseInt(f(0x1a1))/0x5*(-parseInt(f(0x1a4))/0x6)+-parseInt(f(0x197))/0x7+parseInt(f(0x19e))/0x8*(parseInt(f(0x1a6))/0x9)+-parseInt(f(0x1a2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x80d06));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a143d;if(c){const e=c[g(0x1a8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const h=a143d;return a143a[h(0x1a0)]()[h(0x199)](h(0x1a3))[h(0x1a0)]()['constructor'](a143a)[h(0x199)]('(((.+)+)+)+$');});a143a();import{input,confirm,password,select,checkbox}from'@inquirer/prompts';export class Actions{static async[a143i(0x1a5)](a,b){const c=await(b?password({'message':a}):input({'message':a}));return c;}static async[a143i(0x1aa)](a,b=![]){const c=await confirm({'message':a,'default':b});return c;}static async[a143i(0x19f)](a){const j=a143i,b=await select({'message':a[j(0x19c)],'choices':a[j(0x19d)]});return b;}static async[a143i(0x1a9)](a){const k=a143i,b=await checkbox({'message':a['message'],'choices':a[k(0x19d)]});return b;}}function a143c(){const l=['1425473QrGPqK','46YiNJNQ','search','856676EoBVgr','13020KFApGy','message','choices','112uOwKfQ','select','toString','3590SFPZji','17560020GETVKm','(((.+)+)+)+$','6738BeYzKz','ask','462123ZxEyDc','2630400xDbFgz','apply','checkbox','confirm'];a143c=function(){return l;};return a143c();}
1
+ const a143i=a143d;function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x178;let f=c[d];return f;},a143d(a,b);}(function(a,b){const f=a143d,c=a();while(!![]){try{const d=parseInt(f(0x185))/0x1*(parseInt(f(0x180))/0x2)+parseInt(f(0x18b))/0x3*(parseInt(f(0x18c))/0x4)+-parseInt(f(0x189))/0x5*(-parseInt(f(0x184))/0x6)+-parseInt(f(0x181))/0x7*(-parseInt(f(0x18a))/0x8)+parseInt(f(0x17f))/0x9+-parseInt(f(0x17c))/0xa+-parseInt(f(0x17e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x4a438));function a143c(){const l=['ask','constructor','53415eglPgk','444344YZLnun','16656slHYkp','88ekJJtP','confirm','apply','choices','(((.+)+)+)+$','toString','5642410vvDQxE','select','4189944rtcCzL','1138500NWgJbz','16nVhptK','28rbHKmp','checkbox','search','306lFNSzI','29210tJzmHO','message'];a143c=function(){return l;};return a143c();}const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a143d;if(c){const e=c[g(0x178)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const h=a143d;return a143a['toString']()[h(0x183)](h(0x17a))[h(0x17b)]()[h(0x188)](a143a)[h(0x183)](h(0x17a));});a143a();import{input,confirm,password,select,checkbox}from'@inquirer/prompts';export class Actions{static async[a143i(0x187)](a,b){const c=await(b?password({'message':a}):input({'message':a}));return c;}static async[a143i(0x18d)](a,b=![]){const c=await confirm({'message':a,'default':b});return c;}static async[a143i(0x17d)](a){const j=a143i,b=await select({'message':a[j(0x186)],'choices':a['choices']});return b;}static async[a143i(0x182)](a){const k=a143i,b=await checkbox({'message':a[k(0x186)],'choices':a[k(0x179)]});return b;}}