@maka/maka-cli 4.5.1 → 4.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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/actions/actions.test.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x1eb;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(0x1fb))/0x1*(parseInt(h(0x1f0))/0x2)+-parseInt(h(0x1fd))/0x3*(parseInt(h(0x1f6))/0x4)+-parseInt(h(0x1f8))/0x5+parseInt(h(0x204))/0x6+parseInt(h(0x1f7))/0x7+-parseInt(h(0x1ed))/0x8*(-parseInt(h(0x200))/0x9)+-parseInt(h(0x1f3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xa9330));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x1eb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x1f2)]()['search'](j(0x202))['toString']()['constructor'](a70a)[j(0x1f1)](j(0x202));});function a70c(){const n=['90432jBgHHB','apply','injectAtEndOfFile','273896kiAYFf','getProjectConfig','server/publish.','2zowvNf','search','toString','16800940jwiIfO','publish','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','212268rbNeum','8022728EKsxOI','1791470okNJlq','fsi','engines','964255pxHFHN','withValue','18WJJdEF','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','resourceName','243CZTjKq','rewriteDestinationPathForEngine','(((.+)+)+)+$','tsx'];a70c=function(){return n;};return a70c();}a70a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a70k(0x1f4),'aliases':['p'],'usage':a70k(0x1f5),'shortDesc':a70k(0x1fe),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a70k,c=this[l(0x1f9)][l(0x1ee)]();this['fsi'][l(0x1fc)](c,async()=>{const m=l,d={'name':b[m(0x1ff)],'collection':paramCase(b[m(0x1ff)]),'noRename':!![]};let e='js';c[m(0x1fa)]['js']===m(0x203)&&(e='ts');const f=this['fsi'][m(0x201)]({'pathParts':[m(0x1ef)+c[m(0x1fa)]['js']]}),g=this[m(0x1f9)]['templateContent']({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1f9)][m(0x1ec)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a71c(){const H=['34QuSTjC','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>\x20[url]\x20[--private]','search','342251Uqasgd','maka\x20g:route\x20lists/listIndex\x20lists','apply','60715DeDFcK','toString','(((.+)+)+)+$','root','1451079ozHxFC','length','imports','maka\x20g:route\x20todosEdit\x20todos/:id/edit','cwd','config','injectIntoFile','react','templateName','layout','\x0a\x09\x09','join','Scaffolding\x20for\x20a\x20Route.','indexOf','filter','create','220521zhNkJz','lib','MasterLayout','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','routes.js','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','route/route.js','maka\x20g:route\x20todosIndex\x20todos','map','691200SXhoTO','only','injectAfterLineNumber','client','36148970orrYuy','includes','private','160143grtARR','ssr','templateContent','startup','const\x20publicRoutes\x20=\x20(<>','error','readFileLines','getProjectConfig','withValue','pathFromApp','const\x20privateRoutes\x20=\x20(<>','66ANmyJb','276XpQocv','fsi','<Router','engines','16RbshOs','page','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','features','findGenerator'];a71c=function(){return H;};return a71c();}const a71y=a71d;(function(a,b){const v=a71d,c=a();while(!![]){try{const d=-parseInt(v(0x73))/0x1+parseInt(v(0x6f))/0x2*(-parseInt(v(0x9a))/0x3)+-parseInt(v(0x66))/0x4*(parseInt(v(0x76))/0x5)+parseInt(v(0x65))/0x6*(-parseInt(v(0x8a))/0x7)+-parseInt(v(0x6a))/0x8*(parseInt(v(0x7a))/0x9)+-parseInt(v(0x93))/0xa+parseInt(v(0x97))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x70710));function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x64;let f=c[d];return f;},a71d(a,b);}const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a71d;if(c){const e=c[w(0x75)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const x=a71d;return a71a['toString']()[x(0x72)](x(0x78))[x(0x77)]()['constructor'](a71a)[x(0x72)](x(0x78));});a71a();import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a71f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a71y(0x89)]({'name':'route','aliases':aliases,'validOpts':[a71y(0x99),'layout',a71y(0x94),a71y(0x7e),a71y(0x7f),a71y(0x79),'withHook'],'usage':a71y(0x71),'shortDesc':a71y(0x86),'examples':[a71y(0x91),a71y(0x7d),a71y(0x8d),a71y(0x74)]},function(a,b){const z=a71y;try{const c=this[z(0x67)][z(0xa1)]();this[z(0x67)][z(0xa2)](c,async()=>{const A=z,d=b[A(0x99)]??![];let f=paramCase(a[0x0]),g='/'+f;a['length']>0x1&&(g='/'+a[A(0x88)](function(l){return l!=='/';})[A(0x85)]('/')['toLowerCase']());f=camelCase(f);b['layout']&&(b[A(0x83)]=camelCase(b[A(0x83)]));const h=a71e[A(0x85)]('/imports/ui/pages',f,f),i={'name':f,'fileCase':paramCase(f),'camelCaseName':camelCase(f),'url':g,'layout':b[A(0x83)]||A(0x8c),'templatePath':h,'templateName':pascalCase(f),'client':c[A(0x69)][A(0x96)],'newForm':![],'withTranslations':c[A(0x6d)]['withTranslations']};d&&(i[A(0x83)]='PrivateLayout');if(!b[A(0x79)]){const l=a71f[A(0x6e)](A(0x6b));l&&await l['invoke'](a,b);}let j,k;if(c[A(0x69)][A(0x96)]===A(0x81)){if(c[A(0x69)][A(0x9b)]==='true'){const p=this[A(0x67)][A(0xa3)]({'pathParts':[A(0x7c),A(0x9d),A(0x8b),A(0x8e)]});j=this[A(0x67)][A(0x70)]({'pathParts':[p],'config':c});}else{const q=this[A(0x67)]['pathFromApp']({'pathParts':['imports',A(0x9d),A(0x96),A(0x8e)]});j=this[A(0x67)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c});}const m=this[A(0x67)][A(0xa0)](j)[A(0x92)]((r,s)=>{const B=A;return r[B(0x98)](B(0x8f))?s+0x1:null;})[A(0x88)](r=>r!==null);let n=this['fsi'][A(0xa0)](j)['map']((r,s)=>{const C=A;return r[C(0x98)]('const\x20publicRoutes\x20=\x20(<>')?s+0x1:null;})['filter'](r=>r!==null),o=this[A(0x67)][A(0xa0)](j)[A(0x92)]((r,s)=>{const D=A;return r[D(0x98)]('const\x20privateRoutes\x20=\x20(<>')?s+0x1:null;})[A(0x88)](r=>r!==null);n[A(0x7b)]>0x0&&o[A(0x7b)]>0x0&&(i['newForm']=!![]);k=this[A(0x67)][A(0x9c)]({'srcPath':A(0x90),'framework':A(0x81),'context':i,'config':c});if(n[A(0x7b)]>0x0||o[A(0x7b)]>0x0){this[A(0x67)]['injectAfterLineNumber']({'filePath':j,'content':k,'lineNumber':m[0x0]});if(d&&o[A(0x7b)]>0x0)o=this['fsi']['readFileLines'](j)[A(0x92)]((r,s)=>{const E=A;return r[E(0x98)](E(0x64))?s+0x1:null;})['filter'](r=>r!==null),this['fsi']['injectAfterLineNumber']({'filePath':j,'content':'\x09{'+i[A(0x82)]+'}','lineNumber':o[0x0]});else n[A(0x7b)]>0x0?(n=this[A(0x67)]['readFileLines'](j)[A(0x92)]((r,s)=>{const F=A;return r[F(0x98)](F(0x9e))?s+0x1:null;})[A(0x88)](r=>r!==null),this[A(0x67)][A(0x95)]({'filePath':j,'content':'\x09{'+i[A(0x82)]+'}','lineNumber':n[0x0]})):Log['warn'](A(0x6c)+j);}else{const r=this[A(0x67)][A(0xa0)](j)[A(0x92)](u=>{const G=A;return u[G(0x98)]('\x22*\x22');}),s=r[A(0x87)](!![])>-0x1,t=s?'<Route':'</Router>';this[A(0x67)][A(0x80)]({'filePath':j,'content':A(0x84)+k+'\x0a\x09\x09','begin':A(0x68),'end':t});}}else{if(c[A(0x69)][A(0x96)]==='vanilla'){const u=this[A(0x67)]['pathFromApp']({'pathParts':[A(0x7c),A(0x9d),'client',A(0x8e)]});j=this[A(0x67)]['rewriteDestinationPathForEngine']({'pathParts':[u],'config':c}),k=this[A(0x67)]['templateContent']({'srcPath':A(0x90),'context':i}),this[A(0x67)]['injectAtEndOfFile']({'filePath':j,'content':'\x0a'+k});}}});}catch(d){Log[z(0x9f)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72l=a72d;(function(a,b){const j=a72d,c=a();while(!![]){try{const d=-parseInt(j(0xcd))/0x1+-parseInt(j(0xd2))/0x2+parseInt(j(0xbd))/0x3+-parseInt(j(0xd4))/0x4*(-parseInt(j(0xcc))/0x5)+-parseInt(j(0xba))/0x6*(parseInt(j(0xce))/0x7)+parseInt(j(0xd5))/0x8*(-parseInt(j(0xc0))/0x9)+parseInt(j(0xc8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x25ad3));function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0xb6;let f=c[d];return f;},a72d(a,b);}function a72c(){const o=['search','engines','services','maka\x20{generate,\x20g}:{service}\x20[service-type]','withValue','pathFromApp','logger','786042oOExhM','type','lib','913143jFryba','(((.+)+)+)+$','Installing\x20winston','9ESBUbj','resourceName','svc','toString','fsi','installNpmPackage','winston\x20setimmediate','constructor','933060pwERfG','tsx','create','getProjectConfig','360vjknLA','37510IBtYNs','7LICvWD','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','maka\x20g:svc\x20logger','winston','316796meICIZ','service/logger/logger.js','13084JqOapo','1215688tqVrsf','checkNpmPackage','startup'];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(0xc3)]()[k(0xd8)](k(0xbe))[k(0xc3)]()[k(0xc7)](a72a)[k(0xd8)]('(((.+)+)+)+$');});a72a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a72l(0xca)]({'name':'service','aliases':[a72l(0xc2)],'usage':a72l(0xb6),'shortDesc':a72l(0xcf),'validOpts':[a72l(0xbb)],'validArgs':[a72l(0xb9)],'maxArgLength':0x1,'minArgLength':0x1,'examples':[a72l(0xd0)]},async function(a,b){const m=a72l;try{const c=this[m(0xc4)][m(0xcb)]();this[m(0xc4)][m(0xb7)](c,async()=>{const n=m,d=this[n(0xc4)][n(0xb8)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0xc1)]),'fileName':f,'camelCase':camelCase(b[n(0xc1)]),'type':a[0x0],'engine':c[n(0xd9)]['js'],'noRename':!![]};let h='js';c[n(0xd9)]['js']===n(0xc9)&&(h='ts');if(a[0x0]==='logger'){!this['fsi'][n(0xd6)](n(0xd1))&&await this[n(0xc4)][n(0xc5)](n(0xc6),{'cwd':d,'msg':n(0xbf)});const i=this[n(0xc4)][n(0xb8)]({'pathParts':['imports',n(0xd7),n(0xbc),n(0xda),f+'.'+h]});this[n(0xc4)]['template']({'srcPath':n(0xd3),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a73d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a73d,c=a();while(!![]){try{var d=parseInt(f(0x17a))/0x1*(parseInt(f(0x184))/0x2)+parseInt(f(0x17d))/0x3+-parseInt(f(0x183))/0x4*(-parseInt(f(0x188))/0x5)+parseInt(f(0x186))/0x6*(-parseInt(f(0x185))/0x7)+parseInt(f(0x17e))/0x8+parseInt(f(0x17f))/0x9+-parseInt(f(0x181))/0xa*(parseInt(f(0x180))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x458f7));function a73c(){var i=['15KWaocv','apply','251qwUkAE','search','toString','1359558THNprE','3750688KuelWc','3068802samNzf','4279aeuZQz','26570xBMJPj','(((.+)+)+)+$','370632ZcYahs','2238MNrkXl','3523457mcOeuO','6FOXBdc','constructor'];a73c=function(){return i;};return a73c();}var a73b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a73d;if(c){var e=c[g(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){var h=a73d;return a73a[h(0x17c)]()['search']('(((.+)+)+)+$')[h(0x17c)]()[h(0x187)](a73a)[h(0x17b)](h(0x182));});function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0x17a;var f=c[d];return f;},a73d(a,b);}a73a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a74c(){const n=['template','getConfigPath','withValue','8260479bUAmDh','16lFjvem','fsi','error','service','Generate\x20a\x20new\x20openssl\x20config\x20file','maka\x20g:sslconfig\x20--env\x20dev','88EYeGMI','getGlobalConfig','sslconfig','toString','search','maka\x20{generate,\x20g}:sslconfig','14742rvvMQn','getProjectConfig','1090920RbUUtK','env','create','166908wvYVcG','208629FOxmiF','(((.+)+)+)+$','openssl.conf','constructor','1758895EWjbNK','213433KNivNK'];a74c=function(){return n;};return a74c();}const a74k=a74d;(function(a,b){const i=a74d,c=a();while(!![]){try{const d=parseInt(i(0x141))/0x1+-parseInt(i(0x13b))/0x2+parseInt(i(0x13c))/0x3*(-parseInt(i(0x146))/0x4)+-parseInt(i(0x140))/0x5+-parseInt(i(0x154))/0x6+parseInt(i(0x152))/0x7*(-parseInt(i(0x14c))/0x8)+parseInt(i(0x145))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x33f89));const a74b=(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;};}()),a74a=a74b(this,function(){const j=a74d;return a74a[j(0x14f)]()['search']('(((.+)+)+)+$')[j(0x14f)]()[j(0x13f)](a74a)[j(0x150)](j(0x13d));});a74a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x13a;let f=c[d];return f;},a74d(a,b);}import a74e from'path';Generator[a74k(0x13a)]({'name':a74k(0x14e),'usage':a74k(0x151),'shortDesc':a74k(0x14a),'noResource':!![],'requiredOpts':[a74k(0x155)],'examples':[a74k(0x14b)],'validOpts':['env']},async function(a,b){const l=a74k;try{const c=await this[l(0x147)][l(0x153)](),d=await this['fsi'][l(0x14d)](),f=this['fsi'][l(0x143)](b[l(0x155)]),g=a74e['join'](f,'_keys',l(0x13e));await this[l(0x147)][l(0x144)](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this[m(0x147)][m(0x142)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':m(0x149),'context':h,'config':c});});}catch(h){Log[l(0x148)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a75A=a75d;(function(a,b){const x=a75d,c=a();while(!![]){try{const d=-parseInt(x(0x12e))/0x1+-parseInt(x(0x142))/0x2*(-parseInt(x(0x14e))/0x3)+parseInt(x(0x144))/0x4+-parseInt(x(0x130))/0x5*(-parseInt(x(0x148))/0x6)+-parseInt(x(0x14f))/0x7*(-parseInt(x(0x122))/0x8)+-parseInt(x(0x10d))/0x9*(parseInt(x(0x137))/0xa)+parseInt(x(0x11b))/0xb*(-parseInt(x(0x116))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xb63a4));function a75c(){const D=['locales','injectAtBeginningOfFile','installNpmPackage','73426ogezRO','import\x20\x27../lib/services/translations/i18n\x27;\x0a','3779780VkIYnp','readFileSync','apply','Generate\x20a\x20new\x20locale\x20translation','12TuaVvR','translation','lang','import\x20\x27../lib/services/translations/i18n\x27;','index.','setProjectConfig','60rGZuds','7GfREDz','rewriteDestinationPathForEngine','default\x20as\x20','3590361JMyPAX','template','translations','imports','grep','withValue','toString','export\x20{\x20default\x20as\x20','exit','8148DlvyTP','error','engines','lib','injectAtEndOfFile','11033kThWnK','(((.+)+)+)+$','.js','warn','findAppDirectory','getProjectConfig','i18n/i18n.js','1761128ZAFVmo','getGlobalConfig','server','fsi','maka\x20g:translation\x20--lang=fr','index.js','pathFromApp','startup','service','root','i18n.js','ssr','113234XzcAEk','maka\x20g:translation\x20--lang=de','100645ljfPKG','Locale\x20already\x20exported:\x20','appName','maka\x20{generate,\x20g}:translation\x20--lang=<language>','true','constructor','search','10neZYlM','services','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','features.withTranslations','Locale\x20already\x20defined:\x20','isFile','create','i18n'];a75c=function(){return D;};return a75c();}const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a75d;if(c){const e=c[y(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const z=a75d;return a75a[z(0x113)]()[z(0x136)](z(0x11c))[z(0x113)]()[z(0x135)](a75a)[z(0x136)](z(0x11c));});a75a();function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x10d;let f=c[d];return f;},a75d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a75e from'fs';Generator[a75A(0x13d)]({'name':a75A(0x149),'usage':a75A(0x133),'aliases':[a75A(0x13e)],'shortDesc':a75A(0x147),'noResource':!![],'examples':['maka\x20g:translation\x20--lang=en\x20(default)',a75A(0x126),a75A(0x12f)],'validOpts':[a75A(0x14a)]},function(a,b){const B=a75A;try{const c=this[B(0x125)][B(0x120)](),d=this[B(0x125)][B(0x123)](),f=this['fsi'][B(0x11f)]();this[B(0x125)][B(0x112)](c,()=>{const C=B;try{!b['lang']&&(b['lang']='en');!b[C(0x12b)]&&!this[C(0x125)]['checkNpmPackage']('i18next')&&(Log['warn'](C(0x139)),this['fsi'][C(0x141)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0x125)][C(0x14d)](C(0x13a),!![]));const g=this[C(0x125)][C(0x128)]({'pathParts':[C(0x110),C(0x129),'client',C(0x127)]}),h=this[C(0x125)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0x125)][C(0x111)](a75e[C(0x145)](h)[C(0x113)](),C(0x14b))[0x0]&&!![];if(c[C(0x118)][C(0x12d)]===C(0x134)){!i&&this[C(0x125)][C(0x140)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[C(0x125)][C(0x128)]({'pathParts':[C(0x110),C(0x129),C(0x124),C(0x127)]}),u=this[C(0x125)][C(0x150)]({'pathParts':[t],'config':c}),v=this[C(0x125)]['grep'](a75e['readFileSync'](u)['toString'](),C(0x14b))[0x0]&&!![];!v&&this[C(0x125)]['injectAtBeginningOfFile']({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0x125)][C(0x140)]({'filePath':h,'content':C(0x143)});const j={'app':d[C(0x132)],'config':c},k=this[C(0x125)][C(0x128)]({'pathParts':['imports',C(0x129),C(0x119),C(0x138),C(0x10f),C(0x12c)]}),l=this[C(0x125)][C(0x13c)](this[C(0x125)][C(0x150)]({'pathParts':[k],'config':c}));!l&&this[C(0x125)]['template']({'srcPath':C(0x121),'destPath':k,'framework':C(0x12a),'context':j,'config':c});const m=this[C(0x125)]['pathFromApp']({'pathParts':[C(0x110),C(0x129),C(0x119),C(0x138),C(0x10f),C(0x13f),b['lang']+C(0x11d)]}),n=this[C(0x125)][C(0x150)]({'pathParts':[m],'config':c}),o=this[C(0x125)]['isFile'](n);!o?this[C(0x125)][C(0x10e)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0x12a),'context':j,'config':c}):Log['warn'](C(0x13b)+n);const p=this['fsi'][C(0x128)]({'pathParts':[C(0x110),C(0x129),'lib',C(0x138),C(0x10f),'locales',C(0x14c)+c['engines']['js']]}),q=this[C(0x125)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this['fsi'][C(0x13c)](q);!r&&this[C(0x125)]['template']({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x125)]['grep'](a75e[C(0x145)](p)[C(0x113)](),C(0x151)+b[C(0x14a)])[0x0]&&!![];!s?this[C(0x125)][C(0x11a)]({'filePath':p,'content':C(0x114)+b[C(0x14a)]+'\x20}\x20from\x20\x27./'+b[C(0x14a)]+'\x27;'}):Log[C(0x11e)](C(0x131)+p);}catch(w){Log[C(0x117)](w),process[C(0x115)](0x1);}});}catch(g){Log['error'](g),process[B(0x115)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-modules --no-warnings --experimental-json-modules
|
|
2
|
-
const a76m=a76d;(function(a,b){const j=a76d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
2
|
+
const a76m=a76d;(function(a,b){const j=a76d,c=a();while(!![]){try{const d=-parseInt(j(0x17b))/0x1*(parseInt(j(0x192))/0x2)+parseInt(j(0x18d))/0x3*(parseInt(j(0x179))/0x4)+parseInt(j(0x185))/0x5*(-parseInt(j(0x18c))/0x6)+-parseInt(j(0x182))/0x7+-parseInt(j(0x183))/0x8*(-parseInt(j(0x17e))/0x9)+-parseInt(j(0x17d))/0xa+parseInt(j(0x188))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0xec2a5));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a76d;if(c){const e=c[k(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const l=a76d;return a76a[l(0x190)]()[l(0x189)](l(0x18f))['toString']()[l(0x18a)](a76a)[l(0x189)](l(0x18f));});a76a();import a76e from'minimist';import a76f from'os';import a76g from'path';function a76c(){const n=['20BDsPws','stringify','run','29414803mShhYt','search','constructor','floor','571134iXwmjI','90PLmnzo','apply','(((.+)+)+)+$','toString','camelizeKeys','10RidaCG','BROWSERSLIST_IGNORE_OLD_DATA','70928ifXScP','--max-old-space-size=','108268qyqxqI','slice','9578070XXEFiJ','142362zaRXqh','totalmem','dirname','MAKA_COMMAND_PATH','4615373RKfsIU','152EBiVcT','env'];a76c=function(){return n;};return a76c();}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(0x180)](__filename);function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x178;let f=c[d];return f;},a76d(a,b);}global[a76m(0x181)]=__dirname;const total_memory=a76f[a76m(0x17f)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a76m(0x18b)](total_mem_in_mb),process[a76m(0x184)]['TOOL_NODE_FLAGS']=a76m(0x17a)+total_mem_in_mb,process[a76m(0x184)][a76m(0x178)]='1';const argv=a76e(process['argv'][a76m(0x17c)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a76m(0x186)](argv));delete deepCopyArgv['_'];const opts=a76h[a76m(0x191)](deepCopyArgv);a76i[a76m(0x187)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a77k=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d
|
|
1
|
+
const a77k=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(0xc6))/0x1+parseInt(h(0xb4))/0x2*(-parseInt(h(0xaf))/0x3)+-parseInt(h(0x96))/0x4+-parseInt(h(0xbf))/0x5+parseInt(h(0xb0))/0x6*(-parseInt(h(0x9d))/0x7)+parseInt(h(0xa5))/0x8+parseInt(h(0x92))/0x9*(parseInt(h(0xc3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x248c3));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a77d;if(c){const e=c[i(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const j=a77d;return a77a[j(0xb9)]()[j(0xc5)]('(((.+)+)+)+$')[j(0xb9)]()['constructor'](a77a)[j(0xc5)](j(0x9f));});function a77c(){const y=['length','examples','1056250JMtIwv','fsi','.meteor','name','50GRGptf','docker','search','202466CWJgvg','Invalid\x20argument:\x20','1030626BVLmIw','match','validateMakaProject','aliases','1007668mVtgUp','usage','win32','error','parent','root','validateParams','930643mcrjti','includes','(((.+)+)+)+$','No\x20description\x20provided.','concat','join','forEach','resourceName','317688VovrJG','config','keys','Missing\x20required\x20options\x20','validateMeteorInstall','No\x20usage\x20provided.','apply','existsSync','options','shortDesc','51699jPwkRz','6hppTrg','description','homedir','findProjectDirectory','8xDBdlu','push','NIE','Invalid\x20options:\x20','None','toString','AppData','Missing\x20required\x20option:\x20','help'];a77c=function(){return y;};return a77c();}a77a();import a77e from'path';import a77f from'os';import a77g from'fs';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x91;let f=c[d];return f;},a77d(a,b);}const homeDir=a77f[a77k(0xb2)]();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{['docker'];['fsi'];[a77k(0xad)];[a77k(0xc2)];['parent'];['_handler'];constructor(){const l=a77k;this[l(0xc4)]=new Docker(),this['fsi']=new FSI();}[a77k(0x93)](a){const m=a77k,b=[this[m(0xc2)]][m(0xa1)](this['options'][m(0x95)]||[]);return this[m(0x9a)]&&b[m(0xb5)](this['parent']),b['includes'](a);}[a77k(0x94)](){const n=a77k,a=this[n(0xc0)][n(0xb3)]();return a!==![]?!![]:![];}[a77k(0xa9)](){const o=a77k;let a=a77e[o(0xa2)](homeDir,'.meteor');const b=process['platform']===o(0x98);if(b){a=a77e[o(0xa2)](homeDir,o(0xba),'Local',o(0xc1));if(!a77g[o(0xac)](a))return![];}else{if(!a77g[o(0xac)](a))return![];}return!![];}[a77k(0x9c)](a,b,c){const p=a77k,{requiredOpts:requiredOpts=[],validArgs:d}=c;let {validOpts:validOpts=[]}=c;const e=Object[p(0xa7)](b);d?.[p(0xbd)]>0x0&&a['forEach'](f=>{const q=p;if(!d[q(0x9e)](f)){Log['error'](q(0x91)+f);throw new UsageError();}});if(requiredOpts?.['length']>0x0){if(e[p(0xbd)]===0x0){Log['error'](p(0xa8)+requiredOpts[p(0xa2)](',\x20'));throw new UsageError();}requiredOpts[p(0xa3)](f=>{const r=p;if(!e[r(0x9e)](f)){Log[r(0x99)](r(0xbb)+f);throw new UsageError();}});}validOpts=validOpts[p(0xa1)](requiredOpts),validOpts?.[p(0xbd)]>0x0&&(validOpts[p(0xb5)](p(0xbc)),validOpts['push'](p(0xa4)),validOpts[p(0xb5)]('dir'),validOpts[p(0xb5)]('cwd'),validOpts[p(0xb5)](p(0x9b)),validOpts['push'](p(0xa6)),e[p(0xa3)](f=>{const s=p;if(!validOpts['includes'](f)){Log[s(0x99)](s(0xb7)+f);throw new UsageError();}}));}[a77k(0xb1)](){const t=a77k;return this['options']['description']||this[t(0xad)][t(0xae)]||t(0xa0);}[a77k(0xae)](){const u=a77k;return this['options']['shortDesc']||u(0xb6);}[a77k(0x97)](){const v=a77k;return this['options'][v(0x97)]||v(0xaa);}[a77k(0xbe)](){const w=a77k;return this['options'][w(0xbe)]||[];}[a77k(0x95)](){const x=a77k;return this[x(0xad)][x(0x95)]||x(0xb8);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a78h=a78d;(function(a,b){const f=a78d,c=a();while(!![]){try{const d=-parseInt(f(0xc8))/0x1*(-parseInt(f(0xbe))/0x2)+-parseInt(f(0xcc))/0x3+parseInt(f(0xc1))/0x4+parseInt(f(0xc6))/0x5+parseInt(f(0xcd))/0x6+parseInt(f(0xc3))/0x7+parseInt(f(0xc4))/0x8*(-parseInt(f(0xc5))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0xe0f7d));function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0xbd;let f=c[d];return f;},a78d(a,b);}const a78b=(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;};}()),a78a=a78b(this,function(){const g=a78d;return a78a[g(0xbd)]()[g(0xc0)](g(0xc7))[g(0xbd)]()[g(0xc9)](a78a)['search']('(((.+)+)+)+$');});a78a();function a78c(){const l=['answer','ask','1607214oqEQeo','1711212ZaRpfk','prompt','toString','1187360YqxrjK','input','search','5550112jmOSEj','confirm','688191FjSCXu','753608tubzdj','126QTUUBH','2056490sCBCey','(((.+)+)+)+$','1QIzMkp','constructor'];a78c=function(){return l;};return a78c();}import a78e from'inquirer';export class Actions{static async[a78h(0xcb)](a,b){const i=a78h,{answer:c}=await a78e['prompt']({'type':b?'password':i(0xbf),'name':i(0xca),'message':a});return c;}static async['confirm'](a,b=![]){const j=a78h,{answer:c}=await a78e[j(0xce)]({'type':j(0xc2),'name':j(0xca),'message':a,'default':b});return c;}static async['options'](a){const k=a78h,b=await a78e[k(0xce)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a79c(){const j=['9tqXPgV','log','toString','786924NqZBzH','9awHQWp','25cyDWye','apply','ask','1184121BzSAov','893858oAgjxR','(((.+)+)+)+$','11WlOeii','10583240ejxSuC','Password:\x20','search','1520351dVJYLY','7357458tKFJEG','1312572CyQAfB','8kDFwgl'];a79c=function(){return j;};return a79c();}(function(a,b){const f=a79d,c=a();while(!![]){try{const d=-parseInt(f(0x1a4))/0x1+-parseInt(f(0x1a5))/0x2*(-parseInt(f(0x1a0))/0x3)+parseInt(f(0x19f))/0x4*(parseInt(f(0x1a1))/0x5)+-parseInt(f(0x199))/0x6+-parseInt(f(0x198))/0x7*(parseInt(f(0x19b))/0x8)+-parseInt(f(0x19c))/0x9*(-parseInt(f(0x195))/0xa)+parseInt(f(0x194))/0xb*(parseInt(f(0x19a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xd314e));const a79b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a79d;if(c){const e=c[g(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a79a=a79b(this,function(){const h=a79d;return a79a[h(0x19e)]()[h(0x197)](h(0x193))[h(0x19e)]()['constructor'](a79a)[h(0x197)](h(0x193));});function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x193;let f=c[d];return f;},a79d(a,b);}a79a();import a79e from'chai';const {expect}=a79e;import{describe,it}from'mocha';import{Actions}from'./actions.class.js';describe('Actions\x20Test',function(){it('works',async function(a){const i=a79d,b=await Actions[i(0x1a3)](i(0x196),!![]);console[i(0x19d)](b),a();});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a80s=a80d;(function(a,b){const p=a80d,c=a();while(!![]){try{const d=-parseInt(p(
|
|
1
|
+
const a80s=a80d;(function(a,b){const p=a80d,c=a();while(!![]){try{const d=-parseInt(p(0x133))/0x1*(-parseInt(p(0x17f))/0x2)+parseInt(p(0x16c))/0x3+parseInt(p(0x127))/0x4*(parseInt(p(0x170))/0x5)+-parseInt(p(0x156))/0x6+parseInt(p(0x17d))/0x7*(parseInt(p(0x146))/0x8)+-parseInt(p(0x14e))/0x9+-parseInt(p(0x17b))/0xa*(-parseInt(p(0x120))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0x42e1a));function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x10c;let f=c[d];return f;},a80d(a,b);}const a80b=(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;};}()),a80a=a80b(this,function(){const q=a80d;return a80a[q(0x148)]()[q(0x169)](q(0x130))['toString']()[q(0x178)](a80a)[q(0x169)](q(0x130));});a80a();import a80e from'fs';import a80f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a80c(){const Q=['writeFileSync','readFileSync','ec2createSG','Invalid\x20choice','ec2describeInstances','config','name','publicIp','split','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','$metadata','\x20ENV:\x20','httpStatusCode','Key\x20Name:\x20[','CidrBlock','Web\x20App','log','instance','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','\x20INSTANCE_ID:\x20','Created:\x20','suggestion','22WhyytR','type','KeyName','0.0.0.0/0','send','chmod\x20400\x20','userData','1065796yMDmMM','\x20PUB_IP:\x20','sgIds','_keys','Value','privateIp','\x20VPCID:\x20','ID:\x20','error','(((.+)+)+)+$','terminated','length','101314tYutWe','.pem.txt','chooseInstance','ec2describeKeys','file://','ignore','maka-cli','Instances','join','status','Please\x20choose\x20a\x20VPC:\x20[0]\x20','success','minCount','ingressRule','GroupId','\x20PRIV_IP:\x20','isFile','imageId','tags','5328bOebxD','exit','toString','fsi','push','Description:','ec2create','Reservations','4731957MtXRHT','No\x20instances\x20found','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','parse','ask','ssh.json','UserData','Error\x20saving\x20pem\x20file,\x20aborting','2996934vYuKrg','getProjectConfig','\x20STATUS:\x20','\x20CIDR:\x20','VpcId','environment','maxCount','pem','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','KeyMaterial','env','tag:created-by','deleteSecurityGroup','GroupName','instanceId','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','key','stringify','forEach','search','description','vpcId','89877hAVjcl','createKeyPair','chooseVPC','getSecurityGroups','5vNArkq','Name','Instance\x20rebooted!','**\x20Available\x20\x20VPCs\x20**','ec2terminateInstance','getConfigPath','find','createKeyPairEC2Key','constructor','notice','ecrCreateRepository','866920kamjgK','\x20NAME:\x20','5523FOdifV','subnet','6PPOFxW'];a80c=function(){return Q;};return a80c();}import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';const client=new EC2Client({}),ecrClient=new ECRClient({});export class AWS{['fsi'];constructor(){const r=a80d;this[r(0x149)]=new FSI();}async[a80s(0x17a)](a){const t=a80s;try{const b={'repositoryName':a[t(0x110)]},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x124)](c);return d;}catch(f){Log[t(0x12f)](f);}}async[a80s(0x14c)](a){const u=a80s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[u(0x144)],'InstanceType':a[u(0x121)],'KeyName':a[u(0x166)],'MaxCount':a[u(0x15c)],'MinCount':a[u(0x13f)],'SecurityGroupIds':a[u(0x129)][u(0x112)](','),'SubnetId':a[u(0x17e)],'TagSpecifications':[{'ResourceType':u(0x11b),'Tags':a[u(0x145)]}]};a['userData']&&(b[u(0x154)]=u(0x137)+a[u(0x126)]);const c=new RunInstancesCommand(b),d=await client[u(0x124)](c);return d;}catch(f){Log[u(0x12f)](f);}}async[a80s(0x174)](a){const v=a80s;try{const b={'InstanceIds':[a[v(0x164)]]},c=new TerminateInstancesCommand(b),d=await client[v(0x124)](c);return d;}catch(f){return Log['error'](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const w=a80s,c=this[w(0x149)][w(0x175)](b),d=a80f['join'](c,w(0x12a),a+w(0x134));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[w(0x124)](g),i=h[w(0x15f)];if(i){await this[w(0x149)]['createFile']({'filePath':d,'data':i}),execSync(w(0x125)+d,{'stdio':w(0x138)});const j=this[w(0x149)][w(0x143)](d);if(j)return Log[w(0x13e)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(w(0x155));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[w(0x12f)](k),process['exit'](0x1);}}async[a80s(0x140)]({port:a,groupId:b}){const x=a80s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':x(0x123),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[x(0x179)]('Port\x20'+a+'\x20opened!'),await client[x(0x124)](d);}async[a80s(0x10c)](a){const y=a80s;try{a[y(0x16a)]===''&&(a[y(0x16a)]=await Actions[y(0x152)](y(0x14b))||y(0x119));const b={'Description':a[y(0x16a)],'GroupName':a[y(0x110)],'VpcId':a[y(0x16b)]},c=new CreateSecurityGroupCommand(b),d=await client[y(0x124)](c),{GroupId:f}=d;if(!d)throw new Error(y(0x165));f&&a['sgPorts']['forEach'](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success'](y(0x11e)+f+y(0x17c)+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async[a80s(0x136)](a){const z=a80s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw z(0x165);const {KeyPairs:g}=f;g?(g?.[z(0x168)]((h,i)=>{const A=z;h[A(0x122)]&&b[A(0x14a)]({'id':i,'name':h['KeyName']});}),b[z(0x132)]>0x0&&b[z(0x168)](h=>{const B=z;h[B(0x110)]===a?.[B(0x11f)]?Log[B(0x13e)](B(0x12e)+h['id']+'\x20NAME:\x20'+h[B(0x110)]):Log[B(0x179)](B(0x12e)+h['id']+B(0x17c)+h[B(0x110)]);})):Log[z(0x12f)](z(0x11c));}catch(h){Log['error'](h);}return b;}async['deleteKeyPair'](a){const C=a80s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[C(0x124)](c);}catch(d){Log[C(0x12f)](d),process['exit'](0x1);}}async[a80s(0x10e)](){const D=a80s,a=[];try{const b={'Filters':[{'Name':D(0x161),'Values':[D(0x139)]}]},c=new DescribeInstancesCommand(b),d=await client[D(0x124)](c);d[D(0x14d)]?.[D(0x168)]((f,g)=>{const E=D;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[E(0x13a)][0x0],n=m?.[E(0x176)](({Key:o})=>o===E(0x15b));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[E(0x171)],'name':l,'env':n?.[E(0x12b)]});}}),a[D(0x132)]>0x0?a[D(0x168)](f=>{const F=D,g=F(0x12e)+f['id']+F(0x17c)+f[F(0x110)]+F(0x115)+f[F(0x160)]+F(0x158)+f[F(0x13c)]+F(0x11d)+f[F(0x164)]+F(0x128)+f[F(0x111)]+F(0x142)+f[F(0x12c)];if(f['status']===F(0x131))Log[F(0x12f)](g);else f[F(0x13c)]==='running'?Log[F(0x13e)](g):Log[F(0x179)](g);}):Log[D(0x12f)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log['error'](f);}return a;}async['ec2rebootInstance'](a){const G=a80s;try{const b={'InstanceIds':[a[G(0x164)]]},c=new RebootInstancesCommand(b),d=await client[G(0x124)](c);return d[G(0x114)][G(0x116)]===0xc8&&Log[G(0x13e)](G(0x172)),d;}catch(f){Log['error'](f);}}async[a80s(0x16e)](){const H=a80s;let a='';Log[H(0x179)](H(0x173));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[H(0x168)]((g,h)=>{const I=H;g[I(0x15a)]&&g[I(0x118)]&&e['push']({'id':h,'vpcId':g[I(0x15a)],'cidr':g[I(0x118)]});});e[H(0x168)](function(g){const J=H;console[J(0x11a)](J(0x12e)+g['id']+J(0x12d)+g[J(0x16b)]+J(0x159)+g['cidr']);});const f=await Actions[H(0x152)](H(0x13d))||0x0;e[H(0x168)](function(g){const K=H;g['id']==f&&(a=g[K(0x16b)],Log[K(0x13e)](K(0x15e)+a+'\x0a'));});if(a==='')return Log[H(0x12f)](H(0x113)),'';return a;}async[a80s(0x135)](){const L=a80s,a=await this[L(0x10e)]();if(a['length']===0x0)return Log['error'](L(0x14f)),null;const b=await Actions[L(0x152)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[L(0x12f)](L(0x10d)),process[L(0x147)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a80s(0x16d)]({env:a}){const M=a80s,b=this[M(0x149)][M(0x157)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](M(0x117)+d+']\x20')||d,{filePath:g}=await this[M(0x177)]({'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=a80e[M(0x181)](a80f[M(0x13b)](M(0x10f),a,M(0x153)),'utf8'),j=JSON[M(0x151)](i);j[M(0x15d)]=a80f[M(0x13b)](M(0x12a),f+M(0x134)),a80e[M(0x180)](a80f[M(0x13b)]('config',a,M(0x153)),JSON[M(0x167)](j,null,0x2));}catch(k){Log['error'](k),Log[M(0x12f)](M(0x150));}}catch(l){Log[M(0x12f)](l),process[M(0x147)](0x1);}return{'keyName':f,'filePath':g};}async[a80s(0x16f)](a){const N=a80s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[N(0x124)](d),{SecurityGroups:f}=e;f&&f[N(0x168)](function(i,j){const O=N;i[O(0x163)]&&i[O(0x141)]&&b[O(0x14a)]({'id':j,'name':i[O(0x163)],'sgId':i['GroupId']});});let g='',h=0x0;return b[N(0x168)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a80s(0x162)](a){const P=a80s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[P(0x124)](c);}catch(d){Log['error'](d),process[P(0x147)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a81d,c=a();while(!![]){try{var d
|
|
1
|
+
function a81c(){var i=['search','toString','(((.+)+)+)+$','2129568MEonKs','4977450hoBGFN','132FKMQDW','537104zOKPOo','5688056VWcoGa','6001440IUaPpv','10674FMcZAC','1126979KPBTux','apply'];a81c=function(){return i;};return a81c();}(function(a,b){var f=a81d,c=a();while(!![]){try{var d=-parseInt(f(0x10c))/0x1+parseInt(f(0x10b))/0x2*(-parseInt(f(0x103))/0x3)+parseInt(f(0x102))/0x4+parseInt(f(0x10a))/0x5+-parseInt(f(0x109))/0x6+parseInt(f(0x104))/0x7+-parseInt(f(0x101))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xc7f24));var a81b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a81d;if(c){var e=c[g(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){var h=a81d;return a81a[h(0x107)]()[h(0x106)](h(0x108))[h(0x107)]()['constructor'](a81a)[h(0x106)](h(0x108));});function a81d(a,b){var c=a81c();return a81d=function(d,e){d=d-0x101;var f=c[d];return f;},a81d(a,b);}a81a();export{};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x74;let f=c[d];return f;},a83d(a,b);}const a83m=a83d;(function(a,b){const j=a83d,c=a();while(!![]){try{const d=-parseInt(j(0x7b))/0x1+-parseInt(j(0x83))/0x2+-parseInt(j(0x89))/0x3*(-parseInt(j(0x84))/0x4)+parseInt(j(0x8b))/0x5+parseInt(j(0x7c))/0x6+-parseInt(j(0x8a))/0x7+parseInt(j(0x74))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x3a871));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a83d;if(c){const e=c[k(0x87)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const l=a83d;return a83a[l(0x75)]()[l(0x88)]('(((.+)+)+)+$')[l(0x75)]()[l(0x76)](a83a)['search'](l(0x80));});a83a();function a83c(){const q=['search','159591OnZMdK','1847965WryxIN','1268030tDldTf','2094784dSpzAO','toString','constructor','tag','docker\x20','push','.dkr.ecr.','135510APZROS','1282446rlmoyn','.amazonaws.com','.amazonaws.com/','inherit','(((.+)+)+)+$','awsLogin','login','711892AVeNXK','20PClckT','join','error','apply'];a83c=function(){return q;};return a83c();}import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a83m(0x77)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a83m;try{const f=[n(0x77),a,b+n(0x7a)+c+n(0x7e)+d],g=n(0x78)+f['join']('\x20'),h=execSync(g,{'stdio':n(0x7f)})[n(0x75)]();return h;}catch(i){return Log[n(0x86)](i),'';}}static[a83m(0x81)]({awsAccountId:a,region:b}){const o=a83m;try{const c=[o(0x82),'--username','AWS','--password-stdin',a+'.dkr.ecr.'+b+o(0x7d)],d='docker\x20'+c['join']('\x20'),f=execSync(d,{'stdio':o(0x7f)})[o(0x75)]();return f;}catch(g){return Log[o(0x86)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a83m;try{const d=[p(0x79),a+p(0x7a)+b+p(0x7e)+c],f='docker\x20'+d[p(0x85)]('\x20'),g=execSync(f,{'stdio':p(0x7f)})['toString']();return g;}catch(h){return Log[p(0x86)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a84d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a84d,c=a();while(!![]){try{var d=-parseInt(f(0x179))/0x1+-parseInt(f(0x171))/0x2+parseInt(f(0x176))/0x3+-parseInt(f(0x17e))/0x4+parseInt(f(0x17d))/0x5*(-parseInt(f(0x175))/0x6)+-parseInt(f(0x177))/0x7*(-parseInt(f(0x172))/0x8)+parseInt(f(0x17c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x21e15));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x174)]()['search'](h(0x17a))[h(0x174)]()[h(0x178)](a84a)[h(0x173)](h(0x17a));});a84a();function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x171;var f=c[d];return f;},a84d(a,b);}function a84c(){var i=['726693CSKzbR','548387yyUEIs','constructor','36278IWjcWi','(((.+)+)+)+$','apply','704898BpaRCE','925925CqGYbe','252044SgKAKI','264658BDFWkr','24dGeXAG','search','toString','6IQSZBn'];a84c=function(){return i;};return a84c();}export{};
|