@maka/maka-cli 4.8.9 → 4.8.11
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 +2 -2
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=parseInt(f(0xf1))/0x1+parseInt(f(0x101))/0x2*(-parseInt(f(0xef))/0x3)+-parseInt(f(0xf0))/0x4+-parseInt(f(0xff))/0x5*(parseInt(f(0xee))/0x6)+-parseInt(f(0xfd))/0x7*(-parseInt(f(0xfa))/0x8)+parseInt(f(0xf9))/0x9*(parseInt(f(0xf8))/0xa)+parseInt(f(0xf7))/0xb*(-parseInt(f(0xeb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xcdcc3));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0xf3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0xf5)]()[h(0xea)]('(((.+)+)+)+$')[h(0xf5)]()[h(0xec)](a115a)[h(0xea)](h(0xfb));});a115a();import{Generator}from'../generator.js';function a115c(){const j=['maka\x20generate:scaffold\x20todos','6wwbsgA','82653sUZhzf','3268928vIjLYK','685949tuzfxr','generate','apply','Scaffold\x20various\x20parts\x20of\x20your\x20application','toString','maka\x20g:scaffold\x20todos','22XAxNvY','5200CqgZcu','25956yzUfDv','310232BoGkeb','(((.+)+)+)+$','maka\x20g:template\x20todos/todo_item','112lkvIdO','maka\x20g:api\x20trucks','3321845VjBZXm','maka\x20g:package\x20package:name','14LdUItr','search','1732128mnsLfZ','constructor'];a115c=function(){return j;};return a115c();}function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xea;let f=c[d];return f;},a115d(a,b);}const MakaGen=new Generator({'name':a115i(0xf2),'aliases':['g'],'usage':'maka\x20{generate,\x20g}:<generator>\x20<name>','validOpts':[],'mustBeInMakaProject':!![],'minArgLength':0x1,'isRoot':!![],'noNeedResource':!![],'shortDesc':a115i(0xf4),'examples':[a115i(0xed),a115i(0xf6),a115i(0xfc),a115i(0x100),'maka\x20g:route\x20todos/edit',a115i(0xfe),'maka\x20g:dbc\x20geoserver\x20--type=pgsql']},function(){});export default MakaGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(0x184))/0x1+parseInt(j(0x199))/0x2+-parseInt(j(0x17a))/0x3*(-parseInt(j(0x17f))/0x4)+parseInt(j(0x190))/0x5*(-parseInt(j(0x198))/0x6)+parseInt(j(0x18b))/0x7*(-parseInt(j(0x188))/0x8)+-parseInt(j(0x194))/0x9*(-parseInt(j(0x179))/0xa)+parseInt(j(0x197))/0xb*(parseInt(j(0x171))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x2c96e));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a['toString']()[l(0x193)](l(0x170))[l(0x17b)]()[l(0x17d)](a116a)['search'](l(0x170));});a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a116c(){const p=['300540irFyrz','pathFromApp','apply','search','1086507rnzUHo','maka\x20g:method\x20todos','engines','341bfHsCw','30PLYfdg','625730nYqpgF','-rpc-method.','(((.+)+)+)+$','161340XChkWD','error','create','mdg:validated-method','ddp-rate-limiter','startup','dir','appPathPrefix','10hDPoff','7449StLcwO','toString','tsx','constructor','maka:check','232fpEuPo','checkMeteorPackage','template','injectAtEndOfFile','-rpc-method\x27;','157881HfmRdx','fsi','imports','import\x20\x27./methods','2826704vvVyQe','withValue','getMakaProjectConfig','7DAqWQa','method','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','index.','resourceName'];a116c=function(){return p;};return a116c();}function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x16f;let f=c[d];return f;},a116d(a,b);}Generator[a116m(0x173)]({'name':a116m(0x18c),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a116m(0x18d),'validOpts':[a116m(0x177)],'examples':[a116m(0x195)]},async function(a,b){const n=a116m;try{const c=this['fsi'][n(0x18a)]();await this[n(0x185)][n(0x189)](c,async()=>{const o=n,d=paramCase(b[o(0x18f)]),f={'name':b[o(0x18f)],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[o(0x18f)]),'noRename':!![]};let g='js';c[o(0x196)]['js']===o(0x17c)&&(g='ts');await this[o(0x185)][o(0x180)]([o(0x17e),o(0x175),o(0x174)],{'shouldInstall':!![]}),await this['fsi'][o(0x181)]({'srcPath':'method/method.js','destPath':this[o(0x185)][o(0x191)]({'pathParts':['imports',o(0x176),b['appPathPrefix'],'methods',b[o(0x177)],d+o(0x16f)+g]}),'context':f,'config':c});const h=b[o(0x177)]?'/'+b['dir']+'/':'/',i=this[o(0x185)]['pathFromApp']({'pathParts':[o(0x186),o(0x176),b[o(0x178)],o(0x18e)+c[o(0x196)]['js']]});await this[o(0x185)][o(0x182)]({'filePath':i,'content':o(0x187)+h+d+o(0x183)});});}catch(d){Log[n(0x172)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117n=a117d;function a117c(){const q=['fsi','relative','pathFromApp','template','/client/','template/template.js','1323310TNUNMV','148528RNogSE','tests/client','layout','toString','dir','/package.js','search','10595OnyZKT','noRename','226846msHBrp','tests/server','294JItqpK','client','create','package.js','ssr','12zOFOyy','features','package/','package/package.js','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','theme','component','packages','22BRHwMt','95607MjejVA','constructor','hasOwnProperty','.js','engines','store','253678weMpuE','maka\x20g:package\x20todos:package','getMakaProjectConfig','1961743hbGmex','withValue','resourceName','72VFPIei'];a117c=function(){return q;};return a117c();}(function(a,b){const l=a117d,c=a();while(!![]){try{const d=parseInt(l(0x179))/0x1+parseInt(l(0x18f))/0x2+parseInt(l(0x180))/0x3*(parseInt(l(0x19d))/0x4)+-parseInt(l(0x177))/0x5*(-parseInt(l(0x17b))/0x6)+-parseInt(l(0x192))/0x7+-parseInt(l(0x195))/0x8*(-parseInt(l(0x189))/0x9)+parseInt(l(0x19c))/0xa*(-parseInt(l(0x188))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x26444));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const m=a117d;return a117a[m(0x1a0)]()['search']('(((.+)+)+)+$')[m(0x1a0)]()[m(0x18a)](a117a)[m(0x176)]('(((.+)+)+)+$');});a117a();import a117e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x175;let f=c[d];return f;},a117d(a,b);}Generator[a117n(0x17d)]({'name':'package','aliases':['p'],'usage':a117n(0x184),'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a117n(0x1a1)],'examples':[a117n(0x190)]},async function(a,b){const o=a117n,c=paramCase(b[o(0x194)]),d=this[o(0x196)][o(0x198)]({'pathParts':[o(0x187),b[o(0x1a1)],c]}),e=this[o(0x196)]['pathFromAppWithNoReWrite']({'pathParts':[o(0x187),b[o(0x1a1)],c,o(0x17e)]}),f=this['fsi'][o(0x191)]();await this[o(0x196)][o(0x193)](f,async()=>{const p=o,g={'name':paramCase(b[p(0x194)]),'myPath':a117e[p(0x197)](this[p(0x196)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[p(0x194)]),'className':pascalCase(b[p(0x194)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[p(0x18d)][p(0x17c)],'graphql':f[p(0x18d)]['graphql'],'ssr':f[p(0x18d)][p(0x17f)],'isComponent':b[p(0x18b)](p(0x186)),'isLayout':b['hasOwnProperty'](p(0x19f)),'isStore':b[p(0x18b)](p(0x18e)),'features':f[p(0x181)],'noRename':!![],'theme':f['engines'][p(0x185)]};await this[p(0x196)]['template']({'srcPath':p(0x183),'destPath':e,'context':g,'config':f}),g[p(0x178)]=![];const h=d+p(0x19a)+c+p(0x18c);await this['fsi'][p(0x199)]({'srcPath':p(0x19b),'destPath':h,'context':g,'config':f});const i=['lib','server',p(0x19e),p(0x17a)];for(const j of i){const k=d+'/'+j+'/'+c+p(0x18c);await this[p(0x196)][p(0x199)]({'srcPath':p(0x182)+j+p(0x175),'destPath':k,'context':g,'config':f});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a118m=a118d;
|
|
1
|
+
const a118m=a118d;(function(a,b){const j=a118d,c=a();while(!![]){try{const d=-parseInt(j(0x86))/0x1+-parseInt(j(0xa2))/0x2*(parseInt(j(0xa3))/0x3)+-parseInt(j(0x8a))/0x4+-parseInt(j(0xa0))/0x5*(-parseInt(j(0x7f))/0x6)+-parseInt(j(0xa8))/0x7+parseInt(j(0x79))/0x8+-parseInt(j(0x7b))/0x9*(-parseInt(j(0x7e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a118c,0xd8ddb));const a118b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a118d;if(c){const e=c[k(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a118a=a118b(this,function(){const l=a118d;return a118a[l(0x7d)]()[l(0x9c)]('(((.+)+)+)+$')[l(0x7d)]()[l(0x90)](a118a)['search'](l(0x81));});a118a();function a118c(){const p=['installNpmPackage','injectAtBeginningOfFile','withHooks','withValue','layouts','css','components','/imports/ui/','baseDir','template','relative','Updating\x20npm\x20packages\x20...','import\x20\x27./','hasOwnProperty','component','2715520LfgKsg','test/test.js','5468949RhsKiw','hook/hook.js','toString','50HTIRUE','5838108KjakIm','graphql','(((.+)+)+)+$','template/template.html','html','react','test','536222RnWeOd','fileName','store','pages','6873140imrvhu','root','.js','pathFromApp','ramda','/imports/ui/pages','constructor','withHook','component/component.js','.html','features','fsi','api','assign','\x27;\x0a','maka\x20g:page\x20todos/todos-item','processAndRunGenerator','engines','search','dir','withTranslations','checkNpmPackage','5nciIpQ','.app-tests.js','38332BvFkde','63fpWhfG','none','string','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','getMakaProjectConfig','5638409QNLhyq','ssr','create','resourceName','pathFromProject','true','injectTemplateModule','warn','setTemplate','apply','client'];a118c=function(){return p;};return a118c();}import a118e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a118f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a118d(a,b){const c=a118c();return a118d=function(d,e){d=d-0x78;let f=c[d];return f;},a118d(a,b);}Generator[a118m(0xaa)]({'name':'page','aliases':aliases,'usage':a118m(0xa6),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a118m(0xbb),'values':['hooks',a118m(0xb9),a118m(0x89),a118m(0xb7)]},{'name':a118m(0x91),'boolFlag':!![]}],'examples':[a118m(0x99)]},async function(a,b){const n=a118m,c=b[n(0xbb)]?n(0xba)+b[n(0xbb)]:n(0x8f),d=this['fsi'][n(0x8d)](b),e=this['fsi'][n(0x8d)]({'pathParts':[c,b[n(0x9d)],paramCase(b['resourceName']),paramCase(b[n(0xab)])]}),f=this[n(0x95)][n(0xa7)]();let g='';return await this[n(0x95)][n(0xb6)](f,async()=>{const o=n;typeof f[o(0xbc)][o(0x83)]===o(0xa5)&&(f[o(0xbc)][o(0x83)]=f[o(0xbc)][o(0x83)]===o(0xad)?!![]:![],this[o(0x95)][o(0xb0)]('html',f['template'][o(0x83)]));typeof f['template']['test']===o(0xa5)&&(f[o(0xbc)]['test']=f[o(0xbc)][o(0x85)]===o(0xad)?!![]:![],this[o(0x95)][o(0xb0)](o(0x85),f['template']['test']));typeof f['template'][o(0xb8)]==='string'&&(f['template'][o(0xb8)]=f['template']['css']==='true'?!![]:![],this[o(0x95)][o(0xb0)](o(0xb8),f[o(0xbc)][o(0xb8)]));typeof f[o(0xbc)]['js']===o(0xa5)&&(f[o(0xbc)]['js']=f[o(0xbc)]['js']===o(0xad)?!![]:![],this[o(0x95)][o(0xb0)]('js',f[o(0xbc)]['js']));!f[o(0x94)]&&(f[o(0x94)]={});!b['root']&&!this[o(0x95)][o(0x9f)]('ramda')&&(Log[o(0xaf)](o(0xbe)),this[o(0x95)][o(0xb3)](o(0x8e),{'cwd':d}));const h={'name':pascalCase(b['resourceName']),'myPath':a118e[o(0xbd)](this[o(0x95)][o(0xac)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[o(0xab)]),'camelCaseName':camelCase(b[o(0xab)]),'fileName':paramCase(b[o(0xab)]),'graphql':f['engines'][o(0x80)],'features':f[o(0x94)],'client':f[o(0x9b)][o(0xb2)],'api':f['engines'][o(0x96)],'ssr':f[o(0x9b)][o(0xa9)],'isStore':b[o(0xc0)](o(0x88)),'isComponent':b[o(0xc0)](o(0x78)),'isLayout':b['hasOwnProperty']('layout'),'withTranslations':f[o(0x94)][o(0x9e)],'test':f['engines'][o(0x85)],'theme':f[o(0x9b)]['theme']};f[o(0xbc)][o(0x83)]&&await this[o(0x95)][o(0xbc)]({'srcPath':o(0x82),'destPath':e+o(0x93),'context':h,'config':f});f[o(0x94)]?.[o(0xb5)]||b['withHook']?await this[o(0x95)][o(0xbc)]({'srcPath':o(0x7c),'destPath':e+'.js','framework':o(0x84),'context':h,'config':f}):await this[o(0x95)][o(0xbc)]({'srcPath':o(0x92),'destPath':e+o(0x8c),'framework':o(0x84),'context':h,'config':f});f[o(0x9b)][o(0x85)]!==o(0xa4)&&await this[o(0x95)][o(0xbc)]({'srcPath':o(0x7a),'destPath':e+o(0xa1),'framework':o(0x84),'context':h,'config':f});f[o(0xbc)][o(0xb8)]&&await this[o(0x95)][o(0xbc)]({'srcPath':'template/template.css','destPath':e+'.css','context':Object[o(0x97)]({},h,{'className':paramCase(b[o(0xab)])}),'config':f});f['engines'][o(0xb2)]!=='react'&&f[o(0x9b)][o(0xb2)]!=='vanilla'?(f[o(0xbc)][o(0xb8)]&&await this[o(0x95)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x9b)]['js'],'content':o(0xbf)+h[o(0x87)]+'.'+f[o(0x9b)]['html']+o(0x98)+o(0xbf)+h[o(0x87)]+'.'+f[o(0x9b)][o(0xb8)]+'\x27;'}),!f[o(0xbc)][o(0xb8)]&&await this[o(0x95)][o(0xb4)]({'filePath':e+'.'+f['engines']['js'],'content':o(0xbf)+h[o(0x87)]+'.'+f[o(0x9b)][o(0x83)]+'\x27;'})):f[o(0xbc)][o(0xb8)]&&await this[o(0x95)][o(0xb4)]({'filePath':e+'.'+f['engines']['js'],'content':o(0xbf)+h[o(0x87)]+'.'+f[o(0x9b)]['css']+'\x27;'});const i=b[o(0x9d)]?'/'+b[o(0x9d)]+'/':'/';g=''+c+i+h[o(0x87)]+'/'+h['fileName'],await this[o(0x95)][o(0xae)](h['className'],f,g),!b[o(0x8b)]&&await a118f[o(0x9a)]('route',[i+b[o(0xab)]],b);}),g+'.'+f[n(0x9b)]['js'];});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
function a119c(){const n=['1436240WTFLUl','getMakaProjectConfig','22164180guxyQW','rewriteDestinationPathForEngine','1048FLNXuX','583036aCdUPz','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','100410tBisrH','2xWjROg','14oGckKu','apply','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','650825WsEuBh','toString','search','publish/publish.','533814Mkikjk','(((.+)+)+)+$','constructor','injectAtEndOfFile','7659olyMIW','resourceName','withValue','fsi','server/publish.','maka\x20g:publish\x20todos','create','templateContent'];a119c=function(){return n;};return a119c();}const a119k=a119d;(function(a,b){const h=a119d,c=a();while(!![]){try{const d=parseInt(h(0x1c3))/0x1*(-parseInt(h(0x1cb))/0x2)+parseInt(h(0x1ca))/0x3+-parseInt(h(0x1c8))/0x4+parseInt(h(0x1b3))/0x5+parseInt(h(0x1b7))/0x6*(-parseInt(h(0x1cc))/0x7)+-parseInt(h(0x1c7))/0x8*(-parseInt(h(0x1bb))/0x9)+parseInt(h(0x1c5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0xb29cd));function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x1b2;let f=c[d];return f;},a119d(a,b);}const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a119d;if(c){const e=c[i(0x1cd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const j=a119d;return a119a[j(0x1b4)]()[j(0x1b5)](j(0x1b8))[j(0x1b4)]()[j(0x1b9)](a119a)[j(0x1b5)](j(0x1b8));});a119a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a119k(0x1c1)]({'name':'publish','aliases':['p'],'usage':a119k(0x1c9),'shortDesc':a119k(0x1b2),'validOpts':[],'examples':[a119k(0x1c0)]},async function(a,b){const l=a119k,c=this[l(0x1be)][l(0x1c4)]();await this['fsi'][l(0x1bd)](c,async()=>{const m=l,d={'name':b[m(0x1bc)],'collection':paramCase(b[m(0x1bc)]),'noRename':!![]};let e='js';c['engines']['js']==='tsx'&&(e='ts');const f=this[m(0x1be)][m(0x1c6)]({'pathParts':[m(0x1bf)+c['engines']['js']]}),g=this[m(0x1be)][m(0x1c2)]({'srcPath':m(0x1b6)+e,'context':d,'config':c});await this[m(0x1be)][m(0x1ba)]({'filePath':f,'content':'\x0a'+g});});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a120A=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(0x1ec))/0x1+parseInt(y(0x1be))/0x2*(parseInt(y(0x1e1))/0x3)+-parseInt(y(0x1f0))/0x4+-parseInt(y(0x1c2))/0x5+-parseInt(y(0x1bd))/0x6*(-parseInt(y(0x1fd))/0x7)+parseInt(y(0x1db))/0x8*(-parseInt(y(0x1f3))/0x9)+-parseInt(y(0x1b8))/0xa*(-parseInt(y(0x1cc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x6f3fc));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(0x1b2)]()[z(0x1e6)](z(0x1cf))['toString']()[z(0x1b5)](a120a)['search'](z(0x1cf));});a120a();function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a120d(a,b);}import a120e from'path';function a120c(){const J=['\x20already\x20exists.\x20\x20Skipping.','filter','search','layout','\x22*\x22','Scaffolding\x20for\x20a\x20Route.','pages','</Router>','345589FFgFlB','includes','toLowerCase','routes.js','1905360RJOPsG','replace','maka\x20g:route\x20pages/about','9YWTIyv','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','warn','dir','cwd','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','join','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','error','map','3178fVgMyg','maka\x20g:route\x20pages/lists/listIndex\x20lists','const\x20publicRoutes\x20=\x20(<>','fsi','imports','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','toString','client','create','constructor','resourceName','root','10tpLsqY','newForm','templateContent','info','/imports/ui/','1626BJXtyX','239868FwPzRu','url','hooks','only','780055aKILbz','baseDir','length','features','engines','layouts','react','Valid\x20options\x20are:\x20','templateName','route/route.js','20192315tFjESC','pathFromProject','injectAfterLineNumber','(((.+)+)+)+$','<Route','rewriteDestinationPathForEngine','const\x20privateRoutes\x20=\x20(<>','components','maka\x20g:route\x20todosIndex\x20todos','split','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','pop','getMakaProjectConfig','true','/imports/ui/pages','5160136sBetel','maka\x20g:route\x20todosEdit\x20todos/:id/edit','indexOf','startup','withHook','private','3pzeIhk','pathFromApp','readFileLines'];a120c=function(){return J;};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(0x1b4)]({'name':'route','aliases':aliases,'validOpts':[a120A(0x1e0),a120A(0x1e7),a120A(0x1c1),a120A(0x1f7),'config',a120A(0x1b7),a120A(0x1df),a120A(0x1bf),a120A(0x1c3)],'usage':a120A(0x1b1),'shortDesc':a120A(0x1e9),'examples':[a120A(0x1d4),a120A(0x1dc),a120A(0x1f4),a120A(0x1ad),a120A(0x1f2)]},async function(a,b){const B=a120A;try{const c=[B(0x1c0),B(0x1d3),B(0x1ea),B(0x1c7)];if(b['baseDir']&&!c['includes'](b['baseDir'])){Log['error']('Invalid\x20directory\x20option\x20\x22'+b[B(0x1c3)]+'\x22'),Log[B(0x1fb)](B(0x1c9)+c[B(0x1f9)](',\x20'));throw new UsageError();}const d=this[B(0x1af)][B(0x1d8)]();await this[B(0x1af)]['withValue'](d,async()=>{const C=B,f=b[C(0x1e0)]??![];let g=b[C(0x1b6)][C(0x1d5)]('/')[C(0x1d7)]();if(!g){Log['error'](C(0x1f8));throw new UsageError();}g=pascalCase(g);let h='/'+b[C(0x1b6)];a[C(0x1c4)]>0x1&&(h='/'+a[C(0x1e5)](function(n){return n!=='/';})['join']('/')[C(0x1ee)]());h=h[C(0x1f1)](/\/\//g,'/');b[C(0x1e7)]&&(b[C(0x1e7)]=camelCase(b[C(0x1e7)]));const i=b['baseDir']?C(0x1bc)+b[C(0x1c3)]:C(0x1da),j=a120e[C(0x1f9)](i,b[C(0x1f6)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x1e7)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d[C(0x1c6)][C(0x1b3)],'newForm':![],'withTranslations':d[C(0x1c5)]['withTranslations']};f&&(k[C(0x1e7)]='PrivateLayout');let l,m;if(d[C(0x1c6)][C(0x1b3)]==='react'){if(d[C(0x1c6)]['ssr']===C(0x1d9)){const r=this[C(0x1af)][C(0x1e2)]({'pathParts':[C(0x1b0),C(0x1de),'lib',C(0x1ef)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[C(0x1af)]['pathFromApp']({'pathParts':[C(0x1b0),'startup',C(0x1b3),C(0x1ef)]});l=this[C(0x1af)][C(0x1d1)]({'pathParts':[s],'config':d});}const n=await this[C(0x1af)]['fileContainsString'](l,g);if(n){Log[C(0x1f5)]('Route\x20'+g+C(0x1e4));return;}else{const t=this[C(0x1af)][C(0x1cd)](l);Log[C(0x1bb)]('Adding\x20route\x20'+g+'\x20to\x20'+l[C(0x1f1)](t,''));}const o=this[C(0x1af)][C(0x1e3)](l)[C(0x1fc)]((u,v)=>{const D=C;return u[D(0x1ed)](D(0x1d6))?v+0x1:null;})[C(0x1e5)](u=>u!==null);let p=this[C(0x1af)][C(0x1e3)](l)[C(0x1fc)]((u,v)=>{const E=C;return u[E(0x1ed)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[C(0x1e5)](u=>u!==null),q=this[C(0x1af)][C(0x1e3)](l)[C(0x1fc)]((u,v)=>{const F=C;return u[F(0x1ed)](F(0x1d2))?v+0x1:null;})['filter'](u=>u!==null);p[C(0x1c4)]>0x0&&q[C(0x1c4)]>0x0&&(k[C(0x1b9)]=!![]);m=this['fsi'][C(0x1ba)]({'srcPath':C(0x1cb),'framework':C(0x1c8),'context':k,'config':d});if(p[C(0x1c4)]>0x0||q['length']>0x0){this[C(0x1af)][C(0x1ce)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x1c4)]>0x0)q=this['fsi'][C(0x1e3)](l)[C(0x1fc)]((u,v)=>{const G=C;return u['includes'](G(0x1d2))?v+0x1:null;})['filter'](u=>u!==null),this[C(0x1af)][C(0x1ce)]({'filePath':l,'content':'\x09{'+k[C(0x1ca)]+'}','lineNumber':q[0x0]});else p[C(0x1c4)]>0x0?(p=this[C(0x1af)][C(0x1e3)](l)[C(0x1fc)]((u,v)=>{const H=C;return u[H(0x1ed)](H(0x1ae))?v+0x1:null;})[C(0x1e5)](u=>u!==null),this[C(0x1af)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0x1ca)]+'}','lineNumber':p[0x0]})):Log[C(0x1f5)](C(0x1fa)+l);}else{const u=this['fsi']['readFileLines'](l)['map'](x=>{const I=C;return x['includes'](I(0x1e8));}),v=u[C(0x1dd)](!![])>-0x1,w=v?C(0x1d0):C(0x1eb);await this[C(0x1af)]['injectIntoFile']({'filePath':l,'content':'\x0a\x09\x09'+m+'\x0a\x09\x09','begin':'<Router','end':w});}}else{if(d[C(0x1c6)][C(0x1b3)]==='vanilla'){const x=this[C(0x1af)][C(0x1e2)]({'pathParts':[C(0x1b0),C(0x1de),C(0x1b3),C(0x1ef)]});l=this[C(0x1af)]['rewriteDestinationPathForEngine']({'pathParts':[x],'config':d}),m=this[C(0x1af)][C(0x1ba)]({'srcPath':'route/route.js','context':k}),await this[C(0x1af)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x1fb)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a121m=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=-parseInt(j(0x10f))/0x1*(-parseInt(j(0x11c))/0x2)+-parseInt(j(0x12e))/0x3*(-parseInt(j(0x131))/0x4)+-parseInt(j(0x12c))/0x5+-parseInt(j(0x124))/0x6*(-parseInt(j(0x12f))/0x7)+-parseInt(j(0x115))/0x8*(-parseInt(j(0x10e))/0x9)+parseInt(j(0x127))/0xa*(-parseInt(j(0x12d))/0xb)+parseInt(j(0x134))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x9f81f));const a121b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a121d;if(c){const e=c[k(0x116)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a121a=a121b(this,function(){const l=a121d;return a121a[l(0x120)]()[l(0x121)]('(((.+)+)+)+$')['toString']()[l(0x11f)](a121a)[l(0x121)](l(0x114));});a121a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a121c(){const p=['apply','logger','startup','resourceName','winston','Installing\x20winston','43770MTVOxb','imports','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','constructor','toString','search','services','withValue','1475886oxhZpG','maka\x20g:svc\x20service-logger\x20--type=logger','svc','764630hqayBc','type','maka\x20{generate,\x20g}:{service}\x20<resource-name>','engines','service/logger/logger.js','5661820wKACzW','187XylXUm','29940UutbHN','7iHGynD','lib','200kprxDL','installNpmPackage','service','17654652KpTFYG','tsx','fsi','2112399EwkzaX','29fYpMyr','checkNpmPackage','pathFromApp','create','error','(((.+)+)+)+$','8CKCTmO'];a121c=function(){return p;};return a121c();}function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x10c;let f=c[d];return f;},a121d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a121m(0x112)]({'name':a121m(0x133),'aliases':[a121m(0x126)],'usage':a121m(0x129),'shortDesc':a121m(0x11e),'requiredOpts':[{'name':a121m(0x128),'values':[a121m(0x117)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121m(0x125)]},async function(a,b){const n=a121m;try{const c=this[n(0x10d)]['getMakaProjectConfig']();await this[n(0x10d)][n(0x123)](c,async()=>{const o=n,d=this[o(0x10d)][o(0x111)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x119)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[o(0x12a)]['js'],'noRename':!![]};let h='js';c[o(0x12a)]['js']===o(0x10c)&&(h='ts');if(b[o(0x128)]==='logger'){!this[o(0x10d)][o(0x110)](o(0x11a))&&await this[o(0x10d)][o(0x132)]('winston\x20setimmediate',{'cwd':d,'msg':o(0x11b)});const i=this[o(0x10d)]['pathFromApp']({'pathParts':[o(0x11d),o(0x118),o(0x130),o(0x122),f+'.'+h]});await this['fsi']['template']({'srcPath':o(0x12b),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x113)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a122d,c=a();while(!![]){try{var d
|
|
1
|
+
function a122c(){var h=['toString','54084nOCGgI','183789EOTOFs','(((.+)+)+)+$','32380mHAZxJ','8566770xJjBnL','search','195LLglIu','6044787sjNNSn','63bpSkjN','3994848NbohPN','605816rLIgVk','9Helybd'];a122c=function(){return h;};return a122c();}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=-parseInt(f(0x18d))/0x1+-parseInt(f(0x18f))/0x2*(parseInt(f(0x187))/0x3)+parseInt(f(0x18c))/0x4*(parseInt(f(0x192))/0x5)+parseInt(f(0x188))/0x6+parseInt(f(0x186))/0x7+-parseInt(f(0x189))/0x8+-parseInt(f(0x18a))/0x9*(parseInt(f(0x190))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x929a5));var a122b=(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;};}()),a122a=a122b(this,function(){var g=a122d;return a122a['toString']()['search'](g(0x18e))[g(0x18b)]()['constructor'](a122a)[g(0x191)](g(0x18e));});function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0x186;var f=c[d];return f;},a122d(a,b);}a122a();import'./translation.js';import'./openssl.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a123l=a123d;(function(a,b){const i=a123d,c=a();while(!![]){try{const d=-parseInt(i(0x8f))/0x1+parseInt(i(0x84))/0x2+parseInt(i(0x86))/0x3+-parseInt(i(0x87))/0x4*(-parseInt(i(0x9a))/0x5)+parseInt(i(0x97))/0x6+-parseInt(i(0x88))/0x7+-parseInt(i(0x8c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x2f942));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0x8d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a[k(0x85)]()[k(0x8e)](k(0x96))['toString']()[k(0x91)](a123a)['search'](k(0x96));});a123a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a123e from'path';function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x83;let f=c[d];return f;},a123d(a,b);}Generator[a123l(0x9b)]({'name':a123l(0x94),'usage':a123l(0x93),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':[a123l(0x83)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0x89)][m(0x92)](),d=await this[m(0x89)][m(0x8a)](),f=this[m(0x89)][m(0x95)](b[m(0x83)]),g=a123e['join'](f,m(0x99),'openssl.conf');await this[m(0x89)][m(0x8b)](c,async()=>{const n=m,h={'app':d[n(0x98)],'noRename':!![]};await this[n(0x89)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x90),'context':h,'config':c});});}catch(h){Log['error'](h);}});function a123c(){const o=['getGlobalConfig','withValue','6566584IcPBCB','apply','search','129194lXaSOB','service','constructor','getMakaProjectConfig','maka\x20{generate,\x20g}:sslconfig','sslconfig','getAppConfigPath','(((.+)+)+)+$','2073330LaVEro','appName','_keys','2245Xckcnl','create','env','508190VwuslD','toString','764835ovpFYG','2780aBrIwG','152257ENOtoR','fsi'];a123c=function(){return o;};return a123c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a124c(){const
|
|
1
|
+
const a124z=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=parseInt(x(0x1c0))/0x1+parseInt(x(0x1d2))/0x2*(parseInt(x(0x1d4))/0x3)+parseInt(x(0x1ad))/0x4+parseInt(x(0x1a2))/0x5+parseInt(x(0x1c4))/0x6+-parseInt(x(0x1bc))/0x7+parseInt(x(0x19a))/0x8*(-parseInt(x(0x1ab))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x58800));function a124c(){const C=['services','fsi','features.withTranslations','8qKKKOn','withValue','maka\x20g:translation\x20--lang=fr','translations','pathFromApp','exit','imports','import\x20\x27../lib/services/translations/i18n\x27;','2897165gonGIt','Locale\x20already\x20exported:\x20','installNpmPackage','toString','grep','startup','getMakaProjectConfig','locales','maka\x20g:translation\x20--lang=de','15270237SCiOvy','create','995992xGVOna','constructor','import\x20\x27../lib/services/translations/i18n\x27;\x0a','client','template','i18n/index.js','appName','lib','injectAtEndOfFile','i18n/i18n.js','\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','checkNpmPackage','isFile','rewriteDestinationPathForEngine','injectAtBeginningOfFile','647521OKOjDw','maka\x20{generate,\x20g}:translation','engines','service','512308qpxBxh','readFileSync','ssr','i18next','950556COKQvG','maka\x20g:translation\x20--lang=en\x20(default)','index.','server','error','setProjectConfig','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','true','index.js','lang','warn','Locale\x20already\x20defined:\x20','export\x20{\x20default\x20as\x20','findAppDirectory','1305054sPKzxf','i18n.js','3iaaToZ','\x20}\x20from\x20\x27./','.js','root','(((.+)+)+)+$'];a124c=function(){return C;};return a124c();}const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const y=a124d;return a124a[y(0x1a5)]()['search'](y(0x196))['toString']()[y(0x1ae)](a124a)['search'](y(0x196));});a124a();import{Generator}from'../../generator.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0x194;let f=c[d];return f;},a124d(a,b);}import{Log}from'../../tools/log/log.class.js';import a124e from'fs';Generator[a124z(0x1ac)]({'name':'translation','usage':a124z(0x1bd),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124z(0x1cd),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a124z(0x1b7),'examples':[a124z(0x1c5),a124z(0x19c),a124z(0x1aa)],'validOpts':[]},async function(a,b){const A=a124z;try{const c=this[A(0x198)][A(0x1a8)](),d=this[A(0x198)]['getGlobalConfig'](),f=this[A(0x198)][A(0x1d1)]();await this[A(0x198)][A(0x19b)](c,async()=>{const B=A;try{!b[B(0x1cd)]&&(b[B(0x1cd)]='en');!b[B(0x195)]&&!this[B(0x198)][B(0x1b8)](B(0x1c3))&&(Log[B(0x1ce)](B(0x1ca)),this[B(0x198)][B(0x1a4)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this['fsi'][B(0x1c9)](B(0x199),!![]));const g=this[B(0x198)]['pathFromApp']({'pathParts':[B(0x1a0),B(0x1a7),B(0x1b0),B(0x1cc)]}),h=this[B(0x198)][B(0x1ba)]({'pathParts':[g],'config':c}),i=this['fsi'][B(0x1a6)](a124e[B(0x1c1)](h)[B(0x1a5)](),B(0x1a1))[0x0]&&!![];if(c[B(0x1be)][B(0x1c2)]===B(0x1cb)){!i&&this['fsi'][B(0x1bb)]({'filePath':h,'content':B(0x1af)});const t=this[B(0x198)][B(0x19e)]({'pathParts':[B(0x1a0),'startup',B(0x1c7),B(0x1cc)]}),u=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[B(0x198)][B(0x1a6)](a124e[B(0x1c1)](u)[B(0x1a5)](),B(0x1a1))[0x0]&&!![];!v&&this['fsi'][B(0x1bb)]({'filePath':u,'content':B(0x1af)});}else!i&&this[B(0x198)][B(0x1bb)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[B(0x1b3)],'config':c},k=this['fsi'][B(0x19e)]({'pathParts':['imports',B(0x1a7),'lib',B(0x197),B(0x19d),B(0x1d3)]}),l=this[B(0x198)]['isFile'](this[B(0x198)][B(0x1ba)]({'pathParts':[k],'config':c}));!l&&await this[B(0x198)][B(0x1b1)]({'srcPath':B(0x1b6),'destPath':k,'framework':B(0x1bf),'context':j,'config':c});const m=this[B(0x198)][B(0x19e)]({'pathParts':[B(0x1a0),B(0x1a7),B(0x1b4),B(0x197),'translations',B(0x1a9),b['lang']+B(0x194)]}),n=this[B(0x198)][B(0x1ba)]({'pathParts':[m],'config':c}),o=this['fsi'][B(0x1b9)](n);!o?await this['fsi']['template']({'srcPath':'i18n/locales.js','destPath':m,'framework':B(0x1bf),'context':j,'config':c}):Log['warn'](B(0x1cf)+n);const p=this[B(0x198)][B(0x19e)]({'pathParts':[B(0x1a0),B(0x1a7),'lib',B(0x197),B(0x19d),B(0x1a9),B(0x1c6)+c[B(0x1be)]['js']]}),q=this[B(0x198)][B(0x1ba)]({'pathParts':[p],'config':c}),r=this[B(0x198)][B(0x1b9)](q);!r&&await this[B(0x198)]['template']({'srcPath':B(0x1b2),'destPath':p,'framework':B(0x1bf),'context':j,'config':c});const s=this[B(0x198)][B(0x1a6)](a124e[B(0x1c1)](p)['toString'](),'default\x20as\x20'+b[B(0x1cd)])[0x0]&&!![];!s?await this[B(0x198)][B(0x1b5)]({'filePath':p,'content':B(0x1d0)+b[B(0x1cd)]+B(0x1d5)+b[B(0x1cd)]+'\x27;'}):Log[B(0x1ce)](B(0x1a3)+p);}catch(w){Log[B(0x1c8)](w),process['exit'](0x1);}});}catch(g){Log[A(0x1c8)](g),process[A(0x19f)](0x1);}});
|
package/bundle/obf/src/maka.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=-parseInt(j(0x17e))/0x1+parseInt(j(0x173))/0x2*(-parseInt(j(0x180))/0x3)+-parseInt(j(0x16f))/0x4+-parseInt(j(0x177))/0x5*(-parseInt(j(0x172))/0x6)+-parseInt(j(0x186))/0x7+-parseInt(j(0x17d))/0x8*(-parseInt(j(0x171))/0x9)+parseInt(j(0x182))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0xce3a7));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x185)]()[l(0x17c)](l(0x188))['toString']()[l(0x183)](a125a)['search']('(((.+)+)+)+$');});a125a();import a125e from'minimist';import a125f from'os';function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x16d;let f=c[d];return f;},a125d(a,b);}import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';function a125c(){const n=['300432mtnIaa','NODE_NO_WARNINGS','camelizeKeys','stringify','377120xELfnk','run','url','floor','env','search','529560nLRfdF','1352714TCmLWw','--max-old-space-size=','24GYxtNy','TOOL_NODE_FLAGS','28971140BMbwcd','constructor','parse','toString','1953847DFEFeC','apply','(((.+)+)+)+$','slice','dirname','1893444HrAKSQ','MAKA_COMMAND_PATH','27ggRYwn','84NMqJyY'];a125c=function(){return n;};return a125c();}import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125m(0x179)]),__dirname=a125g[a125m(0x16e)](__filename);global[a125m(0x170)]=__dirname;const total_memory=a125f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0x17a)](total_mem_in_mb),process['env'][a125m(0x181)]=a125m(0x17f)+total_mem_in_mb,process[a125m(0x17b)]['BROWSERSLIST_IGNORE_OLD_DATA']='1',process[a125m(0x17b)][a125m(0x174)]='1';const argv=a125e(process['argv'][a125m(0x16d)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x184)](JSON[a125m(0x176)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0x175)](deepCopyArgv);a125i[a125m(0x178)](args,opts);
|
package/bundle/obf/src/tool.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=-parseInt(I(0x1f3))/0x1*(-parseInt(I(0x1d0))/0x2)+-parseInt(I(0x1da))/0x3*(parseInt(I(0x1bf))/0x4)+parseInt(I(0x1cd))/0x5*(-parseInt(I(0x1e0))/0x6)+-parseInt(I(0x20a))/0x7*(-parseInt(I(0x1df))/0x8)+parseInt(I(0x1c7))/0x9+parseInt(I(0x1bc))/0xa+parseInt(I(0x1ea))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x4ab04));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0x1fe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a[K(0x1ba)]()[K(0x1c8)](K(0x1bb))[K(0x1ba)]()[K(0x1b6)](a126a)['search']('(((.+)+)+)+$');});a126a();import a126e from'path';import a126f from'os';import a126g from'fs';function a126c(){const a2=['45RvYCbv','env','isCommand','assign','No\x20usage\x20provided.','200NpDdax','3589602XlPEdM','fsi','Please\x20provide\x20a\x20resource\x20name:','To\x20use\x20this\x20generator,\x20\x22','engines','getAppProjectConfigs','includes','examples','findProjectDirectory','error','3098337tSAKBN','config','shortDesc','push','options','dir','domainLicense','To\x20use\x20this\x20command,\x20\x22','cwd','3jZUxjP','parent','Invalid\x20argument:\x20','AppData','map','match','You\x20must\x20have\x20','formatToNamedParam','homedir','name','keys','apply','docker','\x20version\x20','.meteor','win32','Please\x20choose\x20an\x20environment','join','proCommands','validateMeteorInstall','validateParams','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','singleLicense','22862eVqRdS','isGenerator','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','validateEngines','constructor','find','remapShortToLong','length','toString','(((.+)+)+)+$','2609710muVXSu','_handler','resourceName','51728pLkvoB','isPro','Local','getShortName','list','Please\x20provide\x20a\x20value\x20for\x20','aliases','usage','1923129IMTilF','search','concat','description','validateMakaProject','No\x20description\x20provided.','5AmRLhm','platform','Invalid\x20option:\x20','173468BOniDP','getPro','existsSync','proGenerators','disableAuthCheck','Please\x20choose\x20a\x20value\x20for\x20','every','validateMakaSubscription','ask','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27'];a126c=function(){return a2;};return a126c();}const homeDir=a126f[a126L(0x1fb)]();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a126d(a,b);}export class Tool{['docker'];[a126L(0x1e1)];[a126L(0x1ee)];[a126L(0x1fc)];[a126L(0x1f4)];[a126L(0x1bd)];constructor(){const M=a126L;this[M(0x1ff)]=new Docker(),this['fsi']=new FSI();}[a126L(0x1c2)](a){return a['charAt'](0x0);}[a126L(0x1b8)](a,b){const N=a126L,c=this[N(0x1fa)](b),d={...a};for(const e of c){const f=this[N(0x1c2)](e['name']);a[f]&&(d[e[N(0x1fc)]]=a[f],delete d[f]);}return d;}[a126L(0x1fa)](a){const O=a126L;if(a[O(0x1d6)](b=>typeof b==='string'))return a[O(0x1f7)](b=>({'name':b}));return a;}[a126L(0x1f8)](a){const P=a126L,b=[this[P(0x1fc)]]['concat'](this[P(0x1ee)][P(0x1c5)]||[]);return this[P(0x1f4)]&&b[P(0x1ed)](this[P(0x1f4)]),b[P(0x1e6)](a);}[a126L(0x1cb)](){const Q=a126L,a=this[Q(0x1e1)][Q(0x1e8)]();return a!==![]?!![]:![];}[a126L(0x206)](){const R=a126L;let a=a126e[R(0x204)](homeDir,R(0x201));const b=process[R(0x1ce)]===R(0x202);if(b){a=a126e[R(0x204)](homeDir,R(0x1f6),R(0x1c1),'.meteor');if(!a126g[R(0x1d2)](a))return![];}else{if(!a126g['existsSync'](a))return![];}return!![];}[a126L(0x1b5)](a){const S=a126L,b=this[S(0x1e1)]['getMakaProjectConfig'](),c=b[S(0x1e4)],d=Object['keys'](a);if(d[S(0x1b9)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[S(0x1e9)](S(0x1f9)+e+S(0x200)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a126L(0x207)](a,b,c){const T=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[T(0x1fd)](b);if(h[T(0x1e6)]('resourceName')&&b['resourceName']===undefined&&!g){const m=await Actions[T(0x1d8)](T(0x1e2));b[T(0x1be)]=m;}let i=[],j=b;if(d){i=this[T(0x1fa)](d),j=this[T(0x1b8)](b,i);if(i&&i?.[T(0x1b9)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0x1fd)](j)['includes'](o)){if(o===T(0x1db)){const r=this[T(0x1e1)][T(0x1e5)](),s=await Actions[T(0x1ee)]({'type':T(0x1c3),'name':T(0x1db),'message':T(0x203),'choices':r});b[T(0x1db)]=s['env'];}else{const t=p;if(t){const u=await Actions[T(0x1ee)]({'type':T(0x1c3),'name':o,'message':T(0x1d5)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0x1d8)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[T(0x1f8)](q))b[o]=v;else{Log[T(0x1e9)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0x1d8)](T(0x1c4)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0x1e6)](x)){Log[T(0x1e9)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object['keys'](k)?.[T(0x1b9)]>0x0){k=k[T(0x1c9)](i||[]),k[T(0x1ed)]({'name':'resourceName','hidden':!![]}),k[T(0x1ed)]({'name':'help','boolFlag':!![]}),k[T(0x1ed)]({'name':T(0x1ef),'hidden':!![]}),k[T(0x1ed)]({'name':T(0x1f2),'hidden':!![]}),k['push']({'name':'root','hidden':!![]}),k[T(0x1ed)]({'name':T(0x1eb),'hidden':!![]}),l=this[T(0x1b8)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[T(0x1e6)](B))){const C=A;if(C){const D=await Actions['options']({'type':T(0x1c3),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k[T(0x1b9)]>0x0)for(const E of Object['keys'](l)){const F=k[T(0x1b7)](G=>G['name']===E);if(!F){Log[T(0x1e9)](T(0x1cf)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[T(0x1e6)](G)){Log[T(0x1e9)](T(0x1f5)+G);const H=await Actions[T(0x1d8)](T(0x20c)+G);a[a['indexOf'](G)]=H;}}return Object[T(0x1dd)](j,l);}async[a126L(0x1d7)](a){const U=a126L;try{if(!a)return;const b=await this[U(0x1e1)][U(0x1d1)]();!b&&(Log[U(0x1e9)](U(0x208)),process['exit'](0x1));const c=!b?.['roles'][U(0x1e6)](U(0x209))&&!b?.['roles'][U(0x1e6)](U(0x1f0));if(this[U(0x1dc)](a)){const d=U(0x1f1)+a[U(0x1fc)]+U(0x1d9);if(a[U(0x1ee)][U(0x1d4)])return;const f=b?.[U(0x205)][U(0x1e6)](a[U(0x1fc)])||b?.[U(0x205)][U(0x1e6)](a[U(0x1f4)]||'')||this[U(0x1ee)][U(0x1c0)];if(f&&c)throw d;}else{if(this[U(0x20b)](a)){const g=b?.[U(0x1d3)][U(0x1e6)](a[U(0x1fc)])||b?.[U(0x1d3)][U(0x1e6)](a['parent']||'');if(g&&c)throw U(0x1e3)+a[U(0x1fc)]+U(0x1d9);}}}catch(h){Log[U(0x1e9)](h),process['exit'](0x1);}}[a126L(0x1dc)](a){const V=a126L;return V(0x1ee)in a;}['isGenerator'](a){const W=a126L;return!(W(0x1ee)in a);}[a126L(0x1ca)](){const X=a126L;return this[X(0x1ee)]['description']||this[X(0x1ee)][X(0x1ec)]||X(0x1cc);}['shortDesc'](){const Y=a126L;return this[Y(0x1ee)]['shortDesc']||'NIE';}[a126L(0x1c6)](){const Z=a126L;return this[Z(0x1ee)][Z(0x1c6)]||Z(0x1de);}[a126L(0x1e7)](){const a0=a126L;return this[a0(0x1ee)][a0(0x1e7)]||[];}['aliases'](){const a1=a126L;return this[a1(0x1ee)]['aliases']||'None';}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a127i=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xe8;let f=c[d];return f;},a127d(a,b);}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0xf2))/0x1+parseInt(f(0xf3))/0x2+-parseInt(f(0xe9))/0x3*(parseInt(f(0xf6))/0x4)+-parseInt(f(0xef))/0x5+-parseInt(f(0xf8))/0x6*(-parseInt(f(0xf1))/0x7)+-parseInt(f(0xea))/0x8+parseInt(f(0xe8))/0x9*(parseInt(f(0xfc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xcf495));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0xed)]()[h(0xeb)](h(0xf0))[h(0xed)]()[h(0xf5)](a127a)[h(0xeb)](h(0xf0));});a127a();function a127c(){const l=['6vwIZfF','options','prompt','answer','10lBBaYu','ask','39538404RKMjrf','2570511WPBWgC','8823480OyaUGm','search','password','toString','apply','8325380hxHaYd','(((.+)+)+)+$','1040081kETAfn','1336904KSKOMp','2538116aacJyM','confirm','constructor','4wQuJFu','input'];a127c=function(){return l;};return a127c();}import a127e from'inquirer';export class Actions{static async[a127i(0xfd)](a,b){const j=a127i,{answer:c}=await a127e[j(0xfa)]({'type':b?j(0xec):j(0xf7),'name':j(0xfb),'message':a});return c;}static async[a127i(0xf4)](a,b=![]){const k=a127i,{answer:c}=await a127e[k(0xfa)]({'type':k(0xf4),'name':k(0xfb),'message':a,'default':b});return c;}static async[a127i(0xf9)](a){const b=await a127e['prompt'](a);return b;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x117))/0x1+parseInt(p(0x132))/0x2*(-parseInt(p(0x121))/0x3)+-parseInt(p(0xbd))/0x4+-parseInt(p(0xd6))/0x5+-parseInt(p(0xf1))/0x6*(parseInt(p(0x128))/0x7)+parseInt(p(0xea))/0x8+parseInt(p(0x113))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x5251d));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0x11a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0xdd)]()[r(0xc2)](r(0x13b))[r(0xdd)]()['constructor'](a128a)[r(0xc2)](r(0x13b));});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 a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xb8;let f=c[d];return f;},a128d(a,b);}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';function a128c(){const X=['Instance\x20rebooted!','minCount','Error\x20creating\x20hosted\x20zone','createKeyPair','error','Error\x20generating\x20key\x20pair','.pem.txt','618986xeuAvF','$metadata','\x20CIDR:\x20','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','confirm','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','\x20Error\x20Rason:\x20','Key\x20Name:\x20[','ec2create','(((.+)+)+)+$','Successfully\x20linked\x20EC2\x20instance\x20','privateIp','\x20opened!','sgIds','listHostedZonesByName','running','Prices','instanceId','1065592IdRcLM','/dev/sdh','\x20ENV:\x20','exit','readFileSync','search','Pem\x20key\x20saved\x20to\x20','No\x20instances\x20found','Instances','vpcId','UPSERT','push','Invalid\x20choice','0.0.0.0/0','\x20NAME:\x20','Error\x20linking\x20EC2\x20to\x20Route\x2053:','tag:created-by','VpcId','httpStatusCode','maxCount','send','getMakaProjectConfig','length','Name','\x20PUB_IP:\x20','2431805VALrIR','isFile','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','name','deleteKeyPair','status','ask','toString','Port\x20','Reservations','\x20to\x20','ssh.json','sgPorts','createFile','success','cidr','Could\x20not\x20find\x20hosted\x20zone','Please\x20choose\x20a\x20VPC:\x20[0]\x20','type','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','858096GutVpt','join','changeResourceRecordSets','Description:','maka-cli','find','**\x20Available\x20\x20VPCs\x20**','36Snbdut','chmod\x20400\x20','parse','chooseInstance','_keys','fsi','Availability','tcp','file://','ID:\x20','now','utf8','RegistrationPrice','pem','\x20INSTANCE_ID:\x20','AVAILABLE','ec2terminateInstance','split','checkDomainAvailability','createKeyPairEC2Key','instance','KeyMaterial','config','deleteSecurityGroup','ec2describeInstances','Web\x20App','registerDomain','chooseVPC','ecrCreateRepository','reason','notice','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','ingressRule','environment','13839120XReTCr','route53CreateHostedZone','forEach','GroupId','89971hjSvjS','ignore','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','apply','GroupName','sgId','writeFileSync','CidrBlock','description','Hosted\x20zone\x20created\x20successfully!','3XZQjeD','The\x20domain\x20\x27','HostedZones','ec2createSG','Error\x20saving\x20pem\x20file,\x20aborting','log','stringify','181461nxhOBC','$response','\x27\x20has\x20been\x20registered\x20successfully.'];a128c=function(){return X;};return a128c();}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(0xf6)];constructor(){const t=a128s;this[t(0xf6)]=new FSI();}async[a128s(0x10d)](a){const u=a128s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x12f)](f);}}async[a128s(0x114)](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0xfb)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[v(0xe4)](v(0x120));}catch(d){Log['error'](v(0x12d)),console['error'](d);}}async[a128s(0x10b)](a,b,c,d){const w=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[w(0x10f)](w(0x122)+b+w(0x12a));}catch(g){Log[w(0x12f)](w(0xd8)),Log['warn']('From\x20AWS:'),console['error']('\x20Status\x20Code:\x20'+g[w(0x129)]['statusCode']),console[w(0x12f)](w(0x138)+g[w(0x129)][w(0x10e)]);}}async[a128s(0x103)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0xd1)](c),e=d[x(0xf7)]===x(0x100);if(e){const f=a['split']('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0xd1)](h);if(i&&i['Prices']&&i[x(0xbb)][0x0]?.[x(0xfd)]){const j=i['Prices'][0x0][x(0xfd)];return{'available':e,'cost':j};}}catch(k){console[x(0x12f)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a128s;try{const d=await route53[y(0xb9)]({'DNSName':c});if(!d?.['HostedZones'])throw Log[y(0x12f)](y(0xe6));const e=d?.[y(0x123)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0xc7),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0xec)](f),Log[y(0x10f)](y(0x13c)+a+y(0xe0)+c);}catch(g){console['error'](y(0xcc),g);}}async[a128s(0x13a)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0xbe),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[z(0xe8)],'KeyName':a['key'],'MaxCount':a[z(0xd0)],'MinCount':a[z(0x12c)],'SecurityGroupIds':a[z(0xb8)][z(0x102)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':z(0x105),'Tags':a['tags']}]};a['userData']&&(b['UserData']=z(0xf9)+a['userData']);const c=new RunInstancesCommand(b),d=await client[z(0xd1)](c);return d;}catch(f){Log[z(0x12f)](f);}}async[a128s(0x101)](a){const A=a128s;try{const b={'InstanceIds':[a[A(0xbc)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x12f)](f),{};}}async[a128s(0x104)]({keyName:a,env:b}){const B=a128s,c=this[B(0xf6)]['getAppConfigPath'](b),d=a128f[B(0xeb)](c,B(0xf5),a+B(0x131));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0xd1)](g),i=h[B(0x106)];if(i){await this[B(0xf6)][B(0xe3)]({'filePath':d,'data':i}),execSync(B(0xf2)+d,{'stdio':B(0x118)});const j=this[B(0xf6)][B(0xd7)](d);if(j)return Log[B(0xe4)](B(0xc3)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x125));}else throw new Error(B(0x130));}catch(k){Log[B(0x12f)](k),process[B(0xc0)](0x1);}}async[a128s(0x111)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0xf8),'IpRanges':[{'CidrIp':C(0xca),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log['notice'](C(0xde)+a+C(0x13e)),await client['send'](d);}async[a128s(0x124)](a){const D=a128s;try{a[D(0x11f)]===''&&(a['description']=await Actions['ask'](D(0xed))||D(0x10a));const b={'Description':a['description'],'GroupName':a['name'],'VpcId':a[D(0xc6)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0xd1)](c),{GroupId:f}=d;if(!d)throw new Error(D(0xe9));f&&a[D(0xe2)]['forEach'](g=>{const E=D;this[E(0x111)]({'port':parseInt(g),'groupId':f});}),Log['success']('Created:\x20'+f+D(0xcb)+a['name']);}catch(g){return Log[D(0x12f)](g),![];}return!![];}async['ec2describeKeys'](a){const F=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0xd1)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const G=F;h['KeyName']&&b[G(0xc8)]({'id':i,'name':h['KeyName']});}),b[F(0xd3)]>0x0&&b[F(0x115)](h=>{const H=F;h['name']===a?.['suggestion']?Log[H(0xe4)](H(0xfa)+h['id']+H(0xcb)+h[H(0xd9)]):Log[H(0x10f)](H(0xfa)+h['id']+H(0xcb)+h[H(0xd9)]);})):Log[F(0x12f)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[F(0x12f)](h);}return b;}async[a128s(0xda)](a){const I=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[I(0x12f)](d),process[I(0xc0)](0x1);}}async[a128s(0x109)](){const J=a128s,a=[];try{const b={'Filters':[{'Name':J(0xcd),'Values':[J(0xee)]}]},c=new DescribeInstancesCommand(b),d=await client[J(0xd1)](c);d[J(0xdf)]?.[J(0x115)]((f,g)=>{const K=J;if(f?.[K(0xc5)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0xc5)][0x0],n=m?.[K(0xef)](({Key:o})=>o===K(0x112));a[K(0xc8)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0xd4)],'name':l,'env':n?.['Value']});}}),a[J(0xd3)]>0x0?a[J(0x115)](f=>{const L=J,g='ID:\x20'+f['id']+L(0xcb)+f['name']+L(0xbf)+f['env']+'\x20STATUS:\x20'+f[L(0xdb)]+L(0xff)+f['instanceId']+L(0xd5)+f['publicIp']+'\x20PRIV_IP:\x20'+f[L(0x13d)];if(f['status']==='terminated')Log['error'](g);else f['status']===L(0xba)?Log['success'](g):Log['notice'](g);}):Log[J(0x12f)](J(0x110));}catch(f){Log[J(0x12f)](f);}return a;}async['ec2rebootInstance'](a){const M=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[M(0xd1)](c);return d[M(0x133)][M(0xcf)]===0xc8&&Log[M(0xe4)](M(0x12b)),d;}catch(f){Log[M(0x12f)](f);}}async[a128s(0x10c)](){const N=a128s;let a='';Log[N(0x10f)](N(0xf0));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const O=N;g[O(0xce)]&&g[O(0x11e)]&&e[O(0xc8)]({'id':h,'vpcId':g['VpcId'],'cidr':g[O(0x11e)]});});e[N(0x115)](function(g){const P=N;console[P(0x126)](P(0xfa)+g['id']+'\x20VPCID:\x20'+g[P(0xc6)]+P(0x134)+g[P(0xe5)]);});const f=await Actions[N(0xdc)](N(0xe7))||0x0;e[N(0x115)](function(g){const Q=N;g['id']==f&&(a=g[Q(0xc6)],Log[Q(0xe4)](Q(0x135)+a+'\x0a'));});if(a==='')return Log[N(0x12f)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a128s(0xf4)](){const R=a128s,a=await this[R(0x109)]();if(a[R(0xd3)]===0x0)return Log[R(0x12f)](R(0xc4)),null;const b=await Actions[R(0xdc)](R(0x119));!b&&(Log[R(0x12f)](R(0xc9)),process[R(0xc0)](0x0));const c=a[R(0xef)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0x12e)]({env:a}){const S=a128s,b=this[S(0xf6)][S(0xd2)](),{appName:c}=b,d=c+'-'+a,f=await Actions[S(0xdc)](S(0x139)+d+']\x20')||d,{filePath:g}=await this[S(0x104)]({'keyName':f,'env':a});try{const h=await Actions[S(0x136)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a128e[S(0xc1)](a128f[S(0xeb)](S(0x107),a,S(0xe1)),S(0xfc)),j=JSON[S(0xf3)](i);j[S(0xfe)]=a128f[S(0xeb)]('_keys',f+S(0x131)),a128e[S(0x11d)](a128f[S(0xeb)](S(0x107),a,S(0xe1)),JSON[S(0x127)](j,null,0x2));}catch(k){Log['error'](k),Log[S(0x12f)](S(0x137));}}catch(l){Log[S(0x12f)](l),process[S(0xc0)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const T=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0xd1)](d),{SecurityGroups:f}=e;f&&f[T(0x115)](function(i,j){const U=T;i[U(0x11b)]&&i[U(0x116)]&&b[U(0xc8)]({'id':j,'name':i[U(0x11b)],'sgId':i[U(0x116)]});});let g='',h=0x0;return b[T(0x115)](function(i){const V=T;i[V(0xd9)]===a&&(g=i[V(0x11c)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x108)](a){const W=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0xd1)](c);}catch(d){Log[W(0x12f)](d),process[W(0xc0)](0x1);}}}
|
|
1
|
+
const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=-parseInt(p(0x10f))/0x1+-parseInt(p(0xee))/0x2+-parseInt(p(0xbe))/0x3*(-parseInt(p(0xc7))/0x4)+-parseInt(p(0x10a))/0x5+-parseInt(p(0xf9))/0x6*(parseInt(p(0xe7))/0x7)+parseInt(p(0xd0))/0x8+-parseInt(p(0xff))/0x9*(-parseInt(p(0xb5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x878af));function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x8f;let f=c[d];return f;},a128d(a,b);}const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0xfb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0xa7)]()[r(0xb6)](r(0xa0))[r(0xa7)]()[r(0xcd)](a128a)[r(0xb6)]('(((.+)+)+)+$');});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';function a128c(){const X=['join','forEach','\x20STATUS:\x20','imageId','868878wOXXMb','status','notice','vpcId','ssh.json','ask','isFile','Web\x20App','Please\x20choose\x20a\x20VPC:\x20[0]\x20','pop','chooseInstance','66354nlGFVh','terminated','apply','$metadata','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','27XnsnpB','Error\x20fetching\x20domain\x20pricing:','sgPorts','find','GroupName','**\x20Available\x20\x20VPCs\x20**','CidrBlock','maxCount','\x20NAME:\x20','deleteSecurityGroup','Successfully\x20linked\x20EC2\x20instance\x20','3280330XsbOGq','env','sgIds','Availability','.pem.txt','565839vSZdRE','ID:\x20','push','Hosted\x20zone\x20created\x20successfully!','parse','tcp','Could\x20not\x20find\x20hosted\x20zone','Reservations','\x20PRIV_IP:\x20','ec2create','sgId','Key\x20Name:\x20[','suggestion','config','ec2describeInstances','Created:\x20','_keys','No\x20instances\x20found','ignore','getSecurityGroups','(((.+)+)+)+$','ingressRule','ec2terminateInstance','Error\x20saving\x20pem\x20file,\x20aborting','linkEC2ToRoute53','0.0.0.0/0','tags','toString','Port\x20','fsi','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','success','listHostedZonesByName','name','RegistrationPrice','\x20CIDR:\x20','\x20INSTANCE_ID:\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','checkDomainAvailability','route53CreateHostedZone','description','6498520AZBRcs','search','type','deleteKeyPair','createKeyPairEC2Key','userData','now','Invalid\x20choice','utf8','59484zoGEnl','log','Instance\x20rebooted!','instanceId','Description:','exit','createKeyPair','key','pem','52MUEWto','error','Prices','VpcId','cidr','length','constructor','\x20Error\x20Rason:\x20','send','4722672pOYOEJ','\x20PUB_IP:\x20','createFile','stringify','KeyMaterial','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','split','confirm','KeyName','chmod\x20400\x20','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','/dev/sdh','\x20VPCID:\x20','From\x20AWS:','\x20Status\x20Code:\x20','ec2createSG','Error\x20creating\x20hosted\x20zone','\x20ENV:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Instances','HostedZones','Name','Pem\x20key\x20saved\x20to\x20','371DvETwD','getAppConfigPath','$response'];a128c=function(){return X;};return a128c();}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{[a128s(0xa9)];constructor(){const t=a128s;this[t(0xa9)]=new FSI();}async['ecrCreateRepository'](a){const u=a128s;try{const b={'repositoryName':a[u(0xad)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0xcf)](c);return d;}catch(f){Log['error'](f);}}async[a128s(0xb3)](a){const v=a128s;try{const b={'CallerReference':''+Date[v(0xbb)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0xcf)](c),Log[v(0xab)](v(0x8f));}catch(d){Log['error'](v(0xe0)),console[v(0xc8)](d);}}async['registerDomain'](a,b,c,d){const w=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0xcf)](f),Log[w(0xf0)]('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[w(0xc8)](w(0xb1)),Log['warn'](w(0xdd)),console[w(0xc8)](w(0xde)+g['$response']['statusCode']),console[w(0xc8)](w(0xce)+g[w(0xe9)]['reason']);}}async[a128s(0xb2)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0xcf)](c),e=d[x(0x10d)]==='AVAILABLE';if(e){const f=a['split']('.')[x(0xf7)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0xc9)]&&i[x(0xc9)][0x0]?.['RegistrationPrice']){const j=i['Prices'][0x0][x(0xae)];return{'available':e,'cost':j};}}catch(k){console[x(0xc8)](x(0x100),k);}}return{'available':e};}async[a128s(0xa4)](a,b,c){const y=a128s;try{const d=await route53[y(0xac)]({'DNSName':c});if(!d?.[y(0xe4)])throw Log[y(0xc8)](y(0x92));const e=d?.[y(0xe4)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53['changeResourceRecordSets'](f),Log['notice'](y(0x109)+a+'\x20to\x20'+c);}catch(g){console[y(0xc8)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a128s(0x95)](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0xdb),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0xed)],'InstanceType':a[z(0xb7)],'KeyName':a[z(0xc5)],'MaxCount':a[z(0x106)],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x10c)][z(0xd6)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':'instance','Tags':a[z(0xa6)]}]};a[z(0xba)]&&(b['UserData']='file://'+a[z(0xba)]);const c=new RunInstancesCommand(b),d=await client[z(0xcf)](c);return d;}catch(f){Log[z(0xc8)](f);}}async[a128s(0xa2)](a){const A=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[A(0xcf)](c);return d;}catch(f){return Log[A(0xc8)](f),{};}}async[a128s(0xb9)]({keyName:a,env:b}){const B=a128s,c=this['fsi'][B(0xe8)](b),d=a128f[B(0xea)](c,B(0x9c),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0xcf)](g),i=h[B(0xd4)];if(i){await this[B(0xa9)][B(0xd2)]({'filePath':d,'data':i}),execSync(B(0xd9)+d,{'stdio':B(0x9e)});const j=this[B(0xa9)][B(0xf4)](d);if(j)return Log['success'](B(0xe6)+d),{'keyName':a,'filePath':d};else throw new Error(B(0xa3));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[B(0xc3)](0x1);}}async[a128s(0xa1)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x91),'IpRanges':[{'CidrIp':C(0xa5),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0xf0)](C(0xa8)+a+'\x20opened!'),await client[C(0xcf)](d);}async[a128s(0xdf)](a){const D=a128s;try{a[D(0xb4)]===''&&(a['description']=await Actions[D(0xf3)](D(0xc2))||D(0xf5));const b={'Description':a[D(0xb4)],'GroupName':a[D(0xad)],'VpcId':a[D(0xf1)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0xcf)](c),{GroupId:f}=d;if(!d)throw new Error(D(0xaa));f&&a[D(0x101)]['forEach'](g=>{const E=D;this[E(0xa1)]({'port':parseInt(g),'groupId':f});}),Log[D(0xab)](D(0x9b)+f+D(0x107)+a[D(0xad)]);}catch(g){return Log[D(0xc8)](g),![];}return!![];}async['ec2describeKeys'](a){const F=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0xcf)](d);if(!f)throw F(0xaa);const {KeyPairs:g}=f;g?(g?.[F(0xeb)]((h,i)=>{const G=F;h[G(0xd8)]&&b[G(0x111)]({'id':i,'name':h[G(0xd8)]});}),b[F(0xcc)]>0x0&&b[F(0xeb)](h=>{const H=F;h[H(0xad)]===a?.[H(0x98)]?Log[H(0xab)](H(0x110)+h['id']+'\x20NAME:\x20'+h[H(0xad)]):Log[H(0xf0)]('ID:\x20'+h['id']+H(0x107)+h[H(0xad)]);})):Log[F(0xc8)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log['error'](h);}return b;}async[a128s(0xb8)](a){const I=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process[I(0xc3)](0x1);}}async[a128s(0x9a)](){const J=a128s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':['maka-cli']}]},c=new DescribeInstancesCommand(b),d=await client[J(0xcf)](c);d[J(0x93)]?.[J(0xeb)]((f,g)=>{const K=J;if(f?.[K(0xe3)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0xe3)][0x0],n=m?.[K(0x102)](({Key:o})=>o==='environment');a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0xe5)],'name':l,'env':n?.['Value']});}}),a[J(0xcc)]>0x0?a['forEach'](f=>{const L=J,g=L(0x110)+f['id']+L(0x107)+f['name']+L(0xe1)+f[L(0x10b)]+L(0xec)+f[L(0xef)]+L(0xb0)+f[L(0xc1)]+L(0xd1)+f['publicIp']+L(0x94)+f['privateIp'];if(f[L(0xef)]===L(0xfa))Log[L(0xc8)](g);else f[L(0xef)]==='running'?Log[L(0xab)](g):Log[L(0xf0)](g);}):Log[J(0xc8)](J(0xda));}catch(f){Log[J(0xc8)](f);}return a;}async['ec2rebootInstance'](a){const M=a128s;try{const b={'InstanceIds':[a[M(0xc1)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[M(0xfc)]['httpStatusCode']===0xc8&&Log['success'](M(0xc0)),d;}catch(f){Log[M(0xc8)](f);}}async['chooseVPC'](){const N=a128s;let a='';Log[N(0xf0)](N(0x104));const b=new DescribeVpcsCommand({}),c=await client[N(0xcf)](b),{Vpcs:d}=c,e=[];d&&d[N(0xeb)]((g,h)=>{const O=N;g[O(0xca)]&&g[O(0x105)]&&e['push']({'id':h,'vpcId':g[O(0xca)],'cidr':g[O(0x105)]});});e[N(0xeb)](function(g){const P=N;console[P(0xbf)](P(0x110)+g['id']+P(0xdc)+g['vpcId']+P(0xaf)+g[P(0xcb)]);});const f=await Actions[N(0xf3)](N(0xf6))||0x0;e[N(0xeb)](function(g){const Q=N;g['id']==f&&(a=g[Q(0xf1)],Log['success'](Q(0xfd)+a+'\x0a'));});if(a==='')return Log[N(0xc8)](N(0xe2)),'';return a;}async[a128s(0xf8)](){const R=a128s,a=await this['ec2describeInstances']();if(a['length']===0x0)return Log[R(0xc8)](R(0x9d)),null;const b=await Actions['ask'](R(0xd5));!b&&(Log[R(0xc8)](R(0xbc)),process[R(0xc3)](0x0));const c=a[R(0x102)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a128s(0xc4)]({env:a}){const S=a128s,b=this[S(0xa9)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[S(0xf3)](S(0x97)+d+']\x20')||d,{filePath:g}=await this[S(0xb9)]({'keyName':f,'env':a});try{const h=await Actions[S(0xd7)](S(0xfe),!![]);if(h)try{const i=a128e['readFileSync'](a128f['join'](S(0x99),a,S(0xf2)),S(0xbd)),j=JSON[S(0x90)](i);j[S(0xc6)]=a128f[S(0xea)](S(0x9c),f+S(0x10e)),a128e['writeFileSync'](a128f[S(0xea)](S(0x99),a,S(0xf2)),JSON[S(0xd3)](j,null,0x2));}catch(k){Log[S(0xc8)](k),Log['error']('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[S(0xc8)](l),process[S(0xc3)](0x1);}return{'keyName':f,'filePath':g};}async[a128s(0x9f)](a){const T=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0xcf)](d),{SecurityGroups:f}=e;f&&f[T(0xeb)](function(i,j){const U=T;i['GroupName']&&i['GroupId']&&b[U(0x111)]({'id':j,'name':i[U(0x103)],'sgId':i['GroupId']});});let g='',h=0x0;return b[T(0xeb)](function(i){const V=T;i[V(0xad)]===a&&(g=i[V(0x96)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128s(0x108)](a){const W=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0xcf)](c);}catch(d){Log[W(0xc8)](d),process[W(0xc3)](0x1);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=-parseInt(k(
|
|
1
|
+
(function(a,b){var k=a129d,c=a();while(!![]){try{var d=-parseInt(k(0xd9))/0x1+parseInt(k(0xe0))/0x2*(-parseInt(k(0xd4))/0x3)+-parseInt(k(0xd2))/0x4*(parseInt(k(0xd3))/0x5)+parseInt(k(0xdc))/0x6*(parseInt(k(0xd5))/0x7)+-parseInt(k(0xda))/0x8+parseInt(k(0xd8))/0x9+parseInt(k(0xdf))/0xa*(parseInt(k(0xdd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x65793));export var CountryCode;function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0xd1;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(0xd7)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0xd1)]()[m(0xde)](m(0xdb))[m(0xd1)]()[m(0xd6)](e)['search']('(((.+)+)+)+$');});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=['20vyhrMY','5272kZELik','toString','687108pbullk','10QXxXTG','489RJibYO','203HWrqgp','constructor','apply','87984bLKiJg','278830mpejYn','1783648sjhCoK','(((.+)+)+)+$','47166uJnZeX','7990939VTzoJr','search'];a129c=function(){return n;};return a129c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a130m=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x120;let f=c[d];return f;},a130d(a,b);}(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x132))/0x1*(parseInt(j(0x137))/0x2)+parseInt(j(0x12c))/0x3+parseInt(j(0x135))/0x4*(-parseInt(j(0x126))/0x5)+parseInt(j(0x12a))/0x6+-parseInt(j(0x124))/0x7+-parseInt(j(0x120))/0x8*(-parseInt(j(0x131))/0x9)+parseInt(j(0x121))/0xa*(-parseInt(j(0x134))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xc1c6f));function a130c(){const q=['apply','(((.+)+)+)+$','constructor','8YybtLB','62290sYgkbz','awsLogin','search','1460767AXedcf','AWS','1692975WuhJWj','join','inherit','push','7026804nzfTnc','pushImage','1409907bTyDmU','toString','error','.dkr.ecr.','--username','3228507OGejDH','24155iHvgHz','tag','11fNlspC','8Rulshe','.amazonaws.com/','26UKOKCV','login','docker\x20'];a130c=function(){return q;};return a130c();}const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x12d)]()[l(0x123)](l(0x13b))[l(0x12d)]()[l(0x13c)](a130a)[l(0x123)](l(0x13b));});a130a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a130m(0x133)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=[n(0x133),a,b+n(0x12f)+c+n(0x136)+d],g=n(0x139)+f[n(0x127)]('\x20'),h=execSync(g,{'stdio':n(0x128)})[n(0x12d)]();return h;}catch(i){return Log[n(0x12e)](i),'';}}static[a130m(0x122)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0x138),o(0x130),o(0x125),'--password-stdin',a+'.dkr.ecr.'+b+'.amazonaws.com'],d=o(0x139)+c['join']('\x20'),f=execSync(d,{'stdio':'inherit'})[o(0x12d)]();return f;}catch(g){return Log['error'](g),'';}}static[a130m(0x12b)]({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=[p(0x129),a+p(0x12f)+b+p(0x136)+c],f=p(0x139)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x128)})[p(0x12d)]();return g;}catch(h){return Log[p(0x12e)](h),'';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a131d,c=a();while(!![]){try{var d=-parseInt(f(0xda))/0x1+-parseInt(f(0xdc))/0x2+parseInt(f(0xde))/0x3+parseInt(f(0xdb))/0x4*(parseInt(f(0xe1))/0x5)+-parseInt(f(0xd8))/0x6+-parseInt(f(0xe0))/0x7+parseInt(f(0xdf))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x5e7bd));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a[h(0xd9)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a131a)['search'](h(0xe2));});a131a();function a131c(){var i=['708462UdszyN','toString','684597mRSHrX','4vNzPtC','906182uiCzfG','apply','1074993pBsWns','9880936xgEaQP','4692639DIgOch','3598495ocWcdM','(((.+)+)+)+$'];a131c=function(){return i;};return a131c();}function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0xd8;var f=c[d];return f;},a131d(a,b);}export{};
|