@maka/maka-cli 5.0.5 → 5.0.7
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/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/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
|
-
const
|
|
1
|
+
function a96c(){const k=['18AleMiJ','maka\x20set:<sub-command>','apply','636968ZMTYwL','findSubCommand','454500WnYwzs','toString','runSubCommand','search','1552136UpGOmM','96YwzNOl','2282sSVUkZ','2185860kyoKFX','create','21189SXCzzU','constructor','2126190wpDHGy','(((.+)+)+)+$','753HiKQmn','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally'];a96c=function(){return k;};return a96c();}const a96i=a96d;function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x79;let f=c[d];return f;},a96d(a,b);}(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x8a))/0x1+-parseInt(f(0x7c))/0x2*(-parseInt(f(0x83))/0x3)+-parseInt(f(0x88))/0x4+-parseInt(f(0x7d))/0x5+parseInt(f(0x7b))/0x6*(-parseInt(f(0x7f))/0x7)+-parseInt(f(0x7a))/0x8*(-parseInt(f(0x85))/0x9)+-parseInt(f(0x81))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x42464));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x87)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a[h(0x8b)]()[h(0x79)](h(0x82))[h(0x8b)]()[h(0x80)](a96a)[h(0x79)](h(0x82));});a96a();import{Command}from'../../command.js';const SetCommand=Command[a96i(0x7e)]({'name':'set','usage':a96i(0x86),'shortDesc':a96i(0x84),'description':'\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','validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0x89)](c);d&&this[j(0x8c)](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=parseInt(k(0x101))/0x1*(parseInt(k(0x106))/0x2)+-parseInt(k(0x112))/0x3+-parseInt(k(0x11e))/0x4+-parseInt(k(0x119))/0x5*(-parseInt(k(0xfe))/0x6)+parseInt(k(0x115))/0x7*(-parseInt(k(0x11d))/0x8)+parseInt(k(0x116))/0x9*(parseInt(k(0x108))/0xa)+parseInt(k(0x11a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x28b6c));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0x10f)]()['search'](m(0x10e))[m(0x10f)]()[m(0x118)](a97a)['search'](m(0x10e));});a97a();function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xfe;let f=c[d];return f;},a97d(a,b);}import a97e from'fs';import a97f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a97n(0x10d)]({'name':'ssh','usage':a97n(0x104),'mustBeInMakaProject':!![],'requiredOpts':[a97n(0x100)],'validOpts':[a97n(0x100),a97n(0xff)],'shortDesc':a97n(0x105),'examples':[a97n(0x114),a97n(0x109),a97n(0x111),'maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22',a97n(0x11b),a97n(0x10a)]},async function(a,b){const o=a97n;try{const c=this[o(0x10c)][o(0x10b)](b[o(0x100)]),d=this['fsi'][o(0x113)](c);let f='';a['length']>0x0&&(f=a[0x0]);const g=a97f[o(0x11f)](c,o(0x117)),h=a97e[o(0x110)](g)['toString'](),i=JSON[o(0x107)](h);Object[o(0x103)](i,{'env':d}),SSH['sshSync'](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0xff)]});}catch(j){Log[o(0x120)](j),process[o(0x102)](0x1);}});function a97c(){const p=['error','678ZHBVNK','verbose','env','1nxzcLt','exit','assign','maka\x20ssh\x20<command>','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','17690YYWVnx','parse','1339190YwIGBw','maka\x20ssh\x20--env\x20staging','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','getEnvFromShorthand','fsi','create','(((.+)+)+)+$','toString','readFileSync','maka\x20ssh\x20--env\x20prod','875103LVqQAk','getAppConfigPath','maka\x20ssh\x20--env\x20dev','448SaugOh','18GtbWHz','ssh.json','constructor','11290UfsYsp','1918851jBYQba','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','apply','8248xSmMfC','727316qIaByj','join'];a97c=function(){return p;};return a97c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98z=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=parseInt(w(
|
|
1
|
+
const a98z=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=parseInt(w(0x17f))/0x1*(parseInt(w(0x177))/0x2)+-parseInt(w(0x17d))/0x3+parseInt(w(0x19c))/0x4+parseInt(w(0x186))/0x5+parseInt(w(0x1a3))/0x6*(-parseInt(w(0x1a0))/0x7)+parseInt(w(0x1b3))/0x8+-parseInt(w(0x1ae))/0x9*(parseInt(w(0x1aa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x9c388));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a98d;if(c){const e=c[x(0x1a9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const y=a98d;return a98a['toString']()[y(0x17c)](y(0x190))[y(0x1ac)]()['constructor'](a98a)[y(0x17c)](y(0x190));});a98a();import a98e from'fs';import a98f from'path';import{Actions}from'../tools/actions/actions.class.js';function a98c(){const B=['ping','generate-csr','ask','New\x20CSR\x20written\x20to\x20','env','join','maka\x20ssl\x20--env\x20dev\x20generate-csr','maka\x20ssl\x20[command]','appName','(((.+)+)+)+$','success','Remote\x20host\x20connection\x20successful','letsencrypt.json','Checking\x20remote\x20host\x20availability','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','genCSR','assign','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','ssl','email','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','1031368gvdjdu','Please\x20provide\x20a\x20command.','mkKeysDir','sudo\x20snap\x20install\x20--classic\x20certbot','8468887CBweXd','parse','start','6XeWaTI','writeFileSync','getMakaProjectConfig','error','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','ssh','apply','3660rgXWwL','existsSync','toString','fsi','5787rBkBuX','domainNames','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','.key','getEnvFromShorthand','6117128hNxvUk','domains','notice','withSpinner','stringify','394418rtkPVJ','.csr','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','create','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','search','396429TNYIUA','letsencrypt','1HpFywh','readFileSync','emailUpdate','.crt','Verifying\x20Letsencrypt\x20configuration','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','exit','4987550YItMlU'];a98c=function(){return B;};return a98c();}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';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x174;let f=c[d];return f;},a98d(a,b);}Command[a98z(0x17a)]({'name':a98z(0x199),'usage':a98z(0x18e),'validOpts':['domains',a98z(0x19a)],'requiredOpts':[a98z(0x18b)],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98z(0x18d),a98z(0x195),a98z(0x179)]},async function(a,b){const A=a98z,c=this[A(0x1ad)][A(0x1a5)](),d=this['fsi'][A(0x1b2)](b[A(0x18b)]),f=this[A(0x1ad)]['getAppConfigPath'](d),g=this['fsi'][A(0x19e)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x188))SSL[A(0x196)]({'keyName':c[A(0x18f)]+'.key','csrName':c[A(0x18f)]+A(0x178),'cwd':g});else{if(h==='generate-ssc'){if(!a98e[A(0x1ab)](a98f[A(0x18c)](g,c[A(0x18f)]+A(0x1b1))))throw A(0x19b)+a98f['join'](g,c[A(0x18f)]+A(0x1b1));if(!a98e[A(0x1ab)](a98f[A(0x18c)](g,c[A(0x18f)]+A(0x178))))throw A(0x1b0)+a98f[A(0x18c)](g,c['appName']+A(0x178));SSL['genSSC']({'keyName':c[A(0x18f)]+A(0x1b1),'crtName':c['appName']+A(0x182),'cwd':g}),Log[A(0x174)](A(0x18a)+g);}else{if(h===A(0x17e)){let i=b[A(0x1b4)],j=b[A(0x19a)];try{const q=a98e['readFileSync'](a98f[A(0x18c)](f,A(0x193)))['toString'](),r=JSON[A(0x1a1)](q);i=b[A(0x1b4)]?b['domains']:r[A(0x1af)],j=b[A(0x19a)]?b[A(0x19a)]:r[A(0x181)],(!b[A(0x19a)]||!b['domains'])&&Log[A(0x174)]('Using\x20saved\x20letsencrypt\x20config');}catch(s){}const k=JSON[A(0x1a1)](a98e[A(0x180)](f+'/ssh.json')[A(0x1ac)]());Object[A(0x197)](k,{'env':f}),Log[A(0x174)](A(0x194));try{const t=SSH[A(0x187)]('uname\x20-a',k);if(!t)throw A(0x198);if(t)Log[A(0x191)](A(0x192));}catch(u){Log[A(0x1a6)](u);return;}const l=Log[A(0x175)]();l[A(0x1a2)](A(0x183)),SSH[A(0x1a8)](A(0x184),{...k}),SSH[A(0x1a8)](A(0x19f),{...k}),SSH[A(0x1a8)](A(0x1a7),{...k}),l['success']();const m=i?i:await Actions[A(0x189)]('[?]\x20Domains\x20to\x20register:\x20'),n=j?j:await Actions[A(0x189)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[A(0x1a8)](A(0x17b)+m+'\x20--email\x20'+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x176)](o,null,0x2);a98e[A(0x1a4)](a98f[A(0x18c)](f,A(0x193)),p);}else throw A(0x19d);}}}catch(v){console[A(0x1a6)](v),process[A(0x185)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99x=a99d;(function(a,b){const t=a99d,c=a();while(!![]){try{const d=parseInt(t(0xcc))/0x1+-parseInt(t(0x80))/0x2*(parseInt(t(0xc5))/0x3)+parseInt(t(0xad))/0x4*(parseInt(t(0xa3))/0x5)+parseInt(t(0xc3))/0x6+-parseInt(t(0xb5))/0x7+parseInt(t(0xb3))/0x8+parseInt(t(0x81))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x8a3b4));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x7e;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a99d;if(c){const e=c[u(0x9c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const v=a99d;return a99a['toString']()[v(0xb2)]('(((.+)+)+)+$')[v(0x9b)]()[v(0xab)](a99a)[v(0xb2)]('(((.+)+)+)+$');});function a99c(){const A=['--env','5522384gOiHSc','local','notice','exit','processAndRunGenerator','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','none','unit','concat','inspect','--driver','utf8','argv','settings','106338KGSaKc','invokeMeteorCommand','691575sxsPrA','test-packages','join','inherit','--packages','readFileSync','driver','546835gbKixF','meteortesting:mocha','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','8RKWTDG','4253157TSgWdQ','jasmine','cwd','relative','--full-app','--settings','config','fsi','process.env','filter','.maka','splice','Meteor\x20is\x20installed.','once','findProjectDirectory','tests','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','testAppPath','driver-package','parse','env','settings.json','sanjo:jasmine','port','Node\x20Env\x20Config:\x20','create','toString','apply','mocha','checkConfigExists','slice','isFile','config.json','forEach','710FrrOIP','info','packages','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','test','checkNpmPackage','@testing-library/dom\x20meteor-node-stubs','getAppConfigPath','constructor','warn','24608xucvcL','rawLogs','maka\x20test','error','isMeteorInstalled','search','2931944lOTxNW'];a99c=function(){return A;};return a99c();}a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{execSync}from'child_process';import a99h from'../generators/maka.gen.js';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const w=a99d;a99e['openSync'](a,'r'),a99g[w(0x87)]({'path':a});};Command[a99x(0x9a)]({'name':'test','mustBeInMakaProject':!![],'validOpts':['once',a99x(0xa5),a99x(0xcb),'driverPackage','unit',a99x(0x95),a99x(0xae),a99x(0x98),a99x(0xbe),a99x(0x92)],'usage':a99x(0xaf),'aliases':['t',a99x(0x90)],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},async function(a,b){const y=a99x;try{this[y(0x88)][y(0xb1)]()?Log[y(0xb7)](y(0x8d)):(Log[y(0xac)](y(0xba)),execSync('maka\x20install\x20--force',{'stdio':y(0xc8)}));this['fsi'][y(0xa8)](y(0xa9),{'shouldInstall':!![]});const c=b[y(0x95)]?this['fsi']['getEnvFromShorthand'](b[y(0x95)]):'local';(!b[y(0xbc)]||!!b[y(0x8e)])&&(a=a[y(0xbd)]([y(0x85)]));b[y(0xbc)]&&delete b['unit'];let d=b['driver-package']||b[y(0xcb)]||'none';if(d==='none'){const l=JSON[y(0x94)](a99e[y(0xca)](a99f[y(0xc7)](this[y(0x88)]['findProjectDirectory'](),y(0x8b),y(0xa1)),y(0xc0)));if(l['engines'][y(0xa7)]===y(0x82))d=y(0x97);else l['engines'][y(0xa7)]===y(0x9d)&&(d=y(0x7e));}if(d===y(0xbb))throw y(0xa6);(!b[y(0x93)]||!b[y(0xcb)])&&(a=a[y(0xbd)](['--driver-package',d]));const f=this[y(0x88)][y(0x9e)](y(0xb6));if(!f){Log[y(0xac)]('Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...');const m=this[y(0x88)][y(0x8f)]();await a99h[y(0xb9)](y(0x87),[y(0xb6)],{'cwd':m,'root':!![]});}const g=this[y(0x88)][y(0xaa)](c),h=a99f[y(0xc7)](g,y(0x89));let i=a99f[y(0xc7)](g,'settings.json');b['settings']?i=b[y(0xc2)]:i=a99f['join'](g,y(0x96));if(this['fsi'][y(0xa0)](h)){const n=a99f['relative'](process[y(0x83)](),h);Log[y(0xb7)](y(0x99)+n),syncSource(h);}else{const o=a99f[y(0x84)](process['cwd'](),h);Log[y(0xa4)](y(0x7f)+o),this[y(0x88)]['createFile']({'filePath':h,'data':''});}if(this[y(0x88)]['isFile'](i)){const p=a99f[y(0x84)](process[y(0x83)](),i);Log[y(0xb7)]('Meteor\x20Settings:\x20'+p),a=a['concat']([y(0x86),i]);}else{const q=a99f[y(0x84)](process[y(0x83)](),i);Log['warn'](y(0x91)+q);}const j=process[y(0xc1)][y(0x9f)](0x2)[y(0x8a)](r=>r!==y(0xb4))[y(0x8a)](r=>r!==y(0xa7))[y(0x8a)](r=>r!==a[0x0]);j[y(0xa2)]((r,s)=>{const z=y;(r===z(0xb4)||r===z(0xbf))&&j['splice'](s,0x2),r===z(0xc9)&&j[z(0x8c)](s,0x1);});const k=b[y(0xa5)]?y(0xc6):y(0xa7);this[y(0x88)][y(0xc4)](k,a['concat'](j));}catch(r){console[y(0xb0)](r),process[y(0xb8)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
var a100i=a100d;function a100c(){var k=['constructor','271143OTxxuR','674358ZnIXcD','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','5952056MTfLZG','1393262Gjezle','37293510ZqzUWE','create','undo','208VbbEGe','toString','(((.+)+)+)+$','436794RLjZpT','14EZPeYP','apply','search','7925880HLkiSq','12STvcnx'];a100c=function(){return k;};return a100c();}function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x13c;var f=c[d];return f;},a100d(a,b);}(function(a,b){var f=a100d,c=a();while(!![]){try{var d=-parseInt(f(0x144))/0x1+-parseInt(f(0x14b))/0x2*(parseInt(f(0x13e))/0x3)+parseInt(f(0x143))/0x4+-parseInt(f(0x13d))/0x5+parseInt(f(0x141))/0x6*(parseInt(f(0x14c))/0x7)+parseInt(f(0x148))/0x8*(-parseInt(f(0x140))/0x9)+parseInt(f(0x145))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc4fa7));var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a[h(0x149)]()['search']('(((.+)+)+)+$')[h(0x149)]()[h(0x13f)](a100a)[h(0x13c)](h(0x14a));});a100a();import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';Command[a100i(0x146)]({'name':a100i(0x147),'aliases':['u'],'validOpts':[],'shortDesc':a100i(0x142),'experimental':!![]},async function(){var j=a100i;a100e[j(0x147)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101o=a101d;(function(a,b){const l=a101d,c=a();while(!![]){try{const d
|
|
1
|
+
const a101o=a101d;(function(a,b){const l=a101d,c=a();while(!![]){try{const d=parseInt(l(0x1c1))/0x1*(-parseInt(l(0x1ad))/0x2)+-parseInt(l(0x1b0))/0x3*(-parseInt(l(0x1cb))/0x4)+parseInt(l(0x1ab))/0x5*(parseInt(l(0x1c8))/0x6)+-parseInt(l(0x1c5))/0x7+-parseInt(l(0x1d6))/0x8*(-parseInt(l(0x1ba))/0x9)+parseInt(l(0x1d4))/0xa+-parseInt(l(0x1bc))/0xb*(parseInt(l(0x1bf))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x9f961));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a101d;if(c){const e=c[m(0x1d7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const n=a101d;return a101a['toString']()[n(0x1d8)](n(0x1b1))[n(0x1dc)]()['constructor'](a101a)[n(0x1d8)](n(0x1b1));});function a101c(){const q=['maka\x20version','1452120oTVUgL','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','----------------------System----------------------------','bright','create','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','fsi','version','getGlobalMeteorVersion','7435960tzMvPt','exit','436648yxNlrA','apply','search','Project\x27s\x20Meteor\x20Node\x20Version\x20','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','maka\x20v','toString','20415ECmpbN','getMeteorExePath','78SyBmLj','error','Maka\x20','6ZaSfvK','(((.+)+)+)+$','Project\x27s\x20Meteor\x20Version\x20','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','System\x27s\x20Meteor\x20Version\x20','getProjectsMeteorNodeVersion','\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','System\x27s\x20Node\x20Version\x20','getProjectMeteorVersion','replace','207uCzbwx','warn','1240426AhdPNf','----------------------Project----------------------------','isMakaProject','84CitBMN','\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','12168oNzKuS','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','5.0.7','N/A','6852482rRqlmJ','node\x20-v',')\x20to\x20at\x20least\x20meteor\x27s\x20(','252uUrxkF','compareMakaToLatest'];a101c=function(){return q;};return a101c();}a101a();import{execSync}from'child_process';import a101e from'semver';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a101d(a,b);}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a101o(0x1c3)};Command[a101o(0x1cf)]({'name':a101o(0x1d2),'aliases':['v'],'usage':a101o(0x1ca),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a101o(0x1da),'examples':[a101o(0x1db),a101o(0x1ca),'maka\x20version\x20--verbose'],'description':a101o(0x1c0)},async function(a,b){const p=a101o;try{const c=this[p(0x1d1)][p(0x1ac)]();Log['majestic'](p(0x1af)+pjson[p(0x1d2)]),await this[p(0x1d1)][p(0x1c9)]();if(b['verbose']){await this[p(0x1d1)]['compareMakaToLatest'](),Log[p(0x1ce)](p(0x1cd));const d=this[p(0x1d1)][p(0x1d3)]();Log['bright']((p(0x1b4)+d)['replace']('\x0a',''));const f=execSync(c+'\x20node\x20-v')[p(0x1dc)]()[p(0x1b9)](/\r?\n|\r/,'')[p(0x1b9)]('v','');Log[p(0x1ce)](p(0x1cc)+f);const g=execSync(p(0x1c6))[p(0x1dc)]()[p(0x1b9)](/\r?\n|\r/,'')[p(0x1b9)]('v','');a101e['gt'](f,g)?(Log[p(0x1bb)]('System\x27s\x20Node\x20Version\x20'+g),Log[p(0x1bb)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+g+p(0x1c7)+f+')')):Log[p(0x1ce)](p(0x1b7)+g);if(this[p(0x1d1)][p(0x1be)]()){Log[p(0x1ce)](p(0x1bd));const h=this[p(0x1d1)][p(0x1b8)]();try{if(!a101e['valid'](h))Log[p(0x1bb)](p(0x1b2)+h[p(0x1b9)]('\x0a',''));else a101e['gt'](d,h)?(Log[p(0x1bb)](p(0x1b2)+h[p(0x1b9)]('\x0a','')),Log[p(0x1bb)]('!\x20Consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice'](p(0x1b2)+h['replace']('\x0a',''));}catch(j){Log['error'](p(0x1b3)+j),Log['error'](p(0x1d0));}const i=await this[p(0x1d1)][p(0x1b5)]();i===p(0x1c4)?(Log['warn'](p(0x1d9)+i),Log[p(0x1bb)](p(0x1c2))):Log['bright'](p(0x1d9)+i),Log['bright'](p(0x1b6));}}}catch(k){console[p(0x1ae)](k),process[p(0x1d5)](0x0);}});
|
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(0x1ee))/0x1+-parseInt(f(0x1f5))/0x2*(-parseInt(f(0x1ef))/0x3)+-parseInt(f(0x1f2))/0x4+parseInt(f(0x1eb))/0x5*(parseInt(f(0x1ea))/0x6)+parseInt(f(0x1f4))/0x7*(-parseInt(f(0x1ec))/0x8)+parseInt(f(0x1f1))/0x9+-parseInt(f(0x1f0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x692ae));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var g=a102d;return a102a[g(0x1ed)]()[g(0x1f3)]('(((.+)+)+)+$')[g(0x1ed)]()['constructor'](a102a)[g(0x1f3)]('(((.+)+)+)+$');});a102a();export class UsageError{}export class UsageErrorWithSubs{}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x1ea;var f=c[d];return f;},a102d(a,b);}function a102c(){var h=['4nggcVT','241254PpzMhV','95QOglln','19656cLeeLw','toString','860526LGZCFb','1080213sTdCbm','15875140hGXZio','5173029AFfOLs','548052cruUfS','search','2177lEbZuG'];a102c=function(){return h;};return a102c();}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
(function(a,b){var f=a103d,c=a();while(!![]){try{var d=-parseInt(f(0x91))/0x1*(parseInt(f(0x9d))/0x2)+parseInt(f(0x9c))/0x3+parseInt(f(0x9a))/0x4*(-parseInt(f(0x93))/0x5)+parseInt(f(0x9b))/0x6+-parseInt(f(0x92))/0x7+parseInt(f(0x96))/0x8+-parseInt(f(0x94))/0x9*(parseInt(f(0x98))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xd1f74));var a103b=(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;};}()),a103a=a103b(this,function(){var g=a103d;return a103a[g(0x9e)]()[g(0x97)](g(0x95))[g(0x9e)]()[g(0x99)](a103a)[g(0x97)](g(0x95));});function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x91;var f=c[d];return f;},a103d(a,b);}function a103c(){var h=['5fVPaIK','27WWeMUX','(((.+)+)+)+$','11765736rltoEE','search','326950Vxufns','constructor','3023452IHZRkU','9422184pTDfUm','2521848LnFADY','3734YVFzsc','toString','856IbRMxy','3987039QIfVAA'];a103c=function(){return h;};return a103c();}a103a(),process['env']['NODE_OPTIONS']='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104u=a104d;function a104c(){const M=['_handler','help','server','readHistory','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','options','push','from','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','match','history.json','parse','fsi','_genTransactionId','statSync','2568qQPWdL','bind','replace','Alias','_undoHandler','writeHistory','find','resourceName','Generator.create\x20requires\x20some\x20options!','mustBeInMakaProject','37IZEVNM','shortDesc','chdir','writeFileSync','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','transactionId','bright','findGeneratorByName','validateMakaProject','map','both','appPathPrefix','There\x20is\x20no\x20Meteor\x20application\x20here','function','warn','validateMeteorInstall','Generator\x20','DARK','maxArgLength','cwd','assign','exit','existsSync','getGlobalConfig','lib','setColorMode','readFileSync','call','includes','Too\x20few\x20arguments','Generator\x20not\x20found','(((.+)+)+)+$','.maka','light','addToHistory','245972fzYeaP','Description','Nothing\x20to\x20undo.','validateParams','1769288CozeGX','config','size','name','mustHaveMeteorInstalled','notice','4723278xEmwdu','Generator\x20requires\x20a\x20handler\x20function','listGenerators','tableList','details','_generators','number','dir','length','experimental','1739811wMvdav','addGenerator','Generator\x20format\x20is\x20incorrect','where','processAndRunGenerator','Generator.create\x20requires\x20a\x20handler\x20function!','params','generatorName','toString','Too\x20few\x20options','_historyFilePath','Both','split','Please\x20run\x20\x22maka\x20install\x20meteor\x22','create','filter','colLocAnswer','requiredEngines','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','error','checkWhere','message','30298vZXjww','pallet','list','opts','search','client','Too\x20many\x20options','8710qCfpVm','handleGenerateError','localeCompare','noNeedResource','Generator\x20requires\x20a\x20name','success','Name','stringify','keys','Too\x20many\x20arguments','3111354aZmabL','pop','slice','root','minOptsLength','fullNameChain','validateEngines','sort','No\x20resource\x20name\x20specified','(expermiental)\x20'];a104c=function(){return M;};return a104c();}(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x124))/0x1*(-parseInt(r(0xf0))/0x2)+-parseInt(r(0xda))/0x3+-parseInt(r(0xc6))/0x4+parseInt(r(0xf7))/0x5*(-parseInt(r(0x11a))/0x6)+parseInt(r(0xd0))/0x7+parseInt(r(0xca))/0x8+parseInt(r(0x101))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x65598));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(0xe2)]()[s(0xf4)]('(((.+)+)+)+$')['toString']()['constructor'](a104a)['search'](s(0xc2));});function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xb2;let f=c[d];return f;},a104d(a,b);}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();async function inside(a='.',b){const t=a104d,c=process[t(0xb6)]();let d=null;try{process[t(0x126)](a),d=await b();}finally{process[t(0x126)](c);}return d;}export class Generator extends Tool{[a104u(0x110)];['fullNameChain'];['_generators'];[a104u(0xe4)];['_undoHandler'];[a104u(0x118)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x128));if(!a['name'])throw new Error(v(0xfb));if(typeof b!==v(0x131))throw new Error(v(0xd1));this['_generators']=[],this[v(0x110)]=Object[v(0xb7)]({},a),this[v(0xcd)]=this[v(0x110)][v(0xcd)],this[v(0x10b)]=b['bind'](this);try{this[v(0xe4)]=this['fsi']['pathFromProject']({'pathParts':[v(0xc3),v(0x115)]})||a104e['join']('.','.maka',v(0x115));}catch(d){Log['error'](d);}c&&(this['_undoHandler']=c['bind'](this));}['getHistoryFileSize'](){const w=a104u;if(a104f[w(0xb9)](this['_historyFilePath'])){const a=a104f[w(0x119)](this[w(0xe4)]);return a[w(0xcc)];}return 0x0;}['readHistory'](){const x=a104u;if(!a104f[x(0xb9)](this[x(0xe4)]))return[];return JSON[x(0x116)](a104f[x(0xbd)](this['_historyFilePath'],'utf-8'));}[a104u(0x11f)](a){const y=a104u;this[y(0xe4)]&&!a104f[y(0xb9)](this['_historyFilePath'])&&a104f[y(0x127)](this[y(0xe4)],JSON[y(0xfe)]([])),a104f['writeFileSync'](this[y(0xe4)],JSON[y(0xfe)](a,null,0x2));}['addToHistory'](a){const z=a104u;try{a?.[z(0xe0)]?.[z(0xf3)][z(0xcb)]&&delete a['params']['opts'][z(0xcb)];const b=this[z(0x10e)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[z(0x112)](JSON[z(0xfe)](b))[z(0xd8)];while(d>MAX_HISTORY_SIZE&&b[z(0xd8)]>0x0){b['shift']();}this['writeHistory'](b);}catch(f){Log[z(0xed)](f);}}async['undo'](){const A=a104u,a=this[A(0x10e)]();if(a[A(0xd8)]===0x0){Log[A(0x132)](A(0xc8));return;}const b=a[A(0x102)](),c=b['transactionId'],d=a[A(0xe9)](e=>e[A(0x129)]===c);d[A(0x111)](b),d['reverse']();for(const e of d){const f=this[A(0x12b)](e[A(0xe1)]);if(!f){Log['error'](A(0xb3)+e[A(0xe1)]+'\x20not\x20found.\x20Cannot\x20undo.');continue;}f[A(0x11e)]?await f[A(0x11e)](e['details']):Log[A(0x132)]('No\x20undo\x20handler\x20defined\x20for\x20'+e[A(0xe1)]+'\x20generator.\x20Skipping\x20undo.');}this['writeHistory'](a[A(0xe9)](g=>g['transactionId']!==c));}static[a104u(0xe8)](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x122));if(typeof b!==B(0x131))throw new Error(B(0xdf));const e=new Generator(a,b);c&&(e[B(0x11e)]=c[B(0x11b)](e));d=d||a104i;const f=d?d[B(0x106)]:'';return e[B(0x106)]=f?f+':'+a[B(0xcd)]:a['name'],Object[B(0xb7)](e,{'parent':d?.[B(0x110)]?.[B(0xcd)]}),d[B(0xdb)](e),e;}[a104u(0xdb)](a){const C=a104u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[C(0xd5)]['push'](a);}async[a104u(0xde)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.[D(0xe6)](':');if(!f||f['length']===0x0)throw D(0xdc);let g=this[D(0xd5)],h;for(const i of f){h=g[D(0x120)](j=>j['match'](i));if(!h)throw D(0xb3)+i+'\x20not\x20found';g=h[D(0xd5)];}if(h)d=await h['invoke'](b,c);else throw D(0xc1);}catch(j){Log['error'](j);}return d;}[a104u(0x12b)](a){const E=a104u,b=a?.[E(0xe6)](':');if(!b||b[E(0xd8)]===0x0)return Log['error']('Generator\x20format\x20is\x20incorrect'),null;let c=this[E(0xd5)],d;for(const e of b){d=c[E(0x120)](f=>f[E(0x114)](e));if(!d)return Log['error'](E(0xb3)+e+'\x20not\x20found'),null;c=d[E(0xd5)];}return d||null;}async['invoke'](a,b){const F=a104u,c=a[F(0x103)]();b[F(0x121)]=c[0x0];try{const d=await this[F(0x117)][F(0xba)](),f=d[F(0xf1)]===F(0xc4)?ColorMode['LIGHT']:ColorMode[F(0xb4)];Log[F(0xbc)](f);const g=a[0x0]===_prevGen||a[F(0xd8)]===0x0&&this['_generators'][F(0xd8)]>=0x0,h=b[F(0x10c)]||b['h'];if(g&&h){if(this[F(0xd5)][F(0xd8)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x110)][F(0x123)]){const i=this[F(0x12c)]();if(!i)throw new MustBeInProjectError();}if(this[F(0x110)][F(0xce)]){const j=this[F(0xb2)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x110)]['minArgLength']===F(0xd6)){if(a['length']<this[F(0x110)]['minArgLength']){Log['error'](F(0xc0));throw new UsageError();}}if(typeof this['options'][F(0xb5)]==='number'){if(a['length']>this['options'][F(0xb5)]){Log['error'](F(0x100));throw new UsageError();}}if(typeof this[F(0x110)][F(0x105)]===F(0xd6)){if(Object[F(0xff)](b)[F(0xd8)]<this[F(0x110)][F(0x105)]){Log[F(0xed)](F(0xe3));throw new UsageError();}}if(typeof this[F(0x110)]['maxOptsLength']===F(0xd6)){if(Object[F(0xff)](b)[F(0xd8)]>=this[F(0x110)]['maxOptsLength']){Log[F(0xed)](F(0xf6));throw new UsageError();}}}this['options'][F(0xeb)]&&this[F(0x107)](this[F(0x110)][F(0xeb)]);await this[F(0xc9)](a,b,this[F(0x110)]);if(!b[F(0x121)]&&!this[F(0x110)][F(0xfa)]){Log[F(0xed)](F(0x109));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0xf8)](k),process[F(0xb8)](0x1);}return await inside(b[F(0xb6)],async()=>{const G=F;try{if(!b[G(0x104)]&&!this['fsi']['findProjectDirectory']())throw new MustBeInProjectError();const l=b[G(0x121)]?.[G(0x11c)](/\\/g,'/')['split']('/');!b[G(0xd7)]&&(l?.[G(0xd8)]>0x1?(b[G(0x121)]=l[G(0x102)](),c[0x0]=b[G(0x121)],b[G(0xd7)]=l[G(0x12d)](n=>{return paramCase(n);})['join'](a104e['sep'])):b['dir']='');if(this[G(0x110)][G(0xee)]){if(!b[G(0xdd)]){const o={'type':G(0xf2),'name':G(0xea),'message':'Location','choices':[{'name':'Client','value':'client'},{'name':'Server','value':G(0x10d)},{'name':G(0xe5),'value':G(0x12e)}]},{colLocAnswer:p}=await Actions[G(0x110)](o);p?b['where']=p:b[G(0xdd)]='both';}const n=[G(0x12e),G(0xf5),G(0x10d)];if(!n[G(0xbf)](b[G(0xdd)])){Log[G(0xed)](G(0x10f));throw new UsageError();}switch(b['where']){case G(0x12e):b[G(0x12f)]=G(0xbb);break;case G(0x10d):b[G(0x12f)]=G(0x10d);break;case'client':b[G(0x12f)]=G(0xf5);break;default:b[G(0x12f)]='';}}const m=await this[G(0x10b)][G(0xbe)](this,c,b);return m&&this[G(0xc5)]({'params':{'args':c,'opts':this[G(0x117)]['deepen'](b)},'success':m?.[G(0xfc)],'message':m?.[G(0xef)],'details':m?.[G(0xd4)]}),m;}catch(q){this[G(0xf8)](q);}});}[a104u(0xd2)](){const H=a104u;this[H(0xd3)](this[H(0xd5)]);}[a104u(0xf8)](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x110)];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0xcf)]('Generators:'),this['tableList'](this[I(0xd5)]);else{if(a instanceof MustBeInProjectError)Log[I(0xed)](I(0x113));else{if(a instanceof NoMeteorFoundError)Log[I(0xed)](I(0xec)),Log[I(0xcf)](I(0xe7));else a instanceof NoMeteorAppFoundError&&Log[I(0xed)](I(0x130));}}}[a104u(0xd3)](a){const J=a104u,b=new a104g({});b['push']([J(0xfd),J(0x11d),J(0xc7)]),a[J(0x108)]((c,d)=>{const K=J;return c[K(0xcd)][K(0xf9)](d[K(0xcd)]);})['forEach'](c=>{const L=J,d=c[L(0xd9)](),e=d?L(0x10a)+c[L(0x125)]():c[L(0x125)]();b['push']([c['name'],c['aliases'](),e]);}),Log[J(0x12a)](b[J(0xe2)]());}}
|
|
1
|
+
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0x13d))/0x1*(parseInt(r(0x12d))/0x2)+-parseInt(r(0xd5))/0x3+parseInt(r(0xcc))/0x4*(parseInt(r(0x11e))/0x5)+-parseInt(r(0x10a))/0x6*(-parseInt(r(0xfe))/0x7)+parseInt(r(0xd7))/0x8+-parseInt(r(0x103))/0x9*(parseInt(r(0xd8))/0xa)+parseInt(r(0x105))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x9bb06));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(0xf5)]()[s(0x131)]('(((.+)+)+)+$')[s(0xf5)]()[s(0x145)](a104a)[s(0x131)](s(0x101));});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';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0xc5;let f=c[d];return f;},a104d(a,b);}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 t=a104d,c=process[t(0xdb)]();let d=null;try{process[t(0x120)](a),d=await b();}finally{process[t(0x120)](c);}return d;}export class Generator extends Tool{[a104u(0xe3)];['fullNameChain'];[a104u(0x128)];[a104u(0x13a)];[a104u(0x100)];[a104u(0xd9)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error(v(0x13f));if(!a[v(0xde)])throw new Error(v(0x112));if(typeof b!==v(0x130))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[v(0x128)]=[],this[v(0xe3)]=Object[v(0xce)]({},a),this[v(0xde)]=this[v(0xe3)]['name'],this[v(0x12e)]=b['bind'](this);try{this[v(0x13a)]=this['fsi']['pathFromProject']({'pathParts':[v(0xe4),v(0xc5)]})||a104e['join']('.','.maka',v(0xc5));}catch(d){Log[v(0xf6)](d);}c&&(this[v(0x100)]=c[v(0x11d)](this));}[a104u(0x104)](){const w=a104u;if(a104f[w(0x124)](this[w(0x13a)])){const a=a104f[w(0x143)](this[w(0x13a)]);return a[w(0x113)];}return 0x0;}[a104u(0xdc)](){const x=a104u;if(!a104f[x(0x124)](this[x(0x13a)]))return[];return JSON[x(0xe6)](a104f[x(0xd0)](this[x(0x13a)],x(0x102)));}[a104u(0x125)](a){const y=a104u;this[y(0x13a)]&&!a104f[y(0x124)](this[y(0x13a)])&&a104f[y(0x127)](this[y(0x13a)],JSON['stringify']([])),a104f['writeFileSync'](this[y(0x13a)],JSON['stringify'](a,null,0x2));}['addToHistory'](a){const z=a104u;try{a?.[z(0xfb)]?.[z(0x147)][z(0xf3)]&&delete a[z(0xfb)][z(0x147)]['config'];const b=this[z(0xdc)](),c={'generatorName':this[z(0x12f)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x109)](c);const d=Buffer['from'](JSON['stringify'](b))['length'];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[z(0x138)]();}this['writeHistory'](b);}catch(f){Log[z(0xf6)](f);}}async['undo'](){const A=a104u,a=this[A(0xdc)]();if(a[A(0xda)]===0x0){Log[A(0x133)](A(0x129));return;}const b=a[A(0xf4)](),c=b[A(0x10f)],d=a[A(0x11a)](e=>e[A(0x10f)]===c);d['push'](b),d['reverse']();for(const e of d){const f=this[A(0x148)](e[A(0x110)]);if(!f){Log[A(0xf6)](A(0xf9)+e[A(0x110)]+A(0x13c));continue;}f[A(0x100)]?await f['_undoHandler'](e[A(0xdd)]):Log[A(0x133)](A(0xfa)+e[A(0x110)]+A(0xd1));}this[A(0x125)](a[A(0x11a)](g=>g[A(0x10f)]!==c));}static['create'](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x106));if(typeof b!==B(0x130))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b);c&&(e[B(0x100)]=c[B(0x11d)](e));d=d||a104i;const f=d?d[B(0x12f)]:'';return e[B(0x12f)]=f?f+':'+a[B(0xde)]:a[B(0xde)],Object[B(0xce)](e,{'parent':d?.[B(0xe3)]?.['name']}),d['addGenerator'](e),e;}['addGenerator'](a){const C=a104u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[C(0x128)][C(0x109)](a);}async[a104u(0xee)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.[D(0x11c)](':');if(!f||f[D(0xda)]===0x0)throw D(0x115);let g=this['_generators'],h;for(const i of f){h=g[D(0x142)](j=>j[D(0xcd)](i));if(!h)throw D(0xf9)+i+D(0xcb);g=h[D(0x128)];}if(h)d=await h['invoke'](b,c);else throw'Generator\x20not\x20found';}catch(j){Log['error'](j);}return d;}[a104u(0x148)](a){const E=a104u,b=a?.[E(0x11c)](':');if(!b||b[E(0xda)]===0x0)return Log[E(0xf6)](E(0x115)),null;let c=this[E(0x128)],d;for(const e of b){d=c['find'](f=>f[E(0xcd)](e));if(!d)return Log[E(0xf6)](E(0xf9)+e+E(0xcb)),null;c=d[E(0x128)];}return d||null;}async[a104u(0xf0)](a,b){const F=a104u,c=a[F(0x118)]();b['resourceName']=c[0x0];try{const d=await this[F(0x126)][F(0x123)](),f=d[F(0xff)]===F(0xd4)?ColorMode['LIGHT']:ColorMode[F(0xc8)];Log[F(0xc9)](f);const g=a[0x0]===_prevGen||a[F(0xda)]===0x0&&this[F(0x128)][F(0xda)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this[F(0x128)][F(0xda)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][F(0xe5)]){const i=this[F(0x116)]();if(!i)throw new MustBeInProjectError();}if(this[F(0xe3)][F(0xe1)]){const j=this[F(0x108)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0xe3)][F(0xeb)]===F(0xca)){if(a[F(0xda)]<this['options'][F(0xeb)]){Log[F(0xf6)](F(0xe8));throw new UsageError();}}if(typeof this[F(0xe3)][F(0xcf)]===F(0xca)){if(a[F(0xda)]>this['options'][F(0xcf)]){Log[F(0xf6)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[F(0xe3)][F(0x146)]===F(0xca)){if(Object[F(0xf2)](b)[F(0xda)]<this[F(0xe3)]['minOptsLength']){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[F(0xe3)]['maxOptsLength']===F(0xca)){if(Object['keys'](b)['length']>=this[F(0xe3)][F(0xd6)]){Log[F(0xf6)](F(0x141));throw new UsageError();}}}this[F(0xe3)][F(0xd3)]&&this[F(0xfc)](this[F(0xe3)][F(0xd3)]);await this[F(0xd2)](a,b,this[F(0xe3)]);if(!b[F(0xf1)]&&!this[F(0xe3)][F(0x122)]){Log[F(0xf6)](F(0x136));throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[F(0xe0)](0x1);}return await inside(b[F(0xdb)],async()=>{const G=F;try{if(!b[G(0x11f)]&&!this[G(0x126)][G(0xc7)]())throw new MustBeInProjectError();const l=b[G(0xf1)]?.['replace'](/\\/g,'/')[G(0x11c)]('/');!b[G(0x12c)]&&(l?.['length']>0x1?(b['resourceName']=l[G(0xf4)](),c[0x0]=b[G(0xf1)],b[G(0x12c)]=l[G(0x12a)](n=>{return paramCase(n);})[G(0x10b)](a104e[G(0x139)])):b[G(0x12c)]='');if(this[G(0xe3)]['checkWhere']){if(!b[G(0x140)]){const o={'type':'list','name':G(0x121),'message':G(0x13e),'choices':[{'name':G(0xe2),'value':G(0xe9)},{'name':G(0x137),'value':'server'},{'name':G(0x11b),'value':'both'}]},{colLocAnswer:p}=await Actions[G(0xe3)](o);p?b['where']=p:b[G(0x140)]='both';}const n=[G(0xe7),'client',G(0x119)];if(!n[G(0x107)](b[G(0x140)])){Log['error'](G(0x12b));throw new UsageError();}switch(b[G(0x140)]){case'both':b[G(0x135)]=G(0x117);break;case G(0x119):b[G(0x135)]=G(0x119);break;case'client':b[G(0x135)]='client';break;default:b[G(0x135)]='';}}const m=await this[G(0x12e)]['call'](this,c,b);return m&&this['addToHistory']({'params':{'args':c,'opts':this[G(0x126)]['deepen'](b)},'success':m?.[G(0xec)],'message':m?.['message'],'details':m?.['details']}),m;}catch(q){this['handleGenerateError'](q);}});}['listGenerators'](){const H=a104u;this[H(0xf7)](this['_generators']);}['handleGenerateError'](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this['options'];Log[I(0xf8)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0xea)](I(0x144)),this[I(0xf7)](this[I(0x128)]);else{if(a instanceof MustBeInProjectError)Log[I(0xf6)](I(0xc6));else{if(a instanceof NoMeteorFoundError)Log['error'](I(0x10d)),Log[I(0xea)](I(0x134));else a instanceof NoMeteorAppFoundError&&Log[I(0xf6)](I(0x13b));}}}[a104u(0xf7)](a){const J=a104u,b=new a104g({});b[J(0x109)]([J(0xfd),J(0x111),J(0xed)]),a['sort']((c,d)=>{const K=J;return c[K(0xde)][K(0xdf)](d[K(0xde)]);})[J(0x132)](c=>{const L=J,d=c[L(0x149)](),e=d?L(0xef)+c[L(0x10c)]():c['shortDesc']();b[L(0x109)]([c[L(0xde)],c[L(0x114)](),e]);}),Log[J(0x10e)](b[J(0xf5)]());}}function a104c(){const M=['readHistory','details','name','localeCompare','exit','mustHaveMeteorInstalled','Client','options','.maka','mustBeInMakaProject','parse','both','Too\x20few\x20arguments','client','notice','minArgLength','success','Description','processAndRunGenerator','(expermiental)\x20','invoke','resourceName','keys','config','pop','toString','error','tableList','usage','Generator\x20','No\x20undo\x20handler\x20defined\x20for\x20','params','validateEngines','Name','7bWeltt','pallet','_undoHandler','(((.+)+)+)+$','utf-8','153yjZWWz','getHistoryFileSize','10618575SDFunc','Generator.create\x20requires\x20some\x20options!','includes','validateMeteorInstall','push','1020552Pixdon','join','shortDesc','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','bright','transactionId','generatorName','Alias','Generator\x20requires\x20a\x20name','size','aliases','Generator\x20format\x20is\x20incorrect','validateMakaProject','lib','slice','server','filter','Both','split','bind','305415HQarbH','root','chdir','colLocAnswer','noNeedResource','getGlobalConfig','existsSync','writeHistory','fsi','writeFileSync','_generators','Nothing\x20to\x20undo.','map','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','dir','213926vmUyZc','_handler','fullNameChain','function','search','forEach','warn','Please\x20run\x20\x22maka\x20install\x20meteor\x22','appPathPrefix','No\x20resource\x20name\x20specified','Server','shift','sep','_historyFilePath','There\x20is\x20no\x20Meteor\x20application\x20here','\x20not\x20found.\x20Cannot\x20undo.','3gxihTU','Location','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','where','Too\x20many\x20options','find','statSync','Generators:','constructor','minOptsLength','opts','findGeneratorByName','experimental','history.json','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','findProjectDirectory','DARK','setColorMode','number','\x20not\x20found','16ZNDSQH','match','assign','maxArgLength','readFileSync','\x20generator.\x20Skipping\x20undo.','validateParams','requiredEngines','light','3195975jNBRJI','maxOptsLength','8851904cgdMvm','649470NQYXgs','_genTransactionId','length','cwd'];a104c=function(){return M;};return a104c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a105d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=-parseInt(f(0xcc))/0x1+-parseInt(f(0xd4))/0x2*(parseInt(f(0xd5))/0x3)+parseInt(f(0xca))/0x4+parseInt(f(0xd2))/0x5+parseInt(f(0xce))/0x6+parseInt(f(0xc9))/0x7*(-parseInt(f(0xcd))/0x8)+parseInt(f(0xd0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xebc36));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0xcb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a[h(0xcf)]()[h(0xd3)](h(0xd1))[h(0xcf)]()[h(0xd6)](a105a)[h(0xd3)](h(0xd1));});a105a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0xc9;var f=c[d];return f;},a105d(a,b);}import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';function a105c(){var i=['2779116WeQgjV','toString','12027222pvuQvu','(((.+)+)+)+$','7169000qWbnTO','search','22rSumNW','446076ckpqOz','constructor','329KgmHbl','1087752QBvifB','apply','877523FLqvnI','4504mgvaBB'];a105c=function(){return i;};return a105c();}import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106y=a106d;
|
|
1
|
+
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=-parseInt(v(0x1c2))/0x1+parseInt(v(0x1c8))/0x2+-parseInt(v(0x1b8))/0x3+parseInt(v(0x1cd))/0x4+-parseInt(v(0x1cf))/0x5+-parseInt(v(0x1c6))/0x6*(-parseInt(v(0x18d))/0x7)+parseInt(v(0x1ac))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x598f1));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x1a4)]()['search']('(((.+)+)+)+$')['toString']()[x(0x1ca)](a106a)[x(0x1ce)](x(0x19a));});a106a();function a106c(){const B=['dir','ddp-rate-limiter','/graphql/resolvers','GraphQL','if\x20\x5c(typeList','-api\x27;','withGql','Resolvers);\x0a\x0a','7LmjsON','ask','api/typeDefs.js','startup','maka\x20{generate,\x20g}:{api}\x20<resource-name>','length','engines','push','const','test','REST\x20API','template','/imports/api/','(((.+)+)+)+$','injectIntoFile','includes','import\x20\x27./register-','.app-tests.','-rest-api.','index.','\x27;\x0a','resolvers.','/graphql/typeDefs','toString','-api.','api','imports','API\x20boundaries\x20to\x20create','apollo','injectAtEndOfFile','fsi','1925168wUqttK','error','withMethods','resolverList.push(','exit','api/resolvers.js','apiAnswers','create','RPC\x20(Methods)','mdg:validated-method','server','setProjectConfig','1028121GuelMw','checkMeteorPackage','none','withRest','maka\x20g:api\x20Todos','-rpc-methods.','tsx','api/register-api.js','No\x20API\x20boundaries\x20selected','injectAtBeginningOfFile','353749UZRzBR','api/methods.js','Resolvers\x20}\x20from\x20\x27','graphql','2578776snlIfJ','typeDefs.','1081280YTFcSg','checkbox','constructor','pathFromApp','apply','2181440diGLvC','search','3465765HUiUfn','typeList.push('];a106c=function(){return B;};return a106c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x187;let f=c[d];return f;},a106d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106y(0x1b3)]({'name':a106y(0x1a6),'aliases':['a'],'usage':a106y(0x191),'shortDesc':'Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','validOpts':['dir'],'examples':[a106y(0x1bc)],'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 z=a106y;try{const c=this[z(0x1ab)]['getMakaProjectConfig'](),d=[{'name':z(0x1b4),'value':'withMethods'}];d[z(0x194)]({'name':z(0x197),'value':'withRest'});c[z(0x193)][z(0x1c5)]===z(0x1a9)&&d[z(0x194)]({'name':z(0x188),'value':z(0x18b)});const f={'type':z(0x1c9),'name':z(0x1b2),'message':z(0x1a8),'pageSize':0x64,'choices':d},g=await Actions[z(0x18e)]('API\x20Version?\x20[v1]')||'v1',{apiAnswers:h}=await Actions['options'](f);h[z(0x192)]===0x0&&(Log[z(0x1ad)](z(0x1c0)),process[z(0x1b0)](0x1)),await this[z(0x1ab)]['withValue'](c,async()=>{const A=z,i=b['resourceName'],j=paramCase(i),k=camelCase(i),l=b[A(0x1d1)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][A(0x1a6)],'graphql':c[A(0x193)][A(0x1c5)],'test':c[A(0x193)][A(0x196)],'noRename':!![],'withMethods':h[A(0x19c)](A(0x1ae)),'withRest':h[A(0x19c)]('withRest')};let n='js';c['engines']['js']===A(0x1be)&&(n='ts');m[A(0x1bb)]&&(this['fsi'][A(0x1b7)]({'engines':{'api':'rest'}}),await this[A(0x1ab)][A(0x1b9)](['maka:rest','ddp-rate-limiter',A(0x1b5)],{'shouldInstall':!![]}),await this[A(0x1ab)][A(0x198)]({'srcPath':'api/api.js','destPath':this[A(0x1ab)]['pathFromApp']({'pathParts':[A(0x1a7),A(0x1a6),g,b[A(0x1d1)],j,j+'-'+g+A(0x19f)+n]}),'context':m,'config':c}));m[A(0x1ae)]&&(await this['fsi'][A(0x1b9)]([A(0x1d2),'mdg:validated-method'],{'shouldInstall':!![]}),await this[A(0x1ab)][A(0x198)]({'srcPath':A(0x1c3),'destPath':this[A(0x1ab)][A(0x1cb)]({'pathParts':[A(0x1a7),'api',g,b[A(0x1d1)],j,j+'-'+g+A(0x1bd)+n]}),'context':m,'config':c}));c[A(0x193)][A(0x196)]!==A(0x1ba)&&await this[A(0x1ab)][A(0x198)]({'srcPath':'api/tests.js','destPath':this[A(0x1ab)][A(0x1cb)]({'pathParts':[A(0x1a7),A(0x1a6),g,b[A(0x1d1)],j,j+'-'+g+A(0x19e)+n]}),'context':m,'config':c});if(c[A(0x193)][A(0x1c5)]===A(0x1a9)){if(h[A(0x19c)](A(0x18b))){const p=this[A(0x1ab)]['pathFromApp']({'pathParts':[A(0x1a7),A(0x190),A(0x1b6),A(0x1a0)+c['engines']['js']]}),q=this[A(0x1ab)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[A(0x1ab)][A(0x1cb)]({'pathParts':[A(0x1a7),A(0x1a6),g,b['dir'],j,A(0x1c5),A(0x1c7)+n]}),s=A(0x199)+g+l+j+A(0x1a3);await this[A(0x1ab)][A(0x198)]({'srcPath':A(0x18f),'destPath':r,'context':m,'config':c}),await this[A(0x1ab)][A(0x1c1)]({'filePath':q,'content':'import\x20{\x20typeDefs\x20as\x20'+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0x1a1)}),await this['fsi'][A(0x19b)]({'filePath':q,'content':A(0x1d0)+k+'TypeDefs);\x0a','begin':A(0x195),'end':A(0x189)});const t=this[A(0x1ab)]['pathFromApp']({'pathParts':[A(0x1a7),A(0x1a6),g,b[A(0x1d1)],j,A(0x1c5),A(0x1a2)+n]}),u=A(0x199)+g+l+j+A(0x187);await this['fsi'][A(0x198)]({'srcPath':A(0x1b1),'destPath':t,'context':m,'config':c}),await this[A(0x1ab)][A(0x1c1)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x1c4)+u+'\x27;'}),await this[A(0x1ab)]['injectIntoFile']({'filePath':q,'content':A(0x1af)+k+A(0x18c),'begin':'const','end':'if\x20\x5c(typeList'});}}await this[A(0x1ab)]['template']({'srcPath':A(0x1bf),'destPath':this[A(0x1ab)]['pathFromApp']({'pathParts':[A(0x1a7),'startup','server','register-'+j+A(0x1a5)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x1ab)][A(0x1cb)]({'pathParts':[A(0x1a7),A(0x190),A(0x1b6),A(0x1a0)+c[A(0x193)]['js']]});await this[A(0x1ab)][A(0x1aa)]({'filePath':o,'content':A(0x19d)+j+A(0x18a)});});}catch(i){console[z(0x1ad)](i),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-
|
|
1
|
+
function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x18f;var f=c[d];return f;},a107d(a,b);}(function(a,b){var f=a107d,c=a();while(!![]){try{var d=-parseInt(f(0x192))/0x1+-parseInt(f(0x199))/0x2+parseInt(f(0x197))/0x3*(-parseInt(f(0x198))/0x4)+-parseInt(f(0x19c))/0x5*(parseInt(f(0x196))/0x6)+-parseInt(f(0x191))/0x7+parseInt(f(0x190))/0x8+-parseInt(f(0x19b))/0x9*(-parseInt(f(0x194))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x46343));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x18f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0x19d)]()[h(0x19a)](h(0x195))[h(0x19d)]()[h(0x193)](a107a)[h(0x19a)](h(0x195));});function a107c(){var i=['3703280LarnSu','1785791DKwHJf','450944uPywCO','constructor','1840ZBMOEm','(((.+)+)+)+$','6FJnDNA','402342Zqoiux','4LzSlvI','179354UvrUVh','search','47961rXJuRE','1130215tXWfml','toString','apply'];a107c=function(){return i;};return a107c();}a107a();import'./aws.js';import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=-parseInt(f(0x153))/0x1*(parseInt(f(0x14e))/0x2)+-parseInt(f(0x155))/0x3+-parseInt(f(0x157))/0x4+parseInt(f(0x151))/0x5*(-parseInt(f(0x152))/0x6)+parseInt(f(0x14a))/0x7+parseInt(f(0x14f))/0x8*(-parseInt(f(0x159))/0x9)+-parseInt(f(0x158))/0xa*(-parseInt(f(0x15b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x9d7f4));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x14a;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0x154)]()[h(0x150)](h(0x14c))['toString']()[h(0x14d)](a108a)[h(0x150)](h(0x14c));});a108a();import{Generator}from'../../generator.js';const AWSGen=Generator[a108i(0x156)]({'name':'aws','usage':'maka\x20{generate,\x20g}:{aws}:<name>','shortDesc':a108i(0x15c),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a108i(0x15a)],'experimental':!![]},async function(){});function a108c(){const j=['18462wFzzRT','5692YWMAay','toString','2745627kHBdDD','create','1871804Wzufcj','482710RaRhoL','13059bokqBl','maka\x20g:aws','583TdWCll','Generate\x20AWS\x20templates','4975845tPeSto','apply','(((.+)+)+)+$','constructor','402NmBUdq','8UVPgBP','search','155NNvfNy'];a108c=function(){return j;};return a108c();}export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a109d,c=a();while(!![]){try{var d
|
|
1
|
+
function a109c(){var i=['(((.+)+)+)+$','25443KbEXcZ','514465DNKluU','constructor','498438LCZYbp','28DsPLYb','382182MUhCaG','77VdGani','toString','apply','339208JROrri','864bkLzzd','1887162fsuWDD','5093670UIYYds','search','153yJvDuE','3AaTcwO'];a109c=function(){return i;};return a109c();}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0x1fc))/0x1*(parseInt(f(0x201))/0x2)+-parseInt(f(0x1f8))/0x3+parseInt(f(0x202))/0x4*(parseInt(f(0x1ff))/0x5)+-parseInt(f(0x203))/0x6*(-parseInt(f(0x204))/0x7)+parseInt(f(0x1f6))/0x8*(parseInt(f(0x1fb))/0x9)+-parseInt(f(0x1f9))/0xa+parseInt(f(0x1fe))/0xb*(parseInt(f(0x1f7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x67131));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x1f5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0x1f4)]()[h(0x1fa)](h(0x1fd))[h(0x1f4)]()[h(0x200)](a109a)[h(0x1fa)]('(((.+)+)+)+$');});a109a();function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x1f4;var f=c[d];return f;},a109d(a,b);}import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a110h=a110d;function a110c(){const i=['56217rwrYWw','4786836WCCkfz','54OGUZjD','146880boBlYE','(((.+)+)+)+$','toString','search','1004763SAMrUv','695190ijzsJK','AWS\x20Cloudformation\x20templates','55792cHTfkW','maka\x20g:aws:cf','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','24FTOQrL','2242093iDSdON'];a110c=function(){return i;};return a110c();}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0x9c))/0x1+-parseInt(f(0xa2))/0x2*(-parseInt(f(0xa4))/0x3)+-parseInt(f(0xa7))/0x4+-parseInt(f(0x9d))/0x5+-parseInt(f(0xa5))/0x6+parseInt(f(0xa3))/0x7+-parseInt(f(0x9f))/0x8*(parseInt(f(0xa6))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x827fa));const a110b=(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;};}()),a110a=a110b(this,function(){const g=a110d;return a110a[g(0x9a)]()[g(0x9b)]('(((.+)+)+)+$')[g(0x9a)]()['constructor'](a110a)['search'](g(0xa8));});function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x9a;let f=c[d];return f;},a110d(a,b);}a110a();import{Generator}from'../../../generator.js';import a110e from'../aws.js';const CFGen=Generator['create']({'name':'cloudformation','aliases':['cf'],'usage':a110h(0xa1),'noNeedResource':!![],'shortDesc':a110h(0x9e),'validOpts':[''],'isPro':![],'examples':[a110h(0xa0)],'experimental':!![]},async function(){},async function(){},a110e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=parseInt(m(
|
|
1
|
+
const a111p=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=parseInt(m(0x18f))/0x1+-parseInt(m(0x184))/0x2*(parseInt(m(0x18e))/0x3)+-parseInt(m(0x18a))/0x4+parseInt(m(0x1a7))/0x5*(-parseInt(m(0x191))/0x6)+parseInt(m(0x183))/0x7*(-parseInt(m(0x1a4))/0x8)+-parseInt(m(0x1a8))/0x9+-parseInt(m(0x198))/0xa*(-parseInt(m(0x19a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xf063e));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a111d;if(c){const e=c[n(0x1aa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const o=a111d;return a111a[o(0x19f)]()['search']('(((.+)+)+)+$')[o(0x19f)]()[o(0x187)](a111a)[o(0x18c)](o(0x186));});a111a();function a111c(){const s=['No\x20instance\x20has\x20been\x20created.','cec2i','create-ec2-instance.template','fsi','245RVRJFV','1437022BqjbUo','error','(((.+)+)+)+$','constructor','template','getMakaProjectConfig','6119792THJysp','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','search','ec2describeKeys','3NJeSrS','955396AiHGyb','join','66Mhgkqd','exit','ask','create','cloudformation','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','findProjectDirectory','70sDUptw','withValue','8847179uhKNUb','Please\x20choose\x20a\x20key\x20to\x20use:\x20','name','create-ec2-instance','appName','toString','cloudformation/create-ec2-instance.template','success','notice','maka\x20g:aws:cf:cec2i','372648fJRQZJ','Setting\x20the\x20key-pair\x20to:\x20','aws','232505PyaiIz','10894284QcyrCk','ami-055744c75048d8296','apply'];a111c=function(){return s;};return a111c();}import a111e from'path';import{AWS}from'../../../tools/aws/aws.class.js';import{Actions}from'../../../tools/actions/actions.class.js';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0x181;let f=c[d];return f;},a111d(a,b);}import{headerCase}from'change-case';import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a111f from'./cloudformation.js';const CEC2Gen=Generator[a111p(0x194)]({'name':a111p(0x19d),'aliases':[a111p(0x1ac)],'usage':a111p(0x18b),'noNeedResource':!![],'shortDesc':'AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','validOpts':[''],'isPro':![],'examples':[a111p(0x1a3)],'experimental':!![]},async function(){const q=a111p,a=new AWS();try{const b=this[q(0x182)][q(0x189)](),c=this[q(0x182)][q(0x197)](),d=a111e['join'](c,q(0x195)),f=await a[q(0x18d)](),g=await Actions[q(0x193)](q(0x19b))||'-1';if(parseInt(g)<0x0){Log[q(0x185)](q(0x196)),Log[q(0x1a2)](q(0x1ab));return;}let h='';if(f)for(const k of f){if(parseInt(g)===k['id']){h=k[q(0x19c)],Log[q(0x1a1)](q(0x1a5)+h);break;}}const i=await a['chooseSecurityGroup'](),j={'amiId':q(0x1a9),'keyPair':h,'sgId':i,'instanceName':headerCase(b[q(0x19e)])['replaceAll']('-','\x20')};await this[q(0x182)][q(0x199)](b,async()=>{const r=q;await this[r(0x182)][r(0x188)]({'srcPath':r(0x1a0),'destPath':a111e[r(0x190)](d,r(0x181)),'framework':r(0x1a6),'context':j,'config':b,'ignore':![]});});}catch(l){Log[q(0x185)](l),process[q(0x192)](0x1);}},async function(){},a111f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112m=a112d;(function(a,b){const j=a112d,c=a();while(!![]){try{const d=parseInt(j(0x16e))/0x1*(-parseInt(j(0x161))/0x2)+-parseInt(j(0x150))/0x3*(parseInt(j(0x164))/0x4)+-parseInt(j(0x14f))/0x5*(parseInt(j(0x15b))/0x6)+parseInt(j(0x15c))/0x7*(-parseInt(j(0x14e))/0x8)+-parseInt(j(0x16f))/0x9*(-parseInt(j(0x155))/0xa)+parseInt(j(0x16a))/0xb+parseInt(j(0x149))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x9770e));function a112c(){const p=['test','34108056YVjsrC','withValue','resourceName','dir','engines','2174824Kkhria','1654295mDGykz','3142689YSAawS','startup','collection','toString','(((.+)+)+)+$','10qIBLHQ','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','search','pathFromApp','imports','12wQgKrW','14ZPaWJG','tsx','apply','none','create','1414394qHaclY','constructor','error','4Mfpllw','injectAtEndOfFile','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','appPathPrefix','mongo','getMakaProjectConfig','5509339BWKbuD','where','collections','template','1YozpSp','2135691zHqcCp','fsi','col'];a112c=function(){return p;};return a112c();}const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a112d;if(c){const e=c[k(0x15e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const l=a112d;return a112a['toString']()[l(0x158)](l(0x154))[l(0x153)]()[l(0x162)](a112a)[l(0x158)](l(0x154));});function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x146;let f=c[d];return f;},a112d(a,b);}a112a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a112m(0x160)]({'name':a112m(0x152),'aliases':[a112m(0x147)],'usage':a112m(0x166),'checkWhere':!![],'shortDesc':a112m(0x156),'validOpts':[a112m(0x14c),a112m(0x16b)],'description':a112m(0x157),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a112m;try{const c=this[n(0x146)][n(0x169)]();await this['fsi'][n(0x14a)](c,async()=>{const o=n,d=paramCase(b[o(0x14b)]),f={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b['where'],'test':c['engines'][o(0x148)],'noRename':!![]};let g='js';c['engines']['js']===o(0x15d)&&(g='ts');await this['fsi']['checkMeteorPackage']([o(0x168)],{'shouldInstall':!![]}),await this[o(0x146)][o(0x16d)]({'srcPath':'collection/collection.js','destPath':this[o(0x146)][o(0x159)]({'pathParts':[o(0x15a),o(0x151),b[o(0x167)],o(0x16c),b[o(0x14c)],d+'.'+g]}),'context':f,'config':c});c[o(0x14d)][o(0x148)]!==o(0x15f)&&await this[o(0x146)][o(0x16d)]({'srcPath':'collection/tests.js','destPath':this['fsi'][o(0x159)]({'pathParts':['imports',o(0x151),b[o(0x167)],'collections',b[o(0x14c)],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0x14c)]?'/'+b[o(0x14c)]+'/':'/',i=this['fsi']['pathFromApp']({'pathParts':[o(0x15a),o(0x151),b[o(0x167)],'index.'+c[o(0x14d)]['js']]});await this['fsi'][o(0x165)]({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log[n(0x163)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=-parseInt(k(0x14f))/0x1+-parseInt(k(0x14b))/0x2+parseInt(k(0x177))/0x3+parseInt(k(0x158))/0x4*(parseInt(k(0x16b))/0x5)+-parseInt(k(0x168))/0x6+parseInt(k(0x152))/0x7+parseInt(k(0x166))/0x8*(parseInt(k(0x17b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x6dd7a));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a[m(0x179)]()[m(0x17a)](m(0x161))[m(0x179)]()[m(0x178)](a113a)[m(0x17a)](m(0x161));});a113a();function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x14a;let f=c[d];return f;},a113d(a,b);}import a113e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a113c(){const q=['component/component.js','withTranslations','react','warn','2155251oUPoZg','constructor','toString','search','27kGlXTe','injectAtBeginningOfFile','true','/imports/ui/','root','pathFromApp','component','import\x20\x27./','fileName','className','test','theme','1437960NsfmCb','fsi','error','injectTemplateModule','818616wIqNRM','getMakaProjectConfig','baseDir','6062798LlVjcr','create','none','installNpmPackage','resourceName','features','30012rDKQLv','setTemplate','ramda','apply','findAppDirectory','css','cssCaseName','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','maka\x20g:comp\x20todos/todos-item','(((.+)+)+)+$','comp','.css','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','418920RFVjWj','.js','3791802ahNxKo','template/template.css','.tests.js','585XlZROv','template','assign','pathFromProject','string','engines','/imports/ui/components','dir'];a113c=function(){return q;};return a113c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a113n(0x162)];Generator[a113n(0x153)]({'name':a113n(0x181),'aliases':aliases,'usage':a113n(0x15f),'shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[{'name':a113n(0x151)}],'examples':[a113n(0x160)]},async function(a,b){const o=a113n;try{const c=this[o(0x14c)][o(0x15c)](),d=b[o(0x151)]?o(0x17e)+b[o(0x151)]:o(0x171),f=this[o(0x14c)][o(0x180)]({'pathParts':[d,b[o(0x172)],paramCase(b[o(0x156)]),paramCase(b['resourceName'])]}),g=await this['fsi'][o(0x150)]();await this[o(0x14c)]['withValue'](g,async()=>{const p=o;typeof g[p(0x16c)][p(0x185)]===p(0x16f)&&(g[p(0x16c)][p(0x185)]=g[p(0x16c)][p(0x185)]===p(0x17d)?!![]:![],this[p(0x14c)][p(0x159)]('test',g[p(0x16c)]['test']));typeof g['template'][p(0x15d)]===p(0x16f)&&(g[p(0x16c)][p(0x15d)]=g[p(0x16c)][p(0x15d)]===p(0x17d)?!![]:![],this[p(0x14c)][p(0x159)]('css',g[p(0x16c)][p(0x15d)]));typeof g[p(0x16c)]['js']===p(0x16f)&&(g[p(0x16c)]['js']=g[p(0x16c)]['js']===p(0x17d)?!![]:![],this['fsi'][p(0x159)]('js',g['template']['js']));!g[p(0x157)]&&(g[p(0x157)]={});!b[p(0x17f)]&&!this[p(0x14c)]['checkNpmPackage'](p(0x15a))&&(Log[p(0x176)](p(0x164)),await this[p(0x14c)][p(0x155)](p(0x15a),{'cwd':c}));if(!b[p(0x17f)]&&!this[p(0x14c)]['checkNpmPackage'](p(0x175))){Log[p(0x14d)](p(0x165));return;}const h={'name':pascalCase(b[p(0x156)]),'myPath':a113e['relative'](this[p(0x14c)][p(0x16e)]({}),f),'cssCaseName':paramCase(b[p(0x156)]),'className':pascalCase(b[p(0x156)]),'camelCaseName':camelCase(b[p(0x156)]),'fileName':paramCase(b[p(0x156)]),'graphql':g[p(0x170)]['graphql'],'features':g['features'],'client':g['engines']['client'],'api':g['engines']['api'],'ssr':g[p(0x170)]['ssr'],'test':g[p(0x170)][p(0x185)],'theme':g[p(0x170)][p(0x14a)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x157)][p(0x174)]};await this['fsi'][p(0x16c)]({'srcPath':p(0x173),'destPath':f+p(0x167),'context':h,'framework':p(0x175),'config':g});g['engines'][p(0x185)]!==p(0x154)&&await this['fsi'][p(0x16c)]({'srcPath':'test/test.js','destPath':f+p(0x16a),'context':h,'framework':p(0x175),'config':g});g[p(0x16c)][p(0x15d)]&&(await this[p(0x14c)]['template']({'srcPath':p(0x169),'destPath':f+p(0x163),'context':Object[p(0x16d)]({},h,{'className':paramCase(b[p(0x156)])}),'config':g}),await this[p(0x14c)][p(0x17c)]({'filePath':f+'.'+g[p(0x170)]['js'],'content':p(0x182)+h[p(0x15e)]+'.'+g[p(0x170)][p(0x15d)]+'\x27;'}));const i=b[p(0x172)]?'/'+b[p(0x172)]+'/':'/',j=''+d+i+h[p(0x183)]+'/'+h[p(0x183)];await this[p(0x14c)][p(0x14e)](h[p(0x184)],g,j);});}catch(h){Log['error'](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114l=a114d;(function(a,b){const i=a114d,c=a();while(!![]){try{const d
|
|
1
|
+
const a114l=a114d;function a114c(){const o=['getMakaProjectConfig','ubuntu','dev','search','53068Edlevi','config','(((.+)+)+)+$','prod','toString','isDocker','apply','appName','pathFromProject','167227cDAiVo','local','maka\x20{generate,\x20g}:{config}\x20<name>','176140NZIPiF','1894823goOVsM','27914OidMGg','65ShfqMY','pm2.config.js','template','fsi','1247946faOkZO','settings.json','resourceName','config/process.env','withValue','development','348813MwKJZL','Generate\x20configuration\x20settings.','8RKkSVy','config/settings.json','config/pm2.config.js','27IuqzNM'];a114c=function(){return o;};return a114c();}(function(a,b){const i=a114d,c=a();while(!![]){try{const d=-parseInt(i(0x1af))/0x1+-parseInt(i(0x1b4))/0x2+parseInt(i(0x19c))/0x3+parseInt(i(0x1a6))/0x4*(-parseInt(i(0x1b5))/0x5)+parseInt(i(0x1b9))/0x6+parseInt(i(0x1b3))/0x7*(parseInt(i(0x19e))/0x8)+parseInt(i(0x1a1))/0x9*(-parseInt(i(0x1b2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x2e026));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a114d;if(c){const e=c[j(0x1ac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const k=a114d;return a114a[k(0x1aa)]()['search'](k(0x1a8))['toString']()['constructor'](a114a)[k(0x1a5)](k(0x1a8));});a114a();import{Generator}from'../generator.js';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x199;let f=c[d];return f;},a114d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a114l(0x1a7),'usage':a114l(0x1b1),'shortDesc':a114l(0x19d),'validOpts':[a114l(0x1ab)],'examples':['maka\x20g:config\x20production']},async function(a,b){const m=a114l;try{const c=this['fsi'][m(0x1a2)]();await this[m(0x1b8)][m(0x19a)](c,async()=>{const n=m,d={'app':c['appName'],'appFileCase':paramCase(c['appName']),'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[n(0x1bb)]),'userName':n(0x1a3),'isDocker':b[n(0x1ab)]};let e=b['resourceName'];if(e===n(0x1a4))e=n(0x19b);else e===n(0x1a9)&&(e='production');const f=this[n(0x1b8)]['pathFromProject']({'pathParts':[n(0x1a7),e,n(0x1ba)]});await this[n(0x1b8)][n(0x1b7)]({'srcPath':n(0x19f),'destPath':f,'context':d,'config':c});if(e!==n(0x1b0)){const g=this[n(0x1b8)][n(0x1ae)]({'pathParts':['config',e,n(0x1b6)]});await this[n(0x1b8)]['template']({'srcPath':n(0x1a0),'destPath':g,'context':{'app':c[n(0x1ad)],'isDocker':!![]},'config':c});}if(e===n(0x1b0)){const h=this[n(0x1b8)][n(0x1ae)]({'pathParts':['config',e,'process.env']});await this[n(0x1b8)][n(0x1b7)]({'srcPath':n(0x199),'destPath':h,'context':d,'config':c});}});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115l=a115d;(function(a,b){const i=a115d,c=a();while(!![]){try{const d=-parseInt(i(
|
|
1
|
+
function a115c(){const o=['import\x20\x27./register-','register-','imports','1680785NLQsbB','maka\x20g:dbc\x20todos\x20--type=sqlite','dir','48727ZWDsis','118633kvzbUs','-dbc.','getMakaProjectConfig','engines','search','-dbc\x27;','checkNpmPackage','better-sqlite3','170862rhEzaC','1896nJtBRf','apply','startup','pgsql','conn.','mssql','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','dbc/conn.js','fsi','constructor','4tVtANp','pathFromApp','maka\x20g:dbc\x20azure\x20--type=mssql','155094YhFLqa','636BMyVNx','template','dbc/config.js','dbc','29313wKCTYZ','175087xCqPpq','error','2NmwFJj','type','(((.+)+)+)+$','toString','2040aaVMRu','resourceName','server','tsx'];a115c=function(){return o;};return a115c();}const a115l=a115d;(function(a,b){const i=a115d,c=a();while(!![]){try{const d=-parseInt(i(0x87))/0x1*(parseInt(i(0xa5))/0x2)+-parseInt(i(0x9d))/0x3+parseInt(i(0x9a))/0x4*(-parseInt(i(0x83))/0x5)+-parseInt(i(0x8f))/0x6+-parseInt(i(0x86))/0x7*(-parseInt(i(0x90))/0x8)+parseInt(i(0xa2))/0x9*(parseInt(i(0xa9))/0xa)+parseInt(i(0xa3))/0xb*(-parseInt(i(0x9e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0xe46c3));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a115d;if(c){const e=c[j(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const k=a115d;return a115a[k(0xa8)]()[k(0x8b)](k(0xa7))[k(0xa8)]()[k(0x99)](a115a)[k(0x8b)](k(0xa7));});a115a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0x82;let f=c[d];return f;},a115d(a,b);}Generator['create']({'name':a115l(0xa1),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a115l(0x96),'validOpts':[a115l(0x85)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a115l(0xa6),'values':[a115l(0x93),'mssql','sqlite']}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql',a115l(0x9c),a115l(0x84)]},async function(a,b){const m=a115l;try{const c=await this[m(0x98)][m(0x89)](),d=paramCase(b['resourceName']),f={'name':pascalCase(b[m(0xaa)]),'fileName':paramCase(b[m(0xaa)]),'camelCase':camelCase(b[m(0xaa)]),'type':b[m(0xa6)],'engine':c['engines']['js'],'noRename':!![]};await this[m(0x98)]['withValue'](c,async()=>{const n=m;let g='js';c['engines']['js']===n(0xac)&&(g='ts');b[n(0xa6)]===n(0x93)&&await this[n(0x98)]['checkNpmPackage']('pg',{'shouldInstall':!![]});b[n(0xa6)]===n(0x95)&&await this['fsi'][n(0x8d)]('mssql',{'shouldInstall':!![]});b[n(0xa6)]==='sqlite'&&await this[n(0x98)][n(0x8d)](n(0x8e),{'shouldInstall':!![]});await this[n(0x98)]['template']({'srcPath':n(0xa0),'destPath':this[n(0x98)][n(0x9b)]({'pathParts':[n(0x82),n(0x92),n(0xab),n(0xa1),b[n(0x85)],d,'config.'+g]}),'context':f,'config':c}),await this[n(0x98)][n(0x9f)]({'srcPath':n(0x97),'destPath':this['fsi'][n(0x9b)]({'pathParts':[n(0x82),'startup',n(0xab),'dbc',b['dir'],d,n(0x94)+g]}),'context':f,'config':c}),await this['fsi'][n(0x9f)]({'srcPath':'dbc/register-dbc.js','destPath':this[n(0x98)][n(0x9b)]({'pathParts':[n(0x82),n(0x92),n(0xab),n(0xae)+d+n(0x88)+g]}),'context':f,'config':c});const h=this[n(0x98)][n(0x9b)]({'pathParts':['imports',n(0x92),n(0xab),'index.'+c[n(0x8a)]['js']]});await this[n(0x98)]['injectAtEndOfFile']({'filePath':h,'content':n(0xad)+d+n(0x8c)});});}catch(g){Log[m(0xa4)](g);}});
|