@maka/maka-cli 5.0.0 → 5.0.1
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
|
-
const a96h=a96d;
|
|
1
|
+
const a96h=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=-parseInt(f(0x1f2))/0x1+parseInt(f(0x1e4))/0x2*(parseInt(f(0x1f3))/0x3)+-parseInt(f(0x1ed))/0x4*(parseInt(f(0x1f4))/0x5)+parseInt(f(0x1e8))/0x6+parseInt(f(0x1e5))/0x7*(parseInt(f(0x1f0))/0x8)+-parseInt(f(0x1ee))/0x9+parseInt(f(0x1ea))/0xa*(-parseInt(f(0x1f7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xac847));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['toString']()[g(0x1f6)]('(((.+)+)+)+$')[g(0x1f1)]()['constructor'](a96a)[g(0x1f6)](g(0x1e7));});a96a();import{Command}from'../../command.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1e4;let f=c[d];return f;},a96d(a,b);}function a96c(){const j=['create','search','231NWycto','310FSZRgg','531454MRGLUI','set','(((.+)+)+)+$','6846894tnSyDo','findSubCommand','375260adOQAu','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','maka\x20set:<sub-command>','37768MBcVkf','2821221NCkrPS','\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','136KiFkbA','toString','457002xobdSg','429NRwBus','100kpWjFn'];a96c=function(){return j;};return a96c();}const SetCommand=Command[a96h(0x1f5)]({'name':a96h(0x1e6),'usage':a96h(0x1ec),'shortDesc':a96h(0x1eb),'description':a96h(0x1ef),'validOpts':[]},async function(a,b){const i=a96h,c=a[0x0],d=this[i(0x1e9)](c);d&&this['runSubCommand'](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x1f6))/0x1+-parseInt(k(0x1eb))/0x2*(parseInt(k(0x1e7))/0x3)+parseInt(k(0x1e8))/0x4*(-parseInt(k(0x1f0))/0x5)+parseInt(k(0x1f9))/0x6*(-parseInt(k(0x1e0))/0x7)+-parseInt(k(0x1fe))/0x8*(-parseInt(k(0x1ef))/0x9)+-parseInt(k(0x1f7))/0xa*(-parseInt(k(0x1fc))/0xb)+parseInt(k(0x1de))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x37309));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1f8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x1f4)]()[m(0x1fb)](m(0x1e4))[m(0x1f4)]()[m(0x1f5)](a97a)[m(0x1fb)](m(0x1e4));});a97a();function a97c(){const p=['apply','2370kGneYi','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','search','121JFYkMX','maka\x20ssh\x20--env\x20prod','40UhfgaV','assign','ssh.json','readFileSync','9818760YKGEsi','error','7336QOEZQB','sshSync','maka\x20ssh\x20--env\x20staging','verbose','(((.+)+)+)+$','exit','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','29529nARdxe','8CgaAVC','getEnvFromShorthand','length','88ZvCSdX','getAppConfigPath','fsi','ssh','34029KzjWpG','689540NZryiX','env','maka\x20ssh\x20--env\x20dev','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','toString','constructor','379152lWmsLP','120580aoHHUB'];a97c=function(){return p;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a97d(a,b);}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(0x1ee),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a97n(0x1f1)],'validOpts':[a97n(0x1f1),'verbose'],'shortDesc':a97n(0x1f3),'examples':[a97n(0x1f2),a97n(0x1e2),a97n(0x1fd),'maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22',a97n(0x1fa),a97n(0x1e6)]},async function(a,b){const o=a97n;try{const c=this[o(0x1ed)][o(0x1e9)](b[o(0x1f1)]),d=this['fsi'][o(0x1ec)](c);let f='';a[o(0x1ea)]>0x0&&(f=a[0x0]);const g=a97f['join'](c,o(0x200)),h=a97e[o(0x1dd)](g)[o(0x1f4)](),i=JSON['parse'](h);Object[o(0x1ff)](i,{'env':d}),SSH[o(0x1e1)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0x1e3)]});}catch(j){Log[o(0x1df)](j),process[o(0x1e5)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98z=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=-parseInt(w(0x1f4))/0x1+-parseInt(w(0x1dc))/0x2*(parseInt(w(0x1e7))/0x3)+-parseInt(w(0x1ff))/0x4*(parseInt(w(0x1e3))/0x5)+-parseInt(w(0x1f9))/0x6*(parseInt(w(0x1c3))/0x7)+-parseInt(w(0x1fe))/0x8*(-parseInt(w(0x1cc))/0x9)+parseInt(w(0x1d0))/0xa+-parseInt(w(0x1ce))/0xb*(-parseInt(w(0x1f3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xd91af));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a98d;if(c){const e=c[x(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const y=a98d;return a98a[y(0x1d3)]()[y(0x1f1)](y(0x1e2))[y(0x1d3)]()[y(0x1c8)](a98a)[y(0x1f1)](y(0x1e2));});a98a();import a98e from'fs';function a98c(){const B=['readFileSync','start','appName','6OPjtsB','ssh','Create\x20and\x20manage\x20your\x20SSL\x20operations.','mkKeysDir','letsencrypt.json','1929880KuGuSD','870904YPrdFG','domainNames','emailUpdate','notice','Email\x20to\x20use\x20for\x20auto-updates:\x20','Please\x20provide\x20a\x20command.','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','10372201EXYpSf','uname\x20-a','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','env','existsSync','constructor','getMakaProjectConfig','error','sudo\x20snap\x20install\x20--classic\x20certbot','18Uqyhik','join','7007NVUInz','assign','3723980lDnnoE','generate-ssc','fsi','toString','genSSC','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','Remote\x20host\x20connection\x20successful','email','\x20--email\x20','stringify','parse','maka\x20ssl\x20--env\x20dev\x20generate-csr','2845190qkbHUf','ask','create','letsencrypt','.key','generate-csr','(((.+)+)+)+$','5IHijYy','Using\x20saved\x20letsencrypt\x20config','New\x20CSR\x20written\x20to\x20','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','3JADRHW','success','.crt','maka\x20ssl\x20[command]','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','writeFileSync','Verifying\x20Letsencrypt\x20configuration','withSpinner','.csr','search','domains','86172WKCGxT','1417838emuRIV','apply'];a98c=function(){return B;};return a98c();}import a98f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1c0;let f=c[d];return f;},a98d(a,b);}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a98z(0x1de)]({'name':'ssl','usage':a98z(0x1ea),'validOpts':[a98z(0x1f2),a98z(0x1d7)],'requiredOpts':[a98z(0x1c6)],'shortDesc':a98z(0x1fb),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98z(0x1db),a98z(0x1ec),a98z(0x1eb)]},async function(a,b){const A=a98z,c=this[A(0x1d2)][A(0x1c9)](),d=this[A(0x1d2)]['getEnvFromShorthand'](b[A(0x1c6)]),f=this[A(0x1d2)]['getAppConfigPath'](d),g=this[A(0x1d2)][A(0x1fc)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x1e1))SSL['genCSR']({'keyName':c[A(0x1f8)]+A(0x1e0),'csrName':c['appName']+'.csr','cwd':g});else{if(h===A(0x1d1)){if(!a98e[A(0x1c7)](a98f[A(0x1cd)](g,c[A(0x1f8)]+A(0x1e0))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a98f[A(0x1cd)](g,c['appName']+A(0x1e0));if(!a98e[A(0x1c7)](a98f[A(0x1cd)](g,c[A(0x1f8)]+A(0x1f0))))throw A(0x1c5)+a98f[A(0x1cd)](g,c[A(0x1f8)]+A(0x1f0));SSL[A(0x1d4)]({'keyName':c['appName']+'.key','crtName':c[A(0x1f8)]+A(0x1e9),'cwd':g}),Log[A(0x202)](A(0x1e5)+g);}else{if(h===A(0x1df)){let i=b[A(0x1f2)],j=b[A(0x1d7)];try{const q=a98e[A(0x1f6)](a98f[A(0x1cd)](f,A(0x1fd)))[A(0x1d3)](),r=JSON[A(0x1da)](q);i=b[A(0x1f2)]?b['domains']:r[A(0x200)],j=b[A(0x1d7)]?b['email']:r[A(0x201)],(!b['email']||!b[A(0x1f2)])&&Log['notice'](A(0x1e4));}catch(s){}const k=JSON[A(0x1da)](a98e[A(0x1f6)](f+'/ssh.json')[A(0x1d3)]());Object[A(0x1cf)](k,{'env':f}),Log[A(0x202)]('Checking\x20remote\x20host\x20availability');try{const t=SSH['ping'](A(0x1c4),k);if(!t)throw A(0x1e6);if(t)Log[A(0x1e8)](A(0x1d6));}catch(u){Log[A(0x1ca)](u);return;}const l=Log[A(0x1ef)]();l[A(0x1f7)](A(0x1ee)),SSH['ssh']('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...k}),SSH[A(0x1fa)](A(0x1cb),{...k}),SSH[A(0x1fa)](A(0x1c2),{...k}),l[A(0x1e8)]();const m=i?i:await Actions[A(0x1dd)]('[?]\x20Domains\x20to\x20register:\x20'),n=j?j:await Actions[A(0x1dd)](A(0x1c0));SSH[A(0x1fa)](A(0x1d5)+m+A(0x1d8)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x1d9)](o,null,0x2);a98e[A(0x1ed)](a98f[A(0x1cd)](f,A(0x1fd)),p);}else throw A(0x1c1);}}}catch(v){console[A(0x1ca)](v),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(0x132))/0x1+parseInt(n(0x13f))/0x2+-parseInt(n(0x13e))/0x3*(-parseInt(n(0x167))/0x4)+parseInt(n(0x162))/0x5*(parseInt(n(0x130))/0x6)+parseInt(n(0x143))/0x7*(-parseInt(n(0x129))/0x8)+parseInt(n(0x12c))/0x9+-parseInt(n(0x139))/0xa*(parseInt(n(0x169))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xeab44));const a99b=(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;};}()),a99a=a99b(this,function(){const o=a99d;return a99a['toString']()[o(0x166)](o(0x156))[o(0x151)]()[o(0x126)](a99a)[o(0x166)](o(0x156));});a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{execSync}from'child_process';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x126;let f=c[d];return f;},a99d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a99c(){const t=['invokeMeteorCommand','maka\x20test','Meteor\x20Settings:\x20','readFileSync','555CDlcbD','slice','forEach','tests','search','1004fmEdsG','--settings','33xSapcq','constructor','testAppPath','test','7056680YagqXl','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','filter','14048190ljDQCZ','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','--driver','env','51036lHOBbM','driverPackage','829333Cziuid','join','settings.json','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','splice','--full-app','getAppConfigPath','4014630fpxNKB','concat','local','--env','config','6879KoYDkg','1593072EDQMhK','process.env','fsi','create','7NmRqkk','notice','inspect','--packages','meteortesting:mocha','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','warn','isFile','openSync','mocha','test-packages','config.json','once','sanjo:jasmine','toString','maka\x20install\x20--force','driver','packages','none','(((.+)+)+)+$','inherit','findProjectDirectory','rawLogs','unit','engines','exit','parse'];a99c=function(){return t;};return a99c();}const syncSource=function(a){const p=a99d;a99e[p(0x14b)](a,'r'),a99g[p(0x13d)]({'path':a});};Command[a99q(0x142)]({'name':a99q(0x128),'mustBeInMakaProject':!![],'validOpts':['once',a99q(0x154),a99q(0x153),a99q(0x131),a99q(0x15a),a99q(0x12f),a99q(0x159),'port',a99q(0x145),a99q(0x127)],'usage':a99q(0x15f),'aliases':['t',a99q(0x165)],'shortDesc':a99q(0x148),'examples':[]},async function(a,b){const r=a99q;try{this[r(0x141)]['isMeteorInstalled']()?Log['notice']('Meteor\x20is\x20installed.'):(Log[r(0x149)](r(0x12d)),execSync(r(0x152),{'stdio':r(0x157)}));const c=b[r(0x12f)]?this['fsi']['getEnvFromShorthand'](b[r(0x12f)]):r(0x13b),d=this['fsi'][r(0x138)](c);(!b[r(0x15a)]||!!b[r(0x14f)])&&(a=a[r(0x13a)]([r(0x137)]));b[r(0x15a)]&&delete b[r(0x15a)];let f=b['driver-package']||b[r(0x153)]||r(0x155);if(f==='none'){const k=JSON[r(0x15d)](a99e[r(0x161)](a99f[r(0x133)](this[r(0x141)][r(0x158)](),'.maka',r(0x14e)),'utf8'));if(k[r(0x15b)]['test']==='jasmine')f=r(0x150);else k[r(0x15b)]['test']===r(0x14c)&&(f=r(0x147));}if(f===r(0x155))throw r(0x12a);(!b['driver-package']||!b['driver'])&&(a=a[r(0x13a)](['--driver-package',f]));const g=a99f[r(0x133)](d,r(0x134));this[r(0x141)][r(0x14a)](g)?(Log[r(0x144)](r(0x160)+g),a=a[r(0x13a)]([r(0x168),g])):Log['warn'](r(0x135)+g);const h=a99f['join'](d,r(0x140));this[r(0x141)][r(0x14a)](d)?(Log[r(0x144)]('Node\x20Env\x20Config:\x20'+h),syncSource(h)):Log[r(0x149)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+h);const i=process['argv'][r(0x163)](0x2)[r(0x12b)](l=>l!==r(0x13c))[r(0x12b)](l=>l!==r(0x128))[r(0x12b)](l=>l!==a[0x0]);i[r(0x164)]((l,m)=>{const s=r;(l==='--env'||l===s(0x12e))&&i[s(0x136)](m,0x2),l===s(0x146)&&i['splice'](m,0x1);});const j=b['packages']?r(0x14d):r(0x128);this[r(0x141)][r(0x15e)](j,a['concat'](i));}catch(l){console['error'](l),process[r(0x15c)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=parseInt(f(0x1be))/0x1+parseInt(f(0x1b6))/0x2+parseInt(f(0x1b9))/0x3*(parseInt(f(0x1b3))/0x4)+parseInt(f(0x1bb))/0x5*(parseInt(f(0x1c4))/0x6)+parseInt(f(0x1bc))/0x7+-parseInt(f(0x1b7))/0x8*(parseInt(f(0x1c2))/0x9)+-parseInt(f(0x1c0))/0xa*(parseInt(f(0x1ba))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xd1eeb));var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a[h(0x1b8)]()['search']('(((.+)+)+)+$')[h(0x1b8)]()[h(0x1b4)](a100a)[h(0x1c5)](h(0x1c1));});function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x1b3;var f=c[d];return f;},a100d(a,b);}function a100c(){var k=['1818xLVHYw','create','78JeFTCf','search','99956xuOiag','constructor','undo','2294608kySJTh','29752loeOAN','toString','93ktdnvl','28687868FuzRRp','109385HDCSpC','9310959lvRTPV','apply','682608pcwKKD','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','10rXsIqi','(((.+)+)+)+$'];a100c=function(){return k;};return a100c();}a100a();import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';Command[a100i(0x1c3)]({'name':a100i(0x1b5),'aliases':['u'],'validOpts':[],'shortDesc':a100i(0x1bf),'experimental':!![]},async function(){var j=a100i;a100e[j(0x1b5)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101n=a101d;(function(a,b){const l=a101d,c=a();while(!![]){try{const d=-parseInt(l(0x7c))/0x1+parseInt(l(0x99))/0x2*(parseInt(l(0x7a))/0x3)+parseInt(l(0x6f))/0x4*(-parseInt(l(0x75))/0x5)+-parseInt(l(0x82))/0x6*(parseInt(l(0x98))/0x7)+-parseInt(l(0x7b))/0x8+-parseInt(l(0x9a))/0x9*(parseInt(l(0x7e))/0xa)+-parseInt(l(0x96))/0xb*(-parseInt(l(0x77))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x92170));const a101b=(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;};}()),a101a=a101b(this,function(){const m=a101d;return a101a[m(0x73)]()[m(0x8e)](m(0x79))[m(0x73)]()[m(0x91)](a101a)['search'](m(0x79));});a101a();import{execSync}from'child_process';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x69;let f=c[d];return f;},a101d(a,b);}import a101e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a101c(){const p=['System\x27s\x20Node\x20Version\x20','replace','getProjectMeteorVersion','2574156eZThDS','notice','5.0.1','warn','error','\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','!\x20Consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','verbose','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','maka\x20version\x20--verbose','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','majestic','search','valid','Project\x27s\x20Meteor\x20Version\x20','constructor','\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','getProjectsMeteorNodeVersion',')\x20to\x20at\x20least\x20meteor\x27s\x20(','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','22ZPmwmW','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','14ZTOmUJ','4gFewhw','140634TVarMQ','fsi','----------------------System----------------------------','getGlobalMeteorVersion','maka\x20version','maka\x20v','\x20node\x20-v','2725356yvxLqD','bright','Project\x27s\x20Meteor\x20Node\x20Version\x20','compareMakaToLatest','toString','exit','5tuclhr','N/A','18229116nJzcrS','----------------------Project----------------------------','(((.+)+)+)+$','784386HnBZxT','3399904khOyJZ','467063vvDBZv','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','340gVfdOz'];a101c=function(){return p;};return a101c();}const pjson={'version':a101n(0x84)};Command['create']({'name':'version','aliases':['v'],'usage':a101n(0x6c),'maxArgLength':0x1,'validOpts':[a101n(0x89)],'shortDesc':a101n(0x97),'examples':[a101n(0x6d),a101n(0x6c),a101n(0x8b)],'description':a101n(0x87)},async function(a,b){const o=a101n;try{const c=this[o(0x69)]['getMeteorExePath']();Log[o(0x8d)]('Maka\x20'+pjson['version']),await this[o(0x69)][o(0x72)]();if(b[o(0x89)]){await this[o(0x69)][o(0x72)](),Log[o(0x70)](o(0x6a));const d=this[o(0x69)][o(0x6b)]();Log[o(0x70)](('System\x27s\x20Meteor\x20Version\x20'+d)['replace']('\x0a',''));const f=execSync(c+o(0x6e))[o(0x73)]()['replace'](/\r?\n|\r/,'')[o(0x80)]('v','');Log[o(0x70)](o(0x95)+f);const g=execSync('node\x20-v')[o(0x73)]()[o(0x80)](/\r?\n|\r/,'')['replace']('v','');a101e['gt'](f,g)?(Log[o(0x85)]('System\x27s\x20Node\x20Version\x20'+g),Log[o(0x85)](o(0x8c)+g+o(0x94)+f+')')):Log['bright'](o(0x7f)+g);if(this[o(0x69)]['isMakaProject']()){Log['bright'](o(0x78));const h=this['fsi'][o(0x81)]();try{if(!a101e[o(0x8f)](h))Log[o(0x85)]('Project\x27s\x20Meteor\x20Version\x20'+h[o(0x80)]('\x0a',''));else a101e['gt'](d,h)?(Log['warn'](o(0x90)+h[o(0x80)]('\x0a','')),Log[o(0x85)](o(0x88)+d+'\x22')):Log[o(0x83)](o(0x90)+h[o(0x80)]('\x0a',''));}catch(j){Log['error']('An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20'+j),Log[o(0x86)](o(0x8a));}const i=await this[o(0x69)][o(0x93)]();i===o(0x76)?(Log[o(0x85)](o(0x71)+i),Log['warn'](o(0x7d))):Log[o(0x70)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log['bright'](o(0x92));}}}catch(k){console[o(0x86)](k),process[o(0x74)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0x101))/0x1*(parseInt(f(0x109))/0x2)+-parseInt(f(0x108))/0x3+-parseInt(f(0x103))/0x4+-parseInt(f(0xff))/0x5+parseInt(f(0x107))/0x6*(parseInt(f(0x102))/0x7)+parseInt(f(0xfe))/0x8+parseInt(f(0x106))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3a01d));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[g(0x100)]()[g(0x10a)](g(0x104))[g(0x100)]()[g(0x105)](a102a)[g(0x10a)](g(0x104));});function a102c(){var h=['735148ATfqbc','(((.+)+)+)+$','constructor','7387137NVTCEN','882402bnxkzw','761499geLtaT','5254SThqIc','search','2474056DPieBf','2011240DatyHh','toString','76giVLUO','7MFJZoL'];a102c=function(){return h;};return a102c();}a102a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0xfe;var f=c[d];return f;},a102d(a,b);}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
var a103h=a103d;(function(a,b){var f=a103d,c=a();while(!![]){try{var d=-parseInt(f(0x74))/0x1*(parseInt(f(0x7a))/0x2)+parseInt(f(0x6d))/0x3+-parseInt(f(0x76))/0x4+-parseInt(f(0x79))/0x5+parseInt(f(0x73))/0x6*(parseInt(f(0x70))/0x7)+-parseInt(f(0x78))/0x8+parseInt(f(0x6f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xc1819));var a103b=(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;};}()),a103a=a103b(this,function(){var g=a103d;return a103a['toString']()[g(0x77)]('(((.+)+)+)+$')[g(0x72)]()[g(0x75)](a103a)[g(0x77)](g(0x71));});function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x6c;var f=c[d];return f;},a103d(a,b);}function a103c(){var i=['34zmFKLz','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','4079547NPVbRs','NODE_OPTIONS','18219978qbjdMN','7CqECAz','(((.+)+)+)+$','toString','7641726mSTBzq','63761Adshft','constructor','3472344nNKbGG','search','3220888gTxMoH','7553385jvBupm'];a103c=function(){return i;};return a103c();}a103a(),process['env'][a103h(0x6e)]=a103h(0x6c);import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104v=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0x200))/0x1+parseInt(r(0x214))/0x2+parseInt(r(0x219))/0x3*(-parseInt(r(0x1e3))/0x4)+-parseInt(r(0x20e))/0x5*(-parseInt(r(0x22c))/0x6)+parseInt(r(0x247))/0x7+-parseInt(r(0x248))/0x8*(-parseInt(r(0x22d))/0x9)+-parseInt(r(0x1ec))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xc22cf));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a104d;if(c){const e=c[s(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const t=a104d;return a104a['toString']()['search']('(((.+)+)+)+$')[t(0x228)]()[t(0x1fb)](a104a)[t(0x235)](t(0x208));});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';function a104c(){const N=['sort','\x20generator.\x20Skipping\x20undo.','_genTransactionId','map','Generators:','list','cwd','37387070GaXhiA','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','generatorName','server','writeHistory','client','create','split','name','readHistory','pathFromProject','dir','shift','sep','localeCompare','constructor','_historyFilePath','validateMeteorInstall','bind','bright','784702YRGakS','Too\x20few\x20arguments','\x20not\x20found.\x20Cannot\x20undo.','Nothing\x20to\x20undo.','colLocAnswer','aliases','minOptsLength','opts','(((.+)+)+)+$','LIGHT','DARK','apply','No\x20undo\x20handler\x20defined\x20for\x20','assign','45uEKjeP','Name','Please\x20run\x20\x22maka\x20install\x20meteor\x22','warn','match','fsi','2157938vmmQsn','Too\x20few\x20options','readFileSync','_generators','(expermiental)\x20','3159165JsFtXK','slice','validateMakaSubscription','success','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','length','noNeedResource','addToHistory','find','history.json','Location','invoke','notice','transactionId','resourceName','toString','findProjectDirectory','processAndRunGenerator','options','765630gMYZxn','9rdaeDr','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Alias','includes','Too\x20many\x20options','Generator\x20format\x20is\x20incorrect','writeFileSync','minArgLength','search','chdir','number','addGenerator','fullNameChain','mustBeInMakaProject','Generator.create\x20requires\x20some\x20options!','_undoHandler','Both','join','message','checkWhere','where','existsSync','Generator\x20requires\x20a\x20handler\x20function','listGenerators','_handler','error','8021538bGtAvn','11432440UkzjeU','maxOptsLength','both','lib','.maka','handleGenerateError','function','root','validateParams','reverse','undo','tableList','maxArgLength','push','validateMakaProject','Server','Description','config','Generator\x20','appPathPrefix','statSync','filter','replace','No\x20resource\x20name\x20specified','requiredEngines','help','validateEngines','\x20not\x20found','findGeneratorByName','stringify','params','Too\x20many\x20arguments','experimental','mustHaveMeteorInstalled','exit','light','keys','4GQqtts','pop'];a104c=function(){return N;};return a104c();}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';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1c1;let f=c[d];return f;},a104d(a,b);}let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const u=a104d,c=process[u(0x1eb)]();let d=null;try{process[u(0x236)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a104v(0x22b)];[a104v(0x239)];[a104v(0x217)];[a104v(0x1fc)];['_undoHandler'];[a104v(0x1e7)];constructor(a,b,c){const w=a104v;super();if(!a)throw new Error(w(0x22e));if(!a[w(0x1f4)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==w(0x1c4))throw new Error(w(0x243));this[w(0x217)]=[],this[w(0x22b)]=Object[w(0x20d)]({},a),this[w(0x1f4)]=this[w(0x22b)][w(0x1f4)],this[w(0x245)]=b[w(0x1fe)](this);try{this['_historyFilePath']=this[w(0x213)][w(0x1f6)]({'pathParts':['.maka',w(0x222)]})||a104e[w(0x23e)]('.',w(0x1c2),w(0x222));}catch(d){Log['error'](d);}c&&(this[w(0x23c)]=c['bind'](this));}['getHistoryFileSize'](){const x=a104v;if(a104f[x(0x242)](this['_historyFilePath'])){const a=a104f[x(0x1d2)](this[x(0x1fc)]);return a['size'];}return 0x0;}[a104v(0x1f5)](){const y=a104v;if(!a104f[y(0x242)](this[y(0x1fc)]))return[];return JSON['parse'](a104f[y(0x216)](this[y(0x1fc)],'utf-8'));}[a104v(0x1f0)](a){const z=a104v;this[z(0x1fc)]&&!a104f[z(0x242)](this[z(0x1fc)])&&a104f[z(0x233)](this[z(0x1fc)],JSON['stringify']([])),a104f[z(0x233)](this['_historyFilePath'],JSON[z(0x1db)](a,null,0x2));}[a104v(0x220)](a){const A=a104v;try{a?.['params']?.[A(0x207)][A(0x1cf)]&&delete a[A(0x1dc)][A(0x207)][A(0x1cf)];const b=this[A(0x1f5)](),c={'generatorName':this[A(0x239)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1cb)](c);const d=Buffer['from'](JSON[A(0x1db)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x21e)]>0x0){b[A(0x1f8)]();}this[A(0x1f0)](b);}catch(f){Log[A(0x246)](f);}}async[a104v(0x1c8)](){const B=a104v,a=this[B(0x1f5)]();if(a['length']===0x0){Log[B(0x211)](B(0x203));return;}const b=a[B(0x1e4)](),c=b['transactionId'],d=a[B(0x1d3)](e=>e[B(0x226)]===c);d[B(0x1cb)](b),d[B(0x1c7)]();for(const e of d){const f=this[B(0x1da)](e[B(0x1ee)]);if(!f){Log[B(0x246)](B(0x1d0)+e[B(0x1ee)]+B(0x202));continue;}f[B(0x23c)]?await f[B(0x23c)](e['details']):Log[B(0x211)](B(0x20c)+e[B(0x1ee)]+B(0x1e6));}this['writeHistory'](a['filter'](g=>g[B(0x226)]!==c));}static[a104v(0x1f2)](a,b,c,d){const C=a104v;if(!a)throw new Error(C(0x23b));if(typeof b!==C(0x1c4))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b);c&&(e[C(0x23c)]=c[C(0x1fe)](e));d=d||a104i;const f=d?d[C(0x239)]:'';return e[C(0x239)]=f?f+':'+a[C(0x1f4)]:a['name'],Object[C(0x20d)](e,{'parent':d?.[C(0x22b)]?.['name']}),d[C(0x238)](e),e;}[a104v(0x238)](a){const D=a104v;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[D(0x217)]['push'](a);}async[a104v(0x22a)](a,b=[],c={}){const E=a104v;let d;try{const f=a?.[E(0x1f3)](':');if(!f||f['length']===0x0)throw E(0x232);let g=this['_generators'],h;for(const i of f){h=g[E(0x221)](j=>j[E(0x212)](i));if(!h)throw E(0x1d0)+i+E(0x1d9);await this[E(0x21b)](h),g=h[E(0x217)];}if(h)d=await h[E(0x224)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x246)](j);}return d;}[a104v(0x1da)](a){const F=a104v,b=a?.[F(0x1f3)](':');if(!b||b[F(0x21e)]===0x0)return Log[F(0x246)](F(0x232)),null;let c=this[F(0x217)],d;for(const e of b){d=c[F(0x221)](f=>f[F(0x212)](e));if(!d)return Log[F(0x246)]('Generator\x20'+e+F(0x1d9)),null;c=d['_generators'];}return d||null;}async[a104v(0x224)](a,b){const G=a104v,c=a[G(0x21a)]();b[G(0x227)]=c[0x0];try{const d=await this[G(0x213)]['getGlobalConfig'](),f=d['pallet']===G(0x1e1)?ColorMode[G(0x209)]:ColorMode[G(0x20a)];Log['setColorMode'](f),await this[G(0x21b)](this);const g=a[0x0]===_prevGen||a[G(0x21e)]===0x0&&this[G(0x217)][G(0x21e)]>=0x0,h=b[G(0x1d7)]||b['h'];if(g&&h){if(this[G(0x217)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x22b)][G(0x23a)]){const i=this[G(0x1cc)]();if(!i)throw new MustBeInProjectError();}if(this['options'][G(0x1df)]){const j=this[G(0x1fd)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x22b)][G(0x234)]===G(0x237)){if(a[G(0x21e)]<this[G(0x22b)][G(0x234)]){Log[G(0x246)](G(0x201));throw new UsageError();}}if(typeof this[G(0x22b)][G(0x1ca)]===G(0x237)){if(a[G(0x21e)]>this[G(0x22b)][G(0x1ca)]){Log[G(0x246)](G(0x1dd));throw new UsageError();}}if(typeof this[G(0x22b)][G(0x206)]==='number'){if(Object['keys'](b)[G(0x21e)]<this[G(0x22b)][G(0x206)]){Log['error'](G(0x215));throw new UsageError();}}if(typeof this['options'][G(0x249)]===G(0x237)){if(Object[G(0x1e2)](b)['length']>=this['options'][G(0x249)]){Log[G(0x246)](G(0x231));throw new UsageError();}}}this['options'][G(0x1d6)]&&this[G(0x1d8)](this['options'][G(0x1d6)]);await this[G(0x1c6)](a,b,this[G(0x22b)]);if(!b['resourceName']&&!this['options'][G(0x21f)]){Log[G(0x246)](G(0x1d5));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[G(0x1e0)](0x1);}return await inside(b[G(0x1eb)],async()=>{const H=G;try{if(!b[H(0x1c5)]&&!this['fsi'][H(0x229)]())throw new MustBeInProjectError();const l=b[H(0x227)]?.[H(0x1d4)](/\\/g,'/')[H(0x1f3)]('/');!b[H(0x1f7)]&&(l?.[H(0x21e)]>0x1?(b[H(0x227)]=l[H(0x1e4)](),c[0x0]=b[H(0x227)],b['dir']=l[H(0x1e8)](n=>{return paramCase(n);})[H(0x23e)](a104e[H(0x1f9)])):b[H(0x1f7)]='');if(this['options'][H(0x240)]){if(!b['where']){const o={'type':H(0x1ea),'name':H(0x204),'message':H(0x223),'choices':[{'name':'Client','value':'client'},{'name':H(0x1cd),'value':H(0x1ef)},{'name':H(0x23d),'value':H(0x24a)}]},{colLocAnswer:p}=await Actions[H(0x22b)](o);p?b[H(0x241)]=p:b[H(0x241)]='both';}const n=[H(0x24a),H(0x1f1),H(0x1ef)];if(!n[H(0x230)](b[H(0x241)])){Log['error'](H(0x1ed));throw new UsageError();}switch(b['where']){case H(0x24a):b[H(0x1d1)]=H(0x1c1);break;case'server':b['appPathPrefix']=H(0x1ef);break;case H(0x1f1):b[H(0x1d1)]=H(0x1f1);break;default:b[H(0x1d1)]='';}}const m=await this[H(0x245)]['call'](this,c,b);return m&&this[H(0x220)]({'params':{'args':c,'opts':this[H(0x213)]['deepen'](b)},'success':m?.[H(0x21c)],'message':m?.[H(0x23f)],'details':m?.['details']}),m;}catch(q){this[H(0x1c3)](q);}});}[a104v(0x244)](){const I=a104v;this[I(0x1c9)](this[I(0x217)]);}[a104v(0x1c3)](a){const J=a104v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x22b)];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x225)](J(0x1e9)),this[J(0x1c9)](this[J(0x217)]);else{if(a instanceof MustBeInProjectError)Log[J(0x246)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[J(0x246)](J(0x21d)),Log['notice'](J(0x210));else a instanceof NoMeteorAppFoundError&&Log[J(0x246)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a104v(0x1c9)](a){const K=a104v,b=new a104g({});b['push']([K(0x20f),K(0x22f),K(0x1ce)]),a[K(0x1e5)]((c,d)=>{const L=K;return c[L(0x1f4)][L(0x1fa)](d['name']);})['forEach'](c=>{const M=K,d=c[M(0x1de)](),e=d?M(0x218)+c['shortDesc']():c['shortDesc']();b[M(0x1cb)]([c[M(0x1f4)],c[M(0x205)](),e]);}),Log[K(0x1ff)](b[K(0x228)]());}}
|
|
1
|
+
const a104v=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0x130))/0x1*(parseInt(r(0x199))/0x2)+parseInt(r(0x19f))/0x3*(parseInt(r(0x177))/0x4)+-parseInt(r(0x123))/0x5*(-parseInt(r(0x18d))/0x6)+-parseInt(r(0x11a))/0x7+-parseInt(r(0x11f))/0x8+parseInt(r(0x139))/0x9*(-parseInt(r(0x187))/0xa)+parseInt(r(0x13a))/0xb*(parseInt(r(0x143))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x41615));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a104d;if(c){const e=c[s(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const t=a104d;return a104a['toString']()[t(0x18f)](t(0x152))[t(0x140)]()[t(0x12d)](a104a)[t(0x18f)](t(0x152));});a104a();import a104e from'path';import a104f from'fs';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x118;let f=c[d];return f;},a104d(a,b);}import a104g from'cli-table';import{v4 as a104h}from'uuid';function a104c(){const N=['Generator\x20format\x20is\x20incorrect','opts','split','No\x20undo\x20handler\x20defined\x20for\x20','history.json','utf-8','colLocAnswer','light','existsSync','deepen','getHistoryFileSize','Alias','No\x20resource\x20name\x20specified','Generator.create\x20requires\x20a\x20handler\x20function!','Too\x20few\x20options','Description','Name','join','parse','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','writeFileSync','message','fullNameChain','pallet','_handler','warn','params','1747672AZAiaT','shortDesc','appPathPrefix','validateMakaProject','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','length','options','(expermiental)\x20','_historyFilePath','addGenerator','fsi','maxOptsLength','Generators:','both','bind','size','10zAkmIF','Too\x20many\x20options','lib','slice','Server','mustBeInMakaProject','837282yCavON','success','search','assign','config','exit','create','error','localeCompare','addToHistory','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','map','2120CRRDCY','maxArgLength','root','Generator.create\x20requires\x20some\x20options!','readHistory','server','3gMAGxj','minArgLength','transactionId','help','addGenerator\x20requires\x20a\x20Generator\x20instance','handleGenerateError','_undoHandler','3412724ZbchGo','Please\x20run\x20\x22maka\x20install\x20meteor\x22','apply','details','Too\x20many\x20arguments','2518528rbcfmw','listGenerators','Generator\x20requires\x20a\x20name','cwd','15btHNfT','shift','forEach','chdir','stringify','\x20not\x20found.\x20Cannot\x20undo.','Generator\x20','\x20generator.\x20Skipping\x20undo.','Client','minOptsLength','constructor','find','tableList','374BRDuHp','push','keys','findGeneratorByName','writeHistory','requiredEngines','DARK','usage','There\x20is\x20no\x20Meteor\x20application\x20here','1986561AQsQiI','427625cQSSzs','_generators','replace','pop','resourceName','call','toString','dir','list','12cevmYo','client','invoke','\x20not\x20found','Generator\x20not\x20found','generatorName','number','from','.maka','where','findProjectDirectory','readFileSync','notice','reverse','setColorMode','(((.+)+)+)+$','sep','Both','name','Nothing\x20to\x20undo.','validateParams','aliases','pathFromProject','_genTransactionId','undo'];a104c=function(){return N;};return a104c();}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(0x122)]();let d=null;try{process[u(0x126)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a104v(0x17d)];['fullNameChain'];[a104v(0x13b)];[a104v(0x17f)];['_undoHandler'];[a104v(0x15a)];constructor(a,b,c){const w=a104v;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[w(0x155)])throw new Error(w(0x121));if(typeof b!=='function')throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[w(0x13b)]=[],this['options']=Object[w(0x190)]({},a),this[w(0x155)]=this[w(0x17d)][w(0x155)],this[w(0x174)]=b[w(0x185)](this);try{this[w(0x17f)]=this[w(0x181)][w(0x159)]({'pathParts':[w(0x14b),w(0x160)]})||a104e[w(0x16d)]('.',w(0x14b),'history.json');}catch(d){Log[w(0x194)](d);}c&&(this['_undoHandler']=c['bind'](this));}[a104v(0x166)](){const x=a104v;if(a104f[x(0x164)](this['_historyFilePath'])){const a=a104f['statSync'](this['_historyFilePath']);return a[x(0x186)];}return 0x0;}[a104v(0x19d)](){const y=a104v;if(!a104f[y(0x164)](this[y(0x17f)]))return[];return JSON[y(0x16e)](a104f[y(0x14e)](this[y(0x17f)],y(0x161)));}['writeHistory'](a){const z=a104v;this[z(0x17f)]&&!a104f[z(0x164)](this[z(0x17f)])&&a104f[z(0x170)](this['_historyFilePath'],JSON['stringify']([])),a104f[z(0x170)](this[z(0x17f)],JSON[z(0x127)](a,null,0x2));}[a104v(0x196)](a){const A=a104v;try{a?.[A(0x176)]?.[A(0x15d)][A(0x191)]&&delete a['params'][A(0x15d)][A(0x191)];const b=this[A(0x19d)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0x131)](c);const d=Buffer[A(0x14a)](JSON[A(0x127)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x17c)]>0x0){b[A(0x124)]();}this['writeHistory'](b);}catch(f){Log[A(0x194)](f);}}async[a104v(0x15b)](){const B=a104v,a=this[B(0x19d)]();if(a['length']===0x0){Log['warn'](B(0x156));return;}const b=a[B(0x13d)](),c=b[B(0x1a1)],d=a['filter'](e=>e[B(0x1a1)]===c);d[B(0x131)](b),d[B(0x150)]();for(const e of d){const f=this[B(0x133)](e[B(0x148)]);if(!f){Log[B(0x194)](B(0x129)+e[B(0x148)]+B(0x128));continue;}f[B(0x119)]?await f[B(0x119)](e[B(0x11d)]):Log[B(0x175)](B(0x15f)+e[B(0x148)]+B(0x12a));}this[B(0x134)](a['filter'](g=>g['transactionId']!==c));}static[a104v(0x193)](a,b,c,d){const C=a104v;if(!a)throw new Error(C(0x19c));if(typeof b!=='function')throw new Error(C(0x169));const e=new Generator(a,b);c&&(e[C(0x119)]=c[C(0x185)](e));d=d||a104i;const f=d?d[C(0x172)]:'';return e[C(0x172)]=f?f+':'+a[C(0x155)]:a[C(0x155)],Object[C(0x190)](e,{'parent':d?.[C(0x17d)]?.[C(0x155)]}),d[C(0x180)](e),e;}[a104v(0x180)](a){const D=a104v;if(!(a instanceof Generator))throw new Error(D(0x1a3));this[D(0x13b)]['push'](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a104v;let d;try{const f=a?.['split'](':');if(!f||f['length']===0x0)throw E(0x15c);let g=this[E(0x13b)],h;for(const i of f){h=g[E(0x12e)](j=>j['match'](i));if(!h)throw E(0x129)+i+E(0x146);g=h[E(0x13b)];}if(h)d=await h[E(0x145)](b,c);else throw E(0x147);}catch(j){Log[E(0x194)](j);}return d;}['findGeneratorByName'](a){const F=a104v,b=a?.[F(0x15e)](':');if(!b||b[F(0x17c)]===0x0)return Log[F(0x194)](F(0x15c)),null;let c=this[F(0x13b)],d;for(const e of b){d=c[F(0x12e)](f=>f['match'](e));if(!d)return Log['error']('Generator\x20'+e+'\x20not\x20found'),null;c=d[F(0x13b)];}return d||null;}async[a104v(0x145)](a,b){const G=a104v,c=a[G(0x18a)]();b[G(0x13e)]=c[0x0];try{const d=await this['fsi']['getGlobalConfig'](),f=d[G(0x173)]===G(0x163)?ColorMode['LIGHT']:ColorMode[G(0x136)];Log[G(0x151)](f);const g=a[0x0]===_prevGen||a[G(0x17c)]===0x0&&this['_generators']['length']>=0x0,h=b[G(0x1a2)]||b['h'];if(g&&h){if(this['_generators'][G(0x17c)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][G(0x18c)]){const i=this[G(0x17a)]();if(!i)throw new MustBeInProjectError();}if(this['options']['mustHaveMeteorInstalled']){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===G(0x149)){if(a[G(0x17c)]<this[G(0x17d)][G(0x1a0)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[G(0x17d)][G(0x19a)]===G(0x149)){if(a['length']>this[G(0x17d)][G(0x19a)]){Log[G(0x194)](G(0x11e));throw new UsageError();}}if(typeof this[G(0x17d)][G(0x12c)]===G(0x149)){if(Object[G(0x132)](b)['length']<this[G(0x17d)]['minOptsLength']){Log[G(0x194)](G(0x16a));throw new UsageError();}}if(typeof this[G(0x17d)][G(0x182)]==='number'){if(Object['keys'](b)[G(0x17c)]>=this['options'][G(0x182)]){Log[G(0x194)](G(0x188));throw new UsageError();}}}this[G(0x17d)][G(0x135)]&&this['validateEngines'](this['options']['requiredEngines']);await this[G(0x157)](a,b,this[G(0x17d)]);if(!b[G(0x13e)]&&!this[G(0x17d)]['noNeedResource']){Log['error'](G(0x168));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x118)](k),process[G(0x192)](0x1);}return await inside(b[G(0x122)],async()=>{const H=G;try{if(!b[H(0x19b)]&&!this['fsi'][H(0x14d)]())throw new MustBeInProjectError();const l=b[H(0x13e)]?.[H(0x13c)](/\\/g,'/')[H(0x15e)]('/');!b[H(0x141)]&&(l?.[H(0x17c)]>0x1?(b[H(0x13e)]=l[H(0x13d)](),c[0x0]=b['resourceName'],b[H(0x141)]=l[H(0x198)](n=>{return paramCase(n);})[H(0x16d)](a104e[H(0x153)])):b[H(0x141)]='');if(this['options']['checkWhere']){if(!b[H(0x14c)]){const o={'type':H(0x142),'name':H(0x162),'message':'Location','choices':[{'name':H(0x12b),'value':'client'},{'name':H(0x18b),'value':H(0x19e)},{'name':H(0x154),'value':H(0x184)}]},{colLocAnswer:p}=await Actions['options'](o);p?b['where']=p:b[H(0x14c)]=H(0x184);}const n=[H(0x184),'client','server'];if(!n['includes'](b[H(0x14c)])){Log[H(0x194)](H(0x197));throw new UsageError();}switch(b[H(0x14c)]){case H(0x184):b['appPathPrefix']=H(0x189);break;case'server':b[H(0x179)]=H(0x19e);break;case H(0x144):b['appPathPrefix']=H(0x144);break;default:b[H(0x179)]='';}}const m=await this[H(0x174)][H(0x13f)](this,c,b);return m&&this[H(0x196)]({'params':{'args':c,'opts':this[H(0x181)][H(0x165)](b)},'success':m?.[H(0x18e)],'message':m?.[H(0x171)],'details':m?.[H(0x11d)]}),m;}catch(q){this[H(0x118)](q);}});}[a104v(0x120)](){const I=a104v;this[I(0x12f)](this[I(0x13b)]);}[a104v(0x118)](a){const J=a104v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x17d)];Log[J(0x137)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x14f)](J(0x183)),this[J(0x12f)](this[J(0x13b)]);else{if(a instanceof MustBeInProjectError)Log['error'](J(0x16f));else{if(a instanceof NoMeteorFoundError)Log['error'](J(0x17b)),Log[J(0x14f)](J(0x11b));else a instanceof NoMeteorAppFoundError&&Log[J(0x194)](J(0x138));}}}[a104v(0x12f)](a){const K=a104v,b=new a104g({});b[K(0x131)]([K(0x16c),K(0x167),K(0x16b)]),a['sort']((c,d)=>{const L=K;return c[L(0x155)][L(0x195)](d[L(0x155)]);})[K(0x125)](c=>{const M=K,d=c['experimental'](),e=d?M(0x17e)+c['shortDesc']():c[M(0x178)]();b[M(0x131)]([c[M(0x155)],c[M(0x158)](),e]);}),Log['bright'](b[K(0x140)]());}}
|
|
@@ -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(0xbb))/0x1+-parseInt(f(0xb4))/0x2*(parseInt(f(0xae))/0x3)+parseInt(f(0xb5))/0x4+-parseInt(f(0xb1))/0x5*(parseInt(f(0xb0))/0x6)+parseInt(f(0xb2))/0x7+parseInt(f(0xb7))/0x8*(parseInt(f(0xb3))/0x9)+parseInt(f(0xb6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xc6096));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a[h(0xb8)]()[h(0xba)](h(0xaf))[h(0xb8)]()[h(0xb9)](a105a)[h(0xba)](h(0xaf));});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';function a105c(){var i=['5405379DtNaOH','12807yZejXy','2zdSHcg','3050600Wxdmwo','31812570mVLklt','696LlEhxD','toString','constructor','search','1220376oOPZxe','apply','4217703yucRhL','(((.+)+)+)+$','270ZQEWnE','155830Iammfr'];a105c=function(){return i;};return a105c();}import'./methods.js';import'./package.js';function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0xad;var f=c[d];return f;},a105d(a,b);}import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0x163))/0x1*(-parseInt(v(0x14b))/0x2)+parseInt(v(0x165))/0x3*(parseInt(v(0x15a))/0x4)+parseInt(v(0x162))/0x5+-parseInt(v(0x161))/0x6+-parseInt(v(0x155))/0x7*(parseInt(v(0x125))/0x8)+-parseInt(v(0x148))/0x9*(-parseInt(v(0x14a))/0xa)+parseInt(v(0x15d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xbbf2a));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x142)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a['toString']()[x(0x120)]('(((.+)+)+)+$')['toString']()[x(0x124)](a106a)[x(0x120)](x(0x128));});function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x11d;let f=c[d];return f;},a106d(a,b);}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 a106c(){const B=['dir','rest','create','pathFromApp','setProjectConfig','length','index.','import\x20{\x20typeDefs\x20as\x20','-rest-api.','resolverList.push(','test','ask','apply','push','API\x20Version?\x20[v1]','api','.app-tests.','maka:rest','270ZKlpEO','startup','416090uKyQcJ','24TwbYAe','\x27;\x0a','injectAtEndOfFile','if\x20\x5c(typeList','TypeDefs);\x0a','injectAtBeginningOfFile','api/typeDefs.js','engines','checkbox','GraphQL','2331JAxgMY','-api\x27;','graphql','checkMeteorPackage','includes','167932HsREku','-api.','exit','6690266lMJklr','error','resolvers.','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','4466442iKgIoi','3888320yZULea','119539IPrFgS','options','66UERpoC','No\x20API\x20boundaries\x20selected','api/methods.js','ddp-rate-limiter','fsi','mdg:validated-method','injectIntoFile','server','apollo','imports','search','api/resolvers.js','/graphql/resolvers','/imports/api/','constructor','14632WEXVUZ','-rpc-methods.','TypeDefs\x20}\x20from\x20\x27','(((.+)+)+)+$','tsx','withMethods','typeList.push(','register-','resourceName','\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','withValue','const','api/tests.js','template','withRest','api/api.js','rewriteDestinationPathForEngine'];a106c=function(){return B;};return a106c();}Generator[a106y(0x138)]({'name':a106y(0x145),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a106y(0x160),'validOpts':[a106y(0x136)],'examples':['maka\x20g:api\x20Todos'],'description':a106y(0x12e)},async function(a,b){const z=a106y;try{const c=this[z(0x169)]['getMakaProjectConfig'](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'}];d['push']({'name':'REST\x20API','value':z(0x133)});c[z(0x152)][z(0x157)]==='apollo'&&d[z(0x143)]({'name':z(0x154),'value':'withGql'});const f={'type':z(0x153),'name':'apiAnswers','message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},g=await Actions[z(0x141)](z(0x144))||'v1',{apiAnswers:h}=await Actions[z(0x164)](f);h[z(0x13b)]===0x0&&(Log[z(0x15e)](z(0x166)),process[z(0x15c)](0x1)),await this[z(0x169)][z(0x12f)](c,async()=>{const A=z,i=b[A(0x12d)],j=paramCase(i),k=camelCase(i),l=b[A(0x136)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x152)][A(0x145)],'graphql':c['engines'][A(0x157)],'test':c['engines'][A(0x140)],'noRename':!![],'withMethods':h[A(0x159)](A(0x12a)),'withRest':h[A(0x159)](A(0x133))};let n='js';c[A(0x152)]['js']===A(0x129)&&(n='ts');m[A(0x133)]&&(this[A(0x169)][A(0x13a)]({'engines':{'api':A(0x137)}}),await this[A(0x169)][A(0x158)]([A(0x147),A(0x168),A(0x16a)],{'shouldInstall':!![]}),await this[A(0x169)][A(0x132)]({'srcPath':A(0x134),'destPath':this[A(0x169)][A(0x139)]({'pathParts':[A(0x11f),A(0x145),g,b['dir'],j,j+'-'+g+A(0x13e)+n]}),'context':m,'config':c}));m[A(0x12a)]&&(await this[A(0x169)][A(0x158)]([A(0x168),'mdg:validated-method'],{'shouldInstall':!![]}),await this['fsi']['template']({'srcPath':A(0x167),'destPath':this[A(0x169)]['pathFromApp']({'pathParts':[A(0x11f),'api',g,b[A(0x136)],j,j+'-'+g+A(0x126)+n]}),'context':m,'config':c}));c[A(0x152)][A(0x140)]!=='none'&&await this[A(0x169)][A(0x132)]({'srcPath':A(0x131),'destPath':this[A(0x169)][A(0x139)]({'pathParts':[A(0x11f),A(0x145),g,b[A(0x136)],j,j+'-'+g+A(0x146)+n]}),'context':m,'config':c});if(c[A(0x152)][A(0x157)]===A(0x11e)){if(h['includes']('withGql')){const p=this['fsi'][A(0x139)]({'pathParts':['imports',A(0x149),A(0x11d),'index.'+c[A(0x152)]['js']]}),q=this[A(0x169)][A(0x135)]({'pathParts':[p],'config':c}),r=this[A(0x169)][A(0x139)]({'pathParts':[A(0x11f),A(0x145),g,b[A(0x136)],j,A(0x157),'typeDefs.'+n]}),s=A(0x123)+g+l+j+'/graphql/typeDefs';await this[A(0x169)]['template']({'srcPath':A(0x151),'destPath':r,'context':m,'config':c}),await this['fsi'][A(0x150)]({'filePath':q,'content':A(0x13d)+k+A(0x127)+s+A(0x14c)}),await this[A(0x169)]['injectIntoFile']({'filePath':q,'content':A(0x12b)+k+A(0x14f),'begin':A(0x130),'end':'if\x20\x5c(typeList'});const t=this[A(0x169)][A(0x139)]({'pathParts':['imports',A(0x145),g,b[A(0x136)],j,'graphql',A(0x15f)+n]}),u=A(0x123)+g+l+j+A(0x122);await this[A(0x169)]['template']({'srcPath':A(0x121),'destPath':t,'context':m,'config':c}),await this[A(0x169)][A(0x150)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+'Resolvers\x20}\x20from\x20\x27'+u+'\x27;'}),await this[A(0x169)][A(0x16b)]({'filePath':q,'content':A(0x13f)+k+'Resolvers);\x0a\x0a','begin':'const','end':A(0x14e)});}}await this[A(0x169)][A(0x132)]({'srcPath':'api/register-api.js','destPath':this[A(0x169)][A(0x139)]({'pathParts':[A(0x11f),A(0x149),A(0x11d),A(0x12c)+j+A(0x15b)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x169)]['pathFromApp']({'pathParts':['imports',A(0x149),A(0x11d),A(0x13c)+c[A(0x152)]['js']]});await this[A(0x169)][A(0x14d)]({'filePath':o,'content':'import\x20\x27./register-'+j+A(0x156)});});}catch(i){console['error'](i),process[z(0x15c)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0x116))/0x1+-parseInt(f(0x118))/0x2+parseInt(f(0x11a))/0x3+parseInt(f(0x11d))/0x4*(-parseInt(f(0x11b))/0x5)+parseInt(f(0x11e))/0x6+parseInt(f(0x117))/0x7*(-parseInt(f(0x122))/0x8)+-parseInt(f(0x119))/0x9*(-parseInt(f(0x115))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xf19f6));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x11f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a['toString']()[h(0x121)](h(0x120))[h(0x123)]()[h(0x11c)](a107a)[h(0x121)]('(((.+)+)+)+$');});function a107c(){var i=['3149262fxofsu','apply','(((.+)+)+)+$','search','24XelIhL','toString','20742410MuDWUs','1162819gYHUEA','2639301gGFJNU','1629178HwLfFq','9IAahwi','2811654WNqdUQ','154715RvQTjS','constructor','228DBKorV'];a107c=function(){return i;};return a107c();}a107a();import'./aws.js';function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x115;var f=c[d];return f;},a107d(a,b);}import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d
|
|
1
|
+
const a108i=a108d;function a108c(){const j=['Generate\x20AWS\x20templates','search','10420ozheyf','maka\x20g:aws','apply','18LcLZSR','1563YbUoYF','333567aGAlgG','1260tfApRV','4gzHIIv','12118975NWBLcV','create','2030570vcjGUn','aws','669467hleraC','30ctfILl','toString','(((.+)+)+)+$','1792107RSZsOL','constructor','182fUdPrM','513584ohhEDM'];a108c=function(){return j;};return a108c();}(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x156))/0x1*(-parseInt(f(0x151))/0x2)+-parseInt(f(0x14e))/0x3*(-parseInt(f(0x14a))/0x4)+parseInt(f(0x154))/0x5*(-parseInt(f(0x14d))/0x6)+parseInt(f(0x15c))/0x7*(parseInt(f(0x15d))/0x8)+parseInt(f(0x15a))/0x9*(-parseInt(f(0x157))/0xa)+parseInt(f(0x152))/0xb+-parseInt(f(0x150))/0xc*(parseInt(f(0x14f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xe9ab2));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a['toString']()[h(0x15f)]('(((.+)+)+)+$')[h(0x158)]()[h(0x15b)](a108a)[h(0x15f)](h(0x159));});a108a();import{Generator}from'../../generator.js';const AWSGen=Generator[a108i(0x153)]({'name':a108i(0x155),'usage':'maka\x20{generate,\x20g}:{aws}:<name>','shortDesc':a108i(0x15e),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a108i(0x14b)],'experimental':!![]},async function(){});function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x14a;let f=c[d];return f;},a108d(a,b);}export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0xef))/0x1+-parseInt(f(0xe5))/0x2+-parseInt(f(0xe6))/0x3+parseInt(f(0xe8))/0x4+-parseInt(f(0xea))/0x5+parseInt(f(0xe7))/0x6*(-parseInt(f(0xe3))/0x7)+parseInt(f(0xed))/0x8*(parseInt(f(0xe4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xc64f2));function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0xe3;var f=c[d];return f;},a109d(a,b);}var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0xec)]()['search']('(((.+)+)+)+$')[h(0xec)]()['constructor'](a109a)[h(0xe9)](h(0xeb));});a109a();function a109c(){var i=['3007366sBmKGv','1701537ANEIcO','30AplxdE','642392UiYZdR','search','1433460ezxyZU','(((.+)+)+)+$','toString','26993696KmQuqh','apply','359617oAYYko','7511HDhIKd','9rhVUmB'];a109c=function(){return i;};return a109c();}import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0x135))/0x1+-parseInt(f(0x12f))/0x2*(parseInt(f(0x131))/0x3)+parseInt(f(0x130))/0x4+parseInt(f(0x13c))/0x5+-parseInt(f(0x132))/0x6+parseInt(f(0x133))/0x7+parseInt(f(0x138))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x8d1b2));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x139)]()[h(0x136)](h(0x134))[h(0x139)]()[h(0x13b)](a110a)[h(0x136)]('(((.+)+)+)+$');});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x12e;let f=c[d];return f;},a110d(a,b);}a110a();import{Generator}from'../../../generator.js';function a110c(){const j=['7912905KOlXOj','(((.+)+)+)+$','991520NEGGQI','search','maka\x20g:aws:cf','1694376STOyhp','toString','create','constructor','831015LFFqKB','cloudformation','apply','2yPPhMP','1128460bSHuJD','3371514QpaUQh','6481452OcIotm'];a110c=function(){return j;};return a110c();}import a110e from'../aws.js';const CFGen=Generator[a110i(0x13a)]({'name':a110i(0x13d),'aliases':['cf'],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','noNeedResource':!![],'shortDesc':'AWS\x20Cloudformation\x20templates','validOpts':[''],'isPro':![],'examples':[a110i(0x137)],'experimental':!![]},async function(){},async function(){},a110e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a111c(){const s=['cec2i','name','462346CegdMQ','replaceAll','notice','constructor','exit','2134884RKTZuH','ami-055744c75048d8296','(((.+)+)+)+$','ec2describeKeys','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','appName','1145070hxReHz','12rqWGZl','maka\x20g:aws:cf:cec2i','2201598BMUyIK','8sCyWGZ','cloudformation/create-ec2-instance.template','findProjectDirectory','3669760RsiRDw','70308PFgGxX','search','apply','withValue','template','getMakaProjectConfig','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','aws','ask','join','fsi','No\x20instance\x20has\x20been\x20created.','error','Please\x20choose\x20a\x20key\x20to\x20use:\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','1010366IdRITd','success','toString','3uGTvle','chooseSecurityGroup','create-ec2-instance.template'];a111c=function(){return s;};return a111c();}const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=parseInt(m(0x1bc))/0x1+parseInt(m(0x1d3))/0x2+-parseInt(m(0x1ce))/0x3*(-parseInt(m(0x1d8))/0x4)+parseInt(m(0x1b4))/0x5*(-parseInt(m(0x1b5))/0x6)+-parseInt(m(0x1cb))/0x7+parseInt(m(0x1b8))/0x8*(-parseInt(m(0x1b7))/0x9)+parseInt(m(0x1bb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x56b76));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a111d;if(c){const e=c[n(0x1be)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const o=a111d;return a111a[o(0x1cd)]()['search'](o(0x1b0))['toString']()[o(0x1d6)](a111a)[o(0x1bd)](o(0x1b0));});a111a();function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1af;let f=c[d];return f;},a111d(a,b);}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';import{Log}from'../../../tools/log/log.class.js';import a111f from'./cloudformation.js';const CEC2Gen=Generator['create']({'name':'create-ec2-instance','aliases':[a111p(0x1d1)],'usage':a111p(0x1b2),'noNeedResource':!![],'shortDesc':a111p(0x1c2),'validOpts':[''],'isPro':![],'examples':[a111p(0x1b6)],'experimental':!![]},async function(){const q=a111p,a=new AWS();try{const b=this[q(0x1c6)][q(0x1c1)](),c=this[q(0x1c6)][q(0x1ba)](),d=a111e[q(0x1c5)](c,'cloudformation'),f=await a[q(0x1b1)](),g=await Actions[q(0x1c4)](q(0x1c9))||'-1';if(parseInt(g)<0x0){Log['error'](q(0x1ca)),Log[q(0x1d5)](q(0x1c7));return;}let h='';if(f)for(const k of f){if(parseInt(g)===k['id']){h=k[q(0x1d2)],Log[q(0x1cc)]('Setting\x20the\x20key-pair\x20to:\x20'+h);break;}}const i=await a[q(0x1cf)](),j={'amiId':q(0x1af),'keyPair':h,'sgId':i,'instanceName':headerCase(b[q(0x1b3)])[q(0x1d4)]('-','\x20')};await this[q(0x1c6)][q(0x1bf)](b,async()=>{const r=q;await this['fsi'][r(0x1c0)]({'srcPath':r(0x1b9),'destPath':a111e[r(0x1c5)](d,r(0x1d0)),'framework':r(0x1c3),'context':j,'config':b,'ignore':![]});});}catch(l){Log[q(0x1c8)](l),process[q(0x1d7)](0x1);}},async function(){},a111f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112l=a112d;(function(a,b){const j=a112d,c=a();while(!![]){try{const d=parseInt(j(0x204))/0x1*(-parseInt(j(0x1f8))/0x2)+parseInt(j(0x1f5))/0x3*(-parseInt(j(0x1e8))/0x4)+-parseInt(j(0x20c))/0x5*(-parseInt(j(0x1f9))/0x6)+-parseInt(j(0x208))/0x7+-parseInt(j(0x1fa))/0x8*(-parseInt(j(0x214))/0x9)+-parseInt(j(0x1f1))/0xa*(-parseInt(j(0x1ef))/0xb)+parseInt(j(0x1e9))/0xc*(parseInt(j(0x203))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xaadeb));function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a112d(a,b);}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['toString']()[k(0x202)](k(0x20f))['toString']()['constructor'](a112a)[k(0x202)]('(((.+)+)+)+$');});a112a();function a112c(){const o=['693549nbWeri','8annrig','12fnmiKJ','resourceName','checkMeteorPackage','engines','withValue','getMakaProjectConfig','11xlsNdT','collections','11561670IvfhQU','create','pathFromApp','col','920763FKdytv','fsi','mongo','2239508nmKFnN','60UPFwjc','32ewLZaH','injectAtEndOfFile','collection','collection/tests.js','maka\x20g:collection\x20todos','imports','tsx','none','search','10050170rdxsUq','1cbbPQm','.app-tests.','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','2658614kGBudq','startup','appPathPrefix','error','287890xfZlzs','where','dir','(((.+)+)+)+$','test','import\x20\x27./collections','\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','template'];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(0x1f2)]({'name':a112l(0x1fc),'aliases':[a112l(0x1f4)],'usage':a112l(0x207),'checkWhere':!![],'shortDesc':a112l(0x206),'validOpts':[a112l(0x20e),a112l(0x20d)],'description':a112l(0x212),'examples':[a112l(0x1fe)]},async function(a,b){const m=a112l;try{const c=this[m(0x1f6)][m(0x1ee)]();await this[m(0x1f6)][m(0x1ed)](c,async()=>{const n=m,d=paramCase(b[n(0x1ea)]),f={'name':pascalCase(b[n(0x1ea)]),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b[n(0x20d)],'test':c['engines'][n(0x210)],'noRename':!![]};let g='js';c[n(0x1ec)]['js']===n(0x200)&&(g='ts');await this['fsi'][n(0x1eb)]([n(0x1f7)],{'shouldInstall':!![]}),await this[n(0x1f6)][n(0x213)]({'srcPath':'collection/collection.js','destPath':this[n(0x1f6)][n(0x1f3)]({'pathParts':['imports','startup',b['appPathPrefix'],n(0x1f0),b[n(0x20e)],d+'.'+g]}),'context':f,'config':c});c[n(0x1ec)][n(0x210)]!==n(0x201)&&await this[n(0x1f6)]['template']({'srcPath':n(0x1fd),'destPath':this[n(0x1f6)]['pathFromApp']({'pathParts':[n(0x1ff),n(0x209),b[n(0x20a)],n(0x1f0),b[n(0x20e)],d+n(0x205)+g]}),'context':f,'config':c});const h=b[n(0x20e)]?'/'+b['dir']+'/':'/',i=this[n(0x1f6)][n(0x1f3)]({'pathParts':[n(0x1ff),'startup',b[n(0x20a)],'index.'+c[n(0x1ec)]['js']]});await this[n(0x1f6)][n(0x1fb)]({'filePath':i,'content':n(0x211)+h+d+'\x27;'});});}catch(d){Log[m(0x20b)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=parseInt(k(0xd5))/0x1+-parseInt(k(0xce))/0x2+parseInt(k(0xd1))/0x3*(-parseInt(k(0xd4))/0x4)+parseInt(k(0xe2))/0x5+-parseInt(k(0xb0))/0x6+-parseInt(k(0xdf))/0x7+-parseInt(k(0xe0))/0x8*(-parseInt(k(0xbb))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x93b93));function a113c(){const q=['8idnxYi','relative','5854275iCpPHv','/imports/ui/components','className','withValue','css','none','root','5659728rrqtIA','/imports/ui/','true','ramda','error','react','.js','(((.+)+)+)+$','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','dir','maka\x20g:comp\x20todos/todos-item','11774853LReovq','.css','search','injectTemplateModule','client','import\x20\x27./','test','theme','template/template.css','apply','withTranslations','engines','component','features','component/component.js','ssr','comp','setTemplate','graphql','856920yUgGCL','checkNpmPackage','string','63oFhKbp','fsi','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','268pZRkcs','361744vIFCwQ','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pathFromApp','test/test.js','resourceName','injectAtBeginningOfFile','template','warn','baseDir','getMakaProjectConfig','6038802AWEjuM'];a113c=function(){return q;};return a113c();}const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a['toString']()[m(0xbd)](m(0xb7))['toString']()['constructor'](a113a)['search'](m(0xb7));});a113a();import a113e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xb0;let f=c[d];return f;},a113d(a,b);}const aliases=[a113n(0xcb)];Generator['create']({'name':a113n(0xc7),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a113n(0xb8),'validOpts':[{'name':'baseDir'}],'examples':[a113n(0xba)]},async function(a,b){const o=a113n;try{const c=this[o(0xd2)]['findAppDirectory'](),d=b[o(0xdd)]?o(0xb1)+b['baseDir']:o(0xe3),f=this[o(0xd2)][o(0xd7)]({'pathParts':[d,b[o(0xb9)],paramCase(b[o(0xd9)]),paramCase(b[o(0xd9)])]}),g=await this['fsi'][o(0xde)]();await this[o(0xd2)][o(0xe5)](g,async()=>{const p=o;typeof g[p(0xdb)][p(0xc1)]==='string'&&(g['template']['test']=g[p(0xdb)][p(0xc1)]===p(0xb2)?!![]:![],this['fsi'][p(0xcc)](p(0xc1),g[p(0xdb)][p(0xc1)]));typeof g[p(0xdb)][p(0xe6)]===p(0xd0)&&(g['template']['css']=g['template'][p(0xe6)]===p(0xb2)?!![]:![],this[p(0xd2)][p(0xcc)]('css',g[p(0xdb)][p(0xe6)]));typeof g['template']['js']===p(0xd0)&&(g['template']['js']=g['template']['js']==='true'?!![]:![],this[p(0xd2)][p(0xcc)]('js',g[p(0xdb)]['js']));!g['features']&&(g[p(0xc8)]={});!b[p(0xe8)]&&!this[p(0xd2)]['checkNpmPackage']('ramda')&&(Log[p(0xdc)](p(0xd6)),await this['fsi']['installNpmPackage'](p(0xb3),{'cwd':c}));if(!b[p(0xe8)]&&!this[p(0xd2)][p(0xcf)]('react')){Log[p(0xb4)](p(0xd3));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a113e[p(0xe1)](this['fsi']['pathFromProject']({}),f),'cssCaseName':paramCase(b[p(0xd9)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0xd9)]),'fileName':paramCase(b['resourceName']),'graphql':g[p(0xc6)][p(0xcd)],'features':g[p(0xc8)],'client':g[p(0xc6)][p(0xbf)],'api':g['engines']['api'],'ssr':g[p(0xc6)][p(0xca)],'test':g[p(0xc6)][p(0xc1)],'theme':g[p(0xc6)][p(0xc2)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][p(0xc5)]};await this[p(0xd2)]['template']({'srcPath':p(0xc9),'destPath':f+p(0xb6),'context':h,'framework':p(0xb5),'config':g});g[p(0xc6)][p(0xc1)]!==p(0xe7)&&await this[p(0xd2)][p(0xdb)]({'srcPath':p(0xd8),'destPath':f+'.tests.js','context':h,'framework':p(0xb5),'config':g});g['template'][p(0xe6)]&&(await this[p(0xd2)][p(0xdb)]({'srcPath':p(0xc3),'destPath':f+p(0xbc),'context':Object['assign']({},h,{'className':paramCase(b[p(0xd9)])}),'config':g}),await this[p(0xd2)][p(0xda)]({'filePath':f+'.'+g[p(0xc6)]['js'],'content':p(0xc0)+h['cssCaseName']+'.'+g['engines'][p(0xe6)]+'\x27;'}));const i=b[p(0xb9)]?'/'+b['dir']+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];await this[p(0xd2)][p(0xbe)](h[p(0xe4)],g,j);});}catch(h){Log[o(0xb4)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114l=a114d;function a114c(){const o=['withValue','create','23653pEJOCA','ubuntu','5949NKGdGy','31090bKVmbm','590AZJynk','settings.json','2JsRlHp','production','pathFromProject','config/process.env','error','fsi','appName','pm2.config.js','636KIAFyX','constructor','apply','prod','resourceName','template','config/pm2.config.js','development','3478572tJsCGC','config/settings.json','722947RaitZZ','(((.+)+)+)+$','process.env','getMakaProjectConfig','Generate\x20configuration\x20settings.','config','2835798noMDcn','local','search','8584024ZHILpk','maka\x20g:config\x20production','toString'];a114c=function(){return o;};return a114c();}(function(a,b){const i=a114d,c=a();while(!![]){try{const d=parseInt(i(0x8c))/0x1*(-parseInt(i(0x7a))/0x2)+-parseInt(i(0x6c))/0x3+parseInt(i(0x8a))/0x4+parseInt(i(0x77))/0x5+parseInt(i(0x82))/0x6*(parseInt(i(0x74))/0x7)+parseInt(i(0x6f))/0x8+-parseInt(i(0x76))/0x9*(parseInt(i(0x78))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x92712));function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x69;let f=c[d];return f;},a114d(a,b);}const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a114d;if(c){const e=c[j(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const k=a114d;return a114a[k(0x71)]()['search']('(((.+)+)+)+$')[k(0x71)]()[k(0x83)](a114a)[k(0x6e)](k(0x8d));});a114a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a114l(0x73)]({'name':a114l(0x6b),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a114l(0x6a),'validOpts':['isDocker'],'examples':[a114l(0x70)]},async function(a,b){const m=a114l;try{const c=this['fsi'][m(0x69)]();await this['fsi'][m(0x72)](c,async()=>{const n=m,d={'app':c[n(0x80)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[n(0x86)]),'fileName':paramCase(b[n(0x86)]),'camelCase':camelCase(b[n(0x86)]),'userName':n(0x75),'isDocker':b['isDocker']};let e=b['resourceName'];if(e==='dev')e=n(0x89);else e===n(0x85)&&(e=n(0x7b));const f=this[n(0x7f)][n(0x7c)]({'pathParts':[n(0x6b),e,n(0x79)]});await this[n(0x7f)]['template']({'srcPath':n(0x8b),'destPath':f,'context':d,'config':c});if(e!==n(0x6d)){const g=this['fsi'][n(0x7c)]({'pathParts':['config',e,n(0x81)]});await this[n(0x7f)][n(0x87)]({'srcPath':n(0x88),'destPath':g,'context':{'app':c[n(0x80)],'isDocker':!![]},'config':c});}if(e===n(0x6d)){const h=this['fsi'][n(0x7c)]({'pathParts':[n(0x6b),e,n(0x8e)]});await this[n(0x7f)][n(0x87)]({'srcPath':n(0x7d),'destPath':h,'context':d,'config':c});}});}catch(d){Log[m(0x7e)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x17e;let f=c[d];return f;},a115d(a,b);}const a115l=a115d;function a115c(){const o=['startup','-dbc.','3491572BZZHVD','dbc/conn.js','1412956xhivfC','fsi','constructor','15150240xghrjO','dbc/register-dbc.js','4591953ZumkbH','1427626oNRonH','pgsql','5VzlrGu','withValue','index.','(((.+)+)+)+$','dir','register-','5757117zrUCeY','2261jaZdvv','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','template','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','maka\x20g:dbc\x20azure\x20--type=mssql','imports','294tbmwGh','dbc','maka\x20g:dbc\x20geoserver\x20--type=pgsql','toString','error','tsx','engines','maka\x20g:dbc\x20todos\x20--type=sqlite','resourceName','getMakaProjectConfig','checkNpmPackage','type','pathFromApp','apply','mssql','server','config.','search','70IMthQl'];a115c=function(){return o;};return a115c();}(function(a,b){const i=a115d,c=a();while(!![]){try{const d=parseInt(i(0x1a9))/0x1+parseInt(i(0x183))/0x2+-parseInt(i(0x18b))/0x3+parseInt(i(0x1a7))/0x4*(-parseInt(i(0x185))/0x5)+parseInt(i(0x192))/0x6*(-parseInt(i(0x18c))/0x7)+-parseInt(i(0x180))/0x8+-parseInt(i(0x182))/0x9*(-parseInt(i(0x1a4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xf358d));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a115d;if(c){const e=c[j(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const k=a115d;return a115a[k(0x195)]()[k(0x1a3)](k(0x188))[k(0x195)]()[k(0x17f)](a115a)[k(0x1a3)](k(0x188));});a115a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'dbc','usage':a115l(0x18f),'shortDesc':a115l(0x18d),'validOpts':[a115l(0x189)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a115l(0x19d),'values':[a115l(0x184),'mssql','sqlite']}],'examples':[a115l(0x194),a115l(0x190),a115l(0x199)]},async function(a,b){const m=a115l;try{const c=await this[m(0x17e)][m(0x19b)](),d=paramCase(b['resourceName']),f={'name':pascalCase(b[m(0x19a)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x19a)]),'type':b[m(0x19d)],'engine':c['engines']['js'],'noRename':!![]};await this[m(0x17e)][m(0x186)](c,async()=>{const n=m;let g='js';c[n(0x198)]['js']===n(0x197)&&(g='ts');b['type']===n(0x184)&&await this[n(0x17e)]['checkNpmPackage']('pg',{'shouldInstall':!![]});b[n(0x19d)]===n(0x1a0)&&await this['fsi']['checkNpmPackage']('mssql',{'shouldInstall':!![]});b[n(0x19d)]==='sqlite'&&await this[n(0x17e)][n(0x19c)]('better-sqlite3',{'shouldInstall':!![]});await this[n(0x17e)][n(0x18e)]({'srcPath':'dbc/config.js','destPath':this[n(0x17e)][n(0x19e)]({'pathParts':[n(0x191),n(0x1a5),n(0x1a1),n(0x193),b[n(0x189)],d,n(0x1a2)+g]}),'context':f,'config':c}),await this['fsi'][n(0x18e)]({'srcPath':n(0x1a8),'destPath':this[n(0x17e)]['pathFromApp']({'pathParts':[n(0x191),n(0x1a5),'server',n(0x193),b[n(0x189)],d,'conn.'+g]}),'context':f,'config':c}),await this[n(0x17e)][n(0x18e)]({'srcPath':n(0x181),'destPath':this['fsi']['pathFromApp']({'pathParts':[n(0x191),'startup',n(0x1a1),n(0x18a)+d+n(0x1a6)+g]}),'context':f,'config':c});const h=this[n(0x17e)][n(0x19e)]({'pathParts':[n(0x191),n(0x1a5),n(0x1a1),n(0x187)+c['engines']['js']]});await this[n(0x17e)]['injectAtEndOfFile']({'filePath':h,'content':'import\x20\x27./register-'+d+'-dbc\x27;'});});}catch(g){Log[m(0x196)](g);}});
|