@maka/maka-cli 4.11.1 → 4.12.0
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 +2 -1
- 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/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/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/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/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -0
- 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.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/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/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/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.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 +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77L=a77d;(function(a,b){const H=a77d,c=a();while(!![]){try{const d=-parseInt(H(0x154))/0x1*(parseInt(H(0x146))/0x2)+parseInt(H(0x147))/0x3+-parseInt(H(0x13c))/0x4*(-parseInt(H(0x16b))/0x5)+parseInt(H(0x138))/0x6*(-parseInt(H(0x14c))/0x7)+-parseInt(H(0x133))/0x8*(-parseInt(H(0x132))/0x9)+-parseInt(H(0x151))/0xa+-parseInt(H(0x16d))/0xb*(-parseInt(H(0x157))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xddc01));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const I=a77d;if(c){const e=c[I(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const J=a77d;return a77a['toString']()['search'](J(0x145))['toString']()['constructor'](a77a)['search']('(((.+)+)+)+$');});a77a();import a77e from'node-forge';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x124;let f=c[d];return f;},a77d(a,b);}import{HTTPS}from'../tools/https/https.class.js';function validateEmail(a){const K=a77d,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[K(0x164)](String(a)[K(0x16c)]());}const hostname=process[a77L(0x14b)][a77L(0x158)]==='True'?a77L(0x14d):a77L(0x144);function a77c(){const N=['message','assign','Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://','withSpinner','create','PRO\x20Features\x20Enabled\x20🤘','test','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','singleLicense','parse','maka\x20login\x20--email\x20<address>\x20--password\x20<password>','Using\x20CA\x20Cert\x20','Logs\x20in\x20to\x20www.maka-cli.com','14770ToMSOY','toLowerCase','22PABcxq','Email:','/api/v1/resendEmailVerification','exit','warn','token','Your\x20email\x20is\x20already\x20verified!','getGlobalConfig','Securing\x20connection\x20to\x20https://','emailVerified','success','setGlobalConfig','password','cert','Invalid\x20email\x20address','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','post','apply','maka\x20login\x20--reset','help','Logging\x20in','statusMessage','error','Please\x20verify\x20your\x20account.\x20If\x20you\x20need\x20a\x20new\x20verification\x20email,\x20run\x20`maka\x20login\x20--verify`.','If\x20you\x20need\x20to\x20reset\x20your\x20password,\x20run\x20`maka\x20login\x20--reset`','18DILlXC','1024632utIfkl','getPro','Non-verified\x20accounts\x20are\x20automatically\x20garbage\x20collected.\x20\x20Garbage\x20collection\x20is\x20on\x20Thursdays.','/api/v1/forgotPassword','roles','1263498UYTwoJ','reset','verify','notice','252DFwrjw','/api/v1/status','https://','Password:\x20','log','sha256','fsi','failure','www.maka-cli.com','(((.+)+)+)+$','462680JWyaXu','1279326pyLoJs','start','cacert','Once\x20verified,\x20please\x20run\x20\x27maka\x20login\x27\x20again','env','49gmpJuw','localhost','/api/login','Preflight\x20Check','debug','17714140eKzDiC','email','update','3lpFTcz','ask','Email\x20sent!\x20','23874612rZApfW','MAKA_DEV','maka\x20login','get','authToken','/api/v1/encodeJwt','isFile'];a77c=function(){return N;};return a77c();}Command[a77L(0x162)]({'name':'login','validOpts':[a77L(0x152),a77L(0x125),a77L(0x12c),a77L(0x139),a77L(0x13a),a77L(0x149),a77L(0x150)],'usage':'maka\x20login','maxArgLength':0x2,'disableAuthCheck':!![],'shortDesc':a77L(0x16a),'examples':[a77L(0x159),a77L(0x168),a77L(0x12b)]},async function(a,b){const M=a77L,c=Log[M(0x161)]();try{let d='';b['cacert']&&(this[M(0x142)][M(0x15d)](b[M(0x149)])?(d=b['cacert'],Log[M(0x13b)](M(0x169)+d)):Log[M(0x12f)](M(0x128)+d));const f=await this[M(0x142)][M(0x174)]();if(f[M(0x126)]){if(this['fsi'][M(0x15d)](f[M(0x126)]))d=f['cert'];else{Log[M(0x12f)](M(0x165)+d);return;}}Log['header'](M(0x175)+hostname);const g={'url':M(0x13e)+hostname+M(0x13d)};b[M(0x149)]&&Object['assign'](g,{'cert':d});c[M(0x148)](M(0x14f));const {statusCode:h}=await HTTPS[M(0x15a)](g);if(h===0x198){c[M(0x143)]();throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}if(h!==0xc8){c[M(0x143)]();throw M(0x13e)+hostname+'\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli';}c[M(0x177)]();if(b[M(0x139)]){Log[M(0x13b)]('Please\x20enter\x20your\x20email\x20address\x20to\x20receive\x20a\x20password\x20reset\x20link.');const r=await Actions[M(0x155)](M(0x16e)),s={'hostname':hostname,'path':M(0x136),'data':{'email':r}};if(!validateEmail(r))throw M(0x127);b[M(0x149)]&&Object[M(0x15f)](s,{'cert':d});c[M(0x148)]('Sending\x20Password\x20Reset\x20Email');const {data:t,statusCode:u}=await HTTPS['post'](s);if(u===0x198){c[M(0x143)]('\x0a');throw M(0x160)+hostname;}const v=JSON['parse'](t);u===0xc8?(c[M(0x177)](),Log[M(0x13b)](v['message'])):c[M(0x143)]();return;}if(b['verify']){const w=await this['fsi'][M(0x134)]();if(!w?.[M(0x176)]){const x={'hostname':hostname,'path':M(0x16f),'headers':{'x-auth-token':f?.[M(0x172)]?.[M(0x15b)]},'data':{}},{statusCode:y,data:z}=await HTTPS[M(0x129)](x),A=JSON['parse'](z);y<0x12c?Log[M(0x12f)](y+':\x20'+A[M(0x15e)]):(Log[M(0x177)](M(0x156)+A[M(0x15e)]),Log['warn'](M(0x14a)));}else Log[M(0x177)](M(0x173));return;}const i=b[M(0x152)]?b[M(0x152)]:await Actions[M(0x155)]('Email:');if(!validateEmail(i))throw'Invalid\x20email\x20address';const j=b[M(0x125)]?b['password']:await Actions[M(0x155)](M(0x13f),!![]),k=a77e['md'][M(0x141)][M(0x162)]();k[M(0x153)](j);const l=k['digest']()['toHex'](),m={'hostname':hostname,'path':M(0x14e),'data':{'email':i,'password':l,'hashed':!![]}};b[M(0x149)]&&Object['assign'](m,{'cert':d});c[M(0x148)](M(0x12d));const {data:n,statusCode:o}=await HTTPS[M(0x129)](m),p=JSON[M(0x167)](n);if(o>=0x190){c[M(0x143)]('\x0a');throw p[M(0x12f)];}if(p[M(0x15b)]){const B={'hostname':hostname,'path':M(0x15c),'headers':{'x-auth-token':p[M(0x15b)]},'data':{}};b[M(0x149)]&&Object[M(0x15f)](B,{'cert':d});const {data:C,statusCode:D}=await HTTPS['post'](B),{token:E}=JSON[M(0x167)](C);if(D===0x198)throw M(0x160)+hostname;const F={'token':p,'hash':E};await this[M(0x142)][M(0x124)](F);}else{c[M(0x143)]();throw p;}c[M(0x177)]();const q=await this[M(0x142)]['getPro']();!q[M(0x176)]&&(Log[M(0x171)](M(0x130)),Log[M(0x171)](M(0x135))),q[M(0x137)]['includes'](M(0x166))&&Log['majestic'](M(0x163));}catch(G){G[M(0x12e)]?Log[M(0x12f)](G[M(0x12e)]):(console[M(0x140)](''),console[M(0x140)](G)),Log['notice'](M(0x131)),process[M(0x170)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78p=a78d;(function(a,b){const m=a78d,c=a();while(!![]){try{const d=parseInt(m(0x1d6))/0x1+parseInt(m(0x1b0))/0x2+-parseInt(m(0x1c0))/0x3+-parseInt(m(0x1c3))/0x4+-parseInt(m(0x1ba))/0x5+parseInt(m(0x1bd))/0x6*(parseInt(m(0x1db))/0x7)+parseInt(m(0x1af))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xde847));function a78c(){const r=['logout','toString','Logging\x20out','8907904kQVwoX','1890164OPPVUt','authToken','cacert','cert','/api/logoutAll','failure','(((.+)+)+)+$','maka\x20logout','localhost','search','3876235teVMNS','withSpinner','assign','30zEqNuT','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','constructor','2125998KOBQgm','MAKA_DEV','You\x20may\x20not\x20be\x20logged\x20in...','1823984dUVvlg','exit','https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','get','setGlobalConfig','apply','notice','fsi','env','create','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','token','statusMessage','Using\x20CA\x20Cert\x20','isFile','www.maka-cli.com','success','error','https://','547045vqDjZU','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','Preflight\x20Check','post','True','344015Auhfqv'];a78c=function(){return r;};return a78c();}const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a78d;if(c){const e=c[n(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const o=a78d;return a78a[o(0x1ad)]()[o(0x1b9)](o(0x1b6))[o(0x1ad)]()[o(0x1bf)](a78a)['search'](o(0x1b6));});function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a78d(a,b);}a78a();import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process[a78p(0x1cb)][a78p(0x1c1)]===a78p(0x1da)?a78p(0x1b8):a78p(0x1d2);Command[a78p(0x1cc)]({'name':a78p(0x1ac),'validOpts':['cacert'],'usage':a78p(0x1b7),'maxArgLength':0x2,'shortDesc':'Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','disableAuthCheck':!![],'examples':[a78p(0x1b7)]},async function(a,b){const q=a78p,c=Log[q(0x1bb)]();try{let d='';b[q(0x1b2)]&&(this[q(0x1ca)][q(0x1d1)](b[q(0x1b2)])?(d=b[q(0x1b2)],Log['notice'](q(0x1d0)+d)):Log[q(0x1d4)](q(0x1d7)+d));const f=await this[q(0x1ca)]['getGlobalConfig']();if(f[q(0x1b3)]){if(this[q(0x1ca)][q(0x1d1)](f['cert']))d=f[q(0x1b3)];else{c['failure']();throw Log[q(0x1d4)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+d);}}Log['header']('Securing\x20connection\x20to\x20https://'+hostname);const g={'url':q(0x1d5)+hostname+'/api/v1/status'};b['cacert']&&Object['assign'](g,{'cert':d});c['start'](q(0x1d8));const {statusCode:h}=await HTTPS[q(0x1c6)](g);if(h===0x198){c['failure']();throw q(0x1be);}c[q(0x1d3)]();if(h!==0xc8){c[q(0x1b5)]();throw q(0x1c5);}if(!f?.[q(0x1ce)]?.[q(0x1b1)])throw Log[q(0x1d4)](q(0x1cd));c['start'](q(0x1ae));const i={'hostname':hostname,'path':q(0x1b4),'data':{},'headers':{'x-auth-token':f[q(0x1ce)][q(0x1b1)]}};b['cacert']&&Object[q(0x1bc)](i,{'cert':d});const {statusCode:j,statusMessage:k}=await HTTPS[q(0x1d9)](i);if(j>=0x190)throw k;this[q(0x1ca)][q(0x1c7)]({'token':{'authToken':'','userId':'','when':''},'hash':''}),c[q(0x1d3)]();}catch(l){c[q(0x1b5)]('\x0a'),l&&(l[q(0x1cf)]?Log[q(0x1d4)](l[q(0x1cf)]):(Log['error'](l),Log[q(0x1c9)](q(0x1c2)))),process[q(0x1c4)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79l=a79d;(function(a,b){const j=a79d,c=a();while(!![]){try{const d=-parseInt(j(0x14d))/0x1*(parseInt(j(0x158))/0x2)+parseInt(j(0x142))/0x3+-parseInt(j(0x144))/0x4+-parseInt(j(0x146))/0x5+-parseInt(j(0x156))/0x6+parseInt(j(0x151))/0x7+parseInt(j(0x154))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x2e9d3));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 k=a79d;return a79a[k(0x14c)]()[k(0x147)](k(0x14b))[k(0x14c)]()[k(0x150)](a79a)[k(0x147)](k(0x14b));});a79a();function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x141;let f=c[d];return f;},a79d(a,b);}import a79e from'fs';import a79f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a79l(0x141)]({'name':a79l(0x149),'aliases':['l','log'],'usage':a79l(0x14a),'requiredOpts':[a79l(0x14f)],'mustBeInMakaProject':!![],'validOpts':['verbose'],'shortDesc':a79l(0x148),'examples':[a79l(0x145),a79l(0x153),a79l(0x155)]},function(a,b){const m=a79l;try{const c='pm2\x20logs',d=this[m(0x143)]['getAppConfigPath'](b[m(0x14f)]),f=a79f[m(0x14e)](d,m(0x157)),g=a79e['readFileSync'](f),h=JSON['parse'](g[m(0x14c)]());Object[m(0x159)](h,{'env':d}),SSH['sshSync'](c,h,{'tty':!![],'verbose':!![]});}catch(i){Log[m(0x152)](i);}});function a79c(){const n=['env','constructor','1425851cjKJzg','error','maka\x20logs\x20--env\x20staging','2806304Azafib','maka\x20l\x20-e\x20p','1576836xELhgf','ssh.json','134258ifhkZB','assign','create','1045641urupYx','fsi','521856wBZhcw','maka\x20logs\x20--env\x20dev','251555QThyee','search','View\x20the\x20PM2\x20logs','logs','maka\x20logs','(((.+)+)+)+$','toString','4qXnMQj','join'];a79c=function(){return n;};return a79c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a80c(){const j=['\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','search','7270040pWvaKN','292620GaboHZ','174260UMUylB','2257738KgDELQ','9YUAJkN','exit','(((.+)+)+)+$','567392NnkkJC','maka\x20run','toString','maka\x20create\x20Todo','18rvEmlO','2220184vbdJvK','5pNyBrz','8015096KEpyQs'];a80c=function(){return j;};return a80c();}const a80h=a80d;(function(a,b){const f=a80d,c=a();while(!![]){try{const d=parseInt(f(0x197))/0x1+-parseInt(f(0x19c))/0x2+-parseInt(f(0x1a2))/0x3+-parseInt(f(0x1a3))/0x4*(parseInt(f(0x19d))/0x5)+parseInt(f(0x19b))/0x6*(parseInt(f(0x1a4))/0x7)+parseInt(f(0x19e))/0x8*(parseInt(f(0x1a5))/0x9)+-parseInt(f(0x1a1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x88658));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 g=a80d;return a80a[g(0x199)]()[g(0x1a0)](g(0x196))[g(0x199)]()['constructor'](a80a)[g(0x1a0)](g(0x196));});a80a();function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x196;let f=c[d];return f;},a80d(a,b);}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':'maka\x20<command>\x20[<args>]\x20[<opts>]','disableAuthCheck':!![],'examples':['maka\x20--help','maka\x20install\x20meteor',a80h(0x19a),a80h(0x198)],'description':a80h(0x19f)},async function(a,b){const i=a80h;try{const c=a[0x0];return a['splice'](0x0,0x1),await this['processAndRunCommand'](c,a,b);}catch(d){process[i(0x1a6)](0x1);}});export default Maka;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a81i=a81d;(function(a,b){var f=a81d,c=a();while(!![]){try{var d=parseInt(f(0xd4))/0x1*(parseInt(f(0xcd))/0x2)+-parseInt(f(0xdf))/0x3*(parseInt(f(0xe0))/0x4)+-parseInt(f(0xdb))/0x5+-parseInt(f(0xda))/0x6*(parseInt(f(0xdc))/0x7)+parseInt(f(0xd8))/0x8+-parseInt(f(0xce))/0x9*(parseInt(f(0xe1))/0xa)+parseInt(f(0xdd))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xe895b));function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0xcd;var f=c[d];return f;},a81d(a,b);}var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a81d;if(c){var e=c[g(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var h=a81d;return a81a[h(0xd5)]()[h(0xde)](h(0xcf))[h(0xd5)]()['constructor'](a81a)[h(0xde)](h(0xcf));});a81a();import{Command}from'../command.js';function a81c(){var k=['14936576ofvFId','%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','24IybJbp','5057205FsESSI','2742033LLjdmS','25101714uWDGnf','search','9BhqugV','2462092GPVHYk','90iPvQEd','2868962wbnKZn','205974QNxyPO','(((.+)+)+)+$','apply','log','exit','Murrrrderrrrr','1FHJsjf','toString','maka\x20murder','create'];a81c=function(){return k;};return a81c();}Command[a81i(0xd7)]({'name':'murder','usage':a81i(0xd6),'maxArgLength':0x1,'shortDesc':a81i(0xd3),'validOpts':[]},async function(){var j=a81i;try{console[j(0xd1)](j(0xd9),'font-family:\x20monospace');}catch(a){console['error'](a),process[j(0xd2)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a82u=a82d;function a82c(){const w=['setGlobalConfig','search','status','217670rFPWTC','maka\x20patreon\x20--cacert\x20/path/to/cacert.pem','https://localhost:443/api/v1/patreon/link','unlink','https://localhost:443/api/v1/patreon/unlink','608cAUZhQ','44jnGrAz','You\x20are\x20SO\x20not\x20PRO\x20😭','authToken','withSpinner','notice','https://www.maka-cli.com/api/v1/patreon/link','&state=','apply','link','15896otzFrB','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','exit','(((.+)+)+)+$','189ddQxCF','create','includes','logout','info','get','If\x20you\x20are\x20a\x20sponsor\x20through\x20Patreon,\x20you\x20can\x20level\x20up\x20to\x20PRO!','isFile','364120UXgUVl','https://www.maka-cli.com/api/v1/patreon/status','2355745pqlnOH','parse','processAndRunCommand','4005348KyebBk','error','13dZmMij','get:whoami','Opening\x20Patreon\x20in\x20your\x20browser...','PRO\x20Features\x20Enabled\x20🤘','True','help','1RGBJQx','6poabuG','https://www.patreon.com/oauth2/authorize?response_type=code&client_id=','xKtLQ3M3ZzWReGTMgj0kEn73qtUKS5PBxzvANBfi43_rEoanXp0w_S5EYye1uAqP','MAKA_DEV','\x0a\x20\x20--status:\x20Check\x20if\x20you\x20are\x20a\x20patron,\x20and\x20update\x20your\x20account\x0a\x0a\x20\x20--link:\x20Link\x20your\x20Patreon\x20account\x20to\x20your\x20Maka\x20account\x0a\x0a\x20\x20--unlink:\x20Unlink\x20your\x20Patreon\x20account\x20from\x20your\x20Maka\x20account\x0a\x0a\x20\x20--cacert:\x20Path\x20to\x20a\x20CA\x20Cert\x20file\x20if\x20you\x20need\x20to\x20use\x20one\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20NOTE:\x20If\x20you\x20have\x20a\x20CA\x20Cert\x20configured\x20in\x20~/.meteor/.maka/global-config.json\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20maka\x20will\x20use\x20that\x20cert\x20by\x20default.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20To\x20set\x20a\x20CA\x20cert,\x20use\x20\x27maka\x20set:global-config\x20--cacert\x20/path/to/cacert.pem\x27\x0a\x20\x20','emailVerified','env','&redirect_uri=','roles','singleLicense','You\x20need\x20to\x20verify\x20your\x20email\x20before\x20you\x20can\x20link\x20your\x20account.','228PCuBkB','Check\x20your\x20email\x20for\x20the\x20verification\x20link\x20or\x20run\x20`maka\x20login\x20--verify`\x20to\x20resend\x20the\x20verification\x20email','https://localhost:443/api/v1/patreon/status','fsi','You\x20need\x20to\x20be\x20logged\x20in\x20to\x20use\x20this\x20command!','warn','token','1146650ejIVir','cacert','maka\x20patreon\x20--link','getPro','toString','majestic'];a82c=function(){return w;};return a82c();}(function(a,b){const r=a82d,c=a();while(!![]){try{const d=parseInt(r(0xdd))/0x1*(parseInt(r(0xd0))/0x2)+-parseInt(r(0xa5))/0x3*(parseInt(r(0xc4))/0x4)+parseInt(r(0xac))/0x5+-parseInt(r(0xde))/0x6*(-parseInt(r(0xd2))/0x7)+-parseInt(r(0xba))/0x8*(-parseInt(r(0xc8))/0x9)+-parseInt(r(0xb5))/0xa*(-parseInt(r(0xbb))/0xb)+-parseInt(r(0xd5))/0xc*(parseInt(r(0xd7))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x31052));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a82d;if(c){const e=c[s(0xc2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const t=a82d;return a82a[t(0xb0)]()[t(0xb3)](t(0xc7))['toString']()['constructor'](a82a)['search']('(((.+)+)+)+$');});function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x9e;let f=c[d];return f;},a82d(a,b);}a82a();import{Command}from'../command.js';import a82e from'./maka.cmd.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';import a82f from'open';const clientId=a82u(0xe0),redirectUri=process['env'][a82u(0xe1)]===a82u(0xdb)?a82u(0xb7):a82u(0xc0),patreonUnlinkUri=process[a82u(0xa0)][a82u(0xe1)]===a82u(0xdb)?a82u(0xb9):'https://www.maka-cli.com/api/v1/patreon/unlink',patreonStatusUri=process['env'][a82u(0xe1)]===a82u(0xdb)?a82u(0xa7):a82u(0xd1);Command[a82u(0xc9)]({'name':'patreon','validOpts':[a82u(0xb4),a82u(0xc3),a82u(0xb8),a82u(0xdc),a82u(0xad)],'usage':'maka\x20patreon','shortDesc':a82u(0xce),'description':a82u(0x9e),'examples':['maka\x20patreon\x20--status',a82u(0xae),'maka\x20patreon\x20--unlink',a82u(0xb6)],'maxOptsLength':0x3,'minOptsLength':0x1,'mustBeLoggedIn':!![]},async function(a,b){const v=a82u;try{const c=await a82e[v(0xd4)](v(0xd8),[],{'silent':!![]});let d=await this[v(0xa8)]['getPro'](),e='';b[v(0xad)]&&(this[v(0xa8)][v(0xcf)](b[v(0xad)])?(e=b[v(0xad)],Log['notice']('Using\x20CA\x20Cert\x20'+e)):(Log[v(0xd6)](v(0xc5)+b[v(0xad)]),process[v(0xc6)](0x1)));const f=c['token'][v(0xbd)];if(c[v(0xab)][v(0xbd)]){!d[v(0x9f)]&&(Log[v(0xaa)](v(0xa4)),Log[v(0xaa)](v(0xa6)),process[v(0xc6)](0x1));if(b[v(0xc3)]){Log[v(0xbf)](v(0xd9));const g=v(0xdf)+clientId+v(0xa1)+encodeURIComponent(redirectUri)+v(0xc1)+f;await a82f(g);}if(b[v(0xb8)]){const {data:h,statusCode:i}=await HTTPS[v(0xcd)]({'url':patreonUnlinkUri,'headers':{'x-auth-token':c[v(0xab)][v(0xbd)]},'cert':e}),{message:j}=JSON[v(0xd3)](h);i===0xc8?Log[v(0xbf)](j):Log[v(0xd6)](j),Log[v(0xcc)]('Logging\x20you\x20out\x20for\x20security\x20reasons...'),await a82e[v(0xd4)](v(0xcb));}if(!b['link']&&!b[v(0xb8)]){const k=Log[v(0xbe)]('Fetching\x20Patreon\x20status'),{data:l,statusCode:m}=await HTTPS['get']({'url':patreonStatusUri,'headers':{'x-auth-token':c['token']['authToken']}}),{message:n}=JSON[v(0xd3)](l);m!==0xc8&&(Log[v(0xd6)](n),k['failure'](n),process['exit'](0x1));const {hasPatreonCredentials:o,token:p}=JSON[v(0xd3)](l);if(o&&p)await this[v(0xa8)][v(0xb2)]({'hash':p}),d=await this[v(0xa8)][v(0xaf)](),d[v(0xa2)][v(0xca)](v(0xa3))?(Log[v(0xb1)](v(0xda)),Log['majestic']('Thank\x20you\x20for\x20your\x20support!!')):Log[v(0xbf)](v(0xbc));else!o&&Log['notice']('To\x20link\x20your\x20Patreon\x20account,\x20run\x20`maka\x20patreon\x20--link`');}}else Log['notice'](v(0xa9)),Log['notice']('Run\x20`maka\x20login`\x20to\x20login\x20or\x20`maka\x20register`\x20to\x20create\x20an\x20account');}catch(q){Log[v(0xd6)]('Failed\x20to\x20authenticate\x20with\x20Patreon:\x20'+q),process[v(0xc6)](0x1);}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const a83y=a83d;(function(a,b){const v=a83d,c=a();while(!![]){try{const d=parseInt(v(0xb5))/0x1+-parseInt(v(0xbd))/0x2+-parseInt(v(0xbe))/0x3+-parseInt(v(0xa7))/0x4*(-parseInt(v(0x94))/0x5)+-parseInt(v(0x81))/0x6*(parseInt(v(0x77))/0x7)+-parseInt(v(0xb4))/0x8*(parseInt(v(0x8e))/0x9)+-parseInt(v(0x80))/0xa*(-parseInt(v(0x99))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xce8ff));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a83d;if(c){const e=c[w(0x78)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const x=a83d;return a83a[x(0x95)]()[x(0x87)]('(((.+)+)+)+$')[x(0x95)]()[x(0x74)](a83a)[x(0x87)]('(((.+)+)+)+$');});a83a();import a83e from'fs';import a83f 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':a83y(0xa1),'aliases':[],'usage':a83y(0xac),'validOpts':[{'name':'url','description':'URL\x20of\x20the\x20Meteor\x20app'},{'name':a83y(0xa6),'description':'Port\x20of\x20the\x20Meteor\x20app'},{'name':a83y(0x89),'description':'Number\x20of\x20concurrent\x20users','regex':/^\d+$/},{'name':a83y(0x75),'description':'Duration\x20of\x20the\x20test\x20in\x20seconds','regex':/^\d+$/},{'name':'perEndpoint','description':a83y(0xa0),'boolFlag':!![]}],'mustBeInMakaProject':!![],'shortDesc':'Profile\x20a\x20Meteor\x20app\x20for\x20performance','description':'Run\x20a\x20performance\x20test\x20on\x20a\x20Meteor\x20app\x20with\x20specified\x20concurrent\x20users\x20and\x20duration','examples':['maka\x20profile\x20--url\x20http://localhost:3000\x20--users\x201000\x20--duration\x2060']};function extractRoutePaths(a){const z=a83y,b=/<Route path="([^"]+)"/g,c=[];let d;while((d=b[z(0xab)](a))!==null){d[0x1]!=='*'&&c[z(0x8f)](d[0x1]);}return c;}function createArtilleryConfig(a,b,c,d,e){const A=a83y,f=d[A(0xbc)](h=>A(0x96)+h+A(0xb7))[A(0xae)](''),g=e?A(0x97):'';return'\x0aconfig:\x0a'+g+'\x20\x20target:\x20\x27'+a+A(0xa5)+c+A(0xa8)+(b/c)[A(0x90)](0x0)+'\x0a\x0ascenarios:\x0a\x20\x20-\x20flow:'+f+'\x0a';}function formatPerformanceResults(a){const B=a83y,b=a[B(0x85)]('\x0a'),c=b[B(0xbb)](e=>e['startsWith'](B(0xa3))||e['includes']('vusers'));if(c[B(0x86)]===0x0)return B(0x7c);const d=c[B(0xbc)](e=>e[B(0x91)]())['join']('\x0a');return B(0xa9)+d+B(0xaa);}function a83c(){const G=['Execution\x20error:\x20','users','exit','Error\x20reading\x20results\x20file:\x20','notice','Enter\x20the\x20port\x20of\x20the\x20Meteor\x20app\x20[3000]:','9OGrVaO','push','toFixed','trim','ask','error','489805Jylafn','toString','\x0a\x20\x20\x20\x20-\x20get:\x0a\x20\x20\x20\x20\x20\x20\x20\x20url:\x20\x22','\x20\x20plugins:\x0a\x20\x20\x20\x20metrics-by-endpoint:\x20{}\x0a','artilleryConfig.yml','7877771RSourp','success','withSpinner','results_','Test\x20results\x20saved\x20to\x20','failure','profile-tests','Profile\x20each\x20endpoint\x20separately','profile','existsSync','http','/imports/startup/lib','\x27\x0a\x20\x20phases:\x0a\x20\x20\x20\x20-\x20duration:\x20','port','48xLvbIP','\x0a\x20\x20\x20\x20\x20\x20arrivalRate:\x20','\x0aPerformance\x20Test\x20Summary:\x0a--------------------------------------\x0a','\x0a--------------------------------------','exec','maka\x20profile','perEndpoint','join','routes.','npx\x20artillery\x20run\x20','createFile','\x20>\x20','mkdirSync','9550536YgogoG','830127IHpBUq','3000','\x22\x0a\x20\x20','utf8','results','readFileSync','filter','map','1856832Hpfsin','1165917OLxHNJ','Enter\x20the\x20duration\x20for\x20the\x20test\x20in\x20seconds:','start','constructor','duration','pathFromApp','14FNvguu','apply','engines','fsi','getMakaProjectConfig','No\x20relevant\x20metrics\x20found\x20in\x20the\x20summary\x20report.','http://0.0.0.0:','url','ssr','40aDDzpI','4540056GXyVCx','true','yyyy-MM-dd_HH-mm-ss','/imports/startup/client','split','length','search'];a83c=function(){return G;};return a83c();}function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x74;let f=c[d];return f;},a83d(a,b);}async function runPerformanceTest(a,b){const C=a83y,c=a83f['dirname'](b);!a83e[C(0xa2)](c)&&a83e[C(0xb3)](c,{'recursive':!![]});const d=Log[C(0x9b)]();return new Promise((e,f)=>{const D=C;d[D(0xc0)]('Running\x20performance\x20test'),exec(D(0xb0)+a+D(0xb2)+b,async(g,h,i)=>{const E=D;if(g){d[E(0x9e)](),f(E(0x88)+g);return;}if(i){d[E(0x9e)](),f('Error:\x20'+i);return;}try{const j=a83e[E(0xba)](b,E(0xb8)),k=formatPerformanceResults(j);Log[E(0x8c)](k),Log[E(0x8c)](E(0x9d)+b);}catch(l){Log[E(0x93)](E(0x8b)+l);}d[E(0x9a)](),e();});});}Command['create'](profileCommandOptions,async function(a,b){const F=a83y;try{let c=b[F(0xa6)];!c&&!b['url']&&(c=await Actions['ask'](F(0x8d))||F(0xb6));b[F(0x7e)]=b[F(0x7e)]?b['url']:F(0x7d)+c;if(!b['duration']){const s=await Actions[F(0x92)](F(0xbf));b['duration']=parseInt(s);if(isNaN(b[F(0x75)]))throw new Error('Invalid\x20duration.\x20Please\x20enter\x20a\x20numeric\x20value.');}if(!b[F(0x89)]){const t=await Actions[F(0x92)]('Enter\x20the\x20number\x20of\x20users\x20(arrival\x20rate\x20per\x20second):');b['users']=parseInt(t);if(isNaN(b[F(0x89)]))throw new Error('Invalid\x20number\x20of\x20users.\x20Please\x20enter\x20a\x20numeric\x20value.');}const d=this[F(0x7a)]['findProjectDirectory'](),f=this[F(0x7a)][F(0x7b)](),g=f[F(0x79)][F(0x7f)]===F(0x82),h=f[F(0x79)]['js'],i=g?F(0xa4):F(0x84),j=this[F(0x7a)][F(0x76)]({'pathParts':[i,'',F(0xaf)+h]}),k=a83e[F(0xba)](j,F(0xb8)),l=extractRoutePaths(k),m=b[F(0xad)]||![],n=createArtilleryConfig(b['url'],b[F(0x89)],b['duration'],l,m),o=format(new Date(),F(0x83)),p=a83f[F(0xae)](d,F(0x9f),F(0xb9)),q=a83f['join'](d,'profile-tests',F(0x98)),r=a83f[F(0xae)](p,F(0x9c)+o+'.txt');await this[F(0x7a)][F(0xb1)]({'filePath':q,'data':n,'opts':{'force':!![]}}),await runPerformanceTest(q,r);}catch(u){Log[F(0x93)](u),process[F(0x8a)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a84z=a84d;(function(a,b){const w=a84d,c=a();while(!![]){try{const d=parseInt(w(0x1e7))/0x1+parseInt(w(0x211))/0x2+-parseInt(w(0x1df))/0x3*(-parseInt(w(0x1f3))/0x4)+parseInt(w(0x1e5))/0x5+parseInt(w(0x1d0))/0x6+parseInt(w(0x20a))/0x7*(-parseInt(w(0x1d3))/0x8)+-parseInt(w(0x1e6))/0x9*(parseInt(w(0x1f8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0xbdafd));const a84b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a84d;if(c){const e=c[x(0x204)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){const y=a84d;return a84a[y(0x1d5)]()['search']('(((.+)+)+)+$')[y(0x1d5)]()[y(0x1dd)](a84a)[y(0x1fb)](y(0x1ce));});a84a();import a84e from'fs';import a84f from'path';import a84g 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 a84h from'../generators/maka.gen.js';function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a84d(a,b);}Command[a84z(0x20f)]({'name':a84z(0x20e),'usage':a84z(0x1fe),'mustBeInMakaProject':!![],'validOpts':[a84z(0x1d8),a84z(0x20c),a84z(0x1ea),a84z(0x1fa)],'maxArgLength':0x1,'shortDesc':a84z(0x210),'description':a84z(0x1dc),'examples':[a84z(0x1fe),'maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000',a84z(0x200)]},async function(a,b){const A=a84z,c=this['fsi']['getMakaProjectConfig'](),d='development',e=this[A(0x1da)]['getAppConfigPath'](d),f=this[A(0x1da)][A(0x1f9)]({'configPath':e}),g=b[A(0x20c)]?Number(b['targetPort']):0xbb8,h=b['listenPort']?Number(b[A(0x1ea)]):0xd73,i=b[A(0x1fa)]?b['targetHost']:A(0x1f7),j=a84f[A(0x203)](f,c['appName']+A(0x1fd)),k=a84f[A(0x203)](f,c[A(0x1e4)]+A(0x1d7));(!this[A(0x1da)][A(0x1d1)](j)||!this['fsi'][A(0x1d1)](k))&&(await a84h['processAndRunGenerator'](A(0x1d4),[],{'env':d}),SSL[A(0x213)]({'keyName':c[A(0x1e4)]+'.key','csrName':c[A(0x1e4)]+A(0x1f2),'cwd':f,'useConfig':!![]}),this[A(0x1da)]['isFile'](a84f[A(0x203)](f,c[A(0x1e4)]+A(0x1f2)))&&Log[A(0x1cf)](A(0x205)+a84f['join'](f,c['appName']+A(0x1f2))),SSL[A(0x212)]({'keyName':c['appName']+A(0x1fd),'crtName':c[A(0x1e4)]+A(0x1d7),'cwd':f,'useConfig':!![]}),this[A(0x1da)][A(0x1d1)](a84f[A(0x203)](f,c[A(0x1e4)]+A(0x1d7)))&&Log[A(0x1cf)](A(0x1ef)+a84f[A(0x203)](f,c[A(0x1e4)]+'.crt')),Log[A(0x1cf)](A(0x1e3)+j));if(g===h){Log[A(0x209)](A(0x1fc));throw new UsageError();}const l={'ssl':{'key':a84e[A(0x1de)](j,A(0x202)),'cert':a84e[A(0x1de)](k,A(0x202))},'target':{'host':i,'port':Number(g)},'ws':!![],'xfwd':!![]},m=a84g[A(0x1f4)](l);m['on']('error',(o,p,q)=>{const B=A;'writeHead'in q&&(Log[B(0x209)]('Proxy\x20error:\x20'+o[B(0x208)]),!q['headersSent']&&(q['writeHead'](0x1f4,{'content-type':B(0x1e1)}),q['end']('Internal\x20server\x20error.')));}),m['on'](A(0x1e0),(o,p)=>{const C=A,q=new Date()['toISOString'](),r=p[C(0x1ec)],s=p[C(0x1e9)],t=p[C(0x214)][C(0x1d2)],u=o['statusCode'],v=o[C(0x1e2)];Log['warn']('['+q+']\x20=>\x20'+r+'\x20'+s+'\x20from\x20'+t+C(0x1d6)+u+'\x20'+v);}),m['on'](A(0x1ee),o=>{const D=A,p=new Date()['toISOString'](),q=o[D(0x1ec)],r=o['path'],s=o[D(0x201)]('host');Log[D(0x1cf)]('['+p+D(0x1f1)+q+D(0x1f5)+r+D(0x206)+s);}),m['on']('proxyReqWs',(o,p)=>{const E=A,q=new Date()[E(0x1db)](),r=p['method'],s=p[E(0x1e9)],t=p[E(0x214)][E(0x1d2)];Log[E(0x20b)]('['+q+']\x20WS\x20'+r+'\x20'+s+'\x20from\x20'+t+E(0x1eb));}),m['on']('open',()=>{const F=A,o=new Date()['toISOString']();Log['success']('['+o+F(0x207));}),m['on'](A(0x1d9),()=>{const G=A,o=new Date()[G(0x1db)]();Log['error']('['+o+G(0x1e8));}),m['listen'](Number(h)),Log['bright']('=>\x20SSL\x20Proxy\x20forwarding\x20'+h+A(0x1cd)+g);const n=0x7d0;process['on']('SIGINT',()=>{const H=A,o=Log[H(0x1f6)]();o[H(0x1f0)](H(0x1ff));const p=setTimeout(()=>{const I=H;o[I(0x20b)](),process[I(0x20d)](0x1);},n);m[H(0x1d9)](()=>{const J=H;clearTimeout(p),Log[J(0x1cf)](J(0x1ed)),process['exit'](0x0);});});});function a84c(){const K=['proxyReq','SSC\x20file\x20created:\x20','start',']\x20<=\x20Sending\x20','.csr','1302684qYWUUN','createProxyServer','\x20request\x20to\x20','withSpinner','0.0.0.0','14340pBnEiw','mkKeysDir','targetHost','search','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','.key','maka\x20proxy','Shutting\x20down\x20proxy\x20server...','maka\x20proxy\x20--target-host\x20http://192.168.1.20','getHeader','utf8','join','apply','CSR\x20file\x20created:\x20','\x20on\x20',']\x20WebSocket\x20connection\x20established','message','error','42TBnNAv','success','targetPort','exit','proxy','create','Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','3037742vBcWsw','genSSC','genCSR','headers','\x20to\x20','(((.+)+)+)+$','info','3352908VnxEdy','isFile','host','306568hYiEak','sslconfig','toString','\x20responded\x20with\x20','.crt','help','close','fsi','toISOString','\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','constructor','readFileSync','12YnlqAr','proxyRes','text/plain','statusMessage','Key\x20file\x20created:\x20','appName','17875NHMLCY','21375MGGvNH','1028685DTQgBN',']\x20WebSocket\x20connection\x20closed','url','listenPort','\x20-\x20Starting\x20WebSocket\x20handshake','method','Proxy\x20server\x20closed.'];a84c=function(){return K;};return a84c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a85q=a85d;(function(a,b){const n=a85d,c=a();while(!![]){try{const d=-parseInt(n(0x169))/0x1*(-parseInt(n(0x153))/0x2)+parseInt(n(0x157))/0x3+-parseInt(n(0x161))/0x4+parseInt(n(0x162))/0x5*(-parseInt(n(0x151))/0x6)+parseInt(n(0x152))/0x7+-parseInt(n(0x14a))/0x8+parseInt(n(0x166))/0x9*(parseInt(n(0x148))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x9d0f0));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a85d;if(c){const e=c[o(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const p=a85d;return a85a[p(0x16d)]()['search']('(((.+)+)+)+$')[p(0x16d)]()['constructor'](a85a)['search']('(((.+)+)+)+$');});a85a();import a85e from'fs';import a85f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x148;let f=c[d];return f;},a85d(a,b);}Command['create']({'name':a85q(0x167),'aliases':['reconfig'],'validOpts':[''],'requiredOpts':['env'],'mustBeInMakaProject':!![],'usage':a85q(0x15d),'shortDesc':'Reconfigure\x20your\x20deployed\x20applications\x20w/o\x20rebuild\x20or\x20redploy','description':a85q(0x165),'examples':[a85q(0x164)]},async function(a,b){const r=a85q;try{const c=this[r(0x149)][r(0x14f)](b['env']),d=a85f['join'](c,r(0x168)),f=a85e[r(0x163)](d)[r(0x16d)](),g=JSON[r(0x16b)](f);Object['assign'](g,{'env':c}),Log['notice'](r(0x15e));const h=SSH[r(0x16c)](r(0x156),g);if(!h)throw r(0x14c);if(h)Log[r(0x159)]('Remote\x20host\x20connection\x20successful');const i=a85f[r(0x155)](c,r(0x158),'ses.json');if(a85e[r(0x15f)](i)){const l={'source':i,'dest':r(0x16a),'verbose':!![]};SSH[r(0x150)](l,{...g});}const j=a85f['join'](c,'pm2.config.js');SSH['scp']({'source':j,'dest':r(0x14e),'verbose':!![]},{...g});const k=a85f[r(0x155)](c,r(0x15c));SSH[r(0x150)]({'source':k,'dest':r(0x15a),'verbose':!![]},{...g}),SSH[r(0x154)]('pm2\x20delete\x20all',g),await SSH[r(0x15b)](r(0x14b),{...g},{'verbose':!![]});}catch(m){console[r(0x14d)](m),process['exit'](0x0);}});function a85c(){const s=['join','uname\x20-a','1363902IkVzom','_keys','success','~/settings.json','ssh','settings.json','maka\x20reconfig','Checking\x20remote\x20host\x20availability','existsSync','apply','2161588STxDoW','55895TPDPmD','readFileSync','maka\x20reconfig\x20--env\x20prod','\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','245529jVbUyv','reconfigure','ssh.json','291530vvXAnA','~/ses.json','parse','ping','toString','470DvAUxj','fsi','8248232rQpwfx','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','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','error','~/pm2.config.js','getAppConfigPath','scp','78kfxQqp','2321858YtAlUY','2INpYJO','sshSync'];a85c=function(){return s;};return a85c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a86s=a86d;(function(a,b){const o=a86d,c=a();while(!![]){try{const d=parseInt(o(0xa0))/0x1+parseInt(o(0x92))/0x2*(-parseInt(o(0xa7))/0x3)+parseInt(o(0x83))/0x4+-parseInt(o(0x84))/0x5*(parseInt(o(0xa8))/0x6)+parseInt(o(0x8b))/0x7*(-parseInt(o(0x94))/0x8)+parseInt(o(0x7e))/0x9+parseInt(o(0x80))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x55c7e));function a86c(){const u=['3xSlIEz','25986CEoHFw','/api/v1/register','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','error','success','apply','3049956lSGEKQ','Confirm\x20Password:\x20','5398660nXMVgD','(((.+)+)+)+$','toString','2573848BfOOyk','390rkpCUG','\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','isFile','search','parse','cacert','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','735ZBvOrE','getGlobalConfig','cert','failure','Registration\x20successful','processAndRunCommand','header','711082nKujWu','notice','49624hZHEVo','test','assign','/api/v1/status','exit','maka\x20register','https://','majestic','ask','help','get','fsi','173820ETgNfI','www.maka-cli.com','message','start','Bruv...\x20Too\x20many\x20requests,\x20register\x20slower...','True','Email:'];a86c=function(){return u;};return a86c();}const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a86d;if(c){const e=c[p(0x7d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const q=a86d;return a86a[q(0x82)]()[q(0x87)](q(0x81))[q(0x82)]()['constructor'](a86a)['search'](q(0x81));});a86a();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 a86e from'./maka.cmd.js';function validateEmail(a){const r=a86d,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(0x95)](String(a)['toLowerCase']());}const hostname=process['env']['MAKA_DEV']===a86s(0xa5)?'localhost':a86s(0xa1);function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x7d;let f=c[d];return f;},a86d(a,b);}Command['create']({'name':'register','validOpts':[a86s(0x9d),'cacert'],'usage':a86s(0x99),'maxArgLength':0x3,'disableAuthCheck':!![],'shortDesc':'Registers\x20a\x20new\x20user\x20on\x20www.maka-cli.com','examples':[a86s(0x99)]},async function(a,b){const t=a86s,c=Log['withSpinner']();try{let d='';b[t(0x89)]&&(this[t(0x9f)][t(0x86)](b[t(0x89)])?(d=b[t(0x89)],Log[t(0x93)]('Using\x20CA\x20Cert\x20'+d)):Log[t(0xab)](t(0x8a)+d));const e=await this['fsi'][t(0x8c)]();if(e[t(0x8d)]){if(this['fsi']['isFile'](e[t(0x8d)]))d=e[t(0x8d)];else{Log[t(0xab)](t(0xaa)+d);return;}}Log[t(0x91)]('Securing\x20connection\x20to\x20https://'+hostname);const f={'url':'https://'+hostname+t(0x97)};b[t(0x89)]&&Object['assign'](f,{'cert':d});c[t(0xa3)]('Preflight\x20Check');const {statusCode:g}=await HTTPS[t(0x9e)](f);if(g===0x198){c['failure']();throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}if(g!==0xc8){c[t(0x8e)]();throw t(0x9a)+hostname+t(0x85);}c[t(0xac)]();const h=await Actions['ask'](t(0xa6));!validateEmail(h)&&(Log[t(0xab)]('Invalid\x20email\x20address'),process['exit'](0x1));const i=await Actions[t(0x9c)]('Password:\x20',!![]),j=await Actions[t(0x9c)](t(0x7f),!![]);i!==j&&(Log[t(0xab)]('Passwords\x20do\x20not\x20match'),process['exit'](0x1));const k={'hostname':hostname,'path':t(0xa9),'data':{'email':h,'password':i}};b[t(0x89)]&&Object[t(0x96)](k,{'cert':d});c['start']('Registering');const {statusCode:l,data:m}=await HTTPS['post'](k);if(l!==0xc8){c[t(0x8e)]();throw JSON[t(0x88)](m);}c[t(0xac)](),Log[t(0x93)](t(0x8f)),a86e[t(0x90)]('login',[],{'email':h,'password':i});}catch(n){n==='Too\x20many\x20requests'&&Log[t(0x9b)](t(0xa4)),Log[t(0xab)](n[t(0xa2)]),process[t(0x98)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a87d,c=a();while(!![]){try{var d=parseInt(f(0xdd))/0x1+parseInt(f(0xd1))/0x2+-parseInt(f(0xd7))/0x3*(parseInt(f(0xd0))/0x4)+parseInt(f(0xd8))/0x5*(-parseInt(f(0xd3))/0x6)+-parseInt(f(0xd2))/0x7*(-parseInt(f(0xd6))/0x8)+-parseInt(f(0xda))/0x9+parseInt(f(0xd9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x19058));var a87b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a87d;if(c){var e=c[g(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){var h=a87d;return a87a[h(0xdb)]()[h(0xcf)](h(0xdc))[h(0xdb)]()[h(0xd4)](a87a)['search']('(((.+)+)+)+$');});function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0xcf;var f=c[d];return f;},a87d(a,b);}function a87c(){var i=['175948kgsgPu','7OYEAkl','10176eLRakm','constructor','apply','899592VdmXnG','1419AVEHyh','115JJRMbP','951410fJiZhw','691488AGSOul','toString','(((.+)+)+)+$','30135KBrtNc','search','908QRwSsv'];a87c=function(){return i;};return a87c();}a87a();import'./run.command.js';import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a88l=a88d;(function(a,b){const i=a88d,c=a();while(!![]){try{const d=-parseInt(i(0x195))/0x1*(parseInt(i(0x1a2))/0x2)+-parseInt(i(0x1a3))/0x3+-parseInt(i(0x1aa))/0x4*(-parseInt(i(0x192))/0x5)+-parseInt(i(0x199))/0x6*(parseInt(i(0x1a9))/0x7)+-parseInt(i(0x18f))/0x8+-parseInt(i(0x196))/0x9*(parseInt(i(0x19b))/0xa)+parseInt(i(0x197))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xe2068));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a88d;if(c){const e=c[j(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const k=a88d;return a88a[k(0x1a1)]()[k(0x1a6)](k(0x1ab))[k(0x1a1)]()[k(0x18d)](a88a)[k(0x1a6)](k(0x1ab));});a88a();import a88e from'./run.command.js';import{execSync}from'child_process';import a88f from'path';function a88c(){const n=['fsi','apply','search','\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','templateContent','5214559vbgAYJ','2243952xxQykI','(((.+)+)+)+$','constructor','\x20up\x20--remove-orphans','7416296xJPEgx','docker','getMakaProjectConfig','5FoDivC','PM2\x20Config\x20File:\x20','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','1nSUyFv','7893LcsnoO','50005989WGVFuk','join','6pJReUw','ensureAllDependenciesInstalled','12590DiHlfc','getAppConfigPath','docker-compose\x20--project-directory\x20','Docker\x20Compose\x20Path:\x20','appName','createFile','toString','2181154PEcBXY','943479TlBVFP'];a88c=function(){return n;};return a88c();}function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x18d;let f=c[d];return f;},a88d(a,b);}import a88g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';Command['create']({'name':a88l(0x190),'aliases':['d'],'shortDesc':a88l(0x194),'description':a88l(0x1a7),'usage':'maka\x20run\x20docker','isPro':![],'validOpts':['']},async function(){const m=a88l;try{const a=this[m(0x1a4)][m(0x191)]();await this[m(0x1a4)][m(0x19a)]();const b=this[m(0x1a4)][m(0x19c)](m(0x190)),c=a88f[m(0x198)](b,'docker-compose.yaml'),d=a88f['join'](b,'pm2.config.js');Log['notice'](m(0x193)+d),Log['notice'](m(0x19e)+c);if(!a88g['existsSync'](c)){const f={'app':a[m(0x19f)],'appFileCase':paramCase(a[m(0x19f)])},g=this[m(0x1a4)][m(0x1a8)]({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this[m(0x1a4)][m(0x1a0)]({'filePath':c,'data':g});}execSync(m(0x19d)+b+m(0x18e),{'stdio':'inherit'});}catch(h){process['exit'](0x1);}},a88e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0xd6;let f=c[d];return f;},a89d(a,b);}const a89t=a89d;(function(a,b){const p=a89d,c=a();while(!![]){try{const d=-parseInt(p(0xde))/0x1+-parseInt(p(0xff))/0x2*(-parseInt(p(0x110))/0x3)+-parseInt(p(0x10a))/0x4*(-parseInt(p(0xfc))/0x5)+-parseInt(p(0xfe))/0x6*(parseInt(p(0xf8))/0x7)+parseInt(p(0xfd))/0x8*(-parseInt(p(0x106))/0x9)+-parseInt(p(0xd8))/0xa*(parseInt(p(0x114))/0xb)+parseInt(p(0x10b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x20db7));function a89c(){const w=['getAppConfigPath','settings','239381JFDNCD','production','excludeArchs','Node\x20Env\x20Config:\x20','\x22web.browser.legacy\x22','extraPackages','join','apply','concat','warn','createFile','autoupdate','.meteor','(((.+)+)+)+$','--env','\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','env','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)','isDirectory','notice','slice','filter','openSync','open','split','config','1688358cyWlQO','invokeMeteorCommand','isFile','--production','965815JOwLSN','1620024LHXseF','6Kngunf','8394AFrPaR','push','toString','settings.json','exit','rawLogs','mobileServer','9GyHUVr','checkMeteorPackage','Run\x20your\x20Meteor\x20application','verbose','4TCOpcG','7537692nSZkOk','search','app','process.env','fsi','39BklHPC','inspect','info','boolean','640244dMSuuC','Meteor\x20Settings:\x20','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','10QTFYtt','allowIncompatibleUpdate','port','run'];a89c=function(){return w;};return a89c();}const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a89d;if(c){const e=c[q(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const r=a89d;return a89a[r(0x101)]()['search'](r(0xeb))['toString']()['constructor'](a89a)[r(0x10c)](r(0xeb));});a89a();import a89e from'path';import a89f from'fs';import a89g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const s=a89d;a89f[s(0xf4)](a,'r'),a89g[s(0xf7)]({'path':a});},Run=Command['create']({'name':a89t(0xdb),'mustBeInMakaProject':!![],'aliases':['r'],'shortDesc':a89t(0x108),'description':a89t(0xed),'validOpts':[a89t(0xee),a89t(0x104),a89t(0xda),a89t(0x111),a89t(0x105),a89t(0x109),a89t(0xd9),a89t(0xe3),'x',a89t(0xe0),a89t(0xdf),'ci',a89t(0xf5)]},async function(a,b){const u=a89t;try{await this[u(0x10f)][u(0x107)](u(0xe9),{'shouldInstall':!![]}),await this['fsi']['ensureAllDependenciesInstalled']();const c=a[0x0];if(c==='ios'){const l=this['fsi']['findProjectDirectory'](),m=a89e[u(0xe4)](l,u(0x10d),u(0xea),'local','cordova-build');this[u(0x10f)][u(0xf0)](m)&&await rimraf(m);}!b[u(0xe0)]&&!b['x']&&(a=a['concat'](['--exclude-archs',u(0xe2)]));if(b[u(0x105)]&&typeof b[u(0x105)]===u(0x113))throw u(0xef);const d=b['env']?b[u(0xee)]:'development',f=this[u(0x10f)][u(0xdc)](d),g=a89e[u(0xe4)](f,u(0x10e));let h=a89e['join'](f,u(0x102));b['settings']?h=b[u(0xdd)]:h=a89e[u(0xe4)](f,u(0x102));this[u(0x10f)][u(0xfa)](g)?(Log[u(0xf1)](u(0xe1)+g),syncSource(g)):(Log[u(0x112)](u(0xd7)+g),this['fsi'][u(0xe8)]({'filePath':g,'data':''}));this['fsi'][u(0xfa)](h)?(Log[u(0xf1)](u(0xd6)+h),a=a[u(0xe6)](['--settings',h])):Log[u(0xe7)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+h);const i=f[u(0xf6)](a89e['sep']),j=i[i['length']-0x1];j===u(0xdf)&&a[u(0x100)](u(0xfb));const k=process['argv'][u(0xf2)](0x2)[u(0xf3)](n=>n!==u(0xdb))[u(0xf3)](n=>n!==a[0x0]);k['forEach']((n,o)=>{const v=u;n===v(0xec)&&k['splice'](o,0x2),n==='-e'&&k['splice'](o,0x2);}),this[u(0x10f)][u(0xf9)](u(0xdb),a['concat'](k));}catch(n){Log['error'](n),process[u(0x103)](0x1);}});export default Run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a90d,c=a();while(!![]){try{var d=-parseInt(f(0x164))/0x1*(-parseInt(f(0x162))/0x2)+parseInt(f(0x16d))/0x3*(-parseInt(f(0x16a))/0x4)+-parseInt(f(0x171))/0x5*(-parseInt(f(0x167))/0x6)+parseInt(f(0x16e))/0x7*(parseInt(f(0x172))/0x8)+-parseInt(f(0x169))/0x9*(parseInt(f(0x166))/0xa)+parseInt(f(0x173))/0xb+-parseInt(f(0x165))/0xc*(parseInt(f(0x163))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x9e3c0));var a90b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a90d;if(c){var e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){var h=a90d;return a90a[h(0x16b)]()['search'](h(0x16c))[h(0x16b)]()[h(0x170)](a90a)[h(0x16f)]('(((.+)+)+)+$');});a90a();function a90c(){var i=['4eQSNCQ','toString','(((.+)+)+)+$','741684qXqYdr','133MyFTed','search','constructor','95KptykJ','182000fsfety','14163028mMGMUY','22IKBqLz','377iwXGBD','40639uqdmtW','570252ftCKbD','7198430Uosfrb','260994OwqgxH','apply','9LWyNOf'];a90c=function(){return i;};return a90c();}function a90d(a,b){var c=a90c();return a90d=function(d,e){d=d-0x162;var f=c[d];return f;},a90d(a,b);}import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a91k=a91d;(function(a,b){const h=a91d,c=a();while(!![]){try{const d=-parseInt(h(0x161))/0x1*(parseInt(h(0x15e))/0x2)+parseInt(h(0x14b))/0x3*(-parseInt(h(0x163))/0x4)+parseInt(h(0x15b))/0x5+parseInt(h(0x15d))/0x6+-parseInt(h(0x145))/0x7+parseInt(h(0x143))/0x8*(-parseInt(h(0x14f))/0x9)+-parseInt(h(0x154))/0xa*(-parseInt(h(0x140))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0xbe87c));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a91d;if(c){const e=c[i(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const j=a91d;return a91a[j(0x153)]()['search'](j(0x164))[j(0x153)]()['constructor'](a91a)['search'](j(0x164));});function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x13e;let f=c[d];return f;},a91d(a,b);}function a91c(){const m=['7367815yhNqKX','apply','workspace','setGlobalConfig','Could\x20not\x20find\x20directory','exit','247899jvDqoO','success','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','light','18bOfyys','boolean','cacert','Set\x20workspace:\x20','toString','26630nPOQRW','Set\x20global\x20Maka-CLI\x20settings','pallet','maka\x20set:global-config\x20--cacert\x20<path>','One\x20or\x20the\x20other\x20buddy','help','fsi','4195630rPursS','dark','4298664okbaQr','24DbLOCj','openai','Set\x20allowInsecure:\x20','127070vEqXQu','Set\x20CA\x20Cert\x20Path:\x20','56IxHiRP','(((.+)+)+)+$','maka\x20set:gc\x20--insecure\x20<path>','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','allowInsecure','maka\x20set:global-config','16577pGxvUH','Set\x20OpenAI\x20Key:\x20','error','4216208IrbAym','resolve'];a91c=function(){return m;};return a91c();}a91a();import a91e from'path';import a91f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'global-config','usage':a91k(0x13f),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a91k(0x151),'boolFlag':![]},{'name':a91k(0x13e),'boolFlag':!![]},{'name':'disallowInsecure','boolFlag':!![]},{'name':a91k(0x147),'boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a91k(0x159),'boolFlag':!![]},{'name':a91k(0x156),'values':[a91k(0x14e),a91k(0x15c)]}],'shortDesc':a91k(0x155),'description':a91k(0x14d),'examples':[a91k(0x157),a91k(0x165),'maka\x20set:gc\x20--workspace\x20<path>']},async function(a,b){const l=a91k;try{if(b[l(0x151)]){if(this['fsi']['isFile'](b[l(0x151)]))await this[l(0x15a)][l(0x148)]({'cert':b['cacert']}),Log[l(0x14c)](l(0x162)+b[l(0x151)]);else{const c=typeof b[l(0x151)]===l(0x150)?l(0x166):'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+b[l(0x151)];throw Log[l(0x142)](c);}}if(b[l(0x147)]){const d=this['fsi']['isDirectory'](b[l(0x147)]);if(d)await this[l(0x15a)][l(0x148)]({'workspace':a91e[l(0x144)](b[l(0x147)])}),Log[l(0x14c)](l(0x152)+a91e[l(0x144)](b['workspace']));else throw Log[l(0x142)](l(0x149));}b[l(0x15f)]&&(await this[l(0x15a)][l(0x148)]({'openai':b[l(0x15f)]}),Log['success'](l(0x141)+b['openai']));b[l(0x156)]&&(await this['fsi'][l(0x148)]({'pallet':b[l(0x156)]}),Log[l(0x14c)]('Set\x20color\x20pallet\x20to:\x20'+b['pallet']));if(b[l(0x13e)]){if(b[l(0x13e)]&&b['disallowInsecure'])throw Log['error'](l(0x158));let f=b[l(0x13e)];b['disallowInsecure']&&(f=![]),await this[l(0x15a)]['setGlobalConfig']({'allowInsecure':f}),Log['success'](l(0x160)+f);}process['exit'](0x0);}catch(g){console['error'](g),process[l(0x14a)](0x0);}},a91f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a92c(){var j=['1710940rmbDpV','maka\x20set:local-config','search','2243013iKxpnW','695587IngmCP','local-config','1092762QjZnkn','2020jutBDO','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','constructor','toString','Sorry,\x20not\x20implemented\x20yet','5295941tzgMsh','4305KaZsRJ','8ZvxnzD','(((.+)+)+)+$','79218JnYwek','notice'];a92c=function(){return j;};return a92c();}function a92d(a,b){var c=a92c();return a92d=function(d,e){d=d-0x182;var f=c[d];return f;},a92d(a,b);}var a92h=a92d;(function(a,b){var f=a92d,c=a();while(!![]){try{var d=parseInt(f(0x187))/0x1+parseInt(f(0x183))/0x2+-parseInt(f(0x186))/0x3+parseInt(f(0x18a))/0x4*(parseInt(f(0x190))/0x5)+-parseInt(f(0x193))/0x6+-parseInt(f(0x18f))/0x7*(parseInt(f(0x191))/0x8)+parseInt(f(0x189))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x90013));var a92b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){var g=a92d;return a92a[g(0x18d)]()[g(0x185)](g(0x192))[g(0x18d)]()[g(0x18c)](a92a)[g(0x185)](g(0x192));});a92a();import a92e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a92h(0x188),'usage':a92h(0x184),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a92h(0x18b)},async function(){var i=a92h;Log[i(0x182)](i(0x18e));},a92e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93i=a93d;(function(a,b){const f=a93d,c=a();while(!![]){try{const d=parseInt(f(0x1ef))/0x1*(parseInt(f(0x1eb))/0x2)+parseInt(f(0x1e1))/0x3*(parseInt(f(0x1ec))/0x4)+-parseInt(f(0x1f0))/0x5*(parseInt(f(0x1e2))/0x6)+parseInt(f(0x1e4))/0x7*(parseInt(f(0x1ea))/0x8)+-parseInt(f(0x1e6))/0x9*(parseInt(f(0x1db))/0xa)+parseInt(f(0x1de))/0xb+parseInt(f(0x1df))/0xc*(-parseInt(f(0x1da))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xc9ee6));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a93d;if(c){const e=c[g(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const h=a93d;return a93a[h(0x1e7)]()[h(0x1e0)](h(0x1e8))[h(0x1e7)]()[h(0x1ed)](a93a)[h(0x1e0)](h(0x1e8));});a93a();import{Command}from'../../command.js';const SetCommand=Command[a93i(0x1ee)]({'name':a93i(0x1e9),'usage':a93i(0x1dc),'shortDesc':a93i(0x1e5),'description':a93i(0x1dd),'validOpts':[]},async function(a,b){const j=a93i,c=a[0x0],d=this[j(0x1e3)](c);d&&this[j(0x1d9)](c,a,b);});function a93c(){const k=['apply','runSubCommand','41825537VwNCzr','103060EFJTBY','maka\x20set:<sub-command>','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','13730299nMGbHT','12iswwjx','search','15uDDuRS','672UakDkR','findSubCommand','217nFwmZu','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','153SdmlsL','toString','(((.+)+)+)+$','set','377896YkotPv','6CQmCQh','876100HWBpjy','constructor','create','155396SQnsaw','2420eVvcnX'];a93c=function(){return k;};return a93c();}function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a93d(a,b);}export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94m=a94d;(function(a,b){const j=a94d,c=a();while(!![]){try{const d=parseInt(j(0x168))/0x1*(-parseInt(j(0x16d))/0x2)+-parseInt(j(0x17f))/0x3*(parseInt(j(0x16b))/0x4)+-parseInt(j(0x17a))/0x5*(-parseInt(j(0x171))/0x6)+parseInt(j(0x170))/0x7+-parseInt(j(0x160))/0x8+parseInt(j(0x164))/0x9+-parseInt(j(0x17d))/0xa*(parseInt(j(0x167))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x1ac65));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a94d;if(c){const e=c[k(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const l=a94d;return a94a[l(0x179)]()[l(0x17b)](l(0x178))['toString']()[l(0x176)](a94a)[l(0x17b)](l(0x178));});a94a();import a94e from'fs';function a94c(){const o=['55cOvgAr','search','apply','543020abVfRB','verbose','3PnSaSS','390120FhGYuZ','length','exit','assign','1623330CMzJYN','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','11fzasPO','16vMDCex','fsi','maka\x20ssh\x20--env\x20dev','181652CkETzT','maka\x20ssh\x20--env\x20prod','24632eXAOqL','getAppConfigPath','readFileSync','822822ChfTtd','85794yZQpBv','maka\x20ssh\x20--env\x20staging','ssh.json','maka\x20ssh\x20<command>','create','constructor','env','(((.+)+)+)+$','toString'];a94c=function(){return o;};return a94c();}import a94f from'path';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x160;let f=c[d];return f;},a94d(a,b);}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a94m(0x175)]({'name':'ssh','usage':a94m(0x174),'mustBeInMakaProject':!![],'requiredOpts':[a94m(0x177)],'validOpts':[a94m(0x177),a94m(0x17e)],'shortDesc':a94m(0x166),'examples':[a94m(0x16a),a94m(0x172),a94m(0x16c),a94m(0x165),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22']},async function(a,b){const n=a94m;try{const c=this[n(0x169)][n(0x16e)](b[n(0x177)]);let d='';a[n(0x161)]>0x0&&(d=a[0x0]);const f=a94f['join'](c,n(0x173)),g=a94e[n(0x16f)](f)[n(0x179)](),h=JSON['parse'](g);Object[n(0x163)](h,{'env':c}),SSH['sshSync'](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b[n(0x17e)]});}catch(i){Log['error'](i),process[n(0x162)](0x1);}});
|