@maka/maka-cli 4.12.4 → 4.12.5
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/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(0x6f))/0x1+-parseInt(f(0x71))/0x2*(-parseInt(f(0x6e))/0x3)+parseInt(f(0x79))/0x4*(parseInt(f(0x74))/0x5)+parseInt(f(0x72))/0x6+-parseInt(f(0x76))/0x7*(-parseInt(f(0x6d))/0x8)+parseInt(f(0x7a))/0x9+-parseInt(f(0x78))/0xa*(parseInt(f(0x70))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x42266));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x77)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a[h(0x7e)]()['search'](h(0x6c))[h(0x7e)]()['constructor'](a96a)[h(0x80)](h(0x6c));});a96a();import{Command}from'../../command.js';function a96c(){const k=['2NObpZd','832638FedXIq','create','4540LltnGc','\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','205331xEQLCM','apply','406480QxZBzh','1280YKAaam','2473461WwANzs','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','set','findSubCommand','toString','maka\x20set:<sub-command>','search','(((.+)+)+)+$','32dPNwaJ','837561pfevir','186469RVMULO','275tsGQyE'];a96c=function(){return k;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x6c;let f=c[d];return f;},a96d(a,b);}const SetCommand=Command[a96i(0x73)]({'name':a96i(0x7c),'usage':a96i(0x7f),'shortDesc':a96i(0x7b),'description':a96i(0x75),'validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0x7d)](c);d&&this['runSubCommand'](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(0x1de))/0x1*(-parseInt(j(0x1d4))/0x2)+-parseInt(j(0x1ca))/0x3+-parseInt(j(0x1cd))/0x4*(parseInt(j(0x1c6))/0x5)+parseInt(j(0x1d6))/0x6+parseInt(j(0x1da))/0x7+-parseInt(j(0x1d5))/0x8+parseInt(j(0x1ce))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x72c1f));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(0x1e2)]()[k(0x1d2)]('(((.+)+)+)+$')[k(0x1e2)]()[k(0x1df)](a97a)['search']('(((.+)+)+)+$');});a97a();import a97e from'fs';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a97d(a,b);}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=['exit','verbose','getAppConfigPath','search','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','42oOhWEv','4891360RceETO','2707182DXWOkH','length','maka\x20ssh\x20--env\x20dev','ssh.json','2261966sYORgK','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','join','create','31797UZxvZB','constructor','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','readFileSync','toString','maka\x20ssh\x20--env\x20prod','275imvBBU','error','fsi','env','2323983uAPbCA','ssh','maka\x20ssh\x20--env\x20staging','60148ftJrNt','23189085hUOKZT'];a97c=function(){return n;};return a97c();}Command[a97l(0x1dd)]({'name':a97l(0x1cb),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a97l(0x1c9)],'validOpts':[a97l(0x1c9),'verbose'],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':[a97l(0x1d8),a97l(0x1cc),a97l(0x1e3),a97l(0x1e0),a97l(0x1d3),a97l(0x1db)]},async function(a,b){const m=a97l;try{const c=this[m(0x1c8)][m(0x1d1)](b['env']);let d='';a[m(0x1d7)]>0x0&&(d=a[0x0]);const f=a97f[m(0x1dc)](c,m(0x1d9)),g=a97e[m(0x1e1)](f)['toString'](),h=JSON['parse'](g);Object['assign'](h,{'env':c}),SSH['sshSync'](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b[m(0x1d0)]});}catch(i){Log[m(0x1c7)](i),process[m(0x1cf)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a98x=a98d;(function(a,b){const v=a98d,c=a();while(!![]){try{const d=-parseInt(v(0x1d6))/0x1+-parseInt(v(0x1b5))/0x2+-parseInt(v(0x1c0))/0x3*(parseInt(v(0x1cc))/0x4)+parseInt(v(0x1c9))/0x5+parseInt(v(0x1b6))/0x6+parseInt(v(0x1ba))/0x7+-parseInt(v(0x1b0))/0x8*(-parseInt(v(0x1b1))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x9b6b0));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 w=a98d;return a98a[w(0x1c7)]()[w(0x1b4)]('(((.+)+)+)+$')[w(0x1c7)]()[w(0x19e)](a98a)[w(0x1b4)](w(0x1d3));});a98a();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';function a98c(){const z=['.crt','readFileSync','letsencrypt.json','withSpinner','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','ask','exit','writeFileSync','email','.csr','create','maka\x20ssl\x20[command]','Remote\x20host\x20connection\x20successful','env','genCSR','Email\x20to\x20use\x20for\x20auto-updates:\x20','fsi','536exeSpY','256644QXShOu','getAppConfigPath','ping','search','2102774chmXEP','84756KHVfTa','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','letsencrypt','Verifying\x20Letsencrypt\x20configuration','1694679gOnsAr','start','/ssh.json','\x20--email\x20','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','Please\x20provide\x20a\x20command.','363867TNCqpk','generate-ssc','notice','uname\x20-a','Checking\x20remote\x20host\x20availability','generate-csr','Create\x20and\x20manage\x20your\x20SSL\x20operations.','toString','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','559165cJrVaa','join','.key','8PzaopR','success','mkKeysDir','parse','error','domainNames','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','(((.+)+)+)+$','domains','getMakaProjectConfig','348071VigjhO','ssh','maka\x20ssl\x20--env\x20dev\x20generate-csr','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','assign','stringify','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','ssl','Using\x20saved\x20letsencrypt\x20config','appName','constructor'];a98c=function(){return z;};return a98c();}import{SSL}from'../tools/ssl/ssl.class.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x19d;let f=c[d];return f;},a98d(a,b);}Command[a98x(0x1a9)]({'name':a98x(0x1de),'usage':a98x(0x1aa),'validOpts':['domains',a98x(0x1a7)],'requiredOpts':[a98x(0x1ac)],'shortDesc':a98x(0x1c6),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98x(0x1d8),a98x(0x1d9),a98x(0x1a3)]},async function(a,b){const y=a98x,c=this['fsi'][y(0x1d5)](),d=this[y(0x1af)][y(0x1b2)](b['env']),f=this['fsi'][y(0x1ce)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===y(0x1c5))SSL[y(0x1ad)]({'keyName':c[y(0x19d)]+'.key','csrName':c[y(0x19d)]+y(0x1a8),'cwd':f});else{if(g===y(0x1c1)){if(!a98e['existsSync'](a98f[y(0x1ca)](f,c[y(0x19d)]+y(0x1cb))))throw y(0x1da)+a98f[y(0x1ca)](f,c[y(0x19d)]+y(0x1cb));if(!a98e['existsSync'](a98f[y(0x1ca)](f,c[y(0x19d)]+'.csr')))throw y(0x1be)+a98f[y(0x1ca)](f,c[y(0x19d)]+'.csr');SSL['genSSC']({'keyName':c[y(0x19d)]+y(0x1cb),'crtName':c[y(0x19d)]+y(0x19f),'cwd':f}),Log[y(0x1c2)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g===y(0x1b8)){let h=b[y(0x1d4)],i=b[y(0x1a7)];try{const p=a98e[y(0x1a0)](a98f['join'](d,y(0x1a1)))['toString'](),q=JSON[y(0x1cf)](p);h=b[y(0x1d4)]?b[y(0x1d4)]:q[y(0x1d1)],i=b[y(0x1a7)]?b[y(0x1a7)]:q['emailUpdate'],(!b['email']||!b[y(0x1d4)])&&Log['notice'](y(0x1df));}catch(r){}const j=JSON['parse'](a98e[y(0x1a0)](d+y(0x1bc))[y(0x1c7)]());Object[y(0x1db)](j,{'env':d}),Log[y(0x1c2)](y(0x1c4));try{const s=SSH[y(0x1b3)](y(0x1c3),j);if(!s)throw y(0x1b7);if(s)Log[y(0x1cd)](y(0x1ab));}catch(t){Log[y(0x1d0)](t);return;}const k=Log[y(0x1a2)]();k[y(0x1bb)](y(0x1b9)),SSH[y(0x1d7)](y(0x1d2),{...j}),SSH['ssh']('sudo\x20snap\x20install\x20--classic\x20certbot',{...j}),SSH[y(0x1d7)](y(0x1c8),{...j}),k[y(0x1cd)]();const l=h?h:await Actions[y(0x1a4)]('[?]\x20Domains\x20to\x20register:\x20'),m=i?i:await Actions[y(0x1a4)](y(0x1ae));SSH[y(0x1d7)](y(0x1dd)+l+y(0x1bd)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[y(0x1dc)](n,null,0x2);a98e[y(0x1a6)](a98f[y(0x1ca)](d,'letsencrypt.json'),o);}else throw y(0x1bf);}}}catch(u){console[y(0x1d0)](u),process[y(0x1a5)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99q=a99d;(function(a,b){const m=a99d,c=a();while(!![]){try{const d=-parseInt(m(
|
|
1
|
+
const a99q=a99d;(function(a,b){const m=a99d,c=a();while(!![]){try{const d=-parseInt(m(0x1b0))/0x1*(parseInt(m(0x192))/0x2)+-parseInt(m(0x1a7))/0x3+-parseInt(m(0x1a9))/0x4*(-parseInt(m(0x193))/0x5)+-parseInt(m(0x191))/0x6*(-parseInt(m(0x189))/0x7)+-parseInt(m(0x1b2))/0x8*(parseInt(m(0x196))/0x9)+-parseInt(m(0x1a6))/0xa+-parseInt(m(0x1c2))/0xb*(-parseInt(m(0x18a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xb888d));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a99d;if(c){const e=c[n(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const o=a99d;return a99a[o(0x1bf)]()['search'](o(0x1a4))['toString']()[o(0x1c6)](a99a)[o(0x188)](o(0x1a4));});function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x187;let f=c[d];return f;},a99d(a,b);}a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a99c(){const t=['--full-app','utf8','none','error','warn','jasmine','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','Cannot\x20find\x20Node\x20Environment\x20File:\x20','(((.+)+)+)+$','process.env','13486350qHCjDK','2487036lBkGpM','engines','8vunQpa','apply','--packages','create','driverPackage','Node\x20Env\x20Config:\x20','--driver','45313bOmspN','mocha','8pMGonu','.maka','join','invokeMeteorCommand','isFile','test-packages','splice','fsi','concat','development','driver-package','meteortesting:mocha','inspect','toString','packages','tests','16206047nrFIbT','getAppConfigPath','testAppPath','driver','constructor','--driver-package','search','7mKhNGy','24TBuUSK','unit','test','config.json','argv','once','slice','2574474MPeBZU','32gAMyry','1235915vULIGV','filter','exit','1903419YRvvaO','env','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','--env','notice','openSync'];a99c=function(){return t;};return a99c();}const syncSource=function(a){const p=a99d;a99e[p(0x19b)](a,'r'),a99g['config']({'path':a});};Command[a99q(0x1ac)]({'name':a99q(0x18c),'mustBeInMakaProject':!![],'validOpts':['once','packages',a99q(0x1c5),a99q(0x1ad),'unit',a99q(0x197),'rawLogs','port',a99q(0x1be),a99q(0x1c4)],'usage':'maka\x20test','aliases':['t',a99q(0x1c1)],'shortDesc':a99q(0x1a2),'examples':[]},function(a,b){const r=a99q;try{let c=this[r(0x1b9)][r(0x1c3)](r(0x1bb));b[r(0x197)]&&(c=this[r(0x1b9)][r(0x1c3)](b[r(0x197)]));(!b[r(0x18b)]||!!b[r(0x18f)])&&(a=a[r(0x1ba)]([r(0x19c)]));b[r(0x18b)]&&delete b['unit'];let d=b[r(0x1bc)]||b[r(0x1c5)]||r(0x19e);if(d===r(0x19e)){const j=JSON['parse'](a99e['readFileSync'](a99f[r(0x1b4)](this[r(0x1b9)]['findProjectDirectory'](),r(0x1b3),r(0x18d)),r(0x19d)));if(j[r(0x1a8)][r(0x18c)]===r(0x1a1))d='sanjo:jasmine';else j['engines'][r(0x18c)]===r(0x1b1)&&(d=r(0x1bd));}if(d==='none')throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';(!b[r(0x1bc)]||!b[r(0x1c5)])&&(a=a[r(0x1ba)]([r(0x187),d]));const f=a99f[r(0x1b4)](c,'settings.json');this[r(0x1b9)][r(0x1b6)](f)?(Log['notice']('Meteor\x20Settings:\x20'+f),a=a[r(0x1ba)](['--settings',f])):Log[r(0x1a0)](r(0x198)+f);const g=a99f['join'](c,r(0x1a5));this['fsi'][r(0x1b6)](g)?(Log[r(0x19a)](r(0x1ae)+g),syncSource(g)):Log[r(0x1a0)](r(0x1a3)+g);const h=process[r(0x18e)][r(0x190)](0x2)[r(0x194)](k=>k!==r(0x199))[r(0x194)](k=>k!=='test')[r(0x194)](k=>k!==a[0x0]);h['forEach']((k,l)=>{const s=r;(k===s(0x199)||k===s(0x1af))&&h['splice'](l,0x2),k===s(0x1ab)&&h[s(0x1b8)](l,0x1);});const i=b[r(0x1c0)]?r(0x1b7):r(0x18c);this[r(0x1b9)][r(0x1b5)](i,a[r(0x1ba)](h));}catch(k){console[r(0x19f)](k),process[r(0x195)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=parseInt(f(0x7a))/0x1*(-parseInt(f(0x7e))/0x2)+parseInt(f(0x83))/0x3+-parseInt(f(0x77))/0x4+parseInt(f(0x85))/0x5*(parseInt(f(0x7b))/0x6)+-parseInt(f(0x7f))/0x7+parseInt(f(0x79))/0x8+parseInt(f(0x80))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x34c75));var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a[h(0x78)]()[h(0x84)](h(0x7d))[h(0x78)]()[h(0x7c)](a100a)[h(0x84)]('(((.+)+)+)+$');});a100a();import{Command}from'../command.js';function a100c(){var k=['779128FVCTGa','toString','1311696YzDAYy','6581KovzJK','20238yOuqwd','constructor','(((.+)+)+)+$','24MuGZkz','265839KuDyxt','1986381Qbtdrh','apply','undo','136272iYczvP','search','145kMPoVv'];a100c=function(){return k;};return a100c();}import a100e from'../generators/maka.gen.js';function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x77;var f=c[d];return f;},a100d(a,b);}Command['create']({'name':a100i(0x82),'aliases':['u'],'validOpts':[],'shortDesc':'Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action'},async function(){var j=a100i;a100e[j(0x82)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101m=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x19f))/0x1*(-parseInt(k(0x1ae))/0x2)+parseInt(k(0x1a8))/0x3*(parseInt(k(0x187))/0x4)+parseInt(k(0x188))/0x5+-parseInt(k(0x1b1))/0x6*(-parseInt(k(0x1a1))/0x7)+-parseInt(k(0x1a5))/0x8+parseInt(k(0x190))/0x9+-parseInt(k(0x1aa))/0xa*(parseInt(k(0x1a0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x22a88));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const l=a101d;return a101a[l(0x1a7)]()[l(0x195)]('(((.+)+)+)+$')[l(0x1a7)]()[l(0x199)](a101a)[l(0x195)](l(0x184));});a101a();function a101c(){const o=['\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','Maka\x20','2RnSbRr','----------------------System----------------------------','System\x27s\x20Node\x20Version\x20','66QsMhwh','System\x27s\x20Meteor\x20Version\x20','bright','meteor','maka\x20version','platform','(((.+)+)+)+$','Project\x27s\x20Meteor\x20Node\x20Version\x20','----------------------Project----------------------------','238704LUEpyf','1246395MlWBeH','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','win32','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','4.12.5','create','version','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','2519955gtRqyu','meteor.bat','compareMakaToLatest','replace','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','search',')\x20to\x20at\x20least\x20meteor\x27s\x20(','maka\x20v','\x20node\x20-v','constructor','isMakaProject','fsi','warn','verbose','getGlobalMeteorVersion','93451AiwIrh','22MHxRcU','58009nnQdrM','getProjectsMeteorNodeVersion','error','majestic','30256YFZRSw','valid','toString','12txShKV','N/A','3099710vITseY','Project\x27s\x20Meteor\x20Version\x20'];a101c=function(){return o;};return a101c();}import{execSync}from'child_process';import a101e from'semver';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x180;let f=c[d];return f;},a101d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a101m(0x18c)};Command[a101m(0x18d)]({'name':a101m(0x18e),'aliases':['v'],'usage':a101m(0x182),'maxArgLength':0x1,'validOpts':[a101m(0x19d)],'shortDesc':a101m(0x18b),'examples':[a101m(0x197),'maka\x20version','maka\x20version\x20--verbose'],'description':a101m(0x1ac)},async function(a,b){const n=a101m;try{const c=process[n(0x183)]===n(0x18a)?n(0x191):n(0x181);Log[n(0x1a4)](n(0x1ad)+pjson[n(0x18e)]),await this['fsi'][n(0x192)]();if(b[n(0x19d)]){await this[n(0x19b)][n(0x192)](),Log['bright'](n(0x1af));const d=this[n(0x19b)][n(0x19e)]();Log['bright']((n(0x1b2)+d)[n(0x193)]('\x0a',''));const f=execSync(c+n(0x198))['toString']()[n(0x193)](/\r?\n|\r/,'')['replace']('v','');Log['bright'](n(0x18f)+f);const g=execSync('node\x20-v')[n(0x1a7)]()[n(0x193)](/\r?\n|\r/,'')[n(0x193)]('v','');a101e['gt'](f,g)?(Log[n(0x19c)](n(0x1b0)+g),Log['warn'](n(0x189)+g+n(0x196)+f+')')):Log[n(0x180)](n(0x1b0)+g);if(this[n(0x19b)][n(0x19a)]()){Log['bright'](n(0x186));const h=this[n(0x19b)]['getProjectMeteorVersion']();if(!a101e[n(0x1a6)](h))Log[n(0x19c)](n(0x1ab)+h['replace']('\x0a',''));else a101e['gt'](d,h)?(Log[n(0x19c)]('Project\x27s\x20Meteor\x20Version\x20'+h['replace']('\x0a','')),Log['warn']('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice']((n(0x1ab)+h)[n(0x193)]('\x0a',''));const i=await this[n(0x19b)][n(0x1a2)]();i===n(0x1a9)?(Log[n(0x19c)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[n(0x19c)](n(0x194))):Log[n(0x180)](n(0x185)+i),Log[n(0x180)]('\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[n(0x1a3)](j),process['exit'](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a102c(){var i=['1221832qVqaqf','925157ybrcWA','50285gQxbiW','85812sNYSFO','736800ZVtvLQ','apply','8848881PqcFXc','255260NHsxrA','search','7dBJjJo','2QHYpkQ','constructor','451tjHzxo','(((.+)+)+)+$','282fGeFGX','toString'];a102c=function(){return i;};return a102c();}(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0x1a2))/0x1+parseInt(f(0x19b))/0x2*(parseInt(f(0x1a4))/0x3)+parseInt(f(0x1a5))/0x4+parseInt(f(0x1a3))/0x5*(-parseInt(f(0x19f))/0x6)+parseInt(f(0x19a))/0x7*(parseInt(f(0x1a1))/0x8)+parseInt(f(0x1a7))/0x9+-parseInt(f(0x198))/0xa*(-parseInt(f(0x19d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xf3860));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a['toString']()[h(0x199)]('(((.+)+)+)+$')[h(0x1a0)]()[h(0x19c)](a102a)['search'](h(0x19e));});a102a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x198;var f=c[d];return f;},a102d(a,b);}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x1bc;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(0x1c3))/0x1+parseInt(f(0x1c2))/0x2*(parseInt(f(0x1cc))/0x3)+-parseInt(f(0x1be))/0x4*(-parseInt(f(0x1bd))/0x5)+-parseInt(f(0x1c4))/0x6+parseInt(f(0x1c1))/0x7*(parseInt(f(0x1ca))/0x8)+-parseInt(f(0x1c7))/0x9*(parseInt(f(0x1c0))/0xa)+parseInt(f(0x1c9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xedb06));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0x1cb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a[h(0x1c5)]()[h(0x1c8)](h(0x1cd))['toString']()[h(0x1c6)](a103a)[h(0x1c8)]('(((.+)+)+)+$');});function a103c(){var j=['apply','2600874txhDfY','(((.+)+)+)+$','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','env','5wlvvCQ','104588EuIlNQ','NODE_OPTIONS','10ONUpQe','2417590WNiTEm','2oGzibY','411518xnpbqn','8869992GGWXiE','toString','constructor','13345389EruziJ','search','34185470bCHELN','8gepWVH'];a103c=function(){return j;};return a103c();}a103a(),process[a103i(0x1bc)][a103i(0x1bf)]=a103i(0x1ce);import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0xfd))/0x1*(-parseInt(r(0xe2))/0x2)+-parseInt(r(0x10f))/0x3+parseInt(r(0x123))/0x4*(parseInt(r(0xc3))/0x5)+-parseInt(r(0xf8))/0x6*(-parseInt(r(0xfb))/0x7)+-parseInt(r(0xf4))/0x8+parseInt(r(0xca))/0x9+-parseInt(r(0xd7))/0xa*(parseInt(r(0xcc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x23b50));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(0xe0)]()['search'](s(0x117))[s(0xe0)]()[s(0xfc)](a104a)[s(0xac)]('(((.+)+)+)+$');});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';function a104c(){const M=['opts','Please\x20run\x20\x22maka\x20install\x20meteor\x22','validateMakaSubscription','number','requiredEngines','(((.+)+)+)+$','fullNameChain','history.json','mustBeInMakaProject','find','reverse','addToHistory','Generator\x20not\x20found','resourceName','where','_historyFilePath','getGlobalConfig','350180JMDGUq','utf-8','DARK','Generator.create\x20requires\x20some\x20options!','writeFileSync','length','Location','client','params','pallet','Name','fsi','No\x20undo\x20handler\x20defined\x20for\x20','slice','includes','bright','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateMakaProject','Generator\x20','search','readFileSync','forEach','error','pathFromProject','stringify','LIGHT','_generators','maxOptsLength','transactionId','Description','pop','Too\x20few\x20arguments','Generator\x20format\x20is\x20incorrect','validateEngines','assign','Generator\x20requires\x20a\x20handler\x20function','chdir','listGenerators','split','help','tableList','notice','15bxFCGB','call','Server','.maka','cwd','from','options','2607399sdQxKa','config','44ZyppiU','generatorName','aliases','minOptsLength','deepen','writeHistory','noNeedResource','dir','match','\x20generator.\x20Skipping\x20undo.','details','1489740JyYtNo','No\x20resource\x20name\x20specified','\x20not\x20found.\x20Cannot\x20undo.','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','both','existsSync','Alias','maxArgLength','Generator\x20requires\x20a\x20name','toString','minArgLength','2rldeiN','sep','validateParams','processAndRunGenerator','undo','name','exit','bind','join','Generators:','function','\x20not\x20found','root','filter','getHistoryFileSize','shortDesc','Client','shift','730504hyFqiw','server','mustHaveMeteorInstalled','Too\x20few\x20options','12iyQPim','appPathPrefix','readHistory','237370kFfmHf','constructor','287058WHrDvU','_genTransactionId','findGeneratorByName','usage','push','keys','findProjectDirectory','handleGenerateError','create','addGenerator','invoke','checkWhere','message','size','map','success','statSync','_handler','221277RgTaBY','addGenerator\x20requires\x20a\x20Generator\x20instance','_undoHandler'];a104c=function(){return M;};return a104c();}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-0x9a;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(0xc7)]();let d=null;try{process[t(0xbd)](a),d=await b();}finally{process[t(0xbd)](c);}return d;}export class Generator extends Tool{[a104u(0xc9)];['fullNameChain'];[a104u(0xb3)];['_historyFilePath'];[a104u(0x111)];[a104u(0xfe)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[v(0xe7)])throw new Error(v(0xdf));if(typeof b!==v(0xec))throw new Error(v(0xbc));this[v(0xb3)]=[],this[v(0xc9)]=Object[v(0xbb)]({},a),this[v(0xe7)]=this[v(0xc9)][v(0xe7)],this[v(0x10e)]=b[v(0xe9)](this);try{this[v(0x121)]=this['fsi'][v(0xb0)]({'pathParts':[v(0xc6),'history.json']})||a104e['join']('.','.maka',v(0x119));}catch(d){Log[v(0xaf)](d);}c&&(this[v(0x111)]=c[v(0xe9)](this));}[a104u(0xf0)](){const w=a104u;if(a104f[w(0xdc)](this[w(0x121)])){const a=a104f[w(0x10d)](this[w(0x121)]);return a[w(0x10a)];}return 0x0;}[a104u(0xfa)](){const x=a104u;if(!a104f[x(0xdc)](this[x(0x121)]))return[];return JSON['parse'](a104f[x(0xad)](this[x(0x121)],x(0x9a)));}[a104u(0xd1)](a){const y=a104u;this[y(0x121)]&&!a104f[y(0xdc)](this[y(0x121)])&&a104f['writeFileSync'](this[y(0x121)],JSON['stringify']([])),a104f[y(0x9d)](this[y(0x121)],JSON[y(0xb1)](a,null,0x2));}['addToHistory'](a){const z=a104u;try{a?.[z(0xa1)]?.['opts'][z(0xcb)]&&delete a[z(0xa1)][z(0x112)]['config'];const b=this[z(0xfa)](),c={'generatorName':this[z(0x118)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x101)](c);const d=Buffer[z(0xc8)](JSON[z(0xb1)](b))[z(0x9e)];while(d>MAX_HISTORY_SIZE&&b[z(0x9e)]>0x0){b[z(0xf3)]();}this[z(0xd1)](b);}catch(f){Log[z(0xaf)](f);}}async[a104u(0xe6)](){const A=a104u,a=this['readHistory']();if(a[A(0x9e)]===0x0){Log['warn']('Nothing\x20to\x20undo.');return;}const b=a[A(0xb7)](),c=b[A(0xb5)],d=a[A(0xef)](e=>e[A(0xb5)]===c);d['push'](b),d[A(0x11c)]();for(const e of d){const f=this['findGeneratorByName'](e[A(0xcd)]);if(!f){Log[A(0xaf)](A(0xab)+e[A(0xcd)]+A(0xd9));continue;}f['_undoHandler']?await f[A(0x111)](e[A(0xd6)]):Log['warn'](A(0xa5)+e[A(0xcd)]+A(0xd5));}this[A(0xd1)](a[A(0xef)](g=>g[A(0xb5)]!==c));}static[a104u(0x105)](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x9c));if(typeof b!==B(0xec))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b);c&&(e[B(0x111)]=c[B(0xe9)](e));d=d||a104i;const f=d?d['fullNameChain']:'';return e['fullNameChain']=f?f+':'+a[B(0xe7)]:a[B(0xe7)],Object[B(0xbb)](e,{'parent':d?.['options']?.[B(0xe7)]}),d['addGenerator'](e),e;}[a104u(0x106)](a){const C=a104u;if(!(a instanceof Generator))throw new Error(C(0x110));this[C(0xb3)][C(0x101)](a);}async[a104u(0xe5)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.['split'](':');if(!f||f['length']===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[D(0xb3)],h;for(const i of f){h=g[D(0x11b)](j=>j[D(0xd4)](i));if(!h)throw'Generator\x20'+i+'\x20not\x20found';await this[D(0x114)](h),g=h['_generators'];}if(h)d=await h[D(0x107)](b,c);else throw D(0x11e);}catch(j){Log['error'](j);}return d;}[a104u(0xff)](a){const E=a104u,b=a?.[E(0xbf)](':');if(!b||b[E(0x9e)]===0x0)return Log[E(0xaf)](E(0xb9)),null;let c=this[E(0xb3)],d;for(const e of b){d=c[E(0x11b)](f=>f[E(0xd4)](e));if(!d)return Log['error'](E(0xab)+e+E(0xed)),null;c=d[E(0xb3)];}return d||null;}async[a104u(0x107)](a,b){const F=a104u,c=a[F(0xa6)]();b['resourceName']=c[0x0];try{const d=await this[F(0xa4)][F(0x122)](),f=d[F(0xa2)]==='light'?ColorMode[F(0xb2)]:ColorMode[F(0x9b)];Log['setColorMode'](f),await this[F(0x114)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[F(0xb3)]['length']>=0x0,h=b[F(0xc0)]||b['h'];if(g&&h){if(this[F(0xb3)][F(0x9e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0xc9)][F(0x11a)]){const i=this[F(0xaa)]();if(!i)throw new MustBeInProjectError();}if(this[F(0xc9)][F(0xf6)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0xc9)][F(0xe1)]===F(0x115)){if(a[F(0x9e)]<this[F(0xc9)]['minArgLength']){Log[F(0xaf)](F(0xb8));throw new UsageError();}}if(typeof this[F(0xc9)]['maxArgLength']===F(0x115)){if(a[F(0x9e)]>this[F(0xc9)][F(0xde)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[F(0xc9)]['minOptsLength']===F(0x115)){if(Object['keys'](b)['length']<this[F(0xc9)][F(0xcf)]){Log[F(0xaf)](F(0xf7));throw new UsageError();}}if(typeof this[F(0xc9)][F(0xb4)]===F(0x115)){if(Object[F(0x102)](b)['length']>=this[F(0xc9)]['maxOptsLength']){Log[F(0xaf)]('Too\x20many\x20options');throw new UsageError();}}}this[F(0xc9)]['requiredEngines']&&this[F(0xba)](this['options'][F(0x116)]);await this[F(0xe4)](a,b,this[F(0xc9)]);if(!b['resourceName']&&!this[F(0xc9)][F(0xd2)]){Log['error'](F(0xd8));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x104)](k),process[F(0xe8)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0xee)]&&!this['fsi'][G(0x103)]())throw new MustBeInProjectError();const l=b[G(0x11f)]?.['replace'](/\\/g,'/')[G(0xbf)]('/');!b[G(0xd3)]&&(l?.[G(0x9e)]>0x1?(b[G(0x11f)]=l[G(0xb7)](),c[0x0]=b[G(0x11f)],b['dir']=l[G(0x10b)](n=>{return paramCase(n);})[G(0xea)](a104e[G(0xe3)])):b['dir']='');if(this[G(0xc9)][G(0x108)]){if(!b[G(0x120)]){const o={'type':'list','name':'colLocAnswer','message':G(0x9f),'choices':[{'name':G(0xf2),'value':'client'},{'name':G(0xc5),'value':'server'},{'name':'Both','value':G(0xdb)}]},{colLocAnswer:p}=await Actions[G(0xc9)](o);p?b['where']=p:b[G(0x120)]=G(0xdb);}const n=['both',G(0xa0),G(0xf5)];if(!n[G(0xa7)](b['where'])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x120)]){case G(0xdb):b[G(0xf9)]='lib';break;case'server':b[G(0xf9)]=G(0xf5);break;case G(0xa0):b[G(0xf9)]=G(0xa0);break;default:b[G(0xf9)]='';}}const m=await this[G(0x10e)][G(0xc4)](this,c,b);return m&&this[G(0x11d)]({'params':{'args':c,'opts':this['fsi'][G(0xd0)](b)},'success':m?.[G(0x10c)],'message':m?.[G(0x109)],'details':m?.['details']}),m;}catch(q){this[G(0x104)](q);}});}[a104u(0xbe)](){const H=a104u;this[H(0xc1)](this[H(0xb3)]);}[a104u(0x104)](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[I(0xc9)];Log[I(0x100)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[I(0xc2)](I(0xeb)),this[I(0xc1)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[I(0xaf)](I(0xda));else{if(a instanceof NoMeteorFoundError)Log[I(0xaf)](I(0xa9)),Log[I(0xc2)](I(0x113));else a instanceof NoMeteorAppFoundError&&Log[I(0xaf)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a104u(0xc1)](a){const J=a104u,b=new a104g({});b[J(0x101)]([J(0xa3),J(0xdd),J(0xb6)]),a['sort']((c,d)=>{const K=J;return c[K(0xe7)]['localeCompare'](d[K(0xe7)]);})[J(0xae)](c=>{const L=J;b['push']([c[L(0xe7)],c[L(0xce)](),c[L(0xf1)]()]);}),Log[J(0xa8)](b[J(0xe0)]());}}
|
|
1
|
+
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x1af))/0x1+parseInt(r(0x14e))/0x2+-parseInt(r(0x162))/0x3*(-parseInt(r(0x193))/0x4)+parseInt(r(0x184))/0x5+-parseInt(r(0x1ca))/0x6+-parseInt(r(0x156))/0x7*(parseInt(r(0x17c))/0x8)+parseInt(r(0x190))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x95ae2));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(0x15f)]()[s(0x1ba)](s(0x1c8))[s(0x15f)]()[s(0x1a5)](a104a)['search']('(((.+)+)+)+$');});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';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x147;let f=c[d];return f;},a104d(a,b);}import{Tool}from'./tool.js';function a104c(){const M=['length','addGenerator','248YuoGZg','message','slice','writeFileSync','from','create','transactionId','validateMakaProject','2594130emZuyX','undo','opts','params','Client','bind','Too\x20many\x20options','server','Both','help','config','appPathPrefix','7540074wqmvcD','Generator\x20not\x20found','LIGHT','527792ZgwSwY','deepen','call','Alias','validateMakaSubscription','existsSync','handleGenerateError','parse','.maka','getHistoryFileSize','function','No\x20resource\x20name\x20specified','assign','mustBeInMakaProject','Too\x20few\x20options','bright','number','Generator.create\x20requires\x20a\x20handler\x20function!','constructor','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Too\x20few\x20arguments','sep','maxArgLength','name','Generators:','details','requiredEngines','sort','525020WoeJJY','keys','split','match','pathFromProject','warn','_handler','root','usage','where','fsi','search','reverse','error','validateMeteorInstall','both','noNeedResource','listGenerators','Generator\x20requires\x20a\x20name','lib','aliases','options','getGlobalConfig','history.json','addToHistory','(((.+)+)+)+$','invoke','4046178AjWCeN','validateParams','\x20not\x20found.\x20Cannot\x20undo.','Please\x20run\x20\x22maka\x20install\x20meteor\x22','writeHistory','client','Too\x20many\x20arguments','pop','Nothing\x20to\x20undo.','_historyFilePath','findProjectDirectory','maxOptsLength','DARK','605546HqZhVK','_generators','success','dir','size','push','Description','processAndRunGenerator','144200PXVsEE','fullNameChain','join','readFileSync','setColorMode','cwd','utf-8','Location','Generator\x20requires\x20a\x20handler\x20function','toString','replace','_undoHandler','18AYcAld','chdir','No\x20undo\x20handler\x20defined\x20for\x20','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Generator.create\x20requires\x20some\x20options!','_genTransactionId','addGenerator\x20requires\x20a\x20Generator\x20instance','findGeneratorByName','\x20generator.\x20Skipping\x20undo.','minArgLength','resourceName','\x20not\x20found','Generator\x20','readHistory','Generator\x20format\x20is\x20incorrect','There\x20is\x20no\x20Meteor\x20application\x20here','statSync','stringify','Name','notice','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','generatorName','find','tableList'];a104c=function(){return M;};return a104c();}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(0x15b)]();let d=null;try{process[t(0x163)](a),d=await b();}finally{process[t(0x163)](c);}return d;}export class Generator extends Tool{[a104u(0x1c4)];[a104u(0x157)];['_generators'];['_historyFilePath'];[a104u(0x161)];[a104u(0x167)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x165));if(!a[v(0x1aa)])throw new Error(v(0x1c1));if(typeof b!==v(0x19d))throw new Error(v(0x15e));this[v(0x14f)]=[],this['options']=Object[v(0x19f)]({},a),this[v(0x1aa)]=this['options'][v(0x1aa)],this[v(0x1b5)]=b[v(0x189)](this);try{this[v(0x14a)]=this[v(0x1b9)][v(0x1b3)]({'pathParts':[v(0x19b),'history.json']})||a104e[v(0x158)]('.',v(0x19b),v(0x1c6));}catch(d){Log[v(0x1bc)](d);}c&&(this[v(0x161)]=c[v(0x189)](this));}[a104u(0x19c)](){const w=a104u;if(a104f[w(0x198)](this['_historyFilePath'])){const a=a104f[w(0x172)](this[w(0x14a)]);return a[w(0x152)];}return 0x0;}[a104u(0x16f)](){const x=a104u;if(!a104f[x(0x198)](this[x(0x14a)]))return[];return JSON[x(0x19a)](a104f[x(0x159)](this[x(0x14a)],x(0x15c)));}[a104u(0x1ce)](a){const y=a104u;this[y(0x14a)]&&!a104f['existsSync'](this[y(0x14a)])&&a104f[y(0x17f)](this['_historyFilePath'],JSON[y(0x173)]([])),a104f[y(0x17f)](this[y(0x14a)],JSON[y(0x173)](a,null,0x2));}[a104u(0x1c7)](a){const z=a104u;try{a?.['params']?.[z(0x186)][z(0x18e)]&&delete a[z(0x187)][z(0x186)][z(0x18e)];const b=this['readHistory'](),c={'generatorName':this[z(0x157)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x153)](c);const d=Buffer[z(0x180)](JSON['stringify'](b))['length'];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b['shift']();}this[z(0x1ce)](b);}catch(f){Log[z(0x1bc)](f);}}async[a104u(0x185)](){const A=a104u,a=this[A(0x16f)]();if(a[A(0x17a)]===0x0){Log['warn'](A(0x149));return;}const b=a['pop'](),c=b[A(0x182)],d=a['filter'](e=>e[A(0x182)]===c);d[A(0x153)](b),d[A(0x1bb)]();for(const e of d){const f=this[A(0x169)](e[A(0x177)]);if(!f){Log[A(0x1bc)](A(0x16e)+e[A(0x177)]+A(0x1cc));continue;}f[A(0x161)]?await f[A(0x161)](e[A(0x1ac)]):Log[A(0x1b4)](A(0x164)+e[A(0x177)]+A(0x16a));}this[A(0x1ce)](a['filter'](g=>g[A(0x182)]!==c));}static[a104u(0x181)](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x166));if(typeof b!==B(0x19d))throw new Error(B(0x1a4));const e=new Generator(a,b);c&&(e[B(0x161)]=c[B(0x189)](e));d=d||a104i;const f=d?d['fullNameChain']:'';return e[B(0x157)]=f?f+':'+a['name']:a[B(0x1aa)],Object['assign'](e,{'parent':d?.[B(0x1c4)]?.[B(0x1aa)]}),d['addGenerator'](e),e;}[a104u(0x17b)](a){const C=a104u;if(!(a instanceof Generator))throw new Error(C(0x168));this[C(0x14f)][C(0x153)](a);}async[a104u(0x155)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.['split'](':');if(!f||f[D(0x17a)]===0x0)throw D(0x170);let g=this['_generators'],h;for(const i of f){h=g[D(0x178)](j=>j[D(0x1b2)](i));if(!h)throw D(0x16e)+i+D(0x16d);await this[D(0x197)](h),g=h['_generators'];}if(h)d=await h['invoke'](b,c);else throw D(0x191);}catch(j){Log[D(0x1bc)](j);}return d;}[a104u(0x169)](a){const E=a104u,b=a?.[E(0x1b1)](':');if(!b||b[E(0x17a)]===0x0)return Log[E(0x1bc)](E(0x170)),null;let c=this[E(0x14f)],d;for(const e of b){d=c['find'](f=>f[E(0x1b2)](e));if(!d)return Log[E(0x1bc)](E(0x16e)+e+'\x20not\x20found'),null;c=d[E(0x14f)];}return d||null;}async[a104u(0x1c9)](a,b){const F=a104u,c=a[F(0x17e)]();b[F(0x16c)]=c[0x0];try{const d=await this['fsi'][F(0x1c5)](),f=d['pallet']==='light'?ColorMode[F(0x192)]:ColorMode[F(0x14d)];Log[F(0x15a)](f),await this[F(0x197)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[F(0x14f)]['length']>=0x0,h=b[F(0x18d)]||b['h'];if(g&&h){if(this[F(0x14f)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x1c4)][F(0x1a0)]){const i=this[F(0x183)]();if(!i)throw new MustBeInProjectError();}if(this[F(0x1c4)]['mustHaveMeteorInstalled']){const j=this[F(0x1bd)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x1c4)]['minArgLength']===F(0x1a3)){if(a[F(0x17a)]<this['options'][F(0x16b)]){Log[F(0x1bc)](F(0x1a7));throw new UsageError();}}if(typeof this[F(0x1c4)][F(0x1a9)]==='number'){if(a[F(0x17a)]>this[F(0x1c4)][F(0x1a9)]){Log[F(0x1bc)](F(0x147));throw new UsageError();}}if(typeof this[F(0x1c4)]['minOptsLength']==='number'){if(Object[F(0x1b0)](b)[F(0x17a)]<this[F(0x1c4)]['minOptsLength']){Log[F(0x1bc)](F(0x1a1));throw new UsageError();}}if(typeof this['options'][F(0x14c)]===F(0x1a3)){if(Object[F(0x1b0)](b)[F(0x17a)]>=this[F(0x1c4)][F(0x14c)]){Log['error'](F(0x18a));throw new UsageError();}}}this[F(0x1c4)][F(0x1ad)]&&this['validateEngines'](this[F(0x1c4)]['requiredEngines']);await this[F(0x1cb)](a,b,this[F(0x1c4)]);if(!b[F(0x16c)]&&!this[F(0x1c4)][F(0x1bf)]){Log[F(0x1bc)](F(0x19e));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process['exit'](0x1);}return await inside(b[F(0x15b)],async()=>{const G=F;try{if(!b[G(0x1b6)]&&!this['fsi'][G(0x14b)]())throw new MustBeInProjectError();const l=b['resourceName']?.[G(0x160)](/\\/g,'/')[G(0x1b1)]('/');!b['dir']&&(l?.['length']>0x1?(b[G(0x16c)]=l[G(0x148)](),c[0x0]=b['resourceName'],b['dir']=l['map'](n=>{return paramCase(n);})['join'](a104e[G(0x1a8)])):b[G(0x151)]='');if(this['options']['checkWhere']){if(!b[G(0x1b8)]){const o={'type':'list','name':'colLocAnswer','message':G(0x15d),'choices':[{'name':G(0x188),'value':G(0x1cf)},{'name':'Server','value':G(0x18b)},{'name':G(0x18c),'value':G(0x1be)}]},{colLocAnswer:p}=await Actions[G(0x1c4)](o);p?b[G(0x1b8)]=p:b[G(0x1b8)]='both';}const n=[G(0x1be),G(0x1cf),'server'];if(!n['includes'](b[G(0x1b8)])){Log[G(0x1bc)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x1b8)]){case G(0x1be):b['appPathPrefix']=G(0x1c2);break;case G(0x18b):b[G(0x18f)]=G(0x18b);break;case G(0x1cf):b[G(0x18f)]='client';break;default:b[G(0x18f)]='';}}const m=await this['_handler'][G(0x195)](this,c,b);return m&&this[G(0x1c7)]({'params':{'args':c,'opts':this[G(0x1b9)][G(0x194)](b)},'success':m?.[G(0x150)],'message':m?.[G(0x17d)],'details':m?.[G(0x1ac)]}),m;}catch(q){this[G(0x199)](q);}});}[a104u(0x1c0)](){const H=a104u;this[H(0x179)](this[H(0x14f)]);}[a104u(0x199)](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[I(0x1c4)];Log[I(0x1b7)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[I(0x175)](I(0x1ab)),this['tableList'](this[I(0x14f)]);else{if(a instanceof MustBeInProjectError)Log[I(0x1bc)](I(0x176));else{if(a instanceof NoMeteorFoundError)Log['error'](I(0x1a6)),Log[I(0x175)](I(0x1cd));else a instanceof NoMeteorAppFoundError&&Log[I(0x1bc)](I(0x171));}}}[a104u(0x179)](a){const J=a104u,b=new a104g({});b[J(0x153)]([J(0x174),J(0x196),J(0x154)]),a[J(0x1ae)]((c,d)=>{const K=J;return c[K(0x1aa)]['localeCompare'](d[K(0x1aa)]);})['forEach'](c=>{const L=J;b['push']([c[L(0x1aa)],c[L(0x1c3)](),c['shortDesc']()]);}),Log[J(0x1a2)](b[J(0x15f)]());}}
|
|
@@ -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(0x1f4))/0x1*(-parseInt(f(0x1f7))/0x2)+-parseInt(f(0x1ed))/0x3*(parseInt(f(0x1f3))/0x4)+parseInt(f(0x1f1))/0x5*(-parseInt(f(0x1f0))/0x6)+-parseInt(f(0x1f2))/0x7+-parseInt(f(0x1ef))/0x8+-parseInt(f(0x1ea))/0x9*(parseInt(f(0x1f8))/0xa)+parseInt(f(0x1e9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x7174e));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0x1ec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a['toString']()[h(0x1eb)](h(0x1f6))[h(0x1ee)]()[h(0x1f5)](a105a)[h(0x1eb)](h(0x1f6));});a105a();function a105c(){var i=['9EPlDbt','search','apply','7860vHPDow','toString','1314104gNGXyH','6168ocJomO','1045AUebaU','1067927AUiXSC','956fDXHro','1AxSWNK','constructor','(((.+)+)+)+$','843994aPYXGC','8918610gGeCWp','32300752GhNKFN'];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-0x1e9;var f=c[d];return f;},a105d(a,b);}import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106x=a106d;function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x171;let f=c[d];return f;},a106d(a,b);}function a106c(){const A=['\x27;\x0a','server','register-','rest','push','api','-rest-api.','1457558iFViHA','/imports/api/','307170gHlwmP','template','const','7462026OqArOU','\x0aimport\x20{\x20resolvers\x20as\x20','startup','constructor','if\x20\x5c(typeList','6mKwREt','TypeDefs);\x0a','dir','/graphql/typeDefs','resolvers.','-api.','withRest','TypeDefs\x20}\x20from\x20\x27','3uErWNj','engines','Resolvers\x20}\x20from\x20\x27','Resolvers);\x0a\x0a','search','781776UzGMgt','121nRbMEe','import\x20{\x20typeDefs\x20as\x20','resourceName','maka\x20{generate,\x20g}:{api}\x20<resource-name>','GraphQL','11387817zVZGBs','getMakaProjectConfig','-rpc-methods.','pathFromApp','includes','index.','.app-tests.','ddp-rate-limiter','apollo','error','injectAtEndOfFile','api/resolvers.js','apiAnswers','toString','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','-api\x27;','api/register-api.js','import\x20\x27./register-','tsx','api/methods.js','2494188mhwaMW','mdg:validated-method','injectIntoFile','options','injectAtBeginningOfFile','graphql','api/api.js','(((.+)+)+)+$','checkMeteorPackage','122455BJdemf','withGql','withMethods','REST\x20API','imports','RPC\x20(Methods)','8xRgnYd','test','fsi','No\x20API\x20boundaries\x20selected','rewriteDestinationPathForEngine','typeDefs.','resolverList.push(','API\x20boundaries\x20to\x20create','create','checkbox'];a106c=function(){return A;};return a106c();}(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0x178))/0x1+parseInt(v(0x1a9))/0x2*(-parseInt(v(0x18a))/0x3)+parseInt(v(0x1b8))/0x4*(parseInt(v(0x1b2))/0x5)+parseInt(v(0x182))/0x6*(parseInt(v(0x195))/0x7)+parseInt(v(0x18f))/0x8+-parseInt(v(0x17d))/0x9+parseInt(v(0x17a))/0xa*(-parseInt(v(0x190))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xc7766));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const w=a106d;return a106a[w(0x1a2)]()[w(0x18e)](w(0x1b0))['toString']()[w(0x180)](a106a)[w(0x18e)]('(((.+)+)+)+$');});a106a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106x(0x1c0)]({'name':a106x(0x176),'aliases':['a'],'usage':a106x(0x193),'shortDesc':a106x(0x1a3),'validOpts':[a106x(0x184)],'examples':['maka\x20g:api\x20Todos'],'description':'\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'},async function(a,b){const y=a106x;try{const c=this[y(0x1ba)][y(0x196)](),d=[{'name':y(0x1b7),'value':y(0x1b4)}];d[y(0x175)]({'name':y(0x1b5),'value':'withRest'});c['engines'][y(0x1ae)]==='apollo'&&d[y(0x175)]({'name':y(0x194),'value':y(0x1b3)});const f={'type':y(0x1c1),'name':y(0x1a1),'message':y(0x1bf),'pageSize':0x64,'choices':d},g=await Actions['ask']('API\x20Version?\x20[v1]')||'v1',{apiAnswers:h}=await Actions[y(0x1ac)](f);h['length']===0x0&&(Log[y(0x19e)](y(0x1bb)),process['exit'](0x1)),await this[y(0x1ba)]['withValue'](c,async()=>{const z=y,i=b[z(0x192)],j=paramCase(i),k=camelCase(i),l=b[z(0x184)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][z(0x176)],'graphql':c[z(0x18b)][z(0x1ae)],'test':c['engines'][z(0x1b9)],'noRename':!![],'withMethods':h[z(0x199)](z(0x1b4)),'withRest':h['includes'](z(0x188))};let n='js';c['engines']['js']===z(0x1a7)&&(n='ts');m['withRest']&&(this[z(0x1ba)]['setProjectConfig']({'engines':{'api':z(0x174)}}),await this[z(0x1ba)][z(0x1b1)](['maka:rest','ddp-rate-limiter',z(0x1aa)],{'shouldInstall':!![]}),await this[z(0x1ba)][z(0x17b)]({'srcPath':z(0x1af),'destPath':this[z(0x1ba)][z(0x198)]({'pathParts':[z(0x1b6),z(0x176),g,b[z(0x184)],j,j+'-'+g+z(0x177)+n]}),'context':m,'config':c}));m[z(0x1b4)]&&(await this[z(0x1ba)][z(0x1b1)]([z(0x19c),z(0x1aa)],{'shouldInstall':!![]}),await this['fsi'][z(0x17b)]({'srcPath':z(0x1a8),'destPath':this[z(0x1ba)][z(0x198)]({'pathParts':['imports',z(0x176),g,b[z(0x184)],j,j+'-'+g+z(0x197)+n]}),'context':m,'config':c}));c['engines'][z(0x1b9)]!=='none'&&await this[z(0x1ba)]['template']({'srcPath':'api/tests.js','destPath':this[z(0x1ba)][z(0x198)]({'pathParts':[z(0x1b6),z(0x176),g,b[z(0x184)],j,j+'-'+g+z(0x19b)+n]}),'context':m,'config':c});if(c['engines'][z(0x1ae)]===z(0x19d)){if(h[z(0x199)](z(0x1b3))){const p=this[z(0x1ba)][z(0x198)]({'pathParts':[z(0x1b6),z(0x17f),z(0x172),z(0x19a)+c[z(0x18b)]['js']]}),q=this[z(0x1ba)][z(0x1bc)]({'pathParts':[p],'config':c}),r=this[z(0x1ba)]['pathFromApp']({'pathParts':[z(0x1b6),z(0x176),g,b[z(0x184)],j,z(0x1ae),z(0x1bd)+n]}),s=z(0x179)+g+l+j+z(0x185);await this[z(0x1ba)]['template']({'srcPath':'api/typeDefs.js','destPath':r,'context':m,'config':c}),await this[z(0x1ba)]['injectAtBeginningOfFile']({'filePath':q,'content':z(0x191)+k+z(0x189)+s+z(0x171)}),await this[z(0x1ba)][z(0x1ab)]({'filePath':q,'content':'typeList.push('+k+z(0x183),'begin':'const','end':z(0x181)});const t=this['fsi'][z(0x198)]({'pathParts':['imports',z(0x176),g,b[z(0x184)],j,'graphql',z(0x186)+n]}),u=z(0x179)+g+l+j+'/graphql/resolvers';await this[z(0x1ba)][z(0x17b)]({'srcPath':z(0x1a0),'destPath':t,'context':m,'config':c}),await this[z(0x1ba)][z(0x1ad)]({'filePath':q,'content':z(0x17e)+k+z(0x18c)+u+'\x27;'}),await this[z(0x1ba)][z(0x1ab)]({'filePath':q,'content':z(0x1be)+k+z(0x18d),'begin':z(0x17c),'end':z(0x181)});}}await this['fsi']['template']({'srcPath':z(0x1a5),'destPath':this['fsi'][z(0x198)]({'pathParts':[z(0x1b6),z(0x17f),z(0x172),z(0x173)+j+z(0x187)+n]}),'context':m,'config':c,'force':!![]});const o=this[z(0x1ba)][z(0x198)]({'pathParts':['imports',z(0x17f),z(0x172),z(0x19a)+c[z(0x18b)]['js']]});await this[z(0x1ba)][z(0x19f)]({'filePath':o,'content':z(0x1a6)+j+z(0x1a4)});});}catch(i){console[y(0x19e)](i),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=-parseInt(j(0x18d))/0x1*(parseInt(j(0x1a3))/0x2)+parseInt(j(0x182))/0x3+parseInt(j(0x1a0))/0x4+parseInt(j(0x194))/0x5*(parseInt(j(0x192))/0x6)+parseInt(j(0x193))/0x7*(parseInt(j(0x18b))/0x8)+-parseInt(j(0x189))/0x9*(-parseInt(j(0x17f))/0xa)+-parseInt(j(0x180))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xa68fe));function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x17b;let f=c[d];return f;},a107d(a,b);}function a107c(){const p=['Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','test','startup','none','\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','13610810yBnBES','46356937orsJzE','withValue','3623214Gykyhi','engines','constructor','appPathPrefix','search','(((.+)+)+)+$','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','9faWVZq','where','176KqOHRR','mongo','142187OIPJHt','pathFromApp','fsi','create','maka\x20g:collection\x20todos','12RUmWwy','400876PDGgxR','369805DQutmp','collection/collection.js','imports','collections','apply','resourceName','tsx','index.','dir','collection/tests.js','getMakaProjectConfig','checkMeteorPackage','4816968mxUqXy','toString','.app-tests.','4gxgAMZ','injectAtEndOfFile','error','col'];a107c=function(){return p;};return a107c();}const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a[l(0x1a1)]()['search'](l(0x187))[l(0x1a1)]()[l(0x184)](a107a)[l(0x186)]('(((.+)+)+)+$');});a107a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a107m(0x190)]({'name':'collection','aliases':[a107m(0x1a6)],'usage':a107m(0x188),'checkWhere':!![],'shortDesc':a107m(0x1a7),'validOpts':[a107m(0x19c),a107m(0x18a)],'description':a107m(0x17e),'examples':[a107m(0x191)]},async function(a,b){const n=a107m;try{const c=this['fsi'][n(0x19e)]();await this[n(0x18f)][n(0x181)](c,async()=>{const o=n,d=paramCase(b[o(0x199)]),f={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x199)]),'fileName':d,'where':b[o(0x18a)],'test':c['engines'][o(0x17b)],'noRename':!![]};let g='js';c['engines']['js']===o(0x19a)&&(g='ts');await this[o(0x18f)][o(0x19f)]([o(0x18c)],{'shouldInstall':!![]}),await this[o(0x18f)]['template']({'srcPath':o(0x195),'destPath':this[o(0x18f)]['pathFromApp']({'pathParts':[o(0x196),o(0x17c),b[o(0x185)],o(0x197),b[o(0x19c)],d+'.'+g]}),'context':f,'config':c});c[o(0x183)][o(0x17b)]!==o(0x17d)&&await this[o(0x18f)]['template']({'srcPath':o(0x19d),'destPath':this[o(0x18f)][o(0x18e)]({'pathParts':[o(0x196),o(0x17c),b[o(0x185)],'collections',b[o(0x19c)],d+o(0x1a2)+g]}),'context':f,'config':c});const h=b[o(0x19c)]?'/'+b['dir']+'/':'/',i=this[o(0x18f)]['pathFromApp']({'pathParts':[o(0x196),'startup',b[o(0x185)],o(0x19b)+c[o(0x183)]['js']]});await this[o(0x18f)][o(0x1a4)]({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log[n(0x1a5)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108n=a108d;(function(a,b){const k=a108d,c=a();while(!![]){try{const d
|
|
1
|
+
const a108n=a108d;(function(a,b){const k=a108d,c=a();while(!![]){try{const d=-parseInt(k(0x103))/0x1+parseInt(k(0x11c))/0x2+parseInt(k(0xf5))/0x3+parseInt(k(0x120))/0x4*(parseInt(k(0xfe))/0x5)+parseInt(k(0x119))/0x6+-parseInt(k(0x111))/0x7+parseInt(k(0x100))/0x8*(parseInt(k(0x11a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xe17af));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a108d;if(c){const e=c[l(0x104)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const m=a108d;return a108a['toString']()[m(0xfb)](m(0x122))['toString']()[m(0xfc)](a108a)[m(0xfb)](m(0x122));});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=['comp'];function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xf2;let f=c[d];return f;},a108d(a,b);}function a108c(){const q=['.js','search','constructor','className','5cybMDU','fsi','18768uXDWKO','cssCaseName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','1199569xSFAqE','apply','relative','withTranslations','findAppDirectory','withValue','baseDir','test/test.js','true','ssr','component/component.js','component','injectTemplateModule','.css','12042863YciQbj','test','.tests.js','error','template','api','checkNpmPackage','client','4148862HrkVHB','5769LWQrtS','theme','142910Ceuhbi','pathFromApp','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','fileName','1512024pLOdmX','resourceName','(((.+)+)+)+$','import\x20\x27./','create','react','graphql','dir','root','pathFromProject','warn','injectAtBeginningOfFile','string','features','none','3596463TnHXiw','setTemplate','css','engines','installNpmPackage'];a108c=function(){return q;};return a108c();}Generator[a108n(0x124)]({'name':a108n(0x10e),'aliases':aliases,'usage':a108n(0x11e),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a108n(0x109)}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const o=a108n;try{const c=this['fsi'][o(0x107)](),d=b[o(0x109)]?'/imports/ui/'+b[o(0x109)]:'/imports/ui/components',f=this[o(0xff)][o(0x11d)]({'pathParts':[d,b[o(0x127)],paramCase(b[o(0x121)]),paramCase(b[o(0x121)])]}),g=await this[o(0xff)]['getMakaProjectConfig']();await this[o(0xff)][o(0x108)](g,async()=>{const p=o;typeof g[p(0x115)][p(0x112)]===p(0xf2)&&(g[p(0x115)]['test']=g[p(0x115)]['test']==='true'?!![]:![],this['fsi'][p(0xf6)](p(0x112),g[p(0x115)][p(0x112)]));typeof g['template']['css']==='string'&&(g['template'][p(0xf7)]=g[p(0x115)]['css']===p(0x10b)?!![]:![],this[p(0xff)][p(0xf6)](p(0xf7),g[p(0x115)][p(0xf7)]));typeof g[p(0x115)]['js']==='string'&&(g['template']['js']=g[p(0x115)]['js']==='true'?!![]:![],this[p(0xff)][p(0xf6)]('js',g[p(0x115)]['js']));!g[p(0xf3)]&&(g[p(0xf3)]={});!b[p(0x128)]&&!this[p(0xff)][p(0x117)]('ramda')&&(Log[p(0x12a)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi'][p(0xf9)]('ramda',{'cwd':c}));if(!b[p(0x128)]&&!this['fsi']['checkNpmPackage'](p(0x125))){Log[p(0x114)](p(0x102));return;}const h={'name':pascalCase(b[p(0x121)]),'myPath':a108e[p(0x105)](this[p(0xff)][p(0x129)]({}),f),'cssCaseName':paramCase(b[p(0x121)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0x121)]),'fileName':paramCase(b[p(0x121)]),'graphql':g[p(0xf8)][p(0x126)],'features':g['features'],'client':g[p(0xf8)][p(0x118)],'api':g[p(0xf8)][p(0x116)],'ssr':g[p(0xf8)][p(0x10c)],'test':g['engines'][p(0x112)],'theme':g[p(0xf8)][p(0x11b)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0xf3)][p(0x106)]};await this['fsi'][p(0x115)]({'srcPath':p(0x10d),'destPath':f+p(0xfa),'context':h,'framework':'react','config':g});g[p(0xf8)][p(0x112)]!==p(0xf4)&&await this[p(0xff)][p(0x115)]({'srcPath':p(0x10a),'destPath':f+p(0x113),'context':h,'framework':p(0x125),'config':g});g[p(0x115)][p(0xf7)]&&(await this['fsi'][p(0x115)]({'srcPath':'template/template.css','destPath':f+p(0x110),'context':Object['assign']({},h,{'className':paramCase(b['resourceName'])}),'config':g}),await this[p(0xff)][p(0x12b)]({'filePath':f+'.'+g[p(0xf8)]['js'],'content':p(0x123)+h[p(0x101)]+'.'+g[p(0xf8)][p(0xf7)]+'\x27;'}));const i=b[p(0x127)]?'/'+b[p(0x127)]+'/':'/',j=''+d+i+h[p(0x11f)]+'/'+h[p(0x11f)];await this[p(0xff)][p(0x10f)](h[p(0xfd)],g,j);});}catch(h){Log[o(0x114)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x17a))/0x1+-parseInt(h(0x187))/0x2*(-parseInt(h(0x181))/0x3)+-parseInt(h(0x182))/0x4*(-parseInt(h(0x183))/0x5)+-parseInt(h(0x169))/0x6*(-parseInt(h(0x17f))/0x7)+-parseInt(h(0x185))/0x8*(parseInt(h(0x167))/0x9)+parseInt(h(0x176))/0xa+parseInt(h(0x186))/0xb*(-parseInt(h(0x17e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xcd2e9));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x170)]()[j(0x17b)](j(0x178))[j(0x170)]()[j(0x16d)](a109a)[j(0x17b)]('(((.+)+)+)+$');});function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x166;let f=c[d];return f;},a109d(a,b);}a109a();function a109c(){const n=['development','config/settings.json','settings.json','7416940FSSqgt','isDocker','(((.+)+)+)+$','withValue','1428447hSmHwv','search','appName','maka\x20{generate,\x20g}:{config}\x20<name>','12oLqwWz','8052324SbxCnN','production','3ZEJvPu','32104qlDzlO','5bLDEuy','template','9335992ZbdRuI','21554467xxnbjF','1276844wfEdjb','apply','9ogpmMy','create','6kzDRBo','process.env','pathFromProject','config','constructor','fsi','maka\x20g:config\x20production','toString','config/process.env','resourceName'];a109c=function(){return n;};return a109c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109k(0x168)]({'name':'config','usage':a109k(0x17d),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':['isDocker'],'examples':[a109k(0x16f)]},async function(a,b){const l=a109k,c=this[l(0x16e)]['getMakaProjectConfig']();await this[l(0x16e)][l(0x179)](c,async()=>{const m=l,d={'app':c[m(0x17c)],'appFileCase':paramCase(c[m(0x17c)]),'name':pascalCase(b[m(0x172)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[m(0x177)]};let e=b[m(0x172)];if(e==='dev')e=m(0x173);else e==='prod'&&(e=m(0x180));const f=this['fsi'][m(0x16b)]({'pathParts':[m(0x16c),e,m(0x175)]});await this[m(0x16e)][m(0x184)]({'srcPath':m(0x174),'destPath':f,'context':d,'config':c});if(!b[m(0x177)]){const g=this[m(0x16e)][m(0x16b)]({'pathParts':[m(0x16c),e,m(0x16a)]});await this[m(0x16e)]['template']({'srcPath':m(0x171),'destPath':g,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=parseInt(j(0x134))/0x1*(-parseInt(j(0x12e))/0x2)+-parseInt(j(0x132))/0x3+parseInt(j(0x140))/0x4+parseInt(j(0x115))/0x5*(-parseInt(j(0x11f))/0x6)+parseInt(j(0x136))/0x7+-parseInt(j(0x129))/0x8*(-parseInt(j(0x114))/0x9)+parseInt(j(0x11b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xabc9e));function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x113;let f=c[d];return f;},a110d(a,b);}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0x13a)]()[l(0x138)](l(0x13b))[l(0x13a)]()[l(0x11e)](a110a)[l(0x138)](l(0x13b));});a110a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a110c(){const p=['index.','9294570LbdYfr','tsx','type','constructor','102726GYiqnz','create','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','checkNpmPackage','startup','resourceName','maka\x20g:dbc\x20azure\x20--type=mssql','dbc/conn.js','-dbc.','engines','8qHPHHd','register-','dir','imports','warn','94MIMOrv','mssql','maka\x20g:dbc\x20todos\x20--type=sqlite','maka\x20g:dbc\x20geoserver\x20--type=pgsql','277641DvOHWk','fsi','17931FqBgHi','injectAtEndOfFile','6368908wbfNTd','server','search','pathFromApp','toString','(((.+)+)+)+$','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','apply','dbc','dbc/register-dbc.js','796864QHVbcO','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','1642923zOHSXQ','170EPCCXY','template','better-sqlite3','sqlite','installNpmPackage'];a110c=function(){return p;};return a110c();}import{Log}from'../tools/log/log.class.js';Generator[a110m(0x120)]({'name':a110m(0x13e),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a110m(0x121),'validOpts':[a110m(0x12b)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a110m(0x11d),'values':['pgsql',a110m(0x12f),a110m(0x118)]}],'examples':[a110m(0x131),a110m(0x125),a110m(0x130)]},async function(a,b){const n=a110m;try{const c=await this[n(0x133)]['getMakaProjectConfig'](),d=this[n(0x133)]['pathFromApp']({}),f=paramCase(b[n(0x124)]),g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[n(0x124)]),'camelCase':camelCase(b[n(0x124)]),'type':b[n(0x11d)],'engine':c['engines']['js'],'noRename':!![]};await this['fsi']['withValue'](c,async()=>{const o=n;let h='js';c[o(0x128)]['js']===o(0x11c)&&(h='ts');b[o(0x11d)]==='pgsql'&&!this['fsi']['checkNpmPackage']('pg')&&(Log[o(0x12d)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0x133)][o(0x119)]('pg',{'cwd':d}));b[o(0x11d)]===o(0x12f)&&!this['fsi'][o(0x122)](o(0x12f))&&(Log[o(0x12d)](o(0x113)),await this[o(0x133)][o(0x119)](o(0x12f),{'cwd':d}));b['type']===o(0x118)&&!this[o(0x133)][o(0x122)](o(0x117))&&(Log[o(0x12d)](o(0x13c)),await this['fsi']['installNpmPackage'](o(0x117),{'cwd':d}));await this['fsi']['template']({'srcPath':'dbc/config.js','destPath':this[o(0x133)]['pathFromApp']({'pathParts':[o(0x12c),o(0x123),o(0x137),o(0x13e),b[o(0x12b)],f,'config.'+h]}),'context':g,'config':c}),await this[o(0x133)][o(0x116)]({'srcPath':o(0x126),'destPath':this[o(0x133)]['pathFromApp']({'pathParts':[o(0x12c),o(0x123),'server',o(0x13e),b[o(0x12b)],f,'conn.'+h]}),'context':g,'config':c}),await this[o(0x133)][o(0x116)]({'srcPath':o(0x13f),'destPath':this[o(0x133)][o(0x139)]({'pathParts':[o(0x12c),'startup',o(0x137),o(0x12a)+f+o(0x127)+h]}),'context':g,'config':c});const i=this['fsi'][o(0x139)]({'pathParts':[o(0x12c),o(0x123),o(0x137),o(0x11a)+c[o(0x128)]['js']]});await this['fsi'][o(0x135)]({'filePath':i,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111h=a111d;(function(a,b){const f=a111d,c=a();while(!![]){try{const d
|
|
1
|
+
const a111h=a111d;function a111c(){const k=['250364AWYhqg','Dockerfile','getGlobalConfig','maka\x20g:dockerfile','appName','create','(((.+)+)+)+$','8912574qrLNlv','7148130XmgrSn','join','fsi','toString','error','constructor','6287435rDyuTb','6NQPiPj','cert','search','build','1113QcACSG','app.tar.gz','service','withValue','8DbkjYL','maka\x20{generate,\x20g}:dockerfile','12azVCJq','Generate\x20an\x20updated\x20dockerfile','1464333RfOzFV','18392418AaLQLQ','19056IufPfM','template','app','getMakaProjectConfig'];a111c=function(){return k;};return a111c();}(function(a,b){const f=a111d,c=a();while(!![]){try{const d=parseInt(f(0xde))/0x1*(-parseInt(f(0xcc))/0x2)+-parseInt(f(0xd8))/0x3*(-parseInt(f(0xd6))/0x4)+-parseInt(f(0xcb))/0x5+-parseInt(f(0xda))/0x6*(parseInt(f(0xd0))/0x7)+-parseInt(f(0xd4))/0x8*(-parseInt(f(0xe5))/0x9)+-parseInt(f(0xe6))/0xa+parseInt(f(0xd9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xdb4e9));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 g=a111d;return a111a[g(0xc8)]()[g(0xce)](g(0xe4))[g(0xc8)]()[g(0xca)](a111a)[g(0xce)]('(((.+)+)+)+$');});a111a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xc7;let f=c[d];return f;},a111d(a,b);}import a111e from'path';Generator[a111h(0xe3)]({'name':'dockerfile','usage':a111h(0xd5),'shortDesc':a111h(0xd7),'validOpts':[],'noNeedResource':!![],'examples':[a111h(0xe1)]},async function(){const i=a111h;try{const a=await this['fsi'][i(0xdd)](),b=await this['fsi'][i(0xe0)](),c=this[i(0xc7)]['findProjectDirectory']();await this[i(0xc7)][i(0xd3)](a,async()=>{const j=i,d={'app':b[j(0xe2)],'config':a,'appPath':a111e[j(0xe7)](c,j(0xdc)),'bundlePath':a111e['join'](c,j(0xcf),j(0xd1)),'useCert':this['fsi']['isFile'](b[j(0xcd)])};await this[j(0xc7)][j(0xdb)]({'srcPath':'docker/Dockerfile','destPath':a111e[j(0xe7)](c,j(0xdf)),'framework':j(0xd2),'context':d,'config':a});});}catch(d){Log[i(0xc9)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a112c(){const r=['\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','
|
|
1
|
+
const a112o=a112d;(function(a,b){const l=a112d,c=a();while(!![]){try{const d=parseInt(l(0x179))/0x1+-parseInt(l(0x176))/0x2+parseInt(l(0x165))/0x3+parseInt(l(0x18b))/0x4+parseInt(l(0x175))/0x5*(parseInt(l(0x172))/0x6)+parseInt(l(0x158))/0x7*(parseInt(l(0x15c))/0x8)+-parseInt(l(0x177))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xd5b15));function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x158;let f=c[d];return f;},a112d(a,b);}const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a112d;if(c){const e=c[m(0x15f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const n=a112d;return a112a[n(0x16e)]()['search'](n(0x162))[n(0x16e)]()[n(0x18f)](a112a)[n(0x178)](n(0x162));});a112a();import a112e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a112c(){const r=['pages','graphql','constructor','hook/hook.js','react','apollo','checkNpmPackage','injectTemplateModule','setTemplate','1477yGaXyZ','\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','findAppDirectory','@apollo/client\x20isomorphic-fetch','43712sJLLBz','import\x20\x27./','template','apply','dir','test','(((.+)+)+)+$','error','notice','3736416zFMJSk','fileName','pathFromApp','.js','resourceName','css','engines','withTranslations','@apollo/client','toString','warn','components','none','6OkqGXI','maka\x20g:hook\x20cool-hook','features','8539005NntQmX','996530GwRaVt','48091554ubXDmd','search','1405697oPhfCe','fsi','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','layouts','cssCaseName','template/template.css','true','hook','Creating\x20','className','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','withValue','theme','injectAtBeginningOfFile','installNpmPackage','string','force','baseDir','4820728TzwtyO','pathFromProject'];a112c=function(){return r;};return a112c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a112o(0x180),'aliases':['h'],'checkWhere':![],'usage':a112o(0x17b),'shortDesc':a112o(0x183),'validOpts':[{'name':a112o(0x18a),'values':['hooks',a112o(0x170),a112o(0x18d),a112o(0x17c)]},{'name':'force','boolFlag':!![]}],'examples':[a112o(0x173)],'description':a112o(0x159)},async function(a,b){const p=a112o;Log[p(0x164)](p(0x181)+b['resourceName']+'\x20hook...');try{const c=this[p(0x17a)][p(0x193)](p(0x191));if(!c){Log[p(0x163)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[p(0x17a)][p(0x15a)](),f=b[p(0x18a)]?'/imports/ui/'+b[p(0x18a)]:'/imports/ui/components',g=this[p(0x17a)][p(0x167)]({'pathParts':[f,b[p(0x160)],paramCase(b['resourceName']),paramCase(b[p(0x169)])]}),h=await this[p(0x17a)]['getMakaProjectConfig']();await this['fsi'][p(0x184)](h,async()=>{const q=p;typeof h[q(0x15e)]['css']===q(0x188)&&(h[q(0x15e)]['css']=h[q(0x15e)][q(0x16a)]===q(0x17f)?!![]:![],this[q(0x17a)][q(0x195)](q(0x16a),h[q(0x15e)][q(0x16a)]));h['engines'][q(0x18e)]===q(0x192)&&!this[q(0x17a)]['checkNpmPackage'](q(0x16d))&&(Log[q(0x16f)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[q(0x17a)][q(0x187)](q(0x15b),{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x169)]),'camelCaseName':camelCase(b[q(0x169)]),'className':pascalCase(b[q(0x169)]),'name':pascalCase(b[q(0x169)]),'graphql':h[q(0x16b)][q(0x18e)],'theme':h[q(0x16b)][q(0x185)],'features':h[q(0x174)],'myPath':a112e['relative'](this[q(0x17a)][q(0x18c)]({}),g),'fileName':paramCase(b[q(0x169)]),'isComponent':![],'isLayout':![],'withTranslations':h['features'][q(0x16c)]};await this['fsi'][q(0x15e)]({'srcPath':q(0x190),'destPath':g+q(0x168),'context':i,'config':h,'framework':q(0x191),'force':b[q(0x189)]});h[q(0x15e)]['css']&&(await this[q(0x17a)]['template']({'srcPath':q(0x17e),'destPath':g+'.css','context':Object['assign']({},i,{'className':i[q(0x17d)]}),'config':h,'force':b[q(0x189)]}),await this[q(0x17a)][q(0x186)]({'filePath':g+'.'+h['engines']['js'],'content':q(0x15d)+i[q(0x166)]+'.'+h[q(0x16b)][q(0x16a)]+'\x27;'}));h[q(0x16b)][q(0x161)]!==q(0x171)&&await this[q(0x17a)][q(0x15e)]({'srcPath':'test/test.js','destPath':g+'.app-tests.js','framework':q(0x191),'context':i,'config':h,'force':b['force']});const j=b[q(0x160)]?'/'+b[q(0x160)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[q(0x166)];await this[q(0x17a)][q(0x194)](i[q(0x182)],h,k);});}catch(i){Log[p(0x163)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=parseInt(f(0x170))/0x1+-parseInt(f(0x16f))/0x2*(parseInt(f(0x178))/0x3)+parseInt(f(0x175))/0x4+-parseInt(f(0x174))/0x5+-parseInt(f(0x176))/0x6+parseInt(f(0x177))/0x7+parseInt(f(0x16e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xef3fd));var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a[h(0x173)]()['search']('(((.+)+)+)+$')[h(0x173)]()[h(0x179)](a113a)[h(0x172)]('(((.+)+)+)+$');});a113a();function a113c(){var i=['9064855iTVRau','3495288APCoAL','2468538wXoixl','10967705WCEMFR','20019WpmPLr','constructor','7443504ROwhGP','382AfyhOZ','1107827sYMNAA','apply','search','toString'];a113c=function(){return i;};return a113c();}function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0x16e;var f=c[d];return f;},a113d(a,b);}import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';import'./auth/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a114d,c=a();while(!![]){try{var d
|
|
1
|
+
function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0x185;var f=c[d];return f;},a114d(a,b);}(function(a,b){var f=a114d,c=a();while(!![]){try{var d=-parseInt(f(0x187))/0x1*(parseInt(f(0x18e))/0x2)+parseInt(f(0x18d))/0x3*(parseInt(f(0x18f))/0x4)+-parseInt(f(0x18c))/0x5+parseInt(f(0x191))/0x6+-parseInt(f(0x185))/0x7+parseInt(f(0x192))/0x8+-parseInt(f(0x18b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xa3999));var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a['toString']()[h(0x188)]('(((.+)+)+)+$')[h(0x18a)]()[h(0x186)](a114a)[h(0x188)](h(0x190));});function a114c(){var i=['search','apply','toString','10907883vMHEnC','2326695SfgMIX','1632810SzJKIR','4cJyNyt','8CeHAOl','(((.+)+)+)+$','3282348VLtvFH','7094000eSNDAW','1180403GXrHdX','constructor','3144UBCsLH'];a114c=function(){return i;};return a114c();}a114a();import'./auth.generator.js';import'./provider.auth.gen.js';import'./basic-meteor.auth.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d
|
|
1
|
+
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=parseInt(f(0x185))/0x1*(parseInt(f(0x17a))/0x2)+parseInt(f(0x177))/0x3*(parseInt(f(0x183))/0x4)+-parseInt(f(0x17b))/0x5+-parseInt(f(0x180))/0x6+-parseInt(f(0x176))/0x7+-parseInt(f(0x182))/0x8*(-parseInt(f(0x17f))/0x9)+parseInt(f(0x179))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x4eef1));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0x186)]()[h(0x187)](h(0x181))[h(0x186)]()[h(0x17d)](a115a)[h(0x187)](h(0x181));});function a115c(){const k=['2CIWgeR','568805rTOQie','apply','constructor','auth','1143FrgieJ','2429178iEFjeq','(((.+)+)+)+$','17440BsGlTx','570284omQjEs','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:<kit-name>','246880wzxyrI','toString','search','459732sQFwkM','6ZRYUoi','NIE','987310CZFGAE'];a115c=function(){return k;};return a115c();}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-0x176;let f=c[d];return f;},a115d(a,b);}const AuthGen=Generator['create']({'name':a115i(0x17e),'aliases':['a'],'usage':a115i(0x184),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20an\x20Auth\x20Provider','validOpts':[''],'isPro':!![],'examples':['maka\x20g:kit:a'],'description':'\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x20\x20'},async function(){const j=a115i;throw j(0x178);},async function(){},a115e);export default AuthGen;
|