@maka/maka-cli 4.8.9 → 4.8.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x162;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(0x180))/0x1+parseInt(j(0x174))/0x2+-parseInt(j(0x187))/0x3*(-parseInt(j(0x173))/0x4)+parseInt(j(0x184))/0x5*(-parseInt(j(0x162))/0x6)+parseInt(j(0x179))/0x7*(-parseInt(j(0x164))/0x8)+-parseInt(j(0x188))/0x9+parseInt(j(0x176))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xdd487));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0x185)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a['toString']()['search'](l(0x183))[l(0x16c)]()[l(0x16b)](a116a)['search'](l(0x183));});function a116c(){const p=['constructor','toString','create','startup','withValue','getMakaProjectConfig','injectAtEndOfFile','mdg:validated-method','44732XZYDVV','194858UpbDoS','-rpc-method\x27;','36560060sxOhpO','maka:check','methods','11066797LwaEOO','tsx','template','fsi','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','import\x20\x27./methods','resourceName','865857gSJfIn','appPathPrefix','method','(((.+)+)+)+$','2845JDmbrT','apply','maka\x20{generate,\x20g}:{method,\x20m}\x20name','321bwmsOR','88848xsLdBE','16734EFVHne','engines','8pTtRXF','ddp-rate-limiter','pathFromApp','checkMeteorPackage','dir','imports','method/method.js'];a116c=function(){return p;};return a116c();}a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a116m(0x16d)]({'name':a116m(0x182),'aliases':['m'],'usage':a116m(0x186),'checkWhere':!![],'shortDesc':a116m(0x17d),'validOpts':[a116m(0x168)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const n=a116m;try{const c=this[n(0x17c)][n(0x170)]();await this[n(0x17c)][n(0x16f)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':b[o(0x17f)],'fileName':d,'className':pascalCase(b[o(0x17f)]),'camelCase':camelCase(b[o(0x17f)]),'noRename':!![]};let g='js';c[o(0x163)]['js']===o(0x17a)&&(g='ts');await this[o(0x17c)][o(0x167)]([o(0x177),o(0x165),o(0x172)],{'shouldInstall':!![]}),await this[o(0x17c)][o(0x17b)]({'srcPath':o(0x16a),'destPath':this[o(0x17c)][o(0x166)]({'pathParts':[o(0x169),'startup',b[o(0x181)],o(0x178),b[o(0x168)],d+'-rpc-method.'+g]}),'context':f,'config':c});const h=b['dir']?'/'+b[o(0x168)]+'/':'/',i=this[o(0x17c)][o(0x166)]({'pathParts':[o(0x169),o(0x16e),b[o(0x181)],'index.'+c[o(0x163)]['js']]});await this[o(0x17c)][o(0x171)]({'filePath':i,'content':o(0x17e)+h+d+o(0x175)});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117n=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0x109))/0x1*(parseInt(l(0x10e))/0x2)+parseInt(l(0x122))/0x3*(-parseInt(l(0x12c))/0x4)+-parseInt(l(0x110))/0x5*(-parseInt(l(0x107))/0x6)+-parseInt(l(0x117))/0x7*(parseInt(l(0x105))/0x8)+-parseInt(l(0x11e))/0x9+parseInt(l(0x120))/0xa*(parseInt(l(0x121))/0xb)+-parseInt(l(0x12b))/0xc*(-parseInt(l(0x116))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xdf1bc));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(0x10b)]()[m(0x11a)](m(0x104))[m(0x10b)]()[m(0x106)](a117a)[m(0x11a)](m(0x104));});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-0x102;let f=c[d];return f;},a117d(a,b);}Generator[a117n(0x128)]({'name':a117n(0x112),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a117n(0x124)],'examples':[a117n(0x115)]},async function(a,b){const o=a117n,c=paramCase(b[o(0x11f)]),d=this[o(0x11c)][o(0x119)]({'pathParts':[o(0x111),b['dir'],c]}),e=this[o(0x11c)][o(0x125)]({'pathParts':[o(0x111),b[o(0x124)],c,o(0x10a)]}),f=this[o(0x11c)][o(0x129)]();await this['fsi']['withValue'](f,async()=>{const p=o,g={'name':paramCase(b[p(0x11f)]),'myPath':a117e[p(0x102)](this[p(0x11c)][p(0x12a)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[p(0x11f)]),'camelCaseName':camelCase(b[p(0x11f)]),'fileName':c,'client':f[p(0x108)]['client'],'graphql':f[p(0x108)][p(0x114)],'ssr':f[p(0x108)][p(0x127)],'isComponent':b['hasOwnProperty'](p(0x11b)),'isLayout':b[p(0x10f)]('layout'),'isStore':b[p(0x10f)]('store'),'features':f[p(0x10d)],'noRename':!![],'theme':f['engines'][p(0x103)]};await this[p(0x11c)][p(0x118)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[p(0x11d)]=![];const h=d+'/client/'+c+'.js';await this[p(0x11c)][p(0x118)]({'srcPath':'template/template.js','destPath':h,'context':g,'config':f});const i=[p(0x113),'server',p(0x126),p(0x123)];for(const j of i){const k=d+'/'+j+'/'+c+p(0x10c);await this[p(0x11c)][p(0x118)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});}});});function a117c(){const q=['tests/server','dir','pathFromAppWithNoReWrite','tests/client','ssr','create','getMakaProjectConfig','pathFromProject','4533504aDHyah','1694812vYpJgr','relative','theme','(((.+)+)+)+$','24CXOuQw','constructor','137064XJowEd','engines','5jVHnae','package.js','toString','.js','features','338206nnuDaA','hasOwnProperty','90NylSwF','packages','package','lib','graphql','maka\x20g:package\x20todos:package','91sQZYyC','3151491Tyaewc','template','pathFromApp','search','component','fsi','noRename','3636891XAcCXz','resourceName','50ZjKLoT','2872705oMsHQF','6tTYmVP'];a117c=function(){return q;};return a117c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;function a118c(){const p=['
|
|
1
|
+
const a118m=a118d;function a118c(){const p=['Updating\x20npm\x20packages\x20...','ramda','css','pathFromProject','.html','pages','getMakaProjectConfig','search','withTranslations','.css','(((.+)+)+)+$','engines','apply','783934UuLAXG','template/template.css','constructor','theme','withHook','page','5039704CGAwfq','template/template.html','graphql','pathFromApp','true','component/component.js','.app-tests.js','features','3354490cqrNoU','root','withHooks','relative','injectTemplateModule','test','.js','setTemplate','none','resourceName','layouts','3894636yEicCQ','client','16374VMAuoj','injectAtBeginningOfFile','toString','1623538IiQmQg','dir','checkNpmPackage','/imports/ui/','3945568ctbZuJ','layout','test/test.js','react','vanilla','206XLLyMe','className','\x27;\x0a','63yCIMJg','template','/imports/ui/pages','hasOwnProperty','Generate\x20a\x20page.','api','html','fsi','baseDir','import\x20\x27./','string','maka\x20g:page\x20todos/todos-item','warn','ssr','fileName','store'];a118c=function(){return p;};return a118c();}(function(a,b){const j=a118d,c=a();while(!![]){try{const d=-parseInt(j(0x117))/0x1+-parseInt(j(0x13e))/0x2*(parseInt(j(0x132))/0x3)+-parseInt(j(0x139))/0x4+-parseInt(j(0x125))/0x5+-parseInt(j(0x130))/0x6+-parseInt(j(0x135))/0x7+-parseInt(j(0x11d))/0x8*(-parseInt(j(0x141))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x803f7));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0x134)]()[l(0x111)](l(0x114))[l(0x134)]()[l(0x119)](a118a)[l(0x111)]('(((.+)+)+)+$');});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 a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x103;let f=c[d];return f;},a118d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a118m(0x11c),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a118m(0x145),'validOpts':[{'name':a118m(0x149),'values':['hooks','components',a118m(0x10f),a118m(0x12f)]},{'name':'withHook','boolFlag':!![]}],'examples':[a118m(0x105)]},async function(a,b){const n=a118m,c=b[n(0x149)]?n(0x138)+b[n(0x149)]:n(0x143),d=this[n(0x148)]['pathFromApp'](b),e=this[n(0x148)][n(0x120)]({'pathParts':[c,b[n(0x136)],paramCase(b[n(0x12e)]),paramCase(b['resourceName'])]}),f=this[n(0x148)][n(0x110)]();let g='';return await this[n(0x148)]['withValue'](f,async()=>{const o=n;typeof f[o(0x142)][o(0x147)]===o(0x104)&&(f[o(0x142)][o(0x147)]=f['template'][o(0x147)]===o(0x121)?!![]:![],this['fsi'][o(0x12c)](o(0x147),f[o(0x142)][o(0x147)]));typeof f[o(0x142)]['test']===o(0x104)&&(f['template'][o(0x12a)]=f[o(0x142)]['test']==='true'?!![]:![],this[o(0x148)][o(0x12c)]('test',f[o(0x142)][o(0x12a)]));typeof f['template']['css']===o(0x104)&&(f[o(0x142)][o(0x10c)]=f[o(0x142)][o(0x10c)]===o(0x121)?!![]:![],this[o(0x148)][o(0x12c)](o(0x10c),f[o(0x142)]['css']));typeof f[o(0x142)]['js']===o(0x104)&&(f[o(0x142)]['js']=f[o(0x142)]['js']==='true'?!![]:![],this[o(0x148)]['setTemplate']('js',f['template']['js']));!f[o(0x124)]&&(f[o(0x124)]={});!b[o(0x126)]&&!this['fsi'][o(0x137)](o(0x10b))&&(Log[o(0x106)](o(0x10a)),this[o(0x148)]['installNpmPackage'](o(0x10b),{'cwd':d}));const h={'name':pascalCase(b[o(0x12e)]),'myPath':a118e[o(0x128)](this[o(0x148)][o(0x10d)]({}),e),'cssCaseName':paramCase(b[o(0x12e)]),'className':pascalCase(b[o(0x12e)]),'camelCaseName':camelCase(b[o(0x12e)]),'fileName':paramCase(b[o(0x12e)]),'graphql':f[o(0x115)][o(0x11f)],'features':f['features'],'client':f[o(0x115)]['client'],'api':f['engines'][o(0x146)],'ssr':f[o(0x115)][o(0x107)],'isStore':b[o(0x144)](o(0x109)),'isComponent':b[o(0x144)]('component'),'isLayout':b[o(0x144)](o(0x13a)),'withTranslations':f[o(0x124)][o(0x112)],'test':f['engines'][o(0x12a)],'theme':f['engines'][o(0x11a)]};f[o(0x142)][o(0x147)]&&await this[o(0x148)][o(0x142)]({'srcPath':o(0x11e),'destPath':e+o(0x10e),'context':h,'config':f});f['features']?.[o(0x127)]||b[o(0x11b)]?await this['fsi'][o(0x142)]({'srcPath':'hook/hook.js','destPath':e+o(0x12b),'framework':o(0x13c),'context':h,'config':f}):await this[o(0x148)][o(0x142)]({'srcPath':o(0x122),'destPath':e+o(0x12b),'framework':o(0x13c),'context':h,'config':f});f[o(0x115)][o(0x12a)]!==o(0x12d)&&await this['fsi'][o(0x142)]({'srcPath':o(0x13b),'destPath':e+o(0x123),'framework':o(0x13c),'context':h,'config':f});f[o(0x142)][o(0x10c)]&&await this[o(0x148)]['template']({'srcPath':o(0x118),'destPath':e+o(0x113),'context':Object['assign']({},h,{'className':paramCase(b[o(0x12e)])}),'config':f});f[o(0x115)][o(0x131)]!=='react'&&f[o(0x115)][o(0x131)]!==o(0x13d)?(f[o(0x142)][o(0x10c)]&&await this['fsi'][o(0x133)]({'filePath':e+'.'+f[o(0x115)]['js'],'content':o(0x103)+h[o(0x108)]+'.'+f['engines'][o(0x147)]+o(0x140)+'import\x20\x27./'+h[o(0x108)]+'.'+f[o(0x115)][o(0x10c)]+'\x27;'}),!f[o(0x142)]['css']&&await this['fsi'][o(0x133)]({'filePath':e+'.'+f[o(0x115)]['js'],'content':o(0x103)+h[o(0x108)]+'.'+f[o(0x115)][o(0x147)]+'\x27;'})):f[o(0x142)][o(0x10c)]&&await this['fsi'][o(0x133)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x103)+h['fileName']+'.'+f['engines']['css']+'\x27;'});const i=b[o(0x136)]?'/'+b[o(0x136)]+'/':'/';g=''+c+i+h[o(0x108)]+'/'+h[o(0x108)],await this[o(0x148)][o(0x129)](h[o(0x13f)],f,g),!b[o(0x126)]&&await a118f['processAndRunGenerator']('route',[i+b[o(0x12e)]],b);}),g+'.'+f[n(0x115)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(0x179))/0x1*(parseInt(h(0x17f))/0x2)+parseInt(h(0x178))/0x3+-parseInt(h(0x185))/0x4*(parseInt(h(0x183))/0x5)+-parseInt(h(0x176))/0x6+-parseInt(h(0x17a))/0x7+-parseInt(h(0x187))/0x8*(parseInt(h(0x18a))/0x9)+parseInt(h(0x175))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xdbd01));function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x174;let f=c[d];return f;},a119d(a,b);}function a119c(){const n=['Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','6gaHXYz','engines','apply','publish','8212690NYjAeA','resourceName','4XWXyYX','maka\x20g:publish\x20todos','312QFkaCG','templateContent','tsx','317088rIwSWi','withValue','constructor','(((.+)+)+)+$','19618000xXRpbg','1774950atStzj','search','3158859kcbQVs','511663KqusOc','2358846COvgHU','fsi','toString','publish/publish.'];a119c=function(){return n;};return a119c();}const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a119d;if(c){const e=c[i(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const j=a119d;return a119a[j(0x17c)]()[j(0x177)](j(0x174))[j(0x17c)]()[j(0x18c)](a119a)[j(0x177)](j(0x174));});a119a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator['create']({'name':a119k(0x182),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','shortDesc':a119k(0x17e),'validOpts':[],'examples':[a119k(0x186)]},async function(a,b){const l=a119k,c=this[l(0x17b)]['getMakaProjectConfig']();await this[l(0x17b)][l(0x18b)](c,async()=>{const m=l,d={'name':b[m(0x184)],'collection':paramCase(b[m(0x184)]),'noRename':!![]};let e='js';c[m(0x180)]['js']===m(0x189)&&(e='ts');const f=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':['server/publish.'+c[m(0x180)]['js']]}),g=this[m(0x17b)][m(0x188)]({'srcPath':m(0x17d)+e,'context':d,'config':c});await this[m(0x17b)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x111;let f=c[d];return f;},a120d(a,b);}const a120B=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=parseInt(y(0x14f))/0x1+parseInt(y(0x14e))/0x2+-parseInt(y(0x15d))/0x3*(-parseInt(y(0x118))/0x4)+parseInt(y(0x15f))/0x5+-parseInt(y(0x15b))/0x6+parseInt(y(0x11a))/0x7+-parseInt(y(0x159))/0x8*(parseInt(y(0x12e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x4608a));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a120d;if(c){const e=c[z(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const A=a120d;return a120a[A(0x161)]()[A(0x154)](A(0x14d))[A(0x161)]()['constructor'](a120a)['search'](A(0x14d));});a120a();function a120c(){const K=['withHook','true','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','829744Beojae','withTranslations','3721606PAFrkg','const\x20publicRoutes\x20=\x20(<>','routes.js','Route\x20','getMakaProjectConfig','newForm','only','baseDir','withValue','replace','root','apply','info','templateName','injectIntoFile','layout','\x20to\x20','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','\x20already\x20exists.\x20\x20Skipping.','layouts','891NPnenU','imports','hooks','private','pathFromApp','config','fsi','warn','\x22*\x22','create','lib','length','<Router','readFileLines','pop','map','maka\x20g:route\x20todosIndex\x20todos','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','pathFromProject','split','resourceName','injectAtEndOfFile','cwd','filter','/imports/ui/pages','startup','PrivateLayout','templateContent','MasterLayout','<Route','route','(((.+)+)+)+$','160646eBpmKC','115884HucETS','react','Scaffolding\x20for\x20a\x20Route.','pages','rewriteDestinationPathForEngine','search','/imports/ui/','join','maka\x20g:route\x20todosEdit\x20todos/:id/edit','\x0a\x09\x09','72376CwJNxo','fileContainsString','1919796QsldQb','injectAfterLineNumber','3hRcpTw','client','2835880IdMelx','engines','toString','dir','includes','error','vanilla','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','</Router>','indexOf','route/route.js','const\x20privateRoutes\x20=\x20(<>','toLowerCase'];a120c=function(){return K;};return a120c();}import a120e from'path';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(0x137)]({'name':a120B(0x14c),'aliases':aliases,'validOpts':[a120B(0x131),a120B(0x129),a120B(0x120),a120B(0x144),a120B(0x133),a120B(0x124),a120B(0x115),'url',a120B(0x121)],'usage':a120B(0x117),'shortDesc':a120B(0x151),'examples':[a120B(0x13e),a120B(0x157),a120B(0x13f),'maka\x20g:route\x20pages/lists/listIndex\x20lists','maka\x20g:route\x20pages/about']},async function(a,b){const C=a120B;try{const c=[C(0x130),'components',C(0x152),C(0x12d)];if(b[C(0x121)]&&!c[C(0x163)](b[C(0x121)])){Log['error']('Invalid\x20directory\x20option\x20\x22'+b[C(0x121)]+'\x22'),Log[C(0x164)]('Valid\x20options\x20are:\x20'+c['join'](',\x20'));throw new UsageError();}const d=this[C(0x134)][C(0x11e)]();await this[C(0x134)][C(0x122)](d,async()=>{const D=C,f=b['private']??![];let g=b[D(0x142)][D(0x141)]('/')[D(0x13c)]();if(!g){Log[D(0x164)](D(0x12b));throw new UsageError();}g=pascalCase(g);let h='/'+b[D(0x142)];a[D(0x139)]>0x1&&(h='/'+a[D(0x145)](function(n){return n!=='/';})[D(0x156)]('/')[D(0x114)]());h=h[D(0x123)](/\/\//g,'/');b[D(0x129)]&&(b[D(0x129)]=camelCase(b[D(0x129)]));const i=b['baseDir']?D(0x155)+b[D(0x121)]:D(0x146),j=a120e[D(0x156)](i,b[D(0x162)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x129)]||D(0x14a),'templatePath':j,'templateName':pascalCase(g),'client':d['engines'][D(0x15e)],'newForm':![],'withTranslations':d['features'][D(0x119)]};f&&(k[D(0x129)]=D(0x148));let l,m;if(d[D(0x160)][D(0x15e)]===D(0x150)){if(d[D(0x160)]['ssr']===D(0x116)){const r=this[D(0x134)]['pathFromApp']({'pathParts':[D(0x12f),D(0x147),D(0x138),D(0x11c)]});l=this['fsi'][D(0x153)]({'pathParts':[r],'config':d});}else{const s=this[D(0x134)][D(0x132)]({'pathParts':[D(0x12f),D(0x147),'client',D(0x11c)]});l=this['fsi'][D(0x153)]({'pathParts':[s],'config':d});}const n=await this['fsi'][D(0x15a)](l,g);if(n){Log['warn'](D(0x11d)+g+D(0x12c));return;}else{const t=this[D(0x134)][D(0x140)](l);Log[D(0x126)]('Adding\x20route\x20'+g+D(0x12a)+l['replace'](t,''));}const o=this['fsi'][D(0x13b)](l)['map']((u,v)=>{const E=D;return u[E(0x163)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})['filter'](u=>u!==null);let p=this[D(0x134)]['readFileLines'](l)[D(0x13d)]((u,v)=>{const F=D;return u['includes'](F(0x11b))?v+0x1:null;})[D(0x145)](u=>u!==null),q=this[D(0x134)]['readFileLines'](l)['map']((u,v)=>{const G=D;return u[G(0x163)](G(0x113))?v+0x1:null;})['filter'](u=>u!==null);p[D(0x139)]>0x0&&q[D(0x139)]>0x0&&(k[D(0x11f)]=!![]);m=this['fsi'][D(0x149)]({'srcPath':D(0x112),'framework':D(0x150),'context':k,'config':d});if(p[D(0x139)]>0x0||q[D(0x139)]>0x0){this['fsi'][D(0x15c)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0x134)]['readFileLines'](l)[D(0x13d)]((u,v)=>{const H=D;return u[H(0x163)](H(0x113))?v+0x1:null;})[D(0x145)](u=>u!==null),this[D(0x134)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[D(0x134)][D(0x13b)](l)[D(0x13d)]((u,v)=>{const I=D;return u['includes'](I(0x11b))?v+0x1:null;})['filter'](u=>u!==null),this[D(0x134)][D(0x15c)]({'filePath':l,'content':'\x09{'+k[D(0x127)]+'}','lineNumber':p[0x0]})):Log[D(0x135)](D(0x166)+l);}else{const u=this[D(0x134)][D(0x13b)](l)[D(0x13d)](x=>{const J=D;return x[J(0x163)](J(0x136));}),v=u[D(0x111)](!![])>-0x1,w=v?D(0x14b):D(0x167);await this[D(0x134)][D(0x128)]({'filePath':l,'content':D(0x158)+m+D(0x158),'begin':D(0x13a),'end':w});}}else{if(d[D(0x160)]['client']===D(0x165)){const x=this[D(0x134)][D(0x132)]({'pathParts':['imports',D(0x147),D(0x15e),D(0x11c)]});l=this[D(0x134)][D(0x153)]({'pathParts':[x],'config':d}),m=this[D(0x134)]['templateContent']({'srcPath':D(0x112),'context':k}),await this[D(0x134)][D(0x143)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x1bb))/0x1*(-parseInt(j(0x1bc))/0x2)+-parseInt(j(0x1a9))/0x3*(-parseInt(j(0x1c2))/0x4)+-parseInt(j(0x1b3))/0x5*(parseInt(j(0x1ab))/0x6)+parseInt(j(0x1a5))/0x7*(-parseInt(j(0x1c6))/0x8)+parseInt(j(0x1aa))/0x9*(-parseInt(j(0x1b7))/0xa)+parseInt(j(0x1ae))/0xb+parseInt(j(0x1a6))/0xc*(parseInt(j(0x1af))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x8728e));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0x1c4)]()['search'](l(0x1c3))[l(0x1c4)]()[l(0x1c0)](a121a)[l(0x1c8)]('(((.+)+)+)+$');});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a121d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a121c(){const p=['create','5241RznsyI','9593496DPcGzf','2366262zaiyup','imports','tsx','1165098LKlzKa','31826743wRVxvI','fsi','getMakaProjectConfig','pathFromApp','5EcjCMY','engines','withValue','type','10jqNUpz','checkNpmPackage','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','services','350443zrpVsR','2xGlBzT','lib','installNpmPackage','Installing\x20winston','constructor','service','868MBVocT','(((.+)+)+)+$','toString','maka\x20{generate,\x20g}:{service}\x20<resource-name>','14680mPqVhY','winston\x20setimmediate','search','template','apply','logger','2170cagCJJ','12vBUUOF','service/logger/logger.js'];a121c=function(){return p;};return a121c();}import{Log}from'../tools/log/log.class.js';Generator[a121m(0x1a8)]({'name':a121m(0x1c1),'aliases':['svc'],'usage':a121m(0x1c5),'shortDesc':a121m(0x1b9),'requiredOpts':[{'name':a121m(0x1b6),'values':[a121m(0x1a4)]}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a121m;try{const c=this['fsi'][n(0x1b1)]();await this['fsi'][n(0x1b5)](c,async()=>{const o=n,d=this[o(0x1b0)][o(0x1b2)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[o(0x1b6)],'engine':c[o(0x1b4)]['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x1ad)&&(h='ts');if(b[o(0x1b6)]===o(0x1a4)){!this[o(0x1b0)][o(0x1b8)]('winston')&&await this[o(0x1b0)][o(0x1be)](o(0x1c7),{'cwd':d,'msg':o(0x1bf)});const i=this[o(0x1b0)]['pathFromApp']({'pathParts':[o(0x1ac),'startup',o(0x1bd),o(0x1ba),f+'.'+h]});await this[o(0x1b0)][o(0x1c9)]({'srcPath':o(0x1a7),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1a3;var f=c[d];return f;},a122d(a,b);}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0x1b1))/0x1*(-parseInt(f(0x1af))/0x2)+parseInt(f(0x1a8))/0x3*(-parseInt(f(0x1ab))/0x4)+-parseInt(f(0x1b2))/0x5+-parseInt(f(0x1aa))/0x6*(-parseInt(f(0x1a5))/0x7)+-parseInt(f(0x1ae))/0x8*(-parseInt(f(0x1ac))/0x9)+parseInt(f(0x1a7))/0xa+parseInt(f(0x1a9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x50b1a));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x1b0)]()['search'](h(0x1a6))[h(0x1b0)]()[h(0x1a3)](a122a)[h(0x1a4)](h(0x1a6));});function a122c(){var i=['5630830kiyvqe','3yipNOM','8455062jMUkUV','159222WfuKma','2160348ARQGFn','9QQlyWn','apply','1620888YCHHwZ','6wCdvMM','toString','132011ZeSLPV','2665320uSEbvT','constructor','search','70vGBsQq','(((.+)+)+)+$'];a122c=function(){return i;};return a122c();}a122a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=parseInt(i(0xbb))/0x1+-parseInt(i(0xc3))/0x2*(-parseInt(i(0xc5))/0x3)+parseInt(i(0xc2))/0x4*(parseInt(i(0xb9))/0x5)+-parseInt(i(0xc6))/0x6*(parseInt(i(0xc7))/0x7)+-parseInt(i(0xc1))/0x8*(-parseInt(i(0xb2))/0x9)+-parseInt(i(0xaf))/0xa+-parseInt(i(0xb0))/0xb*(parseInt(i(0xb7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xde86c));function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0xae;let f=c[d];return f;},a123d(a,b);}const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a['toString']()[k(0xb5)]('(((.+)+)+)+$')[k(0xc8)]()[k(0xae)](a123a)[k(0xb5)](k(0xb1));});a123a();import{Generator}from'../../generator.js';function a123c(){const o=['238284fhIqvi','maka\x20{generate,\x20g}:sslconfig','Generate\x20a\x20new\x20openssl\x20config\x20file','search','getGlobalConfig','44499684VmSCzr','openssl.conf','5sSlXLX','getAppConfigPath','1793349HTEWBo','apply','join','sslconfig','create','fsi','448VkYnYQ','6599668CBwFDf','4qEdMWk','error','2640513GguCgI','1110588wiFyjk','28VrjnFs','toString','env','getMakaProjectConfig','constructor','13260970okkymQ','11EJFrmI','(((.+)+)+)+$'];a123c=function(){return o;};return a123c();}import{Log}from'../../tools/log/log.class.js';import a123e from'path';Generator[a123l(0xbf)]({'name':a123l(0xbe),'usage':a123l(0xb3),'shortDesc':a123l(0xb4),'noNeedResource':!![],'requiredOpts':['env'],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0xc0)][m(0xca)](),d=await this[m(0xc0)][m(0xb6)](),f=this[m(0xc0)][m(0xba)](b[m(0xc9)]),g=a123e[m(0xbd)](f,'_keys',m(0xb8));await this[m(0xc0)]['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0xc0)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0xc4)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a124c(){const
|
|
1
|
+
const a124z=a124d;function a124c(){const C=['root','warn','constructor','index.js','template','1108233yGkpoV','Locale\x20already\x20exported:\x20','i18next','maka\x20g:translation\x20--lang=fr','startup','.js','4415490oKgHYF','fsi','i18n/i18n.js','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','lib','i18next\x20i18next-browser-languagedetector\x20react-i18next','maka\x20g:translation\x20--lang=de','grep','export\x20{\x20default\x20as\x20','create','translations','exit','20chBdmO','(((.+)+)+)+$','i18n.js','injectAtBeginningOfFile','locales','Generate\x20a\x20new\x20locale\x20translation','engines','Locale\x20already\x20defined:\x20','setProjectConfig','maka\x20g:translation\x20--lang=en\x20(default)','29735QwdwZI','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','import\x20\x27../lib/services/translations/i18n\x27;\x0a','621069ftAbjE','imports','lang','installNpmPackage','18sOTpJv','maka\x20{generate,\x20g}:translation','error','features.withTranslations','isFile','598704FoibUE','checkNpmPackage','ssr','2Xudugz','toString','service','getGlobalConfig','readFileSync','injectAtEndOfFile','index.','findAppDirectory','getMakaProjectConfig','withValue','import\x20\x27../lib/services/translations/i18n\x27;','services','380814rVksDi','pathFromApp','true','search','137695EUZZgx','rewriteDestinationPathForEngine','client'];a124c=function(){return C;};return a124c();}(function(a,b){const x=a124d,c=a();while(!![]){try{const d=-parseInt(x(0x206))/0x1+-parseInt(x(0x1d2))/0x2*(-parseInt(x(0x209))/0x3)+parseInt(x(0x1fc))/0x4*(-parseInt(x(0x1e2))/0x5)+-parseInt(x(0x1de))/0x6+-parseInt(x(0x1ea))/0x7+-parseInt(x(0x212))/0x8*(parseInt(x(0x20d))/0x9)+parseInt(x(0x1f0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x1ac6e));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const y=a124d;return a124a[y(0x1d3)]()[y(0x1e1)](y(0x1fd))[y(0x1d3)]()[y(0x1e7)](a124a)[y(0x1e1)](y(0x1fd));});a124a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a124d(a,b);}import a124e from'fs';Generator[a124z(0x1f9)]({'name':'translation','usage':a124z(0x20e),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124z(0x20b),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a124z(0x201),'description':a124z(0x1f3),'examples':[a124z(0x205),a124z(0x1ed),a124z(0x1f6)],'validOpts':[]},async function(a,b){const A=a124z;try{const c=this['fsi'][A(0x1da)](),d=this[A(0x1f1)][A(0x1d5)](),f=this[A(0x1f1)][A(0x1d9)]();await this['fsi'][A(0x1db)](c,async()=>{const B=A;try{!b[B(0x20b)]&&(b[B(0x20b)]='en');!b[B(0x1e5)]&&!this['fsi'][B(0x1d0)](B(0x1ec))&&(Log[B(0x1e6)](B(0x207)),this[B(0x1f1)][B(0x20c)](B(0x1f5),{'cwd':f}),this[B(0x1f1)][B(0x204)](B(0x210),!![]));const g=this[B(0x1f1)][B(0x1df)]({'pathParts':[B(0x20a),'startup',B(0x1e4),'index.js']}),h=this[B(0x1f1)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[B(0x1f1)][B(0x1f7)](a124e['readFileSync'](h)[B(0x1d3)](),B(0x1dc))[0x0]&&!![];if(c[B(0x202)][B(0x1d1)]===B(0x1e0)){!i&&this[B(0x1f1)][B(0x1ff)]({'filePath':h,'content':B(0x208)});const t=this['fsi'][B(0x1df)]({'pathParts':['imports',B(0x1ee),'server',B(0x1e8)]}),u=this[B(0x1f1)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[B(0x1f1)][B(0x1f7)](a124e[B(0x1d6)](u)[B(0x1d3)](),B(0x1dc))[0x0]&&!![];!v&&this['fsi'][B(0x1ff)]({'filePath':u,'content':B(0x208)});}else!i&&this[B(0x1f1)][B(0x1ff)]({'filePath':h,'content':B(0x208)});const j={'app':d['appName'],'config':c},k=this[B(0x1f1)]['pathFromApp']({'pathParts':[B(0x20a),'startup',B(0x1f4),B(0x1dd),B(0x1fa),B(0x1fe)]}),l=this['fsi'][B(0x211)](this[B(0x1f1)][B(0x1e3)]({'pathParts':[k],'config':c}));!l&&await this[B(0x1f1)][B(0x1e9)]({'srcPath':B(0x1f2),'destPath':k,'framework':B(0x1d4),'context':j,'config':c});const m=this[B(0x1f1)][B(0x1df)]({'pathParts':['imports','startup',B(0x1f4),B(0x1dd),B(0x1fa),'locales',b[B(0x20b)]+B(0x1ef)]}),n=this['fsi'][B(0x1e3)]({'pathParts':[m],'config':c}),o=this[B(0x1f1)][B(0x211)](n);!o?await this[B(0x1f1)]['template']({'srcPath':'i18n/locales.js','destPath':m,'framework':'service','context':j,'config':c}):Log[B(0x1e6)](B(0x203)+n);const p=this[B(0x1f1)]['pathFromApp']({'pathParts':[B(0x20a),'startup',B(0x1f4),'services',B(0x1fa),B(0x200),B(0x1d8)+c[B(0x202)]['js']]}),q=this['fsi'][B(0x1e3)]({'pathParts':[p],'config':c}),r=this['fsi'][B(0x211)](q);!r&&await this[B(0x1f1)][B(0x1e9)]({'srcPath':'i18n/index.js','destPath':p,'framework':B(0x1d4),'context':j,'config':c});const s=this[B(0x1f1)][B(0x1f7)](a124e[B(0x1d6)](p)[B(0x1d3)](),'default\x20as\x20'+b[B(0x20b)])[0x0]&&!![];!s?await this['fsi'][B(0x1d7)]({'filePath':p,'content':B(0x1f8)+b[B(0x20b)]+'\x20}\x20from\x20\x27./'+b['lang']+'\x27;'}):Log['warn'](B(0x1eb)+p);}catch(w){Log[B(0x20f)](w),process['exit'](0x1);}});}catch(g){Log['error'](g),process[A(0x1fb)](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(a,b){const j=a125d,c=a();while(!![]){try{const d=parseInt(j(0x1a9))/0x1+parseInt(j(0x1a5))/0x2*(parseInt(j(0x1ba))/0x3)+parseInt(j(0x1b8))/0x4*(-parseInt(j(0x1ad))/0x5)+parseInt(j(0x1a8))/0x6+parseInt(j(0x1ab))/0x7+parseInt(j(0x1a6))/0x8+-parseInt(j(0x1ae))/0x9*(parseInt(j(0x1b1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x29b06));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a['toString']()[l(0x1af)]('(((.+)+)+)+$')[l(0x1b2)]()[l(0x1b3)](a125a)[l(0x1af)](l(0x1a7));});a125a();import a125e from'minimist';import a125f from'os';import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125m(0x1b7)]),__dirname=a125g['dirname'](__filename);global[a125m(0x1ac)]=__dirname;const total_memory=a125f[a125m(0x1aa)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0x1b6)](total_mem_in_mb),process[a125m(0x1bf)][a125m(0x1bc)]=a125m(0x1b0)+total_mem_in_mb,process[a125m(0x1bf)][a125m(0x1be)]='1',process[a125m(0x1bf)]['NODE_NO_WARNINGS']='1';const argv=a125e(process[a125m(0x1b5)][a125m(0x1bb)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x1b4)](JSON[a125m(0x1a4)](argv));delete deepCopyArgv['_'];function a125c(){const n=['525519JqHwhR','search','--max-old-space-size=','70AXgmCL','toString','constructor','parse','argv','floor','url','76ytApks','apply','3azxCuQ','slice','TOOL_NODE_FLAGS','run','BROWSERSLIST_IGNORE_OLD_DATA','env','stringify','158988HsTpKB','1045968hCBehC','(((.+)+)+)+$','720768KXwSAp','189525JVokjE','totalmem','2321109OQLTDY','MAKA_COMMAND_PATH','71575iCraKz'];a125c=function(){return n;};return a125c();}const opts=a125h['camelizeKeys'](deepCopyArgv);function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a125d(a,b);}a125i[a125m(0x1bd)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0x165))/0x1+parseInt(I(0x173))/0x2+parseInt(I(0x15b))/0x3+parseInt(I(0x17c))/0x4*(-parseInt(I(0x133))/0x5)+parseInt(I(0x185))/0x6+parseInt(I(0x14d))/0x7*(-parseInt(I(0x149))/0x8)+-parseInt(I(0x139))/0x9*(parseInt(I(0x176))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x7ea7a));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0x17d)]()[K(0x170)](K(0x140))['toString']()[K(0x180)](a126a)[K(0x170)]('(((.+)+)+)+$');});a126a();import a126e from'path';import a126f from'os';import a126g from'fs';const homeDir=a126f[a126L(0x17f)]();import{Docker}from'./tools/docker/docker.class.js';function a126c(){const a2=['push','68208HDdfcj','options','engines','70KteEwj','list','validateMeteorInstall','root','Please\x20choose\x20a\x20value\x20for\x20','length','69444xYxIpA','toString','every','homedir','constructor','ask','Invalid\x20option:\x20','No\x20usage\x20provided.','proGenerators','5560884pRaKYN','match','getAppProjectConfigs','docker','115sKPUOm','Please\x20provide\x20a\x20value\x20for\x20','charAt','No\x20description\x20provided.','error','description','677349uCtXqQ','getShortName','map','help','Please\x20provide\x20a\x20resource\x20name:','find','remapShortToLong','(((.+)+)+)+$','validateEngines','isGenerator','Please\x20choose\x20a\x20valid\x20value\x20for\x20','isPro','shortDesc','\x20installed\x20to\x20use\x20this\x20command.','name','config','24vMlJtR','NIE','env','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','1886507BOrYnL','To\x20use\x20this\x20command,\x20\x22','Invalid\x20value\x20for\x20','Please\x20choose\x20an\x20environment','parent','usage','roles','Invalid\x20argument:\x20','AppData','keys','getMakaProjectConfig','.meteor','validateMakaProject','join','2926644VjkZbr','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','formatToNamedParam','singleLicense','getPro','platform','To\x20use\x20this\x20generator,\x20\x22','resourceName','fsi','string','316945jjPmVQ','validateParams','includes','None','findProjectDirectory','examples','apply','aliases','exit','domainLicense','concat','search','proCommands'];a126c=function(){return a2;};return a126c();}function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x132;let f=c[d];return f;},a126d(a,b);}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{['docker'];[a126L(0x163)];[a126L(0x174)];['name'];[a126L(0x151)];['_handler'];constructor(){const M=a126L;this[M(0x132)]=new Docker(),this['fsi']=new FSI();}[a126L(0x13a)](a){const N=a126L;return a[N(0x135)](0x0);}[a126L(0x13f)](a,b){const O=a126L,c=this[O(0x15d)](b),d={...a};for(const e of c){const f=this[O(0x13a)](e[O(0x147)]);a[f]&&(d[e[O(0x147)]]=a[f],delete d[f]);}return d;}[a126L(0x15d)](a){const P=a126L;if(a[P(0x17e)](b=>typeof b===P(0x164)))return a[P(0x13b)](b=>({'name':b}));return a;}['match'](a){const Q=a126L,b=[this[Q(0x147)]]['concat'](this[Q(0x174)]['aliases']||[]);return this[Q(0x151)]&&b['push'](this[Q(0x151)]),b['includes'](a);}[a126L(0x159)](){const R=a126L,a=this[R(0x163)][R(0x169)]();return a!==![]?!![]:![];}[a126L(0x178)](){const S=a126L;let a=a126e[S(0x15a)](homeDir,S(0x158));const b=process[S(0x160)]==='win32';if(b){a=a126e[S(0x15a)](homeDir,S(0x155),'Local',S(0x158));if(!a126g['existsSync'](a))return![];}else{if(!a126g['existsSync'](a))return![];}return!![];}[a126L(0x141)](a){const T=a126L,b=this[T(0x163)][T(0x157)](),c=b[T(0x175)],d=Object[T(0x156)](a);if(d[T(0x17b)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x137)]('You\x20must\x20have\x20'+e+'\x20version\x20'+a[e]+T(0x146));throw UsageError;}}}async[a126L(0x166)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x156)](b);if(h[U(0x167)](U(0x162))&&b[U(0x162)]===undefined&&!g){const m=await Actions[U(0x181)](U(0x13d));b[U(0x162)]=m;}let i=[],j=b;if(d){i=this[U(0x15d)](d),j=this[U(0x13f)](b,i);if(i&&i?.[U(0x17b)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x156)](j)[U(0x167)](o)){if(o==='env'){const r=this[U(0x163)][U(0x187)](),s=await Actions[U(0x174)]({'type':U(0x177),'name':U(0x14b),'message':U(0x150),'choices':r});b[U(0x14b)]=s[U(0x14b)];}else{const t=p;if(t){const u=await Actions[U(0x174)]({'type':U(0x177),'name':o,'message':U(0x17a)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](U(0x134)+o);if(v[U(0x186)](q))b[o]=v;else{Log[U(0x137)](U(0x14f)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x181)]('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[U(0x137)](U(0x14f)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x15d)](f),l=b;if(k&&Object[U(0x156)](k)?.[U(0x17b)]>0x0){k=k[U(0x16f)](i||[]),k[U(0x172)]({'name':U(0x162),'hidden':!![]}),k['push']({'name':U(0x13c),'boolFlag':!![]}),k[U(0x172)]({'name':'dir','hidden':!![]}),k[U(0x172)]({'name':'cwd','hidden':!![]}),k['push']({'name':U(0x179),'hidden':!![]}),k['push']({'name':U(0x148),'hidden':!![]}),l=this[U(0x13f)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions['options']({'type':'list','name':z,'message':U(0x143)+z,'choices':A});l[z]=D[z];}}if(k[U(0x17b)]>0x0)for(const E of Object[U(0x156)](l)){const F=k[U(0x13e)](G=>G['name']===E);if(!F){Log[U(0x137)](U(0x182)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[U(0x167)](G)){Log['error'](U(0x154)+G);const H=await Actions[U(0x181)](U(0x14c)+G);a[a['indexOf'](G)]=H;}}return Object['assign'](j,l);}async['validateMakaSubscription'](a){const V=a126L;try{if(!a)return;const b=await this[V(0x163)][V(0x15f)]();!b&&(Log[V(0x137)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[V(0x16d)](0x1));const c=!b?.[V(0x153)][V(0x167)](V(0x15e))&&!b?.['roles'][V(0x167)](V(0x16e));if(this['isCommand'](a)){const d=V(0x14e)+a[V(0x147)]+V(0x15c);if(a[V(0x174)]['disableAuthCheck'])return;const f=b?.[V(0x171)][V(0x167)](a['name'])||b?.[V(0x171)][V(0x167)](a[V(0x151)]||'')||this[V(0x174)][V(0x144)];if(f&&c)throw d;}else{if(this[V(0x142)](a)){const g=b?.[V(0x184)][V(0x167)](a[V(0x147)])||b?.[V(0x184)][V(0x167)](a['parent']||'');if(g&&c)throw V(0x161)+a[V(0x147)]+V(0x15c);}}}catch(h){Log['error'](h),process[V(0x16d)](0x1);}}['isCommand'](a){return'options'in a;}[a126L(0x142)](a){const W=a126L;return!(W(0x174)in a);}['description'](){const X=a126L;return this[X(0x174)][X(0x138)]||this[X(0x174)][X(0x145)]||X(0x136);}[a126L(0x145)](){const Y=a126L;return this[Y(0x174)]['shortDesc']||Y(0x14a);}['usage'](){const Z=a126L;return this['options'][Z(0x152)]||Z(0x183);}[a126L(0x16a)](){const a0=a126L;return this[a0(0x174)][a0(0x16a)]||[];}[a126L(0x16c)](){const a1=a126L;return this[a1(0x174)][a1(0x16c)]||a1(0x168);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a127c(){const k=['constructor','32fCJEir','search','675iVlyei','options','15QUsHSp','1602986tcOXyA','91263pwULiV','48072VGgvzv','1190PGaSzi','36047iVBpKZ','(((.+)+)+)+$','1796322iIckeN','5864620PeoJVy','prompt','962944LZhGOI','answer','confirm','password'];a127c=function(){return k;};return a127c();}const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0x1e2))/0x1+parseInt(f(0x1e7))/0x2*(-parseInt(f(0x1da))/0x3)+parseInt(f(0x1e0))/0x4+parseInt(f(0x1d8))/0x5*(-parseInt(f(0x1df))/0x6)+-parseInt(f(0x1d9))/0x7+-parseInt(f(0x1db))/0x8*(-parseInt(f(0x1d6))/0x9)+parseInt(f(0x1dc))/0xa*(-parseInt(f(0x1dd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xd5d8c));function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x1d6;let f=c[d];return f;},a127d(a,b);}const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const g=a127d;return a127a['toString']()[g(0x1e8)](g(0x1de))['toString']()[g(0x1e6)](a127a)[g(0x1e8)](g(0x1de));});a127a();import a127e from'inquirer';export class Actions{static async['ask'](a,b){const h=a127d,{answer:c}=await a127e['prompt']({'type':b?h(0x1e5):'input','name':h(0x1e3),'message':a});return c;}static async[a127i(0x1e4)](a,b=![]){const j=a127i,{answer:c}=await a127e[j(0x1e1)]({'type':j(0x1e4),'name':j(0x1e3),'message':a,'default':b});return c;}static async[a127i(0x1d7)](a){const b=await a127e['prompt'](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x117))/0x1+parseInt(p(0x132))/0x2*(-parseInt(p(0x121))/0x3)+-parseInt(p(0xbd))/0x4+-parseInt(p(0xd6))/0x5+-parseInt(p(0xf1))/0x6*(parseInt(p(0x128))/0x7)+parseInt(p(0xea))/0x8+parseInt(p(0x113))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x5251d));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x11a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0xdd)]()[r(0xc2)](r(0x13b))[r(0xdd)]()['constructor'](a128a)[r(0xc2)](r(0x13b));});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xb8;let f=c[d];return f;},a128d(a,b);}import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';function a128c(){const X=['Instance\x20rebooted!','minCount','Error\x20creating\x20hosted\x20zone','createKeyPair','error','Error\x20generating\x20key\x20pair','.pem.txt','618986xeuAvF','$metadata','\x20CIDR:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','confirm','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','\x20Error\x20Rason:\x20','Key\x20Name:\x20[','ec2create','(((.+)+)+)+$','Successfully\x20linked\x20EC2\x20instance\x20','privateIp','\x20opened!','sgIds','listHostedZonesByName','running','Prices','instanceId','1065592IdRcLM','/dev/sdh','\x20ENV:\x20','exit','readFileSync','search','Pem\x20key\x20saved\x20to\x20','No\x20instances\x20found','Instances','vpcId','UPSERT','push','Invalid\x20choice','0.0.0.0/0','\x20NAME:\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','tag:created-by','VpcId','httpStatusCode','maxCount','send','getMakaProjectConfig','length','Name','\x20PUB_IP:\x20','2431805VALrIR','isFile','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','name','deleteKeyPair','status','ask','toString','Port\x20','Reservations','\x20to\x20','ssh.json','sgPorts','createFile','success','cidr','Could\x20not\x20find\x20hosted\x20zone','Please\x20choose\x20a\x20VPC:\x20[0]\x20','type','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','858096GutVpt','join','changeResourceRecordSets','Description:','maka-cli','find','**\x20Available\x20\x20VPCs\x20**','36Snbdut','chmod\x20400\x20','parse','chooseInstance','_keys','fsi','Availability','tcp','file://','ID:\x20','now','utf8','RegistrationPrice','pem','\x20INSTANCE_ID:\x20','AVAILABLE','ec2terminateInstance','split','checkDomainAvailability','createKeyPairEC2Key','instance','KeyMaterial','config','deleteSecurityGroup','ec2describeInstances','Web\x20App','registerDomain','chooseVPC','ecrCreateRepository','reason','notice','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','ingressRule','environment','13839120XReTCr','route53CreateHostedZone','forEach','GroupId','89971hjSvjS','ignore','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','apply','GroupName','sgId','writeFileSync','CidrBlock','description','Hosted\x20zone\x20created\x20successfully!','3XZQjeD','The\x20domain\x20\x27','HostedZones','ec2createSG','Error\x20saving\x20pem\x20file,\x20aborting','log','stringify','181461nxhOBC','$response','\x27\x20has\x20been\x20registered\x20successfully.'];a128c=function(){return X;};return a128c();}import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a128s(0xf6)];constructor(){const t=a128s;this[t(0xf6)]=new FSI();}async[a128s(0x10d)](a){const u=a128s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x12f)](f);}}async[a128s(0x114)](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0xfb)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[v(0xe4)](v(0x120));}catch(d){Log['error'](v(0x12d)),console['error'](d);}}async[a128s(0x10b)](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['send'](f),Log[w(0x10f)](w(0x122)+b+w(0x12a));}catch(g){Log[w(0x12f)](w(0xd8)),Log['warn']('From\x20AWS:'),console['error']('\x20Status\x20Code:\x20'+g[w(0x129)]['statusCode']),console[w(0x12f)](w(0x138)+g[w(0x129)][w(0x10e)]);}}async[a128s(0x103)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0xd1)](c),e=d[x(0xf7)]===x(0x100);if(e){const f=a['split']('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0xd1)](h);if(i&&i['Prices']&&i[x(0xbb)][0x0]?.[x(0xfd)]){const j=i['Prices'][0x0][x(0xfd)];return{'available':e,'cost':j};}}catch(k){console[x(0x12f)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a128s;try{const d=await route53[y(0xb9)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[y(0x12f)](y(0xe6));const e=d?.[y(0x123)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0xc7),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0xec)](f),Log[y(0x10f)](y(0x13c)+a+y(0xe0)+c);}catch(g){console['error'](y(0xcc),g);}}async[a128s(0x13a)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0xbe),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[z(0xe8)],'KeyName':a['key'],'MaxCount':a[z(0xd0)],'MinCount':a[z(0x12c)],'SecurityGroupIds':a[z(0xb8)][z(0x102)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':z(0x105),'Tags':a['tags']}]};a['userData']&&(b['UserData']=z(0xf9)+a['userData']);const c=new RunInstancesCommand(b),d=await client[z(0xd1)](c);return d;}catch(f){Log[z(0x12f)](f);}}async[a128s(0x101)](a){const A=a128s;try{const b={'InstanceIds':[a[A(0xbc)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x12f)](f),{};}}async[a128s(0x104)]({keyName:a,env:b}){const B=a128s,c=this[B(0xf6)]['getAppConfigPath'](b),d=a128f[B(0xeb)](c,B(0xf5),a+B(0x131));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0xd1)](g),i=h[B(0x106)];if(i){await this[B(0xf6)][B(0xe3)]({'filePath':d,'data':i}),execSync(B(0xf2)+d,{'stdio':B(0x118)});const j=this[B(0xf6)][B(0xd7)](d);if(j)return Log[B(0xe4)](B(0xc3)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x125));}else throw new Error(B(0x130));}catch(k){Log[B(0x12f)](k),process[B(0xc0)](0x1);}}async[a128s(0x111)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0xf8),'IpRanges':[{'CidrIp':C(0xca),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](C(0xde)+a+C(0x13e)),await client['send'](d);}async[a128s(0x124)](a){const D=a128s;try{a[D(0x11f)]===''&&(a['description']=await Actions['ask'](D(0xed))||D(0x10a));const b={'Description':a['description'],'GroupName':a['name'],'VpcId':a[D(0xc6)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0xd1)](c),{GroupId:f}=d;if(!d)throw new Error(D(0xe9));f&&a[D(0xe2)]['forEach'](g=>{const E=D;this[E(0x111)]({'port':parseInt(g),'groupId':f});}),Log['success']('Created:\x20'+f+D(0xcb)+a['name']);}catch(g){return Log[D(0x12f)](g),![];}return!![];}async['ec2describeKeys'](a){const F=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0xd1)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const G=F;h['KeyName']&&b[G(0xc8)]({'id':i,'name':h['KeyName']});}),b[F(0xd3)]>0x0&&b[F(0x115)](h=>{const H=F;h['name']===a?.['suggestion']?Log[H(0xe4)](H(0xfa)+h['id']+H(0xcb)+h[H(0xd9)]):Log[H(0x10f)](H(0xfa)+h['id']+H(0xcb)+h[H(0xd9)]);})):Log[F(0x12f)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[F(0x12f)](h);}return b;}async[a128s(0xda)](a){const I=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[I(0x12f)](d),process[I(0xc0)](0x1);}}async[a128s(0x109)](){const J=a128s,a=[];try{const b={'Filters':[{'Name':J(0xcd),'Values':[J(0xee)]}]},c=new DescribeInstancesCommand(b),d=await client[J(0xd1)](c);d[J(0xdf)]?.[J(0x115)]((f,g)=>{const K=J;if(f?.[K(0xc5)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0xc5)][0x0],n=m?.[K(0xef)](({Key:o})=>o===K(0x112));a[K(0xc8)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0xd4)],'name':l,'env':n?.['Value']});}}),a[J(0xd3)]>0x0?a[J(0x115)](f=>{const L=J,g='ID:\x20'+f['id']+L(0xcb)+f['name']+L(0xbf)+f['env']+'\x20STATUS:\x20'+f[L(0xdb)]+L(0xff)+f['instanceId']+L(0xd5)+f['publicIp']+'\x20PRIV_IP:\x20'+f[L(0x13d)];if(f['status']==='terminated')Log['error'](g);else f['status']===L(0xba)?Log['success'](g):Log['notice'](g);}):Log[J(0x12f)](J(0x110));}catch(f){Log[J(0x12f)](f);}return a;}async['ec2rebootInstance'](a){const M=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[M(0xd1)](c);return d[M(0x133)][M(0xcf)]===0xc8&&Log[M(0xe4)](M(0x12b)),d;}catch(f){Log[M(0x12f)](f);}}async[a128s(0x10c)](){const N=a128s;let a='';Log[N(0x10f)](N(0xf0));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const O=N;g[O(0xce)]&&g[O(0x11e)]&&e[O(0xc8)]({'id':h,'vpcId':g['VpcId'],'cidr':g[O(0x11e)]});});e[N(0x115)](function(g){const P=N;console[P(0x126)](P(0xfa)+g['id']+'\x20VPCID:\x20'+g[P(0xc6)]+P(0x134)+g[P(0xe5)]);});const f=await Actions[N(0xdc)](N(0xe7))||0x0;e[N(0x115)](function(g){const Q=N;g['id']==f&&(a=g[Q(0xc6)],Log[Q(0xe4)](Q(0x135)+a+'\x0a'));});if(a==='')return Log[N(0x12f)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a128s(0xf4)](){const R=a128s,a=await this[R(0x109)]();if(a[R(0xd3)]===0x0)return Log[R(0x12f)](R(0xc4)),null;const b=await Actions[R(0xdc)](R(0x119));!b&&(Log[R(0x12f)](R(0xc9)),process[R(0xc0)](0x0));const c=a[R(0xef)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x12e)]({env:a}){const S=a128s,b=this[S(0xf6)][S(0xd2)](),{appName:c}=b,d=c+'-'+a,f=await Actions[S(0xdc)](S(0x139)+d+']\x20')||d,{filePath:g}=await this[S(0x104)]({'keyName':f,'env':a});try{const h=await Actions[S(0x136)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[S(0xc1)](a128f[S(0xeb)](S(0x107),a,S(0xe1)),S(0xfc)),j=JSON[S(0xf3)](i);j[S(0xfe)]=a128f[S(0xeb)]('_keys',f+S(0x131)),a128e[S(0x11d)](a128f[S(0xeb)](S(0x107),a,S(0xe1)),JSON[S(0x127)](j,null,0x2));}catch(k){Log['error'](k),Log[S(0x12f)](S(0x137));}}catch(l){Log[S(0x12f)](l),process[S(0xc0)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const T=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0xd1)](d),{SecurityGroups:f}=e;f&&f[T(0x115)](function(i,j){const U=T;i[U(0x11b)]&&i[U(0x116)]&&b[U(0xc8)]({'id':j,'name':i[U(0x11b)],'sgId':i[U(0x116)]});});let g='',h=0x0;return b[T(0x115)](function(i){const V=T;i[V(0xd9)]===a&&(g=i[V(0x11c)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x108)](a){const W=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0xd1)](c);}catch(d){Log[W(0x12f)](d),process[W(0xc0)](0x1);}}}
|
|
1
|
+
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x193))/0x1*(parseInt(p(0x197))/0x2)+-parseInt(p(0x17c))/0x3+parseInt(p(0x188))/0x4+-parseInt(p(0x1be))/0x5+-parseInt(p(0x1c1))/0x6+parseInt(p(0x14d))/0x7*(-parseInt(p(0x1cb))/0x8)+parseInt(p(0x192))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xaf617));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x1c4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x1bc)]()[r(0x15d)](r(0x17a))[r(0x1bc)]()[r(0x19a)](a128a)['search']('(((.+)+)+)+$');});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x145;let f=c[d];return f;},a128d(a,b);}import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';function a128c(){const W=['Pem\x20key\x20saved\x20to\x20','isFile','Hosted\x20zone\x20created\x20successfully!','env','ec2describeKeys','KeyName','maxCount','/dev/sdh','cidr','join','\x20ENV:\x20','forEach','Error\x20generating\x20key\x20pair','now','**\x20Available\x20\x20VPCs\x20**','\x20Error\x20Rason:\x20','tcp','Successfully\x20linked\x20EC2\x20instance\x20','\x20STATUS:\x20','VpcId','getAppConfigPath','name','chooseVPC','getMakaProjectConfig','error','.pem.txt','sgPorts','deleteSecurityGroup','file://','pop','confirm','changeResourceRecordSets','toString','GroupName','5977470FGMKBo','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','ID:\x20','7974702AXfOrY','\x20to\x20','tags','apply','reason','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','status','createKeyPair','ask','sgId','315408tPkkJl','\x20NAME:\x20','createKeyPairEC2Key','instanceId','Error\x20creating\x20hosted\x20zone','UserData','\x27\x20has\x20been\x20registered\x20successfully.','subnet','ec2createSG','UPSERT','HostedZones','\x20CIDR:\x20','\x20VPCID:\x20','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','writeFileSync','Invalid\x20choice','description','\x20INSTANCE_ID:\x20','14cYDUQY','log','createFile','Created:\x20','maka-cli','chooseInstance','route53CreateHostedZone','vpcId','stringify','send','running','getSecurityGroups','listHostedZonesByName','imageId','linkEC2ToRoute53','sgIds','search','utf8','\x20PRIV_IP:\x20','Instances','readFileSync','RegistrationPrice','ec2create','httpStatusCode','pem','tag:created-by','config','Description:','ec2describeInstances','userData','Value','environment','length','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','notice','\x20opened!','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','Error\x20saving\x20pem\x20file,\x20aborting','Could\x20not\x20find\x20hosted\x20zone','$response','ignore','Instance\x20rebooted!','AVAILABLE','KeyMaterial','exit','(((.+)+)+)+$','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','301425pYYong','success','_keys','suggestion','terminated','GroupId','split','Web\x20App','registerDomain','ssh.json','ec2rebootInstance','0.0.0.0/0','1186568LbkkBP','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','find','fsi','Prices','warn','instance','privateIp','Availability','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','16860609zEmuIo','3nOZhOe','From\x20AWS:','Key\x20Name:\x20[','parse','834836uowFfP','push','Error\x20fetching\x20domain\x20pricing:','constructor','Please\x20choose\x20a\x20VPC:\x20[0]\x20'];a128c=function(){return W;};return a128c();}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(0x18b)];constructor(){const t=a128s;this[t(0x18b)]=new FSI();}async['ecrCreateRepository'](a){const u=a128s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x156)](c);return d;}catch(f){Log[u(0x1b4)](f);}}async[a128s(0x153)](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0x1a9)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x156)](c),Log[v(0x17d)](v(0x19e));}catch(d){Log[v(0x1b4)](v(0x1cf)),console['error'](d);}}async[a128s(0x184)](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['send'](f),Log[w(0x16f)]('The\x20domain\x20\x27'+b+w(0x1d1));}catch(g){Log['error'](w(0x1bf)),Log[w(0x18d)](w(0x194)),console['error']('\x20Status\x20Code:\x20'+g[w(0x174)]['statusCode']),console[w(0x1b4)](w(0x1ab)+g[w(0x174)][w(0x1c5)]);}}async['checkDomainAvailability'](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x156)](c),e=d[x(0x190)]===x(0x177);if(e){const f=a['split']('.')[x(0x1b9)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x156)](h);if(i&&i['Prices']&&i[x(0x18c)][0x0]?.[x(0x162)]){const j=i[x(0x18c)][0x0][x(0x162)];return{'available':e,'cost':j};}}catch(k){console[x(0x1b4)](x(0x199),k);}}return{'available':e};}async[a128s(0x15b)](a,b,c){const y=a128s;try{const d=await route53[y(0x159)]({'DNSName':c});if(!d?.[y(0x145)])throw Log[y(0x1b4)](y(0x173));const e=d?.[y(0x145)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x1d4),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x1bb)](f),Log['notice'](y(0x1ad)+a+y(0x1c2)+c);}catch(g){console['error']('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a128s(0x163)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x1a3),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x15a)],'InstanceType':a['type'],'KeyName':a['key'],'MaxCount':a[z(0x1a2)],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x15c)][z(0x182)](','),'SubnetId':a[z(0x1d2)],'TagSpecifications':[{'ResourceType':z(0x18e),'Tags':a[z(0x1c3)]}]};a['userData']&&(b[z(0x1d0)]=z(0x1b8)+a[z(0x16a)]);const c=new RunInstancesCommand(b),d=await client[z(0x156)](c);return d;}catch(f){Log[z(0x1b4)](f);}}async['ec2terminateInstance'](a){const A=a128s;try{const b={'InstanceIds':[a[A(0x1ce)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x156)](c);return d;}catch(f){return Log[A(0x1b4)](f),{};}}async[a128s(0x1cd)]({keyName:a,env:b}){const B=a128s,c=this['fsi'][B(0x1b0)](b),d=a128f[B(0x1a5)](c,B(0x17e),a+B(0x1b5));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x156)](g),i=h[B(0x178)];if(i){await this[B(0x18b)][B(0x14f)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':B(0x175)});const j=this[B(0x18b)][B(0x19d)](d);if(j)return Log[B(0x17d)](B(0x19c)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x172));}else throw new Error(B(0x1a8));}catch(k){Log[B(0x1b4)](k),process[B(0x179)](0x1);}}async['ingressRule']({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x1ac),'IpRanges':[{'CidrIp':C(0x187),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice']('Port\x20'+a+C(0x170)),await client['send'](d);}async[a128s(0x1d3)](a){const D=a128s;try{a[D(0x14b)]===''&&(a[D(0x14b)]=await Actions[D(0x1c9)](D(0x168))||D(0x183));const b={'Description':a['description'],'GroupName':a['name'],'VpcId':a[D(0x154)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(D(0x191));f&&a[D(0x1b6)][D(0x1a7)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success'](D(0x150)+f+D(0x1cc)+a[D(0x1b1)]);}catch(g){return Log[D(0x1b4)](g),![];}return!![];}async[a128s(0x1a0)](a){const E=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x156)](d);if(!f)throw E(0x191);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h['KeyName']&&b[F(0x198)]({'id':i,'name':h[F(0x1a1)]});}),b['length']>0x0&&b[E(0x1a7)](h=>{const G=E;h[G(0x1b1)]===a?.[G(0x17f)]?Log[G(0x17d)](G(0x1c0)+h['id']+'\x20NAME:\x20'+h[G(0x1b1)]):Log[G(0x16f)]('ID:\x20'+h['id']+G(0x1cc)+h[G(0x1b1)]);})):Log[E(0x1b4)](E(0x17b));}catch(h){Log[E(0x1b4)](h);}return b;}async['deleteKeyPair'](a){const H=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[H(0x1b4)](d),process['exit'](0x1);}}async[a128s(0x169)](){const I=a128s,a=[];try{const b={'Filters':[{'Name':I(0x166),'Values':[I(0x151)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d['Reservations']?.['forEach']((f,g)=>{const J=I;if(f?.[J(0x160)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x160)][0x0],n=m?.[J(0x18a)](({Key:o})=>o===J(0x16c));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0x16b)]});}}),a[I(0x16d)]>0x0?a[I(0x1a7)](f=>{const K=I,g='ID:\x20'+f['id']+K(0x1cc)+f[K(0x1b1)]+K(0x1a6)+f[K(0x19f)]+K(0x1ae)+f[K(0x1c7)]+K(0x14c)+f[K(0x1ce)]+'\x20PUB_IP:\x20'+f['publicIp']+K(0x15f)+f[K(0x18f)];if(f['status']===K(0x180))Log['error'](g);else f[K(0x1c7)]===K(0x157)?Log['success'](g):Log[K(0x16f)](g);}):Log[I(0x1b4)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log['error'](f);}return a;}async[a128s(0x186)](a){const L=a128s;try{const b={'InstanceIds':[a[L(0x1ce)]]},c=new RebootInstancesCommand(b),d=await client[L(0x156)](c);return d['$metadata'][L(0x164)]===0xc8&&Log[L(0x17d)](L(0x176)),d;}catch(f){Log[L(0x1b4)](f);}}async[a128s(0x1b2)](){const M=a128s;let a='';Log[M(0x16f)](M(0x1aa));const b=new DescribeVpcsCommand({}),c=await client[M(0x156)](b),{Vpcs:d}=c,e=[];d&&d[M(0x1a7)]((g,h)=>{const N=M;g[N(0x1af)]&&g['CidrBlock']&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g['CidrBlock']});});e['forEach'](function(g){const O=M;console[O(0x14e)](O(0x1c0)+g['id']+O(0x147)+g[O(0x154)]+O(0x146)+g[O(0x1a4)]);});const f=await Actions[M(0x1c9)](M(0x19b))||0x0;e[M(0x1a7)](function(g){const P=M;g['id']==f&&(a=g[P(0x154)],Log['success'](P(0x171)+a+'\x0a'));});if(a==='')return Log[M(0x1b4)](M(0x1c6)),'';return a;}async[a128s(0x152)](){const Q=a128s,a=await this['ec2describeInstances']();if(a[Q(0x16d)]===0x0)return Log[Q(0x1b4)]('No\x20instances\x20found'),null;const b=await Actions['ask'](Q(0x16e));!b&&(Log[Q(0x1b4)](Q(0x14a)),process['exit'](0x0));const c=a[Q(0x18a)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x1c8)]({env:a}){const R=a128s,b=this[R(0x18b)][R(0x1b3)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x1c9)](R(0x195)+d+']\x20')||d,{filePath:g}=await this[R(0x1cd)]({'keyName':f,'env':a});try{const h=await Actions[R(0x1ba)](R(0x189),!![]);if(h)try{const i=a128e[R(0x161)](a128f['join'](R(0x167),a,R(0x185)),R(0x15e)),j=JSON[R(0x196)](i);j[R(0x165)]=a128f[R(0x1a5)](R(0x17e),f+R(0x1b5)),a128e[R(0x149)](a128f[R(0x1a5)](R(0x167),a,R(0x185)),JSON[R(0x155)](j,null,0x2));}catch(k){Log['error'](k),Log['error'](R(0x148));}}catch(l){Log[R(0x1b4)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x158)](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x156)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const T=S;i['GroupName']&&i[T(0x181)]&&b[T(0x198)]({'id':j,'name':i[T(0x1bd)],'sgId':i['GroupId']});});let g='',h=0x0;return b[S(0x1a7)](function(i){const U=S;i[U(0x1b1)]===a&&(g=i[U(0x1ca)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x1b7)](a){const V=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x156)](c);}catch(d){Log[V(0x1b4)](d),process[V(0x179)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a129d,c=a();while(!![]){try{var d
|
|
1
|
+
function a129c(){var n=['2FTPOVw','apply','(((.+)+)+)+$','197203pmMprB','2364201faRTnt','1762915thJjvz','search','4slUglk','337416bnPLwj','65748uXIszS','toString','constructor','7595110kXftiR','55YKcgsC','806703NXlqtb'];a129c=function(){return n;};return a129c();}(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0x1e7))/0x1*(parseInt(k(0x1e4))/0x2)+-parseInt(k(0x1e3))/0x3*(-parseInt(k(0x1eb))/0x4)+parseInt(k(0x1f1))/0x5*(-parseInt(k(0x1ed))/0x6)+parseInt(k(0x1e9))/0x7+parseInt(k(0x1ec))/0x8+parseInt(k(0x1e8))/0x9+-parseInt(k(0x1f0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x22dae));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x1e3;var f=c[d];return f;},a129d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x1e5)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0x1ee)]()[m(0x1ea)]('(((.+)+)+)+$')[m(0x1ee)]()[m(0x1ef)](e)[m(0x1ea)](m(0x1e6));});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
|
+
function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x1da;let f=c[d];return f;},a130d(a,b);}const a130m=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(0x1f3))/0x1+-parseInt(j(0x1ef))/0x2+parseInt(j(0x1db))/0x3+parseInt(j(0x1e5))/0x4+parseInt(j(0x1e4))/0x5*(parseInt(j(0x1f1))/0x6)+parseInt(j(0x1e6))/0x7+-parseInt(j(0x1e7))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xd96b0));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x1dd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x1df)]()['search']('(((.+)+)+)+$')[l(0x1df)]()[l(0x1ec)](a130a)[l(0x1e2)](l(0x1eb));});a130a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a130m(0x1f2)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=[n(0x1f2),a,b+'.dkr.ecr.'+c+n(0x1da)+d],g=n(0x1dc)+f[n(0x1e1)]('\x20'),h=execSync(g,{'stdio':n(0x1e3)})[n(0x1df)]();return h;}catch(i){return Log[n(0x1e0)](i),'';}}static[a130m(0x1ed)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0x1ea),'--username',o(0x1f0),o(0x1e9),a+o(0x1ee)+b+o(0x1de)],d=o(0x1dc)+c[o(0x1e1)]('\x20'),f=execSync(d,{'stdio':'inherit'})[o(0x1df)]();return f;}catch(g){return Log[o(0x1e0)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=[p(0x1e8),a+p(0x1ee)+b+p(0x1da)+c],f=p(0x1dc)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x1e3)})[p(0x1df)]();return g;}catch(h){return Log[p(0x1e0)](h),'';}}}function a130c(){const q=['29944912qENjKc','push','--password-stdin','login','(((.+)+)+)+$','constructor','awsLogin','.dkr.ecr.','81588BlPvZe','AWS','54174WYEmfo','tag','1288521GtJKek','.amazonaws.com/','3103356hJmXPx','docker\x20','apply','.amazonaws.com','toString','error','join','search','inherit','950ucCXnd','700360GYHWqO','3226153RtyIaN'];a130c=function(){return q;};return a130c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-
|
|
1
|
+
function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x90;var f=c[d];return f;},a131d(a,b);}function a131c(){var i=['1021894QImmgA','7506472ggkTZE','toString','344340vxmWbU','search','(((.+)+)+)+$','294chJVpu','7297852OqvPVw','12613617bFcgAV','5tvyfgD','84324JBppFx','apply','2191956LoFitz'];a131c=function(){return i;};return a131c();}(function(a,b){var f=a131d,c=a();while(!![]){try{var d=-parseInt(f(0x97))/0x1+-parseInt(f(0x9a))/0x2+-parseInt(f(0x96))/0x3+parseInt(f(0x91))/0x4*(parseInt(f(0x93))/0x5)+-parseInt(f(0x94))/0x6*(-parseInt(f(0x90))/0x7)+-parseInt(f(0x98))/0x8+parseInt(f(0x92))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xe8b83));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0x95)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a[h(0x99)]()[h(0x9b)](h(0x9c))['toString']()['constructor'](a131a)[h(0x9b)]('(((.+)+)+)+$');});a131a();export{};
|