@maka/maka-cli 4.13.2 → 4.13.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/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/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a96c(){const k=['search','apply','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','3515UVWrGa','toString','set','1480RfBvdc','2514456hNaUwH','184rZZEvK','5093EmbACb','(((.+)+)+)+$','findSubCommand','constructor','5024187rxLBvk','8NUGodi','create','3064RhcjTm','3579072RjOxTi','runSubCommand','42310hYckuv','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','6743310hHKYJZ'];a96c=function(){return k;};return a96c();}const a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x1b3))/0x1*(parseInt(f(0x1bb))/0x2)+-parseInt(f(0x1b2))/0x3+-parseInt(f(0x1b1))/0x4*(-parseInt(f(0x1c4))/0x5)+-parseInt(f(0x1c0))/0x6+-parseInt(f(0x1bc))/0x7+-parseInt(f(0x1b9))/0x8*(-parseInt(f(0x1b8))/0x9)+-parseInt(f(0x1be))/0xa*(-parseInt(f(0x1b4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x8f085));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1af;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a[h(0x1af)]()[h(0x1c1)](h(0x1b5))[h(0x1af)]()[h(0x1b7)](a96a)['search'](h(0x1b5));});a96a();import{Command}from'../../command.js';const SetCommand=Command[a96i(0x1ba)]({'name':a96i(0x1b0),'usage':'maka\x20set:<sub-command>','shortDesc':a96i(0x1c3),'description':a96i(0x1bf),'validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0x1b6)](c);d&&this[j(0x1bd)](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97n=a97d;
|
|
1
|
+
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0xdd))/0x1*(parseInt(k(0xd1))/0x2)+parseInt(k(0xe5))/0x3+parseInt(k(0xd4))/0x4+-parseInt(k(0xda))/0x5+parseInt(k(0xef))/0x6*(-parseInt(k(0xe6))/0x7)+parseInt(k(0xd5))/0x8+parseInt(k(0xd2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x1c3a3));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xd1;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a['toString']()[m(0xdf)]('(((.+)+)+)+$')[m(0xd7)]()[m(0xd3)](a97a)[m(0xdf)](m(0xea));});a97a();import a97e from'fs';import a97f from'path';function a97c(){const p=['verbose','parse','18kxSOSU','maka\x20ssh\x20--env\x20dev','sshSync','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','4qIIRaq','1275813INBrGZ','constructor','445988vcGdOv','804712AyfAyR','getEnvFromShorthand','toString','maka\x20ssh\x20--env\x20prod','assign','695815Dajncv','getAppConfigPath','maka\x20ssh\x20<command>','32607RUXfVz','ssh','search','maka\x20ssh\x20--env\x20staging','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','join','env','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','174237WlCkZv','214494ZEhpPQ','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','create','fsi','(((.+)+)+)+$','apply','ssh.json'];a97c=function(){return p;};return a97c();}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a97n(0xe8)]({'name':a97n(0xde),'usage':a97n(0xdc),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a97n(0xe3),'verbose'],'shortDesc':a97n(0xf2),'examples':[a97n(0xf0),a97n(0xe0),a97n(0xd8),a97n(0xe7),a97n(0xe4),a97n(0xe1)]},async function(a,b){const o=a97n;try{const c=this[o(0xe9)][o(0xd6)](b[o(0xe3)]),d=this['fsi'][o(0xdb)](c);let f='';a['length']>0x0&&(f=a[0x0]);const g=a97f[o(0xe2)](c,o(0xec)),h=a97e['readFileSync'](g)[o(0xd7)](),i=JSON[o(0xee)](h);Object[o(0xd9)](i,{'env':d}),SSH[o(0xf1)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0xed)]});}catch(j){Log['error'](j),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98z=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d
|
|
1
|
+
const a98z=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=parseInt(w(0x8c))/0x1+-parseInt(w(0x8e))/0x2*(parseInt(w(0xad))/0x3)+-parseInt(w(0x75))/0x4*(parseInt(w(0x76))/0x5)+parseInt(w(0xa8))/0x6*(-parseInt(w(0x9d))/0x7)+-parseInt(w(0x81))/0x8+-parseInt(w(0xaa))/0x9+parseInt(w(0x9b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x6c990));function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x74;let f=c[d];return f;},a98d(a,b);}const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a98d;if(c){const e=c[x(0x78)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const y=a98d;return a98a[y(0x99)]()[y(0x74)](y(0x94))[y(0x99)]()[y(0x85)](a98a)[y(0x74)]('(((.+)+)+)+$');});a98a();import a98e from'fs';import a98f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':'ssl','usage':'maka\x20ssl\x20[command]','validOpts':[a98z(0x92),a98z(0x97)],'requiredOpts':[a98z(0x8d)],'shortDesc':a98z(0x9a),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98z(0xb1),a98z(0x82),a98z(0x87)]},async function(a,b){const A=a98z,c=this['fsi'][A(0xa2)](),d=this[A(0xa0)][A(0x9e)](b[A(0x8d)]),f=this[A(0xa0)][A(0x7b)](d),g=this[A(0xa0)][A(0x86)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x7e))SSL[A(0x83)]({'keyName':c[A(0xab)]+A(0xb5),'csrName':c[A(0xab)]+'.csr','cwd':g});else{if(h===A(0xac)){if(!a98e['existsSync'](a98f[A(0xb4)](g,c[A(0xab)]+A(0xb5))))throw A(0xa3)+a98f[A(0xb4)](g,c['appName']+'.key');if(!a98e[A(0xae)](a98f['join'](g,c[A(0xab)]+A(0xa6))))throw'The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20'+a98f[A(0xb4)](g,c[A(0xab)]+'.csr');SSL[A(0x9f)]({'keyName':c[A(0xab)]+A(0xb5),'crtName':c[A(0xab)]+A(0xa5),'cwd':g}),Log['notice'](A(0x90)+g);}else{if(h===A(0x98)){let i=b[A(0x92)],j=b[A(0x97)];try{const q=a98e[A(0x8b)](a98f['join'](f,A(0xb3)))[A(0x99)](),r=JSON[A(0x95)](q);i=b[A(0x92)]?b[A(0x92)]:r['domainNames'],j=b[A(0x97)]?b[A(0x97)]:r[A(0xaf)],(!b['email']||!b[A(0x92)])&&Log[A(0x91)](A(0x84));}catch(s){}const k=JSON['parse'](a98e['readFileSync'](f+A(0x80))[A(0x99)]());Object[A(0x89)](k,{'env':f}),Log[A(0x91)](A(0x79));try{const t=SSH['ping'](A(0xa4),k);if(!t)throw A(0x7f);if(t)Log[A(0x88)](A(0xb2));}catch(u){Log['error'](u);return;}const l=Log['withSpinner']();l[A(0x8a)](A(0xa7)),SSH[A(0x96)](A(0xb0),{...k}),SSH[A(0x96)](A(0x7a),{...k}),SSH[A(0x96)](A(0xa1),{...k}),l[A(0x88)]();const m=i?i:await Actions[A(0x77)](A(0x93)),n=j?j:await Actions['ask'](A(0xb6));SSH[A(0x96)](A(0x9c)+m+'\x20--email\x20'+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x7c)](o,null,0x2);a98e[A(0xa9)](a98f[A(0xb4)](f,A(0xb3)),p);}else throw A(0x7d);}}}catch(v){console['error'](v),process[A(0x8f)](0x0);}});function a98c(){const B=['emailUpdate','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','maka\x20ssl\x20--env\x20dev\x20generate-csr','Remote\x20host\x20connection\x20successful','letsencrypt.json','join','.key','Email\x20to\x20use\x20for\x20auto-updates:\x20','search','8tdeIQU','1865190vPZaxN','ask','apply','Checking\x20remote\x20host\x20availability','sudo\x20snap\x20install\x20--classic\x20certbot','getAppConfigPath','stringify','Please\x20provide\x20a\x20command.','generate-csr','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','/ssh.json','4439376xfdQLy','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','genCSR','Using\x20saved\x20letsencrypt\x20config','constructor','mkKeysDir','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','success','assign','start','readFileSync','224361ktSpAx','env','6BblLuc','exit','New\x20CSR\x20written\x20to\x20','notice','domains','[?]\x20Domains\x20to\x20register:\x20','(((.+)+)+)+$','parse','ssh','email','letsencrypt','toString','Create\x20and\x20manage\x20your\x20SSL\x20operations.','37504900YEndkD','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','2317GnXTPE','getEnvFromShorthand','genSSC','fsi','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','getMakaProjectConfig','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','uname\x20-a','.crt','.csr','Verifying\x20Letsencrypt\x20configuration','13506WLuXbt','writeFileSync','6155811VVOLAR','appName','generate-ssc','799977EsFrzu','existsSync'];a98c=function(){return B;};return a98c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99r=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(0x1b3))/0x1+parseInt(n(0x1b6))/0x2*(parseInt(n(0x1e5))/0x3)+parseInt(n(0x1a9))/0x4*(parseInt(n(0x1b4))/0x5)+parseInt(n(0x1d4))/0x6+parseInt(n(0x1af))/0x7*(-parseInt(n(0x1a6))/0x8)+-parseInt(n(0x1e0))/0x9*(parseInt(n(0x1a4))/0xa)+-parseInt(n(0x1ca))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x7016e));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x1de)]()[p(0x1bf)](p(0x1cf))[p(0x1de)]()[p(0x1a8)](a99a)[p(0x1bf)](p(0x1cf));});a99a();import a99e from'fs';import a99f from'path';function a99c(){const u=['isFile','openSync','sanjo:jasmine','forEach','driver','filter','test-packages','driverPackage','search','findProjectDirectory','--driver','none','fsi','packages','utf8','warn','argv','tests','mocha','2505613StyUMI','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','create','Meteor\x20Settings:\x20','--packages','(((.+)+)+)+$','parse','slice','--full-app','rawLogs','2092500zYKFKu','readFileSync','exit','once','error','join','Cannot\x20find\x20Node\x20Environment\x20File:\x20','--env','engines','invokeMeteorCommand','toString','test','135mINFri','getEnvFromShorthand','splice','Node\x20Env\x20Config:\x20','env','231hSWaQC','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','config','87680KudczF','driver-package','1790056XugRBu','notice','constructor','49836QRBAKz','config.json','concat','testAppPath','--driver-package','unit','14QCdAYU','jasmine','apply','local','23341HmGYxv','215TwxdDn','process.env','10514gJvUVI'];a99c=function(){return u;};return a99c();}function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a99d(a,b);}import a99g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const q=a99d;a99e[q(0x1b8)](a,'r'),a99g[q(0x1a3)]({'path':a});};Command[a99r(0x1cc)]({'name':a99r(0x1df),'mustBeInMakaProject':!![],'validOpts':[a99r(0x1d7),'packages',a99r(0x1bb),a99r(0x1be),a99r(0x1ae),a99r(0x1e4),a99r(0x1d3),'port','inspect',a99r(0x1ac)],'usage':'maka\x20test','aliases':['t',a99r(0x1c8)],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const s=a99r;try{const c=b['env']?this[s(0x1c3)][s(0x1e1)](b[s(0x1e4)]):s(0x1b2),d=this[s(0x1c3)]['getAppConfigPath'](c);(!b['unit']||!!b[s(0x1d7)])&&(a=a[s(0x1ab)]([s(0x1d2)]));b[s(0x1ae)]&&delete b[s(0x1ae)];let f=b[s(0x1a5)]||b[s(0x1bb)]||s(0x1c2);if(f===s(0x1c2)){const k=JSON[s(0x1d0)](a99e[s(0x1d5)](a99f[s(0x1d9)](this[s(0x1c3)][s(0x1c0)](),'.maka',s(0x1aa)),s(0x1c5)));if(k[s(0x1dc)]['test']===s(0x1b0))f=s(0x1b9);else k[s(0x1dc)][s(0x1df)]===s(0x1c9)&&(f='meteortesting:mocha');}if(f===s(0x1c2))throw s(0x1e6);(!b[s(0x1a5)]||!b[s(0x1bb)])&&(a=a[s(0x1ab)]([s(0x1ad),f]));const g=a99f[s(0x1d9)](d,'settings.json');this['fsi'][s(0x1b7)](g)?(Log[s(0x1a7)](s(0x1cd)+g),a=a[s(0x1ab)](['--settings',g])):Log['warn'](s(0x1cb)+g);const h=a99f[s(0x1d9)](d,s(0x1b5));this['fsi'][s(0x1b7)](d)?(Log[s(0x1a7)](s(0x1e3)+h),syncSource(h)):Log[s(0x1c6)](s(0x1da)+h);const i=process[s(0x1c7)][s(0x1d1)](0x2)[s(0x1bc)](l=>l!==s(0x1db))[s(0x1bc)](l=>l!==s(0x1df))[s(0x1bc)](l=>l!==a[0x0]);i[s(0x1ba)]((l,m)=>{const t=s;(l==='--env'||l===t(0x1c1))&&i['splice'](m,0x2),l===t(0x1ce)&&i[t(0x1e2)](m,0x1);});const j=b[s(0x1c4)]?s(0x1bd):s(0x1df);this[s(0x1c3)][s(0x1dd)](j,a['concat'](i));}catch(l){console[s(0x1d8)](l),process[s(0x1d6)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d
|
|
1
|
+
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=parseInt(f(0x1e7))/0x1*(parseInt(f(0x1e6))/0x2)+-parseInt(f(0x1e1))/0x3+parseInt(f(0x1dd))/0x4+parseInt(f(0x1e5))/0x5*(-parseInt(f(0x1e4))/0x6)+parseInt(f(0x1ed))/0x7*(-parseInt(f(0x1e8))/0x8)+-parseInt(f(0x1de))/0x9+parseInt(f(0x1e0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xef172));function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x1dd;var f=c[d];return f;},a100d(a,b);}var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0x1eb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a[h(0x1ec)]()['search']('(((.+)+)+)+$')[h(0x1ec)]()[h(0x1e9)](a100a)[h(0x1e2)](h(0x1e3));});a100a();import{Command}from'../command.js';function a100c(){var j=['54GaLuEL','192655ELZzcb','68258QwRSOt','29ODvRuC','4085936HfwDCs','constructor','undo','apply','toString','21XHVxpF','2170616ZgtgJU','2587752nMxpVQ','create','22923120PwqoDW','2036580cVQXHJ','search','(((.+)+)+)+$'];a100c=function(){return j;};return a100c();}import a100e from'../generators/maka.gen.js';Command[a100i(0x1df)]({'name':a100i(0x1ea),'aliases':['u'],'validOpts':[],'shortDesc':'Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action'},async function(){a100e['undo']();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101m=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x192))/0x1*(parseInt(k(0x1a2))/0x2)+-parseInt(k(0x1b5))/0x3+-parseInt(k(0x1b3))/0x4+-parseInt(k(0x19b))/0x5*(parseInt(k(0x196))/0x6)+parseInt(k(0x1ac))/0x7+parseInt(k(0x1a5))/0x8*(-parseInt(k(0x1a9))/0x9)+parseInt(k(0x1a3))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x1df5f));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const l=a101d;return a101a[l(0x19c)]()[l(0x1aa)](l(0x1ab))[l(0x19c)]()['constructor'](a101a)[l(0x1aa)]('(((.+)+)+)+$');});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x191;let f=c[d];return f;},a101d(a,b);}a101a();import{execSync}from'child_process';import a101e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a101m(0x1a0)};Command[a101m(0x1af)]({'name':a101m(0x1b4),'aliases':['v'],'usage':a101m(0x1a7),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a101m(0x1b2),a101m(0x1a7),a101m(0x199)],'description':a101m(0x1ba)},async function(a,b){const n=a101m;try{const c=this[n(0x1a4)][n(0x1b8)]();Log['majestic'](n(0x198)+pjson[n(0x1b4)]),await this[n(0x1a4)][n(0x1ae)]();if(b[n(0x197)]){await this['fsi'][n(0x1ae)](),Log['bright'](n(0x19a));const d=this[n(0x1a4)][n(0x1bb)]();Log['bright']((n(0x191)+d)[n(0x193)]('\x0a',''));const f=execSync(c+n(0x1bc))['toString']()[n(0x193)](/\r?\n|\r/,'')['replace']('v','');Log[n(0x1b7)]('System\x27s\x20Meteor\x27s\x20Node\x20Version\x20'+f);const g=execSync('node\x20-v')[n(0x19c)]()[n(0x193)](/\r?\n|\r/,'')[n(0x193)]('v','');a101e['gt'](f,g)?(Log[n(0x1ad)]('System\x27s\x20Node\x20Version\x20'+g),Log[n(0x1ad)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+g+n(0x195)+f+')')):Log[n(0x1b7)]('System\x27s\x20Node\x20Version\x20'+g);if(this['fsi'][n(0x1a6)]()){Log[n(0x1b7)](n(0x1b6));const h=this[n(0x1a4)]['getProjectMeteorVersion']();if(!a101e[n(0x1b9)](h))Log[n(0x1ad)](n(0x19d)+h[n(0x193)]('\x0a',''));else a101e['gt'](d,h)?(Log[n(0x1ad)](n(0x19d)+h[n(0x193)]('\x0a','')),Log[n(0x1ad)](n(0x1a8)+d+'\x22')):Log[n(0x1a1)]((n(0x19d)+h)[n(0x193)]('\x0a',''));const i=await this[n(0x1a4)][n(0x1b0)]();i===n(0x1b1)?(Log[n(0x1ad)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[n(0x1ad)](n(0x19e))):Log[n(0x1b7)](n(0x194)+i),Log[n(0x1b7)]('\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');}}}catch(j){console['error'](j),process[n(0x19f)](0x0);}});function a101c(){const o=['warn','compareMakaToLatest','create','getProjectsMeteorNodeVersion','N/A','maka\x20v','415732xlGotm','version','437874mPrpgO','----------------------Project----------------------------','bright','getMeteorExePath','valid','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','getGlobalMeteorVersion','\x20node\x20-v','System\x27s\x20Meteor\x20Version\x20','1YtKsSN','replace','Project\x27s\x20Meteor\x20Node\x20Version\x20',')\x20to\x20at\x20least\x20meteor\x27s\x20(','6SzvtyP','verbose','Maka\x20','maka\x20version\x20--verbose','----------------------System----------------------------','788505iHtfTR','toString','Project\x27s\x20Meteor\x20Version\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','exit','4.13.3','notice','228086huGxKQ','4518040nDAgOX','fsi','1592fvZOgF','isMakaProject','maka\x20version','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','2673ICxLjL','search','(((.+)+)+)+$','164969NFXALT'];a101c=function(){return o;};return a101c();}
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=parseInt(f(0x17d))/0x1*(parseInt(f(0x187))/0x2)+parseInt(f(0x17e))/0x3*(-parseInt(f(0x184))/0x4)+-parseInt(f(0x185))/0x5+-parseInt(f(0x188))/0x6+-parseInt(f(0x186))/0x7*(parseInt(f(0x17b))/0x8)+-parseInt(f(0x17c))/0x9+parseInt(f(0x17f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x7f260));function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x17b;var f=c[d];return f;},a102d(a,b);}var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0x180)]()[h(0x181)]('(((.+)+)+)+$')['toString']()[h(0x183)](a102a)[h(0x181)]('(((.+)+)+)+$');});a102a();function a102c(){var i=['210694vTgkPA','1676490hWciSR','32098060nZMuBi','toString','search','apply','constructor','4GGARWV','1850490LWEqlA','7SLeuwV','2ePIcPC','4506762LDzhSq','4889416pwJOdl','5476212VKOPNP'];a102c=function(){return i;};return a102c();}export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0xaa;var f=c[d];return f;},a103d(a,b);}function a103c(){var j=['2131024TBVQxy','3214755YLJTSn','664KGlDuB','3597708EFNpHt','apply','(((.+)+)+)+$','4122715GGfGzS','NODE_OPTIONS','7100368lIFGVF','toString','3365DGoUIW','7jZRLpp','search','1473324POhAnT','env'];a103c=function(){return j;};return a103c();}var a103i=a103d;(function(a,b){var f=a103d,c=a();while(!![]){try{var d=-parseInt(f(0xb7))/0x1*(parseInt(f(0xaf))/0x2)+parseInt(f(0xb0))/0x3+parseInt(f(0xad))/0x4+parseInt(f(0xb3))/0x5+parseInt(f(0xab))/0x6*(-parseInt(f(0xb8))/0x7)+-parseInt(f(0xb5))/0x8+parseInt(f(0xae))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xa1f9a));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a[h(0xb6)]()[h(0xaa)](h(0xb2))[h(0xb6)]()['constructor'](a103a)[h(0xaa)](h(0xb2));});a103a(),process[a103i(0xac)][a103i(0xb4)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0x21f))/0x1*(parseInt(r(0x236))/0x2)+parseInt(r(0x207))/0x3+-parseInt(r(0x1c4))/0x4*(parseInt(r(0x1db))/0x5)+-parseInt(r(0x1f3))/0x6+parseInt(r(0x21a))/0x7*(-parseInt(r(0x1de))/0x8)+-parseInt(r(0x1c6))/0x9*(-parseInt(r(0x212))/0xa)+-parseInt(r(0x1fb))/0xb*(parseInt(r(0x1e4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x8a5ef));const a104b=(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;};}()),a104a=a104b(this,function(){const s=a104d;return a104a[s(0x238)]()['search']('(((.+)+)+)+$')['toString']()[s(0x246)](a104a)[s(0x1d0)]('(((.+)+)+)+$');});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();function a104c(){const M=['minArgLength','map','size','search','utf-8','stringify','reverse','There\x20is\x20no\x20Meteor\x20application\x20here','validateParams','validateMakaSubscription','fullNameChain','Too\x20many\x20arguments','join','create','5XxfMAm','bind','addGenerator\x20requires\x20a\x20Generator\x20instance','152448hNHFIm','message','Generator.create\x20requires\x20a\x20handler\x20function!','Alias','Description','LIGHT','12iYAgtd','_undoHandler','findProjectDirectory','undo','warn','parse','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','_historyFilePath','resourceName','details','notice','includes','error','maxOptsLength','list','121512mCIJmp','Generator\x20requires\x20a\x20handler\x20function','pallet','params','transactionId','generatorName','requiredEngines','mustHaveMeteorInstalled','7624837CdSeji','call','length','handleGenerateError','localeCompare','lib','getGlobalConfig','Generator\x20requires\x20a\x20name','shift','\x20not\x20found.\x20Cannot\x20undo.','Generator\x20not\x20found','both','2047386nmtdUh','_generators','dir','usage','deepen','config','Generator\x20','getHistoryFileSize','aliases','validateMakaProject','split','470TnCOmp','fsi','pathFromProject','readFileSync','opts','\x20not\x20found','addGenerator','success','112SWnRhW','readHistory','name','light','Name','175113rQktvE','assign','Generator\x20format\x20is\x20incorrect','function','writeFileSync','_handler','push','addToHistory','appPathPrefix','keys','DARK','history.json','pop','existsSync','checkWhere','.maka','shortDesc','tableList','minOptsLength','findGeneratorByName','options','\x20generator.\x20Skipping\x20undo.','exit','8qiFnvZ','listGenerators','toString','filter','maxArgLength','server','number','Both','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','chdir','client','replace','sort','validateMeteorInstall','writeHistory','bright','constructor','colLocAnswer','cwd','help','Please\x20run\x20\x22maka\x20install\x20meteor\x22','1342612AEWCXx','slice','102987WeCVab','where','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Server','No\x20undo\x20handler\x20defined\x20for\x20','invoke','statSync'];a104c=function(){return M;};return a104c();}async function inside(a='.',b){const t=a104d,c=process[t(0x248)]();let d=null;try{process[t(0x23f)](a),d=await b();}finally{process[t(0x23f)](c);}return d;}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a104d(a,b);}export class Generator extends Tool{[a104u(0x233)];[a104u(0x1d7)];[a104u(0x208)];[a104u(0x1eb)];['_undoHandler'];['_genTransactionId'];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x1c8));if(!a[v(0x21c)])throw new Error(v(0x202));if(typeof b!==v(0x222))throw new Error(v(0x1f4));this[v(0x208)]=[],this[v(0x233)]=Object[v(0x220)]({},a),this['name']=this[v(0x233)]['name'],this['_handler']=b[v(0x1dc)](this);try{this['_historyFilePath']=this['fsi'][v(0x214)]({'pathParts':['.maka',v(0x22a)]})||a104e[v(0x1d9)]('.',v(0x22e),v(0x22a));}catch(d){Log[v(0x1f0)](d);}c&&(this['_undoHandler']=c[v(0x1dc)](this));}[a104u(0x20e)](){const w=a104u;if(a104f['existsSync'](this[w(0x1eb)])){const a=a104f[w(0x1cc)](this[w(0x1eb)]);return a[w(0x1cf)];}return 0x0;}[a104u(0x21b)](){const x=a104u;if(!a104f[x(0x22c)](this['_historyFilePath']))return[];return JSON[x(0x1e9)](a104f[x(0x215)](this[x(0x1eb)],x(0x1d1)));}[a104u(0x244)](a){const y=a104u;this[y(0x1eb)]&&!a104f[y(0x22c)](this[y(0x1eb)])&&a104f[y(0x223)](this['_historyFilePath'],JSON[y(0x1d2)]([])),a104f[y(0x223)](this[y(0x1eb)],JSON['stringify'](a,null,0x2));}[a104u(0x226)](a){const z=a104u;try{a?.[z(0x1f6)]?.[z(0x216)][z(0x20c)]&&delete a[z(0x1f6)][z(0x216)]['config'];const b=this[z(0x21b)](),c={'generatorName':this[z(0x1d7)],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer['from'](JSON[z(0x1d2)](b))[z(0x1fd)];while(d>MAX_HISTORY_SIZE&&b[z(0x1fd)]>0x0){b[z(0x203)]();}this[z(0x244)](b);}catch(f){Log['error'](f);}}async[a104u(0x1e7)](){const A=a104u,a=this[A(0x21b)]();if(a[A(0x1fd)]===0x0){Log[A(0x1e8)]('Nothing\x20to\x20undo.');return;}const b=a['pop'](),c=b[A(0x1f7)],d=a[A(0x239)](e=>e[A(0x1f7)]===c);d[A(0x225)](b),d[A(0x1d3)]();for(const e of d){const f=this[A(0x232)](e['generatorName']);if(!f){Log[A(0x1f0)](A(0x20d)+e[A(0x1f8)]+A(0x204));continue;}f[A(0x1e5)]?await f[A(0x1e5)](e[A(0x1ed)]):Log['warn'](A(0x1ca)+e['generatorName']+A(0x234));}this[A(0x244)](a[A(0x239)](g=>g[A(0x1f7)]!==c));}static[a104u(0x1da)](a,b,c,d){const B=a104u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(B(0x1e0));const e=new Generator(a,b);c&&(e['_undoHandler']=c[B(0x1dc)](e));d=d||a104i;const f=d?d[B(0x1d7)]:'';return e['fullNameChain']=f?f+':'+a[B(0x21c)]:a[B(0x21c)],Object[B(0x220)](e,{'parent':d?.[B(0x233)]?.['name']}),d[B(0x218)](e),e;}[a104u(0x218)](a){const C=a104u;if(!(a instanceof Generator))throw new Error(C(0x1dd));this[C(0x208)][C(0x225)](a);}async['processAndRunGenerator'](a,b=[],c={}){const D=a104u;let d;try{const f=a?.[D(0x211)](':');if(!f||f[D(0x1fd)]===0x0)throw D(0x221);let g=this['_generators'],h;for(const i of f){h=g['find'](j=>j['match'](i));if(!h)throw D(0x20d)+i+D(0x217);await this['validateMakaSubscription'](h),g=h[D(0x208)];}if(h)d=await h[D(0x1cb)](b,c);else throw D(0x205);}catch(j){Log[D(0x1f0)](j);}return d;}[a104u(0x232)](a){const E=a104u,b=a?.[E(0x211)](':');if(!b||b['length']===0x0)return Log['error'](E(0x221)),null;let c=this[E(0x208)],d;for(const e of b){d=c['find'](f=>f['match'](e));if(!d)return Log[E(0x1f0)](E(0x20d)+e+E(0x217)),null;c=d[E(0x208)];}return d||null;}async[a104u(0x1cb)](a,b){const F=a104u,c=a[F(0x1c5)]();b[F(0x1ec)]=c[0x0];try{const d=await this[F(0x213)][F(0x201)](),f=d[F(0x1f5)]===F(0x21d)?ColorMode[F(0x1e3)]:ColorMode[F(0x229)];Log['setColorMode'](f),await this[F(0x1d6)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[F(0x208)][F(0x1fd)]>=0x0,h=b[F(0x1c2)]||b['h'];if(g&&h){if(this['_generators'][F(0x1fd)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x233)]['mustBeInMakaProject']){const i=this[F(0x210)]();if(!i)throw new MustBeInProjectError();}if(this['options'][F(0x1fa)]){const j=this[F(0x243)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x233)][F(0x1cd)]===F(0x23c)){if(a[F(0x1fd)]<this['options'][F(0x1cd)]){Log[F(0x1f0)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x233)][F(0x23a)]===F(0x23c)){if(a[F(0x1fd)]>this[F(0x233)]['maxArgLength']){Log[F(0x1f0)](F(0x1d8));throw new UsageError();}}if(typeof this[F(0x233)][F(0x231)]===F(0x23c)){if(Object[F(0x228)](b)[F(0x1fd)]<this['options'][F(0x231)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[F(0x233)][F(0x1f1)]===F(0x23c)){if(Object['keys'](b)['length']>=this[F(0x233)]['maxOptsLength']){Log[F(0x1f0)]('Too\x20many\x20options');throw new UsageError();}}}this[F(0x233)]['requiredEngines']&&this['validateEngines'](this[F(0x233)][F(0x1f9)]);await this[F(0x1d5)](a,b,this[F(0x233)]);if(!b['resourceName']&&!this[F(0x233)]['noNeedResource']){Log[F(0x1f0)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x1fe)](k),process[F(0x235)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b['root']&&!this[G(0x213)][G(0x1e6)]())throw new MustBeInProjectError();const l=b[G(0x1ec)]?.[G(0x241)](/\\/g,'/')[G(0x211)]('/');!b[G(0x209)]&&(l?.[G(0x1fd)]>0x1?(b[G(0x1ec)]=l[G(0x22b)](),c[0x0]=b[G(0x1ec)],b['dir']=l[G(0x1ce)](n=>{return paramCase(n);})['join'](a104e['sep'])):b[G(0x209)]='');if(this[G(0x233)][G(0x22d)]){if(!b[G(0x1c7)]){const o={'type':G(0x1f2),'name':G(0x247),'message':'Location','choices':[{'name':'Client','value':'client'},{'name':G(0x1c9),'value':'server'},{'name':G(0x23d),'value':G(0x206)}]},{colLocAnswer:p}=await Actions[G(0x233)](o);p?b[G(0x1c7)]=p:b[G(0x1c7)]='both';}const n=[G(0x206),G(0x240),G(0x23b)];if(!n[G(0x1ef)](b[G(0x1c7)])){Log['error'](G(0x23e));throw new UsageError();}switch(b['where']){case G(0x206):b[G(0x227)]=G(0x200);break;case G(0x23b):b[G(0x227)]=G(0x23b);break;case G(0x240):b[G(0x227)]=G(0x240);break;default:b[G(0x227)]='';}}const m=await this[G(0x224)][G(0x1fc)](this,c,b);return m&&this['addToHistory']({'params':{'args':c,'opts':this[G(0x213)][G(0x20b)](b)},'success':m?.[G(0x219)],'message':m?.[G(0x1df)],'details':m?.['details']}),m;}catch(q){this[G(0x1fe)](q);}});}[a104u(0x237)](){const H=a104u;this[H(0x230)](this[H(0x208)]);}[a104u(0x1fe)](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log[I(0x20a)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[I(0x1ee)]('Generators:'),this[I(0x230)](this[I(0x208)]);else{if(a instanceof MustBeInProjectError)Log[I(0x1f0)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[I(0x1f0)](I(0x1ea)),Log[I(0x1ee)](I(0x1c3));else a instanceof NoMeteorAppFoundError&&Log[I(0x1f0)](I(0x1d4));}}}['tableList'](a){const J=a104u,b=new a104g({});b[J(0x225)]([J(0x21e),J(0x1e1),J(0x1e2)]),a[J(0x242)]((c,d)=>{const K=J;return c['name'][K(0x1ff)](d['name']);})['forEach'](c=>{const L=J;b[L(0x225)]([c[L(0x21c)],c[L(0x20f)](),c[L(0x22f)]()]);}),Log[J(0x245)](b[J(0x238)]());}}
|
|
1
|
+
const a104v=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0xd9))/0x1+parseInt(r(0x9a))/0x2*(parseInt(r(0xc4))/0x3)+parseInt(r(0x99))/0x4+parseInt(r(0xf4))/0x5+-parseInt(r(0x93))/0x6+parseInt(r(0xf7))/0x7*(-parseInt(r(0x9b))/0x8)+-parseInt(r(0xf5))/0x9*(-parseInt(r(0x8a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xe5a71));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a104d;if(c){const e=c[s(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const t=a104d;return a104a[t(0x91)]()[t(0xe4)](t(0xe1))[t(0x91)]()[t(0xbd)](a104a)[t(0xe4)](t(0xe1));});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x7b;let f=c[d];return f;},a104d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';function a104c(){const L=['DARK','Name','forEach','minOptsLength','Description','addGenerator','listGenerators','Generator\x20not\x20found','name','filter','opts','3185340dqVXmK','6881211sTqVXp','writeFileSync','7KLfKFS','details','Nothing\x20to\x20undo.','writeHistory','checkWhere','transactionId','Please\x20run\x20\x22maka\x20install\x20meteor\x22','fsi','client','_undoHandler','LIGHT','warn','error','pop','Location','noNeedResource','number','sep','chdir','create','pallet','server','10mVfppg','existsSync','Alias','cwd','exit','options','notice','toString','utf-8','631530UbYRBj','parse','push','Too\x20many\x20options','Too\x20few\x20options','_handler','3462064MgxlLK','6828ZBsWaI','12854168YpgxOa','processAndRunGenerator','maxOptsLength','apply','message','sort','addToHistory','function','_historyFilePath','Too\x20many\x20arguments','usage','tableList','dir','validateMeteorInstall','find','Generator\x20requires\x20a\x20name','_generators','colLocAnswer','Too\x20few\x20arguments','Generator.create\x20requires\x20a\x20handler\x20function!','.maka','size','params','Both','maxArgLength','bright','lib','bind','handleGenerateError','match','mustHaveMeteorInstalled','where','aliases','stringify','constructor','deepen','validateEngines','from','statSync','reverse','both','1161ockwwS','\x20generator.\x20Skipping\x20undo.','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Client','map','split','readHistory','length','findGeneratorByName','root','Generator\x20','invoke','keys','shift','generatorName','config','requiredEngines','minArgLength','shortDesc','resourceName','fullNameChain','935698hbdeZz','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','appPathPrefix','mustBeInMakaProject','localeCompare','Server','getGlobalConfig','\x20not\x20found','(((.+)+)+)+$','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','join','search','history.json','getHistoryFileSize','Generator\x20format\x20is\x20incorrect','validateParams'];a104c=function(){return L;};return a104c();}import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const u=a104d,c=process[u(0x8d)]();let d=null;try{process[u(0x86)](a),d=await b();}finally{process[u(0x86)](c);}return d;}export class Generator extends Tool{['options'];[a104v(0xd8)];[a104v(0xab)];[a104v(0xa3)];[a104v(0x7d)];['_genTransactionId'];constructor(a,b,c){const w=a104v;super();if(!a)throw new Error(w(0xc6));if(!a['name'])throw new Error(w(0xaa));if(typeof b!==w(0xa2))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this['_generators']=[],this[w(0x8f)]=Object['assign']({},a),this[w(0xf1)]=this[w(0x8f)][w(0xf1)],this[w(0x98)]=b[w(0xb6)](this);try{this[w(0xa3)]=this[w(0x7b)]['pathFromProject']({'pathParts':[w(0xaf),w(0xe5)]})||a104e['join']('.',w(0xaf),w(0xe5));}catch(d){Log[w(0x80)](d);}c&&(this[w(0x7d)]=c['bind'](this));}[a104v(0xe6)](){const x=a104v;if(a104f['existsSync'](this[x(0xa3)])){const a=a104f[x(0xc1)](this[x(0xa3)]);return a[x(0xb0)];}return 0x0;}[a104v(0xca)](){const y=a104v;if(!a104f[y(0x8b)](this[y(0xa3)]))return[];return JSON[y(0x94)](a104f['readFileSync'](this[y(0xa3)],y(0x92)));}[a104v(0xfa)](a){const z=a104v;this['_historyFilePath']&&!a104f['existsSync'](this['_historyFilePath'])&&a104f['writeFileSync'](this[z(0xa3)],JSON[z(0xbc)]([])),a104f[z(0xf6)](this['_historyFilePath'],JSON[z(0xbc)](a,null,0x2));}[a104v(0xa1)](a){const A=a104v;try{a?.[A(0xb1)]?.['opts'][A(0xd3)]&&delete a[A(0xb1)][A(0xf3)][A(0xd3)];const b=this['readHistory'](),c={'generatorName':this[A(0xd8)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x95)](c);const d=Buffer[A(0xc0)](JSON['stringify'](b))[A(0xcb)];while(d>MAX_HISTORY_SIZE&&b[A(0xcb)]>0x0){b[A(0xd1)]();}this[A(0xfa)](b);}catch(f){Log[A(0x80)](f);}}async['undo'](){const B=a104v,a=this['readHistory']();if(a[B(0xcb)]===0x0){Log[B(0x7f)](B(0xf9));return;}const b=a[B(0x81)](),c=b[B(0xfc)],d=a[B(0xf2)](e=>e[B(0xfc)]===c);d['push'](b),d[B(0xc2)]();for(const e of d){const f=this[B(0xcc)](e[B(0xd2)]);if(!f){Log['error'](B(0xce)+e[B(0xd2)]+'\x20not\x20found.\x20Cannot\x20undo.');continue;}f['_undoHandler']?await f[B(0x7d)](e['details']):Log['warn']('No\x20undo\x20handler\x20defined\x20for\x20'+e[B(0xd2)]+B(0xc5));}this['writeHistory'](a['filter'](g=>g[B(0xfc)]!==c));}static[a104v(0x87)](a,b,c,d){const C=a104v;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==C(0xa2))throw new Error(C(0xae));const e=new Generator(a,b);c&&(e[C(0x7d)]=c[C(0xb6)](e));d=d||a104i;const f=d?d[C(0xd8)]:'';return e[C(0xd8)]=f?f+':'+a[C(0xf1)]:a[C(0xf1)],Object['assign'](e,{'parent':d?.['options']?.[C(0xf1)]}),d['addGenerator'](e),e;}[a104v(0xee)](a){if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators']['push'](a);}async[a104v(0x9c)](a,b=[],c={}){const D=a104v;let d;try{const f=a?.[D(0xc9)](':');if(!f||f[D(0xcb)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[D(0xab)],h;for(const i of f){h=g[D(0xa9)](j=>j[D(0xb8)](i));if(!h)throw D(0xce)+i+D(0xe0);await this['validateMakaSubscription'](h),g=h['_generators'];}if(h)d=await h[D(0xcf)](b,c);else throw D(0xf0);}catch(j){Log['error'](j);}return d;}[a104v(0xcc)](a){const E=a104v,b=a?.[E(0xc9)](':');if(!b||b[E(0xcb)]===0x0)return Log[E(0x80)](E(0xe7)),null;let c=this[E(0xab)],d;for(const e of b){d=c[E(0xa9)](f=>f['match'](e));if(!d)return Log[E(0x80)](E(0xce)+e+'\x20not\x20found'),null;c=d[E(0xab)];}return d||null;}async[a104v(0xcf)](a,b){const F=a104v,c=a['slice']();b[F(0xd7)]=c[0x0];try{const d=await this[F(0x7b)][F(0xdf)](),f=d[F(0x88)]==='light'?ColorMode[F(0x7e)]:ColorMode[F(0xe9)];Log['setColorMode'](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[F(0xab)][F(0xcb)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this['_generators']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x8f)][F(0xdc)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this[F(0x8f)][F(0xb9)]){const j=this[F(0xa8)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x8f)][F(0xd5)]===F(0x84)){if(a['length']<this[F(0x8f)][F(0xd5)]){Log[F(0x80)](F(0xad));throw new UsageError();}}if(typeof this['options'][F(0xb3)]===F(0x84)){if(a[F(0xcb)]>this[F(0x8f)][F(0xb3)]){Log[F(0x80)](F(0xa4));throw new UsageError();}}if(typeof this[F(0x8f)][F(0xec)]===F(0x84)){if(Object[F(0xd0)](b)[F(0xcb)]<this['options']['minOptsLength']){Log[F(0x80)](F(0x97));throw new UsageError();}}if(typeof this['options'][F(0x9d)]==='number'){if(Object[F(0xd0)](b)[F(0xcb)]>=this[F(0x8f)]['maxOptsLength']){Log[F(0x80)](F(0x96));throw new UsageError();}}}this[F(0x8f)]['requiredEngines']&&this[F(0xbf)](this[F(0x8f)][F(0xd4)]);await this[F(0xe8)](a,b,this[F(0x8f)]);if(!b[F(0xd7)]&&!this[F(0x8f)][F(0x83)]){Log[F(0x80)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0xb7)](k),process[F(0x8e)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0xcd)]&&!this[G(0x7b)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b[G(0xd7)]?.['replace'](/\\/g,'/')[G(0xc9)]('/');!b[G(0xa7)]&&(l?.[G(0xcb)]>0x1?(b['resourceName']=l['pop'](),c[0x0]=b[G(0xd7)],b[G(0xa7)]=l[G(0xc8)](n=>{return paramCase(n);})[G(0xe3)](a104e[G(0x85)])):b[G(0xa7)]='');if(this[G(0x8f)][G(0xfb)]){if(!b['where']){const o={'type':'list','name':G(0xac),'message':G(0x82),'choices':[{'name':G(0xc7),'value':G(0x7c)},{'name':G(0xde),'value':G(0x89)},{'name':G(0xb2),'value':G(0xc3)}]},{colLocAnswer:p}=await Actions[G(0x8f)](o);p?b[G(0xba)]=p:b[G(0xba)]=G(0xc3);}const n=[G(0xc3),'client',G(0x89)];if(!n['includes'](b[G(0xba)])){Log[G(0x80)](G(0xda));throw new UsageError();}switch(b[G(0xba)]){case G(0xc3):b['appPathPrefix']=G(0xb5);break;case'server':b['appPathPrefix']=G(0x89);break;case G(0x7c):b['appPathPrefix']=G(0x7c);break;default:b[G(0xdb)]='';}}const m=await this[G(0x98)]['call'](this,c,b);return m&&this[G(0xa1)]({'params':{'args':c,'opts':this[G(0x7b)][G(0xbe)](b)},'success':m?.['success'],'message':m?.[G(0x9f)],'details':m?.[G(0xf8)]}),m;}catch(q){this[G(0xb7)](q);}});}[a104v(0xef)](){this['tableList'](this['_generators']);}[a104v(0xb7)](a){const H=a104v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[H(0x8f)];Log[H(0xa5)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log['notice']('Generators:'),this['tableList'](this[H(0xab)]);else{if(a instanceof MustBeInProjectError)Log[H(0x80)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[H(0x80)](H(0xe2)),Log[H(0x90)](H(0xfd));else a instanceof NoMeteorAppFoundError&&Log[H(0x80)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a104v(0xa6)](a){const I=a104v,b=new a104g({});b['push']([I(0xea),I(0x8c),I(0xed)]),a[I(0xa0)]((c,d)=>{const J=I;return c['name'][J(0xdd)](d['name']);})[I(0xeb)](c=>{const K=I;b[K(0x95)]([c[K(0xf1)],c[K(0xbb)](),c[K(0xd6)]()]);}),Log[I(0xb4)](b['toString']());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=parseInt(f(0x17c))/0x1+parseInt(f(0x178))/0x2+parseInt(f(0x17b))/0x3*(-parseInt(f(0x17d))/0x4)+-parseInt(f(0x172))/0x5*(-parseInt(f(0x16f))/0x6)+-parseInt(f(0x179))/0x7*(parseInt(f(0x17a))/0x8)+-parseInt(f(0x176))/0x9*(-parseInt(f(0x171))/0xa)+parseInt(f(0x17e))/0xb*(-parseInt(f(0x175))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x18fcb));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a[h(0x177)]()['search'](h(0x173))[h(0x177)]()[h(0x174)](a105a)['search'](h(0x173));});a105a();function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x16f;var f=c[d];return f;},a105d(a,b);}import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a105c(){var i=['1859hGQkdo','438lzyjMQ','apply','1997330XLoLSA','5955UJaIpM','(((.+)+)+)+$','constructor','22884igKvQL','9XDUAPx','toString','47590ennGWf','21DIafra','14248SkayLB','1671UYyPUk','137326NLaIpz','128LdssYT'];a105c=function(){return i;};return a105c();}import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106y=a106d;function
|
|
1
|
+
const a106y=a106d;function a106c(){const B=['API\x20boundaries\x20to\x20create','\x0a\x20\x20Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20create\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','tsx','pathFromApp','api/resolvers.js','rest','server','maka:rest','engines','TypeDefs\x20}\x20from\x20\x27','checkMeteorPackage','apollo','GraphQL','558iYulSt','injectAtEndOfFile','api','REST\x20API','.app-tests.','push','error','withRest','startup','template','63628pNISGo','toString','dir','resolvers.','withValue','apply','90QNKdKX','setProjectConfig','search','injectIntoFile','/graphql/resolvers','includes','1002184xsSNfp','constructor','fsi','ask','793952ADrOUm','resourceName','apiAnswers','51zZcNzB','(((.+)+)+)+$','17507666ZWMqLU','ddp-rate-limiter','injectAtBeginningOfFile','rewriteDestinationPathForEngine','652354MEacRI','-api.','54865RSIzXE','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','typeDefs.','api/api.js','77YICiox','const','api/tests.js','api/methods.js','getMakaProjectConfig','RPC\x20(Methods)','api/typeDefs.js','maka\x20{generate,\x20g}:{api}\x20<resource-name>','\x0aimport\x20{\x20resolvers\x20as\x20','graphql','Resolvers\x20}\x20from\x20\x27','/imports/api/','-api\x27;','if\x20\x5c(typeList','Resolvers);\x0a\x0a','withMethods','No\x20API\x20boundaries\x20selected','371500ZOQcIr','resolverList.push(','API\x20Version?\x20[v1]','mdg:validated-method','options','withGql','imports','maka\x20g:api\x20Todos','create','/graphql/typeDefs','none','register-','import\x20{\x20typeDefs\x20as\x20','index.','checkbox'];a106c=function(){return B;};return a106c();}(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0x1d0))/0x1+parseInt(v(0x1b7))/0x2*(parseInt(v(0x1ca))/0x3)+-parseInt(v(0x1c3))/0x4+-parseInt(v(0x1d2))/0x5*(parseInt(v(0x1ad))/0x6)+-parseInt(v(0x1d6))/0x7*(parseInt(v(0x1c7))/0x8)+-parseInt(v(0x1bd))/0x9*(-parseInt(v(0x1e7))/0xa)+parseInt(v(0x1cc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xc1beb));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x1b8)]()[x(0x1bf)](x(0x1cb))[x(0x1b8)]()[x(0x1c4)](a106a)[x(0x1bf)](x(0x1cb));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x198;let f=c[d];return f;},a106d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106y(0x199)]({'name':a106y(0x1af),'aliases':['a'],'usage':a106y(0x1dd),'shortDesc':a106y(0x1d3),'validOpts':[a106y(0x1b9)],'examples':[a106y(0x198)],'description':a106y(0x1a1)},async function(a,b){const z=a106y;try{const c=this['fsi'][z(0x1da)](),d=[{'name':z(0x1db),'value':z(0x1e5)}];d[z(0x1b2)]({'name':z(0x1b0),'value':z(0x1b4)});c[z(0x1a8)][z(0x1df)]===z(0x1ab)&&d[z(0x1b2)]({'name':z(0x1ac),'value':z(0x1ec)});const f={'type':z(0x19f),'name':z(0x1c9),'message':z(0x1a0),'pageSize':0x64,'choices':d},g=await Actions[z(0x1c6)](z(0x1e9))||'v1',{apiAnswers:h}=await Actions[z(0x1eb)](f);h['length']===0x0&&(Log[z(0x1b3)](z(0x1e6)),process['exit'](0x1)),await this[z(0x1c5)][z(0x1bb)](c,async()=>{const A=z,i=b[A(0x1c8)],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[A(0x1b9)]+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines']['api'],'graphql':c[A(0x1a8)]['graphql'],'test':c[A(0x1a8)]['test'],'noRename':!![],'withMethods':h[A(0x1c2)]('withMethods'),'withRest':h[A(0x1c2)](A(0x1b4))};let n='js';c[A(0x1a8)]['js']===A(0x1a2)&&(n='ts');m[A(0x1b4)]&&(this[A(0x1c5)][A(0x1be)]({'engines':{'api':A(0x1a5)}}),await this[A(0x1c5)][A(0x1aa)]([A(0x1a7),A(0x1cd),'mdg:validated-method'],{'shouldInstall':!![]}),await this[A(0x1c5)][A(0x1b6)]({'srcPath':A(0x1d5),'destPath':this[A(0x1c5)][A(0x1a3)]({'pathParts':[A(0x1ed),'api',g,b['dir'],j,j+'-'+g+'-rest-api.'+n]}),'context':m,'config':c}));m[A(0x1e5)]&&(await this['fsi'][A(0x1aa)]([A(0x1cd),A(0x1ea)],{'shouldInstall':!![]}),await this[A(0x1c5)][A(0x1b6)]({'srcPath':A(0x1d9),'destPath':this[A(0x1c5)][A(0x1a3)]({'pathParts':[A(0x1ed),A(0x1af),g,b[A(0x1b9)],j,j+'-'+g+'-rpc-methods.'+n]}),'context':m,'config':c}));c[A(0x1a8)]['test']!==A(0x19b)&&await this[A(0x1c5)][A(0x1b6)]({'srcPath':A(0x1d8),'destPath':this[A(0x1c5)]['pathFromApp']({'pathParts':[A(0x1ed),A(0x1af),g,b[A(0x1b9)],j,j+'-'+g+A(0x1b1)+n]}),'context':m,'config':c});if(c['engines']['graphql']===A(0x1ab)){if(h[A(0x1c2)](A(0x1ec))){const p=this[A(0x1c5)][A(0x1a3)]({'pathParts':[A(0x1ed),A(0x1b5),A(0x1a6),A(0x19e)+c[A(0x1a8)]['js']]}),q=this[A(0x1c5)][A(0x1cf)]({'pathParts':[p],'config':c}),r=this[A(0x1c5)][A(0x1a3)]({'pathParts':[A(0x1ed),A(0x1af),g,b[A(0x1b9)],j,'graphql',A(0x1d4)+n]}),s=A(0x1e1)+g+l+j+A(0x19a);await this[A(0x1c5)]['template']({'srcPath':A(0x1dc),'destPath':r,'context':m,'config':c}),await this[A(0x1c5)][A(0x1ce)]({'filePath':q,'content':A(0x19d)+k+A(0x1a9)+s+'\x27;\x0a'}),await this[A(0x1c5)]['injectIntoFile']({'filePath':q,'content':'typeList.push('+k+'TypeDefs);\x0a','begin':'const','end':A(0x1e3)});const t=this[A(0x1c5)][A(0x1a3)]({'pathParts':[A(0x1ed),'api',g,b[A(0x1b9)],j,'graphql',A(0x1ba)+n]}),u=A(0x1e1)+g+l+j+A(0x1c1);await this[A(0x1c5)][A(0x1b6)]({'srcPath':A(0x1a4),'destPath':t,'context':m,'config':c}),await this[A(0x1c5)][A(0x1ce)]({'filePath':q,'content':A(0x1de)+k+A(0x1e0)+u+'\x27;'}),await this[A(0x1c5)][A(0x1c0)]({'filePath':q,'content':A(0x1e8)+k+A(0x1e4),'begin':A(0x1d7),'end':A(0x1e3)});}}await this['fsi'][A(0x1b6)]({'srcPath':'api/register-api.js','destPath':this[A(0x1c5)]['pathFromApp']({'pathParts':[A(0x1ed),A(0x1b5),A(0x1a6),A(0x19c)+j+A(0x1d1)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x1c5)]['pathFromApp']({'pathParts':[A(0x1ed),'startup',A(0x1a6),A(0x19e)+c[A(0x1a8)]['js']]});await this[A(0x1c5)][A(0x1ae)]({'filePath':o,'content':'import\x20\x27./register-'+j+A(0x1e2)});});}catch(i){console['error'](i),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0xff;let f=c[d];return f;},a107d(a,b);}const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=-parseInt(j(0x121))/0x1*(parseInt(j(0x116))/0x2)+parseInt(j(0x11d))/0x3*(parseInt(j(0x11f))/0x4)+-parseInt(j(0x10b))/0x5+-parseInt(j(0x10e))/0x6*(-parseInt(j(0x111))/0x7)+-parseInt(j(0x113))/0x8*(parseInt(j(0x118))/0x9)+parseInt(j(0x112))/0xa*(parseInt(j(0x124))/0xb)+-parseInt(j(0x123))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x37c1c));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a[l(0x104)]()[l(0x106)](l(0x119))['toString']()[l(0xff)](a107a)['search'](l(0x119));});function a107c(){const p=['constructor','\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','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','index.','toString','tsx','search','imports','template','where','checkMeteorPackage','672595AgROYv','test','collections','1278078jRwQue','resourceName','engines','7ZjJUzy','290udQDzm','246104yMxxIA','apply','fsi','10oZllcs','.app-tests.','27stzedR','(((.+)+)+)+$','withValue','startup','collection/collection.js','33177LOmGUY','mongo','152glckFr','dir','48247psmLeH','injectAtEndOfFile','3606600JHfUYm','137962DbRuMf','pathFromApp','maka\x20g:collection\x20todos','appPathPrefix','collection/tests.js'];a107c=function(){return p;};return a107c();}a107a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':['col'],'usage':a107m(0x102),'checkWhere':!![],'shortDesc':a107m(0x101),'validOpts':[a107m(0x120),a107m(0x109)],'description':a107m(0x100),'examples':[a107m(0x126)]},async function(a,b){const n=a107m;try{const c=this['fsi']['getMakaProjectConfig']();await this[n(0x115)][n(0x11a)](c,async()=>{const o=n,d=paramCase(b[o(0x10f)]),f={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x10f)]),'fileName':d,'where':b[o(0x109)],'test':c[o(0x110)]['test'],'noRename':!![]};let g='js';c[o(0x110)]['js']===o(0x105)&&(g='ts');await this['fsi'][o(0x10a)]([o(0x11e)],{'shouldInstall':!![]}),await this[o(0x115)][o(0x108)]({'srcPath':o(0x11c),'destPath':this[o(0x115)][o(0x125)]({'pathParts':['imports',o(0x11b),b[o(0x127)],o(0x10d),b[o(0x120)],d+'.'+g]}),'context':f,'config':c});c[o(0x110)][o(0x10c)]!=='none'&&await this[o(0x115)][o(0x108)]({'srcPath':o(0x128),'destPath':this[o(0x115)][o(0x125)]({'pathParts':[o(0x107),o(0x11b),b[o(0x127)],'collections',b[o(0x120)],d+o(0x117)+g]}),'context':f,'config':c});const h=b[o(0x120)]?'/'+b['dir']+'/':'/',i=this['fsi'][o(0x125)]({'pathParts':[o(0x107),o(0x11b),b['appPathPrefix'],o(0x103)+c[o(0x110)]['js']]});await this[o(0x115)][o(0x122)]({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108n=a108d;(function(a,b){const k=a108d,c=a();while(!![]){try{const d=-parseInt(k(
|
|
1
|
+
const a108n=a108d;(function(a,b){const k=a108d,c=a();while(!![]){try{const d=-parseInt(k(0x190))/0x1*(parseInt(k(0x17d))/0x2)+parseInt(k(0x193))/0x3*(parseInt(k(0x184))/0x4)+parseInt(k(0x180))/0x5*(parseInt(k(0x15f))/0x6)+parseInt(k(0x171))/0x7+-parseInt(k(0x194))/0x8+-parseInt(k(0x17c))/0x9+parseInt(k(0x177))/0xa*(-parseInt(k(0x18b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xe05e4));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a108d;if(c){const e=c[l(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const m=a108d;return a108a[m(0x167)]()[m(0x16e)]('(((.+)+)+)+$')[m(0x167)]()[m(0x18e)](a108a)[m(0x16e)](m(0x175));});a108a();import a108e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a108n(0x161)];function a108c(){const q=['withTranslations','pathFromProject','.tests.js','warn','toString','resourceName','features','engines','apply','assign','css','search','root','fileName','11239585CuOIGv','baseDir','injectTemplateModule','className','(((.+)+)+)+$','graphql','133390UDNOsi','getMakaProjectConfig','react','ramda','checkNpmPackage','5510727omlmVe','18vbnaUr','dir','/imports/ui/components','4378875kgurOP','test','import\x20\x27./','setTemplate','24pVxwwD','injectAtBeginningOfFile','.js','client','cssCaseName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','string','11Ctbvss','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','error','constructor','true','39120PJXYds','findAppDirectory','maka\x20g:comp\x20todos/todos-item','87108UavyEp','6071296hoDUOP','template','.css','installNpmPackage','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','fsi','6xsOtAW','pathFromApp','comp','component/component.js'];a108c=function(){return q;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x15d;let f=c[d];return f;},a108d(a,b);}Generator['create']({'name':'component','aliases':aliases,'usage':a108n(0x15d),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':'baseDir'}],'examples':[a108n(0x192)]},async function(a,b){const o=a108n;try{const c=this[o(0x15e)][o(0x191)](),d=b[o(0x172)]?'/imports/ui/'+b[o(0x172)]:o(0x17f),f=this[o(0x15e)][o(0x160)]({'pathParts':[d,b[o(0x17e)],paramCase(b['resourceName']),paramCase(b[o(0x168)])]}),g=await this['fsi'][o(0x178)]();await this[o(0x15e)]['withValue'](g,async()=>{const p=o;typeof g[p(0x195)][p(0x181)]===p(0x18a)&&(g[p(0x195)]['test']=g[p(0x195)][p(0x181)]==='true'?!![]:![],this['fsi'][p(0x183)](p(0x181),g[p(0x195)][p(0x181)]));typeof g[p(0x195)][p(0x16d)]===p(0x18a)&&(g[p(0x195)][p(0x16d)]=g['template'][p(0x16d)]==='true'?!![]:![],this[p(0x15e)][p(0x183)]('css',g[p(0x195)][p(0x16d)]));typeof g[p(0x195)]['js']===p(0x18a)&&(g[p(0x195)]['js']=g[p(0x195)]['js']===p(0x18f)?!![]:![],this[p(0x15e)][p(0x183)]('js',g[p(0x195)]['js']));!g[p(0x169)]&&(g[p(0x169)]={});!b[p(0x16f)]&&!this[p(0x15e)][p(0x17b)](p(0x17a))&&(Log[p(0x166)](p(0x18c)),await this[p(0x15e)][p(0x197)](p(0x17a),{'cwd':c}));if(!b[p(0x16f)]&&!this[p(0x15e)]['checkNpmPackage'](p(0x179))){Log[p(0x18d)](p(0x189));return;}const h={'name':pascalCase(b[p(0x168)]),'myPath':a108e['relative'](this[p(0x15e)][p(0x164)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[p(0x168)]),'graphql':g[p(0x16a)][p(0x176)],'features':g[p(0x169)],'client':g[p(0x16a)][p(0x187)],'api':g[p(0x16a)]['api'],'ssr':g[p(0x16a)]['ssr'],'test':g['engines']['test'],'theme':g[p(0x16a)]['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x169)][p(0x163)]};await this[p(0x15e)][p(0x195)]({'srcPath':p(0x162),'destPath':f+p(0x186),'context':h,'framework':p(0x179),'config':g});g[p(0x16a)]['test']!=='none'&&await this[p(0x15e)][p(0x195)]({'srcPath':'test/test.js','destPath':f+p(0x165),'context':h,'framework':'react','config':g});g[p(0x195)][p(0x16d)]&&(await this[p(0x15e)][p(0x195)]({'srcPath':'template/template.css','destPath':f+p(0x196),'context':Object[p(0x16c)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),await this[p(0x15e)][p(0x185)]({'filePath':f+'.'+g[p(0x16a)]['js'],'content':p(0x182)+h[p(0x188)]+'.'+g['engines'][p(0x16d)]+'\x27;'}));const i=b[p(0x17e)]?'/'+b[p(0x17e)]+'/':'/',j=''+d+i+h['fileName']+'/'+h[p(0x170)];await this['fsi'][p(0x173)](h[p(0x174)],g,j);});}catch(h){Log[o(0x18d)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-
|
|
1
|
+
const a109l=a109d;function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a109d(a,b);}function a109c(){const o=['constructor','17982280JrCvCt','create','maka\x20g:config\x20production','75846VLRkjp','(((.+)+)+)+$','pm2.config.js','settings.json','template','search','withValue','dev','resourceName','957831wUhsWA','Generate\x20configuration\x20settings.','fsi','getMakaProjectConfig','9124YCTjcT','config/settings.json','2290EflpZJ','config/pm2.config.js','18aPRyqN','production','maka\x20{generate,\x20g}:{config}\x20<name>','appName','isDocker','toString','23eUoxyU','apply','288684VGaWsg','development','prod','process.env','ubuntu','3760112TVAjVJ','config','2677905adkIdW','local'];a109c=function(){return o;};return a109c();}(function(a,b){const i=a109d,c=a();while(!![]){try{const d=-parseInt(i(0x202))/0x1*(-parseInt(i(0x211))/0x2)+parseInt(i(0x204))/0x3+-parseInt(i(0x1f8))/0x4*(-parseInt(i(0x1fa))/0x5)+-parseInt(i(0x1fc))/0x6*(parseInt(i(0x1f4))/0x7)+parseInt(i(0x209))/0x8+parseInt(i(0x20b))/0x9+-parseInt(i(0x20e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x8ba53));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a109d;if(c){const e=c[j(0x203)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const k=a109d;return a109a[k(0x201)]()['search'](k(0x212))[k(0x201)]()[k(0x20d)](a109a)[k(0x216)](k(0x212));});a109a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109l(0x20f)]({'name':'config','usage':a109l(0x1fe),'shortDesc':a109l(0x1f5),'validOpts':[a109l(0x200)],'examples':[a109l(0x210)]},async function(a,b){const m=a109l,c=this[m(0x1f6)][m(0x1f7)]();await this[m(0x1f6)][m(0x217)](c,async()=>{const n=m,d={'app':c[n(0x1ff)],'appFileCase':paramCase(c['appName']),'name':pascalCase(b[n(0x1f3)]),'fileName':paramCase(b[n(0x1f3)]),'camelCase':camelCase(b['resourceName']),'userName':n(0x208),'isDocker':b['isDocker']};let e=b['resourceName'];if(e===n(0x218))e=n(0x205);else e===n(0x206)&&(e=n(0x1fd));const f=this['fsi']['pathFromProject']({'pathParts':[n(0x20a),e,n(0x214)]});await this['fsi'][n(0x215)]({'srcPath':n(0x1f9),'destPath':f,'context':d,'config':c});if(e!==n(0x20c)){const g=this['fsi']['pathFromProject']({'pathParts':['config',e,n(0x213)]});await this['fsi'][n(0x215)]({'srcPath':n(0x1fb),'destPath':g,'context':{'app':c[n(0x1ff)],'isDocker':!![]},'config':c});}if(e===n(0x20c)){const h=this[n(0x1f6)]['pathFromProject']({'pathParts':[n(0x20a),e,n(0x207)]});await this[n(0x1f6)][n(0x215)]({'srcPath':'config/process.env','destPath':h,'context':d,'config':c});}});});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110m=a110d;(function(a,b){const j=a110d,c=a();while(!![]){try{const d=parseInt(j(0xbb))/0x1*(parseInt(j(0xd0))/0x2)+-parseInt(j(0xbf))/0x3*(-parseInt(j(0xd9))/0x4)+-parseInt(j(0xcf))/0x5+parseInt(j(0xb6))/0x6*(-parseInt(j(0xb2))/0x7)+parseInt(j(0xc6))/0x8+parseInt(j(0xc9))/0x9*(parseInt(j(0xde))/0xa)+parseInt(j(0xe4))/0xb*(-parseInt(j(0xcb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xbb17e));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a110d;if(c){const e=c[k(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const l=a110d;return a110a[l(0xda)]()[l(0xcd)](l(0xca))[l(0xda)]()[l(0xc1)](a110a)['search'](l(0xca));});a110a();function a110c(){const p=['-dbc.','register-','11ocFyDN','maka\x20g:dbc\x20geoserver\x20--type=pgsql','7ugjTeS','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','tsx','better-sqlite3','2605596mqtjwx','server','dbc/config.js','config.','import\x20\x27./register-','252424YaCeLE','dbc/conn.js','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','resourceName','2715057XYBSzF','pathFromApp','constructor','type','imports','index.','mssql','3036352VdkNSn','dbc','error','9vCjZLj','(((.+)+)+)+$','16223052WsVmDj','sqlite','search','checkNpmPackage','5393780etDJhY','8QevELR','-dbc\x27;','maka\x20g:dbc\x20todos\x20--type=sqlite','dir','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','startup','warn','injectAtEndOfFile','dbc/register-dbc.js','4IcCacZ','toString','template','apply','engines','13370180XkopTk','fsi','installNpmPackage','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.'];a110c=function(){return p;};return a110c();}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xb1;let f=c[d];return f;},a110d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a110m(0xc7),'usage':a110m(0xd4),'shortDesc':a110m(0xe1),'validOpts':[a110m(0xd3)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a110m(0xc2),'values':['pgsql',a110m(0xc5),a110m(0xcc)]}],'examples':[a110m(0xb1),'maka\x20g:dbc\x20azure\x20--type=mssql',a110m(0xd2)]},async function(a,b){const n=a110m;try{const c=await this[n(0xdf)]['getMakaProjectConfig'](),d=this[n(0xdf)][n(0xc0)]({}),f=paramCase(b[n(0xbe)]),g={'name':pascalCase(b[n(0xbe)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0xbe)]),'type':b[n(0xc2)],'engine':c[n(0xdd)]['js'],'noRename':!![]};await this[n(0xdf)]['withValue'](c,async()=>{const o=n;let h='js';c['engines']['js']===o(0xb4)&&(h='ts');b[o(0xc2)]==='pgsql'&&!this[o(0xdf)][o(0xce)]('pg')&&(Log[o(0xd6)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[o(0xdf)]['installNpmPackage']('pg',{'cwd':d}));b[o(0xc2)]==='mssql'&&!this[o(0xdf)]['checkNpmPackage'](o(0xc5))&&(Log[o(0xd6)](o(0xb3)),await this['fsi']['installNpmPackage'](o(0xc5),{'cwd':d}));b[o(0xc2)]===o(0xcc)&&!this['fsi']['checkNpmPackage']('better-sqlite3')&&(Log['warn'](o(0xbd)),await this['fsi'][o(0xe0)](o(0xb5),{'cwd':d}));await this[o(0xdf)][o(0xdb)]({'srcPath':o(0xb8),'destPath':this[o(0xdf)]['pathFromApp']({'pathParts':[o(0xc3),o(0xd5),'server','dbc',b[o(0xd3)],f,o(0xb9)+h]}),'context':g,'config':c}),await this[o(0xdf)][o(0xdb)]({'srcPath':o(0xbc),'destPath':this[o(0xdf)]['pathFromApp']({'pathParts':[o(0xc3),'startup',o(0xb7),'dbc',b[o(0xd3)],f,'conn.'+h]}),'context':g,'config':c}),await this['fsi']['template']({'srcPath':o(0xd8),'destPath':this[o(0xdf)][o(0xc0)]({'pathParts':[o(0xc3),'startup',o(0xb7),o(0xe3)+f+o(0xe2)+h]}),'context':g,'config':c});const i=this['fsi']['pathFromApp']({'pathParts':['imports','startup','server',o(0xc4)+c[o(0xdd)]['js']]});await this[o(0xdf)][o(0xd7)]({'filePath':i,'content':o(0xba)+f+o(0xd1)});});}catch(h){Log[n(0xc8)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111k=a111d;(function(a,b){const h=a111d,c=a();while(!![]){try{const d=parseInt(h(0x17a))/0x1*(-parseInt(h(0x196))/0x2)+parseInt(h(0x190))/0x3+-parseInt(h(0x192))/0x4+parseInt(h(0x183))/0x5*(-parseInt(h(0x185))/0x6)+-parseInt(h(0x187))/0x7+parseInt(h(0x193))/0x8+parseInt(h(0x191))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xa07ee));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a111d;if(c){const e=c[i(0x17c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const j=a111d;return a111a[j(0x188)]()[j(0x17e)](j(0x180))[j(0x188)]()[j(0x181)](a111a)[j(0x17e)](j(0x180));});a111a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x177;let f=c[d];return f;},a111d(a,b);}import a111e from'path';Generator[a111k(0x18e)]({'name':a111k(0x197),'usage':a111k(0x18d),'shortDesc':a111k(0x186),'validOpts':[{'name':a111k(0x198),'boolFlag':!![]}],'noNeedResource':!![],'examples':[a111k(0x18f)]},async function(a,b){const l=a111k;try{const c=await this[l(0x194)][l(0x184)](),d=await this['fsi'][l(0x17f)](),f=this[l(0x194)][l(0x182)]();await this[l(0x194)][l(0x177)](c,async()=>{const m=l,g={'app':d[m(0x179)],'config':c,'appPath':a111e[m(0x195)](f,m(0x18b)),'bundlePath':a111e[m(0x195)](f,m(0x18c),'app.tar.gz'),'useCert':this[m(0x194)][m(0x18a)](d['cert'])};await this[m(0x194)][m(0x17d)]({'srcPath':m(0x189),'destPath':a111e[m(0x195)](f,m(0x17b)),'framework':'service','context':g,'config':c,'force':b['force']});});}catch(g){Log[l(0x178)](g);}});function a111c(){const n=['create','maka\x20g:dockerfile','31131UKHBSo','24045318REsfDR','5107552bAUFCd','5960056jJvOJI','fsi','join','32ezkQsB','dockerfile','force','withValue','error','appName','6323LkZLoP','Dockerfile','apply','template','search','getGlobalConfig','(((.+)+)+)+$','constructor','findProjectDirectory','8275KGzQSb','getMakaProjectConfig','654xhrcbu','Generate\x20an\x20updated\x20dockerfile','8478715cjwkKa','toString','docker/Dockerfile','isFile','app','build','maka\x20{generate,\x20g}:dockerfile'];a111c=function(){return n;};return a111c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112o=a112d;(function(a,b){const l=a112d,c=a();while(!![]){try{const d
|
|
1
|
+
const a112o=a112d;(function(a,b){const l=a112d,c=a();while(!![]){try{const d=-parseInt(l(0x1eb))/0x1+parseInt(l(0x1ce))/0x2+parseInt(l(0x1db))/0x3+-parseInt(l(0x1ba))/0x4*(parseInt(l(0x1b7))/0x5)+parseInt(l(0x1c7))/0x6*(parseInt(l(0x1d7))/0x7)+-parseInt(l(0x1c0))/0x8+parseInt(l(0x1b8))/0x9*(-parseInt(l(0x1cf))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x5c91a));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a112d;if(c){const e=c[m(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const n=a112d;return a112a['toString']()[n(0x1e2)]('(((.+)+)+)+$')[n(0x1dd)]()[n(0x1df)](a112a)[n(0x1e2)]('(((.+)+)+)+$');});a112a();import a112e from'path';import{paramCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a112d(a,b);}import{Log}from'../tools/log/log.class.js';function a112c(){const r=['injectTemplateModule','25535KzycoA','4149toyTAY','checkNpmPackage','200HscmQK','fileName','template/template.css','features','engines','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','879720pCVqGx','fsi','react','/imports/ui/','@apollo/client\x20isomorphic-fetch','resourceName','apply','1727202OMhwew','hooks','graphql','Creating\x20','.js','pages','warn','1102854JeCydf','570wnIhtO','hook/hook.js','pathFromApp','findAppDirectory','css','getMakaProjectConfig','className','assign','14yobVMR','apollo','test','pathFromProject','388617fjUneg','.css','toString','setTemplate','constructor','baseDir','string','search','test/test.js','/imports/ui/components','create','hook','force','import\x20\x27./','template','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','485946RIHQXs','injectAtBeginningOfFile','true','withValue'];a112c=function(){return r;};return a112c();}import{UsageError}from'../error.js';Generator[a112o(0x1e5)]({'name':a112o(0x1e6),'aliases':['h'],'checkWhere':![],'usage':a112o(0x1bf),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[{'name':a112o(0x1e0),'values':[a112o(0x1c8),'components',a112o(0x1cc),'layouts']},{'name':a112o(0x1e7),'boolFlag':!![]}],'examples':['maka\x20g:hook\x20cool-hook'],'description':'\x0a\x20\x20Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html\x0a\x0a\x20\x20If\x20you\x27d\x20like\x20a\x20hook\x20created\x20as\x20part\x20of\x20an\x20existing\x20page,\x20component,\x20or\x20layout,\x0a\x20\x20use\x20the\x20maka\x20g:hook\x20command\x20with\x20the\x20--baseDir\x20option.\x20For\x20example,\x0a\x0a\x20\x20\x20\x20maka\x20g:hook\x20--baseDir=pages\x20myPage/useCoolHook\x0a\x0a\x20\x20will\x20create\x20a\x20hook\x20in\x20imports/ui/pages/my-page/use-cool-hook.jsx\x0a\x0a\x20\x20'},async function(a,b){const p=a112o;Log['notice'](p(0x1ca)+b[p(0x1c5)]+'\x20hook...');try{const c=this['fsi'][p(0x1b9)](p(0x1c2));if(!c){Log['error'](p(0x1ea));throw new UsageError();}const d=this[p(0x1c1)][p(0x1d2)](),f=b[p(0x1e0)]?p(0x1c3)+b[p(0x1e0)]:p(0x1e4),g=this['fsi'][p(0x1d1)]({'pathParts':[f,b['dir'],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),h=await this[p(0x1c1)][p(0x1d4)]();await this[p(0x1c1)][p(0x1b5)](h,async()=>{const q=p;typeof h[q(0x1e9)][q(0x1d3)]===q(0x1e1)&&(h[q(0x1e9)][q(0x1d3)]=h['template'][q(0x1d3)]===q(0x1b4)?!![]:![],this[q(0x1c1)][q(0x1de)](q(0x1d3),h[q(0x1e9)][q(0x1d3)]));h['engines'][q(0x1c9)]===q(0x1d8)&&!this[q(0x1c1)][q(0x1b9)]('@apollo/client')&&(Log[q(0x1cd)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[q(0x1c1)]['installNpmPackage'](q(0x1c4),{'cwd':d}));const i={'cssCaseName':paramCase(b[q(0x1c5)]),'camelCaseName':camelCase(b[q(0x1c5)]),'className':pascalCase(b[q(0x1c5)]),'name':pascalCase(b[q(0x1c5)]),'graphql':h[q(0x1be)][q(0x1c9)],'theme':h[q(0x1be)]['theme'],'features':h[q(0x1bd)],'myPath':a112e['relative'](this['fsi'][q(0x1da)]({}),g),'fileName':paramCase(b[q(0x1c5)]),'isComponent':![],'isLayout':![],'withTranslations':h[q(0x1bd)]['withTranslations']};await this[q(0x1c1)][q(0x1e9)]({'srcPath':q(0x1d0),'destPath':g+q(0x1cb),'context':i,'config':h,'framework':'react','force':b[q(0x1e7)]});h['template'][q(0x1d3)]&&(await this[q(0x1c1)][q(0x1e9)]({'srcPath':q(0x1bc),'destPath':g+q(0x1dc),'context':Object[q(0x1d6)]({},i,{'className':i['cssCaseName']}),'config':h,'force':b[q(0x1e7)]}),await this['fsi'][q(0x1ec)]({'filePath':g+'.'+h[q(0x1be)]['js'],'content':q(0x1e8)+i[q(0x1bb)]+'.'+h[q(0x1be)]['css']+'\x27;'}));h[q(0x1be)][q(0x1d9)]!=='none'&&await this[q(0x1c1)][q(0x1e9)]({'srcPath':q(0x1e3),'destPath':g+'.app-tests.js','framework':q(0x1c2),'context':i,'config':h,'force':b[q(0x1e7)]});const j=b['dir']?'/'+b['dir']+'/':'/',k=''+f+j+i['fileName']+'/'+i[q(0x1bb)];await this['fsi'][q(0x1b6)](i[q(0x1d5)],h,k);});}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a113d,c=a();while(!![]){try{var d=-parseInt(f(0x1ec))/0x1+parseInt(f(0x1f1))/0x2*(-parseInt(f(0x1eb))/0x3)+-parseInt(f(0x1f2))/0x4+parseInt(f(0x1ea))/0x5+parseInt(f(0x1e9))/0x6+-parseInt(f(0x1ed))/0x7+parseInt(f(0x1ee))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xbe52d));var a113b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a113d;if(c){var e=c[g(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){var h=a113d;return a113a[h(0x1f0)]()[h(0x1e7)](h(0x1e8))[h(0x1f0)]()[h(0x1ef)](a113a)['search']('(((.+)+)+)+$');});function a113c(){var i=['65296FUsoZs','7426784KolIGU','constructor','toString','2qQfTzX','4334892XRSLyI','apply','search','(((.+)+)+)+$','7499364NDTWRZ','5569770MqMVHS','2273016hzfVeu','661908IhirUe'];a113c=function(){return i;};return a113c();}a113a();function a113d(a,b){var c=a113c();return a113d=function(d,e){d=d-0x1e6;var f=c[d];return f;},a113d(a,b);}import'./kit.js';import'./mui/_index.js';import'./esri/_index.js';import'./auth/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a114d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a114d,c=a();while(!![]){try{var d=parseInt(f(0xaa))/0x1*(-parseInt(f(0xa8))/0x2)+-parseInt(f(0xa3))/0x3*(-parseInt(f(0xab))/0x4)+-parseInt(f(0xa2))/0x5+parseInt(f(0xa9))/0x6+parseInt(f(0xa6))/0x7+parseInt(f(0xa5))/0x8+parseInt(f(0xa0))/0x9*(-parseInt(f(0xa1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xdb8fc));var a114b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a114d;if(c){var e=c[g(0xac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){var h=a114d;return a114a[h(0x9f)]()[h(0xa7)](h(0xa4))[h(0x9f)]()['constructor'](a114a)[h(0xa7)](h(0xa4));});a114a();function a114c(){var i=['(((.+)+)+)+$','4700808ayAuvk','10005247CQzzQQ','search','64124vovdTE','2543394PZNsZf','47TkZPvE','102028gwGrXv','apply','toString','2646981urrHCk','20kLGzte','930340dlCySZ','87GEWuUq'];a114c=function(){return i;};return a114c();}function a114d(a,b){var c=a114c();return a114d=function(d,e){d=d-0x9f;var f=c[d];return f;},a114d(a,b);}import'./auth.generator.js';import'./provider.auth.gen.js';import'./basic-meteor.auth.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115h=a115d;(function(a,b){const f=a115d,c=a();while(!![]){try{const d=parseInt(f(0xb3))/0x1*(-parseInt(f(0xb2))/0x2)+parseInt(f(0xb1))/0x3+-parseInt(f(0xb7))/0x4*(parseInt(f(0xbf))/0x5)+-parseInt(f(0xb8))/0x6+-parseInt(f(0xbb))/0x7+-parseInt(f(0xbe))/0x8+parseInt(f(0xae))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x2eddd));const a115b=(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;};}()),a115a=a115b(this,function(){const g=a115d;return a115a[g(0xbc)]()[g(0xaf)](g(0xb4))['toString']()[g(0xb6)](a115a)[g(0xaf)]('(((.+)+)+)+$');});a115a();function a115c(){const j=['1675920Koywyl','6672870vFZKVe','search','create','408432raffPa','4bryUkc','36727wVdlxX','(((.+)+)+)+$','auth','constructor','4EpuyvN','958872ChuTkR','maka\x20g:kit:a','maka\x20{generate,\x20g}:{kit,\x20k}:{auth,\x20a}:<kit-name>','164206xwuKFe','toString','NIE','749608koogaf'];a115c=function(){return j;};return a115c();}import{Generator}from'../../../generator.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xae;let f=c[d];return f;},a115d(a,b);}import a115e from'../kit.js';const AuthGen=Generator[a115h(0xb0)]({'name':a115h(0xb5),'aliases':['a'],'usage':a115h(0xba),'noNeedResource':!![],'shortDesc':'Starting\x20point\x20for\x20generating\x20an\x20Auth\x20Provider','validOpts':[''],'isPro':!![],'examples':[a115h(0xb9)],'description':'\x0a\x20\x20\x20\x20This\x20kit\x20will\x20create\x20a\x20starting\x20point\x20for\x20an\x20Authentication\x20Provider.\x0a\x20\x20'},async function(){const i=a115h;throw i(0xbd);},async function(){},a115e);export default AuthGen;
|