@maka/maka-cli 4.13.13 → 4.13.14
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
|
-
var
|
|
1
|
+
var a95h=a95d;(function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0x1e2))/0x1*(parseInt(f(0x1e1))/0x2)+parseInt(f(0x1e0))/0x3*(-parseInt(f(0x1e3))/0x4)+-parseInt(f(0x1de))/0x5+-parseInt(f(0x1e9))/0x6*(parseInt(f(0x1e4))/0x7)+parseInt(f(0x1e7))/0x8*(-parseInt(f(0x1dc))/0x9)+parseInt(f(0x1d9))/0xa+parseInt(f(0x1df))/0xb*(parseInt(f(0x1d7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x46c50));var a95b=(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;};}()),a95a=a95b(this,function(){var g=a95d;return a95a[g(0x1db)]()[g(0x1e8)](g(0x1da))[g(0x1db)]()[g(0x1d8)](a95a)[g(0x1e8)](g(0x1da));});a95a();function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x1d7;var f=c[d];return f;},a95d(a,b);}import a95e from'./set.command.js';import{Command}from'../../command.js';function a95c(){var i=['12JamWVF','constructor','1553850xFWGDB','(((.+)+)+)+$','toString','253926qwEdHF','create','1006520EoGPHO','19773149XDjdXn','1034043VpWZny','14MXYdrW','73477TfIgUI','4yJHBnM','131894JmjhVT','maka\x20set:local-config','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','32ziMhuY','search','156PAzxrq'];a95c=function(){return i;};return a95c();}import{Log}from'../../tools/log/log.class.js';Command[a95h(0x1dd)]({'name':'local-config','usage':a95h(0x1e5),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a95h(0x1e6)},async function(){Log['notice']('Sorry,\x20not\x20implemented\x20yet');},a95e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96h=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x116))/0x1+parseInt(f(0x115))/0x2*(parseInt(f(0x111))/0x3)+-parseInt(f(0x10d))/0x4*(parseInt(f(0x110))/0x5)+-parseInt(f(0x10b))/0x6+-parseInt(f(0x11d))/0x7*(-parseInt(f(0x10c))/0x8)+parseInt(f(0x113))/0x9+parseInt(f(0x10a))/0xa*(-parseInt(f(0x10e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x85f78));const a96b=(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;};}()),a96a=a96b(this,function(){const g=a96d;return a96a[g(0x112)]()[g(0x11a)]('(((.+)+)+)+$')['toString']()['constructor'](a96a)[g(0x11a)](g(0x117));});a96a();import{Command}from'../../command.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x10a;let f=c[d];return f;},a96d(a,b);}const SetCommand=Command['create']({'name':a96h(0x11b),'usage':a96h(0x10f),'shortDesc':a96h(0x119),'description':a96h(0x118),'validOpts':[]},async function(a,b){const i=a96h,c=a[0x0],d=this[i(0x11c)](c);d&&this[i(0x114)](c,a,b);});function a96c(){const j=['search','set','findSubCommand','56VQVVis','15806150biYTyC','1922886tDjJve','921176wMjxyR','186068WYViua','11pmiTiG','maka\x20set:<sub-command>','95jTQAVQ','9Qpicca','toString','9536355FrkWhS','runSubCommand','378710NUxPXx','784811aLhkKL','(((.+)+)+)+$','\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','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally'];a96c=function(){return j;};return a96c();}export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x1bf))/0x1+parseInt(k(0x1ca))/0x2*(-parseInt(k(0x1c0))/0x3)+-parseInt(k(0x1b5))/0x4+-parseInt(k(0x1cb))/0x5*(-parseInt(k(0x1bd))/0x6)+-parseInt(k(0x1cc))/0x7*(parseInt(k(0x1c1))/0x8)+parseInt(k(0x1bb))/0x9+parseInt(k(0x1b1))/0xa*(parseInt(k(0x1c7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x84ec6));function a97c(){const p=['119JkjzqE','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','apply','ssh','30kWaQeU','maka\x20ssh\x20--env\x20staging','length','fsi','3984132NohbmE','toString','maka\x20ssh\x20--env\x20prod','search','parse','verbose','2516724UbGFvT','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','174leWrsZ','env','589973vBISGQ','34341omTeWK','314560lCeePE','sshSync','error','(((.+)+)+)+$','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20<command>','7678319FFGYmb','ssh.json','exit','134qUxtDm','2100uIljXi'];a97c=function(){return p;};return a97c();}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1ce)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x1b6)]()[m(0x1b8)](m(0x1c4))[m(0x1b6)]()['constructor'](a97a)[m(0x1b8)](m(0x1c4));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a97d(a,b);}a97a();import a97e from'fs';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['create']({'name':a97n(0x1b0),'usage':a97n(0x1c6),'mustBeInMakaProject':!![],'requiredOpts':[a97n(0x1be)],'validOpts':[a97n(0x1be),a97n(0x1ba)],'shortDesc':a97n(0x1bc),'examples':['maka\x20ssh\x20--env\x20dev',a97n(0x1b2),a97n(0x1b7),'maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22',a97n(0x1c5),a97n(0x1cd)]},async function(a,b){const o=a97n;try{const c=this[o(0x1b4)]['getEnvFromShorthand'](b[o(0x1be)]),d=this[o(0x1b4)]['getAppConfigPath'](c);let f='';a[o(0x1b3)]>0x0&&(f=a[0x0]);const g=a97f['join'](c,o(0x1c8)),h=a97e['readFileSync'](g)[o(0x1b6)](),i=JSON[o(0x1b9)](h);Object['assign'](i,{'env':d}),SSH[o(0x1c2)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0x1ba)]});}catch(j){Log[o(0x1c3)](j),process[o(0x1c9)](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(0x1f5))/0x1+-parseInt(w(0x1c8))/0x2*(parseInt(w(0x1c3))/0x3)+-parseInt(w(0x1d6))/0x4*(parseInt(w(0x1e7))/0x5)+parseInt(w(0x1cb))/0x6*(-parseInt(w(0x1ca))/0x7)+parseInt(w(0x1d2))/0x8+parseInt(w(0x1fd))/0x9+parseInt(w(0x1c9))/0xa*(parseInt(w(0x1df))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x5690f));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a98d;if(c){const e=c[x(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const y=a98d;return a98a[y(0x1e0)]()['search'](y(0x1d8))[y(0x1e0)]()[y(0x1ed)](a98a)['search']('(((.+)+)+)+$');});function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a98d(a,b);}a98a();import a98e from'fs';import a98f from'path';function a98c(){const B=['uname\x20-a','parse','3762720exTeJW','error','existsSync','.csr','readFileSync','fsi','genCSR','33KylVLS','ask','New\x20CSR\x20written\x20to\x20','letsencrypt.json','/ssh.json','62402zYMJrw','1939680MWFZlX','1015581YSRsCb','18khrqNH','letsencrypt','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','success','domainNames','generate-csr','Create\x20and\x20manage\x20your\x20SSL\x20operations.','4634024cRZKZA','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','.crt','getMakaProjectConfig','566300DgJHHz','Remote\x20host\x20connection\x20successful','(((.+)+)+)+$','exit','getAppConfigPath','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','join','Email\x20to\x20use\x20for\x20auto-updates:\x20','genSSC','55pYxZpw','toString','ssl','notice','getEnvFromShorthand','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','writeFileSync','5wcgULr','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','maka\x20ssl\x20[command]','apply','appName','.key','constructor','start','domains','Checking\x20remote\x20host\x20availability','email','[?]\x20Domains\x20to\x20register:\x20','env','ssh','692563jicdlT','stringify','emailUpdate','ping','mkKeysDir','Verifying\x20Letsencrypt\x20configuration'];a98c=function(){return B;};return a98c();}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['create']({'name':a98z(0x1e1),'usage':a98z(0x1e9),'validOpts':[a98z(0x1ef),a98z(0x1f1)],'requiredOpts':[a98z(0x1f3)],'shortDesc':a98z(0x1d1),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':['maka\x20ssl\x20--env\x20dev\x20generate-csr','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a98z(0x1e8)]},async function(a,b){const A=a98z,c=this[A(0x1c1)][A(0x1d5)](),d=this['fsi'][A(0x1e3)](b[A(0x1f3)]),f=this[A(0x1c1)][A(0x1da)](d),g=this[A(0x1c1)][A(0x1f9)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x1d0))SSL[A(0x1c2)]({'keyName':c[A(0x1eb)]+'.key','csrName':c['appName']+A(0x1bf),'cwd':g});else{if(h==='generate-ssc'){if(!a98e['existsSync'](a98f[A(0x1dc)](g,c[A(0x1eb)]+A(0x1ec))))throw A(0x1e4)+a98f['join'](g,c[A(0x1eb)]+A(0x1ec));if(!a98e[A(0x1ff)](a98f['join'](g,c[A(0x1eb)]+A(0x1bf))))throw A(0x1d3)+a98f[A(0x1dc)](g,c[A(0x1eb)]+A(0x1bf));SSL[A(0x1de)]({'keyName':c[A(0x1eb)]+A(0x1ec),'crtName':c[A(0x1eb)]+A(0x1d4),'cwd':g}),Log[A(0x1e2)](A(0x1c5)+g);}else{if(h===A(0x1cc)){let i=b[A(0x1ef)],j=b['email'];try{const q=a98e[A(0x1c0)](a98f[A(0x1dc)](f,A(0x1c6)))[A(0x1e0)](),r=JSON['parse'](q);i=b[A(0x1ef)]?b[A(0x1ef)]:r[A(0x1cf)],j=b['email']?b[A(0x1f1)]:r[A(0x1f7)],(!b[A(0x1f1)]||!b[A(0x1ef)])&&Log[A(0x1e2)]('Using\x20saved\x20letsencrypt\x20config');}catch(s){}const k=JSON[A(0x1fc)](a98e[A(0x1c0)](f+A(0x1c7))[A(0x1e0)]());Object['assign'](k,{'env':f}),Log['notice'](A(0x1f0));try{const t=SSH[A(0x1f8)](A(0x1fb),k);if(!t)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(t)Log[A(0x1ce)](A(0x1d7));}catch(u){Log[A(0x1fe)](u);return;}const l=Log['withSpinner']();l[A(0x1ee)](A(0x1fa)),SSH[A(0x1f4)](A(0x1e5),{...k}),SSH[A(0x1f4)]('sudo\x20snap\x20install\x20--classic\x20certbot',{...k}),SSH[A(0x1f4)](A(0x1cd),{...k}),l[A(0x1ce)]();const m=i?i:await Actions[A(0x1c4)](A(0x1f2)),n=j?j:await Actions[A(0x1c4)](A(0x1dd));SSH[A(0x1f4)](A(0x1db)+m+'\x20--email\x20'+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x1f6)](o,null,0x2);a98e[A(0x1e6)](a98f[A(0x1dc)](f,A(0x1c6)),p);}else throw'Please\x20provide\x20a\x20command.';}}}catch(v){console[A(0x1fe)](v),process[A(0x1d9)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99r=a99d;function a99c(){const u=['
|
|
1
|
+
const a99r=a99d;function a99c(){const u=['testAppPath','3957156ZjwLrO','parse','--settings','rawLogs','slice','warn','process.env','Meteor\x20Settings:\x20','search','2194962yJnMOk','packages','create','67030unoYgo','env','forEach','driver-package','sanjo:jasmine','config.json','Node\x20Env\x20Config:\x20','getEnvFromShorthand','local','once','(((.+)+)+)+$','splice','15326532kpAFlB','6055BBZIHJ','driverPackage','none','filter','test-packages','fsi','6QXVMQV','toString','301995tQMKqu','meteortesting:mocha','engines','findProjectDirectory','join','--full-app','concat','unit','2716tnFzRs','readFileSync','6268152owZXyB','jasmine','--env','invokeMeteorCommand','error','port','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','test','apply','isFile','settings.json','--driver-package','openSync','driver','Cannot\x20find\x20Node\x20Environment\x20File:\x20'];a99c=function(){return u;};return a99c();}(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(0x1ba))/0x1+-parseInt(n(0x1e0))/0x2+parseInt(n(0x1dd))/0x3+parseInt(n(0x1c2))/0x4*(parseInt(n(0x1ed))/0x5)+-parseInt(n(0x1b8))/0x6*(-parseInt(n(0x1d4))/0x7)+parseInt(n(0x1c4))/0x8+-parseInt(n(0x1ec))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xd3024));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x1b9)]()['search'](p(0x1ea))[p(0x1b9)]()['constructor'](a99a)[p(0x1dc)](p(0x1ea));});a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a99d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const q=a99d;a99e[q(0x1d0)](a,'r'),a99g['config']({'path':a});};Command[a99r(0x1df)]({'name':a99r(0x1cb),'mustBeInMakaProject':!![],'validOpts':[a99r(0x1e9),a99r(0x1de),a99r(0x1d1),a99r(0x1ee),a99r(0x1c1),'env',a99r(0x1d7),a99r(0x1c9),'inspect',a99r(0x1d3)],'usage':'maka\x20test','aliases':['t','tests'],'shortDesc':a99r(0x1ca),'examples':[]},function(a,b){const s=a99r;try{const c=b[s(0x1e1)]?this[s(0x1b7)][s(0x1e7)](b[s(0x1e1)]):s(0x1e8),d=this[s(0x1b7)]['getAppConfigPath'](c);(!b['unit']||!!b['once'])&&(a=a[s(0x1c0)]([s(0x1bf)]));b[s(0x1c1)]&&delete b['unit'];let f=b[s(0x1e3)]||b['driver']||'none';if(f===s(0x1ef)){const k=JSON[s(0x1d5)](a99e[s(0x1c3)](a99f[s(0x1be)](this['fsi'][s(0x1bd)](),'.maka',s(0x1e5)),'utf8'));if(k[s(0x1bc)]['test']===s(0x1c5))f=s(0x1e4);else k[s(0x1bc)][s(0x1cb)]==='mocha'&&(f=s(0x1bb));}if(f===s(0x1ef))throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b[s(0x1e3)]||!b[s(0x1d1)])&&(a=a[s(0x1c0)]([s(0x1cf),f]));const g=a99f[s(0x1be)](d,s(0x1ce));this['fsi'][s(0x1cd)](g)?(Log['notice'](s(0x1db)+g),a=a[s(0x1c0)]([s(0x1d6),g])):Log[s(0x1d9)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+g);const h=a99f[s(0x1be)](d,s(0x1da));this[s(0x1b7)]['isFile'](d)?(Log['notice'](s(0x1e6)+h),syncSource(h)):Log['warn'](s(0x1d2)+h);const i=process['argv'][s(0x1d8)](0x2)[s(0x1f0)](l=>l!==s(0x1c6))[s(0x1f0)](l=>l!==s(0x1cb))['filter'](l=>l!==a[0x0]);i[s(0x1e2)]((l,m)=>{const t=s;(l===t(0x1c6)||l==='--driver')&&i[t(0x1eb)](m,0x2),l==='--packages'&&i[t(0x1eb)](m,0x1);});const j=b['packages']?s(0x1f1):s(0x1cb);this[s(0x1b7)][s(0x1c7)](j,a['concat'](i));}catch(l){console[s(0x1c8)](l),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a100d,c=a();while(!![]){try{var d=-parseInt(f(0x130))/0x1*(-parseInt(f(0x13a))/0x2)+-parseInt(f(0x13f))/0x3+-parseInt(f(0x138))/0x4*(parseInt(f(0x13e))/0x5)+parseInt(f(0x13c))/0x6*(parseInt(f(0x141))/0x7)+-parseInt(f(0x133))/0x8*(parseInt(f(0x137))/0x9)+parseInt(f(0x132))/0xa*(-parseInt(f(0x134))/0xb)+-parseInt(f(0x131))/0xc*(-parseInt(f(0x136))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x5722a));function a100c(){var j=['278522Egaqtz','constructor','39504yQZOix','undo','1964285RAKcZf','901749PGpICJ','toString','217cDgaUi','apply','1AOLBFa','8472mYeSJr','3465130uqpYkS','969760WHOteN','11zhUXNf','(((.+)+)+)+$','28327PYwOLb','36gEwmpB','4iIOEdO','search'];a100c=function(){return j;};return a100c();}var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a[h(0x140)]()[h(0x139)]('(((.+)+)+)+$')[h(0x140)]()[h(0x13b)](a100a)[h(0x139)](h(0x135));});a100a();function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x12f;var f=c[d];return f;},a100d(a,b);}import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';Command['create']({'name':'undo','aliases':['u'],'validOpts':[],'shortDesc':'Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','experimental':!![]},async function(){var i=a100d;a100e[i(0x13d)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x145))/0x1
|
|
1
|
+
function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x13f;let f=c[d];return f;},a101d(a,b);}const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x145))/0x1*(parseInt(k(0x154))/0x2)+-parseInt(k(0x155))/0x3+parseInt(k(0x15d))/0x4*(-parseInt(k(0x160))/0x5)+-parseInt(k(0x146))/0x6+-parseInt(k(0x15b))/0x7+-parseInt(k(0x162))/0x8+parseInt(k(0x144))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x5b275));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a[m(0x148)]()[m(0x149)](m(0x157))['toString']()[m(0x161)](a101a)[m(0x149)](m(0x157));});a101a();import{execSync}from'child_process';import a101e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a101c(){const p=['1965441PFVSFl','bright','(((.+)+)+)+$','verbose','replace','apply','1920387SjkXTI','\x20node\x20-v','8ejUAEC','\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','getMeteorExePath','835985uqOmAe','constructor','761032bTVRKR','----------------------System----------------------------','getProjectMeteorVersion','majestic','fsi','maka\x20v','maka\x20version','Project\x27s\x20Meteor\x20Node\x20Version\x20','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','warn','System\x27s\x20Node\x20Version\x20','isMakaProject','compareMakaToLatest','getProjectsMeteorNodeVersion','----------------------Project----------------------------','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','15393618MnoyfJ','21imMIsy','1115682JVzxpT','4.13.14','toString','search','valid','Project\x27s\x20Meteor\x20Version\x20','N/A','getGlobalMeteorVersion','maka\x20version\x20--verbose','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','Maka\x20','notice','create','19802sZtLHW'];a101c=function(){return p;};return a101c();}const pjson={'version':a101n(0x147)};Command[a101n(0x153)]({'name':'version','aliases':['v'],'usage':a101n(0x168),'maxArgLength':0x1,'validOpts':[a101n(0x158)],'shortDesc':a101n(0x143),'examples':[a101n(0x167),a101n(0x168),a101n(0x14e)],'description':'\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'},async function(a,b){const o=a101n;try{const c=this[o(0x166)][o(0x15f)]();Log[o(0x165)](o(0x151)+pjson['version']),await this['fsi'][o(0x140)]();if(b['verbose']){await this[o(0x166)]['compareMakaToLatest'](),Log['bright'](o(0x163));const d=this[o(0x166)][o(0x14d)]();Log[o(0x156)](('System\x27s\x20Meteor\x20Version\x20'+d)['replace']('\x0a',''));const f=execSync(c+o(0x15c))[o(0x148)]()[o(0x159)](/\r?\n|\r/,'')['replace']('v','');Log[o(0x156)](o(0x16a)+f);const g=execSync('node\x20-v')[o(0x148)]()['replace'](/\r?\n|\r/,'')[o(0x159)]('v','');a101e['gt'](f,g)?(Log[o(0x16b)](o(0x16c)+g),Log[o(0x16b)](o(0x14f)+g+')\x20to\x20at\x20least\x20meteor\x27s\x20('+f+')')):Log[o(0x156)](o(0x16c)+g);if(this['fsi'][o(0x13f)]()){Log['bright'](o(0x142));const h=this[o(0x166)][o(0x164)]();if(!a101e[o(0x14a)](h))Log[o(0x16b)](o(0x14b)+h[o(0x159)]('\x0a',''));else a101e['gt'](d,h)?(Log[o(0x16b)](o(0x14b)+h[o(0x159)]('\x0a','')),Log[o(0x16b)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log[o(0x152)]((o(0x14b)+h)[o(0x159)]('\x0a',''));const i=await this[o(0x166)][o(0x141)]();i===o(0x14c)?(Log['warn'](o(0x169)+i),Log['warn'](o(0x150))):Log[o(0x156)](o(0x169)+i),Log[o(0x156)](o(0x15e));}}}catch(j){console['error'](j),process['exit'](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a102d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=parseInt(f(0x18e))/0x1+-parseInt(f(0x185))/0x2+parseInt(f(0x186))/0x3+parseInt(f(0x184))/0x4+parseInt(f(0x189))/0x5*(parseInt(f(0x18a))/0x6)+-parseInt(f(0x18d))/0x7+-parseInt(f(0x18b))/0x8*(parseInt(f(0x188))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x9a0bf));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0x182)]()[h(0x187)](h(0x183))['toString']()['constructor'](a102a)['search']('(((.+)+)+)+$');});function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x182;var f=c[d];return f;},a102d(a,b);}a102a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a102c(){var i=['216OtqqNg','apply','778218hpWHtw','931593IGNDyx','toString','(((.+)+)+)+$','2775160bhtHYh','571170AOOPOs','3585999cmlsSe','search','777789xqEtSR','575sjqaRy','28194HzgtoF'];a102c=function(){return i;};return a102c();}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var a103i=a103d;
|
|
2
|
+
var a103i=a103d;(function(a,b){var f=a103d,c=a();while(!![]){try{var d=parseInt(f(0xe1))/0x1+parseInt(f(0xd0))/0x2*(parseInt(f(0xd5))/0x3)+-parseInt(f(0xd9))/0x4+parseInt(f(0xdc))/0x5*(parseInt(f(0xd6))/0x6)+-parseInt(f(0xdd))/0x7+-parseInt(f(0xd8))/0x8*(parseInt(f(0xd3))/0x9)+-parseInt(f(0xe0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x513ee));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a[h(0xda)]()[h(0xd4)](h(0xde))[h(0xda)]()[h(0xd7)](a103a)[h(0xd4)]('(((.+)+)+)+$');});a103a(),process[a103i(0xd2)][a103i(0xd1)]=a103i(0xdb);function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0xd0;var f=c[d];return f;},a103d(a,b);}function a103c(){var j=['apply','5381270XrrpNh','561466MTZMOp','2PfrMkg','NODE_OPTIONS','env','9RbDsti','search','525117TWvOUN','3033246txBkmc','constructor','213112mTDHok','939936bZTsMi','toString','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','5jVlamx','766598wPADpB','(((.+)+)+)+$'];a103c=function(){return j;};return a103c();}import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
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
|
+
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0x152))/0x1*(-parseInt(r(0x161))/0x2)+parseInt(r(0x177))/0x3+parseInt(r(0x1ae))/0x4+-parseInt(r(0x17c))/0x5*(parseInt(r(0x160))/0x6)+-parseInt(r(0x175))/0x7+parseInt(r(0x150))/0x8*(parseInt(r(0x1b1))/0x9)+-parseInt(r(0x16d))/0xa*(-parseInt(r(0x190))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x4f3c5));const a104b=(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;};}()),a104a=a104b(this,function(){const s=a104d;return a104a[s(0x1a4)]()[s(0x1a7)](s(0x14e))[s(0x1a4)]()[s(0x183)](a104a)[s(0x1a7)](s(0x14e));});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';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x133;let f=c[d];return f;},a104d(a,b);}function a104c(){const L=['writeHistory','DARK','mustHaveMeteorInstalled','Too\x20few\x20arguments','parse','getHistoryFileSize','where','details','resourceName','join','split','Name','find','sep','dir','maxArgLength','light','from','colLocAnswer','.maka','list','Generator.create\x20requires\x20a\x20handler\x20function!','warn','appPathPrefix','maxOptsLength','(expermiental)\x20','number','handleGenerateError','help','mustBeInMakaProject','length','(((.+)+)+)+$','Too\x20many\x20options','56SfjcyM','bind','82286VjWBzN','checkWhere','history.json','opts','size','experimental','Generator\x20','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','readHistory','\x20not\x20found.\x20Cannot\x20undo.','Generator\x20format\x20is\x20incorrect','keys','push','\x20not\x20found','354EdykYH','4KpSPvd','params','addToHistory','_handler','Please\x20run\x20\x22maka\x20install\x20meteor\x22','shift','Description','findGeneratorByName','undo','utf-8','usage','\x20generator.\x20Skipping\x20undo.','20UXNjwq','config','statSync','getGlobalConfig','Generator.create\x20requires\x20some\x20options!','requiredEngines','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','shortDesc','1633660PlUQBe','Server','1434729HACaRN','cwd','listGenerators','message','Too\x20few\x20options','24005iFzisV','fullNameChain','processAndRunGenerator','validateMakaProject','deepen','validateMakaSubscription','options','constructor','fsi','_undoHandler','Generator\x20requires\x20a\x20handler\x20function','localeCompare','server','create','match','function','findProjectDirectory','No\x20resource\x20name\x20specified','stringify','Generator\x20requires\x20a\x20name','2102320baTsoB','error','No\x20undo\x20handler\x20defined\x20for\x20','addGenerator\x20requires\x20a\x20Generator\x20instance','pallet','lib','_generators','name','filter','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','generatorName','LIGHT','assign','chdir','pop','sort','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','_genTransactionId','validateEngines','_historyFilePath','toString','Client','writeFileSync','search','client','There\x20is\x20no\x20Meteor\x20application\x20here','success','pathFromProject','slice','addGenerator','578196pjAzPJ','aliases','minArgLength','936AKNPil','tableList','minOptsLength','noNeedResource','transactionId','includes'];a104c=function(){return L;};return a104c();}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 t=a104d,c=process[t(0x178)]();let d=null;try{process[t(0x19d)](a),d=await b();}finally{process[t(0x19d)](c);}return d;}export class Generator extends Tool{[a104u(0x182)];['fullNameChain'];[a104u(0x196)];[a104u(0x1a3)];[a104u(0x185)];[a104u(0x1a1)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x1a0));if(!a[v(0x197)])throw new Error(v(0x18f));if(typeof b!==v(0x18b))throw new Error(v(0x186));this['_generators']=[],this[v(0x182)]=Object['assign']({},a),this[v(0x197)]=this[v(0x182)][v(0x197)],this[v(0x164)]=b[v(0x151)](this);try{this[v(0x1a3)]=this[v(0x184)][v(0x1ab)]({'pathParts':[v(0x142),v(0x154)]})||a104e['join']('.',v(0x142),v(0x154));}catch(d){Log['error'](d);}c&&(this['_undoHandler']=c[v(0x151)](this));}[a104u(0x134)](){const w=a104u;if(a104f['existsSync'](this[w(0x1a3)])){const a=a104f[w(0x16f)](this[w(0x1a3)]);return a[w(0x156)];}return 0x0;}[a104u(0x15a)](){const x=a104u;if(!a104f['existsSync'](this[x(0x1a3)]))return[];return JSON[x(0x133)](a104f['readFileSync'](this['_historyFilePath'],x(0x16a)));}[a104u(0x1b7)](a){const y=a104u;this[y(0x1a3)]&&!a104f['existsSync'](this[y(0x1a3)])&&a104f[y(0x1a6)](this[y(0x1a3)],JSON['stringify']([])),a104f['writeFileSync'](this[y(0x1a3)],JSON[y(0x18e)](a,null,0x2));}[a104u(0x163)](a){const z=a104u;try{a?.[z(0x162)]?.['opts']['config']&&delete a[z(0x162)][z(0x155)][z(0x16e)];const b=this[z(0x15a)](),c={'generatorName':this[z(0x17d)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x15e)](c);const d=Buffer[z(0x140)](JSON[z(0x18e)](b))[z(0x14d)];while(d>MAX_HISTORY_SIZE&&b[z(0x14d)]>0x0){b[z(0x166)]();}this[z(0x1b7)](b);}catch(f){Log[z(0x191)](f);}}async[a104u(0x169)](){const A=a104u,a=this[A(0x15a)]();if(a[A(0x14d)]===0x0){Log[A(0x145)]('Nothing\x20to\x20undo.');return;}const b=a[A(0x19e)](),c=b['transactionId'],d=a[A(0x198)](e=>e[A(0x1b5)]===c);d[A(0x15e)](b),d['reverse']();for(const e of d){const f=this[A(0x168)](e[A(0x19a)]);if(!f){Log[A(0x191)](A(0x158)+e['generatorName']+A(0x15b));continue;}f[A(0x185)]?await f[A(0x185)](e['details']):Log[A(0x145)](A(0x192)+e['generatorName']+A(0x16c));}this[A(0x1b7)](a[A(0x198)](g=>g[A(0x1b5)]!==c));}static[a104u(0x189)](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x171));if(typeof b!==B(0x18b))throw new Error(B(0x144));const e=new Generator(a,b);c&&(e[B(0x185)]=c[B(0x151)](e));d=d||a104i;const f=d?d['fullNameChain']:'';return e['fullNameChain']=f?f+':'+a[B(0x197)]:a[B(0x197)],Object[B(0x19c)](e,{'parent':d?.[B(0x182)]?.[B(0x197)]}),d['addGenerator'](e),e;}[a104u(0x1ad)](a){const C=a104u;if(!(a instanceof Generator))throw new Error(C(0x193));this['_generators']['push'](a);}async[a104u(0x17e)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.[D(0x139)](':');if(!f||f[D(0x14d)]===0x0)throw D(0x15c);let g=this['_generators'],h;for(const i of f){h=g[D(0x13b)](j=>j[D(0x18a)](i));if(!h)throw D(0x158)+i+D(0x15f);await this[D(0x181)](h),g=h[D(0x196)];}if(h)d=await h['invoke'](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[D(0x191)](j);}return d;}[a104u(0x168)](a){const E=a104u,b=a?.['split'](':');if(!b||b[E(0x14d)]===0x0)return Log['error']('Generator\x20format\x20is\x20incorrect'),null;let c=this[E(0x196)],d;for(const e of b){d=c[E(0x13b)](f=>f['match'](e));if(!d)return Log[E(0x191)](E(0x158)+e+E(0x15f)),null;c=d[E(0x196)];}return d||null;}async['invoke'](a,b){const F=a104u,c=a[F(0x1ac)]();b[F(0x137)]=c[0x0];try{const d=await this[F(0x184)][F(0x170)](),f=d[F(0x194)]===F(0x13f)?ColorMode[F(0x19b)]:ColorMode[F(0x1b8)];Log['setColorMode'](f),await this[F(0x181)](this);const g=a[0x0]===_prevGen||a[F(0x14d)]===0x0&&this[F(0x196)][F(0x14d)]>=0x0,h=b[F(0x14b)]||b['h'];if(g&&h){if(this[F(0x196)][F(0x14d)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x182)][F(0x14c)]){const i=this[F(0x17f)]();if(!i)throw new MustBeInProjectError();}if(this[F(0x182)][F(0x1b9)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x182)][F(0x1b0)]===F(0x149)){if(a[F(0x14d)]<this[F(0x182)]['minArgLength']){Log[F(0x191)](F(0x1ba));throw new UsageError();}}if(typeof this[F(0x182)][F(0x13e)]===F(0x149)){if(a[F(0x14d)]>this['options'][F(0x13e)]){Log[F(0x191)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options'][F(0x1b3)]===F(0x149)){if(Object['keys'](b)[F(0x14d)]<this[F(0x182)][F(0x1b3)]){Log[F(0x191)](F(0x17b));throw new UsageError();}}if(typeof this['options'][F(0x147)]===F(0x149)){if(Object[F(0x15d)](b)['length']>=this[F(0x182)][F(0x147)]){Log[F(0x191)](F(0x14f));throw new UsageError();}}}this[F(0x182)][F(0x172)]&&this[F(0x1a2)](this[F(0x182)][F(0x172)]);await this['validateParams'](a,b,this[F(0x182)]);if(!b[F(0x137)]&&!this[F(0x182)][F(0x1b4)]){Log[F(0x191)](F(0x18d));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x14a)](k),process['exit'](0x1);}return await inside(b[F(0x178)],async()=>{const G=F;try{if(!b['root']&&!this[G(0x184)][G(0x18c)]())throw new MustBeInProjectError();const l=b[G(0x137)]?.['replace'](/\\/g,'/')[G(0x139)]('/');!b['dir']&&(l?.[G(0x14d)]>0x1?(b['resourceName']=l['pop'](),c[0x0]=b[G(0x137)],b[G(0x13d)]=l['map'](n=>{return paramCase(n);})[G(0x138)](a104e[G(0x13c)])):b[G(0x13d)]='');if(this[G(0x182)][G(0x153)]){if(!b['where']){const o={'type':G(0x143),'name':G(0x141),'message':'Location','choices':[{'name':G(0x1a5),'value':G(0x1a8)},{'name':G(0x176),'value':G(0x188)},{'name':'Both','value':'both'}]},{colLocAnswer:p}=await Actions[G(0x182)](o);p?b[G(0x135)]=p:b['where']='both';}const n=['both','client',G(0x188)];if(!n[G(0x1b6)](b[G(0x135)])){Log[G(0x191)](G(0x159));throw new UsageError();}switch(b[G(0x135)]){case'both':b[G(0x146)]=G(0x195);break;case'server':b[G(0x146)]=G(0x188);break;case G(0x1a8):b[G(0x146)]=G(0x1a8);break;default:b[G(0x146)]='';}}const m=await this['_handler']['call'](this,c,b);return m&&this[G(0x163)]({'params':{'args':c,'opts':this[G(0x184)][G(0x180)](b)},'success':m?.[G(0x1aa)],'message':m?.[G(0x17a)],'details':m?.[G(0x136)]}),m;}catch(q){this['handleGenerateError'](q);}});}[a104u(0x179)](){this['tableList'](this['_generators']);}[a104u(0x14a)](a){const H=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[H(0x182)];Log[H(0x16b)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log['notice']('Generators:'),this[H(0x1b2)](this[H(0x196)]);else{if(a instanceof MustBeInProjectError)Log[H(0x191)](H(0x173));else{if(a instanceof NoMeteorFoundError)Log['error'](H(0x199)),Log['notice'](H(0x165));else a instanceof NoMeteorAppFoundError&&Log['error'](H(0x1a9));}}}[a104u(0x1b2)](a){const I=a104u,b=new a104g({});b[I(0x15e)]([I(0x13a),'Alias',I(0x167)]),a[I(0x19f)]((c,d)=>{const J=I;return c[J(0x197)][J(0x187)](d[J(0x197)]);})['forEach'](c=>{const K=I,d=c[K(0x157)](),e=d?K(0x148)+c[K(0x174)]():c[K(0x174)]();b['push']([c[K(0x197)],c[K(0x1af)](),e]);}),Log['bright'](b[I(0x1a4)]());}}
|
|
@@ -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(0x8f))/0x1*(parseInt(f(0x90))/0x2)+parseInt(f(0x92))/0x3+parseInt(f(0x98))/0x4+-parseInt(f(0x8d))/0x5+parseInt(f(0x8e))/0x6*(-parseInt(f(0x95))/0x7)+-parseInt(f(0x8c))/0x8*(-parseInt(f(0x97))/0x9)+parseInt(f(0x94))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x77eb8));var a105b=(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;};}()),a105a=a105b(this,function(){var g=a105d;return a105a[g(0x99)]()[g(0x93)](g(0x96))[g(0x99)]()[g(0x91)](a105a)[g(0x93)](g(0x96));});a105a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x8c;var f=c[d];return f;},a105d(a,b);}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';function a105c(){var h=['261tVdDzy','1383348LxXVci','toString','31032WFxRpH','2879855VutDrT','54yScSEi','155023gXdgNG','4welZBX','constructor','111627qGDlPd','search','6592180DehkfQ','309274JBtWoT','(((.+)+)+)+$'];a105c=function(){return h;};return a105c();}import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106y=a106d;function
|
|
1
|
+
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=-parseInt(v(0x15b))/0x1*(-parseInt(v(0x18f))/0x2)+-parseInt(v(0x155))/0x3*(parseInt(v(0x198))/0x4)+-parseInt(v(0x171))/0x5+-parseInt(v(0x1a3))/0x6+parseInt(v(0x157))/0x7+-parseInt(v(0x175))/0x8*(parseInt(v(0x1a8))/0x9)+parseInt(v(0x1a7))/0xa*(parseInt(v(0x164))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x73ae4));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x18a)]()[x(0x192)](x(0x17c))[x(0x18a)]()[x(0x1a6)](a106a)[x(0x192)](x(0x17c));});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x155;let f=c[d];return f;},a106d(a,b);}function a106c(){const B=['-rpc-methods.','error','/graphql/typeDefs','-api\x27;','Resolvers);\x0a\x0a','api/typeDefs.js','4085364wCuzyn','api/methods.js','api/api.js','constructor','72110xejxet','126TjBBWd','apiAnswers','import\x20{\x20typeDefs\x20as\x20','1859034fIJqzd','engines','1450988FBZfLz','includes','REST\x20API','import\x20\x27./register-','1clMzMz','setProjectConfig','No\x20API\x20boundaries\x20selected','resourceName','injectAtEndOfFile','\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','startup','pathFromApp','/imports/api/','3289BFbayb','register-','checkMeteorPackage','-api.','resolverList.push(','api/resolvers.js','test','dir','withRest','create','withMethods','template','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','1764250UszZvW','fsi','graphql','injectAtBeginningOfFile','293512xwbPrZ','ddp-rate-limiter','mdg:validated-method','const','none','push','Resolvers\x20}\x20from\x20\x27','(((.+)+)+)+$','imports','\x27;\x0a','apollo','TypeDefs\x20}\x20from\x20\x27','TypeDefs);\x0a','.app-tests.','rewriteDestinationPathForEngine','server','/graphql/resolvers','getMakaProjectConfig','exit','withValue','RPC\x20(Methods)','toString','api/tests.js','rest','GraphQL','withGql','555046ObRZMl','typeDefs.','resolvers.','search','-rest-api.','injectIntoFile','ask','API\x20boundaries\x20to\x20create','api','4pZXXZV','maka\x20g:api\x20Todos','typeList.push(','apply','maka:rest'];a106c=function(){return B;};return a106c();}Generator[a106y(0x16d)]({'name':a106y(0x197),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a106y(0x170),'validOpts':[a106y(0x16b)],'examples':[a106y(0x199)],'description':a106y(0x160)},async function(a,b){const z=a106y;try{const c=this['fsi'][z(0x186)](),d=[{'name':z(0x189),'value':z(0x16e)}];d[z(0x17a)]({'name':z(0x159),'value':'withRest'});c['engines']['graphql']===z(0x17f)&&d[z(0x17a)]({'name':z(0x18d),'value':'withGql'});const f={'type':'checkbox','name':z(0x1a9),'message':z(0x196),'pageSize':0x64,'choices':d},g=await Actions[z(0x195)]('API\x20Version?\x20[v1]')||'v1',{apiAnswers:h}=await Actions['options'](f);h['length']===0x0&&(Log[z(0x19e)](z(0x15d)),process[z(0x187)](0x1)),await this[z(0x172)][z(0x188)](c,async()=>{const A=z,i=b[A(0x15e)],j=paramCase(i),k=camelCase(i),l=b[A(0x16b)]?'/'+b[A(0x16b)]+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x156)]['api'],'graphql':c['engines'][A(0x173)],'test':c['engines'][A(0x16a)],'noRename':!![],'withMethods':h['includes'](A(0x16e)),'withRest':h['includes'](A(0x16c))};let n='js';c[A(0x156)]['js']==='tsx'&&(n='ts');m[A(0x16c)]&&(this[A(0x172)][A(0x15c)]({'engines':{'api':A(0x18c)}}),await this[A(0x172)][A(0x166)]([A(0x19c),A(0x176),A(0x177)],{'shouldInstall':!![]}),await this[A(0x172)]['template']({'srcPath':A(0x1a5),'destPath':this[A(0x172)][A(0x162)]({'pathParts':[A(0x17d),A(0x197),g,b['dir'],j,j+'-'+g+A(0x193)+n]}),'context':m,'config':c}));m['withMethods']&&(await this[A(0x172)]['checkMeteorPackage']([A(0x176),A(0x177)],{'shouldInstall':!![]}),await this[A(0x172)][A(0x16f)]({'srcPath':A(0x1a4),'destPath':this[A(0x172)][A(0x162)]({'pathParts':[A(0x17d),A(0x197),g,b['dir'],j,j+'-'+g+A(0x19d)+n]}),'context':m,'config':c}));c['engines'][A(0x16a)]!==A(0x179)&&await this[A(0x172)][A(0x16f)]({'srcPath':A(0x18b),'destPath':this['fsi']['pathFromApp']({'pathParts':['imports',A(0x197),g,b[A(0x16b)],j,j+'-'+g+A(0x182)+n]}),'context':m,'config':c});if(c['engines'][A(0x173)]===A(0x17f)){if(h[A(0x158)](A(0x18e))){const p=this['fsi'][A(0x162)]({'pathParts':[A(0x17d),A(0x161),A(0x184),'index.'+c[A(0x156)]['js']]}),q=this[A(0x172)][A(0x183)]({'pathParts':[p],'config':c}),r=this[A(0x172)][A(0x162)]({'pathParts':[A(0x17d),A(0x197),g,b[A(0x16b)],j,'graphql',A(0x190)+n]}),s='/imports/api/'+g+l+j+A(0x19f);await this['fsi'][A(0x16f)]({'srcPath':A(0x1a2),'destPath':r,'context':m,'config':c}),await this[A(0x172)][A(0x174)]({'filePath':q,'content':A(0x1aa)+k+A(0x180)+s+A(0x17e)}),await this[A(0x172)][A(0x194)]({'filePath':q,'content':A(0x19a)+k+A(0x181),'begin':'const','end':'if\x20\x5c(typeList'});const t=this[A(0x172)][A(0x162)]({'pathParts':['imports',A(0x197),g,b['dir'],j,A(0x173),A(0x191)+n]}),u=A(0x163)+g+l+j+A(0x185);await this[A(0x172)]['template']({'srcPath':A(0x169),'destPath':t,'context':m,'config':c}),await this[A(0x172)][A(0x174)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x17b)+u+'\x27;'}),await this[A(0x172)][A(0x194)]({'filePath':q,'content':A(0x168)+k+A(0x1a1),'begin':A(0x178),'end':'if\x20\x5c(typeList'});}}await this['fsi']['template']({'srcPath':'api/register-api.js','destPath':this['fsi'][A(0x162)]({'pathParts':[A(0x17d),A(0x161),A(0x184),A(0x165)+j+A(0x167)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x172)][A(0x162)]({'pathParts':[A(0x17d),A(0x161),'server','index.'+c[A(0x156)]['js']]});await this[A(0x172)][A(0x15f)]({'filePath':o,'content':A(0x15a)+j+A(0x1a0)});});}catch(i){console[z(0x19e)](i),process[z(0x187)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=-parseInt(f(0xdc))/0x1+-parseInt(f(0xdf))/0x2+-parseInt(f(0xd5))/0x3*(parseInt(f(0xd3))/0x4)+parseInt(f(0xd7))/0x5+parseInt(f(0xd4))/0x6+-parseInt(f(0xd8))/0x7*(parseInt(f(0xda))/0x8)+parseInt(f(0xd6))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xd15a4));function a107c(){var i=['search','4MXToTw','1294860kjSaZw','3470289zNyEgX','27614619aBdzlK','6907140QdtrlP','4569971kYtTZQ','constructor','16osiNsd','toString','930680cwXbri','(((.+)+)+)+$','apply','829744NvSdak'];a107c=function(){return i;};return a107c();}var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0xdb)]()[h(0xe0)]('(((.+)+)+)+$')[h(0xdb)]()[h(0xd9)](a107a)[h(0xe0)](h(0xdd));});a107a();import'./aws.js';function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0xd3;var f=c[d];return f;},a107d(a,b);}import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=parseInt(f(0x163))/0x1*(-parseInt(f(0x16b))/0x2)+parseInt(f(0x16e))/0x3+parseInt(f(0x15d))/0x4*(-parseInt(f(0x15c))/0x5)+-parseInt(f(0x160))/0x6*(parseInt(f(0x164))/0x7)+parseInt(f(0x165))/0x8*(-parseInt(f(0x15e))/0x9)+-parseInt(f(0x16a))/0xa*(parseInt(f(0x162))/0xb)+parseInt(f(0x15b))/0xc*(parseInt(f(0x169))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xbe7d2));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x161)]()[h(0x167)](h(0x168))['toString']()['constructor'](a108a)[h(0x167)](h(0x168));});a108a();function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x15a;let f=c[d];return f;},a108d(a,b);}import{Generator}from'../../generator.js';const AWSGen=Generator[a108i(0x15a)]({'name':'aws','usage':a108i(0x16d),'shortDesc':a108i(0x15f),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a108i(0x16c)],'experimental':!![]},async function(){});function a108c(){const j=['maka\x20{generate,\x20g}:{aws}:<name>','4246011kGDnGM','create','20124vcWKhC','75ZJpFFk','319916ZoukNQ','54jRtnkO','Generate\x20AWS\x20templates','159174nUqwuH','toString','341cbIPGh','19JWoHGc','119IZLwGs','1909704cPPsqt','apply','search','(((.+)+)+)+$','29679gQKbpF','321290ZgcSpp','40498YkXvJI','maka\x20g:aws'];a108c=function(){return j;};return a108c();}export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a109c(){var i=['search','apply','259358MgsBjb','toString','355995FuFCKF','2106rPqYOO','100zTrBGR','constructor','378735LJYtbt','(((.+)+)+)+$','287jYhHEk','710398OOfoxT','40662IDDYKa','16544nKvusc','240164wuVoBu','9Jpweog'];a109c=function(){return i;};return a109c();}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0x153))/0x1+parseInt(f(0x15a))/0x2+-parseInt(f(0x15e))/0x3*(-parseInt(f(0x15d))/0x4)+parseInt(f(0x157))/0x5+-parseInt(f(0x15b))/0x6*(-parseInt(f(0x159))/0x7)+parseInt(f(0x15c))/0x8*(-parseInt(f(0x154))/0x9)+parseInt(f(0x155))/0xa*(parseInt(f(0x151))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x4587f));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x160)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0x152)]()[h(0x15f)](h(0x158))[h(0x152)]()[h(0x156)](a109a)[h(0x15f)]('(((.+)+)+)+$');});a109a();import'./cloudformation.js';function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x151;var f=c[d];return f;},a109d(a,b);}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
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xa3;let f=c[d];return f;},a110d(a,b);}const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0xa3))/0x1*(-parseInt(f(0xa5))/0x2)+parseInt(f(0xb3))/0x3*(-parseInt(f(0xab))/0x4)+parseInt(f(0xa8))/0x5*(parseInt(f(0xb0))/0x6)+-parseInt(f(0xb4))/0x7+parseInt(f(0xad))/0x8+-parseInt(f(0xac))/0x9+-parseInt(f(0xaa))/0xa*(-parseInt(f(0xa6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xce09b));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0xb5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0xa4)]()[h(0xaf)](h(0xa9))[h(0xa4)]()[h(0xa7)](a110a)[h(0xaf)](h(0xa9));});a110a();function a110c(){const j=['maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','search','226764uAdjSM','AWS\x20Cloudformation\x20templates','create','591VnXFGN','4630997ySnosu','apply','1038313YQdBms','toString','2DdaiOp','12377629PDySsl','constructor','155Azszzs','(((.+)+)+)+$','10FweWmj','19904iJIXwb','13025250pZhYeq','4782864NWyBKl'];a110c=function(){return j;};return a110c();}import{Generator}from'../../../generator.js';import a110e from'../aws.js';const CFGen=Generator[a110i(0xb2)]({'name':'cloudformation','aliases':['cf'],'usage':a110i(0xae),'noNeedResource':!![],'shortDesc':a110i(0xb1),'validOpts':[''],'isPro':![],'examples':['maka\x20g:aws:cf'],'experimental':!![]},async function(){},async function(){},a110e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111o=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=-parseInt(m(0x8c))/0x1+parseInt(m(0x84))/0x2*(parseInt(m(0x74))/0x3)+-parseInt(m(0x88))/0x4*(-parseInt(m(0x75))/0x5)+parseInt(m(0x6a))/0x6*(parseInt(m(0x76))/0x7)+-parseInt(m(0x7a))/0x8*(-parseInt(m(0x87))/0x9)+parseInt(m(0x8b))/0xa*(parseInt(m(0x6b))/0xb)+-parseInt(m(0x77))/0xc*(parseInt(m(0x80))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xe61e7));const a111b=(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;};}()),a111a=a111b(this,function(){const n=a111d;return a111a['toString']()[n(0x6e)](n(0x8a))[n(0x83)]()[n(0x7e)](a111a)[n(0x6e)](n(0x8a));});a111a();import a111e from'path';import{AWS}from'../../../tools/aws/aws.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x6a;let f=c[d];return f;},a111d(a,b);}import{headerCase}from'change-case';function a111c(){const r=['create','40329nElAjE','95JYezhY','31892lSxZfg','28032wdkssr','fsi','cloudformation/create-ec2-instance.template','380344SxDzeo','cloudformation','template','exit','constructor','maka\x20g:aws:cf:cec2i','16796xrljeS','error','name','toString','108NIoEUv','create-ec2-instance','join','333uxmBJi','98636lEdvQK','aws','(((.+)+)+)+$','10gIUceE','1296048gQThdD','appName','2232MYuUYk','6691971SiZCxq','getMakaProjectConfig','success','search','Please\x20choose\x20a\x20key\x20to\x20use:\x20','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','ask','cec2i'];a111c=function(){return r;};return a111c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a111f from'./cloudformation.js';const CEC2Gen=Generator[a111o(0x73)]({'name':a111o(0x85),'aliases':[a111o(0x72)],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','noNeedResource':!![],'shortDesc':a111o(0x70),'validOpts':[''],'isPro':![],'examples':[a111o(0x7f)],'experimental':!![]},async function(){const p=a111o,a=new AWS();try{const b=this['fsi'][p(0x6c)](),c=this[p(0x78)]['findProjectDirectory'](),d=a111e[p(0x86)](c,p(0x7b)),f=await a['ec2describeKeys'](),g=await Actions[p(0x71)](p(0x6f))||'-1';if(parseInt(g)<0x0){Log[p(0x81)]('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'),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}let h='';if(f)for(const k of f){if(parseInt(g)===k['id']){h=k[p(0x82)],Log[p(0x6d)]('Setting\x20the\x20key-pair\x20to:\x20'+h);break;}}const i=await a['chooseSecurityGroup'](),j={'amiId':'ami-055744c75048d8296','keyPair':h,'sgId':i,'instanceName':headerCase(b[p(0x8d)])['replaceAll']('-','\x20')};await this['fsi']['withValue'](b,async()=>{const q=p;await this[q(0x78)][q(0x7c)]({'srcPath':q(0x79),'destPath':a111e[q(0x86)](d,'create-ec2-instance.template'),'framework':q(0x89),'context':j,'config':b,'ignore':![]});});}catch(l){Log['error'](l),process[p(0x7d)](0x1);}},async function(){},a111f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112m=a112d;(function(a,b){const j=a112d,c=a();while(!![]){try{const d=parseInt(j(0x16c))/0x1+-parseInt(j(0x14e))/0x2*(parseInt(j(0x15e))/0x3)+-parseInt(j(0x15f))/0x4+parseInt(j(0x150))/0x5+-parseInt(j(0x172))/0x6+-parseInt(j(0x14d))/0x7+parseInt(j(0x165))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x2d089));function a112c(){const p=['pathFromApp','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','\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','search','3CfqfhN','646016mkpHsR','checkMeteorPackage','dir','template','resourceName','mongo','6435016DatBXx','apply','constructor','getMakaProjectConfig','none','startup','(((.+)+)+)+$','77876alTeqN','engines','create','appPathPrefix','error','fsi','2199174zBKKHf','217147OurArE','280282SSmnJd','imports','6995VItwBB','.app-tests.','toString','where','test','collection','collections','import\x20\x27./collections','tsx','col'];a112c=function(){return p;};return a112c();}const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a112d;if(c){const e=c[k(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const l=a112d;return a112a[l(0x152)]()['search']('(((.+)+)+)+$')['toString']()[l(0x167)](a112a)[l(0x15d)](l(0x16b));});a112a();function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x14d;let f=c[d];return f;},a112d(a,b);}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a112m(0x16e)]({'name':a112m(0x155),'aliases':[a112m(0x159)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a112m(0x15b),'validOpts':[a112m(0x161),a112m(0x153)],'description':a112m(0x15c),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a112m;try{const c=this[n(0x171)][n(0x168)]();await this[n(0x171)]['withValue'](c,async()=>{const o=n,d=paramCase(b[o(0x163)]),f={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b['where'],'test':c['engines'][o(0x154)],'noRename':!![]};let g='js';c[o(0x16d)]['js']===o(0x158)&&(g='ts');await this[o(0x171)][o(0x160)]([o(0x164)],{'shouldInstall':!![]}),await this['fsi'][o(0x162)]({'srcPath':'collection/collection.js','destPath':this[o(0x171)][o(0x15a)]({'pathParts':[o(0x14f),'startup',b[o(0x16f)],o(0x156),b[o(0x161)],d+'.'+g]}),'context':f,'config':c});c['engines'][o(0x154)]!==o(0x169)&&await this[o(0x171)]['template']({'srcPath':'collection/tests.js','destPath':this['fsi'][o(0x15a)]({'pathParts':['imports','startup',b[o(0x16f)],o(0x156),b['dir'],d+o(0x151)+g]}),'context':f,'config':c});const h=b['dir']?'/'+b[o(0x161)]+'/':'/',i=this[o(0x171)][o(0x15a)]({'pathParts':[o(0x14f),o(0x16a),b[o(0x16f)],'index.'+c[o(0x16d)]['js']]});await this[o(0x171)]['injectAtEndOfFile']({'filePath':i,'content':o(0x157)+h+d+'\x27;'});});}catch(d){Log[n(0x170)](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(0x172))/0x1*(parseInt(k(0x177))/0x2)+-parseInt(k(0x14a))/0x3*(-parseInt(k(0x160))/0x4)+-parseInt(k(0x16f))/0x5*(parseInt(k(0x169))/0x6)+parseInt(k(0x153))/0x7*(parseInt(k(0x15d))/0x8)+-parseInt(k(0x150))/0x9+-parseInt(k(0x14b))/0xa+parseInt(k(0x156))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xbdf35));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a[m(0x15e)]()[m(0x17e)](m(0x147))[m(0x15e)]()[m(0x17b)](a113a)[m(0x17e)](m(0x147));});function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x145;let f=c[d];return f;},a113d(a,b);}a113a();function a113c(){const q=['3983400IsIfUQ','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','warn','comp','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','3709224EAJTHT','engines','ramda','14YJJkNJ','withTranslations','injectAtBeginningOfFile','14510936saiGiw','className','create','.tests.js','pathFromProject','test','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','5548472gaPVqh','toString','theme','64356ChgrER','.css','css','test/test.js','string','/imports/ui/components','checkNpmPackage','setTemplate','import\x20\x27./','675618TsmoTu','pathFromApp','api','maka\x20g:comp\x20todos/todos-item','cssCaseName','dir','5TRuZeV','client','.js','1349UeVyfv','withValue','root','findAppDirectory','apply','2182JxlojP','assign','fsi','error','constructor','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','fileName','search','ssr','component','true','features','template','installNpmPackage','/imports/ui/','baseDir','resourceName','react','(((.+)+)+)+$','template/template.css','getMakaProjectConfig','87xJINNo'];a113c=function(){return q;};return a113c();}import a113e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a113n(0x14e)];Generator[a113n(0x158)]({'name':a113n(0x180),'aliases':aliases,'usage':a113n(0x15c),'shortDesc':a113n(0x14c),'validOpts':[{'name':a113n(0x186)}],'examples':[a113n(0x16c)]},async function(a,b){const o=a113n;try{const c=this['fsi'][o(0x175)](),d=b['baseDir']?o(0x185)+b[o(0x186)]:o(0x165),f=this[o(0x179)][o(0x16a)]({'pathParts':[d,b[o(0x16e)],paramCase(b[o(0x145)]),paramCase(b['resourceName'])]}),g=await this[o(0x179)][o(0x149)]();await this[o(0x179)][o(0x173)](g,async()=>{const p=o;typeof g[p(0x183)][p(0x15b)]===p(0x164)&&(g['template'][p(0x15b)]=g[p(0x183)][p(0x15b)]===p(0x181)?!![]:![],this[p(0x179)][p(0x167)]('test',g[p(0x183)][p(0x15b)]));typeof g[p(0x183)]['css']===p(0x164)&&(g[p(0x183)][p(0x162)]=g[p(0x183)][p(0x162)]===p(0x181)?!![]:![],this[p(0x179)][p(0x167)](p(0x162),g[p(0x183)][p(0x162)]));typeof g['template']['js']===p(0x164)&&(g[p(0x183)]['js']=g[p(0x183)]['js']===p(0x181)?!![]:![],this[p(0x179)][p(0x167)]('js',g['template']['js']));!g['features']&&(g[p(0x182)]={});!b[p(0x174)]&&!this[p(0x179)][p(0x166)](p(0x152))&&(Log[p(0x14d)](p(0x14f)),await this[p(0x179)][p(0x184)](p(0x152),{'cwd':c}));if(!b[p(0x174)]&&!this['fsi'][p(0x166)](p(0x146))){Log[p(0x17a)](p(0x17c));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a113e['relative'](this[p(0x179)][p(0x15a)]({}),f),'cssCaseName':paramCase(b[p(0x145)]),'className':pascalCase(b[p(0x145)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[p(0x145)]),'graphql':g['engines']['graphql'],'features':g[p(0x182)],'client':g[p(0x151)][p(0x170)],'api':g[p(0x151)][p(0x16b)],'ssr':g[p(0x151)][p(0x17f)],'test':g[p(0x151)][p(0x15b)],'theme':g[p(0x151)][p(0x15f)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x182)][p(0x154)]};await this[p(0x179)][p(0x183)]({'srcPath':'component/component.js','destPath':f+p(0x171),'context':h,'framework':p(0x146),'config':g});g[p(0x151)][p(0x15b)]!=='none'&&await this[p(0x179)]['template']({'srcPath':p(0x163),'destPath':f+p(0x159),'context':h,'framework':p(0x146),'config':g});g[p(0x183)]['css']&&(await this['fsi'][p(0x183)]({'srcPath':p(0x148),'destPath':f+p(0x161),'context':Object[p(0x178)]({},h,{'className':paramCase(b[p(0x145)])}),'config':g}),await this['fsi'][p(0x155)]({'filePath':f+'.'+g[p(0x151)]['js'],'content':p(0x168)+h[p(0x16d)]+'.'+g[p(0x151)][p(0x162)]+'\x27;'}));const i=b[p(0x16e)]?'/'+b[p(0x16e)]+'/':'/',j=''+d+i+h[p(0x17d)]+'/'+h[p(0x17d)];await this['fsi']['injectTemplateModule'](h[p(0x157)],g,j);});}catch(h){Log['error'](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(0x121))/0x1+-parseInt(i(0x139))/0x2*(-parseInt(i(0x132))/0x3)+-parseInt(i(0x11b))/0x4+-parseInt(i(0x12a))/0x5*(parseInt(i(0x12c))/0x6)+-parseInt(i(0x127))/0x7+-parseInt(i(0x135))/0x8+parseInt(i(0x11d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x542d5));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a114d;if(c){const e=c[j(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const k=a114d;return a114a[k(0x128)]()[k(0x137)](k(0x134))[k(0x128)]()[k(0x11f)](a114a)[k(0x137)]('(((.+)+)+)+$');});a114a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x11a;let f=c[d];return f;},a114d(a,b);}Generator['create']({'name':a114l(0x123),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a114l(0x120),'validOpts':[a114l(0x12f)],'examples':['maka\x20g:config\x20production']},async function(a,b){const m=a114l;try{const c=this[m(0x11e)][m(0x138)]();await this[m(0x11e)][m(0x130)](c,async()=>{const n=m,d={'app':c[n(0x126)],'appFileCase':paramCase(c[n(0x126)]),'name':pascalCase(b[n(0x124)]),'fileName':paramCase(b[n(0x124)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[n(0x12f)]};let e=b[n(0x124)];if(e==='dev')e=n(0x131);else e===n(0x13a)&&(e='production');const f=this[n(0x11e)][n(0x11c)]({'pathParts':[n(0x123),e,'settings.json']});await this['fsi'][n(0x125)]({'srcPath':n(0x12e),'destPath':f,'context':d,'config':c});if(e!==n(0x129)){const g=this[n(0x11e)][n(0x11c)]({'pathParts':['config',e,n(0x12d)]});await this[n(0x11e)][n(0x125)]({'srcPath':n(0x12b),'destPath':g,'context':{'app':c['appName'],'isDocker':!![]},'config':c});}if(e===n(0x129)){const h=this[n(0x11e)][n(0x11c)]({'pathParts':[n(0x123),e,n(0x11a)]});await this[n(0x11e)][n(0x125)]({'srcPath':n(0x136),'destPath':h,'context':d,'config':c});}});}catch(d){Log[m(0x122)](d);}});function a114c(){const o=['constructor','Generate\x20configuration\x20settings.','634918onZmXX','error','config','resourceName','template','appName','2718415TuBYgG','toString','local','125yBpPkk','config/pm2.config.js','90942OXLTob','pm2.config.js','config/settings.json','isDocker','withValue','development','1635486qzDkJN','apply','(((.+)+)+)+$','1587040JxphhY','config/process.env','search','getMakaProjectConfig','2fCbcMB','prod','process.env','2654512FhibFd','pathFromProject','18574407DtNSjI','fsi'];a114c=function(){return o;};return a114c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115l=a115d;(function(a,b){const i=a115d,c=a();while(!![]){try{const d=parseInt(i(0x10f))/0x1*(-parseInt(i(0x11b))/0x2)+parseInt(i(0x122))/0x3+-parseInt(i(0x12b))/0x4+parseInt(i(0x11a))/0x5*(-parseInt(i(0x126))/0x6)+parseInt(i(0x10b))/0x7+parseInt(i(0x10a))/0x8+parseInt(i(0x133))/0x9*(parseInt(i(0x128))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xd61e0));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a115d;if(c){const e=c[j(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const k=a115d;return a115a[k(0x12d)]()[k(0x108)]('(((.+)+)+)+$')['toString']()[k(0x132)](a115a)[k(0x108)](k(0x11f));});function a115c(){const o=['resourceName','dir','pathFromApp','better-sqlite3','register-','maka\x20g:dbc\x20geoserver\x20--type=pgsql','dbc/register-dbc.js','2431325oGPsyz','147674CGzTkq','engines','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','template','(((.+)+)+)+$','checkNpmPackage','dbc/config.js','3289362ucLSmC','server','create','startup','6CMsQkk','mssql','2042190tjyoJg','apply','pgsql','3783848IoAKNT','config.','toString','maka\x20g:dbc\x20todos\x20--type=sqlite','type','index.','dbc','constructor','27PNPVZz','search','-dbc\x27;','6487392OAosSF','7827974fWmrrx','sqlite','conn.','imports','18JGuAkn','import\x20\x27./register-','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','fsi'];a115c=function(){return o;};return a115c();}a115a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x108;let f=c[d];return f;},a115d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a115l(0x124)]({'name':a115l(0x131),'usage':a115l(0x111),'shortDesc':a115l(0x11d),'validOpts':[a115l(0x114)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a115l(0x12f),'values':[a115l(0x12a),a115l(0x127),a115l(0x10c)]}],'examples':[a115l(0x118),'maka\x20g:dbc\x20azure\x20--type=mssql',a115l(0x12e)]},async function(a,b){const m=a115l;try{const c=await this[m(0x112)]['getMakaProjectConfig'](),d=paramCase(b[m(0x113)]),f={'name':pascalCase(b[m(0x113)]),'fileName':paramCase(b[m(0x113)]),'camelCase':camelCase(b[m(0x113)]),'type':b['type'],'engine':c[m(0x11c)]['js'],'noRename':!![]};await this[m(0x112)]['withValue'](c,async()=>{const n=m;let g='js';c[n(0x11c)]['js']==='tsx'&&(g='ts');b[n(0x12f)]===n(0x12a)&&await this['fsi']['checkNpmPackage']('pg',{'shouldInstall':!![]});b['type']===n(0x127)&&await this[n(0x112)][n(0x120)]('mssql',{'shouldInstall':!![]});b[n(0x12f)]==='sqlite'&&await this[n(0x112)][n(0x120)](n(0x116),{'shouldInstall':!![]});await this['fsi'][n(0x11e)]({'srcPath':n(0x121),'destPath':this['fsi']['pathFromApp']({'pathParts':[n(0x10e),'startup',n(0x123),n(0x131),b[n(0x114)],d,n(0x12c)+g]}),'context':f,'config':c}),await this['fsi'][n(0x11e)]({'srcPath':'dbc/conn.js','destPath':this['fsi'][n(0x115)]({'pathParts':[n(0x10e),n(0x125),n(0x123),n(0x131),b[n(0x114)],d,n(0x10d)+g]}),'context':f,'config':c}),await this[n(0x112)][n(0x11e)]({'srcPath':n(0x119),'destPath':this[n(0x112)][n(0x115)]({'pathParts':['imports',n(0x125),'server',n(0x117)+d+'-dbc.'+g]}),'context':f,'config':c});const h=this[n(0x112)][n(0x115)]({'pathParts':[n(0x10e),'startup',n(0x123),n(0x130)+c['engines']['js']]});await this[n(0x112)]['injectAtEndOfFile']({'filePath':h,'content':n(0x110)+d+n(0x109)});});}catch(g){Log['error'](g);}});
|