@maka/maka-cli 4.12.21 → 4.12.22
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/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/templates/service/docker/Dockerfile +1 -3
- 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
|
|
1
|
+
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x1ee))/0x1+-parseInt(k(0x1f5))/0x2+-parseInt(k(0x1ec))/0x3*(-parseInt(k(0x1ef))/0x4)+parseInt(k(0x1e5))/0x5+-parseInt(k(0x1fa))/0x6*(-parseInt(k(0x1f9))/0x7)+-parseInt(k(0x1fc))/0x8+parseInt(k(0x1fd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xe18c3));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a['toString']()[m(0x1fe)](m(0x1ff))[m(0x1f1)]()['constructor'](a97a)[m(0x1fe)]('(((.+)+)+)+$');});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';function a97c(){const p=['3000752KhjrEb','6477642pQRdle','search','(((.+)+)+)+$','join','create','env','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','4979175UlvRay','fsi','ssh.json','apply','maka\x20ssh\x20--env\x20dev','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','getEnvFromShorthand','66oPBMaL','verbose','608574HxgzZJ','32444GwOgqs','maka\x20ssh\x20--env\x20prod','toString','error','ssh','sshSync','3625014xJWViR','assign','maka\x20ssh\x20--env\x20staging','readFileSync','665PiUpyp','38454MHDalW','getAppConfigPath'];a97c=function(){return p;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a97d(a,b);}Command[a97n(0x1e2)]({'name':a97n(0x1f3),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a97n(0x1e3)],'validOpts':[a97n(0x1e3),a97n(0x1ed)],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':[a97n(0x1e9),a97n(0x1f7),a97n(0x1f0),a97n(0x1e4),a97n(0x1ea),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22']},async function(a,b){const o=a97n;try{const c=this[o(0x1e6)][o(0x1eb)](b['env']),d=this['fsi'][o(0x1fb)](c);let f='';a['length']>0x0&&(f=a[0x0]);const g=a97f[o(0x1e1)](c,o(0x1e7)),h=a97e[o(0x1f8)](g)[o(0x1f1)](),i=JSON['parse'](h);Object[o(0x1f6)](i,{'env':d}),SSH[o(0x1f4)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b['verbose']});}catch(j){Log[o(0x1f2)](j),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98z=a98d;function a98c(){const B=['existsSync','Please\x20provide\x20a\x20command.','1825430MmRuuN','genCSR','getEnvFromShorthand','maka\x20ssl\x20--env\x20dev\x20generate-csr','20183HVfYaL','Using\x20saved\x20letsencrypt\x20config','sudo\x20snap\x20install\x20--classic\x20certbot','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','[?]\x20Domains\x20to\x20register:\x20','getAppConfigPath','stringify','apply','64zjpRIn','mkKeysDir','generate-ssc','193140PthGyX','domains','env','assign','9LEggoM','fsi','error','ssl','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','letsencrypt','1665294ZjpVNh','8344452haftZd','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','(((.+)+)+)+$','withSpinner','readFileSync','Checking\x20remote\x20host\x20availability','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','New\x20CSR\x20written\x20to\x20','242438khZAPp','ping','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','parse','email','search','join','appName','maka\x20ssl\x20[command]','Remote\x20host\x20connection\x20successful','ssh','Verifying\x20Letsencrypt\x20configuration','exit','Email\x20to\x20use\x20for\x20auto-updates:\x20','notice','.crt','domainNames','success','11qpFeYI','uname\x20-a','5exWeFN','start','1589406ihXMBE','letsencrypt.json','ask','.key','writeFileSync','64fngbCG','constructor','toString','\x20--email\x20'];a98c=function(){return B;};return a98c();}(function(a,b){const w=a98d,c=a();while(!![]){try{const d=parseInt(w(0x18a))/0x1*(parseInt(w(0x180))/0x2)+-parseInt(w(0x17b))/0x3+-parseInt(w(0x195))/0x4+parseInt(w(0x179))/0x5*(-parseInt(w(0x15c))/0x6)+parseInt(w(0x165))/0x7*(-parseInt(w(0x192))/0x8)+-parseInt(w(0x156))/0x9*(-parseInt(w(0x186))/0xa)+parseInt(w(0x177))/0xb*(parseInt(w(0x15d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x5f796));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a98d;if(c){const e=c[x(0x191)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const y=a98d;return a98a[y(0x182)]()[y(0x16a)]('(((.+)+)+)+$')[y(0x182)]()[y(0x181)](a98a)['search'](y(0x15f));});a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x153;let f=c[d];return f;},a98d(a,b);}import a98e from'fs';import a98f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':a98z(0x159),'usage':a98z(0x16d),'validOpts':[a98z(0x153),'email'],'requiredOpts':[a98z(0x154)],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98z(0x189),a98z(0x15a),a98z(0x18d)]},async function(a,b){const A=a98z,c=this[A(0x157)]['getMakaProjectConfig'](),d=this[A(0x157)][A(0x188)](b['env']),f=this[A(0x157)][A(0x18f)](d),g=this[A(0x157)][A(0x193)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h==='generate-csr')SSL[A(0x187)]({'keyName':c[A(0x16c)]+A(0x17e),'csrName':c[A(0x16c)]+'.csr','cwd':g});else{if(h===A(0x194)){if(!a98e[A(0x184)](a98f[A(0x16b)](g,c['appName']+A(0x17e))))throw A(0x167)+a98f[A(0x16b)](g,c[A(0x16c)]+A(0x17e));if(!a98e[A(0x184)](a98f[A(0x16b)](g,c[A(0x16c)]+'.csr')))throw A(0x15e)+a98f[A(0x16b)](g,c[A(0x16c)]+'.csr');SSL['genSSC']({'keyName':c[A(0x16c)]+A(0x17e),'crtName':c[A(0x16c)]+A(0x174),'cwd':g}),Log[A(0x173)](A(0x164)+g);}else{if(h===A(0x15b)){let i=b[A(0x153)],j=b[A(0x169)];try{const q=a98e['readFileSync'](a98f[A(0x16b)](f,A(0x17c)))[A(0x182)](),r=JSON[A(0x168)](q);i=b['domains']?b[A(0x153)]:r[A(0x175)],j=b[A(0x169)]?b[A(0x169)]:r['emailUpdate'],(!b['email']||!b['domains'])&&Log[A(0x173)](A(0x18b));}catch(s){}const k=JSON[A(0x168)](a98e[A(0x161)](f+'/ssh.json')[A(0x182)]());Object[A(0x155)](k,{'env':f}),Log['notice'](A(0x162));try{const t=SSH[A(0x166)](A(0x178),k);if(!t)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(t)Log[A(0x176)](A(0x16e));}catch(u){Log['error'](u);return;}const l=Log[A(0x160)]();l[A(0x17a)](A(0x170)),SSH[A(0x16f)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...k}),SSH['ssh'](A(0x18c),{...k}),SSH[A(0x16f)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...k}),l[A(0x176)]();const m=i?i:await Actions[A(0x17d)](A(0x18e)),n=j?j:await Actions['ask'](A(0x172));SSH[A(0x16f)](A(0x163)+m+A(0x183)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x190)](o,null,0x2);a98e[A(0x17f)](a98f[A(0x16b)](f,A(0x17c)),p);}else throw A(0x185);}}}catch(v){console[A(0x158)](v),process[A(0x171)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99r=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0xec))/0x1*(-parseInt(n(0xe8))/0x2)+-parseInt(n(0xe1))/0x3*(-parseInt(n(0xf2))/0x4)+-parseInt(n(0x115))/0x5+-parseInt(n(0x104))/0x6+parseInt(n(0xf6))/0x7*(-parseInt(n(0xed))/0x8)+parseInt(n(0xdc))/0x9+parseInt(n(0x102))/0xa*(parseInt(n(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x8494c));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xdb;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0xf8)]()[p(0xfa)](p(0xe4))['toString']()[p(0x106)](a99a)[p(0xfa)]('(((.+)+)+)+$');});function a99c(){const u=['.maka','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','--full-app','create','invokeMeteorCommand','filter','none','test-packages','Meteor\x20Settings:\x20','packages','3974750yKicNB','engines','3146310ajfZJz','sanjo:jasmine','concat','warn','isFile','607839rbqrsy','findProjectDirectory','fsi','(((.+)+)+)+$','--settings','apply','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','2wvtJxR','getAppConfigPath','error','join','189571dHbWGZ','2240392SpJcRx','driver','--driver-package','port','--env','8SSCIYo','unit','env','config','14urTQpV','66kbZNyZ','toString','readFileSync','search','openSync','testAppPath','splice','once','--packages','jasmine','test','2927490xUcirw','settings.json','2541834RZyJrs','notice','constructor','argv','Node\x20Env\x20Config:\x20','mocha','getEnvFromShorthand'];a99c=function(){return u;};return a99c();}a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const q=a99d;a99e[q(0xfb)](a,'r'),a99g[q(0xf5)]({'path':a});};Command[a99r(0x10e)]({'name':a99r(0x101),'mustBeInMakaProject':!![],'validOpts':['once',a99r(0x114),a99r(0xee),'driverPackage',a99r(0xf3),a99r(0xf4),'rawLogs',a99r(0xf0),'inspect',a99r(0xfc)],'usage':'maka\x20test','aliases':['t','tests'],'shortDesc':a99r(0x10c),'examples':[]},function(a,b){const s=a99r;try{const c=b[s(0xf4)]?this['fsi'][s(0x10a)](b['env']):'development',d=this[s(0xe3)][s(0xe9)](c);(!b['unit']||!!b[s(0xfe)])&&(a=a[s(0xde)]([s(0x10d)]));b['unit']&&delete b[s(0xf3)];let f=b['driver-package']||b[s(0xee)]||s(0x111);if(f===s(0x111)){const k=JSON['parse'](a99e[s(0xf9)](a99f[s(0xeb)](this['fsi'][s(0xe2)](),s(0x10b),'config.json'),'utf8'));if(k[s(0xdb)][s(0x101)]===s(0x100))f=s(0xdd);else k[s(0xdb)]['test']===s(0x109)&&(f='meteortesting:mocha');}if(f===s(0x111))throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b['driver-package']||!b[s(0xee)])&&(a=a['concat']([s(0xef),f]));const g=a99f[s(0xeb)](d,s(0x103));this[s(0xe3)][s(0xe0)](g)?(Log['notice'](s(0x113)+g),a=a[s(0xde)]([s(0xe5),g])):Log['warn'](s(0xe7)+g);const h=a99f[s(0xeb)](d,'process.env');this[s(0xe3)][s(0xe0)](d)?(Log[s(0x105)](s(0x108)+h),syncSource(h)):Log[s(0xdf)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+h);const i=process[s(0x107)]['slice'](0x2)[s(0x110)](l=>l!==s(0xf1))[s(0x110)](l=>l!==s(0x101))[s(0x110)](l=>l!==a[0x0]);i['forEach']((l,m)=>{const t=s;(l===t(0xf1)||l==='--driver')&&i[t(0xfd)](m,0x2),l===t(0xff)&&i['splice'](m,0x1);});const j=b[s(0x114)]?s(0x112):s(0x101);this[s(0xe3)][s(0x10f)](j,a[s(0xde)](i));}catch(l){console[s(0xea)](l),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a100i=a100d;
|
|
1
|
+
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=parseInt(f(0xb8))/0x1+parseInt(f(0xbd))/0x2*(parseInt(f(0xbb))/0x3)+parseInt(f(0xc0))/0x4+parseInt(f(0xc7))/0x5*(parseInt(f(0xb9))/0x6)+parseInt(f(0xb7))/0x7+parseInt(f(0xc1))/0x8*(-parseInt(f(0xbf))/0x9)+-parseInt(f(0xbc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc19d8));function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0xb7;var f=c[d];return f;},a100d(a,b);}var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a['toString']()['search'](h(0xc2))[h(0xba)]()[h(0xbe)](a100a)[h(0xc6)](h(0xc2));});a100a();function a100c(){var k=['4821072mFNSGp','88HZClPe','(((.+)+)+)+$','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action','apply','undo','search','2054630XaYxsu','7989359cAvGTg','230041Vjcmid','12hEwjry','toString','28473axjUss','27642000QIjiiM','178ChYUxr','constructor','561231lDeSlw'];a100c=function(){return k;};return a100c();}import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';Command['create']({'name':a100i(0xc5),'aliases':['u'],'validOpts':[],'shortDesc':a100i(0xc3)},async function(){var j=a100i;a100e[j(0xc5)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101m=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=-parseInt(k(0x1d9))/0x1+parseInt(k(0x1e7))/0x2*(parseInt(k(0x1e0))/0x3)+-parseInt(k(0x1e5))/0x4*(-parseInt(k(0x1dc))/0x5)+-parseInt(k(0x1d3))/0x6*(parseInt(k(0x1ee))/0x7)+parseInt(k(0x1ca))/0x8*(parseInt(k(0x1cd))/0x9)+-parseInt(k(0x1d2))/0xa*(-parseInt(k(0x1f0))/0xb)+parseInt(k(0x1e8))/0xc*(-parseInt(k(0x1ed))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xbe262));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 l=a101d;return a101a[l(0x1d0)]()[l(0x1e3)]('(((.+)+)+)+$')['toString']()[l(0x1da)](a101a)[l(0x1e3)](l(0x1e6));});a101a();import{execSync}from'child_process';import a101e from'semver';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a101d(a,b);}function a101c(){const o=['\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','maka\x20version','node\x20-v','getProjectMeteorVersion','1436226ftfLGL','constructor','fsi','3181100rLKZNW','N/A','valid','warn','6zWLbsT','majestic',')\x20to\x20at\x20least\x20meteor\x27s\x20(','search','create','4sfrhmD','(((.+)+)+)+$','587008YLvbbq','1960296tQbUBV','getMeteorExePath','error','Project\x27s\x20Meteor\x20Version\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','13TJQQxW','7742iysFlc','----------------------Project----------------------------','4086093GSPdHA','Project\x27s\x20Meteor\x20Node\x20Version\x20','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','System\x27s\x20Meteor\x20Version\x20','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','Maka\x20','\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','replace','3626648XLSjPi','verbose','4.12.22','18TrZOME','compareMakaToLatest','version','toString','System\x27s\x20Node\x20Version\x20','20LOoVsW','2682QZthYx','bright'];a101c=function(){return o;};return a101c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a101m(0x1cc)};Command[a101m(0x1e4)]({'name':'version','aliases':['v'],'usage':'maka\x20version','maxArgLength':0x1,'validOpts':[a101m(0x1cb)],'shortDesc':a101m(0x1c6),'examples':['maka\x20v',a101m(0x1d6),'maka\x20version\x20--verbose'],'description':a101m(0x1c8)},async function(a,b){const n=a101m;try{const c=this['fsi'][n(0x1e9)]();Log[n(0x1e1)](n(0x1c7)+pjson[n(0x1cf)]),await this[n(0x1db)]['compareMakaToLatest']();if(b[n(0x1cb)]){await this['fsi'][n(0x1ce)](),Log['bright']('----------------------System----------------------------');const d=this[n(0x1db)]['getGlobalMeteorVersion']();Log['bright']((n(0x1f3)+d)[n(0x1c9)]('\x0a',''));const f=execSync(c+'\x20node\x20-v')[n(0x1d0)]()[n(0x1c9)](/\r?\n|\r/,'')[n(0x1c9)]('v','');Log[n(0x1d4)]('System\x27s\x20Meteor\x27s\x20Node\x20Version\x20'+f);const g=execSync(n(0x1d7))[n(0x1d0)]()[n(0x1c9)](/\r?\n|\r/,'')[n(0x1c9)]('v','');a101e['gt'](f,g)?(Log[n(0x1df)](n(0x1d1)+g),Log[n(0x1df)](n(0x1f2)+g+n(0x1e2)+f+')')):Log[n(0x1d4)](n(0x1d1)+g);if(this[n(0x1db)]['isMakaProject']()){Log[n(0x1d4)](n(0x1ef));const h=this[n(0x1db)][n(0x1d8)]();if(!a101e[n(0x1de)](h))Log[n(0x1df)]('Project\x27s\x20Meteor\x20Version\x20'+h[n(0x1c9)]('\x0a',''));else a101e['gt'](d,h)?(Log['warn'](n(0x1eb)+h[n(0x1c9)]('\x0a','')),Log['warn']('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice']((n(0x1eb)+h)[n(0x1c9)]('\x0a',''));const i=await this[n(0x1db)]['getProjectsMeteorNodeVersion']();i===n(0x1dd)?(Log['warn'](n(0x1f1)+i),Log[n(0x1df)](n(0x1ec))):Log['bright'](n(0x1f1)+i),Log[n(0x1d4)](n(0x1d5));}}}catch(j){console[n(0x1ea)](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(0xf8))/0x1*(-parseInt(f(0xfa))/0x2)+-parseInt(f(0x101))/0x3*(-parseInt(f(0xf5))/0x4)+-parseInt(f(0xf4))/0x5+parseInt(f(0xfb))/0x6+parseInt(f(0xff))/0x7+parseInt(f(0xfc))/0x8+parseInt(f(0x100))/0x9*(-parseInt(f(0xfd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xb5bfc));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a['toString']()['search'](h(0xf9))[h(0xf7)]()[h(0xfe)](a102a)[h(0xf6)](h(0xf9));});function a102c(){var i=['search','toString','485769ScTFju','(((.+)+)+)+$','2NlYFPK','3952524BlYppe','9588712CCyfAg','4348290PXapwy','constructor','916195UFNLmU','27VeKKNL','12auMiAT','apply','4068240OcYhcs','1360120jHTqCF'];a102c=function(){return i;};return a102c();}a102a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0xf4;var f=c[d];return f;},a102d(a,b);}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function
|
|
2
|
+
function a103c(){var i=['95658hznKsX','toString','2457454bfGqJV','search','(((.+)+)+)+$','7061718CUWIAf','3783124bQhewT','1225653HAURcR','14959840zrXsMI','env','1457865CqZbif','constructor'];a103c=function(){return i;};return a103c();}var a103h=a103d;(function(a,b){var f=a103d,c=a();while(!![]){try{var d=-parseInt(f(0x9b))/0x1+-parseInt(f(0x9d))/0x2+parseInt(f(0x96))/0x3+parseInt(f(0x95))/0x4+-parseInt(f(0x99))/0x5+-parseInt(f(0x94))/0x6+parseInt(f(0x97))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xaa8ad));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[g(0x9c)]()[g(0x9e)](g(0x9f))['toString']()[g(0x9a)](a103a)[g(0x9e)](g(0x9f));});a103a(),process[a103h(0x98)]['NODE_OPTIONS']='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x94;var f=c[d];return f;},a103d(a,b);}import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a104c(){const L=['aliases','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','listGenerators','warn','validateMeteorInstall','opts','Client','No\x20resource\x20name\x20specified','client','colLocAnswer','5TlJiFp','validateParams','2578690rdItVd','bind','getGlobalConfig','forEach','call','match','chdir','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','split','798886gaqeAx','shortDesc','config','readFileSync','addGenerator','_handler','Generator\x20requires\x20a\x20name','filter','length','list','Generator\x20format\x20is\x20incorrect','assign','validateEngines','pop','writeFileSync','number','shift','sep','name','usage','tableList','6184976mqXxhe','help','minOptsLength','Name','bright','stringify','join','(((.+)+)+)+$','Server','_genTransactionId','26VYOLBe','Generators:','DARK','undo','No\x20undo\x20handler\x20defined\x20for\x20','options','4ILnOMs','message','exit','Generator\x20requires\x20a\x20handler\x20function','1576182lEiKCQ','getHistoryFileSize','1943632rIpFiq','transactionId','.maka','handleGenerateError','cwd','Too\x20many\x20arguments','_historyFilePath','Alias','search','Both','dir','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','\x20not\x20found','includes','requiredEngines','_generators','history.json','LIGHT','find','Generator\x20','There\x20is\x20no\x20Meteor\x20application\x20here','mustBeInMakaProject','mustHaveMeteorInstalled','fsi','noNeedResource','findGeneratorByName','localeCompare','\x20not\x20found.\x20Cannot\x20undo.','server','generatorName','parse','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','lib','params','readHistory','toString','details','sort','12598cYMJWd','_undoHandler','maxOptsLength','utf-8','14kFPhtY','9MkyANg','invoke','error','124893ZdEPzX','processAndRunGenerator','appPathPrefix','deepen','Description','validateMakaSubscription','Location','function','where','push','159EdRrJE','addToHistory','Too\x20few\x20options','both','Generator\x20not\x20found','132xPJYCp','pathFromProject','Nothing\x20to\x20undo.','maxArgLength','writeHistory','Generator.create\x20requires\x20some\x20options!','minArgLength','resourceName','root','fullNameChain'];a104c=function(){return L;};return a104c();}const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0x1da))/0x1*(-parseInt(r(0x1c8))/0x2)+parseInt(r(0x1d0))/0x3*(parseInt(r(0x19c))/0x4)+-parseInt(r(0x16c))/0x5*(parseInt(r(0x1a0))/0x6)+parseInt(r(0x1cc))/0x7*(parseInt(r(0x1a2))/0x8)+parseInt(r(0x1cd))/0x9*(-parseInt(r(0x16e))/0xa)+-parseInt(r(0x177))/0xb*(-parseInt(r(0x158))/0xc)+-parseInt(r(0x196))/0xd*(-parseInt(r(0x18c))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xa7f0e));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(0x1c5)]()[s(0x1aa)](s(0x193))[s(0x1c5)]()['constructor'](a104a)[s(0x1aa)]('(((.+)+)+)+$');});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='';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x155;let f=c[d];return f;},a104d(a,b);}const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const t=a104d,c=process[t(0x1a6)]();let d=null;try{process[t(0x174)](a),d=await b();}finally{process[t(0x174)](c);}return d;}export class Generator extends Tool{[a104u(0x19b)];[a104u(0x161)];[a104u(0x1b1)];[a104u(0x1a8)];[a104u(0x1c9)];[a104u(0x195)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x175));if(!a['name'])throw new Error(v(0x17d));if(typeof b!==v(0x1d7))throw new Error(v(0x19f));this[v(0x1b1)]=[],this[v(0x19b)]=Object[v(0x182)]({},a),this[v(0x189)]=this[v(0x19b)][v(0x189)],this[v(0x17c)]=b[v(0x16f)](this);try{this[v(0x1a8)]=this['fsi'][v(0x159)]({'pathParts':[v(0x1a4),v(0x1b2)]})||a104e[v(0x192)]('.',v(0x1a4),v(0x1b2));}catch(d){Log['error'](d);}c&&(this[v(0x1c9)]=c[v(0x16f)](this));}[a104u(0x1a1)](){const w=a104u;if(a104f['existsSync'](this[w(0x1a8)])){const a=a104f['statSync'](this['_historyFilePath']);return a['size'];}return 0x0;}['readHistory'](){const x=a104u;if(!a104f['existsSync'](this[x(0x1a8)]))return[];return JSON[x(0x1c0)](a104f[x(0x17a)](this[x(0x1a8)],x(0x1cb)));}[a104u(0x15c)](a){const y=a104u;this[y(0x1a8)]&&!a104f['existsSync'](this[y(0x1a8)])&&a104f[y(0x185)](this[y(0x1a8)],JSON[y(0x191)]([])),a104f[y(0x185)](this[y(0x1a8)],JSON[y(0x191)](a,null,0x2));}[a104u(0x1db)](a){const z=a104u;try{a?.[z(0x1c3)]?.[z(0x167)][z(0x179)]&&delete a['params'][z(0x167)][z(0x179)];const b=this['readHistory'](),c={'generatorName':this[z(0x161)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x1d9)](c);const d=Buffer['from'](JSON['stringify'](b))[z(0x17f)];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[z(0x187)]();}this['writeHistory'](b);}catch(f){Log[z(0x1cf)](f);}}async[a104u(0x199)](){const A=a104u,a=this[A(0x1c4)]();if(a['length']===0x0){Log[A(0x165)](A(0x15a));return;}const b=a[A(0x184)](),c=b[A(0x1a3)],d=a[A(0x17e)](e=>e[A(0x1a3)]===c);d[A(0x1d9)](b),d['reverse']();for(const e of d){const f=this[A(0x1bb)](e['generatorName']);if(!f){Log[A(0x1cf)](A(0x1b5)+e[A(0x1bf)]+A(0x1bd));continue;}f[A(0x1c9)]?await f[A(0x1c9)](e[A(0x1c6)]):Log['warn'](A(0x19a)+e[A(0x1bf)]+'\x20generator.\x20Skipping\x20undo.');}this[A(0x15c)](a[A(0x17e)](g=>g[A(0x1a3)]!==c));}static['create'](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x15d));if(typeof b!=='function')throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b);c&&(e['_undoHandler']=c[B(0x16f)](e));d=d||a104i;const f=d?d['fullNameChain']:'';return e[B(0x161)]=f?f+':'+a[B(0x189)]:a[B(0x189)],Object[B(0x182)](e,{'parent':d?.[B(0x19b)]?.['name']}),d['addGenerator'](e),e;}[a104u(0x17b)](a){const C=a104u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[C(0x1b1)][C(0x1d9)](a);}async[a104u(0x1d1)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.['split'](':');if(!f||f[D(0x17f)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[D(0x1b1)],h;for(const i of f){h=g['find'](j=>j['match'](i));if(!h)throw D(0x1b5)+i+D(0x1ae);await this['validateMakaSubscription'](h),g=h[D(0x1b1)];}if(h)d=await h[D(0x1ce)](b,c);else throw D(0x157);}catch(j){Log['error'](j);}return d;}[a104u(0x1bb)](a){const E=a104u,b=a?.[E(0x176)](':');if(!b||b['length']===0x0)return Log['error'](E(0x181)),null;let c=this[E(0x1b1)],d;for(const e of b){d=c[E(0x1b4)](f=>f[E(0x173)](e));if(!d)return Log[E(0x1cf)](E(0x1b5)+e+E(0x1ae)),null;c=d[E(0x1b1)];}return d||null;}async[a104u(0x1ce)](a,b){const F=a104u,c=a['slice']();b['resourceName']=c[0x0];try{const d=await this[F(0x1b9)][F(0x170)](),f=d['pallet']==='light'?ColorMode[F(0x1b3)]:ColorMode[F(0x198)];Log['setColorMode'](f),await this[F(0x1d5)](this);const g=a[0x0]===_prevGen||a[F(0x17f)]===0x0&&this[F(0x1b1)][F(0x17f)]>=0x0,h=b[F(0x18d)]||b['h'];if(g&&h){if(this[F(0x1b1)][F(0x17f)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][F(0x1b7)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this['options'][F(0x1b8)]){const j=this[F(0x166)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x19b)][F(0x15e)]===F(0x186)){if(a[F(0x17f)]<this[F(0x19b)][F(0x15e)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x19b)][F(0x15b)]==='number'){if(a[F(0x17f)]>this[F(0x19b)][F(0x15b)]){Log[F(0x1cf)](F(0x1a7));throw new UsageError();}}if(typeof this[F(0x19b)][F(0x18e)]===F(0x186)){if(Object['keys'](b)[F(0x17f)]<this[F(0x19b)][F(0x18e)]){Log[F(0x1cf)](F(0x155));throw new UsageError();}}if(typeof this[F(0x19b)][F(0x1ca)]===F(0x186)){if(Object['keys'](b)[F(0x17f)]>=this[F(0x19b)][F(0x1ca)]){Log['error']('Too\x20many\x20options');throw new UsageError();}}}this[F(0x19b)][F(0x1b0)]&&this[F(0x183)](this[F(0x19b)][F(0x1b0)]);await this[F(0x16d)](a,b,this['options']);if(!b['resourceName']&&!this[F(0x19b)][F(0x1ba)]){Log[F(0x1cf)](F(0x169));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x1a5)](k),process[F(0x19e)](0x1);}return await inside(b[F(0x1a6)],async()=>{const G=F;try{if(!b[G(0x160)]&&!this[G(0x1b9)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b['resourceName']?.['replace'](/\\/g,'/')[G(0x176)]('/');!b[G(0x1ac)]&&(l?.['length']>0x1?(b[G(0x15f)]=l[G(0x184)](),c[0x0]=b['resourceName'],b[G(0x1ac)]=l['map'](n=>{return paramCase(n);})[G(0x192)](a104e[G(0x188)])):b[G(0x1ac)]='');if(this[G(0x19b)]['checkWhere']){if(!b[G(0x1d8)]){const o={'type':G(0x180),'name':G(0x16b),'message':G(0x1d6),'choices':[{'name':G(0x168),'value':G(0x16a)},{'name':G(0x194),'value':G(0x1be)},{'name':G(0x1ab),'value':G(0x156)}]},{colLocAnswer:p}=await Actions[G(0x19b)](o);p?b['where']=p:b[G(0x1d8)]='both';}const n=[G(0x156),'client',G(0x1be)];if(!n[G(0x1af)](b[G(0x1d8)])){Log[G(0x1cf)](G(0x1ad));throw new UsageError();}switch(b[G(0x1d8)]){case G(0x156):b[G(0x1d2)]=G(0x1c2);break;case G(0x1be):b['appPathPrefix']=G(0x1be);break;case G(0x16a):b[G(0x1d2)]=G(0x16a);break;default:b[G(0x1d2)]='';}}const m=await this[G(0x17c)][G(0x172)](this,c,b);return m&&this[G(0x1db)]({'params':{'args':c,'opts':this['fsi'][G(0x1d3)](b)},'success':m?.['success'],'message':m?.[G(0x19d)],'details':m?.['details']}),m;}catch(q){this[G(0x1a5)](q);}});}[a104u(0x164)](){this['tableList'](this['_generators']);}['handleGenerateError'](a){const H=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[H(0x19b)];Log[H(0x18a)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice'](H(0x197)),this['tableList'](this[H(0x1b1)]);else{if(a instanceof MustBeInProjectError)Log['error'](H(0x1c1));else{if(a instanceof NoMeteorFoundError)Log['error'](H(0x163)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[H(0x1cf)](H(0x1b6));}}}[a104u(0x18b)](a){const I=a104u,b=new a104g({});b[I(0x1d9)]([I(0x18f),I(0x1a9),I(0x1d4)]),a[I(0x1c7)]((c,d)=>{const J=I;return c[J(0x189)][J(0x1bc)](d['name']);})[I(0x171)](c=>{const K=I;b['push']([c['name'],c[K(0x162)](),c[K(0x178)]()]);}),Log[I(0x190)](b[I(0x1c5)]());}}
|
|
1
|
+
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x164))/0x1+parseInt(r(0x109))/0x2+-parseInt(r(0x128))/0x3+parseInt(r(0x17f))/0x4+parseInt(r(0x146))/0x5+parseInt(r(0x168))/0x6+-parseInt(r(0x16f))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xd61f9));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(0x10a)]()[s(0x158)](s(0x127))[s(0x10a)]()['constructor'](a104a)[s(0x158)](s(0x127));});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';function a104c(){const M=['mustBeInMakaProject','bind','Generator\x20not\x20found','maxArgLength','Client','resourceName','LIGHT','parse','Too\x20many\x20arguments','invoke','Too\x20many\x20options','(((.+)+)+)+$','2532246KKYuJZ','requiredEngines','_genTransactionId','existsSync','error','from','dir','_historyFilePath','length','processAndRunGenerator','Generator\x20','addGenerator','Generator\x20requires\x20a\x20handler\x20function','tableList','details','handleGenerateError','validateEngines','options','join','both','fsi','writeFileSync','light','generatorName','assign','size','minArgLength','_handler','params','message','6128415wvFjGW','Name','validateMeteorInstall','findProjectDirectory','readFileSync','No\x20resource\x20name\x20specified','\x20not\x20found','cwd','There\x20is\x20no\x20Meteor\x20application\x20here','transactionId','name','list','validateMakaProject','server','_undoHandler','call','setColorMode','appPathPrefix','search','split','deepen','\x20generator.\x20Skipping\x20undo.','success','Generator\x20format\x20is\x20incorrect','findGeneratorByName','shift','match','validateParams','number','function','1195225NYyNZN','warn','find','Generator.create\x20requires\x20a\x20handler\x20function!','994368rtLdvu','opts','Nothing\x20to\x20undo.','reverse','writeHistory','help','getGlobalConfig','6242964WtteRF','maxOptsLength','statSync','keys','sort','usage','.maka','Description','where','replace','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateMakaSubscription','config','client','Both','2915184BAiCWo','filter','history.json','3376002GWPsdN','toString','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','push','Location','shortDesc','readHistory','minOptsLength','Server','addToHistory','DARK','create','No\x20undo\x20handler\x20defined\x20for\x20','utf-8','_generators','fullNameChain','mustHaveMeteorInstalled','addGenerator\x20requires\x20a\x20Generator\x20instance','pop'];a104c=function(){return M;};return a104c();}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x108;let f=c[d];return f;},a104d(a,b);}async function inside(a='.',b){const t=a104d,c=process[t(0x14d)]();let d=null;try{process['chdir'](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{['options'];[a104u(0x118)];[a104u(0x117)];[a104u(0x12f)];[a104u(0x154)];[a104u(0x12a)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x179));if(!a[v(0x150)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0x163))throw new Error(v(0x134));this[v(0x117)]=[],this[v(0x139)]=Object[v(0x140)]({},a),this['name']=this[v(0x139)][v(0x150)],this[v(0x143)]=b[v(0x11d)](this);try{this[v(0x12f)]=this[v(0x13c)]['pathFromProject']({'pathParts':[v(0x175),v(0x108)]})||a104e[v(0x13a)]('.','.maka',v(0x108));}catch(d){Log[v(0x12c)](d);}c&&(this[v(0x154)]=c[v(0x11d)](this));}['getHistoryFileSize'](){const w=a104u;if(a104f['existsSync'](this[w(0x12f)])){const a=a104f[w(0x171)](this[w(0x12f)]);return a[w(0x141)];}return 0x0;}['readHistory'](){const x=a104u;if(!a104f[x(0x12b)](this[x(0x12f)]))return[];return JSON[x(0x123)](a104f[x(0x14a)](this[x(0x12f)],x(0x116)));}[a104u(0x16c)](a){const y=a104u;this['_historyFilePath']&&!a104f[y(0x12b)](this['_historyFilePath'])&&a104f[y(0x13d)](this[y(0x12f)],JSON['stringify']([])),a104f[y(0x13d)](this[y(0x12f)],JSON['stringify'](a,null,0x2));}[a104u(0x112)](a){const z=a104u;try{a?.['params']?.[z(0x169)][z(0x17c)]&&delete a[z(0x144)][z(0x169)]['config'];const b=this[z(0x10f)](),c={'generatorName':this[z(0x118)],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[z(0x12d)](JSON['stringify'](b))[z(0x130)];while(d>MAX_HISTORY_SIZE&&b[z(0x130)]>0x0){b[z(0x15f)]();}this['writeHistory'](b);}catch(f){Log[z(0x12c)](f);}}async['undo'](){const A=a104u,a=this[A(0x10f)]();if(a[A(0x130)]===0x0){Log[A(0x165)](A(0x16a));return;}const b=a[A(0x11b)](),c=b[A(0x14f)],d=a[A(0x180)](e=>e[A(0x14f)]===c);d[A(0x10c)](b),d[A(0x16b)]();for(const e of d){const f=this[A(0x15e)](e[A(0x13f)]);if(!f){Log['error'](A(0x132)+e[A(0x13f)]+'\x20not\x20found.\x20Cannot\x20undo.');continue;}f[A(0x154)]?await f[A(0x154)](e['details']):Log['warn'](A(0x115)+e[A(0x13f)]+A(0x15b));}this[A(0x16c)](a[A(0x180)](g=>g[A(0x14f)]!==c));}static[a104u(0x114)](a,b,c,d){const B=a104u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==B(0x163))throw new Error(B(0x167));const e=new Generator(a,b);c&&(e[B(0x154)]=c[B(0x11d)](e));d=d||a104i;const f=d?d[B(0x118)]:'';return e[B(0x118)]=f?f+':'+a[B(0x150)]:a['name'],Object[B(0x140)](e,{'parent':d?.['options']?.[B(0x150)]}),d['addGenerator'](e),e;}[a104u(0x133)](a){const C=a104u;if(!(a instanceof Generator))throw new Error(C(0x11a));this[C(0x117)][C(0x10c)](a);}async[a104u(0x131)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.['split'](':');if(!f||f['length']===0x0)throw D(0x15d);let g=this['_generators'],h;for(const i of f){h=g[D(0x166)](j=>j['match'](i));if(!h)throw D(0x132)+i+D(0x14c);await this['validateMakaSubscription'](h),g=h[D(0x117)];}if(h)d=await h[D(0x125)](b,c);else throw D(0x11e);}catch(j){Log[D(0x12c)](j);}return d;}['findGeneratorByName'](a){const E=a104u,b=a?.[E(0x159)](':');if(!b||b[E(0x130)]===0x0)return Log[E(0x12c)]('Generator\x20format\x20is\x20incorrect'),null;let c=this[E(0x117)],d;for(const e of b){d=c[E(0x166)](f=>f[E(0x160)](e));if(!d)return Log['error'](E(0x132)+e+E(0x14c)),null;c=d[E(0x117)];}return d||null;}async[a104u(0x125)](a,b){const F=a104u,c=a['slice']();b['resourceName']=c[0x0];try{const d=await this[F(0x13c)][F(0x16e)](),f=d['pallet']===F(0x13e)?ColorMode[F(0x122)]:ColorMode[F(0x113)];Log[F(0x156)](f),await this[F(0x17b)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[F(0x117)][F(0x130)]>=0x0,h=b[F(0x16d)]||b['h'];if(g&&h){if(this[F(0x117)][F(0x130)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][F(0x11c)]){const i=this[F(0x152)]();if(!i)throw new MustBeInProjectError();}if(this[F(0x139)][F(0x119)]){const j=this[F(0x148)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x139)][F(0x142)]===F(0x162)){if(a[F(0x130)]<this['options'][F(0x142)]){Log[F(0x12c)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x139)][F(0x11f)]===F(0x162)){if(a[F(0x130)]>this[F(0x139)][F(0x11f)]){Log[F(0x12c)](F(0x124));throw new UsageError();}}if(typeof this['options'][F(0x110)]===F(0x162)){if(Object[F(0x172)](b)[F(0x130)]<this[F(0x139)][F(0x110)]){Log[F(0x12c)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[F(0x139)][F(0x170)]===F(0x162)){if(Object[F(0x172)](b)[F(0x130)]>=this[F(0x139)][F(0x170)]){Log[F(0x12c)](F(0x126));throw new UsageError();}}}this['options'][F(0x129)]&&this[F(0x138)](this[F(0x139)]['requiredEngines']);await this[F(0x161)](a,b,this[F(0x139)]);if(!b[F(0x121)]&&!this[F(0x139)]['noNeedResource']){Log[F(0x12c)](F(0x14b));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x137)](k),process['exit'](0x1);}return await inside(b[F(0x14d)],async()=>{const G=F;try{if(!b['root']&&!this['fsi'][G(0x149)]())throw new MustBeInProjectError();const l=b['resourceName']?.[G(0x178)](/\\/g,'/')[G(0x159)]('/');!b[G(0x12e)]&&(l?.[G(0x130)]>0x1?(b[G(0x121)]=l[G(0x11b)](),c[0x0]=b['resourceName'],b[G(0x12e)]=l['map'](n=>{return paramCase(n);})[G(0x13a)](a104e['sep'])):b[G(0x12e)]='');if(this[G(0x139)]['checkWhere']){if(!b['where']){const o={'type':G(0x151),'name':'colLocAnswer','message':G(0x10d),'choices':[{'name':G(0x120),'value':G(0x17d)},{'name':G(0x111),'value':'server'},{'name':G(0x17e),'value':G(0x13b)}]},{colLocAnswer:p}=await Actions[G(0x139)](o);p?b[G(0x177)]=p:b[G(0x177)]=G(0x13b);}const n=[G(0x13b),G(0x17d),'server'];if(!n['includes'](b[G(0x177)])){Log['error'](G(0x10b));throw new UsageError();}switch(b['where']){case G(0x13b):b[G(0x157)]='lib';break;case G(0x153):b[G(0x157)]=G(0x153);break;case'client':b['appPathPrefix']=G(0x17d);break;default:b[G(0x157)]='';}}const m=await this[G(0x143)][G(0x155)](this,c,b);return m&&this[G(0x112)]({'params':{'args':c,'opts':this[G(0x13c)][G(0x15a)](b)},'success':m?.[G(0x15c)],'message':m?.[G(0x145)],'details':m?.[G(0x136)]}),m;}catch(q){this['handleGenerateError'](q);}});}['listGenerators'](){const H=a104u;this[H(0x135)](this[H(0x117)]);}[a104u(0x137)](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[I(0x139)];Log[I(0x174)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice']('Generators:'),this[I(0x135)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log['error'](I(0x17a)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log['error'](I(0x14e));}}}[a104u(0x135)](a){const J=a104u,b=new a104g({});b[J(0x10c)]([J(0x147),'Alias',J(0x176)]),a[J(0x173)]((c,d)=>{const K=J;return c['name']['localeCompare'](d[K(0x150)]);})['forEach'](c=>{const L=J;b[L(0x10c)]([c[L(0x150)],c['aliases'](),c[L(0x10e)]()]);}),Log['bright'](b['toString']());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=parseInt(f(0x119))/0x1*(-parseInt(f(0x11c))/0x2)+parseInt(f(0x122))/0x3*(parseInt(f(0x127))/0x4)+parseInt(f(0x11b))/0x5*(parseInt(f(0x125))/0x6)+-parseInt(f(0x124))/0x7+parseInt(f(0x11e))/0x8*(-parseInt(f(0x11d))/0x9)+-parseInt(f(0x11a))/0xa+parseInt(f(0x126))/0xb*(parseInt(f(0x123))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xcf449));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a['toString']()['search']('(((.+)+)+)+$')['toString']()[h(0x120)](a105a)[h(0x121)](h(0x11f));});a105a();import'./services/_index.js';import'./api.js';function a105c(){var i=['46rKSuAO','3213jktHKB','9656CCyVUp','(((.+)+)+)+$','constructor','search','9lUSQIC','64164ktqCgu','7505925NDcfmY','6NDRIVF','4939AgwZiM','1960788LKkXNd','apply','67007WqLEpZ','6089140CetQsZ','3154120zqjRKP'];a105c=function(){return i;};return a105c();}import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x119;var f=c[d];return f;},a105d(a,b);}import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106x=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0xcb))/0x1*(-parseInt(v(0xdb))/0x2)+-parseInt(v(0xc5))/0x3+parseInt(v(0xf5))/0x4*(-parseInt(v(0xf3))/0x5)+-parseInt(v(0xcf))/0x6*(parseInt(v(0x10a))/0x7)+parseInt(v(0xe1))/0x8+parseInt(v(0xeb))/0x9+parseInt(v(0xcc))/0xa*(parseInt(v(0xdd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x7f409));function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xbc;let f=c[d];return f;},a106d(a,b);}const a106b=(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;};}()),a106a=a106b(this,function(){const w=a106d;return a106a['toString']()[w(0xce)]('(((.+)+)+)+$')['toString']()[w(0xc7)](a106a)[w(0xce)](w(0xdf));});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';Generator[a106x(0xc0)]({'name':a106x(0xe6),'aliases':['a'],'usage':a106x(0xbf),'shortDesc':a106x(0xc4),'validOpts':[a106x(0xed)],'examples':[a106x(0xf7)],'description':a106x(0xc3)},async function(a,b){const y=a106x;try{const c=this['fsi'][y(0xff)](),d=[{'name':y(0xc9),'value':y(0xcd)}];d[y(0xe2)]({'name':y(0xd0),'value':y(0xee)});c[y(0xd9)][y(0xe9)]===y(0xd6)&&d[y(0xe2)]({'name':y(0xfe),'value':'withGql'});const f={'type':y(0xf1),'name':y(0xda),'message':y(0x104),'pageSize':0x64,'choices':d},g=await Actions['ask'](y(0xc6))||'v1',{apiAnswers:h}=await Actions[y(0xef)](f);h['length']===0x0&&(Log[y(0xbe)](y(0x108)),process[y(0xc8)](0x1)),await this[y(0xec)][y(0xf4)](c,async()=>{const z=y,i=b[z(0xf8)],j=paramCase(i),k=camelCase(i),l=b[z(0xed)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[z(0xd9)][z(0xe6)],'graphql':c[z(0xd9)][z(0xe9)],'test':c['engines']['test'],'noRename':!![],'withMethods':h[z(0xf2)]('withMethods'),'withRest':h[z(0xf2)]('withRest')};let n='js';c['engines']['js']===z(0xe5)&&(n='ts');m[z(0xee)]&&(this[z(0xec)]['setProjectConfig']({'engines':{'api':'rest'}}),await this[z(0xec)][z(0xfc)]([z(0x107),z(0xe4),z(0xd5)],{'shouldInstall':!![]}),await this[z(0xec)][z(0x109)]({'srcPath':z(0xc1),'destPath':this[z(0xec)][z(0xe0)]({'pathParts':[z(0xde),z(0xe6),g,b['dir'],j,j+'-'+g+z(0xd3)+n]}),'context':m,'config':c}));m[z(0xcd)]&&(await this['fsi'][z(0xfc)]([z(0xe4),z(0xd5)],{'shouldInstall':!![]}),await this[z(0xec)][z(0x109)]({'srcPath':z(0xbd),'destPath':this['fsi'][z(0xe0)]({'pathParts':[z(0xde),z(0xe6),g,b[z(0xed)],j,j+'-'+g+z(0xfa)+n]}),'context':m,'config':c}));c[z(0xd9)][z(0xfd)]!==z(0xe7)&&await this[z(0xec)][z(0x109)]({'srcPath':z(0xf6),'destPath':this[z(0xec)][z(0xe0)]({'pathParts':[z(0xde),z(0xe6),g,b[z(0xed)],j,j+'-'+g+'.app-tests.'+n]}),'context':m,'config':c});if(c[z(0xd9)]['graphql']===z(0xd6)){if(h[z(0xf2)]('withGql')){const p=this['fsi']['pathFromApp']({'pathParts':[z(0xde),z(0x105),z(0x102),z(0x101)+c['engines']['js']]}),q=this[z(0xec)][z(0xd4)]({'pathParts':[p],'config':c}),r=this['fsi'][z(0xe0)]({'pathParts':[z(0xde),z(0xe6),g,b[z(0xed)],j,z(0xe9),z(0xfb)+n]}),s='/imports/api/'+g+l+j+z(0xbc);await this[z(0xec)][z(0x109)]({'srcPath':'api/typeDefs.js','destPath':r,'context':m,'config':c}),await this['fsi']['injectAtBeginningOfFile']({'filePath':q,'content':'import\x20{\x20typeDefs\x20as\x20'+k+z(0xe8)+s+z(0xf0)}),await this[z(0xec)][z(0xc2)]({'filePath':q,'content':z(0x106)+k+z(0xf9),'begin':'const','end':z(0xd8)});const t=this['fsi'][z(0xe0)]({'pathParts':[z(0xde),z(0xe6),g,b['dir'],j,z(0xe9),z(0xca)+n]}),u=z(0xe3)+g+l+j+'/graphql/resolvers';await this[z(0xec)][z(0x109)]({'srcPath':z(0xd1),'destPath':t,'context':m,'config':c}),await this[z(0xec)][z(0xd7)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+'Resolvers\x20}\x20from\x20\x27'+u+'\x27;'}),await this[z(0xec)][z(0xc2)]({'filePath':q,'content':'resolverList.push('+k+z(0x100),'begin':z(0x103),'end':'if\x20\x5c(typeList'});}}await this[z(0xec)][z(0x109)]({'srcPath':z(0xdc),'destPath':this[z(0xec)][z(0xe0)]({'pathParts':[z(0xde),'startup',z(0x102),'register-'+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const o=this['fsi'][z(0xe0)]({'pathParts':[z(0xde),z(0x105),z(0x102),z(0x101)+c['engines']['js']]});await this[z(0xec)][z(0xea)]({'filePath':o,'content':'import\x20\x27./register-'+j+z(0xd2)});});}catch(i){console[y(0xbe)](i),process[y(0xc8)](0x0);}});function a106c(){const A=['template','1766275GOrpDb','/graphql/typeDefs','api/methods.js','error','maka\x20{generate,\x20g}:{api}\x20<resource-name>','create','api/api.js','injectIntoFile','\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','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','60153zXzHtr','API\x20Version?\x20[v1]','constructor','exit','RPC\x20(Methods)','resolvers.','27366WdrjsV','10985830YcFMeX','withMethods','search','6ovAaeZ','REST\x20API','api/resolvers.js','-api\x27;','-rest-api.','rewriteDestinationPathForEngine','mdg:validated-method','apollo','injectAtBeginningOfFile','if\x20\x5c(typeList','engines','apiAnswers','62igZBQs','api/register-api.js','11tGfNdy','imports','(((.+)+)+)+$','pathFromApp','2438536GBkFlo','push','/imports/api/','ddp-rate-limiter','tsx','api','none','TypeDefs\x20}\x20from\x20\x27','graphql','injectAtEndOfFile','6061833ikTzYp','fsi','dir','withRest','options','\x27;\x0a','checkbox','includes','434990SdIlSg','withValue','20ejXOhh','api/tests.js','maka\x20g:api\x20Todos','resourceName','TypeDefs);\x0a','-rpc-methods.','typeDefs.','checkMeteorPackage','test','GraphQL','getMakaProjectConfig','Resolvers);\x0a\x0a','index.','server','const','API\x20boundaries\x20to\x20create','startup','typeList.push(','maka:rest','No\x20API\x20boundaries\x20selected'];a106c=function(){return A;};return a106c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=parseInt(j(0x6d))/0x1*(parseInt(j(0x7c))/0x2)+parseInt(j(0x6a))/0x3+-parseInt(j(0x88))/0x4+parseInt(j(0x7d))/0x5*(parseInt(j(0x8e))/0x6)+-parseInt(j(0x84))/0x7+parseInt(j(0x7e))/0x8+-parseInt(j(0x6e))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x77a29));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x89)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a['toString']()['search']('(((.+)+)+)+$')[l(0x80)]()[l(0x65)](a107a)[l(0x77)]('(((.+)+)+)+$');});a107a();function a107c(){const p=['maka\x20g:collection\x20todos','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','2PnpJBf','5169438mJGDFw','appPathPrefix','.app-tests.','test','tsx','dir','withValue','injectAtEndOfFile','template','search','import\x20\x27./collections','index.','pathFromApp','resourceName','937034xPLaas','4835UERSRe','1332560oXTDTA','where','toString','error','checkMeteorPackage','fsi','3592848cihMkm','imports','col','collection','389456EYvPCu','apply','engines','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','\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','startup','582uudVZc','collection/tests.js','constructor','mongo','create','collections','none','1432896BcIpDR'];a107c=function(){return p;};return a107c();}import{paramCase,pascalCase}from'change-case';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x65;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a107m(0x67)]({'name':a107m(0x87),'aliases':[a107m(0x86)],'usage':a107m(0x8b),'checkWhere':!![],'shortDesc':a107m(0x6c),'validOpts':[a107m(0x73),a107m(0x7f)],'description':a107m(0x8c),'examples':[a107m(0x6b)]},async function(a,b){const n=a107m;try{const c=this[n(0x83)]['getMakaProjectConfig']();await this['fsi'][n(0x74)](c,async()=>{const o=n,d=paramCase(b[o(0x7b)]),f={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x7b)]),'fileName':d,'where':b[o(0x7f)],'test':c['engines'][o(0x71)],'noRename':!![]};let g='js';c[o(0x8a)]['js']===o(0x72)&&(g='ts');await this[o(0x83)][o(0x82)]([o(0x66)],{'shouldInstall':!![]}),await this[o(0x83)][o(0x76)]({'srcPath':'collection/collection.js','destPath':this['fsi'][o(0x7a)]({'pathParts':[o(0x85),'startup',b[o(0x6f)],o(0x68),b[o(0x73)],d+'.'+g]}),'context':f,'config':c});c[o(0x8a)]['test']!==o(0x69)&&await this[o(0x83)][o(0x76)]({'srcPath':o(0x8f),'destPath':this[o(0x83)][o(0x7a)]({'pathParts':['imports',o(0x8d),b[o(0x6f)],o(0x68),b[o(0x73)],d+o(0x70)+g]}),'context':f,'config':c});const h=b[o(0x73)]?'/'+b[o(0x73)]+'/':'/',i=this['fsi']['pathFromApp']({'pathParts':[o(0x85),'startup',b[o(0x6f)],o(0x79)+c[o(0x8a)]['js']]});await this[o(0x83)][o(0x75)]({'filePath':i,'content':o(0x78)+h+d+'\x27;'});});}catch(d){Log[n(0x81)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108n=a108d;
|
|
1
|
+
const a108n=a108d;(function(a,b){const k=a108d,c=a();while(!![]){try{const d=parseInt(k(0x7c))/0x1+parseInt(k(0xa1))/0x2+-parseInt(k(0x81))/0x3+-parseInt(k(0xa8))/0x4*(parseInt(k(0x8e))/0x5)+parseInt(k(0x9f))/0x6*(-parseInt(k(0xac))/0x7)+parseInt(k(0x87))/0x8+parseInt(k(0xa9))/0x9*(parseInt(k(0xb0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xcdd48));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a108d;if(c){const e=c[l(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const m=a108d;return a108a[m(0xab)]()[m(0x85)](m(0x95))[m(0xab)]()[m(0x9e)](a108a)[m(0x85)](m(0x95));});function a108c(){const q=['comp','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','error','withValue','create','theme','(((.+)+)+)+$','fsi','root','engines','react','.js','getMakaProjectConfig','checkNpmPackage','test/test.js','constructor','3552Hqetqn','setTemplate','963224GDiycb','api','component','installNpmPackage','relative','pathFromApp','/imports/ui/','20IrOCHs','36MfZNkb','dir','toString','13552jpivtd','injectAtBeginningOfFile','apply','test','2465340WtFhFp','css','warn','ssr','className','fileName','maka\x20g:comp\x20todos/todos-item','string','findAppDirectory','593254CkOcLX','injectTemplateModule','withTranslations','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','resourceName','2229855UQuPki','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','ramda','features','search','graphql','7066840nJbDWL','.tests.js','/imports/ui/components','baseDir','template/template.css','true','template','211880VOKfPB'];a108c=function(){return q;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x79;let f=c[d];return f;},a108d(a,b);}a108a();import a108e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a108n(0x8f)];Generator[a108n(0x93)]({'name':a108n(0xa3),'aliases':aliases,'usage':a108n(0x90),'shortDesc':a108n(0x7f),'validOpts':[{'name':'baseDir'}],'examples':[a108n(0x79)]},async function(a,b){const o=a108n;try{const c=this['fsi'][o(0x7b)](),d=b[o(0x8a)]?o(0xa7)+b[o(0x8a)]:o(0x89),f=this[o(0x96)][o(0xa6)]({'pathParts':[d,b[o(0xaa)],paramCase(b[o(0x80)]),paramCase(b[o(0x80)])]}),g=await this[o(0x96)][o(0x9b)]();await this['fsi'][o(0x92)](g,async()=>{const p=o;typeof g[p(0x8d)]['test']===p(0x7a)&&(g['template']['test']=g[p(0x8d)][p(0xaf)]==='true'?!![]:![],this[p(0x96)][p(0xa0)](p(0xaf),g[p(0x8d)][p(0xaf)]));typeof g[p(0x8d)][p(0xb1)]===p(0x7a)&&(g[p(0x8d)]['css']=g[p(0x8d)]['css']===p(0x8c)?!![]:![],this[p(0x96)][p(0xa0)](p(0xb1),g['template'][p(0xb1)]));typeof g['template']['js']===p(0x7a)&&(g[p(0x8d)]['js']=g['template']['js']===p(0x8c)?!![]:![],this[p(0x96)]['setTemplate']('js',g[p(0x8d)]['js']));!g[p(0x84)]&&(g['features']={});!b[p(0x97)]&&!this['fsi'][p(0x9c)](p(0x83))&&(Log[p(0xb2)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[p(0x96)][p(0xa4)]('ramda',{'cwd':c}));if(!b[p(0x97)]&&!this['fsi'][p(0x9c)](p(0x99))){Log[p(0x91)](p(0x82));return;}const h={'name':pascalCase(b[p(0x80)]),'myPath':a108e[p(0xa5)](this['fsi']['pathFromProject']({}),f),'cssCaseName':paramCase(b[p(0x80)]),'className':pascalCase(b[p(0x80)]),'camelCaseName':camelCase(b[p(0x80)]),'fileName':paramCase(b['resourceName']),'graphql':g['engines'][p(0x86)],'features':g[p(0x84)],'client':g['engines']['client'],'api':g[p(0x98)][p(0xa2)],'ssr':g[p(0x98)][p(0xb3)],'test':g[p(0x98)][p(0xaf)],'theme':g[p(0x98)][p(0x94)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x84)][p(0x7e)]};await this[p(0x96)][p(0x8d)]({'srcPath':'component/component.js','destPath':f+p(0x9a),'context':h,'framework':p(0x99),'config':g});g['engines']['test']!=='none'&&await this['fsi'][p(0x8d)]({'srcPath':p(0x9d),'destPath':f+p(0x88),'context':h,'framework':p(0x99),'config':g});g[p(0x8d)][p(0xb1)]&&(await this['fsi']['template']({'srcPath':p(0x8b),'destPath':f+'.css','context':Object['assign']({},h,{'className':paramCase(b[p(0x80)])}),'config':g}),await this[p(0x96)][p(0xad)]({'filePath':f+'.'+g[p(0x98)]['js'],'content':'import\x20\x27./'+h['cssCaseName']+'.'+g[p(0x98)]['css']+'\x27;'}));const i=b[p(0xaa)]?'/'+b[p(0xaa)]+'/':'/',j=''+d+i+h[p(0xb5)]+'/'+h[p(0xb5)];await this[p(0x96)][p(0x7d)](h[p(0xb4)],g,j);});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x10c))/0x1*(-parseInt(h(0x122))/0x2)+-parseInt(h(0x101))/0x3*(-parseInt(h(0x105))/0x4)+parseInt(h(0x11a))/0x5*(-parseInt(h(0x11c))/0x6)+parseInt(h(0x10f))/0x7*(parseInt(h(0x103))/0x8)+-parseInt(h(0x10b))/0x9+-parseInt(h(0x11f))/0xa*(-parseInt(h(0x119))/0xb)+-parseInt(h(0x115))/0xc*(-parseInt(h(0x113))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x6181e));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a['toString']()[j(0x117)](j(0x111))[j(0x11b)]()['constructor'](a109a)[j(0x117)](j(0x111));});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xfe;let f=c[d];return f;},a109d(a,b);}a109a();import{Generator}from'../generator.js';function a109c(){const n=['settings.json','Generate\x20configuration\x20settings.','74811OGNFac','ubuntu','24pNhGUl','config','36sXpPaF','process.env','maka\x20g:config\x20production','config/settings.json','dev','apply','6442947miCrQW','3905FIsmnq','maka\x20{generate,\x20g}:{config}\x20<name>','create','68180hFGbrp','pathFromProject','(((.+)+)+)+$','appName','13yfLJSf','prod','12443076OvEXwL','template','search','production','43538nElZoj','18465RmpZoR','toString','132gbQauN','withValue','getMakaProjectConfig','1410rOqVtU','resourceName','fsi','334fLDskP','isDocker'];a109c=function(){return n;};return a109c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109k(0x10e)]({'name':'config','usage':a109k(0x10d),'shortDesc':a109k(0x100),'validOpts':[a109k(0xfe)],'examples':[a109k(0x107)]},async function(a,b){const l=a109k,c=this[l(0x121)][l(0x11e)]();await this[l(0x121)][l(0x11d)](c,async()=>{const m=l,d={'app':c[m(0x112)],'appFileCase':paramCase(c[m(0x112)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[m(0x120)]),'camelCase':camelCase(b[m(0x120)]),'userName':m(0x102),'isDocker':b['isDocker']};let e=b[m(0x120)];if(e===m(0x109))e='development';else e===m(0x114)&&(e=m(0x118));const f=this[m(0x121)][m(0x110)]({'pathParts':[m(0x104),e,m(0xff)]});await this[m(0x121)][m(0x116)]({'srcPath':m(0x108),'destPath':f,'context':d,'config':c});if(!b[m(0xfe)]){const g=this['fsi'][m(0x110)]({'pathParts':[m(0x104),e,m(0x106)]});await this[m(0x121)]['template']({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110m=a110d;function a110c(){const p=['
|
|
1
|
+
const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=parseInt(j(0xb8))/0x1+parseInt(j(0xe2))/0x2+-parseInt(j(0xb6))/0x3+parseInt(j(0xca))/0x4*(parseInt(j(0xe0))/0x5)+parseInt(j(0xbd))/0x6+-parseInt(j(0xd7))/0x7*(-parseInt(j(0xb5))/0x8)+-parseInt(j(0xe4))/0x9*(parseInt(j(0xde))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xdcd21));function a110c(){const p=['dbc/conn.js','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','injectAtEndOfFile','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','import\x20\x27./register-','checkNpmPackage','13503xlARlz','fsi','dbc/config.js','toString','server','warn','pathFromApp','18618190LHrQBy','type','225kXVVtj','(((.+)+)+)+$','1743090MWkFtr','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','9XKDyhv','index.','better-sqlite3','imports','register-','2680eXvHEj','1786584ZRGwsS','pgsql','410116mipcsm','sqlite','engines','maka\x20g:dbc\x20geoserver\x20--type=pgsql','error','3300642TFQRkR','maka\x20g:dbc\x20todos\x20--type=sqlite','-dbc.','apply','dir','resourceName','installNpmPackage','dbc/register-dbc.js','withValue','mssql','-dbc\x27;','create','dbc','78564EitZuz','constructor','startup','maka\x20g:dbc\x20azure\x20--type=mssql','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','template','getMakaProjectConfig'];a110c=function(){return p;};return a110c();}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0xda)]()['search'](l(0xe1))[l(0xda)]()[l(0xcb)](a110a)['search']('(((.+)+)+)+$');});a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xb1;let f=c[d];return f;},a110d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a110m(0xc8)]({'name':a110m(0xc9),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a110m(0xd4),'validOpts':[a110m(0xc1)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a110m(0xdf),'values':[a110m(0xb7),a110m(0xc6),a110m(0xb9)]}],'examples':[a110m(0xbb),a110m(0xcd),a110m(0xbe)]},async function(a,b){const n=a110m;try{const c=await this[n(0xd8)][n(0xd0)](),d=this['fsi'][n(0xdd)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[n(0xc2)]),'fileName':paramCase(b[n(0xc2)]),'camelCase':camelCase(b[n(0xc2)]),'type':b[n(0xdf)],'engine':c['engines']['js'],'noRename':!![]};await this[n(0xd8)][n(0xc5)](c,async()=>{const o=n;let h='js';c[o(0xba)]['js']==='tsx'&&(h='ts');b[o(0xdf)]===o(0xb7)&&!this['fsi'][o(0xd6)]('pg')&&(Log[o(0xdc)](o(0xce)),await this[o(0xd8)][o(0xc3)]('pg',{'cwd':d}));b[o(0xdf)]===o(0xc6)&&!this[o(0xd8)][o(0xd6)]('mssql')&&(Log[o(0xdc)](o(0xe3)),await this[o(0xd8)][o(0xc3)]('mssql',{'cwd':d}));b[o(0xdf)]==='sqlite'&&!this[o(0xd8)][o(0xd6)](o(0xb2))&&(Log[o(0xdc)](o(0xd2)),await this[o(0xd8)][o(0xc3)](o(0xb2),{'cwd':d}));await this[o(0xd8)][o(0xcf)]({'srcPath':o(0xd9),'destPath':this[o(0xd8)][o(0xdd)]({'pathParts':[o(0xb3),'startup',o(0xdb),'dbc',b['dir'],f,'config.'+h]}),'context':g,'config':c}),await this['fsi']['template']({'srcPath':o(0xd1),'destPath':this[o(0xd8)][o(0xdd)]({'pathParts':[o(0xb3),'startup',o(0xdb),o(0xc9),b['dir'],f,'conn.'+h]}),'context':g,'config':c}),await this['fsi'][o(0xcf)]({'srcPath':o(0xc4),'destPath':this[o(0xd8)][o(0xdd)]({'pathParts':[o(0xb3),o(0xcc),o(0xdb),o(0xb4)+f+o(0xbf)+h]}),'context':g,'config':c});const i=this[o(0xd8)][o(0xdd)]({'pathParts':['imports',o(0xcc),o(0xdb),o(0xb1)+c['engines']['js']]});await this[o(0xd8)][o(0xd3)]({'filePath':i,'content':o(0xd5)+f+o(0xc7)});});}catch(h){Log[n(0xbc)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111k=a111d;(function(a,b){const h=a111d,c=a();while(!![]){try{const d
|
|
1
|
+
const a111k=a111d;function a111c(){const n=['getMakaProjectConfig','error','apply','findProjectDirectory','toString','create','isFile','appName','40qBIgaZ','1407288VoquqG','app','app.tar.gz','1619628GgtRVD','dockerfile','(((.+)+)+)+$','search','fsi','11033487OxGVGy','2726127VYJfTU','getGlobalConfig','cert','join','constructor','docker/Dockerfile','1PrZEsl','template','maka\x20g:dockerfile','97495fCMoEa','412094cucdBp','4168787OvHwSJ'];a111c=function(){return n;};return a111c();}(function(a,b){const h=a111d,c=a();while(!![]){try{const d=-parseInt(h(0xb5))/0x1*(-parseInt(h(0xb9))/0x2)+parseInt(h(0xaf))/0x3+parseInt(h(0xc3))/0x4*(parseInt(h(0xb8))/0x5)+-parseInt(h(0xc7))/0x6+parseInt(h(0xba))/0x7+parseInt(h(0xc4))/0x8+-parseInt(h(0xae))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x8ee65));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a111d;if(c){const e=c[i(0xbd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const j=a111d;return a111a[j(0xbf)]()[j(0xca)]('(((.+)+)+)+$')['toString']()[j(0xb3)](a111a)[j(0xca)](j(0xc9));});a111a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xad;let f=c[d];return f;},a111d(a,b);}import a111e from'path';Generator[a111k(0xc0)]({'name':a111k(0xc8),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[{'name':'force','boolFlag':!![]}],'noNeedResource':!![],'examples':[a111k(0xb7)]},async function(a,b){const l=a111k;try{const c=await this[l(0xad)][l(0xbb)](),d=await this['fsi'][l(0xb0)](),f=this[l(0xad)][l(0xbe)]();await this[l(0xad)]['withValue'](c,async()=>{const m=l,g={'app':d[m(0xc2)],'config':c,'appPath':a111e['join'](f,m(0xc5)),'bundlePath':a111e[m(0xb2)](f,'build',m(0xc6)),'useCert':this[m(0xad)][m(0xc1)](d[m(0xb1)])};await this['fsi'][m(0xb6)]({'srcPath':m(0xb4),'destPath':a111e[m(0xb2)](f,'Dockerfile'),'framework':'service','context':g,'config':c,'force':b['force']});});}catch(g){Log[l(0xbc)](g);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112n=a112d;(function(a,b){const l=a112d,c=a();while(!![]){try{const d=-parseInt(l(0x11f))/0x1+-parseInt(l(0x11e))/0x2*(parseInt(l(0x122))/0x3)+-parseInt(l(0x10d))/0x4+parseInt(l(0xff))/0x5*(parseInt(l(0x11d))/0x6)+parseInt(l(0x129))/0x7+-parseInt(l(0x117))/0x8*(-parseInt(l(0xf7))/0x9)+parseInt(l(0x12b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x32328));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 m=a112d;return a112a[m(0x12c)]()[m(0x11c)](m(0x113))[m(0x12c)]()[m(0x104)](a112a)[m(0x11c)](m(0x113));});a112a();import a112e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xf7;let f=c[d];return f;},a112d(a,b);}function a112c(){const q=['@apollo/client','8AIaXIx','Creating\x20','checkNpmPackage','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','engines','search','46146ltBBIE','76iTQtZK','256186pnoNwB','/imports/ui/','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','29163ZGTLks','components','react','test/test.js','test','.app-tests.js','pathFromProject','1936137IxgRua','hook','928340mlAxmz','toString','template','dir','fsi','relative','force','installNpmPackage','apollo','3231981nTPSrx','assign','\x20hook...','warn','graphql','withTranslations','true','getMakaProjectConfig','265fgLCiv','create','.css','findAppDirectory','pages','constructor','notice','css','@apollo/client\x20isomorphic-fetch','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','resourceName','fileName','features','error','1219860XMCwdl','template/template.css','/imports/ui/components','theme','baseDir','cssCaseName','(((.+)+)+)+$','string','.js'];a112c=function(){return q;};return a112c();}import{UsageError}from'../error.js';Generator[a112n(0x100)]({'name':a112n(0x12a),'aliases':['h'],'checkWhere':![],'usage':a112n(0x108),'shortDesc':a112n(0x121),'validOpts':[{'name':a112n(0x111),'values':['hooks',a112n(0x123),a112n(0x103),'layouts']},{'name':a112n(0x131),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':'\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'},async function(a,b){const o=a112n;Log[o(0x105)](o(0x118)+b['resourceName']+o(0xf9));try{const c=this[o(0x12f)][o(0x119)](o(0x124));if(!c){Log[o(0x10c)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[o(0x12f)][o(0x102)](),f=b[o(0x111)]?o(0x120)+b[o(0x111)]:o(0x10f),g=this[o(0x12f)]['pathFromApp']({'pathParts':[f,b[o(0x12e)],paramCase(b[o(0x109)]),paramCase(b[o(0x109)])]}),h=await this[o(0x12f)][o(0xfe)]();await this[o(0x12f)]['withValue'](h,async()=>{const p=o;typeof h['template'][p(0x106)]===p(0x114)&&(h['template']['css']=h[p(0x12d)][p(0x106)]===p(0xfd)?!![]:![],this[p(0x12f)]['setTemplate']('css',h[p(0x12d)]['css']));h['engines'][p(0xfb)]===p(0x133)&&!this[p(0x12f)]['checkNpmPackage'](p(0x116))&&(Log[p(0xfa)](p(0x11a)),await this[p(0x12f)][p(0x132)](p(0x107),{'cwd':d}));const i={'cssCaseName':paramCase(b[p(0x109)]),'camelCaseName':camelCase(b[p(0x109)]),'className':pascalCase(b[p(0x109)]),'name':pascalCase(b['resourceName']),'graphql':h[p(0x11b)][p(0xfb)],'theme':h[p(0x11b)][p(0x110)],'features':h[p(0x10b)],'myPath':a112e[p(0x130)](this[p(0x12f)][p(0x128)]({}),g),'fileName':paramCase(b[p(0x109)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][p(0xfc)]};await this[p(0x12f)][p(0x12d)]({'srcPath':'hook/hook.js','destPath':g+p(0x115),'context':i,'config':h,'framework':p(0x124),'force':b['force']});h[p(0x12d)][p(0x106)]&&(await this[p(0x12f)][p(0x12d)]({'srcPath':p(0x10e),'destPath':g+p(0x101),'context':Object[p(0xf8)]({},i,{'className':i[p(0x112)]}),'config':h,'force':b[p(0x131)]}),await this[p(0x12f)]['injectAtBeginningOfFile']({'filePath':g+'.'+h[p(0x11b)]['js'],'content':'import\x20\x27./'+i['fileName']+'.'+h[p(0x11b)][p(0x106)]+'\x27;'}));h[p(0x11b)][p(0x126)]!=='none'&&await this[p(0x12f)]['template']({'srcPath':p(0x125),'destPath':g+p(0x127),'framework':p(0x124),'context':i,'config':h,'force':b[p(0x131)]});const j=b[p(0x12e)]?'/'+b[p(0x12e)]+'/':'/',k=''+f+j+i[p(0x10a)]+'/'+i['fileName'];await this[p(0x12f)]['injectTemplateModule'](i['className'],h,k);});}catch(i){Log[o(0x10c)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=-parseInt(f(0x8a))/0x1+-parseInt(f(0x81))/0x2+-parseInt(f(0x7e))/0x3*(-parseInt(f(0x80))/0x4)+-parseInt(f(0x83))/0x5*(parseInt(f(0x89))/0x6)+parseInt(f(0x87))/0x7+parseInt(f(0x85))/0x8*(parseInt(f(0x7d))/0x9)+parseInt(f(0x7f))/0xa*(parseInt(f(0x84))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x4adcf));var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a[h(0x7c)]()[h(0x86)]('(((.+)+)+)+$')[h(0x7c)]()[h(0x88)](a113a)[h(0x86)]('(((.+)+)+)+$');});function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0x7c;var f=c[d];return f;},a113d(a,b);}a113a();import'./kit.js';function a113c(){var i=['657570hayheZ','96RlVtBl','678704xcCdRy','apply','10DfeGHY','66JsRWNB','1389352hnNYmG','search','163436MSdVDJ','constructor','630786EBtPrs','93540PnJIJg','toString','27ViOBfu','1362aADCeL'];a113c=function(){return i;};return a113c();}import'./mui/_index.js';import'./esri/_index.js';import'./auth/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a114d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a114d,c=a();while(!![]){try{var d=-parseInt(f(0x158))/0x1*(parseInt(f(0x164))/0x2)+-parseInt(f(0x165))/0x3+parseInt(f(0x15c))/0x4*(parseInt(f(0x15e))/0x5)+parseInt(f(0x160))/0x6+parseInt(f(0x157))/0x7*(-parseInt(f(0x15f))/0x8)+parseInt(f(0x159))/0x9+-parseInt(f(0x161))/0xa*(-parseInt(f(0x163))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x29452));function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0x157;var f=c[d];return f;},a114d(a,b);}var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a[h(0x15b)]()[h(0x162)](h(0x15d))['toString']()[h(0x15a)](a114a)[h(0x162)](h(0x15d));});a114a();function a114c(){var i=['1224534cEPOzC','10ofoMfi','search','2249929FxEXKZ','2EnrEgY','505812wSQWRN','apply','173047tblhsK','112085affYZK','517914WfBuEM','constructor','toString','1219720ZDYwYL','(((.+)+)+)+$','5waYIjN','104ZjVYya'];a114c=function(){return i;};return a114c();}import'./auth.generator.js';import'./provider.auth.gen.js';import'./basic-meteor.auth.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a115c(){const k=['320WwnABA','3TOejmR','auth','124088vkdYgf','18630UFmdAs','25aOVzzy','1174702NgtOeA','maka\x20g:kit:a','NIE','toString','(((.+)+)+)+$','5631564eJDWZQ','223482LUtZik','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:<kit-name>','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x20\x20','search','556472eUgEuY','3564384ZtJopc','constructor','apply'];a115c=function(){return k;};return a115c();}const a115i=a115d;function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x74;let f=c[d];return f;},a115d(a,b);}(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0x83))/0x1+parseInt(f(0x79))/0x2*(parseInt(f(0x74))/0x3)+-parseInt(f(0x76))/0x4*(-parseInt(f(0x78))/0x5)+parseInt(f(0x7e))/0x6+parseInt(f(0x7f))/0x7+-parseInt(f(0x84))/0x8+-parseInt(f(0x77))/0x9*(parseInt(f(0x87))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x9d671));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0x7c)]()['search'](h(0x7d))[h(0x7c)]()[h(0x85)](a115a)[h(0x82)](h(0x7d));});a115a();import{Generator}from'../../../generator.js';import a115e from'../kit.js';const AuthGen=Generator['create']({'name':a115i(0x75),'aliases':['a'],'usage':a115i(0x80),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20an\x20Auth\x20Provider','validOpts':[''],'isPro':!![],'examples':[a115i(0x7a)],'description':a115i(0x81)},async function(){const j=a115i;throw j(0x7b);},async function(){},a115e);export default AuthGen;
|