@maka/maka-cli 4.13.7 → 4.13.10
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 +3 -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/patreon.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
function a96c(){const k=['3mLqbYf','apply','(((.+)+)+)+$','findSubCommand','2892gcgjQj','9KLndoX','toString','maka\x20set:<sub-command>','2456530KUHHHi','runSubCommand','2317eiQYEa','set','1VUfERd','search','409748NNnTfX','12808774VLVglP','Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','2094728qAImoa','2108845ZmxgoJ','1676176GaCVZz','\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'];a96c=function(){return k;};return a96c();}function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x168;let f=c[d];return f;},a96d(a,b);}const a96i=a96d;(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x173))/0x1*(parseInt(f(0x175))/0x2)+parseInt(f(0x17c))/0x3*(parseInt(f(0x17a))/0x4)+parseInt(f(0x179))/0x5+-parseInt(f(0x16b))/0x6*(parseInt(f(0x171))/0x7)+parseInt(f(0x178))/0x8+parseInt(f(0x16c))/0x9*(parseInt(f(0x16f))/0xa)+-parseInt(f(0x176))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x37f55));const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a[h(0x16d)]()[h(0x174)](h(0x169))['toString']()['constructor'](a96a)[h(0x174)](h(0x169));});a96a();import{Command}from'../../command.js';const SetCommand=Command['create']({'name':a96i(0x172),'usage':a96i(0x16e),'shortDesc':a96i(0x177),'description':a96i(0x17b),'validOpts':[]},async function(a,b){const j=a96i,c=a[0x0],d=this[j(0x16a)](c);d&&this[j(0x170)](c,a,b);});export default SetCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a97n=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0xa3))/0x1+-parseInt(k(0xa6))/0x2*(-parseInt(k(0xb7))/0x3)+-parseInt(k(0xa0))/0x4*(-parseInt(k(0xbb))/0x5)+-parseInt(k(0xbe))/0x6+-parseInt(k(0xbd))/0x7+-parseInt(k(0xae))/0x8*(-parseInt(k(0xba))/0x9)+-parseInt(k(0xab))/0xa*(-parseInt(k(0xa7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xce2ff));function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x9e;let f=c[d];return f;},a97d(a,b);}const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a97d;if(c){const e=c[l(0xac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const m=a97d;return a97a[m(0xa4)]()[m(0xc0)](m(0xb0))[m(0xa4)]()['constructor'](a97a)[m(0xc0)](m(0xb0));});a97a();import a97e from'fs';import a97f from'path';import{Command}from'../command.js';function a97c(){const p=['env','3591136YuYSjO','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','(((.+)+)+)+$','getAppConfigPath','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','parse','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','verbose','maka\x20ssh\x20--env\x20dev','15szLxZm','ssh.json','readFileSync','27yRjduK','91940mOJCTE','length','7615972CAwbOO','7451202pZJRTm','fsi','search','maka\x20ssh\x20--env\x20staging','ssh','312RLtCSH','error','assign','121669WCYrjE','toString','getEnvFromShorthand','104946lsUdZr','253IaxtpN','maka\x20ssh\x20<command>','exit','create','109900vrxwmh','apply'];a97c=function(){return p;};return a97c();}import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a97n(0xaa)]({'name':a97n(0x9f),'usage':a97n(0xa8),'mustBeInMakaProject':!![],'requiredOpts':[a97n(0xad)],'validOpts':['env',a97n(0xb5)],'shortDesc':a97n(0xaf),'examples':[a97n(0xb6),a97n(0x9e),'maka\x20ssh\x20--env\x20prod','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22',a97n(0xb2),a97n(0xb4)]},async function(a,b){const o=a97n;try{const c=this[o(0xbf)][o(0xa5)](b[o(0xad)]),d=this[o(0xbf)][o(0xb1)](c);let f='';a[o(0xbc)]>0x0&&(f=a[0x0]);const g=a97f['join'](c,o(0xb8)),h=a97e[o(0xb9)](g)[o(0xa4)](),i=JSON[o(0xb3)](h);Object[o(0xa2)](i,{'env':d}),SSH['sshSync'](f,i,{'tty':!![],'verbose':!![],'sshVerbose':b[o(0xb5)]});}catch(j){Log[o(0xa1)](j),process[o(0xa9)](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a98y=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=-parseInt(w(
|
|
1
|
+
const a98y=a98d;(function(a,b){const w=a98d,c=a();while(!![]){try{const d=-parseInt(w(0x1fa))/0x1+-parseInt(w(0x20b))/0x2+-parseInt(w(0x1f7))/0x3+parseInt(w(0x1f5))/0x4+-parseInt(w(0x211))/0x5+-parseInt(w(0x214))/0x6+parseInt(w(0x212))/0x7*(parseInt(w(0x215))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0xc62fd));const a98b=(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;};}()),a98a=a98b(this,function(){const x=a98d;return a98a['toString']()['search'](x(0x21a))[x(0x22f)]()[x(0x207)](a98a)[x(0x219)](x(0x21a));});a98a();import a98e from'fs';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0x1f4;let f=c[d];return f;},a98d(a,b);}import a98f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';function a98c(){const A=['appName','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','notice','getMakaProjectConfig','439905UqFYdG','280dbFOSi','Checking\x20remote\x20host\x20availability','7823994JvbDXI','981352tbJOHZ','join','fsi','Verifying\x20Letsencrypt\x20configuration','search','(((.+)+)+)+$','emailUpdate','Remote\x20host\x20connection\x20successful','Using\x20saved\x20letsencrypt\x20config','letsencrypt.json','success','generate-csr','readFileSync','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','Create\x20and\x20manage\x20your\x20SSL\x20operations.','ssl','genCSR','genSSC','Please\x20provide\x20a\x20command.','.crt','sudo\x20snap\x20install\x20--classic\x20certbot','letsencrypt','ssh','start','ask','create','toString','parse','mkKeysDir','domains','New\x20CSR\x20written\x20to\x20','551016evrXTP','domainNames','2822598aFyvKO','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','1012323MQHtUb','stringify','ping','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','generate-ssc','email','[?]\x20Domains\x20to\x20register:\x20','uname\x20-a','writeFileSync','maka\x20ssl\x20[command]','.key','.csr','constructor','error','existsSync','withSpinner','1775144RYRLAK','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20'];a98c=function(){return A;};return a98c();}Command[a98y(0x22e)]({'name':a98y(0x224),'usage':a98y(0x204),'validOpts':['domains',a98y(0x200)],'requiredOpts':['env'],'shortDesc':a98y(0x223),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':['maka\x20ssl\x20--env\x20dev\x20generate-csr',a98y(0x1f9),a98y(0x1fd)]},async function(a,b){const z=a98y,c=this[z(0x217)][z(0x210)](),d=this[z(0x217)]['getEnvFromShorthand'](b['env']),f=this[z(0x217)]['getAppConfigPath'](d),g=this['fsi'][z(0x231)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h===z(0x220))SSL[z(0x225)]({'keyName':c[z(0x20d)]+'.key','csrName':c[z(0x20d)]+'.csr','cwd':g});else{if(h===z(0x1ff)){if(!a98e[z(0x209)](a98f[z(0x216)](g,c[z(0x20d)]+z(0x205))))throw z(0x20c)+a98f[z(0x216)](g,c[z(0x20d)]+z(0x205));if(!a98e['existsSync'](a98f[z(0x216)](g,c['appName']+z(0x206))))throw z(0x20e)+a98f[z(0x216)](g,c[z(0x20d)]+z(0x206));SSL[z(0x226)]({'keyName':c['appName']+z(0x205),'crtName':c[z(0x20d)]+z(0x228),'cwd':g}),Log[z(0x20f)](z(0x1f4)+g);}else{if(h===z(0x22a)){let i=b[z(0x232)],j=b[z(0x200)];try{const q=a98e[z(0x221)](a98f['join'](f,z(0x21e)))[z(0x22f)](),r=JSON[z(0x230)](q);i=b['domains']?b[z(0x232)]:r[z(0x1f6)],j=b[z(0x200)]?b[z(0x200)]:r[z(0x21b)],(!b[z(0x200)]||!b[z(0x232)])&&Log['notice'](z(0x21d));}catch(s){}const k=JSON[z(0x230)](a98e['readFileSync'](f+'/ssh.json')[z(0x22f)]());Object['assign'](k,{'env':f}),Log[z(0x20f)](z(0x213));try{const t=SSH[z(0x1fc)](z(0x202),k);if(!t)throw z(0x1f8);if(t)Log[z(0x21f)](z(0x21c));}catch(u){Log[z(0x208)](u);return;}const l=Log[z(0x20a)]();l[z(0x22c)](z(0x218)),SSH[z(0x22b)](z(0x1fe),{...k}),SSH['ssh'](z(0x229),{...k}),SSH[z(0x22b)](z(0x222),{...k}),l[z(0x21f)]();const m=i?i:await Actions[z(0x22d)](z(0x201)),n=j?j:await Actions[z(0x22d)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[z(0x22b)]('sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20'+m+'\x20--email\x20'+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[z(0x1fb)](o,null,0x2);a98e[z(0x203)](a98f[z(0x216)](f,z(0x21e)),p);}else throw z(0x227);}}}catch(v){console['error'](v),process['exit'](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99r=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(
|
|
1
|
+
function a99c(){const u=['create','--driver','settings.json','isFile','process.env','slice','warn','once','constructor','toString','exit','--settings','findProjectDirectory','meteortesting:mocha','test','join','1739053OXLOge','22290NRuMUi','1685lsijlN','forEach','driver-package','error','fsi','rawLogs','--packages','--env','none','local','Node\x20Env\x20Config:\x20','driver','filter','(((.+)+)+)+$','27992096NXiyKu','invokeMeteorCommand','1780450qkjJtM','unit','getEnvFromShorthand','notice','argv','mocha','concat','--full-app','maka\x20test','utf8','2358580eVWCLt','search','1484190DHUrKt','packages','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','env','apply','Cannot\x20find\x20Node\x20Environment\x20File:\x20','sanjo:jasmine','test-packages','config.json','getAppConfigPath','driverPackage','engines','config','tests','Meteor\x20Settings:\x20','5335988iiqkfq','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','splice'];a99c=function(){return u;};return a99c();}const a99r=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(0x115))/0x1+parseInt(n(0xe7))/0x2+parseInt(n(0xf3))/0x3+-parseInt(n(0x102))/0x4+-parseInt(n(0x117))/0x5*(parseInt(n(0x116))/0x6)+parseInt(n(0xf1))/0x7+parseInt(n(0xe5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xdab9e));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0xf7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x10e)]()[p(0xf2)](p(0xe4))[p(0x10e)]()[p(0x10d)](a99a)['search'](p(0xe4));});a99a();import a99e from'fs';import a99f from'path';import a99g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xe4;let f=c[d];return f;},a99d(a,b);}const syncSource=function(a){const q=a99d;a99e['openSync'](a,'r'),a99g[q(0xff)]({'path':a});};Command[a99r(0x105)]({'name':'test','mustBeInMakaProject':!![],'validOpts':['once','packages',a99r(0x122),a99r(0xfd),a99r(0xe8),a99r(0xf6),a99r(0x11c),'port','inspect','testAppPath'],'usage':a99r(0xef),'aliases':['t',a99r(0x100)],'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const s=a99r;try{const c=b[s(0xf6)]?this[s(0x11b)][s(0xe9)](b[s(0xf6)]):s(0x120),d=this['fsi'][s(0xfc)](c);(!b['unit']||!!b[s(0x10c)])&&(a=a['concat']([s(0xee)]));b[s(0xe8)]&&delete b[s(0xe8)];let f=b[s(0x119)]||b[s(0x122)]||s(0x11f);if(f===s(0x11f)){const k=JSON['parse'](a99e['readFileSync'](a99f['join'](this[s(0x11b)][s(0x111)](),'.maka',s(0xfb)),s(0xf0)));if(k['engines'][s(0x113)]==='jasmine')f=s(0xf9);else k[s(0xfe)]['test']===s(0xec)&&(f=s(0x112));}if(f===s(0x11f))throw s(0x103);(!b[s(0x119)]||!b['driver'])&&(a=a[s(0xed)](['--driver-package',f]));const g=a99f[s(0x114)](d,s(0x107));this['fsi'][s(0x108)](g)?(Log['notice'](s(0x101)+g),a=a[s(0xed)]([s(0x110),g])):Log['warn'](s(0xf5)+g);const h=a99f['join'](d,s(0x109));this[s(0x11b)][s(0x108)](d)?(Log[s(0xea)](s(0x121)+h),syncSource(h)):Log[s(0x10b)](s(0xf8)+h);const i=process[s(0xeb)][s(0x10a)](0x2)['filter'](l=>l!==s(0x11e))[s(0x123)](l=>l!==s(0x113))[s(0x123)](l=>l!==a[0x0]);i[s(0x118)]((l,m)=>{const t=s;(l==='--env'||l===t(0x106))&&i['splice'](m,0x2),l===t(0x11d)&&i[t(0x104)](m,0x1);});const j=b[s(0xf4)]?s(0xfa):s(0x113);this[s(0x11b)][s(0xe6)](j,a[s(0xed)](i));}catch(l){console[s(0x11a)](l),process[s(0x10f)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a100i=a100d;(function(a,b){var f=a100d,c=a();while(!![]){try{var d=-parseInt(f(0xbf))/0x1*(parseInt(f(0xc5))/0x2)+parseInt(f(0xc3))/0x3*(-parseInt(f(0xbc))/0x4)+-parseInt(f(0xc0))/0x5+-parseInt(f(0xca))/0x6+parseInt(f(0xc2))/0x7+-parseInt(f(0xc7))/0x8+parseInt(f(0xc9))/0x9*(parseInt(f(0xc6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xc59c6));function a100d(a,b){var c=a100c();return a100d=function(d,e){d=d-0xbc;var f=c[d];return f;},a100d(a,b);}function a100c(){var k=['Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','2fiBWMx','10LCDdWH','7639400iDrjBq','search','36516411CxpnlB','1667262BuUnEA','undo','88kSdpRJ','apply','(((.+)+)+)+$','1427527oSnSkU','3795280tNlMLn','toString','5892012KjVEZG','91404PrnuXq'];a100c=function(){return k;};return a100c();}var a100b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a100d;if(c){var e=c[g(0xbd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){var h=a100d;return a100a[h(0xc1)]()[h(0xc8)](h(0xbe))[h(0xc1)]()['constructor'](a100a)[h(0xc8)](h(0xbe));});a100a();import{Command}from'../command.js';import a100e from'../generators/maka.gen.js';Command['create']({'name':'undo','aliases':['u'],'validOpts':[],'shortDesc':a100i(0xc4),'experimental':!![]},async function(){var j=a100i;a100e[j(0xcb)]();});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a101n=a101d;(function(a,b){const k=a101d,c=a();while(!![]){try{const d=-parseInt(k(0xba))/0x1*(parseInt(k(0xa9))/0x2)+-parseInt(k(0xbb))/0x3*(parseInt(k(0xa6))/0x4)+parseInt(k(0xa7))/0x5+parseInt(k(0xc4))/0x6*(-parseInt(k(0xc3))/0x7)+-parseInt(k(0xb7))/0x8+parseInt(k(0xc6))/0x9+parseInt(k(0xb8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0x81abb));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a101d;if(c){const e=c[l(0xa5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const m=a101d;return a101a[m(0xc7)]()[m(0xb6)](m(0xb5))[m(0xc7)]()[m(0xa1)](a101a)[m(0xb6)](m(0xb5));});function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x9d;let f=c[d];return f;},a101d(a,b);}a101a();import{execSync}from'child_process';import a101e from'semver';import{Command}from'../command.js';function a101c(){const p=['83345uCkADK','1158KUbTsu','verbose','version','exit','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','bright','isMakaProject','maka\x20v','1285739rmKfkq','18NHJKER','System\x27s\x20Node\x20Version\x20','2066121LPEkrq','toString','error','N/A','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','Project\x27s\x20Meteor\x20Version\x20','fsi','\x20node\x20-v','compareMakaToLatest','replace','getProjectMeteorVersion','constructor',')\x20to\x20at\x20least\x20meteor\x27s\x20(','maka\x20version\x20--verbose','Project\x27s\x20Meteor\x20Node\x20Version\x20','apply','6868LfuaFI','4906280vnkjWn','getGlobalMeteorVersion','10mPzHsf','----------------------Project----------------------------','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','----------------------System----------------------------','4.13.10','\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','create','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','maka\x20version','warn','Maka\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','(((.+)+)+)+$','search','4257736yOClNv','14830410mSeIgp','getProjectsMeteorNodeVersion'];a101c=function(){return p;};return a101c();}import{Log}from'../tools/log/log.class.js';const pjson={'version':a101n(0xad)};Command[a101n(0xaf)]({'name':a101n(0xbd),'aliases':['v'],'usage':a101n(0xb1),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a101n(0xbf),'examples':[a101n(0xc2),a101n(0xb1),a101n(0xa3)],'description':'\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20'},async function(a,b){const o=a101n;try{const c=this[o(0xcc)]['getMeteorExePath']();Log['majestic'](o(0xb3)+pjson[o(0xbd)]),await this[o(0xcc)][o(0x9e)]();if(b[o(0xbc)]){await this[o(0xcc)]['compareMakaToLatest'](),Log[o(0xc0)](o(0xac));const d=this[o(0xcc)][o(0xa8)]();Log[o(0xc0)](('System\x27s\x20Meteor\x20Version\x20'+d)[o(0x9f)]('\x0a',''));const f=execSync(c+o(0x9d))[o(0xc7)]()['replace'](/\r?\n|\r/,'')[o(0x9f)]('v','');Log['bright'](o(0xca)+f);const g=execSync('node\x20-v')['toString']()['replace'](/\r?\n|\r/,'')[o(0x9f)]('v','');a101e['gt'](f,g)?(Log[o(0xb2)](o(0xc5)+g),Log[o(0xb2)](o(0xab)+g+o(0xa2)+f+')')):Log['bright'](o(0xc5)+g);if(this[o(0xcc)][o(0xc1)]()){Log[o(0xc0)](o(0xaa));const h=this[o(0xcc)][o(0xa0)]();if(!a101e['valid'](h))Log[o(0xb2)](o(0xcb)+h[o(0x9f)]('\x0a',''));else a101e['gt'](d,h)?(Log[o(0xb2)](o(0xcb)+h['replace']('\x0a','')),Log[o(0xb2)](o(0xb0)+d+'\x22')):Log['notice']((o(0xcb)+h)['replace']('\x0a',''));const i=await this[o(0xcc)][o(0xb9)]();i===o(0xc9)?(Log[o(0xb2)](o(0xa4)+i),Log[o(0xb2)](o(0xb4))):Log[o(0xc0)]('Project\x27s\x20Meteor\x20Node\x20Version\x20'+i),Log[o(0xc0)](o(0xae));}}}catch(j){console[o(0xc8)](j),process[o(0xbe)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0xd3))/0x1+parseInt(f(0xd1))/0x2+-parseInt(f(0xcc))/0x3*(parseInt(f(0xd4))/0x4)+-parseInt(f(0xcb))/0x5*(-parseInt(f(0xd6))/0x6)+parseInt(f(0xcd))/0x7+parseInt(f(0xcf))/0x8*(parseInt(f(0xce))/0x9)+-parseInt(f(0xd0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x65ba8));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0xd5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0xc9)]()[h(0xd2)](h(0xca))['toString']()['constructor'](a102a)[h(0xd2)](h(0xca));});a102a();export class UsageError{}function a102c(){var i=['9PnHWOw','1999688lkTPVe','2217940DzIejg','52566RgdVmL','search','287452nuJkLa','56kBVXkw','apply','4868436GetpAc','toString','(((.+)+)+)+$','5XmKdna','118239BwQwJL','2730406hnufMw'];a102c=function(){return i;};return a102c();}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0xc9;var f=c[d];return f;},a102d(a,b);}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}export class MustBeLoggedIn{}
|
package/bundle/obf/src/exec.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
2
|
+
(function(a,b){var f=a103d,c=a();while(!![]){try{var d=parseInt(f(0x169))/0x1*(-parseInt(f(0x162))/0x2)+parseInt(f(0x161))/0x3+parseInt(f(0x165))/0x4*(parseInt(f(0x16d))/0x5)+-parseInt(f(0x164))/0x6*(-parseInt(f(0x16e))/0x7)+parseInt(f(0x163))/0x8*(-parseInt(f(0x160))/0x9)+parseInt(f(0x166))/0xa*(parseInt(f(0x170))/0xb)+-parseInt(f(0x16b))/0xc*(parseInt(f(0x168))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0xd4371));var a103b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a103d;if(c){var e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){var h=a103d;return a103a[h(0x15f)]()[h(0x16a)]('(((.+)+)+)+$')[h(0x15f)]()[h(0x16f)](a103a)[h(0x16a)](h(0x167));});function a103d(a,b){var c=a103c();return a103d=function(d,e){d=d-0x15f;var f=c[d];return f;},a103d(a,b);}function a103c(){var i=['4040fueYok','(((.+)+)+)+$','104VFpkPn','351273XKcLLU','search','180384UmQHIj','apply','4980cLEqyk','7ZSAAPN','constructor','33MVMiQU','toString','1180377LryTwe','213558BXfNVj','2nlaETA','32rkHdPB','6831624ZUUeFT','2628quIdrt'];a103c=function(){return i;};return a103c();}a103a(),process['env']['NODE_OPTIONS']='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a104v=a104d;(function(a,b){const r=a104d,c=a();while(!![]){try{const d=parseInt(r(0x120))/0x1*(-parseInt(r(0x165))/0x2)+-parseInt(r(0x17d))/0x3*(parseInt(r(0x138))/0x4)+parseInt(r(0x11f))/0x5*(parseInt(r(0x111))/0x6)+-parseInt(r(0x18e))/0x7+-parseInt(r(0x11d))/0x8*(-parseInt(r(0x13d))/0x9)+-parseInt(r(0x176))/0xa*(-parseInt(r(0x10c))/0xb)+-parseInt(r(0x150))/0xc*(parseInt(r(0x143))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x665f4));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){const s=a104d;if(c){const e=c[s(0x18a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const t=a104d;return a104a['toString']()[t(0x17b)](t(0x189))[t(0x182)]()['constructor'](a104a)[t(0x17b)](t(0x189));});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();function a104c(){const N=['_handler','options','size','pop','mustHaveMeteorInstalled','13yvIDYu','from','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','map','match','reverse','fsi','minArgLength','name','Generator.create\x20requires\x20a\x20handler\x20function!','slice','There\x20is\x20no\x20Meteor\x20application\x20here','error','2249316UEojVo','warn','lib','validateParams','maxOptsLength','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','length','bind','utf-8','getGlobalConfig','Generator.create\x20requires\x20some\x20options!','bright','function','minOptsLength','usage','Too\x20few\x20options','Generator\x20','addToHistory','assign','_genTransactionId','shortDesc','134866eGowIQ','shift','existsSync','validateMakaProject','undo','_generators','details','stringify','Alias','readHistory','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Both','invoke','appPathPrefix','transactionId','sep','writeHistory','144560XQALKd','filter','pathFromProject','addGenerator\x20requires\x20a\x20Generator\x20instance','.maka','search','readFileSync','6mZLIAy','Too\x20few\x20arguments','addGenerator','opts','history.json','toString','Generators:','\x20not\x20found','Name','create','push','Description','(((.+)+)+)+$','apply','colLocAnswer','parse','resourceName','1859417HKFnlA','requiredEngines','187JfaaaX','generatorName','dir','notice','statSync','14124VByEVO','join','light','No\x20undo\x20handler\x20defined\x20for\x20','params','Client','both','_historyFilePath','split','config','number','fullNameChain','136LgZyax','client','1295iyPzxD','2VSFJoP','maxArgLength','findGeneratorByName','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','DARK','exit','findProjectDirectory','_undoHandler','server','localeCompare','\x20not\x20found.\x20Cannot\x20undo.','success','listGenerators','chdir','Generator\x20format\x20is\x20incorrect','validateMakaSubscription','setColorMode','Too\x20many\x20options','sort','where','message','cwd','handleGenerateError','mustBeInMakaProject','465716RwNtcy','getHistoryFileSize','tableList','keys','Nothing\x20to\x20undo.','203652udDGJV'];a104c=function(){return N;};return a104c();}function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x10c;let f=c[d];return f;},a104d(a,b);}async function inside(a='.',b){const u=a104d,c=process[u(0x135)]();let d=null;try{process['chdir'](a),d=await b();}finally{process[u(0x12d)](c);}return d;}export class Generator extends Tool{['options'];[a104v(0x11c)];[a104v(0x16a)];[a104v(0x118)];[a104v(0x127)];[a104v(0x163)];constructor(a,b,c){const w=a104v;super();if(!a)throw new Error(w(0x123));if(!a[w(0x14b)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==w(0x15c))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[w(0x16a)]=[],this[w(0x13f)]=Object[w(0x162)]({},a),this[w(0x14b)]=this[w(0x13f)][w(0x14b)],this[w(0x13e)]=b['bind'](this);try{this[w(0x118)]=this['fsi'][w(0x178)]({'pathParts':[w(0x17a),w(0x181)]})||a104e[w(0x112)]('.',w(0x17a),w(0x181));}catch(d){Log[w(0x14f)](d);}c&&(this[w(0x127)]=c[w(0x157)](this));}[a104v(0x139)](){const x=a104v;if(a104f[x(0x167)](this['_historyFilePath'])){const a=a104f[x(0x110)](this['_historyFilePath']);return a[x(0x140)];}return 0x0;}[a104v(0x16e)](){const y=a104v;if(!a104f[y(0x167)](this[y(0x118)]))return[];return JSON[y(0x18c)](a104f[y(0x17c)](this[y(0x118)],y(0x158)));}[a104v(0x175)](a){const z=a104v;this[z(0x118)]&&!a104f['existsSync'](this[z(0x118)])&&a104f['writeFileSync'](this[z(0x118)],JSON[z(0x16c)]([])),a104f['writeFileSync'](this[z(0x118)],JSON[z(0x16c)](a,null,0x2));}[a104v(0x161)](a){const A=a104v;try{a?.[A(0x115)]?.['opts']['config']&&delete a[A(0x115)][A(0x180)][A(0x11a)];const b=this[A(0x16e)](),c={'generatorName':this[A(0x11c)],'transactionId':TRANSACTION_ID,'details':a};b[A(0x187)](c);const d=Buffer[A(0x144)](JSON['stringify'](b))['length'];while(d>MAX_HISTORY_SIZE&&b['length']>0x0){b[A(0x166)]();}this[A(0x175)](b);}catch(f){Log['error'](f);}}async[a104v(0x169)](){const B=a104v,a=this['readHistory']();if(a[B(0x156)]===0x0){Log[B(0x151)](B(0x13c));return;}const b=a[B(0x141)](),c=b[B(0x173)],d=a['filter'](e=>e[B(0x173)]===c);d[B(0x187)](b),d[B(0x148)]();for(const e of d){const f=this[B(0x122)](e['generatorName']);if(!f){Log[B(0x14f)]('Generator\x20'+e[B(0x10d)]+B(0x12a));continue;}f[B(0x127)]?await f[B(0x127)](e[B(0x16b)]):Log[B(0x151)](B(0x114)+e[B(0x10d)]+'\x20generator.\x20Skipping\x20undo.');}this[B(0x175)](a[B(0x177)](g=>g[B(0x173)]!==c));}static[a104v(0x186)](a,b,c,d){const C=a104v;if(!a)throw new Error(C(0x15a));if(typeof b!==C(0x15c))throw new Error(C(0x14c));const e=new Generator(a,b);c&&(e['_undoHandler']=c[C(0x157)](e));d=d||a104i;const f=d?d[C(0x11c)]:'';return e[C(0x11c)]=f?f+':'+a[C(0x14b)]:a[C(0x14b)],Object['assign'](e,{'parent':d?.[C(0x13f)]?.['name']}),d[C(0x17f)](e),e;}[a104v(0x17f)](a){const D=a104v;if(!(a instanceof Generator))throw new Error(D(0x179));this[D(0x16a)]['push'](a);}async['processAndRunGenerator'](a,b=[],c={}){const E=a104v;let d;try{const f=a?.[E(0x119)](':');if(!f||f['length']===0x0)throw E(0x12e);let g=this['_generators'],h;for(const i of f){h=g['find'](j=>j[E(0x147)](i));if(!h)throw'Generator\x20'+i+E(0x184);await this[E(0x12f)](h),g=h[E(0x16a)];}if(h)d=await h[E(0x171)](b,c);else throw'Generator\x20not\x20found';}catch(j){Log[E(0x14f)](j);}return d;}['findGeneratorByName'](a){const F=a104v,b=a?.['split'](':');if(!b||b[F(0x156)]===0x0)return Log[F(0x14f)](F(0x12e)),null;let c=this[F(0x16a)],d;for(const e of b){d=c['find'](f=>f['match'](e));if(!d)return Log['error'](F(0x160)+e+F(0x184)),null;c=d[F(0x16a)];}return d||null;}async[a104v(0x171)](a,b){const G=a104v,c=a[G(0x14d)]();b['resourceName']=c[0x0];try{const d=await this[G(0x149)][G(0x159)](),f=d['pallet']===G(0x113)?ColorMode['LIGHT']:ColorMode[G(0x124)];Log[G(0x130)](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[G(0x156)]===0x0&&this[G(0x16a)][G(0x156)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this[G(0x16a)][G(0x156)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[G(0x13f)][G(0x137)]){const i=this[G(0x168)]();if(!i)throw new MustBeInProjectError();}if(this[G(0x13f)][G(0x142)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[G(0x13f)][G(0x14a)]===G(0x11b)){if(a[G(0x156)]<this[G(0x13f)][G(0x14a)]){Log[G(0x14f)](G(0x17e));throw new UsageError();}}if(typeof this[G(0x13f)][G(0x121)]==='number'){if(a[G(0x156)]>this[G(0x13f)][G(0x121)]){Log[G(0x14f)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[G(0x13f)][G(0x15d)]===G(0x11b)){if(Object[G(0x13b)](b)['length']<this[G(0x13f)][G(0x15d)]){Log[G(0x14f)](G(0x15f));throw new UsageError();}}if(typeof this[G(0x13f)]['maxOptsLength']===G(0x11b)){if(Object[G(0x13b)](b)[G(0x156)]>=this['options'][G(0x154)]){Log['error'](G(0x131));throw new UsageError();}}}this[G(0x13f)][G(0x18f)]&&this['validateEngines'](this[G(0x13f)][G(0x18f)]);await this[G(0x153)](a,b,this['options']);if(!b[G(0x18d)]&&!this[G(0x13f)]['noNeedResource']){Log[G(0x14f)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this[G(0x136)](k),process[G(0x125)](0x1);}return await inside(b[G(0x135)],async()=>{const H=G;try{if(!b['root']&&!this['fsi'][H(0x126)]())throw new MustBeInProjectError();const l=b['resourceName']?.['replace'](/\\/g,'/')['split']('/');!b[H(0x10e)]&&(l?.[H(0x156)]>0x1?(b[H(0x18d)]=l[H(0x141)](),c[0x0]=b[H(0x18d)],b['dir']=l[H(0x146)](n=>{return paramCase(n);})[H(0x112)](a104e[H(0x174)])):b[H(0x10e)]='');if(this['options']['checkWhere']){if(!b[H(0x133)]){const o={'type':'list','name':H(0x18b),'message':'Location','choices':[{'name':H(0x116),'value':'client'},{'name':'Server','value':H(0x128)},{'name':H(0x170),'value':'both'}]},{colLocAnswer:p}=await Actions['options'](o);p?b['where']=p:b[H(0x133)]=H(0x117);}const n=['both',H(0x11e),H(0x128)];if(!n['includes'](b[H(0x133)])){Log['error'](H(0x145));throw new UsageError();}switch(b[H(0x133)]){case'both':b[H(0x172)]=H(0x152);break;case H(0x128):b['appPathPrefix']=H(0x128);break;case'client':b[H(0x172)]=H(0x11e);break;default:b[H(0x172)]='';}}const m=await this[H(0x13e)]['call'](this,c,b);return m&&this[H(0x161)]({'params':{'args':c,'opts':this[H(0x149)]['deepen'](b)},'success':m?.[H(0x12b)],'message':m?.[H(0x134)],'details':m?.['details']}),m;}catch(q){this['handleGenerateError'](q);}});}[a104v(0x12c)](){const I=a104v;this[I(0x13a)](this['_generators']);}[a104v(0x136)](a){const J=a104v,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[J(0x13f)];Log[J(0x15e)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[J(0x10f)](J(0x183)),this['tableList'](this[J(0x16a)]);else{if(a instanceof MustBeInProjectError)Log[J(0x14f)](J(0x155));else{if(a instanceof NoMeteorFoundError)Log[J(0x14f)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[J(0x10f)](J(0x16f));else a instanceof NoMeteorAppFoundError&&Log['error'](J(0x14e));}}}[a104v(0x13a)](a){const K=a104v,b=new a104g({});b[K(0x187)]([K(0x185),K(0x16d),K(0x188)]),a[K(0x132)]((c,d)=>{const L=K;return c[L(0x14b)][L(0x129)](d[L(0x14b)]);})['forEach'](c=>{const M=K;b[M(0x187)]([c['name'],c['aliases'](),c[M(0x164)]()]);}),Log[K(0x15b)](b[K(0x182)]());}}
|
|
1
|
+
const a104u=a104d;function a104d(a,b){const c=a104c();return a104d=function(d,e){d=d-0x125;let f=c[d];return f;},a104d(a,b);}(function(a,b){const r=a104d,c=a();while(!![]){try{const d=-parseInt(r(0x18a))/0x1+-parseInt(r(0x183))/0x2+-parseInt(r(0x143))/0x3+-parseInt(r(0x16d))/0x4*(parseInt(r(0x18d))/0x5)+parseInt(r(0x151))/0x6*(-parseInt(r(0x160))/0x7)+-parseInt(r(0x128))/0x8*(-parseInt(r(0x145))/0x9)+parseInt(r(0x14e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0x2d236));const a104b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a104a=a104b(this,function(){const s=a104d;return a104a[s(0x17b)]()[s(0x190)](s(0x180))[s(0x17b)]()[s(0x12d)](a104a)[s(0x190)](s(0x180));});a104a();import a104e from'path';import a104f from'fs';import a104g from'cli-table';import{v4 as a104h}from'uuid';import{paramCase}from'change-case';import a104i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a104h();async function inside(a='.',b){const t=a104d,c=process[t(0x17a)]();let d=null;try{process[t(0x13b)](a),d=await b();}finally{process[t(0x13b)](c);}return d;}function a104c(){const M=['8507280vPXvbo','notice','statSync','36012hLLUks','writeHistory','Generator\x20requires\x20a\x20name','tableList','validateMakaProject','deepen','existsSync','colLocAnswer','Generator\x20','config','mustBeInMakaProject','addGenerator','options','fsi','shortDesc','70JaaAAG','dir','warn','lib','stringify','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Description','_handler','reverse','where','addToHistory','processAndRunGenerator','No\x20undo\x20handler\x20defined\x20for\x20','4AUOexC','create','call','list','writeFileSync','mustHaveMeteorInstalled','transactionId','Location','number','utf-8','push','both','server','cwd','toString','Generator.create\x20requires\x20a\x20handler\x20function!','pop','appPathPrefix','validateMakaSubscription','(((.+)+)+)+$','minOptsLength','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','610544eVeSIn','Too\x20many\x20options','length','(expermiental)\x20','LIGHT','undo','Too\x20few\x20options','145964SSxxQZ','help','Nothing\x20to\x20undo.','498305HjzKrx','history.json','readFileSync','search','listGenerators','_generators','pallet','client','\x20not\x20found.\x20Cannot\x20undo.','\x20not\x20found','sort','function','fullNameChain','details','find','size','validateEngines','There\x20is\x20no\x20Meteor\x20application\x20here','getHistoryFileSize','bright','readHistory','params','_genTransactionId','assign','success','aliases','requiredEngines','setColorMode','Too\x20many\x20arguments','generatorName','validateMeteorInstall','8yQQQoj','maxArgLength','maxOptsLength','_undoHandler','Server','constructor','Generator\x20not\x20found','localeCompare','resourceName','_historyFilePath','match','light','keys','findGeneratorByName','usage','getGlobalConfig','from','Both','Generator\x20format\x20is\x20incorrect','chdir','shift','findProjectDirectory','forEach','Too\x20few\x20arguments','.maka','error','name','897036nTbeif','pathFromProject','2196783qfzkCp','Generators:','opts','sep','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateParams','Alias','split','bind'];a104c=function(){return M;};return a104c();}export class Generator extends Tool{['options'];[a104u(0x199)];['_generators'];[a104u(0x131)];[a104u(0x12b)];[a104u(0x1a3)];constructor(a,b,c){const v=a104u;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(v(0x153));if(typeof b!=='function')throw new Error('Generator\x20requires\x20a\x20handler\x20function');this['_generators']=[],this[v(0x15d)]=Object[v(0x1a4)]({},a),this[v(0x142)]=this['options'][v(0x142)],this[v(0x167)]=b[v(0x14d)](this);try{this[v(0x131)]=this[v(0x15e)][v(0x144)]({'pathParts':[v(0x140),v(0x18e)]})||a104e['join']('.',v(0x140),v(0x18e));}catch(d){Log[v(0x141)](d);}c&&(this[v(0x12b)]=c['bind'](this));}[a104u(0x19f)](){const w=a104u;if(a104f[w(0x157)](this[w(0x131)])){const a=a104f[w(0x150)](this['_historyFilePath']);return a[w(0x19c)];}return 0x0;}[a104u(0x1a1)](){const x=a104u;if(!a104f[x(0x157)](this[x(0x131)]))return[];return JSON['parse'](a104f[x(0x18f)](this['_historyFilePath'],x(0x176)));}['writeHistory'](a){const y=a104u;this['_historyFilePath']&&!a104f['existsSync'](this['_historyFilePath'])&&a104f[y(0x171)](this[y(0x131)],JSON[y(0x164)]([])),a104f['writeFileSync'](this[y(0x131)],JSON[y(0x164)](a,null,0x2));}[a104u(0x16a)](a){const z=a104u;try{a?.[z(0x1a2)]?.[z(0x147)]['config']&&delete a[z(0x1a2)][z(0x147)][z(0x15a)];const b=this['readHistory'](),c={'generatorName':this['fullNameChain'],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[z(0x138)](JSON[z(0x164)](b))[z(0x185)];while(d>MAX_HISTORY_SIZE&&b[z(0x185)]>0x0){b[z(0x13c)]();}this[z(0x152)](b);}catch(f){Log['error'](f);}}async[a104u(0x188)](){const A=a104u,a=this['readHistory']();if(a['length']===0x0){Log['warn'](A(0x18c));return;}const b=a[A(0x17d)](),c=b['transactionId'],d=a['filter'](e=>e[A(0x173)]===c);d[A(0x177)](b),d[A(0x168)]();for(const e of d){const f=this[A(0x135)](e[A(0x126)]);if(!f){Log[A(0x141)](A(0x159)+e[A(0x126)]+A(0x195));continue;}f[A(0x12b)]?await f[A(0x12b)](e[A(0x19a)]):Log[A(0x162)](A(0x16c)+e[A(0x126)]+'\x20generator.\x20Skipping\x20undo.');}this[A(0x152)](a['filter'](g=>g['transactionId']!==c));}static[a104u(0x16e)](a,b,c,d){const B=a104u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==B(0x198))throw new Error(B(0x17c));const e=new Generator(a,b);c&&(e[B(0x12b)]=c[B(0x14d)](e));d=d||a104i;const f=d?d[B(0x199)]:'';return e[B(0x199)]=f?f+':'+a[B(0x142)]:a['name'],Object[B(0x1a4)](e,{'parent':d?.[B(0x15d)]?.[B(0x142)]}),d[B(0x15c)](e),e;}[a104u(0x15c)](a){const C=a104u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this[C(0x192)]['push'](a);}async[a104u(0x16b)](a,b=[],c={}){const D=a104u;let d;try{const f=a?.['split'](':');if(!f||f[D(0x185)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[D(0x192)],h;for(const i of f){h=g[D(0x19b)](j=>j[D(0x132)](i));if(!h)throw D(0x159)+i+D(0x196);await this[D(0x17f)](h),g=h[D(0x192)];}if(h)d=await h['invoke'](b,c);else throw D(0x12e);}catch(j){Log[D(0x141)](j);}return d;}[a104u(0x135)](a){const E=a104u,b=a?.[E(0x14c)](':');if(!b||b[E(0x185)]===0x0)return Log[E(0x141)](E(0x13a)),null;let c=this[E(0x192)],d;for(const e of b){d=c[E(0x19b)](f=>f[E(0x132)](e));if(!d)return Log[E(0x141)](E(0x159)+e+'\x20not\x20found'),null;c=d[E(0x192)];}return d||null;}async['invoke'](a,b){const F=a104u,c=a['slice']();b[F(0x130)]=c[0x0];try{const d=await this[F(0x15e)][F(0x137)](),f=d[F(0x193)]===F(0x133)?ColorMode[F(0x187)]:ColorMode['DARK'];Log[F(0x1a8)](f),await this[F(0x17f)](this);const g=a[0x0]===_prevGen||a[F(0x185)]===0x0&&this[F(0x192)]['length']>=0x0,h=b[F(0x18b)]||b['h'];if(g&&h){if(this[F(0x192)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[F(0x15d)][F(0x15b)]){const i=this[F(0x155)]();if(!i)throw new MustBeInProjectError();}if(this['options'][F(0x172)]){const j=this[F(0x127)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[F(0x15d)]['minArgLength']===F(0x175)){if(a['length']<this[F(0x15d)]['minArgLength']){Log[F(0x141)](F(0x13f));throw new UsageError();}}if(typeof this[F(0x15d)][F(0x129)]===F(0x175)){if(a[F(0x185)]>this[F(0x15d)][F(0x129)]){Log['error'](F(0x125));throw new UsageError();}}if(typeof this['options'][F(0x181)]===F(0x175)){if(Object[F(0x134)](b)[F(0x185)]<this['options'][F(0x181)]){Log[F(0x141)](F(0x189));throw new UsageError();}}if(typeof this[F(0x15d)][F(0x12a)]==='number'){if(Object[F(0x134)](b)['length']>=this[F(0x15d)][F(0x12a)]){Log[F(0x141)](F(0x184));throw new UsageError();}}}this[F(0x15d)][F(0x1a7)]&&this[F(0x19d)](this[F(0x15d)][F(0x1a7)]);await this[F(0x14a)](a,b,this['options']);if(!b[F(0x130)]&&!this['options']['noNeedResource']){Log[F(0x141)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(k){this['handleGenerateError'](k),process['exit'](0x1);}return await inside(b[F(0x17a)],async()=>{const G=F;try{if(!b['root']&&!this[G(0x15e)][G(0x13d)]())throw new MustBeInProjectError();const l=b[G(0x130)]?.['replace'](/\\/g,'/')[G(0x14c)]('/');!b['dir']&&(l?.['length']>0x1?(b['resourceName']=l['pop'](),c[0x0]=b['resourceName'],b[G(0x161)]=l['map'](n=>{return paramCase(n);})['join'](a104e[G(0x148)])):b[G(0x161)]='');if(this[G(0x15d)]['checkWhere']){if(!b[G(0x169)]){const o={'type':G(0x170),'name':G(0x158),'message':G(0x174),'choices':[{'name':'Client','value':G(0x194)},{'name':G(0x12c),'value':G(0x179)},{'name':G(0x139),'value':'both'}]},{colLocAnswer:p}=await Actions[G(0x15d)](o);p?b[G(0x169)]=p:b[G(0x169)]=G(0x178);}const n=[G(0x178),G(0x194),G(0x179)];if(!n['includes'](b['where'])){Log[G(0x141)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x169)]){case G(0x178):b[G(0x17e)]=G(0x163);break;case'server':b[G(0x17e)]=G(0x179);break;case G(0x194):b['appPathPrefix']=G(0x194);break;default:b[G(0x17e)]='';}}const m=await this[G(0x167)][G(0x16f)](this,c,b);return m&&this[G(0x16a)]({'params':{'args':c,'opts':this[G(0x15e)][G(0x156)](b)},'success':m?.[G(0x1a5)],'message':m?.['message'],'details':m?.['details']}),m;}catch(q){this['handleGenerateError'](q);}});}[a104u(0x191)](){const H=a104u;this[H(0x154)](this[H(0x192)]);}['handleGenerateError'](a){const I=a104u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0x15d)];Log[I(0x136)](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0x14f)](I(0x146)),this[I(0x154)](this[I(0x192)]);else{if(a instanceof MustBeInProjectError)Log[I(0x141)](I(0x182));else{if(a instanceof NoMeteorFoundError)Log[I(0x141)](I(0x149)),Log['notice'](I(0x165));else a instanceof NoMeteorAppFoundError&&Log[I(0x141)](I(0x19e));}}}['tableList'](a){const J=a104u,b=new a104g({});b[J(0x177)](['Name',J(0x14b),J(0x166)]),a[J(0x197)]((c,d)=>{const K=J;return c[K(0x142)][K(0x12f)](d['name']);})[J(0x13e)](c=>{const L=J,d=c['experimental'](),e=d?L(0x186)+c[L(0x15f)]():c[L(0x15f)]();b[L(0x177)]([c[L(0x142)],c[L(0x1a6)](),e]);}),Log[J(0x1a0)](b[J(0x17b)]());}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a105d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a105d(a,b){var c=a105c();return a105d=function(d,e){d=d-0x93;var f=c[d];return f;},a105d(a,b);}(function(a,b){var f=a105d,c=a();while(!![]){try{var d=-parseInt(f(0x9a))/0x1*(-parseInt(f(0x97))/0x2)+-parseInt(f(0xa2))/0x3*(-parseInt(f(0x99))/0x4)+parseInt(f(0x96))/0x5*(-parseInt(f(0x9f))/0x6)+parseInt(f(0x95))/0x7*(-parseInt(f(0x9c))/0x8)+-parseInt(f(0xa1))/0x9*(-parseInt(f(0x93))/0xa)+-parseInt(f(0x98))/0xb+parseInt(f(0x9d))/0xc*(parseInt(f(0x9e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0xbdb9b));var a105b=(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;};}()),a105a=a105b(this,function(){var g=a105d;return a105a['toString']()[g(0x9b)](g(0xa0))[g(0x94)]()['constructor'](a105a)[g(0x9b)]('(((.+)+)+)+$');});a105a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';function a105c(){var h=['search','2147864uMcrgv','203124WRAxzL','1079RGbRUS','611964LURVhq','(((.+)+)+)+$','63MICqId','396216mBRRLO','798110MLnXkM','toString','28lUXOwz','70KPVomu','2GDRDHG','16438048HqEZjw','40skZaNX','1488993phWtxJ'];a105c=function(){return h;};return a105c();}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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106y=a106d;
|
|
1
|
+
const a106y=a106d;(function(a,b){const v=a106d,c=a();while(!![]){try{const d=-parseInt(v(0xa7))/0x1*(parseInt(v(0xaf))/0x2)+parseInt(v(0x86))/0x3*(-parseInt(v(0x7c))/0x4)+parseInt(v(0x89))/0x5+parseInt(v(0xb5))/0x6*(parseInt(v(0x85))/0x7)+parseInt(v(0x9c))/0x8*(-parseInt(v(0xb3))/0x9)+parseInt(v(0xaa))/0xa+-parseInt(v(0x75))/0xb*(-parseInt(v(0x82))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x7ba6b));const a106b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a106d;if(c){const e=c[w(0x70)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a106a=a106b(this,function(){const x=a106d;return a106a[x(0x9d)]()[x(0x84)](x(0x80))[x(0x9d)]()[x(0x83)](a106a)[x(0x84)](x(0x80));});a106a();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x6e;let f=c[d];return f;},a106d(a,b);}function a106c(){const B=['resolvers.','import\x20\x27./register-','1541784coLGHR','toString','withRest','index.','length','ddp-rate-limiter','apollo','pathFromApp','test','includes','api/register-api.js','375967PeinoP','\x0aimport\x20{\x20resolvers\x20as\x20','resolverList.push(','2621340qosMDk','register-','typeDefs.','apiAnswers','api/resolvers.js','2OfpvVY','-rpc-methods.','mdg:validated-method','engines','36XXiGrL','if\x20\x5c(typeList','4884756bCIzkv','.app-tests.','create','api','maka\x20{generate,\x20g}:{api}\x20<resource-name>','Resolvers);\x0a\x0a','\x27;\x0a','Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','withGql','injectIntoFile','none','maka:rest','rewriteDestinationPathForEngine','api/methods.js','/imports/api/','ask','-api\x27;','resourceName','apply','server','graphql','setProjectConfig','maka\x20g:api\x20Todos','1529XRElAp','fsi','API\x20Version?\x20[v1]','const','-rest-api.','checkMeteorPackage','withValue','76QwTReK','getMakaProjectConfig','/graphql/resolvers','exit','(((.+)+)+)+$','injectAtBeginningOfFile','420IxAVFf','constructor','search','7qimnZl','14016MIqkwV','injectAtEndOfFile','tsx','3304885mYDoXP','startup','withMethods','error','api/api.js','imports','api/typeDefs.js','RPC\x20(Methods)','\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','api/tests.js','push','TypeDefs);\x0a','typeList.push(','dir','import\x20{\x20typeDefs\x20as\x20','API\x20boundaries\x20to\x20create','template'];a106c=function(){return B;};return a106c();}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[a106y(0xb7)]({'name':'api','aliases':['a'],'usage':a106y(0xb9),'shortDesc':a106y(0xbc),'validOpts':[a106y(0x96)],'examples':[a106y(0x74)],'description':a106y(0x91)},async function(a,b){const z=a106y;try{const c=this[z(0x76)][z(0x7d)](),d=[{'name':z(0x90),'value':z(0x8b)}];d[z(0x93)]({'name':'REST\x20API','value':z(0x9e)});c[z(0xb2)][z(0x72)]===z(0xa2)&&d[z(0x93)]({'name':'GraphQL','value':z(0xbd)});const f={'type':'checkbox','name':z(0xad),'message':z(0x98),'pageSize':0x64,'choices':d},g=await Actions[z(0xc4)](z(0x77))||'v1',{apiAnswers:h}=await Actions['options'](f);h[z(0xa0)]===0x0&&(Log[z(0x8c)]('No\x20API\x20boundaries\x20selected'),process[z(0x7f)](0x1)),await this[z(0x76)][z(0x7b)](c,async()=>{const A=z,i=b[A(0x6f)],j=paramCase(i),k=camelCase(i),l=b[A(0x96)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'apiVersion':g,'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[A(0xb2)]['api'],'graphql':c[A(0xb2)][A(0x72)],'test':c['engines'][A(0xa4)],'noRename':!![],'withMethods':h[A(0xa5)]('withMethods'),'withRest':h['includes']('withRest')};let n='js';c['engines']['js']===A(0x88)&&(n='ts');m[A(0x9e)]&&(this[A(0x76)][A(0x73)]({'engines':{'api':'rest'}}),await this['fsi'][A(0x7a)]([A(0xc0),A(0xa1),A(0xb1)],{'shouldInstall':!![]}),await this['fsi']['template']({'srcPath':A(0x8d),'destPath':this[A(0x76)][A(0xa3)]({'pathParts':[A(0x8e),'api',g,b['dir'],j,j+'-'+g+A(0x79)+n]}),'context':m,'config':c}));m[A(0x8b)]&&(await this[A(0x76)]['checkMeteorPackage']([A(0xa1),A(0xb1)],{'shouldInstall':!![]}),await this[A(0x76)]['template']({'srcPath':A(0xc2),'destPath':this[A(0x76)][A(0xa3)]({'pathParts':[A(0x8e),A(0xb8),g,b[A(0x96)],j,j+'-'+g+A(0xb0)+n]}),'context':m,'config':c}));c[A(0xb2)][A(0xa4)]!==A(0xbf)&&await this[A(0x76)]['template']({'srcPath':A(0x92),'destPath':this[A(0x76)][A(0xa3)]({'pathParts':[A(0x8e),A(0xb8),g,b[A(0x96)],j,j+'-'+g+A(0xb6)+n]}),'context':m,'config':c});if(c[A(0xb2)][A(0x72)]==='apollo'){if(h[A(0xa5)](A(0xbd))){const p=this[A(0x76)][A(0xa3)]({'pathParts':[A(0x8e),'startup',A(0x71),A(0x9f)+c[A(0xb2)]['js']]}),q=this['fsi'][A(0xc1)]({'pathParts':[p],'config':c}),r=this[A(0x76)][A(0xa3)]({'pathParts':[A(0x8e),'api',g,b[A(0x96)],j,A(0x72),A(0xac)+n]}),s=A(0xc3)+g+l+j+'/graphql/typeDefs';await this[A(0x76)]['template']({'srcPath':A(0x8f),'destPath':r,'context':m,'config':c}),await this[A(0x76)][A(0x81)]({'filePath':q,'content':A(0x97)+k+'TypeDefs\x20}\x20from\x20\x27'+s+A(0xbb)}),await this[A(0x76)]['injectIntoFile']({'filePath':q,'content':A(0x95)+k+A(0x94),'begin':A(0x78),'end':'if\x20\x5c(typeList'});const t=this[A(0x76)][A(0xa3)]({'pathParts':[A(0x8e),'api',g,b[A(0x96)],j,'graphql',A(0x9a)+n]}),u=A(0xc3)+g+l+j+A(0x7e);await this[A(0x76)][A(0x99)]({'srcPath':A(0xae),'destPath':t,'context':m,'config':c}),await this[A(0x76)]['injectAtBeginningOfFile']({'filePath':q,'content':A(0xa8)+k+'Resolvers\x20}\x20from\x20\x27'+u+'\x27;'}),await this[A(0x76)][A(0xbe)]({'filePath':q,'content':A(0xa9)+k+A(0xba),'begin':A(0x78),'end':A(0xb4)});}}await this[A(0x76)]['template']({'srcPath':A(0xa6),'destPath':this['fsi']['pathFromApp']({'pathParts':[A(0x8e),A(0x8a),'server',A(0xab)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const o=this['fsi'][A(0xa3)]({'pathParts':['imports','startup',A(0x71),'index.'+c[A(0xb2)]['js']]});await this['fsi'][A(0x87)]({'filePath':o,'content':A(0x9b)+j+A(0x6e)});});}catch(i){console[z(0x8c)](i),process[z(0x7f)](0x1);}});
|
|
@@ -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(0x129))/0x1*(parseInt(f(0x12f))/0x2)+parseInt(f(0x12b))/0x3*(parseInt(f(0x128))/0x4)+-parseInt(f(0x12d))/0x5*(parseInt(f(0x12a))/0x6)+-parseInt(f(0x133))/0x7*(parseInt(f(0x135))/0x8)+-parseInt(f(0x134))/0x9+-parseInt(f(0x130))/0xa*(-parseInt(f(0x132))/0xb)+parseInt(f(0x126))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0x1b6cd));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0x12e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0x131)]()[h(0x12c)](h(0x127))[h(0x131)]()['constructor'](a107a)['search'](h(0x127));});function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0x126;var f=c[d];return f;},a107d(a,b);}a107a();import'./aws.js';import'./cloudformation/_index.js';function a107c(){var i=['(((.+)+)+)+$','11380ZTUveN','143798VUjvQh','8052sQDmkK','153uZcaGX','search','370oiapRg','apply','2wpDjQP','131590oNusGl','toString','77CuXZOI','189xanrAJ','1706211hhfcMj','15192BiRvhu','857844qMOAUq'];a107c=function(){return i;};return a107c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a108i=a108d;(function(a,b){const f=a108d,c=a();while(!![]){try{const d=parseInt(f(0xc2))/0x1*(-parseInt(f(0xbd))/0x2)+-parseInt(f(0xc0))/0x3*(parseInt(f(0xbf))/0x4)+-parseInt(f(0xc4))/0x5+parseInt(f(0xc9))/0x6+parseInt(f(0xbb))/0x7*(parseInt(f(0xbc))/0x8)+parseInt(f(0xc8))/0x9+-parseInt(f(0xb7))/0xa*(-parseInt(f(0xb9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0xdb653));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a108d;if(c){const e=c[g(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const h=a108d;return a108a[h(0xc5)]()[h(0xc7)](h(0xca))[h(0xc5)]()[h(0xba)](a108a)[h(0xc7)](h(0xca));});function a108c(){const j=['250096tTIesD','48inXFdM','2NzvryS','apply','3932qgmySB','2190XBSexb','create','1659482RDBPxB','Generate\x20AWS\x20templates','244475vlaYKL','toString','maka\x20g:aws','search','6841377gJQUIs','992418emoSsW','(((.+)+)+)+$','10923430nbjKsR','maka\x20{generate,\x20g}:{aws}:<name>','22qkKqFS','constructor'];a108c=function(){return j;};return a108c();}function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0xb7;let f=c[d];return f;},a108d(a,b);}a108a();import{Generator}from'../../generator.js';const AWSGen=Generator[a108i(0xc1)]({'name':'aws','usage':a108i(0xb8),'shortDesc':a108i(0xc3),'minArgLength':0x1,'isPro':![],'validOpts':[],'noNeedResource':!![],'examples':[a108i(0xc6)],'experimental':!![]},async function(){});export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-
|
|
1
|
+
function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x1e9;var f=c[d];return f;},a109d(a,b);}function a109c(){var i=['toString','998550aTMkfm','63xtiRFH','1258640WVDBtU','330602ZZkdSi','4057270wkIqhU','1956687ZKbVqT','84SQjGmO','194968vZZqbW','2qukWxv','(((.+)+)+)+$','constructor','apply','6795640tIKVOS'];a109c=function(){return i;};return a109c();}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0x1eb))/0x1*(parseInt(f(0x1f0))/0x2)+-parseInt(f(0x1ed))/0x3+parseInt(f(0x1ea))/0x4+-parseInt(f(0x1f4))/0x5+parseInt(f(0x1f6))/0x6+parseInt(f(0x1ee))/0x7*(-parseInt(f(0x1ef))/0x8)+parseInt(f(0x1e9))/0x9*(parseInt(f(0x1ec))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0xa7aab));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0x1f5)]()['search']('(((.+)+)+)+$')[h(0x1f5)]()[h(0x1f2)](a109a)['search'](h(0x1f1));});a109a();import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110h=a110d;(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x7f))/0x1+parseInt(f(0x82))/0x2*(parseInt(f(0x7a))/0x3)+-parseInt(f(0x7c))/0x4*(-parseInt(f(0x84))/0x5)+parseInt(f(0x8a))/0x6+parseInt(f(0x7e))/0x7*(-parseInt(f(0x7b))/0x8)+-parseInt(f(0x81))/0x9+parseInt(f(0x80))/0xa*(parseInt(f(0x83))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0xc79df));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(0x87)]()[g(0x85)](g(0x88))[g(0x87)]()[g(0x7d)](a110a)['search'](g(0x88));});function a110c(){const i=['maka\x20g:aws:cf','create','12odpuAt','242552oNrSPt','2371972rvFybS','constructor','161YGvZSE','1012833Qnfylx','70ooPzAJ','10146708jCFliO','356012MwyMTh','1692713IHnrzF','5RXmciq','search','cloudformation','toString','(((.+)+)+)+$','AWS\x20Cloudformation\x20templates','7638090jmSSYu'];a110c=function(){return i;};return a110c();}function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x7a;let f=c[d];return f;},a110d(a,b);}a110a();import{Generator}from'../../../generator.js';import a110e from'../aws.js';const CFGen=Generator[a110h(0x8c)]({'name':a110h(0x86),'aliases':['cf'],'usage':'maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','noNeedResource':!![],'shortDesc':a110h(0x89),'validOpts':[''],'isPro':![],'examples':[a110h(0x8b)],'experimental':!![]},async function(){},async function(){},a110e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a111o=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=-parseInt(m(
|
|
1
|
+
const a111o=a111d;(function(a,b){const m=a111d,c=a();while(!![]){try{const d=-parseInt(m(0xf8))/0x1*(parseInt(m(0xe6))/0x2)+parseInt(m(0xfe))/0x3+parseInt(m(0xfd))/0x4*(parseInt(m(0x106))/0x5)+parseInt(m(0xf4))/0x6*(-parseInt(m(0xe7))/0x7)+-parseInt(m(0xea))/0x8+parseInt(m(0xf5))/0x9*(parseInt(m(0xed))/0xa)+parseInt(m(0xe9))/0xb*(parseInt(m(0x10b))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xd0716));const a111b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){const n=a111d;return a111a['toString']()[n(0xf1)](n(0x101))[n(0xfb)]()['constructor'](a111a)[n(0xf1)](n(0x101));});a111a();function a111c(){const r=['appName','(((.+)+)+)+$','Please\x20choose\x20a\x20key\x20to\x20use:\x20','aws','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','ec2describeKeys','310FolfpV','ami-055744c75048d8296','join','maka\x20g:aws:cf:cec2i','error','4403244ISpxdP','ask','1698956PFeUsw','637ozPnJo','No\x20instance\x20has\x20been\x20created.','11slQSoW','380184IQgnJq','create-ec2-instance.template','create','4241570DxWaJp','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','name','template','search','getMakaProjectConfig','fsi','18822rjezrr','9grkSYo','withValue','replaceAll','2rbzzci','create-ec2-instance','exit','toString','notice','44648vQucBh','4207770cpTfpW','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'];a111c=function(){return r;};return a111c();}import a111e from'path';import{AWS}from'../../../tools/aws/aws.class.js';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';function a111d(a,b){const c=a111c();return a111d=function(d,e){d=d-0xe6;let f=c[d];return f;},a111d(a,b);}import a111f from'./cloudformation.js';const CEC2Gen=Generator[a111o(0xec)]({'name':a111o(0xf9),'aliases':['cec2i'],'usage':a111o(0x104),'noNeedResource':!![],'shortDesc':a111o(0xee),'validOpts':[''],'isPro':![],'examples':[a111o(0x109)],'experimental':!![]},async function(){const p=a111o,a=new AWS();try{const b=this['fsi'][p(0xf2)](),c=this[p(0xf3)]['findProjectDirectory'](),d=a111e[p(0x108)](c,'cloudformation'),f=await a[p(0x105)](),g=await Actions[p(0x10c)](p(0x102))||'-1';if(parseInt(g)<0x0){Log['error'](p(0xff)),Log[p(0xfc)](p(0xe8));return;}let h='';if(f)for(const k of f){if(parseInt(g)===k['id']){h=k[p(0xef)],Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+h);break;}}const i=await a['chooseSecurityGroup'](),j={'amiId':p(0x107),'keyPair':h,'sgId':i,'instanceName':headerCase(b[p(0x100)])[p(0xf7)]('-','\x20')};await this[p(0xf3)][p(0xf6)](b,async()=>{const q=p;await this[q(0xf3)][q(0xf0)]({'srcPath':'cloudformation/create-ec2-instance.template','destPath':a111e[q(0x108)](d,q(0xeb)),'framework':q(0x103),'context':j,'config':b,'ignore':![]});});}catch(l){Log[p(0x10a)](l),process[p(0xfa)](0x1);}},async function(){},a111f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112m=a112d;(function(a,b){const j=a112d,c=a();while(!![]){try{const d=-parseInt(j(
|
|
1
|
+
const a112m=a112d;(function(a,b){const j=a112d,c=a();while(!![]){try{const d=-parseInt(j(0x12c))/0x1+-parseInt(j(0x147))/0x2*(-parseInt(j(0x136))/0x3)+parseInt(j(0x149))/0x4*(parseInt(j(0x130))/0x5)+-parseInt(j(0x142))/0x6+-parseInt(j(0x146))/0x7*(-parseInt(j(0x14a))/0x8)+parseInt(j(0x13f))/0x9*(parseInt(j(0x13c))/0xa)+-parseInt(j(0x138))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0xccb48));function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0x125;let f=c[d];return f;},a112d(a,b);}const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a112d;if(c){const e=c[k(0x12b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const l=a112d;return a112a[l(0x139)]()[l(0x131)](l(0x126))[l(0x139)]()[l(0x13a)](a112a)['search'](l(0x126));});a112a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a112c(){const p=['col','7237506gsypLN','engines','test','dir','5364639RtJrXE','1680958HvTUvf','pathFromApp','5065292TOIWsc','16PBCmlJ','create','fsi','resourceName','tsx','(((.+)+)+)+$','error','none','withValue','template','apply','778217GDYvUF','where','getMakaProjectConfig','startup','5sGCxlr','search','checkMeteorPackage','index.','collection/tests.js','appPathPrefix','3AVofep','collections','10807863QYqrQz','toString','constructor','import\x20\x27./collections','10tokqLW','\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','imports','1493253zrLOmu','mongo'];a112c=function(){return p;};return a112c();}import{Log}from'../tools/log/log.class.js';Generator[a112m(0x14b)]({'name':'collection','aliases':[a112m(0x141)],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a112m(0x12d)],'description':a112m(0x13d),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a112m;try{const c=this['fsi'][n(0x12e)]();await this[n(0x14c)][n(0x129)](c,async()=>{const o=n,d=paramCase(b[o(0x14d)]),f={'name':pascalCase(b[o(0x14d)]),'collectionName':pascalCase(b['resourceName']),'fileName':d,'where':b['where'],'test':c[o(0x143)][o(0x144)],'noRename':!![]};let g='js';c[o(0x143)]['js']===o(0x125)&&(g='ts');await this[o(0x14c)][o(0x132)]([o(0x140)],{'shouldInstall':!![]}),await this[o(0x14c)]['template']({'srcPath':'collection/collection.js','destPath':this[o(0x14c)][o(0x148)]({'pathParts':['imports',o(0x12f),b[o(0x135)],o(0x137),b['dir'],d+'.'+g]}),'context':f,'config':c});c[o(0x143)][o(0x144)]!==o(0x128)&&await this['fsi'][o(0x12a)]({'srcPath':o(0x134),'destPath':this[o(0x14c)]['pathFromApp']({'pathParts':[o(0x13e),o(0x12f),b[o(0x135)],'collections',b['dir'],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0x145)]?'/'+b[o(0x145)]+'/':'/',i=this[o(0x14c)]['pathFromApp']({'pathParts':[o(0x13e),'startup',b[o(0x135)],o(0x133)+c[o(0x143)]['js']]});await this[o(0x14c)]['injectAtEndOfFile']({'filePath':i,'content':o(0x13b)+h+d+'\x27;'});});}catch(d){Log[n(0x127)](d);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
const a113n=a113d;(function(a,b){const k=a113d,c=a();while(!![]){try{const d=-parseInt(k(0x1b2))/0x1+parseInt(k(0x1c5))/0x2*(parseInt(k(0x197))/0x3)+parseInt(k(0x1bb))/0x4*(parseInt(k(0x1c2))/0x5)+parseInt(k(0x1a2))/0x6+-parseInt(k(0x1c3))/0x7*(parseInt(k(0x1ac))/0x8)+parseInt(k(0x1b4))/0x9+parseInt(k(0x1a6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0xac14f));const a113b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a113d;if(c){const e=c[l(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a113a=a113b(this,function(){const m=a113d;return a113a[m(0x1b1)]()[m(0x1a1)](m(0x1a5))[m(0x1b1)]()['constructor'](a113a)[m(0x1a1)]('(((.+)+)+)+$');});function a113c(){const q=['133jBAwIk','maka\x20g:comp\x20todos/todos-item','10538UBpgbK','apply','injectAtBeginningOfFile','create','assign','findAppDirectory','.css','none','fsi','test','279LoBgCR','ssr','injectTemplateModule','baseDir','api','root','warn','react','withValue','test/test.js','search','4453122TgWcKR','css','fileName','(((.+)+)+)+$','2876260afUoJf','dir','.tests.js','import\x20\x27./','getMakaProjectConfig','/imports/ui/','61432vdAaAI','setTemplate','className','checkNpmPackage','resourceName','toString','1151966CvCnEJ','theme','1115658TadGts','features','true','engines','error','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','string','1435688Fkqolk','comp','client','component','template','withTranslations','ramda','5uCeKmK'];a113c=function(){return q;};return a113c();}a113a();import a113e from'path';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x190;let f=c[d];return f;},a113d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a113n(0x1bc)];Generator[a113n(0x190)]({'name':a113n(0x1be),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':a113n(0x1b9),'validOpts':[{'name':a113n(0x19a)}],'examples':[a113n(0x1c4)]},async function(a,b){const o=a113n;try{const c=this['fsi'][o(0x192)](),d=b[o(0x19a)]?o(0x1ab)+b[o(0x19a)]:'/imports/ui/components',f=this[o(0x195)]['pathFromApp']({'pathParts':[d,b[o(0x1a7)],paramCase(b[o(0x1b0)]),paramCase(b['resourceName'])]}),g=await this[o(0x195)][o(0x1aa)]();await this[o(0x195)][o(0x19f)](g,async()=>{const p=o;typeof g[p(0x1bf)][p(0x196)]===p(0x1ba)&&(g[p(0x1bf)]['test']=g[p(0x1bf)][p(0x196)]===p(0x1b6)?!![]:![],this[p(0x195)][p(0x1ad)](p(0x196),g['template'][p(0x196)]));typeof g[p(0x1bf)]['css']==='string'&&(g[p(0x1bf)]['css']=g[p(0x1bf)][p(0x1a3)]==='true'?!![]:![],this['fsi'][p(0x1ad)](p(0x1a3),g[p(0x1bf)][p(0x1a3)]));typeof g[p(0x1bf)]['js']===p(0x1ba)&&(g[p(0x1bf)]['js']=g[p(0x1bf)]['js']==='true'?!![]:![],this[p(0x195)][p(0x1ad)]('js',g[p(0x1bf)]['js']));!g['features']&&(g[p(0x1b5)]={});!b[p(0x19c)]&&!this[p(0x195)][p(0x1af)](p(0x1c1))&&(Log[p(0x19d)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this['fsi']['installNpmPackage'](p(0x1c1),{'cwd':c}));if(!b['root']&&!this[p(0x195)]['checkNpmPackage']('react')){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b['resourceName']),'myPath':a113e['relative'](this[p(0x195)]['pathFromProject']({}),f),'cssCaseName':paramCase(b[p(0x1b0)]),'className':pascalCase(b[p(0x1b0)]),'camelCaseName':camelCase(b[p(0x1b0)]),'fileName':paramCase(b[p(0x1b0)]),'graphql':g[p(0x1b7)]['graphql'],'features':g[p(0x1b5)],'client':g[p(0x1b7)][p(0x1bd)],'api':g[p(0x1b7)][p(0x19b)],'ssr':g[p(0x1b7)][p(0x198)],'test':g[p(0x1b7)][p(0x196)],'theme':g[p(0x1b7)][p(0x1b3)],'isLayout':![],'isComponent':!![],'withTranslations':g[p(0x1b5)][p(0x1c0)]};await this[p(0x195)]['template']({'srcPath':'component/component.js','destPath':f+'.js','context':h,'framework':'react','config':g});g[p(0x1b7)][p(0x196)]!==p(0x194)&&await this['fsi']['template']({'srcPath':p(0x1a0),'destPath':f+p(0x1a8),'context':h,'framework':p(0x19e),'config':g});g[p(0x1bf)][p(0x1a3)]&&(await this[p(0x195)][p(0x1bf)]({'srcPath':'template/template.css','destPath':f+p(0x193),'context':Object[p(0x191)]({},h,{'className':paramCase(b[p(0x1b0)])}),'config':g}),await this[p(0x195)][p(0x1c7)]({'filePath':f+'.'+g['engines']['js'],'content':p(0x1a9)+h['cssCaseName']+'.'+g[p(0x1b7)][p(0x1a3)]+'\x27;'}));const i=b[p(0x1a7)]?'/'+b[p(0x1a7)]+'/':'/',j=''+d+i+h[p(0x1a4)]+'/'+h['fileName'];await this[p(0x195)][p(0x199)](h[p(0x1ae)],g,j);});}catch(h){Log[o(0x1b8)](h);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a114k=a114d;(function(a,b){const i=a114d,c=a();while(!![]){try{const d=parseInt(i(0x1b2))/0x1+-parseInt(i(0x1a8))/0x2+parseInt(i(0x1bd))/0x3+-parseInt(i(0x1a7))/0x4+parseInt(i(0x1ae))/0x5*(parseInt(i(0x1a0))/0x6)+-parseInt(i(0x1a5))/0x7+parseInt(i(0x1b1))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0xe7195));const a114b=(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;};}()),a114a=a114b(this,function(){const j=a114d;return a114a[j(0x1aa)]()[j(0x19d)](j(0x19c))[j(0x1aa)]()[j(0x1a1)](a114a)[j(0x19d)](j(0x19c));});function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x19b;let f=c[d];return f;},a114d(a,b);}a114a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a114k(0x1b6),'usage':a114k(0x1ab),'shortDesc':a114k(0x1a4),'validOpts':[a114k(0x1ad)],'examples':[a114k(0x1a2)]},async function(a,b){const l=a114k;try{const c=this[l(0x1b4)][l(0x19e)]();await this[l(0x1b4)][l(0x1a6)](c,async()=>{const m=l,d={'app':c[m(0x1ba)],'appFileCase':paramCase(c[m(0x1ba)]),'name':pascalCase(b[m(0x1b9)]),'fileName':paramCase(b[m(0x1b9)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[m(0x1ad)]};let e=b[m(0x1b9)];if(e===m(0x1b3))e='development';else e===m(0x19b)&&(e=m(0x1a9));const f=this[m(0x1b4)][m(0x1bb)]({'pathParts':['config',e,m(0x19f)]});await this[m(0x1b4)][m(0x1b7)]({'srcPath':m(0x1b8),'destPath':f,'context':d,'config':c});if(e!=='local'){const g=this[m(0x1b4)][m(0x1bb)]({'pathParts':['config',e,m(0x1b0)]});await this[m(0x1b4)][m(0x1b7)]({'srcPath':m(0x1ac),'destPath':g,'context':{'app':c[m(0x1ba)],'isDocker':!![]},'config':c});}if(e===m(0x1bc)){const h=this[m(0x1b4)][m(0x1bb)]({'pathParts':[m(0x1b6),e,m(0x1a3)]});await this['fsi'][m(0x1b7)]({'srcPath':m(0x1b5),'destPath':h,'context':d,'config':c});}});}catch(d){Log[l(0x1af)](d);}});function a114c(){const n=['appName','pathFromProject','local','4833768LFjrkR','prod','(((.+)+)+)+$','search','getMakaProjectConfig','settings.json','222KQCqPq','constructor','maka\x20g:config\x20production','process.env','Generate\x20configuration\x20settings.','5373592MfytDT','withValue','4047816oWkCRw','614960JhepeW','production','toString','maka\x20{generate,\x20g}:{config}\x20<name>','config/pm2.config.js','isDocker','88805WQcyxt','error','pm2.config.js','969064LdpmSb','644125EwVNoW','dev','fsi','config/process.env','config','template','config/settings.json','resourceName'];a114c=function(){return n;};return a114c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a115l=a115d;(function(a,b){const
|
|
1
|
+
const a115l=a115d;(function(a,b){const i=a115d,c=a();while(!![]){try{const d=parseInt(i(0xb8))/0x1*(-parseInt(i(0xc0))/0x2)+-parseInt(i(0xb9))/0x3*(parseInt(i(0xd7))/0x4)+-parseInt(i(0xdc))/0x5+-parseInt(i(0xe4))/0x6*(-parseInt(i(0xc7))/0x7)+parseInt(i(0xe5))/0x8*(-parseInt(i(0xcb))/0x9)+parseInt(i(0xcf))/0xa*(parseInt(i(0xc6))/0xb)+parseInt(i(0xbe))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x2673c));const a115b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a115d;if(c){const e=c[j(0xe2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a115a=a115b(this,function(){const k=a115d;return a115a[k(0xe9)]()[k(0xc2)](k(0xdd))[k(0xe9)]()[k(0xd3)](a115a)[k(0xc2)](k(0xdd));});a115a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xb7;let f=c[d];return f;},a115d(a,b);}function a115c(){const o=['7078356MucUkC','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','196pRtZWe','dbc/config.js','search','sqlite','checkNpmPackage','template','2167Xheucb','1883nEPgll','create','fsi','injectAtEndOfFile','36LtPCUH','dbc/conn.js','-dbc\x27;','dir','11290KkqEPN','better-sqlite3','dbc/register-dbc.js','withValue','constructor','server','engines','-dbc.','258028ZaPItn','imports','mssql','type','maka\x20g:dbc\x20todos\x20--type=sqlite','372215BFYWRP','(((.+)+)+)+$','startup','resourceName','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','getMakaProjectConfig','apply','conn.','600nRkwXM','533032qtoEIO','config.','tsx','import\x20\x27./register-','toString','error','pgsql','1502LWULHN','9lZcmpD','pathFromApp','register-','dbc','index.'];a115c=function(){return o;};return a115c();}Generator[a115l(0xc8)]({'name':a115l(0xbc),'usage':a115l(0xbf),'shortDesc':a115l(0xe0),'validOpts':[a115l(0xce)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a115l(0xda),'values':[a115l(0xb7),a115l(0xd9),a115l(0xc3)]}],'examples':['maka\x20g:dbc\x20geoserver\x20--type=pgsql','maka\x20g:dbc\x20azure\x20--type=mssql',a115l(0xdb)]},async function(a,b){const m=a115l;try{const c=await this[m(0xc9)][m(0xe1)](),d=paramCase(b[m(0xdf)]),f={'name':pascalCase(b[m(0xdf)]),'fileName':paramCase(b[m(0xdf)]),'camelCase':camelCase(b[m(0xdf)]),'type':b[m(0xda)],'engine':c[m(0xd5)]['js'],'noRename':!![]};await this[m(0xc9)][m(0xd2)](c,async()=>{const n=m;let g='js';c[n(0xd5)]['js']===n(0xe7)&&(g='ts');b[n(0xda)]===n(0xb7)&&await this[n(0xc9)][n(0xc4)]('pg',{'shouldInstall':!![]});b[n(0xda)]===n(0xd9)&&await this['fsi'][n(0xc4)]('mssql',{'shouldInstall':!![]});b[n(0xda)]===n(0xc3)&&await this[n(0xc9)]['checkNpmPackage'](n(0xd0),{'shouldInstall':!![]});await this[n(0xc9)][n(0xc5)]({'srcPath':n(0xc1),'destPath':this[n(0xc9)]['pathFromApp']({'pathParts':['imports',n(0xde),n(0xd4),n(0xbc),b[n(0xce)],d,n(0xe6)+g]}),'context':f,'config':c}),await this['fsi'][n(0xc5)]({'srcPath':n(0xcc),'destPath':this[n(0xc9)][n(0xba)]({'pathParts':[n(0xd8),n(0xde),n(0xd4),n(0xbc),b['dir'],d,n(0xe3)+g]}),'context':f,'config':c}),await this[n(0xc9)][n(0xc5)]({'srcPath':n(0xd1),'destPath':this[n(0xc9)]['pathFromApp']({'pathParts':['imports',n(0xde),'server',n(0xbb)+d+n(0xd6)+g]}),'context':f,'config':c});const h=this[n(0xc9)][n(0xba)]({'pathParts':[n(0xd8),n(0xde),n(0xd4),n(0xbd)+c[n(0xd5)]['js']]});await this[n(0xc9)][n(0xca)]({'filePath':h,'content':n(0xe8)+d+n(0xcd)});});}catch(g){Log[m(0xea)](g);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a116k=a116d;(function(a,b){const h=a116d,c=a();while(!![]){try{const d
|
|
1
|
+
function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0x173;let f=c[d];return f;},a116d(a,b);}const a116k=a116d;function a116c(){const n=['35efpioP','isFile','173142XxBaMy','1600356kLstOj','create','(((.+)+)+)+$','cert','toString','maka\x20g:dockerfile','5751235PfkogS','force','join','withValue','appName','49XQtxqp','findProjectDirectory','5257908BAAELL','dockerfile','error','7429864fwhlJm','fsi','40780Pvviqu','Generate\x20an\x20updated\x20dockerfile','docker/Dockerfile','875502DSWTMX','maka\x20{generate,\x20g}:dockerfile','apply'];a116c=function(){return n;};return a116c();}(function(a,b){const h=a116d,c=a();while(!![]){try{const d=-parseInt(h(0x176))/0x1*(parseInt(h(0x17d))/0x2)+parseInt(h(0x180))/0x3+parseInt(h(0x186))/0x4+-parseInt(h(0x183))/0x5*(parseInt(h(0x185))/0x6)+parseInt(h(0x18c))/0x7+parseInt(h(0x17b))/0x8+-parseInt(h(0x178))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0xa062c));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a116d;if(c){const e=c[i(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const j=a116d;return a116a['toString']()['search'](j(0x188))[j(0x18a)]()['constructor'](a116a)['search'](j(0x188));});a116a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a116e from'path';Generator[a116k(0x187)]({'name':a116k(0x179),'usage':a116k(0x181),'shortDesc':a116k(0x17e),'validOpts':[{'name':a116k(0x18d),'boolFlag':!![]}],'noNeedResource':!![],'examples':[a116k(0x18b)]},async function(a,b){const l=a116k;try{const c=await this['fsi']['getMakaProjectConfig'](),d=await this[l(0x17c)]['getGlobalConfig'](),f=this['fsi'][l(0x177)]();await this[l(0x17c)][l(0x174)](c,async()=>{const m=l,g={'app':d[m(0x175)],'config':c,'appPath':a116e[m(0x173)](f,'app'),'bundlePath':a116e[m(0x173)](f,'build','app.tar.gz'),'useCert':this[m(0x17c)][m(0x184)](d[m(0x189)])};await this[m(0x17c)]['template']({'srcPath':m(0x17f),'destPath':a116e[m(0x173)](f,'Dockerfile'),'framework':'service','context':g,'config':c,'force':b[m(0x18d)]});});}catch(g){Log[l(0x17a)](g);}});
|