@maka/maka-cli 5.1.4 → 5.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/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(a,b){const w=a97d,c=a();while(!![]){try{const d=-parseInt(w(
|
|
1
|
+
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=-parseInt(w(0x1c1))/0x1*(parseInt(w(0x19e))/0x2)+-parseInt(w(0x19f))/0x3+-parseInt(w(0x193))/0x4*(-parseInt(w(0x1a9))/0x5)+-parseInt(w(0x1af))/0x6+-parseInt(w(0x199))/0x7*(-parseInt(w(0x1a3))/0x8)+parseInt(w(0x1b1))/0x9+-parseInt(w(0x1b7))/0xa*(-parseInt(w(0x1c9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x57deb));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a[y(0x18d)]()['search']('(((.+)+)+)+$')['toString']()[y(0x1ca)](a97a)['search'](y(0x19b));});a97a();import a97e from'fs';import a97f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';function a97c(){const B=['2116689FUdGxi','cfg','appName','generate-ssc','8fOxMZk','getMakaProjectConfig','ssh','maka\x20ssl\x20--env\x20dev\x20generate-csr','writeFileSync','getEnvFromShorthand','5eFbpIs','fsi','/ssh.json','error','Email\x20to\x20use\x20for\x20auto-updates:\x20','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','1935948aDaylk','domains','2152620arzECJ','mkKeysDir','join','[?]\x20Domains\x20to\x20register:\x20','.key','notice','11500990aJQTyr','letsencrypt.json','Verifying\x20Letsencrypt\x20configuration','ssl','ask','uname\x20-a','genCSR','success','ping','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','689fyqzim','readFileSync','generate-csr','parse','Create\x20and\x20manage\x20your\x20SSL\x20operations.','apply','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','New\x20CSR\x20written\x20to\x20','11piJUjX','constructor','.csr','maka\x20ssl\x20[command]','stringify','Using\x20saved\x20letsencrypt\x20config','existsSync','exit','sudo\x20snap\x20install\x20--classic\x20certbot','Please\x20provide\x20a\x20command.','withSpinner','env','toString','Remote\x20host\x20connection\x20successful','email','Checking\x20remote\x20host\x20availability','assign','genSSC','761916aSTRYn','\x20--email\x20','emailUpdate','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','2560453DDrZku','create','(((.+)+)+)+$','.crt','domainNames','1618SGtaLE'];a97c=function(){return B;};return a97c();}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x184;let f=c[d];return f;},a97d(a,b);}Command[a97z(0x19a)]({'name':a97z(0x1ba),'usage':a97z(0x184),'validOpts':[a97z(0x1b0),a97z(0x18f)],'requiredOpts':['env'],'shortDesc':a97z(0x1c5),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0x1a6),a97z(0x1c0),a97z(0x197)]},async function(a,b){const A=a97z,c=this['cfg'][A(0x1a4)](),d=this[A(0x1a0)][A(0x1a8)](b[A(0x18c)]),f=this[A(0x1a0)]['getAppConfigPath'](d),g=this[A(0x1aa)][A(0x1b2)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x1c3))SSL[A(0x1bd)]({'keyName':c[A(0x1a1)]+A(0x1b5),'csrName':c['appName']+'.csr','cwd':g});else{if(h===A(0x1a2)){if(!a97e[A(0x187)](a97f[A(0x1b3)](g,c[A(0x1a1)]+A(0x1b5))))throw A(0x196)+a97f[A(0x1b3)](g,c[A(0x1a1)]+A(0x1b5));if(!a97e['existsSync'](a97f['join'](g,c[A(0x1a1)]+A(0x1cb))))throw A(0x198)+a97f[A(0x1b3)](g,c[A(0x1a1)]+A(0x1cb));SSL[A(0x192)]({'keyName':c[A(0x1a1)]+A(0x1b5),'crtName':c[A(0x1a1)]+A(0x19c),'cwd':g}),Log['notice'](A(0x1c8)+g);}else{if(h==='letsencrypt'){let i=b[A(0x1b0)],j=b[A(0x18f)];try{const q=a97e['readFileSync'](a97f[A(0x1b3)](f,A(0x1b8)))['toString'](),r=JSON[A(0x1c4)](q);i=b[A(0x1b0)]?b[A(0x1b0)]:r[A(0x19d)],j=b[A(0x18f)]?b[A(0x18f)]:r[A(0x195)],(!b[A(0x18f)]||!b[A(0x1b0)])&&Log[A(0x1b6)](A(0x186));}catch(s){}const k=JSON[A(0x1c4)](a97e[A(0x1c2)](f+A(0x1ab))['toString']());Object[A(0x191)](k,{'env':f}),Log[A(0x1b6)](A(0x190));try{const t=SSH[A(0x1bf)](A(0x1bc),k);if(!t)throw A(0x1c7);if(t)Log[A(0x1be)](A(0x18e));}catch(u){Log[A(0x1ac)](u);return;}const l=Log[A(0x18b)]();l['start'](A(0x1b9)),SSH[A(0x1a5)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...k}),SSH[A(0x1a5)](A(0x189),{...k}),SSH[A(0x1a5)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...k}),l['success']();const m=i?i:await Actions['ask'](A(0x1b4)),n=j?j:await Actions[A(0x1bb)](A(0x1ad));SSH['ssh'](A(0x1ae)+m+A(0x194)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x185)](o,null,0x2);a97e[A(0x1a7)](a97f[A(0x1b3)](f,A(0x1b8)),p);}else throw A(0x18a);}}}catch(v){console['error'](v),process[A(0x188)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=-parseInt(f(0x1df))/0x1+parseInt(f(0x1e5))/0x2*(-parseInt(f(0x1e3))/0x3)+parseInt(f(0x1dd))/0x4+parseInt(f(0x1e2))/0x5+parseInt(f(0x1db))/0x6*(-parseInt(f(0x1dc))/0x7)+-parseInt(f(0x1e1))/0x8*(parseInt(f(0x1e6))/0x9)+parseInt(f(0x1d9))/0xa*(parseInt(f(0x1da))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x8b2cc));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x1e7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x1e0)]()['search'](h(0x1de))['toString']()[h(0x1e4)](a98a)['search']('(((.+)+)+)+$');});a98a();import'./test.command.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x1d9;var f=c[d];return f;},a98d(a,b);}function a98c(){var i=['978027kXRcen','toString','608728RHMBuW','2886360NdAgOP','242859DRSRTE','constructor','14KjIsfi','90wccxAw','apply','20475590CBMhZk','11yKmlWY','1326kkcujQ','19901kZSWPJ','3516560lCROpW','(((.+)+)+)+$'];a98c=function(){return i;};return a98c();}import'./mocha.sub.cmd.js';import'./jest.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0xa2))/0x1+-parseInt(n(0x9a))/0x2+-parseInt(n(0x6d))/0x3+-parseInt(n(0x76))/0x4+-parseInt(n(0xa0))/0x5+parseInt(n(0x7a))/0x6+parseInt(n(0x71))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x1c6d7));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x8d)]()[p(0x70)](p(0x9c))[p(0x8d)]()['constructor'](a99a)[p(0x70)](p(0x9c));});function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x6b;let f=c[d];return f;},a99d(a,b);}a99a();import{Command}from'../../command.js';function a99c(){const s=['runInBand','@babel/plugin-syntax-jsx','create','<rootDir>/$1','template','pkg','service','/node_modules/','babel.config.js','toString','identity-obj-proxy','Run\x20only\x20failed\x20tests\x20from\x20the\x20last\x20run','**/?(*.)+(app-tests).[tj]s?(x)','scaffold','<rootDir>/packages','jsdom','Generate\x20test\x20coverage\x20report','Run\x20a\x20Jest\x20test\x20suite\x20with\x20custom\x20options','runCLI','Run\x20tests\x20sequentially\x20in\x20the\x20same\x20process','test/jest/jest.config.js','jest','374310RjzGpJ','babel-jest','(((.+)+)+)+$','isFile','^.+\x5c.module\x5c.(css|sass|scss)$','watch','1025210BkiuUi','jest.setup.js','145340wbCJic','success','Clear\x20Jest\x20cache\x20before\x20running\x20tests','Runs\x20Jest\x20tests\x20in\x20the\x20specified\x20file\x20or\x20directory\x20with\x20optional\x20Jest\x20configurations,\x20including\x20coverage\x20reports.','Update\x20Jest\x20snapshots','Run\x20Jest\x20in\x20watch\x20mode','jest-css-modules-transform','updateSnapshot','log','jest.config.js','config','660993YkkGIE','message','Some\x20tests\x20failed.','search','4352215NlKeOz','eslint/babel.config.js','/node_modules','findAppDirectory','coverage','206728ISbboh','join','<rootDir>/public','test/jest/jest.setup.js','81384hcVNbT','jest-environment-jsdom','onlyFailures','clearCache','fsi','exit','Tests\x20completed\x20successfully.','apply','checkNpmPackage','error'];a99c=function(){return s;};return a99c();}import a99e from'./test.command.js';import a99f from'jest';import a99g from'path';Command[a99q(0x86)]({'name':a99q(0x99),'usage':'maka\x20test:jest\x20<file|directory>\x20[--options]','shortDesc':a99q(0x95),'description':a99q(0xa5),'validOpts':[{'name':a99q(0x9f),'boolFlag':!![],'description':a99q(0xa7)},{'name':'coverage','boolFlag':!![],'description':a99q(0x94)},{'name':a99q(0xa9),'boolFlag':!![],'description':a99q(0xa6)},{'name':a99q(0x84),'boolFlag':!![],'description':a99q(0x97)},{'name':'onlyFailures','boolFlag':!![],'description':a99q(0x8f)},{'name':a99q(0x6c),'description':'Specify\x20a\x20custom\x20Jest\x20config\x20file','regex':/^.+\.js$/},{'name':a99q(0x7d),'boolFlag':!![],'description':a99q(0xa4)}]},async function(a,b){const r=a99q,c=this[r(0x7e)][r(0x74)](),d=this[r(0x7e)]['findProjectDirectory']();await this[r(0x89)][r(0x82)](['@testing-library/react',r(0x85),r(0xa8),r(0x8e),r(0x7b)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});if(b[r(0x7d)]){await a99f[r(0x96)]({'_':[],'$0':r(0x99),'clearCache':!![]},[c]);return;}const e=a99g[r(0x77)](d,'config',r(0xa1)),f=this[r(0x7e)]['isFile'](e);!f&&await this[r(0x91)][r(0x88)]({'srcPath':r(0x79),'destPath':e,'framework':r(0x8a),'context':{'noRename':!![]}});const g=a99g[r(0x77)](c,r(0x6b)),h=this[r(0x7e)][r(0x9d)](g);!h&&await this['scaffold']['template']({'srcPath':r(0x98),'destPath':g,'framework':r(0x8a),'context':{'noRename':!![]}});const i=a99g[r(0x77)](c,r(0x8c)),j=this[r(0x7e)]['isFile'](i);!j&&await this[r(0x91)]['template']({'srcPath':r(0x72),'destPath':i,'framework':r(0x8a),'context':{'noRename':!![]}});const k={'_':a,'$0':r(0x99),'testEnvironment':r(0x93),'watch':b[r(0x9f)]||![],'coverage':b['coverage']||![],'updateSnapshot':b[r(0xa9)]||![],'runInBand':b[r(0x84)]||![],'onlyFailures':b[r(0x7c)]||![],'config':b[r(0x6c)]||undefined,'rootDir':c,'coverageDirectory':a99g[r(0x77)](d,r(0x75)),'testPathIgnorePatterns':[r(0x73),r(0x92),r(0x78),'<rootDir>/private'],'testMatch':[r(0x90)],'transform':{'^.+\x5c.(js|jsx|ts|tsx)$':r(0x9b),'.+\x5c.(css|styl|less|sass|scss)$':r(0xa8)},'transformIgnorePatterns':[r(0x8b),r(0x9e)],'setupFiles':[e],'moduleNameMapper':{'\x5c.(css|less|scss)$':r(0x8e),'^/(.*)$':r(0x87)}};try{const {results:l}=await a99f[r(0x96)](k,[c]);l[r(0xa3)]?(console['log'](r(0x80)),b['coverage']&&console[r(0xaa)]('Coverage\x20report\x20generated\x20in\x20the\x20\x22coverage\x22\x20directory.')):(console[r(0x83)](r(0x6f)),process[r(0x7f)](0x1));}catch(m){console[r(0x83)]('Error\x20running\x20Jest:\x20'+m[r(0x6e)]),process[r(0x7f)](0x1);}},a99e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a100c(){const A=['pkg','11170607SDUbwV','once','maka\x20install\x20meteor\x20--force','151102cQuecv','cwd','unit','exit','jasmine','184507SxMWCg','engines','openSync','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','settings.json','getAppConfigPath','create','forEach','splice','notice','port','@testing-library/dom\x20meteor-node-stubs\x20chai','constructor','toString','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','2921544ueyLGl','This\x20project\x20does\x20not\x20have\x20a\x20mocha\x20test\x20driver','filter','parse','config','test-packages','3187980RStvpN','inspect','8uJjeJp','rawLogs','utf8','warn','process.env','fsi','concat','none','argv','driver-package','mpi','--driver-package','join','maka\x20test:mocha','createFile','info','search','Meteor\x20is\x20installed.','(((.+)+)+)+$','isMeteorInstalled','env','slice','673548oXouie','.maka','--env','driverPackage','Node\x20Env\x20Config:\x20','1989276FHrACB','test','findProjectDirectory','apply','isFile','cfg','relative','mocha','driver','inherit','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','local','config.json','--full-app','invokeMeteorCommand','packages','testAppPath','settings'];a100c=function(){return A;};return a100c();}const a100x=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=-parseInt(t(0x7d))/0x1+-parseInt(t(0x78))/0x2+parseInt(t(0xb0))/0x3+-parseInt(t(0x8d))/0x4+-parseInt(t(0x93))/0x5+parseInt(t(0xab))/0x6+parseInt(t(0x75))/0x7*(parseInt(t(0x95))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xb56c7));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a100d;if(c){const e=c[u(0xb3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const v=a100d;return a100a[v(0x8a)]()[v(0xa5)](v(0xa7))[v(0x8a)]()[v(0x89)](a100a)['search'](v(0xa7));});a100a();function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x70;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';const syncSource=function(a){const w=a100d;a100e[w(0x7f)](a,'r'),a100g[w(0x91)]({'path':a});};Command[a100x(0x83)]({'name':a100x(0xb7),'mustBeInMakaProject':!![],'validOpts':[a100x(0x76),a100x(0x71),a100x(0xb8),a100x(0xae),a100x(0x7a),a100x(0xa9),a100x(0x96),a100x(0x87),a100x(0x94),a100x(0x72)],'usage':a100x(0xa2),'aliases':['m'],'shortDesc':a100x(0x8b),'examples':[]},async function(a,b){const y=a100x;try{this['mpi'][y(0xa8)]()?Log['notice'](y(0xa6)):(Log['warn'](y(0x80)),execSync(y(0x77),{'stdio':y(0xb9)}));this[y(0x74)]['checkNpmPackage'](y(0x88),{'shouldInstall':!![]});const c=b[y(0xa9)]?this[y(0xb5)]['getEnvFromShorthand'](b[y(0xa9)]):y(0xbb);(!b[y(0x7a)]||!!b[y(0x76)])&&(a=a[y(0x9b)]([y(0xbd)]));b[y(0x7a)]&&delete b['unit'];let d=b[y(0x9e)]||b[y(0xb8)]||'none';if(d==='none'){const l=JSON[y(0x90)](a100e['readFileSync'](a100f[y(0xa1)](this[y(0x9a)]['findProjectDirectory'](),y(0xac),y(0xbc)),y(0x97)));if(l[y(0x7e)][y(0xb1)]===y(0x7c))d='sanjo:jasmine';else l[y(0x7e)][y(0xb1)]==='mocha'&&(d='meteortesting:mocha');}if(d===y(0x9c))throw y(0x8e);(!b[y(0x9e)]||!b[y(0xb8)])&&(a=a[y(0x9b)]([y(0xa0),d]));const f=this[y(0xb5)]['checkConfigExists'](y(0xbb));if(!f){Log[y(0x98)](y(0x8c));const m=this[y(0x9a)][y(0xb2)]();await a100i['processAndRunGenerator']('config',['local'],{'cwd':m,'root':!![]});}const g=this[y(0xb5)][y(0x82)](c),h=a100f[y(0xa1)](g,y(0x99));let i=a100f[y(0xa1)](g,'settings.json');b[y(0x73)]?i=b[y(0x73)]:i=a100f[y(0xa1)](g,y(0x81));if(this[y(0x9a)][y(0xb4)](h)){const n=a100f[y(0xb6)](process[y(0x79)](),h);Log['notice'](y(0xaf)+n),syncSource(h);}else{const o=a100f[y(0xb6)](process[y(0x79)](),h);Log[y(0xa4)](y(0xba)+o),this['fsi'][y(0xa3)]({'filePath':h,'data':''});}if(this['fsi'][y(0xb4)](i)){const p=a100f[y(0xb6)](process['cwd'](),i);Log[y(0x86)]('Meteor\x20Settings:\x20'+p),a=a[y(0x9b)](['--settings',i]);}else{const q=a100f[y(0xb6)](process['cwd'](),i);Log[y(0x98)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+q);}const j=process[y(0x9d)][y(0xaa)](0x2)[y(0x8f)](r=>r!==y(0xad))[y(0x8f)](r=>r!==y(0xb1))[y(0x8f)](r=>r!==a[0x0]);j[y(0x84)]((r,s)=>{const z=y;(r===z(0xad)||r==='--driver')&&j[z(0x85)](s,0x2),r==='--packages'&&j[z(0x85)](s,0x1);});const k=b[y(0x71)]?y(0x92):y(0xb1);await this[y(0x9f)][y(0x70)](k,a['concat'](j));}catch(r){console['error'](r),process[y(0x7b)](0x0);}},a100h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101i=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x177))/0x1+-parseInt(f(0x17d))/0x2*(parseInt(f(0x174))/0x3)+parseInt(f(0x180))/0x4+-parseInt(f(0x178))/0x5*(parseInt(f(0x176))/0x6)+-parseInt(f(0x17c))/0x7*(parseInt(f(0x17b))/0x8)+parseInt(f(0x171))/0x9+-parseInt(f(0x172))/0xa*(-parseInt(f(0x170))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x9b113));function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x170;let f=c[d];return f;},a101d(a,b);}const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a101d;if(c){const e=c[g(0x173)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const h=a101d;return a101a['toString']()['search'](h(0x175))[h(0x17f)]()[h(0x17a)](a101a)[h(0x17e)](h(0x175));});a101a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const TestCommand=Command['create']({'name':a101i(0x181),'usage':a101i(0x179),'shortDesc':a101i(0x183),'description':a101i(0x182),'validOpts':[]},async function(){throw UsageError;});export default TestCommand;function a101c(){const j=['maka\x20test:<sub-command>','constructor','6331208XcGxqd','7icCOyD','2ToIptY','search','toString','2197984InGhKA','test','\x0a\x20\x20\x20\x20Run\x20a\x20meteor\x20test\x20driver,\x20or\x20utilize\x20a\x20headless\x20test\x20suite.\x0a\x20\x20','Run\x20a\x20Meteor\x20Test\x20Driver','2028499spdhNH','4739031lYvqkm','70fWOCAJ','apply','3228006QSMLkE','(((.+)+)+)+$','336hJhiVj','294344QiyEtX','14170aVIHwx'];a101c=function(){return j;};return a101c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a102h=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0x14d))/0x1+parseInt(f(0x154))/0x2*(-parseInt(f(0x148))/0x3)+parseInt(f(0x147))/0x4*(-parseInt(f(0x14a))/0x5)+-parseInt(f(0x14f))/0x6+-parseInt(f(0x14c))/0x7*(parseInt(f(0x152))/0x8)+-parseInt(f(0x14b))/0x9+parseInt(f(0x149))/0xa*(parseInt(f(0x153))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xd5acb));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(0x155)]()['search']('(((.+)+)+)+$')[g(0x155)]()['constructor'](a102a)['search'](g(0x151));});a102a();import{Command}from'../command.js';import a102e from'../generators/maka.gen.js';function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x147;var f=c[d];return f;},a102d(a,b);}function a102c(){var j=['567YzSegR','552332XPXFZw','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','7869504NEHZPR','undo','(((.+)+)+)+$','165448UhbedK','11KWzvKv','6WoCODj','toString','884216sVdyVg','1188396jaqgFo','67353010treMey','5aORdAX','8204067YUZBQH'];a102c=function(){return j;};return a102c();}Command['create']({'name':a102h(0x150),'aliases':['u'],'validOpts':[],'shortDesc':a102h(0x14e),'experimental':!![]},async function(){var i=a102h;a102e[i(0x150)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103k=a103d;
|
|
1
|
+
const a103k=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x8e;let f=c[d];return f;},a103d(a,b);}function a103c(){const m=['----------------------Project----------------------------','apply','1152gBhSkJ','24rkcBAh','5491380GgOYPq','isMakaProject','bright','verbose','1737423uJQdEw','fsi','5epgQLn','error','252417htWPhO','12XgYVKc','3502443hSxSYY','warn','create','mpi','5.1.5','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','majestic','Maka\x20','(((.+)+)+)+$','valid','search','getGlobalMeteorVersion','compareMakaToLatest','----------------------System----------------------------','Project\x27s\x20Meteor\x20Version\x20','maka\x20v','809572LRmXwg','528Wmssdq','6202734eEaZqf','constructor','version','\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','90290VOfWww','notice','\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','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','toString','replace','System\x27s\x20Meteor\x20Version\x20'];a103c=function(){return m;};return a103c();}(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(0xa0))/0x1+parseInt(h(0xb6))/0x2*(-parseInt(h(0xa5))/0x3)+parseInt(h(0x9c))/0x4+-parseInt(h(0xa2))/0x5*(-parseInt(h(0xb8))/0x6)+parseInt(h(0xa6))/0x7*(-parseInt(h(0x9b))/0x8)+-parseInt(h(0x9a))/0x9*(parseInt(h(0x91))/0xa)+parseInt(h(0xa4))/0xb*(parseInt(h(0xb7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xd64fe));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x99)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a['toString']()['search'](j(0xae))[j(0x95)]()[j(0x8e)](a103a)[j(0xb0)](j(0xae));});a103a();import a103e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a103k(0xaa)};Command[a103k(0xa8)]({'name':'version','aliases':['v'],'usage':'maka\x20version','maxArgLength':0x1,'validOpts':[a103k(0x9f)],'shortDesc':a103k(0xab),'examples':[a103k(0xb5),'maka\x20version'],'description':a103k(0x90)},async function(a,b){const l=a103k;try{Log[l(0xac)](l(0xad)+pjson[l(0x8f)]),await this[l(0xa1)][l(0xb2)]();if(b['verbose']){await this[l(0xa1)][l(0xb2)](),Log['bright'](l(0xb3));const c=this[l(0xa9)][l(0xb1)]();Log[l(0x9e)]((l(0x97)+c)[l(0x96)]('\x0a',''));if(this[l(0xa1)][l(0x9d)]()){Log[l(0x9e)](l(0x98));const d=this[l(0xa1)]['getProjectMeteorVersion']();try{!a103e[l(0xaf)](d)?Log[l(0xa7)](l(0xb4)+d['replace']('\x0a','')):Log[l(0x92)](l(0xb4)+d['replace']('\x0a',''));}catch(f){Log['error']('An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20'+f),Log[l(0xa3)](l(0x94));}Log[l(0x9e)](l(0x93));}}}catch(g){console[l(0xa3)](g),process['exit'](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(0xdb))/0x1+-parseInt(f(0xdc))/0x2+parseInt(f(0xda))/0x3+-parseInt(f(0xd3))/0x4*(-parseInt(f(0xd9))/0x5)+-parseInt(f(0xd7))/0x6+parseInt(f(0xde))/0x7*(-parseInt(f(0xd5))/0x8)+parseInt(f(0xd8))/0x9*(parseInt(f(0xd6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x18ce7));var a104b=(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;};}()),a104a=a104b(this,function(){var g=a104d;return a104a['toString']()[g(0xd1)](g(0xdd))[g(0xd4)]()[g(0xd2)](a104a)[g(0xd1)](g(0xdd));});function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0xd1;var f=c[d];return f;},a104d(a,b);}a104a();export class UsageError{}function a104c(){var h=['1620670KJciSL','764730FJPoWh','27NpJjvU','307145TMNkkN','237252lWomLS','184802KGKyxl','318634lvyVzO','(((.+)+)+)+$','5593lFFgcP','search','constructor','4GvfCiX','toString','536olKDQJ'];a104c=function(){return h;};return a104c();}export class UsageErrorWithSubs{}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
|
-
|
|
2
|
+
function a105c(){const k=['NODE_OPTIONS','766405IDtRUQ','30FhPuDy','.maka','writeFileSync','constructor','32nSpHiz','join','2107686yVpZip','78UoGRlS','stringify','(((.+)+)+)+$','homedir','env','31330100fGGCPV','toString','8724519ctbZNa','94803ZwiwdB','1256682tNMHLZ','5201560ZUEalL'];a105c=function(){return k;};return a105c();}const a105j=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=-parseInt(h(0x183))/0x1+parseInt(h(0x17a))/0x2*(-parseInt(h(0x182))/0x3)+-parseInt(h(0x184))/0x4+-parseInt(h(0x186))/0x5*(parseInt(h(0x187))/0x6)+-parseInt(h(0x18d))/0x7*(-parseInt(h(0x18b))/0x8)+parseInt(h(0x181))/0x9+parseInt(h(0x17f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xb751d));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const i=a105d;return a105a['toString']()['search'](i(0x17c))[i(0x180)]()[i(0x18a)](a105a)['search']('(((.+)+)+)+$');});a105a();import a105e from'path';import a105f from'os';import a105g from'fs';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x17a;let f=c[d];return f;},a105d(a,b);}const homeDir=a105f[a105j(0x17d)](),GLOBAL_CONFIG='global-config.json',pathToGlobalMakaConfig=a105e[a105j(0x18c)](homeDir,'.meteor',a105j(0x188),GLOBAL_CONFIG);if(!a105g['existsSync'](pathToGlobalMakaConfig)){const jsonData=JSON[a105j(0x17b)]({},null,0x2);a105g[a105j(0x189)](pathToGlobalMakaConfig,jsonData);}process[a105j(0x17e)][a105j(0x185)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106u=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=-parseInt(r(0x1cd))/0x1+-parseInt(r(0x194))/0x2*(parseInt(r(0x1c5))/0x3)+-parseInt(r(0x1d2))/0x4*(-parseInt(r(0x18d))/0x5)+-parseInt(r(0x189))/0x6+parseInt(r(0x1cf))/0x7*(parseInt(r(0x1a5))/0x8)+parseInt(r(0x1b1))/0x9+parseInt(r(0x1b6))/0xa*(parseInt(r(0x1b2))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xdb84a));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(0x162)]()[s(0x1ca)]('(((.+)+)+)+$')[s(0x162)]()[s(0x163)](a106a)['search'](s(0x19b));});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';function a106c(){const M=['length','No\x20undo\x20handler\x20defined\x20for\x20','writeFileSync','warn','Generator\x20requires\x20a\x20name','getGlobalConfig','maxOptsLength','Generator\x20requires\x20a\x20handler\x20function','chdir','readHistory','invoke','bind','name','findGeneratorByName','writeHistory','size','history.json','colLocAnswer','1715766FSbPKd','help','Too\x20many\x20arguments','client','6525805clkWqG','checkWhere','pathFromProject','tableList','cfg','handleGenerateError','Client','8iPbuht','usage','Too\x20many\x20options','config','validateMakaProject','Generator.create\x20requires\x20some\x20options!','error','(((.+)+)+)+$','filter','generatorName','statSync','DARK','utf-8','_undoHandler','mustHaveMeteorInstalled','_handler','.maka','480aPvCRj','where','(experimental)\x20','fullNameChain','addGenerator','Too\x20few\x20arguments','Generator\x20format\x20is\x20incorrect','params','function','projectConfig','bright','light','14505624KPCbin','4642eaMyIT','setColorMode','dir','requiredEngines','12020rXSskX','readFileSync','opts','push','Location','Alias','notice','slice','getMakaProjectConfig','server','number','Generators:','resourceNameRequired','both','resourceName','674793YhVTIC','cwd','listGenerators','Name','pop','search','parse','keys','1369550kKXbnG','message','3528adlrEX','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','shortDesc','4KskWqQ','includes','existsSync','transactionId','sort','validateParams','_historyFilePath','maxArgLength','minArgLength','replace','There\x20is\x20no\x20Meteor\x20application\x20here','Generator\x20','\x20not\x20found.\x20Cannot\x20undo.','mustBeInMakaProject','\x20not\x20found','\x20generator.\x20Skipping\x20undo.','from','toString','constructor','Generator.create\x20requires\x20a\x20handler\x20function!','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','forEach','validateEngines','addToHistory','undo','Please\x20run\x20\x22maka\x20install\x20meteor\x22','deepen','appPathPrefix','match','assign','_generators','split','call','fsi','shift','options','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','sep'];a106c=function(){return M;};return a106c();}let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a106h();async function inside(a='.',b){const t=a106d,c=process['cwd']();try{return process['chdir'](a),await b();}finally{process[t(0x17f)](c);}}function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x155;let f=c[d];return f;},a106d(a,b);}export class Generator extends Tool{[a106u(0x174)];[a106u(0x1a8)];[a106u(0x1ae)];[a106u(0x16f)];[a106u(0x157)];[a106u(0x1a1)];['_genTransactionId'];[a106u(0x1a3)];constructor(a,b,c){const v=a106u;super();if(!a)throw new Error(v(0x1d0));if(!a[v(0x183)])throw new Error(v(0x17b));if(typeof b!==v(0x1ad))throw new Error(v(0x17e));this[v(0x16f)]=[];a[v(0x1c2)]===undefined&&(a['resourceNameRequired']=!![]);this['options']=Object[v(0x16e)]({},a),this[v(0x183)]=this[v(0x174)][v(0x183)],this['_handler']=b[v(0x182)](this);try{this[v(0x157)]=this['fsi'][v(0x18f)]({'pathParts':['.maka',v(0x187)]})||a106e['join']('.',v(0x1a4),v(0x187));}catch(d){Log[v(0x19a)](d);}c&&(this['_undoHandler']=c[v(0x182)](this));}['getHistoryFileSize'](){const w=a106u;if(a106f[w(0x1d4)](this[w(0x157)])){const a=a106f[w(0x19e)](this['_historyFilePath']);return a[w(0x186)];}return 0x0;}[a106u(0x180)](){const x=a106u;if(!a106f[x(0x1d4)](this['_historyFilePath']))return[];return JSON[x(0x1cb)](a106f[x(0x1b7)](this[x(0x157)],x(0x1a0)));}['writeHistory'](a){const y=a106u;this[y(0x157)]&&!a106f[y(0x1d4)](this['_historyFilePath'])&&a106f['writeFileSync'](this[y(0x157)],JSON['stringify']([])),a106f[y(0x179)](this[y(0x157)],JSON['stringify'](a,null,0x2));}['addToHistory'](a){const z=a106u;try{a?.[z(0x1ac)]?.[z(0x1b8)][z(0x197)]&&delete a[z(0x1ac)][z(0x1b8)][z(0x197)];const b=this[z(0x180)](),c={'generatorName':this[z(0x1a8)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x1b9)](c);const d=Buffer[z(0x161)](JSON['stringify'](b))[z(0x177)];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[z(0x173)]();}this['writeHistory'](b);}catch(f){Log['error'](f);}}async[a106u(0x169)](){const A=a106u,a=this[A(0x180)]();if(a[A(0x177)]===0x0){Log[A(0x17a)]('Nothing\x20to\x20undo.');return;}const b=a[A(0x1c9)](),c=b[A(0x1d5)],d=a[A(0x19c)](e=>e[A(0x1d5)]===c);d['push'](b),d['reverse']();for(const e of d){const f=this['findGeneratorByName'](e[A(0x19d)]);if(!f){Log[A(0x19a)](A(0x15c)+e['generatorName']+A(0x15d));continue;}if(f[A(0x1a1)]){}else Log[A(0x17a)](A(0x178)+e[A(0x19d)]+A(0x160));}this[A(0x185)](a[A(0x19c)](g=>g[A(0x1d5)]!==c));}static['create'](a,b,c,d){const B=a106u;if(!a)throw new Error(B(0x199));if(typeof b!=='function')throw new Error(B(0x164));const e=new Generator(a,b,c);d=d||a106i;const f=d?d[B(0x1a8)]:'';return e['fullNameChain']=f?f+':'+a[B(0x183)]:a[B(0x183)],Object[B(0x16e)](e,{'parent':d?.[B(0x174)]?.[B(0x183)]}),d[B(0x1a9)](e),e;}[a106u(0x1a9)](a){const C=a106u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][C(0x1b9)](a);}async['processAndRunGenerator'](a,b=[],c={}){const D=a106u;let d;try{const f=a?.[D(0x170)](':');if(!f||f[D(0x177)]===0x0)throw D(0x1ab);let g=this[D(0x16f)],h;for(const i of f){h=g['find'](j=>j[D(0x16d)](i));if(!h)throw D(0x15c)+i+'\x20not\x20found';g=h['_generators'];}if(h)d=await h[D(0x181)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[D(0x19a)](j);}return d;}[a106u(0x184)](a){const E=a106u,b=a?.[E(0x170)](':');if(!b||b[E(0x177)]===0x0)return Log[E(0x19a)]('Generator\x20format\x20is\x20incorrect'),null;let c=this[E(0x16f)],d;for(const e of b){d=c['find'](f=>f[E(0x16d)](e));if(!d)return Log[E(0x19a)]('Generator\x20'+e+E(0x15f)),null;c=d['_generators'];}return d||null;}async[a106u(0x181)](a,b){const F=a106u,c=a[F(0x1bd)]();b[F(0x1c4)]=c[0x0];const {config:d}=b;try{const f=await this[F(0x191)][F(0x17c)](),g=f['pallet']===F(0x1b0)?ColorMode['LIGHT']:ColorMode[F(0x19f)];Log[F(0x1b3)](g);const h=a[0x0]===_prevGen||a[F(0x177)]===0x0&&this['_generators'][F(0x177)]>=0x0,i=b[F(0x18a)]||b['h'];if(h&&i){if(this['_generators'][F(0x177)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[F(0x174)][F(0x15e)]){if(!d){const j=this[F(0x198)]();if(!j)throw new MustBeInProjectError();this[F(0x1ae)]=this[F(0x191)][F(0x1be)]();}else this['projectConfig']=d;}if(this[F(0x174)][F(0x1a2)]){const k=this['validateMeteorInstall']();if(!k)throw new NoMeteorFoundError();}if(typeof this[F(0x174)][F(0x159)]===F(0x1c0)){if(a[F(0x177)]<this['options']['minArgLength']){Log[F(0x19a)](F(0x1aa));throw new UsageError();}}if(typeof this[F(0x174)]['maxArgLength']==='number'){if(a[F(0x177)]>this['options'][F(0x158)]){Log[F(0x19a)](F(0x18b));throw new UsageError();}}if(typeof this['options']['minOptsLength']===F(0x1c0)){if(Object[F(0x1cc)](b)[F(0x177)]<this['options']['minOptsLength']){Log[F(0x19a)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[F(0x174)]['maxOptsLength']===F(0x1c0)){if(Object['keys'](b)[F(0x177)]>=this[F(0x174)][F(0x17d)]){Log[F(0x19a)](F(0x196));throw new UsageError();}}}this[F(0x174)][F(0x1b5)]&&this[F(0x167)](this[F(0x174)][F(0x1b5)]);await this[F(0x156)](a,b,this['options']);if(!b[F(0x1c4)]&&this[F(0x174)]['resourceNameRequired']){Log[F(0x19a)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(l){this[F(0x192)](l),process['exit'](0x1);}return await inside(b[F(0x1c6)],async()=>{const G=F;try{if(!b['root']&&!this[G(0x172)]['findProjectDirectory']())throw new MustBeInProjectError();const m=b[G(0x1c4)]?.[G(0x15a)](/\\/g,'/')['split']('/');!b[G(0x1b4)]&&(m?.[G(0x177)]>0x1?(b[G(0x1c4)]=m[G(0x1c9)](),c[0x0]=b[G(0x1c4)],b[G(0x1b4)]=m['map'](o=>{return kebabCase(o);})['join'](a106e[G(0x176)])):b[G(0x1b4)]='');if(this['options'][G(0x18e)]){if(!b[G(0x1a6)]){const p=await Actions['select']({'message':G(0x1ba),'name':G(0x188),'choices':[{'name':G(0x193),'value':G(0x18c)},{'name':'Server','value':G(0x1bf)},{'name':'Both','value':'both'}]});b[G(0x1a6)]=p;}const o=[G(0x1c3),G(0x18c),G(0x1bf)];if(!o[G(0x1d3)](b['where'])){Log['error'](G(0x165));throw new UsageError();}switch(b[G(0x1a6)]){case G(0x1c3):b[G(0x16c)]='lib';break;case'server':b[G(0x16c)]=G(0x1bf);break;case G(0x18c):b[G(0x16c)]='client';break;default:b[G(0x16c)]='';}}const n=await this['_handler'][G(0x171)](this,c,b);return n&&this[G(0x168)]({'params':{'args':c,'opts':this['fsi'][G(0x16b)](b)},'success':n?.['success'],'message':n?.[G(0x1ce)],'details':n?.['details']}),n;}catch(q){this[G(0x192)](q);}});}[a106u(0x1c7)](){const H=a106u;this[H(0x190)](this['_generators']);}[a106u(0x192)](a){const I=a106u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x174)];Log[I(0x195)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log['notice'](I(0x1c1)),this[I(0x190)](this[I(0x16f)]);else{if(a instanceof MustBeInProjectError)Log[I(0x19a)](I(0x175));else{if(a instanceof NoMeteorFoundError)Log[I(0x19a)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[I(0x1bc)](I(0x16a));else a instanceof NoMeteorAppFoundError&&Log['error'](I(0x15b));}}}[a106u(0x190)](a){const J=a106u,b=new a106g({});b[J(0x1b9)]([J(0x1c8),J(0x1bb),'Description']),a[J(0x155)]((c,d)=>{const K=J;return c[K(0x183)]['localeCompare'](d['name']);})[J(0x166)](c=>{const L=J,d=c['experimental'](),e=d?L(0x1a7)+c[L(0x1d1)]():c[L(0x1d1)]();b['push']([c['name'],c['aliases'](),e]);}),Log[J(0x1af)](b[J(0x162)]());}}
|
|
1
|
+
const a106v=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=-parseInt(r(0x1ba))/0x1*(parseInt(r(0x1a4))/0x2)+parseInt(r(0x1ec))/0x3*(-parseInt(r(0x1d9))/0x4)+-parseInt(r(0x1cb))/0x5*(-parseInt(r(0x18b))/0x6)+parseInt(r(0x1f7))/0x7*(parseInt(r(0x1ca))/0x8)+parseInt(r(0x1fc))/0x9*(parseInt(r(0x1d2))/0xa)+-parseInt(r(0x1bc))/0xb*(-parseInt(r(0x1ce))/0xc)+parseInt(r(0x1fb))/0xd*(-parseInt(r(0x1cd))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x810c3));function a106c(){const N=['addToHistory','find','opts','Location','Description','appPathPrefix','LIGHT','writeHistory','client','existsSync','notice','pathFromProject','1470PBxizT','_generators','length','utf-8','\x20not\x20found','both','pallet','history.json','call','split','No\x20undo\x20handler\x20defined\x20for\x20','findGeneratorByName','Generators:','parse','requiredEngines','processAndRunGenerator','map','getHistoryFileSize','join','Too\x20few\x20arguments','Generator\x20requires\x20a\x20name','Generator\x20format\x20is\x20incorrect','(((.+)+)+)+$','_undoHandler','_historyFilePath','326506OQsWsV','sort','Generator\x20','setColorMode','constructor','_genTransactionId','number','shortDesc','Generator.create\x20requires\x20some\x20options!','success','Too\x20many\x20options','minArgLength','Generator.create\x20requires\x20a\x20handler\x20function!','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','message','(experimental)\x20','transactionId','keys','fullNameChain','error','experimental','.maka','5tUGXhB','addGenerator\x20requires\x20a\x20Generator\x20instance','288024ArYetw','pop','dir','config','fsi','Too\x20many\x20arguments','generatorName','\x20not\x20found.\x20Cannot\x20undo.','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','maxOptsLength','mustHaveMeteorInstalled','projectConfig','Alias','resourceName','137336VvGnzR','3295yuZRbr','\x20generator.\x20Skipping\x20undo.','819658OCYipn','288rczwOn','deepen','mustBeInMakaProject','push','5890930uwBrHh','validateMakaProject','size','stringify','assign','_handler','toString','135116UNVlJS','statSync','There\x20is\x20no\x20Meteor\x20application\x20here','tableList','invoke','colLocAnswer','apply','listGenerators','match','shift','exit','findProjectDirectory','minOptsLength','validateMeteorInstall','create','params','addGenerator','Nothing\x20to\x20undo.','Please\x20run\x20\x22maka\x20install\x20meteor\x22','6xsYRys','writeFileSync','server','getGlobalConfig','cwd','includes','Server','name','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','Both','warn','133SwIpyS','chdir','readHistory','options','65qugKFu','9fkhGTq','resourceNameRequired','root','No\x20resource\x20name\x20specified','from','select','where','reverse','handleGenerateError','readFileSync','help','bind','getMakaProjectConfig','maxArgLength','replace','search','cfg'];a106c=function(){return N;};return a106c();}const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a106d;if(c){const e=c[s(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const t=a106d;return a106a[t(0x1d8)]()[t(0x20b)](t(0x1a1))[t(0x1d8)]()[t(0x1a8)](a106a)['search']('(((.+)+)+)+$');});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';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x184;let f=c[d];return f;},a106d(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=a106h();async function inside(a='.',b){const u=a106d,c=process[u(0x1f0)]();try{return process[u(0x1f8)](a),await b();}finally{process['chdir'](c);}}export class Generator extends Tool{['options'];[a106v(0x1b6)];[a106v(0x1c7)];[a106v(0x18c)];[a106v(0x1a3)];[a106v(0x1a2)];[a106v(0x1a9)];[a106v(0x1d7)];constructor(a,b,c){const w=a106v;super();if(!a)throw new Error(w(0x1c4));if(!a[w(0x1f3)])throw new Error(w(0x19f));if(typeof b!=='function')throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[w(0x18c)]=[];a['resourceNameRequired']===undefined&&(a[w(0x1fd)]=!![]);this[w(0x1fa)]=Object[w(0x1d6)]({},a),this[w(0x1f3)]=this[w(0x1fa)]['name'],this[w(0x1d7)]=b[w(0x207)](this);try{this[w(0x1a3)]=this[w(0x1c0)][w(0x18a)]({'pathParts':[w(0x1b9),w(0x192)]})||a106e[w(0x19d)]('.',w(0x1b9),w(0x192));}catch(d){Log[w(0x1b7)](d);}c&&(this[w(0x1a2)]=c[w(0x207)](this));}[a106v(0x19c)](){const x=a106v;if(a106f[x(0x188)](this['_historyFilePath'])){const a=a106f[x(0x1da)](this[x(0x1a3)]);return a[x(0x1d4)];}return 0x0;}[a106v(0x1f9)](){const y=a106v;if(!a106f[y(0x188)](this[y(0x1a3)]))return[];return JSON[y(0x198)](a106f[y(0x205)](this[y(0x1a3)],y(0x18e)));}[a106v(0x186)](a){const z=a106v;this[z(0x1a3)]&&!a106f[z(0x188)](this[z(0x1a3)])&&a106f[z(0x1ed)](this[z(0x1a3)],JSON[z(0x1d5)]([])),a106f['writeFileSync'](this[z(0x1a3)],JSON[z(0x1d5)](a,null,0x2));}[a106v(0x20d)](a){const A=a106v;try{a?.[A(0x1e8)]?.[A(0x20f)][A(0x1bf)]&&delete a[A(0x1e8)][A(0x20f)]['config'];const b=this[A(0x1f9)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1d1)](c);const d=Buffer[A(0x200)](JSON[A(0x1d5)](b))[A(0x18d)];while(d>MAX_HISTORY_SIZE&&b[A(0x18d)]>0x0){b[A(0x1e2)]();}this['writeHistory'](b);}catch(f){Log['error'](f);}}async['undo'](){const B=a106v,a=this[B(0x1f9)]();if(a[B(0x18d)]===0x0){Log[B(0x1f6)](B(0x1ea));return;}const b=a[B(0x1bd)](),c=b[B(0x1b4)],d=a['filter'](e=>e[B(0x1b4)]===c);d[B(0x1d1)](b),d[B(0x203)]();for(const e of d){const f=this['findGeneratorByName'](e[B(0x1c2)]);if(!f){Log['error'](B(0x1a6)+e[B(0x1c2)]+B(0x1c3));continue;}if(f[B(0x1a2)]){}else Log[B(0x1f6)](B(0x195)+e[B(0x1c2)]+B(0x1cc));}this[B(0x186)](a['filter'](g=>g[B(0x1b4)]!==c));}static[a106v(0x1e7)](a,b,c,d){const C=a106v;if(!a)throw new Error(C(0x1ac));if(typeof b!=='function')throw new Error(C(0x1b0));const e=new Generator(a,b,c);d=d||a106i;const f=d?d[C(0x1b6)]:'';return e[C(0x1b6)]=f?f+':'+a[C(0x1f3)]:a['name'],Object['assign'](e,{'parent':d?.[C(0x1fa)]?.[C(0x1f3)]}),d[C(0x1e9)](e),e;}['addGenerator'](a){const D=a106v;if(!(a instanceof Generator))throw new Error(D(0x1bb));this[D(0x18c)]['push'](a);}async[a106v(0x19a)](a,b=[],c={}){const E=a106v;let d;try{const f=a?.['split'](':');if(!f||f['length']===0x0)throw E(0x1a0);let g=this[E(0x18c)],h;for(const i of f){h=g[E(0x20e)](j=>j[E(0x1e1)](i));if(!h)throw E(0x1a6)+i+E(0x18f);g=h[E(0x18c)];}if(h)d=await h[E(0x1dd)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x1b7)](j);}return d;}[a106v(0x196)](a){const F=a106v,b=a?.[F(0x194)](':');if(!b||b['length']===0x0)return Log[F(0x1b7)](F(0x1a0)),null;let c=this[F(0x18c)],d;for(const e of b){d=c[F(0x20e)](f=>f[F(0x1e1)](e));if(!d)return Log[F(0x1b7)](F(0x1a6)+e+'\x20not\x20found'),null;c=d[F(0x18c)];}return d||null;}async[a106v(0x1dd)](a,b){const G=a106v,c=a['slice']();b[G(0x1c9)]=c[0x0];const {config:d}=b;try{const f=await this[G(0x20c)][G(0x1ef)](),g=f[G(0x191)]==='light'?ColorMode[G(0x185)]:ColorMode['DARK'];Log[G(0x1a7)](g);const h=a[0x0]===_prevGen||a[G(0x18d)]===0x0&&this[G(0x18c)][G(0x18d)]>=0x0,i=b[G(0x206)]||b['h'];if(h&&i){if(this[G(0x18c)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x1fa)][G(0x1d0)]){if(!d){const j=this[G(0x1d3)]();if(!j)throw new MustBeInProjectError();this[G(0x1c7)]=this[G(0x20c)][G(0x208)]();}else this[G(0x1c7)]=d;}if(this['options'][G(0x1c6)]){const k=this[G(0x1e6)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[G(0x1fa)][G(0x1af)]===G(0x1aa)){if(a[G(0x18d)]<this['options']['minArgLength']){Log[G(0x1b7)](G(0x19e));throw new UsageError();}}if(typeof this[G(0x1fa)][G(0x209)]===G(0x1aa)){if(a[G(0x18d)]>this[G(0x1fa)][G(0x209)]){Log[G(0x1b7)](G(0x1c1));throw new UsageError();}}if(typeof this[G(0x1fa)][G(0x1e5)]===G(0x1aa)){if(Object['keys'](b)['length']<this['options']['minOptsLength']){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[G(0x1fa)][G(0x1c5)]===G(0x1aa)){if(Object[G(0x1b5)](b)['length']>=this[G(0x1fa)][G(0x1c5)]){Log[G(0x1b7)](G(0x1ae));throw new UsageError();}}}this[G(0x1fa)][G(0x199)]&&this['validateEngines'](this[G(0x1fa)]['requiredEngines']);await this['validateParams'](a,b,this[G(0x1fa)]);if(!b['resourceName']&&this[G(0x1fa)][G(0x1fd)]){Log[G(0x1b7)](G(0x1ff));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[G(0x204)](l),process[G(0x1e3)](0x1);}return await inside(b[G(0x1f0)],async()=>{const H=G;try{if(!b[H(0x1fe)]&&!this[H(0x1c0)][H(0x1e4)]())throw new MustBeInProjectError();const m=b[H(0x1c9)]?.[H(0x20a)](/\\/g,'/')[H(0x194)]('/');!b[H(0x1be)]&&(m?.[H(0x18d)]>0x1?(b[H(0x1c9)]=m[H(0x1bd)](),c[0x0]=b[H(0x1c9)],b[H(0x1be)]=m[H(0x19b)](o=>{return kebabCase(o);})['join'](a106e['sep'])):b['dir']='');if(this[H(0x1fa)]['checkWhere']){if(!b['where']){const p=await Actions[H(0x201)]({'message':H(0x210),'name':H(0x1de),'choices':[{'name':'Client','value':'client'},{'name':H(0x1f2),'value':H(0x1ee)},{'name':H(0x1f5),'value':H(0x190)}]});b['where']=p;}const o=['both','client',H(0x1ee)];if(!o[H(0x1f1)](b[H(0x202)])){Log[H(0x1b7)](H(0x1f4));throw new UsageError();}switch(b[H(0x202)]){case'both':b['appPathPrefix']='lib';break;case H(0x1ee):b['appPathPrefix']=H(0x1ee);break;case H(0x187):b[H(0x184)]='client';break;default:b[H(0x184)]='';}}const n=await this[H(0x1d7)][H(0x193)](this,c,b);return n&&this[H(0x20d)]({'params':{'args':c,'opts':this[H(0x1c0)][H(0x1cf)](b)},'success':n?.[H(0x1ad)],'message':n?.[H(0x1b2)],'details':n?.['details']}),n;}catch(q){this[H(0x204)](q);}});}[a106v(0x1e0)](){const I=a106v;this[I(0x1dc)](this[I(0x18c)]);}[a106v(0x204)](a){const J=a106v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this['options'];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x189)](J(0x197)),this[J(0x1dc)](this[J(0x18c)]);else{if(a instanceof MustBeInProjectError)Log[J(0x1b7)](J(0x1b1));else{if(a instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](J(0x1eb));else a instanceof NoMeteorAppFoundError&&Log['error'](J(0x1db));}}}['tableList'](a){const K=a106v,b=new a106g({});b[K(0x1d1)](['Name',K(0x1c8),K(0x211)]),a[K(0x1a5)]((c,d)=>{const L=K;return c[L(0x1f3)]['localeCompare'](d[L(0x1f3)]);})['forEach'](c=>{const M=K,d=c[M(0x1b8)](),e=d?M(0x1b3)+c[M(0x1ab)]():c[M(0x1ab)]();b[M(0x1d1)]([c[M(0x1f3)],c['aliases'](),e]);}),Log['bright'](b[K(0x1d8)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=parseInt(f(0x1e1))/0x1*(parseInt(f(0x1dd))/0x2)+-parseInt(f(0x1df))/0x3*(parseInt(f(0x1e8))/0x4)+-parseInt(f(0x1e2))/0x5*(parseInt(f(0x1e0))/0x6)+-parseInt(f(0x1db))/0x7+parseInt(f(0x1e4))/0x8*(-parseInt(f(0x1e7))/0x9)+parseInt(f(0x1da))/0xa+parseInt(f(0x1dc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xc5b2d));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a['toString']()['search'](h(0x1e6))[h(0x1e3)]()[h(0x1e5)](a107a)['search'](h(0x1e6));});a107a();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';function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x1da;var f=c[d];return f;},a107d(a,b);}import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';function a107c(){var i=['1Gbllyk','1575EtzJTU','toString','5933232WXSfHa','constructor','(((.+)+)+)+$','9TQmyfu','244lTwIsd','9391220CyKbRx','9013060VCfFFs','30995338OWstYm','531922kavYQB','apply','33357vKWKKB','9630WzDqTU'];a107c=function(){return i;};return a107c();}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-0x187;let f=c[d];return f;},a108d(a,b);}(function(a,b){const x=a108d,c=a();while(!![]){try{const d=-parseInt(x(0x19e))/0x1+parseInt(x(0x1cd))/0x2+parseInt(x(0x1c7))/0x3+parseInt(x(0x1d3))/0x4*(-parseInt(x(0x1a3))/0x5)+parseInt(x(0x1c4))/0x6+parseInt(x(0x18d))/0x7*(parseInt(x(0x1d2))/0x8)+-parseInt(x(0x1cb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x3beaa));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a108d;if(c){const e=c[y(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const z=a108d;return a108a[z(0x1d9)]()[z(0x1a5)](z(0x1d5))[z(0x1d9)]()[z(0x1c9)](a108a)[z(0x1a5)](z(0x1d5));});a108a();import{Generator}from'../generator.js';function a108c(){const C=['engines.api','toString','\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/','api/typeDefs.js','template','test','maka\x20g:api\x20Todos','graphql','engines','28YvxGZJ','express','findAppDirectory','imports','server','exit','create','error','API\x20Version?\x20[v1]','scaffold','apply','@apollo/server','resourceName','checkMeteorPackage','withRest','checkbox','projectConfig','94148mCcLtw','pkg','isFile','checkNpmPackage','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','11775IVzkjg','fsi','search','graphql-tag','api','-api\x27;','@apollo/subgraph','-rest-api.','-graphql-api.','No\x20API\x20boundaries\x20selected','index.','rest','express-rate-limit','tsx','ask','includes','api/graphql-api.js','dir','\x27)\x20},','api/methods.js','maka:rest','@apollo/gateway','injectAtEndOfFile','normalize','push','setProjectConfig','api/resolvers.js','apiAnswers','pathFromApp','{\x20name:\x20\x27','withGql','apollo','resolvers.','90930XYACKw','length','api/apollo-gateway.js','1391487TcOjUL','startup','constructor','ddp-rate-limiter','3678525DAgoXw','withMethods','199408eSsSBs','-api.','api/api.js','injectIntoFile','register-','730136jDbqGE','332fnAmcT','import\x20\x27/imports/api/apollo-gateway.','(((.+)+)+)+$','confirm','mdg:validated-method'];a108c=function(){return C;};return a108c();}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[a108A(0x193)]({'name':a108A(0x1a7),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a108A(0x1a2),'validOpts':[a108A(0x1b4)],'examples':[a108A(0x18a)],'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20create\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const B=a108A;try{const {scaffold:c}=this,d=this[B(0x19d)],f=[{'name':'RPC\x20(Methods)','value':'withMethods'}];f[B(0x1bb)]({'name':'REST\x20API','value':B(0x19b)}),f[B(0x1bb)]({'name':'GraphQL','value':'withGql'});const g={'message':'API\x20boundaries\x20to\x20create','name':B(0x1be),'choices':f},h=await Actions[B(0x1b1)](B(0x195))||'v1',i=await Actions[B(0x19c)](g);i[B(0x1c5)]===0x0&&(Log[B(0x194)](B(0x1ac)),process[B(0x192)](0x1));let j='js';d[B(0x18c)]['js']===B(0x1b0)&&(j='ts');const k=this[B(0x1a4)][B(0x18f)](),l=k+a108e[B(0x1ba)]('/imports/api/apollo-gateway.'+j),m=this[B(0x1a4)][B(0x1a0)](l);!m&&d[B(0x18c)][B(0x18b)]===B(0x1c2)&&Log['info']('Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.');const n=b[B(0x199)],o=kebabCase(n),p=b['dir']?'/'+b[B(0x1b4)]+'/':'/',q={'name':pascalCase(n),'apiVersion':h,'fileName':o,'camelCase':camelCase(n),'optsDir':p,'api':d[B(0x18c)][B(0x1a7)],'graphql':d[B(0x18c)]['graphql'],'test':d[B(0x18c)][B(0x189)],'noRename':!![],'withMethods':i[B(0x1b2)](B(0x1cc)),'withRest':i[B(0x1b2)](B(0x19b)),'withGql':i[B(0x1b2)](B(0x1c1))};let r=![];q[B(0x1c1)]&&(r=m?![]:await Actions[B(0x1d6)]('Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)'));q[B(0x19b)]&&(this['cfg'][B(0x1bc)](B(0x1d8),B(0x1ae)),await this[B(0x19f)][B(0x19a)]([B(0x1b7)],{'shouldInstall':!![]}),await this[B(0x196)][B(0x188)]({'srcPath':B(0x1cf),'destPath':this['scaffold']['pathFromApp']({'pathParts':['imports',B(0x1a7),h,p,o,o+'-'+h+B(0x1aa)+j]}),'context':q,'config':d}));q['withMethods']&&(await this[B(0x19f)]['checkMeteorPackage']([B(0x1ca),B(0x1d7)],{'shouldInstall':!![]}),await this['scaffold'][B(0x188)]({'srcPath':B(0x1b6),'destPath':this[B(0x196)][B(0x1bf)]({'pathParts':[B(0x190),B(0x1a7),h,p,o,o+'-'+h+'-rpc-methods.'+j]}),'context':q,'config':d}));if(q[B(0x1c1)]){await this[B(0x19f)]['checkNpmPackage']([B(0x18e),B(0x198),B(0x1a9),B(0x1a6),B(0x1af),B(0x18b)],{'shouldInstall':!![]}),await this['scaffold'][B(0x188)]({'srcPath':B(0x1b3),'destPath':this[B(0x196)]['pathFromApp']({'pathParts':[B(0x190),B(0x1a7),h,p,o,o+'-'+h+B(0x1ab)+j]}),'context':q,'config':d});const t=this[B(0x196)][B(0x1bf)]({'pathParts':[B(0x190),B(0x1a7),h,p,o,B(0x18b),'typeDefs.'+j]});await this[B(0x196)][B(0x188)]({'srcPath':B(0x187),'destPath':t,'context':q,'config':d});const u=this[B(0x196)][B(0x1bf)]({'pathParts':['imports','api',h,p,o,B(0x18b),B(0x1c3)+j]});await this[B(0x196)][B(0x188)]({'srcPath':B(0x1bd),'destPath':u,'context':q,'config':d});if(r){await this[B(0x19f)][B(0x1a1)]([B(0x1b8),B(0x18e)],{'shouldInstall':!![]}),await this[B(0x196)][B(0x188)]({'srcPath':B(0x1c6),'destPath':l,'context':q,'config':d}),await c['injectIntoFile']({'filePath':l,'content':B(0x1c0)+o+h+B(0x1da)+h+'/'+o+B(0x1b5),'begin':'subgraphs:\x20[','end':']'});const v=this[B(0x196)]['pathFromApp']({'pathParts':[B(0x190),B(0x1c8),B(0x191),B(0x1ad)+d['engines']['js']]});await this[B(0x196)][B(0x1b9)]({'filePath':v,'content':B(0x1d4)+j+'\x27;'});}m&&await c[B(0x1d0)]({'filePath':l,'content':B(0x1c0)+o+h+B(0x1da)+h+'/'+o+B(0x1b5),'begin':'subgraphs:\x20[','end':']'});}await this['scaffold'][B(0x188)]({'srcPath':'api/register-api.js','destPath':this[B(0x196)][B(0x1bf)]({'pathParts':[B(0x190),B(0x1c8),'server',B(0x1d1)+o+B(0x1ce)+j]}),'context':q,'config':d,'force':!![]});const s=this[B(0x196)][B(0x1bf)]({'pathParts':[B(0x190),'startup','server',B(0x1ad)+d[B(0x18c)]['js']]});await this[B(0x196)]['injectAtEndOfFile']({'filePath':s,'content':'import\x20\x27./register-'+o+B(0x1a8)});}catch(w){console[B(0x194)](w),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=parseInt(f(0x10a))/0x1+-parseInt(f(0x109))/0x2+parseInt(f(0x112))/0x3*(parseInt(f(0x115))/0x4)+parseInt(f(0x10e))/0x5*(parseInt(f(0x10c))/0x6)+-parseInt(f(0x114))/0x7+parseInt(f(0x116))/0x8+-parseInt(f(0x113))/0x9*(parseInt(f(0x110))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x3546a));function a109c(){var i=['777395EYFqVW','constructor','1564480qPqoJl','search','3ZWpmdS','45QEpZwO','763056TpAKvv','1600628FzDMvB','1990992vqnzrA','67028mhWLAD','338470xizoKi','apply','6sxJQRK','toString'];a109c=function(){return i;};return a109c();}var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x10b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a['toString']()[h(0x111)]('(((.+)+)+)+$')[h(0x10d)]()[h(0x10f)](a109a)[h(0x111)]('(((.+)+)+)+$');});function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x109;var f=c[d];return f;},a109d(a,b);}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(0x143))/0x1*(-parseInt(f(0x13a))/0x2)+-parseInt(f(0x13c))/0x3+-parseInt(f(0x13d))/0x4*(-parseInt(f(0x144))/0x5)+parseInt(f(0x138))/0x6+parseInt(f(0x141))/0x7+parseInt(f(0x13f))/0x8*(-parseInt(f(0x142))/0x9)+parseInt(f(0x13b))/0xa*(-parseInt(f(0x146))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x24c0a));function a110c(){const j=['apply','aws','constructor','maka\x20{generate,\x20g}:{aws}:<name>','1608216vJeKKY','toString','14WYSEkl','10zEkQCV','71445FrqFfE','690692OOMZVw','search','8nEBbWe','Generate\x20AWS\x20templates','351001BuJpNx','572301kSoUIt','6681PacBhX','5HmvMzG','(((.+)+)+)+$','2267573nrdCrS'];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(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x139)]()[h(0x13e)]('(((.+)+)+)+$')['toString']()[h(0x149)](a110a)[h(0x13e)](h(0x145));});a110a();function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x138;let f=c[d];return f;},a110d(a,b);}import{Generator}from'../../generator.js';const AWSGen=Generator['create']({'name':a110i(0x148),'usage':a110i(0x14a),'shortDesc':a110i(0x140),'minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':['maka\x20g:aws'],'experimental':!![]},async function(){});export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=parseInt(f(0x9b))/0x1*(-parseInt(f(0xa3))/0x2)+parseInt(f(0x99))/0x3*(-parseInt(f(0x9e))/0x4)+-parseInt(f(0x9a))/0x5+-parseInt(f(0x9d))/0x6+-parseInt(f(0x9c))/0x7+parseInt(f(0xa1))/0x8*(-parseInt(f(0xa2))/0x9)+parseInt(f(0xa4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x58a15));function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x99;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(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a['toString']()[h(0x9f)](h(0xa5))[h(0xa0)]()['constructor'](a111a)[h(0x9f)](h(0xa5));});a111a();import'./cloudformation.js';function a111c(){var i=['toString','496992PpHCCG','36HsFwQJ','741502CQMXPL','25715450HrKtfY','(((.+)+)+)+$','apply','1200rGbQwF','2691200LQWTSN','1hCsmos','861028RnQYhP','1627350YisPou','6568mWGwrt','search'];a111c=function(){return i;};return a111c();}import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-
|
|
1
|
+
function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x12d;let f=c[d];return f;},a112d(a,b);}const a112h=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0x13a))/0x1+-parseInt(f(0x139))/0x2*(-parseInt(f(0x132))/0x3)+-parseInt(f(0x135))/0x4+parseInt(f(0x12f))/0x5+parseInt(f(0x134))/0x6+parseInt(f(0x12d))/0x7+parseInt(f(0x12e))/0x8*(parseInt(f(0x137))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x4d5c9));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const g=a112d;return a112a[g(0x136)]()[g(0x131)](g(0x130))[g(0x136)]()['constructor'](a112a)[g(0x131)](g(0x130));});function a112c(){const i=['search','6hVkyQZ','cloudformation','1062852AqIbhr','463060YjgAgQ','toString','144WzMbwe','AWS\x20Cloudformation\x20templates','87482AkvrWV','393091DLeYCu','create','1286474oXsrRa','55984cvDFvN','1326775CKoxsz','(((.+)+)+)+$'];a112c=function(){return i;};return a112c();}a112a();import{Generator}from'../../../generator.js';import a112e from'../aws.js';const CFGen=Generator[a112h(0x13b)]({'name':a112h(0x133),'aliases':['cf'],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','shortDesc':a112h(0x138),'resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':['maka\x20g:aws:cf'],'experimental':!![]},async function(){},async function(){},a112e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x84;let f=c[d];return f;},a113d(a,b);}const a113r=a113d;(function(a,b){const o=a113d,c=a();while(!![]){try{const d=parseInt(o(0x8c))/0x1+parseInt(o(0xa1))/0x2+-parseInt(o(0x94))/0x3*(-parseInt(o(0x8b))/0x4)+parseInt(o(0x87))/0x5+-parseInt(o(0x88))/0x6*(parseInt(o(0x85))/0x7)+-parseInt(o(0x92))/0x8+-parseInt(o(0xa6))/0x9*(parseInt(o(0x8d))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x84a0e));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a113d;if(c){const e=c[p(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const q=a113d;return a113a[q(0x98)]()[q(0x9c)](q(0x8a))[q(0x98)]()['constructor'](a113a)[q(0x9c)](q(0x8a));});a113a();import a113e from'path';import{Actions}from'../../../tools/actions/actions.class.js';import{capitalCase}from'change-case';function a113c(){const t=['notice','join','2147754BsnBAI','ami-055744c75048d8296','exit','ask','replaceAll','839898DvKyLF','template','cloudformation/create-ec2-instance.template','85939TlHWsc','No\x20instance\x20has\x20been\x20created.','3185255MmfRnV','420QoYSMw','ec2describeKeys','(((.+)+)+)+$','9956wvICYC','550504mLdpUP','130nyspZp','cloudformation','create-ec2-instance','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','Please\x20choose\x20a\x20key\x20to\x20use:\x20','1923848ELbxdW','create-ec2-instance.template','717meCByc','appName','findProjectDirectory','maka\x20g:aws:cf:cec2i','toString','chooseSecurityGroup','create','apply','search','cec2i','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i'];a113c=function(){return t;};return a113c();}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a113f from'./cloudformation.js';const CEC2Gen=Generator[a113r(0x9a)]({'name':a113r(0x8f),'aliases':[a113r(0x9d)],'usage':a113r(0x9e),'resourceNameRequired':![],'shortDesc':a113r(0x90),'mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':[a113r(0x97)],'experimental':!![]},async function(){const s=a113r,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[s(0x96)](),g=a113e[s(0xa0)](f,s(0x8e)),h=await a[s(0x89)](),i=await Actions[s(0xa4)](s(0x91))||'-1';if(parseInt(i)<0x0){Log['error']('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'),Log[s(0x9f)](s(0x86));return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m['name'],Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+j);break;}}const k=await a[s(0x99)](),l={'amiId':s(0xa2),'keyPair':j,'sgId':k,'instanceName':capitalCase(d[s(0x95)])[s(0xa5)]('-','\x20')};await c[s(0xa7)]({'srcPath':s(0x84),'destPath':a113e['join'](g,s(0x93)),'framework':'aws','context':l,'config':d,'ignore':![]});}catch(n){Log['error'](n),process[s(0xa3)](0x1);}},async function(){},a113f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a114m=a114d;(function(a,b){const k=a114d,c=a();while(!![]){try{const d=-parseInt(k(0x170))/0x1*(-parseInt(k(0x184))/0x2)+-parseInt(k(0x172))/0x3*(-parseInt(k(0x187))/0x4)+parseInt(k(0x169))/0x5*(parseInt(k(0x167))/0x6)+-parseInt(k(0x186))/0x7+-parseInt(k(0x182))/0x8+-parseInt(k(0x188))/0x9*(parseInt(k(0x16c))/0xa)+parseInt(k(0x168))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x5c141));function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x166;let f=c[d];return f;},a114d(a,b);}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(0x181)]()[l(0x18b)]('(((.+)+)+)+$')[l(0x181)]()[l(0x18c)](a114a)[l(0x18b)]('(((.+)+)+)+$');});a114a();import{kebabCase,pascalCase}from'change-case';function a114c(){const o=['search','constructor','injectAtEndOfFile','startup','6BGnlOt','4463910EzyFXQ','3272970rUWkeT','mongo','none','970MPHZUJ','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','\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','appPathPrefix','3inSGeB','engines','179115tReseU','template','col','test','collection','imports','scaffold','collection/collection.js','import\x20\x27./collections','collections','pathFromApp','resourceName','dir','where','.app-tests.','toString','3098032cmewQZ','create','203686aCxbZT','collection/tests.js','4936575eOJbXp','16cvIaUw','12537MOKPAt','checkMeteorPackage','pkg'];a114c=function(){return o;};return a114c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a114m(0x183)]({'name':a114m(0x176),'aliases':[a114m(0x174)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a114m(0x16d),'validOpts':[a114m(0x17e),'where'],'mustBeInMakaProject':!![],'description':a114m(0x16e),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a114m;try{const c=this['projectConfig'],d=b[n(0x17e)]?'/'+b[n(0x17e)]+'/':'/',f=kebabCase(b[n(0x17d)]),g={'name':pascalCase(b[n(0x17d)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[n(0x17f)],'test':c[n(0x171)][n(0x175)],'noRename':!![]};let h='js';c[n(0x171)]['js']==='tsx'&&(h='ts');await this[n(0x18a)][n(0x189)]([n(0x16a)],{'shouldInstall':!![]}),await this[n(0x178)]['template']({'srcPath':n(0x179),'destPath':this['scaffold']['pathFromApp']({'pathParts':[n(0x177),'startup',b[n(0x16f)],n(0x17b),d,f+'.'+h]}),'context':g,'config':c});c[n(0x171)][n(0x175)]!==n(0x16b)&&await this['scaffold'][n(0x173)]({'srcPath':n(0x185),'destPath':this['scaffold']['pathFromApp']({'pathParts':[n(0x177),n(0x166),b[n(0x16f)],n(0x17b),d,f+n(0x180)+h]}),'context':g,'config':c});const i=this[n(0x178)][n(0x17c)]({'pathParts':['imports','startup',b[n(0x16f)],'index.'+c['engines']['js']]});await this['scaffold'][n(0x18d)]({'filePath':i,'content':n(0x17a)+d+f+'\x27;'});}catch(j){Log['error'](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115n=a115d;(function(a,b){const k=a115d,c=a();while(!![]){try{const d=parseInt(k(
|
|
1
|
+
const a115n=a115d;(function(a,b){const k=a115d,c=a();while(!![]){try{const d=parseInt(k(0xef))/0x1*(parseInt(k(0xfb))/0x2)+parseInt(k(0xe8))/0x3*(-parseInt(k(0xe9))/0x4)+parseInt(k(0x10c))/0x5*(parseInt(k(0xe2))/0x6)+parseInt(k(0xde))/0x7*(-parseInt(k(0x10d))/0x8)+-parseInt(k(0xe5))/0x9+parseInt(k(0x10e))/0xa+parseInt(k(0xfa))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x8635a));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a115d;if(c){const e=c[l(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const m=a115d;return a115a[m(0x10a)]()[m(0x10f)](m(0xdc))[m(0x10a)]()['constructor'](a115a)['search']('(((.+)+)+)+$');});a115a();import a115e from'path';function a115c(){const p=['apply','.css','fileName','cfg','scaffold','setTemplate','engines','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','component/component.js','toString','findProjectDirectory','10IejSMA','1895144ktgBmi','2104180DFpIXG','search','.tests.js','template','dir','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','client','(((.+)+)+)+$','withTranslations','14BBujWn','none','root','checkNpmPackage','216978gVGsUI','test','graphql','332397EGaXxF','.js','projectConfig','3GIUgAq','204100NyvkoQ','create','api','ssr','resourceName','import\x20\x27./','10eqiEBH','string','injectAtBeginningOfFile','/imports/ui/','/imports/ui/components','assign','pkg','template/template.css','relative','baseDir','error','3194532mePjLi','107662unbrMr','css','test/test.js','pathFromApp','injectTemplateModule','react'];a115c=function(){return p;};return a115c();}function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xda;let f=c[d];return f;},a115d(a,b);}import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=['comp'];Generator[a115n(0xea)]({'name':'component','aliases':aliases,'usage':a115n(0xda),'shortDesc':a115n(0x108),'mustBeInMakaProject':!![],'validOpts':[{'name':a115n(0xf8)}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const o=a115n;try{const c=b[o(0xf8)]?o(0xf2)+b[o(0xf8)]:o(0xf3),d=this['scaffold'][o(0xfe)]({'pathParts':[c,b[o(0x112)],kebabCase(b[o(0xed)]),kebabCase(b[o(0xed)])]}),f=this[o(0xe7)];typeof f['template'][o(0xe3)]==='string'&&this['cfg']['setTemplate'](o(0xe3),f[o(0x111)]['test']);typeof f['template'][o(0xfc)]==='string'&&this[o(0x104)]['setTemplate']('css',f[o(0x111)][o(0xfc)]);typeof f[o(0x111)]['js']===o(0xf0)&&this[o(0x104)][o(0x106)]('js',f[o(0x111)]['js']);await this[o(0xf5)]['checkNpmPackage']('ramda',{'shouldInstall':!b[o(0xe0)]}),await this[o(0xf5)][o(0xe1)](o(0x100),{'shouldInstall':!b[o(0xe0)]});const g={'name':pascalCase(b[o(0xed)]),'myPath':a115e[o(0xf7)](this['fsi'][o(0x10b)](),d),'cssCaseName':kebabCase(b[o(0xed)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':kebabCase(b['resourceName']),'graphql':f['engines'][o(0xe4)],'features':f['features'],'client':f[o(0x107)][o(0xdb)],'api':f[o(0x107)][o(0xeb)],'ssr':f[o(0x107)][o(0xec)],'test':f[o(0x107)][o(0xe3)],'theme':f[o(0x107)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':f['features'][o(0xdd)]};await this[o(0x105)]['template']({'srcPath':o(0x109),'destPath':d+o(0xe6),'context':g,'framework':o(0x100),'config':f});f[o(0x107)]['test']!==o(0xdf)&&await this['scaffold'][o(0x111)]({'srcPath':o(0xfd),'destPath':d+o(0x110),'context':g,'framework':o(0x100),'config':f});f[o(0x111)][o(0xfc)]&&(await this['scaffold']['template']({'srcPath':o(0xf6),'destPath':d+o(0x102),'context':Object[o(0xf4)]({},g,{'className':kebabCase(b['resourceName'])}),'config':f}),await this[o(0x105)][o(0xf1)]({'filePath':d+'.'+f[o(0x107)]['js'],'content':o(0xee)+g['cssCaseName']+'.'+f['engines'][o(0xfc)]+'\x27;'}));const h=b[o(0x112)]?'/'+b[o(0x112)]+'/':'/',i=''+c+h+g[o(0x103)]+'/'+g['fileName'];await this[o(0x105)][o(0xff)](g['className'],f,i);}catch(j){Log[o(0xf9)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
function a116c(){const o=['535617MXAera','create','148406TxvoBb','610557Xdypgs','70JxYhVv','pm2.config.js','pathFromProject','12hIdqgf','config/pm2.config.js','config/process.env','template','isDocker','apply','92768TkYdRh','settings.json','projectConfig','maka\x20{generate,\x20g}:{config}\x20<name>','310832lgVzTq','search','dev','32dvCpwq','fsi','toString','appName','constructor','resourceName','maka\x20g:config\x20production','631148yzwhyW','24520ZeQXlH','development','ubuntu','config/settings.json','scaffold','config','production','local','(((.+)+)+)+$'];a116c=function(){return o;};return a116c();}const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=-parseInt(j(0xb2))/0x1+-parseInt(j(0x9c))/0x2+-parseInt(j(0xb3))/0x3+-parseInt(j(0x9f))/0x4*(-parseInt(j(0xa7))/0x5)+parseInt(j(0xb7))/0x6*(parseInt(j(0xa6))/0x7)+-parseInt(j(0xbd))/0x8+parseInt(j(0xb0))/0x9*(parseInt(j(0xb4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x1c9de));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a[l(0xa1)]()[l(0x9d)](l(0xaf))[l(0xa1)]()[l(0xa3)](a116a)[l(0x9d)](l(0xaf));});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-0x99;let f=c[d];return f;},a116d(a,b);}import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a116m(0xb1)]({'name':a116m(0xac),'usage':a116m(0x9b),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a116m(0xbb)],'mustBeInMakaProject':!![],'examples':[a116m(0xa5)]},async function(a,b){const n=a116m;try{const c=this[n(0x9a)],d={'app':c[n(0xa2)],'appFileCase':kebabCase(c[n(0xa2)]),'name':pascalCase(b[n(0xa4)]),'fileName':kebabCase(b[n(0xa4)]),'camelCase':camelCase(b[n(0xa4)]),'userName':n(0xa9),'isDocker':b[n(0xbb)]};let e=b[n(0xa4)];if(e===n(0x9e))e=n(0xa8);else e==='prod'&&(e=n(0xad));const f=this[n(0xa0)][n(0xb6)]({'pathParts':[n(0xac),e,n(0x99)]});await this[n(0xab)]['template']({'srcPath':n(0xaa),'destPath':f,'context':d,'config':c});if(e!==n(0xae)){const g=this[n(0xa0)][n(0xb6)]({'pathParts':['config',e,n(0xb5)]});await this[n(0xab)][n(0xba)]({'srcPath':n(0xb8),'destPath':g,'context':{'app':c[n(0xa2)],'isDocker':b[n(0xbb)]||![]},'config':c});}if(e===n(0xae)){const h=this[n(0xa0)][n(0xb6)]({'pathParts':['config',e,'process.env']});await this[n(0xab)][n(0xba)]({'srcPath':n(0xb9),'destPath':h,'context':d,'config':c});}}catch(i){Log['error'](i);}});
|