@maka/maka-cli 4.0.72 → 4.0.75
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/dist/command.js +1 -1
- package/dist/commands/_index.js +1 -1
- package/dist/commands/aws/_index.js +1 -1
- package/dist/commands/aws/aws.command.js +1 -1
- package/dist/commands/aws/ci.sub.cmd.js +1 -1
- package/dist/commands/aws/ckp.sub.cmd.js +1 -1
- package/dist/commands/aws/csg.sub.cmd.js +1 -1
- package/dist/commands/aws/di.sub.cmd.js +1 -1
- package/dist/commands/aws/dks.sub.cmd.js +1 -1
- package/dist/commands/aws/rbi.sub.cmd.js +1 -1
- package/dist/commands/aws/sth.sub.cmd.js +1 -1
- package/dist/commands/aws/ti.sub.cmd.js +1 -1
- package/dist/commands/build/_index.js +1 -1
- package/dist/commands/build/build.js +1 -1
- package/dist/commands/build/docker.sub.cmd.js +1 -1
- package/dist/commands/create.js +1 -1
- package/dist/commands/debug.js +1 -1
- package/dist/commands/deploy.js +1 -1
- package/dist/commands/game/_index.js +1 -1
- package/dist/commands/game/battleship.sub.cmd.js +1 -1
- package/dist/commands/game/play.command.js +1 -0
- package/dist/commands/game/pong.sub.cmd.js +1 -1
- package/dist/commands/game/snake.sub.cmd.js +1 -1
- package/dist/commands/game/tetris.sub.cmd.js +1 -1
- package/dist/commands/generate.js +1 -1
- package/dist/commands/get/_index.js +1 -1
- package/dist/commands/get/get.command.js +1 -1
- package/dist/commands/get/global.sub.cmd.js +1 -1
- package/dist/commands/get/local.sub.cmd.js +1 -1
- package/dist/commands/help.js +1 -1
- package/dist/commands/install.js +1 -1
- package/dist/commands/jsdoc.js +1 -1
- package/dist/commands/login.js +1 -1
- package/dist/commands/logout.js +1 -1
- package/dist/commands/logs.js +1 -1
- package/dist/commands/maka.cmd.js +1 -1
- package/dist/commands/murder.js +1 -1
- package/dist/commands/reconfig.js +1 -1
- package/dist/commands/run.js +1 -1
- package/dist/commands/set/_index.js +1 -1
- package/dist/commands/set/global.sub.cmd.js +1 -1
- package/dist/commands/set/local.sub.cmd.js +1 -1
- package/dist/commands/set/set.command.js +1 -1
- package/dist/commands/ssh.js +1 -1
- package/dist/commands/ssl.js +1 -1
- package/dist/commands/test.js +1 -1
- package/dist/commands/version.js +1 -1
- package/dist/error.js +1 -1
- package/dist/generator.js +1 -1
- package/dist/generators/_index.js +1 -1
- package/dist/generators/api.js +1 -1
- package/dist/generators/collection.js +1 -1
- package/dist/generators/component.js +1 -1
- package/dist/generators/config.js +1 -1
- package/dist/generators/dbc.js +1 -1
- package/dist/generators/dockerfile.js +1 -1
- package/dist/generators/hook.js +1 -1
- package/dist/generators/kit.js +1 -1
- package/dist/generators/layout.js +1 -1
- package/dist/generators/maka.gen.js +1 -1
- package/dist/generators/methods.js +1 -1
- package/dist/generators/package.js +1 -1
- package/dist/generators/page.js +1 -1
- package/dist/generators/publish.js +1 -1
- package/dist/generators/route.js +1 -1
- package/dist/generators/scaffold.js +1 -1
- package/dist/generators/service.js +1 -1
- package/dist/maka.js +1 -1
- package/dist/tool.js +1 -1
- package/dist/tools/actions/actions.class.js +1 -1
- package/dist/tools/actions/actions.test.js +1 -1
- package/dist/tools/aws/aws.class.js +1 -1
- package/dist/tools/aws/aws.interfaces.js +1 -1
- package/dist/tools/docker/docker.class.js +1 -1
- package/dist/tools/docker/docker.interfaces.js +1 -1
- package/dist/tools/fsi/fsi.class.js +1 -1
- package/dist/tools/fsi/fsi.interfaces.js +1 -1
- package/dist/tools/https/https.class.js +1 -1
- package/dist/tools/https/https.interface.js +1 -1
- package/dist/tools/log/log.class.js +1 -1
- package/dist/tools/log/log.interfaces.js +1 -1
- package/dist/tools/spawn-async/spawn-async.class.js +1 -1
- package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/dist/tools/ssh/ssh.class.js +1 -1
- package/dist/tools/ssh/ssh.interfaces.js +1 -1
- package/dist/tools/ssl/ssl.class.js +1 -1
- package/package.json +3 -3
- package/dist/commands/game/game.command.js +0 -1
- package/maka-maka-telnet-2.0.2.tgz +0 -0
package/dist/commands/ssl.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a44U=a44d;(function(a,b){const S=a44d,c=a();while(!![]){try{const d=-parseInt(S(0x1ab))/0x1*(-parseInt(S(0x1ba))/0x2)+parseInt(S(0x1d1))/0x3+parseInt(S(0x1b1))/0x4+-parseInt(S(0x1af))/0x5+-parseInt(S(0x1ad))/0x6+-parseInt(S(0x1a9))/0x7*(-parseInt(S(0x1a3))/0x8)+parseInt(S(0x1a2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a44c,0xcbf26));const a44b=(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;};}()),a44a=a44b(this,function(){const T=a44d;return a44a[T(0x19f)]()[T(0x1a8)]('(((.+)+)+)+$')[T(0x19f)]()[T(0x1ce)](a44a)['search'](T(0x1a4));});function a44c(){const a1=['appName','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','MuFMZ','error','mkdirSync','ping','exit','existsSync','writeFileSync','.key','ask','getConfigPath','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','Please\x20provide\x20a\x20command.','krloj','assign','apply','letsencrypt','JBYxJ','readFileSync','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','dFlzD','__awaiter','toString','join','parse','1739754Qzagss','80520DJTSFZ','(((.+)+)+)+$','nYDvm','throw','.csr','search','1022qRhBXz','success','248473peUiGp','stringify','9885312jFyqvM','CnXHp','6446345GmaOnl','magMS','1927356IOsiOw','uaBOJ','fsi','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','genCSR','domainNames','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','_keys','genSSC','2czLsOj','\x20--email\x20','Using\x20saved\x20letsencrypt\x20config','dUgcf','letsencrypt.json','statSync','help','value','sudo\x20snap\x20install\x20--classic\x20certbot','ssh','notice','done','emailUpdate','oYtBG','FvlYR','domains','Remote\x20host\x20connection\x20successful','Checking\x20remote\x20host\x20availability','email','next','constructor','uname\x20-a','ivtvW','4137237KczxUz','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','withSpinner','[?]\x20Domains\x20to\x20register:\x20','.crt','ojWqM','FZAoY','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','env'];a44c=function(){return a1;};return a44c();}a44a();var __awaiter=this&&this[a44U(0x19e)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const V=a44d;V(0x1d0)!==V(0x1d6)?g(f):(d['error'](e),f[V(0x18e)](0x0));});}return new(c||(c=Promise))(function(f,g){function h(k){const W=a44d;if(W(0x1b0)===W(0x1b0))try{j(d[W(0x1cd)](k));}catch(l){W(0x1c8)!==W(0x19d)?g(l):c(d);}else try{i(j[W(0x1cd)](k));}catch(o){m(o);}}function i(k){const X=a44d;try{j(d[X(0x1a6)](k));}catch(l){g(l);}}function j(k){const Y=a44d;k[Y(0x1c5)]?f(k[Y(0x1c1)]):e(k[Y(0x1c1)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a44Q from'fs';import a44R from'path';function a44d(a,b){const c=a44c();return a44d=function(d,e){d=d-0x18b;let f=c[d];return f;},a44d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':'ssl','usage':'maka\x20ssl\x20--env\x20<env>\x20[command]','validOpts':[a44U(0x1d9),a44U(0x1c0),a44U(0x1c9),'email'],'description':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':['maka\x20ssl\x20--env\x20dev\x20generate-csr',a44U(0x1d8),a44U(0x1b4)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const Z=a44d;if('DcRDZ'==='DcRDZ'){let c=this['fsi']['getProjectConfig'](),d=this[Z(0x1b3)][Z(0x193)](b['env']),f=a44R['join'](d,Z(0x1b8));try{Z(0x19a)!==Z(0x19a)?c=d[0x0]:a44Q[Z(0x1bf)](f);}catch(i){a44Q[Z(0x18c)](f,{'recursive':!![]});}let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[Z(0x1b5)]({'keyName':c[Z(0x1da)]+'.key','csrName':c[Z(0x1da)]+Z(0x1a7),'cwd':f});else{if(g==='generate-ssc'){if('FZAoY'!==Z(0x1d7))d(e[Z(0x1cd)](f));else{if(!a44Q[Z(0x18f)](a44R['join'](f,c['appName']+'.key')))throw Z(0x194)+a44R[Z(0x1a0)](f,c[Z(0x1da)]+Z(0x191));if(!a44Q[Z(0x18f)](a44R[Z(0x1a0)](f,c['appName']+Z(0x1a7)))){if(Z(0x1ae)!==Z(0x1ae)){const l=g?function(){const a0=Z;if(l){const u=q[a0(0x198)](r,arguments);return s=null,u;}}:function(){};return l=![],l;}else throw'The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20'+a44R['join'](f,c[Z(0x1da)]+Z(0x1a7));}SSL['genSSC']({'keyName':c['appName']+Z(0x191),'crtName':c['appName']+Z(0x1d5),'cwd':f});}}else{if(g===Z(0x199)){if(Z(0x1bd)!==Z(0x1dc)){let l=b[Z(0x1c9)],m=b['email'];try{if(Z(0x1b2)!==Z(0x1c7)){let t=a44Q[Z(0x19b)](a44R[Z(0x1a0)](d,Z(0x1be)))['toString'](),u=JSON['parse'](t);l=b['domains']?b[Z(0x1c9)]:u['domainNames'],m=b['email']?b[Z(0x1cc)]:u[Z(0x1c6)];if(!b['email']||!b['domains']){if(Z(0x196)!=='esacW')Log[Z(0x1c4)](Z(0x1bc));else{const w=d[Z(0x198)](e,arguments);return f=null,w;}}}else{if(e){const x=i[Z(0x198)](j,arguments);return k=null,x;}}}catch(x){}let n=JSON['parse'](a44Q[Z(0x19b)](d+'/ssh.json')[Z(0x19f)]());Object[Z(0x197)](n,{'env':d}),Log[Z(0x1c4)](Z(0x1cb));try{let y=SSH[Z(0x18d)](Z(0x1cf),n);if(!y)throw Z(0x19c);if(y)Log[Z(0x1aa)](Z(0x1ca));}catch(z){Log[Z(0x18b)](z);return;}const o=Log[Z(0x1d3)]();o['start']('Verifying\x20Letsencrypt\x20configuration'),SSH['ssh'](Z(0x1db),Object[Z(0x197)]({},n)),SSH['ssh'](Z(0x1c2),Object[Z(0x197)]({},n)),SSH[Z(0x1c3)](Z(0x1b7),Object[Z(0x197)]({},n)),o[Z(0x1aa)]();let p=l?l:yield Actions[Z(0x192)](Z(0x1d4)),q=m?m:yield Actions[Z(0x192)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH['ssh']('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+p+Z(0x1bb)+q,Object[Z(0x197)]({},n),{'verbose':!![]});const r={'domainNames':p,'emailUpdate':q};let s=JSON[Z(0x1ac)](r,null,0x2);a44Q[Z(0x190)](a44R[Z(0x1a0)](d,Z(0x1be)),s);}else{if(!s[Z(0x18f)](t[Z(0x1a0)](u,v[Z(0x1da)]+Z(0x191))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+K['join'](L,M['appName']+Z(0x191));if(!z[Z(0x18f)](A[Z(0x1a0)](B,C[Z(0x1da)]+Z(0x1a7))))throw Z(0x1d2)+N['join'](O,P[Z(0x1da)]+Z(0x1a7));G[Z(0x1b9)]({'keyName':H['appName']+Z(0x191),'crtName':I['appName']+Z(0x1d5),'cwd':J});}}else{if(Z(0x1a5)!==Z(0x1a5))c['mkdirSync'](d,{'recursive':!![]});else throw Z(0x195);}}}}catch(C){console[Z(0x18b)](C),process[Z(0x18e)](0x0);}}else{let E=n[Z(0x19b)](o[Z(0x1a0)](p,Z(0x1be)))[Z(0x19f)](),F=q[Z(0x1a1)](E);r=s[Z(0x1c9)]?t[Z(0x1c9)]:F[Z(0x1b6)],u=v[Z(0x1cc)]?w['email']:F['emailUpdate'],(!x[Z(0x1cc)]||!y[Z(0x1c9)])&&A['notice']('Using\x20saved\x20letsencrypt\x20config');}});});
|
package/dist/commands/test.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a45B=a45d;(function(a,b){const x=a45d,c=a();while(!![]){try{const d=parseInt(x(0x119))/0x1*(-parseInt(x(0x10b))/0x2)+parseInt(x(0xe0))/0x3*(-parseInt(x(0xed))/0x4)+parseInt(x(0xdb))/0x5*(-parseInt(x(0xfb))/0x6)+parseInt(x(0x117))/0x7+parseInt(x(0x115))/0x8+-parseInt(x(0x10c))/0x9+parseInt(x(0x11b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a45c,0x859cb));const a45b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a45d;if(c){if(y(0xea)==='HEPXC'){const e=c[y(0x11e)](b,arguments);return c=null,e;}else{let g=f[y(0x102)](g[y(0x107)](h[y(0xf4)](this['fsi']['findProjectDirectory'](),y(0xf0),'config.json'),'utf8'));if(g[y(0xf2)]['test']===y(0xf8))k='sanjo:jasmine';else g[y(0xf2)]['test']==='mocha'&&(l=y(0x123));}}}:function(){};return a=![],d;};}()),a45a=a45b(this,function(){const z=a45d;return a45a[z(0xe8)]()[z(0x101)](z(0xfc))[z(0xe8)]()[z(0x116)](a45a)[z(0x101)]('(((.+)+)+)+$');});a45a();import a45u from'fs';function a45d(a,b){const c=a45c();return a45d=function(d,e){d=d-0xdb;let f=c[d];return f;},a45d(a,b);}import a45v from'path';import a45w from'dotenv';function a45c(){const F=['639802rckrly','7449120EynKCD','development','BnOuP','FFIVl','aPhVS','sanjo:jasmine','process.env','inspect','pHfsn','4458512jFdAXd','constructor','7101311HiZkYp','splice','3bpCNZJ','filter','19998440ANzjJy','JVLTE','Meteor\x20Settings:\x20','apply','driverPackage','Node\x20Env\x20Config:\x20','fsi','none','meteortesting:mocha','CylkT','zLqOn','slice','maka\x20test\x20[--once]\x20[--packages]\x20[--driver\x20|\x20--driver-package]\x20[--full-app]\x20[--env]\x20[--raw-logs]\x20[--port]\x20[--inspect]','argv','FEqcG','30IjugRS','ZEglO','create','--env','concat','21tQuCHZ','port','--driver','--full-app','env','--packages','exit','packages','toString','YBwpK','HEPXC','mocha','findProjectDirectory','298708QMBLZj','getConfigPath','driver-package','.maka','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','engines','config','join','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','driver','notice','jasmine','warn','openSync','714234DYYWxp','(((.+)+)+)+$','gnTbQ','--settings','utf8','rawLogs','search','parse','unit','config.json','isFile','test','readFileSync','--driver-package','once','Cannot\x20find\x20Node\x20Environment\x20File:\x20'];a45c=function(){return F;};return a45c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const A=a45d;a45u[A(0xfa)](a,'r'),a45w[A(0xf3)]({'path':a});};Command[a45B(0xdd)]({'name':a45B(0x106),'mustBeInMakaProject':!![],'validOpts':[a45B(0x109),a45B(0xe7),a45B(0xf6),a45B(0x11f),a45B(0x103),a45B(0xe4),a45B(0x100),a45B(0xe1),a45B(0x113)],'usage':a45B(0x127),'description':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const C=a45B;try{if('zLqOn'===C(0x125)){let c=this['fsi']['getConfigPath'](C(0x10d));b[C(0xe4)]&&(c=this[C(0x121)]['getConfigPath'](b[C(0xe4)]));(!b['unit']||!!b['once'])&&(a=a[C(0xdf)]([C(0xe3)]));b[C(0x103)]&&(C(0x124)!==C(0x124)?(e[C(0xfa)](f,'r'),g[C(0xf3)]({'path':h})):delete b['unit']);let d=b['driver-package']||b[C(0xf6)]||C(0x122);if(d==='none'){let k=JSON[C(0x102)](a45u[C(0x107)](a45v['join'](this['fsi'][C(0xec)](),'.maka',C(0x104)),C(0xff)));if(k[C(0xf2)][C(0x106)]===C(0xf8))C(0x10f)==='mySZj'?delete b[C(0x103)]:d=C(0x111);else k[C(0xf2)]['test']===C(0xeb)&&(C(0x114)!==C(0x114)?c[C(0xf9)](C(0xf5)+d):d=C(0x123));}if(d===C(0x122))throw C(0xf1);(!b[C(0xef)]||!b[C(0xf6)])&&(C(0x11c)!=='JVLTE'?c=this[C(0x121)][C(0xee)](d[C(0xe4)]):a=a[C(0xdf)]([C(0x108),d]));const f=a45v[C(0xf4)](c,'settings.json');this[C(0x121)][C(0x105)](f)?(Log[C(0xf7)](C(0x11d)+f),a=a[C(0xdf)]([C(0xfe),f])):C(0x10e)===C(0x10e)?Log[C(0xf9)](C(0xf5)+f):c['splice'](d,0x1);const g=a45v['join'](c,C(0x112));if(this[C(0x121)]['isFile'](g)){if(C(0xe9)!=='YBwpK'){const q=g?function(){const D=C;if(q){const u=q[D(0x11e)](r,arguments);return s=null,u;}}:function(){};return l=![],q;}else Log[C(0xf7)](C(0x120)+g),syncSource(g);}else C(0xdc)===C(0x110)?c[C(0x118)](d,0x2):Log[C(0xf9)](C(0x10a)+g);const h=process[C(0x128)][C(0x126)](0x2)[C(0x11a)](r=>r!=='--env')[C(0x11a)](r=>r!==C(0x106))['filter'](r=>r!==a[0x0]);h['forEach']((r,s)=>{const E=C;(r===E(0xde)||r==='--driver')&&h[E(0x118)](s,0x2);if(r===E(0xe5)){if(E(0x129)===E(0x129))h['splice'](s,0x1);else throw'This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)';}});const i=b[C(0xe7)]?'test-packages':C(0x106);this['fsi']['invokeMeteorCommand'](i,a[C(0xdf)](h));}else(h===C(0xde)||i===C(0xe2))&&o['splice'](p,0x2),l===C(0xe5)&&q[C(0x118)](r,0x1);}catch(s){C(0xfd)!==C(0xfd)?(s[C(0xf7)](C(0x120)+f),g(h)):(console['error'](s),process[C(0xe6)](0x0));}});
|
package/dist/commands/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a46Z=a46d;function a46c(){const a6=['meteor.bat','DCdBj','3305390nAGaqY','To\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','131944VFkZnR','wjVzg','11982eTvjzg','value','ATwli','ghjdD','3217730YEQAqj','constructor','create','error','__awaiter','6203153nCEaTq','nKvYO','apply','\x20--version','exit','done','DcOOC','GjMAd','12gCcSeD','Maka\x204.0.70','609LgJZtS','452BQBdKe','replace','Meteor\x27s\x20Node\x20','639356YjrgXj','next','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','platform','meteor','bright','\x20node\x20-v','version','hYuJQ','(((.+)+)+)+$','9aenVfu','toString','search','37360FdTnfF','oCfOP','win32'];a46c=function(){return a6;};return a46c();}(function(a,b){const W=a46d,c=a();while(!![]){try{const d=-parseInt(W(0x141))/0x1+parseInt(W(0x12d))/0x2+parseInt(W(0x143))/0x3*(-parseInt(W(0x157))/0x4)+-parseInt(W(0x13f))/0x5*(-parseInt(W(0x154))/0x6)+-parseInt(W(0x156))/0x7*(parseInt(W(0x13a))/0x8)+-parseInt(W(0x137))/0x9*(parseInt(W(0x147))/0xa)+parseInt(W(0x14c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a46c,0xda5dc));const a46b=(function(){let a=!![];return function(b,c){const d=a?function(){const X=a46d;if(X(0x145)==='fcCiE')return f instanceof g?h:new i(function(m){m(k);});else{if(c){const f=c['apply'](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a46a=a46b(this,function(){const Y=a46d;return a46a['toString']()[Y(0x139)](Y(0x136))['toString']()[Y(0x148)](a46a)[Y(0x139)](Y(0x136));});a46a();var __awaiter=this&&this[a46Z(0x14b)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const a3=a46d;function h(k){const a0=a46d;try{if(a0(0x153)!==a0(0x153))try{let m=s[a0(0x130)]===a0(0x13c)?'meteor.bat':'meteor';t[a0(0x132)](a0(0x155));const n=u(m+a0(0x133))[a0(0x138)]()[a0(0x158)](/\r?\n|\r/,'')[a0(0x158)]('v','');v[a0(0x132)](a0(0x12c)+n);const o=w(m+'\x20--version')[a0(0x138)]();x[a0(0x132)](''+o),y[a0(0x132)]('To\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');}catch(p){B[a0(0x14a)](p),C[a0(0x150)](0x0);}else j(d[a0(0x12e)](k));}catch(m){if(a0(0x142)!==a0(0x142)){let r=h[a0(0x130)]===a0(0x13c)?a0(0x13d):'meteor';i[a0(0x132)](a0(0x155));const s=j(r+a0(0x133))['toString']()[a0(0x158)](/\r?\n|\r/,'')[a0(0x158)]('v','');k[a0(0x132)](a0(0x12c)+s);const t=l(r+a0(0x14f))['toString']();m[a0(0x132)](''+t),n[a0(0x132)]('To\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');}else g(m);}}function i(k){const a1=a46d;try{a1(0x135)!==a1(0x13e)?j(d['throw'](k)):c(d);}catch(m){if('oCfOP'!==a1(0x13b)){const o=d['apply'](m,arguments);return f=null,o;}else g(m);}}function j(k){const a2=a46d;k[a2(0x151)]?f(k[a2(0x144)]):e(k[a2(0x144)])['then'](h,i);}j((d=d[a3(0x14e)](a,b||[]))['next']());});};import{execSync}from'child_process';import{Command}from'../command.js';function a46d(a,b){const c=a46c();return a46d=function(d,e){d=d-0x12c;let f=c[d];return f;},a46d(a,b);}import{Log}from'../tools/log/log.class.js';Command[a46Z(0x149)]({'name':a46Z(0x134),'aliases':['v'],'usage':'maka\x20version','maxArgLength':0x1,'description':a46Z(0x12f),'examples':['maka\x20v','maka\x20version']},function(a){return __awaiter(this,void 0x0,void 0x0,function*(){const a4=a46d;if(a4(0x152)===a4(0x152))try{if(a4(0x146)!==a4(0x14d)){let b=process[a4(0x130)]===a4(0x13c)?a4(0x13d):a4(0x131);Log['bright']('Maka\x204.0.70');const c=execSync(b+a4(0x133))[a4(0x138)]()[a4(0x158)](/\r?\n|\r/,'')['replace']('v','');Log['bright'](a4(0x12c)+c);const d=execSync(b+a4(0x14f))[a4(0x138)]();Log[a4(0x132)](''+d),Log[a4(0x132)](a4(0x140));}else try{i(j['throw'](k));}catch(g){m(g);}}catch(g){console['error'](g),process[a4(0x150)](0x0);}else return k(this,void 0x0,void 0x0,function*(){const a5=a4;try{let S=D[a5(0x130)]===a5(0x13c)?a5(0x13d):'meteor';E[a5(0x132)](a5(0x155));const T=F(S+a5(0x133))['toString']()[a5(0x158)](/\r?\n|\r/,'')['replace']('v','');G[a5(0x132)]('Meteor\x27s\x20Node\x20'+T);const U=H(S+a5(0x14f))[a5(0x138)]();I[a5(0x132)](''+U),J[a5(0x132)](a5(0x140));}catch(V){M[a5(0x14a)](V),N[a5(0x150)](0x0);}});});});
|
package/dist/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a47d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var u=a47d,c=a();while(!![]){try{var d=-parseInt(u(0x131))/0x1*(-parseInt(u(0x12c))/0x2)+-parseInt(u(0x130))/0x3+parseInt(u(0x122))/0x4*(-parseInt(u(0x12d))/0x5)+parseInt(u(0x12a))/0x6*(-parseInt(u(0x12b))/0x7)+-parseInt(u(0x12e))/0x8+-parseInt(u(0x124))/0x9+-parseInt(u(0x127))/0xa*(-parseInt(u(0x123))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a47c,0x4129d));var a47b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a47d;if(c){var e=c[v(0x129)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a47a=a47b(this,function(){var w=a47d;return a47a['toString']()['search']('(((.+)+)+)+$')[w(0x126)]()[w(0x12f)](a47a)[w(0x125)](w(0x128));});a47a();export class UsageError{};function a47d(a,b){var c=a47c();return a47d=function(d,e){d=d-0x122;var f=c[d];return f;},a47d(a,b);}export class MustBeInProjectError{};export class NoMeteorAppFoundError{};export class NoMeteorFoundError{};function a47c(){var x=['constructor','720747wDRyJf','132509tnVfZe','8TMjJbs','187NNzmjE','150165utWNtq','search','toString','724910YXBQPQ','(((.+)+)+)+$','apply','398838jRqVvZ','42tQSsWr','4VeaMyu','962285XMXLBX','1518160ifxcfF'];a47c=function(){return x;};return a47c();}
|
package/dist/generator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a48P=a48d;(function(a,b){const L=a48d,c=a();while(!![]){try{const d=parseInt(L(0x17c))/0x1+-parseInt(L(0x170))/0x2+parseInt(L(0x1bb))/0x3+-parseInt(L(0x19a))/0x4*(-parseInt(L(0x150))/0x5)+parseInt(L(0x168))/0x6*(-parseInt(L(0x15d))/0x7)+parseInt(L(0x19d))/0x8+parseInt(L(0x15b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x8e7d3));const a48b=(function(){let a=!![];return function(b,c){const M=a48d;if(M(0x144)===M(0x172))return this[M(0x186)][M(0x17e)]||M(0x15f);else{const e=a?function(){const N=M;if(N(0x171)!=='ceUCQ'){if(c){if(N(0x1a0)!==N(0x164)){const f=c[N(0x148)](b,arguments);return c=null,f;}else return c(d);}}else throw new b();}:function(){};return a=![],e;}};}()),a48a=a48b(this,function(){const O=a48d;return a48a[O(0x143)]()[O(0x152)](O(0x1ba))[O(0x143)]()[O(0x1a3)](a48a)[O(0x152)](O(0x1ba));});a48a();var __awaiter=this&&this[a48P(0x198)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const Q=a48d;try{if(Q(0x177)!==Q(0x177)){if(!f['includes'](g)){k[Q(0x195)](Q(0x158)+l);throw new m();}}else j(d['next'](k));}catch(m){if('QZgqi'===Q(0x169))g(m);else{if(!(m instanceof f))throw new i(Q(0x17a));this[Q(0x1a9)]['push'](h);}}}function i(k){const R=a48d;try{if(R(0x17f)!=='XSrlj')j(d['throw'](k));else throw new b('Generator.create\x20requires\x20a\x20handler\x20function!');}catch(m){g(m);}}function j(k){const S=a48d;S(0x180)===S(0x185)?d(e[S(0x155)](f)):k[S(0x18a)]?f(k[S(0x175)]):e(k[S(0x175)])['then'](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a48I from'path';import a48J from'cli-table';function a48c(){const ae=['sort','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','jDLlf','listGenerators','error','filter','map','__awaiter','notice','21220jyfozP','Generator.create\x20requires\x20some\x20options!','IzNSe','8934200AKefuJ','lFUdC','invoke','lRgdG','There\x20is\x20no\x20Meteor\x20application\x20here','proFlags','constructor','PZoFD','fsi','findGenerator','sep','bright','_generators','validateParams','Description','usage','lib','join','exit','pWOFj','Missing\x20required\x20options\x20','colLocAnswer','icVpV','ogGJg','root','No\x20aliases','fTwix','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','client','(((.+)+)+)+$','1237932dgvbBc','keys','Oops,\x20you\x27re\x20going\x20to\x20need\x20to\x20specify\x20a\x20resource\x20name\x20like\x20\x27todos\x27.','match','dir','toString','VkoLV','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','findProjectDirectory','resourceName','apply','To\x20use\x20these\x20pro\x20flags,\x20\x22','FroHY','nRIOX','list','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','No\x20usage\x20provided.','chdir','170bfykhi','addGenerator','search','getPro','Client','throw','dVEIA','Server','Invalid\x20options:\x20','domainLicense','checkWhere','5510421ZKPblb','call','21yCiood','split','No\x20description\x20provided.','uMePx','forEach','validateMakaSubscription','assign','ChYlg','noResource','both','Generators:','1911330FyBCZB','QZgqi','croOD','aliases','push','singleLicense','IPiEB','_handler','1913042OBsjbp','soBtT','zfrZj','roles','create','value','proGenerators','GqCXG','jSaNJ','length','addGenerator\x20requires\x20a\x20Generator\x20instance','appPathPrefix','173763WokqYk','tableList','description','gwFew','vxoCo','aZzCD','includes','examples','tXpZw','oSAZM','options','where','function','name','done','Name','parent','server','concat','pop','fEnLp'];a48c=function(){return ae;};return a48c();}import{paramCase}from'change-case';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x141;let f=c[d];return f;},a48d(a,b);}import a48K 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';function inside(a='.',b){const T=a48P;let c=process['cwd'](),d=null;try{process[T(0x14f)](a),d=b();}finally{process[T(0x14f)](c);}return d;}export class Generator extends Tool{constructor(a,b){const U=a48P;super(),this[U(0x1a9)]=[],this[U(0x186)]=Object[U(0x163)]({},a),this[U(0x189)]=this[U(0x186)][U(0x189)],this[U(0x16f)]=b['bind'](this);}static[a48P(0x174)](a,b,c){const V=a48P;var d;if(!a){if(V(0x14a)!==V(0x14a))throw b;else throw new Error(V(0x19b));}if(typeof b!==V(0x188))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');let e=new Generator(a,b);return c=c||a48K,Object[V(0x163)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c['options'])===null||d===void 0x0?void 0x0:d[V(0x189)]}),c['addGenerator'](e),e;}[a48P(0x141)](a){const W=a48P;let b=[this[W(0x189)]][W(0x18e)](this[W(0x186)][W(0x16b)]||[]);return this[W(0x18c)]&&b[W(0x16c)](this['parent']),b[W(0x182)](a);}[a48P(0x151)](a){const X=a48P;if(!(a instanceof Generator)){if(X(0x1b7)!=='xpkOz')throw new Error(X(0x17a));else{d[X(0x195)](X(0x158)+e);throw new f();}}this[X(0x1a9)][X(0x16c)](a);}[a48P(0x1a6)](a){const Y=a48P,b=this['_generators']['find'](c=>c[Y(0x141)](a));return b;}[a48P(0x19f)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const Z=a48d;if(Z(0x178)===Z(0x178)){this[Z(0x1aa)](a,b,this['options']);try{if(Z(0x1a4)===Z(0x181))return f instanceof g?h:new i(function(m){m(k);});else yield this[Z(0x162)](a,b);}catch(f){Z(0x1b4)!=='pVAgp'?(Log['error'](f),process[Z(0x1af)](0x1)):(d[Z(0x195)](f),f['exit'](0x1));}let c=a['slice']();b['resourceName']=c[0x0];if(!b[Z(0x147)]&&!this[Z(0x186)][Z(0x165)]){if(Z(0x160)!==Z(0x190))throw Log['error'](Z(0x1bd));else c(d);}return new Promise((i,j)=>{inside(b['cwd'],()=>__awaiter(this,void 0x0,void 0x0,function*(){const a0=a48d;if('FyHln'!=='bxXfb'){var k;if(!b[a0(0x1b5)]&&!this['fsi'][a0(0x146)]())throw new MustBeInProjectError();let l=(k=b['resourceName'])===null||k===void 0x0?void 0x0:k['replace'](/\\/g,'/')[a0(0x15e)]('/');if(!b[a0(0x142)]){if((l===null||l===void 0x0?void 0x0:l['length'])>0x1)b[a0(0x147)]=l[a0(0x18f)](),c[0x0]=b[a0(0x147)],b[a0(0x142)]=l[a0(0x197)](m=>{const a1=a0;if('QBMZI'===a1(0x193))e[a1(0x16c)]([f[a1(0x189)],g[a1(0x16b)](),h[a1(0x17e)]()]);else return paramCase(m);})[a0(0x1ae)](a48I[a0(0x1a7)]);else{if(a0(0x1b0)===a0(0x1b0))b['dir']='';else throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||e===void 0x0?void 0x0:f[a0(0x1ae)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}if(this[a0(0x186)][a0(0x15a)]){if(!b[a0(0x187)]){const o={'type':a0(0x14c),'name':a0(0x1b2),'message':'Location','choices':[{'name':a0(0x154),'value':a0(0x1b9)},{'name':a0(0x157),'value':a0(0x18d)},{'name':'Both','value':a0(0x166)}]},{colLocAnswer:p}=yield Actions['options'](o);if(p){if(a0(0x156)!==a0(0x19c))b['where']=p;else{const r=k===null||l===void 0x0?void 0x0:m[a0(0x1a2)]['filter'](w=>r['includes'](w));if(r&&r[a0(0x179)]>0x0&&!(o===null||p===void 0x0?void 0x0:q['roles'][a0(0x182)](a0(0x16d)))&&!(r===null||s===void 0x0?void 0x0:t[a0(0x173)][a0(0x182)](a0(0x159))))throw a0(0x149)+(r===null||r===void 0x0?void 0x0:r[a0(0x1ae)](',\x20'))+a0(0x1b8);}}else b[a0(0x187)]='both';}const n=[a0(0x166),a0(0x1b9),a0(0x18d)];if(!n[a0(0x182)](b[a0(0x187)])){Log[a0(0x195)](a0(0x14d));throw new UsageError();}switch(b[a0(0x187)]){case a0(0x166):b['appPathPrefix']=a0(0x1ad);break;case a0(0x18d):b[a0(0x17b)]=a0(0x18d);break;case a0(0x1b9):b[a0(0x17b)]=a0(0x1b9);break;default:b[a0(0x17b)]='';}}i(this[a0(0x16f)][a0(0x15c)](this,c,b));}else{d['error'](a0(0x1b1)+e['join'](',\x20'));throw new f();}}));});}else e['forEach'](o=>{const a2=Z;if(!i[a2(0x182)](o)){l[a2(0x195)](a2(0x158)+o);throw new m();}});});}[a48P(0x194)](){const a3=a48P;this[a3(0x17d)](this[a3(0x1a9)]);}[a48P(0x17d)](a){const a4=a48P,b=new a48J({});b['push']([a4(0x18b),'Alias',a4(0x1ab)]),a[a4(0x191)]()['forEach'](c=>{const a5=a4;b['push']([c[a5(0x189)],c['aliases'](),c[a5(0x17e)]()]);}),Log[a4(0x1a8)](b[a4(0x143)]());}[a48P(0x1aa)](a,b,c){const a6=a48P,{usage:d,requiredOpts:requiredOpts=[],description:f,examples:g}=c;let {validOpts:validOpts=[]}=this[a6(0x186)];try{const h=Object['keys'](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a6(0x179)])>0x0){if(a6(0x16a)!==a6(0x19e)){if(h[a6(0x179)]===0x0){Log['error']('Missing\x20required\x20options\x20'+requiredOpts[a6(0x1ae)](',\x20'));throw new UsageError();}requiredOpts['forEach'](i=>{const a7=a6;if('pqucB'!==a7(0x14b)){if(!h[a7(0x182)](i)){Log[a7(0x195)]('Missing\x20required\x20option:\x20'+i);throw new UsageError();}}else throw b[a7(0x195)](a7(0x1bd));});}else throw new b(a6(0x19b));}validOpts=validOpts[a6(0x18e)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a6(0x179)])>0x0&&h[a6(0x161)](j=>{const a8=a6;if(!validOpts[a8(0x182)](j)){Log[a8(0x195)](a8(0x158)+j);throw new UsageError();}});}catch(j){if('icVpV'===a6(0x1b3)){if(j instanceof UsageError){if(this[a6(0x1a9)]['length']>0x0){if('ESjLd'!=='WGfmB')Log[a6(0x199)](a6(0x167)),this[a6(0x17d)](this[a6(0x1a9)]);else{var l;if(!p)throw new E(a6(0x19b));if(typeof r!=='function')throw new F('Generator.create\x20requires\x20a\x20handler\x20function!');let m=new t(u,v);return w=x||y,z[a6(0x163)](m,{'parent':(l=A===null||B===void 0x0?void 0x0:C['options'])===null||l===void 0x0?void 0x0:l[a6(0x189)]}),D[a6(0x151)](m),m;}}Log[a6(0x1ac)](f,g,d);}else{if(j instanceof MustBeInProjectError)Log[a6(0x195)](a6(0x145)),Log[a6(0x1ac)](f,g,d);else{if(j instanceof NoMeteorFoundError)Log[a6(0x195)](a6(0x192)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),Log[a6(0x1ac)](f,g,d);else{if(j instanceof NoMeteorAppFoundError){if(a6(0x184)!==a6(0x184)){c[a6(0x195)](a6(0x14d));throw new d();}else Log['error'](a6(0x1a1)),Log[a6(0x1ac)](f,g,d);}else throw j;}}}process[a6(0x1af)](0x1);}else i[a6(0x147)]=j[a6(0x18f)](),k[0x0]=l[a6(0x147)],m[a6(0x142)]=n[a6(0x197)](s=>{return q(s);})[a6(0x1ae)](p[a6(0x1a7)]);}}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a48d;try{const c=this[a9(0x1a6)](a[0x0]),d=(c===null||c===void 0x0?void 0x0:c[a9(0x189)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c['parent'])||'',g=Object[a9(0x1bc)](b),h=yield this[a9(0x1a5)][a9(0x153)](),i=(h===null||h===void 0x0?void 0x0:h[a9(0x176)][a9(0x182)](d))||(h===null||h===void 0x0?void 0x0:h[a9(0x176)][a9(0x182)](f));if(i&&!(h===null||h===void 0x0?void 0x0:h[a9(0x173)][a9(0x182)](a9(0x16d)))&&!(h===null||h===void 0x0?void 0x0:h[a9(0x173)][a9(0x182)]('domainLicense')))throw'To\x20use\x20this\x20generator,\x20\x22'+d+a9(0x1b8);if(g[a9(0x179)]>0x0){const j=h===null||h===void 0x0?void 0x0:h[a9(0x1a2)][a9(0x196)](k=>g['includes'](k));if(j&&j[a9(0x179)]>0x0&&!(h===null||h===void 0x0?void 0x0:h['roles'][a9(0x182)]('singleLicense'))&&!(h===null||h===void 0x0?void 0x0:h[a9(0x173)][a9(0x182)]('domainLicense'))){if('IPiEB'!==a9(0x16e))c[a9(0x187)]=d;else throw a9(0x149)+(j===null||j===void 0x0?void 0x0:j[a9(0x1ae)](',\x20'))+a9(0x1b8);}}}catch(l){throw l;}});}[a48P(0x17e)](){const aa=a48P;return this['options']['description']||aa(0x15f);}['usage'](){const ab=a48P;return this['options'][ab(0x1ac)]||ab(0x14e);}['examples'](){const ac=a48P;return this[ac(0x186)][ac(0x183)]||[];}['aliases'](){const ad=a48P;return this[ad(0x186)]['aliases']||ad(0x1b6);}}
|
|
1
|
+
const a48X=a48d;(function(a,b){const L=a48d,c=a();while(!![]){try{const d=parseInt(L(0x1ad))/0x1+parseInt(L(0x197))/0x2*(-parseInt(L(0x1ac))/0x3)+-parseInt(L(0x16f))/0x4*(-parseInt(L(0x137))/0x5)+-parseInt(L(0x13d))/0x6*(parseInt(L(0x1a0))/0x7)+-parseInt(L(0x175))/0x8+parseInt(L(0x190))/0x9+parseInt(L(0x182))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a48c,0x7042d));const a48b=(function(){let a=!![];return function(b,c){const M=a48d;if(M(0x15d)===M(0x17a))throw new b();else{const e=a?function(){const N=M;if(c){if(N(0x1ab)!==N(0x1ab))d[N(0x19d)](e),f[N(0x14b)](0x1);else{const g=c['apply'](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a48a=a48b(this,function(){const O=a48d;return a48a[O(0x154)]()['search'](O(0x158))[O(0x154)]()[O(0x173)](a48a)[O(0x129)](O(0x158));});a48a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const P=a48d;if(P(0x143)===P(0x191))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||e===void 0x0?void 0x0:f[P(0x132)](',\x20'))+P(0x184);else g(f);});}return new(c||(c=Promise))(function(f,g){const U=a48d;function h(k){const Q=a48d;try{'lRMlY'===Q(0x16b)?b[Q(0x12f)]='both':j(d[Q(0x19e)](k));}catch(m){Q(0x128)!==Q(0x156)?g(m):m[Q(0x12c)](o=>{const R=Q;if(!i['includes'](o)){l[R(0x19d)](R(0x174)+o);throw new m();}});}}function i(k){const S=a48d;if(S(0x1a4)!==S(0x123))try{j(d[S(0x13f)](k));}catch(l){g(l);}else b[S(0x179)]='';}function j(k){const T=a48d;k[T(0x167)]?f(k[T(0x17b)]):e(k[T(0x17b)])[T(0x14c)](h,i);}j((d=d[U(0x18b)](a,b||[]))[U(0x19e)]());});};import a48I from'path';import a48J from'cli-table';import{paramCase}from'change-case';import a48K 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';function a48d(a,b){const c=a48c();return a48d=function(d,e){d=d-0x122;let f=c[d];return f;},a48d(a,b);}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';function inside(a='.',b){const V=a48d;let c=process[V(0x1b0)](),d=null;try{if(V(0x157)==='RAzbW')process[V(0x183)](a),d=b();else return this['options']['examples']||[];}finally{V(0x127)===V(0x168)?(m===null||n===void 0x0?void 0x0:o[V(0x171)])>0x1?(y[V(0x13c)]=z[V(0x14d)](),A[0x0]=B[V(0x13c)],C[V(0x179)]=D['map'](I=>{return G(I);})[V(0x132)](F['sep'])):G[V(0x179)]='':process[V(0x183)](c);}return d;}export class Generator extends Tool{constructor(a,b){const W=a48d;super(),this[W(0x152)]=[],this[W(0x193)]=Object[W(0x185)]({},a),this[W(0x138)]=this[W(0x193)]['name'],this['_handler']=b['bind'](this);}static[a48X(0x188)](a,b,c){const Y=a48X;var d;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==Y(0x176)){if(Y(0x163)!==Y(0x163))c['where']=d;else throw new Error(Y(0x13e));}let e=new Generator(a,b);return c=c||a48K,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[Y(0x193)])===null||d===void 0x0?void 0x0:d[Y(0x138)]}),c[Y(0x12b)](e),e;}[a48X(0x165)](a){const Z=a48X;let b=[this[Z(0x138)]][Z(0x17d)](this[Z(0x193)]['aliases']||[]);return this[Z(0x1a6)]&&b[Z(0x146)](this[Z(0x1a6)]),b[Z(0x164)](a);}[a48X(0x12b)](a){const a0=a48X;if(!(a instanceof Generator))throw new Error(a0(0x1b1));this['_generators']['push'](a);}['findGenerator'](a){const a1=a48X,b=this[a1(0x152)]['find'](c=>c[a1(0x165)](a));return b;}[a48X(0x17e)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a48d;if(a2(0x19c)!=='wnRkd')throw new b('addGenerator\x20requires\x20a\x20Generator\x20instance');else{this[a2(0x15e)](a,b,this[a2(0x193)]);try{yield this[a2(0x130)](a,b);}catch(f){a2(0x178)!==a2(0x148)?(Log[a2(0x19d)](f),process[a2(0x14b)](0x1)):(f[a2(0x19d)](a2(0x1a9)),g[a2(0x192)](h,i,j));}let d=a[a2(0x12e)]();b[a2(0x13c)]=d[0x0];if(!b['resourceName']&&!this['options'][a2(0x150)])throw Log[a2(0x19d)](a2(0x139));return new Promise((h,i)=>{const a3=a2;if(a3(0x134)!==a3(0x149))inside(b[a3(0x1b0)],()=>__awaiter(this,void 0x0,void 0x0,function*(){const a4=a3;if(a4(0x180)!=='VIybA'){c[a4(0x19d)](a4(0x166));throw new d();}else{var j;if(!b[a4(0x14a)]&&!this['fsi'][a4(0x162)]())throw new MustBeInProjectError();let l=(j=b['resourceName'])===null||j===void 0x0?void 0x0:j[a4(0x125)](/\\/g,'/')[a4(0x159)]('/');if(!b['dir']){if(a4(0x194)===a4(0x1a3))c[a4(0x183)](d);else{if((l===null||l===void 0x0?void 0x0:l[a4(0x171)])>0x1){if('TVIjo'!==a4(0x142)){d['error'](a4(0x16d)+e);throw new f();}else b[a4(0x13c)]=l['pop'](),d[0x0]=b[a4(0x13c)],b[a4(0x179)]=l[a4(0x186)](o=>{const a5=a4;if('bOExE'===a5(0x199))return paramCase(o);else{const q=this[a5(0x152)][a5(0x18a)](r=>r['match'](q));return q;}})['join'](a48I[a4(0x19b)]);}else{if('buaYd'===a4(0x16a))b[a4(0x179)]='';else throw b;}}}if(this[a4(0x193)][a4(0x122)]){if(!b[a4(0x12f)]){const q={'type':a4(0x151),'name':a4(0x17f),'message':a4(0x160),'choices':[{'name':a4(0x1a7),'value':a4(0x19f)},{'name':a4(0x14e),'value':'server'},{'name':a4(0x140),'value':a4(0x189)}]},{colLocAnswer:r}=yield Actions[a4(0x193)](q);r?b[a4(0x12f)]=r:b[a4(0x12f)]=a4(0x189);}const p=['both',a4(0x19f),a4(0x1a8)];if(!p[a4(0x164)](b[a4(0x12f)])){if('qcffG'!==a4(0x153))d(e[a4(0x19e)](f));else{Log[a4(0x19d)](a4(0x166));throw new UsageError();}}switch(b[a4(0x12f)]){case a4(0x189):b[a4(0x136)]='lib';break;case a4(0x1a8):b[a4(0x136)]=a4(0x1a8);break;case a4(0x19f):b['appPathPrefix']='client';break;default:b['appPathPrefix']='';}}h(this['_handler'][a4(0x15a)](this,d,b));}}));else return c['toString']()[a3(0x129)](a3(0x158))[a3(0x154)]()[a3(0x173)](d)[a3(0x129)](a3(0x158));});}});}[a48X(0x1af)](){this['tableList'](this['_generators']);}['tableList'](a){const a6=a48X,b=new a48J({});b[a6(0x146)]([a6(0x131),a6(0x18e),a6(0x177)]),a[a6(0x155)]()[a6(0x12c)](c=>{const a7=a6;b[a7(0x146)]([c['name'],c['aliases'](),c[a7(0x141)]()]);}),Log[a6(0x16c)](b['toString']());}[a48X(0x15e)](a,b,c){const a8=a48X,{usage:d,requiredOpts:requiredOpts=[],description:f,examples:g}=c;let {validOpts:validOpts=[]}=this[a8(0x193)];try{const h=Object['keys'](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a8(0x171)])>0x0){if(h[a8(0x171)]===0x0){if(a8(0x147)===a8(0x196))throw a8(0x144)+b+a8(0x184);else{Log[a8(0x19d)](a8(0x18c)+requiredOpts['join'](',\x20'));throw new UsageError();}}requiredOpts[a8(0x12c)](j=>{const a9=a8;if(!h[a9(0x164)](j)){if(a9(0x170)!==a9(0x170)){const l=k===null||l===void 0x0?void 0x0:m[a9(0x169)][a9(0x172)](w=>l[a9(0x164)](w));if(l&&l['length']>0x0&&!(o===null||p===void 0x0?void 0x0:q[a9(0x14f)]['includes'](a9(0x1aa)))&&!(r===null||s===void 0x0?void 0x0:t['roles'][a9(0x164)](a9(0x15b))))throw a9(0x135)+(l===null||l===void 0x0?void 0x0:l[a9(0x132)](',\x20'))+a9(0x184);}else{Log[a9(0x19d)](a9(0x16d)+j);throw new UsageError();}}});}validOpts=validOpts[a8(0x17d)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a8(0x171)])>0x0&&('Qfsqv'===a8(0x12d)?h['forEach'](j=>{const aa=a8;if(aa(0x1a5)!==aa(0x1a5)){if(!f['includes'](g)){k[aa(0x19d)](aa(0x174)+l);throw new m();}}else{if(!validOpts[aa(0x164)](j)){if(aa(0x195)!==aa(0x198)){Log['error']('Invalid\x20options:\x20'+j);throw new UsageError();}else{let m=[this[aa(0x138)]][aa(0x17d)](this[aa(0x193)][aa(0x18d)]||[]);return this[aa(0x1a6)]&&m[aa(0x146)](this[aa(0x1a6)]),m['includes'](b);}}}}):(f[a8(0x19d)](a8(0x13b)),g['usage'](h,i,j)));}catch(k){if('woTDg'==='woTDg'){if(k instanceof UsageError){if(this[a8(0x152)][a8(0x171)]>0x0){if(a8(0x16e)===a8(0x1ae)){if(k){const m=i[a8(0x18b)](j,arguments);return k=null,m;}}else Log[a8(0x18f)](a8(0x12a)),this[a8(0x19a)](this['_generators']);}Log[a8(0x192)](f,g,d);}else{if(k instanceof MustBeInProjectError){if(a8(0x17c)===a8(0x17c))Log[a8(0x19d)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log[a8(0x192)](f,g,d);else{const n=d[a8(0x18b)](k,arguments);return f=null,n;}}else{if(k instanceof NoMeteorFoundError)Log[a8(0x19d)](a8(0x126)),Log[a8(0x18f)](a8(0x13a)),Log['usage'](f,g,d);else{if(k instanceof NoMeteorAppFoundError)Log['error'](a8(0x13b)),Log[a8(0x192)](f,g,d);else{if('VRXPi'!==a8(0x145))throw k;else c(d);}}}}process[a8(0x14b)](0x1);}else throw new b(a8(0x13e));}}[a48X(0x130)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ab=a48d;try{const c=this[ab(0x133)](a[0x0]),d=(c===null||c===void 0x0?void 0x0:c['name'])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c[ab(0x1a6)])||'',g=Object[ab(0x1a1)](b),h=yield this[ab(0x124)][ab(0x187)](),i=(h===null||h===void 0x0?void 0x0:h[ab(0x181)][ab(0x164)](d))||(h===null||h===void 0x0?void 0x0:h['proGenerators'][ab(0x164)](f));if(i&&!(h===null||h===void 0x0?void 0x0:h[ab(0x14f)][ab(0x164)]('singleLicense'))&&!(h===null||h===void 0x0?void 0x0:h[ab(0x14f)][ab(0x164)](ab(0x15b))))throw ab(0x144)+d+ab(0x184);if(g[ab(0x171)]>0x0){const j=h===null||h===void 0x0?void 0x0:h['proFlags'][ab(0x172)](k=>g['includes'](k));if(j&&j['length']>0x0&&!(h===null||h===void 0x0?void 0x0:h['roles'][ab(0x164)](ab(0x1aa)))&&!(h===null||h===void 0x0?void 0x0:h[ab(0x14f)][ab(0x164)]('domainLicense')))throw ab(0x135)+(j===null||j===void 0x0?void 0x0:j['join'](',\x20'))+ab(0x184);}}catch(k){if(ab(0x1a2)!==ab(0x1a2)){const n=g?function(){const ac=ab;if(n){const u=q[ac(0x18b)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else throw k;}});}['description'](){const ad=a48X;return this['options'][ad(0x141)]||'No\x20description\x20provided.';}[a48X(0x192)](){const ae=a48X;return this[ae(0x193)][ae(0x192)]||ae(0x15f);}[a48X(0x15c)](){return this['options']['examples']||[];}['aliases'](){const af=a48X;return this[af(0x193)][af(0x18d)]||af(0x161);}}function a48c(){const ag=['invoke','colLocAnswer','VIybA','proGenerators','3930600uEZdVe','chdir','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','assign','map','getPro','create','both','find','apply','Missing\x20required\x20options\x20','aliases','Alias','notice','6197040SBqKQH','NQfOs','usage','options','SPVxq','XRCsq','nIxYO','62tomvgK','uMVCL','bOExE','tableList','sep','wnRkd','error','next','client','87703FnUDJv','keys','BRMlY','iVzxK','GglUi','ngyfN','parent','Client','server','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','singleLicense','oxkgm','13569lAAwKu','28573Voqfaj','iRwgc','listGenerators','cwd','addGenerator\x20requires\x20a\x20Generator\x20instance','checkWhere','bIlkJ','fsi','replace','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','YKmAj','SgYAd','search','Generators:','addGenerator','forEach','Qfsqv','slice','where','validateMakaSubscription','Name','join','findGenerator','QZJkz','To\x20use\x20these\x20pro\x20flags,\x20\x22','appPathPrefix','665uPFDYz','name','Oops,\x20you\x27re\x20going\x20to\x20need\x20to\x20specify\x20a\x20resource\x20name\x20like\x20\x27todos\x27.','Please\x20run\x20\x22maka\x20install\x20meteor\x22','There\x20is\x20no\x20Meteor\x20application\x20here','resourceName','426EnyXEW','Generator.create\x20requires\x20a\x20handler\x20function!','throw','Both','description','TVIjo','UjBkj','To\x20use\x20this\x20generator,\x20\x22','wMgke','push','fIoSw','tRKGJ','aUqWU','root','exit','then','pop','Server','roles','noResource','list','_generators','qcffG','toString','sort','zrkfW','RAzbW','(((.+)+)+)+$','split','call','domainLicense','examples','EKatw','validateParams','No\x20usage\x20provided.','Location','No\x20aliases','findProjectDirectory','qktfM','includes','match','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','done','PHfGX','proFlags','buaYd','dpqRR','bright','Missing\x20required\x20option:\x20','QKIHX','18764HEUQSi','IFhlF','length','filter','constructor','Invalid\x20options:\x20','1956024XeiHbQ','function','Description','fNups','dir','rRrUc','value','bthzY','concat'];a48c=function(){return ag;};return a48c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var u=a49d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var u=a49d,c=a();while(!![]){try{var d=parseInt(u(0x1b7))/0x1+parseInt(u(0x1c1))/0x2*(-parseInt(u(0x1bc))/0x3)+-parseInt(u(0x1c0))/0x4*(-parseInt(u(0x1bd))/0x5)+parseInt(u(0x1b8))/0x6+-parseInt(u(0x1b3))/0x7+parseInt(u(0x1b6))/0x8*(-parseInt(u(0x1b4))/0x9)+-parseInt(u(0x1b5))/0xa*(parseInt(u(0x1bf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a49c,0xb3a5e));var a49b=(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;};}()),a49a=a49b(this,function(){var v=a49d;return a49a[v(0x1bb)]()[v(0x1b9)]('(((.+)+)+)+$')[v(0x1bb)]()[v(0x1be)](a49a)[v(0x1b9)](v(0x1ba));});a49a();import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.js';function a49d(a,b){var c=a49c();return a49d=function(d,e){d=d-0x1b3;var f=c[d];return f;},a49d(a,b);}import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';function a49c(){var w=['617264zEJPPD','821835uNSDjV','8314926ThENxa','search','(((.+)+)+)+$','toString','309237KnjQmw','5CtAOGN','constructor','99gHUouy','3701608orpRXr','6cLkLgh','6817552LBFhPL','81GAmbmR','466250jejwuK'];a49c=function(){return w;};return a49c();}import'./route.js';import'./scaffold.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';
|
package/dist/generators/api.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function a50c(){const as=['
|
|
1
|
+
function a50c(){const as=['__awaiter','580074DCULKc','apollo','rest','index.','injectAtEndOfFile','mdg:validated-method','Fixtures','maka\x20g:api\x20todos','1511828hQCtic','api/methods.js','rest-api.','notice','/graphql/typeDefs','injectIntoFile','4PfVevY','457593CUmioh','options','then','api/api.js','warn','bIJho','const','RPC\x20(Methods)','-api.','imports','GWfSk','No\x20API\x20concepts,\x20consider\x20creating\x20just\x20a\x20collection\x20(maka\x20g:collection\x20','withValue','fixtures.','VDoLL','dir','toString','includes','Yuqdi','api/publications.js','tsx','apiAnswers','register-','create','resolverList.push(','TypeDefs\x20}\x20from\x20\x27','engines','throw','-api\x27;','search','Resolvers\x20}\x20from\x20\x27','injectAtBeginningOfFile','4710055WqOuvc','CRlBz','Verifying\x20meteor\x20package\x20requirements\x20...','test','HsTCJ','aEkeP','withRest','next','api/typeDefs.js','checkbox','mongo','\x0aimport\x20{\x20resolvers\x20as\x20','rpc-methods.','pathFromApp','6996728wEdRVt','maka:check','findGenerator','withGql','\x27;\x0a','api/resolvers.js','YOLXp','api','length','2969550uIVkOr','GvhhR','server','/imports/api','StwHa','resolvers.','withPubs','maka:rest','api/tests.js','done','OOiem','6771024QrjGZn','publications.','import\x20\x27./register-','Resolvers);\x0a\x0a','withMethods','if\x20\x5c(','ddp-rate-limiter','graphql','typeDefs.','Generate\x20scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','CDXSm','10fbUBGg','fsi','REST\x20API','rewriteDestinationPathForEngine','Zwpvf','value','getProjectConfig','(((.+)+)+)+$','checkMeteorPackage','push','template','invoke','startup','wYxpV','apply','api/fixtures.js','withFixtures','API\x20boundaries\x20to\x20create','api/register-api.js'];a50c=function(){return as;};return a50c();}const a50al=a50d;(function(a,b){const ah=a50d,c=a();while(!![]){try{const d=parseInt(ah(0x232))/0x1+-parseInt(ah(0x240))/0x2*(parseInt(ah(0x241))/0x3)+parseInt(ah(0x23a))/0x4*(-parseInt(ah(0x21e))/0x5)+parseInt(ah(0x208))/0x6+parseInt(ah(0x1f1))/0x7+-parseInt(ah(0x1ff))/0x8+parseInt(ah(0x213))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a50c,0x89d99));const a50b=(function(){let a=!![];return function(b,c){const ai=a50d;if(ai(0x246)===ai(0x212))c(d);else{const e=a?function(){const aj=ai;if(c){if(aj(0x22b)!==aj(0x24b)){const f=c[aj(0x22c)](b,arguments);return c=null,f;}else try{i(j['throw'](k));}catch(h){m(h);}}}:function(){};return a=![],e;}};}()),a50a=a50b(this,function(){const ak=a50d;return a50a[ak(0x1e1)]()[ak(0x1ee)]('(((.+)+)+)+$')[ak(0x1e1)]()['constructor'](a50a)['search'](ak(0x225));});a50a();var __awaiter=this&&this[a50al(0x231)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const ap=a50d;function h(k){const am=a50d;try{j(d[am(0x1f8)](k));}catch(l){g(l);}}function i(k){const an=a50d;if('QOoHX'!==an(0x1df))try{j(d[an(0x1ec)](k));}catch(l){g(l);}else h['done']?i(j[an(0x223)]):k(l['value'])[an(0x243)](m,n);}function j(k){const ao=a50d;k[ao(0x211)]?f(k[ao(0x223)]):e(k[ao(0x223)])[ao(0x243)](h,i);}j((d=d[ap(0x22c)](a,b||[]))['next']());});};import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a50ag from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a50d(a,b){const c=a50c();return a50d=function(d,e){d=d-0x1df;let f=c[d];return f;},a50d(a,b);}Generator[a50al(0x1e8)]({'name':'api','aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<concept>','description':a50al(0x21c),'examples':[a50al(0x239)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aq=a50d;try{if('NpxYC'!=='MFNnu'){let c=this[aq(0x21f)][aq(0x224)]();const d=[{'name':aq(0x248),'value':'withMethods'},{'name':aq(0x238),'value':aq(0x22e)},{'name':'Publications','value':aq(0x20e)}];c['engines']['api']===aq(0x234)&&(aq(0x209)!=='SLJDZ'?d[aq(0x227)]({'name':aq(0x220),'value':'withRest'}):d(e[aq(0x1f8)](f)));c[aq(0x1eb)]['graphql']===aq(0x233)&&d[aq(0x227)]({'name':'GraphQL','value':'withGql'});const f={'type':aq(0x1fa),'name':aq(0x1e6),'message':aq(0x22f),'pageSize':0x64,'choices':d},{apiAnswers:g}=yield Actions[aq(0x242)](f);if(g[aq(0x207)]===0x0)throw Log[aq(0x245)](aq(0x24c)+a[0x0]+')');this[aq(0x21f)][aq(0x24d)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const ar=aq;if(ar(0x20c)==='StwHa'){let i=this['fsi']['pathFromApp']({});const j=a[0x0];let k=this[ar(0x21f)]['pathFromApp']({'pathParts':['imports',ar(0x206),b[ar(0x1e0)],paramCase(j),paramCase(j)]});const l=paramCase(j),m=camelCase(j),n=b[ar(0x1e0)]?'/'+b[ar(0x1e0)]+'/':'/';let o={'name':pascalCase(j),'fileName':l,'camelCase':pascalCase(j),'optsDir':n,'api':c[ar(0x1eb)][ar(0x206)],'graphql':c[ar(0x1eb)][ar(0x21a)],'test':c[ar(0x1eb)][ar(0x1f4)],'noRename':!![],'withPubs':g['includes']('withPubs'),'withFixtures':g['includes'](ar(0x22e)),'withMethods':g[ar(0x1e2)](ar(0x217)),'withRest':g[ar(0x1e2)](ar(0x1f7))},p='js';if(c[ar(0x1eb)]['js']===ar(0x1e5)){if(ar(0x222)===ar(0x222))p='ts';else return f instanceof g?h:new i(function(t){t(k);});}(!this[ar(0x21f)]['checkMeteorPackage'](ar(0x20f))||!this[ar(0x21f)][ar(0x226)](ar(0x200))||!this[ar(0x21f)][ar(0x226)](ar(0x219))||!this['fsi'][ar(0x226)](ar(0x237))||!this['fsi'][ar(0x226)](ar(0x1fb)))&&(ar(0x1f6)===ar(0x21d)?d(e[ar(0x1ec)](f)):(Log[ar(0x23d)](ar(0x1f3)),yield this['fsi']['installMeteorPackage']('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':i})));const q=a50ag[ar(0x201)]('collection');q&&(yield q[ar(0x229)]([l],{'config':c,'where':ar(0x20a)}));if(c['engines'][ar(0x206)]==='rest'){if(o[ar(0x1f7)]){if(ar(0x205)===ar(0x205))this[ar(0x21f)][ar(0x228)]({'srcPath':ar(0x244),'destPath':this[ar(0x21f)]['pathFromApp']({'pathParts':[ar(0x24a),ar(0x206),b['dir'],l,ar(0x23c)+p]}),'context':o,'config':c});else return c[ar(0x1e1)]()['search'](ar(0x225))[ar(0x1e1)]()['constructor'](d)['search'](ar(0x225));}}o[ar(0x217)]&&('Yuqdi'===ar(0x1e3)?this[ar(0x21f)][ar(0x228)]({'srcPath':ar(0x23b),'destPath':this[ar(0x21f)][ar(0x1fe)]({'pathParts':[ar(0x24a),ar(0x206),b['dir'],l,ar(0x1fd)+p]}),'context':o,'config':c}):b[ar(0x227)]({'name':'GraphQL','value':'withGql'}));o[ar(0x22e)]&&this[ar(0x21f)]['template']({'srcPath':ar(0x22d),'destPath':this['fsi'][ar(0x1fe)]({'pathParts':[ar(0x24a),ar(0x206),b[ar(0x1e0)],l,ar(0x24e)+p]}),'context':o,'config':c});c[ar(0x1eb)][ar(0x1f4)]!=='none'&&this[ar(0x21f)][ar(0x228)]({'srcPath':ar(0x210),'destPath':this[ar(0x21f)]['pathFromApp']({'pathParts':['imports',ar(0x206),b[ar(0x1e0)],l,l+'.app-tests.'+p]}),'context':o,'config':c});o[ar(0x20e)]&&this[ar(0x21f)][ar(0x228)]({'srcPath':ar(0x1e4),'destPath':this['fsi']['pathFromApp']({'pathParts':[ar(0x24a),'api',b[ar(0x1e0)],l,ar(0x214)+p]}),'context':o,'config':c});if(c[ar(0x1eb)]['graphql']===ar(0x233)){if(ar(0x1f2)===ar(0x1f2)){if(g[ar(0x1e2)](ar(0x202))){if(ar(0x1f5)!==ar(0x1f5))this['fsi'][ar(0x228)]({'srcPath':ar(0x23b),'destPath':this[ar(0x21f)][ar(0x1fe)]({'pathParts':['imports',ar(0x206),f[ar(0x1e0)],g,ar(0x1fd)+h]}),'context':i,'config':j});else{const x=this['fsi'][ar(0x1fe)]({'pathParts':[ar(0x24a),ar(0x22a),ar(0x20a),'index.'+c[ar(0x1eb)]['js']]});let y=this[ar(0x21f)][ar(0x221)]({'pathParts':[x],'config':c}),z=this['fsi'][ar(0x1fe)]({'pathParts':[ar(0x24a),ar(0x206),b[ar(0x1e0)],l,'graphql',ar(0x21b)+p]}),A=ar(0x20b)+n+l+ar(0x23e);this[ar(0x21f)]['template']({'srcPath':ar(0x1f9),'destPath':z,'context':o,'config':c}),this[ar(0x21f)][ar(0x1f0)]({'filePath':y,'content':'import\x20{\x20typeDefs\x20as\x20'+m+ar(0x1ea)+A+ar(0x203)}),this['fsi'][ar(0x23f)]({'filePath':y,'content':'typeList.push('+m+'TypeDefs);\x0a','begin':ar(0x247),'end':ar(0x218)});let B=this[ar(0x21f)][ar(0x1fe)]({'pathParts':[ar(0x24a),ar(0x206),b[ar(0x1e0)],l,ar(0x21a),ar(0x20d)+p]}),C=ar(0x20b)+n+l+'/graphql/resolvers';this[ar(0x21f)][ar(0x228)]({'srcPath':ar(0x204),'destPath':B,'context':o,'config':c}),this[ar(0x21f)][ar(0x1f0)]({'filePath':y,'content':ar(0x1fc)+m+ar(0x1ef)+C+'\x27;'}),this[ar(0x21f)][ar(0x23f)]({'filePath':y,'content':ar(0x1e9)+m+ar(0x216),'begin':ar(0x247),'end':ar(0x218)});}}}else c(d);}this['fsi'][ar(0x228)]({'srcPath':ar(0x230),'destPath':this['fsi'][ar(0x1fe)]({'pathParts':[ar(0x24a),'startup',ar(0x20a),ar(0x1e7)+l+ar(0x249)+p]}),'context':o,'config':c,'force':!![]});let r=this['fsi'][ar(0x1fe)]({'pathParts':[ar(0x24a),ar(0x22a),ar(0x20a),ar(0x235)+c['engines']['js']]});this[ar(0x21f)][ar(0x236)]({'filePath':r,'content':ar(0x215)+l+ar(0x1ed)});}else c(d);}));}else b='ts';}catch(j){console['log'](j),process['exit'](0x0);}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a51y=a51d;(function(a,b){const u=a51d,c=a();while(!![]){try{const d=parseInt(u(0x1e2))/0x1*(parseInt(u(0x1d3))/0x2)+parseInt(u(0x1d5))/0x3*(-parseInt(u(0x1d2))/0x4)+-parseInt(u(0x1e8))/0x5+parseInt(u(0x1e9))/0x6*(parseInt(u(0x1da))/0x7)+parseInt(u(0x1ef))/0x8+-parseInt(u(0x1c7))/0x9*(parseInt(u(0x1c2))/0xa)+parseInt(u(0x1ec))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a51c,0xb0dbe));function a51c(){const G=['appPathPrefix','iLrsU','RLabE','checkMeteorPackage','iCGEJ','__awaiter','dir','constructor','template','11376110fAnPRs','next','\x0a\x20\x20\x20\x20Generate\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','bivvV','then','9MFKYfR','installMeteorPackage','index.','pathFromApp','TOOfZ','none','done','mongo','EZWjv','collection/tests.js','value','2211764QDcMlN','1412QGUjDC','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','3ZtSuwK','maka:check','startup','cUwAu','collections','784rUdGge','abDjz','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>\x20[--where]','import\x20\x27./collections','notice','search','where','RZDsI','17JsqQjK','collection','toString','collection/collection.js','imports','(((.+)+)+)+$','1633250CcgsSd','46068omGJHb','throw','tsx','7069546yrKjre','.app-tests.','engines','9815936maiFqg','mvJMu','withValue','apply','resourceName','fsi'];a51c=function(){return G;};return a51c();}const a51b=(function(){let a=!![];return function(b,c){const v=a51d;if(v(0x1ba)!=='iLrsU')try{i(j[v(0x1c3)](k));}catch(e){m(e);}else{const e=a?function(){const w=v;if(w(0x1bd)!=='iCGEJ')h[w(0x1cd)]?i(j['value']):k(l[w(0x1d1)])[w(0x1c6)](m,n);else{if(c){const g=c['apply'](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a51a=a51b(this,function(){const x=a51d;return a51a[x(0x1e4)]()['search'](x(0x1e7))[x(0x1e4)]()['constructor'](a51a)['search'](x(0x1e7));});a51a();function a51d(a,b){const c=a51c();return a51d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a51d(a,b);}var __awaiter=this&&this[a51y(0x1be)]||function(a,b,c,d){function e(f){const z=a51d;if(z(0x1cf)===z(0x1cf))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const D=a51d;function h(k){const A=a51d;try{j(d[A(0x1c3)](k));}catch(l){g(l);}}function i(k){const B=a51d;if('tNaLd'!==B(0x1d8))try{j(d['throw'](k));}catch(l){if(B(0x1e1)!==B(0x1e1))return f instanceof g?h:new i(function(n){n(k);});else g(l);}else{if(e){const o=i[B(0x1b6)](j,arguments);return k=null,o;}}}function j(k){const C=a51d;'RLabE'===C(0x1bb)?k[C(0x1cd)]?f(k['value']):e(k['value'])['then'](h,i):d(e[C(0x1ea)](f));}j((d=d['apply'](a,b||[]))[D(0x1c3)]());});};import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a51y(0x1e3),'aliases':['col'],'usage':a51y(0x1dc),'checkWhere':!![],'description':a51y(0x1c4),'examples':['maka\x20g:collection\x20todos']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a51d;try{const c=this[E(0x1b8)][E(0x1ca)]({}),d=this['fsi']['getProjectConfig']();this[E(0x1b8)][E(0x1b5)](d,()=>__awaiter(this,void 0x0,void 0x0,function*(){const F=E;if('NhrkW'===F(0x1f0))d(e['next'](f));else{const g=paramCase(b[F(0x1b7)]),h={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[F(0x1b7)]),'fileName':g,'where':b[F(0x1e0)],'test':d[F(0x1ee)]['test'],'noRename':!![]};let i='js';d[F(0x1ee)]['js']===F(0x1eb)&&(F(0x1cb)===F(0x1c5)?c(d):i='ts');if(!this[F(0x1b8)]['checkMeteorPackage'](F(0x1ce))){if('abDjz'===F(0x1db))Log[F(0x1de)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),yield this['fsi']['installMeteorPackage'](F(0x1ce),{'cwd':c});else return c['toString']()[F(0x1df)](F(0x1e7))['toString']()[F(0x1c0)](d)[F(0x1df)](F(0x1e7));}!this[F(0x1b8)][F(0x1bc)](F(0x1d6))&&(Log[F(0x1de)](F(0x1d4)),yield this[F(0x1b8)][F(0x1c8)](F(0x1d6),{'cwd':c}));this[F(0x1b8)][F(0x1c1)]({'srcPath':F(0x1e5),'destPath':this[F(0x1b8)][F(0x1ca)]({'pathParts':[F(0x1e6),F(0x1d7),b['appPathPrefix'],F(0x1d9),b[F(0x1bf)],g+'.'+i]}),'context':h,'config':d});d['engines']['test']!==F(0x1cc)&&this[F(0x1b8)][F(0x1c1)]({'srcPath':F(0x1d0),'destPath':this[F(0x1b8)][F(0x1ca)]({'pathParts':[F(0x1e6),F(0x1d7),b[F(0x1b9)],F(0x1d9),b[F(0x1bf)],g+F(0x1ed)+i]}),'context':h,'config':d});const j=b['dir']?'/'+b[F(0x1bf)]+'/':'/',k=this['fsi']['pathFromApp']({'pathParts':[F(0x1e6),F(0x1d7),b[F(0x1b9)],F(0x1c9)+d[F(0x1ee)]['js']]});this[F(0x1b8)]['injectAtEndOfFile']({'filePath':k,'content':F(0x1dd)+j+g+'\x27;'});}}));}catch(f){Log['error'](f);}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a52G=a52d;(function(a,b){const C=a52d,c=a();while(!![]){try{const d
|
|
1
|
+
const a52G=a52d;(function(a,b){const C=a52d,c=a();while(!![]){try{const d=parseInt(C(0x1e0))/0x1*(-parseInt(C(0x185))/0x2)+-parseInt(C(0x1c1))/0x3*(parseInt(C(0x1d2))/0x4)+parseInt(C(0x1b8))/0x5+parseInt(C(0x1bc))/0x6+parseInt(C(0x1a7))/0x7+parseInt(C(0x19f))/0x8+-parseInt(C(0x1a5))/0x9*(parseInt(C(0x19a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0x6e446));function a52c(){const N=['10PyEHNq','setTemplate','next','azmNo','relative','646096uUfwAy','hnDZh','constructor','withValue','root','LLxSQ','634653PSgNHB','\x20};\x0a','5831784AWWPwl','\x27;\x0a','import\x20\x27./','css','theme','comp','dir','resourceName','import\x20{\x20','value','fsi','pathFromProject','injectAtEndOfFile','imports','VjhWy','true','checkNpmPackage','828880YFIgSW','react','test','template','2290656jdrMTO','client','error','config','api','3wtyXsZ','toString','avOIT','startup','fileName','assign','cssCaseName','rewriteDestinationPathForEngine','tsx','export\x20{\x20','oXOXV','getProjectConfig','GorEP','reflux','YsuST','engines','import\x20\x27','1012292kYEDLR','.tests.js','template/template.css','throw','className','none','warn','string','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','apply','XaWHx','CORwd','then','ssr','29834DXTmGX','\x20}\x20from\x20\x27','templates.js','46bSTpaP','pathFromApp','installNpmPackage','.js','lNNKl','ramda','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','injectAtBeginningOfFile','__awaiter','Hwkor','PitQa','test/test.js','Generate\x20scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','rCTft','maka\x20g:comp\x20todos/todos-item','features','/imports/ui/components','dDaKe','lib','(((.+)+)+)+$','search'];a52c=function(){return N;};return a52c();}const a52b=(function(){let a=!![];return function(b,c){const D=a52d;if(D(0x1dd)!==D(0x1dd))h['done']?i(j['value']):k(l[D(0x1b0)])[D(0x1de)](m,n);else{const e=a?function(){const E=D;if(E(0x1b5)==='VjhWy'){if(c){const f=c[E(0x1db)](b,arguments);return c=null,f;}}else return c['toString']()['search']('(((.+)+)+)+$')[E(0x1c2)]()[E(0x1a1)](d)[E(0x199)](E(0x198));}:function(){};return a=![],e;}};}()),a52a=a52b(this,function(){const F=a52d;return a52a[F(0x1c2)]()[F(0x199)](F(0x198))[F(0x1c2)]()[F(0x1a1)](a52a)[F(0x199)](F(0x198));});a52a();var __awaiter=this&&this[a52G(0x18d)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const K=a52d;function h(k){const H=a52d;try{j(d[H(0x19c)](k));}catch(l){H(0x1cd)!==H(0x1cb)?g(l):c(d);}}function i(k){const I=a52d;try{j(d[I(0x1d5)](k));}catch(l){g(l);}}function j(k){const J=a52d;J(0x196)===J(0x196)?k['done']?f(k['value']):e(k[J(0x1b0)])['then'](h,i):(k[J(0x1d0)]['js']===J(0x1c9)?this[J(0x1b1)][J(0x18c)]({'filePath':u,'content':J(0x1af)+v['className']+J(0x1e1)+w+J(0x1a8)}):this[J(0x1b1)][J(0x18c)]({'filePath':x,'content':J(0x1af)+y[J(0x1d6)]+'\x20}\x20from\x20\x27'+z+'.'+A[J(0x1d0)]['js']+'\x27;\x0a'}),this['fsi'][J(0x1b3)]({'filePath':s,'content':J(0x1ca)+t[J(0x1d6)]+'\x20};\x0a'}));}j((d=d[K(0x1db)](a,b||[]))[K(0x19c)]());});};import a52B from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a52d(a,b){const c=a52c();return a52d=function(d,e){d=d-0x185;let f=c[d];return f;},a52d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a52G(0x1ac)];Generator['create']({'name':'component','aliases':aliases,'usage':a52G(0x18b),'description':a52G(0x191),'examples':[a52G(0x193)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const L=a52d;try{if(L(0x18f)==='PitQa'){const c=this['fsi']['findAppDirectory'](),d=L(0x195),f=this[L(0x1b1)][L(0x186)]({'pathParts':[d,b[L(0x1ad)],paramCase(b['resourceName']),paramCase(b[L(0x1ae)])]}),g=yield this[L(0x1b1)][L(0x1cc)]();this[L(0x1b1)][L(0x1a2)](g,()=>__awaiter(this,void 0x0,void 0x0,function*(){const M=L;if(M(0x1cf)!==M(0x1cf)){const j=this['fsi'][M(0x186)]({'pathParts':[M(0x1b4),'startup',M(0x197),'templates.js']});c=this[M(0x1b1)]['rewriteDestinationPathForEngine']({'pathParts':[j],'config':d});}else{typeof g[M(0x1bb)]['test']==='string'&&(g[M(0x1bb)]['test']=g[M(0x1bb)][M(0x1ba)]===M(0x1b6)?!![]:![],this['config'][M(0x19b)](M(0x1ba),g[M(0x1bb)][M(0x1ba)]));if(typeof g[M(0x1bb)]['css']===M(0x1d9)){if(M(0x1dc)!==M(0x1dc)){const n=this[M(0x1b1)][M(0x186)]({'pathParts':['imports',M(0x1c4),M(0x1bd),M(0x1e2)]});c=this[M(0x1b1)][M(0x1c8)]({'pathParts':[n],'config':d});}else g[M(0x1bb)]['css']=g[M(0x1bb)][M(0x1aa)]===M(0x1b6)?!![]:![],this[M(0x1bf)][M(0x19b)](M(0x1aa),g[M(0x1bb)][M(0x1aa)]);}if(typeof g[M(0x1bb)]['js']==='string'){if(M(0x18e)!==M(0x1a0))g[M(0x1bb)]['js']=g[M(0x1bb)]['js']===M(0x1b6)?!![]:![],this[M(0x1bf)]['setTemplate']('js',g[M(0x1bb)]['js']);else try{i(j[M(0x19c)](k));}catch(o){m(o);}}!g[M(0x194)]&&('tzhvX'===M(0x19d)?c(d):g[M(0x194)]={});!b[M(0x1a3)]&&!this[M(0x1b1)][M(0x1b7)]('ramda')&&(Log[M(0x1d8)](M(0x1da)),yield this[M(0x1b1)][M(0x187)](M(0x18a),{'cwd':c}));if(!b[M(0x1a3)]&&!this[M(0x1b1)][M(0x1b7)]('react')){Log[M(0x1be)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}var h={'name':pascalCase(b[M(0x1ae)]),'myPath':a52B[M(0x19e)](this[M(0x1b1)][M(0x1b2)]({}),f),'cssCaseName':paramCase(b[M(0x1ae)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[M(0x1ae)]),'fileName':paramCase(b[M(0x1ae)]),'graphql':g['engines']['graphql'],'features':g[M(0x194)],'client':g[M(0x1d0)][M(0x1bd)],'api':g['engines'][M(0x1c0)],'ssr':g['engines']['ssr'],'test':g[M(0x1d0)][M(0x1ba)],'theme':g[M(0x1d0)][M(0x1ab)],'isLayout':![],'isComponent':!![]};this['fsi'][M(0x1bb)]({'srcPath':'component/component.js','destPath':f+M(0x188),'context':h,'framework':'react','config':g});g[M(0x1d0)][M(0x1ba)]!==M(0x1d7)&&this['fsi']['template']({'srcPath':M(0x190),'destPath':f+'.tests.js','context':h,'framework':M(0x1b9),'config':g});g['template']['css']&&(this['fsi']['template']({'srcPath':M(0x1d4),'destPath':f+'.css','context':Object[M(0x1c6)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[M(0x1b1)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[M(0x1d0)]['js'],'content':M(0x1a9)+h[M(0x1c7)]+'.'+g[M(0x1d0)]['css']+'\x27;'}));const j=b['dir']?'/'+b[M(0x1ad)]+'/':'/',k=''+d+j+h[M(0x1c5)]+'/'+h[M(0x1c5)];let l;if(g[M(0x1d0)][M(0x1df)]===M(0x1b6)){const p=this['fsi'][M(0x186)]({'pathParts':[M(0x1b4),M(0x1c4),M(0x197),'templates.js']});l=this['fsi'][M(0x1c8)]({'pathParts':[p],'config':g});}else{if('ypoQV'!==M(0x1c3)){const q=this[M(0x1b1)][M(0x186)]({'pathParts':[M(0x1b4),M(0x1c4),'client','templates.js']});l=this[M(0x1b1)][M(0x1c8)]({'pathParts':[q],'config':g});}else d(e[M(0x1d5)](f));}if(g[M(0x1d0)][M(0x1bd)]==='react'||g[M(0x1d0)][M(0x1bd)]===M(0x1ce)){if(g[M(0x1d0)]['js']===M(0x1c9))M(0x189)!==M(0x189)?(d[M(0x1bb)]['js']=e['template']['js']===M(0x1b6)?!![]:![],this[M(0x1bf)][M(0x19b)]('js',f['template']['js'])):this[M(0x1b1)][M(0x18c)]({'filePath':l,'content':M(0x1af)+h[M(0x1d6)]+M(0x1e1)+k+M(0x1a8)});else{if('TzESl'==='xawqI')return f instanceof g?h:new i(function(u){u(k);});else this[M(0x1b1)][M(0x18c)]({'filePath':l,'content':'import\x20{\x20'+h['className']+'\x20}\x20from\x20\x27'+k+'.'+g[M(0x1d0)]['js']+M(0x1a8)});}this[M(0x1b1)][M(0x1b3)]({'filePath':l,'content':M(0x1ca)+h[M(0x1d6)]+M(0x1a6)});}else M(0x1a4)==='KAJbc'?this[M(0x1b1)][M(0x1bb)]({'srcPath':'test/test.js','destPath':d+M(0x1d3),'context':e,'framework':M(0x1b9),'config':f}):this[M(0x1b1)][M(0x1b3)]({'filePath':l,'content':M(0x1d1)+k+'.'+g[M(0x1d0)]['js']+'\x27;\x0a'});}}));}else{b[L(0x1be)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}}catch(i){if(L(0x192)!=='vUuwV')Log[L(0x1be)](i);else{const k=g?function(){if(k){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],k;}}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a53x=a53d;(function(a,b){const u=a53d,c=a();while(!![]){try{const d=-parseInt(u(0xfc))/0x1*(parseInt(u(0xfa))/0x2)+-parseInt(u(0xd8))/0x3*(parseInt(u(0xe2))/0x4)+-parseInt(u(0xdc))/0x5+parseInt(u(0xe4))/0x6+-parseInt(u(0xf6))/0x7*(parseInt(u(0xe8))/0x8)+parseInt(u(0xe1))/0x9*(parseInt(u(0xe5))/0xa)+-parseInt(u(0xce))/0xb*(-parseInt(u(0xfd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0x3de3a));const a53b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a53d;if(c){const e=c[v(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a53a=a53b(this,function(){const w=a53d;return a53a[w(0xe3)]()['search'](w(0xf2))[w(0xe3)]()[w(0xd1)](a53a)[w(0xde)](w(0xf2));});function a53c(){const A=['dev','Ofyit','479835FqTEhr','56DaODtq','toString','1040412fSPqiz','40HMvnzM','isDocker','resourceName','608gPzwVF','fsi','config/ssh.json','apply','dcviG','config/settings.json','config','qOjEL','prod','create','(((.+)+)+)+$','YBvsI','docker-compose.yaml','ssh.json','17213CQnppJ','template','withValue','maka\x20g:config\x20production','26qhGIWJ','process.env','18133JPMAYd','12337008vxRAFd','Trcnx','11sIiVll','config/process.env','pm2.config.js','constructor','ubuntu','Generate\x20configuration\x20settings.','settings.json','appName','QHgNv','config/docker-compose.yaml','54498pebqfO','getProjectConfig','pathFromProject','FfKKz','2421555omzZCv','production','search'];a53c=function(){return A;};return a53c();}a53a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';function a53d(a,b){const c=a53c();return a53d=function(d,e){d=d-0xcd;let f=c[d];return f;},a53d(a,b);}Generator[a53x(0xf1)]({'name':'config','usage':'maka\x20{generate,\x20g}:{config}\x20<name>','description':a53x(0xd3),'examples':[a53x(0xf9)]},function(a,b){const y=a53x,c=this[y(0xe9)][y(0xd9)]();this[y(0xe9)][y(0xf8)](c,()=>{const z=y;if(z(0xf3)===z(0xcd))return c['toString']()[z(0xde)](z(0xf2))[z(0xe3)]()[z(0xd1)](d)[z(0xde)](z(0xf2));else{const f={'app':c[z(0xd5)],'appFileCase':paramCase(c[z(0xd5)]),'name':pascalCase(b[z(0xe7)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[z(0xe7)]),'userName':z(0xd2),'isDocker':b[z(0xe6)]};var d=a[0x0];if(d===z(0xdf))d='development';else{if(d===z(0xf0)){if(z(0xef)!=='qOjEL'){const k=d[z(0xeb)](e,arguments);return f=null,k;}else d=z(0xdd);}}const g=this[z(0xe9)][z(0xda)]({'pathParts':[z(0xee),d,z(0xf5)]});if(!b[z(0xe6)]){if(z(0xec)===z(0xdb)){const l=this[z(0xe9)][z(0xda)]({'pathParts':[z(0xee),d,z(0xf4)]});this[z(0xe9)]['template']({'srcPath':z(0xd7),'destPath':l,'context':e,'config':f});}else this['fsi']['template']({'srcPath':z(0xea),'destPath':g,'context':f,'config':c});}const h=this[z(0xe9)][z(0xda)]({'pathParts':['config',d,z(0xd0)]});this[z(0xe9)][z(0xf7)]({'srcPath':'config/pm2.config.js','destPath':h,'context':f,'config':c});const i=this[z(0xe9)][z(0xda)]({'pathParts':['config',d,z(0xd4)]});this[z(0xe9)][z(0xf7)]({'srcPath':z(0xed),'destPath':i,'context':f,'config':c});if(!b['isDocker']){if('Rntfs'!==z(0xe0)){const l=this[z(0xe9)][z(0xda)]({'pathParts':['config',d,z(0xfb)]});this['fsi'][z(0xf7)]({'srcPath':'config/process.env','destPath':l,'context':f,'config':c});}else{const n=this[z(0xe9)]['pathFromProject']({'pathParts':[z(0xee),d,z(0xfb)]});this[z(0xe9)][z(0xf7)]({'srcPath':z(0xcf),'destPath':n,'context':e,'config':f});}}if(b['isDocker']){if(z(0xd6)!==z(0xd6))this[z(0xe9)]['template']({'srcPath':'config/ssh.json','destPath':d,'context':e,'config':f});else{const o=this[z(0xe9)][z(0xda)]({'pathParts':[z(0xee),d,z(0xf4)]});this[z(0xe9)][z(0xf7)]({'srcPath':z(0xd7),'destPath':o,'context':f,'config':c});}}}});});
|
package/dist/generators/dbc.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a54y=a54d;(function(a,b){const v=a54d,c=a();while(!![]){try{const d=parseInt(v(0xc2))/0x1*(-parseInt(v(0xe1))/0x2)+-parseInt(v(0xbc))/0x3*(-parseInt(v(0x102))/0x4)+parseInt(v(0xcf))/0x5+-parseInt(v(0xc8))/0x6*(parseInt(v(0xd1))/0x7)+-parseInt(v(0xfb))/0x8*(-parseInt(v(0xed))/0x9)+-parseInt(v(0xe8))/0xa+-parseInt(v(0xbf))/0xb*(-parseInt(v(0xe0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x89652));const a54b=(function(){let a=!![];return function(b,c){if('eBZuL'!=='mNFur'){const d=a?function(){const w=a54d;if(c){const e=c[w(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else c(d);};}()),a54a=a54b(this,function(){const x=a54d;return a54a[x(0x105)]()[x(0xdf)](x(0xd9))['toString']()[x(0xfd)](a54a)[x(0xdf)](x(0xd9));});a54a();function a54c(){const I=['checkNpmPackage','pathFromApp','then','imports','2702260MKPwxW','create','qmiBr','done','value','182241LpPsCj','MS\x20SQL','dbc/register-dbc.js','dbc','template','kDszw','warn','indexOf','__awaiter','next','server','error','dir','dbc/config.js','272RNdMWa','import\x20\x27./register-','constructor','FRoTn','installNpmPackage','pgsql','dbc/conn.js','112WKfaZD','withValue','TsyRV','toString','mssql','120387GKDrpq','better-sqlite3','type','10078024rLGYRY','getProjectConfig','resourceName','2sYDbLk','(blank)','NMqYg','register-','dbAnswer','fsi','1445178pGgKtA','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','GqnBP','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','sqlite','DB\x20Driver','IDvYJ','848970gAfeSD','maka\x20g:dbc\x20geoserver\x20--type=pgsql','28fffSRO','apply','throw','RheZF','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>\x20--type=\x20pgsql\x20|\x20mssql\x20|\x20sqlite','jsChB','startup','Invalid\x20type\x20','(((.+)+)+)+$','config.','wLcCq','conn.','index.','engines','search','12amykQz','1101608mrSfIF',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','-dbc.'];a54c=function(){return I;};return a54c();}function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0xbb;let f=c[d];return f;},a54d(a,b);}var __awaiter=this&&this[a54y(0xf5)]||function(a,b,c,d){function e(f){const z=a54d;if('hKsZH'===z(0xca)){let h=d[z(0xbe)]?e[z(0xbe)]:z(0xc3);f[z(0xf8)](z(0xd8)+h+z(0xe2));return;}else return f instanceof c?f:new c(function(h){const A=z;A(0xfe)!=='jdESN'?h(f):d(e['next'](f));});}return new(c||(c=Promise))(function(f,g){const E=a54d;function h(k){const B=a54d;if('wLcCq'===B(0xdb))try{B(0xc4)===B(0xc4)?j(d['next'](k)):h[B(0xeb)]?i(j['value']):k(l[B(0xec)])[B(0xe6)](m,n);}catch(m){if(B(0xd6)!=='qQxZh')g(m);else try{i(j[B(0xf6)](k));}catch(o){m(o);}}else d(e[B(0xd3)](f));}function i(k){const C=a54d;try{j(d['throw'](k));}catch(l){C(0x104)!==C(0xea)?g(l):c(d);}}function j(k){const D=a54d;D(0xce)==='OFPVu'?c(d):k[D(0xeb)]?f(k[D(0xec)]):e(k[D(0xec)])['then'](h,i);}j((d=d[E(0xd2)](a,b||[]))[E(0xf6)]());});};import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a54y(0xe9)]({'name':a54y(0xf0),'usage':a54y(0xd5),'description':'Generate\x20scaffolding\x20for\x20a\x20database\x20connection.','examples':[a54y(0xd0)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a54d;try{if('gIlsu'===F(0xd4))return c['toString']()[F(0xdf)]('(((.+)+)+)+$')[F(0x105)]()[F(0xfd)](d)[F(0xdf)](F(0xd9));else{const d=yield this[F(0xc7)][F(0xc0)](),f=this[F(0xc7)][F(0xe5)]({}),g=paramCase(b[F(0xc1)]);if(!b[F(0xbe)]){const i={'type':'list','name':F(0xc6),'message':F(0xcd),'choices':[{'name':'PostgreSQL','value':'pgsql'},{'name':F(0xee),'value':F(0xbb)}]},{dbAnswer:j}=yield Actions['options'](i);j&&(b[F(0xbe)]=j);}const h={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[F(0xc1)]),'camelCase':camelCase(b[F(0xc1)]),'type':b[F(0xbe)],'engine':d[F(0xde)]['js'],'noRename':!![]};this[F(0xc7)][F(0x103)](d,()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=F;let k='js';d[G(0xde)]['js']==='tsx'&&(k='ts');const l=[G(0xbb),G(0x100)];if(l[G(0xf4)](h[G(0xbe)])<0x0){let n=h[G(0xbe)]?h[G(0xbe)]:G(0xc3);Log[G(0xf8)](G(0xd8)+n+G(0xe2));return;}b['type']===G(0x100)&&!this['fsi']['checkNpmPackage']('pg')&&(Log[G(0xf3)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),yield this[G(0xc7)]['installNpmPackage']('pg',{'cwd':f}));if(b[G(0xbe)]==='mssql'&&!this[G(0xc7)][G(0xe4)]('mssql')){if(G(0xf2)==='kDszw')Log[G(0xf3)](G(0xc9)),yield this[G(0xc7)][G(0xff)]('mssql',{'cwd':f});else{const p=g?function(){const H=G;if(p){const u=q[H(0xd2)](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}b[G(0xbe)]===G(0xcc)&&!this[G(0xc7)][G(0xe4)](G(0xbd))&&(Log['warn'](G(0xcb)),yield this[G(0xc7)][G(0xff)]('better-sqlite3',{'cwd':f}));this[G(0xc7)][G(0xf1)]({'srcPath':G(0xfa),'destPath':this[G(0xc7)][G(0xe5)]({'pathParts':[G(0xe7),G(0xd7),'server',G(0xf0),b[G(0xf9)],g,G(0xda)+k]}),'context':h,'config':d}),this['fsi'][G(0xf1)]({'srcPath':G(0x101),'destPath':this['fsi'][G(0xe5)]({'pathParts':['imports',G(0xd7),G(0xf7),G(0xf0),b[G(0xf9)],g,G(0xdc)+k]}),'context':h,'config':d}),this[G(0xc7)][G(0xf1)]({'srcPath':G(0xef),'destPath':this[G(0xc7)][G(0xe5)]({'pathParts':[G(0xe7),'startup',G(0xf7),G(0xc5)+g+G(0xe3)+k]}),'context':h,'config':d});const m=this['fsi']['pathFromApp']({'pathParts':[G(0xe7),'startup',G(0xf7),G(0xdd)+d[G(0xde)]['js']]});this[G(0xc7)]['injectAtEndOfFile']({'filePath':m,'content':G(0xfc)+g+'-dbc\x27;'});}));}}catch(k){if('pmJxr'==='eEIxB'){if(k){const m=i[F(0xd2)](j,arguments);return k=null,m;}}else Log[F(0xf8)](k);}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a55z=a55d;function a55c(){const H=['100953wYYwHX','getProjectConfig','constructor','docker/Dockerfile','withValue','toString','2nRWMua','maka\x20{generate,\x20g}:dockerfile','value','7kCEAww','TWceS','Generate\x20an\x20updated\x20dockerfile','then','search','5909766OTDSub','getGlobalConfig','apply','error','VQEXY','jVvSY','cert','12685740BELeJl','oJAOC','5449280AlvPam','fsi','dockerfile','done','(((.+)+)+)+$','Zczah','__awaiter','Dockerfile','atkkH','next','create','throw','maka\x20g:dockerfile','9QFlxwB','template','5722519ZQQVec','20HrRSeU','uWjno','441102UwEloW','join','92DQkZAv','IPeXV','findProjectDirectory','2752816CXGSfu'];a55c=function(){return H;};return a55c();}(function(a,b){const w=a55d,c=a();while(!![]){try{const d=-parseInt(w(0x9a))/0x1*(parseInt(w(0x8e))/0x2)+-parseInt(w(0x94))/0x3*(parseInt(w(0x90))/0x4)+parseInt(w(0xab))/0x5+parseInt(w(0xa2))/0x6*(-parseInt(w(0x9d))/0x7)+parseInt(w(0x93))/0x8*(-parseInt(w(0x89))/0x9)+parseInt(w(0x8c))/0xa*(parseInt(w(0x8b))/0xb)+parseInt(w(0xa9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x9d0f9));function a55d(a,b){const c=a55c();return a55d=function(d,e){d=d-0x84;let f=c[d];return f;},a55d(a,b);}const a55b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a55d;if(x(0x9e)===x(0x9e)){if(c){const e=c[x(0xa4)](b,arguments);return c=null,e;}}else h['done']?i(j['value']):k(l[x(0x9c)])[x(0xa0)](m,n);}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){const y=a55d;return a55a[y(0x99)]()['search']('(((.+)+)+)+$')[y(0x99)]()[y(0x96)](a55a)[y(0xa1)](y(0xaf));});a55a();var __awaiter=this&&this[a55z(0xb1)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a55d;A(0x8d)===A(0xaa)?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){const E=a55d;function h(k){const B=a55d;try{B(0x84)===B(0xa7)?d(e[B(0x87)](f)):j(d[B(0x85)](k));}catch(m){g(m);}}function i(k){const C=a55d;if(C(0xb0)!=='Zczah'){const m=d['apply'](e,arguments);return f=null,m;}else try{C(0x91)!==C(0x91)?c(d):j(d['throw'](k));}catch(n){if(C(0xa6)!=='VQEXY')try{i(j[C(0x85)](k));}catch(p){m(p);}else g(n);}}function j(k){const D=a55d;k[D(0xae)]?f(k[D(0x9c)]):e(k['value'])['then'](h,i);}j((d=d[E(0xa4)](a,b||[]))['next']());});};import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a55v from'path';Generator[a55z(0x86)]({'name':a55z(0xad),'usage':a55z(0x9b),'description':a55z(0x9f),'noResource':!![],'examples':[a55z(0x88)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a55d;try{const c=yield this[F(0xac)][F(0x95)](),d=yield this[F(0xac)][F(0xa3)](),f=this[F(0xac)][F(0x92)]();this[F(0xac)][F(0x98)](c,()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=F;let g={'app':d['appName'],'config':c,'appPath':a55v['join'](f,'app'),'bundlePath':a55v['join'](f,'build','app.tar.gz'),'useCert':this['fsi']['isFile'](d[G(0xa8)])};this[G(0xac)][G(0x8a)]({'srcPath':G(0x97),'destPath':a55v[G(0x8f)](f,G(0xb2)),'framework':'service','context':g,'config':c});}));}catch(g){Log[F(0xa5)](g);}});});
|