@maka/maka-cli 4.12.3 → 4.12.4
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 -16
- 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 -0
- 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 -0
- 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 -0
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a92t=a92d;(function(a,b){const p=a92d,c=a();while(!![]){try{const d=parseInt(p(0x11e))/0x1+-parseInt(p(0x128))/0x2*(parseInt(p(0x13d))/0x3)+parseInt(p(0x144))/0x4*(-parseInt(p(0x15b))/0x5)+-parseInt(p(0x13e))/0x6+-parseInt(p(0x140))/0x7+-parseInt(p(0x12f))/0x8+parseInt(p(0x155))/0x9*(parseInt(p(0x133))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x86e0d));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a92d;if(c){const e=c[q(0x126)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const r=a92d;return a92a[r(0x13a)]()[r(0x142)](r(0x130))['toString']()[r(0x14a)](a92a)[r(0x142)]('(((.+)+)+)+$');});a92a();import a92e from'path';import a92f from'fs';import a92g from'dotenv';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x11e;let f=c[d];return f;},a92d(a,b);}import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const s=a92d;a92f[s(0x148)](a,'r'),a92g[s(0x15f)]({'path':a});},Run=Command[a92t(0x134)]({'name':a92t(0x127),'mustBeInMakaProject':!![],'aliases':['r'],'shortDesc':a92t(0x158),'description':a92t(0x15c),'validOpts':['env',a92t(0x124),a92t(0x157),a92t(0x129),a92t(0x12e),'verbose',a92t(0x120),a92t(0x136),'x',a92t(0x121),a92t(0x13c),'ci',a92t(0x13b)]},async function(a,b){const u=a92t;try{await this[u(0x15a)][u(0x149)](u(0x15e),{'shouldInstall':!![]}),await this[u(0x15a)]['ensureAllDependenciesInstalled']();const c=a[0x0];if(c==='ios'){const l=this[u(0x15a)]['findProjectDirectory'](),m=a92e[u(0x14b)](l,u(0x135),u(0x14f),u(0x12d),u(0x14e));this[u(0x15a)][u(0x161)](m)&&await rimraf(m);}!b[u(0x121)]&&!b['x']&&(a=a[u(0x122)]([u(0x147),'\x22web.browser.legacy\x22']));if(b['mobileServer']&&typeof b['mobileServer']===u(0x12c))throw u(0x150);const d=b[u(0x125)]?b[u(0x125)]:u(0x146),f=this[u(0x15a)][u(0x141)](d),g=a92e[u(0x14b)](f,u(0x156));let h=a92e[u(0x14b)](f,'settings.json');b[u(0x13f)]?h=b[u(0x13f)]:h=a92e['join'](f,u(0x14c));this[u(0x15a)][u(0x137)](g)?(Log['notice'](u(0x159)+g),syncSource(g)):(Log[u(0x154)](u(0x153)+g),this[u(0x15a)][u(0x139)]({'filePath':g,'data':''}));this['fsi'][u(0x137)](h)?(Log[u(0x12a)]('Meteor\x20Settings:\x20'+h),a=a[u(0x122)]([u(0x132),h])):Log[u(0x11f)](u(0x123)+h);const i=f['split'](a92e[u(0x15d)]),j=i[i['length']-0x1];j===u(0x13c)&&a[u(0x152)](u(0x131));const k=process[u(0x138)]['slice'](0x2)[u(0x143)](n=>n!==u(0x127))[u(0x143)](n=>n!==a[0x0]);k[u(0x151)]((n,o)=>{const v=u;n===v(0x14d)&&k[v(0x145)](o,0x2),n==='-e'&&k['splice'](o,0x2);}),this[u(0x15a)][u(0x12b)](u(0x127),a[u(0x122)](k));}catch(n){Log['error'](n),process[u(0x160)](0x1);}});export default Run;function a92c(){const w=['getAppConfigPath','search','filter','790156TYXJdl','splice','development','--exclude-archs','openSync','checkMeteorPackage','constructor','join','settings.json','--env','cordova-build','.meteor','Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)','forEach','push','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','info','123309xWHdSa','process.env','port','Run\x20your\x20Meteor\x20application','Node\x20Env\x20Config:\x20','fsi','5LXLdrP','\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x0a\x20\x20-o\x20|\x20--open\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Opens\x20the\x20application\x20in\x20your\x20default\x20browser.\x0a\x20\x20','sep','autoupdate','config','exit','isDirectory','235913lMNRul','warn','allowIncompatibleUpdate','excludeArchs','concat','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','rawLogs','env','apply','run','100HkoHpa','inspect','notice','invokeMeteorCommand','boolean','local','mobileServer','2384056LLsezF','(((.+)+)+)+$','--production','--settings','1750IAIWqr','create','app','extraPackages','isFile','argv','createFile','toString','open','production','39513JtJIVM','2894604jLRvVi','settings','3112179TNFHAI'];a92c=function(){return w;};return a92c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a93c(){var i=['constructor','296202UViKvk','1536568ONmNaR','10532ZhaOlj','49XCyxvH','search','apply','toString','460773lTXOhE','380822ecQWXF','5441544KvUQru','15DWUEvy','202227lVihXS'];a93c=function(){return i;};return a93c();}(function(a,b){var f=a93d,c=a();while(!![]){try{var d=-parseInt(f(0xdf))/0x1+parseInt(f(0xe0))/0x2+parseInt(f(0xe3))/0x3+-parseInt(f(0xe7))/0x4*(-parseInt(f(0xe2))/0x5)+-parseInt(f(0xe5))/0x6*(parseInt(f(0xe8))/0x7)+parseInt(f(0xe6))/0x8+parseInt(f(0xe1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x3e840));function a93d(a,b){var c=a93c();return a93d=function(d,e){d=d-0xde;var f=c[d];return f;},a93d(a,b);}var a93b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a93d;if(c){var e=c[g(0xea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){var h=a93d;return a93a['toString']()[h(0xe9)]('(((.+)+)+)+$')[h(0xde)]()[h(0xe4)](a93a)[h(0xe9)]('(((.+)+)+)+$');});a93a();import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a94j=a94d;(function(a,b){const h=a94d,c=a();while(!![]){try{const d=-parseInt(h(0x18c))/0x1+parseInt(h(0x19b))/0x2*(-parseInt(h(0x1a7))/0x3)+-parseInt(h(0x19f))/0x4+parseInt(h(0x19c))/0x5+-parseInt(h(0x192))/0x6+-parseInt(h(0x1aa))/0x7*(-parseInt(h(0x190))/0x8)+parseInt(h(0x18a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x7f9cf));const a94b=(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;};}()),a94a=a94b(this,function(){const i=a94d;return a94a[i(0x18b)]()[i(0x1af)](i(0x19a))[i(0x18b)]()['constructor'](a94a)[i(0x1af)]('(((.+)+)+)+$');});a94a();function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x185;let f=c[d];return f;},a94d(a,b);}import a94e from'path';import a94f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a94j(0x195)]({'name':a94j(0x199),'usage':a94j(0x1ac),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a94j(0x198),'boolFlag':![]},{'name':a94j(0x1a3),'boolFlag':!![]},{'name':a94j(0x1a9),'boolFlag':!![]},{'name':a94j(0x187),'boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a94j(0x19d),'boolFlag':!![]},{'name':a94j(0x186),'values':[a94j(0x1a8),a94j(0x1a1)]}],'shortDesc':a94j(0x1b2),'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\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','examples':[a94j(0x185),a94j(0x1b1),a94j(0x191)]},async function(a,b){const k=a94j;try{if(b[k(0x198)]){if(this[k(0x193)][k(0x1ab)](b['cacert']))await this[k(0x193)][k(0x1b0)]({'cert':b[k(0x198)]}),Log[k(0x18f)](k(0x1a4)+b[k(0x198)]);else{const c=typeof b[k(0x198)]===k(0x188)?k(0x196):k(0x189)+b['cacert'];throw Log['error'](c);}}if(b[k(0x187)]){const d=this['fsi'][k(0x1a6)](b[k(0x187)]);if(d)await this[k(0x193)]['setGlobalConfig']({'workspace':a94e[k(0x1ad)](b[k(0x187)])}),Log[k(0x18f)](k(0x194)+a94e[k(0x1ad)](b[k(0x187)]));else throw Log['error'](k(0x1ae));}b[k(0x1a0)]&&(await this['fsi'][k(0x1b0)]({'openai':b[k(0x1a0)]}),Log['success'](k(0x19e)+b['openai']));b[k(0x186)]&&(await this['fsi'][k(0x1b0)]({'pallet':b[k(0x186)]}),Log[k(0x18f)](k(0x1a2)+b['pallet']));if(b[k(0x1a3)]){if(b[k(0x1a3)]&&b[k(0x1a9)])throw Log[k(0x18d)](k(0x18e));let f=b[k(0x1a3)];b[k(0x1a9)]&&(f=![]),await this[k(0x193)][k(0x1b0)]({'allowInsecure':f}),Log[k(0x18f)](k(0x1a5)+f);}process[k(0x197)](0x0);}catch(g){console[k(0x18d)](g),process['exit'](0x0);}},a94f);function a94c(){const l=['Set\x20global\x20Maka-CLI\x20settings','maka\x20set:global-config\x20--cacert\x20<path>','pallet','workspace','boolean','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','9553914QecSeu','toString','56753WTZuYg','error','One\x20or\x20the\x20other\x20buddy','success','2193496YIOdCV','maka\x20set:gc\x20--workspace\x20<path>','4781454enQGRz','fsi','Set\x20workspace:\x20','create','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','exit','cacert','global-config','(((.+)+)+)+$','36650okczaf','2938840WhZcoT','help','Set\x20OpenAI\x20Key:\x20','3282540cOgFdh','openai','dark','Set\x20color\x20pallet\x20to:\x20','allowInsecure','Set\x20CA\x20Cert\x20Path:\x20','Set\x20allowInsecure:\x20','isDirectory','45mVyGvE','light','disallowInsecure','21Erfnlj','isFile','maka\x20set:global-config','resolve','Could\x20not\x20find\x20directory','search','setGlobalConfig','maka\x20set:gc\x20--insecure\x20<path>'];a94c=function(){return l;};return a94c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a95c(){var k=['30XMZnIo','6443688ynLQya','search','Sorry,\x20not\x20implemented\x20yet','Set\x20local\x20maka\x20app\x20settings','local-config','208jJOvsJ','create','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','612ZjTafI','constructor','11YhTJNl','maka\x20set:local-config','1135zfSjNF','1345820ryBgKj','794337hhqzBJ','26982Nrnwbp','424922zHROxz','toString','1jUiWnD','134554vurtzz','(((.+)+)+)+$','apply'];a95c=function(){return k;};return a95c();}var a95i=a95d;(function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0x208))/0x1*(-parseInt(f(0x206))/0x2)+-parseInt(f(0x204))/0x3+-parseInt(f(0x1fe))/0x4*(parseInt(f(0x202))/0x5)+-parseInt(f(0x1f5))/0x6*(parseInt(f(0x1f2))/0x7)+parseInt(f(0x1fb))/0x8*(parseInt(f(0x205))/0x9)+-parseInt(f(0x203))/0xa*(-parseInt(f(0x200))/0xb)+parseInt(f(0x1f6))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x2286f));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0x207)]()['search'](h(0x1f3))[h(0x207)]()[h(0x1ff)](a95a)[h(0x1f7)](h(0x1f3));});a95a();import a95e from'./set.command.js';import{Command}from'../../command.js';function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x1f2;var f=c[d];return f;},a95d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a95i(0x1fc)]({'name':a95i(0x1fa),'usage':a95i(0x201),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':a95i(0x1f9),'validOpts':[],'description':a95i(0x1fd)},async function(){var j=a95i;Log['notice'](j(0x1f8));},a95e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x186))/0x1*(-parseInt(f(0x191))/0x2)+parseInt(f(0x18d))/0x3*(parseInt(f(0x18f))/0x4)+parseInt(f(0x184))/0x5*(parseInt(f(0x188))/0x6)+-parseInt(f(0x194))/0x7*(parseInt(f(0x18a))/0x8)+-parseInt(f(0x196))/0x9+parseInt(f(0x183))/0xa*(parseInt(f(0x185))/0xb)+parseInt(f(0x192))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x44fef));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a['toString']()['search'](h(0x195))[h(0x189)]()[h(0x182)](a96a)['search']('(((.+)+)+)+$');});a96a();function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x181;let f=c[d];return f;},a96d(a,b);}import{Command}from'../../command.js';function a96c(){const k=['8gsxfHW','create','apply','1405410NSfOEg','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','4dLllYa','\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','123176ztXvqI','9877176BXbOmJ','runSubCommand','2000243ilZpMZ','(((.+)+)+)+$','2309481NYvARO','findSubCommand','constructor','287470oEBbbA','10rOGRXF','11aOTzfQ','9kKOWOw','set','176826rxARwA','toString'];a96c=function(){return k;};return a96c();}const SetCommand=Command[a96i(0x18b)]({'name':a96i(0x187),'usage':'maka\x20set:<sub-command>','shortDesc':a96i(0x18e),'description':a96i(0x190),'validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0x181)](c);d&&this[j(0x193)](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97l=a97d;(function(a,b){const j=a97d,c=a();while(!![]){try{const d=parseInt(j(0x14c))/0x1+-parseInt(j(0x151))/0x2+-parseInt(j(0x142))/0x3+-parseInt(j(0x14b))/0x4*(-parseInt(j(0x146))/0x5)+-parseInt(j(0x153))/0x6*(parseInt(j(0x157))/0x7)+-parseInt(j(0x147))/0x8+parseInt(j(0x15b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x92c27));function a97c(){const n=['(((.+)+)+)+$','7ZmxCIg','sshSync','verbose','readFileSync','8474418BPlXJX','1300137YzETvN','fsi','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod','6675OFeWjb','5828912KGVzCJ','maka\x20ssh\x20--env\x20dev','parse','constructor','2216PycNWc','252019ihxzQO','env','toString','getAppConfigPath','join','322636ehRxbc','ssh.json','52638noxlWJ','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','assign'];a97c=function(){return n;};return a97c();}const a97b=(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;};}()),a97a=a97b(this,function(){const k=a97d;return a97a[k(0x14e)]()['search'](k(0x156))[k(0x14e)]()[k(0x14a)](a97a)['search'](k(0x156));});a97a();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';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x142;let f=c[d];return f;},a97d(a,b);}Command['create']({'name':'ssh','usage':'maka\x20ssh\x20<command>','mustBeInMakaProject':!![],'requiredOpts':[a97l(0x14d)],'validOpts':[a97l(0x14d),'verbose'],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':[a97l(0x148),'maka\x20ssh\x20--env\x20staging',a97l(0x145),'maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22',a97l(0x144),a97l(0x154)]},async function(a,b){const m=a97l;try{const c=this[m(0x143)][m(0x14f)](b[m(0x14d)]);let d='';a['length']>0x0&&(d=a[0x0]);const f=a97f[m(0x150)](c,m(0x152)),g=a97e[m(0x15a)](f)[m(0x14e)](),h=JSON[m(0x149)](g);Object[m(0x155)](h,{'env':c}),SSH[m(0x158)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b[m(0x159)]});}catch(i){Log['error'](i),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a98c(){const A=['8Iavidj','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','27MjFxLH','5213197ENlFMX','readFileSync','6950844zDZuZg','ssh','env','apply','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','getMakaProjectConfig','Checking\x20remote\x20host\x20availability','ask','getAppConfigPath','1980984aJFGGz','Verifying\x20Letsencrypt\x20configuration','Remote\x20host\x20connection\x20successful','ping','join','letsencrypt.json','assign','Email\x20to\x20use\x20for\x20auto-updates:\x20','emailUpdate','withSpinner','constructor','start','error','5985936BeoFlp','5SOPoaz','3JzpKGO','2394084OcHCNv','ssl','existsSync','fsi','Using\x20saved\x20letsencrypt\x20config','genCSR','mkKeysDir','maka\x20ssl\x20--env\x20dev\x20generate-csr','appName','create','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','stringify','uname\x20-a','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','domainNames','10KJGccV','search','toString','generate-ssc','15166fvKgUH','notice','/ssh.json','[?]\x20Domains\x20to\x20register:\x20','Create\x20and\x20manage\x20your\x20SSL\x20operations.','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','.csr','sudo\x20snap\x20install\x20--classic\x20certbot','success','3306969KbkzOm','.key','\x20--email\x20','parse','Please\x20provide\x20a\x20command.','email','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','domains','(((.+)+)+)+$'];a98c=function(){return A;};return a98c();}const a98y=a98d;(function(a,b){const v=a98d,c=a();while(!![]){try{const d=parseInt(v(0x143))/0x1*(-parseInt(v(0x12f))/0x2)+-parseInt(v(0x15e))/0x3*(-parseInt(v(0x14f))/0x4)+-parseInt(v(0x15d))/0x5*(parseInt(v(0x146))/0x6)+-parseInt(v(0x15f))/0x7*(-parseInt(v(0x141))/0x8)+parseInt(v(0x138))/0x9*(parseInt(v(0x12b))/0xa)+parseInt(v(0x144))/0xb+parseInt(v(0x15c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xc6c9f));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a98d;if(c){const e=c[w(0x149)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const x=a98d;return a98a[x(0x12d)]()[x(0x12c)](x(0x140))[x(0x12d)]()[x(0x159)](a98a)['search'](x(0x140));});a98a();import a98e from'fs';import a98f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x120;let f=c[d];return f;},a98d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a98y(0x125)]({'name':a98y(0x160),'usage':'maka\x20ssl\x20[command]','validOpts':[a98y(0x13f),a98y(0x13d)],'requiredOpts':['env'],'shortDesc':a98y(0x133),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a98y(0x123),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a98y(0x142)]},async function(a,b){const z=a98y,c=this[z(0x162)][z(0x14b)](),d=this[z(0x162)][z(0x14e)](b[z(0x148)]),f=this[z(0x162)][z(0x122)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[z(0x121)]({'keyName':c['appName']+z(0x139),'csrName':c['appName']+z(0x135),'cwd':f});else{if(g===z(0x12e)){if(!a98e[z(0x161)](a98f[z(0x153)](f,c[z(0x124)]+z(0x139))))throw'The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'+a98f[z(0x153)](f,c[z(0x124)]+z(0x139));if(!a98e[z(0x161)](a98f[z(0x153)](f,c[z(0x124)]+z(0x135))))throw z(0x129)+a98f[z(0x153)](f,c[z(0x124)]+z(0x135));SSL['genSSC']({'keyName':c[z(0x124)]+'.key','crtName':c[z(0x124)]+'.crt','cwd':f}),Log[z(0x130)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g==='letsencrypt'){let h=b['domains'],i=b['email'];try{const p=a98e[z(0x145)](a98f['join'](d,z(0x154)))[z(0x12d)](),q=JSON[z(0x13b)](p);h=b[z(0x13f)]?b['domains']:q[z(0x12a)],i=b[z(0x13d)]?b[z(0x13d)]:q[z(0x157)],(!b[z(0x13d)]||!b[z(0x13f)])&&Log['notice'](z(0x120));}catch(r){}const j=JSON[z(0x13b)](a98e['readFileSync'](d+z(0x131))['toString']());Object[z(0x155)](j,{'env':d}),Log[z(0x130)](z(0x14c));try{const s=SSH[z(0x152)](z(0x128),j);if(!s)throw z(0x134);if(s)Log[z(0x137)](z(0x151));}catch(t){Log[z(0x15b)](t);return;}const k=Log[z(0x158)]();k[z(0x15a)](z(0x150)),SSH['ssh'](z(0x13e),{...j}),SSH[z(0x147)](z(0x136),{...j}),SSH[z(0x147)](z(0x126),{...j}),k[z(0x137)]();const l=h?h:await Actions[z(0x14d)](z(0x132)),m=i?i:await Actions[z(0x14d)](z(0x156));SSH['ssh'](z(0x14a)+l+z(0x13a)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[z(0x127)](n,null,0x2);a98e['writeFileSync'](a98f[z(0x153)](d,z(0x154)),o);}else throw z(0x13c);}}}catch(u){console['error'](u),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99q=a99d;(function(a,b){const m=a99d,c=a();while(!![]){try{const d=-parseInt(m(0x106))/0x1+-parseInt(m(0x10f))/0x2*(-parseInt(m(0x109))/0x3)+parseInt(m(0x101))/0x4*(-parseInt(m(0x103))/0x5)+-parseInt(m(0x11a))/0x6+-parseInt(m(0x110))/0x7+parseInt(m(0x12e))/0x8+parseInt(m(0x12b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x95735));function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xf6;let f=c[d];return f;},a99d(a,b);}const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a99d;if(c){const e=c[n(0x11c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const o=a99d;return a99a[o(0x113)]()[o(0x119)]('(((.+)+)+)+$')[o(0x113)]()['constructor'](a99a)[o(0x119)](o(0x12c));});function a99c(){const t=['engines','--packages','invokeMeteorCommand','packages','tests','18777915jsmvPY','(((.+)+)+)+$','exit','3999568yahqeK','meteortesting:mocha','warn','utf8','unit','isFile','--env','concat','filter','argv','--driver','driver-package','764bPQZQm','testAppPath','21305aOPfAz','slice','Node\x20Env\x20Config:\x20','580090LoCjko','jasmine','env','33MInzDt','--full-app','none','openSync','error','maka\x20test','120338YKidLI','4418743kTtOJA','fsi','inspect','toString','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','settings.json','--driver-package','development','test','search','3665406fXwfGg','port','apply','driver','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','config.json','process.env','test-packages','getAppConfigPath','notice','once','join'];a99c=function(){return t;};return a99c();}a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a99d;a99e[p(0x10c)](a,'r'),a99g['config']({'path':a});};Command['create']({'name':'test','mustBeInMakaProject':!![],'validOpts':[a99q(0x124),a99q(0x129),a99q(0x11d),'driverPackage','unit',a99q(0x108),'rawLogs',a99q(0x11b),a99q(0x112),a99q(0x102)],'usage':a99q(0x10e),'aliases':['t',a99q(0x12a)],'shortDesc':a99q(0x11e),'examples':[]},function(a,b){const r=a99q;try{let c=this[r(0x111)][r(0x122)](r(0x117));b[r(0x108)]&&(c=this[r(0x111)][r(0x122)](b['env']));(!b[r(0xf9)]||!!b['once'])&&(a=a[r(0xfc)]([r(0x10a)]));b['unit']&&delete b[r(0xf9)];let d=b[r(0x100)]||b[r(0x11d)]||'none';if(d===r(0x10b)){const j=JSON['parse'](a99e['readFileSync'](a99f['join'](this[r(0x111)]['findProjectDirectory'](),'.maka',r(0x11f)),r(0xf8)));if(j[r(0x126)][r(0x118)]===r(0x107))d='sanjo:jasmine';else j['engines']['test']==='mocha'&&(d=r(0xf6));}if(d===r(0x10b))throw r(0x114);(!b[r(0x100)]||!b[r(0x11d)])&&(a=a[r(0xfc)]([r(0x116),d]));const f=a99f[r(0x125)](c,r(0x115));this[r(0x111)][r(0xfa)](f)?(Log[r(0x123)]('Meteor\x20Settings:\x20'+f),a=a['concat'](['--settings',f])):Log[r(0xf7)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);const g=a99f['join'](c,r(0x120));this[r(0x111)][r(0xfa)](g)?(Log[r(0x123)](r(0x105)+g),syncSource(g)):Log[r(0xf7)]('Cannot\x20find\x20Node\x20Environment\x20File:\x20'+g);const h=process[r(0xfe)][r(0x104)](0x2)[r(0xfd)](k=>k!==r(0xfb))['filter'](k=>k!==r(0x118))[r(0xfd)](k=>k!==a[0x0]);h['forEach']((k,l)=>{const s=r;(k===s(0xfb)||k===s(0xff))&&h['splice'](l,0x2),k===s(0x127)&&h['splice'](l,0x1);});const i=b[r(0x129)]?r(0x121):r(0x118);this[r(0x111)][r(0x128)](i,a['concat'](h));}catch(k){console[r(0x10d)](k),process[r(0x12d)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a100h=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=parseInt(f(0x193))/0x1+-parseInt(f(0x192))/0x2+parseInt(f(0x18e))/0x3+-parseInt(f(0x199))/0x4*(parseInt(f(0x196))/0x5)+parseInt(f(0x191))/0x6+parseInt(f(0x197))/0x7+-parseInt(f(0x19a))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x33dcc));var a100b=(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;};}()),a100a=a100b(this,function(){var g=a100d;return a100a['toString']()[g(0x18f)]('(((.+)+)+)+$')[g(0x19b)]()[g(0x190)](a100a)[g(0x18f)](g(0x195));});function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0x18e;var f=c[d];return f;},a100d(a,b);}a100a();import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';function a100c(){var j=['479754HCBqgP','256083YrWlmw','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20under\x20the\x20last\x20action','(((.+)+)+)+$','948805tiGnLL','1362249tndiXf','undo','4oHydww','2710832HQxJky','toString','1192983stEcoM','search','constructor','795414Grskbz'];a100c=function(){return j;};return a100c();}Command['create']({'name':a100h(0x198),'aliases':['u'],'validOpts':[],'shortDesc':a100h(0x194)},async function(){var i=a100h;a100e[i(0x198)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=parseInt(k(0x137))/0x1+parseInt(k(0x153))/0x2+-parseInt(k(0x140))/0x3+-parseInt(k(0x134))/0x4*(-parseInt(k(0x14f))/0x5)+parseInt(k(0x152))/0x6+parseInt(k(0x136))/0x7*(parseInt(k(0x15a))/0x8)+parseInt(k(0x14e))/0x9*(-parseInt(k(0x146))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x4dcbb));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0x158)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a[m(0x154)]()[m(0x14c)](m(0x15c))[m(0x154)]()[m(0x141)](a101a)[m(0x14c)](m(0x15c));});function a101c(){const p=['verbose','bright','win32','10vbJpaH','Maka\x20','System\x27s\x20Node\x20Version\x20','Project\x27s\x20Meteor\x20Node\x20Version\x20','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','search','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','8066943NXVhdV','20ZOtKgZ','create','error','2187930wEZTwT','713696ozbEjF','toString','4.12.4','getProjectMeteorVersion','majestic','apply','replace','3544ZWWkRW','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','(((.+)+)+)+$','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','Project\x27s\x20Meteor\x20Version\x20','\x20node\x20-v','N/A','getGlobalMeteorVersion','compareMakaToLatest','----------------------System----------------------------','170164MHPRFF','version','1897AiZGUh','316642AYiJrb','valid','notice','fsi','platform','maka\x20version\x20--verbose','warn','maka\x20v','----------------------Project----------------------------','340152GrJozY','constructor','maka\x20version'];a101c=function(){return p;};return a101c();}a101a();import{execSync}from'child_process';function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x134;let f=c[d];return f;},a101d(a,b);}import a101e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a101n(0x155)};Command[a101n(0x150)]({'name':a101n(0x135),'aliases':['v'],'usage':a101n(0x142),'maxArgLength':0x1,'validOpts':[a101n(0x143)],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a101n(0x13e),a101n(0x142),a101n(0x13c)],'description':'\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'},async function(a,b){const o=a101n;try{const c=process[o(0x13b)]===o(0x145)?'meteor.bat':'meteor';Log[o(0x157)](o(0x147)+pjson[o(0x135)]),await this['fsi'][o(0x162)]();if(b[o(0x143)]){await this[o(0x13a)][o(0x162)](),Log[o(0x144)](o(0x163));const d=this[o(0x13a)][o(0x161)]();Log[o(0x144)](('System\x27s\x20Meteor\x20Version\x20'+d)[o(0x159)]('\x0a',''));const f=execSync(c+o(0x15f))[o(0x154)]()[o(0x159)](/\r?\n|\r/,'')[o(0x159)]('v','');Log['bright'](o(0x14d)+f);const g=execSync('node\x20-v')['toString']()['replace'](/\r?\n|\r/,'')['replace']('v','');a101e['gt'](f,g)?(Log[o(0x13d)](o(0x148)+g),Log[o(0x13d)](o(0x14b)+g+')\x20to\x20at\x20least\x20meteor\x27s\x20('+f+')')):Log[o(0x144)](o(0x148)+g);if(this['fsi']['isMakaProject']()){Log[o(0x144)](o(0x13f));const h=this[o(0x13a)][o(0x156)]();if(!a101e[o(0x138)](h))Log[o(0x13d)](o(0x15e)+h['replace']('\x0a',''));else a101e['gt'](d,h)?(Log[o(0x13d)](o(0x15e)+h[o(0x159)]('\x0a','')),Log['warn'](o(0x15d)+d+'\x22')):Log[o(0x139)]((o(0x15e)+h)['replace']('\x0a',''));const i=await this[o(0x13a)]['getProjectsMeteorNodeVersion']();i===o(0x160)?(Log[o(0x13d)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[o(0x13d)](o(0x15b))):Log[o(0x144)](o(0x149)+i),Log[o(0x144)](o(0x14a));}}}catch(j){console[o(0x151)](j),process['exit'](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0x183))/0x1+-parseInt(f(0x186))/0x2*(-parseInt(f(0x184))/0x3)+-parseInt(f(0x17e))/0x4*(parseInt(f(0x18a))/0x5)+parseInt(f(0x17f))/0x6+-parseInt(f(0x185))/0x7*(parseInt(f(0x181))/0x8)+-parseInt(f(0x182))/0x9*(-parseInt(f(0x17c))/0xa)+parseInt(f(0x17d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x843e0));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x180)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0x189)]()[h(0x18b)]('(((.+)+)+)+$')['toString']()[h(0x187)](a102a)[h(0x18b)](h(0x188));});function a102c(){var i=['675469nZtozu','199158MCsPcG','300167rMCsIp','12iKZWBR','constructor','(((.+)+)+)+$','toString','85hKuneB','search','6259510wnJaUO','8841668CmZmfK','184200BQhyyZ','2060712hgtmSu','apply','32kcrHOt','9AyUJli'];a102c=function(){return i;};return a102c();}a102a();function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x17c;var f=c[d];return f;},a102d(a,b);}export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
var
|
|
2
|
+
var a103h=a103d;function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0xe6;var f=c[d];return f;},a103d(a,b);}(function(a,b){var f=a103d,c=a();while(!![]){try{var d=-parseInt(f(0xf4))/0x1*(parseInt(f(0xed))/0x2)+-parseInt(f(0xf0))/0x3*(parseInt(f(0xf3))/0x4)+-parseInt(f(0xeb))/0x5*(parseInt(f(0xee))/0x6)+parseInt(f(0xec))/0x7+parseInt(f(0xe7))/0x8+-parseInt(f(0xe6))/0x9*(-parseInt(f(0xe8))/0xa)+parseInt(f(0xef))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xdc6b1));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(0xf5)]()[g(0xf1)](g(0xf2))['toString']()[g(0xf6)](a103a)[g(0xf1)](g(0xf2));});a103a(),process[a103h(0xea)][a103h(0xe9)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';function a103c(){var i=['search','(((.+)+)+)+$','3100dhMOdZ','534337iRxNHU','toString','constructor','7243524uQjvFU','713744PopjFQ','10loqXYw','NODE_OPTIONS','env','444585nBzFYc','9806825dGEqfN','2dToXNX','114wyDpUr','25012229zJwiGh','5583gaOyiK'];a103c=function(){return i;};return a103c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a101v=a101d;(function(a,b){const r=a101d,c=a();while(!![]){try{const d=-parseInt(r(0x247))/0x1+-parseInt(r(0x223))/0x2*(-parseInt(r(0x222))/0x3)+-parseInt(r(0x1ec))/0x4*(-parseInt(r(0x1d8))/0x5)+-parseInt(r(0x20f))/0x6+parseInt(r(0x243))/0x7*(parseInt(r(0x22f))/0x8)+-parseInt(r(0x22a))/0x9*(-parseInt(r(0x1db))/0xa)+-parseInt(r(0x22e))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x449e5));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a101d;if(c){const e=c[s(0x21e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const t=a101d;return a101a[t(0x22b)]()[t(0x210)](t(0x1de))[t(0x22b)]()[t(0x1df)](a101a)[t(0x210)]('(((.+)+)+)+$');});a101a();import a101e from'path';import a101f from'fs';import a101g from'cli-table';import{v4 as a101h}from'uuid';function a101c(){const N=['fsi','_genTransactionId','14ENoJzn','success','Please\x20run\x20\x22maka\x20install\x20meteor\x22','shortDesc','899sTXlyG','replace','validateParams','processAndRunGenerator','checkWhere','Generator\x20requires\x20a\x20handler\x20function','Description','\x20not\x20found.\x20Cannot\x20undo.','chdir','filter','existsSync','number','assign','mustHaveMeteorInstalled','client','getGlobalConfig','options','transactionId','.maka','pallet','LIGHT','dir','details','Too\x20few\x20arguments','stringify','name','handleGenerateError','650dyizEW','exit','tableList','6890cSJbVy','join','maxOptsLength','(((.+)+)+)+$','constructor','deepen','size','Generator\x20format\x20is\x20incorrect','find','There\x20is\x20no\x20Meteor\x20application\x20here','split','validateEngines','sep','writeHistory','minArgLength','warn','map','12172KteXMH','_undoHandler','_historyFilePath','validateMakaProject','bind','findProjectDirectory','_generators','includes','function','writeFileSync','Generator.create\x20requires\x20some\x20options!','params','DARK','Generator.create\x20requires\x20a\x20handler\x20function!','call','config','resourceName','findGeneratorByName','aliases','help','getHistoryFileSize','validateMakaSubscription','appPathPrefix','colLocAnswer','server','Too\x20many\x20arguments','lib','Generator\x20','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','pop','addGenerator','cwd','Too\x20few\x20options','parse','message','553854etWWBP','search','notice','match','history.json','Generators:','_handler','Both','forEach','\x20generator.\x20Skipping\x20undo.','invoke','slice','fullNameChain','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','readFileSync','apply','Client','requiredEngines','push','23178fXGMdi','112gmuUWt','minOptsLength','Nothing\x20to\x20undo.','validateMeteorInstall','bright','both','sort','117bNzenW','toString','maxArgLength','create','6100930dmnjNv','366784FyoNpT','pathFromProject','length','where','shift','No\x20undo\x20handler\x20defined\x20for\x20','generatorName','undo','opts','addToHistory','root','readHistory','addGenerator\x20requires\x20a\x20Generator\x20instance','Generator\x20requires\x20a\x20name','Name','error','keys','\x20not\x20found'];a101c=function(){return N;};return a101c();}import{paramCase}from'change-case';import a101i 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=a101h();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a101d(a,b);}async function inside(a='.',b){const u=a101d,c=process[u(0x20b)]();let d=null;try{process['chdir'](a),d=await b();}finally{process[u(0x24f)](c);}return d;}export class Generator extends Tool{[a101v(0x1cd)];[a101v(0x21b)];[a101v(0x1f2)];[a101v(0x1ee)];[a101v(0x1ed)];[a101v(0x242)];constructor(a,b,c){const w=a101v;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(w(0x23c));if(typeof b!=='function')throw new Error(w(0x24c));this['_generators']=[],this[w(0x1cd)]=Object[w(0x253)]({},a),this[w(0x1d6)]=this[w(0x1cd)][w(0x1d6)],this[w(0x215)]=b[w(0x1f0)](this);try{this[w(0x1ee)]=this[w(0x241)][w(0x230)]({'pathParts':[w(0x1cf),w(0x213)]})||a101e[w(0x1dc)]('.',w(0x1cf),w(0x213));}catch(d){Log[w(0x23e)](d);}c&&(this[w(0x1ed)]=c[w(0x1f0)](this));}[a101v(0x200)](){const x=a101v;if(a101f['existsSync'](this[x(0x1ee)])){const a=a101f['statSync'](this[x(0x1ee)]);return a[x(0x1e1)];}return 0x0;}['readHistory'](){const y=a101v;if(!a101f[y(0x251)](this[y(0x1ee)]))return[];return JSON[y(0x20d)](a101f[y(0x21d)](this['_historyFilePath'],'utf-8'));}[a101v(0x1e8)](a){const z=a101v;this['_historyFilePath']&&!a101f[z(0x251)](this[z(0x1ee)])&&a101f[z(0x1f5)](this[z(0x1ee)],JSON[z(0x1d5)]([])),a101f[z(0x1f5)](this[z(0x1ee)],JSON[z(0x1d5)](a,null,0x2));}[a101v(0x238)](a){const A=a101v;try{a?.[A(0x1f7)]?.[A(0x237)][A(0x1fb)]&&delete a['params'][A(0x237)]['config'];const b=this[A(0x23a)](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b[A(0x221)](c);const d=Buffer['from'](JSON[A(0x1d5)](b))[A(0x231)];while(d>MAX_HISTORY_SIZE&&b[A(0x231)]>0x0){b[A(0x233)]();}this[A(0x1e8)](b);}catch(f){Log[A(0x23e)](f);}}async[a101v(0x236)](){const B=a101v,a=this[B(0x23a)]();if(a[B(0x231)]===0x0){Log[B(0x1ea)](B(0x225));return;}const b=a[B(0x209)](),c=b[B(0x1ce)],d=a[B(0x250)](e=>e[B(0x1ce)]===c);d[B(0x221)](b),d['reverse']();for(const e of d){const f=this[B(0x1fd)](e[B(0x235)]);if(!f){Log['error'](B(0x207)+e[B(0x235)]+B(0x24e));continue;}f[B(0x1ed)]?await f[B(0x1ed)](e['details']):Log['warn'](B(0x234)+e[B(0x235)]+B(0x218));}this['writeHistory'](a['filter'](g=>g[B(0x1ce)]!==c));}static[a101v(0x22d)](a,b,c,d){const C=a101v;if(!a)throw new Error(C(0x1f6));if(typeof b!==C(0x1f4))throw new Error(C(0x1f9));const e=new Generator(a,b);c&&(e['_undoHandler']=c[C(0x1f0)](e));d=d||a101i;const f=d?d[C(0x21b)]:'';return e[C(0x21b)]=f?f+':'+a[C(0x1d6)]:a[C(0x1d6)],Object['assign'](e,{'parent':d?.['options']?.[C(0x1d6)]}),d['addGenerator'](e),e;}[a101v(0x20a)](a){const D=a101v;if(!(a instanceof Generator))throw new Error(D(0x23b));this[D(0x1f2)][D(0x221)](a);}async[a101v(0x24a)](a,b=[],c={}){const E=a101v;let d;try{const f=a?.[E(0x1e5)](':');if(!f||f['length']===0x0)throw E(0x1e2);let g=this[E(0x1f2)],h;for(const i of f){h=g[E(0x1e3)](j=>j['match'](i));if(!h)throw E(0x207)+i+'\x20not\x20found';await this[E(0x201)](h),g=h[E(0x1f2)];}if(h)d=await h[E(0x219)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x23e)](j);}return d;}[a101v(0x1fd)](a){const F=a101v,b=a?.[F(0x1e5)](':');if(!b||b['length']===0x0)return Log[F(0x23e)](F(0x1e2)),null;let c=this['_generators'],d;for(const e of b){d=c[F(0x1e3)](f=>f[F(0x212)](e));if(!d)return Log['error']('Generator\x20'+e+F(0x240)),null;c=d[F(0x1f2)];}return d||null;}async[a101v(0x219)](a,b){const G=a101v,c=a[G(0x21a)]();b[G(0x1fc)]=c[0x0];try{const d=await this[G(0x241)][G(0x1cc)](),f=d[G(0x1d0)]==='light'?ColorMode[G(0x1d1)]:ColorMode[G(0x1f8)];Log['setColorMode'](f),await this[G(0x201)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[G(0x1f2)][G(0x231)]>=0x0,h=b[G(0x1ff)]||b['h'];if(g&&h){if(this['_generators']['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x1cd)]['mustBeInMakaProject']){const i=this[G(0x1ef)]();if(!i)throw new MustBeInProjectError();}if(this['options'][G(0x1ca)]){const j=this[G(0x226)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x1cd)][G(0x1e9)]===G(0x252)){if(a[G(0x231)]<this[G(0x1cd)]['minArgLength']){Log[G(0x23e)](G(0x1d4));throw new UsageError();}}if(typeof this[G(0x1cd)][G(0x22c)]===G(0x252)){if(a[G(0x231)]>this[G(0x1cd)][G(0x22c)]){Log[G(0x23e)](G(0x205));throw new UsageError();}}if(typeof this[G(0x1cd)][G(0x224)]==='number'){if(Object[G(0x23f)](b)['length']<this['options'][G(0x224)]){Log[G(0x23e)](G(0x20c));throw new UsageError();}}if(typeof this[G(0x1cd)]['maxOptsLength']==='number'){if(Object[G(0x23f)](b)[G(0x231)]>=this[G(0x1cd)][G(0x1dd)]){Log[G(0x23e)]('Too\x20many\x20options');throw new UsageError();}}}this[G(0x1cd)][G(0x220)]&&this[G(0x1e6)](this['options'][G(0x220)]);await this[G(0x249)](a,b,this[G(0x1cd)]);if(!b[G(0x1fc)]&&!this[G(0x1cd)]['noNeedResource']){Log[G(0x23e)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process[G(0x1d9)](0x1);}return await inside(b[G(0x20b)],async()=>{const H=G;try{if(!b[H(0x239)]&&!this[H(0x241)][H(0x1f1)]())throw new MustBeInProjectError();const l=b[H(0x1fc)]?.[H(0x248)](/\\/g,'/')[H(0x1e5)]('/');!b[H(0x1d2)]&&(l?.['length']>0x1?(b['resourceName']=l[H(0x209)](),c[0x0]=b['resourceName'],b['dir']=l[H(0x1eb)](n=>{return paramCase(n);})[H(0x1dc)](a101e[H(0x1e7)])):b['dir']='');if(this[H(0x1cd)][H(0x24b)]){if(!b[H(0x232)]){const o={'type':'list','name':H(0x203),'message':'Location','choices':[{'name':H(0x21f),'value':'client'},{'name':'Server','value':'server'},{'name':H(0x216),'value':H(0x228)}]},{colLocAnswer:p}=await Actions[H(0x1cd)](o);p?b[H(0x232)]=p:b[H(0x232)]=H(0x228);}const n=[H(0x228),H(0x1cb),'server'];if(!n[H(0x1f3)](b['where'])){Log[H(0x23e)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[H(0x232)]){case H(0x228):b['appPathPrefix']=H(0x206);break;case H(0x204):b['appPathPrefix']='server';break;case H(0x1cb):b[H(0x202)]=H(0x1cb);break;default:b[H(0x202)]='';}}const m=await this[H(0x215)][H(0x1fa)](this,c,b);return m&&this[H(0x238)]({'params':{'args':c,'opts':this[H(0x241)][H(0x1e0)](b)},'success':m?.[H(0x244)],'message':m?.[H(0x20e)],'details':m?.[H(0x1d3)]}),m;}catch(q){this[H(0x1d7)](q);}});}['listGenerators'](){const I=a101v;this[I(0x1da)](this[I(0x1f2)]);}[a101v(0x1d7)](a){const J=a101v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this['options'];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x211)](J(0x214)),this[J(0x1da)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[J(0x23e)](J(0x21c));else{if(a instanceof NoMeteorFoundError)Log[J(0x23e)](J(0x208)),Log[J(0x211)](J(0x245));else a instanceof NoMeteorAppFoundError&&Log['error'](J(0x1e4));}}}['tableList'](a){const K=a101v,b=new a101g({});b[K(0x221)]([K(0x23d),'Alias',K(0x24d)]),a[K(0x229)]((c,d)=>{const L=K;return c['name']['localeCompare'](d[L(0x1d6)]);})[K(0x217)](c=>{const M=K;b[M(0x221)]([c['name'],c[M(0x1fe)](),c[M(0x246)]()]);}),Log[K(0x227)](b[K(0x22b)]());}}
|
|
1
|
+
const a104u=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0xfd))/0x1*(-parseInt(r(0xe2))/0x2)+-parseInt(r(0x10f))/0x3+parseInt(r(0x123))/0x4*(parseInt(r(0xc3))/0x5)+-parseInt(r(0xf8))/0x6*(-parseInt(r(0xfb))/0x7)+-parseInt(r(0xf4))/0x8+parseInt(r(0xca))/0x9+-parseInt(r(0xd7))/0xa*(parseInt(r(0xcc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x23b50));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(0xe0)]()['search'](s(0x117))[s(0xe0)]()[s(0xfc)](a104a)[s(0xac)]('(((.+)+)+)+$');});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';function a104c(){const M=['opts','Please\x20run\x20\x22maka\x20install\x20meteor\x22','validateMakaSubscription','number','requiredEngines','(((.+)+)+)+$','fullNameChain','history.json','mustBeInMakaProject','find','reverse','addToHistory','Generator\x20not\x20found','resourceName','where','_historyFilePath','getGlobalConfig','350180JMDGUq','utf-8','DARK','Generator.create\x20requires\x20some\x20options!','writeFileSync','length','Location','client','params','pallet','Name','fsi','No\x20undo\x20handler\x20defined\x20for\x20','slice','includes','bright','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateMakaProject','Generator\x20','search','readFileSync','forEach','error','pathFromProject','stringify','LIGHT','_generators','maxOptsLength','transactionId','Description','pop','Too\x20few\x20arguments','Generator\x20format\x20is\x20incorrect','validateEngines','assign','Generator\x20requires\x20a\x20handler\x20function','chdir','listGenerators','split','help','tableList','notice','15bxFCGB','call','Server','.maka','cwd','from','options','2607399sdQxKa','config','44ZyppiU','generatorName','aliases','minOptsLength','deepen','writeHistory','noNeedResource','dir','match','\x20generator.\x20Skipping\x20undo.','details','1489740JyYtNo','No\x20resource\x20name\x20specified','\x20not\x20found.\x20Cannot\x20undo.','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','both','existsSync','Alias','maxArgLength','Generator\x20requires\x20a\x20name','toString','minArgLength','2rldeiN','sep','validateParams','processAndRunGenerator','undo','name','exit','bind','join','Generators:','function','\x20not\x20found','root','filter','getHistoryFileSize','shortDesc','Client','shift','730504hyFqiw','server','mustHaveMeteorInstalled','Too\x20few\x20options','12iyQPim','appPathPrefix','readHistory','237370kFfmHf','constructor','287058WHrDvU','_genTransactionId','findGeneratorByName','usage','push','keys','findProjectDirectory','handleGenerateError','create','addGenerator','invoke','checkWhere','message','size','map','success','statSync','_handler','221277RgTaBY','addGenerator\x20requires\x20a\x20Generator\x20instance','_undoHandler'];a104c=function(){return M;};return a104c();}import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x9a;let f=c[d];return f;},a104d(a,b);}const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const t=a104d,c=process[t(0xc7)]();let d=null;try{process[t(0xbd)](a),d=await b();}finally{process[t(0xbd)](c);}return d;}export class Generator extends Tool{[a104u(0xc9)];['fullNameChain'];[a104u(0xb3)];['_historyFilePath'];[a104u(0x111)];[a104u(0xfe)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[v(0xe7)])throw new Error(v(0xdf));if(typeof b!==v(0xec))throw new Error(v(0xbc));this[v(0xb3)]=[],this[v(0xc9)]=Object[v(0xbb)]({},a),this[v(0xe7)]=this[v(0xc9)][v(0xe7)],this[v(0x10e)]=b[v(0xe9)](this);try{this[v(0x121)]=this['fsi'][v(0xb0)]({'pathParts':[v(0xc6),'history.json']})||a104e['join']('.','.maka',v(0x119));}catch(d){Log[v(0xaf)](d);}c&&(this[v(0x111)]=c[v(0xe9)](this));}[a104u(0xf0)](){const w=a104u;if(a104f[w(0xdc)](this[w(0x121)])){const a=a104f[w(0x10d)](this[w(0x121)]);return a[w(0x10a)];}return 0x0;}[a104u(0xfa)](){const x=a104u;if(!a104f[x(0xdc)](this[x(0x121)]))return[];return JSON['parse'](a104f[x(0xad)](this[x(0x121)],x(0x9a)));}[a104u(0xd1)](a){const y=a104u;this[y(0x121)]&&!a104f[y(0xdc)](this[y(0x121)])&&a104f['writeFileSync'](this[y(0x121)],JSON['stringify']([])),a104f[y(0x9d)](this[y(0x121)],JSON[y(0xb1)](a,null,0x2));}['addToHistory'](a){const z=a104u;try{a?.[z(0xa1)]?.['opts'][z(0xcb)]&&delete a[z(0xa1)][z(0x112)]['config'];const b=this[z(0xfa)](),c={'generatorName':this[z(0x118)],'transactionId':TRANSACTION_ID,'details':a};b[z(0x101)](c);const d=Buffer[z(0xc8)](JSON[z(0xb1)](b))[z(0x9e)];while(d>MAX_HISTORY_SIZE&&b[z(0x9e)]>0x0){b[z(0xf3)]();}this[z(0xd1)](b);}catch(f){Log[z(0xaf)](f);}}async[a104u(0xe6)](){const A=a104u,a=this['readHistory']();if(a[A(0x9e)]===0x0){Log['warn']('Nothing\x20to\x20undo.');return;}const b=a[A(0xb7)](),c=b[A(0xb5)],d=a[A(0xef)](e=>e[A(0xb5)]===c);d['push'](b),d[A(0x11c)]();for(const e of d){const f=this['findGeneratorByName'](e[A(0xcd)]);if(!f){Log[A(0xaf)](A(0xab)+e[A(0xcd)]+A(0xd9));continue;}f['_undoHandler']?await f[A(0x111)](e[A(0xd6)]):Log['warn'](A(0xa5)+e[A(0xcd)]+A(0xd5));}this[A(0xd1)](a[A(0xef)](g=>g[A(0xb5)]!==c));}static[a104u(0x105)](a,b,c,d){const B=a104u;if(!a)throw new Error(B(0x9c));if(typeof b!==B(0xec))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b);c&&(e[B(0x111)]=c[B(0xe9)](e));d=d||a104i;const f=d?d['fullNameChain']:'';return e['fullNameChain']=f?f+':'+a[B(0xe7)]:a[B(0xe7)],Object[B(0xbb)](e,{'parent':d?.['options']?.[B(0xe7)]}),d['addGenerator'](e),e;}[a104u(0x106)](a){const C=a104u;if(!(a instanceof Generator))throw new Error(C(0x110));this[C(0xb3)][C(0x101)](a);}async[a104u(0xe5)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.['split'](':');if(!f||f['length']===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[D(0xb3)],h;for(const i of f){h=g[D(0x11b)](j=>j[D(0xd4)](i));if(!h)throw'Generator\x20'+i+'\x20not\x20found';await this[D(0x114)](h),g=h['_generators'];}if(h)d=await h[D(0x107)](b,c);else throw D(0x11e);}catch(j){Log['error'](j);}return d;}[a104u(0xff)](a){const E=a104u,b=a?.[E(0xbf)](':');if(!b||b[E(0x9e)]===0x0)return Log[E(0xaf)](E(0xb9)),null;let c=this[E(0xb3)],d;for(const e of b){d=c[E(0x11b)](f=>f[E(0xd4)](e));if(!d)return Log['error'](E(0xab)+e+E(0xed)),null;c=d[E(0xb3)];}return d||null;}async[a104u(0x107)](a,b){const F=a104u,c=a[F(0xa6)]();b['resourceName']=c[0x0];try{const d=await this[F(0xa4)][F(0x122)](),f=d[F(0xa2)]==='light'?ColorMode[F(0xb2)]:ColorMode[F(0x9b)];Log['setColorMode'](f),await this[F(0x114)](this);const g=a[0x0]===_prevGen||a['length']===0x0&&this[F(0xb3)]['length']>=0x0,h=b[F(0xc0)]||b['h'];if(g&&h){if(this[F(0xb3)][F(0x9e)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0xc9)][F(0x11a)]){const i=this[F(0xaa)]();if(!i)throw new MustBeInProjectError();}if(this[F(0xc9)][F(0xf6)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0xc9)][F(0xe1)]===F(0x115)){if(a[F(0x9e)]<this[F(0xc9)]['minArgLength']){Log[F(0xaf)](F(0xb8));throw new UsageError();}}if(typeof this[F(0xc9)]['maxArgLength']===F(0x115)){if(a[F(0x9e)]>this[F(0xc9)][F(0xde)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[F(0xc9)]['minOptsLength']===F(0x115)){if(Object['keys'](b)['length']<this[F(0xc9)][F(0xcf)]){Log[F(0xaf)](F(0xf7));throw new UsageError();}}if(typeof this[F(0xc9)][F(0xb4)]===F(0x115)){if(Object[F(0x102)](b)['length']>=this[F(0xc9)]['maxOptsLength']){Log[F(0xaf)]('Too\x20many\x20options');throw new UsageError();}}}this[F(0xc9)]['requiredEngines']&&this[F(0xba)](this['options'][F(0x116)]);await this[F(0xe4)](a,b,this[F(0xc9)]);if(!b['resourceName']&&!this[F(0xc9)][F(0xd2)]){Log['error'](F(0xd8));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[F(0x104)](k),process[F(0xe8)](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0xee)]&&!this['fsi'][G(0x103)]())throw new MustBeInProjectError();const l=b[G(0x11f)]?.['replace'](/\\/g,'/')[G(0xbf)]('/');!b[G(0xd3)]&&(l?.[G(0x9e)]>0x1?(b[G(0x11f)]=l[G(0xb7)](),c[0x0]=b[G(0x11f)],b['dir']=l[G(0x10b)](n=>{return paramCase(n);})[G(0xea)](a104e[G(0xe3)])):b['dir']='');if(this[G(0xc9)][G(0x108)]){if(!b[G(0x120)]){const o={'type':'list','name':'colLocAnswer','message':G(0x9f),'choices':[{'name':G(0xf2),'value':'client'},{'name':G(0xc5),'value':'server'},{'name':'Both','value':G(0xdb)}]},{colLocAnswer:p}=await Actions[G(0xc9)](o);p?b['where']=p:b[G(0x120)]=G(0xdb);}const n=['both',G(0xa0),G(0xf5)];if(!n[G(0xa7)](b['where'])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x120)]){case G(0xdb):b[G(0xf9)]='lib';break;case'server':b[G(0xf9)]=G(0xf5);break;case G(0xa0):b[G(0xf9)]=G(0xa0);break;default:b[G(0xf9)]='';}}const m=await this[G(0x10e)][G(0xc4)](this,c,b);return m&&this[G(0x11d)]({'params':{'args':c,'opts':this['fsi'][G(0xd0)](b)},'success':m?.[G(0x10c)],'message':m?.[G(0x109)],'details':m?.['details']}),m;}catch(q){this[G(0x104)](q);}});}[a104u(0xbe)](){const H=a104u;this[H(0xc1)](this[H(0xb3)]);}[a104u(0x104)](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[I(0xc9)];Log[I(0x100)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[I(0xc2)](I(0xeb)),this[I(0xc1)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[I(0xaf)](I(0xda));else{if(a instanceof NoMeteorFoundError)Log[I(0xaf)](I(0xa9)),Log[I(0xc2)](I(0x113));else a instanceof NoMeteorAppFoundError&&Log[I(0xaf)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a104u(0xc1)](a){const J=a104u,b=new a104g({});b[J(0x101)]([J(0xa3),J(0xdd),J(0xb6)]),a['sort']((c,d)=>{const K=J;return c[K(0xe7)]['localeCompare'](d[K(0xe7)]);})[J(0xae)](c=>{const L=J;b['push']([c[L(0xe7)],c[L(0xce)](),c[L(0xf1)]()]);}),Log[J(0xa8)](b[J(0xe0)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=-parseInt(f(0x198))/0x1+-parseInt(f(0x1a2))/0x2*(parseInt(f(0x197))/0x3)+parseInt(f(0x195))/0x4+-parseInt(f(0x19c))/0x5+-parseInt(f(0x19e))/0x6+parseInt(f(0x19a))/0x7+parseInt(f(0x1a1))/0x8*(parseInt(f(0x199))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x35576));var a105b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a105d;if(c){var e=c[g(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){var h=a105d;return a105a[h(0x19d)]()[h(0x19b)](h(0x196))[h(0x19d)]()[h(0x1a0)](a105a)['search'](h(0x196));});a105a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x195;var f=c[d];return f;},a105d(a,b);}import'./page.js';function a105c(){var i=['284095npBSKb','search','708020nlfacC','toString','2175798WaSrth','apply','constructor','19288VbVUjb','12310gFQvDG','1381136GgpBvV','(((.+)+)+)+$','207niJunD','248660dKKDlY','3771XPwJsU'];a105c=function(){return i;};return a105c();}import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=parseInt(v(0x156))/0x1+-parseInt(v(0x169))/0x2+parseInt(v(0x15f))/0x3*(parseInt(v(0x161))/0x4)+-parseInt(v(0x158))/0x5+-parseInt(v(0x15a))/0x6+-parseInt(v(0x19b))/0x7+parseInt(v(0x184))/0x8*(parseInt(v(0x179))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0xe50f3));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x154)]()[x(0x189)](x(0x18e))['toString']()[x(0x193)](a106a)[x(0x189)](x(0x18e));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x151;let f=c[d];return f;},a106d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a106c(){const B=['No\x20API\x20boundaries\x20selected','exit','mdg:validated-method','resourceName','GraphQL','create','\x27;\x0a','1747660FxRzPU','Resolvers);\x0a\x0a','api','typeDefs.','test','apiAnswers','none','api/api.js','rewriteDestinationPathForEngine','template','import\x20\x27./register-','server','startup','engines','dir','withRest','1233QBYjnx','api/methods.js','\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','withGql','api/register-api.js','TypeDefs);\x0a','checkbox','maka\x20g:api\x20Todos','/graphql/typeDefs','apply','TypeDefs\x20}\x20from\x20\x27','235552wGBnYO','withValue','if\x20\x5c(typeList','pathFromApp','push','search','getMakaProjectConfig','tsx','ddp-rate-limiter','setProjectConfig','(((.+)+)+)+$','imports','/graphql/resolvers','options','.app-tests.','constructor','injectAtBeginningOfFile','includes','API\x20Version?\x20[v1]','const','register-','/imports/api/','withMethods','10238585bbfuKo','graphql','maka:rest','rest','-rpc-methods.','api/tests.js','typeList.push(','toString','maka\x20{generate,\x20g}:{api}\x20<resource-name>','512019cSRESs','checkMeteorPackage','8899840OFXYKW','apollo','3763386rEYlkE','fsi','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','injectIntoFile','API\x20boundaries\x20to\x20create','27936GrzgAT','api/resolvers.js','488ShaEZM'];a106c=function(){return B;};return a106c();}import{Actions}from'../tools/actions/actions.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a106y(0x167)]({'name':a106y(0x16b),'aliases':['a'],'usage':a106y(0x155),'shortDesc':a106y(0x15c),'validOpts':[a106y(0x177)],'examples':[a106y(0x180)],'description':a106y(0x17b)},async function(a,b){const z=a106y;try{const c=this[z(0x15b)][z(0x18a)](),d=[{'name':'RPC\x20(Methods)','value':'withMethods'}];d[z(0x188)]({'name':'REST\x20API','value':z(0x178)});c[z(0x176)][z(0x19c)]===z(0x159)&&d[z(0x188)]({'name':z(0x166),'value':z(0x17c)});const f={'type':z(0x17f),'name':z(0x16e),'message':z(0x15e),'pageSize':0x64,'choices':d},g=await Actions['ask'](z(0x196))||'v1',{apiAnswers:h}=await Actions[z(0x191)](f);h['length']===0x0&&(Log['error'](z(0x162)),process[z(0x163)](0x1)),await this[z(0x15b)][z(0x185)](c,async()=>{const A=z,i=b[A(0x165)],j=paramCase(i),k=camelCase(i),l=b[A(0x177)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][A(0x16b)],'graphql':c['engines'][A(0x19c)],'test':c['engines'][A(0x16d)],'noRename':!![],'withMethods':h[A(0x195)](A(0x19a)),'withRest':h[A(0x195)](A(0x178))};let n='js';c[A(0x176)]['js']===A(0x18b)&&(n='ts');m[A(0x178)]&&(this[A(0x15b)][A(0x18d)]({'engines':{'api':A(0x19e)}}),await this[A(0x15b)]['checkMeteorPackage']([A(0x19d),'ddp-rate-limiter',A(0x164)],{'shouldInstall':!![]}),await this[A(0x15b)][A(0x172)]({'srcPath':A(0x170),'destPath':this[A(0x15b)][A(0x187)]({'pathParts':[A(0x18f),A(0x16b),g,b[A(0x177)],j,j+'-'+g+'-rest-api.'+n]}),'context':m,'config':c}));m[A(0x19a)]&&(await this[A(0x15b)][A(0x157)]([A(0x18c),A(0x164)],{'shouldInstall':!![]}),await this[A(0x15b)]['template']({'srcPath':A(0x17a),'destPath':this['fsi'][A(0x187)]({'pathParts':[A(0x18f),'api',g,b[A(0x177)],j,j+'-'+g+A(0x151)+n]}),'context':m,'config':c}));c[A(0x176)][A(0x16d)]!==A(0x16f)&&await this['fsi'][A(0x172)]({'srcPath':A(0x152),'destPath':this[A(0x15b)][A(0x187)]({'pathParts':[A(0x18f),'api',g,b[A(0x177)],j,j+'-'+g+A(0x192)+n]}),'context':m,'config':c});if(c[A(0x176)][A(0x19c)]===A(0x159)){if(h[A(0x195)]('withGql')){const p=this[A(0x15b)][A(0x187)]({'pathParts':[A(0x18f),A(0x175),A(0x174),'index.'+c[A(0x176)]['js']]}),q=this[A(0x15b)][A(0x171)]({'pathParts':[p],'config':c}),r=this[A(0x15b)]['pathFromApp']({'pathParts':[A(0x18f),A(0x16b),g,b[A(0x177)],j,'graphql',A(0x16c)+n]}),s='/imports/api/'+g+l+j+A(0x181);await this[A(0x15b)][A(0x172)]({'srcPath':'api/typeDefs.js','destPath':r,'context':m,'config':c}),await this[A(0x15b)][A(0x194)]({'filePath':q,'content':'import\x20{\x20typeDefs\x20as\x20'+k+A(0x183)+s+A(0x168)}),await this[A(0x15b)][A(0x15d)]({'filePath':q,'content':A(0x153)+k+A(0x17e),'begin':A(0x197),'end':A(0x186)});const t=this['fsi'][A(0x187)]({'pathParts':[A(0x18f),'api',g,b[A(0x177)],j,'graphql','resolvers.'+n]}),u=A(0x199)+g+l+j+A(0x190);await this[A(0x15b)][A(0x172)]({'srcPath':A(0x160),'destPath':t,'context':m,'config':c}),await this['fsi'][A(0x194)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+'Resolvers\x20}\x20from\x20\x27'+u+'\x27;'}),await this[A(0x15b)][A(0x15d)]({'filePath':q,'content':'resolverList.push('+k+A(0x16a),'begin':A(0x197),'end':A(0x186)});}}await this[A(0x15b)][A(0x172)]({'srcPath':A(0x17d),'destPath':this[A(0x15b)][A(0x187)]({'pathParts':[A(0x18f),A(0x175),A(0x174),A(0x198)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x15b)][A(0x187)]({'pathParts':[A(0x18f),'startup',A(0x174),'index.'+c[A(0x176)]['js']]});await this[A(0x15b)]['injectAtEndOfFile']({'filePath':o,'content':A(0x173)+j+'-api\x27;'});});}catch(i){console['error'](i),process[z(0x163)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a107c(){const p=['startup','search','imports','2418432laCdLw','8120792eCspoY','fsi','162345XVfTaq','index.','withValue','collection','collection/tests.js','7LNKlQf','mongo','import\x20\x27./collections','constructor','\x0a\x20\x20\x20\x20Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection.\x0ahttps://docs.meteor.com/api/collections.html\x0a\x0a\x20\x20\x20\x20Collections\x20are\x20generated\x20in\x20the\x20\x22lib\x22\x20or\x20\x22common\x22\x20directory\x20by\x20default.\x20\x20This\x20location\x20is\x20accessible\x0a\x20\x20\x20\x20to\x20BOTH\x20client\x20and\x20server\x20(--where=both).\x20\x20Other\x20options\x20are\x20\x22--where=server\x22\x20and\x20\x22--where=client\x22\x20which\x0a\x20\x20\x20\x20will\x20setup\x20the\x20collection\x20in\x20their\x20respective\x20locations.\x0a\x20\x20','236958GOcqKp','injectAtEndOfFile','apply','getMakaProjectConfig','where','1673216bSTXKD','engines','dir','collection/collection.js','collections','col','resourceName','checkMeteorPackage','none','166556yoJXRo','pathFromApp','tsx','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','test','template','maka\x20g:collection\x20todos','(((.+)+)+)+$','appPathPrefix','1325376ZHSTkR'];a107c=function(){return p;};return a107c();}const a107m=a107d;(function(a,b){const j=a107d,c=a();while(!![]){try{const d=-parseInt(j(0x187))/0x1+parseInt(j(0x179))/0x2+parseInt(j(0x190))/0x3+parseInt(j(0x17e))/0x4+parseInt(j(0x197))/0x5+parseInt(j(0x194))/0x6+-parseInt(j(0x174))/0x7*(parseInt(j(0x195))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x38c0d));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a107d;if(c){const e=c[k(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const l=a107d;return a107a['toString']()[l(0x192)](l(0x18e))['toString']()[l(0x177)](a107a)[l(0x192)](l(0x18e));});a107a();import{paramCase,pascalCase}from'change-case';function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x171;let f=c[d];return f;},a107d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a107m(0x172),'aliases':[a107m(0x183)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':a107m(0x18a),'validOpts':[a107m(0x180),a107m(0x17d)],'description':a107m(0x178),'examples':[a107m(0x18d)]},async function(a,b){const n=a107m;try{const c=this[n(0x196)][n(0x17c)]();await this[n(0x196)][n(0x171)](c,async()=>{const o=n,d=paramCase(b[o(0x184)]),f={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x184)]),'fileName':d,'where':b['where'],'test':c['engines'][o(0x18b)],'noRename':!![]};let g='js';c[o(0x17f)]['js']===o(0x189)&&(g='ts');await this[o(0x196)][o(0x185)]([o(0x175)],{'shouldInstall':!![]}),await this[o(0x196)][o(0x18c)]({'srcPath':o(0x181),'destPath':this[o(0x196)][o(0x188)]({'pathParts':['imports','startup',b['appPathPrefix'],o(0x182),b['dir'],d+'.'+g]}),'context':f,'config':c});c[o(0x17f)][o(0x18b)]!==o(0x186)&&await this['fsi'][o(0x18c)]({'srcPath':o(0x173),'destPath':this[o(0x196)][o(0x188)]({'pathParts':[o(0x193),'startup',b[o(0x18f)],o(0x182),b[o(0x180)],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0x180)]?'/'+b['dir']+'/':'/',i=this[o(0x196)][o(0x188)]({'pathParts':[o(0x193),o(0x191),b[o(0x18f)],o(0x198)+c['engines']['js']]});await this[o(0x196)][o(0x17a)]({'filePath':i,'content':o(0x176)+h+d+'\x27;'});});}catch(d){Log['error'](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a108n=a108d;(function(a,b){const k=a108d,c=a();while(!![]){try{const d=parseInt(k(0x178))/0x1*(-parseInt(k(0x18d))/0x2)+parseInt(k(0x189))/0x3*(-parseInt(k(0x188))/0x4)+parseInt(k(0x184))/0x5*(-parseInt(k(0x174))/0x6)+parseInt(k(0x18a))/0x7+parseInt(k(0x168))/0x8+parseInt(k(0x177))/0x9*(-parseInt(k(0x17c))/0xa)+parseInt(k(0x179))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x332e4));function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x166;let f=c[d];return f;},a108d(a,b);}const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a108d;if(c){const e=c[l(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const m=a108d;return a108a[m(0x17f)]()[m(0x182)]('(((.+)+)+)+$')[m(0x17f)]()['constructor'](a108a)['search']('(((.+)+)+)+$');});a108a();import a108e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a108n(0x19f)];Generator[a108n(0x17b)]({'name':'component','aliases':aliases,'usage':a108n(0x187),'shortDesc':a108n(0x17e),'validOpts':[{'name':a108n(0x172)}],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const o=a108n;try{const c=this['fsi'][o(0x16a)](),d=b[o(0x172)]?'/imports/ui/'+b[o(0x172)]:o(0x16f),f=this[o(0x16b)][o(0x16c)]({'pathParts':[d,b[o(0x199)],paramCase(b['resourceName']),paramCase(b[o(0x191)])]}),g=await this[o(0x16b)][o(0x19e)]();await this[o(0x16b)]['withValue'](g,async()=>{const p=o;typeof g['template'][p(0x167)]===p(0x198)&&(g[p(0x193)][p(0x167)]=g['template']['test']==='true'?!![]:![],this[p(0x16b)]['setTemplate'](p(0x167),g[p(0x193)][p(0x167)]));typeof g[p(0x193)][p(0x197)]===p(0x198)&&(g[p(0x193)]['css']=g['template'][p(0x197)]===p(0x185)?!![]:![],this[p(0x16b)]['setTemplate'](p(0x197),g[p(0x193)][p(0x197)]));typeof g[p(0x193)]['js']===p(0x198)&&(g[p(0x193)]['js']=g['template']['js']==='true'?!![]:![],this[p(0x16b)][p(0x196)]('js',g['template']['js']));!g[p(0x192)]&&(g[p(0x192)]={});!b[p(0x18b)]&&!this[p(0x16b)]['checkNpmPackage'](p(0x180))&&(Log[p(0x194)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi'][p(0x19c)](p(0x180),{'cwd':c}));if(!b[p(0x18b)]&&!this[p(0x16b)][p(0x170)](p(0x176))){Log[p(0x19d)](p(0x195));return;}const h={'name':pascalCase(b[p(0x191)]),'myPath':a108e[p(0x181)](this['fsi'][p(0x173)]({}),f),'cssCaseName':paramCase(b[p(0x191)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[p(0x191)]),'fileName':paramCase(b[p(0x191)]),'graphql':g['engines'][p(0x175)],'features':g[p(0x192)],'client':g[p(0x171)]['client'],'api':g['engines'][p(0x16e)],'ssr':g[p(0x171)]['ssr'],'test':g[p(0x171)][p(0x167)],'theme':g[p(0x171)][p(0x183)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x192)][p(0x19b)]};await this[p(0x16b)][p(0x193)]({'srcPath':p(0x17d),'destPath':f+'.js','context':h,'framework':'react','config':g});g[p(0x171)][p(0x167)]!==p(0x190)&&await this[p(0x16b)][p(0x193)]({'srcPath':'test/test.js','destPath':f+p(0x18f),'context':h,'framework':p(0x176),'config':g});g[p(0x193)][p(0x197)]&&(await this['fsi'][p(0x193)]({'srcPath':p(0x16d),'destPath':f+p(0x186),'context':Object[p(0x17a)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),await this[p(0x16b)][p(0x18c)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[p(0x19a)]+'.'+g[p(0x171)][p(0x197)]+'\x27;'}));const i=b[p(0x199)]?'/'+b[p(0x199)]+'/':'/',j=''+d+i+h[p(0x169)]+'/'+h[p(0x169)];await this[p(0x16b)][p(0x18e)](h['className'],g,j);});}catch(h){Log['error'](h);}});function a108c(){const q=['28TIWiAg','113547UCtkib','108248GQMANM','root','injectAtBeginningOfFile','24204BMGPhJ','injectTemplateModule','.tests.js','none','resourceName','features','template','warn','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','setTemplate','css','string','dir','cssCaseName','withTranslations','installNpmPackage','error','getMakaProjectConfig','comp','apply','test','2001168vmajIp','fileName','findAppDirectory','fsi','pathFromApp','template/template.css','api','/imports/ui/components','checkNpmPackage','engines','baseDir','pathFromProject','12OlbOJV','graphql','react','2061JPCyCt','27dYEvDY','11408309iAssBe','assign','create','16460TMSSUV','component/component.js','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','toString','ramda','relative','search','theme','311155xfEgBm','true','.css','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>'];a108c=function(){return q;};return a108c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109k=a109d;(function(a,b){const h=a109d,c=a();while(!![]){try{const d=parseInt(h(0x155))/0x1+parseInt(h(0x152))/0x2+parseInt(h(0x158))/0x3+parseInt(h(0x14e))/0x4+parseInt(h(0x169))/0x5+-parseInt(h(0x161))/0x6*(-parseInt(h(0x164))/0x7)+-parseInt(h(0x165))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xaa0f1));const a109b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a109d;if(c){const e=c[i(0x159)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){const j=a109d;return a109a[j(0x153)]()['search']('(((.+)+)+)+$')[j(0x153)]()[j(0x154)](a109a)['search'](j(0x156));});a109a();function a109c(){const n=['maka\x20{generate,\x20g}:{config}\x20<name>','withValue','prod','config/settings.json','appName','settings.json','138wHloGc','resourceName','config','254674AtSdsO','23849608BOaPyV','dev','isDocker','ubuntu','951685aRdDoo','process.env','create','development','719188MljAkN','config/process.env','pathFromProject','getMakaProjectConfig','1482786aYuRCK','toString','constructor','1192632cgItjw','(((.+)+)+)+$','template','1610451LJisrk','apply','fsi'];a109c=function(){return n;};return a109c();}import{Generator}from'../generator.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x14d;let f=c[d];return f;},a109d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a109k(0x16b)]({'name':'config','usage':a109k(0x15b),'shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a109k(0x167)],'examples':['maka\x20g:config\x20production']},async function(a,b){const l=a109k,c=this[l(0x15a)][l(0x151)]();await this[l(0x15a)][l(0x15c)](c,async()=>{const m=l,d={'app':c[m(0x15f)],'appFileCase':paramCase(c[m(0x15f)]),'name':pascalCase(b[m(0x162)]),'fileName':paramCase(b[m(0x162)]),'camelCase':camelCase(b[m(0x162)]),'userName':m(0x168),'isDocker':b['isDocker']};let e=b[m(0x162)];if(e===m(0x166))e=m(0x14d);else e===m(0x15d)&&(e='production');const f=this[m(0x15a)][m(0x150)]({'pathParts':[m(0x163),e,m(0x160)]});await this[m(0x15a)][m(0x157)]({'srcPath':m(0x15e),'destPath':f,'context':d,'config':c});if(!b[m(0x167)]){const g=this[m(0x15a)][m(0x150)]({'pathParts':[m(0x163),e,m(0x16a)]});await this['fsi'][m(0x157)]({'srcPath':m(0x14f),'destPath':g,'context':d,'config':c});}});});
|