@maka/maka-cli 4.5.15 → 4.5.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.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/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/rbi.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.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.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/door.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/inventory.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/items.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/player.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/puzzles.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/room.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/rooms.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/types.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/eventBus.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -0
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -0
- 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/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/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.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.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.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/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/kit.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/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/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
- package/bundle/obf/src/commands/game/dunnet/commands.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/game.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/items.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/puzzles.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/rooms.js +0 -1
- package/bundle/obf/src/commands/game/dunnet/types.js +0 -1
- package/bundle/obf/src/commands/game/dunnet.sub.cmd.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a63m=a63d;(function(a,b){const j=a63d,c=a();while(!![]){try{const d=-parseInt(j(0x13b))/0x1*(-parseInt(j(0x155))/0x2)+-parseInt(j(0x14c))/0x3*(-parseInt(j(0x149))/0x4)+-parseInt(j(0x151))/0x5*(parseInt(j(0x143))/0x6)+parseInt(j(0x15b))/0x7*(parseInt(j(0x153))/0x8)+parseInt(j(0x154))/0x9*(parseInt(j(0x147))/0xa)+parseInt(j(0x14f))/0xb*(parseInt(j(0x146))/0xc)+-parseInt(j(0x152))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xda6e0));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a63d;if(c){const e=c[k(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const l=a63d;return a63a['toString']()['search']('(((.+)+)+)+$')[l(0x15c)]()[l(0x157)](a63a)['search'](l(0x144));});a63a();import a63e from'fs';import a63f from'path';import{Command}from'../command.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x13b;let f=c[d];return f;},a63d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';Command[a63m(0x158)]({'name':a63m(0x14a),'usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a63m(0x140)],'validOpts':[a63m(0x140),'v'],'shortDesc':a63m(0x148),'examples':[a63m(0x14b),a63m(0x14e),'maka\x20ssh\x20--env\x20prod',a63m(0x142),a63m(0x15d),a63m(0x15e)]},async function(a,b){const n=a63m;try{const c=this[n(0x156)][n(0x150)](b['env']);let d='';a[n(0x15a)]>0x0&&(d=a[0x0]);const f=a63f[n(0x141)](c,n(0x145)),g=a63e[n(0x14d)](f)[n(0x15c)](),h=JSON[n(0x159)](g);Object[n(0x13c)](h,{'env':c}),SSH[n(0x13f)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['v']});}catch(i){console[n(0x13e)](i),process['exit'](0x0);}});function a63c(){const o=['error','sshSync','env','join','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','8136432pewEWJ','(((.+)+)+)+$','ssh.json','6204LBfTNu','79010bYsMTH','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','4HAhZiP','ssh','maka\x20ssh\x20--env\x20dev','2972019otVZtL','readFileSync','maka\x20ssh\x20--env\x20staging','23221TCMRWY','getConfigPath','5eChzOu','44148507qDfkCx','648fxLdGs','1638WmvMPN','28qLtIue','fsi','constructor','create','parse','length','97503LEcXmE','toString','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','71322rkyXog','assign','apply'];a63c=function(){return o;};return a63c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a64c(){const A=['ask','maka\x20ssl\x20--env\x20dev\x20generate-csr','stringify','success','516NwplwC','error','1070289CBoJTm','genCSR','ssh','exit','domainNames','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','env','sudo\x20snap\x20install\x20--classic\x20certbot','emailUpdate','readFileSync','\x20--email\x20','fsi','Checking\x20remote\x20host\x20availability','Please\x20provide\x20a\x20command.','existsSync','email','appName','Create\x20and\x20manage\x20your\x20SSL\x20operations.','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','toString','getConfigPath','apply','419783jKNJoz','withSpinner','(((.+)+)+)+$','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','.key','1686454qMpfEh','10AQXEDA','uname\x20-a','maka\x20ssl\x20[command]','mkKeysDir','getProjectConfig','1063692GJuPSG','10865moMikO','join','start','/ssh.json','472437vnVNgb','search','.crt','8UuQDGH','domains','860452lpvZTG','assign','.csr','genSSC','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','Using\x20saved\x20letsencrypt\x20config','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','[?]\x20Domains\x20to\x20register:\x20','parse','Email\x20to\x20use\x20for\x20auto-updates:\x20','notice','generate-ssc','writeFileSync','letsencrypt.json'];a64c=function(){return A;};return a64c();}const a64y=a64d;(function(a,b){const v=a64d,c=a();while(!![]){try{const d=parseInt(v(0x1fe))/0x1+-parseInt(v(0x213))/0x2+parseInt(v(0x227))/0x3+parseInt(v(0x209))/0x4+-parseInt(v(0x20a))/0x5*(parseInt(v(0x225))/0x6)+parseInt(v(0x203))/0x7*(-parseInt(v(0x211))/0x8)+-parseInt(v(0x20e))/0x9*(-parseInt(v(0x204))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x39d88));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a64d;if(c){const e=c[w(0x1fd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const x=a64d;return a64a[x(0x1fb)]()[x(0x20f)](x(0x200))[x(0x1fb)]()['constructor'](a64a)[x(0x20f)](x(0x200));});a64a();import a64e from'fs';import a64f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a64d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':'ssl','usage':a64y(0x206),'validOpts':[a64y(0x212),'email'],'requiredOpts':[a64y(0x1ee)],'shortDesc':a64y(0x1f9),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a64y(0x222),a64y(0x201),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const z=a64y,c=this['fsi'][z(0x208)](),d=this[z(0x1f3)][z(0x1fc)](b['env']),f=this['fsi'][z(0x207)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[z(0x228)]({'keyName':c[z(0x1f8)]+'.key','csrName':c['appName']+z(0x215),'cwd':f});else{if(g===z(0x21e)){if(!a64e[z(0x1f6)](a64f[z(0x20b)](f,c[z(0x1f8)]+z(0x202))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a64f[z(0x20b)](f,c[z(0x1f8)]+z(0x202));if(!a64e[z(0x1f6)](a64f[z(0x20b)](f,c[z(0x1f8)]+'.csr')))throw z(0x1fa)+a64f[z(0x20b)](f,c[z(0x1f8)]+'.csr');SSL[z(0x216)]({'keyName':c[z(0x1f8)]+z(0x202),'crtName':c[z(0x1f8)]+z(0x210),'cwd':f}),Log[z(0x21d)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g==='letsencrypt'){let h=b[z(0x212)],i=b[z(0x1f7)];try{const p=a64e[z(0x1f1)](a64f[z(0x20b)](d,z(0x220)))[z(0x1fb)](),q=JSON[z(0x21b)](p);h=b['domains']?b[z(0x212)]:q[z(0x1ec)],i=b[z(0x1f7)]?b[z(0x1f7)]:q[z(0x1f0)],(!b['email']||!b['domains'])&&Log[z(0x21d)](z(0x218));}catch(r){}const j=JSON[z(0x21b)](a64e[z(0x1f1)](d+z(0x20d))['toString']());Object[z(0x214)](j,{'env':d}),Log[z(0x21d)](z(0x1f4));try{const s=SSH['ping'](z(0x205),j);if(!s)throw z(0x1ed);if(s)Log[z(0x224)]('Remote\x20host\x20connection\x20successful');}catch(t){Log[z(0x226)](t);return;}const k=Log[z(0x1ff)]();k[z(0x20c)]('Verifying\x20Letsencrypt\x20configuration'),SSH[z(0x229)](z(0x217),{...j}),SSH['ssh'](z(0x1ef),{...j}),SSH[z(0x229)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...j}),k[z(0x224)]();const l=h?h:await Actions[z(0x221)](z(0x21a)),m=i?i:await Actions['ask'](z(0x21c));SSH[z(0x229)](z(0x219)+l+z(0x1f2)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x223)](n,null,0x2);a64e[z(0x21f)](a64f[z(0x20b)](d,'letsencrypt.json'),o);}else throw z(0x1f5);}}}catch(u){console[z(0x226)](u),process[z(0x22a)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a65q=a65d;function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x66;let f=c[d];return f;},a65d(a,b);}(function(a,b){const m=a65d,c=a();while(!![]){try{const d=-parseInt(m(0x78))/0x1+parseInt(m(0x80))/0x2+-parseInt(m(0x67))/0x3+-parseInt(m(0x87))/0x4*(-parseInt(m(0x7d))/0x5)+parseInt(m(0x91))/0x6+parseInt(m(0x74))/0x7+-parseInt(m(0x6a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x25550));function a65c(){const t=['--driver-package','settings.json','1655970paKyJC','Node\x20Env\x20Config:\x20','driverPackage','--env','create','mocha','inspect','test','test-packages','packages','Cannot\x20find\x20Node\x20Environment\x20File:\x20','maka\x20test\x20<opts>','testAppPath','invokeMeteorCommand','process.env','(((.+)+)+)+$','development','getConfigPath','findProjectDirectory','isFile','none','driver','concat','727674wYxuIt','--settings','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','1574112tNeSLY','unit','search','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','apply','port','driver-package','warn','argv','1284619dPUYPa','meteortesting:mocha','--full-app','--packages','189349weQiOc','slice','join','filter','openSync','100715VOJfJn','forEach','once','241282dvBwPn','.maka','sanjo:jasmine','error','rawLogs','fsi','env','40dzQzkZ','config.json','readFileSync','splice','notice','toString','--driver','engines'];a65c=function(){return t;};return a65c();}const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a65d;if(c){const e=c[n(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const o=a65d;return a65a[o(0x8c)]()[o(0x6c)](o(0xa0))[o(0x8c)]()['constructor'](a65a)[o(0x6c)]('(((.+)+)+)+$');});a65a();import a65e from'fs';import a65f from'path';import a65g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a65d;a65e[p(0x7c)](a,'r'),a65g['config']({'path':a});};Command[a65q(0x95)]({'name':'test','mustBeInMakaProject':!![],'validOpts':[a65q(0x7f),a65q(0x9a),a65q(0xa6),a65q(0x93),a65q(0x6b),a65q(0x86),a65q(0x84),a65q(0x70),a65q(0x97),a65q(0x9d)],'usage':a65q(0x9c),'shortDesc':a65q(0x6e),'examples':[]},function(a,b){const r=a65q;try{let c=this[r(0x85)][r(0xa2)](r(0xa1));b[r(0x86)]&&(c=this['fsi'][r(0xa2)](b[r(0x86)]));(!b[r(0x6b)]||!!b[r(0x7f)])&&(a=a[r(0x66)]([r(0x76)]));b[r(0x6b)]&&delete b[r(0x6b)];let d=b[r(0x71)]||b[r(0xa6)]||r(0xa5);if(d==='none'){const j=JSON['parse'](a65e[r(0x89)](a65f['join'](this[r(0x85)][r(0xa3)](),r(0x81),r(0x88)),'utf8'));if(j[r(0x8e)][r(0x98)]==='jasmine')d=r(0x82);else j[r(0x8e)]['test']===r(0x96)&&(d=r(0x75));}if(d===r(0xa5))throw r(0x69);(!b[r(0x71)]||!b['driver'])&&(a=a[r(0x66)]([r(0x8f),d]));const f=a65f[r(0x7a)](c,r(0x90));this[r(0x85)][r(0xa4)](f)?(Log['notice']('Meteor\x20Settings:\x20'+f),a=a[r(0x66)]([r(0x68),f])):Log[r(0x72)](r(0x6d)+f);const g=a65f[r(0x7a)](c,r(0x9f));this[r(0x85)][r(0xa4)](g)?(Log[r(0x8b)](r(0x92)+g),syncSource(g)):Log['warn'](r(0x9b)+g);const h=process[r(0x73)][r(0x79)](0x2)[r(0x7b)](k=>k!=='--env')[r(0x7b)](k=>k!=='test')[r(0x7b)](k=>k!==a[0x0]);h[r(0x7e)]((k,l)=>{const s=r;(k===s(0x94)||k===s(0x8d))&&h[s(0x8a)](l,0x2),k===s(0x77)&&h[s(0x8a)](l,0x1);});const i=b[r(0x9a)]?r(0x99):r(0x98);this['fsi'][r(0x9e)](i,a['concat'](h));}catch(k){console[r(0x83)](k),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a66l=a66d;function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x172;let f=c[d];return f;},a66d(a,b);}(function(a,b){const i=a66d,c=a();while(!![]){try{const d=-parseInt(i(0x185))/0x1+parseInt(i(0x183))/0x2*(parseInt(i(0x193))/0x3)+-parseInt(i(0x1a3))/0x4*(-parseInt(i(0x180))/0x5)+parseInt(i(0x174))/0x6*(-parseInt(i(0x178))/0x7)+-parseInt(i(0x18c))/0x8*(parseInt(i(0x173))/0x9)+parseInt(i(0x18e))/0xa+-parseInt(i(0x181))/0xb*(-parseInt(i(0x198))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0xcbf45));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a66d;if(c){const e=c[j(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const k=a66d;return a66a[k(0x191)]()[k(0x17c)](k(0x190))[k(0x191)]()[k(0x17b)](a66a)['search'](k(0x190));});a66a();function a66c(){const n=['error','fsi','compareMakaToLatest','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','replace',')\x20to\x20at\x20least\x20meteor\x27s\x20(','100KUnCcc','getGlobalMeteorVersion','getProjectMeteorVersion','27TlIUnM','8854668LThRBI','Maka\x20','maka\x20version','System\x27s\x20Node\x20Version\x20','7ydXdAl','Project\x27s\x20Meteor\x20Version\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','constructor','search','maka\x20v','node\x20-v','System\x27s\x20Meteor\x20Version\x20','81195jAHPvh','9436845UhAYxJ','platform','2233186XtWnoE','win32','1386582bjnzPL','apply','bright','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','version','isMakaProject','----------------------Project----------------------------','2232616EwlZgC','4.5.17','12966300pkQEmX','Project\x27s\x20Meteor\x20Node\x20Version\x20','(((.+)+)+)+$','toString','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','3Ykdvzn','\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','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','notice','meteor','24sOGywI','create','warn','\x20node\x20-v','----------------------System----------------------------'];a66c=function(){return n;};return a66c();}import{execSync}from'child_process';import a66e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a66l(0x18d)};Command[a66l(0x199)]({'name':a66l(0x189),'aliases':['v'],'usage':a66l(0x176),'maxArgLength':0x1,'validOpts':[],'shortDesc':a66l(0x192),'examples':[a66l(0x17d),a66l(0x176)]},async function(){const m=a66l;try{const a=process[m(0x182)]===m(0x184)?'meteor.bat':m(0x197);Log['majestic'](m(0x175)+pjson[m(0x189)]),await this[m(0x19e)][m(0x19f)](),Log[m(0x187)](m(0x19c));const b=this[m(0x19e)][m(0x1a4)]();Log['bright']((m(0x17f)+b)[m(0x1a1)]('\x0a',''));const c=execSync(a+m(0x19b))[m(0x191)]()[m(0x1a1)](/\r?\n|\r/,'')[m(0x1a1)]('v','');Log[m(0x187)](m(0x1a0)+c);const d=execSync(m(0x17e))[m(0x191)]()['replace'](/\r?\n|\r/,'')['replace']('v','');a66e['gt'](c,d)?(Log['warn']('System\x27s\x20Node\x20Version\x20'+d),Log[m(0x19a)](m(0x188)+d+m(0x1a2)+c+')')):Log['bright'](m(0x177)+d);if(this[m(0x19e)][m(0x18a)]()){Log[m(0x187)](m(0x18b));const f=this[m(0x19e)][m(0x172)]();a66e['gt'](b,f)?(Log[m(0x19a)](m(0x179)+f['replace']('\x0a','')),Log[m(0x19a)](m(0x195)+b+'\x22')):Log[m(0x196)](('Project\x27s\x20Meteor\x20Version\x20'+f)['replace']('\x0a',''));const g=await this[m(0x19e)]['getProjectsMeteorNodeVersion']();g==='N/A'?(Log[m(0x19a)](m(0x18f)+g),Log[m(0x19a)](m(0x17a))):Log[m(0x187)](m(0x18f)+g),Log['bright'](m(0x194));}}catch(h){console[m(0x19d)](h),process['exit'](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a67d,c=a();while(!![]){try{var d=parseInt(f(0xda))/0x1+parseInt(f(0xd6))/0x2+parseInt(f(0xdf))/0x3*(-parseInt(f(0xd4))/0x4)+parseInt(f(0xdd))/0x5+-parseInt(f(0xe0))/0x6+-parseInt(f(0xde))/0x7*(-parseInt(f(0xd5))/0x8)+-parseInt(f(0xdb))/0x9*(parseInt(f(0xd9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xa1d7b));var a67b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a67d;if(c){var e=c[g(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){var h=a67d;return a67a[h(0xd8)]()[h(0xd7)]('(((.+)+)+)+$')['toString']()['constructor'](a67a)[h(0xd7)](h(0xdc));});a67a();export class UsageError{}function a67c(){var i=['934176rUXpXw','apply','501712QmfHyu','2378192YWCchA','1387758YmkPZU','search','toString','1190vJzcTH','454126OWzFIM','10719kHYjsg','(((.+)+)+)+$','246785lxvphQ','21cTHKaL','27zqOKKh'];a67c=function(){return i;};return a67c();}export class UsageErrorWithSubs{}function a67d(a,b){var c=a67c();return a67d=function(d,e){d=d-0xd3;var f=c[d];return f;},a67d(a,b);}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a68d(a,b);}const a68t=a68d;(function(a,b){const q=a68d,c=a();while(!![]){try{const d=-parseInt(q(0x1dc))/0x1*(-parseInt(q(0x1ee))/0x2)+parseInt(q(0x1fb))/0x3+-parseInt(q(0x1c3))/0x4+-parseInt(q(0x20c))/0x5*(-parseInt(q(0x1d6))/0x6)+-parseInt(q(0x1b8))/0x7*(parseInt(q(0x1e9))/0x8)+-parseInt(q(0x1f0))/0x9*(parseInt(q(0x1be))/0xa)+-parseInt(q(0x1b9))/0xb*(-parseInt(q(0x1d0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0xdc93a));const a68b=(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;};}()),a68a=a68b(this,function(){const r=a68d;return a68a[r(0x1d4)]()[r(0x1cb)](r(0x1b6))[r(0x1d4)]()[r(0x1a5)](a68a)[r(0x1cb)](r(0x1b6));});a68a();import a68e from'path';import a68f from'cli-table';import{paramCase}from'change-case';function a68c(){const E=['4456335FRSDuQ','addGenerator','appPathPrefix','To\x20use\x20these\x20pro\x20flags,\x20\x22','roles','Alias','aliases','Too\x20many\x20options','addGenerator\x20requires\x20a\x20Generator\x20instance','replace','join','includes','colLocAnswer','dir','listGenerators','Generator\x20requires\x20a\x20name','Location','3397115BklcAe','push','options','constructor','error','minArgLength','_generators','Generator.create\x20requires\x20some\x20options!','maxOptsLength','client','mustHaveMeteorInstalled','resourceName','domainLicense','parent','findGenerator','findProjectDirectory','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','slice','create','exit','(((.+)+)+)+$','validateMeteorInstall','21zNcrVU','345499yHXaKC','validateMakaProject','shortDesc','Description','Please\x20run\x20\x22maka\x20install\x20meteor\x22','20oAToph','root','To\x20use\x20this\x20generator,\x20\x22','tableList','name','6263212ukorbk','validateParams','_handler','pop','There\x20is\x20no\x20Meteor\x20application\x20here','bind','singleLicense','noResource','search','length','server','forEach','cwd','408OrcLhR','where','checkWhere','number','toString','Too\x20few\x20options','12BcZHFY','invoke','maxArgLength','No\x20resource\x20name\x20specified','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','keys','70094nlPqlt','assign','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','fsi','both','match','map','bright','Client','chdir','notice','proFlags','Generator\x20requires\x20a\x20handler\x20function','4293648cWgwaD','mustBeInMakaProject','sep','function','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','6JDRZyT','validateMakaSubscription','193842csAkvK','help','Server','minOptsLength','filter','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','call','lib','proGenerators','Generators:','Generator.create\x20requires\x20a\x20handler\x20function!'];a68c=function(){return E;};return a68c();}import a68g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a68d,c=process[s(0x1cf)]();let d=null;try{process[s(0x1e5)](a),d=b();}finally{process[s(0x1e5)](c);}return d;}export class Generator extends Tool{[a68t(0x1a4)];[a68t(0x1a8)];constructor(a,b){const u=a68t;super();if(!a)throw new Error(u(0x1f5));if(!a[u(0x1c2)])throw new Error(u(0x20a));if(typeof b!=='function')throw new Error(u(0x1e8));this['_generators']=[],this[u(0x1a4)]=Object[u(0x1dd)]({},a),this[u(0x1c2)]=this[u(0x1a4)][u(0x1c2)],this[u(0x1c5)]=b[u(0x1c8)](this);}static[a68t(0x1b4)](a,b,c){const v=a68t;if(!a)throw new Error(v(0x1a9));if(typeof b!==v(0x1ec))throw new Error(v(0x1fa));const d=new Generator(a,b);return c=c||a68g,Object['assign'](d,{'parent':c?.['options']?.[v(0x1c2)]}),c[v(0x1fc)](d),d;}[a68t(0x1fc)](a){const w=a68t;if(!(a instanceof Generator))throw new Error(w(0x203));this[w(0x1a8)][w(0x1a3)](a);}['findGenerator'](a){const x=a68t,b=this[x(0x1a8)]['find'](c=>c[x(0x1e1)](a));return b;}async[a68t(0x1ef)](a,b){const y=a68t,c=this[y(0x1b0)](a[0x0]);if(c){const d=c?.[y(0x1c2)]||a[0x0],e=c?.[y(0x1af)]||'',f=Object[y(0x1db)](b),g=await this[y(0x1df)]['getPro']();!g&&(Log[y(0x1a6)](y(0x1b2)),process[y(0x1b5)](0x1));const h=!g?.[y(0x1ff)][y(0x206)](y(0x1c9))&&!g?.[y(0x1ff)]['includes'](y(0x1ae)),i=g?.[y(0x1f8)][y(0x206)](d)||g?.['proGenerators']['includes'](e);if(i&&h)throw y(0x1c0)+d+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(f[y(0x1cc)]>0x0){const j=g?.[y(0x1e7)][y(0x1f4)](k=>f[y(0x206)](k));if(j&&j[y(0x1cc)]>0x0&&h)throw y(0x1fe)+j?.[y(0x205)](',\x20')+y(0x1de);}}}async[a68t(0x1d7)](a,b){const z=a68t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[z(0x1a4)];try{await this[z(0x1ef)](a,b);}catch(g){Log[z(0x1a6)](g),process[z(0x1b5)](0x1);}const f=a[z(0x1b3)]();b[z(0x1ad)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[z(0x1f1)])throw new UsageError();if(this[z(0x1a4)][z(0x1ea)]){const h=this[z(0x1ba)]();if(!h)throw new MustBeInProjectError();}if(this[z(0x1a4)][z(0x1ac)]){const i=this[z(0x1b7)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[z(0x1a4)][z(0x1a7)]===z(0x1d3)){if(a[z(0x1cc)]<this[z(0x1a4)][z(0x1a7)]){Log[z(0x1a6)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this['options'][z(0x1d8)]==='number'){if(a[z(0x1cc)]>this[z(0x1a4)][z(0x1d8)]){Log[z(0x1a6)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[z(0x1a4)]['minOptsLength']===z(0x1d3)){if(Object['keys'](b)[z(0x1cc)]<this[z(0x1a4)][z(0x1f3)]){Log[z(0x1a6)](z(0x1d5));throw new UsageError();}}if(typeof this[z(0x1a4)][z(0x1aa)]===z(0x1d3)){if(Object[z(0x1db)](b)[z(0x1cc)]>=this[z(0x1a4)][z(0x1aa)]){Log[z(0x1a6)](z(0x202));throw new UsageError();}}this[z(0x1c4)](a,b,this['options']);if(!b['resourceName']&&!this[z(0x1a4)][z(0x1ca)]){Log[z(0x1a6)](z(0x1d9));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this['_generators'][z(0x1cc)]>0x0&&b[z(0x1f1)]&&(Log[z(0x1e6)](z(0x1f9)),this['tableList'](this[z(0x1a8)]));else{if(j instanceof MustBeInProjectError)Log[z(0x1a6)](z(0x1da));else{if(j instanceof NoMeteorFoundError)Log[z(0x1a6)](z(0x1ed)),Log[z(0x1e6)](z(0x1bd));else{if(j instanceof NoMeteorAppFoundError)Log[z(0x1a6)](z(0x1c7));else throw j;}}}process[z(0x1b5)](0x1);}return new Promise(k=>{inside(b['cwd'],async()=>{const A=a68d;try{if(!b[A(0x1bf)]&&!this[A(0x1df)][A(0x1b1)]())throw new MustBeInProjectError();const l=b[A(0x1ad)]?.[A(0x204)](/\\/g,'/')['split']('/');!b['dir']&&(l?.[A(0x1cc)]>0x1?(b[A(0x1ad)]=l[A(0x1c6)](),f[0x0]=b[A(0x1ad)],b[A(0x208)]=l[A(0x1e2)](m=>{return paramCase(m);})[A(0x205)](a68e[A(0x1eb)])):b[A(0x208)]='');if(this[A(0x1a4)][A(0x1d2)]){if(!b['where']){const n={'type':'list','name':A(0x207),'message':A(0x20b),'choices':[{'name':A(0x1e4),'value':'client'},{'name':A(0x1f2),'value':'server'},{'name':'Both','value':'both'}]},{colLocAnswer:o}=await Actions[A(0x1a4)](n);o?b[A(0x1d1)]=o:b[A(0x1d1)]=A(0x1e0);}const m=[A(0x1e0),A(0x1ab),A(0x1cd)];if(!m[A(0x206)](b[A(0x1d1)])){Log[A(0x1a6)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[A(0x1d1)]){case A(0x1e0):b[A(0x1fd)]=A(0x1f7);break;case A(0x1cd):b[A(0x1fd)]=A(0x1cd);break;case'client':b[A(0x1fd)]=A(0x1ab);break;default:b[A(0x1fd)]='';}}k(this['_handler'][A(0x1f6)](this,f,b));}catch(p){console['error'](p);}});});}[a68t(0x209)](){const B=a68t;this[B(0x1c1)](this['_generators']);}[a68t(0x1c1)](a){const C=a68t,b=new a68f({});b[C(0x1a3)](['Name',C(0x200),C(0x1bc)]),a['sort']()[C(0x1ce)](c=>{const D=C;b[D(0x1a3)]([c['name'],c[D(0x201)](),c[D(0x1bb)]()]);}),Log[C(0x1e3)](b[C(0x1d4)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a69d,c=a();while(!![]){try{var d=-parseInt(f(0xf8))/0x1+parseInt(f(0xf6))/0x2*(-parseInt(f(0xfe))/0x3)+-parseInt(f(0xf7))/0x4+parseInt(f(0x101))/0x5*(-parseInt(f(0xfa))/0x6)+-parseInt(f(0x102))/0x7*(parseInt(f(0xfc))/0x8)+-parseInt(f(0x103))/0x9+parseInt(f(0xf9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x78667));var a69b=(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;};}()),a69a=a69b(this,function(){var g=a69d;return a69a[g(0xfd)]()[g(0xfb)](g(0x100))[g(0xfd)]()[g(0xff)](a69a)[g(0xfb)]('(((.+)+)+)+$');});a69a();import'./services/_index.js';import'./api.js';function a69d(a,b){var c=a69c();return a69d=function(d,e){d=d-0xf6;var f=c[d];return f;},a69d(a,b);}import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';function a69c(){var h=['(((.+)+)+)+$','5AoLIYw','7EYweqM','9792WTlcDd','36292CSeYur','1072664XhSKRZ','49643cIhbBe','24486940lOfWtP','3934734vZNmOB','search','1023896OarFkd','toString','141TfuZyM','constructor'];a69c=function(){return h;};return a69c();}import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a70y=a70d;(function(a,b){const w=a70d,c=a();while(!![]){try{const d=-parseInt(w(0x15f))/0x1*(-parseInt(w(0x1aa))/0x2)+parseInt(w(0x17f))/0x3+parseInt(w(0x1a9))/0x4*(parseInt(w(0x167))/0x5)+parseInt(w(0x19c))/0x6+-parseInt(w(0x17a))/0x7*(-parseInt(w(0x165))/0x8)+-parseInt(w(0x166))/0x9+parseInt(w(0x15e))/0xa*(-parseInt(w(0x16a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xb1200));const a70b=(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;};}()),a70a=a70b(this,function(){const x=a70d;return a70a['toString']()[x(0x170)]('(((.+)+)+)+$')[x(0x195)]()['constructor'](a70a)['search'](x(0x1a6));});a70a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a70e from'../generators/maka.gen.js';function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x154;let f=c[d];return f;},a70d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a70c(){const B=['resolvers.','/imports/api','installMeteorPackage','push','startup','apollo','register-','api/resolvers.js','Verifying\x20meteor\x20package\x20requirements\x20...','maka:rest','resolverList.push(','rpc-methods.','ddp-rate-limiter','index.','tsx','api/methods.js','.app-tests.','toString','exit','includes','withMethods','test','api/api.js','log','3078384sqzuAV','/graphql/typeDefs','api/typeDefs.js','\x27;\x0a','rest','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','template','options','api','RPC\x20(Methods)','(((.+)+)+)+$','injectAtEndOfFile','publications.','2212YAOArd','2005362AutlVf','api/publications.js','typeList.push(','dir','api/register-api.js','const','injectAtBeginningOfFile','import\x20\x27./register-','fsi','rewriteDestinationPathForEngine','api/tests.js','graphql','290XADNtn','1jHiiXo','No\x20API\x20boundaries\x20selected','maka\x20g:api\x20todos','collection','checkMeteorPackage','withFixtures','1648AaEXYA','995697facENr','2695cjYHQQ','typeDefs.','REST\x20API','961532woQdhO','rest-api.','-api\x27;','pathFromApp','Resolvers\x20}\x20from\x20\x27','none','search','error','api/fixtures.js','Resolvers);\x0a\x0a','TypeDefs\x20}\x20from\x20\x27','TypeDefs);\x0a','injectIntoFile','engines','/graphql/resolvers','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','26348yncgiu','import\x20{\x20typeDefs\x20as\x20','if\x20\x5c(typeList','imports','server','2345667mlSEtk','mdg:validated-method','withGql','withRest','withPubs'];a70c=function(){return B;};return a70c();}Generator['create']({'name':a70y(0x1a4),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a70y(0x1a1),'validOpts':[a70y(0x155)],'examples':[a70y(0x161)]},async function(a,b){const z=a70y;try{const c=this[z(0x15a)]['getProjectConfig'](),d=[{'name':z(0x1a5),'value':'withMethods'},{'name':'Fixtures','value':z(0x164)},{'name':'Publications','value':z(0x183)}];c[z(0x177)][z(0x1a4)]===z(0x1a0)&&d[z(0x187)]({'name':z(0x169),'value':z(0x182)});c[z(0x177)]['graphql']===z(0x189)&&d[z(0x187)]({'name':'GraphQL','value':z(0x181)});const f={'type':'checkbox','name':'apiAnswers','message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[z(0x1a3)](f);g['length']===0x0&&(Log[z(0x171)](z(0x160)),process[z(0x196)](0x1)),this['fsi']['withValue'](c,async()=>{const A=z,h=this['fsi'][A(0x16d)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[A(0x155)]?'/'+b[A(0x155)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0x177)][A(0x1a4)],'graphql':c['engines']['graphql'],'test':c['engines'][A(0x199)],'noRename':!![],'withPubs':g[A(0x197)]('withPubs'),'withFixtures':g[A(0x197)](A(0x164)),'withMethods':g['includes'](A(0x198)),'withRest':g[A(0x197)](A(0x182))};let n='js';c['engines']['js']===A(0x192)&&(n='ts');(!this[A(0x15a)][A(0x163)](A(0x18d))||!this[A(0x15a)][A(0x163)]('maka:check')||!this['fsi'][A(0x163)](A(0x190))||!this[A(0x15a)][A(0x163)](A(0x180))||!this[A(0x15a)][A(0x163)]('mongo'))&&(Log['notice'](A(0x18c)),await this[A(0x15a)][A(0x186)](A(0x179),{'cwd':h}));const o=a70e['findGenerator'](A(0x162));o&&await o['invoke']([j],{'config':c,'where':'server'});c[A(0x177)]['api']==='rest'&&(m['withRest']&&this['fsi']['template']({'srcPath':A(0x19a),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':['imports','api',b[A(0x155)],j,A(0x16b)+n]}),'context':m,'config':c}));m[A(0x198)]&&this[A(0x15a)][A(0x1a2)]({'srcPath':A(0x193),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),'api',b[A(0x155)],j,A(0x18f)+n]}),'context':m,'config':c});m[A(0x164)]&&this['fsi'][A(0x1a2)]({'srcPath':A(0x172),'destPath':this[A(0x15a)]['pathFromApp']({'pathParts':[A(0x17d),A(0x1a4),b['dir'],j,'fixtures.'+n]}),'context':m,'config':c});c[A(0x177)][A(0x199)]!==A(0x16f)&&this['fsi'][A(0x1a2)]({'srcPath':A(0x15c),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':['imports','api',b['dir'],j,j+A(0x194)+n]}),'context':m,'config':c});m[A(0x183)]&&this[A(0x15a)][A(0x1a2)]({'srcPath':A(0x1ab),'destPath':this[A(0x15a)]['pathFromApp']({'pathParts':[A(0x17d),A(0x1a4),b[A(0x155)],j,A(0x1a8)+n]}),'context':m,'config':c});if(c[A(0x177)]['graphql']===A(0x189)){if(g[A(0x197)]('withGql')){const q=this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),A(0x188),A(0x17e),A(0x191)+c[A(0x177)]['js']]}),r=this[A(0x15a)][A(0x15b)]({'pathParts':[q],'config':c}),s=this[A(0x15a)]['pathFromApp']({'pathParts':[A(0x17d),A(0x1a4),b['dir'],j,A(0x15d),A(0x168)+n]}),t=A(0x185)+l+j+A(0x19d);this[A(0x15a)][A(0x1a2)]({'srcPath':A(0x19e),'destPath':s,'context':m,'config':c}),this['fsi'][A(0x158)]({'filePath':r,'content':A(0x17b)+k+A(0x174)+t+A(0x19f)}),this[A(0x15a)][A(0x176)]({'filePath':r,'content':A(0x154)+k+A(0x175),'begin':A(0x157),'end':A(0x17c)});const u=this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),A(0x1a4),b[A(0x155)],j,A(0x15d),A(0x184)+n]}),v=A(0x185)+l+j+A(0x178);this['fsi'][A(0x1a2)]({'srcPath':A(0x18b),'destPath':u,'context':m,'config':c}),this[A(0x15a)]['injectAtBeginningOfFile']({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x16e)+v+'\x27;'}),this[A(0x15a)][A(0x176)]({'filePath':r,'content':A(0x18e)+k+A(0x173),'begin':'const','end':A(0x17c)});}}this['fsi'][A(0x1a2)]({'srcPath':A(0x156),'destPath':this[A(0x15a)][A(0x16d)]({'pathParts':[A(0x17d),A(0x188),A(0x17e),A(0x18a)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[A(0x15a)][A(0x16d)]({'pathParts':['imports',A(0x188),'server',A(0x191)+c[A(0x177)]['js']]});this[A(0x15a)][A(0x1a7)]({'filePath':p,'content':A(0x159)+j+A(0x16c)});});}catch(h){console[z(0x19b)](h),process[z(0x196)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a71n=a71d;(function(a,b){const k=a71d,c=a();while(!![]){try{const d=parseInt(k(0xa0))/0x1+-parseInt(k(0x9b))/0x2*(parseInt(k(0x8f))/0x3)+-parseInt(k(0x82))/0x4*(-parseInt(k(0x84))/0x5)+parseInt(k(0x90))/0x6*(-parseInt(k(0xa1))/0x7)+parseInt(k(0x94))/0x8*(-parseInt(k(0xa7))/0x9)+parseInt(k(0xa9))/0xa+-parseInt(k(0x8a))/0xb*(-parseInt(k(0x8e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0x4f937));const a71b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a71d;if(c){const e=c[l(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a71a=a71b(this,function(){const m=a71d;return a71a[m(0x83)]()[m(0xb1)]('(((.+)+)+)+$')[m(0x83)]()[m(0x95)](a71a)[m(0xb1)](m(0xa2));});a71a();function a71c(){const q=['Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','resourceName','import\x20\x27./collections','test','installMeteorPackage','tsx','search','248oFZUZR','toString','34435SKBSGS','withValue','col','collections','where','engines','352SgYWuT','pathFromApp','injectAtEndOfFile','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','288552fHlJCE','3nSWCeE','5262WyqUmn','checkMeteorPackage','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','error','473328MTiijE','constructor','imports','template','fsi','getProjectConfig','notice','948610ZGEqvb','mongo','.app-tests.','apply','startup','417222RvmNIq','4984qzLzyv','(((.+)+)+)+$','collection/tests.js','index.','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','maka\x20g:collection\x20todos','54PbxXRi','maka:check','1659800zVyQpy','dir'];a71c=function(){return q;};return a71c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x82;let f=c[d];return f;},a71d(a,b);}Generator['create']({'name':'collection','aliases':[a71n(0x86)],'usage':a71n(0x92),'checkWhere':!![],'shortDesc':a71n(0xa5),'validOpts':[a71n(0xaa),a71n(0x88)],'description':'\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','examples':[a71n(0xa6)]},async function(a,b){const o=a71n;try{const c=this['fsi'][o(0x8b)]({}),d=this['fsi'][o(0x99)]();this['fsi'][o(0x85)](d,async()=>{const p=o,f=paramCase(b[p(0xac)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x88)],'test':d['engines']['test'],'noRename':!![]};let h='js';d[p(0x89)]['js']===p(0xb0)&&(h='ts');!this[p(0x98)][p(0x91)](p(0x9c))&&(Log[p(0x9a)](p(0x8d)),await this[p(0x98)]['installMeteorPackage'](p(0x9c),{'cwd':c}));!this['fsi']['checkMeteorPackage'](p(0xa8))&&(Log[p(0x9a)](p(0xab)),await this[p(0x98)][p(0xaf)](p(0xa8),{'cwd':c}));this[p(0x98)][p(0x97)]({'srcPath':'collection/collection.js','destPath':this[p(0x98)]['pathFromApp']({'pathParts':[p(0x96),p(0x9f),b['appPathPrefix'],p(0x87),b[p(0xaa)],f+'.'+h]}),'context':g,'config':d});d['engines'][p(0xae)]!=='none'&&this[p(0x98)][p(0x97)]({'srcPath':p(0xa3),'destPath':this[p(0x98)][p(0x8b)]({'pathParts':[p(0x96),p(0x9f),b['appPathPrefix'],'collections',b[p(0xaa)],f+p(0x9d)+h]}),'context':g,'config':d});const i=b[p(0xaa)]?'/'+b['dir']+'/':'/',j=this['fsi'][p(0x8b)]({'pathParts':[p(0x96),p(0x9f),b['appPathPrefix'],p(0xa4)+d['engines']['js']]});this[p(0x98)][p(0x8c)]({'filePath':j,'content':p(0xad)+i+f+'\x27;'});});}catch(f){Log[o(0x93)](f);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a72q=a72d;(function(a,b){const n=a72d,c=a();while(!![]){try{const d=-parseInt(n(0x12c))/0x1+parseInt(n(0x140))/0x2+-parseInt(n(0x12b))/0x3+parseInt(n(0x136))/0x4+parseInt(n(0x131))/0x5+parseInt(n(0x132))/0x6*(-parseInt(n(0x143))/0x7)+parseInt(n(0x137))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x9f801));function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x111;let f=c[d];return f;},a72d(a,b);}const a72b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a72d;if(c){const e=c[o(0x13c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){const p=a72d;return a72a[p(0x124)]()[p(0x119)](p(0x126))[p(0x124)]()[p(0x152)](a72a)[p(0x119)](p(0x126));});a72a();import a72e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a72q(0x138)];Generator[a72q(0x111)]({'name':a72q(0x12a),'aliases':aliases,'usage':a72q(0x146),'shortDesc':a72q(0x121),'validOpts':[a72q(0x125)],'examples':[a72q(0x135)]},async function(a,b){const r=a72q;try{const c=this[r(0x139)][r(0x12d)](),d='/imports/ui/components',f=this[r(0x139)][r(0x130)]({'pathParts':[d,b[r(0x125)],paramCase(b[r(0x147)]),paramCase(b[r(0x147)])]}),g=await this[r(0x139)]['getProjectConfig']();this[r(0x139)][r(0x120)](g,async()=>{const s=r;typeof g[s(0x151)][s(0x141)]===s(0x134)&&(g[s(0x151)][s(0x141)]=g[s(0x151)][s(0x141)]===s(0x142)?!![]:![],this[s(0x139)][s(0x149)]('test',g[s(0x151)]['test']));typeof g['template']['css']===s(0x134)&&(g[s(0x151)]['css']=g['template'][s(0x14a)]===s(0x142)?!![]:![],this[s(0x139)]['setTemplate'](s(0x14a),g[s(0x151)]['css']));typeof g['template']['js']===s(0x134)&&(g[s(0x151)]['js']=g['template']['js']===s(0x142)?!![]:![],this['fsi'][s(0x149)]('js',g['template']['js']));!g[s(0x112)]&&(g[s(0x112)]={});!b[s(0x153)]&&!this[s(0x139)]['checkNpmPackage'](s(0x127))&&(Log[s(0x145)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x139)][s(0x13b)](s(0x127),{'cwd':c}));if(!b['root']&&!this[s(0x139)]['checkNpmPackage']('react')){Log[s(0x14d)](s(0x122));return;}const h={'name':pascalCase(b[s(0x147)]),'myPath':a72e[s(0x11c)](this['fsi'][s(0x11b)]({}),f),'cssCaseName':paramCase(b[s(0x147)]),'className':pascalCase(b[s(0x147)]),'camelCaseName':camelCase(b[s(0x147)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x114)][s(0x14f)],'features':g[s(0x112)],'client':g[s(0x114)]['client'],'api':g[s(0x114)][s(0x13e)],'ssr':g[s(0x114)][s(0x148)],'test':g[s(0x114)]['test'],'theme':g['engines'][s(0x129)],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0x112)]['withTranslations']};this[s(0x139)][s(0x151)]({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':s(0x11e),'config':g});g[s(0x114)][s(0x141)]!=='none'&&this[s(0x139)][s(0x151)]({'srcPath':s(0x118),'destPath':f+'.tests.js','context':h,'framework':'react','config':g});g[s(0x151)]['css']&&(this[s(0x139)][s(0x151)]({'srcPath':'template/template.css','destPath':f+'.css','context':Object[s(0x14c)]({},h,{'className':paramCase(b[s(0x147)])}),'config':g}),this[s(0x139)][s(0x128)]({'filePath':f+'.'+g[s(0x114)]['js'],'content':s(0x13d)+h[s(0x11f)]+'.'+g['engines']['css']+'\x27;'}));const i=b['dir']?'/'+b[s(0x125)]+'/':'/',j=''+d+i+h[s(0x113)]+'/'+h[s(0x113)];let k;if(g[s(0x114)][s(0x148)]===s(0x142)){const l=this['fsi']['pathFromApp']({'pathParts':[s(0x13a),s(0x11a),s(0x12e),s(0x116)]});k=this[s(0x139)][s(0x115)]({'pathParts':[l],'config':g});}else{const m=this[s(0x139)][s(0x130)]({'pathParts':[s(0x13a),s(0x11a),s(0x11d),s(0x116)]});k=this[s(0x139)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g[s(0x114)][s(0x11d)]===s(0x11e)||g[s(0x114)][s(0x11d)]==='reflux'?(g[s(0x114)]['js']===s(0x150)?this[s(0x139)][s(0x128)]({'filePath':k,'content':s(0x117)+h[s(0x13f)]+s(0x14b)+j+'\x27;\x0a'}):this[s(0x139)][s(0x128)]({'filePath':k,'content':s(0x117)+h[s(0x13f)]+'\x20}\x20from\x20\x27'+j+'.'+g[s(0x114)]['js']+s(0x123)}),this[s(0x139)]['injectAtEndOfFile']({'filePath':k,'content':s(0x14e)+h[s(0x13f)]+s(0x12f)})):this['fsi'][s(0x133)]({'filePath':k,'content':s(0x144)+j+'.'+g[s(0x114)]['js']+'\x27;\x0a'});});}catch(h){Log[r(0x14d)](h);}});function a72c(){const t=['import\x20\x27','warn','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','resourceName','ssr','setTemplate','css','\x20}\x20from\x20\x27','assign','error','export\x20{\x20','graphql','tsx','template','constructor','root','create','features','fileName','engines','rewriteDestinationPathForEngine','templates.js','import\x20{\x20','test/test.js','search','startup','pathFromProject','relative','client','react','cssCaseName','withValue','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','\x27;\x0a','toString','dir','(((.+)+)+)+$','ramda','injectAtBeginningOfFile','theme','component','1426263FSlhMk','1038082rHfygg','findAppDirectory','lib','\x20};\x0a','pathFromApp','4340055AanGUx','3218658YBfIZh','injectAtEndOfFile','string','maka\x20g:comp\x20todos/todos-item','2327768bzvXNP','5206192awGXls','comp','fsi','imports','installNpmPackage','apply','import\x20\x27./','api','className','1205064RlDqQt','test','true','7eyDVwo'];a72c=function(){return t;};return a72c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a73k=a73d;(function(a,b){const h=a73d,c=a();while(!![]){try{const d=parseInt(h(0xd9))/0x1*(parseInt(h(0xe0))/0x2)+-parseInt(h(0xd8))/0x3+-parseInt(h(0xe2))/0x4+-parseInt(h(0xda))/0x5+-parseInt(h(0xdc))/0x6+-parseInt(h(0xcf))/0x7*(parseInt(h(0xdf))/0x8)+-parseInt(h(0xce))/0x9*(-parseInt(h(0xcb))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0x5109c));const a73b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a73d;if(c){const e=c[i(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){const j=a73d;return a73a[j(0xdd)]()[j(0xcd)](j(0xe5))[j(0xdd)]()[j(0xdb)](a73a)['search'](j(0xe5));});function a73d(a,b){const c=a73c();return a73d=function(d,e){d=d-0xc8;let f=c[d];return f;},a73d(a,b);}a73a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a73k(0xd0),'usage':a73k(0xd5),'shortDesc':a73k(0xe1),'validOpts':[a73k(0xc9)],'examples':[a73k(0xca)]},function(a,b){const l=a73k,c=this['fsi']['getProjectConfig']();this[l(0xd3)]['withValue'](c,async()=>{const m=l,d={'app':c['appName'],'appFileCase':paramCase(c[m(0xcc)]),'name':pascalCase(b[m(0xd6)]),'fileName':paramCase(b[m(0xd6)]),'camelCase':camelCase(b[m(0xd6)]),'userName':m(0xd4),'isDocker':b['isDocker']};let e=a[0x0];if(e===m(0xe6))e='development';else e===m(0xe3)&&(e='production');const f=this['fsi'][m(0xc8)]({'pathParts':[m(0xd0),e,m(0xe4)]});this[m(0xd3)][m(0xd2)]({'srcPath':m(0xd7),'destPath':f,'context':d,'config':c});if(!b[m(0xc9)]){const g=this['fsi'][m(0xc8)]({'pathParts':[m(0xd0),e,'process.env']});this[m(0xd3)][m(0xd2)]({'srcPath':m(0xd1),'destPath':g,'context':d,'config':c});}});});function a73c(){const n=['15682LarrdY','Generate\x20configuration\x20settings.','1031436GlCGTo','prod','settings.json','(((.+)+)+)+$','dev','pathFromProject','isDocker','maka\x20g:config\x20production','10TDuAMt','appName','search','16483239DrGTyH','7maPOjI','config','config/process.env','template','fsi','ubuntu','maka\x20{generate,\x20g}:{config}\x20<name>','resourceName','config/settings.json','1362627hUDNSg','18mPuVoc','659775cSQnMe','constructor','3724710GXTvWF','toString','apply','1406952nOBibb'];a73c=function(){return n;};return a73c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a74q=a74d;(function(a,b){const n=a74d,c=a();while(!![]){try{const d=parseInt(n(0x13d))/0x1*(-parseInt(n(0x147))/0x2)+-parseInt(n(0x130))/0x3*(-parseInt(n(0x15d))/0x4)+-parseInt(n(0x138))/0x5*(-parseInt(n(0x131))/0x6)+-parseInt(n(0x13c))/0x7+-parseInt(n(0x144))/0x8+parseInt(n(0x12c))/0x9+parseInt(n(0x146))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0x7cbc5));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a74d;if(c){const e=c[o(0x133)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const p=a74d;return a74a['toString']()[p(0x153)](p(0x137))[p(0x14c)]()['constructor'](a74a)[p(0x153)](p(0x137));});a74a();function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x127;let f=c[d];return f;},a74d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a74c(){const t=['engines','type','create','maka\x20g:dbc\x20todos\x20--type=sqlite','maka\x20g:dbc\x20azure\x20--type=mssql','46672pIMVBG','Invalid\x20type\x20','dbAnswer','fsi','import\x20\x27./register-','pgsql','getProjectConfig','3091500khZBvI','dbc/conn.js','installNpmPackage','-dbc.','3LpLwYI','42mtFuUT','register-','apply','maka\x20g:dbc\x20geoserver\x20--type=pgsql','(blank)','warn','(((.+)+)+)+$','687565LeIGyE','dir','conn.','server','3454234AwzigA','115572GBEknT','error','withValue',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','indexOf','pathFromApp','better-sqlite3','7777192oiwfCR','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','11210570JkvPfg','8wrFiia','template','imports','dbc/config.js','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','toString','dbc','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','startup','-dbc\x27;','mssql','resourceName','search','config.','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','options','dbc/register-dbc.js'];a74c=function(){return t;};return a74c();}import{Actions}from'../tools/actions/actions.class.js';Generator[a74q(0x15a)]({'name':a74q(0x14d),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a74q(0x14b),'validOpts':['type',a74q(0x139)],'examples':[a74q(0x134),a74q(0x15c),a74q(0x15b)]},async function(a,b){const r=a74q;try{const c=await this['fsi'][r(0x12b)](),d=this[r(0x128)]['pathFromApp']({}),f=paramCase(b[r(0x152)]);if(!b[r(0x159)]){const h={'type':'list','name':r(0x127),'message':'DB\x20Driver','choices':[{'name':'PostgreSQL','value':r(0x12a)},{'name':'MS\x20SQL','value':r(0x151)}]},{dbAnswer:i}=await Actions[r(0x156)](h);i&&(b[r(0x159)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0x152)]),'camelCase':camelCase(b[r(0x152)]),'type':b['type'],'engine':c[r(0x158)]['js'],'noRename':!![]};this[r(0x128)][r(0x13f)](c,async()=>{const s=r;let j='js';c['engines']['js']==='tsx'&&(j='ts');const k=['mssql',s(0x12a)];if(k[s(0x141)](g[s(0x159)])<0x0){const m=g['type']?g[s(0x159)]:s(0x135);Log['error'](s(0x15e)+m+s(0x140));return;}b[s(0x159)]===s(0x12a)&&!this[s(0x128)]['checkNpmPackage']('pg')&&(Log[s(0x136)](s(0x155)),await this['fsi'][s(0x12e)]('pg',{'cwd':d}));b['type']===s(0x151)&&!this[s(0x128)]['checkNpmPackage'](s(0x151))&&(Log[s(0x136)](s(0x14e)),await this['fsi']['installNpmPackage'](s(0x151),{'cwd':d}));b[s(0x159)]==='sqlite'&&!this['fsi']['checkNpmPackage'](s(0x143))&&(Log[s(0x136)](s(0x145)),await this['fsi'][s(0x12e)](s(0x143),{'cwd':d}));this['fsi']['template']({'srcPath':s(0x14a),'destPath':this['fsi'][s(0x142)]({'pathParts':[s(0x149),s(0x14f),s(0x13b),'dbc',b['dir'],f,s(0x154)+j]}),'context':g,'config':c}),this[s(0x128)][s(0x148)]({'srcPath':s(0x12d),'destPath':this['fsi'][s(0x142)]({'pathParts':['imports',s(0x14f),s(0x13b),s(0x14d),b['dir'],f,s(0x13a)+j]}),'context':g,'config':c}),this['fsi'][s(0x148)]({'srcPath':s(0x157),'destPath':this[s(0x128)]['pathFromApp']({'pathParts':['imports',s(0x14f),'server',s(0x132)+f+s(0x12f)+j]}),'context':g,'config':c});const l=this['fsi'][s(0x142)]({'pathParts':[s(0x149),s(0x14f),s(0x13b),'index.'+c[s(0x158)]['js']]});this[s(0x128)]['injectAtEndOfFile']({'filePath':l,'content':s(0x129)+f+s(0x150)});});}catch(j){Log[r(0x13e)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a75i=a75d;(function(a,b){const f=a75d,c=a();while(!![]){try{const d=parseInt(f(0x111))/0x1*(parseInt(f(0x114))/0x2)+parseInt(f(0x12f))/0x3+parseInt(f(0x120))/0x4*(-parseInt(f(0x121))/0x5)+parseInt(f(0x12d))/0x6*(parseInt(f(0x115))/0x7)+-parseInt(f(0x11e))/0x8+-parseInt(f(0x127))/0x9*(parseInt(f(0x12e))/0xa)+-parseInt(f(0x11f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0x8a52e));function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x111;let f=c[d];return f;},a75d(a,b);}const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a75d;if(c){const e=c[g(0x12a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const h=a75d;return a75a[h(0x112)]()[h(0x113)]('(((.+)+)+)+$')[h(0x112)]()[h(0x116)](a75a)[h(0x113)](h(0x126));});a75a();import{Generator}from'../generator.js';function a75c(){const l=['3oYYYXi','toString','search','456262QcLOur','130249pEeFlX','constructor','getGlobalConfig','error','app.tar.gz','fsi','app','withValue','maka\x20g:dockerfile','5653720ksBQsm','6882480XzcqzB','4OdVRJo','1751010fnlsTV','join','build','dockerfile','maka\x20{generate,\x20g}:dockerfile','(((.+)+)+)+$','135081uEzkPC','docker/Dockerfile','template','apply','appName','getProjectConfig','222DNfhxM','60WhoZMU','2899119YmvCgb'];a75c=function(){return l;};return a75c();}import{Log}from'../tools/log/log.class.js';import a75e from'path';Generator['create']({'name':a75i(0x124),'usage':a75i(0x125),'shortDesc':'Generate\x20an\x20updated\x20dockerfile','validOpts':[],'noResource':!![],'examples':[a75i(0x11d)]},async function(){const j=a75i;try{const a=await this[j(0x11a)][j(0x12c)](),b=await this['fsi'][j(0x117)](),c=this[j(0x11a)]['findProjectDirectory']();this[j(0x11a)][j(0x11c)](a,async()=>{const k=j,d={'app':b[k(0x12b)],'config':a,'appPath':a75e['join'](c,k(0x11b)),'bundlePath':a75e[k(0x122)](c,k(0x123),k(0x119)),'useCert':this[k(0x11a)]['isFile'](b['cert'])};this[k(0x11a)][k(0x129)]({'srcPath':k(0x128),'destPath':a75e['join'](c,'Dockerfile'),'framework':'service','context':d,'config':a});});}catch(d){Log[j(0x118)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a76r=a76d;(function(a,b){const o=a76d,c=a();while(!![]){try{const d=-parseInt(o(0x1fd))/0x1+-parseInt(o(0x1dc))/0x2*(parseInt(o(0x1eb))/0x3)+-parseInt(o(0x219))/0x4+-parseInt(o(0x218))/0x5+-parseInt(o(0x1fe))/0x6*(-parseInt(o(0x1da))/0x7)+parseInt(o(0x1f6))/0x8+parseInt(o(0x1e0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x57d4b));function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x1d8;let f=c[d];return f;},a76d(a,b);}const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a76d;if(c){const e=c[p(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const q=a76d;return a76a['toString']()[q(0x213)](q(0x21d))[q(0x1e5)]()[q(0x206)](a76a)[q(0x213)](q(0x21d));});a76a();import a76e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a76r(0x1e8)]({'name':'hook','aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a76r(0x211),'validOpts':[a76r(0x1ee)],'examples':[a76r(0x20f)]},async function(a,b){const s=a76r;try{const c=this['fsi'][s(0x1ef)](s(0x1e2));if(!c){Log[s(0x217)](s(0x210));throw new UsageError();}const d=this[s(0x1f0)][s(0x1fb)](b),f=s(0x201),g=this['fsi'][s(0x1fb)]({'pathParts':[f,b[s(0x1ee)],paramCase(b[s(0x1fa)]),paramCase(b[s(0x1fa)])]}),h=await this[s(0x1f0)]['getProjectConfig']();this[s(0x1f0)][s(0x1f9)](h,async()=>{const t=s;typeof h[t(0x21b)][t(0x20b)]===t(0x20c)&&(h[t(0x21b)][t(0x20b)]=h['template'][t(0x20b)]===t(0x20d)?!![]:![],this[t(0x1f0)][t(0x1ea)](t(0x20b),h[t(0x21b)]['css']));h[t(0x1e7)][t(0x1fc)]===t(0x1de)&&!this['checkNpmPackage'](t(0x1f2))&&(Log[t(0x208)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0x1f0)][t(0x1d9)](t(0x202),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1fa)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x1fa)]),'graphql':h[t(0x1e7)][t(0x1fc)],'theme':h['engines'][t(0x1ed)],'features':h[t(0x1d8)],'myPath':a76e[t(0x200)](this['fsi'][t(0x1db)]({}),g),'fileName':paramCase(b[t(0x1fa)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1d8)][t(0x215)]};this['fsi'][t(0x21b)]({'srcPath':t(0x204),'destPath':g+t(0x1f1),'context':i,'config':h,'framework':t(0x1e2)});h[t(0x21b)][t(0x20b)]&&(this[t(0x1f0)][t(0x21b)]({'srcPath':t(0x1e4),'destPath':g+t(0x20e),'context':Object[t(0x209)]({},i,{'className':i[t(0x1f3)]}),'config':h}),this['fsi']['injectAtBeginningOfFile']({'filePath':g+'.'+h[t(0x1e7)]['js'],'content':t(0x20a)+i[t(0x1f7)]+'.'+h[t(0x1e7)][t(0x20b)]+'\x27;'}));h[t(0x1e7)][t(0x1ec)]!==t(0x1ff)&&this[t(0x1f0)]['template']({'srcPath':t(0x1e3),'destPath':g+t(0x21a),'framework':t(0x1e2),'context':i,'config':h});const j=b[t(0x1ee)]?'/'+b['dir']+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x1f7)];let l;if(h[t(0x1e7)]['ssr']===t(0x20d)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0x1e9),'startup',t(0x21c),t(0x1df)]});l=this[t(0x1f0)][t(0x207)]({'pathParts':[m],'config':h});}else{const n=this[t(0x1f0)]['pathFromApp']({'pathParts':['imports','startup',t(0x205),t(0x1df)]});l=this[t(0x1f0)][t(0x207)]({'pathParts':[n],'config':h});}h['engines'][t(0x205)]==='react'?(h['engines']['js']===t(0x203)?this['fsi'][t(0x1f4)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x214)]+'\x20}\x20from\x20\x27'+k+t(0x1e6)}):this[t(0x1f0)][t(0x1f4)]({'filePath':l,'content':t(0x212)+i[t(0x214)]+'\x20}\x20from\x20\x27'+k+'.'+h[t(0x1e7)]['js']+t(0x1e6)}),this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x216)+i[t(0x214)]+t(0x1dd)})):this['fsi'][t(0x1e1)]({'filePath':l,'content':t(0x1f8)+k+'.'+h[t(0x1e7)]['js']+'\x27;\x0a'});});}catch(i){Log[s(0x217)](i);}});function a76c(){const u=['test/test.js','template/template.css','toString','\x27;\x0a','engines','create','imports','setTemplate','3njjSsz','test','theme','dir','checkNpmPackage','fsi','.js','@apollo/client','cssCaseName','injectAtBeginningOfFile','apply','4251280xwzvBI','fileName','import\x20\x27','withValue','resourceName','pathFromApp','graphql','161543RRKIsj','355098MHfhoI','none','relative','/imports/ui/hooks','@apollo/client\x20isomorphic-fetch','tsx','hook/hook.js','client','constructor','rewriteDestinationPathForEngine','warn','assign','import\x20\x27./','css','string','true','.css','maka\x20g:hook\x20cool-hook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','import\x20{\x20','search','className','withTranslations','export\x20{\x20','error','2430180eyUwRG','2442204nAkikl','.app-tests.js','template','lib','(((.+)+)+)+$','features','installNpmPackage','21Ewxjkn','pathFromProject','614458MoQNFz','\x20};\x0a','apollo','templates.js','10945395nVmdqO','injectAtEndOfFile','react'];a76c=function(){return u;};return a76c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a77k=a77d;(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(0x136))/0x1*(parseInt(h(0x13d))/0x2)+-parseInt(h(0x13b))/0x3+parseInt(h(0x135))/0x4*(parseInt(h(0x11e))/0x5)+parseInt(h(0x140))/0x6*(-parseInt(h(0x13e))/0x7)+parseInt(h(0x12d))/0x8*(-parseInt(h(0x124))/0x9)+-parseInt(h(0x121))/0xa*(parseInt(h(0x13a))/0xb)+parseInt(h(0x132))/0xc*(parseInt(h(0x123))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0x21cc4));function a77c(){const n=['constructor','3575INuecm','fsi','error','567820rXmbHS','maka\x20g:kit\x20--type=map','39lYPOFL','36819LfVhla','apply','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','getProjectConfig','(((.+)+)+)+$','withValue','notice','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','leaflet-map','40DDRRSh','engines','type','maka\x20g:k\x20city-map\x20--type=leaflet-map','resourceName','105660ykWDUu','Invalid\x20type\x20','NIE','1492InhRuJ','80326lwUTRB','create',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(blank)','22UVLWhG','133287qMiLhH','search','4zPFsXo','98NSAKoq','indexOf','58662anYHdA','login','map','toString','kit'];a77c=function(){return n;};return a77c();}const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a77d;if(c){const e=c[i(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const j=a77d;return a77a['toString']()[j(0x13c)](j(0x128))[j(0x143)]()[j(0x11d)](a77a)[j(0x13c)](j(0x128));});a77a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x11c;let f=c[d];return f;},a77d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a77k(0x137)]({'name':a77k(0x11c),'aliases':['k'],'usage':a77k(0x12b),'shortDesc':a77k(0x126),'validOpts':[a77k(0x12f)],'examples':[a77k(0x122),a77k(0x130)]},async function(a,b){const l=a77k;try{const c=this[l(0x11f)][l(0x127)]();this[l(0x11f)][l(0x129)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x131)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x131)]),'type':b[m(0x12f)],'engine':c[m(0x12e)]['js'],'noRename':!![]},f=[m(0x12c),'login'];if(f[m(0x13f)](d[m(0x12f)])<0x0){const g=d[m(0x12f)]?d[m(0x12f)]:m(0x139);Log[m(0x120)](m(0x133)+g+m(0x138));return;}b[m(0x12f)]===m(0x142)&&Log[m(0x12a)](m(0x134)),b[m(0x12f)]===m(0x141)&&Log[m(0x12a)](m(0x134));});}catch(d){Log['error'](d);}});
|