@maka/maka-cli 4.4.0 → 4.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/README.md +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.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/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/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.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/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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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/version.js +1 -1
- package/bundle/obf/src/error.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/kit.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/actions/actions.test.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/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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a36c(){const A=['sha256','setGlobalConfig','36NOveeK','/api/v1/login','failure','/api/v1/encodeJwt','285guKyMi','login','\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','14044NHFidm','success','Preflight\x20Check','search','start','ask','localhost','www.maka-cli.com','toString','assign','email','Could\x20not\x20make\x20a\x20secure\x20connection.\x0a[-]\x20Please\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://','2730PfWmwb','create','220969KngCDA','get','header','Email:','Logging\x20in','debug','toHex','fsi','351pQbloW','parse','/api/v1/status','isFile','post','cacert','cert','4581841kPeWUW','password','maka\x20login','Logging\x20into\x20https://','71472zqCwTN','help','18xQwhYH','Using\x20CA\x20Cert\x20','error','479063MCZmlA','199fBNPiC','(((.+)+)+)+$','withSpinner','authToken','env','True','notice','10XuiOUb','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','1328328ZscGUA','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','maka\x20login\x20--email\x20<address>\x20--password\x20<password>','getGlobalConfig','exit'];a36c=function(){return A;};return a36c();}function a36d(a,b){const c=a36c();return a36d=function(d,e){d=d-0x189;let f=c[d];return f;},a36d(a,b);}const a36y=a36d;(function(a,b){const w=a36d,c=a();while(!![]){try{const d=parseInt(w(0x1c4))/0x1*(-parseInt(w(0x1a9))/0x2)+parseInt(w(0x18f))/0x3+-parseInt(w(0x19d))/0x4*(-parseInt(w(0x19a))/0x5)+parseInt(w(0x1c0))/0x6*(-parseInt(w(0x1ab))/0x7)+-parseInt(w(0x1be))/0x8*(parseInt(w(0x1b3))/0x9)+parseInt(w(0x18d))/0xa*(parseInt(w(0x1ba))/0xb)+parseInt(w(0x196))/0xc*(-parseInt(w(0x1c3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a36c,0x39287));const a36b=(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;};}()),a36a=a36b(this,function(){const x=a36d;return a36a[x(0x1a5)]()['search'](x(0x1c5))['toString']()['constructor'](a36a)[x(0x1a0)](x(0x1c5));});a36a();import a36e from'node-forge';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';const hostname=process[a36y(0x18a)]['MAKA_DEV']===a36y(0x18b)?a36y(0x1a3):a36y(0x1a4);Command['create']({'name':a36y(0x19b),'validOpts':[a36y(0x1a7),'password',a36y(0x1bf),a36y(0x1b8),a36y(0x1b0)],'usage':'maka\x20login\x20<opts>','maxArgLength':0x2,'disableAuthCheck':!![],'shortDesc':'Retrieves\x20login\x20information\x20from\x20www.maka-cli.com,\x20and\x20stores\x20a\x20hash\x20in\x20~/.maka','examples':[a36y(0x1bc),a36y(0x191)]},async function(a,b){const z=a36y,c=Log[z(0x1c6)]();try{let d='';b['cacert']&&(this[z(0x1b2)][z(0x1b6)](b[z(0x1b8)])?(d=b[z(0x1b8)],Log[z(0x18c)](z(0x1c1)+d)):Log[z(0x1c2)](z(0x18e)+d));const f=await this[z(0x1b2)][z(0x192)]();if(f[z(0x1b9)]){if(this['fsi'][z(0x1b6)](f[z(0x1b9)]))d=f['cert'];else{Log[z(0x1c2)]('CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20'+d);return;}}Log[z(0x1ad)](z(0x1bd)+hostname);const g={'url':'https://'+hostname+z(0x1b5)};b[z(0x1b8)]&&Object[z(0x1a6)](g,{'cert':d});c[z(0x1a1)](z(0x19f));const {statusCode:h}=await HTTPS[z(0x1ac)](g);if(h===0x198){c[z(0x198)]();throw z(0x190);}if(h!==0xc8){c[z(0x198)]();throw'https://'+hostname+z(0x19c);}c[z(0x19e)]();const i=b[z(0x1a7)]?b['email']:await Actions[z(0x1a2)](z(0x1ae)),j=b['password']?b[z(0x1bb)]:await Actions[z(0x1a2)]('Password:\x20',!![]),k=a36e['md'][z(0x194)][z(0x1aa)]();k['update'](j);const l=k['digest']()[z(0x1b1)](),m={'hostname':hostname,'path':z(0x197),'data':{'email':i,'password':l,'hashed':!![]}};b['cacert']&&Object[z(0x1a6)](m,{'cert':d});c[z(0x1a1)](z(0x1af));const {data:n,statusCode:o}=await HTTPS[z(0x1b7)](m);if(o===0x198){c[z(0x198)]('\x0a');throw z(0x1a8)+hostname;}const p=JSON[z(0x1b4)](n);if(p[z(0x189)]){const q={'hostname':hostname,'path':z(0x199),'headers':{'x-auth-token':p['authToken']},'data':{}};b['cacert']&&Object[z(0x1a6)](q,{'cert':d});const {data:r,statusCode:s}=await HTTPS[z(0x1b7)](q),{token:t}=JSON[z(0x1b4)](r);if(s===0x198)throw z(0x1a8)+hostname;const u={'token':p,'hash':t};this[z(0x1b2)][z(0x195)](u);}else{c[z(0x198)]();throw p;}c['success']();}catch(v){c[z(0x198)](),console[z(0x1c2)](v),process[z(0x193)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-
|
|
1
|
+
const a37o=a37d;function a37d(a,b){const c=a37c();return a37d=function(d,e){d=d-0xbe;let f=c[d];return f;},a37d(a,b);}(function(a,b){const l=a37d,c=a();while(!![]){try{const d=-parseInt(l(0xe2))/0x1+-parseInt(l(0xe8))/0x2+parseInt(l(0xe0))/0x3*(-parseInt(l(0xe6))/0x4)+-parseInt(l(0xe5))/0x5+-parseInt(l(0xc7))/0x6*(parseInt(l(0xe1))/0x7)+parseInt(l(0xcd))/0x8*(-parseInt(l(0xe9))/0x9)+parseInt(l(0xc2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a37c,0x868da));const a37b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a37d;if(c){const e=c[m(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a37a=a37b(this,function(){const n=a37d;return a37a[n(0xc9)]()[n(0xce)](n(0xd2))[n(0xc9)]()[n(0xd4)](a37a)['search'](n(0xd2));});a37a();import{Command}from'../command.js';function a37c(){const q=['https://www.maka-cli.com\x20seems\x20to\x20be\x20having\x20a\x20problem.\x20\x20Please\x20report\x20a\x20bug\x20at:\x20https://github.com/maka-io/maka-cli','toString','exit','Logs\x20out\x20of\x20all\x20user\x20sessions\x20(CLI\x20and\x20browser).','cacert','8224VwCRRH','search','/api/v1/status','apply','success','(((.+)+)+)+$','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','constructor','True','post','error','https://','maka\x20logout','cert','Preflight\x20Check','start','setGlobalConfig','maka\x20logout\x20<opts>','token','3dSbaAC','21cRWOMl','411078gdkNHu','header','Cannot\x20find\x20login\x20token,\x20are\x20you\x20sure\x20you\x20are\x20logged\x20in?','4705065RhEGIH','507436XKSfNP','failure','869078HghoNb','8649RoGHIb','Using\x20CA\x20Cert\x20','logout','isFile','getGlobalConfig','Logging\x20out\x20of\x20https://','Logging\x20out','fsi','assign','authToken','35849650MQvVTB','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com','withSpinner','create','264876MsmyeC'];a37c=function(){return q;};return a37c();}import{Log}from'../tools/log/log.class.js';import{HTTPS}from'../tools/https/https.class.js';const hostname=process['env']['MAKA_DEV']===a37o(0xd5)?'localhost':'www.maka-cli.com';Command[a37o(0xc6)]({'name':a37o(0xeb),'validOpts':[a37o(0xcc)],'usage':a37o(0xde),'maxArgLength':0x2,'shortDesc':a37o(0xcb),'disableAuthCheck':!![],'examples':[a37o(0xd9)]},async function(a,b){const p=a37o,c=Log[p(0xc5)]();try{let d='';b[p(0xcc)]&&(this[p(0xbf)][p(0xec)](b[p(0xcc)])?(d=b['cacert'],Log['notice'](p(0xea)+d)):Log['error'](p(0xd3)+d));const f=await this[p(0xbf)][p(0xed)]();if(f['cert']){if(this[p(0xbf)][p(0xec)](f[p(0xda)]))d=f[p(0xda)];else{c[p(0xe7)]();throw Log['error'](p(0xc3)+d);}}Log[p(0xe3)](p(0xee)+hostname);const g={'url':p(0xd8)+hostname+p(0xcf)};b[p(0xcc)]&&Object[p(0xc0)](g,{'cert':d});c[p(0xdc)](p(0xdb));const {statusCode:h}=await HTTPS['get'](g);if(h===0x198){c[p(0xe7)]();throw p(0xc4);}c[p(0xd1)]();if(h!==0xc8){c[p(0xe7)]();throw p(0xc8);}if(!f?.[p(0xdf)]?.[p(0xc1)])throw Log[p(0xd7)](p(0xe4));c[p(0xdc)](p(0xbe));const i={'hostname':hostname,'path':'/api/v1/logoutAll','data':{},'headers':{'x-auth-token':f[p(0xdf)][p(0xc1)]}};b[p(0xcc)]&&Object['assign'](i,{'cert':d});const {statusCode:j}=await HTTPS[p(0xd6)](i);if(j===0x198){c[p(0xe7)]('\x0a');throw'Could\x20not\x20make\x20a\x20secure\x20connection.\x0aPlease\x20ensure\x20you\x20are\x20able\x20to\x20access\x20https://www.maka-cli.com';}this[p(0xbf)][p(0xdd)]({'token':{'authToken':'','userId':'','when':''},'hash':''}),c[p(0xd1)]();}catch(k){k&&console[p(0xd7)](k),process[p(0xca)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d
|
|
1
|
+
const a38k=a38d;(function(a,b){const h=a38d,c=a();while(!![]){try{const d=-parseInt(h(0x82))/0x1+-parseInt(h(0x87))/0x2*(-parseInt(h(0x79))/0x3)+parseInt(h(0x7f))/0x4*(-parseInt(h(0x75))/0x5)+parseInt(h(0x88))/0x6*(parseInt(h(0x81))/0x7)+parseInt(h(0x7c))/0x8*(parseInt(h(0x7a))/0x9)+-parseInt(h(0x6a))/0xa*(parseInt(h(0x6e))/0xb)+-parseInt(h(0x7b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a38c,0x36f30));const a38b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a38d;if(c){const e=c[i(0x6c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a38a=a38b(this,function(){const j=a38d;return a38a['toString']()['search'](j(0x84))['toString']()[j(0x83)](a38a)[j(0x77)]('(((.+)+)+)+$');});a38a();import a38e from'fs';import a38f from'path';import{Command}from'../command.js';function a38d(a,b){const c=a38c();return a38d=function(d,e){d=d-0x6a;let f=c[d];return f;},a38d(a,b);}function a38c(){const m=['maka\x20logs\x20--env\x20dev','apply','logs','11Jnkikx','assign','join','getConfigPath','maka\x20logs\x20--env\x20prod','ssh.json','log','19815djcEAU','sshSync','search','create','42MAppFv','640368JKzpUT','2857656QljpHf','32fDOlUV','pm2\x20logs','View\x20the\x20PM2\x20logs','84ahTbSa','maka\x20l\x20-e\x20p','455840ObrVzI','82054aFWJyG','constructor','(((.+)+)+)+$','env','toString','36530WlwrvM','30QpWKvr','parse','maka\x20logs\x20--env\x20staging','2374310zivNkK'];a38c=function(){return m;};return a38c();}import{SSH}from'../tools/ssh/ssh.class.js';Command[a38k(0x78)]({'name':a38k(0x6d),'aliases':['l',a38k(0x74)],'usage':a38k(0x72),'requiredOpts':[a38k(0x85)],'mustBeInMakaProject':!![],'validOpts':[''],'shortDesc':a38k(0x7e),'examples':[a38k(0x6b),a38k(0x8a),a38k(0x80)]},function(a,b){const l=a38k,c=l(0x7d),d=this['fsi'][l(0x71)](b[l(0x85)]),e=a38f[l(0x70)](d,l(0x73)),f=a38e['readFileSync'](e),g=JSON[l(0x89)](f[l(0x86)]());Object[l(0x6f)](g,{'env':d}),SSH[l(0x76)](c,g,{'tty':!![],'verbose':!![]});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a39c(){const l=['maka','maka\x20run','exit','\x0a\x20\x20Hi,\x20my\x20name\x20is\x20Matt.\x20I\x27ve\x20spent\x20a\x20long\x20time\x20developing\x20Meteor\x0a\x20\x20applications\x20and\x20I\x27ve\x20tried\x20my\x20very\x20best\x20to\x20collect\x20the\x20most\x0a\x20\x20efficient\x20ways\x20to\x20go\x20about\x20setting\x20up\x20and\x20organizing\x20your\x20project.\x0a\x0a\x20\x20I\x20created\x20Maka-CLI\x20as\x20a\x20need\x20to\x20develop\x20prototypes\x20quickly\x0a\x20\x20for\x20a\x20relatively\x20small\x20consulting\x20firm.\x20We\x20had\x20small\x20budgets\x0a\x20\x20for\x20projects,\x20and\x20even\x20smaller\x20budgets\x20for\x20proposals\x20and\x20prototypes.\x0a\x20\x20Maka-CLI\x20was\x20a\x20way\x20to\x20develop\x20our\x20applications\x20quickly\x20and\x20make\x20very\x0a\x20\x20aggresive\x20deadlines.\x0a\x0a\x20\x20Many\x20features\x20are\x20available\x20in\x20the\x20Free\x20License,\x20enough\x20to\x20get\x20your\x0a\x20\x20application\x20scaffolded\x20and\x20built.\x20The\x20Pro\x20Single-License\x20includes\x0a\x20\x20commands\x20that\x20will\x20allow\x20you\x20to\x20create\x20cloud\x20instances\x20(on\x20AWS),\x0a\x20\x20deploy\x20to\x20remote\x20hosts\x20(Ubuntu)\x20and\x20streamline\x20every\x20day\x20tasks,\x20such\x0a\x20\x20as\x20monitoring\x20your\x20application\x20logs.\x0a\x0a\x20\x20Make-CLI\x20has\x20one\x20main\x20goal\x20--\x20provide\x20simple\x20tools\x20to\x20create\x20a\x0a\x20\x20structure\x20for\x20your\x20application,\x20and\x20build\x20/\x20maintain\x20it\x20in\x20a\x20repeatable\x0a\x20\x20manner.\x20This\x20is\x20the\x20nature\x20of\x20scaffolding.\x0a\x0a\x20\x20Thank\x20you\x20for\x20your\x20interest\x20in\x20Maka-CLI!\x20🙏\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x20\x20https://maka-io.medium.com/build-your-webapp-with-meteor-maka-cli-629b7b16831d\x0a\x0a\x20\x20Please\x20ping\x20me\x20on\x20Gitter\x27s\x20Meteor\x20space\x20if\x20you\x20have\x20any\x20questions:\x0a\x20\x20@maka-io\x0a\x20\x20','
|
|
1
|
+
function a39c(){const l=['maka\x20<command>\x20[<args>]\x20[<opts>]','2KWmHfC','runSubCommand','48iwInzj','findSubCommand','error','330942ZoohAi','constructor','maka\x20run','maybeProxyCommandToMeteor','(((.+)+)+)+$','32Brmukc','36190pUpfwl','search','maka','toString','exit','1158nGVbsY','879253ALYUvW','apply','344AqSvas','4718483YwCXzT','\x0a\x20\x20Hi,\x20my\x20name\x20is\x20Matt.\x20I\x27ve\x20spent\x20a\x20long\x20time\x20developing\x20Meteor\x0a\x20\x20applications\x20and\x20I\x27ve\x20tried\x20my\x20very\x20best\x20to\x20collect\x20the\x20most\x0a\x20\x20efficient\x20ways\x20to\x20go\x20about\x20setting\x20up\x20and\x20organizing\x20your\x20project.\x0a\x0a\x20\x20I\x20created\x20Maka-CLI\x20as\x20a\x20need\x20to\x20develop\x20prototypes\x20quickly\x0a\x20\x20for\x20a\x20relatively\x20small\x20consulting\x20firm.\x20We\x20had\x20small\x20budgets\x0a\x20\x20for\x20projects,\x20and\x20even\x20smaller\x20budgets\x20for\x20proposals\x20and\x20prototypes.\x0a\x20\x20Maka-CLI\x20was\x20a\x20way\x20to\x20develop\x20our\x20applications\x20quickly\x20and\x20make\x20very\x0a\x20\x20aggresive\x20deadlines.\x0a\x0a\x20\x20Many\x20features\x20are\x20available\x20in\x20the\x20Free\x20License,\x20enough\x20to\x20get\x20your\x0a\x20\x20application\x20scaffolded\x20and\x20built.\x20The\x20Pro\x20Single-License\x20includes\x0a\x20\x20commands\x20that\x20will\x20allow\x20you\x20to\x20create\x20cloud\x20instances\x20(on\x20AWS),\x0a\x20\x20deploy\x20to\x20remote\x20hosts\x20(Ubuntu)\x20and\x20streamline\x20every\x20day\x20tasks,\x20such\x0a\x20\x20as\x20monitoring\x20your\x20application\x20logs.\x0a\x0a\x20\x20Make-CLI\x20has\x20one\x20main\x20goal\x20--\x20provide\x20simple\x20tools\x20to\x20create\x20a\x0a\x20\x20structure\x20for\x20your\x20application,\x20and\x20build\x20/\x20maintain\x20it\x20in\x20a\x20repeatable\x0a\x20\x20manner.\x20This\x20is\x20the\x20nature\x20of\x20scaffolding.\x0a\x0a\x20\x20Thank\x20you\x20for\x20your\x20interest\x20in\x20Maka-CLI!\x20🙏\x0a\x0a\x20\x20Scaffold\x20Web\x20Applications\x20with\x20Meteor\x20and\x20Maka-CLI\x0a\x20\x20https://maka-io.medium.com/build-your-webapp-with-meteor-maka-cli-629b7b16831d\x0a\x0a\x20\x20Please\x20ping\x20me\x20on\x20Gitter\x27s\x20Meteor\x20space\x20if\x20you\x20have\x20any\x20questions:\x0a\x20\x20@maka-io\x0a\x20\x20','184430TekPAj','1925bzmkls','342ChtiZe','maka\x20--help','maka\x20create\x20Todo','6017791sCVXGz'];a39c=function(){return l;};return a39c();}const a39j=a39d;(function(a,b){const g=a39d,c=a();while(!![]){try{const d=-parseInt(g(0x109))/0x1*(-parseInt(g(0x115))/0x2)+-parseInt(g(0x11a))/0x3*(-parseInt(g(0x11f))/0x4)+-parseInt(g(0x10f))/0x5*(-parseInt(g(0x108))/0x6)+-parseInt(g(0x120))/0x7*(-parseInt(g(0x10b))/0x8)+-parseInt(g(0x110))/0x9*(-parseInt(g(0x10e))/0xa)+-parseInt(g(0x10c))/0xb+parseInt(g(0x117))/0xc*(-parseInt(g(0x113))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a39c,0x74da9));const a39b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a39d;if(c){const e=c[h(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a39a=a39b(this,function(){const i=a39d;return a39a[i(0x123)]()[i(0x121)](i(0x11e))[i(0x123)]()[i(0x11b)](a39a)[i(0x121)](i(0x11e));});a39a();import{Command}from'../command.js';function a39d(a,b){const c=a39c();return a39d=function(d,e){d=d-0x107;let f=c[d];return f;},a39d(a,b);}const Maka=new Command({'name':a39j(0x122),'minArgLength':0x1,'shortDesc':'A\x20command\x20line\x20scaffolding\x20and\x20Dev\x20Ops\x20tool\x20for\x20Meteor\x20applications.','validOpts':[],'usage':a39j(0x114),'disableAuthCheck':!![],'examples':[a39j(0x111),'maka\x20install\x20meteor',a39j(0x112),a39j(0x11c)],'description':a39j(0x10d)},async function(a,b){const k=a39j;try{const c=a[0x0],d=this[k(0x118)](c);d?this[k(0x116)](c,a['slice'](0x1),b):this['fsi'][k(0x11d)]();}catch(f){console[k(0x119)](f),process[k(0x107)](0x1);}});export default Maka;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a40i=a40d;(function(a,b){var f=a40d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a40i=a40d;(function(a,b){var f=a40d,c=a();while(!![]){try{var d=parseInt(f(0xd6))/0x1+-parseInt(f(0xe1))/0x2*(-parseInt(f(0xda))/0x3)+-parseInt(f(0xdd))/0x4*(parseInt(f(0xe0))/0x5)+-parseInt(f(0xde))/0x6+-parseInt(f(0xd8))/0x7*(-parseInt(f(0xcf))/0x8)+-parseInt(f(0xe2))/0x9*(-parseInt(f(0xd1))/0xa)+parseInt(f(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a40c,0x19e96));var a40b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a40d;if(c){var e=c[g(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a40a=a40b(this,function(){var h=a40d;return a40a[h(0xd5)]()[h(0xd3)](h(0xdc))[h(0xd5)]()['constructor'](a40a)[h(0xd3)](h(0xdc));});a40a();function a40c(){var k=['maka\x20murder','toString','121316acRTWo','1442243bQqEyO','4193mmsTur','Murrrrderrrrr','168594ADpQmo','apply','(((.+)+)+)+$','8728hlSqgA','1079622cqNimy','error','455SVmitS','2RNcPhj','1458qrmxoe','464CMQjtA','%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','8720LLkRei','exit','search'];a40c=function(){return k;};return a40c();}import{Command}from'../command.js';function a40d(a,b){var c=a40c();return a40d=function(d,e){d=d-0xcf;var f=c[d];return f;},a40d(a,b);}Command['create']({'name':'murder','usage':a40i(0xd4),'maxArgLength':0x1,'shortDesc':a40i(0xd9),'validOpts':[]},async function(){var j=a40i;try{console['log'](j(0xd0),'font-family:\x20monospace');}catch(a){console[j(0xdf)](a),process[j(0xd2)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a41q=a41d;(function(a,b){const n=a41d,c=a();while(!![]){try{const d=-parseInt(n(0x204))/0x1*(-parseInt(n(0x1ff))/0x2)+-parseInt(n(0x1ec))/0x3+-parseInt(n(0x212))/0x4*(-parseInt(n(0x1f7))/0x5)+-parseInt(n(0x1f8))/0x6*(parseInt(n(0x216))/0x7)+-parseInt(n(0x202))/0x8+-parseInt(n(0x205))/0x9*(parseInt(n(0x214))/0xa)+parseInt(n(0x1f2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a41c,0x29c48));const a41b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a41d;if(c){const e=c[o(0x211)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a41a=a41b(this,function(){const p=a41d;return a41a[p(0x1f4)]()[p(0x1eb)](p(0x20f))[p(0x1f4)]()[p(0x217)](a41a)[p(0x1eb)]('(((.+)+)+)+$');});a41a();function a41d(a,b){const c=a41c();return a41d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a41d(a,b);}import a41e from'fs';import a41f from'path';import a41g 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 a41h from'../generators/maka.gen.js';Command['create']({'name':a41q(0x1f1),'usage':a41q(0x201),'mustBeInMakaProject':!![],'validOpts':['help',a41q(0x210),a41q(0x1ee),a41q(0x1ef)],'maxArgLength':0x1,'shortDesc':'Proxy\x20HTTPS\x20requests\x20to\x20another\x20Server','description':a41q(0x200),'examples':[a41q(0x1fb),'maka\x20proxy\x20--target-port\x203000\x20--listen-port\x204000','maka\x20proxy\x20--target-host\x20http://192.168.1.20']},async function(a,b){const r=a41q,c=this[r(0x208)][r(0x209)](),d=r(0x207),e=this[r(0x208)]['getConfigPath'](d),f=this[r(0x208)][r(0x1f6)]({'configPath':e}),g=b[r(0x210)]?b[r(0x210)]:0xbb8,h=b[r(0x1ee)]?b[r(0x1ee)]:0xd73,i=b[r(0x1ef)]?b[r(0x1ef)]:r(0x213),j=a41f[r(0x1fc)](f,c['appName']+r(0x1ed)),k=a41f[r(0x1fc)](f,c[r(0x1f9)]+r(0x203));if(!this[r(0x208)][r(0x20e)](j)||!this['fsi']['isFile'](k)){const m=a41h[r(0x20c)]('sslconfig');m&&await m[r(0x1fd)]([r(0x215)],{'env':d,'useConfig':!![]}),SSL[r(0x206)]({'keyName':c[r(0x1f9)]+'.key','csrName':c[r(0x1f9)]+'.csr','cwd':f}),SSL[r(0x1f3)]({'keyName':c[r(0x1f9)]+r(0x1ed),'crtName':c[r(0x1f9)]+r(0x203),'cwd':f});}if(g===h){Log[r(0x1f0)](r(0x1fe));throw new UsageError();}const l={'ssl':{'key':a41e[r(0x20a)](j,r(0x1fa)),'cert':a41e[r(0x20a)](k,'utf8')},'target':{'host':i,'port':g},'ws':!![],'xfwd':!![]};a41g[r(0x20d)](l)[r(0x218)](h),Log[r(0x20b)]('=>\x20SSL\x20Proxy\x20forwarding\x20'+h+r(0x1f5)+g);});function a41c(){const s=['30QaAXtZ','sslconfig','276983ewWccr','constructor','listen','search','804579UDNxYz','.key','listenPort','targetHost','error','proxy','2405964vSKryq','genSSC','toString','\x20to\x20','mkKeysDir','15aOiOIF','36TYztOL','appName','utf8','maka\x20proxy','join','invoke','Target\x20and\x20Listen\x20ports\x20cannot\x20be\x20the\x20same.','2uZXUpo','\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','maka\x20proxy\x20<options>','486000gOACWp','.crt','259855WTBsUu','166869JGLVEc','genCSR','development','fsi','getProjectConfig','readFileSync','bright','findGenerator','createProxyServer','isFile','(((.+)+)+)+$','targetPort','apply','419308ntWeWv','localhost'];a41c=function(){return s;};return a41c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-
|
|
1
|
+
function a42d(a,b){const c=a42c();return a42d=function(d,e){d=d-0x148;let f=c[d];return f;},a42d(a,b);}const a42q=a42d;(function(a,b){const n=a42d,c=a();while(!![]){try{const d=-parseInt(n(0x162))/0x1+parseInt(n(0x16d))/0x2+-parseInt(n(0x16f))/0x3+parseInt(n(0x163))/0x4+parseInt(n(0x15c))/0x5*(parseInt(n(0x168))/0x6)+parseInt(n(0x151))/0x7*(parseInt(n(0x15e))/0x8)+-parseInt(n(0x14a))/0x9*(-parseInt(n(0x150))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a42c,0x29bd7));const a42b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a42d;if(c){const e=c[o(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a42a=a42b(this,function(){const p=a42d;return a42a[p(0x160)]()['search'](p(0x15d))[p(0x160)]()[p(0x16e)](a42a)['search']('(((.+)+)+)+$');});a42a();import a42e from'fs';import a42f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';Command[a42q(0x154)]({'name':a42q(0x14e),'validOpts':[''],'requiredOpts':[a42q(0x166)],'mustBeInMakaProject':!![],'usage':a42q(0x14f),'shortDesc':a42q(0x14b),'description':'\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x20\x20','examples':[a42q(0x14f)]},async function(a,b){const r=a42q;try{const c=this[r(0x15b)][r(0x148)](b['env']),d=a42f['join'](c,'ssh.json'),f=a42e[r(0x155)](d)['toString'](),g=JSON[r(0x161)](f);Object[r(0x157)](g,{'env':c}),Log[r(0x16c)](r(0x152));const h=SSH['ping'](r(0x158),g);if(!h)throw r(0x14d);if(h)Log['success'](r(0x165));const i=a42f[r(0x15f)](c,r(0x170),r(0x169));if(a42e['existsSync'](i)){const l={'source':i,'dest':r(0x159),'verbose':!![]};SSH[r(0x156)](l,{...g});}const j=a42f[r(0x15f)](c,r(0x167));SSH[r(0x156)]({'source':j,'dest':r(0x16a),'verbose':!![]},{...g});const k=a42f['join'](c,r(0x153));SSH['scp']({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH['sshSync'](r(0x15a),g),await SSH[r(0x149)](r(0x14c),{...g},{'verbose':!![]});}catch(m){console['error'](m),process[r(0x164)](0x0);}});function a42c(){const s=['settings.json','create','readFileSync','scp','assign','uname\x20-a','~/ses.json','pm2\x20delete\x20all','fsi','125dbIIgm','(((.+)+)+)+$','15400IlEGHz','join','toString','parse','262707LOFsnv','680088XdHamD','exit','Remote\x20host\x20connection\x20successful','env','pm2.config.js','10308FYgDbw','ses.json','~/pm2.config.js','apply','notice','30756fatNPw','constructor','300816NXHKpU','_keys','getConfigPath','ssh','350838MUJPBQ','Reconfigure\x20your\x20deployed\x20applications','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.','reconfig','maka\x20reconfig\x20--env\x20prod','30NOgwnz','686oIwxJT','Checking\x20remote\x20host\x20availability'];a42c=function(){return s;};return a42c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a43d,c=a();while(!![]){try{var d=parseInt(f(0xd7))/0x1+-parseInt(f(0xd3))/0x2+-parseInt(f(0xd8))/0x3*(parseInt(f(0xce))/0x4)+parseInt(f(0xd9))/0x5*(parseInt(f(0xcf))/0x6)+-parseInt(f(0xd4))/0x7+parseInt(f(0xd1))/0x8+-parseInt(f(0xcd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a43c,0x1cd32));var a43b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a43d;if(c){var e=c[g(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a43a=a43b(this,function(){var h=a43d;return a43a[h(0xd5)]()[h(0xd0)](h(0xd2))[h(0xd5)]()[h(0xda)](a43a)['search'](h(0xd2));});a43a();import'./run.command.js';function a43c(){var i=['1103157ZTPccP','24HuiHyX','5844rhRaSE','search','1287112FgBqlt','(((.+)+)+)+$','62346tQfXHH','1063013KeckYw','toString','apply','213110NGQYhN','27273iosRMB','535bzJrkU','constructor'];a43c=function(){return i;};return a43c();}function a43d(a,b){var c=a43c();return a43d=function(d,e){d=d-0xcd;var f=c[d];return f;},a43d(a,b);}import'./docker.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44l=a44d;(function(a,b){const i=a44d,c=a();while(!![]){try{const d=-parseInt(i(0x1a5))/0x1*(parseInt(i(0x1ab))/0x2)+-parseInt(i(0x1a1))/0x3+-parseInt(i(0x1a3))/0x4+parseInt(i(0x197))/0x5*(parseInt(i(0x19a))/0x6)+parseInt(i(0x1a6))/0x7+-parseInt(i(0x1ad))/0x8*(parseInt(i(0x1a2))/0x9)+parseInt(i(0x18c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xb8fb0));const a44b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a44d;if(c){const e=c[j(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a44a=a44b(this,function(){const k=a44d;return a44a[k(0x191)]()['search'](k(0x1a7))[k(0x191)]()[k(0x190)](a44a)[k(0x194)](k(0x1a7));});a44a();import a44e from'./run.command.js';import{execSync}from'child_process';import a44f from'path';function a44c(){const n=['(((.+)+)+)+$','exit','Docker\x20Compose\x20Path:\x20','PM2\x20Config\x20File:\x20','9302EAnQmu','apply','72qdTuEZ','7331230HtsvpX','maka\x20run\x20docker','\x20up\x20--remove-orphans','docker','constructor','toString','join','getProjectConfig','search','appName','inherit','76750yKcQvp','notice','createFile','384JgKZze','pm2.config.js','docker-compose.yaml','create','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','getConfigPath','config/docker-compose.yaml','1259757bPjiNI','1098eVXkpL','1167152FDzjub','fsi','323nyHbyI','8800645CPyerK'];a44c=function(){return n;};return a44c();}import a44g from'fs';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x18c;let f=c[d];return f;},a44d(a,b);}Command[a44l(0x19d)]({'name':a44l(0x18f),'aliases':['d'],'shortDesc':a44l(0x19e),'description':'\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\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','usage':a44l(0x18d),'validOpts':['']},async function(){const m=a44l;try{const a=this['fsi'][m(0x193)](),b=this[m(0x1a4)][m(0x19f)](m(0x18f)),c=a44f[m(0x192)](b,m(0x19c)),d=a44f[m(0x192)](b,m(0x19b));Log['notice'](m(0x1aa)+d),Log[m(0x198)](m(0x1a9)+c);if(!a44g['existsSync'](c)){const f={'app':a['appName'],'appFileCase':paramCase(a[m(0x195)])},g=this['fsi']['templateContent']({'srcPath':m(0x1a0),'context':f})+'\x0a';this['fsi'][m(0x199)]({'filePath':c,'data':g});}execSync('docker-compose\x20--project-directory\x20'+b+m(0x18e),{'stdio':m(0x196)});}catch(h){process[m(0x1a8)](0x1);}},a44e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a45u=a45d;(function(a,b){const q=a45d,c=a();while(!![]){try{const d=parseInt(q(0xb9))/0x1*(parseInt(q(0x90))/0x2)+parseInt(q(0x8e))/0x3*(parseInt(q(0xb6))/0x4)+parseInt(q(0xa9))/0x5+-parseInt(q(0x8a))/0x6*(-parseInt(q(0x9d))/0x7)+parseInt(q(0x98))/0x8*(parseInt(q(0x86))/0x9)+-parseInt(q(0x95))/0xa+-parseInt(q(0x9b))/0xb*(parseInt(q(0xa8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0xb718d));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a45d;if(c){const e=c[r(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const s=a45d;return a45a['toString']()[s(0xa3)](s(0x97))['toString']()[s(0x91)](a45a)[s(0xa3)](s(0x97));});a45a();import a45e from'path';import a45f from'fs';import a45g from'dotenv';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0x84;let f=c[d];return f;},a45d(a,b);}import a45h from'rimraf';function a45c(){const x=['constructor','settings','--env','Node\x20Env\x20Config:\x20','6001160BVaKaC','isFile','(((.+)+)+)+$','28952aMpFSQ','rawLogs','\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.','11EsIkLy','cordova-build','29869zvGMnr','exit','apply','Run\x20your\x20Meteor\x20application','split','notice','search','development','length','filter','splice','48546084olLyLJ','6821095nQavuI','--production','slice','argv','fsi','push','join','getConfigPath','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)','create','Cannot\x20find\x20Node\x20Environment\x20File:\x20','error','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','314212cBszMB','.meteor','inspect','109619TFWWjD','compareMakaToLatest','isDirectory','app','config','allowIncompatibleUpdate','findSubCommand','mobileServer','2574gcXtGn','env','run','extraPackages','2094QemDQC','concat','warn','settings.json','45ukELLg','mobile-server','6OtbkTv'];a45c=function(){return x;};return a45c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const t=a45d;a45f['openSync'](a,'r'),a45g[t(0xbd)]({'path':a});},Run=Command[a45u(0xb2)]({'name':a45u(0x88),'mustBeInMakaProject':!![],'shortDesc':a45u(0xa0),'description':a45u(0x9a),'validOpts':['env','docker','r',a45u(0x99),'p','port','i',a45u(0xb8),'m',a45u(0x85),'v','verbose',a45u(0xbe),a45u(0x89),'x','exclude-archs','production']},async function(a,b){const v=a45u;try{const c=a[0x0],d=this[v(0x84)](c);d&&this['runSubCommand'](c,a,b);if(c==='ios'){const m=this['fsi']['findProjectDirectory'](),n=a45e['join'](m,v(0xbc),v(0xb7),'local',v(0x9c));this[v(0xad)][v(0xbb)](n)&&await a45h(n,{},()=>{});}if(b[v(0x8f)]&&b[v(0x8f)]===!![]||b['m']&&b['m']===!![])throw v(0xb1);await this[v(0xad)][v(0xba)]();const f=b[v(0x87)]?b[v(0x87)]:v(0xa4),g=this[v(0xad)][v(0xb0)](f),h=a45e['join'](g,'process.env');let i=a45e[v(0xaf)](g,v(0x8d));b[v(0x92)]?i=b['settings']:i=a45e[v(0xaf)](g,v(0x8d));if(this[v(0xad)][v(0x96)](h)&&!b['docker'])Log[v(0xa2)](v(0x94)+h),syncSource(h);else!b['docker']&&Log[v(0x8c)](v(0xb3)+h);this[v(0xad)][v(0x96)](i)?(Log[v(0xa2)]('Meteor\x20Settings:\x20'+i),a=a[v(0x8b)](['--settings',i])):Log[v(0x8c)](v(0xb5)+i);const j=g[v(0xa1)](a45e['sep']),k=j[j[v(0xa5)]-0x1];k==='production'&&a[v(0xae)](v(0xaa));const l=process[v(0xac)][v(0xab)](0x2)[v(0xa6)](o=>o!==v(0x88))[v(0xa6)](o=>o!==a[0x0]);l['forEach']((o,p)=>{const w=v;o===w(0x93)&&l['splice'](p,0x2),o==='-e'&&l[w(0xa7)](p,0x2);}),this[v(0xad)]['invokeMeteorCommand'](v(0x88),a[v(0x8b)](l));}catch(o){console[v(0xb4)](o),process[v(0x9e)](0x1);}});export default Run;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a46d,c=a();while(!![]){try{var d=parseInt(f(0x137))/0x1*(-parseInt(f(0x12f))/0x2)+parseInt(f(0x13d))/0x3*(-parseInt(f(0x12e))/0x4)+parseInt(f(0x136))/0x5*(-parseInt(f(0x135))/0x6)+parseInt(f(0x131))/0x7+-parseInt(f(0x13b))/0x8*(parseInt(f(0x139))/0x9)+-parseInt(f(0x134))/0xa+-parseInt(f(0x133))/0xb*(-parseInt(f(0x132))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xc859d));var a46b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a46d;if(c){var e=c[g(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){var h=a46d;return a46a[h(0x130)]()[h(0x13a)](h(0x13e))[h(0x130)]()[h(0x13c)](a46a)['search'](h(0x13e));});function a46d(a,b){var c=a46c();return a46d=function(d,e){d=d-0x12e;var f=c[d];return f;},a46d(a,b);}a46a();import'./set.command.js';function a46c(){var i=['1214186wcVCMD','toString','11247019PDZZLi','816WbwgOP','738683jWzhDP','9914100mNPoWE','47868Wtslos','400kryfQY','2zURcEc','apply','2914857ahksas','search','24hdiDgN','constructor','117RkrqrV','(((.+)+)+)+$','157644NiAWTx'];a46c=function(){return i;};return a46c();}import'./global.sub.cmd.js';import'./local.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a47j=a47d;function a47c(){const l=['92362qXTWPE','maka\x20set:gc\x20--workspace\x20<path>','disallowInsecure','constructor','Could\x20not\x20find\x20directory','allowInsecure','help','maka\x20set:gc\x20--insecure\x20<path>','cacert','workspace','setGlobalConfig','toString','error','search','fsi','8ccXkUz','14012GNZcac','One\x20or\x20the\x20other\x20buddy','(((.+)+)+)+$','success','12tkLiiq','resolve','807697mnIDwr','\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','50edfOaw','Set\x20global\x20Maka-CLI\x20settings','global-config','Set\x20CA\x20Cert\x20Path:\x20','1487010kwITHy','90jwUYLN','isDirectory','Set\x20workspace:\x20','531981wZvler','56329QAgNSf','39340iPuEBb','maka\x20set:global-config\x20--cacert\x20<path>','isFile','exit','maka\x20set:global-config\x20<args>'];a47c=function(){return l;};return a47c();}(function(a,b){const h=a47d,c=a();while(!![]){try{const d=-parseInt(h(0x92))/0x1+-parseInt(h(0xa2))/0x2*(-parseInt(h(0xaf))/0x3)+-parseInt(h(0xa6))/0x4*(parseInt(h(0x8d))/0x5)+-parseInt(h(0xae))/0x6+parseInt(h(0x8c))/0x7*(parseInt(h(0xa1))/0x8)+-parseInt(h(0xb2))/0x9+parseInt(h(0xaa))/0xa*(parseInt(h(0xa8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x27a94));const a47b=(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;};}()),a47a=a47b(this,function(){const i=a47d;return a47a['toString']()[i(0x9f)](i(0xa4))[i(0x9d)]()[i(0x95)](a47a)[i(0x9f)](i(0xa4));});a47a();function a47d(a,b){const c=a47c();return a47d=function(d,e){d=d-0x8c;let f=c[d];return f;},a47d(a,b);}import a47e from'path';import a47f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a47j(0xac),'usage':a47j(0x91),'aliases':['gc'],'minOptsLength':0x1,'maxOptsLength':0x3,'validOpts':[a47j(0x9a),'allowInsecure',a47j(0x94),a47j(0x9b),a47j(0x98)],'shortDesc':a47j(0xab),'description':a47j(0xa9),'examples':[a47j(0x8e),a47j(0x99),a47j(0x93)]},async function(a,b){const k=a47j;try{if(b[k(0x9a)]){if(this[k(0xa0)][k(0x8f)](b[k(0x9a)]))this[k(0xa0)]['setGlobalConfig']({'cert':b['cacert']}),Log['success'](k(0xad)+b['cacert']);else{const c=typeof b[k(0x9a)]==='boolean'?'Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.':'CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20'+b[k(0x9a)];throw Log['error'](c);}}if(b['workspace']){const d=this[k(0xa0)][k(0xb0)](b[k(0x9b)]);if(d)this['fsi']['setGlobalConfig']({'workspace':a47e[k(0xa7)](b[k(0x9b)])}),Log[k(0xa5)](k(0xb1)+a47e[k(0xa7)](b[k(0x9b)]));else throw Log[k(0x9e)](k(0x96));}if(b[k(0x97)]){if(b[k(0x97)]&&b[k(0x94)])throw Log['error'](k(0xa3));let f=b['allowInsecure'];b[k(0x94)]&&(f=![]),this[k(0xa0)][k(0x9c)]({'allowInsecure':f}),Log['success']('Set\x20allowInsecure:\x20'+f);}}catch(g){console['error'](g),process[k(0x90)](0x0);}},a47f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a48i=a48d;(function(a,b){var f=a48d,c=a();while(!![]){try{var d=-parseInt(f(0x11c))/0x1+parseInt(f(0x119))/0x2*(parseInt(f(0x11a))/0x3)+-parseInt(f(0x10b))/0x4*(parseInt(f(0x114))/0x5)+parseInt(f(0x11d))/0x6*(parseInt(f(0x113))/0x7)+parseInt(f(0x110))/0x8+parseInt(f(0x11f))/0x9*(parseInt(f(0x10d))/0xa)+parseInt(f(0x112))/0xb*(-parseInt(f(0x10c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x52e77));var a48b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a48d;if(c){var e=c[g(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a48a=a48b(this,function(){var h=a48d;return a48a['toString']()[h(0x11b)](h(0x120))[h(0x10f)]()[h(0x111)](a48a)[h(0x11b)](h(0x120));});a48a();import a48e from'./set.command.js';import{Command}from'../../command.js';function a48d(a,b){var c=a48c();return a48d=function(d,e){d=d-0x10b;var f=c[d];return f;},a48d(a,b);}import{Log}from'../../tools/log/log.class.js';function a48c(){var k=['11598aYkiYp','search','431299ZrhBMc','3490926oYolOa','apply','9297ijwpBi','(((.+)+)+)+$','notice','499340Nnflam','12ZQNRyQ','5430FbWtEf','maka\x20set:lc\x20<opts>','toString','2290656QPwLXK','constructor','5046646BdsQAI','7YrWxwp','10wzLoPC','create','maka\x20set:local-config\x20<opts>','Sorry,\x20not\x20implemented\x20yet','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','26malAEY'];a48c=function(){return k;};return a48c();}Command[a48i(0x115)]({'name':'local-config','usage':a48i(0x116),'examples':[a48i(0x10e),'maka\x20set:local-config\x20<opts>'],'aliases':['lc'],'mustBeInMakaProject':!![],'minArgLength':0x1,'maxArgLength':0x2,'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a48i(0x118)},async function(){var j=a48i;Log[j(0x121)](j(0x117));},a48e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a49i=a49d;function a49c(){const k=['3067434tFbpAL','findSubCommand','57Utnpqt','constructor','215705jfDnGD','(((.+)+)+)+$','search','10FCjBSc','267680OiwQci','70508ZDHNlF','apply','maka\x20set:<sub-command>\x20<opts>','91kDqVAc','help','\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','44216tgevCw','24sHlZPx','create','runSubCommand','set','7421590KGgVew','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','toString','822416MXQePe'];a49c=function(){return k;};return a49c();}(function(a,b){const f=a49d,c=a();while(!![]){try{const d=-parseInt(f(0xf9))/0x1+parseInt(f(0xf0))/0x2+parseInt(f(0xf3))/0x3*(-parseInt(f(0xfa))/0x4)+-parseInt(f(0xf5))/0x5*(-parseInt(f(0xe9))/0x6)+-parseInt(f(0xe5))/0x7*(parseInt(f(0xe8))/0x8)+parseInt(f(0xf1))/0x9*(-parseInt(f(0xf8))/0xa)+parseInt(f(0xed))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0x3b5f8));const a49b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a49d;if(c){const e=c[g(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a49a=a49b(this,function(){const h=a49d;return a49a[h(0xef)]()[h(0xf7)](h(0xf6))[h(0xef)]()[h(0xf4)](a49a)[h(0xf7)](h(0xf6));});a49a();import{Command}from'../../command.js';function a49d(a,b){const c=a49c();return a49d=function(d,e){d=d-0xe5;let f=c[d];return f;},a49d(a,b);}import{UsageError}from'../../error.js';const SetCommand=Command[a49i(0xea)]({'name':a49i(0xec),'usage':a49i(0xfc),'minArgLength':0x1,'shortDesc':a49i(0xee),'description':a49i(0xe7),'validOpts':[]},async function(a,b){const j=a49i,c=a[0x0];if(b[j(0xe6)])throw new UsageError();const d=this[j(0xf2)](c);d&&this[j(0xeb)](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a50m=a50d;function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-
|
|
1
|
+
const a50m=a50d;function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x1dc;let f=c[d];return f;},a50d(a,b);}(function(a,b){const j=a50d,c=a();while(!![]){try{const d=parseInt(j(0x1e0))/0x1+parseInt(j(0x1f5))/0x2*(parseInt(j(0x1fb))/0x3)+parseInt(j(0x1ef))/0x4+parseInt(j(0x1f3))/0x5+-parseInt(j(0x1f4))/0x6*(-parseInt(j(0x1f2))/0x7)+-parseInt(j(0x1f7))/0x8*(parseInt(j(0x1de))/0x9)+-parseInt(j(0x1dd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x6218e));const a50b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a50d;if(c){const e=c[k(0x1f1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a50a=a50b(this,function(){const l=a50d;return a50a[l(0x1e1)]()[l(0x1f8)]('(((.+)+)+)+$')[l(0x1e1)]()[l(0x1e6)](a50a)[l(0x1f8)](l(0x1e2));});a50a();import a50e from'fs';import a50f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';function a50c(){const o=['33MEtWnP','maka\x20ssh\x20--env\x20<env>\x20[command]','maka\x20ssh\x20--env\x20staging','6303970DYEHQw','18KkrqDS','ssh.json','72591BzQUXu','toString','(((.+)+)+)+$','maka\x20ssh\x20--env\x20dev','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','assign','constructor','ssh','create','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','error','getConfigPath','maka\x20ssh\x20--env\x20prod','parse','join','2427928bcQDAL','env','apply','7RkyqVV','259550cjNoHJ','2238630DlLNsB','113782yROChN','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','2792744njGvIu','search','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','exit'];a50c=function(){return o;};return a50c();}Command[a50m(0x1e8)]({'name':a50m(0x1e7),'usage':a50m(0x1fc),'mustBeInMakaProject':!![],'requiredOpts':[a50m(0x1f0)],'validOpts':[a50m(0x1f0),'v'],'shortDesc':a50m(0x1e9),'examples':[a50m(0x1e3),a50m(0x1dc),a50m(0x1ec),a50m(0x1f6),a50m(0x1f9),a50m(0x1e4)]},async function(a,b){const n=a50m;try{const c=this['fsi'][n(0x1eb)](b[n(0x1f0)]);let d='';a['length']>0x0&&(d=a[0x0]);const f=a50f[n(0x1ee)](c,n(0x1df)),g=a50e['readFileSync'](f)[n(0x1e1)](),h=JSON[n(0x1ed)](g);Object[n(0x1e5)](h,{'env':c}),SSH['sshSync'](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[n(0x1ea)](i),process[n(0x1fa)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51y=a51d;function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a51d(a,b);}(function(a,b){const v=a51d,c=a();while(!![]){try{const d=parseInt(v(0x20d))/0x1+parseInt(v(0x230))/0x2*(-parseInt(v(0x205))/0x3)+-parseInt(v(0x20f))/0x4*(parseInt(v(0x214))/0x5)+-parseInt(v(0x1ff))/0x6+parseInt(v(0x228))/0x7*(-parseInt(v(0x208))/0x8)+-parseInt(v(0x1fd))/0x9*(parseInt(v(0x223))/0xa)+parseInt(v(0x201))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xc46b4));const a51b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a51d;if(c){const e=c[w(0x216)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a51a=a51b(this,function(){const x=a51d;return a51a[x(0x232)]()['search']('(((.+)+)+)+$')[x(0x232)]()[x(0x229)](a51a)[x(0x21a)](x(0x1fa));});function a51c(){const A=['withSpinner','search','letsencrypt.json','notice','.key','generate-ssc','ask','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','join','writeFileSync','20tFqgno','genSSC','assign','maka\x20ssl\x20--env\x20dev\x20generate-csr','getConfigPath','490aoTHIi','constructor','New\x20CSR\x20written\x20to\x20','emailUpdate','exit','start','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','244stYqJs','Verifying\x20Letsencrypt\x20configuration','toString','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','getProjectConfig','Remote\x20host\x20connection\x20successful','parse','generate-csr','maka\x20ssl\x20<opts>\x20[command]','.csr','(((.+)+)+)+$','Email\x20to\x20use\x20for\x20auto-updates:\x20','env','4931271cAOJYY','/ssh.json','4784982XQPWnx','ssh','30424427TlpKMV','create','Create\x20and\x20manage\x20your\x20SSL\x20operations.','ssl','222cJWcTT','domains','success','76808ZliHiN','.crt','existsSync','\x20--email\x20','domainNames','1030098RDgyao','Using\x20saved\x20letsencrypt\x20config','8QfwiNw','fsi','appName','email','[?]\x20Domains\x20to\x20register:\x20','1042475bmFwGa','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','apply','sudo\x20snap\x20install\x20--classic\x20certbot','error'];a51c=function(){return A;};return a51c();}a51a();import a51e from'fs';import a51f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a51y(0x202)]({'name':a51y(0x204),'usage':a51y(0x1f8),'validOpts':[a51y(0x206),'email'],'requiredOpts':[a51y(0x1fc)],'shortDesc':a51y(0x203),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a51y(0x226),a51y(0x220),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const z=a51y,c=this['fsi'][z(0x1f4)](),d=this[z(0x210)][z(0x227)](b['env']),f=this[z(0x210)]['mkKeysDir']({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0x1f7))SSL['genCSR']({'keyName':c['appName']+'.key','csrName':c[z(0x211)]+z(0x1f9),'cwd':f});else{if(g===z(0x21e)){if(!a51e['existsSync'](a51f['join'](f,c[z(0x211)]+z(0x21d))))throw z(0x22f)+a51f[z(0x221)](f,c['appName']+z(0x21d));if(!a51e[z(0x20a)](a51f[z(0x221)](f,c[z(0x211)]+z(0x1f9))))throw z(0x1f3)+a51f[z(0x221)](f,c[z(0x211)]+'.csr');SSL[z(0x224)]({'keyName':c['appName']+z(0x21d),'crtName':c[z(0x211)]+z(0x209),'cwd':f}),Log[z(0x21c)](z(0x22a)+f);}else{if(g==='letsencrypt'){let h=b[z(0x206)],i=b[z(0x212)];try{const p=a51e['readFileSync'](a51f['join'](d,z(0x21b)))[z(0x232)](),q=JSON[z(0x1f6)](p);h=b[z(0x206)]?b[z(0x206)]:q[z(0x20c)],i=b['email']?b[z(0x212)]:q[z(0x22b)],(!b[z(0x212)]||!b[z(0x206)])&&Log[z(0x21c)](z(0x20e));}catch(r){}const j=JSON[z(0x1f6)](a51e['readFileSync'](d+z(0x1fe))[z(0x232)]());Object[z(0x225)](j,{'env':d}),Log[z(0x21c)]('Checking\x20remote\x20host\x20availability');try{const s=SSH['ping']('uname\x20-a',j);if(!s)throw z(0x22e);if(s)Log[z(0x207)](z(0x1f5));}catch(t){Log[z(0x218)](t);return;}const k=Log[z(0x219)]();k[z(0x22d)](z(0x231)),SSH[z(0x200)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...j}),SSH[z(0x200)](z(0x217),{...j}),SSH['ssh'](z(0x215),{...j}),k[z(0x207)]();const l=h?h:await Actions[z(0x21f)](z(0x213)),m=i?i:await Actions[z(0x21f)](z(0x1fb));SSH[z(0x200)]('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+l+z(0x20b)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON['stringify'](n,null,0x2);a51e[z(0x222)](a51f[z(0x221)](d,z(0x21b)),o);}else throw'Please\x20provide\x20a\x20command.';}}}catch(u){console[z(0x218)](u),process[z(0x22c)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a52q=a52d;(function(a,b){const m=a52d,c=a();while(!![]){try{const d=parseInt(m(0xba))/0x1*(-parseInt(m(0xb4))/0x2)+-parseInt(m(0xa3))/0x3+parseInt(m(0xa6))/0x4+parseInt(m(0xac))/0x5*(parseInt(m(0xc4))/0x6)+parseInt(m(0xd3))/0x7+-parseInt(m(0xd5))/0x8*(parseInt(m(0xc2))/0x9)+parseInt(m(0xc9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xc24ec));const a52b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a52d;if(c){const e=c[n(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a52a=a52b(this,function(){const o=a52d;return a52a[o(0xd1)]()[o(0xc8)](o(0xaa))[o(0xd1)]()[o(0xa4)](a52a)[o(0xc8)](o(0xaa));});a52a();import a52e from'fs';import a52f from'path';import a52g from'dotenv';function a52d(a,b){const c=a52c();return a52d=function(d,e){d=d-0x9c;let f=c[d];return f;},a52d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a52d;a52e['openSync'](a,'r'),a52g[p(0xcd)]({'path':a});};function a52c(){const t=['meteortesting:mocha','search','9709640TEKuID','filter','packages','engines','config','env','--driver','process.env','toString','test','6096321yXutFt','Node\x20Env\x20Config:\x20','124216jWCpOf','forEach','driver','parse','sanjo:jasmine','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','--full-app','utf8','3989697qjXoiH','constructor','invokeMeteorCommand','5029152tIlrcS','notice','apply','fsi','(((.+)+)+)+$','getConfigPath','1622525LwyYgN','driver-package','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','--env','unit','mocha','create','--driver-package','137894okqGMj','splice','--packages','once','testAppPath','inspect','17DSAsNh','join','error','jasmine','isFile','test-packages','rawLogs','development','261tUuEMZ','concat','12iVXEId','warn','none'];a52c=function(){return t;};return a52c();}Command[a52q(0xb2)]({'name':a52q(0xd2),'mustBeInMakaProject':!![],'validOpts':['once',a52q(0xcb),a52q(0x9d),'driverPackage','unit',a52q(0xce),a52q(0xc0),'port',a52q(0xb9),a52q(0xb8)],'usage':'maka\x20test\x20<opts>','shortDesc':a52q(0xa0),'examples':[]},function(a,b){const r=a52q;try{let c=this['fsi'][r(0xab)](r(0xc1));b[r(0xce)]&&(c=this[r(0xa9)][r(0xab)](b[r(0xce)]));(!b[r(0xb0)]||!!b[r(0xb7)])&&(a=a[r(0xc3)]([r(0xa1)]));b['unit']&&delete b['unit'];let d=b['driver-package']||b[r(0x9d)]||r(0xc6);if(d===r(0xc6)){const j=JSON[r(0x9e)](a52e['readFileSync'](a52f['join'](this['fsi']['findProjectDirectory'](),'.maka','config.json'),r(0xa2)));if(j['engines']['test']===r(0xbd))d=r(0x9f);else j[r(0xcc)]['test']===r(0xb1)&&(d=r(0xc7));}if(d===r(0xc6))throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b[r(0xad)]||!b[r(0x9d)])&&(a=a[r(0xc3)]([r(0xb3),d]));const f=a52f['join'](c,'settings.json');this['fsi'][r(0xbe)](f)?(Log[r(0xa7)]('Meteor\x20Settings:\x20'+f),a=a['concat'](['--settings',f])):Log[r(0xc5)](r(0xae)+f);const g=a52f[r(0xbb)](c,r(0xd0));this[r(0xa9)]['isFile'](g)?(Log['notice'](r(0xd4)+g),syncSource(g)):Log[r(0xc5)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+g);const h=process['argv']['slice'](0x2)[r(0xca)](k=>k!=='--env')['filter'](k=>k!==r(0xd2))['filter'](k=>k!==a[0x0]);h[r(0x9c)]((k,l)=>{const s=r;(k===s(0xaf)||k===s(0xcf))&&h[s(0xb5)](l,0x2),k===s(0xb6)&&h['splice'](l,0x1);});const i=b[r(0xcb)]?r(0xbf):r(0xd2);this[r(0xa9)][r(0xa5)](i,a['concat'](h));}catch(k){console[r(0xbc)](k),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a53l=a53d;(function(a,b){const i=a53d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
const a53l=a53d;(function(a,b){const i=a53d,c=a();while(!![]){try{const d=-parseInt(i(0x165))/0x1+-parseInt(i(0x163))/0x2*(-parseInt(i(0x14e))/0x3)+-parseInt(i(0x151))/0x4*(parseInt(i(0x167))/0x5)+-parseInt(i(0x16c))/0x6+-parseInt(i(0x164))/0x7*(parseInt(i(0x15a))/0x8)+parseInt(i(0x162))/0x9*(-parseInt(i(0x16d))/0xa)+-parseInt(i(0x172))/0xb*(-parseInt(i(0x16b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xd6fbf));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a53d;if(c){const e=c[j(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const k=a53d;return a53a['toString']()[k(0x14d)](k(0x158))['toString']()[k(0x166)](a53a)[k(0x14d)](k(0x158));});a53a();function a53c(){const n=['11382OmYoPE','243885WJyMrO','constructor','8387505llnYRy',')\x20to\x20at\x20least\x20meteor\x27s\x20(','getProjectMeteorVersion','fsi','3012JkiiEf','9540360Zvmipv','340xQqiCl','toString','Project\x27s\x20Meteor\x20Node\x20Version\x20','N/A','isMakaProject','181324QRoKBW','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','Project\x27s\x20Meteor\x20Version\x20','warn','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','notice','node\x20-v','----------------------System----------------------------','maka\x20v','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','majestic','getGlobalMeteorVersion','bright','search','630873CZdQRw','meteor.bat','create','4yjKHYl','----------------------Project----------------------------','replace','\x20node\x20-v','version','exit','System\x27s\x20Meteor\x20Version\x20','(((.+)+)+)+$','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','1600BJGtWf','Maka\x204.4.1','maka\x20version','error','apply','System\x27s\x20Node\x20Version\x20','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','meteor','13536PRCBwY','6NxIZhw'];a53c=function(){return n;};return a53c();}import{execSync}from'child_process';import a53e from'semver';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0x14d;let f=c[d];return f;},a53d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';Command[a53l(0x150)]({'name':a53l(0x155),'aliases':['v'],'usage':a53l(0x15c),'maxArgLength':0x1,'validOpts':[],'shortDesc':a53l(0x160),'examples':[a53l(0x17a),a53l(0x15c)]},async function(){const m=a53l;try{const a=process['platform']==='win32'?m(0x14f):m(0x161);Log[m(0x17d)](m(0x15b)),await this[m(0x16a)]['compareMakaToLatest'](),Log[m(0x17f)](m(0x179));const b=this[m(0x16a)][m(0x17e)]();Log[m(0x17f)]((m(0x157)+b)[m(0x153)]('\x0a',''));const c=execSync(a+m(0x154))[m(0x16e)]()[m(0x153)](/\r?\n|\r/,'')['replace']('v','');Log[m(0x17f)](m(0x173)+c);const d=execSync(m(0x178))[m(0x16e)]()['replace'](/\r?\n|\r/,'')[m(0x153)]('v','');a53e['gt'](c,d)?(Log[m(0x175)](m(0x15f)+d),Log['warn'](m(0x17b)+d+m(0x168)+c+')')):Log[m(0x17f)]('System\x27s\x20Node\x20Version\x20'+d);if(this[m(0x16a)][m(0x171)]()){Log[m(0x17f)](m(0x152));const f=this[m(0x16a)][m(0x169)]();a53e['gt'](b,f)?(Log[m(0x175)](m(0x174)+f[m(0x153)]('\x0a','')),Log[m(0x175)](m(0x17c)+b+'\x22')):Log[m(0x177)]((m(0x174)+f)[m(0x153)]('\x0a',''));const g=await this[m(0x16a)]['getProjectsMeteorNodeVersion']();g===m(0x170)?(Log[m(0x175)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+g),Log[m(0x175)](m(0x176))):Log['bright'](m(0x16f)+g),Log[m(0x17f)](m(0x159));}}catch(h){console[m(0x15d)](h),process[m(0x156)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a54d,c=a();while(!![]){try{var d
|
|
1
|
+
function a54d(a,b){var c=a54c();return a54d=function(d,e){d=d-0x156;var f=c[d];return f;},a54d(a,b);}(function(a,b){var f=a54d,c=a();while(!![]){try{var d=parseInt(f(0x161))/0x1+parseInt(f(0x164))/0x2+parseInt(f(0x15b))/0x3*(-parseInt(f(0x157))/0x4)+parseInt(f(0x15c))/0x5*(-parseInt(f(0x15f))/0x6)+parseInt(f(0x158))/0x7*(-parseInt(f(0x15d))/0x8)+-parseInt(f(0x15e))/0x9*(parseInt(f(0x163))/0xa)+parseInt(f(0x15a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x7f8b6));var a54b=(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;};}()),a54a=a54b(this,function(){var g=a54d;return a54a[g(0x156)]()['search'](g(0x160))[g(0x156)]()[g(0x162)](a54a)[g(0x159)]('(((.+)+)+)+$');});a54a();function a54c(){var h=['1600670liylqo','40nGSDbV','2367leUczO','12LVQAhX','(((.+)+)+)+$','587658mopqgV','constructor','30670tWKWzG','1988744rjiROS','toString','1076048NZvESJ','723352raVWFb','search','15861835tmDKgR','6VXfKKb'];a54c=function(){return h;};return a54c();}export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a55t=a55d;function a55c(){const
|
|
1
|
+
const a55t=a55d;(function(a,b){const p=a55d,c=a();while(!![]){try{const d=parseInt(p(0x22c))/0x1*(parseInt(p(0x21b))/0x2)+-parseInt(p(0x1f4))/0x3*(-parseInt(p(0x1df))/0x4)+parseInt(p(0x218))/0x5*(parseInt(p(0x22a))/0x6)+-parseInt(p(0x1e2))/0x7+-parseInt(p(0x217))/0x8*(-parseInt(p(0x1ea))/0x9)+parseInt(p(0x226))/0xa+-parseInt(p(0x219))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x30108));function a55c(){const E=['Generators:','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','To\x20use\x20this\x20generator,\x20\x22','Both','Name','tableList','To\x20use\x20these\x20pro\x20flags,\x20\x22','3308540NznBAU','number','findGenerator','help','2110674sKvLTd','length','1qgSAaH','Alias','both','keys','aliases','function','roles','sort','proGenerators','client','push','_generators','join','lib','singleLicense','780eWYveM','minOptsLength','mustHaveMeteorInstalled','2445212hqDADu','filter','Generator\x20requires\x20a\x20name','colLocAnswer','resourceName','There\x20is\x20no\x20Meteor\x20application\x20here','noResource','Generator\x20requires\x20a\x20handler\x20function','9dVfvjk','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','root','apply','fsi','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','notice','find','error','options','4503ofmwWa','search','addGenerator','maxArgLength','list','shortDesc','validateMeteorInstall','domainLicense','exit','sep','constructor','proFlags','(((.+)+)+)+$','name','bright','_handler','dir','assign','includes','appPathPrefix','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','pop','Please\x20run\x20\x22maka\x20install\x20meteor\x22','toString','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','create','No\x20resource\x20name\x20specified','Too\x20few\x20options','validateMakaProject','bind','minArgLength','chdir','validateMakaSubscription','Too\x20few\x20arguments','mustBeInMakaProject','564536UmBxRR','5TIUzqN','6745090gIsZaD','parent','226966GUMbqD','maxOptsLength','call','server'];a55c=function(){return E;};return a55c();}const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a55d;if(c){const e=c[q(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const r=a55d;return a55a[r(0x20b)]()[r(0x1f5)](r(0x200))[r(0x20b)]()[r(0x1fe)](a55a)['search'](r(0x200));});a55a();import a55e from'path';import a55f from'cli-table';import{paramCase}from'change-case';import a55g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0x1d9;let f=c[d];return f;},a55d(a,b);}function inside(a='.',b){const s=a55d,c=process['cwd']();let d=null;try{process[s(0x213)](a),d=b();}finally{process[s(0x213)](c);}return d;}export class Generator extends Tool{[a55t(0x1f3)];[a55t(0x1db)];constructor(a,b){const u=a55t;super();if(!a)throw new Error(u(0x1ef));if(!a[u(0x201)])throw new Error(u(0x1e4));if(typeof b!==u(0x231))throw new Error(u(0x1e9));this[u(0x1db)]=[],this[u(0x1f3)]=Object[u(0x205)]({},a),this['name']=this[u(0x1f3)][u(0x201)],this[u(0x203)]=b[u(0x211)](this);}static[a55t(0x20d)](a,b,c){const v=a55t;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==v(0x231))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const d=new Generator(a,b);return c=c||a55g,Object['assign'](d,{'parent':c?.[v(0x1f3)]?.['name']}),c[v(0x1f6)](d),d;}[a55t(0x1f6)](a){const w=a55t;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[w(0x1db)][w(0x1da)](a);}[a55t(0x228)](a){const x=a55t,b=this['_generators'][x(0x1f1)](c=>c['match'](a));return b;}async[a55t(0x214)](a,b){const y=a55t,c=this['findGenerator'](a[0x0]);if(c){const d=c?.[y(0x201)]||a[0x0],e=c?.[y(0x21a)]||'',f=Object[y(0x22f)](b),g=await this[y(0x1ee)]['getPro']();!g&&(Log[y(0x1f2)](y(0x220)),process[y(0x1fc)](0x1));const h=!g?.[y(0x232)][y(0x206)](y(0x1de))&&!g?.['roles'][y(0x206)](y(0x1fb)),i=g?.['proGenerators']['includes'](d)||g?.[y(0x234)][y(0x206)](e);if(i&&h)throw y(0x221)+d+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(f[y(0x22b)]>0x0){const j=g?.[y(0x1ff)][y(0x1e3)](k=>f['includes'](k));if(j&&j[y(0x22b)]>0x0&&h)throw y(0x225)+j?.['join'](',\x20')+y(0x1eb);}}}async['invoke'](a,b){const z=a55t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c}=this['options'];try{await this[z(0x214)](a,b);}catch(f){Log[z(0x1f2)](f),process[z(0x1fc)](0x1);}const d=a['slice']();b['resourceName']=d[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[z(0x229)])throw new UsageError();if(this['options'][z(0x216)]){const g=this[z(0x210)]();if(!g)throw new MustBeInProjectError();}if(this[z(0x1f3)][z(0x1e1)]){const h=this[z(0x1fa)]();if(!h)throw new NoMeteorFoundError();}if(typeof this[z(0x1f3)][z(0x212)]==='number'){if(a[z(0x22b)]<this[z(0x1f3)][z(0x212)]){Log['error'](z(0x215));throw new UsageError();}}if(typeof this[z(0x1f3)]['maxArgLength']===z(0x227)){if(a[z(0x22b)]>this[z(0x1f3)][z(0x1f7)]){Log[z(0x1f2)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[z(0x1f3)][z(0x1e0)]===z(0x227)){if(Object[z(0x22f)](b)['length']<this['options'][z(0x1e0)]){Log[z(0x1f2)](z(0x20f));throw new UsageError();}}if(typeof this[z(0x1f3)][z(0x21c)]===z(0x227)){if(Object[z(0x22f)](b)[z(0x22b)]>=this[z(0x1f3)][z(0x21c)]){Log[z(0x1f2)]('Too\x20many\x20options');throw new UsageError();}}this['validateParams'](a,b,this[z(0x1f3)]);if(!b[z(0x1e6)]&&!this[z(0x1f3)][z(0x1e8)]){Log[z(0x1f2)](z(0x20e));throw new UsageError();}_prevGen=a[0x0];}catch(i){Log['usage'](description,examples,usage,c);if(i instanceof UsageError)this['_generators']['length']>0x0&&b[z(0x229)]&&(Log[z(0x1f0)](z(0x21f)),this[z(0x224)](this[z(0x1db)]));else{if(i instanceof MustBeInProjectError)Log[z(0x1f2)](z(0x208));else{if(i instanceof NoMeteorFoundError)Log[z(0x1f2)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[z(0x1f0)](z(0x20a));else{if(i instanceof NoMeteorAppFoundError)Log[z(0x1f2)](z(0x1e7));else throw i;}}}process[z(0x1fc)](0x1);}return new Promise(j=>{inside(b['cwd'],async()=>{const A=a55d;try{if(!b[A(0x1ec)]&&!this[A(0x1ee)]['findProjectDirectory']())throw new MustBeInProjectError();const k=b[A(0x1e6)]?.['replace'](/\\/g,'/')['split']('/');!b[A(0x204)]&&(k?.[A(0x22b)]>0x1?(b['resourceName']=k[A(0x209)](),d[0x0]=b[A(0x1e6)],b[A(0x204)]=k['map'](l=>{return paramCase(l);})[A(0x1dc)](a55e[A(0x1fd)])):b['dir']='');if(this['options']['checkWhere']){if(!b['where']){const m={'type':A(0x1f8),'name':A(0x1e5),'message':'Location','choices':[{'name':'Client','value':'client'},{'name':'Server','value':'server'},{'name':A(0x222),'value':A(0x22e)}]},{colLocAnswer:n}=await Actions[A(0x1f3)](m);n?b['where']=n:b['where']=A(0x22e);}const l=[A(0x22e),A(0x1d9),'server'];if(!l['includes'](b['where'])){Log[A(0x1f2)](A(0x20c));throw new UsageError();}switch(b['where']){case A(0x22e):b[A(0x207)]=A(0x1dd);break;case A(0x21e):b[A(0x207)]='server';break;case A(0x1d9):b[A(0x207)]=A(0x1d9);break;default:b['appPathPrefix']='';}}j(this[A(0x203)][A(0x21d)](this,d,b));}catch(o){console[A(0x1f2)](o);}});});}['listGenerators'](){const B=a55t;this['tableList'](this[B(0x1db)]);}['tableList'](a){const C=a55t,b=new a55f({});b[C(0x1da)]([C(0x223),C(0x22d),'Description']),a[C(0x233)]()['forEach'](c=>{const D=C;b['push']([c[D(0x201)],c[D(0x230)](),c[D(0x1f9)]()]);}),Log[C(0x202)](b['toString']());}}
|