@maka/maka-cli 4.7.25 → 4.7.27
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 +4 -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 a118m=a118d;
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=-parseInt(j(0x1fd))/0x1*(-parseInt(j(0x1f5))/0x2)+parseInt(j(0x208))/0x3*(-parseInt(j(0x203))/0x4)+-parseInt(j(0x218))/0x5+parseInt(j(0x22e))/0x6*(-parseInt(j(0x1f3))/0x7)+parseInt(j(0x225))/0x8+-parseInt(j(0x228))/0x9*(-parseInt(j(0x207))/0xa)+-parseInt(j(0x235))/0xb*(parseInt(j(0x1fc))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0xc1121));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0x219)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0x220)]()[l(0x1f7)](l(0x22a))[l(0x220)]()[l(0x216)](a118a)[l(0x1f7)](l(0x22a));});a118a();import a118e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a118d(a,b);}function a118c(){const p=['4mrdbgD','client','theme','ramda','7653550VQMuFb','302187SSthpm','components','warn','component/component.js','vanilla','test','template','fileName','template/template.html','html','Updating\x20npm\x20packages\x20...','layouts','fsi','dir','constructor','route','2705730JENXpO','apply','ssr','baseDir','hook/hook.js','resourceName','true','checkNpmPackage','toString','.js','className','page','injectAtBeginningOfFile','6910928PwpqLj','root','css','9WphuYN','component','(((.+)+)+)+$','string','withTranslations','processAndRunGenerator','62670PhLWfH','hasOwnProperty','features','assign','pathFromProject','import\x20\x27./','pages','198zhyUGq','setTemplate','withHook','889xAzTTF','.app-tests.js','53268fesXSf','.html','search','react','test/test.js','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','layout','205500fXDHdj','54euahCd','/imports/ui/','engines','maka\x20g:page\x20todos/todos-item','\x27;\x0a','Generate\x20a\x20page.'];a118c=function(){return p;};return a118c();}import a118f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator['create']({'name':a118m(0x223),'aliases':aliases,'usage':a118m(0x1fa),'shortDesc':a118m(0x202),'validOpts':[{'name':a118m(0x21b),'values':['hooks',a118m(0x209),a118m(0x234),a118m(0x213)]},{'name':a118m(0x237),'boolFlag':!![]}],'examples':[a118m(0x200)]},async function(a,b){const n=a118m,c=b[n(0x21b)]?n(0x1fe)+b[n(0x21b)]:'/imports/ui/pages',d=this[n(0x214)]['pathFromApp'](b),e=this['fsi']['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[n(0x21d)]),paramCase(b['resourceName'])]}),f=this['fsi']['getMakaProjectConfig']();let g='';return await this[n(0x214)]['withValue'](f,async()=>{const o=n;typeof f[o(0x20e)][o(0x211)]===o(0x22b)&&(f[o(0x20e)][o(0x211)]=f[o(0x20e)]['html']===o(0x21e)?!![]:![],this[o(0x214)]['setTemplate'](o(0x211),f[o(0x20e)][o(0x211)]));typeof f[o(0x20e)][o(0x20d)]==='string'&&(f['template'][o(0x20d)]=f[o(0x20e)][o(0x20d)]===o(0x21e)?!![]:![],this[o(0x214)][o(0x236)](o(0x20d),f[o(0x20e)]['test']));typeof f[o(0x20e)][o(0x227)]===o(0x22b)&&(f[o(0x20e)]['css']=f['template'][o(0x227)]==='true'?!![]:![],this[o(0x214)]['setTemplate'](o(0x227),f['template'][o(0x227)]));typeof f['template']['js']===o(0x22b)&&(f[o(0x20e)]['js']=f[o(0x20e)]['js']==='true'?!![]:![],this[o(0x214)][o(0x236)]('js',f[o(0x20e)]['js']));!f[o(0x230)]&&(f[o(0x230)]={});!b[o(0x226)]&&!this[o(0x214)][o(0x21f)]('ramda')&&(Log[o(0x20a)](o(0x212)),this['fsi']['installNpmPackage'](o(0x206),{'cwd':d}));const h={'name':pascalCase(b['resourceName']),'myPath':a118e['relative'](this[o(0x214)][o(0x232)]({}),e),'cssCaseName':paramCase(b[o(0x21d)]),'className':pascalCase(b[o(0x21d)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x21d)]),'graphql':f[o(0x1ff)]['graphql'],'features':f[o(0x230)],'client':f[o(0x1ff)][o(0x204)],'api':f[o(0x1ff)]['api'],'ssr':f[o(0x1ff)][o(0x21a)],'isStore':b['hasOwnProperty']('store'),'isComponent':b[o(0x22f)](o(0x229)),'isLayout':b['hasOwnProperty'](o(0x1fb)),'withTranslations':f[o(0x230)][o(0x22c)],'test':f[o(0x1ff)][o(0x20d)],'theme':f[o(0x1ff)][o(0x205)]};f[o(0x20e)]['html']&&await this[o(0x214)]['template']({'srcPath':o(0x210),'destPath':e+o(0x1f6),'context':h,'config':f});f[o(0x230)]?.['withHooks']||b['withHook']?await this[o(0x214)][o(0x20e)]({'srcPath':o(0x21c),'destPath':e+o(0x221),'framework':'react','context':h,'config':f}):await this[o(0x214)][o(0x20e)]({'srcPath':o(0x20b),'destPath':e+'.js','framework':o(0x1f8),'context':h,'config':f});f[o(0x1ff)][o(0x20d)]!=='none'&&await this[o(0x214)][o(0x20e)]({'srcPath':o(0x1f9),'destPath':e+o(0x1f4),'framework':o(0x1f8),'context':h,'config':f});f['template'][o(0x227)]&&await this[o(0x214)][o(0x20e)]({'srcPath':'template/template.css','destPath':e+'.css','context':Object[o(0x231)]({},h,{'className':paramCase(b[o(0x21d)])}),'config':f});f[o(0x1ff)][o(0x204)]!=='react'&&f[o(0x1ff)]['client']!==o(0x20c)?(f[o(0x20e)][o(0x227)]&&await this['fsi'][o(0x224)]({'filePath':e+'.'+f[o(0x1ff)]['js'],'content':o(0x233)+h['fileName']+'.'+f[o(0x1ff)][o(0x211)]+o(0x201)+o(0x233)+h['fileName']+'.'+f[o(0x1ff)][o(0x227)]+'\x27;'}),!f[o(0x20e)]['css']&&await this[o(0x214)][o(0x224)]({'filePath':e+'.'+f[o(0x1ff)]['js'],'content':o(0x233)+h[o(0x20f)]+'.'+f[o(0x1ff)][o(0x211)]+'\x27;'})):f[o(0x20e)]['css']&&await this[o(0x214)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x1ff)]['js'],'content':o(0x233)+h[o(0x20f)]+'.'+f[o(0x1ff)][o(0x227)]+'\x27;'});const i=b['dir']?'/'+b[o(0x215)]+'/':'/';g=''+c+i+h[o(0x20f)]+'/'+h[o(0x20f)],await this['fsi']['injectTemplateModule'](h[o(0x222)],f,g),!b[o(0x226)]&&await a118f[o(0x22d)](o(0x217),[i+h[o(0x222)]],b);}),g+'.'+f[n(0x1ff)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d
|
|
1
|
+
const a119k=a119d;function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x64;let f=c[d];return f;},a119d(a,b);}(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(0x71))/0x1+parseInt(h(0x6f))/0x2+parseInt(h(0x69))/0x3+parseInt(h(0x70))/0x4*(-parseInt(h(0x6b))/0x5)+-parseInt(h(0x7e))/0x6+parseInt(h(0x64))/0x7*(-parseInt(h(0x6c))/0x8)+parseInt(h(0x77))/0x9*(parseInt(h(0x65))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x806ee));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a119d;if(c){const e=c[i(0x7b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const j=a119d;return a119a[j(0x73)]()[j(0x66)](j(0x78))[j(0x73)]()[j(0x74)](a119a)['search'](j(0x78));});a119a();import{paramCase}from'change-case';function a119c(){const n=['toString','constructor','injectAtEndOfFile','resourceName','261ZSCLuP','(((.+)+)+)+$','engines','tsx','apply','publish','publish/publish.','3530388BusiZN','7ZjsmAX','342530ZZrmEn','search','templateContent','maka\x20g:publish\x20todos','2287437mMTEwo','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','3377905rOwgff','2870048wiRQKk','rewriteDestinationPathForEngine','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','624310kddSYt','4ieSCZR','80826vNGsCX','fsi'];a119c=function(){return n;};return a119c();}import{Generator}from'../generator.js';Generator['create']({'name':a119k(0x7c),'aliases':['p'],'usage':a119k(0x6a),'shortDesc':a119k(0x6e),'validOpts':[],'examples':[a119k(0x68)]},async function(a,b){const l=a119k,c=this[l(0x72)]['getMakaProjectConfig']();await this[l(0x72)]['withValue'](c,async()=>{const m=l,d={'name':b[m(0x76)],'collection':paramCase(b[m(0x76)]),'noRename':!![]};let e='js';c[m(0x79)]['js']===m(0x7a)&&(e='ts');const f=this[m(0x72)][m(0x6d)]({'pathParts':['server/publish.'+c['engines']['js']]}),g=this[m(0x72)][m(0x67)]({'srcPath':m(0x7d)+e,'context':d,'config':c});await this[m(0x72)][m(0x75)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a120B=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(
|
|
1
|
+
const a120B=a120d;function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xcb;let f=c[d];return f;},a120d(a,b);}(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(0x117))/0x1*(parseInt(y(0xdc))/0x2)+parseInt(y(0xe0))/0x3*(parseInt(y(0xce))/0x4)+parseInt(y(0xd3))/0x5*(parseInt(y(0xf6))/0x6)+-parseInt(y(0xfb))/0x7*(-parseInt(y(0x112))/0x8)+-parseInt(y(0x10f))/0x9*(parseInt(y(0xd0))/0xa)+parseInt(y(0xf2))/0xb*(-parseInt(y(0xee))/0xc)+parseInt(y(0xe5))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x5b9e5));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a120d;if(c){const e=c[z(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const A=a120d;return a120a[A(0xe7)]()[A(0xd9)]('(((.+)+)+)+$')['toString']()[A(0x10b)](a120a)['search'](A(0xf8));});a120a();function a120c(){const K=['maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','\x20already\x20exists.\x20\x20Skipping.','4287ltwRRp','Invalid\x20directory\x20option\x20\x22','/imports/ui/','PrivateLayout','\x20to\x20','13149474aYXtRe','map','toString','resourceName','MasterLayout','apply','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','fileContainsString','layout','96552UeuusQ','only','templateContent','const\x20publicRoutes\x20=\x20(<>','979BGZeMp','fsi','true','injectAfterLineNumber','114WuuqQu','create','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20Route.','<Route','496741gkrTpM','readFileLines','maka\x20g:route\x20pages/about','info','error','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','client','/imports/ui/pages','imports','filter','maka\x20g:route\x20todosIndex\x20todos','pathFromApp','pathFromProject','\x0a\x09\x09','private','templateName','constructor','\x22*\x22','rewriteDestinationPathForEngine','baseDir','1656HwesYd','routes.js','join','8lLcoHd','replace','Route\x20','injectAtEndOfFile','includes','75527zByDrj','const\x20privateRoutes\x20=\x20(<>','lib','startup','components','length','Adding\x20route\x20','ssr','cwd','indexOf','withHook','</Router>','hooks','engines','2092OgEctj','warn','37280UarqJd','layouts','route','145185koJcpt','route/route.js','features','dir','url','maka\x20g:route\x20todosEdit\x20todos/:id/edit','search','Valid\x20options\x20are:\x20','toLowerCase','16aalfuy','react'];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(0xf7)]({'name':a120B(0xd2),'aliases':aliases,'validOpts':[a120B(0x109),a120B(0xed),a120B(0xef),a120B(0x11f),'config','root',a120B(0x121),a120B(0xd7),a120B(0x10e)],'usage':a120B(0xde),'shortDesc':a120B(0xf9),'examples':[a120B(0x105),a120B(0xd8),a120B(0xeb),'maka\x20g:route\x20pages/lists/listIndex\x20lists',a120B(0xfd)]},async function(a,b){const C=a120B;try{const c=[C(0xcc),C(0x11b),'pages',C(0xd1)];if(b['baseDir']&&!c[C(0x116)](b['baseDir'])){Log[C(0xff)](C(0xe1)+b[C(0x10e)]+'\x22'),Log[C(0xff)](C(0xda)+c[C(0x111)](',\x20'));throw new UsageError();}const d=this['fsi']['getMakaProjectConfig']();await this['fsi']['withValue'](d,async()=>{const D=C,f=b[D(0x109)]??![];let g=paramCase(b[D(0xe8)]),h='/'+g;a[D(0x11c)]>0x1&&(h='/'+a[D(0x104)](function(n){return n!=='/';})[D(0x111)]('/')[D(0xdb)]());g=camelCase(g);b[D(0xed)]&&(b[D(0xed)]=camelCase(b['layout']));const i=b[D(0x10e)]?D(0xe2)+b[D(0x10e)]:D(0x102),j=a120e[D(0x111)](i,b[D(0xd6)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0xed)]||D(0xe9),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0xcd)]['client'],'newForm':![],'withTranslations':d[D(0xd5)]['withTranslations']};f&&(k['layout']=D(0xe3));let l,m;if(d[D(0xcd)][D(0x101)]===D(0xdd)){if(d[D(0xcd)][D(0x11e)]===D(0xf4)){const r=this[D(0xf3)][D(0x106)]({'pathParts':['imports',D(0x11a),D(0x119),D(0x110)]});l=this[D(0xf3)][D(0x10d)]({'pathParts':[r],'config':d});}else{const s=this[D(0xf3)][D(0x106)]({'pathParts':[D(0x103),D(0x11a),D(0x101),D(0x110)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[s],'config':d});}const n=await this[D(0xf3)][D(0xec)](l,g);if(n){Log['warn'](D(0x114)+g+D(0xdf));return;}else{const t=this[D(0xf3)][D(0x107)](l);Log[D(0xfe)](D(0x11d)+g+D(0xe4)+l[D(0x113)](t,''));}const o=this[D(0xf3)][D(0xfc)](l)[D(0xe6)]((u,v)=>{const E=D;return u[E(0x116)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})[D(0x104)](u=>u!==null);let p=this[D(0xf3)][D(0xfc)](l)[D(0xe6)]((u,v)=>{const F=D;return u[F(0x116)](F(0xf1))?v+0x1:null;})[D(0x104)](u=>u!==null),q=this['fsi']['readFileLines'](l)[D(0xe6)]((u,v)=>{const G=D;return u['includes'](G(0x118))?v+0x1:null;})[D(0x104)](u=>u!==null);p[D(0x11c)]>0x0&&q[D(0x11c)]>0x0&&(k['newForm']=!![]);m=this[D(0xf3)][D(0xf0)]({'srcPath':D(0xd4),'framework':'react','context':k,'config':d});if(p[D(0x11c)]>0x0||q[D(0x11c)]>0x0){this[D(0xf3)][D(0xf5)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0xf3)][D(0xfc)](l)['map']((u,v)=>{const H=D;return u[H(0x116)](H(0x118))?v+0x1:null;})[D(0x104)](u=>u!==null),this[D(0xf3)][D(0xf5)]({'filePath':l,'content':'\x09{'+k[D(0x10a)]+'}','lineNumber':q[0x0]});else p[D(0x11c)]>0x0?(p=this[D(0xf3)]['readFileLines'](l)['map']((u,v)=>{const I=D;return u[I(0x116)](I(0xf1))?v+0x1:null;})['filter'](u=>u!==null),this[D(0xf3)][D(0xf5)]({'filePath':l,'content':'\x09{'+k[D(0x10a)]+'}','lineNumber':p[0x0]})):Log[D(0xcf)](D(0x100)+l);}else{const u=this['fsi'][D(0xfc)](l)[D(0xe6)](x=>{const J=D;return x[J(0x116)](J(0x10c));}),v=u[D(0x120)](!![])>-0x1,w=v?D(0xfa):D(0xcb);await this[D(0xf3)]['injectIntoFile']({'filePath':l,'content':D(0x108)+m+D(0x108),'begin':'<Router','end':w});}}else{if(d['engines'][D(0x101)]==='vanilla'){const x=this[D(0xf3)]['pathFromApp']({'pathParts':['imports','startup',D(0x101),'routes.js']});l=this[D(0xf3)][D(0x10d)]({'pathParts':[x],'config':d}),m=this['fsi'][D(0xf0)]({'srcPath':D(0xd4),'context':k}),await this[D(0xf3)][D(0x115)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a121m=a121d;function a121c(){const p=['winston\x20setimmediate','engines','services','resourceName','template','constructor','maka\x20{generate,\x20g}:{service}\x20<resource-name>','toString','(((.+)+)+)+$','9pFohIW','svc','startup','fsi','type','22565392PhFlpG','winston','912852HbXQsK','logger','apply','create','checkNpmPackage','9CtxRbJ','installNpmPackage','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','lib','imports','413552fQXphx','Installing\x20winston','maka\x20g:svc\x20service-logger\x20--type=logger','pathFromApp','tsx','8554987ztVQrF','200514jJNSHw','service','getMakaProjectConfig','6966354XCfVDv','909275myklmA','search'];a121c=function(){return p;};return a121c();}(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0x186))/0x1+-parseInt(j(0x196))/0x2*(-parseInt(j(0x18b))/0x3)+parseInt(j(0x190))/0x4+-parseInt(j(0x19a))/0x5+parseInt(j(0x199))/0x6+parseInt(j(0x195))/0x7+-parseInt(j(0x184))/0x8*(parseInt(j(0x17f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xaa552));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a['toString']()[l(0x19b)](l(0x17e))[l(0x17d)]()[l(0x17b)](a121a)[l(0x19b)]('(((.+)+)+)+$');});a121a();import{camelCase,paramCase,pascalCase}from'change-case';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x17b;let f=c[d];return f;},a121d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a121m(0x189)]({'name':a121m(0x197),'aliases':[a121m(0x180)],'usage':a121m(0x17c),'shortDesc':a121m(0x18d),'requiredOpts':[{'name':a121m(0x183),'values':[a121m(0x187)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121m(0x192)]},async function(a,b){const n=a121m;try{const c=this[n(0x182)][n(0x198)]();await this[n(0x182)]['withValue'](c,async()=>{const o=n,d=this[o(0x182)][o(0x193)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x19f)]),'fileName':f,'camelCase':camelCase(b[o(0x19f)]),'type':b[o(0x183)],'engine':c[o(0x19d)]['js'],'noRename':!![]};let h='js';c[o(0x19d)]['js']===o(0x194)&&(h='ts');if(b[o(0x183)]===o(0x187)){!this['fsi'][o(0x18a)](o(0x185))&&await this['fsi'][o(0x18c)](o(0x19c),{'cwd':d,'msg':o(0x191)});const i=this[o(0x182)][o(0x193)]({'pathParts':[o(0x18f),o(0x181),o(0x18e),o(0x19e),f+'.'+h]});await this['fsi'][o(0x1a0)]({'srcPath':'service/logger/logger.js','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 a122c(){var i=['constructor','4248049BucvgQ','apply','159iKiBWa','382921yjtjKB','66635Axdphv','101151pdCMaw','search','152VdxfQs','4NKDHuW','465930UFWIbp','15588WIUZGg','7UEExSQ','(((.+)+)+)+$','367290MQJmfs','20ygScux','12PFDhyS','toString'];a122c=function(){return i;};return a122c();}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0x1e7))/0x1*(-parseInt(f(0x1eb))/0x2)+-parseInt(f(0x1e5))/0x3*(parseInt(f(0x1db))/0x4)+-parseInt(f(0x1de))/0x5+-parseInt(f(0x1ec))/0x6*(parseInt(f(0x1dc))/0x7)+-parseInt(f(0x1ea))/0x8*(-parseInt(f(0x1e8))/0x9)+parseInt(f(0x1df))/0xa*(parseInt(f(0x1e6))/0xb)+parseInt(f(0x1e0))/0xc*(parseInt(f(0x1e3))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x1d0e4));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x1e4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a['toString']()['search'](h(0x1dd))[h(0x1e1)]()[h(0x1e2)](a122a)[h(0x1e9)](h(0x1dd));});a122a();import'./translation.js';function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1db;var f=c[d];return f;},a122d(a,b);}import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=parseInt(i(0xa5))/0x1*(parseInt(i(0xab))/0x2)+parseInt(i(0xb4))/0x3*(parseInt(i(0x9d))/0x4)+parseInt(i(0x9e))/0x5+-parseInt(i(0xa7))/0x6+-parseInt(i(0xb2))/0x7*(-parseInt(i(0x9f))/0x8)+-parseInt(i(0x9c))/0x9+parseInt(i(0xae))/0xa*(parseInt(i(0xac))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0xeea64));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a['toString']()[k(0xb5)](k(0xb6))[k(0xad)]()[k(0xb8)](a123a)[k(0xb5)](k(0xb6));});a123a();function a123c(){const o=['search','(((.+)+)+)+$','sslconfig','constructor','2655774ifTEdT','416332TvdYVL','728785dlxXwk','8tuWcRR','maka\x20g:sslconfig\x20--env\x20dev','env','openssl.conf','withValue','appName','432834ZGUVvo','error','5754552tTXwzW','fsi','maka\x20{generate,\x20g}:sslconfig','_keys','6VLkogi','11EPMfEn','toString','968230cDbwTK','apply','getAppConfigPath','openssl/openssl.conf','2648485meWfnR','template','9KwXAVg'];a123c=function(){return o;};return a123c();}function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x9c;let f=c[d];return f;},a123d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a123e from'path';Generator['create']({'name':a123l(0xb7),'usage':a123l(0xa9),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':[a123l(0xa1)],'examples':[a123l(0xa0)],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this['fsi']['getMakaProjectConfig'](),d=await this[m(0xa8)]['getGlobalConfig'](),f=this['fsi'][m(0xb0)](b[m(0xa1)]),g=a123e['join'](f,m(0xaa),m(0xa2));await this[m(0xa8)][m(0xa3)](c,async()=>{const n=m,h={'app':d[n(0xa4)],'noRename':!![]};await this[n(0xa8)][n(0xb3)]({'srcPath':n(0xb1),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0xa6)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a124A=a124d;
|
|
1
|
+
const a124A=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=-parseInt(x(0x121))/0x1*(-parseInt(x(0x13f))/0x2)+parseInt(x(0x129))/0x3+-parseInt(x(0x150))/0x4+parseInt(x(0x14d))/0x5+parseInt(x(0x124))/0x6*(parseInt(x(0x11d))/0x7)+parseInt(x(0x12d))/0x8+-parseInt(x(0x12e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x90f3c));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a124d;if(c){const e=c[y(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const z=a124d;return a124a['toString']()[z(0x122)](z(0x134))[z(0x11f)]()[z(0x119)](a124a)[z(0x122)]('(((.+)+)+)+$');});a124a();function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x115;let f=c[d];return f;},a124d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a124c(){const D=['readFileSync','210ZEYyCt','Locale\x20already\x20defined:\x20','services','features.withTranslations','lang','681411hTlauO','exit','true','i18next\x20i18next-browser-languagedetector\x20react-i18next','7565136zgGqSv','18809640TclkoG','apply','i18n.js','template','create','isFile','(((.+)+)+)+$','engines','rewriteDestinationPathForEngine','pathFromApp','maka\x20{generate,\x20g}:translation','locales','warn','import\x20\x27../lib/services/translations/i18n\x27;','translations','getMakaProjectConfig','root','785310OUAJKJ','Locale\x20already\x20exported:\x20','\x20}\x20from\x20\x27./','fsi','checkNpmPackage','service','i18n/i18n.js','export\x20{\x20default\x20as\x20','injectAtBeginningOfFile','.js','server','injectAtEndOfFile','translation','grep','4475920CobIRe','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','maka\x20g:translation\x20--lang=fr','1150756lFWEJY','\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','index.js','withValue','imports','getGlobalConfig','import\x20\x27../lib/services/translations/i18n\x27;\x0a','constructor','maka\x20g:translation\x20--lang=en\x20(default)','error','startup','102151tgZjhF','i18next','toString','lib','1EFqSbi','search'];a124c=function(){return D;};return a124c();}import a124e from'fs';Generator[a124A(0x132)]({'name':a124A(0x14b),'usage':a124A(0x138),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124A(0x128),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a124A(0x151),'examples':[a124A(0x11a),a124A(0x14f),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a124A;try{const c=this['fsi'][B(0x13d)](),d=this[B(0x142)][B(0x117)](),f=this[B(0x142)]['findAppDirectory']();await this[B(0x142)][B(0x115)](c,async()=>{const C=B;try{!b[C(0x128)]&&(b[C(0x128)]='en');!b[C(0x13e)]&&!this[C(0x142)][C(0x143)](C(0x11e))&&(Log[C(0x13a)](C(0x14e)),this[C(0x142)]['installNpmPackage'](C(0x12c),{'cwd':f}),this[C(0x142)]['setProjectConfig'](C(0x127),!![]));const g=this['fsi'][C(0x137)]({'pathParts':['imports','startup','client','index.js']}),h=this[C(0x142)]['rewriteDestinationPathForEngine']({'pathParts':[g],'config':c}),i=this[C(0x142)][C(0x14c)](a124e[C(0x123)](h)[C(0x11f)](),C(0x13b))[0x0]&&!![];if(c[C(0x135)]['ssr']===C(0x12b)){!i&&this[C(0x142)][C(0x147)]({'filePath':h,'content':C(0x118)});const t=this[C(0x142)][C(0x137)]({'pathParts':[C(0x116),C(0x11c),C(0x149),C(0x152)]}),u=this['fsi'][C(0x136)]({'pathParts':[t],'config':c}),v=this['fsi'][C(0x14c)](a124e[C(0x123)](u)[C(0x11f)](),C(0x13b))[0x0]&&!![];!v&&this[C(0x142)][C(0x147)]({'filePath':u,'content':C(0x118)});}else!i&&this['fsi'][C(0x147)]({'filePath':h,'content':C(0x118)});const j={'app':d['appName'],'config':c},k=this['fsi'][C(0x137)]({'pathParts':[C(0x116),C(0x11c),'lib','services',C(0x13c),C(0x130)]}),l=this[C(0x142)][C(0x133)](this[C(0x142)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[C(0x142)][C(0x131)]({'srcPath':C(0x145),'destPath':k,'framework':C(0x144),'context':j,'config':c});const m=this[C(0x142)][C(0x137)]({'pathParts':[C(0x116),C(0x11c),C(0x120),C(0x126),'translations',C(0x139),b[C(0x128)]+C(0x148)]}),n=this[C(0x142)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0x142)]['isFile'](n);!o?await this[C(0x142)][C(0x131)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0x144),'context':j,'config':c}):Log[C(0x13a)](C(0x125)+n);const p=this['fsi'][C(0x137)]({'pathParts':[C(0x116),C(0x11c),C(0x120),C(0x126),'translations',C(0x139),'index.'+c['engines']['js']]}),q=this[C(0x142)][C(0x136)]({'pathParts':[p],'config':c}),r=this[C(0x142)][C(0x133)](q);!r&&await this['fsi'][C(0x131)]({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x142)]['grep'](a124e['readFileSync'](p)[C(0x11f)](),'default\x20as\x20'+b['lang'])[0x0]&&!![];!s?await this[C(0x142)][C(0x14a)]({'filePath':p,'content':C(0x146)+b[C(0x128)]+C(0x141)+b['lang']+'\x27;'}):Log[C(0x13a)](C(0x140)+p);}catch(w){Log[C(0x11b)](w),process[C(0x12a)](0x1);}});}catch(g){Log['error'](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(0x159))/0x1*(parseInt(j(0x16a))/0x2)+-parseInt(j(0x15b))/0x3+parseInt(j(0x160))/0x4+-parseInt(j(0x154))/0x5+parseInt(j(0x16d))/0x6+parseInt(j(0x153))/0x7*(parseInt(j(0x162))/0x8)+-parseInt(j(0x156))/0x9*(parseInt(j(0x155))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x66775));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x161)]()[l(0x15c)](l(0x15a))['toString']()[l(0x16f)](a125a)[l(0x15c)](l(0x15a));});a125a();import a125e from'minimist';import a125f from'os';import a125g from'path';import a125h from'humps';function a125c(){const n=['1957672NSTlPR','MAKA_COMMAND_PATH','slice','floor','dirname','parse','TOOL_NODE_FLAGS','argv','1295494ixaiEK','run','apply','302856bQnmNd','stringify','constructor','--max-old-space-size=','NODE_NO_WARNINGS','14zNGKJC','645955rKyzVf','6108370HumLnI','9ETcIFG','camelizeKeys','env','1nscOyS','(((.+)+)+)+$','1468698OWunXG','search','BROWSERSLIST_IGNORE_OLD_DATA','url','totalmem','1846616tcAtiQ','toString'];a125c=function(){return n;};return a125c();}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-0x153;let f=c[d];return f;},a125d(a,b);}import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125m(0x15e)]),__dirname=a125g[a125m(0x166)](__filename);global[a125m(0x163)]=__dirname;const total_memory=a125f[a125m(0x15f)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0x165)](total_mem_in_mb),process['env'][a125m(0x168)]=a125m(0x170)+total_mem_in_mb,process[a125m(0x158)][a125m(0x15d)]='1',process[a125m(0x158)][a125m(0x171)]='1';const argv=a125e(process[a125m(0x169)][a125m(0x164)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x167)](JSON[a125m(0x16e)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0x157)](deepCopyArgv);a125i[a125m(0x16b)](args,opts);
|
|
@@ -5,8 +5,11 @@
|
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "maka run",
|
|
8
|
+
"start:docker": "maka run:docker",
|
|
8
9
|
"debug": "maka debug",
|
|
9
10
|
"build": "maka build",
|
|
11
|
+
"build:docker": "maka build:docker",
|
|
12
|
+
"test": "maka test",
|
|
10
13
|
"help": "maka help"
|
|
11
14
|
},
|
|
12
15
|
"bin": {
|
|
@@ -16,6 +19,6 @@
|
|
|
16
19
|
"type": "git"
|
|
17
20
|
},
|
|
18
21
|
"devDependencies": {
|
|
19
|
-
"@maka/maka-cli": "^4.7.
|
|
22
|
+
"@maka/maka-cli": "^4.7.27"
|
|
20
23
|
}
|
|
21
24
|
}
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d
|
|
1
|
+
function a126c(){const a1=['AppData','isCommand','charAt','toString','docker','apply','formatToNamedParam','validateParams','remapShortToLong','dir','validateMakaSubscription','44GvQWcl','singleLicense','constructor','Invalid\x20option:\x20','map','list','Invalid\x20value\x20for\x20','isPro','13838VsfMRs','search','error','concat','proGenerators','options','19704lPmzED','Local','isGenerator','_handler','No\x20usage\x20provided.','getMakaProjectConfig','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','To\x20use\x20this\x20generator,\x20\x22','string','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','fsi','(((.+)+)+)+$','4ICndrU','config','keys','exit','getPro','To\x20use\x20this\x20command,\x20\x22','No\x20description\x20provided.','None','shortDesc','3397580jdLlSS','\x20version\x20','indexOf','roles','Invalid\x20argument:\x20','2426844RNxHPj','validateMakaProject','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','length','Please\x20choose\x20an\x20environment','root','find','65FMfVsb','name','\x20installed\x20to\x20use\x20this\x20command.','aliases','push','win32','match','getShortName','homedir','join','16IIOSfV','domainLicense','validateEngines','findProjectDirectory','1445DWuXiI','50001WssRku','NIE','help','includes','env','1973913GAqsdj','proCommands','Please\x20choose\x20a\x20valid\x20value\x20for\x20','5128866FMBxhE','getAppProjectConfigs','existsSync','usage','assign','ask','description','disableAuthCheck','Please\x20choose\x20a\x20value\x20for\x20','resourceName','.meteor','parent','cwd'];a126c=function(){return a1;};return a126c();}function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0xb9;let f=c[d];return f;},a126d(a,b);}const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=-parseInt(I(0xc4))/0x1*(-parseInt(I(0xfb))/0x2)+parseInt(I(0xd8))/0x3*(-parseInt(I(0x10d))/0x4)+parseInt(I(0xd2))/0x5*(parseInt(I(0x101))/0x6)+-parseInt(I(0xd3))/0x7*(parseInt(I(0xce))/0x8)+-parseInt(I(0xdb))/0x9+-parseInt(I(0x116))/0xa+parseInt(I(0xf3))/0xb*(parseInt(I(0xbd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x98cce));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0xeb)]()[K(0xfc)](K(0x10c))[K(0xeb)]()[K(0xf5)](a126a)[K(0xfc)](K(0x10c));});a126a();import a126e from'path';import a126f from'os';import a126g from'fs';const homeDir=a126f[a126L(0xcc)]();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';export class Tool{['docker'];[a126L(0x10b)];[a126L(0x100)];[a126L(0xc5)];[a126L(0xe6)];[a126L(0x104)];constructor(){const M=a126L;this[M(0xec)]=new Docker(),this[M(0x10b)]=new FSI();}[a126L(0xcb)](a){const N=a126L;return a[N(0xea)](0x0);}[a126L(0xf0)](a,b){const O=a126L,c=this[O(0xee)](b),d={...a};for(const e of c){const f=this['getShortName'](e[O(0xc5)]);a[f]&&(d[e[O(0xc5)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const P=a126L;if(a['every'](b=>typeof b===P(0x109)))return a[P(0xf7)](b=>({'name':b}));return a;}[a126L(0xca)](a){const Q=a126L,b=[this[Q(0xc5)]][Q(0xfe)](this[Q(0x100)][Q(0xc7)]||[]);return this['parent']&&b['push'](this[Q(0xe6)]),b[Q(0xd6)](a);}[a126L(0xbe)](){const R=a126L,a=this[R(0x10b)][R(0xd1)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const S=a126L;let a=a126e[S(0xcd)](homeDir,S(0xe5));const b=process['platform']===S(0xc9);if(b){a=a126e['join'](homeDir,S(0xe8),S(0x102),'.meteor');if(!a126g[S(0xdd)](a))return![];}else{if(!a126g['existsSync'](a))return![];}return!![];}[a126L(0xd0)](a){const T=a126L,b=this[T(0x10b)][T(0x106)](),c=b['engines'],d=Object['keys'](a);if(d[T(0xc0)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0xfd)]('You\x20must\x20have\x20'+e+T(0xb9)+a[e]+T(0xc6));throw UsageError;}}}async[a126L(0xef)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h['includes'](U(0xe4))&&b[U(0xe4)]===undefined&&!g){const m=await Actions['ask']('Please\x20provide\x20a\x20resource\x20name:');b['resourceName']=m;}let i=[],j=b;if(d){i=this[U(0xee)](d),j=this[U(0xf0)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x10f)](j)[U(0xd6)](o)){if(o===U(0xd7)){const r=this[U(0x10b)][U(0xdc)](),s=await Actions[U(0x100)]({'type':'list','name':U(0xd7),'message':U(0xc1),'choices':r});b[U(0xd7)]=s[U(0xd7)];}else{const t=p;if(t){const u=await Actions[U(0x100)]({'type':U(0xf8),'name':o,'message':U(0xe3)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0xe0)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[U(0xca)](q))b[o]=v;else{Log[U(0xfd)](U(0xf9)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0xd6)](x)){Log[U(0xfd)](U(0xf9)+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0xee)](f),l=b;if(k&&Object['keys'](k)?.[U(0xc0)]>0x0){k=k[U(0xfe)](i||[]),k[U(0xc8)]({'name':U(0xe4),'hidden':!![]}),k[U(0xc8)]({'name':U(0xd5),'boolFlag':!![]}),k[U(0xc8)]({'name':U(0xf1),'hidden':!![]}),k[U(0xc8)]({'name':U(0xe7),'hidden':!![]}),k['push']({'name':U(0xc2),'hidden':!![]}),k[U(0xc8)]({'name':U(0x10e),'hidden':!![]}),l=this[U(0xf0)](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[U(0x100)]({'type':U(0xf8),'name':z,'message':U(0xda)+z,'choices':A});l[z]=D[z];}}if(k[U(0xc0)]>0x0)for(const E of Object['keys'](l)){const F=k[U(0xc3)](G=>G[U(0xc5)]===E);if(!F){Log['error'](U(0xf6)+E);throw new UsageError();}}}}if(e&&e?.[U(0xc0)]>0x0)for(const G of e){if(!e['includes'](G)){Log[U(0xfd)](U(0xbc)+G);const H=await Actions[U(0xe0)](U(0x107)+G);a[a[U(0xba)](G)]=H;}}return Object[U(0xdf)](j,l);}async[a126L(0xf2)](a){const V=a126L;try{if(!a)return;const b=await this[V(0x10b)][V(0x111)]();!b&&(Log[V(0xfd)](V(0xbf)),process[V(0x110)](0x1));const c=!b?.[V(0xbb)]['includes'](V(0xf4))&&!b?.[V(0xbb)][V(0xd6)](V(0xcf));if(this[V(0xe9)](a)){const d=V(0x112)+a[V(0xc5)]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[V(0x100)][V(0xe2)])return;const f=b?.[V(0xd9)][V(0xd6)](a[V(0xc5)])||b?.[V(0xd9)][V(0xd6)](a[V(0xe6)]||'')||this['options'][V(0xfa)];if(f&&c)throw d;}else{if(this[V(0x103)](a)){const g=b?.[V(0xff)]['includes'](a[V(0xc5)])||b?.[V(0xff)]['includes'](a[V(0xe6)]||'');if(g&&c)throw V(0x108)+a['name']+V(0x10a);}}}catch(h){Log[V(0xfd)](h),process[V(0x110)](0x1);}}[a126L(0xe9)](a){const W=a126L;return W(0x100)in a;}[a126L(0x103)](a){return!('options'in a);}[a126L(0xe1)](){const X=a126L;return this['options'][X(0xe1)]||this[X(0x100)]['shortDesc']||X(0x113);}[a126L(0x115)](){const Y=a126L;return this[Y(0x100)][Y(0x115)]||Y(0xd4);}['usage'](){const Z=a126L;return this['options'][Z(0xde)]||Z(0x105);}['examples'](){return this['options']['examples']||[];}[a126L(0xc7)](){const a0=a126L;return this[a0(0x100)][a0(0xc7)]||a0(0x114);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x93;let f=c[d];return f;},a127d(a,b);}const a127j=a127d;function a127c(){const l=['input','search','options','password','4NNYNcV','toString','prompt','answer','9zONjln','1234KmwUJz','589941OWkRFV','constructor','5787411FoqwSb','560GZeHnI','4085223itrtVI','(((.+)+)+)+$','9014872HXBGqy','7509870Upbzgf','3096070NsjweV','1282OnPQec','apply','confirm'];a127c=function(){return l;};return a127c();}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0xa5))/0x1*(-parseInt(f(0x9b))/0x2)+parseInt(f(0xa0))/0x3*(-parseInt(f(0x96))/0x4)+-parseInt(f(0xa4))/0x5+-parseInt(f(0xa3))/0x6+-parseInt(f(0x9e))/0x7+parseInt(f(0xa2))/0x8*(parseInt(f(0x9a))/0x9)+parseInt(f(0x9f))/0xa*(parseInt(f(0x9c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xd2678));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0x97)]()[h(0x93)]('(((.+)+)+)+$')[h(0x97)]()[h(0x9d)](a127a)['search'](h(0xa1));});a127a();import a127e from'inquirer';export class Actions{static async['ask'](a,b){const i=a127d,{answer:c}=await a127e[i(0x98)]({'type':b?i(0x95):i(0xa8),'name':'answer','message':a});return c;}static async[a127j(0xa7)](a,b=![]){const k=a127j,{answer:c}=await a127e['prompt']({'type':'confirm','name':k(0x99),'message':a,'default':b});return c;}static async[a127j(0x94)](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(0x192))/0x1*(-parseInt(p(0x190))/0x2)+-parseInt(p(0x15f))/0x3+-parseInt(p(0x1d1))/0x4+parseInt(p(0x175))/0x5+parseInt(p(0x1d0))/0x6*(parseInt(p(0x193))/0x7)+parseInt(p(0x1a2))/0x8+parseInt(p(0x199))/0x9*(-parseInt(p(0x1d5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xc9a40));function a128c(){const X=['find','\x20CIDR:\x20','AVAILABLE','UserData','UPSERT','changeResourceRecordSets','env','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','Prices','sgIds','minCount','statusCode','$response','Error\x20saving\x20pem\x20file,\x20aborting','2543406mSBpFc','exit','\x20INSTANCE_ID:\x20','getSecurityGroups','Created:\x20','_keys','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','search','\x20Error\x20Rason:\x20','Value','log','Port\x20','\x20PUB_IP:\x20','fsi','split','length','0.0.0.0/0','chooseInstance','deleteKeyPair','HostedZones','ecrCreateRepository','route53CreateHostedZone','1039855ETKnKJ','\x20STATUS:\x20','utf8','chmod\x20400\x20','KeyMaterial','Availability','Hosted\x20zone\x20created\x20successfully!','ec2create','getAppConfigPath','running','VpcId','GroupName','\x20to\x20','The\x20domain\x20\x27','terminated','Key\x20Name:\x20[','KeyName','sgPorts','readFileSync','**\x20Available\x20\x20VPCs\x20**','deleteSecurityGroup','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','instanceId','$metadata','RegistrationPrice','\x20opened!','Reservations','54642CafzJE','Pem\x20key\x20saved\x20to\x20','49NESvzK','179837aFTZdj','\x27\x20has\x20been\x20registered\x20successfully.','linkEC2ToRoute53','CidrBlock','sgId','description','9zTwhlg','instance','isFile','maxCount','\x20PRIV_IP:\x20','file://','Description:','\x20NAME:\x20','ingressRule','2548312ImxnpR','cidr','forEach','createKeyPairEC2Key','ignore','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ec2rebootInstance','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','apply','Please\x20choose\x20a\x20VPC:\x20[0]\x20','name','Error\x20linking\x20EC2\x20to\x20Route\x2053:','checkDomainAvailability','warn','createKeyPair','ask','vpcId','constructor','success','error','listHostedZonesByName','Could\x20not\x20find\x20hosted\x20zone','ID:\x20','suggestion','reason','GroupId','userData','Instances','pem','parse','send','environment','Error\x20creating\x20hosted\x20zone','ec2terminateInstance','privateIp','config','\x20VPCID:\x20','pop','.pem.txt','Name','join','status','getMakaProjectConfig','key','registerDomain','ec2describeInstances','156eznHOp','1325000TVTCmM','type','subnet','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','5282330HOUihb','ssh.json','createFile','push','imageId','notice','toString','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','tag:created-by','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','Error\x20generating\x20key\x20pair','Web\x20App'];a128c=function(){return X;};return a128c();}const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a['toString']()[r(0x166)]('(((.+)+)+)+$')[r(0x14b)]()[r(0x1b3)](a128a)[r(0x166)]('(((.+)+)+)+$');});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x148;let f=c[d];return f;},a128d(a,b);}import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a128s(0x16c)];constructor(){const t=a128s;this[t(0x16c)]=new FSI();}async[a128s(0x173)](a){const u=a128s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x1c0)](c);return d;}catch(f){Log[u(0x1b5)](f);}}async[a128s(0x174)](a){const v=a128s;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log['success'](v(0x17b));}catch(d){Log['error'](v(0x1c2)),console['error'](d);}}async[a128s(0x1ce)](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['notice'](w(0x182)+b+w(0x194));}catch(g){Log['error'](w(0x14c)),Log[w(0x1af)]('From\x20AWS:'),console[w(0x1b5)]('\x20Status\x20Code:\x20'+g[w(0x15d)][w(0x15c)]),console['error'](w(0x167)+g[w(0x15d)][w(0x1ba)]);}}async[a128s(0x1ae)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x1c0)](c),e=d[x(0x17a)]===x(0x153);if(e){const f=a[x(0x16d)]('.')[x(0x1c7)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x1c0)](h);if(i&&i[x(0x159)]&&i[x(0x159)][0x0]?.[x(0x18d)]){const j=i[x(0x159)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[x(0x1b5)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a128s(0x195)](a,b,c){const y=a128s;try{const d=await route53[y(0x1b6)]({'DNSName':c});if(!d?.['HostedZones'])throw Log['error'](y(0x1b7));const e=d?.[y(0x172)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x155),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x156)](f),Log[y(0x14a)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+y(0x181)+c);}catch(g){console[y(0x1b5)](y(0x1ad),g);}}async[a128s(0x17c)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x149)],'InstanceType':a[z(0x1d2)],'KeyName':a[z(0x1cd)],'MaxCount':a[z(0x19c)],'MinCount':a[z(0x15b)],'SecurityGroupIds':a[z(0x15a)][z(0x16d)](','),'SubnetId':a[z(0x1d3)],'TagSpecifications':[{'ResourceType':z(0x19a),'Tags':a['tags']}]};a[z(0x1bc)]&&(b[z(0x154)]=z(0x19e)+a['userData']);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log['error'](f);}}async[a128s(0x1c3)](a){const A=a128s;try{const b={'InstanceIds':[a[A(0x18b)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x1b5)](f),{};}}async[a128s(0x1a5)]({keyName:a,env:b}){const B=a128s,c=this[B(0x16c)][B(0x17d)](b),d=a128f[B(0x1ca)](c,B(0x164),a+B(0x1c8));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x1c0)](g),i=h[B(0x179)];if(i){await this['fsi'][B(0x1d7)]({'filePath':d,'data':i}),execSync(B(0x178)+d,{'stdio':B(0x1a6)});const j=this['fsi'][B(0x19b)](d);if(j)return Log['success'](B(0x191)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x15e));}else throw new Error(B(0x14f));}catch(k){Log[B(0x1b5)](k),process['exit'](0x1);}}async[a128s(0x1a1)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':C(0x16f),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x14a)](C(0x16a)+a+C(0x18e)),await client['send'](d);}async['ec2createSG'](a){const D=a128s;try{a[D(0x198)]===''&&(a['description']=await Actions[D(0x1b1)](D(0x19f))||D(0x150));const b={'Description':a[D(0x198)],'GroupName':a['name'],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[D(0x1c0)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[D(0x186)][D(0x1a4)](g=>{const E=D;this[E(0x1a1)]({'port':parseInt(g),'groupId':f});}),Log['success'](D(0x163)+f+'\x20NAME:\x20'+a[D(0x1ac)]);}catch(g){return Log[D(0x1b5)](g),![];}return!![];}async['ec2describeKeys'](a){const F=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0x1c0)](d);if(!f)throw F(0x18a);const {KeyPairs:g}=f;g?(g?.[F(0x1a4)]((h,i)=>{const G=F;h[G(0x185)]&&b[G(0x148)]({'id':i,'name':h[G(0x185)]});}),b[F(0x16e)]>0x0&&b['forEach'](h=>{const H=F;h['name']===a?.[H(0x1b9)]?Log[H(0x1b4)](H(0x1b8)+h['id']+H(0x1a0)+h['name']):Log[H(0x14a)](H(0x1b8)+h['id']+H(0x1a0)+h[H(0x1ac)]);})):Log[F(0x1b5)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[F(0x1b5)](h);}return b;}async[a128s(0x171)](a){const I=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[I(0x1c0)](c);}catch(d){Log[I(0x1b5)](d),process[I(0x160)](0x1);}}async[a128s(0x1cf)](){const J=a128s,a=[];try{const b={'Filters':[{'Name':J(0x14d),'Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[J(0x1c0)](c);d[J(0x18f)]?.[J(0x1a4)]((f,g)=>{const K=J;if(f?.[K(0x1bd)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0x1bd)][0x0],n=m?.[K(0x151)](({Key:o})=>o===K(0x1c1));a[K(0x148)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0x1c9)],'name':l,'env':n?.[K(0x168)]});}}),a[J(0x16e)]>0x0?a[J(0x1a4)](f=>{const L=J,g=L(0x1b8)+f['id']+'\x20NAME:\x20'+f[L(0x1ac)]+'\x20ENV:\x20'+f[L(0x157)]+L(0x176)+f[L(0x1cb)]+L(0x161)+f[L(0x18b)]+L(0x16b)+f['publicIp']+L(0x19d)+f[L(0x1c4)];if(f['status']===L(0x183))Log[L(0x1b5)](g);else f['status']===L(0x17e)?Log[L(0x1b4)](g):Log['notice'](g);}):Log['error'](J(0x165));}catch(f){Log[J(0x1b5)](f);}return a;}async[a128s(0x1a8)](a){const M=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[M(0x1c0)](c);return d[M(0x18c)]['httpStatusCode']===0xc8&&Log[M(0x1b4)]('Instance\x20rebooted!'),d;}catch(f){Log[M(0x1b5)](f);}}async['chooseVPC'](){const N=a128s;let a='';Log[N(0x14a)](N(0x188));const b=new DescribeVpcsCommand({}),c=await client[N(0x1c0)](b),{Vpcs:d}=c,e=[];d&&d[N(0x1a4)]((g,h)=>{const O=N;g[O(0x17f)]&&g[O(0x196)]&&e['push']({'id':h,'vpcId':g[O(0x17f)],'cidr':g[O(0x196)]});});e['forEach'](function(g){const P=N;console[P(0x169)](P(0x1b8)+g['id']+P(0x1c6)+g[P(0x1b2)]+P(0x152)+g[P(0x1a3)]);});const f=await Actions['ask'](N(0x1ab))||0x0;e[N(0x1a4)](function(g){const Q=N;g['id']==f&&(a=g[Q(0x1b2)],Log['success'](Q(0x1a7)+a+'\x0a'));});if(a==='')return Log[N(0x1b5)](N(0x1a9)),'';return a;}async[a128s(0x170)](){const R=a128s,a=await this[R(0x1cf)]();if(a[R(0x16e)]===0x0)return Log[R(0x1b5)]('No\x20instances\x20found'),null;const b=await Actions[R(0x1b1)](R(0x1d4));!b&&(Log['error']('Invalid\x20choice'),process[R(0x160)](0x0));const c=a[R(0x151)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x1b0)]({env:a}){const S=a128s,b=this[S(0x16c)][S(0x1cc)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](S(0x184)+d+']\x20')||d,{filePath:g}=await this[S(0x1a5)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](S(0x14e),!![]);if(h)try{const i=a128e[S(0x187)](a128f['join']('config',a,'ssh.json'),S(0x177)),j=JSON[S(0x1bf)](i);j[S(0x1be)]=a128f[S(0x1ca)](S(0x164),f+S(0x1c8)),a128e['writeFileSync'](a128f[S(0x1ca)](S(0x1c5),a,S(0x1d6)),JSON['stringify'](j,null,0x2));}catch(k){Log[S(0x1b5)](k),Log[S(0x1b5)](S(0x158));}}catch(l){Log[S(0x1b5)](l),process[S(0x160)](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x162)](a){const T=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0x1c0)](d),{SecurityGroups:f}=e;f&&f[T(0x1a4)](function(i,j){const U=T;i['GroupName']&&i[U(0x1bb)]&&b[U(0x148)]({'id':j,'name':i[U(0x180)],'sgId':i[U(0x1bb)]});});let g='',h=0x0;return b[T(0x1a4)](function(i){const V=T;i['name']===a&&(g=i[V(0x197)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x189)](a){const W=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0x1c0)](c);}catch(d){Log[W(0x1b5)](d),process[W(0x160)](0x1);}}}
|
|
1
|
+
function a128c(){const W=['notice','Successfully\x20linked\x20EC2\x20instance\x20','178234OquylC','isFile','\x20Status\x20Code:\x20','ec2rebootInstance','KeyName','1415746AMOgtt','search','ecrCreateRepository','pop','Error\x20saving\x20pem\x20file,\x20aborting','error','\x20Error\x20Rason:\x20','chmod\x20400\x20','6KbFDyx','$metadata','imageId','7142113vPzqTn','VpcId','forEach','running','3NgNJNc','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Value','find','maka-cli','config','ssh.json','privateIp','tcp','\x20opened!','send','statusCode','RegistrationPrice','createFile','\x20to\x20','now','\x27\x20has\x20been\x20registered\x20successfully.','createKeyPairEC2Key','warn','join','success','Pem\x20key\x20saved\x20to\x20','\x20CIDR:\x20','httpStatusCode','stringify','370FmNcJp','vpcId','From\x20AWS:','readFileSync','getSecurityGroups','exit','ec2createSG','GroupId','5yUBOPM','changeResourceRecordSets','tags','ask','Instance\x20rebooted!','push','Key\x20Name:\x20[','type','No\x20instances\x20found','Invalid\x20choice','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','CidrBlock','maxCount','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','1679308pfSumc','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','**\x20Available\x20\x20VPCs\x20**','route53CreateHostedZone','ec2describeKeys','Description:','deleteSecurityGroup','status','_keys','description','writeFileSync','listHostedZonesByName','ec2create','102276BLzvbZ','Prices','createKeyPair','3983480GuGbKm','Error\x20generating\x20key\x20pair','registerDomain','env','tag:created-by','Error\x20linking\x20EC2\x20to\x20Route\x2053:','name','Could\x20not\x20find\x20hosted\x20zone','fsi','key','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','\x20NAME:\x20','Availability','ID:\x20','toString','.pem.txt','utf8','Error\x20creating\x20hosted\x20zone','publicIp','sgId','getAppConfigPath','length','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','suggestion','KeyMaterial','(((.+)+)+)+$','chooseInstance','Web\x20App','userData','file://','checkDomainAvailability','deleteKeyPair','environment','chooseVPC','HostedZones','getMakaProjectConfig','92813UCTytC','ingressRule','cidr','\x20ENV:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','instanceId','sgIds','subnet','/dev/sdh','parse','Instances','reason','instance','apply','split','\x20VPCID:\x20','ec2describeInstances','AVAILABLE'];a128c=function(){return W;};return a128c();}const a128t=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x1e1))/0x1+parseInt(p(0x1e6))/0x2*(parseInt(p(0x1f5))/0x3)+-parseInt(p(0x199))/0x4*(parseInt(p(0x216))/0x5)+parseInt(p(0x1ee))/0x6*(-parseInt(p(0x1cd))/0x7)+parseInt(p(0x1a9))/0x8+parseInt(p(0x1a6))/0x9*(parseInt(p(0x20e))/0xa)+-parseInt(p(0x1f1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x59469));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x1b7)]()[r(0x1e7)](r(0x1c2))['toString']()['constructor'](a128a)[r(0x1e7)](r(0x1c2));});a128a();import a128e from'fs';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x198;let f=c[d];return f;},a128d(a,b);}import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a128d;this[s(0x1b1)]=new FSI();}async[a128t(0x1e8)](a){const u=a128t;try{const b={'repositoryName':a[u(0x1af)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x1eb)](f);}}async[a128t(0x19c)](a){const v=a128t;try{const b={'CallerReference':''+Date[v(0x204)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[v(0x209)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error'](v(0x1ba)),console[v(0x1eb)](d);}}async[a128t(0x1ab)](a,b,c,d){const w=a128t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x1ff)](f),Log[w(0x1df)]('The\x20domain\x20\x27'+b+w(0x205));}catch(g){Log[w(0x1eb)](w(0x220)),Log[w(0x207)](w(0x210)),console['error'](w(0x1e3)+g['$response'][w(0x200)]),console[w(0x1eb)](w(0x1ec)+g['$response'][w(0x1d8)]);}}async[a128t(0x1c7)](a){const x=a128t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x1ff)](c),e=d[x(0x1b5)]===x(0x1de);if(e){const f=a[x(0x1db)]('.')[x(0x1e9)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0x1a7)]&&i[x(0x1a7)][0x0]?.['RegistrationPrice']){const j=i[x(0x1a7)][0x0][x(0x201)];return{'available':e,'cost':j};}}catch(k){console[x(0x1eb)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a128t;try{const d=await route53[y(0x1a4)]({'DNSName':c});if(!d?.[y(0x1cb)])throw Log[y(0x1eb)](y(0x1b0));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x217)](f),Log[y(0x1df)](y(0x1e0)+a+y(0x203)+c);}catch(g){console[y(0x1eb)](y(0x1ae),g);}}async[a128t(0x1a5)](a){const z=a128t;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x1d5),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x1f0)],'InstanceType':a[z(0x21d)],'KeyName':a[z(0x1b2)],'MaxCount':a[z(0x222)],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x1d3)][z(0x1db)](','),'SubnetId':a[z(0x1d4)],'TagSpecifications':[{'ResourceType':z(0x1d9),'Tags':a[z(0x218)]}]};a[z(0x1c5)]&&(b['UserData']=z(0x1c6)+a[z(0x1c5)]);const c=new RunInstancesCommand(b),d=await client[z(0x1ff)](c);return d;}catch(f){Log[z(0x1eb)](f);}}async['ec2terminateInstance'](a){const A=a128t;try{const b={'InstanceIds':[a[A(0x1d2)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x1eb)](f),{};}}async[a128t(0x206)]({keyName:a,env:b}){const B=a128t,c=this['fsi'][B(0x1bd)](b),d=a128f[B(0x208)](c,B(0x1a1),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x1ff)](g),i=h[B(0x1c1)];if(i){await this['fsi'][B(0x202)]({'filePath':d,'data':i}),execSync(B(0x1ed)+d,{'stdio':'ignore'});const j=this[B(0x1b1)][B(0x1e2)](d);if(j)return Log[B(0x209)](B(0x20a)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x1ea));}else throw new Error(B(0x1aa));}catch(k){Log[B(0x1eb)](k),process['exit'](0x1);}}async[a128t(0x1ce)]({port:a,groupId:b}){const C=a128t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x1fd),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x1df)]('Port\x20'+a+C(0x1fe)),await client[C(0x1ff)](d);}async[a128t(0x214)](a){const D=a128t;try{a[D(0x1a2)]===''&&(a[D(0x1a2)]=await Actions[D(0x219)](D(0x19e))||D(0x1c4));const b={'Description':a[D(0x1a2)],'GroupName':a['name'],'VpcId':a[D(0x20f)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x1ff)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x1bf));f&&a['sgPorts'][D(0x1f3)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[D(0x209)]('Created:\x20'+f+D(0x1b4)+a[D(0x1af)]);}catch(g){return Log[D(0x1eb)](g),![];}return!![];}async[a128t(0x19d)](a){const E=a128t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x1ff)](d);if(!f)throw E(0x1bf);const {KeyPairs:g}=f;g?(g?.[E(0x1f3)]((h,i)=>{const F=E;h[F(0x1e5)]&&b[F(0x21b)]({'id':i,'name':h[F(0x1e5)]});}),b[E(0x1be)]>0x0&&b[E(0x1f3)](h=>{const G=E;h[G(0x1af)]===a?.[G(0x1c0)]?Log[G(0x209)](G(0x1b6)+h['id']+G(0x1b4)+h[G(0x1af)]):Log['notice'](G(0x1b6)+h['id']+G(0x1b4)+h[G(0x1af)]);})):Log['error'](E(0x1d1));}catch(h){Log[E(0x1eb)](h);}return b;}async[a128t(0x1c8)](a){const H=a128t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x1ff)](c);}catch(d){Log['error'](d),process[H(0x213)](0x1);}}async[a128t(0x1dd)](){const I=a128t,a=[];try{const b={'Filters':[{'Name':I(0x1ad),'Values':[I(0x1f9)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x1ff)](c);d['Reservations']?.['forEach']((f,g)=>{const J=I;if(f?.[J(0x1d7)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x1d7)][0x0],n=m?.[J(0x1f8)](({Key:o})=>o===J(0x1c9));a[J(0x21b)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0x1f7)]});}}),a[I(0x1be)]>0x0?a[I(0x1f3)](f=>{const K=I,g='ID:\x20'+f['id']+K(0x1b4)+f[K(0x1af)]+K(0x1d0)+f[K(0x1ac)]+'\x20STATUS:\x20'+f[K(0x1a0)]+'\x20INSTANCE_ID:\x20'+f['instanceId']+'\x20PUB_IP:\x20'+f[K(0x1bb)]+'\x20PRIV_IP:\x20'+f[K(0x1fc)];if(f[K(0x1a0)]==='terminated')Log[K(0x1eb)](g);else f['status']===K(0x1f4)?Log[K(0x209)](g):Log['notice'](g);}):Log['error']('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log['error'](f);}return a;}async[a128t(0x1e4)](a){const L=a128t;try{const b={'InstanceIds':[a[L(0x1d2)]]},c=new RebootInstancesCommand(b),d=await client[L(0x1ff)](c);return d[L(0x1ef)][L(0x20c)]===0xc8&&Log[L(0x209)](L(0x21a)),d;}catch(f){Log[L(0x1eb)](f);}}async[a128t(0x1ca)](){const M=a128t;let a='';Log[M(0x1df)](M(0x19b));const b=new DescribeVpcsCommand({}),c=await client[M(0x1ff)](b),{Vpcs:d}=c,e=[];d&&d[M(0x1f3)]((g,h)=>{const N=M;g[N(0x1f2)]&&g[N(0x221)]&&e[N(0x21b)]({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0x221)]});});e[M(0x1f3)](function(g){const O=M;console['log'](O(0x1b6)+g['id']+O(0x1dc)+g['vpcId']+O(0x20b)+g[O(0x1cf)]);});const f=await Actions[M(0x219)](M(0x1f6))||0x0;e[M(0x1f3)](function(g){const P=M;g['id']==f&&(a=g['vpcId'],Log[P(0x209)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[M(0x1eb)](M(0x19a)),'';return a;}async[a128t(0x1c3)](){const Q=a128t,a=await this[Q(0x1dd)]();if(a[Q(0x1be)]===0x0)return Log['error'](Q(0x21e)),null;const b=await Actions[Q(0x219)](Q(0x1b3));!b&&(Log[Q(0x1eb)](Q(0x21f)),process[Q(0x213)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128t(0x1a8)]({env:a}){const R=a128t,b=this[R(0x1b1)][R(0x1cc)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x219)](R(0x21c)+d+']\x20')||d,{filePath:g}=await this[R(0x206)]({'keyName':f,'env':a});try{const h=await Actions['confirm']('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[R(0x211)](a128f['join'](R(0x1fa),a,R(0x1fb)),R(0x1b9)),j=JSON[R(0x1d6)](i);j['pem']=a128f[R(0x208)](R(0x1a1),f+R(0x1b8)),a128e[R(0x1a3)](a128f[R(0x208)](R(0x1fa),a,'ssh.json'),JSON[R(0x20d)](j,null,0x2));}catch(k){Log[R(0x1eb)](k),Log['error'](R(0x198));}}catch(l){Log[R(0x1eb)](l),process[R(0x213)](0x1);}return{'keyName':f,'filePath':g};}async[a128t(0x212)](a){const S=a128t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client['send'](d),{SecurityGroups:f}=e;f&&f[S(0x1f3)](function(i,j){const T=S;i['GroupName']&&i[T(0x215)]&&b[T(0x21b)]({'id':j,'name':i['GroupName'],'sgId':i[T(0x215)]});});let g='',h=0x0;return b[S(0x1f3)](function(i){const U=S;i[U(0x1af)]===a&&(g=i[U(0x1bc)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128t(0x19f)](a){const V=a128t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x1ff)](c);}catch(d){Log['error'](d),process[V(0x213)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0x1a1))/0x1+parseInt(k(0x1a8))/0x2*(-parseInt(k(0x1ab))/0x3)+-parseInt(k(0x19e))/0x4*(parseInt(k(0x1a6))/0x5)+parseInt(k(0x1a9))/0x6+parseInt(k(0x1a5))/0x7*(parseInt(k(0x1a3))/0x8)+-parseInt(k(0x1a0))/0x9+-parseInt(k(0x1ac))/0xa*(parseInt(k(0x1aa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x77280));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x19e;var f=c[d];return f;},a129d(a,b);}function a129c(){var n=['constructor','8GHAPJF','apply','4351585VeFnIH','5PBEyJM','toString','6968VaPduC','4439346iLuFXX','11MsMotU','381niNQpZ','4597640xCtcTD','(((.+)+)+)+$','821336vGnLdQ','search','5524947cbJtPe','847967woJewd'];a129c=function(){return n;};return a129c();}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x1a4)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0x1a7)]()[m(0x19f)](m(0x1ad))[m(0x1a7)]()[m(0x1a2)](e)[m(0x19f)]('(((.+)+)+)+$');});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(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a130o=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x202))/0x1*(-parseInt(j(0x1fa))/0x2)+-parseInt(j(0x1ff))/0x3+-parseInt(j(0x1f2))/0x4*(-parseInt(j(0x1f7))/0x5)+-parseInt(j(0x1fe))/0x6*(-parseInt(j(0x1f0))/0x7)+parseInt(j(0x1f9))/0x8+parseInt(j(0x200))/0x9+-parseInt(j(0x20a))/0xa*(parseInt(j(0x1fc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xa1638));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x208)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x1fd)]()[l(0x1f8)](l(0x205))[l(0x1fd)]()[l(0x203)](a130a)['search']('(((.+)+)+)+$');});a130a();import{execSync}from'child_process';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a130d(a,b);}function a130c(){const q=['.amazonaws.com','apply','login','158170eHNsob','push','tag','18151oEGnCZ','AWS','4MmObiS','error','pushImage','.amazonaws.com/','.dkr.ecr.','6071555Nkorgj','search','2631544whpVyg','2gAPvZV','inherit','1452TtGqNH','toString','1482LqIIMR','1630407mvFPti','5994549TSBcRl','join','442575GJqkTL','constructor','docker\x20','(((.+)+)+)+$','--password-stdin'];a130c=function(){return q;};return a130c();}import{Log}from'../log/log.class.js';export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a130d;try{const f=[m(0x1ef),a,b+'.dkr.ecr.'+c+m(0x1f5)+d],g=m(0x204)+f['join']('\x20'),h=execSync(g,{'stdio':m(0x1fb)})[m(0x1fd)]();return h;}catch(i){return Log[m(0x1f3)](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const n=a130d;try{const c=[n(0x209),'--username',n(0x1f1),n(0x206),a+n(0x1f6)+b+n(0x207)],d=n(0x204)+c[n(0x201)]('\x20'),f=execSync(d,{'stdio':'inherit'})[n(0x1fd)]();return f;}catch(g){return Log['error'](g),'';}}static[a130o(0x1f4)]({awsAccountId:a,region:b,repoName:c}){const p=a130o;try{const d=[p(0x1ee),a+p(0x1f6)+b+'.amazonaws.com/'+c],f=p(0x204)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x1fb)})[p(0x1fd)]();return g;}catch(h){return Log[p(0x1f3)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x161))/0x1+-parseInt(f(0x15e))/0x2+-parseInt(f(0x162))/0x3+parseInt(f(0x15b))/0x4+parseInt(f(0x160))/0x5+-parseInt(f(0x15c))/0x6+parseInt(f(0x15d))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x42d7a));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var g=a131d;return a131a[g(0x15f)]()['search']('(((.+)+)+)+$')[g(0x15f)]()[g(0x159)](a131a)['search'](g(0x15a));});function a131c(){var h=['9017316QnzucJ','1025176sWjCEl','toString','77365NoWPMf','241087dtrFvM','1238379fONvrA','constructor','(((.+)+)+)+$','602796xSTZAH','2977680NmJBrS'];a131c=function(){return h;};return a131c();}a131a();function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x159;var f=c[d];return f;},a131d(a,b);}export{};
|