@maka/maka-cli 4.7.9 → 4.7.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +20 -0
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=-parseInt(j(0xda))/0x1+parseInt(j(0xf0))/0x2+parseInt(j(0xe7))/0x3*(parseInt(j(0xfc))/0x4)+-parseInt(j(0xd9))/0x5+-parseInt(j(0x107))/0x6+-parseInt(j(0xf2))/0x7*(-parseInt(j(0xee))/0x8)+parseInt(j(0xe9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0xe4708));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0xdc)]()['search']('(((.+)+)+)+$')[l(0xdc)]()['constructor'](a118a)[l(0x102)]('(((.+)+)+)+$');});a118a();import a118e from'path';import{Generator}from'../generator.js';function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0xcc;let f=c[d];return f;},a118d(a,b);}import{Log}from'../tools/log/log.class.js';function a118c(){const p=['10216974ngBUFd','pathFromApp','css','true','api','layouts','vanilla','setTemplate','string','components','page','Updating\x20npm\x20packages\x20...','.app-tests.js','dir','relative','fsi','engines','hook/hook.js','component','injectAtBeginningOfFile','2859345kZsBBN','63082kPFCUY','features','toString','ramda','assign','route','theme','fileName','baseDir','getMakaProjectConfig','component/component.js','.css','root','5844fmaSvD','ssr','5365998iZBBwz','\x27;\x0a','hasOwnProperty','template','test/test.js','8HQjawS','layout','1145888HUJaBb','warn','6166706ebZRvR','.html','none','html','template/template.html','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','store','.js','pages','apply','2512QsGoDn','import\x20\x27./','react','template/template.css','resourceName','create','search','test','client','className','checkNpmPackage'];a118c=function(){return p;};return a118c();}import a118f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a118m(0x101)]({'name':a118m(0xcf),'aliases':aliases,'usage':a118m(0xf7),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':'baseDir','values':['hooks',a118m(0xce),a118m(0xfa),a118m(0x10c)]},{'name':'withHook','boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const n=a118m,c=b[n(0xe2)]?'/imports/ui/'+b[n(0xe2)]:'/imports/ui/pages',d=this[n(0xd4)][n(0x108)](b),e=this[n(0xd4)][n(0x108)]({'pathParts':[c,b[n(0xd2)],paramCase(b['resourceName']),paramCase(b[n(0x100)])]}),f=this[n(0xd4)][n(0xe3)]();let g='';return await this[n(0xd4)]['withValue'](f,async()=>{const o=n;typeof f['template'][o(0xf5)]===o(0xcd)&&(f[o(0xec)][o(0xf5)]=f[o(0xec)][o(0xf5)]===o(0x10a)?!![]:![],this['fsi'][o(0xcc)](o(0xf5),f[o(0xec)]['html']));typeof f[o(0xec)][o(0x103)]==='string'&&(f[o(0xec)]['test']=f[o(0xec)]['test']===o(0x10a)?!![]:![],this['fsi']['setTemplate'](o(0x103),f[o(0xec)]['test']));typeof f[o(0xec)][o(0x109)]==='string'&&(f[o(0xec)][o(0x109)]=f[o(0xec)]['css']===o(0x10a)?!![]:![],this[o(0xd4)][o(0xcc)](o(0x109),f[o(0xec)][o(0x109)]));typeof f[o(0xec)]['js']==='string'&&(f[o(0xec)]['js']=f[o(0xec)]['js']===o(0x10a)?!![]:![],this[o(0xd4)][o(0xcc)]('js',f[o(0xec)]['js']));!f[o(0xdb)]&&(f[o(0xdb)]={});!b[o(0xe6)]&&!this[o(0xd4)][o(0x106)](o(0xdd))&&(Log[o(0xf1)](o(0xd0)),this[o(0xd4)]['installNpmPackage'](o(0xdd),{'cwd':d}));const h={'name':pascalCase(b['resourceName']),'myPath':a118e[o(0xd3)](this[o(0xd4)]['pathFromProject']({}),e),'cssCaseName':paramCase(b[o(0x100)]),'className':pascalCase(b[o(0x100)]),'camelCaseName':camelCase(b[o(0x100)]),'fileName':paramCase(b[o(0x100)]),'graphql':f['engines']['graphql'],'features':f['features'],'client':f[o(0xd5)][o(0x104)],'api':f['engines'][o(0x10b)],'ssr':f[o(0xd5)][o(0xe8)],'isStore':b[o(0xeb)](o(0xf8)),'isComponent':b[o(0xeb)](o(0xd7)),'isLayout':b[o(0xeb)](o(0xef)),'withTranslations':f['features']['withTranslations'],'test':f[o(0xd5)][o(0x103)],'theme':f['engines'][o(0xe0)]};f[o(0xec)][o(0xf5)]&&await this[o(0xd4)][o(0xec)]({'srcPath':o(0xf6),'destPath':e+o(0xf3),'context':h,'config':f});f['features']?.['withHooks']||b['withHook']?await this[o(0xd4)]['template']({'srcPath':o(0xd6),'destPath':e+o(0xf9),'framework':o(0xfe),'context':h,'config':f}):await this[o(0xd4)][o(0xec)]({'srcPath':o(0xe4),'destPath':e+o(0xf9),'framework':o(0xfe),'context':h,'config':f});f[o(0xd5)]['test']!==o(0xf4)&&await this['fsi'][o(0xec)]({'srcPath':o(0xed),'destPath':e+o(0xd1),'framework':o(0xfe),'context':h,'config':f});f['template'][o(0x109)]&&await this[o(0xd4)][o(0xec)]({'srcPath':o(0xff),'destPath':e+o(0xe5),'context':Object[o(0xde)]({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[o(0xd5)][o(0x104)]!==o(0xfe)&&f['engines'][o(0x104)]!==o(0x10d)?(f['template'][o(0x109)]&&await this[o(0xd4)][o(0xd8)]({'filePath':e+'.'+f['engines']['js'],'content':o(0xfd)+h[o(0xe1)]+'.'+f['engines'][o(0xf5)]+o(0xea)+o(0xfd)+h[o(0xe1)]+'.'+f[o(0xd5)][o(0x109)]+'\x27;'}),!f[o(0xec)]['css']&&await this[o(0xd4)][o(0xd8)]({'filePath':e+'.'+f[o(0xd5)]['js'],'content':o(0xfd)+h[o(0xe1)]+'.'+f[o(0xd5)][o(0xf5)]+'\x27;'})):f['template'][o(0x109)]&&await this[o(0xd4)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0xd5)]['js'],'content':o(0xfd)+h['fileName']+'.'+f[o(0xd5)][o(0x109)]+'\x27;'});const i=b[o(0xd2)]?'/'+b[o(0xd2)]+'/':'/';g=''+c+i+h[o(0xe1)]+'/'+h[o(0xe1)],await this[o(0xd4)]['injectTemplateModule'](h[o(0x105)],f,g),!b['root']&&await a118f['processAndRunGenerator'](o(0xdf),[i+h[o(0x105)]],b);}),g+'.'+f[n(0xd5)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(0xc1))/0x1+-parseInt(h(0xbe))/0x2+-parseInt(h(0xbc))/0x3+parseInt(h(0xb6))/0x4+parseInt(h(0xc4))/0x5*(parseInt(h(0xb1))/0x6)+-parseInt(h(0xbf))/0x7*(parseInt(h(0xc6))/0x8)+-parseInt(h(0xae))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x43bd6));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a119d;if(c){const e=c[i(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const j=a119d;return a119a[j(0xb7)]()['search'](j(0xc8))['toString']()[j(0xbb)](a119a)['search']('(((.+)+)+)+$');});function a119c(){const n=['injectAtEndOfFile','1071932vqIMix','49mplPPG','resourceName','349169xoZYlu','server/publish.','getMakaProjectConfig','20lZfmRh','create','308648FzZpKz','templateContent','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','395865kZUEpr','apply','maka\x20g:publish\x20todos','814962RjqZBH','fsi','publish/publish.','engines','withValue','1639104cgPYjE','toString','tsx','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','publish','constructor','524319glhGnJ'];a119c=function(){return n;};return a119c();}a119a();import{paramCase}from'change-case';import{Generator}from'../generator.js';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0xae;let f=c[d];return f;},a119d(a,b);}Generator[a119k(0xc5)]({'name':a119k(0xba),'aliases':['p'],'usage':a119k(0xb9),'shortDesc':a119k(0xc9),'validOpts':[],'examples':[a119k(0xb0)]},async function(a,b){const l=a119k,c=this[l(0xb2)][l(0xc3)]();await this[l(0xb2)][l(0xb5)](c,async()=>{const m=l,d={'name':b[m(0xc0)],'collection':paramCase(b[m(0xc0)]),'noRename':!![]};let e='js';c[m(0xb4)]['js']===m(0xb8)&&(e='ts');const f=this[m(0xb2)]['rewriteDestinationPathForEngine']({'pathParts':[m(0xc2)+c['engines']['js']]}),g=this[m(0xb2)][m(0xc7)]({'srcPath':m(0xb3)+e,'context':d,'config':c});await this[m(0xb2)][m(0xbd)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a120A=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(0xd2))/0x1*(parseInt(y(0xf2))/0x2)+parseInt(y(0xf0))/0x3+parseInt(y(0xc9))/0x4+parseInt(y(0xbe))/0x5+parseInt(y(0xef))/0x6+parseInt(y(0xe9))/0x7*(-parseInt(y(0x101))/0x8)+-parseInt(y(0xf8))/0x9*(parseInt(y(0xee))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x2863f));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 z=a120d;return a120a[z(0xe0)]()[z(0xf5)](z(0xd7))[z(0xe0)]()[z(0xc1)](a120a)[z(0xf5)]('(((.+)+)+)+$');});a120a();function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0xb3;let f=c[d];return f;},a120d(a,b);}import a120e from'path';function a120c(){const I=['indexOf','injectAtEndOfFile','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','resourceName','client','MasterLayout','32jFNujh','hooks','pathFromProject','url','\x20to\x20','react','Invalid\x20directory\x20option\x20\x22','\x22*\x22','maka\x20g:route\x20todosEdit\x20todos/:id/edit','cwd','templateContent','ssr','components','const\x20privateRoutes\x20=\x20(<>','1403325NRKZjb','routes.js','injectAfterLineNumber','constructor','<Router','const\x20publicRoutes\x20=\x20(<>','only','/imports/ui/','map','baseDir','layout','164292pGjNny','maka\x20g:route\x20pages/lists/listIndex\x20lists','\x0a\x09\x09','rewriteDestinationPathForEngine','templateName','fsi','info','length','includes','239OYLAmO','layouts','Valid\x20options\x20are:\x20','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','\x20already\x20exists.\x20\x20Skipping.','(((.+)+)+)+$','/imports/ui/pages','</Router>','Route\x20','route','warn','fileContainsString','Scaffolding\x20for\x20a\x20Route.','root','toString','withHook','true','engines','startup','<Route','join','private','toLowerCase','464086QVejid','error','imports','readFileLines','route/route.js','100YgKLbn','915168zwLhvY','813627GKWDeE','pathFromApp','1692uWkMZv','withValue','create','search','dir','maka\x20g:route\x20pages/about','101385vRXQVN','filter','PrivateLayout'];a120c=function(){return I;};return a120c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a120A(0xf4)]({'name':a120A(0xdb),'aliases':aliases,'validOpts':[a120A(0xe7),a120A(0xc8),a120A(0xc4),a120A(0xb9),'config',a120A(0xdf),a120A(0xe1),a120A(0xb3),a120A(0xc7)],'usage':a120A(0xd5),'shortDesc':a120A(0xde),'examples':['maka\x20g:route\x20todosIndex\x20todos',a120A(0xb8),a120A(0xfd),a120A(0xca),a120A(0xf7)]},async function(a,b){const B=a120A;try{const c=[B(0x102),B(0xbc),'pages',B(0xd3)];if(b[B(0xc7)]&&!c[B(0xd1)](b[B(0xc7)])){Log[B(0xea)](B(0xb6)+b[B(0xc7)]+'\x22'),Log['error'](B(0xd4)+c[B(0xe6)](',\x20'));throw new UsageError();}const d=this[B(0xce)]['getMakaProjectConfig']();await this['fsi'][B(0xf3)](d,async()=>{const C=B,f=b[C(0xe7)]??![];let g=paramCase(b[C(0xfe)]),h='/'+g;a[C(0xd0)]>0x1&&(h='/'+a[C(0xf9)](function(n){return n!=='/';})['join']('/')[C(0xe8)]());g=camelCase(g);b['layout']&&(b[C(0xc8)]=camelCase(b[C(0xc8)]));const i=b[C(0xc7)]?C(0xc5)+b[C(0xc7)]:C(0xd8),j=a120e['join'](i,b[C(0xf6)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0xc8)]||C(0x100),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0xe3)][C(0xff)],'newForm':![],'withTranslations':d['features']['withTranslations']};f&&(k[C(0xc8)]=C(0xfa));let l,m;if(d[C(0xe3)]['client']===C(0xb5)){if(d[C(0xe3)][C(0xbb)]===C(0xe2)){const r=this[C(0xce)][C(0xf1)]({'pathParts':[C(0xeb),'startup','lib',C(0xbf)]});l=this[C(0xce)][C(0xcc)]({'pathParts':[r],'config':d});}else{const s=this[C(0xce)]['pathFromApp']({'pathParts':[C(0xeb),C(0xe4),C(0xff),C(0xbf)]});l=this[C(0xce)][C(0xcc)]({'pathParts':[s],'config':d});}const n=await this['fsi'][C(0xdd)](l,g);if(n){Log[C(0xdc)](C(0xda)+g+C(0xd6));return;}else{const t=this[C(0xce)][C(0x103)](l);Log[C(0xcf)]('Adding\x20route\x20'+g+C(0xb4)+l['replace'](t,''));}const o=this[C(0xce)][C(0xec)](l)[C(0xc6)]((u,v)=>{const D=C;return u[D(0xd1)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})['filter'](u=>u!==null);let p=this[C(0xce)][C(0xec)](l)[C(0xc6)]((u,v)=>{return u['includes']('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[C(0xf9)](u=>u!==null),q=this[C(0xce)][C(0xec)](l)[C(0xc6)]((u,v)=>{const E=C;return u[E(0xd1)](E(0xbd))?v+0x1:null;})[C(0xf9)](u=>u!==null);p[C(0xd0)]>0x0&&q[C(0xd0)]>0x0&&(k['newForm']=!![]);m=this[C(0xce)][C(0xba)]({'srcPath':C(0xed),'framework':C(0xb5),'context':k,'config':d});if(p[C(0xd0)]>0x0||q[C(0xd0)]>0x0){this[C(0xce)][C(0xc0)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[C(0xce)]['readFileLines'](l)[C(0xc6)]((u,v)=>{const F=C;return u[F(0xd1)](F(0xbd))?v+0x1:null;})[C(0xf9)](u=>u!==null),this['fsi'][C(0xc0)]({'filePath':l,'content':'\x09{'+k[C(0xcd)]+'}','lineNumber':q[0x0]});else p[C(0xd0)]>0x0?(p=this['fsi'][C(0xec)](l)[C(0xc6)]((u,v)=>{const G=C;return u[G(0xd1)](G(0xc3))?v+0x1:null;})[C(0xf9)](u=>u!==null),this[C(0xce)][C(0xc0)]({'filePath':l,'content':'\x09{'+k[C(0xcd)]+'}','lineNumber':p[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this[C(0xce)]['readFileLines'](l)[C(0xc6)](x=>{const H=C;return x[H(0xd1)](H(0xb7));}),v=u[C(0xfb)](!![])>-0x1,w=v?C(0xe5):C(0xd9);await this['fsi']['injectIntoFile']({'filePath':l,'content':C(0xcb)+m+'\x0a\x09\x09','begin':C(0xc2),'end':w});}}else{if(d['engines'][C(0xff)]==='vanilla'){const x=this[C(0xce)][C(0xf1)]({'pathParts':[C(0xeb),C(0xe4),C(0xff),'routes.js']});l=this[C(0xce)][C(0xcc)]({'pathParts':[x],'config':d}),m=this[C(0xce)][C(0xba)]({'srcPath':C(0xed),'context':k}),await this[C(0xce)][C(0xfc)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0xea)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=parseInt(j(0xba))/0x1*(-parseInt(j(0xac))/0x2)+parseInt(j(0xc0))/0x3*(-parseInt(j(0xa5))/0x4)+parseInt(j(0xc4))/0x5+-parseInt(j(0xb7))/0x6*(-parseInt(j(0xa0))/0x7)+parseInt(j(0xb8))/0x8+-parseInt(j(0xa8))/0x9*(parseInt(j(0xaf))/0xa)+parseInt(j(0xbf))/0xb*(parseInt(j(0xb3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x94b99));function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x9d;let f=c[d];return f;},a121d(a,b);}const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a['toString']()[l(0xaa)]('(((.+)+)+)+$')[l(0xb5)]()[l(0xc1)](a121a)['search'](l(0xbc));});function a121c(){const p=['3148641zLZntD','service','search','getMakaProjectConfig','22786PJkQzY','create','services','10tNzSIX','startup','logger','resourceName','10108956aCiuyu','engines','toString','svc','18cCSnry','3925848FeBbRe','fsi','75Glxrix','error','(((.+)+)+)+$','service/logger/logger.js','installNpmPackage','11uUhBVi','1269zBpBAw','constructor','imports','lib','3371415bjGUUs','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','template','maka\x20g:svc\x20service-logger\x20--type=logger','Installing\x20winston','maka\x20{generate,\x20g}:{service}\x20<resource-name>','2223263YCulbi','tsx','pathFromApp','checkNpmPackage','apply','10844llzXLw','withValue','winston'];a121c=function(){return p;};return a121c();}a121a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a121m(0xad)]({'name':a121m(0xa9),'aliases':[a121m(0xb6)],'usage':a121m(0x9f),'shortDesc':a121m(0xc5),'requiredOpts':[{'name':'type','values':[a121m(0xb1)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121m(0x9d)]},async function(a,b){const n=a121m;try{const c=this[n(0xb9)][n(0xab)]();await this[n(0xb9)][n(0xa6)](c,async()=>{const o=n,d=this['fsi'][o(0xa2)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0xb2)]),'type':b['type'],'engine':c[o(0xb4)]['js'],'noRename':!![]};let h='js';c[o(0xb4)]['js']===o(0xa1)&&(h='ts');if(b['type']===o(0xb1)){!this['fsi'][o(0xa3)](o(0xa7))&&await this[o(0xb9)][o(0xbe)]('winston\x20setimmediate',{'cwd':d,'msg':o(0x9e)});const i=this[o(0xb9)]['pathFromApp']({'pathParts':[o(0xc2),o(0xb0),o(0xc3),o(0xae),f+'.'+h]});await this[o(0xb9)][o(0xc6)]({'srcPath':o(0xbd),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xbb)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a122d,c=a();while(!![]){try{var d
|
|
1
|
+
function a122c(){var i=['25VpIujW','6531456LsulBn','apply','toString','36009170Kowzwp','constructor','3992265QHjCvq','15ACcfaT','41290AHHFVp','957698ArPPdc','search','864582KtkgED','8bkQDLw','572382LKszvh'];a122c=function(){return i;};return a122c();}function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x1bc;var f=c[d];return f;},a122d(a,b);}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0x1c0))/0x1*(-parseInt(f(0x1c1))/0x2)+-parseInt(f(0x1c6))/0x3*(parseInt(f(0x1c5))/0x4)+-parseInt(f(0x1c7))/0x5*(parseInt(f(0x1c4))/0x6)+-parseInt(f(0x1c2))/0x7+-parseInt(f(0x1c8))/0x8+-parseInt(f(0x1bf))/0x9+parseInt(f(0x1bd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0xc1712));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a122d;if(c){var e=c[g(0x1c9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var h=a122d;return a122a[h(0x1bc)]()[h(0x1c3)]('(((.+)+)+)+$')[h(0x1bc)]()[h(0x1be)](a122a)[h(0x1c3)]('(((.+)+)+)+$');});a122a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=parseInt(i(
|
|
1
|
+
function a123c(){const o=['(((.+)+)+)+$','2896PPbpAk','apply','search','284BFABXH','_keys','Generate\x20a\x20new\x20openssl\x20config\x20file','env','maka\x20{generate,\x20g}:sslconfig','1340640CvRYRg','toString','6054ehwAKQ','1123030jsORLY','create','getMakaProjectConfig','1066896yRReRD','4248dqSkFm','openssl/openssl.conf','maka\x20g:sslconfig\x20--env\x20dev','service','join','22812fXTMrg','5999aqNHwE','8emfxEw','fsi','getGlobalConfig','withValue','50633fRnrCJ','getAppConfigPath','sslconfig','45MAuEgs'];a123c=function(){return o;};return a123c();}const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=parseInt(i(0xba))/0x1*(-parseInt(i(0xae))/0x2)+-parseInt(i(0xb8))/0x3*(parseInt(i(0xc6))/0x4)+parseInt(i(0xcb))/0x5+-parseInt(i(0xb2))/0x6+-parseInt(i(0xb9))/0x7*(parseInt(i(0xc3))/0x8)+parseInt(i(0xc1))/0x9*(-parseInt(i(0xaf))/0xa)+parseInt(i(0xbe))/0xb*(parseInt(i(0xb3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x45515));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a[k(0xcc)]()[k(0xc5)](k(0xc2))[k(0xcc)]()['constructor'](a123a)[k(0xc5)](k(0xc2));});a123a();import{Generator}from'../../generator.js';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0xae;let f=c[d];return f;},a123d(a,b);}import{Log}from'../../tools/log/log.class.js';import a123e from'path';Generator[a123l(0xb0)]({'name':a123l(0xc0),'usage':a123l(0xca),'shortDesc':a123l(0xc8),'noNeedResource':!![],'requiredOpts':[a123l(0xc9)],'examples':[a123l(0xb5)],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this['fsi'][m(0xb1)](),d=await this[m(0xbb)][m(0xbc)](),f=this[m(0xbb)][m(0xbf)](b[m(0xc9)]),g=a123e[m(0xb7)](f,m(0xc7),'openssl.conf');await this[m(0xbb)][m(0xbd)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi']['template']({'srcPath':n(0xb4),'destPath':g,'framework':n(0xb6),'context':h,'config':c});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a124A=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=-parseInt(x(0x16b))/0x1+-parseInt(x(0x173))/0x2+parseInt(x(0x176))/0x3*(-parseInt(x(0x193))/0x4)+-parseInt(x(0x185))/0x5+parseInt(x(0x18e))/0x6+-parseInt(x(0x16d))/0x7*(parseInt(x(0x186))/0x8)+parseInt(x(0x197))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0xe5c49));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a124d;if(c){const e=c[y(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const z=a124d;return a124a[z(0x168)]()['search'](z(0x175))[z(0x168)]()[z(0x191)](a124a)[z(0x17c)](z(0x175));});a124a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x159;let f=c[d];return f;},a124d(a,b);}import a124e from'fs';function a124c(){const D=['default\x20as\x20','grep','\x20}\x20from\x20\x27./','checkNpmPackage','installNpmPackage','translations','getGlobalConfig','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','appName','i18n/i18n.js','isFile','toString','engines','template','760093jnIEmy','injectAtEndOfFile','245foTHMi','import\x20\x27../lib/services/translations/i18n\x27;','injectAtBeginningOfFile','fsi','startup','Generate\x20a\x20new\x20locale\x20translation','2235806JPyRrP','import\x20\x27../lib/services/translations/i18n\x27;\x0a','(((.+)+)+)+$','3108993fLcjaD','pathFromApp','withValue','readFileSync','locales','export\x20{\x20default\x20as\x20','search','i18n/locales.js','i18n.js','true','apply','imports','warn','maka\x20g:translation\x20--lang=en\x20(default)','rewriteDestinationPathForEngine','3418470FqbTKB','303608isQUBG','services','error','i18next','exit','findAppDirectory','translation','index.','10576824VvDBaa','ssr','maka\x20{generate,\x20g}:translation','constructor','root','4gKJGdd','lang','index.js','service','36941679FWIXAt','lib','setProjectConfig','i18n/index.js','features.withTranslations','.js','i18next\x20i18next-browser-languagedetector\x20react-i18next','server','maka\x20g:translation\x20--lang=de'];a124c=function(){return D;};return a124c();}Generator['create']({'name':a124A(0x18c),'usage':a124A(0x190),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124A(0x194),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a124A(0x172),'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','examples':[a124A(0x183),'maka\x20g:translation\x20--lang=fr',a124A(0x15c)],'validOpts':[]},async function(a,b){const B=a124A;try{const c=this[B(0x170)]['getMakaProjectConfig'](),d=this[B(0x170)][B(0x163)](),f=this[B(0x170)][B(0x18b)]();await this['fsi'][B(0x178)](c,()=>{const C=B;try{!b[C(0x194)]&&(b[C(0x194)]='en');!b[C(0x192)]&&!this[C(0x170)][C(0x160)](C(0x189))&&(Log[C(0x182)](C(0x164)),this[C(0x170)][C(0x161)](C(0x15a),{'cwd':f}),this[C(0x170)][C(0x199)](C(0x19b),!![]));const g=this[C(0x170)][C(0x177)]({'pathParts':[C(0x181),C(0x171),'client','index.js']}),h=this['fsi'][C(0x184)]({'pathParts':[g],'config':c}),i=this[C(0x170)]['grep'](a124e['readFileSync'](h)[C(0x168)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];if(c[C(0x169)][C(0x18f)]===C(0x17f)){!i&&this[C(0x170)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x174)});const t=this[C(0x170)][C(0x177)]({'pathParts':['imports',C(0x171),C(0x15b),C(0x195)]}),u=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[C(0x170)][C(0x15e)](a124e[C(0x179)](u)[C(0x168)](),C(0x16e))[0x0]&&!![];!v&&this['fsi'][C(0x16f)]({'filePath':u,'content':C(0x174)});}else!i&&this[C(0x170)][C(0x16f)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x165)],'config':c},k=this[C(0x170)][C(0x177)]({'pathParts':[C(0x181),C(0x171),'lib',C(0x187),'translations',C(0x17e)]}),l=this[C(0x170)]['isFile'](this[C(0x170)][C(0x184)]({'pathParts':[k],'config':c}));!l&&this[C(0x170)][C(0x16a)]({'srcPath':C(0x166),'destPath':k,'framework':C(0x196),'context':j,'config':c});const m=this[C(0x170)][C(0x177)]({'pathParts':['imports',C(0x171),C(0x198),'services',C(0x162),C(0x17a),b['lang']+C(0x159)]}),n=this[C(0x170)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':c}),o=this[C(0x170)]['isFile'](n);!o?this[C(0x170)][C(0x16a)]({'srcPath':C(0x17d),'destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x182)]('Locale\x20already\x20defined:\x20'+n);const p=this[C(0x170)]['pathFromApp']({'pathParts':[C(0x181),'startup',C(0x198),C(0x187),C(0x162),C(0x17a),C(0x18d)+c[C(0x169)]['js']]}),q=this[C(0x170)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0x170)][C(0x167)](q);!r&&this['fsi'][C(0x16a)]({'srcPath':C(0x19a),'destPath':p,'framework':C(0x196),'context':j,'config':c});const s=this['fsi'][C(0x15e)](a124e[C(0x179)](p)[C(0x168)](),C(0x15d)+b[C(0x194)])[0x0]&&!![];!s?this[C(0x170)][C(0x16c)]({'filePath':p,'content':C(0x17b)+b[C(0x194)]+C(0x15f)+b['lang']+'\x27;'}):Log[C(0x182)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0x188)](w),process[C(0x18a)](0x1);}});}catch(g){Log[B(0x188)](g),process[B(0x18a)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d
|
|
1
|
+
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=-parseInt(j(0x7e))/0x1*(parseInt(j(0x6b))/0x2)+parseInt(j(0x6c))/0x3*(parseInt(j(0x79))/0x4)+parseInt(j(0x66))/0x5+parseInt(j(0x73))/0x6+parseInt(j(0x76))/0x7*(-parseInt(j(0x75))/0x8)+parseInt(j(0x68))/0x9*(parseInt(j(0x67))/0xa)+-parseInt(j(0x65))/0xb*(-parseInt(j(0x78))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xbd0f8));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a['toString']()[l(0x7f)](l(0x77))['toString']()[l(0x71)](a125a)[l(0x7f)](l(0x77));});a125a();import a125e from'minimist';function a125c(){const n=['7448990VQqvUA','9Ozaggn','camelizeKeys','url','8sQgkxx','261ZYlyGl','slice','BROWSERSLIST_IGNORE_OLD_DATA','parse','totalmem','constructor','apply','2962602OJVHEf','stringify','104tqmKRK','805868FOwTua','(((.+)+)+)+$','198648cwlXgl','27668CyPHtL','env','MAKA_COMMAND_PATH','TOOL_NODE_FLAGS','dirname','151045KHVpgU','search','363WXLMze','2442285MLzuQv'];a125c=function(){return n;};return a125c();}import a125f from'os';import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x65;let f=c[d];return f;},a125d(a,b);}import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125m(0x6a)]),__dirname=a125g[a125m(0x7d)](__filename);global[a125m(0x7b)]=__dirname;const total_memory=a125f[a125m(0x70)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process['env'][a125m(0x7c)]='--max-old-space-size='+total_mem_in_mb,process['env'][a125m(0x6e)]='1',process[a125m(0x7a)]['NODE_NO_WARNINGS']='1';const argv=a125e(process['argv'][a125m(0x6d)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x6f)](JSON[a125m(0x74)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0x69)](deepCopyArgv);a125i['run'](args,opts);
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "<%= app %>",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "index.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"start": "maka run",
|
|
8
|
+
"debug": "maka debug",
|
|
9
|
+
"build": "maka build"
|
|
10
|
+
},
|
|
11
|
+
"bin": {
|
|
12
|
+
"maka": "./node_modules/.bin/maka"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git"
|
|
16
|
+
},
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@maka/maka-cli": "^4.7.10"
|
|
19
|
+
}
|
|
20
|
+
}
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=-parseInt(I(
|
|
1
|
+
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=-parseInt(I(0xa7))/0x1+-parseInt(I(0x93))/0x2*(-parseInt(I(0x99))/0x3)+-parseInt(I(0xd2))/0x4+parseInt(I(0xc8))/0x5+-parseInt(I(0xb6))/0x6*(parseInt(I(0x91))/0x7)+parseInt(I(0xac))/0x8*(-parseInt(I(0xb1))/0x9)+parseInt(I(0xcd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xd6bdf));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0xbf)]()[K(0xb4)](K(0x92))[K(0xbf)]()[K(0xc1)](a126a)[K(0xb4)](K(0x92));});a126a();import a126e from'path';import a126f from'os';function a126c(){const a3=['Please\x20choose\x20an\x20environment','getPro','17806620hWuNsL','formatToNamedParam','Invalid\x20argument:\x20','push','length','6181188buYxJo','getAppProjectConfigs','name','description','getShortName','Please\x20choose\x20a\x20valid\x20value\x20for\x20','proCommands','usage','env','isCommand','\x20installed\x20to\x20use\x20this\x20command.','dir','string','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','roles','To\x20use\x20this\x20command,\x20\x22','Please\x20provide\x20a\x20resource\x20name:','\x20version\x20','validateMeteorInstall','7MgBYEl','(((.+)+)+)+$','595412yTOrom','docker','_handler','aliases','No\x20usage\x20provided.','apply','9JaiBfE','existsSync','concat','list','exit','shortDesc','match','win32','proGenerators','map','join','examples','validateMakaSubscription','To\x20use\x20this\x20generator,\x20\x22','617128CxSqci','root','getMakaProjectConfig','isGenerator','options','22368YIUCdF','isPro','assign','resourceName','config','387WCXKOY','validateMakaProject','error','search','charAt','7377126qYGLvS','.meteor','Please\x20choose\x20a\x20value\x20for\x20','fsi','None','AppData','remapShortToLong','disableAuthCheck','validateParams','toString','ask','constructor','keys','cwd','Invalid\x20option:\x20','singleLicense','parent','findProjectDirectory','8589885iFTjFC','includes','Please\x20provide\x20a\x20value\x20for\x20'];a126c=function(){return a3;};return a126c();}import a126g from'fs';const homeDir=a126f['homedir']();import{Docker}from'./tools/docker/docker.class.js';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x85;let f=c[d];return f;},a126d(a,b);}import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{[a126L(0x94)];[a126L(0xb9)];[a126L(0xab)];[a126L(0xd4)];['parent'];[a126L(0x95)];constructor(){const M=a126L;this[M(0x94)]=new Docker(),this['fsi']=new FSI();}[a126L(0xd6)](a){const N=a126L;return a[N(0xb5)](0x0);}['remapShortToLong'](a,b){const O=a126L,c=this[O(0xce)](b),d={...a};for(const e of c){const f=this[O(0xd6)](e[O(0xd4)]);a[f]&&(d[e[O(0xd4)]]=a[f],delete d[f]);}return d;}[a126L(0xce)](a){const P=a126L;if(a['every'](b=>typeof b===P(0x8a)))return a[P(0xa2)](b=>({'name':b}));return a;}[a126L(0x9f)](a){const Q=a126L,b=[this[Q(0xd4)]][Q(0x9b)](this[Q(0xab)][Q(0x96)]||[]);return this[Q(0xc6)]&&b['push'](this[Q(0xc6)]),b[Q(0xc9)](a);}[a126L(0xb2)](){const R=a126L,a=this[R(0xb9)][R(0xc7)]();return a!==![]?!![]:![];}[a126L(0x90)](){const S=a126L;let a=a126e[S(0xa3)](homeDir,S(0xb7));const b=process['platform']===S(0xa0);if(b){a=a126e['join'](homeDir,S(0xbb),'Local','.meteor');if(!a126g[S(0x9a)](a))return![];}else{if(!a126g[S(0x9a)](a))return![];}return!![];}['validateEngines'](a){const T=a126L,b=this['fsi'][T(0xa9)](),c=b['engines'],d=Object[T(0xc2)](a);if(d[T(0xd1)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error']('You\x20must\x20have\x20'+e+T(0x8f)+a[e]+T(0x88));throw UsageError;}}}async[a126L(0xbe)](a,b,c){const U=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0xc2)](b);if(h[U(0xc9)](U(0xaf))&&b[U(0xaf)]===undefined&&!g){const m=await Actions[U(0xc0)](U(0x8e));b['resourceName']=m;}let i=[],j=b;if(d){i=this[U(0xce)](d),j=this[U(0xbc)](b,i);if(i&&i?.[U(0xd1)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0xc2)](j)['includes'](o)){if(o===U(0x86)){const r=this['fsi'][U(0xd3)](),s=await Actions['options']({'type':'list','name':U(0x86),'message':U(0xcb),'choices':r});b[U(0x86)]=s[U(0x86)];}else{const t=p;if(t){const u=await Actions[U(0xab)]({'type':U(0x9c),'name':o,'message':U(0xb8)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0xc0)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v['match'](q))b[o]=v;else{Log['error']('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0xc0)](U(0xca)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log[U(0xb3)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0xce)](f),l=b;if(k&&Object[U(0xc2)](k)?.['length']>0x0){k=k[U(0x9b)](i||[]),k['push']({'name':U(0xaf),'hidden':!![]}),k[U(0xd0)]({'name':'help','boolFlag':!![]}),k[U(0xd0)]({'name':U(0x89),'hidden':!![]}),k['push']({'name':U(0xc3),'hidden':!![]}),k[U(0xd0)]({'name':U(0xa8),'hidden':!![]}),k[U(0xd0)]({'name':U(0xb0),'hidden':!![]}),l=this[U(0xbc)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0xc9)](B))){const C=A;if(C){const D=await Actions[U(0xab)]({'type':'list','name':z,'message':U(0xd7)+z,'choices':A});l[z]=D[z];}}if(k[U(0xd1)]>0x0)for(const E of Object[U(0xc2)](l)){const F=k['find'](G=>G['name']===E);if(!F){Log[U(0xb3)](U(0xc4)+E);throw new UsageError();}}}}if(e&&e?.[U(0xd1)]>0x0)for(const G of e){if(!e[U(0xc9)](G)){Log[U(0xb3)](U(0xcf)+G);const H=await Actions[U(0xc0)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a['indexOf'](G)]=H;}}return Object[U(0xae)](j,l);}async[a126L(0xa5)](a){const V=a126L;try{if(!a)return;const b=await this[V(0xb9)][V(0xcc)]();!b&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[V(0x9d)](0x1));const c=!b?.['roles']['includes'](V(0xc5))&&!b?.[V(0x8c)][V(0xc9)]('domainLicense');if(this[V(0x87)](a)){const d=V(0x8d)+a[V(0xd4)]+V(0x8b);if(a[V(0xab)][V(0xbd)])return;const f=b?.[V(0xd8)]['includes'](a[V(0xd4)])||b?.[V(0xd8)][V(0xc9)](a['parent']||'')||this[V(0xab)][V(0xad)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[V(0xa1)][V(0xc9)](a['name'])||b?.[V(0xa1)][V(0xc9)](a[V(0xc6)]||'');if(g&&c)throw V(0xa6)+a[V(0xd4)]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log[V(0xb3)](h),process['exit'](0x1);}}[a126L(0x87)](a){const W=a126L;return W(0xab)in a;}[a126L(0xaa)](a){const X=a126L;return!(X(0xab)in a);}['description'](){const Y=a126L;return this[Y(0xab)][Y(0xd5)]||this[Y(0xab)][Y(0x9e)]||'No\x20description\x20provided.';}['shortDesc'](){const Z=a126L;return this['options'][Z(0x9e)]||'NIE';}[a126L(0x85)](){const a0=a126L;return this['options'][a0(0x85)]||a0(0x97);}[a126L(0xa4)](){const a1=a126L;return this[a1(0xab)][a1(0xa4)]||[];}['aliases'](){const a2=a126L;return this['options'][a2(0x96)]||a2(0xba);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a127c(){const m=['4535461rTBPEe','169984BVYUft','1299456ZjIoQm','search','ask','password','9JKYrVV','input','1717672xFCoAo','4556004VGCapZ','3194435rzfkIu','(((.+)+)+)+$','prompt','confirm','answer','constructor','641148ljmYba','toString','apply'];a127c=function(){return m;};return a127c();}const a127i=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0x9a))/0x1+-parseInt(f(0x9e))/0x2*(-parseInt(f(0x90))/0x3)+parseInt(f(0x92))/0x4+parseInt(f(0x94))/0x5+-parseInt(f(0x93))/0x6+parseInt(f(0x9d))/0x7+-parseInt(f(0x9f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x63ae2));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0x9b)]()[h(0x8d)]('(((.+)+)+)+$')[h(0x9b)]()[h(0x99)](a127a)[h(0x8d)](h(0x95));});function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x8d;let f=c[d];return f;},a127d(a,b);}a127a();import a127e from'inquirer';export class Actions{static async[a127i(0x8e)](a,b){const j=a127i,{answer:c}=await a127e['prompt']({'type':b?j(0x8f):j(0x91),'name':j(0x98),'message':a});return c;}static async[a127i(0x97)](a,b=![]){const k=a127i,{answer:c}=await a127e[k(0x96)]({'type':k(0x97),'name':k(0x98),'message':a,'default':b});return c;}static async['options'](a){const l=a127i,b=await a127e[l(0x96)](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128t=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0xef))/0x1*(parseInt(p(0xc7))/0x2)+parseInt(p(0xca))/0x3*(-parseInt(p(0xc2))/0x4)+parseInt(p(0xbc))/0x5+parseInt(p(0xa5))/0x6*(-parseInt(p(0x81))/0x7)+parseInt(p(0xe2))/0x8+parseInt(p(0x80))/0x9+-parseInt(p(0xbe))/0xa*(parseInt(p(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x27772));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0xb8)]()[r(0xf5)](r(0xc6))[r(0xb8)]()[r(0x9a)](a128a)[r(0xf5)](r(0xc6));});function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x76;let f=c[d];return f;},a128d(a,b);}a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a128d;this[s(0x9c)]=new FSI();}async[a128t(0xf2)](a){const u=a128t;try{const b={'repositoryName':a[u(0xe7)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0xf3)](c);return d;}catch(f){Log[u(0xd4)](f);}}async[a128t(0x95)](a){const v=a128t;try{const b={'CallerReference':''+Date[v(0x8a)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0xf3)](c),Log[v(0x98)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[v(0xd4)](v(0x77)),console[v(0xd4)](d);}}async[a128t(0xa8)](a,b,c,d){const w=a128t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0xf3)](f),Log['notice'](w(0xe6)+b+w(0xfa));}catch(g){Log[w(0xd4)](w(0x7b)),Log[w(0xb6)](w(0xdd)),console['error'](w(0x83)+g[w(0x9d)][w(0x76)]),console[w(0xd4)](w(0xad)+g[w(0x9d)][w(0xb3)]);}}async['checkDomainAvailability'](a){const x=a128t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[x(0xf1)]===x(0xa6);if(e){const f=a[x(0xdf)]('.')[x(0xeb)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0xf3)](h);if(i&&i[x(0xa4)]&&i[x(0xa4)][0x0]?.['RegistrationPrice']){const j=i[x(0xa4)][0x0][x(0xd9)];return{'available':e,'cost':j};}}catch(k){console[x(0xd4)](x(0xc5),k);}}return{'available':e};}async[a128t(0xaf)](a,b,c){const y=a128t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[y(0xb7)])throw Log[y(0xd4)](y(0xa0));const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0xd6)](f),Log[y(0x9f)](y(0xa9)+a+'\x20to\x20'+c);}catch(g){console[y(0xd4)](y(0xd0),g);}}async[a128t(0x7a)](a){const z=a128t;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x79),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0xbd)],'InstanceType':a[z(0xc0)],'KeyName':a[z(0xe4)],'MaxCount':a['maxCount'],'MinCount':a[z(0xc9)],'SecurityGroupIds':a['sgIds'][z(0xdf)](','),'SubnetId':a[z(0xbf)],'TagSpecifications':[{'ResourceType':z(0xc8),'Tags':a[z(0x91)]}]};a[z(0xa7)]&&(b[z(0xb4)]=z(0xa2)+a[z(0xa7)]);const c=new RunInstancesCommand(b),d=await client[z(0xf3)](c);return d;}catch(f){Log[z(0xd4)](f);}}async[a128t(0x88)](a){const A=a128t;try{const b={'InstanceIds':[a[A(0x94)]]},c=new TerminateInstancesCommand(b),d=await client[A(0xf3)](c);return d;}catch(f){return Log[A(0xd4)](f),{};}}async[a128t(0xac)]({keyName:a,env:b}){const B=a128t,c=this[B(0x9c)][B(0xe0)](b),d=a128f['join'](c,B(0xaa),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0xf3)](g),i=h[B(0x8f)];if(i){await this['fsi']['createFile']({'filePath':d,'data':i}),execSync(B(0x89)+d,{'stdio':'ignore'});const j=this[B(0x9c)]['isFile'](d);if(j)return Log['success'](B(0xc4)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log[B(0xd4)](k),process[B(0xd3)](0x1);}}async[a128t(0xd5)]({port:a,groupId:b}){const C=a128t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':C(0xec),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x9f)](C(0x97)+a+'\x20opened!'),await client[C(0xf3)](d);}async[a128t(0x96)](a){const D=a128t;try{a[D(0xf0)]===''&&(a[D(0xf0)]=await Actions[D(0xb9)](D(0xdc))||'Web\x20App');const b={'Description':a[D(0xf0)],'GroupName':a[D(0xe7)],'VpcId':a[D(0xd8)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0xf3)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x78));f&&a[D(0xd1)]['forEach'](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log[D(0x98)](D(0xc3)+f+D(0xcc)+a['name']);}catch(g){return Log[D(0xd4)](g),![];}return!![];}async[a128t(0xb0)](a){const E=a128t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0xf3)](d);if(!f)throw E(0x78);const {KeyPairs:g}=f;g?(g?.[E(0x84)]((h,i)=>{const F=E;h[F(0xba)]&&b[F(0xb5)]({'id':i,'name':h[F(0xba)]});}),b['length']>0x0&&b[E(0x84)](h=>{const G=E;h[G(0xe7)]===a?.[G(0xee)]?Log[G(0x98)](G(0xf9)+h['id']+'\x20NAME:\x20'+h[G(0xe7)]):Log[G(0x9f)](G(0xf9)+h['id']+G(0xcc)+h[G(0xe7)]);})):Log[E(0xd4)](E(0x86));}catch(h){Log[E(0xd4)](h);}return b;}async['deleteKeyPair'](a){const H=a128t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[H(0xd4)](d),process[H(0xd3)](0x1);}}async[a128t(0xe3)](){const I=a128t,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[I(0x85)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[I(0xd7)]?.['forEach']((f,g)=>{const J=I;if(f?.[J(0x92)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[J(0x7e)](({Key:o})=>o===J(0xed));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0xb1)]});}}),a['length']>0x0?a[I(0x84)](f=>{const K=I,g=K(0xf9)+f['id']+K(0xcc)+f[K(0xe7)]+'\x20ENV:\x20'+f[K(0xe9)]+K(0xe8)+f['status']+K(0xcd)+f[K(0x94)]+'\x20PUB_IP:\x20'+f['publicIp']+'\x20PRIV_IP:\x20'+f[K(0xfb)];if(f['status']===K(0x8e))Log[K(0xd4)](g);else f['status']==='running'?Log[K(0x98)](g):Log[K(0x9f)](g);}):Log['error'](I(0x8d));}catch(f){Log['error'](f);}return a;}async[a128t(0xf8)](a){const L=a128t;try{const b={'InstanceIds':[a[L(0x94)]]},c=new RebootInstancesCommand(b),d=await client[L(0xf3)](c);return d[L(0x7c)][L(0x7f)]===0xc8&&Log['success'](L(0x7d)),d;}catch(f){Log[L(0xd4)](f);}}async['chooseVPC'](){const M=a128t;let a='';Log[M(0x9f)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[M(0x84)]((g,h)=>{const N=M;g[N(0xdb)]&&g['CidrBlock']&&e[N(0xb5)]({'id':h,'vpcId':g[N(0xdb)],'cidr':g[N(0x90)]});});e[M(0x84)](function(g){const O=M;console[O(0xe1)](O(0xf9)+g['id']+O(0xae)+g[O(0xd8)]+O(0x8b)+g[O(0xea)]);});const f=await Actions[M(0xb9)](M(0xcf))||0x0;e[M(0x84)](function(g){const P=M;g['id']==f&&(a=g[P(0xd8)],Log['success'](P(0x8c)+a+'\x0a'));});if(a==='')return Log[M(0xd4)](M(0xa3)),'';return a;}async['chooseInstance'](){const Q=a128t,a=await this[Q(0xe3)]();if(a[Q(0xab)]===0x0)return Log['error'](Q(0x99)),null;const b=await Actions['ask']('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[Q(0xd4)](Q(0x82)),process['exit'](0x0));const c=a[Q(0x7e)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128t(0xf4)]({env:a}){const R=a128t,b=this[R(0x9c)][R(0xd2)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0xb9)](R(0x9e)+d+']\x20')||d,{filePath:g}=await this[R(0xac)]({'keyName':f,'env':a});try{const h=await Actions[R(0xf6)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[R(0xb2)](a128f[R(0xcb)]('config',a,'ssh.json'),R(0xa1)),j=JSON['parse'](i);j[R(0xda)]=a128f['join'](R(0xaa),f+'.pem.txt'),a128e[R(0x9b)](a128f[R(0xcb)](R(0x93),a,R(0xce)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0xd4)](k),Log[R(0xd4)](R(0xc1));}}catch(l){Log[R(0xd4)](l),process[R(0xd3)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const S=a128t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0xf3)](d),{SecurityGroups:f}=e;f&&f[S(0x84)](function(i,j){const T=S;i[T(0xbb)]&&i[T(0x87)]&&b[T(0xb5)]({'id':j,'name':i[T(0xbb)],'sgId':i[T(0x87)]});});let g='',h=0x0;return b[S(0x84)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128t(0xde)](a){const U=a128t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[U(0xf3)](c);}catch(d){Log[U(0xd4)](d),process['exit'](0x1);}}}function a128c(){const V=['length','createKeyPairEC2Key','\x20Error\x20Rason:\x20','\x20VPCID:\x20','linkEC2ToRoute53','ec2describeKeys','Value','readFileSync','reason','UserData','push','warn','HostedZones','toString','ask','KeyName','GroupName','137400oyubyj','imageId','270DkqjzB','subnet','type','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','4qlMrwD','Created:\x20','Pem\x20key\x20saved\x20to\x20','Error\x20fetching\x20domain\x20pricing:','(((.+)+)+)+$','21820QbBnJS','instance','minCount','635676sPjpCo','join','\x20NAME:\x20','\x20INSTANCE_ID:\x20','ssh.json','Please\x20choose\x20a\x20VPC:\x20[0]\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','sgPorts','getMakaProjectConfig','exit','error','ingressRule','changeResourceRecordSets','Reservations','vpcId','RegistrationPrice','pem','VpcId','Description:','From\x20AWS:','deleteSecurityGroup','split','getAppConfigPath','log','121176kPxiQb','ec2describeInstances','key','apply','The\x20domain\x20\x27','name','\x20STATUS:\x20','env','cidr','pop','0.0.0.0/0','environment','suggestion','27fxTPcH','description','Availability','ecrCreateRepository','send','createKeyPair','search','confirm','6402HfxkkM','ec2rebootInstance','ID:\x20','\x27\x20has\x20been\x20registered\x20successfully.','privateIp','statusCode','Error\x20creating\x20hosted\x20zone','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','/dev/sdh','ec2create','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','$metadata','Instance\x20rebooted!','find','httpStatusCode','2272842PJPoRL','1403353qfdQYm','Invalid\x20choice','\x20Status\x20Code:\x20','forEach','maka-cli','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','GroupId','ec2terminateInstance','chmod\x20400\x20','now','\x20CIDR:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','terminated','KeyMaterial','CidrBlock','tags','Instances','config','instanceId','route53CreateHostedZone','ec2createSG','Port\x20','success','No\x20instances\x20found','constructor','writeFileSync','fsi','$response','Key\x20Name:\x20[','notice','Could\x20not\x20find\x20hosted\x20zone','utf8','file://','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Prices','6oWCatN','AVAILABLE','userData','registerDomain','Successfully\x20linked\x20EC2\x20instance\x20','_keys'];a128c=function(){return V;};return a128c();}
|
|
1
|
+
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x15c))/0x1*(-parseInt(p(0x14d))/0x2)+parseInt(p(0x164))/0x3*(-parseInt(p(0x121))/0x4)+-parseInt(p(0x109))/0x5+-parseInt(p(0x13a))/0x6+parseInt(p(0x107))/0x7+parseInt(p(0xf1))/0x8+parseInt(p(0x145))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x332f6));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0x127)]()[r(0xfb)](r(0x104))[r(0x127)]()['constructor'](a128a)[r(0xfb)](r(0x104));});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';function a128c(){const W=['That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Value','sgId','370568pOecgI','ask','chooseVPC','Hosted\x20zone\x20created\x20successfully!','GroupName','vpcId','ID:\x20','statusCode','$response','RegistrationPrice','search','Successfully\x20linked\x20EC2\x20instance\x20','deleteSecurityGroup','Reservations','CidrBlock','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','\x27\x20has\x20been\x20registered\x20successfully.','getAppConfigPath','privateIp','(((.+)+)+)+$','Error\x20saving\x20pem\x20file,\x20aborting','getSecurityGroups','1575112tzdJov','minCount','754710VaodqC','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','terminated','error','join','\x20ENV:\x20','send','KeyName','Description:','find','\x20NAME:\x20','GroupId','ssh.json','\x20PUB_IP:\x20','env','registerDomain','getMakaProjectConfig','description','exit','\x20to\x20','pem','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','createKeyPair','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','78068rRiqXB','$metadata','sgIds','VpcId','Created:\x20','From\x20AWS:','toString','\x20opened!','Invalid\x20choice','\x20CIDR:\x20','push','Name','forEach','ignore','length','fsi','ingressRule','Instance\x20rebooted!','success','notice','tag:created-by','apply','ec2createSG','config','Instances','2018298FMdbBw','The\x20domain\x20\x27','HostedZones','No\x20instances\x20found','stringify','ec2describeKeys','status','environment','instanceId','.pem.txt','KeyMaterial','4580640SXKBhR','publicIp','\x20INSTANCE_ID:\x20','ec2describeInstances','key','split','UserData','\x20Error\x20Rason:\x20','102giRqtR','createFile','AVAILABLE','checkDomainAvailability','reason','isFile','subnet','sgPorts','confirm','ec2create','httpStatusCode','type','file://','maka-cli','userData','1251StFEIj','log','listHostedZonesByName','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','name','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Pem\x20key\x20saved\x20to\x20','3bqtAKY','cidr','\x20STATUS:\x20','Key\x20Name:\x20[','tags','Error\x20linking\x20EC2\x20to\x20Route\x2053:','maxCount','/dev/sdh','tcp','Port\x20','ec2terminateInstance','chmod\x20400\x20','createKeyPairEC2Key','Prices','\x20VPCID:\x20','writeFileSync','now','Error\x20fetching\x20domain\x20pricing:','Availability','Web\x20App','instance','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','running'];a128c=function(){return W;};return a128c();}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';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xe0;let f=c[d];return f;},a128d(a,b);}import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a128s(0x130)];constructor(){this['fsi']=new FSI();}async['ecrCreateRepository'](a){const t=a128s;try{const b={'repositoryName':a[t(0x160)]},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x10f)](c);return d;}catch(f){Log['error'](f);}}async['route53CreateHostedZone'](a){const u=a128s;try{const b={'CallerReference':''+Date[u(0xe7)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x10f)](c),Log['success'](u(0xf4));}catch(d){Log[u(0x10c)]('Error\x20creating\x20hosted\x20zone'),console[u(0x10c)](d);}}async[a128s(0x118)](a,b,c,d){const v=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x10f)](f),Log[v(0x134)](v(0x13b)+b+v(0x101));}catch(g){Log['error'](v(0x100)),Log['warn'](v(0x126)),console[v(0x10c)]('\x20Status\x20Code:\x20'+g['$response'][v(0xf8)]),console[v(0x10c)](v(0x14c)+g[v(0xf9)][v(0x151)]);}}async[a128s(0x150)](a){const w=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x10f)](c),e=d[w(0xe9)]===w(0x14f);if(e){const f=a[w(0x14a)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x10f)](h);if(i&&i['Prices']&&i['Prices'][0x0]?.[w(0xfa)]){const j=i[w(0xe4)][0x0][w(0xfa)];return{'available':e,'cost':j};}}catch(k){console[w(0x10c)](w(0xe8),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const x=a128s;try{const d=await route53[x(0x15e)]({'DNSName':c});if(!d?.[x(0x13c)])throw Log['error']('Could\x20not\x20find\x20hosted\x20zone');const e=d?.['HostedZones'][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log[x(0x134)](x(0xfc)+a+x(0x11c)+c);}catch(g){console[x(0x10c)](x(0x169),g);}}async[a128s(0x156)](a){const y=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0x16b),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[y(0x158)],'KeyName':a[y(0x149)],'MaxCount':a[y(0x16a)],'MinCount':a[y(0x108)],'SecurityGroupIds':a[y(0x123)]['split'](','),'SubnetId':a[y(0x153)],'TagSpecifications':[{'ResourceType':y(0xeb),'Tags':a[y(0x168)]}]};a[y(0x15b)]&&(b[y(0x14b)]=y(0x159)+a[y(0x15b)]);const c=new RunInstancesCommand(b),d=await client[y(0x10f)](c);return d;}catch(f){Log[y(0x10c)](f);}}async[a128s(0xe1)](a){const z=a128s;try{const b={'InstanceIds':[a[z(0x142)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x10f)](c);return d;}catch(f){return Log['error'](f),{};}}async[a128s(0xe3)]({keyName:a,env:b}){const A=a128s,c=this[A(0x130)][A(0x102)](b),d=a128f[A(0x10d)](c,'_keys',a+A(0x143));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0x10f)](g),i=h[A(0x144)];if(i){await this[A(0x130)][A(0x14e)]({'filePath':d,'data':i}),execSync(A(0xe2)+d,{'stdio':A(0x12e)});const j=this[A(0x130)][A(0x152)](d);if(j)return Log[A(0x133)](A(0x163)+d),{'keyName':a,'filePath':d};else throw new Error(A(0x105));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[A(0x11b)](0x1);}}async[a128s(0x131)]({port:a,groupId:b}){const B=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x16c),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](B(0xe0)+a+B(0x128)),await client[B(0x10f)](d);}async[a128s(0x137)](a){const C=a128s;try{a['description']===''&&(a[C(0x11a)]=await Actions[C(0xf2)](C(0x111))||C(0xea));const b={'Description':a['description'],'GroupName':a[C(0x160)],'VpcId':a[C(0xf6)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0x11e));f&&a[C(0x154)][C(0x12d)](g=>{const D=C;this[D(0x131)]({'port':parseInt(g),'groupId':f});}),Log['success'](C(0x125)+f+C(0x113)+a[C(0x160)]);}catch(g){return Log[C(0x10c)](g),![];}return!![];}async[a128s(0x13f)](a){const E=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x10f)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h[F(0x110)]&&b[F(0x12b)]({'id':i,'name':h[F(0x110)]});}),b[E(0x12f)]>0x0&&b[E(0x12d)](h=>{const G=E;h[G(0x160)]===a?.['suggestion']?Log[G(0x133)]('ID:\x20'+h['id']+'\x20NAME:\x20'+h[G(0x160)]):Log[G(0x134)](G(0xf7)+h['id']+G(0x113)+h[G(0x160)]);})):Log['error'](E(0xec));}catch(h){Log[E(0x10c)](h);}return b;}async['deleteKeyPair'](a){const H=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x10f)](c);}catch(d){Log['error'](d),process[H(0x11b)](0x1);}}async[a128s(0x148)](){const I=a128s,a=[];try{const b={'Filters':[{'Name':I(0x135),'Values':[I(0x15a)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x10f)](c);d[I(0xfe)]?.[I(0x12d)]((f,g)=>{const J=I;if(f?.[J(0x139)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x139)][0x0],n=m?.['find'](({Key:o})=>o===J(0x141));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0x12c)],'name':l,'env':n?.[J(0xef)]});}}),a['length']>0x0?a[I(0x12d)](f=>{const K=I,g='ID:\x20'+f['id']+K(0x113)+f[K(0x160)]+K(0x10e)+f[K(0x117)]+K(0x166)+f[K(0x140)]+K(0x147)+f[K(0x142)]+K(0x116)+f[K(0x146)]+'\x20PRIV_IP:\x20'+f[K(0x103)];if(f[K(0x140)]===K(0x10b))Log['error'](g);else f[K(0x140)]===K(0xed)?Log[K(0x133)](g):Log['notice'](g);}):Log[I(0x10c)](I(0x15f));}catch(f){Log[I(0x10c)](f);}return a;}async['ec2rebootInstance'](a){const L=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[L(0x10f)](c);return d[L(0x122)][L(0x157)]===0xc8&&Log['success'](L(0x132)),d;}catch(f){Log[L(0x10c)](f);}}async[a128s(0xf3)](){const M=a128s;let a='';Log['notice']('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[M(0x10f)](b),{Vpcs:d}=c,e=[];d&&d[M(0x12d)]((g,h)=>{const N=M;g[N(0x124)]&&g[N(0xff)]&&e[N(0x12b)]({'id':h,'vpcId':g['VpcId'],'cidr':g[N(0xff)]});});e['forEach'](function(g){const O=M;console[O(0x15d)](O(0xf7)+g['id']+O(0xe5)+g[O(0xf6)]+O(0x12a)+g[O(0x165)]);});const f=await Actions[M(0xf2)]('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[M(0x12d)](function(g){const P=M;g['id']==f&&(a=g['vpcId'],Log['success'](P(0x161)+a+'\x0a'));});if(a==='')return Log['error'](M(0xee)),'';return a;}async['chooseInstance'](){const Q=a128s,a=await this['ec2describeInstances']();if(a[Q(0x12f)]===0x0)return Log['error'](Q(0x13d)),null;const b=await Actions['ask'](Q(0x162));!b&&(Log['error'](Q(0x129)),process[Q(0x11b)](0x0));const c=a[Q(0x112)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x11f)]({env:a}){const R=a128s,b=this[R(0x130)][R(0x119)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](R(0x167)+d+']\x20')||d,{filePath:g}=await this[R(0xe3)]({'keyName':f,'env':a});try{const h=await Actions[R(0x155)](R(0x120),!![]);if(h)try{const i=a128e['readFileSync'](a128f['join'](R(0x138),a,R(0x115)),'utf8'),j=JSON['parse'](i);j[R(0x11d)]=a128f[R(0x10d)]('_keys',f+'.pem.txt'),a128e[R(0xe6)](a128f['join'](R(0x138),a,R(0x115)),JSON[R(0x13e)](j,null,0x2));}catch(k){Log[R(0x10c)](k),Log[R(0x10c)](R(0x10a));}}catch(l){Log['error'](l),process[R(0x11b)](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x106)](a){const S=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x10f)](d),{SecurityGroups:f}=e;f&&f[S(0x12d)](function(i,j){const T=S;i[T(0xf5)]&&i[T(0x114)]&&b[T(0x12b)]({'id':j,'name':i['GroupName'],'sgId':i[T(0x114)]});});let g='',h=0x0;return b['forEach'](function(i){const U=S;i[U(0x160)]===a&&(g=i[U(0xf0)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0xfd)](a){const V=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[V(0x10c)](d),process[V(0x11b)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=-parseInt(k(0x189))/0x1*(parseInt(k(0x193))/0x2)+parseInt(k(0x18c))/0x3+-parseInt(k(0x196))/0x4+-parseInt(k(0x18b))/0x5+-parseInt(k(0x194))/0x6*(parseInt(k(0x18d))/0x7)+-parseInt(k(0x187))/0x8*(-parseInt(k(0x192))/0x9)+parseInt(k(0x188))/0xa*(parseInt(k(0x18e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xb7880));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x187;var f=c[d];return f;},a129d(a,b);}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x191)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0x195)]()[m(0x190)](m(0x18f))[m(0x195)]()[m(0x18a)](e)[m(0x190)]('(((.+)+)+)+$');});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 a129c(){var n=['193584bBVHSg','7sAzqYv','2986456LXKTSF','(((.+)+)+)+$','search','apply','1042947GCewvA','2iTucQL','209298ZHcOxR','toString','4968588wpQgQW','8AmSoak','160TOwwNn','1162573eiDSRH','constructor','6665000JobFTc'];a129c=function(){return n;};return a129c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a130n=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x153))/0x1*(parseInt(j(0x16a))/0x2)+-parseInt(j(0x15c))/0x3+parseInt(j(0x15a))/0x4+parseInt(j(0x15d))/0x5*(-parseInt(j(0x15e))/0x6)+parseInt(j(0x150))/0x7*(-parseInt(j(0x158))/0x8)+parseInt(j(0x16d))/0x9*(-parseInt(j(0x152))/0xa)+parseInt(j(0x16c))/0xb*(parseInt(j(0x151))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x7cf47));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x16b)]()[l(0x15f)](l(0x15b))[l(0x16b)]()[l(0x167)](a130a)['search'](l(0x15b));});a130a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x150;let f=c[d];return f;},a130d(a,b);}export class Docker{static['tag']({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a130d;try{const f=[m(0x163),a,b+m(0x164)+c+m(0x165)+d],g=m(0x154)+f[m(0x168)]('\x20'),h=execSync(g,{'stdio':m(0x159)})[m(0x16b)]();return h;}catch(i){return Log[m(0x169)](i),'';}}static[a130n(0x156)]({awsAccountId:a,region:b}){const o=a130n;try{const c=[o(0x161),o(0x157),o(0x166),'--password-stdin',a+o(0x164)+b+'.amazonaws.com'],d=o(0x154)+c[o(0x168)]('\x20'),f=execSync(d,{'stdio':o(0x159)})[o(0x16b)]();return f;}catch(g){return Log[o(0x169)](g),'';}}static[a130n(0x162)]({awsAccountId:a,region:b,repoName:c}){const p=a130n;try{const d=[p(0x160),a+p(0x164)+b+p(0x165)+c],f=p(0x154)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x159)})[p(0x16b)]();return g;}catch(h){return Log['error'](h),'';}}}function a130c(){const q=['AWS','constructor','join','error','14ZJNcpK','toString','36008643RnSINT','1251oVMlYy','7kopIbG','12JPRaPx','35410PLweQj','89688gOeCsi','docker\x20','apply','awsLogin','--username','2567032HpBlfS','inherit','722924OamLAg','(((.+)+)+)+$','2566488gufBbY','5KOQfzd','3876234zozwPl','search','push','login','pushImage','tag','.dkr.ecr.','.amazonaws.com/'];a130c=function(){return q;};return a130c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x1ea))/0x1+parseInt(f(0x1f0))/0x2*(-parseInt(f(0x1f3))/0x3)+parseInt(f(0x1ef))/0x4*(-parseInt(f(0x1ec))/0x5)+-parseInt(f(0x1e7))/0x6*(parseInt(f(0x1eb))/0x7)+parseInt(f(0x1f2))/0x8+-parseInt(f(0x1e8))/0x9+parseInt(f(0x1e6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xcc4dc));function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x1e6;var f=c[d];return f;},a131d(a,b);}var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var g=a131d;return a131a[g(0x1ed)]()[g(0x1ee)](g(0x1f1))[g(0x1ed)]()[g(0x1e9)](a131a)[g(0x1ee)]('(((.+)+)+)+$');});function a131c(){var h=['12255822Phibgn','constructor','914940lUvYkP','11346377XPIdiU','5VFQKtt','toString','search','599704ZpsMbr','4kFtQWE','(((.+)+)+)+$','6515120daYvJc','1213926rKMare','30493770kqNVTH','6veFwlh'];a131c=function(){return h;};return a131c();}a131a();export{};
|