@maka/maka-cli 4.2.11 → 4.2.19
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/dist/command.js +1 -1
- package/dist/commands/_index.js +1 -1
- package/dist/commands/aws/_index.js +1 -1
- package/dist/commands/aws/aws.command.js +1 -1
- package/dist/commands/aws/ci.sub.cmd.js +1 -1
- package/dist/commands/aws/ckp.sub.cmd.js +1 -1
- package/dist/commands/aws/csg.sub.cmd.js +1 -1
- package/dist/commands/aws/di.sub.cmd.js +1 -1
- package/dist/commands/aws/dks.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.sub.cmd.js +1 -1
- package/dist/commands/aws/sth.sub.cmd.js +1 -1
- package/dist/commands/aws/ti.sub.cmd.js +1 -1
- package/dist/commands/build/_index.js +1 -1
- package/dist/commands/build/build.js +1 -1
- package/dist/commands/build/docker.sub.cmd.js +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/debug.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/game/_index.js +1 -1
- package/dist/commands/game/battleship.sub.cmd.js +1 -1
- package/dist/commands/game/play.command.js +1 -1
- package/dist/commands/game/pong.sub.cmd.js +1 -1
- package/dist/commands/game/snake.sub.cmd.js +1 -1
- package/dist/commands/game/tetris.sub.cmd.js +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/get/_index.js +1 -1
- package/dist/commands/get/get.command.js +1 -1
- package/dist/commands/get/global.sub.cmd.js +1 -1
- package/dist/commands/get/local.sub.cmd.js +1 -1
- package/dist/commands/get/whoami.sub.cmd.js +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/jsdoc.js +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logs.js +1 -1
- package/dist/commands/maka.cmd.js +1 -1
- package/dist/commands/murder.js +1 -1
- package/dist/commands/proxy.js +1 -1
- package/dist/commands/reconfig.js +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/generators/services/_index.js +1 -1
- package/dist/generators/services/openssl.js +1 -0
- package/dist/generators/services/translation.js +1 -1
- package/dist/maka.js +1 -1
- package/dist/templates/meteor/app/imports/startup/server/index.js.jsx +1 -0
- package/dist/templates/meteor/app/imports/startup/server/index.js.tsx +1 -0
- package/dist/templates/service/docker/Dockerfile +2 -2
- package/dist/templates/service/openssl/openssl.conf +22 -0
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a28y=a28d;(function(a,b){var v=a28d,c=a();while(!![]){try{var d=-parseInt(v(0x18f))/0x1+parseInt(v(0x17b))/0x2*(-parseInt(v(0x175))/0x3)+-parseInt(v(0x194))/0x4*(parseInt(v(0x191))/0x5)+parseInt(v(0x187))/0x6*(-parseInt(v(0x18d))/0x7)+-parseInt(v(0x19b))/0x8+-parseInt(v(0x196))/0x9*(parseInt(v(0x182))/0xa)+parseInt(v(0x185))/0xb*(parseInt(v(0x18c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a28c,0x1cace));var a28b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a28d;if(w(0x17f)!==w(0x17a)){if(c){var e=c[w(0x197)](b,arguments);return c=null,e;}}else{var h=d[w(0x197)](e,arguments);return f=null,h;}}:function(){};return a=![],d;};}()),a28a=a28b(this,function(){var x=a28d;return a28a[x(0x17d)]()[x(0x176)](x(0x19a))['toString']()[x(0x192)](a28a)[x(0x176)](x(0x19a));});a28a();function a28c(){var F=['fsi','1259433PjBXUz','apply','getProjectConfig','throw','(((.+)+)+)+$','1824264jtzXRV','ALxjD','DCEYV','IdnKb','WDgaU','ffHKC','129fFBPbe','search','oGuYf','then','exit','GKePe','7342ACUpwj','next','toString','OyKjq','FMINS','value','done','10enzNFO','tvQJw','log','22BVMoaU','iQxHe','6ihySwX','AgoBQ','Get\x20maka\x20configurations\x20in\x20the\x20local\x20.maka/config.json\x20file','maka\x20get:local-config','uEkbG','6180900EhYwmO','804902yLYXfk','nhDKZ','203461HTvnNB','__awaiter','342130fYcBAg','constructor','oEYER','4gKcFzY'];a28c=function(){return F;};return a28c();}var __awaiter=this&&this[a28y(0x190)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var z=a28d;'nfaMX'===z(0x188)?(d['error'](e),f[z(0x179)](0x0)):g(f);});}return new(c||(c=Promise))(function(f,g){var D=a28d;function h(k){var A=a28d;if(A(0x18e)==='cBUMd')try{i(j[A(0x199)](k));}catch(m){m(m);}else try{if(A(0x193)!=='vaNmy')j(d[A(0x17c)](k));else return c[A(0x17d)]()['search'](A(0x19a))[A(0x17d)]()[A(0x192)](d)[A(0x176)](A(0x19a));}catch(n){A(0x172)===A(0x18b)?h[A(0x181)]?i(j[A(0x180)]):k(l[A(0x180)])[A(0x178)](m,n):g(n);}}function i(k){var B=a28d;try{if(B(0x173)===B(0x171)){var n=g?function(){if(n){var u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else j(d[B(0x199)](k));}catch(m){B(0x170)!==B(0x183)?g(m):d(m[B(0x199)](f));}}function j(k){var C=a28d;k[C(0x181)]?f(k[C(0x180)]):e(k['value'])[C(0x178)](h,i);}j((d=d[D(0x197)](a,b||[]))[D(0x17c)]());});};import a28u from'./get.command.js';function a28d(a,b){var c=a28c();return a28d=function(d,e){d=d-0x170;var f=c[d];return f;},a28d(a,b);}import{Command}from'../../command.js';Command['create']({'name':'local-config','usage':a28y(0x18a),'mustBeInMakaProject':!![],'description':a28y(0x189)},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a28d;if('LgFoE'===E(0x174))return f instanceof g?h:new i(function(m){m(k);});else try{if(E(0x17e)!==E(0x186)){const d=yield this[E(0x195)][E(0x198)]();console[E(0x184)](d);}else c(d);}catch(g){E(0x177)==='oGuYf'?(console['error'](g),process['exit'](0x0)):c(d);}});},a28u);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a29d(a,b){const c=a29c();return a29d=function(d,e){d=d-
|
|
1
|
+
function a29d(a,b){const c=a29c();return a29d=function(d,e){d=d-0xaa;let f=c[d];return f;},a29d(a,b);}const a29D=a29d;(function(a,b){const w=a29d,c=a();while(!![]){try{const d=-parseInt(w(0xc5))/0x1*(-parseInt(w(0xd6))/0x2)+parseInt(w(0xd2))/0x3+parseInt(w(0xd4))/0x4+parseInt(w(0xb5))/0x5+-parseInt(w(0xcc))/0x6+parseInt(w(0xcf))/0x7*(parseInt(w(0xb8))/0x8)+-parseInt(w(0xae))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a29c,0xc598e));const a29b=(function(){let a=!![];return function(b,c){const x=a29d;if('OViYL'===x(0xbe)){const d=a?function(){const y=x;if(c){if(y(0xcb)!==y(0xbf)){const e=c[y(0xc7)](b,arguments);return c=null,e;}else d['error'](e),f['exit'](0x0);}}:function(){};return a=![],d;}else try{i(j[x(0xd3)](k));}catch(f){m(f);}};}()),a29a=a29b(this,function(){const z=a29d;return a29a[z(0xce)]()[z(0xb7)](z(0xac))['toString']()[z(0xc4)](a29a)['search'](z(0xac));});a29a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a29d;function h(k){const A=a29d;if(A(0xb4)===A(0xb4))try{j(d[A(0xd3)](k));}catch(l){if(A(0xd1)===A(0xc6)){if(l){const n=i[A(0xc7)](j,arguments);return k=null,n;}}else g(l);}else c(d);}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const B=a29d;if(B(0xb6)===B(0xad)){const m=i[B(0xbc)](j[B(0xc1)]);k[B(0xc8)](B(0xc9)+(m===null||m===void 0x0?void 0x0:m[B(0xaf)])),l[B(0xc8)](B(0xbb)+m[B(0xc0)]['userId']),n[B(0xc8)](B(0xcd)+o[B(0xc0)][B(0xb3)]),p[B(0xc8)](B(0xbd)+(m===null||m===void 0x0?void 0x0:m['roles']['join'](',\x20')));}else k[B(0xc2)]?f(k[B(0xd0)]):e(k[B(0xd0)])['then'](h,i);}j((d=d[C(0xc7)](a,b||[]))['next']());});};function a29c(){const F=['OViYL','avTCE','token','hash','done','ggXsH','constructor','3752YNlemM','pHNal','apply','notice','User\x20Email:\x20\x20\x20\x20\x20\x20\x20\x20\x20','whoami','HSRvp','1301790hWqgkZ','User\x20Access\x20Token:\x20\x20','toString','847UBqaSS','value','gihRX','2220105EeNExq','next','1965560pClgAw','error','422BuJNJa','DwToE','If\x20logged\x20in,\x20get\x20the\x20current\x20user\x27s\x20information','(((.+)+)+)+$','RjwVr','28235322kuUgMW','user','fsi','EdLrz','create','authToken','RErSt','4217425iVlJXr','qBGgd','search','85752xMvGsP','gsDEf','maka\x20get:whoami','User\x20ID:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','decode','Licenses:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'];a29c=function(){return F;};return a29c();}import a29u from'./get.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import a29v from'jsonwebtoken';Command[a29D(0xb2)]({'name':a29D(0xca),'usage':a29D(0xba),'description':a29D(0xab)},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a29d;if(E(0xaa)===E(0xb1))d(e['throw'](f));else try{const d=yield this[E(0xb0)]['getGlobalConfig']();if(d[E(0xc1)]){if(E(0xc3)===E(0xb9))c(d);else{const g=a29v['decode'](d[E(0xc1)]);Log['notice']('User\x20Email:\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(g===null||g===void 0x0?void 0x0:g['user'])),Log[E(0xc8)](E(0xbb)+d[E(0xc0)]['userId']),Log[E(0xc8)]('User\x20Access\x20Token:\x20\x20'+d[E(0xc0)][E(0xb3)]),Log[E(0xc8)]('Licenses:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+(g===null||g===void 0x0?void 0x0:g['roles']['join'](',\x20')));}}}catch(h){console[E(0xd5)](h),process['exit'](0x0);}});},a29u);
|
package/dist/commands/help.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a30x=a30d;(function(a,b){var u=a30d,c=a();while(!![]){try{var d=parseInt(u(0x77))/0x1*(-parseInt(u(0x76))/0x2)+-parseInt(u(0x8d))/0x3+-parseInt(u(0x83))/0x4*(-parseInt(u(0x81))/0x5)+parseInt(u(0x78))/0x6*(-parseInt(u(0x8b))/0x7)+-parseInt(u(0x88))/0x8+parseInt(u(0x84))/0x9*(-parseInt(u(0x8a))/0xa)+-parseInt(u(0x86))/0xb*(-parseInt(u(0x74))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a30c,0x3d330));var a30b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a30d;if(v(0x89)!==v(0x89))return f instanceof g?h:new i(function(m){m(k);});else{if(c){var e=c[v(0x75)](b,arguments);return c=null,e;}}}:function(){};return a=![],d;};}()),a30a=a30b(this,function(){var w=a30d;return a30a[w(0x7b)]()[w(0x82)](w(0x85))[w(0x7b)]()[w(0x7d)](a30a)[w(0x82)](w(0x85));});a30a();var __awaiter=this&&this[a30x(0x87)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){var B=a30d;function h(k){var y=a30d;try{j(d[y(0x7f)](k));}catch(l){g(l);}}function i(k){var z=a30d;try{j(d[z(0x79)](k));}catch(l){g(l);}}function j(k){var A=a30d;k[A(0x7a)]?f(k[A(0x8e)]):e(k[A(0x8e)])[A(0x7c)](h,i);}j((d=d['apply'](a,b||[]))[B(0x7f)]());});};function a30d(a,b){var c=a30c();return a30d=function(d,e){d=d-0x74;var f=c[d];return f;},a30d(a,b);}import{Command}from'../command.js';import{UsageError}from'../error.js';Command[a30x(0x7e)]({'name':a30x(0x80),'description':a30x(0x8c),'aliases':['h']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){throw new UsageError();});});function a30c(){var C=['11568BRtYEe','apply','1528KNGjLm','318AfPFtb','33186GWvgSw','throw','done','toString','then','constructor','create','next','help','335uEcDIN','search','11728luIptb','9wEeMWx','(((.+)+)+)+$','19580lxDElM','__awaiter','1497328qELlNA','JUNhO','3951350OCuCty','588rGevzR','Try,\x20maka\x20--help','1115505CdowfH','value'];a30c=function(){return C;};return a30c();}
|
package/dist/commands/install.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a31H=a31d;function
|
|
1
|
+
const a31H=a31d;function a31c(){const J=['/.local/bin','ejPkT','ObzNy','36GtBOhe','\x20installed.\x0a','success','printf\x20\x27%s\x5cn\x27\x20\x27#!/bin/sh\x27\x20\x27exec\x20\x22$HOME/.meteor/meteor\x22\x20\x22$@\x22\x27\x20>\x20$HOME/.local/bin/meteor\x20&&\x20chmod\x20+x\x20$HOME/.local/bin/meteor','notice','3693225PUoNzj','odlcC','35uoWStL','curl\x20','Allowing\x20insecure\x20curl\x20connections.','vcKQt','isFile','toString','maka\x20install','win32','--output','.tar.gz','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka.cert,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','obmTZ','maka\x20i','darwin','cacert','maka\x20install\x20meteor\x20-v\x202.3.6','exit','(((.+)+)+)+$','install','-xzf','platform','YxPDP','force','done','12883440KxXQLi','/meteor-bootstrap-','existsSync','printf\x20\x27test\x20-f\x20~/.profile\x20&&\x20.\x20~/.profile\x27\x20>>\x20~/.bashrc','--cacert','ViBCS','Network\x20error,\x20please\x20try\x20again.','\x20-s\x20https://install.meteor.com/','allowInsecure','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','zjRdK','Installing\x20meteor\x20','sync','constructor','string','tar','homedir','-rf','replace','SWADJ','apply','then','next','grep','https://static-meteor.netdna-ssl.com/packages-bootstrap/','search','version','meteor.tar.gz','Using\x20CA\x20Cert\x20','warn','592192mMEODF','Aborted','cert','Install\x20a\x20meteor.\x20\x22maka\x20install\x22\x20defaults\x20to\x20\x22maka\x20install\x20meteor\x22','maka\x20install\x20meteor','YVQUN','fsi','1073934zIfoeE','value','4kTrZkR','3218012jBHzkq','hOuJg','ignore','withSpinner','htmlO','debug','686796HmeTLU','mkdir\x20-p\x20','error','RELEASE=','YLJSH','join','TjEbH','throw','maka\x20install\x20meteor\x20--force','curl','829254CJekwo','os.linux.x86_64','getGlobalConfig'];a31c=function(){return J;};return a31c();}(function(a,b){const B=a31d,c=a();while(!![]){try{const d=parseInt(B(0x188))/0x1+-parseInt(B(0x181))/0x2*(-parseInt(B(0x17f))/0x3)+-parseInt(B(0x182))/0x4+parseInt(B(0x19d))/0x5+-parseInt(B(0x192))/0x6*(-parseInt(B(0x19f))/0x7)+-parseInt(B(0x178))/0x8*(parseInt(B(0x198))/0x9)+-parseInt(B(0x1b7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a31c,0x6c46b));const a31b=(function(){let a=!![];return function(b,c){const d=a?function(){const C=a31d;if('SWADJ'===C(0x16d)){if(c){if('IuBcA'!=='tabHU'){const e=c['apply'](b,arguments);return c=null,e;}else h['done']?i(j['value']):k(l[C(0x180)])['then'](m,n);}}else e=f[C(0x17a)],g=['--cacert',h];}:function(){};return a=![],d;};}()),a31a=a31b(this,function(){const D=a31d;return a31a[D(0x1a4)]()[D(0x173)](D(0x1b0))[D(0x1a4)]()['constructor'](a31a)['search'](D(0x1b0));});a31a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const E=a31d;if(E(0x17d)!==E(0x1c1))try{j(d[E(0x170)](k));}catch(l){g(l);}else c(d);}function i(k){const F=a31d;try{j(d[F(0x18f)](k));}catch(l){F(0x1bc)!==F(0x1bc)?c(d):g(l);}}function j(k){const G=a31d;if('ejPkT'!==G(0x196))return c[G(0x1a4)]()['search'](G(0x1b0))[G(0x1a4)]()[G(0x1c4)](d)[G(0x173)](G(0x1b0));else k[G(0x1b6)]?f(k[G(0x180)]):e(k[G(0x180)])[G(0x16f)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a31x from'os';import a31y from'path';import a31z from'fs';import a31A from'delete';import{execSync}from'child_process';import{SpawnAsync}from'../tools/spawn-async/spawn-async.class.js';function a31d(a,b){const c=a31c();return a31d=function(d,e){d=d-0x16c;let f=c[d];return f;},a31d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';const homeDir=a31x[a31H(0x1c7)]();Command['create']({'name':a31H(0x1b1),'aliases':['i'],'validOpts':['f',a31H(0x1b5),'v','version',a31H(0x187),a31H(0x1ad),'keepInstall'],'usage':a31H(0x1a5),'description':a31H(0x17b),'examples':[a31H(0x17c),a31H(0x190),a31H(0x1ae),'maka\x20install\x20meteor\x20--version\x201.12.1',a31H(0x1ab)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const I=a31d;try{let c=[],d='';if(b[I(0x1ad)]){if(this['fsi'][I(0x1a3)](b[I(0x1ad)]))Log[I(0x19c)](I(0x176)+b[I(0x1ad)]),d=b[I(0x1ad)],c=[I(0x1bb),d];else{if('pXpmv'==='mkgkq')c[I(0x177)](I(0x1a1)),d=['-k'];else throw I(0x1c0)+d;}}const f=yield this[I(0x17e)][I(0x194)]();if(f[I(0x17a)]){if(this['fsi'][I(0x1a3)](f[I(0x17a)])){if(I(0x18e)===I(0x197))throw'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+b;else d=f['cert'],c=[I(0x1bb),d];}else{if(I(0x186)!==I(0x186)){if(this[I(0x17e)][I(0x1a3)](i[I(0x1ad)]))q[I(0x19c)]('Using\x20CA\x20Cert\x20'+r['cacert']),s=t[I(0x1ad)],u=['--cacert',v];else throw I(0x1c0)+w;}else throw I(0x1a9)+d;}}f[I(0x1bf)]&&(Log[I(0x177)](I(0x1a1)),c=['-k']);let g=![];b['f']||b[I(0x1b5)]?g=!![]:g=yield Actions['confirm']('This\x20command\x20should\x20NOT\x20be\x20run\x20as\x20sudo\x20or\x20with\x20administrative\x20privileges.\x20\x20Are\x20you\x20ready\x20to\x20proceed?');if(!g){if(I(0x1a2)==='vcKQt')throw I(0x179);else throw I(0x179);}const h=process[I(0x1b3)]===I(0x1a6),i=process[I(0x1b3)]===I(0x1ac);let j=execSync(I(0x1a0)+c[I(0x18d)]('\x20')+I(0x1be))[I(0x1a4)](),k=yield this['fsi'][I(0x171)](j,I(0x18b));if(k['length']===0x0)throw I(0x1bd);let l=k[0x0]['replace'](/[^0-9.]/gi,'')[I(0x16c)](/\r?\n|\r/,'');if(typeof b['v']===I(0x1c5)||typeof b[I(0x174)]===I(0x1c5)){if(I(0x18c)===I(0x19e)){const s=d[I(0x16e)](e,arguments);return f=null,s;}else l=b['v']||b[I(0x174)];}let m=a31y[I(0x18d)](homeDir,'.meteor');if(h)Log[I(0x177)]('Please\x20use\x20\x22npm\x20i\x20-g\x20meteor\x22\x20to\x20install\x20on\x20windows');else{a31z[I(0x1b9)](m)&&(yield SpawnAsync[I(0x185)]('rm',[I(0x1c8),m],{'message':'Removing\x20previous\x20install\x20of\x20meteor'}));try{const s=i?'os.osx.x86_64':I(0x193);yield SpawnAsync[I(0x185)](I(0x191),[...c,'-s',I(0x172)+l+I(0x1b8)+s+I(0x1a8),I(0x1a7),a31y[I(0x18d)](homeDir,I(0x175))],{'message':'Downloading\x20meteor\x20version\x20'+l});const t=[I(0x1b2),a31y[I(0x18d)](homeDir,'meteor.tar.gz'),'-C',homeDir];yield SpawnAsync[I(0x185)](I(0x1c6),t,{'message':I(0x1c2)+l}),a31A[I(0x1c3)](a31y[I(0x18d)](homeDir,I(0x175)),{'force':!![]});}catch(u){console[I(0x18a)](u);}try{if(I(0x183)!==I(0x1aa))execSync(I(0x189)+homeDir+I(0x195),{'stdio':'ignore'}),execSync(I(0x19b),{'stdio':I(0x184)}),execSync('printf\x20\x27export\x20PATH=$PATH:$HOME/.local/bin\x27\x20>>\x20$HOME/.profile\x20&&\x20source\x20$HOME/.profile',{'stdio':I(0x184)}),execSync(I(0x1ba),{'stdio':'ignore'}),execSync('printf\x20\x27test\x20-f\x20~/.profile\x20&&\x20.\x20~/.profile\x27\x20>>\x20~/.zshrc',{'stdio':'ignore'});else try{i(j[I(0x170)](k));}catch(w){m(w);}}catch(w){console['error'](w);}Log[I(0x19a)]('Meteor\x20version\x20'+l+I(0x199));}}catch(x){I(0x1b4)!=='bKrXE'?(console[I(0x18a)](x),process['exit'](0x0)):(d['error'](x),f[I(0x1af)](0x0));}});});
|
package/dist/commands/jsdoc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a32c(){const B=['[-]\x20You\x20may\x20need\x20to\x20install\x20jsdoc:\x20\x22npm\x20i\x20-g\x20jsdoc\x22','kMOTf','10xTEOlA','2260lQskWZ','config','logWithSpinner','app/node_modules','4135IZWNwI','18VtahVR','closure','writeFileSync','jsdoc-config.json','948HUbPof','586880HifxZC','(((.+)+)+)+$','ntvDd','stringify','app/public','maka\x20jsdoc','6nigzmB','plugins/markdown','19510IDXpdg','sep','(.+\x5c.app-tests.js)|(^|\x5c/|\x5c\x5c)_','1660099WfhZAF','utf-8','fsi','1521TQJHSt','jsdoc','pathFromProject','search','toString','\x20-c\x20','constructor','44hOVUWh','stop','join','\x0a[+]\x20Documentation\x20written\x20to\x20','app/private','isFile','create','logError','maka\x20jsdoc\x20--init','1016WOkEiA','Use\x20the\x20popular\x20JSDoc\x20documentation\x20generator','\x20-r\x20app','74361JKiggH'];a32c=function(){return B;};return a32c();}const a32z=a32d;(function(a,b){const w=a32d,c=a();while(!![]){try{const d=-parseInt(w(0x1ec))/0x1*(parseInt(w(0x1e7))/0x2)+-parseInt(w(0x1e4))/0x3+-parseInt(w(0x1e1))/0x4*(-parseInt(w(0x1e8))/0x5)+-parseInt(w(0x1c9))/0x6*(-parseInt(w(0x1ce))/0x7)+parseInt(w(0x1c3))/0x8*(-parseInt(w(0x1ed))/0x9)+-parseInt(w(0x1cb))/0xa*(-parseInt(w(0x1d8))/0xb)+parseInt(w(0x1f1))/0xc*(-parseInt(w(0x1d1))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a32c,0x26a88));const a32b=(function(){let a=!![];return function(b,c){const x=a32d;if(x(0x1c5)!==x(0x1c5)){let e={'plugins':[x(0x1ca)],'tags':{'allowUnknownTags':!![],'dictionaries':[x(0x1d2),x(0x1ee)]},'source':{'includePattern':'.+\x5c.(j|t)s(doc|x)?$','excludePattern':x(0x1cd),'exclude':['app/packages',x(0x1eb),x(0x1c7),x(0x1dc)]},'templates':{'cleverLinks':![],'monospaceLinks':![]},'opts':{'recursive':!![],'encoding':x(0x1cf)}};d[x(0x1ef)](e,f[x(0x1c6)](e,null,0x4));}else{const e=a?function(){if(c){const f=c['apply'](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a32a=a32b(this,function(){const y=a32d;return a32a[y(0x1d5)]()['search'](y(0x1c4))[y(0x1d5)]()[y(0x1d7)](a32a)[y(0x1d4)]('(((.+)+)+)+$');});a32a();import a32u from'path';import a32v from'fs';import{execSync}from'child_process';function a32d(a,b){const c=a32c();return a32d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a32d(a,b);}import{Command}from'../command.js';Command[a32z(0x1de)]({'name':a32z(0x1d2),'usage':a32z(0x1c8),'mustBeInMakaProject':!![],'description':a32z(0x1e2),'examples':[a32z(0x1e0),'maka\x20jsdoc']},function(a){const A=a32z;let b=a32u[A(0x1da)](this[A(0x1d0)][A(0x1d3)]({}),'docs'+a32u[A(0x1cc)]),c=a32u[A(0x1da)](this['fsi']['pathFromProject']({}),A(0x1e9),A(0x1f0)),d=this[A(0x1d0)][A(0x1d3)]({}),f=A(0x1d2);if(!this[A(0x1dd)](c)){let h={'plugins':[A(0x1ca)],'tags':{'allowUnknownTags':!![],'dictionaries':[A(0x1d2),A(0x1ee)]},'source':{'includePattern':'.+\x5c.(j|t)s(doc|x)?$','excludePattern':'(.+\x5c.app-tests.js)|(^|\x5c/|\x5c\x5c)_','exclude':['app/packages',A(0x1eb),'app/public',A(0x1dc)]},'templates':{'cleverLinks':![],'monospaceLinks':![]},'opts':{'recursive':!![],'encoding':'utf-8'}};a32v[A(0x1ef)](c,JSON[A(0x1c6)](h,null,0x4));}let g=this[A(0x1ea)]('Running\x20'+f);try{let i=f+A(0x1d6)+c+A(0x1e3)+a32u['sep']+'\x20-d\x20'+b;execSync(i,{'cwd':d,'stdio':'inherit'}),this['logNotice'](A(0x1db)+b);}catch(j){this[A(0x1df)](j),this[A(0x1df)](A(0x1e5));}finally{if(A(0x1e6)===A(0x1e6))g[A(0x1d9)]();else return c['toString']()[A(0x1d4)](A(0x1c4))[A(0x1d5)]()['constructor'](d)['search'](A(0x1c4));}});
|
package/dist/commands/login.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a33G=a33d;(function(a,b){const E=a33d,c=a();while(!![]){try{const d=parseInt(E(0x1e5))/0x1+-parseInt(E(0x1f0))/0x2*(parseInt(E(0x1d4))/0x3)+parseInt(E(0x1c9))/0x4+-parseInt(E(0x1c5))/0x5*(-parseInt(E(0x1ef))/0x6)+parseInt(E(0x1dc))/0x7*(-parseInt(E(0x1fb))/0x8)+parseInt(E(0x1f9))/0x9+parseInt(E(0x1cb))/0xa*(-parseInt(E(0x200))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a33c,0xccb24));const a33b=(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;};}()),a33a=a33b(this,function(){const F=a33d;return a33a[F(0x1d0)]()[F(0x1e9)](F(0x1c1))[F(0x1d0)]()[F(0x1eb)](a33a)[F(0x1e9)](F(0x1c1));});a33a();var __awaiter=this&&this[a33G(0x1d8)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const H=a33d;if(H(0x1bf)!==H(0x1e7))g(f);else{b[H(0x1ca)]('\x0a');throw H(0x1f8);}});}return new(c||(c=Promise))(function(f,g){const L=a33d;function h(k){const I=a33d;if('JvwZv'!=='JvwZv')c(d);else try{j(d[I(0x1c3)](k));}catch(m){if('UYvRj'!==I(0x1ea)){if(m){const o=i['apply'](j,arguments);return k=null,o;}}else g(m);}}function i(k){const J=a33d;if(J(0x1c2)==='JstyD')try{'rwdXv'!==J(0x1c4)?j(d[J(0x1cd)](k)):d[J(0x1bb)](e,{'cert':f});}catch(m){g(m);}else h[J(0x1dd)]?i(j[J(0x1e1)]):k(l['value'])[J(0x1fd)](m,n);}function j(k){const K=a33d;k[K(0x1dd)]?f(k[K(0x1e1)]):e(k[K(0x1e1)])[K(0x1fd)](h,i);}j((d=d['apply'](a,b||[]))[L(0x1c3)]());});};import a33u from'node-forge';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a33d(a,b){const c=a33c();return a33d=function(d,e){d=d-0x1b9;let f=c[d];return f;},a33d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import{HTTPS}from'../tools/https/https.class.js';Command['create']({'name':a33G(0x1be),'validOpts':['email',a33G(0x1d2),a33G(0x1c0),'cacert',a33G(0x201)],'usage':'maka\x20login','maxArgLength':0x2,'disableAuthCheck':!![],'description':'Retrieves\x20login\x20information\x20from\x20www.maka-cli.com,\x20and\x20stores\x20a\x20hash\x20in\x20~/.maka','examples':['maka\x20login',a33G(0x1f2)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const M=a33d;if(M(0x1ee)===M(0x1ee)){let c=Log[M(0x204)]();try{if(M(0x1fe)==='QTuOz'){let d='';if(b[M(0x1cf)]){if(M(0x1de)!==M(0x1d5))this[M(0x1b9)][M(0x1ed)](b[M(0x1cf)])?(d=b[M(0x1cf)],Log[M(0x1c8)](M(0x1bc)+d)):Log['error'](M(0x1e2)+d);else{c[M(0x1f3)](M(0x1e3)+d);return;}}const f=this[M(0x1b9)]['getGlobalConfig']();if(f['cert']){if(this[M(0x1b9)][M(0x1ed)](f[M(0x1e4)]))d=f[M(0x1e4)];else{if(M(0x1e0)!==M(0x1e0))this['fsi'][M(0x1ed)](h['cacert'])?(o=p[M(0x1cf)],q[M(0x1c8)]('Using\x20CA\x20Cert\x20'+r)):s[M(0x1f3)](M(0x1e2)+t);else{Log[M(0x1f3)](M(0x1e3)+d);return;}}}Log[M(0x1fc)]('Logging\x20into\x20https://www.maka-cli.com');const g={'url':M(0x1e6)};if(b['cacert']){if(M(0x1da)!==M(0x1da)){const s=d['apply'](e,arguments);return f=null,s;}else Object[M(0x1bb)](g,{'cert':d});}c[M(0x1c7)](M(0x1f7));const h=yield HTTPS[M(0x207)](g);if(h===M(0x1d3)){c[M(0x1ca)]();throw M(0x206);}c['success']();let i=b[M(0x1fa)]?b['email']:yield Actions['ask'](M(0x1f4)),j=b['password']?b[M(0x1d2)]:yield Actions[M(0x1d7)](M(0x1d6),!![]);if(h!==':D')throw M(0x1f1);const k=a33u['md'][M(0x1ff)][M(0x203)]();k['update'](j);const l=k[M(0x1bd)]()[M(0x1ec)](),m={'hostname':'www.maka-cli.com','path':M(0x1e8),'data':{'email':i,'password':l,'hashed':!![]}};b[M(0x1cf)]&&Object['assign'](m,{'cert':d});c[M(0x1c7)]('Logging\x20in');const n=yield HTTPS[M(0x202)](m);if(n==='TIMEOUT'){if(M(0x1cc)!=='uxCYi')try{i(j[M(0x1cd)](k));}catch(t){m(t);}else{c[M(0x1ca)]('\x0a');throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}}let o=null;if(n[M(0x1c6)]){const t={'url':'https://www.maka-cli.com/api/v1/encodeJwt','headers':{'x-auth-token':n[M(0x1c6)]}};b['cacert']&&Object['assign'](t,{'cert':d});o=yield HTTPS[M(0x207)](t);if(o===M(0x1d3)){if(M(0x1df)!=='yCDhm'){c[M(0x1ca)]('\x0a');throw M(0x1f8);}else d(e[M(0x1c3)](f));}}else{if(M(0x1d9)!=='DXyWd')c(d);else throw n;}if(o){if(M(0x1db)!==M(0x1db))e[M(0x1ca)](),f[M(0x1f3)](g),h[M(0x205)](0x0);else{const x={'token':n,'hash':o};b[M(0x1cf)]&&(M(0x1f5)===M(0x1ba)?(e=f[M(0x1cf)],g[M(0x1c8)](M(0x1bc)+h)):Object['assign'](x,{'cert':d})),this[M(0x1b9)][M(0x1d1)]({'config':x});}}c[M(0x1ce)]();}else return f instanceof g?h:new i(function(A){A(k);});}catch(A){c[M(0x1ca)](),console['error'](A),process[M(0x205)](0x0);}}else{const C=g?function(){const N=M;if(C){const D=q[N(0x1f6)](r,arguments);return s=null,D;}}:function(){};return l=![],C;}});});function a33c(){const O=['done','lRMTy','sVNPb','HrbGN','value','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','cert','603471pFiTIC','https://www.maka-cli.com/api/v1/status','UZMtF','/api/v1/login','search','UYvRj','constructor','toHex','isFile','zWZdF','12fiZdYs','12926bNSzgy','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\x20login\x20--email\x20<address>\x20--password\x20<password>','error','Email:','JIOVY','apply','Preflight\x20Check','Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','11803221LJgUxC','email','85336bwRZod','header','then','QTuOz','sha256','22WCKWen','debug','post','create','withSpinner','exit','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','get','fsi','seuzz','assign','Using\x20CA\x20Cert\x20','digest','login','UuXRj','help','(((.+)+)+)+$','JstyD','next','fPfFp','1705465JRlcKo','authToken','start','notice','6181156IwkWwq','failure','4765130VqLdFt','uxCYi','throw','success','cacert','toString','setGlobalConfig','password','TIMEOUT','507hRnMuX','vLsLU','Password:\x20','ask','__awaiter','DXyWd','Doufl','RNQqN','826qoyPgk'];a33c=function(){return O;};return a33c();}
|
package/dist/commands/logout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a34E=a34d;function a34d(a,b){const c=a34c();return a34d=function(d,e){d=d-0x67;let f=c[d];return f;},a34d(a,b);}(function(a,b){const v=a34d,c=a();while(!![]){try{const d=parseInt(v(0x6e))/0x1+parseInt(v(0xa1))/0x2*(-parseInt(v(0x8c))/0x3)+-parseInt(v(0xa2))/0x4+-parseInt(v(0x86))/0x5+-parseInt(v(0x8a))/0x6*(parseInt(v(0x88))/0x7)+-parseInt(v(0x91))/0x8+parseInt(v(0x7e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a34c,0xd8a0b));function a34c(){const H=['Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','header','fsi','TIMEOUT','/api/v1/logoutAll','toString','46826505ojPTZt','www.maka-cli.com','failure','done','assign','FJLyS','kjUKf','constructor','5795995cwvjdV','start','10970981fXfzma','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','6vQomSU','authToken','4443khyEgb','setGlobalConfig','IAFkn','DApMi','POrpw','5537824dYHBaJ','isFile','Logging\x20out','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','apply','sFOKg','exit','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','create','KHdNC','Preflight\x20Check','fDZgZ','next','logout','maka\x20logout','value','2082UlUqry','4293800jEKGvK','then','cacert','RWKfg','Logging\x20out\x20of\x20https://www.maka-cli.com','get','search','GfThB','cert','error','1718243MWwmNH','throw','FuDwe','withSpinner','epQvQ','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','(((.+)+)+)+$','LcerE','https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','https://www.maka-cli.com/api/v1/status'];a34c=function(){return H;};return a34c();}const a34b=(function(){let a=!![];return function(b,c){const w=a34d;if(w(0x8e)!==w(0x8e))c[w(0x6d)](d);else{const e=a?function(){const x=w;if(c){const f=c[x(0x95)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a34a=a34b(this,function(){const y=a34d;return a34a[y(0x7d)]()[y(0x6a)](y(0x74))[y(0x7d)]()[y(0x85)](a34a)['search'](y(0x74));});a34a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a34d;'POrpw'!==z(0x90)?(e&&i[z(0x6d)](j),h[z(0x97)](0x0)):g(f);});}return new(c||(c=Promise))(function(f,g){const D=a34d;function h(k){const A=a34d;try{j(d[A(0x9d)](k));}catch(l){g(l);}}function i(k){const B=a34d;try{j(d[B(0x6f)](k));}catch(l){g(l);}}function j(k){const C=a34d;k[C(0x81)]?f(k[C(0xa0)]):e(k[C(0xa0)])[C(0xa3)](h,i);}j((d=d[D(0x95)](a,b||[]))[D(0x9d)]());});};import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';Command[a34E(0x99)]({'name':a34E(0x9e),'validOpts':[a34E(0xa4)],'usage':a34E(0x9f),'maxArgLength':0x2,'description':a34E(0x89),'disableAuthCheck':!![],'examples':[a34E(0x9f)]},function(a,b){var c;return __awaiter(this,void 0x0,void 0x0,function*(){const F=a34d;if(F(0x9a)!==F(0x72)){let d=Log[F(0x71)]();try{if(F(0x96)!==F(0x96)){const g=g?function(){const G=F;if(g){const u=q[G(0x95)](r,arguments);return s=null,u;}}:function(){};return l=![],g;}else{let g='';if(b[F(0xa4)]){if(F(0x8f)!==F(0x8f))c=d[F(0x6c)];else{if(this[F(0x7a)][F(0x92)](b[F(0xa4)]))F(0x6b)===F(0x6b)?(g=b['cacert'],Log['notice']('Using\x20CA\x20Cert\x20'+g)):d[F(0x82)](e,{'cert':f});else{if('YDXYo'!==F(0x70))Log[F(0x6d)](F(0x98)+g);else{if(e){const p=i['apply'](j,arguments);return k=null,p;}}}}}const h=yield this[F(0x7a)]['getGlobalConfig']();if(h[F(0x6c)]){if(this[F(0x7a)][F(0x92)](h['cert']))g=h[F(0x6c)];else{d[F(0x80)]();throw Log[F(0x6d)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+g);}}Log[F(0x79)](F(0x68));const i={'url':F(0x77)};if(b[F(0xa4)]){if(F(0x84)===F(0x67))try{i(j['throw'](k));}catch(q){m(q);}else Object[F(0x82)](i,{'cert':g});}d['start'](F(0x9b));const j=yield HTTPS[F(0x69)](i);if(j===F(0x7b)){if(F(0x75)==='LcerE'){d['failure']();throw F(0x78);}else{if(this['fsi'][F(0x92)](g['cert']))m=n[F(0x6c)];else{o['failure']();throw p[F(0x6d)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+q);}}}d['success']();if(j!==':D'){d[F(0x80)]();throw F(0x76);}if(!((c=h===null||h===void 0x0?void 0x0:h['token'])===null||c===void 0x0?void 0x0:c[F(0x8b)]))throw Log[F(0x6d)](F(0x94));d[F(0x87)](F(0x93));const k={'hostname':F(0x7f),'path':F(0x7c),'data':{},'headers':{'x-auth-token':h['token'][F(0x8b)]}};if(b[F(0xa4)]){if('pGIDF'==='wqlFQ')try{i(j[F(0x9d)](k));}catch(s){m(s);}else Object[F(0x82)](k,{'cert':g});}const l=yield HTTPS['post'](k);if(l===F(0x7b)){d['failure']('\x0a');throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}this[F(0x7a)][F(0x8d)]({'config':{'token':{'authToken':'','userId':'','when':''},'hash':''}}),d['success']();}}catch(s){if(F(0x9c)!==F(0x83))s&&console[F(0x6d)](s),process['exit'](0x0);else{d[F(0x80)]();throw s[F(0x6d)](F(0x73)+f);}}}else d(e[F(0x6f)](f));});});
|
package/dist/commands/logs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a35D=a35d;(function(a,b){const A=a35d,c=a();while(!![]){try{const d
|
|
1
|
+
const a35D=a35d;(function(a,b){const A=a35d,c=a();while(!![]){try{const d=parseInt(A(0x13b))/0x1+-parseInt(A(0x13a))/0x2*(-parseInt(A(0x140))/0x3)+parseInt(A(0x159))/0x4+parseInt(A(0x14c))/0x5*(-parseInt(A(0x156))/0x6)+-parseInt(A(0x14f))/0x7+parseInt(A(0x13f))/0x8+-parseInt(A(0x147))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a35c,0x6b8d0));const a35b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a35d;if('hdJAT'===B(0x151)){if(c){if(B(0x148)===B(0x150))throw b;else{const f=c[B(0x13c)](b,arguments);return c=null,f;}}}else{const h=B(0x154),i=this['fsi'][B(0x149)](g[B(0x14e)]),j=h[B(0x152)](i,B(0x14d)),k=i[B(0x13d)](j),l=j[B(0x14b)](k[B(0x157)]());k['assign'](l,{'env':i}),l[B(0x139)](h,l,{'tty':!![],'verbose':!![]});}}:function(){};return a=![],d;};}()),a35a=a35b(this,function(){const C=a35d;return a35a[C(0x157)]()[C(0x144)](C(0x153))[C(0x157)]()['constructor'](a35a)[C(0x144)](C(0x153));});a35a();import a35y from'fs';function a35c(){const F=['148380YGrQPG','17095AuSnPp','apply','readFileSync','help','1007776WabsBz','33cSlNOA','assign','create','mGkrT','search','maka\x20logs\x20--env\x20prod','logs','4014990oiSZcL','TXwvI','getConfigPath','maka\x20l\x20-e\x20p','parse','3950cQyQWJ','ssh.json','env','1767668sKMwLh','BRpeg','hdJAT','join','(((.+)+)+)+$','pm2\x20logs','maka\x20logs\x20--env\x20staging','3516PSBNbe','toString','log','2571780buOLzI','sshSync'];a35c=function(){return F;};return a35c();}import a35z from'path';function a35d(a,b){const c=a35c();return a35d=function(d,e){d=d-0x139;let f=c[d];return f;},a35d(a,b);}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a35D(0x142)]({'name':a35D(0x146),'aliases':['l',a35D(0x158)],'usage':a35D(0x145),'requiredOpts':[a35D(0x14e)],'mustBeInMakaProject':!![],'validOpts':[a35D(0x13e)],'description':'View\x20the\x20PM2\x20logs','examples':['maka\x20logs\x20--env\x20dev',a35D(0x155),a35D(0x14a)]},function(a,b){const E=a35D;try{if('DLFCx'===E(0x143)){if(e){const d=i[E(0x13c)](j,arguments);return k=null,d;}}else{const d=E(0x154),f=this['fsi'][E(0x149)](b[E(0x14e)]),g=a35z['join'](f,E(0x14d)),h=a35y[E(0x13d)](g),i=JSON[E(0x14b)](h[E(0x157)]());Object[E(0x141)](i,{'env':f}),SSH['sshSync'](d,i,{'tty':!![],'verbose':!![]});}}catch(j){throw j;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a36y=a36d;(function(a,b){const u=a36d,c=a();while(!![]){try{const d=parseInt(u(0x18a))/0x1*(parseInt(u(0x183))/0x2)+parseInt(u(0x17b))/0x3+parseInt(u(0x173))/0x4*(parseInt(u(0x185))/0x5)+parseInt(u(0x179))/0x6+-parseInt(u(0x16f))/0x7*(-parseInt(u(0x17e))/0x8)+parseInt(u(0x184))/0x9*(parseInt(u(0x171))/0xa)+parseInt(u(0x170))/0xb*(-parseInt(u(0x17c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0xeb281));const a36b=(function(){let a=!![];return function(b,c){const v=a36d;if(v(0x160)!==v(0x160))d[v(0x166)](e),f[v(0x176)](0x1);else{const e=a?function(){const w=v;if(c){const f=c[w(0x188)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a36a=a36b(this,function(){const x=a36d;return a36a['toString']()['search'](x(0x164))[x(0x17d)]()[x(0x180)](a36a)[x(0x16a)](x(0x164));});function a36c(){const F=['maka\x20install\x20meteor','apply','runSubCommand','14846muHmqr','dffIj','mCFYN','value','maybeProxyCommandToMeteor','(((.+)+)+)+$','then','error','jdVBZ','zRxcu','maka\x20create\x20Todo','search','Xpjzi','maka\x20<command>\x20[<args>]\x20[<opts>]','done','RCzWY','1157898oixLmt','8371DITVZr','5170jCvKbm','fsi','3930692fUhDuJ','maka','__awaiter','exit','slice','A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.\x0a\x20\x20Run\x20any\x20command\x20with\x20\x22--help\x22\x20for\x20details','3141450fZybpa','next','4590336qlvIOC','50628SEWHhM','toString','16WogKaG','throw','constructor','vqCVJ','bMpnc','12zWTvqz','12492BIVCgI','5LeohIq','JwKRa'];a36c=function(){return F;};return a36c();}a36a();function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x160;let f=c[d];return f;},a36d(a,b);}var __awaiter=this&&this[a36y(0x175)]||function(a,b,c,d){function e(f){const z=a36d;if(z(0x186)==='JwKRa')return f instanceof c?f:new c(function(g){g(f);});else try{i(j[z(0x17a)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const D=a36d;function h(k){const A=a36d;if('dDpUj'===A(0x168))this['runSubCommand'](d,e[A(0x177)](0x1),f);else try{'MnxhO'===A(0x16e)?c(d):j(d[A(0x17a)](k));}catch(n){if('zVkDZ'===A(0x16b))return f instanceof g?h:new i(function(p){p(k);});else g(n);}}function i(k){const B=a36d;try{j(d[B(0x17f)](k));}catch(l){g(l);}}function j(k){const C=a36d;if(C(0x161)!=='mCFYN')return c[C(0x17d)]()['search'](C(0x164))[C(0x17d)]()[C(0x180)](d)[C(0x16a)](C(0x164));else k[C(0x16d)]?f(k[C(0x162)]):e(k[C(0x162)])['then'](h,i);}j((d=d[D(0x188)](a,b||[]))[D(0x17a)]());});};import{Command}from'../command.js';const Maka=new Command({'name':a36y(0x174),'minArgLength':0x1,'description':a36y(0x178),'usage':a36y(0x16c),'disableAuthCheck':!![],'examples':[a36y(0x187),a36y(0x169),'maka\x20run']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a36d;if(E(0x182)==='FnATq')h[E(0x16d)]?i(j['value']):k(l[E(0x162)])[E(0x165)](m,n);else try{const d=a[0x0],f=this['findSubCommand'](d);f?E(0x167)==='jdVBZ'?this[E(0x189)](d,a[E(0x177)](0x1),b):this[E(0x172)][E(0x163)]():this[E(0x172)][E(0x163)]();}catch(h){E(0x181)!==E(0x181)?d(h[E(0x17f)](f)):(console[E(0x166)](h),process[E(0x176)](0x1));}});});export default Maka;
|
package/dist/commands/murder.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a37C=a37d;(function(a,b){var u=a37d,c=a();while(!![]){try{var d=parseInt(u(0xd3))/0x1*(parseInt(u(0xd4))/0x2)+-parseInt(u(0xcb))/0x3+-parseInt(u(0xc3))/0x4*(parseInt(u(0xb5))/0x5)+parseInt(u(0xc0))/0x6*(parseInt(u(0xc2))/0x7)+-parseInt(u(0xd0))/0x8*(parseInt(u(0xd1))/0x9)+-parseInt(u(0xb4))/0xa+parseInt(u(0xc7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x38195));var a37b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a37d;if(c){var e=c[v(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){var w=a37d;return a37a[w(0xbf)]()[w(0xca)]('(((.+)+)+)+$')[w(0xbf)]()[w(0xb8)](a37a)['search'](w(0xb7));});a37a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var x=a37d;if(x(0xbb)!==x(0xbe))g(f);else try{i(j[x(0xb3)](k));}catch(i){m(i);}});}return new(c||(c=Promise))(function(f,g){var B=a37d;function h(k){var y=a37d;try{j(d['next'](k));}catch(l){y(0xcf)===y(0xcf)?g(l):d(l[y(0xba)](f));}}function i(k){var z=a37d;if(z(0xc9)===z(0xcd))b[z(0xc1)]('%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','font-family:\x20monospace');else try{j(d[z(0xba)](k));}catch(m){g(m);}}function j(k){var A=a37d;k[A(0xc5)]?f(k[A(0xcc)]):e(k[A(0xcc)])[A(0xbc)](h,i);}j((d=d[B(0xce)](a,b||[]))[B(0xb3)]());});};function a37c(){var E=['toString','1038qwtENr','log','12509PagykT','58088ljvJIK','%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','done','error','6178733iXGDrY','font-family:\x20monospace','eirWt','search','372729eXpvtQ','value','OOFqm','apply','RdwPs','107408jahFxN','162QeFRpe','murder','4pITidj','190922hzWwjT','next','4391760nfskMB','75sUepXP','maka\x20murder','(((.+)+)+)+$','constructor','create','throw','oCGhJ','then','exit','YxohN'];a37c=function(){return E;};return a37c();}import{Command}from'../command.js';function a37d(a,b){var c=a37c();return a37d=function(d,e){d=d-0xb3;var f=c[d];return f;},a37d(a,b);}Command[a37C(0xb9)]({'name':a37C(0xd2),'usage':a37C(0xb6),'maxArgLength':0x1,'description':'Murrrrderrrrr'},function(a){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a37d;try{console[D(0xc1)](D(0xc4),D(0xc8));}catch(b){console[D(0xc6)](b),process[D(0xbd)](0x0);}});});
|
package/dist/commands/proxy.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a38ah=a38d;(function(a,b){const ad=a38d,c=a();while(!![]){try{const d=parseInt(ad(0xa6))/0x1+-parseInt(ad(0x85))/0x2+-parseInt(ad(0x9e))/0x3*(-parseInt(ad(0xa4))/0x4)+parseInt(ad(0x87))/0x5+-parseInt(ad(0x98))/0x6+-parseInt(ad(0xa1))/0x7+-parseInt(ad(0x7d))/0x8*(-parseInt(ad(0x89))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x6d9fe));const a38b=(function(){let a=!![];return function(b,c){const ae=a38d;if(ae(0xa2)==='QXkIO'){const d=a?function(){const af=ae;if('UYoBI'===af(0x90)){if(c){const e=c[af(0x9f)](b,arguments);return c=null,e;}}else{c['error'](af(0x8e));throw new d();}}:function(){};return a=![],d;}else{let f=this[ae(0x9d)][ae(0xa0)]();const g=x['env']?y[ae(0x99)]:'development',h=this[ae(0x9d)][ae(0x9c)](g),i=z['targetPort']?A[ae(0x88)]:0xbb8,j=B[ae(0x93)]?C[ae(0x93)]:0xd73,k=D[ae(0x92)]?E['targetHost']:ae(0x7a),l=F[ae(0x80)](h,ae(0x9b),f[ae(0x96)]+ae(0xa3)),m=G[ae(0x80)](h,ae(0x9b),f[ae(0x96)]+ae(0x8d));if(!this[ae(0x9d)]['isFile'](l)){U[ae(0xa8)](ae(0x81));throw new V();}if(!this[ae(0x9d)]['isFile'](m)){W[ae(0xa8)](ae(0x9a));throw new X();}if(i===j){Y[ae(0xa8)](ae(0x8e));throw new Z();}N[ae(0x7f)](ae(0xac)+g),O[ae(0x7f)](ae(0x8b)+l),P[ae(0x7f)](ae(0x97)+m);const n={'ssl':{'key':Q[ae(0x83)](l,ae(0xaa)),'cert':R[ae(0x83)](m,'utf8')},'target':{'host':k,'port':i},'ws':!![],'xfwd':!![]},o=S['createProxyServer'](n)['listen'](j);T[ae(0x84)](ae(0x8f)+j+'\x20to\x20'+i);}};}()),a38a=a38b(this,function(){const ag=a38d;return a38a['toString']()['search']('(((.+)+)+)+$')[ag(0x7c)]()['constructor'](a38a)[ag(0xa5)]('(((.+)+)+)+$');});a38a();import a38aa from'fs';import a38ab from'path';function a38c(){const ak=['1245531JuQZhR','QXkIO','.key','340vYFoUY','search','230214xEKXma','create','error','bWcON','utf8','proxy','Environment:\x20','localhost','maka\x20proxy\x20[--env]\x20[--target-port]\x20[--listen-port]\x20[--target-host]','toString','19480yyNroK','maka\x20proxy\x20--env\x20dev\x20--target-port\x203000\x20--listen-port\x204000','notice','join','No\x20KEY\x20file\x20found.','development','readFileSync','bright','1122826ixXfiD','help','105725FDgITU','targetPort','3735vHougl','isFile','Key\x20Location:\x20','Proxy\x20HTTP\x20requests\x20to\x20another\x20Server\x0a\x20\x20\x20\x20The\x20certificates\x20are\x20pulled\x20from\x20the\x20environment\x20_keys\x20directory.\x0a\x20\x20\x20\x20To\x20create\x20a\x20new\x20key,\x20run:\x0a\x20\x20\x20\x20\x20\x20maka\x20ssl\x20--env\x20dev\x20generate-csr\x0a\x0a\x20\x20\x20\x20Then\x20to\x20create\x20a\x20self-signed\x20certificate:\x0a\x20\x20\x20\x20\x20\x20maka\x20ssl\x20--env\x20dev\x20generate-ssc\x0a\x0a\x20\x20','.crt','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','=>\x20SSL\x20Proxy\x20forwarding\x20','UYoBI','createProxyServer','targetHost','listenPort','SmEMS','maka\x20proxy\x20--env\x20dev','appName','Crt\x20Location:\x20','1083186XjgNun','env','No\x20CRT\x20file\x20found.','_keys','getConfigPath','fsi','3777dJffYt','apply','getProjectConfig'];a38c=function(){return ak;};return a38c();}import a38ac from'http-proxy';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x7a;let f=c[d];return f;},a38d(a,b);}import{UsageError}from'../error.js';Command[a38ah(0xa7)]({'name':a38ah(0xab),'usage':a38ah(0x7b),'mustBeInMakaProject':!![],'validOpts':[a38ah(0x86),a38ah(0x88),a38ah(0x93),'targetHost',a38ah(0x99)],'description':a38ah(0x8c),'examples':[a38ah(0x95),a38ah(0x7e)]},function(a,b){const ai=a38ah;try{if('SmEMS'!==ai(0x94)){c['error'](ai(0x9a));throw new d();}else{let d=this[ai(0x9d)][ai(0xa0)]();const f=b['env']?b[ai(0x99)]:ai(0x82),g=this['fsi']['getConfigPath'](f),h=b[ai(0x88)]?b[ai(0x88)]:0xbb8,i=b[ai(0x93)]?b[ai(0x93)]:0xd73,j=b['targetHost']?b[ai(0x92)]:ai(0x7a),k=a38ab[ai(0x80)](g,'_keys',d[ai(0x96)]+'.key'),l=a38ab[ai(0x80)](g,ai(0x9b),d[ai(0x96)]+'.crt');if(!this['fsi'][ai(0x8a)](k)){if(ai(0xa9)===ai(0xa9)){Log[ai(0xa8)](ai(0x81));throw new UsageError();}else{const p=g?function(){const aj=ai;if(p){const u=q[aj(0x9f)](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}if(!this['fsi'][ai(0x8a)](l)){Log[ai(0xa8)](ai(0x9a));throw new UsageError();}if(h===i){Log[ai(0xa8)](ai(0x8e));throw new UsageError();}Log[ai(0x7f)]('Environment:\x20'+f),Log['notice']('Key\x20Location:\x20'+k),Log[ai(0x7f)](ai(0x97)+l);const m={'ssl':{'key':a38aa[ai(0x83)](k,ai(0xaa)),'cert':a38aa[ai(0x83)](l,'utf8')},'target':{'host':j,'port':h},'ws':!![],'xfwd':!![]},n=a38ac[ai(0x91)](m)['listen'](i);Log[ai(0x84)](ai(0x8f)+i+'\x20to\x20'+h);}}catch(p){throw p;}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a39c(){const H=['parse','ssh','~/settings.json','help','env','482210YIplvj','toString','_keys','constructor','apply','lwDLw','join','Checking\x20remote\x20host\x20availability','error','done','create','uname\x20-a','9283078NVEVgO','then','3056UqkKdn','297HrxSDt','863952zeAXck','pm2\x20delete\x20all','OJWPT','next','assign','__awaiter','pfpJC','notice','167460BOoukq','~/ses.json','ping','RkCpY','success','existsSync','wfCpO','260242wJBXdM','abSDH','9530KqgaYG','readFileSync','PclSg','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','NjJgJ','scp','11511aqphNO','(((.+)+)+)+$','value','ssh.json','21GMUJZF','throw','settings.json','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','maka\x20reconfig\x20--env\x20prod','1004UQUlUw','search','fsi'];a39c=function(){return H;};return a39c();}const a39z=a39d;function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x187;let f=c[d];return f;},a39d(a,b);}(function(a,b){const w=a39d,c=a();while(!![]){try{const d=-parseInt(w(0x1bd))/0x1+parseInt(w(0x18c))/0x2*(parseInt(w(0x198))/0x3)+parseInt(w(0x19d))/0x4*(-parseInt(w(0x18e))/0x5)+parseInt(w(0x1b5))/0x6+-parseInt(w(0x1b1))/0x7+parseInt(w(0x1b3))/0x8*(parseInt(w(0x194))/0x9)+-parseInt(w(0x1a5))/0xa*(-parseInt(w(0x1b4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0xd5394));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a39d;if(c){if(x(0x188)==='RkCpY'){const e=c[x(0x1a9)](b,arguments);return c=null,e;}else c(d);}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const y=a39d;return a39a[y(0x1a6)]()[y(0x19e)]('(((.+)+)+)+$')[y(0x1a6)]()[y(0x1a8)](a39a)[y(0x19e)](y(0x195));});a39a();var __awaiter=this&&this[a39z(0x1ba)]||function(a,b,c,d){function e(f){const A=a39d;if(A(0x18d)!=='abSDH')h[A(0x1ae)]?i(j[A(0x196)]):k(l['value'])[A(0x1b2)](m,n);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const F=a39d;function h(k){const B=a39d;try{j(d[B(0x1b8)](k));}catch(l){if(B(0x18b)!==B(0x1b7))g(l);else return c[B(0x1a6)]()['search'](B(0x195))['toString']()[B(0x1a8)](d)[B(0x19e)](B(0x195));}}function i(k){const C=a39d;try{C(0x1bb)===C(0x1bb)?j(d[C(0x199)](k)):d(e[C(0x1b8)](f));}catch(m){if(C(0x192)!==C(0x192)){const o=g?function(){const D=C;if(o){const u=q[D(0x1a9)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}else g(m);}}function j(k){const E=a39d;k[E(0x1ae)]?f(k[E(0x196)]):e(k[E(0x196)])[E(0x1b2)](h,i);}j((d=d['apply'](a,b||[]))[F(0x1b8)]());});};import a39u from'fs';import a39v from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a39z(0x1af)]({'name':'reconfig','validOpts':[a39z(0x1a3)],'requiredOpts':[a39z(0x1a4)],'mustBeInMakaProject':!![],'usage':a39z(0x19c),'description':'If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.','examples':[a39z(0x19c)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a39d;try{const c=this[G(0x19f)]['getConfigPath'](b['env']),d=a39v[G(0x1ab)](c,G(0x197)),f=a39u[G(0x18f)](d)[G(0x1a6)]();let g=JSON[G(0x1a0)](f);Object[G(0x1b9)](g,{'env':c}),Log[G(0x1bc)](G(0x1ac));try{let k=SSH[G(0x187)](G(0x1b0),g);if(!k)throw G(0x191);if(k)Log[G(0x189)]('Remote\x20host\x20connection\x20successful');}catch(l){if(G(0x190)!==G(0x190)){const n=d[G(0x1a9)](l,arguments);return f=null,n;}else throw l;}let h=a39v[G(0x1ab)](c,G(0x1a7),'ses.json');if(a39u[G(0x18a)](h)){if('QFyAI'===G(0x1aa))return f instanceof g?h:new i(function(o){o(k);});else{let o={'source':h,'dest':G(0x1be),'verbose':!![]};SSH[G(0x193)](o,Object[G(0x1b9)]({},g));}}let i=a39v[G(0x1ab)](c,'pm2.config.js');SSH[G(0x193)]({'source':i,'dest':'~/pm2.config.js','verbose':!![]},Object['assign']({},g));let j=a39v[G(0x1ab)](c,G(0x19a));SSH[G(0x193)]({'source':j,'dest':G(0x1a2),'verbose':!![]},Object['assign']({},g)),SSH['sshSync'](G(0x1b6),g),yield SSH[G(0x1a1)](G(0x19b),Object['assign']({},g),{'verbose':!![]});}catch(p){console[G(0x1ad)](p),process['exit'](0x0);}});});
|
package/dist/commands/run.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a40I=a40d;(function(a,b){const
|
|
1
|
+
const a40I=a40d;(function(a,b){const F=a40d,c=a();while(!![]){try{const d=-parseInt(F(0xf9))/0x1*(-parseInt(F(0xc8))/0x2)+parseInt(F(0xed))/0x3*(-parseInt(F(0xba))/0x4)+parseInt(F(0x100))/0x5+parseInt(F(0x118))/0x6+parseInt(F(0xf8))/0x7*(-parseInt(F(0xf0))/0x8)+-parseInt(F(0xce))/0x9+parseInt(F(0xec))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x6370f));const a40b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a40d;if(G(0xdb)===G(0xc1))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)';else{if(c){if(G(0xfc)!==G(0xda)){const f=c[G(0xf7)](b,arguments);return c=null,f;}else c['splice'](d,0x2);}}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){const H=a40d;return a40a['toString']()[H(0xdc)]('(((.+)+)+)+$')[H(0x104)]()[H(0x10f)](a40a)[H(0xdc)](H(0xe5));});function a40d(a,b){const c=a40c();return a40d=function(d,e){d=d-0xba;let f=c[d];return f;},a40d(a,b);}a40a();var __awaiter=this&&this[a40I(0x112)]||function(a,b,c,d){function e(f){const J=a40d;if(J(0xbb)===J(0xbb))return f instanceof c?f:new c(function(g){g(f);});else try{i(j[J(0x10d)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const N=a40d;function h(k){const K=a40d;try{j(d[K(0x10d)](k));}catch(l){g(l);}}function i(k){const L=a40d;try{j(d[L(0x111)](k));}catch(l){g(l);}}function j(k){const M=a40d;k[M(0xc5)]?f(k['value']):e(k['value'])[M(0xd2)](h,i);}j((d=d[N(0xf7)](a,b||[]))['next']());});};import a40A from'path';import a40B from'fs';import a40C from'dotenv';import{execSync}from'child_process';import a40D from'http-proxy';import{Command}from'../command.js';function a40c(){const Q=['next','env','constructor','config/docker-compose.yaml','throw','__awaiter','.crt','appName','ardqh','PanRD','getProjectConfig','510696RCtXrO','mobileServer','docker-compose\x20--project-directory\x20','PM2\x20Config\x20File:\x20','lQHYu','join','56AZpllH','gQwqA','listen','readFileSync','LNOCs','settings.json','MrcCh','cBRSC','concat','xgUnz','--production','done','pm2.config.js','production','23428PjgoLT','split','compareMakaToLatest','docker','localhost','invokeMeteorCommand','7285887RmxVub','--env','Cannot\x20find\x20Node\x20Environment\x20File:\x20','verbose','then','isFile','existsSync','templateContent','notice','Meteor\x20Settings:\x20','UngKT','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','wqDXk','pjhaQ','search','.key','fsi','getConfigPath','argv','Sjpar','warn','\x20up\x20--remove-orphans','maka\x20run\x0a\x20\x20\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\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\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20\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\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\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\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\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20\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\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20\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\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20\x20\x20--docker\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Build\x20and\x20run\x20the\x20application\x20in\x20a\x20docker\x20container.\x20Requires\x20Docker.\x0a\x0a\x20\x20\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\x20\x20\x20removes\x20development\x20packages.','(((.+)+)+)+$','Docker\x20Compose\x20Path:\x20','inherit','ZIpXc','filter','splice','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)','4276670aJIUKL','48054UONxsR','ylFru','ssl','2178008VvplIl','_keys','push','exclude-archs','process.env','twGhM','create','apply','7LGLIqT','47dfvdfk','allowIncompatibleUpdate','Node\x20Env\x20Config:\x20','xgpKd','run','=>\x20SSL\x20Proxy\x20running\x20at\x204000','inspect','3250080PmlSkc','settings','port','qPUYB','toString','exit','Run\x20your\x20app\x20for\x20a\x20given\x20environment\x20or\x20in\x20docker.','mobile-server','utf8','bright','sep','docker-compose.yaml','YmDJr'];a40c=function(){return Q;};return a40c();}import{Log}from'../tools/log/log.class.js';import{paramCase}from'change-case';const syncSource=function(a){a40B['openSync'](a,'r'),a40C['config']({'path':a});};Command[a40I(0xf6)]({'name':a40I(0xfd),'mustBeInMakaProject':!![],'usage':a40I(0xe4),'validOpts':[a40I(0x10e),a40I(0xcb),'r','rawLogs','p',a40I(0x102),'i',a40I(0xff),'m',a40I(0x119),'v',a40I(0xd1),a40I(0xfa),'extraPackages','x',a40I(0xf3),a40I(0xc7),a40I(0xef)],'description':a40I(0x106)},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const O=a40d;if(O(0xe8)===O(0xe8))try{if(b[O(0x107)]&&b[O(0x107)]===!![]||b['m']&&b['m']===!![]){if(O(0x11c)!=='lQHYu'){const m=this[O(0xde)][O(0xdf)](O(0xcb)),n=j[O(0x11d)](m,O(0x10b)),o=k[O(0x11d)](m,O(0xc6));l[O(0xd6)](O(0x11b)+o),m['notice'](O(0xe6)+n);if(!n[O(0xd4)](n)){const p={'app':s[O(0x114)],'appFileCase':t(u['appName'])};let q=this['fsi']['templateContent']({'srcPath':O(0x110),'context':p})+'\x0a';this[O(0xde)]['createFile']({'filePath':n,'data':q});}r('docker-compose\x20--project-directory\x20'+m+O(0xe3),{'stdio':'inherit'});}else throw O(0xeb);}yield this[O(0xde)][O(0xca)]();let c=this['fsi'][O(0x117)]();const d=b[O(0x10e)]?b[O(0x10e)]:'development',f=this[O(0xde)]['getConfigPath'](d),g=a40A[O(0x11d)](f,O(0xf4));let h=a40A[O(0x11d)](f,O(0xbf));b[O(0x101)]?h=b[O(0x101)]:h=a40A[O(0x11d)](f,O(0xbf));if(this[O(0xde)][O(0xd3)](g)&&!b[O(0xcb)]){if(O(0xd8)===O(0xd8))Log['notice'](O(0xfb)+g),syncSource(g);else{const n=l[O(0x11d)](m,'_keys',n[O(0x114)]+O(0xdd)),o=o['join'](p,O(0xf1),q[O(0x114)]+O(0x113));r[O(0xd6)](n);const p={'ssl':{'key':s[O(0xbd)](n,O(0x108)),'cert':t[O(0xbd)](o,O(0x108))},'target':{'host':'localhost','port':0xbb8},'ws':!![],'xfwd':!![]},q=u['createProxyServer'](p)[O(0xbc)](0xfa0);v[O(0x109)](O(0xfe));}}else{if(!b[O(0xcb)]){if(O(0xee)!==O(0xbe))Log['warn'](O(0xd0)+g);else return f instanceof g?h:new i(function(o){o(k);});}}this[O(0xde)]['isFile'](h)?O(0xc3)!==O(0xf5)?(Log[O(0xd6)](O(0xd7)+h),a=a[O(0xc2)](['--settings',h])):c[O(0xea)](d,0x2):Log[O(0xe2)](O(0xd9)+h);const i=f[O(0xc9)](a40A[O(0x10a)]),j=i[i['length']-0x1];j===O(0xc7)&&a[O(0xf2)](O(0xc4));const k=process[O(0xe0)]['slice'](0x2)['filter'](p=>p!==O(0xfd))[O(0xe9)](p=>p!==a[0x0]);k['forEach']((p,q)=>{const P=O;p===P(0xcf)&&(P(0x10c)===P(0x103)?d=e[P(0x11d)](f,P(0xbf)):k[P(0xea)](q,0x2));if(p==='-e'){if(P(0xe1)!==P(0xe1)){if(e){const t=i[P(0xf7)](j,arguments);return k=null,t;}}else k['splice'](q,0x2);}});if(b[O(0xcb)]){if('grZhr'===O(0x115))c[O(0xe2)](O(0xd0)+d);else{const q=this[O(0xde)][O(0xdf)](O(0xcb)),r=a40A[O(0x11d)](q,O(0x10b)),s=a40A[O(0x11d)](q,O(0xc6));Log[O(0xd6)](O(0x11b)+s),Log[O(0xd6)](O(0xe6)+r);if(!a40B['existsSync'](r)){if(O(0x116)!==O(0x116))e[O(0xd6)](O(0xfb)+f),g(h);else{const u={'app':c['appName'],'appFileCase':paramCase(c[O(0x114)])};let v=this[O(0xde)][O(0xd5)]({'srcPath':O(0x110),'context':u})+'\x0a';this[O(0xde)]['createFile']({'filePath':r,'data':v});}}execSync(O(0x11a)+q+O(0xe3),{'stdio':O(0xe7)});}}else{if(b[O(0xef)]){if('ToHQI'===O(0xc0))c(d);else{const x=a40A[O(0x11d)](f,O(0xf1),c[O(0x114)]+'.key'),y=a40A[O(0x11d)](f,O(0xf1),c[O(0x114)]+O(0x113));Log[O(0xd6)](x);const z={'ssl':{'key':a40B[O(0xbd)](x,O(0x108)),'cert':a40B[O(0xbd)](y,O(0x108))},'target':{'host':O(0xcc),'port':0xbb8},'ws':!![],'xfwd':!![]},A=a40D['createProxyServer'](z)['listen'](0xfa0);Log[O(0x109)](O(0xfe));}}else this[O(0xde)][O(0xcd)](O(0xfd),a[O(0xc2)](k));}}catch(B){console['error'](B),process[O(0x105)](0x0);}else{const D=g?function(){if(D){const E=q['apply'](r,arguments);return s=null,E;}}:function(){};return l=![],D;}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a41d,c=a();while(!![]){try{var d=parseInt(u(
|
|
1
|
+
function a41d(a,b){var c=a41c();return a41d=function(d,e){d=d-0x112;var f=c[d];return f;},a41d(a,b);}(function(a,b){var u=a41d,c=a();while(!![]){try{var d=parseInt(u(0x11e))/0x1*(-parseInt(u(0x11b))/0x2)+parseInt(u(0x118))/0x3*(parseInt(u(0x11c))/0x4)+-parseInt(u(0x11d))/0x5+-parseInt(u(0x116))/0x6+parseInt(u(0x114))/0x7+-parseInt(u(0x115))/0x8+-parseInt(u(0x112))/0x9*(-parseInt(u(0x11f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x94697));var a41b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a41d;if(c){var e=c[v(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){var w=a41d;return a41a['toString']()['search'](w(0x113))[w(0x11a)]()[w(0x117)](a41a)['search'](w(0x113));});function a41c(){var x=['7049343JARPiE','2217072dzoRVB','2940288JMKhox','constructor','6fGQiUj','apply','toString','2506MsQqSc','1176268LIEYfS','4649210vBJVvO','539qAzwgA','13851030RFaXNK','9vNmNVb','(((.+)+)+)+$'];a41c=function(){return x;};return a41c();}a41a();import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a42A=a42d;
|
|
1
|
+
const a42A=a42d;(function(a,b){const x=a42d,c=a();while(!![]){try{const d=parseInt(x(0x1e6))/0x1*(-parseInt(x(0x1dd))/0x2)+-parseInt(x(0x1ce))/0x3+parseInt(x(0x1c8))/0x4+-parseInt(x(0x1f0))/0x5+-parseInt(x(0x1df))/0x6+-parseInt(x(0x1f7))/0x7*(-parseInt(x(0x1da))/0x8)+-parseInt(x(0x1eb))/0x9*(-parseInt(x(0x1dc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x8f69c));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a42d;if(y(0x1ca)!=='qcSha'){if(c){const e=c[y(0x1cb)](b,arguments);return c=null,e;}}else try{i(j[y(0x1e9)](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const z=a42d;return a42a[z(0x1c7)]()[z(0x1f4)](z(0x1e5))[z(0x1c7)]()[z(0x1f2)](a42a)['search']('(((.+)+)+)+$');});function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x1c3;let f=c[d];return f;},a42d(a,b);}a42a();var __awaiter=this&&this[a42A(0x1f9)]||function(a,b,c,d){function e(f){const B=a42d;if(B(0x1d1)!==B(0x1d1)){const h=this[B(0x1ed)]['isDirectory'](h[B(0x1fa)]);if(h)this[B(0x1ed)][B(0x1d2)]({'config':{'workspace':o[B(0x1cc)](p[B(0x1fa)])}}),q[B(0x1d4)]('Set\x20workspace:\x20'+r['resolve'](s[B(0x1fa)]));else throw t[B(0x1e0)]('Could\x20not\x20find\x20directory');}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const F=a42d;function h(k){const C=a42d;try{j(d[C(0x1e9)](k));}catch(l){'gCFUn'!==C(0x1cf)?(this['fsi']['setGlobalConfig']({'config':{'cert':d['cacert']}}),l[C(0x1d4)](C(0x1d3)+f['cacert'])):g(l);}}function i(k){const D=a42d;if(D(0x1db)!=='CKTGd')throw b[D(0x1e0)]('Could\x20not\x20find\x20directory');else try{'ltSoe'!==D(0x1cd)?j(d[D(0x1d6)](k)):c(d);}catch(n){g(n);}}function j(k){const E=a42d;k[E(0x1e7)]?f(k['value']):e(k['value'])[E(0x1e8)](h,i);}j((d=d[F(0x1cb)](a,b||[]))[F(0x1e9)]());});};import a42v from'path';import a42w from'./set.command.js';function a42c(){const I=['3717783AUTKZC','wwzNg','fsi','One\x20or\x20the\x20other\x20buddy','disallowInsecure','1435300xpluZm','BDIOT','constructor','Set\x20allowInsecure:\x20','search','Could\x20not\x20find\x20directory','cacert','3101cisTdW','exit','__awaiter','workspace','maka\x20set:g\x20--workspace\x20<path>','isFile','global','uZALc','toString','107776hnFNiv','ILeuZ','xSICc','apply','resolve','rneEQ','1448370iaZTUx','gCFUn','allowInsecure','Ftwsh','setGlobalConfig','Set\x20CA\x20Cert\x20Path:\x20','success','dGoLL','throw','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','Set\x20workspace:\x20','boolean','20856kObFgE','CKTGd','40KZQBXv','4TiFcKw','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','3355062nlXJst','error','sftnr','KwFJc','aJcac','nfwOT','(((.+)+)+)+$','458873pZTZwi','done','then','next','create'];a42c=function(){return I;};return a42c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a42A(0x1ea)]({'name':a42A(0x1c5),'usage':'maka\x20set:global\x20<args>','minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':[a42A(0x1f6),a42A(0x1d0),a42A(0x1ef),a42A(0x1fa)],'description':'\x0a\x20\x20\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','examples':['maka\x20set:global\x20--cacert\x20<path>','maka\x20set:g\x20--insecure\x20<path>',a42A(0x1c3)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a42d;if(G(0x1c6)!==G(0x1f1))try{if(b[G(0x1f6)]){if(this[G(0x1ed)][G(0x1c4)](b['cacert'])){if(G(0x1e2)!==G(0x1ec))this[G(0x1ed)][G(0x1d2)]({'config':{'cert':b[G(0x1f6)]}}),Log[G(0x1d4)]('Set\x20CA\x20Cert\x20Path:\x20'+b[G(0x1f6)]);else{if(this[G(0x1ed)][G(0x1c4)](h['cacert']))this[G(0x1ed)][G(0x1d2)]({'config':{'cert':o[G(0x1f6)]}}),p[G(0x1d4)]('Set\x20CA\x20Cert\x20Path:\x20'+q[G(0x1f6)]);else{const d=typeof r[G(0x1f6)]===G(0x1d9)?'Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.':G(0x1de)+s['cacert'];throw t[G(0x1e0)](d);}}}else{if(G(0x1e3)!==G(0x1e3))d[G(0x1e0)](e),f[G(0x1f8)](0x0);else{const f=typeof b['cacert']==='boolean'?G(0x1d7):G(0x1de)+b['cacert'];throw Log[G(0x1e0)](f);}}}if(b[G(0x1fa)]){if(G(0x1e4)===G(0x1e4)){const g=this['fsi']['isDirectory'](b[G(0x1fa)]);if(g)G(0x1c9)!==G(0x1c9)?d(e[G(0x1d6)](f)):(this[G(0x1ed)][G(0x1d2)]({'config':{'workspace':a42v[G(0x1cc)](b[G(0x1fa)])}}),Log[G(0x1d4)](G(0x1d8)+a42v[G(0x1cc)](b[G(0x1fa)])));else throw Log[G(0x1e0)](G(0x1f5));}else{const j=g?function(){const H=G;if(j){const u=q[H(0x1cb)](r,arguments);return s=null,u;}}:function(){};return l=![],j;}}if(b[G(0x1d0)]){if(G(0x1d5)===G(0x1d5)){if(b[G(0x1d0)]&&b[G(0x1ef)]){if(G(0x1e1)==='sftnr')throw Log[G(0x1e0)](G(0x1ee));else b=![];}let j=b['allowInsecure'];b['disallowInsecure']&&(j=![]),this[G(0x1ed)][G(0x1d2)]({'config':{'allowInsecure':j}}),Log[G(0x1d4)](G(0x1f3)+j);}else h[G(0x1e7)]?i(j['value']):k(l['value'])['then'](m,n);}}catch(m){console['error'](m),process[G(0x1f8)](0x0);}else{if(e){const o=i['apply'](j,arguments);return k=null,o;}}});},a42w);
|