@maka/maka-cli 4.4.5 → 4.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +5 -2
- 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 +5 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70j=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d
|
|
1
|
+
const a70j=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0xe9))/0x1+parseInt(h(0xfa))/0x2+-parseInt(h(0xe3))/0x3*(parseInt(h(0xee))/0x4)+-parseInt(h(0xf3))/0x5*(parseInt(h(0xe8))/0x6)+parseInt(h(0xec))/0x7*(parseInt(h(0xeb))/0x8)+parseInt(h(0xf4))/0x9*(-parseInt(h(0xed))/0xa)+-parseInt(h(0xe4))/0xb*(-parseInt(h(0xfb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x35a75));const a70b=(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;};}()),a70a=a70b(this,function(){const i=a70d;return a70a[i(0xf9)]()[i(0xf2)](i(0xe5))[i(0xf9)]()['constructor'](a70a)[i(0xf2)]('(((.+)+)+)+$');});function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0xe2;let f=c[d];return f;},a70d(a,b);}function a70c(){const m=['create','search','2245bpRAOl','134127NzDEtw','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','injectAtEndOfFile','tsx','rewriteDestinationPathForEngine','toString','367792kBDEaZ','494136wKgqeh','withValue','resourceName','182958GYqGTV','165rYLkEI','(((.+)+)+)+$','maka\x20g:publish\x20todos','engines','1878JJwiFr','201916gGgWab','fsi','15256ZSmoiP','574fNMbQP','20qvdIPz','24LEuMDg','publish','templateContent'];a70c=function(){return m;};return a70c();}a70a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a70j(0xf1)]({'name':a70j(0xef),'aliases':['p'],'usage':a70j(0xf5),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a70j(0xe6)]},async function(a,b){const k=a70j,c=this[k(0xea)]['getProjectConfig']();this[k(0xea)][k(0xfc)](c,async()=>{const l=k,d={'name':b[l(0xe2)],'collection':paramCase(b[l(0xe2)]),'noRename':!![]};let e='js';c[l(0xe7)]['js']===l(0xf7)&&(e='ts');const f=this[l(0xea)][l(0xf8)]({'pathParts':['server/publish.'+c['engines']['js']]}),g=this['fsi'][l(0xf0)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[l(0xea)][l(0xf6)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=parseInt(v(0x1a5))/0x1*(parseInt(v(0x1c5))/0x2)+-parseInt(v(0x1b0))/0x3*(-parseInt(v(0x197))/0x4)+-parseInt(v(0x1c9))/0x5*(parseInt(v(0x1a8))/0x6)+parseInt(v(0x1dc))/0x7*(parseInt(v(0x1b2))/0x8)+parseInt(v(0x1c6))/0x9+parseInt(v(0x19c))/0xa*(parseInt(v(0x198))/0xb)+-parseInt(v(0x1a9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x7454a));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a['toString']()[x(0x1de)](x(0x1bc))['toString']()[x(0x1d7)](a71a)['search']('(((.+)+)+)+$');});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 a71c(){const H=['12066AskGmo','client','13040uYKohN','route/route.js','vanilla','readFileLines','/imports/ui/pages','private','injectAfterLineNumber','config','warn','MasterLayout','(((.+)+)+)+$','injectIntoFile','root','react','findGenerator','startup','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','\x22*\x22','cwd','126OrlrVm','7236891lKaVlb','rewriteDestinationPathForEngine','join','10345sHsrCD','Scaffolding\x20for\x20a\x20Route.','only','layout','page','error','routes.js','route','length','fsi','imports','templateName','apply','const\x20privateRoutes\x20=\x20(<>','constructor','invoke','features','<Route','includes','966gJKFba','toLowerCase','search','</Router>','428WlOcDS','22VzUNDI','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','\x0a\x09\x09','pathFromApp','812540CUBKJo','engines','map','withHook','getProjectConfig','templateContent','maka\x20g:route\x20todosIndex\x20todos','indexOf','const\x20publicRoutes\x20=\x20(<>','4417VhMFTs','PrivateLayout','filter','504hEXBSR','14998632vsKZRf','maka\x20g:route\x20lists/listIndex\x20lists','<Router','newForm','maka\x20g:route\x20todosEdit\x20todos/:id/edit','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','withValue'];a71c=function(){return H;};return a71c();}function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x197;let f=c[d];return f;},a71d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a71y(0x1d0),'aliases':aliases,'validOpts':[a71y(0x1b7),'layout',a71y(0x1cb),a71y(0x1c4),a71y(0x1b9),a71y(0x1be),a71y(0x19f)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','shortDesc':a71y(0x1ca),'examples':[a71y(0x1a2),a71y(0x1ad),a71y(0x1ae),a71y(0x1aa)]},function(a,b){const z=a71y;try{const c=this[z(0x1d2)][z(0x1a0)]();this['fsi'][z(0x1af)](c,async()=>{const A=z,d=b[A(0x1b7)]??![];let f=paramCase(a[0x0]),g='/'+f;a[A(0x1d1)]>0x1&&(g='/'+a[A(0x1a7)](function(l){return l!=='/';})['join']('/')[A(0x1dd)]());f=camelCase(f);b['layout']&&(b[A(0x1cc)]=camelCase(b['layout']));const h=a71e[A(0x1c8)](A(0x1b6),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b['layout']||A(0x1bb),'templatePath':h,'templateName':pascalCase(f),'client':c['engines'][A(0x1b1)],'newForm':![],'withTranslations':c[A(0x1d9)]['withTranslations']};d&&(i[A(0x1cc)]=A(0x1a6));if(!b[A(0x1be)]){const l=a71f[A(0x1c0)](A(0x1cd));l&&await l[A(0x1d8)](a,b);}let j,k;if(c[A(0x19d)][A(0x1b1)]===A(0x1bf)){if(c['engines']['ssr']==='true'){const p=this[A(0x1d2)][A(0x19b)]({'pathParts':[A(0x1d3),'startup','lib',A(0x1cf)]});j=this[A(0x1d2)][A(0x1c7)]({'pathParts':[p],'config':c});}else{const q=this['fsi'][A(0x19b)]({'pathParts':[A(0x1d3),A(0x1c1),'client',A(0x1cf)]});j=this[A(0x1d2)][A(0x1c7)]({'pathParts':[q],'config':c});}const m=this[A(0x1d2)][A(0x1b5)](j)[A(0x19e)]((r,s)=>{const B=A;return r[B(0x1db)](B(0x1c2))?s+0x1:null;})['filter'](r=>r!==null);let n=this[A(0x1d2)][A(0x1b5)](j)[A(0x19e)]((r,s)=>{const C=A;return r[C(0x1db)](C(0x1a4))?s+0x1:null;})[A(0x1a7)](r=>r!==null),o=this[A(0x1d2)][A(0x1b5)](j)[A(0x19e)]((r,s)=>{const D=A;return r[D(0x1db)]('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x1a7)](r=>r!==null);n[A(0x1d1)]>0x0&&o[A(0x1d1)]>0x0&&(i[A(0x1ac)]=!![]);k=this[A(0x1d2)]['templateContent']({'srcPath':A(0x1b3),'framework':A(0x1bf),'context':i,'config':c});if(n['length']>0x0||o[A(0x1d1)]>0x0){this[A(0x1d2)][A(0x1b8)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x1d1)]>0x0)o=this[A(0x1d2)][A(0x1b5)](j)[A(0x19e)]((r,s)=>{const E=A;return r['includes'](E(0x1d6))?s+0x1:null;})['filter'](r=>r!==null),this[A(0x1d2)][A(0x1b8)]({'filePath':j,'content':'\x09{'+i[A(0x1d4)]+'}','lineNumber':o[0x0]});else n['length']>0x0?(n=this['fsi'][A(0x1b5)](j)[A(0x19e)]((r,s)=>{const F=A;return r[F(0x1db)](F(0x1a4))?s+0x1:null;})[A(0x1a7)](r=>r!==null),this[A(0x1d2)][A(0x1b8)]({'filePath':j,'content':'\x09{'+i[A(0x1d4)]+'}','lineNumber':n[0x0]})):Log[A(0x1ba)](A(0x199)+j);}else{const r=this[A(0x1d2)][A(0x1b5)](j)['map'](u=>{const G=A;return u[G(0x1db)](G(0x1c3));}),s=r[A(0x1a3)](!![])>-0x1,t=s?A(0x1da):A(0x1df);this['fsi'][A(0x1bd)]({'filePath':j,'content':A(0x19a)+k+A(0x19a),'begin':A(0x1ab),'end':t});}}else{if(c[A(0x19d)][A(0x1b1)]===A(0x1b4)){const u=this[A(0x1d2)]['pathFromApp']({'pathParts':[A(0x1d3),A(0x1c1),'client',A(0x1cf)]});j=this[A(0x1d2)][A(0x1c7)]({'pathParts':[u],'config':c}),k=this[A(0x1d2)][A(0x1a1)]({'srcPath':'route/route.js','context':i}),this[A(0x1d2)]['injectAtEndOfFile']({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x1ce)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a72m=a72d;
|
|
1
|
+
const a72m=a72d;(function(a,b){const j=a72d,c=a();while(!![]){try{const d=parseInt(j(0x1d5))/0x1+-parseInt(j(0x1f4))/0x2+parseInt(j(0x1f8))/0x3*(-parseInt(j(0x1d4))/0x4)+-parseInt(j(0x1f0))/0x5*(-parseInt(j(0x1e4))/0x6)+parseInt(j(0x1ee))/0x7*(-parseInt(j(0x1e6))/0x8)+-parseInt(j(0x1e1))/0x9+-parseInt(j(0x1d7))/0xa*(-parseInt(j(0x1ef))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x223bd));const a72b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a72d;if(c){const e=c[k(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){const l=a72d;return a72a[l(0x1e7)]()[l(0x1ec)](l(0x1f5))['toString']()[l(0x1dc)](a72a)[l(0x1ec)](l(0x1f5));});function a72c(){const p=['Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','maka\x20g:svc\x20logger','constructor','template','apply','tsx','service','2325123ZZmqmI','checkNpmPackage','fsi','423138ArmXSN','installNpmPackage','8JvyAgl','toString','imports','pathFromApp','resourceName','error','search','create','619689VNmlgQ','3389111FlusVV','10goejqc','logger','Installing\x20winston','maka\x20{generate,\x20g}:{service}\x20[service-type]','315128yqQJSD','(((.+)+)+)+$','getProjectConfig','services','40659kXhSgp','svc','engines','4rzGtzs','209065BbnIEI','type','10PRBQVk','startup','service/logger/logger.js'];a72c=function(){return p;};return a72c();}a72a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a72d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a72m(0x1ed)]({'name':a72m(0x1e0),'aliases':[a72m(0x1f9)],'usage':a72m(0x1f3),'shortDesc':a72m(0x1da),'validOpts':[a72m(0x1d6)],'validArgs':[a72m(0x1f1)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a72m(0x1db)]},async function(a,b){const n=a72m;try{const c=this['fsi'][n(0x1f6)]();this[n(0x1e3)]['withValue'](c,async()=>{const o=n,d=this['fsi'][o(0x1e9)]({}),f=paramCase(b[o(0x1ea)]),g={'name':pascalCase(b[o(0x1ea)]),'fileName':f,'camelCase':camelCase(b[o(0x1ea)]),'type':a[0x0],'engine':c[o(0x1fa)]['js'],'noRename':!![]};let h='js';c[o(0x1fa)]['js']===o(0x1df)&&(h='ts');if(a[0x0]===o(0x1f1)){!this['fsi'][o(0x1e2)]('winston')&&await this[o(0x1e3)][o(0x1e5)]('winston\x20setimmediate',{'cwd':d,'msg':o(0x1f2)});const i=this[o(0x1e3)][o(0x1e9)]({'pathParts':[o(0x1e8),o(0x1d8),'lib',o(0x1f7),f+'.'+h]});this[o(0x1e3)][o(0x1dd)]({'srcPath':o(0x1d9),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1eb)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a73d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a73d,c=a();while(!![]){try{var d=-parseInt(f(0x98))/0x1+-parseInt(f(0x96))/0x2+parseInt(f(0x97))/0x3*(parseInt(f(0x9c))/0x4)+parseInt(f(0x8d))/0x5*(parseInt(f(0x94))/0x6)+-parseInt(f(0x8f))/0x7+parseInt(f(0x9b))/0x8*(parseInt(f(0x91))/0x9)+-parseInt(f(0x93))/0xa*(-parseInt(f(0x92))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x535f9));var a73b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a73d;if(c){var e=c[g(0x99)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){var h=a73d;return a73a[h(0x8e)]()[h(0x95)](h(0x90))[h(0x8e)]()[h(0x9a)](a73a)[h(0x95)](h(0x90));});function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0x8d;var f=c[d];return f;},a73d(a,b);}a73a();function a73c(){var i=['198098jkzMrQ','820653CQDLgn','423618missIQ','apply','constructor','983832dDxXLq','8QShJNs','629535ijUqrR','toString','2727249XtFPtW','(((.+)+)+)+$','18iyRWsn','4246tVqKLW','2150VdfAJf','18OJSJbw','search'];a73c=function(){return i;};return a73c();}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a74l=a74d;(function(a,b){const i=a74d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x123;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(0x141))/0x1*(parseInt(i(0x140))/0x2)+-parseInt(i(0x137))/0x3+-parseInt(i(0x130))/0x4*(-parseInt(i(0x135))/0x5)+-parseInt(i(0x129))/0x6*(parseInt(i(0x125))/0x7)+parseInt(i(0x12d))/0x8+parseInt(i(0x136))/0x9+parseInt(i(0x139))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x702d5));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a74d;if(c){const e=c[j(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const k=a74d;return a74a[k(0x132)]()['search'](k(0x13e))['toString']()['constructor'](a74a)[k(0x13f)](k(0x13e));});a74a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a74c(){const o=['search','106rrUKST','7991CHpXNA','service','withValue','getProjectConfig','56kXaCTQ','appName','maka\x20{generate,\x20g}:sslconfig','join','575754SLgNhC','getConfigPath','apply','_keys','5551160tFYXOK','sslconfig','template','1540108CKCMXH','getGlobalConfig','toString','openssl/openssl.conf','create','5eoMSfG','919728oujmrs','1867689ofdIPE','error','2450750FBtNMC','fsi','maka\x20g:sslconfig\x20--env\x20dev','env','Generate\x20a\x20new\x20openssl\x20config\x20file','(((.+)+)+)+$'];a74c=function(){return o;};return a74c();}import a74e from'path';Generator[a74l(0x134)]({'name':a74l(0x12e),'usage':a74l(0x127),'shortDesc':a74l(0x13d),'noResource':!![],'requiredOpts':[a74l(0x13c)],'examples':[a74l(0x13b)],'validOpts':[a74l(0x13c)]},async function(a,b){const m=a74l;try{const c=await this[m(0x13a)][m(0x124)](),d=await this[m(0x13a)][m(0x131)](),f=this[m(0x13a)][m(0x12a)](b[m(0x13c)]),g=a74e[m(0x128)](f,m(0x12c),'openssl.conf');await this[m(0x13a)][m(0x123)](c,async()=>{const n=m,h={'app':d[n(0x126)],'noRename':!![]};await this[n(0x13a)][n(0x12f)]({'srcPath':n(0x133),'destPath':g,'framework':n(0x142),'context':h,'config':c});});}catch(h){Log[m(0x138)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75A=a75d;function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x1da;let f=c[d];return f;},a75d(a,b);}(function(a,b){const x=a75d,c=a();while(!![]){try{const d=-parseInt(x(0x1ff))/0x1+-parseInt(x(0x211))/0x2+-parseInt(x(0x204))/0x3*(parseInt(x(0x21d))/0x4)+parseInt(x(0x216))/0x5*(-parseInt(x(0x210))/0x6)+-parseInt(x(0x200))/0x7*(-parseInt(x(0x1fd))/0x8)+-parseInt(x(0x1e5))/0x9*(-parseInt(x(0x1ef))/0xa)+parseInt(x(0x1f0))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xb27e8));const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a75d;if(c){const e=c[y(0x1f9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const z=a75d;return a75a['toString']()[z(0x215)](z(0x1f8))['toString']()[z(0x20e)](a75a)[z(0x215)](z(0x1f8));});function a75c(){const D=['Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','checkNpmPackage','i18n','Locale\x20already\x20defined:\x20','maka\x20{generate,\x20g}:translation\x20--lang=<language>','true','toString','lib','warn','ssr','2466iVbaSF','locales','server','services','translations','i18n/i18n.js','readFileSync','lang','setProjectConfig','.js','18850KcvNil','18704202WejFdw','import\x20\x27../lib/services/translations/i18n\x27;\x0a','default\x20as\x20','maka\x20g:translation\x20--lang=fr','Locale\x20already\x20exported:\x20','translation','i18n.js','appName','(((.+)+)+)+$','apply','i18n/locales.js','features.withTranslations','withValue','710608XHMMAL','engines','951356GpbEQh','77xrNzQM','index.js','export\x20{\x20default\x20as\x20','getProjectConfig','201Qughuq','grep','\x20}\x20from\x20\x27./','injectAtBeginningOfFile','import\x20\x27../lib/services/translations/i18n\x27;','client','startup','maka\x20g:translation\x20--lang=de','injectAtEndOfFile','i18next','constructor','Generate\x20a\x20new\x20locale\x20translation','1395666diFsxB','6074XtanAK','i18n/index.js','pathFromApp','service','search','20PBRjWS','maka\x20g:translation\x20--lang=en\x20(default)','template','rewriteDestinationPathForEngine','exit','imports','error','34508QqqBrj','index.','fsi','isFile','getGlobalConfig'];a75c=function(){return D;};return a75c();}a75a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a75e from'fs';Generator['create']({'name':a75A(0x1f5),'usage':a75A(0x1df),'aliases':[a75A(0x1dd)],'shortDesc':a75A(0x20f),'noResource':!![],'examples':[a75A(0x217),a75A(0x1f3),a75A(0x20b)],'validOpts':[a75A(0x1ec)]},function(a,b){const B=a75A;try{const c=this[B(0x21f)][B(0x203)](),d=this[B(0x21f)][B(0x1da)](),f=this['fsi']['findAppDirectory']();this['fsi'][B(0x1fc)](c,()=>{const C=B;try{!b[C(0x1ec)]&&(b['lang']='en');!b['root']&&!this[C(0x21f)][C(0x1dc)](C(0x20d))&&(Log[C(0x1e3)](C(0x1db)),this[C(0x21f)]['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0x21f)][C(0x1ed)](C(0x1fb),!![]));const g=this[C(0x21f)][C(0x213)]({'pathParts':[C(0x21b),'startup',C(0x209),'index.js']}),h=this[C(0x21f)][C(0x219)]({'pathParts':[g],'config':c}),i=this[C(0x21f)]['grep'](a75e[C(0x1eb)](h)['toString'](),C(0x208))[0x0]&&!![];if(c['engines'][C(0x1e4)]===C(0x1e0)){!i&&this[C(0x21f)][C(0x207)]({'filePath':h,'content':C(0x1f1)});const t=this[C(0x21f)][C(0x213)]({'pathParts':[C(0x21b),C(0x20a),C(0x1e7),C(0x201)]}),u=this[C(0x21f)][C(0x219)]({'pathParts':[t],'config':c}),v=this[C(0x21f)][C(0x205)](a75e[C(0x1eb)](u)[C(0x1e1)](),C(0x208))[0x0]&&!![];!v&&this[C(0x21f)][C(0x207)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0x21f)]['injectAtBeginningOfFile']({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x1f7)],'config':c},k=this[C(0x21f)]['pathFromApp']({'pathParts':[C(0x21b),C(0x20a),C(0x1e2),C(0x1e8),C(0x1e9),C(0x1f6)]}),l=this[C(0x21f)][C(0x220)](this[C(0x21f)][C(0x219)]({'pathParts':[k],'config':c}));!l&&this['fsi'][C(0x218)]({'srcPath':C(0x1ea),'destPath':k,'framework':C(0x214),'context':j,'config':c});const m=this[C(0x21f)]['pathFromApp']({'pathParts':[C(0x21b),C(0x20a),C(0x1e2),'services',C(0x1e9),C(0x1e6),b[C(0x1ec)]+C(0x1ee)]}),n=this[C(0x21f)][C(0x219)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x220)](n);!o?this['fsi'][C(0x218)]({'srcPath':C(0x1fa),'destPath':m,'framework':C(0x214),'context':j,'config':c}):Log[C(0x1e3)](C(0x1de)+n);const p=this['fsi']['pathFromApp']({'pathParts':[C(0x21b),'startup','lib',C(0x1e8),C(0x1e9),C(0x1e6),C(0x21e)+c[C(0x1fe)]['js']]}),q=this[C(0x21f)][C(0x219)]({'pathParts':[p],'config':c}),r=this[C(0x21f)][C(0x220)](q);!r&&this['fsi'][C(0x218)]({'srcPath':C(0x212),'destPath':p,'framework':C(0x214),'context':j,'config':c});const s=this[C(0x21f)][C(0x205)](a75e[C(0x1eb)](p)[C(0x1e1)](),C(0x1f2)+b[C(0x1ec)])[0x0]&&!![];!s?this[C(0x21f)][C(0x20c)]({'filePath':p,'content':C(0x202)+b['lang']+C(0x206)+b[C(0x1ec)]+'\x27;'}):Log['warn'](C(0x1f4)+p);}catch(w){Log[C(0x21c)](w),process['exit'](0x1);}});}catch(g){Log[B(0x21c)](g),process[B(0x21a)](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 a76m=a76d;(function(a,b){const j=a76d,c=a();while(!![]){try{const d=-parseInt(j(0xda))/0x1*(parseInt(j(0xd1))/0x2)+-parseInt(j(0xde))/0x3*(-parseInt(j(0xd5))/0x4)+-parseInt(j(0xca))/0x5+parseInt(j(0xdc))/0x6+parseInt(j(0xdb))/0x7+-parseInt(j(0xdf))/0x8+parseInt(j(0xd8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x29fd4));function a76c(){const n=['run','1294AYMxyM','dirname','BROWSERSLIST_IGNORE_OLD_DATA','--max-old-space-size=','99832YFkqWe','TOOL_NODE_FLAGS','toString','478953GDpijV','apply','293JScYpa','1502697ePLmid','678678hmdbLX','stringify','27AntjSK','270152OVcypp','constructor','totalmem','slice','url','search','1051475qhCGaT','env','MAKA_COMMAND_PATH','parse','argv','(((.+)+)+)+$'];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(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const l=a76d;return a76a[l(0xd7)]()[l(0xc9)](l(0xcf))[l(0xd7)]()[l(0xc5)](a76a)['search']('(((.+)+)+)+$');});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';function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0xc5;let f=c[d];return f;},a76d(a,b);}const __filename=fileURLToPath(import.meta[a76m(0xc8)]),__dirname=a76g[a76m(0xd2)](__filename);global[a76m(0xcc)]=__dirname;const total_memory=a76f[a76m(0xc6)](),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[a76m(0xcb)][a76m(0xd6)]=a76m(0xd4)+total_mem_in_mb,process['env'][a76m(0xd3)]='1';const argv=a76e(process[a76m(0xce)][a76m(0xc7)](0x2)),args=argv['_'],deepCopyArgv=JSON[a76m(0xcd)](JSON[a76m(0xdd)](argv));delete deepCopyArgv['_'];const opts=a76h['camelizeKeys'](deepCopyArgv);a76i[a76m(0xd0)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a77k=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a77k=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(0x10c))/0x1+-parseInt(h(0x12c))/0x2*(-parseInt(h(0x116))/0x3)+parseInt(h(0x126))/0x4*(parseInt(h(0x10f))/0x5)+parseInt(h(0x101))/0x6+parseInt(h(0x10b))/0x7*(-parseInt(h(0x105))/0x8)+parseInt(h(0x127))/0x9+-parseInt(h(0x104))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x7b403));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a77d;if(c){const e=c[i(0x132)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const j=a77d;return a77a[j(0x10a)]()[j(0x12a)]('(((.+)+)+)+$')['toString']()[j(0x119)](a77a)[j(0x12a)]('(((.+)+)+)+$');});a77a();import a77e from'path';import a77f from'os';import a77g from'fs';const homeDir=a77f[a77k(0x124)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a77c(){const y=['Invalid\x20options:\x20','None','.meteor','3898188UHLHES','Missing\x20required\x20option:\x20','length','5818460TiGyba','16kkCLEk','push','shortDesc','cwd','forEach','toString','3261258bopAvt','589602akbszg','name','match','5SQFNoM','error','description','NIE','root','includes','keys','3OTeVXX','resourceName','Missing\x20required\x20options\x20','constructor','config','validateParams','AppData','examples','No\x20usage\x20provided.','dir','join','Local','validateMakaProject','findProjectDirectory','homedir','platform','1097324ogCaKl','4158531kItHXW','No\x20description\x20provided.','docker','search','concat','85558mIJnxo','fsi','usage','existsSync','aliases','Invalid\x20argument:\x20','apply','win32','parent','_handler','options'];a77c=function(){return y;};return a77c();}import{Log}from'./tools/log/log.class.js';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x101;let f=c[d];return f;},a77d(a,b);}import{UsageError}from'./error.js';export class Tool{[a77k(0x129)];['fsi'];[a77k(0x136)];[a77k(0x10d)];[a77k(0x134)];[a77k(0x135)];constructor(){const l=a77k;this['docker']=new Docker(),this[l(0x12d)]=new FSI();}[a77k(0x10e)](a){const m=a77k,b=[this[m(0x10d)]][m(0x12b)](this['options'][m(0x130)]||[]);return this[m(0x134)]&&b[m(0x106)](this[m(0x134)]),b[m(0x114)](a);}[a77k(0x122)](){const n=a77k,a=this[n(0x12d)][n(0x123)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const o=a77k;let a=a77e[o(0x120)](homeDir,o(0x139));const b=process[o(0x125)]===o(0x133);if(b){a=a77e[o(0x120)](homeDir,o(0x11c),o(0x121),o(0x139));if(!a77g[o(0x12f)](a))return![];}else{if(!a77g[o(0x12f)](a))return![];}return!![];}[a77k(0x11b)](a,b,c){const p=a77k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[p(0x115)](b);d?.['length']>0x0&&a[p(0x109)](f=>{const q=p;if(!d[q(0x114)](f)){Log[q(0x110)](q(0x131)+f);throw new UsageError();}});if(requiredOpts?.[p(0x103)]>0x0){if(e[p(0x103)]===0x0){Log[p(0x110)](p(0x118)+requiredOpts[p(0x120)](',\x20'));throw new UsageError();}requiredOpts['forEach'](f=>{const r=p;if(!e[r(0x114)](f)){Log['error'](r(0x102)+f);throw new UsageError();}});}validOpts=validOpts[p(0x12b)](requiredOpts),validOpts?.['length']>0x0&&(validOpts[p(0x106)]('help'),validOpts[p(0x106)](p(0x117)),validOpts['push'](p(0x11f)),validOpts[p(0x106)](p(0x108)),validOpts[p(0x106)](p(0x113)),validOpts['push'](p(0x11a)),e[p(0x109)](f=>{const s=p;if(!validOpts['includes'](f)){Log[s(0x110)](s(0x137)+f);throw new UsageError();}}));}[a77k(0x111)](){const t=a77k;return this[t(0x136)][t(0x111)]||this[t(0x136)][t(0x107)]||t(0x128);}[a77k(0x107)](){const u=a77k;return this[u(0x136)][u(0x107)]||u(0x112);}[a77k(0x12e)](){const v=a77k;return this[v(0x136)]['usage']||v(0x11e);}[a77k(0x11d)](){const w=a77k;return this[w(0x136)][w(0x11d)]||[];}['aliases'](){const x=a77k;return this[x(0x136)][x(0x130)]||x(0x138);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a78c(){const m=['constructor','(((.+)+)+)+$','4hKUTFR','246010YPSneL','ask','apply','prompt','search','73318zNoYqK','6569981OTRGrG','144uQWiUl','720520GvLNBs','answer','1480000GtjHaj','confirm','toString','75mZmXDA','36372PZBCOI','12aCLlqZ','985866pziwIj'];a78c=function(){return m;};return a78c();}function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x184;let f=c[d];return f;},a78d(a,b);}const a78i=a78d;(function(a,b){const f=a78d,c=a();while(!![]){try{const d=-parseInt(f(0x190))/0x1*(parseInt(f(0x18a))/0x2)+-parseInt(f(0x184))/0x3*(-parseInt(f(0x185))/0x4)+parseInt(f(0x193))/0x5*(parseInt(f(0x186))/0x6)+-parseInt(f(0x187))/0x7+-parseInt(f(0x195))/0x8+parseInt(f(0x192))/0x9*(-parseInt(f(0x18b))/0xa)+parseInt(f(0x191))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x3c3ba));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a78d;if(c){const e=c[g(0x18d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const h=a78d;return a78a[h(0x197)]()[h(0x18f)](h(0x189))[h(0x197)]()[h(0x188)](a78a)['search']('(((.+)+)+)+$');});a78a();import a78e from'inquirer';export class Actions{static async[a78i(0x18c)](a,b){const j=a78i,{answer:c}=await a78e[j(0x18e)]({'type':b?'password':'input','name':j(0x194),'message':a});return c;}static async[a78i(0x196)](a,b=![]){const k=a78i,{answer:c}=await a78e['prompt']({'type':k(0x196),'name':k(0x194),'message':a,'default':b});return c;}static async['options'](a){const l=a78i,b=await a78e[l(0x18e)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a79i=a79d;(function(a,b){const f=a79d,c=a();while(!![]){try{const d=-parseInt(f(0x97))/0x1*(-parseInt(f(0x9c))/0x2)+-parseInt(f(0x91))/0x3+parseInt(f(0x8e))/0x4*(parseInt(f(0x8f))/0x5)+parseInt(f(0x95))/0x6+-parseInt(f(0x98))/0x7+parseInt(f(0x96))/0x8+-parseInt(f(0x90))/0x9*(parseInt(f(0x93))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x39cdb));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a79d;if(c){const e=c[g(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const h=a79d;return a79a[h(0x94)]()[h(0x8c)](h(0x99))[h(0x94)]()[h(0x9d)](a79a)['search'](h(0x99));});a79a();function a79c(){const k=['ask','apply','118MshlIx','constructor','search','Actions\x20Test','1300136dNpVPU','5HXzDMY','36hxWWUt','686700TlDKzJ','Password:\x20','1527910PxaOMl','toString','1866750fpQSiB','3772856Ytseok','4643eQfZKL','2134132DMYIUy','(((.+)+)+)+$'];a79c=function(){return k;};return a79c();}function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x8c;let f=c[d];return f;},a79d(a,b);}import a79e from'chai';const {expect}=a79e;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a79i(0x8d),function(){it('works',async function(a){const j=a79d,b=await Actions[j(0x9a)](j(0x92),!![]);console['log'](b),a();});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a80p=a80d;(function(a,b){const m=a80d,c=a();while(!![]){try{const d=-parseInt(m(0x11e))/0x1*(-parseInt(m(0x14c))/0x2)+-parseInt(m(0x192))/0x3+parseInt(m(0x16c))/0x4+-parseInt(m(0x16f))/0x5+parseInt(m(0x178))/0x6*(-parseInt(m(0x193))/0x7)+parseInt(m(0x144))/0x8*(parseInt(m(0x166))/0x9)+parseInt(m(0x181))/0xa*(parseInt(m(0x17e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xb743c));function a80c(){const T=['create-repository','ecr','getProjectConfig','189200DtZqLn','run-instances','--protocol','privateIp','instanceId','cidr','--user-data','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','31720BzjbfH','createKeyPair','--image-id','utf8','log','apply','keys','writeFileSync','--group-id','aws\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','exit','Please\x20choose\x20a\x20VPC:\x20[0]\x20','\x20NAME:\x20','awsLogin','vpcId','ask','**\x20Available\x20Security\x20Groups\x20**','length','\x20opened!','\x20INSTANCE_ID:\x20','fsi','KeyMaterial','--instance-type','Pem\x20key\x20saved\x20to\x20','Created:\x20','531eLmVKH','terminated','(((.+)+)+)+$','\x22Name=tag:created-by,Values=maka-cli\x22','--cidr','inherit','516000DZhSYH','--instance-ids','bright','2930605CTlMjL','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','tcp','sgPorts','--vpc-id','--subnet-id','createFile','--tag-specifications','738fussjf','file://','terminate-instances','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','get-login-password','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','99oOSfBZ','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','--region','436870zXjxCF','--repository-name','chmod\x20400\x20','ignore','--count','concat','deleteKeyPair','subnet','ecrGetLoginPassword','ssh.json','\x20ENV:\x20','find','join','--filters','\x20PRIV_IP:\x20','ec2terminateInstance','pem','3306678OFoWmR','40726aXSUWZ','ec2describeInstances','ecrCreateRepository','imageId','chooseInstance','tags','push','.pem.txt','VpcId','stringify','--query','success','Key\x20Name:\x20[','\x20SG\x20NAME:\x20','publicIp','delete-security-group','\x20VPCID:\x20','--key-name','env','error','config','\x20SGID:\x20','cwd','confirm','describe-instances','isFile','--instance-id','type','--force','running','parse','78CfLFOF','ID:\x20','ec2describeKeys','userData','--description','getConfigPath','ec2term','--security-group-ids','create-security-group','\x20PUB_IP:\x20','search','\x22KeyPairs[*].{name:KeyName}\x22','forEach','delete-repository','**\x20Available\x20\x20VPCs\x20**','--group-name','toString','ec2','\x20CIDR:\x20','status','ingressRule','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','name','sgId','description','notice','No\x20instances\x20found','key','deleteSecurityGroup','GroupId','--port','_keys','count','Could\x20not\x20create\x20key.','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!'];a80c=function(){return T;};return a80c();}const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a80d;if(c){const e=c[n(0x151)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const o=a80d;return a80a[o(0x12e)]()[o(0x128)](o(0x168))['toString']()['constructor'](a80a)[o(0x128)](o(0x168));});a80a();import a80e from'fs';import a80f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x117;let f=c[d];return f;},a80d(a,b);}import{Log}from'../log/log.class.js';import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{[a80p(0x161)];constructor(){const q=a80p;this[q(0x161)]=new FSI();}[a80p(0x195)](a){const r=a80p;try{const b=['ecr',r(0x141),r(0x182),a[r(0x134)],r(0x180),a['region']],c='aws\x20'+b['join']('\x20'),d=execSync(c)[r(0x12e)]();return d;}catch(f){Log['error'](f);}}[a80p(0x189)]({awsAccountId:a,region:b}){const s=a80p;try{const c=[s(0x142),s(0x17c),'|',Docker[s(0x15a)]({'awsAccountId':a,'region':b})],d=s(0x155)+c[s(0x18d)]('\x20'),f=execSync(d)[s(0x12e)]();return f;}catch(g){Log['error'](g);}}['ecrDeleteRepository']({repoName:a,region:b}){const t=a80p;try{const c=[t(0x142),t(0x12b),'--repository-name',a,t(0x180),b,t(0x11b)],d=t(0x155)+c[t(0x18d)]('\x20'),f=execSync(d)[t(0x12e)]();return f;}catch(g){Log['error'](g);}}['ec2create'](a){const u=a80p;try{const b=[u(0x12f),u(0x145),u(0x14e),a[u(0x196)],u(0x185),a[u(0x13e)],u(0x163),a[u(0x11a)],u(0x1a4),a[u(0x139)],u(0x125),a['sgIds'],u(0x175),a[u(0x188)],u(0x177),a[u(0x198)]];a['userData']&&(b[u(0x199)](u(0x14a)),b[u(0x199)](u(0x179)+a[u(0x121)]));const c=u(0x155)+b['join']('\x20'),d=execSync(c)[u(0x12e)]();return d;}catch(f){Log[u(0x1a6)](f);}}[a80p(0x124)](a){const v=a80p;try{const b=[v(0x12f),v(0x17a),v(0x16d),a[v(0x148)]],c=v(0x155)+b[v(0x18d)]('\x20');execSync(c,{'stdio':v(0x16b)});}catch(d){return Log[v(0x1a6)](d),{};}}async['ec2key']({fileName:a,env:b}){const w=a80p,c=this[w(0x161)][w(0x123)](b),d=a80f[w(0x18d)](c,'_keys',a+w(0x19a));try{const g=[w(0x12f),'create-key-pair',w(0x1a4),a],h=w(0x155)+g[w(0x18d)]('\x20'),i=execSync(h)['toString'](),j=JSON[w(0x11d)](i),k=j[w(0x162)];await this[w(0x161)][w(0x176)]({'filePath':d,'data':k}),execSync(w(0x183)+d,{'stdio':w(0x184)}),Log['success'](w(0x164)+d);}catch(l){return Log['error'](l),![];}const f=this[w(0x161)][w(0x118)](d);return f;}[a80p(0x132)]=(a,b)=>{const x=a80p,c=[x(0x12f),'authorize-security-group-ingress',x(0x154),b,x(0x146),x(0x172),x(0x13c),a,x(0x16a),'0.0.0.0/0'];return c;};['ec2createSG'](a){const y=a80p;try{const b=a[y(0x1a9)]?a['cwd']:process[y(0x1a9)](),c=['ec2',y(0x126),y(0x122),a[y(0x136)],y(0x12d),a[y(0x134)],y(0x174),a[y(0x15b)]],d=y(0x155)+c[y(0x18d)]('\x20'),f=execSync(d,{'cwd':b})[y(0x12e)]();if(!f)throw y(0x171);const g=JSON[y(0x11d)](f);return a[y(0x173)][y(0x12a)](h=>{const z=y,i='aws\x20'+this['ingressRule'](h,g[z(0x13b)])['join']('\x20');execSync(i,{'cwd':b,'stdio':z(0x184)}),Log[z(0x137)]('Port\x20'+h+z(0x15f));}),Log['success'](y(0x165)+g['GroupId']+y(0x159)+a[y(0x134)]),!![];}catch(h){Log[y(0x1a6)](h);}}[a80p(0x120)](a){const A=a80p;try{const b=[A(0x12f),'describe-key-pairs','--query',A(0x129)],c='aws\x20'+b[A(0x18d)]('\x20'),d=execSync(c)[A(0x12e)]();if(!d)throw A(0x171);const f=JSON['parse'](d),g=[];if(f)f[A(0x12a)]((h,i)=>{const B=A;g['push']({'id':i,'name':h[B(0x134)]});}),g['forEach'](h=>{const C=A;h[C(0x134)]===a?.['suggestion']?Log[C(0x19e)]('ID:\x20'+h['id']+C(0x159)+h[C(0x134)]):Log[C(0x137)](C(0x11f)+h['id']+C(0x159)+h[C(0x134)]);});else return Log[A(0x1a6)](A(0x156)),[];return g;}catch(h){Log[A(0x1a6)](h);}}async[a80p(0x187)](a){const D=a80p;try{const b=['ec2','delete-key-pair',D(0x1a4),a],c=D(0x155)+b[D(0x18d)]('\x20');execSync(c,{'stdio':D(0x16b)});}catch(d){Log[D(0x1a6)](d),process['exit'](0x1);}}[a80p(0x194)](a){const E=a80p,b=[];try{const c=a?.['cwd']?a[E(0x1a9)]:process['cwd'](),d=['ec2',E(0x117),E(0x18e),E(0x169),E(0x19d),E(0x17d)],f=E(0x155)+d[E(0x18d)]('\x20'),g=execSync(f,{'cwd':c})[E(0x12e)]();if(!g)throw'[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';let h=JSON[E(0x11d)](g);h[E(0x15e)]>0x0?(h=[][E(0x186)][E(0x151)]([],h),h['forEach'](function(i,j){const F=E;b['push']({'id':j,'instanceId':i[F(0x148)],'privateIp':i[F(0x147)],'publicIp':i['publicIp'],'status':i[F(0x131)],'name':i['name'],'env':i['env'][0x0]});}),b[E(0x12a)](i=>{const G=E,j=G(0x11f)+i['id']+G(0x159)+i[G(0x134)]+G(0x18b)+i[G(0x1a5)]+'\x20STATUS:\x20'+i['status']+G(0x160)+i[G(0x148)]+G(0x127)+i[G(0x1a1)]+G(0x18f)+i['privateIp'];if(i['status']===G(0x167))Log[G(0x1a6)](j);else i['status']===G(0x11c)?Log[G(0x19e)](j):Log[G(0x137)](j);})):Log[E(0x1a6)](E(0x140));}catch(i){Log[E(0x1a6)](i);}return b;}[a80p(0x190)](a){const H=a80p;try{const b=[H(0x12f),'terminate-instances',H(0x119),a[H(0x148)]],c=H(0x155)+b[H(0x18d)]('\x20'),d=execSync(c)['toString']();return d;}catch(f){Log[H(0x1a6)](f);}}['ec2rebootInstance'](a){const I=a80p;try{const b=[I(0x12f),'reboot-instances',I(0x119),a[I(0x148)]],c=I(0x155)+b[I(0x18d)]('\x20');Log[I(0x137)](c);const d=execSync(c)[I(0x12e)]();return Log[I(0x137)](d),d;}catch(f){Log[I(0x1a6)](f);}}async['chooseVPC'](){const J=a80p;let a='';Log[J(0x137)](J(0x12c));const b=execSync('aws\x20ec2\x20describe-vpcs')[J(0x12e)](),c=JSON[J(0x11d)](b),d=[];Object[J(0x152)](c)[J(0x12a)](function(f){const K=J;c[f][K(0x12a)](function(g,h){const L=K;d[L(0x199)]({'id':h,'vpcId':g[L(0x19b)],'cidr':g['CidrBlock']});});}),d['forEach'](function(f){const M=J;console[M(0x150)]('ID:\x20'+f['id']+M(0x1a3)+f[M(0x15b)]+M(0x130)+f[M(0x149)]);});const e=await Actions[J(0x15c)](J(0x158))||0x0;d['forEach'](function(f){const N=J;f['id']==e&&(a=f['vpcId'],Log[N(0x19e)](N(0x17b)+a+'\x0a'));});if(a==='')return Log[J(0x1a6)](J(0x14b)),'';return a;}async[a80p(0x197)](){const O=a80p,a=this['ec2describeInstances']({});if(a[O(0x15e)]===0x0)return Log[O(0x1a6)](O(0x138)),null;const b=await Actions[O(0x15c)](O(0x133));!b&&Log[O(0x1a6)]('Invalid\x20choice');const c=a[O(0x18c)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a80p(0x14d)]({env:a}){const P=a80p,b=this[P(0x161)][P(0x143)](),{appName:c}=b,d=c+'-'+a,f=await Actions[P(0x15c)](P(0x19f)+d+']\x20')||d;try{const g=await this['ec2key']({'fileName':f,'env':a});if(!g)throw P(0x13f);const h=await Actions[P(0x1aa)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?');if(h)try{const i=a80e['readFileSync'](a80f[P(0x18d)]('config',a,P(0x18a)),P(0x14f)),j=JSON['parse'](i);j[P(0x191)]=a80f['join'](P(0x13d),f+P(0x19a)),a80e[P(0x153)](a80f['join'](P(0x1a7),a,P(0x18a)),JSON[P(0x19c)](j,null,0x2));}catch(k){Log[P(0x1a6)](k),Log[P(0x1a6)](P(0x17f));}}catch(l){Log[P(0x1a6)](l),process[P(0x157)](0x1);}return f;}async['listSecurityGroups'](a){const Q=a80p;Log[Q(0x137)](Q(0x15d));const b=execSync(Q(0x170))[Q(0x12e)](),c=JSON[Q(0x11d)](b),d=[];return c[Q(0x12a)](function(e,f){d['push']({'id':f,'name':e['Name'],'sgId':e['ID']});}),d[Q(0x12a)](function(e){const R=Q;e[R(0x134)]===a?Log[R(0x137)]('ID:\x20'+e['id']+R(0x1a0)+e[R(0x134)]+R(0x1a8)+e[R(0x135)]):Log[R(0x16e)](R(0x11f)+e['id']+R(0x1a0)+e[R(0x134)]+R(0x1a8)+e[R(0x135)]);}),d;}async[a80p(0x13a)](a){const S=a80p;try{const b=[S(0x12f),S(0x1a2),S(0x154),a],c=S(0x155)+b[S(0x18d)]('\x20');execSync(c,{'stdio':S(0x16b)});}catch(d){Log[S(0x1a6)](d),process['exit'](0x1);}}}
|
|
1
|
+
const a80s=a80d;(function(a,b){const p=a80d,c=a();while(!![]){try{const d=parseInt(p(0x1b5))/0x1*(parseInt(p(0x17f))/0x2)+parseInt(p(0x18e))/0x3+parseInt(p(0x184))/0x4+-parseInt(p(0x182))/0x5+-parseInt(p(0x1e9))/0x6*(-parseInt(p(0x1c9))/0x7)+-parseInt(p(0x197))/0x8*(parseInt(p(0x192))/0x9)+-parseInt(p(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xe244d));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a80d;if(c){const e=c[q(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const r=a80d;return a80a[r(0x1ef)]()[r(0x1b8)](r(0x1b0))[r(0x1ef)]()[r(0x1e6)](a80a)[r(0x1b8)](r(0x1b0));});a80a();import a80e from'fs';import a80f from'path';function a80c(){const S=['success','0.0.0.0/0','fsi','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','instanceId','CidrBlock','Key\x20Name:\x20[','sgPorts','terminated','ec2describeKeys','Pem\x20key\x20saved\x20to\x20','isFile','key','createKeyPair','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','63tRAGlN','Name','\x20ENV:\x20','GroupName','sgId','VpcId','No\x20instances\x20found','Description:','\x20CIDR:\x20','Web\x20App','ssh.json','ID:\x20','createFile','Reservations','Port\x20','maxCount','suggestion','\x20PUB_IP:\x20','cidr','httpStatusCode','ec2createSG','Instances','\x20PRIV_IP:\x20','apply','sgIds','Instance\x20rebooted!','9001630DLInmp','environment','Value','constructor','error','Please\x20choose\x20a\x20VPC:\x20[0]\x20','1003194PQksDT','GroupId','ask','chooseVPC','Error\x20saving\x20pem\x20file,\x20aborting','length','toString','ec2terminateInstance','/dev/sdh','name','imageId','2PkSKre','exit','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','1029300VbdmgD','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','1342856vgXLtS','ec2describeInstances','minCount','Invalid\x20choice','\x20STATUS:\x20','getProjectConfig','.pem.txt','ingressRule','_keys','status','218787KIzSXs','env','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','file://','9FTONEx','\x20VPCID:\x20','\x20INSTANCE_ID:\x20','userData','\x20NAME:\x20','15176ahlQUQ','config','send','split','forEach','getSecurityGroups','ecrCreateRepository','Created:\x20','tag:created-by','notice','confirm','ec2create','push','tags','privateIp','**\x20Available\x20\x20VPCs\x20**','KeyName','createKeyPairEC2Key','pem','KeyMaterial','find','$metadata','join','maka-cli','\x20opened!','(((.+)+)+)+$','chooseInstance','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','description','readFileSync','121283eMoCeg','utf8','vpcId','search','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20'];a80c=function(){return S;};return a80c();}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';const client=new EC2Client({}),ecrClient=new ECRClient({});function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x17c;let f=c[d];return f;},a80d(a,b);}export class AWS{[a80s(0x1bc)];constructor(){this['fsi']=new FSI();}async[a80s(0x19d)](a){const t=a80s;try{const b={'repositoryName':a[t(0x17d)]},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x199)](c);return d;}catch(f){Log[t(0x1e7)](f);}}async[a80s(0x1a2)](a){const u=a80s;try{const b={'BlockDeviceMappings':[{'DeviceName':u(0x17c),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[u(0x17e)],'InstanceType':a['type'],'KeyName':a[u(0x1c6)],'MaxCount':a[u(0x1d8)],'MinCount':a[u(0x186)],'SecurityGroupIds':a[u(0x1e1)][u(0x19a)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':'instance','Tags':a[u(0x1a4)]}]};a[u(0x195)]&&(b['UserData']=u(0x191)+a['userData']);const c=new RunInstancesCommand(b),d=await client[u(0x199)](c);return d;}catch(f){Log['error'](f);}}async[a80s(0x1f0)](a){const v=a80s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[v(0x199)](c);return d;}catch(f){return Log[v(0x1e7)](f),{};}}async[a80s(0x1a8)]({keyName:a,env:b}){const w=a80s,c=this['fsi']['getConfigPath'](b),d=a80f['join'](c,w(0x18c),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[w(0x199)](g),i=h[w(0x1aa)];if(i){await this[w(0x1bc)][w(0x1d5)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this[w(0x1bc)][w(0x1c5)](d);if(j)return Log[w(0x1ba)](w(0x1c4)+d),{'keyName':a,'filePath':d};else throw new Error(w(0x1ed));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[w(0x1e7)](k),process['exit'](0x1);}}async[a80s(0x18b)]({port:a,groupId:b}){const x=a80s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':x(0x1bb),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[x(0x1a0)](x(0x1d7)+a+x(0x1af)),await client[x(0x199)](d);}async[a80s(0x1dd)](a){const y=a80s;try{a[y(0x1b3)]===''&&(a['description']=await Actions[y(0x1eb)](y(0x1d0))||y(0x1d2));const b={'Description':a[y(0x1b3)],'GroupName':a[y(0x17d)],'VpcId':a[y(0x1b7)]},c=new CreateSecurityGroupCommand(b),d=await client[y(0x199)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[y(0x1c1)][y(0x19b)](g=>{const z=y;this[z(0x18b)]({'port':parseInt(g),'groupId':f});}),Log[y(0x1ba)](y(0x19e)+f+y(0x196)+a[y(0x17d)]);}catch(g){return Log[y(0x1e7)](g),![];}return!![];}async[a80s(0x1c3)](a){const A=a80s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[A(0x199)](d);if(!f)throw A(0x181);const {KeyPairs:g}=f;g?(g?.[A(0x19b)]((h,i)=>{const B=A;h[B(0x1a7)]&&b[B(0x1a3)]({'id':i,'name':h[B(0x1a7)]});}),b[A(0x1ee)]>0x0&&b[A(0x19b)](h=>{const C=A;h[C(0x17d)]===a?.[C(0x1d9)]?Log[C(0x1ba)]('ID:\x20'+h['id']+C(0x196)+h['name']):Log[C(0x1a0)](C(0x1d4)+h['id']+C(0x196)+h['name']);})):Log[A(0x1e7)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log['error'](h);}return b;}async['deleteKeyPair'](a){const D=a80s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[D(0x199)](c);}catch(d){Log['error'](d),process[D(0x180)](0x1);}}async[a80s(0x185)](){const E=a80s,a=[];try{const b={'Filters':[{'Name':E(0x19f),'Values':[E(0x1ae)]}]},c=new DescribeInstancesCommand(b),d=await client[E(0x199)](c);d[E(0x1d6)]?.[E(0x19b)]((f,g)=>{const F=E;if(f?.[F(0x1de)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[F(0x1de)][0x0],n=m?.[F(0x1ab)](({Key:o})=>o===F(0x1e4));a[F(0x1a3)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[F(0x1ca)],'name':l,'env':n?.[F(0x1e5)]});}}),a[E(0x1ee)]>0x0?a[E(0x19b)](f=>{const G=E,g=G(0x1d4)+f['id']+G(0x196)+f[G(0x17d)]+G(0x1cb)+f[G(0x18f)]+G(0x188)+f[G(0x18d)]+G(0x194)+f[G(0x1be)]+G(0x1da)+f['publicIp']+G(0x1df)+f[G(0x1a5)];if(f['status']===G(0x1c2))Log[G(0x1e7)](g);else f[G(0x18d)]==='running'?Log['success'](g):Log[G(0x1a0)](g);}):Log[E(0x1e7)](E(0x190));}catch(f){Log[E(0x1e7)](f);}return a;}async['ec2rebootInstance'](a){const H=a80s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[H(0x199)](c);return d[H(0x1ac)][H(0x1dc)]===0xc8&&Log[H(0x1ba)](H(0x1e2)),d;}catch(f){Log[H(0x1e7)](f);}}async[a80s(0x1ec)](){const I=a80s;let a='';Log[I(0x1a0)](I(0x1a6));const b=new DescribeVpcsCommand({}),c=await client[I(0x199)](b),{Vpcs:d}=c,e=[];d&&d[I(0x19b)]((g,h)=>{const J=I;g[J(0x1ce)]&&g[J(0x1bf)]&&e[J(0x1a3)]({'id':h,'vpcId':g[J(0x1ce)],'cidr':g[J(0x1bf)]});});e[I(0x19b)](function(g){const K=I;console['log'](K(0x1d4)+g['id']+K(0x193)+g[K(0x1b7)]+K(0x1d1)+g[K(0x1db)]);});const f=await Actions[I(0x1eb)](I(0x1e8))||0x0;e[I(0x19b)](function(g){const L=I;g['id']==f&&(a=g['vpcId'],Log[L(0x1ba)](L(0x1b2)+a+'\x0a'));});if(a==='')return Log[I(0x1e7)](I(0x183)),'';return a;}async[a80s(0x1b1)](){const M=a80s,a=await this['ec2describeInstances']();if(a[M(0x1ee)]===0x0)return Log[M(0x1e7)](M(0x1cf)),null;const b=await Actions[M(0x1eb)](M(0x1b9));!b&&(Log[M(0x1e7)](M(0x187)),process['exit'](0x0));const c=a[M(0x1ab)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a80s(0x1c7)]({env:a}){const N=a80s,b=this[N(0x1bc)][N(0x189)](),{appName:c}=b,d=c+'-'+a,f=await Actions[N(0x1eb)](N(0x1c0)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[N(0x1a1)](N(0x1bd),!![]);if(h)try{const i=a80e[N(0x1b4)](a80f[N(0x1ad)](N(0x198),a,'ssh.json'),N(0x1b6)),j=JSON['parse'](i);j[N(0x1a9)]=a80f[N(0x1ad)](N(0x18c),f+N(0x18a)),a80e['writeFileSync'](a80f['join']('config',a,N(0x1d3)),JSON['stringify'](j,null,0x2));}catch(k){Log[N(0x1e7)](k),Log[N(0x1e7)](N(0x1c8));}}catch(l){Log[N(0x1e7)](l),process[N(0x180)](0x1);}return{'keyName':f,'filePath':g};}async[a80s(0x19c)](a){const O=a80s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[O(0x199)](d),{SecurityGroups:f}=e;f&&f[O(0x19b)](function(i,j){const P=O;i[P(0x1cc)]&&i[P(0x1ea)]&&b['push']({'id':j,'name':i[P(0x1cc)],'sgId':i['GroupId']});});let g='',h=0x0;return b[O(0x19b)](function(i){const Q=O;i[Q(0x17d)]===a&&(g=i[Q(0x1cd)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const R=a80s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[R(0x1e7)](d),process[R(0x180)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a81d,c=a();while(!![]){try{var d=parseInt(f(0x137))/0x1*(-parseInt(f(0x130))/0x2)+-parseInt(f(0x132))/0x3+parseInt(f(0x12f))/0x4*(-parseInt(f(0x136))/0x5)+-parseInt(f(0x131))/0x6+parseInt(f(0x134))/0x7*(parseInt(f(0x13c))/0x8)+-parseInt(f(0x12d))/0x9*(parseInt(f(0x13a))/0xa)+parseInt(f(0x135))/0xb*(parseInt(f(0x13b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x9b61a));function a81c(){var h=['1121091FVqmMj','toString','2673671huOTdL','293579fAdjRP','145495mwgDvy','175139BspYvq','constructor','search','112550DxZuMo','1332AOCpWi','24nlrzDG','855foFnlf','(((.+)+)+)+$','60TMyxbs','10PISsaI','4300764jLKijb'];a81c=function(){return h;};return a81c();}function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x12d;var f=c[d];return f;},a81d(a,b);}var a81b=(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;};}()),a81a=a81b(this,function(){var g=a81d;return a81a[g(0x133)]()[g(0x139)](g(0x12e))[g(0x133)]()[g(0x138)](a81a)['search'](g(0x12e));});a81a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x19c;let f=c[d];return f;},a83d(a,b);}const a83o=a83d;(function(a,b){const j=a83d,c=a();while(!![]){try{const d=parseInt(j(0x19e))/0x1*(parseInt(j(0x1b3))/0x2)+-parseInt(j(0x1ad))/0x3+-parseInt(j(0x1ae))/0x4+parseInt(j(0x1a0))/0x5+-parseInt(j(0x1a3))/0x6*(parseInt(j(0x1a2))/0x7)+parseInt(j(0x1af))/0x8*(parseInt(j(0x1b0))/0x9)+-parseInt(j(0x1a7))/0xa*(-parseInt(j(0x1b1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x9f8f2));function a83c(){const q=['--username','constructor','2377167eJLLps','4079304erWHUo','88aPhXMF','836946GOIrIg','571901gKuVQo','login','961414eXnARw','search','docker\x20','pushImage','1OwpYIQ','apply','2769455zysBrM','join','742EAPxmx','9264jeVopm','.dkr.ecr.','AWS','error','110CxyPVZ','toString','(((.+)+)+)+$','inherit'];a83c=function(){return q;};return a83c();}const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a83d;if(c){const e=c[k(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const l=a83d;return a83a[l(0x1a8)]()[l(0x1b4)](l(0x1a9))[l(0x1a8)]()[l(0x1ac)](a83a)[l(0x1b4)](l(0x1a9));});a83a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a83d;try{const f=['tag',a,b+'.dkr.ecr.'+c+'.amazonaws.com/'+d],g=m(0x19c)+f[m(0x1a1)]('\x20'),h=execSync(g,{'stdio':m(0x1aa)})['toString']();return h;}catch(i){return Log[m(0x1a6)](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const n=a83d;try{const c=[n(0x1b2),n(0x1ab),n(0x1a5),'--password-stdin',a+n(0x1a4)+b+'.amazonaws.com'],d=n(0x19c)+c['join']('\x20'),f=execSync(d,{'stdio':n(0x1aa)})['toString']();return f;}catch(g){return Log[n(0x1a6)](g),'';}}static[a83o(0x19d)]({awsAccountId:a,region:b,repoName:c}){const p=a83o;try{const d=['push',a+'.dkr.ecr.'+b+'.amazonaws.com/'+c],f=p(0x19c)+d[p(0x1a1)]('\x20'),g=execSync(f,{'stdio':'inherit'})[p(0x1a8)]();return g;}catch(h){return Log[p(0x1a6)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0x1aa))/0x1*(parseInt(f(0x1a7))/0x2)+-parseInt(f(0x1b3))/0x3+-parseInt(f(0x1ae))/0x4+parseInt(f(0x1b1))/0x5*(-parseInt(f(0x1b2))/0x6)+parseInt(f(0x1a6))/0x7*(parseInt(f(0x1a9))/0x8)+parseInt(f(0x1ad))/0x9*(-parseInt(f(0x1a5))/0xa)+parseInt(f(0x1ac))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x959c3));function a84c(){var h=['6xIXlqc','1888425fwBOHT','280NzFuJR','1533mSaMRn','50244IgOgSi','constructor','43768GCDVVY','31ErmORU','toString','4552581ZlQgSb','144270BeuzPu','1643212EmctLp','search','(((.+)+)+)+$','1444405rgFrOm'];a84c=function(){return h;};return a84c();}function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x1a5;var f=c[d];return f;},a84d(a,b);}var a84b=(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;};}()),a84a=a84b(this,function(){var g=a84d;return a84a[g(0x1ab)]()[g(0x1af)](g(0x1b0))['toString']()[g(0x1a8)](a84a)[g(0x1af)](g(0x1b0));});a84a();export{};
|