@maka/maka-cli 4.7.14 → 4.7.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.vs/maka-cli-src/FileContentIndex/79ef20d9-272b-4d5b-9ece-bc61eda1bad6.vsidx +0 -0
- package/.vs/slnx.sqlite +0 -0
- package/bundle/obf/package.json +1 -2
- 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/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 -2
- package/.vs/maka-cli-src/FileContentIndex/4c0a1daa-da96-4fc9-bf6f-ad5a9148b26c.vsidx +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115l=a115d;(function(a,b){const j=a115d,c=a();while(!![]){try{const d=parseInt(j(0xb8))/0x1+parseInt(j(0xb6))/0x2*(parseInt(j(0xa8))/0x3)+parseInt(j(0xa4))/0x4*(parseInt(j(0xb2))/0x5)+-parseInt(j(0xa9))/0x6+parseInt(j(0xab))/0x7+parseInt(j(0xb3))/0x8+-parseInt(j(0xaf))/0x9*(parseInt(j(0xae))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xdf2ba));const a115b=(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;};}()),a115a=a115b(this,function(){const k=a115d;return a115a['toString']()[k(0xa7)]('(((.+)+)+)+$')[k(0xa3)]()[k(0xa2)](a115a)[k(0xa7)](k(0xbc));});a115a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x9a;let f=c[d];return f;},a115d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a115c(){const o=['5wWrJHX','13502600avACRQ','maka\x20g:method\x20todos','injectAtEndOfFile','54438jWSWOR','method','770966lnbVHW','methods','dir','appPathPrefix','(((.+)+)+)+$','error','withValue','import\x20\x27./methods','fsi','resourceName','mdg:validated-method','checkMeteorPackage','ddp-rate-limiter','engines','startup','index.','constructor','toString','7259016lDkmjM','imports','-rpc-method.','search','75qwMfLT','10204200tmcioe','pathFromApp','3034927tRxGZv','maka:check','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','5545550udVFbm','45qLSomG','method/method.js','create'];a115c=function(){return o;};return a115c();}Generator[a115l(0xb1)]({'name':a115l(0xb7),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a115l(0xad),'validOpts':[a115l(0xba)],'examples':[a115l(0xb4)]},async function(a,b){const m=a115l;try{const c=this[m(0x9a)]['getMakaProjectConfig']();await this[m(0x9a)][m(0xbe)](c,async()=>{const n=m,d=paramCase(b[n(0x9b)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[n(0x9b)]),'camelCase':camelCase(b[n(0x9b)]),'noRename':!![]};let g='js';c[n(0x9f)]['js']==='tsx'&&(g='ts');await this[n(0x9a)][n(0x9d)]([n(0xac),n(0x9e),n(0x9c)],{'shouldInstall':!![]}),await this[n(0x9a)]['template']({'srcPath':n(0xb0),'destPath':this['fsi'][n(0xaa)]({'pathParts':[n(0xa5),n(0xa0),b['appPathPrefix'],n(0xb9),b[n(0xba)],d+n(0xa6)+g]}),'context':f,'config':c});const h=b[n(0xba)]?'/'+b[n(0xba)]+'/':'/',i=this[n(0x9a)][n(0xaa)]({'pathParts':['imports',n(0xa0),b[n(0xbb)],n(0xa1)+c[n(0x9f)]['js']]});await this[n(0x9a)][n(0xb5)]({'filePath':i,'content':n(0xbf)+h+d+'-rpc-method\x27;'});});}catch(d){Log[m(0xbd)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116n=a116d;function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x10b;let f=c[d];return f;},a116d(a,b);}(function(a,b){const l=a116d,c=a();while(!![]){try{const d=parseInt(l(0x133))/0x1+-parseInt(l(0x124))/0x2+parseInt(l(0x11d))/0x3*(parseInt(l(0x114))/0x4)+parseInt(l(0x12c))/0x5*(-parseInt(l(0x111))/0x6)+parseInt(l(0x115))/0x7*(parseInt(l(0x12b))/0x8)+parseInt(l(0x123))/0x9+parseInt(l(0x125))/0xa*(-parseInt(l(0x121))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xdbbe6));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 m=a116d;return a116a['toString']()[m(0x128)](m(0x10e))[m(0x131)]()[m(0x119)](a116a)[m(0x128)](m(0x10e));});function a116c(){const q=['package','layout','engines','24669018RBkTHJ','resourceName','14932503QrSlAu','1711202CepqlK','10ateOja','package.js','hasOwnProperty','search','server','/client/','8941768URTuwG','155VTjdny','noRename','pathFromApp','.js','features','toString','store','963480gJjqnd','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','relative','packages','(((.+)+)+)+$','maka\x20g:package\x20todos:package','theme','139752FRower','dir','pathFromAppWithNoReWrite','28YXZFMT','7VZyiGS','fsi','graphql','getMakaProjectConfig','constructor','template','/package.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','419997aMEyQk'];a116c=function(){return q;};return a116c();}a116a();import a116e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a116n(0x11e),'aliases':['p'],'usage':a116n(0x11c),'shortDesc':a116n(0x10b),'validOpts':[a116n(0x112)],'examples':[a116n(0x10f)]},async function(a,b){const o=a116n,c=paramCase(b['resourceName']),d=this[o(0x116)][o(0x12e)]({'pathParts':[o(0x10d),b[o(0x112)],c]}),e=this['fsi'][o(0x113)]({'pathParts':['packages',b['dir'],c,o(0x126)]}),f=this[o(0x116)][o(0x118)]();await this['fsi']['withValue'](f,async()=>{const p=o,g={'name':paramCase(b[p(0x122)]),'myPath':a116e[p(0x10c)](this['fsi']['pathFromProject']({}),d),'cssCaseName':paramCase(b[p(0x122)]),'className':pascalCase(b[p(0x122)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[p(0x120)]['client'],'graphql':f['engines'][p(0x117)],'ssr':f[p(0x120)]['ssr'],'isComponent':b['hasOwnProperty']('component'),'isLayout':b[p(0x127)](p(0x11f)),'isStore':b[p(0x127)](p(0x132)),'features':f[p(0x130)],'noRename':!![],'theme':f[p(0x120)][p(0x110)]};await this[p(0x116)]['template']({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[p(0x12d)]=![];const h=d+p(0x12a)+c+p(0x12f);await this[p(0x116)][p(0x11a)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=['lib',p(0x129),'tests/client','tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+p(0x12f);await this[p(0x116)][p(0x11a)]({'srcPath':'package/'+j+p(0x11b),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117l=a117d;(function(a,b){const j=a117d,c=a();while(!![]){try{const d=-parseInt(j(0x1d4))/0x1+parseInt(j(0x1ba))/0x2+parseInt(j(0x1db))/0x3*(parseInt(j(0x1cc))/0x4)+-parseInt(j(0x1ac))/0x5*(-parseInt(j(0x1c7))/0x6)+-parseInt(j(0x1a3))/0x7+-parseInt(j(0x1ae))/0x8*(-parseInt(j(0x1cb))/0x9)+parseInt(j(0x1a0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xb0a4d));const a117b=(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;};}()),a117a=a117b(this,function(){const k=a117d;return a117a[k(0x1b4)]()[k(0x1b8)]('(((.+)+)+)+$')[k(0x1b4)]()['constructor'](a117a)[k(0x1b8)](k(0x1a8));});function a117c(){const o=['withHooks','search','injectAtBeginningOfFile','1100928dcviHa','react','engines','/imports/ui/','string','root','features','theme','components','true','hooks','Updating\x20npm\x20packages\x20...','page','9624lkcbWm','test','\x27;\x0a','dir','882aESfWY','227284jHXOXu','template/template.css','client','graphql','hook/hook.js','import\x20\x27./','/imports/ui/pages','template/template.html','1216728CyzDOk','injectTemplateModule','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','.css','baseDir','.js','pathFromProject','3wgRmWm','pages','getMakaProjectConfig','checkNpmPackage','component/component.js','fileName','relative','vanilla','className','none','store','css','10627340FbDary','.html','template','8655080JGNAat','withTranslations','ssr','setTemplate','api','(((.+)+)+)+$','create','pathFromApp','html','2495tDHcIu','Generate\x20a\x20page.','57656atHUra','installNpmPackage','route','ramda','hasOwnProperty','fsi','toString','processAndRunGenerator','resourceName'];a117c=function(){return o;};return a117c();}a117a();import a117e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a117f from'../generators/maka.gen.js';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x19f;let f=c[d];return f;},a117d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a117l(0x1a9)]({'name':a117l(0x1c6),'aliases':aliases,'usage':a117l(0x1d6),'shortDesc':a117l(0x1ad),'validOpts':[{'name':'baseDir','values':[a117l(0x1c4),a117l(0x1c2),a117l(0x1dc),'layouts']},{'name':'withHook','boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const m=a117l,c=b[m(0x1d8)]?m(0x1bd)+b[m(0x1d8)]:m(0x1d2),d=this[m(0x1b3)][m(0x1aa)](b),e=this['fsi'][m(0x1aa)]({'pathParts':[c,b['dir'],paramCase(b[m(0x1b6)]),paramCase(b[m(0x1b6)])]}),f=this[m(0x1b3)][m(0x1dd)]();let g='';return await this[m(0x1b3)]['withValue'](f,async()=>{const n=m;typeof f['template'][n(0x1ab)]===n(0x1be)&&(f[n(0x1a2)][n(0x1ab)]=f[n(0x1a2)][n(0x1ab)]===n(0x1c3)?!![]:![],this[n(0x1b3)][n(0x1a6)](n(0x1ab),f[n(0x1a2)][n(0x1ab)]));typeof f[n(0x1a2)][n(0x1c8)]===n(0x1be)&&(f['template']['test']=f[n(0x1a2)]['test']==='true'?!![]:![],this[n(0x1b3)]['setTemplate']('test',f[n(0x1a2)][n(0x1c8)]));typeof f[n(0x1a2)][n(0x19f)]===n(0x1be)&&(f[n(0x1a2)][n(0x19f)]=f['template'][n(0x19f)]===n(0x1c3)?!![]:![],this[n(0x1b3)][n(0x1a6)](n(0x19f),f[n(0x1a2)][n(0x19f)]));typeof f[n(0x1a2)]['js']===n(0x1be)&&(f['template']['js']=f[n(0x1a2)]['js']==='true'?!![]:![],this[n(0x1b3)]['setTemplate']('js',f[n(0x1a2)]['js']));!f[n(0x1c0)]&&(f['features']={});!b[n(0x1bf)]&&!this[n(0x1b3)][n(0x1de)](n(0x1b1))&&(Log['warn'](n(0x1c5)),this[n(0x1b3)][n(0x1af)]('ramda',{'cwd':d}));const h={'name':pascalCase(b[n(0x1b6)]),'myPath':a117e[n(0x1e1)](this['fsi'][n(0x1da)]({}),e),'cssCaseName':paramCase(b[n(0x1b6)]),'className':pascalCase(b[n(0x1b6)]),'camelCaseName':camelCase(b[n(0x1b6)]),'fileName':paramCase(b[n(0x1b6)]),'graphql':f['engines'][n(0x1cf)],'features':f['features'],'client':f[n(0x1bc)][n(0x1ce)],'api':f['engines'][n(0x1a7)],'ssr':f[n(0x1bc)][n(0x1a5)],'isStore':b[n(0x1b2)](n(0x1e5)),'isComponent':b['hasOwnProperty']('component'),'isLayout':b[n(0x1b2)]('layout'),'withTranslations':f[n(0x1c0)][n(0x1a4)],'test':f[n(0x1bc)][n(0x1c8)],'theme':f['engines'][n(0x1c1)]};f[n(0x1a2)][n(0x1ab)]&&await this[n(0x1b3)][n(0x1a2)]({'srcPath':n(0x1d3),'destPath':e+n(0x1a1),'context':h,'config':f});f['features']?.[n(0x1b7)]||b['withHook']?await this[n(0x1b3)]['template']({'srcPath':n(0x1d0),'destPath':e+'.js','framework':'react','context':h,'config':f}):await this['fsi'][n(0x1a2)]({'srcPath':n(0x1df),'destPath':e+n(0x1d9),'framework':n(0x1bb),'context':h,'config':f});f[n(0x1bc)][n(0x1c8)]!==n(0x1e4)&&await this[n(0x1b3)][n(0x1a2)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':n(0x1bb),'context':h,'config':f});f[n(0x1a2)][n(0x19f)]&&await this[n(0x1b3)][n(0x1a2)]({'srcPath':n(0x1cd),'destPath':e+n(0x1d7),'context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[n(0x1bc)]['client']!=='react'&&f[n(0x1bc)][n(0x1ce)]!==n(0x1e2)?(f[n(0x1a2)][n(0x19f)]&&await this[n(0x1b3)][n(0x1b9)]({'filePath':e+'.'+f[n(0x1bc)]['js'],'content':n(0x1d1)+h[n(0x1e0)]+'.'+f[n(0x1bc)][n(0x1ab)]+n(0x1c9)+n(0x1d1)+h[n(0x1e0)]+'.'+f[n(0x1bc)][n(0x19f)]+'\x27;'}),!f[n(0x1a2)][n(0x19f)]&&await this[n(0x1b3)][n(0x1b9)]({'filePath':e+'.'+f[n(0x1bc)]['js'],'content':'import\x20\x27./'+h[n(0x1e0)]+'.'+f[n(0x1bc)][n(0x1ab)]+'\x27;'})):f['template'][n(0x19f)]&&await this[n(0x1b3)][n(0x1b9)]({'filePath':e+'.'+f[n(0x1bc)]['js'],'content':n(0x1d1)+h[n(0x1e0)]+'.'+f[n(0x1bc)][n(0x19f)]+'\x27;'});const i=b[n(0x1ca)]?'/'+b[n(0x1ca)]+'/':'/';g=''+c+i+h[n(0x1e0)]+'/'+h['fileName'],await this['fsi'][n(0x1d5)](h[n(0x1e3)],f,g),!b[n(0x1bf)]&&await a117f[n(0x1b5)](n(0x1b0),[i+h[n(0x1e3)]],b);}),g+'.'+f[m(0x1bc)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a118j=a118d;(function(a,b){const h=a118d,c=a();while(!![]){try{const d=parseInt(h(0xa3))/0x1*(-parseInt(h(0xaf))/0x2)+-parseInt(h(0xae))/0x3*(parseInt(h(0xa9))/0x4)+-parseInt(h(0xaa))/0x5+parseInt(h(0x9a))/0x6+parseInt(h(0xa2))/0x7+parseInt(h(0x9e))/0x8+parseInt(h(0xab))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x556da));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 i=a118d;return a118a['toString']()['search'](i(0xa7))[i(0xac)]()[i(0xb3)](a118a)[i(0xb4)]('(((.+)+)+)+$');});a118a();function a118c(){const m=['118815zcSROJ','1226WEqyxO','publish/publish.','server/publish.','maka\x20g:publish\x20todos','constructor','search','3113196jfrXlq','engines','rewriteDestinationPathForEngine','getMakaProjectConfig','1051808kUGRZR','templateContent','withValue','fsi','2357264Qmzzva','173XYxFEk','resourceName','create','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','(((.+)+)+)+$','tsx','16dCMzxG','2810450RtYUte','1704411CCWMnh','toString','publish'];a118c=function(){return m;};return a118c();}function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x9a;let f=c[d];return f;},a118d(a,b);}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a118j(0xa5)]({'name':a118j(0xad),'aliases':['p'],'usage':a118j(0xa6),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':[a118j(0xb2)]},async function(a,b){const k=a118j,c=this['fsi'][k(0x9d)]();await this['fsi'][k(0xa0)](c,async()=>{const l=k,d={'name':b[l(0xa4)],'collection':paramCase(b[l(0xa4)]),'noRename':!![]};let e='js';c['engines']['js']===l(0xa8)&&(e='ts');const f=this[l(0xa1)][l(0x9c)]({'pathParts':[l(0xb1)+c[l(0x9b)]['js']]}),g=this[l(0xa1)][l(0x9f)]({'srcPath':l(0xb0)+e,'context':d,'config':c});await this['fsi']['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119B=a119d;(function(a,b){const y=a119d,c=a();while(!![]){try{const d=-parseInt(y(0xef))/0x1+parseInt(y(0x11c))/0x2*(-parseInt(y(0xf9))/0x3)+-parseInt(y(0xd0))/0x4*(parseInt(y(0xe4))/0x5)+-parseInt(y(0xe3))/0x6+parseInt(y(0xfa))/0x7*(parseInt(y(0x10b))/0x8)+parseInt(y(0xd3))/0x9*(parseInt(y(0x101))/0xa)+-parseInt(y(0xe9))/0xb*(-parseInt(y(0x122))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x351f0));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a119d;if(c){const e=c[z(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const A=a119d;return a119a[A(0xf2)]()[A(0x113)]('(((.+)+)+)+$')[A(0xf2)]()[A(0x100)](a119a)['search']('(((.+)+)+)+$');});a119a();import a119e from'path';import{Generator}from'../generator.js';function a119c(){const K=['Scaffolding\x20for\x20a\x20Route.','true','resourceName','8EIoxrU','<Router','baseDir','41733raDPpD','client','withValue','maka\x20g:route\x20pages/lists/listIndex\x20lists','\x0a\x09\x09','injectIntoFile','fsi','templateName','maka\x20g:route\x20pages/about','readFileLines','toLowerCase','dir','PrivateLayout','rewriteDestinationPathForEngine','injectAfterLineNumber','url','729744wfjQmS','551940poJJAP','warn','includes','map','length','129547eaQLGg','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','startup','apply','create','layouts','432465HvtrEu','react','config','toString','\x22*\x22','getMakaProjectConfig','maka\x20g:route\x20todosIndex\x20todos','withTranslations','\x20to\x20','Invalid\x20directory\x20option\x20\x22','19353xOnEAQ','395206HxPGgy','Route\x20','only','<Route','indexOf','routes.js','constructor','880aktbng','cwd','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','imports','\x20already\x20exists.\x20\x20Skipping.','/imports/ui/','private','pathFromApp','withHook','fileContainsString','56MEWpdc','ssr','const\x20privateRoutes\x20=\x20(<>','replace','hooks','filter','engines','layout','search','maka\x20g:route\x20todosEdit\x20todos/:id/edit','info','route','templateContent','root','join','/imports/ui/pages','lib','102NXkqQr','features','Valid\x20options\x20are:\x20','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','error','vanilla','528TqICyb'];a119c=function(){return K;};return a119c();}function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0xd0;let f=c[d];return f;},a119d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a119B(0xed)]({'name':a119B(0x116),'aliases':aliases,'validOpts':[a119B(0x107),a119B(0x112),a119B(0xfc),a119B(0x102),a119B(0xf1),a119B(0x118),a119B(0x109),a119B(0xe2),a119B(0xd2)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a119B(0x123),'examples':[a119B(0xf5),a119B(0x114),a119B(0x103),a119B(0xd6),a119B(0xdb)]},async function(a,b){const C=a119B;try{const c=[C(0x10f),'components','pages',C(0xee)];if(b[C(0xd2)]&&!c[C(0xe6)](b[C(0xd2)])){Log[C(0x120)](C(0xf8)+b[C(0xd2)]+'\x22'),Log['error'](C(0x11e)+c[C(0x119)](',\x20'));throw new UsageError();}const d=this['fsi'][C(0xf4)]();await this[C(0xd9)][C(0xd5)](d,async()=>{const D=C,f=b['private']??![];let g=paramCase(b[D(0x125)]),h='/'+g;a[D(0xe8)]>0x1&&(h='/'+a[D(0x110)](function(n){return n!=='/';})[D(0x119)]('/')[D(0xdd)]());g=camelCase(g);b[D(0x112)]&&(b[D(0x112)]=camelCase(b[D(0x112)]));const i=b[D(0xd2)]?D(0x106)+b['baseDir']:D(0x11a),j=a119e[D(0x119)](i,b[D(0xde)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x112)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d['engines'][D(0xd4)],'newForm':![],'withTranslations':d[D(0x11d)][D(0xf6)]};f&&(k[D(0x112)]=D(0xdf));let l,m;if(d[D(0x111)][D(0xd4)]==='react'){if(d[D(0x111)][D(0x10c)]===D(0x124)){const r=this[D(0xd9)]['pathFromApp']({'pathParts':['imports',D(0xeb),D(0x11b),D(0xff)]});l=this['fsi'][D(0xe0)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][D(0x108)]({'pathParts':[D(0x104),'startup',D(0xd4),D(0xff)]});l=this[D(0xd9)][D(0xe0)]({'pathParts':[s],'config':d});}const n=await this[D(0xd9)][D(0x10a)](l,g);if(n){Log[D(0xe5)](D(0xfb)+g+D(0x105));return;}else{const t=this['fsi']['pathFromProject'](l);Log[D(0x115)]('Adding\x20route\x20'+g+D(0xf7)+l[D(0x10e)](t,''));}const o=this[D(0xd9)]['readFileLines'](l)[D(0xe7)]((u,v)=>{const E=D;return u[E(0xe6)](E(0x11f))?v+0x1:null;})[D(0x110)](u=>u!==null);let p=this[D(0xd9)]['readFileLines'](l)[D(0xe7)]((u,v)=>{const F=D;return u[F(0xe6)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})['filter'](u=>u!==null),q=this[D(0xd9)][D(0xdc)](l)['map']((u,v)=>{const G=D;return u['includes'](G(0x10d))?v+0x1:null;})['filter'](u=>u!==null);p[D(0xe8)]>0x0&&q[D(0xe8)]>0x0&&(k['newForm']=!![]);m=this[D(0xd9)][D(0x117)]({'srcPath':'route/route.js','framework':D(0xf0),'context':k,'config':d});if(p[D(0xe8)]>0x0||q[D(0xe8)]>0x0){this['fsi'][D(0xe1)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0xe8)]>0x0)q=this[D(0xd9)][D(0xdc)](l)['map']((u,v)=>{const H=D;return u[H(0xe6)](H(0x10d))?v+0x1:null;})[D(0x110)](u=>u!==null),this[D(0xd9)][D(0xe1)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this['fsi'][D(0xdc)](l)['map']((u,v)=>{const I=D;return u[I(0xe6)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x110)](u=>u!==null),this[D(0xd9)][D(0xe1)]({'filePath':l,'content':'\x09{'+k[D(0xda)]+'}','lineNumber':p[0x0]})):Log['warn'](D(0xea)+l);}else{const u=this['fsi'][D(0xdc)](l)[D(0xe7)](x=>{const J=D;return x[J(0xe6)](J(0xf3));}),v=u[D(0xfe)](!![])>-0x1,w=v?D(0xfd):'</Router>';await this['fsi'][D(0xd8)]({'filePath':l,'content':D(0xd7)+m+D(0xd7),'begin':D(0xd1),'end':w});}}else{if(d[D(0x111)][D(0xd4)]===D(0x121)){const x=this[D(0xd9)][D(0x108)]({'pathParts':[D(0x104),D(0xeb),'client',D(0xff)]});l=this[D(0xd9)][D(0xe0)]({'pathParts':[x],'config':d}),m=this['fsi']['templateContent']({'srcPath':'route/route.js','context':k}),await this[D(0xd9)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x120)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x16b;let f=c[d];return f;},a120d(a,b);}const a120m=a120d;(function(a,b){const j=a120d,c=a();while(!![]){try{const d=parseInt(j(0x184))/0x1*(parseInt(j(0x16c))/0x2)+parseInt(j(0x177))/0x3+-parseInt(j(0x172))/0x4*(parseInt(j(0x185))/0x5)+-parseInt(j(0x189))/0x6+-parseInt(j(0x180))/0x7*(-parseInt(j(0x17b))/0x8)+parseInt(j(0x16d))/0x9*(-parseInt(j(0x181))/0xa)+parseInt(j(0x16e))/0xb*(-parseInt(j(0x182))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x89f9a));function a120c(){const p=['resourceName','3rrqTMP','2135UolmFX','type','template','logger','3734766PgCpAW','svc','installNpmPackage','maka\x20{generate,\x20g}:{service}\x20<resource-name>','winston','engines','services','lib','774NtMxkm','1017DKrtUJ','42295CLhOfM','winston\x20setimmediate','pathFromApp','checkNpmPackage','2444XQhLFV','maka\x20g:svc\x20service-logger\x20--type=logger','apply','withValue','search','3384600txFsJK','imports','getMakaProjectConfig','create','88PZfjZL','(((.+)+)+)+$','toString','fsi','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','687477cutRAC','53410TlReAI','492tiCgPU'];a120c=function(){return p;};return a120c();}const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a120d;if(c){const e=c[k(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const l=a120d;return a120a[l(0x17d)]()['search'](l(0x17c))[l(0x17d)]()['constructor'](a120a)[l(0x176)](l(0x17c));});a120a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a120m(0x17a)]({'name':'service','aliases':[a120m(0x18a)],'usage':a120m(0x18c),'shortDesc':a120m(0x17f),'requiredOpts':[{'name':a120m(0x186),'values':[a120m(0x188)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a120m(0x173)]},async function(a,b){const n=a120m;try{const c=this['fsi'][n(0x179)]();await this[n(0x17e)][n(0x175)](c,async()=>{const o=n,d=this['fsi']['pathFromApp']({}),f=paramCase(b[o(0x183)]),g={'name':pascalCase(b[o(0x183)]),'fileName':f,'camelCase':camelCase(b[o(0x183)]),'type':b[o(0x186)],'engine':c[o(0x18e)]['js'],'noRename':!![]};let h='js';c[o(0x18e)]['js']==='tsx'&&(h='ts');if(b[o(0x186)]==='logger'){!this['fsi'][o(0x171)](o(0x18d))&&await this[o(0x17e)][o(0x18b)](o(0x16f),{'cwd':d,'msg':'Installing\x20winston'});const i=this['fsi'][o(0x170)]({'pathParts':[o(0x178),'startup',o(0x16b),o(0x18f),f+'.'+h]});await this[o(0x17e)][o(0x187)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a123d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a123d,c=a();while(!![]){try{var d=-parseInt(f(0xdf))/0x1+-parseInt(f(0xdd))/0x2+-parseInt(f(0xe0))/0x3*(parseInt(f(0xe6))/0x4)+-parseInt(f(0xe2))/0x5+parseInt(f(0xe1))/0x6+parseInt(f(0xdc))/0x7+parseInt(f(0xe5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xac926));function a123c(){var i=['18913040LUmBUG','36giAerD','apply','2440641cHeaDH','2119838OrscEf','(((.+)+)+)+$','95013uBRRWj','221478zkEust','2757654FJcpqb','3230910lkyTHr','toString','search'];a123c=function(){return i;};return a123c();}var a123b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a123d;if(c){var e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){var h=a123d;return a123a[h(0xe3)]()[h(0xe4)]('(((.+)+)+)+$')[h(0xe3)]()['constructor'](a123a)[h(0xe4)](h(0xde));});a123a();import'./translation.js';function a123d(a,b){var c=a123c();return a123d=function(d,e){d=d-0xdc;var f=c[d];return f;},a123d(a,b);}import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121l=a121d;(function(a,b){const i=a121d,c=a();while(!![]){try{const d
|
|
1
|
+
const a121l=a121d;function a121c(){const o=['(((.+)+)+)+$','16mXhOyT','_keys','constructor','env','getMakaProjectConfig','apply','sslconfig','getGlobalConfig','join','38835236jjmyBt','appName','295566cSvIdn','fsi','6296436VRkbTu','276828ugsXrl','81SOsDnL','Generate\x20a\x20new\x20openssl\x20config\x20file','601290LnFqQQ','search','error','6pdPyzi','toString','1271855LslUxF','maka\x20{generate,\x20g}:sslconfig','withValue','70Wsycfx','service','getAppConfigPath','openssl/openssl.conf','1039816AecIsf'];a121c=function(){return o;};return a121c();}(function(a,b){const i=a121d,c=a();while(!![]){try{const d=-parseInt(i(0x8a))/0x1+-parseInt(i(0x90))/0x2*(-parseInt(i(0x87))/0x3)+-parseInt(i(0x7c))/0x4*(parseInt(i(0x92))/0x5)+-parseInt(i(0x89))/0x6+parseInt(i(0x95))/0x7*(-parseInt(i(0x7a))/0x8)+-parseInt(i(0x8b))/0x9*(-parseInt(i(0x8d))/0xa)+parseInt(i(0x85))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xb0b03));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a121d;if(c){const e=c[j(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const k=a121d;return a121a[k(0x91)]()['search'](k(0x7b))['toString']()[k(0x7e)](a121a)[k(0x8e)]('(((.+)+)+)+$');});function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x78;let f=c[d];return f;},a121d(a,b);}a121a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a121e from'path';Generator['create']({'name':a121l(0x82),'usage':a121l(0x93),'shortDesc':a121l(0x8c),'noNeedResource':!![],'requiredOpts':[a121l(0x7f)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const m=a121l;try{const c=await this[m(0x88)][m(0x80)](),d=await this[m(0x88)][m(0x83)](),f=this['fsi'][m(0x78)](b[m(0x7f)]),g=a121e[m(0x84)](f,m(0x7d),'openssl.conf');await this[m(0x88)][m(0x94)](c,async()=>{const n=m,h={'app':d[n(0x86)],'noRename':!![]};await this[n(0x88)]['template']({'srcPath':n(0x79),'destPath':g,'framework':n(0x96),'context':h,'config':c});});}catch(h){Log[m(0x8f)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a122z=a122d;function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x13c;let f=c[d];return f;},a122d(a,b);}(function(a,b){const x=a122d,c=a();while(!![]){try{const d=parseInt(x(0x153))/0x1*(-parseInt(x(0x172))/0x2)+-parseInt(x(0x175))/0x3+-parseInt(x(0x170))/0x4+parseInt(x(0x151))/0x5+parseInt(x(0x178))/0x6+parseInt(x(0x179))/0x7*(parseInt(x(0x143))/0x8)+-parseInt(x(0x140))/0x9*(parseInt(x(0x13f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x322a8));const a122b=(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;};}()),a122a=a122b(this,function(){const y=a122d;return a122a['toString']()[y(0x14f)](y(0x165))[y(0x168)]()[y(0x17a)](a122a)[y(0x14f)](y(0x165));});function a122c(){const C=['search','maka\x20g:translation\x20--lang=de','1687950IAcQSW','i18next','9886MLNYPs','services','export\x20{\x20default\x20as\x20','lang','injectAtEndOfFile','locales','pathFromApp','i18n/index.js','index.js','setProjectConfig','Locale\x20already\x20defined:\x20','findAppDirectory','index.','root','.js','lib','rewriteDestinationPathForEngine','ssr','(((.+)+)+)+$','translations','checkNpmPackage','toString','injectAtBeginningOfFile','engines','withValue','maka\x20{generate,\x20g}:translation','import\x20\x27../lib/services/translations/i18n\x27;\x0a','Generate\x20a\x20new\x20locale\x20translation','client','979528TCkOsQ','features.withTranslations','64nKJISk','grep','import\x20\x27../lib/services/translations/i18n\x27;','411009KCmNre','readFileSync','imports','2375358DrHIDZ','7hVMMhw','constructor','fsi','server','default\x20as\x20','\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','1340atfHVb','11403eddtte','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','isFile','2720096xughVy','exit','\x20}\x20from\x20\x27./','i18n/i18n.js','service','create','warn','startup','installNpmPackage','translation','template','error'];a122c=function(){return C;};return a122c();}a122a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a122e from'fs';Generator[a122z(0x148)]({'name':a122z(0x14c),'usage':a122z(0x16c),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a122z(0x156),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a122z(0x16e),'description':a122z(0x13e),'examples':['maka\x20g:translation\x20--lang=en\x20(default)','maka\x20g:translation\x20--lang=fr',a122z(0x150)],'validOpts':[]},async function(a,b){const A=a122z;try{const c=this[A(0x17b)]['getMakaProjectConfig'](),d=this[A(0x17b)]['getGlobalConfig'](),f=this[A(0x17b)][A(0x15e)]();await this[A(0x17b)][A(0x16b)](c,()=>{const B=A;try{!b[B(0x156)]&&(b['lang']='en');!b[B(0x160)]&&!this[B(0x17b)][B(0x167)](B(0x152))&&(Log[B(0x149)](B(0x141)),this[B(0x17b)][B(0x14b)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[B(0x17b)][B(0x15c)](B(0x171),!![]));const g=this[B(0x17b)][B(0x159)]({'pathParts':[B(0x177),B(0x14a),B(0x16f),B(0x15b)]}),h=this[B(0x17b)][B(0x163)]({'pathParts':[g],'config':c}),i=this[B(0x17b)][B(0x173)](a122e[B(0x176)](h)[B(0x168)](),B(0x174))[0x0]&&!![];if(c['engines'][B(0x164)]==='true'){!i&&this[B(0x17b)][B(0x169)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[B(0x17b)][B(0x159)]({'pathParts':['imports',B(0x14a),B(0x13c),B(0x15b)]}),u=this[B(0x17b)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi'][B(0x173)](a122e['readFileSync'](u)[B(0x168)](),B(0x174))[0x0]&&!![];!v&&this[B(0x17b)]['injectAtBeginningOfFile']({'filePath':u,'content':B(0x16d)});}else!i&&this[B(0x17b)][B(0x169)]({'filePath':h,'content':B(0x16d)});const j={'app':d['appName'],'config':c},k=this[B(0x17b)][B(0x159)]({'pathParts':['imports',B(0x14a),'lib',B(0x154),'translations','i18n.js']}),l=this[B(0x17b)][B(0x142)](this['fsi'][B(0x163)]({'pathParts':[k],'config':c}));!l&&this[B(0x17b)][B(0x14d)]({'srcPath':B(0x146),'destPath':k,'framework':'service','context':j,'config':c});const m=this[B(0x17b)][B(0x159)]({'pathParts':[B(0x177),'startup','lib','services',B(0x166),B(0x158),b['lang']+B(0x161)]}),n=this[B(0x17b)][B(0x163)]({'pathParts':[m],'config':c}),o=this[B(0x17b)][B(0x142)](n);!o?this[B(0x17b)][B(0x14d)]({'srcPath':'i18n/locales.js','destPath':m,'framework':B(0x147),'context':j,'config':c}):Log[B(0x149)](B(0x15d)+n);const p=this[B(0x17b)][B(0x159)]({'pathParts':['imports',B(0x14a),B(0x162),B(0x154),B(0x166),B(0x158),B(0x15f)+c[B(0x16a)]['js']]}),q=this['fsi'][B(0x163)]({'pathParts':[p],'config':c}),r=this[B(0x17b)][B(0x142)](q);!r&&this[B(0x17b)][B(0x14d)]({'srcPath':B(0x15a),'destPath':p,'framework':B(0x147),'context':j,'config':c});const s=this[B(0x17b)][B(0x173)](a122e[B(0x176)](p)[B(0x168)](),B(0x13d)+b[B(0x156)])[0x0]&&!![];!s?this['fsi'][B(0x157)]({'filePath':p,'content':B(0x155)+b['lang']+B(0x145)+b['lang']+'\x27;'}):Log['warn']('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[B(0x14e)](w),process[B(0x144)](0x1);}});}catch(g){Log[A(0x14e)](g),process[A(0x144)](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(0x1c9))/0x1+-parseInt(j(0x1ce))/0x2*(parseInt(j(0x1ca))/0x3)+-parseInt(j(0x1d4))/0x4+-parseInt(j(0x1df))/0x5*(parseInt(j(0x1d2))/0x6)+parseInt(j(0x1de))/0x7*(-parseInt(j(0x1d1))/0x8)+parseInt(j(0x1d3))/0x9*(-parseInt(j(0x1e0))/0xa)+parseInt(j(0x1d8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xd2ebc));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x1d6)]()[l(0x1cc)](l(0x1d9))[l(0x1d6)]()[l(0x1e2)](a125a)['search'](l(0x1d9));});function a125c(){const n=['parse','1134329vNEvGX','1555eSbEAE','181190SjIKCr','stringify','constructor','totalmem','env','395184NOttPD','15hcthYF','url','search','--max-old-space-size=','220102xsQcKP','camelizeKeys','TOOL_NODE_FLAGS','24URyXkU','8832crlwvf','657JijJyl','2164812qZwEAt','NODE_NO_WARNINGS','toString','slice','50789134dVLfgk','(((.+)+)+)+$','dirname','apply','MAKA_COMMAND_PATH'];a125c=function(){return n;};return a125c();}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(0x1cb)]),__dirname=a125g[a125m(0x1da)](__filename);global[a125m(0x1dc)]=__dirname;function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x1c8;let f=c[d];return f;},a125d(a,b);}const total_memory=a125f[a125m(0x1e3)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a125m(0x1c8)][a125m(0x1d0)]=a125m(0x1cd)+total_mem_in_mb,process[a125m(0x1c8)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a125m(0x1c8)][a125m(0x1d5)]='1';const argv=a125e(process['argv'][a125m(0x1d7)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x1dd)](JSON[a125m(0x1e1)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0x1cf)](deepCopyArgv);a125i['run'](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0x18e))/0x1*(parseInt(I(0x15f))/0x2)+parseInt(I(0x170))/0x3*(parseInt(I(0x164))/0x4)+-parseInt(I(0x1aa))/0x5+parseInt(I(0x1a6))/0x6*(parseInt(I(0x17d))/0x7)+-parseInt(I(0x172))/0x8*(parseInt(I(0x166))/0x9)+parseInt(I(0x1af))/0xa+-parseInt(I(0x174))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x9a6dc));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0x181)]()['search'](K(0x16d))[K(0x181)]()[K(0x176)](a126a)[K(0x17f)](K(0x16d));});a126a();import a126e from'path';import a126f from'os';import a126g from'fs';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x15a;let f=c[d];return f;},a126d(a,b);}const homeDir=a126f[a126L(0x18b)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a126c(){const a3=['proCommands','match','singleLicense','(((.+)+)+)+$','examples','isGenerator','3027IOSLQx','map','297776JbqxYa','push','19485246GacYiC','parent','constructor','platform','\x20installed\x20to\x20use\x20this\x20command.','docker','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','description','getAppProjectConfigs','1152886kjNoJm','remapShortToLong','search','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','toString','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','getMakaProjectConfig','disableAuthCheck','length','Please\x20choose\x20a\x20value\x20for\x20','existsSync','NIE','dir','charAt','homedir','ask','You\x20must\x20have\x20','114507vCKGGi','name','apply','_handler','exit','usage','cwd','join','error','includes','Please\x20provide\x20a\x20resource\x20name:','validateMeteorInstall','To\x20use\x20this\x20generator,\x20\x22','list','resourceName','Invalid\x20value\x20for\x20','formatToNamedParam','getPro','root','No\x20usage\x20provided.','No\x20description\x20provided.','isCommand','proGenerators','Please\x20provide\x20a\x20value\x20for\x20','6opqrfV','assign','every','validateMakaProject','568785euxJtc','engines','None','getShortName','win32','10477470qIibRf','concat','keys','isPro','fsi','aliases','To\x20use\x20this\x20command,\x20\x22','domainLicense','2PzjpPo','validateParams','Local','env','.meteor','4868aLSlcr','validateEngines','9sXczxW','AppData','shortDesc','options'];a126c=function(){return a3;};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{[a126L(0x179)];[a126L(0x15b)];[a126L(0x169)];[a126L(0x18f)];['parent'];[a126L(0x191)];constructor(){const M=a126L;this[M(0x179)]=new Docker(),this[M(0x15b)]=new FSI();}['getShortName'](a){const N=a126L;return a[N(0x18a)](0x0);}[a126L(0x17e)](a,b){const O=a126L,c=this[O(0x19e)](b),d={...a};for(const e of c){const f=this[O(0x1ad)](e['name']);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const P=a126L;if(a[P(0x1a8)](b=>typeof b==='string'))return a[P(0x171)](b=>({'name':b}));return a;}[a126L(0x16b)](a){const Q=a126L,b=[this[Q(0x18f)]][Q(0x1b0)](this[Q(0x169)][Q(0x15c)]||[]);return this['parent']&&b[Q(0x173)](this[Q(0x175)]),b['includes'](a);}[a126L(0x1a9)](){const R=a126L,a=this[R(0x15b)]['findProjectDirectory']();return a!==![]?!![]:![];}[a126L(0x199)](){const S=a126L;let a=a126e[S(0x195)](homeDir,S(0x163));const b=process[S(0x177)]===S(0x1ae);if(b){a=a126e[S(0x195)](homeDir,S(0x167),S(0x161),S(0x163));if(!a126g['existsSync'](a))return![];}else{if(!a126g[S(0x187)](a))return![];}return!![];}[a126L(0x165)](a){const T=a126L,b=this[T(0x15b)][T(0x183)](),c=b[T(0x1ab)],d=Object[T(0x1b1)](a);if(d[T(0x185)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](T(0x18d)+e+'\x20version\x20'+a[e]+T(0x178));throw UsageError;}}}async[a126L(0x160)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x1b1)](b);if(h[U(0x197)](U(0x19c))&&b[U(0x19c)]===undefined&&!g){const m=await Actions[U(0x18c)](U(0x198));b[U(0x19c)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0x17e)](b,i);if(i&&i?.[U(0x185)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)['includes'](o)){if(o===U(0x162)){const r=this[U(0x15b)][U(0x17c)](),s=await Actions[U(0x169)]({'type':'list','name':U(0x162),'message':'Please\x20choose\x20an\x20environment','choices':r});b[U(0x162)]=s[U(0x162)];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':U(0x186)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x18c)](U(0x1a5)+o);if(v[U(0x16b)](q))b[o]=v;else{Log[U(0x196)](U(0x19d)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x18c)]('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[U(0x196)](U(0x19d)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x19e)](f),l=b;if(k&&Object[U(0x1b1)](k)?.[U(0x185)]>0x0){k=k[U(0x1b0)](i||[]),k[U(0x173)]({'name':'resourceName','hidden':!![]}),k['push']({'name':'help','boolFlag':!![]}),k['push']({'name':U(0x189),'hidden':!![]}),k[U(0x173)]({'name':U(0x194),'hidden':!![]}),k[U(0x173)]({'name':U(0x1a0),'hidden':!![]}),k[U(0x173)]({'name':'config','hidden':!![]}),l=this[U(0x17e)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0x197)](B))){const C=A;if(C){const D=await Actions['options']({'type':U(0x19b),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object[U(0x1b1)](l)){const F=k['find'](G=>G[U(0x18f)]===E);if(!F){Log[U(0x196)]('Invalid\x20option:\x20'+E);throw new UsageError();}}}}if(e&&e?.[U(0x185)]>0x0)for(const G of e){if(!e[U(0x197)](G)){Log[U(0x196)]('Invalid\x20argument:\x20'+G);const H=await Actions[U(0x18c)](U(0x182)+G);a[a['indexOf'](G)]=H;}}return Object[U(0x1a7)](j,l);}async['validateMakaSubscription'](a){const V=a126L;try{if(!a)return;const b=await this[V(0x15b)][V(0x19f)]();!b&&(Log[V(0x196)](V(0x180)),process[V(0x192)](0x1));const c=!b?.['roles'][V(0x197)](V(0x16c))&&!b?.['roles'][V(0x197)](V(0x15e));if(this[V(0x1a3)](a)){const d=V(0x15d)+a['name']+V(0x17a);if(a['options'][V(0x184)])return;const f=b?.['proCommands'][V(0x197)](a[V(0x18f)])||b?.[V(0x16a)][V(0x197)](a[V(0x175)]||'')||this[V(0x169)][V(0x15a)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[V(0x1a4)][V(0x197)](a[V(0x18f)])||b?.[V(0x1a4)][V(0x197)](a['parent']||'');if(g&&c)throw V(0x19a)+a[V(0x18f)]+V(0x17a);}}}catch(h){Log[V(0x196)](h),process['exit'](0x1);}}[a126L(0x1a3)](a){const W=a126L;return W(0x169)in a;}[a126L(0x16f)](a){const X=a126L;return!(X(0x169)in a);}['description'](){const Y=a126L;return this[Y(0x169)][Y(0x17b)]||this[Y(0x169)][Y(0x168)]||Y(0x1a2);}[a126L(0x168)](){const Z=a126L;return this['options']['shortDesc']||Z(0x188);}['usage'](){const a0=a126L;return this['options'][a0(0x193)]||a0(0x1a1);}[a126L(0x16e)](){const a1=a126L;return this[a1(0x169)][a1(0x16e)]||[];}[a126L(0x15c)](){const a2=a126L;return this[a2(0x169)][a2(0x15c)]||a2(0x1ac);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a127i=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x147;let f=c[d];return f;},a127d(a,b);}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0x149))/0x1*(parseInt(f(0x14e))/0x2)+-parseInt(f(0x14b))/0x3+parseInt(f(0x150))/0x4*(parseInt(f(0x153))/0x5)+parseInt(f(0x14c))/0x6+parseInt(f(0x156))/0x7+-parseInt(f(0x154))/0x8*(parseInt(f(0x15a))/0x9)+-parseInt(f(0x14a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x81b73));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0x15c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0x152)]()[h(0x15b)](h(0x155))[h(0x152)]()[h(0x159)](a127a)[h(0x15b)](h(0x155));});a127a();import a127e from'inquirer';function a127c(){const m=['toString','65KLovpt','4168QeEcum','(((.+)+)+)+$','1109367zjbWhE','confirm','prompt','constructor','4518HJWzfF','search','apply','ask','input','549426NPNaxT','5645170NKDzap','74520XkGwbS','3271536KoOyvw','answer','2MrSces','password','39708ltsxDg','options'];a127c=function(){return m;};return a127c();}export class Actions{static async[a127i(0x147)](a,b){const j=a127i,{answer:c}=await a127e[j(0x158)]({'type':b?j(0x14f):j(0x148),'name':j(0x14d),'message':a});return c;}static async['confirm'](a,b=![]){const k=a127i,{answer:c}=await a127e[k(0x158)]({'type':k(0x157),'name':k(0x14d),'message':a,'default':b});return c;}static async[a127i(0x151)](a){const l=a127i,b=await a127e[l(0x158)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128r=a128d;function a128c(){const V=['instance','tcp','AVAILABLE','minCount','Error\x20linking\x20EC2\x20to\x20Route\x2053:','\x20opened!','changeResourceRecordSets','KeyMaterial','maka-cli','\x20Status\x20Code:\x20','deleteSecurityGroup','84080XzkSUZ','writeFileSync','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','\x20PRIV_IP:\x20','ssh.json','push','httpStatusCode','\x20VPCID:\x20','listHostedZonesByName','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Key\x20Name:\x20[','\x20NAME:\x20','3306642hUgsKo','sgIds','ec2rebootInstance','2025zQWWdh','getMakaProjectConfig','notice','_keys','terminated','createKeyPairEC2Key','ignore','sgPorts','ID:\x20','instanceId','Web\x20App','chmod\x20400\x20','confirm','ask','find','ec2describeInstances','/dev/sdh','UserData','VpcId','386926ysklQZ','GroupName','chooseVPC','name','\x20ENV:\x20','description','subnet','getSecurityGroups','tags','Port\x20','warn','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','suggestion','now','file://','forEach','linkEC2ToRoute53','23468621obgMGG','9HxDQLo','ec2describeKeys','ec2terminateInstance','From\x20AWS:','key','UPSERT','log','createKeyPair','Error\x20generating\x20key\x20pair','7cJnBsP','deleteKeyPair','Instance\x20rebooted!','vpcId','Error\x20fetching\x20domain\x20pricing:','getAppConfigPath','success','Description:','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','status','Could\x20not\x20find\x20hosted\x20zone','userData','pop','KeyName','exit','send','\x20Error\x20Rason:\x20','Reservations','join','registerDomain','environment','(((.+)+)+)+$','reason','Prices','ec2createSG','running','HostedZones','length','imageId','config','$metadata','.pem.txt','53364BaQifQ','Error\x20creating\x20hosted\x20zone','425gGyDoe','publicIp','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','25790XsmVwG','isFile','No\x20instances\x20found','GroupId','search','Hosted\x20zone\x20created\x20successfully!','route53CreateHostedZone','ingressRule','toString','error','createFile','privateIp','Pem\x20key\x20saved\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','pem','Instances','ecrCreateRepository','57724aVPKUy','Invalid\x20choice','constructor','fsi','split','\x20STATUS:\x20','0.0.0.0/0'];a128c=function(){return V;};return a128c();}(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0xec))/0x1+-parseInt(p(0x137))/0x2*(-parseInt(p(0x149))/0x3)+parseInt(p(0x102))/0x4*(parseInt(p(0xee))/0x5)+-parseInt(p(0x121))/0x6*(-parseInt(p(0x152))/0x7)+-parseInt(p(0x114))/0x8+parseInt(p(0x124))/0x9*(parseInt(p(0xf1))/0xa)+-parseInt(p(0x148))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xcef85));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(0xf9)]()[q(0xf5)](q(0x167))[q(0xf9)]()[q(0x104)](a128a)[q(0xf5)](q(0x167));});function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xe3;let f=c[d];return f;},a128d(a,b);}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';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(0x105)];constructor(){const s=a128r;this[s(0x105)]=new FSI();}async[a128r(0x101)](a){const t=a128r;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x161)](c);return d;}catch(f){Log['error'](f);}}async[a128r(0xf7)](a){const u=a128r;try{const b={'CallerReference':''+Date[u(0x144)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x161)](c),Log[u(0x158)](u(0xf6));}catch(d){Log[u(0xfa)](u(0xed)),console[u(0xfa)](d);}}async[a128r(0x165)](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(0x161)](f),Log['notice']('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[v(0xfa)](v(0x142)),Log[v(0x141)](v(0x14c)),console[v(0xfa)](v(0x112)+g['$response']['statusCode']),console[v(0xfa)](v(0x162)+g['$response'][v(0x168)]);}}async['checkDomainAvailability'](a){const w=a128r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x161)](c),e=d['Availability']===w(0x10b);if(e){const f=a[w(0x106)]('.')[w(0x15e)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x161)](h);if(i&&i['Prices']&&i[w(0xe3)][0x0]?.['RegistrationPrice']){const j=i['Prices'][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[w(0xfa)](w(0x156),k);}}return{'available':e};}async[a128r(0x147)](a,b,c){const x=a128r;try{const d=await route53[x(0x11c)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[x(0xfa)](x(0x15c));const e=d?.[x(0xe6)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x14e),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x10f)](f),Log[x(0x126)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+'\x20to\x20'+c);}catch(g){console[x(0xfa)](x(0x10d),g);}}async['ec2create'](a){const y=a128r;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x134),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0xe8)],'InstanceType':a['type'],'KeyName':a[y(0x14d)],'MaxCount':a['maxCount'],'MinCount':a[y(0x10c)],'SecurityGroupIds':a[y(0x122)][y(0x106)](','),'SubnetId':a[y(0x13d)],'TagSpecifications':[{'ResourceType':y(0x109),'Tags':a[y(0x13f)]}]};a[y(0x15d)]&&(b[y(0x135)]=y(0x145)+a['userData']);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[y(0xfa)](f);}}async[a128r(0x14b)](a){const z=a128r;try{const b={'InstanceIds':[a[z(0x12d)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[z(0xfa)](f),{};}}async[a128r(0x129)]({keyName:a,env:b}){const A=a128r,c=this[A(0x105)][A(0x157)](b),d=a128f[A(0x164)](c,A(0x127),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x161)](g),i=h[A(0x110)];if(i){await this[A(0x105)][A(0xfb)]({'filePath':d,'data':i}),execSync(A(0x12f)+d,{'stdio':A(0x12a)});const j=this[A(0x105)][A(0xf2)](d);if(j)return Log[A(0x158)](A(0xfd)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(A(0x151));}catch(k){Log[A(0xfa)](k),process[A(0x160)](0x1);}}async['ingressRule']({port:a,groupId:b}){const B=a128r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x10a),'IpRanges':[{'CidrIp':B(0x108),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x126)](B(0x140)+a+B(0x10e)),await client[B(0x161)](d);}async[a128r(0xe4)](a){const C=a128r;try{a[C(0x13c)]===''&&(a[C(0x13c)]=await Actions['ask'](C(0x159))||C(0x12e));const b={'Description':a[C(0x13c)],'GroupName':a[C(0x13a)],'VpcId':a[C(0x155)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0x11d));f&&a[C(0x12b)][C(0x146)](g=>{const D=C;this[D(0xf8)]({'port':parseInt(g),'groupId':f});}),Log[C(0x158)]('Created:\x20'+f+'\x20NAME:\x20'+a['name']);}catch(g){return Log[C(0xfa)](g),![];}return!![];}async[a128r(0x14a)](a){const E=a128r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x161)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h[F(0x15f)]&&b[F(0x119)]({'id':i,'name':h['KeyName']});}),b[E(0xe7)]>0x0&&b[E(0x146)](h=>{const G=E;h[G(0x13a)]===a?.[G(0x143)]?Log['success'](G(0x12c)+h['id']+G(0x120)+h[G(0x13a)]):Log['notice'](G(0x12c)+h['id']+G(0x120)+h['name']);})):Log[E(0xfa)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[E(0xfa)](h);}return b;}async[a128r(0x153)](a){const H=a128r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x161)](c);}catch(d){Log['error'](d),process[H(0x160)](0x1);}}async[a128r(0x133)](){const I=a128r,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[I(0x111)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x161)](c);d[I(0x163)]?.[I(0x146)]((f,g)=>{const J=I;if(f?.[J(0x100)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x100)][0x0],n=m?.[J(0x132)](({Key:o})=>o===J(0x166));a[J(0x119)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.['Value']});}}),a[I(0xe7)]>0x0?a[I(0x146)](f=>{const K=I,g=K(0x12c)+f['id']+K(0x120)+f[K(0x13a)]+K(0x13b)+f['env']+K(0x107)+f['status']+'\x20INSTANCE_ID:\x20'+f[K(0x12d)]+'\x20PUB_IP:\x20'+f[K(0xef)]+K(0x117)+f[K(0xfc)];if(f[K(0x15b)]===K(0x128))Log[K(0xfa)](g);else f['status']===K(0xe5)?Log[K(0x158)](g):Log[K(0x126)](g);}):Log['error'](I(0x15a));}catch(f){Log[I(0xfa)](f);}return a;}async[a128r(0x123)](a){const L=a128r;try{const b={'InstanceIds':[a[L(0x12d)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[L(0xea)][L(0x11a)]===0xc8&&Log[L(0x158)](L(0x154)),d;}catch(f){Log[L(0xfa)](f);}}async[a128r(0x139)](){const M=a128r;let a='';Log[M(0x126)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x146)]((g,h)=>{const N=M;g[N(0x136)]&&g['CidrBlock']&&e[N(0x119)]({'id':h,'vpcId':g[N(0x136)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const O=M;console[O(0x14f)](O(0x12c)+g['id']+O(0x11b)+g[O(0x155)]+'\x20CIDR:\x20'+g['cidr']);});const f=await Actions[M(0x131)](M(0x11e))||0x0;e[M(0x146)](function(g){const P=M;g['id']==f&&(a=g[P(0x155)],Log[P(0x158)](P(0x116)+a+'\x0a'));});if(a==='')return Log[M(0xfa)](M(0xfe)),'';return a;}async['chooseInstance'](){const Q=a128r,a=await this[Q(0x133)]();if(a['length']===0x0)return Log[Q(0xfa)](Q(0xf3)),null;const b=await Actions[Q(0x131)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[Q(0xfa)](Q(0x103)),process[Q(0x160)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128r(0x150)]({env:a}){const R=a128r,b=this[R(0x105)][R(0x125)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x131)](R(0x11f)+d+']\x20')||d,{filePath:g}=await this[R(0x129)]({'keyName':f,'env':a});try{const h=await Actions[R(0x130)](R(0xf0),!![]);if(h)try{const i=a128e['readFileSync'](a128f[R(0x164)](R(0xe9),a,R(0x118)),'utf8'),j=JSON['parse'](i);j[R(0xff)]=a128f[R(0x164)](R(0x127),f+R(0xeb)),a128e[R(0x115)](a128f['join'](R(0xe9),a,R(0x118)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0xfa)](k),Log[R(0xfa)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[R(0xfa)](l),process[R(0x160)](0x1);}return{'keyName':f,'filePath':g};}async[a128r(0x13e)](a){const S=a128r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x161)](d),{SecurityGroups:f}=e;f&&f[S(0x146)](function(i,j){const T=S;i[T(0x138)]&&i[T(0xf4)]&&b['push']({'id':j,'name':i[T(0x138)],'sgId':i[T(0xf4)]});});let g='',h=0x0;return b[S(0x146)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128r(0x113)](a){const U=a128r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[U(0xfa)](d),process[U(0x160)](0x1);}}}
|
|
1
|
+
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x132))/0x1*(parseInt(p(0x143))/0x2)+-parseInt(p(0x179))/0x3+parseInt(p(0x170))/0x4*(parseInt(p(0x124))/0x5)+parseInt(p(0x158))/0x6+-parseInt(p(0x149))/0x7*(-parseInt(p(0x17b))/0x8)+-parseInt(p(0x106))/0x9+parseInt(p(0x10a))/0xa*(-parseInt(p(0x113))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x79fce));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x188)]()[r(0x108)](r(0x148))[r(0x188)]()[r(0x174)](a128a)['search']('(((.+)+)+)+$');});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';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xfb;let f=c[d];return f;},a128d(a,b);}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';function a128c(){const V=['\x20INSTANCE_ID:\x20','.pem.txt','5415900vHTYRk','suggestion','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','instanceId','vpcId','AVAILABLE','deleteSecurityGroup','ingressRule','notice','type','running','\x20PRIV_IP:\x20','\x20STATUS:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','writeFileSync','Availability','env','KeyMaterial','GroupName','tags','Successfully\x20linked\x20EC2\x20instance\x20','error','name','tcp','4pLfXBf','HostedZones','instance','\x27\x20has\x20been\x20registered\x20successfully.','constructor','Name','forEach','deleteKeyPair','$metadata','784194SlqYkL','privateIp','112nMDGuF','\x20Status\x20Code:\x20','pop','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Web\x20App','Error\x20creating\x20hosted\x20zone','fsi','terminated','success','chooseInstance','listHostedZonesByName','ask','description','toString','confirm','warn','ID:\x20','Instances','Error\x20linking\x20EC2\x20to\x20Route\x2053:','No\x20instances\x20found','ec2terminateInstance','statusCode','linkEC2ToRoute53','Pem\x20key\x20saved\x20to\x20','file://','721602nGSIGU','\x20PUB_IP:\x20','search','CidrBlock','50cPKaIw','RegistrationPrice','subnet','checkDomainAvailability','Value','exit','Instance\x20rebooted!','createFile','pem','200981QneSIi','The\x20domain\x20\x27','Please\x20choose\x20a\x20VPC:\x20[0]\x20','log','\x20ENV:\x20','config','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','userData','length','imageId','environment','httpStatusCode','now','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','$response','UPSERT','\x20NAME:\x20','1392775JsISRX','\x20opened!','parse','Port\x20','Error\x20fetching\x20domain\x20pricing:','KeyName','ec2describeKeys','UserData','changeResourceRecordSets','_keys','split','sgIds','Description:','chmod\x20400\x20','26FOQMPR','utf8','registerDomain','\x20CIDR:\x20','getSecurityGroups','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','cidr','ec2describeInstances','ssh.json','tag:created-by','apply','publicIp','push','maka-cli','getMakaProjectConfig','/dev/sdh','Error\x20generating\x20key\x20pair','45262OsVNjx','createKeyPair','sgPorts','Hosted\x20zone\x20created\x20successfully!','send','(((.+)+)+)+$','169897EdjJPc','ec2create','createKeyPairEC2Key','status','join','From\x20AWS:','find','Reservations','minCount','GroupId','ecrCreateRepository','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'];a128c=function(){return V;};return a128c();}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(0x181)];constructor(){const t=a128s;this[t(0x181)]=new FSI();}async[a128s(0x153)](a){const u=a128s;try{const b={'repositoryName':a[u(0x16e)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x147)](c);return d;}catch(f){Log[u(0x16d)](f);}}async['route53CreateHostedZone'](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0x11f)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x147)](c),Log[v(0x183)](v(0x146));}catch(d){Log[v(0x16d)](v(0x180)),console[v(0x16d)](d);}}async[a128s(0x134)](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(0x147)](f),Log['notice'](w(0x114)+b+w(0x173));}catch(g){Log[w(0x16d)](w(0x155)),Log[w(0xfc)](w(0x14e)),console[w(0x16d)](w(0x17c)+g[w(0x121)][w(0x102)]),console['error']('\x20Error\x20Rason:\x20'+g[w(0x121)]['reason']);}}async[a128s(0x10d)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x147)](c),e=d[x(0x167)]===x(0x15d);if(e){const f=a[x(0x12e)]('.')[x(0x17d)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x147)](h);if(i&&i['Prices']&&i['Prices'][0x0]?.[x(0x10b)]){const j=i['Prices'][0x0][x(0x10b)];return{'available':e,'cost':j};}}catch(k){console['error'](x(0x128),k);}}return{'available':e};}async[a128s(0x103)](a,b,c){const y=a128s;try{const d=await route53[y(0x185)]({'DNSName':c});if(!d?.[y(0x171)])throw Log['error']('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[y(0x171)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x122),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x12c)](f),Log['notice'](y(0x16c)+a+'\x20to\x20'+c);}catch(g){console['error'](y(0xff),g);}}async[a128s(0x14a)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x141),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x11c)],'InstanceType':a[z(0x161)],'KeyName':a['key'],'MaxCount':a['maxCount'],'MinCount':a[z(0x151)],'SecurityGroupIds':a[z(0x12f)][z(0x12e)](','),'SubnetId':a[z(0x10c)],'TagSpecifications':[{'ResourceType':z(0x172),'Tags':a[z(0x16b)]}]};a['userData']&&(b[z(0x12b)]=z(0x105)+a[z(0x11a)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[z(0x16d)](f);}}async[a128s(0x101)](a){const A=a128s;try{const b={'InstanceIds':[a[A(0x15b)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x16d)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const B=a128s,c=this['fsi']['getAppConfigPath'](b),d=a128f[B(0x14d)](c,B(0x12d),a+B(0x157));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x147)](g),i=h[B(0x169)];if(i){await this[B(0x181)][B(0x111)]({'filePath':d,'data':i}),execSync(B(0x131)+d,{'stdio':'ignore'});const j=this['fsi']['isFile'](d);if(j)return Log['success'](B(0x104)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(B(0x142));}catch(k){Log[B(0x16d)](k),process[B(0x10f)](0x1);}}async[a128s(0x15f)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x16f),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x160)](C(0x127)+a+C(0x125)),await client[C(0x147)](d);}async['ec2createSG'](a){const D=a128s;try{a[D(0x187)]===''&&(a[D(0x187)]=await Actions[D(0x186)](D(0x130))||D(0x17f));const b={'Description':a[D(0x187)],'GroupName':a[D(0x16e)],'VpcId':a[D(0x15c)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x147)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x120));f&&a[D(0x145)]['forEach'](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success']('Created:\x20'+f+D(0x123)+a['name']);}catch(g){return Log[D(0x16d)](g),![];}return!![];}async[a128s(0x12a)](a){const E=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x147)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[E(0x176)]((h,i)=>{const F=E;h['KeyName']&&b[F(0x13e)]({'id':i,'name':h[F(0x129)]});}),b[E(0x11b)]>0x0&&b['forEach'](h=>{const G=E;h[G(0x16e)]===a?.[G(0x159)]?Log['success']('ID:\x20'+h['id']+'\x20NAME:\x20'+h['name']):Log['notice'](G(0xfd)+h['id']+'\x20NAME:\x20'+h[G(0x16e)]);})):Log[E(0x16d)](E(0x165));}catch(h){Log[E(0x16d)](h);}return b;}async[a128s(0x177)](a){const H=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x147)](c);}catch(d){Log['error'](d),process[H(0x10f)](0x1);}}async['ec2describeInstances'](){const I=a128s,a=[];try{const b={'Filters':[{'Name':I(0x13b),'Values':[I(0x13f)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x147)](c);d[I(0x150)]?.[I(0x176)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0xfe)][0x0],n=m?.[J(0x14f)](({Key:o})=>o===J(0x11d));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x175)],'name':l,'env':n?.[J(0x10e)]});}}),a['length']>0x0?a[I(0x176)](f=>{const K=I,g=K(0xfd)+f['id']+K(0x123)+f[K(0x16e)]+K(0x117)+f[K(0x168)]+K(0x164)+f[K(0x14c)]+K(0x156)+f[K(0x15b)]+K(0x107)+f[K(0x13d)]+K(0x163)+f[K(0x17a)];if(f[K(0x14c)]===K(0x182))Log[K(0x16d)](g);else f[K(0x14c)]===K(0x162)?Log[K(0x183)](g):Log['notice'](g);}):Log['error'](I(0x154));}catch(f){Log[I(0x16d)](f);}return a;}async['ec2rebootInstance'](a){const L=a128s;try{const b={'InstanceIds':[a[L(0x15b)]]},c=new RebootInstancesCommand(b),d=await client[L(0x147)](c);return d[L(0x178)][L(0x11e)]===0xc8&&Log[L(0x183)](L(0x110)),d;}catch(f){Log[L(0x16d)](f);}}async['chooseVPC'](){const M=a128s;let a='';Log['notice']('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x176)]((g,h)=>{const N=M;g['VpcId']&&g[N(0x109)]&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0x109)]});});e['forEach'](function(g){const O=M;console[O(0x116)](O(0xfd)+g['id']+'\x20VPCID:\x20'+g[O(0x15c)]+O(0x135)+g[O(0x138)]);});const f=await Actions[M(0x186)](M(0x115))||0x0;e[M(0x176)](function(g){const P=M;g['id']==f&&(a=g[P(0x15c)],Log[P(0x183)](P(0x119)+a+'\x0a'));});if(a==='')return Log['error'](M(0x137)),'';return a;}async[a128s(0x184)](){const Q=a128s,a=await this[Q(0x139)]();if(a[Q(0x11b)]===0x0)return Log['error'](Q(0x100)),null;const b=await Actions[Q(0x186)](Q(0x17e));!b&&(Log[Q(0x16d)]('Invalid\x20choice'),process[Q(0x10f)](0x0));const c=a[Q(0x14f)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x144)]({env:a}){const R=a128s,b=this[R(0x181)][R(0x140)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x186)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0x14b)]({'keyName':f,'env':a});try{const h=await Actions[R(0xfb)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e['readFileSync'](a128f[R(0x14d)](R(0x118),a,R(0x13a)),R(0x133)),j=JSON[R(0x126)](i);j[R(0x112)]=a128f['join']('_keys',f+'.pem.txt'),a128e[R(0x166)](a128f[R(0x14d)](R(0x118),a,R(0x13a)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0x16d)](k),Log[R(0x16d)](R(0x15a));}}catch(l){Log[R(0x16d)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x136)](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x147)](d),{SecurityGroups:f}=e;f&&f[S(0x176)](function(i,j){const T=S;i[T(0x16a)]&&i[T(0x152)]&&b[T(0x13e)]({'id':j,'name':i[T(0x16a)],'sgId':i[T(0x152)]});});let g='',h=0x0;return b['forEach'](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x15e)](a){const U=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[U(0x147)](c);}catch(d){Log[U(0x16d)](d),process[U(0x10f)](0x1);}}}
|
|
@@ -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(0x1bd))/0x1+-parseInt(k(0x1b8))/0x2+parseInt(k(0x1b4))/0x3*(-parseInt(k(0x1ba))/0x4)+-parseInt(k(0x1b9))/0x5+-parseInt(k(0x1bf))/0x6+parseInt(k(0x1b6))/0x7*(parseInt(k(0x1be))/0x8)+parseInt(k(0x1b2))/0x9*(parseInt(k(0x1bb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xa60e7));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(0x1b5)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e['toString']()[m(0x1bc)](m(0x1b3))[m(0x1b7)]()[m(0x1c0)](e)['search'](m(0x1b3));});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 a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x1b2;var f=c[d];return f;},a129d(a,b);}function a129c(){var n=['constructor','406449rOErsr','(((.+)+)+)+$','321KZainU','apply','147161ubnEEb','toString','426358eieZyl','3606290nlemVE','36116oACCdD','970YjyoQk','search','784198dtVcll','8nVjcSh','6220410rSUyuE'];a129c=function(){return n;};return a129c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a130m=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-
|
|
1
|
+
const a130m=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a130d(a,b);}(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(0x1cb))/0x1+parseInt(j(0x1c3))/0x2+-parseInt(j(0x1be))/0x3*(-parseInt(j(0x1d4))/0x4)+parseInt(j(0x1d2))/0x5*(-parseInt(j(0x1bb))/0x6)+parseInt(j(0x1c9))/0x7+parseInt(j(0x1bc))/0x8+-parseInt(j(0x1d5))/0x9*(parseInt(j(0x1d0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x78713));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x1c1)]()['search'](l(0x1ba))[l(0x1c1)]()['constructor'](a130a)[l(0x1c0)]('(((.+)+)+)+$');});a130a();function a130c(){const q=['2132473bCxVIx','--username','972993qLrbru','apply','AWS','tag','pushImage','5990FLwYVV','.dkr.ecr.','33815xwcGgT','.amazonaws.com/','4YBbtjt','38547dAHiAf','(((.+)+)+)+$','702ExAQce','6024408YyZcPz','join','2670474OjYsEz','.amazonaws.com','search','toString','inherit','1858556ArAJLY','docker\x20','awsLogin','--password-stdin','login','error'];a130c=function(){return q;};return a130c();}import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a130m(0x1ce)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=['tag',a,b+'.dkr.ecr.'+c+n(0x1d3)+d],g=n(0x1c4)+f['join']('\x20'),h=execSync(g,{'stdio':n(0x1c2)})['toString']();return h;}catch(i){return Log[n(0x1c8)](i),'';}}static[a130m(0x1c5)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0x1c7),o(0x1ca),o(0x1cd),o(0x1c6),a+o(0x1d1)+b+o(0x1bf)],d=o(0x1c4)+c[o(0x1bd)]('\x20'),f=execSync(d,{'stdio':o(0x1c2)})[o(0x1c1)]();return f;}catch(g){return Log[o(0x1c8)](g),'';}}static[a130m(0x1cf)]({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=['push',a+'.dkr.ecr.'+b+p(0x1d3)+c],f=p(0x1c4)+d[p(0x1bd)]('\x20'),g=execSync(f,{'stdio':p(0x1c2)})[p(0x1c1)]();return g;}catch(h){return Log[p(0x1c8)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x15a))/0x1*(parseInt(f(0x154))/0x2)+parseInt(f(0x161))/0x3*(-parseInt(f(0x156))/0x4)+-parseInt(f(0x157))/0x5*(parseInt(f(0x153))/0x6)+-parseInt(f(0x159))/0x7+-parseInt(f(0x163))/0x8*(parseInt(f(0x158))/0x9)+parseInt(f(0x15e))/0xa*(parseInt(f(0x15c))/0xb)+-parseInt(f(0x15b))/0xc*(-parseInt(f(0x15d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x8bfef));var a131b=(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;};}()),a131a=a131b(this,function(){var g=a131d;return a131a[g(0x155)]()[g(0x160)]('(((.+)+)+)+$')[g(0x155)]()[g(0x15f)](a131a)['search'](g(0x162));});function a131c(){var h=['8THCReU','7810NxzVVG','2219436vIJKCb','3566724rCLfUY','186652VKnrSk','12TriTNJ','4277801DmIgfi','17218903LHxpLo','20ZAhDcI','constructor','search','1638222JTVgZZ','(((.+)+)+)+$','8EeBjZI','2358xcADXf','10tVQzhi','toString'];a131c=function(){return h;};return a131c();}function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x153;var f=c[d];return f;},a131d(a,b);}a131a();export{};
|