@maka/maka-cli 4.7.27 → 4.7.29
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/README.md +18 -4
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/README.md +18 -4
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const 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-0x16a;let f=c[d];return f;},a116d(a,b);}const a116m=a116d;function a116c(){const p=['search','methods','toString','mdg:validated-method','fsi','template','maka\x20{generate,\x20g}:{method,\x20m}\x20name','27504OAWSLx','tsx','apply','resourceName','checkMeteorPackage','startup','maka:check','dir','5fgHsCT','41768CiegrJ','withValue','2230242uQsERS','method','166311FeKWMN','engines','8610uzwqrj','injectAtEndOfFile','method/method.js','appPathPrefix','import\x20\x27./methods','4149xBEDaQ','create','224tAhfrh','imports','index.','ddp-rate-limiter','(((.+)+)+)+$','1640248mmacNh','pathFromApp','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','-rpc-method.','getMakaProjectConfig','1135296gQfXhW'];a116c=function(){return p;};return a116c();}(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(0x184))/0x1+parseInt(j(0x173))/0x2+parseInt(j(0x188))/0x3+-parseInt(j(0x16e))/0x4+parseInt(j(0x183))/0x5*(-parseInt(j(0x186))/0x6)+-parseInt(j(0x191))/0x7*(-parseInt(j(0x17b))/0x8)+-parseInt(j(0x18f))/0x9*(-parseInt(j(0x18a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x4ad35));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a[l(0x176)]()[l(0x174)](l(0x16d))[l(0x176)]()['constructor'](a116a)['search'](l(0x16d));});a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a116m(0x190)]({'name':a116m(0x187),'aliases':['m'],'usage':a116m(0x17a),'checkWhere':!![],'shortDesc':a116m(0x170),'validOpts':[a116m(0x182)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a116m;try{const c=this['fsi'][n(0x172)]();await this[n(0x178)][n(0x185)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x17e)],'fileName':d,'className':pascalCase(b[o(0x17e)]),'camelCase':camelCase(b[o(0x17e)]),'noRename':!![]};let g='js';c['engines']['js']===o(0x17c)&&(g='ts');await this[o(0x178)][o(0x17f)]([o(0x181),o(0x16c),o(0x177)],{'shouldInstall':!![]}),await this[o(0x178)][o(0x179)]({'srcPath':o(0x18c),'destPath':this[o(0x178)][o(0x16f)]({'pathParts':['imports',o(0x180),b[o(0x18d)],o(0x175),b['dir'],d+o(0x171)+g]}),'context':f,'config':c});const h=b[o(0x182)]?'/'+b[o(0x182)]+'/':'/',i=this[o(0x178)][o(0x16f)]({'pathParts':[o(0x16a),o(0x180),b['appPathPrefix'],o(0x16b)+c[o(0x189)]['js']]});await this[o(0x178)][o(0x18b)]({'filePath':i,'content':o(0x18e)+h+d+'-rpc-method\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117n=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d
|
|
1
|
+
const a117n=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0x177))/0x1*(-parseInt(l(0x15c))/0x2)+-parseInt(l(0x159))/0x3+parseInt(l(0x172))/0x4*(parseInt(l(0x165))/0x5)+-parseInt(l(0x16b))/0x6+-parseInt(l(0x164))/0x7*(parseInt(l(0x176))/0x8)+-parseInt(l(0x154))/0x9+parseInt(l(0x17a))/0xa*(parseInt(l(0x163))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xe5dfe));function a117c(){const q=['search','fsi','withValue','10331040LobPht','getMakaProjectConfig','lib','(((.+)+)+)+$','packages','store','template/template.js','1964GgKxYZ','pathFromProject','pathFromAppWithNoReWrite','server','11528eUzckB','584323lszLyR','create','tests/client','1928020rAdVox','constructor','ssr','dir','template','package/package.js','/package.js','hasOwnProperty','component','package.js','7842726njItJL','/client/','pathFromApp','graphql','package/','659211BWvltc','resourceName','client','6VVTGWQ','tests/server','engines','maka\x20g:package\x20todos:package','theme','.js','toString','55SlnUMc','343xeTIpb','11285MvQDrr','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','relative'];a117c=function(){return q;};return a117c();}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 m=a117d;return a117a[m(0x162)]()[m(0x168)]('(((.+)+)+)+$')['toString']()[m(0x17b)](a117a)[m(0x168)](m(0x16e));});a117a();import a117e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x153;let f=c[d];return f;},a117d(a,b);}Generator[a117n(0x178)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a117n(0x166),'validOpts':[a117n(0x17d)],'examples':[a117n(0x15f)]},async function(a,b){const o=a117n,c=paramCase(b[o(0x15a)]),d=this['fsi'][o(0x156)]({'pathParts':[o(0x16f),b['dir'],c]}),e=this[o(0x169)][o(0x174)]({'pathParts':[o(0x16f),b[o(0x17d)],c,o(0x153)]}),f=this[o(0x169)][o(0x16c)]();await this[o(0x169)][o(0x16a)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x15a)]),'myPath':a117e[p(0x167)](this[p(0x169)][p(0x173)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[p(0x15a)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[p(0x15e)][p(0x15b)],'graphql':f[p(0x15e)][p(0x157)],'ssr':f[p(0x15e)][p(0x17c)],'isComponent':b[p(0x181)](p(0x182)),'isLayout':b['hasOwnProperty']('layout'),'isStore':b[p(0x181)](p(0x170)),'features':f['features'],'noRename':!![],'theme':f[p(0x15e)][p(0x160)]};await this[p(0x169)][p(0x17e)]({'srcPath':p(0x17f),'destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+p(0x155)+c+p(0x161);await this[p(0x169)]['template']({'srcPath':p(0x171),'destPath':h,'context':g,'config':f});const i=[p(0x16d),p(0x175),p(0x179),p(0x15d)];for(const j of i){const k=d+'/'+j+'/'+c+p(0x161);await this[p(0x169)][p(0x17e)]({'srcPath':p(0x158)+j+p(0x180),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(0x112))/0x1*(parseInt(j(0x106))/0x2)+parseInt(j(0x14b))/0x3+parseInt(j(0x108))/0x4*(parseInt(j(0x117))/0x5)+parseInt(j(0x10c))/0x6*(-parseInt(j(0x10d))/0x7)+-parseInt(j(0x118))/0x8*(parseInt(j(0x134))/0x9)+-parseInt(j(0x12e))/0xa+parseInt(j(0x127))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x80578));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0x139)]()[l(0x13d)](l(0x13c))[l(0x139)]()[l(0x141)](a118a)[l(0x13d)](l(0x13c));});function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x105;let f=c[d];return f;},a118d(a,b);}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';function a118c(){const p=['import\x20\x27./','pathFromApp','test/test.js','ssr','apply','7646470LSsmcV','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','checkNpmPackage','vanilla','true','react','9fiDgXt','resourceName','layouts','api','test','toString','maka\x20g:page\x20todos/todos-item','html','(((.+)+)+)+$','search','.js','features','hooks','constructor','client','/imports/ui/','string','dir','css','engines','layout','store','installNpmPackage','2853516fNZyAz','component/component.js','.app-tests.js','147998ppibUp','pathFromProject','2552RyEuQX','\x27;\x0a','baseDir','none','5781474XRQZdk','7VRxrGN','withHook','relative','template','withValue','3llowXe','hasOwnProperty','Updating\x20npm\x20packages\x20...','template/template.html','injectTemplateModule','4915jiqVya','5866576fybkcV','component','fsi','ramda','create','Generate\x20a\x20page.','processAndRunGenerator','setTemplate','root','getMakaProjectConfig','injectAtBeginningOfFile','graphql','/imports/ui/pages','fileName','.html','13056043MhxcOd','className'];a118c=function(){return p;};return a118c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a118m(0x11c)]({'name':'page','aliases':aliases,'usage':a118m(0x12f),'shortDesc':a118m(0x11d),'validOpts':[{'name':a118m(0x10a),'values':[a118m(0x140),'components','pages',a118m(0x136)]},{'name':'withHook','boolFlag':!![]}],'examples':[a118m(0x13a)]},async function(a,b){const n=a118m,c=b['baseDir']?n(0x143)+b[n(0x10a)]:n(0x124),d=this[n(0x11a)][n(0x12a)](b),e=this[n(0x11a)][n(0x12a)]({'pathParts':[c,b['dir'],paramCase(b[n(0x135)]),paramCase(b[n(0x135)])]}),f=this[n(0x11a)][n(0x121)]();let g='';return await this[n(0x11a)][n(0x111)](f,async()=>{const o=n;typeof f[o(0x110)][o(0x13b)]===o(0x144)&&(f[o(0x110)][o(0x13b)]=f[o(0x110)][o(0x13b)]===o(0x132)?!![]:![],this[o(0x11a)][o(0x11f)](o(0x13b),f[o(0x110)][o(0x13b)]));typeof f[o(0x110)][o(0x138)]===o(0x144)&&(f[o(0x110)][o(0x138)]=f[o(0x110)][o(0x138)]===o(0x132)?!![]:![],this['fsi'][o(0x11f)]('test',f[o(0x110)][o(0x138)]));typeof f[o(0x110)][o(0x146)]==='string'&&(f[o(0x110)][o(0x146)]=f[o(0x110)]['css']===o(0x132)?!![]:![],this[o(0x11a)]['setTemplate']('css',f['template'][o(0x146)]));typeof f[o(0x110)]['js']==='string'&&(f[o(0x110)]['js']=f['template']['js']===o(0x132)?!![]:![],this[o(0x11a)][o(0x11f)]('js',f[o(0x110)]['js']));!f[o(0x13f)]&&(f['features']={});!b['root']&&!this[o(0x11a)][o(0x130)](o(0x11b))&&(Log['warn'](o(0x114)),this[o(0x11a)][o(0x14a)](o(0x11b),{'cwd':d}));const h={'name':pascalCase(b[o(0x135)]),'myPath':a118e[o(0x10f)](this['fsi'][o(0x107)]({}),e),'cssCaseName':paramCase(b[o(0x135)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[o(0x135)]),'fileName':paramCase(b[o(0x135)]),'graphql':f[o(0x147)][o(0x123)],'features':f[o(0x13f)],'client':f[o(0x147)]['client'],'api':f['engines'][o(0x137)],'ssr':f[o(0x147)][o(0x12c)],'isStore':b[o(0x113)](o(0x149)),'isComponent':b[o(0x113)](o(0x119)),'isLayout':b[o(0x113)](o(0x148)),'withTranslations':f[o(0x13f)]['withTranslations'],'test':f[o(0x147)][o(0x138)],'theme':f[o(0x147)]['theme']};f[o(0x110)][o(0x13b)]&&await this['fsi'][o(0x110)]({'srcPath':o(0x115),'destPath':e+o(0x126),'context':h,'config':f});f[o(0x13f)]?.['withHooks']||b[o(0x10e)]?await this[o(0x11a)][o(0x110)]({'srcPath':'hook/hook.js','destPath':e+'.js','framework':o(0x133),'context':h,'config':f}):await this[o(0x11a)][o(0x110)]({'srcPath':o(0x14c),'destPath':e+o(0x13e),'framework':o(0x133),'context':h,'config':f});f[o(0x147)][o(0x138)]!==o(0x10b)&&await this[o(0x11a)][o(0x110)]({'srcPath':o(0x12b),'destPath':e+o(0x105),'framework':o(0x133),'context':h,'config':f});f[o(0x110)]['css']&&await this['fsi']['template']({'srcPath':'template/template.css','destPath':e+'.css','context':Object['assign']({},h,{'className':paramCase(b[o(0x135)])}),'config':f});f[o(0x147)]['client']!=='react'&&f[o(0x147)][o(0x142)]!==o(0x131)?(f[o(0x110)][o(0x146)]&&await this[o(0x11a)][o(0x122)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x129)+h[o(0x125)]+'.'+f[o(0x147)][o(0x13b)]+o(0x109)+o(0x129)+h[o(0x125)]+'.'+f[o(0x147)][o(0x146)]+'\x27;'}),!f['template'][o(0x146)]&&await this[o(0x11a)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x147)]['js'],'content':o(0x129)+h['fileName']+'.'+f['engines'][o(0x13b)]+'\x27;'})):f[o(0x110)][o(0x146)]&&await this[o(0x11a)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':o(0x129)+h[o(0x125)]+'.'+f['engines'][o(0x146)]+'\x27;'});const i=b[o(0x145)]?'/'+b[o(0x145)]+'/':'/';g=''+c+i+h[o(0x125)]+'/'+h[o(0x125)],await this[o(0x11a)][o(0x116)](h[o(0x128)],f,g),!b[o(0x120)]&&await a118f[o(0x11e)]('route',[i+h[o(0x128)]],b);}),g+'.'+f[n(0x147)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119k=a119d;
|
|
1
|
+
const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(0x128))/0x1*(-parseInt(h(0x120))/0x2)+parseInt(h(0x114))/0x3+-parseInt(h(0x127))/0x4+parseInt(h(0x117))/0x5+-parseInt(h(0x119))/0x6+parseInt(h(0x118))/0x7+parseInt(h(0x121))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xa8e5e));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a119d;if(c){const e=c[i(0x123)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const j=a119d;return a119a[j(0x126)]()['search']('(((.+)+)+)+$')['toString']()[j(0x124)](a119a)['search'](j(0x115));});a119a();function a119c(){const n=['328223LPKFLN','2165748HHxKNc','injectAtEndOfFile','publish/publish.','withValue','getMakaProjectConfig','rewriteDestinationPathForEngine','create','4uzBWxd','10568600uCDVvY','server/publish.','apply','constructor','fsi','toString','956848hQjrSN','509074VTaZBD','resourceName','engines','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','151857ZvaJEc','(((.+)+)+)+$','publish','4457705wJSjjZ'];a119c=function(){return n;};return a119c();}import{paramCase}from'change-case';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x112;let f=c[d];return f;},a119d(a,b);}import{Generator}from'../generator.js';Generator[a119k(0x11f)]({'name':a119k(0x116),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a119k(0x113),'validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const l=a119k,c=this[l(0x125)][l(0x11d)]();await this[l(0x125)][l(0x11c)](c,async()=>{const m=l,d={'name':b[m(0x129)],'collection':paramCase(b[m(0x129)]),'noRename':!![]};let e='js';c[m(0x112)]['js']==='tsx'&&(e='ts');const f=this[m(0x125)][m(0x11e)]({'pathParts':[m(0x122)+c[m(0x112)]['js']]}),g=this[m(0x125)]['templateContent']({'srcPath':m(0x11b)+e,'context':d,'config':c});await this['fsi'][m(0x11a)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120B=a120d;
|
|
1
|
+
const a120B=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(0x12e))/0x1*(-parseInt(y(0x14e))/0x2)+parseInt(y(0x146))/0x3+-parseInt(y(0x14b))/0x4+parseInt(y(0x142))/0x5+parseInt(y(0x16f))/0x6+-parseInt(y(0x126))/0x7*(-parseInt(y(0x164))/0x8)+-parseInt(y(0x172))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x3a2c3));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a120d;if(c){const e=c[z(0x153)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const A=a120d;return a120a[A(0x16a)]()[A(0x130)]('(((.+)+)+)+$')[A(0x16a)]()[A(0x154)](a120a)[A(0x130)](A(0x12f));});function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x121;let f=c[d];return f;},a120d(a,b);}a120a();import a120e from'path';function a120c(){const K=['maka\x20g:route\x20todosEdit\x20todos/:id/edit','startup','apply','constructor','join','fileContainsString','includes','vanilla','dir','route/route.js','routes.js','const\x20publicRoutes\x20=\x20(<>','filter','url','layout','withValue','Scaffolding\x20for\x20a\x20Route.','info','const\x20privateRoutes\x20=\x20(<>','40oSNYHh','error','react','Invalid\x20directory\x20option\x20\x22','\x20already\x20exists.\x20\x20Skipping.','layouts','toString','map','maka\x20g:route\x20todosIndex\x20todos','withTranslations','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','2004972PfXNvg','engines','baseDir','6970275BDtqEE','readFileLines','rewriteDestinationPathForEngine','only','private','client','176631ialiPT','ssr','\x22*\x22','indexOf','Valid\x20options\x20are:\x20','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','create','route','20584sAaTkB','(((.+)+)+)+$','search','injectAfterLineNumber','Adding\x20route\x20','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','pathFromProject','<Route','injectIntoFile','length','fsi','imports','getMakaProjectConfig','warn','Route\x20','root','hooks','injectAtEndOfFile','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','lib','1880475iPzxMR','true','maka\x20g:route\x20pages/lists/listIndex\x20lists','/imports/ui/','707796aJzUvh','pathFromApp','newForm','maka\x20g:route\x20pages/about','PrivateLayout','1473456XsYBCS','templateContent','withHook','30RNsNfx','\x0a\x09\x09','<Router'];a120c=function(){return K;};return a120c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a120B(0x12c)]({'name':a120B(0x12d),'aliases':aliases,'validOpts':[a120B(0x124),a120B(0x15f),a120B(0x123),'cwd','config',a120B(0x13d),a120B(0x14d),a120B(0x15e),a120B(0x171)],'usage':a120B(0x12b),'shortDesc':a120B(0x161),'examples':[a120B(0x16c),a120B(0x151),a120B(0x140),a120B(0x144),a120B(0x149)]},async function(a,b){const C=a120B;try{const c=[C(0x13e),'components','pages',C(0x169)];if(b[C(0x171)]&&!c[C(0x157)](b[C(0x171)])){Log[C(0x165)](C(0x167)+b['baseDir']+'\x22'),Log[C(0x165)](C(0x12a)+c['join'](',\x20'));throw new UsageError();}const d=this[C(0x138)][C(0x13a)]();await this[C(0x138)][C(0x160)](d,async()=>{const D=C,f=b[D(0x124)]??![];let g=paramCase(b['resourceName']),h='/'+g;a[D(0x137)]>0x1&&(h='/'+a[D(0x15d)](function(n){return n!=='/';})[D(0x155)]('/')['toLowerCase']());g=camelCase(g);b[D(0x15f)]&&(b[D(0x15f)]=camelCase(b[D(0x15f)]));const i=b[D(0x171)]?D(0x145)+b[D(0x171)]:'/imports/ui/pages',j=a120e[D(0x155)](i,b[D(0x159)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x15f)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[D(0x170)][D(0x125)],'newForm':![],'withTranslations':d['features'][D(0x16d)]};f&&(k[D(0x15f)]=D(0x14a));let l,m;if(d['engines'][D(0x125)]===D(0x166)){if(d[D(0x170)][D(0x127)]===D(0x143)){const r=this[D(0x138)]['pathFromApp']({'pathParts':[D(0x139),D(0x152),D(0x141),D(0x15b)]});l=this[D(0x138)][D(0x122)]({'pathParts':[r],'config':d});}else{const s=this[D(0x138)][D(0x147)]({'pathParts':['imports',D(0x152),D(0x125),D(0x15b)]});l=this[D(0x138)][D(0x122)]({'pathParts':[s],'config':d});}const n=await this[D(0x138)][D(0x156)](l,g);if(n){Log[D(0x13b)](D(0x13c)+g+D(0x168));return;}else{const t=this[D(0x138)][D(0x134)](l);Log[D(0x162)](D(0x132)+g+'\x20to\x20'+l['replace'](t,''));}const o=this['fsi'][D(0x121)](l)[D(0x16b)]((u,v)=>{const E=D;return u[E(0x157)](E(0x16e))?v+0x1:null;})[D(0x15d)](u=>u!==null);let p=this[D(0x138)]['readFileLines'](l)[D(0x16b)]((u,v)=>{const F=D;return u[F(0x157)](F(0x15c))?v+0x1:null;})[D(0x15d)](u=>u!==null),q=this[D(0x138)]['readFileLines'](l)[D(0x16b)]((u,v)=>{const G=D;return u[G(0x157)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x15d)](u=>u!==null);p['length']>0x0&&q[D(0x137)]>0x0&&(k[D(0x148)]=!![]);m=this[D(0x138)][D(0x14c)]({'srcPath':D(0x15a),'framework':D(0x166),'context':k,'config':d});if(p[D(0x137)]>0x0||q[D(0x137)]>0x0){this['fsi'][D(0x131)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0x138)][D(0x121)](l)['map']((u,v)=>{const H=D;return u[H(0x157)](H(0x163))?v+0x1:null;})['filter'](u=>u!==null),this[D(0x138)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[D(0x137)]>0x0?(p=this['fsi']['readFileLines'](l)[D(0x16b)]((u,v)=>{const I=D;return u[I(0x157)](I(0x15c))?v+0x1:null;})['filter'](u=>u!==null),this[D(0x138)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log[D(0x13b)](D(0x133)+l);}else{const u=this[D(0x138)][D(0x121)](l)['map'](x=>{const J=D;return x[J(0x157)](J(0x128));}),v=u[D(0x129)](!![])>-0x1,w=v?D(0x135):'</Router>';await this[D(0x138)][D(0x136)]({'filePath':l,'content':'\x0a\x09\x09'+m+D(0x14f),'begin':D(0x150),'end':w});}}else{if(d[D(0x170)][D(0x125)]===D(0x158)){const x=this['fsi'][D(0x147)]({'pathParts':[D(0x139),'startup',D(0x125),D(0x15b)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[x],'config':d}),m=this['fsi'][D(0x14c)]({'srcPath':'route/route.js','context':k}),await this[D(0x138)][D(0x13f)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x165)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121m=a121d;
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0xe1))/0x1+parseInt(j(0xd1))/0x2*(-parseInt(j(0xcc))/0x3)+parseInt(j(0xe7))/0x4*(-parseInt(j(0xc9))/0x5)+parseInt(j(0xdc))/0x6*(parseInt(j(0xdb))/0x7)+parseInt(j(0xef))/0x8*(-parseInt(j(0xe0))/0x9)+-parseInt(j(0xed))/0xa+-parseInt(j(0xd4))/0xb*(-parseInt(j(0xd6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x27758));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a['toString']()[l(0xee)](l(0xda))['toString']()[l(0xe2)](a121a)[l(0xee)]('(((.+)+)+)+$');});a121a();import{camelCase,paramCase,pascalCase}from'change-case';function a121c(){const p=['28xcNekr','template','engines','473ERVVYr','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','178008prGQLI','installNpmPackage','imports','resourceName','(((.+)+)+)+$','14UoOwmk','808758ITLHKA','svc','checkNpmPackage','getMakaProjectConfig','36063CPSnMd','226703qfFXIX','constructor','withValue','services','lib','create','68mjOYss','tsx','service','winston','type','logger','2635800EYTrNf','search','576tObWYJ','fsi','maka\x20g:svc\x20service-logger\x20--type=logger','65535qoNwRr','pathFromApp','startup','42348YBnEEd','Installing\x20winston','apply','maka\x20{generate,\x20g}:{service}\x20<resource-name>','error'];a121c=function(){return p;};return a121c();}import{Generator}from'../generator.js';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0xc9;let f=c[d];return f;},a121d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a121m(0xe6)]({'name':a121m(0xe9),'aliases':[a121m(0xdd)],'usage':a121m(0xcf),'shortDesc':a121m(0xd5),'requiredOpts':[{'name':'type','values':[a121m(0xec)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121m(0xf1)]},async function(a,b){const n=a121m;try{const c=this['fsi'][n(0xdf)]();await this[n(0xf0)][n(0xe3)](c,async()=>{const o=n,d=this['fsi'][o(0xca)]({}),f=paramCase(b[o(0xd9)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0xd9)]),'type':b['type'],'engine':c[o(0xd3)]['js'],'noRename':!![]};let h='js';c[o(0xd3)]['js']===o(0xe8)&&(h='ts');if(b[o(0xeb)]===o(0xec)){!this[o(0xf0)][o(0xde)](o(0xea))&&await this[o(0xf0)][o(0xd7)]('winston\x20setimmediate',{'cwd':d,'msg':o(0xcd)});const i=this[o(0xf0)][o(0xca)]({'pathParts':[o(0xd8),o(0xcb),o(0xe5),o(0xe4),f+'.'+h]});await this[o(0xf0)][o(0xd2)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xd0)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a122c(){var i=['
|
|
1
|
+
function a122c(){var i=['toString','apply','13518tSTKRr','2490MavqLp','search','constructor','2552949ErklmK','797945ckYMah','4904330nmaDVh','901492ADxHLW','3KhCZHE','8xdONiJ','4005816PwQCiY','6643525RPNyUV','(((.+)+)+)+$'];a122c=function(){return i;};return a122c();}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0x1fe))/0x1+-parseInt(f(0x200))/0x2+-parseInt(f(0x201))/0x3*(-parseInt(f(0x1f4))/0x4)+parseInt(f(0x1fa))/0x5*(parseInt(f(0x1f9))/0x6)+parseInt(f(0x1f5))/0x7*(-parseInt(f(0x1f3))/0x8)+parseInt(f(0x1fd))/0x9+parseInt(f(0x1ff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xaad80));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x1f7)]()[h(0x1fb)](h(0x1f6))[h(0x1f7)]()[h(0x1fc)](a122a)[h(0x1fb)](h(0x1f6));});a122a();function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1f3;var f=c[d];return f;},a122d(a,b);}import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d
|
|
1
|
+
const a123l=a123d;function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a123d(a,b);}(function(a,b){const i=a123d,c=a();while(!![]){try{const d=-parseInt(i(0x1ac))/0x1*(-parseInt(i(0x1a3))/0x2)+-parseInt(i(0x1b7))/0x3*(parseInt(i(0x1ba))/0x4)+parseInt(i(0x1a6))/0x5+-parseInt(i(0x1ad))/0x6*(-parseInt(i(0x1bc))/0x7)+parseInt(i(0x1a8))/0x8*(parseInt(i(0x1a2))/0x9)+parseInt(i(0x1b2))/0xa*(parseInt(i(0x1aa))/0xb)+-parseInt(i(0x1b8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xe1f55));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a[k(0x1b0)]()['search']('(((.+)+)+)+$')['toString']()[k(0x1b3)](a123a)[k(0x1be)]('(((.+)+)+)+$');});a123a();function a123c(){const o=['_keys','create','7638305BRSCYR','maka\x20g:sslconfig\x20--env\x20dev','1160IxObgk','getGlobalConfig','726njwisU','getMakaProjectConfig','11525wgqFYV','184692KaKYXl','Generate\x20a\x20new\x20openssl\x20config\x20file','maka\x20{generate,\x20g}:sslconfig','toString','apply','63260icDqOf','constructor','openssl/openssl.conf','appName','withValue','111RSdkNN','64775064AeyZRK','template','35372ayHxAg','sslconfig','371eFmYeV','service','search','fsi','openssl.conf','112113HiQyoS','220LQIWcf'];a123c=function(){return o;};return a123c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a123e from'path';Generator[a123l(0x1a5)]({'name':a123l(0x1bb),'usage':a123l(0x1af),'shortDesc':a123l(0x1ae),'noNeedResource':!![],'requiredOpts':['env'],'examples':[a123l(0x1a7)],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0x1bf)][m(0x1ab)](),d=await this[m(0x1bf)][m(0x1a9)](),f=this[m(0x1bf)]['getAppConfigPath'](b['env']),g=a123e['join'](f,m(0x1a4),m(0x1c0));await this['fsi'][m(0x1b6)](c,async()=>{const n=m,h={'app':d[n(0x1b5)],'noRename':!![]};await this[n(0x1bf)][n(0x1b9)]({'srcPath':n(0x1b4),'destPath':g,'framework':n(0x1bd),'context':h,'config':c});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124A=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=-parseInt(x(
|
|
1
|
+
const a124A=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=-parseInt(x(0x17b))/0x1+-parseInt(x(0x18e))/0x2*(parseInt(x(0x181))/0x3)+-parseInt(x(0x18d))/0x4*(-parseInt(x(0x188))/0x5)+-parseInt(x(0x1a3))/0x6+-parseInt(x(0x196))/0x7*(parseInt(x(0x185))/0x8)+-parseInt(x(0x191))/0x9+parseInt(x(0x1b3))/0xa*(parseInt(x(0x1b2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x68a53));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a124d;if(c){const e=c[y(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const z=a124d;return a124a[z(0x1aa)]()['search'](z(0x1a4))[z(0x1aa)]()[z(0x195)](a124a)[z(0x176)](z(0x1a4));});function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x174;let f=c[d];return f;},a124d(a,b);}a124a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a124e from'fs';Generator[a124A(0x17a)]({'name':a124A(0x1ad),'usage':a124A(0x174),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124A(0x1a1),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','examples':[a124A(0x192),a124A(0x18c),a124A(0x1b0)],'validOpts':[]},async function(a,b){const B=a124A;try{const c=this[B(0x186)][B(0x1a0)](),d=this[B(0x186)]['getGlobalConfig'](),f=this[B(0x186)][B(0x1a9)]();await this[B(0x186)]['withValue'](c,async()=>{const C=B;try{!b['lang']&&(b[C(0x1a1)]='en');!b[C(0x197)]&&!this[C(0x186)][C(0x19a)]('i18next')&&(Log[C(0x19e)](C(0x178)),this[C(0x186)][C(0x18a)](C(0x1ae),{'cwd':f}),this['fsi']['setProjectConfig'](C(0x198),!![]));const g=this[C(0x186)]['pathFromApp']({'pathParts':[C(0x193),'startup','client',C(0x182)]}),h=this[C(0x186)][C(0x179)]({'pathParts':[g],'config':c}),i=this[C(0x186)][C(0x1ac)](a124e[C(0x199)](h)[C(0x1aa)](),C(0x18f))[0x0]&&!![];if(c[C(0x19d)][C(0x184)]===C(0x19f)){!i&&this[C(0x186)][C(0x17d)]({'filePath':h,'content':C(0x1b1)});const t=this[C(0x186)][C(0x1a7)]({'pathParts':['imports',C(0x1a8),C(0x1a5),C(0x182)]}),u=this['fsi'][C(0x179)]({'pathParts':[t],'config':c}),v=this[C(0x186)]['grep'](a124e['readFileSync'](u)[C(0x1aa)](),C(0x18f))[0x0]&&!![];!v&&this['fsi'][C(0x17d)]({'filePath':u,'content':C(0x1b1)});}else!i&&this[C(0x186)][C(0x17d)]({'filePath':h,'content':C(0x1b1)});const j={'app':d[C(0x177)],'config':c},k=this[C(0x186)][C(0x1a7)]({'pathParts':['imports',C(0x1a8),C(0x183),C(0x19c),C(0x1a2),C(0x190)]}),l=this[C(0x186)]['isFile'](this[C(0x186)][C(0x179)]({'pathParts':[k],'config':c}));!l&&await this[C(0x186)][C(0x17e)]({'srcPath':C(0x19b),'destPath':k,'framework':C(0x18b),'context':j,'config':c});const m=this[C(0x186)][C(0x1a7)]({'pathParts':['imports',C(0x1a8),C(0x183),C(0x19c),'translations',C(0x189),b['lang']+C(0x1a6)]}),n=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0x186)][C(0x17f)](n);!o?await this[C(0x186)][C(0x17e)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0x18b),'context':j,'config':c}):Log[C(0x19e)](C(0x187)+n);const p=this['fsi'][C(0x1a7)]({'pathParts':['imports','startup',C(0x183),C(0x19c),C(0x1a2),'locales',C(0x175)+c['engines']['js']]}),q=this[C(0x186)][C(0x179)]({'pathParts':[p],'config':c}),r=this['fsi']['isFile'](q);!r&&await this[C(0x186)][C(0x17e)]({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x186)]['grep'](a124e['readFileSync'](p)[C(0x1aa)](),'default\x20as\x20'+b['lang'])[0x0]&&!![];!s?await this[C(0x186)]['injectAtEndOfFile']({'filePath':p,'content':C(0x17c)+b[C(0x1a1)]+C(0x1ab)+b[C(0x1a1)]+'\x27;'}):Log[C(0x19e)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0x180)](w),process[C(0x1af)](0x1);}});}catch(g){Log[B(0x180)](g),process['exit'](0x1);}});function a124c(){const D=['readFileSync','checkNpmPackage','i18n/i18n.js','services','engines','warn','true','getMakaProjectConfig','lang','translations','1387800qHsrxM','(((.+)+)+)+$','server','.js','pathFromApp','startup','findAppDirectory','toString','\x20}\x20from\x20\x27./','grep','translation','i18next\x20i18next-browser-languagedetector\x20react-i18next','exit','maka\x20g:translation\x20--lang=de','import\x20\x27../lib/services/translations/i18n\x27;\x0a','210100aaocwe','1480lKCIPL','maka\x20{generate,\x20g}:translation','index.','search','appName','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','rewriteDestinationPathForEngine','create','760824usHExY','export\x20{\x20default\x20as\x20','injectAtBeginningOfFile','template','isFile','error','2181DnkPdM','index.js','lib','ssr','14264fsFlWQ','fsi','Locale\x20already\x20defined:\x20','1320DYxxSq','locales','installNpmPackage','service','maka\x20g:translation\x20--lang=fr','6172hiAJOF','1142qxeNrc','import\x20\x27../lib/services/translations/i18n\x27;','i18n.js','5588064lVxAfx','maka\x20g:translation\x20--lang=en\x20(default)','imports','apply','constructor','3052SLVxQP','root','features.withTranslations'];a124c=function(){return D;};return a124c();}
|
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=parseInt(j(
|
|
1
|
+
const a125m=a125d;function a125c(){const n=['dirname','MAKA_COMMAND_PATH','(((.+)+)+)+$','parse','run','20vmplkJ','search','BROWSERSLIST_IGNORE_OLD_DATA','NODE_NO_WARNINGS','TOOL_NODE_FLAGS','floor','slice','2963dXZvoV','env','689252mwWqaA','879651xCpsvU','1206vyoWdE','44RaCbNc','toString','130626aeDcEQ','9955970KlhgSj','constructor','241094xwTWQS','totalmem','argv','apply','20512ZtttQJ'];a125c=function(){return n;};return a125c();}(function(a,b){const j=a125d,c=a();while(!![]){try{const d=parseInt(j(0x1f2))/0x1*(-parseInt(j(0x1f7))/0x2)+-parseInt(j(0x1f5))/0x3+-parseInt(j(0x1f4))/0x4+-parseInt(j(0x1eb))/0x5*(-parseInt(j(0x1f9))/0x6)+-parseInt(j(0x1fc))/0x7+parseInt(j(0x200))/0x8*(-parseInt(j(0x1f6))/0x9)+parseInt(j(0x1fa))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x2a77b));function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a125d(a,b);}const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x1ff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x1f8)]()[l(0x1ec)](l(0x1e8))[l(0x1f8)]()[l(0x1fb)](a125a)[l(0x1ec)](l(0x1e8));});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(0x201)](__filename);global[a125m(0x1e7)]=__dirname;const total_memory=a125f[a125m(0x1fd)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0x1f0)](total_mem_in_mb),process[a125m(0x1f3)][a125m(0x1ef)]='--max-old-space-size='+total_mem_in_mb,process[a125m(0x1f3)][a125m(0x1ed)]='1',process['env'][a125m(0x1ee)]='1';const argv=a125e(process[a125m(0x1fe)][a125m(0x1f1)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x1e9)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a125h['camelizeKeys'](deepCopyArgv);a125i[a125m(0x1ea)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a126K=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0x17e))/0x1+parseInt(I(0x198))/0x2*(-parseInt(I(0x182))/0x3)+parseInt(I(0x178))/0x4*(parseInt(I(0x18f))/0x5)+-parseInt(I(0x19c))/0x6*(-parseInt(I(0x15d))/0x7)+-parseInt(I(0x19f))/0x8*(parseInt(I(0x161))/0x9)+-parseInt(I(0x158))/0xa+parseInt(I(0x166))/0xb*(parseInt(I(0x17f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xe3975));function a126c(){const a1=['963OblpHJ','formatToNamedParam','AppData','proGenerators','_handler','3618164CWPdXd','examples','string','toString','env','exit','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','\x20installed\x20to\x20use\x20this\x20command.','assign','None','Invalid\x20argument:\x20','config','disableAuthCheck','domainLicense','remapShortToLong','list','fsi','No\x20usage\x20provided.','111516cSBLiz','error','root','cwd','To\x20use\x20this\x20generator,\x20\x22','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','429852RztVwG','84tDYvnZ','docker','join','111suPNjX','usage','win32','parent','name','roles','validateParams','Invalid\x20value\x20for\x20','.meteor','isCommand','options','find','getAppProjectConfigs','200dzmGcF','homedir','(((.+)+)+)+$','aliases','resourceName','existsSync','validateEngines','findProjectDirectory','Please\x20choose\x20an\x20environment','53614ONXakW','keys','validateMeteorInstall','Local','114ULlUDk','getShortName','Please\x20provide\x20a\x20value\x20for\x20','84616IbWXCW','engines','includes','push','To\x20use\x20this\x20command,\x20\x22','indexOf','Please\x20choose\x20a\x20valid\x20value\x20for\x20','length','ask','singleLicense','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','concat','isGenerator','Please\x20provide\x20a\x20resource\x20name:','13913660WBDfij','proCommands','validateMakaProject','search','No\x20description\x20provided.','220941hsJGNg','platform','shortDesc','match'];a126c=function(){return a1;};return a126c();}const a126b=(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;};}()),a126a=a126b(this,function(){const J=a126d;return a126a['toString']()[J(0x15b)](J(0x191))[J(0x169)]()['constructor'](a126a)['search'](J(0x191));});a126a();import a126e from'path';import a126f from'os';import a126g from'fs';const homeDir=a126f[a126K(0x190)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x14b;let f=c[d];return f;},a126d(a,b);}export class Tool{[a126K(0x180)];[a126K(0x176)];[a126K(0x18c)];['name'];[a126K(0x185)];[a126K(0x165)];constructor(){const L=a126K;this['docker']=new Docker(),this[L(0x176)]=new FSI();}[a126K(0x19d)](a){return a['charAt'](0x0);}[a126K(0x174)](a,b){const M=a126K,c=this[M(0x162)](b),d={...a};for(const e of c){const f=this[M(0x19d)](e[M(0x186)]);a[f]&&(d[e[M(0x186)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const N=a126K;if(a['every'](b=>typeof b===N(0x168)))return a['map'](b=>({'name':b}));return a;}[a126K(0x160)](a){const O=a126K,b=[this[O(0x186)]][O(0x155)](this[O(0x18c)][O(0x192)]||[]);return this[O(0x185)]&&b[O(0x14d)](this['parent']),b[O(0x14c)](a);}[a126K(0x15a)](){const P=a126K,a=this[P(0x176)][P(0x196)]();return a!==![]?!![]:![];}[a126K(0x19a)](){const Q=a126K;let a=a126e[Q(0x181)](homeDir,Q(0x18a));const b=process[Q(0x15e)]===Q(0x184);if(b){a=a126e['join'](homeDir,Q(0x163),Q(0x19b),'.meteor');if(!a126g[Q(0x194)](a))return![];}else{if(!a126g[Q(0x194)](a))return![];}return!![];}[a126K(0x195)](a){const R=a126K,b=this['fsi']['getMakaProjectConfig'](),c=b[R(0x14b)],d=Object[R(0x199)](a);if(d[R(0x151)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[R(0x179)]('You\x20must\x20have\x20'+e+'\x20version\x20'+a[e]+R(0x16d));throw UsageError;}}}async[a126K(0x188)](a,b,c){const S=a126K,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[S(0x199)](b);if(h[S(0x14c)]('resourceName')&&b['resourceName']===undefined&&!g){const m=await Actions['ask'](S(0x157));b[S(0x193)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this['remapShortToLong'](b,i);if(i&&i?.[S(0x151)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[S(0x199)](j)['includes'](o)){if(o===S(0x16a)){const r=this['fsi'][S(0x18e)](),s=await Actions[S(0x18c)]({'type':S(0x175),'name':'env','message':S(0x197),'choices':r});b[S(0x16a)]=s[S(0x16a)];}else{const t=p;if(t){const u=await Actions[S(0x18c)]({'type':'list','name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[S(0x152)](S(0x19e)+o);if(v[S(0x160)](q))b[o]=v;else{Log[S(0x179)](S(0x189)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](S(0x19e)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[S(0x14c)](x)){Log[S(0x179)](S(0x189)+o+':\x20'+x);throw new UsageError();}}}}let k=this[S(0x162)](f),l=b;if(k&&Object[S(0x199)](k)?.[S(0x151)]>0x0){k=k[S(0x155)](i||[]),k[S(0x14d)]({'name':S(0x193),'hidden':!![]}),k[S(0x14d)]({'name':'help','boolFlag':!![]}),k[S(0x14d)]({'name':'dir','hidden':!![]}),k[S(0x14d)]({'name':S(0x17b),'hidden':!![]}),k[S(0x14d)]({'name':S(0x17a),'hidden':!![]}),k[S(0x14d)]({'name':S(0x171),'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[S(0x14c)](B))){const C=A;if(C){const D=await Actions[S(0x18c)]({'type':S(0x175),'name':z,'message':S(0x150)+z,'choices':A});l[z]=D[z];}}if(k[S(0x151)]>0x0)for(const E of Object['keys'](l)){const F=k[S(0x18d)](G=>G[S(0x186)]===E);if(!F){Log['error']('Invalid\x20option:\x20'+E);throw new UsageError();}}}}if(e&&e?.[S(0x151)]>0x0)for(const G of e){if(!e[S(0x14c)](G)){Log[S(0x179)](S(0x170)+G);const H=await Actions[S(0x152)](S(0x154)+G);a[a[S(0x14f)](G)]=H;}}return Object[S(0x16e)](j,l);}async['validateMakaSubscription'](a){const T=a126K;try{if(!a)return;const b=await this[T(0x176)]['getPro']();!b&&(Log[T(0x179)](T(0x16c)),process['exit'](0x1));const c=!b?.['roles']['includes'](T(0x153))&&!b?.[T(0x187)][T(0x14c)](T(0x173));if(this[T(0x18b)](a)){const d=T(0x14e)+a[T(0x186)]+T(0x17d);if(a[T(0x18c)][T(0x172)])return;const f=b?.[T(0x159)][T(0x14c)](a[T(0x186)])||b?.[T(0x159)][T(0x14c)](a['parent']||'')||this['options']['isPro'];if(f&&c)throw d;}else{if(this[T(0x156)](a)){const g=b?.['proGenerators'][T(0x14c)](a[T(0x186)])||b?.[T(0x164)]['includes'](a['parent']||'');if(g&&c)throw T(0x17c)+a[T(0x186)]+T(0x17d);}}}catch(h){Log[T(0x179)](h),process[T(0x16b)](0x1);}}['isCommand'](a){const U=a126K;return U(0x18c)in a;}[a126K(0x156)](a){const V=a126K;return!(V(0x18c)in a);}['description'](){const W=a126K;return this[W(0x18c)]['description']||this['options']['shortDesc']||W(0x15c);}[a126K(0x15f)](){const X=a126K;return this[X(0x18c)][X(0x15f)]||'NIE';}['usage'](){const Y=a126K;return this['options'][Y(0x183)]||Y(0x177);}[a126K(0x167)](){const Z=a126K;return this['options'][Z(0x167)]||[];}[a126K(0x192)](){const a0=a126K;return this[a0(0x18c)][a0(0x192)]||a0(0x16f);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0x179))/0x1+-parseInt(f(0x172))/0x2+-parseInt(f(0x168))/0x3+parseInt(f(0x178))/0x4*(-parseInt(f(0x177))/0x5)+parseInt(f(0x175))/0x6+parseInt(f(0x169))/0x7+parseInt(f(0x173))/0x8*(parseInt(f(0x16c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x86f99));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0x16b)]()['search'](h(0x16d))[h(0x16b)]()[h(0x174)](a127a)['search'](h(0x16d));});a127a();import a127e from'inquirer';function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x167;let f=c[d];return f;},a127d(a,b);}function a127c(){const m=['constructor','4830918aySwxc','prompt','5366735rxZOKk','4lbWmnS','1097454SnwpUc','options','1494930QBvyJo','381850uNWlDk','answer','toString','144loDnvR','(((.+)+)+)+$','password','confirm','ask','apply','2065582JbNmXk','1697528wYnLjK'];a127c=function(){return m;};return a127c();}export class Actions{static async[a127i(0x170)](a,b){const j=a127i,{answer:c}=await a127e['prompt']({'type':b?j(0x16e):'input','name':j(0x16a),'message':a});return c;}static async[a127i(0x16f)](a,b=![]){const k=a127i,{answer:c}=await a127e['prompt']({'type':k(0x16f),'name':k(0x16a),'message':a,'default':b});return c;}static async[a127i(0x167)](a){const l=a127i,b=await a127e[l(0x176)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a128c(){const W=['notice','Successfully\x20linked\x20EC2\x20instance\x20','178234OquylC','isFile','\x20Status\x20Code:\x20','ec2rebootInstance','KeyName','1415746AMOgtt','search','ecrCreateRepository','pop','Error\x20saving\x20pem\x20file,\x20aborting','error','\x20Error\x20Rason:\x20','chmod\x20400\x20','6KbFDyx','$metadata','imageId','7142113vPzqTn','VpcId','forEach','running','3NgNJNc','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Value','find','maka-cli','config','ssh.json','privateIp','tcp','\x20opened!','send','statusCode','RegistrationPrice','createFile','\x20to\x20','now','\x27\x20has\x20been\x20registered\x20successfully.','createKeyPairEC2Key','warn','join','success','Pem\x20key\x20saved\x20to\x20','\x20CIDR:\x20','httpStatusCode','stringify','370FmNcJp','vpcId','From\x20AWS:','readFileSync','getSecurityGroups','exit','ec2createSG','GroupId','5yUBOPM','changeResourceRecordSets','tags','ask','Instance\x20rebooted!','push','Key\x20Name:\x20[','type','No\x20instances\x20found','Invalid\x20choice','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','CidrBlock','maxCount','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','1679308pfSumc','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','**\x20Available\x20\x20VPCs\x20**','route53CreateHostedZone','ec2describeKeys','Description:','deleteSecurityGroup','status','_keys','description','writeFileSync','listHostedZonesByName','ec2create','102276BLzvbZ','Prices','createKeyPair','3983480GuGbKm','Error\x20generating\x20key\x20pair','registerDomain','env','tag:created-by','Error\x20linking\x20EC2\x20to\x20Route\x2053:','name','Could\x20not\x20find\x20hosted\x20zone','fsi','key','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','\x20NAME:\x20','Availability','ID:\x20','toString','.pem.txt','utf8','Error\x20creating\x20hosted\x20zone','publicIp','sgId','getAppConfigPath','length','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','suggestion','KeyMaterial','(((.+)+)+)+$','chooseInstance','Web\x20App','userData','file://','checkDomainAvailability','deleteKeyPair','environment','chooseVPC','HostedZones','getMakaProjectConfig','92813UCTytC','ingressRule','cidr','\x20ENV:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','instanceId','sgIds','subnet','/dev/sdh','parse','Instances','reason','instance','apply','split','\x20VPCID:\x20','ec2describeInstances','AVAILABLE'];a128c=function(){return W;};return a128c();}const a128t=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x1e1))/0x1+parseInt(p(0x1e6))/0x2*(parseInt(p(0x1f5))/0x3)+-parseInt(p(0x199))/0x4*(parseInt(p(0x216))/0x5)+parseInt(p(0x1ee))/0x6*(-parseInt(p(0x1cd))/0x7)+parseInt(p(0x1a9))/0x8+parseInt(p(0x1a6))/0x9*(parseInt(p(0x20e))/0xa)+-parseInt(p(0x1f1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x59469));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x1b7)]()[r(0x1e7)](r(0x1c2))['toString']()['constructor'](a128a)[r(0x1e7)](r(0x1c2));});a128a();import a128e from'fs';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x198;let f=c[d];return f;},a128d(a,b);}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{['fsi'];constructor(){const s=a128d;this[s(0x1b1)]=new FSI();}async[a128t(0x1e8)](a){const u=a128t;try{const b={'repositoryName':a[u(0x1af)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x1eb)](f);}}async[a128t(0x19c)](a){const v=a128t;try{const b={'CallerReference':''+Date[v(0x204)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[v(0x209)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error'](v(0x1ba)),console[v(0x1eb)](d);}}async[a128t(0x1ab)](a,b,c,d){const w=a128t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x1ff)](f),Log[w(0x1df)]('The\x20domain\x20\x27'+b+w(0x205));}catch(g){Log[w(0x1eb)](w(0x220)),Log[w(0x207)](w(0x210)),console['error'](w(0x1e3)+g['$response'][w(0x200)]),console[w(0x1eb)](w(0x1ec)+g['$response'][w(0x1d8)]);}}async[a128t(0x1c7)](a){const x=a128t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x1ff)](c),e=d[x(0x1b5)]===x(0x1de);if(e){const f=a[x(0x1db)]('.')[x(0x1e9)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0x1a7)]&&i[x(0x1a7)][0x0]?.['RegistrationPrice']){const j=i[x(0x1a7)][0x0][x(0x201)];return{'available':e,'cost':j};}}catch(k){console[x(0x1eb)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a128t;try{const d=await route53[y(0x1a4)]({'DNSName':c});if(!d?.[y(0x1cb)])throw Log[y(0x1eb)](y(0x1b0));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x217)](f),Log[y(0x1df)](y(0x1e0)+a+y(0x203)+c);}catch(g){console[y(0x1eb)](y(0x1ae),g);}}async[a128t(0x1a5)](a){const z=a128t;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x1d5),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x1f0)],'InstanceType':a[z(0x21d)],'KeyName':a[z(0x1b2)],'MaxCount':a[z(0x222)],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x1d3)][z(0x1db)](','),'SubnetId':a[z(0x1d4)],'TagSpecifications':[{'ResourceType':z(0x1d9),'Tags':a[z(0x218)]}]};a[z(0x1c5)]&&(b['UserData']=z(0x1c6)+a[z(0x1c5)]);const c=new RunInstancesCommand(b),d=await client[z(0x1ff)](c);return d;}catch(f){Log[z(0x1eb)](f);}}async['ec2terminateInstance'](a){const A=a128t;try{const b={'InstanceIds':[a[A(0x1d2)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x1eb)](f),{};}}async[a128t(0x206)]({keyName:a,env:b}){const B=a128t,c=this['fsi'][B(0x1bd)](b),d=a128f[B(0x208)](c,B(0x1a1),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x1ff)](g),i=h[B(0x1c1)];if(i){await this['fsi'][B(0x202)]({'filePath':d,'data':i}),execSync(B(0x1ed)+d,{'stdio':'ignore'});const j=this[B(0x1b1)][B(0x1e2)](d);if(j)return Log[B(0x209)](B(0x20a)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x1ea));}else throw new Error(B(0x1aa));}catch(k){Log[B(0x1eb)](k),process['exit'](0x1);}}async[a128t(0x1ce)]({port:a,groupId:b}){const C=a128t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x1fd),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x1df)]('Port\x20'+a+C(0x1fe)),await client[C(0x1ff)](d);}async[a128t(0x214)](a){const D=a128t;try{a[D(0x1a2)]===''&&(a[D(0x1a2)]=await Actions[D(0x219)](D(0x19e))||D(0x1c4));const b={'Description':a[D(0x1a2)],'GroupName':a['name'],'VpcId':a[D(0x20f)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x1ff)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x1bf));f&&a['sgPorts'][D(0x1f3)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[D(0x209)]('Created:\x20'+f+D(0x1b4)+a[D(0x1af)]);}catch(g){return Log[D(0x1eb)](g),![];}return!![];}async[a128t(0x19d)](a){const E=a128t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x1ff)](d);if(!f)throw E(0x1bf);const {KeyPairs:g}=f;g?(g?.[E(0x1f3)]((h,i)=>{const F=E;h[F(0x1e5)]&&b[F(0x21b)]({'id':i,'name':h[F(0x1e5)]});}),b[E(0x1be)]>0x0&&b[E(0x1f3)](h=>{const G=E;h[G(0x1af)]===a?.[G(0x1c0)]?Log[G(0x209)](G(0x1b6)+h['id']+G(0x1b4)+h[G(0x1af)]):Log['notice'](G(0x1b6)+h['id']+G(0x1b4)+h[G(0x1af)]);})):Log['error'](E(0x1d1));}catch(h){Log[E(0x1eb)](h);}return b;}async[a128t(0x1c8)](a){const H=a128t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x1ff)](c);}catch(d){Log['error'](d),process[H(0x213)](0x1);}}async[a128t(0x1dd)](){const I=a128t,a=[];try{const b={'Filters':[{'Name':I(0x1ad),'Values':[I(0x1f9)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x1ff)](c);d['Reservations']?.['forEach']((f,g)=>{const J=I;if(f?.[J(0x1d7)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x1d7)][0x0],n=m?.[J(0x1f8)](({Key:o})=>o===J(0x1c9));a[J(0x21b)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0x1f7)]});}}),a[I(0x1be)]>0x0?a[I(0x1f3)](f=>{const K=I,g='ID:\x20'+f['id']+K(0x1b4)+f[K(0x1af)]+K(0x1d0)+f[K(0x1ac)]+'\x20STATUS:\x20'+f[K(0x1a0)]+'\x20INSTANCE_ID:\x20'+f['instanceId']+'\x20PUB_IP:\x20'+f[K(0x1bb)]+'\x20PRIV_IP:\x20'+f[K(0x1fc)];if(f[K(0x1a0)]==='terminated')Log[K(0x1eb)](g);else f['status']===K(0x1f4)?Log[K(0x209)](g):Log['notice'](g);}):Log['error']('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log['error'](f);}return a;}async[a128t(0x1e4)](a){const L=a128t;try{const b={'InstanceIds':[a[L(0x1d2)]]},c=new RebootInstancesCommand(b),d=await client[L(0x1ff)](c);return d[L(0x1ef)][L(0x20c)]===0xc8&&Log[L(0x209)](L(0x21a)),d;}catch(f){Log[L(0x1eb)](f);}}async[a128t(0x1ca)](){const M=a128t;let a='';Log[M(0x1df)](M(0x19b));const b=new DescribeVpcsCommand({}),c=await client[M(0x1ff)](b),{Vpcs:d}=c,e=[];d&&d[M(0x1f3)]((g,h)=>{const N=M;g[N(0x1f2)]&&g[N(0x221)]&&e[N(0x21b)]({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0x221)]});});e[M(0x1f3)](function(g){const O=M;console['log'](O(0x1b6)+g['id']+O(0x1dc)+g['vpcId']+O(0x20b)+g[O(0x1cf)]);});const f=await Actions[M(0x219)](M(0x1f6))||0x0;e[M(0x1f3)](function(g){const P=M;g['id']==f&&(a=g['vpcId'],Log[P(0x209)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[M(0x1eb)](M(0x19a)),'';return a;}async[a128t(0x1c3)](){const Q=a128t,a=await this[Q(0x1dd)]();if(a[Q(0x1be)]===0x0)return Log['error'](Q(0x21e)),null;const b=await Actions[Q(0x219)](Q(0x1b3));!b&&(Log[Q(0x1eb)](Q(0x21f)),process[Q(0x213)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128t(0x1a8)]({env:a}){const R=a128t,b=this[R(0x1b1)][R(0x1cc)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x219)](R(0x21c)+d+']\x20')||d,{filePath:g}=await this[R(0x206)]({'keyName':f,'env':a});try{const h=await Actions['confirm']('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[R(0x211)](a128f['join'](R(0x1fa),a,R(0x1fb)),R(0x1b9)),j=JSON[R(0x1d6)](i);j['pem']=a128f[R(0x208)](R(0x1a1),f+R(0x1b8)),a128e[R(0x1a3)](a128f[R(0x208)](R(0x1fa),a,'ssh.json'),JSON[R(0x20d)](j,null,0x2));}catch(k){Log[R(0x1eb)](k),Log['error'](R(0x198));}}catch(l){Log[R(0x1eb)](l),process[R(0x213)](0x1);}return{'keyName':f,'filePath':g};}async[a128t(0x212)](a){const S=a128t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[S(0x1f3)](function(i,j){const T=S;i['GroupName']&&i[T(0x215)]&&b[T(0x21b)]({'id':j,'name':i['GroupName'],'sgId':i[T(0x215)]});});let g='',h=0x0;return b[S(0x1f3)](function(i){const U=S;i[U(0x1af)]===a&&(g=i[U(0x1bc)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128t(0x19f)](a){const V=a128t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x1ff)](c);}catch(d){Log['error'](d),process[V(0x213)](0x1);}}}
|
|
1
|
+
function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x1a5;let f=c[d];return f;},a128d(a,b);}const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x1be))/0x1+parseInt(p(0x1de))/0x2+-parseInt(p(0x1c9))/0x3+-parseInt(p(0x1c8))/0x4*(parseInt(p(0x20d))/0x5)+-parseInt(p(0x1b8))/0x6*(-parseInt(p(0x229))/0x7)+-parseInt(p(0x1aa))/0x8+parseInt(p(0x1d5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x8909d));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x221)]()[r(0x216)](r(0x1dc))[r(0x221)]()[r(0x1ee)](a128a)[r(0x216)](r(0x1dc));});a128a();import a128e from'fs';import a128f from'path';function a128c(){const W=['VpcId','CidrBlock','getMakaProjectConfig','Name','join','running','name','\x20to\x20','createKeyPairEC2Key','\x20NAME:\x20','vpcId','/dev/sdh','getSecurityGroups','GroupName','UserData','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','success','parse','exit','status','\x20PRIV_IP:\x20','Pem\x20key\x20saved\x20to\x20','tcp','chooseInstance','checkDomainAvailability','Description:','length','Key\x20Name:\x20[','cidr','Availability','5rxHUhr','readFileSync','deleteKeyPair','Port\x20','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','KeyName','listHostedZonesByName','Reservations','statusCode','search','**\x20Available\x20\x20VPCs\x20**','UPSERT','find','file://','maxCount','ignore','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','utf8','ec2describeKeys','stringify','toString','instanceId','From\x20AWS:','AVAILABLE','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','isFile','\x27\x20has\x20been\x20registered\x20successfully.','tag:created-by','3756039KZVNAF','No\x20instances\x20found','log','httpStatusCode','ID:\x20','warn','forEach','Please\x20choose\x20a\x20VPC:\x20[0]\x20','\x20CIDR:\x20','\x20opened!','8929464PAYOVg','error','apply','route53CreateHostedZone','Prices','ask','registerDomain','Error\x20creating\x20hosted\x20zone','confirm','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','userData','env','0.0.0.0/0','Error\x20generating\x20key\x20pair','6VXqLap','Hosted\x20zone\x20created\x20successfully!','ssh.json','ec2createSG','now','fsi','522330OiPmIy','$response','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','ec2terminateInstance','Instance\x20rebooted!','.pem.txt','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','pop','GroupId','sgId','4046352vTuroc','3168834joVNJc','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','createFile','key','reason','split','\x20Error\x20Rason:\x20','description','ec2describeInstances','privateIp','notice','Instances','28698993vFsDuZ','HostedZones','chmod\x20400\x20','linkEC2ToRoute53','The\x20domain\x20\x27','sgIds','RegistrationPrice','(((.+)+)+)+$','imageId','1084668CAWMMm','send','\x20ENV:\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','deleteSecurityGroup','\x20Status\x20Code:\x20','Error\x20saving\x20pem\x20file,\x20aborting','config','environment','push','subnet','Invalid\x20choice','\x20INSTANCE_ID:\x20','$metadata','ingressRule','ec2create','constructor'];a128c=function(){return W;};return a128c();}import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a128s(0x1bd)];constructor(){const t=a128s;this[t(0x1bd)]=new FSI();}async['ecrCreateRepository'](a){try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log['error'](f);}}async[a128s(0x1ad)](a){const u=a128s;try{const b={'CallerReference':''+Date[u(0x1bc)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x1df)](c),Log[u(0x1ff)](u(0x1b9));}catch(d){Log[u(0x1ab)](u(0x1b1)),console[u(0x1ab)](d);}}async[a128s(0x1b0)](a,b,c,d){const v=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x1df)](f),Log[v(0x1d3)](v(0x1d9)+b+v(0x227));}catch(g){Log[v(0x1ab)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[v(0x1a5)](v(0x223)),console[v(0x1ab)](v(0x1e3)+g[v(0x1bf)][v(0x215)]),console[v(0x1ab)](v(0x1cf)+g['$response'][v(0x1cd)]);}}async[a128s(0x207)](a){const w=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x1df)](c),e=d[w(0x20c)]===w(0x224);if(e){const f=a[w(0x1ce)]('.')[w(0x1c5)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[w(0x1ae)]&&i[w(0x1ae)][0x0]?.[w(0x1db)]){const j=i[w(0x1ae)][0x0][w(0x1db)];return{'available':e,'cost':j};}}catch(k){console[w(0x1ab)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a128s(0x1d8)](a,b,c){const x=a128s;try{const d=await route53[x(0x213)]({'DNSName':c});if(!d?.[x(0x1d6)])throw Log['error']('Could\x20not\x20find\x20hosted\x20zone');const e=d?.[x(0x1d6)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x218),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log['notice']('Successfully\x20linked\x20EC2\x20instance\x20'+a+x(0x1f6)+c);}catch(g){console['error'](x(0x1e1),g);}}async[a128s(0x1ed)](a){const y=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x1fa),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x1dd)],'InstanceType':a['type'],'KeyName':a[y(0x1cc)],'MaxCount':a[y(0x21b)],'MinCount':a['minCount'],'SecurityGroupIds':a[y(0x1da)][y(0x1ce)](','),'SubnetId':a[y(0x1e8)],'TagSpecifications':[{'ResourceType':'instance','Tags':a['tags']}]};a[y(0x1b4)]&&(b[y(0x1fd)]=y(0x21a)+a['userData']);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log['error'](f);}}async[a128s(0x1c1)](a){const z=a128s;try{const b={'InstanceIds':[a[z(0x222)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x1df)](c);return d;}catch(f){return Log[z(0x1ab)](f),{};}}async[a128s(0x1f7)]({keyName:a,env:b}){const A=a128s,c=this['fsi']['getAppConfigPath'](b),d=a128f[A(0x1f3)](c,'_keys',a+A(0x1c3));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x1df)](g),i=h['KeyMaterial'];if(i){await this['fsi'][A(0x1cb)]({'filePath':d,'data':i}),execSync(A(0x1d7)+d,{'stdio':A(0x21c)});const j=this[A(0x1bd)][A(0x226)](d);if(j)return Log[A(0x1ff)](A(0x204)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x1e4));}else throw new Error(A(0x1b7));}catch(k){Log['error'](k),process[A(0x201)](0x1);}}async[a128s(0x1ec)]({port:a,groupId:b}){const B=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x205),'IpRanges':[{'CidrIp':B(0x1b6),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](B(0x210)+a+B(0x1a9)),await client['send'](d);}async[a128s(0x1bb)](a){const C=a128s;try{a[C(0x1d0)]===''&&(a['description']=await Actions[C(0x1af)](C(0x208))||'Web\x20App');const b={'Description':a[C(0x1d0)],'GroupName':a[C(0x1f5)],'VpcId':a[C(0x1f9)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0x225));f&&a['sgPorts'][C(0x1a6)](g=>{const D=C;this[D(0x1ec)]({'port':parseInt(g),'groupId':f});}),Log[C(0x1ff)]('Created:\x20'+f+'\x20NAME:\x20'+a[C(0x1f5)]);}catch(g){return Log[C(0x1ab)](g),![];}return!![];}async[a128s(0x21f)](a){const E=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x1df)](d);if(!f)throw E(0x225);const {KeyPairs:g}=f;g?(g?.[E(0x1a6)]((h,i)=>{const F=E;h[F(0x212)]&&b[F(0x1e7)]({'id':i,'name':h[F(0x212)]});}),b[E(0x209)]>0x0&&b['forEach'](h=>{const G=E;h[G(0x1f5)]===a?.['suggestion']?Log['success'](G(0x22d)+h['id']+G(0x1f8)+h[G(0x1f5)]):Log[G(0x1d3)](G(0x22d)+h['id']+'\x20NAME:\x20'+h[G(0x1f5)]);})):Log[E(0x1ab)](E(0x1c0));}catch(h){Log['error'](h);}return b;}async[a128s(0x20f)](a){const H=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x1df)](c);}catch(d){Log[H(0x1ab)](d),process[H(0x201)](0x1);}}async[a128s(0x1d1)](){const I=a128s,a=[];try{const b={'Filters':[{'Name':I(0x228),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[I(0x214)]?.[I(0x1a6)]((f,g)=>{const J=I;if(f?.[J(0x1d4)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x1d4)][0x0],n=m?.[J(0x219)](({Key:o})=>o===J(0x1e6));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x1f2)],'name':l,'env':n?.['Value']});}}),a[I(0x209)]>0x0?a[I(0x1a6)](f=>{const K=I,g=K(0x22d)+f['id']+K(0x1f8)+f[K(0x1f5)]+K(0x1e0)+f[K(0x1b5)]+'\x20STATUS:\x20'+f[K(0x202)]+K(0x1ea)+f[K(0x222)]+'\x20PUB_IP:\x20'+f['publicIp']+K(0x203)+f[K(0x1d2)];if(f[K(0x202)]==='terminated')Log[K(0x1ab)](g);else f[K(0x202)]===K(0x1f4)?Log[K(0x1ff)](g):Log['notice'](g);}):Log[I(0x1ab)](I(0x1fe));}catch(f){Log[I(0x1ab)](f);}return a;}async['ec2rebootInstance'](a){const L=a128s;try{const b={'InstanceIds':[a[L(0x222)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[L(0x1eb)][L(0x22c)]===0xc8&&Log[L(0x1ff)](L(0x1c2)),d;}catch(f){Log[L(0x1ab)](f);}}async['chooseVPC'](){const M=a128s;let a='';Log[M(0x1d3)](M(0x217));const b=new DescribeVpcsCommand({}),c=await client[M(0x1df)](b),{Vpcs:d}=c,e=[];d&&d[M(0x1a6)]((g,h)=>{const N=M;g[N(0x1ef)]&&g[N(0x1f0)]&&e[N(0x1e7)]({'id':h,'vpcId':g[N(0x1ef)],'cidr':g[N(0x1f0)]});});e[M(0x1a6)](function(g){const O=M;console[O(0x22b)](O(0x22d)+g['id']+'\x20VPCID:\x20'+g[O(0x1f9)]+O(0x1a8)+g[O(0x20b)]);});const f=await Actions[M(0x1af)](M(0x1a7))||0x0;e[M(0x1a6)](function(g){const P=M;g['id']==f&&(a=g[P(0x1f9)],Log[P(0x1ff)](P(0x1b3)+a+'\x0a'));});if(a==='')return Log['error'](M(0x1c4)),'';return a;}async[a128s(0x206)](){const Q=a128s,a=await this['ec2describeInstances']();if(a[Q(0x209)]===0x0)return Log['error'](Q(0x22a)),null;const b=await Actions[Q(0x1af)](Q(0x211));!b&&(Log['error'](Q(0x1e9)),process[Q(0x201)](0x0));const c=a[Q(0x219)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const R=a128s,b=this[R(0x1bd)][R(0x1f1)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x1af)](R(0x20a)+d+']\x20')||d,{filePath:g}=await this[R(0x1f7)]({'keyName':f,'env':a});try{const h=await Actions[R(0x1b2)](R(0x21d),!![]);if(h)try{const i=a128e[R(0x20e)](a128f['join']('config',a,R(0x1ba)),R(0x21e)),j=JSON[R(0x200)](i);j['pem']=a128f['join']('_keys',f+'.pem.txt'),a128e['writeFileSync'](a128f['join'](R(0x1e5),a,R(0x1ba)),JSON[R(0x220)](j,null,0x2));}catch(k){Log[R(0x1ab)](k),Log['error'](R(0x1ca));}}catch(l){Log[R(0x1ab)](l),process[R(0x201)](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x1fb)](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x1df)](d),{SecurityGroups:f}=e;f&&f[S(0x1a6)](function(i,j){const T=S;i[T(0x1fc)]&&i[T(0x1c6)]&&b[T(0x1e7)]({'id':j,'name':i[T(0x1fc)],'sgId':i[T(0x1c6)]});});let g='',h=0x0;return b[S(0x1a6)](function(i){const U=S;i['name']===a&&(g=i[U(0x1c7)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x1e2)](a){const V=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x1df)](c);}catch(d){Log[V(0x1ab)](d),process['exit'](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(0xd2))/0x1*(-parseInt(k(0xcb))/0x2)+parseInt(k(0xd4))/0x3+parseInt(k(0xce))/0x4+-parseInt(k(0xd0))/0x5+-parseInt(k(0xd6))/0x6*(parseInt(k(0xd3))/0x7)+-parseInt(k(0xcf))/0x8*(-parseInt(k(0xd7))/0x9)+-parseInt(k(0xd1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x31e6b));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0xcb;var f=c[d];return f;},a129d(a,b);}function a129c(){var n=['constructor','(((.+)+)+)+$','17208uGORSl','search','toString','1182692HkgUGl','2694904PiwVoa','384405OEfsWC','2895430SieDaN','32WjZSie','2779StqvIF','44091efrTWA','apply','5316wHREbK','9eecCJd'];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(0xd5)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e['toString']()[m(0xcc)](m(0xd9))[m(0xcd)]()[m(0xd8)](e)[m(0xcc)](m(0xd9));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130m=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0xc4;let f=c[d];return f;},a130d(a,b);}(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0xc6))/0x1*(parseInt(j(0xc7))/0x2)+parseInt(j(0xd7))/0x3*(parseInt(j(0xd9))/0x4)+-parseInt(j(0xcf))/0x5*(-parseInt(j(0xcc))/0x6)+parseInt(j(0xda))/0x7*(-parseInt(j(0xd5))/0x8)+-parseInt(j(0xc8))/0x9+parseInt(j(0xcd))/0xa*(parseInt(j(0xd3))/0xb)+-parseInt(j(0xc9))/0xc*(parseInt(j(0xd6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xcb733));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0xd1)]()[l(0xde)](l(0xd4))[l(0xd1)]()[l(0xcb)](a130a)[l(0xde)](l(0xd4));});a130a();import{execSync}from'child_process';function a130c(){const q=['join','11cIicvb','(((.+)+)+)+$','21848aAxnVq','8835567WUqUOh','3zThcEa','.dkr.ecr.','4975348oFwEiL','182ttyAml','.amazonaws.com','.amazonaws.com/','AWS','search','awsLogin','error','--password-stdin','7dSAzgO','111686bPngCq','469251NSeNUh','36mNImtI','tag','constructor','7529112ZRBlTO','8876650wEmoiu','docker\x20','5tEKuJS','apply','toString'];a130c=function(){return q;};return a130c();}import{Log}from'../log/log.class.js';export class Docker{static[a130m(0xca)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=['tag',a,b+n(0xd8)+c+n(0xdc)+d],g=n(0xce)+f[n(0xd2)]('\x20'),h=execSync(g,{'stdio':'inherit'})[n(0xd1)]();return h;}catch(i){return Log[n(0xc4)](i),'';}}static[a130m(0xdf)]({awsAccountId:a,region:b}){const o=a130m;try{const c=['login','--username',o(0xdd),o(0xc5),a+o(0xd8)+b+o(0xdb)],d=o(0xce)+c[o(0xd2)]('\x20'),f=execSync(d,{'stdio':'inherit'})['toString']();return f;}catch(g){return Log[o(0xc4)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=['push',a+'.dkr.ecr.'+b+'.amazonaws.com/'+c],f=p(0xce)+d[p(0xd2)]('\x20'),g=execSync(f,{'stdio':'inherit'})[p(0xd1)]();return g;}catch(h){return Log[p(0xc4)](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(0x183))/0x1*(-parseInt(f(0x18e))/0x2)+-parseInt(f(0x189))/0x3+-parseInt(f(0x184))/0x4*(-parseInt(f(0x18d))/0x5)+-parseInt(f(0x186))/0x6*(-parseInt(f(0x18a))/0x7)+-parseInt(f(0x185))/0x8*(-parseInt(f(0x181))/0x9)+parseInt(f(0x188))/0xa+-parseInt(f(0x18b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x8354e));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a[h(0x18f)]()[h(0x182)]('(((.+)+)+)+$')[h(0x18f)]()[h(0x18c)](a131a)[h(0x182)](h(0x187));});function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x180;var f=c[d];return f;},a131d(a,b);}a131a();export{};function a131c(){var i=['2929960SMJjjB','12zzmlzC','(((.+)+)+)+$','2385950bcipQD','1138506KGknOl','3493427xKjDNO','1063843CSNQMR','constructor','20moOcuL','1358138zlDQjM','toString','apply','9rdkxut','search','1KsDLCB','90256ZHZFiY'];a131c=function(){return i;};return a131c();}
|