@maka/maka-cli 4.13.12 → 4.13.13
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/cecr.sub.cmd.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/decr.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/lecr.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/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.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/register.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/undo.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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.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/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.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/auth.mui.gen.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/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
|
-
|
|
1
|
+
const a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x156))/0x1+-parseInt(f(0x154))/0x2+-parseInt(f(0x15e))/0x3*(parseInt(f(0x159))/0x4)+-parseInt(f(0x157))/0x5+parseInt(f(0x155))/0x6*(-parseInt(f(0x150))/0x7)+parseInt(f(0x152))/0x8*(-parseInt(f(0x160))/0x9)+parseInt(f(0x161))/0xa*(parseInt(f(0x15b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x7c672));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x158)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a[h(0x163)]()['search'](h(0x153))[h(0x163)]()[h(0x151)](a96a)[h(0x15f)](h(0x153));});a96a();import{Command}from'../../command.js';const SetCommand=Command[a96i(0x15c)]({'name':a96i(0x15d),'usage':a96i(0x162),'shortDesc':'Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0x15a)](c);d&&this[j(0x164)](c,a,b);});function a96c(){const k=['apply','45364WEFfaZ','findSubCommand','24079462fYRuyC','create','set','27zcfsxK','search','9MCRSOJ','10gyHpAb','maka\x20set:<sub-command>','toString','runSubCommand','80031cFfFZh','constructor','2384528Mwcaik','(((.+)+)+)+$','726178Kjqmzg','240tnFEIl','171925vKDFmj','3154345jyWbXE'];a96c=function(){return k;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x150;let f=c[d];return f;},a96d(a,b);}export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(
|
|
1
|
+
function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xa4;let f=c[d];return f;},a97d(a,b);}const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0xa9))/0x1+-parseInt(k(0xb6))/0x2+parseInt(k(0xc3))/0x3*(-parseInt(k(0xb1))/0x4)+-parseInt(k(0xbc))/0x5*(parseInt(k(0xb0))/0x6)+parseInt(k(0xb8))/0x7*(parseInt(k(0xac))/0x8)+parseInt(k(0xc4))/0x9+parseInt(k(0xab))/0xa*(parseInt(k(0xba))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x7529f));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a['toString']()[m(0xc5)](m(0xa6))['toString']()[m(0xbe)](a97a)['search'](m(0xa6));});a97a();import a97e from'fs';function a97c(){const p=['11qIPSJy','length','168310nGcDDr','getEnvFromShorthand','constructor','create','apply','ssh.json','fsi','77094FJigBL','5089743JwYphn','search','maka\x20ssh\x20<command>','maka\x20ssh\x20--env\x20dev','(((.+)+)+)+$','sshSync','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','324164eozBRR','readFileSync','2570570qsrLiP','5513072WtIRuD','verbose','env','toString','78YTSOpo','20RqzOev','assign','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','getAppConfigPath','283110aZdxIQ','error','7jzFCim','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22'];a97c=function(){return p;};return a97c();}import a97f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a97n(0xbf)]({'name':'ssh','usage':a97n(0xa4),'mustBeInMakaProject':!![],'requiredOpts':[a97n(0xae)],'validOpts':[a97n(0xae),a97n(0xad)],'shortDesc':a97n(0xa8),'examples':[a97n(0xa5),'maka\x20ssh\x20--env\x20staging','maka\x20ssh\x20--env\x20prod',a97n(0xb3),a97n(0xb9),a97n(0xb4)]},async function(a,b){const o=a97n;try{const c=this[o(0xc2)][o(0xbd)](b[o(0xae)]),d=this[o(0xc2)][o(0xb5)](c);let f='';a[o(0xbb)]>0x0&&(f=a[0x0]);const g=a97f['join'](c,o(0xc1)),h=a97e[o(0xaa)](g)[o(0xaf)](),i=JSON['parse'](h);Object[o(0xb2)](i,{'env':d}),SSH[o(0xa7)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0xad)]});}catch(j){Log[o(0xb7)](j),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98z=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d
|
|
1
|
+
const a98z=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=parseInt(w(0x1e6))/0x1*(-parseInt(w(0x1d7))/0x2)+parseInt(w(0x1ca))/0x3+-parseInt(w(0x1ba))/0x4*(parseInt(w(0x1bb))/0x5)+-parseInt(w(0x1b9))/0x6+-parseInt(w(0x1d9))/0x7*(-parseInt(w(0x1df))/0x8)+-parseInt(w(0x1d6))/0x9+parseInt(w(0x1d2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xe19cb));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a98d;if(c){const e=c[x(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const y=a98d;return a98a[y(0x1e3)]()[y(0x1bf)](y(0x1de))[y(0x1e3)]()[y(0x1cb)](a98a)[y(0x1bf)](y(0x1de));});a98a();import a98e from'fs';import a98f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a98z(0x1cd)]({'name':'ssl','usage':a98z(0x1f0),'validOpts':[a98z(0x1c0),a98z(0x1b5)],'requiredOpts':[a98z(0x1d8)],'shortDesc':a98z(0x1da),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98z(0x1c1),a98z(0x1bc),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const A=a98z,c=this[A(0x1ea)][A(0x1e4)](),d=this[A(0x1ea)]['getEnvFromShorthand'](b[A(0x1d8)]),f=this['fsi'][A(0x1d3)](d),g=this[A(0x1ea)][A(0x1cf)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x1bd))SSL[A(0x1e1)]({'keyName':c[A(0x1f2)]+A(0x1c4),'csrName':c[A(0x1f2)]+A(0x1b6),'cwd':g});else{if(h===A(0x1b7)){if(!a98e[A(0x1e7)](a98f['join'](g,c[A(0x1f2)]+'.key')))throw A(0x1e9)+a98f[A(0x1c3)](g,c[A(0x1f2)]+'.key');if(!a98e[A(0x1e7)](a98f[A(0x1c3)](g,c[A(0x1f2)]+'.csr')))throw'The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20'+a98f[A(0x1c3)](g,c[A(0x1f2)]+A(0x1b6));SSL[A(0x1c9)]({'keyName':c[A(0x1f2)]+A(0x1c4),'crtName':c[A(0x1f2)]+A(0x1f3),'cwd':g}),Log[A(0x1c2)]('New\x20CSR\x20written\x20to\x20'+g);}else{if(h===A(0x1c7)){let i=b[A(0x1c0)],j=b[A(0x1b5)];try{const q=a98e[A(0x1ed)](a98f[A(0x1c3)](f,A(0x1e8)))[A(0x1e3)](),r=JSON[A(0x1ee)](q);i=b['domains']?b['domains']:r['domainNames'],j=b['email']?b[A(0x1b5)]:r['emailUpdate'],(!b[A(0x1b5)]||!b['domains'])&&Log[A(0x1c2)](A(0x1cc));}catch(s){}const k=JSON[A(0x1ee)](a98e[A(0x1ed)](f+'/ssh.json')[A(0x1e3)]());Object[A(0x1db)](k,{'env':f}),Log['notice'](A(0x1c5));try{const t=SSH['ping'](A(0x1eb),k);if(!t)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(t)Log[A(0x1ef)](A(0x1c6));}catch(u){Log[A(0x1e5)](u);return;}const l=Log[A(0x1f1)]();l[A(0x1d4)](A(0x1dd)),SSH['ssh'](A(0x1c8),{...k}),SSH[A(0x1d1)](A(0x1e2),{...k}),SSH['ssh'](A(0x1d5),{...k}),l[A(0x1ef)]();const m=i?i:await Actions[A(0x1dc)]('[?]\x20Domains\x20to\x20register:\x20'),n=j?j:await Actions[A(0x1dc)](A(0x1be));SSH[A(0x1d1)](A(0x1ec)+m+A(0x1b8)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON['stringify'](o,null,0x2);a98e['writeFileSync'](a98f['join'](f,A(0x1e8)),p);}else throw A(0x1d0);}}}catch(v){console[A(0x1e5)](v),process[A(0x1e0)](0x0);}});function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a98d(a,b);}function a98c(){const B=['Checking\x20remote\x20host\x20availability','Remote\x20host\x20connection\x20successful','letsencrypt','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','genSSC','5315604sGQEVr','constructor','Using\x20saved\x20letsencrypt\x20config','create','apply','mkKeysDir','Please\x20provide\x20a\x20command.','ssh','2564620yAcAxQ','getAppConfigPath','start','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','3961332gHbdmJ','116882xdSdAr','env','11295116PfsAED','Create\x20and\x20manage\x20your\x20SSL\x20operations.','assign','ask','Verifying\x20Letsencrypt\x20configuration','(((.+)+)+)+$','8FtXDqE','exit','genCSR','sudo\x20snap\x20install\x20--classic\x20certbot','toString','getMakaProjectConfig','error','12lgqHKG','existsSync','letsencrypt.json','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','fsi','uname\x20-a','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','readFileSync','parse','success','maka\x20ssl\x20[command]','withSpinner','appName','.crt','email','.csr','generate-ssc','\x20--email\x20','7442538EuInLb','335948CRKDIc','20wCeulG','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','generate-csr','Email\x20to\x20use\x20for\x20auto-updates:\x20','search','domains','maka\x20ssl\x20--env\x20dev\x20generate-csr','notice','join','.key'];a98c=function(){return B;};return a98c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a99c(){const u=['
|
|
1
|
+
const a99r=a99d;function a99c(){const u=['forEach','sanjo:jasmine','config.json','notice','689680XuPKoQ','.maka','packages','join','fsi','warn','test','invokeMeteorCommand','36350HWeBVs','concat','parse','4609225FUvNzP','filter','1721489LgAjHs','unit','--env','--settings','test-packages','slice','27uDzJZB','14597clUkZp','isFile','search','none','(((.+)+)+)+$','inspect','settings.json','--driver','4506126tbsQcI','local','config','108unYWUY','Meteor\x20Settings:\x20','once','exit','env','--packages','mocha','driver-package','getAppConfigPath','--full-app','rawLogs','apply','driverPackage','4rIefix','4331800xXYqCw','engines','error','--driver-package','driver','port','toString','107499pMINTZ','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.'];a99c=function(){return u;};return a99c();}(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x17c))/0x1*(-parseInt(n(0x18a))/0x2)+parseInt(n(0x184))/0x3*(parseInt(n(0x16f))/0x4)+-parseInt(n(0x15b))/0x5+-parseInt(n(0x16c))/0x6+-parseInt(n(0x15d))/0x7+-parseInt(n(0x17d))/0x8*(parseInt(n(0x163))/0x9)+-parseInt(n(0x192))/0xa*(-parseInt(n(0x164))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xd40ce));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x183)]()[p(0x166)](p(0x168))[p(0x183)]()['constructor'](a99a)['search'](p(0x168));});function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x15a;let f=c[d];return f;},a99d(a,b);}a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const q=a99d;a99e['openSync'](a,'r'),a99g[q(0x16e)]({'path':a});};Command['create']({'name':'test','mustBeInMakaProject':!![],'validOpts':['once',a99r(0x18c),a99r(0x181),a99r(0x17b),a99r(0x15e),a99r(0x173),a99r(0x179),a99r(0x182),a99r(0x169),'testAppPath'],'usage':'maka\x20test','aliases':['t','tests'],'shortDesc':a99r(0x185),'examples':[]},function(a,b){const s=a99r;try{const c=b[s(0x173)]?this[s(0x18e)]['getEnvFromShorthand'](b[s(0x173)]):s(0x16d),d=this['fsi'][s(0x177)](c);(!b[s(0x15e)]||!!b[s(0x171)])&&(a=a[s(0x193)]([s(0x178)]));b[s(0x15e)]&&delete b['unit'];let f=b[s(0x176)]||b['driver']||'none';if(f===s(0x167)){const k=JSON[s(0x15a)](a99e['readFileSync'](a99f['join'](this[s(0x18e)]['findProjectDirectory'](),s(0x18b),s(0x188)),'utf8'));if(k[s(0x17e)][s(0x190)]==='jasmine')f=s(0x187);else k[s(0x17e)][s(0x190)]===s(0x175)&&(f='meteortesting:mocha');}if(f===s(0x167))throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b['driver-package']||!b[s(0x181)])&&(a=a[s(0x193)]([s(0x180),f]));const g=a99f[s(0x18d)](d,s(0x16a));this['fsi']['isFile'](g)?(Log['notice'](s(0x170)+g),a=a[s(0x193)]([s(0x160),g])):Log[s(0x18f)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+g);const h=a99f['join'](d,'process.env');this[s(0x18e)][s(0x165)](d)?(Log[s(0x189)]('Node\x20Env\x20Config:\x20'+h),syncSource(h)):Log['warn']('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+h);const i=process['argv'][s(0x162)](0x2)[s(0x15c)](l=>l!==s(0x15f))[s(0x15c)](l=>l!=='test')[s(0x15c)](l=>l!==a[0x0]);i[s(0x186)]((l,m)=>{const t=s;(l===t(0x15f)||l===t(0x16b))&&i['splice'](m,0x2),l===t(0x174)&&i['splice'](m,0x1);});const j=b['packages']?s(0x161):s(0x190);this[s(0x18e)][s(0x191)](j,a[s(0x193)](i));}catch(l){console[s(0x17f)](l),process[s(0x172)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=-parseInt(f(0x135))/0x1*(parseInt(f(0x130))/0x2)+-parseInt(f(0x136))/0x3*(-parseInt(f(0x131))/0x4)+parseInt(f(0x13a))/0x5+parseInt(f(0x13d))/0x6+-parseInt(f(0x13c))/0x7*(parseInt(f(0x138))/0x8)+-parseInt(f(0x132))/0x9+parseInt(f(0x12f))/0xa*(parseInt(f(0x12e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x2af70));var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a['toString']()['search'](h(0x13e))['toString']()['constructor'](a100a)[h(0x13b)](h(0x13e));});function a100c(){var k=['1268844LaZVWK','450054weVHxP','create','apply','1praIjR','3LqgBta','undo','2260472LoUmtV','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','1323140MkIyTG','search','7QTlrPI','632964HDlxZC','(((.+)+)+)+$','11WooHIg','1179830BzvQIV','593534xRyjUd'];a100c=function(){return k;};return a100c();}a100a();import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x12e;var f=c[d];return f;},a100d(a,b);}Command[a100i(0x133)]({'name':a100i(0x137),'aliases':['u'],'validOpts':[],'shortDesc':a100i(0x139),'experimental':!![]},async function(){var j=a100i;a100e[j(0x137)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d
|
|
1
|
+
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x145))/0x1+parseInt(k(0x15b))/0x2+-parseInt(k(0x136))/0x3*(-parseInt(k(0x12f))/0x4)+-parseInt(k(0x13d))/0x5+parseInt(k(0x153))/0x6+parseInt(k(0x148))/0x7*(parseInt(k(0x149))/0x8)+-parseInt(k(0x141))/0x9*(parseInt(k(0x14f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xa2ae8));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0x131)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a[m(0x154)]()[m(0x146)](m(0x137))['toString']()[m(0x132)](a101a)[m(0x146)]('(((.+)+)+)+$');});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x12e;let f=c[d];return f;},a101d(a,b);}import{execSync}from'child_process';function a101c(){const p=['System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','\x20node\x20-v','create','391854cMRQci','(((.+)+)+)+$','Maka\x20','System\x27s\x20Node\x20Version\x20','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','System\x27s\x20Meteor\x20Version\x20','----------------------System----------------------------','1140850weJtFJ','N/A','getGlobalMeteorVersion','maka\x20v','21429jTLiXk','replace','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','----------------------Project----------------------------','65858lJpnuH','search','Project\x27s\x20Meteor\x20Node\x20Version\x20','2155748kuqmEi','8BeRNTW','getProjectsMeteorNodeVersion','warn','error','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22',')\x20to\x20at\x20least\x20meteor\x27s\x20(','8390vECORi','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','maka\x20version\x20--verbose','bright','3933018yAqZLt','toString','fsi','isMakaProject','exit','maka\x20version','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','compareMakaToLatest','1113336JjTuuh','version','verbose','notice','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','40CLijDZ','Project\x27s\x20Meteor\x20Version\x20','apply','constructor'];a101c=function(){return p;};return a101c();}import a101e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.13.13'};Command[a101n(0x135)]({'name':'version','aliases':['v'],'usage':a101n(0x158),'maxArgLength':0x1,'validOpts':[a101n(0x15d)],'shortDesc':a101n(0x12e),'examples':[a101n(0x140),a101n(0x158),a101n(0x151)],'description':a101n(0x143)},async function(a,b){const o=a101n;try{const c=this[o(0x155)]['getMeteorExePath']();Log['majestic'](o(0x138)+pjson[o(0x15c)]),await this['fsi'][o(0x15a)]();if(b[o(0x15d)]){await this[o(0x155)][o(0x15a)](),Log[o(0x152)](o(0x13c));const d=this[o(0x155)][o(0x13f)]();Log['bright']((o(0x13b)+d)['replace']('\x0a',''));const f=execSync(c+o(0x134))[o(0x154)]()[o(0x142)](/\r?\n|\r/,'')[o(0x142)]('v','');Log['bright'](o(0x133)+f);const g=execSync('node\x20-v')[o(0x154)]()[o(0x142)](/\r?\n|\r/,'')[o(0x142)]('v','');a101e['gt'](f,g)?(Log['warn'](o(0x139)+g),Log[o(0x14b)](o(0x13a)+g+o(0x14e)+f+')')):Log['bright'](o(0x139)+g);if(this['fsi'][o(0x156)]()){Log[o(0x152)](o(0x144));const h=this[o(0x155)]['getProjectMeteorVersion']();if(!a101e['valid'](h))Log[o(0x14b)]('Project\x27s\x20Meteor\x20Version\x20'+h[o(0x142)]('\x0a',''));else a101e['gt'](d,h)?(Log[o(0x14b)](o(0x130)+h[o(0x142)]('\x0a','')),Log['warn'](o(0x150)+d+'\x22')):Log[o(0x15e)](('Project\x27s\x20Meteor\x20Version\x20'+h)[o(0x142)]('\x0a',''));const i=await this[o(0x155)][o(0x14a)]();i===o(0x13e)?(Log['warn'](o(0x147)+i),Log[o(0x14b)](o(0x159))):Log['bright']('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[o(0x152)](o(0x14d));}}}catch(j){console[o(0x14c)](j),process[o(0x157)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0xc7))/0x1*(-parseInt(f(0xca))/0x2)+-parseInt(f(0xcc))/0x3*(-parseInt(f(0xc9))/0x4)+-parseInt(f(0xc4))/0x5*(parseInt(f(0xcb))/0x6)+-parseInt(f(0xcf))/0x7+-parseInt(f(0xd2))/0x8*(parseInt(f(0xc5))/0x9)+-parseInt(f(0xd3))/0xa+-parseInt(f(0xd0))/0xb*(-parseInt(f(0xce))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xca830));function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0xc4;var f=c[d];return f;},a102d(a,b);}var a102b=(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;};}()),a102a=a102b(this,function(){var g=a102d;return a102a['toString']()[g(0xc6)](g(0xd1))[g(0xc8)]()[g(0xcd)](a102a)['search'](g(0xd1));});a102a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a102c(){var h=['5081436LAxCES','7139041KyfBhf','22XAgZVv','(((.+)+)+)+$','93168CRrIsp','102230DyzhwI','712410hEGKUB','171EyJWjX','search','2383jGQNcT','toString','2740988WVCftK','1178kxutyS','36GzXguj','3BvpVdm','constructor'];a102c=function(){return h;};return a102c();}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function a103c(){var
|
|
2
|
+
var a103i=a103d;function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x92;var f=c[d];return f;},a103d(a,b);}function a103c(){var j=['1LSwmaO','7cCxksA','5310390MDgXVJ','1178748yYEFhL','toString','env','9279KFWsPj','(((.+)+)+)+$','3547530TurjPe','constructor','search','2264zrrOTw','apply','NODE_OPTIONS','1330148yPOcIP','3495408TJVLLr','23496110YRKmsh'];a103c=function(){return j;};return a103c();}(function(a,b){var f=a103d,c=a();while(!![]){try{var d=parseInt(f(0x96))/0x1*(-parseInt(f(0x93))/0x2)+-parseInt(f(0x9e))/0x3+-parseInt(f(0x94))/0x4+parseInt(f(0x98))/0x5+parseInt(f(0x99))/0x6*(-parseInt(f(0x97))/0x7)+-parseInt(f(0xa1))/0x8*(-parseInt(f(0x9c))/0x9)+parseInt(f(0x95))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xbfca0));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a[h(0x9a)]()[h(0xa0)](h(0x9d))[h(0x9a)]()[h(0x9f)](a103a)[h(0xa0)](h(0x9d));});a103a(),process[a103i(0x9b)][a103i(0x92)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104v=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x13e))/0x1*(-parseInt(r(0x129))/0x2)+-parseInt(r(0x136))/0x3*(parseInt(r(0x126))/0x4)+-parseInt(r(0xdc))/0x5*(-parseInt(r(0xdd))/0x6)+parseInt(r(0xfb))/0x7*(-parseInt(r(0xcc))/0x8)+parseInt(r(0x149))/0x9+-parseInt(r(0x116))/0xa+parseInt(r(0xeb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x328dd));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a104d;if(c){const e=c[s(0xfa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const t=a104d;return a104a[t(0x128)]()[t(0x142)]('(((.+)+)+)+$')['toString']()['constructor'](a104a)['search']('(((.+)+)+)+$');});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();function a104c(){const N=['replace','statSync','apply','10472ykpkGm','validateMakaSubscription','map','Generator\x20not\x20found','processAndRunGenerator','split','stringify','config','\x20not\x20found.\x20Cannot\x20undo.','help','params','name','includes','fullNameChain','usage','filter','lib','Location','minOptsLength','number','listGenerators','getGlobalConfig','find','from','server','existsSync','tableList','1257510iAnlxT','There\x20is\x20no\x20Meteor\x20application\x20here','getHistoryFileSize','details','findGeneratorByName','_handler','DARK','Generator\x20','both','maxOptsLength','validateMeteorInstall','transactionId','opts','No\x20resource\x20name\x20specified','call','writeHistory','20276dCzHeV','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','toString','66marUAG','handleGenerateError','readFileSync','where','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','warn','shortDesc','Generators:','pathFromProject','checkWhere','generatorName','join','invoke','111KzpKdO','notice','colLocAnswer','reverse','match','error','validateParams','bind','9626sxzJrn','readHistory','localeCompare','_historyFilePath','search','Generator.create\x20requires\x20a\x20handler\x20function!','undo','options','LIGHT','bright','Too\x20many\x20arguments','339867KZGyeE','\x20not\x20found','parse','mustBeInMakaProject','light','history.json','success','dir','deepen','Generator\x20requires\x20a\x20handler\x20function','Client','1784TTubZr','findProjectDirectory','assign','length','validateEngines','size','validateMakaProject','chdir','Description','sort','addGenerator','Generator\x20format\x20is\x20incorrect','Both','maxArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','push','820mryfYs','12246DpzcQp','addGenerator\x20requires\x20a\x20Generator\x20instance','writeFileSync','client','(expermiental)\x20','mustHaveMeteorInstalled','Too\x20few\x20options','create','Alias','pop','Generator.create\x20requires\x20some\x20options!','Server','_genTransactionId','.maka','1802196newyPD','keys','_generators','minArgLength','exit','list','pallet','\x20generator.\x20Skipping\x20undo.','shift','appPathPrefix','resourceName','_undoHandler','fsi'];a104c=function(){return N;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xc3;let f=c[d];return f;},a104d(a,b);}async function inside(a='.',b){const u=a104d,c=process['cwd']();let d=null;try{process[u(0xd3)](a),d=await b();}finally{process[u(0xd3)](c);}return d;}export class Generator extends Tool{[a104v(0x145)];[a104v(0x108)];['_generators'];[a104v(0x141)];[a104v(0xf6)];[a104v(0xe9)];constructor(a,b,c){const w=a104v;super();if(!a)throw new Error(w(0x12d));if(!a[w(0x106)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!=='function')throw new Error(w(0xca));this[w(0xed)]=[],this['options']=Object[w(0xce)]({},a),this[w(0x106)]=this['options'][w(0x106)],this[w(0x11b)]=b[w(0x13d)](this);try{this['_historyFilePath']=this[w(0xf7)][w(0x131)]({'pathParts':[w(0xea),w(0xc6)]})||a104e[w(0x134)]('.',w(0xea),'history.json');}catch(d){Log['error'](d);}c&&(this['_undoHandler']=c[w(0x13d)](this));}[a104v(0x118)](){const x=a104v;if(a104f[x(0x114)](this[x(0x141)])){const a=a104f[x(0xf9)](this[x(0x141)]);return a[x(0xd1)];}return 0x0;}[a104v(0x13f)](){const y=a104v;if(!a104f[y(0x114)](this[y(0x141)]))return[];return JSON[y(0xc3)](a104f[y(0x12b)](this[y(0x141)],'utf-8'));}['writeHistory'](a){const z=a104v;this['_historyFilePath']&&!a104f[z(0x114)](this[z(0x141)])&&a104f[z(0xdf)](this['_historyFilePath'],JSON[z(0x101)]([])),a104f[z(0xdf)](this[z(0x141)],JSON['stringify'](a,null,0x2));}['addToHistory'](a){const A=a104v;try{a?.[A(0x105)]?.['opts']['config']&&delete a['params'][A(0x122)][A(0x102)];const b=this['readHistory'](),c={'generatorName':this[A(0x108)],'transactionId':TRANSACTION_ID,'details':a};b[A(0xdb)](c);const d=Buffer[A(0x112)](JSON['stringify'](b))[A(0xcf)];while(d>MAX_HISTORY_SIZE&&b[A(0xcf)]>0x0){b[A(0xf3)]();}this[A(0x125)](b);}catch(f){Log[A(0x13b)](f);}}async[a104v(0x144)](){const B=a104v,a=this['readHistory']();if(a['length']===0x0){Log[B(0x12e)]('Nothing\x20to\x20undo.');return;}const b=a[B(0xe6)](),c=b[B(0x121)],d=a[B(0x10a)](e=>e['transactionId']===c);d[B(0xdb)](b),d[B(0x139)]();for(const e of d){const f=this[B(0x11a)](e['generatorName']);if(!f){Log[B(0x13b)](B(0x11d)+e[B(0x133)]+B(0x103));continue;}f['_undoHandler']?await f['_undoHandler'](e[B(0x119)]):Log[B(0x12e)]('No\x20undo\x20handler\x20defined\x20for\x20'+e[B(0x133)]+B(0xf2));}this['writeHistory'](a[B(0x10a)](g=>g[B(0x121)]!==c));}static[a104v(0xe4)](a,b,c,d){const C=a104v;if(!a)throw new Error(C(0xe7));if(typeof b!=='function')throw new Error(C(0x143));const e=new Generator(a,b);c&&(e[C(0xf6)]=c[C(0x13d)](e));d=d||a104i;const f=d?d[C(0x108)]:'';return e[C(0x108)]=f?f+':'+a[C(0x106)]:a['name'],Object['assign'](e,{'parent':d?.[C(0x145)]?.[C(0x106)]}),d[C(0xd6)](e),e;}[a104v(0xd6)](a){const D=a104v;if(!(a instanceof Generator))throw new Error(D(0xde));this[D(0xed)][D(0xdb)](a);}async[a104v(0xff)](a,b=[],c={}){const E=a104v;let d;try{const f=a?.[E(0x100)](':');if(!f||f[E(0xcf)]===0x0)throw E(0xd7);let g=this[E(0xed)],h;for(const i of f){h=g[E(0x111)](j=>j[E(0x13a)](i));if(!h)throw E(0x11d)+i+'\x20not\x20found';await this['validateMakaSubscription'](h),g=h[E(0xed)];}if(h)d=await h['invoke'](b,c);else throw E(0xfe);}catch(j){Log[E(0x13b)](j);}return d;}[a104v(0x11a)](a){const F=a104v,b=a?.[F(0x100)](':');if(!b||b['length']===0x0)return Log[F(0x13b)](F(0xd7)),null;let c=this[F(0xed)],d;for(const e of b){d=c[F(0x111)](f=>f[F(0x13a)](e));if(!d)return Log[F(0x13b)](F(0x11d)+e+F(0x14a)),null;c=d[F(0xed)];}return d||null;}async[a104v(0x135)](a,b){const G=a104v,c=a['slice']();b[G(0xf5)]=c[0x0];try{const d=await this[G(0xf7)][G(0x110)](),f=d[G(0xf1)]===G(0xc5)?ColorMode[G(0x146)]:ColorMode[G(0x11c)];Log['setColorMode'](f),await this[G(0xfc)](this);const g=a[0x0]===_prevGen||a[G(0xcf)]===0x0&&this[G(0xed)][G(0xcf)]>=0x0,h=b[G(0x104)]||b['h'];if(g&&h){if(this['_generators'][G(0xcf)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][G(0xc4)]){const i=this[G(0xd2)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x145)][G(0xe2)]){const j=this[G(0x120)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===G(0x10e)){if(a['length']<this[G(0x145)][G(0xee)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][G(0xd9)]===G(0x10e)){if(a['length']>this[G(0x145)]['maxArgLength']){Log[G(0x13b)](G(0x148));throw new UsageError();}}if(typeof this[G(0x145)][G(0x10d)]===G(0x10e)){if(Object['keys'](b)['length']<this[G(0x145)][G(0x10d)]){Log['error'](G(0xe3));throw new UsageError();}}if(typeof this['options'][G(0x11f)]===G(0x10e)){if(Object[G(0xec)](b)[G(0xcf)]>=this[G(0x145)]['maxOptsLength']){Log[G(0x13b)]('Too\x20many\x20options');throw new UsageError();}}}this[G(0x145)]['requiredEngines']&&this[G(0xd0)](this[G(0x145)]['requiredEngines']);await this[G(0x13c)](a,b,this[G(0x145)]);if(!b[G(0xf5)]&&!this[G(0x145)]['noNeedResource']){Log[G(0x13b)](G(0x123));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x12a)](k),process[G(0xef)](0x1);}return await inside(b['cwd'],async()=>{const H=G;try{if(!b['root']&&!this['fsi'][H(0xcd)]())throw new MustBeInProjectError();const l=b[H(0xf5)]?.[H(0xf8)](/\\/g,'/')[H(0x100)]('/');!b['dir']&&(l?.[H(0xcf)]>0x1?(b[H(0xf5)]=l[H(0xe6)](),c[0x0]=b['resourceName'],b[H(0xc8)]=l[H(0xfd)](n=>{return paramCase(n);})[H(0x134)](a104e['sep'])):b[H(0xc8)]='');if(this[H(0x145)][H(0x132)]){if(!b[H(0x12c)]){const o={'type':H(0xf0),'name':H(0x138),'message':H(0x10c),'choices':[{'name':H(0xcb),'value':H(0xe0)},{'name':H(0xe8),'value':H(0x113)},{'name':H(0xd8),'value':H(0x11e)}]},{colLocAnswer:p}=await Actions[H(0x145)](o);p?b[H(0x12c)]=p:b[H(0x12c)]='both';}const n=['both',H(0xe0),H(0x113)];if(!n[H(0x107)](b[H(0x12c)])){Log[H(0x13b)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b['where']){case H(0x11e):b[H(0xf4)]=H(0x10b);break;case H(0x113):b[H(0xf4)]=H(0x113);break;case H(0xe0):b[H(0xf4)]=H(0xe0);break;default:b['appPathPrefix']='';}}const m=await this[H(0x11b)][H(0x124)](this,c,b);return m&&this['addToHistory']({'params':{'args':c,'opts':this['fsi'][H(0xc9)](b)},'success':m?.[H(0xc7)],'message':m?.['message'],'details':m?.['details']}),m;}catch(q){this[H(0x12a)](q);}});}[a104v(0x10f)](){const I=a104v;this[I(0x115)](this['_generators']);}[a104v(0x12a)](a){const J=a104v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x145)];Log[J(0x109)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x137)](J(0x130)),this[J(0x115)](this[J(0xed)]);else{if(a instanceof MustBeInProjectError)Log[J(0x13b)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log['error'](J(0x127)),Log[J(0x137)](J(0xda));else a instanceof NoMeteorAppFoundError&&Log[J(0x13b)](J(0x117));}}}['tableList'](a){const K=a104v,b=new a104g({});b['push'](['Name',K(0xe5),K(0xd4)]),a[K(0xd5)]((c,d)=>{const L=K;return c['name'][L(0x140)](d['name']);})['forEach'](c=>{const M=K,d=c['experimental'](),e=d?M(0xe1)+c['shortDesc']():c[M(0x12f)]();b[M(0xdb)]([c[M(0x106)],c['aliases'](),e]);}),Log[K(0x147)](b[K(0x128)]());}}
|
|
1
|
+
const a104v=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x227))/0x1*(-parseInt(r(0x1dd))/0x2)+-parseInt(r(0x24e))/0x3+parseInt(r(0x25a))/0x4*(-parseInt(r(0x21c))/0x5)+parseInt(r(0x201))/0x6*(-parseInt(r(0x20f))/0x7)+parseInt(r(0x25e))/0x8*(parseInt(r(0x22f))/0x9)+-parseInt(r(0x21a))/0xa+parseInt(r(0x209))/0xb*(parseInt(r(0x234))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x4631a));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a104d;if(c){const e=c[s(0x21e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const t=a104d;return a104a[t(0x232)]()['search'](t(0x21b))[t(0x232)]()['constructor'](a104a)[t(0x24d)](t(0x21b));});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const u=a104d,c=process[u(0x25d)]();let d=null;try{process['chdir'](a),d=await b();}finally{process[u(0x1ee)](c);}return d;}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a104d(a,b);}export class Generator extends Tool{[a104v(0x204)];[a104v(0x236)];['_generators'];[a104v(0x224)];['_undoHandler'];[a104v(0x220)];constructor(a,b,c){const w=a104v;super();if(!a)throw new Error(w(0x247));if(!a['name'])throw new Error(w(0x23c));if(typeof b!==w(0x213))throw new Error(w(0x238));this[w(0x244)]=[],this[w(0x204)]=Object[w(0x1ef)]({},a),this[w(0x208)]=this['options']['name'],this[w(0x1f8)]=b['bind'](this);try{this[w(0x224)]=this['fsi'][w(0x22c)]({'pathParts':['.maka',w(0x1df)]})||a104e[w(0x258)]('.',w(0x22a),'history.json');}catch(d){Log[w(0x226)](d);}c&&(this[w(0x254)]=c['bind'](this));}[a104v(0x23b)](){const x=a104v;if(a104f[x(0x242)](this[x(0x224)])){const a=a104f[x(0x21f)](this['_historyFilePath']);return a[x(0x24b)];}return 0x0;}[a104v(0x210)](){const y=a104v;if(!a104f[y(0x242)](this[y(0x224)]))return[];return JSON[y(0x1eb)](a104f[y(0x1e5)](this[y(0x224)],y(0x20b)));}[a104v(0x1fb)](a){const z=a104v;this[z(0x224)]&&!a104f[z(0x242)](this['_historyFilePath'])&&a104f[z(0x216)](this[z(0x224)],JSON[z(0x1e8)]([])),a104f[z(0x216)](this[z(0x224)],JSON[z(0x1e8)](a,null,0x2));}[a104v(0x20d)](a){const A=a104v;try{a?.[A(0x1ea)]?.[A(0x218)][A(0x252)]&&delete a[A(0x1ea)][A(0x218)][A(0x252)];const b=this[A(0x210)](),c={'generatorName':this[A(0x236)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1fd)](c);const d=Buffer[A(0x20a)](JSON[A(0x1e8)](b))[A(0x255)];while(d>MAX_HISTORY_SIZE&&b[A(0x255)]>0x0){b[A(0x25b)]();}this[A(0x1fb)](b);}catch(f){Log[A(0x226)](f);}}async[a104v(0x1db)](){const B=a104v,a=this['readHistory']();if(a[B(0x255)]===0x0){Log[B(0x1e6)]('Nothing\x20to\x20undo.');return;}const b=a[B(0x1da)](),c=b[B(0x1f2)],d=a['filter'](e=>e[B(0x1f2)]===c);d['push'](b),d[B(0x222)]();for(const e of d){const f=this['findGeneratorByName'](e[B(0x202)]);if(!f){Log[B(0x226)](B(0x233)+e[B(0x202)]+B(0x23d));continue;}f['_undoHandler']?await f[B(0x254)](e['details']):Log[B(0x1e6)](B(0x23e)+e[B(0x202)]+B(0x214));}this[B(0x1fb)](a[B(0x237)](g=>g['transactionId']!==c));}static[a104v(0x249)](a,b,c,d){const C=a104v;if(!a)throw new Error(C(0x223));if(typeof b!==C(0x213))throw new Error(C(0x205));const e=new Generator(a,b);c&&(e[C(0x254)]=c['bind'](e));d=d||a104i;const f=d?d[C(0x236)]:'';return e[C(0x236)]=f?f+':'+a['name']:a['name'],Object[C(0x1ef)](e,{'parent':d?.[C(0x204)]?.[C(0x208)]}),d['addGenerator'](e),e;}[a104v(0x22e)](a){const D=a104v;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[D(0x244)]['push'](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a104v;let d;try{const f=a?.[E(0x200)](':');if(!f||f[E(0x255)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[E(0x244)],h;for(const i of f){h=g[E(0x257)](j=>j['match'](i));if(!h)throw E(0x233)+i+E(0x23a);await this['validateMakaSubscription'](h),g=h[E(0x244)];}if(h)d=await h['invoke'](b,c);else throw E(0x203);}catch(j){Log[E(0x226)](j);}return d;}[a104v(0x1e7)](a){const F=a104v,b=a?.['split'](':');if(!b||b[F(0x255)]===0x0)return Log[F(0x226)]('Generator\x20format\x20is\x20incorrect'),null;let c=this[F(0x244)],d;for(const e of b){d=c[F(0x257)](f=>f[F(0x1e9)](e));if(!d)return Log[F(0x226)](F(0x233)+e+F(0x23a)),null;c=d[F(0x244)];}return d||null;}async[a104v(0x259)](a,b){const G=a104v,c=a['slice']();b[G(0x1f5)]=c[0x0];try{const d=await this[G(0x20e)][G(0x1d7)](),f=d[G(0x1d9)]===G(0x1fa)?ColorMode['LIGHT']:ColorMode[G(0x245)];Log[G(0x25c)](f),await this[G(0x1f7)](this);const g=a[0x0]===_prevGen||a[G(0x255)]===0x0&&this[G(0x244)][G(0x255)]>=0x0,h=b[G(0x239)]||b['h'];if(g&&h){if(this[G(0x244)][G(0x255)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x204)]['mustBeInMakaProject']){const i=this[G(0x1fc)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x204)][G(0x211)]){const j=this[G(0x215)]();if(!j)throw new NoMeteorFoundError();}if(typeof this['options'][G(0x248)]===G(0x1e2)){if(a[G(0x255)]<this[G(0x204)][G(0x248)]){Log[G(0x226)](G(0x23f));throw new UsageError();}}if(typeof this[G(0x204)][G(0x1e3)]===G(0x1e2)){if(a['length']>this[G(0x204)]['maxArgLength']){Log[G(0x226)](G(0x241));throw new UsageError();}}if(typeof this['options'][G(0x207)]===G(0x1e2)){if(Object[G(0x22b)](b)['length']<this[G(0x204)][G(0x207)]){Log['error'](G(0x235));throw new UsageError();}}if(typeof this[G(0x204)][G(0x229)]===G(0x1e2)){if(Object[G(0x22b)](b)['length']>=this['options'][G(0x229)]){Log[G(0x226)](G(0x246));throw new UsageError();}}}this[G(0x204)][G(0x243)]&&this[G(0x20c)](this[G(0x204)][G(0x243)]);await this[G(0x230)](a,b,this[G(0x204)]);if(!b[G(0x1f5)]&&!this['options']['noNeedResource']){Log['error'](G(0x1fe));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x1ec)](k),process['exit'](0x1);}return await inside(b[G(0x25d)],async()=>{const H=G;try{if(!b[H(0x212)]&&!this[H(0x20e)][H(0x1f9)]())throw new MustBeInProjectError();const l=b[H(0x1f5)]?.['replace'](/\\/g,'/')[H(0x200)]('/');!b[H(0x253)]&&(l?.[H(0x255)]>0x1?(b[H(0x1f5)]=l[H(0x1da)](),c[0x0]=b[H(0x1f5)],b[H(0x253)]=l['map'](n=>{return paramCase(n);})[H(0x258)](a104e[H(0x1f1)])):b[H(0x253)]='');if(this[H(0x204)]['checkWhere']){if(!b['where']){const o={'type':'list','name':H(0x225),'message':H(0x1f3),'choices':[{'name':H(0x21d),'value':'client'},{'name':H(0x250),'value':'server'},{'name':H(0x1f6),'value':H(0x240)}]},{colLocAnswer:p}=await Actions[H(0x204)](o);p?b[H(0x22d)]=p:b[H(0x22d)]=H(0x240);}const n=['both',H(0x24f),'server'];if(!n[H(0x228)](b['where'])){Log[H(0x226)](H(0x1ff));throw new UsageError();}switch(b[H(0x22d)]){case H(0x240):b['appPathPrefix']='lib';break;case H(0x1f0):b[H(0x1e0)]=H(0x1f0);break;case'client':b[H(0x1e0)]='client';break;default:b['appPathPrefix']='';}}const m=await this[H(0x1f8)][H(0x1dc)](this,c,b);return m&&this[H(0x20d)]({'params':{'args':c,'opts':this['fsi'][H(0x1f4)](b)},'success':m?.[H(0x24c)],'message':m?.['message'],'details':m?.['details']}),m;}catch(q){this[H(0x1ec)](q);}});}[a104v(0x1ed)](){const I=a104v;this[I(0x24a)](this[I(0x244)]);}[a104v(0x1ec)](a){const J=a104v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x204)];Log[J(0x251)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x256)]('Generators:'),this['tableList'](this[J(0x244)]);else{if(a instanceof MustBeInProjectError)Log[J(0x226)](J(0x219));else{if(a instanceof NoMeteorFoundError)Log[J(0x226)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0x256)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a104v(0x24a)](a){const K=a104v,b=new a104g({});b[K(0x1fd)](['Name','Alias',K(0x221)]),a[K(0x206)]((c,d)=>{const L=K;return c[L(0x208)][L(0x1d8)](d[L(0x208)]);})[K(0x1e1)](c=>{const M=K,d=c[M(0x1de)](),e=d?'(expermiental)\x20'+c[M(0x217)]():c[M(0x217)]();b['push']([c[M(0x208)],c[M(0x1e4)](),e]);}),Log[K(0x231)](b[K(0x232)]());}}function a104c(){const N=['includes','maxOptsLength','.maka','keys','pathFromProject','where','addGenerator','461331HKmfHV','validateParams','bright','toString','Generator\x20','931632nOzKmf','Too\x20few\x20options','fullNameChain','filter','Generator\x20requires\x20a\x20handler\x20function','help','\x20not\x20found','getHistoryFileSize','Generator\x20requires\x20a\x20name','\x20not\x20found.\x20Cannot\x20undo.','No\x20undo\x20handler\x20defined\x20for\x20','Too\x20few\x20arguments','both','Too\x20many\x20arguments','existsSync','requiredEngines','_generators','DARK','Too\x20many\x20options','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','minArgLength','create','tableList','size','success','search','1670712qKdsBj','client','Server','usage','config','dir','_undoHandler','length','notice','find','join','invoke','16520dVTysH','shift','setColorMode','cwd','16NwrKEr','getGlobalConfig','localeCompare','pallet','pop','undo','call','4562qEXhAU','experimental','history.json','appPathPrefix','forEach','number','maxArgLength','aliases','readFileSync','warn','findGeneratorByName','stringify','match','params','parse','handleGenerateError','listGenerators','chdir','assign','server','sep','transactionId','Location','deepen','resourceName','Both','validateMakaSubscription','_handler','findProjectDirectory','light','writeHistory','validateMakaProject','push','No\x20resource\x20name\x20specified','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','split','474WOlzXq','generatorName','Generator\x20not\x20found','options','Generator.create\x20requires\x20a\x20handler\x20function!','sort','minOptsLength','name','187iUmRPB','from','utf-8','validateEngines','addToHistory','fsi','29204nUXisG','readHistory','mustHaveMeteorInstalled','root','function','\x20generator.\x20Skipping\x20undo.','validateMeteorInstall','writeFileSync','shortDesc','opts','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','4028610VDjXQJ','(((.+)+)+)+$','495bddboW','Client','apply','statSync','_genTransactionId','Description','reverse','Generator.create\x20requires\x20some\x20options!','_historyFilePath','colLocAnswer','error','247hvaeKC'];a104c=function(){return N;};return a104c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a105d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=-parseInt(f(0x1d8))/0x1+parseInt(f(0x1cc))/0x2*(parseInt(f(0x1cb))/0x3)+parseInt(f(0x1d9))/0x4*(-parseInt(f(0x1cd))/0x5)+-parseInt(f(0x1dc))/0x6*(-parseInt(f(0x1d6))/0x7)+-parseInt(f(0x1d1))/0x8*(parseInt(f(0x1d0))/0x9)+parseInt(f(0x1d4))/0xa*(parseInt(f(0x1d2))/0xb)+-parseInt(f(0x1db))/0xc*(-parseInt(f(0x1d5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xde310));function a105c(){var i=['11zxuDdA','(((.+)+)+)+$','5002590YAVCsB','546twEBkX','56DQDbRC','toString','229534FbciTu','553708PUUMFg','search','339684TrxFOS','1109868DkCffS','1929396TUUaVm','4JRQQEU','60gOXSsE','apply','constructor','9TTpPOC','13235896GBiDAV'];a105c=function(){return i;};return a105c();}var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a[h(0x1d7)]()[h(0x1da)]('(((.+)+)+)+$')[h(0x1d7)]()[h(0x1cf)](a105a)[h(0x1da)](h(0x1d3));});a105a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x1cb;var f=c[d];return f;},a105d(a,b);}import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d
|
|
1
|
+
const a106y=a106d;function a106c(){const B=['RPC\x20(Methods)','(((.+)+)+)+$','pathFromApp','api/api.js','resourceName','mdg:validated-method','553273zljQXC','withRest','server','startup','template','Resolvers);\x0a\x0a','-api\x27;','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','import\x20{\x20typeDefs\x20as\x20','GraphQL','create','\x0a\x20\x20Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20create\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','35895ojvqot','const','1240735nTVvyk','resolvers.','apply','constructor','16apOOtH','setProjectConfig','ddp-rate-limiter','length','apollo','-api.','resolverList.push(','rewriteDestinationPathForEngine','maka\x20{generate,\x20g}:{api}\x20<resource-name>','checkbox','typeList.push(','88HpZnbd','-rest-api.','/graphql/resolvers','dir','-rpc-methods.','fsi','TypeDefs);\x0a','314920ebERYa','36xkQgHn','193857JPAjyj','withGql','Resolvers\x20}\x20from\x20\x27','rest','api/register-api.js','includes','register-','apiAnswers','options','/imports/api/','TypeDefs\x20}\x20from\x20\x27','2237202XoXHMT','graphql','import\x20\x27./register-','index.','toString','imports','api','injectIntoFile','search','/graphql/typeDefs','test','checkMeteorPackage','api/resolvers.js','withValue','API\x20Version?\x20[v1]','if\x20\x5c(typeList','push','\x27;\x0a','engines','3189990QsGrJc','withMethods','ask','getMakaProjectConfig','API\x20boundaries\x20to\x20create','api/tests.js','maka:rest','injectAtBeginningOfFile','error'];a106c=function(){return B;};return a106c();}(function(a,b){const v=a106d,c=a();while(!![]){try{const d=-parseInt(v(0x191))/0x1+parseInt(v(0x18f))/0x2+parseInt(v(0x177))/0x3*(-parseInt(v(0x188))/0x4)+-parseInt(v(0x179))/0x5+-parseInt(v(0x19c))/0x6+parseInt(v(0x16b))/0x7*(-parseInt(v(0x17d))/0x8)+-parseInt(v(0x190))/0x9*(-parseInt(v(0x1af))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x3029d));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x1a0)]()[x(0x1a4)](x(0x1b9))[x(0x1a0)]()[x(0x17c)](a106a)[x(0x1a4)](x(0x1b9));});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x167;let f=c[d];return f;},a106d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106y(0x175)]({'name':'api','aliases':['a'],'usage':a106y(0x185),'shortDesc':a106y(0x172),'validOpts':[a106y(0x18b)],'examples':['maka\x20g:api\x20Todos'],'description':a106y(0x176)},async function(a,b){const z=a106y;try{const c=this[z(0x18d)][z(0x1b2)](),d=[{'name':z(0x1b8),'value':z(0x1b0)}];d[z(0x1ac)]({'name':'REST\x20API','value':'withRest'});c['engines']['graphql']===z(0x181)&&d[z(0x1ac)]({'name':z(0x174),'value':'withGql'});const f={'type':z(0x186),'name':z(0x198),'message':z(0x1b3),'pageSize':0x64,'choices':d},g=await Actions[z(0x1b1)](z(0x1aa))||'v1',{apiAnswers:h}=await Actions[z(0x199)](f);h[z(0x180)]===0x0&&(Log[z(0x1b7)]('No\x20API\x20boundaries\x20selected'),process['exit'](0x1)),await this[z(0x18d)][z(0x1a9)](c,async()=>{const A=z,i=b[A(0x169)],j=paramCase(i),k=camelCase(i),l=b[A(0x18b)]?'/'+b[A(0x18b)]+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x1ae)]['api'],'graphql':c[A(0x1ae)][A(0x19d)],'test':c[A(0x1ae)][A(0x1a6)],'noRename':!![],'withMethods':h[A(0x196)](A(0x1b0)),'withRest':h[A(0x196)](A(0x16c))};let n='js';c['engines']['js']==='tsx'&&(n='ts');m[A(0x16c)]&&(this[A(0x18d)][A(0x17e)]({'engines':{'api':A(0x194)}}),await this[A(0x18d)][A(0x1a7)]([A(0x1b5),'ddp-rate-limiter',A(0x16a)],{'shouldInstall':!![]}),await this[A(0x18d)][A(0x16f)]({'srcPath':A(0x168),'destPath':this[A(0x18d)][A(0x167)]({'pathParts':[A(0x1a1),A(0x1a2),g,b['dir'],j,j+'-'+g+A(0x189)+n]}),'context':m,'config':c}));m[A(0x1b0)]&&(await this[A(0x18d)][A(0x1a7)]([A(0x17f),'mdg:validated-method'],{'shouldInstall':!![]}),await this[A(0x18d)][A(0x16f)]({'srcPath':'api/methods.js','destPath':this[A(0x18d)][A(0x167)]({'pathParts':[A(0x1a1),A(0x1a2),g,b[A(0x18b)],j,j+'-'+g+A(0x18c)+n]}),'context':m,'config':c}));c[A(0x1ae)][A(0x1a6)]!=='none'&&await this[A(0x18d)][A(0x16f)]({'srcPath':A(0x1b4),'destPath':this[A(0x18d)][A(0x167)]({'pathParts':[A(0x1a1),A(0x1a2),g,b['dir'],j,j+'-'+g+'.app-tests.'+n]}),'context':m,'config':c});if(c[A(0x1ae)][A(0x19d)]===A(0x181)){if(h[A(0x196)](A(0x192))){const p=this[A(0x18d)][A(0x167)]({'pathParts':['imports',A(0x16e),A(0x16d),A(0x19f)+c['engines']['js']]}),q=this['fsi'][A(0x184)]({'pathParts':[p],'config':c}),r=this[A(0x18d)][A(0x167)]({'pathParts':[A(0x1a1),A(0x1a2),g,b[A(0x18b)],j,'graphql','typeDefs.'+n]}),s=A(0x19a)+g+l+j+A(0x1a5);await this['fsi'][A(0x16f)]({'srcPath':'api/typeDefs.js','destPath':r,'context':m,'config':c}),await this[A(0x18d)][A(0x1b6)]({'filePath':q,'content':A(0x173)+k+A(0x19b)+s+A(0x1ad)}),await this[A(0x18d)][A(0x1a3)]({'filePath':q,'content':A(0x187)+k+A(0x18e),'begin':A(0x178),'end':A(0x1ab)});const t=this['fsi'][A(0x167)]({'pathParts':[A(0x1a1),'api',g,b[A(0x18b)],j,A(0x19d),A(0x17a)+n]}),u=A(0x19a)+g+l+j+A(0x18a);await this[A(0x18d)][A(0x16f)]({'srcPath':A(0x1a8),'destPath':t,'context':m,'config':c}),await this[A(0x18d)][A(0x1b6)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x193)+u+'\x27;'}),await this[A(0x18d)][A(0x1a3)]({'filePath':q,'content':A(0x183)+k+A(0x170),'begin':A(0x178),'end':A(0x1ab)});}}await this['fsi'][A(0x16f)]({'srcPath':A(0x195),'destPath':this[A(0x18d)][A(0x167)]({'pathParts':[A(0x1a1),A(0x16e),A(0x16d),A(0x197)+j+A(0x182)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x18d)][A(0x167)]({'pathParts':[A(0x1a1),A(0x16e),A(0x16d),'index.'+c[A(0x1ae)]['js']]});await this[A(0x18d)]['injectAtEndOfFile']({'filePath':o,'content':A(0x19e)+j+A(0x171)});});}catch(i){console[z(0x1b7)](i),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a107c(){var i=['(((.+)+)+)+$','3036222GgEgtU','8TeAoBh','search','apply','5332980snJmCv','902206ucVFeQ','2739341ETEhnD','972999buDyXO','13026027BXsQgS','76520dORMgl','654CmoGjL','50luOJcl','3PyOhxL','constructor'];a107c=function(){return i;};return a107c();}(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0x15d))/0x1+parseInt(f(0x15b))/0x2*(parseInt(f(0x162))/0x3)+parseInt(f(0x169))/0x4+-parseInt(f(0x15f))/0x5*(-parseInt(f(0x160))/0x6)+-parseInt(f(0x15e))/0x7+-parseInt(f(0x166))/0x8*(parseInt(f(0x165))/0x9)+parseInt(f(0x161))/0xa*(-parseInt(f(0x15c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xefc5d));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a['toString']()[h(0x167)](h(0x164))['toString']()[h(0x163)](a107a)['search'](h(0x164));});function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x15b;var f=c[d];return f;},a107d(a,b);}a107a();import'./aws.js';import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x180;let f=c[d];return f;},a108d(a,b);}const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x180))/0x1+parseInt(f(0x187))/0x2+-parseInt(f(0x190))/0x3+-parseInt(f(0x18d))/0x4+-parseInt(f(0x18b))/0x5+-parseInt(f(0x18a))/0x6*(-parseInt(f(0x181))/0x7)+parseInt(f(0x183))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x4961d));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x18e)]()[h(0x184)](h(0x18c))['toString']()[h(0x189)](a108a)[h(0x184)](h(0x18c));});a108a();import{Generator}from'../../generator.js';const AWSGen=Generator[a108i(0x185)]({'name':a108i(0x18f),'usage':'maka\x20{generate,\x20g}:{aws}:<name>','shortDesc':a108i(0x186),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a108i(0x188)],'experimental':!![]},async function(){});function a108c(){const j=['maka\x20g:aws','constructor','863238FSbFeG','1777105TEDhJV','(((.+)+)+)+$','1459764xtVRog','toString','aws','1497069MrWHMY','250661EyfyVH','7ycpZvA','apply','9908096TQkhmh','search','create','Generate\x20AWS\x20templates','776468AcyOCB'];a108c=function(){return j;};return a108c();}export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-
|
|
1
|
+
function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x88;var f=c[d];return f;},a109d(a,b);}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=parseInt(f(0x8a))/0x1+-parseInt(f(0x92))/0x2*(-parseInt(f(0x8c))/0x3)+parseInt(f(0x93))/0x4+-parseInt(f(0x91))/0x5+parseInt(f(0x88))/0x6+parseInt(f(0x89))/0x7+-parseInt(f(0x90))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xec12a));var a109b=(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;};}()),a109a=a109b(this,function(){var g=a109d;return a109a[g(0x8e)]()[g(0x8b)](g(0x8d))['toString']()[g(0x8f)](a109a)[g(0x8b)](g(0x8d));});a109a();import'./cloudformation.js';function a109c(){var h=['constructor','15347160JhLqza','7324350SWSYdG','22EgqnFa','1906760LPPYZG','5862330RxRFMO','7052045EldtKE','428052hgWpKt','search','398451BVbemd','(((.+)+)+)+$','toString'];a109c=function(){return h;};return a109c();}import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d
|
|
1
|
+
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0xdb))/0x1*(parseInt(f(0xcd))/0x2)+parseInt(f(0xca))/0x3*(parseInt(f(0xc9))/0x4)+parseInt(f(0xd0))/0x5+parseInt(f(0xcb))/0x6*(parseInt(f(0xd4))/0x7)+-parseInt(f(0xd1))/0x8*(-parseInt(f(0xc8))/0x9)+-parseInt(f(0xcf))/0xa*(parseInt(f(0xd2))/0xb)+parseInt(f(0xc7))/0xc*(-parseInt(f(0xd8))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x6018e));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0xce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a['toString']()[h(0xd9)](h(0xd3))[h(0xd7)]()[h(0xd6)](a110a)[h(0xd9)]('(((.+)+)+)+$');});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xc7;let f=c[d];return f;},a110d(a,b);}a110a();function a110c(){const j=['12iVcJzv','apply','190TzBoRF','501575kcGDXl','16aJBBcn','286022LImztJ','(((.+)+)+)+$','7CmlcSC','AWS\x20Cloudformation\x20templates','constructor','toString','26dBmHIq','search','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','40022nHxAZM','cloudformation','8329368CcWpFV','3495114QbqvBO','3072488rldrTE','3IWvpCF','2343714cMfPcU','maka\x20g:aws:cf'];a110c=function(){return j;};return a110c();}import{Generator}from'../../../generator.js';import a110e from'../aws.js';const CFGen=Generator['create']({'name':a110i(0xdc),'aliases':['cf'],'usage':a110i(0xda),'noNeedResource':!![],'shortDesc':a110i(0xd5),'validOpts':[''],'isPro':![],'examples':[a110i(0xcc)],'experimental':!![]},async function(){},async function(){},a110e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=-parseInt(m(0x198))/0x1*(parseInt(m(0x189))/0x2)+-parseInt(m(0x1a1))/0x3+-parseInt(m(0x19b))/0x4*(parseInt(m(0x1a2))/0x5)+-parseInt(m(0x17e))/0x6*(parseInt(m(0x18a))/0x7)+parseInt(m(0x185))/0x8*(-parseInt(m(0x196))/0x9)+-parseInt(m(0x19e))/0xa+-parseInt(m(0x1a3))/0xb*(-parseInt(m(0x182))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x7f3af));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a111d;if(c){const e=c[n(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const o=a111d;return a111a[o(0x18d)]()['search'](o(0x190))['toString']()[o(0x1a4)](a111a)[o(0x192)](o(0x190));});a111a();import a111e from'path';import{AWS}from'../../../tools/aws/aws.class.js';import{Actions}from'../../../tools/actions/actions.class.js';import{headerCase}from'change-case';import{Generator}from'../../../generator.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x17d;let f=c[d];return f;},a111d(a,b);}import{Log}from'../../../tools/log/log.class.js';import a111f from'./cloudformation.js';const CEC2Gen=Generator[a111p(0x193)]({'name':a111p(0x188),'aliases':[a111p(0x194)],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','noNeedResource':!![],'shortDesc':a111p(0x18c),'validOpts':[''],'isPro':![],'examples':[a111p(0x197)],'experimental':!![]},async function(){const q=a111p,a=new AWS();try{const b=this[q(0x1a0)][q(0x186)](),c=this[q(0x1a0)]['findProjectDirectory'](),d=a111e[q(0x19d)](c,q(0x187)),f=await a['ec2describeKeys'](),g=await Actions[q(0x18f)](q(0x181))||'-1';if(parseInt(g)<0x0){Log[q(0x195)](q(0x1a6)),Log[q(0x183)](q(0x18b));return;}let h='';if(f)for(const k of f){if(parseInt(g)===k['id']){h=k[q(0x199)],Log[q(0x180)](q(0x1a5)+h);break;}}const i=await a[q(0x17f)](),j={'amiId':q(0x18e),'keyPair':h,'sgId':i,'instanceName':headerCase(b[q(0x17d)])[q(0x191)]('-','\x20')};await this[q(0x1a0)]['withValue'](b,async()=>{const r=q;await this[r(0x1a0)]['template']({'srcPath':r(0x184),'destPath':a111e[r(0x19d)](d,r(0x19f)),'framework':r(0x19c),'context':j,'config':b,'ignore':![]});});}catch(l){Log[q(0x195)](l),process['exit'](0x1);}},async function(){},a111f);export default CEC2Gen;function a111c(){const s=['No\x20instance\x20has\x20been\x20created.','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','toString','ami-055744c75048d8296','ask','(((.+)+)+)+$','replaceAll','search','create','cec2i','error','2592792oPylSI','maka\x20g:aws:cf:cec2i','4rlQfwd','name','apply','8XkCCNB','aws','join','1003550NJWpnz','create-ec2-instance.template','fsi','825165Zxynsq','777025ZuQMwB','22drlMYE','constructor','Setting\x20the\x20key-pair\x20to:\x20','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','appName','6FvcCKs','chooseSecurityGroup','success','Please\x20choose\x20a\x20key\x20to\x20use:\x20','16687284VLjrlc','notice','cloudformation/create-ec2-instance.template','16zBKLbH','getMakaProjectConfig','cloudformation','create-ec2-instance','256106HpMWsI','3398297oYBfEQ'];a111c=function(){return s;};return a111c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112l=a112d;(function(a,b){const j=a112d,c=a();while(!![]){try{const d=parseInt(j(0x96))/0x1+parseInt(j(0x75))/0x2*(parseInt(j(0x76))/0x3)+parseInt(j(0x8c))/0x4+parseInt(j(0x97))/0x5*(parseInt(j(0x87))/0x6)+-parseInt(j(0x74))/0x7*(-parseInt(j(0x89))/0x8)+parseInt(j(0x83))/0x9*(parseInt(j(0x88))/0xa)+-parseInt(j(0x8a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x7d167));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const k=a112d;return a112a[k(0x7e)]()[k(0x98)]('(((.+)+)+)+$')['toString']()['constructor'](a112a)['search'](k(0x7b));});a112a();function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x72;let f=c[d];return f;},a112d(a,b);}function a112c(){const o=['getMakaProjectConfig','withValue','890835snzsMq','20oWIubn','search','col','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','collection/collection.js','collections','7cXvbFk','2wAmSvK','1698813xTFPaY','maka\x20g:collection\x20todos','injectAtEndOfFile','mongo','index.','(((.+)+)+)+$','template','dir','toString','collection/tests.js','engines','resourceName','tsx','2097IPGdal','where','collection','fsi','1149924TrSWxl','25530bImVrY','566944MrRVje','28769950LfkwtO','appPathPrefix','953480UtYTpB','test','create','checkMeteorPackage','error','pathFromApp','imports','startup'];a112c=function(){return o;};return a112c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a112l(0x8e)]({'name':a112l(0x85),'aliases':[a112l(0x99)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a112l(0x9b),'validOpts':[a112l(0x7d),a112l(0x84)],'description':a112l(0x9a),'examples':[a112l(0x77)]},async function(a,b){const m=a112l;try{const c=this[m(0x86)][m(0x94)]();await this[m(0x86)][m(0x95)](c,async()=>{const n=m,d=paramCase(b['resourceName']),f={'name':pascalCase(b[n(0x81)]),'collectionName':pascalCase(b[n(0x81)]),'fileName':d,'where':b[n(0x84)],'test':c[n(0x80)]['test'],'noRename':!![]};let g='js';c[n(0x80)]['js']===n(0x82)&&(g='ts');await this[n(0x86)][n(0x8f)]([n(0x79)],{'shouldInstall':!![]}),await this['fsi'][n(0x7c)]({'srcPath':n(0x72),'destPath':this['fsi'][n(0x91)]({'pathParts':['imports',n(0x93),b[n(0x8b)],'collections',b[n(0x7d)],d+'.'+g]}),'context':f,'config':c});c[n(0x80)][n(0x8d)]!=='none'&&await this[n(0x86)]['template']({'srcPath':n(0x7f),'destPath':this[n(0x86)][n(0x91)]({'pathParts':[n(0x92),'startup',b[n(0x8b)],n(0x73),b[n(0x7d)],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[n(0x7d)]?'/'+b[n(0x7d)]+'/':'/',i=this[n(0x86)][n(0x91)]({'pathParts':[n(0x92),n(0x93),b[n(0x8b)],n(0x7a)+c['engines']['js']]});await this[n(0x86)][n(0x78)]({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log[m(0x90)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0x103))/0x1+parseInt(k(0x124))/0x2*(-parseInt(k(0x117))/0x3)+parseInt(k(0x129))/0x4*(parseInt(k(0x11d))/0x5)+parseInt(k(0x111))/0x6+-parseInt(k(0x122))/0x7*(parseInt(k(0x135))/0x8)+-parseInt(k(0x12b))/0x9*(-parseInt(k(0x105))/0xa)+parseInt(k(0x11b))/0xb*(-parseInt(k(0x11a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xaa381));function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xff;let f=c[d];return f;},a113d(a,b);}const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0x104)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a[m(0x114)]()[m(0x138)](m(0x113))[m(0x114)]()[m(0x126)](a113a)[m(0x138)]('(((.+)+)+)+$');});a113a();import a113e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a113c(){const q=['.js','import\x20\x27./','client','/imports/ui/components','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','pathFromProject','fsi','withTranslations','baseDir','136EMfoZm','pathFromApp','string','search','setTemplate','template','react','test','css','component/component.js','.tests.js','resourceName','/imports/ui/','1340745rKTSSd','apply','92140MdfeFj','error','withValue','className','maka\x20g:comp\x20todos/todos-item','none','checkNpmPackage','api','graphql','engines','relative','ssr','8206374RVPWEu','dir','(((.+)+)+)+$','toString','warn','ramda','511194lGftYG','cssCaseName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','7512tROlBQ','42119DFhMLH','findAppDirectory','5vDMgUY','root','comp','template/template.css','test/test.js','441847CSyasJ','features','2kuEbip','create','constructor','installNpmPackage','getMakaProjectConfig','3678696ohQwQM','true','693rSoRkv'];a113c=function(){return q;};return a113c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a113n(0x11f)];Generator[a113n(0x125)]({'name':'component','aliases':aliases,'usage':a113n(0x130),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a113n(0x134)}],'examples':[a113n(0x109)]},async function(a,b){const o=a113n;try{const c=this[o(0x132)][o(0x11c)](),d=b[o(0x134)]?o(0x102)+b['baseDir']:o(0x12f),f=this[o(0x132)][o(0x136)]({'pathParts':[d,b['dir'],paramCase(b['resourceName']),paramCase(b[o(0x101)])]}),g=await this[o(0x132)][o(0x128)]();await this['fsi'][o(0x107)](g,async()=>{const p=o;typeof g[p(0x13a)][p(0x13c)]==='string'&&(g[p(0x13a)][p(0x13c)]=g['template'][p(0x13c)]===p(0x12a)?!![]:![],this[p(0x132)][p(0x139)](p(0x13c),g[p(0x13a)][p(0x13c)]));typeof g['template'][p(0x13d)]===p(0x137)&&(g[p(0x13a)]['css']=g[p(0x13a)][p(0x13d)]==='true'?!![]:![],this[p(0x132)][p(0x139)]('css',g[p(0x13a)][p(0x13d)]));typeof g[p(0x13a)]['js']===p(0x137)&&(g[p(0x13a)]['js']=g[p(0x13a)]['js']===p(0x12a)?!![]:![],this[p(0x132)]['setTemplate']('js',g[p(0x13a)]['js']));!g[p(0x123)]&&(g[p(0x123)]={});!b[p(0x11e)]&&!this['fsi'][p(0x10b)](p(0x116))&&(Log[p(0x115)](p(0x119)),await this[p(0x132)][p(0x127)](p(0x116),{'cwd':c}));if(!b[p(0x11e)]&&!this[p(0x132)]['checkNpmPackage'](p(0x13b))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[p(0x101)]),'myPath':a113e[p(0x10f)](this['fsi'][p(0x131)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[p(0x101)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[p(0x101)]),'graphql':g[p(0x10e)][p(0x10d)],'features':g[p(0x123)],'client':g[p(0x10e)][p(0x12e)],'api':g[p(0x10e)][p(0x10c)],'ssr':g[p(0x10e)][p(0x110)],'test':g[p(0x10e)][p(0x13c)],'theme':g[p(0x10e)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x123)][p(0x133)]};await this[p(0x132)][p(0x13a)]({'srcPath':p(0xff),'destPath':f+p(0x12c),'context':h,'framework':p(0x13b),'config':g});g[p(0x10e)][p(0x13c)]!==p(0x10a)&&await this['fsi'][p(0x13a)]({'srcPath':p(0x121),'destPath':f+p(0x100),'context':h,'framework':p(0x13b),'config':g});g[p(0x13a)]['css']&&(await this['fsi'][p(0x13a)]({'srcPath':p(0x120),'destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[p(0x101)])}),'config':g}),await this[p(0x132)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[p(0x10e)]['js'],'content':p(0x12d)+h[p(0x118)]+'.'+g[p(0x10e)][p(0x13d)]+'\x27;'}));const i=b[p(0x112)]?'/'+b[p(0x112)]+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];await this[p(0x132)]['injectTemplateModule'](h[p(0x108)],g,j);});}catch(h){Log[o(0x106)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114l=a114d;(function(a,b){const i=a114d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
const a114l=a114d;(function(a,b){const i=a114d,c=a();while(!![]){try{const d=-parseInt(i(0x180))/0x1+-parseInt(i(0x181))/0x2*(parseInt(i(0x171))/0x3)+-parseInt(i(0x170))/0x4+-parseInt(i(0x167))/0x5*(parseInt(i(0x160))/0x6)+-parseInt(i(0x17c))/0x7+-parseInt(i(0x161))/0x8+parseInt(i(0x169))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xd3743));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a114d;if(c){const e=c[j(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const k=a114d;return a114a[k(0x162)]()[k(0x16f)](k(0x182))[k(0x162)]()[k(0x16a)](a114a)[k(0x16f)](k(0x182));});a114a();function a114c(){const o=['fsi','settings.json','apply','config/process.env','development','1722560xRIXpI','config/settings.json','withValue','config/pm2.config.js','376595rBpcBo','114GYTaPR','(((.+)+)+)+$','error','maka\x20{generate,\x20g}:{config}\x20<name>','ubuntu','4705884psfEym','1122848DGJxEd','toString','process.env','production','getMakaProjectConfig','local','5byCjDl','dev','31931937qiNDVY','constructor','pathFromProject','create','isDocker','appName','search','2396072gbjalD','28185rVfXYX','resourceName','template','pm2.config.js','maka\x20g:config\x20production','config'];a114c=function(){return o;};return a114c();}function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x15f;let f=c[d];return f;},a114d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114l(0x16c)]({'name':a114l(0x176),'usage':a114l(0x184),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a114l(0x16d)],'examples':[a114l(0x175)]},async function(a,b){const m=a114l;try{const c=this[m(0x177)][m(0x165)]();await this[m(0x177)][m(0x17e)](c,async()=>{const n=m,d={'app':c[n(0x16e)],'appFileCase':paramCase(c[n(0x16e)]),'name':pascalCase(b[n(0x172)]),'fileName':paramCase(b[n(0x172)]),'camelCase':camelCase(b['resourceName']),'userName':n(0x15f),'isDocker':b[n(0x16d)]};let e=b['resourceName'];if(e===n(0x168))e=n(0x17b);else e==='prod'&&(e=n(0x164));const f=this[n(0x177)][n(0x16b)]({'pathParts':['config',e,n(0x178)]});await this['fsi'][n(0x173)]({'srcPath':n(0x17d),'destPath':f,'context':d,'config':c});if(e!=='local'){const g=this['fsi'][n(0x16b)]({'pathParts':[n(0x176),e,n(0x174)]});await this[n(0x177)]['template']({'srcPath':n(0x17f),'destPath':g,'context':{'app':c[n(0x16e)],'isDocker':!![]},'config':c});}if(e===n(0x166)){const h=this[n(0x177)][n(0x16b)]({'pathParts':['config',e,n(0x163)]});await this[n(0x177)][n(0x173)]({'srcPath':n(0x17a),'destPath':h,'context':d,'config':c});}});}catch(d){Log[m(0x183)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a115k=a115d;(function(a,b){const i=a115d,c=a();while(!![]){try{const d=parseInt(i(0x217))/0x1+parseInt(i(0x1f7))/0x2+-parseInt(i(0x20a))/0x3+parseInt(i(0x20d))/0x4+-parseInt(i(0x1f5))/0x5+parseInt(i(0x1fd))/0x6+parseInt(i(0x1fc))/0x7*(parseInt(i(0x210))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xe8f31));function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a115d(a,b);}const a115b=(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;};}()),a115a=a115b(this,function(){const j=a115d;return a115a[j(0x1f9)]()['search'](j(0x202))[j(0x1f9)]()[j(0x203)](a115a)['search'](j(0x202));});function a115c(){const n=['maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','checkNpmPackage','5000607AIJTjI','error','create','2416808eVaqxO','server','template','264fnjDTx','config.','pathFromApp','engines','dbc/conn.js','-dbc\x27;','tsx','47457OtyejC','dbc/register-dbc.js','dir','injectAtEndOfFile','getMakaProjectConfig','dbc','imports','import\x20\x27./register-','8027175iGJShL','withValue','219306GWrZxj','mssql','toString','maka\x20g:dbc\x20azure\x20--type=mssql','fsi','523803fifgyD','5974776vLPftN','dbc/config.js','maka\x20g:dbc\x20geoserver\x20--type=pgsql','startup','better-sqlite3','(((.+)+)+)+$','constructor','-dbc.','type','resourceName','sqlite'];a115c=function(){return n;};return a115c();}a115a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a115k(0x20c)]({'name':a115k(0x1f2),'usage':a115k(0x208),'shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a115k(0x219)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':['pgsql',a115k(0x1f8),a115k(0x207)]}],'examples':[a115k(0x1ff),a115k(0x1fa),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const l=a115k;try{const c=await this[l(0x1fb)][l(0x1f1)](),d=paramCase(b[l(0x206)]),f={'name':pascalCase(b[l(0x206)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0x206)]),'type':b[l(0x205)],'engine':c[l(0x213)]['js'],'noRename':!![]};await this[l(0x1fb)][l(0x1f6)](c,async()=>{const m=l;let g='js';c[m(0x213)]['js']===m(0x216)&&(g='ts');b[m(0x205)]==='pgsql'&&await this[m(0x1fb)]['checkNpmPackage']('pg',{'shouldInstall':!![]});b[m(0x205)]===m(0x1f8)&&await this['fsi']['checkNpmPackage'](m(0x1f8),{'shouldInstall':!![]});b[m(0x205)]==='sqlite'&&await this[m(0x1fb)][m(0x209)](m(0x201),{'shouldInstall':!![]});await this[m(0x1fb)][m(0x20f)]({'srcPath':m(0x1fe),'destPath':this['fsi'][m(0x212)]({'pathParts':[m(0x1f3),m(0x200),m(0x20e),m(0x1f2),b[m(0x219)],d,m(0x211)+g]}),'context':f,'config':c}),await this[m(0x1fb)]['template']({'srcPath':m(0x214),'destPath':this[m(0x1fb)]['pathFromApp']({'pathParts':[m(0x1f3),m(0x200),m(0x20e),'dbc',b[m(0x219)],d,'conn.'+g]}),'context':f,'config':c}),await this[m(0x1fb)][m(0x20f)]({'srcPath':m(0x218),'destPath':this[m(0x1fb)][m(0x212)]({'pathParts':['imports',m(0x200),m(0x20e),'register-'+d+m(0x204)+g]}),'context':f,'config':c});const h=this['fsi'][m(0x212)]({'pathParts':['imports',m(0x200),m(0x20e),'index.'+c[m(0x213)]['js']]});await this['fsi'][m(0x21a)]({'filePath':h,'content':m(0x1f4)+d+m(0x215)});});}catch(g){Log[l(0x20b)](g);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116k=a116d;(function(a,b){const h=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
const a116k=a116d;(function(a,b){const h=a116d,c=a();while(!![]){try{const d=parseInt(h(0x14f))/0x1*(parseInt(h(0x15a))/0x2)+-parseInt(h(0x154))/0x3+-parseInt(h(0x14b))/0x4*(-parseInt(h(0x150))/0x5)+parseInt(h(0x14c))/0x6+-parseInt(h(0x15d))/0x7+parseInt(h(0x159))/0x8+parseInt(h(0x160))/0x9*(-parseInt(h(0x153))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xe09b7));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a116d;if(c){const e=c[i(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const j=a116d;return a116a[j(0x147)]()[j(0x164)](j(0x146))[j(0x147)]()[j(0x152)](a116a)['search'](j(0x146));});function a116c(){const n=['isFile','app','(((.+)+)+)+$','toString','getGlobalConfig','Dockerfile','docker/Dockerfile','1191884xgOZtN','4083846GFIFwY','getMakaProjectConfig','findProjectDirectory','29wUyMht','20uiTYzf','join','constructor','1990GweYHs','1956318rphfIa','withValue','app.tar.gz','apply','error','13396872vQDHui','31658RwJfmB','fsi','create','12540549fegADE','maka\x20{generate,\x20g}:dockerfile','cert','29061tjhIdN','template','force','dockerfile','search'];a116c=function(){return n;};return a116c();}a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x145;let f=c[d];return f;},a116d(a,b);}import a116e from'path';Generator[a116k(0x15c)]({'name':a116k(0x163),'usage':a116k(0x15e),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[{'name':a116k(0x162),'boolFlag':!![]}],'noNeedResource':!![],'examples':['maka\x20g:dockerfile']},async function(a,b){const l=a116k;try{const c=await this[l(0x15b)][l(0x14d)](),d=await this[l(0x15b)][l(0x148)](),f=this[l(0x15b)][l(0x14e)]();await this[l(0x15b)][l(0x155)](c,async()=>{const m=l,g={'app':d['appName'],'config':c,'appPath':a116e[m(0x151)](f,m(0x145)),'bundlePath':a116e[m(0x151)](f,'build',m(0x156)),'useCert':this[m(0x15b)][m(0x165)](d[m(0x15f)])};await this['fsi'][m(0x161)]({'srcPath':m(0x14a),'destPath':a116e[m(0x151)](f,m(0x149)),'framework':'service','context':g,'config':c,'force':b['force']});});}catch(g){Log[l(0x158)](g);}});
|