@maka/maka-cli 5.0.42 → 5.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/obf/package.json +1 -1
- package/bundle/obf/src/command.js +1 -1
- package/bundle/obf/src/commands/_index.js +1 -1
- package/bundle/obf/src/commands/ai.js +1 -1
- package/bundle/obf/src/commands/aws/_index.js +1 -1
- package/bundle/obf/src/commands/aws/aws.command.js +1 -1
- package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/build/_index.js +1 -1
- package/bundle/obf/src/commands/build/build.js +1 -1
- package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/create.js +1 -1
- package/bundle/obf/src/commands/debug.js +1 -1
- package/bundle/obf/src/commands/deploy/_index.js +1 -1
- package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
- package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/_index.js +1 -1
- package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/play.command.js +1 -1
- package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
- package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/generate.js +1 -1
- package/bundle/obf/src/commands/get/_index.js +1 -1
- package/bundle/obf/src/commands/get/get.command.js +1 -1
- package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/help.js +1 -1
- package/bundle/obf/src/commands/install.js +1 -1
- package/bundle/obf/src/commands/jsdoc.js +1 -1
- package/bundle/obf/src/commands/lint.js +1 -1
- package/bundle/obf/src/commands/login.js +1 -1
- package/bundle/obf/src/commands/logout.js +1 -1
- package/bundle/obf/src/commands/logs.js +1 -1
- package/bundle/obf/src/commands/maka.cmd.js +1 -1
- package/bundle/obf/src/commands/murder.js +1 -1
- package/bundle/obf/src/commands/profile.js +1 -1
- package/bundle/obf/src/commands/proxy.js +1 -1
- package/bundle/obf/src/commands/reconfig.js +1 -1
- package/bundle/obf/src/commands/register.js +1 -1
- package/bundle/obf/src/commands/run/_index.js +1 -1
- package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/run/run.command.js +1 -1
- package/bundle/obf/src/commands/set/_index.js +1 -1
- package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/set/set.command.js +1 -1
- package/bundle/obf/src/commands/ssh.js +1 -1
- package/bundle/obf/src/commands/ssl.js +1 -1
- package/bundle/obf/src/commands/test/_index.js +1 -1
- package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -1
- package/bundle/obf/src/commands/test/test.command.js +1 -1
- package/bundle/obf/src/commands/undo.js +1 -1
- package/bundle/obf/src/commands/version.js +1 -1
- package/bundle/obf/src/error.js +1 -1
- package/bundle/obf/src/exec.js +1 -1
- package/bundle/obf/src/generator.js +1 -1
- package/bundle/obf/src/generators/_index.js +1 -1
- package/bundle/obf/src/generators/api.js +1 -1
- package/bundle/obf/src/generators/aws/_index.js +1 -1
- package/bundle/obf/src/generators/aws/aws.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
- package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
- package/bundle/obf/src/generators/collection.js +1 -1
- package/bundle/obf/src/generators/component.js +1 -1
- package/bundle/obf/src/generators/config.js +1 -1
- package/bundle/obf/src/generators/dbc.js +1 -1
- package/bundle/obf/src/generators/dockerfile.js +1 -1
- package/bundle/obf/src/generators/hook.js +1 -1
- package/bundle/obf/src/generators/kits/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
- package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
- package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
- package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
- package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
- package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
- package/bundle/obf/src/generators/kits/kit.js +1 -1
- package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
- package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
- package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
- package/bundle/obf/src/generators/layout.js +1 -1
- package/bundle/obf/src/generators/maka.gen.js +1 -1
- package/bundle/obf/src/generators/methods.js +1 -1
- package/bundle/obf/src/generators/package.js +1 -1
- package/bundle/obf/src/generators/page.js +1 -1
- package/bundle/obf/src/generators/publish.js +1 -1
- package/bundle/obf/src/generators/route.js +1 -1
- package/bundle/obf/src/generators/service.js +1 -1
- package/bundle/obf/src/generators/services/_index.js +1 -1
- package/bundle/obf/src/generators/services/openssl.js +1 -1
- package/bundle/obf/src/generators/services/translation.js +1 -1
- package/bundle/obf/src/maka.js +1 -1
- package/bundle/obf/src/tool.js +1 -1
- package/bundle/obf/src/tools/actions/actions.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.class.js +1 -1
- package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
- package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.class.js +1 -1
- package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
- package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
- package/bundle/obf/src/tools/https/https.class.js +1 -1
- package/bundle/obf/src/tools/https/https.interface.js +1 -1
- package/bundle/obf/src/tools/log/log.class.js +1 -1
- package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
- package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
- package/bundle/obf/src/tools/options/options.class.js +1 -1
- package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
- package/bundle/obf/src/tools/progress/progress.class.js +1 -1
- package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
- package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
- package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
- package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d
|
|
1
|
+
const a97z=a97d;(function(a,b){const w=a97d,c=a();while(!![]){try{const d=-parseInt(w(0x160))/0x1+-parseInt(w(0x179))/0x2+-parseInt(w(0x17e))/0x3*(parseInt(w(0x16a))/0x4)+parseInt(w(0x183))/0x5+-parseInt(w(0x182))/0x6*(-parseInt(w(0x169))/0x7)+-parseInt(w(0x155))/0x8*(parseInt(w(0x152))/0x9)+parseInt(w(0x180))/0xa*(parseInt(w(0x15a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x4777e));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a97d;if(c){const e=c[x(0x16e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const y=a97d;return a97a[y(0x151)]()[y(0x187)](y(0x14c))[y(0x151)]()[y(0x17c)](a97a)[y(0x187)](y(0x14c));});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';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x14a;let f=c[d];return f;},a97d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';function a97c(){const B=['Checking\x20remote\x20host\x20availability','Create\x20and\x20manage\x20your\x20SSL\x20operations.','toString','3314799HwdKLy','maka\x20ssl\x20[command]','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','8avCgFY','exit','cfg','Remote\x20host\x20connection\x20successful','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','2255WeuWkt','success','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','notice','uname\x20-a','start','350015aDaxXw','existsSync','email','/ssh.json','genSSC','domainNames','\x20--email\x20','.csr','.crt','2582181JWJSvu','6576BZhWWC','New\x20CSR\x20written\x20to\x20','.key','Please\x20provide\x20a\x20command.','apply','withSpinner','letsencrypt','domains','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','ssl','fsi','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','maka\x20ssl\x20--env\x20dev\x20generate-csr','getAppConfigPath','join','536494qHWOVW','genCSR','env','constructor','letsencrypt.json','528AXiumc','ask','46030SgQVAm','stringify','6idSxny','1280765cLRYyr','readFileSync','appName','ssh','search','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','assign','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','ping','parse','sudo\x20snap\x20install\x20--classic\x20certbot','getMakaProjectConfig','(((.+)+)+)+$','error','mkKeysDir'];a97c=function(){return B;};return a97c();}Command['create']({'name':a97z(0x173),'usage':a97z(0x153),'validOpts':[a97z(0x171),a97z(0x162)],'requiredOpts':[a97z(0x17b)],'shortDesc':a97z(0x150),'mustBeInMakaProject':!![],'minArgLength':0x1,'examples':[a97z(0x176),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a97z(0x18a)]},async function(a,b){const A=a97z,c=this[A(0x157)][A(0x14b)](),d=this['cfg']['getEnvFromShorthand'](b[A(0x17b)]),f=this[A(0x157)][A(0x177)](d),g=this[A(0x174)][A(0x14e)]({'configPath':f});let h='';a&&(h=a[0x0]);try{if(h==='generate-csr')SSL[A(0x17a)]({'keyName':c[A(0x185)]+A(0x16c),'csrName':c['appName']+A(0x167),'cwd':g});else{if(h==='generate-ssc'){if(!a97e['existsSync'](a97f['join'](g,c['appName']+'.key')))throw A(0x188)+a97f[A(0x178)](g,c['appName']+'.key');if(!a97e[A(0x161)](a97f[A(0x178)](g,c[A(0x185)]+'.csr')))throw A(0x175)+a97f['join'](g,c['appName']+A(0x167));SSL[A(0x164)]({'keyName':c[A(0x185)]+A(0x16c),'crtName':c['appName']+A(0x168),'cwd':g}),Log[A(0x15d)](A(0x16b)+g);}else{if(h===A(0x170)){let i=b['domains'],j=b['email'];try{const q=a97e[A(0x184)](a97f[A(0x178)](f,A(0x17d)))[A(0x151)](),r=JSON['parse'](q);i=b[A(0x171)]?b[A(0x171)]:r[A(0x165)],j=b[A(0x162)]?b['email']:r['emailUpdate'],(!b[A(0x162)]||!b[A(0x171)])&&Log['notice']('Using\x20saved\x20letsencrypt\x20config');}catch(s){}const k=JSON[A(0x18c)](a97e[A(0x184)](f+A(0x163))['toString']());Object[A(0x189)](k,{'env':f}),Log['notice'](A(0x14f));try{const t=SSH[A(0x18b)](A(0x15e),k);if(!t)throw A(0x154);if(t)Log['success'](A(0x158));}catch(u){Log[A(0x14d)](u);return;}const l=Log[A(0x16f)]();l[A(0x15f)]('Verifying\x20Letsencrypt\x20configuration'),SSH[A(0x186)](A(0x172),{...k}),SSH[A(0x186)](A(0x14a),{...k}),SSH['ssh'](A(0x15c),{...k}),l[A(0x15b)]();const m=i?i:await Actions[A(0x17f)]('[?]\x20Domains\x20to\x20register:\x20'),n=j?j:await Actions[A(0x17f)]('Email\x20to\x20use\x20for\x20auto-updates:\x20');SSH[A(0x186)](A(0x159)+m+A(0x166)+n,{...k},{'verbose':!![]});const o={'domainNames':m,'emailUpdate':n},p=JSON[A(0x181)](o,null,0x2);a97e['writeFileSync'](a97f[A(0x178)](f,A(0x17d)),p);}else throw A(0x16d);}}}catch(v){console[A(0x14d)](v),process[A(0x156)](0x0);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a98d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a98d,c=a();while(!![]){try{var d=-parseInt(f(0xb7))/0x1+-parseInt(f(0xbc))/0x2+parseInt(f(0xb5))/0x3+-parseInt(f(0xbe))/0x4+parseInt(f(0xb8))/0x5*(-parseInt(f(0xbd))/0x6)+parseInt(f(0xbb))/0x7+-parseInt(f(0xb6))/0x8*(-parseInt(f(0xbf))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x373a0));var a98b=(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;};}()),a98a=a98b(this,function(){var g=a98d;return a98a[g(0xc0)]()['search'](g(0xc1))[g(0xc0)]()[g(0xb9)](a98a)[g(0xba)](g(0xc1));});a98a();import'./test.command.js';function a98c(){var h=['6LnbhQs','570120UkyMLl','27NbjQbc','toString','(((.+)+)+)+$','818790SBCDhk','929576HFOYEK','58170CkQpUV','1997555KhiJbC','constructor','search','2687608vNRzaz','358092VwoSvI'];a98c=function(){return h;};return a98c();}function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0xb5;var f=c[d];return f;},a98d(a,b);}import'./mocha.sub.cmd.js';import'./jest.sub.cmd.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a99q=a99d;(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(
|
|
1
|
+
const a99q=a99d;function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xd4;let f=c[d];return f;},a99d(a,b);}(function(a,b){const n=a99d,c=a();while(!![]){try{const d=-parseInt(n(0xdb))/0x1+parseInt(n(0x10a))/0x2+parseInt(n(0xdf))/0x3*(parseInt(n(0xf5))/0x4)+parseInt(n(0xe4))/0x5*(parseInt(n(0xed))/0x6)+-parseInt(n(0xee))/0x7*(parseInt(n(0x109))/0x8)+parseInt(n(0xe3))/0x9*(parseInt(n(0xff))/0xa)+-parseInt(n(0xd7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xcd5cb));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a99d;if(c){const e=c[o(0x102)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const p=a99d;return a99a[p(0x112)]()[p(0xfa)]('(((.+)+)+)+$')[p(0x112)]()[p(0xd4)](a99a)[p(0xfa)]('(((.+)+)+)+$');});a99a();import{Command}from'../../command.js';import a99e from'./test.command.js';import a99f from'jest';import a99g from'path';Command['create']({'name':'jest','usage':a99q(0x10e),'shortDesc':a99q(0xeb),'description':a99q(0xe8),'validOpts':[{'name':a99q(0x105),'boolFlag':!![],'description':a99q(0xfd)},{'name':a99q(0xf6),'boolFlag':!![],'description':a99q(0xfc)},{'name':a99q(0xec),'boolFlag':!![],'description':a99q(0xdd)},{'name':a99q(0x119),'boolFlag':!![],'description':a99q(0xd5)},{'name':a99q(0xe2),'boolFlag':!![],'description':a99q(0x103)},{'name':a99q(0x113),'description':'Specify\x20a\x20custom\x20Jest\x20config\x20file','regex':/^.+\.js$/},{'name':'clearCache','boolFlag':!![],'description':a99q(0xea)}]},async function(a,b){const r=a99q,c=this[r(0xe9)][r(0x110)](),d=this[r(0xe9)][r(0xe6)]();await this[r(0xe0)][r(0x107)]([r(0xef),r(0x117),r(0x104),r(0x106),r(0xfe)],{'cwd':c,'shouldInstall':!![],'saveDev':!![]});if(b[r(0xd9)]){await a99f[r(0xf7)]({'_':[],'$0':r(0x116),'clearCache':!![]},[c]);return;}const e=a99g[r(0xd6)](d,r(0x113),'jest.setup.js'),f=this[r(0xe9)][r(0xe1)](e);!f&&await this[r(0x100)][r(0x118)]({'srcPath':r(0x10b),'destPath':e,'framework':r(0x111),'context':{'noRename':!![]}});const g=a99g[r(0xd6)](c,'jest.config.js'),h=this['fsi']['isFile'](g);!h&&await this[r(0x100)][r(0x118)]({'srcPath':r(0xf3),'destPath':g,'framework':'service','context':{'noRename':!![]}});const i=a99g[r(0xd6)](c,r(0xf0)),j=this[r(0xe9)][r(0xe1)](i);!j&&await this['scaffold']['template']({'srcPath':r(0xf1),'destPath':i,'framework':r(0x111),'context':{'noRename':!![]}});const k={'_':a,'$0':'jest','testEnvironment':r(0xf2),'watch':b[r(0x105)]||![],'coverage':b['coverage']||![],'updateSnapshot':b['updateSnapshot']||![],'runInBand':b['runInBand']||![],'onlyFailures':b[r(0xe2)]||![],'config':b[r(0x113)]||undefined,'rootDir':c,'coverageDirectory':a99g['join'](d,r(0xf6)),'testPathIgnorePatterns':['/node_modules',r(0x10d),r(0xe7),r(0xde)],'testMatch':[r(0xfb)],'transform':{'^.+\x5c.(js|jsx|ts|tsx)$':r(0x114),'.+\x5c.(css|styl|less|sass|scss)$':r(0x104)},'transformIgnorePatterns':[r(0xf9),r(0xdc)],'setupFiles':[e],'moduleNameMapper':{'\x5c.(css|less|scss)$':r(0x106),'^/(.*)$':r(0xf8)}};try{const {results:l}=await a99f['runCLI'](k,[c]);l[r(0xda)]?(console[r(0x101)](r(0xf4)),b[r(0xf6)]&&console[r(0x101)](r(0x115))):(console[r(0xd8)](r(0x10c)),process[r(0xe5)](0x1));}catch(m){console[r(0xd8)](r(0x10f)+m[r(0x108)]),process[r(0xe5)](0x1);}},a99e);function a99c(){const s=['jest-environment-jsdom','11904790xLSdNW','scaffold','log','apply','Run\x20only\x20failed\x20tests\x20from\x20the\x20last\x20run','jest-css-modules-transform','watch','identity-obj-proxy','checkNpmPackage','message','88vszeNt','154566tAimTw','test/jest/jest.setup.js','Some\x20tests\x20failed.','<rootDir>/packages','maka\x20test:jest\x20<file|directory>\x20[--options]','Error\x20running\x20Jest:\x20','findAppDirectory','service','toString','config','babel-jest','Coverage\x20report\x20generated\x20in\x20the\x20\x22coverage\x22\x20directory.','jest','@babel/plugin-syntax-jsx','template','runInBand','constructor','Run\x20tests\x20sequentially\x20in\x20the\x20same\x20process','join','15380695nHXVMe','error','clearCache','success','110611pevLej','^.+\x5c.module\x5c.(css|sass|scss)$','Update\x20Jest\x20snapshots','<rootDir>/private','4341EwWYqi','pkg','isFile','onlyFailures','9VqWrkN','1795UwKkDJ','exit','findProjectDirectory','<rootDir>/public','Runs\x20Jest\x20tests\x20in\x20the\x20specified\x20file\x20or\x20directory\x20with\x20optional\x20Jest\x20configurations,\x20including\x20coverage\x20reports.','fsi','Clear\x20Jest\x20cache\x20before\x20running\x20tests','Run\x20a\x20Jest\x20test\x20suite\x20with\x20custom\x20options','updateSnapshot','12402BzyJWo','758653PVEfUg','@testing-library/react','babel.config.js','eslint/babel.config.js','jsdom','test/jest/jest.config.js','Tests\x20completed\x20successfully.','4236lpyloH','coverage','runCLI','<rootDir>/$1','/node_modules/','search','**/?(*.)+(app-tests).[tj]s?(x)','Generate\x20test\x20coverage\x20report','Run\x20Jest\x20in\x20watch\x20mode'];a99c=function(){return s;};return a99c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a100x=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d
|
|
1
|
+
const a100x=a100d;(function(a,b){const t=a100d,c=a();while(!![]){try{const d=-parseInt(t(0xc8))/0x1*(parseInt(t(0xd0))/0x2)+-parseInt(t(0xc4))/0x3*(parseInt(t(0xa3))/0x4)+parseInt(t(0xb9))/0x5+parseInt(t(0xc5))/0x6*(parseInt(t(0xc6))/0x7)+parseInt(t(0xbc))/0x8*(parseInt(t(0xa2))/0x9)+-parseInt(t(0x93))/0xa*(-parseInt(t(0x92))/0xb)+-parseInt(t(0xc7))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0x9995a));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const u=a100d;if(c){const e=c[u(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const v=a100d;return a100a['toString']()['search']('(((.+)+)+)+$')['toString']()[v(0xb2)](a100a)[v(0x9b)](v(0x98));});a100a();import a100e from'fs';import a100f from'path';import a100g from'dotenv';import{execSync}from'child_process';import a100h from'./test.command.js';import a100i from'../../generators/maka.gen.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a100c(){const A=['Meteor\x20is\x20installed.','(((.+)+)+)+$','.maka','relative','search','cfg','--driver','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','isMeteorInstalled','engines','inspect','1266894lZBqEe','2553892zOVjbo','local','fsi','packages','config','testAppPath','checkNpmPackage','env','notice','warn','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','splice','findProjectDirectory','info','cwd','constructor','create','--driver-package','concat','config.json','mocha','Your\x20local\x20config\x20has\x20gone\x20missing,\x20remaking\x20it...','5019195MSDChN','filter','openSync','32hljRLB','none','processAndRunGenerator','--packages','forEach','test','process.env','unit','3FPcXzb','102EDVXPG','43057uTiSfy','14131044WHWBmf','22531pgUWIG','Node\x20Env\x20Config:\x20','settings.json','mpi','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','apply','join','sanjo:jasmine','18DNXNIC','meteortesting:mocha','settings','jasmine','test-packages','--env','driver','createFile','maka\x20install\x20meteor\x20--force','rawLogs','77zLeEyH','1394930NGNUHP','parse','readFileSync','Meteor\x20Settings:\x20'];a100c=function(){return A;};return a100c();}const syncSource=function(a){const w=a100d;a100e[w(0xbb)](a,'r'),a100g[w(0xa7)]({'path':a});};function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x8b;let f=c[d];return f;},a100d(a,b);}Command[a100x(0xb3)]({'name':'mocha','mustBeInMakaProject':!![],'validOpts':['once',a100x(0xa6),a100x(0x8e),'driverPackage','unit',a100x(0xaa),a100x(0x91),'port',a100x(0xa1),a100x(0xa8)],'usage':'maka\x20test:mocha','aliases':['m'],'shortDesc':a100x(0xad),'examples':[]},async function(a,b){const y=a100x;try{this[y(0xcb)][y(0x9f)]()?Log[y(0xab)](y(0x97)):(Log['warn'](y(0xcc)),execSync(y(0x90),{'stdio':'inherit'}));this['pkg'][y(0xa9)]('@testing-library/dom\x20meteor-node-stubs\x20chai',{'shouldInstall':!![]});const c=b[y(0xaa)]?this[y(0x9c)]['getEnvFromShorthand'](b[y(0xaa)]):y(0xa4);(!b[y(0xc3)]||!!b['once'])&&(a=a[y(0xb5)](['--full-app']));b[y(0xc3)]&&delete b[y(0xc3)];let d=b['driver-package']||b[y(0x8e)]||y(0xbd);if(d==='none'){const l=JSON[y(0x94)](a100e[y(0x95)](a100f[y(0xce)](this[y(0xa5)][y(0xaf)](),y(0x99),y(0xb6)),'utf8'));if(l[y(0xa0)][y(0xc1)]===y(0x8b))d=y(0xcf);else l['engines'][y(0xc1)]===y(0xb7)&&(d=y(0xd1));}if(d===y(0xbd))throw'This\x20project\x20does\x20not\x20have\x20a\x20mocha\x20test\x20driver';(!b['driver-package']||!b[y(0x8e)])&&(a=a[y(0xb5)]([y(0xb4),d]));const f=this[y(0x9c)]['checkConfigExists'](y(0xa4));if(!f){Log[y(0xac)](y(0xb8));const m=this[y(0xa5)][y(0xaf)]();await a100i[y(0xbe)]('config',['local'],{'cwd':m,'root':!![]});}const g=this['cfg']['getAppConfigPath'](c),h=a100f[y(0xce)](g,y(0xc2));let i=a100f['join'](g,y(0xca));b['settings']?i=b[y(0xd2)]:i=a100f[y(0xce)](g,y(0xca));if(this[y(0xa5)]['isFile'](h)){const n=a100f[y(0x9a)](process[y(0xb1)](),h);Log['notice'](y(0xc9)+n),syncSource(h);}else{const o=a100f[y(0x9a)](process[y(0xb1)](),h);Log[y(0xb0)](y(0x9e)+o),this[y(0xa5)][y(0x8f)]({'filePath':h,'data':''});}if(this[y(0xa5)]['isFile'](i)){const p=a100f[y(0x9a)](process[y(0xb1)](),i);Log[y(0xab)](y(0x96)+p),a=a[y(0xb5)](['--settings',i]);}else{const q=a100f[y(0x9a)](process[y(0xb1)](),i);Log[y(0xac)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+q);}const j=process['argv']['slice'](0x2)[y(0xba)](r=>r!==y(0x8d))['filter'](r=>r!==y(0xc1))['filter'](r=>r!==a[0x0]);j[y(0xc0)]((r,s)=>{const z=y;(r===z(0x8d)||r===z(0x9d))&&j[z(0xae)](s,0x2),r===z(0xbf)&&j['splice'](s,0x1);});const k=b[y(0xa6)]?y(0x8c):y(0xc1);await this[y(0xcb)]['invokeMeteorCommand'](k,a[y(0xb5)](j));}catch(r){console['error'](r),process['exit'](0x0);}},a100h);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a101h=a101d;function a101c(){const i=['search','8CTAPsK','Run\x20a\x20Meteor\x20Test\x20Driver','create','constructor','4281076eBJHlj','267335hspMyo','5463zfjVHH','2585484KyfrYO','2774288zYGnMV','14HshPRx','(((.+)+)+)+$','\x0a\x20\x20\x20\x20Run\x20a\x20meteor\x20test\x20driver,\x20or\x20utilize\x20a\x20headless\x20test\x20suite.\x0a\x20\x20','3478230XkiCja','test','toString','2543598rwNXEl','63290twfeAO'];a101c=function(){return i;};return a101c();}(function(a,b){const f=a101d,c=a();while(!![]){try{const d=-parseInt(f(0xa0))/0x1*(parseInt(f(0x9b))/0x2)+parseInt(f(0xa2))/0x3+-parseInt(f(0x9f))/0x4+-parseInt(f(0x95))/0x5+parseInt(f(0x98))/0x6*(-parseInt(f(0xa4))/0x7)+-parseInt(f(0xa3))/0x8+parseInt(f(0xa1))/0x9*(parseInt(f(0x99))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a101c,0xa4758));const a101b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a101a=a101b(this,function(){const g=a101d;return a101a[g(0x97)]()[g(0x9a)](g(0xa5))[g(0x97)]()[g(0x9e)](a101a)['search'](g(0xa5));});a101a();function a101d(a,b){const c=a101c();return a101d=function(d,e){d=d-0x94;let f=c[d];return f;},a101d(a,b);}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const TestCommand=Command[a101h(0x9d)]({'name':a101h(0x96),'usage':'maka\x20test:<sub-command>','shortDesc':a101h(0x9c),'description':a101h(0x94),'validOpts':[]},async function(){throw UsageError;});export default TestCommand;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a102i=a102d;(function(a,b){var f=a102d,c=a();while(!![]){try{var d=-parseInt(f(0xe1))/0x1*(parseInt(f(0xe4))/0x2)+-parseInt(f(0xea))/0x3+parseInt(f(0xdc))/0x4*(parseInt(f(0xde))/0x5)+-parseInt(f(0xe0))/0x6+-parseInt(f(0xe9))/0x7*(parseInt(f(0xe5))/0x8)+-parseInt(f(0xe3))/0x9+parseInt(f(0xec))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a102c,0x40692));var a102b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a102d;if(c){var e=c[g(0xeb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a102a=a102b(this,function(){var h=a102d;return a102a[h(0xe7)]()[h(0xe8)](h(0xe6))[h(0xe7)]()[h(0xdd)](a102a)[h(0xe8)](h(0xe6));});function a102d(a,b){var c=a102c();return a102d=function(d,e){d=d-0xdc;var f=c[d];return f;},a102d(a,b);}a102a();import{Command}from'../command.js';import a102e from'../generators/maka.gen.js';Command['create']({'name':a102i(0xdf),'aliases':['u'],'validOpts':[],'shortDesc':a102i(0xe2),'experimental':!![]},async function(){var j=a102i;a102e[j(0xdf)]();});function a102c(){var k=['396492hFvoUR','apply','14152130XiGnfk','152iwSbiC','constructor','23215hlzmeO','undo','2493684sgTkRz','12vpEKLi','Read\x20the\x20project\x27s\x20history\x20and\x20attempt\x20to\x20undo\x20the\x20last\x20action','2223963YJjbaD','18146EwBbYe','208lYxljO','(((.+)+)+)+$','toString','search','114170NzMshc'];a102c=function(){return k;};return a102c();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(
|
|
1
|
+
function a103c(){const m=['This\x20often\x20happens\x20when\x20Meteor\x20doesn\x27t\x20use\x20SemVer','warn','create','isMakaProject','1100cfFCQi','fsi','\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','4986lnCNQK','mpi','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','System\x27s\x20Meteor\x20Version\x20','32928KZrjns','1593588oaleJG','245AdMbEK','bright','notice','(((.+)+)+)+$','version','An\x20error\x20occurred\x20while\x20processing\x20the\x20Meteor\x20version:\x20','1302535yylEgk','maka\x20version','61434lsuGHh','maka\x20v','replace','majestic','5.0.43','----------------------Project----------------------------','compareMakaToLatest','1273617fJWmVM','toString','error','94LpjluJ','constructor','4000960UExYdv','\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','exit','verbose','----------------------System----------------------------','valid','apply'];a103c=function(){return m;};return a103c();}const a103k=a103d;(function(a,b){const h=a103d,c=a();while(!![]){try{const d=parseInt(h(0x16d))/0x1*(parseInt(h(0x155))/0x2)+parseInt(h(0x16a))/0x3+parseInt(h(0x15a))/0x4+-parseInt(h(0x161))/0x5+-parseInt(h(0x159))/0x6*(parseInt(h(0x15b))/0x7)+parseInt(h(0x16f))/0x8+-parseInt(h(0x163))/0x9*(parseInt(h(0x152))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a103c,0x5669f));const a103b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a103d;if(c){const e=c[i(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a103a=a103b(this,function(){const j=a103d;return a103a['toString']()['search']('(((.+)+)+)+$')[j(0x16b)]()[j(0x16e)](a103a)['search'](j(0x15e));});function a103d(a,b){const c=a103c();return a103d=function(d,e){d=d-0x14c;let f=c[d];return f;},a103d(a,b);}a103a();import a103e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':a103k(0x167)};Command[a103k(0x150)]({'name':a103k(0x15f),'aliases':['v'],'usage':a103k(0x162),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a103k(0x157),'examples':[a103k(0x164),'maka\x20version'],'description':a103k(0x154)},async function(a,b){const l=a103k;try{Log[l(0x166)]('Maka\x20'+pjson[l(0x15f)]),await this[l(0x153)][l(0x169)]();if(b[l(0x172)]){await this[l(0x153)][l(0x169)](),Log['bright'](l(0x173));const c=this[l(0x156)]['getGlobalMeteorVersion']();Log[l(0x15c)]((l(0x158)+c)[l(0x165)]('\x0a',''));if(this['fsi'][l(0x151)]()){Log['bright'](l(0x168));const d=this[l(0x153)]['getProjectMeteorVersion']();try{!a103e[l(0x14c)](d)?Log[l(0x14f)]('Project\x27s\x20Meteor\x20Version\x20'+d[l(0x165)]('\x0a','')):Log[l(0x15d)]('Project\x27s\x20Meteor\x20Version\x20'+d[l(0x165)]('\x0a',''));}catch(f){Log['error'](l(0x160)+f),Log['error'](l(0x14e));}Log[l(0x15c)](l(0x170));}}}catch(g){console[l(0x16c)](g),process[l(0x171)](0x0);}});
|
package/bundle/obf/src/error.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a104d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a104d,c=a();while(!![]){try{var d=parseInt(f(0x189))/0x1*(parseInt(f(0x193))/0x2)+parseInt(f(0x18b))/0x3+-parseInt(f(0x190))/0x4*(-parseInt(f(0x191))/0x5)+parseInt(f(0x18e))/0x6*(-parseInt(f(0x188))/0x7)+-parseInt(f(0x18d))/0x8+-parseInt(f(0x186))/0x9+parseInt(f(0x18f))/0xa*(-parseInt(f(0x192))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a104c,0xccdd0));function a104c(){var h=['167222EkzUZV','5277744DbSpxN','toString','1050gPwgTF','19viZuAt','search','72105rKffHr','(((.+)+)+)+$','1416632KdDjZN','14802kIKNza','80rfGAiF','188yQelEj','100255qWSpep','800767oMTyZI'];a104c=function(){return h;};return a104c();}var a104b=(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;};}()),a104a=a104b(this,function(){var g=a104d;return a104a[g(0x187)]()[g(0x18a)](g(0x18c))[g(0x187)]()['constructor'](a104a)[g(0x18a)](g(0x18c));});a104a();export class UsageError{}export class UsageErrorWithSubs{}function a104d(a,b){var c=a104c();return a104d=function(d,e){d=d-0x186;var f=c[d];return f;},a104d(a,b);}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
|
-
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d
|
|
2
|
+
const a105k=a105d;(function(a,b){const h=a105d,c=a();while(!![]){try{const d=parseInt(h(0x171))/0x1+-parseInt(h(0x179))/0x2*(parseInt(h(0x170))/0x3)+-parseInt(h(0x175))/0x4+-parseInt(h(0x186))/0x5+parseInt(h(0x173))/0x6+-parseInt(h(0x17b))/0x7+parseInt(h(0x181))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a105c,0x984d2));const a105b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a105d;if(c){const e=c[i(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a105a=a105b(this,function(){const j=a105d;return a105a[j(0x185)]()['search']('(((.+)+)+)+$')[j(0x185)]()[j(0x17a)](a105a)[j(0x17c)](j(0x174));});a105a();import a105e from'path';function a105c(){const l=['writeFileSync','2996238HcSMLp','(((.+)+)+)+$','854320crSAIo','.meteor','NODE_OPTIONS','.maka','178HroMHD','constructor','1775123RrtDKC','search','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','homedir','existsSync','join','14029704CHnHIb','apply','global-config.json','env','toString','1403700AybpRX','36093lAKBCs','189408AgxEVB'];a105c=function(){return l;};return a105c();}import a105f from'os';import a105g from'fs';function a105d(a,b){const c=a105c();return a105d=function(d,e){d=d-0x170;let f=c[d];return f;},a105d(a,b);}const homeDir=a105f[a105k(0x17e)](),GLOBAL_CONFIG=a105k(0x183),pathToGlobalMakaConfig=a105e[a105k(0x180)](homeDir,a105k(0x176),a105k(0x178),GLOBAL_CONFIG);if(!a105g[a105k(0x17f)](pathToGlobalMakaConfig)){const jsonData=JSON['stringify']({},null,0x2);a105g[a105k(0x172)](pathToGlobalMakaConfig,jsonData);}process[a105k(0x184)][a105k(0x177)]=a105k(0x17d);import'./maka.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a106u=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=parseInt(r(0xd3))/0x1+parseInt(r(0xe5))/0x2+-parseInt(r(0xc8))/0x3*(-parseInt(r(0xb7))/0x4)+-parseInt(r(0x73))/0x5*(-parseInt(r(0x89))/0x6)+-parseInt(r(0xcd))/0x7+parseInt(r(0xf1))/0x8+-parseInt(r(0x81))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x7536b));function a106c(){const M=['cfg','where','undo','minOptsLength','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','invoke','fsi','.maka','Server','Generator.create\x20requires\x20a\x20handler\x20function!','fullNameChain','Location','Generator\x20requires\x20a\x20handler\x20function','tableList','lib','chdir','readHistory','reverse','options','findProjectDirectory','getGlobalConfig','message','root','stringify','forEach','handleGenerateError','transactionId','No\x20resource\x20name\x20specified','name','split','5272luMZya','Nothing\x20to\x20undo.','Too\x20many\x20options','maxOptsLength','experimental','(experimental)\x20','Both','assign','Alias','validateParams','writeHistory','addToHistory','pop','_historyFilePath','generatorName','Too\x20many\x20arguments','keys','312QgYBky','server','(((.+)+)+)+$','parse','client','3113229jzPSHM','utf-8','filter','Generator\x20not\x20found','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','No\x20undo\x20handler\x20defined\x20for\x20','568645QejJhS','pathFromProject','minArgLength','config','localeCompare','maxArgLength','existsSync','history.json','appPathPrefix','DARK','create','resourceName','size','Generator\x20format\x20is\x20incorrect','sep','error','warn','Too\x20few\x20arguments','760296EeTpmT','length','validateEngines','aliases','Client','bind','\x20not\x20found.\x20Cannot\x20undo.','setColorMode','listGenerators','includes','mustHaveMeteorInstalled','shortDesc','2544488JLUyRU','params','help','resourceNameRequired','select','Name','match','bright','addGenerator\x20requires\x20a\x20Generator\x20instance','2988640xAPLnZ','findGeneratorByName','map','_generators','replace','requiredEngines','Generator\x20','search','slice','from','projectConfig','light','notice','getMakaProjectConfig','9691200tuUCOb','pallet','cwd','colLocAnswer','getHistoryFileSize','statSync','writeFileSync','success','6DyTkpe','both','number','Generator\x20requires\x20a\x20name','addGenerator','_undoHandler','\x20generator.\x20Skipping\x20undo.','join','toString','push','shift','readFileSync','processAndRunGenerator','_handler','LIGHT','validateMeteorInstall'];a106c=function(){return M;};return a106c();}const a106b=(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;};}()),a106a=a106b(this,function(){const s=a106d;return a106a[s(0x91)]()[s(0x7a)](s(0xca))[s(0x91)]()['constructor'](a106a)[s(0x7a)](s(0xca));});a106a();import a106e from'path';import a106f from'fs';import a106g from'cli-table';import{v4 as a106h}from'uuid';import{kebabCase}from'change-case';import a106i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a106h();function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0x6c;let f=c[d];return f;},a106d(a,b);}async function inside(a='.',b){const t=a106d,c=process[t(0x83)]();try{return process['chdir'](a),await b();}finally{process[t(0xa8)](c);}}export class Generator extends Tool{[a106u(0xab)];['fullNameChain'];[a106u(0x7d)];[a106u(0x76)];[a106u(0xc4)];[a106u(0x8e)];['_genTransactionId'];['_handler'];constructor(a,b,c){const v=a106u;super();if(!a)throw new Error(v(0x9d));if(!a[v(0xb5)])throw new Error(v(0x8c));if(typeof b!=='function')throw new Error(v(0xa5));this[v(0x76)]=[];a[v(0x6d)]===undefined&&(a[v(0x6d)]=!![]);this[v(0xab)]=Object[v(0xbe)]({},a),this['name']=this[v(0xab)][v(0xb5)],this[v(0x96)]=b[v(0xea)](this);try{this[v(0xc4)]=this[v(0x9f)][v(0xd4)]({'pathParts':[v(0xa0),'history.json']})||a106e[v(0x90)]('.',v(0xa0),v(0xda));}catch(d){Log[v(0xe2)](d);}c&&(this['_undoHandler']=c[v(0xea)](this));}[a106u(0x85)](){const w=a106u;if(a106f['existsSync'](this[w(0xc4)])){const a=a106f[w(0x86)](this[w(0xc4)]);return a[w(0xdf)];}return 0x0;}[a106u(0xa9)](){const x=a106u;if(!a106f[x(0xd9)](this[x(0xc4)]))return[];return JSON[x(0xcb)](a106f[x(0x94)](this[x(0xc4)],x(0xce)));}[a106u(0xc1)](a){const y=a106u;this[y(0xc4)]&&!a106f[y(0xd9)](this[y(0xc4)])&&a106f[y(0x87)](this['_historyFilePath'],JSON[y(0xb0)]([])),a106f[y(0x87)](this[y(0xc4)],JSON[y(0xb0)](a,null,0x2));}[a106u(0xc2)](a){const z=a106u;try{a?.[z(0xf2)]?.['opts'][z(0xd6)]&&delete a[z(0xf2)]['opts'][z(0xd6)];const b=this[z(0xa9)](),c={'generatorName':this[z(0xa3)],'transactionId':TRANSACTION_ID,'details':a};b['push'](c);const d=Buffer[z(0x7c)](JSON['stringify'](b))[z(0xe6)];while(d>MAX_HISTORY_SIZE&&b[z(0xe6)]>0x0){b[z(0x93)]();}this[z(0xc1)](b);}catch(f){Log[z(0xe2)](f);}}async[a106u(0x9b)](){const A=a106u,a=this[A(0xa9)]();if(a[A(0xe6)]===0x0){Log[A(0xe3)](A(0xb8));return;}const b=a[A(0xc3)](),c=b[A(0xb3)],d=a[A(0xcf)](e=>e[A(0xb3)]===c);d[A(0x92)](b),d[A(0xaa)]();for(const e of d){const f=this[A(0x74)](e[A(0xc5)]);if(!f){Log['error']('Generator\x20'+e[A(0xc5)]+A(0xeb));continue;}if(f[A(0x8e)]){}else Log[A(0xe3)](A(0xd2)+e[A(0xc5)]+A(0x8f));}this[A(0xc1)](a[A(0xcf)](g=>g['transactionId']!==c));}static[a106u(0xdd)](a,b,c,d){const B=a106u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(B(0xa2));const e=new Generator(a,b,c);d=d||a106i;const f=d?d[B(0xa3)]:'';return e[B(0xa3)]=f?f+':'+a['name']:a[B(0xb5)],Object['assign'](e,{'parent':d?.[B(0xab)]?.[B(0xb5)]}),d[B(0x8d)](e),e;}[a106u(0x8d)](a){const C=a106u;if(!(a instanceof Generator))throw new Error(C(0x72));this['_generators'][C(0x92)](a);}async[a106u(0x95)](a,b=[],c={}){const D=a106u;let d;try{const f=a?.[D(0xb6)](':');if(!f||f['length']===0x0)throw D(0xe0);let g=this[D(0x76)],h;for(const i of f){h=g['find'](j=>j[D(0x70)](i));if(!h)throw'Generator\x20'+i+'\x20not\x20found';g=h['_generators'];}if(h)d=await h[D(0x9e)](b,c);else throw D(0xd0);}catch(j){Log[D(0xe2)](j);}return d;}[a106u(0x74)](a){const E=a106u,b=a?.['split'](':');if(!b||b[E(0xe6)]===0x0)return Log[E(0xe2)](E(0xe0)),null;let c=this[E(0x76)],d;for(const e of b){d=c['find'](f=>f['match'](e));if(!d)return Log['error'](E(0x79)+e+'\x20not\x20found'),null;c=d[E(0x76)];}return d||null;}async[a106u(0x9e)](a,b){const F=a106u,c=a[F(0x7b)]();b[F(0xde)]=c[0x0];const {config:d}=b;try{const f=await this[F(0x99)][F(0xad)](),g=f[F(0x82)]===F(0x7e)?ColorMode[F(0x97)]:ColorMode[F(0xdc)];Log[F(0xec)](g);const h=a[0x0]===_prevGen||a[F(0xe6)]===0x0&&this['_generators']['length']>=0x0,i=b[F(0x6c)]||b['h'];if(h&&i){if(this[F(0x76)][F(0xe6)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[F(0xab)]['mustBeInMakaProject']){if(!d){const j=this['validateMakaProject']();if(!j)throw new MustBeInProjectError();this['projectConfig']=this[F(0x99)][F(0x80)]();}else this[F(0x7d)]=d;}if(this[F(0xab)][F(0xef)]){const k=this[F(0x98)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[F(0xab)][F(0xd5)]==='number'){if(a[F(0xe6)]<this['options'][F(0xd5)]){Log[F(0xe2)](F(0xe4));throw new UsageError();}}if(typeof this[F(0xab)][F(0xd8)]==='number'){if(a['length']>this[F(0xab)][F(0xd8)]){Log['error'](F(0xc6));throw new UsageError();}}if(typeof this[F(0xab)][F(0x9c)]===F(0x8b)){if(Object[F(0xc7)](b)[F(0xe6)]<this['options']['minOptsLength']){Log[F(0xe2)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[F(0xab)][F(0xba)]==='number'){if(Object[F(0xc7)](b)[F(0xe6)]>=this[F(0xab)]['maxOptsLength']){Log[F(0xe2)](F(0xb9));throw new UsageError();}}}this['options'][F(0x78)]&&this[F(0xe7)](this[F(0xab)][F(0x78)]);await this[F(0xc0)](a,b,this[F(0xab)]);if(!b['resourceName']&&this['options'][F(0x6d)]){Log[F(0xe2)](F(0xb4));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[F(0xb2)](l),process['exit'](0x1);}return await inside(b['cwd'],async()=>{const G=F;try{if(!b[G(0xaf)]&&!this[G(0x9f)][G(0xac)]())throw new MustBeInProjectError();const m=b[G(0xde)]?.[G(0x77)](/\\/g,'/')[G(0xb6)]('/');!b['dir']&&(m?.[G(0xe6)]>0x1?(b[G(0xde)]=m[G(0xc3)](),c[0x0]=b['resourceName'],b['dir']=m[G(0x75)](o=>{return kebabCase(o);})[G(0x90)](a106e[G(0xe1)])):b['dir']='');if(this[G(0xab)]['checkWhere']){if(!b[G(0x9a)]){const p=await Actions[G(0x6e)]({'message':G(0xa4),'name':G(0x84),'choices':[{'name':G(0xe9),'value':'client'},{'name':G(0xa1),'value':G(0xc9)},{'name':G(0xbd),'value':G(0x8a)}]});b[G(0x9a)]=p;}const o=[G(0x8a),'client','server'];if(!o[G(0xee)](b[G(0x9a)])){Log[G(0xe2)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[G(0x9a)]){case G(0x8a):b['appPathPrefix']=G(0xa7);break;case G(0xc9):b[G(0xdb)]='server';break;case G(0xcc):b['appPathPrefix']=G(0xcc);break;default:b[G(0xdb)]='';}}const n=await this[G(0x96)]['call'](this,c,b);return n&&this[G(0xc2)]({'params':{'args':c,'opts':this[G(0x9f)]['deepen'](b)},'success':n?.[G(0x88)],'message':n?.[G(0xae)],'details':n?.['details']}),n;}catch(q){this[G(0xb2)](q);}});}[a106u(0xed)](){const H=a106u;this[H(0xa6)](this[H(0x76)]);}[a106u(0xb2)](a){const I=a106u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this['options'];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0x7f)]('Generators:'),this[I(0xa6)](this[I(0x76)]);else{if(a instanceof MustBeInProjectError)Log[I(0xe2)]('You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[I(0xe2)](I(0xd1)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[I(0xe2)]('There\x20is\x20no\x20Meteor\x20application\x20here');}}}[a106u(0xa6)](a){const J=a106u,b=new a106g({});b[J(0x92)]([J(0x6f),J(0xbf),'Description']),a['sort']((c,d)=>{const K=J;return c['name'][K(0xd7)](d['name']);})[J(0xb1)](c=>{const L=J,d=c[L(0xbb)](),e=d?L(0xbc)+c[L(0xf0)]():c[L(0xf0)]();b[L(0x92)]([c[L(0xb5)],c[L(0xe8)](),e]);}),Log[J(0x71)](b[J(0x91)]());}}
|
|
1
|
+
function a106c(){const M=['filter','number','details','Description','120zsCHWz','validateMakaProject','where','slice','success','bind','mustHaveMeteorInstalled','function','reverse','length','shortDesc','stringify','sort','writeHistory','addGenerator','colLocAnswer','utf-8','keys','aliases','Location','addGenerator\x20requires\x20a\x20Generator\x20instance','assign','help','message','minArgLength','207KlivDC','readHistory','listGenerators','No\x20resource\x20name\x20specified','cwd','pallet','Too\x20few\x20options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','cfg','setColorMode','notice','Generator\x20format\x20is\x20incorrect','writeFileSync','fullNameChain','search','tableList','You\x20must\x20be\x20in\x20a\x20maka\x20project\x20to\x20run\x20this\x20generator','Too\x20few\x20arguments','resourceNameRequired','_genTransactionId','.maka','Generator.create\x20requires\x20a\x20handler\x20function!','findGeneratorByName','_handler','_historyFilePath','warn','name','create','both','(experimental)\x20','3832074cZXbTU','Generator\x20requires\x20a\x20name','experimental','validateMeteorInstall','mustBeInMakaProject','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Client','select','\x20generator.\x20Skipping\x20undo.','options','bright','replace','Please\x20run\x20\x22maka\x20install\x20meteor\x22','projectConfig','client','split','validateParams','root','_generators','invoke','888081jjVfut','404080RYUOiK','lib','maxArgLength','deepen','processAndRunGenerator','DARK','history.json','412380xoyIXF','localeCompare','Both','existsSync','34783CzOOgQ','push','params','includes','opts','config','There\x20is\x20no\x20Meteor\x20application\x20here','error','transactionId','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','find','Alias','parse','321754FTxQty','(((.+)+)+)+$','sep','Generator\x20','requiredEngines','toString','findProjectDirectory','resourceName','\x20not\x20found','chdir','minOptsLength','LIGHT','handleGenerateError','statSync','_undoHandler','light','shift','generatorName','2BoMlaF','join','exit','appPathPrefix','from','addToHistory','getGlobalConfig','readFileSync','pathFromProject','Too\x20many\x20arguments','match','Generator\x20not\x20found','server','fsi','1352972UOjrIS','dir'];a106c=function(){return M;};return a106c();}const a106u=a106d;(function(a,b){const r=a106d,c=a();while(!![]){try{const d=parseInt(r(0xf6))/0x1*(parseInt(r(0xe4))/0x2)+parseInt(r(0xcb))/0x3+-parseInt(r(0x104))/0x4+-parseInt(r(0xd3))/0x5+-parseInt(r(0x141))/0x6+parseInt(r(0xd7))/0x7*(parseInt(r(0x10a))/0x8)+-parseInt(r(0x123))/0x9*(-parseInt(r(0xcc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a106c,0x8947e));const a106b=(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;};}()),a106a=a106b(this,function(){const s=a106d;return a106a[s(0xe9)]()[s(0x131)](s(0xe5))[s(0xe9)]()['constructor'](a106a)[s(0x131)](s(0xe5));});a106a();import a106e from'path';import a106f from'fs';import a106g from'cli-table';import{v4 as a106h}from'uuid';import{kebabCase}from'change-case';import a106i from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';function a106d(a,b){const c=a106c();return a106d=function(d,e){d=d-0xba;let f=c[d];return f;},a106d(a,b);}const MAX_HISTORY_SIZE=0x64*0x400,TRANSACTION_ID=a106h();async function inside(a='.',b){const t=a106d,c=process[t(0x127)]();try{return process[t(0xed)](a),await b();}finally{process['chdir'](c);}}export class Generator extends Tool{['options'];[a106u(0x130)];[a106u(0xc4)];[a106u(0xc9)];['_historyFilePath'];['_undoHandler'];[a106u(0x136)];['_handler'];constructor(a,b,c){const v=a106u;super();if(!a)throw new Error(v(0xbc));if(!a['name'])throw new Error(v(0x142));if(typeof b!==v(0x111))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[v(0xc9)]=[];a['resourceNameRequired']===undefined&&(a['resourceNameRequired']=!![]);this[v(0xc0)]=Object[v(0x11f)]({},a),this[v(0x13d)]=this[v(0xc0)][v(0x13d)],this[v(0x13a)]=b['bind'](this);try{this[v(0x13b)]=this[v(0x103)][v(0xfe)]({'pathParts':[v(0x137),v(0xd2)]})||a106e[v(0xf7)]('.',v(0x137),v(0xd2));}catch(d){Log[v(0xde)](d);}c&&(this['_undoHandler']=c[v(0x10f)](this));}['getHistoryFileSize'](){const w=a106u;if(a106f[w(0xd6)](this[w(0x13b)])){const a=a106f[w(0xf1)](this[w(0x13b)]);return a['size'];}return 0x0;}[a106u(0x124)](){const x=a106u;if(!a106f[x(0xd6)](this['_historyFilePath']))return[];return JSON[x(0xe3)](a106f[x(0xfd)](this[x(0x13b)],x(0x11a)));}['writeHistory'](a){const y=a106u;this[y(0x13b)]&&!a106f[y(0xd6)](this[y(0x13b)])&&a106f[y(0x12f)](this[y(0x13b)],JSON['stringify']([])),a106f['writeFileSync'](this[y(0x13b)],JSON[y(0x115)](a,null,0x2));}[a106u(0xfb)](a){const z=a106u;try{a?.[z(0xd9)]?.[z(0xdb)][z(0xdc)]&&delete a[z(0xd9)][z(0xdb)]['config'];const b=this['readHistory'](),c={'generatorName':this[z(0x130)],'transactionId':TRANSACTION_ID,'details':a};b[z(0xd8)](c);const d=Buffer[z(0xfa)](JSON[z(0x115)](b))[z(0x113)];while(d>MAX_HISTORY_SIZE&&b[z(0x113)]>0x0){b[z(0xf4)]();}this[z(0x117)](b);}catch(f){Log['error'](f);}}async['undo'](){const A=a106u,a=this['readHistory']();if(a[A(0x113)]===0x0){Log[A(0x13c)]('Nothing\x20to\x20undo.');return;}const b=a['pop'](),c=b['transactionId'],d=a[A(0x106)](e=>e[A(0xdf)]===c);d[A(0xd8)](b),d[A(0x112)]();for(const e of d){const f=this[A(0x139)](e[A(0xf5)]);if(!f){Log[A(0xde)](A(0xe7)+e['generatorName']+'\x20not\x20found.\x20Cannot\x20undo.');continue;}if(f[A(0xf2)]){}else Log[A(0x13c)]('No\x20undo\x20handler\x20defined\x20for\x20'+e[A(0xf5)]+A(0xbf));}this['writeHistory'](a[A(0x106)](g=>g[A(0xdf)]!==c));}static[a106u(0x13e)](a,b,c,d){const B=a106u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==B(0x111))throw new Error(B(0x138));const e=new Generator(a,b,c);d=d||a106i;const f=d?d[B(0x130)]:'';return e[B(0x130)]=f?f+':'+a[B(0x13d)]:a['name'],Object['assign'](e,{'parent':d?.[B(0xc0)]?.['name']}),d[B(0x118)](e),e;}['addGenerator'](a){const C=a106u;if(!(a instanceof Generator))throw new Error(C(0x11e));this[C(0xc9)][C(0xd8)](a);}async[a106u(0xd0)](a,b=[],c={}){const D=a106u;let d;try{const f=a?.[D(0xc6)](':');if(!f||f[D(0x113)]===0x0)throw D(0x12e);let g=this[D(0xc9)],h;for(const i of f){h=g[D(0xe1)](j=>j[D(0x100)](i));if(!h)throw D(0xe7)+i+D(0xec);g=h[D(0xc9)];}if(h)d=await h[D(0xca)](b,c);else throw D(0x101);}catch(j){Log[D(0xde)](j);}return d;}['findGeneratorByName'](a){const E=a106u,b=a?.[E(0xc6)](':');if(!b||b[E(0x113)]===0x0)return Log['error'](E(0x12e)),null;let c=this[E(0xc9)],d;for(const e of b){d=c[E(0xe1)](f=>f[E(0x100)](e));if(!d)return Log[E(0xde)](E(0xe7)+e+E(0xec)),null;c=d[E(0xc9)];}return d||null;}async[a106u(0xca)](a,b){const F=a106u,c=a[F(0x10d)]();b[F(0xeb)]=c[0x0];const {config:d}=b;try{const f=await this[F(0x12b)][F(0xfc)](),g=f[F(0x128)]===F(0xf3)?ColorMode[F(0xef)]:ColorMode[F(0xd1)];Log[F(0x12c)](g);const h=a[0x0]===_prevGen||a['length']===0x0&&this[F(0xc9)][F(0x113)]>=0x0,i=b[F(0x120)]||b['h'];if(h&&i){if(this[F(0xc9)][F(0x113)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!i){if(this[F(0xc0)][F(0xbb)]){if(!d){const j=this[F(0x10b)]();if(!j)throw new MustBeInProjectError();this[F(0xc4)]=this[F(0x12b)]['getMakaProjectConfig']();}else this['projectConfig']=d;}if(this[F(0xc0)][F(0x110)]){const k=this[F(0xba)]();if(!k)throw new NoMeteorFoundError();}if(typeof this['options']['minArgLength']===F(0x107)){if(a[F(0x113)]<this[F(0xc0)][F(0x122)]){Log['error'](F(0x134));throw new UsageError();}}if(typeof this[F(0xc0)][F(0xce)]===F(0x107)){if(a[F(0x113)]>this[F(0xc0)][F(0xce)]){Log[F(0xde)](F(0xff));throw new UsageError();}}if(typeof this[F(0xc0)][F(0xee)]===F(0x107)){if(Object[F(0x11b)](b)[F(0x113)]<this[F(0xc0)][F(0xee)]){Log[F(0xde)](F(0x129));throw new UsageError();}}if(typeof this['options']['maxOptsLength']==='number'){if(Object['keys'](b)[F(0x113)]>=this[F(0xc0)]['maxOptsLength']){Log[F(0xde)]('Too\x20many\x20options');throw new UsageError();}}}this[F(0xc0)][F(0xe8)]&&this['validateEngines'](this['options']['requiredEngines']);await this[F(0xc7)](a,b,this['options']);if(!b['resourceName']&&this['options'][F(0x135)]){Log[F(0xde)](F(0x126));throw new UsageError();}_prevGen=a[0x0];}catch(l){this[F(0xf0)](l),process[F(0xf8)](0x1);}return await inside(b[F(0x127)],async()=>{const G=F;try{if(!b[G(0xc8)]&&!this[G(0x103)][G(0xea)]())throw new MustBeInProjectError();const m=b[G(0xeb)]?.[G(0xc2)](/\\/g,'/')[G(0xc6)]('/');!b[G(0x105)]&&(m?.[G(0x113)]>0x1?(b[G(0xeb)]=m['pop'](),c[0x0]=b['resourceName'],b[G(0x105)]=m['map'](o=>{return kebabCase(o);})['join'](a106e[G(0xe6)])):b[G(0x105)]='');if(this[G(0xc0)]['checkWhere']){if(!b[G(0x10c)]){const p=await Actions[G(0xbe)]({'message':G(0x11d),'name':G(0x119),'choices':[{'name':G(0xbd),'value':G(0xc5)},{'name':'Server','value':G(0x102)},{'name':G(0xd5),'value':G(0x13f)}]});b['where']=p;}const o=[G(0x13f),G(0xc5),'server'];if(!o[G(0xda)](b[G(0x10c)])){Log[G(0xde)](G(0xe0));throw new UsageError();}switch(b[G(0x10c)]){case G(0x13f):b['appPathPrefix']=G(0xcd);break;case G(0x102):b[G(0xf9)]=G(0x102);break;case'client':b[G(0xf9)]='client';break;default:b[G(0xf9)]='';}}const n=await this[G(0x13a)]['call'](this,c,b);return n&&this['addToHistory']({'params':{'args':c,'opts':this['fsi'][G(0xcf)](b)},'success':n?.[G(0x10e)],'message':n?.[G(0x121)],'details':n?.[G(0x108)]}),n;}catch(q){this[G(0xf0)](q);}});}[a106u(0x125)](){const H=a106u;this[H(0x132)](this[H(0xc9)]);}[a106u(0xf0)](a){const I=a106u,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c,experimental:d}=this[I(0xc0)];Log['usage'](description,examples,usage,b,requiredOpts,c,d);if(a instanceof UsageErrorWithSubs)Log[I(0x12d)]('Generators:'),this[I(0x132)](this[I(0xc9)]);else{if(a instanceof MustBeInProjectError)Log['error'](I(0x133));else{if(a instanceof NoMeteorFoundError)Log[I(0xde)](I(0x12a)),Log[I(0x12d)](I(0xc3));else a instanceof NoMeteorAppFoundError&&Log[I(0xde)](I(0xdd));}}}[a106u(0x132)](a){const J=a106u,b=new a106g({});b['push'](['Name',J(0xe2),J(0x109)]),a[J(0x116)]((c,d)=>{const K=J;return c['name'][K(0xd4)](d[K(0x13d)]);})['forEach'](c=>{const L=J,d=c[L(0x143)](),e=d?L(0x140)+c['shortDesc']():c[L(0x114)]();b['push']([c[L(0x13d)],c[L(0x11c)](),e]);}),Log[J(0xc1)](b[J(0xe9)]());}}
|
|
@@ -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(0xa7))/0x1*(-parseInt(f(0xa6))/0x2)+-parseInt(f(0xb0))/0x3*(-parseInt(f(0xad))/0x4)+parseInt(f(0xab))/0x5+parseInt(f(0xa5))/0x6*(parseInt(f(0xaf))/0x7)+-parseInt(f(0xa3))/0x8*(-parseInt(f(0xac))/0x9)+-parseInt(f(0xa8))/0xa+-parseInt(f(0xa2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a107c,0xdeaaa));var a107b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a107d;if(c){var e=c[g(0xa9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a107a=a107b(this,function(){var h=a107d;return a107a[h(0xaa)]()[h(0xae)](h(0xa4))['toString']()[h(0xb1)](a107a)[h(0xae)](h(0xa4));});function a107d(a,b){var c=a107c();return a107d=function(d,e){d=d-0xa2;var f=c[d];return f;},a107d(a,b);}a107a();function a107c(){var i=['21JKMoSp','9RqCrZl','constructor','226985WAjWPf','3776216pGKmJI','(((.+)+)+)+$','741966tPYkhf','2nSBVCj','1382771XjBMcd','14724810CzsCfG','apply','toString','5005055XdQHHN','18LgPiFL','1962508tGdPvp','search'];a107c=function(){return i;};return a107c();}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';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a108A=a108d;
|
|
1
|
+
const a108A=a108d;(function(a,b){const x=a108d,c=a();while(!![]){try{const d=-parseInt(x(0x217))/0x1+-parseInt(x(0x213))/0x2+parseInt(x(0x1fa))/0x3+parseInt(x(0x1dd))/0x4+-parseInt(x(0x224))/0x5*(-parseInt(x(0x1e5))/0x6)+-parseInt(x(0x220))/0x7+parseInt(x(0x214))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a108c,0x65571));const a108b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a108d;if(c){const e=c[y(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a108a=a108b(this,function(){const z=a108d;return a108a[z(0x1e1)]()[z(0x21f)]('(((.+)+)+)+$')[z(0x1e1)]()['constructor'](a108a)['search'](z(0x216));});a108a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a108d(a,b){const c=a108c();return a108d=function(d,e){d=d-0x1db;let f=c[d];return f;},a108d(a,b);}function a108c(){const C=['info','exit','checkbox','scaffold','express','maka:rest','Do\x20you\x20want\x20to\x20enable\x20Apollo\x20Gateway?\x20(recommended)','template','graphql','imports','setProjectConfig','ddp-rate-limiter','\x27,\x20url:\x20Meteor.absoluteUrl(\x27graphql/','API\x20boundaries\x20to\x20create','projectConfig','engines','@apollo/subgraph','injectAtEndOfFile','startup','-rpc-methods.','\x27)\x20},','push','800724GwJOog','5369288eqMDlR','apollo','(((.+)+)+)+$','540847pShRNS','cfg','api/typeDefs.js','engines.api','mdg:validated-method','RPC\x20(Methods)','API\x20Version?\x20[v1]','@apollo/gateway','search','826469xCemvP','injectIntoFile','No\x20API\x20boundaries\x20selected','-api\x27;','1795765NgzUzF','dir','graphql-tag','checkMeteorPackage','index.','import\x20\x27./register-','includes','Apollo\x20Gateway\x20is\x20a\x20way\x20to\x20combine\x20multiple\x20GraphQL\x20APIs\x20into\x20a\x20single\x20API.\x20It\x20is\x20a\x20way\x20to\x20federate\x20multiple\x20GraphQL\x20APIs.','api/methods.js','normalize','1364028rviHfD','import\x20\x27/imports/api/apollo-gateway.','@apollo/server','checkNpmPackage','toString','-api.','withMethods','api/graphql-api.js','6kTKdvK','withGql','/imports/api/apollo-gateway.','findAppDirectory','test','pkg','server','withRest','{\x20name:\x20\x27','-rest-api.','api/api.js','pathFromApp','isFile','GraphQL','apply','error','maka\x20{generate,\x20g}:{api}\x20<resource-name>','tsx','register-','resolvers.','typeDefs.','309132DgWEkt','rest','api'];a108c=function(){return C;};return a108c();}import{Actions}from'../tools/actions/actions.class.js';import a108e from'path';import{camelCase,kebabCase,pascalCase}from'change-case';Generator['create']({'name':a108A(0x1fc),'aliases':['a'],'usage':a108A(0x1f5),'shortDesc':'Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).','validOpts':[a108A(0x225)],'examples':['maka\x20g:api\x20Todos'],'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20API\x20boundary\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20create\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20API\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const B=a108A;try{const {scaffold:c}=this,d=this[B(0x20b)],f=[{'name':B(0x21c),'value':B(0x1e3)}];f[B(0x212)]({'name':'REST\x20API','value':B(0x1ec)});d[B(0x20c)][B(0x205)]==='apollo'&&f[B(0x212)]({'name':B(0x1f2),'value':B(0x1e6)});const g={'message':B(0x20a),'name':'apiAnswers','choices':f},h=await Actions['ask'](B(0x21d))||'v1',i=await Actions[B(0x1ff)](g);i['length']===0x0&&(Log['error'](B(0x222)),process[B(0x1fe)](0x1));let j='js';d['engines']['js']===B(0x1f6)&&(j='ts');const k=this['fsi'][B(0x1e8)](),l=k+a108e[B(0x1dc)](B(0x1e7)+j),m=this['fsi'][B(0x1f1)](l);!m&&d['engines'][B(0x205)]===B(0x215)&&Log[B(0x1fd)](B(0x22b));let n=![];d['engines'][B(0x205)]==='apollo'&&(n=m?![]:await Actions['confirm'](B(0x203)));const o=b['resourceName'],p=kebabCase(o),q=b['dir']?'/'+b['dir']+'/':'/',r={'name':pascalCase(o),'apiVersion':h,'fileName':p,'camelCase':camelCase(o),'optsDir':q,'api':d['engines'][B(0x1fc)],'graphql':d[B(0x20c)][B(0x205)],'test':d['engines'][B(0x1e9)],'noRename':!![],'withMethods':i[B(0x22a)](B(0x1e3)),'withRest':i['includes']('withRest'),'withGql':i[B(0x22a)](B(0x1e6))};r[B(0x1ec)]&&(this[B(0x218)][B(0x207)](B(0x21a),B(0x1fb)),await this[B(0x1ea)][B(0x227)]([B(0x202)],{'shouldInstall':!![]}),await this['scaffold'][B(0x204)]({'srcPath':B(0x1ef),'destPath':this[B(0x200)][B(0x1f0)]({'pathParts':[B(0x206),'api',h,q,p,p+'-'+h+B(0x1ee)+j]}),'context':r,'config':d}));r[B(0x1e3)]&&(await this['pkg']['checkMeteorPackage']([B(0x208),B(0x21b)],{'shouldInstall':!![]}),await this[B(0x200)][B(0x204)]({'srcPath':B(0x1db),'destPath':this[B(0x200)]['pathFromApp']({'pathParts':['imports',B(0x1fc),h,q,p,p+'-'+h+B(0x210)+j]}),'context':r,'config':d}));if(r['withGql']){await this[B(0x1ea)][B(0x1e0)]([B(0x201),B(0x1df),B(0x20d),B(0x226),'express-rate-limit'],{'shouldInstall':!![]}),await this[B(0x200)]['template']({'srcPath':B(0x1e4),'destPath':this[B(0x200)][B(0x1f0)]({'pathParts':[B(0x206),B(0x1fc),h,q,p,p+'-'+h+'-graphql-api.'+j]}),'context':r,'config':d});const t=this['scaffold'][B(0x1f0)]({'pathParts':[B(0x206),B(0x1fc),h,q,p,'graphql',B(0x1f9)+j]});await this[B(0x200)]['template']({'srcPath':B(0x219),'destPath':t,'context':r,'config':d});const u=this[B(0x200)][B(0x1f0)]({'pathParts':[B(0x206),B(0x1fc),h,q,p,B(0x205),B(0x1f8)+j]});await this[B(0x200)]['template']({'srcPath':'api/resolvers.js','destPath':u,'context':r,'config':d});if(n){await this['pkg'][B(0x1e0)]([B(0x21e),B(0x201)],{'shouldInstall':!![]}),await this['scaffold'][B(0x204)]({'srcPath':'api/apollo-gateway.js','destPath':l,'context':r,'config':d}),await c[B(0x221)]({'filePath':l,'content':B(0x1ed)+p+h+B(0x209)+h+'/'+p+B(0x211),'begin':'subgraphs:\x20[','end':']'});const v=this[B(0x200)][B(0x1f0)]({'pathParts':[B(0x206),B(0x20f),B(0x1eb),B(0x228)+d[B(0x20c)]['js']]});await this[B(0x200)][B(0x20e)]({'filePath':v,'content':B(0x1de)+j+'\x27;'});}m&&await c['injectIntoFile']({'filePath':l,'content':B(0x1ed)+p+h+B(0x209)+h+'/'+p+B(0x211),'begin':'subgraphs:\x20[','end':']'});}await this[B(0x200)]['template']({'srcPath':'api/register-api.js','destPath':this[B(0x200)][B(0x1f0)]({'pathParts':[B(0x206),B(0x20f),B(0x1eb),B(0x1f7)+p+B(0x1e2)+j]}),'context':r,'config':d,'force':!![]});const s=this[B(0x200)][B(0x1f0)]({'pathParts':['imports',B(0x20f),B(0x1eb),B(0x228)+d[B(0x20c)]['js']]});await this[B(0x200)]['injectAtEndOfFile']({'filePath':s,'content':B(0x229)+p+B(0x223)});}catch(w){console[B(0x1f4)](w),process['exit'](0x1);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(
|
|
1
|
+
function a109d(a,b){var c=a109c();return a109d=function(d,e){d=d-0x1ec;var f=c[d];return f;},a109d(a,b);}(function(a,b){var f=a109d,c=a();while(!![]){try{var d=-parseInt(f(0x1f8))/0x1*(-parseInt(f(0x1f3))/0x2)+parseInt(f(0x1fa))/0x3+-parseInt(f(0x1f7))/0x4*(-parseInt(f(0x1ef))/0x5)+-parseInt(f(0x1ec))/0x6+-parseInt(f(0x1f4))/0x7*(parseInt(f(0x1f9))/0x8)+-parseInt(f(0x1f5))/0x9*(parseInt(f(0x1ed))/0xa)+-parseInt(f(0x1f2))/0xb*(-parseInt(f(0x1fb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a109c,0x44b9f));var a109b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a109d;if(c){var e=c[g(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a109a=a109b(this,function(){var h=a109d;return a109a[h(0x1f1)]()[h(0x1f6)](h(0x1f0))[h(0x1f1)]()['constructor'](a109a)[h(0x1f6)]('(((.+)+)+)+$');});function a109c(){var i=['search','8WqJwot','128lKWGVC','771472bDuLAj','1004985RMvvsa','874596NTCFkx','2307324zDINDy','11870SZyjVT','apply','190190mITZke','(((.+)+)+)+$','toString','55DqgzVC','6344SPdIrn','7unRPja','3177DbWqxF'];a109c=function(){return i;};return a109c();}a109a();import'./aws.js';import'./cloudformation/_index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a110i=a110d;function a110d(a,b){const c=a110c();return a110d=function(d,e){d=d-0x103;let f=c[d];return f;},a110d(a,b);}function a110c(){const j=['search','constructor','Generate\x20AWS\x20templates','4GZIdYK','(((.+)+)+)+$','2280609ftrZbe','maka\x20{generate,\x20g}:{aws}:<name>','23914656sdqYmT','29369hwebUT','1461354oYuCtv','apply','maka\x20g:aws','36EvBZVf','5920540kWtoBB','9159968zqEriq','create','toString','1099168PtsnZh','aws'];a110c=function(){return j;};return a110c();}(function(a,b){const f=a110d,c=a();while(!![]){try{const d=-parseInt(f(0x108))/0x1*(parseInt(f(0x10c))/0x2)+-parseInt(f(0x105))/0x3*(-parseInt(f(0x103))/0x4)+-parseInt(f(0x10d))/0x5+parseInt(f(0x109))/0x6+-parseInt(f(0x111))/0x7+-parseInt(f(0x10e))/0x8+parseInt(f(0x107))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a110c,0x9dc20));const a110b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a110d;if(c){const e=c[g(0x10a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a110a=a110b(this,function(){const h=a110d;return a110a[h(0x110)]()[h(0x113)](h(0x104))[h(0x110)]()[h(0x114)](a110a)['search'](h(0x104));});a110a();import{Generator}from'../../generator.js';const AWSGen=Generator[a110i(0x10f)]({'name':a110i(0x112),'usage':a110i(0x106),'shortDesc':a110i(0x115),'minArgLength':0x1,'isPro':![],'validOpts':[],'resourceNameRequired':![],'examples':[a110i(0x10b)],'experimental':!![]},async function(){});export default AWSGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(a,b){var f=a111d,c=a();while(!![]){try{var d
|
|
1
|
+
(function(a,b){var f=a111d,c=a();while(!![]){try{var d=-parseInt(f(0x144))/0x1*(-parseInt(f(0x141))/0x2)+-parseInt(f(0x136))/0x3*(parseInt(f(0x143))/0x4)+parseInt(f(0x13c))/0x5+-parseInt(f(0x139))/0x6+parseInt(f(0x140))/0x7+parseInt(f(0x13a))/0x8*(parseInt(f(0x13b))/0x9)+-parseInt(f(0x137))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a111c,0xa7d18));function a111c(){var i=['1175061OkWWnd','1137BUVQnd','20741550clRzAt','constructor','5914608YaFpAz','1586456OSicZx','45XmLMzV','6448510lAWunB','toString','search','apply','3567844DHjHvE','2eyeoSx','(((.+)+)+)+$','2308tTbymQ'];a111c=function(){return i;};return a111c();}function a111d(a,b){var c=a111c();return a111d=function(d,e){d=d-0x136;var f=c[d];return f;},a111d(a,b);}var a111b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a111d;if(c){var e=c[g(0x13f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a111a=a111b(this,function(){var h=a111d;return a111a[h(0x13d)]()[h(0x13e)](h(0x142))[h(0x13d)]()[h(0x138)](a111a)['search'](h(0x142));});a111a();import'./cloudformation.js';import'./create-ec2-instance.cf.gen.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=parseInt(f(
|
|
1
|
+
const a112i=a112d;(function(a,b){const f=a112d,c=a();while(!![]){try{const d=parseInt(f(0xe2))/0x1+-parseInt(f(0xe4))/0x2+-parseInt(f(0xdf))/0x3+parseInt(f(0xe8))/0x4+-parseInt(f(0xdc))/0x5+parseInt(f(0xe5))/0x6+-parseInt(f(0xdd))/0x7*(-parseInt(f(0xe3))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a112c,0x6eb40));const a112b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a112d;if(c){const e=c[g(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a112a=a112b(this,function(){const h=a112d;return a112a[h(0xdb)]()[h(0xe7)]('(((.+)+)+)+$')[h(0xdb)]()[h(0xde)](a112a)[h(0xe7)]('(((.+)+)+)+$');});a112a();import{Generator}from'../../../generator.js';import a112e from'../aws.js';function a112d(a,b){const c=a112c();return a112d=function(d,e){d=d-0xdb;let f=c[d];return f;},a112d(a,b);}function a112c(){const j=['create','search','1674696lQJtYd','toString','3545375VakdUG','10619735AxSDVT','constructor','849852kcllYq','apply','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}','73819vCWCPU','8LkFhAC','1332366bqwBEi','614304PMUDip'];a112c=function(){return j;};return a112c();}const CFGen=Generator[a112i(0xe6)]({'name':'cloudformation','aliases':['cf'],'usage':a112i(0xe1),'shortDesc':'AWS\x20Cloudformation\x20templates','resourceNameRequired':![],'validOpts':[''],'isPro':![],'examples':['maka\x20g:aws:cf'],'experimental':!![]},async function(){},async function(){},a112e);export default CFGen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a113q=a113d;(function(a,b){const o=a113d,c=a();while(!![]){try{const d
|
|
1
|
+
function a113c(){const s=['chooseSecurityGroup','replaceAll','cloudformation','(((.+)+)+)+$','AWS\x20Cloudformation\x20template\x20for\x20creating\x20an\x20EC2\x20instance','name','3344920jnCUPO','findProjectDirectory','create','2143566IeSnQu','constructor','cloudformation/create-ec2-instance.template','5jbGHHS','51234owTlIh','aws','error','create-ec2-instance.template','4iBQkml','Please\x20choose\x20a\x20key\x20to\x20use:\x20','cec2i','toString','15RMcSfB','1858944XCshVH','appName','403864YwXOBe','exit','ec2describeKeys','Setting\x20the\x20key-pair\x20to:\x20','create-ec2-instance','join','search','maka\x20g:aws:cf:cec2i','template','notice','maka\x20{generate,\x20g}:{aws}:{cloudformation,\x20cf}:cec2i','success','2441547MEiQHg','ask','1191260MnTNIo'];a113c=function(){return s;};return a113c();}const a113q=a113d;(function(a,b){const o=a113d,c=a();while(!![]){try{const d=parseInt(o(0x117))/0x1*(parseInt(o(0x11b))/0x2)+parseInt(o(0x11f))/0x3*(parseInt(o(0x122))/0x4)+parseInt(o(0x116))/0x5*(parseInt(o(0x13a))/0x6)+parseInt(o(0x130))/0x7+-parseInt(o(0x120))/0x8+-parseInt(o(0x12e))/0x9+-parseInt(o(0x137))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a113c,0x48694));const a113b=(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;};}()),a113a=a113b(this,function(){const p=a113d;return a113a[p(0x11e)]()[p(0x128)]('(((.+)+)+)+$')[p(0x11e)]()[p(0x114)](a113a)[p(0x128)](p(0x134));});a113a();import a113e from'path';import{Actions}from'../../../tools/actions/actions.class.js';import{capitalCase}from'change-case';import{Generator}from'../../../generator.js';function a113d(a,b){const c=a113c();return a113d=function(d,e){d=d-0x114;let f=c[d];return f;},a113d(a,b);}import{Log}from'../../../tools/log/log.class.js';import a113f from'./cloudformation.js';const CEC2Gen=Generator[a113q(0x139)]({'name':a113q(0x126),'aliases':[a113q(0x11d)],'usage':a113q(0x12c),'resourceNameRequired':![],'shortDesc':a113q(0x135),'mustBeInMakaProject':!![],'validOpts':[''],'isPro':![],'examples':[a113q(0x129)],'experimental':!![]},async function(){const r=a113q,{aws:a,fsi:b,scaffold:c,projectConfig:d}=this;try{const f=b[r(0x138)](),g=a113e[r(0x127)](f,r(0x133)),h=await a[r(0x124)](),i=await Actions[r(0x12f)](r(0x11c))||'-1';if(parseInt(i)<0x0){Log[r(0x119)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[r(0x12b)]('No\x20instance\x20has\x20been\x20created.');return;}let j='';if(h)for(const m of h){if(parseInt(i)===m['id']){j=m[r(0x136)],Log[r(0x12d)](r(0x125)+j);break;}}const k=await a[r(0x131)](),l={'amiId':'ami-055744c75048d8296','keyPair':j,'sgId':k,'instanceName':capitalCase(d[r(0x121)])[r(0x132)]('-','\x20')};await c[r(0x12a)]({'srcPath':r(0x115),'destPath':a113e[r(0x127)](g,r(0x11a)),'framework':r(0x118),'context':l,'config':d,'ignore':![]});}catch(n){Log[r(0x119)](n),process[r(0x123)](0x1);}},async function(){},a113f);export default CEC2Gen;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a114c(){const p=['col','
|
|
1
|
+
const a114n=a114d;function a114c(){const p=['where','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','projectConfig','175897EZnZZr','imports','index.','toString','startup','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','pkg','pathFromApp','import\x20\x27./collections','collection','col','engines','12HJvvUz','collection/collection.js','3uSDLzo','\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','9beFUen','template','constructor','10318190qtRaxi','2037545GQSwaB','appPathPrefix','none','443958mAvVOI','3456764AABPvi','collections','994408iVykwj','search','injectAtEndOfFile','error','test','tsx','dir','apply','resourceName','3190082RcGgGG','checkMeteorPackage','scaffold'];a114c=function(){return p;};return a114c();}(function(a,b){const k=a114d,c=a();while(!![]){try{const d=parseInt(k(0x154))/0x1+-parseInt(k(0x142))/0x2+-parseInt(k(0x139))/0x3*(parseInt(k(0x143))/0x4)+-parseInt(k(0x13f))/0x5+parseInt(k(0x137))/0x6*(parseInt(k(0x14e))/0x7)+-parseInt(k(0x145))/0x8*(parseInt(k(0x13b))/0x9)+parseInt(k(0x13e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a114c,0x7a5c4));const a114b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a114d;if(c){const e=c[l(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a114a=a114b(this,function(){const m=a114d;return a114a[m(0x157)]()['search']('(((.+)+)+)+$')[m(0x157)]()[m(0x13d)](a114a)[m(0x146)]('(((.+)+)+)+$');});a114a();import{kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a114d(a,b){const c=a114c();return a114d=function(d,e){d=d-0x133;let f=c[d];return f;},a114d(a,b);}Generator['create']({'name':a114n(0x134),'aliases':[a114n(0x135)],'usage':a114n(0x152),'checkWhere':!![],'shortDesc':a114n(0x159),'validOpts':[a114n(0x14b),a114n(0x151)],'mustBeInMakaProject':!![],'description':a114n(0x13a),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a114n;try{const c=this[o(0x153)],d=b['dir']?'/'+b[o(0x14b)]+'/':'/',f=kebabCase(b[o(0x14d)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0x14d)]),'fileName':f,'where':b[o(0x151)],'test':c[o(0x136)][o(0x149)],'noRename':!![]};let h='js';c[o(0x136)]['js']===o(0x14a)&&(h='ts');await this[o(0x15a)][o(0x14f)](['mongo'],{'shouldInstall':!![]}),await this['scaffold'][o(0x13c)]({'srcPath':o(0x138),'destPath':this[o(0x150)][o(0x15b)]({'pathParts':[o(0x155),o(0x158),b['appPathPrefix'],o(0x144),d,f+'.'+h]}),'context':g,'config':c});c['engines'][o(0x149)]!==o(0x141)&&await this[o(0x150)][o(0x13c)]({'srcPath':'collection/tests.js','destPath':this[o(0x150)][o(0x15b)]({'pathParts':[o(0x155),o(0x158),b[o(0x140)],o(0x144),d,f+'.app-tests.'+h]}),'context':g,'config':c});const i=this[o(0x150)][o(0x15b)]({'pathParts':[o(0x155),o(0x158),b[o(0x140)],o(0x156)+c['engines']['js']]});await this[o(0x150)][o(0x147)]({'filePath':i,'content':o(0x133)+d+f+'\x27;'});}catch(j){Log[o(0x148)](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a115m=a115d;(function(a,b){const k=a115d,c=a();while(!![]){try{const d=parseInt(k(0x119))/0x1*(parseInt(k(0xfa))/0x2)+parseInt(k(0x116))/0x3+-parseInt(k(0x12b))/0x4*(-parseInt(k(0x10f))/0x5)+-parseInt(k(0x12a))/0x6+-parseInt(k(0x11f))/0x7+parseInt(k(0xf7))/0x8+-parseInt(k(0x104))/0x9*(parseInt(k(0x110))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a115c,0x8b88c));const a115b=(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;};}()),a115a=a115b(this,function(){const l=a115d;return a115a[l(0xfe)]()[l(0x12c)]('(((.+)+)+)+$')[l(0xfe)]()[l(0x11c)](a115a)['search'](l(0x120));});function a115c(){const o=['search','withTranslations','2677744QIOaHw','fileName','.css','49222uqUNeu','pathFromApp','cssCaseName','maka\x20g:comp\x20todos/todos-item','toString','/imports/ui/components','component','cfg','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','dir','9KIQXDm','test','features','fsi','resourceName','template/template.css','engines','template','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','test/test.js','css','2800745bjctGu','4345450QdrtCS','pkg','none','baseDir','injectAtBeginningOfFile','react','715917MIkima','setTemplate','findProjectDirectory','30WtoTWQ','import\x20\x27./','ramda','constructor','ssr','scaffold','4372725vrzfOV','(((.+)+)+)+$','string','root','client','comp','assign','create','theme','projectConfig','api','1446504TiqNeR','4MGubfz'];a115c=function(){return o;};return a115c();}a115a();import a115e from'path';function a115d(a,b){const c=a115c();return a115d=function(d,e){d=d-0xf7;let f=c[d];return f;},a115d(a,b);}import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a115m(0x124)];Generator[a115m(0x126)]({'name':a115m(0x100),'aliases':aliases,'usage':a115m(0x102),'shortDesc':a115m(0x10c),'mustBeInMakaProject':!![],'validOpts':[{'name':a115m(0x113)}],'examples':[a115m(0xfd)]},async function(a,b){const n=a115m;try{const c=b[n(0x113)]?'/imports/ui/'+b['baseDir']:n(0xff),d=this[n(0x11e)][n(0xfb)]({'pathParts':[c,b[n(0x103)],kebabCase(b['resourceName']),kebabCase(b['resourceName'])]}),f=this[n(0x128)];typeof f[n(0x10b)]['test']===n(0x121)&&this[n(0x101)]['setTemplate'](n(0x105),f[n(0x10b)]['test']);typeof f['template'][n(0x10e)]===n(0x121)&&this[n(0x101)][n(0x117)](n(0x10e),f[n(0x10b)][n(0x10e)]);typeof f['template']['js']==='string'&&this[n(0x101)][n(0x117)]('js',f[n(0x10b)]['js']);await this[n(0x111)]['checkNpmPackage'](n(0x11b),{'shouldInstall':!b[n(0x122)]}),await this['pkg']['checkNpmPackage'](n(0x115),{'shouldInstall':!b[n(0x122)]});const g={'name':pascalCase(b[n(0x108)]),'myPath':a115e['relative'](this[n(0x107)][n(0x118)](),d),'cssCaseName':kebabCase(b[n(0x108)]),'className':pascalCase(b[n(0x108)]),'camelCaseName':camelCase(b['resourceName']),'fileName':kebabCase(b[n(0x108)]),'graphql':f[n(0x10a)]['graphql'],'features':f[n(0x106)],'client':f['engines'][n(0x123)],'api':f['engines'][n(0x129)],'ssr':f[n(0x10a)][n(0x11d)],'test':f[n(0x10a)]['test'],'theme':f[n(0x10a)][n(0x127)],'isLayout':![],'isComponent':!![],'withTranslations':f[n(0x106)][n(0x12d)]};await this[n(0x11e)][n(0x10b)]({'srcPath':'component/component.js','destPath':d+'.js','context':g,'framework':n(0x115),'config':f});f[n(0x10a)][n(0x105)]!==n(0x112)&&await this[n(0x11e)]['template']({'srcPath':n(0x10d),'destPath':d+'.tests.js','context':g,'framework':n(0x115),'config':f});f['template'][n(0x10e)]&&(await this[n(0x11e)]['template']({'srcPath':n(0x109),'destPath':d+n(0xf9),'context':Object[n(0x125)]({},g,{'className':kebabCase(b[n(0x108)])}),'config':f}),await this[n(0x11e)][n(0x114)]({'filePath':d+'.'+f['engines']['js'],'content':n(0x11a)+g[n(0xfc)]+'.'+f[n(0x10a)]['css']+'\x27;'}));const h=b[n(0x103)]?'/'+b[n(0x103)]+'/':'/',i=''+c+h+g[n(0xf8)]+'/'+g['fileName'];await this[n(0x11e)]['injectTemplateModule'](g['className'],f,i);}catch(j){Log['error'](j);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a116c(){const o=['pm2.config.js','2329660QBPyqo','scaffold','3aJjAUO','pathFromProject','production','494352VEbvCZ','toString','error','config','appName','prod','apply','fsi','dev','622309TFLhQj','process.env','1769196uVrSzc','45WGNbJi','ubuntu','Generate\x20configuration\x20settings.','1550824nZQqEt','config/process.env','resourceName','776174BXJKHJ','projectConfig','maka\x20g:config\x20production','(((.+)+)+)+$','config/pm2.config.js','constructor','template','maka\x20{generate,\x20g}:{config}\x20<name>','search','1485442nHvHLE','isDocker'];a116c=function(){return o;};return a116c();}const a116m=a116d;(function(a,b){const j=a116d,c=a();while(!![]){try{const d=parseInt(j(0xb0))/0x1+parseInt(j(0xc2))/0x2*(parseInt(j(0xc7))/0x3)+parseInt(j(0xb2))/0x4+-parseInt(j(0xc5))/0x5+-parseInt(j(0xa7))/0x6+parseInt(j(0xb9))/0x7+-parseInt(j(0xb6))/0x8*(parseInt(j(0xb3))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a116c,0x61cee));const a116b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a116d;if(c){const e=c[k(0xad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a116a=a116b(this,function(){const l=a116d;return a116a[l(0xa8)]()[l(0xc1)](l(0xbc))['toString']()[l(0xbe)](a116a)[l(0xc1)](l(0xbc));});a116a();import{Generator}from'../generator.js';function a116d(a,b){const c=a116c();return a116d=function(d,e){d=d-0xa6;let f=c[d];return f;},a116d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,kebabCase,pascalCase}from'change-case';Generator['create']({'name':a116m(0xaa),'usage':a116m(0xc0),'shortDesc':a116m(0xb5),'validOpts':[a116m(0xc3)],'mustBeInMakaProject':!![],'examples':[a116m(0xbb)]},async function(a,b){const n=a116m;try{const c=this[n(0xba)],d={'app':c[n(0xab)],'appFileCase':kebabCase(c[n(0xab)]),'name':pascalCase(b[n(0xb8)]),'fileName':kebabCase(b[n(0xb8)]),'camelCase':camelCase(b[n(0xb8)]),'userName':n(0xb4),'isDocker':b[n(0xc3)]};let e=b[n(0xb8)];if(e===n(0xaf))e='development';else e===n(0xac)&&(e=n(0xa6));const f=this[n(0xae)][n(0xc8)]({'pathParts':[n(0xaa),e,'settings.json']});await this[n(0xc6)]['template']({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(e!=='local'){const g=this[n(0xae)][n(0xc8)]({'pathParts':[n(0xaa),e,n(0xc4)]});await this[n(0xc6)]['template']({'srcPath':n(0xbd),'destPath':g,'context':{'app':c[n(0xab)],'isDocker':b['isDocker']||![]},'config':c});}if(e==='local'){const h=this[n(0xae)][n(0xc8)]({'pathParts':[n(0xaa),e,n(0xb1)]});await this['scaffold'][n(0xbf)]({'srcPath':n(0xb7),'destPath':h,'context':d,'config':c});}}catch(i){Log[n(0xa9)](i);}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a117n=a117d;(function(a,b){const k=a117d,c=a();while(!![]){try{const d=parseInt(k(
|
|
1
|
+
const a117n=a117d;(function(a,b){const k=a117d,c=a();while(!![]){try{const d=parseInt(k(0x11e))/0x1*(-parseInt(k(0x11f))/0x2)+parseInt(k(0x139))/0x3+-parseInt(k(0x147))/0x4+-parseInt(k(0x11c))/0x5+parseInt(k(0x129))/0x6+parseInt(k(0x11d))/0x7*(-parseInt(k(0x132))/0x8)+-parseInt(k(0x13e))/0x9*(-parseInt(k(0x120))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a117c,0xd2ba7));const a117b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a117d;if(c){const e=c[l(0x12c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a117a=a117b(this,function(){const m=a117d;return a117a[m(0x13a)]()['search'](m(0x12f))[m(0x13a)]()[m(0x12d)](a117a)['search']('(((.+)+)+)+$');});a117a();function a117c(){const p=['maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','create','maka\x20g:dbc\x20azure\x20--type=mssql','tsx','1712934NfNwkD','pgsql','config.','apply','constructor','pathFromApp','(((.+)+)+)+$','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','scaffold','8qdktFC','dbc/conn.js','dbc/register-dbc.js','injectAtEndOfFile','better-sqlite3','maka\x20g:dbc\x20geoserver\x20--type=pgsql','server','1695576FeMjKK','toString','maka\x20g:dbc\x20todos\x20--type=sqlite','engines','type','27izVxNy','import\x20\x27./register-','mssql','pkg','template','checkNpmPackage','sqlite','imports','dbc','152312ifFUHG','dir','1764510NOaPwM','4180519LSYvEB','27PGgkfX','119552TgVebT','8715370iWQNSq','resourceName','dbc/config.js','startup','-dbc\x27;'];a117c=function(){return p;};return a117c();}import{camelCase,kebabCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a117d(a,b){const c=a117c();return a117d=function(d,e){d=d-0x11c;let f=c[d];return f;},a117d(a,b);}Generator[a117n(0x126)]({'name':'dbc','usage':a117n(0x125),'shortDesc':a117n(0x130),'validOpts':['dir'],'mustBeInMakaProject':!![],'requiredOpts':[{'name':a117n(0x13d),'values':[a117n(0x12a),a117n(0x140),a117n(0x144)]}],'examples':[a117n(0x137),a117n(0x127),a117n(0x13b)]},async function(a,b){const o=a117n;try{const c=this['projectConfig'],d=kebabCase(b['resourceName']),f={'name':pascalCase(b[o(0x121)]),'fileName':kebabCase(b[o(0x121)]),'camelCase':camelCase(b['resourceName']),'type':b[o(0x13d)],'engine':c[o(0x13c)]['js'],'noRename':!![]},g=b[o(0x148)]?'/'+b[o(0x148)]+'/':'/';let h='js';c[o(0x13c)]['js']===o(0x128)&&(h='ts');b[o(0x13d)]==='pgsql'&&await this[o(0x141)][o(0x143)]('pg',{'shouldInstall':!![]});b[o(0x13d)]==='mssql'&&await this[o(0x141)][o(0x143)]('mssql',{'shouldInstall':!![]});b[o(0x13d)]===o(0x144)&&await this[o(0x141)][o(0x143)](o(0x136),{'shouldInstall':!![]});await this['scaffold'][o(0x142)]({'srcPath':o(0x122),'destPath':this[o(0x131)]['pathFromApp']({'pathParts':[o(0x145),o(0x123),o(0x138),o(0x146),g,d,o(0x12b)+h]}),'context':f,'config':c}),await this[o(0x131)][o(0x142)]({'srcPath':o(0x133),'destPath':this[o(0x131)][o(0x12e)]({'pathParts':['imports',o(0x123),'server',o(0x146),g,d,'conn.'+h]}),'context':f,'config':c}),await this[o(0x131)][o(0x142)]({'srcPath':o(0x134),'destPath':this[o(0x131)][o(0x12e)]({'pathParts':[o(0x145),o(0x123),o(0x138),'register-'+d+'-dbc.'+h]}),'context':f,'config':c});const i=this[o(0x131)][o(0x12e)]({'pathParts':[o(0x145),o(0x123),o(0x138),'index.'+c[o(0x13c)]['js']]});await this[o(0x131)][o(0x135)]({'filePath':i,'content':o(0x13f)+d+o(0x124)});}catch(j){Log['error'](j);}});
|