@maka/maka-cli 5.1.16 → 5.1.17
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/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/testCmd/_index.js +1 -1
- package/bundle/obf/src/commands/testCmd/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/testCmd/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/uninstall.js +1 -1
- package/bundle/obf/src/commands/version/_index.js +1 -1
- package/bundle/obf/src/commands/version/list.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/use.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/version/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.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/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.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 a96m=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(
|
|
1
|
+
const a96m=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0xfd))/0x1*(-parseInt(k(0x10a))/0x2)+-parseInt(k(0xfa))/0x3+parseInt(k(0x10f))/0x4*(-parseInt(k(0x100))/0x5)+parseInt(k(0x10c))/0x6+parseInt(k(0x111))/0x7+parseInt(k(0x112))/0x8*(-parseInt(k(0x109))/0x9)+parseInt(k(0xf9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x42ddb));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const l=a96d;return a96a[l(0x105)]()[l(0x107)]('(((.+)+)+)+$')[l(0x105)]()[l(0x106)](a96a)[l(0x107)](l(0xf6));});function a96c(){const o=['1000GPimIv','maka\x20ssh\x20--env\x20staging','sshSync','(((.+)+)+)+$','join','ssh.json','7835270GoegOh','904395PFTmgR','maka\x20ssh\x20<command>','create','25598deJWkF','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','maka\x20ssh\x20--env\x20dev','20810zvtYFj','exit','ssh','env','verbose','toString','constructor','search','maka\x20ssh\x20--env\x20prod','387EhVXqF','12SdLppy','getAppConfigPath','527904qOhpjo','error','cfg','456JbtMhm','length','210644gEJrlz'];a96c=function(){return o;};return a96c();}a96a();import a96e from'fs';import a96f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xf4;let f=c[d];return f;},a96d(a,b);}import{Log}from'../tools/log/log.class.js';Command[a96m(0xfc)]({'name':a96m(0x102),'usage':a96m(0xfb),'mustBeInMakaProject':!![],'requiredOpts':[a96m(0x103)],'validOpts':[a96m(0x103),a96m(0x104)],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':[a96m(0xff),a96m(0xf4),a96m(0x108),a96m(0xfe),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22']},async function(a,b){const n=a96m;try{const c=this['cfg']['getEnvFromShorthand'](b['env']),d=this[n(0x10e)][n(0x10b)](c);let f='';a[n(0x110)]>0x0&&(f=a[0x0]);const g=a96f[n(0xf7)](d,n(0xf8)),h=a96e['readFileSync'](g)[n(0x105)](),i=JSON['parse'](h);Object['assign'](i,{'env':d}),SSH[n(0xf5)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[n(0x104)]});}catch(j){Log[n(0x10d)](j),process[n(0x101)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d
|
|
1
|
+
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=-parseInt(w(0x1ee))/0x1+-parseInt(w(0x1cb))/0x2+-parseInt(w(0x1ea))/0x3*(-parseInt(w(0x1d5))/0x4)+parseInt(w(0x1c1))/0x5*(-parseInt(w(0x1e0))/0x6)+-parseInt(w(0x1e9))/0x7*(parseInt(w(0x1c8))/0x8)+-parseInt(w(0x1f0))/0x9*(parseInt(w(0x1d4))/0xa)+parseInt(w(0x1f4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x45d14));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0x1d2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a['toString']()[y(0x1e6)](y(0x1c9))['toString']()['constructor'](a97a)['search']('(((.+)+)+)+$');});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1bb;let f=c[d];return f;},a97d(a,b);}a97a();import a97e from'fs';import a97f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';function a97c(){const B=['265890DGeMTh','4904kabESP','create','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','success','stringify','Please\x20provide\x20a\x20command.','uname\x20-a','notice','env','withSpinner','[?]\x20Domains\x20to\x20register:\x20','276lxNKrS','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','letsencrypt','readFileSync','ask','Using\x20saved\x20letsencrypt\x20config','search','\x20--email\x20','domainNames','7XgQSaq','225CwyEZc','join','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','maka\x20ssl\x20--env\x20dev\x20generate-csr','276761sUiXZE','.csr','45DXardC','existsSync','.key','exit','13842202ZzSRcr','Verifying\x20Letsencrypt\x20configuration','ping','assign','.crt','cfg','Create\x20and\x20manage\x20your\x20SSL\x20operations.','generate-ssc','getAppConfigPath','start','8225kPFcIZ','getMakaProjectConfig','parse','email','domains','ssl','sudo\x20snap\x20install\x20--classic\x20certbot','2042872atJxJW','(((.+)+)+)+$','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','647250wOLzYY','ssh','writeFileSync','appName','Email\x20to\x20use\x20for\x20auto-updates:\x20','New\x20CSR\x20written\x20to\x20','emailUpdate','apply','toString'];a97c=function(){return B;};return a97c();}import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a97z(0x1d6)]({'name':a97z(0x1c6),'usage':'maka\x20ssl\x20[command]','validOpts':[a97z(0x1c5),a97z(0x1c4)],'requiredOpts':['env'],'shortDesc':a97z(0x1bd),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0x1ed),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a97z(0x1ec)]},async function(a,b){const A=a97z,c=this[A(0x1bc)][A(0x1c2)](),d=this['cfg']['getEnvFromShorthand'](b[A(0x1dd)]),f=this['cfg'][A(0x1bf)](d),g=this['fsi']['mkKeysDir']({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h==='generate-csr')SSL['genCSR']({'keyName':c[A(0x1ce)]+A(0x1f2),'csrName':c[A(0x1ce)]+A(0x1ef),'cwd':g});else{if(h===A(0x1be)){if(!a97e[A(0x1f1)](a97f[A(0x1eb)](g,c['appName']+A(0x1f2))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a97f['join'](g,c['appName']+A(0x1f2));if(!a97e[A(0x1f1)](a97f[A(0x1eb)](g,c['appName']+A(0x1ef))))throw A(0x1ca)+a97f[A(0x1eb)](g,c[A(0x1ce)]+A(0x1ef));SSL['genSSC']({'keyName':c[A(0x1ce)]+'.key','crtName':c[A(0x1ce)]+A(0x1bb),'cwd':g}),Log['notice'](A(0x1d0)+g);}else{if(h===A(0x1e2)){let i=b[A(0x1c5)],j=b[A(0x1c4)];try{const q=a97e['readFileSync'](a97f[A(0x1eb)](f,'letsencrypt.json'))[A(0x1d3)](),r=JSON[A(0x1c3)](q);i=b[A(0x1c5)]?b[A(0x1c5)]:r[A(0x1e8)],j=b[A(0x1c4)]?b[A(0x1c4)]:r[A(0x1d1)],(!b[A(0x1c4)]||!b[A(0x1c5)])&&Log[A(0x1dc)](A(0x1e5));}catch(s){}const k=JSON['parse'](a97e[A(0x1e3)](f+'/ssh.json')['toString']());Object[A(0x1f7)](k,{'env':f}),Log[A(0x1dc)]('Checking\x20remote\x20host\x20availability');try{const t=SSH[A(0x1f6)](A(0x1db),k);if(!t)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(t)Log[A(0x1d8)]('Remote\x20host\x20connection\x20successful');}catch(u){Log['error'](u);return;}const l=Log[A(0x1de)]();l[A(0x1c0)](A(0x1f5)),SSH[A(0x1cc)](A(0x1d7),{...k}),SSH[A(0x1cc)](A(0x1c7),{...k}),SSH[A(0x1cc)](A(0x1e1),{...k}),l[A(0x1d8)]();const m=i?i:await Actions[A(0x1e4)](A(0x1df)),n=j?j:await Actions['ask'](A(0x1cf));SSH[A(0x1cc)]('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+m+A(0x1e7)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x1d9)](o,null,0x2);a97e[A(0x1cd)](a97f['join'](f,'letsencrypt.json'),p);}else throw A(0x1da);}}}catch(v){console['error'](v),process[A(0x1f3)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x1b7;var f=c[d];return f;},a98d(a,b);}(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x1bd))/0x1+-parseInt(f(0x1c0))/0x2*(parseInt(f(0x1c5))/0x3)+-parseInt(f(0x1bc))/0x4*(-parseInt(f(0x1c3))/0x5)+parseInt(f(0x1c1))/0x6*(-parseInt(f(0x1c4))/0x7)+-parseInt(f(0x1b9))/0x8+-parseInt(f(0x1bb))/0x9+-parseInt(f(0x1bf))/0xa*(-parseInt(f(0x1b8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x42cc4));function a98c(){var i=['search','380WqhcqY','50HhTpxz','1866972mRaumO','constructor','30azKgGs','7QCXCPg','28266cdtwJM','toString','apply','220363EJWIYK','2440536VOBKej','(((.+)+)+)+$','2094354jTviZt','252328KudCQB','218343BsLJeo'];a98c=function(){return i;};return a98c();}var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x1b7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x1c6)]()['search'](h(0x1ba))[h(0x1c6)]()[h(0x1c2)](a98a)[h(0x1be)](h(0x1ba));});a98a();import'./test.command.js';import'./mocha.sub.cmd.js';import'./jest.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99r=a99d;function a99c(){const t=['
|
|
1
|
+
const a99r=a99d;(function(a,b){const o=a99d,c=a();while(!![]){try{const d=-parseInt(o(0x1f1))/0x1+-parseInt(o(0x1db))/0x2*(-parseInt(o(0x1f5))/0x3)+parseInt(o(0x1df))/0x4*(parseInt(o(0x1f9))/0x5)+-parseInt(o(0x1f4))/0x6*(-parseInt(o(0x1e6))/0x7)+parseInt(o(0x1f3))/0x8*(parseInt(o(0x1ea))/0x9)+parseInt(o(0x1cc))/0xa+parseInt(o(0x1fb))/0xb*(-parseInt(o(0x1b6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x63f3a));function a99c(){const t=['cfg','getMakaProjectConfig','6428480zBGXjw','exit','babel.config.js','Specify\x20a\x20custom\x20Jest\x20config\x20file','test/jest/jest.config.js','(((.+)+)+)+$','graphql','isFile','error','Run\x20tests\x20sequentially\x20in\x20the\x20same\x20process','jest','Run\x20Jest\x20in\x20watch\x20mode','coverage','findAppDirectory','watch','64636tacsdE','runInBand','log','maka\x20test:jest\x20<file|directory>\x20[--options]','2576300IoXvoe','babel-jest','identity-obj-proxy','apply','scaffold','constructor','Run\x20a\x20Jest\x20test\x20suite\x20with\x20custom\x20options','6139jSjrcs','jest.setup.js','search','jest-css-modules-transform','4563hVyWdk','/node_modules/','apollo','@testing-library/react','<rootDir>/private','config','updateSnapshot','57289YIuJqe','pkg','4184VhrDfE','492rdeOBF','57BAzdPC','<rootDir>/packages','clearCache','service','5XCSjWP','join','1146167JyZPbc','message','fsi','204sDXSfp','eslint/babel.config.js','jsdom','Coverage\x20report\x20generated\x20in\x20the\x20\x22coverage\x22\x20directory.','**/?(*.)+(app-tests).[tj]s?(x)','@babel/plugin-syntax-jsx','<rootDir>/$1','<rootDir>/public','onlyFailures','@apollo/react-testing','runCLI','Run\x20only\x20failed\x20tests\x20from\x20the\x20last\x20run','Error\x20running\x20Jest:\x20','toString','engines','create','/node_modules','jest-environment-jsdom','template','test/jest/jest.setup.js'];a99c=function(){return t;};return a99c();}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a99d;if(c){const e=c[p(0x1e2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const q=a99d;return a99a['toString']()[q(0x1e8)](q(0x1d1))[q(0x1c3)]()[q(0x1e4)](a99a)[q(0x1e8)](q(0x1d1));});a99a();function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a99d(a,b);}import{Command}from'../../command.js';import a99e from'./test.command.js';import a99f from'jest';import a99g from'path';Command[a99r(0x1c5)]({'name':a99r(0x1d6),'usage':a99r(0x1de),'shortDesc':a99r(0x1e5),'description':'Runs\x20Jest\x20tests\x20in\x20the\x20specified\x20file\x20or\x20directory\x20with\x20optional\x20Jest\x20configurations,\x20including\x20coverage\x20reports.','mustBeInMakaProject':!![],'validOpts':[{'name':'watch','boolFlag':!![],'description':a99r(0x1d7)},{'name':a99r(0x1d8),'boolFlag':!![],'description':'Generate\x20test\x20coverage\x20report'},{'name':a99r(0x1f0),'boolFlag':!![],'description':'Update\x20Jest\x20snapshots'},{'name':a99r(0x1dc),'boolFlag':!![],'description':a99r(0x1d5)},{'name':'onlyFailures','boolFlag':!![],'description':a99r(0x1c1)},{'name':a99r(0x1ef),'description':a99r(0x1cf),'regex':/^.+\.js$/},{'name':a99r(0x1f7),'boolFlag':!![],'description':'Clear\x20Jest\x20cache\x20before\x20running\x20tests'}]},async function(a,b){const s=a99r,c=this[s(0x1b5)][s(0x1d9)](),d=this['fsi']['findProjectDirectory']();await this[s(0x1f2)]['checkNpmPackage']([s(0x1ed),s(0x1bb),s(0x1e9),s(0x1e1),s(0x1c7)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});const e=this[s(0x1ca)][s(0x1cb)]();e[s(0x1c4)][s(0x1d2)]===s(0x1ec)&&await this[s(0x1f2)]['checkNpmPackage']([s(0x1bf)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});if(b[s(0x1f7)]){await a99f[s(0x1c0)]({'_':[],'$0':'jest','clearCache':!![]},[c]);return;}const f=a99g[s(0x1fa)](d,s(0x1ef),s(0x1e7)),g=this['fsi']['isFile'](f);!g&&await this['scaffold'][s(0x1c8)]({'srcPath':s(0x1c9),'destPath':f,'framework':'service','context':{'noRename':!![]}});const h=a99g['join'](c,'jest.config.js'),i=this[s(0x1b5)][s(0x1d3)](h);!i&&await this[s(0x1e3)]['template']({'srcPath':s(0x1d0),'destPath':h,'framework':s(0x1f8),'context':{'noRename':!![]}});const j=a99g[s(0x1fa)](c,s(0x1ce)),k=this[s(0x1b5)][s(0x1d3)](j);!k&&await this[s(0x1e3)][s(0x1c8)]({'srcPath':s(0x1b7),'destPath':j,'framework':s(0x1f8),'context':{'noRename':!![]}});const l={'_':a,'$0':s(0x1d6),'testEnvironment':s(0x1b8),'watch':b[s(0x1da)]||![],'coverage':b[s(0x1d8)]||![],'updateSnapshot':b['updateSnapshot']||![],'runInBand':b[s(0x1dc)]||![],'onlyFailures':b[s(0x1be)]||![],'config':b[s(0x1ef)]||undefined,'rootDir':c,'coverageDirectory':a99g[s(0x1fa)](d,s(0x1d8)),'testPathIgnorePatterns':[s(0x1c6),s(0x1f6),s(0x1bd),s(0x1ee)],'testMatch':[s(0x1ba)],'transform':{'^.+\x5c.(js|jsx|ts|tsx)$':s(0x1e0),'.+\x5c.(css|styl|less|sass|scss)$':'jest-css-modules-transform'},'transformIgnorePatterns':[s(0x1eb),'^.+\x5c.module\x5c.(css|sass|scss)$'],'setupFiles':[f],'moduleNameMapper':{'\x5c.(css|less|scss)$':s(0x1e1),'^/(.*)$':s(0x1bc)}};try{const {results:m}=await a99f['runCLI'](l,[c]);m['success']?(console[s(0x1dd)]('Tests\x20completed\x20successfully.'),b[s(0x1d8)]&&console[s(0x1dd)](s(0x1b9))):(console[s(0x1d4)]('Some\x20tests\x20failed.'),process['exit'](0x1));}catch(n){console['error'](s(0x1c2)+n[s(0x1b4)]),process[s(0x1cd)](0x1);}},a99e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100w=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=parseInt(t(
|
|
1
|
+
const a100w=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=parseInt(t(0x18d))/0x1+-parseInt(t(0x1a8))/0x2*(parseInt(t(0x1c5))/0x3)+parseInt(t(0x184))/0x4+parseInt(t(0x1ae))/0x5*(parseInt(t(0x17d))/0x6)+parseInt(t(0x1b5))/0x7*(parseInt(t(0x1b6))/0x8)+parseInt(t(0x1c3))/0x9*(parseInt(t(0x1a4))/0xa)+-parseInt(t(0x19a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x2be7c));const a100b=(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;};}()),a100a=a100b(this,function(){const u=a100d;return a100a[u(0x187)]()[u(0x1ba)](u(0x18b))[u(0x187)]()['constructor'](a100a)[u(0x1ba)]('(((.+)+)+)+$');});a100a();import a100e from'fs';function a100c(){const z=['mocha','--driver','jasmine','36blLetR','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','splice','maka\x20install\x20meteor\x20--force','isFile','join','sanjo:jasmine','444208jqTCrk','--settings','Meteor\x20Settings:\x20','toString','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','test','slice','(((.+)+)+)+$','driver-package','185166dGMafp','packages','engines','inherit','cwd','exit','parse','process.env','checkConfigExists','driver','concat','Meteor\x20is\x20installed.','maka\x20test:mocha','1241504ORMoZq','cfg','@testing-library/dom\x20meteor-node-stubs\x20chai','unit','Node\x20Env\x20Config:\x20','driverPackage','settings','createFile','getEnvFromShorthand','config.json','142370wczbqI','.maka','notice','pkg','10przLbD','processAndRunGenerator','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','warn','forEach','fsi','21070OhObPX','info','local','meteortesting:mocha','filter','once','none','7GmnRJx','1636952QbZUDU','config','error','env','search','test-packages','argv','readFileSync','create','--env','settings.json','rawLogs','mpi','18dUnqZZ','relative','157137wshjFo','port'];a100c=function(){return z;};return a100c();}import a100f from'path';import a100g from'dotenv';import{execSync}from'child_process';import a100h from'./test.command.js';import a100i from'../../generators/maka.gen.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x17a;let f=c[d];return f;},a100d(a,b);}const syncSource=function(a){const v=a100d;a100e['openSync'](a,'r'),a100g[v(0x1b7)]({'path':a});};Command[a100w(0x1be)]({'name':'mocha','mustBeInMakaProject':!![],'validOpts':[a100w(0x1b3),a100w(0x18e),a100w(0x196),a100w(0x19f),a100w(0x19d),a100w(0x1b9),a100w(0x1c1),a100w(0x1c6),'inspect','testAppPath'],'usage':a100w(0x199),'aliases':['m'],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},async function(a,b){const x=a100w;try{this[x(0x1c2)]['isMeteorInstalled']()?Log[x(0x1a6)](x(0x198)):(Log['warn'](x(0x17e)),execSync(x(0x180),{'stdio':x(0x190)}));this[x(0x1a7)]['checkNpmPackage'](x(0x19c),{'shouldInstall':!![]});const c=b[x(0x1b9)]?this[x(0x19b)][x(0x1a2)](b['env']):x(0x1b0);(!b[x(0x19d)]||!!b['once'])&&(a=a['concat'](['--full-app']));b[x(0x19d)]&&delete b[x(0x19d)];let d=b[x(0x18c)]||b[x(0x196)]||'none';if(d===x(0x1b4)){const l=JSON[x(0x193)](a100e[x(0x1bd)](a100f[x(0x182)](this[x(0x1ad)]['findProjectDirectory'](),x(0x1a5),x(0x1a3)),'utf8'));if(l[x(0x18f)][x(0x189)]===x(0x17c))d=x(0x183);else l[x(0x18f)]['test']===x(0x17a)&&(d=x(0x1b1));}if(d===x(0x1b4))throw'This\x20project\x20does\x20not\x20have\x20a\x20mocha\x20test\x20driver';(!b['driver-package']||!b[x(0x196)])&&(a=a['concat'](['--driver-package',d]));const f=this['cfg'][x(0x195)]('local');if(!f){Log[x(0x1ab)](x(0x188));const m=this[x(0x1ad)]['findProjectDirectory']();await a100i[x(0x1a9)](x(0x1b7),[x(0x1b0)],{'cwd':m,'root':!![]});}const g=this[x(0x19b)]['getAppConfigPath'](c),h=a100f[x(0x182)](g,x(0x194));let i=a100f[x(0x182)](g,x(0x1c0));b[x(0x1a0)]?i=b[x(0x1a0)]:i=a100f['join'](g,'settings.json');if(this['fsi'][x(0x181)](h)){const n=a100f['relative'](process[x(0x191)](),h);Log['notice'](x(0x19e)+n),syncSource(h);}else{const o=a100f['relative'](process[x(0x191)](),h);Log[x(0x1af)](x(0x1aa)+o),this[x(0x1ad)][x(0x1a1)]({'filePath':h,'data':''});}if(this[x(0x1ad)][x(0x181)](i)){const p=a100f['relative'](process[x(0x191)](),i);Log[x(0x1a6)](x(0x186)+p),a=a[x(0x197)]([x(0x185),i]);}else{const q=a100f[x(0x1c4)](process[x(0x191)](),i);Log[x(0x1ab)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+q);}const j=process[x(0x1bc)][x(0x18a)](0x2)[x(0x1b2)](r=>r!==x(0x1bf))[x(0x1b2)](r=>r!==x(0x189))[x(0x1b2)](r=>r!==a[0x0]);j[x(0x1ac)]((r,s)=>{const y=x;(r===y(0x1bf)||r===y(0x17b))&&j[y(0x17f)](s,0x2),r==='--packages'&&j[y(0x17f)](s,0x1);});const k=b[x(0x18e)]?x(0x1bb):'test';await this[x(0x1c2)]['invokeMeteorCommand'](k,a[x(0x197)](j));}catch(r){console[x(0x1b8)](r),process[x(0x192)](0x0);}},a100h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x116))/0x1*(parseInt(f(0x104))/0x2)+parseInt(f(0x115))/0x3*(parseInt(f(0x108))/0x4)+-parseInt(f(0x114))/0x5+-parseInt(f(0x106))/0x6+parseInt(f(0x10b))/0x7+parseInt(f(0x10a))/0x8*(parseInt(f(0x107))/0x9)+-parseInt(f(0x10d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x29251));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x104;let f=c[d];return f;},a101d(a,b);}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a['toString']()[h(0x10e)](h(0x110))[h(0x113)]()[h(0x109)](a101a)[h(0x10e)](h(0x110));});a101a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a101c(){const j=['303kuUtWS','3UAyELj','33162QeZYQV','test','1485432OXuCNU','1503sQsetR','11536pgySEh','constructor','15824PToNqe','2171393mPnlbg','Run\x20a\x20Meteor\x20Test\x20Driver','2043230ePfGGS','search','create','(((.+)+)+)+$','apply','\x0a\x20\x20\x20\x20Run\x20a\x20meteor\x20test\x20driver,\x20or\x20utilize\x20a\x20headless\x20test\x20suite.\x0a\x20\x20','toString','1308210PGErQQ'];a101c=function(){return j;};return a101c();}const TestCommand=Command[a101i(0x10f)]({'name':a101i(0x105),'usage':'maka\x20test:<sub-command>','shortDesc':a101i(0x10c),'description':a101i(0x112),'validOpts':[]},async function(){throw UsageError;});export default TestCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a102i=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
var a102i=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=parseInt(f(0xcd))/0x1+-parseInt(f(0xc9))/0x2*(-parseInt(f(0xc5))/0x3)+-parseInt(f(0xc7))/0x4*(-parseInt(f(0xc3))/0x5)+-parseInt(f(0xd4))/0x6*(-parseInt(f(0xd1))/0x7)+-parseInt(f(0xc8))/0x8*(-parseInt(f(0xd3))/0x9)+parseInt(f(0xc6))/0xa+parseInt(f(0xcf))/0xb*(-parseInt(f(0xcb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xa9265));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0xca)]()['search'](h(0xc4))[h(0xca)]()[h(0xd2)](a102a)[h(0xcc)]('(((.+)+)+)+$');});a102a();function a102c(){var k=['apply','3142209VcIhXq','constructor','1710927bpmnlM','6WjeIJa','64965vxTFIa','(((.+)+)+)+$','110139xhufdp','12072150DLPGAP','328fdjcxm','8GISiMM','26LgqyXE','toString','84kGBTvC','search','1174125dsEOZF','undo','6081724OqyPmb'];a102c=function(){return k;};return a102c();}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0xc3;var f=c[d];return f;},a102d(a,b);}import{Command}from'../command.js';import a102e from'../generators/maka.gen.js';Command['create']({'name':a102i(0xce),'aliases':['u'],'validOpts':[],'shortDesc':'Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','experimental':!![]},async function(){var j=a102i;a102e[j(0xce)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d
|
|
1
|
+
const a103m=a103d;function a103c(){const o=['confirm','Are\x20you\x20sure\x20you\x20want\x20to\x20uninstall\x20Meteor\x20','rmSync','length','Aborted.','apply','\x20is\x20not\x20installed.','\x20(Windows\x20fallback)','meteor.bat','existsSync','Removing\x20Meteor\x20','error','search','5795856NEIrgf','5khahYQ','736095ZxOyCi','You\x20have\x20multiple\x20Meteor\x20installations','No\x20Meteor\x20versions\x20installed.','remove','constructor','join','readdirSync','info','toString','success','releases','platform','Meteor\x20','notice','8433855ZmVdkB','6NYKrYD','348370yAMLzp','260dhqtak','Meteor\x20version\x20','642GvIUYm','(((.+)+)+)+$','exit','homedir','190804CHRtdQ','12719qYXwcd','Uninstall\x20a\x20specific\x20Meteor\x20version','meteor','maka\x20uninstall\x20[version]','26633QmIHST','uninstall'];a103c=function(){return o;};return a103c();}(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0x1aa))/0x1*(parseInt(j(0x19d))/0x2)+-parseInt(j(0x1bb))/0x3+parseInt(j(0x1a5))/0x4*(parseInt(j(0x1ba))/0x5)+parseInt(j(0x1a1))/0x6*(-parseInt(j(0x1a6))/0x7)+parseInt(j(0x1b9))/0x8+parseInt(j(0x19c))/0x9+parseInt(j(0x19f))/0xa*(-parseInt(j(0x19e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x80695));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x1c3)]()[l(0x1b8)](l(0x1a2))['toString']()[l(0x1bf)](a103a)[l(0x1b8)](l(0x1a2));});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x19b;let f=c[d];return f;},a103d(a,b);}a103a();import a103e from'fs';import a103f from'os';import a103g from'path';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{Actions}from'../tools/actions/actions.class.js';import{SpawnAsync}from'../tools/spawn-async/spawn-async.class.js';Command['create']({'name':a103m(0x1ab),'aliases':['rm',a103m(0x1be)],'shortDesc':a103m(0x1a7),'usage':a103m(0x1a9),'validOpts':[],'requiredOpts':[],'minArgLength':0x0},async function(a){const n=a103m;try{const b=process[n(0x1c6)]==='win32',c=b?n(0x1b4):n(0x1a8),d=a103g[n(0x1c0)](a103f[n(0x1a4)](),'.meteor',n(0x1c5));!a103e[n(0x1b5)](d)&&(Log[n(0x1b7)](n(0x1bd)),process[n(0x1a3)](0x1));const e=a103e[n(0x1c1)](d)['filter'](i=>a103e[n(0x1b5)](a103g[n(0x1c0)](d,i,'.meteor',c)));e['length']===0x0&&(Log[n(0x1b7)](n(0x1bd)),process[n(0x1a3)](0x1));let f=a[0x0];!f?e[n(0x1af)]===0x1?f=e[0x0][n(0x1c3)]():(Log[n(0x19b)](n(0x1bc)),f=await Actions['select']({'message':'Select\x20a\x20Meteor\x20version\x20to\x20uninstall:','name':'version','choices':e['map'](i=>({'value':i,'name':i}))})):f=f[n(0x1c3)]();const g=a103g[n(0x1c0)](d,f);!a103e[n(0x1b5)](g)&&(Log[n(0x1b7)](n(0x1a0)+f+n(0x1b2)),process[n(0x1a3)](0x1));const h=await Actions[n(0x1ac)](n(0x1ad)+f+'?',![]);!h&&(Log[n(0x1c2)](n(0x1b0)),process[n(0x1a3)](0x0)),a103e[n(0x1ae)](g,{'recursive':!![],'force':!![]}),a103e[n(0x1b5)](g)&&b&&await SpawnAsync['withSpinner']('rmdir',['/s','/q',g],{'message':n(0x1b6)+f+n(0x1b3)}),Log[n(0x1c4)](n(0x1c7)+f+'\x20uninstalled.');}catch(i){Log[n(0x1b7)](i),process[n(0x1a3)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=-parseInt(f(0x155))/0x1*(-parseInt(f(0x156))/0x2)+parseInt(f(0x14a))/0x3+parseInt(f(0x158))/0x4+-parseInt(f(0x151))/0x5*(-parseInt(f(0x152))/0x6)+-parseInt(f(0x14f))/0x7+-parseInt(f(0x154))/0x8*(-parseInt(f(0x14d))/0x9)+-parseInt(f(0x153))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x65fa9));function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x14a;var f=c[d];return f;},a104d(a,b);}var a104b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a104d;if(c){var e=c[g(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){var h=a104d;return a104a[h(0x14c)]()[h(0x14b)](h(0x157))[h(0x14c)]()[h(0x150)](a104a)[h(0x14b)](h(0x157));});a104a();function a104c(){var i=['18413930dgrcQS','696wdXzOR','203802bQmCdG','8GFyEMX','(((.+)+)+)+$','3161616GwzCAN','929778xewzTa','search','toString','58446ADylrS','apply','3873009JUWydr','constructor','15gJcacf','663738xZSahv'];a104c=function(){return i;};return a104c();}import'./version.js';import'./use.sub.cmd.js';import'./list.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a105p=a105d;(function(a,b){const n=a105d,c=a();while(!![]){try{const d=parseInt(n(0x153))/0x1*(parseInt(n(0x144))/0x2)+-parseInt(n(0x14d))/0x3*(parseInt(n(0x149))/0x4)+-parseInt(n(0x156))/0x5*(-parseInt(n(0x13b))/0x6)+-parseInt(n(0x150))/0x7*(-parseInt(n(0x145))/0x8)+parseInt(n(0x14e))/0x9*(parseInt(n(0x135))/0xa)+parseInt(n(0x139))/0xb+-parseInt(n(0x13a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x79f2a));function a105c(){const s=['match','homedir','10qJFTwR','(((.+)+)+)+$','join','toString','9092193mZSgzN','26701392Dokoai','348924AEWVKO','platform','exit','meteor','forEach','info','.meteor','log','\x20(active)','3142zveOPq','802680cXXdOK','list','error','search','208onlded','bin','filter','length','3867ITqmhg','1829943iQYWSq','List\x20installed\x20Meteor\x20versions','35PNbglW','win32','readdirSync','617pAcCgM','existsSync','No\x20Meteor\x20versions\x20installed.','25rbqeUg'];a105c=function(){return s;};return a105c();}const a105b=(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;};}()),a105a=a105b(this,function(){const o=a105d;return a105a[o(0x138)]()[o(0x148)](o(0x136))[o(0x138)]()['constructor'](a105a)[o(0x148)](o(0x136));});a105a();import a105e from'fs';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x135;let f=c[d];return f;},a105d(a,b);}import a105f from'os';import a105g from'path';import a105h from'./version.js';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';Command['create']({'name':a105p(0x146),'aliases':['ls'],'shortDesc':a105p(0x14f),'usage':'maka\x20version:list','validOpts':[],'requiredOpts':[]},async function(){const q=a105p;try{const a=process[q(0x13c)]===q(0x151),b=a?'meteor.bat':q(0x13e),c=a105g[q(0x137)](a105f[q(0x158)](),q(0x141),'releases'),d=a105g[q(0x137)](a105f[q(0x158)](),'.meteor',q(0x14a),b);let f=null;if(a105e['existsSync'](d))try{const h=a105e['realpathSync'](d);console[q(0x142)](h);const i=h[q(0x157)](/releases[\\/](.+?)[\\/]\.meteor[\\/]meteor(\.bat)?$/);if(i)f=i[0x1];}catch(j){f=null;}if(!a105e[q(0x154)](c)){Log[q(0x140)](q(0x155));return;}const g=a105e[q(0x152)](c)[q(0x14b)](k=>a105e['existsSync'](a105g[q(0x137)](c,k,q(0x141),b)));if(g[q(0x14c)]===0x0){Log['info']('No\x20Meteor\x20versions\x20installed.');return;}Log['info']('Installed\x20Meteor\x20versions:\x0a'),g[q(0x13f)](k=>{const r=q,l=k===f?'*':'\x20',m=k===f?k+r(0x143):k;console[r(0x142)](l+'\x20'+m);}),console[q(0x142)]();}catch(k){Log[q(0x147)](k),process[q(0x13d)](0x1);}},a105h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xe3;let f=c[d];return f;},a106d(a,b);}const a106n=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=-parseInt(k(0x104))/0x1*(-parseInt(k(0xef))/0x2)+-parseInt(k(0xfe))/0x3+parseInt(k(0x106))/0x4*(parseInt(k(0x10b))/0x5)+-parseInt(k(0xeb))/0x6*(-parseInt(k(0xfc))/0x7)+parseInt(k(0xe3))/0x8*(-parseInt(k(0x10d))/0x9)+parseInt(k(0xf4))/0xa+-parseInt(k(0xf1))/0xb*(parseInt(k(0xf0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x9ed0c));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a106d;if(c){const e=c[l(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const m=a106d;return a106a[m(0x111)]()[m(0x108)](m(0x107))[m(0x111)]()[m(0xf5)](a106a)['search'](m(0x107));});a106a();import a106e from'fs';import a106f from'os';function a106c(){const p=['86677nZvahH','.meteor','484cTUlno','(((.+)+)+)+$','search','Meteor\x20version\x20','processAndRunCommand','47935PzHZQU','map','3796497kmgnCL','length','utf8','VERSION','toString','24kRjHNM','success','join','win32','Install\x20version\x20','existsSync','meteor','error','2457174omuVVh','apply','notice','releases','28qNMnQJ','11900328zbnNLN','22Mddtqj','meteor.bat','use','12571180rUltlv','constructor','homedir','writeFileSync','linkVersionAsCurrent','filter','exit','confirm','7imIEfI','select','422271gCiaIv','Select\x20a\x20Meteor\x20version\x20to\x20use:','version','Set\x20a\x20current\x20Meteor\x20version','create','maka\x20version:use\x20[version]'];a106c=function(){return p;};return a106c();}import a106g from'path';import a106h from'../maka.cmd.js';import a106i from'./version.js';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a106n(0x102)]({'name':a106n(0xf3),'aliases':['u'],'shortDesc':a106n(0x101),'usage':a106n(0x103),'validOpts':[],'requiredOpts':[],'minArgLength':0x0},async function(a){const o=a106n;try{const {mpi:b}=this,c=process['platform']===o(0xe6),d=c?o(0xf2):o(0xe9),e=a106g[o(0xe5)](a106f['homedir'](),o(0x105),o(0xee));!a106e[o(0xe8)](e)&&(Log[o(0xea)]('No\x20Meteor\x20versions\x20installed.'),process[o(0xfa)](0x1));const f=a106e['readdirSync'](e)[o(0xf9)](i=>a106e[o(0xe8)](a106g[o(0xe5)](e,i,o(0x105),d)));f['length']===0x0&&(Log['error']('No\x20Meteor\x20versions\x20installed.'),process[o(0xfa)](0x1));let g=a[0x0];!g?f[o(0x10e)]===0x1?g=f[0x0][o(0x111)]():(Log[o(0xed)]('You\x20have\x20multiple\x20Meteor\x20installations'),g=await Actions[o(0xfd)]({'message':o(0xff),'name':o(0x100),'choices':f[o(0x10c)](i=>({'value':i,'name':i}))})):g=g['toString']();const h=a106g[o(0xe5)](e,g,o(0x105),d);if(!a106e[o(0xe8)](h)){Log['error'](o(0x109)+g+'\x20is\x20not\x20installed.');const i=await Actions[o(0xfb)](o(0xe7)+g+'?',!![]);i&&await a106h[o(0x10a)]('install',[o(0xe9)],{'release':g});}b[o(0xf8)](g),a106e[o(0xf7)](a106g[o(0xe5)](a106f[o(0xf6)](),o(0x105),o(0x110)),g,o(0x10f)),Log[o(0xe4)]('Now\x20using\x20Meteor\x20'+g);}catch(j){Log[o(0xea)](j),process[o(0xfa)](0x1);}},a106i);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=parseInt(h(0x11f))/0x1+parseInt(h(0x12c))/0x2*(-parseInt(h(0x134))/0x3)+-parseInt(h(0x122))/0x4+-parseInt(h(0x13e))/0x5*(parseInt(h(0x130))/0x6)+parseInt(h(0x131))/0x7+-parseInt(h(0x120))/0x8*(-parseInt(h(0x13d))/0x9)+parseInt(h(0x124))/0xa*(parseInt(h(0x135))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xb6bfb));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x13b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x136)]()[j(0x140)](j(0x139))[j(0x136)]()[j(0x129)](a107a)['search'](j(0x139));});a107a();function a107c(){const m=['maka\x20v','10OHcsAy','----------------------System----------------------------','compareMakaToLatest','Project\x27s\x20Meteor\x20Version\x20','isMakaProject','constructor','bright','verbose','266314tvKIJd','maka\x20version','----------------------Project----------------------------','valid','354ObAeci','794486AeUyEI','\x0a\x20\x20***\x20VERBOSE\x20FLAG\x20DISABLED\x20DUE\x20TO\x20METEOR\x20CHECK\x20ON\x20VERSION\x20<\x203.0\x20***\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','\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','3lcyfPA','3765245OUdGvq','toString','fsi','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','(((.+)+)+)+$','majestic','apply','warn','126tgapKj','62165tXBnZO','error','search','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','version','System\x27s\x20Meteor\x20Version\x20','notice','getGlobalMeteorVersion','replace','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','1065411qztRao','198120FbzFEI','5.1.17','1010684riEyau'];a107c=function(){return m;};return a107c();}import a107e from'semver';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x11f;let f=c[d];return f;},a107d(a,b);}const pjson={'version':a107k(0x121)},Version=Command['create']({'name':'version','aliases':['v'],'usage':a107k(0x12d),'maxArgLength':0x1,'validOpts':[a107k(0x12b)],'shortDesc':a107k(0x138),'examples':[a107k(0x123),'maka\x20version'],'description':a107k(0x132)},async function(a,b){const l=a107k;try{Log[l(0x13a)]('Maka\x20'+pjson[l(0x142)]),await this[l(0x137)][l(0x126)]();if(b[l(0x12b)]){await this[l(0x137)][l(0x126)](),Log[l(0x12a)](l(0x125));const c=await this['mpi'][l(0x145)]();Log[l(0x12a)]((l(0x143)+c)[l(0x146)]('\x0a',''));if(this[l(0x137)][l(0x128)]()){Log[l(0x12a)](l(0x12e));const d=this[l(0x137)]['getProjectMeteorVersion']();try{!a107e[l(0x12f)](d)?Log[l(0x13c)](l(0x127)+d[l(0x146)]('\x0a','')):Log[l(0x144)](l(0x127)+d[l(0x146)]('\x0a',''));}catch(f){Log[l(0x13f)](l(0x141)+f),Log[l(0x13f)](l(0x147));}Log[l(0x12a)](l(0x133));}}}catch(g){console[l(0x13f)](g),process['exit'](0x0);}});export default Version;
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x1f1))/0x1+parseInt(f(0x1ec))/0x2+-parseInt(f(0x1ee))/0x3+parseInt(f(0x1f4))/0x4+-parseInt(f(0x1eb))/0x5*(-parseInt(f(0x1f5))/0x6)+parseInt(f(0x1f2))/0x7+-parseInt(f(0x1ea))/0x8*(parseInt(f(0x1f0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xc2664));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var g=a108d;return a108a[g(0x1ed)]()['search']('(((.+)+)+)+$')[g(0x1ed)]()[g(0x1ef)](a108a)[g(0x1f3)]('(((.+)+)+)+$');});function a108c(){var h=['1300101UbtTzu','constructor','27SGiuWJ','236518nAewPQ','8419019SwTfsf','search','1713804FLcOjF','18LonqhY','8092584aYBAbk','2652525BcwMrA','2556362YzTgRm','toString'];a108c=function(){return h;};return a108c();}a108a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x1ea;var f=c[d];return f;},a108d(a,b);}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 a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0xbb;let f=c[d];return f;},a109d(a,b);}const a109j=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0xc3))/0x1*(parseInt(h(0xce))/0x2)+parseInt(h(0xc0))/0x3+parseInt(h(0xcd))/0x4*(parseInt(h(0xca))/0x5)+-parseInt(h(0xc7))/0x6*(parseInt(h(0xd0))/0x7)+-parseInt(h(0xcb))/0x8+parseInt(h(0xbf))/0x9*(-parseInt(h(0xc4))/0xa)+parseInt(h(0xcc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x55c29));function a109c(){const k=['3710VeWxlx','constructor','global-config.json','.maka','env','9XUcBGL','321084cqjEdE','writeFileSync','homedir','7736wjAojc','5852380XeERNh','existsSync','(((.+)+)+)+$','5388gqvLUB','toString','NODE_OPTIONS','807855loGfCf','2201136kDjoAb','8139956ThwyGf','12dsOAiP','92EEUxcZ','search'];a109c=function(){return k;};return a109c();}const a109b=(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;};}()),a109a=a109b(this,function(){const i=a109d;return a109a[i(0xc8)]()['search']('(((.+)+)+)+$')[i(0xc8)]()[i(0xbb)](a109a)[i(0xcf)](i(0xc6));});a109a();import a109e from'path';import a109f from'os';import a109g from'fs';const homeDir=a109f[a109j(0xc2)](),GLOBAL_CONFIG=a109j(0xbc),pathToGlobalMakaConfig=a109e['join'](homeDir,'.meteor',a109j(0xbd),GLOBAL_CONFIG);if(!a109g[a109j(0xc5)](pathToGlobalMakaConfig)){const jsonData=JSON['stringify']({},null,0x2);a109g[a109j(0xc1)](pathToGlobalMakaConfig,jsonData);}process[a109j(0xbe)][a109j(0xc9)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110v=a110d;(function(a,b){const r=a110d,c=a();while(!![]){try{const d=-parseInt(r(0x202))/0x1*(-parseInt(r(0x1e3))/0x2)+parseInt(r(0x1ec))/0x3*(parseInt(r(0x1a0))/0x4)+-parseInt(r(0x1dc))/0x5+-parseInt(r(0x207))/0x6*(parseInt(r(0x1fd))/0x7)+parseInt(r(0x1ca))/0x8+-parseInt(r(0x1b7))/0x9+-parseInt(r(0x1e7))/0xa*(parseInt(r(0x1fb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x4fc74));function a110c(){const M=['history.json','config','_generators','_historyFilePath','maxOptsLength','addGenerator','\x20not\x20found.\x20Cannot\x20undo.','existsSync','server','dir','constructor','Server','name','help','2250100ynizhr','search','Name','appPathPrefix','Generator.create\x20requires\x20a\x20handler\x20function!','validateEngines','exit','1065690UtbgQh','undo','There\x20is\x20no\x20Meteor\x20application\x20here','length','1667530fnnUlx','push','experimental','Please\x20run\x20\x22maka\x20install\x20meteor\x22','setColorMode','45RBjMhc','getMakaProjectConfig','handleGenerateError','checkWhere','assign','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','both','Generator\x20requires\x20a\x20name','processAndRunGenerator','shortDesc','filter','transactionId','DARK','call','requiredEngines','11niEfgT','writeHistory','881776XULAVN','where','Generator\x20format\x20is\x20incorrect','writeFileSync','Alias','1eqqFAP','(((.+)+)+)+$','LIGHT','findProjectDirectory','split','6BBTiCy','getGlobalConfig','Generator\x20','opts','includes','apply','validateMakaProject','slice','readFileSync','No\x20resource\x20name\x20specified','replace','select','bind','No\x20undo\x20handler\x20defined\x20for\x20','fullNameChain','Too\x20many\x20options','generatorName','fsi','_handler','client','toString','reverse','pathFromProject','invoke','.maka','message','projectConfig','find','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','from','\x20not\x20found','resourceNameRequired','readHistory','statSync','warn','addToHistory','deepen','126104kxJCIq','validateParams','_undoHandler','minArgLength','addGenerator\x20requires\x20a\x20Generator\x20instance','create','Too\x20many\x20arguments','keys','Too\x20few\x20options','\x20generator.\x20Skipping\x20undo.','pop','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','notice','shift','sep','light','parse','lib','Description','utf-8','findGeneratorByName','chdir','options','2382984dxXMNs','join','Generator\x20requires\x20a\x20handler\x20function','error','map','Both','bright','function','maxArgLength','pallet','forEach','stringify','params','Too\x20few\x20arguments','details','number','resourceName','usage','cfg','2628432joJseA','Client','match','root'];a110c=function(){return M;};return a110c();}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a110d;if(c){const e=c[s(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const t=a110d;return a110a[t(0x18f)]()[t(0x1dd)](t(0x203))['toString']()[t(0x1d8)](a110a)[t(0x1dd)](t(0x203));});a110a();import a110e from'path';import a110f from'fs';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x17f;let f=c[d];return f;},a110d(a,b);}import a110g from'cli-table';import{v4 as a110h}from'uuid';import{kebabCase}from'change-case';import a110i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a110h();async function inside(a='.',b){const u=a110d,c=process['cwd']();try{return process[u(0x1b5)](a),await b();}finally{process['chdir'](c);}}export class Generator extends Tool{[a110v(0x1b6)];['fullNameChain'];[a110v(0x195)];[a110v(0x1d0)];['_historyFilePath'];['_undoHandler'];['_genTransactionId'];[a110v(0x18d)];constructor(a,b,c){const w=a110v;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[w(0x1da)])throw new Error(w(0x1f3));if(typeof b!==w(0x1be))throw new Error(w(0x1b9));this[w(0x1d0)]=[];a[w(0x19a)]===undefined&&(a[w(0x19a)]=!![]);this[w(0x1b6)]=Object['assign']({},a),this[w(0x1da)]=this[w(0x1b6)][w(0x1da)],this[w(0x18d)]=b[w(0x187)](this);try{this[w(0x1d1)]=this[w(0x18c)][w(0x191)]({'pathParts':[w(0x193),w(0x1ce)]})||a110e[w(0x1b8)]('.',w(0x193),w(0x1ce));}catch(d){Log['error'](d);}c&&(this[w(0x1a2)]=c[w(0x187)](this));}['getHistoryFileSize'](){const x=a110v;if(a110f[x(0x1d5)](this['_historyFilePath'])){const a=a110f[x(0x19c)](this[x(0x1d1)]);return a['size'];}return 0x0;}['readHistory'](){const y=a110v;if(!a110f['existsSync'](this['_historyFilePath']))return[];return JSON[y(0x1b0)](a110f[y(0x183)](this[y(0x1d1)],y(0x1b3)));}[a110v(0x1fc)](a){const z=a110v;this['_historyFilePath']&&!a110f[z(0x1d5)](this['_historyFilePath'])&&a110f['writeFileSync'](this[z(0x1d1)],JSON[z(0x1c2)]([])),a110f[z(0x200)](this[z(0x1d1)],JSON[z(0x1c2)](a,null,0x2));}[a110v(0x19e)](a){const A=a110v;try{a?.[A(0x1c3)]?.[A(0x20a)]['config']&&delete a[A(0x1c3)][A(0x20a)][A(0x1cf)];const b=this[A(0x19b)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1e8)](c);const d=Buffer[A(0x198)](JSON['stringify'](b))[A(0x1e6)];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[A(0x1ad)]();}this['writeHistory'](b);}catch(f){Log[A(0x1ba)](f);}}async[a110v(0x1e4)](){const B=a110v,a=this['readHistory']();if(a[B(0x1e6)]===0x0){Log[B(0x19d)]('Nothing\x20to\x20undo.');return;}const b=a[B(0x1aa)](),c=b[B(0x1f7)],d=a['filter'](e=>e[B(0x1f7)]===c);d[B(0x1e8)](b),d[B(0x190)]();for(const e of d){const f=this[B(0x1b4)](e[B(0x18b)]);if(!f){Log[B(0x1ba)](B(0x209)+e['generatorName']+B(0x1d4));continue;}if(f[B(0x1a2)]){}else Log[B(0x19d)](B(0x188)+e[B(0x18b)]+B(0x1a9));}this[B(0x1fc)](a[B(0x1f6)](g=>g['transactionId']!==c));}static[a110v(0x1a5)](a,b,c,d){const C=a110v;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==C(0x1be))throw new Error(C(0x1e0));const e=new Generator(a,b,c);d=d||a110i;const f=d?d[C(0x189)]:'';return e[C(0x189)]=f?f+':'+a[C(0x1da)]:a[C(0x1da)],Object[C(0x1f0)](e,{'parent':d?.[C(0x1b6)]?.['name']}),d[C(0x1d3)](e),e;}['addGenerator'](a){const D=a110v;if(!(a instanceof Generator))throw new Error(D(0x1a4));this[D(0x1d0)][D(0x1e8)](a);}async[a110v(0x1f4)](a,b=[],c={}){const E=a110v;let d;try{const f=a?.[E(0x206)](':');if(!f||f[E(0x1e6)]===0x0)throw E(0x1ff);let g=this[E(0x1d0)],h;for(const i of f){h=g[E(0x196)](j=>j[E(0x1cc)](i));if(!h)throw E(0x209)+i+E(0x199);g=h[E(0x1d0)];}if(h)d=await h[E(0x192)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x1ba)](j);}return d;}[a110v(0x1b4)](a){const F=a110v,b=a?.[F(0x206)](':');if(!b||b[F(0x1e6)]===0x0)return Log[F(0x1ba)](F(0x1ff)),null;let c=this[F(0x1d0)],d;for(const e of b){d=c[F(0x196)](f=>f[F(0x1cc)](e));if(!d)return Log[F(0x1ba)](F(0x209)+e+F(0x199)),null;c=d[F(0x1d0)];}return d||null;}async[a110v(0x192)](a,b){const G=a110v,c=a[G(0x182)]();b[G(0x1c7)]=c[0x0];const {config:d}=b;try{const f=await this[G(0x1c9)][G(0x208)](),g=f[G(0x1c0)]===G(0x1af)?ColorMode[G(0x204)]:ColorMode[G(0x1f8)];Log[G(0x1eb)](g);const h=a[0x0]===_prevGen||a[G(0x1e6)]===0x0&&this['_generators']['length']>=0x0,i=b[G(0x1db)]||b['h'];if(h&&i){if(this[G(0x1d0)][G(0x1e6)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x1b6)]['mustBeInMakaProject']){if(!d){const j=this[G(0x181)]();if(!j)throw new MustBeInProjectError();this[G(0x195)]=this['cfg'][G(0x1ed)]();}else this[G(0x195)]=d;}if(this[G(0x1b6)]['mustHaveMeteorInstalled']){const k=this['validateMeteorInstall']();if(!k)throw new NoMeteorFoundError();}if(typeof this[G(0x1b6)][G(0x1a3)]==='number'){if(a[G(0x1e6)]<this[G(0x1b6)][G(0x1a3)]){Log[G(0x1ba)](G(0x1c4));throw new UsageError();}}if(typeof this[G(0x1b6)][G(0x1bf)]==='number'){if(a[G(0x1e6)]>this[G(0x1b6)][G(0x1bf)]){Log['error'](G(0x1a6));throw new UsageError();}}if(typeof this[G(0x1b6)]['minOptsLength']===G(0x1c6)){if(Object[G(0x1a7)](b)['length']<this['options']['minOptsLength']){Log[G(0x1ba)](G(0x1a8));throw new UsageError();}}if(typeof this[G(0x1b6)][G(0x1d2)]===G(0x1c6)){if(Object['keys'](b)[G(0x1e6)]>=this[G(0x1b6)][G(0x1d2)]){Log[G(0x1ba)](G(0x18a));throw new UsageError();}}}this['options'][G(0x1fa)]&&this[G(0x1e1)](this[G(0x1b6)][G(0x1fa)]);await this[G(0x1a1)](a,b,this[G(0x1b6)]);if(!b['resourceName']&&this[G(0x1b6)][G(0x19a)]){Log[G(0x1ba)](G(0x184));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[G(0x1ee)](l),process[G(0x1e2)](0x1);}return await inside(b['cwd'],async()=>{const H=G;try{if(!b[H(0x1cd)]&&!this[H(0x18c)][H(0x205)]())throw new MustBeInProjectError();const m=b['resourceName']?.[H(0x185)](/\\/g,'/')['split']('/');!b[H(0x1d7)]&&(m?.['length']>0x1?(b[H(0x1c7)]=m[H(0x1aa)](),c[0x0]=b['resourceName'],b[H(0x1d7)]=m[H(0x1bb)](o=>{return kebabCase(o);})[H(0x1b8)](a110e[H(0x1ae)])):b['dir']='');if(this[H(0x1b6)][H(0x1ef)]){if(!b[H(0x1fe)]){const p=await Actions[H(0x186)]({'message':'Location','name':'colLocAnswer','choices':[{'name':H(0x1cb),'value':'client'},{'name':H(0x1d9),'value':'server'},{'name':H(0x1bc),'value':H(0x1f2)}]});b[H(0x1fe)]=p;}const o=[H(0x1f2),H(0x18e),H(0x1d6)];if(!o[H(0x17f)](b['where'])){Log[H(0x1ba)](H(0x1ab));throw new UsageError();}switch(b[H(0x1fe)]){case H(0x1f2):b[H(0x1df)]=H(0x1b1);break;case'server':b[H(0x1df)]=H(0x1d6);break;case'client':b[H(0x1df)]=H(0x18e);break;default:b['appPathPrefix']='';}}const n=await this['_handler'][H(0x1f9)](this,c,b);return n&&this[H(0x19e)]({'params':{'args':c,'opts':this[H(0x18c)][H(0x19f)](b)},'success':n?.['success'],'message':n?.[H(0x194)],'details':n?.[H(0x1c5)]}),n;}catch(q){this[H(0x1ee)](q);}});}['listGenerators'](){this['tableList'](this['_generators']);}[a110v(0x1ee)](a){const I=a110v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x1b6)];Log[I(0x1c8)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0x1ac)]('Generators:'),this['tableList'](this[I(0x1d0)]);else{if(a instanceof MustBeInProjectError)Log[I(0x1ba)](I(0x1f1));else{if(a instanceof NoMeteorFoundError)Log[I(0x1ba)](I(0x197)),Log['notice'](I(0x1ea));else a instanceof NoMeteorAppFoundError&&Log[I(0x1ba)](I(0x1e5));}}}['tableList'](a){const J=a110v,b=new a110g({});b[J(0x1e8)]([J(0x1de),J(0x201),J(0x1b2)]),a['sort']((c,d)=>{const K=J;return c[K(0x1da)]['localeCompare'](d[K(0x1da)]);})[J(0x1c1)](c=>{const L=J,d=c[L(0x1e9)](),e=d?'(experimental)\x20'+c[L(0x1f5)]():c['shortDesc']();b[L(0x1e8)]([c[L(0x1da)],c['aliases'](),e]);}),Log[J(0x1bd)](b['toString']());}}
|
|
1
|
+
function a110c(){const N=['push','handleGenerateError','existsSync','message','readFileSync','constructor','8106828sfMefh','Client','error','Generators:','350116hfQKcn','match','success','bright','_undoHandler','parse','resourceName','findGeneratorByName','assign','fsi','find','setColorMode','length','Generator\x20not\x20found','reverse','tableList','appPathPrefix','lib','There\x20is\x20no\x20Meteor\x20application\x20here','Generator\x20requires\x20a\x20handler\x20function','Alias','root','opts','split','shortDesc','11DcToSX','params','fullNameChain','listGenerators','create','colLocAnswer','readHistory','Generator.create\x20requires\x20some\x20options!','writeHistory','No\x20undo\x20handler\x20defined\x20for\x20','(((.+)+)+)+$','_generators','projectConfig','minOptsLength','bind','94746CBmkxr','48PuAImh','Nothing\x20to\x20undo.','name','join','includes','options','addToHistory','4513495oluCVJ','4739000ZHqEEY','toString','getHistoryFileSize','mustHaveMeteorInstalled','_handler','keys','transactionId','sort','5hXvNRG','mustBeInMakaProject','addGenerator','aliases','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','pallet','\x20not\x20found.\x20Cannot\x20undo.','validateMakaProject','client','apply','config','Too\x20many\x20arguments','130VdJotB','No\x20resource\x20name\x20specified','server','warn','light','\x20not\x20found','sep','Generator\x20format\x20is\x20incorrect','invoke','Please\x20run\x20\x22maka\x20install\x20meteor\x22','filter','statSync','function','Too\x20few\x20options','Generator\x20requires\x20a\x20name','pop','map','DARK','232356ErDRSV','minArgLength','90DTHwOj','usage','Too\x20many\x20options','help','notice','dir','chdir','requiredEngines','maxArgLength','checkWhere','undo','size','number','Location','replace','experimental','utf-8','call','pathFromProject','validateMeteorInstall','both','history.json','select','validateParams','where','resourceNameRequired','435112gGTHzb','Generator\x20','LIGHT','cfg','processAndRunGenerator','.maka','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','stringify','generatorName','_historyFilePath','search','exit','localeCompare','from','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Server','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator'];a110c=function(){return N;};return a110c();}const a110v=a110d;(function(a,b){const r=a110d,c=a();while(!![]){try{const d=-parseInt(r(0x169))/0x1*(-parseInt(r(0x130))/0x2)+-parseInt(r(0x159))/0x3*(parseInt(r(0x187))/0x4)+-parseInt(r(0x175))/0x5*(parseInt(r(0x158))/0x6)+parseInt(r(0x160))/0x7+-parseInt(r(0x115))/0x8*(-parseInt(r(0x189))/0x9)+parseInt(r(0x161))/0xa+-parseInt(r(0x149))/0xb*(parseInt(r(0x12c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x7f842));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a110d;if(c){const e=c[s(0x172)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const t=a110d;return a110a['toString']()[t(0x11f)](t(0x153))[t(0x162)]()[t(0x12b)](a110a)[t(0x11f)]('(((.+)+)+)+$');});a110a();import a110e from'path';import a110f from'fs';import a110g from'cli-table';import{v4 as a110h}from'uuid';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x105;let f=c[d];return f;},a110d(a,b);}import{kebabCase}from'change-case';import a110i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a110h();async function inside(a='.',b){const u=a110d,c=process['cwd']();try{return process[u(0x18f)](a),await b();}finally{process[u(0x18f)](c);}}export class Generator extends Tool{[a110v(0x15e)];[a110v(0x14b)];[a110v(0x155)];['_generators'];[a110v(0x11e)];[a110v(0x134)];['_genTransactionId'];[a110v(0x165)];constructor(a,b,c){const w=a110v;super();if(!a)throw new Error(w(0x123));if(!a[w(0x15b)])throw new Error(w(0x183));if(typeof b!=='function')throw new Error(w(0x143));this[w(0x154)]=[];a[w(0x114)]===undefined&&(a[w(0x114)]=!![]);this[w(0x15e)]=Object[w(0x138)]({},a),this[w(0x15b)]=this[w(0x15e)][w(0x15b)],this[w(0x165)]=b[w(0x157)](this);try{this['_historyFilePath']=this[w(0x139)][w(0x10d)]({'pathParts':['.maka',w(0x110)]})||a110e['join']('.',w(0x11a),w(0x110));}catch(d){Log[w(0x12e)](d);}c&&(this[w(0x134)]=c[w(0x157)](this));}[a110v(0x163)](){const x=a110v;if(a110f[x(0x128)](this['_historyFilePath'])){const a=a110f[x(0x180)](this['_historyFilePath']);return a[x(0x106)];}return 0x0;}[a110v(0x14f)](){const y=a110v;if(!a110f['existsSync'](this[y(0x11e)]))return[];return JSON[y(0x135)](a110f[y(0x12a)](this[y(0x11e)],y(0x10b)));}[a110v(0x151)](a){const z=a110v;this[z(0x11e)]&&!a110f[z(0x128)](this['_historyFilePath'])&&a110f['writeFileSync'](this[z(0x11e)],JSON[z(0x11c)]([])),a110f['writeFileSync'](this[z(0x11e)],JSON['stringify'](a,null,0x2));}[a110v(0x15f)](a){const A=a110v;try{a?.['params']?.[A(0x146)][A(0x173)]&&delete a[A(0x14a)][A(0x146)][A(0x173)];const b=this[A(0x14f)](),c={'generatorName':this[A(0x14b)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x126)](c);const d=Buffer[A(0x122)](JSON[A(0x11c)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x13c)]>0x0){b['shift']();}this[A(0x151)](b);}catch(f){Log[A(0x12e)](f);}}async[a110v(0x105)](){const B=a110v,a=this[B(0x14f)]();if(a[B(0x13c)]===0x0){Log[B(0x178)](B(0x15a));return;}const b=a[B(0x184)](),c=b[B(0x167)],d=a[B(0x17f)](e=>e['transactionId']===c);d[B(0x126)](b),d[B(0x13e)]();for(const e of d){const f=this[B(0x137)](e[B(0x11d)]);if(!f){Log[B(0x12e)]('Generator\x20'+e['generatorName']+B(0x16f));continue;}if(f['_undoHandler']){}else Log[B(0x178)](B(0x152)+e[B(0x11d)]+'\x20generator.\x20Skipping\x20undo.');}this[B(0x151)](a[B(0x17f)](g=>g[B(0x167)]!==c));}static[a110v(0x14d)](a,b,c,d){const C=a110v;if(!a)throw new Error(C(0x150));if(typeof b!==C(0x181))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b,c);d=d||a110i;const f=d?d[C(0x14b)]:'';return e['fullNameChain']=f?f+':'+a['name']:a[C(0x15b)],Object[C(0x138)](e,{'parent':d?.[C(0x15e)]?.['name']}),d[C(0x16b)](e),e;}[a110v(0x16b)](a){const D=a110v;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[D(0x154)][D(0x126)](a);}async[a110v(0x119)](a,b=[],c={}){const E=a110v;let d;try{const f=a?.[E(0x147)](':');if(!f||f['length']===0x0)throw E(0x17c);let g=this[E(0x154)],h;for(const i of f){h=g[E(0x13a)](j=>j[E(0x131)](i));if(!h)throw'Generator\x20'+i+E(0x17a);g=h[E(0x154)];}if(h)d=await h[E(0x17d)](b,c);else throw E(0x13d);}catch(j){Log[E(0x12e)](j);}return d;}[a110v(0x137)](a){const F=a110v,b=a?.[F(0x147)](':');if(!b||b[F(0x13c)]===0x0)return Log[F(0x12e)](F(0x17c)),null;let c=this[F(0x154)],d;for(const e of b){d=c[F(0x13a)](f=>f[F(0x131)](e));if(!d)return Log['error'](F(0x116)+e+F(0x17a)),null;c=d[F(0x154)];}return d||null;}async[a110v(0x17d)](a,b){const G=a110v,c=a['slice']();b[G(0x136)]=c[0x0];const {config:d}=b;try{const f=await this[G(0x118)]['getGlobalConfig'](),g=f[G(0x16e)]===G(0x179)?ColorMode[G(0x117)]:ColorMode[G(0x186)];Log[G(0x13b)](g);const h=a[0x0]===_prevGen||a['length']===0x0&&this[G(0x154)][G(0x13c)]>=0x0,i=b[G(0x18c)]||b['h'];if(h&&i){if(this[G(0x154)][G(0x13c)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x15e)][G(0x16a)]){if(!d){const j=this[G(0x170)]();if(!j)throw new MustBeInProjectError();this['projectConfig']=this[G(0x118)]['getMakaProjectConfig']();}else this['projectConfig']=d;}if(this[G(0x15e)][G(0x164)]){const k=this[G(0x10e)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[G(0x15e)][G(0x188)]===G(0x107)){if(a['length']<this[G(0x15e)]['minArgLength']){Log[G(0x12e)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[G(0x15e)]['maxArgLength']==='number'){if(a['length']>this[G(0x15e)][G(0x191)]){Log['error'](G(0x174));throw new UsageError();}}if(typeof this['options'][G(0x156)]===G(0x107)){if(Object[G(0x166)](b)['length']<this[G(0x15e)]['minOptsLength']){Log[G(0x12e)](G(0x182));throw new UsageError();}}if(typeof this['options']['maxOptsLength']===G(0x107)){if(Object[G(0x166)](b)[G(0x13c)]>=this[G(0x15e)]['maxOptsLength']){Log[G(0x12e)](G(0x18b));throw new UsageError();}}}this['options'][G(0x190)]&&this['validateEngines'](this[G(0x15e)][G(0x190)]);await this[G(0x112)](a,b,this[G(0x15e)]);if(!b[G(0x136)]&&this['options'][G(0x114)]){Log['error'](G(0x176));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[G(0x127)](l),process[G(0x120)](0x1);}return await inside(b['cwd'],async()=>{const H=G;try{if(!b[H(0x145)]&&!this[H(0x139)]['findProjectDirectory']())throw new MustBeInProjectError();const m=b[H(0x136)]?.[H(0x109)](/\\/g,'/')[H(0x147)]('/');!b[H(0x18e)]&&(m?.[H(0x13c)]>0x1?(b[H(0x136)]=m[H(0x184)](),c[0x0]=b[H(0x136)],b['dir']=m[H(0x185)](o=>{return kebabCase(o);})[H(0x15c)](a110e[H(0x17b)])):b[H(0x18e)]='');if(this[H(0x15e)][H(0x192)]){if(!b[H(0x113)]){const p=await Actions[H(0x111)]({'message':H(0x108),'name':H(0x14e),'choices':[{'name':H(0x12d),'value':H(0x171)},{'name':H(0x124),'value':H(0x177)},{'name':'Both','value':H(0x10f)}]});b['where']=p;}const o=[H(0x10f),H(0x171),H(0x177)];if(!o[H(0x15d)](b[H(0x113)])){Log[H(0x12e)](H(0x11b));throw new UsageError();}switch(b['where']){case H(0x10f):b[H(0x140)]=H(0x141);break;case H(0x177):b[H(0x140)]=H(0x177);break;case H(0x171):b[H(0x140)]=H(0x171);break;default:b[H(0x140)]='';}}const n=await this['_handler'][H(0x10c)](this,c,b);return n&&this[H(0x15f)]({'params':{'args':c,'opts':this['fsi']['deepen'](b)},'success':n?.[H(0x132)],'message':n?.[H(0x129)],'details':n?.['details']}),n;}catch(q){this[H(0x127)](q);}});}[a110v(0x14c)](){const I=a110v;this['tableList'](this[I(0x154)]);}[a110v(0x127)](a){const J=a110v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this['options'];Log[J(0x18a)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log['notice'](J(0x12f)),this['tableList'](this[J(0x154)]);else{if(a instanceof MustBeInProjectError)Log[J(0x12e)](J(0x125));else{if(a instanceof NoMeteorFoundError)Log[J(0x12e)](J(0x16d)),Log[J(0x18d)](J(0x17e));else a instanceof NoMeteorAppFoundError&&Log[J(0x12e)](J(0x142));}}}[a110v(0x13f)](a){const K=a110v,b=new a110g({});b[K(0x126)](['Name',K(0x144),'Description']),a[K(0x168)]((c,d)=>{const L=K;return c[L(0x15b)][L(0x121)](d[L(0x15b)]);})['forEach'](c=>{const M=K,d=c[M(0x10a)](),e=d?'(experimental)\x20'+c[M(0x148)]():c['shortDesc']();b[M(0x126)]([c[M(0x15b)],c[M(0x16c)](),e]);}),Log[K(0x133)](b[K(0x162)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a111d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x1a2))/0x1+-parseInt(f(0x1a5))/0x2*(parseInt(f(0x1a8))/0x3)+parseInt(f(0x1ad))/0x4*(-parseInt(f(0x1ae))/0x5)+parseInt(f(0x1ac))/0x6*(parseInt(f(0x1af))/0x7)+-parseInt(f(0x1a4))/0x8*(parseInt(f(0x1a9))/0x9)+-parseInt(f(0x1ab))/0xa+parseInt(f(0x1aa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x27190));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var g=a111d;return a111a[g(0x1a3)]()[g(0x1a6)](g(0x1a7))[g(0x1a3)]()[g(0x1a1)](a111a)[g(0x1a6)](g(0x1a7));});a111a();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';function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x1a1;var f=c[d];return f;},a111d(a,b);}import'./route.js';import'./service.js';function a111c(){var h=['3626hVYUvn','constructor','55322yikMYZ','toString','1521944TzotRQ','2BztbwX','search','(((.+)+)+)+$','755199JLldZw','9hNNEPa','10501095fuhoHs','1263460WLqmRX','1362mscstf','92DVjrIZ','62705dqmGVI'];a111c=function(){return h;};return a111c();}import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112z=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=-parseInt(x(0x16d))/0x1*(-parseInt(x(0x15b))/0x2)+-parseInt(x(0x15f))/0x3+-parseInt(x(0x137))/0x4+-parseInt(x(0x153))/0x5*(-parseInt(x(0x166))/0x6)+-parseInt(x(0x15c))/0x7*(-parseInt(x(0x16b))/0x8)+parseInt(x(0x143))/0x9+-parseInt(x(0x152))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xd9079));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const y=a112d;return a112a[y(0x172)]()[y(0x160)]('(((.+)+)+)+$')['toString']()[y(0x13a)](a112a)[y(0x160)](y(0x169));});a112a();import{Generator}from'../generator.js';function a112c(){const B=['exit','RPC\x20(Methods)','scaffold','pathFromApp','info','template','withGql','maka\x20{generate,\x20g}:{api}\x20<resource-name>','6991605JEUzyr','withRest','api/resolvers.js','No\x20API\x20boundaries\x20selected','mdg:validated-method','checkMeteorPackage','api/register-api.js','injectIntoFile','startup','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','imports','checkbox','Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)','ddp-rate-limiter','projectConfig','8235860APUOtS','760OjyBxl','create','-rpc-methods.','graphql-tag','includes','typeDefs.','withMethods','register-','2lpoezV','983696hELBeM','findAppDirectory','engines.api','2204688rKelNf','search','rest','\x27)\x20},','test','maka:rest','push','26904HZvqXh','-api\x27;','dir','(((.+)+)+)+$','fsi','32KSsYja','injectAtEndOfFile','627101zibdra','Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.','length','GraphQL','cfg','toString','@apollo/subgraph','@apollo/server','checkNpmPackage','api','index.','api/methods.js','resolvers.','graphql','api/graphql-api.js','-graphql-api.','resourceName','subgraphs:\x20[','\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','apiAnswers','express','server','REST\x20API','@apollo/gateway','API\x20Version?\x20[v1]','normalize','engines','{\x20name:\x20\x27','isFile','800764toNXtI','/imports/api/apollo-gateway.','pkg','constructor'];a112c=function(){return B;};return a112c();}function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x12b;let f=c[d];return f;},a112d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a112e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a112z(0x154)]({'name':a112z(0x176),'aliases':['a'],'usage':a112z(0x142),'shortDesc':a112z(0x14c),'validOpts':[a112z(0x168)],'examples':['maka\x20g:api\x20Todos'],'mustBeInMakaProject':!![],'description':a112z(0x12c)},async function(a,b){const A=a112z;try{const {scaffold:c}=this,d=this[A(0x151)],f=[{'name':A(0x13c),'value':'withMethods'}];f[A(0x165)]({'name':A(0x130),'value':A(0x144)}),f[A(0x165)]({'name':A(0x170),'value':A(0x141)});const g={'message':'API\x20boundaries\x20to\x20create','name':A(0x12d),'choices':f},h=await Actions['ask'](A(0x132))||'v1',i=await Actions[A(0x14e)](g);i[A(0x16f)]===0x0&&(Log['error'](A(0x146)),process['exit'](0x1));let j='js';d[A(0x134)]['js']==='tsx'&&(j='ts');const k=this[A(0x16a)][A(0x15d)](),l=k+a112e[A(0x133)](A(0x138)+j),m=this[A(0x16a)][A(0x136)](l);!m&&d[A(0x134)]['graphql']==='apollo'&&Log[A(0x13f)](A(0x16e));const n=b[A(0x17d)],o=kebabCase(n),p=b['dir']?'/'+b[A(0x168)]+'/':'/',q={'name':pascalCase(n),'apiVersion':h,'fileName':o,'camelCase':camelCase(n),'optsDir':p,'api':d[A(0x134)][A(0x176)],'graphql':d[A(0x134)][A(0x17a)],'test':d['engines'][A(0x163)],'noRename':!![],'withMethods':i[A(0x157)](A(0x159)),'withRest':i[A(0x157)](A(0x144)),'withGql':i['includes'](A(0x141))};let r=![];q[A(0x141)]&&(r=m?![]:await Actions['confirm'](A(0x14f)));q[A(0x144)]&&(this[A(0x171)]['setProjectConfig'](A(0x15e),A(0x161)),await this[A(0x139)][A(0x148)]([A(0x164)],{'shouldInstall':!![]}),await this['scaffold']['template']({'srcPath':'api/api.js','destPath':this[A(0x13d)]['pathFromApp']({'pathParts':[A(0x14d),A(0x176),h,p,o,o+'-'+h+'-rest-api.'+j]}),'context':q,'config':d}));q[A(0x159)]&&(await this[A(0x139)]['checkMeteorPackage']([A(0x150),A(0x147)],{'shouldInstall':!![]}),await this[A(0x13d)][A(0x140)]({'srcPath':A(0x178),'destPath':this[A(0x13d)][A(0x13e)]({'pathParts':[A(0x14d),A(0x176),h,p,o,o+'-'+h+A(0x155)+j]}),'context':q,'config':d}));if(q[A(0x141)]){await this[A(0x139)][A(0x175)](['express',A(0x174),A(0x173),A(0x156),'express-rate-limit',A(0x17a)],{'shouldInstall':!![]}),await this[A(0x13d)][A(0x140)]({'srcPath':A(0x17b),'destPath':this[A(0x13d)][A(0x13e)]({'pathParts':['imports',A(0x176),h,p,o,o+'-'+h+A(0x17c)+j]}),'context':q,'config':d});const t=this['scaffold'][A(0x13e)]({'pathParts':[A(0x14d),A(0x176),h,p,o,A(0x17a),A(0x158)+j]});await this[A(0x13d)][A(0x140)]({'srcPath':'api/typeDefs.js','destPath':t,'context':q,'config':d});const u=this[A(0x13d)][A(0x13e)]({'pathParts':[A(0x14d),'api',h,p,o,A(0x17a),A(0x179)+j]});await this[A(0x13d)][A(0x140)]({'srcPath':A(0x145),'destPath':u,'context':q,'config':d});if(r){await this[A(0x139)][A(0x175)]([A(0x131),A(0x12e)],{'shouldInstall':!![]}),await this['scaffold'][A(0x140)]({'srcPath':'api/apollo-gateway.js','destPath':l,'context':q,'config':d}),await c[A(0x14a)]({'filePath':l,'content':A(0x135)+o+h+'\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/'+h+'/'+o+A(0x162),'begin':'subgraphs:\x20[','end':']'});const v=this[A(0x13d)][A(0x13e)]({'pathParts':[A(0x14d),A(0x14b),A(0x12f),A(0x177)+d['engines']['js']]});await this[A(0x13d)]['injectAtEndOfFile']({'filePath':v,'content':'import\x20\x27/imports/api/apollo-gateway.'+j+'\x27;'});}m&&await c[A(0x14a)]({'filePath':l,'content':A(0x135)+o+h+'\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/'+h+'/'+o+A(0x162),'begin':A(0x12b),'end':']'});}await this['scaffold'][A(0x140)]({'srcPath':A(0x149),'destPath':this[A(0x13d)][A(0x13e)]({'pathParts':[A(0x14d),'startup',A(0x12f),A(0x15a)+o+'-api.'+j]}),'context':q,'config':d,'force':!![]});const s=this[A(0x13d)][A(0x13e)]({'pathParts':['imports',A(0x14b),A(0x12f),'index.'+d['engines']['js']]});await this[A(0x13d)][A(0x16c)]({'filePath':s,'content':'import\x20\x27./register-'+o+A(0x167)});}catch(w){console['error'](w),process[A(0x13b)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a113d,c=a();while(!![]){try{var d
|
|
1
|
+
function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0x19b;var f=c[d];return f;},a113d(a,b);}(function(a,b){var f=a113d,c=a();while(!![]){try{var d=parseInt(f(0x1a1))/0x1+parseInt(f(0x1a3))/0x2*(-parseInt(f(0x1a0))/0x3)+-parseInt(f(0x1aa))/0x4+parseInt(f(0x1a6))/0x5*(-parseInt(f(0x1a7))/0x6)+parseInt(f(0x19b))/0x7+-parseInt(f(0x19f))/0x8*(parseInt(f(0x1a4))/0x9)+-parseInt(f(0x19c))/0xa*(-parseInt(f(0x19e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x493ee));function a113c(){var i=['2337tPZPJF','587694cszLos','(((.+)+)+)+$','886CGIJvu','15642filLUU','apply','164585RgjZbF','12ohnZiN','search','toString','688892UlYDNO','3528686UaBcAK','155780hmuRiC','constructor','11nhZpSW','1032hakEpK'];a113c=function(){return i;};return a113c();}var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a[h(0x1a9)]()[h(0x1a8)]('(((.+)+)+)+$')[h(0x1a9)]()[h(0x19d)](a113a)['search'](h(0x1a2));});a113a();import'./aws.js';import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114i=a114d;(function(a,b){const f=a114d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a114i=a114d;(function(a,b){const f=a114d,c=a();while(!![]){try{const d=-parseInt(f(0x167))/0x1*(parseInt(f(0x15f))/0x2)+-parseInt(f(0x159))/0x3*(parseInt(f(0x157))/0x4)+-parseInt(f(0x160))/0x5*(parseInt(f(0x165))/0x6)+parseInt(f(0x168))/0x7+parseInt(f(0x15e))/0x8+-parseInt(f(0x156))/0x9+parseInt(f(0x15d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x1d0a8));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a114d;if(c){const e=c[g(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const h=a114d;return a114a[h(0x166)]()[h(0x164)](h(0x15b))[h(0x166)]()[h(0x162)](a114a)[h(0x164)]('(((.+)+)+)+$');});a114a();import{Generator}from'../../generator.js';const AWSGen=Generator[a114i(0x158)]({'name':a114i(0x15c),'usage':a114i(0x155),'shortDesc':a114i(0x163),'minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':[a114i(0x15a)],'experimental':!![]},async function(){});function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x155;let f=c[d];return f;},a114d(a,b);}function a114c(){const j=['1851759tvlfsl','332JaJkDt','create','7059xMUgZj','maka\x20g:aws','(((.+)+)+)+$','aws','4927090yLeiVb','1173096YecjFW','44276tJIBzz','8775fsAkgW','apply','constructor','Generate\x20AWS\x20templates','search','246xEvNut','toString','5nwslsy','443107JxApQt','maka\x20{generate,\x20g}:{aws}:<name>'];a114c=function(){return j;};return a114c();}export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a115d,c=a();while(!![]){try{var d
|
|
1
|
+
function a115d(a,b){var c=a115c();return a115d=function(d,e){d=d-0x119;var f=c[d];return f;},a115d(a,b);}(function(a,b){var f=a115d,c=a();while(!![]){try{var d=parseInt(f(0x124))/0x1+parseInt(f(0x11e))/0x2+-parseInt(f(0x121))/0x3*(-parseInt(f(0x125))/0x4)+-parseInt(f(0x11d))/0x5+-parseInt(f(0x120))/0x6+parseInt(f(0x11a))/0x7+-parseInt(f(0x123))/0x8*(parseInt(f(0x126))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x7120c));function a115c(){var i=['constructor','1391747iVxdNJ','apply','toString','1311945MDvptH','1323558wWLwga','search','3011922FeBjgu','7326oodNUN','(((.+)+)+)+$','16wlJKhC','460014KtnMsB','724nEuQBz','2406906ZKirFI'];a115c=function(){return i;};return a115c();}var a115b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a115d;if(c){var e=c[g(0x11b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){var h=a115d;return a115a[h(0x11c)]()[h(0x11f)](h(0x122))[h(0x11c)]()[h(0x119)](a115a)[h(0x11f)]('(((.+)+)+)+$');});a115a();import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a116i=a116d;function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x16d;let f=c[d];return f;},a116d(a,b);}function a116c(){const j=['21201300BkTGeF','toString','(((.+)+)+)+$','30kKutlp','115xMlkLC','maka\x20g:aws:cf','cloudformation','11CtMqcv','14413590cMqSYq','apply','constructor','76294BuXelH','1702566AebuEo','1934366uEJCfz','4797072kTRTnV','236212IKSMcy','9XbAcMI','search'];a116c=function(){return j;};return a116c();}(function(a,b){const f=a116d,c=a();while(!![]){try{const d=-parseInt(f(0x16f))/0x1*(-parseInt(f(0x17c))/0x2)+parseInt(f(0x17d))/0x3+-parseInt(f(0x16e))/0x4*(parseInt(f(0x175))/0x5)+-parseInt(f(0x174))/0x6*(-parseInt(f(0x17e))/0x7)+-parseInt(f(0x16d))/0x8+-parseInt(f(0x179))/0x9+parseInt(f(0x171))/0xa*(parseInt(f(0x178))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xd0536));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a116d;if(c){const e=c[g(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const h=a116d;return a116a[h(0x172)]()[h(0x170)]('(((.+)+)+)+$')['toString']()[h(0x17b)](a116a)['search'](h(0x173));});a116a();import{Generator}from'../../../generator.js';import a116e from'../aws.js';const CFGen=Generator['create']({'name':a116i(0x177),'aliases':['cf'],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','shortDesc':'AWS\x20Cloudformation\x20templates','resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':[a116i(0x176)],'experimental':!![]},async function(){},async function(){},a116e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117r=a117d;function a117c(){const t=['join','exit','constructor','6RCkHRc','Setting\x20the\x20key-pair\x20to:\x20','findProjectDirectory','258170QHOGiD','ami-055744c75048d8296','replaceAll','ask','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','template','963788LAQatQ','86789kcTczy','No\x20instance\x20has\x20been\x20created.','1164085zhDoco','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','apply','search','appName','success','(((.+)+)+)+$','cloudformation','cec2i','notice','8wTqAYT','maka\x20g:aws:cf:cec2i','6ftjpfC','name','310UEwNkP','create-ec2-instance','create-ec2-instance.template','error','161145WUewPJ','18966YGzhPl','toString','943540WJwaTx'];a117c=function(){return t;};return a117c();}function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a117d(a,b);}(function(a,b){const o=a117d,c=a();while(!![]){try{const d=-parseInt(o(0x1bd))/0x1*(-parseInt(o(0x1b3))/0x2)+parseInt(o(0x1ad))/0x3+parseInt(o(0x1af))/0x4+parseInt(o(0x1bf))/0x5+parseInt(o(0x1cb))/0x6*(parseInt(o(0x1bc))/0x7)+-parseInt(o(0x1c9))/0x8*(-parseInt(o(0x1ac))/0x9)+-parseInt(o(0x1cd))/0xa*(parseInt(o(0x1b6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x27e52));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a117d;if(c){const e=c[p(0x1c1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const q=a117d;return a117a[q(0x1ae)]()[q(0x1c2)]('(((.+)+)+)+$')[q(0x1ae)]()[q(0x1b2)](a117a)['search'](q(0x1c5));});a117a();import a117e from'path';import{Actions}from'../../../tools/actions/actions.class.js';import{capitalCase}from'change-case';import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a117f from'./cloudformation.js';const CEC2Gen=Generator['create']({'name':a117r(0x1ce),'aliases':[a117r(0x1c7)],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','resourceNameRequired':![],'shortDesc':a117r(0x1c0),'mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':[a117r(0x1ca)],'experimental':!![]},async function(){const s=a117r,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[s(0x1b5)](),g=a117e[s(0x1b0)](f,s(0x1c6)),h=await a['ec2describeKeys'](),i=await Actions[s(0x1b9)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(i)<0x0){Log['error'](s(0x1ba)),Log[s(0x1c8)](s(0x1be));return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m[s(0x1cc)],Log[s(0x1c4)](s(0x1b4)+j);break;}}const k=await a['chooseSecurityGroup'](),l={'amiId':s(0x1b7),'keyPair':j,'sgId':k,'instanceName':capitalCase(d[s(0x1c3)])[s(0x1b8)]('-','\x20')};await c[s(0x1bb)]({'srcPath':'cloudformation/create-ec2-instance.template','destPath':a117e[s(0x1b0)](g,s(0x1cf)),'framework':'aws','context':l,'config':d,'ignore':![]});}catch(n){Log[s(0x1ab)](n),process[s(0x1b1)](0x1);}},async function(){},a117f);export default CEC2Gen;
|