@maka/maka-cli 4.12.19 → 4.12.21
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/meteor/config/docker-compose.yaml +1 -4
- package/bundle/obf/src/templates/service/docker/Dockerfile +5 -0
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=-parseInt(f(0xb8))/0x1*(parseInt(f(0xc0))/0x2)+-parseInt(f(0xb7))/0x3+parseInt(f(0xb0))/0x4+-parseInt(f(0xbc))/0x5*(-parseInt(f(0xba))/0x6)+-parseInt(f(0xaf))/0x7*(-parseInt(f(0xb2))/0x8)+parseInt(f(0xb5))/0x9+parseInt(f(0xbe))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xabe43));function a96c(){const k=['toString','1224700EJMqVR','search','44554jNurQf','maka\x20set:<sub-command>','apply','findSubCommand','7ZlZsTu','637556FxnbDa','runSubCommand','9310568hFXyjP','constructor','(((.+)+)+)+$','11324745mAEUvp','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','2862075CfZAre','49TdimMX','\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','3426txEkPR','create','400IdDbpp'];a96c=function(){return k;};return a96c();}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a[h(0xbd)]()[h(0xbf)](h(0xb4))[h(0xbd)]()[h(0xb3)](a96a)[h(0xbf)](h(0xb4));});a96a();import{Command}from'../../command.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xac;let f=c[d];return f;},a96d(a,b);}const SetCommand=Command[a96i(0xbb)]({'name':'set','usage':a96i(0xac),'shortDesc':a96i(0xb6),'description':a96i(0xb9),'validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0xae)](c);d&&this[j(0xb1)](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97l=a97d;(function(a,b){const j=a97d,c=a();while(!![]){try{const d=parseInt(j(
|
|
1
|
+
const a97l=a97d;(function(a,b){const j=a97d,c=a();while(!![]){try{const d=parseInt(j(0x146))/0x1*(parseInt(j(0x14d))/0x2)+-parseInt(j(0x154))/0x3*(parseInt(j(0x145))/0x4)+parseInt(j(0x13c))/0x5*(-parseInt(j(0x14e))/0x6)+-parseInt(j(0x152))/0x7+-parseInt(j(0x155))/0x8*(parseInt(j(0x143))/0x9)+-parseInt(j(0x13a))/0xa+parseInt(j(0x148))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xa38fe));const a97b=(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;};}()),a97a=a97b(this,function(){const k=a97d;return a97a[k(0x14b)]()[k(0x14c)](k(0x157))[k(0x14b)]()[k(0x13e)](a97a)[k(0x14c)](k(0x157));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x139;let f=c[d];return f;},a97d(a,b);}a97a();import a97e from'fs';import a97f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';function a97c(){const n=['length','3WbusVe','587768hXBOlk','maka\x20ssh\x20<command>','(((.+)+)+)+$','getAppConfigPath','sshSync','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','6190240wphGjl','parse','1433075xxaKhk','join','constructor','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','assign','maka\x20ssh\x20--env\x20prod','maka\x20ssh\x20--env\x20dev','153tiJNsu','env','2798228bfHIUe','43XVphTu','exit','43490931iXAojN','readFileSync','error','toString','search','36628KgCngE','6fVKuSP','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','ssh','ssh.json','8519490Aerltt'];a97c=function(){return n;};return a97c();}Command['create']({'name':a97l(0x150),'usage':a97l(0x156),'mustBeInMakaProject':!![],'requiredOpts':[a97l(0x144)],'validOpts':['env','verbose'],'shortDesc':a97l(0x13f),'examples':[a97l(0x142),'maka\x20ssh\x20--env\x20staging',a97l(0x141),a97l(0x139),a97l(0x14f),a97l(0x15a)]},async function(a,b){const m=a97l;try{const c=this['fsi'][m(0x158)](b['env']);let d='';a[m(0x153)]>0x0&&(d=a[0x0]);const f=a97f[m(0x13d)](c,m(0x151)),g=a97e[m(0x149)](f)[m(0x14b)](),h=JSON[m(0x13b)](g);Object[m(0x140)](h,{'env':c}),SSH[m(0x159)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['verbose']});}catch(i){Log[m(0x14a)](i),process[m(0x147)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98y=a98d;(function(a,b){const v=a98d,c=a();while(!![]){try{const d=parseInt(v(
|
|
1
|
+
const a98y=a98d;(function(a,b){const v=a98d,c=a();while(!![]){try{const d=parseInt(v(0xdb))/0x1+-parseInt(v(0xda))/0x2*(parseInt(v(0xd3))/0x3)+-parseInt(v(0xfe))/0x4+parseInt(v(0xf7))/0x5+parseInt(v(0xd6))/0x6+parseInt(v(0xee))/0x7*(-parseInt(v(0xdd))/0x8)+-parseInt(v(0x105))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xb94e5));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a98d;if(c){const e=c[w(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const x=a98d;return a98a[x(0xf8)]()['search']('(((.+)+)+)+$')[x(0xf8)]()[x(0xf9)](a98a)[x(0xf3)](x(0xfc));});a98a();function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xd0;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';function a98c(){const A=['.csr','maka\x20ssl\x20--env\x20dev\x20generate-csr','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','ssl','getAppConfigPath','emailUpdate','Remote\x20host\x20connection\x20successful','appName','existsSync','7LUNwEp','genCSR','domains','getMakaProjectConfig','readFileSync','search','notice','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','[?]\x20Domains\x20to\x20register:\x20','6689010peEkfM','toString','constructor','domainNames','Create\x20and\x20manage\x20your\x20SSL\x20operations.','(((.+)+)+)+$','generate-csr','576372YILRer','Email\x20to\x20use\x20for\x20auto-updates:\x20','New\x20CSR\x20written\x20to\x20','start','ssh','error','fsi','18616203yLcccn','email','\x20--email\x20','ask','join','create','env','assign','uname\x20-a','parse','3357KVaHrl','exit','Checking\x20remote\x20host\x20availability','9041850xCQsEA','maka\x20ssl\x20[command]','success','.key','190RqfSYL','1195940rqmKVa','apply','7702712fcNsqO','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','mkKeysDir','/ssh.json','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','genSSC'];a98c=function(){return A;};return a98c();}Command[a98y(0x10a)]({'name':a98y(0xe8),'usage':a98y(0xd7),'validOpts':[a98y(0xf0),a98y(0x106)],'requiredOpts':[a98y(0x10b)],'shortDesc':a98y(0xfb),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98y(0xe6),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a98y(0xe3)]},async function(a,b){const z=a98y,c=this[z(0x104)][z(0xf1)](),d=this['fsi'][z(0xe9)](b[z(0x10b)]),f=this[z(0x104)][z(0xdf)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===z(0xfd))SSL[z(0xef)]({'keyName':c[z(0xec)]+z(0xd9),'csrName':c['appName']+'.csr','cwd':f});else{if(g==='generate-ssc'){if(!a98e[z(0xed)](a98f[z(0x109)](f,c['appName']+'.key')))throw z(0xde)+a98f[z(0x109)](f,c[z(0xec)]+'.key');if(!a98e[z(0xed)](a98f[z(0x109)](f,c[z(0xec)]+z(0xe5))))throw z(0xe2)+a98f[z(0x109)](f,c[z(0xec)]+z(0xe5));SSL[z(0xe4)]({'keyName':c[z(0xec)]+z(0xd9),'crtName':c[z(0xec)]+'.crt','cwd':f}),Log[z(0xf4)](z(0x100)+f);}else{if(g==='letsencrypt'){let h=b[z(0xf0)],i=b[z(0x106)];try{const p=a98e[z(0xf2)](a98f[z(0x109)](d,'letsencrypt.json'))[z(0xf8)](),q=JSON[z(0xd2)](p);h=b[z(0xf0)]?b[z(0xf0)]:q[z(0xfa)],i=b[z(0x106)]?b[z(0x106)]:q[z(0xea)],(!b[z(0x106)]||!b[z(0xf0)])&&Log[z(0xf4)]('Using\x20saved\x20letsencrypt\x20config');}catch(r){}const j=JSON[z(0xd2)](a98e[z(0xf2)](d+z(0xe0))[z(0xf8)]());Object[z(0xd0)](j,{'env':d}),Log['notice'](z(0xd5));try{const s=SSH['ping'](z(0xd1),j);if(!s)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(s)Log[z(0xd8)](z(0xeb));}catch(t){Log[z(0x103)](t);return;}const k=Log['withSpinner']();k[z(0x101)]('Verifying\x20Letsencrypt\x20configuration'),SSH[z(0x102)](z(0xe1),{...j}),SSH[z(0x102)]('sudo\x20snap\x20install\x20--classic\x20certbot',{...j}),SSH[z(0x102)](z(0xf5),{...j}),k[z(0xd8)]();const l=h?h:await Actions['ask'](z(0xf6)),m=i?i:await Actions[z(0x108)](z(0xff));SSH[z(0x102)](z(0xe7)+l+z(0x107)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON['stringify'](n,null,0x2);a98e['writeFileSync'](a98f[z(0x109)](d,'letsencrypt.json'),o);}else throw'Please\x20provide\x20a\x20command.';}}}catch(u){console['error'](u),process[z(0xd4)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99q=a99d;(function(a,b){const m=a99d,c=a();while(!![]){try{const d
|
|
1
|
+
const a99q=a99d;(function(a,b){const m=a99d,c=a();while(!![]){try{const d=-parseInt(m(0xa9))/0x1*(parseInt(m(0xb1))/0x2)+-parseInt(m(0x9f))/0x3*(-parseInt(m(0x7e))/0x4)+-parseInt(m(0xa6))/0x5*(-parseInt(m(0xae))/0x6)+parseInt(m(0x81))/0x7+-parseInt(m(0x8e))/0x8*(parseInt(m(0x94))/0x9)+parseInt(m(0x7f))/0xa+parseInt(m(0xb3))/0xb*(-parseInt(m(0xab))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x4c3d1));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a99d;if(c){const e=c[n(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const o=a99d;return a99a['toString']()[o(0x99)](o(0x96))['toString']()[o(0x7b)](a99a)[o(0x99)](o(0x96));});a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{Command}from'../command.js';function a99c(){const t=['driver','8xNfyMv','inspect','74393uRXEdn','none','notice','.maka','error','env','join','packages','constructor','process.env','test-packages','53132HKtFuQ','3548930yacICX','isFile','2451246NRUAIT','fsi','Meteor\x20Settings:\x20','config.json','engines','port','test','tests','--env','parse','rawLogs','--driver','--settings','1328nKgjbX','findProjectDirectory','driverPackage','testAppPath','getAppConfigPath','utf8','9315ggIola','openSync','(((.+)+)+)+$','filter','forEach','search','config','--packages','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','exit','splice','141RDgegP','Cannot\x20find\x20Node\x20Environment\x20File:\x20','concat','create','warn','once','settings.json','435DuYjNb','readFileSync','slice','151304zuZMnA','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','660GBMUaL','jasmine','apply','9096KkVACK','unit'];a99c=function(){return t;};return a99c();}import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a99d;a99e[p(0x95)](a,'r'),a99g[p(0x9a)]({'path':a});};function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x79;let f=c[d];return f;},a99d(a,b);}Command[a99q(0xa2)]({'name':a99q(0x87),'mustBeInMakaProject':!![],'validOpts':[a99q(0xa4),'packages',a99q(0xb0),a99q(0x90),'unit',a99q(0xb8),a99q(0x8b),a99q(0x86),a99q(0xb2),a99q(0x91)],'usage':'maka\x20test','aliases':['t',a99q(0x88)],'shortDesc':a99q(0x9c),'examples':[]},function(a,b){const r=a99q;try{let c=this[r(0x82)][r(0x92)]('development');b[r(0xb8)]&&(c=this['fsi']['getAppConfigPath'](b[r(0xb8)]));(!b[r(0xaf)]||!!b['once'])&&(a=a['concat'](['--full-app']));b['unit']&&delete b['unit'];let d=b['driver-package']||b[r(0xb0)]||r(0xb4);if(d==='none'){const j=JSON[r(0x8a)](a99e[r(0xa7)](a99f[r(0x79)](this[r(0x82)][r(0x8f)](),r(0xb6),r(0x84)),r(0x93)));if(j[r(0x85)][r(0x87)]===r(0xac))d='sanjo:jasmine';else j[r(0x85)][r(0x87)]==='mocha'&&(d='meteortesting:mocha');}if(d===r(0xb4))throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b['driver-package']||!b[r(0xb0)])&&(a=a[r(0xa1)](['--driver-package',d]));const f=a99f[r(0x79)](c,r(0xa5));this[r(0x82)]['isFile'](f)?(Log[r(0xb5)](r(0x83)+f),a=a[r(0xa1)]([r(0x8d),f])):Log[r(0xa3)](r(0xaa)+f);const g=a99f[r(0x79)](c,r(0x7c));this[r(0x82)][r(0x80)](g)?(Log[r(0xb5)]('Node\x20Env\x20Config:\x20'+g),syncSource(g)):Log[r(0xa3)](r(0xa0)+g);const h=process['argv'][r(0xa8)](0x2)[r(0x97)](k=>k!==r(0x89))[r(0x97)](k=>k!==r(0x87))[r(0x97)](k=>k!==a[0x0]);h[r(0x98)]((k,l)=>{const s=r;(k==='--env'||k===s(0x8c))&&h['splice'](l,0x2),k===s(0x9b)&&h[s(0x9e)](l,0x1);});const i=b[r(0x7a)]?r(0x7d):r(0x87);this['fsi']['invokeMeteorCommand'](i,a[r(0xa1)](h));}catch(k){console[r(0xb7)](k),process[r(0x9d)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a100i=a100d;function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x13f;var f=c[d];return f;},a100d(a,b);}(function(a,b){var f=a100d,c=a();while(!![]){try{var d=parseInt(f(0x142))/0x1+parseInt(f(0x149))/0x2*(parseInt(f(0x151))/0x3)+-parseInt(f(0x145))/0x4+parseInt(f(0x140))/0x5+parseInt(f(0x14c))/0x6*(parseInt(f(0x144))/0x7)+-parseInt(f(0x150))/0x8*(-parseInt(f(0x141))/0x9)+-parseInt(f(0x14b))/0xa*(parseInt(f(0x14e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x75544));function a100c(){var k=['40dKUgWa','282bNDnmQ','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action','2287813TAzOTU','(((.+)+)+)+$','8QZZNbL','48VNCUFn','create','3795535yApDco','2261934PZoSAV','54374GLitph','constructor','42798AICFQJ','2127508aedNkt','apply','search','toString','61528Xavggr','undo'];a100c=function(){return k;};return a100c();}var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a['toString']()[h(0x147)](h(0x14f))[h(0x148)]()[h(0x143)](a100a)[h(0x147)](h(0x14f));});a100a();import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';Command[a100i(0x13f)]({'name':a100i(0x14a),'aliases':['u'],'validOpts':[],'shortDesc':a100i(0x14d)},async function(){var j=a100i;a100e[j(0x14a)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d
|
|
1
|
+
function a101c(){const p=['maka\x20version','System\x27s\x20Meteor\x20Version\x20','error','N/A','System\x27s\x20Node\x20Version\x20',')\x20to\x20at\x20least\x20meteor\x27s\x20(','verbose','270467qyYjbY','4883984LHZRUP','543boYuOA','maka\x20v','6385244afhoMF','search','5805010bquBLl','maka\x20version\x20--verbose','warn','8004402qsxEEw','5854XYFFBJ','bright','fsi','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','17706xtBUfp','1480QAVKWW','getGlobalMeteorVersion','exit','(((.+)+)+)+$','Project\x27s\x20Meteor\x20Version\x20','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','getProjectsMeteorNodeVersion','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','----------------------System----------------------------','replace','compareMakaToLatest','create','getProjectMeteorVersion','version','Project\x27s\x20Meteor\x20Node\x20Version\x20','16YZGsKR','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','toString','apply'];a101c=function(){return p;};return a101c();}const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x119))/0x1+parseInt(k(0x123))/0x2*(-parseInt(k(0x11b))/0x3)+-parseInt(k(0x11d))/0x4+parseInt(k(0x128))/0x5*(parseInt(k(0x127))/0x6)+parseInt(k(0x11a))/0x7+parseInt(k(0x10e))/0x8*(parseInt(k(0x122))/0x9)+-parseInt(k(0x11f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xdf1a8));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a['toString']()['search'](m(0x12b))[m(0x110)]()['constructor'](a101a)[m(0x11e)](m(0x12b));});a101a();import{execSync}from'child_process';import a101e from'semver';import{Command}from'../command.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x10a;let f=c[d];return f;},a101d(a,b);}import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.12.21'};Command[a101n(0x10a)]({'name':a101n(0x10c),'aliases':['v'],'usage':a101n(0x112),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a101n(0x12d),'examples':[a101n(0x11c),a101n(0x112),a101n(0x120)],'description':'\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20'},async function(a,b){const o=a101n;try{const c=this[o(0x125)]['getMeteorExePath']();Log['majestic']('Maka\x20'+pjson[o(0x10c)]),await this[o(0x125)][o(0x132)]();if(b[o(0x118)]){await this['fsi'][o(0x132)](),Log[o(0x124)](o(0x130));const d=this[o(0x125)][o(0x129)]();Log[o(0x124)]((o(0x113)+d)[o(0x131)]('\x0a',''));const f=execSync(c+'\x20node\x20-v')[o(0x110)]()[o(0x131)](/\r?\n|\r/,'')[o(0x131)]('v','');Log['bright'](o(0x126)+f);const g=execSync('node\x20-v')[o(0x110)]()[o(0x131)](/\r?\n|\r/,'')[o(0x131)]('v','');a101e['gt'](f,g)?(Log['warn']('System\x27s\x20Node\x20Version\x20'+g),Log[o(0x121)](o(0x12f)+g+o(0x117)+f+')')):Log[o(0x124)](o(0x116)+g);if(this[o(0x125)]['isMakaProject']()){Log[o(0x124)]('----------------------Project----------------------------');const h=this[o(0x125)][o(0x10b)]();if(!a101e['valid'](h))Log[o(0x121)](o(0x12c)+h['replace']('\x0a',''));else a101e['gt'](d,h)?(Log[o(0x121)](o(0x12c)+h['replace']('\x0a','')),Log[o(0x121)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice']((o(0x12c)+h)[o(0x131)]('\x0a',''));const i=await this[o(0x125)][o(0x12e)]();i===o(0x115)?(Log['warn'](o(0x10d)+i),Log[o(0x121)](o(0x10f))):Log[o(0x124)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log['bright']('\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');}}}catch(j){console[o(0x114)](j),process[o(0x12a)](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(0x1ec))/0x1+-parseInt(f(0x1e9))/0x2*(-parseInt(f(0x1e3))/0x3)+-parseInt(f(0x1eb))/0x4+-parseInt(f(0x1e6))/0x5*(parseInt(f(0x1e4))/0x6)+-parseInt(f(0x1ed))/0x7*(-parseInt(f(0x1e5))/0x8)+parseInt(f(0x1e8))/0x9+parseInt(f(0x1e2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x3a80a));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0x1ea)]()['search'](h(0x1ee))[h(0x1ea)]()[h(0x1ef)](a102a)['search'](h(0x1ee));});a102a();export class UsageError{}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x1e2;var f=c[d];return f;},a102d(a,b);}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}function a102c(){var i=['1280288LCEXBU','342352Ghzesc','13853ODBuxW','(((.+)+)+)+$','constructor','2423220obrCpi','27003IQFqIv','603222ZCwIWK','752TBQvEA','5CumyCt','apply','4115034VzEGKB','26fHxUsS','toString'];a102c=function(){return i;};return a102c();}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x112;var f=c[d];return f;},a103d(a,b);}var a103i=a103d;(function(a,b){var f=a103d,c=a();while(!![]){try{var d=-parseInt(f(0x11d))/0x1*(-parseInt(f(0x117))/0x2)+-parseInt(f(0x118))/0x3+-parseInt(f(0x11c))/0x4+-parseInt(f(0x113))/0x5*(-parseInt(f(0x11f))/0x6)+-parseInt(f(0x115))/0x7+-parseInt(f(0x119))/0x8+-parseInt(f(0x114))/0x9*(-parseInt(f(0x116))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x8b312));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0x11a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a['toString']()[h(0x11b)]('(((.+)+)+)+$')[h(0x120)]()[h(0x11e)](a103a)[h(0x11b)]('(((.+)+)+)+$');});a103a(),process['env'][a103i(0x112)]=a103i(0x121);function a103c(){var j=['38IGUDyj','constructor','30RyQaFK','toString','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','NODE_OPTIONS','429945jZoGJU','27drpvlu','5610710uyGyOP','6409310JESUSy','12476nNZNeD','993033dqGunv','4794600JOGVeS','apply','search','1151144rxJDFt'];a103c=function(){return j;};return a103c();}import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0xdc))/0x1*(parseInt(r(0xfb))/0x2)+parseInt(r(0xd5))/0x3+parseInt(r(0x97))/0x4+-parseInt(r(0xdd))/0x5*(-parseInt(r(0xfe))/0x6)+parseInt(r(0xe3))/0x7*(parseInt(r(0x11b))/0x8)+parseInt(r(0xd4))/0x9*(-parseInt(r(0xe2))/0xa)+-parseInt(r(0xf9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xb2d37));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(0xb1)]()['search'](s(0x103))['toString']()['constructor'](a104a)[s(0xcf)]('(((.+)+)+)+$');});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x97;let f=c[d];return f;},a104d(a,b);}a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const t=a104d,c=process[t(0xee)]();let d=null;try{process[t(0xeb)](a),d=await b();}finally{process[t(0xeb)](c);}return d;}function a104c(){const M=['requiredEngines','search','\x20not\x20found.\x20Cannot\x20undo.','getGlobalConfig','pop','.maka','7255179fZBThk','1625526HEpmJg','find','server','list','sep','addToHistory','noNeedResource','3250vZhFLa','345gzeTfM','Generator.create\x20requires\x20some\x20options!','Generator\x20','stringify','Generator\x20requires\x20a\x20handler\x20function','10UoXsKQ','497eHEFQC','transactionId','usage','forEach','error','assign','undo','dir','chdir','aliases','processAndRunGenerator','cwd','function','generatorName','help','Description','history.json','config','exit','Generator\x20format\x20is\x20incorrect','DARK','replace','23575288GtnwQr','There\x20is\x20no\x20Meteor\x20application\x20here','196acShpX','both','\x20not\x20found','75366hsfSsq','size','No\x20resource\x20name\x20specified','minArgLength','Generators:','(((.+)+)+)+$','fsi','where','LIGHT','message','light','mustHaveMeteorInstalled','validateParams','Generator\x20not\x20found','filter','statSync','deepen','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Generator\x20requires\x20a\x20name','bright','length','Too\x20few\x20options','_handler','appPathPrefix','keys','validateEngines','slice','_historyFilePath','create','85216SjPueC','Both','validateMakaProject','validateMeteorInstall','_genTransactionId','4793868BBjzZe','mustBeInMakaProject','includes','opts','Location','Too\x20few\x20arguments','findGeneratorByName','pathFromProject','minOptsLength','root','_generators','findProjectDirectory','Alias','invoke','shift','checkWhere','readFileSync','bind','client','details','name','params','lib','Too\x20many\x20options','from','setColorMode','toString','push','shortDesc','options','parse','Nothing\x20to\x20undo.','Generator.create\x20requires\x20a\x20handler\x20function!','fullNameChain','_undoHandler','pallet','warn','writeFileSync','utf-8','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','notice','Server','readHistory','match','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','tableList','existsSync','number','resourceName','call','join','No\x20undo\x20handler\x20defined\x20for\x20','split','addGenerator','writeHistory'];a104c=function(){return M;};return a104c();}export class Generator extends Tool{[a104u(0xb4)];[a104u(0xb8)];[a104u(0xa1)];[a104u(0x119)];[a104u(0xb9)];[a104u(0x11f)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[v(0xab)])throw new Error(v(0x110));if(typeof b!==v(0xef))throw new Error(v(0xe1));this[v(0xa1)]=[],this[v(0xb4)]=Object[v(0xe8)]({},a),this[v(0xab)]=this[v(0xb4)]['name'],this['_handler']=b[v(0xa8)](this);try{this[v(0x119)]=this[v(0x104)][v(0x9e)]({'pathParts':['.maka',v(0xf3)]})||a104e[v(0xc9)]('.',v(0xd3),'history.json');}catch(d){Log[v(0xe7)](d);}c&&(this[v(0xb9)]=c['bind'](this));}['getHistoryFileSize'](){const w=a104u;if(a104f[w(0xc5)](this[w(0x119)])){const a=a104f[w(0x10d)](this[w(0x119)]);return a[w(0xff)];}return 0x0;}[a104u(0xc1)](){const x=a104u;if(!a104f['existsSync'](this[x(0x119)]))return[];return JSON[x(0xb5)](a104f[x(0xa7)](this['_historyFilePath'],x(0xbd)));}['writeHistory'](a){const y=a104u;this[y(0x119)]&&!a104f[y(0xc5)](this['_historyFilePath'])&&a104f['writeFileSync'](this[y(0x119)],JSON[y(0xe0)]([])),a104f[y(0xbc)](this[y(0x119)],JSON[y(0xe0)](a,null,0x2));}['addToHistory'](a){const z=a104u;try{a?.['params']?.[z(0x9a)][z(0xf4)]&&delete a[z(0xac)][z(0x9a)]['config'];const b=this[z(0xc1)](),c={'generatorName':this[z(0xb8)],'transactionId':TRANSACTION_ID,'details':a};b[z(0xb2)](c);const d=Buffer[z(0xaf)](JSON[z(0xe0)](b))['length'];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[z(0xa5)]();}this['writeHistory'](b);}catch(f){Log[z(0xe7)](f);}}async[a104u(0xe9)](){const A=a104u,a=this[A(0xc1)]();if(a[A(0x112)]===0x0){Log['warn'](A(0xb6));return;}const b=a[A(0xd2)](),c=b[A(0xe4)],d=a[A(0x10c)](e=>e[A(0xe4)]===c);d[A(0xb2)](b),d['reverse']();for(const e of d){const f=this[A(0x9d)](e[A(0xf0)]);if(!f){Log[A(0xe7)](A(0xdf)+e['generatorName']+A(0xd0));continue;}f[A(0xb9)]?await f[A(0xb9)](e['details']):Log[A(0xbb)](A(0xca)+e[A(0xf0)]+'\x20generator.\x20Skipping\x20undo.');}this[A(0xcd)](a['filter'](g=>g[A(0xe4)]!==c));}static[a104u(0x11a)](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0xde));if(typeof b!==B(0xef))throw new Error(B(0xb7));const e=new Generator(a,b);c&&(e[B(0xb9)]=c['bind'](e));d=d||a104i;const f=d?d[B(0xb8)]:'';return e[B(0xb8)]=f?f+':'+a[B(0xab)]:a[B(0xab)],Object[B(0xe8)](e,{'parent':d?.[B(0xb4)]?.['name']}),d[B(0xcc)](e),e;}[a104u(0xcc)](a){const C=a104u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[C(0xa1)][C(0xb2)](a);}async[a104u(0xed)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.[D(0xcb)](':');if(!f||f[D(0x112)]===0x0)throw D(0xf6);let g=this[D(0xa1)],h;for(const i of f){h=g[D(0xd6)](j=>j[D(0xc2)](i));if(!h)throw D(0xdf)+i+'\x20not\x20found';await this['validateMakaSubscription'](h),g=h[D(0xa1)];}if(h)d=await h[D(0xa4)](b,c);else throw D(0x10b);}catch(j){Log['error'](j);}return d;}[a104u(0x9d)](a){const E=a104u,b=a?.[E(0xcb)](':');if(!b||b[E(0x112)]===0x0)return Log['error'](E(0xf6)),null;let c=this[E(0xa1)],d;for(const e of b){d=c['find'](f=>f[E(0xc2)](e));if(!d)return Log[E(0xe7)](E(0xdf)+e+E(0xfd)),null;c=d['_generators'];}return d||null;}async[a104u(0xa4)](a,b){const F=a104u,c=a[F(0x118)]();b[F(0xc7)]=c[0x0];try{const d=await this[F(0x104)][F(0xd1)](),f=d[F(0xba)]===F(0x108)?ColorMode[F(0x106)]:ColorMode[F(0xf7)];Log[F(0xb0)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[F(0x112)]===0x0&&this[F(0xa1)][F(0x112)]>=0x0,h=b[F(0xf1)]||b['h'];if(g&&h){if(this[F(0xa1)][F(0x112)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0xb4)][F(0x98)]){const i=this[F(0x11d)]();if(!i)throw new MustBeInProjectError();}if(this['options'][F(0x109)]){const j=this[F(0x11e)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0xb4)]['minArgLength']===F(0xc6)){if(a[F(0x112)]<this[F(0xb4)][F(0x101)]){Log[F(0xe7)](F(0x9c));throw new UsageError();}}if(typeof this[F(0xb4)]['maxArgLength']===F(0xc6)){if(a[F(0x112)]>this[F(0xb4)]['maxArgLength']){Log[F(0xe7)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options']['minOptsLength']===F(0xc6)){if(Object[F(0x116)](b)['length']<this['options'][F(0x9f)]){Log[F(0xe7)](F(0x113));throw new UsageError();}}if(typeof this[F(0xb4)]['maxOptsLength']===F(0xc6)){if(Object[F(0x116)](b)[F(0x112)]>=this[F(0xb4)]['maxOptsLength']){Log[F(0xe7)](F(0xae));throw new UsageError();}}}this[F(0xb4)][F(0xce)]&&this[F(0x117)](this[F(0xb4)][F(0xce)]);await this[F(0x10a)](a,b,this[F(0xb4)]);if(!b[F(0xc7)]&&!this[F(0xb4)][F(0xdb)]){Log[F(0xe7)](F(0x100));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[F(0xf5)](0x1);}return await inside(b[F(0xee)],async()=>{const G=F;try{if(!b[G(0xa0)]&&!this[G(0x104)][G(0xa2)]())throw new MustBeInProjectError();const l=b[G(0xc7)]?.[G(0xf8)](/\\/g,'/')[G(0xcb)]('/');!b[G(0xea)]&&(l?.[G(0x112)]>0x1?(b[G(0xc7)]=l['pop'](),c[0x0]=b[G(0xc7)],b[G(0xea)]=l['map'](n=>{return paramCase(n);})[G(0xc9)](a104e[G(0xd9)])):b[G(0xea)]='');if(this[G(0xb4)][G(0xa6)]){if(!b[G(0x105)]){const o={'type':G(0xd8),'name':'colLocAnswer','message':G(0x9b),'choices':[{'name':'Client','value':'client'},{'name':G(0xc0),'value':'server'},{'name':G(0x11c),'value':'both'}]},{colLocAnswer:p}=await Actions[G(0xb4)](o);p?b[G(0x105)]=p:b[G(0x105)]=G(0xfc);}const n=['both','client',G(0xd7)];if(!n[G(0x99)](b[G(0x105)])){Log['error'](G(0xbe));throw new UsageError();}switch(b['where']){case G(0xfc):b[G(0x115)]=G(0xad);break;case G(0xd7):b[G(0x115)]='server';break;case G(0xa9):b[G(0x115)]=G(0xa9);break;default:b[G(0x115)]='';}}const m=await this[G(0x114)][G(0xc8)](this,c,b);return m&&this[G(0xda)]({'params':{'args':c,'opts':this[G(0x104)][G(0x10e)](b)},'success':m?.['success'],'message':m?.[G(0x107)],'details':m?.[G(0xaa)]}),m;}catch(q){this['handleGenerateError'](q);}});}['listGenerators'](){const H=a104u;this[H(0xc4)](this[H(0xa1)]);}['handleGenerateError'](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log[I(0xe5)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[I(0xbf)](I(0x102)),this[I(0xc4)](this[I(0xa1)]);else{if(a instanceof MustBeInProjectError)Log[I(0xe7)](I(0xc3));else{if(a instanceof NoMeteorFoundError)Log['error'](I(0x10f)),Log[I(0xbf)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[I(0xe7)](I(0xfa));}}}['tableList'](a){const J=a104u,b=new a104g({});b['push'](['Name',J(0xa3),J(0xf2)]),a['sort']((c,d)=>{const K=J;return c[K(0xab)]['localeCompare'](d[K(0xab)]);})[J(0xe6)](c=>{const L=J;b[L(0xb2)]([c[L(0xab)],c[L(0xec)](),c[L(0xb3)]()]);}),Log[J(0x111)](b[J(0xb1)]());}}
|
|
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 +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(0x173))/0x1*(-parseInt(f(0x177))/0x2)+parseInt(f(0x17e))/0x3+parseInt(f(0x179))/0x4+-parseInt(f(0x172))/0x5*(parseInt(f(0x178))/0x6)+parseInt(f(0x176))/0x7*(-parseInt(f(0x175))/0x8)+parseInt(f(0x17c))/0x9*(parseInt(f(0x17f))/0xa)+parseInt(f(0x180))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x4f5a1));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a[h(0x17a)]()[h(0x17b)](h(0x171))['toString']()[h(0x174)](a105a)[h(0x17b)](h(0x171));});a105a();function a105c(){var i=['266SsfxiI','6sWTNhv','499464SoKQJW','toString','search','333NGTEwe','apply','419739ZDGdEY','114480UrxUfJ','9024026TtxmZq','(((.+)+)+)+$','2067955HjzUpZ','1689zMdLCy','constructor','1936HhnNdR','15778iSyyIh'];a105c=function(){return i;};return a105c();}import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x171;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
|
-
function a106c(){const B=['.
|
|
1
|
+
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=-parseInt(v(0x19e))/0x1+-parseInt(v(0x1ae))/0x2*(parseInt(v(0x19a))/0x3)+-parseInt(v(0x173))/0x4+parseInt(v(0x1aa))/0x5+-parseInt(v(0x19c))/0x6*(parseInt(v(0x1ab))/0x7)+-parseInt(v(0x1a4))/0x8+parseInt(v(0x1a5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xe9f5a));function a106c(){const B=['854318tVvLxW','api/resolvers.js','if\x20\x5c(typeList','injectAtBeginningOfFile','checkMeteorPackage','fsi','4396432UBAGDl','25891038tHlnRd','push','engines','\x0aimport\x20{\x20resolvers\x20as\x20','typeDefs.','1751405FvDmXk','7tnxuWW','tsx','index.','2HLagzA','pathFromApp','checkbox','API\x20Version?\x20[v1]','injectAtEndOfFile','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','none','dir','resourceName','-rpc-methods.','maka:rest','-api.','typeList.push(','startup','test','withRest','mdg:validated-method','register-','template','457364LngIuE','withValue','imports','GraphQL','No\x20API\x20boundaries\x20selected','import\x20{\x20typeDefs\x20as\x20','-rest-api.','withGql','setProjectConfig','getMakaProjectConfig','includes','graphql','apiAnswers','const','resolverList.push(','/graphql/typeDefs','search','\x27;\x0a','api/tests.js','-api\x27;','resolvers.','api/api.js','(((.+)+)+)+$','ddp-rate-limiter','error','Resolvers);\x0a\x0a','constructor','api','api/typeDefs.js','API\x20boundaries\x20to\x20create','\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','/imports/api/','create','apply','toString','maka\x20g:api\x20Todos','rewriteDestinationPathForEngine','/graphql/resolvers','rest','2014881SUQYFB','server','473550yutEwo','withMethods'];a106c=function(){return B;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x195)]()[x(0x183)]('(((.+)+)+)+$')['toString']()[x(0x18d)](a106a)['search'](x(0x189));});function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x163;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';Generator[a106y(0x193)]({'name':a106y(0x18e),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a106y(0x165),'validOpts':[a106y(0x167)],'examples':[a106y(0x196)],'description':a106y(0x191)},async function(a,b){const z=a106y;try{const c=this[z(0x1a3)][z(0x17c)](),d=[{'name':'RPC\x20(Methods)','value':z(0x19d)}];d[z(0x1a6)]({'name':'REST\x20API','value':z(0x16f)});c[z(0x1a7)][z(0x17e)]==='apollo'&&d[z(0x1a6)]({'name':z(0x176),'value':z(0x17a)});const f={'type':z(0x1b0),'name':z(0x17f),'message':z(0x190),'pageSize':0x64,'choices':d},g=await Actions['ask'](z(0x163))||'v1',{apiAnswers:h}=await Actions['options'](f);h['length']===0x0&&(Log['error'](z(0x177)),process['exit'](0x1)),await this[z(0x1a3)][z(0x174)](c,async()=>{const A=z,i=b[A(0x168)],j=paramCase(i),k=camelCase(i),l=b[A(0x167)]?'/'+b[A(0x167)]+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x1a7)]['api'],'graphql':c[A(0x1a7)][A(0x17e)],'test':c[A(0x1a7)][A(0x16e)],'noRename':!![],'withMethods':h[A(0x17d)]('withMethods'),'withRest':h['includes'](A(0x16f))};let n='js';c['engines']['js']===A(0x1ac)&&(n='ts');m[A(0x16f)]&&(this[A(0x1a3)][A(0x17b)]({'engines':{'api':A(0x199)}}),await this[A(0x1a3)][A(0x1a2)]([A(0x16a),'ddp-rate-limiter',A(0x170)],{'shouldInstall':!![]}),await this[A(0x1a3)][A(0x172)]({'srcPath':A(0x188),'destPath':this[A(0x1a3)][A(0x1af)]({'pathParts':['imports',A(0x18e),g,b['dir'],j,j+'-'+g+A(0x179)+n]}),'context':m,'config':c}));m[A(0x19d)]&&(await this[A(0x1a3)][A(0x1a2)]([A(0x18a),A(0x170)],{'shouldInstall':!![]}),await this[A(0x1a3)][A(0x172)]({'srcPath':'api/methods.js','destPath':this[A(0x1a3)][A(0x1af)]({'pathParts':[A(0x175),A(0x18e),g,b[A(0x167)],j,j+'-'+g+A(0x169)+n]}),'context':m,'config':c}));c['engines'][A(0x16e)]!==A(0x166)&&await this[A(0x1a3)]['template']({'srcPath':A(0x185),'destPath':this[A(0x1a3)][A(0x1af)]({'pathParts':[A(0x175),A(0x18e),g,b[A(0x167)],j,j+'-'+g+'.app-tests.'+n]}),'context':m,'config':c});if(c[A(0x1a7)][A(0x17e)]==='apollo'){if(h[A(0x17d)](A(0x17a))){const p=this['fsi']['pathFromApp']({'pathParts':[A(0x175),A(0x16d),'server',A(0x1ad)+c[A(0x1a7)]['js']]}),q=this[A(0x1a3)][A(0x197)]({'pathParts':[p],'config':c}),r=this['fsi'][A(0x1af)]({'pathParts':[A(0x175),A(0x18e),g,b['dir'],j,A(0x17e),A(0x1a9)+n]}),s=A(0x192)+g+l+j+A(0x182);await this['fsi'][A(0x172)]({'srcPath':A(0x18f),'destPath':r,'context':m,'config':c}),await this[A(0x1a3)][A(0x1a1)]({'filePath':q,'content':A(0x178)+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0x184)}),await this[A(0x1a3)]['injectIntoFile']({'filePath':q,'content':A(0x16c)+k+'TypeDefs);\x0a','begin':A(0x180),'end':A(0x1a0)});const t=this['fsi'][A(0x1af)]({'pathParts':['imports','api',g,b['dir'],j,A(0x17e),A(0x187)+n]}),u=A(0x192)+g+l+j+A(0x198);await this['fsi'][A(0x172)]({'srcPath':A(0x19f),'destPath':t,'context':m,'config':c}),await this['fsi'][A(0x1a1)]({'filePath':q,'content':A(0x1a8)+k+'Resolvers\x20}\x20from\x20\x27'+u+'\x27;'}),await this['fsi']['injectIntoFile']({'filePath':q,'content':A(0x181)+k+A(0x18c),'begin':'const','end':A(0x1a0)});}}await this[A(0x1a3)]['template']({'srcPath':'api/register-api.js','destPath':this[A(0x1a3)][A(0x1af)]({'pathParts':[A(0x175),'startup',A(0x19b),A(0x171)+j+A(0x16b)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x1a3)]['pathFromApp']({'pathParts':['imports',A(0x16d),A(0x19b),A(0x1ad)+c['engines']['js']]});await this['fsi'][A(0x164)]({'filePath':o,'content':'import\x20\x27./register-'+j+A(0x186)});});}catch(i){console[z(0x18b)](i),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d
|
|
1
|
+
function a107c(){const p=['import\x20\x27./collections','test','apply','880883kLDWQT','resourceName','search','fsi','144TiQrbj','appPathPrefix','checkMeteorPackage','5930729dkRfgI','6264828dpqLzH','index.','1426791ZnBYhb','\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','toString','6306700UFNxpQ','collection/collection.js','pathFromApp','startup','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','mongo','withValue','engines','tsx','.app-tests.','4FmVdWY','imports','none','template','where','209285deKKPu','collection','constructor','col','11hnoAUS','collections','8YuJYAb','3133688hAAHmV','dir'];a107c=function(){return p;};return a107c();}const a107m=a107d;function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x66;let f=c[d];return f;},a107d(a,b);}(function(a,b){const j=a107d,c=a();while(!![]){try{const d=-parseInt(j(0x72))/0x1+parseInt(j(0x89))/0x2*(parseInt(j(0x7c))/0x3)+parseInt(j(0x6d))/0x4+-parseInt(j(0x66))/0x5*(parseInt(j(0x76))/0x6)+parseInt(j(0x79))/0x7*(parseInt(j(0x6c))/0x8)+parseInt(j(0x7a))/0x9+-parseInt(j(0x7f))/0xa*(parseInt(j(0x6a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xb9fea));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x71)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a[l(0x7e)]()[l(0x74)]('(((.+)+)+)+$')[l(0x7e)]()[l(0x68)](a107a)[l(0x74)]('(((.+)+)+)+$');});a107a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a107m(0x67),'aliases':[a107m(0x69)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a107m(0x83),'validOpts':[a107m(0x6e),a107m(0x8d)],'description':a107m(0x7d),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a107m;try{const c=this['fsi']['getMakaProjectConfig']();await this[n(0x75)][n(0x85)](c,async()=>{const o=n,d=paramCase(b['resourceName']),f={'name':pascalCase(b[o(0x73)]),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b[o(0x8d)],'test':c[o(0x86)][o(0x70)],'noRename':!![]};let g='js';c[o(0x86)]['js']===o(0x87)&&(g='ts');await this[o(0x75)][o(0x78)]([o(0x84)],{'shouldInstall':!![]}),await this[o(0x75)][o(0x8c)]({'srcPath':o(0x80),'destPath':this[o(0x75)][o(0x81)]({'pathParts':[o(0x8a),o(0x82),b[o(0x77)],o(0x6b),b[o(0x6e)],d+'.'+g]}),'context':f,'config':c});c[o(0x86)]['test']!==o(0x8b)&&await this[o(0x75)][o(0x8c)]({'srcPath':'collection/tests.js','destPath':this['fsi'][o(0x81)]({'pathParts':[o(0x8a),o(0x82),b['appPathPrefix'],'collections',b['dir'],d+o(0x88)+g]}),'context':f,'config':c});const h=b[o(0x6e)]?'/'+b[o(0x6e)]+'/':'/',i=this[o(0x75)][o(0x81)]({'pathParts':[o(0x8a),o(0x82),b[o(0x77)],o(0x7b)+c[o(0x86)]['js']]});await this['fsi']['injectAtEndOfFile']({'filePath':i,'content':o(0x6f)+h+d+'\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108n=a108d;(function(a,b){const k=a108d,c=a();while(!![]){try{const d=parseInt(k(
|
|
1
|
+
const a108n=a108d;function a108c(){const q=['theme','checkNpmPackage','error','comp','injectTemplateModule','withValue','none','css','withTranslations','react','(((.+)+)+)+$','root','features','8RhrwFR','baseDir','className','713419IHbMtr','94265loKpTR','constructor','component/component.js','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','resourceName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','setTemplate','engines','dir','86187tVZQar','getMakaProjectConfig','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','/imports/ui/','.tests.js','relative','string','component','pathFromApp','116757jRQsuz','template','graphql','import\x20\x27./','279072UzoxGt','maka\x20g:comp\x20todos/todos-item','pathFromProject','.js','47089aaAdHy','12hNmWKw','709044OkbnVh','create','test','fsi','apply','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','.css','160HwpyOu','search','ramda','test/test.js','true','api','fileName'];a108c=function(){return q;};return a108c();}(function(a,b){const k=a108d,c=a();while(!![]){try{const d=parseInt(k(0x15d))/0x1+parseInt(k(0x15e))/0x2*(parseInt(k(0x187))/0x3)+parseInt(k(0x194))/0x4+parseInt(k(0x17e))/0x5+parseInt(k(0x15f))/0x6+-parseInt(k(0x17d))/0x7*(parseInt(k(0x17a))/0x8)+parseInt(k(0x190))/0x9*(-parseInt(k(0x166))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x1c825));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x15d;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a108d;if(c){const e=c[l(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const m=a108d;return a108a['toString']()[m(0x167)]('(((.+)+)+)+$')['toString']()[m(0x17f)](a108a)['search'](m(0x177));});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(0x170)];Generator[a108n(0x160)]({'name':a108n(0x18e),'aliases':aliases,'usage':a108n(0x164),'shortDesc':a108n(0x181),'validOpts':[{'name':'baseDir'}],'examples':[a108n(0x195)]},async function(a,b){const o=a108n;try{const c=this['fsi']['findAppDirectory'](),d=b[o(0x17b)]?o(0x18a)+b['baseDir']:'/imports/ui/components',f=this[o(0x162)][o(0x18f)]({'pathParts':[d,b['dir'],paramCase(b[o(0x182)]),paramCase(b['resourceName'])]}),g=await this[o(0x162)][o(0x188)]();await this[o(0x162)][o(0x172)](g,async()=>{const p=o;typeof g[p(0x191)][p(0x161)]===p(0x18d)&&(g[p(0x191)]['test']=g[p(0x191)][p(0x161)]===p(0x16a)?!![]:![],this[p(0x162)][p(0x184)](p(0x161),g[p(0x191)][p(0x161)]));typeof g[p(0x191)][p(0x174)]===p(0x18d)&&(g['template'][p(0x174)]=g['template'][p(0x174)]==='true'?!![]:![],this[p(0x162)][p(0x184)]('css',g['template'][p(0x174)]));typeof g[p(0x191)]['js']===p(0x18d)&&(g['template']['js']=g[p(0x191)]['js']===p(0x16a)?!![]:![],this['fsi'][p(0x184)]('js',g[p(0x191)]['js']));!g[p(0x179)]&&(g['features']={});!b['root']&&!this['fsi'][p(0x16e)](p(0x168))&&(Log['warn'](p(0x189)),await this[p(0x162)]['installNpmPackage'](p(0x168),{'cwd':c}));if(!b[p(0x178)]&&!this[p(0x162)]['checkNpmPackage']('react')){Log['error'](p(0x183));return;}const h={'name':pascalCase(b[p(0x182)]),'myPath':a108e[p(0x18c)](this[p(0x162)][p(0x196)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[p(0x182)]),'camelCaseName':camelCase(b[p(0x182)]),'fileName':paramCase(b[p(0x182)]),'graphql':g[p(0x185)][p(0x192)],'features':g[p(0x179)],'client':g['engines']['client'],'api':g['engines'][p(0x16b)],'ssr':g['engines']['ssr'],'test':g[p(0x185)][p(0x161)],'theme':g[p(0x185)][p(0x16d)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x179)][p(0x175)]};await this[p(0x162)][p(0x191)]({'srcPath':p(0x180),'destPath':f+p(0x197),'context':h,'framework':p(0x176),'config':g});g[p(0x185)][p(0x161)]!==p(0x173)&&await this[p(0x162)][p(0x191)]({'srcPath':p(0x169),'destPath':f+p(0x18b),'context':h,'framework':p(0x176),'config':g});g[p(0x191)][p(0x174)]&&(await this[p(0x162)][p(0x191)]({'srcPath':'template/template.css','destPath':f+p(0x165),'context':Object['assign']({},h,{'className':paramCase(b[p(0x182)])}),'config':g}),await this[p(0x162)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[p(0x185)]['js'],'content':p(0x193)+h['cssCaseName']+'.'+g[p(0x185)][p(0x174)]+'\x27;'}));const i=b['dir']?'/'+b[p(0x186)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[p(0x16c)];await this[p(0x162)][p(0x171)](h[p(0x17c)],g,j);});}catch(h){Log[o(0x16f)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d
|
|
1
|
+
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x117))/0x1*(-parseInt(h(0x124))/0x2)+-parseInt(h(0x118))/0x3*(parseInt(h(0x130))/0x4)+parseInt(h(0x123))/0x5+parseInt(h(0x113))/0x6+-parseInt(h(0x12e))/0x7*(parseInt(h(0x114))/0x8)+parseInt(h(0x116))/0x9+-parseInt(h(0x12f))/0xa*(-parseInt(h(0x11f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x8b15c));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x11e)]()['search']('(((.+)+)+)+$')[j(0x11e)]()['constructor'](a109a)['search'](j(0x125));});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x113;let f=c[d];return f;},a109d(a,b);}function a109c(){const n=['resourceName','prod','ubuntu','settings.json','config','maka\x20{generate,\x20g}:{config}\x20<name>','getMakaProjectConfig','3814342jWwVlK','588890xdIYIP','25892KdaZzi','process.env','config/process.env','642156pSrNkG','8TFUlml','config/settings.json','3990006IhOxLt','13pNvXSG','117QnheBt','apply','create','Generate\x20configuration\x20settings.','maka\x20g:config\x20production','fsi','toString','143SsTZZu','withValue','isDocker','pathFromProject','2657975nYlBgn','73918dPuhTg','(((.+)+)+)+$','dev'];a109c=function(){return n;};return a109c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109k(0x11a)]({'name':'config','usage':a109k(0x12c),'shortDesc':a109k(0x11b),'validOpts':['isDocker'],'examples':[a109k(0x11c)]},async function(a,b){const l=a109k,c=this[l(0x11d)][l(0x12d)]();await this[l(0x11d)][l(0x120)](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[m(0x127)]),'fileName':paramCase(b[m(0x127)]),'camelCase':camelCase(b[m(0x127)]),'userName':m(0x129),'isDocker':b[m(0x121)]};let e=b[m(0x127)];if(e===m(0x126))e='development';else e===m(0x128)&&(e='production');const f=this[m(0x11d)][m(0x122)]({'pathParts':[m(0x12b),e,m(0x12a)]});await this[m(0x11d)]['template']({'srcPath':m(0x115),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x11d)][m(0x122)]({'pathParts':[m(0x12b),e,m(0x131)]});await this['fsi']['template']({'srcPath':m(0x132),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110m=a110d;function a110c(){const p=['mssql','-dbc\x27;','maka\x20g:dbc\x20todos\x20--type=sqlite','index.','engines','getMakaProjectConfig','constructor','conn.','resourceName','import\x20\x27./register-','server','toString','pathFromApp','fsi','template','dbc/conn.js','392772TInQHw','176JenHDc','21606jmckex','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','tsx','1475372TjtXaO','withValue','1426249eQeaCQ','installNpmPackage','apply','type','imports','injectAtEndOfFile','2990940QXVySQ','maka\x20g:dbc\x20azure\x20--type=mssql','better-sqlite3','sqlite','(((.+)+)+)+$','warn','-dbc.','4338628jarxYE','18mNyLbr','dbc/register-dbc.js','dir','6NjinNx','dbc','checkNpmPackage','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20geoserver\x20--type=pgsql','2488776IcQnsN','config.','startup','10JlYqHg'];a110c=function(){return p;};return a110c();}(function(a,b){const j=a110d,c=a();while(!![]){try{const d=-parseInt(j(0x1c8))/0x1+parseInt(j(0x1c9))/0x2*(parseInt(j(0x1ca))/0x3)+-parseInt(j(0x1cd))/0x4+parseInt(j(0x1d5))/0x5+parseInt(j(0x1af))/0x6*(parseInt(j(0x1dc))/0x7)+parseInt(j(0x1b4))/0x8*(-parseInt(j(0x1dd))/0x9)+-parseInt(j(0x1b7))/0xa*(parseInt(j(0x1cf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x5297c));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0x1c3)]()['search'](l(0x1d9))[l(0x1c3)]()[l(0x1be)](a110a)['search'](l(0x1d9));});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-0x1ae;let f=c[d];return f;},a110d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a110m(0x1b0),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':['pgsql',a110m(0x1b8),a110m(0x1d8)]}],'examples':[a110m(0x1b3),a110m(0x1d6),a110m(0x1ba)]},async function(a,b){const n=a110m;try{const c=await this['fsi'][n(0x1bd)](),d=this[n(0x1c5)]['pathFromApp']({}),f=paramCase(b[n(0x1c0)]),g={'name':pascalCase(b[n(0x1c0)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0x1c0)]),'type':b[n(0x1d2)],'engine':c[n(0x1bc)]['js'],'noRename':!![]};await this['fsi'][n(0x1ce)](c,async()=>{const o=n;let h='js';c[o(0x1bc)]['js']===o(0x1cc)&&(h='ts');b[o(0x1d2)]==='pgsql'&&!this['fsi'][o(0x1b1)]('pg')&&(Log[o(0x1da)](o(0x1b2)),await this[o(0x1c5)][o(0x1d0)]('pg',{'cwd':d}));b[o(0x1d2)]===o(0x1b8)&&!this['fsi'][o(0x1b1)](o(0x1b8))&&(Log[o(0x1da)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[o(0x1c5)][o(0x1d0)](o(0x1b8),{'cwd':d}));b['type']===o(0x1d8)&&!this[o(0x1c5)][o(0x1b1)](o(0x1d7))&&(Log[o(0x1da)](o(0x1cb)),await this[o(0x1c5)][o(0x1d0)](o(0x1d7),{'cwd':d}));await this[o(0x1c5)]['template']({'srcPath':'dbc/config.js','destPath':this[o(0x1c5)][o(0x1c4)]({'pathParts':[o(0x1d3),o(0x1b6),o(0x1c2),o(0x1b0),b[o(0x1ae)],f,o(0x1b5)+h]}),'context':g,'config':c}),await this['fsi']['template']({'srcPath':o(0x1c7),'destPath':this[o(0x1c5)][o(0x1c4)]({'pathParts':[o(0x1d3),o(0x1b6),o(0x1c2),o(0x1b0),b[o(0x1ae)],f,o(0x1bf)+h]}),'context':g,'config':c}),await this['fsi'][o(0x1c6)]({'srcPath':o(0x1de),'destPath':this[o(0x1c5)]['pathFromApp']({'pathParts':[o(0x1d3),o(0x1b6),'server','register-'+f+o(0x1db)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x1c4)]({'pathParts':['imports',o(0x1b6),o(0x1c2),o(0x1bb)+c[o(0x1bc)]['js']]});await this['fsi'][o(0x1d4)]({'filePath':i,'content':o(0x1c1)+f+o(0x1b9)});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111k=a111d;(function(a,b){const h=a111d,c=a();while(!![]){try{const d=parseInt(h(0x1c8))/0x1*(parseInt(h(0x1bb))/0x2)+parseInt(h(0x1b3))/0x3*(parseInt(h(0x1c6))/0x4)+-parseInt(h(0x1c5))/0x5*(parseInt(h(0x1c4))/0x6)+-parseInt(h(0x1c9))/0x7*(-parseInt(h(0x1c1))/0x8)+parseInt(h(0x1c2))/0x9*(parseInt(h(0x1cc))/0xa)+parseInt(h(0x1cb))/0xb+-parseInt(h(0x1b0))/0xc*(parseInt(h(0x1b5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xb3ff6));function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a111d(a,b);}const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a111d;if(c){const e=c[i(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const j=a111d;return a111a[j(0x1ae)]()[j(0x1b6)](j(0x1ad))[j(0x1ae)]()['constructor'](a111a)['search'](j(0x1ad));});function a111c(){const n=['apply','160fqxoML','333pXpWaW','findProjectDirectory','6DZVhhb','2846255aySlvJ','275692QByXVY','app','1378326jBBBRD','342104hajNtj','dockerfile','7008111RxcaSq','78930BGHulP','Generate\x20an\x20updated\x20dockerfile','withValue','maka\x20g:dockerfile','(((.+)+)+)+$','toString','create','38628012quIXBr','getMakaProjectConfig','docker/Dockerfile','54SYtjAI','force','13qqNfKH','search','join','cert','fsi','Dockerfile','2Rpyzdh','error','getGlobalConfig','app.tar.gz','build'];a111c=function(){return n;};return a111c();}a111a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a111e from'path';Generator[a111k(0x1af)]({'name':a111k(0x1ca),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a111k(0x1aa),'validOpts':[{'name':a111k(0x1b4),'boolFlag':!![]}],'noNeedResource':!![],'examples':[a111k(0x1ac)]},async function(a,b){const l=a111k;try{const c=await this[l(0x1b9)][l(0x1b1)](),d=await this[l(0x1b9)][l(0x1bd)](),f=this[l(0x1b9)][l(0x1c3)]();await this[l(0x1b9)][l(0x1ab)](c,async()=>{const m=l,g={'app':d['appName'],'config':c,'appPath':a111e[m(0x1b7)](f,m(0x1c7)),'bundlePath':a111e[m(0x1b7)](f,m(0x1bf),m(0x1be)),'useCert':this[m(0x1b9)]['isFile'](d[m(0x1b8)])};await this['fsi']['template']({'srcPath':m(0x1b2),'destPath':a111e['join'](f,m(0x1ba)),'framework':'service','context':g,'config':c,'force':b[m(0x1b4)]});});}catch(g){Log[l(0x1bc)](g);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a112o=a112d;(function(a,b){const l=a112d,c=a();while(!![]){try{const d=-parseInt(l(0x1a7))/0x1+parseInt(l(0x199))/0x2*(-parseInt(l(0x1a6))/0x3)+-parseInt(l(0x19e))/0x4*(parseInt(l(0x1ba))/0x5)+-parseInt(l(0x1ab))/0x6*(-parseInt(l(0x18f))/0x7)+parseInt(l(0x1b8))/0x8*(-parseInt(l(0x1b6))/0x9)+-parseInt(l(0x196))/0xa+parseInt(l(0x1a5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xa207b));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a112d;if(c){const e=c[m(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const n=a112d;return a112a[n(0x187)]()['search']('(((.+)+)+)+$')['toString']()[n(0x1b3)](a112a)[n(0x180)]('(((.+)+)+)+$');});a112a();function a112c(){const r=['7AurPXa','baseDir','withValue','none','.js','notice','@apollo/client\x20isomorphic-fetch','13172010pqCdNr','components','Creating\x20','106822jGpjfk','features','force','findAppDirectory','hook/hook.js','556KheyNS','react','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','\x20hook...','css','installNpmPackage','35105092VThZWK','9dwjqkZ','829912tKwYBx','@apollo/client','pathFromProject','apply','5541660QsLAhh','.app-tests.js','injectTemplateModule','true','resourceName','apollo','graphql','template/template.css','constructor','theme','create','2034099KmXeTn','string','24IGMBzd','template','16760ExCzEy','injectAtBeginningOfFile','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','error','className','search','\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','fsi','assign','test','setTemplate','test/test.js','toString','engines','layouts','dir','cssCaseName','/imports/ui/components','hooks','fileName'];a112c=function(){return r;};return a112c();}import a112e from'path';import{paramCase,pascalCase,camelCase}from'change-case';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x17f;let f=c[d];return f;},a112d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a112o(0x1b5)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':a112o(0x1a1),'shortDesc':a112o(0x1bc),'validOpts':[{'name':a112o(0x190),'values':[a112o(0x18d),a112o(0x197),'pages',a112o(0x189)]},{'name':a112o(0x19b),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':a112o(0x181)},async function(a,b){const p=a112o;Log[p(0x194)](p(0x198)+b[p(0x1af)]+p(0x1a2));try{const c=this[p(0x182)]['checkNpmPackage'](p(0x19f));if(!c){Log[p(0x1bd)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[p(0x182)][p(0x19c)](),f=b[p(0x190)]?'/imports/ui/'+b['baseDir']:p(0x18c),g=this[p(0x182)]['pathFromApp']({'pathParts':[f,b[p(0x18a)],paramCase(b[p(0x1af)]),paramCase(b[p(0x1af)])]}),h=await this['fsi']['getMakaProjectConfig']();await this[p(0x182)][p(0x191)](h,async()=>{const q=p;typeof h[q(0x1b9)]['css']===q(0x1b7)&&(h[q(0x1b9)][q(0x1a3)]=h[q(0x1b9)][q(0x1a3)]===q(0x1ae)?!![]:![],this['fsi'][q(0x185)](q(0x1a3),h[q(0x1b9)]['css']));h['engines']['graphql']===q(0x1b0)&&!this['fsi']['checkNpmPackage'](q(0x1a8))&&(Log['warn'](q(0x1a0)),await this[q(0x182)][q(0x1a4)](q(0x195),{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x1af)]),'camelCaseName':camelCase(b[q(0x1af)]),'className':pascalCase(b[q(0x1af)]),'name':pascalCase(b[q(0x1af)]),'graphql':h[q(0x188)][q(0x1b1)],'theme':h[q(0x188)][q(0x1b4)],'features':h[q(0x19a)],'myPath':a112e['relative'](this['fsi'][q(0x1a9)]({}),g),'fileName':paramCase(b[q(0x1af)]),'isComponent':![],'isLayout':![],'withTranslations':h[q(0x19a)]['withTranslations']};await this[q(0x182)][q(0x1b9)]({'srcPath':q(0x19d),'destPath':g+q(0x193),'context':i,'config':h,'framework':'react','force':b[q(0x19b)]});h['template'][q(0x1a3)]&&(await this[q(0x182)][q(0x1b9)]({'srcPath':q(0x1b2),'destPath':g+'.css','context':Object[q(0x183)]({},i,{'className':i[q(0x18b)]}),'config':h,'force':b[q(0x19b)]}),await this['fsi'][q(0x1bb)]({'filePath':g+'.'+h[q(0x188)]['js'],'content':'import\x20\x27./'+i[q(0x18e)]+'.'+h[q(0x188)][q(0x1a3)]+'\x27;'}));h[q(0x188)][q(0x184)]!==q(0x192)&&await this['fsi'][q(0x1b9)]({'srcPath':q(0x186),'destPath':g+q(0x1ac),'framework':q(0x19f),'context':i,'config':h,'force':b[q(0x19b)]});const j=b[q(0x18a)]?'/'+b[q(0x18a)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[q(0x18e)];await this[q(0x182)][q(0x1ad)](i[q(0x17f)],h,k);});}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0xda;var f=c[d];return f;},a113d(a,b);}(function(a,b){var f=a113d,c=a();while(!![]){try{var d=-parseInt(f(0xdf))/0x1*(-parseInt(f(0xe1))/0x2)+parseInt(f(0xe5))/0x3*(parseInt(f(0xde))/0x4)+parseInt(f(0xe2))/0x5*(parseInt(f(0xe7))/0x6)+-parseInt(f(0xe0))/0x7+-parseInt(f(0xdb))/0x8+parseInt(f(0xe4))/0x9+parseInt(f(0xda))/0xa*(parseInt(f(0xdd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xb42ee));var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a[h(0xe3)]()['search'](h(0xe6))[h(0xe3)]()[h(0xdc)](a113a)['search'](h(0xe6));});function a113c(){var i=['275LOTyEA','2169928fypGjJ','738982pWklcF','10096541fIaZqh','2kQTikk','42530ENGNFL','toString','339309SDMoaK','3YGdXFm','(((.+)+)+)+$','12AowtmQ','apply','750310DdlDlB','8252472BSeBUU','constructor'];a113c=function(){return i;};return a113c();}a113a();import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';import'./auth/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a114d,c=a();while(!![]){try{var d=parseInt(f(0x8b))/0x1*(parseInt(f(0x8a))/0x2)+parseInt(f(0x84))/0x3+parseInt(f(0x87))/0x4+-parseInt(f(0x82))/0x5+-parseInt(f(0x85))/0x6+parseInt(f(0x83))/0x7*(-parseInt(f(0x86))/0x8)+parseInt(f(0x81))/0x9*(parseInt(f(0x7f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xb143c));var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0x88)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a[h(0x89)]()[h(0x7e)](h(0x8c))['toString']()[h(0x80)](a114a)['search']('(((.+)+)+)+$');});a114a();function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0x7e;var f=c[d];return f;},a114d(a,b);}import'./auth.generator.js';function a114c(){var i=['9526307TwAxfR','963234dYdQVw','8478816rgvaEa','8xOHFvb','843852HEWjSJ','apply','toString','8ufKuTa','228993OSobrH','(((.+)+)+)+$','search','1893370ZwYTFo','constructor','99gTMoBi','153035qqShyg'];a114c=function(){return i;};return a114c();}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
|
+
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0x1b9))/0x1+parseInt(f(0x1b7))/0x2*(-parseInt(f(0x1b6))/0x3)+parseInt(f(0x1b3))/0x4*(-parseInt(f(0x1bc))/0x5)+parseInt(f(0x1b5))/0x6+-parseInt(f(0x1be))/0x7*(parseInt(f(0x1ba))/0x8)+-parseInt(f(0x1af))/0x9+parseInt(f(0x1b4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x73717));function a115c(){const k=['apply','\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x20\x20','search','895887QkKOVz','Starting\x20point\x20for\x20generating\x20an\x20Auth\x20Provider','(((.+)+)+)+$','create','8GDOiQu','30671050zgqmOw','3203808eOukKM','321xauktX','15856UpttbJ','constructor','924127JjTtGN','2973872akIqrC','maka\x20g:kit:a','2211295gRjDXq','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:<kit-name>','7coAvGa','toString','NIE'];a115c=function(){return k;};return a115c();}const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0x1aa)]()[h(0x1ae)]('(((.+)+)+)+$')[h(0x1aa)]()[h(0x1b8)](a115a)[h(0x1ae)](h(0x1b1));});a115a();import{Generator}from'../../../generator.js';import a115e from'../kit.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a115d(a,b);}const AuthGen=Generator[a115i(0x1b2)]({'name':'auth','aliases':['a'],'usage':a115i(0x1bd),'noNeedResource':!![],'shortDesc':a115i(0x1b0),'validOpts':[''],'isPro':!![],'examples':[a115i(0x1bb)],'description':a115i(0x1ad)},async function(){const j=a115i;throw j(0x1ab);},async function(){},a115e);export default AuthGen;
|