@maka/maka-cli 4.6.16 → 4.6.18
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 +31 -32
- 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/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/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 +31 -32
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x154;let f=c[d];return f;},a110d(a,b);}const a110o=a110d;(function(a,b){const l=a110d,c=a();while(!![]){try{const d=-parseInt(l(0x169))/0x1+-parseInt(l(0x166))/0x2+-parseInt(l(0x16d))/0x3*(parseInt(l(0x159))/0x4)+parseInt(l(0x168))/0x5+-parseInt(l(0x15d))/0x6*(-parseInt(l(0x17f))/0x7)+-parseInt(l(0x15a))/0x8*(-parseInt(l(0x17c))/0x9)+parseInt(l(0x154))/0xa*(-parseInt(l(0x177))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x545ec));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a110d;if(c){const e=c[m(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const n=a110d;return a110a[n(0x167)]()[n(0x172)](n(0x15b))['toString']()[n(0x16f)](a110a)[n(0x172)]('(((.+)+)+)+$');});function a110c(){const s=['maka\x20g:package\x20todos:package','25663MaQJWm','package/package.js','dir','fsi','server','3771xCSXFT','template','getProjectConfig','13293wdYsua','tests/server','pathFromApp','tests/client','1250HPivds','resourceName','pathFromProject','relative','noRename','16jtJDJg','12072EqWUst','(((.+)+)+)+$','engines','180cepjJL','template/template.js','theme','store','packages','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','.js','features','package','115890BbheBO','toString','1414315BqIeYE','267778KNEhOP','layout','client','/client/','6882JYNVxV','lib','constructor','apply','package.js','search','withValue','pathFromAppWithNoReWrite','hasOwnProperty'];a110c=function(){return s;};return a110c();}a110a();import a110e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a110o(0x165),'aliases':['p'],'usage':a110o(0x162),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a110o(0x179)],'examples':[a110o(0x176)]},async function(a,b){const p=a110o,c=paramCase(b[p(0x155)]),d=this['fsi'][p(0x181)]({'pathParts':[p(0x161),b[p(0x179)],c]}),e=this[p(0x17a)][p(0x174)]({'pathParts':[p(0x161),b[p(0x179)],c,p(0x171)]}),f=this['fsi'][p(0x17e)]();this[p(0x17a)][p(0x173)](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a110e[q(0x157)](this['fsi'][q(0x156)]({}),d),'cssCaseName':paramCase(b[q(0x155)]),'className':pascalCase(b[q(0x155)]),'camelCaseName':camelCase(b[q(0x155)]),'fileName':c,'client':f[q(0x15c)][q(0x16b)],'graphql':f[q(0x15c)]['graphql'],'ssr':f['engines']['ssr'],'isComponent':b[q(0x175)]('component'),'isLayout':b[q(0x175)](q(0x16a)),'isStore':b[q(0x175)](q(0x160)),'features':f[q(0x164)],'noRename':!![],'theme':f['engines'][q(0x15f)]};this[q(0x17a)][q(0x17d)]({'srcPath':q(0x178),'destPath':e,'context':g,'config':f}),g[q(0x158)]=![];const h=d+q(0x16c)+c+q(0x163);this['fsi'][q(0x17d)]({'srcPath':q(0x15e),'destPath':h,'context':g,'config':f});const i=[q(0x16e),q(0x17b),q(0x182),q(0x180)];i['forEach'](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x163);this[r(0x17a)][r(0x17d)]({'srcPath':'package/'+j+'/package.js','destPath':k,'context':g,'config':f});});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d
|
|
1
|
+
const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=parseInt(m(0x14b))/0x1+-parseInt(m(0x174))/0x2*(parseInt(m(0x141))/0x3)+parseInt(m(0x153))/0x4*(-parseInt(m(0x144))/0x5)+parseInt(m(0x15e))/0x6+parseInt(m(0x16f))/0x7+-parseInt(m(0x176))/0x8+parseInt(m(0x161))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x355f1));function a111c(){const s=['withHooks','warn','constructor','Generate\x20a\x20page.','export\x20\x27','2685TsjXeZ','graphql','component','943145dcNYyz','template','features','\x20}\x20from\x20\x27','html','store','.js','21305csZGHd','setTemplate','imports','withHook','root','layouts','resourceName','baseDir','4wdjMQX','true','react','rewriteDestinationPathForEngine','fileName','export\x20{\x20','test','apply','import\x20\x27./','ramda','.html','356070RjTdiz','page','(((.+)+)+)+$','2352627wcorEZ','client','/imports/ui/pages','getProjectConfig','injectAtBeginningOfFile','none','theme','.app-tests.js','\x27;\x0a','template/template.css','injectAtEndOfFile','lib','template/template.html','withTranslations','2899386LtLmch','pathFromApp','templates.js','ssr','test/test.js','562VlGSvZ','hasOwnProperty','780144DlWPBj','fsi','withValue','toString','string','startup','create','maka\x20g:page\x20todos/todos-item','installNpmPackage','css','engines','relative','search','className','/imports/ui/','layout','Updating\x20npm\x20packages\x20...','dir','pages','hook/hook.js'];a111c=function(){return s;};return a111c();}function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x13a;let f=c[d];return f;},a111d(a,b);}const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a111d;if(c){const e=c[n(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const o=a111d;return a111a[o(0x179)]()[o(0x182)]('(((.+)+)+)+$')[o(0x179)]()[o(0x13e)](a111a)['search'](o(0x160));});a111a();import a111e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a111p(0x17c)]({'name':a111p(0x15f),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':a111p(0x13f),'validOpts':[{'name':a111p(0x152),'values':['hooks','components',a111p(0x13a),a111p(0x150)]},{'name':a111p(0x14e),'boolFlag':!![]}],'examples':[a111p(0x17d)]},function(a,b){const q=a111p,c=b['baseDir']?q(0x184)+b[q(0x152)]:q(0x163),d=this[q(0x177)]['pathFromApp'](b),e=this[q(0x177)][q(0x170)]({'pathParts':[c,b[q(0x187)],paramCase(b['resourceName']),paramCase(b[q(0x151)])]}),f=this[q(0x177)][q(0x164)]();this[q(0x177)][q(0x178)](f,()=>{const r=q;typeof f[r(0x145)][r(0x148)]===r(0x17a)&&(f[r(0x145)]['html']=f['template'][r(0x148)]===r(0x154)?!![]:![],this['fsi'][r(0x14c)]('html',f[r(0x145)][r(0x148)]));typeof f[r(0x145)][r(0x159)]==='string'&&(f[r(0x145)]['test']=f['template'][r(0x159)]===r(0x154)?!![]:![],this[r(0x177)][r(0x14c)]('test',f['template'][r(0x159)]));typeof f[r(0x145)]['css']==='string'&&(f[r(0x145)][r(0x17f)]=f['template'][r(0x17f)]===r(0x154)?!![]:![],this['fsi'][r(0x14c)](r(0x17f),f[r(0x145)][r(0x17f)]));typeof f[r(0x145)]['js']==='string'&&(f[r(0x145)]['js']=f['template']['js']===r(0x154)?!![]:![],this[r(0x177)][r(0x14c)]('js',f[r(0x145)]['js']));!f[r(0x146)]&&(f[r(0x146)]={});!b[r(0x14f)]&&!this[r(0x177)]['checkNpmPackage'](r(0x15c))&&(Log[r(0x13d)](r(0x186)),this[r(0x177)][r(0x17e)](r(0x15c),{'cwd':d}));const g={'name':pascalCase(b['resourceName']),'myPath':a111e[r(0x181)](this[r(0x177)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[r(0x151)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[r(0x151)]),'fileName':paramCase(b[r(0x151)]),'graphql':f[r(0x180)][r(0x142)],'features':f[r(0x146)],'client':f[r(0x180)][r(0x162)],'api':f['engines']['api'],'ssr':f['engines'][r(0x172)],'isStore':b[r(0x175)](r(0x149)),'isComponent':b[r(0x175)](r(0x143)),'isLayout':b[r(0x175)](r(0x185)),'withTranslations':f[r(0x146)][r(0x16e)],'test':f[r(0x180)]['test'],'theme':f[r(0x180)][r(0x167)]};f[r(0x145)][r(0x148)]&&this[r(0x177)][r(0x145)]({'srcPath':r(0x16d),'destPath':e+r(0x15d),'context':g,'config':f});f['features']?.[r(0x13c)]||b['withHook']?this[r(0x177)][r(0x145)]({'srcPath':r(0x13b),'destPath':e+r(0x14a),'framework':'react','context':g,'config':f}):this[r(0x177)][r(0x145)]({'srcPath':'component/component.js','destPath':e+r(0x14a),'framework':r(0x155),'context':g,'config':f});f['engines'][r(0x159)]!==r(0x166)&&this[r(0x177)][r(0x145)]({'srcPath':r(0x173),'destPath':e+r(0x168),'framework':r(0x155),'context':g,'config':f});f[r(0x145)][r(0x17f)]&&this[r(0x177)][r(0x145)]({'srcPath':r(0x16a),'destPath':e+'.css','context':Object['assign']({},g,{'className':paramCase(b[r(0x151)])}),'config':f});f[r(0x180)]['client']!==r(0x155)&&f[r(0x180)][r(0x162)]!=='vanilla'?(f[r(0x145)][r(0x17f)]&&this[r(0x177)][r(0x165)]({'filePath':e+'.'+f['engines']['js'],'content':r(0x15b)+g[r(0x157)]+'.'+f[r(0x180)]['html']+r(0x169)+r(0x15b)+g[r(0x157)]+'.'+f['engines']['css']+'\x27;'}),!f[r(0x145)][r(0x17f)]&&this[r(0x177)][r(0x165)]({'filePath':e+'.'+f[r(0x180)]['js'],'content':r(0x15b)+g['fileName']+'.'+f[r(0x180)][r(0x148)]+'\x27;'})):f['template'][r(0x17f)]&&this[r(0x177)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x180)]['js'],'content':r(0x15b)+g['fileName']+'.'+f['engines'][r(0x17f)]+'\x27;'});const h=b[r(0x187)]?'/'+b[r(0x187)]+'/':'/',i=''+c+h+g[r(0x157)]+'/'+g[r(0x157)];let j;if(f[r(0x180)][r(0x172)]===r(0x154)){const k=this[r(0x177)][r(0x170)]({'pathParts':[r(0x14d),'startup',r(0x16c),r(0x171)]});j=this['fsi'][r(0x156)]({'pathParts':[k],'config':f});}else{const l=this[r(0x177)][r(0x170)]({'pathParts':[r(0x14d),r(0x17b),r(0x162),'templates.js']});j=this[r(0x177)][r(0x156)]({'pathParts':[l],'config':f});}f['engines'][r(0x162)]===r(0x155)?this[r(0x177)][r(0x16b)]({'filePath':j,'content':r(0x158)+g[r(0x183)]+r(0x147)+i+r(0x169)}):this[r(0x177)]['injectAtEndOfFile']({'filePath':j,'content':r(0x140)+i+'.'+f[r(0x180)]['js']+'\x27;\x0a'});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112j=a112d;(function(a,b){const h=a112d,c=a();while(!![]){try{const d=-parseInt(h(0x157))/0x1*(-parseInt(h(0x152))/0x2)+-parseInt(h(0x156))/0x3*(parseInt(h(0x16a))/0x4)+-parseInt(h(0x159))/0x5+parseInt(h(0x161))/0x6+-parseInt(h(0x15d))/0x7*(parseInt(h(0x162))/0x8)+-parseInt(h(0x169))/0x9+-parseInt(h(0x163))/0xa*(-parseInt(h(0x15f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x4de13));const a112b=(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;};}()),a112a=a112b(this,function(){const i=a112d;return a112a[i(0x15b)]()[i(0x164)](i(0x15e))['toString']()[i(0x158)](a112a)[i(0x164)](i(0x15e));});a112a();function a112c(){const m=['constructor','2343785eUiLSY','tsx','toString','templateContent','70WChuDf','(((.+)+)+)+$','351142qcAgIy','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','3380400lacLjC','171032IsbPUK','290WKOTxc','search','rewriteDestinationPathForEngine','maka\x20g:publish\x20todos','fsi','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','4681773ZrmOmq','746104MNJnbU','resourceName','server/publish.','438254dgKytJ','publish/publish.','getProjectConfig','engines','3WJxzPA','1NEtBPp'];a112c=function(){return m;};return a112c();}import{paramCase}from'change-case';import{Generator}from'../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x150;let f=c[d];return f;},a112d(a,b);}Generator['create']({'name':'publish','aliases':['p'],'usage':a112j(0x168),'shortDesc':a112j(0x160),'validOpts':[],'examples':[a112j(0x166)]},async function(a,b){const k=a112j,c=this['fsi'][k(0x154)]();this[k(0x167)]['withValue'](c,async()=>{const l=k,d={'name':b['resourceName'],'collection':paramCase(b[l(0x150)]),'noRename':!![]};let e='js';c['engines']['js']===l(0x15a)&&(e='ts');const f=this[l(0x167)][l(0x165)]({'pathParts':[l(0x151)+c[l(0x155)]['js']]}),g=this[l(0x167)][l(0x15c)]({'srcPath':l(0x153)+e,'context':d,'config':c});this[l(0x167)]['injectAtEndOfFile']({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
const a113A=a113d;(function(a,b){const x=a113d,c=a();while(!![]){try{const d=-parseInt(x(0x202))/0x1+parseInt(x(0x239))/0x2*(parseInt(x(0x1f2))/0x3)+parseInt(x(0x217))/0x4+-parseInt(x(0x205))/0x5*(parseInt(x(0x1ee))/0x6)+parseInt(x(0x211))/0x7*(parseInt(x(0x214))/0x8)+parseInt(x(0x1fb))/0x9*(-parseInt(x(0x1f4))/0xa)+parseInt(x(0x21d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x338a5));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a113d;if(c){const e=c[y(0x208)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const z=a113d;return a113a['toString']()[z(0x20f)]('(((.+)+)+)+$')[z(0x1f3)]()[z(0x1ed)](a113a)[z(0x20f)](z(0x20a));});a113a();import a113e from'path';import{Generator}from'../generator.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x1eb;let f=c[d];return f;},a113d(a,b);}import{Log}from'../tools/log/log.class.js';function a113c(){const J=['100868gMnLXg','true','Valid\x20options\x20are:\x20','401655WNIqkV','page','injectIntoFile','apply','map','(((.+)+)+)+$','vanilla','Scaffolding\x20for\x20a\x20Route.','client','maka\x20g:route\x20pages/about','search','only','7hmaBAV','lib','components','303808jwbmjH','warn','templateName','1250228atpEjJ','MasterLayout','error','toLowerCase','\x0a\x09\x09','<Route','2602446VeIslj','readFileLines','create','maka\x20g:route\x20todosEdit\x20todos/:id/edit','hooks','pathFromApp','</Router>','cwd','const\x20publicRoutes\x20=\x20(<>','includes','Invalid\x20directory\x20option\x20\x22','imports','resourceName','newForm','startup','layouts','route/route.js','indexOf','getProjectConfig','withHook','filter','withValue','const\x20privateRoutes\x20=\x20(<>','\x22*\x22','rewriteDestinationPathForEngine','routes.js','length','join','2ZEEsAd','withTranslations','fsi','invoke','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','constructor','18crsnXS','baseDir','root','<Router','535809VgkqVi','toString','40LAVsJT','layout','/imports/ui/','private','injectAfterLineNumber','engines','features','478692QFubYG','react','/imports/ui/pages','pages','PrivateLayout','findGenerator','dir'];a113c=function(){return J;};return a113c();}import a113f from'../generators/maka.gen.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a113A(0x21f)]({'name':'route','aliases':aliases,'validOpts':[a113A(0x1f7),a113A(0x1f5),a113A(0x210),a113A(0x224),'config',a113A(0x1f0),a113A(0x230),'url',a113A(0x1ef)],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a113A(0x20c),'examples':['maka\x20g:route\x20todosIndex\x20todos',a113A(0x220),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','maka\x20g:route\x20pages/lists/listIndex\x20lists',a113A(0x20e)]},function(a,b){const B=a113A;try{const c=[B(0x221),B(0x213),B(0x1fe),B(0x22c)];if(b[B(0x1ef)]&&!c[B(0x226)](b[B(0x1ef)])){Log[B(0x219)](B(0x227)+b[B(0x1ef)]+'\x22'),Log[B(0x219)](B(0x204)+c['join'](',\x20'));throw new UsageError();}const d=this[B(0x23b)][B(0x22f)]();this[B(0x23b)][B(0x232)](d,async()=>{const C=B,f=b[C(0x1f7)]??![];let g=paramCase(b[C(0x229)]),h='/'+g;a['length']>0x1&&(h='/'+a['filter'](function(n){return n!=='/';})[C(0x238)]('/')[C(0x21a)]());g=camelCase(g);b[C(0x1f5)]&&(b[C(0x1f5)]=camelCase(b[C(0x1f5)]));const i=b['baseDir']?C(0x1f6)+b[C(0x1ef)]:C(0x1fd),j=a113e[C(0x238)](i,b[C(0x201)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x1f5)]||C(0x218),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x1f9)]['client'],'newForm':![],'withTranslations':d[C(0x1fa)][C(0x23a)]};f&&(k[C(0x1f5)]=C(0x1ff));if(!b[C(0x1f0)]){const n=a113f[C(0x200)](C(0x206));n&&await n[C(0x23c)](a,b);}let l,m;if(d[C(0x1f9)][C(0x20d)]==='react'){if(d[C(0x1f9)]['ssr']===C(0x203)){const r=this['fsi']['pathFromApp']({'pathParts':[C(0x228),C(0x22b),C(0x212),C(0x236)]});l=this[C(0x23b)][C(0x235)]({'pathParts':[r],'config':d});}else{const s=this[C(0x23b)]['pathFromApp']({'pathParts':[C(0x228),'startup',C(0x20d),'routes.js']});l=this[C(0x23b)][C(0x235)]({'pathParts':[s],'config':d});}const o=this['fsi'][C(0x21e)](l)['map']((t,u)=>{const D=C;return t[D(0x226)](D(0x1ec))?u+0x1:null;})[C(0x231)](t=>t!==null);let p=this[C(0x23b)]['readFileLines'](l)[C(0x209)]((t,u)=>{const E=C;return t[E(0x226)](E(0x225))?u+0x1:null;})[C(0x231)](t=>t!==null),q=this[C(0x23b)][C(0x21e)](l)[C(0x209)]((t,u)=>{const F=C;return t[F(0x226)]('const\x20privateRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x231)](t=>t!==null);p[C(0x237)]>0x0&&q[C(0x237)]>0x0&&(k[C(0x22a)]=!![]);m=this[C(0x23b)]['templateContent']({'srcPath':'route/route.js','framework':C(0x1fc),'context':k,'config':d});if(p['length']>0x0||q[C(0x237)]>0x0){this[C(0x23b)][C(0x1f8)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x237)]>0x0)q=this[C(0x23b)][C(0x21e)](l)['map']((t,u)=>{const G=C;return t[G(0x226)](G(0x233))?u+0x1:null;})[C(0x231)](t=>t!==null),this[C(0x23b)][C(0x1f8)]({'filePath':l,'content':'\x09{'+k[C(0x216)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[C(0x23b)]['readFileLines'](l)[C(0x209)]((t,u)=>{const H=C;return t[H(0x226)]('const\x20publicRoutes\x20=\x20(<>')?u+0x1:null;})[C(0x231)](t=>t!==null),this[C(0x23b)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log[C(0x215)](C(0x1eb)+l);}else{const t=this['fsi']['readFileLines'](l)[C(0x209)](w=>{const I=C;return w[I(0x226)](I(0x234));}),u=t[C(0x22e)](!![])>-0x1,v=u?C(0x21c):C(0x223);this['fsi'][C(0x207)]({'filePath':l,'content':C(0x21b)+m+C(0x21b),'begin':C(0x1f1),'end':v});}}else{if(d['engines']['client']===C(0x20b)){const w=this[C(0x23b)][C(0x222)]({'pathParts':[C(0x228),'startup',C(0x20d),C(0x236)]});l=this[C(0x23b)][C(0x235)]({'pathParts':[w],'config':d}),m=this[C(0x23b)]['templateContent']({'srcPath':C(0x22d),'context':k}),this[C(0x23b)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x219)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a114c(){const p=['winston','create','toString','svc','maka\x20{generate,\x20g}:{service}\x20<resource-name>','getProjectConfig','service','maka\x20g:svc\x20service-logger\x20--type=logger','4241295hJUGVY','(((.+)+)+)+$','type','tsx','logger','installNpmPackage','fsi','3445LmIhnN','withValue','178wEMPAr','winston\x20setimmediate','apply','startup','5854093DnTflI','resourceName','services','27104lbTQqL','260YtnlfK','pathFromApp','2570hfvsXC','search','engines','24828gcUWqy','2729784DwGnju','template','checkNpmPackage','8oDIEbr','748566HaFjZa'];a114c=function(){return p;};return a114c();}const a114m=a114d;(function(a,b){const j=a114d,c=a();while(!![]){try{const d=parseInt(j(0x11e))/0x1*(parseInt(j(0x120))/0x2)+-parseInt(j(0x12d))/0x3*(-parseInt(j(0x128))/0x4)+-parseInt(j(0x13b))/0x5+parseInt(j(0x12e))/0x6+parseInt(j(0x124))/0x7*(parseInt(j(0x131))/0x8)+-parseInt(j(0x132))/0x9+parseInt(j(0x12a))/0xa*(-parseInt(j(0x127))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x8b6f7));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a114d;if(c){const e=c[k(0x122)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const l=a114d;return a114a[l(0x135)]()[l(0x12b)](l(0x13c))[l(0x135)]()['constructor'](a114a)[l(0x12b)](l(0x13c));});function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x11b;let f=c[d];return f;},a114d(a,b);}a114a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a114m(0x134)]({'name':a114m(0x139),'aliases':[a114m(0x136)],'usage':a114m(0x137),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a114m(0x13d),'values':[a114m(0x11b)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a114m(0x13a)]},async function(a,b){const n=a114m;try{const c=this[n(0x11d)][n(0x138)]();this[n(0x11d)][n(0x11f)](c,async()=>{const o=n,d=this[o(0x11d)]['pathFromApp']({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x125)]),'fileName':f,'camelCase':camelCase(b[o(0x125)]),'type':b[o(0x13d)],'engine':c[o(0x12c)]['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x13e)&&(h='ts');if(b[o(0x13d)]===o(0x11b)){!this[o(0x11d)][o(0x130)](o(0x133))&&await this[o(0x11d)][o(0x11c)](o(0x121),{'cwd':d,'msg':'Installing\x20winston'});const i=this['fsi'][o(0x129)]({'pathParts':['imports',o(0x123),'lib',o(0x126),f+'.'+h]});await this['fsi'][o(0x12f)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a115d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a115d,c=a();while(!![]){try{var d=parseInt(f(0x137))/0x1+-parseInt(f(0x131))/0x2+-parseInt(f(0x12f))/0x3+-parseInt(f(0x138))/0x4+parseInt(f(0x132))/0x5*(-parseInt(f(0x139))/0x6)+-parseInt(f(0x133))/0x7+parseInt(f(0x134))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x1fcbd));function a115c(){var i=['685784scCgaQ','18660FGHJPv','constructor','search','536361cAafHd','toString','469946XUfonF','50odRxjL','205814dPSAdH','4599216QTBypz','(((.+)+)+)+$','apply','201043uWUHUC'];a115c=function(){return i;};return a115c();}function a115d(a,b){var c=a115c();return a115d=function(d,e){d=d-0x12d;var f=c[d];return f;},a115d(a,b);}var a115b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a115d;if(c){var e=c[g(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){var h=a115d;return a115a[h(0x130)]()[h(0x12e)](h(0x135))[h(0x130)]()[h(0x12d)](a115a)[h(0x12e)](h(0x135));});a115a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116l=a116d;function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x72;let f=c[d];return f;},a116d(a,b);}function a116c(){const o=['153559najgqg','588486XqAUCe','sslconfig','37130bgVpXq','error','2818991Llftsk','2115PjETJK','env','template','2637906HIZswV','_keys','appName','toString','maka\x20{generate,\x20g}:sslconfig','search','withValue','942975GjZtEQ','8sraRKl','fsi','getConfigPath','1861492nnElAY','maka\x20g:sslconfig\x20--env\x20dev','2ROHGfY','join','constructor','service','apply','(((.+)+)+)+$'];a116c=function(){return o;};return a116c();}(function(a,b){const i=a116d,c=a();while(!![]){try{const d=parseInt(i(0x8a))/0x1*(-parseInt(i(0x84))/0x2)+parseInt(i(0x8b))/0x3+parseInt(i(0x82))/0x4+-parseInt(i(0x7e))/0x5+parseInt(i(0x77))/0x6+parseInt(i(0x73))/0x7*(parseInt(i(0x7f))/0x8)+-parseInt(i(0x74))/0x9*(parseInt(i(0x8d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x469a6));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a116d;if(c){const e=c[j(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const k=a116d;return a116a[k(0x7a)]()[k(0x7c)](k(0x89))['toString']()[k(0x86)](a116a)[k(0x7c)](k(0x89));});a116a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a116e from'path';Generator['create']({'name':a116l(0x8c),'usage':a116l(0x7b),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noResource':!![],'requiredOpts':['env'],'examples':[a116l(0x83)],'validOpts':[]},async function(a,b){const m=a116l;try{const c=await this['fsi']['getProjectConfig'](),d=await this[m(0x80)]['getGlobalConfig'](),f=this[m(0x80)][m(0x81)](b[m(0x75)]),g=a116e[m(0x85)](f,m(0x78),'openssl.conf');await this['fsi'][m(0x7d)](c,async()=>{const n=m,h={'app':d[n(0x79)],'noRename':!![]};await this[n(0x80)][n(0x76)]({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x87),'context':h,'config':c});});}catch(h){Log[m(0x72)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117A=a117d;(function(a,b){const x=a117d,c=a();while(!![]){try{const d=parseInt(x(
|
|
1
|
+
const a117A=a117d;(function(a,b){const x=a117d,c=a();while(!![]){try{const d=parseInt(x(0x117))/0x1+-parseInt(x(0x12c))/0x2+-parseInt(x(0x10e))/0x3+-parseInt(x(0xfd))/0x4+-parseInt(x(0x105))/0x5+parseInt(x(0x11a))/0x6+parseInt(x(0x10f))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xc72df));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a117d;if(c){const e=c[y(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const z=a117d;return a117a['toString']()[z(0x120)]('(((.+)+)+)+$')[z(0x114)]()[z(0x113)](a117a)[z(0x120)]('(((.+)+)+)+$');});a117a();function a117c(){const D=['i18next','749355ZJqfTB','16822694hNanjk','warn','\x20}\x20from\x20\x27./','.js','constructor','toString','rewriteDestinationPathForEngine','features.withTranslations','1266479mOKEoL','Generate\x20a\x20new\x20locale\x20translation','maka\x20g:translation\x20--lang=en\x20(default)','2521860iYkbzW','import\x20\x27../lib/services/translations/i18n\x27;\x0a','fsi','getGlobalConfig','error','maka\x20g:translation\x20--lang=fr','search','lang','exit','injectAtEndOfFile','appName','withValue','getProjectConfig','translation','readFileSync','pathFromApp','i18n/index.js','engines','2167306jTZWKY','Locale\x20already\x20defined:\x20','server','apply','index.js','injectAtBeginningOfFile','ssr','imports','index.','lib','Locale\x20already\x20exported:\x20','isFile','service','findAppDirectory','i18n.js','i18next\x20i18next-browser-languagedetector\x20react-i18next','true','installNpmPackage','3795244hRWJFd','grep','services','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','default\x20as\x20','translations','setProjectConfig','checkNpmPackage','4959715oHDMPW','maka\x20g:translation\x20--lang=de','root','locales','import\x20\x27../lib/services/translations/i18n\x27;','startup','create','template'];a117c=function(){return D;};return a117c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a117e from'fs';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0xf2;let f=c[d];return f;},a117d(a,b);}Generator[a117A(0x10b)]({'name':a117A(0x127),'usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a117A(0x121),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a117A(0x118),'description':'\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','noResource':!![],'examples':[a117A(0x119),a117A(0x11f),a117A(0x106)],'validOpts':[]},function(a,b){const B=a117A;try{const c=this[B(0x11c)][B(0x126)](),d=this[B(0x11c)][B(0x11d)](),f=this['fsi'][B(0xf8)]();this[B(0x11c)][B(0x125)](c,()=>{const C=B;try{!b[C(0x121)]&&(b[C(0x121)]='en');!b[C(0x107)]&&!this[C(0x11c)][C(0x104)](C(0x10d))&&(Log[C(0x110)](C(0x100)),this[C(0x11c)][C(0xfc)](C(0xfa),{'cwd':f}),this['fsi'][C(0x103)](C(0x116),!![]));const g=this['fsi'][C(0x129)]({'pathParts':[C(0xf2),C(0x10a),'client',C(0x130)]}),h=this[C(0x11c)][C(0x115)]({'pathParts':[g],'config':c}),i=this['fsi'][C(0xfe)](a117e[C(0x128)](h)['toString'](),C(0x109))[0x0]&&!![];if(c[C(0x12b)][C(0x132)]===C(0xfb)){!i&&this[C(0x11c)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x11b)});const t=this[C(0x11c)][C(0x129)]({'pathParts':[C(0xf2),C(0x10a),C(0x12e),'index.js']}),u=this['fsi'][C(0x115)]({'pathParts':[t],'config':c}),v=this['fsi']['grep'](a117e[C(0x128)](u)['toString'](),C(0x109))[0x0]&&!![];!v&&this['fsi'][C(0x131)]({'filePath':u,'content':C(0x11b)});}else!i&&this[C(0x11c)][C(0x131)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x124)],'config':c},k=this['fsi'][C(0x129)]({'pathParts':['imports',C(0x10a),C(0xf4),C(0xff),C(0x102),C(0xf9)]}),l=this[C(0x11c)][C(0xf6)](this[C(0x11c)][C(0x115)]({'pathParts':[k],'config':c}));!l&&this[C(0x11c)]['template']({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0xf7),'context':j,'config':c});const m=this[C(0x11c)][C(0x129)]({'pathParts':['imports','startup',C(0xf4),C(0xff),'translations',C(0x108),b['lang']+C(0x112)]}),n=this[C(0x11c)][C(0x115)]({'pathParts':[m],'config':c}),o=this[C(0x11c)]['isFile'](n);!o?this['fsi'][C(0x10c)]({'srcPath':'i18n/locales.js','destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x110)](C(0x12d)+n);const p=this[C(0x11c)][C(0x129)]({'pathParts':['imports',C(0x10a),C(0xf4),C(0xff),'translations',C(0x108),C(0xf3)+c[C(0x12b)]['js']]}),q=this[C(0x11c)][C(0x115)]({'pathParts':[p],'config':c}),r=this[C(0x11c)][C(0xf6)](q);!r&&this[C(0x11c)][C(0x10c)]({'srcPath':C(0x12a),'destPath':p,'framework':C(0xf7),'context':j,'config':c});const s=this[C(0x11c)][C(0xfe)](a117e['readFileSync'](p)[C(0x114)](),C(0x101)+b['lang'])[0x0]&&!![];!s?this['fsi'][C(0x123)]({'filePath':p,'content':'export\x20{\x20default\x20as\x20'+b['lang']+C(0x111)+b[C(0x121)]+'\x27;'}):Log[C(0x110)](C(0xf5)+p);}catch(w){Log['error'](w),process[C(0x122)](0x1);}});}catch(g){Log[B(0x11e)](g),process[B(0x122)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=parseInt(j(0x148))/0x1*(parseInt(j(0x13b))/0x2)+-parseInt(j(0x140))/0x3*(parseInt(j(0x133))/0x4)+-parseInt(j(0x143))/0x5+-parseInt(j(0x146))/0x6+parseInt(j(0x137))/0x7+-parseInt(j(0x13d))/0x8*(parseInt(j(0x13e))/0x9)+parseInt(j(0x135))/0xa*(parseInt(j(0x13a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0x41bf2));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0x149)]()['search'](l(0x145))[l(0x149)]()['constructor'](a118a)[l(0x144)](l(0x145));});a118a();import a118e from'minimist';import a118f from'os';import a118g from'path';import a118h from'humps';import a118i from'./commands/maka.cmd.js';function a118c(){const n=['847294zbzmGt','slice','floor','154utlVUU','16miIFCz','TOOL_NODE_FLAGS','53936kLDiCI','9bzIgJn','BROWSERSLIST_IGNORE_OLD_DATA','3fkRhZC','stringify','apply','2308460IpwIgo','search','(((.+)+)+)+$','2978070nWkFrQ','totalmem','50378kaFyRU','toString','1047196wlLGWd','env','694150KSlMAS','--max-old-space-size='];a118c=function(){return n;};return a118c();}import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a118g['dirname'](__filename);global['MAKA_COMMAND_PATH']=__dirname;function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x133;let f=c[d];return f;},a118d(a,b);}const total_memory=a118f[a118m(0x147)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a118m(0x139)](total_mem_in_mb),process[a118m(0x134)][a118m(0x13c)]=a118m(0x136)+total_mem_in_mb,process[a118m(0x134)][a118m(0x13f)]='1',process[a118m(0x134)]['NODE_NO_WARNINGS']='1';const argv=a118e(process['argv'][a118m(0x138)](0x2)),args=argv['_'],deepCopyArgv=JSON['parse'](JSON[a118m(0x141)](argv));delete deepCopyArgv['_'];const opts=a118h['camelizeKeys'](deepCopyArgv);a118i['run'](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119L=a119d;(function(a,b){const I=a119d,c=a();while(!![]){try{const d=-parseInt(I(
|
|
1
|
+
const a119L=a119d;(function(a,b){const I=a119d,c=a();while(!![]){try{const d=-parseInt(I(0x12c))/0x1*(-parseInt(I(0x110))/0x2)+-parseInt(I(0x11a))/0x3+-parseInt(I(0xfa))/0x4+parseInt(I(0x100))/0x5*(parseInt(I(0x121))/0x6)+-parseInt(I(0xff))/0x7*(parseInt(I(0xf6))/0x8)+parseInt(I(0x12e))/0x9*(-parseInt(I(0x107))/0xa)+parseInt(I(0x12d))/0xb*(parseInt(I(0x130))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x29d14));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a119d;if(c){const e=c[J(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const K=a119d;return a119a[K(0xfd)]()[K(0x114)](K(0x132))[K(0xfd)]()[K(0xf1)](a119a)['search'](K(0x132));});a119a();import a119e from'path';import a119f from'os';import a119g from'fs';const homeDir=a119f['homedir']();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';function a119c(){const Y=['validateParams','findProjectDirectory','744048qhGyMR','keys','parent','toString','charAt','161rcLFqS','19350HxwQxk','resourceName','apply','root','string','match','includes','740hBEGnM','indexOf','No\x20usage\x20provided.','examples','cwd','getShortName','AppData','Invalid\x20value\x20for\x20','aliases','206wgnTxi','find','length','fsi','search','NIE','push','usage','No\x20description\x20provided.','getProjectConfigs','910950CaFaKi','description','help','platform','validateMakaProject','dir','existsSync','354ymFtDo','options','config','remapShortToLong','docker','shortDesc','join','error','.meteor','Invalid\x20argument:\x20','ask','983LaBMlB','1210fLVBSH','31617ZTvCAk','name','74688hqksbH','Please\x20choose\x20a\x20value\x20for\x20','(((.+)+)+)+$','env','list','formatToNamedParam','Please\x20provide\x20a\x20resource\x20name:','_handler','win32','constructor','Please\x20provide\x20a\x20value\x20for\x20','map','validateMeteorInstall','assign','32456kbBWlv','concat'];a119c=function(){return Y;};return a119c();}import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0xeb;let f=c[d];return f;},a119d(a,b);}export class Tool{[a119L(0x125)];[a119L(0x113)];[a119L(0x122)];['name'];['parent'];[a119L(0xef)];constructor(){this['docker']=new Docker(),this['fsi']=new FSI();}[a119L(0x10c)](a){const M=a119L;return a[M(0xfe)](0x0);}['remapShortToLong'](a,b){const N=a119L,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[N(0x10c)](e[N(0x12f)]);a[f]&&(d[e[N(0x12f)]]=a[f],delete d[f]);}return d;}[a119L(0xed)](a){const O=a119L;if(a['every'](b=>typeof b===O(0x104)))return a[O(0xf3)](b=>({'name':b}));return a;}['match'](a){const P=a119L,b=[this[P(0x12f)]][P(0xf7)](this[P(0x122)]['aliases']||[]);return this['parent']&&b[P(0x116)](this[P(0xfc)]),b[P(0x106)](a);}[a119L(0x11e)](){const Q=a119L,a=this[Q(0x113)][Q(0xf9)]();return a!==![]?!![]:![];}[a119L(0xf4)](){const R=a119L;let a=a119e['join'](homeDir,R(0x129));const b=process[R(0x11d)]===R(0xf0);if(b){a=a119e[R(0x127)](homeDir,R(0x10d),'Local',R(0x129));if(!a119g['existsSync'](a))return![];}else{if(!a119g[R(0x120)](a))return![];}return!![];}async[a119L(0xf8)](a,b,c){const S=a119L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[S(0xfb)](b);if(h[S(0x106)](S(0x101))&&b[S(0x101)]===undefined&&!g){const m=await Actions[S(0x12b)](S(0xee));b[S(0x101)]=m;}let i=[],j=b;if(d){i=this[S(0xed)](d),j=this[S(0x124)](b,i);if(i&&i?.[S(0x112)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[S(0xfb)](j)[S(0x106)](o)){if(o==='env'){const r=this[S(0x113)][S(0x119)](),s=await Actions[S(0x122)]({'type':S(0xec),'name':S(0xeb),'message':'Please\x20choose\x20an\x20environment','choices':r});b[S(0xeb)]=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':S(0x131)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](S(0xf2)+o);if(v[S(0x105)](q))b[o]=v;else{Log[S(0x128)](S(0x10e)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[S(0x12b)](S(0xf2)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[S(0x106)](x)){Log[S(0x128)](S(0x10e)+o+':\x20'+x);throw new UsageError();}}}}let k=this[S(0xed)](f),l=b;if(k&&Object['keys'](k)?.['length']>0x0){k=k['concat'](i||[]),k[S(0x116)]({'name':S(0x101),'hidden':!![]}),k[S(0x116)]({'name':S(0x11c),'boolFlag':!![]}),k[S(0x116)]({'name':S(0x11f),'hidden':!![]}),k[S(0x116)]({'name':S(0x10b),'hidden':!![]}),k[S(0x116)]({'name':S(0x103),'hidden':!![]}),k[S(0x116)]({'name':S(0x123),'hidden':!![]}),l=this[S(0x124)](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[S(0x122)]({'type':S(0xec),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k[S(0x112)]>0x0)for(const E of Object[S(0xfb)](l)){const F=k[S(0x111)](G=>G['name']===E);if(!F){Log[S(0x128)]('Invalid\x20option:\x20'+E);throw new UsageError();}}}}if(e&&e?.[S(0x112)]>0x0)for(const G of e){if(!e[S(0x106)](G)){Log['error'](S(0x12a)+G);const H=await Actions[S(0x12b)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[S(0x108)](G)]=H;}}return Object[S(0xf5)](j,l);}['description'](){const T=a119L;return this['options'][T(0x11b)]||this[T(0x122)][T(0x126)]||T(0x118);}[a119L(0x126)](){const U=a119L;return this[U(0x122)][U(0x126)]||U(0x115);}[a119L(0x117)](){const V=a119L;return this[V(0x122)]['usage']||V(0x109);}[a119L(0x10a)](){const W=a119L;return this[W(0x122)][W(0x10a)]||[];}[a119L(0x10f)](){const X=a119L;return this[X(0x122)][X(0x10f)]||'None';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120h=a120d;function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x161;let f=c[d];return f;},a120d(a,b);}(function(a,b){const f=a120d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1+parseInt(f(0x174))/0x2*(parseInt(f(0x171))/0x3)+-parseInt(f(0x167))/0x4+parseInt(f(0x16c))/0x5*(-parseInt(f(0x165))/0x6)+-parseInt(f(0x173))/0x7+-parseInt(f(0x164))/0x8+-parseInt(f(0x16b))/0x9*(-parseInt(f(0x172))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0xbff81));function a120c(){const l=['4790EonEug','9056985mmyIsJ','4qdaKYC','ask','password','toString','11553368pNvxjJ','6cWCOxH','search','5668040ylxLAm','options','answer','prompt','75807yeXtDc','2473390jAltpR','(((.+)+)+)+$','input','confirm','757358rAqLWp','966066YPayuQ'];a120c=function(){return l;};return a120c();}const a120b=(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;};}()),a120a=a120b(this,function(){const g=a120d;return a120a[g(0x163)]()[g(0x166)](g(0x16d))[g(0x163)]()['constructor'](a120a)['search'](g(0x16d));});a120a();import a120e from'inquirer';export class Actions{static async[a120h(0x161)](a,b){const i=a120h,{answer:c}=await a120e['prompt']({'type':b?i(0x162):i(0x16e),'name':i(0x169),'message':a});return c;}static async[a120h(0x16f)](a,b=![]){const j=a120h,{answer:c}=await a120e[j(0x16a)]({'type':'confirm','name':'answer','message':a,'default':b});return c;}static async[a120h(0x168)](a){const k=a120h,b=await a120e[k(0x16a)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121t=a121d;(function(a,b){const p=a121d,c=a();while(!![]){try{const d=-parseInt(p(0x164))/0x1*(parseInt(p(0xfa))/0x2)+parseInt(p(0x144))/0x3+-parseInt(p(0x107))/0x4*(parseInt(p(0x13d))/0x5)+parseInt(p(0x118))/0x6*(-parseInt(p(0x155))/0x7)+parseInt(p(0x168))/0x8*(parseInt(p(0xf6))/0x9)+-parseInt(p(0x145))/0xa+-parseInt(p(0x143))/0xb*(-parseInt(p(0x14f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x1f30d));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a121d;if(c){const e=c[q(0x10e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const r=a121d;return a121a[r(0x169)]()[r(0x10c)](r(0x139))[r(0x169)]()[r(0x15b)](a121a)[r(0x10c)](r(0x139));});a121a();function a121c(){const W=['$response','AVAILABLE','(((.+)+)+)+$','env','chmod\x20400\x20','config','305295knqWfZ','subnet','\x20INSTANCE_ID:\x20','stringify','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','registerDomain','869vvdgVx','482535BtDilj','1226330mRGSjA','tag:created-by','Pem\x20key\x20saved\x20to\x20','ec2create','From\x20AWS:','find','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Port\x20','\x20PRIV_IP:\x20','GroupId','73608iWSQnM','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','No\x20instances\x20found','Instances','**\x20Available\x20\x20VPCs\x20**','CidrBlock','7XfCxJv','split','error','$metadata','instance','getConfigPath','constructor','sgId','Name','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','notice','\x20PUB_IP:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','send','push','1303nPEHVy','isFile','pem','success','8hcjjjY','toString','length','ec2rebootInstance','createKeyPairEC2Key','listHostedZonesByName','deleteKeyPair','description','ec2terminateInstance','Could\x20not\x20find\x20hosted\x20zone','tags','ask','Successfully\x20linked\x20EC2\x20instance\x20','Prices','getSecurityGroups','maka-cli','Invalid\x20choice','tcp','pop','warn','linkEC2ToRoute53','checkDomainAvailability','336888WQgkkI','\x20NAME:\x20','\x20Error\x20Rason:\x20','instanceId','312PbyjKC','createKeyPair','HostedZones','log','statusCode','ingressRule','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','ID:\x20','maxCount','Hosted\x20zone\x20created\x20successfully!','confirm','vpcId','.pem.txt','12Bpronq','RegistrationPrice','GroupName','\x20STATUS:\x20','KeyMaterial','search','Error\x20saving\x20pem\x20file,\x20aborting','apply','UPSERT','Description:','type','writeFileSync','join','exit','now','ec2describeInstances','status','276168NONeqS','Key\x20Name:\x20[','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','ssh.json','sgIds','\x20CIDR:\x20','privateIp','VpcId','forEach','\x20opened!','fsi','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','createFile','ignore','suggestion','\x27\x20has\x20been\x20registered\x20successfully.','_keys','publicIp','minCount','\x20Status\x20Code:\x20','userData','Availability','name','reason','ecrCreateRepository','terminated','KeyName','readFileSync','Instance\x20rebooted!','Error\x20fetching\x20domain\x20pricing:','deleteSecurityGroup'];a121c=function(){return W;};return a121c();}import a121e from'fs';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0xf6;let f=c[d];return f;},a121d(a,b);}import a121f 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=a121d;this[s(0x122)]=new FSI();}async[a121t(0x130)](a){const u=a121t;try{const b={'repositoryName':a[u(0x12e)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x162)](c);return d;}catch(f){Log['error'](f);}}async['route53CreateHostedZone'](a){const v=a121t;try{const b={'CallerReference':''+Date[v(0x115)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x162)](c),Log['success'](v(0x103));}catch(d){Log[v(0x157)]('Error\x20creating\x20hosted\x20zone'),console[v(0x157)](d);}}async[a121t(0x142)](a,b,c,d){const w=a121t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x162)](f),Log[w(0x15f)]('The\x20domain\x20\x27'+b+w(0x127));}catch(g){Log[w(0x157)](w(0x14b)),Log[w(0x17b)](w(0x149)),console[w(0x157)](w(0x12b)+g[w(0x137)][w(0xfe)]),console['error'](w(0xf8)+g[w(0x137)][w(0x12f)]);}}async[a121t(0x17d)](a){const x=a121t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[x(0x12d)]===x(0x138);if(e){const f=a[x(0x156)]('.')[x(0x17a)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x162)](h);if(i&&i[x(0x175)]&&i[x(0x175)][0x0]?.[x(0x108)]){const j=i[x(0x175)][0x0][x(0x108)];return{'available':e,'cost':j};}}catch(k){console[x(0x157)](x(0x135),k);}}return{'available':e};}async[a121t(0x17c)](a,b,c){const y=a121t;try{const d=await route53[y(0x16d)]({'DNSName':c});if(!d?.[y(0xfc)])throw Log[y(0x157)](y(0x171));const e=d?.[y(0xfc)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x10f),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log['notice'](y(0x174)+a+'\x20to\x20'+c);}catch(g){console[y(0x157)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a121t(0x148)](a){const z=a121t;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[z(0x111)],'KeyName':a['key'],'MaxCount':a[z(0x102)],'MinCount':a[z(0x12a)],'SecurityGroupIds':a[z(0x11c)][z(0x156)](','),'SubnetId':a[z(0x13e)],'TagSpecifications':[{'ResourceType':z(0x159),'Tags':a[z(0x172)]}]};a[z(0x12c)]&&(b['UserData']='file://'+a[z(0x12c)]);const c=new RunInstancesCommand(b),d=await client[z(0x162)](c);return d;}catch(f){Log[z(0x157)](f);}}async[a121t(0x170)](a){const A=a121t;try{const b={'InstanceIds':[a[A(0xf9)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x162)](c);return d;}catch(f){return Log[A(0x157)](f),{};}}async[a121t(0x16c)]({keyName:a,env:b}){const B=a121t,c=this['fsi'][B(0x15a)](b),d=a121f[B(0x113)](c,B(0x128),a+B(0x106));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x162)](g),i=h[B(0x10b)];if(i){await this[B(0x122)][B(0x124)]({'filePath':d,'data':i}),execSync(B(0x13b)+d,{'stdio':B(0x125)});const j=this[B(0x122)][B(0x165)](d);if(j)return Log[B(0x167)](B(0x147)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x10d));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[B(0x157)](k),process[B(0x114)](0x1);}}async[a121t(0xff)]({port:a,groupId:b}){const C=a121t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x179),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](C(0x14c)+a+C(0x121)),await client[C(0x162)](d);}async['ec2createSG'](a){const D=a121t;try{a[D(0x16f)]===''&&(a['description']=await Actions[D(0x173)](D(0x110))||'Web\x20App');const b={'Description':a[D(0x16f)],'GroupName':a[D(0x12e)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[D(0x162)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x161));f&&a['sgPorts'][D(0x120)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[D(0x167)]('Created:\x20'+f+D(0xf7)+a['name']);}catch(g){return Log[D(0x157)](g),![];}return!![];}async['ec2describeKeys'](a){const E=a121t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x162)](d);if(!f)throw E(0x161);const {KeyPairs:g}=f;g?(g?.[E(0x120)]((h,i)=>{const F=E;h[F(0x132)]&&b['push']({'id':i,'name':h[F(0x132)]});}),b[E(0x16a)]>0x0&&b[E(0x120)](h=>{const G=E;h['name']===a?.[G(0x126)]?Log[G(0x167)](G(0x101)+h['id']+G(0xf7)+h[G(0x12e)]):Log[G(0x15f)](G(0x101)+h['id']+G(0xf7)+h[G(0x12e)]);})):Log['error'](E(0x150));}catch(h){Log[E(0x157)](h);}return b;}async[a121t(0x16e)](a){const H=a121t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x162)](c);}catch(d){Log[H(0x157)](d),process[H(0x114)](0x1);}}async[a121t(0x116)](){const I=a121t,a=[];try{const b={'Filters':[{'Name':I(0x146),'Values':[I(0x177)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x162)](c);d['Reservations']?.[I(0x120)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x152)][0x0],n=m?.['find'](({Key:o})=>o==='environment');a[J(0x163)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x15d)],'name':l,'env':n?.['Value']});}}),a[I(0x16a)]>0x0?a[I(0x120)](f=>{const K=I,g=K(0x101)+f['id']+K(0xf7)+f['name']+'\x20ENV:\x20'+f[K(0x13a)]+K(0x10a)+f[K(0x117)]+K(0x13f)+f['instanceId']+K(0x160)+f[K(0x129)]+K(0x14d)+f[K(0x11e)];if(f[K(0x117)]===K(0x131))Log['error'](g);else f['status']==='running'?Log['success'](g):Log['notice'](g);}):Log[I(0x157)](I(0x15e));}catch(f){Log[I(0x157)](f);}return a;}async[a121t(0x16b)](a){const L=a121t;try{const b={'InstanceIds':[a[L(0xf9)]]},c=new RebootInstancesCommand(b),d=await client[L(0x162)](c);return d[L(0x158)]['httpStatusCode']===0xc8&&Log[L(0x167)](L(0x134)),d;}catch(f){Log[L(0x157)](f);}}async['chooseVPC'](){const M=a121t;let a='';Log[M(0x15f)](M(0x153));const b=new DescribeVpcsCommand({}),c=await client[M(0x162)](b),{Vpcs:d}=c,e=[];d&&d[M(0x120)]((g,h)=>{const N=M;g[N(0x11f)]&&g[N(0x154)]&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0x154)]});});e['forEach'](function(g){const O=M;console[O(0xfd)](O(0x101)+g['id']+'\x20VPCID:\x20'+g[O(0x105)]+O(0x11d)+g['cidr']);});const f=await Actions[M(0x173)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[M(0x120)](function(g){const P=M;g['id']==f&&(a=g['vpcId'],Log[P(0x167)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log['error'](M(0x123)),'';return a;}async['chooseInstance'](){const Q=a121t,a=await this[Q(0x116)]();if(a['length']===0x0)return Log[Q(0x157)](Q(0x151)),null;const b=await Actions[Q(0x173)](Q(0x141));!b&&(Log[Q(0x157)](Q(0x178)),process[Q(0x114)](0x0));const c=a[Q(0x14a)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a121t(0xfb)]({env:a}){const R=a121t,b=this['fsi']['getProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x173)](R(0x119)+d+']\x20')||d,{filePath:g}=await this[R(0x16c)]({'keyName':f,'env':a});try{const h=await Actions[R(0x104)](R(0x100),!![]);if(h)try{const i=a121e[R(0x133)](a121f['join']('config',a,R(0x11b)),'utf8'),j=JSON['parse'](i);j[R(0x166)]=a121f['join'](R(0x128),f+R(0x106)),a121e[R(0x112)](a121f[R(0x113)](R(0x13c),a,R(0x11b)),JSON[R(0x140)](j,null,0x2));}catch(k){Log[R(0x157)](k),Log[R(0x157)](R(0x11a));}}catch(l){Log[R(0x157)](l),process[R(0x114)](0x1);}return{'keyName':f,'filePath':g};}async[a121t(0x176)](a){const S=a121t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x162)](d),{SecurityGroups:f}=e;f&&f[S(0x120)](function(i,j){const T=S;i[T(0x109)]&&i['GroupId']&&b[T(0x163)]({'id':j,'name':i['GroupName'],'sgId':i[T(0x14e)]});});let g='',h=0x0;return b[S(0x120)](function(i){const U=S;i[U(0x12e)]===a&&(g=i[U(0x15c)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a121t(0x136)](a){const V=a121t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[V(0x157)](d),process['exit'](0x1);}}}
|
|
1
|
+
const a121s=a121d;(function(a,b){const p=a121d,c=a();while(!![]){try{const d=-parseInt(p(0x1ef))/0x1+parseInt(p(0x22b))/0x2+-parseInt(p(0x21a))/0x3+parseInt(p(0x1e6))/0x4*(parseInt(p(0x1db))/0x5)+-parseInt(p(0x237))/0x6+-parseInt(p(0x21b))/0x7+parseInt(p(0x1b9))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xca238));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a121d;if(c){const e=c[q(0x200)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const r=a121d;return a121a['toString']()[r(0x1b4)](r(0x208))[r(0x238)]()[r(0x1ee)](a121a)[r(0x1b4)]('(((.+)+)+)+$');});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a121d(a,b);}import a121e from'fs';import a121f from'path';import{execSync}from'child_process';function a121c(){const W=['tag:created-by','constructor','1321869UmmKPj','send','ec2create','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','$response','The\x20domain\x20\x27','.pem.txt','Error\x20creating\x20hosted\x20zone','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20Status\x20Code:\x20','pem','\x20PRIV_IP:\x20','Successfully\x20linked\x20EC2\x20instance\x20','Error\x20saving\x20pem\x20file,\x20aborting','utf8','status','Availability','apply','Prices','suggestion','getSecurityGroups','Web\x20App','deleteSecurityGroup','key','registerDomain','(((.+)+)+)+$','length','maxCount','subnet','publicIp','createKeyPairEC2Key','$metadata','GroupName','**\x20Available\x20\x20VPCs\x20**','listHostedZonesByName','route53CreateHostedZone','Could\x20not\x20find\x20hosted\x20zone','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','find','error','name','imageId','ask','2254584NftKkU','1947015pQGMGC','notice','statusCode','UPSERT','ec2createSG','getConfigPath','\x20CIDR:\x20','Name','Instance\x20rebooted!','No\x20instances\x20found','getProjectConfig','exit','AVAILABLE','description','config','ec2describeKeys','3161722mjXiZN','/dev/sdh','isFile','_keys','\x20NAME:\x20','createKeyPair','HostedZones','env','KeyMaterial','vpcId','RegistrationPrice','parse','1719984MFMNnv','toString','\x20ENV:\x20','\x20STATUS:\x20','ec2rebootInstance','search','UserData','Port\x20','tcp','ssh.json','12691472XjGxcc','\x20PUB_IP:\x20','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','Description:','push','sgIds','join','ec2describeInstances','ID:\x20','KeyName','Error\x20fetching\x20domain\x20pricing:','instanceId','linkEC2ToRoute53','now','checkDomainAvailability','fsi','Reservations','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Hosted\x20zone\x20created\x20successfully!','GroupId','\x27\x20has\x20been\x20registered\x20successfully.','sgId','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','Please\x20choose\x20a\x20VPC:\x20[0]\x20','CidrBlock','ec2terminateInstance','confirm','terminated','VpcId','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','0.0.0.0/0','userData','stringify','changeResourceRecordSets','1555VWNqGo','forEach','From\x20AWS:','split','Value','running','privateIp','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','sgPorts','maka-cli','log','3844BEyfQJ','httpStatusCode','readFileSync','success','warn','Error\x20linking\x20EC2\x20to\x20Route\x2053:','writeFileSync'];a121c=function(){return W;};return a121c();}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{[a121s(0x1c8)];constructor(){const t=a121s;this[t(0x1c8)]=new FSI();}async['ecrCreateRepository'](a){const u=a121s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x216)](f);}}async[a121s(0x212)](a){const v=a121s;try{const b={'CallerReference':''+Date[v(0x1c6)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log['success'](v(0x1cb));}catch(d){Log[v(0x216)](v(0x1f6)),console[v(0x216)](d);}}async[a121s(0x207)](a,b,c,d){const w=a121s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x1f0)](f),Log[w(0x21c)](w(0x1f4)+b+w(0x1cd));}catch(g){Log[w(0x216)](w(0x1f2)),Log[w(0x1ea)](w(0x1dd)),console[w(0x216)](w(0x1f8)+g[w(0x1f3)][w(0x21d)]),console[w(0x216)]('\x20Error\x20Rason:\x20'+g['$response']['reason']);}}async[a121s(0x1c7)](a){const x=a121s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[x(0x1ff)]===x(0x227);if(e){const f=a[x(0x1de)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0x201)]&&i[x(0x201)][0x0]?.[x(0x235)]){const j=i[x(0x201)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[x(0x216)](x(0x1c3),k);}}return{'available':e};}async[a121s(0x1c5)](a,b,c){const y=a121s;try{const d=await route53[y(0x211)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[y(0x216)](y(0x213));const e=d?.[y(0x231)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x21e),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x1da)](f),Log['notice'](y(0x1fb)+a+'\x20to\x20'+c);}catch(g){console['error'](y(0x1eb),g);}}async[a121s(0x1f1)](a){const z=a121s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x22c),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x218)],'InstanceType':a['type'],'KeyName':a[z(0x206)],'MaxCount':a[z(0x20a)],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x1be)]['split'](','),'SubnetId':a[z(0x20b)],'TagSpecifications':[{'ResourceType':'instance','Tags':a['tags']}]};a[z(0x1d8)]&&(b[z(0x1b5)]='file://'+a[z(0x1d8)]);const c=new RunInstancesCommand(b),d=await client[z(0x1f0)](c);return d;}catch(f){Log[z(0x216)](f);}}async[a121s(0x1d2)](a){const A=a121s;try{const b={'InstanceIds':[a[A(0x1c4)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x1f0)](c);return d;}catch(f){return Log['error'](f),{};}}async[a121s(0x20d)]({keyName:a,env:b}){const B=a121s,c=this[B(0x1c8)][B(0x220)](b),d=a121f[B(0x1bf)](c,B(0x22e),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x1f0)](g),i=h[B(0x233)];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this['fsi'][B(0x22d)](d);if(j)return Log[B(0x1e9)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(B(0x1fc));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process['exit'](0x1);}}async['ingressRule']({port:a,groupId:b}){const C=a121s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x1b7),'IpRanges':[{'CidrIp':C(0x1d7),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x21c)](C(0x1b6)+a+'\x20opened!'),await client['send'](d);}async[a121s(0x21f)](a){const D=a121s;try{a['description']===''&&(a['description']=await Actions[D(0x219)](D(0x1bc))||D(0x204));const b={'Description':a[D(0x228)],'GroupName':a['name'],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[D(0x1f0)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x1d6));f&&a[D(0x1e3)][D(0x1dc)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success']('Created:\x20'+f+D(0x22f)+a[D(0x217)]);}catch(g){return Log[D(0x216)](g),![];}return!![];}async[a121s(0x22a)](a){const E=a121s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x1f0)](d);if(!f)throw E(0x1d6);const {KeyPairs:g}=f;g?(g?.[E(0x1dc)]((h,i)=>{const F=E;h[F(0x1c2)]&&b[F(0x1bd)]({'id':i,'name':h[F(0x1c2)]});}),b['length']>0x0&&b[E(0x1dc)](h=>{const G=E;h[G(0x217)]===a?.[G(0x202)]?Log[G(0x1e9)](G(0x1c1)+h['id']+G(0x22f)+h[G(0x217)]):Log[G(0x21c)](G(0x1c1)+h['id']+G(0x22f)+h[G(0x217)]);})):Log[E(0x216)](E(0x1bb));}catch(h){Log[E(0x216)](h);}return b;}async['deleteKeyPair'](a){const H=a121s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x1f0)](c);}catch(d){Log[H(0x216)](d),process['exit'](0x1);}}async[a121s(0x1c0)](){const I=a121s,a=[];try{const b={'Filters':[{'Name':I(0x1ed),'Values':[I(0x1e4)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x1f0)](c);d[I(0x1c9)]?.[I(0x1dc)]((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[J(0x215)](({Key:o})=>o==='environment');a[J(0x1bd)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x222)],'name':l,'env':n?.[J(0x1df)]});}}),a[I(0x209)]>0x0?a[I(0x1dc)](f=>{const K=I,g=K(0x1c1)+f['id']+K(0x22f)+f[K(0x217)]+K(0x239)+f[K(0x232)]+K(0x1b2)+f[K(0x1fe)]+'\x20INSTANCE_ID:\x20'+f[K(0x1c4)]+K(0x1ba)+f[K(0x20c)]+K(0x1fa)+f[K(0x1e1)];if(f[K(0x1fe)]===K(0x1d4))Log[K(0x216)](g);else f[K(0x1fe)]===K(0x1e0)?Log[K(0x1e9)](g):Log[K(0x21c)](g);}):Log['error'](I(0x214));}catch(f){Log[I(0x216)](f);}return a;}async[a121s(0x1b3)](a){const L=a121s;try{const b={'InstanceIds':[a[L(0x1c4)]]},c=new RebootInstancesCommand(b),d=await client[L(0x1f0)](c);return d[L(0x20e)][L(0x1e7)]===0xc8&&Log[L(0x1e9)](L(0x223)),d;}catch(f){Log[L(0x216)](f);}}async['chooseVPC'](){const M=a121s;let a='';Log['notice'](M(0x210));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x1dc)]((g,h)=>{const N=M;g[N(0x1d5)]&&g[N(0x1d1)]&&e[N(0x1bd)]({'id':h,'vpcId':g[N(0x1d5)],'cidr':g[N(0x1d1)]});});e[M(0x1dc)](function(g){const O=M;console[O(0x1e5)](O(0x1c1)+g['id']+'\x20VPCID:\x20'+g[O(0x234)]+O(0x221)+g['cidr']);});const f=await Actions[M(0x219)](M(0x1d0))||0x0;e[M(0x1dc)](function(g){const P=M;g['id']==f&&(a=g[P(0x234)],Log[P(0x1e9)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log['error'](M(0x1f7)),'';return a;}async['chooseInstance'](){const Q=a121s,a=await this[Q(0x1c0)]();if(a[Q(0x209)]===0x0)return Log[Q(0x216)](Q(0x224)),null;const b=await Actions[Q(0x219)](Q(0x1ca));!b&&(Log[Q(0x216)]('Invalid\x20choice'),process['exit'](0x0));const c=a[Q(0x215)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a121s(0x230)]({env:a}){const R=a121s,b=this[R(0x1c8)][R(0x225)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x219)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0x20d)]({'keyName':f,'env':a});try{const h=await Actions[R(0x1d3)](R(0x1e2),!![]);if(h)try{const i=a121e[R(0x1e8)](a121f['join'](R(0x229),a,R(0x1b8)),R(0x1fd)),j=JSON[R(0x236)](i);j[R(0x1f9)]=a121f[R(0x1bf)](R(0x22e),f+R(0x1f5)),a121e[R(0x1ec)](a121f[R(0x1bf)](R(0x229),a,R(0x1b8)),JSON[R(0x1d9)](j,null,0x2));}catch(k){Log[R(0x216)](k),Log[R(0x216)](R(0x1cf));}}catch(l){Log[R(0x216)](l),process[R(0x226)](0x1);}return{'keyName':f,'filePath':g};}async[a121s(0x203)](a){const S=a121s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x1f0)](d),{SecurityGroups:f}=e;f&&f[S(0x1dc)](function(i,j){const T=S;i[T(0x20f)]&&i['GroupId']&&b[T(0x1bd)]({'id':j,'name':i[T(0x20f)],'sgId':i[T(0x1cc)]});});let g='',h=0x0;return b[S(0x1dc)](function(i){const U=S;i[U(0x217)]===a&&(g=i[U(0x1ce)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a121s(0x205)](a){const V=a121s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x1f0)](c);}catch(d){Log['error'](d),process[V(0x226)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var k=a122d,c=a();while(!![]){try{var d=parseInt(k(0xc4))/0x1*(-parseInt(k(0xd3))/0x2)+parseInt(k(0xd0))/0x3*(parseInt(k(0xc5))/0x4)+parseInt(k(0xce))/0x5+parseInt(k(0xc9))/0x6+-parseInt(k(0xc8))/0x7+-parseInt(k(0xcb))/0x8*(-parseInt(k(0xcc))/0x9)+-parseInt(k(0xc6))/0xa*(parseInt(k(0xd1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xb8025));function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0xc4;var f=c[d];return f;},a122d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a122d;if(h){var j=h[l(0xca)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a122d;return e[m(0xd2)]()[m(0xc7)](m(0xcf))[m(0xd2)]()[m(0xcd)](e)[m(0xc7)](m(0xcf));});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={})));function a122c(){var n=['885024zPaJpu','apply','3954296vBBBzL','27ZzJxsP','constructor','1969015GeUFii','(((.+)+)+)+$','27OnqyjP','5291vxJgXj','toString','1135482RKNJEP','1mzkZoa','617884EdgqtZ','21110AzVwWa','search','7543018WIufBr'];a122c=function(){return n;};return a122c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123m=a123d;
|
|
1
|
+
const a123m=a123d;(function(a,b){const j=a123d,c=a();while(!![]){try{const d=parseInt(j(0xbe))/0x1+parseInt(j(0xbc))/0x2*(parseInt(j(0xa7))/0x3)+parseInt(j(0xb1))/0x4*(-parseInt(j(0xbb))/0x5)+-parseInt(j(0xbf))/0x6+parseInt(j(0xb6))/0x7*(-parseInt(j(0xaf))/0x8)+-parseInt(j(0xb9))/0x9*(parseInt(j(0xa8))/0xa)+parseInt(j(0xad))/0xb*(parseInt(j(0xb2))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x650fa));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a123d;if(c){const e=c[k(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const l=a123d;return a123a['toString']()['search'](l(0xb7))[l(0xc1)]()[l(0xaa)](a123a)['search'](l(0xb7));});a123a();import{execSync}from'child_process';function a123c(){const q=['inherit','45VisKwK','114rgWGET','--username','498056WmKIyE','3096168CpFZlT','tag','toString','3372PmjBeA','310teQWJq','docker\x20','constructor','.amazonaws.com/','.amazonaws.com','4704656dKWvKj','awsLogin','16XqxRXF','pushImage','295468RZZRQI','48BYBcwD','.dkr.ecr.','join','apply','2093854isilni','(((.+)+)+)+$','push','23193hibXqW'];a123c=function(){return q;};return a123c();}function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0xa7;let f=c[d];return f;},a123d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a123m(0xc0)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a123m;try{const f=[n(0xc0),a,b+'.dkr.ecr.'+c+n(0xab)+d],g=n(0xa9)+f[n(0xb4)]('\x20'),h=execSync(g,{'stdio':'inherit'})[n(0xc1)]();return h;}catch(i){return Log['error'](i),'';}}static[a123m(0xae)]({awsAccountId:a,region:b}){const o=a123m;try{const c=['login',o(0xbd),'AWS','--password-stdin',a+o(0xb3)+b+o(0xac)],d=o(0xa9)+c[o(0xb4)]('\x20'),f=execSync(d,{'stdio':o(0xba)})[o(0xc1)]();return f;}catch(g){return Log['error'](g),'';}}static[a123m(0xb0)]({awsAccountId:a,region:b,repoName:c}){const p=a123m;try{const d=[p(0xb8),a+p(0xb3)+b+'.amazonaws.com/'+c],f=p(0xa9)+d[p(0xb4)]('\x20'),g=execSync(f,{'stdio':p(0xba)})[p(0xc1)]();return g;}catch(h){return Log['error'](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a124c(){var
|
|
1
|
+
function a124d(a,b){var c=a124c();return a124d=function(d,e){d=d-0x1bf;var f=c[d];return f;},a124d(a,b);}function a124c(){var i=['86496PPsVhH','(((.+)+)+)+$','search','62lHGGrX','109722tinanK','3619OENauc','11240192sHoflO','toString','12398022Ozmooc','1142166oOkHVa','constructor','56508920bYvUIx','apply','60ygAswq','1584EZbAQF'];a124c=function(){return i;};return a124c();}(function(a,b){var f=a124d,c=a();while(!![]){try{var d=-parseInt(f(0x1c3))/0x1+-parseInt(f(0x1cc))/0x2*(parseInt(f(0x1cd))/0x3)+-parseInt(f(0x1c9))/0x4*(-parseInt(f(0x1c7))/0x5)+-parseInt(f(0x1c8))/0x6*(parseInt(f(0x1bf))/0x7)+-parseInt(f(0x1c0))/0x8+-parseInt(f(0x1c2))/0x9+parseInt(f(0x1c5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xaea56));var a124b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a124d;if(c){var e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){var h=a124d;return a124a[h(0x1c1)]()[h(0x1cb)]('(((.+)+)+)+$')[h(0x1c1)]()[h(0x1c4)](a124a)[h(0x1cb)](h(0x1ca));});a124a();export{};
|