@maka/maka-cli 4.8.4 → 4.8.5
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/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.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/templates/meteor/project/package.json +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 a118l=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a118l=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(0xa1))/0x1*(-parseInt(j(0xb1))/0x2)+parseInt(j(0xd3))/0x3+-parseInt(j(0x93))/0x4*(-parseInt(j(0xa9))/0x5)+parseInt(j(0xa6))/0x6*(-parseInt(j(0x97))/0x7)+-parseInt(j(0xcc))/0x8*(-parseInt(j(0xba))/0x9)+parseInt(j(0xbc))/0xa+-parseInt(j(0xb3))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0xea313));const a118b=(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;};}()),a118a=a118b(this,function(){const k=a118d;return a118a['toString']()['search'](k(0x98))[k(0xb6)]()[k(0x95)](a118a)['search'](k(0x98));});a118a();import a118e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x8b;let f=c[d];return f;},a118d(a,b);}import a118f from'../generators/maka.gen.js';function a118c(){const o=['fsi','withHook','features','200wqiJxJ','components','injectTemplateModule','Updating\x20npm\x20packages\x20...','graphql','template/template.css','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','783594xtVQsZ','maka\x20g:page\x20todos/todos-item','hook/hook.js','string','ssr','engines','hooks','warn','none','52QfydTj','processAndRunGenerator','constructor','baseDir','76174IIxlIn','(((.+)+)+)+$','setTemplate','withTranslations','store','css','getMakaProjectConfig','injectAtBeginningOfFile','component/component.js','fileName','839IpmvMe','template/template.html','html','ramda','layout','270ehAHAj','.html','\x27;\x0a','64585qgEVCu','installNpmPackage','hasOwnProperty','route','checkNpmPackage','api','react','test/test.js','130eBToMC','withHooks','10226887EWJVjg','resourceName','relative','toString','template','pages','.app-tests.js','87777KIPxGb','page','17602490KUVTIj','root','/imports/ui/pages','import\x20\x27./','layouts','test','pathFromProject','dir','client','className','true','theme','create'];a118c=function(){return o;};return a118c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a118l(0xc8)]({'name':a118l(0xbb),'aliases':aliases,'usage':a118l(0xd2),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a118l(0x96),'values':[a118l(0x90),a118l(0xcd),a118l(0xb8),a118l(0xc0)]},{'name':a118l(0xca),'boolFlag':!![]}],'examples':[a118l(0x8b)]},async function(a,b){const m=a118l,c=b[m(0x96)]?'/imports/ui/'+b[m(0x96)]:m(0xbe),d=this['fsi']['pathFromApp'](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[m(0xb4)]),paramCase(b[m(0xb4)])]}),f=this[m(0xc9)][m(0x9d)]();let g='';return await this['fsi']['withValue'](f,async()=>{const n=m;typeof f[n(0xb7)]['html']===n(0x8d)&&(f['template'][n(0xa3)]=f[n(0xb7)][n(0xa3)]===n(0xc6)?!![]:![],this['fsi'][n(0x99)]('html',f[n(0xb7)][n(0xa3)]));typeof f[n(0xb7)][n(0xc1)]===n(0x8d)&&(f[n(0xb7)][n(0xc1)]=f[n(0xb7)][n(0xc1)]==='true'?!![]:![],this['fsi'][n(0x99)](n(0xc1),f[n(0xb7)][n(0xc1)]));typeof f[n(0xb7)][n(0x9c)]===n(0x8d)&&(f[n(0xb7)][n(0x9c)]=f[n(0xb7)][n(0x9c)]===n(0xc6)?!![]:![],this[n(0xc9)][n(0x99)](n(0x9c),f[n(0xb7)][n(0x9c)]));typeof f[n(0xb7)]['js']===n(0x8d)&&(f[n(0xb7)]['js']=f[n(0xb7)]['js']===n(0xc6)?!![]:![],this[n(0xc9)][n(0x99)]('js',f[n(0xb7)]['js']));!f[n(0xcb)]&&(f[n(0xcb)]={});!b[n(0xbd)]&&!this[n(0xc9)][n(0xad)](n(0xa4))&&(Log[n(0x91)](n(0xcf)),this[n(0xc9)][n(0xaa)]('ramda',{'cwd':d}));const h={'name':pascalCase(b[n(0xb4)]),'myPath':a118e[n(0xb5)](this[n(0xc9)][n(0xc2)]({}),e),'cssCaseName':paramCase(b[n(0xb4)]),'className':pascalCase(b[n(0xb4)]),'camelCaseName':camelCase(b[n(0xb4)]),'fileName':paramCase(b[n(0xb4)]),'graphql':f[n(0x8f)][n(0xd0)],'features':f[n(0xcb)],'client':f[n(0x8f)][n(0xc4)],'api':f[n(0x8f)][n(0xae)],'ssr':f[n(0x8f)][n(0x8e)],'isStore':b['hasOwnProperty'](n(0x9b)),'isComponent':b[n(0xab)]('component'),'isLayout':b[n(0xab)](n(0xa5)),'withTranslations':f[n(0xcb)][n(0x9a)],'test':f[n(0x8f)]['test'],'theme':f[n(0x8f)][n(0xc7)]};f[n(0xb7)][n(0xa3)]&&await this[n(0xc9)]['template']({'srcPath':n(0xa2),'destPath':e+n(0xa7),'context':h,'config':f});f[n(0xcb)]?.[n(0xb2)]||b['withHook']?await this[n(0xc9)][n(0xb7)]({'srcPath':n(0x8c),'destPath':e+'.js','framework':n(0xaf),'context':h,'config':f}):await this[n(0xc9)]['template']({'srcPath':n(0x9f),'destPath':e+'.js','framework':'react','context':h,'config':f});f[n(0x8f)][n(0xc1)]!==n(0x92)&&await this[n(0xc9)][n(0xb7)]({'srcPath':n(0xb0),'destPath':e+n(0xb9),'framework':n(0xaf),'context':h,'config':f});f['template'][n(0x9c)]&&await this[n(0xc9)][n(0xb7)]({'srcPath':n(0xd1),'destPath':e+'.css','context':Object['assign']({},h,{'className':paramCase(b[n(0xb4)])}),'config':f});f[n(0x8f)]['client']!==n(0xaf)&&f[n(0x8f)][n(0xc4)]!=='vanilla'?(f['template'][n(0x9c)]&&await this[n(0xc9)][n(0x9e)]({'filePath':e+'.'+f[n(0x8f)]['js'],'content':n(0xbf)+h[n(0xa0)]+'.'+f[n(0x8f)]['html']+n(0xa8)+n(0xbf)+h[n(0xa0)]+'.'+f[n(0x8f)][n(0x9c)]+'\x27;'}),!f[n(0xb7)][n(0x9c)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[n(0x8f)]['js'],'content':n(0xbf)+h['fileName']+'.'+f[n(0x8f)][n(0xa3)]+'\x27;'})):f[n(0xb7)][n(0x9c)]&&await this[n(0xc9)][n(0x9e)]({'filePath':e+'.'+f[n(0x8f)]['js'],'content':'import\x20\x27./'+h[n(0xa0)]+'.'+f[n(0x8f)][n(0x9c)]+'\x27;'});const i=b['dir']?'/'+b[n(0xc3)]+'/':'/';g=''+c+i+h[n(0xa0)]+'/'+h['fileName'],await this[n(0xc9)][n(0xce)](h[n(0xc5)],f,g),!b[n(0xbd)]&&await a118f[n(0x94)](n(0xac),[i+h[n(0xc5)]],b);}),g+'.'+f['engines']['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119j=a119d;function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x78;let f=c[d];return f;},a119d(a,b);}(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(0x89))/0x1+-parseInt(h(0x7b))/0x2*(-parseInt(h(0x86))/0x3)+-parseInt(h(0x7d))/0x4+-parseInt(h(0x8a))/0x5+-parseInt(h(0x8c))/0x6+-parseInt(h(0x7f))/0x7+parseInt(h(0x8d))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xba2a6));function a119c(){const m=['maka\x20g:publish\x20todos','23818wZrCjl','fsi','2766568BZGNyF','resourceName','8730246WhXwqw','search','create','tsx','engines','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','39rARLLy','(((.+)+)+)+$','templateContent','1261112VaoRey','6470610JYmFNp','withValue','1720728jYmQvV','22930680uqCFTp','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','toString','getMakaProjectConfig','publish'];a119c=function(){return m;};return a119c();}const a119b=(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;};}()),a119a=a119b(this,function(){const i=a119d;return a119a[i(0x8f)]()[i(0x80)](i(0x87))[i(0x8f)]()['constructor'](a119a)['search']('(((.+)+)+)+$');});a119a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a119j(0x81)]({'name':a119j(0x79),'aliases':['p'],'usage':a119j(0x8e),'shortDesc':a119j(0x84),'validOpts':[],'examples':[a119j(0x7a)]},async function(a,b){const k=a119j,c=this[k(0x7c)][k(0x78)]();await this[k(0x7c)][k(0x8b)](c,async()=>{const l=k,d={'name':b[l(0x7e)],'collection':paramCase(b[l(0x7e)]),'noRename':!![]};let e='js';c[l(0x83)]['js']===l(0x82)&&(e='ts');const f=this[l(0x7c)]['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[l(0x7c)][l(0x88)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});await this[l(0x7c)][l(0x85)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120B=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=parseInt(y(0x159))/0x1*(-parseInt(y(0x12e))/0x2)+-parseInt(y(0x163))/0x3+-parseInt(y(0x129))/0x4*(parseInt(y(0x130))/0x5)+-parseInt(y(0x15d))/0x6*(-parseInt(y(0x12d))/0x7)+parseInt(y(0x124))/0x8+parseInt(y(0x141))/0x9*(parseInt(y(0x11e))/0xa)+-parseInt(y(0x166))/0xb*(-parseInt(y(0x14a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0xcd013));function a120c(){const K=['const\x20publicRoutes\x20=\x20(<>','config','toLowerCase','Adding\x20route\x20','getMakaProjectConfig','<Route','injectAtEndOfFile','PrivateLayout','52335iBuvBL','vanilla','withValue','length','join','url','includes','/imports/ui/pages','resourceName','7668vAWrED','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','maka\x20g:route\x20todosEdit\x20todos/:id/edit','info','true','filter','toString','warn','imports','client','templateName','apply','newForm','\x0a\x09\x09','startup','2461xviIPo','baseDir','pathFromApp','components','2958qhVEnR','hooks','private','fsi','Scaffolding\x20for\x20a\x20Route.','readFileLines','1598835QpelOp','error','fileContainsString','34683xLYmyr','/imports/ui/','injectIntoFile','(((.+)+)+)+$','\x20already\x20exists.\x20\x20Skipping.','ssr','templateContent','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','<Router','420kvJaUd','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','routes.js','layouts','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','react','1102544yGOCnw','map','engines','injectAfterLineNumber','withHook','4dDrotF','features','pages','\x20to\x20','9331hpEEGM','1046ulkcoc','maka\x20g:route\x20pages/lists/listIndex\x20lists','1971185RxUTxc','Invalid\x20directory\x20option\x20\x22','Valid\x20options\x20are:\x20','create','maka\x20g:route\x20pages/about','layout','lib','const\x20privateRoutes\x20=\x20(<>','constructor'];a120c=function(){return K;};return a120c();}const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a120d;if(c){const e=c[z(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const A=a120d;return a120a[A(0x150)]()['search']('(((.+)+)+)+$')[A(0x150)]()[A(0x138)](a120a)['search'](A(0x169));});a120a();import a120e from'path';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x119;let f=c[d];return f;},a120d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a120B(0x133)]({'name':'route','aliases':aliases,'validOpts':[a120B(0x15f),a120B(0x135),'only','cwd',a120B(0x13a),'root',a120B(0x128),a120B(0x146),a120B(0x15a)],'usage':a120B(0x11c),'shortDesc':a120B(0x161),'examples':['maka\x20g:route\x20todosIndex\x20todos',a120B(0x14c),a120B(0x11f),a120B(0x12f),a120B(0x134)]},async function(a,b){const C=a120B;try{const c=[C(0x15e),C(0x15c),C(0x12b),C(0x121)];if(b[C(0x15a)]&&!c[C(0x147)](b[C(0x15a)])){Log[C(0x164)](C(0x131)+b[C(0x15a)]+'\x22'),Log[C(0x164)](C(0x132)+c[C(0x145)](',\x20'));throw new UsageError();}const d=this[C(0x160)][C(0x13d)]();await this[C(0x160)][C(0x143)](d,async()=>{const D=C,f=b['private']??![];let g=paramCase(b[D(0x149)]),h='/'+g;a[D(0x144)]>0x1&&(h='/'+a[D(0x14f)](function(n){return n!=='/';})[D(0x145)]('/')[D(0x13b)]());g=camelCase(g);b[D(0x135)]&&(b[D(0x135)]=camelCase(b[D(0x135)]));const i=b[D(0x15a)]?D(0x167)+b[D(0x15a)]:D(0x148),j=a120e[D(0x145)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x135)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[D(0x126)][D(0x153)],'newForm':![],'withTranslations':d[D(0x12a)]['withTranslations']};f&&(k['layout']=D(0x140));let l,m;if(d[D(0x126)][D(0x153)]===D(0x123)){if(d[D(0x126)][D(0x119)]===D(0x14e)){const r=this['fsi'][D(0x15b)]({'pathParts':[D(0x152),D(0x158),D(0x136),D(0x120)]});l=this[D(0x160)][D(0x11b)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][D(0x15b)]({'pathParts':[D(0x152),'startup',D(0x153),'routes.js']});l=this[D(0x160)][D(0x11b)]({'pathParts':[s],'config':d});}const n=await this[D(0x160)][D(0x165)](l,g);if(n){Log[D(0x151)]('Route\x20'+g+D(0x16a));return;}else{const t=this[D(0x160)]['pathFromProject'](l);Log[D(0x14d)](D(0x13c)+g+D(0x12c)+l['replace'](t,''));}const o=this['fsi'][D(0x162)](l)['map']((u,v)=>{const E=D;return u[E(0x147)](E(0x122))?v+0x1:null;})[D(0x14f)](u=>u!==null);let p=this[D(0x160)][D(0x162)](l)[D(0x125)]((u,v)=>{const F=D;return u[F(0x147)](F(0x139))?v+0x1:null;})[D(0x14f)](u=>u!==null),q=this[D(0x160)]['readFileLines'](l)[D(0x125)]((u,v)=>{const G=D;return u[G(0x147)](G(0x137))?v+0x1:null;})[D(0x14f)](u=>u!==null);p[D(0x144)]>0x0&&q[D(0x144)]>0x0&&(k[D(0x156)]=!![]);m=this[D(0x160)][D(0x11a)]({'srcPath':'route/route.js','framework':D(0x123),'context':k,'config':d});if(p['length']>0x0||q[D(0x144)]>0x0){this[D(0x160)][D(0x127)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x144)]>0x0)q=this[D(0x160)][D(0x162)](l)[D(0x125)]((u,v)=>{const H=D;return u[H(0x147)](H(0x137))?v+0x1:null;})[D(0x14f)](u=>u!==null),this['fsi']['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x154)]+'}','lineNumber':q[0x0]});else p[D(0x144)]>0x0?(p=this[D(0x160)][D(0x162)](l)[D(0x125)]((u,v)=>{const I=D;return u[I(0x147)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x14f)](u=>u!==null),this['fsi'][D(0x127)]({'filePath':l,'content':'\x09{'+k[D(0x154)]+'}','lineNumber':p[0x0]})):Log[D(0x151)](D(0x14b)+l);}else{const u=this[D(0x160)]['readFileLines'](l)[D(0x125)](x=>{const J=D;return x[J(0x147)]('\x22*\x22');}),v=u['indexOf'](!![])>-0x1,w=v?D(0x13e):'</Router>';await this[D(0x160)][D(0x168)]({'filePath':l,'content':'\x0a\x09\x09'+m+D(0x157),'begin':D(0x11d),'end':w});}}else{if(d[D(0x126)][D(0x153)]===D(0x142)){const x=this[D(0x160)][D(0x15b)]({'pathParts':[D(0x152),'startup',D(0x153),D(0x120)]});l=this[D(0x160)][D(0x11b)]({'pathParts':[x],'config':d}),m=this[D(0x160)][D(0x11a)]({'srcPath':'route/route.js','context':k}),await this[D(0x160)][D(0x13f)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121l=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=-parseInt(j(0x98))/0x1+parseInt(j(0x7e))/0x2+-parseInt(j(0x90))/0x3+parseInt(j(0x86))/0x4*(parseInt(j(0x89))/0x5)+-parseInt(j(0x97))/0x6+parseInt(j(0x8d))/0x7*(parseInt(j(0x7a))/0x8)+-parseInt(j(0x77))/0x9*(-parseInt(j(0x84))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xd049f));function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x76;let f=c[d];return f;},a121d(a,b);}const a121b=(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;};}()),a121a=a121b(this,function(){const k=a121d;return a121a[k(0x76)]()[k(0x7f)](k(0x8e))[k(0x76)]()[k(0x7c)](a121a)['search'](k(0x8e));});a121a();import{camelCase,paramCase,pascalCase}from'change-case';function a121c(){const o=['maka\x20g:svc\x20service-logger\x20--type=logger','tsx','Installing\x20winston','logger','40WglDVx','services','10288obUDLk','service/logger/logger.js','resourceName','745bzguvR','create','winston\x20setimmediate','type','3402wYqDfi','(((.+)+)+)+$','installNpmPackage','3206124NExKMO','maka\x20{generate,\x20g}:{service}\x20<resource-name>','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','lib','template','fsi','pathFromApp','5808342ugGmsE','6605HxsAdn','checkNpmPackage','withValue','toString','368019EshcCS','engines','imports','21336InBlVz','getMakaProjectConfig','constructor','svc','2107134BNUjMS','search'];a121c=function(){return o;};return a121c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a121l(0x8a)]({'name':'service','aliases':[a121l(0x7d)],'usage':a121l(0x91),'shortDesc':a121l(0x92),'requiredOpts':[{'name':a121l(0x8c),'values':[a121l(0x83)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121l(0x80)]},async function(a,b){const m=a121l;try{const c=this[m(0x95)][m(0x7b)]();await this[m(0x95)][m(0x9a)](c,async()=>{const n=m,d=this[n(0x95)]['pathFromApp']({}),f=paramCase(b[n(0x88)]),g={'name':pascalCase(b[n(0x88)]),'fileName':f,'camelCase':camelCase(b[n(0x88)]),'type':b[n(0x8c)],'engine':c[n(0x78)]['js'],'noRename':!![]};let h='js';c['engines']['js']===n(0x81)&&(h='ts');if(b[n(0x8c)]===n(0x83)){!this[n(0x95)][n(0x99)]('winston')&&await this[n(0x95)][n(0x8f)](n(0x8b),{'cwd':d,'msg':n(0x82)});const i=this[n(0x95)][n(0x96)]({'pathParts':[n(0x79),'startup',n(0x93),n(0x85),f+'.'+h]});await this[n(0x95)][n(0x94)]({'srcPath':n(0x87),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0x14c))/0x1+parseInt(f(0x143))/0x2+parseInt(f(0x149))/0x3*(parseInt(f(0x150))/0x4)+parseInt(f(0x14f))/0x5*(-parseInt(f(0x144))/0x6)+-parseInt(f(0x14b))/0x7*(-parseInt(f(0x151))/0x8)+-parseInt(f(0x148))/0x9+-parseInt(f(0x147))/0xa*(parseInt(f(0x14d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x61b45));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var g=a122d;return a122a['toString']()['search'](g(0x14e))[g(0x145)]()[g(0x14a)](a122a)[g(0x146)](g(0x14e));});a122a();function a122c(){var h=['210qVlnUZ','1150803oDvPpN','3IxjPQc','constructor','14yoeydy','23305hGqLeI','25399WAfLCo','(((.+)+)+)+$','30rPwdgW','69148LkzzaG','955576jipGsx','1413402zaFuff','363024fLeanG','toString','search'];a122c=function(){return h;};return a122c();}function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x143;var f=c[d];return f;},a122d(a,b);}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d
|
|
1
|
+
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=parseInt(i(0xf5))/0x1+-parseInt(i(0xf1))/0x2+-parseInt(i(0xe5))/0x3+-parseInt(i(0xe3))/0x4*(parseInt(i(0xe8))/0x5)+-parseInt(i(0xee))/0x6+parseInt(i(0xe6))/0x7+parseInt(i(0xe7))/0x8*(parseInt(i(0xea))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xea152));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0xf4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a[k(0xf6)]()[k(0xe9)](k(0xde))['toString']()[k(0xdf)](a123a)[k(0xe9)](k(0xde));});a123a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a123e from'path';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0xde;let f=c[d];return f;},a123d(a,b);}Generator[a123l(0xf2)]({'name':'sslconfig','usage':a123l(0xf0),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':['env'],'examples':[a123l(0xe1)],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0xef)][m(0xf3)](),d=await this[m(0xef)][m(0xec)](),f=this['fsi']['getAppConfigPath'](b[m(0xeb)]),g=a123e[m(0xe0)](f,m(0xe2),'openssl.conf');await this[m(0xef)]['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0xef)][n(0xed)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0xe4),'context':h,'config':c});});}catch(h){Log['error'](h);}});function a123c(){const o=['create','getMakaProjectConfig','apply','1019178nlpDRl','toString','(((.+)+)+)+$','constructor','join','maka\x20g:sslconfig\x20--env\x20dev','_keys','187976eGHuyB','service','1885119OpMckk','11002425PWLkKk','5464KEETEe','25IsMbdp','search','729fXIaVu','env','getGlobalConfig','template','4785498zcqjGp','fsi','maka\x20{generate,\x20g}:sslconfig','53096rmalzB'];a123c=function(){return o;};return a123c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124A=a124d;function a124c(){const D=['translations','i18next','translation','error','66HQeEeF','features.withTranslations','564CsmxHP','557340TpImbR','search','exit','i18next\x20i18next-browser-languagedetector\x20react-i18next','231361kFFxpf','index.js','\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','22omswPI','maka\x20g:translation\x20--lang=fr','isFile','export\x20{\x20default\x20as\x20','Generate\x20a\x20new\x20locale\x20translation','index.','setProjectConfig','Locale\x20already\x20exported:\x20','(((.+)+)+)+$','locales','.js','ssr','3812wAdhOy','maka\x20g:translation\x20--lang=en\x20(default)','20151YcLHQj','warn','startup','imports','readFileSync','apply','injectAtEndOfFile','findAppDirectory','checkNpmPackage','service','\x20}\x20from\x20\x27./','engines','1752640gMLktD','toString','root','lib','client','rewriteDestinationPathForEngine','i18n/index.js','i18n/locales.js','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','template','true','import\x20\x27../lib/services/translations/i18n\x27;\x0a','services','withValue','grep','injectAtBeginningOfFile','pathFromApp','getGlobalConfig','2792QlJWFq','3045288lKXJnt','maka\x20g:translation\x20--lang=de','import\x20\x27../lib/services/translations/i18n\x27;','lang','fsi','appName','installNpmPackage','1049690PrERFI','8YNRwOp','maka\x20{generate,\x20g}:translation'];a124c=function(){return D;};return a124c();}function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xa5;let f=c[d];return f;},a124d(a,b);}(function(a,b){const x=a124d,c=a();while(!![]){try{const d=parseInt(x(0xe7))/0x1+parseInt(x(0xb1))/0x2*(parseInt(x(0xe2))/0x3)+parseInt(x(0xda))/0x4*(-parseInt(x(0xbf))/0x5)+-parseInt(x(0xe0))/0x6*(-parseInt(x(0xe3))/0x7)+parseInt(x(0xd1))/0x8*(-parseInt(x(0xb3))/0x9)+-parseInt(x(0xd9))/0xa*(-parseInt(x(0xa5))/0xb)+parseInt(x(0xd2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x6d122));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a124d;if(c){const e=c[y(0xb8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const z=a124d;return a124a['toString']()[z(0xe4)](z(0xad))[z(0xc0)]()['constructor'](a124a)[z(0xe4)](z(0xad));});a124a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a124e from'fs';Generator['create']({'name':a124A(0xde),'usage':a124A(0xdb),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124A(0xd5),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a124A(0xa9),'description':a124A(0xe9),'examples':[a124A(0xb2),a124A(0xa6),a124A(0xd3)],'validOpts':[]},async function(a,b){const B=a124A;try{const c=this[B(0xd6)]['getMakaProjectConfig'](),d=this[B(0xd6)][B(0xd0)](),f=this['fsi'][B(0xba)]();await this[B(0xd6)][B(0xcc)](c,async()=>{const C=B;try{!b[C(0xd5)]&&(b['lang']='en');!b[C(0xc1)]&&!this[C(0xd6)][C(0xbb)](C(0xdd))&&(Log[C(0xb4)](C(0xc7)),this[C(0xd6)][C(0xd8)](C(0xe6),{'cwd':f}),this[C(0xd6)][C(0xab)](C(0xe1),!![]));const g=this[C(0xd6)][C(0xcf)]({'pathParts':[C(0xb6),C(0xb5),C(0xc3),C(0xe8)]}),h=this[C(0xd6)][C(0xc4)]({'pathParts':[g],'config':c}),i=this[C(0xd6)][C(0xcd)](a124e[C(0xb7)](h)[C(0xc0)](),C(0xd4))[0x0]&&!![];if(c[C(0xbe)][C(0xb0)]===C(0xc9)){!i&&this[C(0xd6)][C(0xce)]({'filePath':h,'content':C(0xca)});const t=this['fsi']['pathFromApp']({'pathParts':[C(0xb6),C(0xb5),'server','index.js']}),u=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a124e[C(0xb7)](u)[C(0xc0)](),C(0xd4))[0x0]&&!![];!v&&this['fsi'][C(0xce)]({'filePath':u,'content':C(0xca)});}else!i&&this['fsi'][C(0xce)]({'filePath':h,'content':C(0xca)});const j={'app':d[C(0xd7)],'config':c},k=this['fsi'][C(0xcf)]({'pathParts':['imports',C(0xb5),C(0xc2),C(0xcb),C(0xdc),'i18n.js']}),l=this[C(0xd6)]['isFile'](this[C(0xd6)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this['fsi'][C(0xc8)]({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0xbc),'context':j,'config':c});const m=this[C(0xd6)][C(0xcf)]({'pathParts':[C(0xb6),C(0xb5),C(0xc2),C(0xcb),C(0xdc),C(0xae),b[C(0xd5)]+C(0xaf)]}),n=this[C(0xd6)][C(0xc4)]({'pathParts':[m],'config':c}),o=this[C(0xd6)][C(0xa7)](n);!o?await this[C(0xd6)][C(0xc8)]({'srcPath':C(0xc6),'destPath':m,'framework':'service','context':j,'config':c}):Log['warn']('Locale\x20already\x20defined:\x20'+n);const p=this[C(0xd6)][C(0xcf)]({'pathParts':['imports',C(0xb5),C(0xc2),C(0xcb),C(0xdc),C(0xae),C(0xaa)+c['engines']['js']]}),q=this[C(0xd6)][C(0xc4)]({'pathParts':[p],'config':c}),r=this[C(0xd6)][C(0xa7)](q);!r&&await this[C(0xd6)][C(0xc8)]({'srcPath':C(0xc5),'destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0xd6)][C(0xcd)](a124e[C(0xb7)](p)[C(0xc0)](),'default\x20as\x20'+b[C(0xd5)])[0x0]&&!![];!s?await this['fsi'][C(0xb9)]({'filePath':p,'content':C(0xa8)+b[C(0xd5)]+C(0xbd)+b[C(0xd5)]+'\x27;'}):Log['warn'](C(0xac)+p);}catch(w){Log['error'](w),process[C(0xe5)](0x1);}});}catch(g){Log[B(0xdf)](g),process[B(0xe5)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=parseInt(j(0xd4))/0x1+parseInt(j(0xcf))/0x2+parseInt(j(0xd3))/0x3*(parseInt(j(0xd0))/0x4)+-parseInt(j(0xdc))/0x5+-parseInt(j(0xd9))/0x6+parseInt(j(0xe6))/0x7+-parseInt(j(0xe4))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x5f7b6));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0xd2)]()[l(0xd1)](l(0xda))[l(0xd2)]()[l(0xd7)](a125a)[l(0xd1)]('(((.+)+)+)+$');});a125a();import a125e from'minimist';import a125f from'os';import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125m(0xde)]),__dirname=a125g[a125m(0xd5)](__filename);function a125c(){const n=['floor','env','1381360CTOBsd','parse','4438308rCEmjq','962052blGXSH','52qiCJrK','search','toString','13995CrYETu','360997nCdJHN','dirname','apply','constructor','argv','3550206wTkXtL','(((.+)+)+)+$','BROWSERSLIST_IGNORE_OLD_DATA','1906235cxUPaW','slice','url','NODE_NO_WARNINGS','run','--max-old-space-size='];a125c=function(){return n;};return a125c();}global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a125f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0xe2)](total_mem_in_mb),process[a125m(0xe3)]['TOOL_NODE_FLAGS']=a125m(0xe1)+total_mem_in_mb,process[a125m(0xe3)][a125m(0xdb)]='1',process[a125m(0xe3)][a125m(0xdf)]='1';const argv=a125e(process[a125m(0xd8)][a125m(0xdd)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0xe5)](JSON['stringify'](argv));function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0xcf;let f=c[d];return f;},a125d(a,b);}delete deepCopyArgv['_'];const opts=a125h['camelizeKeys'](deepCopyArgv);a125i[a125m(0xe0)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d
|
|
1
|
+
function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0xad;let f=c[d];return f;},a126d(a,b);}const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=-parseInt(I(0xe2))/0x1+parseInt(I(0xc8))/0x2*(parseInt(I(0xdb))/0x3)+-parseInt(I(0xea))/0x4+-parseInt(I(0xe0))/0x5+parseInt(I(0xcc))/0x6*(-parseInt(I(0xc3))/0x7)+-parseInt(I(0xf2))/0x8+parseInt(I(0xeb))/0x9*(parseInt(I(0xd2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x55e2c));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0xfe)]()[K(0xbf)](K(0xf4))[K(0xfe)]()[K(0xd1)](a126a)['search'](K(0xf4));});a126a();import a126e from'path';import a126f from'os';import a126g from'fs';const homeDir=a126f[a126L(0xf6)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a126c(){const a2=['AppData','validateMakaSubscription','error','shortDesc','None','3seWxCm','\x20installed\x20to\x20use\x20this\x20command.','dir','You\x20must\x20have\x20','ask','1983705RAYwxK','aliases','579832XVlCaw','parent','findProjectDirectory','cwd','string','Please\x20choose\x20a\x20valid\x20value\x20for\x20','\x20version\x20','includes','786312LklVOQ','8693676srSkMk','singleLicense','length','isCommand','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','concat','To\x20use\x20this\x20generator,\x20\x22','3813408JFyCri','proCommands','(((.+)+)+)+$','apply','homedir','resourceName','proGenerators','To\x20use\x20this\x20command,\x20\x22','existsSync','isPro','validateMeteorInstall','map','toString','find','Please\x20choose\x20a\x20value\x20for\x20','validateMakaProject','Please\x20provide\x20a\x20value\x20for\x20','formatToNamedParam','validateParams','platform','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','description','.meteor','config','push','match','list','No\x20usage\x20provided.','Invalid\x20value\x20for\x20','roles','remapShortToLong','env','fsi','disableAuthCheck','search','isGenerator','Invalid\x20option:\x20','name','28SCHwRT','join','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','options','exit','167286XDjatw','help','indexOf','examples','20934txiQtQ','charAt','validateEngines','Local','usage','constructor','20bEAHwT','Please\x20provide\x20a\x20resource\x20name:','No\x20description\x20provided.','keys'];a126c=function(){return a2;};return a126c();}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'];[a126L(0xbd)];[a126L(0xc6)];['name'];[a126L(0xe3)];['_handler'];constructor(){this['docker']=new Docker(),this['fsi']=new FSI();}['getShortName'](a){const M=a126L;return a[M(0xcd)](0x0);}[a126L(0xbb)](a,b){const N=a126L,c=this[N(0xae)](b),d={...a};for(const e of c){const f=this['getShortName'](e[N(0xc2)]);a[f]&&(d[e[N(0xc2)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const O=a126L;if(a['every'](b=>typeof b===O(0xe6)))return a[O(0xfd)](b=>({'name':b}));return a;}[a126L(0xb6)](a){const P=a126L,b=[this[P(0xc2)]]['concat'](this['options'][P(0xe1)]||[]);return this[P(0xe3)]&&b[P(0xb5)](this[P(0xe3)]),b['includes'](a);}[a126L(0x101)](){const Q=a126L,a=this[Q(0xbd)][Q(0xe4)]();return a!==![]?!![]:![];}[a126L(0xfc)](){const R=a126L;let a=a126e[R(0xc4)](homeDir,R(0xb3));const b=process[R(0xb0)]==='win32';if(b){a=a126e['join'](homeDir,R(0xd6),R(0xcf),R(0xb3));if(!a126g[R(0xfa)](a))return![];}else{if(!a126g['existsSync'](a))return![];}return!![];}[a126L(0xce)](a){const S=a126L,b=this[S(0xbd)]['getMakaProjectConfig'](),c=b['engines'],d=Object['keys'](a);if(d[S(0xed)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](S(0xde)+e+S(0xe8)+a[e]+S(0xdc));throw UsageError;}}}async[a126L(0xaf)](a,b,c){const T=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[T(0xd5)](b);if(h[T(0xe9)](T(0xf7))&&b['resourceName']===undefined&&!g){const m=await Actions['ask'](T(0xd3));b[T(0xf7)]=m;}let i=[],j=b;if(d){i=this[T(0xae)](d),j=this[T(0xbb)](b,i);if(i&&i?.[T(0xed)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0xd5)](j)[T(0xe9)](o)){if(o===T(0xbc)){const r=this['fsi']['getAppProjectConfigs'](),s=await Actions[T(0xc6)]({'type':T(0xb7),'name':'env','message':'Please\x20choose\x20an\x20environment','choices':r});b[T(0xbc)]=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':T(0x100)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](T(0xad)+o);if(v[T(0xb6)](q))b[o]=v;else{Log[T(0xd8)](T(0xb9)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0xdf)](T(0xad)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0xe9)](x)){Log[T(0xd8)](T(0xb9)+o+':\x20'+x);throw new UsageError();}}}}let k=this[T(0xae)](f),l=b;if(k&&Object['keys'](k)?.[T(0xed)]>0x0){k=k[T(0xf0)](i||[]),k[T(0xb5)]({'name':T(0xf7),'hidden':!![]}),k[T(0xb5)]({'name':T(0xc9),'boolFlag':!![]}),k[T(0xb5)]({'name':T(0xdd),'hidden':!![]}),k['push']({'name':T(0xe5),'hidden':!![]}),k[T(0xb5)]({'name':'root','hidden':!![]}),k[T(0xb5)]({'name':T(0xb4),'hidden':!![]}),l=this[T(0xbb)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0xe9)](B))){const C=A;if(C){const D=await Actions[T(0xc6)]({'type':'list','name':z,'message':T(0xe7)+z,'choices':A});l[z]=D[z];}}if(k[T(0xed)]>0x0)for(const E of Object[T(0xd5)](l)){const F=k[T(0xff)](G=>G[T(0xc2)]===E);if(!F){Log[T(0xd8)](T(0xc1)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[T(0xe9)](G)){Log[T(0xd8)]('Invalid\x20argument:\x20'+G);const H=await Actions[T(0xdf)](T(0xc5)+G);a[a[T(0xca)](G)]=H;}}return Object['assign'](j,l);}async[a126L(0xd7)](a){const U=a126L;try{if(!a)return;const b=await this[U(0xbd)]['getPro']();!b&&(Log[U(0xd8)](U(0xef)),process[U(0xc7)](0x1));const c=!b?.[U(0xba)][U(0xe9)](U(0xec))&&!b?.[U(0xba)][U(0xe9)]('domainLicense');if(this[U(0xee)](a)){const d=U(0xf9)+a[U(0xc2)]+U(0xb1);if(a[U(0xc6)][U(0xbe)])return;const f=b?.[U(0xf3)][U(0xe9)](a[U(0xc2)])||b?.['proCommands'][U(0xe9)](a['parent']||'')||this[U(0xc6)][U(0xfb)];if(f&&c)throw d;}else{if(this[U(0xc0)](a)){const g=b?.[U(0xf8)][U(0xe9)](a[U(0xc2)])||b?.[U(0xf8)][U(0xe9)](a['parent']||'');if(g&&c)throw U(0xf1)+a[U(0xc2)]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log['error'](h),process[U(0xc7)](0x1);}}[a126L(0xee)](a){const V=a126L;return V(0xc6)in a;}['isGenerator'](a){const W=a126L;return!(W(0xc6)in a);}[a126L(0xb2)](){const X=a126L;return this['options'][X(0xb2)]||this['options']['shortDesc']||X(0xd4);}['shortDesc'](){const Y=a126L;return this['options'][Y(0xd9)]||'NIE';}[a126L(0xd0)](){const Z=a126L;return this['options'][Z(0xd0)]||Z(0xb8);}['examples'](){const a0=a126L;return this[a0(0xc6)][a0(0xcb)]||[];}['aliases'](){const a1=a126L;return this[a1(0xc6)][a1(0xe1)]||a1(0xda);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127h=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x98;let f=c[d];return f;},a127d(a,b);}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0xa5))/0x1+-parseInt(f(0xa1))/0x2*(parseInt(f(0x9d))/0x3)+-parseInt(f(0xa0))/0x4*(parseInt(f(0xa4))/0x5)+-parseInt(f(0xad))/0x6*(-parseInt(f(0x98))/0x7)+parseInt(f(0xaa))/0x8*(parseInt(f(0x9f))/0x9)+-parseInt(f(0xab))/0xa+-parseInt(f(0xa2))/0xb*(-parseInt(f(0xa9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x4ba63));const a127b=(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;};}()),a127a=a127b(this,function(){const g=a127d;return a127a[g(0x9e)]()[g(0xa8)](g(0x99))['toString']()['constructor'](a127a)[g(0xa8)]('(((.+)+)+)+$');});a127a();function a127c(){const l=['toString','27kzkqiJ','196WweNUS','203954VZXooj','11kRjpwc','ask','18685gJhAHi','46902dsqjTO','prompt','options','search','1907976jUOJPz','896232LroOQj','1589550IdXGbc','confirm','18FOdHDa','494473BKRJfG','(((.+)+)+)+$','input','answer','password','3zLWmcf'];a127c=function(){return l;};return a127c();}import a127e from'inquirer';export class Actions{static async[a127h(0xa3)](a,b){const i=a127h,{answer:c}=await a127e[i(0xa6)]({'type':b?i(0x9c):i(0x9a),'name':i(0x9b),'message':a});return c;}static async[a127h(0xac)](a,b=![]){const j=a127h,{answer:c}=await a127e[j(0xa6)]({'type':j(0xac),'name':j(0x9b),'message':a,'default':b});return c;}static async[a127h(0xa7)](a){const k=a127h,b=await a127e[k(0xa6)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128r=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x11a))/0x1+-parseInt(p(0x12d))/0x2+parseInt(p(0xf4))/0x3*(-parseInt(p(0x14b))/0x4)+parseInt(p(0x13b))/0x5+parseInt(p(0x109))/0x6+-parseInt(p(0x100))/0x7*(parseInt(p(0xea))/0x8)+parseInt(p(0x13d))/0x9*(parseInt(p(0x14e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xbc6c3));const a128b=(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;};}()),a128a=a128b(this,function(){const q=a128d;return a128a[q(0xd9)]()[q(0xe8)](q(0x131))[q(0xd9)]()[q(0xed)](a128a)[q(0xe8)]('(((.+)+)+)+$');});a128a();import a128e from'fs';import a128f from'path';function a128c(){const V=['createKeyPair','cidr','success','description','ask','Please\x20choose\x20a\x20VPC:\x20[0]\x20','\x20NAME:\x20','GroupName','ignore','ec2createSG','8GkkWAb','warn','key','45980wNlmvG','Error\x20saving\x20pem\x20file,\x20aborting','\x20VPCID:\x20','Pem\x20key\x20saved\x20to\x20','pop','forEach','terminated','ssh.json','0.0.0.0/0','AVAILABLE','\x20PUB_IP:\x20','environment','No\x20instances\x20found','changeResourceRecordSets','running','toString','exit','push','env','Hosted\x20zone\x20created\x20successfully!','getAppConfigPath','Instance\x20rebooted!','find','parse','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','UserData','sgId','.pem.txt','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','fsi','search','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','6452104LyzRhK','stringify','ID:\x20','constructor','Error\x20fetching\x20domain\x20pricing:','utf8','CidrBlock','Reservations','httpStatusCode','length','712572SkUJpx','Web\x20App','RegistrationPrice','\x20ENV:\x20','UPSERT','sgPorts','notice','$metadata','linkEC2ToRoute53','suggestion','reason','Port\x20','7LSOLap','Error\x20generating\x20key\x20pair','chooseVPC','GroupId','statusCode','error','_keys','listHostedZonesByName','sgIds','2280768CusgAC','ec2describeInstances','$response','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','\x20STATUS:\x20','chooseInstance','tcp','checkDomainAvailability','ec2describeKeys','Key\x20Name:\x20[','pem','send','KeyName','**\x20Available\x20\x20VPCs\x20**','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','registerDomain','981464fhBonP','KeyMaterial','Value','readFileSync','tags','getMakaProjectConfig','vpcId','split','createKeyPairEC2Key','ingressRule','\x20CIDR:\x20','ecrCreateRepository','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','/dev/sdh','Error\x20creating\x20hosted\x20zone','\x20to\x20','\x20PRIV_IP:\x20','confirm','join','43434ZWBJyb','privateIp','ec2rebootInstance','instanceId','(((.+)+)+)+$','status','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','HostedZones','now','Name','\x27\x20has\x20been\x20registered\x20successfully.','type','ec2terminateInstance','Description:','2001915savPFy','Prices','4455XMGOmy','Instances','name','VpcId'];a128c=function(){return V;};return a128c();}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';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xcf;let f=c[d];return f;},a128d(a,b);}const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a128r(0xe7)];constructor(){const s=a128r;this[s(0xe7)]=new FSI();}async[a128r(0x125)](a){const t=a128r;try{const b={'repositoryName':a[t(0x13f)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[t(0x105)](f);}}async['route53CreateHostedZone'](a){const u=a128r;try{const b={'CallerReference':''+Date[u(0x135)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[u(0x143)](u(0xdd));}catch(d){Log[u(0x105)](u(0x128)),console[u(0x105)](d);}}async[a128r(0x119)](a,b,c,d){const v=a128r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x114)](f),Log[v(0xfa)]('The\x20domain\x20\x27'+b+v(0x137));}catch(g){Log['error'](v(0x133)),Log[v(0x14c)]('From\x20AWS:'),console['error']('\x20Status\x20Code:\x20'+g[v(0x10b)][v(0x104)]),console[v(0x105)]('\x20Error\x20Rason:\x20'+g['$response'][v(0xfe)]);}}async[a128r(0x110)](a){const w=a128r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x114)](c),e=d['Availability']===w(0xd3);if(e){const f=a[w(0x121)]('.')[w(0x152)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x114)](h);if(i&&i['Prices']&&i[w(0x13c)][0x0]?.[w(0xf6)]){const j=i[w(0x13c)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[w(0x105)](w(0xee),k);}}return{'available':e};}async[a128r(0xfc)](a,b,c){const x=a128r;try{const d=await route53[x(0x107)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[x(0x105)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[x(0x134)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0xf8),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0xd7)](f),Log['notice']('Successfully\x20linked\x20EC2\x20instance\x20'+a+x(0x129)+c);}catch(g){console[x(0x105)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async['ec2create'](a){const y=a128r;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x127),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[y(0x138)],'KeyName':a[y(0x14d)],'MaxCount':a['maxCount'],'MinCount':a['minCount'],'SecurityGroupIds':a[y(0x108)][y(0x121)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':'instance','Tags':a[y(0x11e)]}]};a['userData']&&(b[y(0xe3)]='file://'+a['userData']);const c=new RunInstancesCommand(b),d=await client[y(0x114)](c);return d;}catch(f){Log['error'](f);}}async[a128r(0x139)](a){const z=a128r;try{const b={'InstanceIds':[a[z(0x130)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x114)](c);return d;}catch(f){return Log[z(0x105)](f),{};}}async[a128r(0x122)]({keyName:a,env:b}){const A=a128r,c=this[A(0xe7)][A(0xde)](b),d=a128f[A(0x12c)](c,A(0x106),a+A(0xe5));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[A(0x11b)];if(i){await this[A(0xe7)]['createFile']({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':A(0x149)});const j=this[A(0xe7)]['isFile'](d);if(j)return Log[A(0x143)](A(0x151)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x14f));}else throw new Error(A(0x101));}catch(k){Log[A(0x105)](k),process['exit'](0x1);}}async[a128r(0x123)]({port:a,groupId:b}){const B=a128r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x10f),'IpRanges':[{'CidrIp':B(0xd2),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0xfa)](B(0xff)+a+'\x20opened!'),await client[B(0x114)](d);}async[a128r(0x14a)](a){const C=a128r;try{a[C(0x144)]===''&&(a[C(0x144)]=await Actions[C(0x145)](C(0x13a))||C(0xf5));const b={'Description':a[C(0x144)],'GroupName':a[C(0x13f)],'VpcId':a[C(0x120)]},c=new CreateSecurityGroupCommand(b),d=await client[C(0x114)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[C(0xf9)][C(0xcf)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[C(0x143)]('Created:\x20'+f+C(0x147)+a[C(0x13f)]);}catch(g){return Log[C(0x105)](g),![];}return!![];}async[a128r(0x111)](a){const D=a128r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[D(0x114)](d);if(!f)throw D(0x10c);const {KeyPairs:g}=f;g?(g?.[D(0xcf)]((h,i)=>{const E=D;h[E(0x115)]&&b[E(0xdb)]({'id':i,'name':h['KeyName']});}),b[D(0xf3)]>0x0&&b['forEach'](h=>{const F=D;h[F(0x13f)]===a?.[F(0xfd)]?Log[F(0x143)](F(0xec)+h['id']+F(0x147)+h[F(0x13f)]):Log[F(0xfa)](F(0xec)+h['id']+F(0x147)+h[F(0x13f)]);})):Log[D(0x105)](D(0xe2));}catch(h){Log[D(0x105)](h);}return b;}async['deleteKeyPair'](a){const G=a128r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[G(0x114)](c);}catch(d){Log['error'](d),process[G(0xda)](0x1);}}async[a128r(0x10a)](){const H=a128r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[H(0xf1)]?.[H(0xcf)]((f,g)=>{const I=H;if(f?.[I(0x13e)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[I(0x13e)][0x0],n=m?.[I(0xe0)](({Key:o})=>o===I(0xd5));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[I(0x136)],'name':l,'env':n?.[I(0x11c)]});}}),a[H(0xf3)]>0x0?a[H(0xcf)](f=>{const J=H,g=J(0xec)+f['id']+J(0x147)+f[J(0x13f)]+J(0xf7)+f[J(0xdc)]+J(0x10d)+f[J(0x132)]+'\x20INSTANCE_ID:\x20'+f[J(0x130)]+J(0xd4)+f['publicIp']+J(0x12a)+f[J(0x12e)];if(f['status']===J(0xd0))Log[J(0x105)](g);else f[J(0x132)]===J(0xd8)?Log[J(0x143)](g):Log[J(0xfa)](g);}):Log[H(0x105)](H(0x118));}catch(f){Log[H(0x105)](f);}return a;}async[a128r(0x12f)](a){const K=a128r;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[K(0x114)](c);return d[K(0xfb)][K(0xf2)]===0xc8&&Log['success'](K(0xdf)),d;}catch(f){Log[K(0x105)](f);}}async[a128r(0x102)](){const L=a128r;let a='';Log[L(0xfa)](L(0x116));const b=new DescribeVpcsCommand({}),c=await client[L(0x114)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const M=L;g[M(0x140)]&&g[M(0xf0)]&&e[M(0xdb)]({'id':h,'vpcId':g[M(0x140)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const N=L;console['log'](N(0xec)+g['id']+N(0x150)+g[N(0x120)]+N(0x124)+g[N(0x142)]);});const f=await Actions[L(0x145)](L(0x146))||0x0;e[L(0xcf)](function(g){const O=L;g['id']==f&&(a=g[O(0x120)],Log[O(0x143)](O(0xe9)+a+'\x0a'));});if(a==='')return Log[L(0x105)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a128r(0x10e)](){const P=a128r,a=await this[P(0x10a)]();if(a[P(0xf3)]===0x0)return Log[P(0x105)](P(0xd6)),null;const b=await Actions['ask'](P(0xe6));!b&&(Log[P(0x105)]('Invalid\x20choice'),process[P(0xda)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128r(0x141)]({env:a}){const Q=a128r,b=this[Q(0xe7)][Q(0x11f)](),{appName:c}=b,d=c+'-'+a,f=await Actions[Q(0x145)](Q(0x112)+d+']\x20')||d,{filePath:g}=await this[Q(0x122)]({'keyName':f,'env':a});try{const h=await Actions[Q(0x12b)](Q(0x117),!![]);if(h)try{const i=a128e[Q(0x11d)](a128f[Q(0x12c)]('config',a,Q(0xd1)),Q(0xef)),j=JSON[Q(0xe1)](i);j[Q(0x113)]=a128f[Q(0x12c)](Q(0x106),f+Q(0xe5)),a128e['writeFileSync'](a128f[Q(0x12c)]('config',a,Q(0xd1)),JSON[Q(0xeb)](j,null,0x2));}catch(k){Log[Q(0x105)](k),Log[Q(0x105)](Q(0x126));}}catch(l){Log[Q(0x105)](l),process[Q(0xda)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const R=a128r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[R(0x114)](d),{SecurityGroups:f}=e;f&&f[R(0xcf)](function(i,j){const S=R;i[S(0x148)]&&i['GroupId']&&b['push']({'id':j,'name':i[S(0x148)],'sgId':i[S(0x103)]});});let g='',h=0x0;return b[R(0xcf)](function(i){const T=R;i[T(0x13f)]===a&&(g=i[T(0xe4)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const U=a128r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[U(0x105)](d),process['exit'](0x1);}}}
|
|
1
|
+
const a128r=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0xe6))/0x1+parseInt(p(0xcc))/0x2+parseInt(p(0xbd))/0x3+parseInt(p(0xdb))/0x4+-parseInt(p(0x123))/0x5+-parseInt(p(0xc9))/0x6*(-parseInt(p(0x128))/0x7)+parseInt(p(0xea))/0x8*(-parseInt(p(0x125))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xcd5e2));const a128b=(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;};}()),a128a=a128b(this,function(){const q=a128d;return a128a[q(0x127)]()['search'](q(0xec))[q(0x127)]()['constructor'](a128a)[q(0x11c)](q(0xec));});a128a();import a128e from'fs';import a128f 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 a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xac;let f=c[d];return f;},a128d(a,b);}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{[a128r(0xb5)];constructor(){this['fsi']=new FSI();}async[a128r(0xcb)](a){const s=a128r;try{const b={'repositoryName':a[s(0x130)]},c=new CreateRepositoryCommand(b),d=await ecrClient[s(0x101)](c);return d;}catch(f){Log[s(0x114)](f);}}async[a128r(0xfb)](a){const t=a128r;try{const b={'CallerReference':''+Date[t(0xb1)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[t(0x101)](c),Log['success'](t(0xf5));}catch(d){Log[t(0x114)](t(0xf2)),console['error'](d);}}async['registerDomain'](a,b,c,d){const u=a128r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[u(0xf3)](u(0xb6)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[u(0x114)](u(0x103)),Log['warn'](u(0xe2)),console[u(0x114)](u(0xc3)+g[u(0x104)][u(0x11d)]),console['error'](u(0x107)+g[u(0x104)]['reason']);}}async[a128r(0x10b)](a){const v=a128r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[v(0x101)](c),e=d['Availability']===v(0xbf);if(e){const f=a[v(0xb3)]('.')[v(0x126)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[v(0x101)](h);if(i&&i[v(0xd2)]&&i[v(0xd2)][0x0]?.[v(0xd7)]){const j=i['Prices'][0x0][v(0xd7)];return{'available':e,'cost':j};}}catch(k){console['error'](v(0xca),k);}}return{'available':e};}async[a128r(0xd6)](a,b,c){const w=a128r;try{const d=await route53[w(0xf9)]({'DNSName':c});if(!d?.[w(0xe7)])throw Log['error']('Could\x20not\x20find\x20hosted\x20zone');const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':w(0x110),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[w(0xfd)](f),Log[w(0xf3)](w(0xb4)+a+w(0x102)+c);}catch(g){console[w(0x114)](w(0xe8),g);}}async[a128r(0x116)](a){const x=a128r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[x(0xd4)],'InstanceType':a[x(0x115)],'KeyName':a[x(0xf0)],'MaxCount':a[x(0x10c)],'MinCount':a['minCount'],'SecurityGroupIds':a[x(0x12d)]['split'](','),'SubnetId':a[x(0xc6)],'TagSpecifications':[{'ResourceType':x(0xbb),'Tags':a[x(0x11a)]}]};a[x(0x11f)]&&(b[x(0xac)]='file://'+a['userData']);const c=new RunInstancesCommand(b),d=await client[x(0x101)](c);return d;}catch(f){Log[x(0x114)](f);}}async['ec2terminateInstance'](a){const y=a128r;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[y(0x101)](c);return d;}catch(f){return Log[y(0x114)](f),{};}}async[a128r(0xef)]({keyName:a,env:b}){const z=a128r,c=this[z(0xb5)]['getAppConfigPath'](b),d=a128f[z(0xc7)](c,'_keys',a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[z(0x10a)];if(i){await this['fsi'][z(0xf4)]({'filePath':d,'data':i}),execSync(z(0x122)+d,{'stdio':z(0xdf)});const j=this[z(0xb5)]['isFile'](d);if(j)return Log[z(0x12a)](z(0xed)+d),{'keyName':a,'filePath':d};else throw new Error(z(0xb0));}else throw new Error(z(0xf1));}catch(k){Log[z(0x114)](k),process[z(0xe5)](0x1);}}async[a128r(0xd9)]({port:a,groupId:b}){const A=a128r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':A(0xc1),'IpRanges':[{'CidrIp':A(0xc0),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[A(0xf3)](A(0xd3)+a+A(0x118)),await client['send'](d);}async[a128r(0xfe)](a){const B=a128r;try{a[B(0xe0)]===''&&(a[B(0xe0)]=await Actions[B(0x106)](B(0x120))||B(0xf6));const b={'Description':a[B(0xe0)],'GroupName':a[B(0x130)],'VpcId':a[B(0xff)]},c=new CreateSecurityGroupCommand(b),d=await client[B(0x101)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[B(0x12c)][B(0x11e)](g=>{const C=B;this[C(0xd9)]({'port':parseInt(g),'groupId':f});}),Log['success'](B(0x12e)+f+B(0xbc)+a[B(0x130)]);}catch(g){return Log['error'](g),![];}return!![];}async[a128r(0xe3)](a){const D=a128r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[D(0x11e)]((h,i)=>{const E=D;h[E(0xfa)]&&b[E(0x108)]({'id':i,'name':h['KeyName']});}),b[D(0x113)]>0x0&&b[D(0x11e)](h=>{const F=D;h['name']===a?.[F(0x131)]?Log[F(0x12a)](F(0xba)+h['id']+F(0xbc)+h[F(0x130)]):Log[F(0xf3)](F(0xba)+h['id']+F(0xbc)+h['name']);})):Log[D(0x114)](D(0xb8));}catch(h){Log[D(0x114)](h);}return b;}async['deleteKeyPair'](a){const G=a128r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[G(0x101)](c);}catch(d){Log[G(0x114)](d),process['exit'](0x1);}}async[a128r(0x10f)](){const H=a128r,a=[];try{const b={'Filters':[{'Name':H(0x117),'Values':[H(0x129)]}]},c=new DescribeInstancesCommand(b),d=await client[H(0x101)](c);d[H(0xce)]?.[H(0x11e)]((f,g)=>{const I=H;if(f?.[I(0xf7)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.['find'](({Key:o})=>o===I(0xe9));a[I(0x108)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[I(0x124)],'name':l,'env':n?.[I(0xae)]});}}),a[H(0x113)]>0x0?a[H(0x11e)](f=>{const J=H,g=J(0xba)+f['id']+J(0xbc)+f[J(0x130)]+J(0xd8)+f[J(0x121)]+'\x20STATUS:\x20'+f[J(0xaf)]+J(0xd0)+f['instanceId']+J(0xcd)+f[J(0xb2)]+'\x20PRIV_IP:\x20'+f['privateIp'];if(f['status']===J(0xbe))Log[J(0x114)](g);else f['status']===J(0xfc)?Log['success'](g):Log['notice'](g);}):Log['error']('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[H(0x114)](f);}return a;}async['ec2rebootInstance'](a){const K=a128r;try{const b={'InstanceIds':[a[K(0xe1)]]},c=new RebootInstancesCommand(b),d=await client[K(0x101)](c);return d['$metadata'][K(0xcf)]===0xc8&&Log[K(0x12a)](K(0xc5)),d;}catch(f){Log[K(0x114)](f);}}async['chooseVPC'](){const L=a128r;let a='';Log[L(0xf3)](L(0xdc));const b=new DescribeVpcsCommand({}),c=await client[L(0x101)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const M=L;g[M(0x105)]&&g[M(0xc8)]&&e[M(0x108)]({'id':h,'vpcId':g['VpcId'],'cidr':g[M(0xc8)]});});e[L(0x11e)](function(g){const N=L;console[N(0xf8)](N(0xba)+g['id']+N(0xe4)+g[N(0xff)]+N(0x10d)+g[N(0xde)]);});const f=await Actions[L(0x106)](L(0xc4))||0x0;e[L(0x11e)](function(g){const O=L;g['id']==f&&(a=g['vpcId'],Log[O(0x12a)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[L(0x114)](L(0x11b)),'';return a;}async[a128r(0x100)](){const P=a128r,a=await this[P(0x10f)]();if(a['length']===0x0)return Log[P(0x114)](P(0x10e)),null;const b=await Actions[P(0x106)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[P(0x114)]('Invalid\x20choice'),process[P(0xe5)](0x0));const c=a[P(0xeb)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128r(0x111)]({env:a}){const Q=a128r,b=this['fsi'][Q(0xee)](),{appName:c}=b,d=c+'-'+a,f=await Actions[Q(0x106)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions['confirm'](Q(0xb9),!![]);if(h)try{const i=a128e['readFileSync'](a128f[Q(0xc7)](Q(0xc2),a,Q(0x119)),Q(0xdd)),j=JSON['parse'](i);j[Q(0xd1)]=a128f[Q(0xc7)](Q(0xda),f+Q(0xad)),a128e[Q(0x109)](a128f[Q(0xc7)](Q(0xc2),a,'ssh.json'),JSON[Q(0xb7)](j,null,0x2));}catch(k){Log[Q(0x114)](k),Log['error']('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[Q(0x114)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a128r(0x12b)](a){const R=a128r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[R(0x101)](d),{SecurityGroups:f}=e;f&&f[R(0x11e)](function(i,j){const S=R;i[S(0xd5)]&&i[S(0x12f)]&&b[S(0x108)]({'id':j,'name':i[S(0xd5)],'sgId':i['GroupId']});});let g='',h=0x0;return b[R(0x11e)](function(i){const T=R;i[T(0x130)]===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128r(0x112)](a){const U=a128r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[U(0x101)](c);}catch(d){Log[U(0x114)](d),process[U(0xe5)](0x1);}}}function a128c(){const V=['ecrCreateRepository','583266tCIXlV','\x20PUB_IP:\x20','Reservations','httpStatusCode','\x20INSTANCE_ID:\x20','pem','Prices','Port\x20','imageId','GroupName','linkEC2ToRoute53','RegistrationPrice','\x20ENV:\x20','ingressRule','_keys','144112EBsSKU','**\x20Available\x20\x20VPCs\x20**','utf8','cidr','ignore','description','instanceId','From\x20AWS:','ec2describeKeys','\x20VPCID:\x20','exit','8544LLNQAH','HostedZones','Error\x20linking\x20EC2\x20to\x20Route\x2053:','environment','1800952MUNqPm','find','(((.+)+)+)+$','Pem\x20key\x20saved\x20to\x20','getMakaProjectConfig','createKeyPairEC2Key','key','Error\x20generating\x20key\x20pair','Error\x20creating\x20hosted\x20zone','notice','createFile','Hosted\x20zone\x20created\x20successfully!','Web\x20App','Instances','log','listHostedZonesByName','KeyName','route53CreateHostedZone','running','changeResourceRecordSets','ec2createSG','vpcId','chooseInstance','send','\x20to\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','$response','VpcId','ask','\x20Error\x20Rason:\x20','push','writeFileSync','KeyMaterial','checkDomainAvailability','maxCount','\x20CIDR:\x20','No\x20instances\x20found','ec2describeInstances','UPSERT','createKeyPair','deleteSecurityGroup','length','error','type','ec2create','tag:created-by','\x20opened!','ssh.json','tags','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','search','statusCode','forEach','userData','Description:','env','chmod\x20400\x20','4727630IznKpB','Name','9sWhwqR','pop','toString','3316068rZaYLc','maka-cli','success','getSecurityGroups','sgPorts','sgIds','Created:\x20','GroupId','name','suggestion','UserData','.pem.txt','Value','status','Error\x20saving\x20pem\x20file,\x20aborting','now','publicIp','split','Successfully\x20linked\x20EC2\x20instance\x20','fsi','The\x20domain\x20\x27','stringify','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ID:\x20','instance','\x20NAME:\x20','2235798hsQpuX','terminated','AVAILABLE','0.0.0.0/0','tcp','config','\x20Status\x20Code:\x20','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Instance\x20rebooted!','subnet','join','CidrBlock','12FMIhND','Error\x20fetching\x20domain\x20pricing:'];a128c=function(){return V;};return a128c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a129d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0x86))/0x1+-parseInt(k(0x83))/0x2*(-parseInt(k(0x8d))/0x3)+-parseInt(k(0x8c))/0x4*(parseInt(k(0x82))/0x5)+-parseInt(k(0x8e))/0x6+-parseInt(k(0x91))/0x7*(-parseInt(k(0x88))/0x8)+-parseInt(k(0x87))/0x9*(-parseInt(k(0x92))/0xa)+parseInt(k(0x84))/0xb*(-parseInt(k(0x89))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x61046));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x82;var f=c[d];return f;},a129d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x8a)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0x90)]()[m(0x85)](m(0x8b))[m(0x90)]()[m(0x8f)](e)[m(0x85)](m(0x8b));});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={})));function a129c(){var n=['30850qAcefL','220XFkvxt','336tHQBIQ','678843hetbXm','search','682146NqfdlW','1656QBEyHF','128312ByeOOw','252IqXPFe','apply','(((.+)+)+)+$','25532Vadadf','12789wWzzXS','2933832EnyfLe','constructor','toString','217CFcXTb'];a129c=function(){return n;};return a129c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130m=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a130m=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(0x18c))/0x1*(-parseInt(j(0x192))/0x2)+-parseInt(j(0x189))/0x3*(parseInt(j(0x19d))/0x4)+-parseInt(j(0x186))/0x5+-parseInt(j(0x1a0))/0x6+-parseInt(j(0x1a3))/0x7*(parseInt(j(0x18a))/0x8)+parseInt(j(0x191))/0x9*(parseInt(j(0x187))/0xa)+parseInt(j(0x18b))/0xb*(parseInt(j(0x18d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x4ee63));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a['toString']()[l(0x190)](l(0x18e))['toString']()[l(0x194)](a130a)[l(0x190)](l(0x18e));});a130a();import{execSync}from'child_process';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x186;let f=c[d];return f;},a130d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a130m(0x197)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=[n(0x197),a,b+n(0x196)+c+'.amazonaws.com/'+d],g=n(0x19b)+f[n(0x19a)]('\x20'),h=execSync(g,{'stdio':'inherit'})[n(0x19e)]();return h;}catch(i){return Log[n(0x198)](i),'';}}static[a130m(0x195)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0x199),o(0x19f),o(0x1a1),o(0x1a2),a+o(0x196)+b+o(0x18f)],d=o(0x19b)+c[o(0x19a)]('\x20'),f=execSync(d,{'stdio':o(0x188)})[o(0x19e)]();return f;}catch(g){return Log['error'](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=[p(0x193),a+p(0x196)+b+'.amazonaws.com/'+c],f='docker\x20'+d[p(0x19a)]('\x20'),g=execSync(f,{'stdio':p(0x188)})[p(0x19e)]();return g;}catch(h){return Log[p(0x198)](h),'';}}}function a130c(){const q=['2155665eXjaWG','10PalkQT','inherit','3dXnbLk','104BEGoTZ','7183scnrKQ','437NDIwFr','34716FUHQSM','(((.+)+)+)+$','.amazonaws.com','search','4321638dAcQYF','1858HrudyI','push','constructor','awsLogin','.dkr.ecr.','tag','error','login','join','docker\x20','apply','1332272ZFbDmD','toString','--username','2412930tiKruA','AWS','--password-stdin','255129bZDoUm'];a130c=function(){return q;};return a130c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a131d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x13c))/0x1+-parseInt(f(0x13d))/0x2+-parseInt(f(0x145))/0x3+-parseInt(f(0x13f))/0x4+-parseInt(f(0x148))/0x5*(-parseInt(f(0x147))/0x6)+-parseInt(f(0x140))/0x7+parseInt(f(0x144))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x439f1));function a131c(){var i=['1021822sQQaGV','search','479212HXZcix','3425905NFPhGI','(((.+)+)+)+$','apply','constructor','9063288TJvfwZ','412017wmXnSJ','toString','6CDNdui','150695fMaGRr','371395wTHDYd'];a131c=function(){return i;};return a131c();}var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a[h(0x146)]()[h(0x13e)](h(0x141))[h(0x146)]()[h(0x143)](a131a)['search'](h(0x141));});a131a();function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x13c;var f=c[d];return f;},a131d(a,b);}export{};
|