@maka/maka-cli 5.0.44 → 5.1.1
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 +30 -26
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test/_index.js +1 -1
- package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/test.command.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/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +30 -26
|
@@ -1 +1 @@
|
|
|
1
|
-
const a93k=a93d;(function(a,b){const h=a93d,c=a();while(!![]){try{const d=-parseInt(h(
|
|
1
|
+
function a93c(){const m=['1502252PFBeJg','Could\x20not\x20find\x20directory','63oXvyZw','global-config','resolve','One\x20or\x20the\x20other\x20buddy','success','cacert','Set\x20CA\x20Cert\x20Path:\x20','3970868LMBaUg','search','117276AZKusG','setGlobalConfig','6871705uRqDlQ','1115469xKbxHj','light','maka\x20set:gc\x20--workspace\x20<path>','allowInsecure','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','openai','maka\x20set:global-config\x20--cacert\x20<path>','disallowInsecure','fsi','Set\x20color\x20pallet\x20to:\x20','cfg','isFile','workspace','pallet','help','maka\x20set:gc\x20--insecure\x20<path>','(((.+)+)+)+$','create','apply','6608704rPjmoL','\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','error','380578KHoovo','isDirectory','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','Set\x20OpenAI\x20Key:\x20'];a93c=function(){return m;};return a93c();}const a93k=a93d;(function(a,b){const h=a93d,c=a();while(!![]){try{const d=-parseInt(h(0xed))/0x1+-parseInt(h(0xe9))/0x2+-parseInt(h(0xfb))/0x3+parseInt(h(0xf6))/0x4+parseInt(h(0xfa))/0x5+-parseInt(h(0xf8))/0x6*(parseInt(h(0xef))/0x7)+parseInt(h(0xe6))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xe8a24));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a93d;if(c){const e=c[i(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const j=a93d;return a93a['toString']()[j(0xf7)]('(((.+)+)+)+$')['toString']()['constructor'](a93a)['search'](j(0xe3));});function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0xd9;let f=c[d];return f;},a93d(a,b);}a93a();import a93e from'path';import a93f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a93k(0xe4)]({'name':a93k(0xf0),'usage':'maka\x20set:global-config','aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a93k(0xf4),'boolFlag':![]},{'name':'allowInsecure','boolFlag':!![]},{'name':a93k(0xda),'boolFlag':!![]},{'name':'workspace','boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a93k(0xe1),'boolFlag':!![]},{'name':a93k(0xe0),'values':[a93k(0xfc),'dark']}],'shortDesc':'Set\x20global\x20Maka-CLI\x20settings','description':a93k(0xe7),'examples':[a93k(0xd9),a93k(0xe2),a93k(0xfd)]},async function(a,b){const l=a93k;try{if(b[l(0xf4)]){if(this[l(0xdb)][l(0xde)](b[l(0xf4)]))await this[l(0xdd)]['setGlobalConfig']({'cert':b[l(0xf4)]}),Log[l(0xf3)](l(0xf5)+b[l(0xf4)]);else{const c=typeof b[l(0xf4)]==='boolean'?l(0xeb):l(0xff)+b['cacert'];throw Log['error'](c);}}if(b[l(0xdf)]){const d=this[l(0xdb)][l(0xea)](b['workspace']);if(d)await this[l(0xdd)][l(0xf9)]({'workspace':a93e[l(0xf1)](b[l(0xdf)])}),Log[l(0xf3)]('Set\x20workspace:\x20'+a93e['resolve'](b[l(0xdf)]));else throw Log[l(0xe8)](l(0xee));}b['openai']&&(await this[l(0xdd)][l(0xf9)]({'openai':b[l(0x100)]}),Log[l(0xf3)](l(0xec)+b['openai']));b['pallet']&&(await this[l(0xdd)]['setGlobalConfig']({'pallet':b[l(0xe0)]}),Log[l(0xf3)](l(0xdc)+b[l(0xe0)]));if(b['allowInsecure']){if(b['allowInsecure']&&b[l(0xda)])throw Log[l(0xe8)](l(0xf2));let f=b[l(0xfe)];b[l(0xda)]&&(f=![]),await this[l(0xdd)][l(0xf9)]({'allowInsecure':f}),Log[l(0xf3)]('Set\x20allowInsecure:\x20'+f);}process['exit'](0x0);}catch(g){console[l(0xe8)](g),process['exit'](0x0);}},a93f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a94c(){var j=['9HBaUWJ','4802090xUsNqm','(((.+)+)+)+$','search','notice','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','constructor','22CjkSlU','3857154ZEwJAb','761282ZExlAQ','toString','create','2032269XCNHQu','186035HvTxqv','972456qDUMTp','1558837ANIXve','maka\x20set:local-config','2SBfZZk','Sorry,\x20not\x20implemented\x20yet','148pbCLcj'];a94c=function(){return j;};return a94c();}var a94h=a94d;(function(a,b){var f=a94d,c=a();while(!![]){try{var d=parseInt(f(0x1ce))/0x1*(parseInt(f(0x1d6))/0x2)+parseInt(f(0x1d1))/0x3+parseInt(f(0x1d8))/0x4*(-parseInt(f(0x1d2))/0x5)+-parseInt(f(0x1cd))/0x6+parseInt(f(0x1d4))/0x7+parseInt(f(0x1d3))/0x8*(parseInt(f(0x1d9))/0x9)+-parseInt(f(0x1da))/0xa*(-parseInt(f(0x1cc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0xb0b8d));var a94b=(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;};}()),a94a=a94b(this,function(){var g=a94d;return a94a[g(0x1cf)]()['search'](g(0x1db))[g(0x1cf)]()[g(0x1cb)](a94a)[g(0x1dc)]('(((.+)+)+)+$');});a94a();function a94d(a,b){var c=a94c();return a94d=function(d,e){d=d-0x1ca;var f=c[d];return f;},a94d(a,b);}import a94e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a94h(0x1d0)]({'name':'local-config','usage':a94h(0x1d5),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':a94h(0x1ca)},async function(){var i=a94h;Log[i(0x1dd)](i(0x1d7));},a94e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a95h=a95d;(function(a,b){const f=a95d,c=a();while(!![]){try{const d=-parseInt(f(0x1b9))/0x1*(parseInt(f(0x1b8))/0x2)+-parseInt(f(0x1b6))/0x3+parseInt(f(0x1b1))/0x4*(parseInt(f(0x1ba))/0x5)+parseInt(f(0x1bc))/0x6+-parseInt(f(0x1af))/0x7*(parseInt(f(0x1b7))/0x8)+parseInt(f(0x1bb))/0x9+-parseInt(f(0x1b4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x59731));function a95c(){const i=['search','constructor','2435780XPyMsS','maka\x20set:<sub-command>','42375NEfLyr','240136FxmBIf','2086INwzzx','247xLVtkP','5YLjEhs','2075661bEftdh','4135014GivhQd','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','toString','(((.+)+)+)+$','98SSsIXk','set','1528596BIuufl'];a95c=function(){return i;};return a95c();}function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a95d(a,b);}const a95b=(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;};}()),a95a=a95b(this,function(){const g=a95d;return a95a[g(0x1ad)]()[g(0x1b2)](g(0x1ae))['toString']()[g(0x1b3)](a95a)[g(0x1b2)](g(0x1ae));});a95a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const SetCommand=Command['create']({'name':a95h(0x1b0),'usage':a95h(0x1b5),'shortDesc':a95h(0x1ac),'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(){throw UsageError;});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(
|
|
1
|
+
const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=parseInt(k(0x1c2))/0x1*(parseInt(k(0x1c4))/0x2)+-parseInt(k(0x1d7))/0x3+-parseInt(k(0x1d6))/0x4+-parseInt(k(0x1bf))/0x5+parseInt(k(0x1b8))/0x6*(-parseInt(k(0x1d4))/0x7)+-parseInt(k(0x1c8))/0x8+parseInt(k(0x1c1))/0x9*(parseInt(k(0x1c3))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x76f1f));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x1bc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x1cc)]()['search'](m(0x1c5))[m(0x1cc)]()[m(0x1bd)](a96a)['search']('(((.+)+)+)+$');});a96a();import a96e from'fs';import a96f from'path';import{Command}from'../command.js';function a96c(){const p=['2579733PcMYnP','env','1517778iAbbtr','ssh.json','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','readFileSync','apply','constructor','maka\x20ssh\x20--env\x20dev','2962475PMWmTv','error','9KMGodd','355JJyoGW','30016310hsifqQ','462MzqwsA','(((.+)+)+)+$','length','cfg','1288888EVbxtN','getEnvFromShorthand','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20<command>','toString','join','ssh','sshSync','exit','maka\x20ssh\x20--env\x20prod','create','verbose','21StcxLD','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','896124studpd'];a96c=function(){return p;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a96d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a96n(0x1d2)]({'name':a96n(0x1ce),'usage':a96n(0x1cb),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a96n(0x1b7),a96n(0x1d3)],'shortDesc':'Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','examples':[a96n(0x1be),'maka\x20ssh\x20--env\x20staging',a96n(0x1d1),a96n(0x1d5),a96n(0x1ca),a96n(0x1ba)]},async function(a,b){const o=a96n;try{const c=this[o(0x1c7)][o(0x1c9)](b[o(0x1b7)]),d=this[o(0x1c7)]['getAppConfigPath'](c);let f='';a[o(0x1c6)]>0x0&&(f=a[0x0]);const g=a96f[o(0x1cd)](d,o(0x1b9)),h=a96e[o(0x1bb)](g)[o(0x1cc)](),i=JSON['parse'](h);Object['assign'](i,{'env':d}),SSH[o(0x1cf)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0x1d3)]});}catch(j){Log[o(0x1c0)](j),process[o(0x1d0)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xc7;let f=c[d];return f;},a97d(a,b);}const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=-parseInt(w(0xee))/0x1*(parseInt(w(0xd0))/0x2)+-parseInt(w(0xe3))/0x3+-parseInt(w(0x102))/0x4+-parseInt(w(0xf5))/0x5*(parseInt(w(0xf6))/0x6)+parseInt(w(0xe0))/0x7+-parseInt(w(0xe1))/0x8+parseInt(w(0xe6))/0x9*(parseInt(w(0xc9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xe8124));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a[y(0xfc)]()['search']('(((.+)+)+)+$')[y(0xfc)]()['constructor'](a97a)[y(0xe7)]('(((.+)+)+)+$');});function a97c(){const B=['Email\x20to\x20use\x20for\x20auto-updates:\x20','toString','ssh','cfg','getEnvFromShorthand','New\x20CSR\x20written\x20to\x20','domainNames','7210948TKTgkf','fsi','success','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','20766920OSDwrs','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','join','exit','maka\x20ssl\x20[command]','[?]\x20Domains\x20to\x20register:\x20','create','1448384frUTma','Remote\x20host\x20connection\x20successful','\x20--email\x20','mkKeysDir','.key','Create\x20and\x20manage\x20your\x20SSL\x20operations.','getMakaProjectConfig','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','ask','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','stringify','parse','appName','maka\x20ssl\x20--env\x20dev\x20generate-csr','ping','env','253806wJpPXj','4843888aTjOIy','error','3089940YxSSlP','notice','assign','27LGpIyo','search','email','emailUpdate','generate-csr','writeFileSync','.csr','readFileSync','1irWxsi','letsencrypt','apply','ssl','sudo\x20snap\x20install\x20--classic\x20certbot','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','Using\x20saved\x20letsencrypt\x20config','1153375hBdAdE','30tSYIFx','genSSC','domains','existsSync','uname\x20-a'];a97c=function(){return B;};return a97c();}a97a();import a97e from'fs';import a97f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a97z(0xcf)]({'name':a97z(0xf1),'usage':a97z(0xcd),'validOpts':[a97z(0xf8),a97z(0xe8)],'requiredOpts':[a97z(0xdf)],'shortDesc':a97z(0xd5),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0xdd),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a97z(0xd7)]},async function(a,b){const A=a97z,c=this[A(0xfe)][A(0xd6)](),d=this[A(0xfe)][A(0xff)](b[A(0xdf)]),f=this[A(0xfe)]['getAppConfigPath'](d),g=this[A(0x103)][A(0xd3)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0xea))SSL['genCSR']({'keyName':c[A(0xdc)]+'.key','csrName':c[A(0xdc)]+'.csr','cwd':g});else{if(h==='generate-ssc'){if(!a97e[A(0xf9)](a97f['join'](g,c['appName']+'.key')))throw A(0xd9)+a97f[A(0xcb)](g,c['appName']+A(0xd4));if(!a97e[A(0xf9)](a97f[A(0xcb)](g,c['appName']+'.csr')))throw A(0xca)+a97f[A(0xcb)](g,c[A(0xdc)]+A(0xec));SSL[A(0xf7)]({'keyName':c['appName']+A(0xd4),'crtName':c[A(0xdc)]+'.crt','cwd':g}),Log[A(0xe4)](A(0x100)+g);}else{if(h===A(0xef)){let i=b[A(0xf8)],j=b['email'];try{const q=a97e[A(0xed)](a97f['join'](f,'letsencrypt.json'))[A(0xfc)](),r=JSON[A(0xdb)](q);i=b['domains']?b[A(0xf8)]:r[A(0x101)],j=b[A(0xe8)]?b[A(0xe8)]:r[A(0xe9)],(!b[A(0xe8)]||!b[A(0xf8)])&&Log[A(0xe4)](A(0xf4));}catch(s){}const k=JSON[A(0xdb)](a97e[A(0xed)](f+'/ssh.json')['toString']());Object[A(0xe5)](k,{'env':f}),Log[A(0xe4)]('Checking\x20remote\x20host\x20availability');try{const t=SSH[A(0xde)](A(0xfa),k);if(!t)throw A(0xf3);if(t)Log['success'](A(0xd1));}catch(u){Log[A(0xe2)](u);return;}const l=Log['withSpinner']();l['start']('Verifying\x20Letsencrypt\x20configuration'),SSH[A(0xfd)]('sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core',{...k}),SSH['ssh'](A(0xf2),{...k}),SSH['ssh']('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...k}),l[A(0xc7)]();const m=i?i:await Actions[A(0xd8)](A(0xce)),n=j?j:await Actions[A(0xd8)](A(0xfb));SSH[A(0xfd)](A(0xc8)+m+A(0xd2)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0xda)](o,null,0x2);a97e[A(0xeb)](a97f[A(0xcb)](f,'letsencrypt.json'),p);}else throw'Please\x20provide\x20a\x20command.';}}}catch(v){console[A(0xe2)](v),process[A(0xcc)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-
|
|
1
|
+
function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x134;var f=c[d];return f;},a98d(a,b);}(function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x138))/0x1+-parseInt(f(0x136))/0x2*(parseInt(f(0x142))/0x3)+parseInt(f(0x13f))/0x4+-parseInt(f(0x135))/0x5+parseInt(f(0x13d))/0x6*(-parseInt(f(0x140))/0x7)+-parseInt(f(0x139))/0x8*(-parseInt(f(0x13e))/0x9)+parseInt(f(0x13a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x92f3c));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x137)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x141)]()[h(0x13b)](h(0x13c))[h(0x141)]()[h(0x134)](a98a)[h(0x13b)](h(0x13c));});function a98c(){var i=['toString','16701vMlttD','constructor','4512425HhgZar','90eowguO','apply','12935rSbOrf','1167688nQTYHM','13984410AGreEz','search','(((.+)+)+)+$','2946lKXtGz','63rHkdmW','1790704pmqvUT','16051rwmvrf'];a98c=function(){return i;};return a98c();}a98a();import'./test.command.js';import'./mocha.sub.cmd.js';import'./jest.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-
|
|
1
|
+
function a99c(){const r=['identity-obj-proxy','Specify\x20a\x20custom\x20Jest\x20config\x20file','/node_modules/','jest-environment-jsdom','1439095EQOKLD','2wQGVzw','@testing-library/react','success','627360ByEaEQ','Some\x20tests\x20failed.','Update\x20Jest\x20snapshots','^.+\x5c.module\x5c.(css|sass|scss)$','updateSnapshot','fsi','Generate\x20test\x20coverage\x20report','/node_modules','exit','isFile','runInBand','Error\x20running\x20Jest:\x20','eslint/babel.config.js','333HJwOWX','clearCache','(((.+)+)+)+$','30705nRhUqF','watch','coverage','100421jbbika','jest.config.js','Run\x20only\x20failed\x20tests\x20from\x20the\x20last\x20run','<rootDir>/private','search','jsdom','Coverage\x20report\x20generated\x20in\x20the\x20\x22coverage\x22\x20directory.','maka\x20test:jest\x20<file|directory>\x20[--options]','scaffold','615258bdtJiS','jest','jest-css-modules-transform','80ayToDi','log','error','findProjectDirectory','Run\x20Jest\x20in\x20watch\x20mode','service','Tests\x20completed\x20successfully.','onlyFailures','pkg','Runs\x20Jest\x20tests\x20in\x20the\x20specified\x20file\x20or\x20directory\x20with\x20optional\x20Jest\x20configurations,\x20including\x20coverage\x20reports.','3484070xDCNsZ','27128dCQwTe','config','message','<rootDir>/public','template','create','Run\x20tests\x20sequentially\x20in\x20the\x20same\x20process','toString','join','checkNpmPackage','test/jest/jest.config.js','@babel/plugin-syntax-jsx'];a99c=function(){return r;};return a99c();}const a99p=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x17a;let f=c[d];return f;},a99d(a,b);}(function(a,b){const n=a99d,c=a();while(!![]){try{const d=parseInt(n(0x1a3))/0x1*(parseInt(n(0x18d))/0x2)+-parseInt(n(0x190))/0x3+parseInt(n(0x1af))/0x4*(parseInt(n(0x1a0))/0x5)+parseInt(n(0x1ac))/0x6+-parseInt(n(0x18c))/0x7+parseInt(n(0x17c))/0x8*(-parseInt(n(0x19d))/0x9)+parseInt(n(0x17b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x20b83));const a99b=(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;};}()),a99a=a99b(this,function(){const o=a99d;return a99a['toString']()[o(0x1a7)](o(0x19f))[o(0x183)]()['constructor'](a99a)[o(0x1a7)](o(0x19f));});a99a();import{Command}from'../../command.js';import a99e from'./test.command.js';import a99f from'jest';import a99g from'path';Command[a99p(0x181)]({'name':a99p(0x1ad),'usage':a99p(0x1aa),'shortDesc':'Run\x20a\x20Jest\x20test\x20suite\x20with\x20custom\x20options','description':a99p(0x17a),'validOpts':[{'name':a99p(0x1a1),'boolFlag':!![],'description':a99p(0x1b3)},{'name':a99p(0x1a2),'boolFlag':!![],'description':a99p(0x196)},{'name':a99p(0x194),'boolFlag':!![],'description':a99p(0x192)},{'name':a99p(0x19a),'boolFlag':!![],'description':a99p(0x182)},{'name':a99p(0x1b6),'boolFlag':!![],'description':a99p(0x1a5)},{'name':a99p(0x17d),'description':a99p(0x189),'regex':/^.+\.js$/},{'name':a99p(0x19e),'boolFlag':!![],'description':'Clear\x20Jest\x20cache\x20before\x20running\x20tests'}]},async function(a,b){const q=a99p,c=this[q(0x195)]['findAppDirectory'](),d=this[q(0x195)][q(0x1b2)]();await this[q(0x1b7)][q(0x185)]([q(0x18e),q(0x187),q(0x1ae),q(0x188),q(0x18b)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});if(b[q(0x19e)]){await a99f['runCLI']({'_':[],'$0':'jest','clearCache':!![]},[c]);return;}const e=a99g[q(0x184)](d,'config','jest.setup.js'),f=this[q(0x195)][q(0x199)](e);!f&&await this[q(0x1ab)][q(0x180)]({'srcPath':'test/jest/jest.setup.js','destPath':e,'framework':q(0x1b4),'context':{'noRename':!![]}});const g=a99g[q(0x184)](c,q(0x1a4)),h=this[q(0x195)][q(0x199)](g);!h&&await this[q(0x1ab)][q(0x180)]({'srcPath':q(0x186),'destPath':g,'framework':q(0x1b4),'context':{'noRename':!![]}});const i=a99g[q(0x184)](c,'babel.config.js'),j=this['fsi'][q(0x199)](i);!j&&await this[q(0x1ab)][q(0x180)]({'srcPath':q(0x19c),'destPath':i,'framework':q(0x1b4),'context':{'noRename':!![]}});const k={'_':a,'$0':'jest','testEnvironment':q(0x1a8),'watch':b['watch']||![],'coverage':b[q(0x1a2)]||![],'updateSnapshot':b[q(0x194)]||![],'runInBand':b[q(0x19a)]||![],'onlyFailures':b[q(0x1b6)]||![],'config':b[q(0x17d)]||undefined,'rootDir':c,'coverageDirectory':a99g['join'](d,'coverage'),'testPathIgnorePatterns':[q(0x197),'<rootDir>/packages',q(0x17f),q(0x1a6)],'testMatch':['**/?(*.)+(app-tests).[tj]s?(x)'],'transform':{'^.+\x5c.(js|jsx|ts|tsx)$':'babel-jest','.+\x5c.(css|styl|less|sass|scss)$':q(0x1ae)},'transformIgnorePatterns':[q(0x18a),q(0x193)],'setupFiles':[e],'moduleNameMapper':{'\x5c.(css|less|scss)$':'identity-obj-proxy','^/(.*)$':'<rootDir>/$1'}};try{const {results:l}=await a99f['runCLI'](k,[c]);l[q(0x18f)]?(console[q(0x1b0)](q(0x1b5)),b[q(0x1a2)]&&console[q(0x1b0)](q(0x1a9))):(console['error'](q(0x191)),process[q(0x198)](0x1));}catch(m){console[q(0x1b1)](q(0x19b)+m[q(0x17e)]),process[q(0x198)](0x1);}},a99e);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100x=a100d;function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x16c;let f=c[d];return f;},a100d(a,b);}(function(a,b){const t=a100d,c=a();while(!![]){try{const d=parseInt(t(0x180))/0x1+-parseInt(t(0x17e))/0x2+parseInt(t(0x187))/0x3+-parseInt(t(0x176))/0x4+-parseInt(t(0x1a9))/0x5+parseInt(t(0x18c))/0x6*(-parseInt(t(0x171))/0x7)+parseInt(t(0x17a))/0x8*(parseInt(t(0x17b))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x59762));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a100d;if(c){const e=c[u(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const v=a100d;return a100a[v(0x1a3)]()[v(0x16f)](v(0x1ac))[v(0x1a3)]()[v(0x19f)](a100a)['search'](v(0x1ac));});a100a();import a100e from'fs';function a100c(){const A=['Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','constructor','test-packages','meteortesting:mocha','env','toString','testAppPath','Meteor\x20is\x20installed.','mpi','create','exit','3343355JevsqU','driverPackage','info','(((.+)+)+)+$','none','Node\x20Env\x20Config:\x20','findProjectDirectory','forEach','relative','getAppConfigPath','process.env','--full-app','engines','rawLogs','maka\x20test:mocha','pkg','cfg','sanjo:jasmine','driver','search','concat','21TriEQd','argv','settings','config.json','packages','2256320nvStYh','mocha','test','local','23968kSGHpv','5787GfgBcK','settings.json','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','272870xBQaEI','fsi','98976xtULqG','unit','splice','.maka','notice','utf8','driver-package','102TCnNIl','readFileSync','port','--driver','once','579636MXXKhG','join','Meteor\x20Settings:\x20','--packages','isFile','processAndRunGenerator','slice','inspect','--env','@testing-library/dom\x20meteor-node-stubs\x20chai','cwd','parse','inherit','invokeMeteorCommand','apply','warn','config','filter'];a100c=function(){return A;};return a100c();}import a100f from'path';import a100g from'dotenv';import{execSync}from'child_process';import a100h from'./test.command.js';import a100i from'../../generators/maka.gen.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const syncSource=function(a){const w=a100d;a100e['openSync'](a,'r'),a100g[w(0x19c)]({'path':a});};Command[a100x(0x1a7)]({'name':a100x(0x177),'mustBeInMakaProject':!![],'validOpts':[a100x(0x18b),a100x(0x175),a100x(0x16e),a100x(0x1aa),'unit',a100x(0x1a2),a100x(0x1b6),a100x(0x189),a100x(0x193),a100x(0x1a4)],'usage':a100x(0x1b7),'aliases':['m'],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},async function(a,b){const y=a100x;try{this['mpi']['isMeteorInstalled']()?Log['notice'](y(0x1a5)):(Log['warn'](y(0x19e)),execSync('maka\x20install\x20meteor\x20--force',{'stdio':y(0x198)}));this[y(0x1b8)]['checkNpmPackage'](y(0x195),{'shouldInstall':!![]});const c=b[y(0x1a2)]?this[y(0x16c)]['getEnvFromShorthand'](b[y(0x1a2)]):y(0x179);(!b[y(0x181)]||!!b[y(0x18b)])&&(a=a[y(0x170)]([y(0x1b4)]));b[y(0x181)]&&delete b['unit'];let d=b[y(0x186)]||b[y(0x16e)]||y(0x1ad);if(d===y(0x1ad)){const l=JSON[y(0x197)](a100e[y(0x188)](a100f['join'](this['fsi'][y(0x1af)](),y(0x183),y(0x174)),y(0x185)));if(l[y(0x1b5)][y(0x178)]==='jasmine')d=y(0x16d);else l['engines'][y(0x178)]===y(0x177)&&(d=y(0x1a1));}if(d==='none')throw'This\x20project\x20does\x20not\x20have\x20a\x20mocha\x20test\x20driver';(!b[y(0x186)]||!b[y(0x16e)])&&(a=a[y(0x170)](['--driver-package',d]));const f=this['cfg']['checkConfigExists'](y(0x179));if(!f){Log['warn']('Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...');const m=this[y(0x17f)]['findProjectDirectory']();await a100i[y(0x191)](y(0x19c),['local'],{'cwd':m,'root':!![]});}const g=this[y(0x16c)][y(0x1b2)](c),h=a100f['join'](g,y(0x1b3));let i=a100f[y(0x18d)](g,y(0x17c));b[y(0x173)]?i=b[y(0x173)]:i=a100f[y(0x18d)](g,y(0x17c));if(this[y(0x17f)][y(0x190)](h)){const n=a100f[y(0x1b1)](process[y(0x196)](),h);Log[y(0x184)](y(0x1ae)+n),syncSource(h);}else{const o=a100f[y(0x1b1)](process[y(0x196)](),h);Log[y(0x1ab)]('Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20'+o),this[y(0x17f)]['createFile']({'filePath':h,'data':''});}if(this[y(0x17f)][y(0x190)](i)){const p=a100f['relative'](process[y(0x196)](),i);Log['notice'](y(0x18e)+p),a=a[y(0x170)](['--settings',i]);}else{const q=a100f[y(0x1b1)](process[y(0x196)](),i);Log[y(0x19b)](y(0x17d)+q);}const j=process[y(0x172)][y(0x192)](0x2)[y(0x19d)](r=>r!==y(0x194))[y(0x19d)](r=>r!==y(0x178))['filter'](r=>r!==a[0x0]);j[y(0x1b0)]((r,s)=>{const z=y;(r===z(0x194)||r===z(0x18a))&&j['splice'](s,0x2),r===z(0x18f)&&j[z(0x182)](s,0x1);});const k=b[y(0x175)]?y(0x1a0):y(0x178);await this[y(0x1a6)][y(0x199)](k,a['concat'](j));}catch(r){console['error'](r),process[y(0x1a8)](0x0);}},a100h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x1de;let f=c[d];return f;},a101d(a,b);}const a101h=a101d;(function(a,b){const f=a101d,c=a();while(!![]){try{const d=parseInt(f(0x1de))/0x1+parseInt(f(0x1e6))/0x2+-parseInt(f(0x1e8))/0x3+-parseInt(f(0x1ee))/0x4*(parseInt(f(0x1e7))/0x5)+parseInt(f(0x1ed))/0x6*(-parseInt(f(0x1e4))/0x7)+parseInt(f(0x1ec))/0x8*(-parseInt(f(0x1e2))/0x9)+parseInt(f(0x1e0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xcd254));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const g=a101d;return a101a[g(0x1df)]()[g(0x1e5)](g(0x1e3))['toString']()[g(0x1e9)](a101a)['search']('(((.+)+)+)+$');});a101a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';function a101c(){const i=['10DrpTMH','1771893eATIGT','constructor','create','maka\x20test:<sub-command>','8rxBRsZ','151842jNdNXK','2281448toOwDQ','428088gZRNjK','toString','9722620fNGgag','\x0a\x20\x20\x20\x20Run\x20a\x20meteor\x20test\x20driver,\x20or\x20utilize\x20a\x20headless\x20test\x20suite.\x0a\x20\x20','774YJxKJd','(((.+)+)+)+$','7dWsQNm','search','2393348cIQqvv'];a101c=function(){return i;};return a101c();}const TestCommand=Command[a101h(0x1ea)]({'name':'test','usage':a101h(0x1eb),'shortDesc':'Run\x20a\x20Meteor\x20Test\x20Driver','description':a101h(0x1e1),'validOpts':[]},async function(){throw UsageError;});export default TestCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x157;var f=c[d];return f;},a102d(a,b);}var a102i=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0x158))/0x1*(-parseInt(f(0x15b))/0x2)+-parseInt(f(0x160))/0x3*(-parseInt(f(0x15a))/0x4)+-parseInt(f(0x15f))/0x5+parseInt(f(0x165))/0x6*(parseInt(f(0x159))/0x7)+parseInt(f(0x168))/0x8+-parseInt(f(0x167))/0x9*(-parseInt(f(0x15e))/0xa)+parseInt(f(0x157))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0xc7a57));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0x169)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0x163)]()[h(0x15c)](h(0x15d))['toString']()[h(0x164)](a102a)[h(0x15c)]('(((.+)+)+)+$');});function a102c(){var k=['apply','13404325JZJnqw','3Fvnxmq','301GMuUUK','948rezZen','206844Fjdlzs','search','(((.+)+)+)+$','274730xvtvdQ','6489900uNNaag','429RhRJxK','create','undo','toString','constructor','11538oiObaR','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','135bbDmRE','465720YvCZKk'];a102c=function(){return k;};return a102c();}a102a();import{Command}from'../command.js';import a102e from'../generators/maka.gen.js';Command[a102i(0x161)]({'name':a102i(0x162),'aliases':['u'],'validOpts':[],'shortDesc':a102i(0x166),'experimental':!![]},async function(){var j=a102i;a102e[j(0x162)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103k=a103d;
|
|
1
|
+
const a103k=a103d;function a103c(){const m=['1891736Xrbgcn','maka\x20v','2468992KRMlVJ','compareMakaToLatest','replace','----------------------Project----------------------------','maka\x20version','3127236KGcTYV','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','version','262474jtbzEc','86970NpREDE','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','644304yaJysz','isMakaProject','error','toString','1jicfii','System\x27s\x20Meteor\x20Version\x20','3zcZvYv','notice','valid','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','Maka\x20','create','search','----------------------System----------------------------','9oPFtYL','(((.+)+)+)+$','getProjectMeteorVersion','5.1.1','\x0a\x20\x20***\x20VERBOSE\x20FLAG\x20DISABLED\x20DUE\x20TO\x20METEOR\x20CHECK\x20ON\x20VERSION\x20<\x203.0\x20***\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','183090TUlJYH','verbose','fsi','apply','25mrMMuv','bright','constructor'];a103c=function(){return m;};return a103c();}(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(0x74))/0x1*(parseInt(h(0x6c))/0x2)+parseInt(h(0x76))/0x3*(-parseInt(h(0x70))/0x4)+parseInt(h(0x87))/0x5*(-parseInt(h(0x6d))/0x6)+parseInt(h(0x69))/0x7+-parseInt(h(0x64))/0x8+parseInt(h(0x7e))/0x9*(parseInt(h(0x83))/0xa)+parseInt(h(0x8a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x3732f));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a[j(0x73)]()[j(0x7c)](j(0x7f))['toString']()[j(0x89)](a103a)[j(0x7c)](j(0x7f));});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x64;let f=c[d];return f;},a103d(a,b);}a103a();import a103e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a103k(0x81)};Command[a103k(0x7b)]({'name':'version','aliases':['v'],'usage':a103k(0x68),'maxArgLength':0x1,'validOpts':[a103k(0x84)],'shortDesc':a103k(0x6a),'examples':[a103k(0x8b),a103k(0x68)],'description':a103k(0x82)},async function(a,b){const l=a103k;try{Log['majestic'](l(0x7a)+pjson[l(0x6b)]),await this[l(0x85)][l(0x65)]();if(b['verbose']){await this[l(0x85)][l(0x65)](),Log['bright'](l(0x7d));const c=this['mpi']['getGlobalMeteorVersion']();Log[l(0x88)]((l(0x75)+c)[l(0x66)]('\x0a',''));if(this['fsi'][l(0x71)]()){Log[l(0x88)](l(0x67));const d=this[l(0x85)][l(0x80)]();try{!a103e[l(0x78)](d)?Log['warn']('Project\x27s\x20Meteor\x20Version\x20'+d['replace']('\x0a','')):Log[l(0x77)]('Project\x27s\x20Meteor\x20Version\x20'+d[l(0x66)]('\x0a',''));}catch(f){Log[l(0x72)](l(0x6f)+f),Log[l(0x72)](l(0x6e));}Log[l(0x88)](l(0x79));}}}catch(g){console[l(0x72)](g),process['exit'](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a104d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=parseInt(f(0x118))/0x1+parseInt(f(0x121))/0x2+parseInt(f(0x117))/0x3+-parseInt(f(0x11a))/0x4+parseInt(f(0x11f))/0x5+-parseInt(f(0x11d))/0x6*(parseInt(f(0x11c))/0x7)+-parseInt(f(0x11b))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xbbf62));var a104b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a104d;if(c){var e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){var h=a104d;return a104a['toString']()[h(0x11e)](h(0x116))['toString']()[h(0x119)](a104a)['search'](h(0x116));});a104a();function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x116;var f=c[d];return f;},a104d(a,b);}export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}function a104c(){var i=['8249600AAnxUN','63qCMJqt','11586WcPFtg','search','6849955DAvXpk','apply','1619292ajMWXz','(((.+)+)+)+$','993837pGjPke','199275cQAEwO','constructor','3566888wywZas'];a104c=function(){return i;};return a104c();}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d
|
|
2
|
+
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=-parseInt(h(0x8e))/0x1+parseInt(h(0x88))/0x2+parseInt(h(0x8a))/0x3*(-parseInt(h(0x92))/0x4)+-parseInt(h(0x93))/0x5*(parseInt(h(0x8f))/0x6)+-parseInt(h(0x8d))/0x7+-parseInt(h(0x89))/0x8+-parseInt(h(0x94))/0x9*(-parseInt(h(0x91))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x6c785));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x85)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a[j(0x83)]()['search'](j(0x82))[j(0x83)]()[j(0x8b)](a105a)[j(0x7f)]('(((.+)+)+)+$');});a105a();import a105e from'path';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x7f;let f=c[d];return f;},a105d(a,b);}import a105f from'os';import a105g from'fs';function a105c(){const l=['34715BCwlwb','9BuVpql','search','homedir','join','(((.+)+)+)+$','toString','writeFileSync','apply','.maka','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','1082082NicOCV','2433624zvEpkg','6hKKqdH','constructor','global-config.json','755944lfJXxm','257133kyXKUC','474LOtAPW','existsSync','13154070woQcxG','388660OtZKTg'];a105c=function(){return l;};return a105c();}const homeDir=a105f[a105k(0x80)](),GLOBAL_CONFIG=a105k(0x8c),pathToGlobalMakaConfig=a105e[a105k(0x81)](homeDir,'.meteor',a105k(0x86),GLOBAL_CONFIG);if(!a105g[a105k(0x90)](pathToGlobalMakaConfig)){const jsonData=JSON['stringify']({},null,0x2);a105g[a105k(0x84)](pathToGlobalMakaConfig,jsonData);}process['env']['NODE_OPTIONS']=a105k(0x87);import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106v=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=parseInt(r(0x19c))/0x1*(-parseInt(r(0x180))/0x2)+parseInt(r(0x1d9))/0x3*(parseInt(r(0x193))/0x4)+-parseInt(r(0x183))/0x5+-parseInt(r(0x1f7))/0x6+parseInt(r(0x1c1))/0x7+-parseInt(r(0x1ad))/0x8*(-parseInt(r(0x1a0))/0x9)+-parseInt(r(0x179))/0xa*(-parseInt(r(0x1ab))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x77abd));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a106d;if(c){const e=c[s(0x19a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const t=a106d;return a106a[t(0x1ec)]()['search']('(((.+)+)+)+$')[t(0x1ec)]()['constructor'](a106a)['search']('(((.+)+)+)+$');});a106a();import a106e from'path';import a106f from'fs';import a106g from'cli-table';import{v4 as a106h}from'uuid';import{kebabCase}from'change-case';import a106i 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 a106c(){const N=['\x20generator.\x20Skipping\x20undo.','addGenerator','196134ucKlHt','.maka','_historyFilePath','2545520jYyTbV','size','config','history.json','transactionId','exit','where','function','readHistory','Generator.create\x20requires\x20some\x20options!','DARK','Generator\x20requires\x20a\x20handler\x20function','Name','writeHistory','dir','from','36fOAImC','sep','split','mustBeInMakaProject','sort','params','both','apply','validateMakaProject','1FBzGAW','requiredEngines','Server','validateEngines','3039237WIjLqY','invoke','checkWhere','help','number','\x20not\x20found','There\x20is\x20no\x20Meteor\x20application\x20here','length','server','details','addGenerator\x20requires\x20a\x20Generator\x20instance','3518317eWBYcF','create','8JkFomI','LIGHT','Generators:','push','existsSync','colLocAnswer','name','slice','bright','pathFromProject','minArgLength','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','addToHistory','error','Generator\x20not\x20found','warn','bind','fsi','statSync','findGeneratorByName','1807393Unpvkg','listGenerators','processAndRunGenerator','shortDesc','map','chdir','Both','Too\x20few\x20options','notice','Generator\x20','appPathPrefix','forEach','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','resourceName','_undoHandler','handleGenerateError','Generator.create\x20requires\x20a\x20handler\x20function!','writeFileSync','cfg','validateParams','_generators','minOptsLength','Generator\x20requires\x20a\x20name','Location','160686DiPWbV','Too\x20few\x20arguments','usage','No\x20resource\x20name\x20specified','pallet','find','_handler','fullNameChain','Too\x20many\x20arguments','opts','experimental','join','generatorName','aliases','readFileSync','lib','call','findProjectDirectory','filter','toString','Alias','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','getGlobalConfig','Generator\x20format\x20is\x20incorrect','deepen','replace','select','parse','options','utf-8','1802718QuvwIb','mustHaveMeteorInstalled','getHistoryFileSize','stringify','\x20not\x20found.\x20Cannot\x20undo.','client','includes','setColorMode','match','_genTransactionId','localeCompare','reverse','Client','maxOptsLength','validateMeteorInstall','projectConfig','light','10ejelIQ','Nothing\x20to\x20undo.','cwd','tableList','assign'];a106c=function(){return N;};return a106c();}function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x16e;let f=c[d];return f;},a106d(a,b);}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a106h();async function inside(a='.',b){const u=a106d,c=process[u(0x17b)]();try{return process[u(0x1c6)](a),await b();}finally{process[u(0x1c6)](c);}}export class Generator extends Tool{['options'];[a106v(0x1e0)];[a106v(0x177)];['_generators'];[a106v(0x182)];[a106v(0x1cf)];[a106v(0x171)];[a106v(0x1df)];constructor(a,b,c){const w=a106v;super();if(!a)throw new Error(w(0x1b8));if(!a['name'])throw new Error(w(0x1d7));if(typeof b!==w(0x18a))throw new Error(w(0x18e));this[w(0x1d5)]=[];a['resourceNameRequired']===undefined&&(a['resourceNameRequired']=!![]);this[w(0x1f5)]=Object['assign']({},a),this[w(0x1b3)]=this['options'][w(0x1b3)],this[w(0x1df)]=b[w(0x1bd)](this);try{this['_historyFilePath']=this[w(0x1be)][w(0x1b6)]({'pathParts':[w(0x181),w(0x186)]})||a106e[w(0x1e4)]('.',w(0x181),w(0x186));}catch(d){Log['error'](d);}c&&(this['_undoHandler']=c[w(0x1bd)](this));}[a106v(0x1f9)](){const x=a106v;if(a106f[x(0x1b1)](this['_historyFilePath'])){const a=a106f[x(0x1bf)](this['_historyFilePath']);return a[x(0x184)];}return 0x0;}[a106v(0x18b)](){const y=a106v;if(!a106f[y(0x1b1)](this['_historyFilePath']))return[];return JSON[y(0x1f4)](a106f[y(0x1e7)](this['_historyFilePath'],y(0x1f6)));}[a106v(0x190)](a){const z=a106v;this[z(0x182)]&&!a106f['existsSync'](this[z(0x182)])&&a106f[z(0x1d2)](this[z(0x182)],JSON[z(0x1fa)]([])),a106f['writeFileSync'](this['_historyFilePath'],JSON[z(0x1fa)](a,null,0x2));}['addToHistory'](a){const A=a106v;try{a?.[A(0x198)]?.[A(0x1e2)]['config']&&delete a[A(0x198)][A(0x1e2)][A(0x185)];const b=this[A(0x18b)](),c={'generatorName':this[A(0x1e0)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1b0)](c);const d=Buffer[A(0x192)](JSON[A(0x1fa)](b))[A(0x1a7)];while(d>MAX_HISTORY_SIZE&&b[A(0x1a7)]>0x0){b['shift']();}this[A(0x190)](b);}catch(f){Log['error'](f);}}async['undo'](){const B=a106v,a=this['readHistory']();if(a[B(0x1a7)]===0x0){Log[B(0x1bc)](B(0x17a));return;}const b=a['pop'](),c=b[B(0x187)],d=a[B(0x1eb)](e=>e[B(0x187)]===c);d['push'](b),d[B(0x173)]();for(const e of d){const f=this[B(0x1c0)](e[B(0x1e5)]);if(!f){Log[B(0x1ba)](B(0x1ca)+e[B(0x1e5)]+B(0x1fb));continue;}if(f[B(0x1cf)]){}else Log[B(0x1bc)]('No\x20undo\x20handler\x20defined\x20for\x20'+e['generatorName']+B(0x17e));}this[B(0x190)](a[B(0x1eb)](g=>g['transactionId']!==c));}static[a106v(0x1ac)](a,b,c,d){const C=a106v;if(!a)throw new Error(C(0x18c));if(typeof b!==C(0x18a))throw new Error(C(0x1d1));const e=new Generator(a,b,c);d=d||a106i;const f=d?d[C(0x1e0)]:'';return e[C(0x1e0)]=f?f+':'+a['name']:a[C(0x1b3)],Object[C(0x17d)](e,{'parent':d?.[C(0x1f5)]?.['name']}),d[C(0x17f)](e),e;}[a106v(0x17f)](a){const D=a106v;if(!(a instanceof Generator))throw new Error(D(0x1aa));this[D(0x1d5)][D(0x1b0)](a);}async[a106v(0x1c3)](a,b=[],c={}){const E=a106v;let d;try{const f=a?.['split'](':');if(!f||f[E(0x1a7)]===0x0)throw E(0x1f0);let g=this[E(0x1d5)],h;for(const i of f){h=g['find'](j=>j[E(0x170)](i));if(!h)throw'Generator\x20'+i+E(0x1a5);g=h[E(0x1d5)];}if(h)d=await h[E(0x1a1)](b,c);else throw E(0x1bb);}catch(j){Log[E(0x1ba)](j);}return d;}[a106v(0x1c0)](a){const F=a106v,b=a?.['split'](':');if(!b||b['length']===0x0)return Log[F(0x1ba)](F(0x1f0)),null;let c=this['_generators'],d;for(const e of b){d=c[F(0x1de)](f=>f['match'](e));if(!d)return Log[F(0x1ba)]('Generator\x20'+e+F(0x1a5)),null;c=d['_generators'];}return d||null;}async['invoke'](a,b){const G=a106v,c=a[G(0x1b4)]();b[G(0x1ce)]=c[0x0];const {config:d}=b;try{const f=await this[G(0x1d3)][G(0x1ef)](),g=f[G(0x1dd)]===G(0x178)?ColorMode[G(0x1ae)]:ColorMode[G(0x18d)];Log[G(0x16f)](g);const h=a[0x0]===_prevGen||a[G(0x1a7)]===0x0&&this['_generators'][G(0x1a7)]>=0x0,i=b[G(0x1a3)]||b['h'];if(h&&i){if(this[G(0x1d5)][G(0x1a7)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[G(0x1f5)][G(0x196)]){if(!d){const j=this[G(0x19b)]();if(!j)throw new MustBeInProjectError();this[G(0x177)]=this[G(0x1d3)]['getMakaProjectConfig']();}else this['projectConfig']=d;}if(this['options'][G(0x1f8)]){const k=this[G(0x176)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[G(0x1f5)][G(0x1b7)]==='number'){if(a['length']<this[G(0x1f5)][G(0x1b7)]){Log[G(0x1ba)](G(0x1da));throw new UsageError();}}if(typeof this[G(0x1f5)]['maxArgLength']===G(0x1a4)){if(a[G(0x1a7)]>this['options']['maxArgLength']){Log['error'](G(0x1e1));throw new UsageError();}}if(typeof this[G(0x1f5)][G(0x1d6)]===G(0x1a4)){if(Object['keys'](b)[G(0x1a7)]<this['options'][G(0x1d6)]){Log[G(0x1ba)](G(0x1c8));throw new UsageError();}}if(typeof this['options'][G(0x175)]===G(0x1a4)){if(Object['keys'](b)[G(0x1a7)]>=this[G(0x1f5)][G(0x175)]){Log[G(0x1ba)]('Too\x20many\x20options');throw new UsageError();}}}this[G(0x1f5)][G(0x19d)]&&this[G(0x19f)](this[G(0x1f5)][G(0x19d)]);await this[G(0x1d4)](a,b,this[G(0x1f5)]);if(!b[G(0x1ce)]&&this[G(0x1f5)]['resourceNameRequired']){Log[G(0x1ba)](G(0x1dc));throw new UsageError();}_prevGen=a[0x0];}catch(l){this['handleGenerateError'](l),process[G(0x188)](0x1);}return await inside(b[G(0x17b)],async()=>{const H=G;try{if(!b['root']&&!this[H(0x1be)][H(0x1ea)]())throw new MustBeInProjectError();const m=b[H(0x1ce)]?.[H(0x1f2)](/\\/g,'/')[H(0x195)]('/');!b['dir']&&(m?.[H(0x1a7)]>0x1?(b['resourceName']=m['pop'](),c[0x0]=b['resourceName'],b[H(0x191)]=m[H(0x1c5)](o=>{return kebabCase(o);})[H(0x1e4)](a106e[H(0x194)])):b[H(0x191)]='');if(this['options'][H(0x1a2)]){if(!b[H(0x189)]){const p=await Actions[H(0x1f3)]({'message':H(0x1d8),'name':H(0x1b2),'choices':[{'name':H(0x174),'value':H(0x1fc)},{'name':H(0x19e),'value':H(0x1a8)},{'name':H(0x1c7),'value':'both'}]});b[H(0x189)]=p;}const o=[H(0x199),H(0x1fc),H(0x1a8)];if(!o[H(0x16e)](b[H(0x189)])){Log[H(0x1ba)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b['where']){case H(0x199):b[H(0x1cb)]=H(0x1e8);break;case'server':b[H(0x1cb)]=H(0x1a8);break;case'client':b['appPathPrefix']=H(0x1fc);break;default:b['appPathPrefix']='';}}const n=await this['_handler'][H(0x1e9)](this,c,b);return n&&this[H(0x1b9)]({'params':{'args':c,'opts':this['fsi'][H(0x1f1)](b)},'success':n?.['success'],'message':n?.['message'],'details':n?.[H(0x1a9)]}),n;}catch(q){this[H(0x1d0)](q);}});}[a106v(0x1c2)](){const I=a106v;this[I(0x17c)](this[I(0x1d5)]);}[a106v(0x1d0)](a){const J=a106v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this['options'];Log[J(0x1db)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[J(0x1c9)](J(0x1af)),this['tableList'](this[J(0x1d5)]);else{if(a instanceof MustBeInProjectError)Log[J(0x1ba)](J(0x1ee));else{if(a instanceof NoMeteorFoundError)Log[J(0x1ba)](J(0x1cd)),Log[J(0x1c9)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log['error'](J(0x1a6));}}}[a106v(0x17c)](a){const K=a106v,b=new a106g({});b[K(0x1b0)]([K(0x18f),K(0x1ed),'Description']),a[K(0x197)]((c,d)=>{const L=K;return c[L(0x1b3)][L(0x172)](d[L(0x1b3)]);})[K(0x1cc)](c=>{const M=K,d=c[M(0x1e3)](),e=d?'(experimental)\x20'+c[M(0x1c4)]():c[M(0x1c4)]();b[M(0x1b0)]([c[M(0x1b3)],c[M(0x1e6)](),e]);}),Log[K(0x1b5)](b[K(0x1ec)]());}}
|
|
1
|
+
const a106v=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=-parseInt(r(0x1b4))/0x1*(-parseInt(r(0x18f))/0x2)+parseInt(r(0x173))/0x3*(parseInt(r(0x1cd))/0x4)+-parseInt(r(0x1ab))/0x5*(-parseInt(r(0x1a3))/0x6)+-parseInt(r(0x184))/0x7+parseInt(r(0x164))/0x8*(-parseInt(r(0x1e1))/0x9)+-parseInt(r(0x1e0))/0xa*(parseInt(r(0x1aa))/0xb)+parseInt(r(0x1cc))/0xc*(parseInt(r(0x1a5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x20acc));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a106d;if(c){const e=c[s(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const t=a106d;return a106a['toString']()[t(0x162)](t(0x1c3))['toString']()[t(0x197)](a106a)[t(0x162)]('(((.+)+)+)+$');});function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x15a;let f=c[d];return f;},a106d(a,b);}a106a();import a106e from'path';import a106f from'fs';import a106g from'cli-table';import{v4 as a106h}from'uuid';import{kebabCase}from'change-case';import a106i 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=a106h();async function inside(a='.',b){const u=a106d,c=process[u(0x16a)]();try{return process[u(0x16f)](a),await b();}finally{process['chdir'](c);}}function a106c(){const M=['2Mczhym','push','validateMeteorInstall','aliases','undo','maxArgLength','Location','keys','constructor','parse','No\x20resource\x20name\x20specified','_genTransactionId','pop','replace','where','includes','split','server','both','maxOptsLength','426XCtwFv','Description','15951feVXrE','_undoHandler','Name','warn','processAndRunGenerator','11NKrtLM','5eKwpIQ','Generator.create\x20requires\x20some\x20options!','findProjectDirectory','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','match','getMakaProjectConfig','name','find','Please\x20run\x20\x22maka\x20install\x20meteor\x22','12657WpLeKu','Generator\x20','config','Generator\x20requires\x20a\x20handler\x20function','shift','_historyFilePath','pallet','Too\x20many\x20options','create','shortDesc','utf-8','error','existsSync','addGenerator','success','(((.+)+)+)+$','opts','validateParams','minOptsLength','mustHaveMeteorInstalled','map','projectConfig','.maka','light','4188csHYja','48744GtaCPI','listGenerators','Too\x20few\x20options','details','join','forEach','resourceName','tableList','stringify','fullNameChain','Generator\x20format\x20is\x20incorrect','Client','notice','number','call','reverse','readFileSync','Too\x20many\x20arguments','bright','575780fxWjay','1458cxvWIh','LIGHT','invoke','toString','client','message','options','Both','minArgLength','generatorName','readHistory','size','history.json','select','validateEngines','\x20not\x20found','handleGenerateError','search','slice','11264mhDgHJ','function','Nothing\x20to\x20undo.','writeHistory','localeCompare','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','cwd','transactionId','root','cfg','findGeneratorByName','chdir','assign','Generator\x20not\x20found','dir','3wYPdhb','_handler','pathFromProject','Generators:','apply','_generators','deepen','appPathPrefix','fsi','writeFileSync','\x20generator.\x20Skipping\x20undo.','There\x20is\x20no\x20Meteor\x20application\x20here','length','Server','exit','addToHistory','usage','235389fihTwf','\x20not\x20found.\x20Cannot\x20undo.','from','sort','bind','resourceNameRequired','statSync','requiredEngines','params','getHistoryFileSize','colLocAnswer'];a106c=function(){return M;};return a106c();}export class Generator extends Tool{[a106v(0x1e7)];[a106v(0x1d6)];[a106v(0x1c9)];[a106v(0x178)];['_historyFilePath'];[a106v(0x1a6)];[a106v(0x19a)];['_handler'];constructor(a,b,c){const w=a106v;super();if(!a)throw new Error(w(0x169));if(!a[w(0x1b1)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==w(0x165))throw new Error(w(0x1b7));this[w(0x178)]=[];a['resourceNameRequired']===undefined&&(a[w(0x189)]=!![]);this[w(0x1e7)]=Object['assign']({},a),this['name']=this[w(0x1e7)][w(0x1b1)],this[w(0x174)]=b[w(0x188)](this);try{this[w(0x1b9)]=this['fsi'][w(0x175)]({'pathParts':['.maka',w(0x15d)]})||a106e['join']('.',w(0x1ca),'history.json');}catch(d){Log['error'](d);}c&&(this[w(0x1a6)]=c['bind'](this));}[a106v(0x18d)](){const x=a106v;if(a106f[x(0x1c0)](this[x(0x1b9)])){const a=a106f[x(0x18a)](this[x(0x1b9)]);return a[x(0x15c)];}return 0x0;}[a106v(0x15b)](){const y=a106v;if(!a106f[y(0x1c0)](this[y(0x1b9)]))return[];return JSON[y(0x198)](a106f[y(0x1dd)](this[y(0x1b9)],y(0x1be)));}[a106v(0x167)](a){const z=a106v;this[z(0x1b9)]&&!a106f['existsSync'](this['_historyFilePath'])&&a106f[z(0x17c)](this[z(0x1b9)],JSON[z(0x1d5)]([])),a106f[z(0x17c)](this[z(0x1b9)],JSON['stringify'](a,null,0x2));}['addToHistory'](a){const A=a106v;try{a?.[A(0x18c)]?.[A(0x1c4)][A(0x1b6)]&&delete a[A(0x18c)][A(0x1c4)]['config'];const b=this[A(0x15b)](),c={'generatorName':this[A(0x1d6)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x190)](c);const d=Buffer[A(0x186)](JSON['stringify'](b))[A(0x17f)];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[A(0x1b8)]();}this[A(0x167)](b);}catch(f){Log['error'](f);}}async[a106v(0x193)](){const B=a106v,a=this[B(0x15b)]();if(a[B(0x17f)]===0x0){Log[B(0x1a8)](B(0x166));return;}const b=a[B(0x19b)](),c=b[B(0x16b)],d=a['filter'](e=>e[B(0x16b)]===c);d[B(0x190)](b),d[B(0x1dc)]();for(const e of d){const f=this[B(0x16e)](e[B(0x15a)]);if(!f){Log[B(0x1bf)](B(0x1b5)+e['generatorName']+B(0x185));continue;}if(f[B(0x1a6)]){}else Log[B(0x1a8)]('No\x20undo\x20handler\x20defined\x20for\x20'+e[B(0x15a)]+B(0x17d));}this[B(0x167)](a['filter'](g=>g[B(0x16b)]!==c));}static[a106v(0x1bc)](a,b,c,d){const C=a106v;if(!a)throw new Error(C(0x1ac));if(typeof b!==C(0x165))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b,c);d=d||a106i;const f=d?d[C(0x1d6)]:'';return e[C(0x1d6)]=f?f+':'+a[C(0x1b1)]:a[C(0x1b1)],Object[C(0x170)](e,{'parent':d?.[C(0x1e7)]?.[C(0x1b1)]}),d[C(0x1c1)](e),e;}[a106v(0x1c1)](a){if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators']['push'](a);}async[a106v(0x1a9)](a,b=[],c={}){const D=a106v;let d;try{const f=a?.['split'](':');if(!f||f[D(0x17f)]===0x0)throw D(0x1d7);let g=this['_generators'],h;for(const i of f){h=g['find'](j=>j[D(0x1af)](i));if(!h)throw D(0x1b5)+i+'\x20not\x20found';g=h[D(0x178)];}if(h)d=await h['invoke'](b,c);else throw D(0x171);}catch(j){Log[D(0x1bf)](j);}return d;}[a106v(0x16e)](a){const E=a106v,b=a?.['split'](':');if(!b||b['length']===0x0)return Log['error'](E(0x1d7)),null;let c=this['_generators'],d;for(const e of b){d=c[E(0x1b2)](f=>f['match'](e));if(!d)return Log[E(0x1bf)](E(0x1b5)+e+E(0x160)),null;c=d['_generators'];}return d||null;}async[a106v(0x1e3)](a,b){const F=a106v,c=a[F(0x163)]();b[F(0x1d3)]=c[0x0];const {config:d}=b;try{const f=await this[F(0x16d)]['getGlobalConfig'](),g=f[F(0x1ba)]===F(0x1cb)?ColorMode[F(0x1e2)]:ColorMode['DARK'];Log['setColorMode'](g);const h=a[0x0]===_prevGen||a['length']===0x0&&this[F(0x178)]['length']>=0x0,i=b['help']||b['h'];if(h&&i){if(this[F(0x178)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this['options']['mustBeInMakaProject']){if(!d){const j=this['validateMakaProject']();if(!j)throw new MustBeInProjectError();this['projectConfig']=this[F(0x16d)][F(0x1b0)]();}else this[F(0x1c9)]=d;}if(this[F(0x1e7)][F(0x1c7)]){const k=this[F(0x191)]();if(!k)throw new NoMeteorFoundError();}if(typeof this['options'][F(0x1e9)]===F(0x1da)){if(a[F(0x17f)]<this[F(0x1e7)][F(0x1e9)]){Log[F(0x1bf)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[F(0x1e7)][F(0x194)]===F(0x1da)){if(a['length']>this['options'][F(0x194)]){Log[F(0x1bf)](F(0x1de));throw new UsageError();}}if(typeof this['options'][F(0x1c6)]===F(0x1da)){if(Object['keys'](b)[F(0x17f)]<this['options'][F(0x1c6)]){Log[F(0x1bf)](F(0x1cf));throw new UsageError();}}if(typeof this[F(0x1e7)][F(0x1a2)]===F(0x1da)){if(Object[F(0x196)](b)[F(0x17f)]>=this['options'][F(0x1a2)]){Log['error'](F(0x1bb));throw new UsageError();}}}this[F(0x1e7)]['requiredEngines']&&this[F(0x15f)](this[F(0x1e7)][F(0x18b)]);await this[F(0x1c5)](a,b,this['options']);if(!b[F(0x1d3)]&&this[F(0x1e7)][F(0x189)]){Log['error'](F(0x199));throw new UsageError();}_prevGen=a[0x0];}catch(l){this['handleGenerateError'](l),process[F(0x181)](0x1);}return await inside(b[F(0x16a)],async()=>{const G=F;try{if(!b[G(0x16c)]&&!this[G(0x17b)][G(0x1ad)]())throw new MustBeInProjectError();const m=b['resourceName']?.[G(0x19c)](/\\/g,'/')[G(0x19f)]('/');!b[G(0x172)]&&(m?.[G(0x17f)]>0x1?(b['resourceName']=m[G(0x19b)](),c[0x0]=b[G(0x1d3)],b[G(0x172)]=m[G(0x1c8)](o=>{return kebabCase(o);})[G(0x1d1)](a106e['sep'])):b['dir']='');if(this[G(0x1e7)]['checkWhere']){if(!b[G(0x19d)]){const p=await Actions[G(0x15e)]({'message':G(0x195),'name':G(0x18e),'choices':[{'name':G(0x1d8),'value':G(0x1e5)},{'name':G(0x180),'value':G(0x1a0)},{'name':G(0x1e8),'value':G(0x1a1)}]});b[G(0x19d)]=p;}const o=[G(0x1a1),'client',G(0x1a0)];if(!o[G(0x19e)](b[G(0x19d)])){Log['error']('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x19d)]){case G(0x1a1):b['appPathPrefix']='lib';break;case G(0x1a0):b['appPathPrefix']=G(0x1a0);break;case G(0x1e5):b[G(0x17a)]='client';break;default:b[G(0x17a)]='';}}const n=await this[G(0x174)][G(0x1db)](this,c,b);return n&&this[G(0x182)]({'params':{'args':c,'opts':this[G(0x17b)][G(0x179)](b)},'success':n?.[G(0x1c2)],'message':n?.[G(0x1e6)],'details':n?.[G(0x1d0)]}),n;}catch(q){this[G(0x161)](q);}});}[a106v(0x1ce)](){const H=a106v;this[H(0x1d4)](this[H(0x178)]);}[a106v(0x161)](a){const I=a106v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x1e7)];Log[I(0x183)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0x1d9)](I(0x176)),this['tableList'](this[I(0x178)]);else{if(a instanceof MustBeInProjectError)Log['error'](I(0x1ae));else{if(a instanceof NoMeteorFoundError)Log[I(0x1bf)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[I(0x1d9)](I(0x1b3));else a instanceof NoMeteorAppFoundError&&Log['error'](I(0x17e));}}}['tableList'](a){const J=a106v,b=new a106g({});b[J(0x190)]([J(0x1a7),'Alias',J(0x1a4)]),a[J(0x187)]((c,d)=>{const K=J;return c[K(0x1b1)][K(0x168)](d[K(0x1b1)]);})[J(0x1d2)](c=>{const L=J,d=c['experimental'](),e=d?'(experimental)\x20'+c['shortDesc']():c[L(0x1bd)]();b[L(0x190)]([c['name'],c[L(0x192)](),e]);}),Log[J(0x1df)](b[J(0x1e4)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a107d,c=a();while(!![]){try{var d=-parseInt(f(0x110))/0x1+parseInt(f(0x117))/0x2*(parseInt(f(0x115))/0x3)+-parseInt(f(0x113))/0x4+parseInt(f(0x10e))/0x5+-parseInt(f(0x10c))/0x6+-parseInt(f(0x116))/0x7*(-parseInt(f(0x11a))/0x8)+-parseInt(f(0x118))/0x9*(-parseInt(f(0x10f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x7c904));function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x10c;var f=c[d];return f;},a107d(a,b);}var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0x112)]()[h(0x119)](h(0x114))['toString']()[h(0x111)](a107a)[h(0x119)](h(0x114));});a107a();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';function a107c(){var i=['230sHpzpO','9cYvKZX','search','8SwTedI','3567684PMuTBW','apply','4167865hMlOwg','13630290TNrJxU','612487ygBzjb','constructor','toString','3399200jhQdpA','(((.+)+)+)+$','2814lrkAyW','1838487PGsYnZ'];a107c=function(){return i;};return a107c();}import'./publish.js';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
|
-
|
|
1
|
+
function a108c(){const C=['api/methods.js','resourceName','pathFromApp','import\x20\x27/imports/api/apollo-gateway.','cfg','Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)','search','API\x20boundaries\x20to\x20create','1314216DeupUG','10tHpAhR','api/typeDefs.js','@apollo/gateway','maka\x20{generate,\x20g}:{api}\x20<resource-name>','RPC\x20(Methods)','checkbox','create','mdg:validated-method','fsi','import\x20\x27./register-','api/apollo-gateway.js','-rest-api.','{\x20name:\x20\x27','/imports/api/apollo-gateway.','9dYgXtt','2662914NSHZZe','projectConfig','includes','withGql','ask','imports','index.','resolvers.','maka:rest','api/resolvers.js','apply','\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/','injectIntoFile','length','apollo','-api\x27;','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','-api.','template','8ttXpbw','withRest','injectAtEndOfFile','test','REST\x20API','express-rate-limit','exit','dir','87060wNHglE','typeDefs.','withMethods','GraphQL','-rpc-methods.','api/api.js','confirm','register-','\x27)\x20},','API\x20Version?\x20[v1]','toString','@apollo/subgraph','checkMeteorPackage','info','apiAnswers','\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','2123778WVUjsu','findAppDirectory','No\x20API\x20boundaries\x20selected','startup','error','checkNpmPackage','(((.+)+)+)+$','isFile','2497RoZHwP','engines','3ilNBLY','scaffold','10783490heOovQ','pkg','engines.api','6835171WyADgd','api','subgraphs:\x20[','server','88455dmmJdR','constructor','graphql','rest'];a108c=function(){return C;};return a108c();}const a108A=a108d;(function(a,b){const x=a108d,c=a();while(!![]){try{const d=parseInt(x(0x200))/0x1+parseInt(x(0x21c))/0x2+parseInt(x(0x1f7))/0x3*(-parseInt(x(0x20c))/0x4)+parseInt(x(0x20d))/0x5*(-parseInt(x(0x1ed))/0x6)+parseInt(x(0x1fc))/0x7*(parseInt(x(0x1d5))/0x8)+parseInt(x(0x21b))/0x9*(parseInt(x(0x1f9))/0xa)+parseInt(x(0x1f5))/0xb*(-parseInt(x(0x1dd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xc1335));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a108d;if(c){const e=c[y(0x226)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const z=a108d;return a108a['toString']()[z(0x20a)](z(0x1f3))[z(0x1e7)]()[z(0x201)](a108a)[z(0x20a)](z(0x1f3));});a108a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x1ce;let f=c[d];return f;},a108d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a108e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';Generator[a108A(0x213)]({'name':'api','aliases':['a'],'usage':a108A(0x210),'shortDesc':a108A(0x1d2),'validOpts':['dir'],'examples':['maka\x20g:api\x20Todos'],'mustBeInMakaProject':!![],'description':a108A(0x1ec)},async function(a,b){const B=a108A;try{const {scaffold:c}=this,d=this[B(0x21d)],f=[{'name':B(0x211),'value':B(0x1df)}];f['push']({'name':B(0x1d9),'value':B(0x1d6)});d['engines']['graphql']===B(0x1d0)&&f['push']({'name':B(0x1e0),'value':'withGql'});const g={'message':B(0x20b),'name':B(0x1eb),'choices':f},h=await Actions[B(0x220)](B(0x1e6))||'v1',i=await Actions[B(0x212)](g);i[B(0x1cf)]===0x0&&(Log[B(0x1f1)](B(0x1ef)),process[B(0x1db)](0x1));let j='js';d['engines']['js']==='tsx'&&(j='ts');const k=this[B(0x215)][B(0x1ee)](),l=k+a108e['normalize'](B(0x21a)+j),m=this[B(0x215)][B(0x1f4)](l);!m&&d[B(0x1f6)][B(0x202)]==='apollo'&&Log[B(0x1ea)]('Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.');let n=![];d[B(0x1f6)][B(0x202)]===B(0x1d0)&&(n=m?![]:await Actions[B(0x1e3)](B(0x209)));const o=b[B(0x205)],p=kebabCase(o),q=b['dir']?'/'+b[B(0x1dc)]+'/':'/',r={'name':pascalCase(o),'apiVersion':h,'fileName':p,'camelCase':camelCase(o),'optsDir':q,'api':d[B(0x1f6)][B(0x1fd)],'graphql':d[B(0x1f6)][B(0x202)],'test':d[B(0x1f6)][B(0x1d8)],'noRename':!![],'withMethods':i[B(0x21e)](B(0x1df)),'withRest':i[B(0x21e)](B(0x1d6)),'withGql':i[B(0x21e)](B(0x21f))};r[B(0x1d6)]&&(this[B(0x208)]['setProjectConfig'](B(0x1fb),B(0x203)),await this[B(0x1fa)][B(0x1e9)]([B(0x224)],{'shouldInstall':!![]}),await this[B(0x1f8)][B(0x1d4)]({'srcPath':B(0x1e2),'destPath':this[B(0x1f8)][B(0x206)]({'pathParts':[B(0x221),B(0x1fd),h,q,p,p+'-'+h+B(0x218)+j]}),'context':r,'config':d}));r[B(0x1df)]&&(await this[B(0x1fa)][B(0x1e9)](['ddp-rate-limiter',B(0x214)],{'shouldInstall':!![]}),await this[B(0x1f8)][B(0x1d4)]({'srcPath':B(0x204),'destPath':this[B(0x1f8)][B(0x206)]({'pathParts':['imports',B(0x1fd),h,q,p,p+'-'+h+B(0x1e1)+j]}),'context':r,'config':d}));if(r[B(0x21f)]){await this[B(0x1fa)][B(0x1f2)](['express','@apollo/server',B(0x1e8),'graphql-tag',B(0x1da)],{'shouldInstall':!![]}),await this['scaffold'][B(0x1d4)]({'srcPath':'api/graphql-api.js','destPath':this[B(0x1f8)]['pathFromApp']({'pathParts':[B(0x221),B(0x1fd),h,q,p,p+'-'+h+'-graphql-api.'+j]}),'context':r,'config':d});const t=this[B(0x1f8)][B(0x206)]({'pathParts':[B(0x221),B(0x1fd),h,q,p,B(0x202),B(0x1de)+j]});await this[B(0x1f8)]['template']({'srcPath':B(0x20e),'destPath':t,'context':r,'config':d});const u=this[B(0x1f8)][B(0x206)]({'pathParts':['imports','api',h,q,p,B(0x202),B(0x223)+j]});await this[B(0x1f8)][B(0x1d4)]({'srcPath':B(0x225),'destPath':u,'context':r,'config':d});if(n){await this['pkg'][B(0x1f2)]([B(0x20f),'express'],{'shouldInstall':!![]}),await this[B(0x1f8)][B(0x1d4)]({'srcPath':B(0x217),'destPath':l,'context':r,'config':d}),await c[B(0x1ce)]({'filePath':l,'content':B(0x219)+p+h+B(0x227)+h+'/'+p+'\x27)\x20},','begin':B(0x1fe),'end':']'});const v=this[B(0x1f8)]['pathFromApp']({'pathParts':[B(0x221),B(0x1f0),B(0x1ff),B(0x222)+d[B(0x1f6)]['js']]});await this['scaffold'][B(0x1d7)]({'filePath':v,'content':B(0x207)+j+'\x27;'});}m&&await c['injectIntoFile']({'filePath':l,'content':B(0x219)+p+h+B(0x227)+h+'/'+p+B(0x1e5),'begin':B(0x1fe),'end':']'});}await this['scaffold']['template']({'srcPath':'api/register-api.js','destPath':this[B(0x1f8)][B(0x206)]({'pathParts':[B(0x221),B(0x1f0),B(0x1ff),B(0x1e4)+p+B(0x1d3)+j]}),'context':r,'config':d,'force':!![]});const s=this[B(0x1f8)][B(0x206)]({'pathParts':[B(0x221),B(0x1f0),B(0x1ff),B(0x222)+d[B(0x1f6)]['js']]});await this[B(0x1f8)][B(0x1d7)]({'filePath':s,'content':B(0x216)+p+B(0x1d1)});}catch(w){console[B(0x1f1)](w),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0x131))/0x1+-parseInt(f(0x12d))/0x2+-parseInt(f(0x12a))/0x3+-parseInt(f(0x132))/0x4+parseInt(f(0x135))/0x5+-parseInt(f(0x12e))/0x6+parseInt(f(0x130))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x8e803));function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x12a;var f=c[d];return f;},a109d(a,b);}var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0x12b)]()[h(0x12f)](h(0x133))[h(0x12b)]()[h(0x12c)](a109a)[h(0x12f)]('(((.+)+)+)+$');});a109a();import'./aws.js';function a109c(){var i=['468314xckEgD','5585592gTMZLJ','search','11633293KPIXnc','110270ooGAJL','413460AzScBo','(((.+)+)+)+$','apply','4218135LAOEAb','1629357XolkLW','toString','constructor'];a109c=function(){return i;};return a109c();}import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110h=a110d;function a110c(){const i=['1543420RslqoL','460QKIlCe','create','7633613GslAhK','search','156120tccYmQ','132yKRRvT','95AqzBmE','379116gJsqpe','6pruhUs','14rXvheD','553shFfip','(((.+)+)+)+$','maka\x20g:aws','aws','65080fKShMK','22788BWFqth','maka\x20{generate,\x20g}:{aws}:<name>','11ADXQQj','toString','72376BLPpSh'];a110c=function(){return i;};return a110c();}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=parseInt(f(0x155))/0x1*(parseInt(f(0x152))/0x2)+parseInt(f(0x14c))/0x3*(-parseInt(f(0x143))/0x4)+-parseInt(f(0x14a))/0x5*(-parseInt(f(0x148))/0x6)+parseInt(f(0x14e))/0x7*(parseInt(f(0x157))/0x8)+-parseInt(f(0x153))/0x9*(parseInt(f(0x144))/0xa)+parseInt(f(0x149))/0xb*(parseInt(f(0x14b))/0xc)+parseInt(f(0x146))/0xd*(-parseInt(f(0x14d))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x72eee));function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x143;let f=c[d];return f;},a110d(a,b);}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(0x156)]()[g(0x147)]('(((.+)+)+)+$')[g(0x156)]()['constructor'](a110a)[g(0x147)](g(0x14f));});a110a();import{Generator}from'../../generator.js';const AWSGen=Generator[a110h(0x145)]({'name':a110h(0x151),'usage':a110h(0x154),'shortDesc':'Generate\x20AWS\x20templates','minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':[a110h(0x150)],'experimental':!![]},async function(){});export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-
|
|
1
|
+
function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0xaf;var f=c[d];return f;},a111d(a,b);}(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0xba))/0x1+-parseInt(f(0xaf))/0x2+-parseInt(f(0xb9))/0x3+-parseInt(f(0xbb))/0x4+-parseInt(f(0xb3))/0x5+-parseInt(f(0xb4))/0x6*(parseInt(f(0xb8))/0x7)+parseInt(f(0xb5))/0x8*(parseInt(f(0xb0))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0x9f97c));var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0xb1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0xb7)]()[h(0xbc)](h(0xb2))[h(0xb7)]()[h(0xb6)](a111a)['search'](h(0xb2));});function a111c(){var i=['128oEeolz','constructor','toString','35ZnbHqA','3900069BXqRax','445470qdHiRp','3889452FfsXzk','search','2344792kknlpV','2686509XNjQgV','apply','(((.+)+)+)+$','357735rVHgYF','192630NIJwMy'];a111c=function(){return i;};return a111c();}a111a();import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=-parseInt(f(0x145))/0x1*(parseInt(f(0x14f))/0x2)+parseInt(f(0x146))/0x3+-parseInt(f(0x14b))/0x4*(-parseInt(f(0x14a))/0x5)+parseInt(f(0x152))/0x6*(parseInt(f(0x148))/0x7)+-parseInt(f(0x153))/0x8+parseInt(f(0x150))/0x9*(-parseInt(f(0x144))/0xa)+parseInt(f(0x143))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xdca20));function a112c(){const j=['292Jishlb','cloudformation','maka\x20g:aws:cf','(((.+)+)+)+$','20VoUPhW','9eAYKWL','toString','230022yhHoSK','6709632WULwvZ','create','4703281mypjmb','2192110uzlLkl','46737xjpxTJ','3127611ZGTOYp','apply','105lHfuee','search','26290hSLwij'];a112c=function(){return j;};return a112c();}const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0x147)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0x151)]()[h(0x149)](h(0x14e))[h(0x151)]()['constructor'](a112a)[h(0x149)](h(0x14e));});a112a();function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x142;let f=c[d];return f;},a112d(a,b);}import{Generator}from'../../../generator.js';import a112e from'../aws.js';const CFGen=Generator[a112i(0x142)]({'name':a112i(0x14c),'aliases':['cf'],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','shortDesc':'AWS\x20Cloudformation\x20templates','resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':[a112i(0x14d)],'experimental':!![]},async function(){},async function(){},a112e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a113r=a113d;(function(a,b){const o=a113d,c=a();while(!![]){try{const d=-parseInt(o(0xbc))/0x1+parseInt(o(0xcb))/0x2+-parseInt(o(0xb9))/0x3*(-parseInt(o(0xcd))/0x4)+-parseInt(o(0xc5))/0x5+-parseInt(o(0xc1))/0x6+parseInt(o(0xd2))/0x7+-parseInt(o(0xc9))/0x8*(parseInt(o(0xc2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x45e2b));function a113c(){const t=['toString','error','1743426uYhtJA','9jvDZtt','template','ami-055744c75048d8296','937960ffgUqZ','Setting\x20the\x20key-pair\x20to:\x20','exit','create','1416440RuJQTJ','search','875260jYUiBK','findProjectDirectory','301604ZFKinn','cec2i','notice','apply','constructor','3997735BbMcIJ','chooseSecurityGroup','join','cloudformation','cloudformation/create-ec2-instance.template','maka\x20g:aws:cf:cec2i','appName','(((.+)+)+)+$','9HFcTxB','aws','create-ec2-instance','293469LmdiGD','name','replaceAll'];a113c=function(){return t;};return a113c();}const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a113d;if(c){const e=c[p(0xd0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const q=a113d;return a113a[q(0xbf)]()[q(0xca)](q(0xb8))[q(0xbf)]()[q(0xd1)](a113a)[q(0xca)](q(0xb8));});a113a();import a113e from'path';import{Actions}from'../../../tools/actions/actions.class.js';import{capitalCase}from'change-case';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0xb8;let f=c[d];return f;},a113d(a,b);}import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a113f from'./cloudformation.js';const CEC2Gen=Generator[a113r(0xc8)]({'name':a113r(0xbb),'aliases':[a113r(0xce)],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','resourceNameRequired':![],'shortDesc':'AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':[a113r(0xd7)],'experimental':!![]},async function(){const s=a113r,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[s(0xcc)](),g=a113e[s(0xd4)](f,s(0xd5)),h=await a['ec2describeKeys'](),i=await Actions['ask']('Please\x20choose\x20a\x20key\x20to\x20use:\x20')||'-1';if(parseInt(i)<0x0){Log[s(0xc0)]('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'),Log[s(0xcf)]('No\x20instance\x20has\x20been\x20created.');return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m[s(0xbd)],Log['success'](s(0xc6)+j);break;}}const k=await a[s(0xd3)](),l={'amiId':s(0xc4),'keyPair':j,'sgId':k,'instanceName':capitalCase(d[s(0xd8)])[s(0xbe)]('-','\x20')};await c[s(0xc3)]({'srcPath':s(0xd6),'destPath':a113e['join'](g,'create-ec2-instance.template'),'framework':s(0xba),'context':l,'config':d,'ignore':![]});}catch(n){Log['error'](n),process[s(0xc7)](0x1);}},async function(){},a113f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a114n=a114d;(function(a,b){const k=a114d,c=a();while(!![]){try{const d
|
|
1
|
+
const a114n=a114d;(function(a,b){const k=a114d,c=a();while(!![]){try{const d=-parseInt(k(0xad))/0x1*(-parseInt(k(0x90))/0x2)+-parseInt(k(0xa2))/0x3*(parseInt(k(0xb3))/0x4)+-parseInt(k(0xae))/0x5*(-parseInt(k(0xa8))/0x6)+parseInt(k(0x9f))/0x7+parseInt(k(0xa4))/0x8*(-parseInt(k(0xb0))/0x9)+parseInt(k(0xa1))/0xa+parseInt(k(0x93))/0xb*(-parseInt(k(0xa0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xc13b7));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a114d;if(c){const e=c[l(0xb2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const m=a114d;return a114a[m(0xa7)]()[m(0x97)](m(0xa6))[m(0xa7)]()['constructor'](a114a)[m(0x97)]('(((.+)+)+)+$');});a114a();function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x8d;let f=c[d];return f;},a114d(a,b);}import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a114c(){const p=['pkg','startup','\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','10019821CSXUrO','133368rwiJRe','9883770xqVpHr','3byEEyL','appPathPrefix','216HLuXCw','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','(((.+)+)+)+$','toString','1756452cNxjgf','imports','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkMeteorPackage','scaffold','3huUgBV','20cVOZrV','where','424791DOBUVJ','collections','apply','1568884fWhhej','maka\x20g:collection\x20todos','error','template','projectConfig','.app-tests.','pathFromApp','637838YqzdTH','mongo','create','2068fzgSid','test','engines','dir','search','none','resourceName','collection/collection.js','collection/tests.js'];a114c=function(){return p;};return a114c();}Generator[a114n(0x92)]({'name':'collection','aliases':['col'],'usage':a114n(0xaa),'checkWhere':!![],'shortDesc':a114n(0xa5),'validOpts':[a114n(0x96),'where'],'mustBeInMakaProject':!![],'description':a114n(0x9e),'examples':[a114n(0xb4)]},async function(a,b){const o=a114n;try{const c=this[o(0x8d)],d=b[o(0x96)]?'/'+b[o(0x96)]+'/':'/',f=kebabCase(b['resourceName']),g={'name':pascalCase(b[o(0x99)]),'collectionName':pascalCase(b[o(0x99)]),'fileName':f,'where':b[o(0xaf)],'test':c[o(0x95)][o(0x94)],'noRename':!![]};let h='js';c['engines']['js']==='tsx'&&(h='ts');await this[o(0x9c)][o(0xab)]([o(0x91)],{'shouldInstall':!![]}),await this[o(0xac)][o(0xb6)]({'srcPath':o(0x9a),'destPath':this[o(0xac)][o(0x8f)]({'pathParts':['imports',o(0x9d),b[o(0xa3)],o(0xb1),d,f+'.'+h]}),'context':g,'config':c});c['engines'][o(0x94)]!==o(0x98)&&await this['scaffold'][o(0xb6)]({'srcPath':o(0x9b),'destPath':this[o(0xac)][o(0x8f)]({'pathParts':[o(0xa9),o(0x9d),b[o(0xa3)],'collections',d,f+o(0x8e)+h]}),'context':g,'config':c});const i=this[o(0xac)]['pathFromApp']({'pathParts':[o(0xa9),o(0x9d),b['appPathPrefix'],'index.'+c[o(0x95)]['js']]});await this[o(0xac)]['injectAtEndOfFile']({'filePath':i,'content':'import\x20\x27./collections'+d+f+'\x27;'});}catch(j){Log[o(0xb5)](j);}});
|