@maka/maka-cli 5.1.19 → 5.1.20
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
|
-
|
|
1
|
+
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=-parseInt(w(0x144))/0x1+-parseInt(w(0x11f))/0x2*(parseInt(w(0x139))/0x3)+parseInt(w(0x128))/0x4*(-parseInt(w(0x13a))/0x5)+-parseInt(w(0x148))/0x6+parseInt(w(0x121))/0x7*(parseInt(w(0x14a))/0x8)+parseInt(w(0x125))/0x9*(parseInt(w(0x13c))/0xa)+-parseInt(w(0x13f))/0xb*(-parseInt(w(0x11d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xeb31c));function a97c(){const B=['maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','generate-csr','\x20--email\x20','domains','appName','join','Remote\x20host\x20connection\x20successful','cfg','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','readFileSync','84FFOsHS','parse','4586qdkxMm','(((.+)+)+)+$','42OYIDZs','notice','uname\x20-a','constructor','170505oNITvw','letsencrypt','ssl','8NjVLMG','Create\x20and\x20manage\x20your\x20SSL\x20operations.','.key','fsi','/ssh.json','email','mkKeysDir','env','existsSync','writeFileSync','[?]\x20Domains\x20to\x20register:\x20','success','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','ask','getMakaProjectConfig','sudo\x20snap\x20install\x20--classic\x20certbot','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','2307VLfWwI','2945055nbljdB','search','380AYRqaC','error','stringify','8076101zArubs','generate-ssc','create','ssh','exit','510861dCAOsN','apply','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','withSpinner','11083434wpLhXn','assign','538064HScjmD','.csr','letsencrypt.json','toString','maka\x20ssl\x20--env\x20dev\x20generate-csr','genSSC','Please\x20provide\x20a\x20command.','domainNames','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.'];a97c=function(){return B;};return a97c();}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0x145)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a[y(0x10d)]()[y(0x13b)](y(0x120))[y(0x10d)]()[y(0x124)](a97a)[y(0x13b)](y(0x120));});a97a();function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x10b;let f=c[d];return f;},a97d(a,b);}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';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a97z(0x141)]({'name':a97z(0x127),'usage':'maka\x20ssl\x20[command]','validOpts':[a97z(0x116),a97z(0x12d)],'requiredOpts':[a97z(0x12f)],'shortDesc':a97z(0x129),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0x10e),a97z(0x113),a97z(0x134)]},async function(a,b){const A=a97z,c=this[A(0x11a)][A(0x136)](),d=this[A(0x11a)]['getEnvFromShorthand'](b[A(0x12f)]),f=this['cfg']['getAppConfigPath'](d),g=this[A(0x12b)][A(0x12e)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x114))SSL['genCSR']({'keyName':c[A(0x117)]+'.key','csrName':c[A(0x117)]+A(0x10b),'cwd':g});else{if(h===A(0x140)){if(!a97e[A(0x130)](a97f[A(0x118)](g,c[A(0x117)]+A(0x12a))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a97f[A(0x118)](g,c[A(0x117)]+'.key');if(!a97e[A(0x130)](a97f[A(0x118)](g,c[A(0x117)]+A(0x10b))))throw A(0x146)+a97f[A(0x118)](g,c[A(0x117)]+A(0x10b));SSL[A(0x10f)]({'keyName':c[A(0x117)]+A(0x12a),'crtName':c[A(0x117)]+'.crt','cwd':g}),Log[A(0x122)]('New\x20CSR\x20written\x20to\x20'+g);}else{if(h===A(0x126)){let i=b[A(0x116)],j=b[A(0x12d)];try{const q=a97e[A(0x11c)](a97f[A(0x118)](f,A(0x10c)))[A(0x10d)](),r=JSON[A(0x11e)](q);i=b[A(0x116)]?b[A(0x116)]:r[A(0x111)],j=b[A(0x12d)]?b['email']:r['emailUpdate'],(!b[A(0x12d)]||!b[A(0x116)])&&Log[A(0x122)]('Using\x20saved\x20letsencrypt\x20config');}catch(s){}const k=JSON[A(0x11e)](a97e['readFileSync'](f+A(0x12c))[A(0x10d)]());Object[A(0x149)](k,{'env':f}),Log[A(0x122)]('Checking\x20remote\x20host\x20availability');try{const t=SSH['ping'](A(0x123),k);if(!t)throw A(0x112);if(t)Log['success'](A(0x119));}catch(u){Log[A(0x13d)](u);return;}const l=Log[A(0x147)]();l['start']('Verifying\x20Letsencrypt\x20configuration'),SSH['ssh'](A(0x11b),{...k}),SSH[A(0x142)](A(0x137),{...k}),SSH[A(0x142)](A(0x138),{...k}),l[A(0x133)]();const m=i?i:await Actions[A(0x135)](A(0x132)),n=j?j:await Actions['ask']('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[A(0x142)]('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+m+A(0x115)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x13e)](o,null,0x2);a97e[A(0x131)](a97f[A(0x118)](f,A(0x10c)),p);}else throw A(0x110);}}}catch(v){console[A(0x13d)](v),process[A(0x143)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0xb1))/0x1+parseInt(f(0xb5))/0x2+parseInt(f(0xbb))/0x3+-parseInt(f(0xb4))/0x4+parseInt(f(0xb7))/0x5+parseInt(f(0xb6))/0x6+-parseInt(f(0xba))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x5ea84));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0xb9)]()[h(0xb8)]('(((.+)+)+)+$')[h(0xb9)]()['constructor'](a98a)['search'](h(0xb3));});a98a();import'./test.command.js';import'./mocha.sub.cmd.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0xb1;var f=c[d];return f;},a98d(a,b);}function a98c(){var i=['(((.+)+)+)+$','2755780HbQfwB','1369942UFYyDX','1964010sGkICs','1739035VdKnpa','search','toString','3642674nQEdFh','129099ymOanP','193897rDtIWR','apply'];a98c=function(){return i;};return a98c();}import'./jest.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99r=a99d;(function(a,b){const o=a99d,c=a();while(!![]){try{const d=parseInt(o(0x196))/0x1*(parseInt(o(0x15b))/0x2)+parseInt(o(0x16f))/0x3*(-parseInt(o(0x17e))/0x4)+-parseInt(o(0x179))/0x5*(parseInt(o(0x154))/0x6)+-parseInt(o(0x175))/0x7*(-parseInt(o(0x15e))/0x8)+parseInt(o(0x15c))/0x9+parseInt(o(0x180))/0xa+-parseInt(o(0x189))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x3363b));function a99c(){const t=['engines','24enEIWt','babel.config.js','jest.setup.js','fsi','eslint/babel.config.js','Specify\x20a\x20custom\x20Jest\x20config\x20file','maka\x20test:jest\x20<file|directory>\x20[--options]','cfg','jest.config.js','Clear\x20Jest\x20cache\x20before\x20running\x20tests','findAppDirectory','**/?(*.)+(app-tests).[tj]s?(x)','(((.+)+)+)+$','updateSnapshot','onlyFailures','test/jest/jest.config.js','success','3uCZYwA','Tests\x20completed\x20successfully.','@testing-library/react','/node_modules','Run\x20tests\x20sequentially\x20in\x20the\x20same\x20process','@apollo/react-testing','200389LMpyPi','runCLI','Error\x20running\x20Jest:\x20','babel-jest','296045PYwcKL','/node_modules/','message','checkNpmPackage','watch','494196ThTsVh','isFile','3871990jkPiGd','findProjectDirectory','service','^.+\x5c.module\x5c.(css|sass|scss)$','Run\x20a\x20Jest\x20test\x20suite\x20with\x20custom\x20options','test/jest/jest.setup.js','config','<rootDir>/private','identity-obj-proxy','4309910mROZiq','apollo','<rootDir>/$1','<rootDir>/packages','runInBand','search','join','Run\x20Jest\x20in\x20watch\x20mode','scaffold','apply','Runs\x20Jest\x20tests\x20in\x20the\x20specified\x20file\x20or\x20directory\x20with\x20optional\x20Jest\x20configurations,\x20including\x20coverage\x20reports.','@babel/plugin-syntax-jsx','exit','1XNDwKs','jest','pkg','constructor','getMakaProjectConfig','error','log','12EvSLOm','create','graphql','coverage','clearCache','<rootDir>/public','template','14218qJPnKS','3276711gxzKLr'];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(0x192)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const q=a99d;return a99a['toString']()['search'](q(0x16a))['toString']()[q(0x150)](a99a)[q(0x18e)](q(0x16a));});a99a();import{Command}from'../../command.js';import a99e from'./test.command.js';import a99f from'jest';import a99g from'path';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x150;let f=c[d];return f;},a99d(a,b);}Command[a99r(0x155)]({'name':a99r(0x197),'usage':a99r(0x164),'shortDesc':a99r(0x184),'description':a99r(0x193),'mustBeInMakaProject':!![],'validOpts':[{'name':a99r(0x17d),'boolFlag':!![],'description':a99r(0x190)},{'name':a99r(0x157),'boolFlag':!![],'description':'Generate\x20test\x20coverage\x20report'},{'name':a99r(0x16b),'boolFlag':!![],'description':'Update\x20Jest\x20snapshots'},{'name':a99r(0x18d),'boolFlag':!![],'description':a99r(0x173)},{'name':a99r(0x16c),'boolFlag':!![],'description':'Run\x20only\x20failed\x20tests\x20from\x20the\x20last\x20run'},{'name':a99r(0x186),'description':a99r(0x163),'regex':/^.+\.js$/},{'name':a99r(0x158),'boolFlag':!![],'description':a99r(0x167)}]},async function(a,b){const s=a99r,c=this['fsi'][s(0x168)](),d=this[s(0x161)][s(0x181)]();await this[s(0x198)][s(0x17c)]([s(0x171),s(0x194),'jest-css-modules-transform',s(0x188),'jest-environment-jsdom'],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});const e=this[s(0x165)][s(0x151)]();e[s(0x15d)][s(0x156)]===s(0x18a)&&await this['pkg'][s(0x17c)]([s(0x174)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});if(b[s(0x158)]){await a99f[s(0x176)]({'_':[],'$0':s(0x197),'clearCache':!![]},[c]);return;}const f=a99g[s(0x18f)](d,s(0x186),s(0x160)),g=this[s(0x161)][s(0x17f)](f);!g&&await this[s(0x191)][s(0x15a)]({'srcPath':s(0x185),'destPath':f,'framework':s(0x182),'context':{'noRename':!![]}});const h=a99g[s(0x18f)](c,s(0x166)),i=this[s(0x161)][s(0x17f)](h);!i&&await this[s(0x191)][s(0x15a)]({'srcPath':s(0x16d),'destPath':h,'framework':s(0x182),'context':{'noRename':!![]}});const j=a99g[s(0x18f)](c,s(0x15f)),k=this['fsi'][s(0x17f)](j);!k&&await this[s(0x191)][s(0x15a)]({'srcPath':s(0x162),'destPath':j,'framework':s(0x182),'context':{'noRename':!![]}});const l={'_':a,'$0':s(0x197),'testEnvironment':'jsdom','watch':b[s(0x17d)]||![],'coverage':b[s(0x157)]||![],'updateSnapshot':b[s(0x16b)]||![],'runInBand':b[s(0x18d)]||![],'onlyFailures':b[s(0x16c)]||![],'config':b['config']||undefined,'rootDir':c,'coverageDirectory':a99g[s(0x18f)](d,'coverage'),'testPathIgnorePatterns':[s(0x172),s(0x18c),s(0x159),s(0x187)],'testMatch':[s(0x169)],'transform':{'^.+\x5c.(js|jsx|ts|tsx)$':s(0x178),'.+\x5c.(css|styl|less|sass|scss)$':'jest-css-modules-transform'},'transformIgnorePatterns':[s(0x17a),s(0x183)],'setupFiles':[f],'moduleNameMapper':{'\x5c.(css|less|scss)$':s(0x188),'^/(.*)$':s(0x18b)}};try{const {results:m}=await a99f[s(0x176)](l,[c]);m[s(0x16e)]?(console[s(0x153)](s(0x170)),b[s(0x157)]&&console[s(0x153)]('Coverage\x20report\x20generated\x20in\x20the\x20\x22coverage\x22\x20directory.')):(console[s(0x152)]('Some\x20tests\x20failed.'),process['exit'](0x1));}catch(n){console[s(0x152)](s(0x177)+n[s(0x17b)]),process[s(0x195)](0x1);}},a99e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100w=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=-parseInt(t(0x17d))/0x1*(-parseInt(t(0x181))/0x2)+parseInt(t(0x17e))/0x3+-parseInt(t(0x17f))/0x4+-parseInt(t(0x185))/0x5+parseInt(t(0x18b))/0x6*(parseInt(t(0x180))/0x7)+parseInt(t(0x164))/0x8+-parseInt(t(0x197))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x680ce));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(0x18a)]()['search'](u(0x15a))[u(0x18a)]()[u(0x187)](a100a)['search'](u(0x15a));});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x152;let f=c[d];return f;},a100d(a,b);}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';function a100c(){const z=['--env','test-packages','none','createFile','config','port','utf8','This\x20project\x20does\x20not\x20have\x20a\x20mocha\x20test\x20driver','engines','join','10905228gBtDrN','--full-app','maka\x20install\x20meteor\x20--force','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','Node\x20Env\x20Config:\x20','Meteor\x20Settings:\x20','create','once','packages','getAppConfigPath','settings.json','--packages','processAndRunGenerator','jasmine','@testing-library/dom\x20meteor-node-stubs\x20chai','driver-package','isFile','forEach','(((.+)+)+)+$','filter','isMeteorInstalled','slice','Meteor\x20is\x20installed.','inherit','mpi','findProjectDirectory','fsi','config.json','5555192hPIJmF','info','env','.maka','unit','readFileSync','concat','sanjo:jasmine','mocha','splice','--settings','cwd','local','cfg','testAppPath','error','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','warn','openSync','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','--driver','invokeMeteorCommand','driver','test','maka\x20test:mocha','5etIlsc','878532hPsicC','191604JVBohd','324177CkXrLo','190758RmDOSI','settings','process.env','argv','512660dUmdBH','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','constructor','relative','parse','toString','42vjfzDI','notice'];a100c=function(){return z;};return a100c();}const syncSource=function(a){const v=a100d;a100e[v(0x176)](a,'r'),a100g[v(0x191)]({'path':a});};Command[a100w(0x19d)]({'name':a100w(0x16c),'mustBeInMakaProject':!![],'validOpts':[a100w(0x19e),a100w(0x19f),'driver','driverPackage','unit',a100w(0x166),'rawLogs',a100w(0x192),'inspect',a100w(0x172)],'usage':a100w(0x17c),'aliases':['m'],'shortDesc':a100w(0x19a),'examples':[]},async function(a,b){const x=a100w;try{this[x(0x160)][x(0x15c)]()?Log[x(0x18c)](x(0x15e)):(Log[x(0x175)]('Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...'),execSync(x(0x199),{'stdio':x(0x15f)}));this['pkg']['checkNpmPackage'](x(0x156),{'shouldInstall':!![]});const c=b[x(0x166)]?this[x(0x171)]['getEnvFromShorthand'](b['env']):x(0x170);(!b[x(0x168)]||!!b[x(0x19e)])&&(a=a['concat']([x(0x198)]));b[x(0x168)]&&delete b[x(0x168)];let d=b[x(0x157)]||b[x(0x17a)]||'none';if(d==='none'){const l=JSON[x(0x189)](a100e[x(0x169)](a100f[x(0x196)](this[x(0x162)]['findProjectDirectory'](),x(0x167),x(0x163)),x(0x193)));if(l[x(0x195)][x(0x17b)]===x(0x155))d=x(0x16b);else l[x(0x195)][x(0x17b)]===x(0x16c)&&(d='meteortesting:mocha');}if(d===x(0x18f))throw x(0x194);(!b['driver-package']||!b['driver'])&&(a=a[x(0x16a)](['--driver-package',d]));const f=this[x(0x171)]['checkConfigExists'](x(0x170));if(!f){Log[x(0x175)](x(0x174));const m=this[x(0x162)][x(0x161)]();await a100i[x(0x154)](x(0x191),[x(0x170)],{'cwd':m,'root':!![]});}const g=this[x(0x171)][x(0x1a0)](c),h=a100f[x(0x196)](g,x(0x183));let i=a100f[x(0x196)](g,x(0x152));b[x(0x182)]?i=b[x(0x182)]:i=a100f[x(0x196)](g,'settings.json');if(this['fsi'][x(0x158)](h)){const n=a100f['relative'](process[x(0x16f)](),h);Log[x(0x18c)](x(0x19b)+n),syncSource(h);}else{const o=a100f[x(0x188)](process[x(0x16f)](),h);Log[x(0x165)](x(0x186)+o),this[x(0x162)][x(0x190)]({'filePath':h,'data':''});}if(this[x(0x162)][x(0x158)](i)){const p=a100f['relative'](process[x(0x16f)](),i);Log[x(0x18c)](x(0x19c)+p),a=a[x(0x16a)]([x(0x16e),i]);}else{const q=a100f[x(0x188)](process[x(0x16f)](),i);Log[x(0x175)](x(0x177)+q);}const j=process[x(0x184)][x(0x15d)](0x2)[x(0x15b)](r=>r!==x(0x18d))['filter'](r=>r!==x(0x17b))['filter'](r=>r!==a[0x0]);j[x(0x159)]((r,s)=>{const y=x;(r===y(0x18d)||r===y(0x178))&&j[y(0x16d)](s,0x2),r===y(0x153)&&j[y(0x16d)](s,0x1);});const k=b[x(0x19f)]?x(0x18e):x(0x17b);await this[x(0x160)][x(0x179)](k,a['concat'](j));}catch(r){console[x(0x173)](r),process['exit'](0x0);}},a100h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x9c))/0x1+-parseInt(f(0xad))/0x2*(-parseInt(f(0xa0))/0x3)+-parseInt(f(0x9a))/0x4*(-parseInt(f(0xac))/0x5)+parseInt(f(0xa6))/0x6*(parseInt(f(0xa4))/0x7)+-parseInt(f(0xa1))/0x8*(parseInt(f(0xa8))/0x9)+parseInt(f(0xae))/0xa*(-parseInt(f(0xaa))/0xb)+-parseInt(f(0x9d))/0xc*(parseInt(f(0x9f))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xdd98e));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0xa2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a[h(0xa7)]()['search'](h(0xab))[h(0xa7)]()[h(0xa5)](a101a)['search']('(((.+)+)+)+$');});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x9a;let f=c[d];return f;},a101d(a,b);}function a101c(){const j=['14214lAkOeg','toString','3350826RogtTw','\x0a\x20\x20\x20\x20Run\x20a\x20meteor\x20test\x20driver,\x20or\x20utilize\x20a\x20headless\x20test\x20suite.\x0a\x20\x20','198517qRPPqG','(((.+)+)+)+$','265yxcAmc','4YHHtVw','690ValDzu','36748Ivqwck','test','1203063lkrIKA','120CuQRUa','maka\x20test:<sub-command>','2618239icilEX','2280399YBUzLp','8XaxEDG','apply','create','3927fuQYyV','constructor'];a101c=function(){return j;};return a101c();}a101a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const TestCommand=Command[a101i(0xa3)]({'name':a101i(0x9b),'usage':a101i(0x9e),'shortDesc':'Run\x20a\x20Meteor\x20Test\x20Driver','description':a101i(0xa9),'validOpts':[]},async function(){throw UsageError;});export default TestCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a102h=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a102h=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0x16e))/0x1+parseInt(f(0x16b))/0x2+parseInt(f(0x17a))/0x3*(parseInt(f(0x173))/0x4)+-parseInt(f(0x16a))/0x5*(-parseInt(f(0x17c))/0x6)+-parseInt(f(0x16f))/0x7*(parseInt(f(0x176))/0x8)+parseInt(f(0x177))/0x9*(parseInt(f(0x175))/0xa)+parseInt(f(0x178))/0xb*(-parseInt(f(0x174))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x6afe5));var a102b=(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;};}()),a102a=a102b(this,function(){var g=a102d;return a102a[g(0x179)]()[g(0x172)]('(((.+)+)+)+$')['toString']()[g(0x16d)](a102a)['search'](g(0x171));});a102a();function a102c(){var j=['6Bfevtf','undo','30786jlLuly','135IvSAZV','285930vxtWUy','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','constructor','419764omQNRN','539HZOJMX','create','(((.+)+)+)+$','search','1277156wabtCX','1752pJVobR','40DdeCWE','6328VlNhWB','473049vFApPB','15928MDCwtn','toString'];a102c=function(){return j;};return a102c();}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x16a;var f=c[d];return f;},a102d(a,b);}import{Command}from'../command.js';import a102e from'../generators/maka.gen.js';Command[a102h(0x170)]({'name':a102h(0x17b),'aliases':['u'],'validOpts':[],'shortDesc':a102h(0x16c),'experimental':!![]},async function(){var i=a102h;a102e[i(0x17b)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a103m=a103d;(function(a,b){const j=a103d,c=a();while(!![]){try{const d=parseInt(j(0xfe))/0x1+parseInt(j(0xf8))/0x2+parseInt(j(0xea))/0x3+-parseInt(j(0xe8))/0x4+parseInt(j(0xe6))/0x5+parseInt(j(0xde))/0x6*(parseInt(j(0x109))/0x7)+parseInt(j(0x108))/0x8*(-parseInt(j(0xf9))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x6440b));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a103d;if(c){const e=c[k(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const l=a103d;return a103a[l(0x105)]()[l(0x104)](l(0xfb))[l(0x105)]()[l(0xf1)](a103a)[l(0x104)](l(0xfb));});a103a();import a103e from'fs';function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xdc;let f=c[d];return f;},a103d(a,b);}import a103f from'os';import a103g from'path';import{Log}from'../tools/log/log.class.js';function a103c(){const o=['1974396bcSHUD','confirm','length','meteor.bat','maka\x20uninstall\x20[version]','error','info','constructor','remove','No\x20Meteor\x20versions\x20installed.','rmSync','Removing\x20Meteor\x20','meteor','Meteor\x20','291388SAFkgY','18yFsIlW','create','(((.+)+)+)+$','filter','notice','507584yNJpqj','withSpinner','platform','Select\x20a\x20Meteor\x20version\x20to\x20uninstall:','version','join','search','toString','rmdir','uninstall','2574552Nkupfw','7CvbmOu','Uninstall\x20a\x20specific\x20Meteor\x20version','You\x20have\x20multiple\x20Meteor\x20installations','Meteor\x20version\x20','success','releases','Aborted.','654618swioyY','\x20is\x20not\x20installed.','\x20uninstalled.','select','apply','exit','existsSync','.meteor','269755HDqJUG','Are\x20you\x20sure\x20you\x20want\x20to\x20uninstall\x20Meteor\x20','1680764vZvhMR','map'];a103c=function(){return o;};return a103c();}import{Command}from'../command.js';import{Actions}from'../tools/actions/actions.class.js';import{SpawnAsync}from'../tools/spawn-async/spawn-async.class.js';Command[a103m(0xfa)]({'name':a103m(0x107),'aliases':['rm',a103m(0xf2)],'shortDesc':a103m(0x10a),'usage':a103m(0xee),'validOpts':[],'requiredOpts':[],'minArgLength':0x0},async function(a){const n=a103m;try{const b=process[n(0x100)]==='win32',c=b?n(0xed):n(0xf6),d=a103g[n(0x103)](a103f['homedir'](),'.meteor',n(0xdc));!a103e[n(0xe4)](d)&&(Log[n(0xef)](n(0xf3)),process[n(0xe3)](0x1));const e=a103e['readdirSync'](d)[n(0xfc)](i=>a103e[n(0xe4)](a103g[n(0x103)](d,i,n(0xe5),c)));e['length']===0x0&&(Log[n(0xef)](n(0xf3)),process[n(0xe3)](0x1));let f=a[0x0];!f?e[n(0xec)]===0x1?f=e[0x0][n(0x105)]():(Log[n(0xfd)](n(0x10b)),f=await Actions[n(0xe1)]({'message':n(0x101),'name':n(0x102),'choices':e[n(0xe9)](i=>({'value':i,'name':i}))})):f=f['toString']();const g=a103g[n(0x103)](d,f);!a103e['existsSync'](g)&&(Log[n(0xef)](n(0x10c)+f+n(0xdf)),process[n(0xe3)](0x1));const h=await Actions[n(0xeb)](n(0xe7)+f+'?',![]);!h&&(Log[n(0xf0)](n(0xdd)),process[n(0xe3)](0x0)),a103e[n(0xf4)](g,{'recursive':!![],'force':!![]}),a103e[n(0xe4)](g)&&b&&await SpawnAsync[n(0xff)](n(0x106),['/s','/q',g],{'message':n(0xf5)+f+'\x20(Windows\x20fallback)'}),Log[n(0x10d)](n(0xf7)+f+n(0xe0));}catch(i){Log['error'](i),process[n(0xe3)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=-parseInt(f(0x79))/0x1*(-parseInt(f(0x80))/0x2)+parseInt(f(0x7c))/0x3+parseInt(f(0x7e))/0x4*(parseInt(f(0x86))/0x5)+-parseInt(f(0x82))/0x6*(parseInt(f(0x85))/0x7)+-parseInt(f(0x87))/0x8+parseInt(f(0x7d))/0x9*(-parseInt(f(0x7f))/0xa)+-parseInt(f(0x81))/0xb*(-parseInt(f(0x7a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x8eaa9));var a104b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a104d;if(c){var e=c[g(0x84)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){var h=a104d;return a104a[h(0x7b)]()[h(0x78)](h(0x88))[h(0x7b)]()[h(0x83)](a104a)[h(0x78)](h(0x88));});a104a();import'./version.js';function a104c(){var i=['7626200rOFDiR','(((.+)+)+)+$','search','672679GABgYU','48jyzDDU','toString','2592357LIuaGE','9SzvFWP','8BLcnmb','7154390xZymmI','2UJbSsr','1790437QHxYGo','6vtMoTA','constructor','apply','1111495iOkBXP','559985mpWhoY'];a104c=function(){return i;};return a104c();}import'./use.sub.cmd.js';function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x78;var f=c[d];return f;},a104d(a,b);}import'./list.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105q=a105d;(function(a,b){const n=a105d,c=a();while(!![]){try{const d
|
|
1
|
+
function a105c(){const t=['12LDkvWv','readdirSync','forEach','(((.+)+)+)+$','info','constructor','exit','892752uvrizP','toString','70605704uQfkqH','homedir','error','apply','existsSync','realpathSync','list','18FKIKSw','1661FIWKZn','meteor','4QiBQXH','.meteor','bin','1ePDXdO','2167974WrVKgW','join','search','log','create','25rBNUSo','No\x20Meteor\x20versions\x20installed.','length','108610BaBpQp','895922DCMRso','releases','\x20(active)','1122861HtsCcc','312130aFxNba'];a105c=function(){return t;};return a105c();}function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0xe6;let f=c[d];return f;},a105d(a,b);}const a105q=a105d;(function(a,b){const n=a105d,c=a();while(!![]){try{const d=parseInt(n(0x103))/0x1*(-parseInt(n(0xe8))/0x2)+-parseInt(n(0xeb))/0x3*(parseInt(n(0x100))/0x4)+parseInt(n(0x109))/0x5*(-parseInt(n(0x104))/0x6)+parseInt(n(0xec))/0x7+parseInt(n(0xf4))/0x8*(-parseInt(n(0xfd))/0x9)+parseInt(n(0xe7))/0xa*(-parseInt(n(0xfe))/0xb)+parseInt(n(0xed))/0xc*(parseInt(n(0xf6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xf029a));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a105d;if(c){const e=c[o(0xf9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const p=a105d;return a105a[p(0xf5)]()[p(0x106)](p(0xf0))[p(0xf5)]()[p(0xf2)](a105a)[p(0x106)](p(0xf0));});a105a();import a105e from'fs';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[a105q(0x108)]({'name':a105q(0xfc),'aliases':['ls'],'shortDesc':'List\x20installed\x20Meteor\x20versions','usage':'maka\x20version:list','validOpts':[],'requiredOpts':[]},async function(){const r=a105q;try{const a=process['platform']==='win32',b=a?'meteor.bat':r(0xff),c=a105g[r(0x105)](a105f['homedir'](),r(0x101),r(0xe9)),d=a105g[r(0x105)](a105f[r(0xf7)](),r(0x101),r(0x102),b);let f=null;if(a105e[r(0xfa)](d))try{const h=a105e[r(0xfb)](d);console[r(0x107)](h);const i=h['match'](/releases[\\/](.+?)[\\/]\.meteor[\\/]meteor(\.bat)?$/);if(i)f=i[0x1];}catch(j){f=null;}if(!a105e[r(0xfa)](c)){Log[r(0xf1)]('No\x20Meteor\x20versions\x20installed.');return;}const g=a105e[r(0xee)](c)['filter'](k=>a105e[r(0xfa)](a105g['join'](c,k,r(0x101),b)));if(g[r(0xe6)]===0x0){Log[r(0xf1)](r(0x10a));return;}Log['info']('Installed\x20Meteor\x20versions:\x0a'),g[r(0xef)](k=>{const s=r,l=k===f?'*':'\x20',m=k===f?k+s(0xea):k;console[s(0x107)](l+'\x20'+m);}),console['log']();}catch(k){Log[r(0xf8)](k),process[r(0xf3)](0x1);}},a105h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106m=a106d;(function(a,b){const k=a106d,c=a();while(!![]){try{const d=parseInt(k(0x1ce))/0x1*(-parseInt(k(0x1d9))/0x2)+parseInt(k(0x1b9))/0x3+-parseInt(k(0x1b8))/0x4*(parseInt(k(0x1dc))/0x5)+-parseInt(k(0x1c6))/0x6*(parseInt(k(0x1dd))/0x7)+-parseInt(k(0x1cb))/0x8+parseInt(k(0x1d3))/0x9*(-parseInt(k(0x1ba))/0xa)+parseInt(k(0x1d2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xb439c));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const l=a106d;return a106a['toString']()[l(0x1bd)](l(0x1b4))[l(0x1b6)]()[l(0x1d7)](a106a)['search'](l(0x1b4));});a106a();import a106e from'fs';function a106c(){const o=['331173anocOP','version','filter','meteor.bat','constructor','You\x20have\x20multiple\x20Meteor\x20installations','4VXvFix','meteor','Select\x20a\x20Meteor\x20version\x20to\x20use:','25YUejnt','1926806JVxRoW','success','existsSync','notice','writeFileSync','No\x20Meteor\x20versions\x20installed.','(((.+)+)+)+$','VERSION','toString','select','611716Yzpfmv','4220310SfBpqM','250jtHWaL','join','exit','search','Meteor\x20version\x20','.meteor','readdirSync','win32','map','processAndRunCommand','maka\x20version:use\x20[version]','releases','6DtYRzb','platform','length','linkVersionAsCurrent','homedir','6779456xnUWXp','error','install','477557EltCkr','use','Set\x20a\x20current\x20Meteor\x20version','\x20is\x20not\x20installed.','34031888VmBbMg'];a106c=function(){return o;};return a106c();}import a106f from'os';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';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x1b1;let f=c[d];return f;},a106d(a,b);}Command['create']({'name':a106m(0x1cf),'aliases':['u'],'shortDesc':a106m(0x1d0),'usage':a106m(0x1c4),'validOpts':[],'requiredOpts':[],'minArgLength':0x0},async function(a){const n=a106m;try{const {mpi:b}=this,c=process[n(0x1c7)]===n(0x1c1),d=c?n(0x1d6):'meteor',e=a106g[n(0x1bb)](a106f['homedir'](),n(0x1bf),n(0x1c5));!a106e['existsSync'](e)&&(Log[n(0x1cc)](n(0x1b3)),process['exit'](0x1));const f=a106e[n(0x1c0)](e)[n(0x1d5)](i=>a106e[n(0x1df)](a106g[n(0x1bb)](e,i,n(0x1bf),d)));f[n(0x1c8)]===0x0&&(Log[n(0x1cc)]('No\x20Meteor\x20versions\x20installed.'),process[n(0x1bc)](0x1));let g=a[0x0];!g?f[n(0x1c8)]===0x1?g=f[0x0][n(0x1b6)]():(Log[n(0x1b1)](n(0x1d8)),g=await Actions[n(0x1b7)]({'message':n(0x1db),'name':n(0x1d4),'choices':f[n(0x1c2)](i=>({'value':i,'name':i}))})):g=g[n(0x1b6)]();const h=a106g[n(0x1bb)](e,g,n(0x1bf),d);if(!a106e[n(0x1df)](h)){Log[n(0x1cc)](n(0x1be)+g+n(0x1d1));const i=await Actions['confirm']('Install\x20version\x20'+g+'?',!![]);i&&await a106h[n(0x1c3)](n(0x1cd),[n(0x1da)],{'release':g});}b[n(0x1c9)](g),a106e[n(0x1b2)](a106g[n(0x1bb)](a106f[n(0x1ca)](),'.meteor',n(0x1b5)),g,'utf8'),Log[n(0x1de)]('Now\x20using\x20Meteor\x20'+g);}catch(j){Log[n(0x1cc)](j),process[n(0x1bc)](0x1);}},a106i);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a107k=a107d;(function(a,b){const h=a107d,c=a();while(!![]){try{const d=-parseInt(h(0x11a))/0x1*(parseInt(h(0x128))/0x2)+-parseInt(h(0x11f))/0x3*(-parseInt(h(0x106))/0x4)+parseInt(h(0x115))/0x5*(-parseInt(h(0x109))/0x6)+-parseInt(h(0x123))/0x7*(parseInt(h(0x111))/0x8)+parseInt(h(0x116))/0x9+parseInt(h(0x129))/0xa+parseInt(h(0x10e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xcbb49));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a107d;if(c){const e=c[i(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const j=a107d;return a107a[j(0x118)]()[j(0x119)](j(0x10b))[j(0x118)]()[j(0x10f)](a107a)[j(0x119)]('(((.+)+)+)+$');});a107a();import a107e from'semver';function a107c(){const m=['Maka\x20','create','maka\x20v','102IsbfDB','5627130XIdzEG','warn','exit','version','\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','verbose','556YnkNnO','----------------------System----------------------------','fsi','918HmtBwu','----------------------Project----------------------------','(((.+)+)+)+$','apply','5.1.20','7044829HjBfWV','constructor','Project\x27s\x20Meteor\x20Version\x20','1168qdcYWr','\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','notice','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','53635rVrRvb','10908603qdSTrO','bright','toString','search','10281LJwAkg','error','valid','System\x27s\x20Meteor\x20Version\x20','getGlobalMeteorVersion','14646BgMwyW','replace','maka\x20version','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','4501ZWTnyf','mpi'];a107c=function(){return m;};return a107c();}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const pjson={'version':a107k(0x10d)},Version=Command[a107k(0x126)]({'name':a107k(0x12c),'aliases':['v'],'usage':'maka\x20version','maxArgLength':0x1,'validOpts':[a107k(0x105)],'shortDesc':a107k(0x114),'examples':[a107k(0x127),a107k(0x121)],'description':a107k(0x112)},async function(a,b){const l=a107k;try{Log['majestic'](l(0x125)+pjson[l(0x12c)]),await this[l(0x108)]['compareMakaToLatest']();if(b[l(0x105)]){await this[l(0x108)]['compareMakaToLatest'](),Log[l(0x117)](l(0x107));const c=await this[l(0x124)][l(0x11e)]();Log[l(0x117)]((l(0x11d)+c)[l(0x120)]('\x0a',''));if(this[l(0x108)]['isMakaProject']()){Log[l(0x117)](l(0x10a));const d=this[l(0x108)]['getProjectMeteorVersion']();try{!a107e[l(0x11c)](d)?Log[l(0x12a)](l(0x110)+d['replace']('\x0a','')):Log[l(0x113)]('Project\x27s\x20Meteor\x20Version\x20'+d[l(0x120)]('\x0a',''));}catch(f){Log['error'](l(0x122)+f),Log[l(0x11b)]('This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer');}Log['bright'](l(0x12d));}}}catch(g){console[l(0x11b)](g),process[l(0x12b)](0x0);}});function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x105;let f=c[d];return f;},a107d(a,b);}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
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x190))/0x1+parseInt(f(0x18f))/0x2+-parseInt(f(0x191))/0x3*(-parseInt(f(0x189))/0x4)+parseInt(f(0x18a))/0x5+parseInt(f(0x188))/0x6+-parseInt(f(0x18d))/0x7*(parseInt(f(0x186))/0x8)+parseInt(f(0x187))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x40a3f));function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x186;var f=c[d];return f;},a108d(a,b);}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(0x18b)]()['search'](g(0x18c))[g(0x18b)]()[g(0x18e)](a108a)[g(0x192)](g(0x18c));});a108a();export class UsageError{}export class UsageErrorWithSubs{}function a108c(){var h=['793098eBZmuY','2211324ZQzGgs','471940kCuvPu','414000syfmPb','toString','(((.+)+)+)+$','600761eNqlIE','constructor','254998pfLCRc','294886BpCZtQ','6tzCvyT','search','32leDEso'];a108c=function(){return h;};return a108c();}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=-parseInt(h(0x195))/0x1*(-parseInt(h(0x194))/0x2)+parseInt(h(0x19b))/0x3+-parseInt(h(0x191))/0x4*(parseInt(h(0x190))/0x5)+parseInt(h(0x196))/0x6*(-parseInt(h(0x188))/0x7)+parseInt(h(0x199))/0x8*(parseInt(h(0x192))/0x9)+parseInt(h(0x193))/0xa+parseInt(h(0x18e))/0xb*(-parseInt(h(0x18c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x432a7));function a109c(){const l=['462gFOfSM','writeFileSync','832030GexmVD','8vDGxFt','416682MgjLEV','4301180GuZGfh','4hXWvEr','79627iTQclE','16026dwhxdo','constructor','search','56LQjPIn','join','247545kkXscM','env','stringify','global-config.json','toString','756oGvLkK','.maka','apply','(((.+)+)+)+$','28452wZQzym','.meteor'];a109c=function(){return l;};return a109c();}const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x19f)]()[j(0x198)](j(0x18b))[j(0x19f)]()[j(0x197)](a109a)[j(0x198)]('(((.+)+)+)+$');});a109a();function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x188;let f=c[d];return f;},a109d(a,b);}import a109e from'path';import a109f from'os';import a109g from'fs';const homeDir=a109f['homedir'](),GLOBAL_CONFIG=a109k(0x19e),pathToGlobalMakaConfig=a109e[a109k(0x19a)](homeDir,a109k(0x18d),a109k(0x189),GLOBAL_CONFIG);if(!a109g['existsSync'](pathToGlobalMakaConfig)){const jsonData=JSON[a109k(0x19d)]({},null,0x2);a109g[a109k(0x18f)](pathToGlobalMakaConfig,jsonData);}process[a109k(0x19c)]['NODE_OPTIONS']='--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(0x181))/0x1+parseInt(r(0x168))/0x2*(parseInt(r(0x183))/0x3)+-parseInt(r(0x1d7))/0x4*(-parseInt(r(0x1b4))/0x5)+-parseInt(r(0x19d))/0x6*(parseInt(r(0x1a3))/0x7)+-parseInt(r(0x188))/0x8*(-parseInt(r(0x199))/0x9)+parseInt(r(0x1b9))/0xa+-parseInt(r(0x1e5))/0xb*(-parseInt(r(0x17b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x25a6f));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a110d;if(c){const e=c[s(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const t=a110d;return a110a[t(0x1e4)]()[t(0x16e)](t(0x1cc))[t(0x1e4)]()[t(0x1d6)](a110a)[t(0x16e)](t(0x1cc));});a110a();import a110e from'path';import a110f from'fs';import a110g from'cli-table';function a110c(){const N=['Too\x20many\x20options','appPathPrefix','notice','dir','writeHistory','message','call','toString','1067qliHZg','options','shortDesc','apply','Too\x20few\x20options','Both','Location','parse','maxArgLength','Generator\x20','resourceName','32938osPznq','root','validateParams','minArgLength','filter','deepen','search','colLocAnswer','_genTransactionId','Description','handleGenerateError','select','getMakaProjectConfig','readHistory','Generator\x20requires\x20a\x20handler\x20function','Generator.create\x20requires\x20some\x20options!','name','length','keys','26124yvrtiM','fullNameChain','maxOptsLength','There\x20is\x20no\x20Meteor\x20application\x20here','mustHaveMeteorInstalled','Generator\x20format\x20is\x20incorrect','149233knRYpy','generatorName','15jsDFqi','LIGHT','validateMeteorInstall','projectConfig','.maka','48SBBCVh','writeFileSync','client','cfg','error','Generator.create\x20requires\x20a\x20handler\x20function!','addGenerator','experimental','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','resourceNameRequired','fsi','params','addToHistory','bright','both','validateEngines','transactionId','51498puFuKL','\x20not\x20found','match','warn','48OefVVl','readFileSync','success','where','function','Alias','260498PEzxKg','push','minOptsLength','Client','create','Nothing\x20to\x20undo.','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','tableList','sep','from','bind','split','join','find','Generator\x20not\x20found','_historyFilePath','history.json','5Tavzrs','sort','opts','existsSync','exit','1316060JjVwyA','cwd','Name','pop','No\x20resource\x20name\x20specified','setColorMode','statSync','requiredEngines','light','Too\x20many\x20arguments','_generators','server','listGenerators','details','localeCompare','forEach','\x20not\x20found.\x20Cannot\x20undo.','_handler','stringify','(((.+)+)+)+$','number','\x20generator.\x20Skipping\x20undo.','Server','reverse','utf-8','addGenerator\x20requires\x20a\x20Generator\x20instance','assign','mustBeInMakaProject','config','constructor','566864cIkMAc','includes','findGeneratorByName','invoke','getHistoryFileSize','_undoHandler'];a110c=function(){return N;};return a110c();}import{v4 as a110h}from'uuid';import{kebabCase}from'change-case';import a110i from'./generators/maka.gen.js';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x161;let f=c[d];return f;},a110d(a,b);}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[u(0x1ba)]();try{return process['chdir'](a),await b();}finally{process['chdir'](c);}}export class Generator extends Tool{[a110v(0x1e6)];[a110v(0x17c)];[a110v(0x186)];['_generators'];[a110v(0x1b2)];[a110v(0x1dc)];[a110v(0x170)];[a110v(0x1ca)];constructor(a,b,c){const w=a110v;super();if(!a)throw new Error(w(0x190));if(!a[w(0x178)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==w(0x1a1))throw new Error(w(0x176));this[w(0x1c3)]=[];a['resourceNameRequired']===undefined&&(a['resourceNameRequired']=!![]);this[w(0x1e6)]=Object['assign']({},a),this[w(0x178)]=this['options']['name'],this[w(0x1ca)]=b[w(0x1ad)](this);try{this[w(0x1b2)]=this[w(0x192)]['pathFromProject']({'pathParts':[w(0x187),'history.json']})||a110e[w(0x1af)]('.','.maka',w(0x1b3));}catch(d){Log[w(0x18c)](d);}c&&(this['_undoHandler']=c[w(0x1ad)](this));}[a110v(0x1db)](){const x=a110v;if(a110f['existsSync'](this[x(0x1b2)])){const a=a110f[x(0x1bf)](this[x(0x1b2)]);return a['size'];}return 0x0;}['readHistory'](){const y=a110v;if(!a110f[y(0x1b7)](this[y(0x1b2)]))return[];return JSON[y(0x164)](a110f[y(0x19e)](this[y(0x1b2)],y(0x1d1)));}[a110v(0x1e1)](a){const z=a110v;this['_historyFilePath']&&!a110f[z(0x1b7)](this['_historyFilePath'])&&a110f[z(0x189)](this[z(0x1b2)],JSON[z(0x1cb)]([])),a110f[z(0x189)](this['_historyFilePath'],JSON[z(0x1cb)](a,null,0x2));}[a110v(0x194)](a){const A=a110v;try{a?.[A(0x193)]?.[A(0x1b6)][A(0x1d5)]&&delete a[A(0x193)][A(0x1b6)]['config'];const b=this[A(0x175)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1a4)](c);const d=Buffer[A(0x1ac)](JSON[A(0x1cb)](b))[A(0x179)];while(d>MAX_HISTORY_SIZE&&b[A(0x179)]>0x0){b['shift']();}this[A(0x1e1)](b);}catch(f){Log[A(0x18c)](f);}}async['undo'](){const B=a110v,a=this[B(0x175)]();if(a['length']===0x0){Log[B(0x19c)](B(0x1a8));return;}const b=a[B(0x1bc)](),c=b[B(0x198)],d=a[B(0x16c)](e=>e[B(0x198)]===c);d[B(0x1a4)](b),d[B(0x1d0)]();for(const e of d){const f=this['findGeneratorByName'](e[B(0x182)]);if(!f){Log[B(0x18c)](B(0x166)+e[B(0x182)]+B(0x1c9));continue;}if(f['_undoHandler']){}else Log[B(0x19c)]('No\x20undo\x20handler\x20defined\x20for\x20'+e['generatorName']+B(0x1ce));}this[B(0x1e1)](a[B(0x16c)](g=>g[B(0x198)]!==c));}static[a110v(0x1a7)](a,b,c,d){const C=a110v;if(!a)throw new Error(C(0x177));if(typeof b!=='function')throw new Error(C(0x18d));const e=new Generator(a,b,c);d=d||a110i;const f=d?d[C(0x17c)]:'';return e['fullNameChain']=f?f+':'+a[C(0x178)]:a[C(0x178)],Object[C(0x1d3)](e,{'parent':d?.['options']?.['name']}),d[C(0x18e)](e),e;}['addGenerator'](a){const D=a110v;if(!(a instanceof Generator))throw new Error(D(0x1d2));this[D(0x1c3)][D(0x1a4)](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a110v;let d;try{const f=a?.[E(0x1ae)](':');if(!f||f[E(0x179)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[E(0x1c3)],h;for(const i of f){h=g[E(0x1b0)](j=>j[E(0x19b)](i));if(!h)throw'Generator\x20'+i+E(0x19a);g=h[E(0x1c3)];}if(h)d=await h['invoke'](b,c);else throw E(0x1b1);}catch(j){Log[E(0x18c)](j);}return d;}[a110v(0x1d9)](a){const F=a110v,b=a?.['split'](':');if(!b||b[F(0x179)]===0x0)return Log[F(0x18c)](F(0x180)),null;let c=this[F(0x1c3)],d;for(const e of b){d=c[F(0x1b0)](f=>f['match'](e));if(!d)return Log[F(0x18c)](F(0x166)+e+F(0x19a)),null;c=d[F(0x1c3)];}return d||null;}async[a110v(0x1da)](a,b){const G=a110v,c=a['slice']();b[G(0x167)]=c[0x0];const {config:d}=b;try{const f=await this[G(0x18b)]['getGlobalConfig'](),g=f['pallet']===G(0x1c1)?ColorMode[G(0x184)]:ColorMode['DARK'];Log[G(0x1be)](g);const h=a[0x0]===_prevGen||a['length']===0x0&&this['_generators'][G(0x179)]>=0x0,i=b['help']||b['h'];if(h&&i){if(this[G(0x1c3)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x1e6)][G(0x1d4)]){if(!d){const j=this['validateMakaProject']();if(!j)throw new MustBeInProjectError();this['projectConfig']=this['cfg'][G(0x174)]();}else this['projectConfig']=d;}if(this[G(0x1e6)][G(0x17f)]){const k=this[G(0x185)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[G(0x1e6)][G(0x16b)]===G(0x1cd)){if(a[G(0x179)]<this['options'][G(0x16b)]){Log[G(0x18c)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options']['maxArgLength']===G(0x1cd)){if(a[G(0x179)]>this[G(0x1e6)][G(0x165)]){Log[G(0x18c)](G(0x1c2));throw new UsageError();}}if(typeof this['options']['minOptsLength']===G(0x1cd)){if(Object['keys'](b)['length']<this['options'][G(0x1a5)]){Log['error'](G(0x161));throw new UsageError();}}if(typeof this[G(0x1e6)][G(0x17d)]===G(0x1cd)){if(Object[G(0x17a)](b)[G(0x179)]>=this[G(0x1e6)][G(0x17d)]){Log[G(0x18c)](G(0x1dd));throw new UsageError();}}}this[G(0x1e6)][G(0x1c0)]&&this[G(0x197)](this[G(0x1e6)][G(0x1c0)]);await this[G(0x16a)](a,b,this['options']);if(!b[G(0x167)]&&this['options'][G(0x191)]){Log[G(0x18c)](G(0x1bd));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[G(0x172)](l),process[G(0x1b8)](0x1);}return await inside(b[G(0x1ba)],async()=>{const H=G;try{if(!b[H(0x169)]&&!this['fsi']['findProjectDirectory']())throw new MustBeInProjectError();const m=b['resourceName']?.['replace'](/\\/g,'/')[H(0x1ae)]('/');!b['dir']&&(m?.[H(0x179)]>0x1?(b[H(0x167)]=m[H(0x1bc)](),c[0x0]=b['resourceName'],b[H(0x1e0)]=m['map'](o=>{return kebabCase(o);})[H(0x1af)](a110e[H(0x1ab)])):b['dir']='');if(this[H(0x1e6)]['checkWhere']){if(!b[H(0x1a0)]){const p=await Actions[H(0x173)]({'message':H(0x163),'name':H(0x16f),'choices':[{'name':H(0x1a6),'value':H(0x18a)},{'name':H(0x1cf),'value':'server'},{'name':H(0x162),'value':H(0x196)}]});b[H(0x1a0)]=p;}const o=[H(0x196),H(0x18a),H(0x1c4)];if(!o[H(0x1d8)](b[H(0x1a0)])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[H(0x1a0)]){case H(0x196):b['appPathPrefix']='lib';break;case'server':b[H(0x1de)]=H(0x1c4);break;case H(0x18a):b[H(0x1de)]=H(0x18a);break;default:b[H(0x1de)]='';}}const n=await this[H(0x1ca)][H(0x1e3)](this,c,b);return n&&this['addToHistory']({'params':{'args':c,'opts':this[H(0x192)][H(0x16d)](b)},'success':n?.[H(0x19f)],'message':n?.[H(0x1e2)],'details':n?.[H(0x1c6)]}),n;}catch(q){this[H(0x172)](q);}});}[a110v(0x1c5)](){const I=a110v;this[I(0x1aa)](this[I(0x1c3)]);}[a110v(0x172)](a){const J=a110v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x1e6)];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x1df)]('Generators:'),this[J(0x1aa)](this[J(0x1c3)]);else{if(a instanceof MustBeInProjectError)Log[J(0x18c)]('You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log['error'](J(0x1a9)),Log[J(0x1df)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[J(0x18c)](J(0x17e));}}}['tableList'](a){const K=a110v,b=new a110g({});b[K(0x1a4)]([K(0x1bb),K(0x1a2),K(0x171)]),a[K(0x1b5)]((c,d)=>{const L=K;return c[L(0x178)][L(0x1c7)](d['name']);})[K(0x1c8)](c=>{const M=K,d=c[M(0x18f)](),e=d?'(experimental)\x20'+c[M(0x1e7)]():c[M(0x1e7)]();b[M(0x1a4)]([c['name'],c['aliases'](),e]);}),Log[K(0x195)](b['toString']());}}
|
|
1
|
+
function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xba;let f=c[d];return f;},a110d(a,b);}const a110v=a110d;(function(a,b){const r=a110d,c=a();while(!![]){try{const d=-parseInt(r(0x11e))/0x1*(parseInt(r(0x106))/0x2)+-parseInt(r(0x116))/0x3*(-parseInt(r(0x132))/0x4)+parseInt(r(0xfd))/0x5*(-parseInt(r(0x129))/0x6)+-parseInt(r(0x10f))/0x7*(-parseInt(r(0xf7))/0x8)+-parseInt(r(0xeb))/0x9*(parseInt(r(0xc3))/0xa)+-parseInt(r(0xfe))/0xb+parseInt(r(0xc1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x50e7c));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a110d;if(c){const e=c[s(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const t=a110d;return a110a[t(0xdf)]()[t(0x133)](t(0x12d))[t(0xdf)]()['constructor'](a110a)[t(0x133)](t(0x12d));});a110a();function a110c(){const N=['create','No\x20undo\x20handler\x20defined\x20for\x20','validateEngines','size','getHistoryFileSize','Name','aliases','findProjectDirectory','Too\x20many\x20arguments','appPathPrefix','maxOptsLength','keys','dir','_generators','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','minOptsLength','toString','Too\x20few\x20options','root','server','writeFileSync','fsi','findGeneratorByName','addGenerator\x20requires\x20a\x20Generator\x20instance','existsSync','fullNameChain','warn','number','123894Czrahl','Generators:','both','assign','join','Too\x20few\x20arguments','\x20not\x20found.\x20Cannot\x20undo.','No\x20resource\x20name\x20specified','client','details','maxArgLength','requiredEngines','91664XteCwX','cwd','checkWhere','name','shift','config','5ViwgWz','2810324tgFaIx','replace','bind','opts','_undoHandler','Generator\x20requires\x20a\x20name','getGlobalConfig','.maka','2LlVUDF','notice','where','Generator\x20requires\x20a\x20handler\x20function','lib','Server','Generator.create\x20requires\x20some\x20options!','Generator\x20','minArgLength','21XeuGGD','projectConfig','validateMeteorInstall','_handler','generatorName','Generator\x20format\x20is\x20incorrect','validateMakaProject','1722mtURYr','exit','light','processAndRunGenerator','stringify','\x20not\x20found','writeHistory','map','585737mXtjiS','success','help','match','localeCompare','\x20generator.\x20Skipping\x20undo.','(experimental)\x20','setColorMode','history.json','params','Description','3664638fajjxI','resourceNameRequired','readFileSync','sep','(((.+)+)+)+$','getMakaProjectConfig','forEach','DARK','options','2424aFwcZL','search','pathFromProject','pop','find','_historyFilePath','error','Too\x20many\x20options','shortDesc','Location','cfg','chdir','Generator.create\x20requires\x20a\x20handler\x20function!','colLocAnswer','length','split','push','addGenerator','apply','resourceName','20943768tpTEHP','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','250hZuiyH','addToHistory','filter','usage','Generator\x20not\x20found','Alias','handleGenerateError','_genTransactionId','tableList','readHistory','transactionId','There\x20is\x20no\x20Meteor\x20application\x20here'];a110c=function(){return N;};return a110c();}import a110e from'path';import a110f from'fs';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(0x13d)](a),await b();}finally{process['chdir'](c);}}export class Generator extends Tool{[a110v(0x131)];[a110v(0xe8)];[a110v(0x110)];[a110v(0xdc)];[a110v(0x137)];[a110v(0x102)];[a110v(0xca)];[a110v(0x112)];constructor(a,b,c){const w=a110v;super();if(!a)throw new Error(w(0xdd));if(!a[w(0xfa)])throw new Error(w(0x103));if(typeof b!=='function')throw new Error(w(0x109));this['_generators']=[];a[w(0x12a)]===undefined&&(a[w(0x12a)]=!![]);this[w(0x131)]=Object[w(0xee)]({},a),this[w(0xfa)]=this[w(0x131)][w(0xfa)],this[w(0x112)]=b[w(0x100)](this);try{this[w(0x137)]=this[w(0xe4)][w(0x134)]({'pathParts':[w(0x105),w(0x126)]})||a110e[w(0xef)]('.',w(0x105),w(0x126));}catch(d){Log[w(0x138)](d);}c&&(this[w(0x102)]=c['bind'](this));}[a110v(0xd3)](){const x=a110v;if(a110f[x(0xe7)](this['_historyFilePath'])){const a=a110f['statSync'](this['_historyFilePath']);return a[x(0xd2)];}return 0x0;}[a110v(0xcc)](){const y=a110v;if(!a110f[y(0xe7)](this[y(0x137)]))return[];return JSON['parse'](a110f[y(0x12b)](this['_historyFilePath'],'utf-8'));}[a110v(0x11c)](a){const z=a110v;this[z(0x137)]&&!a110f[z(0xe7)](this['_historyFilePath'])&&a110f[z(0xe3)](this[z(0x137)],JSON[z(0x11a)]([])),a110f[z(0xe3)](this['_historyFilePath'],JSON[z(0x11a)](a,null,0x2));}[a110v(0xc4)](a){const A=a110v;try{a?.[A(0x127)]?.['opts'][A(0xfc)]&&delete a[A(0x127)][A(0x101)][A(0xfc)];const b=this[A(0xcc)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0xbd)](c);const d=Buffer['from'](JSON['stringify'](b))[A(0xbb)];while(d>MAX_HISTORY_SIZE&&b[A(0xbb)]>0x0){b[A(0xfb)]();}this[A(0x11c)](b);}catch(f){Log[A(0x138)](f);}}async['undo'](){const B=a110v,a=this[B(0xcc)]();if(a[B(0xbb)]===0x0){Log[B(0xe9)]('Nothing\x20to\x20undo.');return;}const b=a[B(0x135)](),c=b[B(0xcd)],d=a[B(0xc5)](e=>e[B(0xcd)]===c);d[B(0xbd)](b),d['reverse']();for(const e of d){const f=this[B(0xe5)](e[B(0x113)]);if(!f){Log[B(0x138)](B(0x10d)+e[B(0x113)]+B(0xf1));continue;}if(f[B(0x102)]){}else Log[B(0xe9)](B(0xd0)+e[B(0x113)]+B(0x123));}this['writeHistory'](a[B(0xc5)](g=>g[B(0xcd)]!==c));}static[a110v(0xcf)](a,b,c,d){const C=a110v;if(!a)throw new Error(C(0x10c));if(typeof b!=='function')throw new Error(C(0x13e));const e=new Generator(a,b,c);d=d||a110i;const f=d?d['fullNameChain']:'';return e[C(0xe8)]=f?f+':'+a[C(0xfa)]:a[C(0xfa)],Object[C(0xee)](e,{'parent':d?.[C(0x131)]?.[C(0xfa)]}),d[C(0xbe)](e),e;}['addGenerator'](a){const D=a110v;if(!(a instanceof Generator))throw new Error(D(0xe6));this[D(0xdc)][D(0xbd)](a);}async[a110v(0x119)](a,b=[],c={}){const E=a110v;let d;try{const f=a?.[E(0xbc)](':');if(!f||f['length']===0x0)throw E(0x114);let g=this[E(0xdc)],h;for(const i of f){h=g[E(0x136)](j=>j[E(0x121)](i));if(!h)throw E(0x10d)+i+E(0x11b);g=h[E(0xdc)];}if(h)d=await h['invoke'](b,c);else throw E(0xc7);}catch(j){Log[E(0x138)](j);}return d;}[a110v(0xe5)](a){const F=a110v,b=a?.['split'](':');if(!b||b[F(0xbb)]===0x0)return Log[F(0x138)](F(0x114)),null;let c=this[F(0xdc)],d;for(const e of b){d=c['find'](f=>f['match'](e));if(!d)return Log[F(0x138)](F(0x10d)+e+F(0x11b)),null;c=d[F(0xdc)];}return d||null;}async['invoke'](a,b){const G=a110v,c=a['slice']();b[G(0xc0)]=c[0x0];const {config:d}=b;try{const f=await this['cfg'][G(0x104)](),g=f['pallet']===G(0x118)?ColorMode['LIGHT']:ColorMode[G(0x130)];Log[G(0x125)](g);const h=a[0x0]===_prevGen||a[G(0xbb)]===0x0&&this[G(0xdc)][G(0xbb)]>=0x0,i=b[G(0x120)]||b['h'];if(h&&i){if(this[G(0xdc)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x131)]['mustBeInMakaProject']){if(!d){const j=this[G(0x115)]();if(!j)throw new MustBeInProjectError();this[G(0x110)]=this[G(0x13c)][G(0x12e)]();}else this[G(0x110)]=d;}if(this[G(0x131)]['mustHaveMeteorInstalled']){const k=this[G(0x111)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[G(0x131)][G(0x10e)]==='number'){if(a['length']<this[G(0x131)][G(0x10e)]){Log[G(0x138)](G(0xf0));throw new UsageError();}}if(typeof this[G(0x131)][G(0xf5)]===G(0xea)){if(a[G(0xbb)]>this[G(0x131)][G(0xf5)]){Log[G(0x138)](G(0xd7));throw new UsageError();}}if(typeof this['options'][G(0xde)]===G(0xea)){if(Object[G(0xda)](b)[G(0xbb)]<this['options'][G(0xde)]){Log[G(0x138)](G(0xe0));throw new UsageError();}}if(typeof this['options'][G(0xd9)]===G(0xea)){if(Object['keys'](b)[G(0xbb)]>=this[G(0x131)][G(0xd9)]){Log[G(0x138)](G(0x139));throw new UsageError();}}}this['options'][G(0xf6)]&&this[G(0xd1)](this['options'][G(0xf6)]);await this['validateParams'](a,b,this['options']);if(!b['resourceName']&&this['options'][G(0x12a)]){Log[G(0x138)](G(0xf2));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[G(0xc9)](l),process[G(0x117)](0x1);}return await inside(b[G(0xf8)],async()=>{const H=G;try{if(!b[H(0xe1)]&&!this[H(0xe4)][H(0xd6)]())throw new MustBeInProjectError();const m=b['resourceName']?.[H(0xff)](/\\/g,'/')[H(0xbc)]('/');!b[H(0xdb)]&&(m?.[H(0xbb)]>0x1?(b[H(0xc0)]=m['pop'](),c[0x0]=b[H(0xc0)],b[H(0xdb)]=m[H(0x11d)](o=>{return kebabCase(o);})[H(0xef)](a110e[H(0x12c)])):b[H(0xdb)]='');if(this['options'][H(0xf9)]){if(!b['where']){const p=await Actions['select']({'message':H(0x13b),'name':H(0xba),'choices':[{'name':'Client','value':H(0xf3)},{'name':H(0x10b),'value':H(0xe2)},{'name':'Both','value':H(0xed)}]});b[H(0x108)]=p;}const o=[H(0xed),'client',H(0xe2)];if(!o['includes'](b['where'])){Log[H(0x138)](H(0xc2));throw new UsageError();}switch(b[H(0x108)]){case H(0xed):b['appPathPrefix']=H(0x10a);break;case H(0xe2):b[H(0xd8)]=H(0xe2);break;case H(0xf3):b[H(0xd8)]=H(0xf3);break;default:b[H(0xd8)]='';}}const n=await this[H(0x112)]['call'](this,c,b);return n&&this['addToHistory']({'params':{'args':c,'opts':this[H(0xe4)]['deepen'](b)},'success':n?.[H(0x11f)],'message':n?.['message'],'details':n?.[H(0xf4)]}),n;}catch(q){this['handleGenerateError'](q);}});}['listGenerators'](){const I=a110v;this[I(0xcb)](this[I(0xdc)]);}['handleGenerateError'](a){const J=a110v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x131)];Log[J(0xc6)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x107)](J(0xec)),this['tableList'](this[J(0xdc)]);else{if(a instanceof MustBeInProjectError)Log[J(0x138)]('You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0x107)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[J(0x138)](J(0xce));}}}[a110v(0xcb)](a){const K=a110v,b=new a110g({});b[K(0xbd)]([K(0xd4),K(0xc8),K(0x128)]),a['sort']((c,d)=>{const L=K;return c[L(0xfa)][L(0x122)](d[L(0xfa)]);})[K(0x12f)](c=>{const M=K,d=c['experimental'](),e=d?M(0x124)+c[M(0x13a)]():c[M(0x13a)]();b['push']([c[M(0xfa)],c[M(0xd5)](),e]);}),Log['bright'](b[K(0xdf)]());}}
|
|
@@ -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(0x151))/0x1*(parseInt(f(0x14c))/0x2)+-parseInt(f(0x152))/0x3*(-parseInt(f(0x159))/0x4)+-parseInt(f(0x156))/0x5+parseInt(f(0x14d))/0x6*(-parseInt(f(0x158))/0x7)+parseInt(f(0x155))/0x8+parseInt(f(0x154))/0x9+-parseInt(f(0x150))/0xa*(parseInt(f(0x153))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x369ab));function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x14b;var f=c[d];return f;},a111d(a,b);}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(0x157)]()[g(0x14f)](g(0x14e))[g(0x157)]()[g(0x14b)](a111a)[g(0x14f)](g(0x14e));});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';import'./route.js';function a111c(){var h=['2577992EkJhPw','1652610ertSWx','toString','4858vFbyPY','235012yBxOiO','constructor','16VFcgWm','18wjKePe','(((.+)+)+)+$','search','620810gpTRVn','44575sHfKnk','3werKGV','99Jznmam','3396510QdBGTj'];a111c=function(){return h;};return a111c();}import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112A=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d
|
|
1
|
+
const a112A=a112d;(function(a,b){const x=a112d,c=a();while(!![]){try{const d=parseInt(x(0x1c7))/0x1+-parseInt(x(0x19e))/0x2+parseInt(x(0x1c4))/0x3*(-parseInt(x(0x1a5))/0x4)+-parseInt(x(0x192))/0x5*(-parseInt(x(0x1d8))/0x6)+parseInt(x(0x1af))/0x7+parseInt(x(0x1ce))/0x8+parseInt(x(0x1d4))/0x9*(-parseInt(x(0x1ad))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x85c03));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a112d;if(c){const e=c[y(0x1d6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const z=a112d;return a112a[z(0x1d3)]()['search']('(((.+)+)+)+$')[z(0x1d3)]()[z(0x1d0)](a112a)['search'](z(0x198));});a112a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x18e;let f=c[d];return f;},a112d(a,b);}import a112e from'path';function a112c(){const C=['normalize','API\x20boundaries\x20to\x20create','fsi','api/api.js','apollo','checkNpmPackage','imports','15uSiYEq','typeDefs.','graphql','maka\x20{generate,\x20g}:{api}\x20<resource-name>','withRest','create','(((.+)+)+)+$','tsx','@apollo/server','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','error','engines.api','69360iqbmVZ','resolvers.','injectAtEndOfFile','length','projectConfig','startup','withGql','4RytqZn','Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)','apiAnswers','REST\x20API','api/typeDefs.js','pkg','ddp-rate-limiter','includes','1744190byldgD','withMethods','675402qyTeYe','Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.','checkbox','api/apollo-gateway.js','\x27)\x20},','-api.','-rpc-methods.','checkMeteorPackage','import\x20\x27/imports/api/apollo-gateway.','express','ask','push','template','injectIntoFile','maka\x20g:api\x20Todos','dir','engines','{\x20name:\x20\x27','index.','\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','API\x20Version?\x20[v1]','672279QtbkYM','pathFromApp','cfg','763137cjDHqu','-graphql-api.','\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/','-api\x27;','setProjectConfig','-rest-api.','exit','7587712IhEoxV','api/register-api.js','constructor','resourceName','maka:rest','toString','90nQguQX','server','apply','api','1485438PGpDpx','scaffold'];a112c=function(){return C;};return a112c();}import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a112A(0x197)]({'name':a112A(0x1d7),'aliases':['a'],'usage':a112A(0x195),'shortDesc':a112A(0x19b),'validOpts':[a112A(0x1be)],'examples':[a112A(0x1bd)],'mustBeInMakaProject':!![],'description':a112A(0x1c2)},async function(a,b){const B=a112A;try{const {scaffold:c}=this,d=this[B(0x1a2)],f=[{'name':'RPC\x20(Methods)','value':'withMethods'}];f[B(0x1ba)]({'name':B(0x1a8),'value':B(0x196)}),f[B(0x1ba)]({'name':'GraphQL','value':'withGql'});const g={'message':B(0x1db),'name':B(0x1a7),'choices':f},h=await Actions[B(0x1b9)](B(0x1c3))||'v1',i=await Actions[B(0x1b1)](g);i[B(0x1a1)]===0x0&&(Log[B(0x19c)]('No\x20API\x20boundaries\x20selected'),process[B(0x1cd)](0x1));let j='js';d[B(0x1bf)]['js']===B(0x199)&&(j='ts');const k=this[B(0x1dc)]['findAppDirectory'](),l=k+a112e[B(0x1da)]('/imports/api/apollo-gateway.'+j),m=this[B(0x1dc)]['isFile'](l);!m&&d[B(0x1bf)][B(0x194)]===B(0x18f)&&Log['info'](B(0x1b0));const n=b[B(0x1d1)],o=kebabCase(n),p=b[B(0x1be)]?'/'+b[B(0x1be)]+'/':'/',q={'name':pascalCase(n),'apiVersion':h,'fileName':o,'camelCase':camelCase(n),'optsDir':p,'api':d[B(0x1bf)][B(0x1d7)],'graphql':d[B(0x1bf)][B(0x194)],'test':d[B(0x1bf)]['test'],'noRename':!![],'withMethods':i['includes'](B(0x1ae)),'withRest':i['includes'](B(0x196)),'withGql':i[B(0x1ac)]('withGql')};let r=![];q[B(0x1a4)]&&(r=m?![]:await Actions['confirm'](B(0x1a6)));q[B(0x196)]&&(this[B(0x1c6)][B(0x1cb)](B(0x19d),'rest'),await this['pkg'][B(0x1b6)]([B(0x1d2)],{'shouldInstall':!![]}),await this['scaffold'][B(0x1bb)]({'srcPath':B(0x18e),'destPath':this[B(0x1d9)][B(0x1c5)]({'pathParts':['imports',B(0x1d7),h,p,o,o+'-'+h+B(0x1cc)+j]}),'context':q,'config':d}));q[B(0x1ae)]&&(await this[B(0x1aa)][B(0x1b6)]([B(0x1ab),'mdg:validated-method'],{'shouldInstall':!![]}),await this[B(0x1d9)]['template']({'srcPath':'api/methods.js','destPath':this[B(0x1d9)][B(0x1c5)]({'pathParts':[B(0x191),B(0x1d7),h,p,o,o+'-'+h+B(0x1b5)+j]}),'context':q,'config':d}));if(q['withGql']){await this['pkg'][B(0x190)](['express',B(0x19a),'@apollo/subgraph','graphql-tag','express-rate-limit',B(0x194)],{'shouldInstall':!![]}),await this['scaffold'][B(0x1bb)]({'srcPath':'api/graphql-api.js','destPath':this[B(0x1d9)][B(0x1c5)]({'pathParts':['imports',B(0x1d7),h,p,o,o+'-'+h+B(0x1c8)+j]}),'context':q,'config':d});const t=this[B(0x1d9)][B(0x1c5)]({'pathParts':[B(0x191),B(0x1d7),h,p,o,B(0x194),B(0x193)+j]});await this[B(0x1d9)]['template']({'srcPath':B(0x1a9),'destPath':t,'context':q,'config':d});const u=this[B(0x1d9)][B(0x1c5)]({'pathParts':[B(0x191),B(0x1d7),h,p,o,B(0x194),B(0x19f)+j]});await this[B(0x1d9)][B(0x1bb)]({'srcPath':'api/resolvers.js','destPath':u,'context':q,'config':d});if(r){await this[B(0x1aa)][B(0x190)](['@apollo/gateway',B(0x1b8)],{'shouldInstall':!![]}),await this[B(0x1d9)][B(0x1bb)]({'srcPath':B(0x1b2),'destPath':l,'context':q,'config':d}),await c[B(0x1bc)]({'filePath':l,'content':B(0x1c0)+o+h+B(0x1c9)+h+'/'+o+B(0x1b3),'begin':'subgraphs:\x20[','end':']'});const v=this[B(0x1d9)][B(0x1c5)]({'pathParts':['imports',B(0x1a3),B(0x1d5),'index.'+d[B(0x1bf)]['js']]});await this['scaffold'][B(0x1a0)]({'filePath':v,'content':B(0x1b7)+j+'\x27;'});}m&&await c[B(0x1bc)]({'filePath':l,'content':B(0x1c0)+o+h+B(0x1c9)+h+'/'+o+B(0x1b3),'begin':'subgraphs:\x20[','end':']'});}await this[B(0x1d9)][B(0x1bb)]({'srcPath':B(0x1cf),'destPath':this[B(0x1d9)][B(0x1c5)]({'pathParts':[B(0x191),B(0x1a3),'server','register-'+o+B(0x1b4)+j]}),'context':q,'config':d,'force':!![]});const s=this[B(0x1d9)][B(0x1c5)]({'pathParts':['imports','startup',B(0x1d5),B(0x1c1)+d[B(0x1bf)]['js']]});await this[B(0x1d9)][B(0x1a0)]({'filePath':s,'content':'import\x20\x27./register-'+o+B(0x1ca)});}catch(w){console[B(0x19c)](w),process[B(0x1cd)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a113d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=-parseInt(f(0x124))/0x1+parseInt(f(0x12c))/0x2+parseInt(f(0x125))/0x3+-parseInt(f(0x12b))/0x4+-parseInt(f(0x127))/0x5+-parseInt(f(0x128))/0x6+parseInt(f(0x123))/0x7*(parseInt(f(0x12d))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x1f412));function a113c(){var h=['47367ZuJxyF','343812GZkJHJ','(((.+)+)+)+$','616825MBpelZ','1418736KDtlFW','search','toString','745836SIwqyN','488282tyabsa','32fRMbsr','635110momgXe'];a113c=function(){return h;};return a113c();}var a113b=(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;};}()),a113a=a113b(this,function(){var g=a113d;return a113a['toString']()[g(0x129)](g(0x126))[g(0x12a)]()['constructor'](a113a)['search'](g(0x126));});a113a();function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0x123;var f=c[d];return f;},a113d(a,b);}import'./aws.js';import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a114h=a114d;(function(a,b){const f=a114d,c=a();while(!![]){try{const d=parseInt(f(0xf0))/0x1+parseInt(f(0xe9))/0x2+-parseInt(f(0xee))/0x3+-parseInt(f(0xe1))/0x4+-parseInt(f(0xeb))/0x5*(parseInt(f(0xea))/0x6)+-parseInt(f(0xe5))/0x7+parseInt(f(0xe6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x45df5));const a114b=(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;};}()),a114a=a114b(this,function(){const g=a114d;return a114a[g(0xed)]()['search'](g(0xef))[g(0xed)]()[g(0xe7)](a114a)[g(0xe2)](g(0xef));});function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0xe1;let f=c[d];return f;},a114d(a,b);}a114a();import{Generator}from'../../generator.js';const AWSGen=Generator[a114h(0xec)]({'name':a114h(0xe3),'usage':a114h(0xe4),'shortDesc':a114h(0xf1),'minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':[a114h(0xe8)],'experimental':!![]},async function(){});function a114c(){const i=['(((.+)+)+)+$','433887BSMSyK','Generate\x20AWS\x20templates','1733212rpVjad','search','aws','maka\x20{generate,\x20g}:{aws}:<name>','1385832CgzwBd','4354520bHCpTP','constructor','maka\x20g:aws','1018234nZnLSj','1474458uBRqAT','5kCoyvv','create','toString','972300GSYmCH'];a114c=function(){return i;};return a114c();}export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a115d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a115d,c=a();while(!![]){try{var d=-parseInt(f(0x135))/0x1+parseInt(f(0x12e))/0x2*(-parseInt(f(0x127))/0x3)+-parseInt(f(0x132))/0x4+parseInt(f(0x134))/0x5*(parseInt(f(0x130))/0x6)+-parseInt(f(0x128))/0x7+parseInt(f(0x129))/0x8*(-parseInt(f(0x133))/0x9)+parseInt(f(0x12c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xb6155));function a115d(a,b){var c=a115c();return a115d=function(d,e){d=d-0x127;var f=c[d];return f;},a115d(a,b);}var a115b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a115d;if(c){var e=c[g(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){var h=a115d;return a115a[h(0x12a)]()[h(0x131)](h(0x12b))[h(0x12a)]()[h(0x12f)](a115a)[h(0x131)]('(((.+)+)+)+$');});a115a();function a115c(){var i=['11802wpHnMK','search','201416ZvQndM','9gWlTyL','825tTlzpo','1351880ATlKwH','876zpNKfL','958972tqtMgS','10461896byciFa','toString','(((.+)+)+)+$','34542290acwOyg','apply','1274DSdAdH','constructor'];a115c=function(){return i;};return a115c();}import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116h=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
const a116h=a116d;(function(a,b){const f=a116d,c=a();while(!![]){try{const d=-parseInt(f(0x1a7))/0x1+-parseInt(f(0x1a1))/0x2*(-parseInt(f(0x1a0))/0x3)+parseInt(f(0x1a8))/0x4*(parseInt(f(0x1a9))/0x5)+-parseInt(f(0x19a))/0x6*(parseInt(f(0x1a5))/0x7)+-parseInt(f(0x19c))/0x8+parseInt(f(0x199))/0x9*(parseInt(f(0x19d))/0xa)+parseInt(f(0x19f))/0xb*(parseInt(f(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x7fe29));const a116b=(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;};}()),a116a=a116b(this,function(){const g=a116d;return a116a[g(0x1a2)]()['search']('(((.+)+)+)+$')['toString']()['constructor'](a116a)['search'](g(0x1a6));});function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x197;let f=c[d];return f;},a116d(a,b);}function a116c(){const i=['1900136YHCMDa','290TGzPRb','AWS\x20Cloudformation\x20templates','55KiYZSe','3lpheXt','228056qrsqqR','toString','create','maka\x20g:aws:cf','7OMWnzm','(((.+)+)+)+$','274218yQMsFJ','4mtNPRA','4430660tHVSJC','cloudformation','716580eNkknQ','102924imNykE','3568962HIgGNJ','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}'];a116c=function(){return i;};return a116c();}a116a();import{Generator}from'../../../generator.js';import a116e from'../aws.js';const CFGen=Generator[a116h(0x1a3)]({'name':a116h(0x197),'aliases':['cf'],'usage':a116h(0x19b),'shortDesc':a116h(0x19e),'resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':[a116h(0x1a4)],'experimental':!![]},async function(){},async function(){},a116e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a117q=a117d;(function(a,b){const o=a117d,c=a();while(!![]){try{const d=parseInt(o(0x109))/0x1+parseInt(o(0x108))/0x2+-parseInt(o(0xfa))/0x3*(parseInt(o(0x103))/0x4)+parseInt(o(0x115))/0x5*(parseInt(o(0x101))/0x6)+-parseInt(o(0x118))/0x7*(parseInt(o(0x100))/0x8)+parseInt(o(0xf9))/0x9*(parseInt(o(0x10d))/0xa)+-parseInt(o(0x110))/0xb*(parseInt(o(0x113))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0x1ef6c));function a117c(){const s=['83710oFFlfm','ami-055744c75048d8296','appName','73898teOmwE','name','search','12ItWDEi','create-ec2-instance','144395NIZDsB','notice','success','2268LanrCI','findProjectDirectory','replaceAll','chooseSecurityGroup','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','cloudformation/create-ec2-instance.template','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','create-ec2-instance.template','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','cec2i','aws','81lmYRTK','3TnVYja','maka\x20g:aws:cf:cec2i','error','create','ask','Setting\x20the\x20key-pair\x20to:\x20','5592wnMpvs','18wZksLz','exit','630316bdayfG','No\x20instance\x20has\x20been\x20created.','join','Please\x20choose\x20a\x20key\x20to\x20use:\x20','constructor','363624BtFMGI','173813uCUbPi','template','(((.+)+)+)+$','toString'];a117c=function(){return s;};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 p=a117d;return a117a[p(0x10c)]()[p(0x112)]('(((.+)+)+)+$')[p(0x10c)]()[p(0x107)](a117a)[p(0x112)](p(0x10b));});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';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0xf7;let f=c[d];return f;},a117d(a,b);}import a117f from'./cloudformation.js';const CEC2Gen=Generator[a117q(0xfd)]({'name':a117q(0x114),'aliases':[a117q(0xf7)],'usage':a117q(0x11c),'resourceNameRequired':![],'shortDesc':a117q(0x120),'mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':[a117q(0xfb)],'experimental':!![]},async function(){const r=a117q,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[r(0x119)](),g=a117e[r(0x105)](f,'cloudformation'),h=await a['ec2describeKeys'](),i=await Actions[r(0xfe)](r(0x106))||'-1';if(parseInt(i)<0x0){Log[r(0xfc)](r(0x11e)),Log[r(0x116)](r(0x104));return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m[r(0x111)],Log[r(0x117)](r(0xff)+j);break;}}const k=await a[r(0x11b)](),l={'amiId':r(0x10e),'keyPair':j,'sgId':k,'instanceName':capitalCase(d[r(0x10f)])[r(0x11a)]('-','\x20')};await c[r(0x10a)]({'srcPath':r(0x11d),'destPath':a117e['join'](g,r(0x11f)),'framework':r(0xf8),'context':l,'config':d,'ignore':![]});}catch(n){Log[r(0xfc)](n),process[r(0x102)](0x1);}},async function(){},a117f);export default CEC2Gen;
|