@maka/maka-cli 4.7.28 → 4.8.0
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
|
-
|
|
1
|
+
const a116l=a116d;function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x174;let f=c[d];return f;},a116d(a,b);}(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(0x17e))/0x1+-parseInt(j(0x186))/0x2*(-parseInt(j(0x17d))/0x3)+-parseInt(j(0x175))/0x4+parseInt(j(0x187))/0x5*(-parseInt(j(0x174))/0x6)+-parseInt(j(0x177))/0x7*(-parseInt(j(0x191))/0x8)+-parseInt(j(0x18d))/0x9+parseInt(j(0x18a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x7e6da));function a116c(){const o=['appPathPrefix','-rpc-method.','index.','3PEgeic','215421blBebU','import\x20\x27./methods','method/method.js','getMakaProjectConfig','toString','method','maka\x20{generate,\x20g}:{method,\x20m}\x20name','dir','316228uHKHsu','515VwfXjm','maka:check','(((.+)+)+)+$','11595760DcIswj','tsx','engines','2535588iEfGjh','-rpc-method\x27;','fsi','withValue','69880qdIvxh','pathFromApp','imports','resourceName','startup','template','5634ZbkIPv','3479320zrntwI','methods','532SOweMY','injectAtEndOfFile','create'];a116c=function(){return o;};return a116c();}const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const k=a116d;return a116a['toString']()['search'](k(0x189))[k(0x182)]()['constructor'](a116a)['search']('(((.+)+)+)+$');});a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a116l(0x179)]({'name':a116l(0x183),'aliases':['m'],'usage':a116l(0x184),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a116l(0x185)],'examples':['maka\x20g:method\x20todos']},async function(a,b){const m=a116l;try{const c=this['fsi'][m(0x181)]();await this[m(0x18f)][m(0x190)](c,async()=>{const n=m,d=paramCase(b['resourceName']),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[n(0x194)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[n(0x18c)]['js']===n(0x18b)&&(g='ts');await this[n(0x18f)]['checkMeteorPackage']([n(0x188),'ddp-rate-limiter','mdg:validated-method'],{'shouldInstall':!![]}),await this[n(0x18f)][n(0x196)]({'srcPath':n(0x180),'destPath':this['fsi'][n(0x192)]({'pathParts':[n(0x193),n(0x195),b[n(0x17a)],n(0x176),b[n(0x185)],d+n(0x17b)+g]}),'context':f,'config':c});const h=b[n(0x185)]?'/'+b[n(0x185)]+'/':'/',i=this[n(0x18f)][n(0x192)]({'pathParts':[n(0x193),n(0x195),b[n(0x17a)],n(0x17c)+c[n(0x18c)]['js']]});await this['fsi'][n(0x178)]({'filePath':i,'content':n(0x17f)+h+d+n(0x18e)});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d
|
|
1
|
+
const a117o=a117d;(function(a,b){const l=a117d,c=a();while(!![]){try{const d=-parseInt(l(0xca))/0x1+-parseInt(l(0xdc))/0x2+parseInt(l(0xc0))/0x3*(parseInt(l(0xd8))/0x4)+-parseInt(l(0xe0))/0x5+parseInt(l(0xce))/0x6+parseInt(l(0xe2))/0x7+parseInt(l(0xc9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x86739));function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0xbd;let f=c[d];return f;},a117d(a,b);}const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a117d;if(c){const e=c[m(0xd9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const n=a117d;return a117a[n(0xc8)]()[n(0xcb)](n(0xc5))[n(0xc8)]()[n(0xd3)](a117a)['search'](n(0xc5));});a117a();import a117e from'path';function a117c(){const r=['features','(((.+)+)+)+$','template/template.js','layout','toString','5643088gqReVP','811695xVqRSo','search','component','pathFromApp','14682FbFsOn','packages','noRename','pathFromProject','dir','constructor','ssr','package','withValue','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','732cbhCER','apply','store','engines','739420CKxyjN','.js','hasOwnProperty','tests/server','2086715heUscz','client','4456277BnICWN','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','fsi','lib','tests/client','graphql','resourceName','template','create','package/package.js','13197bdFAds','theme','/package.js','pathFromAppWithNoReWrite'];a117c=function(){return r;};return a117c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a117o(0xbe)]({'name':a117o(0xd5),'aliases':['p'],'usage':a117o(0xd7),'shortDesc':a117o(0xe3),'validOpts':['dir'],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a117o,c=paramCase(b[p(0xe8)]),d=this[p(0xe4)][p(0xcd)]({'pathParts':[p(0xcf),b[p(0xd2)],c]}),e=this[p(0xe4)][p(0xc3)]({'pathParts':[p(0xcf),b['dir'],c,'package.js']}),f=this[p(0xe4)]['getMakaProjectConfig']();await this['fsi'][p(0xd6)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a117e['relative'](this[q(0xe4)][q(0xd1)]({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0xe8)]),'camelCaseName':camelCase(b[q(0xe8)]),'fileName':c,'client':f[q(0xdb)][q(0xe1)],'graphql':f['engines'][q(0xe7)],'ssr':f[q(0xdb)][q(0xd4)],'isComponent':b['hasOwnProperty'](q(0xcc)),'isLayout':b[q(0xde)](q(0xc7)),'isStore':b[q(0xde)](q(0xda)),'features':f[q(0xc4)],'noRename':!![],'theme':f['engines'][q(0xc1)]};await this['fsi'][q(0xbd)]({'srcPath':q(0xbf),'destPath':e,'context':g,'config':f}),g[q(0xd0)]=![];const h=d+'/client/'+c+q(0xdd);await this[q(0xe4)][q(0xbd)]({'srcPath':q(0xc6),'destPath':h,'context':g,'config':f});const i=[q(0xe5),'server',q(0xe6),q(0xdf)];for(const j of i){const k=d+'/'+j+'/'+c+q(0xdd);await this['fsi'][q(0xbd)]({'srcPath':'package/'+j+q(0xc2),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a118l=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(0xd6))/0x1*(parseInt(j(0xb2))/0x2)+parseInt(j(0x97))/0x3*(-parseInt(j(0xd3))/0x4)+-parseInt(j(0xab))/0x5+parseInt(j(0xd8))/0x6+-parseInt(j(0x9a))/0x7+parseInt(j(0xa6))/0x8*(parseInt(j(0xb5))/0x9)+parseInt(j(0xd7))/0xa*(parseInt(j(0x92))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x72a93));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const k=a118d;return a118a[k(0xc0)]()[k(0xce)](k(0x9c))['toString']()[k(0xa1)](a118a)[k(0xce)]('(((.+)+)+)+$');});a118a();function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x91;let f=c[d];return f;},a118d(a,b);}import a118e from'path';import{Generator}from'../generator.js';function a118c(){const o=['maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','react','hasOwnProperty','features','client','assign','hooks','template/template.html','template/template.css','graphql','string','withValue','search','/imports/ui/','className','vanilla','warn','2873596ezQhUn','Generate\x20a\x20page.','test','27938RsdfnS','60WNexYB','4954872RHjsWj','injectAtBeginningOfFile','store','true','maka\x20g:page\x20todos/todos-item','406516iHscjI','.css','dir','route','setTemplate','3XiqlKU','installNpmPackage','layout','6229951JuKexX','Updating\x20npm\x20packages\x20...','(((.+)+)+)+$','root','api','none','fsi','constructor','relative','components','.html','ramda','7114568VVdtmS','ssr','layouts','baseDir','withHook','691030Bncrei','resourceName','processAndRunGenerator','engines','template','withTranslations','create','20eIwLuz','pathFromProject','injectTemplateModule','9nkTDHo','\x27;\x0a','import\x20\x27./','/imports/ui/pages','test/test.js','theme','html','component/component.js','pages','pathFromApp','fileName','toString','css'];a118c=function(){return o;};return a118c();}import{Log}from'../tools/log/log.class.js';import a118f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a118l(0xb1)]({'name':'page','aliases':aliases,'usage':a118l(0xc2),'shortDesc':a118l(0xd4),'validOpts':[{'name':a118l(0xa9),'values':[a118l(0xc8),a118l(0xa3),a118l(0xbd),a118l(0xa8)]},{'name':'withHook','boolFlag':!![]}],'examples':[a118l(0x91)]},async function(a,b){const m=a118l,c=b['baseDir']?m(0xcf)+b[m(0xa9)]:m(0xb8),d=this[m(0xa0)][m(0xbe)](b),e=this[m(0xa0)][m(0xbe)]({'pathParts':[c,b[m(0x94)],paramCase(b[m(0xac)]),paramCase(b['resourceName'])]}),f=this['fsi']['getMakaProjectConfig']();let g='';return await this['fsi'][m(0xcd)](f,async()=>{const n=m;typeof f[n(0xaf)][n(0xbb)]==='string'&&(f[n(0xaf)][n(0xbb)]=f[n(0xaf)][n(0xbb)]===n(0xdb)?!![]:![],this['fsi']['setTemplate'](n(0xbb),f[n(0xaf)][n(0xbb)]));typeof f['template'][n(0xd5)]==='string'&&(f['template'][n(0xd5)]=f[n(0xaf)][n(0xd5)]===n(0xdb)?!![]:![],this[n(0xa0)][n(0x96)](n(0xd5),f[n(0xaf)][n(0xd5)]));typeof f[n(0xaf)][n(0xc1)]==='string'&&(f[n(0xaf)]['css']=f[n(0xaf)][n(0xc1)]==='true'?!![]:![],this['fsi'][n(0x96)](n(0xc1),f[n(0xaf)]['css']));typeof f[n(0xaf)]['js']===n(0xcc)&&(f[n(0xaf)]['js']=f[n(0xaf)]['js']===n(0xdb)?!![]:![],this[n(0xa0)][n(0x96)]('js',f[n(0xaf)]['js']));!f[n(0xc5)]&&(f['features']={});!b[n(0x9d)]&&!this[n(0xa0)]['checkNpmPackage'](n(0xa5))&&(Log[n(0xd2)](n(0x9b)),this[n(0xa0)][n(0x98)](n(0xa5),{'cwd':d}));const h={'name':pascalCase(b[n(0xac)]),'myPath':a118e[n(0xa2)](this[n(0xa0)][n(0xb3)]({}),e),'cssCaseName':paramCase(b[n(0xac)]),'className':pascalCase(b[n(0xac)]),'camelCaseName':camelCase(b[n(0xac)]),'fileName':paramCase(b['resourceName']),'graphql':f[n(0xae)][n(0xcb)],'features':f[n(0xc5)],'client':f[n(0xae)][n(0xc6)],'api':f[n(0xae)][n(0x9e)],'ssr':f[n(0xae)][n(0xa7)],'isStore':b[n(0xc4)](n(0xda)),'isComponent':b[n(0xc4)]('component'),'isLayout':b[n(0xc4)](n(0x99)),'withTranslations':f[n(0xc5)][n(0xb0)],'test':f[n(0xae)][n(0xd5)],'theme':f[n(0xae)][n(0xba)]};f[n(0xaf)][n(0xbb)]&&await this[n(0xa0)][n(0xaf)]({'srcPath':n(0xc9),'destPath':e+n(0xa4),'context':h,'config':f});f[n(0xc5)]?.['withHooks']||b[n(0xaa)]?await this[n(0xa0)][n(0xaf)]({'srcPath':'hook/hook.js','destPath':e+'.js','framework':'react','context':h,'config':f}):await this['fsi'][n(0xaf)]({'srcPath':n(0xbc),'destPath':e+'.js','framework':n(0xc3),'context':h,'config':f});f['engines'][n(0xd5)]!==n(0x9f)&&await this[n(0xa0)][n(0xaf)]({'srcPath':n(0xb9),'destPath':e+'.app-tests.js','framework':n(0xc3),'context':h,'config':f});f[n(0xaf)][n(0xc1)]&&await this[n(0xa0)][n(0xaf)]({'srcPath':n(0xca),'destPath':e+n(0x93),'context':Object[n(0xc7)]({},h,{'className':paramCase(b['resourceName'])}),'config':f});f['engines'][n(0xc6)]!==n(0xc3)&&f[n(0xae)][n(0xc6)]!==n(0xd1)?(f['template']['css']&&await this[n(0xa0)][n(0xd9)]({'filePath':e+'.'+f['engines']['js'],'content':n(0xb7)+h[n(0xbf)]+'.'+f['engines'][n(0xbb)]+n(0xb6)+n(0xb7)+h[n(0xbf)]+'.'+f[n(0xae)][n(0xc1)]+'\x27;'}),!f[n(0xaf)][n(0xc1)]&&await this[n(0xa0)][n(0xd9)]({'filePath':e+'.'+f[n(0xae)]['js'],'content':n(0xb7)+h[n(0xbf)]+'.'+f[n(0xae)][n(0xbb)]+'\x27;'})):f[n(0xaf)]['css']&&await this[n(0xa0)]['injectAtBeginningOfFile']({'filePath':e+'.'+f['engines']['js'],'content':n(0xb7)+h[n(0xbf)]+'.'+f[n(0xae)][n(0xc1)]+'\x27;'});const i=b[n(0x94)]?'/'+b[n(0x94)]+'/':'/';g=''+c+i+h[n(0xbf)]+'/'+h[n(0xbf)],await this[n(0xa0)][n(0xb4)](h[n(0xd0)],f,g),!b['root']&&await a118f[n(0xad)](n(0x95),[i+h['className']],b);}),g+'.'+f[m(0xae)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a119j=a119d;function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x18d;let f=c[d];return f;},a119d(a,b);}(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(0x18d))/0x1*(parseInt(h(0x190))/0x2)+-parseInt(h(0x19a))/0x3+-parseInt(h(0x196))/0x4*(parseInt(h(0x18e))/0x5)+parseInt(h(0x19b))/0x6+parseInt(h(0x1a5))/0x7*(-parseInt(h(0x1a2))/0x8)+-parseInt(h(0x1a4))/0x9+parseInt(h(0x191))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x328d3));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const i=a119d;return a119a[i(0x199)]()[i(0x1a3)](i(0x195))[i(0x199)]()[i(0x194)](a119a)[i(0x1a3)](i(0x195));});a119a();function a119c(){const m=['server/publish.','toString','726591rSfVIF','635256BGccSR','withValue','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','publish/publish.','engines','injectAtEndOfFile','fsi','104TfGqWD','search','1961865KbfVoG','82684WPFRlf','1167cYKSwB','285VqLoTU','create','252JVHZiy','9726360ZwczsM','rewriteDestinationPathForEngine','resourceName','constructor','(((.+)+)+)+$','28404GUsguO','publish'];a119c=function(){return m;};return a119c();}import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a119j(0x18f)]({'name':a119j(0x197),'aliases':['p'],'usage':a119j(0x19d),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[],'examples':['maka\x20g:publish\x20todos']},async function(a,b){const k=a119j,c=this[k(0x1a1)]['getMakaProjectConfig']();await this[k(0x1a1)][k(0x19c)](c,async()=>{const l=k,d={'name':b[l(0x193)],'collection':paramCase(b['resourceName']),'noRename':!![]};let e='js';c['engines']['js']==='tsx'&&(e='ts');const f=this['fsi'][l(0x192)]({'pathParts':[l(0x198)+c[l(0x19f)]['js']]}),g=this[l(0x1a1)]['templateContent']({'srcPath':l(0x19e)+e,'context':d,'config':c});await this[l(0x1a1)][l(0x1a0)]({'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(0x120))/0x1+-parseInt(y(0xf1))/0x2+parseInt(y(0xe8))/0x3*(parseInt(y(0x12f))/0x4)+parseInt(y(0x12e))/0x5+parseInt(y(0x102))/0x6*(parseInt(y(0xfa))/0x7)+parseInt(y(0x113))/0x8*(parseInt(y(0xfc))/0x9)+parseInt(y(0x124))/0xa*(-parseInt(y(0x115))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x292a2));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a120d;if(c){const e=c[z(0xfe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const A=a120d;return a120a[A(0x107)]()[A(0xeb)]('(((.+)+)+)+$')[A(0x107)]()[A(0x11b)](a120a)[A(0xeb)](A(0x10b));});a120a();import a120e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a120c(){const J=['\x22*\x22','routes.js','warn','maka\x20g:route\x20pages/lists/listIndex\x20lists','cwd','react','rewriteDestinationPathForEngine','2208984gAXzeR','layouts','4917gSIHjg','imports','getMakaProjectConfig','maka\x20g:route\x20todosEdit\x20todos/:id/edit','templateContent','templateName','constructor','client','fileContainsString','length','true','324140wWrRNv','const\x20privateRoutes\x20=\x20(<>','baseDir','root','13060NRyyuz','maka\x20g:route\x20pages/about','<Route','withTranslations','url','replace','injectIntoFile','indexOf','newForm','/imports/ui/pages','837555fYvXST','64180HxsVim','filter','dir','readFileLines','includes','pathFromApp','route','const\x20publicRoutes\x20=\x20(<>','24xDFmVy','/imports/ui/','private','search','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','error','hooks','create','<Router','569676NpYtdL','fsi','Invalid\x20directory\x20option\x20\x22','join','route/route.js','map','maka\x20g:route\x20todosIndex\x20todos','Route\x20','info','493836JxtQhH','injectAtEndOfFile','9iDGYUl','MasterLayout','apply','components','\x0a\x09\x09','only','12RxRNiu','layout','</Router>','engines','config','toString','pathFromProject','\x20to\x20','Scaffolding\x20for\x20a\x20Route.','(((.+)+)+)+$'];a120c=function(){return J;};return a120c();}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xe2;let f=c[d];return f;},a120d(a,b);}Generator[a120B(0xef)]({'name':a120B(0xe6),'aliases':aliases,'validOpts':[a120B(0xea),a120B(0x103),a120B(0x101),a120B(0x110),a120B(0x106),a120B(0x123),'withHook',a120B(0x128),'baseDir'],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a120B(0x10a),'examples':[a120B(0xf7),a120B(0x118),a120B(0xec),a120B(0x10f),a120B(0x125)]},async function(a,b){const C=a120B;try{const c=[C(0xee),C(0xff),'pages',C(0x114)];if(b[C(0x122)]&&!c[C(0xe4)](b['baseDir'])){Log['error'](C(0xf3)+b['baseDir']+'\x22'),Log[C(0xed)]('Valid\x20options\x20are:\x20'+c[C(0xf4)](',\x20'));throw new UsageError();}const d=this[C(0xf2)][C(0x117)]();await this[C(0xf2)]['withValue'](d,async()=>{const D=C,f=b['private']??![];let g=paramCase(b['resourceName']),h='/'+g;a[D(0x11e)]>0x1&&(h='/'+a[D(0x130)](function(n){return n!=='/';})[D(0xf4)]('/')['toLowerCase']());g=camelCase(g);b[D(0x103)]&&(b[D(0x103)]=camelCase(b[D(0x103)]));const i=b['baseDir']?D(0xe9)+b[D(0x122)]:D(0x12d),j=a120e[D(0xf4)](i,b[D(0xe2)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||D(0xfd),'templatePath':j,'templateName':pascalCase(g),'client':d['engines']['client'],'newForm':![],'withTranslations':d['features'][D(0x127)]};f&&(k[D(0x103)]='PrivateLayout');let l,m;if(d[D(0x105)][D(0x11c)]===D(0x111)){if(d['engines']['ssr']===D(0x11f)){const r=this[D(0xf2)]['pathFromApp']({'pathParts':['imports','startup','lib',D(0x10d)]});l=this[D(0xf2)]['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[D(0xf2)][D(0xe5)]({'pathParts':['imports','startup','client','routes.js']});l=this[D(0xf2)][D(0x112)]({'pathParts':[s],'config':d});}const n=await this[D(0xf2)][D(0x11d)](l,g);if(n){Log[D(0x10e)](D(0xf8)+g+'\x20already\x20exists.\x20\x20Skipping.');return;}else{const t=this['fsi'][D(0x108)](l);Log[D(0xf9)]('Adding\x20route\x20'+g+D(0x109)+l[D(0x129)](t,''));}const o=this[D(0xf2)][D(0xe3)](l)['map']((u,v)=>{return u['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})[D(0x130)](u=>u!==null);let p=this[D(0xf2)][D(0xe3)](l)[D(0xf6)]((u,v)=>{const E=D;return u[E(0xe4)](E(0xe7))?v+0x1:null;})[D(0x130)](u=>u!==null),q=this[D(0xf2)]['readFileLines'](l)[D(0xf6)]((u,v)=>{const F=D;return u[F(0xe4)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x130)](u=>u!==null);p[D(0x11e)]>0x0&&q['length']>0x0&&(k[D(0x12c)]=!![]);m=this[D(0xf2)][D(0x119)]({'srcPath':D(0xf5),'framework':'react','context':k,'config':d});if(p[D(0x11e)]>0x0||q['length']>0x0){this[D(0xf2)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x11e)]>0x0)q=this[D(0xf2)]['readFileLines'](l)[D(0xf6)]((u,v)=>{const G=D;return u['includes'](G(0x121))?v+0x1:null;})[D(0x130)](u=>u!==null),this[D(0xf2)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[D(0x11e)]>0x0?(p=this[D(0xf2)][D(0xe3)](l)[D(0xf6)]((u,v)=>{const H=D;return u['includes'](H(0xe7))?v+0x1:null;})['filter'](u=>u!==null),this[D(0xf2)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x11a)]+'}','lineNumber':p[0x0]})):Log[D(0x10e)]('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this[D(0xf2)][D(0xe3)](l)[D(0xf6)](x=>{const I=D;return x[I(0xe4)](I(0x10c));}),v=u[D(0x12b)](!![])>-0x1,w=v?D(0x126):D(0x104);await this[D(0xf2)][D(0x12a)]({'filePath':l,'content':D(0x100)+m+D(0x100),'begin':D(0xf0),'end':w});}}else{if(d['engines']['client']==='vanilla'){const x=this[D(0xf2)][D(0xe5)]({'pathParts':[D(0x116),'startup',D(0x11c),D(0x10d)]});l=this[D(0xf2)][D(0x112)]({'pathParts':[x],'config':d}),m=this[D(0xf2)]['templateContent']({'srcPath':D(0xf5),'context':k}),await this['fsi'][D(0xfb)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0xed)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x168))/0x1+-parseInt(j(0x164))/0x2+parseInt(j(0x153))/0x3+-parseInt(j(0x166))/0x4*(-parseInt(j(0x163))/0x5)+-parseInt(j(0x15d))/0x6+-parseInt(j(0x16f))/0x7*(parseInt(j(0x152))/0x8)+parseInt(j(0x15e))/0x9*(parseInt(j(0x15a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xbc2b4));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0x158)]()[l(0x16a)](l(0x16e))['toString']()['constructor'](a121a)[l(0x16a)](l(0x16e));});a121a();import{camelCase,paramCase,pascalCase}from'change-case';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x152;let f=c[d];return f;},a121d(a,b);}import{Generator}from'../generator.js';function a121c(){const p=['853314djeJTm','type','search','engines','services','logger','(((.+)+)+)+$','7280LEUQLc','7384TZBihY','1181487LIFJPH','svc','service/logger/logger.js','error','winston','toString','lib','10pCnBJD','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','create','3862230aayJDh','21426462zXLwAn','template','apply','winston\x20setimmediate','fsi','8315HwzBVg','2952676DbOgOE','resourceName','536VewPzi','tsx'];a121c=function(){return p;};return a121c();}import{Log}from'../tools/log/log.class.js';Generator[a121m(0x15c)]({'name':'service','aliases':[a121m(0x154)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a121m(0x15b),'requiredOpts':[{'name':a121m(0x169),'values':[a121m(0x16d)]}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a121m;try{const c=this[n(0x162)]['getMakaProjectConfig']();await this[n(0x162)]['withValue'](c,async()=>{const o=n,d=this['fsi']['pathFromApp']({}),f=paramCase(b[o(0x165)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0x165)]),'type':b[o(0x169)],'engine':c[o(0x16b)]['js'],'noRename':!![]};let h='js';c[o(0x16b)]['js']===o(0x167)&&(h='ts');if(b[o(0x169)]==='logger'){!this['fsi']['checkNpmPackage'](o(0x157))&&await this[o(0x162)]['installNpmPackage'](o(0x161),{'cwd':d,'msg':'Installing\x20winston'});const i=this[o(0x162)]['pathFromApp']({'pathParts':['imports','startup',o(0x159),o(0x16c),f+'.'+h]});await this[o(0x162)][o(0x15f)]({'srcPath':o(0x155),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x156)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0xe9))/0x1+-parseInt(f(0xed))/0x2+parseInt(f(0xe6))/0x3+parseInt(f(0xe7))/0x4*(parseInt(f(0xef))/0x5)+-parseInt(f(0xee))/0x6*(parseInt(f(0xe5))/0x7)+parseInt(f(0xec))/0x8*(parseInt(f(0xeb))/0x9)+parseInt(f(0xf0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xe596a));function a122c(){var i=['toString','search','3627582hiQIuj','1511367NZuZXU','585448RqBYMP','apply','194912tvURmR','(((.+)+)+)+$','261wnNbtH','182632AsBETS','3393736sqGzzm','6PNGBlc','15wxYagK','13556600WPShgG'];a122c=function(){return i;};return a122c();}function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0xe5;var f=c[d];return f;},a122d(a,b);}var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a['toString']()[h(0xf2)]('(((.+)+)+)+$')[h(0xf1)]()['constructor'](a122a)[h(0xf2)](h(0xea));});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(0xa0))/0x1*(-parseInt(i(0x9d))/0x2)+parseInt(i(0x9c))/0x3*(-parseInt(i(0x9f))/0x4)+parseInt(i(0xad))/0x5*(-parseInt(i(0xa5))/0x6)+-parseInt(i(0xab))/0x7*(-parseInt(i(0x99))/0x8)+parseInt(i(0xa3))/0x9*(parseInt(i(0xa9))/0xa)+-parseInt(i(0x96))/0xb+-parseInt(i(0xae))/0xc*(-parseInt(i(0x9e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x1ffaf));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0xa1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a[k(0x94)]()[k(0x9b)](k(0xa4))[k(0x94)]()[k(0xaf)](a123a)['search'](k(0xa4));});a123a();import{Generator}from'../../generator.js';function a123c(){const o=['env','_keys','1110310wPAtFW','join','413TMFWrT','openssl.conf','145VlotKO','396vEkrKW','constructor','maka\x20{generate,\x20g}:sslconfig','create','toString','template','1796300btDDRT','fsi','maka\x20g:sslconfig\x20--env\x20dev','23160xTtHTU','openssl/openssl.conf','search','69fpowgb','105610bvyMsR','42029QAIkFR','29216Wsejqy','2qcfiIj','apply','Generate\x20a\x20new\x20openssl\x20config\x20file','18DBseRD','(((.+)+)+)+$','29562XoMmpn','getGlobalConfig'];a123c=function(){return o;};return a123c();}import{Log}from'../../tools/log/log.class.js';import a123e from'path';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x94;let f=c[d];return f;},a123d(a,b);}Generator[a123l(0xb1)]({'name':'sslconfig','usage':a123l(0xb0),'shortDesc':a123l(0xa2),'noNeedResource':!![],'requiredOpts':['env'],'examples':[a123l(0x98)],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0x97)]['getMakaProjectConfig'](),d=await this[m(0x97)][m(0xa6)](),f=this[m(0x97)]['getAppConfigPath'](b[m(0xa7)]),g=a123e[m(0xaa)](f,m(0xa8),m(0xac));await this[m(0x97)]['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x97)][n(0x95)]({'srcPath':n(0x9a),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a124z=a124d;function a124c(){const C=['exit','index.js','lang','lib','rewriteDestinationPathForEngine','maka\x20g:translation\x20--lang=de','translation','getGlobalConfig','root','export\x20{\x20default\x20as\x20','search','4007927zpMwXa','288hAuJtQ','warn','Locale\x20already\x20defined:\x20','maka\x20g:translation\x20--lang=en\x20(default)','i18n.js','features.withTranslations','toString','startup','2841100SQXZqF','imports','i18next\x20i18next-browser-languagedetector\x20react-i18next','default\x20as\x20','(((.+)+)+)+$','Locale\x20already\x20exported:\x20','injectAtBeginningOfFile','\x20}\x20from\x20\x27./','constructor','4fDWgtJ','create','injectAtEndOfFile','98758CzPzOR','import\x20\x27../lib/services/translations/i18n\x27;','true','readFileSync','grep','findAppDirectory','service','appName','maka\x20{generate,\x20g}:translation','setProjectConfig','error','import\x20\x27../lib/services/translations/i18n\x27;\x0a','maka\x20g:translation\x20--lang=fr','pathFromApp','installNpmPackage','1841588HhTbVC','fsi','Generate\x20a\x20new\x20locale\x20translation','2803520VSkfMr','6WFOJhg','\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','i18n/i18n.js','isFile','template','46620aQbpnp','client','withValue','getMakaProjectConfig','i18next','translations','engines','659538ctJLCk','locales','services','.js','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...'];a124c=function(){return C;};return a124c();}(function(a,b){const x=a124d,c=a();while(!![]){try{const d=-parseInt(x(0x178))/0x1*(-parseInt(x(0x175))/0x2)+parseInt(x(0x197))/0x3+parseInt(x(0x187))/0x4+parseInt(x(0x18a))/0x5+-parseInt(x(0x18b))/0x6*(parseInt(x(0x163))/0x7)+-parseInt(x(0x164))/0x8*(parseInt(x(0x190))/0x9)+-parseInt(x(0x16c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x60830));function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x155;let f=c[d];return f;},a124d(a,b);}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(0x16a)]()[y(0x162)](y(0x170))['toString']()[y(0x174)](a124a)[y(0x162)](y(0x170));});a124a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a124e from'fs';Generator[a124z(0x176)]({'name':a124z(0x15e),'usage':a124z(0x180),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124z(0x15a),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a124z(0x189),'description':a124z(0x18c),'examples':[a124z(0x167),a124z(0x184),a124z(0x15d)],'validOpts':[]},async function(a,b){const A=a124z;try{const c=this[A(0x188)][A(0x193)](),d=this['fsi'][A(0x15f)](),f=this[A(0x188)][A(0x17d)]();await this[A(0x188)][A(0x192)](c,async()=>{const B=A;try{!b[B(0x15a)]&&(b[B(0x15a)]='en');!b[B(0x160)]&&!this[B(0x188)]['checkNpmPackage'](B(0x194))&&(Log[B(0x165)](B(0x157)),this[B(0x188)][B(0x186)](B(0x16e),{'cwd':f}),this['fsi'][B(0x181)](B(0x169),!![]));const g=this[B(0x188)][B(0x185)]({'pathParts':[B(0x16d),B(0x16b),B(0x191),'index.js']}),h=this[B(0x188)][B(0x15c)]({'pathParts':[g],'config':c}),i=this[B(0x188)][B(0x17c)](a124e[B(0x17b)](h)[B(0x16a)](),B(0x179))[0x0]&&!![];if(c[B(0x196)]['ssr']===B(0x17a)){!i&&this[B(0x188)][B(0x172)]({'filePath':h,'content':B(0x183)});const t=this[B(0x188)][B(0x185)]({'pathParts':[B(0x16d),'startup','server',B(0x159)]}),u=this[B(0x188)][B(0x15c)]({'pathParts':[t],'config':c}),v=this['fsi'][B(0x17c)](a124e[B(0x17b)](u)[B(0x16a)](),B(0x179))[0x0]&&!![];!v&&this['fsi'][B(0x172)]({'filePath':u,'content':B(0x183)});}else!i&&this[B(0x188)][B(0x172)]({'filePath':h,'content':B(0x183)});const j={'app':d[B(0x17f)],'config':c},k=this[B(0x188)][B(0x185)]({'pathParts':['imports',B(0x16b),B(0x15b),B(0x155),'translations',B(0x168)]}),l=this[B(0x188)][B(0x18e)](this[B(0x188)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[B(0x188)][B(0x18f)]({'srcPath':B(0x18d),'destPath':k,'framework':'service','context':j,'config':c});const m=this[B(0x188)]['pathFromApp']({'pathParts':[B(0x16d),'startup',B(0x15b),B(0x155),'translations','locales',b['lang']+B(0x156)]}),n=this[B(0x188)][B(0x15c)]({'pathParts':[m],'config':c}),o=this[B(0x188)][B(0x18e)](n);!o?await this[B(0x188)][B(0x18f)]({'srcPath':'i18n/locales.js','destPath':m,'framework':'service','context':j,'config':c}):Log[B(0x165)](B(0x166)+n);const p=this[B(0x188)][B(0x185)]({'pathParts':[B(0x16d),B(0x16b),B(0x15b),B(0x155),B(0x195),B(0x198),'index.'+c['engines']['js']]}),q=this[B(0x188)][B(0x15c)]({'pathParts':[p],'config':c}),r=this['fsi'][B(0x18e)](q);!r&&await this[B(0x188)][B(0x18f)]({'srcPath':'i18n/index.js','destPath':p,'framework':B(0x17e),'context':j,'config':c});const s=this[B(0x188)][B(0x17c)](a124e[B(0x17b)](p)[B(0x16a)](),B(0x16f)+b['lang'])[0x0]&&!![];!s?await this[B(0x188)][B(0x177)]({'filePath':p,'content':B(0x161)+b[B(0x15a)]+B(0x173)+b[B(0x15a)]+'\x27;'}):Log[B(0x165)](B(0x171)+p);}catch(w){Log[B(0x182)](w),process[B(0x158)](0x1);}});}catch(g){Log[A(0x182)](g),process['exit'](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=-parseInt(j(
|
|
1
|
+
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=-parseInt(j(0x152))/0x1+parseInt(j(0x15d))/0x2+-parseInt(j(0x158))/0x3+parseInt(j(0x153))/0x4*(parseInt(j(0x14e))/0x5)+-parseInt(j(0x15c))/0x6+-parseInt(j(0x14f))/0x7+parseInt(j(0x15a))/0x8*(parseInt(j(0x162))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xb5069));function a125c(){const n=['env','toString','70ldSMUn','9773666iLWiQc','BROWSERSLIST_IGNORE_OLD_DATA','dirname','407674TmurUx','232256dJvFNm','totalmem','constructor','argv','MAKA_COMMAND_PATH','3921666izjbwK','search','20929544JDILxd','--max-old-space-size=','3871500prFGBw','2137552GYdWxC','run','camelizeKeys','stringify','NODE_NO_WARNINGS','9nFziTF','TOOL_NODE_FLAGS','(((.+)+)+)+$','apply','floor'];a125c=function(){return n;};return a125c();}const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x14d)]()[l(0x159)](l(0x149))[l(0x14d)]()[l(0x155)](a125a)['search'](l(0x149));});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';function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x149;let f=c[d];return f;},a125d(a,b);}import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a125g[a125m(0x151)](__filename);global[a125m(0x157)]=__dirname;const total_memory=a125f[a125m(0x154)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0x14b)](total_mem_in_mb),process[a125m(0x14c)][a125m(0x163)]=a125m(0x15b)+total_mem_in_mb,process['env'][a125m(0x150)]='1',process[a125m(0x14c)][a125m(0x161)]='1';const argv=a125e(process[a125m(0x156)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a125m(0x160)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0x15f)](deepCopyArgv);a125i[a125m(0x15e)](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(0xa1))/0x1+-parseInt(I(0xba))/0x2+-parseInt(I(0xa7))/0x3+parseInt(I(0xa4))/0x4*(-parseInt(I(0x8c))/0x5)+parseInt(I(0xbc))/0x6+-parseInt(I(0xcc))/0x7+-parseInt(I(0xa3))/0x8*(-parseInt(I(0xd4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xcc2d2));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0xc3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0xb0)]()['search'](K(0xc7))[K(0xb0)]()[K(0xd5)](a126a)[K(0xaf)](K(0xc7));});a126a();function a126c(){const a3=['validateMakaSubscription','domainLicense','apply','isCommand','list','No\x20description\x20provided.','(((.+)+)+)+$','shortDesc','\x20version\x20','getMakaProjectConfig','options','2547790BgHVbO','ask','Invalid\x20argument:\x20','validateMakaProject','existsSync','disableAuthCheck','string','usage','1829889gNNMgZ','constructor','Please\x20choose\x20a\x20value\x20for\x20','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','name','validateEngines','push','Invalid\x20value\x20for\x20','cwd','13655KUkVWX','No\x20usage\x20provided.','includes','map','Please\x20provide\x20a\x20value\x20for\x20','formatToNamedParam','resourceName','isGenerator','singleLicense','platform','description','To\x20use\x20this\x20generator,\x20\x22','keys','remapShortToLong','parent','error','Local','isPro','env','every','indexOf','840914BMzgrG','aliases','168sDThJa','908XsQEjc','charAt','.meteor','4645734vZGjDB','validateParams','Invalid\x20option:\x20','roles','exit','_handler','match','length','search','toString','getShortName','examples','docker','findProjectDirectory','Please\x20choose\x20an\x20environment','Please\x20choose\x20a\x20valid\x20value\x20for\x20','To\x20use\x20this\x20command,\x20\x22','root','fsi','2140946qaGhlD','You\x20must\x20have\x20','6062622xwuRrR','NIE','proCommands','concat','config'];a126c=function(){return a3;};return a126c();}import a126e from'path';import a126f from'os';import a126g from'fs';const homeDir=a126f['homedir']();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x8a;let f=c[d];return f;},a126d(a,b);}export class Tool{['docker'];[a126L(0xb9)];[a126L(0xcb)];['name'];[a126L(0x9a)];[a126L(0xac)];constructor(){const M=a126L;this[M(0xb3)]=new Docker(),this['fsi']=new FSI();}['getShortName'](a){const N=a126L;return a[N(0xa5)](0x0);}['remapShortToLong'](a,b){const O=a126L,c=this[O(0x91)](b),d={...a};for(const e of c){const f=this[O(0xb1)](e['name']);a[f]&&(d[e[O(0xd9)]]=a[f],delete d[f]);}return d;}[a126L(0x91)](a){const P=a126L;if(a[P(0x9f)](b=>typeof b===P(0xd2)))return a[P(0x8f)](b=>({'name':b}));return a;}[a126L(0xad)](a){const Q=a126L,b=[this[Q(0xd9)]][Q(0xbf)](this[Q(0xcb)][Q(0xa2)]||[]);return this[Q(0x9a)]&&b[Q(0xdb)](this[Q(0x9a)]),b['includes'](a);}[a126L(0xcf)](){const R=a126L,a=this[R(0xb9)][R(0xb4)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const S=a126L;let a=a126e['join'](homeDir,S(0xa6));const b=process[S(0x95)]==='win32';if(b){a=a126e['join'](homeDir,'AppData',S(0x9c),S(0xa6));if(!a126g[S(0xd0)](a))return![];}else{if(!a126g[S(0xd0)](a))return![];}return!![];}[a126L(0xda)](a){const T=a126L,b=this[T(0xb9)][T(0xca)](),c=b['engines'],d=Object[T(0x98)](a);if(d['length']>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x9b)](T(0xbb)+e+T(0xc9)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a126L(0xa8)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x98)](b);if(h['includes'](U(0x92))&&b[U(0x92)]===undefined&&!g){const m=await Actions[U(0xcd)]('Please\x20provide\x20a\x20resource\x20name:');b['resourceName']=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0x99)](b,i);if(i&&i?.[U(0xae)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x98)](j)['includes'](o)){if(o===U(0x9e)){const r=this[U(0xb9)]['getAppProjectConfigs'](),s=await Actions[U(0xcb)]({'type':U(0xc5),'name':U(0x9e),'message':U(0xb5),'choices':r});b[U(0x9e)]=s[U(0x9e)];}else{const t=p;if(t){const u=await Actions[U(0xcb)]({'type':U(0xc5),'name':o,'message':U(0xd6)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](U(0x90)+o);if(v['match'](q))b[o]=v;else{Log['error'](U(0x8a)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0xcd)](U(0x90)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[U(0x9b)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x91)](f),l=b;if(k&&Object['keys'](k)?.[U(0xae)]>0x0){k=k[U(0xbf)](i||[]),k['push']({'name':U(0x92),'hidden':!![]}),k['push']({'name':'help','boolFlag':!![]}),k['push']({'name':'dir','hidden':!![]}),k[U(0xdb)]({'name':U(0x8b),'hidden':!![]}),k[U(0xdb)]({'name':U(0xb8),'hidden':!![]}),k['push']({'name':U(0xc0),'hidden':!![]}),l=this[U(0x99)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0x8e)](B))){const C=A;if(C){const D=await Actions[U(0xcb)]({'type':'list','name':z,'message':U(0xb6)+z,'choices':A});l[z]=D[z];}}if(k['length']>0x0)for(const E of Object['keys'](l)){const F=k['find'](G=>G[U(0xd9)]===E);if(!F){Log['error'](U(0xa9)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[U(0x8e)](G)){Log[U(0x9b)](U(0xce)+G);const H=await Actions['ask'](U(0xd8)+G);a[a[U(0xa0)](G)]=H;}}return Object['assign'](j,l);}async[a126L(0xc1)](a){const V=a126L;try{if(!a)return;const b=await this[V(0xb9)]['getPro']();!b&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[V(0xab)](0x1));const c=!b?.['roles'][V(0x8e)](V(0x94))&&!b?.[V(0xaa)][V(0x8e)](V(0xc2));if(this[V(0xc4)](a)){const d=V(0xb7)+a['name']+V(0xd7);if(a[V(0xcb)][V(0xd1)])return;const f=b?.[V(0xbe)]['includes'](a[V(0xd9)])||b?.[V(0xbe)][V(0x8e)](a[V(0x9a)]||'')||this[V(0xcb)][V(0x9d)];if(f&&c)throw d;}else{if(this[V(0x93)](a)){const g=b?.['proGenerators']['includes'](a[V(0xd9)])||b?.['proGenerators'][V(0x8e)](a[V(0x9a)]||'');if(g&&c)throw V(0x97)+a['name']+V(0xd7);}}}catch(h){Log[V(0x9b)](h),process[V(0xab)](0x1);}}['isCommand'](a){const W=a126L;return W(0xcb)in a;}[a126L(0x93)](a){const X=a126L;return!(X(0xcb)in a);}['description'](){const Y=a126L;return this[Y(0xcb)][Y(0x96)]||this[Y(0xcb)][Y(0xc8)]||Y(0xc6);}[a126L(0xc8)](){const Z=a126L;return this[Z(0xcb)][Z(0xc8)]||Z(0xbd);}[a126L(0xd3)](){const a0=a126L;return this[a0(0xcb)]['usage']||a0(0x8d);}[a126L(0xb2)](){const a1=a126L;return this[a1(0xcb)]['examples']||[];}[a126L(0xa2)](){const a2=a126L;return this[a2(0xcb)][a2(0xa2)]||'None';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127j=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0x1cc))/0x1*(parseInt(f(0x1c8))/0x2)+parseInt(f(0x1b8))/0x3*(parseInt(f(0x1b7))/0x4)+-parseInt(f(0x1c7))/0x5*(parseInt(f(0x1bf))/0x6)+-parseInt(f(0x1c3))/0x7*(parseInt(f(0x1c5))/0x8)+-parseInt(f(0x1cd))/0x9*(parseInt(f(0x1bb))/0xa)+-parseInt(f(0x1c4))/0xb*(-parseInt(f(0x1cb))/0xc)+parseInt(f(0x1be))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xd610b));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0x1c9)]()[h(0x1c0)](h(0x1ca))[h(0x1c9)]()[h(0x1bd)](a127a)['search'](h(0x1ca));});function a127c(){const m=['140854ypLkwD','11RHPsdZ','576loFJjv','input','10usubcw','148098NqCAJH','toString','(((.+)+)+)+$','14369124Clwfzf','14UNqtfY','18XVvZsU','prompt','12JcwWmy','513753GSCOSf','apply','password','1506380VLeZnx','options','constructor','21012927XFKJba','5212122RImzYg','search','confirm','answer'];a127c=function(){return m;};return a127c();}a127a();function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a127d(a,b);}import a127e from'inquirer';export class Actions{static async['ask'](a,b){const i=a127d,{answer:c}=await a127e[i(0x1ce)]({'type':b?i(0x1ba):i(0x1c6),'name':i(0x1c2),'message':a});return c;}static async[a127j(0x1c1)](a,b=![]){const k=a127j,{answer:c}=await a127e[k(0x1ce)]({'type':k(0x1c1),'name':k(0x1c2),'message':a,'default':b});return c;}static async[a127j(0x1bc)](a){const l=a127j,b=await a127e[l(0x1ce)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x14d))/0x1+parseInt(p(0x15b))/0x2*(-parseInt(p(0x163))/0x3)+-parseInt(p(0x15d))/0x4+-parseInt(p(0x152))/0x5+parseInt(p(0x161))/0x6*(-parseInt(p(0x172))/0x7)+-parseInt(p(0x1c4))/0x8*(parseInt(p(0x190))/0x9)+parseInt(p(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xabf0e));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a['toString']()[r(0x1ac)](r(0x185))[r(0x1a4)]()[r(0x1c0)](a128a)['search'](r(0x185));});a128a();import a128e from'fs';import a128f from'path';function a128c(){const W=['forEach','stringify','toString','CidrBlock','chmod\x20400\x20','deleteKeyPair','maxCount','name','config','fsi','search','Error\x20linking\x20EC2\x20to\x20Route\x2053:','sgIds','KeyName','$metadata','Error\x20saving\x20pem\x20file,\x20aborting','_keys','Key\x20Name:\x20[','Could\x20not\x20find\x20hosted\x20zone','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','linkEC2ToRoute53','isFile','terminated','createKeyPairEC2Key','\x27\x20has\x20been\x20registered\x20successfully.','notice','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','\x20INSTANCE_ID:\x20','cidr','ignore','constructor','0.0.0.0/0','createFile','suggestion','8OtsLIU','GroupName','\x20STATUS:\x20','**\x20Available\x20\x20VPCs\x20**','Please\x20choose\x20a\x20VPC:\x20[0]\x20','28646340jtvAOJ','length','$response','\x20Status\x20Code:\x20','environment','key','instanceId','changeResourceRecordSets','ec2describeInstances','join','httpStatusCode','ec2describeKeys','Error\x20fetching\x20domain\x20pricing:','log','env','\x20PUB_IP:\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','896126ghaoMV','\x20NAME:\x20','exit','file://','publicIp','2252285yphPxq','Invalid\x20choice','sgId','ID:\x20','Availability','VpcId','ingressRule','statusCode','\x20to\x20','20174BQUUCt','GroupId','1493696MewSWu','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','No\x20instances\x20found','ecrCreateRepository','30XUHzpw','\x20VPCID:\x20','303HsDrKT','\x20Error\x20Rason:\x20','getAppConfigPath','now','KeyMaterial','Instance\x20rebooted!','find','ssh.json','push','writeFileSync','HostedZones','Created:\x20','instance','\x20PRIV_IP:\x20','Web\x20App','505267eBeVwU','getMakaProjectConfig','status','AVAILABLE','pem','split','registerDomain','error','Reservations','checkDomainAvailability','ec2createSG','apply','confirm','minCount','ec2rebootInstance','.pem.txt','success','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','description','(((.+)+)+)+$','ask','imageId','vpcId','Name','pop','\x20ENV:\x20','userData','ec2create','Pem\x20key\x20saved\x20to\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','7676253bvAsYo','parse','chooseVPC','reason','UPSERT','subnet','Instances','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','The\x20domain\x20\x27','send','running','ec2terminateInstance','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','listHostedZonesByName','RegistrationPrice','Prices','Port\x20','type'];a128c=function(){return W;};return a128c();}function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x14d;let f=c[d];return f;},a128d(a,b);}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(){this['fsi']=new FSI();}async[a128s(0x160)](a){const t=a128s;try{const b={'repositoryName':a[t(0x1a9)]},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x199)](c);return d;}catch(f){Log[t(0x179)](f);}}async['route53CreateHostedZone'](a){const u=a128s;try{const b={'CallerReference':''+Date[u(0x166)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x199)](c),Log[u(0x182)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error']('Error\x20creating\x20hosted\x20zone'),console[u(0x179)](d);}}async[a128s(0x178)](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(0x199)](f),Log['notice'](v(0x198)+b+v(0x1ba));}catch(g){Log[v(0x179)](v(0x197)),Log['warn']('From\x20AWS:'),console['error'](v(0x1cc)+g[v(0x1cb)][v(0x159)]),console[v(0x179)](v(0x164)+g['$response'][v(0x193)]);}}async[a128s(0x17b)](a){const w=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x199)](c),e=d[w(0x156)]===w(0x175);if(e){const f=a[w(0x177)]('.')[w(0x18a)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[w(0x19f)]&&i[w(0x19f)][0x0]?.[w(0x19e)]){const j=i[w(0x19f)][0x0][w(0x19e)];return{'available':e,'cost':j};}}catch(k){console[w(0x179)](w(0x1d5),k);}}return{'available':e};}async[a128s(0x1b6)](a,b,c){const x=a128s;try{const d=await route53[x(0x19d)]({'DNSName':c});if(!d?.[x(0x16d)])throw Log['error'](x(0x1b4));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x194),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x1d0)](f),Log[x(0x1bb)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+x(0x15a)+c);}catch(g){console[x(0x179)](x(0x1ad),g);}}async[a128s(0x18d)](a){const y=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x187)],'InstanceType':a[y(0x1a1)],'KeyName':a[y(0x1ce)],'MaxCount':a[y(0x1a8)],'MinCount':a[y(0x17f)],'SecurityGroupIds':a[y(0x1ae)][y(0x177)](','),'SubnetId':a[y(0x195)],'TagSpecifications':[{'ResourceType':y(0x16f),'Tags':a['tags']}]};a[y(0x18c)]&&(b['UserData']=y(0x150)+a[y(0x18c)]);const c=new RunInstancesCommand(b),d=await client[y(0x199)](c);return d;}catch(f){Log[y(0x179)](f);}}async[a128s(0x19b)](a){const z=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[z(0x199)](c);return d;}catch(f){return Log[z(0x179)](f),{};}}async[a128s(0x1b9)]({keyName:a,env:b}){const A=a128s,c=this[A(0x1ab)][A(0x165)](b),d=a128f[A(0x1d2)](c,A(0x1b2),a+A(0x181));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x199)](g),i=h[A(0x167)];if(i){await this[A(0x1ab)][A(0x1c2)]({'filePath':d,'data':i}),execSync(A(0x1a6)+d,{'stdio':A(0x1bf)});const j=this[A(0x1ab)][A(0x1b7)](d);if(j)return Log[A(0x182)](A(0x18e)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x1b1));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[A(0x179)](k),process[A(0x14f)](0x1);}}async[a128s(0x158)]({port:a,groupId:b}){const B=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':B(0x1c1),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x1bb)](B(0x1a0)+a+'\x20opened!'),await client[B(0x199)](d);}async[a128s(0x17c)](a){const C=a128s;try{a[C(0x184)]===''&&(a[C(0x184)]=await Actions['ask']('Description:')||C(0x171));const b={'Description':a['description'],'GroupName':a['name'],'VpcId':a[C(0x188)]},c=new CreateSecurityGroupCommand(b),d=await client[C(0x199)](c),{GroupId:f}=d;if(!d)throw new Error(C(0x183));f&&a['sgPorts'][C(0x1a2)](g=>{const D=C;this[D(0x158)]({'port':parseInt(g),'groupId':f});}),Log[C(0x182)](C(0x16e)+f+C(0x14e)+a[C(0x1a9)]);}catch(g){return Log[C(0x179)](g),![];}return!![];}async[a128s(0x1d4)](a){const E=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x199)](d);if(!f)throw E(0x183);const {KeyPairs:g}=f;g?(g?.[E(0x1a2)]((h,i)=>{const F=E;h[F(0x1af)]&&b['push']({'id':i,'name':h[F(0x1af)]});}),b[E(0x1ca)]>0x0&&b[E(0x1a2)](h=>{const G=E;h[G(0x1a9)]===a?.[G(0x1c3)]?Log[G(0x182)](G(0x155)+h['id']+'\x20NAME:\x20'+h[G(0x1a9)]):Log[G(0x1bb)](G(0x155)+h['id']+'\x20NAME:\x20'+h[G(0x1a9)]);})):Log['error']('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[E(0x179)](h);}return b;}async[a128s(0x1a7)](a){const H=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x199)](c);}catch(d){Log['error'](d),process[H(0x14f)](0x1);}}async['ec2describeInstances'](){const I=a128s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[I(0x17a)]?.[I(0x1a2)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x196)][0x0],n=m?.[J(0x169)](({Key:o})=>o===J(0x1cd));a[J(0x16b)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x189)],'name':l,'env':n?.['Value']});}}),a[I(0x1ca)]>0x0?a['forEach'](f=>{const K=I,g=K(0x155)+f['id']+K(0x14e)+f[K(0x1a9)]+K(0x18b)+f[K(0x1d7)]+K(0x1c6)+f[K(0x174)]+K(0x1bd)+f[K(0x1cf)]+K(0x1d8)+f[K(0x151)]+K(0x170)+f['privateIp'];if(f[K(0x174)]===K(0x1b8))Log['error'](g);else f[K(0x174)]===K(0x19a)?Log['success'](g):Log['notice'](g);}):Log[I(0x179)](I(0x1bc));}catch(f){Log[I(0x179)](f);}return a;}async[a128s(0x180)](a){const L=a128s;try{const b={'InstanceIds':[a[L(0x1cf)]]},c=new RebootInstancesCommand(b),d=await client[L(0x199)](c);return d[L(0x1b0)][L(0x1d3)]===0xc8&&Log[L(0x182)](L(0x168)),d;}catch(f){Log[L(0x179)](f);}}async[a128s(0x192)](){const M=a128s;let a='';Log[M(0x1bb)](M(0x1c7));const b=new DescribeVpcsCommand({}),c=await client[M(0x199)](b),{Vpcs:d}=c,e=[];d&&d[M(0x1a2)]((g,h)=>{const N=M;g['VpcId']&&g[N(0x1a5)]&&e[N(0x16b)]({'id':h,'vpcId':g[N(0x157)],'cidr':g[N(0x1a5)]});});e['forEach'](function(g){const O=M;console[O(0x1d6)](O(0x155)+g['id']+O(0x162)+g['vpcId']+'\x20CIDR:\x20'+g[O(0x1be)]);});const f=await Actions[M(0x186)](M(0x1c8))||0x0;e[M(0x1a2)](function(g){const P=M;g['id']==f&&(a=g[P(0x188)],Log[P(0x182)](P(0x1b5)+a+'\x0a'));});if(a==='')return Log[M(0x179)](M(0x18f)),'';return a;}async['chooseInstance'](){const Q=a128s,a=await this[Q(0x1d1)]();if(a[Q(0x1ca)]===0x0)return Log[Q(0x179)](Q(0x15f)),null;const b=await Actions[Q(0x186)](Q(0x19c));!b&&(Log[Q(0x179)](Q(0x153)),process[Q(0x14f)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const R=a128s,b=this['fsi'][R(0x173)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x186)](R(0x1b3)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[R(0x17e)](R(0x1d9),!![]);if(h)try{const i=a128e['readFileSync'](a128f[R(0x1d2)](R(0x1aa),a,'ssh.json'),'utf8'),j=JSON[R(0x191)](i);j[R(0x176)]=a128f[R(0x1d2)](R(0x1b2),f+R(0x181)),a128e[R(0x16c)](a128f[R(0x1d2)](R(0x1aa),a,R(0x16a)),JSON[R(0x1a3)](j,null,0x2));}catch(k){Log['error'](k),Log[R(0x179)](R(0x15e));}}catch(l){Log['error'](l),process[R(0x14f)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x199)](d),{SecurityGroups:f}=e;f&&f[S(0x1a2)](function(i,j){const T=S;i[T(0x1c5)]&&i[T(0x15c)]&&b['push']({'id':j,'name':i[T(0x1c5)],'sgId':i[T(0x15c)]});});let g='',h=0x0;return b['forEach'](function(i){const U=S;i['name']===a&&(g=i[U(0x154)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const V=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x199)](c);}catch(d){Log['error'](d),process[V(0x14f)](0x1);}}}
|
|
1
|
+
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x1d2))/0x1+-parseInt(p(0x202))/0x2*(parseInt(p(0x23e))/0x3)+parseInt(p(0x21d))/0x4+-parseInt(p(0x1fc))/0x5*(-parseInt(p(0x224))/0x6)+-parseInt(p(0x1d0))/0x7*(parseInt(p(0x21a))/0x8)+-parseInt(p(0x1e0))/0x9*(parseInt(p(0x20f))/0xa)+parseInt(p(0x242))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xe604a));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x236)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x1e9)]()['search']('(((.+)+)+)+$')['toString']()[r(0x228)](a128a)[r(0x22e)]('(((.+)+)+)+$');});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x1ce;let f=c[d];return f;},a128d(a,b);}import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';function a128c(){const W=['config','checkDomainAvailability','confirm','Description:','instanceId','readFileSync','Reservations','Prices','createKeyPairEC2Key','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','9vKXCgC','0.0.0.0/0','minCount','ec2describeKeys','.pem.txt','createFile','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','maka-cli','send','toString','running','UserData','Hosted\x20zone\x20created\x20successfully!','KeyMaterial','Error\x20generating\x20key\x20pair','vpcId','Pem\x20key\x20saved\x20to\x20','env','length','ec2create','find','\x20Status\x20Code:\x20','notice','\x20opened!','ec2describeInstances','parse','getSecurityGroups','/dev/sdh','5YBwvpz','ask','log','deleteSecurityGroup','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','Name','194TsaQhU','suggestion','route53CreateHostedZone','createKeyPair','status','changeResourceRecordSets','Error\x20fetching\x20domain\x20pricing:','sgPorts','tags','chmod\x20400\x20','fsi','pem','ssh.json','4123390IZXdiu','file://','warn','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','exit','**\x20Available\x20\x20VPCs\x20**','\x20PUB_IP:\x20','CidrBlock','Error\x20saving\x20pem\x20file,\x20aborting','split','getAppConfigPath','229304PXNsGC','UPSERT','forEach','804100FoZGET','Port\x20','Invalid\x20choice','ID:\x20','instance','ec2rebootInstance','writeFileSync','10820046kuFAdN','_keys','isFile','success','constructor','ingressRule','ecrCreateRepository','RegistrationPrice','\x20CIDR:\x20','ec2terminateInstance','search','\x20to\x20','GroupId','Please\x20choose\x20a\x20VPC:\x20[0]\x20','publicIp','$response','pop','stringify','apply','reason','Error\x20creating\x20hosted\x20zone','\x20PRIV_IP:\x20','$metadata','tcp','registerDomain','userData','53898ODzxEN','Created:\x20','\x20INSTANCE_ID:\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','14165822cWAvtC','name','terminated','error','join','Instances','privateIp','HostedZones','sgId','VpcId','\x20NAME:\x20','imageId','description','Key\x20Name:\x20[','\x20Error\x20Rason:\x20','push','AVAILABLE','Successfully\x20linked\x20EC2\x20instance\x20','\x20STATUS:\x20','GroupName','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','434JQhevW','Could\x20not\x20find\x20hosted\x20zone','1582133mkGxqy','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','No\x20instances\x20found'];a128c=function(){return W;};return a128c();}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(0x20c)];constructor(){const t=a128s;this[t(0x20c)]=new FSI();}async[a128s(0x22a)](a){const u=a128s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x1e8)](c);return d;}catch(f){Log['error'](f);}}async[a128s(0x204)](a){const v=a128s;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x1e8)](c),Log[v(0x227)](v(0x1ec));}catch(d){Log[v(0x245)](v(0x238)),console[v(0x245)](d);}}async[a128s(0x23c)](a,b,c,d){const w=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x1e8)](f),Log[w(0x1f6)]('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[w(0x245)](w(0x1d3)),Log[w(0x211)]('From\x20AWS:'),console[w(0x245)](w(0x1f5)+g['$response']['statusCode']),console[w(0x245)](w(0x250)+g[w(0x233)][w(0x237)]);}}async[a128s(0x1d6)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x1e8)](c),e=d['Availability']===x(0x252);if(e){const f=a[x(0x218)]('.')[x(0x234)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0x1dc)]&&i[x(0x1dc)][0x0]?.['RegistrationPrice']){const j=i[x(0x1dc)][0x0][x(0x22b)];return{'available':e,'cost':j};}}catch(k){console[x(0x245)](x(0x208),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a128s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[y(0x249)])throw Log[y(0x245)](y(0x1d1));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x21b),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x207)](f),Log[y(0x1f6)](y(0x253)+a+y(0x22f)+c);}catch(g){console[y(0x245)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a128s(0x1f3)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x1fb),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x24d)],'InstanceType':a['type'],'KeyName':a['key'],'MaxCount':a['maxCount'],'MinCount':a[z(0x1e2)],'SecurityGroupIds':a['sgIds'][z(0x218)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':z(0x221),'Tags':a[z(0x20a)]}]};a[z(0x23d)]&&(b[z(0x1eb)]=z(0x210)+a[z(0x23d)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log['error'](f);}}async[a128s(0x22d)](a){const A=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[A(0x1e8)](c);return d;}catch(f){return Log[A(0x245)](f),{};}}async[a128s(0x1dd)]({keyName:a,env:b}){const B=a128s,c=this[B(0x20c)][B(0x219)](b),d=a128f[B(0x246)](c,B(0x225),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[B(0x1ed)];if(i){await this[B(0x20c)][B(0x1e5)]({'filePath':d,'data':i}),execSync(B(0x20b)+d,{'stdio':'ignore'});const j=this[B(0x20c)][B(0x226)](d);if(j)return Log[B(0x227)](B(0x1f0)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x217));}else throw new Error(B(0x1ee));}catch(k){Log[B(0x245)](k),process[B(0x213)](0x1);}}async[a128s(0x229)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x23b),'IpRanges':[{'CidrIp':C(0x1e1),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x1f6)](C(0x21e)+a+C(0x1f7)),await client['send'](d);}async['ec2createSG'](a){const D=a128s;try{a[D(0x24e)]===''&&(a[D(0x24e)]=await Actions[D(0x1fd)](D(0x1d8))||'Web\x20App');const b={'Description':a[D(0x24e)],'GroupName':a[D(0x243)],'VpcId':a[D(0x1ef)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x1e8)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x212));f&&a[D(0x209)]['forEach'](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success'](D(0x23f)+f+D(0x24c)+a[D(0x243)]);}catch(g){return Log[D(0x245)](g),![];}return!![];}async[a128s(0x1e3)](a){const E=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x1e8)](d);if(!f)throw E(0x212);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h['KeyName']&&b[F(0x251)]({'id':i,'name':h['KeyName']});}),b['length']>0x0&&b[E(0x21c)](h=>{const G=E;h[G(0x243)]===a?.[G(0x203)]?Log[G(0x227)](G(0x220)+h['id']+G(0x24c)+h[G(0x243)]):Log[G(0x1f6)](G(0x220)+h['id']+G(0x24c)+h[G(0x243)]);})):Log[E(0x245)](E(0x1de));}catch(h){Log[E(0x245)](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(0x245)](d),process['exit'](0x1);}}async[a128s(0x1f8)](){const I=a128s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[I(0x1e7)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x1e8)](c);d[I(0x1db)]?.[I(0x21c)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x247)][0x0],n=m?.[J(0x1f4)](({Key:o})=>o==='environment');a[J(0x251)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x201)],'name':l,'env':n?.['Value']});}}),a['length']>0x0?a[I(0x21c)](f=>{const K=I,g=K(0x220)+f['id']+K(0x24c)+f[K(0x243)]+'\x20ENV:\x20'+f[K(0x1f1)]+K(0x254)+f[K(0x206)]+K(0x240)+f['instanceId']+K(0x215)+f[K(0x232)]+K(0x239)+f[K(0x248)];if(f['status']===K(0x244))Log[K(0x245)](g);else f[K(0x206)]===K(0x1ea)?Log[K(0x227)](g):Log[K(0x1f6)](g);}):Log[I(0x245)](I(0x1df));}catch(f){Log['error'](f);}return a;}async[a128s(0x222)](a){const L=a128s;try{const b={'InstanceIds':[a[L(0x1d9)]]},c=new RebootInstancesCommand(b),d=await client[L(0x1e8)](c);return d[L(0x23a)]['httpStatusCode']===0xc8&&Log[L(0x227)]('Instance\x20rebooted!'),d;}catch(f){Log['error'](f);}}async['chooseVPC'](){const M=a128s;let a='';Log[M(0x1f6)](M(0x214));const b=new DescribeVpcsCommand({}),c=await client[M(0x1e8)](b),{Vpcs:d}=c,e=[];d&&d[M(0x21c)]((g,h)=>{const N=M;g['VpcId']&&g[N(0x216)]&&e[N(0x251)]({'id':h,'vpcId':g[N(0x24b)],'cidr':g['CidrBlock']});});e[M(0x21c)](function(g){const O=M;console[O(0x1fe)]('ID:\x20'+g['id']+'\x20VPCID:\x20'+g['vpcId']+O(0x22c)+g['cidr']);});const f=await Actions[M(0x1fd)](M(0x231))||0x0;e[M(0x21c)](function(g){const P=M;g['id']==f&&(a=g[P(0x1ef)],Log['success'](P(0x200)+a+'\x0a'));});if(a==='')return Log[M(0x245)](M(0x1cf)),'';return a;}async['chooseInstance'](){const Q=a128s,a=await this['ec2describeInstances']();if(a[Q(0x1f2)]===0x0)return Log[Q(0x245)](Q(0x1d4)),null;const b=await Actions[Q(0x1fd)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[Q(0x245)](Q(0x21f)),process['exit'](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x205)]({env:a}){const R=a128s,b=this[R(0x20c)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](R(0x24f)+d+']\x20')||d,{filePath:g}=await this[R(0x1dd)]({'keyName':f,'env':a});try{const h=await Actions[R(0x1d7)](R(0x241),!![]);if(h)try{const i=a128e[R(0x1da)](a128f[R(0x246)](R(0x1d5),a,R(0x20e)),'utf8'),j=JSON[R(0x1f9)](i);j[R(0x20d)]=a128f[R(0x246)](R(0x225),f+R(0x1e4)),a128e[R(0x223)](a128f['join'](R(0x1d5),a,R(0x20e)),JSON[R(0x235)](j,null,0x2));}catch(k){Log[R(0x245)](k),Log[R(0x245)](R(0x1e6));}}catch(l){Log[R(0x245)](l),process[R(0x213)](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x1fa)](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x1e8)](d),{SecurityGroups:f}=e;f&&f[S(0x21c)](function(i,j){const T=S;i['GroupName']&&i[T(0x230)]&&b[T(0x251)]({'id':j,'name':i[T(0x1ce)],'sgId':i[T(0x230)]});});let g='',h=0x0;return b[S(0x21c)](function(i){const U=S;i[U(0x243)]===a&&(g=i[U(0x24a)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x1ff)](a){const V=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x1e8)](c);}catch(d){Log[V(0x245)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0x86))/0x1+-parseInt(k(0x8d))/0x2*(-parseInt(k(0x8f))/0x3)+parseInt(k(0x87))/0x4+-parseInt(k(0x8a))/0x5+parseInt(k(0x88))/0x6+-parseInt(k(0x8c))/0x7+-parseInt(k(0x8e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x7b3a0));export var CountryCode;function a129c(){var n=['1394370KQIlTJ','apply','943285opjbUe','13194RZmNzv','9038696ysSivO','399FYjDZb','toString','(((.+)+)+)+$','196674QXNmEQ','2532148qCPEJB','2046540SqPKWv','constructor'];a129c=function(){return n;};return a129c();}function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x84;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(0x8b)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0x84)]()['search'](m(0x85))[m(0x84)]()[m(0x89)](e)['search'](m(0x85));});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
|
-
function
|
|
1
|
+
function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0xff;let f=c[d];return f;},a130d(a,b);}const a130n=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0xff))/0x1+-parseInt(j(0x116))/0x2+-parseInt(j(0x104))/0x3*(parseInt(j(0x119))/0x4)+-parseInt(j(0x118))/0x5*(parseInt(j(0x10d))/0x6)+parseInt(j(0x114))/0x7+parseInt(j(0x108))/0x8*(-parseInt(j(0x115))/0x9)+parseInt(j(0x100))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xd75a7));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x110)]()[l(0x111)](l(0x109))['toString']()[l(0x10b)](a130a)[l(0x111)](l(0x109));});a130a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a130c(){const q=['toString','search','awsLogin','apply','2507085NxcMtC','27kbDRfh','1738816YntERg','AWS','2847280vbxUvj','5262172MxKZJc','182116Ddlluh','39421920itzIGB','tag','.amazonaws.com','error','3ItfNGB','join','.dkr.ecr.','login','1284632rKEBaN','(((.+)+)+)+$','--password-stdin','constructor','inherit','6rrFKQH','pushImage','.amazonaws.com/'];a130c=function(){return q;};return a130c();}export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a130d;try{const f=[m(0x101),a,b+'.dkr.ecr.'+c+m(0x10f)+d],g='docker\x20'+f[m(0x105)]('\x20'),h=execSync(g,{'stdio':m(0x10c)})['toString']();return h;}catch(i){return Log['error'](i),'';}}static[a130n(0x112)]({awsAccountId:a,region:b}){const o=a130n;try{const c=[o(0x107),'--username',o(0x117),o(0x10a),a+o(0x106)+b+o(0x102)],d='docker\x20'+c[o(0x105)]('\x20'),f=execSync(d,{'stdio':'inherit'})['toString']();return f;}catch(g){return Log[o(0x103)](g),'';}}static[a130n(0x10e)]({awsAccountId:a,region:b,repoName:c}){const p=a130n;try{const d=['push',a+p(0x106)+b+p(0x10f)+c],f='docker\x20'+d[p(0x105)]('\x20'),g=execSync(f,{'stdio':p(0x10c)})[p(0x110)]();return g;}catch(h){return Log[p(0x103)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a131d,c=a();while(!![]){try{var d
|
|
1
|
+
function a131c(){var i=['(((.+)+)+)+$','apply','780636lqYXIC','4BJTqXN','851543zRiVrH','1888024pDywQz','20mqZJYo','constructor','511797RNEtyY','70qeBpdU','184906gWyQrw','9GzXsuZ','toString','744288JxQrWJ','search','594920dBvPiC'];a131c=function(){return i;};return a131c();}(function(a,b){var f=a131d,c=a();while(!![]){try{var d=-parseInt(f(0xfb))/0x1*(-parseInt(f(0x102))/0x2)+parseInt(f(0xfa))/0x3+-parseInt(f(0xfd))/0x4+parseInt(f(0xfe))/0x5*(parseInt(f(0xf5))/0x6)+parseInt(f(0xfc))/0x7+-parseInt(f(0xf7))/0x8*(parseInt(f(0x103))/0x9)+-parseInt(f(0x101))/0xa*(parseInt(f(0x100))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x5bbfd));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a['toString']()[h(0xf6)]('(((.+)+)+)+$')[h(0xf4)]()[h(0xff)](a131a)[h(0xf6)](h(0xf8));});a131a();function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0xf4;var f=c[d];return f;},a131d(a,b);}export{};
|