@maka/maka-cli 5.1.10 → 5.1.15

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 (183) 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/testCmd/_index.js +1 -0
  100. package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -0
  101. package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -0
  102. package/bundle/obf/src/commands/testCmd/test.command.js +1 -0
  103. package/bundle/obf/src/commands/undo.js +1 -1
  104. package/bundle/obf/src/commands/version/_index.js +1 -0
  105. package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -0
  106. package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -0
  107. package/bundle/obf/src/commands/version/version.js +1 -0
  108. package/bundle/obf/src/error.js +1 -1
  109. package/bundle/obf/src/exec.js +1 -1
  110. package/bundle/obf/src/generator.js +1 -1
  111. package/bundle/obf/src/generators/_index.js +1 -1
  112. package/bundle/obf/src/generators/api.js +1 -1
  113. package/bundle/obf/src/generators/aws/_index.js +1 -1
  114. package/bundle/obf/src/generators/aws/aws.js +1 -1
  115. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  116. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  117. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  118. package/bundle/obf/src/generators/collection.js +1 -1
  119. package/bundle/obf/src/generators/component.js +1 -1
  120. package/bundle/obf/src/generators/config.js +1 -1
  121. package/bundle/obf/src/generators/dbc.js +1 -1
  122. package/bundle/obf/src/generators/dockerfile.js +1 -1
  123. package/bundle/obf/src/generators/hook.js +1 -1
  124. package/bundle/obf/src/generators/kits/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  126. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  127. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  128. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  130. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  131. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  132. package/bundle/obf/src/generators/kits/kit.js +1 -1
  133. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  134. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  135. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  136. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  137. package/bundle/obf/src/generators/layout.js +1 -1
  138. package/bundle/obf/src/generators/maka.gen.js +1 -1
  139. package/bundle/obf/src/generators/methods.js +1 -1
  140. package/bundle/obf/src/generators/package.js +1 -1
  141. package/bundle/obf/src/generators/page.js +1 -1
  142. package/bundle/obf/src/generators/publish.js +1 -1
  143. package/bundle/obf/src/generators/route.js +1 -1
  144. package/bundle/obf/src/generators/service.js +1 -1
  145. package/bundle/obf/src/generators/services/_index.js +1 -1
  146. package/bundle/obf/src/generators/services/openssl.js +1 -1
  147. package/bundle/obf/src/generators/services/translation.js +1 -1
  148. package/bundle/obf/src/maka.js +1 -1
  149. package/bundle/obf/src/tool.js +1 -1
  150. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  151. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  152. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  154. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  155. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  157. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  158. package/bundle/obf/src/tools/https/https.class.js +1 -1
  159. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  160. package/bundle/obf/src/tools/log/log.class.js +1 -1
  161. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  163. package/bundle/obf/src/tools/options/options.class.js +1 -1
  164. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  165. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  166. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  167. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  168. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  169. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  170. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  171. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  172. package/package.json +1 -1
  173. package/bundle/obf/src/commands/test/_index.js +0 -1
  174. package/bundle/obf/src/commands/test/jest.sub.cmd.js +0 -1
  175. package/bundle/obf/src/commands/test/mocha.sub.cmd.js +0 -1
  176. package/bundle/obf/src/commands/test/test.command.js +0 -1
  177. package/bundle/obf/src/commands/version.js +0 -1
  178. package/bundle/obf/src/templates/react/test/test.js +0 -1
  179. package/bundle/obf/src/templates/react/test/test.js.jsx +0 -38
  180. package/bundle/obf/src/templates/react/test/test.js.ts +0 -1
  181. package/bundle/obf/src/templates/react/test/test.js.tsx +0 -38
  182. package/bundle/obf/src/templates/service/test/jest/jest.config.js +0 -6
  183. package/bundle/obf/src/templates/service/test/jest/jest.setup.js +0 -7
@@ -1 +1 @@
1
- const a77K=a77d;(function(a,b){const F=a77d,c=a();while(!![]){try{const d=-parseInt(F(0xcb))/0x1*(parseInt(F(0xab))/0x2)+-parseInt(F(0xb8))/0x3*(parseInt(F(0xc0))/0x4)+-parseInt(F(0xea))/0x5*(-parseInt(F(0xbd))/0x6)+-parseInt(F(0xb6))/0x7*(parseInt(F(0xc7))/0x8)+-parseInt(F(0xeb))/0x9+-parseInt(F(0xd3))/0xa+parseInt(F(0x108))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x66ac6));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a77d;if(c){const e=c[G(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const H=a77d;return a77a[H(0xcf)]()[H(0xe8)](H(0xe9))[H(0xcf)]()[H(0xfd)](a77a)['search'](H(0xe9));});a77a();import a77e from'os';function a77c(){const N=['\x20is\x20not\x20available,\x20trying\x20','win32','arm64','export\x20PATH=\x22$HOME/.meteor/meteor:$PATH\x22','appendFileSync','getuid','utf8','5383HUBEjW','create','2314506OMIoUg','Removing\x20previous\x20install\x20of\x20meteor\x20(packages)','Install\x20the\x20specified\x20version\x20of\x20meteor.','Using\x20CA\x20Cert\x20','maka\x20install\x20meteor\x20--set-path','48gJwusf','Adjust\x20the\x20default\x20timeout\x20limit\x20for\x20downloading.\x20Time\x20is\x20in\x20seconds.','\x20is\x20not\x20available.','4ogLFxB','You\x20are\x20running\x20as\x20root,\x20this\x20is\x20not\x20recommended.','readFileSync','confirm','cert','packages','getGlobalConfig','3184oKCfCI','setMeteorReleaseVersion','get','info','4ndAhNy','isFile','setPath','Removing\x20previous\x20install\x20of\x20meteor\x20(main)','toString','Only\x20set\x20the\x20PATH\x20environment\x20variable\x20for\x20Meteor.','platform','release','4142050XuTRzO','Downloading\x20Meteor\x20','-rf','split','includes','join','slice','RELEASE=','meteor','warn','downloadFile','Removing\x20previous\x20install\x20of\x20meteor\x20(package-meta)','&release=','\x20installed.\x0a','maka\x20install\x20meteor','grep','arch','getMeteorExePath','replace','meteor.tar.gz','osx','search','(((.+)+)+)+$','413015FeBPhx','5386986wgootw','withSpinner','existsSync','https://install.meteor.com','windows','Keep\x20the\x20meteor.tar.gz\x20file\x20after\x20installation.','3.1.1','error','Aborted','timeout','https://packages.meteor.com/bootstrap-link?arch=os.','Meteor\x20path\x20updated.','getMeteorInstallPath','\x20is\x20available.','cacert','success','length','Please\x20open\x20a\x20new\x20terminal\x20window\x20for\x20the\x20PATH\x20to\x20take\x20effect.','constructor','Meteor\x20is\x20already\x20installed,\x20continue\x20and\x20remove\x20current\x20install?','data','apply','PATH','env','checkAvailability','notice','\x5c.meteor\x5cmeteor','install','Added\x20Meteor\x20path\x20to\x20','24643883kudTwK','Preparing\x20to\x20install\x20Meteor\x20','setx\x20PATH\x20\x22','force','exit','Proceed\x20anyway?','maka\x20install\x20meteor\x20--force','Remove\x20current\x20install\x20of\x20meteor\x20and\x20install\x20the\x20latest\x20version.','195152wTOVfb','.bashrc','Meteor\x20version\x20','x86_64'];a77c=function(){return N;};return a77c();}import a77f from'path';import a77g from'fs';import{SpawnAsync}from'../tools/spawn-async/spawn-async.class.js';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';import{execSync}from'child_process';const homeDir=a77e['homedir']();function isRoot(){const I=a77d;return process[I(0xb4)]&&process[I(0xb4)]()===0x0;}function compareVersions(a,b){const J=a77d,c=a['split']('.')['map'](Number),d=b[J(0xd6)]('.')['map'](Number);for(let e=0x0;e<Math['max'](c['length'],d[J(0xfb)]);e++){const f=c[e]||0x0,g=d[e]||0x0;if(f>g)return 0x1;if(f<g)return-0x1;}return 0x0;}function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0xab;let f=c[d];return f;},a77d(a,b);}Command[a77K(0xb7)]({'name':a77K(0x106),'aliases':['i'],'validOpts':[{'name':a77K(0x10b),'boolFlag':!![],'description':a77K(0x10f)},{'name':a77K(0xd2),'description':a77K(0xba)},{'name':'cacert','description':'Use\x20the\x20specified\x20CA\x20Cert\x20file,\x20useful\x20for\x20corporate\x20networks.'},{'name':'keepInstallFile','boolFlag':!![],'description':a77K(0xf0)},{'name':'timeout','description':a77K(0xbe)},{'name':'setPath','boolFlag':!![],'description':a77K(0xd0)}],'validArgs':[a77K(0xdb)],'minArgLength':0x1,'usage':'maka\x20install\x20meteor','shortDesc':'Maka\x27s\x20Installer\x20for\x20Meteor.','examples':[a77K(0xe1),a77K(0x10e),'maka\x20install\x20meteor\x20--release\x203.0.1',a77K(0xbc)]},async function(a,b){const L=a77K;try{const {mpi:c,cfg:d,fsi:f}=this;b[L(0xcd)]&&(updatePath(),Log[L(0xfa)](L(0xf6)),process[L(0x10c)](0x0));let g='';if(b[L(0xf9)]){if(f[L(0xcc)](b['cacert']))Log[L(0x104)](L(0xbb)+b[L(0xf9)]),g=b['cacert'];else throw'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+g;}const h=await d[L(0xc6)]();if(h[L(0xc4)]){if(f['isFile'](h[L(0xc4)]))g=h[L(0xc4)];else throw'CA\x20Cert\x20is\x20configured\x20in\x20~/.maka.cert,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+g;}let i=![];if(b['f']||b['force'])i=!![];else{const u=isRoot();u?(Log[L(0xdc)](L(0xc1)),i=await Actions[L(0xc3)](L(0x10d),![])):i=!![];}if(!i)throw L(0xf3);const j=await HTTPS[L(0xc9)]({'url':L(0xee),'cert':g}),k=f[L(0xe2)](j[L(0xff)],L(0xda));if(k[L(0xfb)]===0x0)throw'Network\x20error,\x20please\x20try\x20again.';process['env']['NO_NODE_WARNINGS']='1';const l=k[0x0]['replace'](/[^0-9.]/gi,'')['replace'](/\r?\n|\r/,''),m=L(0xf1);let n;b['release']?n=b[L(0xd2)]:compareVersions(l,m)<0x0?n=m:n=l;Log[L(0x104)](L(0x109)+n);const o={'win32':L(0xef),'darwin':L(0xe7),'linux':'linux'};let p=L(0xf5)+o[a77e[L(0xd1)]()]+'.'+(a77e['arch']()===L(0xb1)?L(0xb1):L(0xae))+'&release='+n,q=await HTTPS['checkAvailability']({'url':p,'cert':g});if(!q&&n[L(0xd7)]('-')){const v=n[L(0xd6)]('-'),w=v[0x0],x=v[L(0xd9)](0x1)[L(0xd8)]('-'),y=w[L(0xe5)](/\.0+$/,'');Log['warn'](L(0xad)+n+L(0xaf)+y+'-'+x);const z='https://packages.meteor.com/bootstrap-link?arch=os.'+o[a77e[L(0xd1)]()]+'.'+(a77e[L(0xe3)]()===L(0xb1)?L(0xb1):L(0xae))+L(0xdf)+y+'-'+x;q=await HTTPS[L(0x103)]({'url':z,'cert':g}),q&&(n=y+'-'+x,p=z);}!q?(Log[L(0xf2)](L(0xad)+n+L(0xbf)),process[L(0x10c)](0x0)):Log[L(0x104)](L(0xad)+n+L(0xf8));const r=f[L(0xf7)](),s=c[L(0xe4)](),t=f['getUserDataDirectory']();if(a77g['existsSync'](s)){let A=![];b['f']||b[L(0x10b)]?A=!![]:A=await Actions[L(0xc3)](L(0xfe),![]),A?(await SpawnAsync[L(0xec)]('rm',[L(0xd5),a77f[L(0xd8)](r,L(0xc5))],{'message':L(0xb9)}),await SpawnAsync[L(0xec)]('rm',[L(0xd5),a77f[L(0xd8)](r,'package-metadata')],{'message':L(0xde)}),await SpawnAsync[L(0xec)]('rm',['-rf',a77f[L(0xd8)](r,'meteor')],{'message':L(0xce)})):(Log[L(0xca)]('Aborting\x20install'),process['exit'](0x0));}try{Log['notice'](L(0xd4)+n+'\x20from\x20'+p),await HTTPS[L(0xdd)]({'url':p,'destPath':a77f[L(0xd8)](homeDir,L(0xe6)),'cert':g,'timeout':b[L(0xf4)]?parseInt(b[L(0xf4)])*0x3e8:0x493e0});try{const B=a77f[L(0xd8)](homeDir,L(0xe6));await f['extractTarGz'](B,t);}catch(C){Log[L(0xf2)]('Error\x20extracting\x20meteor.tar.gz\x20file');}updatePath();}catch(D){console['error'](D),process[L(0x10c)](0x1);}finally{!b['keepInstallFile']&&await SpawnAsync[L(0xec)]('rm',[L(0xd5),a77f[L(0xd8)](homeDir,L(0xe6))],{'message':'Cleaning\x20up'});}c[L(0xc8)](n),Log['success'](L(0xad)+n+L(0xe0)),process[L(0x10c)](0x0);}catch(E){console['error'](E),process[L(0x10c)](0x1);}});function updatePath(){const M=a77K;if(a77e[M(0xd1)]()===M(0xb0)){const a=process[M(0x102)][M(0x101)]||'',b=homeDir+M(0x105);!a[M(0xd7)](b)&&(execSync(M(0x10a)+a+';'+b+'\x22'),Log[M(0x104)]('Meteor\x20path\x20added\x20to\x20the\x20system\x20PATH\x20environment\x20variable.'),Log[M(0x104)](M(0xfc)));}else{const c=a77f[M(0xd8)](homeDir,'.zshrc'),d=a77f['join'](homeDir,M(0xac)),e=M(0xb2),f=a77g[M(0xed)](c)?a77g[M(0xc2)](c,M(0xb5)):'';!f['includes'](e)&&(a77g['appendFileSync'](c,'\x0a'+e+'\x0a'),Log[M(0x104)](M(0x107)+c));const g=a77g[M(0xed)](d)?a77g[M(0xc2)](d,'utf8'):'';!g['includes'](e)&&(a77g[M(0xb3)](d,'\x0a'+e+'\x0a'),Log[M(0x104)]('Added\x20Meteor\x20path\x20to\x20'+d));}}
1
+ const a77H=a77d;(function(a,b){const F=a77d,c=a();while(!![]){try{const d=parseInt(F(0x1c3))/0x1*(-parseInt(F(0x1d9))/0x2)+-parseInt(F(0x1d6))/0x3*(parseInt(F(0x1a4))/0x4)+-parseInt(F(0x1ba))/0x5*(parseInt(F(0x1a6))/0x6)+-parseInt(F(0x1f0))/0x7*(-parseInt(F(0x1c0))/0x8)+-parseInt(F(0x1ac))/0x9*(-parseInt(F(0x1ce))/0xa)+-parseInt(F(0x203))/0xb+-parseInt(F(0x1e2))/0xc*(-parseInt(F(0x1a8))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xbb6af));const a77b=(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;};}()),a77a=a77b(this,function(){const G=a77d;return a77a['toString']()[G(0x19f)](G(0x1b8))[G(0x1e5)]()[G(0x1d1)](a77a)[G(0x19f)](G(0x1b8));});a77a();import a77e from'os';function a77c(){const M=['setPath','toString','cacert','length','max','-rf','RELEASE=','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','get','win32','join','Removing\x20previous\x20install\x20of\x20meteor\x20(packages)','486157ThoPqo','package-metadata','arm64','\x20is\x20available.','utf8','\x20is\x20not\x20available.','notice','timeout','Use\x20the\x20specified\x20CA\x20Cert\x20file,\x20useful\x20for\x20corporate\x20networks.','replace','warn','Adjust\x20the\x20default\x20timeout\x20limit\x20for\x20downloading.\x20Time\x20is\x20in\x20seconds.','maka\x20install\x20meteor\x20--release\x203.0.1','Remove\x20current\x20install\x20of\x20meteor\x20and\x20install\x20the\x20latest\x20version.','Proceed\x20anyway?','Meteor\x20version\x20','cert','grep','exit','1460360QWkPfD','checkAvailability','env','3.0','&release=','Preparing\x20to\x20install\x20Meteor\x20','split','release','search','\x20from\x20','homedir','maka\x20install\x20meteor\x20--force','extractTarGz','5804LocTsx','getuid','6ArtChY','existsSync','221468sEPbaC','Meteor\x20path\x20added\x20to\x20the\x20system\x20PATH\x20environment\x20variable.','create','Downloading\x20Meteor\x20','30474SIkupo','getGlobalConfig','map','appendFileSync','.zshrc','force','https://packages.meteor.com/bootstrap-link?arch=os.','includes','withSpinner','.bashrc','\x20already\x20installed,\x20continue\x20and\x20remove\x20current\x20install?','NO_NODE_WARNINGS','(((.+)+)+)+$','error','5375595pMzYxm','Install\x20the\x20specified\x20version\x20of\x20meteor.','Aborted','.meteor','You\x20are\x20running\x20as\x20root,\x20this\x20is\x20not\x20recommended.','readFileSync','56gOvJvh','https://install.meteor.com','3.3','4bwortp','keepInstallFile','Meteor\x20path\x20updated.','maka\x20install\x20meteor\x20--set-path','maka\x20install\x20meteor','windows','linux','meteor.tar.gz','setx\x20PATH\x20\x22','downloadFile','PATH','2260HJrSQf','Added\x20Meteor\x20path\x20to\x20','data','constructor','platform','Keep\x20the\x20meteor.tar.gz\x20file\x20after\x20installation.','Cleaning\x20up','Using\x20CA\x20Cert\x20','2763YaZvRl','confirm','success','537052lDINFl','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka.cert,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','linkVersionAsCurrent','isFile','getInstalledMeteorVersion','Please\x20open\x20a\x20new\x20terminal\x20window\x20for\x20the\x20PATH\x20to\x20take\x20effect.','meteor','x86_64','Removing\x20previous\x20install\x20of\x20meteor\x20(main)','2208TNvvro','info'];a77c=function(){return M;};return a77c();}import a77f from'path';import a77g from'fs';import{SpawnAsync}from'../tools/spawn-async/spawn-async.class.js';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';import{execSync}from'child_process';const homeDir=a77e[a77H(0x1a1)]();function isRoot(){const I=a77H;return process['getuid']&&process[I(0x1a5)]()===0x0;}function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x19f;let f=c[d];return f;},a77d(a,b);}function compareVersions(a,b){const J=a77H,c=a['split']('.')[J(0x1ae)](Number),d=b[J(0x209)]('.')['map'](Number);for(let e=0x0;e<Math[J(0x1e8)](c[J(0x1e7)],d[J(0x1e7)]);e++){const f=c[e]||0x0,g=d[e]||0x0;if(f>g)return 0x1;if(f<g)return-0x1;}return 0x0;}Command[a77H(0x1aa)]({'name':'install','aliases':['i'],'validOpts':[{'name':a77H(0x1b1),'boolFlag':!![],'description':a77H(0x1fd)},{'name':a77H(0x20a),'description':a77H(0x1bb)},{'name':'cacert','description':a77H(0x1f8)},{'name':a77H(0x1c4),'boolFlag':!![],'description':a77H(0x1d3)},{'name':'timeout','description':a77H(0x1fb)},{'name':a77H(0x1e4),'boolFlag':!![],'description':'Only\x20set\x20the\x20PATH\x20environment\x20variable\x20for\x20Meteor.'}],'validArgs':[a77H(0x1df)],'minArgLength':0x1,'usage':a77H(0x1c7),'shortDesc':'Maka\x27s\x20Installer\x20for\x20Meteor.','examples':[a77H(0x1c7),a77H(0x1a2),a77H(0x1fc),a77H(0x1c6)]},async function(a,b){const K=a77H;try{const {mpi:c,cfg:d,fsi:f}=this;b['setPath']&&(updatePath(),Log[K(0x1d8)](K(0x1c5)),process[K(0x202)](0x0));let g='';if(b['cacert']){if(f['isFile'](b[K(0x1e6)]))Log[K(0x1f6)](K(0x1d5)+b[K(0x1e6)]),g=b['cacert'];else throw K(0x1eb)+g;}const h=await d[K(0x1ad)]();if(h['cert']){if(f[K(0x1dc)](h[K(0x200)]))g=h[K(0x200)];else throw K(0x1da)+g;}let i=![];if(b['f']||b[K(0x1b1)])i=!![];else{const t=isRoot();t?(Log['warn'](K(0x1be)),i=await Actions['confirm'](K(0x1fe),![])):i=!![];}if(!i)throw K(0x1bc);const j=await HTTPS[K(0x1ec)]({'url':K(0x1c1),'cert':g}),k=f[K(0x201)](j[K(0x1d0)],K(0x1ea));if(k['length']===0x0)throw'Network\x20error,\x20please\x20try\x20again.';process[K(0x205)][K(0x1b7)]='1';const l=k[0x0][K(0x1f9)](/[^0-9.]/gi,'')[K(0x1f9)](/\r?\n|\r/,''),m=K(0x1c2);let n;b[K(0x20a)]?n=b[K(0x20a)]:compareVersions(l,m)<0x0?n=m:n=l;Log[K(0x1f6)](K(0x208)+n);const o={'win32':K(0x1c8),'darwin':'osx','linux':K(0x1c9)};let p='https://packages.meteor.com/bootstrap-link?arch=os.'+o[a77e[K(0x1d2)]()]+'.'+(a77e['arch']()===K(0x1f2)?K(0x1f2):K(0x1e0))+K(0x207)+n,q=await HTTPS[K(0x204)]({'url':p,'cert':g});n=n[K(0x1e5)]();n==='3'&&(n=K(0x206));if(!q&&n[K(0x1b3)]('-')){const u=n[K(0x209)]('-'),v=u[0x0],w=u['slice'](0x1)[K(0x1ee)]('-'),x=v[K(0x1f9)](/\.0+$/,'');Log[K(0x1fa)](K(0x1ff)+n+'\x20is\x20not\x20available,\x20trying\x20'+x+'-'+w);const y=K(0x1b2)+o[a77e[K(0x1d2)]()]+'.'+(a77e['arch']()==='arm64'?'arm64':'x86_64')+K(0x207)+x+'-'+w;q=await HTTPS['checkAvailability']({'url':y,'cert':g}),q&&(n=x+'-'+w,p=y);}!q?(Log['error'](K(0x1ff)+n+K(0x1f5)),process[K(0x202)](0x0)):Log[K(0x1f6)](K(0x1ff)+n+K(0x1f3));const r=f['getMeteorInstallPath'](),s=c[K(0x1dd)](n);if(a77g[K(0x1a7)](s)){let z=![];b['f']||b[K(0x1b1)]?z=!![]:z=await Actions[K(0x1d7)]('Meteor\x20is\x20'+n+K(0x1b6),![]),z?(await SpawnAsync[K(0x1b4)]('rm',[K(0x1e9),a77f['join'](r,'packages')],{'message':K(0x1ef)}),await SpawnAsync[K(0x1b4)]('rm',[K(0x1e9),a77f[K(0x1ee)](r,K(0x1f1))],{'message':'Removing\x20previous\x20install\x20of\x20meteor\x20(package-meta)'}),await SpawnAsync[K(0x1b4)]('rm',['-rf',a77f[K(0x1ee)](r,K(0x1df))],{'message':K(0x1e1)})):(Log[K(0x1e3)]('Aborting\x20install'),process['exit'](0x0));}try{Log['notice'](K(0x1ab)+n+K(0x1a0)+p),await HTTPS[K(0x1cc)]({'url':p,'destPath':a77f[K(0x1ee)](homeDir,'meteor.tar.gz'),'cert':g,'timeout':b['timeout']?parseInt(b[K(0x1f7)])*0x3e8:0x493e0});try{const A=a77f[K(0x1ee)](homeDir,K(0x1ca)),B=a77f[K(0x1ee)](homeDir,K(0x1bd),'releases',n);a77g['mkdirSync'](B,{'recursive':!![]}),await f[K(0x1a3)](A,B);}catch(C){console['log'](C),Log[K(0x1b9)]('Error\x20extracting\x20meteor.tar.gz\x20file');}updatePath();}catch(D){console[K(0x1b9)](D),process[K(0x202)](0x1);}finally{!b[K(0x1c4)]&&await SpawnAsync[K(0x1b4)]('rm',['-rf',a77f[K(0x1ee)](homeDir,K(0x1ca))],{'message':K(0x1d4)});}c[K(0x1db)](n),Log[K(0x1d8)](K(0x1ff)+n+'\x20installed.\x0a'),process[K(0x202)](0x0);}catch(E){console[K(0x1b9)](E),process[K(0x202)](0x1);}});function updatePath(){const L=a77H;if(a77e[L(0x1d2)]()===L(0x1ed)){const a=process[L(0x205)][L(0x1cd)]||'',b=homeDir+'\x5c.meteor\x5cmeteor';!a['includes'](b)&&(execSync(L(0x1cb)+a+';'+b+'\x22'),Log[L(0x1f6)](L(0x1a9)),Log[L(0x1f6)](L(0x1de)));}else{const c=a77f[L(0x1ee)](homeDir,L(0x1b0)),d=a77f[L(0x1ee)](homeDir,L(0x1b5)),e='export\x20PATH=\x22$HOME/.meteor/meteor:$PATH\x22',f=a77g[L(0x1a7)](c)?a77g['readFileSync'](c,L(0x1f4)):'';!f[L(0x1b3)](e)&&(a77g[L(0x1af)](c,'\x0a'+e+'\x0a'),Log[L(0x1f6)](L(0x1cf)+c));const g=a77g[L(0x1a7)](d)?a77g[L(0x1bf)](d,L(0x1f4)):'';!g[L(0x1b3)](e)&&(a77g[L(0x1af)](d,'\x0a'+e+'\x0a'),Log['notice'](L(0x1cf)+d));}}
@@ -1 +1 @@
1
- const a78l=a78d;(function(a,b){const i=a78d,c=a();while(!![]){try{const d=parseInt(i(0x1ac))/0x1+-parseInt(i(0x1a0))/0x2+parseInt(i(0x186))/0x3*(parseInt(i(0x1a7))/0x4)+-parseInt(i(0x18a))/0x5*(-parseInt(i(0x194))/0x6)+-parseInt(i(0x199))/0x7+parseInt(i(0x188))/0x8+parseInt(i(0x1a3))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x8ba01));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a78d;if(c){const e=c[j(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const k=a78d;return a78a[k(0x190)]()[k(0x191)](k(0x19b))['toString']()['constructor'](a78a)[k(0x191)](k(0x19b));});a78a();function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x185;let f=c[d];return f;},a78d(a,b);}import a78e from'path';import a78f from'fs';import{execSync}from'child_process';function a78c(){const n=['sep','config','toString','search','app/private','[-]\x20You\x20may\x20need\x20to\x20install\x20jsdoc:\x20\x22npm\x20i\x20-g\x20jsdoc\x22','3090750zghDXj','join','\x20-r\x20app','app/node_modules','stringify','5359410CtObPG','stop','(((.+)+)+)+$','plugins/markdown','.+\x5c.(j|t)s(doc|x)?$','\x20-d\x20','error','747012zkjsYA','apply','closure','4850370CWKUHM','Use\x20the\x20popular\x20JSDoc\x20documentation\x20generator','app/public','maka\x20jsdoc\x20--init','776yDIzAr','jsdoc','maka\x20jsdoc','findAppDirectory','Running\x20','108238PLIPao','fsi','3918UcziUu','create','2363072JicusY','\x0a[+]\x20Documentation\x20written\x20to\x20','5aaSkVU','isFile','notice','docs'];a78c=function(){return n;};return a78c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';Command[a78l(0x187)]({'name':a78l(0x1a8),'usage':a78l(0x1a9),'mustBeInMakaProject':!![],'shortDesc':a78l(0x1a4),'examples':[a78l(0x1a6),a78l(0x1a9)],'validOpts':[]},function(){const m=a78l,a=a78e[m(0x195)](this[m(0x185)]['findAppDirectory'](),m(0x18d)+a78e[m(0x18e)]),b=a78e[m(0x195)](this[m(0x185)][m(0x1aa)](),m(0x18f),'jsdoc-config.json'),c='jsdoc';if(!this['fsi'][m(0x18b)](b)){const f={'plugins':[m(0x19c)],'tags':{'allowUnknownTags':!![],'dictionaries':[m(0x1a8),m(0x1a2)]},'source':{'includePattern':m(0x19d),'excludePattern':'(.+\x5c.app-tests.js)|(^|\x5c/|\x5c\x5c)_','exclude':['app/packages',m(0x197),m(0x1a5),m(0x192)]},'templates':{'cleverLinks':![],'monospaceLinks':![]},'opts':{'recursive':!![],'encoding':'utf-8'}};a78f['writeFileSync'](b,JSON[m(0x198)](f,null,0x4));}const d=Log['withSpinner'](m(0x1ab)+c);try{const g=c+'\x20-c\x20'+b+m(0x196)+a78e[m(0x18e)]+m(0x19e)+a;execSync(g,{'stdio':'inherit'}),Log[m(0x18c)](m(0x189)+a);}catch(h){Log[m(0x19f)](h),Log['error'](m(0x193));}finally{d[m(0x19a)]();}});
1
+ const a78l=a78d;(function(a,b){const i=a78d,c=a();while(!![]){try{const d=parseInt(i(0x7a))/0x1+-parseInt(i(0x88))/0x2*(-parseInt(i(0x6c))/0x3)+parseInt(i(0x79))/0x4+-parseInt(i(0x8f))/0x5+parseInt(i(0x67))/0x6*(-parseInt(i(0x7c))/0x7)+-parseInt(i(0x76))/0x8+-parseInt(i(0x89))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x82790));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a78d;if(c){const e=c[j(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const k=a78d;return a78a[k(0x7f)]()[k(0x86)](k(0x80))['toString']()['constructor'](a78a)[k(0x86)](k(0x80));});function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x66;let f=c[d];return f;},a78d(a,b);}a78a();import a78e from'path';import a78f from'fs';import{execSync}from'child_process';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a78c(){const n=['24IScyBE','withSpinner','(.+\x5c.app-tests.js)|(^|\x5c/|\x5c\x5c)_','app/packages','\x20-r\x20app','3vdjjtO','jsdoc','notice','jsdoc-config.json','inherit','app/private','apply','writeFileSync','Use\x20the\x20popular\x20JSDoc\x20documentation\x20generator','isFile','5201128RfkePj','sep','app/node_modules','3262228AfGXvB','1040659vasUGg','app/public','1111138kuQBAh','docs','join','toString','(((.+)+)+)+$','closure','error','findAppDirectory','utf-8','create','search','.+\x5c.(j|t)s(doc|x)?$','1809146CAgvyq','1589004WmVlik','Running\x20','fsi','\x20-c\x20','\x20-d\x20','[-]\x20You\x20may\x20need\x20to\x20install\x20jsdoc:\x20\x22npm\x20i\x20-g\x20jsdoc\x22','3823700EDErWC','plugins/markdown'];a78c=function(){return n;};return a78c();}Command[a78l(0x85)]({'name':a78l(0x6d),'usage':'maka\x20jsdoc','mustBeInMakaProject':!![],'shortDesc':a78l(0x74),'examples':['maka\x20jsdoc\x20--init','maka\x20jsdoc'],'validOpts':[]},function(){const m=a78l,a=a78e[m(0x7e)](this[m(0x8b)][m(0x83)](),m(0x7d)+a78e[m(0x77)]),b=a78e[m(0x7e)](this['fsi'][m(0x83)](),'config',m(0x6f)),c=m(0x6d);if(!this[m(0x8b)][m(0x75)](b)){const f={'plugins':[m(0x66)],'tags':{'allowUnknownTags':!![],'dictionaries':[m(0x6d),m(0x81)]},'source':{'includePattern':m(0x87),'excludePattern':m(0x69),'exclude':[m(0x6a),m(0x78),m(0x7b),m(0x71)]},'templates':{'cleverLinks':![],'monospaceLinks':![]},'opts':{'recursive':!![],'encoding':m(0x84)}};a78f[m(0x73)](b,JSON['stringify'](f,null,0x4));}const d=Log[m(0x68)](m(0x8a)+c);try{const g=c+m(0x8c)+b+m(0x6b)+a78e['sep']+m(0x8d)+a;execSync(g,{'stdio':m(0x70)}),Log[m(0x6e)]('\x0a[+]\x20Documentation\x20written\x20to\x20'+a);}catch(h){Log['error'](h),Log[m(0x82)](m(0x8e));}finally{d['stop']();}});
@@ -1 +1 @@
1
- const a79v=a79d;function a79c(){const x=['eslint/config.eslint.js','join','babel-preset-meteor','constructor','fix','3091466Kkjtsd','lint','apply','eslint/babel.config.js','format','eslint-plugin-css','stylish','@babel/eslint-parser','maka\x20lint','90BHsHsV','config.eslint.js','337998kDiZWC','pkg','(((.+)+)+)+$','exit','imports/**/*.{js,jsx,tsx,ts}','fsi','622191MzOTxz','1258486mtJMLZ','client','lib','eslint-plugin-prettier','silent','isFile','server','checkNpmPackage','template','3577581qLXUwy','latest','10hfDyDU','prettier','create','3490580xGvxjF','lintFiles','@typescript-eslint/parser','@babel/preset-env','bright','config','findProjectDirectory','service','outputFixes','@loadable/babel-plugin','babel.config.js','eslint-plugin-unused-imports','module','error','@babel/preset-react','toString','2735720IUuKCk','loadFormatter','eslint','search','@babel/plugin-transform-runtime','findAppDirectory'];a79c=function(){return x;};return a79c();}(function(a,b){const s=a79d,c=a();while(!![]){try{const d=parseInt(s(0x200))/0x1+-parseInt(s(0x20b))/0x2*(parseInt(s(0x1ff))/0x3)+-parseInt(s(0x20e))/0x4+-parseInt(s(0x1f7))/0x5*(-parseInt(s(0x1f9))/0x6)+-parseInt(s(0x1ee))/0x7+parseInt(s(0x1e3))/0x8+parseInt(s(0x209))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xa14ce));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a79d;if(c){const e=c[t(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const u=a79d;return a79a[u(0x1e2)]()['search'](u(0x1fb))[u(0x1e2)]()[u(0x1ec)](a79a)[u(0x1e6)](u(0x1fb));});a79a();import a79e from'path';import{ESLint}from'eslint';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a79d(a,b);}import a79f from'@babel/eslint-parser';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';Command[a79v(0x20d)]({'name':a79v(0x1ef),'usage':a79v(0x1f6),'maxArgLength':0x1,'validOpts':[a79v(0x1ed),a79v(0x204)],'mustBeInMakaProject':!![],'shortDesc':'Use\x20ESLint\x20to\x20lint\x20the\x20main\x20directories','description':'\x0a\x20\x20Lint\x20the\x20following\x20directories\x20by\x20default:\x0a\x20\x20\x20\x20-\x20./app/imports\x0a\x20\x20\x20\x20-\x20./app/client\x0a\x20\x20\x20\x20-\x20./app/lib\x0a\x20\x20\x20\x20-\x20./app/server\x0a\x0a\x20\x20This\x20command\x20will\x20install\x20and\x20configure\x20ESLint\x20if\x20not\x20already\x20set\x20up.\x0a\x0a\x20\x20You\x20can\x20find\x20the\x20eslint\x20config\x20at\x20\x22./app/config.eslint.js\x22\x0a\x20\x20','examples':['maka\x20lint\x20--fix']},async function(a,b){const w=a79v;try{const c=this['fsi'][w(0x1e8)](),d=this[w(0x1fe)][w(0x214)]();await this[w(0x1fa)][w(0x207)]([w(0x210),w(0x217),w(0x1e7),w(0x1eb)],{'cwd':c,'shouldInstall':!![],'saveDev':![]}),await this['pkg'][w(0x207)]([w(0x210),w(0x211),w(0x1e1),w(0x1f5),'@babel/plugin-transform-runtime'],{'cwd':c,'shouldInstall':!![],'saveDev':!![]}),await this[w(0x1fa)][w(0x207)]([w(0x1e5),w(0x20c),'eslint-config-prettier',w(0x1f3),w(0x203),'eslint-plugin-react',w(0x1de)],{'cwd':d,'shouldInstall':!![],'saveDev':![]});const f=a79e[w(0x1ea)](d,w(0x213),w(0x1f8)),g=this[w(0x1fe)]['isFile'](f);!g&&await this['scaffold'][w(0x208)]({'srcPath':w(0x1e9),'destPath':f,'framework':w(0x215),'context':{'noRename':!![]}});const h=a79e[w(0x1ea)](c,w(0x1dd)),i=this[w(0x1fe)][w(0x205)](h);!i&&await this['scaffold'][w(0x208)]({'srcPath':w(0x1f1),'destPath':h,'framework':w(0x215),'context':{'noRename':!![]}});const j=new ESLint({'fix':b['fix'],'cwd':c,'overrideConfigFile':f,'overrideConfig':{'languageOptions':{'ecmaVersion':w(0x20a),'sourceType':w(0x1df),'parser':a79f,'parserOptions':{'ecmaFeatures':{'jsx':!![]},'babelOptions':{'configFile':h},'requireConfigFile':!![]}}},'ignore':![]}),k=a79e[w(0x1ea)](c,w(0x1fd)),l=a79e[w(0x1ea)](c,w(0x201)),m=a79e[w(0x1ea)](c,w(0x206)),n=a79e[w(0x1ea)](c,w(0x202)),o=await j[w(0x20f)]([k,l,m,n]);b[w(0x1ed)]&&await ESLint[w(0x216)](o);const p=await j[w(0x1e4)](w(0x1f4)),q=await p[w(0x1f2)](o,{});q['length']>0x0&&Log[w(0x212)](q);}catch(r){console[w(0x1e0)](r),process[w(0x1fc)](0x1);}});
1
+ function a79c(){const w=['eslint-plugin-prettier','92808prwKbv','6464Wgkfhx','maka\x20lint\x20--fix','toString','isFile','config.eslint.js','eslint/babel.config.js','eslint/config.eslint.js','scaffold','stylish','format','loadFormatter','create','config','silent','16yihTId','fix','1847174SmQLty','checkNpmPackage','1916874JlQYpt','join','Use\x20ESLint\x20to\x20lint\x20the\x20main\x20directories','length','pkg','eslint-plugin-unused-imports','error','2050CifNLF','service','lint','lintFiles','2669004klfZnC','eslint-plugin-css','findAppDirectory','fsi','server','findProjectDirectory','@babel/plugin-transform-runtime','694480aACagk','(((.+)+)+)+$','babel.config.js','@babel/preset-env','bright','latest','module','2359511SlnLqm','babel-preset-meteor','@babel/eslint-parser','2frUMcq','search','20qKofgZ','@loadable/babel-plugin','eslint'];a79c=function(){return w;};return a79c();}const a79u=a79d;function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x11b;let f=c[d];return f;},a79d(a,b);}(function(a,b){const s=a79d,c=a();while(!![]){try{const d=parseInt(s(0x132))/0x1+parseInt(s(0x13c))/0x2*(-parseInt(s(0x142))/0x3)+-parseInt(s(0x143))/0x4*(-parseInt(s(0x127))/0x5)+parseInt(s(0x120))/0x6+parseInt(s(0x11e))/0x7*(-parseInt(s(0x11c))/0x8)+-parseInt(s(0x12b))/0x9+parseInt(s(0x13e))/0xa*(-parseInt(s(0x139))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x5fc45));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const t=a79d;return a79a[t(0x145)]()[t(0x13d)](t(0x133))['toString']()['constructor'](a79a)['search'](t(0x133));});a79a();import a79e from'path';import{ESLint}from'eslint';import a79f from'@babel/eslint-parser';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';Command[a79u(0x14e)]({'name':a79u(0x129),'usage':'maka\x20lint','maxArgLength':0x1,'validOpts':[a79u(0x11d),a79u(0x11b)],'mustBeInMakaProject':!![],'shortDesc':a79u(0x122),'description':'\x0a\x20\x20Lint\x20the\x20following\x20directories\x20by\x20default:\x0a\x20\x20\x20\x20-\x20./app/imports\x0a\x20\x20\x20\x20-\x20./app/client\x0a\x20\x20\x20\x20-\x20./app/lib\x0a\x20\x20\x20\x20-\x20./app/server\x0a\x0a\x20\x20This\x20command\x20will\x20install\x20and\x20configure\x20ESLint\x20if\x20not\x20already\x20set\x20up.\x0a\x0a\x20\x20You\x20can\x20find\x20the\x20eslint\x20config\x20at\x20\x22./app/config.eslint.js\x22\x0a\x20\x20','examples':[a79u(0x144)]},async function(a,b){const v=a79u;try{const c=this[v(0x12e)][v(0x12d)](),d=this[v(0x12e)][v(0x130)]();await this['pkg']['checkNpmPackage'](['@typescript-eslint/parser',v(0x13f),v(0x131),v(0x13a)],{'cwd':c,'shouldInstall':!![],'saveDev':![]}),await this[v(0x124)]['checkNpmPackage'](['@typescript-eslint/parser',v(0x135),'@babel/preset-react',v(0x13b),v(0x131)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]}),await this['pkg'][v(0x11f)]([v(0x140),'prettier','eslint-config-prettier',v(0x12c),v(0x141),'eslint-plugin-react',v(0x125)],{'cwd':d,'shouldInstall':!![],'saveDev':![]});const f=a79e['join'](d,v(0x14f),v(0x147)),g=this[v(0x12e)]['isFile'](f);!g&&await this[v(0x14a)]['template']({'srcPath':v(0x149),'destPath':f,'framework':v(0x128),'context':{'noRename':!![]}});const h=a79e['join'](c,v(0x134)),i=this[v(0x12e)][v(0x146)](h);!i&&await this[v(0x14a)]['template']({'srcPath':v(0x148),'destPath':h,'framework':v(0x128),'context':{'noRename':!![]}});const j=new ESLint({'fix':b[v(0x11d)],'cwd':c,'overrideConfigFile':f,'overrideConfig':{'languageOptions':{'ecmaVersion':v(0x137),'sourceType':v(0x138),'parser':a79f,'parserOptions':{'ecmaFeatures':{'jsx':!![]},'babelOptions':{'configFile':h},'requireConfigFile':!![]}}},'ignore':![]}),k=a79e[v(0x121)](c,'imports/**/*.{js,jsx,tsx,ts}'),l=a79e['join'](c,'client'),m=a79e['join'](c,v(0x12f)),n=a79e[v(0x121)](c,'lib'),o=await j[v(0x12a)]([k,l,m,n]);b[v(0x11d)]&&await ESLint['outputFixes'](o);const p=await j[v(0x14d)](v(0x14b)),q=await p[v(0x14c)](o,{});q[v(0x123)]>0x0&&Log[v(0x136)](q);}catch(r){console[v(0x126)](r),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a80D=a80d;(function(a,b){const z=a80d,c=a();while(!![]){try{const d=-parseInt(z(0xe1))/0x1*(-parseInt(z(0xcc))/0x2)+parseInt(z(0xfc))/0x3*(parseInt(z(0xc5))/0x4)+-parseInt(z(0xef))/0x5+parseInt(z(0xd6))/0x6+-parseInt(z(0xc7))/0x7*(-parseInt(z(0xcd))/0x8)+-parseInt(z(0xea))/0x9+parseInt(z(0xe5))/0xa*(parseInt(z(0xf0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x8179e));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a80d;if(c){const e=c[A(0xf3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const B=a80d;return a80a[B(0xce)]()[B(0xdf)](B(0x102))[B(0xce)]()[B(0xd5)](a80a)['search'](B(0x102));});function a80c(){const F=['(((.+)+)+)+$','/api/login','/api/v1/status','sha256','cacert','maka\x20login\x20--email\x20<address>\x20--password\x20<password>','/api/v1/encodeJwt','error','statusMessage','ask','isFile','post','update','exit','477612OePZyF','Logging\x20in','889gdEqGw','message','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','toHex','Password:\x20','60sEzcMk','624jFDBXm','toString','log','help','\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','notice','Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','constructor','745188oklYrk','MAKA_DEV','reset','https://','cfg','True','Using\x20CA\x20Cert\x20','cert','Securing\x20connection\x20to\x20https://','search','success','16631rsdiMM','/api/v1/forgotPassword','authToken','parse','1943630KXoScE','start','Preflight\x20Check','withSpinner','test','3869010HhVejd','assign','localhost','Invalid\x20email\x20address','debug','2320940QaVKQN','11UbmJdF','setGlobalConfig','Email:','apply','email','failure','digest','create','get','maka\x20login','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','password','15flgkrJ','Sending\x20Password\x20Reset\x20Email','Please\x20enter\x20your\x20email\x20address\x20to\x20receive\x20a\x20password\x20reset\x20link.','login','fsi','If\x20you\x20need\x20to\x20reset\x20your\x20password,\x20run\x20`maka\x20login\x20--reset`'];a80c=function(){return F;};return a80c();}a80a();import a80e from'node-forge';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0xc1;let f=c[d];return f;},a80d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';function validateEmail(a){const C=a80d,b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return b[C(0xe9)](String(a)['toLowerCase']());}const hostname=process['env'][a80D(0xd7)]===a80D(0xdb)?a80D(0xec):'www.maka-cli.com';Command[a80D(0xf7)]({'name':a80D(0xff),'validOpts':['email',a80D(0xfb),a80D(0xd0),a80D(0xd8),'verify',a80D(0x106),a80D(0xee)],'usage':'maka\x20login','maxArgLength':0x2,'mustBeInMakaProject':![],'disableAuthCheck':!![],'shortDesc':'Logs\x20in\x20to\x20www.maka-cli.com','examples':[a80D(0xf9),a80D(0x107),'maka\x20login\x20--reset']},async function(a,b){const E=a80D,c=Log[E(0xe8)]();try{let d='';b['cacert']&&(this[E(0x100)][E(0xc1)](b['cacert'])?(d=b['cacert'],Log[E(0xd2)](E(0xdc)+d)):Log[E(0x109)](E(0xfa)+d));const f=await this[E(0xda)]['getGlobalConfig']();if(f[E(0xdd)]){if(this[E(0x100)]['isFile'](f[E(0xdd)]))d=f[E(0xdd)];else{Log['error'](E(0xc9)+d);return;}}Log['header'](E(0xde)+hostname);const g={'url':E(0xd9)+hostname+E(0x104)};b[E(0x106)]&&Object['assign'](g,{'cert':d});c[E(0xe6)](E(0xe7));const {statusCode:h}=await HTTPS[E(0xf8)](g);if(h===0x198){c[E(0xf5)]();throw E(0xd4);}if(h!==0xc8){c[E(0xf5)]();throw E(0xd9)+hostname+E(0xd1);}c[E(0xe0)]();if(b['reset']){Log[E(0xd2)](E(0xfe));const q=await Actions[E(0x10b)](E(0xf2)),r={'hostname':hostname,'path':E(0xe2),'data':{'email':q}};if(!validateEmail(q))throw E(0xed);b[E(0x106)]&&Object[E(0xeb)](r,{'cert':d});c[E(0xe6)](E(0xfd));const {data:s,statusCode:t}=await HTTPS[E(0xc2)](r);if(t===0x198){c['failure']('\x0a');throw E(0xd3)+hostname;}const u=JSON[E(0xe4)](s);t===0xc8?(c[E(0xe0)](),Log[E(0xd2)](u[E(0xc8)])):c['failure']();return;}const i=b[E(0xf4)]?b[E(0xf4)]:await Actions[E(0x10b)]('Email:');if(!validateEmail(i))throw'Invalid\x20email\x20address';const j=b['password']?b[E(0xfb)]:await Actions[E(0x10b)](E(0xcb),!![]),k=a80e['md'][E(0x105)][E(0xf7)]();k[E(0xc3)](j);const l=k[E(0xf6)]()[E(0xca)](),m={'hostname':hostname,'path':E(0x103),'data':{'email':i,'password':l,'hashed':!![]}};b[E(0x106)]&&Object[E(0xeb)](m,{'cert':d});c[E(0xe6)](E(0xc6));const {data:n,statusCode:o}=await HTTPS[E(0xc2)](m),p=JSON[E(0xe4)](n);if(o>=0x190){c['failure']('\x0a');throw p[E(0x109)];}if(p[E(0xe3)]){const v={'hostname':hostname,'path':E(0x108),'headers':{'x-auth-token':p[E(0xe3)]},'data':{}};b['cacert']&&Object[E(0xeb)](v,{'cert':d});const {statusCode:w}=await HTTPS['post'](v);if(w===0x198)throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://'+hostname;const x={'token':p};await this[E(0xda)][E(0xf1)](x);}else{c['failure']();throw p;}c[E(0xe0)]();}catch(y){y[E(0x10a)]?Log[E(0x109)](y[E(0x10a)]):(console['log'](''),console[E(0xcf)](y)),Log[E(0xd2)](E(0x101)),process[E(0xc4)](0x0);}});
1
+ function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x10e;let f=c[d];return f;},a80d(a,b);}const a80D=a80d;(function(a,b){const z=a80d,c=a();while(!![]){try{const d=-parseInt(z(0x11e))/0x1+-parseInt(z(0x11f))/0x2*(parseInt(z(0x131))/0x3)+-parseInt(z(0x150))/0x4+-parseInt(z(0x143))/0x5+parseInt(z(0x149))/0x6+parseInt(z(0x120))/0x7*(parseInt(z(0x148))/0x8)+parseInt(z(0x11c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xcbbb4));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a80d;if(c){const e=c[A(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const B=a80d;return a80a[B(0x118)]()[B(0x144)](B(0x12f))[B(0x118)]()[B(0x138)](a80a)[B(0x144)]('(((.+)+)+)+$');});a80a();import a80e from'node-forge';import{Command}from'../command.js';function a80c(){const F=['CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','success','statusMessage','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','test','message','/api/login','Sending\x20Password\x20Reset\x20Email','Logs\x20in\x20to\x20www.maka-cli.com','assign','isFile','failure','(((.+)+)+)+$','withSpinner','2019945sgBltB','log','update','reset','Logging\x20in','ask','toHex','constructor','cfg','get','Preflight\x20Check','start','If\x20you\x20need\x20to\x20reset\x20your\x20password,\x20run\x20`maka\x20login\x20--reset`','debug','login','email','www.maka-cli.com','Invalid\x20email\x20address','4006885sSNcfP','search','create','maka\x20login','authToken','611824tXluiB','2422980uIrOPt','notice','Please\x20enter\x20your\x20email\x20address\x20to\x20receive\x20a\x20password\x20reset\x20link.','error','cacert','Email:','password','3778904VNmBBQ','getGlobalConfig','setGlobalConfig','Password:\x20','cert','MAKA_DEV','apply','post','https://','exit','env','toString','fsi','Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://','Securing\x20connection\x20to\x20https://','24793497fSHOPs','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','684528GCYDWU','4QOkQEC','133fpfsSi','header','/api/v1/forgotPassword'];a80c=function(){return F;};return a80c();}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';function validateEmail(a){const C=a80d,b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return b[C(0x127)](String(a)['toLowerCase']());}const hostname=process[a80D(0x117)][a80D(0x112)]==='True'?'localhost':a80D(0x141);Command[a80D(0x145)]({'name':a80D(0x13f),'validOpts':[a80D(0x140),a80D(0x14f),'help',a80D(0x134),'verify',a80D(0x14d),a80D(0x13e)],'usage':a80D(0x146),'maxArgLength':0x2,'mustBeInMakaProject':![],'disableAuthCheck':!![],'shortDesc':a80D(0x12b),'examples':[a80D(0x146),'maka\x20login\x20--email\x20<address>\x20--password\x20<password>','maka\x20login\x20--reset']},async function(a,b){const E=a80D,c=Log[E(0x130)]();try{let d='';b[E(0x14d)]&&(this[E(0x119)][E(0x12d)](b[E(0x14d)])?(d=b[E(0x14d)],Log[E(0x14a)]('Using\x20CA\x20Cert\x20'+d)):Log[E(0x14c)](E(0x11d)+d));const f=await this[E(0x139)][E(0x10e)]();if(f['cert']){if(this['fsi'][E(0x12d)](f[E(0x111)]))d=f[E(0x111)];else{Log[E(0x14c)](E(0x123)+d);return;}}Log[E(0x121)](E(0x11b)+hostname);const g={'url':E(0x115)+hostname+'/api/v1/status'};b[E(0x14d)]&&Object['assign'](g,{'cert':d});c[E(0x13c)](E(0x13b));const {statusCode:h}=await HTTPS[E(0x13a)](g);if(h===0x198){c[E(0x12e)]();throw E(0x126);}if(h!==0xc8){c[E(0x12e)]();throw E(0x115)+hostname+'\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}c[E(0x124)]();if(b[E(0x134)]){Log['notice'](E(0x14b));const q=await Actions[E(0x136)](E(0x14e)),r={'hostname':hostname,'path':E(0x122),'data':{'email':q}};if(!validateEmail(q))throw E(0x142);b[E(0x14d)]&&Object['assign'](r,{'cert':d});c[E(0x13c)](E(0x12a));const {data:s,statusCode:t}=await HTTPS[E(0x114)](r);if(t===0x198){c['failure']('\x0a');throw E(0x11a)+hostname;}const u=JSON['parse'](s);t===0xc8?(c[E(0x124)](),Log['notice'](u[E(0x128)])):c['failure']();return;}const i=b[E(0x140)]?b['email']:await Actions[E(0x136)](E(0x14e));if(!validateEmail(i))throw E(0x142);const j=b['password']?b[E(0x14f)]:await Actions[E(0x136)](E(0x110),!![]),k=a80e['md']['sha256'][E(0x145)]();k[E(0x133)](j);const l=k['digest']()[E(0x137)](),m={'hostname':hostname,'path':E(0x129),'data':{'email':i,'password':l,'hashed':!![]}};b[E(0x14d)]&&Object['assign'](m,{'cert':d});c[E(0x13c)](E(0x135));const {data:n,statusCode:o}=await HTTPS['post'](m),p=JSON['parse'](n);if(o>=0x190){c[E(0x12e)]('\x0a');throw p['error'];}if(p[E(0x147)]){const v={'hostname':hostname,'path':'/api/v1/encodeJwt','headers':{'x-auth-token':p[E(0x147)]},'data':{}};b[E(0x14d)]&&Object[E(0x12c)](v,{'cert':d});const {statusCode:w}=await HTTPS[E(0x114)](v);if(w===0x198)throw E(0x11a)+hostname;const x={'token':p};await this[E(0x139)][E(0x10f)](x);}else{c[E(0x12e)]();throw p;}c[E(0x124)]();}catch(y){y[E(0x125)]?Log[E(0x14c)](y[E(0x125)]):(console['log'](''),console[E(0x132)](y)),Log[E(0x14a)](E(0x13d)),process[E(0x116)](0x0);}});
@@ -1 +1 @@
1
- const a81p=a81d;(function(a,b){const m=a81d,c=a();while(!![]){try{const d=parseInt(m(0x114))/0x1*(-parseInt(m(0x123))/0x2)+-parseInt(m(0x116))/0x3+parseInt(m(0x140))/0x4+-parseInt(m(0x138))/0x5*(parseInt(m(0x124))/0x6)+parseInt(m(0x131))/0x7*(parseInt(m(0x132))/0x8)+parseInt(m(0x141))/0x9+parseInt(m(0x13c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x9a185));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a81d;if(c){const e=c[n(0x11b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const o=a81d;return a81a[o(0x144)]()[o(0x11d)](o(0x13a))[o(0x144)]()[o(0x12b)](a81a)[o(0x11d)](o(0x13a));});a81a();import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x114;let f=c[d];return f;},a81d(a,b);}function a81c(){const r=['CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','Logging\x20out','env','withSpinner','1168125mkqKlW','8ammzIY','True','You\x20may\x20not\x20be\x20logged\x20in...','start','success','post','106510kpnkio','notice','(((.+)+)+)+$','isFile','3392470NzSGGq','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','header','Using\x20CA\x20Cert\x20','1771388nsyFtK','1696536YaBABl','www.maka-cli.com','/api/v1/status','toString','Securing\x20connection\x20to\x20https://','exit','43457oLOPTZ','cfg','1324623rsMfyQ','token','localhost','https://','cacert','apply','authToken','search','statusMessage','error','maka\x20logout','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','2KeLwNE','6eufCYo','logout','assign','fsi','cert','failure','setGlobalConfig','constructor','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'];a81c=function(){return r;};return a81c();}const hostname=process[a81p(0x12f)]['MAKA_DEV']===a81p(0x133)?a81p(0x118):a81p(0x142);Command['create']({'name':a81p(0x125),'validOpts':[a81p(0x11a)],'usage':a81p(0x120),'maxArgLength':0x2,'shortDesc':a81p(0x121),'disableAuthCheck':!![],'examples':['maka\x20logout']},async function(a,b){const q=a81p,c=Log[q(0x130)]();try{let d='';b[q(0x11a)]&&(this[q(0x127)][q(0x13b)](b['cacert'])?(d=b[q(0x11a)],Log[q(0x139)](q(0x13f)+d)):Log['error'](q(0x12c)+d));const f=await this[q(0x115)]['getGlobalConfig']();if(f[q(0x128)]){if(this[q(0x127)][q(0x13b)](f[q(0x128)]))d=f[q(0x128)];else{c['failure']();throw Log[q(0x11f)](q(0x12d)+d);}}Log[q(0x13e)](q(0x145)+hostname);const g={'url':q(0x119)+hostname+q(0x143)};b[q(0x11a)]&&Object['assign'](g,{'cert':d});c[q(0x135)]('Preflight\x20Check');const {statusCode:h}=await HTTPS['get'](g);if(h===0x198){c['failure']();throw q(0x122);}c['success']();if(h!==0xc8){c[q(0x129)]();throw'https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}if(!f?.[q(0x117)]?.[q(0x11c)])throw Log['error'](q(0x13d));c[q(0x135)](q(0x12e));const i={'hostname':hostname,'path':'/api/logoutAll','data':{},'headers':{'x-auth-token':f[q(0x117)][q(0x11c)]}};b[q(0x11a)]&&Object[q(0x126)](i,{'cert':d});const {statusCode:j,statusMessage:k}=await HTTPS[q(0x137)](i);if(j>=0x190)throw k;this['cfg'][q(0x12a)]({'token':{'authToken':'','userId':'','when':''}}),c[q(0x136)]();}catch(l){c[q(0x129)]('\x0a'),l&&(l[q(0x11e)]?Log[q(0x11f)](l[q(0x11e)]):(Log['error'](l),Log[q(0x139)](q(0x134)))),process[q(0x146)](0x0);}});
1
+ function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0xc8;let f=c[d];return f;},a81d(a,b);}const a81p=a81d;function a81c(){const r=['withSpinner','failure','Securing\x20connection\x20to\x20https://','isFile','cfg','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','www.maka-cli.com','You\x20may\x20not\x20be\x20logged\x20in...','statusMessage','header','setGlobalConfig','error','success','1875314oWjFtY','notice','54zDDzAn','Using\x20CA\x20Cert\x20','toString','getGlobalConfig','logout','localhost','search','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','/api/v1/status','maka\x20logout','1193721hwERIr','exit','authToken','constructor','Logging\x20out','apply','226899SVXtUI','Preflight\x20Check','start','cert','True','2665920nVxrQc','MAKA_DEV','token','cacert','assign','4ZasMRY','(((.+)+)+)+$','/api/logoutAll','6745bjIMfd','812311kIyWdx','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','270jBXKlB','fsi','83642GdevDY'];a81c=function(){return r;};return a81c();}(function(a,b){const m=a81d,c=a();while(!![]){try{const d=parseInt(m(0xf5))/0x1+-parseInt(m(0xf9))/0x2+-parseInt(m(0xe1))/0x3*(-parseInt(m(0xf1))/0x4)+-parseInt(m(0xf4))/0x5*(-parseInt(m(0xd7))/0x6)+parseInt(m(0xd5))/0x7+-parseInt(m(0xec))/0x8+-parseInt(m(0xe7))/0x9*(parseInt(m(0xf7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x6a147));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a81d;if(c){const e=c[n(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const o=a81d;return a81a[o(0xd9)]()['search'](o(0xf2))[o(0xd9)]()[o(0xe4)](a81a)[o(0xdd)](o(0xf2));});a81a();import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process['env'][a81p(0xed)]===a81p(0xeb)?a81p(0xdc):a81p(0xce);Command['create']({'name':a81p(0xdb),'validOpts':['cacert'],'usage':a81p(0xe0),'maxArgLength':0x2,'shortDesc':'Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','disableAuthCheck':!![],'examples':[a81p(0xe0)]},async function(a,b){const q=a81p,c=Log[q(0xc8)]();try{let d='';b['cacert']&&(this[q(0xf8)][q(0xcb)](b['cacert'])?(d=b[q(0xef)],Log[q(0xd6)](q(0xd8)+d)):Log[q(0xd3)](q(0xf6)+d));const f=await this[q(0xcc)][q(0xda)]();if(f[q(0xea)]){if(this[q(0xf8)]['isFile'](f['cert']))d=f[q(0xea)];else{c[q(0xc9)]();throw Log[q(0xd3)](q(0xcd)+d);}}Log[q(0xd1)](q(0xca)+hostname);const g={'url':'https://'+hostname+q(0xdf)};b['cacert']&&Object[q(0xf0)](g,{'cert':d});c[q(0xe9)](q(0xe8));const {statusCode:h}=await HTTPS['get'](g);if(h===0x198){c[q(0xc9)]();throw q(0xde);}c[q(0xd4)]();if(h!==0xc8){c[q(0xc9)]();throw'https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}if(!f?.[q(0xee)]?.['authToken'])throw Log[q(0xd3)]('Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?');c[q(0xe9)](q(0xe5));const i={'hostname':hostname,'path':q(0xf3),'data':{},'headers':{'x-auth-token':f[q(0xee)][q(0xe3)]}};b[q(0xef)]&&Object[q(0xf0)](i,{'cert':d});const {statusCode:j,statusMessage:k}=await HTTPS['post'](i);if(j>=0x190)throw k;this['cfg'][q(0xd2)]({'token':{'authToken':'','userId':'','when':''}}),c[q(0xd4)]();}catch(l){c[q(0xc9)]('\x0a'),l&&(l[q(0xd0)]?Log[q(0xd3)](l[q(0xd0)]):(Log[q(0xd3)](l),Log[q(0xd6)](q(0xcf)))),process[q(0xe2)](0x0);}});
@@ -1 +1 @@
1
- const a82m=a82d;function a82c(){const o=['log','apply','107248HmBGlc','error','create','69CHCwfD','232pdDxEb','parse','sshSync','env','join','pm2\x20logs','logs','maka\x20logs','132699nHKjFd','9399808kCOwQe','ssh.json','369mqVieH','38YWDCqV','toString','readFileSync','1568340eyxwyB','verbose','34484zhsUzw','3323442IRgMWN','constructor','91470aFnvHt','assign','(((.+)+)+)+$','maka\x20l\x20-e\x20p'];a82c=function(){return o;};return a82c();}(function(a,b){const j=a82d,c=a();while(!![]){try{const d=-parseInt(j(0x8e))/0x1*(-parseInt(j(0x75))/0x2)+-parseInt(j(0x81))/0x3*(parseInt(j(0x7e))/0x4)+-parseInt(j(0x73))/0x5+parseInt(j(0x76))/0x6+parseInt(j(0x8a))/0x7*(parseInt(j(0x82))/0x8)+parseInt(j(0x8d))/0x9*(parseInt(j(0x78))/0xa)+-parseInt(j(0x8b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x55353));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a82d;if(c){const e=c[k(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const l=a82d;return a82a[l(0x71)]()['search'](l(0x7a))[l(0x71)]()[l(0x77)](a82a)['search'](l(0x7a));});a82a();import a82e from'fs';import a82f from'path';import{Command}from'../command.js';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x71;let f=c[d];return f;},a82d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a82m(0x80)]({'name':a82m(0x88),'aliases':['l',a82m(0x7c)],'usage':a82m(0x89),'requiredOpts':[a82m(0x85)],'mustBeInMakaProject':!![],'validOpts':[a82m(0x74)],'shortDesc':'View\x20the\x20PM2\x20logs','examples':['maka\x20logs\x20--env\x20dev','maka\x20logs\x20--env\x20staging',a82m(0x7b)]},function(a,b){const n=a82m;try{const c=n(0x87),d=this['cfg']['getAppConfigPath'](b[n(0x85)]),f=a82f[n(0x86)](d,n(0x8c)),g=a82e[n(0x72)](f),h=JSON[n(0x83)](g[n(0x71)]());Object[n(0x79)](h,{'env':d}),SSH[n(0x84)](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[n(0x7f)](i);}});
1
+ const a82l=a82d;function a82c(){const n=['6480650akSlNT','1desWJz','19026ZlAdfb','assign','774koKzDb','pm2\x20logs','456qsHoNi','ssh.json','514900bGPeBW','join','maka\x20logs\x20--env\x20dev','logs','readFileSync','2053100PxgDCI','env','search','182TDGmwF','View\x20the\x20PM2\x20logs','cfg','maka\x20l\x20-e\x20p','sshSync','1953Zcwodf','(((.+)+)+)+$','toString','log','8312nXWjpa','104446eofDCK','maka\x20logs\x20--env\x20staging','verbose','error'];a82c=function(){return n;};return a82c();}(function(a,b){const j=a82d,c=a();while(!![]){try{const d=-parseInt(j(0x1ff))/0x1*(parseInt(j(0x1fa))/0x2)+parseInt(j(0x1e4))/0x3*(parseInt(j(0x1e6))/0x4)+-parseInt(j(0x1e8))/0x5+-parseInt(j(0x200))/0x6*(-parseInt(j(0x1f0))/0x7)+parseInt(j(0x1f9))/0x8*(-parseInt(j(0x1f5))/0x9)+-parseInt(j(0x1ed))/0xa+parseInt(j(0x1fe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x1c158));function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x1e4;let f=c[d];return f;},a82d(a,b);}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 k=a82d;return a82a['toString']()[k(0x1ef)](k(0x1f6))[k(0x1f7)]()['constructor'](a82a)[k(0x1ef)]('(((.+)+)+)+$');});a82a();import a82e from'fs';import a82f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command['create']({'name':a82l(0x1eb),'aliases':['l',a82l(0x1f8)],'usage':'maka\x20logs','requiredOpts':[a82l(0x1ee)],'mustBeInMakaProject':!![],'validOpts':[a82l(0x1fc)],'shortDesc':a82l(0x1f1),'examples':[a82l(0x1ea),a82l(0x1fb),a82l(0x1f3)]},function(a,b){const m=a82l;try{const c=m(0x1e5),d=this[m(0x1f2)]['getAppConfigPath'](b[m(0x1ee)]),f=a82f[m(0x1e9)](d,m(0x1e7)),g=a82e[m(0x1ec)](f),h=JSON['parse'](g[m(0x1f7)]());Object[m(0x201)](h,{'env':d}),SSH[m(0x1f4)](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[m(0x1fd)](i);}});
@@ -1 +1 @@
1
- const a83i=a83d;(function(a,b){const f=a83d,c=a();while(!![]){try{const d=-parseInt(f(0x8b))/0x1*(-parseInt(f(0x7a))/0x2)+-parseInt(f(0x7c))/0x3*(parseInt(f(0x81))/0x4)+-parseInt(f(0x83))/0x5+-parseInt(f(0x80))/0x6+-parseInt(f(0x87))/0x7*(parseInt(f(0x90))/0x8)+parseInt(f(0x7b))/0x9*(parseInt(f(0x8f))/0xa)+parseInt(f(0x7d))/0xb*(parseInt(f(0x8d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xbcecc));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a83d;if(c){const e=c[g(0x85)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const h=a83d;return a83a[h(0x84)]()[h(0x92)](h(0x8e))[h(0x84)]()[h(0x89)](a83a)[h(0x92)](h(0x8e));});function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x7a;let f=c[d];return f;},a83d(a,b);}a83a();import{Command}from'../command.js';const Maka=new Command({'name':'maka','minArgLength':0x1,'shortDesc':'A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','validOpts':[],'usage':a83i(0x8c),'resourceNameRequired':![],'disableAuthCheck':!![],'examples':[a83i(0x8a),a83i(0x82),'maka\x20create\x20Todo',a83i(0x88)],'description':a83i(0x86)},async function(a,b){const j=a83i;try{const c=a[0x0];return a[j(0x7e)](0x0,0x1),await this[j(0x7f)](c,a,b);}catch(d){process[j(0x91)](0x1);}});function a83c(){const k=['exit','search','7626NqdOkw','1792836QwAOQJ','12027yxAntT','18029MKbVqv','splice','processAndRunCommand','8060682OAexSj','832hFaQTb','maka\x20install\x20meteor','6816515cINtHM','toString','apply','\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20\x20::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::::::\x20.:::::::\x20..\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20..:.....\x20.::..::.\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20\x20::::::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::..-::.\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::....\x20\x20::..---:..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20.\x20.:::::::\x20\x20::..::.\x20..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:.\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:--\x20\x20\x20\x20\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20:\x0a.:..::...::.\x20\x20\x20....:\x20\x20\x20.:\x20\x20\x20::\x20\x20....:.\x20\x20\x20\x20\x20\x20\x20\x20.::::\x20\x20.:\x20\x20::\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20\x20....:-\x20\x20.-..:.\x20\x20\x20....:-\x20\x20...\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20.:\x20\x20\x20:-\x20\x20.-\x20\x20.:\x20\x20.:\x20\x20\x20:-\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a.:.\x20\x20\x20:.\x20\x20\x20.:\x20\x20....\x20:.\x20.:.\x20\x20..\x20\x20....\x20:.\x20\x20\x20\x20\x20\x20\x20.....\x20\x20.:.\x20.:.\x0a\x0a\x20\x20','48685dSsQqU','maka\x20run','constructor','maka\x20--help','308vfgACe','maka\x20<command>\x20[<args>]\x20[<opts>]','22572EPDLxT','(((.+)+)+)+$','50zftDvn','1080hBgcNZ'];a83c=function(){return k;};return a83c();}export default Maka;
1
+ const a83i=a83d;(function(a,b){const f=a83d,c=a();while(!![]){try{const d=parseInt(f(0xe3))/0x1+parseInt(f(0xdd))/0x2*(parseInt(f(0xdb))/0x3)+parseInt(f(0xd3))/0x4*(parseInt(f(0xe1))/0x5)+parseInt(f(0xd9))/0x6*(-parseInt(f(0xdc))/0x7)+parseInt(f(0xe4))/0x8+-parseInt(f(0xe6))/0x9*(-parseInt(f(0xe5))/0xa)+-parseInt(f(0xd4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xcb961));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a83d;if(c){const e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const h=a83d;return a83a['toString']()[h(0xd5)]('(((.+)+)+)+$')[h(0xd6)]()[h(0xd7)](a83a)[h(0xd5)](h(0xe0));});a83a();import{Command}from'../command.js';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0xd2;let f=c[d];return f;},a83d(a,b);}const Maka=new Command({'name':a83i(0xd8),'minArgLength':0x1,'shortDesc':'A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','validOpts':[],'usage':a83i(0xde),'resourceNameRequired':![],'disableAuthCheck':!![],'examples':['maka\x20--help',a83i(0xd2),'maka\x20create\x20Todo',a83i(0xe2)],'description':'\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.-:\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20:-.\x20\x20\x20\x20\x20:--\x20\x20-:\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::\x20\x20::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::::::\x20.:::::::\x20..\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20..:.....\x20.::..::.\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20.::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::::::\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20\x20::::::\x20\x20\x20\x20\x20.::.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.-.\x20\x20\x20\x20\x20.::..-::.\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20.\x20.:::....\x20\x20::..---:..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.:\x20\x20.\x20.:::::::\x20\x20::..::.\x20..\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:::\x20\x20\x20\x20\x20.:.\x20\x20\x20\x20\x20.::\x20\x20:.\x20\x20\x20\x20\x20.-:.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-::\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:--\x20\x20\x20\x20\x20\x20\x20\x20\x20.--.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.-:\x0a\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20:\x0a.:..::...::.\x20\x20\x20....:\x20\x20\x20.:\x20\x20\x20::\x20\x20....:.\x20\x20\x20\x20\x20\x20\x20\x20.::::\x20\x20.:\x20\x20::\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20\x20....:-\x20\x20.-..:.\x20\x20\x20....:-\x20\x20...\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a\x20:.\x20\x20\x20:.\x20\x20\x20:.\x20.:\x20\x20\x20:-\x20\x20.-\x20\x20.:\x20\x20.:\x20\x20\x20:-\x20\x20\x20\x20\x20\x20\x20:.\x20\x20\x20\x20\x20\x20.:\x20\x20.:\x0a.:.\x20\x20\x20:.\x20\x20\x20.:\x20\x20....\x20:.\x20.:.\x20\x20..\x20\x20....\x20:.\x20\x20\x20\x20\x20\x20\x20.....\x20\x20.:.\x20.:.\x0a\x0a\x20\x20'},async function(a,b){const j=a83i;try{const c=a[0x0];return a['splice'](0x0,0x1),await this['processAndRunCommand'](c,a,b);}catch(d){process[j(0xda)](0x1);}});function a83c(){const k=['search','toString','constructor','maka','2892jHseSi','exit','4004853XsELhM','21826PAgXbi','2qQqgKp','maka\x20<command>\x20[<args>]\x20[<opts>]','apply','(((.+)+)+)+$','55EOqEJX','maka\x20run','635550RzUTOJ','3312456TxHhlh','170bAsmhW','362106iBYPAh','maka\x20install\x20meteor','324580DxhatI','17868026cBhAks'];a83c=function(){return k;};return a83c();}export default Maka;
@@ -1 +1 @@
1
- var a84i=a84d;function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x164;var f=c[d];return f;},a84d(a,b);}function a84c(){var k=['Murrrrderrrrr','242574qxfAhE','toString','apply','search','%c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.___.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20,-^\x20\x20\x20\x20\x20^-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x0a.-------|\x20|--------------/\x20\x20__\x20\x20\x20\x20\x20__\x20\x20\x5c-------------------.__\x0a|WMWMWMW|\x20|>>>>>>>>>>>>>\x20|\x20/>>\x5c\x20\x20\x20/>>\x5c\x20|>>>>>>>>>>>>>>>>>>>>>>:>\x0a`-------|\x20|--------------|\x20\x5c__/\x20\x20\x20\x5c__/\x20|-------------------\x27^^\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x5c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20/|\x5c\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x5c_/\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|+H+H+H+|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^-----^\x0a\x0a','(((.+)+)+)+$','constructor','error','115JmmHbq','24188607WHIBxa','6434617LQYkzW','454416NBjmIx','458468CwdGWx','2502852bNiLSr','7891504RsSezP','create','exit','1gaQIxq'];a84c=function(){return k;};return a84c();}(function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0x165))/0x1*(-parseInt(f(0x173))/0x2)+-parseInt(f(0x174))/0x3+-parseInt(f(0x172))/0x4+-parseInt(f(0x16f))/0x5*(parseInt(f(0x167))/0x6)+parseInt(f(0x171))/0x7+-parseInt(f(0x175))/0x8+parseInt(f(0x170))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x7d593));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x168)]()['search'](h(0x16c))[h(0x168)]()[h(0x16d)](a84a)[h(0x16a)](h(0x16c));});a84a();import{Command}from'../command.js';Command[a84i(0x176)]({'name':'murder','usage':'maka\x20murder','maxArgLength':0x1,'shortDesc':a84i(0x166),'validOpts':[]},async function(){var j=a84i;try{console['log'](j(0x16b),'font-family:\x20monospace');}catch(a){console[j(0x16e)](a),process[j(0x164)](0x0);}});
1
+ var a84i=a84d;(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0x170))/0x1*(-parseInt(f(0x16e))/0x2)+-parseInt(f(0x177))/0x3*(-parseInt(f(0x16b))/0x4)+parseInt(f(0x172))/0x5*(parseInt(f(0x178))/0x6)+-parseInt(f(0x175))/0x7+-parseInt(f(0x17d))/0x8+-parseInt(f(0x16f))/0x9+parseInt(f(0x171))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x7c2df));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x17f)]()[h(0x180)](h(0x173))[h(0x17f)]()[h(0x176)](a84a)['search'](h(0x173));});function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x16b;var f=c[d];return f;},a84d(a,b);}a84a();function a84c(){var k=['Murrrrderrrrr','10Phecxh','991863cTjsrg','9131iQXPEn','8387070UOWcLn','10FAwGdi','(((.+)+)+)+$','maka\x20murder','5493271IIejww','constructor','33TfArLJ','2164968tKVvaa','error','font-family:\x20monospace','create','log','5772336haITWy','murder','toString','search','188772BzigGF','apply'];a84c=function(){return k;};return a84c();}import{Command}from'../command.js';Command[a84i(0x17b)]({'name':a84i(0x17e),'usage':a84i(0x174),'maxArgLength':0x1,'shortDesc':a84i(0x16d),'validOpts':[]},async function(){var j=a84i;try{console[j(0x17c)]('%c\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20.___.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20,-^\x20\x20\x20\x20\x20^-.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20/\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x0a.-------|\x20|--------------/\x20\x20__\x20\x20\x20\x20\x20__\x20\x20\x5c-------------------.__\x0a|WMWMWMW|\x20|>>>>>>>>>>>>>\x20|\x20/>>\x5c\x20\x20\x20/>>\x5c\x20|>>>>>>>>>>>>>>>>>>>>>>:>\x0a`-------|\x20|--------------|\x20\x5c__/\x20\x20\x20\x5c__/\x20|-------------------\x27^^\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x5c\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20/|\x5c\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c)\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x5c_/\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|\x20\x20\x20\x20\x20\x20\x20|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20|+H+H+H+|\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x5c\x20\x20\x20\x20\x20\x20\x20/\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20^-----^\x0a\x0a',j(0x17a));}catch(a){console[j(0x179)](a),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a85C=a85d;(function(a,b){const z=a85d,c=a();while(!![]){try{const d=parseInt(z(0x15f))/0x1*(-parseInt(z(0x14e))/0x2)+parseInt(z(0x13e))/0x3+-parseInt(z(0x16a))/0x4+-parseInt(z(0x12f))/0x5+-parseInt(z(0x152))/0x6+parseInt(z(0x154))/0x7+parseInt(z(0x15c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x2cc07));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a85d;if(c){const e=c[A(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const B=a85d;return a85a[B(0x130)]()[B(0x120)](B(0x15a))['toString']()[B(0x15b)](a85a)[B(0x120)]('(((.+)+)+)+$');});function a85c(){const M=['users','No\x20API\x20routes\x20detected.\x20Proceeding\x20without\x20profiling\x20API\x20routes.','exit','Profile\x20a\x20Meteor\x20app\x20for\x20performance','results','length','Error:\x20','get','getMakaProjectConfig','Running\x20performance\x20test','notice','Enter\x20the\x20port\x20of\x20the\x20Meteor\x20app\x20[3000]:','mkdirSync','Test\x20results\x20saved\x20to\x20','986695GrbpHC','toString','readFileSync','fsi','npx\x20artillery\x20run\x20','substring','findProjectDirectory','error','responseTimes','split','url','.txt','isDirectory','apply','\x20>\x20','253995drydhI','push','meteor','join','Enter\x20the\x20number\x20of\x20users\x20(arrival\x20rate\x20per\x20second):','exec','/imports/startup/lib','forEach','http://0.0.0.0:','toLowerCase','failure','Invalid\x20duration.\x20Please\x20enter\x20a\x20numeric\x20value.','trim','Execution\x20error:\x20','ssr','duration','2YVeYxY','Port\x20of\x20the\x20Meteor\x20app','maka\x20profile','Duration\x20of\x20the\x20test\x20in\x20seconds','101664WtRgSv','path','1343762zpHzPM','results_','match','Number\x20of\x20concurrent\x20users','createFile','profile-tests','(((.+)+)+)+$','constructor','2329480PdLmrd','dirname','pathFromApp','133283YzHmQy','port','round','start','scaffold','log','/imports/startup/client','ask','name','utf8','api','147788tjZGFz','stringify','create','config','cfg','warn','codes','replace','profile','existsSync','plugins','engines','maka\x20profile\x20--url\x20http://localhost:3000\x20--users\x201000\x20--duration\x2060','search'];a85c=function(){return M;};return a85c();}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x114;let f=c[d];return f;},a85d(a,b);}a85a();import a85e from'fs';import a85f from'path';import{format}from'date-fns';import{exec}from'child_process';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';const profileCommandOptions={'name':a85C(0x11b),'aliases':[],'usage':a85C(0x150),'validOpts':[{'name':a85C(0x139),'description':'URL\x20of\x20the\x20Meteor\x20app'},{'name':a85C(0x160),'description':a85C(0x14f)},{'name':'users','description':a85C(0x157),'regex':/^\d+$/},{'name':'duration','description':a85C(0x151),'regex':/^\d+$/}],'mustBeInMakaProject':!![],'shortDesc':a85C(0x124),'description':'Run\x20a\x20performance\x20test\x20on\x20a\x20Meteor\x20app\x20with\x20specified\x20concurrent\x20users\x20and\x20duration','examples':[a85C(0x11f)],'experimental':!![]};function extractRoutePaths(a){const D=a85C,b=/<Route path="([^"]+)"/g,c=[];let d;while((d=b[D(0x143)](a))!==null){d[0x1]!=='*'&&c[D(0x13f)]({'method':D(0x128),'path':d[0x1]});}return c;}function extractApiRoutes(a){const b=[];function c(d){const E=a85d,e=a85e['readdirSync'](d,{'withFileTypes':!![]});for(const f of e){const g=a85f[E(0x141)](d,f[E(0x167)]);if(f[E(0x13b)]())c(g);else{if(f['isFile']()){const h=a85e['readFileSync'](g,E(0x168)),i=/addRoute\('([^']+)'.*?{[\s\S]*?(\bget\b|\bpost\b|\bput\b|\bdelete\b)/g;let j;while((j=i['exec'](h))!==null){const k=j[0x1],l=j[0x2][E(0x14a)]()[E(0x147)](),m=g[E(0x134)](a[E(0x126)])[E(0x11a)](/\\/g,'/'),n=a85f[E(0x15d)](m)+'/'+k;b[E(0x13f)]({'method':l,'path':'/api'+n});}}}}}return c(a),b;}function createArtilleryConfig(a,b,c,d,e){const F=a85C,f=d['map'](h=>({'flow':[{[h['method']]:{'url':''+a+h[F(0x153)]}}]})),g={'config':{'target':a,'phases':[{'duration':c,'arrivalRate':Math[F(0x161)](b/c)}]},'scenarios':f};return e&&(g[F(0x116)][F(0x11d)]={'metrics-by-endpoint':{}}),JSON[F(0x114)](g,null,0x2);}function parseArtilleryResultsToJson(a){const G=a85C,b=a85e[G(0x131)](a,G(0x168)),c=b[G(0x138)]('\x0a'),d={};return c[G(0x145)](e=>{const H=G;let f;f=e['match'](/plugins\.metrics-by-endpoint\.(.+)\.codes\.(\d+):\s*(\d+)/);if(f){const g=f[0x1],h=f[0x2],i=parseInt(f[0x3],0xa);!d[g]&&(d[g]={'codes':{},'responseTimes':{'min':null,'max':null,'mean':null,'median':null,'p95':null,'p99':null}}),d[g][H(0x119)][h]=i;}f=e[H(0x156)](/plugins\.metrics-by-endpoint\.(.+)\.response_time\.(min|max|mean|median|p95|p99):\s*(\d+(\.\d+)?)/);if(f){const j=f[0x1],k=f[0x2],l=parseFloat(f[0x3]);!d[j]&&(d[j]={'codes':{},'responseTimes':{'min':null,'max':null,'mean':null,'median':null,'p95':null,'p99':null}}),d[j][H(0x137)][k]=l;}}),d;}async function runPerformanceTest(a,b){const I=a85C,c=a85f[I(0x15d)](b);!a85e[I(0x11c)](c)&&a85e[I(0x12d)](c,{'recursive':!![]});const d=Log['withSpinner']();return new Promise((e,f)=>{const J=I;d[J(0x162)](J(0x12a)),exec(J(0x133)+a+J(0x13d)+b,async(g,h,i)=>{const K=J;if(g){d['failure'](),f(K(0x14b)+g);return;}if(i){d[K(0x148)](),f(K(0x127)+i);return;}try{const j=parseArtilleryResultsToJson(b);console[K(0x164)](JSON['stringify'](j,null,0x2)),Log[K(0x12b)](K(0x12e)+b);}catch(k){Log[K(0x136)]('Error\x20reading\x20results\x20file:\x20'+k);}d['success']('\x0a'),e();});});}Command[a85C(0x115)](profileCommandOptions,async function(a,b){const L=a85C;try{let c=b[L(0x160)];!c&&!b[L(0x139)]&&(c=await Actions[L(0x166)](L(0x12c))||'3000');b[L(0x139)]=b[L(0x139)]?b[L(0x139)]:L(0x146)+c;if(!b[L(0x14d)]){const u=await Actions['ask']('Enter\x20the\x20duration\x20for\x20the\x20test\x20in\x20seconds:');b['duration']=parseInt(u);if(isNaN(b[L(0x14d)]))throw new Error(L(0x149));}if(!b[L(0x121)]){const v=await Actions[L(0x166)](L(0x142));b[L(0x121)]=parseInt(v);if(isNaN(b[L(0x121)]))throw new Error('Invalid\x20number\x20of\x20users.\x20Please\x20enter\x20a\x20numeric\x20value.');}const d=this[L(0x132)][L(0x135)](),f=this[L(0x117)][L(0x129)](),g=f['engines'][L(0x14c)]===L(0x140),h=f[L(0x11e)]['js'],i=g?L(0x144):L(0x165),j=this['scaffold'][L(0x15e)]({'pathParts':[i,'','routes.'+h]}),k=a85e['readFileSync'](j,'utf8'),l=extractRoutePaths(k);let m=[];try{const w=this[L(0x163)][L(0x15e)]({'pathParts':['imports',L(0x169)]});m=extractApiRoutes(w);}catch(x){Log[L(0x118)](L(0x122));}const n=[...l,...m],o=!![],p=createArtilleryConfig(b[L(0x139)],b[L(0x121)],b[L(0x14d)],n,o),q=format(new Date(),'yyyy-MM-dd_HH-mm-ss'),r=a85f[L(0x141)](d,L(0x159),L(0x125)),s=a85f[L(0x141)](d,'profile-tests','artilleryConfig.yml'),t=a85f[L(0x141)](r,L(0x155)+q+L(0x13a));await this['fsi'][L(0x158)]({'filePath':s,'data':p,'opts':{'force':!![]}}),await runPerformanceTest(s,t);}catch(y){Log[L(0x136)](y),process[L(0x123)](0x1);}});
1
+ const a85C=a85d;(function(a,b){const z=a85d,c=a();while(!![]){try{const d=parseInt(z(0x110))/0x1+parseInt(z(0x101))/0x2+parseInt(z(0x115))/0x3+-parseInt(z(0xe1))/0x4+parseInt(z(0x10f))/0x5*(-parseInt(z(0x116))/0x6)+parseInt(z(0xf4))/0x7*(-parseInt(z(0xe4))/0x8)+parseInt(z(0x103))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x981b4));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a85d;if(c){const e=c[A(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const B=a85d;return a85a[B(0x104)]()[B(0xfd)](B(0xe9))[B(0x104)]()[B(0x113)](a85a)[B(0xfd)](B(0xe9));});a85a();import a85e from'fs';import a85f from'path';import{format}from'date-fns';import{exec}from'child_process';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';const profileCommandOptions={'name':a85C(0xfc),'aliases':[],'usage':a85C(0x107),'validOpts':[{'name':a85C(0xed),'description':a85C(0xe8)},{'name':a85C(0xdf),'description':a85C(0xe5)},{'name':a85C(0x10c),'description':a85C(0xfe),'regex':/^\d+$/},{'name':a85C(0xee),'description':a85C(0x100),'regex':/^\d+$/}],'mustBeInMakaProject':!![],'shortDesc':'Profile\x20a\x20Meteor\x20app\x20for\x20performance','description':a85C(0x112),'examples':['maka\x20profile\x20--url\x20http://localhost:3000\x20--users\x201000\x20--duration\x2060'],'experimental':!![]};function a85c(){const M=['existsSync','3000','api','routes.','replace','notice','stringify','/imports/startup/client','toLowerCase','Enter\x20the\x20port\x20of\x20the\x20Meteor\x20app\x20[3000]:','pathFromApp','warn','findProjectDirectory','port','name','4863316YicFAE','Invalid\x20duration.\x20Please\x20enter\x20a\x20numeric\x20value.','config','104rNbzPP','Port\x20of\x20the\x20Meteor\x20app','length','apply','URL\x20of\x20the\x20Meteor\x20app','(((.+)+)+)+$','results','split','trim','url','duration','Error:\x20','create','createFile','plugins','error','154217JxAfQK','scaffold','forEach','map','dirname','push','path','utf8','profile','search','Number\x20of\x20concurrent\x20users','getMakaProjectConfig','Duration\x20of\x20the\x20test\x20in\x20seconds','2118822mVvoMq','yyyy-MM-dd_HH-mm-ss','1503819kVJpKb','toString','ssr','Running\x20performance\x20test','maka\x20profile','isFile','http://0.0.0.0:','cfg','No\x20API\x20routes\x20detected.\x20Proceeding\x20without\x20profiling\x20API\x20routes.','users','log','/api','3595YgJpel','572800MEgMAU','success','Run\x20a\x20performance\x20test\x20on\x20a\x20Meteor\x20app\x20with\x20specified\x20concurrent\x20users\x20and\x20duration','constructor','exec','3305277tWbcbx','6474xnuDIW','round','match','artilleryConfig.yml','Error\x20reading\x20results\x20file:\x20','readFileSync','profile-tests','failure','meteor','substring','fsi','exit','ask','readdirSync'];a85c=function(){return M;};return a85c();}function extractRoutePaths(a){const D=a85C,b=/<Route path="([^"]+)"/g,c=[];let d;while((d=b[D(0x114)](a))!==null){d[0x1]!=='*'&&c[D(0xf9)]({'method':'get','path':d[0x1]});}return c;}function extractApiRoutes(a){const b=[];function c(d){const E=a85d,e=a85e[E(0xd1)](d,{'withFileTypes':!![]});for(const f of e){const g=a85f['join'](d,f[E(0xe0)]);if(f['isDirectory']())c(g);else{if(f[E(0x108)]()){const h=a85e[E(0xc9)](g,E(0xfb)),i=/addRoute\('([^']+)'.*?{[\s\S]*?(\bget\b|\bpost\b|\bput\b|\bdelete\b)/g;let j;while((j=i[E(0x114)](h))!==null){const k=j[0x1],l=j[0x2][E(0xec)]()[E(0xda)](),m=g[E(0xcd)](a[E(0xe6)])[E(0xd6)](/\\/g,'/'),n=a85f['dirname'](m)+'/'+k;b['push']({'method':l,'path':E(0x10e)+n});}}}}}return c(a),b;}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xc7;let f=c[d];return f;},a85d(a,b);}function createArtilleryConfig(a,b,c,d,e){const F=a85C,f=d[F(0xf7)](h=>({'flow':[{[h['method']]:{'url':''+a+h[F(0xfa)]}}]})),g={'config':{'target':a,'phases':[{'duration':c,'arrivalRate':Math[F(0x117)](b/c)}]},'scenarios':f};return e&&(g[F(0xe3)][F(0xf2)]={'metrics-by-endpoint':{}}),JSON[F(0xd8)](g,null,0x2);}function parseArtilleryResultsToJson(a){const G=a85C,b=a85e[G(0xc9)](a,G(0xfb)),c=b[G(0xeb)]('\x0a'),d={};return c[G(0xf6)](e=>{const H=G;let f;f=e[H(0x118)](/plugins\.metrics-by-endpoint\.(.+)\.codes\.(\d+):\s*(\d+)/);if(f){const g=f[0x1],h=f[0x2],i=parseInt(f[0x3],0xa);!d[g]&&(d[g]={'codes':{},'responseTimes':{'min':null,'max':null,'mean':null,'median':null,'p95':null,'p99':null}}),d[g]['codes'][h]=i;}f=e[H(0x118)](/plugins\.metrics-by-endpoint\.(.+)\.response_time\.(min|max|mean|median|p95|p99):\s*(\d+(\.\d+)?)/);if(f){const j=f[0x1],k=f[0x2],l=parseFloat(f[0x3]);!d[j]&&(d[j]={'codes':{},'responseTimes':{'min':null,'max':null,'mean':null,'median':null,'p95':null,'p99':null}}),d[j]['responseTimes'][k]=l;}}),d;}async function runPerformanceTest(a,b){const I=a85C,c=a85f[I(0xf8)](b);!a85e[I(0xd2)](c)&&a85e['mkdirSync'](c,{'recursive':!![]});const d=Log['withSpinner']();return new Promise((e,f)=>{const J=I;d['start'](J(0x106)),exec('npx\x20artillery\x20run\x20'+a+'\x20>\x20'+b,async(g,h,i)=>{const K=J;if(g){d[K(0xcb)](),f('Execution\x20error:\x20'+g);return;}if(i){d[K(0xcb)](),f(K(0xef)+i);return;}try{const j=parseArtilleryResultsToJson(b);console[K(0x10d)](JSON['stringify'](j,null,0x2)),Log[K(0xd7)]('Test\x20results\x20saved\x20to\x20'+b);}catch(k){Log[K(0xf3)](K(0xc8)+k);}d[K(0x111)]('\x0a'),e();});});}Command[a85C(0xf0)](profileCommandOptions,async function(a,b){const L=a85C;try{let c=b[L(0xdf)];!c&&!b[L(0xed)]&&(c=await Actions[L(0xd0)](L(0xdb))||L(0xd3));b[L(0xed)]=b['url']?b[L(0xed)]:L(0x109)+c;if(!b[L(0xee)]){const u=await Actions['ask']('Enter\x20the\x20duration\x20for\x20the\x20test\x20in\x20seconds:');b[L(0xee)]=parseInt(u);if(isNaN(b[L(0xee)]))throw new Error(L(0xe2));}if(!b['users']){const v=await Actions['ask']('Enter\x20the\x20number\x20of\x20users\x20(arrival\x20rate\x20per\x20second):');b[L(0x10c)]=parseInt(v);if(isNaN(b[L(0x10c)]))throw new Error('Invalid\x20number\x20of\x20users.\x20Please\x20enter\x20a\x20numeric\x20value.');}const d=this[L(0xce)][L(0xde)](),f=this[L(0x10a)][L(0xff)](),g=f['engines'][L(0x105)]===L(0xcc),h=f['engines']['js'],i=g?'/imports/startup/lib':L(0xd9),j=this[L(0xf5)][L(0xdc)]({'pathParts':[i,'',L(0xd5)+h]}),k=a85e[L(0xc9)](j,L(0xfb)),l=extractRoutePaths(k);let m=[];try{const w=this['scaffold'][L(0xdc)]({'pathParts':['imports',L(0xd4)]});m=extractApiRoutes(w);}catch(x){Log[L(0xdd)](L(0x10b));}const n=[...l,...m],o=!![],p=createArtilleryConfig(b[L(0xed)],b[L(0x10c)],b['duration'],n,o),q=format(new Date(),L(0x102)),r=a85f['join'](d,'profile-tests',L(0xea)),s=a85f['join'](d,L(0xca),L(0xc7)),t=a85f['join'](r,'results_'+q+'.txt');await this[L(0xce)][L(0xf1)]({'filePath':s,'data':p,'opts':{'force':!![]}}),await runPerformanceTest(s,t);}catch(y){Log[L(0xf3)](y),process[L(0xcf)](0x1);}});
@@ -1 +1 @@
1
- const a86z=a86d;(function(a,b){const w=a86d,c=a();while(!![]){try{const d=parseInt(w(0x153))/0x1+-parseInt(w(0x17d))/0x2+parseInt(w(0x156))/0x3+parseInt(w(0x177))/0x4+parseInt(w(0x13f))/0x5*(-parseInt(w(0x15e))/0x6)+parseInt(w(0x162))/0x7*(-parseInt(w(0x170))/0x8)+-parseInt(w(0x142))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0xeb945));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a86d;if(c){const e=c[x(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const y=a86d;return a86a[y(0x13c)]()['search']('(((.+)+)+)+$')['toString']()[y(0x164)](a86a)[y(0x159)](y(0x172));});a86a();import a86e from'fs';import a86f from'path';import a86g from'http-proxy';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x136;let f=c[d];return f;},a86d(a,b);}import{UsageError}from'../error.js';import{SSL}from'../tools/ssl/ssl.class.js';function a86c(){const K=['getAppConfigPath','toISOString','help','1148934dFlTPl','text/plain','maka\x20proxy\x20--target-host\x20http://192.168.1.20','5394183IQWNjl','close','.crt','search','url','cfg','genSSC','appName','2858238pEQhJZ','mkKeysDir','isFile','SIGINT','241423fbOwiO','Key\x20file\x20created:\x20','constructor','listenPort','statusMessage','end','\x20-\x20Starting\x20WebSocket\x20handshake','info','statusCode','Proxy\x20server\x20closed.','headers','\x20to\x20','targetHost','getMakaProjectConfig','72ObktCa',']\x20WS\x20','(((.+)+)+)+$','targetPort','getHeader',']\x20=>\x20','readFileSync','2773104EjWScA','join','path','proxyReqWs','warn','success','2893966WMthPm','Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','proxy','\x0a\x20\x20If\x20you\x27re\x20running\x20your\x20Meteor\x20service,\x20and\x20need\x20to\x20stand\x20up\x20an\x20SSL\x0a\x20\x20Proxy,\x20this\x20command\x20will\x20automatically\x20create\x20a\x20key\x20pair\x20for\x20use\x20in\x20an\x20HTTPS\x0a\x20\x20proxy.\x0a\x0a\x20\x20For\x20example,\x20you\x27re\x20running\x20http://localhost:3000\x20with\x20\x22maka\x20run\x22\x20then\x20open\x20a\x20new\x0a\x20\x20terminal\x20and\x20run\x20\x22maka\x20proxy\x22\x20to\x20standup\x20https://localhost:3443.\x0a\x20\x20Then\x20open\x20your\x20browser\x20to\x20that\x20URL\x20(you\x20may\x20need\x20to\x20trust\x20the\x20certificates\x0a\x20\x20because\x20they\x20are\x20self-signed)\x20and\x20you\x27ll\x20have\x20an\x20SSL\x20connection\x20to\x20your\x0a\x20\x20http://localhost:3000.\x0a\x0a\x20\x20To\x20avoid\x20possibly\x20overwriting\x20PKI\x20files\x20in\x20higher\x20environments,\x20\x22maka\x20proxy\x22\x0a\x20\x20will\x20try\x20to\x20only\x20generate\x20/\x20store\x20PKI\x20keys\x20in\x20the\x20development\x20environment.\x0a\x20\x20','writeHead','host','maka\x20proxy','.csr','SSC\x20file\x20created:\x20','utf8','0.0.0.0','toString','.key','Proxy\x20error:\x20','5MLJhgP','sslconfig','createProxyServer','3974229iTMkDb','error','maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000',']\x20<=\x20Sending\x20','create','proxyRes','fsi','\x20on\x20','proxyReq','apply','listen','headersSent','\x20from\x20','\x20request\x20to\x20'];a86c=function(){return K;};return a86c();}import a86h from'../generators/maka.gen.js';Command[a86z(0x146)]({'name':a86z(0x17f),'usage':a86z(0x137),'mustBeInMakaProject':!![],'validOpts':[a86z(0x152),a86z(0x173),a86z(0x165),a86z(0x16e)],'maxArgLength':0x1,'shortDesc':a86z(0x17e),'description':a86z(0x180),'examples':[a86z(0x137),a86z(0x144),a86z(0x155)]},async function(a,b){const A=a86z,c=this['cfg'][A(0x16f)](),d='local',e=this[A(0x15b)][A(0x150)](d),f=this[A(0x148)][A(0x15f)]({'configPath':e}),g=b['targetPort']?Number(b[A(0x173)]):0xbb8,h=b[A(0x165)]?Number(b['listenPort']):0xd73,i=b[A(0x16e)]?b['targetHost']:A(0x13b),j=a86f[A(0x178)](f,c[A(0x15d)]+A(0x13d)),k=a86f[A(0x178)](f,c[A(0x15d)]+A(0x158));(!this['fsi']['isFile'](j)||!this['fsi'][A(0x160)](k))&&(await a86h['processAndRunGenerator'](A(0x140),[],{'env':d}),SSL['genCSR']({'keyName':c['appName']+A(0x13d),'csrName':c[A(0x15d)]+A(0x138),'cwd':f,'useConfig':!![]}),this[A(0x148)][A(0x160)](a86f['join'](f,c[A(0x15d)]+A(0x138)))&&Log[A(0x169)]('CSR\x20file\x20created:\x20'+a86f[A(0x178)](f,c[A(0x15d)]+A(0x138))),SSL[A(0x15c)]({'keyName':c[A(0x15d)]+A(0x13d),'crtName':c['appName']+A(0x158),'cwd':f,'useConfig':!![]}),this[A(0x148)]['isFile'](a86f[A(0x178)](f,c[A(0x15d)]+'.crt'))&&Log[A(0x169)](A(0x139)+a86f['join'](f,c['appName']+'.crt')),Log['info'](A(0x163)+j));if(g===h){Log[A(0x143)]('Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.');throw new UsageError();}const l={'ssl':{'key':a86e[A(0x176)](j,A(0x13a)),'cert':a86e[A(0x176)](k,'utf8')},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a86g[A(0x141)](l);m['on'](A(0x143),(o,p,q)=>{const B=A;B(0x181)in q&&(Log[B(0x143)](B(0x13e)+o['message']),!q[B(0x14d)]&&(q[B(0x181)](0x1f4,{'content-type':B(0x154)}),q[B(0x167)]('Internal\x20server\x20error.')));}),m['on'](A(0x147),(o,p)=>{const C=A,q=new Date()['toISOString'](),r=p['method'],s=p[C(0x15a)],t=p['headers']['host'],u=o[C(0x16a)],v=o[C(0x166)];Log[C(0x17b)]('['+q+C(0x175)+r+'\x20'+s+C(0x14e)+t+'\x20responded\x20with\x20'+u+'\x20'+v);}),m['on'](A(0x14a),o=>{const D=A,p=new Date()[D(0x151)](),q=o['method'],r=o[D(0x179)],s=o[D(0x174)](D(0x136));Log[D(0x169)]('['+p+D(0x145)+q+D(0x14f)+r+D(0x149)+s);}),m['on'](A(0x17a),(o,p)=>{const E=A,q=new Date()[E(0x151)](),r=p['method'],s=p['url'],t=p[E(0x16c)][E(0x136)];Log[E(0x17c)]('['+q+E(0x171)+r+'\x20'+s+E(0x14e)+t+E(0x168));}),m['on']('open',()=>{const F=A,o=new Date()[F(0x151)]();Log[F(0x17c)]('['+o+']\x20WebSocket\x20connection\x20established');}),m['on'](A(0x157),()=>{const G=A,o=new Date()[G(0x151)]();Log[G(0x143)]('['+o+']\x20WebSocket\x20connection\x20closed');}),m[A(0x14c)](Number(h)),Log['bright']('=>\x20SSL\x20Proxy\x20forwarding\x20'+h+A(0x16d)+g);const n=0x7d0;process['on'](A(0x161),()=>{const I=A,o=Log['withSpinner']();o['start']('Shutting\x20down\x20proxy\x20server...');const p=setTimeout(()=>{const H=a86d;o[H(0x17c)](),process['exit'](0x1);},n);m[I(0x157)](()=>{const J=I;clearTimeout(p),Log[J(0x169)](J(0x16b)),process['exit'](0x0);});});});
1
+ const a86y=a86d;(function(a,b){const w=a86d,c=a();while(!![]){try{const d=parseInt(w(0x18b))/0x1+parseInt(w(0x17a))/0x2*(-parseInt(w(0x1a6))/0x3)+-parseInt(w(0x166))/0x4+-parseInt(w(0x19b))/0x5+-parseInt(w(0x16a))/0x6+-parseInt(w(0x18e))/0x7+-parseInt(w(0x170))/0x8*(-parseInt(w(0x17d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x3a981));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 x=a86d;return a86a[x(0x198)]()[x(0x193)](x(0x19c))['toString']()[x(0x1a8)](a86a)[x(0x193)](x(0x19c));});a86a();import a86e from'fs';import a86f from'path';import a86g from'http-proxy';import{Command}from'../command.js';function a86c(){const J=['301716WkOLUH','host','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','sslconfig','1151472oHgIqj','start','statusMessage','mkKeysDir','proxyRes','readFileSync','104USrhjS',']\x20WS\x20','proxyReqWs','Shutting\x20down\x20proxy\x20server...',']\x20WebSocket\x20connection\x20established','isFile',']\x20<=\x20Sending\x20','CSR\x20file\x20created:\x20','headersSent','join','2VWmesM','exit','\x20on\x20','665478YnlffE','end','proxyReq','processAndRunGenerator','url','genSSC','success','listenPort','getMakaProjectConfig','utf8','targetPort','withSpinner','=>\x20SSL\x20Proxy\x20forwarding\x20','maka\x20proxy','394858UPlEXT','toISOString','proxy','2084082UcaIjp','close','.crt','Proxy\x20server\x20closed.','.csr','search','targetHost','appName','create','listen','toString','headers','fsi','1086015ZMYpsU','(((.+)+)+)+$','message','0.0.0.0','local','warn','text/plain','\x20responded\x20with\x20','\x20from\x20','getHeader','method','1001499xBamHD','\x20to\x20','constructor','statusCode','cfg','writeHead','info','error','getAppConfigPath','bright','path'];a86c=function(){return J;};return a86c();}import{Log}from'../tools/log/log.class.js';function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x163;let f=c[d];return f;},a86d(a,b);}import{UsageError}from'../error.js';import{SSL}from'../tools/ssl/ssl.class.js';import a86h from'../generators/maka.gen.js';Command[a86y(0x196)]({'name':a86y(0x18d),'usage':a86y(0x18a),'mustBeInMakaProject':!![],'validOpts':['help',a86y(0x187),a86y(0x184),'targetHost'],'maxArgLength':0x1,'shortDesc':'Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','description':'\x0a\x20\x20If\x20you\x27re\x20running\x20your\x20Meteor\x20service,\x20and\x20need\x20to\x20stand\x20up\x20an\x20SSL\x0a\x20\x20Proxy,\x20this\x20command\x20will\x20automatically\x20create\x20a\x20key\x20pair\x20for\x20use\x20in\x20an\x20HTTPS\x0a\x20\x20proxy.\x0a\x0a\x20\x20For\x20example,\x20you\x27re\x20running\x20http://localhost:3000\x20with\x20\x22maka\x20run\x22\x20then\x20open\x20a\x20new\x0a\x20\x20terminal\x20and\x20run\x20\x22maka\x20proxy\x22\x20to\x20standup\x20https://localhost:3443.\x0a\x20\x20Then\x20open\x20your\x20browser\x20to\x20that\x20URL\x20(you\x20may\x20need\x20to\x20trust\x20the\x20certificates\x0a\x20\x20because\x20they\x20are\x20self-signed)\x20and\x20you\x27ll\x20have\x20an\x20SSL\x20connection\x20to\x20your\x0a\x20\x20http://localhost:3000.\x0a\x0a\x20\x20To\x20avoid\x20possibly\x20overwriting\x20PKI\x20files\x20in\x20higher\x20environments,\x20\x22maka\x20proxy\x22\x0a\x20\x20will\x20try\x20to\x20only\x20generate\x20/\x20store\x20PKI\x20keys\x20in\x20the\x20development\x20environment.\x0a\x20\x20','examples':[a86y(0x18a),'maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000','maka\x20proxy\x20--target-host\x20http://192.168.1.20']},async function(a,b){const z=a86y,c=this[z(0x1aa)][z(0x185)](),d=z(0x19f),e=this[z(0x1aa)][z(0x163)](d),f=this[z(0x19a)][z(0x16d)]({'configPath':e}),g=b[z(0x187)]?Number(b[z(0x187)]):0xbb8,h=b[z(0x184)]?Number(b[z(0x184)]):0xd73,i=b[z(0x194)]?b[z(0x194)]:z(0x19e),j=a86f['join'](f,c[z(0x195)]+'.key'),k=a86f[z(0x179)](f,c[z(0x195)]+'.crt');(!this[z(0x19a)][z(0x175)](j)||!this[z(0x19a)][z(0x175)](k))&&(await a86h[z(0x180)](z(0x169),[],{'env':d}),SSL['genCSR']({'keyName':c[z(0x195)]+'.key','csrName':c['appName']+z(0x192),'cwd':f,'useConfig':!![]}),this[z(0x19a)][z(0x175)](a86f[z(0x179)](f,c['appName']+z(0x192)))&&Log['info'](z(0x177)+a86f[z(0x179)](f,c[z(0x195)]+'.csr')),SSL[z(0x182)]({'keyName':c['appName']+'.key','crtName':c[z(0x195)]+z(0x190),'cwd':f,'useConfig':!![]}),this['fsi'][z(0x175)](a86f['join'](f,c['appName']+z(0x190)))&&Log[z(0x1ac)]('SSC\x20file\x20created:\x20'+a86f[z(0x179)](f,c[z(0x195)]+z(0x190))),Log[z(0x1ac)]('Key\x20file\x20created:\x20'+j));if(g===h){Log[z(0x1ad)](z(0x168));throw new UsageError();}const l={'ssl':{'key':a86e[z(0x16f)](j,z(0x186)),'cert':a86e[z(0x16f)](k,z(0x186))},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a86g['createProxyServer'](l);m['on'](z(0x1ad),(o,p,q)=>{const A=z;A(0x1ab)in q&&(Log[A(0x1ad)]('Proxy\x20error:\x20'+o[A(0x19d)]),!q[A(0x178)]&&(q['writeHead'](0x1f4,{'content-type':A(0x1a1)}),q[A(0x17e)]('Internal\x20server\x20error.')));}),m['on'](z(0x16e),(o,p)=>{const B=z,q=new Date()[B(0x18c)](),r=p[B(0x1a5)],s=p['url'],t=p[B(0x199)]['host'],u=o[B(0x1a9)],v=o[B(0x16c)];Log[B(0x1a0)]('['+q+']\x20=>\x20'+r+'\x20'+s+'\x20from\x20'+t+B(0x1a2)+u+'\x20'+v);}),m['on'](z(0x17f),o=>{const C=z,p=new Date()[C(0x18c)](),q=o['method'],r=o[C(0x165)],s=o[C(0x1a4)](C(0x167));Log[C(0x1ac)]('['+p+C(0x176)+q+'\x20request\x20to\x20'+r+C(0x17c)+s);}),m['on'](z(0x172),(o,p)=>{const D=z,q=new Date()['toISOString'](),r=p[D(0x1a5)],s=p[D(0x181)],t=p['headers'][D(0x167)];Log[D(0x183)]('['+q+D(0x171)+r+'\x20'+s+D(0x1a3)+t+'\x20-\x20Starting\x20WebSocket\x20handshake');}),m['on']('open',()=>{const E=z,o=new Date()[E(0x18c)]();Log[E(0x183)]('['+o+E(0x174));}),m['on'](z(0x18f),()=>{const F=z,o=new Date()[F(0x18c)]();Log['error']('['+o+']\x20WebSocket\x20connection\x20closed');}),m[z(0x197)](Number(h)),Log[z(0x164)](z(0x189)+h+z(0x1a7)+g);const n=0x7d0;process['on']('SIGINT',()=>{const G=z,o=Log[G(0x188)]();o[G(0x16b)](G(0x173));const p=setTimeout(()=>{const H=G;o[H(0x183)](),process[H(0x17b)](0x1);},n);m[G(0x18f)](()=>{const I=G;clearTimeout(p),Log[I(0x1ac)](I(0x191)),process[I(0x17b)](0x0);});});});
@@ -1 +1 @@
1
- const a87r=a87d;(function(a,b){const o=a87d,c=a();while(!![]){try{const d=-parseInt(o(0x210))/0x1*(parseInt(o(0x1fe))/0x2)+parseInt(o(0x201))/0x3*(-parseInt(o(0x21f))/0x4)+-parseInt(o(0x1f4))/0x5+-parseInt(o(0x21a))/0x6*(parseInt(o(0x20d))/0x7)+parseInt(o(0x216))/0x8+parseInt(o(0x21b))/0x9*(-parseInt(o(0x205))/0xa)+parseInt(o(0x217))/0xb*(parseInt(o(0x1f6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x4319f));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a87d;if(c){const e=c[p(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const q=a87d;return a87a[q(0x212)]()[q(0x20f)](q(0x206))['toString']()['constructor'](a87a)[q(0x20f)]('(((.+)+)+)+$');});function a87c(){const t=['621222FYrxeQ','settings.json','apply','error','130DWMyZN','(((.+)+)+)+$','reconfig','reconfigure','\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x0a\x20\x20This\x20does\x20not\x20restart\x20the\x20nginx\x20server\x20and\x20is\x20much\x20faster\x20than\x20deploying\x0a\x20\x20a\x20new\x20build.\x0a\x20\x20','ssh.json','Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy','getEnvFromShorthand','910KEyzUi','Checking\x20remote\x20host\x20availability','search','1984aLyxpr','pm2.config.js','toString','readFileSync','existsSync','getAppConfigPath','1174744LRDvNB','9906259JNUcvm','~/ses.json','cfg','3252sSSNJf','363087qJFAay','assign','uname\x20-a','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','4JMhdLD','Remote\x20host\x20connection\x20successful','ping','parse','join','exit','1607865VtzQRC','ssh','24nBnuJr','~/pm2.config.js','env','sshSync','notice','pm2\x20delete\x20all','create','scp','554YFCgkD','_keys','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'];a87c=function(){return t;};return a87c();}a87a();function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a87d(a,b);}import a87e from'fs';import a87f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a87r(0x1fc)]({'name':a87r(0x208),'aliases':[a87r(0x207)],'validOpts':[''],'requiredOpts':[a87r(0x1f8)],'mustBeInMakaProject':!![],'usage':'maka\x20reconfig','shortDesc':a87r(0x20b),'description':a87r(0x209),'examples':['maka\x20reconfig\x20--env\x20prod']},async function(a,b){const s=a87r;try{const c=this[s(0x219)][s(0x20c)](b['env']),d=this[s(0x219)][s(0x215)](c),f=a87f[s(0x1f2)](d,s(0x20a)),g=a87e[s(0x213)](f)[s(0x212)](),h=JSON[s(0x1f1)](g);Object[s(0x21c)](h,{'env':d}),Log[s(0x1fa)](s(0x20e));const i=SSH[s(0x1f0)](s(0x21d),h);if(!i)throw s(0x21e);if(i)Log['success'](s(0x1ef));const j=a87f[s(0x1f2)](d,s(0x1ff),'ses.json');if(a87e[s(0x214)](j)){const m={'source':j,'dest':s(0x218),'verbose':!![]};SSH['scp'](m,{...h});}const k=a87f[s(0x1f2)](d,s(0x211));SSH[s(0x1fd)]({'source':k,'dest':s(0x1f7),'verbose':!![]},{...h});const l=a87f[s(0x1f2)](d,s(0x202));SSH[s(0x1fd)]({'source':l,'dest':'~/settings.json','verbose':!![]},{...h}),SSH[s(0x1f9)](s(0x1fb),h),await SSH[s(0x1f5)](s(0x200),{...h},{'verbose':!![]});}catch(n){console[s(0x204)](n),process[s(0x1f3)](0x0);}});
1
+ const a87q=a87d;(function(a,b){const o=a87d,c=a();while(!![]){try{const d=parseInt(o(0x190))/0x1+-parseInt(o(0x1a4))/0x2+-parseInt(o(0x18c))/0x3+parseInt(o(0x18e))/0x4*(parseInt(o(0x19f))/0x5)+parseInt(o(0x193))/0x6+parseInt(o(0x188))/0x7+-parseInt(o(0x192))/0x8*(parseInt(o(0x1aa))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x96c01));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const p=a87d;return a87a[p(0x19a)]()[p(0x19b)](p(0x187))[p(0x19a)]()['constructor'](a87a)['search'](p(0x187));});function a87c(){const s=['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','342401UdOMrY','success','8LivgnV','3693726RiPBvy','ping','settings.json','env','maka\x20reconfig','pm2\x20delete\x20all','getAppConfigPath','toString','search','_keys','Remote\x20host\x20connection\x20successful','sshSync','9110XyBtUJ','create','existsSync','exit','cfg','207582ukuzqJ','~/settings.json','reconfig','scp','~/ses.json','~/pm2.config.js','11511351xHLDOF','Checking\x20remote\x20host\x20availability','parse','error','(((.+)+)+)+$','6271223meiEbA','reconfigure','join','getEnvFromShorthand','309666FrVRPb','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','548jBzozO'];a87c=function(){return s;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x186;let f=c[d];return f;},a87d(a,b);}a87a();import a87e from'fs';import a87f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a87q(0x1a0)]({'name':a87q(0x189),'aliases':[a87q(0x1a6)],'validOpts':[''],'requiredOpts':[a87q(0x196)],'mustBeInMakaProject':!![],'usage':a87q(0x197),'shortDesc':'Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy','description':'\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x0a\x20\x20This\x20does\x20not\x20restart\x20the\x20nginx\x20server\x20and\x20is\x20much\x20faster\x20than\x20deploying\x0a\x20\x20a\x20new\x20build.\x0a\x20\x20','examples':['maka\x20reconfig\x20--env\x20prod']},async function(a,b){const r=a87q;try{const c=this[r(0x1a3)][r(0x18b)](b[r(0x196)]),d=this['cfg'][r(0x199)](c),f=a87f[r(0x18a)](d,'ssh.json'),g=a87e['readFileSync'](f)['toString'](),h=JSON[r(0x1ac)](g);Object['assign'](h,{'env':d}),Log['notice'](r(0x1ab));const i=SSH[r(0x194)]('uname\x20-a',h);if(!i)throw r(0x18d);if(i)Log[r(0x191)](r(0x19d));const j=a87f[r(0x18a)](d,r(0x19c),'ses.json');if(a87e[r(0x1a1)](j)){const m={'source':j,'dest':r(0x1a8),'verbose':!![]};SSH[r(0x1a7)](m,{...h});}const k=a87f['join'](d,'pm2.config.js');SSH[r(0x1a7)]({'source':k,'dest':r(0x1a9),'verbose':!![]},{...h});const l=a87f[r(0x18a)](d,r(0x195));SSH[r(0x1a7)]({'source':l,'dest':r(0x1a5),'verbose':!![]},{...h}),SSH[r(0x19e)](r(0x198),h),await SSH['ssh'](r(0x18f),{...h},{'verbose':!![]});}catch(n){console[r(0x186)](n),process[r(0x1a2)](0x0);}});
@@ -1 +1 @@
1
- function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0xeb;let f=c[d];return f;},a88d(a,b);}const a88s=a88d;(function(a,b){const o=a88d,c=a();while(!![]){try{const d=parseInt(o(0x11a))/0x1+-parseInt(o(0x10c))/0x2*(parseInt(o(0xec))/0x3)+parseInt(o(0x112))/0x4+-parseInt(o(0x105))/0x5+parseInt(o(0xef))/0x6*(parseInt(o(0xed))/0x7)+-parseInt(o(0x117))/0x8*(parseInt(o(0xfd))/0x9)+parseInt(o(0xf3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xb09b2));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a88d;if(c){const e=c[p(0x103)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const q=a88d;return a88a[q(0xf5)]()[q(0xf7)](q(0xf6))[q(0xf5)]()[q(0x104)](a88a)[q(0xf7)](q(0xf6));});function a88c(){const u=['create','1104160uUvNEs','\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','success','getGlobalConfig','notice','72wLrzLS','cert','/api/v1/status','557807rwGDHP','https://','cacert','Passwords\x20do\x20not\x20match','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','isFile','6117znBGiF','3318791HSBORv','Email:','6VbVRCS','Using\x20CA\x20Cert\x20','majestic','fsi','12072690YcnQig','help','toString','(((.+)+)+)+$','search','start','Confirm\x20Password:\x20','exit','header','processAndRunCommand','271953DZHopd','test','login','maka\x20register','Registers\x20a\x20new\x20user\x20on\x20www.maka-cli.com','message','apply','constructor','371235jGgQen','localhost','ask','failure','error','Registration\x20successful','Preflight\x20Check','1418CTStJA','toLowerCase','/api/v1/register','Password:\x20','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'];a88c=function(){return u;};return a88c();}a88a();import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';import a88e from'./maka.cmd.js';function validateEmail(a){const r=a88d,b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return b[r(0xfe)](String(a)[r(0x10d)]());}const hostname=process['env']['MAKA_DEV']==='True'?a88s(0x106):'www.maka-cli.com';Command[a88s(0x111)]({'name':'register','validOpts':[a88s(0xf4),a88s(0x11c)],'usage':a88s(0x100),'maxArgLength':0x3,'disableAuthCheck':!![],'shortDesc':a88s(0x101),'examples':[a88s(0x100)]},async function(a,b){const t=a88s,c=Log['withSpinner']();try{let d='';b[t(0x11c)]&&(this[t(0xf2)]['isFile'](b[t(0x11c)])?(d=b['cacert'],Log[t(0x116)](t(0xf0)+d)):Log['error'](t(0x11e)+d));const e=await this['cfg'][t(0x115)]();if(e[t(0x118)]){if(this['fsi'][t(0xeb)](e[t(0x118)]))d=e[t(0x118)];else{Log['error'](t(0x110)+d);return;}}Log[t(0xfb)]('Securing\x20connection\x20to\x20https://'+hostname);const f={'url':t(0x11b)+hostname+t(0x119)};b[t(0x11c)]&&Object['assign'](f,{'cert':d});c[t(0xf8)](t(0x10b));const {statusCode:g}=await HTTPS['get'](f);if(g===0x198){c[t(0x108)]();throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}if(g!==0xc8){c['failure']();throw'https://'+hostname+t(0x113);}c[t(0x114)]();const h=await Actions[t(0x107)](t(0xee));!validateEmail(h)&&(Log[t(0x109)]('Invalid\x20email\x20address'),process['exit'](0x1));const i=await Actions['ask'](t(0x10f),!![]),j=await Actions[t(0x107)](t(0xf9),!![]);i!==j&&(Log[t(0x109)](t(0x11d)),process[t(0xfa)](0x1));const k={'hostname':hostname,'path':t(0x10e),'data':{'email':h,'password':i}};b['cacert']&&Object['assign'](k,{'cert':d});c['start']('Registering');const {statusCode:l,data:m}=await HTTPS['post'](k);if(l!==0xc8){c[t(0x108)]();throw JSON['parse'](m);}c['success'](),Log['notice'](t(0x10a)),a88e[t(0xfc)](t(0xff),[],{'email':h,'password':i});}catch(n){n==='Too\x20many\x20requests'&&Log[t(0xf1)]('Bruv...\x20Too\x20many\x20requests,\x20register\x20slower...'),Log[t(0x109)](n[t(0x102)]),process[t(0xfa)](0x1);}});
1
+ const a88s=a88d;(function(a,b){const o=a88d,c=a();while(!![]){try{const d=-parseInt(o(0x169))/0x1+parseInt(o(0x17d))/0x2*(parseInt(o(0x166))/0x3)+-parseInt(o(0x175))/0x4*(parseInt(o(0x172))/0x5)+-parseInt(o(0x178))/0x6+parseInt(o(0x18a))/0x7+parseInt(o(0x173))/0x8+parseInt(o(0x15d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xa9d41));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a88d;if(c){const e=c[p(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const q=a88d;return a88a[q(0x163)]()[q(0x18c)](q(0x18b))[q(0x163)]()[q(0x162)](a88a)['search'](q(0x18b));});function a88c(){const u=['exit','start','cfg','Registers\x20a\x20new\x20user\x20on\x20www.maka-cli.com','localhost','header','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','withSpinner','True','test','post','cert','8949108yLhowu','(((.+)+)+)+$','search','Invalid\x20email\x20address','assign','fsi','/api/v1/register','Password:\x20','Securing\x20connection\x20to\x20https://','cacert','error','success','3467070APiEim','apply','Registering','Email:','create','constructor','toString','MAKA_DEV','https://','18hTXoOQ','Too\x20many\x20requests','notice','1161186fYjtiG','isFile','parse','Passwords\x20do\x20not\x20match','register','failure','Using\x20CA\x20Cert\x20','Preflight\x20Check','help','265GyvsQl','10441936dGoRFz','toLowerCase','76308NFGthS','Confirm\x20Password:\x20','ask','6767196zFpbCW','login','getGlobalConfig','message','maka\x20register','342278vZdCEf'];a88c=function(){return u;};return a88c();}a88a();import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x15b;let f=c[d];return f;},a88d(a,b);}import a88e from'./maka.cmd.js';function validateEmail(a){const r=a88d,b=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return b[r(0x187)](String(a)[r(0x174)]());}const hostname=process['env'][a88s(0x164)]===a88s(0x186)?a88s(0x182):'www.maka-cli.com';Command[a88s(0x161)]({'name':a88s(0x16d),'validOpts':[a88s(0x171),a88s(0x193)],'usage':a88s(0x17c),'maxArgLength':0x3,'disableAuthCheck':!![],'shortDesc':a88s(0x181),'examples':['maka\x20register']},async function(a,b){const t=a88s,c=Log[t(0x185)]();try{let d='';b['cacert']&&(this[t(0x18f)][t(0x16a)](b[t(0x193)])?(d=b[t(0x193)],Log[t(0x168)](t(0x16f)+d)):Log[t(0x15b)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+d));const e=await this[t(0x180)][t(0x17a)]();if(e['cert']){if(this[t(0x18f)][t(0x16a)](e[t(0x189)]))d=e[t(0x189)];else{Log['error']('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+d);return;}}Log[t(0x183)](t(0x192)+hostname);const f={'url':'https://'+hostname+'/api/v1/status'};b[t(0x193)]&&Object['assign'](f,{'cert':d});c['start'](t(0x170));const {statusCode:g}=await HTTPS['get'](f);if(g===0x198){c[t(0x16e)]();throw t(0x184);}if(g!==0xc8){c['failure']();throw t(0x165)+hostname+'\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}c[t(0x15c)]();const h=await Actions[t(0x177)](t(0x160));!validateEmail(h)&&(Log[t(0x15b)](t(0x18d)),process['exit'](0x1));const i=await Actions[t(0x177)](t(0x191),!![]),j=await Actions[t(0x177)](t(0x176),!![]);i!==j&&(Log[t(0x15b)](t(0x16c)),process[t(0x17e)](0x1));const k={'hostname':hostname,'path':t(0x190),'data':{'email':h,'password':i}};b[t(0x193)]&&Object[t(0x18e)](k,{'cert':d});c[t(0x17f)](t(0x15f));const {statusCode:l,data:m}=await HTTPS[t(0x188)](k);if(l!==0xc8){c[t(0x16e)]();throw JSON[t(0x16b)](m);}c[t(0x15c)](),Log['notice']('Registration\x20successful'),a88e['processAndRunCommand'](t(0x179),[],{'email':h,'password':i});}catch(n){n===t(0x167)&&Log['majestic']('Bruv...\x20Too\x20many\x20requests,\x20register\x20slower...'),Log[t(0x15b)](n[t(0x17b)]),process[t(0x17e)](0x1);}});
@@ -1 +1 @@
1
- function a89c(){var i=['apply','42633CCiYAv','748180Oitubw','search','554766VgghRq','4282jTXVYE','459039bPEzJh','72mbYIGg','(((.+)+)+)+$','5PSoWgN','2411880Djfrdz','298809szHSiK','toString','76PQVegb'];a89c=function(){return i;};return a89c();}(function(a,b){var f=a89d,c=a();while(!![]){try{var d=-parseInt(f(0x105))/0x1*(-parseInt(f(0xff))/0x2)+-parseInt(f(0xfd))/0x3+parseInt(f(0x102))/0x4*(-parseInt(f(0xfb))/0x5)+parseInt(f(0x104))/0x6+-parseInt(f(0xf8))/0x7+parseInt(f(0xf9))/0x8*(-parseInt(f(0x101))/0x9)+parseInt(f(0xfc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x18c83));var a89b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a89d;if(c){var e=c[g(0x100)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){var h=a89d;return a89a[h(0xfe)]()[h(0x103)](h(0xfa))[h(0xfe)]()['constructor'](a89a)['search'](h(0xfa));});function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0xf8;var f=c[d];return f;},a89d(a,b);}a89a();import'./run.command.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a89d,c=a();while(!![]){try{var d=-parseInt(f(0xb8))/0x1+-parseInt(f(0xc4))/0x2*(-parseInt(f(0xb9))/0x3)+parseInt(f(0xbc))/0x4+-parseInt(f(0xc3))/0x5+parseInt(f(0xc1))/0x6*(-parseInt(f(0xb6))/0x7)+parseInt(f(0xc0))/0x8*(parseInt(f(0xba))/0x9)+parseInt(f(0xc2))/0xa*(parseInt(f(0xc5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x35fa3));function a89c(){var i=['toString','794024FhUeCs','constructor','apply','search','1696GClddV','348tCQJFN','20OqQZgA','1812575SNoZRP','256626qBnWLV','270886MFUGgf','25291mhlDeW','(((.+)+)+)+$','150541OHjpwB','9pEMYfJ','13203glryfu'];a89c=function(){return i;};return a89c();}var a89b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a89d;if(c){var e=c[g(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){var h=a89d;return a89a[h(0xbb)]()[h(0xbf)](h(0xb7))[h(0xbb)]()[h(0xbd)](a89a)['search'](h(0xb7));});function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0xb6;var f=c[d];return f;},a89d(a,b);}a89a();import'./run.command.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a90u=a90d;(function(a,b){const r=a90d,c=a();while(!![]){try{const d=-parseInt(r(0x10a))/0x1+-parseInt(r(0x112))/0x2*(-parseInt(r(0x119))/0x3)+-parseInt(r(0x12b))/0x4*(-parseInt(r(0x10c))/0x5)+parseInt(r(0x121))/0x6*(parseInt(r(0x133))/0x7)+parseInt(r(0x11e))/0x8+-parseInt(r(0x125))/0x9*(parseInt(r(0x108))/0xa)+-parseInt(r(0x107))/0xb*(parseInt(r(0x130))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xcdcb2));function a90c(){const w=['toString','Image\x20already\x20available\x20locally:\x20','76RkmuWu','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','getAppConfigPath','Not\x20supported','filter','336vphkVm','existsSync','docker\x20images\x20--format\x20\x22{{.Repository}}:{{.Tag}}\x22','11409293iRXlWq','trim','Docker\x20Compose\x20Path:\x20','maka\x20run:docker','notice','Image\x20not\x20available\x20locally:\x20','273548VkwxSl','113540jvcLKT','error','1092704LNjLMh','split','369535HKpeMy','log','exit','\x20up\x20--remove-orphans','apply','template','22APbEPK','docker-compose.yaml','The\x20required\x20image\x20is\x20available\x20locally.\x20Proceeding\x20with\x20docker-compose\x20up.','join','(((.+)+)+)+$','pm2.config.js','Run\x20at\x20a\x20higher\x20level\x20(e.g.,\x20docker)','95409HFnByb','has','docker-compose\x20--project-directory\x20','env','search','6609432BALqCQ','local',':latest','6PeGmTq','success','Maka\x20should\x20not\x20run\x20docker\x20containers\x20from\x20a\x20local\x20config','constructor','1251uBmQzn','\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop,\x20Rancher,\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x20(On\x20a\x20Mac)\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Rancher\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x20(On\x20Windows\x20or\x20Mac)\x0a\x20\x20Rancher:\x20https://rancherdesktop.io/\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','Checking\x20local\x20availability\x20for\x20image:\x20','config/docker-compose.yaml'];a90c=function(){return w;};return a90c();}const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a90d;if(c){const e=c[s(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const t=a90d;return a90a[t(0x129)]()['search'](t(0x116))[t(0x129)]()[t(0x124)](a90a)[t(0x11d)]('(((.+)+)+)+$');});function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x105;let f=c[d];return f;},a90d(a,b);}a90a();import a90e from'./run.command.js';import{execSync}from'child_process';import a90f from'path';import a90g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{kebabCase}from'change-case';Command['create']({'name':'docker','aliases':['d'],'shortDesc':a90u(0x12c),'description':a90u(0x126),'usage':a90u(0x136),'isPro':![],'mustBeInMakaProject':!![],'validOpts':['env'],'requiredOpts':[]},async function(a,b){const v=a90u;try{const {projectConfig:c,cfg:d,pkg:f,scaffold:g}=this,{appName:h}=c,i=d['getEnvFromShorthand'](b[v(0x11c)]||'docker');if(i===v(0x11f)){Log['error'](v(0x123)),Log['error'](v(0x118));throw v(0x12e);}await f['ensureAllDependenciesInstalled']();const j=d[v(0x12d)](i),k=a90f[v(0x115)](j,v(0x113)),l=a90f[v(0x115)](j,v(0x117));Log[v(0x105)]('PM2\x20Config\x20File:\x20'+l),Log[v(0x105)](v(0x135)+k);if(!a90g[v(0x131)](k)){const p=a90f[v(0x115)](j,v(0x113));await g[v(0x111)]({'srcPath':v(0x128),'destPath':p,'context':{'app':h,'appFileCase':kebabCase(h),'env':i},'config':c});}const m=execSync(v(0x132))[v(0x129)](),n=new Set(m[v(0x10b)]('\x0a')[v(0x12f)](q=>q[v(0x134)]())),o=h+v(0x120);Log['notice'](v(0x127)+o),n[v(0x11a)](o)?Log[v(0x122)](v(0x12a)+o):(Log[v(0x109)](v(0x106)+o),Log[v(0x109)]('Try\x20building\x20it\x20with\x20`maka\x20build:docker`'),process[v(0x10e)](0x1)),Log['notice'](v(0x114)),execSync(v(0x11b)+j+v(0x10f),{'stdio':'inherit'});}catch(q){console[v(0x10d)](q),process[v(0x10e)](0x1);}},a90e);
1
+ const a90t=a90d;(function(a,b){const r=a90d,c=a();while(!![]){try{const d=parseInt(r(0x191))/0x1*(parseInt(r(0x1a4))/0x2)+-parseInt(r(0x1a0))/0x3*(-parseInt(r(0x1af))/0x4)+parseInt(r(0x18a))/0x5+parseInt(r(0x18f))/0x6*(-parseInt(r(0x197))/0x7)+parseInt(r(0x1ad))/0x8*(parseInt(r(0x1a2))/0x9)+parseInt(r(0x1a7))/0xa+-parseInt(r(0x19e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xa3d5c));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 s=a90d;return a90a['toString']()[s(0x19f)](s(0x193))[s(0x1a3)]()['constructor'](a90a)[s(0x19f)](s(0x193));});function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x18a;let f=c[d];return f;},a90d(a,b);}a90a();import a90e from'./run.command.js';import{execSync}from'child_process';import a90f from'path';import a90g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';function a90c(){const v=['success','split','docker-compose.yaml','4737691vvDBst',':latest','trim','template','exit','\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop,\x20Rancher,\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x20(On\x20a\x20Mac)\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20Rancher\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x20(On\x20Windows\x20or\x20Mac)\x0a\x20\x20Rancher:\x20https://rancherdesktop.io/\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','docker-compose\x20--project-directory\x20','27787848gvMYOe','search','5265rfvYPi','notice','27PGqUTf','toString','2714OOdNiF','docker\x20images\x20--format\x20\x22{{.Repository}}:{{.Tag}}\x22','filter','10029430iKEHiV','existsSync','config/docker-compose.yaml','docker','join','log','1860488wmsbXu','local','1724iHqxaD','pm2.config.js','4337165PCVUzf','env','Try\x20building\x20it\x20with\x20`maka\x20build:docker`','Image\x20not\x20available\x20locally:\x20','has','6gxHKfO','\x20up\x20--remove-orphans','405PftuhE','error','(((.+)+)+)+$'];a90c=function(){return v;};return a90c();}import{kebabCase}from'change-case';Command['create']({'name':'docker','aliases':['d'],'shortDesc':'Run\x20your\x20application\x20in\x20a\x20Docker\x20container','description':a90t(0x19c),'usage':'maka\x20run:docker','isPro':![],'mustBeInMakaProject':!![],'validOpts':['env'],'requiredOpts':[]},async function(a,b){const u=a90t;try{const {projectConfig:c,cfg:d,pkg:f,scaffold:g}=this,{appName:h}=c,i=d['getEnvFromShorthand'](b[u(0x18b)]||u(0x1aa));if(i===u(0x1ae)){Log[u(0x192)]('Maka\x20should\x20not\x20run\x20docker\x20containers\x20from\x20a\x20local\x20config'),Log[u(0x192)]('Run\x20at\x20a\x20higher\x20level\x20(e.g.,\x20docker)');throw'Not\x20supported';}await f['ensureAllDependenciesInstalled']();const j=d['getAppConfigPath'](i),k=a90f[u(0x1ab)](j,u(0x196)),l=a90f[u(0x1ab)](j,u(0x1b0));Log['notice']('PM2\x20Config\x20File:\x20'+l),Log['notice']('Docker\x20Compose\x20Path:\x20'+k);if(!a90g[u(0x1a8)](k)){const p=a90f[u(0x1ab)](j,'docker-compose.yaml');await g[u(0x19a)]({'srcPath':u(0x1a9),'destPath':p,'context':{'app':h,'appFileCase':kebabCase(h),'env':i},'config':c});}const m=execSync(u(0x1a5))['toString'](),n=new Set(m[u(0x195)]('\x0a')[u(0x1a6)](q=>q[u(0x199)]())),o=h+u(0x198);Log[u(0x1a1)]('Checking\x20local\x20availability\x20for\x20image:\x20'+o),n[u(0x18e)](o)?Log[u(0x194)]('Image\x20already\x20available\x20locally:\x20'+o):(Log['error'](u(0x18d)+o),Log['error'](u(0x18c)),process[u(0x19b)](0x1)),Log['notice']('The\x20required\x20image\x20is\x20available\x20locally.\x20Proceeding\x20with\x20docker-compose\x20up.'),execSync(u(0x19d)+j+u(0x190),{'stdio':'inherit'});}catch(q){console[u(0x1ac)](q),process[u(0x19b)](0x1);}},a90e);