@maka/maka-cli 5.0.13 → 5.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +2 -3
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/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 -0
- 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 -0
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -0
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -0
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +2 -3
- package/bundle/obf/src/commands/patreon.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a93k=a93d;(function(a,b){const h=a93d,c=a();while(!![]){try{const d=-parseInt(h(0x16a))/0x1+parseInt(h(0x15c))/0x2*(-parseInt(h(0x174))/0x3)+-parseInt(h(0x160))/0x4+parseInt(h(0x164))/0x5*(-parseInt(h(0x167))/0x6)+parseInt(h(0x15d))/0x7*(parseInt(h(0x175))/0x8)+parseInt(h(0x163))/0x9*(parseInt(h(0x182))/0xa)+-parseInt(h(0x16f))/0xb*(-parseInt(h(0x17e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x250d4));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a93d;if(c){const e=c[i(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const j=a93d;return a93a[j(0x15e)]()['search'](j(0x178))[j(0x15e)]()[j(0x166)](a93a)['search'](j(0x178));});a93a();function a93c(){const m=['success','boolean','151532UTIplo','75005ibSKKX','toString','isDirectory','886040BXLtxZ','Set\x20allowInsecure:\x20','pallet','54333ulCXRT','5585OkYOMh','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','constructor','60EHmlqk','maka\x20set:global-config','maka\x20set:gc\x20--insecure\x20<path>','254014nSSWVU','\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','Set\x20workspace:\x20','cacert','openai','2838iIPHMH','Set\x20CA\x20Cert\x20Path:\x20','isFile','error','exit','3WGZvVe','8gbqRhq','Set\x20OpenAI\x20Key:\x20','setGlobalConfig','(((.+)+)+)+$','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','Set\x20global\x20Maka-CLI\x20settings','workspace','cfg','apply','25140dlSgVi','Set\x20color\x20pallet\x20to:\x20','maka\x20set:global-config\x20--cacert\x20<path>','resolve','270IRfVEU','disallowInsecure','allowInsecure','maka\x20set:gc\x20--workspace\x20<path>','One\x20or\x20the\x20other\x20buddy','fsi'];a93c=function(){return m;};return a93c();}import a93e from'path';import a93f from'./set.command.js';function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x159;let f=c[d];return f;},a93d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'global-config','usage':a93k(0x168),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a93k(0x16d),'boolFlag':![]},{'name':a93k(0x184),'boolFlag':!![]},{'name':a93k(0x183),'boolFlag':!![]},{'name':a93k(0x17b),'boolFlag':![]},{'name':a93k(0x16e),'boolFlag':![]},{'name':'help','boolFlag':!![]},{'name':a93k(0x162),'values':['light','dark']}],'shortDesc':a93k(0x17a),'description':a93k(0x16b),'examples':[a93k(0x180),a93k(0x169),a93k(0x185)]},async function(a,b){const l=a93k;try{if(b[l(0x16d)]){if(this[l(0x159)][l(0x171)](b[l(0x16d)]))await this[l(0x17c)][l(0x177)]({'cert':b[l(0x16d)]}),Log[l(0x15a)](l(0x170)+b[l(0x16d)]);else{const c=typeof b[l(0x16d)]===l(0x15b)?l(0x179):l(0x165)+b[l(0x16d)];throw Log[l(0x172)](c);}}if(b[l(0x17b)]){const d=this['fsi'][l(0x15f)](b[l(0x17b)]);if(d)await this[l(0x17c)]['setGlobalConfig']({'workspace':a93e[l(0x181)](b[l(0x17b)])}),Log[l(0x15a)](l(0x16c)+a93e['resolve'](b[l(0x17b)]));else throw Log[l(0x172)]('Could\x20not\x20find\x20directory');}b[l(0x16e)]&&(await this['cfg'][l(0x177)]({'openai':b[l(0x16e)]}),Log['success'](l(0x176)+b[l(0x16e)]));b['pallet']&&(await this['cfg'][l(0x177)]({'pallet':b[l(0x162)]}),Log[l(0x15a)](l(0x17f)+b[l(0x162)]));if(b[l(0x184)]){if(b['allowInsecure']&&b[l(0x183)])throw Log[l(0x172)](l(0x186));let f=b[l(0x184)];b[l(0x183)]&&(f=![]),await this['cfg'][l(0x177)]({'allowInsecure':f}),Log['success'](l(0x161)+f);}process[l(0x173)](0x0);}catch(g){console[l(0x172)](g),process['exit'](0x0);}},a93f);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a94i=a94d;(function(a,b){var f=a94d,c=a();while(!![]){try{var d=-parseInt(f(0x9c))/0x1+parseInt(f(0x99))/0x2*(-parseInt(f(0x8e))/0x3)+parseInt(f(0x8b))/0x4+-parseInt(f(0x8f))/0x5*(-parseInt(f(0x8d))/0x6)+parseInt(f(0x96))/0x7*(-parseInt(f(0x9a))/0x8)+parseInt(f(0x8c))/0x9*(-parseInt(f(0x89))/0xa)+-parseInt(f(0x94))/0xb*(-parseInt(f(0x91))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x9f356));var a94b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a94d;if(c){var e=c[g(0x97)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){var h=a94d;return a94a[h(0x86)]()[h(0x93)](h(0x87))[h(0x86)]()[h(0x88)](a94a)[h(0x93)](h(0x87));});a94a();function a94d(a,b){var c=a94c();return a94d=function(d,e){d=d-0x86;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[a94i(0x90)]({'name':a94i(0x98),'usage':a94i(0x9b),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':a94i(0x95),'validOpts':[],'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20'},async function(){var j=a94i;Log[j(0x92)](j(0x8a));},a94e);function a94c(){var k=['toString','(((.+)+)+)+$','constructor','5064350QeNyQM','Sorry,\x20not\x20implemented\x20yet','3548952oSUqFL','9CVlzXo','6auWeKG','140250aRDkUM','2557295mhudJl','create','3036jppZrb','notice','search','109670AwXfEO','Set\x20local\x20maka\x20app\x20settings','21CccwAG','apply','local-config','46wVMold','1560904zUssYj','maka\x20set:local-config','1101965zlrFIr'];a94c=function(){return k;};return a94c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a95i=a95d;(function(a,b){const f=a95d,c=a();while(!![]){try{const d=parseInt(f(0x1ea))/0x1+-parseInt(f(0x1eb))/0x2*(parseInt(f(0x1de))/0x3)+parseInt(f(0x1df))/0x4*(-parseInt(f(0x1e9))/0x5)+-parseInt(f(0x1ee))/0x6*(parseInt(f(0x1e0))/0x7)+-parseInt(f(0x1e3))/0x8+parseInt(f(0x1f1))/0x9*(-parseInt(f(0x1ef))/0xa)+-parseInt(f(0x1dd))/0xb*(-parseInt(f(0x1e8))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x75238));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a95d;if(c){const e=c[g(0x1ed)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const h=a95d;return a95a[h(0x1f0)]()[h(0x1ec)](h(0x1e4))[h(0x1f0)]()['constructor'](a95a)['search'](h(0x1e4));});function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1dd;let f=c[d];return f;},a95d(a,b);}function a95c(){const k=['72neHWRN','11IqHCZV','6LqIyoA','247964TgVsLO','87773kzwFsp','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','create','1006840ShBmRF','(((.+)+)+)+$','processAndRunCommand','maka\x20set:<sub-command>','set','19275288JxzvRp','65mDLWWz','914070LcWkEL','76034QMEhcb','search','apply','120lEdGgz','977490ZiTbQL','toString'];a95c=function(){return k;};return a95c();}a95a();import{Command}from'../../command.js';const SetCommand=Command[a95i(0x1e2)]({'name':a95i(0x1e7),'usage':a95i(0x1e6),'shortDesc':a95i(0x1e1),'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','validOpts':[]},async function(a){const j=a95i,b=a[0x0];await this[j(0x1e5)](b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96n=a96d;(function(a,b){const k=a96d,c=a();while(!![]){try{const d=-parseInt(k(0x13a))/0x1*(-parseInt(k(0x12d))/0x2)+parseInt(k(0x129))/0x3+parseInt(k(0x12f))/0x4*(parseInt(k(0x13e))/0x5)+parseInt(k(0x140))/0x6+parseInt(k(0x127))/0x7*(-parseInt(k(0x13c))/0x8)+parseInt(k(0x123))/0x9*(-parseInt(k(0x121))/0xa)+parseInt(k(0x132))/0xb*(-parseInt(k(0x11f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x5e3e1));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a96d;if(c){const e=c[l(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const m=a96d;return a96a[m(0x13f)]()[m(0x13b)](m(0x137))[m(0x13f)]()[m(0x128)](a96a)['search'](m(0x137));});a96a();import a96e from'fs';import a96f from'path';import{Command}from'../command.js';function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x11e;let f=c[d];return f;},a96d(a,b);}function a96c(){const p=['906VVLGSa','join','104sIqQqj','verbose','parse','443311yVdRHH','assign','maka\x20ssh\x20--env\x20staging','error','maka\x20ssh\x20--env\x20prod','(((.+)+)+)+$','getAppConfigPath','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','261XiCnrN','search','8efhfxz','cfg','103210bYXuHS','toString','2721318nbmRbN','ssh.json','84nEQdvF','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','670GRLyCW','ssh','74367jMFSsO','sshSync','maka\x20ssh\x20<command>','readFileSync','3583748KigGug','constructor','1875693QGyGmq','getEnvFromShorthand','env','apply'];a96c=function(){return p;};return a96c();}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command['create']({'name':a96n(0x122),'usage':a96n(0x125),'mustBeInMakaProject':!![],'requiredOpts':[a96n(0x12b)],'validOpts':[a96n(0x12b),a96n(0x130)],'shortDesc':a96n(0x120),'examples':['maka\x20ssh\x20--env\x20dev',a96n(0x134),a96n(0x136),a96n(0x139),'maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22']},async function(a,b){const o=a96n;try{const c=this[o(0x13d)][o(0x12a)](b['env']),d=this['cfg'][o(0x138)](c);let f='';a['length']>0x0&&(f=a[0x0]);const g=a96f[o(0x12e)](d,o(0x11e)),h=a96e[o(0x126)](g)['toString'](),i=JSON[o(0x131)](h);Object[o(0x133)](i,{'env':d}),SSH[o(0x124)](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0x130)]});}catch(j){Log[o(0x135)](j),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a97c(){const B=['start','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','99UQnNgY','fsi','cfg','/ssh.json','join','Verifying\x20Letsencrypt\x20configuration','appName','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','parse','.csr','2892570YXsOUp','New\x20CSR\x20written\x20to\x20','ask','Using\x20saved\x20letsencrypt\x20config','Please\x20provide\x20a\x20command.','withSpinner','maka\x20ssl\x20--env\x20dev\x20generate-csr','letsencrypt','ssh','893013fCsmrY','Checking\x20remote\x20host\x20availability','emailUpdate','getAppConfigPath','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','genSSC','genCSR','2348969DhHUSN','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','21363IXQkDK','generate-ssc','toString','error','domains','existsSync','exit','writeFileSync','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','readFileSync','.key','apply','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','Remote\x20host\x20connection\x20successful','sudo\x20snap\x20install\x20--classic\x20certbot','6OcgMEX','12fWrxDO','notice','4HURHZq','[?]\x20Domains\x20to\x20register:\x20','generate-csr','getMakaProjectConfig','maka\x20ssl\x20[command]','2233536NrDXVf','search','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','491030FfkvCi','(((.+)+)+)+$','447866whaGBw','ssl','stringify','letsencrypt.json','assign','4FrNMBp','email','env','ping'];a97c=function(){return B;};return a97c();}const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=parseInt(w(0x1a6))/0x1+-parseInt(w(0x1ab))/0x2*(-parseInt(w(0x1cd))/0x3)+parseInt(w(0x19c))/0x4*(parseInt(w(0x1bb))/0x5)+-parseInt(w(0x1dc))/0x6*(parseInt(w(0x1cb))/0x7)+parseInt(w(0x1a1))/0x8+-parseInt(w(0x1b1))/0x9*(parseInt(w(0x1a4))/0xa)+-parseInt(w(0x1c4))/0xb*(parseInt(w(0x1dd))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x589b3));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x19b;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a['toString']()[y(0x1a2)](y(0x1a5))[y(0x1cf)]()['constructor'](a97a)[y(0x1a2)]('(((.+)+)+)+$');});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['create']({'name':a97z(0x1a7),'usage':a97z(0x1a0),'validOpts':[a97z(0x1d1),a97z(0x1ac)],'requiredOpts':[a97z(0x1ad)],'shortDesc':'Create\x20and\x20manage\x20your\x20SSL\x20operations.','mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0x1c1),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a97z(0x1c8)]},async function(a,b){const A=a97z,c=this[A(0x1b3)][A(0x19f)](),d=this['cfg']['getEnvFromShorthand'](b[A(0x1ad)]),f=this[A(0x1b3)][A(0x1c7)](d),g=this[A(0x1b2)]['mkKeysDir']({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===A(0x19e))SSL[A(0x1ca)]({'keyName':c['appName']+A(0x1d7),'csrName':c[A(0x1b7)]+A(0x1ba),'cwd':g});else{if(h===A(0x1ce)){if(!a97e[A(0x1d2)](a97f[A(0x1b5)](g,c[A(0x1b7)]+A(0x1d7))))throw A(0x1b8)+a97f[A(0x1b5)](g,c[A(0x1b7)]+A(0x1d7));if(!a97e[A(0x1d2)](a97f[A(0x1b5)](g,c['appName']+A(0x1ba))))throw A(0x1d5)+a97f['join'](g,c[A(0x1b7)]+A(0x1ba));SSL[A(0x1c9)]({'keyName':c[A(0x1b7)]+A(0x1d7),'crtName':c[A(0x1b7)]+'.crt','cwd':g}),Log[A(0x19b)](A(0x1bc)+g);}else{if(h===A(0x1c2)){let i=b[A(0x1d1)],j=b[A(0x1ac)];try{const q=a97e[A(0x1d6)](a97f[A(0x1b5)](f,'letsencrypt.json'))[A(0x1cf)](),r=JSON[A(0x1b9)](q);i=b[A(0x1d1)]?b[A(0x1d1)]:r['domainNames'],j=b['email']?b['email']:r[A(0x1c6)],(!b[A(0x1ac)]||!b[A(0x1d1)])&&Log['notice'](A(0x1be));}catch(s){}const k=JSON[A(0x1b9)](a97e[A(0x1d6)](f+A(0x1b4))[A(0x1cf)]());Object[A(0x1aa)](k,{'env':f}),Log[A(0x19b)](A(0x1c5));try{const t=SSH[A(0x1ae)]('uname\x20-a',k);if(!t)throw A(0x1d9);if(t)Log['success'](A(0x1da));}catch(u){Log[A(0x1d0)](u);return;}const l=Log[A(0x1c0)]();l[A(0x1af)](A(0x1b6)),SSH[A(0x1c3)](A(0x1cc),{...k}),SSH[A(0x1c3)](A(0x1db),{...k}),SSH['ssh'](A(0x1b0),{...k}),l['success']();const m=i?i:await Actions[A(0x1bd)](A(0x19d)),n=j?j:await Actions[A(0x1bd)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[A(0x1c3)](A(0x1a3)+m+'\x20--email\x20'+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x1a8)](o,null,0x2);a97e[A(0x1d4)](a97f[A(0x1b5)](f,A(0x1a9)),p);}else throw A(0x1bf);}}}catch(v){console[A(0x1d0)](v),process[A(0x1d3)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98x=a98d;function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x196;let f=c[d];return f;},a98d(a,b);}(function(a,b){const t=a98d,c=a();while(!![]){try{const d=-parseInt(t(0x19c))/0x1+parseInt(t(0x1b4))/0x2*(parseInt(t(0x1af))/0x3)+-parseInt(t(0x1ad))/0x4+parseInt(t(0x1d5))/0x5*(parseInt(t(0x19a))/0x6)+parseInt(t(0x1da))/0x7+parseInt(t(0x1dc))/0x8*(parseInt(t(0x1d3))/0x9)+-parseInt(t(0x1a9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x55cb1));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a98d;if(c){const e=c[u(0x1cc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const v=a98d;return a98a['toString']()[v(0x1a6)]('(((.+)+)+)+$')[v(0x1c9)]()[v(0x1df)](a98a)[v(0x1a6)](v(0x1c5));});a98a();function a98c(){const A=['driverPackage','1751295QLdJIT','--full-app','190024gNpdgT','meteortesting:mocha','checkNpmPackage','constructor','findProjectDirectory','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','driver-package','maka\x20install\x20--force','--driver','engines','error','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','sanjo:jasmine','argv','255426diCAAp','openSync','162400NCMVeu','notice','test','parse','cwd','splice','packages','settings','env','mpi','search','concat','cfg','2526460eFKCLf','forEach','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','rawLogs','1886956KMSgGr','test-packages','3FzwkTa','pkg','Node\x20Env\x20Config:\x20','isFile','once','400294IFJIIs','create','unit','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','readFileSync','local','process.env','--settings','isMeteorInstalled','--driver-package','jasmine','settings.json','join','none','checkConfigExists','warn','@testing-library/dom\x20meteor-node-stubs','(((.+)+)+)+$','slice','fsi','config','toString','filter','mocha','apply','relative','utf8','.maka','maka\x20test','createFile','getEnvFromShorthand','234QqCLXo','Meteor\x20Settings:\x20','20EZdAoJ','--env','driver','Meteor\x20is\x20installed.'];a98c=function(){return A;};return a98c();}import a98e from'fs';import a98f from'path';import a98g from'dotenv';import{execSync}from'child_process';import a98h from'../generators/maka.gen.js';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const w=a98d;a98e[w(0x19b)](a,'r'),a98g[w(0x1c8)]({'path':a});};Command[a98x(0x1b5)]({'name':a98x(0x19e),'mustBeInMakaProject':!![],'validOpts':[a98x(0x1b3),a98x(0x1a2),a98x(0x1d7),a98x(0x1d9),'unit',a98x(0x1a4),a98x(0x1ac),'port','inspect','testAppPath'],'usage':a98x(0x1d0),'aliases':['t','tests'],'shortDesc':a98x(0x1b7),'examples':[]},async function(a,b){const y=a98x;try{this[y(0x1a5)][y(0x1bc)]()?Log['notice'](y(0x1d8)):(Log['warn']('Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...'),execSync(y(0x1e3),{'stdio':'inherit'}));this[y(0x1b0)][y(0x1de)](y(0x1c4),{'shouldInstall':!![]});const c=b[y(0x1a4)]?this[y(0x1a8)][y(0x1d2)](b[y(0x1a4)]):y(0x1b9);(!b[y(0x1b6)]||!!b[y(0x1b3)])&&(a=a[y(0x1a7)]([y(0x1db)]));b[y(0x1b6)]&&delete b[y(0x1b6)];let d=b[y(0x1e2)]||b[y(0x1d7)]||'none';if(d===y(0x1c1)){const l=JSON[y(0x19f)](a98e[y(0x1b8)](a98f[y(0x1c0)](this[y(0x1c7)][y(0x1e0)](),y(0x1cf),'config.json'),y(0x1ce)));if(l[y(0x1e5)][y(0x19e)]===y(0x1be))d=y(0x198);else l[y(0x1e5)][y(0x19e)]===y(0x1cb)&&(d=y(0x1dd));}if(d===y(0x1c1))throw y(0x1ab);(!b[y(0x1e2)]||!b[y(0x1d7)])&&(a=a[y(0x1a7)]([y(0x1bd),d]));const f=this[y(0x1a8)][y(0x1c2)](y(0x1b9));if(!f){Log['warn'](y(0x1e1));const m=this[y(0x1c7)][y(0x1e0)]();await a98h['processAndRunGenerator'](y(0x1c8),[y(0x1b9)],{'cwd':m,'root':!![]});}const g=this[y(0x1a8)]['getAppConfigPath'](c),h=a98f[y(0x1c0)](g,y(0x1ba));let i=a98f[y(0x1c0)](g,y(0x1bf));b['settings']?i=b[y(0x1a3)]:i=a98f[y(0x1c0)](g,y(0x1bf));if(this[y(0x1c7)][y(0x1b2)](h)){const n=a98f['relative'](process['cwd'](),h);Log[y(0x19d)](y(0x1b1)+n),syncSource(h);}else{const o=a98f[y(0x1cd)](process[y(0x1a0)](),h);Log['info'](y(0x197)+o),this['fsi'][y(0x1d1)]({'filePath':h,'data':''});}if(this[y(0x1c7)][y(0x1b2)](i)){const p=a98f['relative'](process[y(0x1a0)](),i);Log[y(0x19d)](y(0x1d4)+p),a=a[y(0x1a7)]([y(0x1bb),i]);}else{const q=a98f[y(0x1cd)](process[y(0x1a0)](),i);Log[y(0x1c3)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+q);}const j=process[y(0x199)][y(0x1c6)](0x2)[y(0x1ca)](r=>r!==y(0x1d6))['filter'](r=>r!=='test')['filter'](r=>r!==a[0x0]);j[y(0x1aa)]((r,s)=>{const z=y;(r===z(0x1d6)||r===z(0x1e4))&&j['splice'](s,0x2),r==='--packages'&&j[z(0x1a1)](s,0x1);});const k=b[y(0x1a2)]?y(0x1ae):y(0x19e);this['mpi']['invokeMeteorCommand'](k,a[y(0x1a7)](j));}catch(r){console[y(0x196)](r),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a99h=a99d;(function(a,b){var f=a99d,c=a();while(!![]){try{var d=parseInt(f(0x159))/0x1*(parseInt(f(0x155))/0x2)+-parseInt(f(0x15a))/0x3*(-parseInt(f(0x161))/0x4)+parseInt(f(0x156))/0x5+-parseInt(f(0x152))/0x6*(-parseInt(f(0x157))/0x7)+-parseInt(f(0x15f))/0x8+-parseInt(f(0x15b))/0x9+parseInt(f(0x154))/0xa*(-parseInt(f(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x96789));var a99b=(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;};}()),a99a=a99b(this,function(){var g=a99d;return a99a[g(0x153)]()[g(0x15d)](g(0x158))[g(0x153)]()[g(0x160)](a99a)[g(0x15d)](g(0x158));});function a99c(){var j=['4107501DIzbOn','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','search','2355562sueGQe','7708760pGiKWX','constructor','20HzOJtr','undo','114pbtzho','toString','100RUBNKZ','392yeaJJb','4356635BUMoZZ','449484Kqfpzu','(((.+)+)+)+$','5073uDhNce','655242ocpwWA'];a99c=function(){return j;};return a99c();}a99a();import{Command}from'../command.js';function a99d(a,b){var c=a99c();return a99d=function(d,e){d=d-0x152;var f=c[d];return f;},a99d(a,b);}import a99e from'../generators/maka.gen.js';Command['create']({'name':a99h(0x162),'aliases':['u'],'validOpts':[],'shortDesc':a99h(0x15c),'experimental':!![]},async function(){var i=a99h;a99e[i(0x162)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a100k=a100d;(function(a,b){const h=a100d,c=a();while(!![]){try{const d=-parseInt(h(0x130))/0x1*(parseInt(h(0x14e))/0x2)+parseInt(h(0x140))/0x3+-parseInt(h(0x138))/0x4+-parseInt(h(0x147))/0x5+-parseInt(h(0x149))/0x6*(-parseInt(h(0x148))/0x7)+-parseInt(h(0x141))/0x8*(-parseInt(h(0x131))/0x9)+parseInt(h(0x150))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xee88e));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a100d;if(c){const e=c[i(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const j=a100d;return a100a['toString']()['search'](j(0x12f))[j(0x14d)]()[j(0x14a)](a100a)[j(0x12e)](j(0x12f));});a100a();import a100e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x12b;let f=c[d];return f;},a100d(a,b);}const pjson={'version':a100k(0x13f)};Command[a100k(0x12d)]({'name':a100k(0x13a),'aliases':['v'],'usage':a100k(0x137),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':'Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','examples':[a100k(0x135),a100k(0x137)],'description':a100k(0x142)},async function(a,b){const l=a100k;try{Log['majestic']('Maka\x20'+pjson[l(0x13a)]),await this['fsi']['compareMakaToLatest']();if(b[l(0x14b)]){await this[l(0x14c)][l(0x151)](),Log[l(0x13d)](l(0x13b));const c=this['mpi']['getGlobalMeteorVersion']();Log[l(0x13d)](('System\x27s\x20Meteor\x20Version\x20'+c)[l(0x143)]('\x0a',''));if(this['fsi'][l(0x134)]()){Log[l(0x13d)](l(0x12b));const d=this[l(0x14c)][l(0x133)]();try{!a100e[l(0x132)](d)?Log[l(0x14f)](l(0x139)+d['replace']('\x0a','')):Log[l(0x144)]('Project\x27s\x20Meteor\x20Version\x20'+d[l(0x143)]('\x0a',''));}catch(f){Log[l(0x145)](l(0x146)+f),Log[l(0x145)](l(0x13e));}Log[l(0x13d)](l(0x13c));}}}catch(g){console['error'](g),process[l(0x12c)](0x0);}});function a100c(){const m=['verbose','fsi','toString','2802SzaUtl','warn','13622900rKKAmK','compareMakaToLatest','----------------------Project----------------------------','exit','create','search','(((.+)+)+)+$','601azguYV','243ygZzFh','valid','getProjectMeteorVersion','isMakaProject','maka\x20v','apply','maka\x20version','7078484WlfVWq','Project\x27s\x20Meteor\x20Version\x20','version','----------------------System----------------------------','\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','bright','This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','5.0.14','1984614mAgXft','250440gkUAmK','\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','replace','notice','error','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','2385020WBOrci','8376207guJzVu','6uuNQnh','constructor'];a100c=function(){return m;};return a100c();}
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a101d,c=a();while(!![]){try{var d=parseInt(f(0x15d))/0x1+parseInt(f(0x158))/0x2*(-parseInt(f(0x155))/0x3)+parseInt(f(0x15f))/0x4+-parseInt(f(0x159))/0x5*(parseInt(f(0x160))/0x6)+-parseInt(f(0x154))/0x7*(parseInt(f(0x15c))/0x8)+parseInt(f(0x162))/0x9*(-parseInt(f(0x15e))/0xa)+parseInt(f(0x156))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x7aeea));var a101b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a101d;if(c){var e=c[g(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){var h=a101d;return a101a[h(0x15b)]()['search']('(((.+)+)+)+$')[h(0x15b)]()[h(0x15a)](a101a)[h(0x157)](h(0x153));});a101a();function a101c(){var i=['apply','2529TNfWoI','(((.+)+)+)+$','434iksjTn','92121LbSalG','23680118dWxRpo','search','2PVnEhl','12565hrYXjX','constructor','toString','116392kbJqkW','407083oHaoTG','35270UrkGFT','1741916BmpxXA','1356iAwMQV'];a101c=function(){return i;};return a101c();}function a101d(a,b){var c=a101c();return a101d=function(d,e){d=d-0x153;var f=c[d];return f;},a101d(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 a102h=a102d;function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0x168;var f=c[d];return f;},a102d(a,b);}function a102c(){var i=['7946JRoWKn','3996130oySMxQ','7159410gkOmkL','45QuOkxm','3387891xIRHQf','NODE_OPTIONS','25LXtnrl','toString','29519rCIpQb','(((.+)+)+)+$','5170660NADYXn','6349575xkNWaq','104cJJsEn'];a102c=function(){return i;};return a102c();}(function(a,b){var f=a102d,c=a();while(!![]){try{var d=parseInt(f(0x171))/0x1*(parseInt(f(0x16b))/0x2)+parseInt(f(0x16f))/0x3+parseInt(f(0x168))/0x4+parseInt(f(0x169))/0x5+-parseInt(f(0x16d))/0x6+-parseInt(f(0x173))/0x7*(-parseInt(f(0x16a))/0x8)+parseInt(f(0x16e))/0x9*(-parseInt(f(0x16c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x9fd83));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var g=a102d;return a102a[g(0x172)]()['search'](g(0x174))[g(0x172)]()['constructor'](a102a)['search'](g(0x174));});a102a(),process['env'][a102h(0x170)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a104c(){const N=['number','Alias','replace','map','existsSync','minOptsLength','details','findProjectDirectory','writeFileSync','setColorMode','readHistory','push','lib','experimental','validateParams','\x20not\x20found.\x20Cannot\x20undo.','addGenerator','addGenerator\x20requires\x20a\x20Generator\x20instance','1855792vOhmAB','Generator\x20requires\x20a\x20handler\x20function','findGeneratorByName','mustBeInMakaProject','size','colLocAnswer','resourceName','filter','cwd','client','_handler','maxOptsLength','7rTbJfZ','usage','\x20generator.\x20Skipping\x20undo.','find','20CGTcXQ','Please\x20run\x20\x22maka\x20install\x20meteor\x22','1495404fvkoFR','shift','processAndRunGenerator','bind','180362GLukhH','keys','pop','Generators:','search','match','writeHistory','Client','Generator\x20format\x20is\x20incorrect','notice','config','tableList','validateEngines','sep','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','minArgLength','pallet','pathFromProject','name','_undoHandler','.maka','\x20not\x20found','Generator.create\x20requires\x20some\x20options!','Generator\x20','Name','both','1014gaWGcu','utf-8','server','Too\x20few\x20arguments','toString','650682PysPeL','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','params','assign','mustHaveMeteorInstalled','fullNameChain','call','dir','generatorName','handleGenerateError','split','(((.+)+)+)+$','function','_genTransactionId','apply','root','addToHistory','validateMakaProject','where','No\x20resource\x20name\x20specified','warn','error','options','There\x20is\x20no\x20Meteor\x20application\x20here','constructor','Both','shortDesc','fsi','Too\x20many\x20options','light','success','92nnUJxs','length','chdir','statSync','stringify','undo','requiredEngines','552980rkTozD','264056sNurJt','forEach','appPathPrefix','create','join','transactionId','localeCompare','maxArgLength','noNeedResource','history.json','_generators','Description','_historyFilePath','Location','(expermiental)\x20','bright','invoke','help','opts'];a104c=function(){return N;};return a104c();}const a104v=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x1a2))/0x1+parseInt(r(0x15f))/0x2*(parseInt(r(0x13b))/0x3)+-parseInt(r(0x167))/0x4+parseInt(r(0x166))/0x5+-parseInt(r(0x19e))/0x6*(-parseInt(r(0x198))/0x7)+parseInt(r(0x18c))/0x8+parseInt(r(0x140))/0x9*(-parseInt(r(0x19c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x34d3c));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a104d;if(c){const e=c[s(0x14e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const t=a104d;return a104a[t(0x13f)]()[t(0x1a6)](t(0x14b))[t(0x13f)]()[t(0x158)](a104a)['search'](t(0x14b));});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x135;let f=c[d];return f;},a104d(a,b);}import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const u=a104d,c=process[u(0x194)]();let d=null;try{process[u(0x161)](a),d=await b();}finally{process[u(0x161)](c);}return d;}export class Generator extends Tool{[a104v(0x156)];['fullNameChain'];['_generators'];['_historyFilePath'];['_undoHandler'];[a104v(0x14d)];constructor(a,b,c){const w=a104v;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[w(0x1b4)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==w(0x14c))throw new Error(w(0x18d));this['_generators']=[],this['options']=Object['assign']({},a),this[w(0x1b4)]=this[w(0x156)][w(0x1b4)],this[w(0x196)]=b[w(0x1a1)](this);try{this[w(0x173)]=this[w(0x15b)][w(0x1b3)]({'pathParts':['.maka',w(0x170)]})||a104e[w(0x16b)]('.',w(0x135),w(0x170));}catch(d){Log[w(0x155)](d);}c&&(this[w(0x1b5)]=c['bind'](this));}['getHistoryFileSize'](){const x=a104v;if(a104f['existsSync'](this[x(0x173)])){const a=a104f[x(0x162)](this[x(0x173)]);return a[x(0x190)];}return 0x0;}[a104v(0x184)](){const y=a104v;if(!a104f[y(0x17e)](this['_historyFilePath']))return[];return JSON['parse'](a104f['readFileSync'](this[y(0x173)],y(0x13c)));}[a104v(0x1a8)](a){const z=a104v;this[z(0x173)]&&!a104f['existsSync'](this[z(0x173)])&&a104f[z(0x182)](this[z(0x173)],JSON[z(0x163)]([])),a104f[z(0x182)](this[z(0x173)],JSON['stringify'](a,null,0x2));}[a104v(0x150)](a){const A=a104v;try{a?.[A(0x142)]?.[A(0x179)][A(0x1ac)]&&delete a['params'][A(0x179)][A(0x1ac)];const b=this[A(0x184)](),c={'generatorName':this[A(0x145)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x185)](c);const d=Buffer['from'](JSON[A(0x163)](b))['length'];while(d>MAX_HISTORY_SIZE&&b[A(0x160)]>0x0){b[A(0x19f)]();}this[A(0x1a8)](b);}catch(f){Log[A(0x155)](f);}}async[a104v(0x164)](){const B=a104v,a=this['readHistory']();if(a[B(0x160)]===0x0){Log[B(0x154)]('Nothing\x20to\x20undo.');return;}const b=a['pop'](),c=b[B(0x16c)],d=a[B(0x193)](e=>e[B(0x16c)]===c);d[B(0x185)](b),d['reverse']();for(const e of d){const f=this['findGeneratorByName'](e[B(0x148)]);if(!f){Log['error'](B(0x138)+e['generatorName']+B(0x189));continue;}f[B(0x1b5)]?await f[B(0x1b5)](e[B(0x180)]):Log['warn']('No\x20undo\x20handler\x20defined\x20for\x20'+e[B(0x148)]+B(0x19a));}this['writeHistory'](a[B(0x193)](g=>g[B(0x16c)]!==c));}static[a104v(0x16a)](a,b,c,d){const C=a104v;if(!a)throw new Error(C(0x137));if(typeof b!==C(0x14c))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const e=new Generator(a,b);c&&(e[C(0x1b5)]=c[C(0x1a1)](e));d=d||a104i;const f=d?d['fullNameChain']:'';return e[C(0x145)]=f?f+':'+a[C(0x1b4)]:a[C(0x1b4)],Object[C(0x143)](e,{'parent':d?.[C(0x156)]?.[C(0x1b4)]}),d[C(0x18a)](e),e;}[a104v(0x18a)](a){const D=a104v;if(!(a instanceof Generator))throw new Error(D(0x18b));this[D(0x171)][D(0x185)](a);}async[a104v(0x1a0)](a,b=[],c={}){const E=a104v;let d;try{const f=a?.[E(0x14a)](':');if(!f||f['length']===0x0)throw E(0x1aa);let g=this[E(0x171)],h;for(const i of f){h=g['find'](j=>j[E(0x1a7)](i));if(!h)throw'Generator\x20'+i+'\x20not\x20found';g=h[E(0x171)];}if(h)d=await h[E(0x177)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x155)](j);}return d;}[a104v(0x18e)](a){const F=a104v,b=a?.[F(0x14a)](':');if(!b||b[F(0x160)]===0x0)return Log[F(0x155)]('Generator\x20format\x20is\x20incorrect'),null;let c=this['_generators'],d;for(const e of b){d=c[F(0x19b)](f=>f[F(0x1a7)](e));if(!d)return Log[F(0x155)](F(0x138)+e+F(0x136)),null;c=d['_generators'];}return d||null;}async[a104v(0x177)](a,b){const G=a104v,c=a['slice']();b[G(0x192)]=c[0x0];try{const d=await this[G(0x15b)]['getGlobalConfig'](),f=d[G(0x1b2)]===G(0x15d)?ColorMode['LIGHT']:ColorMode['DARK'];Log[G(0x183)](f);const g=a[0x0]===_prevGen||a['length']===0x0&&this[G(0x171)]['length']>=0x0,h=b[G(0x178)]||b['h'];if(g&&h){if(this[G(0x171)][G(0x160)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this['options'][G(0x18f)]){const i=this[G(0x151)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x156)][G(0x144)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x156)][G(0x1b1)]===G(0x17a)){if(a[G(0x160)]<this[G(0x156)]['minArgLength']){Log[G(0x155)](G(0x13e));throw new UsageError();}}if(typeof this[G(0x156)][G(0x16e)]==='number'){if(a['length']>this[G(0x156)]['maxArgLength']){Log[G(0x155)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[G(0x156)][G(0x17f)]==='number'){if(Object[G(0x1a3)](b)['length']<this[G(0x156)][G(0x17f)]){Log[G(0x155)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this['options'][G(0x197)]===G(0x17a)){if(Object[G(0x1a3)](b)[G(0x160)]>=this['options'][G(0x197)]){Log[G(0x155)](G(0x15c));throw new UsageError();}}}this[G(0x156)][G(0x165)]&&this[G(0x1ae)](this[G(0x156)][G(0x165)]);await this[G(0x188)](a,b,this['options']);if(!b['resourceName']&&!this['options'][G(0x16f)]){Log[G(0x155)](G(0x153));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x149)](k),process['exit'](0x1);}return await inside(b[G(0x194)],async()=>{const H=G;try{if(!b[H(0x14f)]&&!this['fsi'][H(0x181)]())throw new MustBeInProjectError();const l=b[H(0x192)]?.[H(0x17c)](/\\/g,'/')[H(0x14a)]('/');!b[H(0x147)]&&(l?.[H(0x160)]>0x1?(b['resourceName']=l[H(0x1a4)](),c[0x0]=b[H(0x192)],b['dir']=l[H(0x17d)](n=>{return paramCase(n);})['join'](a104e[H(0x1af)])):b[H(0x147)]='');if(this[H(0x156)]['checkWhere']){if(!b['where']){const o={'type':'list','name':H(0x191),'message':H(0x174),'choices':[{'name':H(0x1a9),'value':H(0x195)},{'name':'Server','value':H(0x13d)},{'name':H(0x159),'value':H(0x13a)}]},{colLocAnswer:p}=await Actions[H(0x156)](o);p?b[H(0x152)]=p:b[H(0x152)]=H(0x13a);}const n=['both','client','server'];if(!n['includes'](b['where'])){Log[H(0x155)](H(0x1b0));throw new UsageError();}switch(b[H(0x152)]){case H(0x13a):b['appPathPrefix']=H(0x186);break;case H(0x13d):b['appPathPrefix']=H(0x13d);break;case H(0x195):b['appPathPrefix']=H(0x195);break;default:b[H(0x169)]='';}}const m=await this[H(0x196)][H(0x146)](this,c,b);return m&&this['addToHistory']({'params':{'args':c,'opts':this[H(0x15b)]['deepen'](b)},'success':m?.[H(0x15e)],'message':m?.['message'],'details':m?.['details']}),m;}catch(q){this[H(0x149)](q);}});}['listGenerators'](){const I=a104v;this['tableList'](this[I(0x171)]);}[a104v(0x149)](a){const J=a104v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this['options'];Log[J(0x199)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log['notice'](J(0x1a5)),this[J(0x1ad)](this[J(0x171)]);else{if(a instanceof MustBeInProjectError)Log[J(0x155)](J(0x141));else{if(a instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0x1ab)](J(0x19d));else a instanceof NoMeteorAppFoundError&&Log[J(0x155)](J(0x157));}}}[a104v(0x1ad)](a){const K=a104v,b=new a104g({});b[K(0x185)]([K(0x139),K(0x17b),K(0x172)]),a['sort']((c,d)=>{const L=K;return c[L(0x1b4)][L(0x16d)](d['name']);})[K(0x168)](c=>{const M=K,d=c[M(0x187)](),e=d?M(0x175)+c[M(0x15a)]():c[M(0x15a)]();b['push']([c[M(0x1b4)],c['aliases'](),e]);}),Log[K(0x176)](b['toString']());}}
|
|
1
|
+
function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x18a;let f=c[d];return f;},a103d(a,b);}const a103v=a103d;(function(a,b){const r=a103d,c=a();while(!![]){try{const d=parseInt(r(0x1f6))/0x1+-parseInt(r(0x1ae))/0x2+parseInt(r(0x217))/0x3*(-parseInt(r(0x194))/0x4)+-parseInt(r(0x200))/0x5+parseInt(r(0x213))/0x6+-parseInt(r(0x1fd))/0x7*(parseInt(r(0x1cc))/0x8)+-parseInt(r(0x1c9))/0x9*(-parseInt(r(0x1d0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x2a6e5));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a103d;if(c){const e=c[s(0x1e1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const t=a103d;return a103a[t(0x195)]()[t(0x1dd)]('(((.+)+)+)+$')['toString']()[t(0x1ce)](a103a)[t(0x1dd)](t(0x211));});function a103c(){const N=['search','pallet','minArgLength','filter','apply','both','\x20not\x20found','Generator.create\x20requires\x20a\x20handler\x20function!','shift','invoke','experimental','requiredEngines','pathFromProject','\x20generator.\x20Skipping\x20undo.','getGlobalConfig','Generator\x20not\x20found','writeFileSync','Generator\x20format\x20is\x20incorrect','deepen','colLocAnswer','Location','Too\x20few\x20options','split','Too\x20few\x20arguments','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','195464dCzmIT','cfg','Both','undo','addGenerator\x20requires\x20a\x20Generator\x20instance','help','fsi','14RWeKKl','writeHistory','No\x20undo\x20handler\x20defined\x20for\x20','818960fgMAol','There\x20is\x20no\x20Meteor\x20application\x20here','findGeneratorByName','listGenerators','Too\x20many\x20options','client','aliases','localeCompare','Please\x20run\x20\x22maka\x20install\x20meteor\x22','_generators','parse','getMakaProjectConfig','details','number','Generator\x20requires\x20a\x20name','warn','error','(((.+)+)+)+$','tableList','967422rAidpJ','lib','appPathPrefix','.maka','49884VEhDYo','projectConfig','from','sep','generatorName','noNeedResource','assign','success','chdir','Nothing\x20to\x20undo.','Too\x20many\x20arguments','validateEngines','28HjMSuc','toString','forEach','validateParams','join','create','minOptsLength','utf-8','length','handleGenerateError','readHistory','sort','keys','(experimental)\x20','LIGHT','push','addGenerator','message','fullNameChain','server','Generator.create\x20requires\x20some\x20options!','No\x20resource\x20name\x20specified','_undoHandler','size','getHistoryFileSize','DARK','620934tSDHDc','mustBeInMakaProject','options','slice','match','mustHaveMeteorInstalled','maxOptsLength','dir','maxArgLength','name','Server','Client','transactionId','cwd','Generator\x20','map','stringify','find','Generator\x20requires\x20a\x20handler\x20function','function','_handler','bright','Description','addToHistory','reverse','pop','statSync','436743XMZlKJ','call','resourceName','1280616SyXenu','existsSync','constructor','bind','150RsvTJP','where','light','_genTransactionId','checkWhere','_historyFilePath','params','findProjectDirectory','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','opts','validateMakaProject','Generators:','history.json'];a103c=function(){return N;};return a103c();}a103a();import a103e from'path';import a103f from'fs';import a103g from'cli-table';import{v4 as a103h}from'uuid';import{paramCase}from'change-case';import a103i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a103h();async function inside(a='.',b){const u=a103d,c=process['cwd']();try{return process[u(0x190)](a),await b();}finally{process[u(0x190)](c);}}export class Generator extends Tool{[a103v(0x1b0)];[a103v(0x1a6)];[a103v(0x218)];[a103v(0x209)];[a103v(0x1d5)];['_undoHandler'];[a103v(0x1d3)];[a103v(0x1c2)];constructor(a,b,c){const w=a103v;super();if(!a)throw new Error(w(0x1d8));if(!a[w(0x1b7)])throw new Error(w(0x20e));if(typeof b!==w(0x1c1))throw new Error(w(0x1c0));this[w(0x209)]=[],this['options']=Object[w(0x18e)]({},a),this[w(0x1b7)]=this[w(0x1b0)][w(0x1b7)],this[w(0x1c2)]=b[w(0x1cf)](this);try{this[w(0x1d5)]=this[w(0x1fc)][w(0x1e9)]({'pathParts':[w(0x216),w(0x1dc)]})||a103e[w(0x198)]('.',w(0x216),w(0x1dc));}catch(d){Log[w(0x210)](d);}c&&(this[w(0x1aa)]=c['bind'](this));}[a103v(0x1ac)](){const x=a103v;if(a103f['existsSync'](this[x(0x1d5)])){const a=a103f[x(0x1c8)](this['_historyFilePath']);return a[x(0x1ab)];}return 0x0;}['readHistory'](){const y=a103v;if(!a103f[y(0x1cd)](this[y(0x1d5)]))return[];return JSON[y(0x20a)](a103f['readFileSync'](this['_historyFilePath'],y(0x19b)));}[a103v(0x1fe)](a){const z=a103v;this[z(0x1d5)]&&!a103f['existsSync'](this[z(0x1d5)])&&a103f[z(0x1ed)](this[z(0x1d5)],JSON['stringify']([])),a103f['writeFileSync'](this[z(0x1d5)],JSON[z(0x1be)](a,null,0x2));}[a103v(0x1c5)](a){const A=a103v;try{a?.[A(0x1d6)]?.['opts']['config']&&delete a['params'][A(0x1d9)]['config'];const b=this[A(0x19e)](),c={'generatorName':this[A(0x1a6)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x1a3)](c);const d=Buffer[A(0x18a)](JSON[A(0x1be)](b))[A(0x19c)];while(d>MAX_HISTORY_SIZE&&b[A(0x19c)]>0x0){b[A(0x1e5)]();}this['writeHistory'](b);}catch(f){Log[A(0x210)](f);}}async[a103v(0x1f9)](){const B=a103v,a=this[B(0x19e)]();if(a[B(0x19c)]===0x0){Log['warn'](B(0x191));return;}const b=a['pop'](),c=b['transactionId'],d=a[B(0x1e0)](e=>e[B(0x1ba)]===c);d['push'](b),d[B(0x1c6)]();for(const e of d){const f=this[B(0x202)](e['generatorName']);if(!f){Log['error'](B(0x1bc)+e['generatorName']+'\x20not\x20found.\x20Cannot\x20undo.');continue;}if(f[B(0x1aa)]){}else Log[B(0x20f)](B(0x1ff)+e[B(0x18c)]+B(0x1ea));}this[B(0x1fe)](a['filter'](g=>g[B(0x1ba)]!==c));}static[a103v(0x199)](a,b,c,d){const C=a103v;if(!a)throw new Error(C(0x1a8));if(typeof b!=='function')throw new Error(C(0x1e4));const e=new Generator(a,b,c);d=d||a103i;const f=d?d[C(0x1a6)]:'';return e[C(0x1a6)]=f?f+':'+a[C(0x1b7)]:a[C(0x1b7)],Object[C(0x18e)](e,{'parent':d?.['options']?.[C(0x1b7)]}),d[C(0x1a4)](e),e;}[a103v(0x1a4)](a){const D=a103v;if(!(a instanceof Generator))throw new Error(D(0x1fa));this[D(0x209)]['push'](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a103v;let d;try{const f=a?.[E(0x1f3)](':');if(!f||f['length']===0x0)throw E(0x1ee);let g=this[E(0x209)],h;for(const i of f){h=g[E(0x1bf)](j=>j[E(0x1b2)](i));if(!h)throw E(0x1bc)+i+E(0x1e3);g=h['_generators'];}if(h)d=await h['invoke'](b,c);else throw E(0x1ec);}catch(j){Log['error'](j);}return d;}['findGeneratorByName'](a){const F=a103v,b=a?.[F(0x1f3)](':');if(!b||b[F(0x19c)]===0x0)return Log['error']('Generator\x20format\x20is\x20incorrect'),null;let c=this[F(0x209)],d;for(const e of b){d=c[F(0x1bf)](f=>f[F(0x1b2)](e));if(!d)return Log['error']('Generator\x20'+e+F(0x1e3)),null;c=d[F(0x209)];}return d||null;}async[a103v(0x1e6)](a,b){const G=a103v,c=a[G(0x1b1)]();b[G(0x1cb)]=c[0x0];try{const d=await this[G(0x1f7)][G(0x1eb)](),f=d[G(0x1de)]===G(0x1d2)?ColorMode[G(0x1a2)]:ColorMode[G(0x1ad)];Log['setColorMode'](f);const g=a[0x0]===_prevGen||a['length']===0x0&&this['_generators']['length']>=0x0,h=b[G(0x1fb)]||b['h'];if(g&&h){if(this[G(0x209)][G(0x19c)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x1b0)][G(0x1af)]){const i=this[G(0x1da)]();if(!i)throw new MustBeInProjectError();this[G(0x218)]=this['cfg'][G(0x20b)]();}if(this[G(0x1b0)][G(0x1b3)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x1b0)][G(0x1df)]===G(0x20d)){if(a[G(0x19c)]<this[G(0x1b0)][G(0x1df)]){Log[G(0x210)](G(0x1f4));throw new UsageError();}}if(typeof this[G(0x1b0)][G(0x1b6)]===G(0x20d)){if(a[G(0x19c)]>this['options'][G(0x1b6)]){Log[G(0x210)](G(0x192));throw new UsageError();}}if(typeof this[G(0x1b0)]['minOptsLength']===G(0x20d)){if(Object[G(0x1a0)](b)[G(0x19c)]<this['options'][G(0x19a)]){Log['error'](G(0x1f2));throw new UsageError();}}if(typeof this[G(0x1b0)][G(0x1b4)]===G(0x20d)){if(Object[G(0x1a0)](b)[G(0x19c)]>=this[G(0x1b0)][G(0x1b4)]){Log[G(0x210)](G(0x204));throw new UsageError();}}}this['options'][G(0x1e8)]&&this[G(0x193)](this[G(0x1b0)][G(0x1e8)]);await this[G(0x197)](a,b,this['options']);if(!b['resourceName']&&!this[G(0x1b0)][G(0x18d)]){Log[G(0x210)](G(0x1a9));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x19d)](k),process['exit'](0x1);}return await inside(b[G(0x1bb)],async()=>{const H=G;try{if(!b['root']&&!this[H(0x1fc)][H(0x1d7)]())throw new MustBeInProjectError();const l=b[H(0x1cb)]?.['replace'](/\\/g,'/')[H(0x1f3)]('/');!b[H(0x1b5)]&&(l?.['length']>0x1?(b['resourceName']=l[H(0x1c7)](),c[0x0]=b['resourceName'],b[H(0x1b5)]=l[H(0x1bd)](n=>{return paramCase(n);})['join'](a103e[H(0x18b)])):b[H(0x1b5)]='');if(this[H(0x1b0)][H(0x1d4)]){if(!b[H(0x1d1)]){const o={'type':'list','name':H(0x1f0),'message':H(0x1f1),'choices':[{'name':H(0x1b9),'value':H(0x205)},{'name':H(0x1b8),'value':'server'},{'name':H(0x1f8),'value':H(0x1e2)}]},{colLocAnswer:p}=await Actions['options'](o);p?b['where']=p:b['where']='both';}const n=[H(0x1e2),'client','server'];if(!n['includes'](b[H(0x1d1)])){Log[H(0x210)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[H(0x1d1)]){case'both':b['appPathPrefix']=H(0x214);break;case H(0x1a7):b['appPathPrefix']='server';break;case H(0x205):b[H(0x215)]=H(0x205);break;default:b[H(0x215)]='';}}const m=await this[H(0x1c2)][H(0x1ca)](this,c,b);return m&&this[H(0x1c5)]({'params':{'args':c,'opts':this['fsi'][H(0x1ef)](b)},'success':m?.[H(0x18f)],'message':m?.[H(0x1a5)],'details':m?.[H(0x20c)]}),m;}catch(q){this['handleGenerateError'](q);}});}[a103v(0x203)](){const I=a103v;this[I(0x212)](this['_generators']);}[a103v(0x19d)](a){const J=a103v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[J(0x1b0)];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log['notice'](J(0x1db)),this[J(0x212)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[J(0x210)](J(0x1f5));else{if(a instanceof NoMeteorFoundError)Log[J(0x210)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](J(0x208));else a instanceof NoMeteorAppFoundError&&Log[J(0x210)](J(0x201));}}}[a103v(0x212)](a){const K=a103v,b=new a103g({});b[K(0x1a3)](['Name','Alias',K(0x1c4)]),a[K(0x19f)]((c,d)=>{const L=K;return c[L(0x1b7)][L(0x207)](d['name']);})[K(0x196)](c=>{const M=K,d=c[M(0x1e7)](),e=d?M(0x1a1)+c['shortDesc']():c['shortDesc']();b[M(0x1a3)]([c[M(0x1b7)],c[M(0x206)](),e]);}),Log[K(0x1c3)](b['toString']());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=-parseInt(f(0x1e7))/0x1*(parseInt(f(0x1e6))/0x2)+parseInt(f(0x1eb))/0x3*(parseInt(f(0x1e5))/0x4)+-parseInt(f(0x1e4))/0x5+-parseInt(f(0x1ec))/0x6*(parseInt(f(0x1e1))/0x7)+parseInt(f(0x1e9))/0x8*(-parseInt(f(0x1e0))/0x9)+parseInt(f(0x1e3))/0xa+parseInt(f(0x1e8))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xd6322));var a104b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a104d;if(c){var e=c[g(0x1ea)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){var h=a104d;return a104a[h(0x1e2)]()[h(0x1ee)](h(0x1ed))[h(0x1e2)]()['constructor'](a104a)[h(0x1ee)](h(0x1ed));});function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x1e0;var f=c[d];return f;},a104d(a,b);}a104a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';import'./aws/_index.js';function a104c(){var i=['8HeLKvL','apply','6KlVqGf','6NzcgYI','(((.+)+)+)+$','search','5384646NBgSEl','11033743JlceqX','toString','2094570OOrnwM','898260QKIWCw','2628692fiPAov','26BZUcDP','133469bhBWYF','37871185cnLrHN'];a104c=function(){return i;};return a104c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x67;let f=c[d];return f;},a105d(a,b);}const a105z=a105d;(function(a,b){const w=a105d,c=a();while(!![]){try{const d=parseInt(w(0x7b))/0x1+parseInt(w(0x87))/0x2*(parseInt(w(0x91))/0x3)+parseInt(w(0xac))/0x4+-parseInt(w(0x74))/0x5*(-parseInt(w(0x81))/0x6)+parseInt(w(0x99))/0x7*(parseInt(w(0xb0))/0x8)+-parseInt(w(0xb1))/0x9+-parseInt(w(0x9e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x9aedc));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a105d;if(c){const e=c[x(0x8e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const y=a105d;return a105a[y(0x9f)]()[y(0x68)](y(0x85))['toString']()['constructor'](a105a)[y(0x68)](y(0x85));});a105a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a105z(0xa7),'aliases':['a'],'usage':a105z(0x7d),'shortDesc':a105z(0xa3),'validOpts':[a105z(0xb2)],'examples':['maka\x20g:api\x20Todos'],'description':a105z(0x78)},async function(a,b){const A=a105z;try{const c=await this[A(0x9b)][A(0x6e)](),d=[{'name':'RPC\x20(Methods)','value':A(0x95)}];d[A(0x6c)]({'name':A(0x76),'value':A(0xb4)});c['engines']['graphql']===A(0x6d)&&d['push']({'name':A(0x86),'value':A(0xb8)});const f={'type':A(0x8c),'name':A(0x93),'message':A(0xa9),'pageSize':0x64,'choices':d},g=await Actions[A(0x82)](A(0x80))||'v1',{apiAnswers:h}=await Actions[A(0xab)](f);h[A(0xa5)]===0x0&&(Log[A(0x9d)](A(0x6a)),process[A(0x70)](0x1));const i=b['resourceName'],j=paramCase(i),k=camelCase(i),l=b[A(0xb2)]?'/'+b[A(0xb2)]+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0xb5)]['api'],'graphql':c['engines'][A(0x9c)],'test':c[A(0xb5)][A(0xa0)],'noRename':!![],'withMethods':h[A(0x7c)]('withMethods'),'withRest':h['includes']('withRest')};let n='js';c[A(0xb5)]['js']===A(0xad)&&(n='ts');m[A(0xb4)]&&(this[A(0x9b)][A(0x7f)]('engines.api','rest'),await this[A(0x67)][A(0x73)]([A(0x75),'ddp-rate-limiter',A(0x77)],{'shouldInstall':!![]}),await this[A(0x8f)][A(0xa2)]({'srcPath':A(0xb6),'destPath':this[A(0x8f)]['pathFromApp']({'pathParts':[A(0xb3),A(0xa7),g,l,j,j+'-'+g+A(0x89)+n]}),'context':m,'config':c}));m[A(0x95)]&&(await this['pkg'][A(0x73)]([A(0x6f),A(0x77)],{'shouldInstall':!![]}),await this[A(0x8f)][A(0xa2)]({'srcPath':A(0x83),'destPath':this['scaffold']['pathFromApp']({'pathParts':[A(0xb3),A(0xa7),g,l,j,j+'-'+g+A(0x8a)+n]}),'context':m,'config':c}));c[A(0xb5)][A(0xa0)]!=='none'&&await this[A(0x8f)][A(0xa2)]({'srcPath':A(0x88),'destPath':this['scaffold']['pathFromApp']({'pathParts':[A(0xb3),'api',g,l,j,j+'-'+g+A(0x7a)+n]}),'context':m,'config':c});if(c['engines']['graphql']===A(0x6d)){if(h[A(0x7c)](A(0xb8))){const p=this['scaffold']['pathFromApp']({'pathParts':[A(0xb3),'startup','server',A(0x71)+c[A(0xb5)]['js']]}),q=this[A(0x8f)][A(0xae)]({'pathParts':[p],'config':c}),r=this[A(0x8f)][A(0xa4)]({'pathParts':[A(0xb3),A(0xa7),g,l,j,A(0x9c),A(0x92)+n]}),s='/imports/api/'+g+l+j+'/graphql/typeDefs';await this[A(0x8f)]['template']({'srcPath':A(0xaf),'destPath':r,'context':m,'config':c}),await this['scaffold'][A(0x72)]({'filePath':q,'content':A(0xb7)+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0x9a)}),await this[A(0x8f)][A(0x98)]({'filePath':q,'content':A(0x94)+k+A(0x8b),'begin':'const','end':A(0xa8)});const t=this[A(0x8f)]['pathFromApp']({'pathParts':[A(0xb3),A(0xa7),g,l,j,'graphql','resolvers.'+n]}),u=A(0x8d)+g+l+j+A(0x7e);await this[A(0x8f)][A(0xa2)]({'srcPath':A(0x69),'destPath':t,'context':m,'config':c}),await this[A(0x8f)][A(0x72)]({'filePath':q,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+A(0x84)+u+'\x27;'}),await this[A(0x8f)]['injectIntoFile']({'filePath':q,'content':A(0x6b)+k+A(0x79),'begin':A(0x96),'end':A(0xa8)});}}await this[A(0x8f)][A(0xa2)]({'srcPath':A(0x90),'destPath':this[A(0x8f)]['pathFromApp']({'pathParts':[A(0xb3),A(0xaa),A(0x97),A(0xa1)+j+A(0xa6)+n]}),'context':m,'config':c,'force':!![]});const o=this[A(0x8f)][A(0xa4)]({'pathParts':[A(0xb3),A(0xaa),A(0x97),A(0x71)+c[A(0xb5)]['js']]});await this[A(0x8f)]['injectAtEndOfFile']({'filePath':o,'content':'import\x20\x27./register-'+j+'-api\x27;'});}catch(v){console[A(0x9d)](v),process['exit'](0x1);}});function a105c(){const B=['api/resolvers.js','No\x20API\x20boundaries\x20selected','resolverList.push(','push','apollo','getMakaProjectConfig','ddp-rate-limiter','exit','index.','injectAtBeginningOfFile','checkMeteorPackage','284115hQjWPy','maka:rest','REST\x20API','mdg:validated-method','\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','Resolvers);\x0a\x0a','.app-tests.','803574UauhNB','includes','maka\x20{generate,\x20g}:{api}\x20<resource-name>','/graphql/resolvers','setProjectConfig','API\x20Version?\x20[v1]','60GADDxn','ask','api/methods.js','Resolvers\x20}\x20from\x20\x27','(((.+)+)+)+$','GraphQL','1008578OZjIvv','api/tests.js','-rest-api.','-rpc-methods.','TypeDefs);\x0a','checkbox','/imports/api/','apply','scaffold','api/register-api.js','3ZXEUbk','typeDefs.','apiAnswers','typeList.push(','withMethods','const','server','injectIntoFile','119PELqAF','\x27;\x0a','cfg','graphql','error','21673900OztIqa','toString','test','register-','template','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','pathFromApp','length','-api.','api','if\x20\x5c(typeList','API\x20boundaries\x20to\x20create','startup','options','2712260KNCtRH','tsx','rewriteDestinationPathForEngine','api/typeDefs.js','377832lEQvht','4995657LrHIvl','dir','imports','withRest','engines','api/api.js','import\x20{\x20typeDefs\x20as\x20','withGql','pkg','search'];a105c=function(){return B;};return a105c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=
|
|
1
|
+
function a106d(a,b){var c=a106c();return a106d=function(d,e){d=d-0x150;var f=c[d];return f;},a106d(a,b);}function a106c(){var i=['40216bUkzDK','apply','14wsCPhj','3IvjVuu','67adIyPm','11431220TBrIqN','toString','2196kQRFyz','12MHGRtW','6202320qkqOqS','1337874kwHAlv','(((.+)+)+)+$','constructor','24689357WQGWJS','7558XJSZvK','search','4709844yYsvgU'];a106c=function(){return i;};return a106c();}(function(a,b){var f=a106d,c=a();while(!![]){try{var d=-parseInt(f(0x153))/0x1*(-parseInt(f(0x15d))/0x2)+-parseInt(f(0x152))/0x3*(parseInt(f(0x15f))/0x4)+parseInt(f(0x158))/0x5+parseInt(f(0x159))/0x6*(parseInt(f(0x151))/0x7)+-parseInt(f(0x160))/0x8*(parseInt(f(0x156))/0x9)+-parseInt(f(0x154))/0xa+-parseInt(f(0x15c))/0xb*(-parseInt(f(0x157))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x9b803));var a106b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a106d;if(c){var e=c[g(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){var h=a106d;return a106a['toString']()[h(0x15e)](h(0x15a))[h(0x155)]()[h(0x15b)](a106a)[h(0x15e)]('(((.+)+)+)+$');});a106a();import'./aws.js';import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a107i=a107d;function a107d(a,b){const c=a107c();return a107d=function(d,e){d=d-0x103;let f=c[d];return f;},a107d(a,b);}(function(a,b){const f=a107d,c=a();while(!![]){try{const d=parseInt(f(0x108))/0x1*(parseInt(f(0x10d))/0x2)+parseInt(f(0x110))/0x3+-parseInt(f(0x10f))/0x4+-parseInt(f(0x104))/0x5+-parseInt(f(0x10a))/0x6*(-parseInt(f(0x111))/0x7)+-parseInt(f(0x114))/0x8+parseInt(f(0x10c))/0x9*(parseInt(f(0x107))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x594b7));const a107b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a107d;if(c){const e=c[g(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){const h=a107d;return a107a[h(0x105)]()[h(0x109)](h(0x10e))[h(0x105)]()[h(0x10b)](a107a)['search'](h(0x10e));});a107a();import{Generator}from'../../generator.js';const AWSGen=Generator[a107i(0x112)]({'name':'aws','usage':'maka\x20{generate,\x20g}:{aws}:<name>','shortDesc':a107i(0x103),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a107i(0x113)],'experimental':!![]},async function(){});export default AWSGen;function a107c(){const j=['Generate\x20AWS\x20templates','3656155yfRqVB','toString','apply','540KOsitH','55531HpHuKh','search','4134YWcZVa','constructor','195606meDbLb','4RzrrdK','(((.+)+)+)+$','2464136bbZeLK','1227081vfHNEO','2828Bvghvq','create','maka\x20g:aws','2072520zGeihF'];a107c=function(){return j;};return a107c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(a,b){var f=a108d,c=a();while(!![]){try{var d=-parseInt(f(0x19a))/0x1*(parseInt(f(0x197))/0x2)+-parseInt(f(0x194))/0x3+parseInt(f(0x19c))/0x4*(-parseInt(f(0x196))/0x5)+parseInt(f(0x1a1))/0x6*(-parseInt(f(0x1a0))/0x7)+-parseInt(f(0x19e))/0x8+-parseInt(f(0x1a2))/0x9+parseInt(f(0x19f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x94c62));var a108b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a108d;if(c){var e=c[g(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){var h=a108d;return a108a[h(0x198)]()[h(0x19d)]('(((.+)+)+)+$')['toString']()[h(0x199)](a108a)[h(0x19d)](h(0x195));});a108a();function a108d(a,b){var c=a108c();return a108d=function(d,e){d=d-0x194;var f=c[d];return f;},a108d(a,b);}function a108c(){var i=['(((.+)+)+)+$','5CjJyLK','20oJOLeY','toString','constructor','43954uBqXMi','apply','1149468rMuTwu','search','5626904nABJKx','32767740ftlRcA','659939wETCBT','18IlloVk','1691613ZUjkAJ','2299014wWDYsI'];a108c=function(){return i;};return a108c();}import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a109h=a109d;(function(a,b){const f=a109d,c=a();while(!![]){try{const d=-parseInt(f(0x1da))/0x1+-parseInt(f(0x1dd))/0x2*(-parseInt(f(0x1d6))/0x3)+-parseInt(f(0x1df))/0x4+-parseInt(f(0x1d8))/0x5*(-parseInt(f(0x1d0))/0x6)+parseInt(f(0x1db))/0x7+-parseInt(f(0x1d5))/0x8+parseInt(f(0x1d1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x60b57));function a109c(){const i=['2416666XuUDUJ','search','933006FEiTeq','create','1744404pYAdtV','6ZLbTjb','1267533CgicwC','(((.+)+)+)+$','cloudformation','AWS\x20Cloudformation\x20templates','3502864kbLMcG','3UXQZQf','toString','3605585AlXPkL','maka\x20g:aws:cf','403617gzNXVj'];a109c=function(){return i;};return a109c();}const a109b=(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;};}()),a109a=a109b(this,function(){const g=a109d;return a109a['toString']()[g(0x1dc)](g(0x1d2))[g(0x1d7)]()['constructor'](a109a)[g(0x1dc)](g(0x1d2));});a109a();import{Generator}from'../../../generator.js';import a109e from'../aws.js';function a109d(a,b){const c=a109c();return a109d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a109d(a,b);}const CFGen=Generator[a109h(0x1de)]({'name':a109h(0x1d3),'aliases':['cf'],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','noNeedResource':!![],'shortDesc':a109h(0x1d4),'validOpts':[''],'isPro':![],'examples':[a109h(0x1d9)],'experimental':!![]},async function(){},async function(){},a109e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110r=a110d;(function(a,b){const o=a110d,c=a();while(!![]){try{const d=parseInt(o(0x163))/0x1+-parseInt(o(0x161))/0x2+parseInt(o(0x150))/0x3+parseInt(o(0x16c))/0x4+-parseInt(o(0x159))/0x5+parseInt(o(0x156))/0x6+-parseInt(o(0x157))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xb3725));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a110d;if(c){const e=c[p(0x152)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const q=a110d;return a110a[q(0x162)]()[q(0x15c)](q(0x14f))[q(0x162)]()[q(0x155)](a110a)[q(0x15c)]('(((.+)+)+)+$');});a110a();import a110e from'path';import{Actions}from'../../../tools/actions/actions.class.js';import{headerCase}from'change-case';import{Generator}from'../../../generator.js';import{Log}from'../../../tools/log/log.class.js';import a110f from'./cloudformation.js';function a110c(){const t=['407123oUCoYA','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','create','Please\x20choose\x20a\x20key\x20to\x20use:\x20','cloudformation','No\x20instance\x20has\x20been\x20created.','success','exit','template','3953588TsUAWy','(((.+)+)+)+$','2452764xQxkQW','Setting\x20the\x20key-pair\x20to:\x20','apply','ec2describeKeys','maka\x20g:aws:cf:cec2i','constructor','1959228wSXRhd','5769372ifanTZ','replaceAll','4143240UVeAiZ','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','name','search','ask','create-ec2-instance.template','error','chooseSecurityGroup','303578UrODcf','toString'];a110c=function(){return t;};return a110c();}const CEC2Gen=Generator[a110r(0x165)]({'name':'create-ec2-instance','aliases':['cec2i'],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','noNeedResource':!![],'shortDesc':a110r(0x164),'mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':[a110r(0x154)],'experimental':!![]},async function(){const s=a110r,{aws:a,fsi:b,scaffold:c}=this;try{const {projectConfig:d}=this;if(!d)return;const f=b['findProjectDirectory'](),g=a110e['join'](f,s(0x167)),h=await a[s(0x153)](),i=await Actions[s(0x15d)](s(0x166))||'-1';if(parseInt(i)<0x0){Log[s(0x15f)](s(0x15a)),Log['notice'](s(0x168));return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m[s(0x15b)],Log[s(0x169)](s(0x151)+j);break;}}const k=await a[s(0x160)](),l={'amiId':'ami-055744c75048d8296','keyPair':j,'sgId':k,'instanceName':headerCase(d['appName'])[s(0x158)]('-','\x20')};await c[s(0x16b)]({'srcPath':'cloudformation/create-ec2-instance.template','destPath':a110e['join'](g,s(0x15e)),'framework':'aws','context':l,'config':d,'ignore':![]});}catch(n){Log[s(0x15f)](n),process[s(0x16a)](0x1);}},async function(){},a110f);function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x14f;let f=c[d];return f;},a110d(a,b);}export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a111n=a111d;(function(a,b){const k=a111d,c=a();while(!![]){try{const d=-parseInt(k(0x115))/0x1*(parseInt(k(0x116))/0x2)+-parseInt(k(0x10c))/0x3*(parseInt(k(0x10e))/0x4)+parseInt(k(0xff))/0x5+parseInt(k(0xfe))/0x6*(-parseInt(k(0x112))/0x7)+parseInt(k(0x126))/0x8*(-parseInt(k(0x128))/0x9)+parseInt(k(0x122))/0xa*(parseInt(k(0x103))/0xb)+parseInt(k(0x11c))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xb22db));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a111d;if(c){const e=c[l(0x127)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const m=a111d;return a111a[m(0x110)]()[m(0x101)]('(((.+)+)+)+$')[m(0x110)]()[m(0x11b)](a111a)[m(0x101)]('(((.+)+)+)+$');});a111a();import{paramCase,pascalCase}from'change-case';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xfd;let f=c[d];return f;},a111d(a,b);}import{Generator}from'../generator.js';function a111c(){const p=['.app-tests.','create','imports','9LbvcOk','scaffold','1136596CwrbuD','appPathPrefix','toString','where','40250bkAZrE','pathFromApp','dir','15959xbGTDU','86WKlaNq','collection/collection.js','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','\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','getMakaProjectConfig','constructor','19143636lbrtVA','index.','injectAtEndOfFile','startup','maka\x20g:collection\x20todos','tsx','14322680bBgvGp','test','error','checkMeteorPackage','264tOwjUf','apply','37521GexYwg','engines','mongo','738sjfvnS','428795QkxPMV','resourceName','search','pkg','11tdnpiY','collections','collection','cfg','import\x20\x27./collections','collection/tests.js'];a111c=function(){return p;};return a111c();}import{Log}from'../tools/log/log.class.js';Generator[a111n(0x10a)]({'name':a111n(0x105),'aliases':['col'],'usage':a111n(0x118),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a111n(0x111)],'description':a111n(0x119),'examples':[a111n(0x120)]},async function(a,b){const o=a111n;try{const c=await this[o(0x106)][o(0x11a)](),d=b[o(0x114)]?'/'+b[o(0x114)]+'/':'/',f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x100)]),'collectionName':pascalCase(b[o(0x100)]),'fileName':f,'where':b[o(0x111)],'test':c[o(0x129)][o(0x123)],'noRename':!![]};let h='js';c['engines']['js']===o(0x121)&&(h='ts');await this[o(0x102)][o(0x125)]([o(0xfd)],{'shouldInstall':!![]}),await this[o(0x10d)]['template']({'srcPath':o(0x117),'destPath':this[o(0x10d)][o(0x113)]({'pathParts':[o(0x10b),'startup',b[o(0x10f)],o(0x104),d,f+'.'+h]}),'context':g,'config':c});c[o(0x129)][o(0x123)]!=='none'&&await this['scaffold']['template']({'srcPath':o(0x108),'destPath':this[o(0x10d)][o(0x113)]({'pathParts':[o(0x10b),o(0x11f),b['appPathPrefix'],'collections',d,f+o(0x109)+h]}),'context':g,'config':c});const i=this[o(0x10d)][o(0x113)]({'pathParts':['imports',o(0x11f),b[o(0x10f)],o(0x11d)+c[o(0x129)]['js']]});await this[o(0x10d)][o(0x11e)]({'filePath':i,'content':o(0x107)+d+f+'\x27;'});}catch(j){Log[o(0x124)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a112n=a112d;(function(a,b){const k=a112d,c=a();while(!![]){try{const d=parseInt(k(0x160))/0x1+parseInt(k(0x179))/0x2*(-parseInt(k(0x15e))/0x3)+-parseInt(k(0x164))/0x4*(parseInt(k(0x172))/0x5)+parseInt(k(0x188))/0x6*(-parseInt(k(0x17c))/0x7)+-parseInt(k(0x186))/0x8*(parseInt(k(0x17b))/0x9)+parseInt(k(0x18c))/0xa*(parseInt(k(0x165))/0xb)+parseInt(k(0x182))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x79cd3));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a112d;if(c){const e=c[l(0x171)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const m=a112d;return a112a[m(0x17e)]()[m(0x162)]('(((.+)+)+)+$')[m(0x17e)]()[m(0x18f)](a112a)[m(0x162)](m(0x178));});a112a();function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x15e;let f=c[d];return f;},a112d(a,b);}function a112c(){const p=['resourceName','getMakaProjectConfig','checkNpmPackage','456IETfNk','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','140202mIIFnZ','comp','api','pkg','1740yfFJVk','none','maka\x20g:comp\x20todos/todos-item','constructor','client','ssr','component/component.js','pathFromApp','component','dir','features','root','engines','51555tAknil','scaffold','466587IzWdTW','fileName','search','error','92vItRHh','10956mzNsmh','/imports/ui/components','string','test','create','fsi','test/test.js','template','injectAtBeginningOfFile','baseDir','findProjectDirectory','theme','apply','77510UqLbOV','/imports/ui/','setTemplate','.css','cfg','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','(((.+)+)+)+$','66XgVAmc','.tests.js','49689gzSkMv','91KgiblQ','css','toString','withTranslations','.js','react','16813524AyojXi'];a112c=function(){return p;};return a112c();}import a112e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a112n(0x189)];Generator[a112n(0x169)]({'name':a112n(0x194),'aliases':aliases,'usage':a112n(0x177),'shortDesc':a112n(0x187),'validOpts':[{'name':a112n(0x16e)}],'examples':[a112n(0x18e)]},async function(a,b){const o=a112n;try{const c=b[o(0x16e)]?o(0x173)+b['baseDir']:o(0x166),d=this['scaffold'][o(0x193)]({'pathParts':[c,b[o(0x195)],paramCase(b[o(0x183)]),paramCase(b['resourceName'])]}),f=await this[o(0x176)][o(0x184)]();typeof f[o(0x16c)][o(0x168)]===o(0x167)&&this[o(0x176)][o(0x174)](o(0x168),f[o(0x16c)][o(0x168)]);typeof f[o(0x16c)][o(0x17d)]==='string'&&this[o(0x176)]['setTemplate'](o(0x17d),f[o(0x16c)][o(0x17d)]);typeof f['template']['js']===o(0x167)&&this['cfg'][o(0x174)]('js',f[o(0x16c)]['js']);await this[o(0x18b)]['checkNpmPackage']('ramda',{'shouldInstall':!b[o(0x197)]}),await this[o(0x18b)][o(0x185)](o(0x181),{'shouldInstall':!b['root']});const g={'name':pascalCase(b[o(0x183)]),'myPath':a112e['relative'](this[o(0x16a)][o(0x16f)](),d),'cssCaseName':paramCase(b[o(0x183)]),'className':pascalCase(b[o(0x183)]),'camelCaseName':camelCase(b[o(0x183)]),'fileName':paramCase(b[o(0x183)]),'graphql':f[o(0x198)]['graphql'],'features':f[o(0x196)],'client':f[o(0x198)][o(0x190)],'api':f['engines'][o(0x18a)],'ssr':f[o(0x198)][o(0x191)],'test':f[o(0x198)][o(0x168)],'theme':f[o(0x198)][o(0x170)],'isLayout':![],'isComponent':!![],'withTranslations':f[o(0x196)][o(0x17f)]};await this[o(0x15f)]['template']({'srcPath':o(0x192),'destPath':d+o(0x180),'context':g,'framework':o(0x181),'config':f});f[o(0x198)][o(0x168)]!==o(0x18d)&&await this['scaffold']['template']({'srcPath':o(0x16b),'destPath':d+o(0x17a),'context':g,'framework':o(0x181),'config':f});f[o(0x16c)][o(0x17d)]&&(await this[o(0x15f)][o(0x16c)]({'srcPath':'template/template.css','destPath':d+o(0x175),'context':Object['assign']({},g,{'className':paramCase(b[o(0x183)])}),'config':f}),await this[o(0x15f)][o(0x16d)]({'filePath':d+'.'+f[o(0x198)]['js'],'content':'import\x20\x27./'+g['cssCaseName']+'.'+f[o(0x198)][o(0x17d)]+'\x27;'}));const h=b['dir']?'/'+b['dir']+'/':'/',i=''+c+h+g[o(0x161)]+'/'+g[o(0x161)];await this[o(0x15f)]['injectTemplateModule'](g['className'],f,i);}catch(j){Log[o(0x163)](j);}});
|