@maka/maka-cli 4.12.21 → 4.12.23
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 a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=-parseInt(f(0x1dc))/0x1+-parseInt(f(0x1e8))/0x2*(-parseInt(f(0x1e9))/0x3)+-parseInt(f(0x1e7))/0x4+parseInt(f(0x1e5))/0x5+parseInt(f(0x1db))/0x6*(-parseInt(f(0x1df))/0x7)+-parseInt(f(0x1eb))/0x8+-parseInt(f(0x1de))/0x9*(-parseInt(f(0x1e2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xd17c3));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a[h(0x1e3)]()[h(0x1e4)]('(((.+)+)+)+$')[h(0x1e3)]()[h(0x1ea)](a96a)['search']('(((.+)+)+)+$');});function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1db;let f=c[d];return f;},a96d(a,b);}a96a();import{Command}from'../../command.js';function a96c(){const k=['create','4094280XbfqeI','98kikFHe','38757istpSB','constructor','6353200NjsfpB','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','runSubCommand','2838gQQkRF','2622bfzbhI','findSubCommand','18000351ioGSEN','1687WUDvpr','apply','\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','10bDgbsS','toString','search','796580lRlHaH'];a96c=function(){return k;};return a96c();}const SetCommand=Command[a96i(0x1e6)]({'name':'set','usage':'maka\x20set:<sub-command>','shortDesc':a96i(0x1ec),'description':a96i(0x1e1),'validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0x1dd)](c);d&&this[j(0x1ed)](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97n=a97d;function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xe9;let f=c[d];return f;},a97d(a,b);}(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0xf9))/0x1+-parseInt(k(0xee))/0x2*(-parseInt(k(0xf8))/0x3)+parseInt(k(0x107))/0x4*(-parseInt(k(0xf0))/0x5)+parseInt(k(0x103))/0x6*(-parseInt(k(0xea))/0x7)+-parseInt(k(0x102))/0x8*(-parseInt(k(0xe9))/0x9)+parseInt(k(0x105))/0xa*(-parseInt(k(0xf7))/0xb)+parseInt(k(0xf6))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x81ff7));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x100)]()[m(0xf1)](m(0xfc))[m(0x100)]()[m(0xfd)](a97a)[m(0xf1)](m(0xfc));});a97a();import a97e from'fs';import a97f from'path';import{Command}from'../command.js';function a97c(){const p=['69051hMFkVb','972301lzQxMf','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','fsi','(((.+)+)+)+$','constructor','ssh.json','exit','toString','apply','5035656UChfeJ','1014gqwzFQ','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','6770660wvSYDS','env','48nDrXMs','verbose','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','getEnvFromShorthand','9LsgBtl','6349ESeimH','join','ssh','parse','32uUTTFN','getAppConfigPath','319815UOOKIC','search','error','maka\x20ssh\x20--env\x20prod','length','maka\x20ssh\x20--env\x20staging','1924152NaCtos','11NOESyB'];a97c=function(){return p;};return a97c();}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command['create']({'name':a97n(0xec),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a97n(0x106)],'validOpts':[a97n(0x106),a97n(0x108)],'shortDesc':a97n(0x109),'examples':['maka\x20ssh\x20--env\x20dev',a97n(0xf5),a97n(0xf3),a97n(0x104),a97n(0xfa),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22']},async function(a,b){const o=a97n;try{const c=this[o(0xfb)][o(0x10a)](b[o(0x106)]),d=this['fsi'][o(0xef)](c);let f='';a[o(0xf4)]>0x0&&(f=a[0x0]);const g=a97f[o(0xeb)](c,o(0xfe)),h=a97e['readFileSync'](g)[o(0x100)](),i=JSON[o(0xed)](h);Object['assign'](i,{'env':d}),SSH['sshSync'](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0x108)]});}catch(j){Log[o(0xf2)](j),process[o(0xff)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98y=a98d;(function(a,b){const
|
|
1
|
+
function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x199;let f=c[d];return f;},a98d(a,b);}const a98y=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=parseInt(w(0x1cf))/0x1+parseInt(w(0x1bc))/0x2+-parseInt(w(0x1ae))/0x3+parseInt(w(0x1a9))/0x4+parseInt(w(0x1cd))/0x5*(parseInt(w(0x1c5))/0x6)+-parseInt(w(0x1cc))/0x7*(parseInt(w(0x1ca))/0x8)+-parseInt(w(0x19c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xc631c));const a98b=(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;};}()),a98a=a98b(this,function(){const x=a98d;return a98a[x(0x19f)]()[x(0x1a7)]('(((.+)+)+)+$')[x(0x19f)]()[x(0x1bd)](a98a)[x(0x1a7)](x(0x1c4));});a98a();import a98e from'fs';function a98c(){const A=['1204080UyFGIp','maka\x20ssl\x20[command]','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','exit','join','507531RNbEmh','letsencrypt','.csr','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','genCSR','readFileSync','writeFileSync','email','env','getAppConfigPath','notice','maka\x20ssl\x20--env\x20dev\x20generate-csr','error','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','329064avlwac','constructor','letsencrypt.json','fsi','generate-ssc','ping','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','genSSC','(((.+)+)+)+$','7315158CkLwtK','.key','withSpinner','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','.crt','5664yIiIFa','parse','3346bySigF','5rYhhsL','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','954865YelkAf','start','uname\x20-a','Please\x20provide\x20a\x20command.','appName','Verifying\x20Letsencrypt\x20configuration','assign','/ssh.json','Email\x20to\x20use\x20for\x20auto-updates:\x20','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','\x20--email\x20','mkKeysDir','ask','11881845TpKuCf','getMakaProjectConfig','existsSync','toString','stringify','success','domainNames','Using\x20saved\x20letsencrypt\x20config','ssh','Remote\x20host\x20connection\x20successful','domains','search','Create\x20and\x20manage\x20your\x20SSL\x20operations.'];a98c=function(){return A;};return a98c();}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':'ssl','usage':a98y(0x1aa),'validOpts':[a98y(0x1a6),'email'],'requiredOpts':['env'],'shortDesc':a98y(0x1a8),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98y(0x1b9),a98y(0x1bb),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const z=a98y,c=this[z(0x1bf)][z(0x19d)](),d=this['fsi']['getEnvFromShorthand'](b[z(0x1b6)]),f=this[z(0x1bf)][z(0x1b7)](d),g=this[z(0x1bf)][z(0x19a)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h==='generate-csr')SSL[z(0x1b2)]({'keyName':c[z(0x1d3)]+z(0x1c6),'csrName':c[z(0x1d3)]+'.csr','cwd':g});else{if(h===z(0x1c0)){if(!a98e[z(0x19e)](a98f[z(0x1ad)](g,c['appName']+z(0x1c6))))throw z(0x1ce)+a98f[z(0x1ad)](g,c[z(0x1d3)]+z(0x1c6));if(!a98e[z(0x19e)](a98f[z(0x1ad)](g,c['appName']+z(0x1b0))))throw z(0x1c8)+a98f['join'](g,c[z(0x1d3)]+z(0x1b0));SSL[z(0x1c3)]({'keyName':c['appName']+'.key','crtName':c[z(0x1d3)]+z(0x1c9),'cwd':g}),Log[z(0x1b8)]('New\x20CSR\x20written\x20to\x20'+g);}else{if(h===z(0x1af)){let i=b[z(0x1a6)],j=b[z(0x1b5)];try{const q=a98e[z(0x1b3)](a98f[z(0x1ad)](f,z(0x1be)))[z(0x19f)](),r=JSON['parse'](q);i=b[z(0x1a6)]?b[z(0x1a6)]:r[z(0x1a2)],j=b['email']?b[z(0x1b5)]:r['emailUpdate'],(!b[z(0x1b5)]||!b[z(0x1a6)])&&Log[z(0x1b8)](z(0x1a3));}catch(s){}const k=JSON[z(0x1cb)](a98e[z(0x1b3)](f+z(0x1d6))['toString']());Object[z(0x1d5)](k,{'env':f}),Log[z(0x1b8)]('Checking\x20remote\x20host\x20availability');try{const t=SSH[z(0x1c1)](z(0x1d1),k);if(!t)throw z(0x1d8);if(t)Log[z(0x1a1)](z(0x1a5));}catch(u){Log[z(0x1ba)](u);return;}const l=Log[z(0x1c7)]();l[z(0x1d0)](z(0x1d4)),SSH[z(0x1a4)](z(0x1c2),{...k}),SSH['ssh']('sudo\x20snap\x20install\x20--classic\x20certbot',{...k}),SSH[z(0x1a4)](z(0x1ab),{...k}),l[z(0x1a1)]();const m=i?i:await Actions[z(0x19b)]('[?]\x20Domains\x20to\x20register:\x20'),n=j?j:await Actions['ask'](z(0x1d7));SSH['ssh'](z(0x1b1)+m+z(0x199)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[z(0x1a0)](o,null,0x2);a98e[z(0x1b4)](a98f[z(0x1ad)](f,z(0x1be)),p);}else throw z(0x1d2);}}}catch(v){console[z(0x1ba)](v),process[z(0x1ac)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99q=a99d;(function(a,b){const
|
|
1
|
+
const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x1a0))/0x1*(parseInt(n(0x1c3))/0x2)+parseInt(n(0x1c0))/0x3*(-parseInt(n(0x195))/0x4)+-parseInt(n(0x1b1))/0x5*(parseInt(n(0x1a9))/0x6)+parseInt(n(0x1ae))/0x7+parseInt(n(0x1c7))/0x8*(parseInt(n(0x1b9))/0x9)+-parseInt(n(0x1b0))/0xa*(-parseInt(n(0x1b6))/0xb)+-parseInt(n(0x18c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x999a4));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const o=a99d;return a99a[o(0x1ad)]()[o(0x1a8)]('(((.+)+)+)+$')[o(0x1ad)]()[o(0x184)](a99a)[o(0x1a8)](o(0x19e));});function a99c(){const t=['196168BMpVvY','join','2770fMLBGG','84965hWxhDB','invokeMeteorCommand','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','tests','process.env','26873xmqmfA','notice','error','2151CDHOUI','development','getAppConfigPath','rawLogs','concat','parse','fsi','938271ktrUWb','jasmine','inspect','244klMxZh','Cannot\x20find\x20Node\x20Environment\x20File:\x20','Node\x20Env\x20Config:\x20','config','12184mqdwmT','--driver','--driver-package','driver','engines','sanjo:jasmine','constructor','create','argv','filter','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','port','test-packages','driverPackage','504648eeTwtG','meteortesting:mocha','readFileSync','testAppPath','slice','test','--settings','once','env','4sicrLj','--full-app','--packages','splice','none','getEnvFromShorthand','mocha','unit','isFile','(((.+)+)+)+$','exit','8916aNVCLf','utf8','Meteor\x20Settings:\x20','.maka','warn','--env','packages','forEach','search','414EJrDTn','config.json','openSync','driver-package','toString'];a99c=function(){return t;};return a99c();}a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x183;let f=c[d];return f;},a99d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a99d;a99e[p(0x1ab)](a,'r'),a99g[p(0x1c6)]({'path':a});};Command[a99q(0x185)]({'name':a99q(0x191),'mustBeInMakaProject':!![],'validOpts':[a99q(0x193),a99q(0x1a6),a99q(0x1ca),a99q(0x18b),a99q(0x19c),a99q(0x194),a99q(0x1bc),a99q(0x189),a99q(0x1c2),a99q(0x18f)],'usage':'maka\x20test','aliases':['t',a99q(0x1b4)],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a99q;try{const c=b[r(0x194)]?this['fsi'][r(0x19a)](b[r(0x194)]):r(0x1ba),d=this[r(0x1bf)][r(0x1bb)](c);(!b[r(0x19c)]||!!b['once'])&&(a=a[r(0x1bd)]([r(0x196)]));b[r(0x19c)]&&delete b[r(0x19c)];let f=b['driver-package']||b[r(0x1ca)]||r(0x199);if(f==='none'){const k=JSON[r(0x1be)](a99e[r(0x18e)](a99f[r(0x1af)](this[r(0x1bf)]['findProjectDirectory'](),r(0x1a3),r(0x1aa)),r(0x1a1)));if(k['engines'][r(0x191)]===r(0x1c1))f=r(0x183);else k[r(0x1cb)][r(0x191)]===r(0x19b)&&(f=r(0x18d));}if(f===r(0x199))throw r(0x188);(!b[r(0x1ac)]||!b['driver'])&&(a=a[r(0x1bd)]([r(0x1c9),f]));const g=a99f[r(0x1af)](d,'settings.json');this[r(0x1bf)][r(0x19d)](g)?(Log[r(0x1b7)](r(0x1a2)+g),a=a[r(0x1bd)]([r(0x192),g])):Log['warn'](r(0x1b3)+g);const h=a99f[r(0x1af)](d,r(0x1b5));this['fsi']['isFile'](d)?(Log[r(0x1b7)](r(0x1c5)+h),syncSource(h)):Log[r(0x1a4)](r(0x1c4)+h);const i=process[r(0x186)][r(0x190)](0x2)['filter'](l=>l!==r(0x1a5))[r(0x187)](l=>l!==r(0x191))['filter'](l=>l!==a[0x0]);i[r(0x1a7)]((l,m)=>{const s=r;(l==='--env'||l===s(0x1c8))&&i[s(0x198)](m,0x2),l===s(0x197)&&i[s(0x198)](m,0x1);});const j=b[r(0x1a6)]?r(0x18a):r(0x191);this[r(0x1bf)][r(0x1b2)](j,a['concat'](i));}catch(l){console[r(0x1b8)](l),process[r(0x19f)](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(0xc6))/0x1*(parseInt(f(0xc2))/0x2)+parseInt(f(0xcb))/0x3+-parseInt(f(0xc7))/0x4+-parseInt(f(0xd0))/0x5+parseInt(f(0xc4))/0x6+-parseInt(f(0xcd))/0x7*(-parseInt(f(0xc5))/0x8)+-parseInt(f(0xd1))/0x9*(parseInt(f(0xcf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x40066));var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a['toString']()[h(0xcc)](h(0xc9))['toString']()['constructor'](a100a)[h(0xcc)](h(0xc9));});function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0xc2;var f=c[d];return f;},a100d(a,b);}a100a();import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';function a100c(){var k=['search','84dYmwEb','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action','10fSXlUV','424130mYDEhM','2393649UGeWoE','8362jgzRhv','undo','2075340RAbBYE','229904kYIpdV','31XCWomx','975784QEnYOS','create','(((.+)+)+)+$','apply','109866wltdwo'];a100c=function(){return k;};return a100c();}Command[a100i(0xc8)]({'name':a100i(0xc3),'aliases':['u'],'validOpts':[],'shortDesc':a100i(0xce)},async function(){var j=a100i;a100e[j(0xc3)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x1bb))/0x1*(parseInt(k(0x1d1))/0x2)+parseInt(k(0x1e1))/0x3*(-parseInt(k(0x1c4))/0x4)+-parseInt(k(0x1e8))/0x5*(parseInt(k(0x1cd))/0x6)+parseInt(k(0x1cc))/0x7*(-parseInt(k(0x1df))/0x8)+-parseInt(k(0x1d5))/0x9*(parseInt(k(0x1e2))/0xa)+-parseInt(k(0x1ce))/0xb+parseInt(k(0x1be))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xe1b7e));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a['toString']()['search']('(((.+)+)+)+$')[m(0x1c3)]()[m(0x1e3)](a101a)['search']('(((.+)+)+)+$');});a101a();function a101c(){const p=['19224392QSlOFS','valid','\x20node\x20-v','264434zulRza','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','Project\x27s\x20Meteor\x20Version\x20','apply','9zPlHub','\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','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','Maka\x20','replace','notice','error','majestic','getProjectMeteorVersion','bright','560SirQzt','getGlobalMeteorVersion','3CtzCWd','10789190gNImuL','constructor','System\x27s\x20Meteor\x20Version\x20','----------------------System----------------------------',')\x20to\x20at\x20least\x20meteor\x27s\x20(','compareMakaToLatest','5qxbhFl','create','13OLCWTF','fsi','Project\x27s\x20Meteor\x20Node\x20Version\x20','51247872qDOqsB','verbose','maka\x20version','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','System\x27s\x20Node\x20Version\x20','toString','1808428PbQZVx','maka\x20version\x20--verbose','node\x20-v','exit','----------------------Project----------------------------','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','version','warn','98574cWCVwF','4802982HKYizy'];a101c=function(){return p;};return a101c();}import{execSync}from'child_process';import a101e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1ba;let f=c[d];return f;},a101d(a,b);}const pjson={'version':'4.12.23'};Command[a101n(0x1ba)]({'name':a101n(0x1ca),'aliases':['v'],'usage':a101n(0x1c0),'maxArgLength':0x1,'validOpts':[a101n(0x1bf)],'shortDesc':a101n(0x1d7),'examples':['maka\x20v',a101n(0x1c0),a101n(0x1c5)],'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(0x1bc)]['getMeteorExePath']();Log[o(0x1dc)](o(0x1d8)+pjson['version']),await this[o(0x1bc)][o(0x1e7)]();if(b[o(0x1bf)]){await this[o(0x1bc)][o(0x1e7)](),Log[o(0x1de)](o(0x1e5));const d=this[o(0x1bc)][o(0x1e0)]();Log[o(0x1de)]((o(0x1e4)+d)[o(0x1d9)]('\x0a',''));const f=execSync(c+o(0x1d0))[o(0x1c3)]()[o(0x1d9)](/\r?\n|\r/,'')[o(0x1d9)]('v','');Log['bright'](o(0x1c1)+f);const g=execSync(o(0x1c6))[o(0x1c3)]()[o(0x1d9)](/\r?\n|\r/,'')[o(0x1d9)]('v','');a101e['gt'](f,g)?(Log['warn'](o(0x1c2)+g),Log[o(0x1cb)](o(0x1c9)+g+o(0x1e6)+f+')')):Log['bright'](o(0x1c2)+g);if(this[o(0x1bc)]['isMakaProject']()){Log['bright'](o(0x1c8));const h=this['fsi'][o(0x1dd)]();if(!a101e[o(0x1cf)](h))Log['warn']('Project\x27s\x20Meteor\x20Version\x20'+h[o(0x1d9)]('\x0a',''));else a101e['gt'](d,h)?(Log['warn'](o(0x1d3)+h[o(0x1d9)]('\x0a','')),Log[o(0x1cb)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log[o(0x1da)]((o(0x1d3)+h)['replace']('\x0a',''));const i=await this['fsi']['getProjectsMeteorNodeVersion']();i==='N/A'?(Log[o(0x1cb)](o(0x1bd)+i),Log['warn'](o(0x1d2))):Log[o(0x1de)](o(0x1bd)+i),Log[o(0x1de)](o(0x1d6));}}}catch(j){console[o(0x1db)](j),process[o(0x1c7)](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(0x82))/0x1+-parseInt(f(0x80))/0x2*(-parseInt(f(0x7d))/0x3)+-parseInt(f(0x7e))/0x4*(parseInt(f(0x81))/0x5)+parseInt(f(0x74))/0x6*(-parseInt(f(0x7b))/0x7)+-parseInt(f(0x76))/0x8*(parseInt(f(0x75))/0x9)+-parseInt(f(0x73))/0xa*(parseInt(f(0x83))/0xb)+parseInt(f(0x7a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x7f0f6));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x78)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a['toString']()['search'](h(0x7c))[h(0x79)]()[h(0x7f)](a102a)[h(0x77)](h(0x7c));});a102a();function a102c(){var i=['constructor','193418zxKaGb','40NLMsac','911767HGVQDp','7700814efwNqs','10QiDkcE','54kiWYkj','9tzkzhG','6541448TmsPxx','search','apply','toString','19005036jEnwcT','387044vHiFVi','(((.+)+)+)+$','3EWpGjA','28204JImRAM'];a102c=function(){return i;};return a102c();}export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x73;var f=c[d];return f;},a102d(a,b);}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-
|
|
2
|
+
function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x9b;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(0x9d))/0x1+-parseInt(f(0xa0))/0x2+-parseInt(f(0xa1))/0x3+-parseInt(f(0xa3))/0x4*(-parseInt(f(0xa4))/0x5)+-parseInt(f(0x9b))/0x6*(-parseInt(f(0x9e))/0x7)+parseInt(f(0x9f))/0x8+-parseInt(f(0xa5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x30bf1));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a[h(0xa7)]()['search'](h(0xa9))[h(0xa7)]()[h(0xa6)](a103a)[h(0xaa)](h(0xa9));});function a103c(){var j=['apply','34920jLLNgg','4319DGXoXD','1362584KNXFRQ','37516DMKVqO','358689opydvS','NODE_OPTIONS','16lPBWaW','233745BTKusP','2048670VlyKoN','constructor','toString','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','(((.+)+)+)+$','search','1686onQQOu'];a103c=function(){return j;};return a103c();}a103a(),process['env'][a103i(0xa2)]=a103i(0xa8);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
|
+
function a104c(){const L=['435729cKLoyz','fsi','getHistoryFileSize','readHistory','call','DARK','statSync','maxArgLength','Too\x20few\x20options','appPathPrefix','checkWhere','41wXEvas','size','parse','_generators','bind','server','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','colLocAnswer','undo','assign','existsSync','writeFileSync','root','addGenerator\x20requires\x20a\x20Generator\x20instance','length','from','Client','Generator\x20requires\x20a\x20name','replace','client','validateMeteorInstall','Too\x20many\x20arguments','setColorMode','Name','config','localeCompare','name','\x20not\x20found','Too\x20many\x20options','both','Generators:','toString','find','deepen','params','findProjectDirectory','list','findGeneratorByName','join','search','noNeedResource','requiredEngines','number','constructor','Generator.create\x20requires\x20a\x20handler\x20function!','split','shortDesc','error','pop','Nothing\x20to\x20undo.','fullNameChain','2861730nskWQZ','push','aliases','No\x20undo\x20handler\x20defined\x20for\x20','minOptsLength','transactionId','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','function','validateParams','filter','Generator\x20','\x20generator.\x20Skipping\x20undo.','usage','notice','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','852TpxHrh','getGlobalConfig','minArgLength','Server','success','processAndRunGenerator','_handler','invoke','mustHaveMeteorInstalled','stringify','12dFzyCw','pathFromProject','includes','sort','maxOptsLength','chdir','2440575EUapZI','dir','13561400YccDUN','5200360QVKmHz','_undoHandler','Generator\x20format\x20is\x20incorrect','Both','listGenerators','resourceName','history.json','generatorName','map','validateEngines','details','options','lib','3432seQtWQ','cwd','reverse','addGenerator','keys','opts','_genTransactionId','mustBeInMakaProject','Description','7628SKXkjN','match','Alias','Generator\x20requires\x20a\x20handler\x20function','writeHistory','tableList','shift','slice','There\x20is\x20no\x20Meteor\x20application\x20here','\x20not\x20found.\x20Cannot\x20undo.','where','bright','_historyFilePath','Generator.create\x20requires\x20some\x20options!'];a104c=function(){return L;};return a104c();}const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x1d0))/0x1*(-parseInt(r(0x23b))/0x2)+parseInt(r(0x212))/0x3*(parseInt(r(0x232))/0x4)+parseInt(r(0x222))/0x5+-parseInt(r(0x21c))/0x6*(parseInt(r(0x249))/0x7)+parseInt(r(0x225))/0x8+parseInt(r(0x203))/0x9+-parseInt(r(0x224))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x5baf6));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(0x1ef)]()[s(0x1f7)]('(((.+)+)+)+$')[s(0x1ef)]()[s(0x1fb)](a104a)[s(0x1f7)]('(((.+)+)+)+$');});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-0x1ce;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(0x233)]();let d=null;try{process[t(0x221)](a),d=await b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{[a104u(0x230)];[a104u(0x202)];[a104u(0x1d3)];[a104u(0x247)];[a104u(0x226)];[a104u(0x238)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x1d6));if(!a[v(0x1ea)])throw new Error(v(0x1e1));if(typeof b!=='function')throw new Error(v(0x23e));this[v(0x1d3)]=[],this[v(0x230)]=Object[v(0x1d9)]({},a),this[v(0x1ea)]=this[v(0x230)][v(0x1ea)],this[v(0x218)]=b[v(0x1d4)](this);try{this[v(0x247)]=this['fsi'][v(0x21d)]({'pathParts':['.maka',v(0x22b)]})||a104e[v(0x1f6)]('.','.maka',v(0x22b));}catch(d){Log[v(0x1ff)](d);}c&&(this[v(0x226)]=c[v(0x1d4)](this));}[a104u(0x24b)](){const w=a104u;if(a104f['existsSync'](this[w(0x247)])){const a=a104f[w(0x24f)](this[w(0x247)]);return a[w(0x1d1)];}return 0x0;}[a104u(0x24c)](){const x=a104u;if(!a104f[x(0x1da)](this[x(0x247)]))return[];return JSON[x(0x1d2)](a104f['readFileSync'](this[x(0x247)],'utf-8'));}[a104u(0x23f)](a){const y=a104u;this[y(0x247)]&&!a104f[y(0x1da)](this['_historyFilePath'])&&a104f[y(0x1db)](this['_historyFilePath'],JSON[y(0x21b)]([])),a104f['writeFileSync'](this[y(0x247)],JSON[y(0x21b)](a,null,0x2));}['addToHistory'](a){const z=a104u;try{a?.['params']?.[z(0x237)][z(0x1e8)]&&delete a[z(0x1f2)][z(0x237)][z(0x1e8)];const b=this[z(0x24c)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[z(0x1df)](JSON[z(0x21b)](b))['length'];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[z(0x241)]();}this[z(0x23f)](b);}catch(f){Log[z(0x1ff)](f);}}async[a104u(0x1d8)](){const A=a104u,a=this[A(0x24c)]();if(a[A(0x1de)]===0x0){Log['warn'](A(0x201));return;}const b=a['pop'](),c=b[A(0x208)],d=a[A(0x20c)](e=>e[A(0x208)]===c);d[A(0x204)](b),d[A(0x234)]();for(const e of d){const f=this['findGeneratorByName'](e[A(0x22c)]);if(!f){Log[A(0x1ff)](A(0x20d)+e[A(0x22c)]+A(0x244));continue;}f[A(0x226)]?await f[A(0x226)](e['details']):Log['warn'](A(0x206)+e[A(0x22c)]+A(0x20e));}this['writeHistory'](a[A(0x20c)](g=>g['transactionId']!==c));}static['create'](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x248));if(typeof b!==B(0x20a))throw new Error(B(0x1fc));const e=new Generator(a,b);c&&(e[B(0x226)]=c[B(0x1d4)](e));d=d||a104i;const f=d?d['fullNameChain']:'';return e['fullNameChain']=f?f+':'+a[B(0x1ea)]:a['name'],Object[B(0x1d9)](e,{'parent':d?.[B(0x230)]?.['name']}),d[B(0x235)](e),e;}['addGenerator'](a){const C=a104u;if(!(a instanceof Generator))throw new Error(C(0x1dd));this[C(0x1d3)][C(0x204)](a);}async[a104u(0x217)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.['split'](':');if(!f||f[D(0x1de)]===0x0)throw D(0x227);let g=this[D(0x1d3)],h;for(const i of f){h=g[D(0x1f0)](j=>j[D(0x23c)](i));if(!h)throw'Generator\x20'+i+D(0x1eb);await this['validateMakaSubscription'](h),g=h[D(0x1d3)];}if(h)d=await h[D(0x219)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[D(0x1ff)](j);}return d;}[a104u(0x1f5)](a){const E=a104u,b=a?.[E(0x1fd)](':');if(!b||b[E(0x1de)]===0x0)return Log['error'](E(0x227)),null;let c=this[E(0x1d3)],d;for(const e of b){d=c[E(0x1f0)](f=>f[E(0x23c)](e));if(!d)return Log['error'](E(0x20d)+e+E(0x1eb)),null;c=d[E(0x1d3)];}return d||null;}async[a104u(0x219)](a,b){const F=a104u,c=a[F(0x242)]();b['resourceName']=c[0x0];try{const d=await this[F(0x24a)][F(0x213)](),f=d['pallet']==='light'?ColorMode['LIGHT']:ColorMode[F(0x24e)];Log[F(0x1e6)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[F(0x1de)]===0x0&&this[F(0x1d3)][F(0x1de)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this['_generators'][F(0x1de)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x230)][F(0x239)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this['options'][F(0x21a)]){const j=this[F(0x1e4)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x230)][F(0x214)]===F(0x1fa)){if(a[F(0x1de)]<this[F(0x230)][F(0x214)]){Log[F(0x1ff)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x230)][F(0x250)]===F(0x1fa)){if(a[F(0x1de)]>this[F(0x230)][F(0x250)]){Log[F(0x1ff)](F(0x1e5));throw new UsageError();}}if(typeof this['options']['minOptsLength']===F(0x1fa)){if(Object[F(0x236)](b)[F(0x1de)]<this['options'][F(0x207)]){Log[F(0x1ff)](F(0x251));throw new UsageError();}}if(typeof this[F(0x230)][F(0x220)]===F(0x1fa)){if(Object[F(0x236)](b)[F(0x1de)]>=this['options'][F(0x220)]){Log[F(0x1ff)](F(0x1ec));throw new UsageError();}}}this[F(0x230)][F(0x1f9)]&&this[F(0x22e)](this[F(0x230)][F(0x1f9)]);await this[F(0x20b)](a,b,this[F(0x230)]);if(!b[F(0x22a)]&&!this[F(0x230)][F(0x1f8)]){Log[F(0x1ff)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process['exit'](0x1);}return await inside(b[F(0x233)],async()=>{const G=F;try{if(!b[G(0x1dc)]&&!this[G(0x24a)][G(0x1f3)]())throw new MustBeInProjectError();const l=b[G(0x22a)]?.[G(0x1e2)](/\\/g,'/')[G(0x1fd)]('/');!b['dir']&&(l?.[G(0x1de)]>0x1?(b[G(0x22a)]=l[G(0x200)](),c[0x0]=b[G(0x22a)],b[G(0x223)]=l[G(0x22d)](n=>{return paramCase(n);})[G(0x1f6)](a104e['sep'])):b['dir']='');if(this[G(0x230)][G(0x1cf)]){if(!b[G(0x245)]){const o={'type':G(0x1f4),'name':G(0x1d7),'message':'Location','choices':[{'name':G(0x1e0),'value':G(0x1e3)},{'name':G(0x215),'value':G(0x1d5)},{'name':G(0x228),'value':'both'}]},{colLocAnswer:p}=await Actions[G(0x230)](o);p?b[G(0x245)]=p:b[G(0x245)]='both';}const n=['both','client','server'];if(!n[G(0x21e)](b['where'])){Log[G(0x1ff)](G(0x211));throw new UsageError();}switch(b[G(0x245)]){case G(0x1ed):b[G(0x1ce)]=G(0x231);break;case G(0x1d5):b[G(0x1ce)]=G(0x1d5);break;case G(0x1e3):b['appPathPrefix']=G(0x1e3);break;default:b[G(0x1ce)]='';}}const m=await this[G(0x218)][G(0x24d)](this,c,b);return m&&this['addToHistory']({'params':{'args':c,'opts':this['fsi'][G(0x1f1)](b)},'success':m?.[G(0x216)],'message':m?.['message'],'details':m?.[G(0x22f)]}),m;}catch(q){this['handleGenerateError'](q);}});}[a104u(0x229)](){this['tableList'](this['_generators']);}['handleGenerateError'](a){const H=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[H(0x230)];Log[H(0x20f)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[H(0x210)](H(0x1ee)),this['tableList'](this[H(0x1d3)]);else{if(a instanceof MustBeInProjectError)Log['error'](H(0x209));else{if(a instanceof NoMeteorFoundError)Log[H(0x1ff)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[H(0x210)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[H(0x1ff)](H(0x243));}}}[a104u(0x240)](a){const I=a104u,b=new a104g({});b['push']([I(0x1e7),I(0x23d),I(0x23a)]),a[I(0x21f)]((c,d)=>{const J=I;return c['name'][J(0x1e9)](d['name']);})['forEach'](c=>{const K=I;b[K(0x204)]([c[K(0x1ea)],c[K(0x205)](),c[K(0x1fe)]()]);}),Log[I(0x246)](b[I(0x1ef)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a105d,c=a();while(!![]){try{var d
|
|
1
|
+
function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x12c;var f=c[d];return f;},a105d(a,b);}(function(a,b){var f=a105d,c=a();while(!![]){try{var d=-parseInt(f(0x137))/0x1*(parseInt(f(0x12c))/0x2)+parseInt(f(0x131))/0x3*(-parseInt(f(0x13a))/0x4)+-parseInt(f(0x134))/0x5+parseInt(f(0x12d))/0x6*(-parseInt(f(0x13c))/0x7)+-parseInt(f(0x133))/0x8*(parseInt(f(0x139))/0x9)+parseInt(f(0x136))/0xa*(-parseInt(f(0x138))/0xb)+parseInt(f(0x135))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x1c1c4));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a[h(0x132)]()[h(0x130)](h(0x12e))[h(0x132)]()[h(0x13b)](a105a)['search']('(((.+)+)+)+$');});a105a();import'./services/_index.js';function a105c(){var i=['68082OEhWoH','4780GlYvmM','18WzXMka','(((.+)+)+)+$','apply','search','6YxlfYY','toString','212632ApTMNr','353020GVdoPH','10376280jGtnfn','11870hfFUCn','49yohEtN','1793dkQZSY','63gwovsf','306248FpYHYI','constructor'];a105c=function(){return i;};return a105c();}import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d
|
|
1
|
+
function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x158;let f=c[d];return f;},a106d(a,b);}const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0x16a))/0x1+-parseInt(v(0x192))/0x2+parseInt(v(0x17a))/0x3+parseInt(v(0x19f))/0x4+parseInt(v(0x1a3))/0x5+parseInt(v(0x185))/0x6*(-parseInt(v(0x16c))/0x7)+parseInt(v(0x195))/0x8*(-parseInt(v(0x16f))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x9a39b));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x190)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x166)]()['search']('(((.+)+)+)+$')[x(0x166)]()[x(0x164)](a106a)[x(0x188)](x(0x16e));});a106a();function a106c(){const B=['maka:rest','No\x20API\x20boundaries\x20selected','api/register-api.js','server','rest','/imports/api/','TypeDefs\x20}\x20from\x20\x27','.app-tests.','withGql','-rpc-methods.','3192558cOtcvB','pathFromApp','const','-api\x27;','imports','checkMeteorPackage','typeList.push(','withValue','RPC\x20(Methods)','tsx','typeDefs.','6ezrhda','startup','API\x20Version?\x20[v1]','search','template','/graphql/resolvers','injectIntoFile','ddp-rate-limiter','test','injectAtEndOfFile','index.','apply','\x0aimport\x20{\x20resolvers\x20as\x20','527350BxRcDC','ask','dir','16mXzNOv','GraphQL','error','import\x20{\x20typeDefs\x20as\x20','api','TypeDefs);\x0a','length','-rest-api.','resolvers.','setProjectConfig','2484476NiQgzR','if\x20\x5c(typeList','-api.','graphql','3007550BAyTly','resolverList.push(','Resolvers);\x0a\x0a','Resolvers\x20}\x20from\x20\x27','maka\x20g:api\x20Todos','api/resolvers.js','api/typeDefs.js','resourceName','register-','fsi','injectAtBeginningOfFile','withMethods','/graphql/typeDefs','engines','includes','api/tests.js','constructor','exit','toString','apollo','push','\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','83092SBkTwG','checkbox','4139429yNlYxU','REST\x20API','(((.+)+)+)+$','3974301OVYPAV'];a106c=function(){return B;};return a106c();}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['create']({'name':a106y(0x199),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':'Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','validOpts':['dir'],'examples':[a106y(0x158)],'description':a106y(0x169)},async function(a,b){const z=a106y;try{const c=this[z(0x15d)]['getMakaProjectConfig'](),d=[{'name':z(0x182),'value':'withMethods'}];d[z(0x168)]({'name':z(0x16d),'value':'withRest'});c[z(0x161)]['graphql']===z(0x167)&&d[z(0x168)]({'name':z(0x196),'value':'withGql'});const f={'type':z(0x16b),'name':'apiAnswers','message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},g=await Actions[z(0x193)](z(0x187))||'v1',{apiAnswers:h}=await Actions['options'](f);h[z(0x19b)]===0x0&&(Log[z(0x197)](z(0x171)),process[z(0x165)](0x1)),await this['fsi'][z(0x181)](c,async()=>{const A=z,i=b[A(0x15b)],j=paramCase(i),k=camelCase(i),l=b[A(0x194)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x161)][A(0x199)],'graphql':c[A(0x161)]['graphql'],'test':c['engines'][A(0x18d)],'noRename':!![],'withMethods':h[A(0x162)]('withMethods'),'withRest':h[A(0x162)]('withRest')};let n='js';c[A(0x161)]['js']===A(0x183)&&(n='ts');m['withRest']&&(this[A(0x15d)][A(0x19e)]({'engines':{'api':A(0x174)}}),await this[A(0x15d)][A(0x17f)]([A(0x170),A(0x18c),'mdg:validated-method'],{'shouldInstall':!![]}),await this[A(0x15d)][A(0x189)]({'srcPath':'api/api.js','destPath':this[A(0x15d)][A(0x17b)]({'pathParts':[A(0x17e),A(0x199),g,b['dir'],j,j+'-'+g+A(0x19c)+n]}),'context':m,'config':c}));m[A(0x15f)]&&(await this[A(0x15d)][A(0x17f)](['ddp-rate-limiter','mdg:validated-method'],{'shouldInstall':!![]}),await this[A(0x15d)][A(0x189)]({'srcPath':'api/methods.js','destPath':this[A(0x15d)][A(0x17b)]({'pathParts':[A(0x17e),A(0x199),g,b[A(0x194)],j,j+'-'+g+A(0x179)+n]}),'context':m,'config':c}));c[A(0x161)][A(0x18d)]!=='none'&&await this['fsi'][A(0x189)]({'srcPath':A(0x163),'destPath':this[A(0x15d)][A(0x17b)]({'pathParts':['imports','api',g,b['dir'],j,j+'-'+g+A(0x177)+n]}),'context':m,'config':c});if(c[A(0x161)][A(0x1a2)]==='apollo'){if(h[A(0x162)](A(0x178))){const p=this[A(0x15d)][A(0x17b)]({'pathParts':[A(0x17e),'startup','server',A(0x18f)+c[A(0x161)]['js']]}),q=this[A(0x15d)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[A(0x15d)][A(0x17b)]({'pathParts':[A(0x17e),A(0x199),g,b[A(0x194)],j,'graphql',A(0x184)+n]}),s=A(0x175)+g+l+j+A(0x160);await this[A(0x15d)][A(0x189)]({'srcPath':A(0x15a),'destPath':r,'context':m,'config':c}),await this[A(0x15d)][A(0x15e)]({'filePath':q,'content':A(0x198)+k+A(0x176)+s+'\x27;\x0a'}),await this[A(0x15d)][A(0x18b)]({'filePath':q,'content':A(0x180)+k+A(0x19a),'begin':A(0x17c),'end':'if\x20\x5c(typeList'});const t=this['fsi'][A(0x17b)]({'pathParts':[A(0x17e),'api',g,b[A(0x194)],j,A(0x1a2),A(0x19d)+n]}),u=A(0x175)+g+l+j+A(0x18a);await this[A(0x15d)][A(0x189)]({'srcPath':A(0x159),'destPath':t,'context':m,'config':c}),await this['fsi'][A(0x15e)]({'filePath':q,'content':A(0x191)+k+A(0x1a6)+u+'\x27;'}),await this[A(0x15d)][A(0x18b)]({'filePath':q,'content':A(0x1a4)+k+A(0x1a5),'begin':A(0x17c),'end':A(0x1a0)});}}await this[A(0x15d)][A(0x189)]({'srcPath':A(0x172),'destPath':this[A(0x15d)][A(0x17b)]({'pathParts':['imports',A(0x186),A(0x173),A(0x15c)+j+A(0x1a1)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x15d)][A(0x17b)]({'pathParts':[A(0x17e),A(0x186),A(0x173),A(0x18f)+c[A(0x161)]['js']]});await this[A(0x15d)][A(0x18e)]({'filePath':o,'content':'import\x20\x27./register-'+j+A(0x17d)});});}catch(i){console['error'](i),process[z(0x165)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a107c(){const
|
|
1
|
+
const a107l=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=-parseInt(j(0x106))/0x1+parseInt(j(0x10d))/0x2*(-parseInt(j(0x116))/0x3)+parseInt(j(0x121))/0x4*(parseInt(j(0x112))/0x5)+-parseInt(j(0x118))/0x6+parseInt(j(0x114))/0x7*(-parseInt(j(0x11e))/0x8)+parseInt(j(0x10b))/0x9*(-parseInt(j(0x117))/0xa)+parseInt(j(0x109))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x8298d));function a107c(){const o=['1212890iRmYLT','3569676efKkgI','tsx','error','fsi','toString','withValue','104IibJuo','test','mongo','11996GSqvVj','pathFromApp','import\x20\x27./collections','resourceName','search','.app-tests.','getMakaProjectConfig','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','imports','maka\x20g:collection\x20todos','collections','collection','injectAtEndOfFile','where','constructor','739289NpbWEo','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','template','38273576vjIGcV','(((.+)+)+)+$','54hJdYdd','startup','1841342XOsgOc','engines','appPathPrefix','dir','collection/collection.js','170mdQZyJ','\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','34363WPturd','checkMeteorPackage','3LYExWT'];a107c=function(){return o;};return a107c();}const a107b=(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;};}()),a107a=a107b(this,function(){const k=a107d;return a107a[k(0x11c)]()[k(0xfb)](k(0x10a))['toString']()[k(0x105)](a107a)[k(0xfb)]('(((.+)+)+)+$');});a107a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xf8;let f=c[d];return f;},a107d(a,b);}Generator['create']({'name':a107l(0x102),'aliases':['col'],'usage':a107l(0x107),'checkWhere':!![],'shortDesc':a107l(0xfe),'validOpts':[a107l(0x110),a107l(0x104)],'description':a107l(0x113),'examples':[a107l(0x100)]},async function(a,b){const m=a107l;try{const c=this['fsi'][m(0xfd)]();await this[m(0x11b)][m(0x11d)](c,async()=>{const n=m,d=paramCase(b[n(0xfa)]),f={'name':pascalCase(b[n(0xfa)]),'collectionName':pascalCase(b[n(0xfa)]),'fileName':d,'where':b[n(0x104)],'test':c['engines'][n(0x11f)],'noRename':!![]};let g='js';c[n(0x10e)]['js']===n(0x119)&&(g='ts');await this[n(0x11b)][n(0x115)]([n(0x120)],{'shouldInstall':!![]}),await this[n(0x11b)]['template']({'srcPath':n(0x111),'destPath':this[n(0x11b)][n(0xf8)]({'pathParts':[n(0xff),n(0x10c),b[n(0x10f)],n(0x101),b[n(0x110)],d+'.'+g]}),'context':f,'config':c});c[n(0x10e)][n(0x11f)]!=='none'&&await this[n(0x11b)][n(0x108)]({'srcPath':'collection/tests.js','destPath':this['fsi'][n(0xf8)]({'pathParts':[n(0xff),n(0x10c),b['appPathPrefix'],n(0x101),b['dir'],d+n(0xfc)+g]}),'context':f,'config':c});const h=b[n(0x110)]?'/'+b[n(0x110)]+'/':'/',i=this[n(0x11b)]['pathFromApp']({'pathParts':[n(0xff),'startup',b[n(0x10f)],'index.'+c[n(0x10e)]['js']]});await this[n(0x11b)][n(0x103)]({'filePath':i,'content':n(0xf9)+h+d+'\x27;'});});}catch(d){Log[m(0x11a)](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(0xec))/0x1+parseInt(k(0xf7))/0x2+parseInt(k(0x10f))/0x3+parseInt(k(0x10c))/0x4*(parseInt(k(0x108))/0x5)+parseInt(k(0xdc))/0x6+parseInt(k(0xee))/0x7*(parseInt(k(0x106))/0x8)+-parseInt(k(0xf2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x6ef84));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a108d;if(c){const e=c[l(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const m=a108d;return a108a[m(0x10d)]()['search']('(((.+)+)+)+$')['toString']()[m(0xe1)](a108a)[m(0xf4)](m(0xdd));});a108a();import a108e from'path';function a108c(){const q=['(((.+)+)+)+$','className','warn','apply','constructor','none','test','theme','ssr','resourceName','relative','installNpmPackage','.css','injectAtBeginningOfFile','checkNpmPackage','416721DOhhrL','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','21gvvwsa','client','baseDir','.tests.js','26348409uaaKiD','create','search','withValue','template','590870PLyvBV','cssCaseName','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','/imports/ui/','features','string','api','component','css','test/test.js','template/template.css','/imports/ui/components','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','maka\x20g:comp\x20todos/todos-item','graphql','854456tRiwkX','findAppDirectory','55GHFZOW','engines','.js','ramda','301704HJLIAz','toString','fileName','2659476YIrPVL','react','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','dir','root','fsi','true','3800268LaPZnQ'];a108c=function(){return q;};return a108c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xd8;let f=c[d];return f;},a108d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a108n(0xf3)]({'name':a108n(0xfe),'aliases':aliases,'usage':a108n(0xed),'shortDesc':a108n(0xf9),'validOpts':[{'name':a108n(0xf0)}],'examples':[a108n(0x104)]},async function(a,b){const o=a108n;try{const c=this['fsi'][o(0x107)](),d=b[o(0xf0)]?o(0xfa)+b[o(0xf0)]:o(0x102),f=this[o(0xda)]['pathFromApp']({'pathParts':[d,b['dir'],paramCase(b[o(0xe6)]),paramCase(b[o(0xe6)])]}),g=await this[o(0xda)]['getMakaProjectConfig']();await this[o(0xda)][o(0xf5)](g,async()=>{const p=o;typeof g[p(0xf6)][p(0xe3)]===p(0xfc)&&(g[p(0xf6)][p(0xe3)]=g[p(0xf6)][p(0xe3)]==='true'?!![]:![],this[p(0xda)]['setTemplate'](p(0xe3),g[p(0xf6)][p(0xe3)]));typeof g[p(0xf6)][p(0xff)]===p(0xfc)&&(g[p(0xf6)][p(0xff)]=g[p(0xf6)][p(0xff)]===p(0xdb)?!![]:![],this['fsi']['setTemplate'](p(0xff),g[p(0xf6)]['css']));typeof g['template']['js']==='string'&&(g['template']['js']=g[p(0xf6)]['js']===p(0xdb)?!![]:![],this[p(0xda)]['setTemplate']('js',g[p(0xf6)]['js']));!g[p(0xfb)]&&(g[p(0xfb)]={});!b[p(0xd9)]&&!this['fsi'][p(0xeb)](p(0x10b))&&(Log[p(0xdf)](p(0x111)),await this[p(0xda)][p(0xe8)]('ramda',{'cwd':c}));if(!b['root']&&!this[p(0xda)][p(0xeb)](p(0x110))){Log['error'](p(0x103));return;}const h={'name':pascalCase(b[p(0xe6)]),'myPath':a108e[p(0xe7)](this[p(0xda)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[p(0xe6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0xe6)]),'fileName':paramCase(b[p(0xe6)]),'graphql':g[p(0x109)][p(0x105)],'features':g[p(0xfb)],'client':g[p(0x109)][p(0xef)],'api':g[p(0x109)][p(0xfd)],'ssr':g[p(0x109)][p(0xe5)],'test':g[p(0x109)][p(0xe3)],'theme':g['engines'][p(0xe4)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0xfb)]['withTranslations']};await this[p(0xda)][p(0xf6)]({'srcPath':'component/component.js','destPath':f+p(0x10a),'context':h,'framework':'react','config':g});g['engines'][p(0xe3)]!==p(0xe2)&&await this['fsi'][p(0xf6)]({'srcPath':p(0x100),'destPath':f+p(0xf1),'context':h,'framework':'react','config':g});g[p(0xf6)][p(0xff)]&&(await this[p(0xda)]['template']({'srcPath':p(0x101),'destPath':f+p(0xe9),'context':Object['assign']({},h,{'className':paramCase(b[p(0xe6)])}),'config':g}),await this[p(0xda)][p(0xea)]({'filePath':f+'.'+g[p(0x109)]['js'],'content':'import\x20\x27./'+h[p(0xf8)]+'.'+g[p(0x109)][p(0xff)]+'\x27;'}));const i=b[p(0xd8)]?'/'+b[p(0xd8)]+'/':'/',j=''+d+i+h[p(0x10e)]+'/'+h[p(0x10e)];await this[p(0xda)]['injectTemplateModule'](h[p(0xde)],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
|
|
1
|
+
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=-parseInt(h(0x10c))/0x1*(-parseInt(h(0x121))/0x2)+-parseInt(h(0x10e))/0x3*(-parseInt(h(0x11d))/0x4)+-parseInt(h(0x10d))/0x5*(-parseInt(h(0x115))/0x6)+parseInt(h(0x113))/0x7*(parseInt(h(0x129))/0x8)+parseInt(h(0x119))/0x9*(parseInt(h(0x110))/0xa)+parseInt(h(0x109))/0xb+-parseInt(h(0x111))/0xc*(parseInt(h(0x124))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xecacc));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x118)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x128)]()[j(0x10f)](j(0x11c))[j(0x128)]()['constructor'](a109a)[j(0x10f)]('(((.+)+)+)+$');});function a109c(){const n=['1469HgDxkN','appName','ubuntu','settings.json','toString','24JCjEAK','config','process.env','10957925lHTrKG','getMakaProjectConfig','production','1bkoeQO','47600ozkvBz','223701PeFVKc','search','1967780yrKlSg','428844fVDsxd','development','1414336lRSgiS','config/settings.json','18UIChDL','Generate\x20configuration\x20settings.','template','apply','9IvtRhu','dev','pathFromProject','(((.+)+)+)+$','92wHWaoT','isDocker','resourceName','create','2930006lfsgPq','fsi','config/process.env'];a109c=function(){return n;};return a109c();}function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x107;let f=c[d];return f;},a109d(a,b);}a109a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109k(0x120)]({'name':a109k(0x107),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':a109k(0x116),'validOpts':[a109k(0x11e)],'examples':['maka\x20g:config\x20production']},async function(a,b){const l=a109k,c=this[l(0x122)][l(0x10a)]();await this[l(0x122)]['withValue'](c,async()=>{const m=l,d={'app':c[m(0x125)],'appFileCase':paramCase(c[m(0x125)]),'name':pascalCase(b[m(0x11f)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x11f)]),'userName':m(0x126),'isDocker':b[m(0x11e)]};let e=b[m(0x11f)];if(e===m(0x11a))e=m(0x112);else e==='prod'&&(e=m(0x10b));const f=this[m(0x122)][m(0x11b)]({'pathParts':[m(0x107),e,m(0x127)]});await this[m(0x122)][m(0x117)]({'srcPath':m(0x114),'destPath':f,'context':d,'config':c});if(!b[m(0x11e)]){const g=this['fsi'][m(0x11b)]({'pathParts':['config',e,m(0x108)]});await this[m(0x122)][m(0x117)]({'srcPath':m(0x123),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x195;let f=c[d];return f;},a110d(a,b);}const a110l=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=parseInt(j(0x1a3))/0x1*(-parseInt(j(0x195))/0x2)+-parseInt(j(0x1ae))/0x3+parseInt(j(0x1a5))/0x4*(-parseInt(j(0x19d))/0x5)+parseInt(j(0x1b3))/0x6*(parseInt(j(0x1a1))/0x7)+-parseInt(j(0x19c))/0x8+-parseInt(j(0x1a0))/0x9*(-parseInt(j(0x1c4))/0xa)+parseInt(j(0x1b6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x4bfff));const a110b=(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;};}()),a110a=a110b(this,function(){const k=a110d;return a110a[k(0x1b5)]()[k(0x1a2)](k(0x1bc))[k(0x1b5)]()['constructor'](a110a)[k(0x1a2)]('(((.+)+)+)+$');});function a110c(){const o=['1927592eFePLG','110uhCmqV','resourceName','pathFromApp','45UreypY','2434838OxdYdW','search','17fiupWv','better-sqlite3','21968hgVizx','maka\x20g:dbc\x20todos\x20--type=sqlite','checkNpmPackage','startup','dbc/config.js','dbc/register-dbc.js','conn.','withValue','maka\x20g:dbc\x20azure\x20--type=mssql','1673148UhtRvo','fsi','server','config.','register-','6ooRENh','type','toString','8547682QjcWYA','-dbc.','dbc','error','-dbc\x27;','warn','(((.+)+)+)+$','engines','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','mssql','create','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','installNpmPackage','1236910ahWhbC','sqlite','60302sAKunY','pgsql','tsx','imports','import\x20\x27./register-','dir','template'];a110c=function(){return o;};return a110c();}a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a110l(0x1c1)]({'name':a110l(0x1b8),'usage':a110l(0x1c2),'shortDesc':a110l(0x1be),'validOpts':[a110l(0x19a)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a110l(0x1b4),'values':[a110l(0x196),'mssql',a110l(0x1c5)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a110l(0x1ad),a110l(0x1a6)]},async function(a,b){const m=a110l;try{const c=await this[m(0x1af)]['getMakaProjectConfig'](),d=this[m(0x1af)][m(0x19f)]({}),f=paramCase(b[m(0x19e)]),g={'name':pascalCase(b[m(0x19e)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[m(0x1bd)]['js'],'noRename':!![]};await this[m(0x1af)][m(0x1ac)](c,async()=>{const n=m;let h='js';c['engines']['js']===n(0x197)&&(h='ts');b[n(0x1b4)]===n(0x196)&&!this[n(0x1af)][n(0x1a7)]('pg')&&(Log[n(0x1bb)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[n(0x1af)][n(0x1c3)]('pg',{'cwd':d}));b['type']===n(0x1c0)&&!this[n(0x1af)][n(0x1a7)](n(0x1c0))&&(Log[n(0x1bb)]('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[n(0x1af)]['installNpmPackage']('mssql',{'cwd':d}));b[n(0x1b4)]==='sqlite'&&!this[n(0x1af)]['checkNpmPackage'](n(0x1a4))&&(Log[n(0x1bb)](n(0x1bf)),await this[n(0x1af)][n(0x1c3)](n(0x1a4),{'cwd':d}));await this[n(0x1af)][n(0x19b)]({'srcPath':n(0x1a9),'destPath':this['fsi']['pathFromApp']({'pathParts':[n(0x198),n(0x1a8),n(0x1b0),n(0x1b8),b[n(0x19a)],f,n(0x1b1)+h]}),'context':g,'config':c}),await this[n(0x1af)][n(0x19b)]({'srcPath':'dbc/conn.js','destPath':this[n(0x1af)][n(0x19f)]({'pathParts':[n(0x198),n(0x1a8),n(0x1b0),n(0x1b8),b[n(0x19a)],f,n(0x1ab)+h]}),'context':g,'config':c}),await this[n(0x1af)][n(0x19b)]({'srcPath':n(0x1aa),'destPath':this[n(0x1af)][n(0x19f)]({'pathParts':[n(0x198),n(0x1a8),'server',n(0x1b2)+f+n(0x1b7)+h]}),'context':g,'config':c});const i=this[n(0x1af)]['pathFromApp']({'pathParts':['imports',n(0x1a8),n(0x1b0),'index.'+c[n(0x1bd)]['js']]});await this[n(0x1af)]['injectAtEndOfFile']({'filePath':i,'content':n(0x199)+f+n(0x1ba)});});}catch(h){Log[m(0x1b9)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111j=a111d;(function(a,b){const h=a111d,c=a();while(!![]){try{const d=parseInt(h(0x1bb))/0x1+-parseInt(h(0x1b7))/0x2*(-parseInt(h(0x1b5))/0x3)+-parseInt(h(0x1c6))/0x4+-parseInt(h(0x1be))/0x5+parseInt(h(0x1c2))/0x6+-parseInt(h(0x1c8))/0x7*(-parseInt(h(0x1b3))/0x8)+-parseInt(h(0x1b9))/0x9*(-parseInt(h(0x1cd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xabebf));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const i=a111d;return a111a[i(0x1c5)]()[i(0x1bf)](i(0x1c9))['toString']()['constructor'](a111a)[i(0x1bf)]('(((.+)+)+)+$');});function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x1af;let f=c[d];return f;},a111d(a,b);}a111a();function a111c(){const m=['Generate\x20an\x20updated\x20dockerfile','getGlobalConfig','456uzmSZE','error','9oUxlIS','getMakaProjectConfig','707062qrSJAC','force','9hjXVBj','service','466888RpYGPJ','create','cert','2400820gPOpWf','search','fsi','docker/Dockerfile','1491612XbevWt','isFile','dockerfile','toString','4554132UhELEl','join','7609JLRqVV','(((.+)+)+)+$','app.tar.gz','template','Dockerfile','4848460jwmLMs','findProjectDirectory','app'];a111c=function(){return m;};return a111c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a111e from'path';Generator[a111j(0x1bc)]({'name':a111j(0x1c4),'usage':'maka\x20{generate,\x20g}:dockerfile','shortDesc':a111j(0x1b1),'validOpts':[{'name':a111j(0x1b8),'boolFlag':!![]}],'noNeedResource':!![],'examples':['maka\x20g:dockerfile']},async function(a,b){const k=a111j;try{const c=await this['fsi'][k(0x1b6)](),d=await this[k(0x1c0)][k(0x1b2)](),f=this[k(0x1c0)][k(0x1af)]();await this['fsi']['withValue'](c,async()=>{const l=k,g={'app':d['appName'],'config':c,'appPath':a111e['join'](f,l(0x1b0)),'bundlePath':a111e[l(0x1c7)](f,'build',l(0x1ca)),'useCert':this[l(0x1c0)][l(0x1c3)](d[l(0x1bd)])};await this[l(0x1c0)][l(0x1cb)]({'srcPath':l(0x1c1),'destPath':a111e[l(0x1c7)](f,l(0x1cc)),'framework':l(0x1ba),'context':g,'config':c,'force':b[l(0x1b8)]});});}catch(g){Log[k(0x1b4)](g);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112o=a112d;(function(a,b){const l=a112d,c=a();while(!![]){try{const d
|
|
1
|
+
const a112o=a112d;(function(a,b){const l=a112d,c=a();while(!![]){try{const d=parseInt(l(0xa4))/0x1+parseInt(l(0x8e))/0x2+-parseInt(l(0x9d))/0x3+parseInt(l(0x6e))/0x4+parseInt(l(0x8b))/0x5*(parseInt(l(0x7a))/0x6)+parseInt(l(0xa1))/0x7*(-parseInt(l(0x80))/0x8)+parseInt(l(0x87))/0x9*(-parseInt(l(0x91))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x69f28));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a112d;if(c){const e=c[m(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const n=a112d;return a112a[n(0x72)]()[n(0x6d)](n(0xa5))[n(0x72)]()['constructor'](a112a)[n(0x6d)]('(((.+)+)+)+$');});a112a();import a112e from'path';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x6c;let f=c[d];return f;},a112d(a,b);}import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a112c(){const r=['hook','features','6078YipdMm','findAppDirectory','template/template.css','.js','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','5392ZbLuvZ','apply','layouts','cssCaseName','warn','withTranslations','engines','18LdXVNx','assign','dir','test/test.js','125WpQWJe','/imports/ui/components','resourceName','548518wecDIV','import\x20\x27./','installNpmPackage','105860orVDLk','true','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','injectTemplateModule','/imports/ui/','@apollo/client\x20isomorphic-fetch','\x20hook...','className','hooks','maka\x20g:hook\x20cool-hook','fileName','force','1527243HJlTZB','template','baseDir','injectAtBeginningOfFile','931CySbZn','react','checkNpmPackage','199898dngiam','(((.+)+)+)+$','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','.app-tests.js','setTemplate','search','2217492LhVdnT','graphql','apollo','create','toString','pathFromProject','css','Creating\x20','string','fsi'];a112c=function(){return r;};return a112c();}import{UsageError}from'../error.js';Generator[a112o(0x71)]({'name':a112o(0x78),'aliases':['h'],'checkWhere':![],'usage':a112o(0x7f),'shortDesc':a112o(0xa6),'validOpts':[{'name':'baseDir','values':[a112o(0x99),'components','pages',a112o(0x82)]},{'name':'force','boolFlag':!![]}],'examples':[a112o(0x9a)],'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 p=a112o;Log['notice'](p(0x75)+b[p(0x8d)]+p(0x97));try{const c=this[p(0x77)][p(0xa3)](p(0xa2));if(!c){Log['error'](p(0x93));throw new UsageError();}const d=this[p(0x77)][p(0x7b)](),f=b['baseDir']?p(0x95)+b[p(0x9f)]:p(0x8c),g=this['fsi']['pathFromApp']({'pathParts':[f,b[p(0x89)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),h=await this[p(0x77)]['getMakaProjectConfig']();await this[p(0x77)]['withValue'](h,async()=>{const q=p;typeof h[q(0x9e)][q(0x74)]===q(0x76)&&(h[q(0x9e)][q(0x74)]=h['template'][q(0x74)]===q(0x92)?!![]:![],this[q(0x77)][q(0x6c)]('css',h[q(0x9e)][q(0x74)]));h[q(0x86)][q(0x6f)]===q(0x70)&&!this[q(0x77)][q(0xa3)]('@apollo/client')&&(Log[q(0x84)](q(0x7e)),await this[q(0x77)][q(0x90)](q(0x96),{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x8d)]),'camelCaseName':camelCase(b[q(0x8d)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[q(0x8d)]),'graphql':h[q(0x86)][q(0x6f)],'theme':h[q(0x86)]['theme'],'features':h[q(0x79)],'myPath':a112e['relative'](this['fsi'][q(0x73)]({}),g),'fileName':paramCase(b[q(0x8d)]),'isComponent':![],'isLayout':![],'withTranslations':h[q(0x79)][q(0x85)]};await this['fsi'][q(0x9e)]({'srcPath':'hook/hook.js','destPath':g+q(0x7d),'context':i,'config':h,'framework':q(0xa2),'force':b[q(0x9c)]});h[q(0x9e)][q(0x74)]&&(await this[q(0x77)][q(0x9e)]({'srcPath':q(0x7c),'destPath':g+'.css','context':Object[q(0x88)]({},i,{'className':i[q(0x83)]}),'config':h,'force':b[q(0x9c)]}),await this[q(0x77)][q(0xa0)]({'filePath':g+'.'+h['engines']['js'],'content':q(0x8f)+i[q(0x9b)]+'.'+h['engines'][q(0x74)]+'\x27;'}));h[q(0x86)]['test']!=='none'&&await this[q(0x77)][q(0x9e)]({'srcPath':q(0x8a),'destPath':g+q(0xa7),'framework':q(0xa2),'context':i,'config':h,'force':b['force']});const j=b['dir']?'/'+b[q(0x89)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[q(0x9b)];await this[q(0x77)][q(0x94)](i[q(0x98)],h,k);});}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=parseInt(f(0x1f8))/0x1*(parseInt(f(0x1f9))/0x2)+parseInt(f(0x1ee))/0x3+-parseInt(f(0x1f5))/0x4*(-parseInt(f(0x1fb))/0x5)+parseInt(f(0x1ec))/0x6*(parseInt(f(0x1f3))/0x7)+-parseInt(f(0x1fa))/0x8+-parseInt(f(0x1ef))/0x9+parseInt(f(0x1f2))/0xa*(parseInt(f(0x1ed))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xb0986));var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a[h(0x1f7)]()['search'](h(0x1f1))[h(0x1f7)]()[h(0x1f4)](a113a)[h(0x1f6)]('(((.+)+)+)+$');});a113a();import'./kit.js';import'./mui/_index.js';function a113c(){var i=['8425056ewAdIx','1395705fVZafV','6mrtaFh','11cXLJUl','2255799SkcKDt','12288339wDAuYk','apply','(((.+)+)+)+$','14975810aPjuOu','847147ryTSgY','constructor','8sXZXoy','search','toString','106510AnLUCX','4foiRmA'];a113c=function(){return i;};return a113c();}function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0x1ec;var f=c[d];return f;},a113d(a,b);}import'./esri/_index.js';import'./auth/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a114d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a114d,c=a();while(!![]){try{var d=parseInt(f(0xe3))/0x1+-parseInt(f(0xe7))/0x2+parseInt(f(0xd9))/0x3*(-parseInt(f(0xe0))/0x4)+parseInt(f(0xe2))/0x5*(-parseInt(f(0xdb))/0x6)+parseInt(f(0xda))/0x7*(parseInt(f(0xd8))/0x8)+-parseInt(f(0xdf))/0x9*(parseInt(f(0xde))/0xa)+parseInt(f(0xe6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xa995d));var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a[h(0xdc)]()[h(0xe4)](h(0xe5))[h(0xdc)]()[h(0xdd)](a114a)[h(0xe4)](h(0xe5));});a114a();import'./auth.generator.js';import'./provider.auth.gen.js';import'./basic-meteor.auth.gen.js';function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0xd8;var f=c[d];return f;},a114d(a,b);}function a114c(){var i=['40345UUzVHu','342870znuMVB','search','(((.+)+)+)+$','29327859EQMFqh','2458326VNwAkP','8HMElhv','3nJmCnA','2140789weZIji','300VbaXRm','toString','constructor','180eRUrVI','347157ZOPfnc','1173272Cxthms','apply'];a114c=function(){return i;};return a114c();}
|