@maka/maka-cli 5.0.44 → 5.1.1
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.
- package/bundle/obf/package.json +30 -26
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test/_index.js +1 -1
- package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +30 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a77c(){const M=['meteor.tar.gz','Aborting\x20install','https://install.meteor.com','Meteor\x20path\x20updated.','\x20is\x20not\x20available.','package-metadata','Downloading\x20Meteor\x20','2775055hBjYUR','308814sDAiMO','maka\x20install\x20meteor\x20--release\x203.0.1','getUserDataDirectory','\x0a\x20\x20Install\x20meteor.\x20\x22maka\x20install\x22\x20defaults\x20to\x20\x22maka\x20install\x20meteor\x22\x20and\x20will\x20install\x0a\x20\x20the\x20latest\x20version.\x0a\x0a\x20\x20\x20\x20--force\x20flag\x20will\x20remove\x20the\x20current\x20install\x20of\x20meteor\x20and\x20install\x20the\x20latest\x20version.\x0a\x0a\x20\x20\x20\x20--release\x20flag\x20will\x20install\x20the\x20specified\x20version\x20of\x20meteor.\x0a\x0a\x20\x20\x20\x20--cacert\x20flag\x20will\x20use\x20the\x20specified\x20CA\x20Cert\x20file,\x20useful\x20for\x20corporate\x20networks.\x0a\x0a\x20\x20\x20\x20--timeout\x20flag\x20will\x20adjust\x20the\x20default\x20timeout\x20limit\x20for\x20downloading.\x20Time\x20is\x20in\x20seconds.\x0a\x0a\x20\x20\x20\x20--set-path\x20flag\x20will\x20only\x20set\x20the\x20PATH\x20environment\x20variable\x20for\x20Meteor.\x0a\x20\x20','274542wMdbkx','Using\x20CA\x20Cert\x20','readFileSync','(((.+)+)+)+$','isFile','maka\x20i','timeout','-rf','\x5c.meteor\x5cmeteor','RELEASE=','checkAvailability','x86_64','31214070ZFqgnh','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka.cert,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','grep','constructor','getMeteorInstallPath','exit','6iXBFTy','&release=','getGlobalConfig','existsSync','Removing\x20previous\x20install\x20of\x20meteor\x20(main)','downloadFile','warn','arch','Removing\x20previous\x20install\x20of\x20meteor\x20(packages)','extractTarGz','maka\x20install\x20meteor\x20--set-path','slice','Cleaning\x20up','setPath','cacert','homedir','env','getuid','export\x20PATH=\x22$HOME/.meteor/meteor:$PATH\x22','install','length','notice','Please\x20open\x20a\x20new\x20terminal\x20window\x20for\x20the\x20PATH\x20to\x20take\x20effect.','Network\x20error,\x20please\x20try\x20again.','packages','\x20is\x20available.','windows','6776504TtyjIm','create','cert','confirm','336GtDQgx','\x20is\x20not\x20available,\x20trying\x20','Removing\x20previous\x20install\x20of\x20meteor\x20(package-meta)','get','keepInstallFile','Aborted','PATH','Added\x20Meteor\x20path\x20to\x20','Meteor\x20version\x20','43218uHBKlR','search','join','Meteor\x20is\x20already\x20installed,\x20continue\x20and\x20remove\x20current\x20install?','osx','force','6VSlJld','getMeteorExePath','utf8','release','appendFileSync','error','info','Error\x20extracting\x20meteor.tar.gz\x20file','https://packages.meteor.com/bootstrap-link?arch=os.','toString','withSpinner','split','includes','platform','setx\x20PATH\x20\x22','meteor','4983624SvlkHy','arm64','Proceed\x20anyway?','win32','success'];a77c=function(){return M;};return a77c();}const a77H=a77d;(function(a,b){const F=a77d,c=a();while(!![]){try{const d=parseInt(F(0xc1))/0x1+parseInt(F(0xc5))/0x2*(parseInt(F(0x106))/0x3)+-parseInt(F(0x116))/0x4+parseInt(F(0xc0))/0x5*(-parseInt(F(0xd8))/0x6)+-parseInt(F(0xf3))/0x7+-parseInt(F(0xf7))/0x8*(parseInt(F(0x100))/0x9)+parseInt(F(0xd1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xb338a));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[G(0x10f)]()[G(0x101)](G(0xc8))[G(0x10f)]()[G(0xd5)](a77a)[G(0x101)]('(((.+)+)+)+$');});a77a();import a77e from'os';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(0xe7)]();function isRoot(){const I=a77H;return process[I(0xe9)]&&process[I(0xe9)]()===0x0;}function compareVersions(a,b){const J=a77H,c=a[J(0x111)]('.')['map'](Number),d=b[J(0x111)]('.')['map'](Number);for(let e=0x0;e<Math['max'](c[J(0xec)],d[J(0xec)]);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-0xb7;let f=c[d];return f;},a77d(a,b);}Command[a77H(0xf4)]({'name':a77H(0xeb),'aliases':['i'],'validOpts':[a77H(0x105),a77H(0x109),a77H(0xe6),a77H(0xfb),'timeout',a77H(0xe5)],'usage':'maka\x20install','shortDesc':'Install\x20meteor.\x20\x22maka\x20install\x22\x20defaults\x20to\x20\x22maka\x20install\x20meteor\x22','description':a77H(0xc4),'examples':['maka\x20install\x20meteor','maka\x20install\x20meteor\x20--force',a77H(0xc2),a77H(0xe2),a77H(0xca)]},async function(a,b){const K=a77H;try{const {mpi:c,cfg:d,fsi:f}=this;b[K(0xe5)]&&(updatePath(),Log[K(0xb8)](K(0xbc)),process['exit'](0x0));let g='';if(b['cacert']){if(f[K(0xc9)](b[K(0xe6)]))Log['notice'](K(0xc6)+b[K(0xe6)]),g=b['cacert'];else throw K(0xd2)+g;}const h=await d[K(0xda)]();if(h[K(0xf5)]){if(f[K(0xc9)](h[K(0xf5)]))g=h[K(0xf5)];else throw K(0xd3)+g;}let i=![];if(b['f']||b[K(0x105)])i=!![];else{const u=isRoot();u?(Log[K(0xde)]('You\x20are\x20running\x20as\x20root,\x20this\x20is\x20not\x20recommended.'),i=await Actions[K(0xf6)](K(0x118),![])):i=!![];}if(!i)throw K(0xfc);const j=await HTTPS[K(0xfa)]({'url':K(0xbb),'cert':g}),k=await f[K(0xd4)](j['data'],K(0xce));if(k[K(0xec)]===0x0)throw K(0xef);process['env']['NO_NODE_WARNINGS']='1';const l=k[0x0]['replace'](/[^0-9.]/gi,'')['replace'](/\r?\n|\r/,''),m='3.0.2';let n;b[K(0x109)]?n=b['release']:compareVersions(l,m)<0x0?n=m:n=l;Log['notice']('Preparing\x20to\x20install\x20Meteor\x20'+n);const o={'win32':K(0xf2),'darwin':K(0x104),'linux':'linux'};let p='https://packages.meteor.com/bootstrap-link?arch=os.'+o[a77e['platform']()]+'.'+(a77e[K(0xdf)]()===K(0x117)?'arm64':K(0xd0))+K(0xd9)+n,q=await HTTPS[K(0xcf)]({'url':p,'cert':g});if(!q&&n[K(0x112)]('-')){const v=n[K(0x111)]('-'),w=v[0x0],x=v[K(0xe3)](0x1)[K(0x102)]('-'),y=w['replace'](/\.0+$/,'');Log[K(0xde)](K(0xff)+n+K(0xf8)+y+'-'+x);const z=K(0x10e)+o[a77e[K(0x113)]()]+'.'+(a77e[K(0xdf)]()===K(0x117)?K(0x117):K(0xd0))+'&release='+y+'-'+x;q=await HTTPS[K(0xcf)]({'url':z,'cert':g}),q&&(n=y+'-'+x,p=z);}!q?(Log['error'](K(0xff)+n+K(0xbd)),process[K(0xd7)](0x0)):Log[K(0xed)](K(0xff)+n+K(0xf1));const r=f[K(0xd6)](),s=c[K(0x107)](),t=f[K(0xc3)]();if(a77g['existsSync'](s)){let A=![];b['f']||b[K(0x105)]?A=!![]:A=await Actions[K(0xf6)](K(0x103),![]),A?(await SpawnAsync[K(0x110)]('rm',[K(0xcc),a77f[K(0x102)](r,K(0xf0))],{'message':K(0xe0)}),await SpawnAsync[K(0x110)]('rm',[K(0xcc),a77f[K(0x102)](r,K(0xbe))],{'message':K(0xf9)}),await SpawnAsync[K(0x110)]('rm',['-rf',a77f[K(0x102)](r,K(0x115))],{'message':K(0xdc)})):(Log[K(0x10c)](K(0xba)),process[K(0xd7)](0x0));}try{Log[K(0xed)](K(0xbf)+n+'\x20from\x20'+p),await HTTPS[K(0xdd)]({'url':p,'destPath':a77f[K(0x102)](homeDir,K(0xb9)),'cert':g,'timeout':b[K(0xcb)]?parseInt(b[K(0xcb)])*0x3e8:0x493e0});try{const B=a77f[K(0x102)](homeDir,K(0xb9));await f[K(0xe1)](B,t);}catch(C){Log[K(0x10b)](K(0x10d));}updatePath();}catch(D){console[K(0x10b)](D),process['exit'](0x1);}finally{!b[K(0xfb)]&&await SpawnAsync[K(0x110)]('rm',[K(0xcc),a77f['join'](homeDir,K(0xb9))],{'message':K(0xe4)});}c['setMeteorReleaseVersion'](n),Log[K(0xb8)]('Meteor\x20version\x20'+n+'\x20installed.\x0a'),process[K(0xd7)](0x0);}catch(E){console[K(0x10b)](E),process['exit'](0x1);}});function updatePath(){const L=a77H;if(a77e[L(0x113)]()===L(0xb7)){const a=process[L(0xe8)][L(0xfd)]||'',b=homeDir+L(0xcd);!a[L(0x112)](b)&&(execSync(L(0x114)+a+';'+b+'\x22'),Log[L(0xed)]('Meteor\x20path\x20added\x20to\x20the\x20system\x20PATH\x20environment\x20variable.'),Log[L(0xed)](L(0xee)));}else{const c=a77f[L(0x102)](homeDir,'.zshrc'),d=a77f['join'](homeDir,'.bashrc'),e=L(0xea),f=a77g['existsSync'](c)?a77g[L(0xc7)](c,L(0x108)):'';!f['includes'](e)&&(a77g[L(0x10a)](c,'\x0a'+e+'\x0a'),Log[L(0xed)](L(0xfe)+c));const g=a77g[L(0xdb)](d)?a77g['readFileSync'](d,L(0x108)):'';!g['includes'](e)&&(a77g[L(0x10a)](d,'\x0a'+e+'\x0a'),Log[L(0xed)](L(0xfe)+d));}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a78l=a78d;(function(a,b){const i=a78d,c=a();while(!![]){try{const d
|
|
1
|
+
function a78c(){const n=['\x20-r\x20app','\x20-d\x20','stringify','4167350HXelMZ','search','maka\x20jsdoc\x20--init','fsi','config','app/packages','utf-8','inherit','withSpinner','error','\x0a[+]\x20Documentation\x20written\x20to\x20','stop','(((.+)+)+)+$','isFile','maka\x20jsdoc','21819402YCoPUl','8NcdAQb','join','1297112NVvZqM','toString','app/public','3572664mdHHxl','7047378SePAQT','plugins/markdown','847JHWZXS','Use\x20the\x20popular\x20JSDoc\x20documentation\x20generator','sep','docs','create','app/node_modules','findAppDirectory','app/private','.+\x5c.(j|t)s(doc|x)?$','apply','jsdoc-config.json','\x20-c\x20','constructor','(.+\x5c.app-tests.js)|(^|\x5c/|\x5c\x5c)_','89224GnVEdg','jsdoc','56893TPIhEj'];a78c=function(){return n;};return a78c();}const a78l=a78d;(function(a,b){const i=a78d,c=a();while(!![]){try{const d=parseInt(i(0x126))/0x1*(parseInt(i(0x13a))/0x2)+parseInt(i(0x113))/0x3+parseInt(i(0x110))/0x4+-parseInt(i(0x12a))/0x5+-parseInt(i(0x114))/0x6+parseInt(i(0x116))/0x7*(-parseInt(i(0x124))/0x8)+parseInt(i(0x139))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xc5a62));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a78d;if(c){const e=c[j(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const k=a78d;return a78a[k(0x111)]()['search'](k(0x136))[k(0x111)]()[k(0x122)](a78a)[k(0x12b)](k(0x136));});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 a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x10f;let f=c[d];return f;},a78d(a,b);}Command[a78l(0x11a)]({'name':'jsdoc','usage':a78l(0x138),'mustBeInMakaProject':!![],'shortDesc':a78l(0x117),'examples':[a78l(0x12c),'maka\x20jsdoc'],'validOpts':[]},function(){const m=a78l,a=a78e[m(0x10f)](this[m(0x12d)]['findAppDirectory'](),m(0x119)+a78e[m(0x118)]),b=a78e['join'](this[m(0x12d)][m(0x11c)](),m(0x12e),m(0x120)),c=m(0x125);if(!this[m(0x12d)][m(0x137)](b)){const f={'plugins':[m(0x115)],'tags':{'allowUnknownTags':!![],'dictionaries':[m(0x125),'closure']},'source':{'includePattern':m(0x11e),'excludePattern':m(0x123),'exclude':[m(0x12f),m(0x11b),m(0x112),m(0x11d)]},'templates':{'cleverLinks':![],'monospaceLinks':![]},'opts':{'recursive':!![],'encoding':m(0x130)}};a78f['writeFileSync'](b,JSON[m(0x129)](f,null,0x4));}const d=Log[m(0x132)]('Running\x20'+c);try{const g=c+m(0x121)+b+m(0x127)+a78e[m(0x118)]+m(0x128)+a;execSync(g,{'stdio':m(0x131)}),Log['notice'](m(0x134)+a);}catch(h){Log[m(0x133)](h),Log[m(0x133)]('[-]\x20You\x20may\x20need\x20to\x20install\x20jsdoc:\x20\x22npm\x20i\x20-g\x20jsdoc\x22');}finally{d[m(0x135)]();}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a79v=a79d;(function(a,b){const s=a79d,c=a();while(!![]){try{const d=parseInt(s(
|
|
1
|
+
const a79v=a79d;(function(a,b){const s=a79d,c=a();while(!![]){try{const d=parseInt(s(0x89))/0x1+-parseInt(s(0x91))/0x2*(parseInt(s(0x78))/0x3)+-parseInt(s(0x7c))/0x4+-parseInt(s(0x7a))/0x5*(parseInt(s(0xa3))/0x6)+-parseInt(s(0x9d))/0x7+-parseInt(s(0x85))/0x8+parseInt(s(0x96))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xf308a));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const t=a79d;if(c){const e=c[t(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const u=a79d;return a79a[u(0x9b)]()[u(0x97)](u(0x8e))['toString']()[u(0x79)](a79a)[u(0x97)](u(0x8e));});a79a();import a79e from'path';import{ESLint}from'eslint';function a79c(){const x=['pkg','\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','518149kNKErP','eslint','server','silent','eslint-config-prettier','(((.+)+)+)+$','@typescript-eslint/parser','format','2LOIpAB','scaffold','module','@babel/plugin-transform-runtime','@loadable/babel-plugin','51070257BjbodC','search','service','latest','prettier','toString','lint','575708ZmzTSa','stylish','client','length','template','join','6EybTsI','eslint-plugin-react','eslint/config.eslint.js','checkNpmPackage','lintFiles','apply','3761124jWqVrV','constructor','9620685zWiTvU','fix','5840132iZJrMx','isFile','imports/**/*.{js,jsx,tsx,ts}','loadFormatter','exit','findAppDirectory','fsi','findProjectDirectory','eslint/babel.config.js','3816272HapEAD','eslint-plugin-css'];a79c=function(){return x;};return a79c();}import a79f from'@babel/eslint-parser';import{Log}from'../tools/log/log.class.js';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x74;let f=c[d];return f;},a79d(a,b);}import{Command}from'../command.js';Command['create']({'name':a79v(0x9c),'usage':'maka\x20lint','maxArgLength':0x1,'validOpts':['fix',a79v(0x8c)],'mustBeInMakaProject':!![],'shortDesc':'Use\x20ESLint\x20to\x20lint\x20the\x20main\x20directories','description':a79v(0x88),'examples':['maka\x20lint\x20--fix']},async function(a,b){const w=a79v;try{const c=this[w(0x82)][w(0x81)](),d=this['fsi'][w(0x83)]();await this[w(0x87)][w(0x75)]([w(0x8f),w(0x95),w(0x94),'babel-preset-meteor'],{'cwd':c,'shouldInstall':!![],'saveDev':![]}),await this[w(0x87)]['checkNpmPackage']([w(0x8f),'@babel/preset-env','@babel/preset-react','@babel/eslint-parser',w(0x94)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]}),await this[w(0x87)][w(0x75)]([w(0x8a),w(0x9a),w(0x8d),w(0x86),'eslint-plugin-prettier',w(0xa4),'eslint-plugin-unused-imports'],{'cwd':d,'shouldInstall':!![],'saveDev':![]});const f=a79e[w(0xa2)](d,'config','config.eslint.js'),g=this[w(0x82)][w(0x7d)](f);!g&&await this[w(0x92)][w(0xa1)]({'srcPath':w(0x74),'destPath':f,'framework':w(0x98),'context':{'noRename':!![]}});const h=a79e[w(0xa2)](c,'babel.config.js'),i=this[w(0x82)][w(0x7d)](h);!i&&await this['scaffold'][w(0xa1)]({'srcPath':w(0x84),'destPath':h,'framework':w(0x98),'context':{'noRename':!![]}});const j=new ESLint({'fix':b[w(0x7b)],'cwd':c,'overrideConfigFile':f,'overrideConfig':{'languageOptions':{'ecmaVersion':w(0x99),'sourceType':w(0x93),'parser':a79f,'parserOptions':{'ecmaFeatures':{'jsx':!![]},'babelOptions':{'configFile':h},'requireConfigFile':!![]}}},'ignore':![]}),k=a79e[w(0xa2)](c,w(0x7e)),l=a79e[w(0xa2)](c,w(0x9f)),m=a79e[w(0xa2)](c,w(0x8b)),n=a79e[w(0xa2)](c,'lib'),o=await j[w(0x76)]([k,l,m,n]);b[w(0x7b)]&&await ESLint['outputFixes'](o);const p=await j[w(0x7f)](w(0x9e)),q=await p[w(0x90)](o,{});q[w(0xa0)]>0x0&&Log['bright'](q);}catch(r){console['error'](r),process[w(0x80)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a80C=a80d;(function(a,b){const z=a80d,c=a();while(!![]){try{const d=-parseInt(z(
|
|
1
|
+
const a80C=a80d;(function(a,b){const z=a80d,c=a();while(!![]){try{const d=-parseInt(z(0xe1))/0x1+-parseInt(z(0x101))/0x2+parseInt(z(0xdc))/0x3*(-parseInt(z(0xec))/0x4)+-parseInt(z(0xe5))/0x5*(parseInt(z(0xcf))/0x6)+parseInt(z(0xc8))/0x7*(-parseInt(z(0xd9))/0x8)+-parseInt(z(0xc9))/0x9*(parseInt(z(0xf5))/0xa)+parseInt(z(0xfe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x3c20a));const a80b=(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;};}()),a80a=a80b(this,function(){const A=a80d;return a80a[A(0xea)]()[A(0xff)](A(0xf0))[A(0xea)]()['constructor'](a80a)['search'](A(0xf0));});a80a();import a80e from'node-forge';function a80c(){const E=['toString','/api/v1/encodeJwt','51464bzSgEp','Sending\x20Password\x20Reset\x20Email','isFile','help','(((.+)+)+)+$','success','/api/v1/status','cert','Invalid\x20email\x20address','10inlPOh','sha256','True','login','\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','toHex','authToken','Email:','failure','22646096NzYuas','search','email','569464fBbaiF','Using\x20CA\x20Cert\x20','cfg','Preflight\x20Check','/api/v1/forgotPassword','Please\x20enter\x20your\x20email\x20address\x20to\x20receive\x20a\x20password\x20reset\x20link.','cacert','www.maka-cli.com','start','localhost','maka\x20login','268219cqaXLk','1802457JZOxlc','toLowerCase','parse','fsi','verify','assign','956538XVPFRT','If\x20you\x20need\x20to\x20reset\x20your\x20password,\x20run\x20`maka\x20login\x20--reset`','password','header','withSpinner','debug','post','digest','statusMessage','getGlobalConfig','16kFENvs','ask','message','114CFzHXU','/api/login','create','notice','error','283638ZpFfaH','https://','Logging\x20in','Securing\x20connection\x20to\x20https://','15AVduke','Logs\x20in\x20to\x20www.maka-cli.com','Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://','update','reset'];a80c=function(){return E;};return a80c();}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-0xc4;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 B=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['test'](String(a)[B(0xca)]());}const hostname=process['env']['MAKA_DEV']===a80C(0xf7)?a80C(0xc6):a80C(0xc4);Command['create']({'name':a80C(0xf8),'validOpts':[a80C(0x100),a80C(0xd1),a80C(0xef),a80C(0xe9),a80C(0xcd),'cacert',a80C(0xd4)],'usage':a80C(0xc7),'maxArgLength':0x2,'mustBeInMakaProject':![],'disableAuthCheck':!![],'shortDesc':a80C(0xe6),'examples':[a80C(0xc7),'maka\x20login\x20--email\x20<address>\x20--password\x20<password>','maka\x20login\x20--reset']},async function(a,b){const D=a80C,c=Log[D(0xd3)]();try{let d='';b[D(0x107)]&&(this[D(0xcc)][D(0xee)](b[D(0x107)])?(d=b['cacert'],Log['notice'](D(0x102)+d)):Log[D(0xe0)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+d));const f=await this['cfg'][D(0xd8)]();if(f[D(0xf3)]){if(this[D(0xcc)]['isFile'](f[D(0xf3)]))d=f[D(0xf3)];else{Log[D(0xe0)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+d);return;}}Log[D(0xd2)](D(0xe4)+hostname);const g={'url':D(0xe2)+hostname+D(0xf2)};b[D(0x107)]&&Object['assign'](g,{'cert':d});c[D(0xc5)](D(0x104));const {statusCode:h}=await HTTPS['get'](g);if(h===0x198){c[D(0xfd)]();throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}if(h!==0xc8){c[D(0xfd)]();throw D(0xe2)+hostname+D(0xf9);}c[D(0xf1)]();if(b['reset']){Log[D(0xdf)](D(0x106));const q=await Actions[D(0xda)](D(0xfc)),r={'hostname':hostname,'path':D(0x105),'data':{'email':q}};if(!validateEmail(q))throw D(0xf4);b['cacert']&&Object[D(0xce)](r,{'cert':d});c['start'](D(0xed));const {data:s,statusCode:t}=await HTTPS[D(0xd5)](r);if(t===0x198){c[D(0xfd)]('\x0a');throw D(0xe7)+hostname;}const u=JSON['parse'](s);t===0xc8?(c['success'](),Log[D(0xdf)](u[D(0xdb)])):c['failure']();return;}const i=b['email']?b[D(0x100)]:await Actions['ask']('Email:');if(!validateEmail(i))throw D(0xf4);const j=b[D(0xd1)]?b[D(0xd1)]:await Actions[D(0xda)]('Password:\x20',!![]),k=a80e['md'][D(0xf6)][D(0xde)]();k[D(0xe8)](j);const l=k[D(0xd6)]()[D(0xfa)](),m={'hostname':hostname,'path':D(0xdd),'data':{'email':i,'password':l,'hashed':!![]}};b['cacert']&&Object[D(0xce)](m,{'cert':d});c[D(0xc5)](D(0xe3));const {data:n,statusCode:o}=await HTTPS[D(0xd5)](m),p=JSON[D(0xcb)](n);if(o>=0x190){c[D(0xfd)]('\x0a');throw p[D(0xe0)];}if(p['authToken']){const v={'hostname':hostname,'path':D(0xeb),'headers':{'x-auth-token':p[D(0xfb)]},'data':{}};b['cacert']&&Object[D(0xce)](v,{'cert':d});const {statusCode:w}=await HTTPS[D(0xd5)](v);if(w===0x198)throw D(0xe7)+hostname;const x={'token':p};await this[D(0x103)]['setGlobalConfig'](x);}else{c[D(0xfd)]();throw p;}c['success']();}catch(y){y[D(0xd7)]?Log[D(0xe0)](y['statusMessage']):(console['log'](''),console['log'](y)),Log[D(0xdf)](D(0xd0)),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a81p=a81d;(function(a,b){const m=a81d,c=a();while(!![]){try{const d
|
|
1
|
+
const a81p=a81d;(function(a,b){const m=a81d,c=a();while(!![]){try{const d=-parseInt(m(0x88))/0x1+parseInt(m(0x8a))/0x2*(-parseInt(m(0x98))/0x3)+parseInt(m(0x9c))/0x4*(-parseInt(m(0xbc))/0x5)+-parseInt(m(0xad))/0x6*(parseInt(m(0xae))/0x7)+parseInt(m(0x95))/0x8+parseInt(m(0xa5))/0x9+parseInt(m(0x90))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xdcb60));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a81d;if(c){const e=c[n(0xac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const o=a81d;return a81a[o(0x8e)]()['search'](o(0xbb))['toString']()['constructor'](a81a)[o(0x92)](o(0xbb));});a81a();function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x88;let f=c[d];return f;},a81d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process[a81p(0xa2)][a81p(0x9a)]===a81p(0xb8)?a81p(0xba):a81p(0xa9);Command[a81p(0x96)]({'name':'logout','validOpts':[a81p(0x97)],'usage':a81p(0x8d),'maxArgLength':0x2,'shortDesc':a81p(0xa0),'disableAuthCheck':!![],'examples':[a81p(0x8d)]},async function(a,b){const q=a81p,c=Log[q(0xa6)]();try{let d='';b['cacert']&&(this[q(0xaa)][q(0x91)](b[q(0x97)])?(d=b['cacert'],Log[q(0xb5)](q(0xb3)+d)):Log[q(0xa3)]('CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+d));const f=await this[q(0xaf)][q(0x89)]();if(f['cert']){if(this['fsi']['isFile'](f[q(0x9d)]))d=f[q(0x9d)];else{c[q(0x93)]();throw Log[q(0xa3)](q(0x94)+d);}}Log[q(0xb9)](q(0xa1)+hostname);const g={'url':q(0x8f)+hostname+q(0xa7)};b[q(0x97)]&&Object[q(0xb4)](g,{'cert':d});c[q(0x8b)](q(0x9e));const {statusCode:h}=await HTTPS[q(0x9b)](g);if(h===0x198){c['failure']();throw q(0xa8);}c[q(0xa4)]();if(h!==0xc8){c['failure']();throw q(0x8c);}if(!f?.[q(0xb1)]?.[q(0x99)])throw Log[q(0xa3)](q(0xab));c[q(0x8b)](q(0xb2));const i={'hostname':hostname,'path':q(0xb6),'data':{},'headers':{'x-auth-token':f['token'][q(0x99)]}};b[q(0x97)]&&Object['assign'](i,{'cert':d});const {statusCode:j,statusMessage:k}=await HTTPS['post'](i);if(j>=0x190)throw k;this[q(0xaf)][q(0xb0)]({'token':{'authToken':'','userId':'','when':''}}),c[q(0xa4)]();}catch(l){c[q(0x93)]('\x0a'),l&&(l[q(0xb7)]?Log[q(0xa3)](l[q(0xb7)]):(Log[q(0xa3)](l),Log[q(0xb5)]('You\x20may\x20not\x20be\x20logged\x20in...'))),process[q(0x9f)](0x0);}});function a81c(){const r=['True','header','localhost','(((.+)+)+)+$','5tTthIC','154750WuBaje','getGlobalConfig','2tgptGs','start','https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','maka\x20logout','toString','https://','21251860JeaeFS','isFile','search','failure','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','5426696SvgFmT','create','cacert','5204097brJxIH','authToken','MAKA_DEV','get','4586732kiXkJj','cert','Preflight\x20Check','exit','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','Securing\x20connection\x20to\x20https://','env','error','success','12728502SzaIqJ','withSpinner','/api/v1/status','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','www.maka-cli.com','fsi','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','apply','1665822YpdSDc','7csAPtt','cfg','setGlobalConfig','token','Logging\x20out','Using\x20CA\x20Cert\x20','assign','notice','/api/logoutAll','statusMessage'];a81c=function(){return r;};return a81c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a82m=a82d;(function(a,b){const j=a82d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a82m=a82d;(function(a,b){const j=a82d,c=a();while(!![]){try{const d=-parseInt(j(0x1e3))/0x1+parseInt(j(0x1ef))/0x2*(-parseInt(j(0x1e8))/0x3)+parseInt(j(0x1e9))/0x4*(parseInt(j(0x1df))/0x5)+-parseInt(j(0x1e2))/0x6+parseInt(j(0x1f0))/0x7*(-parseInt(j(0x1ed))/0x8)+-parseInt(j(0x1d9))/0x9*(parseInt(j(0x1da))/0xa)+parseInt(j(0x1db))/0xb*(parseInt(j(0x1e0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x48606));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a82d;if(c){const e=c[k(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const l=a82d;return a82a[l(0x1e6)]()['search']('(((.+)+)+)+$')[l(0x1e6)]()[l(0x1d8)](a82a)['search']('(((.+)+)+)+$');});function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a82d(a,b);}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[a82m(0x1ea)]({'name':a82m(0x1f1),'aliases':['l','log'],'usage':'maka\x20logs','requiredOpts':['env'],'mustBeInMakaProject':!![],'validOpts':['verbose'],'shortDesc':'View\x20the\x20PM2\x20logs','examples':[a82m(0x1e4),a82m(0x1ec),a82m(0x1de)]},function(a,b){const n=a82m;try{const c=n(0x1ee),d=this[n(0x1dc)]['getAppConfigPath'](b[n(0x1d7)]),f=a82f[n(0x1e7)](d,'ssh.json'),g=a82e[n(0x1dd)](f),h=JSON['parse'](g[n(0x1e6)]());Object['assign'](h,{'env':d}),SSH[n(0x1e5)](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[n(0x1eb)](i);}});function a82c(){const o=['cfg','readFileSync','maka\x20l\x20-e\x20p','10AkKuGd','15615216TTIhJP','apply','2263404cBMaFk','313416sqFhon','maka\x20logs\x20--env\x20dev','sshSync','toString','join','6TEctPo','527260rgzhvl','create','error','maka\x20logs\x20--env\x20staging','77624zNaIRI','pm2\x20logs','463006hZukTm','49PQXMWo','logs','env','constructor','421803AeCUJF','10hFucmU','11ewtblj'];a82c=function(){return o;};return a82c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a83h=a83d;(function(a,b){const f=a83d,c=a();while(!![]){try{const d=-parseInt(f(0x163))/0x1*(parseInt(f(0x159))/0x2)+parseInt(f(0x162))/0x3*(-parseInt(f(0x155))/0x4)+parseInt(f(0x15f))/0x5+parseInt(f(0x153))/0x6*(parseInt(f(0x152))/0x7)+-parseInt(f(0x166))/0x8*(parseInt(f(0x167))/0x9)+-parseInt(f(0x168))/0xa+parseInt(f(0x15d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xddeef));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const g=a83d;return a83a[g(0x158)]()[g(0x15b)](g(0x157))['toString']()[g(0x15e)](a83a)['search'](g(0x157));});function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x152;let f=c[d];return f;},a83d(a,b);}a83a();import{Command}from'../command.js';function a83c(){const j=['61578AQeKZn','7877CuvnZm','maka\x20--help','maka\x20<command>\x20[<args>]\x20[<opts>]','48YvZhKq','2512017auzhxI','13970110QJYhPa','3094QJUypx','19626eclQBe','splice','40EtiOKJ','A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','(((.+)+)+)+$','toString','362pMEeHn','maka\x20run','search','maka\x20create\x20Todo','33009097xyVKyj','constructor','5825580qckhfI','processAndRunCommand','maka\x20install\x20meteor'];a83c=function(){return j;};return a83c();}const Maka=new Command({'name':'maka','minArgLength':0x1,'shortDesc':a83h(0x156),'validOpts':[],'usage':a83h(0x165),'resourceNameRequired':![],'disableAuthCheck':!![],'examples':[a83h(0x164),a83h(0x161),a83h(0x15c),a83h(0x15a)],'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 i=a83h;try{const c=a[0x0];return a[i(0x154)](0x0,0x1),await this[i(0x160)](c,a,b);}catch(d){process['exit'](0x1);}});export default Maka;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a84i=a84d;(function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0x1a8))/0x1+parseInt(f(0x1ab))/0x2*(parseInt(f(0x1ae))/0x3)+-parseInt(f(0x1b5))/0x4*(-parseInt(f(0x1ad))/0x5)+parseInt(f(0x1b4))/0x6*(-parseInt(f(0x1b7))/0x7)+parseInt(f(0x1af))/0x8*(-parseInt(f(0x1b0))/0x9)+parseInt(f(0x1bb))/0xa*(parseInt(f(0x1aa))/0xb)+-parseInt(f(0x1b6))/0xc*(parseInt(f(0x1b8))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x53520));function a84c(){var k=['958232raiJcV','9tswlgd','search','log','exit','298644SfhuoR','12YiJrJX','13222536fdstTe','14mkQgPY','13eAsCmi','murder','%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','10BFghUn','toString','font-family:\x20monospace','80811hLzWoa','constructor','5947403DkqXGT','942974kRxYEL','apply','949190OCwnmF','3RbIYtX'];a84c=function(){return k;};return a84c();}var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x1bc)]()[h(0x1b1)]('(((.+)+)+)+$')[h(0x1bc)]()[h(0x1a9)](a84a)[h(0x1b1)]('(((.+)+)+)+$');});a84a();import{Command}from'../command.js';function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x1a7;var f=c[d];return f;},a84d(a,b);}Command['create']({'name':a84i(0x1b9),'usage':'maka\x20murder','maxArgLength':0x1,'shortDesc':'Murrrrderrrrr','validOpts':[]},async function(){var j=a84i;try{console[j(0x1b2)](j(0x1ba),j(0x1a7));}catch(a){console['error'](a),process[j(0x1b3)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a85C=a85d;(function(a,b){const z=a85d,c=a();while(!![]){try{const d=parseInt(z(
|
|
1
|
+
const a85C=a85d;(function(a,b){const z=a85d,c=a();while(!![]){try{const d=parseInt(z(0x208))/0x1*(-parseInt(z(0x1ea))/0x2)+-parseInt(z(0x1f4))/0x3+-parseInt(z(0x1d0))/0x4*(-parseInt(z(0x1fe))/0x5)+parseInt(z(0x218))/0x6+-parseInt(z(0x1ff))/0x7+parseInt(z(0x1d6))/0x8*(-parseInt(z(0x1cc))/0x9)+parseInt(z(0x1e6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xa3d5c));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const A=a85d;if(c){const e=c[A(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const B=a85d;return a85a['toString']()[B(0x1f5)](B(0x1d5))[B(0x1d4)]()['constructor'](a85a)[B(0x1f5)](B(0x1d5));});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';function a85c(){const M=['scaffold','method','Execution\x20error:\x20','npx\x20artillery\x20run\x20','dirname','port','/imports/startup/client','Running\x20performance\x20test','Enter\x20the\x20number\x20of\x20users\x20(arrival\x20rate\x20per\x20second):','25563420YnPLra','start','duration','utf8','17978xHJdlY','forEach','No\x20API\x20routes\x20detected.\x20Proceeding\x20without\x20profiling\x20API\x20routes.','pathFromApp','push','maka\x20profile','Port\x20of\x20the\x20Meteor\x20app','readdirSync','3000','match','3649152SDQOkj','search','failure','existsSync','trim','config','getMakaProjectConfig','api','Number\x20of\x20concurrent\x20users','error','1919065kogdNK','8420531YFcoVg','length','Invalid\x20number\x20of\x20users.\x20Please\x20enter\x20a\x20numeric\x20value.','substring','apply','withSpinner','results_','url','/imports/startup/lib','89Cpsujc','plugins','readFileSync','split','replace','.txt','Duration\x20of\x20the\x20test\x20in\x20seconds','get','map','results','maka\x20profile\x20--url\x20http://localhost:3000\x20--users\x201000\x20--duration\x2060','responseTimes','Run\x20a\x20performance\x20test\x20on\x20a\x20Meteor\x20app\x20with\x20specified\x20concurrent\x20users\x20and\x20duration','notice','/api','Error\x20reading\x20results\x20file:\x20','4378656oAvZQI','warn','99BHiweN','\x20>\x20','cfg','create','12OaAhzN','ask','success','isFile','toString','(((.+)+)+)+$','397928ruSEWr','stringify','profile-tests','round','users','imports','exec'];a85c=function(){return M;};return a85c();}import{Actions}from'../tools/actions/actions.class.js';function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x1cb;let f=c[d];return f;},a85d(a,b);}const profileCommandOptions={'name':'profile','aliases':[],'usage':a85C(0x1ef),'validOpts':[{'name':a85C(0x206),'description':'URL\x20of\x20the\x20Meteor\x20app'},{'name':a85C(0x1e2),'description':a85C(0x1f0)},{'name':a85C(0x1da),'description':a85C(0x1fc),'regex':/^\d+$/},{'name':a85C(0x1e8),'description':a85C(0x20e),'regex':/^\d+$/}],'mustBeInMakaProject':!![],'shortDesc':'Profile\x20a\x20Meteor\x20app\x20for\x20performance','description':a85C(0x214),'examples':[a85C(0x212)],'experimental':!![]};function extractRoutePaths(a){const D=a85C,b=/<Route path="([^"]+)"/g,c=[];let d;while((d=b['exec'](a))!==null){d[0x1]!=='*'&&c[D(0x1ee)]({'method':D(0x20f),'path':d[0x1]});}return c;}function extractApiRoutes(a){const b=[];function c(d){const E=a85d,e=a85e[E(0x1f1)](d,{'withFileTypes':!![]});for(const f of e){const g=a85f['join'](d,f['name']);if(f['isDirectory']())c(g);else{if(f[E(0x1d3)]()){const h=a85e[E(0x20a)](g,E(0x1e9)),i=/addRoute\('([^']+)'.*?{[\s\S]*?(\bget\b|\bpost\b|\bput\b|\bdelete\b)/g;let j;while((j=i[E(0x1dc)](h))!==null){const k=j[0x1],l=j[0x2][E(0x1f8)]()['toLowerCase'](),m=g[E(0x202)](a[E(0x200)])[E(0x20c)](/\\/g,'/'),n=a85f[E(0x1e1)](m)+'/'+k;b[E(0x1ee)]({'method':l,'path':E(0x216)+n});}}}}}return c(a),b;}function createArtilleryConfig(a,b,c,d,e){const F=a85C,f=d[F(0x210)](h=>({'flow':[{[h[F(0x1de)]]:{'url':''+a+h['path']}}]})),g={'config':{'target':a,'phases':[{'duration':c,'arrivalRate':Math[F(0x1d9)](b/c)}]},'scenarios':f};return e&&(g[F(0x1f9)][F(0x209)]={'metrics-by-endpoint':{}}),JSON[F(0x1d7)](g,null,0x2);}function parseArtilleryResultsToJson(a){const G=a85C,b=a85e[G(0x20a)](a,G(0x1e9)),c=b[G(0x20b)]('\x0a'),d={};return c[G(0x1eb)](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]['codes'][h]=i;}f=e[H(0x1f3)](/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(0x213)][k]=l;}}),d;}async function runPerformanceTest(a,b){const I=a85C,c=a85f[I(0x1e1)](b);!a85e[I(0x1f7)](c)&&a85e['mkdirSync'](c,{'recursive':!![]});const d=Log[I(0x204)]();return new Promise((e,f)=>{const J=I;d[J(0x1e7)](J(0x1e4)),exec(J(0x1e0)+a+J(0x1cd)+b,async(g,h,i)=>{const K=J;if(g){d[K(0x1f6)](),f(K(0x1df)+g);return;}if(i){d[K(0x1f6)](),f('Error:\x20'+i);return;}try{const j=parseArtilleryResultsToJson(b);console['log'](JSON[K(0x1d7)](j,null,0x2)),Log[K(0x215)]('Test\x20results\x20saved\x20to\x20'+b);}catch(k){Log['error'](K(0x217)+k);}d[K(0x1d2)]('\x0a'),e();});});}Command[a85C(0x1cf)](profileCommandOptions,async function(a,b){const L=a85C;try{let c=b['port'];!c&&!b[L(0x206)]&&(c=await Actions[L(0x1d1)]('Enter\x20the\x20port\x20of\x20the\x20Meteor\x20app\x20[3000]:')||L(0x1f2));b[L(0x206)]=b['url']?b[L(0x206)]:'http://0.0.0.0:'+c;if(!b['duration']){const u=await Actions[L(0x1d1)]('Enter\x20the\x20duration\x20for\x20the\x20test\x20in\x20seconds:');b[L(0x1e8)]=parseInt(u);if(isNaN(b[L(0x1e8)]))throw new Error('Invalid\x20duration.\x20Please\x20enter\x20a\x20numeric\x20value.');}if(!b[L(0x1da)]){const v=await Actions[L(0x1d1)](L(0x1e5));b[L(0x1da)]=parseInt(v);if(isNaN(b[L(0x1da)]))throw new Error(L(0x201));}const d=this['fsi']['findProjectDirectory'](),f=this[L(0x1ce)][L(0x1fa)](),g=f['engines']['ssr']==='meteor',h=f['engines']['js'],i=g?L(0x207):L(0x1e3),j=this[L(0x1dd)][L(0x1ed)]({'pathParts':[i,'','routes.'+h]}),k=a85e[L(0x20a)](j,L(0x1e9)),l=extractRoutePaths(k);let m=[];try{const w=this[L(0x1dd)][L(0x1ed)]({'pathParts':[L(0x1db),L(0x1fb)]});m=extractApiRoutes(w);}catch(x){Log[L(0x1cb)](L(0x1ec));}const n=[...l,...m],o=!![],p=createArtilleryConfig(b[L(0x206)],b['users'],b['duration'],n,o),q=format(new Date(),'yyyy-MM-dd_HH-mm-ss'),r=a85f['join'](d,L(0x1d8),L(0x211)),s=a85f['join'](d,'profile-tests','artilleryConfig.yml'),t=a85f['join'](r,L(0x205)+q+L(0x20d));await this['fsi']['createFile']({'filePath':s,'data':p,'opts':{'force':!![]}}),await runPerformanceTest(s,t);}catch(y){Log[L(0x1fd)](y),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a86z=a86d;(function(a,b){const w=a86d,c=a();while(!![]){try{const d
|
|
1
|
+
function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0xcf;let f=c[d];return f;},a86d(a,b);}const a86z=a86d;(function(a,b){const w=a86d,c=a();while(!![]){try{const d=-parseInt(w(0xf9))/0x1*(-parseInt(w(0xdc))/0x2)+-parseInt(w(0xfb))/0x3+-parseInt(w(0xe3))/0x4+-parseInt(w(0x103))/0x5*(parseInt(w(0xd6))/0x6)+parseInt(w(0x102))/0x7+parseInt(w(0x10e))/0x8*(parseInt(w(0xe7))/0x9)+parseInt(w(0xe6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x8c62e));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a86d;if(c){const e=c[x(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const y=a86d;return a86a[y(0xf6)]()[y(0x11f)](y(0x100))[y(0xf6)]()['constructor'](a86a)[y(0x11f)](y(0x100));});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';import{UsageError}from'../error.js';import{SSL}from'../tools/ssl/ssl.class.js';import a86h from'../generators/maka.gen.js';Command[a86z(0xd4)]({'name':a86z(0xec),'usage':'maka\x20proxy','mustBeInMakaProject':!![],'validOpts':[a86z(0xef),a86z(0xf3),a86z(0x114),a86z(0x10b)],'maxArgLength':0x1,'shortDesc':'Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','description':a86z(0xe5),'examples':[a86z(0xfe),a86z(0x11a),a86z(0x11e)]},async function(a,b){const A=a86z,c=this[A(0x112)][A(0x101)](),d=A(0x11d),e=this[A(0x112)]['getAppConfigPath'](d),f=this[A(0xd5)][A(0x111)]({'configPath':e}),g=b[A(0xf3)]?Number(b['targetPort']):0xbb8,h=b[A(0x114)]?Number(b['listenPort']):0xd73,i=b[A(0x10b)]?b[A(0x10b)]:'0.0.0.0',j=a86f[A(0xff)](f,c['appName']+A(0xf1)),k=a86f['join'](f,c[A(0x11c)]+'.crt');(!this[A(0xd5)][A(0x10d)](j)||!this['fsi'][A(0x10d)](k))&&(await a86h[A(0x118)](A(0xeb),[],{'env':d}),SSL[A(0xee)]({'keyName':c['appName']+A(0xf1),'csrName':c[A(0x11c)]+A(0xd1),'cwd':f,'useConfig':!![]}),this[A(0xd5)][A(0x10d)](a86f[A(0xff)](f,c[A(0x11c)]+A(0xd1)))&&Log[A(0xed)](A(0x106)+a86f[A(0xff)](f,c[A(0x11c)]+A(0xd1))),SSL[A(0xf4)]({'keyName':c['appName']+'.key','crtName':c['appName']+'.crt','cwd':f,'useConfig':!![]}),this['fsi'][A(0x10d)](a86f[A(0xff)](f,c[A(0x11c)]+A(0x10a)))&&Log['info'](A(0xdd)+a86f[A(0xff)](f,c[A(0x11c)]+A(0x10a))),Log[A(0xed)](A(0x117)+j));if(g===h){Log['error']('Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.');throw new UsageError();}const l={'ssl':{'key':a86e[A(0x105)](j,A(0xd2)),'cert':a86e[A(0x105)](k,A(0xd2))},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a86g[A(0x109)](l);m['on'](A(0xf8),(o,p,q)=>{const B=A;'writeHead'in q&&(Log[B(0xf8)](B(0xd8)+o['message']),!q['headersSent']&&(q['writeHead'](0x1f4,{'content-type':B(0x10c)}),q[B(0xe0)](B(0x104))));}),m['on'](A(0xe9),(o,p)=>{const C=A,q=new Date()[C(0x116)](),r=p[C(0xf7)],s=p[C(0x107)],t=p['headers'][C(0x10f)],u=o[C(0xd7)],v=o[C(0xdf)];Log[C(0x119)]('['+q+']\x20=>\x20'+r+'\x20'+s+C(0xd9)+t+C(0xd3)+u+'\x20'+v);}),m['on'](A(0xde),o=>{const D=A,p=new Date()[D(0x116)](),q=o[D(0xf7)],r=o[D(0xfc)],s=o[D(0xfa)]('host');Log[D(0xed)]('['+p+']\x20<=\x20Sending\x20'+q+D(0xf0)+r+D(0x115)+s);}),m['on'](A(0xea),(o,p)=>{const E=A,q=new Date()[E(0x116)](),r=p[E(0xf7)],s=p[E(0x107)],t=p['headers']['host'];Log['success']('['+q+E(0xdb)+r+'\x20'+s+'\x20from\x20'+t+E(0xfd));}),m['on'](A(0x108),()=>{const F=A,o=new Date()['toISOString']();Log['success']('['+o+F(0xd0));}),m['on']('close',()=>{const G=A,o=new Date()[G(0x116)]();Log[G(0xf8)]('['+o+']\x20WebSocket\x20connection\x20closed');}),m[A(0xcf)](Number(h)),Log[A(0xe4)](A(0x113)+h+'\x20to\x20'+g);const n=0x7d0;process['on'](A(0xf2),()=>{const H=A,o=Log[H(0xe1)]();o[H(0xf5)](H(0xe8));const p=setTimeout(()=>{const I=H;o['success'](),process[I(0x11b)](0x1);},n);m[H(0xda)](()=>{const J=H;clearTimeout(p),Log[J(0xed)](J(0xe2)),process[J(0x11b)](0x0);});});});function a86c(){const K=['107922jZxIWH','statusCode','Proxy\x20error:\x20','\x20from\x20','close',']\x20WS\x20','92PwJBcD','SSC\x20file\x20created:\x20','proxyReq','statusMessage','end','withSpinner','Proxy\x20server\x20closed.','3894436KvMrZL','bright','\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','18160070BhDkee','81jMtaEZ','Shutting\x20down\x20proxy\x20server...','proxyRes','proxyReqWs','sslconfig','proxy','info','genCSR','help','\x20request\x20to\x20','.key','SIGINT','targetPort','genSSC','start','toString','method','error','7468uWYXlc','getHeader','2508135NlLboM','path','\x20-\x20Starting\x20WebSocket\x20handshake','maka\x20proxy','join','(((.+)+)+)+$','getMakaProjectConfig','826266kdNYqO','195DBbEIJ','Internal\x20server\x20error.','readFileSync','CSR\x20file\x20created:\x20','url','open','createProxyServer','.crt','targetHost','text/plain','isFile','718752bejIOV','host','apply','mkKeysDir','cfg','=>\x20SSL\x20Proxy\x20forwarding\x20','listenPort','\x20on\x20','toISOString','Key\x20file\x20created:\x20','processAndRunGenerator','warn','maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000','exit','appName','local','maka\x20proxy\x20--target-host\x20http://192.168.1.20','search','listen',']\x20WebSocket\x20connection\x20established','.csr','utf8','\x20responded\x20with\x20','create','fsi'];a86c=function(){return K;};return a86c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-
|
|
1
|
+
const a87q=a87d;function a87c(){const s=['ssh.json','success','8mZrhEy','~/pm2.config.js','env','maka\x20reconfig','scp','toString','_keys','14801463lKhdgU','assign','ssh','existsSync','973931WfTfvB','ping','maka\x20reconfig\x20--env\x20prod','7305460yCBAib','getEnvFromShorthand','search','parse','9533608KeyvZy','echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22','pm2.config.js','constructor','settings.json','readFileSync','3032828JrwwiV','reconfigure','sshSync','~/settings.json','join','10nwhCHv','(((.+)+)+)+$','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','3VhqoFR','notice','Remote\x20host\x20connection\x20successful','2203002KKDZxx','reconfig','error','\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','cfg','5359092GJEzcv','~/ses.json'];a87c=function(){return s;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0x9f;let f=c[d];return f;},a87d(a,b);}(function(a,b){const o=a87d,c=a();while(!![]){try{const d=parseInt(o(0xa6))/0x1+parseInt(o(0xb3))/0x2*(parseInt(o(0xbb))/0x3)+parseInt(o(0xc3))/0x4+parseInt(o(0xb8))/0x5*(parseInt(o(0xbe))/0x6)+-parseInt(o(0xad))/0x7+-parseInt(o(0xc7))/0x8*(parseInt(o(0xa2))/0x9)+-parseInt(o(0xa9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0xc9fdb));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(0xa0)]()[p(0xab)](p(0xb9))[p(0xa0)]()[p(0xb0)](a87a)[p(0xab)]('(((.+)+)+)+$');});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['create']({'name':a87q(0xb4),'aliases':[a87q(0xbf)],'validOpts':[''],'requiredOpts':['env'],'mustBeInMakaProject':!![],'usage':a87q(0xca),'shortDesc':'Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy','description':a87q(0xc1),'examples':[a87q(0xa8)]},async function(a,b){const r=a87q;try{const c=this[r(0xc2)][r(0xaa)](b[r(0xc9)]),d=this[r(0xc2)]['getAppConfigPath'](c),f=a87f[r(0xb7)](d,r(0xc5)),g=a87e[r(0xb2)](f)[r(0xa0)](),h=JSON[r(0xac)](g);Object[r(0xa3)](h,{'env':d}),Log[r(0xbc)]('Checking\x20remote\x20host\x20availability');const i=SSH[r(0xa7)]('uname\x20-a',h);if(!i)throw r(0xba);if(i)Log[r(0xc6)](r(0xbd));const j=a87f[r(0xb7)](d,r(0xa1),'ses.json');if(a87e[r(0xa5)](j)){const m={'source':j,'dest':r(0xc4),'verbose':!![]};SSH['scp'](m,{...h});}const k=a87f[r(0xb7)](d,r(0xaf));SSH[r(0x9f)]({'source':k,'dest':r(0xc8),'verbose':!![]},{...h});const l=a87f['join'](d,r(0xb1));SSH['scp']({'source':l,'dest':r(0xb6),'verbose':!![]},{...h}),SSH[r(0xb5)]('pm2\x20delete\x20all',h),await SSH[r(0xa4)](r(0xae),{...h},{'verbose':!![]});}catch(n){console[r(0xc0)](n),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a88s=a88d;(function(a,b){const o=a88d,c=a();while(!![]){try{const d
|
|
1
|
+
const a88s=a88d;(function(a,b){const o=a88d,c=a();while(!![]){try{const d=-parseInt(o(0x9b))/0x1+parseInt(o(0x92))/0x2*(parseInt(o(0xae))/0x3)+-parseInt(o(0xa4))/0x4+-parseInt(o(0xb8))/0x5*(-parseInt(o(0xb9))/0x6)+parseInt(o(0xb7))/0x7+-parseInt(o(0xa1))/0x8+parseInt(o(0xa3))/0x9*(parseInt(o(0xbd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xd9d3f));function a88c(){const u=['1388601rPTTsO','1992016flKnRS','create','https://','help','Using\x20CA\x20Cert\x20','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','assign','message','cfg','parse','4739469ugsiIx','error','constructor','notice','exit','cert','isFile','Preflight\x20Check','(((.+)+)+)+$','6001107KIrdGk','311210SAGcxR','66RGiDbC','test','maka\x20register','Bruv...\x20Too\x20many\x20requests,\x20register\x20slower...','10zTnobF','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','toLowerCase','start','failure','ask','env','withSpinner','Registration\x20successful','Registering','Registers\x20a\x20new\x20user\x20on\x20www.maka-cli.com','success','localhost','Securing\x20connection\x20to\x20https://','search','Invalid\x20email\x20address','2sTeVce','/api/v1/status','post','majestic','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','processAndRunCommand','/api/v1/register','toString','apply','1562712TEZKuM','Confirm\x20Password:\x20','Passwords\x20do\x20not\x20match','cacert','register','MAKA_DEV','2585088COEnOl','Too\x20many\x20requests'];a88c=function(){return u;};return a88c();}const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a88d;if(c){const e=c[p(0x9a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const q=a88d;return a88a[q(0x99)]()[q(0x90)](q(0xb6))[q(0x99)]()[q(0xb0)](a88a)[q(0x90)](q(0xb6));});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-0x8f;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(0xba)](String(a)[r(0xbf)]());}const hostname=process[a88s(0xc3)][a88s(0xa0)]==='True'?a88s(0xc9):'www.maka-cli.com';Command[a88s(0xa5)]({'name':a88s(0x9f),'validOpts':[a88s(0xa7),a88s(0x9e)],'usage':a88s(0xbb),'maxArgLength':0x3,'disableAuthCheck':!![],'shortDesc':a88s(0xc7),'examples':[a88s(0xbb)]},async function(a,b){const t=a88s,c=Log[t(0xc4)]();try{let d='';b[t(0x9e)]&&(this['fsi'][t(0xb4)](b['cacert'])?(d=b[t(0x9e)],Log[t(0xb1)](t(0xa8)+d)):Log[t(0xaf)](t(0x96)+d));const e=await this[t(0xac)]['getGlobalConfig']();if(e[t(0xb3)]){if(this['fsi']['isFile'](e[t(0xb3)]))d=e[t(0xb3)];else{Log[t(0xaf)](t(0xa9)+d);return;}}Log['header'](t(0x8f)+hostname);const f={'url':t(0xa6)+hostname+t(0x93)};b[t(0x9e)]&&Object[t(0xaa)](f,{'cert':d});c[t(0xc0)](t(0xb5));const {statusCode:g}=await HTTPS['get'](f);if(g===0x198){c[t(0xc1)]();throw t(0xbe);}if(g!==0xc8){c[t(0xc1)]();throw t(0xa6)+hostname+'\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}c['success']();const h=await Actions['ask']('Email:');!validateEmail(h)&&(Log[t(0xaf)](t(0x91)),process['exit'](0x1));const i=await Actions[t(0xc2)]('Password:\x20',!![]),j=await Actions[t(0xc2)](t(0x9c),!![]);i!==j&&(Log[t(0xaf)](t(0x9d)),process[t(0xb2)](0x1));const k={'hostname':hostname,'path':t(0x98),'data':{'email':h,'password':i}};b[t(0x9e)]&&Object[t(0xaa)](k,{'cert':d});c[t(0xc0)](t(0xc6));const {statusCode:l,data:m}=await HTTPS[t(0x94)](k);if(l!==0xc8){c[t(0xc1)]();throw JSON[t(0xad)](m);}c[t(0xc8)](),Log['notice'](t(0xc5)),a88e[t(0x97)]('login',[],{'email':h,'password':i});}catch(n){n===t(0xa2)&&Log[t(0x95)](t(0xbc)),Log[t(0xaf)](n[t(0xab)]),process[t(0xb2)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a89c(){var i=['
|
|
1
|
+
function a89c(){var i=['search','33kjwPYI','toString','198983Nmyivt','(((.+)+)+)+$','30601557ybVpjD','76922BZREbP','33446pXFtAy','411845uOvtrT','3741858AAAmTI','constructor','4426152jmuXGF','apply','1208nrwkic'];a89c=function(){return i;};return a89c();}(function(a,b){var f=a89d,c=a();while(!![]){try{var d=parseInt(f(0x18d))/0x1+parseInt(f(0x190))/0x2*(-parseInt(f(0x18b))/0x3)+-parseInt(f(0x187))/0x4+-parseInt(f(0x192))/0x5+-parseInt(f(0x193))/0x6+parseInt(f(0x191))/0x7*(-parseInt(f(0x189))/0x8)+parseInt(f(0x18f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x9cc09));var a89b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a89d;if(c){var e=c[g(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){var h=a89d;return a89a[h(0x18c)]()[h(0x18a)](h(0x18e))[h(0x18c)]()[h(0x194)](a89a)[h(0x18a)]('(((.+)+)+)+$');});function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x187;var f=c[d];return f;},a89d(a,b);}a89a();import'./run.command.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a90u=a90d;(function(a,b){const r=a90d,c=a();while(!![]){try{const d=-parseInt(r(0xb4))/0x1+-parseInt(r(0xb3))/0x2+-parseInt(r(0x94))/0x3+-parseInt(r(0xb5))/0x4+parseInt(r(0xac))/0x5*(parseInt(r(0xa4))/0x6)+-parseInt(r(0xa9))/0x7+parseInt(r(0xbd))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x5e23c));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a90d;if(c){const e=c[s(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const t=a90d;return a90a[t(0xa0)]()[t(0xb1)](t(0xb0))[t(0xa0)]()[t(0xaf)](a90a)[t(0xb1)](t(0xb0));});a90a();import a90e from'./run.command.js';import{execSync}from'child_process';function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x90;let f=c[d];return f;},a90d(a,b);}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';function a90c(){const w=['Image\x20already\x20available\x20locally:\x20','inherit','Try\x20building\x20it\x20with\x20`maka\x20build:docker`','create','local','PM2\x20Config\x20File:\x20','filter','15482672sueCae','Checking\x20local\x20availability\x20for\x20image:\x20','env','notice','trim','1607853ylhtFy','exit','getAppConfigPath','Maka\x20should\x20not\x20run\x20docker\x20containers\x20from\x20a\x20local\x20config','error',':latest','split','ensureAllDependenciesInstalled','Not\x20supported','\x20up\x20--remove-orphans','docker-compose.yaml','log','toString','success','docker','config/docker-compose.yaml','66EpGjJD','docker\x20images\x20--format\x20\x22{{.Repository}}:{{.Tag}}\x22','getEnvFromShorthand','\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','existsSync','3352797dDqnqX','Run\x20at\x20a\x20higher\x20level\x20(e.g.,\x20docker)','join','102740vdVjtB','apply','Image\x20not\x20available\x20locally:\x20','constructor','(((.+)+)+)+$','search','maka\x20run:docker','774192RdyHzj','335151jqZaeV','154388MqHOKJ'];a90c=function(){return w;};return a90c();}Command[a90u(0xb9)]({'name':a90u(0xa2),'aliases':['d'],'shortDesc':'Run\x20your\x20application\x20in\x20a\x20Docker\x20container','description':a90u(0xa7),'usage':a90u(0xb2),'isPro':![],'mustBeInMakaProject':!![],'validOpts':[a90u(0x91)],'requiredOpts':[]},async function(a,b){const v=a90u;try{const {projectConfig:c,cfg:d,pkg:f,scaffold:g}=this,{appName:h}=c,i=d[v(0xa6)](b[v(0x91)]||v(0xa2));if(i===v(0xba)){Log['error'](v(0x97)),Log[v(0x98)](v(0xaa));throw v(0x9c);}await f[v(0x9b)]();const j=d[v(0x96)](i),k=a90f[v(0xab)](j,v(0x9e)),l=a90f[v(0xab)](j,'pm2.config.js');Log[v(0x92)](v(0xbb)+l),Log[v(0x92)]('Docker\x20Compose\x20Path:\x20'+k);if(!a90g[v(0xa8)](k)){const p=a90f['join'](j,v(0x9e));await g['template']({'srcPath':v(0xa3),'destPath':p,'context':{'app':h,'appFileCase':kebabCase(h),'env':i},'config':c});}const m=execSync(v(0xa5))['toString'](),n=new Set(m[v(0x9a)]('\x0a')[v(0xbc)](q=>q[v(0x93)]())),o=h+v(0x99);Log['notice'](v(0x90)+o),n['has'](o)?Log[v(0xa1)](v(0xb6)+o):(Log[v(0x98)](v(0xae)+o),Log['error'](v(0xb8)),process[v(0x95)](0x1)),Log['notice']('The\x20required\x20image\x20is\x20available\x20locally.\x20Proceeding\x20with\x20docker-compose\x20up.'),execSync('docker-compose\x20--project-directory\x20'+j+v(0x9d),{'stdio':v(0xb7)});}catch(q){console[v(0x9f)](q),process[v(0x95)](0x1);}},a90e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a91z=a91d;(function(a,b){const v=a91d,c=a();while(!![]){try{const d=parseInt(v(
|
|
1
|
+
const a91z=a91d;(function(a,b){const v=a91d,c=a();while(!![]){try{const d=parseInt(v(0x96))/0x1*(-parseInt(v(0xa6))/0x2)+parseInt(v(0x7c))/0x3+-parseInt(v(0x78))/0x4*(parseInt(v(0x85))/0x5)+parseInt(v(0x99))/0x6+-parseInt(v(0x6f))/0x7+parseInt(v(0x6d))/0x8+parseInt(v(0xb2))/0x9*(-parseInt(v(0x88))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0xdb37d));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a91d;if(c){const e=c[w(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const x=a91d;return a91a[x(0xbb)]()[x(0x8d)](x(0x73))[x(0xbb)]()[x(0xa8)](a91a)[x(0x8d)](x(0x73));});function a91c(){const C=['cfg','autoupdate','mpi','inspect','\x22web.browser.legacy\x22','16iZyyTk','ensureAllDependenciesInstalled','constructor','Meteor\x20is\x20installed.','invokeMeteorCommand','forEach','notice','apply','maka\x20install\x20--force','--exclude-archs','warn','length','2007vVMwqJ','getAppConfigPath','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x0a\x20\x20-o\x20|\x20--open\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Opens\x20the\x20application\x20in\x20your\x20default\x20browser.\x0a\x20\x20','boolean','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','--settings','info','concat','toString','fsi','app','create','10174568xrXlzD','cwd','9753464RhmlwH','ios','getEnvFromShorthand','relative','(((.+)+)+)+$','error','createFile','process.env','checkMeteorPackage','4UNnuep','split','verbose','extraPackages','2787099roHOUY','settings','run','settings.json','--production','splice','config','filter','findProjectDirectory','2355735Nkekjc','slice','inherit','18110mKcTXE','isDirectory','pkg','isFile','Run\x20your\x20Meteor\x20application','search','join','cordova-build','production','push','rawLogs','.meteor','processAndRunGenerator','sep','22129VagBSd','argv','excludeArchs','6854682tbWbMg','Meteor\x20Settings:\x20','mobileServer','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','env','local','--env','openSync'];a91c=function(){return C;};return a91c();}function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x6a;let f=c[d];return f;},a91d(a,b);}a91a();import a91e from'path';import a91f from'fs';import a91g from'dotenv';import{rimraf}from'rimraf';import{execSync}from'child_process';import a91h from'../../generators/maka.gen.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const y=a91d;a91f[y(0xa0)](a,'r'),a91g[y(0x82)]({'path':a});},Run=Command[a91z(0x6c)]({'name':a91z(0x7e),'mustBeInMakaProject':!![],'aliases':['r'],'shortDesc':a91z(0x8c),'description':a91z(0xb5),'validOpts':['env',a91z(0x92),'port',a91z(0xa4),a91z(0x9b),a91z(0x7a),'allowIncompatibleUpdate',a91z(0x7b),'x',a91z(0x98),'production','ci','open']},async function(a,b){const A=a91z;try{this[A(0xa3)]['isMeteorInstalled']()?Log[A(0xac)](A(0xa9)):(Log[A(0xac)](A(0x9c)),execSync(A(0xae),{'stdio':A(0x87)}));await this[A(0x8a)][A(0x77)](A(0xa2),{'shouldInstall':!![]}),await this[A(0x8a)][A(0xa7)]();const c=a[0x0];if(c===A(0x70)){const m=this[A(0x6a)]['findProjectDirectory'](),n=a91e[A(0x8e)](m,A(0x6b),A(0x93),'local',A(0x8f));this[A(0x6a)][A(0x89)](n)&&await rimraf(n);}!b[A(0x98)]&&!b['x']&&(a=a[A(0xba)]([A(0xaf),A(0xa5)]));if(b[A(0x9b)]&&typeof b[A(0x9b)]===A(0xb6))throw'Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)';const d=this[A(0xa1)]['checkConfigExists']('local');if(!d){Log[A(0xb0)]('Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...');const o=this[A(0x6a)][A(0x84)]();await a91h[A(0x94)](A(0x82),[A(0x9e)],{'cwd':o,'root':!![]});}const f=b[A(0x9d)]?this[A(0xa1)][A(0x71)](b[A(0x9d)]):'local',g=this['cfg'][A(0xb3)](f),h=a91e[A(0x8e)](g,A(0x76));let i=a91e[A(0x8e)](g,'settings.json');b[A(0x7d)]?i=b['settings']:i=a91e['join'](g,A(0x7f));if(this[A(0x6a)]['isFile'](h)){const p=a91e['relative'](process[A(0x6e)](),h);Log[A(0xac)]('Node\x20Env\x20Config:\x20'+p),syncSource(h);}else{const q=a91e[A(0x72)](process[A(0x6e)](),h);Log[A(0xb9)](A(0xb7)+q),this['fsi'][A(0x75)]({'filePath':h,'data':''});}if(this[A(0x6a)][A(0x8b)](i)){const r=a91e['relative'](process[A(0x6e)](),i);Log[A(0xac)](A(0x9a)+r),a=a[A(0xba)]([A(0xb8),i]);}else{const s=a91e['relative'](process[A(0x6e)](),i);Log[A(0xb0)](A(0xb4)+s);}const j=g[A(0x79)](a91e[A(0x95)]),k=j[j[A(0xb1)]-0x1];k===A(0x90)&&a[A(0x91)](A(0x80));const l=process[A(0x97)][A(0x86)](0x2)[A(0x83)](t=>t!==A(0x7e))['filter'](t=>t!==a[0x0]);l[A(0xab)]((t,u)=>{const B=A;t===B(0x9f)&&l[B(0x81)](u,0x2),t==='-e'&&l[B(0x81)](u,0x2);}),this[A(0xa3)][A(0xaa)](A(0x7e),a[A(0xba)](l));}catch(t){Log[A(0x74)](t),process['exit'](0x1);}});export default Run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a92d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a92d,c=a();while(!![]){try{var d=-parseInt(f(0xb0))/0x1*(parseInt(f(0xb3))/0x2)+parseInt(f(0xae))/0x3+-parseInt(f(0xaa))/0x4*(parseInt(f(0xb6))/0x5)+-parseInt(f(0xb8))/0x6+-parseInt(f(0xab))/0x7*(parseInt(f(0xb7))/0x8)+parseInt(f(0xaf))/0x9+parseInt(f(0xb2))/0xa*(parseInt(f(0xb4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x4e76c));var a92b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a92d;if(c){var e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){var h=a92d;return a92a[h(0xb5)]()[h(0xac)](h(0xad))[h(0xb5)]()['constructor'](a92a)['search']('(((.+)+)+)+$');});a92a();function a92d(a,b){var c=a92c();return a92d=function(d,e){d=d-0xaa;var f=c[d];return f;},a92d(a,b);}import'./set.command.js';function a92c(){var i=['(((.+)+)+)+$','1141680tmWQFM','81414WLPHrP','1zLwMhQ','apply','11010410gFGIqj','287686YBGJON','11YMuQNi','toString','7045srOUBP','71768vKnwhb','3106980ISYDvC','244pzyqxY','329ACOxwU','search'];a92c=function(){return i;};return a92c();}import'./global.sub.cmd.js';import'./local.sub.cmd.js';
|