@maka/maka-cli 4.7.23 → 4.7.24
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/.maka/history.json +1 -0
- 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 a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x12d;let f=c[d];return f;},a116d(a,b);}const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(0x146))/0x1*(-parseInt(j(0x14e))/0x2)+parseInt(j(0x152))/0x3*(parseInt(j(0x145))/0x4)+-parseInt(j(0x142))/0x5+-parseInt(j(0x154))/0x6*(parseInt(j(0x132))/0x7)+-parseInt(j(0x135))/0x8*(parseInt(j(0x131))/0x9)+-parseInt(j(0x13b))/0xa*(parseInt(j(0x12e))/0xb)+parseInt(j(0x144))/0xc*(parseInt(j(0x12d))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x2cd21));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a['toString']()[l(0x139)](l(0x150))[l(0x14c)]()[l(0x12f)](a116a)[l(0x139)](l(0x150));});a116a();function a116c(){const p=['toString','error','8328NjQCIp','-rpc-method\x27;','(((.+)+)+)+$','appPathPrefix','746637RxVdfh','getMakaProjectConfig','36bRfbfK','949SQjjXU','17611AxwHsy','constructor','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','979659nfjIDm','353479bBJehh','method/method.js','maka\x20g:method\x20todos','8wEANTC','withValue','maka\x20{generate,\x20g}:{method,\x20m}\x20name','maka:check','search','fsi','930eKqBkT','engines','injectAtEndOfFile','ddp-rate-limiter','tsx','apply','resourceName','853705VNJysl','startup','98556DlSjWd','4VHvEbe','16gRljfW','pathFromApp','import\x20\x27./methods','dir','imports','template'];a116c=function(){return p;};return a116c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':'method','aliases':['m'],'usage':a116m(0x137),'checkWhere':!![],'shortDesc':a116m(0x130),'validOpts':[a116m(0x149)],'examples':[a116m(0x134)]},async function(a,b){const n=a116m;try{const c=this[n(0x13a)][n(0x153)]();await this['fsi'][n(0x136)](c,async()=>{const o=n,d=paramCase(b[o(0x141)]),f={'name':b[o(0x141)],'fileName':d,'className':pascalCase(b[o(0x141)]),'camelCase':camelCase(b[o(0x141)]),'noRename':!![]};let g='js';c[o(0x13c)]['js']===o(0x13f)&&(g='ts');await this[o(0x13a)]['checkMeteorPackage']([o(0x138),o(0x13e),'mdg:validated-method'],{'shouldInstall':!![]}),await this[o(0x13a)][o(0x14b)]({'srcPath':o(0x133),'destPath':this[o(0x13a)][o(0x147)]({'pathParts':[o(0x14a),o(0x143),b[o(0x151)],'methods',b['dir'],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b[o(0x149)]?'/'+b[o(0x149)]+'/':'/',i=this[o(0x13a)]['pathFromApp']({'pathParts':[o(0x14a),'startup',b[o(0x151)],'index.'+c[o(0x13c)]['js']]});await this[o(0x13a)][o(0x13d)]({'filePath':i,'content':o(0x148)+h+d+o(0x14f)});});}catch(d){Log[n(0x14d)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=parseInt(l(0x101))/0x1+parseInt(l(0x117))/0x2+-parseInt(l(0x11a))/0x3+-parseInt(l(0x118))/0x4+-parseInt(l(0x127))/0x5*(parseInt(l(0x105))/0x6)+-parseInt(l(0x10e))/0x7*(parseInt(l(0x111))/0x8)+parseInt(l(0x11d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xd84b4));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0x106)]()['search']('(((.+)+)+)+$')['toString']()[n(0x10c)](a117a)[n(0x109)]('(((.+)+)+)+$');});function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0xfc;let f=c[d];return f;},a117d(a,b);}function a117c(){const r=['701104ICOPJK','/package.js','4706697iFrBKa','theme','fsi','12740049GxUlTM','template/template.js','apply','hasOwnProperty','server','package/','getMakaProjectConfig','packages','features','pathFromAppWithNoReWrite','5dtsWag','graphql','lib','create','component','.js','client','package/package.js','dir','1124446ZmPjqm','/client/','resourceName','pathFromProject','231342ykBJzI','toString','engines','pathFromApp','search','layout','template','constructor','maka\x20g:package\x20todos:package','273581ynZEwa','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','package','336IbmdqQ','withValue','store','relative','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','noRename','3540302JQsPpz'];a117c=function(){return r;};return a117c();}a117a();import a117e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a117o(0x12a)]({'name':a117o(0x110),'aliases':['p'],'usage':a117o(0x10f),'shortDesc':a117o(0x115),'validOpts':[a117o(0x100)],'examples':[a117o(0x10d)]},async function(a,b){const p=a117o,c=paramCase(b[p(0x103)]),d=this[p(0x11c)][p(0x108)]({'pathParts':[p(0x124),b[p(0x100)],c]}),e=this[p(0x11c)][p(0x126)]({'pathParts':[p(0x124),b['dir'],c,'package.js']}),f=this[p(0x11c)][p(0x123)]();await this[p(0x11c)][p(0x112)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a117e[q(0x114)](this[q(0x11c)][q(0x104)]({}),d),'cssCaseName':paramCase(b[q(0x103)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0x103)]),'fileName':c,'client':f[q(0x107)][q(0xfe)],'graphql':f[q(0x107)][q(0x128)],'ssr':f[q(0x107)]['ssr'],'isComponent':b[q(0x120)](q(0xfc)),'isLayout':b[q(0x120)](q(0x10a)),'isStore':b[q(0x120)](q(0x113)),'features':f[q(0x125)],'noRename':!![],'theme':f[q(0x107)][q(0x11b)]};await this[q(0x11c)][q(0x10b)]({'srcPath':q(0xff),'destPath':e,'context':g,'config':f}),g[q(0x116)]=![];const h=d+q(0x102)+c+'.js';await this[q(0x11c)]['template']({'srcPath':q(0x11e),'destPath':h,'context':g,'config':f});const i=[q(0x129),q(0x121),'tests/client','tests/server'];for(const j of i){const k=d+'/'+j+'/'+c+q(0xfd);await this[q(0x11c)][q(0x10b)]({'srcPath':q(0x122)+j+q(0x119),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=-parseInt(j(0x1c5))/0x1+parseInt(j(0x1cd))/0x2+parseInt(j(0x1a7))/0x3*(parseInt(j(0x1d5))/0x4)+-parseInt(j(0x1ac))/0x5+-parseInt(j(0x1dc))/0x6*(parseInt(j(0x1b9))/0x7)+-parseInt(j(0x1a6))/0x8+parseInt(j(0x1aa))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x76901));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0x1c0)]()[l(0x1b7)](l(0x1c9))[l(0x1c0)]()['constructor'](a118a)[l(0x1b7)](l(0x1c9));});a118a();import a118e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a118f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x19f;let f=c[d];return f;},a118d(a,b);}function a118c(){const p=['fsi','features','817756tnazzK','processAndRunGenerator','html','dir','(((.+)+)+)+$','withTranslations','installNpmPackage','create','528590dpvwMy','setTemplate','.css','import\x20\x27./','hasOwnProperty','withValue','Updating\x20npm\x20packages\x20...','checkNpmPackage','4gGMeYD','ramda','none','.js','resourceName','injectTemplateModule','template/template.css','2952BOcuPk','string','assign','apply','template','true','/imports/ui/','root','pathFromApp','page','css','relative','engines','pathFromProject','route','1098920QCZQid','4065yToeOr','store','react','18803988Pubyyq','hook/hook.js','4177540eiCSmu','fileName','injectAtBeginningOfFile','client','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','component','theme','getMakaProjectConfig','warn','components','withHook','search','className','1120SOLQhU','layouts','ssr','pages','/imports/ui/pages','baseDir','test','toString','component/component.js','template/template.html'];a118c=function(){return p;};return a118c();}const aliases=['p'];Generator[a118m(0x1cc)]({'name':a118m(0x1a0),'aliases':aliases,'usage':a118m(0x1b0),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a118m(0x1be),'values':['hooks',a118m(0x1b5),a118m(0x1bc),a118m(0x1ba)]},{'name':a118m(0x1b6),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const n=a118m,c=b[n(0x1be)]?n(0x1e2)+b[n(0x1be)]:n(0x1bd),d=this[n(0x1c3)][n(0x19f)](b),e=this[n(0x1c3)][n(0x19f)]({'pathParts':[c,b[n(0x1c8)],paramCase(b[n(0x1d9)]),paramCase(b['resourceName'])]}),f=this[n(0x1c3)][n(0x1b3)]();let g='';return await this[n(0x1c3)][n(0x1d2)](f,async()=>{const o=n;typeof f[o(0x1e0)][o(0x1c7)]===o(0x1dd)&&(f[o(0x1e0)][o(0x1c7)]=f[o(0x1e0)][o(0x1c7)]===o(0x1e1)?!![]:![],this['fsi']['setTemplate']('html',f[o(0x1e0)]['html']));typeof f[o(0x1e0)]['test']===o(0x1dd)&&(f[o(0x1e0)][o(0x1bf)]=f[o(0x1e0)][o(0x1bf)]===o(0x1e1)?!![]:![],this[o(0x1c3)][o(0x1ce)]('test',f[o(0x1e0)][o(0x1bf)]));typeof f['template'][o(0x1a1)]==='string'&&(f[o(0x1e0)][o(0x1a1)]=f[o(0x1e0)][o(0x1a1)]==='true'?!![]:![],this[o(0x1c3)][o(0x1ce)]('css',f[o(0x1e0)]['css']));typeof f[o(0x1e0)]['js']===o(0x1dd)&&(f['template']['js']=f[o(0x1e0)]['js']==='true'?!![]:![],this['fsi'][o(0x1ce)]('js',f[o(0x1e0)]['js']));!f[o(0x1c4)]&&(f[o(0x1c4)]={});!b[o(0x1e3)]&&!this[o(0x1c3)][o(0x1d4)](o(0x1d6))&&(Log[o(0x1b4)](o(0x1d3)),this[o(0x1c3)][o(0x1cb)](o(0x1d6),{'cwd':d}));const h={'name':pascalCase(b[o(0x1d9)]),'myPath':a118e[o(0x1a2)](this['fsi'][o(0x1a4)]({}),e),'cssCaseName':paramCase(b[o(0x1d9)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'graphql':f[o(0x1a3)]['graphql'],'features':f[o(0x1c4)],'client':f[o(0x1a3)][o(0x1af)],'api':f[o(0x1a3)]['api'],'ssr':f['engines'][o(0x1bb)],'isStore':b[o(0x1d1)](o(0x1a8)),'isComponent':b[o(0x1d1)](o(0x1b1)),'isLayout':b[o(0x1d1)]('layout'),'withTranslations':f[o(0x1c4)][o(0x1ca)],'test':f['engines'][o(0x1bf)],'theme':f[o(0x1a3)][o(0x1b2)]};f[o(0x1e0)][o(0x1c7)]&&await this[o(0x1c3)][o(0x1e0)]({'srcPath':o(0x1c2),'destPath':e+'.html','context':h,'config':f});f['features']?.['withHooks']||b['withHook']?await this['fsi'][o(0x1e0)]({'srcPath':o(0x1ab),'destPath':e+o(0x1d8),'framework':o(0x1a9),'context':h,'config':f}):await this['fsi'][o(0x1e0)]({'srcPath':o(0x1c1),'destPath':e+o(0x1d8),'framework':'react','context':h,'config':f});f['engines'][o(0x1bf)]!==o(0x1d7)&&await this['fsi'][o(0x1e0)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':o(0x1a9),'context':h,'config':f});f[o(0x1e0)][o(0x1a1)]&&await this[o(0x1c3)][o(0x1e0)]({'srcPath':o(0x1db),'destPath':e+o(0x1cf),'context':Object[o(0x1de)]({},h,{'className':paramCase(b[o(0x1d9)])}),'config':f});f[o(0x1a3)]['client']!=='react'&&f[o(0x1a3)]['client']!=='vanilla'?(f[o(0x1e0)][o(0x1a1)]&&await this['fsi'][o(0x1ae)]({'filePath':e+'.'+f[o(0x1a3)]['js'],'content':o(0x1d0)+h['fileName']+'.'+f[o(0x1a3)][o(0x1c7)]+'\x27;\x0a'+'import\x20\x27./'+h['fileName']+'.'+f['engines'][o(0x1a1)]+'\x27;'}),!f[o(0x1e0)][o(0x1a1)]&&await this[o(0x1c3)][o(0x1ae)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x1d0)+h['fileName']+'.'+f[o(0x1a3)]['html']+'\x27;'})):f[o(0x1e0)][o(0x1a1)]&&await this[o(0x1c3)][o(0x1ae)]({'filePath':e+'.'+f[o(0x1a3)]['js'],'content':o(0x1d0)+h['fileName']+'.'+f['engines'][o(0x1a1)]+'\x27;'});const i=b[o(0x1c8)]?'/'+b['dir']+'/':'/';g=''+c+i+h[o(0x1ad)]+'/'+h['fileName'],await this['fsi'][o(0x1da)](h['className'],f,g),!b[o(0x1e3)]&&await a118f[o(0x1c6)](o(0x1a5),[i+h[o(0x1b8)]],b);}),g+'.'+f[n(0x1a3)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-
|
|
1
|
+
const a119j=a119d;function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x151;let f=c[d];return f;},a119d(a,b);}function a119c(){const m=['26wTQBMQ','4568788HoPkxx','maka\x20g:publish\x20todos','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','1634913atJJDj','toString','create','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','constructor','fsi','rewriteDestinationPathForEngine','21893200VyVFNh','getMakaProjectConfig','1405CcEFQa','templateContent','82064XwZzsL','288365kdnfWO','192zBUITI','1337166XdIbtH','withValue','246fRfpMq','injectAtEndOfFile','(((.+)+)+)+$','search','publish'];a119c=function(){return m;};return a119c();}(function(a,b){const h=a119d,c=a();while(!![]){try{const d=-parseInt(h(0x162))/0x1*(parseInt(h(0x158))/0x2)+-parseInt(h(0x15b))/0x3+parseInt(h(0x163))/0x4+-parseInt(h(0x156))/0x5*(parseInt(h(0x15d))/0x6)+-parseInt(h(0x159))/0x7*(parseInt(h(0x15a))/0x8)+-parseInt(h(0x166))/0x9+parseInt(h(0x154))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x9b8b1));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const i=a119d;return a119a[i(0x167)]()[i(0x160)]('(((.+)+)+)+$')[i(0x167)]()[i(0x151)](a119a)['search'](i(0x15f));});a119a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a119j(0x168)]({'name':a119j(0x161),'aliases':['p'],'usage':a119j(0x169),'shortDesc':a119j(0x165),'validOpts':[],'examples':[a119j(0x164)]},async function(a,b){const k=a119j,c=this['fsi'][k(0x155)]();await this[k(0x152)][k(0x15c)](c,async()=>{const l=k,d={'name':b['resourceName'],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c['engines']['js']==='tsx'&&(e='ts');const f=this[l(0x152)][l(0x153)]({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[l(0x152)][l(0x157)]({'srcPath':'publish/publish.'+e,'context':d,'config':c});await this['fsi'][l(0x15e)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120A=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d
|
|
1
|
+
const a120A=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(0xad))/0x1*(-parseInt(y(0xa1))/0x2)+parseInt(y(0x8f))/0x3*(-parseInt(y(0xb6))/0x4)+-parseInt(y(0x8e))/0x5+-parseInt(y(0xac))/0x6*(parseInt(y(0xbb))/0x7)+parseInt(y(0xb4))/0x8+parseInt(y(0x8a))/0x9+parseInt(y(0xc1))/0xa*(parseInt(y(0xb5))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x565e8));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[z(0xae)]()[z(0xc5)](z(0xa0))[z(0xae)]()[z(0x98)](a120a)[z(0xc5)](z(0xa0));});a120a();function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x7b;let f=c[d];return f;},a120d(a,b);}import a120e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a120c(){const J=['maka\x20g:route\x20todosEdit\x20todos/:id/edit','map','error','imports','route','url','\x22*\x22','layouts','features','includes','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','maka\x20g:route\x20pages/lists/listIndex\x20lists','withValue','\x20already\x20exists.\x20\x20Skipping.','startup','Invalid\x20directory\x20option\x20\x22','const\x20privateRoutes\x20=\x20(<>','<Router','route/route.js','components','2250792ckSGFu','root','\x0a\x09\x09','engines','2698680LLVuVq','692181semgcx','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','length','maka\x20g:route\x20pages/about','client','/imports/ui/pages','injectAfterLineNumber','private','/imports/ui/','constructor','templateName','getMakaProjectConfig','true','templateContent','info','const\x20publicRoutes\x20=\x20(<>','</Router>','(((.+)+)+)+$','2986eZoiwP','Adding\x20route\x20','lib','rewriteDestinationPathForEngine','ssr','pathFromProject','react','Valid\x20options\x20are:\x20','vanilla','withHook','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','1961748ENtHIZ','335QZwaFP','toString','indexOf','MasterLayout','filter','withTranslations','Scaffolding\x20for\x20a\x20Route.','1363616VHtZMC','319foirgC','8uEyKgb','layout','injectAtEndOfFile','join','newForm','7WXJwTW','hooks','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','fsi','config','warn','262490ASKvXZ','baseDir','pathFromApp','create','search','PrivateLayout','only','routes.js','readFileLines'];a120c=function(){return J;};return a120c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a120A(0xc4)]({'name':a120A(0xce),'aliases':aliases,'validOpts':[a120A(0x96),a120A(0xb7),a120A(0xc7),'cwd',a120A(0xbf),a120A(0x8b),a120A(0xaa),a120A(0x7b),a120A(0xc2)],'usage':a120A(0x80),'shortDesc':a120A(0xb3),'examples':['maka\x20g:route\x20todosIndex\x20todos',a120A(0xca),a120A(0x90),a120A(0x81),a120A(0x92)]},async function(a,b){const B=a120A;try{const c=[B(0xbc),B(0x89),'pages',B(0x7d)];if(b[B(0xc2)]&&!c['includes'](b['baseDir'])){Log['error'](B(0x85)+b[B(0xc2)]+'\x22'),Log[B(0xcc)](B(0xa8)+c[B(0xb9)](',\x20'));throw new UsageError();}const d=this[B(0xbe)][B(0x9a)]();await this[B(0xbe)][B(0x82)](d,async()=>{const C=B,f=b[C(0x96)]??![];let g=paramCase(b['resourceName']),h='/'+g;a[C(0x91)]>0x1&&(h='/'+a[C(0xb1)](function(n){return n!=='/';})[C(0xb9)]('/')['toLowerCase']());g=camelCase(g);b[C(0xb7)]&&(b['layout']=camelCase(b[C(0xb7)]));const i=b['baseDir']?C(0x97)+b['baseDir']:C(0x94),j=a120e['join'](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xb7)]||C(0xb0),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x8d)][C(0x93)],'newForm':![],'withTranslations':d[C(0x7e)][C(0xb2)]};f&&(k[C(0xb7)]=C(0xc6));let l,m;if(d[C(0x8d)][C(0x93)]==='react'){if(d[C(0x8d)][C(0xa5)]===C(0x9b)){const r=this[C(0xbe)][C(0xc3)]({'pathParts':[C(0xcd),'startup',C(0xa3),'routes.js']});l=this[C(0xbe)][C(0xa4)]({'pathParts':[r],'config':d});}else{const s=this[C(0xbe)][C(0xc3)]({'pathParts':[C(0xcd),C(0x84),'client',C(0xc8)]});l=this['fsi'][C(0xa4)]({'pathParts':[s],'config':d});}const n=await this[C(0xbe)]['fileContainsString'](l,g);if(n){Log[C(0xc0)]('Route\x20'+g+C(0x83));return;}else{const t=this['fsi'][C(0xa6)](l);Log[C(0x9d)](C(0xa2)+g+'\x20to\x20'+l['replace'](t,''));}const o=this['fsi'][C(0xc9)](l)[C(0xcb)]((u,v)=>{const D=C;return u[D(0x7f)](D(0xab))?v+0x1:null;})[C(0xb1)](u=>u!==null);let p=this[C(0xbe)][C(0xc9)](l)[C(0xcb)]((u,v)=>{const E=C;return u['includes'](E(0x9e))?v+0x1:null;})[C(0xb1)](u=>u!==null),q=this[C(0xbe)][C(0xc9)](l)[C(0xcb)]((u,v)=>{const F=C;return u['includes'](F(0x86))?v+0x1:null;})[C(0xb1)](u=>u!==null);p[C(0x91)]>0x0&&q[C(0x91)]>0x0&&(k[C(0xba)]=!![]);m=this['fsi'][C(0x9c)]({'srcPath':C(0x88),'framework':C(0xa7),'context':k,'config':d});if(p[C(0x91)]>0x0||q['length']>0x0){this[C(0xbe)][C(0x95)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x91)]>0x0)q=this[C(0xbe)]['readFileLines'](l)['map']((u,v)=>{const G=C;return u[G(0x7f)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[C(0xb1)](u=>u!==null),this['fsi']['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0x99)]+'}','lineNumber':q[0x0]});else p[C(0x91)]>0x0?(p=this[C(0xbe)][C(0xc9)](l)[C(0xcb)]((u,v)=>{const H=C;return u[H(0x7f)](H(0x9e))?v+0x1:null;})[C(0xb1)](u=>u!==null),this[C(0xbe)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0x99)]+'}','lineNumber':p[0x0]})):Log['warn'](C(0xbd)+l);}else{const u=this[C(0xbe)][C(0xc9)](l)[C(0xcb)](x=>{const I=C;return x[I(0x7f)](I(0x7c));}),v=u[C(0xaf)](!![])>-0x1,w=v?'<Route':C(0x9f);await this[C(0xbe)]['injectIntoFile']({'filePath':l,'content':C(0x8c)+m+'\x0a\x09\x09','begin':C(0x87),'end':w});}}else{if(d[C(0x8d)][C(0x93)]===C(0xa9)){const x=this[C(0xbe)][C(0xc3)]({'pathParts':[C(0xcd),'startup','client','routes.js']});l=this['fsi'][C(0xa4)]({'pathParts':[x],'config':d}),m=this[C(0xbe)][C(0x9c)]({'srcPath':'route/route.js','context':k}),await this[C(0xbe)][C(0xb8)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0xcc)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a121m=a121d;function a121c(){const p=['fsi','lib','6678900IyjxUs','engines','service','tsx','getMakaProjectConfig','1170285ZbFGmR','logger','checkNpmPackage','pathFromApp','imports','installNpmPackage','startup','1287114sulZbf','2tiNmWt','3758274VfMApS','error','winston\x20setimmediate','template','withValue','maka\x20g:svc\x20service-logger\x20--type=logger','toString','search','11709408kobrZV','services','7aTgUwQ','(((.+)+)+)+$','1309080uDsGaq','5754672yZexmA','maka\x20{generate,\x20g}:{service}\x20<resource-name>','create','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','10yWsUAJ','resourceName','type','apply','winston'];a121c=function(){return p;};return a121c();}(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0xd9))/0x1+-parseInt(j(0xbb))/0x2*(parseInt(j(0xba))/0x3)+parseInt(j(0xc8))/0x4*(-parseInt(j(0xcd))/0x5)+parseInt(j(0xbc))/0x6*(-parseInt(j(0xc6))/0x7)+parseInt(j(0xc4))/0x8+-parseInt(j(0xc9))/0x9+parseInt(j(0xd4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xe88a6));function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0xb7;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(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a['toString']()[l(0xc3)](l(0xc7))[l(0xc2)]()['constructor'](a121a)['search'](l(0xc7));});a121a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a121m(0xcb)]({'name':a121m(0xd6),'aliases':['svc'],'usage':a121m(0xca),'shortDesc':a121m(0xcc),'requiredOpts':[{'name':'type','values':[a121m(0xda)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121m(0xc1)]},async function(a,b){const n=a121m;try{const c=this[n(0xd2)][n(0xd8)]();await this[n(0xd2)][n(0xc0)](c,async()=>{const o=n,d=this['fsi'][o(0xdc)]({}),f=paramCase(b[o(0xce)]),g={'name':pascalCase(b[o(0xce)]),'fileName':f,'camelCase':camelCase(b[o(0xce)]),'type':b[o(0xcf)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0xd5)]['js']===o(0xd7)&&(h='ts');if(b[o(0xcf)]===o(0xda)){!this[o(0xd2)][o(0xdb)](o(0xd1))&&await this[o(0xd2)][o(0xb8)](o(0xbe),{'cwd':d,'msg':'Installing\x20winston'});const i=this[o(0xd2)][o(0xdc)]({'pathParts':[o(0xb7),o(0xb9),o(0xd3),o(0xc5),f+'.'+h]});await this['fsi'][o(0xbf)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xbd)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0x1af))/0x1*(parseInt(f(0x1ae))/0x2)+parseInt(f(0x1b5))/0x3+-parseInt(f(0x1b8))/0x4+parseInt(f(0x1ba))/0x5*(-parseInt(f(0x1b4))/0x6)+parseInt(f(0x1b1))/0x7+parseInt(f(0x1b3))/0x8+-parseInt(f(0x1ad))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xcaafa));function a122c(){var i=['2146572TNLoND','590MasABN','1423nfqDrp','(((.+)+)+)+$','2788618fABxaV','constructor','12379600rcXFqn','192xpYCZL','1026042FUBgyF','search','toString','3502340lSQLde','apply','119270YzeJCQ'];a122c=function(){return i;};return a122c();}function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1ad;var f=c[d];return f;},a122d(a,b);}var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x1b7)]()['search'](h(0x1b0))[h(0x1b7)]()[h(0x1b2)](a122a)[h(0x1b6)](h(0x1b0));});a122a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a123k=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=-parseInt(i(0xcb))/0x1*(-parseInt(i(0xdf))/0x2)+parseInt(i(0xdb))/0x3+parseInt(i(0xde))/0x4+-parseInt(i(0xd5))/0x5*(-parseInt(i(0xd7))/0x6)+-parseInt(i(0xca))/0x7*(parseInt(i(0xe1))/0x8)+parseInt(i(0xd2))/0x9*(-parseInt(i(0xcf))/0xa)+-parseInt(i(0xd4))/0xb*(parseInt(i(0xe0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xce440));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const j=a123d;return a123a[j(0xcd)]()['search']('(((.+)+)+)+$')['toString']()[j(0xd9)](a123a)[j(0xc6)](j(0xd6));});function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0xc5;let f=c[d];return f;},a123d(a,b);}a123a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a123e from'path';Generator[a123k(0xc8)]({'name':'sslconfig','usage':a123k(0xe2),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':[a123k(0xd1)],'examples':[a123k(0xc9)],'validOpts':[]},async function(a,b){const l=a123k;try{const c=await this[l(0xda)][l(0xdd)](),d=await this[l(0xda)][l(0xcc)](),f=this[l(0xda)][l(0xc7)](b[l(0xd1)]),g=a123e[l(0xd3)](f,l(0xd8),l(0xc5));await this[l(0xda)]['withValue'](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this[m(0xda)][m(0xce)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':m(0xdc),'context':h,'config':c});});}catch(h){Log[l(0xd0)](h);}});function a123c(){const n=['3864yUtwqW','16kZAPTV','maka\x20{generate,\x20g}:sslconfig','openssl.conf','search','getAppConfigPath','create','maka\x20g:sslconfig\x20--env\x20dev','4756325NFBPOX','6423AaVRCv','getGlobalConfig','toString','template','10NUHhsx','error','env','7978878PtigHa','join','53559yyHFgx','15hrBjii','(((.+)+)+)+$','2562702JiRJIT','_keys','constructor','fsi','3253422PtdCxV','service','getMakaProjectConfig','5469748JQYulj','288Ckzjwv'];a123c=function(){return n;};return a123c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124A=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d
|
|
1
|
+
const a124A=a124d;function a124c(){const D=['injectAtBeginningOfFile','warn','rewriteDestinationPathForEngine','10nVCERP','export\x20{\x20default\x20as\x20','lang','pathFromApp','service','translations','import\x20\x27../lib/services/translations/i18n\x27;','1155670OxwWao','services','translation','Locale\x20already\x20exported:\x20','server','readFileSync','injectAtEndOfFile','i18n.js','index.','startup','7IqzVIJ','\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','3381512Jenhge','Locale\x20already\x20defined:\x20','checkNpmPackage','i18n/i18n.js','maka\x20g:translation\x20--lang=fr','\x20}\x20from\x20\x27./','lib','withValue','i18next\x20i18next-browser-languagedetector\x20react-i18next','3124356nBDqGN','appName','355190CoOcEO','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','client','isFile','(((.+)+)+)+$','.js','default\x20as\x20','i18n/locales.js','search','installNpmPackage','getGlobalConfig','maka\x20{generate,\x20g}:translation','error','template','engines','12908082jQmpta','index.js','imports','true','getMakaProjectConfig','create','apply','1SMzMWK','20425824qoiwtC','exit','fsi','3Jfjcrl','features.withTranslations','maka\x20g:translation\x20--lang=en\x20(default)','952552GJEuWL','grep','import\x20\x27../lib/services/translations/i18n\x27;\x0a','toString','81KfCOiA'];a124c=function(){return D;};return a124c();}(function(a,b){const x=a124d,c=a();while(!![]){try{const d=parseInt(x(0x223))/0x1*(parseInt(x(0x1f6))/0x2)+-parseInt(x(0x227))/0x3*(-parseInt(x(0x202))/0x4)+-parseInt(x(0x1ef))/0x5*(parseInt(x(0x20b))/0x6)+-parseInt(x(0x200))/0x7*(-parseInt(x(0x22a))/0x8)+parseInt(x(0x22e))/0x9*(-parseInt(x(0x20d))/0xa)+-parseInt(x(0x21c))/0xb+parseInt(x(0x224))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xad4d9));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a124d;if(c){const e=c[y(0x222)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const z=a124d;return a124a['toString']()[z(0x215)](z(0x211))[z(0x22d)]()['constructor'](a124a)['search'](z(0x211));});a124a();import{Generator}from'../../generator.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a124d(a,b);}import{Log}from'../../tools/log/log.class.js';import a124e from'fs';Generator[a124A(0x221)]({'name':a124A(0x1f8),'usage':a124A(0x218),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124A(0x1f1),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a124A(0x201),'examples':[a124A(0x229),a124A(0x206),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a124A;try{const c=this[B(0x226)][B(0x220)](),d=this['fsi'][B(0x217)](),f=this[B(0x226)]['findAppDirectory']();await this[B(0x226)][B(0x209)](c,()=>{const C=B;try{!b['lang']&&(b[C(0x1f1)]='en');!b['root']&&!this[C(0x226)][C(0x204)]('i18next')&&(Log[C(0x230)](C(0x20e)),this[C(0x226)][C(0x216)](C(0x20a),{'cwd':f}),this['fsi']['setProjectConfig'](C(0x228),!![]));const g=this['fsi']['pathFromApp']({'pathParts':[C(0x21e),C(0x1ff),C(0x20f),C(0x21d)]}),h=this[C(0x226)][C(0x231)]({'pathParts':[g],'config':c}),i=this[C(0x226)][C(0x22b)](a124e[C(0x1fb)](h)['toString'](),C(0x1f5))[0x0]&&!![];if(c[C(0x21b)]['ssr']===C(0x21f)){!i&&this['fsi']['injectAtBeginningOfFile']({'filePath':h,'content':C(0x22c)});const t=this['fsi']['pathFromApp']({'pathParts':['imports',C(0x1ff),C(0x1fa),C(0x21d)]}),u=this[C(0x226)][C(0x231)]({'pathParts':[t],'config':c}),v=this['fsi'][C(0x22b)](a124e[C(0x1fb)](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x226)][C(0x22f)]({'filePath':u,'content':C(0x22c)});}else!i&&this[C(0x226)][C(0x22f)]({'filePath':h,'content':C(0x22c)});const j={'app':d[C(0x20c)],'config':c},k=this[C(0x226)][C(0x1f2)]({'pathParts':[C(0x21e),'startup','lib',C(0x1f7),'translations',C(0x1fd)]}),l=this[C(0x226)][C(0x210)](this[C(0x226)][C(0x231)]({'pathParts':[k],'config':c}));!l&&this[C(0x226)][C(0x21a)]({'srcPath':C(0x205),'destPath':k,'framework':C(0x1f3),'context':j,'config':c});const m=this[C(0x226)][C(0x1f2)]({'pathParts':[C(0x21e),C(0x1ff),C(0x208),'services','translations','locales',b[C(0x1f1)]+C(0x212)]}),n=this[C(0x226)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0x226)][C(0x210)](n);!o?this[C(0x226)][C(0x21a)]({'srcPath':C(0x214),'destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x230)](C(0x203)+n);const p=this[C(0x226)][C(0x1f2)]({'pathParts':['imports',C(0x1ff),C(0x208),C(0x1f7),C(0x1f4),'locales',C(0x1fe)+c['engines']['js']]}),q=this[C(0x226)][C(0x231)]({'pathParts':[p],'config':c}),r=this[C(0x226)][C(0x210)](q);!r&&this[C(0x226)]['template']({'srcPath':'i18n/index.js','destPath':p,'framework':C(0x1f3),'context':j,'config':c});const s=this['fsi'][C(0x22b)](a124e[C(0x1fb)](p)[C(0x22d)](),C(0x213)+b['lang'])[0x0]&&!![];!s?this['fsi'][C(0x1fc)]({'filePath':p,'content':C(0x1f0)+b['lang']+C(0x207)+b[C(0x1f1)]+'\x27;'}):Log[C(0x230)](C(0x1f9)+p);}catch(w){Log[C(0x219)](w),process[C(0x225)](0x1);}});}catch(g){Log['error'](g),process[B(0x225)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d
|
|
1
|
+
const a125m=a125d;function a125c(){const n=['277281hWCsoA','BROWSERSLIST_IGNORE_OLD_DATA','totalmem','toString','apply','32962370vaiUMc','slice','5648MYuZjB','6491778GayHye','env','dirname','837964FNDjUj','camelizeKeys','NODE_NO_WARNINGS','4015xhszMG','--max-old-space-size=','40CWEgts','6CRfzlh','1182698AAOWiP','(((.+)+)+)+$','argv','1586354kRFTTM','stringify','search','constructor','run'];a125c=function(){return n;};return a125c();}(function(a,b){const j=a125d,c=a();while(!![]){try{const d=parseInt(j(0x187))/0x1+parseInt(j(0x18e))/0x2*(-parseInt(j(0x18d))/0x3)+-parseInt(j(0x183))/0x4*(parseInt(j(0x18a))/0x5)+-parseInt(j(0x184))/0x6+parseInt(j(0x191))/0x7+parseInt(j(0x18c))/0x8*(-parseInt(j(0x17c))/0x9)+parseInt(j(0x181))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xc5559));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x17f)]()[l(0x193)](l(0x18f))[l(0x17f)]()[l(0x194)](a125a)['search'](l(0x18f));});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['url']),__dirname=a125g[a125m(0x186)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a125f[a125m(0x17e)](),total_mem_in_kb=total_memory/0x400;function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x17b;let f=c[d];return f;},a125d(a,b);}let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a125m(0x185)]['TOOL_NODE_FLAGS']=a125m(0x18b)+total_mem_in_mb,process[a125m(0x185)][a125m(0x17d)]='1',process[a125m(0x185)][a125m(0x189)]='1';const argv=a125e(process[a125m(0x190)][a125m(0x182)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a125m(0x192)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0x188)](deepCopyArgv);a125i[a125m(0x17b)](args,opts);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
[]
|
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(0xd5))/0x1+-parseInt(I(0xa5))/0x2*(-parseInt(I(0xce))/0x3)+parseInt(I(0x9a))/0x4*(parseInt(I(0xd4))/0x5)+parseInt(I(0x93))/0x6+-parseInt(I(0xad))/0x7*(parseInt(I(0x90))/0x8)+-parseInt(I(0xba))/0x9+parseInt(I(0xc0))/0xa*(parseInt(I(0xc8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x44a31));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0x96)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a['toString']()[K(0xcd)](K(0xc4))['toString']()[K(0xb6)](a126a)['search']('(((.+)+)+)+$');});a126a();import a126e from'path';import a126f from'os';import a126g from'fs';function a126c(){const a3=['proCommands','length','domainLicense','7832zMHoPt','existsSync','string','1083402ShWaqM','config','match','apply','error','exit','To\x20use\x20this\x20generator,\x20\x22','1047444qtTrVV','disableAuthCheck','parent','Invalid\x20value\x20for\x20','fsi','charAt','root','concat','_handler','cwd','includes','762886EpWdDE','\x20installed\x20to\x20use\x20this\x20command.','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Please\x20provide\x20a\x20value\x20for\x20','getPro','win32','join','keys','231HFELcd','findProjectDirectory','None','getMakaProjectConfig','usage','No\x20description\x20provided.','docker','resourceName','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','constructor','examples','indexOf','remapShortToLong','4929336lmodoa','.meteor','env','validateMakaProject','\x20version\x20','You\x20must\x20have\x20','45520ltoXTC','No\x20usage\x20provided.','validateEngines','NIE','(((.+)+)+)+$','To\x20use\x20this\x20command,\x20\x22','isCommand','proGenerators','605ODSiBp','homedir','AppData','roles','help','search','3vmgQPR','shortDesc','Invalid\x20argument:\x20','options','formatToNamedParam','push','5NguAYl','213083ydHdUJ','list','isGenerator','Invalid\x20option:\x20','Local','name','getAppProjectConfigs','aliases','ask','isPro','validateParams','assign','singleLicense','engines','validateMakaSubscription','description','validateMeteorInstall','every'];a126c=function(){return a3;};return a126c();}const homeDir=a126f[a126L(0xc9)]();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';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x89;let f=c[d];return f;},a126d(a,b);}import{UsageError}from'./error.js';export class Tool{[a126L(0xb3)];[a126L(0x9e)];[a126L(0xd1)];[a126L(0xda)];[a126L(0x9c)];[a126L(0xa2)];constructor(){const M=a126L;this[M(0xb3)]=new Docker(),this['fsi']=new FSI();}['getShortName'](a){const N=a126L;return a[N(0x9f)](0x0);}[a126L(0xb9)](a,b){const O=a126L,c=this[O(0xd2)](b),d={...a};for(const e of c){const f=this['getShortName'](e[O(0xda)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const P=a126L;if(a[P(0x8c)](b=>typeof b===P(0x92)))return a['map'](b=>({'name':b}));return a;}[a126L(0x95)](a){const Q=a126L,b=[this['name']]['concat'](this[Q(0xd1)][Q(0xdc)]||[]);return this[Q(0x9c)]&&b['push'](this[Q(0x9c)]),b[Q(0xa4)](a);}[a126L(0xbd)](){const R=a126L,a=this[R(0x9e)][R(0xae)]();return a!==![]?!![]:![];}[a126L(0x8b)](){const S=a126L;let a=a126e['join'](homeDir,S(0xbb));const b=process['platform']===S(0xaa);if(b){a=a126e[S(0xab)](homeDir,S(0xca),S(0xd9),S(0xbb));if(!a126g[S(0x91)](a))return![];}else{if(!a126g[S(0x91)](a))return![];}return!![];}[a126L(0xc2)](a){const T=a126L,b=this[T(0x9e)][T(0xb0)](),c=b[T(0xe2)],d=Object[T(0xac)](a);if(d[T(0x8e)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x97)](T(0xbf)+e+T(0xbe)+a[e]+T(0xa6));throw UsageError;}}}async[a126L(0xdf)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[U(0xa4)](U(0xb4))&&b['resourceName']===undefined&&!g){const m=await Actions[U(0xdd)]('Please\x20provide\x20a\x20resource\x20name:');b[U(0xb4)]=m;}let i=[],j=b;if(d){i=this[U(0xd2)](d),j=this['remapShortToLong'](b,i);if(i&&i?.[U(0x8e)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)[U(0xa4)](o)){if(o===U(0xbc)){const r=this[U(0x9e)][U(0xdb)](),s=await Actions['options']({'type':U(0xd6),'name':'env','message':'Please\x20choose\x20an\x20environment','choices':r});b[U(0xbc)]=s[U(0xbc)];}else{const t=p;if(t){const u=await Actions[U(0xd1)]({'type':U(0xd6),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0xdd)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[U(0x95)](q))b[o]=v;else{Log[U(0x97)](U(0x9d)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0xdd)](U(0xa8)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log['error'](U(0x9d)+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object['keys'](k)?.[U(0x8e)]>0x0){k=k[U(0xa1)](i||[]),k[U(0xd3)]({'name':U(0xb4),'hidden':!![]}),k[U(0xd3)]({'name':U(0xcc),'boolFlag':!![]}),k[U(0xd3)]({'name':'dir','hidden':!![]}),k[U(0xd3)]({'name':U(0xa3),'hidden':!![]}),k[U(0xd3)]({'name':U(0xa0),'hidden':!![]}),k['push']({'name':U(0x94),'hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0xa4)](B))){const C=A;if(C){const D=await Actions[U(0xd1)]({'type':U(0xd6),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k[U(0x8e)]>0x0)for(const E of Object['keys'](l)){const F=k['find'](G=>G[U(0xda)]===E);if(!F){Log[U(0x97)](U(0xd8)+E);throw new UsageError();}}}}if(e&&e?.[U(0x8e)]>0x0)for(const G of e){if(!e[U(0xa4)](G)){Log['error'](U(0xd0)+G);const H=await Actions[U(0xdd)](U(0xb5)+G);a[a[U(0xb8)](G)]=H;}}return Object[U(0xe0)](j,l);}async[a126L(0x89)](a){const V=a126L;try{if(!a)return;const b=await this['fsi'][V(0xa9)]();!b&&(Log[V(0x97)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[V(0x98)](0x1));const c=!b?.['roles'][V(0xa4)](V(0xe1))&&!b?.[V(0xcb)]['includes'](V(0x8f));if(this[V(0xc6)](a)){const d=V(0xc5)+a[V(0xda)]+V(0xa7);if(a['options'][V(0x9b)])return;const f=b?.['proCommands'][V(0xa4)](a[V(0xda)])||b?.[V(0x8d)]['includes'](a['parent']||'')||this['options'][V(0xde)];if(f&&c)throw d;}else{if(this[V(0xd7)](a)){const g=b?.[V(0xc7)][V(0xa4)](a['name'])||b?.[V(0xc7)][V(0xa4)](a[V(0x9c)]||'');if(g&&c)throw V(0x99)+a['name']+V(0xa7);}}}catch(h){Log[V(0x97)](h),process[V(0x98)](0x1);}}[a126L(0xc6)](a){const W=a126L;return W(0xd1)in a;}[a126L(0xd7)](a){const X=a126L;return!(X(0xd1)in a);}[a126L(0x8a)](){const Y=a126L;return this[Y(0xd1)][Y(0x8a)]||this[Y(0xd1)][Y(0xcf)]||Y(0xb2);}['shortDesc'](){const Z=a126L;return this[Z(0xd1)][Z(0xcf)]||Z(0xc3);}[a126L(0xb1)](){const a0=a126L;return this['options'][a0(0xb1)]||a0(0xc1);}[a126L(0xb7)](){const a1=a126L;return this[a1(0xd1)]['examples']||[];}[a126L(0xdc)](){const a2=a126L;return this[a2(0xd1)][a2(0xdc)]||a2(0xaf);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0xba))/0x1*(-parseInt(f(0xb2))/0x2)+parseInt(f(0xb3))/0x3*(parseInt(f(0xb1))/0x4)+parseInt(f(0xb5))/0x5+parseInt(f(0xaf))/0x6*(parseInt(f(0xc1))/0x7)+-parseInt(f(0xbf))/0x8+-parseInt(f(0xb4))/0x9*(parseInt(f(0xb9))/0xa)+parseInt(f(0xbc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xb4879));function a127c(){const l=['ask','input','1867740ADqkOP','1230046idBaBy','password','5440248OcRSyM','answer','toString','3481752TEzWzB','options','1595839gbgQIs','(((.+)+)+)+$','prompt','confirm','12Ndikpj','search','2045332jhsaVo','2uaxVvW','6RRHBNe','45quJnzx','6826980OwwfeN','apply'];a127c=function(){return l;};return a127c();}function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xad;let f=c[d];return f;},a127d(a,b);}const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0xbe)]()[h(0xb0)](h(0xc2))['toString']()['constructor'](a127a)[h(0xb0)](h(0xc2));});a127a();import a127e from'inquirer';export class Actions{static async[a127i(0xb7)](a,b){const j=a127i,{answer:c}=await a127e[j(0xad)]({'type':b?j(0xbb):j(0xb8),'name':j(0xbd),'message':a});return c;}static async[a127i(0xae)](a,b=![]){const k=a127i,{answer:c}=await a127e['prompt']({'type':k(0xae),'name':k(0xbd),'message':a,'default':b});return c;}static async[a127i(0xc0)](a){const b=await a127e['prompt'](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xf9;let f=c[d];return f;},a128d(a,b);}const a128r=a128d;function a128c(){const V=['send','file://','success','key','subnet','Successfully\x20linked\x20EC2\x20instance\x20','environment','maxCount','instanceId','Hosted\x20zone\x20created\x20successfully!','split','2966517WVwpxS','430180JWZign','tag:created-by','913102LTJWwM','ec2createSG','ssh.json','parse','CidrBlock','Web\x20App','\x20PRIV_IP:\x20','terminated','Availability','getAppConfigPath','sgIds','confirm','KeyMaterial','_keys','ask','ec2describeInstances','createKeyPairEC2Key','log','name','5IDnwnz','running','deleteSecurityGroup','description','ec2describeKeys','env','UserData','Key\x20Name:\x20[','chooseInstance','minCount','exit','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ec2create','\x20NAME:\x20','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','ID:\x20','Instances','constructor','imageId','deleteKeyPair','publicIp','Prices','AVAILABLE','now','Error\x20fetching\x20domain\x20pricing:','privateIp','From\x20AWS:','ec2rebootInstance','1034872evizIP','length','$response','userData','The\x20domain\x20\x27','Value','find','(((.+)+)+)+$','writeFileSync','push','\x20Error\x20Rason:\x20','7514700GhQlZI','153DgGYOO','7343035djneCc','GroupId','chooseVPC','Please\x20choose\x20a\x20VPC:\x20[0]\x20','.pem.txt','\x20PUB_IP:\x20','status','createFile','linkEC2ToRoute53','ignore','checkDomainAvailability','Description:','**\x20Available\x20\x20VPCs\x20**','error','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','route53CreateHostedZone','\x20Status\x20Code:\x20','instance','ingressRule','getSecurityGroups','RegistrationPrice','statusCode','sgPorts','warn','tcp','HostedZones','KeyName','\x20to\x20','chmod\x20400\x20','No\x20instances\x20found','1541112HdsLxX','readFileSync','fsi','reason','pem','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','suggestion','search','\x20VPCID:\x20','config','cidr','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','forEach','join','\x20opened!','Port\x20','UPSERT','Instance\x20rebooted!','\x20ENV:\x20','ec2terminateInstance','stringify','VpcId','Name','notice','pop','Created:\x20'];a128c=function(){return V;};return a128c();}(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x177))/0x1+parseInt(p(0x14f))/0x2+parseInt(p(0x174))/0x3+parseInt(p(0x175))/0x4*(-parseInt(p(0x107))/0x5)+-parseInt(p(0x12f))/0x6+-parseInt(p(0x131))/0x7+parseInt(p(0x124))/0x8*(parseInt(p(0x130))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x9b5ec));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['toString']()[q(0x156)](q(0x12b))['toString']()[q(0x119)](a128a)[q(0x156)](q(0x12b));});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(0x151)];constructor(){const s=a128r;this[s(0x151)]=new FSI();}async['ecrCreateRepository'](a){const t=a128r;try{const b={'repositoryName':a[t(0x106)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[t(0x13e)](f);}}async[a128r(0x140)](a){const u=a128r;try{const b={'CallerReference':''+Date[u(0x11f)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[u(0x16b)](u(0x172));}catch(d){Log[u(0x13e)]('Error\x20creating\x20hosted\x20zone'),console[u(0x13e)](d);}}async['registerDomain'](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(0x169)](f),Log['notice'](v(0x128)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log['error'](v(0x154)),Log[v(0x148)](v(0x122)),console[v(0x13e)](v(0x141)+g[v(0x126)][v(0x146)]),console['error'](v(0x12e)+g[v(0x126)][v(0x152)]);}}async[a128r(0x13b)](a){const w=a128r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[w(0xfc)]===w(0x11e);if(e){const f=a[w(0x173)]('.')[w(0x167)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x169)](h);if(i&&i[w(0x11d)]&&i[w(0x11d)][0x0]?.['RegistrationPrice']){const j=i[w(0x11d)][0x0][w(0x145)];return{'available':e,'cost':j};}}catch(k){console['error'](w(0x120),k);}}return{'available':e};}async[a128r(0x139)](a,b,c){const x=a128r;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[x(0x14a)])throw Log[x(0x13e)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x15f),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[x(0x166)](x(0x16e)+a+x(0x14c)+c);}catch(g){console['error']('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a128r(0x114)](a){const y=a128r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x11a)],'InstanceType':a['type'],'KeyName':a[y(0x16c)],'MaxCount':a[y(0x170)],'MinCount':a[y(0x110)],'SecurityGroupIds':a[y(0xfe)][y(0x173)](','),'SubnetId':a[y(0x16d)],'TagSpecifications':[{'ResourceType':y(0x142),'Tags':a['tags']}]};a[y(0x127)]&&(b[y(0x10d)]=y(0x16a)+a[y(0x127)]);const c=new RunInstancesCommand(b),d=await client[y(0x169)](c);return d;}catch(f){Log[y(0x13e)](f);}}async[a128r(0x162)](a){const z=a128r;try{const b={'InstanceIds':[a[z(0x171)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x169)](c);return d;}catch(f){return Log[z(0x13e)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const A=a128r,c=this[A(0x151)][A(0xfd)](b),d=a128f[A(0x15c)](c,'_keys',a+A(0x135));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x169)](g),i=h[A(0x100)];if(i){await this[A(0x151)][A(0x138)]({'filePath':d,'data':i}),execSync(A(0x14d)+d,{'stdio':A(0x13a)});const j=this[A(0x151)]['isFile'](d);if(j)return Log[A(0x16b)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[A(0x13e)](k),process[A(0x111)](0x1);}}async[a128r(0x143)]({port:a,groupId:b}){const B=a128r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x149),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x166)](B(0x15e)+a+B(0x15d)),await client[B(0x169)](d);}async[a128r(0x178)](a){const C=a128r;try{a[C(0x10a)]===''&&(a[C(0x10a)]=await Actions[C(0x102)](C(0x13c))||C(0xf9));const b={'Description':a[C(0x10a)],'GroupName':a[C(0x106)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[C(0x169)](c),{GroupId:f}=d;if(!d)throw new Error(C(0x13f));f&&a[C(0x147)][C(0x15b)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success'](C(0x168)+f+C(0x115)+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async[a128r(0x10b)](a){const D=a128r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[D(0x169)](d);if(!f)throw D(0x13f);const {KeyPairs:g}=f;g?(g?.[D(0x15b)]((h,i)=>{const E=D;h[E(0x14b)]&&b[E(0x12d)]({'id':i,'name':h[E(0x14b)]});}),b[D(0x125)]>0x0&&b[D(0x15b)](h=>{const F=D;h[F(0x106)]===a?.[F(0x155)]?Log[F(0x16b)](F(0x117)+h['id']+F(0x115)+h['name']):Log['notice'](F(0x117)+h['id']+'\x20NAME:\x20'+h[F(0x106)]);})):Log[D(0x13e)](D(0x15a));}catch(h){Log[D(0x13e)](h);}return b;}async[a128r(0x11b)](a){const G=a128r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[G(0x13e)](d),process[G(0x111)](0x1);}}async[a128r(0x103)](){const H=a128r,a=[];try{const b={'Filters':[{'Name':H(0x176),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[H(0x169)](c);d['Reservations']?.['forEach']((f,g)=>{const I=H;if(f?.[I(0x118)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[I(0x118)][0x0],n=m?.[I(0x12a)](({Key:o})=>o===I(0x16f));a[I(0x12d)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[I(0x165)],'name':l,'env':n?.[I(0x129)]});}}),a[H(0x125)]>0x0?a[H(0x15b)](f=>{const J=H,g='ID:\x20'+f['id']+J(0x115)+f[J(0x106)]+J(0x161)+f[J(0x10c)]+'\x20STATUS:\x20'+f['status']+'\x20INSTANCE_ID:\x20'+f[J(0x171)]+J(0x136)+f[J(0x11c)]+J(0xfa)+f[J(0x121)];if(f[J(0x137)]===J(0xfb))Log['error'](g);else f['status']===J(0x108)?Log['success'](g):Log[J(0x166)](g);}):Log[H(0x13e)](H(0x116));}catch(f){Log['error'](f);}return a;}async[a128r(0x123)](a){const K=a128r;try{const b={'InstanceIds':[a[K(0x171)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d['$metadata']['httpStatusCode']===0xc8&&Log[K(0x16b)](K(0x160)),d;}catch(f){Log['error'](f);}}async[a128r(0x133)](){const L=a128r;let a='';Log[L(0x166)](L(0x13d));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[L(0x15b)]((g,h)=>{const M=L;g[M(0x164)]&&g[M(0x17b)]&&e[M(0x12d)]({'id':h,'vpcId':g['VpcId'],'cidr':g[M(0x17b)]});});e[L(0x15b)](function(g){const N=L;console[N(0x105)]('ID:\x20'+g['id']+N(0x157)+g['vpcId']+'\x20CIDR:\x20'+g[N(0x159)]);});const f=await Actions[L(0x102)](L(0x134))||0x0;e['forEach'](function(g){const O=L;g['id']==f&&(a=g['vpcId'],Log[O(0x16b)](O(0x113)+a+'\x0a'));});if(a==='')return Log[L(0x13e)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a128r(0x10f)](){const P=a128r,a=await this[P(0x103)]();if(a[P(0x125)]===0x0)return Log['error'](P(0x14e)),null;const b=await Actions[P(0x102)](P(0x112));!b&&(Log[P(0x13e)]('Invalid\x20choice'),process[P(0x111)](0x0));const c=a[P(0x12a)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const Q=a128r,b=this[Q(0x151)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[Q(0x102)](Q(0x10e)+d+']\x20')||d,{filePath:g}=await this[Q(0x104)]({'keyName':f,'env':a});try{const h=await Actions[Q(0xff)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[Q(0x150)](a128f[Q(0x15c)]('config',a,Q(0x179)),'utf8'),j=JSON[Q(0x17a)](i);j[Q(0x153)]=a128f[Q(0x15c)](Q(0x101),f+Q(0x135)),a128e[Q(0x12c)](a128f[Q(0x15c)](Q(0x158),a,'ssh.json'),JSON[Q(0x163)](j,null,0x2));}catch(k){Log[Q(0x13e)](k),Log[Q(0x13e)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[Q(0x13e)](l),process[Q(0x111)](0x1);}return{'keyName':f,'filePath':g};}async[a128r(0x144)](a){const R=a128r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[R(0x169)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const S=R;i['GroupName']&&i[S(0x132)]&&b[S(0x12d)]({'id':j,'name':i['GroupName'],'sgId':i[S(0x132)]});});let g='',h=0x0;return b[R(0x15b)](function(i){const T=R;i[T(0x106)]===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128r(0x109)](a){const U=a128r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[U(0x169)](c);}catch(d){Log[U(0x13e)](d),process[U(0x111)](0x1);}}}
|
|
1
|
+
function a128c(){const X=['9176106KqlhsC','success','ec2createSG','Successfully\x20linked\x20EC2\x20instance\x20','Hosted\x20zone\x20created\x20successfully!','Error\x20creating\x20hosted\x20zone','482eQchmF','UPSERT','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','/dev/sdh','tag:created-by','isFile','parse','publicIp','KeyMaterial','4aiLGrL','**\x20Available\x20\x20VPCs\x20**','Name','vpcId','listHostedZonesByName','env','\x20VPCID:\x20','toString','chooseVPC','\x20PRIV_IP:\x20','exit','Created:\x20','ec2describeInstances','send','CidrBlock','registerDomain','statusCode','KeyName','Error\x20saving\x20pem\x20file,\x20aborting','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','2170895zTsnxX','config','The\x20domain\x20\x27','\x20to\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','701956oHrCQa','tags','split','userData','error','(((.+)+)+)+$','From\x20AWS:','cidr','join','readFileSync','No\x20instances\x20found','GroupName','reason','getSecurityGroups','0.0.0.0/0','apply','minCount','UserData','Instance\x20rebooted!','createKeyPair','fsi','terminated','length','sgId','Error\x20generating\x20key\x20pair','$response','name','key','imageId','Pem\x20key\x20saved\x20to\x20','maxCount','12929364zXxOIl','chmod\x20400\x20','Reservations','maka-cli','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','\x20INSTANCE_ID:\x20','48580frENKe','$metadata','instance','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','.pem.txt','GroupId','\x20STATUS:\x20','route53CreateHostedZone','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','ec2describeKeys','\x20NAME:\x20','ignore','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','HostedZones','Value','notice','writeFileSync','VpcId','createKeyPairEC2Key','forEach','file://','environment','5337uIWdLo','ID:\x20','\x20Status\x20Code:\x20','sgIds','ecrCreateRepository','ask','status','push','type','ec2create','getAppConfigPath','Error\x20fetching\x20domain\x20pricing:','search','find','sgPorts','getMakaProjectConfig','\x20Error\x20Rason:\x20','now','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','ingressRule','560136wOTsvK','description','Prices','Instances','instanceId','createFile','17367TKraGn','utf8','\x20ENV:\x20','changeResourceRecordSets','subnet','privateIp','Please\x20choose\x20a\x20VPC:\x20[0]\x20','\x20opened!','Availability','ssh.json','Port\x20','Description:','\x20CIDR:\x20'];a128c=function(){return X;};return a128c();}const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x19a))/0x1+parseInt(p(0x178))/0x2*(-parseInt(p(0x165))/0x3)+-parseInt(p(0x181))/0x4*(-parseInt(p(0x195))/0x5)+parseInt(p(0x172))/0x6+-parseInt(p(0x1b9))/0x7+parseInt(p(0x15f))/0x8+-parseInt(p(0x1d5))/0x9*(-parseInt(p(0x1bf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xecdc8));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x188)]()[r(0x157)]('(((.+)+)+)+$')['toString']()['constructor'](a128a)['search'](r(0x19f));});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';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x153;let f=c[d];return f;},a128d(a,b);}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{[a128s(0x1ae)];constructor(){const t=a128s;this[t(0x1ae)]=new FSI();}async[a128s(0x1d9)](a){const u=a128s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x18e)](c);return d;}catch(f){Log['error'](f);}}async[a128s(0x1c6)](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0x15c)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x18e)](c),Log[v(0x173)](v(0x176));}catch(d){Log[v(0x19e)](v(0x177)),console[v(0x19e)](d);}}async[a128s(0x190)](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(0x18e)](f),Log['notice'](w(0x197)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[w(0x19e)](w(0x1c7)),Log['warn'](w(0x1a0)),console['error'](w(0x1d7)+g[w(0x1b3)][w(0x191)]),console[w(0x19e)](w(0x15b)+g[w(0x1b3)][w(0x1a6)]);}}async['checkDomainAvailability'](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[x(0x16d)]==='AVAILABLE';if(e){const f=a[x(0x19c)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x18e)](h);if(i&&i[x(0x161)]&&i[x(0x161)][0x0]?.['RegistrationPrice']){const j=i[x(0x161)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[x(0x19e)](x(0x156),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a128s;try{const d=await route53[y(0x185)]({'DNSName':c});if(!d?.[y(0x1cc)])throw Log[y(0x19e)]('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[y(0x1cc)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x179),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x168)](f),Log[y(0x1ce)](y(0x175)+a+y(0x198)+c);}catch(g){console[y(0x19e)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a128s(0x154)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x17b),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x1b6)],'InstanceType':a[z(0x153)],'KeyName':a[z(0x1b5)],'MaxCount':a[z(0x1b8)],'MinCount':a[z(0x1aa)],'SecurityGroupIds':a[z(0x1d8)]['split'](','),'SubnetId':a[z(0x169)],'TagSpecifications':[{'ResourceType':z(0x1c1),'Tags':a[z(0x19b)]}]};a[z(0x19d)]&&(b[z(0x1ab)]=z(0x1d3)+a[z(0x19d)]);const c=new RunInstancesCommand(b),d=await client[z(0x18e)](c);return d;}catch(f){Log[z(0x19e)](f);}}async['ec2terminateInstance'](a){const A=a128s;try{const b={'InstanceIds':[a[A(0x163)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x18e)](c);return d;}catch(f){return Log['error'](f),{};}}async[a128s(0x1d1)]({keyName:a,env:b}){const B=a128s,c=this[B(0x1ae)][B(0x155)](b),d=a128f[B(0x1a2)](c,'_keys',a+B(0x1c3));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x18e)](g),i=h[B(0x180)];if(i){await this['fsi'][B(0x164)]({'filePath':d,'data':i}),execSync(B(0x1ba)+d,{'stdio':B(0x1ca)});const j=this['fsi'][B(0x17d)](d);if(j)return Log[B(0x173)](B(0x1b7)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x193));}else throw new Error(B(0x1b2));}catch(k){Log['error'](k),process[B(0x18b)](0x1);}}async[a128s(0x15e)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':C(0x1a8),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x1ce)](C(0x16f)+a+C(0x16c)),await client['send'](d);}async[a128s(0x174)](a){const D=a128s;try{a[D(0x160)]===''&&(a[D(0x160)]=await Actions[D(0x1da)](D(0x170))||'Web\x20App');const b={'Description':a[D(0x160)],'GroupName':a['name'],'VpcId':a[D(0x184)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x18e)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[D(0x159)][D(0x1d2)](g=>{const E=D;this[E(0x15e)]({'port':parseInt(g),'groupId':f});}),Log[D(0x173)](D(0x18c)+f+'\x20NAME:\x20'+a[D(0x1b4)]);}catch(g){return Log[D(0x19e)](g),![];}return!![];}async[a128s(0x1c8)](a){const F=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0x18e)](d);if(!f)throw F(0x17a);const {KeyPairs:g}=f;g?(g?.[F(0x1d2)]((h,i)=>{const G=F;h[G(0x192)]&&b['push']({'id':i,'name':h[G(0x192)]});}),b[F(0x1b0)]>0x0&&b['forEach'](h=>{const H=F;h['name']===a?.['suggestion']?Log[H(0x173)](H(0x1d6)+h['id']+H(0x1c9)+h[H(0x1b4)]):Log[H(0x1ce)]('ID:\x20'+h['id']+H(0x1c9)+h[H(0x1b4)]);})):Log[F(0x19e)](F(0x199));}catch(h){Log[F(0x19e)](h);}return b;}async['deleteKeyPair'](a){const I=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[I(0x18e)](c);}catch(d){Log[I(0x19e)](d),process[I(0x18b)](0x1);}}async[a128s(0x18d)](){const J=a128s,a=[];try{const b={'Filters':[{'Name':J(0x17c),'Values':[J(0x1bc)]}]},c=new DescribeInstancesCommand(b),d=await client[J(0x18e)](c);d[J(0x1bb)]?.['forEach']((f,g)=>{const K=J;if(f?.[K(0x162)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0x162)][0x0],n=m?.[K(0x158)](({Key:o})=>o===K(0x1d4));a[K(0x1dc)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0x183)],'name':l,'env':n?.[K(0x1cd)]});}}),a[J(0x1b0)]>0x0?a[J(0x1d2)](f=>{const L=J,g=L(0x1d6)+f['id']+L(0x1c9)+f[L(0x1b4)]+L(0x167)+f[L(0x186)]+L(0x1c5)+f[L(0x1db)]+L(0x1be)+f[L(0x163)]+'\x20PUB_IP:\x20'+f[L(0x17f)]+L(0x18a)+f[L(0x16a)];if(f[L(0x1db)]===L(0x1af))Log['error'](g);else f[L(0x1db)]==='running'?Log[L(0x173)](g):Log[L(0x1ce)](g);}):Log[J(0x19e)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[J(0x19e)](f);}return a;}async['ec2rebootInstance'](a){const M=a128s;try{const b={'InstanceIds':[a[M(0x163)]]},c=new RebootInstancesCommand(b),d=await client[M(0x18e)](c);return d[M(0x1c0)]['httpStatusCode']===0xc8&&Log[M(0x173)](M(0x1ac)),d;}catch(f){Log[M(0x19e)](f);}}async[a128s(0x189)](){const N=a128s;let a='';Log[N(0x1ce)](N(0x182));const b=new DescribeVpcsCommand({}),c=await client[N(0x18e)](b),{Vpcs:d}=c,e=[];d&&d[N(0x1d2)]((g,h)=>{const O=N;g[O(0x1d0)]&&g[O(0x18f)]&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g[O(0x18f)]});});e[N(0x1d2)](function(g){const P=N;console['log']('ID:\x20'+g['id']+P(0x187)+g[P(0x184)]+P(0x171)+g[P(0x1a1)]);});const f=await Actions[N(0x1da)](N(0x16b))||0x0;e[N(0x1d2)](function(g){const Q=N;g['id']==f&&(a=g[Q(0x184)],Log[Q(0x173)](Q(0x1c2)+a+'\x0a'));});if(a==='')return Log[N(0x19e)](N(0x15d)),'';return a;}async['chooseInstance'](){const R=a128s,a=await this[R(0x18d)]();if(a[R(0x1b0)]===0x0)return Log[R(0x19e)](R(0x1a4)),null;const b=await Actions['ask'](R(0x1bd));!b&&(Log[R(0x19e)]('Invalid\x20choice'),process[R(0x18b)](0x0));const c=a[R(0x158)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x1ad)]({env:a}){const S=a128s,b=this[S(0x1ae)][S(0x15a)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask']('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[S(0x1d1)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](S(0x194),!![]);if(h)try{const i=a128e[S(0x1a3)](a128f[S(0x1a2)]('config',a,S(0x16e)),S(0x166)),j=JSON[S(0x17e)](i);j['pem']=a128f[S(0x1a2)]('_keys',f+S(0x1c3)),a128e[S(0x1cf)](a128f[S(0x1a2)](S(0x196),a,S(0x16e)),JSON['stringify'](j,null,0x2));}catch(k){Log['error'](k),Log[S(0x19e)](S(0x1cb));}}catch(l){Log[S(0x19e)](l),process[S(0x18b)](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x1a7)](a){const T=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0x18e)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const U=T;i[U(0x1a5)]&&i[U(0x1c4)]&&b[U(0x1dc)]({'id':j,'name':i[U(0x1a5)],'sgId':i[U(0x1c4)]});});let g='',h=0x0;return b[T(0x1d2)](function(i){const V=T;i[V(0x1b4)]===a&&(g=i[V(0x1b1)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const W=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0x18e)](c);}catch(d){Log[W(0x19e)](d),process[W(0x18b)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0x199))/0x1*(parseInt(k(0x1a1))/0x2)+-parseInt(k(0x198))/0x3+parseInt(k(0x19f))/0x4*(parseInt(k(0x197))/0x5)+-parseInt(k(0x1a4))/0x6+parseInt(k(0x19c))/0x7+-parseInt(k(0x19b))/0x8*(-parseInt(k(0x19a))/0x9)+-parseInt(k(0x1a0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xa23dd));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x196;var f=c[d];return f;},a129d(a,b);}function a129c(){var n=['199400UqRCXI','7472598cDVsEq','(((.+)+)+)+$','toString','4voeOiP','14650510vpivJp','2onLbcB','constructor','search','1688874ffLxpq','apply','5999930JARmBr','2536632YGJtcO','266290bLldki','261MkpTDj'];a129c=function(){return n;};return a129c();}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x196)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0x19e)]()[m(0x1a3)](m(0x19d))[m(0x19e)]()[m(0x1a2)](e)[m(0x1a3)](m(0x19d));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a130l=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(0x168))/0x1+-parseInt(j(0x15e))/0x2*(parseInt(j(0x15c))/0x3)+parseInt(j(0x162))/0x4+parseInt(j(0x174))/0x5+-parseInt(j(0x173))/0x6+-parseInt(j(0x161))/0x7*(parseInt(j(0x166))/0x8)+parseInt(j(0x16b))/0x9*(parseInt(j(0x16c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xc0d39));const a130b=(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;};}()),a130a=a130b(this,function(){const k=a130d;return a130a['toString']()[k(0x167)](k(0x169))['toString']()[k(0x16d)](a130a)['search'](k(0x169));});a130a();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-0x15c;let f=c[d];return f;},a130d(a,b);}export class Docker{static[a130l(0x171)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a130l;try{const f=[m(0x171),a,b+m(0x172)+c+m(0x16a)+d],g=m(0x165)+f[m(0x170)]('\x20'),h=execSync(g,{'stdio':m(0x164)})['toString']();return h;}catch(i){return Log[m(0x160)](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const n=a130l;try{const c=[n(0x16e),'--username',n(0x15d),n(0x15f),a+'.dkr.ecr.'+b+'.amazonaws.com'],d=n(0x165)+c[n(0x170)]('\x20'),f=execSync(d,{'stdio':n(0x164)})['toString']();return f;}catch(g){return Log[n(0x160)](g),'';}}static[a130l(0x163)]({awsAccountId:a,region:b,repoName:c}){const o=a130l;try{const d=['push',a+o(0x172)+b+o(0x16a)+c],f='docker\x20'+d[o(0x170)]('\x20'),g=execSync(f,{'stdio':'inherit'})[o(0x16f)]();return g;}catch(h){return Log[o(0x160)](h),'';}}}function a130c(){const p=['(((.+)+)+)+$','.amazonaws.com/','921555bCMDwg','60fjLPRy','constructor','login','toString','join','tag','.dkr.ecr.','3622566NozVUZ','1299010TcwzlS','27rVbwlo','AWS','10630JApgws','--password-stdin','error','2298520eMRjjT','2627584jZXKBo','pushImage','inherit','docker\x20','32MnGfOU','search','1223785fGsoJC'];a130c=function(){return p;};return a130c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a131d,c=a();while(!![]){try{var d
|
|
1
|
+
function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0xcb;var f=c[d];return f;},a131d(a,b);}(function(a,b){var f=a131d,c=a();while(!![]){try{var d=-parseInt(f(0xcb))/0x1+parseInt(f(0xd6))/0x2*(parseInt(f(0xd8))/0x3)+parseInt(f(0xd7))/0x4+-parseInt(f(0xd1))/0x5+-parseInt(f(0xd2))/0x6*(-parseInt(f(0xd3))/0x7)+-parseInt(f(0xcd))/0x8*(parseInt(f(0xd0))/0x9)+parseInt(f(0xd9))/0xa*(-parseInt(f(0xcf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x59451));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(0xcc)]()[g(0xd4)]('(((.+)+)+)+$')[g(0xcc)]()[g(0xce)](a131a)['search'](g(0xd5));});a131a();function a131c(){var h=['7GHVxCt','search','(((.+)+)+)+$','10dmIlgh','2571300vmUETc','113394BvjqEk','80mHQdKR','325833fDSLZH','toString','1623408DhzxyY','constructor','170456ctXmMg','18UXnEqc','1105180hrFOia','3663138jIDfms'];a131c=function(){return h;};return a131c();}export{};
|