@maka/maka-cli 4.5.45 → 4.5.46
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.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/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/kit.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/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/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 a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d
|
|
1
|
+
const a110m=a110d;function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x1cd;let f=c[d];return f;},a110d(a,b);}(function(a,b){const j=a110d,c=a();while(!![]){try{const d=parseInt(j(0x1cf))/0x1*(parseInt(j(0x1d4))/0x2)+-parseInt(j(0x1ea))/0x3+-parseInt(j(0x1d6))/0x4+-parseInt(j(0x1da))/0x5+parseInt(j(0x1e8))/0x6+parseInt(j(0x1eb))/0x7+parseInt(j(0x1d1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x28e3d));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0x1d0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0x1df)]()[l(0x1dc)](l(0x1e4))[l(0x1df)]()[l(0x1ef)](a110a)[l(0x1dc)](l(0x1e4));});a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a110c(){const p=['Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','(((.+)+)+)+$','imports','lib','winston\x20setimmediate','1422312uMbeVH','logger','735759fqAETc','213080oQkqNH','service/logger/logger.js','fsi','resourceName','constructor','tsx','type','14Iedhwo','apply','4571816WiiOJl','service','template','4328uxsvoF','maka\x20g:svc\x20service-logger\x20--type=logger','965192SYsIYp','winston','create','installNpmPackage','1076145Lldxea','pathFromApp','search','svc','withValue','toString','engines','maka\x20{generate,\x20g}:{service}\x20<resource-name>','startup'];a110c=function(){return p;};return a110c();}Generator[a110m(0x1d8)]({'name':a110m(0x1d2),'aliases':[a110m(0x1dd)],'usage':a110m(0x1e1),'shortDesc':a110m(0x1e3),'requiredOpts':[{'name':a110m(0x1ce),'values':[a110m(0x1e9)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a110m(0x1d5)]},async function(a,b){const n=a110m;try{const c=this[n(0x1ed)]['getProjectConfig']();this[n(0x1ed)][n(0x1de)](c,async()=>{const o=n,d=this[o(0x1ed)][o(0x1db)]({}),f=paramCase(b[o(0x1ee)]),g={'name':pascalCase(b[o(0x1ee)]),'fileName':f,'camelCase':camelCase(b[o(0x1ee)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0x1e0)]['js']===o(0x1cd)&&(h='ts');if(b[o(0x1ce)]==='logger'){!this[o(0x1ed)]['checkNpmPackage'](o(0x1d7))&&await this[o(0x1ed)][o(0x1d9)](o(0x1e7),{'cwd':d,'msg':'Installing\x20winston'});const i=this['fsi'][o(0x1db)]({'pathParts':[o(0x1e5),o(0x1e2),o(0x1e6),'services',f+'.'+h]});this[o(0x1ed)][o(0x1d3)]({'srcPath':o(0x1ec),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a111d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0xe9))/0x1+parseInt(f(0xf3))/0x2*(-parseInt(f(0xea))/0x3)+-parseInt(f(0xf1))/0x4*(parseInt(f(0xef))/0x5)+parseInt(f(0xec))/0x6+-parseInt(f(0xe8))/0x7+parseInt(f(0xf4))/0x8*(parseInt(f(0xf2))/0x9)+parseInt(f(0xf0))/0xa*(parseInt(f(0xee))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xc3e4b));function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0xe7;var f=c[d];return f;},a111d(a,b);}var a111b=(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;};}()),a111a=a111b(this,function(){var g=a111d;return a111a['toString']()[g(0xeb)](g(0xed))['toString']()[g(0xe7)](a111a)[g(0xeb)](g(0xed));});a111a();import'./translation.js';function a111c(){var h=['2030XHUNJU','122520wqRQhI','9eWRJrV','272iptHRZ','9821288ycuBLu','constructor','7629657UkPKaU','1112115dZxbff','30417cBLwmi','search','5041482QHIwin','(((.+)+)+)+$','127127POFPkD','5FMmlmC'];a111c=function(){return h;};return a111c();}import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112l=a112d;(function(a,b){const i=a112d,c=a();while(!![]){try{const d=parseInt(i(0x1a9))/0x1+parseInt(i(0x1af))/0x2*(parseInt(i(0x1b5))/0x3)+-parseInt(i(0x1b1))/0x4*(-parseInt(i(0x1b0))/0x5)+parseInt(i(0x1ad))/0x6*(parseInt(i(0x1b9))/0x7)+parseInt(i(0x1b2))/0x8*(parseInt(i(0x1c0))/0x9)+-parseInt(i(0x1ae))/0xa*(-parseInt(i(0x1ac))/0xb)+-parseInt(i(0x1bb))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x21c4a));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a112d;if(c){const e=c[j(0x1ab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const k=a112d;return a112a[k(0x1a8)]()[k(0x1be)]('(((.+)+)+)+$')[k(0x1a8)]()[k(0x1ba)](a112a)[k(0x1be)]('(((.+)+)+)+$');});a112a();import{Generator}from'../../generator.js';function a112c(){const o=['constructor','8062836rCpvIh','openssl/openssl.conf','getGlobalConfig','search','withValue','620946AQseGg','toString','94283fHnBlq','error','apply','11hkRfRT','36hshepj','34930XSkXgQ','2yktaNl','1520LZaUnk','3376uNjVkj','16muuyJE','maka\x20{generate,\x20g}:sslconfig','getProjectConfig','811737BVEJAR','_keys','fsi','env','55181JJmXEC'];a112c=function(){return o;};return a112c();}import{Log}from'../../tools/log/log.class.js';import a112e from'path';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a112d(a,b);}Generator['create']({'name':'sslconfig','usage':a112l(0x1b3),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':[a112l(0x1b8)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[a112l(0x1b8)]},async function(a,b){const m=a112l;try{const c=await this[m(0x1b7)][m(0x1b4)](),d=await this[m(0x1b7)][m(0x1bd)](),f=this['fsi']['getConfigPath'](b['env']),g=a112e['join'](f,m(0x1b6),'openssl.conf');await this[m(0x1b7)][m(0x1bf)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0x1b7)]['template']({'srcPath':n(0x1bc),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[m(0x1aa)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113z=a113d;function a113c(){const C=['export\x20{\x20default\x20as\x20','imports','rewriteDestinationPathForEngine','isFile','error','i18n/locales.js','getGlobalConfig','create','readFileSync','232908bwJPaF','maka\x20g:translation\x20--lang=fr','warn','setProjectConfig','template','injectAtEndOfFile','lib','getProjectConfig','.js','exit','5586165WqcSrI','import\x20\x27../lib/services/translations/i18n\x27;\x0a','server','constructor','i18n.js','8rugYnp','fsi','pathFromApp','Generate\x20a\x20new\x20locale\x20translation','i18n','3501211JlSLUX','2520256DGiHrJ','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','client','Locale\x20already\x20defined:\x20','index.js','search','translation','i18next\x20i18next-browser-languagedetector\x20react-i18next','features.withTranslations','service','import\x20\x27../lib/services/translations/i18n\x27;','i18n/i18n.js','startup','findAppDirectory','injectAtBeginningOfFile','7390878aZeisa','maka\x20g:translation\x20--lang=en\x20(default)','i18n/index.js','services','45syrUcs','withValue','3413535bexgZA','default\x20as\x20','lang','Locale\x20already\x20exported:\x20','appName','ssr','maka\x20{generate,\x20g}:translation\x20--lang=<language>','\x20}\x20from\x20\x27./','toString','grep','checkNpmPackage','true','543866lUCdxu','engines','i18next'];a113c=function(){return C;};return a113c();}(function(a,b){const x=a113d,c=a();while(!![]){try{const d=parseInt(x(0x1e5))/0x1+-parseInt(x(0x1c4))/0x2+-parseInt(x(0x1d7))/0x3*(-parseInt(x(0x1f1))/0x4)+-parseInt(x(0x1d9))/0x5+parseInt(x(0x1d3))/0x6+-parseInt(x(0x1c3))/0x7*(parseInt(x(0x1be))/0x8)+parseInt(x(0x1fb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xc9d89));const a113b=(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;};}()),a113a=a113b(this,function(){const y=a113d;return a113a[y(0x1e1)]()[y(0x1c9)]('(((.+)+)+)+$')[y(0x1e1)]()[y(0x1fe)](a113a)['search']('(((.+)+)+)+$');});a113a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a113d(a,b);}import a113e from'fs';Generator[a113z(0x1ef)]({'name':a113z(0x1ca),'usage':a113z(0x1df),'aliases':[a113z(0x1c2)],'shortDesc':a113z(0x1c1),'noResource':!![],'examples':[a113z(0x1d4),a113z(0x1f2),'maka\x20g:translation\x20--lang=de'],'validOpts':[a113z(0x1db)]},function(a,b){const A=a113z;try{const c=this[A(0x1bf)][A(0x1f8)](),d=this[A(0x1bf)][A(0x1ee)](),f=this[A(0x1bf)][A(0x1d1)]();this['fsi'][A(0x1d8)](c,()=>{const B=A;try{!b['lang']&&(b[B(0x1db)]='en');!b['root']&&!this[B(0x1bf)][B(0x1e3)](B(0x1e7))&&(Log[B(0x1f3)](B(0x1c5)),this[B(0x1bf)]['installNpmPackage'](B(0x1cb),{'cwd':f}),this[B(0x1bf)][B(0x1f4)](B(0x1cc),!![]));const g=this[B(0x1bf)][B(0x1c0)]({'pathParts':[B(0x1e9),B(0x1d0),B(0x1c6),B(0x1c8)]}),h=this[B(0x1bf)][B(0x1ea)]({'pathParts':[g],'config':c}),i=this[B(0x1bf)][B(0x1e2)](a113e[B(0x1f0)](h)[B(0x1e1)](),B(0x1ce))[0x0]&&!![];if(c[B(0x1e6)][B(0x1de)]===B(0x1e4)){!i&&this[B(0x1bf)][B(0x1d2)]({'filePath':h,'content':B(0x1fc)});const t=this[B(0x1bf)][B(0x1c0)]({'pathParts':['imports',B(0x1d0),B(0x1fd),B(0x1c8)]}),u=this[B(0x1bf)][B(0x1ea)]({'pathParts':[t],'config':c}),v=this[B(0x1bf)][B(0x1e2)](a113e[B(0x1f0)](u)['toString'](),B(0x1ce))[0x0]&&!![];!v&&this[B(0x1bf)][B(0x1d2)]({'filePath':u,'content':B(0x1fc)});}else!i&&this[B(0x1bf)][B(0x1d2)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[B(0x1dd)],'config':c},k=this[B(0x1bf)][B(0x1c0)]({'pathParts':[B(0x1e9),B(0x1d0),'lib',B(0x1d6),'translations',B(0x1bd)]}),l=this['fsi'][B(0x1eb)](this[B(0x1bf)][B(0x1ea)]({'pathParts':[k],'config':c}));!l&&this['fsi'][B(0x1f5)]({'srcPath':B(0x1cf),'destPath':k,'framework':'service','context':j,'config':c});const m=this[B(0x1bf)][B(0x1c0)]({'pathParts':[B(0x1e9),B(0x1d0),B(0x1f7),'services','translations','locales',b[B(0x1db)]+B(0x1f9)]}),n=this[B(0x1bf)][B(0x1ea)]({'pathParts':[m],'config':c}),o=this['fsi'][B(0x1eb)](n);!o?this[B(0x1bf)][B(0x1f5)]({'srcPath':B(0x1ed),'destPath':m,'framework':B(0x1cd),'context':j,'config':c}):Log[B(0x1f3)](B(0x1c7)+n);const p=this[B(0x1bf)]['pathFromApp']({'pathParts':[B(0x1e9),B(0x1d0),B(0x1f7),B(0x1d6),'translations','locales','index.'+c['engines']['js']]}),q=this[B(0x1bf)][B(0x1ea)]({'pathParts':[p],'config':c}),r=this['fsi']['isFile'](q);!r&&this['fsi'][B(0x1f5)]({'srcPath':B(0x1d5),'destPath':p,'framework':'service','context':j,'config':c});const s=this[B(0x1bf)][B(0x1e2)](a113e['readFileSync'](p)[B(0x1e1)](),B(0x1da)+b['lang'])[0x0]&&!![];!s?this[B(0x1bf)][B(0x1f6)]({'filePath':p,'content':B(0x1e8)+b[B(0x1db)]+B(0x1e0)+b[B(0x1db)]+'\x27;'}):Log[B(0x1f3)](B(0x1dc)+p);}catch(w){Log[B(0x1ec)](w),process[B(0x1fa)](0x1);}});}catch(g){Log[A(0x1ec)](g),process[A(0x1fa)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114m=a114d;(function(a,b){const j=a114d,c=a();while(!![]){try{const d=-parseInt(j(0x1ac))/0x1*(-parseInt(j(0x1af))/0x2)+-parseInt(j(0x1b7))/0x3+parseInt(j(0x1b1))/0x4+-parseInt(j(0x1bb))/0x5*(parseInt(j(0x1c3))/0x6)+parseInt(j(0x1b5))/0x7*(parseInt(j(0x1c4))/0x8)+parseInt(j(0x1be))/0x9*(parseInt(j(0x1b9))/0xa)+-parseInt(j(0x1c6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x7a1fd));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a114d;if(c){const e=c[k(0x1b3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const l=a114d;return a114a['toString']()[l(0x1b8)](l(0x1bc))[l(0x1c5)]()[l(0x1ae)](a114a)[l(0x1b8)]('(((.+)+)+)+$');});a114a();import a114e from'minimist';import a114f from'os';import a114g from'path';import a114h from'humps';import a114i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a114m(0x1b4)]),__dirname=a114g[a114m(0x1ba)](__filename);global[a114m(0x1c1)]=__dirname;function a114c(){const n=['6QfRMeS','3861152DKlacJ','toString','22444070JxTbIA','--max-old-space-size=','27571tHMUtB','slice','constructor','42WgjtLg','run','2582684ZFMjLE','BROWSERSLIST_IGNORE_OLD_DATA','apply','url','14zWiiGJ','argv','654912wNyclm','search','10FpjGOS','dirname','1326380anzamA','(((.+)+)+)+$','floor','7507989qcEAkp','TOOL_NODE_FLAGS','parse','MAKA_COMMAND_PATH','camelizeKeys'];a114c=function(){return n;};return a114c();}const total_memory=a114f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a114d(a,b);}total_mem_in_mb=Math[a114m(0x1bd)](total_mem_in_mb),process['env'][a114m(0x1bf)]=a114m(0x1c7)+total_mem_in_mb,process['env'][a114m(0x1b2)]='1';const argv=a114e(process[a114m(0x1b6)][a114m(0x1ad)](0x2)),args=argv['_'],deepCopyArgv=JSON[a114m(0x1c0)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a114h[a114m(0x1c2)](deepCopyArgv);a114i[a114m(0x1b0)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115I=a115d;(function(a,b){const F=a115d,c=a();while(!![]){try{const d
|
|
1
|
+
const a115I=a115d;(function(a,b){const F=a115d,c=a();while(!![]){try{const d=-parseInt(F(0x1ba))/0x1*(parseInt(F(0x1a8))/0x2)+parseInt(F(0x1d0))/0x3+-parseInt(F(0x1bc))/0x4*(-parseInt(F(0x198))/0x5)+parseInt(F(0x19b))/0x6+parseInt(F(0x1a0))/0x7+-parseInt(F(0x1bb))/0x8+-parseInt(F(0x1c4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xc24dc));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a115d;if(c){const e=c[G(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const H=a115d;return a115a['toString']()[H(0x1a3)](H(0x1c9))[H(0x1c8)]()[H(0x19e)](a115a)[H(0x1a3)](H(0x1c9));});a115a();import a115e from'path';import a115f from'os';import a115g from'fs';const homeDir=a115f['homedir']();function a115c(){const W=['(((.+)+)+)+$','validateMeteorInstall','_handler','remapShortToLong','Invalid\x20option:\x20','length','indexOf','2481813iAXSla','fsi','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','aliases','keys','Please\x20choose\x20a\x20value\x20for\x20','1110qsERhU','options','env','845148lnyVsR','getProjectConfigs','existsSync','constructor','dir','6548507npxvpZ','formatToNamedParam','name','search','cwd','Please\x20choose\x20an\x20environment','Please\x20provide\x20a\x20value\x20for\x20','NIE','1055664bcGbmt','findProjectDirectory','parent','description','apply','docker','examples','shortDesc','resourceName','Local','list','No\x20description\x20provided.','concat','includes','ask','usage','error','validateParams','2lGFxjj','11145000WRxNSa','24996sbmSLF','None','Invalid\x20value\x20for\x20','every','string','.meteor','join','No\x20usage\x20provided.','416259jnPoot','push','charAt','getShortName','toString'];a115c=function(){return W;};return a115c();}import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x194;let f=c[d];return f;},a115d(a,b);}import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a115I(0x1ad)];[a115I(0x1d1)];[a115I(0x199)];[a115I(0x1a2)];[a115I(0x1aa)];[a115I(0x1cb)];constructor(){const J=a115I;this[J(0x1ad)]=new Docker(),this[J(0x1d1)]=new FSI();}[a115I(0x1c7)](a){const K=a115I;return a[K(0x1c6)](0x0);}['remapShortToLong'](a,b){const L=a115I,c=this[L(0x1a1)](b),d={...a};for(const e of c){const f=this['getShortName'](e[L(0x1a2)]);a[f]&&(d[e[L(0x1a2)]]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const M=a115I;if(a[M(0x1bf)](b=>typeof b===M(0x1c0)))return a['map'](b=>({'name':b}));return a;}['match'](a){const N=a115I,b=[this[N(0x1a2)]][N(0x1b4)](this[N(0x199)]['aliases']||[]);return this[N(0x1aa)]&&b[N(0x1c5)](this['parent']),b[N(0x1b5)](a);}['validateMakaProject'](){const O=a115I,a=this['fsi'][O(0x1a9)]();return a!==![]?!![]:![];}[a115I(0x1ca)](){const P=a115I;let a=a115e[P(0x1c2)](homeDir,'.meteor');const b=process['platform']==='win32';if(b){a=a115e[P(0x1c2)](homeDir,'AppData',P(0x1b1),P(0x1c1));if(!a115g[P(0x19d)](a))return![];}else{if(!a115g['existsSync'](a))return![];}return!![];}async[a115I(0x1b9)](a,b,c){const Q=a115I,{requiredOpts:d,validArgs:e,validOpts:f}=c,g=Object[Q(0x196)](b);if(g[Q(0x1b5)]('resourceName')&&b['resourceName']===undefined){const l=await Actions['ask']('Please\x20provide\x20a\x20resource\x20name:');b[Q(0x1b0)]=l;}let h=[],i=b;if(d){h=this[Q(0x1a1)](d),i=this[Q(0x1cc)](b,h);if(h&&h?.[Q(0x1ce)]>0x0)for(const m of h){const {name:n,values:o}=m;if(!Object[Q(0x196)](i)[Q(0x1b5)](n)){if(n===Q(0x19a)){const p=this[Q(0x1d1)][Q(0x19c)](),q=await Actions[Q(0x199)]({'type':'list','name':Q(0x19a),'message':Q(0x1a5),'choices':p});b[Q(0x19a)]=q['env'];}else{const r=o;if(r){const s=await Actions[Q(0x199)]({'type':Q(0x1b2),'name':n,'message':Q(0x197)+n,'choices':o});b[n]=s[n];}else{const t=await Actions[Q(0x1b6)](Q(0x1a6)+n);b[n]=t;}}}else{const u=b[n];if(o&&!o[Q(0x1b5)](u)){Log[Q(0x1b8)](Q(0x1be)+n+':\x20'+u);throw new UsageError();}}}}let j=this['formatToNamedParam'](f);const k=this[Q(0x1cc)](b,j);if(j&&Object[Q(0x196)](j)?.[Q(0x1ce)]>0x0){j=j[Q(0x1b4)](h||[]),j[Q(0x1c5)]({'name':Q(0x1b0),'hidden':!![]}),j['push']({'name':'help','boolFlag':!![]}),j[Q(0x1c5)]({'name':Q(0x19f),'hidden':!![]}),j[Q(0x1c5)]({'name':Q(0x1a4),'hidden':!![]}),j[Q(0x1c5)]({'name':'root','hidden':!![]}),j['push']({'name':'config','hidden':!![]});for(const v of j){const {name:w,values:x}=v,y=b[w];if(y!==undefined&&(!x||!x[Q(0x1b5)](y))){const z=x;if(z){const A=await Actions[Q(0x199)]({'type':Q(0x1b2),'name':w,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+w,'choices':x});b[w]=A[w];}}if(j['length']>0x0)for(const B of Object[Q(0x196)](k)){const C=j['find'](D=>D['name']===B);if(!C){Log[Q(0x1b8)](Q(0x1cd)+B);throw new UsageError();}}}}if(e&&e?.[Q(0x1ce)]>0x0)for(const D of e){if(!e[Q(0x1b5)](D)){Log[Q(0x1b8)]('Invalid\x20argument:\x20'+D);const E=await Actions[Q(0x1b6)](Q(0x194)+D);a[a[Q(0x1cf)](D)]=E;}}return Object['assign'](i,k);}[a115I(0x1ab)](){const R=a115I;return this[R(0x199)][R(0x1ab)]||this['options'][R(0x1af)]||R(0x1b3);}[a115I(0x1af)](){const S=a115I;return this[S(0x199)]['shortDesc']||S(0x1a7);}[a115I(0x1b7)](){const T=a115I;return this['options'][T(0x1b7)]||T(0x1c3);}[a115I(0x1ae)](){const U=a115I;return this[U(0x199)][U(0x1ae)]||[];}[a115I(0x195)](){const V=a115I;return this[V(0x199)][V(0x195)]||V(0x1bd);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a116j=a116d;function a116c(){const l=['toString','16XGdfyj','search','3970zvklsa','94726IjYIVG','constructor','password','answer','prompt','1582026GMsKof','31315030xLYIdC','4055864ZWtEaL','210063RaxiTG','confirm','272WdjIQF','9330zCWokf','11qqISkE','(((.+)+)+)+$','apply','11409840exdcXV'];a116c=function(){return l;};return a116c();}(function(a,b){const f=a116d,c=a();while(!![]){try{const d=-parseInt(f(0x114))/0x1*(-parseInt(f(0x111))/0x2)+-parseInt(f(0x119))/0x3+parseInt(f(0x11b))/0x4+-parseInt(f(0x113))/0x5*(parseInt(f(0x11f))/0x6)+parseInt(f(0x11c))/0x7*(-parseInt(f(0x11e))/0x8)+-parseInt(f(0x10f))/0x9+parseInt(f(0x11a))/0xa*(parseInt(f(0x120))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xd04cf));function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x10d;let f=c[d];return f;},a116d(a,b);}const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a[h(0x110)]()[h(0x112)](h(0x10d))[h(0x110)]()[h(0x115)](a116a)[h(0x112)]('(((.+)+)+)+$');});a116a();import a116e from'inquirer';export class Actions{static async['ask'](a,b){const i=a116d,{answer:c}=await a116e[i(0x118)]({'type':b?i(0x116):'input','name':i(0x117),'message':a});return c;}static async[a116j(0x11d)](a,b=![]){const k=a116j,{answer:c}=await a116e['prompt']({'type':k(0x11d),'name':'answer','message':a,'default':b});return c;}static async['options'](a){const b=await a116e['prompt'](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117r=a117d;(function(a,b){const p=a117d,c=a();while(!![]){try{const d=parseInt(p(0x1ad))/0x1+-parseInt(p(0x183))/0x2*(parseInt(p(0x203))/0x3)+parseInt(p(0x1b7))/0x4*(-parseInt(p(0x178))/0x5)+parseInt(p(0x1f1))/0x6*(-parseInt(p(0x1c9))/0x7)+parseInt(p(0x1c8))/0x8*(parseInt(p(0x180))/0x9)+parseInt(p(0x1e3))/0xa+-parseInt(p(0x1fe))/0xb*(-parseInt(p(0x19d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x9bdb8));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const q=a117d;return a117a[q(0x1e7)]()[q(0x1d6)](q(0x1af))[q(0x1e7)]()['constructor'](a117a)[q(0x1d6)](q(0x1af));});function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x176;let f=c[d];return f;},a117d(a,b);}a117a();import a117e from'fs';import a117f 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';function a117c(){const W=['deleteSecurityGroup','Hosted\x20zone\x20created\x20successfully!','send','sgId','search','\x20VPCID:\x20','writeFileSync','notice','running','vpcId','minCount','imageId','route53CreateHostedZone','\x20opened!','isFile','ignore','linkEC2ToRoute53','1480300aFbMcw','$metadata','\x20PUB_IP:\x20','GroupId','toString','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x27\x20has\x20been\x20registered\x20successfully.','HostedZones','Error\x20creating\x20hosted\x20zone','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Web\x20App','publicIp','GroupName','Invalid\x20choice','77742BOOJjY','Could\x20not\x20find\x20hosted\x20zone','_keys','error','key','utf8','confirm','\x20Status\x20Code:\x20','ec2create','changeResourceRecordSets','$response','ID:\x20','AVAILABLE','13820323iMXlBo','stringify','Error\x20generating\x20key\x20pair','length','Description:','49023phzJHZ','privateIp','Instance\x20rebooted!','ecrCreateRepository','exit','status','280aQUpkw','name','getProjectConfig','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','tcp','\x20PRIV_IP:\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','chmod\x20400\x20','162wUhTOa','maka-cli','0.0.0.0/0','86jVdHeJ','split','type','pem','createFile','forEach','chooseVPC','cidr','ec2terminateInstance','/dev/sdh','readFileSync','\x20STATUS:\x20','getSecurityGroups','fsi','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','parse','\x20to\x20','instanceId','reason','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','CidrBlock','config','The\x20domain\x20\x27','KeyName','RegistrationPrice','UserData','24MlSjUI','tag:created-by','ec2describeKeys','Prices','instance','tags','Reservations','.pem.txt','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','\x20INSTANCE_ID:\x20','ssh.json','Instances','Key\x20Name:\x20[','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','ec2describeInstances','\x20ENV:\x20','34826WqjrrY','file://','(((.+)+)+)+$','userData','description','find','createKeyPair','Name','listHostedZonesByName','UPSERT','90744KJCXam','warn','sgPorts','ask','Error\x20saving\x20pem\x20file,\x20aborting','push','ingressRule','maxCount','Error\x20fetching\x20domain\x20pricing:','From\x20AWS:','ec2createSG','**\x20Available\x20\x20VPCs\x20**','log','\x20NAME:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','\x20Error\x20Rason:\x20','getConfigPath','371456dCHdTQ','497TZyMKU','join','sgIds','Error\x20linking\x20EC2\x20to\x20Route\x2053:','subnet','VpcId','Pem\x20key\x20saved\x20to\x20','success','checkDomainAvailability'];a117c=function(){return W;};return a117c();}const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a117r(0x190)];constructor(){const s=a117r;this[s(0x190)]=new FSI();}async[a117r(0x206)](a){const t=a117r;try{const b={'repositoryName':a[t(0x179)]},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x1d4)](c);return d;}catch(f){Log[t(0x1f4)](f);}}async[a117r(0x1de)](a){const u=a117r;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x1d4)](c),Log[u(0x1d0)](u(0x1d3));}catch(d){Log[u(0x1f4)](u(0x1eb)),console['error'](d);}}async['registerDomain'](a,b,c,d){const v=a117r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x1d4)](f),Log[v(0x1d9)](v(0x199)+b+v(0x1e9));}catch(g){Log[v(0x1f4)](v(0x1a5)),Log[v(0x1b8)](v(0x1c0)),console[v(0x1f4)](v(0x1f8)+g[v(0x1fb)]['statusCode']),console[v(0x1f4)](v(0x1c6)+g['$response'][v(0x195)]);}}async[a117r(0x1d1)](a){const w=a117r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d['Availability']===w(0x1fd);if(e){const f=a[w(0x184)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x1d4)](h);if(i&&i[w(0x1a0)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i['Prices'][0x0][w(0x19b)];return{'available':e,'cost':j};}}catch(k){console[w(0x1f4)](w(0x1bf),k);}}return{'available':e};}async[a117r(0x1e2)](a,b,c){const x=a117r;try{const d=await route53[x(0x1b5)]({'DNSName':c});if(!d?.[x(0x1ea)])throw Log['error'](x(0x1f2));const e=d?.[x(0x1ea)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x1b6),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x1fa)](f),Log[x(0x1d9)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+x(0x193)+c);}catch(g){console[x(0x1f4)](x(0x1cc),g);}}async[a117r(0x1f9)](a){const y=a117r;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x18c),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[y(0x1dd)],'InstanceType':a[y(0x185)],'KeyName':a[y(0x1f5)],'MaxCount':a[y(0x1be)],'MinCount':a[y(0x1dc)],'SecurityGroupIds':a[y(0x1cb)][y(0x184)](','),'SubnetId':a[y(0x1cd)],'TagSpecifications':[{'ResourceType':y(0x1a1),'Tags':a[y(0x1a2)]}]};a[y(0x1b0)]&&(b[y(0x19c)]=y(0x1ae)+a[y(0x1b0)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[y(0x1f4)](f);}}async[a117r(0x18b)](a){const z=a117r;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[z(0x1d4)](c);return d;}catch(f){return Log[z(0x1f4)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const A=a117r,c=this[A(0x190)][A(0x1c7)](b),d=a117f['join'](c,A(0x1f3),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x1d4)](g),i=h['KeyMaterial'];if(i){await this[A(0x190)][A(0x187)]({'filePath':d,'data':i}),execSync(A(0x17f)+d,{'stdio':A(0x1e1)});const j=this[A(0x190)][A(0x1e0)](d);if(j)return Log[A(0x1d0)](A(0x1cf)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x1bb));}else throw new Error(A(0x200));}catch(k){Log[A(0x1f4)](k),process[A(0x176)](0x1);}}async['ingressRule']({port:a,groupId:b}){const B=a117r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x17c),'IpRanges':[{'CidrIp':B(0x182),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x1d9)]('Port\x20'+a+B(0x1df)),await client[B(0x1d4)](d);}async[a117r(0x1c1)](a){const C=a117r;try{a[C(0x1b1)]===''&&(a['description']=await Actions[C(0x1ba)](C(0x202))||C(0x1ed));const b={'Description':a[C(0x1b1)],'GroupName':a[C(0x179)],'VpcId':a[C(0x1db)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0x1aa));f&&a[C(0x1b9)][C(0x188)](g=>{const D=C;this[D(0x1bd)]({'port':parseInt(g),'groupId':f});}),Log[C(0x1d0)]('Created:\x20'+f+C(0x1c4)+a[C(0x179)]);}catch(g){return Log['error'](g),![];}return!![];}async[a117r(0x19f)](a){const E=a117r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x1d4)](d);if(!f)throw E(0x1aa);const {KeyPairs:g}=f;g?(g?.[E(0x188)]((h,i)=>{const F=E;h['KeyName']&&b[F(0x1bc)]({'id':i,'name':h[F(0x19a)]});}),b[E(0x201)]>0x0&&b[E(0x188)](h=>{const G=E;h[G(0x179)]===a?.['suggestion']?Log[G(0x1d0)](G(0x1fc)+h['id']+G(0x1c4)+h[G(0x179)]):Log[G(0x1d9)]('ID:\x20'+h['id']+G(0x1c4)+h['name']);})):Log[E(0x1f4)](E(0x1c5));}catch(h){Log[E(0x1f4)](h);}return b;}async['deleteKeyPair'](a){const H=a117r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x1d4)](c);}catch(d){Log[H(0x1f4)](d),process[H(0x176)](0x1);}}async['ec2describeInstances'](){const I=a117r,a=[];try{const b={'Filters':[{'Name':I(0x19e),'Values':[I(0x181)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x1d4)](c);d[I(0x1a3)]?.[I(0x188)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x1a8)][0x0],n=m?.[J(0x1b2)](({Key:o})=>o==='environment');a[J(0x1bc)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x1b4)],'name':l,'env':n?.['Value']});}}),a['length']>0x0?a['forEach'](f=>{const K=I,g=K(0x1fc)+f['id']+K(0x1c4)+f[K(0x179)]+K(0x1ac)+f['env']+K(0x18e)+f[K(0x177)]+K(0x1a6)+f[K(0x194)]+K(0x1e5)+f[K(0x1ee)]+K(0x17d)+f[K(0x204)];if(f[K(0x177)]==='terminated')Log[K(0x1f4)](g);else f[K(0x177)]===K(0x1da)?Log[K(0x1d0)](g):Log[K(0x1d9)](g);}):Log[I(0x1f4)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[I(0x1f4)](f);}return a;}async['ec2rebootInstance'](a){const L=a117r;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[L(0x1d4)](c);return d[L(0x1e4)]['httpStatusCode']===0xc8&&Log[L(0x1d0)](L(0x205)),d;}catch(f){Log[L(0x1f4)](f);}}async[a117r(0x189)](){const M=a117r;let a='';Log[M(0x1d9)](M(0x1c2));const b=new DescribeVpcsCommand({}),c=await client[M(0x1d4)](b),{Vpcs:d}=c,e=[];d&&d[M(0x188)]((g,h)=>{const N=M;g['VpcId']&&g[N(0x197)]&&e[N(0x1bc)]({'id':h,'vpcId':g[N(0x1ce)],'cidr':g[N(0x197)]});});e[M(0x188)](function(g){const O=M;console[O(0x1c3)]('ID:\x20'+g['id']+O(0x1d7)+g[O(0x1db)]+'\x20CIDR:\x20'+g[O(0x18a)]);});const f=await Actions[M(0x1ba)](M(0x1ec))||0x0;e['forEach'](function(g){const P=M;g['id']==f&&(a=g[P(0x1db)],Log[P(0x1d0)](P(0x196)+a+'\x0a'));});if(a==='')return Log['error'](M(0x1e8)),'';return a;}async['chooseInstance'](){const Q=a117r,a=await this[Q(0x1ab)]();if(a[Q(0x201)]===0x0)return Log[Q(0x1f4)]('No\x20instances\x20found'),null;const b=await Actions['ask'](Q(0x191));!b&&(Log[Q(0x1f4)](Q(0x1f0)),process[Q(0x176)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a117r(0x1b3)]({env:a}){const R=a117r,b=this[R(0x190)][R(0x17a)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](R(0x1a9)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[R(0x1f7)](R(0x17e),!![]);if(h)try{const i=a117e[R(0x18d)](a117f[R(0x1ca)](R(0x198),a,R(0x1a7)),R(0x1f6)),j=JSON[R(0x192)](i);j[R(0x186)]=a117f['join']('_keys',f+R(0x1a4)),a117e[R(0x1d8)](a117f['join'](R(0x198),a,R(0x1a7)),JSON[R(0x1ff)](j,null,0x2));}catch(k){Log['error'](k),Log['error'](R(0x17b));}}catch(l){Log[R(0x1f4)](l),process[R(0x176)](0x1);}return{'keyName':f,'filePath':g};}async[a117r(0x18f)](a){const S=a117r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x1d4)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const T=S;i[T(0x1ef)]&&i['GroupId']&&b['push']({'id':j,'name':i['GroupName'],'sgId':i[T(0x1e6)]});});let g='',h=0x0;return b[S(0x188)](function(i){const U=S;i[U(0x179)]===a&&(g=i[U(0x1d5)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a117r(0x1d2)](a){const V=a117r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x1d4)](c);}catch(d){Log[V(0x1f4)](d),process[V(0x176)](0x1);}}}
|
|
1
|
+
const a117s=a117d;function a117c(){const V=['key','ec2terminateInstance','The\x20domain\x20\x27','error','CidrBlock','ssh.json','HostedZones','\x20Error\x20Rason:\x20','520786rKrqgS','\x20NAME:\x20','publicIp','\x27\x20has\x20been\x20registered\x20successfully.','deleteKeyPair','214435etUMNI','deleteSecurityGroup','Could\x20not\x20find\x20hosted\x20zone','notice','GroupName','name','7569MXCyue','push','ingressRule','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','log','Error\x20generating\x20key\x20pair','Instances','ec2create','env','\x20PUB_IP:\x20','vpcId','tags','36rTffnP','chooseVPC','UPSERT','Web\x20App','minCount','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','\x20VPCID:\x20','**\x20Available\x20\x20VPCs\x20**','userData','description','ignore','\x20STATUS:\x20','ecrCreateRepository','warn','\x20to\x20','getProjectConfig','Error\x20saving\x20pem\x20file,\x20aborting','From\x20AWS:','AVAILABLE','ask','1667475NXZwoF','createFile','Prices','.pem.txt','instanceId','8130nnzipo','maka-cli','utf8','1177QCgLVd','createKeyPairEC2Key','RegistrationPrice','environment','pem','Created:\x20','toString','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','apply','reason','5631900jwmuPJ','KeyName','Error\x20creating\x20hosted\x20zone','maxCount','readFileSync','join','Instance\x20rebooted!','getConfigPath','GroupId','KeyMaterial','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','ec2describeKeys','\x20PRIV_IP:\x20','310768nAtipy','stringify','split','\x20ENV:\x20','Invalid\x20choice','type','ID:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Error\x20fetching\x20domain\x20pricing:','tag:created-by','\x20INSTANCE_ID:\x20','fsi','ec2describeInstances','subnet','6296hoJBkU','Error\x20linking\x20EC2\x20to\x20Route\x2053:','sgPorts','find','length','4QowGFu','createKeyPair','isFile','sgId','send','suggestion','running','Name','$metadata','UserData','\x20Status\x20Code:\x20','/dev/sdh','success','privateIp','status','(((.+)+)+)+$','0.0.0.0/0','forEach','httpStatusCode','tcp','listHostedZonesByName','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','Successfully\x20linked\x20EC2\x20instance\x20','writeFileSync','VpcId','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','route53CreateHostedZone','sgIds','exit','cidr','parse','changeResourceRecordSets','Please\x20choose\x20a\x20VPC:\x20[0]\x20','$response','checkDomainAvailability','instance','2zwnpXc','constructor','search'];a117c=function(){return V;};return a117c();}(function(a,b){const p=a117d,c=a();while(!![]){try{const d=-parseInt(p(0x23e))/0x1*(-parseInt(p(0x207))/0x2)+parseInt(p(0x1e8))/0x3+parseInt(p(0x21a))/0x4*(parseInt(p(0x1c2))/0x5)+parseInt(p(0x1d4))/0x6*(-parseInt(p(0x249))/0x7)+parseInt(p(0x215))/0x8*(-parseInt(p(0x1c8))/0x9)+-parseInt(p(0x1ed))/0xa*(-parseInt(p(0x1f0))/0xb)+parseInt(p(0x1fa))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x574a5));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a117d;if(c){const e=c[q(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const r=a117d;return a117a[r(0x1f6)]()['search'](r(0x229))[r(0x1f6)]()[r(0x23f)](a117a)[r(0x240)]('(((.+)+)+)+$');});a117a();import a117e from'fs';import a117f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x1c1;let f=c[d];return f;},a117d(a,b);}import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a117s(0x212)];constructor(){this['fsi']=new FSI();}async[a117s(0x1e0)](a){const t=a117s;try{const b={'repositoryName':a[t(0x1c7)]},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x21e)](c);return d;}catch(f){Log[t(0x244)](f);}}async[a117s(0x234)](a){const u=a117s;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x21e)](c),Log[u(0x226)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[u(0x244)](u(0x1fc)),console['error'](d);}}async['registerDomain'](a,b,c,d){const v=a117s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[v(0x1c5)](v(0x243)+b+v(0x24c));}catch(g){Log[v(0x244)](v(0x1d9)),Log[v(0x1e1)](v(0x1e5)),console[v(0x244)](v(0x224)+g['$response']['statusCode']),console[v(0x244)](v(0x248)+g[v(0x23b)][v(0x1f9)]);}}async[a117s(0x23c)](a){const w=a117s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d['Availability']===w(0x1e6);if(e){const f=a[w(0x209)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x21e)](h);if(i&&i[w(0x1ea)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i[w(0x1ea)][0x0][w(0x1f2)];return{'available':e,'cost':j};}}catch(k){console[w(0x244)](w(0x20f),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const x=a117s;try{const d=await route53[x(0x22e)]({'DNSName':c});if(!d?.[x(0x247)])throw Log[x(0x244)](x(0x1c4));const e=d?.[x(0x247)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x1d6),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x239)](f),Log[x(0x1c5)](x(0x230)+a+x(0x1e2)+c);}catch(g){console[x(0x244)](x(0x216),g);}}async[a117s(0x1cf)](a){const y=a117s;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x225),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[y(0x20c)],'KeyName':a[y(0x241)],'MaxCount':a[y(0x1fd)],'MinCount':a[y(0x1d8)],'SecurityGroupIds':a[y(0x235)][y(0x209)](','),'SubnetId':a[y(0x214)],'TagSpecifications':[{'ResourceType':y(0x23d),'Tags':a[y(0x1d3)]}]};a[y(0x1dc)]&&(b[y(0x223)]='file://'+a[y(0x1dc)]);const c=new RunInstancesCommand(b),d=await client[y(0x21e)](c);return d;}catch(f){Log['error'](f);}}async[a117s(0x242)](a){const z=a117s;try{const b={'InstanceIds':[a[z(0x1ec)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x21e)](c);return d;}catch(f){return Log['error'](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const A=a117s,c=this[A(0x212)][A(0x201)](b),d=a117f[A(0x1ff)](c,'_keys',a+A(0x1eb));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x21e)](g),i=h[A(0x203)];if(i){await this[A(0x212)][A(0x1e9)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':A(0x1de)});const j=this[A(0x212)][A(0x21c)](d);if(j)return Log[A(0x226)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(A(0x1e4));}else throw new Error(A(0x1cd));}catch(k){Log[A(0x244)](k),process[A(0x236)](0x1);}}async[a117s(0x1ca)]({port:a,groupId:b}){const B=a117s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x22d),'IpRanges':[{'CidrIp':B(0x22a),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice']('Port\x20'+a+'\x20opened!'),await client[B(0x21e)](d);}async['ec2createSG'](a){const C=a117s;try{a[C(0x1dd)]===''&&(a[C(0x1dd)]=await Actions[C(0x1e7)]('Description:')||C(0x1d7));const b={'Description':a[C(0x1dd)],'GroupName':a['name'],'VpcId':a[C(0x1d2)]},c=new CreateSecurityGroupCommand(b),d=await client[C(0x21e)](c),{GroupId:f}=d;if(!d)throw new Error(C(0x20e));f&&a[C(0x217)][C(0x22b)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success'](C(0x1f5)+f+'\x20NAME:\x20'+a[C(0x1c7)]);}catch(g){return Log[C(0x244)](g),![];}return!![];}async[a117s(0x205)](a){const D=a117s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[D(0x21e)](d);if(!f)throw D(0x20e);const {KeyPairs:g}=f;g?(g?.[D(0x22b)]((h,i)=>{const E=D;h[E(0x1fb)]&&b[E(0x1c9)]({'id':i,'name':h[E(0x1fb)]});}),b[D(0x219)]>0x0&&b[D(0x22b)](h=>{const F=D;h[F(0x1c7)]===a?.[F(0x21f)]?Log['success'](F(0x20d)+h['id']+F(0x24a)+h['name']):Log[F(0x1c5)](F(0x20d)+h['id']+F(0x24a)+h[F(0x1c7)]);})):Log[D(0x244)](D(0x1f7));}catch(h){Log['error'](h);}return b;}async[a117s(0x1c1)](a){const G=a117s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[G(0x21e)](c);}catch(d){Log['error'](d),process[G(0x236)](0x1);}}async[a117s(0x213)](){const H=a117s,a=[];try{const b={'Filters':[{'Name':H(0x210),'Values':[H(0x1ee)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d['Reservations']?.[H(0x22b)]((f,g)=>{const I=H;if(f?.[I(0x1ce)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[I(0x1ce)][0x0],n=m?.[I(0x218)](({Key:o})=>o===I(0x1f3));a[I(0x1c9)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[I(0x221)],'name':l,'env':n?.['Value']});}}),a[H(0x219)]>0x0?a[H(0x22b)](f=>{const J=H,g=J(0x20d)+f['id']+'\x20NAME:\x20'+f[J(0x1c7)]+J(0x20a)+f[J(0x1d0)]+J(0x1df)+f[J(0x228)]+J(0x211)+f[J(0x1ec)]+J(0x1d1)+f[J(0x24b)]+J(0x206)+f[J(0x227)];if(f[J(0x228)]==='terminated')Log[J(0x244)](g);else f[J(0x228)]===J(0x220)?Log['success'](g):Log[J(0x1c5)](g);}):Log[H(0x244)](H(0x22f));}catch(f){Log[H(0x244)](f);}return a;}async['ec2rebootInstance'](a){const K=a117s;try{const b={'InstanceIds':[a[K(0x1ec)]]},c=new RebootInstancesCommand(b),d=await client[K(0x21e)](c);return d[K(0x222)][K(0x22c)]===0xc8&&Log[K(0x226)](K(0x200)),d;}catch(f){Log[K(0x244)](f);}}async[a117s(0x1d5)](){const L=a117s;let a='';Log['notice'](L(0x1db));const b=new DescribeVpcsCommand({}),c=await client[L(0x21e)](b),{Vpcs:d}=c,e=[];d&&d[L(0x22b)]((g,h)=>{const M=L;g[M(0x232)]&&g[M(0x245)]&&e[M(0x1c9)]({'id':h,'vpcId':g[M(0x232)],'cidr':g[M(0x245)]});});e[L(0x22b)](function(g){const N=L;console[N(0x1cc)](N(0x20d)+g['id']+N(0x1da)+g[N(0x1d2)]+'\x20CIDR:\x20'+g[N(0x237)]);});const f=await Actions[L(0x1e7)](L(0x23a))||0x0;e['forEach'](function(g){const O=L;g['id']==f&&(a=g[O(0x1d2)],Log[O(0x226)](O(0x204)+a+'\x0a'));});if(a==='')return Log[L(0x244)](L(0x233)),'';return a;}async['chooseInstance'](){const P=a117s,a=await this['ec2describeInstances']();if(a['length']===0x0)return Log[P(0x244)]('No\x20instances\x20found'),null;const b=await Actions[P(0x1e7)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[P(0x244)](P(0x20b)),process[P(0x236)](0x0));const c=a[P(0x218)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a117s(0x21b)]({env:a}){const Q=a117s,b=this['fsi'][Q(0x1e3)](),{appName:c}=b,d=c+'-'+a,f=await Actions[Q(0x1e7)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[Q(0x1f1)]({'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=a117e[Q(0x1fe)](a117f['join']('config',a,Q(0x246)),Q(0x1ef)),j=JSON[Q(0x238)](i);j[Q(0x1f4)]=a117f[Q(0x1ff)]('_keys',f+Q(0x1eb)),a117e[Q(0x231)](a117f[Q(0x1ff)]('config',a,'ssh.json'),JSON[Q(0x208)](j,null,0x2));}catch(k){Log['error'](k),Log['error'](Q(0x1cb));}}catch(l){Log[Q(0x244)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const R=a117s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[R(0x21e)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const S=R;i[S(0x1c6)]&&i[S(0x202)]&&b[S(0x1c9)]({'id':j,'name':i[S(0x1c6)],'sgId':i[S(0x202)]});});let g='',h=0x0;return b[R(0x22b)](function(i){const T=R;i['name']===a&&(g=i[T(0x21d)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a117s(0x1c3)](a){const U=a117s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[U(0x21e)](c);}catch(d){Log[U(0x244)](d),process['exit'](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-
|
|
1
|
+
function a118d(a,b){var c=a118c();return a118d=function(d,e){d=d-0x6f;var f=c[d];return f;},a118d(a,b);}(function(a,b){var k=a118d,c=a();while(!![]){try{var d=-parseInt(k(0x76))/0x1+-parseInt(k(0x71))/0x2+-parseInt(k(0x7f))/0x3*(-parseInt(k(0x77))/0x4)+-parseInt(k(0x6f))/0x5*(parseInt(k(0x7c))/0x6)+parseInt(k(0x74))/0x7*(parseInt(k(0x79))/0x8)+-parseInt(k(0x7e))/0x9*(parseInt(k(0x7a))/0xa)+parseInt(k(0x70))/0xb*(parseInt(k(0x73))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x2cec5));export var CountryCode;function a118c(){var n=['(((.+)+)+)+$','1343634lFCaeO','search','2376234PaHEfh','31431dknHVv','5vpMnRs','33suhEOB','260584JMNdzL','toString','3254748gympBR','28DckZMJ','apply','332100cOVXBJ','28VRpfxV','constructor','494672AlzIpR','10sHLZwl'];a118c=function(){return n;};return a118c();}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a118d;if(h){var j=h[l(0x75)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a118d;return e[m(0x72)]()[m(0x7d)](m(0x7b))['toString']()[m(0x78)](e)[m(0x7d)](m(0x7b));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119n=a119d;(function(a,b){const j=a119d,c=a();while(!![]){try{const d=parseInt(j(0x1bd))/0x1*(-parseInt(j(0x1cd))/0x2)+parseInt(j(0x1c4))/0x3+-parseInt(j(0x1b9))/0x4*(parseInt(j(0x1ba))/0x5)+-parseInt(j(0x1bc))/0x6*(-parseInt(j(0x1cb))/0x7)+-parseInt(j(0x1c2))/0x8+-parseInt(j(0x1c0))/0x9+-parseInt(j(0x1c5))/0xa*(-parseInt(j(0x1c3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xacc3a));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 k=a119d;return a119a['toString']()[k(0x1b7)](k(0x1cf))[k(0x1c8)]()['constructor'](a119a)[k(0x1b7)](k(0x1cf));});function a119c(){const p=['1924368twiqqa','740tCTWPm','pushImage','tag','toString','.amazonaws.com/','push','14FKGTJb','AWS','4226poCGPf','docker\x20','(((.+)+)+)+$','.amazonaws.com','inherit','--password-stdin','search','join','3228424tEWchs','5SCPAGu','.dkr.ecr.','3448980ytejZV','151doKUHA','error','--username','4901391eslfBk','login','10530256bLxtmo','282964VykTtk'];a119c=function(){return p;};return a119c();}a119a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a119d(a,b);}export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const l=a119d;try{const f=[l(0x1c7),a,b+l(0x1bb)+c+l(0x1c9)+d],g='docker\x20'+f[l(0x1b8)]('\x20'),h=execSync(g,{'stdio':l(0x1b5)})[l(0x1c8)]();return h;}catch(i){return Log['error'](i),'';}}static['awsLogin']({awsAccountId:a,region:b}){const m=a119d;try{const c=[m(0x1c1),m(0x1bf),m(0x1cc),m(0x1b6),a+m(0x1bb)+b+m(0x1b4)],d='docker\x20'+c[m(0x1b8)]('\x20'),f=execSync(d,{'stdio':m(0x1b5)})['toString']();return f;}catch(g){return Log[m(0x1be)](g),'';}}static[a119n(0x1c6)]({awsAccountId:a,region:b,repoName:c}){const o=a119n;try{const d=[o(0x1ca),a+'.dkr.ecr.'+b+o(0x1c9)+c],f=o(0x1ce)+d[o(0x1b8)]('\x20'),g=execSync(f,{'stdio':'inherit'})[o(0x1c8)]();return g;}catch(h){return Log[o(0x1be)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a120d,c=a();while(!![]){try{var d
|
|
1
|
+
function a120d(a,b){var c=a120c();return a120d=function(d,e){d=d-0x182;var f=c[d];return f;},a120d(a,b);}(function(a,b){var f=a120d,c=a();while(!![]){try{var d=parseInt(f(0x18d))/0x1*(parseInt(f(0x190))/0x2)+parseInt(f(0x185))/0x3*(-parseInt(f(0x186))/0x4)+parseInt(f(0x18e))/0x5+-parseInt(f(0x18f))/0x6*(parseInt(f(0x189))/0x7)+parseInt(f(0x183))/0x8+-parseInt(f(0x187))/0x9*(-parseInt(f(0x182))/0xa)+-parseInt(f(0x18b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x256b5));var a120b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a120d;if(c){var e=c[g(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){var h=a120d;return a120a['toString']()[h(0x184)]('(((.+)+)+)+$')[h(0x18a)]()[h(0x188)](a120a)[h(0x184)](h(0x18c));});a120a();export{};function a120c(){var i=['1809434OJizvw','(((.+)+)+)+$','53254ivfhBD','270490PTfBPA','4914ADFAHo','6RvkIaE','apply','50ahGvej','2004376dgCuJH','search','298965CpKQsY','4ENBWVp','462348QvsXAT','constructor','2597KYwpLI','toString'];a120c=function(){return i;};return a120c();}
|