@maka/maka-cli 4.5.6 → 4.5.8
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 +5 -4
- package/bundle/obf/src/README.md +4 -0
- 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/templates/meteor/app/server/helmet-csp.js +1 -1
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +1 -1
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +1 -1
- package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +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 +1 -1
- package/bundle/obf/src/tools/actions/actions.test.js +0 -1
- package/bundle/obf/src/tools/aws/aws.test.js +0 -0
- package/bundle/obf/src/tools/docker/docker.test.js +0 -0
- package/bundle/obf/src/tools/log/log.test.js +0 -0
- package/bundle/obf/src/tools/spawn-async/spawn-async.test.js +0 -0
- package/bundle/obf/src/tools/ssh/ssh.test.js +0 -0
- package/bundle/obf/src/tools/ssl/ssl.test.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71x=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=parseInt(v(0x206))/0x1+parseInt(v(0x1ed))/0x2*(parseInt(v(0x1fb))/0x3)+-parseInt(v(0x215))/0x4*(-parseInt(v(0x1eb))/0x5)+-parseInt(v(0x1ec))/0x6+-parseInt(v(0x1e3))/0x7*(parseInt(v(0x1f0))/0x8)+parseInt(v(0x20f))/0x9*(parseInt(v(0x1f7))/0xa)+-parseInt(v(0x1e5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x43452));const a71b=(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;};}()),a71a=a71b(this,function(){const w=a71d;return a71a[w(0x1e1)]()[w(0x1d8)](w(0x1e4))[w(0x1e1)]()[w(0x1de)](a71a)['search']('(((.+)+)+)+$');});function a71c(){const G=['includes','page','routes.js','invoke','437963hSOYHH','client','lib','maka\x20g:route\x20todosEdit\x20todos/:id/edit','Scaffolding\x20for\x20a\x20Route.','withHook','imports','const\x20privateRoutes\x20=\x20(<>','map','1371834AxayhT','rewriteDestinationPathForEngine','/imports/ui/pages','ssr','vanilla','readFileLines','4PTxdmm','injectAfterLineNumber','<Route','<Router','react','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','search','route','\x22*\x22','engines','private','MasterLayout','constructor','join','maka\x20g:route\x20lists/listIndex\x20lists','toString','startup','974645KiZnkR','(((.+)+)+)+$','7123875eQxKex','length','only','root','url','const\x20publicRoutes\x20=\x20(<>','1233545HIwnrq','2354292RzUqjo','2oXSxOC','create','route/route.js','8wHMcfv','filter','pathFromApp','findGenerator','layout','newForm','\x0a\x09\x09','30RgcIBs','fsi','cwd','PrivateLayout','938490cjiwVl','config','true','toLowerCase','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','indexOf','maka\x20g:route\x20todosIndex\x20todos'];a71c=function(){return G;};return a71c();}a71a();import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a71d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a71x(0x1ee)]({'name':a71x(0x1d9),'aliases':aliases,'validOpts':[a71x(0x1dc),'layout',a71x(0x1e7),a71x(0x1f9),a71x(0x1fc),a71x(0x1e8),a71x(0x20b),a71x(0x1e9)],'usage':a71x(0x1ff),'shortDesc':a71x(0x20a),'examples':[a71x(0x201),a71x(0x209),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a71x(0x1e0)]},function(a,b){const y=a71x;try{const c=this['fsi']['getProjectConfig']();this[y(0x1f8)]['withValue'](c,async()=>{const z=y,d=b[z(0x1dc)]??![];let f=paramCase(a[0x0]),g='/'+f;a[z(0x1e6)]>0x1&&(g='/'+a['filter'](function(l){return l!=='/';})[z(0x1df)]('/')[z(0x1fe)]());f=camelCase(f);b[z(0x1f4)]&&(b[z(0x1f4)]=camelCase(b[z(0x1f4)]));const h=a71e[z(0x1df)](z(0x211),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[z(0x1f4)]||z(0x1dd),'templatePath':h,'templateName':pascalCase(f),'client':c[z(0x1db)][z(0x207)],'newForm':![],'withTranslations':c['features']['withTranslations']};d&&(i[z(0x1f4)]=z(0x1fa));if(!b[z(0x1e8)]){const l=a71f[z(0x1f3)](z(0x203));l&&await l[z(0x205)](a,b);}let j,k;if(c['engines']['client']==='react'){if(c[z(0x1db)][z(0x212)]===z(0x1fd)){const p=this[z(0x1f8)][z(0x1f2)]({'pathParts':[z(0x20c),z(0x1e2),z(0x208),z(0x204)]});j=this[z(0x1f8)][z(0x210)]({'pathParts':[p],'config':c});}else{const q=this[z(0x1f8)]['pathFromApp']({'pathParts':[z(0x20c),z(0x1e2),'client',z(0x204)]});j=this[z(0x1f8)][z(0x210)]({'pathParts':[q],'config':c});}const m=this[z(0x1f8)][z(0x214)](j)['map']((r,s)=>{const A=z;return r[A(0x202)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})['filter'](r=>r!==null);let n=this[z(0x1f8)][z(0x214)](j)[z(0x20e)]((r,s)=>{const B=z;return r[B(0x202)](B(0x1ea))?s+0x1:null;})[z(0x1f1)](r=>r!==null),o=this[z(0x1f8)]['readFileLines'](j)[z(0x20e)]((r,s)=>{const C=z;return r[C(0x202)](C(0x20d))?s+0x1:null;})['filter'](r=>r!==null);n[z(0x1e6)]>0x0&&o['length']>0x0&&(i[z(0x1f5)]=!![]);k=this['fsi']['templateContent']({'srcPath':z(0x1ef),'framework':z(0x1d6),'context':i,'config':c});if(n[z(0x1e6)]>0x0||o[z(0x1e6)]>0x0){this['fsi']['injectAfterLineNumber']({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o['length']>0x0)o=this['fsi'][z(0x214)](j)[z(0x20e)]((r,s)=>{const D=z;return r['includes'](D(0x20d))?s+0x1:null;})[z(0x1f1)](r=>r!==null),this[z(0x1f8)][z(0x1d3)]({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':o[0x0]});else n[z(0x1e6)]>0x0?(n=this[z(0x1f8)][z(0x214)](j)[z(0x20e)]((r,s)=>{const E=z;return r[E(0x202)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[z(0x1f1)](r=>r!==null),this[z(0x1f8)]['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log['warn'](z(0x1d7)+j);}else{const r=this[z(0x1f8)]['readFileLines'](j)[z(0x20e)](u=>{const F=z;return u[F(0x202)](F(0x1da));}),s=r[z(0x200)](!![])>-0x1,t=s?z(0x1d4):'</Router>';this[z(0x1f8)]['injectIntoFile']({'filePath':j,'content':z(0x1f6)+k+z(0x1f6),'begin':z(0x1d5),'end':t});}}else{if(c[z(0x1db)][z(0x207)]===z(0x213)){const u=this[z(0x1f8)][z(0x1f2)]({'pathParts':['imports','startup','client',z(0x204)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this[z(0x1f8)]['templateContent']({'srcPath':z(0x1ef),'context':i}),this['fsi']['injectAtEndOfFile']({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a72m=a72d;(function(a,b){const j=a72d,c=a();while(!![]){try{const d=-parseInt(j(0x199))/0x1*(parseInt(j(0x197))/0x2)+parseInt(j(0x1ad))/0x3+parseInt(j(0x1a6))/0x4*(-parseInt(j(0x1a3))/0x5)+-parseInt(j(0x1a8))/0x6+-parseInt(j(0x19f))/0x7*(-parseInt(j(0x1a5))/0x8)+parseInt(j(0x1b4))/0x9+parseInt(j(0x1ab))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x87cdc));function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x195;let f=c[d];return f;},a72d(a,b);}const a72b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a72d;if(c){const e=c[k(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){const l=a72d;return a72a[l(0x1a2)]()[l(0x198)]('(((.+)+)+)+$')[l(0x1a2)]()[l(0x19a)](a72a)['search'](l(0x1b9));});a72a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a72c(){const p=['194LYsgTf','search','5059JJVdyd','constructor','winston','resourceName','apply','engines','5897941CguZkn','Installing\x20winston','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','toString','907745LPWosC','imports','8WcYNrw','16BrJGRF','winston\x20setimmediate','5472114RWlFKz','pathFromApp','maka\x20{generate,\x20g}:{service}\x20[service-type]','8052890hohEVz','fsi','1978437HfcQXf','services','service/logger/logger.js','maka\x20g:svc\x20logger','logger','error','template','3400731Afbosu','svc','installNpmPackage','startup','tsx','(((.+)+)+)+$','withValue','lib'];a72c=function(){return p;};return a72c();}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'service','aliases':[a72m(0x1b5)],'usage':a72m(0x1aa),'shortDesc':a72m(0x1a1),'validOpts':['type'],'validArgs':['logger'],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a72m(0x1b0)]},async function(a,b){const n=a72m;try{const c=this[n(0x1ac)]['getProjectConfig']();this[n(0x1ac)][n(0x195)](c,async()=>{const o=n,d=this[o(0x1ac)][o(0x1a9)]({}),f=paramCase(b[o(0x19c)]),g={'name':pascalCase(b[o(0x19c)]),'fileName':f,'camelCase':camelCase(b[o(0x19c)]),'type':a[0x0],'engine':c[o(0x19e)]['js'],'noRename':!![]};let h='js';c[o(0x19e)]['js']===o(0x1b8)&&(h='ts');if(a[0x0]===o(0x1b1)){!this[o(0x1ac)]['checkNpmPackage'](o(0x19b))&&await this[o(0x1ac)][o(0x1b6)](o(0x1a7),{'cwd':d,'msg':o(0x1a0)});const i=this[o(0x1ac)]['pathFromApp']({'pathParts':[o(0x1a4),o(0x1b7),o(0x196),o(0x1ae),f+'.'+h]});this['fsi'][o(0x1b3)]({'srcPath':o(0x1af),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1b2)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-
|
|
1
|
+
function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0x144;var f=c[d];return f;},a73d(a,b);}function a73c(){var h=['constructor','1360482eFPSnc','690672IFDtmJ','4HmDzjD','search','30459936CLyfrC','(((.+)+)+)+$','5010159QZbIMF','3577496IRjJTS','toString','991285gvsOVW','417965MNYAzk'];a73c=function(){return h;};return a73c();}(function(a,b){var f=a73d,c=a();while(!![]){try{var d=parseInt(f(0x14c))/0x1+-parseInt(f(0x149))/0x2+-parseInt(f(0x14e))/0x3+-parseInt(f(0x144))/0x4*(parseInt(f(0x14b))/0x5)+-parseInt(f(0x14f))/0x6+-parseInt(f(0x148))/0x7+parseInt(f(0x146))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0xe8efd));var a73b=(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;};}()),a73a=a73b(this,function(){var g=a73d;return a73a[g(0x14a)]()[g(0x145)](g(0x147))[g(0x14a)]()[g(0x14d)](a73a)['search'](g(0x147));});a73a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x184;let f=c[d];return f;},a74d(a,b);}const a74l=a74d;(function(a,b){const i=a74d,c=a();while(!![]){try{const d=parseInt(i(0x198))/0x1*(-parseInt(i(0x197))/0x2)+-parseInt(i(0x184))/0x3+-parseInt(i(0x185))/0x4+-parseInt(i(0x18f))/0x5+parseInt(i(0x18e))/0x6+-parseInt(i(0x195))/0x7*(parseInt(i(0x18d))/0x8)+parseInt(i(0x18a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xba669));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a74d;if(c){const e=c[j(0x196)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const k=a74d;return a74a[k(0x192)]()['search'](k(0x188))['toString']()[k(0x19b)](a74a)[k(0x190)](k(0x188));});a74a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a74e from'path';Generator['create']({'name':'sslconfig','usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':['env'],'examples':[a74l(0x18b)],'validOpts':[a74l(0x191)]},async function(a,b){const m=a74l;try{const c=await this[m(0x186)][m(0x18c)](),d=await this[m(0x186)][m(0x19d)](),f=this[m(0x186)][m(0x189)](b['env']),g=a74e[m(0x187)](f,m(0x199),'openssl.conf');await this[m(0x186)][m(0x19a)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi']['template']({'srcPath':n(0x19c),'destPath':g,'framework':n(0x194),'context':h,'config':c});});}catch(h){Log[m(0x193)](h);}});function a74c(){const o=['getProjectConfig','3686248TwPigC','6742284IDjEXV','6368455PblwmG','search','env','toString','error','service','7aghRcM','apply','2cDcwfk','511801vPlghV','_keys','withValue','constructor','openssl/openssl.conf','getGlobalConfig','30570HOURBV','5810692PeUfki','fsi','join','(((.+)+)+)+$','getConfigPath','30140271CttBVQ','maka\x20g:sslconfig\x20--env\x20dev'];a74c=function(){return o;};return a74c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a75c(){const D=['\
|
|
1
|
+
const a75A=a75d;(function(a,b){const x=a75d,c=a();while(!![]){try{const d=-parseInt(x(0x152))/0x1+parseInt(x(0x154))/0x2+-parseInt(x(0x129))/0x3+parseInt(x(0x14a))/0x4*(parseInt(x(0x139))/0x5)+parseInt(x(0x15b))/0x6*(-parseInt(x(0x141))/0x7)+parseInt(x(0x13c))/0x8*(-parseInt(x(0x14e))/0x9)+parseInt(x(0x13e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xafce9));function a75c(){const D=['Generate\x20a\x20new\x20locale\x20translation','305927TYkzGo','Locale\x20already\x20exported:\x20','1203890MnEyiP','services','index.js','checkNpmPackage','import\x20\x27../lib/services/translations/i18n\x27;','true','\x20}\x20from\x20\x27./','102FXJicR','translations','injectAtEndOfFile','client','maka\x20g:translation\x20--lang=en\x20(default)','default\x20as\x20','getGlobalConfig','injectAtBeginningOfFile','appName','setProjectConfig','startup','i18n','lang','2810817DNIpIo','lib','pathFromApp','grep','apply','import\x20\x27../lib/services/translations/i18n\x27;\x0a','template','i18n/locales.js','constructor','fsi','create','locales','maka\x20g:translation\x20--lang=de','i18next\x20i18next-browser-languagedetector\x20react-i18next','engines','(((.+)+)+)+$','128445WqNOmP','imports','warn','56OPgPLw','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','11090090EfHtJR','i18n/i18n.js','exit','263179ZmaDnl','ssr','readFileSync','i18n.js','Locale\x20already\x20defined:\x20','isFile','translation','getProjectConfig','toString','156TUFLfj','installNpmPackage','i18n/index.js','root','142335IuJgPp','findAppDirectory','rewriteDestinationPathForEngine'];a75c=function(){return D;};return a75c();}const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a75d;if(c){const e=c[y(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const z=a75d;return a75a[z(0x149)]()['search'](z(0x138))['toString']()[z(0x131)](a75a)['search'](z(0x138));});a75a();function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x120;let f=c[d];return f;},a75d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a75e from'fs';Generator[a75A(0x133)]({'name':a75A(0x147),'usage':'maka\x20{generate,\x20g}:translation\x20--lang=<language>','aliases':[a75A(0x127)],'shortDesc':a75A(0x151),'noResource':!![],'examples':[a75A(0x120),'maka\x20g:translation\x20--lang=fr',a75A(0x135)],'validOpts':[a75A(0x128)]},function(a,b){const B=a75A;try{const c=this[B(0x132)][B(0x148)](),d=this['fsi'][B(0x122)](),f=this['fsi'][B(0x14f)]();this[B(0x132)]['withValue'](c,()=>{const C=B;try{!b[C(0x128)]&&(b[C(0x128)]='en');!b[C(0x14d)]&&!this[C(0x132)][C(0x157)]('i18next')&&(Log[C(0x13b)](C(0x13d)),this[C(0x132)][C(0x14b)](C(0x136),{'cwd':f}),this[C(0x132)][C(0x125)]('features.withTranslations',!![]));const g=this[C(0x132)][C(0x12b)]({'pathParts':['imports',C(0x126),C(0x15e),C(0x156)]}),h=this['fsi'][C(0x150)]({'pathParts':[g],'config':c}),i=this[C(0x132)]['grep'](a75e[C(0x143)](h)[C(0x149)](),C(0x158))[0x0]&&!![];if(c[C(0x137)][C(0x142)]===C(0x159)){!i&&this[C(0x132)][C(0x123)]({'filePath':h,'content':C(0x12e)});const t=this['fsi'][C(0x12b)]({'pathParts':[C(0x13a),C(0x126),'server',C(0x156)]}),u=this[C(0x132)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[C(0x132)][C(0x12c)](a75e['readFileSync'](u)[C(0x149)](),C(0x158))[0x0]&&!![];!v&&this[C(0x132)][C(0x123)]({'filePath':u,'content':C(0x12e)});}else!i&&this[C(0x132)][C(0x123)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x124)],'config':c},k=this['fsi'][C(0x12b)]({'pathParts':[C(0x13a),C(0x126),C(0x12a),C(0x155),C(0x15c),C(0x144)]}),l=this['fsi']['isFile'](this[C(0x132)][C(0x150)]({'pathParts':[k],'config':c}));!l&&this['fsi'][C(0x12f)]({'srcPath':C(0x13f),'destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x132)][C(0x12b)]({'pathParts':[C(0x13a),'startup',C(0x12a),'services',C(0x15c),C(0x134),b[C(0x128)]+'.js']}),n=this['fsi'][C(0x150)]({'pathParts':[m],'config':c}),o=this[C(0x132)][C(0x146)](n);!o?this[C(0x132)][C(0x12f)]({'srcPath':C(0x130),'destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x13b)](C(0x145)+n);const p=this[C(0x132)][C(0x12b)]({'pathParts':['imports',C(0x126),C(0x12a),C(0x155),C(0x15c),C(0x134),'index.'+c[C(0x137)]['js']]}),q=this[C(0x132)][C(0x150)]({'pathParts':[p],'config':c}),r=this[C(0x132)][C(0x146)](q);!r&&this[C(0x132)][C(0x12f)]({'srcPath':C(0x14c),'destPath':p,'framework':'service','context':j,'config':c});const s=this['fsi'][C(0x12c)](a75e[C(0x143)](p)[C(0x149)](),C(0x121)+b[C(0x128)])[0x0]&&!![];!s?this[C(0x132)][C(0x15d)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[C(0x128)]+C(0x15a)+b['lang']+'\x27;'}):Log[C(0x13b)](C(0x153)+p);}catch(w){Log['error'](w),process[C(0x140)](0x1);}});}catch(g){Log['error'](g),process[B(0x140)](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 a76m=a76d;(function(a,b){const j=a76d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
2
|
+
const a76m=a76d;(function(a,b){const j=a76d,c=a();while(!![]){try{const d=-parseInt(j(0xb5))/0x1+parseInt(j(0xaa))/0x2+parseInt(j(0xbd))/0x3+-parseInt(j(0xa7))/0x4+parseInt(j(0xb1))/0x5*(parseInt(j(0xb9))/0x6)+parseInt(j(0xbf))/0x7*(parseInt(j(0xad))/0x8)+parseInt(j(0xac))/0x9*(parseInt(j(0xaf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0xa6542));function a76c(){const n=['constructor','436687ianLtd','dirname','apply','search','246060qNXcLZ','BROWSERSLIST_IGNORE_OLD_DATA','MAKA_COMMAND_PATH','toString','1733685RqFRWa','url','107499ZLTdlT','camelizeKeys','TOOL_NODE_FLAGS','(((.+)+)+)+$','4121384Mpweby','argv','--max-old-space-size=','1592782ovHFPv','slice','2925nTehZY','256TttcsL','floor','4910KTuuXo','stringify','15WcSYyw','parse','env'];a76c=function(){return n;};return a76c();}const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a76d;if(c){const e=c[k(0xb7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const l=a76d;return a76a[l(0xbc)]()[l(0xb8)](l(0xa6))[l(0xbc)]()[l(0xb4)](a76a)[l(0xb8)](l(0xa6));});a76a();import a76e from'minimist';import a76f from'os';import a76g from'path';import a76h from'humps';import a76i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a76m(0xbe)]),__dirname=a76g[a76m(0xb6)](__filename);global[a76m(0xbb)]=__dirname;const total_memory=a76f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a76m(0xae)](total_mem_in_mb),process[a76m(0xb3)][a76m(0xc1)]=a76m(0xa9)+total_mem_in_mb,process[a76m(0xb3)][a76m(0xba)]='1';const argv=a76e(process[a76m(0xa8)][a76m(0xab)](0x2)),args=argv['_'],deepCopyArgv=JSON[a76m(0xb2)](JSON[a76m(0xb0)](argv));function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0xa6;let f=c[d];return f;},a76d(a,b);}delete deepCopyArgv['_'];const opts=a76h[a76m(0xc0)](deepCopyArgv);a76i['run'](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77j=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d=-parseInt(h(0x194))/0x1*(parseInt(h(0x188))/0x2)+-parseInt(h(0x1a9))/0x3*(-parseInt(h(0x1a4))/0x4)+parseInt(h(0x18f))/0x5*(parseInt(h(0x1ac))/0x6)+parseInt(h(0x19b))/0x7*(-parseInt(h(0x196))/0x8)+-parseInt(h(0x178))/0x9+parseInt(h(0x193))/0xa+-parseInt(h(0x1aa))/0xb*(-parseInt(h(0x190))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x35238));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const i=a77d;return a77a[i(0x181)]()[i(0x19f)](i(0x1ae))[i(0x181)]()['constructor'](a77a)[i(0x19f)](i(0x1ae));});a77a();import a77e from'path';import a77f from'os';import a77g from'fs';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x176;let f=c[d];return f;},a77d(a,b);}const homeDir=a77f[a77j(0x1ab)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';function a77c(){const x=['platform','docker','validateMeteorInstall','1219134WGDhnN','findProjectDirectory','win32','Invalid\x20options:\x20','search','.meteor','NIE','None','keys','72pNYNQy','includes','No\x20usage\x20provided.','options','cwd','35556YBsUJU','33bRrDhj','homedir','138642mYIKuR','length','(((.+)+)+)+$','description','validateParams','1223217SubuGE','match','examples','shortDesc','Missing\x20required\x20options\x20','name','concat','fsi','push','toString','Local','aliases','error','usage','Missing\x20required\x20option:\x20','join','158622GWYYPx','config','_handler','existsSync','validateMakaProject','help','parent','5IPYkjp','1250460jPCNce','dir','AppData','3114570QnGUzJ','2RSVMNy','root','16bjHeHl','forEach'];a77c=function(){return x;};return a77c();}import{UsageError}from'./error.js';export class Tool{[a77j(0x199)];[a77j(0x17f)];[a77j(0x1a7)];[a77j(0x17d)];['parent'];[a77j(0x18a)];constructor(){const k=a77j;this[k(0x199)]=new Docker(),this['fsi']=new FSI();}[a77j(0x179)](a){const l=a77j,b=[this['name']][l(0x17e)](this['options'][l(0x183)]||[]);return this[l(0x18e)]&&b[l(0x180)](this[l(0x18e)]),b['includes'](a);}[a77j(0x18c)](){const m=a77j,a=this[m(0x17f)][m(0x19c)]();return a!==![]?!![]:![];}[a77j(0x19a)](){const n=a77j;let a=a77e[n(0x187)](homeDir,n(0x1a0));const b=process[n(0x198)]===n(0x19d);if(b){a=a77e[n(0x187)](homeDir,n(0x192),n(0x182),n(0x1a0));if(!a77g['existsSync'](a))return![];}else{if(!a77g[n(0x18b)](a))return![];}return!![];}[a77j(0x177)](a,b,c){const o=a77j,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[o(0x1a3)](b);d?.['length']>0x0&&a[o(0x197)](f=>{const p=o;if(!d['includes'](f)){Log[p(0x184)]('Invalid\x20argument:\x20'+f);throw new UsageError();}});if(requiredOpts?.[o(0x1ad)]>0x0){if(e[o(0x1ad)]===0x0){Log[o(0x184)](o(0x17c)+requiredOpts[o(0x187)](',\x20'));throw new UsageError();}requiredOpts['forEach'](f=>{const q=o;if(!e['includes'](f)){Log[q(0x184)](q(0x186)+f);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts),validOpts?.[o(0x1ad)]>0x0&&(validOpts[o(0x180)](o(0x18d)),validOpts['push']('resourceName'),validOpts[o(0x180)](o(0x191)),validOpts[o(0x180)](o(0x1a8)),validOpts[o(0x180)](o(0x195)),validOpts[o(0x180)](o(0x189)),e[o(0x197)](f=>{const r=o;if(!validOpts[r(0x1a5)](f)){Log[r(0x184)](r(0x19e)+f);throw new UsageError();}}));}[a77j(0x176)](){const s=a77j;return this[s(0x1a7)][s(0x176)]||this[s(0x1a7)]['shortDesc']||'No\x20description\x20provided.';}[a77j(0x17b)](){const t=a77j;return this[t(0x1a7)][t(0x17b)]||t(0x1a1);}[a77j(0x185)](){const u=a77j;return this[u(0x1a7)][u(0x185)]||u(0x1a6);}[a77j(0x17a)](){const v=a77j;return this[v(0x1a7)][v(0x17a)]||[];}[a77j(0x183)](){const w=a77j;return this[w(0x1a7)][w(0x183)]||w(0x1a2);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78j=a78d;(function(a,b){const f=a78d,c=a();while(!![]){try{const d=parseInt(f(0x79))/0x1+parseInt(f(0x74))/0x2+parseInt(f(0x78))/0x3+parseInt(f(0x67))/0x4*(parseInt(f(0x70))/0x5)+-parseInt(f(0x6c))/0x6+parseInt(f(0x6a))/0x7*(parseInt(f(0x6d))/0x8)+parseInt(f(0x71))/0x9*(-parseInt(f(0x73))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x6c25d));function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x67;let f=c[d];return f;},a78d(a,b);}const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a78d;if(c){const e=c[g(0x76)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const h=a78d;return a78a[h(0x69)]()[h(0x6b)](h(0x77))[h(0x69)]()[h(0x68)](a78a)[h(0x6b)](h(0x77));});a78a();import a78e from'inquirer';export class Actions{static async['ask'](a,b){const i=a78d,{answer:c}=await a78e[i(0x72)]({'type':b?i(0x6e):i(0x7a),'name':i(0x6f),'message':a});return c;}static async[a78j(0x75)](a,b=![]){const k=a78j,{answer:c}=await a78e[k(0x72)]({'type':k(0x75),'name':k(0x6f),'message':a,'default':b});return c;}static async['options'](a){const l=a78j,b=await a78e[l(0x72)](a);return b;}}function a78c(){const m=['toString','14bXgdwZ','search','4427880AJIZUy','3258784MvtDge','password','answer','985DVHKLl','4980267VimbEq','prompt','30GwqVew','1570450QcyHBi','confirm','apply','(((.+)+)+)+$','1543446vWgaQu','237685xiSsHJ','input','9928WpqORO','constructor'];a78c=function(){return m;};return a78c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79s=a79d;(function(a,b){const p=a79d,c=a();while(!![]){try{const d=parseInt(p(0xe3))/0x1*(parseInt(p(0x135))/0x2)+-parseInt(p(0x10e))/0x3*(parseInt(p(0x129))/0x4)+parseInt(p(0xe7))/0x5+-parseInt(p(0x144))/0x6*(-parseInt(p(0x140))/0x7)+-parseInt(p(0xd7))/0x8*(parseInt(p(0x107))/0x9)+-parseInt(p(0x110))/0xa*(-parseInt(p(0x11e))/0xb)+parseInt(p(0x12b))/0xc*(-parseInt(p(0x12d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xe3d22));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a79d;if(c){const e=c[q(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const r=a79d;return a79a[r(0xe1)]()['search']('(((.+)+)+)+$')[r(0xe1)]()[r(0x10b)](a79a)['search']('(((.+)+)+)+$');});a79a();import a79e from'fs';import a79f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0xd6;let f=c[d];return f;},a79d(a,b);}import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';function a79c(){const R=['Web\x20App','ec2create','601799cxKHGb','UserData','$metadata','environment','env','deleteKeyPair','publicIp','Name','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','maxCount','\x20CIDR:\x20','3767348eWIuDN','instance','12BsSOsn','running','4830683Oytcop','\x20PUB_IP:\x20','getSecurityGroups','fsi','pem','type','KeyMaterial','GroupName','4COmSxb','\x20VPCID:\x20','\x20ENV:\x20','_keys','vpcId','httpStatusCode','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','stringify','confirm','createKeyPairEC2Key','Value','644MjfxoP','ask','key','Instance\x20rebooted!','786OXdfuN','sgIds','getProjectConfig','join','Created:\x20','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','8MOwhoH','cidr','writeFileSync','Error\x20generating\x20key\x20pair','length','send','error','privateIp','status','Please\x20choose\x20a\x20VPC:\x20[0]\x20','toString','imageId','534371HSGTGn','No\x20instances\x20found','readFileSync','Pem\x20key\x20saved\x20to\x20','6523210galYrn','Instances','ssh.json','sgPorts','KeyName','utf8','chooseVPC','instanceId','ecrCreateRepository','sgId','name','log','createKeyPair','ec2terminateInstance','Reservations','find','exit','chooseInstance','/dev/sdh','tag:created-by','success','deleteSecurityGroup','ec2describeInstances','push','VpcId','\x20STATUS:\x20','subnet','ignore','forEach','ID:\x20','minCount','notice','15036354hRLxQZ','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','tcp','createFile','constructor','GroupId','.pem.txt','3DQlDrq','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','280FIArjM','\x20PRIV_IP:\x20','Port\x20','apply','config','Error\x20saving\x20pem\x20file,\x20aborting','description','\x20NAME:\x20','\x20opened!','parse','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','tags'];a79c=function(){return R;};return a79c();}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';const client=new EC2Client({}),ecrClient=new ECRClient({});export class AWS{[a79s(0x130)];constructor(){const t=a79s;this[t(0x130)]=new FSI();}async[a79s(0xef)](a){const u=a79s;try{const b={'repositoryName':a[u(0xf1)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0xdc)](c);return d;}catch(f){Log[u(0xdd)](f);}}async[a79s(0x11d)](a){const v=a79s;try{const b={'BlockDeviceMappings':[{'DeviceName':v(0xf9),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[v(0xe2)],'InstanceType':a[v(0x132)],'KeyName':a[v(0x142)],'MaxCount':a[v(0x127)],'MinCount':a[v(0x105)],'SecurityGroupIds':a[v(0x145)]['split'](','),'SubnetId':a[v(0x101)],'TagSpecifications':[{'ResourceType':v(0x12a),'Tags':a[v(0x11b)]}]};a['userData']&&(b[v(0x11f)]='file://'+a['userData']);const c=new RunInstancesCommand(b),d=await client[v(0xdc)](c);return d;}catch(f){Log['error'](f);}}async[a79s(0xf4)](a){const w=a79s;try{const b={'InstanceIds':[a[w(0xee)]]},c=new TerminateInstancesCommand(b),d=await client[w(0xdc)](c);return d;}catch(f){return Log[w(0xdd)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const x=a79s,c=this[x(0x130)]['getConfigPath'](b),d=a79f[x(0x147)](c,'_keys',a+x(0x10d));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[x(0xdc)](g),i=h[x(0x133)];if(i){await this[x(0x130)][x(0x10a)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':x(0x102)});const j=this[x(0x130)]['isFile'](d);if(j)return Log[x(0xfb)](x(0xe6)+d),{'keyName':a,'filePath':d};else throw new Error(x(0x115));}else throw new Error(x(0xda));}catch(k){Log['error'](k),process['exit'](0x1);}}async['ingressRule']({port:a,groupId:b}){const y=a79s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':y(0x109),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](y(0x112)+a+y(0x118)),await client[y(0xdc)](d);}async['ec2createSG'](a){const z=a79s;try{a['description']===''&&(a['description']=await Actions[z(0x141)]('Description:')||z(0x11c));const b={'Description':a[z(0x116)],'GroupName':a[z(0xf1)],'VpcId':a[z(0x139)]},c=new CreateSecurityGroupCommand(b),d=await client[z(0xdc)](c),{GroupId:f}=d;if(!d)throw new Error(z(0x13b));f&&a[z(0xea)][z(0x103)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[z(0xfb)](z(0x148)+f+z(0x117)+a[z(0xf1)]);}catch(g){return Log[z(0xdd)](g),![];}return!![];}async['ec2describeKeys'](a){const A=a79s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[A(0xdc)](d);if(!f)throw A(0x13b);const {KeyPairs:g}=f;g?(g?.[A(0x103)]((h,i)=>{const B=A;h['KeyName']&&b[B(0xfe)]({'id':i,'name':h[B(0xeb)]});}),b['length']>0x0&&b[A(0x103)](h=>{const C=A;h[C(0xf1)]===a?.['suggestion']?Log[C(0xfb)](C(0x104)+h['id']+C(0x117)+h[C(0xf1)]):Log[C(0x106)](C(0x104)+h['id']+C(0x117)+h[C(0xf1)]);})):Log[A(0xdd)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[A(0xdd)](h);}return b;}async[a79s(0x123)](a){const D=a79s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[D(0xdd)](d),process[D(0xf7)](0x1);}}async[a79s(0xfd)](){const E=a79s,a=[];try{const b={'Filters':[{'Name':E(0xfa),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[E(0xdc)](c);d[E(0xf5)]?.[E(0x103)]((f,g)=>{const F=E;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[F(0xe8)][0x0],n=m?.['find'](({Key:o})=>o===F(0x121));a[F(0xfe)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[F(0x125)],'name':l,'env':n?.[F(0x13f)]});}}),a[E(0xdb)]>0x0?a['forEach'](f=>{const G=E,g=G(0x104)+f['id']+G(0x117)+f[G(0xf1)]+G(0x137)+f[G(0x122)]+G(0x100)+f[G(0xdf)]+'\x20INSTANCE_ID:\x20'+f[G(0xee)]+G(0x12e)+f[G(0x124)]+G(0x111)+f[G(0xde)];if(f['status']==='terminated')Log[G(0xdd)](g);else f[G(0xdf)]===G(0x12c)?Log[G(0xfb)](g):Log[G(0x106)](g);}):Log[E(0xdd)](E(0x126));}catch(f){Log[E(0xdd)](f);}return a;}async['ec2rebootInstance'](a){const H=a79s;try{const b={'InstanceIds':[a[H(0xee)]]},c=new RebootInstancesCommand(b),d=await client[H(0xdc)](c);return d[H(0x120)][H(0x13a)]===0xc8&&Log['success'](H(0x143)),d;}catch(f){Log[H(0xdd)](f);}}async[a79s(0xed)](){const I=a79s;let a='';Log[I(0x106)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[I(0xdc)](b),{Vpcs:d}=c,e=[];d&&d[I(0x103)]((g,h)=>{const J=I;g[J(0xff)]&&g['CidrBlock']&&e[J(0xfe)]({'id':h,'vpcId':g[J(0xff)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const K=I;console[K(0xf2)](K(0x104)+g['id']+K(0x136)+g['vpcId']+K(0x128)+g[K(0xd8)]);});const f=await Actions['ask'](I(0xe0))||0x0;e[I(0x103)](function(g){g['id']==f&&(a=g['vpcId'],Log['success']('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log['error'](I(0x10f)),'';return a;}async[a79s(0xf8)](){const L=a79s,a=await this[L(0xfd)]();if(a['length']===0x0)return Log['error'](L(0xe4)),null;const b=await Actions[L(0x141)](L(0xd6));!b&&(Log['error']('Invalid\x20choice'),process[L(0xf7)](0x0));const c=a[L(0xf6)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a79s(0xf3)]({env:a}){const M=a79s,b=this[M(0x130)][M(0x146)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask']('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[M(0x13e)]({'keyName':f,'env':a});try{const h=await Actions[M(0x13d)](M(0x11a),!![]);if(h)try{const i=a79e[M(0xe5)](a79f[M(0x147)](M(0x114),a,M(0xe9)),M(0xec)),j=JSON[M(0x119)](i);j[M(0x131)]=a79f[M(0x147)](M(0x138),f+M(0x10d)),a79e[M(0xd9)](a79f['join']('config',a,'ssh.json'),JSON[M(0x13c)](j,null,0x2));}catch(k){Log[M(0xdd)](k),Log[M(0xdd)](M(0x108));}}catch(l){Log[M(0xdd)](l),process[M(0xf7)](0x1);}return{'keyName':f,'filePath':g};}async[a79s(0x12f)](a){const N=a79s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[N(0xdc)](d),{SecurityGroups:f}=e;f&&f[N(0x103)](function(i,j){const O=N;i[O(0x134)]&&i[O(0x10c)]&&b['push']({'id':j,'name':i[O(0x134)],'sgId':i['GroupId']});});let g='',h=0x0;return b[N(0x103)](function(i){const P=N;i['name']===a&&(g=i[P(0xf0)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a79s(0xfc)](a){const Q=a79s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[Q(0xdd)](d),process[Q(0xf7)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a80d,c=a();while(!![]){try{var d=-parseInt(f(0xf5))/0x1+-parseInt(f(0xf8))/0x2+-parseInt(f(0xfc))/0x3+-parseInt(f(0xff))/0x4*(parseInt(f(0xfb))/0x5)+parseInt(f(0xfd))/0x6*(parseInt(f(0xf6))/0x7)+parseInt(f(0x100))/0x8+parseInt(f(0xfe))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x60c25));var a80b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a80d;if(c){var e=c[g(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){var h=a80d;return a80a[h(0xf7)]()[h(0xf9)](h(0xfa))[h(0xf7)]()['constructor'](a80a)[h(0xf9)](h(0xfa));});function a80d(a,b){var c=a80c();return a80d=function(d,e){d=d-0xf5;var f=c[d];return f;},a80d(a,b);}a80a();function a80c(){var i=['search','(((.+)+)+)+$','2095MPGCDD','207168nOkEqi','90APUcsb','9513738yCSKzs','6236wJBbgM','6305472XbELQJ','apply','701089GhCzzB','10703sxNFtf','toString','97020uBrvpO'];a80c=function(){return i;};return a80c();}export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a81l=a81d;(function(a,b){const j=a81d,c=a();while(!![]){try{const d=-parseInt(j(0x1b3))/0x1+-parseInt(j(0x1b1))/0x2*(parseInt(j(0x1a4))/0x3)+parseInt(j(0x1a7))/0x4+parseInt(j(0x1b4))/0x5+-parseInt(j(0x19d))/0x6*(-parseInt(j(0x1a6))/0x7)+parseInt(j(0x1b6))/0x8+-parseInt(j(0x1a5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x601b5));const a81b=(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;};}()),a81a=a81b(this,function(){const k=a81d;return a81a[k(0x1aa)]()[k(0x19f)](k(0x1af))[k(0x1aa)]()[k(0x1ac)](a81a)['search'](k(0x1af));});function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x19c;let f=c[d];return f;},a81d(a,b);}a81a();import{execSync}from'child_process';function a81c(){const p=['join','search','AWS','--username','tag','docker\x20','41253OvMAKa','3407193FWVVEH','133CZvICO','1419028KTymRE','pushImage','awsLogin','toString','error','constructor','.amazonaws.com/','.amazonaws.com','(((.+)+)+)+$','.dkr.ecr.','94XJVWCi','push','100243OkweTS','1069070ZASjlm','inherit','4942960jeEDLH','--password-stdin','104946WRVcTQ'];a81c=function(){return p;};return a81c();}import{Log}from'../log/log.class.js';export class Docker{static[a81l(0x1a2)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a81l;try{const f=['tag',a,b+m(0x1b0)+c+m(0x1ad)+d],g='docker\x20'+f[m(0x19e)]('\x20'),h=execSync(g,{'stdio':m(0x1b5)})['toString']();return h;}catch(i){return Log[m(0x1ab)](i),'';}}static[a81l(0x1a9)]({awsAccountId:a,region:b}){const n=a81l;try{const c=['login',n(0x1a1),n(0x1a0),n(0x19c),a+n(0x1b0)+b+n(0x1ae)],d='docker\x20'+c['join']('\x20'),f=execSync(d,{'stdio':n(0x1b5)})['toString']();return f;}catch(g){return Log['error'](g),'';}}static[a81l(0x1a8)]({awsAccountId:a,region:b,repoName:c}){const o=a81l;try{const d=[o(0x1b2),a+o(0x1b0)+b+o(0x1ad)+c],f=o(0x1a3)+d[o(0x19e)]('\x20'),g=execSync(f,{'stdio':o(0x1b5)})[o(0x1aa)]();return g;}catch(h){return Log[o(0x1ab)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a82d,c=a();while(!![]){try{var d=-parseInt(f(0x1b3))/0x1+parseInt(f(0x1b2))/0x2+parseInt(f(0x1ab))/0x3+-parseInt(f(0x1b1))/0x4*(parseInt(f(0x1b0))/0x5)+parseInt(f(0x1af))/0x6+parseInt(f(0x1ac))/0x7*(-parseInt(f(0x1b5))/0x8)+parseInt(f(0x1ad))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x7283a));function a82d(a,b){var c=a82c();return a82d=function(d,e){d=d-0x1a9;var f=c[d];return f;},a82d(a,b);}var a82b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a82d;if(c){var e=c[g(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){var h=a82d;return a82a[h(0x1aa)]()[h(0x1ae)](h(0x1b6))[h(0x1aa)]()[h(0x1a9)](a82a)[h(0x1ae)](h(0x1b6));});function a82c(){var i=['toString','1399146FIFcRU','49mJzhMl','1881126YyWlDM','search','2951616jgMtIO','6840gKUcKu','1304fWfPZm','752958WKcgiq','514840BmvVgc','apply','130232NAxeEr','(((.+)+)+)+$','constructor'];a82c=function(){return i;};return a82c();}a82a();export{};
|