@maka/maka-cli 5.1.8 → 5.1.10
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/test/_index.js +1 -1
- package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/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 a97z=a97d;function a97c(){const B=['
|
|
1
|
+
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=parseInt(w(0x187))/0x1*(parseInt(w(0x197))/0x2)+-parseInt(w(0x18b))/0x3*(parseInt(w(0x184))/0x4)+-parseInt(w(0x17c))/0x5*(parseInt(w(0x164))/0x6)+parseInt(w(0x192))/0x7*(parseInt(w(0x17f))/0x8)+parseInt(w(0x16a))/0x9+-parseInt(w(0x161))/0xa+-parseInt(w(0x182))/0xb*(-parseInt(w(0x16c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x6b985));function a97c(){const B=['appName','ask','writeFileSync','2345667wspYNn','readFileSync','withSpinner','maka\x20ssl\x20--env\x20dev\x20generate-csr','Please\x20provide\x20a\x20command.','sudo\x20snap\x20install\x20--classic\x20certbot','Checking\x20remote\x20host\x20availability','133DYknDk','domains','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','exit','[?]\x20Domains\x20to\x20register:\x20','107594idOhoq','cfg','search','Email\x20to\x20use\x20for\x20auto-updates:\x20','error','/ssh.json','\x20--email\x20','4269920Cqyhai','.key','Create\x20and\x20manage\x20your\x20SSL\x20operations.','6QcBTEA','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','stringify','generate-ssc','domainNames','.csr','2505726wCedDu','ping','144VHzodN','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','env','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','create','notice','mkKeysDir','Verifying\x20Letsencrypt\x20configuration','existsSync','ssh','apply','letsencrypt.json','constructor','Using\x20saved\x20letsencrypt\x20config','email','parse','3191645bjVgaF','uname\x20-a','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','4504aNScMI','toString','New\x20CSR\x20written\x20to\x20','1043218eEBcnX','generate-csr','4OwjzVe','join','start','16EHXRbj'];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(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a[y(0x180)]()[y(0x15c)]('(((.+)+)+)+$')[y(0x180)]()[y(0x178)](a97a)[y(0x15c)]('(((.+)+)+)+$');});a97a();import a97e from'fs';import a97f from'path';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x15c;let f=c[d];return f;},a97d(a,b);}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(0x170)]({'name':'ssl','usage':'maka\x20ssl\x20[command]','validOpts':[a97z(0x193),a97z(0x17a)],'requiredOpts':['env'],'shortDesc':a97z(0x163),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0x18e),a97z(0x17e),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const A=a97z,c=this[A(0x198)]['getMakaProjectConfig'](),d=this[A(0x198)]['getEnvFromShorthand'](b[A(0x16e)]),f=this['cfg']['getAppConfigPath'](d),g=this['fsi'][A(0x172)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x183))SSL['genCSR']({'keyName':c['appName']+'.key','csrName':c[A(0x188)]+A(0x169),'cwd':g});else{if(h===A(0x167)){if(!a97e[A(0x174)](a97f[A(0x185)](g,c[A(0x188)]+A(0x162))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a97f[A(0x185)](g,c['appName']+A(0x162));if(!a97e['existsSync'](a97f['join'](g,c['appName']+A(0x169))))throw A(0x165)+a97f['join'](g,c[A(0x188)]+A(0x169));SSL['genSSC']({'keyName':c['appName']+A(0x162),'crtName':c[A(0x188)]+'.crt','cwd':g}),Log[A(0x171)](A(0x181)+g);}else{if(h==='letsencrypt'){let i=b[A(0x193)],j=b[A(0x17a)];try{const q=a97e[A(0x18c)](a97f['join'](f,A(0x177)))[A(0x180)](),r=JSON[A(0x17b)](q);i=b[A(0x193)]?b[A(0x193)]:r[A(0x168)],j=b[A(0x17a)]?b[A(0x17a)]:r['emailUpdate'],(!b[A(0x17a)]||!b['domains'])&&Log[A(0x171)](A(0x179));}catch(s){}const k=JSON[A(0x17b)](a97e[A(0x18c)](f+A(0x15f))[A(0x180)]());Object['assign'](k,{'env':f}),Log[A(0x171)](A(0x191));try{const t=SSH[A(0x16b)](A(0x17d),k);if(!t)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(t)Log['success']('Remote\x20host\x20connection\x20successful');}catch(u){Log['error'](u);return;}const l=Log[A(0x18d)]();l[A(0x186)](A(0x173)),SSH[A(0x175)](A(0x194),{...k}),SSH[A(0x175)](A(0x190),{...k}),SSH[A(0x175)](A(0x16d),{...k}),l['success']();const m=i?i:await Actions['ask'](A(0x196)),n=j?j:await Actions[A(0x189)](A(0x15d));SSH[A(0x175)](A(0x16f)+m+A(0x160)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x166)](o,null,0x2);a97e[A(0x18a)](a97f['join'](f,A(0x177)),p);}else throw A(0x18f);}}}catch(v){console[A(0x15e)](v),process[A(0x195)](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(0xb0))/0x1*(parseInt(f(0xad))/0x2)+parseInt(f(0xb1))/0x3+-parseInt(f(0xa3))/0x4*(parseInt(f(0xa7))/0x5)+parseInt(f(0xa6))/0x6+parseInt(f(0xaf))/0x7*(-parseInt(f(0xac))/0x8)+-parseInt(f(0xa4))/0x9*(parseInt(f(0xa9))/0xa)+parseInt(f(0xaa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x85fdd));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0xa2)]()[h(0xa5)]('(((.+)+)+)+$')[h(0xa2)]()[h(0xa8)](a98a)[h(0xa5)](h(0xae));});function a98c(){var i=['3726cjKAQv','search','4105482hNupri','65Hqltoj','constructor','8410xRRYXB','10666898rrVEMU','apply','8rzRKeC','883112UOMTau','(((.+)+)+)+$','7082677ApVTMr','1rYTGew','2635254VcziIh','toString','56004ocCyRH'];a98c=function(){return i;};return a98c();}a98a();import'./test.command.js';import'./mocha.sub.cmd.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0xa2;var f=c[d];return f;},a98d(a,b);}import'./jest.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99q=a99d;(function(a,b){const o=a99d,c=a();while(!![]){try{const d=parseInt(o(0x8b))/0x1*(parseInt(o(0xb2))/0x2)+-parseInt(o(0xab))/0x3+-parseInt(o(0xb4))/0x4*(-parseInt(o(0x8f))/0x5)+-parseInt(o(0x97))/0x6+-parseInt(o(0x9a))/0x7+parseInt(o(0x9b))/0x8*(-parseInt(o(0xb8))/0x9)+parseInt(o(0xa0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x60ef3));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(0xbf)](p(0xb3))[p(0xb7)]()[p(0x94)](a99a)[p(0xbf)](p(0xb3));});a99a();import{Command}from'../../command.js';import a99e from'./test.command.js';function a99c(){const s=['Specify\x20a\x20custom\x20Jest\x20config\x20file','babel-jest','7522090wjacpU','/node_modules','getMakaProjectConfig','Runs\x20Jest\x20tests\x20in\x20the\x20specified\x20file\x20or\x20directory\x20with\x20optional\x20Jest\x20configurations,\x20including\x20coverage\x20reports.','coverage','template','join','babel.config.js','jest-css-modules-transform','Error\x20running\x20Jest:\x20','cfg','674466Ehtadl','success','**/?(*.)+(app-tests).[tj]s?(x)','@testing-library/react','Generate\x20test\x20coverage\x20report','jest-environment-jsdom','Update\x20Jest\x20snapshots','18ZBOmet','(((.+)+)+)+$','2648nmFxLG','graphql','jest','toString','7105599dnubMR','exit','runCLI','error','jsdom','Coverage\x20report\x20generated\x20in\x20the\x20\x22coverage\x22\x20directory.','fsi','search','<rootDir>/$1','scaffold','Run\x20only\x20failed\x20tests\x20from\x20the\x20last\x20run','config','eslint/babel.config.js','<rootDir>/packages','watch','pkg','engines','jest.config.js','onlyFailures','log','checkNpmPackage','test/jest/jest.setup.js','Run\x20tests\x20sequentially\x20in\x20the\x20same\x20process','84131rfFnLg','^.+\x5c.module\x5c.(css|sass|scss)$','updateSnapshot','@apollo/react-testing','1675vPgjNr','isFile','service','runInBand','clearCache','constructor','Clear\x20Jest\x20cache\x20before\x20running\x20tests','test/jest/jest.config.js','68130wbZfVG','create','findAppDirectory','2158989mQLiAK','8gfXyYs','identity-obj-proxy','Run\x20a\x20Jest\x20test\x20suite\x20with\x20custom\x20options'];a99c=function(){return s;};return a99c();}import a99f from'jest';import a99g from'path';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x83;let f=c[d];return f;},a99d(a,b);}Command[a99q(0x98)]({'name':'jest','usage':'maka\x20test:jest\x20<file|directory>\x20[--options]','shortDesc':a99q(0x9d),'description':a99q(0xa3),'mustBeInMakaProject':!![],'validOpts':[{'name':a99q(0xc6),'boolFlag':!![],'description':'Run\x20Jest\x20in\x20watch\x20mode'},{'name':'coverage','boolFlag':!![],'description':a99q(0xaf)},{'name':a99q(0x8d),'boolFlag':!![],'description':a99q(0xb1)},{'name':a99q(0x92),'boolFlag':!![],'description':a99q(0x8a)},{'name':a99q(0x86),'boolFlag':!![],'description':a99q(0xc2)},{'name':a99q(0xc3),'description':a99q(0x9e),'regex':/^.+\.js$/},{'name':a99q(0x93),'boolFlag':!![],'description':a99q(0x95)}]},async function(a,b){const r=a99q,c=this[r(0xbe)][r(0x99)](),d=this[r(0xbe)]['findProjectDirectory']();await this[r(0x83)][r(0x88)]([r(0xae),'@babel/plugin-syntax-jsx',r(0xa8),'identity-obj-proxy',r(0xb0)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});const e=this[r(0xaa)][r(0xa2)]();e[r(0x84)][r(0xb5)]==='apollo'&&await this[r(0x83)][r(0x88)]([r(0x8e)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});if(b[r(0x93)]){await a99f[r(0xba)]({'_':[],'$0':r(0xb6),'clearCache':!![]},[c]);return;}const f=a99g[r(0xa6)](d,r(0xc3),'jest.setup.js'),g=this[r(0xbe)][r(0x90)](f);!g&&await this[r(0xc1)][r(0xa5)]({'srcPath':r(0x89),'destPath':f,'framework':r(0x91),'context':{'noRename':!![]}});const h=a99g[r(0xa6)](c,r(0x85)),i=this[r(0xbe)][r(0x90)](h);!i&&await this[r(0xc1)][r(0xa5)]({'srcPath':r(0x96),'destPath':h,'framework':r(0x91),'context':{'noRename':!![]}});const j=a99g[r(0xa6)](c,r(0xa7)),k=this[r(0xbe)][r(0x90)](j);!k&&await this[r(0xc1)]['template']({'srcPath':r(0xc4),'destPath':j,'framework':r(0x91),'context':{'noRename':!![]}});const l={'_':a,'$0':r(0xb6),'testEnvironment':r(0xbc),'watch':b['watch']||![],'coverage':b['coverage']||![],'updateSnapshot':b[r(0x8d)]||![],'runInBand':b[r(0x92)]||![],'onlyFailures':b['onlyFailures']||![],'config':b[r(0xc3)]||undefined,'rootDir':c,'coverageDirectory':a99g['join'](d,r(0xa4)),'testPathIgnorePatterns':[r(0xa1),r(0xc5),'<rootDir>/public','<rootDir>/private'],'testMatch':[r(0xad)],'transform':{'^.+\x5c.(js|jsx|ts|tsx)$':r(0x9f),'.+\x5c.(css|styl|less|sass|scss)$':r(0xa8)},'transformIgnorePatterns':['/node_modules/',r(0x8c)],'setupFiles':[f],'moduleNameMapper':{'\x5c.(css|less|scss)$':r(0x9c),'^/(.*)$':r(0xc0)}};try{const {results:m}=await a99f[r(0xba)](l,[c]);m[r(0xac)]?(console[r(0x87)]('Tests\x20completed\x20successfully.'),b[r(0xa4)]&&console[r(0x87)](r(0xbd))):(console[r(0xbb)]('Some\x20tests\x20failed.'),process[r(0xb9)](0x1));}catch(n){console[r(0xbb)](r(0xa9)+n['message']),process[r(0xb9)](0x1);}},a99e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a100w=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=-parseInt(t(0x1ea))/0x1+-parseInt(t(0x1e4))/0x2*(-parseInt(t(0x1f5))/0x3)+parseInt(t(0x200))/0x4+-parseInt(t(0x1e9))/0x5+-parseInt(t(0x1ff))/0x6+parseInt(t(0x1f2))/0x7*(-parseInt(t(0x213))/0x8)+parseInt(t(0x1e5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x52503));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['toString']()['search'](u(0x21f))[u(0x226)]()[u(0x217)](a100a)[u(0x20c)](u(0x21f));});a100a();import a100e from'fs';import a100f from'path';import a100g from'dotenv';import{execSync}from'child_process';import a100h from'./test.command.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1da;let f=c[d];return f;},a100d(a,b);}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','toString','concat','This\x20project\x20does\x20not\x20have\x20a\x20mocha\x20test\x20driver','slice','fsi','mocha','notice','driverPackage','meteortesting:mocha','unit','Meteor\x20is\x20installed.','join','relative','8tNIWLZ','11391471MLMPny','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','config','--packages','1471425CpJesw','425157AZWlQi','once','inspect','jasmine','driver-package','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','maka\x20install\x20meteor\x20--force','test','2121322roGbPv','engines','rawLogs','469821QlcysQ','createFile','test-packages','--full-app','.maka','invokeMeteorCommand','checkConfigExists','port','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','settings','3126924gpWTyV','1166784IJgqWY','warn','testAppPath','config.json','forEach','findProjectDirectory','splice','isFile','isMeteorInstalled','processAndRunGenerator','cwd','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','search','openSync','filter','maka\x20test:mocha','cfg','local','readFileSync','16VrkuGH','pkg','mpi','@testing-library/dom\x20meteor-node-stubs\x20chai','constructor','inherit','--settings','create','getEnvFromShorthand','none','parse','env','(((.+)+)+)+$','--driver','driver','Node\x20Env\x20Config:\x20','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','sanjo:jasmine'];a100c=function(){return z;};return a100c();}const syncSource=function(a){const v=a100d;a100e[v(0x20d)](a,'r'),a100g[v(0x1e7)]({'path':a});};Command[a100w(0x21a)]({'name':a100w(0x1dc),'mustBeInMakaProject':!![],'validOpts':[a100w(0x1eb),'packages',a100w(0x221),a100w(0x1de),'unit',a100w(0x21e),a100w(0x1f4),a100w(0x1fc),a100w(0x1ec),a100w(0x202)],'usage':a100w(0x20f),'aliases':['m'],'shortDesc':a100w(0x223),'examples':[]},async function(a,b){const x=a100w;try{this['mpi'][x(0x208)]()?Log['notice'](x(0x1e1)):(Log[x(0x201)](x(0x1ef)),execSync(x(0x1f0),{'stdio':x(0x218)}));this[x(0x214)]['checkNpmPackage'](x(0x216),{'shouldInstall':!![]});const c=b['env']?this[x(0x210)][x(0x21b)](b[x(0x21e)]):x(0x211);(!b[x(0x1e0)]||!!b[x(0x1eb)])&&(a=a['concat']([x(0x1f8)]));b['unit']&&delete b[x(0x1e0)];let d=b[x(0x1ee)]||b[x(0x221)]||'none';if(d===x(0x21c)){const l=JSON[x(0x21d)](a100e[x(0x212)](a100f['join'](this[x(0x1db)][x(0x205)](),x(0x1f9),x(0x203)),'utf8'));if(l[x(0x1f3)]['test']===x(0x1ed))d=x(0x224);else l[x(0x1f3)][x(0x1f1)]===x(0x1dc)&&(d=x(0x1df));}if(d==='none')throw x(0x228);(!b[x(0x1ee)]||!b[x(0x221)])&&(a=a[x(0x227)](['--driver-package',d]));const f=this[x(0x210)][x(0x1fb)](x(0x211));if(!f){Log[x(0x201)](x(0x1fd));const m=this[x(0x1db)][x(0x205)]();await a100i[x(0x209)](x(0x1e7),[x(0x211)],{'cwd':m,'root':!![]});}const g=this['cfg']['getAppConfigPath'](c),h=a100f[x(0x1e2)](g,'process.env');let i=a100f[x(0x1e2)](g,'settings.json');b['settings']?i=b[x(0x1fe)]:i=a100f['join'](g,'settings.json');if(this[x(0x1db)]['isFile'](h)){const n=a100f[x(0x1e3)](process['cwd'](),h);Log[x(0x1dd)](x(0x222)+n),syncSource(h);}else{const o=a100f[x(0x1e3)](process['cwd'](),h);Log['info'](x(0x1e6)+o),this['fsi'][x(0x1f6)]({'filePath':h,'data':''});}if(this[x(0x1db)][x(0x207)](i)){const p=a100f[x(0x1e3)](process[x(0x20a)](),i);Log[x(0x1dd)]('Meteor\x20Settings:\x20'+p),a=a[x(0x227)]([x(0x219),i]);}else{const q=a100f[x(0x1e3)](process[x(0x20a)](),i);Log['warn'](x(0x20b)+q);}const j=process['argv'][x(0x1da)](0x2)[x(0x20e)](r=>r!=='--env')[x(0x20e)](r=>r!==x(0x1f1))[x(0x20e)](r=>r!==a[0x0]);j[x(0x204)]((r,s)=>{const y=x;(r===y(0x225)||r===y(0x220))&&j['splice'](s,0x2),r===y(0x1e8)&&j[y(0x206)](s,0x1);});const k=b['packages']?x(0x1f7):x(0x1f1);await this[x(0x215)][x(0x1fa)](k,a[x(0x227)](j));}catch(r){console['error'](r),process['exit'](0x0);}},a100h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1bf;let f=c[d];return f;},a101d(a,b);}const a101h=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0x1d0))/0x1+parseInt(f(0x1bf))/0x2*(-parseInt(f(0x1c5))/0x3)+-parseInt(f(0x1c1))/0x4+-parseInt(f(0x1cd))/0x5+parseInt(f(0x1cf))/0x6*(-parseInt(f(0x1cc))/0x7)+parseInt(f(0x1d1))/0x8*(parseInt(f(0x1c3))/0x9)+parseInt(f(0x1c9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x9c6de));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const g=a101d;return a101a[g(0x1ce)]()[g(0x1cb)](g(0x1c0))[g(0x1ce)]()[g(0x1c6)](a101a)['search'](g(0x1c0));});a101a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a101c(){const i=['constructor','Run\x20a\x20Meteor\x20Test\x20Driver','create','20085800nHkVkz','test','search','63bPSaQe','2905645ohGlCx','toString','297054pqTxxB','325239NrdSDh','24ToooBw','62ekifnB','(((.+)+)+)+$','4175008aWSedP','\x0a\x20\x20\x20\x20Run\x20a\x20meteor\x20test\x20driver,\x20or\x20utilize\x20a\x20headless\x20test\x20suite.\x0a\x20\x20','3269007ZxAZuM','maka\x20test:<sub-command>','5982DTeDXw'];a101c=function(){return i;};return a101c();}const TestCommand=Command[a101h(0x1c8)]({'name':a101h(0x1ca),'usage':a101h(0x1c4),'shortDesc':a101h(0x1c7),'description':a101h(0x1c2),'validOpts':[]},async function(){throw UsageError;});export default TestCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a102c(){var k=['search','81dbjzVc','2861394AIrZoW','2773964afbAAU','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','(((.+)+)+)+$','5IFtQga','15301iFGkhe','1078120hszuGQ','14147RxgiGr','1qvSEcr','4904PjugHQ','1732246eDQUqW','apply','toString','1828206gnMUSy','undo','10632tFTlcm'];a102c=function(){return k;};return a102c();}var a102i=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=parseInt(f(0x116))/0x1*(parseInt(f(0x118))/0x2)+parseInt(f(0x120))/0x3+parseInt(f(0x121))/0x4+-parseInt(f(0x112))/0x5*(parseInt(f(0x11b))/0x6)+parseInt(f(0x115))/0x7*(-parseInt(f(0x117))/0x8)+-parseInt(f(0x11f))/0x9*(-parseInt(f(0x114))/0xa)+parseInt(f(0x113))/0xb*(-parseInt(f(0x11d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xacc88));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0x11a)]()[h(0x11e)](h(0x111))[h(0x11a)]()['constructor'](a102a)[h(0x11e)](h(0x111));});a102a();import{Command}from'../command.js';function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x111;var f=c[d];return f;},a102d(a,b);}import a102e from'../generators/maka.gen.js';Command['create']({'name':a102i(0x11c),'aliases':['u'],'validOpts':[],'shortDesc':a102i(0x122),'experimental':!![]},async function(){var j=a102i;a102e[j(0x11c)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-
|
|
1
|
+
const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=-parseInt(h(0xdd))/0x1*(parseInt(h(0xe6))/0x2)+-parseInt(h(0xee))/0x3+parseInt(h(0xef))/0x4*(-parseInt(h(0xe9))/0x5)+-parseInt(h(0xd1))/0x6*(-parseInt(h(0xce))/0x7)+parseInt(h(0xdf))/0x8+parseInt(h(0xe7))/0x9+parseInt(h(0xe8))/0xa*(-parseInt(h(0xd6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xe72b6));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0xcf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0xd3)]()['search'](j(0xea))[j(0xd3)]()[j(0xe1)](a103a)[j(0xed)](j(0xea));});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0xce;let f=c[d];return f;},a103d(a,b);}a103a();import a103e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a103k(0xd2)};function a103c(){const m=['35mdFwnk','apply','----------------------System----------------------------','647418OXovNM','5.1.10','toString','version','warn','2320373ttQaFb','Maka\x20','error','Project\x27s\x20Meteor\x20Version\x20','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','replace','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','1varFXK','exit','9928624reEhmb','maka\x20version','constructor','mpi','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','maka\x20v','bright','26284CmsYHV','13115664EKfdcQ','20CgjFhJ','5EcCWJD','(((.+)+)+)+$','\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','System\x27s\x20Meteor\x20Version\x20','search','1375086ejCdFK','5590516XnCqOk','fsi','getProjectMeteorVersion','verbose','majestic','compareMakaToLatest','notice','getGlobalMeteorVersion','\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','----------------------Project----------------------------'];a103c=function(){return m;};return a103c();}Command['create']({'name':a103k(0xd4),'aliases':['v'],'usage':a103k(0xe0),'maxArgLength':0x1,'validOpts':[a103k(0xf2)],'shortDesc':a103k(0xdc),'examples':[a103k(0xe4),a103k(0xe0)],'description':a103k(0xeb)},async function(a,b){const l=a103k;try{Log[l(0xf3)](l(0xd7)+pjson['version']),await this[l(0xf0)]['compareMakaToLatest']();if(b['verbose']){await this['fsi'][l(0xf4)](),Log[l(0xe5)](l(0xd0));const c=this[l(0xe2)][l(0xf6)]();Log[l(0xe5)]((l(0xec)+c)['replace']('\x0a',''));if(this[l(0xf0)]['isMakaProject']()){Log[l(0xe5)](l(0xf8));const d=this[l(0xf0)][l(0xf1)]();try{!a103e['valid'](d)?Log[l(0xd5)](l(0xd9)+d[l(0xdb)]('\x0a','')):Log[l(0xf5)](l(0xd9)+d['replace']('\x0a',''));}catch(f){Log[l(0xd8)](l(0xe3)+f),Log[l(0xd8)](l(0xda));}Log[l(0xe5)](l(0xf7));}}}catch(g){console['error'](g),process[l(0xde)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -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(0x115))/0x1+-parseInt(f(0x118))/0x2*(parseInt(f(0x111))/0x3)+-parseInt(f(0x10d))/0x4+parseInt(f(0x116))/0x5+-parseInt(f(0x10c))/0x6*(parseInt(f(0x114))/0x7)+parseInt(f(0x110))/0x8*(parseInt(f(0x112))/0x9)+parseInt(f(0x10e))/0xa*(-parseInt(f(0x113))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xd6184));var a104b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a104d;if(c){var e=c[g(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){var h=a104d;return a104a[h(0x117)]()[h(0x11a)](h(0x10f))['toString']()['constructor'](a104a)['search']('(((.+)+)+)+$');});a104a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}function a104c(){var i=['2208430oRHLlL','toString','154aKcnnQ','apply','search','308346YnshIC','2954820ReALDR','20TrcrtV','(((.+)+)+)+$','365576MmfvlQ','4407jjjfbf','333skNkZs','7885240NOjTNX','7SqSqCG','1081346VVccWN'];a104c=function(){return i;};return a104c();}export class NoMeteorFoundError{}function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x10c;var f=c[d];return f;},a104d(a,b);}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d
|
|
2
|
+
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=-parseInt(h(0x164))/0x1+-parseInt(h(0x161))/0x2*(parseInt(h(0x163))/0x3)+-parseInt(h(0x150))/0x4*(-parseInt(h(0x14e))/0x5)+-parseInt(h(0x155))/0x6+-parseInt(h(0x14f))/0x7*(-parseInt(h(0x15b))/0x8)+parseInt(h(0x162))/0x9+-parseInt(h(0x152))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x4f6d5));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a[j(0x14c)]()[j(0x151)](j(0x159))[j(0x14c)]()['constructor'](a105a)[j(0x151)](j(0x159));});function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x14c;let f=c[d];return f;},a105d(a,b);}a105a();import a105e from'path';import a105f from'os';import a105g from'fs';const homeDir=a105f[a105k(0x153)](),GLOBAL_CONFIG=a105k(0x158),pathToGlobalMakaConfig=a105e[a105k(0x160)](homeDir,a105k(0x154),a105k(0x15c),GLOBAL_CONFIG);if(!a105g[a105k(0x14d)](pathToGlobalMakaConfig)){const jsonData=JSON[a105k(0x15f)]({},null,0x2);a105g[a105k(0x15d)](pathToGlobalMakaConfig,jsonData);}process[a105k(0x15a)][a105k(0x157)]=a105k(0x156);function a105c(){const l=['190775gXEkWN','toString','existsSync','70RaMioa','91bGqFlJ','177104yxOGWt','search','3520200ObdNDU','homedir','.meteor','2613768UksQDR','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','NODE_OPTIONS','global-config.json','(((.+)+)+)+$','env','203768LfXCQH','.maka','writeFileSync','apply','stringify','join','6BPNZiV','4066272VXYzsd','99039ymafYI'];a105c=function(){return l;};return a105c();}import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a106c(){const N=['resourceName','select','validateParams','chdir','success','307992VSDxHs','assign','forEach','name','config','localeCompare','There\x20is\x20no\x20Meteor\x20application\x20here','join','5ARDGrr','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','exit','Generator.create\x20requires\x20some\x20options!','resourceNameRequired','readHistory','replace','generatorName','(((.+)+)+)+$','minOptsLength','size','statSync','\x20not\x20found','shortDesc','addGenerator','_handler','validateMeteorInstall','_historyFilePath','addToHistory','find','writeHistory','findGeneratorByName','_generators','Generator\x20','includes','bind','root','history.json','constructor','error','writeFileSync','both','projectConfig','details','pallet','lib','LIGHT','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','.maka','options','sep','pop','Server','length','cfg','transactionId','\x20not\x20found.\x20Cannot\x20undo.','35nIHSem','2200180UubjDm','listGenerators','Name','(experimental)\x20','mustHaveMeteorInstalled','parse','dir','appPathPrefix','_undoHandler','414399uZnQID','cwd','Too\x20few\x20options','apply','getHistoryFileSize','call','Both','readFileSync','params','fullNameChain','Alias','maxOptsLength','aliases','1909359KMPGsW','705246HkRgUq','opts','message','validateEngines','where','Generator\x20not\x20found','fsi','Generator\x20requires\x20a\x20handler\x20function','Location','light','number','tableList','invoke','search','Too\x20few\x20arguments','experimental','findProjectDirectory','split','Generators:','Generator\x20format\x20is\x20incorrect','mustBeInMakaProject','warn','map','keys','existsSync','push','6421617hkPbcv','server','\x20generator.\x20Skipping\x20undo.','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','usage','Too\x20many\x20arguments','getGlobalConfig','stringify','help','No\x20undo\x20handler\x20defined\x20for\x20','requiredEngines','pathFromProject','function','notice','checkWhere','shift','match','toString','client','Generator\x20requires\x20a\x20name','filter','Too\x20many\x20options','940014vAuBVH','deepen','DARK','getMakaProjectConfig','No\x20resource\x20name\x20specified','maxArgLength'];a106c=function(){return N;};return a106c();}const a106v=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=parseInt(r(0x1ed))/0x1+-parseInt(r(0x1a1))/0x2+parseInt(r(0x1fa))/0x3+parseInt(r(0x1e4))/0x4+-parseInt(r(0x1b4))/0x5*(parseInt(r(0x1fb))/0x6)+parseInt(r(0x1e3))/0x7*(parseInt(r(0x1ac))/0x8)+-parseInt(r(0x18b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x7832b));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a106d;if(c){const e=c[s(0x1f0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const t=a106d;return a106a[t(0x19c)]()[t(0x17e)](t(0x1bc))['toString']()[t(0x1d0)](a106a)['search'](t(0x1bc));});a106a();import a106e from'path';import a106f from'fs';import a106g from'cli-table';import{v4 as a106h}from'uuid';import{kebabCase}from'change-case';import a106i 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=a106h();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x17d;let f=c[d];return f;},a106d(a,b);}async function inside(a='.',b){const u=a106d,c=process[u(0x1ee)]();try{return process['chdir'](a),await b();}finally{process[u(0x1aa)](c);}}export class Generator extends Tool{[a106v(0x1db)];[a106v(0x1f6)];[a106v(0x1d4)];[a106v(0x1ca)];[a106v(0x1c5)];[a106v(0x1ec)];['_genTransactionId'];[a106v(0x1c3)];constructor(a,b,c){const w=a106v;super();if(!a)throw new Error(w(0x1b5));if(!a['name'])throw new Error(w(0x19e));if(typeof b!==w(0x197))throw new Error(w(0x202));this[w(0x1ca)]=[];a[w(0x1b8)]===undefined&&(a[w(0x1b8)]=!![]);this['options']=Object[w(0x1ad)]({},a),this[w(0x1af)]=this[w(0x1db)][w(0x1af)],this[w(0x1c3)]=b[w(0x1cd)](this);try{this['_historyFilePath']=this[w(0x201)][w(0x196)]({'pathParts':['.maka',w(0x1cf)]})||a106e[w(0x1b3)]('.',w(0x1da),w(0x1cf));}catch(d){Log[w(0x1d1)](d);}c&&(this[w(0x1ec)]=c[w(0x1cd)](this));}[a106v(0x1f1)](){const x=a106v;if(a106f[x(0x189)](this[x(0x1c5)])){const a=a106f[x(0x1bf)](this[x(0x1c5)]);return a[x(0x1be)];}return 0x0;}[a106v(0x1b9)](){const y=a106v;if(!a106f[y(0x189)](this[y(0x1c5)]))return[];return JSON[y(0x1e9)](a106f[y(0x1f4)](this[y(0x1c5)],'utf-8'));}[a106v(0x1c8)](a){const z=a106v;this[z(0x1c5)]&&!a106f[z(0x189)](this['_historyFilePath'])&&a106f[z(0x1d2)](this[z(0x1c5)],JSON['stringify']([])),a106f[z(0x1d2)](this[z(0x1c5)],JSON[z(0x192)](a,null,0x2));}[a106v(0x1c6)](a){const A=a106v;try{a?.[A(0x1f5)]?.[A(0x1fc)][A(0x1b0)]&&delete a[A(0x1f5)]['opts'][A(0x1b0)];const b=this['readHistory'](),c={'generatorName':this[A(0x1f6)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x18a)](c);const d=Buffer['from'](JSON[A(0x192)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x1df)]>0x0){b[A(0x19a)]();}this['writeHistory'](b);}catch(f){Log[A(0x1d1)](f);}}async['undo'](){const B=a106v,a=this[B(0x1b9)]();if(a['length']===0x0){Log['warn']('Nothing\x20to\x20undo.');return;}const b=a[B(0x1dd)](),c=b[B(0x1e1)],d=a[B(0x19f)](e=>e[B(0x1e1)]===c);d[B(0x18a)](b),d['reverse']();for(const e of d){const f=this[B(0x1c9)](e[B(0x1bb)]);if(!f){Log['error'](B(0x1cb)+e[B(0x1bb)]+B(0x1e2));continue;}if(f[B(0x1ec)]){}else Log[B(0x186)](B(0x194)+e[B(0x1bb)]+B(0x18d));}this['writeHistory'](a[B(0x19f)](g=>g['transactionId']!==c));}static['create'](a,b,c,d){const C=a106v;if(!a)throw new Error(C(0x1b7));if(typeof b!==C(0x197))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b,c);d=d||a106i;const f=d?d[C(0x1f6)]:'';return e[C(0x1f6)]=f?f+':'+a['name']:a[C(0x1af)],Object[C(0x1ad)](e,{'parent':d?.[C(0x1db)]?.[C(0x1af)]}),d[C(0x1c2)](e),e;}[a106v(0x1c2)](a){const D=a106v;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][D(0x18a)](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a106v;let d;try{const f=a?.[E(0x182)](':');if(!f||f[E(0x1df)]===0x0)throw E(0x184);let g=this['_generators'],h;for(const i of f){h=g[E(0x1c7)](j=>j[E(0x19b)](i));if(!h)throw'Generator\x20'+i+E(0x1c0);g=h[E(0x1ca)];}if(h)d=await h[E(0x17d)](b,c);else throw E(0x200);}catch(j){Log[E(0x1d1)](j);}return d;}[a106v(0x1c9)](a){const F=a106v,b=a?.[F(0x182)](':');if(!b||b[F(0x1df)]===0x0)return Log['error']('Generator\x20format\x20is\x20incorrect'),null;let c=this['_generators'],d;for(const e of b){d=c['find'](f=>f['match'](e));if(!d)return Log[F(0x1d1)]('Generator\x20'+e+F(0x1c0)),null;c=d[F(0x1ca)];}return d||null;}async['invoke'](a,b){const G=a106v,c=a['slice']();b[G(0x1a7)]=c[0x0];const {config:d}=b;try{const f=await this[G(0x1e0)][G(0x191)](),g=f[G(0x1d6)]===G(0x204)?ColorMode[G(0x1d8)]:ColorMode[G(0x1a3)];Log['setColorMode'](g);const h=a[0x0]===_prevGen||a[G(0x1df)]===0x0&&this[G(0x1ca)][G(0x1df)]>=0x0,i=b[G(0x193)]||b['h'];if(h&&i){if(this[G(0x1ca)][G(0x1df)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x1db)][G(0x185)]){if(!d){const j=this['validateMakaProject']();if(!j)throw new MustBeInProjectError();this[G(0x1d4)]=this[G(0x1e0)][G(0x1a4)]();}else this[G(0x1d4)]=d;}if(this['options'][G(0x1e8)]){const k=this[G(0x1c4)]();if(!k)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===G(0x205)){if(a[G(0x1df)]<this['options']['minArgLength']){Log[G(0x1d1)](G(0x17f));throw new UsageError();}}if(typeof this[G(0x1db)][G(0x1a6)]===G(0x205)){if(a[G(0x1df)]>this[G(0x1db)][G(0x1a6)]){Log[G(0x1d1)](G(0x190));throw new UsageError();}}if(typeof this[G(0x1db)][G(0x1bd)]===G(0x205)){if(Object[G(0x188)](b)[G(0x1df)]<this[G(0x1db)][G(0x1bd)]){Log['error'](G(0x1ef));throw new UsageError();}}if(typeof this['options']['maxOptsLength']==='number'){if(Object['keys'](b)[G(0x1df)]>=this[G(0x1db)][G(0x1f8)]){Log['error'](G(0x1a0));throw new UsageError();}}}this['options'][G(0x195)]&&this[G(0x1fe)](this[G(0x1db)][G(0x195)]);await this[G(0x1a9)](a,b,this[G(0x1db)]);if(!b[G(0x1a7)]&&this[G(0x1db)]['resourceNameRequired']){Log[G(0x1d1)](G(0x1a5));throw new UsageError();}_prevGen=a[0x0];}catch(l){this['handleGenerateError'](l),process[G(0x1b6)](0x1);}return await inside(b[G(0x1ee)],async()=>{const H=G;try{if(!b[H(0x1ce)]&&!this[H(0x201)][H(0x181)]())throw new MustBeInProjectError();const m=b['resourceName']?.[H(0x1ba)](/\\/g,'/')[H(0x182)]('/');!b[H(0x1ea)]&&(m?.[H(0x1df)]>0x1?(b[H(0x1a7)]=m['pop'](),c[0x0]=b[H(0x1a7)],b['dir']=m[H(0x187)](o=>{return kebabCase(o);})[H(0x1b3)](a106e[H(0x1dc)])):b[H(0x1ea)]='');if(this[H(0x1db)][H(0x199)]){if(!b['where']){const p=await Actions[H(0x1a8)]({'message':H(0x203),'name':'colLocAnswer','choices':[{'name':'Client','value':'client'},{'name':H(0x1de),'value':H(0x18c)},{'name':H(0x1f3),'value':H(0x1d3)}]});b['where']=p;}const o=[H(0x1d3),H(0x19d),H(0x18c)];if(!o[H(0x1cc)](b[H(0x1ff)])){Log[H(0x1d1)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[H(0x1ff)]){case H(0x1d3):b[H(0x1eb)]=H(0x1d7);break;case H(0x18c):b['appPathPrefix']='server';break;case'client':b[H(0x1eb)]=H(0x19d);break;default:b[H(0x1eb)]='';}}const n=await this[H(0x1c3)][H(0x1f2)](this,c,b);return n&&this[H(0x1c6)]({'params':{'args':c,'opts':this['fsi'][H(0x1a2)](b)},'success':n?.[H(0x1ab)],'message':n?.[H(0x1fd)],'details':n?.[H(0x1d5)]}),n;}catch(q){this['handleGenerateError'](q);}});}[a106v(0x1e5)](){const I=a106v;this[I(0x206)](this[I(0x1ca)]);}['handleGenerateError'](a){const J=a106v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x1db)];Log[J(0x18f)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log['notice'](J(0x183)),this['tableList'](this['_generators']);else{if(a instanceof MustBeInProjectError)Log['error'](J(0x1d9));else{if(a instanceof NoMeteorFoundError)Log[J(0x1d1)](J(0x18e)),Log[J(0x198)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[J(0x1d1)](J(0x1b2));}}}[a106v(0x206)](a){const K=a106v,b=new a106g({});b[K(0x18a)]([K(0x1e6),K(0x1f7),'Description']),a['sort']((c,d)=>{const L=K;return c[L(0x1af)][L(0x1b1)](d[L(0x1af)]);})[K(0x1ae)](c=>{const M=K,d=c[M(0x180)](),e=d?M(0x1e7)+c[M(0x1c1)]():c[M(0x1c1)]();b[M(0x18a)]([c['name'],c[M(0x1f9)](),e]);}),Log['bright'](b[K(0x19c)]());}}
|
|
1
|
+
const a106u=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=-parseInt(r(0xfd))/0x1+parseInt(r(0x100))/0x2*(-parseInt(r(0x120))/0x3)+parseInt(r(0x133))/0x4+-parseInt(r(0xbe))/0x5+parseInt(r(0xe3))/0x6*(-parseInt(r(0xef))/0x7)+-parseInt(r(0x128))/0x8+parseInt(r(0x107))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xf2795));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 s=a106d;return a106a[s(0xbc)]()[s(0xce)](s(0x136))[s(0xbc)]()['constructor'](a106a)[s(0xce)]('(((.+)+)+)+$');});a106a();import a106e from'path';import a106f from'fs';import a106g from'cli-table';import{v4 as a106h}from'uuid';import{kebabCase}from'change-case';import a106i 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=a106h();async function inside(a='.',b){const t=a106d,c=process[t(0x12d)]();try{return process[t(0xb0)](a),await b();}finally{process[t(0xb0)](c);}}function a106c(){const M=['findGeneratorByName','\x20generator.\x20Skipping\x20undo.','shift','\x20not\x20found','where','name','minOptsLength','dir','message','.maka','Generator\x20','7DEjMlc','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','opts','bind','includes','Generator.create\x20requires\x20a\x20handler\x20function!','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','forEach','details','pop','Alias','checkWhere','setColorMode','Location','970602xfcAKZ','Generator\x20not\x20found','function','358ZWDcbO','join','DARK','invoke','resourceName','call','Generator\x20format\x20is\x20incorrect','34451406sHOVPi','params','config','number','match','sort','length','replace','fsi','error','assign','projectConfig','maxArgLength','writeFileSync','options','stringify','requiredEngines','processAndRunGenerator','help','_generators','_historyFilePath','_handler','from','utf-8','sep','26853DfPutt','exit','shortDesc','keys','addToHistory','mustBeInMakaProject','history.json','No\x20resource\x20name\x20specified','11340320exiLEE','filter','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','statSync','pathFromProject','cwd','find','generatorName','Generators:','fullNameChain','writeHistory','5814312FZHQbH','Generator\x20requires\x20a\x20handler\x20function','colLocAnswer','(((.+)+)+)+$','existsSync','chdir','server','Too\x20few\x20options','light','notice','handleGenerateError','size','appPathPrefix','Too\x20many\x20arguments','\x20not\x20found.\x20Cannot\x20undo.','cfg','There\x20is\x20no\x20Meteor\x20application\x20here','toString','lib','513135QDgfCM','(experimental)\x20','Both','Generator.create\x20requires\x20some\x20options!','parse','getGlobalConfig','Nothing\x20to\x20undo.','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','_undoHandler','listGenerators','Server','map','validateParams','select','findProjectDirectory','validateMeteorInstall','search','deepen','root','transactionId','pallet','split','minArgLength','Generator\x20requires\x20a\x20name','both','tableList','client','Please\x20run\x20\x22maka\x20install\x20meteor\x22','warn','addGenerator\x20requires\x20a\x20Generator\x20instance','readHistory','mustHaveMeteorInstalled','push','maxOptsLength','resourceNameRequired','Description','usage','1172046mNqysm'];a106c=function(){return M;};return a106c();}function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xb0;let f=c[d];return f;},a106d(a,b);}export class Generator extends Tool{['options'];[a106u(0x131)];[a106u(0x112)];['_generators'];[a106u(0x11b)];[a106u(0xc6)];['_genTransactionId'];[a106u(0x11c)];constructor(a,b,c){const v=a106u;super();if(!a)throw new Error(v(0x12a));if(!a[v(0xe9)])throw new Error(v(0xd5));if(typeof b!==v(0xff))throw new Error(v(0x134));this[v(0x11a)]=[];a[v(0xe0)]===undefined&&(a['resourceNameRequired']=!![]);this[v(0x115)]=Object[v(0x111)]({},a),this['name']=this[v(0x115)][v(0xe9)],this[v(0x11c)]=b[v(0xf2)](this);try{this[v(0x11b)]=this[v(0x10f)][v(0x12c)]({'pathParts':[v(0xed),'history.json']})||a106e[v(0x101)]('.',v(0xed),v(0x126));}catch(d){Log['error'](d);}c&&(this['_undoHandler']=c[v(0xf2)](this));}['getHistoryFileSize'](){const w=a106u;if(a106f[w(0x137)](this[w(0x11b)])){const a=a106f[w(0x12b)](this[w(0x11b)]);return a[w(0xb6)];}return 0x0;}[a106u(0xdc)](){const x=a106u;if(!a106f[x(0x137)](this['_historyFilePath']))return[];return JSON[x(0xc2)](a106f['readFileSync'](this[x(0x11b)],x(0x11e)));}[a106u(0x132)](a){const y=a106u;this['_historyFilePath']&&!a106f[y(0x137)](this[y(0x11b)])&&a106f[y(0x114)](this[y(0x11b)],JSON[y(0x116)]([])),a106f[y(0x114)](this[y(0x11b)],JSON[y(0x116)](a,null,0x2));}[a106u(0x124)](a){const z=a106u;try{a?.[z(0x108)]?.['opts']['config']&&delete a[z(0x108)][z(0xf1)][z(0x109)];const b=this[z(0xdc)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[z(0xde)](c);const d=Buffer[z(0x11d)](JSON['stringify'](b))['length'];while(d>MAX_HISTORY_SIZE&&b[z(0x10d)]>0x0){b[z(0xe6)]();}this[z(0x132)](b);}catch(f){Log[z(0x110)](f);}}async['undo'](){const A=a106u,a=this[A(0xdc)]();if(a[A(0x10d)]===0x0){Log[A(0xda)](A(0xc4));return;}const b=a[A(0xf8)](),c=b[A(0xd1)],d=a[A(0x129)](e=>e['transactionId']===c);d[A(0xde)](b),d['reverse']();for(const e of d){const f=this[A(0xe4)](e[A(0x12f)]);if(!f){Log[A(0x110)](A(0xee)+e[A(0x12f)]+A(0xb9));continue;}if(f[A(0xc6)]){}else Log[A(0xda)]('No\x20undo\x20handler\x20defined\x20for\x20'+e['generatorName']+A(0xe5));}this['writeHistory'](a[A(0x129)](g=>g[A(0xd1)]!==c));}static['create'](a,b,c,d){const B=a106u;if(!a)throw new Error(B(0xc1));if(typeof b!==B(0xff))throw new Error(B(0xf4));const e=new Generator(a,b,c);d=d||a106i;const f=d?d[B(0x131)]:'';return e['fullNameChain']=f?f+':'+a[B(0xe9)]:a['name'],Object[B(0x111)](e,{'parent':d?.[B(0x115)]?.[B(0xe9)]}),d['addGenerator'](e),e;}['addGenerator'](a){const C=a106u;if(!(a instanceof Generator))throw new Error(C(0xdb));this[C(0x11a)][C(0xde)](a);}async[a106u(0x118)](a,b=[],c={}){const D=a106u;let d;try{const f=a?.[D(0xd3)](':');if(!f||f[D(0x10d)]===0x0)throw D(0x106);let g=this[D(0x11a)],h;for(const i of f){h=g[D(0x12e)](j=>j[D(0x10b)](i));if(!h)throw D(0xee)+i+D(0xe7);g=h[D(0x11a)];}if(h)d=await h[D(0x103)](b,c);else throw D(0xfe);}catch(j){Log[D(0x110)](j);}return d;}[a106u(0xe4)](a){const E=a106u,b=a?.[E(0xd3)](':');if(!b||b['length']===0x0)return Log['error'](E(0x106)),null;let c=this[E(0x11a)],d;for(const e of b){d=c[E(0x12e)](f=>f[E(0x10b)](e));if(!d)return Log['error'](E(0xee)+e+E(0xe7)),null;c=d[E(0x11a)];}return d||null;}async[a106u(0x103)](a,b){const F=a106u,c=a['slice']();b[F(0x104)]=c[0x0];const {config:d}=b;try{const f=await this[F(0xba)][F(0xc3)](),g=f[F(0xd2)]===F(0xb3)?ColorMode['LIGHT']:ColorMode[F(0x102)];Log[F(0xfb)](g);const h=a[0x0]===_prevGen||a[F(0x10d)]===0x0&&this[F(0x11a)][F(0x10d)]>=0x0,i=b[F(0x119)]||b['h'];if(h&&i){if(this[F(0x11a)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[F(0x115)][F(0x125)]){if(!d){const j=this['validateMakaProject']();if(!j)throw new MustBeInProjectError();this['projectConfig']=this['cfg']['getMakaProjectConfig']();}else this['projectConfig']=d;}if(this[F(0x115)][F(0xdd)]){const k=this[F(0xcd)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[F(0x115)][F(0xd4)]==='number'){if(a[F(0x10d)]<this[F(0x115)][F(0xd4)]){Log[F(0x110)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x115)]['maxArgLength']==='number'){if(a[F(0x10d)]>this[F(0x115)][F(0x113)]){Log[F(0x110)](F(0xb8));throw new UsageError();}}if(typeof this[F(0x115)]['minOptsLength']===F(0x10a)){if(Object[F(0x123)](b)[F(0x10d)]<this['options'][F(0xea)]){Log[F(0x110)](F(0xb2));throw new UsageError();}}if(typeof this[F(0x115)][F(0xdf)]==='number'){if(Object[F(0x123)](b)[F(0x10d)]>=this[F(0x115)][F(0xdf)]){Log[F(0x110)]('Too\x20many\x20options');throw new UsageError();}}}this[F(0x115)][F(0x117)]&&this['validateEngines'](this['options']['requiredEngines']);await this[F(0xca)](a,b,this['options']);if(!b[F(0x104)]&&this[F(0x115)]['resourceNameRequired']){Log[F(0x110)](F(0x127));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[F(0xb5)](l),process[F(0x121)](0x1);}return await inside(b[F(0x12d)],async()=>{const G=F;try{if(!b[G(0xd0)]&&!this[G(0x10f)][G(0xcc)]())throw new MustBeInProjectError();const m=b[G(0x104)]?.[G(0x10e)](/\\/g,'/')[G(0xd3)]('/');!b[G(0xeb)]&&(m?.[G(0x10d)]>0x1?(b['resourceName']=m[G(0xf8)](),c[0x0]=b[G(0x104)],b[G(0xeb)]=m[G(0xc9)](o=>{return kebabCase(o);})[G(0x101)](a106e[G(0x11f)])):b[G(0xeb)]='');if(this[G(0x115)][G(0xfa)]){if(!b[G(0xe8)]){const p=await Actions[G(0xcb)]({'message':G(0xfc),'name':G(0x135),'choices':[{'name':'Client','value':G(0xd8)},{'name':G(0xc8),'value':G(0xb1)},{'name':G(0xc0),'value':G(0xd6)}]});b[G(0xe8)]=p;}const o=['both',G(0xd8),G(0xb1)];if(!o[G(0xf3)](b['where'])){Log[G(0x110)](G(0xf5));throw new UsageError();}switch(b[G(0xe8)]){case'both':b[G(0xb7)]=G(0xbd);break;case G(0xb1):b[G(0xb7)]=G(0xb1);break;case G(0xd8):b['appPathPrefix']='client';break;default:b[G(0xb7)]='';}}const n=await this['_handler'][G(0x105)](this,c,b);return n&&this[G(0x124)]({'params':{'args':c,'opts':this[G(0x10f)][G(0xcf)](b)},'success':n?.['success'],'message':n?.[G(0xec)],'details':n?.[G(0xf7)]}),n;}catch(q){this[G(0xb5)](q);}});}[a106u(0xc7)](){const H=a106u;this[H(0xd7)](this[H(0x11a)]);}['handleGenerateError'](a){const I=a106u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x115)];Log[I(0xe2)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log['notice'](I(0x130)),this['tableList'](this[I(0x11a)]);else{if(a instanceof MustBeInProjectError)Log[I(0x110)](I(0xc5));else{if(a instanceof NoMeteorFoundError)Log[I(0x110)](I(0xf0)),Log[I(0xb4)](I(0xd9));else a instanceof NoMeteorAppFoundError&&Log[I(0x110)](I(0xbb));}}}[a106u(0xd7)](a){const J=a106u,b=new a106g({});b[J(0xde)](['Name',J(0xf9),J(0xe1)]),a[J(0x10c)]((c,d)=>{const K=J;return c[K(0xe9)]['localeCompare'](d[K(0xe9)]);})[J(0xf6)](c=>{const L=J,d=c['experimental'](),e=d?L(0xbf)+c['shortDesc']():c[L(0x122)]();b[L(0xde)]([c[L(0xe9)],c['aliases'](),e]);}),Log['bright'](b[J(0xbc)]());}}
|
|
@@ -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(0x14f))/0x1+parseInt(f(0x14c))/0x2*(parseInt(f(0x14b))/0x3)+parseInt(f(0x142))/0x4+-parseInt(f(0x14d))/0x5*(parseInt(f(0x143))/0x6)+parseInt(f(0x148))/0x7*(parseInt(f(0x14a))/0x8)+parseInt(f(0x150))/0x9*(-parseInt(f(0x14e))/0xa)+parseInt(f(0x144))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x876f6));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x149)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0x146)]()['search'](h(0x145))[h(0x146)]()[h(0x147)](a107a)[h(0x151)](h(0x145));});a107a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';function a107c(){var i=['5238002mFdIna','(((.+)+)+)+$','toString','constructor','7cqAZgw','apply','7276056LTBzwl','513jhrYay','2644jEEWkm','535niFLpd','162820jrHJoY','404352UjUWbr','459iWssJs','search','1999608jDcbLw','18066EFkHZY'];a107c=function(){return i;};return a107c();}import'./config.js';import'./dbc.js';function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x142;var f=c[d];return f;},a107d(a,b);}import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108A=a108d;(function(a,b){const x=a108d,c=a();while(!![]){try{const d=parseInt(x(
|
|
1
|
+
const a108A=a108d;function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x134;let f=c[d];return f;},a108d(a,b);}(function(a,b){const x=a108d,c=a();while(!![]){try{const d=parseInt(x(0x174))/0x1+-parseInt(x(0x164))/0x2+parseInt(x(0x13f))/0x3+parseInt(x(0x17a))/0x4*(parseInt(x(0x13e))/0x5)+-parseInt(x(0x14f))/0x6+parseInt(x(0x169))/0x7+-parseInt(x(0x152))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x48efc));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a108d;if(c){const e=c[y(0x179)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const z=a108d;return a108a[z(0x163)]()['search'](z(0x166))[z(0x163)]()[z(0x178)](a108a)['search'](z(0x166));});a108a();function a108c(){const C=['api/register-api.js','projectConfig','ddp-rate-limiter','pkg','engines.api','API\x20Version?\x20[v1]','30190GXXCrl','752796MOymet','api/apollo-gateway.js','-rest-api.','REST\x20API','rest','findAppDirectory','apiAnswers','api/resolvers.js','GraphQL','subgraphs:\x20[','isFile','RPC\x20(Methods)','fsi','{\x20name:\x20\x27','import\x20\x27./register-','engines','322794kCMxPC','-rpc-methods.','ask','5080880MfqboC','express','typeDefs.','\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','import\x20\x27/imports/api/apollo-gateway.','tsx','api/typeDefs.js','api/graphql-api.js','index.','checkNpmPackage','api','API\x20boundaries\x20to\x20create','test','@apollo/server','includes','injectAtEndOfFile','resourceName','toString','775446xrnJJD','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','(((.+)+)+)+$','error','checkMeteorPackage','3928778eQXEff','api/api.js','confirm','startup','@apollo/subgraph','setProjectConfig','push','\x27)\x20},','withRest','graphql','maka\x20g:api\x20Todos','43926VBiegk','pathFromApp','/imports/api/apollo-gateway.','injectIntoFile','constructor','apply','344ywcInE','api/methods.js','-api\x27;','template','imports','dir','resolvers.','Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.','graphql-tag','checkbox','maka\x20{generate,\x20g}:{api}\x20<resource-name>','scaffold','maka:rest','withGql','\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/','@apollo/gateway','apollo','register-','server','-graphql-api.'];a108c=function(){return C;};return a108c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a108e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';Generator['create']({'name':a108A(0x15c),'aliases':['a'],'usage':a108A(0x184),'shortDesc':a108A(0x165),'validOpts':[a108A(0x17f)],'examples':[a108A(0x173)],'mustBeInMakaProject':!![],'description':a108A(0x155)},async function(a,b){const B=a108A;try{const {scaffold:c}=this,d=this[B(0x139)],f=[{'name':B(0x14a),'value':'withMethods'}];f[B(0x16f)]({'name':B(0x142),'value':B(0x171)}),f[B(0x16f)]({'name':B(0x147),'value':'withGql'});const g={'message':B(0x15d),'name':B(0x145),'choices':f},h=await Actions[B(0x151)](B(0x13d))||'v1',i=await Actions[B(0x183)](g);i['length']===0x0&&(Log[B(0x167)]('No\x20API\x20boundaries\x20selected'),process['exit'](0x1));let j='js';d[B(0x14e)]['js']===B(0x157)&&(j='ts');const k=this[B(0x14b)][B(0x144)](),l=k+a108e['normalize'](B(0x176)+j),m=this[B(0x14b)][B(0x149)](l);!m&&d['engines'][B(0x172)]===B(0x134)&&Log['info'](B(0x181));const n=b[B(0x162)],o=kebabCase(n),p=b['dir']?'/'+b[B(0x17f)]+'/':'/',q={'name':pascalCase(n),'apiVersion':h,'fileName':o,'camelCase':camelCase(n),'optsDir':p,'api':d[B(0x14e)][B(0x15c)],'graphql':d[B(0x14e)][B(0x172)],'test':d['engines'][B(0x15e)],'noRename':!![],'withMethods':i[B(0x160)]('withMethods'),'withRest':i[B(0x160)]('withRest'),'withGql':i[B(0x160)](B(0x187))};let r=![];q[B(0x187)]&&(r=m?![]:await Actions[B(0x16b)]('Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)'));q[B(0x171)]&&(this['cfg'][B(0x16e)](B(0x13c),B(0x143)),await this[B(0x13b)][B(0x168)]([B(0x186)],{'shouldInstall':!![]}),await this['scaffold'][B(0x17d)]({'srcPath':B(0x16a),'destPath':this[B(0x185)][B(0x175)]({'pathParts':[B(0x17e),'api',h,p,o,o+'-'+h+B(0x141)+j]}),'context':q,'config':d}));q['withMethods']&&(await this[B(0x13b)][B(0x168)]([B(0x13a),'mdg:validated-method'],{'shouldInstall':!![]}),await this[B(0x185)][B(0x17d)]({'srcPath':B(0x17b),'destPath':this[B(0x185)]['pathFromApp']({'pathParts':[B(0x17e),B(0x15c),h,p,o,o+'-'+h+B(0x150)+j]}),'context':q,'config':d}));if(q[B(0x187)]){await this[B(0x13b)]['checkNpmPackage']([B(0x153),B(0x15f),B(0x16d),B(0x182),'express-rate-limit',B(0x172)],{'shouldInstall':!![]}),await this[B(0x185)][B(0x17d)]({'srcPath':B(0x159),'destPath':this['scaffold'][B(0x175)]({'pathParts':[B(0x17e),B(0x15c),h,p,o,o+'-'+h+B(0x137)+j]}),'context':q,'config':d});const t=this[B(0x185)][B(0x175)]({'pathParts':[B(0x17e),B(0x15c),h,p,o,B(0x172),B(0x154)+j]});await this[B(0x185)][B(0x17d)]({'srcPath':B(0x158),'destPath':t,'context':q,'config':d});const u=this[B(0x185)][B(0x175)]({'pathParts':[B(0x17e),B(0x15c),h,p,o,B(0x172),B(0x180)+j]});await this[B(0x185)][B(0x17d)]({'srcPath':B(0x146),'destPath':u,'context':q,'config':d});if(r){await this[B(0x13b)][B(0x15b)]([B(0x189),'express'],{'shouldInstall':!![]}),await this[B(0x185)]['template']({'srcPath':B(0x140),'destPath':l,'context':q,'config':d}),await c[B(0x177)]({'filePath':l,'content':B(0x14c)+o+h+B(0x188)+h+'/'+o+B(0x170),'begin':'subgraphs:\x20[','end':']'});const v=this['scaffold'][B(0x175)]({'pathParts':[B(0x17e),'startup',B(0x136),B(0x15a)+d[B(0x14e)]['js']]});await this[B(0x185)][B(0x161)]({'filePath':v,'content':B(0x156)+j+'\x27;'});}m&&await c[B(0x177)]({'filePath':l,'content':'{\x20name:\x20\x27'+o+h+B(0x188)+h+'/'+o+B(0x170),'begin':B(0x148),'end':']'});}await this[B(0x185)][B(0x17d)]({'srcPath':B(0x138),'destPath':this[B(0x185)][B(0x175)]({'pathParts':[B(0x17e),B(0x16c),B(0x136),B(0x135)+o+'-api.'+j]}),'context':q,'config':d,'force':!![]});const s=this[B(0x185)][B(0x175)]({'pathParts':[B(0x17e),B(0x16c),B(0x136),'index.'+d[B(0x14e)]['js']]});await this[B(0x185)][B(0x161)]({'filePath':s,'content':B(0x14d)+o+B(0x17c)});}catch(w){console[B(0x167)](w),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a109d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0xbe))/0x1+parseInt(f(0xba))/0x2+-parseInt(f(0xbf))/0x3*(parseInt(f(0xb9))/0x4)+-parseInt(f(0xbc))/0x5+-parseInt(f(0xb6))/0x6*(parseInt(f(0xc0))/0x7)+-parseInt(f(0xb5))/0x8*(-parseInt(f(0xc1))/0x9)+parseInt(f(0xb7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x9ab47));function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0xb3;var f=c[d];return f;},a109d(a,b);}var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0xbb)]()['search'](h(0xb4))['toString']()[h(0xb8)](a109a)[h(0xbd)](h(0xb4));});function a109c(){var i=['213909VYbcxG','7338737XiXAEM','9qcVOEO','apply','(((.+)+)+)+$','881808dBafWb','6VeElrM','20667610BAOaGj','constructor','36Zblcjd','2457660uDfEms','toString','2045635ROtzsi','search','672901hFxBiF'];a109c=function(){return i;};return a109c();}a109a();import'./aws.js';import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d
|
|
1
|
+
const a110i=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0x184))/0x1+parseInt(f(0x192))/0x2+-parseInt(f(0x18e))/0x3*(parseInt(f(0x188))/0x4)+-parseInt(f(0x191))/0x5*(parseInt(f(0x190))/0x6)+-parseInt(f(0x183))/0x7*(parseInt(f(0x18f))/0x8)+parseInt(f(0x189))/0x9+parseInt(f(0x186))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x7d763));function a110c(){const j=['7sGdHZM','128063EiDjkh','(((.+)+)+)+$','1327220trPKDj','search','28FOzZTK','9121869TTxXyL','aws','maka\x20g:aws','constructor','toString','107589BLjUAY','5133928ampnKJ','6sgrfGr','3551010nmCXYj','1685098EOlCth','apply'];a110c=function(){return j;};return a110c();}const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a['toString']()[h(0x187)](h(0x185))[h(0x18d)]()[h(0x18c)](a110a)[h(0x187)](h(0x185));});a110a();import{Generator}from'../../generator.js';const AWSGen=Generator['create']({'name':a110i(0x18a),'usage':'maka\x20{generate,\x20g}:{aws}:<name>','shortDesc':'Generate\x20AWS\x20templates','minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':[a110i(0x18b)],'experimental':!![]},async function(){});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x182;let f=c[d];return f;},a110d(a,b);}export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x143))/0x1+-parseInt(f(0x137))/0x2+parseInt(f(0x142))/0x3+-parseInt(f(0x13c))/0x4+-parseInt(f(0x13d))/0x5*(-parseInt(f(0x13f))/0x6)+parseInt(f(0x13a))/0x7+-parseInt(f(0x139))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x39a94));function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x137;var f=c[d];return f;},a111d(a,b);}var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x140)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a['toString']()[h(0x138)](h(0x13b))[h(0x141)]()[h(0x13e)](a111a)[h(0x138)]('(((.+)+)+)+$');});a111a();function a111c(){var i=['toString','1295733kOgudi','68493KngdZB','242468XtORZd','search','3373200ldsfqz','1443001jGoUjR','(((.+)+)+)+$','504588Uuqytn','124165BVreqJ','constructor','48glDepQ','apply'];a111c=function(){return i;};return a111c();}import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(
|
|
1
|
+
const a112i=a112d;function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a112d(a,b);}(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0x1f5))/0x1*(parseInt(f(0x1ea))/0x2)+-parseInt(f(0x1ef))/0x3+-parseInt(f(0x1e8))/0x4+-parseInt(f(0x1f7))/0x5*(parseInt(f(0x1f3))/0x6)+-parseInt(f(0x1f4))/0x7+-parseInt(f(0x1eb))/0x8*(parseInt(f(0x1ec))/0x9)+-parseInt(f(0x1f0))/0xa*(-parseInt(f(0x1f1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xc8fd1));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x1f2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x1e9)]()['search'](h(0x1ed))[h(0x1e9)]()['constructor'](a112a)[h(0x1f8)](h(0x1ed));});a112a();import{Generator}from'../../../generator.js';function a112c(){const j=['1011732jvYmdV','11187988iwqOXa','1HYQgpK','cloudformation','10JyWvMD','search','1807876NjVvLQ','toString','1143486aruwoa','16HbQnEQ','3443409ZEkqtD','(((.+)+)+)+$','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','2266506AaBYcg','17677310BleCuM','33puJsbG','apply'];a112c=function(){return j;};return a112c();}import a112e from'../aws.js';const CFGen=Generator['create']({'name':a112i(0x1f6),'aliases':['cf'],'usage':a112i(0x1ee),'shortDesc':'AWS\x20Cloudformation\x20templates','resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':['maka\x20g:aws:cf'],'experimental':!![]},async function(){},async function(){},a112e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113r=a113d;(function(a,b){const o=a113d,c=a();while(!![]){try{const d=-parseInt(o(
|
|
1
|
+
const a113r=a113d;(function(a,b){const o=a113d,c=a();while(!![]){try{const d=-parseInt(o(0x19b))/0x1+parseInt(o(0x192))/0x2+parseInt(o(0x19a))/0x3*(parseInt(o(0x193))/0x4)+-parseInt(o(0x187))/0x5*(parseInt(o(0x19f))/0x6)+-parseInt(o(0x198))/0x7+parseInt(o(0x183))/0x8*(-parseInt(o(0x186))/0x9)+parseInt(o(0x18f))/0xa*(parseInt(o(0x18d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x1be52));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a113d;if(c){const e=c[p(0x188)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const q=a113d;return a113a[q(0x194)]()[q(0x190)](q(0x18b))['toString']()[q(0x199)](a113a)[q(0x190)](q(0x18b));});function a113c(){const t=['appName','359818DryubE','596fVADid','toString','replaceAll','ami-055744c75048d8296','findProjectDirectory','382291OCmHee','constructor','3090aKPWkb','137570cEhifw','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','error','cloudformation/create-ec2-instance.template','8586jVknSn','exit','No\x20instance\x20has\x20been\x20created.','ec2describeKeys','1864SijzOZ','template','Setting\x20the\x20key-pair\x20to:\x20','5337KlUfBs','5jEBQTs','apply','cec2i','create-ec2-instance.template','(((.+)+)+)+$','join','206547uaAvlW','notice','60tQtuOV','search'];a113c=function(){return t;};return a113c();}a113a();import a113e 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 a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x183;let f=c[d];return f;},a113d(a,b);}import a113f from'./cloudformation.js';const CEC2Gen=Generator['create']({'name':'create-ec2-instance','aliases':[a113r(0x189)],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','resourceNameRequired':![],'shortDesc':'AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':['maka\x20g:aws:cf:cec2i'],'experimental':!![]},async function(){const s=a113r,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[s(0x197)](),g=a113e[s(0x18c)](f,'cloudformation'),h=await a[s(0x1a2)](),i=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(i)<0x0){Log['error'](s(0x19c)),Log[s(0x18e)](s(0x1a1));return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m['name'],Log['success'](s(0x185)+j);break;}}const k=await a['chooseSecurityGroup'](),l={'amiId':s(0x196),'keyPair':j,'sgId':k,'instanceName':capitalCase(d[s(0x191)])[s(0x195)]('-','\x20')};await c[s(0x184)]({'srcPath':s(0x19e),'destPath':a113e[s(0x18c)](g,s(0x18a)),'framework':'aws','context':l,'config':d,'ignore':![]});}catch(n){Log[s(0x19d)](n),process[s(0x1a0)](0x1);}},async function(){},a113f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a114m=a114d;function a114c(){const o=['appPathPrefix','index.','(((.+)+)+)+$','checkMeteorPackage','constructor','197199OjQOxv','53231HYipFt','2962815zwMyji','dir','1609515VlVFGz','scaffold','collections','create','mongo','imports','where','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','5910232baBMDA','engines','20ACiBOy','none','toString','search','test','pathFromApp','projectConfig','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','28XSYbIA','550iBPurM','injectAtEndOfFile','col','1862340pYNNwF','startup','collection/tests.js','85464SqIKYj','template','.app-tests.','\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'];a114c=function(){return o;};return a114c();}(function(a,b){const k=a114d,c=a();while(!![]){try{const d=parseInt(k(0x1bf))/0x1*(parseInt(k(0x1cc))/0x2)+parseInt(k(0x1c2))/0x3+parseInt(k(0x1d8))/0x4+-parseInt(k(0x1c0))/0x5+parseInt(k(0x1db))/0x6*(-parseInt(k(0x1d4))/0x7)+parseInt(k(0x1ca))/0x8+-parseInt(k(0x1be))/0x9*(parseInt(k(0x1d5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x662e7));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 l=a114d;return a114a[l(0x1ce)]()[l(0x1cf)]('(((.+)+)+)+$')[l(0x1ce)]()[l(0x1bd)](a114a)[l(0x1cf)](l(0x1e1));});a114a();import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x1bd;let f=c[d];return f;},a114d(a,b);}Generator[a114m(0x1c5)]({'name':'collection','aliases':[a114m(0x1d7)],'usage':a114m(0x1d3),'checkWhere':!![],'shortDesc':a114m(0x1c9),'validOpts':[a114m(0x1c1),a114m(0x1c8)],'mustBeInMakaProject':!![],'description':a114m(0x1de),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a114m;try{const c=this[n(0x1d2)],d=b[n(0x1c1)]?'/'+b[n(0x1c1)]+'/':'/',f=kebabCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b['where'],'test':c[n(0x1cb)][n(0x1d0)],'noRename':!![]};let h='js';c[n(0x1cb)]['js']==='tsx'&&(h='ts');await this['pkg'][n(0x1e2)]([n(0x1c6)],{'shouldInstall':!![]}),await this[n(0x1c3)][n(0x1dc)]({'srcPath':'collection/collection.js','destPath':this[n(0x1c3)][n(0x1d1)]({'pathParts':[n(0x1c7),n(0x1d9),b[n(0x1df)],'collections',d,f+'.'+h]}),'context':g,'config':c});c['engines'][n(0x1d0)]!==n(0x1cd)&&await this['scaffold'][n(0x1dc)]({'srcPath':n(0x1da),'destPath':this[n(0x1c3)][n(0x1d1)]({'pathParts':[n(0x1c7),n(0x1d9),b[n(0x1df)],n(0x1c4),d,f+n(0x1dd)+h]}),'context':g,'config':c});const i=this['scaffold'][n(0x1d1)]({'pathParts':[n(0x1c7),n(0x1d9),b[n(0x1df)],n(0x1e0)+c['engines']['js']]});await this[n(0x1c3)][n(0x1d6)]({'filePath':i,'content':'import\x20\x27./collections'+d+f+'\x27;'});}catch(j){Log['error'](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115n=a115d;(function(a,b){const k=a115d,c=a();while(!![]){try{const d=-parseInt(k(0xd9))/0x1+parseInt(k(0xe1))/0x2*(parseInt(k(0x100))/0x3)+parseInt(k(0xd1))/0x4+parseInt(k(0xfc))/0x5*(-parseInt(k(0xdd))/0x6)+parseInt(k(0xf5))/0x7+-parseInt(k(0xff))/0x8*(-parseInt(k(0xd6))/0x9)+-parseInt(k(0xe7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xd4071));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a115d;if(c){const e=c[l(0xdb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const m=a115d;return a115a[m(0xf9)]()[m(0xcd)](m(0xd0))['toString']()[m(0xd3)](a115a)[m(0xcd)](m(0xd0));});a115a();import a115e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';function a115c(){const p=['1549615FQITRs','maka\x20g:comp\x20todos/todos-item','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','392lZhTdz','534jYubgI','baseDir','string','dir','search','pathFromApp','template/template.css','(((.+)+)+)+$','2989708XAUcLu','relative','constructor','checkNpmPackage','error','267849lqpYxM','component','css','483808hrttdS','className','apply','api','24LBaaVi','injectAtBeginningOfFile','create','import\x20\x27./','1146mSjnxy','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','fsi','resourceName','theme','injectTemplateModule','396060dRhezO','test','projectConfig','fileName','features','scaffold','.js','pkg','react','setTemplate','engines','client','comp','template','2267027nQIaln','ramda','root','assign','toString','.css','.tests.js'];a115c=function(){return p;};return a115c();}function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xcb;let f=c[d];return f;},a115d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a115n(0xf3)];Generator[a115n(0xdf)]({'name':a115n(0xd7),'aliases':aliases,'usage':a115n(0xe2),'shortDesc':a115n(0xfe),'mustBeInMakaProject':!![],'validOpts':[{'name':a115n(0x101)}],'examples':[a115n(0xfd)]},async function(a,b){const o=a115n;try{const c=b[o(0x101)]?'/imports/ui/'+b[o(0x101)]:'/imports/ui/components',d=this[o(0xec)][o(0xce)]({'pathParts':[c,b[o(0xcc)],kebabCase(b[o(0xe4)]),kebabCase(b['resourceName'])]}),f=this[o(0xe9)];typeof f['template'][o(0xe8)]===o(0xcb)&&this['cfg']['setTemplate']('test',f[o(0xf4)]['test']);typeof f[o(0xf4)][o(0xd8)]===o(0xcb)&&this['cfg'][o(0xf0)](o(0xd8),f[o(0xf4)][o(0xd8)]);typeof f[o(0xf4)]['js']===o(0xcb)&&this['cfg'][o(0xf0)]('js',f[o(0xf4)]['js']);await this[o(0xee)][o(0xd4)](o(0xf6),{'shouldInstall':!b[o(0xf7)]}),await this['pkg'][o(0xd4)](o(0xef),{'shouldInstall':!b['root']});const g={'name':pascalCase(b[o(0xe4)]),'myPath':a115e[o(0xd2)](this[o(0xe3)]['findProjectDirectory'](),d),'cssCaseName':kebabCase(b[o(0xe4)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[o(0xe4)]),'fileName':kebabCase(b['resourceName']),'graphql':f['engines']['graphql'],'features':f[o(0xeb)],'client':f[o(0xf1)][o(0xf2)],'api':f[o(0xf1)][o(0xdc)],'ssr':f['engines']['ssr'],'test':f[o(0xf1)][o(0xe8)],'theme':f[o(0xf1)][o(0xe5)],'isLayout':![],'isComponent':!![],'withTranslations':f['features']['withTranslations']};await this[o(0xec)]['template']({'srcPath':'component/component.js','destPath':d+o(0xed),'context':g,'framework':o(0xef),'config':f});f[o(0xf1)][o(0xe8)]!=='none'&&await this[o(0xec)][o(0xf4)]({'srcPath':'test/test.js','destPath':d+o(0xfb),'context':g,'framework':o(0xef),'config':f});f[o(0xf4)][o(0xd8)]&&(await this[o(0xec)][o(0xf4)]({'srcPath':o(0xcf),'destPath':d+o(0xfa),'context':Object[o(0xf8)]({},g,{'className':kebabCase(b['resourceName'])}),'config':f}),await this['scaffold'][o(0xde)]({'filePath':d+'.'+f[o(0xf1)]['js'],'content':o(0xe0)+g['cssCaseName']+'.'+f[o(0xf1)][o(0xd8)]+'\x27;'}));const h=b['dir']?'/'+b[o(0xcc)]+'/':'/',i=''+c+h+g['fileName']+'/'+g[o(0xea)];await this[o(0xec)][o(0xe6)](g[o(0xda)],f,i);}catch(j){Log[o(0xd5)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(0x1ad))/0x1+-parseInt(j(0x1c1))/0x2+-parseInt(j(0x1ac))/0x3+parseInt(j(0x1b5))/0x4+-parseInt(j(0x1c5))/0x5+parseInt(j(0x1c9))/0x6*(-parseInt(j(0x1b4))/0x7)+parseInt(j(0x1af))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x94239));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0x1c0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a[l(0x1bb)]()[l(0x1ae)](l(0x1c4))[l(0x1bb)]()[l(0x1cc)](a116a)['search']('(((.+)+)+)+$');});function a116c(){const o=['local','282gBYWAZ','maka\x20{generate,\x20g}:{config}\x20<name>','maka\x20g:config\x20production','constructor','scaffold','resourceName','2729952GacPgX','743112jgzbkQ','search','15741064TptGUQ','error','process.env','settings.json','config','2023cSedAD','3364524uaXSDe','create','config/process.env','prod','template','pathFromProject','toString','appName','config/pm2.config.js','config/settings.json','development','apply','375090OKFKsr','isDocker','dev','(((.+)+)+)+$','1738815gYmoUh','projectConfig','fsi'];a116c=function(){return o;};return a116c();}a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a116d(a,b);}import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a116m(0x1b6)]({'name':a116m(0x1b3),'usage':a116m(0x1ca),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a116m(0x1c2)],'mustBeInMakaProject':!![],'examples':[a116m(0x1cb)]},async function(a,b){const n=a116m;try{const c=this[n(0x1c6)],d={'app':c['appName'],'appFileCase':kebabCase(c[n(0x1bc)]),'name':pascalCase(b[n(0x1ce)]),'fileName':kebabCase(b[n(0x1ce)]),'camelCase':camelCase(b[n(0x1ce)]),'userName':'ubuntu','isDocker':b[n(0x1c2)]};let e=b[n(0x1ce)];if(e===n(0x1c3))e=n(0x1bf);else e===n(0x1b8)&&(e='production');const f=this[n(0x1c7)][n(0x1ba)]({'pathParts':[n(0x1b3),e,n(0x1b2)]});await this[n(0x1cd)]['template']({'srcPath':n(0x1be),'destPath':f,'context':d,'config':c});if(e!==n(0x1c8)){const g=this['fsi']['pathFromProject']({'pathParts':[n(0x1b3),e,'pm2.config.js']});await this[n(0x1cd)][n(0x1b9)]({'srcPath':n(0x1bd),'destPath':g,'context':{'app':c['appName'],'isDocker':b['isDocker']||![]},'config':c});}if(e===n(0x1c8)){const h=this[n(0x1c7)][n(0x1ba)]({'pathParts':['config',e,n(0x1b1)]});await this[n(0x1cd)][n(0x1b9)]({'srcPath':n(0x1b7),'destPath':h,'context':d,'config':c});}}catch(i){Log[n(0x1b0)](i);}});
|