@maka/maka-cli 4.5.11 → 4.5.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +2 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/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/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/templates/meteor/dbc/conn.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +2 -1
- package/bundle/obf/src/commands/install.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a70y=a70d;(function(a,b){const v=a70d,c=a();while(!![]){try{const d=parseInt(v(0xa0))/0x1*(parseInt(v(0xc3))/0x2)+-parseInt(v(0x99))/0x3+parseInt(v(0xc2))/0x4+-parseInt(v(0xae))/0x5*(-parseInt(v(0x9e))/0x6)+parseInt(v(0xbe))/0x7*(parseInt(v(0xa9))/0x8)+parseInt(v(0xad))/0x9+-parseInt(v(0xb9))/0xa*(parseInt(v(0xa5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x3f9f9));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a70d;if(c){const e=c[w(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const x=a70d;return a70a[x(0xd5)]()[x(0xc6)](x(0x9b))[x(0xd5)]()['constructor'](a70a)['search'](x(0x9b));});a70a();function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x96;let f=c[d];return f;},a70d(a,b);}import a70e from'path';function a70c(){const H=['\x22*\x22','\x0a\x09\x09','194958dVqxdN','27340HANAsR','fsi','pathFromApp','templateContent','Scaffolding\x20for\x20a\x20Route.','rewriteDestinationPathForEngine','vanilla','join','PrivateLayout','maka\x20g:route\x20lists/listIndex\x20lists','routes.js','5044050YbvTxD','true','maka\x20g:route\x20todosEdit\x20todos/:id/edit','withTranslations','react','11564ZtEtYM','injectAtEndOfFile','readFileLines','only','50436wtCfro','27760NhAGeV','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','error','search','getProjectConfig','findGenerator','startup','map','includes','<Router','indexOf','url','<Route','root','client','layout','const\x20privateRoutes\x20=\x20(<>','route/route.js','toString','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','warn','create','</Router>','const\x20publicRoutes\x20=\x20(<>','942291PrTSgP','engines','(((.+)+)+)+$','apply','withValue','318MMyKds','length','20JLoMRU','config','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','invoke','private','11otsYuu','route','filter','injectIntoFile','2312SSmaSX','injectAfterLineNumber'];a70c=function(){return H;};return a70c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a70f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a70y(0x96)]({'name':a70y(0xa6),'aliases':aliases,'validOpts':[a70y(0xa4),a70y(0xd2),a70y(0xc1),'cwd',a70y(0xa1),'root','withHook',a70y(0xce)],'usage':a70y(0xd6),'shortDesc':a70y(0xb2),'examples':['maka\x20g:route\x20todosIndex\x20todos',a70y(0xbb),a70y(0xc4),a70y(0xb7)]},function(a,b){const z=a70y;try{const c=this[z(0xaf)][z(0xc7)]();this[z(0xaf)][z(0x9d)](c,async()=>{const A=z,d=b[A(0xa4)]??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[A(0xa7)](function(l){return l!=='/';})[A(0xb5)]('/')['toLowerCase']());f=camelCase(f);b['layout']&&(b[A(0xd2)]=camelCase(b[A(0xd2)]));const h=a70e[A(0xb5)]('/imports/ui/pages',f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0xd2)]||'MasterLayout','templatePath':h,'templateName':pascalCase(f),'client':c[A(0x9a)][A(0xd1)],'newForm':![],'withTranslations':c['features'][A(0xbc)]};d&&(i[A(0xd2)]=A(0xb6));if(!b[A(0xd0)]){const l=a70f[A(0xc8)]('page');l&&await l[A(0xa3)](a,b);}let j,k;if(c[A(0x9a)][A(0xd1)]===A(0xbd)){if(c['engines']['ssr']===A(0xba)){const p=this['fsi'][A(0xb0)]({'pathParts':['imports',A(0xc9),'lib',A(0xb8)]});j=this[A(0xaf)][A(0xb3)]({'pathParts':[p],'config':c});}else{const q=this[A(0xaf)]['pathFromApp']({'pathParts':['imports',A(0xc9),A(0xd1),A(0xb8)]});j=this[A(0xaf)][A(0xb3)]({'pathParts':[q],'config':c});}const m=this[A(0xaf)][A(0xc0)](j)[A(0xca)]((r,s)=>{const B=A;return r[B(0xcb)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})[A(0xa7)](r=>r!==null);let n=this[A(0xaf)][A(0xc0)](j)[A(0xca)]((r,s)=>{const C=A;return r[C(0xcb)](C(0x98))?s+0x1:null;})[A(0xa7)](r=>r!==null),o=this['fsi'][A(0xc0)](j)[A(0xca)]((r,s)=>{const D=A;return r[D(0xcb)](D(0xd3))?s+0x1:null;})[A(0xa7)](r=>r!==null);n[A(0x9f)]>0x0&&o[A(0x9f)]>0x0&&(i['newForm']=!![]);k=this['fsi'][A(0xb1)]({'srcPath':A(0xd4),'framework':A(0xbd),'context':i,'config':c});if(n[A(0x9f)]>0x0||o[A(0x9f)]>0x0){this[A(0xaf)][A(0xaa)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x9f)]>0x0)o=this[A(0xaf)]['readFileLines'](j)[A(0xca)]((r,s)=>{const E=A;return r['includes'](E(0xd3))?s+0x1:null;})[A(0xa7)](r=>r!==null),this[A(0xaf)][A(0xaa)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':o[0x0]});else n[A(0x9f)]>0x0?(n=this[A(0xaf)][A(0xc0)](j)[A(0xca)]((r,s)=>{const F=A;return r['includes'](F(0x98))?s+0x1:null;})[A(0xa7)](r=>r!==null),this[A(0xaf)][A(0xaa)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log[A(0xd7)](A(0xa2)+j);}else{const r=this[A(0xaf)][A(0xc0)](j)[A(0xca)](u=>{const G=A;return u[G(0xcb)](G(0xab));}),s=r[A(0xcd)](!![])>-0x1,t=s?A(0xcf):A(0x97);this[A(0xaf)][A(0xa8)]({'filePath':j,'content':A(0xac)+k+'\x0a\x09\x09','begin':A(0xcc),'end':t});}}else{if(c[A(0x9a)][A(0xd1)]===A(0xb4)){const u=this[A(0xaf)][A(0xb0)]({'pathParts':['imports','startup',A(0xd1),A(0xb8)]});j=this[A(0xaf)][A(0xb3)]({'pathParts':[u],'config':c}),k=this['fsi'][A(0xb1)]({'srcPath':A(0xd4),'context':i}),this['fsi'][A(0xbf)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0xc5)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71m=a71d;(function(a,b){const j=a71d,c=a();while(!![]){try{const d=parseInt(j(0x113))/0x1+parseInt(j(0x10f))/0x2*(-parseInt(j(0xfe))/0x3)+parseInt(j(0x10b))/0x4*(parseInt(j(0x10c))/0x5)+parseInt(j(0x11e))/0x6*(-parseInt(j(0x119))/0x7)+parseInt(j(0x116))/0x8+parseInt(j(0x110))/0x9+parseInt(j(0x11c))/0xa*(-parseInt(j(0x106))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x84d23));function a71c(){const p=['withValue','836oondBi','winston','lib','apply','startup','483436DWrqew','5PbKPpI','logger','pathFromApp','366ZnpxJK','5026446hbagvf','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','service/logger/logger.js','702026iTMSgS','(((.+)+)+)+$','Installing\x20winston','3108256jDsvVS','service','search','7sRgASM','resourceName','winston\x20setimmediate','80210RGIVpV','engines','1898058KwDqZU','toString','fsi','4917irztzQ','error','getProjectConfig','installNpmPackage','template','checkNpmPackage','services'];a71c=function(){return p;};return a71c();}const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a71d;if(c){const e=c[k(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const l=a71d;return a71a[l(0x11f)]()[l(0x118)](l(0x114))[l(0x11f)]()['constructor'](a71a)[l(0x118)](l(0x114));});a71a();import{camelCase,paramCase,pascalCase}from'change-case';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0xfe;let f=c[d];return f;},a71d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a71m(0x117),'aliases':['svc'],'usage':'maka\x20{generate,\x20g}:{service}\x20[service-type]','shortDesc':a71m(0x111),'validOpts':['type'],'validArgs':[a71m(0x10d)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const n=a71m;try{const c=this[n(0x120)][n(0x100)]();this['fsi'][n(0x105)](c,async()=>{const o=n,d=this[o(0x120)][o(0x10e)]({}),f=paramCase(b[o(0x11a)]),g={'name':pascalCase(b[o(0x11a)]),'fileName':f,'camelCase':camelCase(b[o(0x11a)]),'type':a[0x0],'engine':c[o(0x11d)]['js'],'noRename':!![]};let h='js';c[o(0x11d)]['js']==='tsx'&&(h='ts');if(a[0x0]==='logger'){!this[o(0x120)][o(0x103)](o(0x107))&&await this[o(0x120)][o(0x101)](o(0x11b),{'cwd':d,'msg':o(0x115)});const i=this[o(0x120)][o(0x10e)]({'pathParts':['imports',o(0x10a),o(0x108),o(0x104),f+'.'+h]});this[o(0x120)][o(0x102)]({'srcPath':o(0x112),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xff)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a72d,c=a();while(!![]){try{var d=-parseInt(f(0x10d))/0x1*(-parseInt(f(0x106))/0x2)+-parseInt(f(0x110))/0x3+parseInt(f(0x108))/0x4*(-parseInt(f(0x107))/0x5)+parseInt(f(0x109))/0x6*(parseInt(f(0x10e))/0x7)+parseInt(f(0x10c))/0x8+-parseInt(f(0x111))/0x9*(parseInt(f(0x10f))/0xa)+parseInt(f(0x10b))/0xb*(parseInt(f(0x105))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xec017));function a72c(){var h=['4647856kEzOhs','1ZHPOzL','98RGTaxf','493080uaFxSX','430665jSqtKa','171edCaYL','144JfHLrN','1041454xLVNNG','7848385dUsfsx','4BUeKmV','476886AKGEhx','(((.+)+)+)+$','1285460zTUTpI'];a72c=function(){return h;};return a72c();}var a72b=(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;};}()),a72a=a72b(this,function(){var g=a72d;return a72a['toString']()['search'](g(0x10a))['toString']()['constructor'](a72a)['search'](g(0x10a));});a72a();function a72d(a,b){var c=a72c();return a72d=function(d,e){d=d-0x105;var f=c[d];return f;},a72d(a,b);}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73l=a73d;(function(a,b){const i=a73d,c=a();while(!![]){try{const d=-parseInt(i(0x15c))/0x1*(-parseInt(i(0x15d))/0x2)+-parseInt(i(0x150))/0x3*(-parseInt(i(0x153))/0x4)+-parseInt(i(0x162))/0x5+parseInt(i(0x14c))/0x6*(parseInt(i(0x154))/0x7)+parseInt(i(0x15a))/0x8+parseInt(i(0x15e))/0x9*(-parseInt(i(0x14d))/0xa)+parseInt(i(0x161))/0xb*(parseInt(i(0x164))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0xd100a));const a73b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a73d;if(c){const e=c[j(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){const k=a73d;return a73a[k(0x148)]()[k(0x160)](k(0x163))[k(0x148)]()['constructor'](a73a)[k(0x160)](k(0x163));});a73a();function a73c(){const o=['7372488qeRPdD','env','1hnzLxM','1683286gtAIwE','2040561HfuOlJ','create','search','11198ZpVrKC','7114685ayTZuA','(((.+)+)+)+$','636DhedYE','maka\x20g:sslconfig\x20--env\x20dev','openssl.conf','join','toString','getGlobalConfig','fsi','Generate\x20a\x20new\x20openssl\x20config\x20file','694164mdEten','70YQsqoV','_keys','sslconfig','6ZoksLY','template','apply','3403748Haixtd','21xHaVHF','openssl/openssl.conf','error','service','getConfigPath','maka\x20{generate,\x20g}:sslconfig'];a73c=function(){return o;};return a73c();}function a73d(a,b){const c=a73c();return a73d=function(d,e){d=d-0x145;let f=c[d];return f;},a73d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a73e from'path';Generator[a73l(0x15f)]({'name':a73l(0x14f),'usage':a73l(0x159),'shortDesc':a73l(0x14b),'noResource':!![],'requiredOpts':['env'],'examples':[a73l(0x145)],'validOpts':[a73l(0x15b)]},async function(a,b){const m=a73l;try{const c=await this['fsi']['getProjectConfig'](),d=await this['fsi'][m(0x149)](),f=this['fsi'][m(0x158)](b[m(0x15b)]),g=a73e[m(0x147)](f,m(0x14e),m(0x146));await this['fsi']['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x14a)][n(0x151)]({'srcPath':n(0x155),'destPath':g,'framework':n(0x157),'context':h,'config':c});});}catch(h){Log[m(0x156)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74A=a74d;(function(a,b){const x=a74d,c=a();while(!![]){try{const d=parseInt(x(0x17f))/0x1*(-parseInt(x(0x177))/0x2)+parseInt(x(0x163))/0x3+-parseInt(x(0x15d))/0x4+parseInt(x(0x154))/0x5+-parseInt(x(0x165))/0x6+parseInt(x(0x176))/0x7+parseInt(x(0x161))/0x8*(parseInt(x(0x162))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xa9144));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a74d;if(c){const e=c[y(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const z=a74d;return a74a[z(0x156)]()[z(0x189)](z(0x153))['toString']()[z(0x170)](a74a)[z(0x189)](z(0x153));});a74a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x153;let f=c[d];return f;},a74d(a,b);}function a74c(){const D=['error','checkNpmPackage','startup','imports','installNpmPackage','locales','readFileSync','i18n/i18n.js','search','Locale\x20already\x20defined:\x20','translations','setProjectConfig','true','(((.+)+)+)+$','3874335QbgCmT','import\x20\x27../lib/services/translations/i18n\x27;','toString','service','getProjectConfig','import\x20\x27../lib/services/translations/i18n\x27;\x0a','warn','i18n/locales.js','isFile','5096504CtTFyd','fsi','apply','injectAtEndOfFile','153744pltXWm','306VuDXeZ','1635030WuhdPq','rewriteDestinationPathForEngine','1318098ZuYDFc','lib','i18n.js','export\x20{\x20default\x20as\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','Generate\x20a\x20new\x20locale\x20translation','template','index.','lang','pathFromApp','i18n','constructor','findAppDirectory','index.js','grep','exit','default\x20as\x20','4456900kYhEoy','928hKMSwI','translation','ssr','appName','i18next','maka\x20g:translation\x20--lang=de','root','services','913tMqZgM','injectAtBeginningOfFile'];a74c=function(){return D;};return a74c();}import a74e from'fs';Generator['create']({'name':a74A(0x178),'usage':'maka\x20{generate,\x20g}:translation\x20--lang=<language>','aliases':[a74A(0x16f)],'shortDesc':a74A(0x16a),'noResource':!![],'examples':['maka\x20g:translation\x20--lang=en\x20(default)','maka\x20g:translation\x20--lang=fr',a74A(0x17c)],'validOpts':[a74A(0x16d)]},function(a,b){const B=a74A;try{const c=this[B(0x15e)][B(0x158)](),d=this[B(0x15e)]['getGlobalConfig'](),f=this['fsi'][B(0x171)]();this[B(0x15e)]['withValue'](c,()=>{const C=B;try{!b[C(0x16d)]&&(b[C(0x16d)]='en');!b[C(0x17d)]&&!this[C(0x15e)][C(0x182)](C(0x17b))&&(Log[C(0x15a)](C(0x169)),this[C(0x15e)][C(0x185)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0x15e)][C(0x18c)]('features.withTranslations',!![]));const g=this[C(0x15e)][C(0x16e)]({'pathParts':[C(0x184),C(0x183),'client','index.js']}),h=this[C(0x15e)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0x15e)][C(0x173)](a74e[C(0x187)](h)['toString'](),C(0x155))[0x0]&&!![];if(c['engines'][C(0x179)]===C(0x18d)){!i&&this[C(0x15e)][C(0x180)]({'filePath':h,'content':C(0x159)});const t=this[C(0x15e)][C(0x16e)]({'pathParts':[C(0x184),'startup','server',C(0x172)]}),u=this[C(0x15e)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[C(0x15e)][C(0x173)](a74e[C(0x187)](u)[C(0x156)](),C(0x155))[0x0]&&!![];!v&&this[C(0x15e)][C(0x180)]({'filePath':u,'content':C(0x159)});}else!i&&this['fsi'][C(0x180)]({'filePath':h,'content':C(0x159)});const j={'app':d[C(0x17a)],'config':c},k=this[C(0x15e)][C(0x16e)]({'pathParts':[C(0x184),C(0x183),'lib',C(0x17e),C(0x18b),C(0x167)]}),l=this[C(0x15e)][C(0x15c)](this[C(0x15e)][C(0x164)]({'pathParts':[k],'config':c}));!l&&this[C(0x15e)][C(0x16b)]({'srcPath':C(0x188),'destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x15e)]['pathFromApp']({'pathParts':[C(0x184),C(0x183),C(0x166),'services',C(0x18b),C(0x186),b[C(0x16d)]+'.js']}),n=this['fsi'][C(0x164)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x15c)](n);!o?this['fsi']['template']({'srcPath':C(0x15b),'destPath':m,'framework':C(0x157),'context':j,'config':c}):Log['warn'](C(0x18a)+n);const p=this['fsi']['pathFromApp']({'pathParts':[C(0x184),C(0x183),'lib',C(0x17e),C(0x18b),C(0x186),C(0x16c)+c['engines']['js']]}),q=this[C(0x15e)][C(0x164)]({'pathParts':[p],'config':c}),r=this[C(0x15e)][C(0x15c)](q);!r&&this['fsi']['template']({'srcPath':'i18n/index.js','destPath':p,'framework':C(0x157),'context':j,'config':c});const s=this[C(0x15e)]['grep'](a74e[C(0x187)](p)[C(0x156)](),C(0x175)+b[C(0x16d)])[0x0]&&!![];!s?this[C(0x15e)][C(0x160)]({'filePath':p,'content':C(0x168)+b[C(0x16d)]+'\x20}\x20from\x20\x27./'+b['lang']+'\x27;'}):Log[C(0x15a)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0x181)](w),process[C(0x174)](0x1);}});}catch(g){Log[B(0x181)](g),process[B(0x174)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-modules --no-warnings --experimental-json-modules
|
|
2
|
-
const
|
|
2
|
+
const a75m=a75d;(function(a,b){const j=a75d,c=a();while(!![]){try{const d=-parseInt(j(0x135))/0x1*(parseInt(j(0x131))/0x2)+-parseInt(j(0x12f))/0x3+parseInt(j(0x134))/0x4*(parseInt(j(0x139))/0x5)+parseInt(j(0x140))/0x6*(parseInt(j(0x13f))/0x7)+-parseInt(j(0x137))/0x8*(parseInt(j(0x12a))/0x9)+parseInt(j(0x13a))/0xa*(-parseInt(j(0x130))/0xb)+parseInt(j(0x138))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xeb1ff));function a75c(){const n=['url','BROWSERSLIST_IGNORE_OLD_DATA','--max-old-space-size=','TOOL_NODE_FLAGS','443198ZVqlao','72RQUvgM','toString','parse','argv','apply','search','9GyLDDX','camelizeKeys','run','env','stringify','4542090PgiQWc','8173pkSmte','38cBTNLo','(((.+)+)+)+$','dirname','108Uksdcc','62977AfDmXX','constructor','10223656qucwst','33456552CkclmR','335365mxbRdz','5480MUhLgR'];a75c=function(){return n;};return a75c();}const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a75d;if(c){const e=c[k(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const l=a75d;return a75a[l(0x141)]()[l(0x129)](l(0x132))['toString']()[l(0x136)](a75a)['search'](l(0x132));});a75a();import a75e from'minimist';import a75f from'os';import a75g from'path';import a75h from'humps';import a75i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a75m(0x13b)]),__dirname=a75g[a75m(0x133)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a75f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a75m(0x12d)][a75m(0x13e)]=a75m(0x13d)+total_mem_in_mb,process[a75m(0x12d)][a75m(0x13c)]='1';const argv=a75e(process[a75m(0x143)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a75m(0x142)](JSON[a75m(0x12e)](argv));delete deepCopyArgv['_'];const opts=a75h[a75m(0x12b)](deepCopyArgv);function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x128;let f=c[d];return f;},a75d(a,b);}a75i[a75m(0x12c)](args,opts);
|
|
@@ -5,7 +5,7 @@ import config from './config';
|
|
|
5
5
|
|
|
6
6
|
console.log(`Enabling <%= name %> PG SQL client pool ...`);
|
|
7
7
|
const <%= camelCase %>PgPool = new pg.Pool(config);
|
|
8
|
-
<%= camelCase %>PgPool.on('error', (err
|
|
8
|
+
<%= camelCase %>PgPool.on('error', (err) => {
|
|
9
9
|
console.error(`Unexpected PostgreSQL error on idle client: ${err}`);
|
|
10
10
|
});
|
|
11
11
|
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a76k=a76d;function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x198;let f=c[d];return f;},a76d(a,b);}(function(a,b){const h=a76d,c=a();while(!![]){try{const d=parseInt(h(0x1a7))/0x1+-parseInt(h(0x1a6))/0x2+-parseInt(h(0x1c8))/0x3+parseInt(h(0x199))/0x4+-parseInt(h(0x1bf))/0x5*(parseInt(h(0x1b1))/0x6)+-parseInt(h(0x1a5))/0x7*(-parseInt(h(0x19b))/0x8)+parseInt(h(0x19f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x8f9b9));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a76d;if(c){const e=c[i(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const j=a76d;return a76a['toString']()['search']('(((.+)+)+)+$')[j(0x1bd)]()[j(0x1ac)](a76a)[j(0x1b4)](j(0x1b0));});a76a();import a76e from'path';import a76f from'os';import a76g from'fs';const homeDir=a76f[a76k(0x1a4)]();import{Docker}from'./tools/docker/docker.class.js';function a76c(){const y=['Invalid\x20options:\x20','concat','join','error','1184764PSroea','docker','853592WXsiNC','shortDesc','cwd','parent','9726165YnEePk','validateMakaProject','Missing\x20required\x20option:\x20','dir','config','homedir','35QavQDo','743626hgWMjh','419962fbNMzG','resourceName','forEach','findProjectDirectory','usage','constructor','description','validateParams','match','(((.+)+)+)+$','90012gjKfSu','AppData','push','search','root','NIE','length','No\x20description\x20provided.','Invalid\x20argument:\x20','options','apply','includes','toString','existsSync','65vwHHdR','name','aliases','fsi','help','platform','win32','_handler','examples','3525831THLkGQ'];a76c=function(){return y;};return a76c();}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{UsageError}from'./error.js';export class Tool{[a76k(0x19a)];[a76k(0x1c2)];[a76k(0x1ba)];[a76k(0x1c0)];[a76k(0x19e)];[a76k(0x1c6)];constructor(){const l=a76k;this[l(0x19a)]=new Docker(),this[l(0x1c2)]=new FSI();}[a76k(0x1af)](a){const m=a76k,b=[this['name']][m(0x1ca)](this[m(0x1ba)][m(0x1c1)]||[]);return this[m(0x19e)]&&b[m(0x1b3)](this['parent']),b['includes'](a);}[a76k(0x1a0)](){const n=a76k,a=this[n(0x1c2)][n(0x1aa)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const o=a76k;let a=a76e['join'](homeDir,'.meteor');const b=process[o(0x1c4)]===o(0x1c5);if(b){a=a76e[o(0x1cb)](homeDir,o(0x1b2),'Local','.meteor');if(!a76g[o(0x1be)](a))return![];}else{if(!a76g[o(0x1be)](a))return![];}return!![];}[a76k(0x1ae)](a,b,c){const p=a76k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object['keys'](b);d?.[p(0x1b7)]>0x0&&a[p(0x1a9)](f=>{const q=p;if(!d[q(0x1bc)](f)){Log[q(0x198)](q(0x1b9)+f);throw new UsageError();}});if(requiredOpts?.[p(0x1b7)]>0x0){if(e[p(0x1b7)]===0x0){Log['error']('Missing\x20required\x20options\x20'+requiredOpts[p(0x1cb)](',\x20'));throw new UsageError();}requiredOpts[p(0x1a9)](f=>{const r=p;if(!e['includes'](f)){Log['error'](r(0x1a1)+f);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts),validOpts?.[p(0x1b7)]>0x0&&(validOpts[p(0x1b3)](p(0x1c3)),validOpts[p(0x1b3)](p(0x1a8)),validOpts[p(0x1b3)](p(0x1a2)),validOpts['push'](p(0x19d)),validOpts['push'](p(0x1b5)),validOpts[p(0x1b3)](p(0x1a3)),e[p(0x1a9)](f=>{const s=p;if(!validOpts['includes'](f)){Log[s(0x198)](s(0x1c9)+f);throw new UsageError();}}));}[a76k(0x1ad)](){const t=a76k;return this[t(0x1ba)][t(0x1ad)]||this[t(0x1ba)][t(0x19c)]||t(0x1b8);}[a76k(0x19c)](){const u=a76k;return this[u(0x1ba)]['shortDesc']||u(0x1b6);}[a76k(0x1ab)](){const v=a76k;return this['options'][v(0x1ab)]||'No\x20usage\x20provided.';}[a76k(0x1c7)](){const w=a76k;return this[w(0x1ba)][w(0x1c7)]||[];}[a76k(0x1c1)](){const x=a76k;return this[x(0x1ba)][x(0x1c1)]||'None';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77i=a77d;(function(a,b){const f=a77d,c=a();while(!![]){try{const d=-parseInt(f(0x125))/0x1*(-parseInt(f(0x127))/0x2)+parseInt(f(0x118))/0x3*(-parseInt(f(0x119))/0x4)+parseInt(f(0x11e))/0x5*(parseInt(f(0x11a))/0x6)+parseInt(f(0x113))/0x7*(parseInt(f(0x11b))/0x8)+parseInt(f(0x115))/0x9+-parseInt(f(0x128))/0xa+-parseInt(f(0x114))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xea64e));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a77d;if(c){const e=c[g(0x117)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const h=a77d;return a77a[h(0x11f)]()[h(0x124)](h(0x121))['toString']()['constructor'](a77a)[h(0x124)](h(0x121));});function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x113;let f=c[d];return f;},a77d(a,b);}a77a();import a77e from'inquirer';export class Actions{static async[a77i(0x11c)](a,b){const j=a77i,{answer:c}=await a77e[j(0x11d)]({'type':b?j(0x120):j(0x122),'name':j(0x123),'message':a});return c;}static async[a77i(0x116)](a,b=![]){const k=a77i,{answer:c}=await a77e[k(0x11d)]({'type':k(0x116),'name':k(0x123),'message':a,'default':b});return c;}static async[a77i(0x126)](a){const l=a77i,b=await a77e[l(0x11d)](a);return b;}}function a77c(){const m=['apply','627MJOPcI','12956ZZHdKO','12bihXHY','232CqYtRO','ask','prompt','915835ihqhHy','toString','password','(((.+)+)+)+$','input','answer','search','3USGKWZ','options','276270jNNiOD','10894570UlzjWS','312676TcUxBk','710347qPoPRH','6434568HJodOC','confirm'];a77c=function(){return m;};return a77c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78s=a78d;(function(a,b){const p=a78d,c=a();while(!![]){try{const d=parseInt(p(0x1db))/0x1*(parseInt(p(0x166))/0x2)+parseInt(p(0x17e))/0x3*(parseInt(p(0x1b3))/0x4)+parseInt(p(0x1c0))/0x5+parseInt(p(0x178))/0x6+-parseInt(p(0x180))/0x7*(-parseInt(p(0x184))/0x8)+parseInt(p(0x18c))/0x9*(parseInt(p(0x186))/0xa)+-parseInt(p(0x187))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x71b6e));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a78d;if(c){const e=c[q(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const r=a78d;return a78a['toString']()[r(0x175)](r(0x1a1))[r(0x197)]()[r(0x17b)](a78a)[r(0x175)](r(0x1a1));});a78a();import a78e from'fs';import a78f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x166;let f=c[d];return f;},a78d(a,b);}const client=new EC2Client({}),ecrClient=new ECRClient({});function a78c(){const S=['Port\x20','.pem.txt','\x20PRIV_IP:\x20','getSecurityGroups','\x20CIDR:\x20','createKeyPairEC2Key','tag:created-by','Instances','notice','parse','\x20NAME:\x20','CidrBlock','UserData','getConfigPath','Created:\x20','chmod\x20400\x20','5ItSFWA','331218KDDLwb','ssh.json','ask','Description:','\x20ENV:\x20','GroupName','type','split','description','sgPorts','privateIp','Error\x20saving\x20pem\x20file,\x20aborting','ec2terminateInstance','createKeyPair','success','search','log','chooseInstance','4126860xEpAuc','GroupId','ec2create','constructor','Value','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','326589pKZtun','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','50708fboLmD','\x20STATUS:\x20','VpcId','imageId','144wwOOGC','Instance\x20rebooted!','50IwDKzz','27020587bjGlco','join','exit','_keys','instanceId','1329507EKyMwi','subnet','No\x20instances\x20found','terminated','tags','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Web\x20App','cidr','pem','Name','/dev/sdh','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','tcp','fsi','httpStatusCode','confirm','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','publicIp','createFile','(((.+)+)+)+$','userData','env','deleteSecurityGroup','Key\x20Name:\x20[','sgId','ingressRule','$metadata','\x20PUB_IP:\x20','error','Error\x20generating\x20key\x20pair','ID:\x20','vpcId','ec2describeInstances','running','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','push','0.0.0.0/0','16lfQpRa','send','status','key','\x20opened!','KeyName','apply','length','instance','suggestion','maxCount','forEach','sgIds','509385OObIEy','config','chooseVPC','ec2describeKeys','ec2createSG','Invalid\x20choice','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','find','file://','name','utf8'];a78c=function(){return S;};return a78c();}export class AWS{[a78s(0x19b)];constructor(){const t=a78s;this[t(0x19b)]=new FSI();}async['ecrCreateRepository'](a){const u=a78s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x1aa)](f);}}async[a78s(0x17a)](a){const v=a78s;try{const b={'BlockDeviceMappings':[{'DeviceName':v(0x196),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[v(0x183)],'InstanceType':a[v(0x16c)],'KeyName':a[v(0x1b6)],'MaxCount':a[v(0x1bd)],'MinCount':a['minCount'],'SecurityGroupIds':a[v(0x1bf)][v(0x16d)](','),'SubnetId':a[v(0x18d)],'TagSpecifications':[{'ResourceType':v(0x1bb),'Tags':a[v(0x190)]}]};a['userData']&&(b[v(0x1d7)]=v(0x1c8)+a[v(0x1a2)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log['error'](f);}}async[a78s(0x172)](a){const w=a78s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[w(0x1b4)](c);return d;}catch(f){return Log[w(0x1aa)](f),{};}}async[a78s(0x1d0)]({keyName:a,env:b}){const x=a78s,c=this['fsi'][x(0x1d8)](b),d=a78f['join'](c,x(0x18a),a+x(0x1cc));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[x(0x1b4)](g),i=h['KeyMaterial'];if(i){await this['fsi'][x(0x1a0)]({'filePath':d,'data':i}),execSync(x(0x1da)+d,{'stdio':'ignore'});const j=this['fsi']['isFile'](d);if(j)return Log[x(0x174)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(x(0x171));}else throw new Error(x(0x1ab));}catch(k){Log[x(0x1aa)](k),process[x(0x189)](0x1);}}async[a78s(0x1a7)]({port:a,groupId:b}){const y=a78s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':y(0x19a),'IpRanges':[{'CidrIp':y(0x1b2),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](y(0x1cb)+a+y(0x1b7)),await client['send'](d);}async[a78s(0x1c4)](a){const z=a78s;try{a[z(0x16e)]===''&&(a[z(0x16e)]=await Actions['ask'](z(0x169))||z(0x192));const b={'Description':a[z(0x16e)],'GroupName':a['name'],'VpcId':a[z(0x1ad)]},c=new CreateSecurityGroupCommand(b),d=await client[z(0x1b4)](c),{GroupId:f}=d;if(!d)throw new Error(z(0x199));f&&a[z(0x16f)]['forEach'](g=>{const A=z;this[A(0x1a7)]({'port':parseInt(g),'groupId':f});}),Log['success'](z(0x1d9)+f+z(0x1d5)+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async[a78s(0x1c3)](a){const B=a78s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[B(0x1b4)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[B(0x1be)]((h,i)=>{const C=B;h[C(0x1b8)]&&b[C(0x1b1)]({'id':i,'name':h[C(0x1b8)]});}),b[B(0x1ba)]>0x0&&b['forEach'](h=>{const D=B;h['name']===a?.[D(0x1bc)]?Log['success'](D(0x1ac)+h['id']+D(0x1d5)+h['name']):Log[D(0x1d3)](D(0x1ac)+h['id']+D(0x1d5)+h[D(0x1c9)]);})):Log[B(0x1aa)](B(0x17f));}catch(h){Log['error'](h);}return b;}async['deleteKeyPair'](a){const E=a78s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[E(0x1aa)](d),process[E(0x189)](0x1);}}async[a78s(0x1ae)](){const F=a78s,a=[];try{const b={'Filters':[{'Name':F(0x1d1),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d['Reservations']?.['forEach']((f,g)=>{const G=F;if(f?.[G(0x1d2)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[G(0x1c7)](({Key:o})=>o==='environment');a[G(0x1b1)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[G(0x195)],'name':l,'env':n?.[G(0x17c)]});}}),a[F(0x1ba)]>0x0?a[F(0x1be)](f=>{const H=F,g=H(0x1ac)+f['id']+'\x20NAME:\x20'+f[H(0x1c9)]+H(0x16a)+f[H(0x1a3)]+H(0x181)+f[H(0x1b5)]+'\x20INSTANCE_ID:\x20'+f[H(0x18b)]+H(0x1a9)+f[H(0x19f)]+H(0x1cd)+f[H(0x170)];if(f[H(0x1b5)]===H(0x18f))Log[H(0x1aa)](g);else f[H(0x1b5)]===H(0x1af)?Log[H(0x174)](g):Log[H(0x1d3)](g);}):Log[F(0x1aa)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[F(0x1aa)](f);}return a;}async['ec2rebootInstance'](a){const I=a78s;try{const b={'InstanceIds':[a[I(0x18b)]]},c=new RebootInstancesCommand(b),d=await client[I(0x1b4)](c);return d[I(0x1a8)][I(0x19c)]===0xc8&&Log[I(0x174)](I(0x185)),d;}catch(f){Log[I(0x1aa)](f);}}async[a78s(0x1c2)](){const J=a78s;let a='';Log['notice']('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[J(0x1be)]((g,h)=>{const K=J;g[K(0x182)]&&g[K(0x1d6)]&&e[K(0x1b1)]({'id':h,'vpcId':g[K(0x182)],'cidr':g[K(0x1d6)]});});e[J(0x1be)](function(g){const L=J;console[L(0x176)](L(0x1ac)+g['id']+'\x20VPCID:\x20'+g[L(0x1ad)]+L(0x1cf)+g[L(0x193)]);});const f=await Actions[J(0x168)](J(0x191))||0x0;e[J(0x1be)](function(g){const M=J;g['id']==f&&(a=g['vpcId'],Log[M(0x174)](M(0x1c6)+a+'\x0a'));});if(a==='')return Log[J(0x1aa)](J(0x198)),'';return a;}async[a78s(0x177)](){const N=a78s,a=await this[N(0x1ae)]();if(a[N(0x1ba)]===0x0)return Log[N(0x1aa)](N(0x18e)),null;const b=await Actions['ask'](N(0x19e));!b&&(Log[N(0x1aa)](N(0x1c5)),process[N(0x189)](0x0));const c=a[N(0x1c7)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a78s(0x173)]({env:a}){const O=a78s,b=this[O(0x19b)]['getProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[O(0x168)](O(0x1a5)+d+']\x20')||d,{filePath:g}=await this[O(0x1d0)]({'keyName':f,'env':a});try{const h=await Actions[O(0x19d)](O(0x1b0),!![]);if(h)try{const i=a78e['readFileSync'](a78f[O(0x188)](O(0x1c1),a,O(0x167)),O(0x1ca)),j=JSON[O(0x1d4)](i);j[O(0x194)]=a78f[O(0x188)](O(0x18a),f+O(0x1cc)),a78e['writeFileSync'](a78f[O(0x188)]('config',a,'ssh.json'),JSON['stringify'](j,null,0x2));}catch(k){Log[O(0x1aa)](k),Log[O(0x1aa)](O(0x17d));}}catch(l){Log[O(0x1aa)](l),process[O(0x189)](0x1);}return{'keyName':f,'filePath':g};}async[a78s(0x1ce)](a){const b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const P=a78d;i[P(0x16b)]&&i['GroupId']&&b[P(0x1b1)]({'id':j,'name':i[P(0x16b)],'sgId':i[P(0x179)]});});let g='',h=0x0;return b['forEach'](function(i){const Q=a78d;i[Q(0x1c9)]===a&&(g=i[Q(0x1a6)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a78s(0x1a4)](a){const R=a78s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[R(0x1b4)](c);}catch(d){Log[R(0x1aa)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a79d,c=a();while(!![]){try{var d=parseInt(f(0xb3))/0x1+-parseInt(f(0xb1))/0x2*(-parseInt(f(0xaa))/0x3)+parseInt(f(0xa4))/0x4+parseInt(f(0xae))/0x5*(parseInt(f(0xaf))/0x6)+-parseInt(f(0xa5))/0x7*(-parseInt(f(0xa6))/0x8)+-parseInt(f(0xa8))/0x9+-parseInt(f(0xb0))/0xa*(parseInt(f(0xab))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xacca6));function a79c(){var i=['217025zAZiXH','281680HIFkkc','21gCtPzW','813776kAzZfD','constructor','3562353RsMTQL','(((.+)+)+)+$','6cRtfqu','1947LKMEgs','search','apply','45wqUOww','86694QVRQAH','5110mJsWgV','471362nSveip','toString'];a79c=function(){return i;};return a79c();}var a79b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a79d;if(c){var e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){var h=a79d;return a79a[h(0xb2)]()[h(0xac)](h(0xa9))[h(0xb2)]()[h(0xa7)](a79a)[h(0xac)](h(0xa9));});a79a();function a79d(a,b){var c=a79c();return a79d=function(d,e){d=d-0xa4;var f=c[d];return f;},a79d(a,b);}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a80l=a80d;(function(a,b){const j=a80d,c=a();while(!![]){try{const d=-parseInt(j(0xc1))/0x1+parseInt(j(0xd8))/0x2+-parseInt(j(0xd6))/0x3*(parseInt(j(0xd5))/0x4)+parseInt(j(0xd0))/0x5*(-parseInt(j(0xd3))/0x6)+-parseInt(j(0xce))/0x7+-parseInt(j(0xcc))/0x8*(parseInt(j(0xc9))/0x9)+-parseInt(j(0xc6))/0xa*(-parseInt(j(0xd2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x85a86));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const k=a80d;return a80a[k(0xc7)]()[k(0xc2)](k(0xc4))[k(0xc7)]()[k(0xc8)](a80a)[k(0xc2)]('(((.+)+)+)+$');});a80a();function a80c(){const p=['AWS','(((.+)+)+)+$','.dkr.ecr.','742420NWfMRq','toString','constructor','18fikbeM','.amazonaws.com/','join','797560gVdAgs','push','769685KtbiOV','tag','6550XpTFEr','error','253OnQdVr','108KGijgB','docker\x20','1556yQHKHQ','3099AwUkyY','.amazonaws.com','448952xvLnnE','inherit','649818wedJYi','search'];a80c=function(){return p;};return a80c();}import{execSync}from'child_process';function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0xc1;let f=c[d];return f;},a80d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a80l(0xcf)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a80l;try{const f=[m(0xcf),a,b+'.dkr.ecr.'+c+m(0xca)+d],g=m(0xd4)+f[m(0xcb)]('\x20'),h=execSync(g,{'stdio':m(0xd9)})['toString']();return h;}catch(i){return Log['error'](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const n=a80l;try{const c=['login','--username',n(0xc3),'--password-stdin',a+n(0xc5)+b+n(0xd7)],d='docker\x20'+c['join']('\x20'),f=execSync(d,{'stdio':n(0xd9)})[n(0xc7)]();return f;}catch(g){return Log[n(0xd1)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const o=a80l;try{const d=[o(0xcd),a+'.dkr.ecr.'+b+o(0xca)+c],f=o(0xd4)+d[o(0xcb)]('\x20'),g=execSync(f,{'stdio':'inherit'})[o(0xc7)]();return g;}catch(h){return Log['error'](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a81c(){var i=['141990gFmjnM','1212215sdCkVC','search','6036464iGvKzv','1111lYymQL','constructor','5XJQsGB','567994Hmdtxs','35147160fjynAK','1033335xCxTgr','5433voQfDt','(((.+)+)+)+$','toString','apply','2824QEFAqB','36QzQbBZ','72PLlxCv'];a81c=function(){return i;};return a81c();}function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x198;var f=c[d];return f;},a81d(a,b);}(function(a,b){var f=a81d,c=a();while(!![]){try{var d=-parseInt(f(0x19a))/0x1*(parseInt(f(0x19b))/0x2)+parseInt(f(0x19e))/0x3*(parseInt(f(0x1a2))/0x4)+-parseInt(f(0x1a6))/0x5*(-parseInt(f(0x1a3))/0x6)+-parseInt(f(0x1a8))/0x7+-parseInt(f(0x1a4))/0x8*(parseInt(f(0x19d))/0x9)+-parseInt(f(0x1a5))/0xa*(parseInt(f(0x198))/0xb)+parseInt(f(0x19c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xdebff));var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a81d;if(c){var e=c[g(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var h=a81d;return a81a['toString']()[h(0x1a7)](h(0x19f))[h(0x1a0)]()[h(0x199)](a81a)['search'](h(0x19f));});a81a();export{};
|