@maka/maka-cli 5.0.34 → 5.0.35
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 +2 -2
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/templates/meteor/project/package.json +2 -0
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=parseInt(w(0x177))/0x1*(parseInt(w(0x179))/0x2)+parseInt(w(0x18f))/0x3*(parseInt(w(0x187))/0x4)+parseInt(w(0x167))/0x5+parseInt(w(0x16e))/0x6*(-parseInt(w(0x17a))/0x7)+parseInt(w(0x18b))/0x8+parseInt(w(0x189))/0x9*(parseInt(w(0x188))/0xa)+-parseInt(w(0x16f))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x7c5d3));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0x156)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a[y(0x15e)]()['search'](y(0x183))['toString']()[y(0x191)](a97a)[y(0x170)](y(0x183));});a97a();import a97e from'fs';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x156;let f=c[d];return f;},a97d(a,b);}import a97f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';function a97c(){const B=['62514ysxmrv','8780673jkzfNo','search','ping','mkKeysDir','env','getAppConfigPath','letsencrypt.json','notice','293686xwXfqh','error','2oHpPcO','658pfUFMT','generate-csr','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','generate-ssc','sudo\x20snap\x20install\x20--classic\x20certbot','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','maka\x20ssl\x20[command]','join','(((.+)+)+)+$','domains','cfg','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','4019332lFiUhv','5144390HMRatS','9ElyEIq','withSpinner','3470496OhwEpM','email','genSSC','Verifying\x20Letsencrypt\x20configuration','3Yescmt','.crt','constructor','uname\x20-a','apply','exit','New\x20CSR\x20written\x20to\x20','letsencrypt','success','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','stringify','.key','toString','getMakaProjectConfig','ask','/ssh.json','existsSync','assign','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','ssh','readFileSync','201270eYqSkw','.csr','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','appName','writeFileSync','Please\x20provide\x20a\x20command.','[?]\x20Domains\x20to\x20register:\x20'];a97c=function(){return B;};return a97c();}import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':'ssl','usage':a97z(0x181),'validOpts':[a97z(0x184),a97z(0x18c)],'requiredOpts':[a97z(0x173)],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':['maka\x20ssl\x20--env\x20dev\x20generate-csr',a97z(0x17d),a97z(0x164)]},async function(a,b){const A=a97z,c=this[A(0x185)][A(0x15f)](),d=this[A(0x185)]['getEnvFromShorthand'](b[A(0x173)]),f=this[A(0x185)][A(0x174)](d),g=this['fsi'][A(0x172)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x17b))SSL['genCSR']({'keyName':c[A(0x16a)]+A(0x15d),'csrName':c[A(0x16a)]+A(0x168),'cwd':g});else{if(h===A(0x17e)){if(!a97e[A(0x162)](a97f[A(0x182)](g,c[A(0x16a)]+A(0x15d))))throw A(0x186)+a97f[A(0x182)](g,c[A(0x16a)]+A(0x15d));if(!a97e[A(0x162)](a97f['join'](g,c[A(0x16a)]+'.csr')))throw A(0x169)+a97f[A(0x182)](g,c[A(0x16a)]+'.csr');SSL[A(0x18d)]({'keyName':c[A(0x16a)]+A(0x15d),'crtName':c[A(0x16a)]+A(0x190),'cwd':g}),Log['notice'](A(0x158)+g);}else{if(h===A(0x159)){let i=b[A(0x184)],j=b[A(0x18c)];try{const q=a97e[A(0x166)](a97f[A(0x182)](f,A(0x175)))[A(0x15e)](),r=JSON['parse'](q);i=b['domains']?b['domains']:r['domainNames'],j=b['email']?b[A(0x18c)]:r['emailUpdate'],(!b[A(0x18c)]||!b[A(0x184)])&&Log[A(0x176)]('Using\x20saved\x20letsencrypt\x20config');}catch(s){}const k=JSON['parse'](a97e[A(0x166)](f+A(0x161))[A(0x15e)]());Object[A(0x163)](k,{'env':f}),Log[A(0x176)]('Checking\x20remote\x20host\x20availability');try{const t=SSH[A(0x171)](A(0x192),k);if(!t)throw A(0x180);if(t)Log[A(0x15a)]('Remote\x20host\x20connection\x20successful');}catch(u){Log['error'](u);return;}const l=Log[A(0x18a)]();l['start'](A(0x18e)),SSH[A(0x165)](A(0x15b),{...k}),SSH[A(0x165)](A(0x17f),{...k}),SSH['ssh']('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...k}),l['success']();const m=i?i:await Actions[A(0x160)](A(0x16d)),n=j?j:await Actions[A(0x160)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH['ssh'](A(0x17c)+m+'\x20--email\x20'+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x15c)](o,null,0x2);a97e[A(0x16b)](a97f[A(0x182)](f,A(0x175)),p);}else throw A(0x16c);}}}catch(v){console[A(0x178)](v),process[A(0x157)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98x=a98d;(function(a,b){const t=a98d,c=a();while(!![]){try{const d=-parseInt(t(0x1e3))/0x1*(-parseInt(t(0x1cd))/0x2)+parseInt(t(0x1ef))/0x3+parseInt(t(0x1ba))/0x4*(parseInt(t(0x1e7))/0x5)+parseInt(t(0x1d5))/0x6*(parseInt(t(0x1c8))/0x7)+parseInt(t(0x1b8))/0x8+-parseInt(t(0x1b7))/0x9+parseInt(t(0x1b6))/0xa*(-parseInt(t(0x1ad))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x4ac9b));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a98d;if(c){const e=c[u(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const v=a98d;return a98a[v(0x1d2)]()[v(0x1d0)](v(0x1ed))[v(0x1d2)]()['constructor'](a98a)[v(0x1d0)]('(((.+)+)+)+$');});a98a();import a98e from'fs';import a98f from'path';function a98c(){const A=['378390brdpDi','3234744qnPDhV','2953856jiGCsI','Node\x20Env\x20Config:\x20','661852KuaPFN','config.json','isMeteorInstalled','process.env','parse','--driver','cfg','driver','cwd','filter','getEnvFromShorthand','relative','slice','packages','221116IcuAAz','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','fsi','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','once','2nxJgoh','splice','inspect','search','inherit','toString','checkConfigExists','join','12doluEs','findProjectDirectory','local','env','checkNpmPackage','concat','mocha','driver-package','mpi','exit','apply','port','config','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','448873ediywE','test','none','Meteor\x20is\x20installed.','10FBdSdS','--driver-package','rawLogs','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','invokeMeteorCommand','isFile','(((.+)+)+)+$','driverPackage','63375AtipEr','--settings','openSync','testAppPath','.maka','maka\x20install\x20--force','settings','info','notice','warn','165wllIZz','readFileSync','sanjo:jasmine','pkg','Meteor\x20Settings:\x20','--env','settings.json','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','unit'];a98c=function(){return A;};return a98c();}import a98g from'dotenv';import{execSync}from'child_process';import a98h from'../generators/maka.gen.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a98d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const w=a98d;a98e[w(0x1f1)](a,'r'),a98g[w(0x1e1)]({'path':a});};Command['create']({'name':a98x(0x1e4),'mustBeInMakaProject':!![],'validOpts':[a98x(0x1cc),a98x(0x1c7),'driver',a98x(0x1ee),'unit',a98x(0x1d8),a98x(0x1e9),a98x(0x1e0),a98x(0x1cf),a98x(0x1f2)],'usage':'maka\x20test','aliases':['t','tests'],'shortDesc':a98x(0x1c9),'examples':[]},async function(a,b){const y=a98x;try{this['mpi'][y(0x1bc)]()?Log[y(0x1ab)](y(0x1e6)):(Log[y(0x1ac)](y(0x1b4)),execSync(y(0x1f4),{'stdio':y(0x1d1)}));this[y(0x1b0)][y(0x1d9)]('@testing-library/dom\x20meteor-node-stubs',{'shouldInstall':!![]});const c=b[y(0x1d8)]?this[y(0x1c0)][y(0x1c4)](b[y(0x1d8)]):y(0x1d7);(!b[y(0x1b5)]||!!b[y(0x1cc)])&&(a=a['concat'](['--full-app']));b['unit']&&delete b[y(0x1b5)];let d=b[y(0x1dc)]||b[y(0x1c1)]||y(0x1e5);if(d===y(0x1e5)){const l=JSON[y(0x1be)](a98e[y(0x1ae)](a98f['join'](this[y(0x1ca)]['findProjectDirectory'](),y(0x1f3),y(0x1bb)),'utf8'));if(l['engines'][y(0x1e4)]==='jasmine')d=y(0x1af);else l['engines'][y(0x1e4)]===y(0x1db)&&(d='meteortesting:mocha');}if(d==='none')throw y(0x1ea);(!b[y(0x1dc)]||!b[y(0x1c1)])&&(a=a[y(0x1da)]([y(0x1e8),d]));const f=this[y(0x1c0)][y(0x1d3)]('local');if(!f){Log['warn'](y(0x1e2));const m=this[y(0x1ca)][y(0x1d6)]();await a98h['processAndRunGenerator'](y(0x1e1),['local'],{'cwd':m,'root':!![]});}const g=this[y(0x1c0)]['getAppConfigPath'](c),h=a98f[y(0x1d4)](g,y(0x1bd));let i=a98f[y(0x1d4)](g,y(0x1b3));b[y(0x1a9)]?i=b[y(0x1a9)]:i=a98f[y(0x1d4)](g,y(0x1b3));if(this['fsi'][y(0x1ec)](h)){const n=a98f['relative'](process[y(0x1c2)](),h);Log['notice'](y(0x1b9)+n),syncSource(h);}else{const o=a98f[y(0x1c5)](process[y(0x1c2)](),h);Log[y(0x1aa)]('Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20'+o),this[y(0x1ca)]['createFile']({'filePath':h,'data':''});}if(this[y(0x1ca)][y(0x1ec)](i)){const p=a98f[y(0x1c5)](process[y(0x1c2)](),i);Log[y(0x1ab)](y(0x1b1)+p),a=a[y(0x1da)]([y(0x1f0),i]);}else{const q=a98f[y(0x1c5)](process[y(0x1c2)](),i);Log[y(0x1ac)](y(0x1cb)+q);}const j=process['argv'][y(0x1c6)](0x2)[y(0x1c3)](r=>r!==y(0x1b2))['filter'](r=>r!==y(0x1e4))[y(0x1c3)](r=>r!==a[0x0]);j['forEach']((r,s)=>{const z=y;(r===z(0x1b2)||r===z(0x1bf))&&j[z(0x1ce)](s,0x2),r==='--packages'&&j['splice'](s,0x1);});const k=b[y(0x1c7)]?'test-packages':y(0x1e4);this[y(0x1dd)][y(0x1eb)](k,a[y(0x1da)](j));}catch(r){console['error'](r),process[y(0x1de)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a99i=a99d;function a99d(a,b){var c=a99c();return a99d=function(d,e){d=d-0x121;var f=c[d];return f;},a99d(a,b);}(function(a,b){var f=a99d,c=a();while(!![]){try{var d=-parseInt(f(0x129))/0x1+parseInt(f(0x123))/0x2+parseInt(f(0x12b))/0x3*(parseInt(f(0x122))/0x4)+parseInt(f(0x12c))/0x5+parseInt(f(0x12a))/0x6+-parseInt(f(0x126))/0x7*(parseInt(f(0x12f))/0x8)+-parseInt(f(0x121))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x2fc70));var a99b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a99d;if(c){var e=c[g(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){var h=a99d;return a99a[h(0x128)]()[h(0x12d)]('(((.+)+)+)+$')[h(0x128)]()['constructor'](a99a)[h(0x12d)](h(0x130));});a99a();import{Command}from'../command.js';import a99e from'../generators/maka.gen.js';Command[a99i(0x125)]({'name':a99i(0x127),'aliases':['u'],'validOpts':[],'shortDesc':a99i(0x12e),'experimental':!![]},async function(){var j=a99i;a99e[j(0x127)]();});function a99c(){var k=['Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','395800GiYHbt','(((.+)+)+)+$','2449773XacCUB','20MHjMMo','183226DSYzNn','apply','create','35SplcIa','undo','toString','315515iNaBqN','2138820eTBerT','115377NTtdkb','1952025ESkOVZ','search'];a99c=function(){return k;};return a99c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100k=a100d;(function(a,b){const h=a100d,c=a();while(!![]){try{const d
|
|
1
|
+
const a100k=a100d;(function(a,b){const h=a100d,c=a();while(!![]){try{const d=-parseInt(h(0x200))/0x1+parseInt(h(0x1e9))/0x2*(parseInt(h(0x1ea))/0x3)+parseInt(h(0x1fd))/0x4*(parseInt(h(0x208))/0x5)+parseInt(h(0x1ec))/0x6+parseInt(h(0x205))/0x7*(parseInt(h(0x1e4))/0x8)+parseInt(h(0x1e3))/0x9+-parseInt(h(0x1f0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xd4ae4));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a100d;if(c){const e=c[i(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const j=a100d;return a100a[j(0x1e6)]()[j(0x1e5)](j(0x206))['toString']()[j(0x1ef)](a100a)['search']('(((.+)+)+)+$');});a100a();import a100e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a100k(0x1fa)};function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x1e1;let f=c[d];return f;},a100d(a,b);}function a100c(){const m=['maka\x20version','857486hgRPoM','isMakaProject','notice','----------------------Project----------------------------','error','21lhlZwO','(((.+)+)+)+$','version','6386390oRRhrM','\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','Maka\x20','exit','271800jAWYou','4314296VjVFGr','search','toString','compareMakaToLatest','valid','4YhdzgC','914844aznbVn','mpi','5796894frDwVg','apply','\x0a\x20\x20***\x20VERBOSE\x20FLAG\x20DISABLED\x20DUE\x20TO\x20METEOR\x20CHECK\x20ON\x20VERSION\x20<\x203.0\x20***\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','constructor','27727580WPxuRu','warn','replace','Project\x27s\x20Meteor\x20Version\x20','majestic','maka\x20v','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','getProjectMeteorVersion','create','getGlobalMeteorVersion','5.0.35','bright','System\x27s\x20Meteor\x20Version\x20','4UCRVAP','fsi'];a100c=function(){return m;};return a100c();}Command[a100k(0x1f8)]({'name':a100k(0x207),'aliases':['v'],'usage':a100k(0x1ff),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a100k(0x1f5),a100k(0x1ff)],'description':a100k(0x1ee)},async function(a,b){const l=a100k;try{Log[l(0x1f4)](l(0x1e1)+pjson[l(0x207)]),await this[l(0x1fe)][l(0x1e7)]();if(b['verbose']){await this[l(0x1fe)][l(0x1e7)](),Log['bright']('----------------------System----------------------------');const c=this[l(0x1eb)][l(0x1f9)]();Log[l(0x1fb)]((l(0x1fc)+c)[l(0x1f2)]('\x0a',''));if(this[l(0x1fe)][l(0x201)]()){Log['bright'](l(0x203));const d=this[l(0x1fe)][l(0x1f7)]();try{!a100e[l(0x1e8)](d)?Log[l(0x1f1)](l(0x1f3)+d[l(0x1f2)]('\x0a','')):Log[l(0x202)](l(0x1f3)+d[l(0x1f2)]('\x0a',''));}catch(f){Log[l(0x204)]('An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20'+f),Log[l(0x204)](l(0x1f6));}Log[l(0x1fb)](l(0x209));}}}catch(g){console[l(0x204)](g),process[l(0x1e2)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a101d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a101d,c=a();while(!![]){try{var d=parseInt(f(0xb8))/0x1+parseInt(f(0xac))/0x2+parseInt(f(0xb6))/0x3+-parseInt(f(0xae))/0x4*(parseInt(f(0xb2))/0x5)+parseInt(f(0xb7))/0x6*(-parseInt(f(0xaf))/0x7)+-parseInt(f(0xb9))/0x8*(-parseInt(f(0xab))/0x9)+parseInt(f(0xb5))/0xa*(-parseInt(f(0xb3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xaec20));var a101b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a101d;if(c){var e=c[g(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){var h=a101d;return a101a[h(0xb0)]()['search'](h(0xb1))[h(0xb0)]()[h(0xad)](a101a)[h(0xb4)](h(0xb1));});function a101c(){var i=['64hiOmkT','7746403iEYXNb','toString','(((.+)+)+)+$','325300QjnfBI','11tuOjNo','search','7755890tgsHeK','4104471QsGBce','6AlVslw','493048NpXSfY','1648744gzqJbT','apply','36nULoJx','1906818LpoTqO','constructor'];a101c=function(){return i;};return a101c();}a101a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a101d(a,b){var c=a101c();return a101d=function(d,e){d=d-0xaa;var f=c[d];return f;},a101d(a,b);}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const
|
|
2
|
+
const a102k=a102d;(function(a,b){const h=a102d,c=a();while(!![]){try{const d=-parseInt(h(0xe5))/0x1*(-parseInt(h(0xec))/0x2)+parseInt(h(0xe0))/0x3*(-parseInt(h(0xed))/0x4)+-parseInt(h(0xe8))/0x5*(parseInt(h(0xf4))/0x6)+-parseInt(h(0xef))/0x7*(parseInt(h(0xe7))/0x8)+parseInt(h(0xf2))/0x9+parseInt(h(0xdf))/0xa*(parseInt(h(0xe6))/0xb)+parseInt(h(0xe2))/0xc*(parseInt(h(0xe9))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x7ca24));const a102b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a102d;if(c){const e=c[i(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){const j=a102d;return a102a[j(0xf5)]()['search'](j(0xea))[j(0xf5)]()[j(0xde)](a102a)['search']('(((.+)+)+)+$');});a102a();function a102d(a,b){const c=a102c();return a102d=function(d,e){d=d-0xdc;let f=c[d];return f;},a102d(a,b);}import a102e from'path';function a102c(){const l=['join','119204OUmYjo','99KhoRGT','136vipzgE','291265fvMsMN','5096NtOMNo','(((.+)+)+)+$','global-config.json','4LLBXIJ','44qxHSqU','env','39067qqojtz','apply','homedir','108909HFwWyR','writeFileSync','54tNSJqa','toString','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','.meteor','constructor','1008260PdVbco','58497PEdUGB','existsSync','5700tYyEVx','NODE_OPTIONS'];a102c=function(){return l;};return a102c();}import a102f from'os';import a102g from'fs';const homeDir=a102f[a102k(0xf1)](),GLOBAL_CONFIG=a102k(0xeb),pathToGlobalMakaConfig=a102e[a102k(0xe4)](homeDir,a102k(0xdd),'.maka',GLOBAL_CONFIG);if(!a102g[a102k(0xe1)](pathToGlobalMakaConfig)){const jsonData=JSON['stringify']({},null,0x2);a102g[a102k(0xf3)](pathToGlobalMakaConfig,jsonData);}process[a102k(0xee)][a102k(0xe3)]=a102k(0xdc);import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103u=a103d;function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x74;let f=c[d];return f;},a103d(a,b);}(function(a,b){const r=a103d,c=a();while(!![]){try{const d=-parseInt(r(0x86))/0x1+parseInt(r(0x9c))/0x2*(-parseInt(r(0xd2))/0x3)+-parseInt(r(0xaa))/0x4*(-parseInt(r(0xe4))/0x5)+parseInt(r(0xc2))/0x6*(-parseInt(r(0xbc))/0x7)+-parseInt(r(0xa2))/0x8+parseInt(r(0xcb))/0x9+parseInt(r(0xf0))/0xa*(parseInt(r(0xea))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x30edb));const a103b=(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;};}()),a103a=a103b(this,function(){const s=a103d;return a103a['toString']()[s(0x78)]('(((.+)+)+)+$')[s(0xb1)]()[s(0xb9)](a103a)[s(0x78)](s(0xe1));});a103a();import a103e from'path';import a103f from'fs';import a103g from'cli-table';import{v4 as a103h}from'uuid';import{kebabCase}from'change-case';import a103i 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=a103h();async function inside(a='.',b){const t=a103d,c=process[t(0xa3)]();try{return process[t(0xc5)](a),await b();}finally{process[t(0xc5)](c);}}export class Generator extends Tool{[a103u(0xf2)];[a103u(0xd0)];[a103u(0xf3)];[a103u(0xd3)];[a103u(0x92)];[a103u(0xcc)];['_genTransactionId'];['_handler'];constructor(a,b,c){const v=a103u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[v(0xf1)])throw new Error(v(0x76));if(typeof b!==v(0xc7))throw new Error(v(0xad));this[v(0xd3)]=[];a[v(0xa1)]===undefined&&(a[v(0xa1)]=!![]);this[v(0xf2)]=Object[v(0xa0)]({},a),this[v(0xf1)]=this[v(0xf2)]['name'],this[v(0xbe)]=b[v(0xbb)](this);try{this[v(0x92)]=this[v(0x7f)][v(0x85)]({'pathParts':['.maka','history.json']})||a103e['join']('.','.maka',v(0xc3));}catch(d){Log[v(0xc1)](d);}c&&(this['_undoHandler']=c['bind'](this));}['getHistoryFileSize'](){const w=a103u;if(a103f[w(0x77)](this['_historyFilePath'])){const a=a103f['statSync'](this['_historyFilePath']);return a[w(0xa5)];}return 0x0;}['readHistory'](){const x=a103u;if(!a103f[x(0x77)](this[x(0x92)]))return[];return JSON['parse'](a103f[x(0xde)](this[x(0x92)],x(0x97)));}[a103u(0xf4)](a){const y=a103u;this[y(0x92)]&&!a103f[y(0x77)](this[y(0x92)])&&a103f['writeFileSync'](this[y(0x92)],JSON[y(0x7e)]([])),a103f[y(0x87)](this['_historyFilePath'],JSON[y(0x7e)](a,null,0x2));}[a103u(0x93)](a){const z=a103u;try{a?.[z(0xa6)]?.[z(0xda)][z(0xc0)]&&delete a[z(0xa6)][z(0xda)]['config'];const b=this[z(0x9b)](),c={'generatorName':this[z(0xd0)],'transactionId':TRANSACTION_ID,'details':a};b[z(0xd5)](c);const d=Buffer[z(0x89)](JSON['stringify'](b))['length'];while(d>MAX_HISTORY_SIZE&&b[z(0xcd)]>0x0){b[z(0xdc)]();}this['writeHistory'](b);}catch(f){Log['error'](f);}}async[a103u(0xd7)](){const A=a103u,a=this[A(0x9b)]();if(a[A(0xcd)]===0x0){Log[A(0xaf)]('Nothing\x20to\x20undo.');return;}const b=a['pop'](),c=b[A(0xe9)],d=a[A(0x98)](e=>e['transactionId']===c);d[A(0xd5)](b),d[A(0x7b)]();for(const e of d){const f=this[A(0xeb)](e[A(0x90)]);if(!f){Log[A(0xc1)](A(0x8d)+e[A(0x90)]+A(0xb0));continue;}if(f[A(0xcc)]){}else Log[A(0xaf)](A(0xdb)+e[A(0x90)]+A(0x74));}this[A(0xf4)](a['filter'](g=>g['transactionId']!==c));}static[a103u(0xe7)](a,b,c,d){const B=a103u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==B(0xc7))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b,c);d=d||a103i;const f=d?d[B(0xd0)]:'';return e[B(0xd0)]=f?f+':'+a[B(0xf1)]:a[B(0xf1)],Object[B(0xa0)](e,{'parent':d?.[B(0xf2)]?.[B(0xf1)]}),d[B(0x91)](e),e;}[a103u(0x91)](a){const C=a103u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[C(0xd3)][C(0xd5)](a);}async[a103u(0x83)](a,b=[],c={}){const D=a103u;let d;try{const f=a?.[D(0xe8)](':');if(!f||f[D(0xcd)]===0x0)throw D(0xbd);let g=this[D(0xd3)],h;for(const i of f){h=g['find'](j=>j[D(0xbf)](i));if(!h)throw D(0x8d)+i+D(0x88);g=h[D(0xd3)];}if(h)d=await h['invoke'](b,c);else throw D(0xb5);}catch(j){Log[D(0xc1)](j);}return d;}[a103u(0xeb)](a){const E=a103u,b=a?.[E(0xe8)](':');if(!b||b[E(0xcd)]===0x0)return Log[E(0xc1)]('Generator\x20format\x20is\x20incorrect'),null;let c=this[E(0xd3)],d;for(const e of b){d=c[E(0x9e)](f=>f[E(0xbf)](e));if(!d)return Log[E(0xc1)]('Generator\x20'+e+E(0x88)),null;c=d[E(0xd3)];}return d||null;}async[a103u(0xa9)](a,b){const F=a103u,c=a[F(0x8b)]();b[F(0x8a)]=c[0x0];const {config:d}=b;try{const f=await this[F(0x81)]['getGlobalConfig'](),g=f['pallet']===F(0xa4)?ColorMode[F(0xb4)]:ColorMode['DARK'];Log[F(0xd9)](g);const h=a[0x0]===_prevGen||a['length']===0x0&&this[F(0xd3)]['length']>=0x0,i=b[F(0xac)]||b['h'];if(h&&i){if(this[F(0xd3)][F(0xcd)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[F(0xf2)][F(0x7a)]){if(!d){const j=this[F(0xb7)]();if(!j)throw new MustBeInProjectError();this['projectConfig']=this[F(0x81)]['getMakaProjectConfig']();}else this[F(0xf3)]=d;}if(this[F(0xf2)][F(0x7c)]){const k=this[F(0xe2)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[F(0xf2)][F(0xb3)]===F(0x75)){if(a[F(0xcd)]<this[F(0xf2)]['minArgLength']){Log[F(0xc1)](F(0x95));throw new UsageError();}}if(typeof this[F(0xf2)][F(0x79)]===F(0x75)){if(a['length']>this[F(0xf2)][F(0x79)]){Log['error'](F(0x8f));throw new UsageError();}}if(typeof this[F(0xf2)][F(0xec)]===F(0x75)){if(Object[F(0xba)](b)[F(0xcd)]<this[F(0xf2)][F(0xec)]){Log[F(0xc1)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this['options'][F(0xb8)]===F(0x75)){if(Object[F(0xba)](b)[F(0xcd)]>=this[F(0xf2)][F(0xb8)]){Log[F(0xc1)](F(0xce));throw new UsageError();}}}this[F(0xf2)][F(0xe0)]&&this[F(0x80)](this[F(0xf2)]['requiredEngines']);await this[F(0x84)](a,b,this[F(0xf2)]);if(!b['resourceName']&&this['options']['resourceNameRequired']){Log[F(0xc1)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(l){this['handleGenerateError'](l),process['exit'](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0xef)]&&!this[G(0x7f)][G(0xd6)]())throw new MustBeInProjectError();const m=b[G(0x8a)]?.[G(0xc8)](/\\/g,'/')[G(0xe8)]('/');!b[G(0xb2)]&&(m?.[G(0xcd)]>0x1?(b[G(0x8a)]=m[G(0xdd)](),c[0x0]=b[G(0x8a)],b[G(0xb2)]=m[G(0xb6)](o=>{return kebabCase(o);})[G(0xd4)](a103e[G(0xa7)])):b[G(0xb2)]='');if(this['options'][G(0x99)]){if(!b[G(0xab)]){const p=await Actions['select']({'message':G(0xe3),'name':'colLocAnswer','choices':[{'name':'Client','value':G(0xdf)},{'name':G(0x8e),'value':G(0x8c)},{'name':'Both','value':G(0xd1)}]});b[G(0xab)]=p;}const o=[G(0xd1),G(0xdf),'server'];if(!o['includes'](b[G(0xab)])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0xab)]){case'both':b[G(0x7d)]=G(0xca);break;case'server':b[G(0x7d)]='server';break;case G(0xdf):b[G(0x7d)]='client';break;default:b[G(0x7d)]='';}}const n=await this[G(0xbe)]['call'](this,c,b);return n&&this[G(0x93)]({'params':{'args':c,'opts':this[G(0x7f)][G(0x9a)](b)},'success':n?.['success'],'message':n?.['message'],'details':n?.['details']}),n;}catch(q){this[G(0xc4)](q);}});}['listGenerators'](){const H=a103u;this[H(0xc6)](this[H(0xd3)]);}[a103u(0xc4)](a){const I=a103u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0xf2)];Log[I(0x9d)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0xc9)](I(0xee)),this['tableList'](this[I(0xd3)]);else{if(a instanceof MustBeInProjectError)Log['error'](I(0x96));else{if(a instanceof NoMeteorFoundError)Log[I(0xc1)](I(0x82)),Log[I(0xc9)](I(0xed));else a instanceof NoMeteorAppFoundError&&Log[I(0xc1)](I(0xe5));}}}[a103u(0xc6)](a){const J=a103u,b=new a103g({});b[J(0xd5)](['Name',J(0x94),J(0xa8)]),a['sort']((c,d)=>{const K=J;return c['name']['localeCompare'](d[K(0xf1)]);})[J(0xd8)](c=>{const L=J,d=c['experimental'](),e=d?L(0xe6)+c['shortDesc']():c[L(0xae)]();b['push']([c[L(0xf1)],c[L(0x9f)](),e]);}),Log[J(0xcf)](b[J(0xb1)]());}}function a103c(){const M=['You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','utf-8','filter','checkWhere','deepen','readHistory','78418LSOmZZ','usage','find','aliases','assign','resourceNameRequired','2651192akefQE','cwd','light','size','params','sep','Description','invoke','412TQbFGO','where','help','Generator\x20requires\x20a\x20handler\x20function','shortDesc','warn','\x20not\x20found.\x20Cannot\x20undo.','toString','dir','minArgLength','LIGHT','Generator\x20not\x20found','map','validateMakaProject','maxOptsLength','constructor','keys','bind','14yeAJoC','Generator\x20format\x20is\x20incorrect','_handler','match','config','error','976968XNAwdP','history.json','handleGenerateError','chdir','tableList','function','replace','notice','lib','2742183EvJcCB','_undoHandler','length','Too\x20many\x20options','bright','fullNameChain','both','30bPwrII','_generators','join','push','findProjectDirectory','undo','forEach','setColorMode','opts','No\x20undo\x20handler\x20defined\x20for\x20','shift','pop','readFileSync','client','requiredEngines','(((.+)+)+)+$','validateMeteorInstall','Location','11930KLoxSo','There\x20is\x20no\x20Meteor\x20application\x20here','(experimental)\x20','create','split','transactionId','10815673UosZHI','findGeneratorByName','minOptsLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Generators:','root','10UTJTeE','name','options','projectConfig','writeHistory','\x20generator.\x20Skipping\x20undo.','number','Generator\x20requires\x20a\x20name','existsSync','search','maxArgLength','mustBeInMakaProject','reverse','mustHaveMeteorInstalled','appPathPrefix','stringify','fsi','validateEngines','cfg','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','processAndRunGenerator','validateParams','pathFromProject','284132PlPSxo','writeFileSync','\x20not\x20found','from','resourceName','slice','server','Generator\x20','Server','Too\x20many\x20arguments','generatorName','addGenerator','_historyFilePath','addToHistory','Alias','Too\x20few\x20arguments'];a103c=function(){return M;};return a103c();}
|
|
1
|
+
const a103u=a103d;(function(a,b){const r=a103d,c=a();while(!![]){try{const d=-parseInt(r(0x182))/0x1+-parseInt(r(0x1dd))/0x2+-parseInt(r(0x200))/0x3*(-parseInt(r(0x208))/0x4)+-parseInt(r(0x1e3))/0x5+parseInt(r(0x1cd))/0x6*(parseInt(r(0x206))/0x7)+-parseInt(r(0x1a7))/0x8*(parseInt(r(0x180))/0x9)+parseInt(r(0x1ee))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x48dd8));const a103b=(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;};}()),a103a=a103b(this,function(){const s=a103d;return a103a['toString']()[s(0x1e8)](s(0x1d8))['toString']()[s(0x181)](a103a)[s(0x1e8)](s(0x1d8));});a103a();import a103e from'path';import a103f from'fs';import a103g from'cli-table';import{v4 as a103h}from'uuid';import{kebabCase}from'change-case';import a103i 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=a103h();async function inside(a='.',b){const t=a103d,c=process[t(0x1b6)]();try{return process[t(0x1be)](a),await b();}finally{process[t(0x1be)](c);}}export class Generator extends Tool{[a103u(0x1d1)];[a103u(0x1ce)];['projectConfig'];[a103u(0x1a6)];[a103u(0x191)];[a103u(0x1ef)];[a103u(0x209)];[a103u(0x17e)];constructor(a,b,c){const v=a103u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[v(0x1bd)])throw new Error(v(0x1e2));if(typeof b!=='function')throw new Error(v(0x1e4));this[v(0x1a6)]=[];a['resourceNameRequired']===undefined&&(a[v(0x1cb)]=!![]);this[v(0x1d1)]=Object['assign']({},a),this['name']=this[v(0x1d1)][v(0x1bd)],this[v(0x17e)]=b['bind'](this);try{this['_historyFilePath']=this[v(0x1c8)]['pathFromProject']({'pathParts':[v(0x17f),v(0x1ed)]})||a103e[v(0x187)]('.',v(0x17f),v(0x1ed));}catch(d){Log[v(0x1df)](d);}c&&(this[v(0x1ef)]=c[v(0x1ff)](this));}[a103u(0x190)](){const w=a103u;if(a103f['existsSync'](this[w(0x191)])){const a=a103f[w(0x1b7)](this[w(0x191)]);return a[w(0x1c3)];}return 0x0;}[a103u(0x1f4)](){const x=a103u;if(!a103f['existsSync'](this[x(0x191)]))return[];return JSON['parse'](a103f[x(0x1c6)](this[x(0x191)],x(0x1f9)));}[a103u(0x1f8)](a){const y=a103u;this[y(0x191)]&&!a103f[y(0x1f3)](this[y(0x191)])&&a103f[y(0x1c9)](this[y(0x191)],JSON[y(0x1d3)]([])),a103f[y(0x1c9)](this[y(0x191)],JSON['stringify'](a,null,0x2));}[a103u(0x18f)](a){const z=a103u;try{a?.[z(0x1cf)]?.[z(0x1de)][z(0x1f6)]&&delete a[z(0x1cf)][z(0x1de)][z(0x1f6)];const b=this['readHistory'](),c={'generatorName':this[z(0x1ce)],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[z(0x19b)](JSON['stringify'](b))[z(0x1bc)];while(d>MAX_HISTORY_SIZE&&b[z(0x1bc)]>0x0){b[z(0x1fe)]();}this[z(0x1f8)](b);}catch(f){Log[z(0x1df)](f);}}async[a103u(0x19e)](){const A=a103u,a=this['readHistory']();if(a[A(0x1bc)]===0x0){Log[A(0x1bf)](A(0x1f5));return;}const b=a[A(0x1f2)](),c=b[A(0x1ad)],d=a['filter'](e=>e[A(0x1ad)]===c);d[A(0x1a5)](b),d[A(0x1ab)]();for(const e of d){const f=this['findGeneratorByName'](e['generatorName']);if(!f){Log['error'](A(0x1c0)+e['generatorName']+A(0x1b9));continue;}if(f[A(0x1ef)]){}else Log[A(0x1bf)](A(0x196)+e[A(0x1a0)]+'\x20generator.\x20Skipping\x20undo.');}this[A(0x1f8)](a[A(0x1ca)](g=>g[A(0x1ad)]!==c));}static[a103u(0x19c)](a,b,c,d){const B=a103u;if(!a)throw new Error(B(0x1e5));if(typeof b!==B(0x17d))throw new Error(B(0x197));const e=new Generator(a,b,c);d=d||a103i;const f=d?d['fullNameChain']:'';return e[B(0x1ce)]=f?f+':'+a['name']:a[B(0x1bd)],Object['assign'](e,{'parent':d?.['options']?.[B(0x1bd)]}),d['addGenerator'](e),e;}[a103u(0x19d)](a){const C=a103u;if(!(a instanceof Generator))throw new Error(C(0x1d2));this[C(0x1a6)][C(0x1a5)](a);}async[a103u(0x189)](a,b=[],c={}){const D=a103u;let d;try{const f=a?.[D(0x185)](':');if(!f||f[D(0x1bc)]===0x0)throw D(0x1aa);let g=this[D(0x1a6)],h;for(const i of f){h=g[D(0x184)](j=>j[D(0x1d7)](i));if(!h)throw'Generator\x20'+i+D(0x1ac);g=h[D(0x1a6)];}if(h)d=await h['invoke'](b,c);else throw D(0x18d);}catch(j){Log[D(0x1df)](j);}return d;}['findGeneratorByName'](a){const E=a103u,b=a?.[E(0x185)](':');if(!b||b[E(0x1bc)]===0x0)return Log[E(0x1df)](E(0x1aa)),null;let c=this[E(0x1a6)],d;for(const e of b){d=c[E(0x184)](f=>f[E(0x1d7)](e));if(!d)return Log['error'](E(0x1c0)+e+E(0x1ac)),null;c=d['_generators'];}return d||null;}async[a103u(0x1b4)](a,b){const F=a103u,c=a[F(0x1a9)]();b[F(0x1eb)]=c[0x0];const {config:d}=b;try{const f=await this['cfg']['getGlobalConfig'](),g=f[F(0x1e0)]===F(0x194)?ColorMode[F(0x1e1)]:ColorMode[F(0x18b)];Log[F(0x1a2)](g);const h=a[0x0]===_prevGen||a[F(0x1bc)]===0x0&&this[F(0x1a6)][F(0x1bc)]>=0x0,i=b['help']||b['h'];if(h&&i){if(this[F(0x1a6)][F(0x1bc)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[F(0x1d1)][F(0x188)]){if(!d){const j=this['validateMakaProject']();if(!j)throw new MustBeInProjectError();this['projectConfig']=this[F(0x18a)][F(0x1cc)]();}else this[F(0x1ec)]=d;}if(this['options'][F(0x19a)]){const k=this[F(0x1ae)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[F(0x1d1)][F(0x1f0)]==='number'){if(a[F(0x1bc)]<this['options'][F(0x1f0)]){Log[F(0x1df)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x1d1)][F(0x183)]===F(0x199)){if(a[F(0x1bc)]>this['options'][F(0x183)]){Log['error'](F(0x1d0));throw new UsageError();}}if(typeof this[F(0x1d1)][F(0x1c7)]==='number'){if(Object[F(0x1b1)](b)[F(0x1bc)]<this['options'][F(0x1c7)]){Log[F(0x1df)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[F(0x1d1)]['maxOptsLength']===F(0x199)){if(Object['keys'](b)[F(0x1bc)]>=this['options'][F(0x18c)]){Log[F(0x1df)](F(0x1b3));throw new UsageError();}}}this[F(0x1d1)][F(0x1ea)]&&this[F(0x1a1)](this[F(0x1d1)][F(0x1ea)]);await this[F(0x1f1)](a,b,this['options']);if(!b[F(0x1eb)]&&this[F(0x1d1)][F(0x1cb)]){Log[F(0x1df)](F(0x1e6));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[F(0x1b8)](l),process[F(0x203)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0x193)]&&!this[G(0x1c8)][G(0x1fa)]())throw new MustBeInProjectError();const m=b[G(0x1eb)]?.[G(0x202)](/\\/g,'/')[G(0x185)]('/');!b[G(0x20a)]&&(m?.[G(0x1bc)]>0x1?(b['resourceName']=m[G(0x1f2)](),c[0x0]=b['resourceName'],b[G(0x20a)]=m[G(0x1c1)](o=>{return kebabCase(o);})[G(0x187)](a103e[G(0x1e9)])):b[G(0x20a)]='');if(this[G(0x1d1)][G(0x1da)]){if(!b[G(0x201)]){const p=await Actions[G(0x186)]({'message':G(0x205),'name':'colLocAnswer','choices':[{'name':G(0x1db),'value':G(0x198)},{'name':'Server','value':G(0x1c4)},{'name':G(0x204),'value':G(0x1b2)}]});b['where']=p;}const o=[G(0x1b2),G(0x198),G(0x1c4)];if(!o[G(0x19f)](b['where'])){Log[G(0x1df)](G(0x195));throw new UsageError();}switch(b[G(0x201)]){case G(0x1b2):b[G(0x1c2)]=G(0x1bb);break;case G(0x1c4):b[G(0x1c2)]=G(0x1c4);break;case G(0x198):b[G(0x1c2)]=G(0x198);break;default:b[G(0x1c2)]='';}}const n=await this[G(0x17e)][G(0x1a8)](this,c,b);return n&&this['addToHistory']({'params':{'args':c,'opts':this[G(0x1c8)][G(0x207)](b)},'success':n?.[G(0x1b5)],'message':n?.[G(0x1f7)],'details':n?.['details']}),n;}catch(q){this[G(0x1b8)](q);}});}[a103u(0x1dc)](){const H=a103u;this[H(0x20b)](this[H(0x1a6)]);}[a103u(0x1b8)](a){const I=a103u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x1d1)];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0x1a4)](I(0x1d9)),this[I(0x20b)](this[I(0x1a6)]);else{if(a instanceof MustBeInProjectError)Log['error'](I(0x1a3));else{if(a instanceof NoMeteorFoundError)Log['error'](I(0x1e7)),Log['notice'](I(0x18e));else a instanceof NoMeteorAppFoundError&&Log['error'](I(0x1d6));}}}['tableList'](a){const J=a103u,b=new a103g({});b[J(0x1a5)](['Name',J(0x1d5),J(0x1c5)]),a[J(0x1fd)]((c,d)=>{const K=J;return c[K(0x1bd)][K(0x1fb)](d['name']);})[J(0x1b0)](c=>{const L=J,d=c[L(0x1ba)](),e=d?'(experimental)\x20'+c['shortDesc']():c[L(0x1af)]();b['push']([c[L(0x1bd)],c[L(0x192)](),e]);}),Log[J(0x1fc)](b[J(0x1d4)]());}}function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x17d;let f=c[d];return f;},a103d(a,b);}function a103c(){const M=['both','Too\x20many\x20options','invoke','success','cwd','statSync','handleGenerateError','\x20not\x20found.\x20Cannot\x20undo.','experimental','lib','length','name','chdir','warn','Generator\x20','map','appPathPrefix','size','server','Description','readFileSync','minOptsLength','fsi','writeFileSync','filter','resourceNameRequired','getMakaProjectConfig','2326746HDTzbV','fullNameChain','params','Too\x20many\x20arguments','options','addGenerator\x20requires\x20a\x20Generator\x20instance','stringify','toString','Alias','There\x20is\x20no\x20Meteor\x20application\x20here','match','(((.+)+)+)+$','Generators:','checkWhere','Client','listGenerators','869988kKRyjj','opts','error','pallet','LIGHT','Generator\x20requires\x20a\x20name','2406430abkTzY','Generator\x20requires\x20a\x20handler\x20function','Generator.create\x20requires\x20some\x20options!','No\x20resource\x20name\x20specified','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','search','sep','requiredEngines','resourceName','projectConfig','history.json','12915990PcFaWn','_undoHandler','minArgLength','validateParams','pop','existsSync','readHistory','Nothing\x20to\x20undo.','config','message','writeHistory','utf-8','findProjectDirectory','localeCompare','bright','sort','shift','bind','198uDAPCv','where','replace','exit','Both','Location','7VTyofI','deepen','264LYxulx','_genTransactionId','dir','tableList','function','_handler','.maka','78264TOklbT','constructor','286394IuveFA','maxArgLength','find','split','select','join','mustBeInMakaProject','processAndRunGenerator','cfg','DARK','maxOptsLength','Generator\x20not\x20found','Please\x20run\x20\x22maka\x20install\x20meteor\x22','addToHistory','getHistoryFileSize','_historyFilePath','aliases','root','light','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','No\x20undo\x20handler\x20defined\x20for\x20','Generator.create\x20requires\x20a\x20handler\x20function!','client','number','mustHaveMeteorInstalled','from','create','addGenerator','undo','includes','generatorName','validateEngines','setColorMode','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','notice','push','_generators','168mXWzaP','call','slice','Generator\x20format\x20is\x20incorrect','reverse','\x20not\x20found','transactionId','validateMeteorInstall','shortDesc','forEach','keys'];a103c=function(){return M;};return a103c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=parseInt(f(
|
|
1
|
+
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=parseInt(f(0x1d7))/0x1*(-parseInt(f(0x1e4))/0x2)+-parseInt(f(0x1dc))/0x3+parseInt(f(0x1da))/0x4+-parseInt(f(0x1d8))/0x5+parseInt(f(0x1e3))/0x6*(parseInt(f(0x1df))/0x7)+parseInt(f(0x1e1))/0x8*(parseInt(f(0x1de))/0x9)+parseInt(f(0x1d6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xd6c9d));var a104b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a104d;if(c){var e=c[g(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){var h=a104d;return a104a[h(0x1db)]()[h(0x1dd)]('(((.+)+)+)+$')['toString']()[h(0x1e2)](a104a)['search'](h(0x1d9));});a104a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';function a104c(){var i=['77fhCVBf','apply','389152TqlVbi','constructor','298914DErxpz','1755458eyDsIX','19963260MzWUPO','1kkQQjM','7466545GiguTX','(((.+)+)+)+$','2102640aVEhEE','toString','2376192lLXUwZ','search','180AjTrlG'];a104c=function(){return i;};return a104c();}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';function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x1d6;var f=c[d];return f;},a104d(a,b);}import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a105A=a105d;(function(a,b){const x=a105d,c=a();while(!![]){try{const d=-parseInt(x(
|
|
1
|
+
function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x1a8;let f=c[d];return f;},a105d(a,b);}const a105A=a105d;(function(a,b){const x=a105d,c=a();while(!![]){try{const d=-parseInt(x(0x1f7))/0x1+-parseInt(x(0x1cd))/0x2+-parseInt(x(0x1f3))/0x3+-parseInt(x(0x1aa))/0x4+-parseInt(x(0x1ad))/0x5+parseInt(x(0x1ba))/0x6*(parseInt(x(0x1e5))/0x7)+parseInt(x(0x1f2))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xb79aa));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a105d;if(c){const e=c[y(0x1b8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const z=a105d;return a105a[z(0x1ce)]()[z(0x1ec)](z(0x1a9))['toString']()[z(0x1ae)](a105a)['search'](z(0x1a9));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a105c(){const C=['api/apollo-gateway.js','337042EGSuCy','toString','error','API\x20Version?\x20[v1]','pathFromApp','graphql','tsx','exit','resourceName','\x27)\x20},','import\x20\x27/imports/api/apollo-gateway.','fsi','maka:rest','api/graphql-api.js','includes','\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/','@apollo/subgraph','ddp-rate-limiter','apollo','projectConfig','normalize','length','-rest-api.','resolvers.','217URkikt','maka\x20g:api\x20Todos','server','info','ask','-rpc-methods.','injectAtEndOfFile','search','api/resolvers.js','api/api.js','-api\x27;','injectIntoFile','startup','20296944dhwrNR','2695125WZByiE','express','api','engines','1032232QdZOMR','confirm','cfg','index.','RPC\x20(Methods)','imports','(((.+)+)+)+$','1012444lFyRmB','template','withRest','4462205PntSfH','constructor','engines.api','withGql','No\x20API\x20boundaries\x20selected','checkbox','findAppDirectory','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api/register-api.js','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','-api.','apply','graphql-tag','282504NCYnsR','pkg','push','Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)','Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.','checkNpmPackage','setProjectConfig','GraphQL','@apollo/gateway','create','subgraphs:\x20[','withMethods','api/methods.js','checkMeteorPackage','rest','dir','scaffold','/imports/api/apollo-gateway.'];a105c=function(){return C;};return a105c();}import a105e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a105A(0x1c3)]({'name':a105A(0x1f5),'aliases':['a'],'usage':a105A(0x1b4),'shortDesc':a105A(0x1b6),'validOpts':['dir'],'examples':[a105A(0x1e6)],'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20create\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const B=a105A;try{const {scaffold:c}=this,d=this[B(0x1e0)],f=[{'name':B(0x1fb),'value':B(0x1c5)}];f['push']({'name':'REST\x20API','value':B(0x1ac)});d[B(0x1f6)][B(0x1d2)]===B(0x1df)&&f[B(0x1bc)]({'name':B(0x1c1),'value':B(0x1b0)});const g={'message':'API\x20boundaries\x20to\x20create','name':'apiAnswers','choices':f},h=await Actions[B(0x1e9)](B(0x1d0))||'v1',i=await Actions[B(0x1b2)](g);i[B(0x1e2)]===0x0&&(Log[B(0x1cf)](B(0x1b1)),process['exit'](0x1));let j='js';d['engines']['js']===B(0x1d3)&&(j='ts');const k=this[B(0x1d8)][B(0x1b3)](),l=k+a105e[B(0x1e1)](B(0x1cb)+j),m=this['fsi']['isFile'](l);!m&&d[B(0x1f6)][B(0x1d2)]===B(0x1df)&&Log[B(0x1e8)](B(0x1be));const n=m?![]:await Actions[B(0x1f8)](B(0x1bd)),o=b[B(0x1d5)],p=kebabCase(o),q=b[B(0x1c9)]?'/'+b[B(0x1c9)]+'/':'/',r={'name':pascalCase(o),'apiVersion':h,'fileName':p,'camelCase':camelCase(o),'optsDir':q,'api':d[B(0x1f6)][B(0x1f5)],'graphql':d[B(0x1f6)][B(0x1d2)],'test':d[B(0x1f6)]['test'],'noRename':!![],'withMethods':i['includes']('withMethods'),'withRest':i[B(0x1db)](B(0x1ac)),'withGql':i[B(0x1db)](B(0x1b0))};r[B(0x1ac)]&&(this[B(0x1f9)][B(0x1c0)](B(0x1af),B(0x1c8)),await this[B(0x1bb)][B(0x1c7)]([B(0x1d9)],{'shouldInstall':!![]}),await this[B(0x1ca)][B(0x1ab)]({'srcPath':B(0x1ee),'destPath':this[B(0x1ca)][B(0x1d1)]({'pathParts':[B(0x1a8),'api',h,q,p,p+'-'+h+B(0x1e3)+j]}),'context':r,'config':d}));r[B(0x1c5)]&&(await this[B(0x1bb)]['checkMeteorPackage']([B(0x1de),'mdg:validated-method'],{'shouldInstall':!![]}),await this[B(0x1ca)][B(0x1ab)]({'srcPath':B(0x1c6),'destPath':this[B(0x1ca)][B(0x1d1)]({'pathParts':[B(0x1a8),B(0x1f5),h,q,p,p+'-'+h+B(0x1ea)+j]}),'context':r,'config':d}));if(r['withGql']){await this[B(0x1bb)][B(0x1bf)]([B(0x1f4),'@apollo/server',B(0x1dd),B(0x1b9),'express-rate-limit'],{'shouldInstall':!![]}),await this[B(0x1ca)][B(0x1ab)]({'srcPath':B(0x1da),'destPath':this[B(0x1ca)][B(0x1d1)]({'pathParts':['imports','api',h,q,p,p+'-'+h+'-graphql-api.'+j]}),'context':r,'config':d});const t=this['scaffold']['pathFromApp']({'pathParts':[B(0x1a8),B(0x1f5),h,q,p,B(0x1d2),'typeDefs.'+j]});await this['scaffold']['template']({'srcPath':'api/typeDefs.js','destPath':t,'context':r,'config':d});const u=this[B(0x1ca)][B(0x1d1)]({'pathParts':[B(0x1a8),B(0x1f5),h,q,p,'graphql',B(0x1e4)+j]});await this[B(0x1ca)][B(0x1ab)]({'srcPath':B(0x1ed),'destPath':u,'context':r,'config':d});if(n){await this[B(0x1bb)][B(0x1bf)]([B(0x1c2),'express'],{'shouldInstall':!![]}),await this[B(0x1ca)]['template']({'srcPath':B(0x1cc),'destPath':l,'context':r,'config':d}),await c['injectIntoFile']({'filePath':l,'content':'{\x20name:\x20\x27'+p+h+B(0x1dc)+h+'/'+p+B(0x1d6),'begin':B(0x1c4),'end':']'});const v=this['scaffold'][B(0x1d1)]({'pathParts':[B(0x1a8),B(0x1f1),B(0x1e7),'index.'+d[B(0x1f6)]['js']]});await this[B(0x1ca)][B(0x1eb)]({'filePath':v,'content':B(0x1d7)+j+'\x27;'});}m&&await c[B(0x1f0)]({'filePath':l,'content':'{\x20name:\x20\x27'+p+h+B(0x1dc)+h+'/'+p+'\x27)\x20},','begin':'subgraphs:\x20[','end':']'});}await this[B(0x1ca)][B(0x1ab)]({'srcPath':B(0x1b5),'destPath':this[B(0x1ca)][B(0x1d1)]({'pathParts':[B(0x1a8),B(0x1f1),B(0x1e7),'register-'+p+B(0x1b7)+j]}),'context':r,'config':d,'force':!![]});const s=this['scaffold'][B(0x1d1)]({'pathParts':[B(0x1a8),B(0x1f1),B(0x1e7),B(0x1fa)+d[B(0x1f6)]['js']]});await this[B(0x1ca)][B(0x1eb)]({'filePath':s,'content':'import\x20\x27./register-'+p+B(0x1ef)});}catch(w){console[B(0x1cf)](w),process[B(0x1d4)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a106d,c=a();while(!![]){try{var d=parseInt(f(0x10b))/0x1+parseInt(f(0x107))/0x2+-parseInt(f(0x110))/0x3+-parseInt(f(0x108))/0x4+parseInt(f(0x10a))/0x5+-parseInt(f(0x111))/0x6+-parseInt(f(0x10d))/0x7*(-parseInt(f(0x10e))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xee268));var a106b=(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;};}()),a106a=a106b(this,function(){var g=a106d;return a106a[g(0x10f)]()[g(0x10c)](g(0x109))['toString']()['constructor'](a106a)['search']('(((.+)+)+)+$');});a106a();import'./aws.js';import'./cloudformation/_index.js';function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x107;var f=c[d];return f;},a106d(a,b);}function a106c(){var h=['3109528iCGaDh','toString','4130775fuqUKz','1194270CnjTZG','1438340HkKRnZ','2841872QTqXLz','(((.+)+)+)+$','3158800IfkYti','1522281YavMCO','search','7oRVIit'];a106c=function(){return h;};return a106c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a107i=a107d;function
|
|
1
|
+
const a107i=a107d;function a107c(){const j=['50BcrvWe','search','297246hkvpEu','136iyKLBN','20VidqGM','Generate\x20AWS\x20templates','684596fEakTO','136FZKBwo','(((.+)+)+)+$','6626pkoPVf','constructor','2050002LgJQZR','2907873OgtfYx','344008mBevAG','maka\x20{generate,\x20g}:{aws}:<name>','31059600FkClGy','apply','toString'];a107c=function(){return j;};return a107c();}(function(a,b){const f=a107d,c=a();while(!![]){try{const d=parseInt(f(0x7b))/0x1*(parseInt(f(0x7d))/0x2)+-parseInt(f(0x7f))/0x3+-parseInt(f(0x7a))/0x4+-parseInt(f(0x74))/0x5*(parseInt(f(0x76))/0x6)+-parseInt(f(0x6f))/0x7*(parseInt(f(0x77))/0x8)+-parseInt(f(0x6e))/0x9*(parseInt(f(0x78))/0xa)+parseInt(f(0x71))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x6c109));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a[h(0x73)]()[h(0x75)](h(0x7c))[h(0x73)]()[h(0x7e)](a107a)['search'](h(0x7c));});a107a();function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x6e;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../../generator.js';const AWSGen=Generator['create']({'name':'aws','usage':a107i(0x70),'shortDesc':a107i(0x79),'minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':['maka\x20g:aws'],'experimental':!![]},async function(){});export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x134))/0x1*(-parseInt(f(0x13b))/0x2)+-parseInt(f(0x13d))/0x3+parseInt(f(0x132))/0x4*(-parseInt(f(0x13f))/0x5)+parseInt(f(0x139))/0x6*(-parseInt(f(0x133))/0x7)+parseInt(f(0x13a))/0x8+parseInt(f(0x135))/0x9+parseInt(f(0x136))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xee517));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x138)]()[h(0x131)]('(((.+)+)+)+$')[h(0x138)]()[h(0x13c)](a108a)[h(0x131)](h(0x137));});a108a();function a108c(){var i=['3801201TKhqIE','apply','2455kVGDmo','search','14512egPrwt','2387btwxxo','30673AxXOBx','9189216aLbNwL','39313000JUTTBb','(((.+)+)+)+$','toString','28194RgktLM','4169888qAMjlS','10uPwJkP','constructor'];a108c=function(){return i;};return a108c();}function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x131;var f=c[d];return f;},a108d(a,b);}import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a109i=a109d;(function(a,b){const f=a109d,c=a();while(!![]){try{const d
|
|
1
|
+
function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1e7;let f=c[d];return f;},a109d(a,b);}const a109i=a109d;(function(a,b){const f=a109d,c=a();while(!![]){try{const d=parseInt(f(0x1ed))/0x1+-parseInt(f(0x1f5))/0x2*(-parseInt(f(0x1eb))/0x3)+parseInt(f(0x1e9))/0x4+parseInt(f(0x1f6))/0x5+-parseInt(f(0x1f8))/0x6*(-parseInt(f(0x1f2))/0x7)+-parseInt(f(0x1f0))/0x8*(-parseInt(f(0x1f3))/0x9)+-parseInt(f(0x1ef))/0xa*(parseInt(f(0x1ec))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x5c5c0));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a109d;if(c){const e=c[g(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const h=a109d;return a109a[h(0x1f1)]()[h(0x1f4)]('(((.+)+)+)+$')['toString']()[h(0x1ee)](a109a)[h(0x1f4)](h(0x1e8));});a109a();import{Generator}from'../../../generator.js';import a109e from'../aws.js';const CFGen=Generator['create']({'name':a109i(0x1f9),'aliases':['cf'],'usage':a109i(0x1ea),'shortDesc':a109i(0x1e7),'resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':['maka\x20g:aws:cf'],'experimental':!![]},async function(){},async function(){},a109e);function a109c(){const j=['apply','3286230uXlspL','cloudformation','AWS\x20Cloudformation\x20templates','(((.+)+)+)+$','285064nQXUOx','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','42AYDlpn','44121MGSffU','496124QjekPn','constructor','6190OrElyZ','1576944DpDnRQ','toString','7wuiCqk','27GusiQA','search','85996eQgjtU','2763460KCNPfC'];a109c=function(){return j;};return a109c();}export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a110r=a110d;(function(a,b){const o=a110d,c=a();while(!![]){try{const d=-parseInt(o(0x110))/0x1*(-parseInt(o(0xfd))/0x2)+parseInt(o(0x105))/0x3*(-parseInt(o(0xfa))/0x4)+parseInt(o(0x111))/0x5+parseInt(o(0x107))/0x6+parseInt(o(0xf5))/0x7*(-parseInt(o(0x102))/0x8)+parseInt(o(0x117))/0x9+-parseInt(o(0x100))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x66992));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a110d;if(c){const e=c[p(0xf3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const q=a110d;return a110a[q(0x106)]()['search'](q(0x112))[q(0x106)]()[q(0x104)](a110a)[q(0xf8)](q(0x112));});a110a();import a110e from'path';import{Actions}from'../../../tools/actions/actions.class.js';import{capitalCase}from'change-case';function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0xf3;let f=c[d];return f;},a110d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a110f from'./cloudformation.js';const CEC2Gen=Generator[a110r(0x114)]({'name':a110r(0x108),'aliases':['cec2i'],'usage':a110r(0xfc),'resourceNameRequired':![],'shortDesc':'AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':['maka\x20g:aws:cf:cec2i'],'experimental':!![]},async function(){const s=a110r,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[s(0xfb)](),g=a110e[s(0x10a)](f,'cloudformation'),h=await a[s(0xfe)](),i=await Actions[s(0x116)](s(0xf7))||'-1';if(parseInt(i)<0x0){Log[s(0x101)](s(0xff)),Log[s(0xf6)](s(0xf9));return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m[s(0xf4)],Log[s(0x115)](s(0x109)+j);break;}}const k=await a[s(0x10c)](),l={'amiId':s(0x113),'keyPair':j,'sgId':k,'instanceName':capitalCase(d[s(0x103)])[s(0x10d)]('-','\x20')};await c[s(0x10b)]({'srcPath':s(0x10e),'destPath':a110e[s(0x10a)](g,'create-ec2-instance.template'),'framework':'aws','context':l,'config':d,'ignore':![]});}catch(n){Log[s(0x101)](n),process[s(0x10f)](0x1);}},async function(){},a110f);function a110c(){const t=['7818RKeHus','toString','3619248qRRbXh','create-ec2-instance','Setting\x20the\x20key-pair\x20to:\x20','join','template','chooseSecurityGroup','replaceAll','cloudformation/create-ec2-instance.template','exit','9161JlfFnM','1726635inteIc','(((.+)+)+)+$','ami-055744c75048d8296','create','success','ask','3805875rZRcAW','apply','name','378xUdqHw','notice','Please\x20choose\x20a\x20key\x20to\x20use:\x20','search','No\x20instance\x20has\x20been\x20created.','704fqDdDG','findProjectDirectory','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','86upfMql','ec2describeKeys','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','7736290ZVhchW','error','16712OZnnnV','appName','constructor'];a110c=function(){return t;};return a110c();}export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a111m=a111d;function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x126;let f=c[d];return f;},a111d(a,b);}(function(a,b){const k=a111d,c=a();while(!![]){try{const d=parseInt(k(0x13c))/0x1*(parseInt(k(0x134))/0x2)+parseInt(k(0x13e))/0x3+parseInt(k(0x142))/0x4+-parseInt(k(0x13b))/0x5*(-parseInt(k(0x148))/0x6)+parseInt(k(0x128))/0x7+parseInt(k(0x127))/0x8+-parseInt(k(0x130))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xee1a0));function a111c(){const o=['template','maka\x20g:collection\x20todos','9825960UPzVbd','13228243fVdcAg','\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','test','mongo','checkMeteorPackage','engines','resourceName','constructor','56464317cgnkyc','collection/collection.js','collection','error','20EyhJfo','pathFromApp','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','startup','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','scaffold','appPathPrefix','605HHLHWB','99822LRSJKW','(((.+)+)+)+$','3571683ZtaWAi','collections','dir','collection/tests.js','244460VSNfvd','imports','create','search','where','injectAtEndOfFile','93282IwdczX','tsx','index.','toString','pkg','none'];a111c=function(){return o;};return a111c();}const a111b=(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;};}()),a111a=a111b(this,function(){const l=a111d;return a111a[l(0x14b)]()['search']('(((.+)+)+)+$')[l(0x14b)]()[l(0x12f)](a111a)[l(0x145)](l(0x13d));});a111a();import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a111m(0x144)]({'name':a111m(0x132),'aliases':['col'],'usage':a111m(0x136),'checkWhere':!![],'shortDesc':a111m(0x138),'validOpts':[a111m(0x140),a111m(0x146)],'mustBeInMakaProject':!![],'description':a111m(0x129),'examples':[a111m(0x126)]},async function(a,b){const n=a111m;try{const c=this['projectConfig'],d=b[n(0x140)]?'/'+b[n(0x140)]+'/':'/',f=kebabCase(b[n(0x12e)]),g={'name':pascalCase(b[n(0x12e)]),'collectionName':pascalCase(b[n(0x12e)]),'fileName':f,'where':b[n(0x146)],'test':c['engines']['test'],'noRename':!![]};let h='js';c[n(0x12d)]['js']===n(0x149)&&(h='ts');await this[n(0x14c)][n(0x12c)]([n(0x12b)],{'shouldInstall':!![]}),await this['scaffold'][n(0x14e)]({'srcPath':n(0x131),'destPath':this[n(0x139)][n(0x135)]({'pathParts':[n(0x143),n(0x137),b[n(0x13a)],n(0x13f),d,f+'.'+h]}),'context':g,'config':c});c[n(0x12d)][n(0x12a)]!==n(0x14d)&&await this['scaffold'][n(0x14e)]({'srcPath':n(0x141),'destPath':this['scaffold'][n(0x135)]({'pathParts':[n(0x143),n(0x137),b[n(0x13a)],n(0x13f),d,f+'.app-tests.'+h]}),'context':g,'config':c});const i=this[n(0x139)][n(0x135)]({'pathParts':[n(0x143),'startup',b[n(0x13a)],n(0x14a)+c[n(0x12d)]['js']]});await this[n(0x139)][n(0x147)]({'filePath':i,'content':'import\x20\x27./collections'+d+f+'\x27;'});}catch(j){Log[n(0x133)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112n=a112d;(function(a,b){const k=a112d,c=a();while(!![]){try{const d=-parseInt(k(0x135))/0x1+parseInt(k(0x138))/0x2+parseInt(k(0x136))/0x3*(parseInt(k(0x13c))/0x4)+-parseInt(k(0x153))/0x5+parseInt(k(0x15d))/0x6*(parseInt(k(0x150))/0x7)+-parseInt(k(0x14d))/0x8*(-parseInt(k(0x144))/0x9)+-parseInt(k(0x13e))/0xa*(parseInt(k(0x164))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xf1c16));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a112d;if(c){const e=c[l(0x14a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const m=a112d;return a112a[m(0x151)]()[m(0x14e)](m(0x161))['toString']()[m(0x133)](a112a)['search'](m(0x161));});function a112c(){const p=['toString','features','5817695MErTuW','css','fsi','test/test.js','.js','client','projectConfig','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','template','ssr','1128jhvJGe','relative','/imports/ui/','scaffold','(((.+)+)+)+$','create','resourceName','11BhDtTi','theme','cfg','comp','engines','/imports/ui/components','import\x20\x27./','.css','checkNpmPackage','setTemplate','constructor','react','705184eDQVkA','2436159IFdYYF','dir','2904266YdUHQN','none','string','baseDir','4QdXTif','graphql','3401290ubQzvJ','injectTemplateModule','root','component','findProjectDirectory','withTranslations','3402SRyidh','error','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','ramda','component/component.js','template/template.css','apply','test','assign','3648ebYJzH','search','className','28392hKLTfu'];a112c=function(){return p;};return a112c();}a112a();import a112e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x131;let f=c[d];return f;},a112d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=[a112n(0x167)];Generator[a112n(0x162)]({'name':a112n(0x141),'aliases':aliases,'usage':a112n(0x15a),'shortDesc':a112n(0x146),'mustBeInMakaProject':!![],'validOpts':[{'name':a112n(0x13b)}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const o=a112n;try{const c=b[o(0x13b)]?o(0x15f)+b['baseDir']:o(0x169),d=this[o(0x160)]['pathFromApp']({'pathParts':[c,b[o(0x137)],kebabCase(b[o(0x163)]),kebabCase(b[o(0x163)])]}),f=this[o(0x159)];typeof f[o(0x15b)]['test']===o(0x13a)&&this[o(0x166)][o(0x132)](o(0x14b),f[o(0x15b)][o(0x14b)]);typeof f[o(0x15b)][o(0x154)]==='string'&&this[o(0x166)]['setTemplate']('css',f[o(0x15b)][o(0x154)]);typeof f[o(0x15b)]['js']===o(0x13a)&&this[o(0x166)][o(0x132)]('js',f['template']['js']);await this['pkg']['checkNpmPackage'](o(0x147),{'shouldInstall':!b[o(0x140)]}),await this['pkg'][o(0x131)]('react',{'shouldInstall':!b[o(0x140)]});const g={'name':pascalCase(b['resourceName']),'myPath':a112e[o(0x15e)](this[o(0x155)][o(0x142)](),d),'cssCaseName':kebabCase(b[o(0x163)]),'className':pascalCase(b[o(0x163)]),'camelCaseName':camelCase(b[o(0x163)]),'fileName':kebabCase(b['resourceName']),'graphql':f[o(0x168)][o(0x13d)],'features':f[o(0x152)],'client':f[o(0x168)][o(0x158)],'api':f[o(0x168)]['api'],'ssr':f[o(0x168)][o(0x15c)],'test':f['engines'][o(0x14b)],'theme':f[o(0x168)][o(0x165)],'isLayout':![],'isComponent':!![],'withTranslations':f['features'][o(0x143)]};await this[o(0x160)][o(0x15b)]({'srcPath':o(0x148),'destPath':d+o(0x157),'context':g,'framework':o(0x134),'config':f});f['engines'][o(0x14b)]!==o(0x139)&&await this[o(0x160)]['template']({'srcPath':o(0x156),'destPath':d+'.tests.js','context':g,'framework':o(0x134),'config':f});f[o(0x15b)][o(0x154)]&&(await this[o(0x160)][o(0x15b)]({'srcPath':o(0x149),'destPath':d+o(0x16b),'context':Object[o(0x14c)]({},g,{'className':kebabCase(b[o(0x163)])}),'config':f}),await this[o(0x160)]['injectAtBeginningOfFile']({'filePath':d+'.'+f[o(0x168)]['js'],'content':o(0x16a)+g['cssCaseName']+'.'+f[o(0x168)][o(0x154)]+'\x27;'}));const h=b[o(0x137)]?'/'+b['dir']+'/':'/',i=''+c+h+g['fileName']+'/'+g['fileName'];await this[o(0x160)][o(0x13f)](g[o(0x14f)],f,i);}catch(j){Log[o(0x145)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113l=a113d;function a113c(){const n=['isDocker','process.env','template','maka\x20{generate,\x20g}:{config}\x20<name>','2846700xvgQKa','config/settings.json','config/pm2.config.js','production','resourceName','dev','3992799QUJiAF','6201464ENqvlQ','scaffold','(((.+)+)+)+$','toString','appName','989107svouZW','pathFromProject','5805918WyIZck','prod','config','97898VpEYnP','maka\x20g:config\x20production','constructor','development','projectConfig','9091187wkXsGH','fsi','search','local','Generate\x20configuration\x20settings.'];a113c=function(){return n;};return a113c();}function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xf9;let f=c[d];return f;},a113d(a,b);}(function(a,b){const j=a113d,c=a();while(!![]){try{const d=-parseInt(j(0x10b))/0x1+-parseInt(j(0x110))/0x2+parseInt(j(0x105))/0x3+parseInt(j(0x106))/0x4+-parseInt(j(0xff))/0x5+parseInt(j(0x10d))/0x6+-parseInt(j(0x115))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xe62df));const a113b=(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;};}()),a113a=a113b(this,function(){const k=a113d;return a113a[k(0x109)]()[k(0x117)]('(((.+)+)+)+$')['toString']()[k(0x112)](a113a)[k(0x117)](k(0x108));});a113a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,kebabCase,pascalCase}from'change-case';Generator['create']({'name':a113l(0x10f),'usage':a113l(0xfe),'shortDesc':a113l(0xfa),'validOpts':['isDocker'],'mustBeInMakaProject':!![],'examples':[a113l(0x111)]},async function(a,b){const m=a113l;try{const c=this[m(0x114)],d={'app':c[m(0x10a)],'appFileCase':kebabCase(c[m(0x10a)]),'name':pascalCase(b[m(0x103)]),'fileName':kebabCase(b[m(0x103)]),'camelCase':camelCase(b[m(0x103)]),'userName':'ubuntu','isDocker':b['isDocker']};let e=b[m(0x103)];if(e===m(0x104))e=m(0x113);else e===m(0x10e)&&(e=m(0x102));const f=this[m(0x116)][m(0x10c)]({'pathParts':[m(0x10f),e,'settings.json']});await this[m(0x107)]['template']({'srcPath':m(0x100),'destPath':f,'context':d,'config':c});if(e!=='local'){const g=this[m(0x116)][m(0x10c)]({'pathParts':[m(0x10f),e,'pm2.config.js']});await this['scaffold']['template']({'srcPath':m(0x101),'destPath':g,'context':{'app':c['appName'],'isDocker':b[m(0xfb)]||![]},'config':c});}if(e===m(0xf9)){const h=this['fsi'][m(0x10c)]({'pathParts':[m(0x10f),e,m(0xfc)]});await this['scaffold'][m(0xfd)]({'srcPath':'config/process.env','destPath':h,'context':d,'config':c});}}catch(i){Log['error'](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114n=a114d;(function(a,b){const k=a114d,c=a();while(!![]){try{const d=-parseInt(k(
|
|
1
|
+
const a114n=a114d;function a114c(){const p=['pkg','322091VTowPC','dir','70zTlqBs','type','146094kEZSXd','63ywCaiL','pathFromApp','(((.+)+)+)+$','template','apply','import\x20\x27./register-','1485120IFQxjt','constructor','dbc/register-dbc.js','dbc','dbc/conn.js','maka\x20g:dbc\x20todos\x20--type=sqlite','register-','engines','801717rgNMaz','search','config.','toString','conn.','-dbc\x27;','6064785BHaAwV','tsx','imports','311216gFkHSm','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','server','pgsql','startup','31460gDRZRC','mssql','better-sqlite3','maka\x20g:dbc\x20geoserver\x20--type=pgsql','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','create','-dbc.','scaffold','error','checkNpmPackage','injectAtEndOfFile','sqlite'];a114c=function(){return p;};return a114c();}(function(a,b){const k=a114d,c=a();while(!![]){try{const d=-parseInt(k(0x1fa))/0x1+-parseInt(k(0x1ed))/0x2+parseInt(k(0x1df))/0x3+-parseInt(k(0x1d7))/0x4+parseInt(k(0x1fc))/0x5*(-parseInt(k(0x1fe))/0x6)+-parseInt(k(0x1ff))/0x7*(-parseInt(k(0x1e8))/0x8)+parseInt(k(0x1e5))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x3ae53));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a114d;if(c){const e=c[l(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const m=a114d;return a114a[m(0x1e2)]()[m(0x1e0)]('(((.+)+)+)+$')[m(0x1e2)]()[m(0x1d8)](a114a)['search'](m(0x1d3));});a114a();import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x1d3;let f=c[d];return f;},a114d(a,b);}Generator[a114n(0x1f2)]({'name':a114n(0x1da),'usage':a114n(0x1e9),'shortDesc':a114n(0x1f1),'validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'type','values':[a114n(0x1eb),a114n(0x1ee),a114n(0x1f8)]}],'examples':[a114n(0x1f0),'maka\x20g:dbc\x20azure\x20--type=mssql',a114n(0x1dc)]},async function(a,b){const o=a114n;try{const c=this['projectConfig'],d=kebabCase(b['resourceName']),f={'name':pascalCase(b['resourceName']),'fileName':kebabCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c[o(0x1de)]['js'],'noRename':!![]},g=b[o(0x1fb)]?'/'+b['dir']+'/':'/';let h='js';c[o(0x1de)]['js']===o(0x1e6)&&(h='ts');b[o(0x1fd)]==='pgsql'&&await this[o(0x1f9)]['checkNpmPackage']('pg',{'shouldInstall':!![]});b[o(0x1fd)]==='mssql'&&await this[o(0x1f9)][o(0x1f6)](o(0x1ee),{'shouldInstall':!![]});b[o(0x1fd)]==='sqlite'&&await this['pkg'][o(0x1f6)](o(0x1ef),{'shouldInstall':!![]});await this[o(0x1f4)]['template']({'srcPath':'dbc/config.js','destPath':this[o(0x1f4)][o(0x200)]({'pathParts':[o(0x1e7),'startup',o(0x1ea),'dbc',g,d,o(0x1e1)+h]}),'context':f,'config':c}),await this[o(0x1f4)][o(0x1d4)]({'srcPath':o(0x1db),'destPath':this[o(0x1f4)][o(0x200)]({'pathParts':[o(0x1e7),'startup',o(0x1ea),'dbc',g,d,o(0x1e3)+h]}),'context':f,'config':c}),await this['scaffold'][o(0x1d4)]({'srcPath':o(0x1d9),'destPath':this['scaffold']['pathFromApp']({'pathParts':[o(0x1e7),o(0x1ec),o(0x1ea),o(0x1dd)+d+o(0x1f3)+h]}),'context':f,'config':c});const i=this[o(0x1f4)][o(0x200)]({'pathParts':[o(0x1e7),'startup',o(0x1ea),'index.'+c[o(0x1de)]['js']]});await this[o(0x1f4)][o(0x1f7)]({'filePath':i,'content':o(0x1d6)+d+o(0x1e4)});}catch(j){Log[o(0x1f5)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115l=a115d;(function(a,b){const i=a115d,c=a();while(!![]){try{const d=-parseInt(i(0xb2))/0x1*(parseInt(i(0xb5))/0x2)+parseInt(i(0xc5))/0x3*(parseInt(i(0xbe))/0x4)+-parseInt(i(0xb3))/0x5+-parseInt(i(0xb7))/0x6+parseInt(i(0xba))/0x7*(-parseInt(i(0xb0))/0x8)+-parseInt(i(0xb9))/0x9+parseInt(i(0xc8))/0xa*(parseInt(i(0xc4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x4d8f3));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a115d;if(c){const e=c[j(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const k=a115d;return a115a['toString']()[k(0xbd)]('(((.+)+)+)+$')[k(0xcb)]()[k(0xca)](a115a)[k(0xbd)](k(0xc2));});function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xac;let f=c[d];return f;},a115d(a,b);}function a115c(){const n=['isFile','16GeSShp','template','26oqiptF','1349865WnufcH','dockerfile','36236KoWhTH','force','2236452NJaImf','app.tar.gz','2006028EFlxvD','170303pMdxCG','apply','Generate\x20an\x20updated\x20dockerfile','search','2537592BVAEFE','appName','app','Dockerfile','(((.+)+)+)+$','fsi','5877399iddWSi','3SPZjeQ','cert','build','20pEWDPm','findProjectDirectory','constructor','toString','join','docker/Dockerfile','maka\x20{generate,\x20g}:dockerfile','cfg','create'];a115c=function(){return n;};return a115c();}a115a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a115e from'path';Generator[a115l(0xae)]({'name':a115l(0xb4),'usage':a115l(0xac),'shortDesc':a115l(0xbc),'resourceNameRequired':![],'mustBeInMakaProject':!![],'validOpts':[{'name':a115l(0xb6),'boolFlag':!![]}],'examples':['maka\x20g:dockerfile']},async function(a,b){const m=a115l;try{const c=this[m(0xad)]['getMakaProjectConfig'](),d=await this[m(0xad)]['getGlobalConfig'](),f=this[m(0xc3)][m(0xc9)](),g={'app':c[m(0xbf)],'config':c,'appPath':a115e[m(0xcc)](f,m(0xc0)),'bundlePath':a115e[m(0xcc)](f,m(0xc7),m(0xb8)),'useCert':d['cert']?this[m(0xc3)][m(0xaf)](d[m(0xc6)]):![]};await this['scaffold'][m(0xb1)]({'srcPath':m(0xcd),'destPath':a115e[m(0xcc)](f,m(0xc1)),'framework':'service','context':g,'config':c,'force':b[m(0xb6)]});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116n=a116d;(function(a,b){const l=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
const a116n=a116d;(function(a,b){const l=a116d,c=a();while(!![]){try{const d=-parseInt(l(0x219))/0x1+-parseInt(l(0x1e0))/0x2*(parseInt(l(0x1fc))/0x3)+parseInt(l(0x1e6))/0x4*(parseInt(l(0x1ea))/0x5)+parseInt(l(0x202))/0x6*(-parseInt(l(0x1e7))/0x7)+parseInt(l(0x1fe))/0x8+-parseInt(l(0x1e9))/0x9*(-parseInt(l(0x205))/0xa)+parseInt(l(0x1f2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xc46a4));const a116b=(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;};}()),a116a=a116b(this,function(){const m=a116d;return a116a[m(0x200)]()[m(0x215)]('(((.+)+)+)+$')[m(0x200)]()[m(0x1f6)](a116a)[m(0x215)](m(0x1e1));});a116a();import a116e from'path';import{kebabCase,pascalCase,camelCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a116c(){const p=['scaffold','/imports/ui/components','test','projectConfig','626hrTrdv','(((.+)+)+)+$','fsi','baseDir','hooks','withTranslations','20OYIfSk','2653VPovRm','hook/hook.js','1008WehyFK','108215Ndyahg','className','hook','import\x20\x27./','findAppDirectory','@apollo/client\x20isomorphic-fetch','/imports/ui/','string','21644260DmXzQs','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','pathFromApp','react','constructor','\x20hook...','.app-tests.js','template','layouts','injectTemplateModule','1932bskSMG','graphql','1184184NiSEiG','create','toString','maka\x20g:hook\x20cool-hook','21438mRWqxI','template/template.css','.css','65870FlEiQY','assign','\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','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','resourceName','relative','checkNpmPackage','engines','fileName','findProjectDirectory','Creating\x20','css','pkg','cfg','theme','dir','search','features','setTemplate','force','601387WBxHfZ','test/test.js','@apollo/client'];a116c=function(){return p;};return a116c();}function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a116d(a,b);}Generator[a116n(0x1ff)]({'name':a116n(0x1ec),'aliases':['h'],'checkWhere':![],'usage':a116n(0x208),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','mustBeInMakaProject':!![],'validOpts':[{'name':a116n(0x1e3),'values':[a116n(0x1e4),'components','pages',a116n(0x1fa)]},{'name':'force','boolFlag':!![]}],'examples':[a116n(0x201)],'description':a116n(0x207)},async function(a,b){const o=a116n;Log['notice'](o(0x20f)+b[o(0x209)]+o(0x1f7));try{await this[o(0x211)][o(0x20b)]('react',{'shouldInstall':!![]});const c=this[o(0x1e2)][o(0x1ee)](),d=b[o(0x1e3)]?o(0x1f0)+b[o(0x1e3)]:o(0x1dd),f=this[o(0x21c)][o(0x1f4)]({'pathParts':[d,b[o(0x214)],kebabCase(b['resourceName']),kebabCase(b[o(0x209)])]}),g=this[o(0x1df)];typeof g[o(0x1f9)][o(0x210)]===o(0x1f1)&&this[o(0x212)][o(0x217)]('css',g[o(0x1f9)][o(0x210)]);g[o(0x20c)][o(0x1fd)]==='apollo'&&!this[o(0x211)][o(0x20b)](o(0x21b))&&(Log['warn'](o(0x1f3)),await this[o(0x211)]['installNpmPackage'](o(0x1ef),{'cwd':c}));const h={'cssCaseName':kebabCase(b['resourceName']),'camelCaseName':camelCase(b[o(0x209)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b['resourceName']),'graphql':g[o(0x20c)][o(0x1fd)],'theme':g['engines'][o(0x213)],'features':g[o(0x216)],'myPath':a116e[o(0x20a)](this['fsi'][o(0x20e)](),f),'fileName':kebabCase(b[o(0x209)]),'isComponent':![],'isLayout':![],'withTranslations':g[o(0x216)][o(0x1e5)]};await this[o(0x21c)][o(0x1f9)]({'srcPath':o(0x1e8),'destPath':f+'.js','context':h,'config':g,'framework':'react','force':b[o(0x218)]});g['template'][o(0x210)]&&(await this[o(0x21c)][o(0x1f9)]({'srcPath':o(0x203),'destPath':f+o(0x204),'context':Object[o(0x206)]({},h,{'className':h['cssCaseName']}),'config':g,'force':b['force']}),await this['scaffold']['injectAtBeginningOfFile']({'filePath':f+'.'+g['engines']['js'],'content':o(0x1ed)+h['fileName']+'.'+g[o(0x20c)][o(0x210)]+'\x27;'}));g['engines'][o(0x1de)]!=='none'&&await this[o(0x21c)]['template']({'srcPath':o(0x21a),'destPath':f+o(0x1f8),'framework':o(0x1f5),'context':h,'config':g,'force':b[o(0x218)]});const i=b[o(0x214)]?'/'+b[o(0x214)]+'/':'/',j=''+d+i+h[o(0x20d)]+'/'+h[o(0x20d)];await this[o(0x21c)][o(0x1fb)](h[o(0x1eb)],g,j);}catch(k){Log['error'](k);}});
|