@maka/maka-cli 4.5.38 → 4.5.41
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 +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.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/chz.sub.cmd.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/rdn.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/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.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/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/options/options.class.js +1 -0
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d
|
|
1
|
+
const a109A=a109d;(function(a,b){const x=a109d,c=a();while(!![]){try{const d=-parseInt(x(0x116))/0x1*(-parseInt(x(0x10a))/0x2)+parseInt(x(0xdf))/0x3*(-parseInt(x(0xfb))/0x4)+parseInt(x(0xde))/0x5*(-parseInt(x(0xe3))/0x6)+-parseInt(x(0xdc))/0x7*(-parseInt(x(0x11b))/0x8)+-parseInt(x(0xe0))/0x9*(parseInt(x(0x128))/0xa)+-parseInt(x(0xe5))/0xb*(parseInt(x(0x103))/0xc)+-parseInt(x(0xfa))/0xd*(-parseInt(x(0x122))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x5228c));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a109d;if(c){const e=c[y(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const z=a109d;return a109a[z(0x117)]()[z(0x119)](z(0x126))[z(0x117)]()[z(0xe4)](a109a)[z(0x119)](z(0x126));});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xdc;let f=c[d];return f;},a109d(a,b);}a109a();import a109e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a109f from'../generators/maka.gen.js';function a109c(){const J=['injectAfterLineNumber','config','(((.+)+)+)+$','filter','1942630LJRzKq','warn','routes.js','url','route/route.js','route','553882zUHymf','injectAtEndOfFile','40785WXiHun','6IDUcIO','9oDKTUV','\x22*\x22','error','234ogfAPN','constructor','2398lgjXSV','/imports/ui/pages','components','fsi','true','pages','\x0a\x09\x09','newForm','engines','templateContent','toLowerCase','maka\x20g:route\x20todosIndex\x20todos','<Router','indexOf','layouts','startup','injectIntoFile','baseDir','length','vanilla','</Router>','26GitGOs','418108EgbQLH','pathFromApp','create','apply','features','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','join','Valid\x20options\x20are:\x20','15672wXSNjb','lib','const\x20publicRoutes\x20=\x20(<>','layout','Scaffolding\x20for\x20a\x20Route.','private','dir','4hIGcAj','getProjectConfig','includes','MasterLayout','root','resourceName','maka\x20g:route\x20pages/about','react','cwd','client','const\x20privateRoutes\x20=\x20(<>','hooks','170439hxNhiA','toString','rewriteDestinationPathForEngine','search','PrivateLayout','16GNsOur','invoke','withHook','map','<Route','readFileLines','imports','5904794jshmMZ','withTranslations'];a109c=function(){return J;};return a109c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a109A(0xfd)]({'name':a109A(0x12d),'aliases':aliases,'validOpts':[a109A(0x108),'layout','only',a109A(0x112),a109A(0x125),a109A(0x10e),a109A(0x11d),a109A(0x12b),a109A(0xf6)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a109A(0x107),'examples':[a109A(0xf0),'maka\x20g:route\x20todosEdit\x20todos/:id/edit','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists',a109A(0x110)]},function(a,b){const B=a109A;try{const c=[B(0x115),B(0xe7),B(0xea),B(0xf3)];if(b[B(0xf6)]&&!c[B(0x10c)](b[B(0xf6)])){Log[B(0xe2)]('Invalid\x20directory\x20option\x20\x22'+b[B(0xf6)]+'\x22'),Log['error'](B(0x102)+c['join'](',\x20'));throw new UsageError();}const d=this['fsi'][B(0x10b)]();this[B(0xe8)]['withValue'](d,async()=>{const C=B,f=b[C(0x108)]??![];let g=paramCase(b[C(0x10f)]),h='/'+g;a[C(0xf7)]>0x1&&(h='/'+a[C(0x127)](function(n){return n!=='/';})[C(0x101)]('/')[C(0xef)]());g=camelCase(g);b['layout']&&(b['layout']=camelCase(b[C(0x106)]));const i=b[C(0xf6)]?'/imports/ui/'+b['baseDir']:C(0xe6),j=a109e[C(0x101)](i,b[C(0x109)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x106)]||C(0x10d),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xed)][C(0x113)],'newForm':![],'withTranslations':d[C(0xff)][C(0x123)]};f&&(k[C(0x106)]=C(0x11a));if(!b[C(0x10e)]){const n=a109f['findGenerator']('page');n&&await n[C(0x11c)](a,b);}let l,m;if(d[C(0xed)]['client']===C(0x111)){if(d['engines']['ssr']===C(0xe9)){const r=this[C(0xe8)][C(0xfc)]({'pathParts':[C(0x121),C(0xf4),C(0x104),C(0x12a)]});l=this[C(0xe8)][C(0x118)]({'pathParts':[r],'config':d});}else{const s=this[C(0xe8)][C(0xfc)]({'pathParts':[C(0x121),C(0xf4),C(0x113),C(0x12a)]});l=this[C(0xe8)]['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const o=this['fsi'][C(0x120)](l)[C(0x11e)]((t,u)=>{const D=C;return t[D(0x10c)](D(0x100))?u+0x1:null;})[C(0x127)](t=>t!==null);let p=this[C(0xe8)][C(0x120)](l)[C(0x11e)]((t,u)=>{const E=C;return t[E(0x10c)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})['filter'](t=>t!==null),q=this[C(0xe8)]['readFileLines'](l)['map']((t,u)=>{const F=C;return t[F(0x10c)](F(0x114))?u+0x1:null;})[C(0x127)](t=>t!==null);p[C(0xf7)]>0x0&&q['length']>0x0&&(k[C(0xec)]=!![]);m=this[C(0xe8)][C(0xee)]({'srcPath':'route/route.js','framework':C(0x111),'context':k,'config':d});if(p[C(0xf7)]>0x0||q['length']>0x0){this[C(0xe8)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xf7)]>0x0)q=this['fsi'][C(0x120)](l)[C(0x11e)]((t,u)=>{const G=C;return t['includes'](G(0x114))?u+0x1:null;})[C(0x127)](t=>t!==null),this[C(0xe8)][C(0x124)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0xf7)]>0x0?(p=this[C(0xe8)]['readFileLines'](l)[C(0x11e)]((t,u)=>{const H=C;return t[H(0x10c)](H(0x105))?u+0x1:null;})['filter'](t=>t!==null),this[C(0xe8)][C(0x124)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log[C(0x129)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const t=this[C(0xe8)][C(0x120)](l)[C(0x11e)](w=>{const I=C;return w[I(0x10c)](I(0xe1));}),u=t[C(0xf2)](!![])>-0x1,v=u?C(0x11f):C(0xf9);this[C(0xe8)][C(0xf5)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0xeb),'begin':C(0xf1),'end':v});}}else{if(d['engines'][C(0x113)]===C(0xf8)){const w=this[C(0xe8)][C(0xfc)]({'pathParts':[C(0x121),C(0xf4),'client',C(0x12a)]});l=this['fsi'][C(0x118)]({'pathParts':[w],'config':d}),m=this['fsi'][C(0xee)]({'srcPath':C(0x12c),'context':k}),this[C(0xe8)][C(0xdd)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110m=a110d;
|
|
1
|
+
const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=-parseInt(j(0x19f))/0x1+-parseInt(j(0x1a2))/0x2*(parseInt(j(0x19c))/0x3)+-parseInt(j(0x1ad))/0x4+parseInt(j(0x1b0))/0x5*(-parseInt(j(0x1ae))/0x6)+-parseInt(j(0x1a4))/0x7*(parseInt(j(0x1a3))/0x8)+-parseInt(j(0x1a6))/0x9+parseInt(j(0x19a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x8aa03));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0x1b6)]()['search']('(((.+)+)+)+$')['toString']()[l(0x1b7)](a110a)['search'](l(0x1b2));});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x19a;let f=c[d];return f;},a110d(a,b);}function a110c(){const p=['Installing\x20winston','36DtiDPs','create','apply','673055MdkKmR','withValue','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','122906EvDJqq','8glAKos','785848kWTiSe','maka\x20{generate,\x20g}:{service}\x20<resource-name>','4442346WiwTCE','resourceName','template','engines','startup','pathFromApp','fsi','465436HbWjvV','1676478DKZJiK','winston\x20setimmediate','10tRrXOj','services','(((.+)+)+)+$','maka\x20g:svc\x20service-logger\x20--type=logger','type','imports','toString','constructor','checkNpmPackage','logger','svc','32593450xOPcDc'];a110c=function(){return p;};return a110c();}a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a110m(0x19d)]({'name':'service','aliases':[a110m(0x1ba)],'usage':a110m(0x1a5),'shortDesc':a110m(0x1a1),'requiredOpts':[{'name':'type','values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':[a110m(0x1b3)]},async function(a,b){const n=a110m;try{const c=this[n(0x1ac)]['getProjectConfig']();this['fsi'][n(0x1a0)](c,async()=>{const o=n,d=this[o(0x1ac)][o(0x1ab)]({}),f=paramCase(b[o(0x1a7)]),g={'name':pascalCase(b[o(0x1a7)]),'fileName':f,'camelCase':camelCase(b[o(0x1a7)]),'type':b[o(0x1b4)],'engine':c[o(0x1a9)]['js'],'noRename':!![]};let h='js';c['engines']['js']==='tsx'&&(h='ts');if(b['type']===o(0x1b9)){!this[o(0x1ac)][o(0x1b8)]('winston')&&await this[o(0x1ac)]['installNpmPackage'](o(0x1af),{'cwd':d,'msg':o(0x19b)});const i=this[o(0x1ac)][o(0x1ab)]({'pathParts':[o(0x1b5),o(0x1aa),'lib',o(0x1b1),f+'.'+h]});this['fsi'][o(0x1a8)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x1c3))/0x1*(parseInt(f(0x1bd))/0x2)+-parseInt(f(0x1c0))/0x3+-parseInt(f(0x1bc))/0x4+-parseInt(f(0x1c1))/0x5+-parseInt(f(0x1c7))/0x6+parseInt(f(0x1bf))/0x7+-parseInt(f(0x1c5))/0x8*(-parseInt(f(0x1c4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x276a0));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x1ba)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a['toString']()[h(0x1be)](h(0x1c6))[h(0x1c2)]()[h(0x1bb)](a111a)[h(0x1be)](h(0x1c6));});function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x1ba;var f=c[d];return f;},a111d(a,b);}function a111c(){var i=['1pznzCv','171nEAAAx','37480RpRnHG','(((.+)+)+)+$','228228nKIzZh','apply','constructor','396572dFjBhW','639922uJFhaK','search','238266ZwiDVP','409764QNuKWI','39025rmiWkv','toString'];a111c=function(){return i;};return a111c();}a111a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112l=a112d;(function(a,b){const i=a112d,c=a();while(!![]){try{const d
|
|
1
|
+
const a112l=a112d;(function(a,b){const i=a112d,c=a();while(!![]){try{const d=-parseInt(i(0x10e))/0x1+parseInt(i(0x125))/0x2*(parseInt(i(0x110))/0x3)+parseInt(i(0x11f))/0x4+parseInt(i(0x11c))/0x5*(-parseInt(i(0x122))/0x6)+-parseInt(i(0x11a))/0x7*(parseInt(i(0x10c))/0x8)+parseInt(i(0x111))/0x9+-parseInt(i(0x116))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x1bcec));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a112d;if(c){const e=c[j(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const k=a112d;return a112a[k(0x10d)]()[k(0x10f)](k(0x112))[k(0x10d)]()[k(0x11b)](a112a)['search'](k(0x112));});a112a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a112e from'path';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x10c;let f=c[d];return f;},a112d(a,b);}function a112c(){const o=['26251DIenSl','search','291OMZGxV','1804275oRKnqx','(((.+)+)+)+$','apply','template','fsi','547160YYyNtI','withValue','getProjectConfig','Generate\x20a\x20new\x20openssl\x20config\x20file','6097XlOLyn','constructor','815ObcuYp','create','openssl/openssl.conf','283660hgRoXA','env','service','2046unpGfV','openssl.conf','getGlobalConfig','1418vPJLah','maka\x20g:sslconfig\x20--env\x20dev','getConfigPath','824XzGpLJ','toString'];a112c=function(){return o;};return a112c();}Generator[a112l(0x11d)]({'name':'sslconfig','usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a112l(0x119),'noResource':!![],'requiredOpts':['env'],'examples':[a112l(0x126)],'validOpts':['env']},async function(a,b){const m=a112l;try{const c=await this[m(0x115)][m(0x118)](),d=await this[m(0x115)][m(0x124)](),f=this[m(0x115)][m(0x127)](b[m(0x120)]),g=a112e['join'](f,'_keys',m(0x123));await this[m(0x115)][m(0x117)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi'][n(0x114)]({'srcPath':n(0x11e),'destPath':g,'framework':n(0x121),'context':h,'config':c});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d=-parseInt(x(0x19f))/0x1+-parseInt(x(0x1aa))/0x2*(parseInt(x(0x19c))/0x3)+-parseInt(x(0x1ac))/0x4*(parseInt(x(0x1b7))/0x5)+-parseInt(x(0x19d))/0x6+parseInt(x(0x1a3))/0x7+parseInt(x(0x1bb))/0x8+parseInt(x(0x192))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x295f8));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a113d;if(c){const e=c[y(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const z=a113d;return a113a['toString']()['search'](z(0x1b9))[z(0x1c5)]()[z(0x197)](a113a)[z(0x190)](z(0x1b9));});function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x18f;let f=c[d];return f;},a113d(a,b);}a113a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a113e from'fs';function a113c(){const D=['i18n.js','features.withTranslations','true','.js','grep','client','installNpmPackage','translations','import\x20\x27../lib/services/translations/i18n\x27;\x0a','search','injectAtEndOfFile','5212134QzWyRe','i18n/index.js','maka\x20{generate,\x20g}:translation\x20--lang=<language>','withValue','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','constructor','index.js','template','service','i18n/i18n.js','9MUwpFy','1177686dBxJHp','fsi','187725gfgYFm','exit','i18n','server','748636DXluLP','rewriteDestinationPathForEngine','checkNpmPackage','Locale\x20already\x20defined:\x20','i18next\x20i18next-browser-languagedetector\x20react-i18next','ssr','root','43846eCccCv','isFile','10004YDvHIn','imports','findAppDirectory','pathFromApp','lang','injectAtBeginningOfFile','appName','translation','locales','default\x20as\x20','engines','150fnGsja','readFileSync','(((.+)+)+)+$','maka\x20g:translation\x20--lang=fr','65560AYgBOU','startup','lib','export\x20{\x20default\x20as\x20','error','apply','warn','index.','maka\x20g:translation\x20--lang=de','services','toString'];a113c=function(){return D;};return a113c();}Generator['create']({'name':a113A(0x1b3),'usage':a113A(0x194),'aliases':[a113A(0x1a1)],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','noResource':!![],'examples':['maka\x20g:translation\x20--lang=en\x20(default)',a113A(0x1ba),a113A(0x1c3)],'validOpts':[a113A(0x1b0)]},function(a,b){const B=a113A;try{const c=this[B(0x19e)]['getProjectConfig'](),d=this[B(0x19e)]['getGlobalConfig'](),f=this['fsi'][B(0x1ae)]();this[B(0x19e)][B(0x195)](c,()=>{const C=B;try{!b[C(0x1b0)]&&(b[C(0x1b0)]='en');!b[C(0x1a9)]&&!this[C(0x19e)][C(0x1a5)]('i18next')&&(Log[C(0x1c1)](C(0x196)),this[C(0x19e)][C(0x1cc)](C(0x1a7),{'cwd':f}),this['fsi']['setProjectConfig'](C(0x1c7),!![]));const g=this[C(0x19e)][C(0x1af)]({'pathParts':[C(0x1ad),C(0x1bc),C(0x1cb),'index.js']}),h=this[C(0x19e)][C(0x1a4)]({'pathParts':[g],'config':c}),i=this[C(0x19e)][C(0x1ca)](a113e[C(0x1b8)](h)[C(0x1c5)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c[C(0x1b6)][C(0x1a8)]===C(0x1c8)){!i&&this[C(0x19e)][C(0x1b1)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this['fsi']['pathFromApp']({'pathParts':[C(0x1ad),'startup',C(0x1a2),C(0x198)]}),u=this[C(0x19e)][C(0x1a4)]({'pathParts':[t],'config':c}),v=this[C(0x19e)][C(0x1ca)](a113e['readFileSync'](u)[C(0x1c5)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x19e)][C(0x1b1)]({'filePath':u,'content':C(0x18f)});}else!i&&this['fsi']['injectAtBeginningOfFile']({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x1b2)],'config':c},k=this[C(0x19e)][C(0x1af)]({'pathParts':[C(0x1ad),C(0x1bc),C(0x1bd),'services',C(0x1cd),C(0x1c6)]}),l=this[C(0x19e)][C(0x1ab)](this['fsi'][C(0x1a4)]({'pathParts':[k],'config':c}));!l&&this['fsi'][C(0x199)]({'srcPath':C(0x19b),'destPath':k,'framework':C(0x19a),'context':j,'config':c});const m=this[C(0x19e)][C(0x1af)]({'pathParts':[C(0x1ad),C(0x1bc),'lib',C(0x1c4),'translations',C(0x1b4),b[C(0x1b0)]+C(0x1c9)]}),n=this[C(0x19e)][C(0x1a4)]({'pathParts':[m],'config':c}),o=this[C(0x19e)][C(0x1ab)](n);!o?this[C(0x19e)][C(0x199)]({'srcPath':'i18n/locales.js','destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x1c1)](C(0x1a6)+n);const p=this[C(0x19e)][C(0x1af)]({'pathParts':[C(0x1ad),C(0x1bc),C(0x1bd),C(0x1c4),'translations',C(0x1b4),C(0x1c2)+c[C(0x1b6)]['js']]}),q=this[C(0x19e)][C(0x1a4)]({'pathParts':[p],'config':c}),r=this[C(0x19e)][C(0x1ab)](q);!r&&this[C(0x19e)][C(0x199)]({'srcPath':C(0x193),'destPath':p,'framework':C(0x19a),'context':j,'config':c});const s=this['fsi'][C(0x1ca)](a113e[C(0x1b8)](p)['toString'](),C(0x1b5)+b['lang'])[0x0]&&!![];!s?this[C(0x19e)][C(0x191)]({'filePath':p,'content':C(0x1be)+b[C(0x1b0)]+'\x20}\x20from\x20\x27./'+b[C(0x1b0)]+'\x27;'}):Log[C(0x1c1)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0x1bf)](w),process[C(0x1a0)](0x1);}});}catch(g){Log[B(0x1bf)](g),process[B(0x1a0)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114l=a114d;(function(a,b){const j=a114d,c=a();while(!![]){try{const d=parseInt(j(0x178))/0x1*(parseInt(j(0x182))/0x2)+-parseInt(j(0x189))/0x3+parseInt(j(0x17a))/0x4+-parseInt(j(0x17f))/0x5+-parseInt(j(0x180))/0x6+parseInt(j(0x17c))/0x7*(-parseInt(j(0x181))/0x8)+parseInt(j(0x179))/0x9*(parseInt(j(0x188))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xd5aef));function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x172;let f=c[d];return f;},a114d(a,b);}const a114b=(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;};}()),a114a=a114b(this,function(){const k=a114d;return a114a[k(0x183)]()[k(0x177)](k(0x173))[k(0x183)]()[k(0x186)](a114a)[k(0x177)](k(0x173));});a114a();import a114e from'minimist';import a114f from'os';import a114g from'path';import a114h from'humps';import a114i from'./commands/maka.cmd.js';import'./commands/_index.js';function a114c(){const m=['stringify','floor','search','395nJkZio','279PSnrlq','2847540lQlAml','parse','3314689gdkHww','camelizeKeys','MAKA_COMMAND_PATH','642920VkHXru','9212718XQeRdU','16STxSza','6976aGrccD','toString','argv','slice','constructor','url','646910CRhGir','1826184MazuDU','TOOL_NODE_FLAGS','env','(((.+)+)+)+$','--max-old-space-size='];a114c=function(){return m;};return a114c();}import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a114l(0x187)]),__dirname=a114g['dirname'](__filename);global[a114l(0x17e)]=__dirname;const total_memory=a114f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a114l(0x176)](total_mem_in_mb),process['env'][a114l(0x18a)]=a114l(0x174)+total_mem_in_mb,process[a114l(0x172)]['BROWSERSLIST_IGNORE_OLD_DATA']='1';const argv=a114e(process[a114l(0x184)][a114l(0x185)](0x2)),args=argv['_'],deepCopyArgv=JSON[a114l(0x17b)](JSON[a114l(0x175)](argv));delete deepCopyArgv['_'];const opts=a114h[a114l(0x17d)](deepCopyArgv);a114i['run'](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115H=a115d;(function(a,b){const E=a115d,c=a();while(!![]){try{const d=parseInt(E(0x153))/0x1+-parseInt(E(0x152))/0x2*(parseInt(E(0x157))/0x3)+parseInt(E(0x159))/0x4*(parseInt(E(0x17a))/0x5)+parseInt(E(0x168))/0x6+-parseInt(E(0x17f))/0x7+parseInt(E(0x182))/0x8+-parseInt(E(0x183))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xadc10));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const F=a115d;if(c){const e=c[F(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const G=a115d;return a115a[G(0x164)]()[G(0x155)](G(0x18e))['toString']()[G(0x17b)](a115a)[G(0x155)]('(((.+)+)+)+$');});function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x151;let f=c[d];return f;},a115d(a,b);}function a115c(){const T=['keys','env','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','existsSync','description','length','usage','config','examples','toString','NIE','Invalid\x20value\x20for\x20','error','206970QEMtjN','None','Invalid\x20argument:\x20','join','No\x20usage\x20provided.','root','docker','apply','find','formatToNamedParam','options','Please\x20provide\x20a\x20value\x20for\x20','_handler','dir','fsi','help','name','getProjectConfigs','601465bbKKwX','constructor','AppData','map','validateMakaProject','8839460mDYHZs','list','Please\x20choose\x20an\x20environment','5112592XhPTrL','3151638UDGzqB','Please\x20choose\x20a\x20value\x20for\x20','parent','every','No\x20description\x20provided.','platform','homedir','shortDesc','validateParams','aliases','push','(((.+)+)+)+$','includes','Please\x20provide\x20a\x20resource\x20name:','.meteor','resourceName','validateMeteorInstall','2gfHpWg','1170942fUrvPH','concat','search','Local','363954PWRzkI','findProjectDirectory','20JyTOlf','ask'];a115c=function(){return T;};return a115c();}a115a();import a115e from'path';import a115f from'os';import a115g from'fs';const homeDir=a115f[a115H(0x189)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a115H(0x16e)];[a115H(0x176)];[a115H(0x172)];[a115H(0x178)];[a115H(0x185)];[a115H(0x174)];constructor(){const I=a115H;this[I(0x16e)]=new Docker(),this[I(0x176)]=new FSI();}[a115H(0x171)](a){const J=a115H;if(a[J(0x186)](b=>typeof b==='string'))return a[J(0x17d)](b=>({'name':b}));return a;}['match'](a){const K=a115H,b=[this[K(0x178)]][K(0x154)](this['options'][K(0x18c)]||[]);return this[K(0x185)]&&b[K(0x18d)](this[K(0x185)]),b['includes'](a);}[a115H(0x17e)](){const L=a115H,a=this[L(0x176)][L(0x158)]();return a!==![]?!![]:![];}[a115H(0x151)](){const M=a115H;let a=a115e[M(0x16b)](homeDir,M(0x191));const b=process[M(0x188)]==='win32';if(b){a=a115e[M(0x16b)](homeDir,M(0x17c),M(0x156),M(0x191));if(!a115g['existsSync'](a))return![];}else{if(!a115g[M(0x15e)](a))return![];}return!![];}async[a115H(0x18b)](a,b,c){const N=a115H,{requiredOpts:d,validArgs:e,validOpts:f}=c;let g=Object[N(0x15b)](b);const h=Object[N(0x15b)](b);if(h['includes']('resourceName')&&b[N(0x192)]===undefined){const j=await Actions['ask'](N(0x190));b[N(0x192)]=j;}if(d){const k=this['formatToNamedParam'](d);if(k&&k?.[N(0x160)]>0x0)for(const l of k){const {name:m,values:n}=l;if(!g['includes'](m)){if(m===N(0x15c)){const p=this[N(0x176)][N(0x179)](),q=await Actions[N(0x172)]({'type':N(0x180),'name':N(0x15c),'message':N(0x181),'choices':p});b[N(0x15c)]=q[N(0x15c)];}const o=n;if(o){const r=await Actions[N(0x172)]({'type':N(0x180),'name':m,'message':N(0x184)+m,'choices':n});b[m]=r[m];}else{const s=await Actions[N(0x15a)](N(0x173)+m);b[m]=s;}}else{const t=b[m];if(n&&!n[N(0x18f)](t)){Log[N(0x167)](N(0x166)+m+':\x20'+t);throw new UsageError();}}}}g=Object[N(0x15b)](b);const i=this['formatToNamedParam'](f);if(i&&i?.[N(0x160)]>0x0){i['push']({'name':N(0x192),'hidden':!![]}),i[N(0x18d)]({'name':N(0x177),'boolFlag':!![]}),i[N(0x18d)]({'name':N(0x175),'hidden':!![]}),i['push']({'name':'cwd','hidden':!![]}),i['push']({'name':N(0x16d),'hidden':!![]}),i[N(0x18d)]({'name':N(0x162),'hidden':!![]});for(const u of i){const {name:v,values:w}=u,x=b[v];if(x!==undefined&&(!w||!w[N(0x18f)](x))){const y=w;if(y){const z=await Actions[N(0x172)]({'type':N(0x180),'name':v,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+v,'choices':w});b[v]=z[v];}}if(g[N(0x160)]>0x0)for(const A of g){const B=i[N(0x170)](C=>C[N(0x178)]===A);if(!B){Log['error']('Invalid\x20option:\x20'+A);throw new UsageError();}}}}if(e&&e?.[N(0x160)]>0x0)for(const C of e){if(!e['includes'](C)){Log[N(0x167)](N(0x16a)+C);const D=await Actions[N(0x15a)](N(0x15d)+C);a[a['indexOf'](C)]=D;}}}['description'](){const O=a115H;return this[O(0x172)][O(0x15f)]||this['options'][O(0x18a)]||O(0x187);}['shortDesc'](){const P=a115H;return this['options'][P(0x18a)]||P(0x165);}[a115H(0x161)](){const Q=a115H;return this[Q(0x172)]['usage']||Q(0x16c);}[a115H(0x163)](){const R=a115H;return this[R(0x172)][R(0x163)]||[];}[a115H(0x18c)](){const S=a115H;return this[S(0x172)][S(0x18c)]||S(0x169);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-
|
|
1
|
+
function a116c(){const m=['6062035SmBpgA','constructor','prompt','2052744qjkYQS','20PZqSwm','search','6nPXQXq','51920hQckTm','1799112uqfUiR','21233952kOMkNk','ask','8FuJkEO','2230107fioeFI','2259sdELXQ','apply','441670mMjicz','confirm','9QFVcLo','(((.+)+)+)+$','answer'];a116c=function(){return m;};return a116c();}const a116i=a116d;function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x18e;let f=c[d];return f;},a116d(a,b);}(function(a,b){const f=a116d,c=a();while(!![]){try{const d=-parseInt(f(0x199))/0x1*(-parseInt(f(0x18e))/0x2)+-parseInt(f(0x190))/0x3*(parseInt(f(0x19b))/0x4)+parseInt(f(0x197))/0x5*(parseInt(f(0x196))/0x6)+-parseInt(f(0x193))/0x7*(parseInt(f(0x19e))/0x8)+-parseInt(f(0x1a0))/0x9*(parseInt(f(0x19a))/0xa)+-parseInt(f(0x19f))/0xb+parseInt(f(0x19c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xb5166));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x1a1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a['toString']()['search'](h(0x191))['toString']()[h(0x194)](a116a)[h(0x198)]('(((.+)+)+)+$');});a116a();import a116e from'inquirer';export class Actions{static async[a116i(0x19d)](a,b){const j=a116i,{answer:c}=await a116e[j(0x195)]({'type':b?'password':'input','name':j(0x192),'message':a});return c;}static async[a116i(0x18f)](a,b=![]){const k=a116i,{answer:c}=await a116e[k(0x195)]({'type':k(0x18f),'name':'answer','message':a,'default':b});return c;}static async['options'](a){const l=a116i,b=await a116e[l(0x195)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117s=a117d;(function(a,b){const p=a117d,c=a();while(!![]){try{const d=-parseInt(p(0x1d5))/0x1+-parseInt(p(0x1b5))/0x2*(-parseInt(p(0x1b7))/0x3)+parseInt(p(0x182))/0x4+-parseInt(p(0x18f))/0x5+-parseInt(p(0x199))/0x6+parseInt(p(0x1cb))/0x7+-parseInt(p(0x1a9))/0x8*(parseInt(p(0x1ba))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xa8a16));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a117d;if(c){const e=c[q(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const r=a117d;return a117a[r(0x1a8)]()[r(0x1b0)](r(0x16c))[r(0x1a8)]()['constructor'](a117a)[r(0x1b0)](r(0x16c));});a117a();import a117e from'fs';import a117f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';function a117c(){const X=['Availability','ID:\x20','tcp','GroupId','chooseVPC','forEach','2823215nLePDO','key','file://','ssh.json','CidrBlock','VpcId','readFileSync','status','Hosted\x20zone\x20created\x20successfully!','\x20PUB_IP:\x20','3874422iPEsMf','\x20Status\x20Code:\x20','ec2rebootInstance','warn','log','\x20NAME:\x20','privateIp','Name','instance','tag:created-by','Successfully\x20linked\x20EC2\x20instance\x20','Instances','Created:\x20','Invalid\x20choice','UserData','toString','1448024pFwLUE','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','name','HostedZones','cidr','type','search','Reservations','createKeyPairEC2Key','description','Description:','14394TZNxzk','length','447kIFXSU','0.0.0.0/0','sgIds','27eqKcHT','Error\x20linking\x20EC2\x20to\x20Route\x2053:','The\x20domain\x20\x27','getConfigPath','Instance\x20rebooted!','Prices','notice','apply','terminated','join','ingressRule','\x20opened!','error','confirm','Web\x20App','ec2describeKeys','\x20Error\x20Rason:\x20','3632923CZpbMB','vpcId','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','exit','success','send','push','**\x20Available\x20\x20VPCs\x20**','statusCode','publicIp','300356uwxEMd','checkDomainAvailability','chooseInstance','$response','AVAILABLE','Port\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','pem','writeFileSync','Value','$metadata','stringify','env','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','userData','From\x20AWS:','(((.+)+)+)+$','.pem.txt','KeyName','createFile','find','split','UPSERT','Please\x20choose\x20a\x20VPC:\x20[0]\x20','\x20ENV:\x20','reason','utf8','ask','environment','ignore','config','\x20VPCID:\x20','_keys','fsi','chmod\x20400\x20','maxCount','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Error\x20creating\x20hosted\x20zone','4612452YuEZlm','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','sgPorts','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','listHostedZonesByName','instanceId','imageId'];a117c=function(){return X;};return a117c();}import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x164;let f=c[d];return f;},a117d(a,b);}import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a117s(0x17d)];constructor(){const t=a117s;this[t(0x17d)]=new FSI();}async['ecrCreateRepository'](a){const u=a117s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x1d0)](c);return d;}catch(f){Log[u(0x1c6)](f);}}async['route53CreateHostedZone'](a){const v=a117s;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x1d0)](c),Log[v(0x1cf)](v(0x197));}catch(d){Log[v(0x1c6)](v(0x181)),console[v(0x1c6)](d);}}async['registerDomain'](a,b,c,d){const w=a117s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x1d0)](f),Log['notice'](w(0x1bc)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[w(0x1c6)](w(0x183)),Log[w(0x19c)](w(0x16b)),console[w(0x1c6)](w(0x19a)+g[w(0x1d8)][w(0x1d3)]),console[w(0x1c6)](w(0x1ca)+g['$response'][w(0x175)]);}}async[a117s(0x1d6)](a){const x=a117s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x1d0)](c),e=d[x(0x189)]===x(0x1d9);if(e){const f=a[x(0x171)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0x1bf)]&&i[x(0x1bf)][0x0]?.['RegistrationPrice']){const j=i[x(0x1bf)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console['error']('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a117s;try{const d=await route53[y(0x186)]({'DNSName':c});if(!d?.[y(0x1ad)])throw Log['error']('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[y(0x1ad)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x172),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[y(0x1c0)](y(0x1a3)+a+'\x20to\x20'+c);}catch(g){console['error'](y(0x1bb),g);}}async['ec2create'](a){const z=a117s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x188)],'InstanceType':a[z(0x1af)],'KeyName':a[z(0x190)],'MaxCount':a[z(0x17f)],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x1b9)][z(0x171)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':z(0x1a1),'Tags':a['tags']}]};a[z(0x16a)]&&(b[z(0x1a7)]=z(0x191)+a['userData']);const c=new RunInstancesCommand(b),d=await client[z(0x1d0)](c);return d;}catch(f){Log[z(0x1c6)](f);}}async['ec2terminateInstance'](a){const A=a117s;try{const b={'InstanceIds':[a[A(0x187)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x1d0)](c);return d;}catch(f){return Log['error'](f),{};}}async[a117s(0x1b2)]({keyName:a,env:b}){const B=a117s,c=this['fsi'][B(0x1bd)](b),d=a117f[B(0x1c3)](c,B(0x17c),a+B(0x16d));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x1d0)](g),i=h['KeyMaterial'];if(i){await this[B(0x17d)][B(0x16f)]({'filePath':d,'data':i}),execSync(B(0x17e)+d,{'stdio':B(0x179)});const j=this[B(0x17d)]['isFile'](d);if(j)return Log['success']('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[B(0x1c6)](k),process[B(0x1ce)](0x1);}}async[a117s(0x1c4)]({port:a,groupId:b}){const C=a117s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x18b),'IpRanges':[{'CidrIp':C(0x1b8),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x1c0)](C(0x1da)+a+C(0x1c5)),await client['send'](d);}async['ec2createSG'](a){const D=a117s;try{a[D(0x1b3)]===''&&(a[D(0x1b3)]=await Actions[D(0x177)](D(0x1b4))||D(0x1c8));const b={'Description':a['description'],'GroupName':a[D(0x1ac)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(D(0x180));f&&a[D(0x184)][D(0x18e)](g=>{const E=D;this[E(0x1c4)]({'port':parseInt(g),'groupId':f});}),Log[D(0x1cf)](D(0x1a5)+f+D(0x19e)+a['name']);}catch(g){return Log[D(0x1c6)](g),![];}return!![];}async[a117s(0x1c9)](a){const F=a117s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0x1d0)](d);if(!f)throw F(0x180);const {KeyPairs:g}=f;g?(g?.[F(0x18e)]((h,i)=>{const G=F;h[G(0x16e)]&&b[G(0x1d1)]({'id':i,'name':h[G(0x16e)]});}),b[F(0x1b6)]>0x0&&b[F(0x18e)](h=>{const H=F;h['name']===a?.['suggestion']?Log[H(0x1cf)](H(0x18a)+h['id']+H(0x19e)+h[H(0x1ac)]):Log[H(0x1c0)](H(0x18a)+h['id']+H(0x19e)+h[H(0x1ac)]);})):Log[F(0x1c6)](F(0x1db));}catch(h){Log[F(0x1c6)](h);}return b;}async['deleteKeyPair'](a){const I=a117s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[I(0x1d0)](c);}catch(d){Log[I(0x1c6)](d),process['exit'](0x1);}}async['ec2describeInstances'](){const J=a117s,a=[];try{const b={'Filters':[{'Name':J(0x1a2),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[J(0x1d0)](c);d[J(0x1b1)]?.[J(0x18e)]((f,g)=>{const K=J;if(f?.[K(0x1a4)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0x1a4)][0x0],n=m?.[K(0x170)](({Key:o})=>o===K(0x178));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0x1a0)],'name':l,'env':n?.[K(0x165)]});}}),a[J(0x1b6)]>0x0?a[J(0x18e)](f=>{const L=J,g='ID:\x20'+f['id']+L(0x19e)+f[L(0x1ac)]+L(0x174)+f[L(0x168)]+'\x20STATUS:\x20'+f[L(0x196)]+'\x20INSTANCE_ID:\x20'+f[L(0x187)]+L(0x198)+f[L(0x1d4)]+'\x20PRIV_IP:\x20'+f[L(0x19f)];if(f[L(0x196)]===L(0x1c2))Log[L(0x1c6)](g);else f[L(0x196)]==='running'?Log[L(0x1cf)](g):Log[L(0x1c0)](g);}):Log[J(0x1c6)](J(0x1cd));}catch(f){Log[J(0x1c6)](f);}return a;}async[a117s(0x19b)](a){const M=a117s;try{const b={'InstanceIds':[a[M(0x187)]]},c=new RebootInstancesCommand(b),d=await client[M(0x1d0)](c);return d[M(0x166)]['httpStatusCode']===0xc8&&Log[M(0x1cf)](M(0x1be)),d;}catch(f){Log[M(0x1c6)](f);}}async[a117s(0x18d)](){const N=a117s;let a='';Log[N(0x1c0)](N(0x1d2));const b=new DescribeVpcsCommand({}),c=await client[N(0x1d0)](b),{Vpcs:d}=c,e=[];d&&d[N(0x18e)]((g,h)=>{const O=N;g['VpcId']&&g[O(0x193)]&&e[O(0x1d1)]({'id':h,'vpcId':g[O(0x194)],'cidr':g[O(0x193)]});});e[N(0x18e)](function(g){const P=N;console[P(0x19d)](P(0x18a)+g['id']+P(0x17b)+g[P(0x1cc)]+'\x20CIDR:\x20'+g[P(0x1ae)]);});const f=await Actions['ask'](N(0x173))||0x0;e[N(0x18e)](function(g){const Q=N;g['id']==f&&(a=g[Q(0x1cc)],Log['success'](Q(0x1ab)+a+'\x0a'));});if(a==='')return Log[N(0x1c6)](N(0x1aa)),'';return a;}async[a117s(0x1d7)](){const R=a117s,a=await this['ec2describeInstances']();if(a[R(0x1b6)]===0x0)return Log[R(0x1c6)]('No\x20instances\x20found'),null;const b=await Actions[R(0x177)](R(0x185));!b&&(Log[R(0x1c6)](R(0x1a6)),process[R(0x1ce)](0x0));const c=a[R(0x170)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const S=a117s,b=this[S(0x17d)]['getProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[S(0x177)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[S(0x1b2)]({'keyName':f,'env':a});try{const h=await Actions[S(0x1c7)](S(0x169),!![]);if(h)try{const i=a117e[S(0x195)](a117f['join'](S(0x17a),a,S(0x192)),S(0x176)),j=JSON['parse'](i);j[S(0x1dc)]=a117f[S(0x1c3)]('_keys',f+S(0x16d)),a117e[S(0x164)](a117f[S(0x1c3)](S(0x17a),a,S(0x192)),JSON[S(0x167)](j,null,0x2));}catch(k){Log[S(0x1c6)](k),Log[S(0x1c6)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[S(0x1c6)](l),process[S(0x1ce)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const T=a117s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0x1d0)](d),{SecurityGroups:f}=e;f&&f[T(0x18e)](function(i,j){const U=T;i['GroupName']&&i[U(0x18c)]&&b[U(0x1d1)]({'id':j,'name':i['GroupName'],'sgId':i[U(0x18c)]});});let g='',h=0x0;return b[T(0x18e)](function(i){const V=T;i[V(0x1ac)]===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const W=a117s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0x1d0)](c);}catch(d){Log[W(0x1c6)](d),process[W(0x1ce)](0x1);}}}
|
|
1
|
+
const a117s=a117d;(function(a,b){const p=a117d,c=a();while(!![]){try{const d=parseInt(p(0x1dd))/0x1+parseInt(p(0x1bd))/0x2*(parseInt(p(0x1f7))/0x3)+parseInt(p(0x1f5))/0x4+-parseInt(p(0x1bc))/0x5+parseInt(p(0x243))/0x6*(parseInt(p(0x240))/0x7)+-parseInt(p(0x233))/0x8*(-parseInt(p(0x1ca))/0x9)+parseInt(p(0x242))/0xa*(-parseInt(p(0x1db))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xd07fc));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a117d;if(c){const e=c[q(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const r=a117d;return a117a[r(0x226)]()['search'](r(0x21c))[r(0x226)]()[r(0x1ba)](a117a)[r(0x22b)](r(0x21c));});a117a();function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a117d(a,b);}import a117e from'fs';function a117c(){const W=['warn','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','changeResourceRecordSets','CidrBlock','checkDomainAvailability','No\x20instances\x20found','189FuAMFM','sgPorts','subnet','Port\x20','find','minCount','key','route53CreateHostedZone','apply','config','KeyName','instanceId','userData','tcp','name','description','confirm','4246XOiMob','pem','889402YyctfK','Value','ec2describeInstances','VpcId','\x20ENV:\x20','GroupId','log','push','registerDomain','ec2create','split','$response','HostedZones','Availability','\x20PRIV_IP:\x20','Key\x20Name:\x20[','Invalid\x20choice','Description:','ask','UserData','ec2createSG','ingressRule','createKeyPairEC2Key','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','4307816DVXoYo','maxCount','3707115eFZvXJ','notice','\x20PUB_IP:\x20','Name','exit','Error\x20creating\x20hosted\x20zone','ec2describeKeys','chooseVPC','now','length','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','getSecurityGroups','fsi','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20VPCID:\x20','getConfigPath','getProjectConfig','type','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','From\x20AWS:','tag:created-by','Error\x20saving\x20pem\x20file,\x20aborting','Prices','chmod\x20400\x20','Please\x20choose\x20a\x20VPC:\x20[0]\x20','linkEC2ToRoute53','parse','env','running','Web\x20App','ID:\x20','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','listHostedZonesByName','ec2rebootInstance','.pem.txt','terminated','\x27\x20has\x20been\x20registered\x20successfully.','(((.+)+)+)+$','join','privateIp','ec2terminateInstance','writeFileSync','Instances','utf8','status','imageId','$metadata','toString','tags','\x20NAME:\x20','stringify','AVAILABLE','search','\x20opened!','environment','error','Error\x20linking\x20EC2\x20to\x20Route\x2053:','Pem\x20key\x20saved\x20to\x20','instance','\x20Status\x20Code:\x20','445288kEfesM','vpcId','ssh.json','\x20to\x20','Reservations','httpStatusCode','UPSERT','ecrCreateRepository','\x20CIDR:\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','The\x20domain\x20\x27','_keys','reason','4744229kYfiAo','sgId','95380yjacnY','12LmgIzk','send','isFile','Hosted\x20zone\x20created\x20successfully!','constructor','file://','5953780jZTFoO','2hISffA','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ignore','Instance\x20rebooted!','forEach','Could\x20not\x20find\x20hosted\x20zone','success'];a117c=function(){return W;};return a117c();}import a117f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a117s(0x203)];constructor(){this['fsi']=new FSI();}async[a117s(0x23a)](a){const t=a117s;try{const b={'repositoryName':a[t(0x1d8)]},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x244)](c);return d;}catch(f){Log[t(0x22e)](f);}}async[a117s(0x1d1)](a){const u=a117s;try{const b={'CallerReference':''+Date[u(0x1ff)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x244)](c),Log[u(0x1c3)](u(0x246));}catch(d){Log['error'](u(0x1fc)),console[u(0x22e)](d);}}async[a117s(0x1e5)](a,b,c,d){const v=a117s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x244)](f),Log[v(0x1f8)](v(0x23d)+b+v(0x21b));}catch(g){Log[v(0x22e)](v(0x23c)),Log[v(0x1c4)](v(0x20a)),console[v(0x22e)](v(0x232)+g['$response']['statusCode']),console[v(0x22e)]('\x20Error\x20Rason:\x20'+g[v(0x1e8)][v(0x23f)]);}}async[a117s(0x1c8)](a){const w=a117s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x244)](c),e=d[w(0x1ea)]===w(0x22a);if(e){const f=a[w(0x1e7)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x244)](h);if(i&&i[w(0x20d)]&&i[w(0x20d)][0x0]?.['RegistrationPrice']){const j=i[w(0x20d)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[w(0x22e)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a117s(0x210)](a,b,c){const x=a117s;try{const d=await route53[x(0x217)]({'DNSName':c});if(!d?.[x(0x1e9)])throw Log[x(0x22e)](x(0x1c2));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x239),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x1c6)](f),Log[x(0x1f8)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+x(0x236)+c);}catch(g){console[x(0x22e)](x(0x22f),g);}}async[a117s(0x1e6)](a){const y=a117s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x224)],'InstanceType':a[y(0x208)],'KeyName':a[y(0x1d0)],'MaxCount':a[y(0x1f6)],'MinCount':a[y(0x1cf)],'SecurityGroupIds':a['sgIds'][y(0x1e7)](','),'SubnetId':a[y(0x1cc)],'TagSpecifications':[{'ResourceType':y(0x231),'Tags':a[y(0x227)]}]};a[y(0x1d6)]&&(b[y(0x1f0)]=y(0x1bb)+a[y(0x1d6)]);const c=new RunInstancesCommand(b),d=await client[y(0x244)](c);return d;}catch(f){Log[y(0x22e)](f);}}async[a117s(0x21f)](a){const z=a117s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[z(0x244)](c);return d;}catch(f){return Log[z(0x22e)](f),{};}}async[a117s(0x1f3)]({keyName:a,env:b}){const A=a117s,c=this['fsi'][A(0x206)](b),d=a117f[A(0x21d)](c,A(0x23e),a+A(0x219));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x244)](g),i=h['KeyMaterial'];if(i){await this[A(0x203)]['createFile']({'filePath':d,'data':i}),execSync(A(0x20e)+d,{'stdio':A(0x1bf)});const j=this[A(0x203)][A(0x245)](d);if(j)return Log['success'](A(0x230)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x20c));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[A(0x22e)](k),process[A(0x1fb)](0x1);}}async[a117s(0x1f2)]({port:a,groupId:b}){const B=a117s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x1d7),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x1f8)](B(0x1cd)+a+B(0x22c)),await client[B(0x244)](d);}async[a117s(0x1f1)](a){const C=a117s;try{a[C(0x1d9)]===''&&(a[C(0x1d9)]=await Actions[C(0x1ef)](C(0x1ee))||C(0x214));const b={'Description':a[C(0x1d9)],'GroupName':a[C(0x1d8)],'VpcId':a[C(0x234)]},c=new CreateSecurityGroupCommand(b),d=await client[C(0x244)](c),{GroupId:f}=d;if(!d)throw new Error(C(0x1be));f&&a[C(0x1cb)][C(0x1c1)](g=>{const D=C;this[D(0x1f2)]({'port':parseInt(g),'groupId':f});}),Log[C(0x1c3)]('Created:\x20'+f+C(0x228)+a[C(0x1d8)]);}catch(g){return Log[C(0x22e)](g),![];}return!![];}async[a117s(0x1fd)](a){const E=a117s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x244)](d);if(!f)throw E(0x1be);const {KeyPairs:g}=f;g?(g?.[E(0x1c1)]((h,i)=>{const F=E;h[F(0x1d4)]&&b[F(0x1e4)]({'id':i,'name':h[F(0x1d4)]});}),b[E(0x200)]>0x0&&b[E(0x1c1)](h=>{const G=E;h['name']===a?.['suggestion']?Log[G(0x1c3)](G(0x215)+h['id']+'\x20NAME:\x20'+h[G(0x1d8)]):Log[G(0x1f8)](G(0x215)+h['id']+G(0x228)+h[G(0x1d8)]);})):Log[E(0x22e)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[E(0x22e)](h);}return b;}async['deleteKeyPair'](a){const H=a117s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x244)](c);}catch(d){Log['error'](d),process[H(0x1fb)](0x1);}}async[a117s(0x1df)](){const I=a117s,a=[];try{const b={'Filters':[{'Name':I(0x20b),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[I(0x244)](c);d[I(0x237)]?.[I(0x1c1)]((f,g)=>{const J=I;if(f?.[J(0x221)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x221)][0x0],n=m?.['find'](({Key:o})=>o===J(0x22d));a[J(0x1e4)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x1fa)],'name':l,'env':n?.[J(0x1de)]});}}),a['length']>0x0?a[I(0x1c1)](f=>{const K=I,g=K(0x215)+f['id']+K(0x228)+f[K(0x1d8)]+K(0x1e1)+f[K(0x212)]+'\x20STATUS:\x20'+f['status']+'\x20INSTANCE_ID:\x20'+f[K(0x1d5)]+K(0x1f9)+f['publicIp']+K(0x1eb)+f[K(0x21e)];if(f[K(0x223)]===K(0x21a))Log[K(0x22e)](g);else f[K(0x223)]===K(0x213)?Log[K(0x1c3)](g):Log['notice'](g);}):Log[I(0x22e)](I(0x209));}catch(f){Log[I(0x22e)](f);}return a;}async[a117s(0x218)](a){const L=a117s;try{const b={'InstanceIds':[a[L(0x1d5)]]},c=new RebootInstancesCommand(b),d=await client[L(0x244)](c);return d[L(0x225)][L(0x238)]===0xc8&&Log[L(0x1c3)](L(0x1c0)),d;}catch(f){Log['error'](f);}}async[a117s(0x1fe)](){const M=a117s;let a='';Log['notice']('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x1c1)]((g,h)=>{const N=M;g[N(0x1e0)]&&g['CidrBlock']&&e[N(0x1e4)]({'id':h,'vpcId':g[N(0x1e0)],'cidr':g[N(0x1c7)]});});e[M(0x1c1)](function(g){const O=M;console[O(0x1e3)](O(0x215)+g['id']+O(0x205)+g[O(0x234)]+O(0x23b)+g['cidr']);});const f=await Actions[M(0x1ef)](M(0x20f))||0x0;e[M(0x1c1)](function(g){const P=M;g['id']==f&&(a=g[P(0x234)],Log['success'](P(0x1c5)+a+'\x0a'));});if(a==='')return Log['error'](M(0x204)),'';return a;}async['chooseInstance'](){const Q=a117s,a=await this[Q(0x1df)]();if(a['length']===0x0)return Log[Q(0x22e)](Q(0x1c9)),null;const b=await Actions[Q(0x1ef)](Q(0x1f4));!b&&(Log[Q(0x22e)](Q(0x1ed)),process[Q(0x1fb)](0x0));const c=a[Q(0x1ce)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const R=a117s,b=this[R(0x203)][R(0x207)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x1ef)](R(0x1ec)+d+']\x20')||d,{filePath:g}=await this[R(0x1f3)]({'keyName':f,'env':a});try{const h=await Actions[R(0x1da)](R(0x201),!![]);if(h)try{const i=a117e['readFileSync'](a117f['join'](R(0x1d3),a,R(0x235)),R(0x222)),j=JSON[R(0x211)](i);j[R(0x1dc)]=a117f[R(0x21d)](R(0x23e),f+R(0x219)),a117e[R(0x220)](a117f[R(0x21d)](R(0x1d3),a,R(0x235)),JSON[R(0x229)](j,null,0x2));}catch(k){Log['error'](k),Log[R(0x22e)](R(0x216));}}catch(l){Log[R(0x22e)](l),process[R(0x1fb)](0x1);}return{'keyName':f,'filePath':g};}async[a117s(0x202)](a){const S=a117s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x244)](d),{SecurityGroups:f}=e;f&&f[S(0x1c1)](function(i,j){const T=S;i['GroupName']&&i[T(0x1e2)]&&b[T(0x1e4)]({'id':j,'name':i['GroupName'],'sgId':i[T(0x1e2)]});});let g='',h=0x0;return b[S(0x1c1)](function(i){const U=S;i[U(0x1d8)]===a&&(g=i[U(0x241)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const V=a117s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[V(0x22e)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a118d,c=a();while(!![]){try{var d=parseInt(k(
|
|
1
|
+
(function(a,b){var k=a118d,c=a();while(!![]){try{var d=parseInt(k(0x179))/0x1*(parseInt(k(0x17f))/0x2)+-parseInt(k(0x178))/0x3+parseInt(k(0x17b))/0x4+-parseInt(k(0x182))/0x5*(parseInt(k(0x17a))/0x6)+-parseInt(k(0x17e))/0x7+parseInt(k(0x17c))/0x8+-parseInt(k(0x180))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x678c8));export var CountryCode;function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x175;var f=c[d];return f;},a118d(a,b);}function a118c(){var n=['2589979IZPcfk','6652QHeihu','4083282BhBSwq','constructor','265tgVlzN','(((.+)+)+)+$','search','toString','122220VrBkMn','109QrnbJG','12414BvhCPV','3090732eCMYyF','2104088iceYjX','apply'];a118c=function(){return n;};return a118c();}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a118d;if(h){var j=h[l(0x17d)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a118d;return e[m(0x177)]()[m(0x176)]('(((.+)+)+)+$')[m(0x177)]()[m(0x181)](e)[m(0x176)](m(0x175));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1af;let f=c[d];return f;},a119d(a,b);}const a119m=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=parseInt(j(0x1c2))/0x1+parseInt(j(0x1c1))/0x2*(parseInt(j(0x1c5))/0x3)+-parseInt(j(0x1ba))/0x4*(-parseInt(j(0x1b4))/0x5)+parseInt(j(0x1b8))/0x6*(parseInt(j(0x1c7))/0x7)+-parseInt(j(0x1b3))/0x8*(-parseInt(j(0x1b6))/0x9)+parseInt(j(0x1af))/0xa+-parseInt(j(0x1b0))/0xb*(parseInt(j(0x1bb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x1ae68));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a119d;if(c){const e=c[k(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const l=a119d;return a119a['toString']()[l(0x1cd)](l(0x1b9))[l(0x1c8)]()[l(0x1bd)](a119a)[l(0x1cd)](l(0x1b9));});a119a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a119c(){const q=['AWS','273080dhzQSK','985570EDhOJz','inherit','54JnmLLo','apply','3174fstOWD','(((.+)+)+)+$','4VEJIql','48hrTaOH','join','constructor','push','--username','--password-stdin','379106rDxiMj','144430dtsFRl','.amazonaws.com/','awsLogin','3fqfIUG','login','133ulMpxo','toString','pushImage','error','.dkr.ecr.','docker\x20','search','501580TBedyA','1886313OKwreC','tag'];a119c=function(){return q;};return a119c();}export class Docker{static[a119m(0x1b1)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a119m;try{const f=[n(0x1b1),a,b+n(0x1cb)+c+'.amazonaws.com/'+d],g='docker\x20'+f[n(0x1bc)]('\x20'),h=execSync(g,{'stdio':n(0x1b5)})[n(0x1c8)]();return h;}catch(i){return Log[n(0x1ca)](i),'';}}static[a119m(0x1c4)]({awsAccountId:a,region:b}){const o=a119m;try{const c=[o(0x1c6),o(0x1bf),o(0x1b2),o(0x1c0),a+o(0x1cb)+b+'.amazonaws.com'],d=o(0x1cc)+c[o(0x1bc)]('\x20'),f=execSync(d,{'stdio':o(0x1b5)})[o(0x1c8)]();return f;}catch(g){return Log[o(0x1ca)](g),'';}}static[a119m(0x1c9)]({awsAccountId:a,region:b,repoName:c}){const p=a119m;try{const d=[p(0x1be),a+p(0x1cb)+b+p(0x1c3)+c],f=p(0x1cc)+d[p(0x1bc)]('\x20'),g=execSync(f,{'stdio':p(0x1b5)})[p(0x1c8)]();return g;}catch(h){return Log[p(0x1ca)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a120d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a120d,c=a();while(!![]){try{var d=parseInt(f(0x1f1))/0x1+-parseInt(f(0x1f0))/0x2*(parseInt(f(0x1ed))/0x3)+-parseInt(f(0x1e6))/0x4+parseInt(f(0x1e7))/0x5*(parseInt(f(0x1f2))/0x6)+parseInt(f(0x1ee))/0x7*(-parseInt(f(0x1ec))/0x8)+parseInt(f(0x1ea))/0x9+parseInt(f(0x1ef))/0xa*(parseInt(f(0x1eb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x6110a));var a120b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a120d;if(c){var e=c[g(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){var h=a120d;return a120a[h(0x1e9)]()['search'](h(0x1f4))[h(0x1e9)]()[h(0x1e8)](a120a)[h(0x1f5)]('(((.+)+)+)+$');});a120a();function a120d(a,b){var c=a120c();return a120d=function(d,e){d=d-0x1e6;var f=c[d];return f;},a120d(a,b);}function a120c(){var i=['40245gdTLVE','constructor','toString','1855476YIsbBn','124102IRtBYq','8ASFYwh','99591XukFur','1451387lbRZxL','350ROlnMt','2WZGnlN','39389BxjNcC','54VFimuD','apply','(((.+)+)+)+$','search','298992hhkgot'];a120c=function(){return i;};return a120c();}export{};
|