@maka/maka-cli 5.1.14 → 5.1.15
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/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 a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(
|
|
1
|
+
const a96n=a96d;function a96c(){const p=['Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','maka\x20ssh\x20--env\x20staging','assign','cfg','ssh.json','parse','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','6emknjL','(((.+)+)+)+$','create','maka\x20ssh\x20--env\x20dev','maka\x20ssh\x20<command>','toString','3757866rUfJdI','maka\x20ssh\x20--env\x20prod','18548184huqObV','1120163asLSXh','612280zcrMyO','apply','1053224sHUpVp','getAppConfigPath','862713QxsvmN','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','error','exit','sshSync','4qSlQsi','25nQxkcd','verbose','constructor','70CJaoPg','149851JLSAdK','36JmISgT','env','length','join'];a96c=function(){return p;};return a96c();}(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(0xd6))/0x1*(parseInt(k(0xd1))/0x2)+parseInt(k(0xf0))/0x3+parseInt(k(0xec))/0x4*(parseInt(k(0xd2))/0x5)+-parseInt(k(0xe2))/0x6*(-parseInt(k(0xe8))/0x7)+-parseInt(k(0xee))/0x8*(parseInt(k(0xd7))/0x9)+parseInt(k(0xd5))/0xa*(parseInt(k(0xeb))/0xb)+-parseInt(k(0xea))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x8164e));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0xed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0xe7)]()['search'](m(0xe3))['toString']()[m(0xd4)](a96a)['search'](m(0xe3));});a96a();import a96e from'fs';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0xcf;let f=c[d];return f;},a96d(a,b);}import a96f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a96n(0xe4)]({'name':'ssh','usage':a96n(0xe6),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a96n(0xd8),a96n(0xd3)],'shortDesc':a96n(0xdb),'examples':[a96n(0xe5),a96n(0xdc),a96n(0xe9),a96n(0xf1),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22',a96n(0xe1)]},async function(a,b){const o=a96n;try{const c=this[o(0xde)]['getEnvFromShorthand'](b[o(0xd8)]),d=this[o(0xde)][o(0xef)](c);let f='';a[o(0xd9)]>0x0&&(f=a[0x0]);const g=a96f[o(0xda)](d,o(0xdf)),h=a96e['readFileSync'](g)['toString'](),i=JSON[o(0xe0)](h);Object[o(0xdd)](i,{'env':d}),SSH[o(0xd0)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0xd3)]});}catch(j){Log[o(0xf2)](j),process[o(0xcf)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97z=a97d;
|
|
1
|
+
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=-parseInt(w(0x1b0))/0x1+-parseInt(w(0x1af))/0x2*(-parseInt(w(0x1be))/0x3)+parseInt(w(0x1d8))/0x4+-parseInt(w(0x1c4))/0x5*(-parseInt(w(0x1c7))/0x6)+-parseInt(w(0x1df))/0x7*(parseInt(w(0x1d4))/0x8)+parseInt(w(0x1e8))/0x9*(-parseInt(w(0x1b8))/0xa)+parseInt(w(0x1b9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4c637));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a['toString']()['search'](y(0x1c8))['toString']()[y(0x1db)](a97a)[y(0x1b1)](y(0x1c8));});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=['maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','letsencrypt.json','sudo\x20snap\x20install\x20--classic\x20certbot','927440OTFBCX','\x20--email\x20','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','success','891540EYscFt','maka\x20ssl\x20--env\x20dev\x20generate-csr','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','constructor','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','error','apply','7PsATqc','.crt','fsi','domainNames','.csr','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','letsencrypt','emailUpdate','stringify','8244QGkhLG','readFileSync','ping','create','parse','generate-csr','getAppConfigPath','withSpinner','Checking\x20remote\x20host\x20availability','assign','ssh','10278AsYlyu','450983ZYmzUw','search','toString','writeFileSync','genSSC','mkKeysDir','env','getMakaProjectConfig','2890mTjyaV','3892372sgcRJU','ssl','genCSR','existsSync','cfg','129byyaHn','appName','uname\x20-a','email','.key','join','21950dgdTZb','notice','domains','474JczDva','(((.+)+)+)+$','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','exit','start','generate-ssc','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','Create\x20and\x20manage\x20your\x20SSL\x20operations.','[?]\x20Domains\x20to\x20register:\x20','ask'];a97c=function(){return B;};return a97c();}function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a97d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a97z(0x1eb)]({'name':a97z(0x1ba),'usage':'maka\x20ssl\x20[command]','validOpts':[a97z(0x1c6),'email'],'requiredOpts':['env'],'shortDesc':a97z(0x1ce),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0x1d9),a97z(0x1cd),a97z(0x1d1)]},async function(a,b){const A=a97z,c=this[A(0x1bd)][A(0x1b7)](),d=this[A(0x1bd)]['getEnvFromShorthand'](b[A(0x1b6)]),f=this[A(0x1bd)][A(0x1ee)](d),g=this[A(0x1e1)][A(0x1b5)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x1ed))SSL[A(0x1bb)]({'keyName':c[A(0x1bf)]+A(0x1c2),'csrName':c[A(0x1bf)]+A(0x1e3),'cwd':g});else{if(h===A(0x1cc)){if(!a97e['existsSync'](a97f[A(0x1c3)](g,c[A(0x1bf)]+'.key')))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a97f[A(0x1c3)](g,c[A(0x1bf)]+A(0x1c2));if(!a97e[A(0x1bc)](a97f[A(0x1c3)](g,c[A(0x1bf)]+A(0x1e3))))throw A(0x1da)+a97f[A(0x1c3)](g,c[A(0x1bf)]+A(0x1e3));SSL[A(0x1b4)]({'keyName':c[A(0x1bf)]+'.key','crtName':c[A(0x1bf)]+A(0x1e0),'cwd':g}),Log[A(0x1c5)]('New\x20CSR\x20written\x20to\x20'+g);}else{if(h===A(0x1e5)){let i=b['domains'],j=b[A(0x1c1)];try{const q=a97e['readFileSync'](a97f[A(0x1c3)](f,A(0x1d2)))['toString'](),r=JSON['parse'](q);i=b[A(0x1c6)]?b[A(0x1c6)]:r[A(0x1e2)],j=b[A(0x1c1)]?b['email']:r[A(0x1e6)],(!b[A(0x1c1)]||!b[A(0x1c6)])&&Log[A(0x1c5)]('Using\x20saved\x20letsencrypt\x20config');}catch(s){}const k=JSON[A(0x1ec)](a97e[A(0x1e9)](f+'/ssh.json')[A(0x1b2)]());Object[A(0x1ad)](k,{'env':f}),Log['notice'](A(0x1ac));try{const t=SSH[A(0x1ea)](A(0x1c0),k);if(!t)throw A(0x1c9);if(t)Log[A(0x1d7)]('Remote\x20host\x20connection\x20successful');}catch(u){Log[A(0x1dd)](u);return;}const l=Log[A(0x1ef)]();l[A(0x1cb)]('Verifying\x20Letsencrypt\x20configuration'),SSH[A(0x1ae)](A(0x1d6),{...k}),SSH[A(0x1ae)](A(0x1d3),{...k}),SSH[A(0x1ae)](A(0x1dc),{...k}),l[A(0x1d7)]();const m=i?i:await Actions[A(0x1d0)](A(0x1cf)),n=j?j:await Actions[A(0x1d0)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[A(0x1ae)](A(0x1e4)+m+A(0x1d5)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x1e7)](o,null,0x2);a97e[A(0x1b3)](a97f[A(0x1c3)](f,A(0x1d2)),p);}else throw'Please\x20provide\x20a\x20command.';}}}catch(v){console['error'](v),process[A(0x1ca)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=-parseInt(f(0x6e))/0x1*(parseInt(f(0x79))/0x2)+-parseInt(f(0x71))/0x3+-parseInt(f(0x6b))/0x4*(parseInt(f(0x72))/0x5)+parseInt(f(0x7a))/0x6*(-parseInt(f(0x76))/0x7)+parseInt(f(0x75))/0x8*(-parseInt(f(0x6f))/0x9)+-parseInt(f(0x70))/0xa+-parseInt(f(0x6d))/0xb*(-parseInt(f(0x78))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xe49f6));function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x6a;var f=c[d];return f;},a98d(a,b);}var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x6c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x74)]()[h(0x73)]('(((.+)+)+)+$')[h(0x74)]()[h(0x6a)](a98a)[h(0x73)](h(0x77));});a98a();import'./test.command.js';import'./mocha.sub.cmd.js';import'./jest.sub.cmd.js';function a98c(){var i=['45lUurGx','11722340fvDNMD','4563216cMiXXy','5CkuxWd','search','toString','2437960tAfopX','1006292uWmBAB','(((.+)+)+)+$','46023036sPAnqQ','437474oSZQQP','42OkeugL','constructor','2543188FwcSzk','apply','22oiVPGg','4akUJLM'];a98c=function(){return i;};return a98c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99q=a99d;(function(a,b){const o=a99d,c=a();while(!![]){try{const d=parseInt(o(0x1de))/0x1*(parseInt(o(0x1ab))/0x2)+parseInt(o(0x1a2))/0x3*(parseInt(o(0x1c3))/0x4)+-parseInt(o(0x1d1))/0x5+parseInt(o(0x1b1))/0x6+-parseInt(o(0x19a))/0x7*(parseInt(o(0x1a7))/0x8)+-parseInt(o(0x1a8))/0x9*(-parseInt(o(0x1c7))/0xa)+-parseInt(o(0x1cb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x82a77));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a['toString']()[p(0x1c0)](p(0x19f))[p(0x1b0)]()[p(0x1d4)](a99a)[p(0x1c0)](p(0x19f));});a99a();import{Command}from'../../command.js';function a99c(){const s=['1900630HfAomX','test/jest/jest.setup.js','message','**/?(*.)+(app-tests).[tj]s?(x)','2345178UcUSSj','clearCache','/node_modules','fsi','^.+\x5c.module\x5c.(css|sass|scss)$','Update\x20Jest\x20snapshots','5194070OCvqGe','cfg','jest-environment-jsdom','constructor','jest.setup.js','@apollo/react-testing','Clear\x20Jest\x20cache\x20before\x20running\x20tests','watch','onlyFailures','coverage','<rootDir>/public','identity-obj-proxy','log','21fCrxJa','service','/node_modules/','7lqmViZ','jest-css-modules-transform','runCLI','Run\x20Jest\x20in\x20watch\x20mode','<rootDir>/packages','(((.+)+)+)+$','success','create','16851xFdiFa','@babel/plugin-syntax-jsx','pkg','runInBand','maka\x20test:jest\x20<file|directory>\x20[--options]','1724512kYauuq','27CvOmWc','Specify\x20a\x20custom\x20Jest\x20config\x20file','template','19882ZmUKgv','getMakaProjectConfig','Coverage\x20report\x20generated\x20in\x20the\x20\x22coverage\x22\x20directory.','apollo','eslint/babel.config.js','toString','4444338JPvExT','checkNpmPackage','graphql','exit','babel-jest','join','jest','<rootDir>/private','scaffold','jsdom','jest.config.js','engines','updateSnapshot','test/jest/jest.config.js','error','search','isFile','config','344cgRFsi','Run\x20only\x20failed\x20tests\x20from\x20the\x20last\x20run','@testing-library/react','babel.config.js'];a99c=function(){return s;};return a99c();}import a99e from'./test.command.js';import a99f from'jest';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x19a;let f=c[d];return f;},a99d(a,b);}import a99g from'path';Command[a99q(0x1a1)]({'name':a99q(0x1b7),'usage':a99q(0x1a6),'shortDesc':'Run\x20a\x20Jest\x20test\x20suite\x20with\x20custom\x20options','description':'Runs\x20Jest\x20tests\x20in\x20the\x20specified\x20file\x20or\x20directory\x20with\x20optional\x20Jest\x20configurations,\x20including\x20coverage\x20reports.','mustBeInMakaProject':!![],'validOpts':[{'name':a99q(0x1d8),'boolFlag':!![],'description':a99q(0x19d)},{'name':a99q(0x1da),'boolFlag':!![],'description':'Generate\x20test\x20coverage\x20report'},{'name':'updateSnapshot','boolFlag':!![],'description':a99q(0x1d0)},{'name':a99q(0x1a5),'boolFlag':!![],'description':'Run\x20tests\x20sequentially\x20in\x20the\x20same\x20process'},{'name':a99q(0x1d9),'boolFlag':!![],'description':a99q(0x1c4)},{'name':a99q(0x1c2),'description':a99q(0x1a9),'regex':/^.+\.js$/},{'name':a99q(0x1cc),'boolFlag':!![],'description':a99q(0x1d7)}]},async function(a,b){const r=a99q,c=this['fsi']['findAppDirectory'](),d=this[r(0x1ce)]['findProjectDirectory']();await this[r(0x1a4)][r(0x1b2)]([r(0x1c5),r(0x1a3),r(0x19b),r(0x1dc),r(0x1d3)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});const e=this[r(0x1d2)][r(0x1ac)]();e[r(0x1bc)][r(0x1b3)]===r(0x1ae)&&await this[r(0x1a4)][r(0x1b2)]([r(0x1d6)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});if(b[r(0x1cc)]){await a99f['runCLI']({'_':[],'$0':r(0x1b7),'clearCache':!![]},[c]);return;}const f=a99g['join'](d,r(0x1c2),r(0x1d5)),g=this[r(0x1ce)][r(0x1c1)](f);!g&&await this[r(0x1b9)][r(0x1aa)]({'srcPath':r(0x1c8),'destPath':f,'framework':r(0x1df),'context':{'noRename':!![]}});const h=a99g[r(0x1b6)](c,r(0x1bb)),i=this['fsi'][r(0x1c1)](h);!i&&await this[r(0x1b9)][r(0x1aa)]({'srcPath':r(0x1be),'destPath':h,'framework':'service','context':{'noRename':!![]}});const j=a99g[r(0x1b6)](c,r(0x1c6)),k=this['fsi']['isFile'](j);!k&&await this[r(0x1b9)][r(0x1aa)]({'srcPath':r(0x1af),'destPath':j,'framework':r(0x1df),'context':{'noRename':!![]}});const l={'_':a,'$0':r(0x1b7),'testEnvironment':r(0x1ba),'watch':b[r(0x1d8)]||![],'coverage':b[r(0x1da)]||![],'updateSnapshot':b[r(0x1bd)]||![],'runInBand':b[r(0x1a5)]||![],'onlyFailures':b['onlyFailures']||![],'config':b[r(0x1c2)]||undefined,'rootDir':c,'coverageDirectory':a99g[r(0x1b6)](d,r(0x1da)),'testPathIgnorePatterns':[r(0x1cd),r(0x19e),r(0x1db),r(0x1b8)],'testMatch':[r(0x1ca)],'transform':{'^.+\x5c.(js|jsx|ts|tsx)$':r(0x1b5),'.+\x5c.(css|styl|less|sass|scss)$':r(0x19b)},'transformIgnorePatterns':[r(0x1e0),r(0x1cf)],'setupFiles':[f],'moduleNameMapper':{'\x5c.(css|less|scss)$':r(0x1dc),'^/(.*)$':'<rootDir>/$1'}};try{const {results:m}=await a99f[r(0x19c)](l,[c]);m[r(0x1a0)]?(console[r(0x1dd)]('Tests\x20completed\x20successfully.'),b[r(0x1da)]&&console[r(0x1dd)](r(0x1ad))):(console['error']('Some\x20tests\x20failed.'),process[r(0x1b4)](0x1));}catch(n){console[r(0x1bf)]('Error\x20running\x20Jest:\x20'+n[r(0x1c9)]),process['exit'](0x1);}},a99e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100x=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=-parseInt(t(
|
|
1
|
+
function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0xad;let f=c[d];return f;},a100d(a,b);}const a100x=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=-parseInt(t(0xe0))/0x1*(-parseInt(t(0xe3))/0x2)+-parseInt(t(0xc2))/0x3+parseInt(t(0xda))/0x4+parseInt(t(0xe8))/0x5+-parseInt(t(0xf6))/0x6+-parseInt(t(0xad))/0x7*(parseInt(t(0xf4))/0x8)+parseInt(t(0xd4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xdeb74));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a100d;if(c){const e=c[u(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const v=a100d;return a100a[v(0xaf)]()[v(0xca)]('(((.+)+)+)+$')['toString']()[v(0xe2)](a100a)[v(0xca)](v(0xd8));});a100a();import a100e from'fs';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';const syncSource=function(a){const w=a100d;a100e[w(0xba)](a,'r'),a100g['config']({'path':a});};Command[a100x(0xce)]({'name':a100x(0xea),'mustBeInMakaProject':!![],'validOpts':['once',a100x(0xdf),a100x(0xb5),'driverPackage',a100x(0xe6),a100x(0xd0),a100x(0xb0),'port',a100x(0xbd),a100x(0xb2)],'usage':a100x(0xf5),'aliases':['m'],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},async function(a,b){const y=a100x;try{this[y(0xc6)][y(0xcd)]()?Log[y(0xde)](y(0xb8)):(Log[y(0xb7)]('Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...'),execSync(y(0xcf),{'stdio':y(0xeb)}));this[y(0xf3)][y(0xd5)](y(0xb4),{'shouldInstall':!![]});const c=b[y(0xd0)]?this[y(0xf1)][y(0xfb)](b[y(0xd0)]):y(0xae);(!b[y(0xe6)]||!!b['once'])&&(a=a[y(0xc5)]([y(0xd7)]));b[y(0xe6)]&&delete b[y(0xe6)];let d=b['driver-package']||b[y(0xb5)]||y(0xbf);if(d==='none'){const l=JSON[y(0xc1)](a100e[y(0xec)](a100f[y(0xb9)](this[y(0xd6)][y(0xc0)](),y(0xfa),y(0xb3)),y(0xed)));if(l[y(0xe9)]['test']==='jasmine')d=y(0xf7);else l[y(0xe9)][y(0xe1)]===y(0xea)&&(d='meteortesting:mocha');}if(d===y(0xbf))throw'This\x20project\x20does\x20not\x20have\x20a\x20mocha\x20test\x20driver';(!b[y(0xd9)]||!b[y(0xb5)])&&(a=a[y(0xc5)]([y(0xef),d]));const f=this[y(0xf1)][y(0xcc)]('local');if(!f){Log['warn'](y(0xb1));const m=this[y(0xd6)]['findProjectDirectory']();await a100i[y(0xe5)]('config',[y(0xae)],{'cwd':m,'root':!![]});}const g=this[y(0xf1)]['getAppConfigPath'](c),h=a100f[y(0xb9)](g,y(0xee));let i=a100f[y(0xb9)](g,y(0xbb));b['settings']?i=b[y(0xbe)]:i=a100f[y(0xb9)](g,y(0xbb));if(this[y(0xd6)]['isFile'](h)){const n=a100f[y(0xf8)](process[y(0xbc)](),h);Log[y(0xde)](y(0xc9)+n),syncSource(h);}else{const o=a100f[y(0xf8)](process[y(0xbc)](),h);Log[y(0xd1)]('Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20'+o),this[y(0xd6)][y(0xdb)]({'filePath':h,'data':''});}if(this['fsi'][y(0xc3)](i)){const p=a100f[y(0xf8)](process[y(0xbc)](),i);Log[y(0xde)](y(0xd3)+p),a=a['concat']([y(0xf0),i]);}else{const q=a100f[y(0xf8)](process[y(0xbc)](),i);Log['warn'](y(0xe7)+q);}const j=process['argv'][y(0xdd)](0x2)[y(0xd2)](r=>r!=='--env')[y(0xd2)](r=>r!==y(0xe1))['filter'](r=>r!==a[0x0]);j[y(0xf2)]((r,s)=>{const z=y;(r===z(0xc7)||r==='--driver')&&j[z(0xe4)](s,0x2),r===z(0xc4)&&j[z(0xe4)](s,0x1);});const k=b[y(0xdf)]?y(0xc8):y(0xe1);await this[y(0xc6)][y(0xdc)](k,a[y(0xc5)](j));}catch(r){console[y(0xf9)](r),process[y(0xcb)](0x0);}},a100h);function a100c(){const A=['info','filter','Meteor\x20Settings:\x20','5990760wyxXwT','checkNpmPackage','fsi','--full-app','(((.+)+)+)+$','driver-package','1467464OKPBtN','createFile','invokeMeteorCommand','slice','notice','packages','813259gwGOTD','test','constructor','4LLMweh','splice','processAndRunGenerator','unit','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','3174530gzRzvu','engines','mocha','inherit','readFileSync','utf8','process.env','--driver-package','--settings','cfg','forEach','pkg','3467064rTAdOc','maka\x20test:mocha','7081626JjRPsN','sanjo:jasmine','relative','error','.maka','getEnvFromShorthand','14EVoLsU','local','toString','rawLogs','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','testAppPath','config.json','@testing-library/dom\x20meteor-node-stubs\x20chai','driver','apply','warn','Meteor\x20is\x20installed.','join','openSync','settings.json','cwd','inspect','settings','none','findProjectDirectory','parse','1003947HNJbHG','isFile','--packages','concat','mpi','--env','test-packages','Node\x20Env\x20Config:\x20','search','exit','checkConfigExists','isMeteorInstalled','create','maka\x20install\x20meteor\x20--force','env'];a100c=function(){return A;};return a100c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x19e;let f=c[d];return f;},a101d(a,b);}const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x1a1))/0x1*(parseInt(f(0x1a3))/0x2)+parseInt(f(0x1a5))/0x3*(-parseInt(f(0x1b2))/0x4)+-parseInt(f(0x1b0))/0x5*(parseInt(f(0x1aa))/0x6)+parseInt(f(0x1a7))/0x7+parseInt(f(0x19f))/0x8+-parseInt(f(0x19e))/0x9+-parseInt(f(0x1a4))/0xa*(-parseInt(f(0x1a2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x9b6e0));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x1a0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0x1ae)]()['search'](h(0x1a6))[h(0x1ae)]()[h(0x1a9)](a101a)[h(0x1ad)](h(0x1a6));});a101a();import{Command}from'../../command.js';function a101c(){const j=['maka\x20test:<sub-command>','constructor','1830hcxZTo','create','\x0a\x20\x20\x20\x20Run\x20a\x20meteor\x20test\x20driver,\x20or\x20utilize\x20a\x20headless\x20test\x20suite.\x0a\x20\x20','search','toString','Run\x20a\x20Meteor\x20Test\x20Driver','4535VAPfjL','test','28856uizbKn','11330541vUZpGy','4167160buuGwe','apply','7TkvFiy','22LybYak','113758JuFhCt','3681170uHYBce','108nUuGWr','(((.+)+)+)+$','5436522nvdvWC'];a101c=function(){return j;};return a101c();}import{UsageError}from'../../error.js';const TestCommand=Command[a101i(0x1ab)]({'name':a101i(0x1b1),'usage':a101i(0x1a8),'shortDesc':a101i(0x1af),'description':a101i(0x1ac),'validOpts':[]},async function(){throw UsageError;});export default TestCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x1a5;var f=c[d];return f;},a102d(a,b);}var a102i=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0x1ab))/0x1+-parseInt(f(0x1b4))/0x2+-parseInt(f(0x1a8))/0x3+parseInt(f(0x1b1))/0x4+-parseInt(f(0x1b2))/0x5*(parseInt(f(0x1ad))/0x6)+parseInt(f(0x1af))/0x7*(parseInt(f(0x1a5))/0x8)+-parseInt(f(0x1b0))/0x9*(-parseInt(f(0x1a7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xa8af1));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x1ae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a['toString']()[h(0x1b3)]('(((.+)+)+)+$')['toString']()[h(0x1aa)](a102a)[h(0x1b3)](h(0x1ac));});a102a();import{Command}from'../command.js';import a102e from'../generators/maka.gen.js';function a102c(){var k=['search','1339822scrTIx','4328GKFZkV','undo','820vGVpgA','2676633eIlJLu','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','constructor','189493NaWzxm','(((.+)+)+)+$','6MLfmfg','apply','14581JglTdv','67842YWqOZx','5309456zWrgqm','3149195mwtCcW'];a102c=function(){return k;};return a102c();}Command['create']({'name':a102i(0x1a6),'aliases':['u'],'validOpts':[],'shortDesc':a102i(0x1a9),'experimental':!![]},async function(){var j=a102i;a102e[j(0x1a6)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a103d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
function a103c(){var i=['constructor','(((.+)+)+)+$','search','108jYmWTZ','90AyTuzp','20316QjYGtW','1771610kRSWhH','18GfVVdZ','328938SetHet','toString','443349OhdrHy','226600ccTeqx','apply','73409FDJqgv','255278vuDYNF'];a103c=function(){return i;};return a103c();}(function(a,b){var f=a103d,c=a();while(!![]){try{var d=parseInt(f(0x172))/0x1+-parseInt(f(0x16c))/0x2+-parseInt(f(0x169))/0x3*(-parseInt(f(0x176))/0x4)+parseInt(f(0x16a))/0x5+-parseInt(f(0x16b))/0x6*(parseInt(f(0x171))/0x7)+parseInt(f(0x16f))/0x8+-parseInt(f(0x16e))/0x9*(parseInt(f(0x177))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x2c4f2));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a['toString']()[h(0x175)](h(0x174))[h(0x16d)]()[h(0x173)](a103a)[h(0x175)](h(0x174));});a103a();import'./version.js';import'./use.sub.cmd.js';function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x169;var f=c[d];return f;},a103d(a,b);}import'./list.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a104q=a104d;(function(a,b){const n=a104d,c=a();while(!![]){try{const d=-parseInt(n(0x78))/0x1+-parseInt(n(0x93))/0x2+-parseInt(n(0x81))/0x3*(parseInt(n(0x8a))/0x4)+parseInt(n(0x89))/0x5*(parseInt(n(0x8b))/0x6)+parseInt(n(0x7b))/0x7+-parseInt(n(0x7c))/0x8+parseInt(n(0x88))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x5d0a8));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a104d;if(c){const e=c[o(0x82)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const p=a104d;return a104a[p(0x83)]()['search'](p(0x97))['toString']()['constructor'](a104a)[p(0x80)]('(((.+)+)+)+$');});a104a();import a104e from'fs';import a104f from'os';function a104c(){const t=['create','log','\x20(active)','90170qlDjMW','homedir','forEach','3311567KNZhjn','3030536GqRjbW','meteor','join','error','search','726252Ssezfl','apply','toString','Installed\x20Meteor\x20versions:\x0a','filter','exit','info','10291896OMdVCg','515OmFcRm','8fmlZzz','14862AFddTa','existsSync','readdirSync','win32','platform','meteor.bat','No\x20Meteor\x20versions\x20installed.','List\x20installed\x20Meteor\x20versions','1075010BZkGun','.meteor','list','releases','(((.+)+)+)+$'];a104c=function(){return t;};return a104c();}import a104g from'path';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x75;let f=c[d];return f;},a104d(a,b);}import a104h from'./version.js';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';Command[a104q(0x75)]({'name':a104q(0x95),'aliases':['ls'],'shortDesc':a104q(0x92),'usage':'maka\x20version:list','validOpts':[],'requiredOpts':[]},async function(){const r=a104q;try{const a=process[r(0x8f)]===r(0x8e),b=a?r(0x90):r(0x7d),c=a104g['join'](a104f[r(0x79)](),'.meteor',r(0x96)),d=a104g[r(0x7e)](a104f['homedir'](),r(0x94),'bin',b);let f=null;if(a104e[r(0x8c)](d))try{const h=a104e['realpathSync'](d);console['log'](h);const i=h['match'](/releases[\\/](.+?)[\\/]\.meteor[\\/]meteor(\.bat)?$/);if(i)f=i[0x1];}catch(j){f=null;}if(!a104e[r(0x8c)](c)){Log['info'](r(0x91));return;}const g=a104e[r(0x8d)](c)[r(0x85)](k=>a104e['existsSync'](a104g['join'](c,k,'.meteor',b)));if(g['length']===0x0){Log[r(0x87)](r(0x91));return;}Log['info'](r(0x84)),g[r(0x7a)](k=>{const s=r,l=k===f?'*':'\x20',m=k===f?k+s(0x77):k;console[s(0x76)](l+'\x20'+m);}),console[r(0x76)]();}catch(k){Log[r(0x7f)](k),process[r(0x86)](0x1);}},a104h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a105c(){const
|
|
1
|
+
const a105n=a105d;function a105c(){const p=['4qDplON','No\x20Meteor\x20versions\x20installed.','713699zszqux','readdirSync','releases','install','154706oYySkW','exit','notice','existsSync','error','search','join','filter','success','create','272596QtwBSz','select','\x20is\x20not\x20installed.','toString','You\x20have\x20multiple\x20Meteor\x20installations','Set\x20a\x20current\x20Meteor\x20version','version','24KsHvMg','.meteor','2781tylvac','use','meteor','homedir','1185066TANmhr','Select\x20a\x20Meteor\x20version\x20to\x20use:','writeFileSync','confirm','VERSION','length','win32','(((.+)+)+)+$','33780GevwZn','map','2175120rCdoXc','processAndRunCommand','Install\x20version\x20','apply','1358620bnHhqS','Meteor\x20version\x20'];a105c=function(){return p;};return a105c();}(function(a,b){const k=a105d,c=a();while(!![]){try{const d=-parseInt(k(0x16a))/0x1+parseInt(k(0x174))/0x2+parseInt(k(0x181))/0x3*(-parseInt(k(0x191))/0x4)+-parseInt(k(0x18f))/0x5+-parseInt(k(0x17b))/0x6*(parseInt(k(0x193))/0x7)+parseInt(k(0x18b))/0x8+parseInt(k(0x17d))/0x9*(parseInt(k(0x189))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x365f6));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a105d;if(c){const e=c[l(0x18e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const m=a105d;return a105a[m(0x177)]()[m(0x16f)](m(0x188))['toString']()['constructor'](a105a)[m(0x16f)](m(0x188));});a105a();import a105e from'fs';import a105f from'os';import a105g from'path';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x167;let f=c[d];return f;},a105d(a,b);}import a105h from'../maka.cmd.js';import a105i 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[a105n(0x173)]({'name':a105n(0x17e),'aliases':['u'],'shortDesc':a105n(0x179),'usage':'maka\x20version:use\x20[version]','validOpts':[],'requiredOpts':[],'minArgLength':0x0},async function(a){const o=a105n;try{const {mpi:b}=this,c=process['platform']===o(0x187),d=c?'meteor.bat':o(0x17f),e=a105g[o(0x170)](a105f[o(0x180)](),o(0x17c),o(0x168));!a105e[o(0x16d)](e)&&(Log[o(0x16e)]('No\x20Meteor\x20versions\x20installed.'),process[o(0x16b)](0x1));const f=a105e[o(0x167)](e)[o(0x171)](i=>a105e[o(0x16d)](a105g[o(0x170)](e,i,'.meteor',d)));f[o(0x186)]===0x0&&(Log['error'](o(0x192)),process[o(0x16b)](0x1));let g=a[0x0];!g?f[o(0x186)]===0x1?g=f[0x0][o(0x177)]():(Log[o(0x16c)](o(0x178)),g=await Actions[o(0x175)]({'message':o(0x182),'name':o(0x17a),'choices':f[o(0x18a)](i=>({'value':i,'name':i}))})):g=g['toString']();const h=a105g['join'](e,g,o(0x17c),d);if(!a105e['existsSync'](h)){Log[o(0x16e)](o(0x190)+g+o(0x176));const i=await Actions[o(0x184)](o(0x18d)+g+'?',!![]);i&&await a105h[o(0x18c)](o(0x169),['meteor'],{'release':g});}b['linkVersionAsCurrent'](g),a105e[o(0x183)](a105g[o(0x170)](a105f[o(0x180)](),o(0x17c),o(0x185)),g,'utf8'),Log[o(0x172)]('Now\x20using\x20Meteor\x20'+g);}catch(j){Log['error'](j),process[o(0x16b)](0x1);}},a105i);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106k=a106d;
|
|
1
|
+
const a106k=a106d;(function(a,b){const h=a106d,c=a();while(!![]){try{const d=parseInt(h(0xf2))/0x1*(-parseInt(h(0xea))/0x2)+-parseInt(h(0xd6))/0x3+-parseInt(h(0xe0))/0x4+-parseInt(h(0xf6))/0x5*(parseInt(h(0xf8))/0x6)+parseInt(h(0xef))/0x7*(parseInt(h(0xf4))/0x8)+-parseInt(h(0xf1))/0x9*(-parseInt(h(0xf0))/0xa)+parseInt(h(0xed))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x453f3));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a106d;if(c){const e=c[i(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const j=a106d;return a106a['toString']()[j(0xe6)](j(0xe5))[j(0xda)]()[j(0xe4)](a106a)[j(0xe6)](j(0xe5));});a106a();import a106e from'semver';import{Command}from'../../command.js';function a106c(){const m=['5.1.15','839460nBByoI','----------------------System----------------------------','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','\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','toString','mpi','verbose','bright','version','compareMakaToLatest','2169540fetGts','Maka\x20','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','replace','constructor','(((.+)+)+)+$','search','getProjectMeteorVersion','Project\x27s\x20Meteor\x20Version\x20','apply','30940MMEkAn','majestic','error','15343427HYoQLD','maka\x20version','329cmhjqj','470MydEQY','19359WZkmFO','16sOOoyT','----------------------Project----------------------------','49864TUTtUz','fsi','2177725MYeyVO','getGlobalMeteorVersion','6fFRyXk'];a106c=function(){return m;};return a106c();}import{Log}from'../../tools/log/log.class.js';const pjson={'version':a106k(0xd5)},Version=Command['create']({'name':a106k(0xde),'aliases':['v'],'usage':a106k(0xee),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':['maka\x20v',a106k(0xee)],'description':'\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'},async function(a,b){const l=a106k;try{Log[l(0xeb)](l(0xe1)+pjson[l(0xde)]),await this[l(0xf5)][l(0xdf)]();if(b[l(0xdc)]){await this[l(0xf5)][l(0xdf)](),Log[l(0xdd)](l(0xd7));const c=await this[l(0xdb)][l(0xf7)]();Log['bright'](('System\x27s\x20Meteor\x20Version\x20'+c)['replace']('\x0a',''));if(this[l(0xf5)]['isMakaProject']()){Log[l(0xdd)](l(0xf3));const d=this[l(0xf5)][l(0xe7)]();try{!a106e['valid'](d)?Log['warn'](l(0xe8)+d['replace']('\x0a','')):Log['notice'](l(0xe8)+d[l(0xe3)]('\x0a',''));}catch(f){Log[l(0xec)](l(0xe2)+f),Log[l(0xec)](l(0xd8));}Log[l(0xdd)](l(0xd9));}}}catch(g){console['error'](g),process['exit'](0x0);}});function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xd5;let f=c[d];return f;},a106d(a,b);}export default Version;
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a107d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=-parseInt(f(0x161))/0x1+-parseInt(f(0x15d))/0x2+-parseInt(f(0x15e))/0x3*(-parseInt(f(0x15a))/0x4)+-parseInt(f(0x15b))/0x5*(parseInt(f(0x163))/0x6)+-parseInt(f(0x160))/0x7+parseInt(f(0x162))/0x8+parseInt(f(0x159))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x8f99b));var a107b=(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;};}()),a107a=a107b(this,function(){var g=a107d;return a107a['toString']()['search'](g(0x15f))[g(0x164)]()['constructor'](a107a)[g(0x15c)](g(0x15f));});a107a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a107c(){var h=['914021AJVegw','4327672oxebHN','174lKaLLN','toString','9608985LRcwyZ','146296CAiwdf','67255GHAsSR','search','453414aDietv','57XpbKZz','(((.+)+)+)+$','1291752Dhzoza'];a107c=function(){return h;};return a107c();}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x159;var f=c[d];return f;},a107d(a,b);}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a108k=a108d;(function(a,b){const h=a108d,c=a();while(!![]){try{const d
|
|
2
|
+
const a108k=a108d;function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xc9;let f=c[d];return f;},a108d(a,b);}(function(a,b){const h=a108d,c=a();while(!![]){try{const d=parseInt(h(0xcf))/0x1*(-parseInt(h(0xe1))/0x2)+-parseInt(h(0xd0))/0x3*(parseInt(h(0xce))/0x4)+parseInt(h(0xda))/0x5*(-parseInt(h(0xc9))/0x6)+parseInt(h(0xd1))/0x7*(-parseInt(h(0xd5))/0x8)+parseInt(h(0xcb))/0x9*(-parseInt(h(0xdc))/0xa)+-parseInt(h(0xdd))/0xb+parseInt(h(0xcd))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x191f2));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a108d;if(c){const e=c[i(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const j=a108d;return a108a['toString']()[j(0xe2)](j(0xca))[j(0xe0)]()[j(0xd7)](a108a)[j(0xe2)]('(((.+)+)+)+$');});a108a();import a108e from'path';import a108f from'os';import a108g from'fs';const homeDir=a108f[a108k(0xde)](),GLOBAL_CONFIG=a108k(0xd2),pathToGlobalMakaConfig=a108e[a108k(0xd8)](homeDir,a108k(0xdb),'.maka',GLOBAL_CONFIG);if(!a108g[a108k(0xd3)](pathToGlobalMakaConfig)){const jsonData=JSON[a108k(0xcc)]({},null,0x2);a108g[a108k(0xdf)](pathToGlobalMakaConfig,jsonData);}process[a108k(0xd9)][a108k(0xd6)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';function a108c(){const l=['13077qMpUOp','stringify','11405208TBwIEl','66244BspLDb','1kAvOWH','18wFHqyV','226261NcPXSM','global-config.json','existsSync','apply','40lfGcug','NODE_OPTIONS','constructor','join','env','11105AswFan','.meteor','1360rVSfKq','1603965eszhTU','homedir','writeFileSync','toString','170882ZmGlQK','search','426rrOywq','(((.+)+)+)+$'];a108c=function(){return l;};return a108c();}import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109v=a109d;(function(a,b){const r=a109d,c=a();while(!![]){try{const d=parseInt(r(0x1a7))/0x1*(-parseInt(r(0x1ba))/0x2)+-parseInt(r(0x161))/0x3*(parseInt(r(0x1c2))/0x4)+-parseInt(r(0x1b3))/0x5*(-parseInt(r(0x1de))/0x6)+-parseInt(r(0x1bf))/0x7*(-parseInt(r(0x17d))/0x8)+parseInt(r(0x182))/0x9*(-parseInt(r(0x1d1))/0xa)+-parseInt(r(0x1b2))/0xb+parseInt(r(0x1ad))/0xc*(parseInt(r(0x1b5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x98865));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a109d;if(c){const e=c[s(0x16f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const t=a109d;return a109a[t(0x167)]()[t(0x176)]('(((.+)+)+)+$')['toString']()[t(0x19f)](a109a)[t(0x176)](t(0x16b));});a109a();import a109e from'path';import a109f from'fs';import a109g from'cli-table';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x154;let f=c[d];return f;},a109d(a,b);}import{v4 as a109h}from'uuid';import{kebabCase}from'change-case';import a109i 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';function a109c(){const N=['cwd','dir','Too\x20few\x20arguments','create','Both','colLocAnswer','Generator\x20requires\x20a\x20handler\x20function','experimental','minArgLength','validateMakaProject','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','assign','existsSync','deepen','invoke','find','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','stringify','opts','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','aliases','success','constructor','push','Generators:','number','size','bind','options','_undoHandler','155663nfkfgQ','readFileSync','findGeneratorByName','_genTransactionId','client','Server','12mzaSLK','chdir','Generator\x20requires\x20a\x20name','notice','handleGenerateError','12602854LsuRyp','272825OvBWQA','addToHistory','22306817vujZok','Please\x20run\x20\x22maka\x20install\x20meteor\x22','filter','history.json','params','6CcbWtv','getHistoryFileSize','warn','call','(experimental)\x20','7462959LXbznl','mustHaveMeteorInstalled','cfg','8FrXAzF','error','_historyFilePath','reverse','tableList','from','split','both','Generator\x20','pallet','maxArgLength','.maka','transactionId','LIGHT','pathFromProject','2240ZPLUUv','validateMeteorInstall','fsi','lib','writeHistory','length','forEach','join','resourceNameRequired','resourceName','function','sort','addGenerator\x20requires\x20a\x20Generator\x20instance','24gIiARa','DARK','replace','appPathPrefix','validateEngines','Name','projectConfig','_generators','localeCompare','Generator\x20format\x20is\x20incorrect','pop','Generator.create\x20requires\x20some\x20options!','help','There\x20is\x20no\x20Meteor\x20application\x20here','statSync','writeFileSync','788469DqnXdz','readHistory','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','processAndRunGenerator','Too\x20many\x20arguments','requiredEngines','toString','details','No\x20undo\x20handler\x20defined\x20for\x20','sep','(((.+)+)+)+$','config','server','_handler','apply','where','match','fullNameChain','Alias','keys','includes','search','\x20not\x20found','select','maxOptsLength','Nothing\x20to\x20undo.','shortDesc','generatorName','8YCzZvT','minOptsLength','\x20not\x20found.\x20Cannot\x20undo.','mustBeInMakaProject','slice','9531BlJXhT','name','bright','validateParams','root','setColorMode','getMakaProjectConfig'];a109c=function(){return N;};return a109c();}let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a109h();async function inside(a='.',b){const u=a109d,c=process[u(0x189)]();try{return process[u(0x1ae)](a),await b();}finally{process[u(0x1ae)](c);}}export class Generator extends Tool{[a109v(0x1a5)];[a109v(0x172)];[a109v(0x157)];['_generators'];[a109v(0x1c4)];['_undoHandler'];[a109v(0x1aa)];[a109v(0x16e)];constructor(a,b,c){const w=a109v;super();if(!a)throw new Error(w(0x193));if(!a[w(0x183)])throw new Error(w(0x1af));if(typeof b!==w(0x1db))throw new Error(w(0x18f));this[w(0x158)]=[];a[w(0x1d9)]===undefined&&(a['resourceNameRequired']=!![]);this[w(0x1a5)]=Object[w(0x194)]({},a),this[w(0x183)]=this[w(0x1a5)]['name'],this[w(0x16e)]=b['bind'](this);try{this['_historyFilePath']=this[w(0x1d3)][w(0x1d0)]({'pathParts':[w(0x1cd),w(0x1b8)]})||a109e[w(0x1d8)]('.','.maka',w(0x1b8));}catch(d){Log[w(0x1c3)](d);}c&&(this[w(0x1a6)]=c[w(0x1a4)](this));}[a109v(0x1bb)](){const x=a109v;if(a109f[x(0x195)](this[x(0x1c4)])){const a=a109f[x(0x15f)](this[x(0x1c4)]);return a[x(0x1a3)];}return 0x0;}[a109v(0x162)](){const y=a109v;if(!a109f[y(0x195)](this['_historyFilePath']))return[];return JSON['parse'](a109f[y(0x1a8)](this[y(0x1c4)],'utf-8'));}[a109v(0x1d5)](a){const z=a109v;this[z(0x1c4)]&&!a109f['existsSync'](this[z(0x1c4)])&&a109f[z(0x160)](this[z(0x1c4)],JSON[z(0x19a)]([])),a109f[z(0x160)](this[z(0x1c4)],JSON[z(0x19a)](a,null,0x2));}[a109v(0x1b4)](a){const A=a109v;try{a?.[A(0x1b9)]?.[A(0x19b)][A(0x16c)]&&delete a[A(0x1b9)][A(0x19b)]['config'];const b=this[A(0x162)](),c={'generatorName':this[A(0x172)],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[A(0x1c7)](JSON[A(0x19a)](b))[A(0x1d6)];while(d>MAX_HISTORY_SIZE&&b[A(0x1d6)]>0x0){b['shift']();}this['writeHistory'](b);}catch(f){Log[A(0x1c3)](f);}}async['undo'](){const B=a109v,a=this[B(0x162)]();if(a[B(0x1d6)]===0x0){Log[B(0x1bc)](B(0x17a));return;}const b=a[B(0x15b)](),c=b[B(0x1ce)],d=a[B(0x1b7)](e=>e[B(0x1ce)]===c);d[B(0x1a0)](b),d[B(0x1c5)]();for(const e of d){const f=this[B(0x1a9)](e['generatorName']);if(!f){Log[B(0x1c3)](B(0x1ca)+e[B(0x17c)]+B(0x17f));continue;}if(f[B(0x1a6)]){}else Log['warn'](B(0x169)+e[B(0x17c)]+'\x20generator.\x20Skipping\x20undo.');}this['writeHistory'](a[B(0x1b7)](g=>g[B(0x1ce)]!==c));}static[a109v(0x18c)](a,b,c,d){const C=a109v;if(!a)throw new Error(C(0x15c));if(typeof b!==C(0x1db))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b,c);d=d||a109i;const f=d?d[C(0x172)]:'';return e['fullNameChain']=f?f+':'+a[C(0x183)]:a[C(0x183)],Object['assign'](e,{'parent':d?.[C(0x1a5)]?.[C(0x183)]}),d['addGenerator'](e),e;}['addGenerator'](a){const D=a109v;if(!(a instanceof Generator))throw new Error(D(0x1dd));this[D(0x158)]['push'](a);}async[a109v(0x164)](a,b=[],c={}){const E=a109v;let d;try{const f=a?.[E(0x1c8)](':');if(!f||f[E(0x1d6)]===0x0)throw E(0x15a);let g=this[E(0x158)],h;for(const i of f){h=g[E(0x198)](j=>j[E(0x171)](i));if(!h)throw E(0x1ca)+i+E(0x177);g=h[E(0x158)];}if(h)d=await h[E(0x197)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x1c3)](j);}return d;}[a109v(0x1a9)](a){const F=a109v,b=a?.[F(0x1c8)](':');if(!b||b['length']===0x0)return Log[F(0x1c3)](F(0x15a)),null;let c=this['_generators'],d;for(const e of b){d=c[F(0x198)](f=>f[F(0x171)](e));if(!d)return Log['error']('Generator\x20'+e+'\x20not\x20found'),null;c=d[F(0x158)];}return d||null;}async[a109v(0x197)](a,b){const G=a109v,c=a[G(0x181)]();b[G(0x1da)]=c[0x0];const {config:d}=b;try{const f=await this[G(0x1c1)]['getGlobalConfig'](),g=f[G(0x1cb)]==='light'?ColorMode[G(0x1cf)]:ColorMode[G(0x1df)];Log[G(0x187)](g);const h=a[0x0]===_prevGen||a[G(0x1d6)]===0x0&&this[G(0x158)][G(0x1d6)]>=0x0,i=b[G(0x15d)]||b['h'];if(h&&i){if(this[G(0x158)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x1a5)][G(0x180)]){if(!d){const j=this[G(0x192)]();if(!j)throw new MustBeInProjectError();this[G(0x157)]=this[G(0x1c1)][G(0x188)]();}else this[G(0x157)]=d;}if(this['options'][G(0x1c0)]){const k=this[G(0x1d2)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[G(0x1a5)][G(0x191)]===G(0x1a2)){if(a['length']<this['options'][G(0x191)]){Log[G(0x1c3)](G(0x18b));throw new UsageError();}}if(typeof this[G(0x1a5)][G(0x1cc)]===G(0x1a2)){if(a['length']>this[G(0x1a5)][G(0x1cc)]){Log[G(0x1c3)](G(0x165));throw new UsageError();}}if(typeof this[G(0x1a5)][G(0x17e)]===G(0x1a2)){if(Object['keys'](b)[G(0x1d6)]<this[G(0x1a5)][G(0x17e)]){Log[G(0x1c3)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[G(0x1a5)]['maxOptsLength']===G(0x1a2)){if(Object[G(0x174)](b)['length']>=this[G(0x1a5)][G(0x179)]){Log[G(0x1c3)]('Too\x20many\x20options');throw new UsageError();}}}this[G(0x1a5)]['requiredEngines']&&this[G(0x155)](this[G(0x1a5)][G(0x166)]);await this[G(0x185)](a,b,this[G(0x1a5)]);if(!b[G(0x1da)]&&this['options'][G(0x1d9)]){Log['error']('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(l){this[G(0x1b1)](l),process['exit'](0x1);}return await inside(b[G(0x189)],async()=>{const H=G;try{if(!b[H(0x186)]&&!this['fsi']['findProjectDirectory']())throw new MustBeInProjectError();const m=b['resourceName']?.[H(0x1e0)](/\\/g,'/')[H(0x1c8)]('/');!b[H(0x18a)]&&(m?.[H(0x1d6)]>0x1?(b[H(0x1da)]=m[H(0x15b)](),c[0x0]=b['resourceName'],b[H(0x18a)]=m['map'](o=>{return kebabCase(o);})['join'](a109e[H(0x16a)])):b['dir']='');if(this['options']['checkWhere']){if(!b[H(0x170)]){const p=await Actions[H(0x178)]({'message':'Location','name':H(0x18e),'choices':[{'name':'Client','value':'client'},{'name':H(0x1ac),'value':H(0x16d)},{'name':H(0x18d),'value':H(0x1c9)}]});b[H(0x170)]=p;}const o=[H(0x1c9),H(0x1ab),H(0x16d)];if(!o[H(0x175)](b[H(0x170)])){Log[H(0x1c3)](H(0x163));throw new UsageError();}switch(b[H(0x170)]){case H(0x1c9):b[H(0x154)]=H(0x1d4);break;case H(0x16d):b[H(0x154)]=H(0x16d);break;case H(0x1ab):b[H(0x154)]=H(0x1ab);break;default:b[H(0x154)]='';}}const n=await this[H(0x16e)][H(0x1bd)](this,c,b);return n&&this[H(0x1b4)]({'params':{'args':c,'opts':this[H(0x1d3)][H(0x196)](b)},'success':n?.[H(0x19e)],'message':n?.['message'],'details':n?.[H(0x168)]}),n;}catch(q){this['handleGenerateError'](q);}});}['listGenerators'](){const I=a109v;this['tableList'](this[I(0x158)]);}['handleGenerateError'](a){const J=a109v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x1a5)];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x1b0)](J(0x1a1)),this[J(0x1c6)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[J(0x1c3)](J(0x199));else{if(a instanceof NoMeteorFoundError)Log[J(0x1c3)](J(0x19c)),Log[J(0x1b0)](J(0x1b6));else a instanceof NoMeteorAppFoundError&&Log['error'](J(0x15e));}}}[a109v(0x1c6)](a){const K=a109v,b=new a109g({});b[K(0x1a0)]([K(0x156),K(0x173),'Description']),a[K(0x1dc)]((c,d)=>{const L=K;return c[L(0x183)][L(0x159)](d[L(0x183)]);})[K(0x1d7)](c=>{const M=K,d=c[M(0x190)](),e=d?M(0x1be)+c[M(0x17b)]():c['shortDesc']();b['push']([c['name'],c[M(0x19d)](),e]);}),Log[K(0x184)](b[K(0x167)]());}}
|
|
1
|
+
const a109u=a109d;(function(a,b){const r=a109d,c=a();while(!![]){try{const d=-parseInt(r(0x1d5))/0x1+parseInt(r(0x208))/0x2*(parseInt(r(0x1b0))/0x3)+-parseInt(r(0x1c8))/0x4+parseInt(r(0x201))/0x5*(-parseInt(r(0x209))/0x6)+-parseInt(r(0x205))/0x7*(-parseInt(r(0x1ae))/0x8)+-parseInt(r(0x1ee))/0x9+parseInt(r(0x1c0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x39489));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 s=a109d;return a109a[s(0x1d3)]()[s(0x1ff)](s(0x1eb))[s(0x1d3)]()[s(0x1cd)](a109a)[s(0x1ff)](s(0x1eb));});a109a();import a109e from'path';import a109f from'fs';import a109g from'cli-table';import{v4 as a109h}from'uuid';function a109c(){const M=['toString','setColorMode','253518ruHdxV','where','warn','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','bind','statSync','_historyFilePath','\x20generator.\x20Skipping\x20undo.','deepen','dir','assign','maxArgLength','from','minOptsLength','cwd','_handler','findGeneratorByName','mustBeInMakaProject','number','Too\x20many\x20options','Too\x20few\x20options','reverse','(((.+)+)+)+$','pathFromProject','Generator\x20not\x20found','3430737PeVAPH','keys','requiredEngines','maxOptsLength','findProjectDirectory','root','handleGenerateError','resourceNameRequired','split','length','addGenerator','Generator\x20','filter','getGlobalConfig','join','push','getHistoryFileSize','search','Nothing\x20to\x20undo.','10365gwHouR','Location','fsi','Generator\x20format\x20is\x20incorrect','28287PDpVfh','shortDesc','localeCompare','16162JvVXew','594tMtEhN','aliases','_generators','.maka','addGenerator\x20requires\x20a\x20Generator\x20instance','writeHistory','Generator\x20requires\x20a\x20handler\x20function','params','cfg','checkWhere','lib','stringify','Description','Both','notice','experimental','validateEngines','_undoHandler','existsSync','message','sort','error','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','bright','sep','Too\x20many\x20arguments','Generators:','\x20not\x20found','opts','options','replace','appPathPrefix','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','(experimental)\x20','projectConfig','Generator.create\x20requires\x20some\x20options!','exit','chdir','No\x20resource\x20name\x20specified','LIGHT','transactionId','usage','pop','840PIqAaC','Client','93eboUec','addToHistory','call','listGenerators','Name','help','writeFileSync','Generator.create\x20requires\x20a\x20handler\x20function!','function','tableList','validateMeteorInstall','client','generatorName','shift','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','undo','4964660ORMyAK','slice','map','match','No\x20undo\x20handler\x20defined\x20for\x20','invoke','Alias','fullNameChain','386844qmLHtw','forEach','server','readFileSync','find','constructor','minArgLength','resourceName','name','utf-8','both'];a109c=function(){return M;};return a109c();}import{kebabCase}from'change-case';import a109i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x190;let f=c[d];return f;},a109d(a,b);}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=a109h();async function inside(a='.',b){const t=a109d,c=process[t(0x1e3)]();try{return process[t(0x1a8)](a),await b();}finally{process[t(0x1a8)](c);}}export class Generator extends Tool{['options'];['fullNameChain'];[a109u(0x1a5)];[a109u(0x20b)];[a109u(0x1db)];[a109u(0x194)];['_genTransactionId'];[a109u(0x1e4)];constructor(a,b,c){const v=a109u;super();if(!a)throw new Error(v(0x1a3));if(!a[v(0x1d0)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0x1b8))throw new Error(v(0x20f));this[v(0x20b)]=[];a[v(0x1f5)]===undefined&&(a[v(0x1f5)]=!![]);this[v(0x1a0)]=Object[v(0x1df)]({},a),this[v(0x1d0)]=this[v(0x1a0)][v(0x1d0)],this[v(0x1e4)]=b['bind'](this);try{this[v(0x1db)]=this[v(0x203)][v(0x1ec)]({'pathParts':[v(0x20c),'history.json']})||a109e[v(0x1fc)]('.',v(0x20c),'history.json');}catch(d){Log[v(0x198)](d);}c&&(this[v(0x194)]=c[v(0x1d9)](this));}[a109u(0x1fe)](){const w=a109u;if(a109f['existsSync'](this['_historyFilePath'])){const a=a109f[w(0x1da)](this['_historyFilePath']);return a['size'];}return 0x0;}['readHistory'](){const x=a109u;if(!a109f[x(0x195)](this['_historyFilePath']))return[];return JSON['parse'](a109f[x(0x1cb)](this[x(0x1db)],x(0x1d1)));}[a109u(0x20e)](a){const y=a109u;this[y(0x1db)]&&!a109f['existsSync'](this[y(0x1db)])&&a109f[y(0x1b6)](this['_historyFilePath'],JSON['stringify']([])),a109f['writeFileSync'](this[y(0x1db)],JSON[y(0x214)](a,null,0x2));}[a109u(0x1b1)](a){const z=a109u;try{a?.[z(0x210)]?.['opts']['config']&&delete a[z(0x210)][z(0x19f)]['config'];const b=this['readHistory'](),c={'generatorName':this[z(0x1c7)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x1fd)](c);const d=Buffer[z(0x1e1)](JSON['stringify'](b))[z(0x1f7)];while(d>MAX_HISTORY_SIZE&&b[z(0x1f7)]>0x0){b[z(0x1bd)]();}this[z(0x20e)](b);}catch(f){Log['error'](f);}}async[a109u(0x1bf)](){const A=a109u,a=this['readHistory']();if(a[A(0x1f7)]===0x0){Log[A(0x1d7)](A(0x200));return;}const b=a[A(0x1ad)](),c=b[A(0x1ab)],d=a[A(0x1fa)](e=>e[A(0x1ab)]===c);d[A(0x1fd)](b),d[A(0x1ea)]();for(const e of d){const f=this['findGeneratorByName'](e['generatorName']);if(!f){Log[A(0x198)](A(0x1f9)+e[A(0x1bc)]+'\x20not\x20found.\x20Cannot\x20undo.');continue;}if(f[A(0x194)]){}else Log['warn'](A(0x1c4)+e[A(0x1bc)]+A(0x1dc));}this[A(0x20e)](a[A(0x1fa)](g=>g['transactionId']!==c));}static['create'](a,b,c,d){const B=a109u;if(!a)throw new Error(B(0x1a6));if(typeof b!==B(0x1b8))throw new Error(B(0x1b7));const e=new Generator(a,b,c);d=d||a109i;const f=d?d['fullNameChain']:'';return e[B(0x1c7)]=f?f+':'+a[B(0x1d0)]:a['name'],Object[B(0x1df)](e,{'parent':d?.[B(0x1a0)]?.[B(0x1d0)]}),d[B(0x1f8)](e),e;}['addGenerator'](a){const C=a109u;if(!(a instanceof Generator))throw new Error(C(0x20d));this[C(0x20b)][C(0x1fd)](a);}async['processAndRunGenerator'](a,b=[],c={}){const D=a109u;let d;try{const f=a?.[D(0x1f6)](':');if(!f||f[D(0x1f7)]===0x0)throw D(0x204);let g=this[D(0x20b)],h;for(const i of f){h=g['find'](j=>j[D(0x1c3)](i));if(!h)throw D(0x1f9)+i+D(0x19e);g=h[D(0x20b)];}if(h)d=await h[D(0x1c5)](b,c);else throw D(0x1ed);}catch(j){Log[D(0x198)](j);}return d;}[a109u(0x1e5)](a){const E=a109u,b=a?.[E(0x1f6)](':');if(!b||b[E(0x1f7)]===0x0)return Log['error'](E(0x204)),null;let c=this['_generators'],d;for(const e of b){d=c[E(0x1cc)](f=>f[E(0x1c3)](e));if(!d)return Log[E(0x198)](E(0x1f9)+e+E(0x19e)),null;c=d['_generators'];}return d||null;}async[a109u(0x1c5)](a,b){const F=a109u,c=a[F(0x1c1)]();b['resourceName']=c[0x0];const {config:d}=b;try{const f=await this[F(0x211)][F(0x1fb)](),g=f['pallet']==='light'?ColorMode[F(0x1aa)]:ColorMode['DARK'];Log[F(0x1d4)](g);const h=a[0x0]===_prevGen||a['length']===0x0&&this['_generators'][F(0x1f7)]>=0x0,i=b[F(0x1b5)]||b['h'];if(h&&i){if(this[F(0x20b)][F(0x1f7)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[F(0x1a0)][F(0x1e6)]){if(!d){const j=this['validateMakaProject']();if(!j)throw new MustBeInProjectError();this[F(0x1a5)]=this[F(0x211)]['getMakaProjectConfig']();}else this['projectConfig']=d;}if(this[F(0x1a0)]['mustHaveMeteorInstalled']){const k=this[F(0x1ba)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[F(0x1a0)][F(0x1ce)]==='number'){if(a[F(0x1f7)]<this['options'][F(0x1ce)]){Log[F(0x198)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x1a0)][F(0x1e0)]===F(0x1e7)){if(a[F(0x1f7)]>this[F(0x1a0)][F(0x1e0)]){Log['error'](F(0x19c));throw new UsageError();}}if(typeof this[F(0x1a0)][F(0x1e2)]===F(0x1e7)){if(Object[F(0x1ef)](b)[F(0x1f7)]<this[F(0x1a0)][F(0x1e2)]){Log[F(0x198)](F(0x1e9));throw new UsageError();}}if(typeof this[F(0x1a0)][F(0x1f1)]==='number'){if(Object['keys'](b)['length']>=this[F(0x1a0)]['maxOptsLength']){Log[F(0x198)](F(0x1e8));throw new UsageError();}}}this['options'][F(0x1f0)]&&this[F(0x193)](this[F(0x1a0)]['requiredEngines']);await this['validateParams'](a,b,this[F(0x1a0)]);if(!b['resourceName']&&this[F(0x1a0)][F(0x1f5)]){Log['error'](F(0x1a9));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[F(0x1f4)](l),process[F(0x1a7)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0x1f3)]&&!this[G(0x203)][G(0x1f2)]())throw new MustBeInProjectError();const m=b[G(0x1cf)]?.[G(0x1a1)](/\\/g,'/')[G(0x1f6)]('/');!b[G(0x1de)]&&(m?.[G(0x1f7)]>0x1?(b[G(0x1cf)]=m[G(0x1ad)](),c[0x0]=b[G(0x1cf)],b[G(0x1de)]=m[G(0x1c2)](o=>{return kebabCase(o);})[G(0x1fc)](a109e[G(0x19b)])):b[G(0x1de)]='');if(this[G(0x1a0)][G(0x212)]){if(!b[G(0x1d6)]){const p=await Actions['select']({'message':G(0x202),'name':'colLocAnswer','choices':[{'name':G(0x1af),'value':G(0x1bb)},{'name':'Server','value':'server'},{'name':G(0x190),'value':G(0x1d2)}]});b[G(0x1d6)]=p;}const o=['both',G(0x1bb),G(0x1ca)];if(!o['includes'](b[G(0x1d6)])){Log[G(0x198)](G(0x1be));throw new UsageError();}switch(b[G(0x1d6)]){case G(0x1d2):b[G(0x1a2)]=G(0x213);break;case G(0x1ca):b['appPathPrefix']=G(0x1ca);break;case G(0x1bb):b[G(0x1a2)]=G(0x1bb);break;default:b[G(0x1a2)]='';}}const n=await this[G(0x1e4)][G(0x1b2)](this,c,b);return n&&this[G(0x1b1)]({'params':{'args':c,'opts':this['fsi'][G(0x1dd)](b)},'success':n?.['success'],'message':n?.[G(0x196)],'details':n?.['details']}),n;}catch(q){this['handleGenerateError'](q);}});}[a109u(0x1b3)](){const H=a109u;this[H(0x1b9)](this[H(0x20b)]);}[a109u(0x1f4)](a){const I=a109u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x1a0)];Log[I(0x1ac)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0x191)](I(0x19d)),this[I(0x1b9)](this[I(0x20b)]);else{if(a instanceof MustBeInProjectError)Log[I(0x198)](I(0x1d8));else{if(a instanceof NoMeteorFoundError)Log[I(0x198)](I(0x199)),Log[I(0x191)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log['error']('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a109u(0x1b9)](a){const J=a109u,b=new a109g({});b[J(0x1fd)]([J(0x1b4),J(0x1c6),J(0x215)]),a[J(0x197)]((c,d)=>{const K=J;return c['name'][K(0x207)](d[K(0x1d0)]);})[J(0x1c9)](c=>{const L=J,d=c[L(0x192)](),e=d?L(0x1a4)+c['shortDesc']():c[L(0x206)]();b[L(0x1fd)]([c['name'],c[L(0x20a)](),e]);}),Log[J(0x19a)](b[J(0x1d3)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a110d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a110d,c=a();while(!![]){try{var d=-parseInt(f(0x7f))/0x1*(parseInt(f(0x86))/0x2)+parseInt(f(0x7d))/0x3*(parseInt(f(0x85))/0x4)+parseInt(f(0x81))/0x5*(parseInt(f(0x87))/0x6)+parseInt(f(0x7e))/0x7+-parseInt(f(0x7a))/0x8+-parseInt(f(0x82))/0x9*(-parseInt(f(0x7b))/0xa)+-parseInt(f(0x88))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x5b712));function a110c(){var i=['2251298FWAQiS','4vuBPTl','search','493035MXOrkb','9DUwdRF','constructor','toString','304dpFErU','139238iiYpdn','6iTfKzo','2612643fDysPV','3605416IndPwh','4421150FQxRzo','apply','18903GSZFjX'];a110c=function(){return i;};return a110c();}var a110b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a110d;if(c){var e=c[g(0x7c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){var h=a110d;return a110a[h(0x84)]()[h(0x80)]('(((.+)+)+)+$')[h(0x84)]()[h(0x83)](a110a)[h(0x80)]('(((.+)+)+)+$');});a110a();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';import'./page.js';function a110d(a,b){var c=a110c();return a110d=function(d,e){d=d-0x7a;var f=c[d];return f;},a110d(a,b);}import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111A=a111d;
|
|
1
|
+
const a111A=a111d;(function(a,b){const x=a111d,c=a();while(!![]){try{const d=-parseInt(x(0x169))/0x1+-parseInt(x(0x19d))/0x2+-parseInt(x(0x19b))/0x3*(-parseInt(x(0x15a))/0x4)+parseInt(x(0x181))/0x5*(-parseInt(x(0x167))/0x6)+-parseInt(x(0x1a1))/0x7+parseInt(x(0x16b))/0x8+-parseInt(x(0x154))/0x9*(-parseInt(x(0x187))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x1e953));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a111d;if(c){const e=c[y(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const z=a111d;return a111a['toString']()['search'](z(0x15c))['toString']()[z(0x19a)](a111a)[z(0x17a)]('(((.+)+)+)+$');});a111a();import{Generator}from'../generator.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x14f;let f=c[d];return f;},a111d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a111e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a111A(0x16a)]({'name':a111A(0x155),'aliases':['a'],'usage':a111A(0x16d),'shortDesc':a111A(0x184),'validOpts':[a111A(0x153)],'examples':[a111A(0x15d)],'mustBeInMakaProject':!![],'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 B=a111A;try{const {scaffold:c}=this,d=this['projectConfig'],f=[{'name':B(0x164),'value':B(0x162)}];f['push']({'name':'REST\x20API','value':B(0x156)}),f[B(0x157)]({'name':B(0x195),'value':B(0x192)});const g={'message':'API\x20boundaries\x20to\x20create','name':B(0x16e),'choices':f},h=await Actions[B(0x171)]('API\x20Version?\x20[v1]')||'v1',i=await Actions[B(0x186)](g);i[B(0x158)]===0x0&&(Log[B(0x17d)]('No\x20API\x20boundaries\x20selected'),process[B(0x183)](0x1));let j='js';d[B(0x18a)]['js']==='tsx'&&(j='ts');const k=this[B(0x188)]['findAppDirectory'](),l=k+a111e['normalize']('/imports/api/apollo-gateway.'+j),m=this['fsi'][B(0x182)](l);!m&&d[B(0x18a)][B(0x178)]===B(0x18c)&&Log[B(0x17e)]('Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.');const n=b['resourceName'],o=kebabCase(n),p=b[B(0x153)]?'/'+b[B(0x153)]+'/':'/',q={'name':pascalCase(n),'apiVersion':h,'fileName':o,'camelCase':camelCase(n),'optsDir':p,'api':d[B(0x18a)]['api'],'graphql':d[B(0x18a)][B(0x178)],'test':d[B(0x18a)][B(0x17b)],'noRename':!![],'withMethods':i[B(0x16c)](B(0x162)),'withRest':i[B(0x16c)](B(0x156)),'withGql':i[B(0x16c)](B(0x192))};let r=![];q[B(0x192)]&&(r=m?![]:await Actions[B(0x161)](B(0x16f)));q[B(0x156)]&&(this[B(0x191)][B(0x175)](B(0x163),B(0x189)),await this[B(0x19c)][B(0x173)]([B(0x19f)],{'shouldInstall':!![]}),await this[B(0x152)][B(0x198)]({'srcPath':B(0x18d),'destPath':this['scaffold']['pathFromApp']({'pathParts':[B(0x177),B(0x155),h,p,o,o+'-'+h+B(0x160)+j]}),'context':q,'config':d}));q[B(0x162)]&&(await this[B(0x19c)][B(0x173)]([B(0x197),B(0x172)],{'shouldInstall':!![]}),await this[B(0x152)][B(0x198)]({'srcPath':'api/methods.js','destPath':this[B(0x152)][B(0x19e)]({'pathParts':['imports',B(0x155),h,p,o,o+'-'+h+B(0x15b)+j]}),'context':q,'config':d}));if(q[B(0x192)]){await this[B(0x19c)]['checkNpmPackage']([B(0x174),B(0x18e),B(0x17f),B(0x1a2),B(0x17c),B(0x178)],{'shouldInstall':!![]}),await this['scaffold'][B(0x198)]({'srcPath':B(0x170),'destPath':this['scaffold'][B(0x19e)]({'pathParts':[B(0x177),B(0x155),h,p,o,o+'-'+h+B(0x18b)+j]}),'context':q,'config':d});const t=this['scaffold'][B(0x19e)]({'pathParts':[B(0x177),'api',h,p,o,B(0x178),B(0x151)+j]});await this[B(0x152)][B(0x198)]({'srcPath':'api/typeDefs.js','destPath':t,'context':q,'config':d});const u=this[B(0x152)][B(0x19e)]({'pathParts':[B(0x177),'api',h,p,o,B(0x178),B(0x185)+j]});await this['scaffold'][B(0x198)]({'srcPath':B(0x176),'destPath':u,'context':q,'config':d});if(r){await this[B(0x19c)][B(0x18f)]([B(0x199),B(0x174)],{'shouldInstall':!![]}),await this[B(0x152)][B(0x198)]({'srcPath':B(0x168),'destPath':l,'context':q,'config':d}),await c['injectIntoFile']({'filePath':l,'content':B(0x165)+o+h+B(0x193)+h+'/'+o+B(0x190),'begin':'subgraphs:\x20[','end':']'});const v=this[B(0x152)][B(0x19e)]({'pathParts':[B(0x177),B(0x159),B(0x14f),B(0x166)+d[B(0x18a)]['js']]});await this['scaffold'][B(0x194)]({'filePath':v,'content':B(0x15e)+j+'\x27;'});}m&&await c[B(0x179)]({'filePath':l,'content':B(0x165)+o+h+B(0x193)+h+'/'+o+B(0x190),'begin':'subgraphs:\x20[','end':']'});}await this['scaffold'][B(0x198)]({'srcPath':B(0x15f),'destPath':this['scaffold'][B(0x19e)]({'pathParts':[B(0x177),B(0x159),'server',B(0x150)+o+B(0x196)+j]}),'context':q,'config':d,'force':!![]});const s=this['scaffold'][B(0x19e)]({'pathParts':[B(0x177),B(0x159),B(0x14f),B(0x166)+d[B(0x18a)]['js']]});await this['scaffold'][B(0x194)]({'filePath':s,'content':B(0x1a0)+o+'-api\x27;'});}catch(w){console[B(0x17d)](w),process[B(0x183)](0x1);}});function a111c(){const C=['78592xWZcmI','pathFromApp','maka:rest','import\x20\x27./register-','168539AIJDIh','graphql-tag','server','register-','typeDefs.','scaffold','dir','9FAUjOh','api','withRest','push','length','startup','16928pSTBvA','-rpc-methods.','(((.+)+)+)+$','maka\x20g:api\x20Todos','import\x20\x27/imports/api/apollo-gateway.','api/register-api.js','-rest-api.','confirm','withMethods','engines.api','RPC\x20(Methods)','{\x20name:\x20\x27','index.','42CpKtGI','api/apollo-gateway.js','127025vCKANq','create','1080296DfHpUo','includes','maka\x20{generate,\x20g}:{api}\x20<resource-name>','apiAnswers','Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)','api/graphql-api.js','ask','mdg:validated-method','checkMeteorPackage','express','setProjectConfig','api/resolvers.js','imports','graphql','injectIntoFile','search','test','express-rate-limit','error','info','@apollo/subgraph','apply','56905pGlOBp','isFile','exit','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','resolvers.','checkbox','571590WMHNdh','fsi','rest','engines','-graphql-api.','apollo','api/api.js','@apollo/server','checkNpmPackage','\x27)\x20},','cfg','withGql','\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/','injectAtEndOfFile','GraphQL','-api.','ddp-rate-limiter','template','@apollo/gateway','constructor','144LjPbxn','pkg'];a111c=function(){return C;};return a111c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a112c(){var i=['86ZCtCBV','182063rJpLZx','toString','1149660RaPqLe','6Nlmohl','1738oEUiSf','3430360VCJLaX','apply','search','2735696rIzZbe','1070775Oxaxxy','480476UPSjxX','10hVWFYj'];a112c=function(){return i;};return a112c();}(function(a,b){var f=a112d,c=a();while(!![]){try{var d=-parseInt(f(0xeb))/0x1*(-parseInt(f(0xe3))/0x2)+-parseInt(f(0xe8))/0x3+parseInt(f(0xe9))/0x4*(-parseInt(f(0xea))/0x5)+-parseInt(f(0xe2))/0x6*(parseInt(f(0xec))/0x7)+parseInt(f(0xe7))/0x8+parseInt(f(0xe1))/0x9+parseInt(f(0xe4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x4086c));var a112b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a112d;if(c){var e=c[g(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){var h=a112d;return a112a[h(0xe0)]()[h(0xe6)]('(((.+)+)+)+$')[h(0xe0)]()['constructor'](a112a)['search']('(((.+)+)+)+$');});a112a();import'./aws.js';function a112d(a,b){var c=a112c();return a112d=function(d,e){d=d-0xe0;var f=c[d];return f;},a112d(a,b);}import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113i=a113d;function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x9c;let f=c[d];return f;},a113d(a,b);}(function(a,b){const f=a113d,c=a();while(!![]){try{const d=parseInt(f(0xa6))/0x1*(parseInt(f(0xab))/0x2)+parseInt(f(0xa3))/0x3+-parseInt(f(0xa8))/0x4*(-parseInt(f(0xaa))/0x5)+-parseInt(f(0xa7))/0x6*(parseInt(f(0x9d))/0x7)+parseInt(f(0xa4))/0x8+-parseInt(f(0xa2))/0x9*(parseInt(f(0xa0))/0xa)+-parseInt(f(0x9f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x8fb75));function a113c(){const j=['15919420LSQhTs','10QKVXQo','maka\x20{generate,\x20g}:{aws}:<name>','7642584ucmrnr','2345691KbiunI','7994680TGbBkW','toString','387xZqjPN','74178orxKkC','3208vOrcZm','maka\x20g:aws','4300fKBWzV','5718ilJpNI','(((.+)+)+)+$','aws','apply','create','392kOEpMB','search'];a113c=function(){return j;};return a113c();}const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a113d;if(c){const e=c[g(0xae)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const h=a113d;return a113a[h(0xa5)]()['search'](h(0xac))[h(0xa5)]()['constructor'](a113a)[h(0x9e)]('(((.+)+)+)+$');});a113a();import{Generator}from'../../generator.js';const AWSGen=Generator[a113i(0x9c)]({'name':a113i(0xad),'usage':a113i(0xa1),'shortDesc':'Generate\x20AWS\x20templates','minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':[a113i(0xa9)],'experimental':!![]},async function(){});export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a114d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a114d,c=a();while(!![]){try{var d=parseInt(f(0xea))/0x1*(parseInt(f(0xe9))/0x2)+-parseInt(f(0xee))/0x3*(-parseInt(f(0xed))/0x4)+-parseInt(f(0xe2))/0x5*(parseInt(f(0xf0))/0x6)+-parseInt(f(0xe1))/0x7+parseInt(f(0xe5))/0x8+parseInt(f(0xe3))/0x9+-parseInt(f(0xef))/0xa*(parseInt(f(0xe4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xe2425));var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a['toString']()[h(0xe7)]('(((.+)+)+)+$')[h(0xec)]()[h(0xe6)](a114a)[h(0xe7)](h(0xeb));});function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0xe1;var f=c[d];return f;},a114d(a,b);}a114a();import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';function a114c(){var i=['2mPvqkE','1127177ekKnRm','(((.+)+)+)+$','toString','8HawAYP','508914MbGwMm','10970KhzEnk','3115614UwwecF','3575544dEIQwU','10tDMelV','222633srqXsw','5841yZNpQk','12539232QROoXg','constructor','search','apply'];a114c=function(){return i;};return a114c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x1b0;let f=c[d];return f;},a115d(a,b);}const a115i=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=-parseInt(f(0x1b9))/0x1+-parseInt(f(0x1b1))/0x2+parseInt(f(0x1bd))/0x3+parseInt(f(0x1b3))/0x4+parseInt(f(0x1ba))/0x5+-parseInt(f(0x1bb))/0x6*(parseInt(f(0x1b8))/0x7)+parseInt(f(0x1b5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x1ed02));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a115d;if(c){const e=c[g(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const h=a115d;return a115a[h(0x1b4)]()['search'](h(0x1b7))[h(0x1b4)]()[h(0x1b6)](a115a)['search'](h(0x1b7));});a115a();import{Generator}from'../../../generator.js';function a115c(){const j=['apply','164636pFLgAJ','maka\x20g:aws:cf','671420KVCfRF','toString','2137512cmHGFB','constructor','(((.+)+)+)+$','7XqDMtL','177981OkyiSI','181575EOyOgf','704574wCOulW','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','97737xJksXW','cloudformation'];a115c=function(){return j;};return a115c();}import a115e from'../aws.js';const CFGen=Generator['create']({'name':a115i(0x1be),'aliases':['cf'],'usage':a115i(0x1bc),'shortDesc':'AWS\x20Cloudformation\x20templates','resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':[a115i(0x1b2)],'experimental':!![]},async function(){},async function(){},a115e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116r=a116d;(function(a,b){const o=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
const a116r=a116d;function a116c(){const t=['2039748FPxeXv','findProjectDirectory','10QWjzoT','505496lOJcpl','apply','chooseSecurityGroup','template','cloudformation/create-ec2-instance.template','(((.+)+)+)+$','ami-055744c75048d8296','424oTbtnw','Please\x20choose\x20a\x20key\x20to\x20use:\x20','19788600bpjGTd','join','name','1895712tQKinY','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','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','search','Setting\x20the\x20key-pair\x20to:\x20','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','exit','toString','19852WBnBLa','cloudformation','error','constructor','3202008CpQDfG','create','appName','3496743EKIJSQ','create-ec2-instance.template','maka\x20g:aws:cf:cec2i','4AdYuhK'];a116c=function(){return t;};return a116c();}(function(a,b){const o=a116d,c=a();while(!![]){try{const d=parseInt(o(0x182))/0x1*(-parseInt(o(0x186))/0x2)+-parseInt(o(0x183))/0x3+-parseInt(o(0x192))/0x4+parseInt(o(0x185))/0x5*(parseInt(o(0x17c))/0x6)+parseInt(o(0x19b))/0x7*(parseInt(o(0x18d))/0x8)+-parseInt(o(0x17f))/0x9+parseInt(o(0x18f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x9d045));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a116d;if(c){const e=c[p(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const q=a116d;return a116a[q(0x19a)]()[q(0x196)](q(0x18b))[q(0x19a)]()[q(0x17b)](a116a)['search']('(((.+)+)+)+$');});a116a();import a116e from'path';import{Actions}from'../../../tools/actions/actions.class.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x17b;let f=c[d];return f;},a116d(a,b);}import{capitalCase}from'change-case';import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a116f from'./cloudformation.js';const CEC2Gen=Generator[a116r(0x17d)]({'name':'create-ec2-instance','aliases':['cec2i'],'usage':a116r(0x195),'resourceNameRequired':![],'shortDesc':a116r(0x198),'mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':[a116r(0x181)],'experimental':!![]},async function(){const s=a116r,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[s(0x184)](),g=a116e[s(0x190)](f,s(0x19c)),h=await a['ec2describeKeys'](),i=await Actions[s(0x193)](s(0x18e))||'-1';if(parseInt(i)<0x0){Log[s(0x19d)](s(0x194)),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m[s(0x191)],Log['success'](s(0x197)+j);break;}}const k=await a[s(0x188)](),l={'amiId':s(0x18c),'keyPair':j,'sgId':k,'instanceName':capitalCase(d[s(0x17e)])['replaceAll']('-','\x20')};await c[s(0x189)]({'srcPath':s(0x18a),'destPath':a116e[s(0x190)](g,s(0x180)),'framework':'aws','context':l,'config':d,'ignore':![]});}catch(n){Log[s(0x19d)](n),process[s(0x199)](0x1);}},async function(){},a116f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a117m=a117d;(function(a,b){const k=a117d,c=a();while(!![]){try{const d=parseInt(k(0x99))/0x1*(-parseInt(k(0xb1))/0x2)+parseInt(k(0xa3))/0x3+parseInt(k(0xa0))/0x4+parseInt(k(0xbb))/0x5+-parseInt(k(0xa5))/0x6+-parseInt(k(0x9c))/0x7*(parseInt(k(0xb5))/0x8)+parseInt(k(0x9f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x1d772));function a117c(){const o=['1482867dhnuyL','743476SBSOVZ','import\x20\x27./collections','maka\x20g:collection\x20todos','105756xugfCK','test','310086kHimUL','collection','\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','resourceName','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','where','none','appPathPrefix','.app-tests.','checkMeteorPackage','pathFromApp','search','275202dKcfms','collection/collection.js','engines','col','472GVyDfY','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','imports','startup','template','error','429330dYNPvF','projectConfig','collections','(((.+)+)+)+$','constructor','tsx','1CCBABF','toString','scaffold','19194WoBIsO','dir','injectAtEndOfFile'];a117c=function(){return o;};return a117c();}const a117b=(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;};}()),a117a=a117b(this,function(){const l=a117d;return a117a['toString']()['search'](l(0x96))[l(0x9a)]()[l(0x97)](a117a)[l(0xb0)]('(((.+)+)+)+$');});a117a();function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x95;let f=c[d];return f;},a117d(a,b);}import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a117m(0xa6),'aliases':[a117m(0xb4)],'usage':a117m(0xa9),'checkWhere':!![],'shortDesc':a117m(0xb6),'validOpts':[a117m(0x9d),a117m(0xaa)],'mustBeInMakaProject':!![],'description':a117m(0xa7),'examples':[a117m(0xa2)]},async function(a,b){const n=a117m;try{const c=this[n(0xbc)],d=b[n(0x9d)]?'/'+b[n(0x9d)]+'/':'/',f=kebabCase(b[n(0xa8)]),g={'name':pascalCase(b[n(0xa8)]),'collectionName':pascalCase(b[n(0xa8)]),'fileName':f,'where':b['where'],'test':c[n(0xb3)][n(0xa4)],'noRename':!![]};let h='js';c[n(0xb3)]['js']===n(0x98)&&(h='ts');await this['pkg'][n(0xae)](['mongo'],{'shouldInstall':!![]}),await this['scaffold'][n(0xb9)]({'srcPath':n(0xb2),'destPath':this[n(0x9b)][n(0xaf)]({'pathParts':[n(0xb7),n(0xb8),b[n(0xac)],n(0x95),d,f+'.'+h]}),'context':g,'config':c});c[n(0xb3)]['test']!==n(0xab)&&await this['scaffold'][n(0xb9)]({'srcPath':'collection/tests.js','destPath':this[n(0x9b)][n(0xaf)]({'pathParts':[n(0xb7),n(0xb8),b[n(0xac)],n(0x95),d,f+n(0xad)+h]}),'context':g,'config':c});const i=this['scaffold'][n(0xaf)]({'pathParts':['imports',n(0xb8),b['appPathPrefix'],'index.'+c[n(0xb3)]['js']]});await this[n(0x9b)][n(0x9e)]({'filePath':i,'content':n(0xa1)+d+f+'\x27;'});}catch(j){Log[n(0xba)](j);}});
|