@maka/maka-cli 4.6.15 → 4.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/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/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kit.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.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 a112k=a112d;(function(a,b){const h=a112d,c=a();while(!![]){try{const d
|
|
1
|
+
function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a112d(a,b);}const a112k=a112d;(function(a,b){const h=a112d,c=a();while(!![]){try{const d=parseInt(h(0x1ec))/0x1*(parseInt(h(0x1e0))/0x2)+-parseInt(h(0x1eb))/0x3+parseInt(h(0x1e1))/0x4*(-parseInt(h(0x1e4))/0x5)+parseInt(h(0x1ee))/0x6+-parseInt(h(0x1ed))/0x7*(parseInt(h(0x1de))/0x8)+parseInt(h(0x1dd))/0x9+-parseInt(h(0x1e3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xe65f5));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a112d;if(c){const e=c[i(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const j=a112d;return a112a[j(0x1e2)]()[j(0x1db)]('(((.+)+)+)+$')[j(0x1e2)]()[j(0x1df)](a112a)[j(0x1db)](j(0x1e9));});a112a();import{paramCase}from'change-case';function a112c(){const m=['templateContent','search','server/publish.','12565404oRHexp','16uxjhVH','constructor','35254jtnhYN','172CVJmzW','toString','10618590JGZkPA','44765YMalwr','publish/publish.','resourceName','injectAtEndOfFile','apply','(((.+)+)+)+$','create','28803yIPQhh','36OGPHYU','724276IoxIbS','3457512klFPlz','fsi','engines'];a112c=function(){return m;};return a112c();}import{Generator}from'../generator.js';Generator[a112k(0x1ea)]({'name':'publish','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const c=this['fsi']['getProjectConfig']();this['fsi']['withValue'](c,async()=>{const l=a112d,d={'name':b[l(0x1e6)],'collection':paramCase(b[l(0x1e6)]),'noRename':!![]};let e='js';c[l(0x1d9)]['js']==='tsx'&&(e='ts');const f=this[l(0x1d8)]['rewriteDestinationPathForEngine']({'pathParts':[l(0x1dc)+c[l(0x1d9)]['js']]}),g=this[l(0x1d8)][l(0x1da)]({'srcPath':l(0x1e5)+e,'context':d,'config':c});this[l(0x1d8)][l(0x1e7)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d=parseInt(x(0xde))/0x1*(parseInt(x(0xb7))/0x2)+-parseInt(x(0xd1))/0x3+-parseInt(x(0xc0))/0x4*(parseInt(x(0xbd))/0x5)+-parseInt(x(0xb2))/0x6+parseInt(x(0xd3))/0x7+parseInt(x(0xad))/0x8+-parseInt(x(0xc5))/0x9*(-parseInt(x(0xaa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x37555));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a113d;if(c){const e=c[y(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const z=a113d;return a113a[z(0xa6)]()['search'](z(0xd6))[z(0xa6)]()[z(0xa4)](a113a)['search'](z(0xd6));});function a113c(){const J=['Valid\x20options\x20are:\x20','readFileLines','private','\x0a\x09\x09','imports','url','1EDsUhw','filter','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','error','fsi','</Router>','root','layouts','injectAfterLineNumber','rewriteDestinationPathForEngine','join','baseDir','dir','constructor','injectIntoFile','toString','layout','lib','withTranslations','1038090DwXbHv','<Route','includes','2319432YMkofB','client','\x22*\x22','length','warn','2668560IzcIep','pages','route/route.js','toLowerCase','apply','600702AAyIhM','invoke','pathFromApp','engines','const\x20publicRoutes\x20=\x20(<>','react','15pMdPJO','map','maka\x20g:route\x20todosIndex\x20todos','261012XUdece','page','indexOf','const\x20privateRoutes\x20=\x20(<>','hooks','36GBMjCC','components','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','withValue','withHook','cwd','/imports/ui/pages','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','maka\x20g:route\x20pages/about','templateName','startup','templateContent','1150800EZgKfE','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','1716736MtQtEg','resourceName','maka\x20g:route\x20todosEdit\x20todos/:id/edit','(((.+)+)+)+$','routes.js'];a113c=function(){return J;};return a113c();}a113a();import a113e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a113f from'../generators/maka.gen.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xa3;let f=c[d];return f;},a113d(a,b);}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':'route','aliases':aliases,'validOpts':[a113A(0xda),a113A(0xa7),'only',a113A(0xca),'config',a113A(0xe4),a113A(0xc9),a113A(0xdd),'baseDir'],'usage':a113A(0xe0),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a113A(0xbf),a113A(0xd5),a113A(0xd2),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a113A(0xcd)]},function(a,b){const B=a113A;try{const c=[B(0xc4),B(0xc6),B(0xb3),B(0xe5)];if(b[B(0xe9)]&&!c['includes'](b['baseDir'])){Log[B(0xe1)]('Invalid\x20directory\x20option\x20\x22'+b[B(0xe9)]+'\x22'),Log[B(0xe1)](B(0xd8)+c[B(0xe8)](',\x20'));throw new UsageError();}const d=this['fsi']['getProjectConfig']();this[B(0xe2)][B(0xc8)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(b[C(0xd4)]),h='/'+g;a['length']>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})['join']('/')[C(0xb5)]());g=camelCase(g);b['layout']&&(b['layout']=camelCase(b[C(0xa7)]));const i=b[C(0xe9)]?'/imports/ui/'+b[C(0xe9)]:C(0xcb),j=a113e[C(0xe8)](i,b[C(0xa3)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xa7)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[C(0xba)][C(0xae)],'newForm':![],'withTranslations':d['features'][C(0xa9)]};f&&(k[C(0xa7)]='PrivateLayout');if(!b['root']){const n=a113f['findGenerator'](C(0xc1));n&&await n[C(0xb8)](a,b);}let l,m;if(d[C(0xba)][C(0xae)]===C(0xbc)){if(d[C(0xba)]['ssr']==='true'){const r=this['fsi'][C(0xb9)]({'pathParts':[C(0xdc),C(0xcf),C(0xa8),C(0xd7)]});l=this['fsi'][C(0xe7)]({'pathParts':[r],'config':d});}else{const s=this[C(0xe2)][C(0xb9)]({'pathParts':[C(0xdc),C(0xcf),'client',C(0xd7)]});l=this[C(0xe2)][C(0xe7)]({'pathParts':[s],'config':d});}const o=this[C(0xe2)][C(0xd9)](l)[C(0xbe)]((t,u)=>{const D=C;return t[D(0xac)](D(0xcc))?u+0x1:null;})[C(0xdf)](t=>t!==null);let p=this[C(0xe2)]['readFileLines'](l)[C(0xbe)]((t,u)=>{const E=C;return t[E(0xac)](E(0xbb))?u+0x1:null;})[C(0xdf)](t=>t!==null),q=this['fsi']['readFileLines'](l)[C(0xbe)]((t,u)=>{const F=C;return t['includes'](F(0xc3))?u+0x1:null;})['filter'](t=>t!==null);p[C(0xb0)]>0x0&&q[C(0xb0)]>0x0&&(k['newForm']=!![]);m=this[C(0xe2)][C(0xd0)]({'srcPath':C(0xb4),'framework':C(0xbc),'context':k,'config':d});if(p['length']>0x0||q[C(0xb0)]>0x0){this[C(0xe2)][C(0xe6)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0xb0)]>0x0)q=this[C(0xe2)]['readFileLines'](l)['map']((t,u)=>{const G=C;return t[G(0xac)](G(0xc3))?u+0x1:null;})[C(0xdf)](t=>t!==null),this['fsi'][C(0xe6)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[C(0xe2)]['readFileLines'](l)['map']((t,u)=>{const H=C;return t[H(0xac)](H(0xbb))?u+0x1:null;})[C(0xdf)](t=>t!==null),this[C(0xe2)][C(0xe6)]({'filePath':l,'content':'\x09{'+k[C(0xce)]+'}','lineNumber':p[0x0]})):Log[C(0xb1)](C(0xc7)+l);}else{const t=this[C(0xe2)][C(0xd9)](l)[C(0xbe)](w=>{const I=C;return w['includes'](I(0xaf));}),u=t[C(0xc2)](!![])>-0x1,v=u?C(0xab):C(0xe3);this[C(0xe2)][C(0xa5)]({'filePath':l,'content':C(0xdb)+m+C(0xdb),'begin':'<Router','end':v});}}else{if(d[C(0xba)][C(0xae)]==='vanilla'){const w=this['fsi'][C(0xb9)]({'pathParts':[C(0xdc),'startup',C(0xae),C(0xd7)]});l=this['fsi'][C(0xe7)]({'pathParts':[w],'config':d}),m=this[C(0xe2)][C(0xd0)]({'srcPath':C(0xb4),'context':k}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0xe1)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-
|
|
1
|
+
function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x17e;let f=c[d];return f;},a114d(a,b);}const a114m=a114d;(function(a,b){const j=a114d,c=a();while(!![]){try{const d=parseInt(j(0x197))/0x1*(-parseInt(j(0x194))/0x2)+parseInt(j(0x1a2))/0x3*(parseInt(j(0x188))/0x4)+parseInt(j(0x198))/0x5+-parseInt(j(0x1a0))/0x6*(parseInt(j(0x195))/0x7)+-parseInt(j(0x18e))/0x8*(parseInt(j(0x186))/0x9)+parseInt(j(0x17f))/0xa*(-parseInt(j(0x19b))/0xb)+-parseInt(j(0x189))/0xc*(-parseInt(j(0x19d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x9a50b));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a114d;if(c){const e=c[k(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const l=a114d;return a114a[l(0x18a)]()['search'](l(0x19a))[l(0x18a)]()['constructor'](a114a)['search'](l(0x19a));});a114a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a114c(){const p=['2014908HIJvex','468jPgUjd','toString','Installing\x20winston','engines','pathFromApp','30344iQvAMQ','maka\x20{generate,\x20g}:{service}\x20<resource-name>','type','resourceName','winston','startup','92LWJrtE','21WcajRi','maka\x20g:svc\x20service-logger\x20--type=logger','10103sxZypl','722140wugEAa','fsi','(((.+)+)+)+$','1131933Eywxct','svc','750373TmOwrB','apply','logger','153990HQPjCx','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','3xTNMMf','withValue','error','70WAfeGU','getProjectConfig','tsx','service/logger/logger.js','checkNpmPackage','create','service','2385HdxjIu','winston\x20setimmediate'];a114c=function(){return p;};return a114c();}Generator[a114m(0x184)]({'name':a114m(0x185),'aliases':[a114m(0x19c)],'usage':a114m(0x18f),'shortDesc':a114m(0x1a1),'requiredOpts':[{'name':'type','values':[a114m(0x19f)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a114m(0x196)]},async function(a,b){const n=a114m;try{const c=this[n(0x199)][n(0x180)]();this[n(0x199)][n(0x1a3)](c,async()=>{const o=n,d=this[o(0x199)][o(0x18d)]({}),f=paramCase(b[o(0x191)]),g={'name':pascalCase(b[o(0x191)]),'fileName':f,'camelCase':camelCase(b[o(0x191)]),'type':b['type'],'engine':c[o(0x18c)]['js'],'noRename':!![]};let h='js';c[o(0x18c)]['js']===o(0x181)&&(h='ts');if(b[o(0x190)]===o(0x19f)){!this[o(0x199)][o(0x183)](o(0x192))&&await this[o(0x199)]['installNpmPackage'](o(0x187),{'cwd':d,'msg':o(0x18b)});const i=this['fsi'][o(0x18d)]({'pathParts':['imports',o(0x193),'lib','services',f+'.'+h]});await this[o(0x199)]['template']({'srcPath':o(0x182),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x17e)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a115d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a115d,c=a();while(!![]){try{var d=-parseInt(f(0xe7))/0x1*(-parseInt(f(0xe8))/0x2)+-parseInt(f(0xe5))/0x3+parseInt(f(0xe1))/0x4*(-parseInt(f(0xdc))/0x5)+parseInt(f(0xe3))/0x6*(-parseInt(f(0xdd))/0x7)+-parseInt(f(0xe6))/0x8*(parseInt(f(0xe4))/0x9)+parseInt(f(0xe2))/0xa*(-parseInt(f(0xea))/0xb)+parseInt(f(0xdf))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xd45a7));function a115c(){var i=['apply','64246956qbQfbs','(((.+)+)+)+$','393428faskxk','10qEUFej','117498cWpwTf','2061cJsoeT','1519785RASHsi','54544lFrsER','1cmqVCB','1495898WpVPTp','search','15384402VqYGdN','toString','35wiXMMp','385ATHtTN'];a115c=function(){return i;};return a115c();}var a115b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a115d;if(c){var e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){var h=a115d;return a115a[h(0xeb)]()['search'](h(0xe0))['toString']()['constructor'](a115a)[h(0xe9)](h(0xe0));});function a115d(a,b){var c=a115c();return a115d=function(d,e){d=d-0xdc;var f=c[d];return f;},a115d(a,b);}a115a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a116k=a116d;(function(a,b){const i=a116d,c=a();while(!![]){try{const d=-parseInt(i(0x123))/0x1*(parseInt(i(0x114))/0x2)+parseInt(i(0x130))/0x3*(parseInt(i(0x11e))/0x4)+parseInt(i(0x118))/0x5+parseInt(i(0x12d))/0x6+-parseInt(i(0x117))/0x7*(parseInt(i(0x122))/0x8)+-parseInt(i(0x121))/0x9*(parseInt(i(0x12e))/0xa)+parseInt(i(0x11b))/0xb*(parseInt(i(0x127))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xd64e8));function a116c(){const n=['maka\x20g:sslconfig\x20--env\x20dev','439011tXiBGj','1288nGsZaK','8lrZhcn','join','(((.+)+)+)+$','fsi','166764yYwVNU','constructor','search','_keys','appName','create','8226150SLZzxf','230bezswp','withValue','277317oyEcFF','65336LfFaiv','service','env','59332eagTDA','3376270EhyRWf','template','getConfigPath','1177NxlNIu','openssl.conf','getGlobalConfig','4zfwJcK','sslconfig'];a116c=function(){return n;};return a116c();}const a116b=(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;};}()),a116a=a116b(this,function(){const j=a116d;return a116a['toString']()[j(0x129)](j(0x125))['toString']()[j(0x128)](a116a)['search'](j(0x125));});a116a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x114;let f=c[d];return f;},a116d(a,b);}import a116e from'path';Generator[a116k(0x12c)]({'name':a116k(0x11f),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':['env'],'examples':[a116k(0x120)],'validOpts':[]},async function(a,b){const l=a116k;try{const c=await this[l(0x126)]['getProjectConfig'](),d=await this[l(0x126)][l(0x11d)](),f=this['fsi'][l(0x11a)](b[l(0x116)]),g=a116e[l(0x124)](f,l(0x12a),l(0x11c));await this[l(0x126)][l(0x12f)](c,async()=>{const m=l,h={'app':d[m(0x12b)],'noRename':!![]};await this[m(0x126)][m(0x119)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':m(0x115),'context':h,'config':c});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117A=a117d;(function(a,b){const x=a117d,c=a();while(!![]){try{const d=parseInt(x(0x17d))/0x1*(-parseInt(x(0x173))/0x2)+parseInt(x(0x17b))/0x3+parseInt(x(0x188))/0x4*(-parseInt(x(0x162))/0x5)+parseInt(x(0x18d))/0x6*(parseInt(x(0x192))/0x7)+-parseInt(x(0x194))/0x8*(-parseInt(x(0x16a))/0x9)+parseInt(x(0x160))/0xa+-parseInt(x(0x15f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xd5e54));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a117d;if(c){const e=c[y(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const z=a117d;return a117a['toString']()[z(0x165)](z(0x161))[z(0x167)]()[z(0x181)](a117a)[z(0x165)]('(((.+)+)+)+$');});a117a();function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x154;let f=c[d];return f;},a117d(a,b);}import{Generator}from'../../generator.js';function a117c(){const D=['apply','error','.js','maka\x20g:translation\x20--lang=en\x20(default)','appName','injectAtEndOfFile','isFile','import\x20\x27../lib/services/translations/i18n\x27;\x0a','ssr','server','17682577pZqxgK','14027560ppMiNk','(((.+)+)+)+$','205WNSIPk','setProjectConfig','findAppDirectory','search','translations','toString','Locale\x20already\x20exported:\x20','\x20}\x20from\x20\x27./','279fdMdsr','lang','service','warn','default\x20as\x20','locales','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','template','lib','70ihNTxX','pathFromApp','maka\x20g:translation\x20--lang=fr','getGlobalConfig','true','services','index.js','engines','3792921AoclXS','getProjectConfig','4346FRfvTt','injectAtBeginningOfFile','client','exit','constructor','imports','fsi','create','startup','grep','i18n.js','170396fiLWws','i18next','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','root','Locale\x20already\x20defined:\x20','6XaDNgO','checkNpmPackage','i18next\x20i18next-browser-languagedetector\x20react-i18next','rewriteDestinationPathForEngine','installNpmPackage','5490961BcXjUA','translation','240208AtRwfp','import\x20\x27../lib/services/translations/i18n\x27;','i18n/index.js','i18n/i18n.js','Generate\x20a\x20new\x20locale\x20translation','index.'];a117c=function(){return D;};return a117c();}import{Log}from'../../tools/log/log.class.js';import a117e from'fs';Generator[a117A(0x184)]({'name':a117A(0x193),'usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a117A(0x198),'description':a117A(0x170),'noResource':!![],'examples':[a117A(0x158),a117A(0x175),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},function(a,b){const B=a117A;try{const c=this[B(0x183)][B(0x17c)](),d=this[B(0x183)][B(0x176)](),f=this[B(0x183)][B(0x164)]();this['fsi']['withValue'](c,()=>{const C=B;try{!b[C(0x16b)]&&(b['lang']='en');!b[C(0x18b)]&&!this['fsi'][C(0x18e)](C(0x189))&&(Log[C(0x16d)](C(0x18a)),this[C(0x183)][C(0x191)](C(0x18f),{'cwd':f}),this[C(0x183)][C(0x163)]('features.withTranslations',!![]));const g=this['fsi']['pathFromApp']({'pathParts':[C(0x182),C(0x185),C(0x17f),C(0x179)]}),h=this['fsi'][C(0x190)]({'pathParts':[g],'config':c}),i=this['fsi'][C(0x186)](a117e['readFileSync'](h)[C(0x167)](),C(0x195))[0x0]&&!![];if(c[C(0x17a)][C(0x15d)]===C(0x177)){!i&&this[C(0x183)][C(0x17e)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this['fsi'][C(0x174)]({'pathParts':['imports',C(0x185),C(0x15e),C(0x179)]}),u=this[C(0x183)][C(0x190)]({'pathParts':[t],'config':c}),v=this[C(0x183)]['grep'](a117e['readFileSync'](u)[C(0x167)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x183)][C(0x17e)]({'filePath':u,'content':C(0x15c)});}else!i&&this[C(0x183)][C(0x17e)]({'filePath':h,'content':C(0x15c)});const j={'app':d[C(0x159)],'config':c},k=this['fsi']['pathFromApp']({'pathParts':['imports',C(0x185),'lib','services',C(0x166),C(0x187)]}),l=this[C(0x183)]['isFile'](this[C(0x183)][C(0x190)]({'pathParts':[k],'config':c}));!l&&this['fsi'][C(0x171)]({'srcPath':C(0x197),'destPath':k,'framework':C(0x16c),'context':j,'config':c});const m=this[C(0x183)]['pathFromApp']({'pathParts':[C(0x182),C(0x185),C(0x172),C(0x178),C(0x166),C(0x16f),b[C(0x16b)]+C(0x157)]}),n=this[C(0x183)][C(0x190)]({'pathParts':[m],'config':c}),o=this['fsi']['isFile'](n);!o?this[C(0x183)][C(0x171)]({'srcPath':'i18n/locales.js','destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x16d)](C(0x18c)+n);const p=this[C(0x183)][C(0x174)]({'pathParts':[C(0x182),C(0x185),C(0x172),C(0x178),C(0x166),'locales',C(0x154)+c[C(0x17a)]['js']]}),q=this[C(0x183)][C(0x190)]({'pathParts':[p],'config':c}),r=this[C(0x183)][C(0x15b)](q);!r&&this[C(0x183)][C(0x171)]({'srcPath':C(0x196),'destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x183)][C(0x186)](a117e['readFileSync'](p)[C(0x167)](),C(0x16e)+b['lang'])[0x0]&&!![];!s?this['fsi'][C(0x15a)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b['lang']+C(0x169)+b[C(0x16b)]+'\x27;'}):Log[C(0x16d)](C(0x168)+p);}catch(w){Log['error'](w),process[C(0x180)](0x1);}});}catch(g){Log[B(0x156)](g),process[B(0x180)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(0x123))/0x1+parseInt(j(0x11d))/0x2*(-parseInt(j(0x10f))/0x3)+parseInt(j(0x113))/0x4*(parseInt(j(0x117))/0x5)+-parseInt(j(0x116))/0x6*(parseInt(j(0x110))/0x7)+-parseInt(j(0x126))/0x8+parseInt(j(0x128))/0x9*(parseInt(j(0x115))/0xa)+parseInt(j(0x118))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x37d5d));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0x121)]()[l(0x112)](l(0x125))[l(0x121)]()[l(0x11c)](a118a)[l(0x112)](l(0x125));});a118a();import a118e from'minimist';import a118f from'os';import a118g from'path';import a118h from'humps';import a118i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x10f;let f=c[d];return f;},a118d(a,b);}function a118c(){const n=['url','192078AaetWS','842691Lzrfhn','35bGygaK','env','search','20lrfRei','parse','20BAXmKi','254640XgjTjT','58340IpRyhQ','10188783KMHPGy','MAKA_COMMAND_PATH','BROWSERSLIST_IGNORE_OLD_DATA','TOOL_NODE_FLAGS','constructor','2vhZTpU','run','apply','floor','toString','NODE_NO_WARNINGS','29770qUzaXe','stringify','(((.+)+)+)+$','2681992yonXYo'];a118c=function(){return n;};return a118c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a118m(0x127)]),__dirname=a118g['dirname'](__filename);global[a118m(0x119)]=__dirname;const total_memory=a118f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a118m(0x120)](total_mem_in_mb),process[a118m(0x111)][a118m(0x11b)]='--max-old-space-size='+total_mem_in_mb,process[a118m(0x111)][a118m(0x11a)]='1',process[a118m(0x111)][a118m(0x122)]='1';const argv=a118e(process['argv']['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a118m(0x114)](JSON[a118m(0x124)](argv));delete deepCopyArgv['_'];const opts=a118h['camelizeKeys'](deepCopyArgv);a118i[a118m(0x11e)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119L=a119d;(function(a,b){const I=a119d,c=a();while(!![]){try{const d=-parseInt(I(0xef))/0x1*(parseInt(I(0x127))/0x2)+-parseInt(I(0x130))/0x3*(parseInt(I(0xfe))/0x4)+-parseInt(I(0xed))/0x5*(parseInt(I(0x112))/0x6)+-parseInt(I(0xfb))/0x7*(parseInt(I(0xff))/0x8)+parseInt(I(0xea))/0x9+parseInt(I(0x12d))/0xa*(parseInt(I(0xee))/0xb)+parseInt(I(0x11a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x2434f));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a119d;if(c){const e=c[J(0xf8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const K=a119d;return a119a['toString']()[K(0x12b)]('(((.+)+)+)+$')[K(0x128)]()[K(0xf3)](a119a)[K(0x12b)](K(0xf4));});function a119c(){const Y=['(((.+)+)+)+$','NIE','shortDesc','includes','apply','Invalid\x20argument:\x20','formatToNamedParam','7pIWtTg','usage','Please\x20choose\x20a\x20valid\x20value\x20for\x20','2432FZBouH','1444856rpjAIS','description','assign','map','Please\x20choose\x20a\x20value\x20for\x20','fsi','keys','getShortName','find','examples','env','name','length','parent','Local','Invalid\x20value\x20for\x20','.meteor','validateMeteorInstall','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','12tpkeQG','every','existsSync','Please\x20provide\x20a\x20resource\x20name:','platform','cwd','dir','No\x20usage\x20provided.','6553548YjyUhI','_handler','aliases','concat','Please\x20choose\x20an\x20environment','getProjectConfigs','list','resourceName','options','remapShortToLong','findProjectDirectory','push','Invalid\x20option:\x20','487400DcXXUo','toString','AppData','ask','search','config','163780WiEFPw','root','win32','708yUqCad','1222479GOquld','join','homedir','365050CFZnxP','121eSEweU','1uFignJ','match','Please\x20provide\x20a\x20value\x20for\x20','error','constructor'];a119c=function(){return Y;};return a119c();}a119a();import a119e from'path';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0xea;let f=c[d];return f;},a119d(a,b);}import a119f from'os';import a119g from'fs';const homeDir=a119f[a119L(0xec)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{['docker'];[a119L(0x104)];[a119L(0x122)];[a119L(0x10a)];[a119L(0x10c)];[a119L(0x11b)];constructor(){const M=a119L;this['docker']=new Docker(),this[M(0x104)]=new FSI();}[a119L(0x106)](a){return a['charAt'](0x0);}[a119L(0x123)](a,b){const N=a119L,c=this[N(0xfa)](b),d={...a};for(const e of c){const f=this['getShortName'](e[N(0x10a)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const O=a119L;if(a[O(0x113)](b=>typeof b==='string'))return a[O(0x102)](b=>({'name':b}));return a;}[a119L(0xf0)](a){const P=a119L,b=[this[P(0x10a)]][P(0x11d)](this['options'][P(0x11c)]||[]);return this['parent']&&b[P(0x125)](this['parent']),b[P(0xf7)](a);}['validateMakaProject'](){const Q=a119L,a=this['fsi'][Q(0x124)]();return a!==![]?!![]:![];}[a119L(0x110)](){const R=a119L;let a=a119e['join'](homeDir,R(0x10f));const b=process[R(0x116)]===R(0x12f);if(b){a=a119e[R(0xeb)](homeDir,R(0x129),R(0x10d),R(0x10f));if(!a119g[R(0x114)](a))return![];}else{if(!a119g['existsSync'](a))return![];}return!![];}async['validateParams'](a,b,c){const S=a119L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[S(0x105)](b);if(h[S(0xf7)]('resourceName')&&b[S(0x121)]===undefined&&!g){const m=await Actions[S(0x12a)](S(0x115));b['resourceName']=m;}let i=[],j=b;if(d){i=this[S(0xfa)](d),j=this['remapShortToLong'](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)[S(0xf7)](o)){if(o===S(0x109)){const r=this['fsi'][S(0x11f)](),s=await Actions[S(0x122)]({'type':'list','name':S(0x109),'message':S(0x11e),'choices':r});b[S(0x109)]=s[S(0x109)];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':S(0x103)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[S(0x12a)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[S(0xf0)](q))b[o]=v;else{Log[S(0xf2)](S(0x10e)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](S(0xf1)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[S(0xf7)](x)){Log[S(0xf2)](S(0x10e)+o+':\x20'+x);throw new UsageError();}}}}let k=this[S(0xfa)](f),l=b;if(k&&Object[S(0x105)](k)?.[S(0x10b)]>0x0){k=k[S(0x11d)](i||[]),k[S(0x125)]({'name':S(0x121),'hidden':!![]}),k[S(0x125)]({'name':'help','boolFlag':!![]}),k[S(0x125)]({'name':S(0x118),'hidden':!![]}),k[S(0x125)]({'name':S(0x117),'hidden':!![]}),k[S(0x125)]({'name':S(0x12e),'hidden':!![]}),k[S(0x125)]({'name':S(0x12c),'hidden':!![]}),l=this[S(0x123)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[S(0xf7)](B))){const C=A;if(C){const D=await Actions[S(0x122)]({'type':S(0x120),'name':z,'message':S(0xfd)+z,'choices':A});l[z]=D[z];}}if(k[S(0x10b)]>0x0)for(const E of Object[S(0x105)](l)){const F=k[S(0x107)](G=>G['name']===E);if(!F){Log[S(0xf2)](S(0x126)+E);throw new UsageError();}}}}if(e&&e?.[S(0x10b)]>0x0)for(const G of e){if(!e[S(0xf7)](G)){Log[S(0xf2)](S(0xf9)+G);const H=await Actions['ask'](S(0x111)+G);a[a['indexOf'](G)]=H;}}return Object[S(0x101)](j,l);}['description'](){const T=a119L;return this[T(0x122)][T(0x100)]||this[T(0x122)][T(0xf6)]||'No\x20description\x20provided.';}['shortDesc'](){const U=a119L;return this[U(0x122)][U(0xf6)]||U(0xf5);}[a119L(0xfc)](){const V=a119L;return this['options'][V(0xfc)]||V(0x119);}[a119L(0x108)](){const W=a119L;return this[W(0x122)]['examples']||[];}[a119L(0x11c)](){const X=a119L;return this[X(0x122)]['aliases']||'None';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120i=a120d;(function(a,b){const f=a120d,c=a();while(!![]){try{const d=parseInt(f(0x1e5))/0x1*(-parseInt(f(0x1e0))/0x2)+-parseInt(f(0x1e9))/0x3*(parseInt(f(0x1ec))/0x4)+parseInt(f(0x1ef))/0x5*(parseInt(f(0x1df))/0x6)+-parseInt(f(0x1e6))/0x7+parseInt(f(0x1f0))/0x8*(parseInt(f(0x1e8))/0x9)+parseInt(f(0x1f1))/0xa*(parseInt(f(0x1f3))/0xb)+-parseInt(f(0x1e4))/0xc*(-parseInt(f(0x1ed))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x40c81));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a120d;if(c){const e=c[g(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const h=a120d;return a120a['toString']()['search'](h(0x1ea))['toString']()['constructor'](a120a)[h(0x1ee)](h(0x1ea));});a120a();function a120c(){const m=['228120CNYFkg','apply','11lIRuGO','6UwUlJO','23044voHxhw','ask','prompt','options','12lQwLSF','2VdDNtA','3409924JrGyda','input','9xjuRCs','3ZIgvgF','(((.+)+)+)+$','confirm','588908HrYZhN','5605483doRWmV','search','1512395UQmmiq','1330128pYvPAQ'];a120c=function(){return m;};return a120c();}function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1df;let f=c[d];return f;},a120d(a,b);}import a120e from'inquirer';export class Actions{static async[a120i(0x1e1)](a,b){const j=a120i,{answer:c}=await a120e['prompt']({'type':b?'password':j(0x1e7),'name':'answer','message':a});return c;}static async[a120i(0x1eb)](a,b=![]){const k=a120i,{answer:c}=await a120e['prompt']({'type':k(0x1eb),'name':'answer','message':a,'default':b});return c;}static async[a120i(0x1e3)](a){const l=a120i,b=await a120e[l(0x1e2)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121t=a121d;(function(a,b){const p=a121d,c=a();while(!![]){try{const d=-parseInt(p(0x1c3))/0x1+parseInt(p(0x21a))/0x2*(parseInt(p(0x1fe))/0x3)+-parseInt(p(0x22b))/0x4+parseInt(p(0x1cf))/0x5*(-parseInt(p(0x1fc))/0x6)+-parseInt(p(0x1e3))/0x7*(parseInt(p(0x201))/0x8)+-parseInt(p(0x218))/0x9+parseInt(p(0x1d9))/0xa*(parseInt(p(0x229))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x2a177));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a121d;if(c){const e=c[q(0x225)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const r=a121d;return a121a[r(0x1e7)]()[r(0x216)](r(0x1ca))[r(0x1e7)]()[r(0x1f0)](a121a)[r(0x216)](r(0x1ca));});a121a();import a121e from'fs';import a121f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a121d(a,b);}function a121c(){const X=['ec2describeKeys','Successfully\x20linked\x20EC2\x20instance\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ssh.json','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','vpcId','174372UPOLaY','Please\x20choose\x20a\x20VPC:\x20[0]\x20','0.0.0.0/0','getSecurityGroups','description','ec2createSG','length','(((.+)+)+)+$','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','subnet','ec2create','\x20CIDR:\x20','50GJAQbL','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','linkEC2ToRoute53','Prices','success','fsi','createKeyPairEC2Key','writeFileSync','\x20to\x20','2410tftdqo','status','ID:\x20','HostedZones','CidrBlock','\x20NAME:\x20','running','Could\x20not\x20find\x20hosted\x20zone','readFileSync','warn','7MTbqzk','Description:','\x20opened!','file://','toString','deleteKeyPair','Port\x20','/dev/sdh','Availability','Created:\x20','Key\x20Name:\x20[','_keys','ec2terminateInstance','constructor','KeyMaterial','split','privateIp','ask','UPSERT','join','pem','Hosted\x20zone\x20created\x20successfully!','RegistrationPrice','GroupName','httpStatusCode','129102biBpFO','maka-cli','3JQIhQS','env','ignore','2513848yZtTEo','Error\x20fetching\x20domain\x20pricing:','changeResourceRecordSets','send','find','config','AVAILABLE','confirm','chooseInstance','$response','Invalid\x20choice','error','sgPorts','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Instances','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','pop','$metadata','ec2describeInstances','chooseVPC','\x20Status\x20Code:\x20','search','isFile','1198719JNeVtV','route53CreateHostedZone','33442IhbCfa','tcp','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','tag:created-by','exit','forEach','From\x20AWS:','type','ingressRule','imageId','\x20VPCID:\x20','apply','.pem.txt','push','now','60335RkBTIl','GroupId','1316940mmataG','Web\x20App','getConfigPath','publicIp','checkDomainAvailability','ecrCreateRepository','name','cidr','environment','instanceId','maxCount','VpcId','sgId','terminated','suggestion','reason','\x20PUB_IP:\x20','\x27\x20has\x20been\x20registered\x20successfully.','statusCode','utf8','\x20ENV:\x20','userData','KeyName','notice'];a121c=function(){return X;};return a121c();}import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a121d;this[s(0x1d5)]=new FSI();}async[a121t(0x230)](a){const u=a121t;try{const b={'repositoryName':a[u(0x231)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x204)](c);return d;}catch(f){Log[u(0x20c)](f);}}async[a121t(0x219)](a){const v=a121t;try{const b={'CallerReference':''+Date[v(0x228)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[v(0x1d4)](v(0x1f8));}catch(d){Log[v(0x20c)]('Error\x20creating\x20hosted\x20zone'),console[v(0x20c)](d);}}async['registerDomain'](a,b,c,d){const w=a121t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[w(0x1bc)]('The\x20domain\x20\x27'+b+w(0x1b6));}catch(g){Log['error']('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[w(0x1e2)](w(0x220)),console[w(0x20c)](w(0x215)+g[w(0x20a)][w(0x1b7)]),console['error']('\x20Error\x20Rason:\x20'+g[w(0x20a)][w(0x1b4)]);}}async[a121t(0x22f)](a){const x=a121t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x204)](c),e=d[x(0x1eb)]===x(0x207);if(e){const f=a[x(0x1f2)]('.')[x(0x211)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x204)](h);if(i&&i[x(0x1d3)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i[x(0x1d3)][0x0][x(0x1f9)];return{'available':e,'cost':j};}}catch(k){console[x(0x20c)](x(0x202),k);}}return{'available':e};}async[a121t(0x1d2)](a,b,c){const y=a121t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[y(0x1dc)])throw Log['error'](y(0x1e0));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x1f5),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x203)](f),Log[y(0x1bc)](y(0x1be)+a+y(0x1d8)+c);}catch(g){console[y(0x20c)](y(0x1d1),g);}}async[a121t(0x1cd)](a){const z=a121t;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x1ea),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x223)],'InstanceType':a[z(0x221)],'KeyName':a['key'],'MaxCount':a[z(0x1af)],'MinCount':a['minCount'],'SecurityGroupIds':a['sgIds'][z(0x1f2)](','),'SubnetId':a[z(0x1cc)],'TagSpecifications':[{'ResourceType':'instance','Tags':a['tags']}]};a[z(0x1ba)]&&(b['UserData']=z(0x1e6)+a[z(0x1ba)]);const c=new RunInstancesCommand(b),d=await client[z(0x204)](c);return d;}catch(f){Log[z(0x20c)](f);}}async[a121t(0x1ef)](a){const A=a121t;try{const b={'InstanceIds':[a[A(0x1ae)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x20c)](f),{};}}async[a121t(0x1d6)]({keyName:a,env:b}){const B=a121t,c=this[B(0x1d5)][B(0x22d)](b),d=a121f[B(0x1f6)](c,B(0x1ee),a+B(0x226));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x204)](g),i=h[B(0x1f1)];if(i){await this[B(0x1d5)]['createFile']({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':B(0x200)});const j=this[B(0x1d5)][B(0x217)](d);if(j)return Log[B(0x1d4)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[B(0x21e)](0x1);}}async[a121t(0x222)]({port:a,groupId:b}){const C=a121t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x21b),'IpRanges':[{'CidrIp':C(0x1c5),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x1bc)](C(0x1e9)+a+C(0x1e5)),await client[C(0x204)](d);}async[a121t(0x1c8)](a){const D=a121t;try{a[D(0x1c7)]===''&&(a[D(0x1c7)]=await Actions['ask'](D(0x1e4))||D(0x22c));const b={'Description':a[D(0x1c7)],'GroupName':a[D(0x231)],'VpcId':a[D(0x1c2)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x204)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x1c1));f&&a[D(0x20d)][D(0x21f)](g=>{const E=D;this[E(0x222)]({'port':parseInt(g),'groupId':f});}),Log[D(0x1d4)](D(0x1ec)+f+D(0x1de)+a[D(0x231)]);}catch(g){return Log['error'](g),![];}return!![];}async[a121t(0x1bd)](a){const F=a121t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0x204)](d);if(!f)throw F(0x1c1);const {KeyPairs:g}=f;g?(g?.[F(0x21f)]((h,i)=>{const G=F;h[G(0x1bb)]&&b['push']({'id':i,'name':h[G(0x1bb)]});}),b[F(0x1c9)]>0x0&&b[F(0x21f)](h=>{const H=F;h[H(0x231)]===a?.[H(0x1b3)]?Log[H(0x1d4)](H(0x1db)+h['id']+H(0x1de)+h['name']):Log[H(0x1bc)](H(0x1db)+h['id']+H(0x1de)+h['name']);})):Log['error'](F(0x1cb));}catch(h){Log[F(0x20c)](h);}return b;}async[a121t(0x1e8)](a){const I=a121t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[I(0x204)](c);}catch(d){Log['error'](d),process[I(0x21e)](0x1);}}async[a121t(0x213)](){const J=a121t,a=[];try{const b={'Filters':[{'Name':J(0x21d),'Values':[J(0x1fd)]}]},c=new DescribeInstancesCommand(b),d=await client[J(0x204)](c);d['Reservations']?.[J(0x21f)]((f,g)=>{const K=J;if(f?.[K(0x20f)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[K(0x205)](({Key:o})=>o===K(0x1ad));a[K(0x227)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.['Value']});}}),a[J(0x1c9)]>0x0?a['forEach'](f=>{const L=J,g=L(0x1db)+f['id']+'\x20NAME:\x20'+f['name']+L(0x1b9)+f[L(0x1ff)]+'\x20STATUS:\x20'+f[L(0x1da)]+'\x20INSTANCE_ID:\x20'+f[L(0x1ae)]+L(0x1b5)+f[L(0x22e)]+'\x20PRIV_IP:\x20'+f[L(0x1f3)];if(f[L(0x1da)]===L(0x1b2))Log[L(0x20c)](g);else f[L(0x1da)]===L(0x1df)?Log[L(0x1d4)](g):Log[L(0x1bc)](g);}):Log[J(0x20c)](J(0x21c));}catch(f){Log['error'](f);}return a;}async['ec2rebootInstance'](a){const M=a121t;try{const b={'InstanceIds':[a[M(0x1ae)]]},c=new RebootInstancesCommand(b),d=await client[M(0x204)](c);return d[M(0x212)][M(0x1fb)]===0xc8&&Log[M(0x1d4)]('Instance\x20rebooted!'),d;}catch(f){Log[M(0x20c)](f);}}async[a121t(0x214)](){const N=a121t;let a='';Log[N(0x1bc)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[N(0x204)](b),{Vpcs:d}=c,e=[];d&&d[N(0x21f)]((g,h)=>{const O=N;g[O(0x1b0)]&&g[O(0x1dd)]&&e[O(0x227)]({'id':h,'vpcId':g[O(0x1b0)],'cidr':g[O(0x1dd)]});});e[N(0x21f)](function(g){const P=N;console['log'](P(0x1db)+g['id']+P(0x224)+g[P(0x1c2)]+P(0x1ce)+g[P(0x1ac)]);});const f=await Actions['ask'](N(0x1c4))||0x0;e[N(0x21f)](function(g){const Q=N;g['id']==f&&(a=g[Q(0x1c2)],Log[Q(0x1d4)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[N(0x20c)](N(0x20e)),'';return a;}async[a121t(0x209)](){const R=a121t,a=await this[R(0x213)]();if(a[R(0x1c9)]===0x0)return Log[R(0x20c)]('No\x20instances\x20found'),null;const b=await Actions[R(0x1f4)](R(0x1d0));!b&&(Log[R(0x20c)](R(0x20b)),process['exit'](0x0));const c=a[R(0x205)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const S=a121t,b=this[S(0x1d5)]['getProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](S(0x1ed)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[S(0x208)](S(0x1bf),!![]);if(h)try{const i=a121e[S(0x1e1)](a121f[S(0x1f6)](S(0x206),a,'ssh.json'),S(0x1b8)),j=JSON['parse'](i);j[S(0x1f7)]=a121f[S(0x1f6)](S(0x1ee),f+'.pem.txt'),a121e[S(0x1d7)](a121f[S(0x1f6)](S(0x206),a,S(0x1c0)),JSON['stringify'](j,null,0x2));}catch(k){Log[S(0x20c)](k),Log['error'](S(0x210));}}catch(l){Log[S(0x20c)](l),process[S(0x21e)](0x1);}return{'keyName':f,'filePath':g};}async[a121t(0x1c6)](a){const T=a121t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0x204)](d),{SecurityGroups:f}=e;f&&f[T(0x21f)](function(i,j){const U=T;i[U(0x1fa)]&&i[U(0x22a)]&&b[U(0x227)]({'id':j,'name':i[U(0x1fa)],'sgId':i[U(0x22a)]});});let g='',h=0x0;return b[T(0x21f)](function(i){const V=T;i[V(0x231)]===a&&(g=i[V(0x1b1)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const W=a121t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0x204)](c);}catch(d){Log[W(0x20c)](d),process[W(0x21e)](0x1);}}}
|
|
1
|
+
const a121t=a121d;(function(a,b){const p=a121d,c=a();while(!![]){try{const d=-parseInt(p(0x164))/0x1*(parseInt(p(0xfa))/0x2)+parseInt(p(0x144))/0x3+-parseInt(p(0x107))/0x4*(parseInt(p(0x13d))/0x5)+parseInt(p(0x118))/0x6*(-parseInt(p(0x155))/0x7)+parseInt(p(0x168))/0x8*(parseInt(p(0xf6))/0x9)+-parseInt(p(0x145))/0xa+-parseInt(p(0x143))/0xb*(-parseInt(p(0x14f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x1f30d));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a121d;if(c){const e=c[q(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const r=a121d;return a121a[r(0x169)]()[r(0x10c)](r(0x139))[r(0x169)]()[r(0x15b)](a121a)[r(0x10c)](r(0x139));});a121a();function a121c(){const W=['$response','AVAILABLE','(((.+)+)+)+$','env','chmod\x20400\x20','config','305295knqWfZ','subnet','\x20INSTANCE_ID:\x20','stringify','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','registerDomain','869vvdgVx','482535BtDilj','1226330mRGSjA','tag:created-by','Pem\x20key\x20saved\x20to\x20','ec2create','From\x20AWS:','find','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Port\x20','\x20PRIV_IP:\x20','GroupId','73608iWSQnM','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','No\x20instances\x20found','Instances','**\x20Available\x20\x20VPCs\x20**','CidrBlock','7XfCxJv','split','error','$metadata','instance','getConfigPath','constructor','sgId','Name','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','notice','\x20PUB_IP:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','send','push','1303nPEHVy','isFile','pem','success','8hcjjjY','toString','length','ec2rebootInstance','createKeyPairEC2Key','listHostedZonesByName','deleteKeyPair','description','ec2terminateInstance','Could\x20not\x20find\x20hosted\x20zone','tags','ask','Successfully\x20linked\x20EC2\x20instance\x20','Prices','getSecurityGroups','maka-cli','Invalid\x20choice','tcp','pop','warn','linkEC2ToRoute53','checkDomainAvailability','336888WQgkkI','\x20NAME:\x20','\x20Error\x20Rason:\x20','instanceId','312PbyjKC','createKeyPair','HostedZones','log','statusCode','ingressRule','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ID:\x20','maxCount','Hosted\x20zone\x20created\x20successfully!','confirm','vpcId','.pem.txt','12Bpronq','RegistrationPrice','GroupName','\x20STATUS:\x20','KeyMaterial','search','Error\x20saving\x20pem\x20file,\x20aborting','apply','UPSERT','Description:','type','writeFileSync','join','exit','now','ec2describeInstances','status','276168NONeqS','Key\x20Name:\x20[','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','ssh.json','sgIds','\x20CIDR:\x20','privateIp','VpcId','forEach','\x20opened!','fsi','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','createFile','ignore','suggestion','\x27\x20has\x20been\x20registered\x20successfully.','_keys','publicIp','minCount','\x20Status\x20Code:\x20','userData','Availability','name','reason','ecrCreateRepository','terminated','KeyName','readFileSync','Instance\x20rebooted!','Error\x20fetching\x20domain\x20pricing:','deleteSecurityGroup'];a121c=function(){return W;};return a121c();}import a121e from'fs';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0xf6;let f=c[d];return f;},a121d(a,b);}import a121f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a121d;this[s(0x122)]=new FSI();}async[a121t(0x130)](a){const u=a121t;try{const b={'repositoryName':a[u(0x12e)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x162)](c);return d;}catch(f){Log['error'](f);}}async['route53CreateHostedZone'](a){const v=a121t;try{const b={'CallerReference':''+Date[v(0x115)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x162)](c),Log['success'](v(0x103));}catch(d){Log[v(0x157)]('Error\x20creating\x20hosted\x20zone'),console[v(0x157)](d);}}async[a121t(0x142)](a,b,c,d){const w=a121t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x162)](f),Log[w(0x15f)]('The\x20domain\x20\x27'+b+w(0x127));}catch(g){Log[w(0x157)](w(0x14b)),Log[w(0x17b)](w(0x149)),console[w(0x157)](w(0x12b)+g[w(0x137)][w(0xfe)]),console['error'](w(0xf8)+g[w(0x137)][w(0x12f)]);}}async[a121t(0x17d)](a){const x=a121t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[x(0x12d)]===x(0x138);if(e){const f=a[x(0x156)]('.')[x(0x17a)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x162)](h);if(i&&i[x(0x175)]&&i[x(0x175)][0x0]?.[x(0x108)]){const j=i[x(0x175)][0x0][x(0x108)];return{'available':e,'cost':j};}}catch(k){console[x(0x157)](x(0x135),k);}}return{'available':e};}async[a121t(0x17c)](a,b,c){const y=a121t;try{const d=await route53[y(0x16d)]({'DNSName':c});if(!d?.[y(0xfc)])throw Log[y(0x157)](y(0x171));const e=d?.[y(0xfc)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x10f),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log['notice'](y(0x174)+a+'\x20to\x20'+c);}catch(g){console[y(0x157)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a121t(0x148)](a){const z=a121t;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[z(0x111)],'KeyName':a['key'],'MaxCount':a[z(0x102)],'MinCount':a[z(0x12a)],'SecurityGroupIds':a[z(0x11c)][z(0x156)](','),'SubnetId':a[z(0x13e)],'TagSpecifications':[{'ResourceType':z(0x159),'Tags':a[z(0x172)]}]};a[z(0x12c)]&&(b['UserData']='file://'+a[z(0x12c)]);const c=new RunInstancesCommand(b),d=await client[z(0x162)](c);return d;}catch(f){Log[z(0x157)](f);}}async[a121t(0x170)](a){const A=a121t;try{const b={'InstanceIds':[a[A(0xf9)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x162)](c);return d;}catch(f){return Log[A(0x157)](f),{};}}async[a121t(0x16c)]({keyName:a,env:b}){const B=a121t,c=this['fsi'][B(0x15a)](b),d=a121f[B(0x113)](c,B(0x128),a+B(0x106));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x162)](g),i=h[B(0x10b)];if(i){await this[B(0x122)][B(0x124)]({'filePath':d,'data':i}),execSync(B(0x13b)+d,{'stdio':B(0x125)});const j=this[B(0x122)][B(0x165)](d);if(j)return Log[B(0x167)](B(0x147)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x10d));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[B(0x157)](k),process[B(0x114)](0x1);}}async[a121t(0xff)]({port:a,groupId:b}){const C=a121t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x179),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](C(0x14c)+a+C(0x121)),await client[C(0x162)](d);}async['ec2createSG'](a){const D=a121t;try{a[D(0x16f)]===''&&(a['description']=await Actions[D(0x173)](D(0x110))||'Web\x20App');const b={'Description':a[D(0x16f)],'GroupName':a[D(0x12e)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[D(0x162)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x161));f&&a['sgPorts'][D(0x120)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[D(0x167)]('Created:\x20'+f+D(0xf7)+a['name']);}catch(g){return Log[D(0x157)](g),![];}return!![];}async['ec2describeKeys'](a){const E=a121t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x162)](d);if(!f)throw E(0x161);const {KeyPairs:g}=f;g?(g?.[E(0x120)]((h,i)=>{const F=E;h[F(0x132)]&&b['push']({'id':i,'name':h[F(0x132)]});}),b[E(0x16a)]>0x0&&b[E(0x120)](h=>{const G=E;h['name']===a?.[G(0x126)]?Log[G(0x167)](G(0x101)+h['id']+G(0xf7)+h[G(0x12e)]):Log[G(0x15f)](G(0x101)+h['id']+G(0xf7)+h[G(0x12e)]);})):Log['error'](E(0x150));}catch(h){Log[E(0x157)](h);}return b;}async[a121t(0x16e)](a){const H=a121t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x162)](c);}catch(d){Log[H(0x157)](d),process[H(0x114)](0x1);}}async[a121t(0x116)](){const I=a121t,a=[];try{const b={'Filters':[{'Name':I(0x146),'Values':[I(0x177)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x162)](c);d['Reservations']?.[I(0x120)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x152)][0x0],n=m?.['find'](({Key:o})=>o==='environment');a[J(0x163)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x15d)],'name':l,'env':n?.['Value']});}}),a[I(0x16a)]>0x0?a[I(0x120)](f=>{const K=I,g=K(0x101)+f['id']+K(0xf7)+f['name']+'\x20ENV:\x20'+f[K(0x13a)]+K(0x10a)+f[K(0x117)]+K(0x13f)+f['instanceId']+K(0x160)+f[K(0x129)]+K(0x14d)+f[K(0x11e)];if(f[K(0x117)]===K(0x131))Log['error'](g);else f['status']==='running'?Log['success'](g):Log['notice'](g);}):Log[I(0x157)](I(0x15e));}catch(f){Log[I(0x157)](f);}return a;}async[a121t(0x16b)](a){const L=a121t;try{const b={'InstanceIds':[a[L(0xf9)]]},c=new RebootInstancesCommand(b),d=await client[L(0x162)](c);return d[L(0x158)]['httpStatusCode']===0xc8&&Log[L(0x167)](L(0x134)),d;}catch(f){Log[L(0x157)](f);}}async['chooseVPC'](){const M=a121t;let a='';Log[M(0x15f)](M(0x153));const b=new DescribeVpcsCommand({}),c=await client[M(0x162)](b),{Vpcs:d}=c,e=[];d&&d[M(0x120)]((g,h)=>{const N=M;g[N(0x11f)]&&g[N(0x154)]&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0x154)]});});e['forEach'](function(g){const O=M;console[O(0xfd)](O(0x101)+g['id']+'\x20VPCID:\x20'+g[O(0x105)]+O(0x11d)+g['cidr']);});const f=await Actions[M(0x173)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[M(0x120)](function(g){const P=M;g['id']==f&&(a=g['vpcId'],Log[P(0x167)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log['error'](M(0x123)),'';return a;}async['chooseInstance'](){const Q=a121t,a=await this[Q(0x116)]();if(a['length']===0x0)return Log[Q(0x157)](Q(0x151)),null;const b=await Actions[Q(0x173)](Q(0x141));!b&&(Log[Q(0x157)](Q(0x178)),process[Q(0x114)](0x0));const c=a[Q(0x14a)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a121t(0xfb)]({env:a}){const R=a121t,b=this['fsi']['getProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x173)](R(0x119)+d+']\x20')||d,{filePath:g}=await this[R(0x16c)]({'keyName':f,'env':a});try{const h=await Actions[R(0x104)](R(0x100),!![]);if(h)try{const i=a121e[R(0x133)](a121f['join']('config',a,R(0x11b)),'utf8'),j=JSON['parse'](i);j[R(0x166)]=a121f['join'](R(0x128),f+R(0x106)),a121e[R(0x112)](a121f[R(0x113)](R(0x13c),a,R(0x11b)),JSON[R(0x140)](j,null,0x2));}catch(k){Log[R(0x157)](k),Log[R(0x157)](R(0x11a));}}catch(l){Log[R(0x157)](l),process[R(0x114)](0x1);}return{'keyName':f,'filePath':g};}async[a121t(0x176)](a){const S=a121t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x162)](d),{SecurityGroups:f}=e;f&&f[S(0x120)](function(i,j){const T=S;i[T(0x109)]&&i['GroupId']&&b[T(0x163)]({'id':j,'name':i['GroupName'],'sgId':i[T(0x14e)]});});let g='',h=0x0;return b[S(0x120)](function(i){const U=S;i[U(0x12e)]===a&&(g=i[U(0x15c)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a121t(0x136)](a){const V=a121t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[V(0x157)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a122d,c=a();while(!![]){try{var d=parseInt(k(
|
|
1
|
+
function a122c(){var n=['249690GLHYZh','10073ZrizaF','apply','1315044rcpUWp','3512tinlnC','2292aHJpYE','6iUPAYR','19459SnUDJF','toString','12vDeVyR','search','156319FFcSaG','constructor','105562BpjWVT','158965qnhhhM','(((.+)+)+)+$','135mYFASl'];a122c=function(){return n;};return a122c();}(function(a,b){var k=a122d,c=a();while(!![]){try{var d=parseInt(k(0xdd))/0x1+parseInt(k(0xdf))/0x2*(-parseInt(k(0xd8))/0x3)+-parseInt(k(0xd5))/0x4+parseInt(k(0xe0))/0x5*(-parseInt(k(0xdb))/0x6)+-parseInt(k(0xd3))/0x7*(-parseInt(k(0xd6))/0x8)+parseInt(k(0xe2))/0x9*(parseInt(k(0xe3))/0xa)+parseInt(k(0xd9))/0xb*(-parseInt(k(0xd7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x4fc83));function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0xd3;var f=c[d];return f;},a122d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a122d;if(h){var j=h[l(0xd4)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a122d;return e[m(0xda)]()['search']('(((.+)+)+)+$')[m(0xda)]()[m(0xde)](e)[m(0xdc)](m(0xe1));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123m=a123d;(function(a,b){const j=a123d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a123m=a123d;function a123c(){const p=['3513848qRiSJx','26WxJAMU','error','search','.amazonaws.com/','awsLogin','38276766PAwjTG','inherit','195726SDmpYv','toString','constructor','(((.+)+)+)+$','.amazonaws.com','385PdkQHa','join','276075RgDLVN','--username','1881351JzpFmU','--password-stdin','AWS','93412IRHHtU','.dkr.ecr.','docker\x20','pushImage','9007264aVNiWv'];a123c=function(){return p;};return a123c();}(function(a,b){const j=a123d,c=a();while(!![]){try{const d=-parseInt(j(0x132))/0x1+-parseInt(j(0x122))/0x2*(-parseInt(j(0x130))/0x3)+-parseInt(j(0x135))/0x4*(parseInt(j(0x12e))/0x5)+parseInt(j(0x129))/0x6+-parseInt(j(0x120))/0x7+parseInt(j(0x121))/0x8+parseInt(j(0x127))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xe91f3));const a123b=(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;};}()),a123a=a123b(this,function(){const k=a123d;return a123a[k(0x12a)]()['search']('(((.+)+)+)+$')[k(0x12a)]()[k(0x12b)](a123a)[k(0x124)](k(0x12c));});function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x11e;let f=c[d];return f;},a123d(a,b);}a123a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const l=a123d;try{const f=['tag',a,b+'.dkr.ecr.'+c+l(0x125)+d],g='docker\x20'+f[l(0x12f)]('\x20'),h=execSync(g,{'stdio':l(0x128)})[l(0x12a)]();return h;}catch(i){return Log[l(0x123)](i),'';}}static[a123m(0x126)]({awsAccountId:a,region:b}){const n=a123m;try{const c=['login',n(0x131),n(0x134),n(0x133),a+n(0x136)+b+n(0x12d)],d=n(0x11e)+c[n(0x12f)]('\x20'),f=execSync(d,{'stdio':n(0x128)})[n(0x12a)]();return f;}catch(g){return Log[n(0x123)](g),'';}}static[a123m(0x11f)]({awsAccountId:a,region:b,repoName:c}){const o=a123m;try{const d=['push',a+'.dkr.ecr.'+b+o(0x125)+c],f=o(0x11e)+d['join']('\x20'),g=execSync(f,{'stdio':'inherit'})[o(0x12a)]();return g;}catch(h){return Log[o(0x123)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a124d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a124c(){var i=['22356pvvltf','1185HDZoyq','165vpCpqM','3686616gOndZw','search','3933600OeBPJX','apply','21rWjUDZ','8fVmBvY','171KtQwjN','toString','2023096ZAGijl','(((.+)+)+)+$','constructor','408722XjTUsJ','863690aBwKvk','3891918iTjrcn'];a124c=function(){return i;};return a124c();}(function(a,b){var f=a124d,c=a();while(!![]){try{var d=-parseInt(f(0x103))/0x1*(-parseInt(f(0x109))/0x2)+parseInt(f(0x10b))/0x3+-parseInt(f(0x10c))/0x4*(-parseInt(f(0xfc))/0x5)+parseInt(f(0xfe))/0x6+parseInt(f(0x102))/0x7*(-parseInt(f(0x106))/0x8)+-parseInt(f(0x104))/0x9*(-parseInt(f(0x10a))/0xa)+parseInt(f(0xfd))/0xb*(-parseInt(f(0x100))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xcc3dd));var a124b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a124d;if(c){var e=c[g(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){var h=a124d;return a124a[h(0x105)]()[h(0xff)](h(0x107))[h(0x105)]()[h(0x108)](a124a)[h(0xff)](h(0x107));});function a124d(a,b){var c=a124c();return a124d=function(d,e){d=d-0xfc;var f=c[d];return f;},a124d(a,b);}a124a();export{};
|