@maka/maka-cli 4.5.8 → 4.5.10
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/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/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-
|
|
1
|
+
function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a70d(a,b);}const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0x1b9))/0x1*(parseInt(h(0x1a9))/0x2)+parseInt(h(0x1ae))/0x3+-parseInt(h(0x1ba))/0x4+-parseInt(h(0x1b7))/0x5+-parseInt(h(0x1b2))/0x6+-parseInt(h(0x1af))/0x7+parseInt(h(0x1b5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x3ccfe));function a70c(){const n=['337176zIOctP','getProjectConfig','server/publish.','532326aYgjsu','maka\x20g:publish\x20todos','(((.+)+)+)+$','7582864VDhJhz','create','2013225orBqep','toString','25502yLjUPM','1260956iUDRzd','apply','injectAtEndOfFile','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','constructor','search','withValue','tsx','engines','8PKPqjh','publish','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','resourceName','fsi','774027tdADmz'];a70c=function(){return n;};return a70c();}const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x1b8)]()['search'](j(0x1b4))[j(0x1b8)]()[j(0x1be)](a70a)[j(0x1bf)](j(0x1b4));});a70a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a70k(0x1b6)]({'name':a70k(0x1aa),'aliases':['p'],'usage':a70k(0x1bd),'shortDesc':a70k(0x1ab),'validOpts':[],'examples':[a70k(0x1b3)]},async function(a,b){const l=a70k,c=this[l(0x1ad)][l(0x1b0)]();this['fsi'][l(0x1c0)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x1ac)]),'noRename':!![]};let e='js';c[m(0x1c2)]['js']===m(0x1c1)&&(e='ts');const f=this[m(0x1ad)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x1b1)+c['engines']['js']]}),g=this['fsi']['templateContent']({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1ad)][m(0x1bc)]({'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(0x87))/0x1+-parseInt(v(0xac))/0x2+-parseInt(v(0xa4))/0x3+-parseInt(v(0x88))/0x4*(-parseInt(v(0xbb))/0x5)+parseInt(v(0xc6))/0x6*(parseInt(v(0x81))/0x7)+parseInt(v(0xb1))/0x8*(-parseInt(v(0xa9))/0x9)+parseInt(v(0x89))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x8ff17));function a71c(){const H=['<Route','\x22*\x22','vanilla','rewriteDestinationPathForEngine','\x0a\x09\x09','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Route.','ssr','maka\x20g:route\x20todosIndex\x20todos','214062vgdNCq','error','includes','PrivateLayout','newForm','49MmPZnk','injectIntoFile','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','readFileLines','startup','withHook','766385KOhtIC','4egIOFp','21676630nOVvuk','getProjectConfig','fsi','features','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','injectAfterLineNumber','map','lib','join','pathFromApp','length','create','only','maka\x20g:route\x20lists/listIndex\x20lists','private','config','cwd','toString','toLowerCase','filter','templateContent','react','apply','constructor','page','routes.js','425415NgzDon','route/route.js','url','</Router>','client','18rfFdyi','findGenerator','true','2074144zTrKuG','maka\x20g:route\x20todosEdit\x20todos/:id/edit','withTranslations','engines','imports','1572184mHXuPF','search','/imports/ui/pages','indexOf','templateName','withValue','MasterLayout','root','injectAtEndOfFile','layout','2552485LZLOFA','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]'];a71c=function(){return H;};return a71c();}const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0xa0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a[x(0x9b)]()[x(0xb2)](x(0xc2))['toString']()[x(0xa1)](a71a)[x(0xb2)]('(((.+)+)+)+$');});a71a();import a71e from'path';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x7d;let f=c[d];return f;},a71d(a,b);}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(0x95)]({'name':'route','aliases':aliases,'validOpts':[a71y(0x98),a71y(0xba),a71y(0x96),a71y(0x9a),a71y(0x99),a71y(0xb8),a71y(0x86),a71y(0xa6)],'usage':a71y(0xbc),'shortDesc':a71y(0xc3),'examples':[a71y(0xc5),a71y(0xad),a71y(0x8e),a71y(0x97)]},function(a,b){const z=a71y;try{const c=this['fsi'][z(0x8a)]();this[z(0x8b)][z(0xb6)](c,async()=>{const A=z,d=b[A(0x98)]??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[A(0x9d)](function(l){return l!=='/';})[A(0x92)]('/')[A(0x9c)]());f=camelCase(f);b[A(0xba)]&&(b['layout']=camelCase(b[A(0xba)]));const h=a71e[A(0x92)](A(0xb3),f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b['layout']||A(0xb7),'templatePath':h,'templateName':pascalCase(f),'client':c[A(0xaf)][A(0xa8)],'newForm':![],'withTranslations':c[A(0x8c)][A(0xae)]};d&&(i[A(0xba)]=A(0x7f));if(!b[A(0xb8)]){const l=a71f[A(0xaa)](A(0xa2));l&&await l['invoke'](a,b);}let j,k;if(c[A(0xaf)]['client']===A(0x9f)){if(c[A(0xaf)][A(0xc4)]===A(0xab)){const p=this[A(0x8b)][A(0x93)]({'pathParts':[A(0xb0),A(0x85),A(0x91),A(0xa3)]});j=this[A(0x8b)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c});}else{const q=this[A(0x8b)][A(0x93)]({'pathParts':[A(0xb0),A(0x85),A(0xa8),A(0xa3)]});j=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c});}const m=this[A(0x8b)][A(0x84)](j)[A(0x90)]((r,s)=>{const B=A;return r[B(0x7e)](B(0x83))?s+0x1:null;})['filter'](r=>r!==null);let n=this[A(0x8b)][A(0x84)](j)[A(0x90)]((r,s)=>{const C=A;return r[C(0x7e)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x9d)](r=>r!==null),o=this[A(0x8b)][A(0x84)](j)[A(0x90)]((r,s)=>{const D=A;return r[D(0x7e)](D(0x8d))?s+0x1:null;})[A(0x9d)](r=>r!==null);n['length']>0x0&&o['length']>0x0&&(i[A(0x80)]=!![]);k=this['fsi'][A(0x9e)]({'srcPath':A(0xa5),'framework':A(0x9f),'context':i,'config':c});if(n[A(0x94)]>0x0||o['length']>0x0){this[A(0x8b)][A(0x8f)]({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x94)]>0x0)o=this[A(0x8b)]['readFileLines'](j)[A(0x90)]((r,s)=>{const E=A;return r[E(0x7e)](E(0x8d))?s+0x1:null;})['filter'](r=>r!==null),this['fsi'][A(0x8f)]({'filePath':j,'content':'\x09{'+i[A(0xb5)]+'}','lineNumber':o[0x0]});else n[A(0x94)]>0x0?(n=this[A(0x8b)]['readFileLines'](j)['map']((r,s)=>{const F=A;return r[F(0x7e)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x9d)](r=>r!==null),this['fsi'][A(0x8f)]({'filePath':j,'content':'\x09{'+i[A(0xb5)]+'}','lineNumber':n[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+j);}else{const r=this[A(0x8b)][A(0x84)](j)[A(0x90)](u=>{const G=A;return u['includes'](G(0xbe));}),s=r[A(0xb4)](!![])>-0x1,t=s?A(0xbd):A(0xa7);this[A(0x8b)][A(0x82)]({'filePath':j,'content':A(0xc1)+k+'\x0a\x09\x09','begin':'<Router','end':t});}}else{if(c[A(0xaf)][A(0xa8)]===A(0xbf)){const u=this[A(0x8b)][A(0x93)]({'pathParts':[A(0xb0),'startup',A(0xa8),A(0xa3)]});j=this[A(0x8b)][A(0xc0)]({'pathParts':[u],'config':c}),k=this[A(0x8b)][A(0x9e)]({'srcPath':A(0xa5),'context':i}),this[A(0x8b)][A(0xb9)]({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x7d)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72l=a72d;(function(a,b){const j=a72d,c=a();while(!![]){try{const d=parseInt(j(0x1ab))/0x1*(parseInt(j(0x1a3))/0x2)+-parseInt(j(0x1b5))/0x3*(-parseInt(j(0x193))/0x4)+-parseInt(j(0x1a0))/0x5*(parseInt(j(0x19f))/0x6)+parseInt(j(0x198))/0x7+-parseInt(j(0x1a5))/0x8*(-parseInt(j(0x1ad))/0x9)+parseInt(j(0x19e))/0xa*(parseInt(j(0x1a1))/0xb)+-parseInt(j(0x199))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x8f211));function a72c(){const o=['error','4251863gFqNAw','19154484uklswG','getProjectConfig','service','checkNpmPackage','fsi','10RqPUEy','24gZwiWU','1166390rbQOst','1199253GbdMnp','pathFromApp','952tBkLll','template','8ZhElhX','maka\x20{generate,\x20g}:{service}\x20[service-type]','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','engines','search','logger','1467wLVFhH','imports','9187596AXGFJi','resourceName','winston\x20setimmediate','service/logger/logger.js','winston','(((.+)+)+)+$','installNpmPackage','services','255003XEqdwg','toString','Installing\x20winston','maka\x20g:svc\x20logger','32BQzZmu','constructor','tsx','withValue'];a72c=function(){return o;};return a72c();}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(0x190)]()[k(0x1a9)](k(0x1b2))[k(0x190)]()[k(0x194)](a72a)[k(0x1a9)]('(((.+)+)+)+$');});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-0x190;let f=c[d];return f;},a72d(a,b);}Generator['create']({'name':a72l(0x19b),'aliases':['svc'],'usage':a72l(0x1a6),'shortDesc':a72l(0x1a7),'validOpts':['type'],'validArgs':[a72l(0x1aa)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a72l(0x192)]},async function(a,b){const m=a72l;try{const c=this[m(0x19d)][m(0x19a)]();this[m(0x19d)][m(0x196)](c,async()=>{const n=m,d=this[n(0x19d)][n(0x1a2)]({}),f=paramCase(b[n(0x1ae)]),g={'name':pascalCase(b[n(0x1ae)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':a[0x0],'engine':c[n(0x1a8)]['js'],'noRename':!![]};let h='js';c[n(0x1a8)]['js']===n(0x195)&&(h='ts');if(a[0x0]===n(0x1aa)){!this[n(0x19d)][n(0x19c)](n(0x1b1))&&await this[n(0x19d)][n(0x1b3)](n(0x1af),{'cwd':d,'msg':n(0x191)});const i=this[n(0x19d)][n(0x1a2)]({'pathParts':[n(0x1ac),'startup','lib',n(0x1b4),f+'.'+h]});this[n(0x19d)][n(0x1a4)]({'srcPath':n(0x1b0),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x197)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a73d,c=a();while(!![]){try{var d=-parseInt(f(0x6a))/0x1*(parseInt(f(0x65))/0x2)+-parseInt(f(0x69))/0x3*(-parseInt(f(0x6d))/0x4)+parseInt(f(0x6b))/0x5*(parseInt(f(0x6f))/0x6)+-parseInt(f(0x67))/0x7+-parseInt(f(0x70))/0x8+parseInt(f(0x6e))/0x9+parseInt(f(0x71))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x88b34));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(0x66)]()['search'](g(0x6c))['toString']()['constructor'](a73a)[g(0x68)](g(0x6c));});function a73c(){var h=['6314763ZQXRTd','search','12vfBoYp','46GxquIb','20cRHGFR','(((.+)+)+)+$','544444BTYSPJ','847773jasjNn','1209570gKErfb','8942816KhnqKA','18818580CvNSvw','32478hZhuhg','toString'];a73c=function(){return h;};return a73c();}function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0x65;var f=c[d];return f;},a73d(a,b);}a73a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a74l=a74d;(function(a,b){const i=a74d,c=a();while(!![]){try{const d=-parseInt(i(0xfe))/0x1+parseInt(i(0xfb))/0x2*(-parseInt(i(0x107))/0x3)+-parseInt(i(0x112))/0x4+-parseInt(i(0x111))/0x5*(parseInt(i(0x101))/0x6)+-parseInt(i(0x100))/0x7+parseInt(i(0xfd))/0x8*(-parseInt(i(0x104))/0x9)+parseInt(i(0x106))/0xa*(parseInt(i(0x108))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x6976f));function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0xfa;let f=c[d];return f;},a74d(a,b);}function a74c(){const o=['constructor','218830tSGDsW','1411404zAxKGQ','service','error','openssl.conf','maka\x20g:sslconfig\x20--env\x20dev','46AlroZL','search','295976zCdPTR','773359WGWOyW','_keys','5897304Smmdkg','30aQSxrP','apply','getProjectConfig','99XlvrxU','fsi','2780670WZJLiZ','76749IuhxAi','143GoMJCv','(((.+)+)+)+$','env','Generate\x20a\x20new\x20openssl\x20config\x20file','create','getConfigPath','sslconfig','toString'];a74c=function(){return o;};return a74c();}const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a74d;if(c){const e=c[j(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const k=a74d;return a74a['toString']()[k(0xfc)](k(0x109))[k(0x10f)]()[k(0x110)](a74a)['search']('(((.+)+)+)+$');});a74a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a74e from'path';Generator[a74l(0x10c)]({'name':a74l(0x10e),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a74l(0x10b),'noResource':!![],'requiredOpts':[a74l(0x10a)],'examples':[a74l(0xfa)],'validOpts':['env']},async function(a,b){const m=a74l;try{const c=await this[m(0x105)][m(0x103)](),d=await this[m(0x105)]['getGlobalConfig'](),f=this['fsi'][m(0x10d)](b[m(0x10a)]),g=a74e['join'](f,m(0xff),m(0x115));await this['fsi']['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x105)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x113),'context':h,'config':c});});}catch(h){Log[m(0x114)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a75A=a75d;(function(a,b){const x=a75d,c=a();while(!![]){try{const d
|
|
1
|
+
const a75A=a75d;(function(a,b){const x=a75d,c=a();while(!![]){try{const d=parseInt(x(0xc2))/0x1+-parseInt(x(0xa8))/0x2+parseInt(x(0xb6))/0x3+parseInt(x(0xaa))/0x4+parseInt(x(0xa1))/0x5+-parseInt(x(0xaf))/0x6+-parseInt(x(0xb5))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xb2b75));function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x97;let f=c[d];return f;},a75d(a,b);}const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a75d;if(c){const e=c[y(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const z=a75d;return a75a['toString']()[z(0xb7)](z(0xcc))[z(0xc9)]()[z(0xa2)](a75a)['search'](z(0xcc));});a75a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a75e from'fs';function a75c(){const D=['isFile','import\x20\x27../lib/services/translations/i18n\x27;','client','ssr','translations','toString','export\x20{\x20default\x20as\x20','maka\x20g:translation\x20--lang=fr','(((.+)+)+)+$','maka\x20g:translation\x20--lang=en\x20(default)','checkNpmPackage','apply','rewriteDestinationPathForEngine','imports','lib','index.','warn','index.js','error','grep','template','installNpmPackage','i18n/index.js','maka\x20{generate,\x20g}:translation\x20--lang=<language>','getProjectConfig','getGlobalConfig','features.withTranslations','readFileSync','6281515ZCelzX','constructor','i18next','injectAtBeginningOfFile','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','maka\x20g:translation\x20--lang=de','server','243652CABJdJ','i18n/locales.js','186916chFVoB','locales','import\x20\x27../lib/services/translations/i18n\x27;\x0a','service','i18n.js','1554216BZpcmo','Locale\x20already\x20exported:\x20','appName','i18next\x20i18next-browser-languagedetector\x20react-i18next','translation','engines','12478473pPTzbQ','1892691SeLmqM','search','lang','create','exit','withValue','startup','i18n','services','pathFromApp','.js','Generate\x20a\x20new\x20locale\x20translation','961593fjqhvp','fsi'];a75c=function(){return D;};return a75c();}Generator[a75A(0xb9)]({'name':a75A(0xb3),'usage':a75A(0x9c),'aliases':[a75A(0xbd)],'shortDesc':a75A(0xc1),'noResource':!![],'examples':[a75A(0xcd),a75A(0xcb),a75A(0xa6)],'validOpts':[a75A(0xb8)]},function(a,b){const B=a75A;try{const c=this[B(0xc3)][B(0x9d)](),d=this['fsi'][B(0x9e)](),f=this['fsi']['findAppDirectory']();this['fsi'][B(0xbb)](c,()=>{const C=B;try{!b[C(0xb8)]&&(b[C(0xb8)]='en');!b['root']&&!this[C(0xc3)][C(0xce)](C(0xa3))&&(Log[C(0xd4)](C(0xa5)),this[C(0xc3)][C(0x9a)](C(0xb2),{'cwd':f}),this['fsi']['setProjectConfig'](C(0x9f),!![]));const g=this[C(0xc3)][C(0xbf)]({'pathParts':[C(0xd1),C(0xbc),C(0xc6),C(0xd5)]}),h=this[C(0xc3)][C(0xd0)]({'pathParts':[g],'config':c}),i=this[C(0xc3)][C(0x98)](a75e[C(0xa0)](h)[C(0xc9)](),C(0xc5))[0x0]&&!![];if(c[C(0xb4)][C(0xc7)]==='true'){!i&&this[C(0xc3)][C(0xa4)]({'filePath':h,'content':C(0xac)});const t=this['fsi'][C(0xbf)]({'pathParts':['imports','startup',C(0xa7),C(0xd5)]}),u=this[C(0xc3)][C(0xd0)]({'pathParts':[t],'config':c}),v=this[C(0xc3)][C(0x98)](a75e[C(0xa0)](u)[C(0xc9)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0xc3)][C(0xa4)]({'filePath':u,'content':C(0xac)});}else!i&&this[C(0xc3)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0xac)});const j={'app':d[C(0xb1)],'config':c},k=this[C(0xc3)][C(0xbf)]({'pathParts':[C(0xd1),C(0xbc),C(0xd2),C(0xbe),C(0xc8),C(0xae)]}),l=this[C(0xc3)][C(0xc4)](this[C(0xc3)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&this[C(0xc3)][C(0x99)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0xad),'context':j,'config':c});const m=this[C(0xc3)][C(0xbf)]({'pathParts':['imports','startup',C(0xd2),C(0xbe),'translations','locales',b[C(0xb8)]+C(0xc0)]}),n=this[C(0xc3)][C(0xd0)]({'pathParts':[m],'config':c}),o=this[C(0xc3)]['isFile'](n);!o?this[C(0xc3)]['template']({'srcPath':C(0xa9),'destPath':m,'framework':C(0xad),'context':j,'config':c}):Log['warn']('Locale\x20already\x20defined:\x20'+n);const p=this[C(0xc3)][C(0xbf)]({'pathParts':[C(0xd1),C(0xbc),C(0xd2),C(0xbe),C(0xc8),C(0xab),C(0xd3)+c[C(0xb4)]['js']]}),q=this[C(0xc3)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0xc3)][C(0xc4)](q);!r&&this[C(0xc3)][C(0x99)]({'srcPath':C(0x9b),'destPath':p,'framework':C(0xad),'context':j,'config':c});const s=this[C(0xc3)][C(0x98)](a75e['readFileSync'](p)[C(0xc9)](),'default\x20as\x20'+b[C(0xb8)])[0x0]&&!![];!s?this['fsi']['injectAtEndOfFile']({'filePath':p,'content':C(0xca)+b['lang']+'\x20}\x20from\x20\x27./'+b['lang']+'\x27;'}):Log['warn'](C(0xb0)+p);}catch(w){Log[C(0x97)](w),process[C(0xba)](0x1);}});}catch(g){Log['error'](g),process[B(0xba)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-modules --no-warnings --experimental-json-modules
|
|
2
|
-
const a76m=a76d;(function(a,b){const j=a76d,c=a();while(!![]){try{const d
|
|
2
|
+
const a76m=a76d;(function(a,b){const j=a76d,c=a();while(!![]){try{const d=parseInt(j(0x198))/0x1+parseInt(j(0x192))/0x2+-parseInt(j(0x1a2))/0x3*(-parseInt(j(0x194))/0x4)+parseInt(j(0x1a4))/0x5*(-parseInt(j(0x1a5))/0x6)+-parseInt(j(0x190))/0x7+-parseInt(j(0x1a0))/0x8+parseInt(j(0x195))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0xe4b1c));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a76d;if(c){const e=c[k(0x19d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const l=a76d;return a76a['toString']()[l(0x19e)](l(0x199))[l(0x191)]()[l(0x1a3)](a76a)[l(0x19e)](l(0x199));});a76a();import a76e from'minimist';function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x190;let f=c[d];return f;},a76d(a,b);}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['url']),__dirname=a76g[a76m(0x1a1)](__filename);global[a76m(0x19a)]=__dirname;const total_memory=a76f[a76m(0x1a9)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a76m(0x19b)](total_mem_in_mb),process[a76m(0x1a6)][a76m(0x197)]='--max-old-space-size='+total_mem_in_mb,process[a76m(0x1a6)][a76m(0x1a7)]='1';const argv=a76e(process[a76m(0x19f)][a76m(0x196)](0x2)),args=argv['_'],deepCopyArgv=JSON[a76m(0x1a8)](JSON[a76m(0x19c)](argv));delete deepCopyArgv['_'];function a76c(){const n=['run','7159229sebBrY','toString','2227108nbdaOK','camelizeKeys','34576pgZdds','14897934vDQCLZ','slice','TOOL_NODE_FLAGS','656436IhUHjk','(((.+)+)+)+$','MAKA_COMMAND_PATH','floor','stringify','apply','search','argv','2769120dVygDU','dirname','120SlqrHd','constructor','35UMDJnL','1256106PwkOte','env','BROWSERSLIST_IGNORE_OLD_DATA','parse','totalmem'];a76c=function(){return n;};return a76c();}const opts=a76h[a76m(0x193)](deepCopyArgv);a76i[a76m(0x1aa)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77k=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(0x1b1))/0x1+parseInt(h(0x1b0))/0x2+-parseInt(h(0x1aa))/0x3+-parseInt(h(0x18d))/0x4*(-parseInt(h(0x195))/0x5)+-parseInt(h(0x182))/0x6*(parseInt(h(0x1a4))/0x7)+parseInt(h(0x199))/0x8+-parseInt(h(0x19d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x3dd73));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a77d;if(c){const e=c[i(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const j=a77d;return a77a['toString']()[j(0x17e)](j(0x18f))[j(0x187)]()[j(0x18b)](a77a)[j(0x17e)](j(0x18f));});a77a();import a77e from'path';import a77f from'os';function a77c(){const y=['error','usage','length','5165WgXXLW','join','keys','parent','2932128ktxAAF','Invalid\x20options:\x20','existsSync','validateMakaProject','1178451QemTau','dir','apply','No\x20description\x20provided.','validateParams','match','homedir','182SXBeLk','forEach','fsi','concat','NIE','description','946749TLxUXm','validateMeteorInstall','shortDesc','push','win32','Missing\x20required\x20option:\x20','802976IhUanG','60528yjjofe','aliases','search','options','config','No\x20usage\x20provided.','106224DVKuuS','.meteor','_handler','examples','name','toString','findProjectDirectory','docker','includes','constructor','help','1284BVjKtC','Missing\x20required\x20options\x20','(((.+)+)+)+$','None','Local'];a77c=function(){return y;};return a77c();}import a77g from'fs';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x17e;let f=c[d];return f;},a77d(a,b);}const homeDir=a77f[a77k(0x1a3)]();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{UsageError}from'./error.js';export class Tool{[a77k(0x189)];[a77k(0x1a6)];[a77k(0x17f)];[a77k(0x186)];[a77k(0x198)];[a77k(0x184)];constructor(){const l=a77k;this[l(0x189)]=new Docker(),this[l(0x1a6)]=new FSI();}[a77k(0x1a2)](a){const m=a77k,b=[this[m(0x186)]][m(0x1a7)](this[m(0x17f)][m(0x1b2)]||[]);return this[m(0x198)]&&b[m(0x1ad)](this[m(0x198)]),b['includes'](a);}[a77k(0x19c)](){const n=a77k,a=this[n(0x1a6)][n(0x188)]();return a!==![]?!![]:![];}[a77k(0x1ab)](){const o=a77k;let a=a77e['join'](homeDir,o(0x183));const b=process['platform']===o(0x1ae);if(b){a=a77e['join'](homeDir,'AppData',o(0x191),o(0x183));if(!a77g[o(0x19b)](a))return![];}else{if(!a77g['existsSync'](a))return![];}return!![];}[a77k(0x1a1)](a,b,c){const p=a77k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[p(0x197)](b);d?.[p(0x194)]>0x0&&a[p(0x1a5)](f=>{const q=p;if(!d[q(0x18a)](f)){Log['error']('Invalid\x20argument:\x20'+f);throw new UsageError();}});if(requiredOpts?.['length']>0x0){if(e['length']===0x0){Log[p(0x192)](p(0x18e)+requiredOpts[p(0x196)](',\x20'));throw new UsageError();}requiredOpts[p(0x1a5)](f=>{const r=p;if(!e[r(0x18a)](f)){Log['error'](r(0x1af)+f);throw new UsageError();}});}validOpts=validOpts[p(0x1a7)](requiredOpts),validOpts?.['length']>0x0&&(validOpts[p(0x1ad)](p(0x18c)),validOpts[p(0x1ad)]('resourceName'),validOpts[p(0x1ad)](p(0x19e)),validOpts[p(0x1ad)]('cwd'),validOpts[p(0x1ad)]('root'),validOpts[p(0x1ad)](p(0x180)),e[p(0x1a5)](f=>{const s=p;if(!validOpts[s(0x18a)](f)){Log[s(0x192)](s(0x19a)+f);throw new UsageError();}}));}['description'](){const t=a77k;return this['options'][t(0x1a9)]||this['options']['shortDesc']||t(0x1a0);}['shortDesc'](){const u=a77k;return this[u(0x17f)][u(0x1ac)]||u(0x1a8);}[a77k(0x193)](){const v=a77k;return this[v(0x17f)][v(0x193)]||v(0x181);}[a77k(0x185)](){const w=a77k;return this[w(0x17f)][w(0x185)]||[];}[a77k(0x1b2)](){const x=a77k;return this['options'][x(0x1b2)]||x(0x190);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a78i=a78d;(function(a,b){const f=a78d,c=a();while(!![]){try{const d=parseInt(f(0xa7))/0x1*(parseInt(f(0xac))/0x2)+parseInt(f(0xb0))/0x3+parseInt(f(0xb4))/0x4+-parseInt(f(0xa5))/0x5*(-parseInt(f(0xb1))/0x6)+parseInt(f(0xa8))/0x7*(-parseInt(f(0xb6))/0x8)+parseInt(f(0xb8))/0x9+-parseInt(f(0xb2))/0xa*(parseInt(f(0xaf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x83946));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a78d;if(c){const e=c[g(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const h=a78d;return a78a[h(0xb7)]()[h(0xad)](h(0xb5))[h(0xb7)]()['constructor'](a78a)[h(0xad)]('(((.+)+)+)+$');});a78a();import a78e from'inquirer';function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0xa5;let f=c[d];return f;},a78d(a,b);}export class Actions{static async[a78i(0xa9)](a,b){const j=a78i,{answer:c}=await a78e[j(0xab)]({'type':b?'password':j(0xaa),'name':j(0xa6),'message':a});return c;}static async[a78i(0xae)](a,b=![]){const k=a78i,{answer:c}=await a78e[k(0xab)]({'type':k(0xae),'name':k(0xa6),'message':a,'default':b});return c;}static async['options'](a){const l=a78i,b=await a78e[l(0xab)](a);return b;}}function a78c(){const m=['1150580abRAGw','(((.+)+)+)+$','24YqtiRo','toString','3851262mbixac','115MYcWQS','answer','101qEIZQh','1285354RXnwGa','ask','input','prompt','14712CbDSCi','search','confirm','4066051eABPLW','109422ymyCyj','280014hvrsLe','40hWTGjf','apply'];a78c=function(){return m;};return a78c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a79s=a79d;(function(a,b){const p=a79d,c=a();while(!![]){try{const d=parseInt(p(
|
|
1
|
+
const a79s=a79d;function a79c(){const R=['chmod\x20400\x20','5422712ETwxyd','tcp','\x20PUB_IP:\x20','env','/dev/sdh','deleteSecurityGroup','cidr','ec2createSG','Pem\x20key\x20saved\x20to\x20','Please\x20choose\x20a\x20VPC:\x20[0]\x20','ec2create','4386150sOxPri','isFile','file://','instance','.pem.txt','split','description','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','search','find','type','17752MyMoiD','maxCount','maka-cli','ec2describeInstances','toString','Error\x20saving\x20pem\x20file,\x20aborting','Port\x20','deleteKeyPair','userData','\x20VPCID:\x20','96iaoORJ','ask','124105icGtiU','VpcId','httpStatusCode','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','330006oPgswM','\x20INSTANCE_ID:\x20','Instances','createKeyPairEC2Key','privateIp','Value','Web\x20App','imageId','send','11450880FEfhAo','fsi','join','success','ingressRule','chooseVPC','sgPorts','**\x20Available\x20\x20VPCs\x20**','readFileSync','vpcId','ID:\x20','getProjectConfig','error','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','writeFileSync','log','suggestion','\x20NAME:\x20','stringify','321kUIhiq','ec2describeKeys','ec2rebootInstance','constructor','\x20ENV:\x20','utf8','length','running','parse','GroupId','0.0.0.0/0','1440Xjuhuu','_keys','notice','\x20PRIV_IP:\x20','forEach','apply','Invalid\x20choice','Reservations','(((.+)+)+)+$','pem','Name','push','KeyName','3658ZNYVKz','environment','status','Key\x20Name:\x20[','ssh.json','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','exit','createKeyPair','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','UserData','publicIp','name','Instance\x20rebooted!','terminated','instanceId','ignore','$metadata','GroupName','Description:'];a79c=function(){return R;};return a79c();}(function(a,b){const p=a79d,c=a();while(!![]){try{const d=parseInt(p(0x1c3))/0x1*(parseInt(p(0x1db))/0x2)+-parseInt(p(0x1a7))/0x3+-parseInt(p(0x1a1))/0x4*(-parseInt(p(0x1a3))/0x5)+parseInt(p(0x1ce))/0x6*(-parseInt(p(0x197))/0x7)+-parseInt(p(0x181))/0x8+-parseInt(p(0x18c))/0x9+parseInt(p(0x1b0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0x6c6a6));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a79d;if(c){const e=c[q(0x1d3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const r=a79d;return a79a[r(0x19b)]()[r(0x194)]('(((.+)+)+)+$')[r(0x19b)]()[r(0x1c6)](a79a)[r(0x194)](r(0x1d6));});a79a();import a79e from'fs';import a79f 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';function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x171;let f=c[d];return f;},a79d(a,b);}import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';const client=new EC2Client({}),ecrClient=new ECRClient({});export class AWS{[a79s(0x1b1)];constructor(){const t=a79s;this[t(0x1b1)]=new FSI();}async['ecrCreateRepository'](a){const u=a79s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x1af)](c);return d;}catch(f){Log[u(0x1bc)](f);}}async[a79s(0x18b)](a){const v=a79s;try{const b={'BlockDeviceMappings':[{'DeviceName':v(0x185),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[v(0x1ae)],'InstanceType':a[v(0x196)],'KeyName':a['key'],'MaxCount':a[v(0x198)],'MinCount':a['minCount'],'SecurityGroupIds':a['sgIds'][v(0x191)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':v(0x18f),'Tags':a['tags']}]};a['userData']&&(b[v(0x176)]=v(0x18e)+a[v(0x19f)]);const c=new RunInstancesCommand(b),d=await client[v(0x1af)](c);return d;}catch(f){Log[v(0x1bc)](f);}}async['ec2terminateInstance'](a){const w=a79s;try{const b={'InstanceIds':[a[w(0x17b)]]},c=new TerminateInstancesCommand(b),d=await client[w(0x1af)](c);return d;}catch(f){return Log['error'](f),{};}}async[a79s(0x1aa)]({keyName:a,env:b}){const x=a79s,c=this[x(0x1b1)]['getConfigPath'](b),d=a79f[x(0x1b2)](c,x(0x1cf),a+x(0x190));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[x(0x1af)](g),i=h['KeyMaterial'];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync(x(0x180)+d,{'stdio':x(0x17c)});const j=this[x(0x1b1)][x(0x18d)](d);if(j)return Log[x(0x1b3)](x(0x189)+d),{'keyName':a,'filePath':d};else throw new Error(x(0x19c));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[x(0x1bc)](k),process[x(0x173)](0x1);}}async[a79s(0x1b4)]({port:a,groupId:b}){const y=a79s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':y(0x182),'IpRanges':[{'CidrIp':y(0x1cd),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[y(0x1d0)](y(0x19d)+a+'\x20opened!'),await client[y(0x1af)](d);}async[a79s(0x188)](a){const z=a79s;try{a[z(0x192)]===''&&(a[z(0x192)]=await Actions['ask'](z(0x17f))||z(0x1ad));const b={'Description':a[z(0x192)],'GroupName':a[z(0x178)],'VpcId':a[z(0x1b9)]},c=new CreateSecurityGroupCommand(b),d=await client[z(0x1af)](c),{GroupId:f}=d;if(!d)throw new Error(z(0x1a6));f&&a[z(0x1b6)][z(0x1d2)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[z(0x1b3)]('Created:\x20'+f+'\x20NAME:\x20'+a[z(0x178)]);}catch(g){return Log[z(0x1bc)](g),![];}return!![];}async[a79s(0x1c4)](a){const A=a79s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[A(0x1af)](d);if(!f)throw A(0x1a6);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const B=A;h['KeyName']&&b[B(0x1d9)]({'id':i,'name':h[B(0x1da)]});}),b[A(0x1c9)]>0x0&&b[A(0x1d2)](h=>{const C=A;h[C(0x178)]===a?.[C(0x1c0)]?Log[C(0x1b3)]('ID:\x20'+h['id']+'\x20NAME:\x20'+h[C(0x178)]):Log[C(0x1d0)]('ID:\x20'+h['id']+C(0x1c1)+h[C(0x178)]);})):Log[A(0x1bc)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[A(0x1bc)](h);}return b;}async[a79s(0x19e)](a){const D=a79s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[D(0x1af)](c);}catch(d){Log[D(0x1bc)](d),process['exit'](0x1);}}async[a79s(0x19a)](){const E=a79s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[E(0x199)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[E(0x1d5)]?.[E(0x1d2)]((f,g)=>{const F=E;if(f?.[F(0x1a9)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.['find'](({Key:o})=>o===F(0x1dc));a[F(0x1d9)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[F(0x1d8)],'name':l,'env':n?.[F(0x1ac)]});}}),a[E(0x1c9)]>0x0?a[E(0x1d2)](f=>{const G=E,g=G(0x1ba)+f['id']+'\x20NAME:\x20'+f[G(0x178)]+G(0x1c7)+f[G(0x184)]+'\x20STATUS:\x20'+f['status']+G(0x1a8)+f[G(0x17b)]+G(0x183)+f[G(0x177)]+G(0x1d1)+f[G(0x1ab)];if(f[G(0x1dd)]===G(0x17a))Log[G(0x1bc)](g);else f[G(0x1dd)]===G(0x1ca)?Log[G(0x1b3)](g):Log[G(0x1d0)](g);}):Log[E(0x1bc)](E(0x175));}catch(f){Log[E(0x1bc)](f);}return a;}async[a79s(0x1c5)](a){const H=a79s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[H(0x1af)](c);return d[H(0x17d)][H(0x1a5)]===0xc8&&Log[H(0x1b3)](H(0x179)),d;}catch(f){Log['error'](f);}}async[a79s(0x1b5)](){const I=a79s;let a='';Log[I(0x1d0)](I(0x1b7));const b=new DescribeVpcsCommand({}),c=await client[I(0x1af)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const J=I;g[J(0x1a4)]&&g['CidrBlock']&&e[J(0x1d9)]({'id':h,'vpcId':g[J(0x1a4)],'cidr':g['CidrBlock']});});e[I(0x1d2)](function(g){const K=I;console[K(0x1bf)](K(0x1ba)+g['id']+K(0x1a0)+g[K(0x1b9)]+'\x20CIDR:\x20'+g[K(0x187)]);});const f=await Actions[I(0x1a2)](I(0x18a))||0x0;e[I(0x1d2)](function(g){const L=I;g['id']==f&&(a=g[L(0x1b9)],Log['success'](L(0x172)+a+'\x0a'));});if(a==='')return Log[I(0x1bc)](I(0x1bd)),'';return a;}async['chooseInstance'](){const M=a79s,a=await this[M(0x19a)]();if(a['length']===0x0)return Log[M(0x1bc)]('No\x20instances\x20found'),null;const b=await Actions[M(0x1a2)](M(0x193));!b&&(Log['error'](M(0x1d4)),process[M(0x173)](0x0));const c=a[M(0x195)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a79s(0x174)]({env:a}){const N=a79s,b=this['fsi'][N(0x1bb)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](N(0x1de)+d+']\x20')||d,{filePath:g}=await this[N(0x1aa)]({'keyName':f,'env':a});try{const h=await Actions['confirm']('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a79e[N(0x1b8)](a79f[N(0x1b2)]('config',a,N(0x171)),N(0x1c8)),j=JSON[N(0x1cb)](i);j[N(0x1d7)]=a79f[N(0x1b2)]('_keys',f+N(0x190)),a79e[N(0x1be)](a79f[N(0x1b2)]('config',a,N(0x171)),JSON[N(0x1c2)](j,null,0x2));}catch(k){Log[N(0x1bc)](k),Log[N(0x1bc)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[N(0x1bc)](l),process[N(0x173)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const O=a79s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[O(0x1d2)](function(i,j){const P=O;i[P(0x17e)]&&i[P(0x1cc)]&&b[P(0x1d9)]({'id':j,'name':i[P(0x17e)],'sgId':i[P(0x1cc)]});});let g='',h=0x0;return b[O(0x1d2)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a79s(0x186)](a){const Q=a79s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[Q(0x1af)](c);}catch(d){Log[Q(0x1bc)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a80d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a80c(){var i=['1121239XcMuzj','6145368tMQBvf','12zQdsop','apply','1996BIkqkA','22GshbWv','576470CvFdmT','9846fgDSSH','3047707VTdGMG','search','toString','22ZDJHfL','9BXUrzg','constructor','10sGaqap','2469ZsIFMt','1554198YSdiTp','(((.+)+)+)+$'];a80c=function(){return i;};return a80c();}function a80d(a,b){var c=a80c();return a80d=function(d,e){d=d-0x12e;var f=c[d];return f;},a80d(a,b);}(function(a,b){var f=a80d,c=a();while(!![]){try{var d=-parseInt(f(0x130))/0x1*(-parseInt(f(0x132))/0x2)+-parseInt(f(0x13a))/0x3*(-parseInt(f(0x12f))/0x4)+-parseInt(f(0x139))/0x5*(-parseInt(f(0x13b))/0x6)+-parseInt(f(0x13d))/0x7+parseInt(f(0x13e))/0x8*(-parseInt(f(0x137))/0x9)+parseInt(f(0x131))/0xa*(parseInt(f(0x136))/0xb)+-parseInt(f(0x13f))/0xc*(-parseInt(f(0x133))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x6fec2));var a80b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a80d;if(c){var e=c[g(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){var h=a80d;return a80a[h(0x135)]()[h(0x134)](h(0x13c))['toString']()[h(0x138)](a80a)['search'](h(0x13c));});a80a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a81m=a81d;function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a81d(a,b);}(function(a,b){const j=a81d,c=a();while(!![]){try{const d=-parseInt(j(0x1c8))/0x1+-parseInt(j(0x1be))/0x2+-parseInt(j(0x1c2))/0x3+parseInt(j(0x1c5))/0x4+-parseInt(j(0x1d4))/0x5*(parseInt(j(0x1cf))/0x6)+parseInt(j(0x1d1))/0x7+parseInt(j(0x1d5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xa063e));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a81d;if(c){const e=c[k(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const l=a81d;return a81a[l(0x1c1)]()['search']('(((.+)+)+)+$')[l(0x1c1)]()[l(0x1d6)](a81a)[l(0x1c7)](l(0x1ca));});a81a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a81m(0x1d3)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a81m;try{const f=[n(0x1d3),a,b+n(0x1cb)+c+n(0x1c4)+d],g='docker\x20'+f['join']('\x20'),h=execSync(g,{'stdio':n(0x1bd)})['toString']();return h;}catch(i){return Log[n(0x1ce)](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const o=a81m;try{const c=[o(0x1c0),o(0x1cc),o(0x1c6),o(0x1bf),a+o(0x1cb)+b+o(0x1c3)],d=o(0x1c9)+c[o(0x1d0)]('\x20'),f=execSync(d,{'stdio':o(0x1bd)})[o(0x1c1)]();return f;}catch(g){return Log[o(0x1ce)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a81m;try{const d=[p(0x1cd),a+p(0x1cb)+b+p(0x1c4)+c],f=p(0x1c9)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x1bd)})[p(0x1c1)]();return g;}catch(h){return Log['error'](h),'';}}}function a81c(){const q=['3619336XSMbOT','AWS','search','1250999SrPFII','docker\x20','(((.+)+)+)+$','.dkr.ecr.','--username','push','error','51822AglEdH','join','7591045LGIHrH','apply','tag','215tIMWhN','14758928RfEZCp','constructor','inherit','2168808gCvWAz','--password-stdin','login','toString','1411149vbvXFr','.amazonaws.com','.amazonaws.com/'];a81c=function(){return q;};return a81c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a82d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a82d,c=a();while(!![]){try{var d=-parseInt(f(0x17a))/0x1+-parseInt(f(0x177))/0x2*(-parseInt(f(0x17b))/0x3)+-parseInt(f(0x17d))/0x4+parseInt(f(0x181))/0x5+-parseInt(f(0x182))/0x6*(-parseInt(f(0x174))/0x7)+parseInt(f(0x175))/0x8*(parseInt(f(0x17e))/0x9)+parseInt(f(0x180))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x36374));var a82b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a82d;if(c){var e=c[g(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){var h=a82d;return a82a[h(0x176)]()['search'](h(0x178))[h(0x176)]()[h(0x17f)](a82a)[h(0x179)](h(0x178));});function a82c(){var i=['9YbCysy','constructor','5119710pjmurG','556725VXxvmu','5466YEFiye','441UjXvYf','876168jJgGBW','toString','257574NkUFRQ','(((.+)+)+)+$','search','279399JyJRjO','3DYalJC','apply','1670200JnPtQD'];a82c=function(){return i;};return a82c();}function a82d(a,b){var c=a82c();return a82d=function(d,e){d=d-0x174;var f=c[d];return f;},a82d(a,b);}a82a();export{};
|