@maka/maka-cli 4.4.0 → 4.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bundle/obf/package.json +29 -28
- package/bundle/obf/src/README.md +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/actions/actions.test.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +28 -28
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70j=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a70j=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=parseInt(h(0xb1))/0x1*(-parseInt(h(0xb4))/0x2)+-parseInt(h(0xba))/0x3+-parseInt(h(0xc7))/0x4*(parseInt(h(0xb2))/0x5)+parseInt(h(0xc0))/0x6+parseInt(h(0xb3))/0x7*(-parseInt(h(0xc8))/0x8)+parseInt(h(0xbd))/0x9+parseInt(h(0xc6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xb3d66));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(0xbf)]()[i(0xb8)](i(0xbb))[i(0xbf)]()['constructor'](a70a)[i(0xb8)](i(0xbb));});a70a();import{paramCase}from'change-case';function a70c(){const m=['(((.+)+)+)+$','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','8711172nTnBCN','create','toString','5797176TSRksF','withValue','tsx','server/publish.','getProjectConfig','templateContent','4867390kNKcDQ','24nQMrKL','113912oLKexi','maka\x20g:publish\x20todos','publish/publish.','injectAtEndOfFile','fsi','6254OKdnHR','134430eVEwzx','35cwlQuP','274zgpPJB','resourceName','engines','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','search','publish','1784760nKMToA'];a70c=function(){return m;};return a70c();}function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0xaf;let f=c[d];return f;},a70d(a,b);}import{Generator}from'../generator.js';Generator[a70j(0xbe)]({'name':a70j(0xb9),'aliases':['p'],'usage':a70j(0xb7),'shortDesc':a70j(0xbc),'validOpts':[],'examples':[a70j(0xc9)]},async function(a,b){const k=a70j,c=this[k(0xb0)][k(0xc4)]();this[k(0xb0)][k(0xc1)](c,async()=>{const l=k,d={'name':b[l(0xb5)],'collection':paramCase(b[l(0xb5)]),'noRename':!![]};let e='js';c[l(0xb6)]['js']===l(0xc2)&&(e='ts');const f=this[l(0xb0)]['rewriteDestinationPathForEngine']({'pathParts':[l(0xc3)+c['engines']['js']]}),g=this['fsi'][l(0xc5)]({'srcPath':l(0xca)+e,'context':d,'config':c});this['fsi'][l(0xaf)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=-parseInt(v(0xb5))/0x1*(-parseInt(v(0x77))/0x2)+-parseInt(v(0x71))/0x3*(-parseInt(v(0xaf))/0x4)+parseInt(v(0xac))/0x5*(-parseInt(v(0x89))/0x6)+-parseInt(v(0xa6))/0x7+parseInt(v(0x8f))/0x8*(-parseInt(v(0xab))/0x9)+-parseInt(v(0xa1))/0xa+parseInt(v(0xa0))/0xb*(-parseInt(v(0x96))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x2ec1d));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0xb4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a[x(0x73)]()[x(0x9c)]('(((.+)+)+)+$')[x(0x73)]()[x(0x7e)](a71a)['search'](x(0x7a));});function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x70;let f=c[d];return f;},a71d(a,b);}a71a();import a71e from'path';function a71c(){const G=['react','286293WTYYAt','imports','routes.js','root','rewriteDestinationPathForEngine','1099953XkaDgC','2315ItRTwi','pathFromApp','vanilla','239032PcQwXZ','templateName','client','newForm','</Router>','apply','119618XVFEEF','invoke','readFileLines','15tCGQqr','warn','toString','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','page','templateContent','4mnhxWV','length','\x0a\x09\x09','(((.+)+)+)+$','MasterLayout','join','/imports/ui/pages','constructor','<Router','maka\x20g:route\x20lists/listIndex\x20lists','const\x20publicRoutes\x20=\x20(<>','toLowerCase','config','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20todosEdit\x20todos/:id/edit','engines','lib','withTranslations','696tKIUPC','injectAfterLineNumber','findGenerator','injectAtEndOfFile','filter','true','8WwcAfF','route/route.js','create','maka\x20g:route\x20todosIndex\x20todos','PrivateLayout','private','fsi','82308AHIFGe','layout','map','Scaffolding\x20for\x20a\x20Route.','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','getProjectConfig','search','startup','injectIntoFile','withValue','22ryfeKf','1159670HNRDcs','\x22*\x22','ssr','includes'];a71c=function(){return G;};return a71c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a71y(0x91)]({'name':'route','aliases':aliases,'validOpts':['private',a71y(0x97),'only','cwd',a71y(0x83),'root','withHook'],'usage':a71y(0x74),'shortDesc':a71y(0x99),'examples':[a71y(0x92),a71y(0x85),a71y(0x9a),a71y(0x80)]},function(a,b){const z=a71y;try{const c=this[z(0x95)][z(0x9b)]();this['fsi'][z(0x9f)](c,async()=>{const A=z,d=b[A(0x94)]??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[A(0x8d)](function(l){return l!=='/';})['join']('/')[A(0x82)]());f=camelCase(f);b[A(0x97)]&&(b[A(0x97)]=camelCase(b[A(0x97)]));const h=a71e[A(0x7c)](A(0x7d),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0x97)]||A(0x7b),'templatePath':h,'templateName':pascalCase(f),'client':c[A(0x86)]['client'],'newForm':![],'withTranslations':c['features'][A(0x88)]};d&&(i[A(0x97)]=A(0x93));if(!b[A(0xa9)]){const l=a71f[A(0x8b)](A(0x75));l&&await l[A(0xb6)](a,b);}let j,k;if(c['engines']['client']===A(0xa5)){if(c['engines'][A(0xa3)]===A(0x8e)){const p=this['fsi']['pathFromApp']({'pathParts':[A(0xa7),A(0x9d),A(0x87),A(0xa8)]});j=this['fsi'][A(0xaa)]({'pathParts':[p],'config':c});}else{const q=this[A(0x95)]['pathFromApp']({'pathParts':['imports',A(0x9d),A(0xb1),A(0xa8)]});j=this['fsi'][A(0xaa)]({'pathParts':[q],'config':c});}const m=this[A(0x95)]['readFileLines'](j)['map']((r,s)=>{return r['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?s+0x1:null;})['filter'](r=>r!==null);let n=this[A(0x95)][A(0x70)](j)[A(0x98)]((r,s)=>{const B=A;return r[B(0xa4)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x8d)](r=>r!==null),o=this['fsi'][A(0x70)](j)[A(0x98)]((r,s)=>{const C=A;return r['includes'](C(0x84))?s+0x1:null;})[A(0x8d)](r=>r!==null);n[A(0x78)]>0x0&&o[A(0x78)]>0x0&&(i[A(0xb2)]=!![]);k=this[A(0x95)][A(0x76)]({'srcPath':A(0x90),'framework':'react','context':i,'config':c});if(n['length']>0x0||o[A(0x78)]>0x0){this['fsi'][A(0x8a)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x78)]>0x0)o=this[A(0x95)][A(0x70)](j)['map']((r,s)=>{const D=A;return r[D(0xa4)](D(0x84))?s+0x1:null;})[A(0x8d)](r=>r!==null),this['fsi'][A(0x8a)]({'filePath':j,'content':'\x09{'+i[A(0xb0)]+'}','lineNumber':o[0x0]});else n['length']>0x0?(n=this['fsi'][A(0x70)](j)['map']((r,s)=>{const E=A;return r['includes'](E(0x81))?s+0x1:null;})[A(0x8d)](r=>r!==null),this[A(0x95)]['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i['templateName']+'}','lineNumber':n[0x0]})):Log[A(0x72)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+j);}else{const r=this['fsi']['readFileLines'](j)[A(0x98)](u=>{const F=A;return u[F(0xa4)](F(0xa2));}),s=r['indexOf'](!![])>-0x1,t=s?'<Route':A(0xb3);this[A(0x95)][A(0x9e)]({'filePath':j,'content':A(0x79)+k+A(0x79),'begin':A(0x7f),'end':t});}}else{if(c[A(0x86)][A(0xb1)]===A(0xae)){const u=this[A(0x95)][A(0xad)]({'pathParts':[A(0xa7),A(0x9d),'client','routes.js']});j=this[A(0x95)]['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this['fsi'][A(0x76)]({'srcPath':A(0x90),'context':i}),this[A(0x95)][A(0x8c)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72l=a72d;(function(a,b){const j=a72d,c=a();while(!![]){try{const d=parseInt(j(0x145))/0x1+-parseInt(j(0x138))/0x2+parseInt(j(0x12e))/0x3*(parseInt(j(0x12b))/0x4)+-parseInt(j(0x139))/0x5+-parseInt(j(0x147))/0x6*(-parseInt(j(0x142))/0x7)+-parseInt(j(0x141))/0x8+parseInt(j(0x133))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xeafba));const a72b=(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;};}()),a72a=a72b(this,function(){const k=a72d;return a72a[k(0x146)]()[k(0x14a)](k(0x144))[k(0x146)]()['constructor'](a72a)['search'](k(0x144));});function a72c(){const o=['8421070wBvLQy','lib','withValue','type','resourceName','winston','logger','maka\x20{generate,\x20g}:{service}\x20[service-type]','8252792LKBlti','6155709tgXxdm','tsx','(((.+)+)+)+$','1372908AsIOzo','toString','6pIQZHI','template','Installing\x20winston','search','winston\x20setimmediate','10588hePuPs','services','imports','942mmsMss','checkNpmPackage','getProjectConfig','service/logger/logger.js','service','14652297AokJKY','create','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','pathFromApp','fsi','2066366sHBgQU'];a72c=function(){return o;};return a72c();}a72a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x12a;let f=c[d];return f;},a72d(a,b);}Generator[a72l(0x134)]({'name':a72l(0x132),'aliases':['svc'],'usage':a72l(0x140),'shortDesc':a72l(0x135),'validOpts':[a72l(0x13c)],'validArgs':[a72l(0x13f)],'maxArgLength':0x1,'minArgLength':0x1,'examples':['maka\x20g:svc\x20logger']},async function(a,b){const m=a72l;try{const c=this[m(0x137)][m(0x130)]();this['fsi'][m(0x13b)](c,async()=>{const n=m,d=this[n(0x137)][n(0x136)]({}),f=paramCase(b[n(0x13d)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[n(0x13d)]),'type':a[0x0],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0x143)&&(h='ts');if(a[0x0]===n(0x13f)){!this['fsi'][n(0x12f)](n(0x13e))&&await this[n(0x137)]['installNpmPackage'](n(0x12a),{'cwd':d,'msg':n(0x149)});const i=this[n(0x137)][n(0x136)]({'pathParts':[n(0x12d),'startup',n(0x13a),n(0x12c),f+'.'+h]});this[n(0x137)][n(0x148)]({'srcPath':n(0x131),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a73d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a73c(){var h=['244716wvkZhx','toString','645480fifaCK','constructor','21PFUSLy','1128485KmouSO','48YfbHuZ','521465QhTEzy','11hjnsMl','search','836633Ciegdr','179570NxpalF','945036umpGNR','6nkbfBo'];a73c=function(){return h;};return a73c();}function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0x16f;var f=c[d];return f;},a73d(a,b);}(function(a,b){var f=a73d,c=a();while(!![]){try{var d=parseInt(f(0x171))/0x1+-parseInt(f(0x17c))/0x2+-parseInt(f(0x170))/0x3*(-parseInt(f(0x17a))/0x4)+-parseInt(f(0x173))/0x5*(-parseInt(f(0x179))/0x6)+-parseInt(f(0x176))/0x7+parseInt(f(0x172))/0x8*(-parseInt(f(0x178))/0x9)+-parseInt(f(0x177))/0xa*(parseInt(f(0x174))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x8b5a7));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(0x17b)]()[g(0x175)]('(((.+)+)+)+$')['toString']()[g(0x16f)](a73a)[g(0x175)]('(((.+)+)+)+$');});a73a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a74l=a74d;
|
|
1
|
+
const a74l=a74d;(function(a,b){const i=a74d,c=a();while(!![]){try{const d=-parseInt(i(0x67))/0x1+parseInt(i(0x6d))/0x2*(parseInt(i(0x75))/0x3)+parseInt(i(0x7b))/0x4+parseInt(i(0x71))/0x5+-parseInt(i(0x6c))/0x6+parseInt(i(0x78))/0x7+-parseInt(i(0x73))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x20fbd));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a74d;if(c){const e=c[j(0x69)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const k=a74d;return a74a[k(0x7d)]()['search'](k(0x76))[k(0x7d)]()[k(0x6a)](a74a)[k(0x6e)](k(0x76));});a74a();function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x66;let f=c[d];return f;},a74d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a74e from'path';Generator['create']({'name':'sslconfig','usage':a74l(0x70),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':[a74l(0x66)],'examples':[a74l(0x68)],'validOpts':[a74l(0x66)]},async function(a,b){const m=a74l;try{const c=await this['fsi']['getProjectConfig'](),d=await this['fsi']['getGlobalConfig'](),f=this[m(0x77)][m(0x72)](b[m(0x66)]),g=a74e['join'](f,'_keys',m(0x7c));await this['fsi'][m(0x6b)](c,async()=>{const n=m,h={'app':d[n(0x79)],'noRename':!![]};await this['fsi'][n(0x74)]({'srcPath':n(0x7e),'destPath':g,'framework':n(0x7a),'context':h,'config':c});});}catch(h){Log[m(0x6f)](h);}});function a74c(){const o=['fsi','52696QKyZkA','appName','service','348892LEAOpf','openssl.conf','toString','openssl/openssl.conf','env','37728pmhHYW','maka\x20g:sslconfig\x20--env\x20dev','apply','constructor','withValue','708282bmqcsR','2mAYwQr','search','error','maka\x20{generate,\x20g}:sslconfig','886945unjzKX','getConfigPath','263960VHimri','template','155193HaCtGx','(((.+)+)+)+$'];a74c=function(){return o;};return a74c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-
|
|
1
|
+
function a75c(){const D=['translations','server','constructor','863903QpbVbt','locales','i18next\x20i18next-browser-languagedetector\x20react-i18next','grep','i18n/index.js','template','i18n','ssr','error','1033280ZMhVNL','injectAtEndOfFile','isFile','startup','Generate\x20a\x20new\x20locale\x20translation','exit','1798480FTXlfs','pathFromApp','create','default\x20as\x20','index.js','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','maka\x20{generate,\x20g}:translation\x20--lang=<language>','export\x20{\x20default\x20as\x20','withValue','i18n/locales.js','maka\x20g:translation\x20--lang=en\x20(default)','readFileSync','findAppDirectory','services','warn','998421RgYDdK','client','getProjectConfig','search','4bUTDKo','3649122LcuRXR','toString','setProjectConfig','Locale\x20already\x20exported:\x20','i18n/i18n.js','engines','apply','2orELxc','maka\x20g:translation\x20--lang=fr','root','fsi','maka\x20g:translation\x20--lang=de','Locale\x20already\x20defined:\x20','\x20}\x20from\x20\x27./','import\x20\x27../lib/services/translations/i18n\x27;\x0a','(((.+)+)+)+$','service','i18n.js','.js','injectAtBeginningOfFile','50PMWLju','import\x20\x27../lib/services/translations/i18n\x27;','imports','3316229LAVWbl','rewriteDestinationPathForEngine','getGlobalConfig','i18next','lib','true','813354gcIzfX','translation','lang','installNpmPackage'];a75c=function(){return D;};return a75c();}function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x1e0;let f=c[d];return f;},a75d(a,b);}const a75A=a75d;(function(a,b){const x=a75d,c=a();while(!![]){try{const d=-parseInt(x(0x1ef))/0x1*(parseInt(x(0x219))/0x2)+-parseInt(x(0x20d))/0x3*(parseInt(x(0x211))/0x4)+parseInt(x(0x1f8))/0x5+parseInt(x(0x1e8))/0x6+-parseInt(x(0x1e2))/0x7+-parseInt(x(0x1fe))/0x8+-parseInt(x(0x212))/0x9*(-parseInt(x(0x226))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x73c7e));const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a75d;if(c){const e=c[y(0x218)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const z=a75d;return a75a['toString']()[z(0x210)](z(0x221))[z(0x213)]()[z(0x1ee)](a75a)[z(0x210)]('(((.+)+)+)+$');});a75a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a75e from'fs';Generator[a75A(0x200)]({'name':a75A(0x1e9),'usage':a75A(0x204),'aliases':[a75A(0x1f5)],'shortDesc':a75A(0x1fc),'noResource':!![],'examples':[a75A(0x208),a75A(0x21a),a75A(0x21d)],'validOpts':[a75A(0x1ea)]},function(a,b){const B=a75A;try{const c=this[B(0x21c)][B(0x20f)](),d=this[B(0x21c)][B(0x1e4)](),f=this[B(0x21c)][B(0x20a)]();this[B(0x21c)][B(0x206)](c,()=>{const C=B;try{!b[C(0x1ea)]&&(b[C(0x1ea)]='en');!b[C(0x21b)]&&!this['fsi']['checkNpmPackage'](C(0x1e5))&&(Log[C(0x20c)](C(0x203)),this[C(0x21c)][C(0x1eb)](C(0x1f1),{'cwd':f}),this['fsi'][C(0x214)]('features.withTranslations',!![]));const g=this[C(0x21c)][C(0x1ff)]({'pathParts':[C(0x1e1),C(0x1fb),C(0x20e),C(0x202)]}),h=this['fsi'][C(0x1e3)]({'pathParts':[g],'config':c}),i=this[C(0x21c)][C(0x1f2)](a75e['readFileSync'](h)[C(0x213)](),C(0x1e0))[0x0]&&!![];if(c['engines'][C(0x1f6)]===C(0x1e7)){!i&&this[C(0x21c)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x220)});const t=this[C(0x21c)][C(0x1ff)]({'pathParts':['imports','startup',C(0x1ed),C(0x202)]}),u=this[C(0x21c)][C(0x1e3)]({'pathParts':[t],'config':c}),v=this[C(0x21c)][C(0x1f2)](a75e[C(0x209)](u)[C(0x213)](),C(0x1e0))[0x0]&&!![];!v&&this['fsi'][C(0x225)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0x21c)][C(0x225)]({'filePath':h,'content':C(0x220)});const j={'app':d['appName'],'config':c},k=this[C(0x21c)][C(0x1ff)]({'pathParts':['imports','startup',C(0x1e6),'services',C(0x1ec),C(0x223)]}),l=this[C(0x21c)][C(0x1fa)](this[C(0x21c)][C(0x1e3)]({'pathParts':[k],'config':c}));!l&&this[C(0x21c)][C(0x1f4)]({'srcPath':C(0x216),'destPath':k,'framework':C(0x222),'context':j,'config':c});const m=this['fsi'][C(0x1ff)]({'pathParts':[C(0x1e1),C(0x1fb),'lib',C(0x20b),C(0x1ec),C(0x1f0),b[C(0x1ea)]+C(0x224)]}),n=this[C(0x21c)][C(0x1e3)]({'pathParts':[m],'config':c}),o=this[C(0x21c)][C(0x1fa)](n);!o?this[C(0x21c)][C(0x1f4)]({'srcPath':C(0x207),'destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x20c)](C(0x21e)+n);const p=this['fsi'][C(0x1ff)]({'pathParts':['imports',C(0x1fb),C(0x1e6),C(0x20b),'translations',C(0x1f0),'index.'+c[C(0x217)]['js']]}),q=this['fsi'][C(0x1e3)]({'pathParts':[p],'config':c}),r=this[C(0x21c)][C(0x1fa)](q);!r&&this['fsi'][C(0x1f4)]({'srcPath':C(0x1f3),'destPath':p,'framework':C(0x222),'context':j,'config':c});const s=this[C(0x21c)][C(0x1f2)](a75e[C(0x209)](p)['toString'](),C(0x201)+b[C(0x1ea)])[0x0]&&!![];!s?this[C(0x21c)][C(0x1f9)]({'filePath':p,'content':C(0x205)+b[C(0x1ea)]+C(0x21f)+b[C(0x1ea)]+'\x27;'}):Log[C(0x20c)](C(0x215)+p);}catch(w){Log[C(0x1f7)](w),process['exit'](0x1);}});}catch(g){Log[B(0x1f7)](g),process[B(0x1fd)](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 a76c(){const n=['constructor','stringify','2431962nXQluT','(((.+)+)+)+$','totalmem','11otSbDH','apply','dirname','3148hynDsa','toString','130020uwUhBt','251jtysZQ','BROWSERSLIST_IGNORE_OLD_DATA','env','search','115178apTgeq','argv','--max-old-space-size=','4ASnviY','TOOL_NODE_FLAGS','url','MAKA_COMMAND_PATH','296ljIjys','1338930CCkNNN','camelizeKeys','parse','1482365wufjQU','7210190IlPLOq'];a76c=function(){return n;};return a76c();}(function(a,b){const j=a76d,c=a();while(!![]){try{const d=-parseInt(j(0x1e2))/0x1*(-parseInt(j(0x1df))/0x2)+parseInt(j(0x1d2))/0x3*(parseInt(j(0x1cd))/0x4)+-parseInt(j(0x1d5))/0x5+-parseInt(j(0x1e1))/0x6+parseInt(j(0x1ca))/0x7*(-parseInt(j(0x1d1))/0x8)+-parseInt(j(0x1d9))/0x9+parseInt(j(0x1d6))/0xa*(parseInt(j(0x1dc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x592bc));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a76d;if(c){const e=c[k(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const l=a76d;return a76a[l(0x1e0)]()[l(0x1c9)]('(((.+)+)+)+$')[l(0x1e0)]()[l(0x1d7)](a76a)['search'](l(0x1da));});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(0x1cf)]),__dirname=a76g[a76m(0x1de)](__filename);global[a76m(0x1d0)]=__dirname;const total_memory=a76f[a76m(0x1db)](),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['env'][a76m(0x1ce)]=a76m(0x1cc)+total_mem_in_mb,process[a76m(0x1c8)][a76m(0x1c7)]='1';const argv=a76e(process[a76m(0x1cb)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a76m(0x1d4)](JSON[a76m(0x1d8)](argv));function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x1c7;let f=c[d];return f;},a76d(a,b);}delete deepCopyArgv['_'];const opts=a76h[a76m(0x1d3)](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(0x1dd))/0x1+parseInt(h(0x1d1))/0x2+-parseInt(h(0x1bd))/0x3*(-parseInt(h(0x1e1))/0x4)+parseInt(h(0x1d6))/0x5*(-parseInt(h(0x1cb))/0x6)+parseInt(h(0x1bc))/0x7+-parseInt(h(0x1d9))/0x8+-parseInt(h(0x1b2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xbe568));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['toString']()[i(0x1b7)]('(((.+)+)+)+$')['toString']()[i(0x1b3)](a77a)[i(0x1b7)](i(0x1c3));});a77a();function a77c(){const x=['options','findProjectDirectory','description','homedir','resourceName','1114876wjQmcd','AppData','No\x20usage\x20provided.','_handler','dir','65evMivR','validateMakaProject','docker','6979928hAmDqc','No\x20description\x20provided.','parent','Invalid\x20options:\x20','28833SqsyDs','usage','error','platform','4vhLfyZ','join','Invalid\x20argument:\x20','existsSync','3397455aHzoci','constructor','config','length','fsi','search','validateParams','aliases','Local','keys','9614696HSYzts','744117LBCWKE','concat','forEach','win32','help','.meteor','(((.+)+)+)+$','shortDesc','Missing\x20required\x20options\x20','push','None','includes','name','examples','55644nTgRUZ'];a77c=function(){return x;};return a77c();}import a77e from'path';import a77f from'os';import a77g from'fs';const homeDir=a77f[a77j(0x1cf)]();import{Docker}from'./tools/docker/docker.class.js';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a77d(a,b);}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{UsageError}from'./error.js';export class Tool{[a77j(0x1d8)];['fsi'];['options'];[a77j(0x1c9)];[a77j(0x1db)];[a77j(0x1d4)];constructor(){const k=a77j;this[k(0x1d8)]=new Docker(),this[k(0x1b6)]=new FSI();}['match'](a){const l=a77j,b=[this[l(0x1c9)]]['concat'](this[l(0x1cc)][l(0x1b9)]||[]);return this[l(0x1db)]&&b[l(0x1c6)](this[l(0x1db)]),b[l(0x1c8)](a);}[a77j(0x1d7)](){const m=a77j,a=this[m(0x1b6)][m(0x1cd)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const n=a77j;let a=a77e[n(0x1e2)](homeDir,n(0x1c2));const b=process[n(0x1e0)]===n(0x1c0);if(b){a=a77e[n(0x1e2)](homeDir,n(0x1d2),n(0x1ba),n(0x1c2));if(!a77g['existsSync'](a))return![];}else{if(!a77g[n(0x1b1)](a))return![];}return!![];}[a77j(0x1b8)](a,b,c){const o=a77j,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[o(0x1bb)](b);d?.[o(0x1b5)]>0x0&&a[o(0x1bf)](f=>{const p=o;if(!d[p(0x1c8)](f)){Log[p(0x1df)](p(0x1b0)+f);throw new UsageError();}});if(requiredOpts?.['length']>0x0){if(e[o(0x1b5)]===0x0){Log[o(0x1df)](o(0x1c5)+requiredOpts['join'](',\x20'));throw new UsageError();}requiredOpts[o(0x1bf)](f=>{const q=o;if(!e[q(0x1c8)](f)){Log['error']('Missing\x20required\x20option:\x20'+f);throw new UsageError();}});}validOpts=validOpts[o(0x1be)](requiredOpts),validOpts?.[o(0x1b5)]>0x0&&(validOpts[o(0x1c6)](o(0x1c1)),validOpts[o(0x1c6)](o(0x1d0)),validOpts['push'](o(0x1d5)),validOpts[o(0x1c6)]('cwd'),validOpts[o(0x1c6)]('root'),validOpts[o(0x1c6)](o(0x1b4)),e[o(0x1bf)](f=>{const r=o;if(!validOpts['includes'](f)){Log[r(0x1df)](r(0x1dc)+f);throw new UsageError();}}));}[a77j(0x1ce)](){const s=a77j;return this[s(0x1cc)][s(0x1ce)]||this[s(0x1cc)][s(0x1c4)]||s(0x1da);}[a77j(0x1c4)](){const t=a77j;return this[t(0x1cc)][t(0x1c4)]||'NIE';}['usage'](){const u=a77j;return this['options'][u(0x1de)]||u(0x1d3);}['examples'](){const v=a77j;return this[v(0x1cc)][v(0x1ca)]||[];}[a77j(0x1b9)](){const w=a77j;return this[w(0x1cc)][w(0x1b9)]||w(0x1c7);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78i=a78d;(function(a,b){const f=a78d,c=a();while(!![]){try{const d=parseInt(f(0x1f7))/0x1+parseInt(f(0x1f8))/0x2*(parseInt(f(0x1f6))/0x3)+parseInt(f(0x205))/0x4*(-parseInt(f(0x1f9))/0x5)+-parseInt(f(0x201))/0x6*(-parseInt(f(0x204))/0x7)+parseInt(f(0x206))/0x8+parseInt(f(0x1fe))/0x9+-parseInt(f(0x1fc))/0xa*(parseInt(f(0x1f4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xc5e05));function a78c(){const m=['1009846tmBiLd','2MYwBkk','85300LxgdNY','apply','prompt','282160EreRCa','options','6765039cciRxz','input','password','7836ulYHjq','answer','ask','3395IrsVbS','244cKnqyi','2265400DLSifX','(((.+)+)+)+$','toString','constructor','confirm','374VhDBZL','search','397209nYyVeu'];a78c=function(){return m;};return a78c();}const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a78d;if(c){const e=c[g(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const h=a78d;return a78a[h(0x1f1)]()[h(0x1f5)]('(((.+)+)+)+$')[h(0x1f1)]()[h(0x1f2)](a78a)[h(0x1f5)](h(0x207));});function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a78d(a,b);}a78a();import a78e from'inquirer';export class Actions{static async[a78i(0x203)](a,b){const j=a78i,{answer:c}=await a78e['prompt']({'type':b?j(0x200):j(0x1ff),'name':j(0x202),'message':a});return c;}static async[a78i(0x1f3)](a,b=![]){const k=a78i,{answer:c}=await a78e[k(0x1fb)]({'type':k(0x1f3),'name':k(0x202),'message':a,'default':b});return c;}static async[a78i(0x1fd)](a){const l=a78i,b=await a78e[l(0x1fb)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a79i=a79d;(function(a,b){const f=a79d,c=a();while(!![]){try{const d=parseInt(f(0x127))/0x1*(parseInt(f(0x128))/0x2)+parseInt(f(0x115))/0x3*(-parseInt(f(0x126))/0x4)+-parseInt(f(0x11d))/0x5+parseInt(f(0x117))/0x6*(parseInt(f(0x125))/0x7)+-parseInt(f(0x116))/0x8+parseInt(f(0x121))/0x9+parseInt(f(0x123))/0xa*(parseInt(f(0x11c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x8c12b));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a79d;if(c){const e=c[g(0x11e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const h=a79d;return a79a[h(0x118)]()[h(0x122)](h(0x114))['toString']()[h(0x11f)](a79a)[h(0x122)](h(0x114));});a79a();function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x114;let f=c[d];return f;},a79d(a,b);}import a79e from'chai';function a79c(){const l=['(((.+)+)+)+$','3QtgXJe','8125056YGdJWd','863862GgKHEe','toString','works','Password:\x20','log','11xrhqzR','3543975oPKhQg','apply','constructor','ask','927558HQqgpl','search','13186430PmKUum','Actions\x20Test','49tnrCjL','1386536YOdBGj','12REhxad','35876ntvMzQ'];a79c=function(){return l;};return a79c();}const {expect}=a79e;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe(a79i(0x124),function(){const j=a79i;it(j(0x119),async function(a){const k=j,b=await Actions[k(0x120)](k(0x11a),!![]);console[k(0x11b)](b),a();});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a80q=a80d;(function(a,b){const m=a80d,c=a();while(!![]){try{const d=-parseInt(m(0x123))/0x1*(-parseInt(m(0xed))/0x2)+-parseInt(m(0x14b))/0x3+parseInt(m(0x10d))/0x4+-parseInt(m(0x112))/0x5+-parseInt(m(0x10c))/0x6*(parseInt(m(0x163))/0x7)+-parseInt(m(0x161))/0x8*(parseInt(m(0x116))/0x9)+parseInt(m(0x134))/0xa*(parseInt(m(0x149))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x19f51));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a80d;if(c){const e=c[n(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const o=a80d;return a80a[o(0x148)]()['search'](o(0x121))[o(0x148)]()[o(0x12a)](a80a)[o(0x15d)](o(0x121));});function a80c(){const U=['--count','create-security-group','KeyMaterial','terminate-instances','chmod\x20400\x20','fsi','log','describe-instances','\x20NAME:\x20','--instance-id','2QWYeLh','instanceId','--description','--group-id','\x20PUB_IP:\x20','ecr','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','\x22Name=tag:created-by,Values=maka-cli\x22','**\x20Available\x20Security\x20Groups\x20**','suggestion','authorize-security-group-ingress','--filters','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','inherit','ec2term','chooseInstance','getProjectConfig','--repository-name','\x20STATUS:\x20','Invalid\x20choice','forEach','delete-repository','--key-name','ec2terminateInstance','ecrGetLoginPassword','tags','region','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','getConfigPath','utf8','vpcId','6dmrzMj','757848CCnVlk','type','sgIds','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','.pem.txt','623830jYwVnu','description','pem','imageId','27WfteYQ','--vpc-id','ec2create','join','running','tcp','config','--force','aws\x20ec2\x20describe-vpcs','stringify','ingressRule','(((.+)+)+)+$','Created:\x20','179121CmmTQm','ID:\x20','ecrCreateRepository','exit','ec2key','ec2','\x20INSTANCE_ID:\x20','constructor','error','success','Port\x20','delete-security-group','--image-id','writeFileSync','notice','ec2describeKeys','ec2describeInstances','24390YsTYpb','parse','create-key-pair','subnet','Could\x20not\x20create\x20key.','readFileSync','sgPorts','cidr','sgId','name','env','_keys','deleteKeyPair','No\x20instances\x20found','ignore','--subnet-id','get-login-password','--user-data','apply','GroupId','toString','891LGUCtR','push','597552EOHIZD','privateIp','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','create-repository','awsLogin','VpcId','0.0.0.0/0','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','Name','\x20SGID:\x20','length','userData','run-instances','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ask','confirm','\x20SG\x20NAME:\x20','status','search','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','--cidr','--port','136704HlIFHE','--query','592249hNzZxI','--group-name','--instance-type','publicIp','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','find','ec2createSG','**\x20Available\x20\x20VPCs\x20**','cwd','aws\x20','listSecurityGroups','ec2rebootInstance','Pem\x20key\x20saved\x20to\x20','bright','keys','ecrDeleteRepository'];a80c=function(){return U;};return a80c();}a80a();import a80e from'fs';import a80f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0xed;let f=c[d];return f;},a80d(a,b);}import{Docker}from'../docker/docker.class.js';import{FSI}from'../fsi/fsi.class.js';export class AWS{['fsi'];constructor(){const p=a80d;this[p(0x178)]=new FSI();}[a80q(0x125)](a){const r=a80q;try{const b=[r(0xf2),r(0x14e),r(0xfe),a[r(0x13d)],'--region',a[r(0x107)]],c=r(0x16c)+b[r(0x119)]('\x20'),d=execSync(c)[r(0x148)]();return d;}catch(f){Log['error'](f);}}[a80q(0x105)]({awsAccountId:a,region:b}){const s=a80q;try{const c=[s(0xf2),s(0x144),'|',Docker[s(0x14f)]({'awsAccountId':a,'region':b})],d=s(0x16c)+c[s(0x119)]('\x20'),f=execSync(d)[s(0x148)]();return f;}catch(g){Log[s(0x12b)](g);}}[a80q(0x172)]({repoName:a,region:b}){const t=a80q;try{const c=[t(0xf2),t(0x102),'--repository-name',a,'--region',b,t(0x11d)],d=t(0x16c)+c[t(0x119)]('\x20'),f=execSync(d)['toString']();return f;}catch(g){Log['error'](g);}}[a80q(0x118)](a){const u=a80q;try{const b=[u(0x128),u(0x157),u(0x12f),a[u(0x115)],u(0x173),a['count'],u(0x165),a[u(0x10e)],'--key-name',a['key'],'--security-group-ids',a[u(0x10f)],u(0x143),a[u(0x137)],'--tag-specifications',a[u(0x106)]];a['userData']&&(b['push'](u(0x145)),b[u(0x14a)]('file://'+a[u(0x156)]));const c=u(0x16c)+b[u(0x119)]('\x20'),d=execSync(c)['toString']();return d;}catch(f){Log[u(0x12b)](f);}}[a80q(0xfb)](a){const v=a80q;try{const b=[v(0x128),v(0x176),'--instance-ids',a[v(0xee)]],c='aws\x20'+b[v(0x119)]('\x20');execSync(c,{'stdio':v(0xfa)});}catch(d){return Log['error'](d),{};}}async[a80q(0x127)]({fileName:a,env:b}){const w=a80q,c=this[w(0x178)][w(0x109)](b),d=a80f[w(0x119)](c,w(0x13f),a+w(0x111));try{const g=[w(0x128),w(0x136),w(0x103),a],h=w(0x16c)+g[w(0x119)]('\x20'),i=execSync(h)[w(0x148)](),j=JSON[w(0x135)](i),k=j[w(0x175)];await this['fsi']['createFile']({'filePath':d,'data':k}),execSync(w(0x177)+d,{'stdio':w(0x142)}),Log[w(0x12c)](w(0x16f)+d);}catch(l){return Log[w(0x12b)](l),![];}const f=this['fsi']['isFile'](d);return f;}[a80q(0x120)]=(a,b)=>{const x=a80q,c=['ec2',x(0xf7),x(0xf0),b,'--protocol',x(0x11b),x(0x160),a,x(0x15f),x(0x151)];return c;};[a80q(0x169)](a){const y=a80q;try{const b=a[y(0x16b)]?a['cwd']:process[y(0x16b)](),c=['ec2',y(0x174),y(0xef),a[y(0x113)],y(0x164),a['name'],y(0x117),a['vpcId']],d='aws\x20'+c['join']('\x20'),f=execSync(d,{'cwd':b})[y(0x148)]();if(!f)throw y(0x158);const g=JSON[y(0x135)](f);return a[y(0x13a)]['forEach'](h=>{const z=y,i='aws\x20'+this[z(0x120)](h,g[z(0x147)])[z(0x119)]('\x20');execSync(i,{'cwd':b,'stdio':z(0x142)}),Log[z(0x131)](z(0x12d)+h+'\x20opened!');}),Log['success'](y(0x122)+g[y(0x147)]+y(0x17b)+a[y(0x13d)]),!![];}catch(h){Log[y(0x12b)](h);}}[a80q(0x132)](a){const A=a80q;try{const b=[A(0x128),'describe-key-pairs',A(0x162),'\x22KeyPairs[*].{name:KeyName}\x22'],c=A(0x16c)+b[A(0x119)]('\x20'),d=execSync(c)['toString']();if(!d)throw A(0x158);const f=JSON[A(0x135)](d),g=[];if(f)f[A(0x101)]((h,i)=>{const B=A;g[B(0x14a)]({'id':i,'name':h[B(0x13d)]});}),g[A(0x101)](h=>{const C=A;h[C(0x13d)]===a?.[C(0xf6)]?Log[C(0x12c)](C(0x124)+h['id']+C(0x17b)+h[C(0x13d)]):Log[C(0x131)](C(0x124)+h['id']+C(0x17b)+h[C(0x13d)]);});else return Log[A(0x12b)](A(0x108)),[];return g;}catch(h){Log[A(0x12b)](h);}}async[a80q(0x140)](a){const D=a80q;try{const b=['ec2','delete-key-pair',D(0x103),a],c='aws\x20'+b[D(0x119)]('\x20');execSync(c,{'stdio':D(0xfa)});}catch(d){Log[D(0x12b)](d),process[D(0x126)](0x1);}}[a80q(0x133)](a){const E=a80q,b=[];try{const c=a?.[E(0x16b)]?a['cwd']:process[E(0x16b)](),d=['ec2',E(0x17a),E(0xf8),E(0xf4),E(0x162),E(0x152)],f=E(0x16c)+d[E(0x119)]('\x20'),g=execSync(f,{'cwd':c})[E(0x148)]();if(!g)throw E(0x15e);let h=JSON[E(0x135)](g);h[E(0x155)]>0x0?(h=[]['concat'][E(0x146)]([],h),h[E(0x101)](function(i,j){const F=E;b['push']({'id':j,'instanceId':i[F(0xee)],'privateIp':i[F(0x14c)],'publicIp':i[F(0x166)],'status':i['status'],'name':i[F(0x13d)],'env':i[F(0x13e)][0x0]});}),b[E(0x101)](i=>{const G=E,j=G(0x124)+i['id']+G(0x17b)+i[G(0x13d)]+'\x20ENV:\x20'+i[G(0x13e)]+G(0xff)+i[G(0x15c)]+G(0x129)+i[G(0xee)]+G(0xf1)+i[G(0x166)]+'\x20PRIV_IP:\x20'+i[G(0x14c)];if(i[G(0x15c)]==='terminated')Log[G(0x12b)](j);else i[G(0x15c)]===G(0x11a)?Log[G(0x12c)](j):Log[G(0x131)](j);})):Log[E(0x12b)](E(0xf9));}catch(i){Log[E(0x12b)](i);}return b;}[a80q(0x104)](a){const H=a80q;try{const b=[H(0x128),H(0x176),H(0x17c),a[H(0xee)]],c=H(0x16c)+b[H(0x119)]('\x20'),d=execSync(c)[H(0x148)]();return d;}catch(f){Log[H(0x12b)](f);}}[a80q(0x16e)](a){const I=a80q;try{const b=[I(0x128),'reboot-instances',I(0x17c),a['instanceId']],c=I(0x16c)+b[I(0x119)]('\x20');Log[I(0x131)](c);const d=execSync(c)[I(0x148)]();return Log[I(0x131)](d),d;}catch(f){Log[I(0x12b)](f);}}async['chooseVPC'](){const J=a80q;let a='';Log['notice'](J(0x16a));const b=execSync(J(0x11e))[J(0x148)](),c=JSON[J(0x135)](b),d=[];Object[J(0x171)](c)['forEach'](function(f){const K=J;c[f][K(0x101)](function(g,h){const L=K;d[L(0x14a)]({'id':h,'vpcId':g[L(0x150)],'cidr':g['CidrBlock']});});}),d[J(0x101)](function(f){const M=J;console[M(0x179)](M(0x124)+f['id']+'\x20VPCID:\x20'+f[M(0x10b)]+'\x20CIDR:\x20'+f[M(0x13b)]);});const e=await Actions[J(0x159)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;d[J(0x101)](function(f){const N=J;f['id']==e&&(a=f[N(0x10b)],Log[N(0x12c)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[J(0x12b)](J(0x167)),'';return a;}async[a80q(0xfc)](){const O=a80q,a=this[O(0x133)]({});if(a[O(0x155)]===0x0)return Log[O(0x12b)](O(0x141)),null;const b=await Actions[O(0x159)](O(0xf3));!b&&Log[O(0x12b)](O(0x100));const c=a[O(0x168)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const P=a80q,b=this['fsi'][P(0xfd)](),{appName:c}=b,d=c+'-'+a,f=await Actions[P(0x159)]('Key\x20Name:\x20['+d+']\x20')||d;try{const g=await this[P(0x127)]({'fileName':f,'env':a});if(!g)throw P(0x138);const h=await Actions[P(0x15a)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?');if(h)try{const i=a80e[P(0x139)](a80f[P(0x119)](P(0x11c),a,'ssh.json'),P(0x10a)),j=JSON[P(0x135)](i);j[P(0x114)]=a80f[P(0x119)](P(0x13f),f+P(0x111)),a80e[P(0x130)](a80f[P(0x119)]('config',a,'ssh.json'),JSON[P(0x11f)](j,null,0x2));}catch(k){Log[P(0x12b)](k),Log[P(0x12b)](P(0x110));}}catch(l){Log[P(0x12b)](l),process[P(0x126)](0x1);}return f;}async[a80q(0x16d)](a){const Q=a80q;Log[Q(0x131)](Q(0xf5));const b=execSync(Q(0x14d))['toString'](),c=JSON[Q(0x135)](b),d=[];return c[Q(0x101)](function(e,f){const R=Q;d[R(0x14a)]({'id':f,'name':e[R(0x153)],'sgId':e['ID']});}),d[Q(0x101)](function(e){const S=Q;e[S(0x13d)]===a?Log['notice'](S(0x124)+e['id']+'\x20SG\x20NAME:\x20'+e[S(0x13d)]+'\x20SGID:\x20'+e[S(0x13c)]):Log[S(0x170)](S(0x124)+e['id']+S(0x15b)+e['name']+S(0x154)+e['sgId']);}),d;}async['deleteSecurityGroup'](a){const T=a80q;try{const b=[T(0x128),T(0x12e),T(0xf0),a],c=T(0x16c)+b['join']('\x20');execSync(c,{'stdio':T(0xfa)});}catch(d){Log[T(0x12b)](d),process[T(0x126)](0x1);}}}
|
|
1
|
+
const a80p=a80d;(function(a,b){const m=a80d,c=a();while(!![]){try{const d=parseInt(m(0x193))/0x1*(parseInt(m(0x199))/0x2)+parseInt(m(0x1b3))/0x3+parseInt(m(0x1d9))/0x4+parseInt(m(0x1c0))/0x5+-parseInt(m(0x1b7))/0x6+parseInt(m(0x17c))/0x7*(parseInt(m(0x1a2))/0x8)+-parseInt(m(0x1eb))/0x9*(parseInt(m(0x1e9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x7c025));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a80d;if(c){const e=c[n(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const o=a80d;return a80a[o(0x185)]()[o(0x161)](o(0x167))[o(0x185)]()[o(0x176)](a80a)[o(0x161)]('(((.+)+)+)+$');});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-0x161;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';function a80c(){const U=['success','ec2createSG','ec2describeKeys','41205BwsZcN','GroupId','getProjectConfig','notice','--query','--subnet-id','ec2describeInstances','chooseInstance','\x20PUB_IP:\x20','VpcId','\x20CIDR:\x20','run-instances','error','deleteSecurityGroup','length','forEach','ec2create','\x20SG\x20NAME:\x20','sgIds','--key-name','cidr','aws\x20ec2\x20describe-vpcs','status','push','[-]\x20AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','3136804LCuJSp','cwd','describe-instances','--tag-specifications','Pem\x20key\x20saved\x20to\x20','find','exit','terminate-instances','create-repository','tcp','--region','--security-group-ids','ingressRule','CidrBlock','**\x20Available\x20Security\x20Groups\x20**','_keys','7593620hyutuq','Could\x20not\x20create\x20key.','18WfuxrO','suggestion','deleteKeyPair','config','--instance-type','.pem.txt','privateIp','count','No\x20instances\x20found','vpcId','search','ecrGetLoginPassword','**\x20Available\x20\x20VPCs\x20**','description','--force','apply','(((.+)+)+)+$','--group-name','tags','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','ID:\x20','region','Port\x20','aws\x20','log','--image-id','chmod\x20400\x20','type','--protocol','ssh.json','--count','constructor','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','Name','--vpc-id','--instance-id','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','14hzaKBS','ignore','delete-security-group','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','--user-data','\x20SGID:\x20','\x22KeyPairs[*].{name:KeyName}\x22','instanceId','toString','userData','Invalid\x20choice','running','ec2terminateInstance','stringify','env','\x22Reservations[*].Instances[*].{instanceId:InstanceId,publicIp:PublicIpAddress,privateIp:PrivateIpAddress,status:State.Name,name:Tags[?Key==\x27Name\x27].Value,env:Tags[?Key==\x27environment\x27].Value}[*]\x22','Key\x20Name:\x20[','awsLogin','\x20ENV:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','4307TDFZYu','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ec2key','parse','ecr','\x20opened!','334SjaLZX','--port','inherit','\x20STATUS:\x20','listSecurityGroups','readFileSync','\x20NAME:\x20','ec2','--repository-name','2111080dYixfW','create-security-group','describe-key-pairs','ask','fsi','sgPorts','publicIp','ecrCreateRepository','\x22Name=tag:created-by,Values=maka-cli\x22','\x20INSTANCE_ID:\x20','isFile','delete-key-pair','\x20PRIV_IP:\x20','sgId','getConfigPath','subnet','concat','1576566pygIFg','writeFileSync','join','authorize-security-group-ingress','3230028kTXkAd','Created:\x20','createKeyPair','ec2rebootInstance','name','bright'];a80c=function(){return U;};return a80c();}export class AWS{[a80p(0x1a6)];constructor(){const q=a80p;this[q(0x1a6)]=new FSI();}[a80p(0x1a9)](a){const r=a80p;try{const b=[r(0x197),r(0x1e1),r(0x1a1),a[r(0x1bb)],r(0x1e3),a[r(0x16c)]],c='aws\x20'+b[r(0x1b5)]('\x20'),d=execSync(c)[r(0x185)]();return d;}catch(f){Log['error'](f);}}[a80p(0x162)]({awsAccountId:a,region:b}){const s=a80p;try{const c=[s(0x197),'get-login-password','|',Docker[s(0x18e)]({'awsAccountId':a,'region':b})],d=s(0x16e)+c[s(0x1b5)]('\x20'),f=execSync(d)[s(0x185)]();return f;}catch(g){Log['error'](g);}}['ecrDeleteRepository']({repoName:a,region:b}){const t=a80p;try{const c=['ecr','delete-repository','--repository-name',a,'--region',b,t(0x165)],d=t(0x16e)+c[t(0x1b5)]('\x20'),f=execSync(d)[t(0x185)]();return f;}catch(g){Log[t(0x1cc)](g);}}[a80p(0x1d0)](a){const u=a80p;try{const b=[u(0x1a0),u(0x1cb),u(0x170),a['imageId'],u(0x175),a[u(0x1f2)],u(0x1ef),a[u(0x172)],u(0x1d3),a['key'],u(0x1e4),a[u(0x1d2)],u(0x1c5),a[u(0x1b1)],u(0x1dc),a[u(0x169)]];a[u(0x186)]&&(b[u(0x1d7)](u(0x181)),b[u(0x1d7)]('file://'+a[u(0x186)]));const c=u(0x16e)+b[u(0x1b5)]('\x20'),d=execSync(c)[u(0x185)]();return d;}catch(f){Log['error'](f);}}['ec2term'](a){const v=a80p;try{const b=[v(0x1a0),v(0x1e0),'--instance-ids',a[v(0x184)]],c=v(0x16e)+b[v(0x1b5)]('\x20');execSync(c,{'stdio':v(0x19b)});}catch(d){return Log[v(0x1cc)](d),{};}}async[a80p(0x195)]({fileName:a,env:b}){const w=a80p,c=this[w(0x1a6)][w(0x1b0)](b),d=a80f['join'](c,'_keys',a+'.pem.txt');try{const g=[w(0x1a0),'create-key-pair','--key-name',a],h=w(0x16e)+g['join']('\x20'),i=execSync(h)[w(0x185)](),j=JSON['parse'](i),k=j['KeyMaterial'];await this['fsi']['createFile']({'filePath':d,'data':k}),execSync(w(0x171)+d,{'stdio':'ignore'}),Log[w(0x1bd)](w(0x1dd)+d);}catch(l){return Log[w(0x1cc)](l),![];}const f=this['fsi'][w(0x1ac)](d);return f;}[a80p(0x1e5)]=(a,b)=>{const x=a80p,c=[x(0x1a0),x(0x1b6),'--group-id',b,x(0x173),x(0x1e2),x(0x19a),a,'--cidr','0.0.0.0/0'];return c;};[a80p(0x1be)](a){const y=a80p;try{const b=a[y(0x1da)]?a[y(0x1da)]:process[y(0x1da)](),c=['ec2',y(0x1a3),'--description',a[y(0x164)],y(0x168),a[y(0x1bb)],y(0x179),a[y(0x1f4)]],d=y(0x16e)+c['join']('\x20'),f=execSync(d,{'cwd':b})[y(0x185)]();if(!f)throw y(0x190);const g=JSON[y(0x196)](f);return a[y(0x1a7)][y(0x1cf)](h=>{const z=y,i=z(0x16e)+this[z(0x1e5)](h,g['GroupId'])[z(0x1b5)]('\x20');execSync(i,{'cwd':b,'stdio':z(0x17d)}),Log[z(0x1c3)](z(0x16d)+h+z(0x198));}),Log[y(0x1bd)](y(0x1b8)+g[y(0x1c1)]+y(0x19f)+a['name']),!![];}catch(h){Log[y(0x1cc)](h);}}[a80p(0x1bf)](a){const A=a80p;try{const b=[A(0x1a0),A(0x1a4),A(0x1c4),A(0x183)],c=A(0x16e)+b[A(0x1b5)]('\x20'),d=execSync(c)[A(0x185)]();if(!d)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const f=JSON[A(0x196)](d),g=[];if(f)f['forEach']((h,i)=>{const B=A;g[B(0x1d7)]({'id':i,'name':h[B(0x1bb)]});}),g['forEach'](h=>{const C=A;h[C(0x1bb)]===a?.[C(0x1ec)]?Log['success'](C(0x16b)+h['id']+C(0x19f)+h['name']):Log[C(0x1c3)]('ID:\x20'+h['id']+C(0x19f)+h[C(0x1bb)]);});else return Log['error'](A(0x180)),[];return g;}catch(h){Log['error'](h);}}async[a80p(0x1ed)](a){const D=a80p;try{const b=[D(0x1a0),D(0x1ad),D(0x1d3),a],c='aws\x20'+b[D(0x1b5)]('\x20');execSync(c,{'stdio':D(0x19b)});}catch(d){Log[D(0x1cc)](d),process[D(0x1df)](0x1);}}[a80p(0x1c6)](a){const E=a80p,b=[];try{const c=a?.['cwd']?a[E(0x1da)]:process['cwd'](),d=['ec2',E(0x1db),'--filters',E(0x1aa),E(0x1c4),E(0x18c)],f=E(0x16e)+d[E(0x1b5)]('\x20'),g=execSync(f,{'cwd':c})[E(0x185)]();if(!g)throw E(0x1d8);let h=JSON[E(0x196)](g);h[E(0x1ce)]>0x0?(h=[][E(0x1b2)][E(0x166)]([],h),h['forEach'](function(i,j){const F=E;b[F(0x1d7)]({'id':j,'instanceId':i[F(0x184)],'privateIp':i[F(0x1f1)],'publicIp':i['publicIp'],'status':i[F(0x1d6)],'name':i[F(0x1bb)],'env':i[F(0x18b)][0x0]});}),b['forEach'](i=>{const G=E,j=G(0x16b)+i['id']+G(0x19f)+i[G(0x1bb)]+G(0x18f)+i[G(0x18b)]+G(0x19c)+i['status']+G(0x1ab)+i[G(0x184)]+G(0x1c8)+i[G(0x1a8)]+G(0x1ae)+i['privateIp'];if(i['status']==='terminated')Log['error'](j);else i[G(0x1d6)]===G(0x188)?Log[G(0x1bd)](j):Log[G(0x1c3)](j);})):Log[E(0x1cc)](E(0x16a));}catch(i){Log[E(0x1cc)](i);}return b;}[a80p(0x189)](a){const H=a80p;try{const b=[H(0x1a0),'terminate-instances',H(0x17a),a[H(0x184)]],c=H(0x16e)+b[H(0x1b5)]('\x20'),d=execSync(c)[H(0x185)]();return d;}catch(f){Log[H(0x1cc)](f);}}[a80p(0x1ba)](a){const I=a80p;try{const b=['ec2','reboot-instances',I(0x17a),a[I(0x184)]],c=I(0x16e)+b['join']('\x20');Log[I(0x1c3)](c);const d=execSync(c)[I(0x185)]();return Log[I(0x1c3)](d),d;}catch(f){Log[I(0x1cc)](f);}}async['chooseVPC'](){const J=a80p;let a='';Log['notice'](J(0x163));const b=execSync(J(0x1d5))['toString'](),c=JSON[J(0x196)](b),d=[];Object['keys'](c)[J(0x1cf)](function(f){const K=J;c[f][K(0x1cf)](function(g,h){const L=K;d[L(0x1d7)]({'id':h,'vpcId':g[L(0x1c9)],'cidr':g[L(0x1e6)]});});}),d[J(0x1cf)](function(f){const M=J;console[M(0x16f)](M(0x16b)+f['id']+'\x20VPCID:\x20'+f['vpcId']+M(0x1ca)+f[M(0x1d4)]);});const e=await Actions['ask'](J(0x191))||0x0;d['forEach'](function(f){const N=J;f['id']==e&&(a=f[N(0x1f4)],Log['success'](N(0x194)+a+'\x0a'));});if(a==='')return Log[J(0x1cc)](J(0x17f)),'';return a;}async[a80p(0x1c7)](){const O=a80p,a=this[O(0x1c6)]({});if(a[O(0x1ce)]===0x0)return Log[O(0x1cc)](O(0x1f3)),null;const b=await Actions[O(0x1a5)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&Log[O(0x1cc)](O(0x187));const c=a[O(0x1de)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a80p(0x1b9)]({env:a}){const P=a80p,b=this['fsi'][P(0x1c2)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](P(0x18d)+d+']\x20')||d;try{const g=await this[P(0x195)]({'fileName':f,'env':a});if(!g)throw P(0x1ea);const h=await Actions['confirm'](P(0x192));if(h)try{const i=a80e[P(0x19e)](a80f['join'](P(0x1ee),a,P(0x174)),'utf8'),j=JSON[P(0x196)](i);j['pem']=a80f[P(0x1b5)](P(0x1e8),f+P(0x1f0)),a80e[P(0x1b4)](a80f[P(0x1b5)](P(0x1ee),a,P(0x174)),JSON[P(0x18a)](j,null,0x2));}catch(k){Log[P(0x1cc)](k),Log[P(0x1cc)](P(0x17b));}}catch(l){Log[P(0x1cc)](l),process[P(0x1df)](0x1);}return f;}async[a80p(0x19d)](a){const Q=a80p;Log[Q(0x1c3)](Q(0x1e7));const b=execSync(Q(0x177))['toString'](),c=JSON[Q(0x196)](b),d=[];return c[Q(0x1cf)](function(e,f){const R=Q;d[R(0x1d7)]({'id':f,'name':e[R(0x178)],'sgId':e['ID']});}),d[Q(0x1cf)](function(e){const S=Q;e[S(0x1bb)]===a?Log[S(0x1c3)](S(0x16b)+e['id']+S(0x1d1)+e[S(0x1bb)]+S(0x182)+e[S(0x1af)]):Log[S(0x1bc)]('ID:\x20'+e['id']+S(0x1d1)+e[S(0x1bb)]+S(0x182)+e[S(0x1af)]);}),d;}async[a80p(0x1cd)](a){const T=a80p;try{const b=[T(0x1a0),T(0x17e),'--group-id',a],c=T(0x16e)+b[T(0x1b5)]('\x20');execSync(c,{'stdio':T(0x19b)});}catch(d){Log['error'](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a81d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a81d,c=a();while(!![]){try{var d=-parseInt(f(0xc9))/0x1+parseInt(f(0xc7))/0x2+-parseInt(f(0xc2))/0x3*(parseInt(f(0xc8))/0x4)+parseInt(f(0xc6))/0x5+parseInt(f(0xc1))/0x6*(-parseInt(f(0xc0))/0x7)+-parseInt(f(0xca))/0x8+parseInt(f(0xbe))/0x9*(parseInt(f(0xbd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0x7d98a));var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a81d;if(c){var e=c[g(0xc5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var h=a81d;return a81a[h(0xc3)]()[h(0xc4)](h(0xbf))[h(0xc3)]()['constructor'](a81a)[h(0xc4)](h(0xbf));});function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0xbd;var f=c[d];return f;},a81d(a,b);}a81a();export{};function a81c(){var i=['10tTvCqI','18703818WuUBSO','(((.+)+)+)+$','14sjyDKu','1655544myYJRy','159KROzic','toString','search','apply','303685PyvENn','2046694Vscgdj','72148ATabYO','210069AWGXqx','7439728BYSIJI'];a81c=function(){return i;};return a81c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a83m=a83d;(function(a,b){const j=a83d,c=a();while(!![]){try{const d=parseInt(j(0x1ba))/0x1+-parseInt(j(0x1a5))/0x2*(parseInt(j(0x1b1))/0x3)+parseInt(j(0x1b7))/0x4*(parseInt(j(0x1b4))/0x5)+-parseInt(j(0x1a4))/0x6*(parseInt(j(0x1b5))/0x7)+parseInt(j(0x1a8))/0x8*(parseInt(j(0x1a3))/0x9)+parseInt(j(0x1a9))/0xa*(parseInt(j(0x1ac))/0xb)+-parseInt(j(0x1aa))/0xc*(parseInt(j(0x1b3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0xbf2c6));function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a83d(a,b);}const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a83d;if(c){const e=c[k(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const l=a83d;return a83a['toString']()[l(0x1b2)]('(((.+)+)+)+$')[l(0x1ae)]()[l(0x1af)](a83a)[l(0x1b2)]('(((.+)+)+)+$');});function a83c(){const q=['28960MlwlcG','732PkIwfP','--password-stdin','649EubAxb','--username','toString','constructor','apply','2772771lveMLT','search','39546fyuvJs','65620hsJfty','124803VRDqIQ','inherit','208BrFNzh','.dkr.ecr.','tag','568316grIVPP','error','.amazonaws.com/','AWS','1982934fkQddG','138Fcvliq','2OtBxNy','docker\x20','join','32RhCtBW'];a83c=function(){return q;};return a83c();}a83a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a83m(0x1b9)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a83m;try{const f=[n(0x1b9),a,b+n(0x1b8)+c+n(0x1bc)+d],g=n(0x1a6)+f[n(0x1a7)]('\x20'),h=execSync(g,{'stdio':n(0x1b6)})[n(0x1ae)]();return h;}catch(i){return Log[n(0x1bb)](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const o=a83m;try{const c=['login',o(0x1ad),o(0x1a2),o(0x1ab),a+'.dkr.ecr.'+b+'.amazonaws.com'],d='docker\x20'+c[o(0x1a7)]('\x20'),f=execSync(d,{'stdio':o(0x1b6)})['toString']();return f;}catch(g){return Log[o(0x1bb)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a83m;try{const d=['push',a+p(0x1b8)+b+p(0x1bc)+c],f=p(0x1a6)+d[p(0x1a7)]('\x20'),g=execSync(f,{'stdio':p(0x1b6)})[p(0x1ae)]();return g;}catch(h){return Log[p(0x1bb)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0x137))/0x1+-parseInt(f(0x131))/0x2+parseInt(f(0x135))/0x3+-parseInt(f(0x12e))/0x4*(-parseInt(f(0x133))/0x5)+parseInt(f(0x12f))/0x6+parseInt(f(0x136))/0x7+-parseInt(f(0x12d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0xa0f48));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x132)]()[h(0x130)]('(((.+)+)+)+$')[h(0x132)]()[h(0x134)](a84a)[h(0x130)](h(0x138));});function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x12c;var f=c[d];return f;},a84d(a,b);}function a84c(){var i=['2737014kOwhkw','7936943UeaEuN','362371OTqVGc','(((.+)+)+)+$','apply','17123232ZgjBjp','164GnkyQy','3944232WzJtaM','search','1101506FwFySY','toString','34695qKRGSx','constructor'];a84c=function(){return i;};return a84c();}a84a();export{};
|