@maka/maka-cli 4.8.2 → 4.8.4
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
|
|
1
|
+
const a116l=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=parseInt(j(0x16c))/0x1+-parseInt(j(0x187))/0x2*(parseInt(j(0x16d))/0x3)+-parseInt(j(0x170))/0x4*(-parseInt(j(0x182))/0x5)+-parseInt(j(0x172))/0x6*(parseInt(j(0x189))/0x7)+-parseInt(j(0x18a))/0x8+-parseInt(j(0x18c))/0x9*(-parseInt(j(0x176))/0xa)+-parseInt(j(0x178))/0xb*(parseInt(j(0x16b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xee232));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 k=a116d;return a116a['toString']()[k(0x184)](k(0x175))['toString']()['constructor'](a116a)[k(0x184)](k(0x175));});function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x169;let f=c[d];return f;},a116d(a,b);}a116a();import{Generator}from'../generator.js';function a116c(){const o=['4974000FDZGGW','resourceName','3753gdBuDg','methods','maka\x20{generate,\x20g}:{method,\x20m}\x20name','720VwrEvB','1192623tRpQkr','21kCPqRs','-rpc-method\x27;','startup','6381268NyqfHN','dir','6993402LeFEYs','-rpc-method.','ddp-rate-limiter','(((.+)+)+)+$','29180RMhbBT','injectAtEndOfFile','160743cFjRre','mdg:validated-method','imports','fsi','getMakaProjectConfig','pathFromApp','error','index.','tsx','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','5LtZOKn','import\x20\x27./methods','search','appPathPrefix','template','104354blTcDy','engines','7EiTxDx'];a116c=function(){return o;};return a116c();}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':a116l(0x16a),'checkWhere':!![],'shortDesc':a116l(0x181),'validOpts':[a116l(0x171)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const m=a116l;try{const c=this[m(0x17b)][m(0x17c)]();await this[m(0x17b)]['withValue'](c,async()=>{const n=m,d=paramCase(b[n(0x18b)]),f={'name':b[n(0x18b)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c['engines']['js']===n(0x180)&&(g='ts');await this[n(0x17b)]['checkMeteorPackage'](['maka:check',n(0x174),n(0x179)],{'shouldInstall':!![]}),await this[n(0x17b)][n(0x186)]({'srcPath':'method/method.js','destPath':this[n(0x17b)][n(0x17d)]({'pathParts':[n(0x17a),n(0x16f),b[n(0x185)],n(0x169),b[n(0x171)],d+n(0x173)+g]}),'context':f,'config':c});const h=b[n(0x171)]?'/'+b[n(0x171)]+'/':'/',i=this[n(0x17b)]['pathFromApp']({'pathParts':[n(0x17a),n(0x16f),b[n(0x185)],n(0x17f)+c[n(0x188)]['js']]});await this[n(0x17b)][n(0x177)]({'filePath':i,'content':n(0x183)+h+d+n(0x16e)});});}catch(d){Log[m(0x17e)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a117c(){const r=['tests/server','engines','97975vaLUKt','withValue','package.js','/client/','8937084KEwHmG','tests/client','toString','layout','dir','403310WruIOu','create','hasOwnProperty','noRename','(((.+)+)+)+$','fsi','956896LHrdzB','/package.js','graphql','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','search','27069uCkfEf','component','.js','theme','store','3729XLwmvR','9FJviQW','server','apply','3bggDHR','1038aeacFh','pathFromApp','6610JCXYft','client','36qwMSCY','resourceName','packages','122726AfqASW','package','pathFromAppWithNoReWrite','relative','template'];a117c=function(){return r;};return a117c();}const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=parseInt(l(0x174))/0x1+parseInt(l(0x164))/0x2*(parseInt(l(0x15c))/0x3)+-parseInt(l(0x161))/0x4*(-parseInt(l(0x16b))/0x5)+parseInt(l(0x15d))/0x6*(-parseInt(l(0x17f))/0x7)+-parseInt(l(0x17a))/0x8*(parseInt(l(0x185))/0x9)+parseInt(l(0x15f))/0xa*(-parseInt(l(0x184))/0xb)+parseInt(l(0x16f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x5b16f));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a['toString']()['search'](n(0x178))[n(0x171)]()['constructor'](a117a)[n(0x17e)]('(((.+)+)+)+$');});a117a();import a117e from'path';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x15c;let f=c[d];return f;},a117d(a,b);}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a117o(0x175)]({'name':a117o(0x165),'aliases':['p'],'usage':a117o(0x17d),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a117o(0x173)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a117o,c=paramCase(b[p(0x162)]),d=this[p(0x179)][p(0x15e)]({'pathParts':[p(0x163),b['dir'],c]}),e=this['fsi'][p(0x166)]({'pathParts':['packages',b['dir'],c,p(0x16d)]}),f=this[p(0x179)]['getMakaProjectConfig']();await this[p(0x179)][p(0x16c)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a117e[q(0x167)](this[q(0x179)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0x162)]),'className':pascalCase(b[q(0x162)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x16a)][q(0x160)],'graphql':f[q(0x16a)][q(0x17c)],'ssr':f[q(0x16a)]['ssr'],'isComponent':b[q(0x176)](q(0x180)),'isLayout':b['hasOwnProperty'](q(0x172)),'isStore':b[q(0x176)](q(0x183)),'features':f['features'],'noRename':!![],'theme':f[q(0x16a)][q(0x182)]};await this[q(0x179)][q(0x168)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0x177)]=![];const h=d+q(0x16e)+c+q(0x181);await this[q(0x179)][q(0x168)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib',q(0x186),q(0x170),q(0x169)];for(const j of i){const k=d+'/'+j+'/'+c+q(0x181);await this[q(0x179)][q(0x168)]({'srcPath':'package/'+j+q(0x17b),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a118l=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(0xc2))/0x1+-parseInt(j(0xa3))/0x2*(-parseInt(j(0xc8))/0x3)+parseInt(j(0x9e))/0x4+parseInt(j(0x96))/0x5*(parseInt(j(0x93))/0x6)+parseInt(j(0xc1))/0x7+parseInt(j(0xcf))/0x8+-parseInt(j(0x9c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x74c76));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[k(0xa1)]()[k(0xca)]('(((.+)+)+)+$')[k(0xa1)]()['constructor'](a118a)[k(0xca)](k(0xb1));});a118a();import a118e from'path';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x89;let f=c[d];return f;},a118d(a,b);}import{Generator}from'../generator.js';function a118c(){const o=['ssr','fsi','(((.+)+)+)+$','withHook','route','maka\x20g:page\x20todos/todos-item','dir','setTemplate','hooks','.css','className','warn','hasOwnProperty','ramda','processAndRunGenerator','template/template.html','component/component.js','getMakaProjectConfig','3622969JCwRrp','567121yMUYug','import\x20\x27./','true','client','.app-tests.js','relative','3MZqkYZ','components','search','layouts','test','Updating\x20npm\x20packages\x20...','/imports/ui/pages','6949616FovKuM','test/test.js','theme','root','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','fileName','none','pages','string','hook/hook.js','css','react','baseDir','42lUCJOn','assign','engines','542315OKMkfU','injectAtBeginningOfFile','page','graphql','.html','installNpmPackage','29727000enmSoU','/imports/ui/','696480XkrBNm','html','features','toString','layout','1789150TGOOye','create','resourceName','.js','api','Generate\x20a\x20page.','\x27;\x0a','injectTemplateModule','template/template.css','template','store','withHooks'];a118c=function(){return o;};return a118c();}import{Log}from'../tools/log/log.class.js';import a118f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a118l(0xa4)]({'name':a118l(0x98),'aliases':aliases,'usage':a118l(0x8a),'shortDesc':a118l(0xa8),'validOpts':[{'name':a118l(0x92),'values':[a118l(0xb7),a118l(0xc9),a118l(0x8d),a118l(0xcb)]},{'name':a118l(0xb2),'boolFlag':!![]}],'examples':[a118l(0xb4)]},async function(a,b){const m=a118l,c=b[m(0x92)]?m(0x9d)+b[m(0x92)]:m(0xce),d=this[m(0xb0)]['pathFromApp'](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b[m(0xb5)],paramCase(b[m(0xa5)]),paramCase(b[m(0xa5)])]}),f=this['fsi'][m(0xc0)]();let g='';return await this[m(0xb0)]['withValue'](f,async()=>{const n=m;typeof f[n(0xac)][n(0x9f)]===n(0x8e)&&(f['template'][n(0x9f)]=f[n(0xac)][n(0x9f)]==='true'?!![]:![],this[n(0xb0)][n(0xb6)](n(0x9f),f[n(0xac)]['html']));typeof f[n(0xac)][n(0xcc)]===n(0x8e)&&(f[n(0xac)]['test']=f[n(0xac)][n(0xcc)]==='true'?!![]:![],this[n(0xb0)][n(0xb6)](n(0xcc),f[n(0xac)][n(0xcc)]));typeof f[n(0xac)]['css']===n(0x8e)&&(f[n(0xac)][n(0x90)]=f['template'][n(0x90)]===n(0xc4)?!![]:![],this[n(0xb0)]['setTemplate']('css',f[n(0xac)][n(0x90)]));typeof f[n(0xac)]['js']==='string'&&(f[n(0xac)]['js']=f[n(0xac)]['js']===n(0xc4)?!![]:![],this[n(0xb0)][n(0xb6)]('js',f[n(0xac)]['js']));!f[n(0xa0)]&&(f[n(0xa0)]={});!b[n(0x89)]&&!this[n(0xb0)]['checkNpmPackage']('ramda')&&(Log[n(0xba)](n(0xcd)),this[n(0xb0)][n(0x9b)](n(0xbc),{'cwd':d}));const h={'name':pascalCase(b['resourceName']),'myPath':a118e[n(0xc7)](this['fsi']['pathFromProject']({}),e),'cssCaseName':paramCase(b[n(0xa5)]),'className':pascalCase(b[n(0xa5)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[n(0xa5)]),'graphql':f[n(0x95)][n(0x99)],'features':f[n(0xa0)],'client':f[n(0x95)]['client'],'api':f[n(0x95)][n(0xa7)],'ssr':f[n(0x95)][n(0xaf)],'isStore':b[n(0xbb)](n(0xad)),'isComponent':b[n(0xbb)]('component'),'isLayout':b[n(0xbb)](n(0xa2)),'withTranslations':f[n(0xa0)]['withTranslations'],'test':f['engines'][n(0xcc)],'theme':f['engines'][n(0xd1)]};f['template'][n(0x9f)]&&await this['fsi'][n(0xac)]({'srcPath':n(0xbe),'destPath':e+n(0x9a),'context':h,'config':f});f[n(0xa0)]?.[n(0xae)]||b[n(0xb2)]?await this[n(0xb0)][n(0xac)]({'srcPath':n(0x8f),'destPath':e+n(0xa6),'framework':'react','context':h,'config':f}):await this[n(0xb0)][n(0xac)]({'srcPath':n(0xbf),'destPath':e+'.js','framework':n(0x91),'context':h,'config':f});f[n(0x95)][n(0xcc)]!==n(0x8c)&&await this[n(0xb0)][n(0xac)]({'srcPath':n(0xd0),'destPath':e+n(0xc6),'framework':n(0x91),'context':h,'config':f});f[n(0xac)][n(0x90)]&&await this['fsi'][n(0xac)]({'srcPath':n(0xab),'destPath':e+n(0xb8),'context':Object[n(0x94)]({},h,{'className':paramCase(b[n(0xa5)])}),'config':f});f[n(0x95)]['client']!==n(0x91)&&f[n(0x95)][n(0xc5)]!=='vanilla'?(f[n(0xac)][n(0x90)]&&await this[n(0xb0)][n(0x97)]({'filePath':e+'.'+f[n(0x95)]['js'],'content':n(0xc3)+h[n(0x8b)]+'.'+f[n(0x95)][n(0x9f)]+n(0xa9)+n(0xc3)+h['fileName']+'.'+f[n(0x95)][n(0x90)]+'\x27;'}),!f[n(0xac)][n(0x90)]&&await this[n(0xb0)][n(0x97)]({'filePath':e+'.'+f['engines']['js'],'content':n(0xc3)+h[n(0x8b)]+'.'+f[n(0x95)][n(0x9f)]+'\x27;'})):f[n(0xac)]['css']&&await this['fsi'][n(0x97)]({'filePath':e+'.'+f[n(0x95)]['js'],'content':'import\x20\x27./'+h[n(0x8b)]+'.'+f[n(0x95)]['css']+'\x27;'});const i=b['dir']?'/'+b['dir']+'/':'/';g=''+c+i+h['fileName']+'/'+h[n(0x8b)],await this[n(0xb0)][n(0xaa)](h['className'],f,g),!b['root']&&await a118f[n(0xbd)](n(0xb3),[i+h[n(0xb9)]],b);}),g+'.'+f[m(0x95)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119k=a119d;
|
|
1
|
+
const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d=-parseInt(h(0x13e))/0x1*(parseInt(h(0x12b))/0x2)+-parseInt(h(0x142))/0x3*(-parseInt(h(0x132))/0x4)+parseInt(h(0x136))/0x5*(parseInt(h(0x12f))/0x6)+parseInt(h(0x12e))/0x7+-parseInt(h(0x129))/0x8*(parseInt(h(0x13f))/0x9)+parseInt(h(0x140))/0xa*(parseInt(h(0x127))/0xb)+parseInt(h(0x138))/0xc*(-parseInt(h(0x13c))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x643ab));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a119d;if(c){const e=c[i(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const j=a119d;return a119a['toString']()[j(0x130)](j(0x139))[j(0x13a)]()[j(0x133)](a119a)[j(0x130)](j(0x139));});a119a();import{paramCase}from'change-case';function a119c(){const n=['14fLCjWA','resourceName','fsi','4764011SQOYoa','24LEaoeP','search','engines','2136llJBBF','constructor','injectAtEndOfFile','create','715090uRCYDy','templateContent','12097356STMWgH','(((.+)+)+)+$','toString','getMakaProjectConfig','13XSuONQ','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','86813WQYiSt','45BtQySt','7313430dnlMRz','publish','3435WYEkfD','withValue','11NMKxzc','apply','910520QnQrrm','rewriteDestinationPathForEngine'];a119c=function(){return n;};return a119c();}function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x127;let f=c[d];return f;},a119d(a,b);}import{Generator}from'../generator.js';Generator[a119k(0x135)]({'name':a119k(0x141),'aliases':['p'],'usage':a119k(0x13d),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a119k,c=this[l(0x12d)][l(0x13b)]();await this[l(0x12d)][l(0x143)](c,async()=>{const m=l,d={'name':b[m(0x12c)],'collection':paramCase(b[m(0x12c)]),'noRename':!![]};let e='js';c[m(0x131)]['js']==='tsx'&&(e='ts');const f=this[m(0x12d)][m(0x12a)]({'pathParts':['server/publish.'+c[m(0x131)]['js']]}),g=this[m(0x12d)][m(0x137)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});await this[m(0x12d)][m(0x134)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120A=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=parseInt(y(0x7a))/0x1+parseInt(y(0x72))/0x2+parseInt(y(0xa5))/0x3+-parseInt(y(0xb9))/0x4*(parseInt(y(0xb4))/0x5)+parseInt(y(0x81))/0x6*(parseInt(y(0xba))/0x7)+-parseInt(y(0xb7))/0x8+-parseInt(y(0x8c))/0x9*(-parseInt(y(0x86))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x39c01));const a120b=(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;};}()),a120a=a120b(this,function(){const z=a120d;return a120a['toString']()[z(0xab)](z(0x92))[z(0x6e)]()[z(0x96)](a120a)[z(0xab)](z(0x92));});a120a();import a120e from'path';import{Generator}from'../generator.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x6d;let f=c[d];return f;},a120d(a,b);}import{Log}from'../tools/log/log.class.js';function a120c(){const I=['maka\x20g:route\x20todosEdit\x20todos/:id/edit','Adding\x20route\x20','withTranslations','error','rewriteDestinationPathForEngine','1417645pJaEAO','readFileLines','templateContent','2220392qbJNlu','</Router>','4fPWztY','7asiDkR','getMakaProjectConfig','/imports/ui/pages','<Route','replace','newForm','toString','MasterLayout','engines','pathFromApp','574184oiUspZ','\x22*\x22','route','/imports/ui/','info','fileContainsString','startup','injectAtEndOfFile','103085XUAdMp','pages','lib','layouts','injectAfterLineNumber','vanilla','client','62796apuHaO','private','baseDir','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','join','1257630Eksxxv','\x20already\x20exists.\x20\x20Skipping.','config','cwd','maka\x20g:route\x20todosIndex\x20todos','create','9rwvlPH','maka\x20g:route\x20pages/lists/listIndex\x20lists','resourceName','layout','length','includes','(((.+)+)+)+$','maka\x20g:route\x20pages/about','filter','Valid\x20options\x20are:\x20','constructor','route/route.js','Scaffolding\x20for\x20a\x20Route.','templateName','hooks','Invalid\x20directory\x20option\x20\x22','root','react','url','const\x20publicRoutes\x20=\x20(<>','components','<Router','withValue','warn','pathFromProject','813651xDuAcY','fsi','imports','routes.js','Route\x20','const\x20privateRoutes\x20=\x20(<>','search','map','toLowerCase','PrivateLayout'];a120c=function(){return I;};return a120c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a120A(0x8b)]({'name':a120A(0x74),'aliases':aliases,'validOpts':[a120A(0x82),a120A(0x8f),'only',a120A(0x89),a120A(0x88),a120A(0x9c),'withHook',a120A(0x9e),'baseDir'],'usage':a120A(0x84),'shortDesc':a120A(0x98),'examples':[a120A(0x8a),a120A(0xaf),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a120A(0x8d),a120A(0x93)]},async function(a,b){const B=a120A;try{const c=[B(0x9a),B(0xa0),B(0x7b),B(0x7d)];if(b[B(0x83)]&&!c[B(0x91)](b[B(0x83)])){Log[B(0xb2)](B(0x9b)+b[B(0x83)]+'\x22'),Log[B(0xb2)](B(0x95)+c[B(0x85)](',\x20'));throw new UsageError();}const d=this['fsi'][B(0xbb)]();await this[B(0xa6)][B(0xa2)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(b[C(0x8e)]),h='/'+g;a[C(0x90)]>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})['join']('/')[C(0xad)]());g=camelCase(g);b[C(0x8f)]&&(b[C(0x8f)]=camelCase(b['layout']));const i=b[C(0x83)]?C(0x75)+b[C(0x83)]:C(0xbc),j=a120e[C(0x85)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x8f)]||C(0x6f),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x70)][C(0x80)],'newForm':![],'withTranslations':d['features'][C(0xb1)]};f&&(k['layout']=C(0xae));let l,m;if(d[C(0x70)][C(0x80)]===C(0x9d)){if(d[C(0x70)]['ssr']==='true'){const r=this[C(0xa6)][C(0x71)]({'pathParts':['imports','startup',C(0x7c),C(0xa8)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this['fsi']['pathFromApp']({'pathParts':[C(0xa7),C(0x78),C(0x80),C(0xa8)]});l=this[C(0xa6)][C(0xb3)]({'pathParts':[s],'config':d});}const n=await this['fsi'][C(0x77)](l,g);if(n){Log['warn'](C(0xa9)+g+C(0x87));return;}else{const t=this['fsi'][C(0xa4)](l);Log[C(0x76)](C(0xb0)+g+'\x20to\x20'+l[C(0xbe)](t,''));}const o=this[C(0xa6)]['readFileLines'](l)[C(0xac)]((u,v)=>{return u['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})['filter'](u=>u!==null);let p=this[C(0xa6)]['readFileLines'](l)[C(0xac)]((u,v)=>{const D=C;return u[D(0x91)](D(0x9f))?v+0x1:null;})[C(0x94)](u=>u!==null),q=this['fsi'][C(0xb5)](l)['map']((u,v)=>{const E=C;return u[E(0x91)](E(0xaa))?v+0x1:null;})[C(0x94)](u=>u!==null);p['length']>0x0&&q['length']>0x0&&(k[C(0x6d)]=!![]);m=this[C(0xa6)][C(0xb6)]({'srcPath':C(0x97),'framework':C(0x9d),'context':k,'config':d});if(p[C(0x90)]>0x0||q[C(0x90)]>0x0){this[C(0xa6)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x90)]>0x0)q=this[C(0xa6)][C(0xb5)](l)['map']((u,v)=>{const F=C;return u[F(0x91)](F(0xaa))?v+0x1:null;})[C(0x94)](u=>u!==null),this['fsi']['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0x90)]>0x0?(p=this[C(0xa6)]['readFileLines'](l)[C(0xac)]((u,v)=>{const G=C;return u[G(0x91)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[C(0x94)](u=>u!==null),this['fsi'][C(0x7e)]({'filePath':l,'content':'\x09{'+k[C(0x99)]+'}','lineNumber':p[0x0]})):Log[C(0xa3)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this['fsi'][C(0xb5)](l)[C(0xac)](x=>{const H=C;return x['includes'](H(0x73));}),v=u['indexOf'](!![])>-0x1,w=v?C(0xbd):C(0xb8);await this[C(0xa6)]['injectIntoFile']({'filePath':l,'content':'\x0a\x09\x09'+m+'\x0a\x09\x09','begin':C(0xa1),'end':w});}}else{if(d[C(0x70)][C(0x80)]===C(0x7f)){const x=this['fsi'][C(0x71)]({'pathParts':[C(0xa7),C(0x78),'client',C(0xa8)]});l=this[C(0xa6)][C(0xb3)]({'pathParts':[x],'config':d}),m=this[C(0xa6)][C(0xb6)]({'srcPath':C(0x97),'context':k}),await this[C(0xa6)][C(0x79)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121m=a121d;
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=-parseInt(j(0xfb))/0x1+parseInt(j(0xfc))/0x2*(parseInt(j(0xee))/0x3)+-parseInt(j(0xfa))/0x4*(-parseInt(j(0xf7))/0x5)+parseInt(j(0x103))/0x6+parseInt(j(0xf2))/0x7+parseInt(j(0xf1))/0x8+-parseInt(j(0xf4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x8bac8));function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0xe2;let f=c[d];return f;},a121d(a,b);}const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0xff)]()[l(0xeb)](l(0xe3))[l(0xff)]()['constructor'](a121a)[l(0xeb)](l(0xe3));});a121a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a121c(){const p=['7490448qxLIWO','6780690wZJYfv','engines','25939827MVESbo','error','type','21955uniGix','winston','installNpmPackage','844mbWKbh','760537UAlxUc','4fCQUnD','winston\x20setimmediate','fsi','toString','Installing\x20winston','startup','maka\x20{generate,\x20g}:{service}\x20<resource-name>','3168834GVgdaz','create','(((.+)+)+)+$','template','withValue','svc','resourceName','checkNpmPackage','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','apply','search','logger','services','1282842JeJVfL','pathFromApp','lib'];a121c=function(){return p;};return a121c();}Generator[a121m(0xe2)]({'name':'service','aliases':[a121m(0xe6)],'usage':a121m(0x102),'shortDesc':a121m(0xe9),'requiredOpts':[{'name':a121m(0xf6),'values':[a121m(0xec)]}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a121m;try{const c=this[n(0xfe)]['getMakaProjectConfig']();await this[n(0xfe)][n(0xe5)](c,async()=>{const o=n,d=this[o(0xfe)][o(0xef)]({}),f=paramCase(b[o(0xe7)]),g={'name':pascalCase(b[o(0xe7)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[o(0xf6)],'engine':c[o(0xf3)]['js'],'noRename':!![]};let h='js';c['engines']['js']==='tsx'&&(h='ts');if(b[o(0xf6)]===o(0xec)){!this['fsi'][o(0xe8)](o(0xf8))&&await this[o(0xfe)][o(0xf9)](o(0xfd),{'cwd':d,'msg':o(0x100)});const i=this[o(0xfe)]['pathFromApp']({'pathParts':['imports',o(0x101),o(0xf0),o(0xed),f+'.'+h]});await this['fsi'][o(0xe4)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xf5)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a122d,c=a();while(!![]){try{var d
|
|
1
|
+
function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0xda;var f=c[d];return f;},a122d(a,b);}function a122c(){var i=['constructor','1680620ZNIHbf','toString','4reeFQk','9RvOwLe','252354YSRnUe','15904rFaunP','search','30hzZMdT','159690FVymjo','apply','146986JomaRO','731096KIjMEy','(((.+)+)+)+$','608605QeTBRj'];a122c=function(){return i;};return a122c();}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0xe4))/0x1+parseInt(f(0xe3))/0x2+parseInt(f(0xe7))/0x3+-parseInt(f(0xe1))/0x4*(-parseInt(f(0xdd))/0x5)+-parseInt(f(0xe6))/0x6*(-parseInt(f(0xda))/0x7)+parseInt(f(0xdb))/0x8*(-parseInt(f(0xe2))/0x9)+-parseInt(f(0xdf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x1fecd));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0xe0)]()['search'](h(0xdc))[h(0xe0)]()[h(0xde)](a122a)[h(0xe5)]('(((.+)+)+)+$');});a122a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123l=a123d;
|
|
1
|
+
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=-parseInt(i(0x174))/0x1+-parseInt(i(0x182))/0x2+parseInt(i(0x181))/0x3+-parseInt(i(0x17d))/0x4+-parseInt(i(0x17b))/0x5*(-parseInt(i(0x180))/0x6)+parseInt(i(0x171))/0x7+-parseInt(i(0x17f))/0x8*(-parseInt(i(0x16e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xbaa0c));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a[k(0x176)]()[k(0x173)]('(((.+)+)+)+$')[k(0x176)]()[k(0x169)](a123a)[k(0x173)]('(((.+)+)+)+$');});a123a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a123c(){const o=['fsi','error','getGlobalConfig','14468526tqrjYK','getAppConfigPath','env','3091151FIVRZK','apply','search','1340112AaPpMQ','template','toString','openssl/openssl.conf','Generate\x20a\x20new\x20openssl\x20config\x20file','service','withValue','2216395bSImxc','sslconfig','4037332gAVOhu','openssl.conf','8GvODTo','6iomDqj','2845215EUjJsx','654036NTbuYP','constructor','_keys'];a123c=function(){return o;};return a123c();}function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x169;let f=c[d];return f;},a123d(a,b);}import a123e from'path';Generator['create']({'name':a123l(0x17c),'usage':'maka\x20{generate,\x20g}:sslconfig','shortDesc':a123l(0x178),'noNeedResource':!![],'requiredOpts':[a123l(0x170)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0x16b)]['getMakaProjectConfig'](),d=await this[m(0x16b)][m(0x16d)](),f=this['fsi'][m(0x16f)](b[m(0x170)]),g=a123e['join'](f,m(0x16a),m(0x17e));await this[m(0x16b)][m(0x17a)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x16b)][n(0x175)]({'srcPath':n(0x177),'destPath':g,'framework':n(0x179),'context':h,'config':c});});}catch(h){Log[m(0x16c)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124z=a124d;
|
|
1
|
+
const a124z=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=parseInt(x(0x124))/0x1*(-parseInt(x(0x122))/0x2)+parseInt(x(0x120))/0x3+parseInt(x(0x111))/0x4*(-parseInt(x(0xee))/0x5)+parseInt(x(0x117))/0x6+parseInt(x(0x121))/0x7*(parseInt(x(0x10b))/0x8)+parseInt(x(0x10d))/0x9*(-parseInt(x(0x127))/0xa)+-parseInt(x(0xf7))/0xb*(-parseInt(x(0xef))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xc48ca));const a124b=(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;};}()),a124a=a124b(this,function(){const y=a124d;return a124a['toString']()[y(0x119)]('(((.+)+)+)+$')[y(0x10f)]()[y(0xe8)](a124a)[y(0x119)]('(((.+)+)+)+$');});a124a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xe7;let f=c[d];return f;},a124d(a,b);}function a124c(){const C=['324588tEXcOW','lib','search','maka\x20g:translation\x20--lang=de','client','root','services','Locale\x20already\x20exported:\x20','maka\x20g:translation\x20--lang=en\x20(default)','2632704fzsgFL','5033zsfXTu','2218818rexAwf','maka\x20{generate,\x20g}:translation','1BSKmiL','imports','appName','464860yElhta','isFile','constructor','grep','getGlobalConfig','server','findAppDirectory','Locale\x20already\x20defined:\x20','661945GxLbhy','12idezcz','i18n/i18n.js','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','injectAtBeginningOfFile','exit','import\x20\x27../lib/services/translations/i18n\x27;\x0a','checkNpmPackage','translations','26897717sdeZtB','rewriteDestinationPathForEngine','fsi','startup','translation','error','Generate\x20a\x20new\x20locale\x20translation','getMakaProjectConfig','index.js','withValue','pathFromApp','service','index.','readFileSync','i18n/index.js','locales','.js','warn','features.withTranslations','i18n.js','4024hjFvaz','i18next','225bcDyaE','injectAtEndOfFile','toString','lang','20vggEjU','create','default\x20as\x20','template','ssr','import\x20\x27../lib/services/translations/i18n\x27;'];a124c=function(){return C;};return a124c();}import a124e from'fs';Generator[a124z(0x112)]({'name':a124z(0xfb),'usage':a124z(0x123),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124z(0x110),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a124z(0xfd),'description':'\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','examples':[a124z(0x11f),'maka\x20g:translation\x20--lang=fr',a124z(0x11a)],'validOpts':[]},async function(a,b){const A=a124z;try{const c=this[A(0xf9)][A(0xfe)](),d=this[A(0xf9)][A(0xea)](),f=this[A(0xf9)][A(0xec)]();await this[A(0xf9)][A(0x100)](c,async()=>{const B=A;try{!b[B(0x110)]&&(b['lang']='en');!b[B(0x11c)]&&!this[B(0xf9)][B(0xf5)](B(0x10c))&&(Log['warn'](B(0xf1)),this[B(0xf9)]['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[B(0xf9)]['setProjectConfig'](B(0x109),!![]));const g=this[B(0xf9)][B(0x101)]({'pathParts':[B(0x125),B(0xfa),B(0x11b),B(0xff)]}),h=this[B(0xf9)][B(0xf8)]({'pathParts':[g],'config':c}),i=this[B(0xf9)][B(0xe9)](a124e['readFileSync'](h)[B(0x10f)](),B(0x116))[0x0]&&!![];if(c['engines'][B(0x115)]==='true'){!i&&this[B(0xf9)][B(0xf2)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this['fsi'][B(0x101)]({'pathParts':['imports','startup',B(0xeb),B(0xff)]}),u=this[B(0xf9)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a124e['readFileSync'](u)[B(0x10f)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][B(0xf2)]({'filePath':u,'content':B(0xf4)});}else!i&&this[B(0xf9)][B(0xf2)]({'filePath':h,'content':B(0xf4)});const j={'app':d[B(0x126)],'config':c},k=this['fsi']['pathFromApp']({'pathParts':[B(0x125),'startup',B(0x118),'services',B(0xf6),B(0x10a)]}),l=this[B(0xf9)][B(0xe7)](this['fsi'][B(0xf8)]({'pathParts':[k],'config':c}));!l&&await this['fsi'][B(0x114)]({'srcPath':B(0xf0),'destPath':k,'framework':'service','context':j,'config':c});const m=this[B(0xf9)]['pathFromApp']({'pathParts':[B(0x125),'startup',B(0x118),B(0x11d),B(0xf6),B(0x106),b[B(0x110)]+B(0x107)]}),n=this[B(0xf9)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[B(0xf9)][B(0xe7)](n);!o?await this[B(0xf9)][B(0x114)]({'srcPath':'i18n/locales.js','destPath':m,'framework':B(0x102),'context':j,'config':c}):Log[B(0x108)](B(0xed)+n);const p=this[B(0xf9)][B(0x101)]({'pathParts':[B(0x125),B(0xfa),B(0x118),B(0x11d),B(0xf6),'locales',B(0x103)+c['engines']['js']]}),q=this['fsi'][B(0xf8)]({'pathParts':[p],'config':c}),r=this[B(0xf9)][B(0xe7)](q);!r&&await this[B(0xf9)][B(0x114)]({'srcPath':B(0x105),'destPath':p,'framework':B(0x102),'context':j,'config':c});const s=this[B(0xf9)][B(0xe9)](a124e[B(0x104)](p)[B(0x10f)](),B(0x113)+b[B(0x110)])[0x0]&&!![];!s?await this['fsi'][B(0x10e)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b[B(0x110)]+'\x20}\x20from\x20\x27./'+b[B(0x110)]+'\x27;'}):Log[B(0x108)](B(0x11e)+p);}catch(w){Log['error'](w),process[B(0xf3)](0x1);}});}catch(g){Log[A(0xfc)](g),process[A(0xf3)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a125l=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=-parseInt(j(0xfb))/0x1+parseInt(j(0xf4))/0x2*(parseInt(j(0xf3))/0x3)+-parseInt(j(0xed))/0x4+-parseInt(j(0xe9))/0x5*(-parseInt(j(0xfd))/0x6)+-parseInt(j(0xea))/0x7+-parseInt(j(0xee))/0x8*(-parseInt(j(0xf1))/0x9)+-parseInt(j(0xf2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x86848));const a125b=(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;};}()),a125a=a125b(this,function(){const k=a125d;return a125a['toString']()[k(0xfc)](k(0xf7))[k(0xef)]()['constructor'](a125a)[k(0xfc)](k(0xf7));});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[a125l(0x101)]),__dirname=a125g[a125l(0xf0)](__filename);function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0xe9;let f=c[d];return f;},a125d(a,b);}global[a125l(0xff)]=__dirname;const total_memory=a125f[a125l(0xfe)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125l(0xf5)](total_mem_in_mb),process[a125l(0x100)]['TOOL_NODE_FLAGS']=a125l(0xec)+total_mem_in_mb,process[a125l(0x100)][a125l(0xf6)]='1',process['env']['NODE_NO_WARNINGS']='1';const argv=a125e(process['argv']['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a125l(0xf9)](JSON[a125l(0xf8)](argv));function a125c(){const m=['(((.+)+)+)+$','stringify','parse','camelizeKeys','86789IRCOza','search','3259482uZjudP','totalmem','MAKA_COMMAND_PATH','env','url','5MvHQNE','348159wMZHTJ','run','--max-old-space-size=','775568OHMIGj','16zhFYzq','toString','dirname','1307439TgSQGx','610580yjgqow','326013xfzKem','2gpuVtK','floor','BROWSERSLIST_IGNORE_OLD_DATA'];a125c=function(){return m;};return a125c();}delete deepCopyArgv['_'];const opts=a125h[a125l(0xfa)](deepCopyArgv);a125i[a125l(0xeb)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0xc0))/0x1*(parseInt(I(0xc7))/0x2)+parseInt(I(0xb6))/0x3*(parseInt(I(0xb1))/0x4)+-parseInt(I(0xa2))/0x5*(-parseInt(I(0xb4))/0x6)+parseInt(I(0x85))/0x7+parseInt(I(0x9f))/0x8+-parseInt(I(0xcb))/0x9+-parseInt(I(0xc1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x4eb70));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a['toString']()['search'](K(0xa7))[K(0x76)]()[K(0x7f)](a126a)[K(0x80)](K(0xa7));});a126a();import a126e from'path';function a126c(){const a2=['isGenerator','5870AdVNJu','name','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','validateMeteorInstall','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','(((.+)+)+)+$','You\x20must\x20have\x20','platform','keys','roles','formatToNamedParam','charAt','To\x20use\x20this\x20command,\x20\x22','Please\x20choose\x20a\x20valid\x20value\x20for\x20','apply','26632uOUTuM','docker','parent','1392VWVRvV','usage','171oXIuOe','win32','\x20installed\x20to\x20use\x20this\x20command.','validateParams','Please\x20choose\x20an\x20environment','validateEngines','map','Invalid\x20value\x20for\x20','Local','help','44137DkmZVy','6615070FpWmdO','existsSync','options','push','None','NIE','8LyfiBY','assign','find','\x20version\x20','1508013PYcIOE','No\x20usage\x20provided.','toString','join','Invalid\x20option:\x20','concat','proGenerators','domainLicense','getPro','Please\x20choose\x20a\x20value\x20for\x20','remapShortToLong','constructor','search','singleLicense','validateMakaSubscription','includes','.meteor','495936RUEaSC','env','Please\x20provide\x20a\x20value\x20for\x20','match','proCommands','indexOf','exit','getShortName','fsi','list','To\x20use\x20this\x20generator,\x20\x22','every','isCommand','examples','findProjectDirectory','resourceName','description','No\x20description\x20provided.','AppData','Please\x20provide\x20a\x20resource\x20name:','aliases','getAppProjectConfigs','length','getMakaProjectConfig','ask','error','2017680LwbYLw','shortDesc'];a126c=function(){return a2;};return a126c();}function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x75;let f=c[d];return f;},a126d(a,b);}import a126f from'os';import a126g from'fs';const homeDir=a126f['homedir']();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{[a126L(0xb2)];[a126L(0x8d)];[a126L(0xc3)];[a126L(0xa3)];[a126L(0xb3)];['_handler'];constructor(){const M=a126L;this[M(0xb2)]=new Docker(),this[M(0x8d)]=new FSI();}['getShortName'](a){const N=a126L;return a[N(0xad)](0x0);}['remapShortToLong'](a,b){const O=a126L,c=this[O(0xac)](b),d={...a};for(const e of c){const f=this[O(0x8c)](e[O(0xa3)]);a[f]&&(d[e[O(0xa3)]]=a[f],delete d[f]);}return d;}[a126L(0xac)](a){const P=a126L;if(a[P(0x90)](b=>typeof b==='string'))return a[P(0xbc)](b=>({'name':b}));return a;}[a126L(0x88)](a){const Q=a126L,b=[this[Q(0xa3)]][Q(0x79)](this['options'][Q(0x99)]||[]);return this['parent']&&b[Q(0xc4)](this[Q(0xb3)]),b[Q(0x83)](a);}['validateMakaProject'](){const R=a126L,a=this[R(0x8d)][R(0x93)]();return a!==![]?!![]:![];}[a126L(0xa5)](){const S=a126L;let a=a126e[S(0x77)](homeDir,S(0x84));const b=process[S(0xa9)]===S(0xb7);if(b){a=a126e[S(0x77)](homeDir,S(0x97),S(0xbe),S(0x84));if(!a126g[S(0xc2)](a))return![];}else{if(!a126g[S(0xc2)](a))return![];}return!![];}[a126L(0xbb)](a){const T=a126L,b=this['fsi'][T(0x9c)](),c=b['engines'],d=Object[T(0xaa)](a);if(d[T(0x9b)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x9e)](T(0xa8)+e+T(0xca)+a[e]+T(0xb8));throw UsageError;}}}async[a126L(0xb9)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0xaa)](b);if(h[U(0x83)](U(0x94))&&b['resourceName']===undefined&&!g){const m=await Actions[U(0x9d)](U(0x98));b[U(0x94)]=m;}let i=[],j=b;if(d){i=this[U(0xac)](d),j=this[U(0x7e)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0xaa)](j)[U(0x83)](o)){if(o==='env'){const r=this[U(0x8d)][U(0x9a)](),s=await Actions[U(0xc3)]({'type':U(0x8e),'name':U(0x86),'message':U(0xba),'choices':r});b[U(0x86)]=s[U(0x86)];}else{const t=p;if(t){const u=await Actions[U(0xc3)]({'type':U(0x8e),'name':o,'message':U(0x7d)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x9d)](U(0x87)+o);if(v[U(0x88)](q))b[o]=v;else{Log['error'](U(0xbd)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x9d)](U(0x87)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[U(0x9e)](U(0xbd)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0xac)](f),l=b;if(k&&Object[U(0xaa)](k)?.[U(0x9b)]>0x0){k=k[U(0x79)](i||[]),k['push']({'name':'resourceName','hidden':!![]}),k[U(0xc4)]({'name':U(0xbf),'boolFlag':!![]}),k[U(0xc4)]({'name':'dir','hidden':!![]}),k[U(0xc4)]({'name':'cwd','hidden':!![]}),k[U(0xc4)]({'name':'root','hidden':!![]}),k['push']({'name':'config','hidden':!![]}),l=this[U(0x7e)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0x83)](B))){const C=A;if(C){const D=await Actions[U(0xc3)]({'type':'list','name':z,'message':U(0xaf)+z,'choices':A});l[z]=D[z];}}if(k[U(0x9b)]>0x0)for(const E of Object[U(0xaa)](l)){const F=k[U(0xc9)](G=>G[U(0xa3)]===E);if(!F){Log[U(0x9e)](U(0x78)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[U(0x83)](G)){Log[U(0x9e)]('Invalid\x20argument:\x20'+G);const H=await Actions[U(0x9d)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[U(0x8a)](G)]=H;}}return Object[U(0xc8)](j,l);}async[a126L(0x82)](a){const V=a126L;try{if(!a)return;const b=await this[V(0x8d)][V(0x7c)]();!b&&(Log[V(0x9e)](V(0xa6)),process[V(0x8b)](0x1));const c=!b?.[V(0xab)][V(0x83)](V(0x81))&&!b?.['roles']['includes'](V(0x7b));if(this['isCommand'](a)){const d=V(0xae)+a[V(0xa3)]+V(0xa4);if(a[V(0xc3)]['disableAuthCheck'])return;const f=b?.[V(0x89)][V(0x83)](a[V(0xa3)])||b?.[V(0x89)][V(0x83)](a['parent']||'')||this[V(0xc3)]['isPro'];if(f&&c)throw d;}else{if(this[V(0xa1)](a)){const g=b?.[V(0x7a)][V(0x83)](a['name'])||b?.[V(0x7a)][V(0x83)](a[V(0xb3)]||'');if(g&&c)throw V(0x8f)+a[V(0xa3)]+V(0xa4);}}}catch(h){Log[V(0x9e)](h),process['exit'](0x1);}}[a126L(0x91)](a){return'options'in a;}[a126L(0xa1)](a){const W=a126L;return!(W(0xc3)in a);}[a126L(0x95)](){const X=a126L;return this[X(0xc3)]['description']||this['options']['shortDesc']||X(0x96);}[a126L(0xa0)](){const Y=a126L;return this[Y(0xc3)][Y(0xa0)]||Y(0xc6);}[a126L(0xb5)](){const Z=a126L;return this[Z(0xc3)][Z(0xb5)]||Z(0x75);}[a126L(0x92)](){const a0=a126L;return this[a0(0xc3)][a0(0x92)]||[];}[a126L(0x99)](){const a1=a126L;return this[a1(0xc3)][a1(0x99)]||a1(0xc5);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127i=a127d;
|
|
1
|
+
const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0xd7))/0x1+-parseInt(f(0xe0))/0x2*(-parseInt(f(0xe8))/0x3)+-parseInt(f(0xe3))/0x4+parseInt(f(0xe9))/0x5+parseInt(f(0xd8))/0x6*(-parseInt(f(0xe2))/0x7)+-parseInt(f(0xe4))/0x8*(-parseInt(f(0xd9))/0x9)+parseInt(f(0xe1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x22ba9));function a127c(){const m=['563130xsEnEl','confirm','61601yRyDPa','18frbrNs','54Jpymmw','ask','(((.+)+)+)+$','toString','constructor','prompt','apply','20NzSGWW','57790XhWvYY','423717nXdziD','857224FFiAfQ','256896ojoGli','search','answer','options','49641QiPnWB'];a127c=function(){return m;};return a127c();}const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a['toString']()[h(0xe5)](h(0xdb))[h(0xdc)]()[h(0xdd)](a127a)[h(0xe5)](h(0xdb));});function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xd6;let f=c[d];return f;},a127d(a,b);}a127a();import a127e from'inquirer';export class Actions{static async[a127i(0xda)](a,b){const j=a127i,{answer:c}=await a127e[j(0xde)]({'type':b?'password':'input','name':j(0xe6),'message':a});return c;}static async[a127i(0xd6)](a,b=![]){const k=a127i,{answer:c}=await a127e[k(0xde)]({'type':k(0xd6),'name':k(0xe6),'message':a,'default':b});return c;}static async[a127i(0xe7)](a){const l=a127i,b=await a127e[l(0xde)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x12c))/0x1+parseInt(p(0x122))/0x2*(parseInt(p(0x116))/0x3)+parseInt(p(0xf2))/0x4*(-parseInt(p(0x107))/0x5)+-parseInt(p(0x10c))/0x6*(-parseInt(p(0x132))/0x7)+-parseInt(p(0x167))/0x8+-parseInt(p(0xf6))/0x9*(-parseInt(p(0x131))/0xa)+parseInt(p(0x129))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xa6295));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x13a)]()['search']('(((.+)+)+)+$')[r(0x13a)]()['constructor'](a128a)[r(0xea)](r(0x14d));});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 a128c(){const W=['RegistrationPrice','forEach','ec2terminateInstance','parse','\x20PUB_IP:\x20','search','find','description','createKeyPair','statusCode','env','suggestion','ask','329724gGEtmW','Error\x20generating\x20key\x20pair','imageId','reason','9NTPGcr','Error\x20linking\x20EC2\x20to\x20Route\x2053:','KeyName','UPSERT','Web\x20App','Instance\x20rebooted!','GroupName','Hosted\x20zone\x20created\x20successfully!','cidr','writeFileSync','Successfully\x20linked\x20EC2\x20instance\x20','httpStatusCode','createFile','\x20to\x20','Error\x20fetching\x20domain\x20pricing:','instance','isFile','5LWNGsn','ID:\x20','instanceId','\x27\x20has\x20been\x20registered\x20successfully.','\x20VPCID:\x20','42oaapTG','log','readFileSync','join','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','notice','push','registerDomain','getSecurityGroups','send','12234nOkukB','status','\x20Error\x20Rason:\x20','Invalid\x20choice','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','tags','pop','route53CreateHostedZone','From\x20AWS:','Reservations','$response','KeyMaterial','48bLRsci','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','type','Pem\x20key\x20saved\x20to\x20','fsi','**\x20Available\x20\x20VPCs\x20**','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','2780228JwfFYt','\x20PRIV_IP:\x20','key','423138ATWTeC','confirm','\x20INSTANCE_ID:\x20','sgIds','environment','5044170bJTVBN','819308gPtQxl','config','$metadata','vpcId','VpcId','changeResourceRecordSets','ssh.json','stringify','toString','Availability','privateIp','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ec2rebootInstance','subnet','HostedZones','Error\x20creating\x20hosted\x20zone','\x20Status\x20Code:\x20','maka-cli','name','No\x20instances\x20found','ec2describeInstances','Instances','Prices','ec2create','apply','deleteKeyPair','\x20CIDR:\x20','(((.+)+)+)+$','createKeyPairEC2Key','GroupId','checkDomainAvailability','split','length','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','ingressRule','running','Value','Description:','CidrBlock','\x20NAME:\x20','linkEC2ToRoute53','now','_keys','sgId','.pem.txt','The\x20domain\x20\x27','userData','\x20ENV:\x20','success','error','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','exit','10675640BLSkkC','getAppConfigPath'];a128c=function(){return W;};return a128c();}import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xea;let f=c[d];return f;},a128d(a,b);}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{[a128s(0x126)];constructor(){const t=a128s;this[t(0x126)]=new FSI();}async['ecrCreateRepository'](a){const u=a128s;try{const b={'repositoryName':a[u(0x144)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x115)](c);return d;}catch(f){Log[u(0x163)](f);}}async[a128s(0x11d)](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0x15b)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log['success'](v(0xfd));}catch(d){Log[v(0x163)](v(0x141)),console[v(0x163)](d);}}async[a128s(0x113)](a,b,c,d){const w=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x115)](f),Log[w(0x111)](w(0x15f)+b+w(0x10a));}catch(g){Log[w(0x163)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log['warn'](w(0x11e)),console[w(0x163)](w(0x142)+g[w(0x120)][w(0xee)]),console[w(0x163)](w(0x118)+g[w(0x120)][w(0xf5)]);}}async[a128s(0x150)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x115)](c),e=d[x(0x13b)]==='AVAILABLE';if(e){const f=a[x(0x151)]('.')[x(0x11c)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x115)](h);if(i&&i[x(0x148)]&&i[x(0x148)][0x0]?.[x(0x169)]){const j=i[x(0x148)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[x(0x163)](x(0x104),k);}}return{'available':e};}async[a128s(0x15a)](a,b,c){const y=a128s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.['HostedZones'])throw Log[y(0x163)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[y(0x140)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0xf9),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x137)](f),Log[y(0x111)](y(0x100)+a+y(0x103)+c);}catch(g){console['error'](y(0xf7),g);}}async[a128s(0x149)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0xf4)],'InstanceType':a[z(0x124)],'KeyName':a[z(0x12b)],'MaxCount':a['maxCount'],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x12f)][z(0x151)](','),'SubnetId':a[z(0x13f)],'TagSpecifications':[{'ResourceType':z(0x105),'Tags':a[z(0x11b)]}]};a[z(0x160)]&&(b['UserData']='file://'+a[z(0x160)]);const c=new RunInstancesCommand(b),d=await client[z(0x115)](c);return d;}catch(f){Log[z(0x163)](f);}}async[a128s(0x16b)](a){const A=a128s;try{const b={'InstanceIds':[a[A(0x109)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x115)](c);return d;}catch(f){return Log[A(0x163)](f),{};}}async[a128s(0x14e)]({keyName:a,env:b}){const B=a128s,c=this[B(0x126)][B(0x168)](b),d=a128f[B(0x10f)](c,B(0x15c),a+B(0x15e));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x115)](g),i=h[B(0x121)];if(i){await this[B(0x126)][B(0x102)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this['fsi'][B(0x106)](d);if(j)return Log[B(0x162)](B(0x125)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(B(0xf3));}catch(k){Log[B(0x163)](k),process[B(0x166)](0x1);}}async[a128s(0x154)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x111)]('Port\x20'+a+'\x20opened!'),await client['send'](d);}async['ec2createSG'](a){const D=a128s;try{a['description']===''&&(a['description']=await Actions[D(0xf1)](D(0x157))||D(0xfa));const b={'Description':a[D(0xec)],'GroupName':a[D(0x144)],'VpcId':a[D(0x135)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x115)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x11a));f&&a['sgPorts'][D(0x16a)](g=>{const E=D;this[E(0x154)]({'port':parseInt(g),'groupId':f});}),Log[D(0x162)]('Created:\x20'+f+D(0x159)+a[D(0x144)]);}catch(g){return Log['error'](g),![];}return!![];}async['ec2describeKeys'](a){const F=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0x115)](d);if(!f)throw F(0x11a);const {KeyPairs:g}=f;g?(g?.[F(0x16a)]((h,i)=>{const G=F;h[G(0xf8)]&&b[G(0x112)]({'id':i,'name':h[G(0xf8)]});}),b[F(0x152)]>0x0&&b[F(0x16a)](h=>{const H=F;h['name']===a?.[H(0xf0)]?Log['success'](H(0x108)+h['id']+H(0x159)+h[H(0x144)]):Log['notice']('ID:\x20'+h['id']+H(0x159)+h[H(0x144)]);})):Log[F(0x163)](F(0x153));}catch(h){Log['error'](h);}return b;}async[a128s(0x14b)](a){try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process['exit'](0x1);}}async['ec2describeInstances'](){const I=a128s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[I(0x143)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x115)](c);d[I(0x11f)]?.[I(0x16a)]((f,g)=>{const J=I;if(f?.[J(0x147)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x147)][0x0],n=m?.['find'](({Key:o})=>o===J(0x130));a[J(0x112)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0x156)]});}}),a['length']>0x0?a['forEach'](f=>{const K=I,g='ID:\x20'+f['id']+K(0x159)+f[K(0x144)]+K(0x161)+f[K(0xef)]+'\x20STATUS:\x20'+f['status']+K(0x12e)+f[K(0x109)]+K(0x16d)+f['publicIp']+K(0x12a)+f[K(0x13c)];if(f[K(0x117)]==='terminated')Log['error'](g);else f[K(0x117)]===K(0x155)?Log[K(0x162)](g):Log[K(0x111)](g);}):Log['error'](I(0x110));}catch(f){Log[I(0x163)](f);}return a;}async[a128s(0x13e)](a){const L=a128s;try{const b={'InstanceIds':[a[L(0x109)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[L(0x134)][L(0x101)]===0xc8&&Log[L(0x162)](L(0xfb)),d;}catch(f){Log[L(0x163)](f);}}async['chooseVPC'](){const M=a128s;let a='';Log[M(0x111)](M(0x127));const b=new DescribeVpcsCommand({}),c=await client[M(0x115)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const N=M;g['VpcId']&&g['CidrBlock']&&e[N(0x112)]({'id':h,'vpcId':g[N(0x136)],'cidr':g[N(0x158)]});});e[M(0x16a)](function(g){const O=M;console[O(0x10d)](O(0x108)+g['id']+O(0x10b)+g['vpcId']+O(0x14c)+g[O(0xfe)]);});const f=await Actions[M(0xf1)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[M(0x16a)](function(g){const P=M;g['id']==f&&(a=g[P(0x135)],Log[P(0x162)](P(0x128)+a+'\x0a'));});if(a==='')return Log[M(0x163)](M(0x164)),'';return a;}async['chooseInstance'](){const Q=a128s,a=await this[Q(0x146)]();if(a[Q(0x152)]===0x0)return Log[Q(0x163)](Q(0x145)),null;const b=await Actions[Q(0xf1)](Q(0x165));!b&&(Log[Q(0x163)](Q(0x119)),process[Q(0x166)](0x0));const c=a[Q(0xeb)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0xed)]({env:a}){const R=a128s,b=this[R(0x126)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0xf1)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0x14e)]({'keyName':f,'env':a});try{const h=await Actions[R(0x12d)](R(0x13d),!![]);if(h)try{const i=a128e[R(0x10e)](a128f[R(0x10f)](R(0x133),a,R(0x138)),'utf8'),j=JSON[R(0x16c)](i);j['pem']=a128f[R(0x10f)](R(0x15c),f+R(0x15e)),a128e[R(0xff)](a128f[R(0x10f)]('config',a,R(0x138)),JSON[R(0x139)](j,null,0x2));}catch(k){Log[R(0x163)](k),Log[R(0x163)](R(0x123));}}catch(l){Log[R(0x163)](l),process[R(0x166)](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x114)](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x115)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const T=S;i[T(0xfc)]&&i['GroupId']&&b[T(0x112)]({'id':j,'name':i[T(0xfc)],'sgId':i[T(0x14f)]});});let g='',h=0x0;return b['forEach'](function(i){const U=S;i[U(0x144)]===a&&(g=i[U(0x15d)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const V=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[V(0x163)](d),process[V(0x166)](0x1);}}}
|
|
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 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=-parseInt(k(0xfb))/0x1*(-parseInt(k(0x103))/0x2)+parseInt(k(0xf5))/0x3*(parseInt(k(0xf4))/0x4)+-parseInt(k(0xf9))/0x5*(-parseInt(k(0xf8))/0x6)+parseInt(k(0xf6))/0x7*(-parseInt(k(0xfd))/0x8)+-parseInt(k(0x102))/0x9+parseInt(k(0xfe))/0xa+-parseInt(k(0xfc))/0xb*(parseInt(k(0xfa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x7e265));function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0xf4;var f=c[d];return f;},a129d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x101)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e['toString']()[m(0xf7)](m(0xff))[m(0x100)]()['constructor'](e)['search'](m(0xff));});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=['apply','4160817ZfSvta','58fyRpDJ','19396hnYAXc','597yKaDju','935158JatfBC','search','624EdHPcW','16205LVLRGC','10674804RpnJEt','28409Gigmlk','11bforwE','56mQMIKg','6778710ZRmWPA','(((.+)+)+)+$','toString'];a129c=function(){return n;};return a129c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130m=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(0xa6))/0x1+-parseInt(j(0xa5))/0x2+parseInt(j(0xa2))/0x3+parseInt(j(0xa8))/0x4+parseInt(j(0xa0))/0x5*(parseInt(j(0xaf))/0x6)+-parseInt(j(0xaa))/0x7*(parseInt(j(0xb4))/0x8)+-parseInt(j(0xb1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xe4769));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x9d)]()[l(0xa7)]('(((.+)+)+)+$')['toString']()['constructor'](a130a)[l(0xa7)](l(0xac));});a130a();function a130c(){const q=['awsLogin','10922391fcjLKx','error','--username','72hRnqvL','push','join','toString','.amazonaws.com/','--password-stdin','15yJlNrG','AWS','2539683VfhdSF','tag','docker\x20','3037714ekbWgi','760833TWrxbR','search','5253504LZmRZb','apply','270606nYXseL','inherit','(((.+)+)+)+$','login','.dkr.ecr.','2190786GsxpWK'];a130c=function(){return q;};return a130c();}import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x9b;let f=c[d];return f;},a130d(a,b);}export class Docker{static[a130m(0xa3)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=[n(0xa3),a,b+'.dkr.ecr.'+c+n(0x9e)+d],g=n(0xa4)+f['join']('\x20'),h=execSync(g,{'stdio':n(0xab)})[n(0x9d)]();return h;}catch(i){return Log['error'](i),'';}}static[a130m(0xb0)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0xad),o(0xb3),o(0xa1),o(0x9f),a+o(0xae)+b+'.amazonaws.com'],d=o(0xa4)+c[o(0x9c)]('\x20'),f=execSync(d,{'stdio':o(0xab)})[o(0x9d)]();return f;}catch(g){return Log[o(0xb2)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=[p(0x9b),a+p(0xae)+b+p(0x9e)+c],f=p(0xa4)+d[p(0x9c)]('\x20'),g=execSync(f,{'stdio':'inherit'})[p(0x9d)]();return g;}catch(h){return Log[p(0xb2)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=-parseInt(f(0xd8))/0x1*(parseInt(f(0xd9))/0x2)+parseInt(f(0xd5))/0x3*(-parseInt(f(0xd6))/0x4)+parseInt(f(0xd1))/0x5*(parseInt(f(0xd4))/0x6)+parseInt(f(0xdb))/0x7+parseInt(f(0xda))/0x8*(parseInt(f(0xd3))/0x9)+-parseInt(f(0xd7))/0xa+parseInt(f(0xcc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xf07ce));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a[h(0xd0)]()[h(0xcd)](h(0xcf))[h(0xd0)]()[h(0xce)](a131a)[h(0xcd)](h(0xcf));});function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0xcc;var f=c[d];return f;},a131d(a,b);}a131a();function a131c(){var i=['46cNmwla','80314ItUCnR','452344GOFlkf','1443624gXlMEI','27750602RlyQUC','search','constructor','(((.+)+)+)+$','toString','5cBQllY','apply','117XpVBQc','7376988XGvTku','66507gvZVIP','124tbDHkU','11740720wROQIO'];a131c=function(){return i;};return a131c();}export{};
|