@maka/maka-cli 4.5.18 → 4.5.20

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.
Files changed (126) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -0
  27. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -0
  28. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -0
  29. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -0
  30. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -0
  31. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -0
  32. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -0
  33. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -0
  34. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -0
  35. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -0
  36. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -0
  37. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -0
  38. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -0
  39. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -0
  44. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  56. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  57. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  58. package/bundle/obf/src/commands/generate.js +1 -1
  59. package/bundle/obf/src/commands/get/_index.js +1 -1
  60. package/bundle/obf/src/commands/get/get.command.js +1 -1
  61. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  62. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  63. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  64. package/bundle/obf/src/commands/help.js +1 -1
  65. package/bundle/obf/src/commands/jsdoc.js +1 -1
  66. package/bundle/obf/src/commands/lint.js +1 -1
  67. package/bundle/obf/src/commands/login.js +1 -1
  68. package/bundle/obf/src/commands/logout.js +1 -1
  69. package/bundle/obf/src/commands/logs.js +1 -1
  70. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  71. package/bundle/obf/src/commands/murder.js +1 -1
  72. package/bundle/obf/src/commands/proxy.js +1 -1
  73. package/bundle/obf/src/commands/reconfig.js +1 -1
  74. package/bundle/obf/src/commands/run/_index.js +1 -1
  75. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/run/run.command.js +1 -1
  77. package/bundle/obf/src/commands/set/_index.js +1 -1
  78. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  79. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  80. package/bundle/obf/src/commands/set/set.command.js +1 -1
  81. package/bundle/obf/src/commands/ssh.js +1 -1
  82. package/bundle/obf/src/commands/ssl.js +1 -1
  83. package/bundle/obf/src/commands/test.js +1 -1
  84. package/bundle/obf/src/commands/version.js +1 -1
  85. package/bundle/obf/src/error.js +1 -1
  86. package/bundle/obf/src/generator.js +1 -1
  87. package/bundle/obf/src/generators/_index.js +1 -1
  88. package/bundle/obf/src/generators/api.js +1 -1
  89. package/bundle/obf/src/generators/collection.js +1 -1
  90. package/bundle/obf/src/generators/component.js +1 -1
  91. package/bundle/obf/src/generators/config.js +1 -1
  92. package/bundle/obf/src/generators/dbc.js +1 -1
  93. package/bundle/obf/src/generators/dockerfile.js +1 -1
  94. package/bundle/obf/src/generators/hook.js +1 -1
  95. package/bundle/obf/src/generators/kit.js +1 -1
  96. package/bundle/obf/src/generators/layout.js +1 -1
  97. package/bundle/obf/src/generators/maka.gen.js +1 -1
  98. package/bundle/obf/src/generators/methods.js +1 -1
  99. package/bundle/obf/src/generators/package.js +1 -1
  100. package/bundle/obf/src/generators/page.js +1 -1
  101. package/bundle/obf/src/generators/publish.js +1 -1
  102. package/bundle/obf/src/generators/route.js +1 -1
  103. package/bundle/obf/src/generators/service.js +1 -1
  104. package/bundle/obf/src/generators/services/_index.js +1 -1
  105. package/bundle/obf/src/generators/services/openssl.js +1 -1
  106. package/bundle/obf/src/generators/services/translation.js +1 -1
  107. package/bundle/obf/src/maka.js +2 -2
  108. package/bundle/obf/src/tool.js +1 -1
  109. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  110. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  111. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  112. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  113. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  114. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  115. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  116. package/bundle/obf/src/tools/https/https.class.js +1 -1
  117. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  118. package/bundle/obf/src/tools/log/log.class.js +1 -1
  119. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  120. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  121. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  122. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  123. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  124. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  125. package/package.json +1 -1
  126. package/bundle/obf/src/commands/game/sideQuest/commands/commands.js +0 -1
@@ -1 +1 @@
1
- const a72u=a72d;(function(a,b){const q=a72d,c=a();while(!![]){try{const d=-parseInt(q(0x144))/0x1+parseInt(q(0x17a))/0x2+parseInt(q(0x16e))/0x3*(-parseInt(q(0x150))/0x4)+parseInt(q(0x146))/0x5+parseInt(q(0x190))/0x6+-parseInt(q(0x16b))/0x7+parseInt(q(0x174))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0xc3be2));const a72b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a72d;if(c){const e=c[r(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a72a=a72b(this,function(){const s=a72d;return a72a['toString']()[s(0x178)](s(0x189))['toString']()['constructor'](a72a)[s(0x178)]('(((.+)+)+)+$');});a72a();import a72e from'path';import a72f from'cli-table';import{paramCase}from'change-case';import a72g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0x138;let f=c[d];return f;},a72d(a,b);}function a72c(){const G=['error','appPathPrefix','call','11547944RGAmFM','number','help','join','search','Alias','846702GypiHZ','addGenerator\x20requires\x20a\x20Generator\x20instance','mustHaveMeteorInstalled','validateMakaSubscription','Generator\x20requires\x20a\x20handler\x20function','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','exit','Generator.create\x20requires\x20a\x20handler\x20function!','find','shortDesc','split','Please\x20run\x20\x22maka\x20install\x20meteor\x22','minArgLength','minOptsLength','includes','(((.+)+)+)+$','create','toString','where','domainLicense','findGenerator','server','4472076izepOq','client','function','aliases','filter','pop','Generator.create\x20requires\x20some\x20options!','validateMakaProject','bright','findProjectDirectory','sort','parent','forEach','usage','validateParams','909389oeyfdh','singleLicense','6267080ZaiTQY','maxArgLength','To\x20use\x20this\x20generator,\x20\x22','Client','root','options','chdir','checkWhere','Server','name','64ybesgm','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','tableList','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','getPro','apply','push','assign','cwd','_handler','validateMeteorInstall','both','proGenerators','notice','replace','mustBeInMakaProject','_generators','Description','bind','match','roles','maxOptsLength','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','To\x20use\x20these\x20pro\x20flags,\x20\x22','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','keys','map','6835969IvgikC','length','Generator\x20requires\x20a\x20name','220854OjfcYN','Too\x20many\x20options','resourceName'];a72c=function(){return G;};return a72c();}import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const t=a72d,c=process['cwd']();let d=null;try{process[t(0x14c)](a),d=b();}finally{process[t(0x14c)](c);}return d;}export class Generator extends Tool{[a72u(0x14b)];[a72u(0x160)];constructor(a,b){const v=a72u;super();if(!a)throw new Error(v(0x166));if(!a[v(0x14f)])throw new Error(v(0x16d));if(typeof b!==v(0x192))throw new Error(v(0x17e));this[v(0x160)]=[],this[v(0x14b)]=Object[v(0x157)]({},a),this[v(0x14f)]=this[v(0x14b)]['name'],this[v(0x159)]=b[v(0x162)](this);}static[a72u(0x18a)](a,b,c){const w=a72u;if(!a)throw new Error(w(0x13b));if(typeof b!=='function')throw new Error(w(0x181));const d=new Generator(a,b);return c=c||a72g,Object[w(0x157)](d,{'parent':c?.[w(0x14b)]?.['name']}),c['addGenerator'](d),d;}['addGenerator'](a){const x=a72u;if(!(a instanceof Generator))throw new Error(x(0x17b));this[x(0x160)][x(0x156)](a);}[a72u(0x18e)](a){const y=a72u,b=this[y(0x160)][y(0x182)](c=>c[y(0x163)](a));return b;}async['validateMakaSubscription'](a,b){const z=a72u,c=this[z(0x18e)](a[0x0]);if(c){const d=c?.['name']||a[0x0],e=c?.[z(0x140)]||'',f=Object[z(0x169)](b),g=await this['fsi'][z(0x154)]();!g&&(Log[z(0x171)](z(0x151)),process[z(0x180)](0x1));const h=!g?.['roles'][z(0x188)](z(0x145))&&!g?.[z(0x164)][z(0x188)](z(0x18d)),i=g?.[z(0x15c)]['includes'](d)||g?.[z(0x15c)][z(0x188)](e);if(i&&h)throw z(0x148)+d+z(0x153);if(f['length']>0x0){const j=g?.['proFlags'][z(0x139)](k=>f[z(0x188)](k));if(j&&j[z(0x16c)]>0x0&&h)throw z(0x167)+j?.[z(0x177)](',\x20')+z(0x153);}}}async['invoke'](a,b){const A=a72u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x14b)];try{await this[A(0x17d)](a,b);}catch(g){Log[A(0x171)](g),process[A(0x180)](0x1);}const f=a['slice']();b[A(0x170)]=f[0x0];try{if((a[0x0]===_prevGen||a[A(0x16c)]===0x0)&&b[A(0x176)])throw new UsageError();if(this['options'][A(0x15f)]){const h=this[A(0x13c)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x14b)][A(0x17c)]){const i=this[A(0x15a)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x14b)][A(0x186)]===A(0x175)){if(a['length']<this[A(0x14b)][A(0x186)]){Log['error']('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[A(0x14b)][A(0x147)]==='number'){if(a['length']>this['options'][A(0x147)]){Log[A(0x171)]('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this[A(0x14b)][A(0x187)]===A(0x175)){if(Object['keys'](b)[A(0x16c)]<this[A(0x14b)][A(0x187)]){Log[A(0x171)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this[A(0x14b)][A(0x165)]===A(0x175)){if(Object[A(0x169)](b)[A(0x16c)]>=this[A(0x14b)][A(0x165)]){Log[A(0x171)](A(0x16f));throw new UsageError();}}this[A(0x143)](a,b,this[A(0x14b)]);if(!b['resourceName']&&!this[A(0x14b)]['noResource']){Log[A(0x171)]('No\x20resource\x20name\x20specified');throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0x142)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0x160)][A(0x16c)]>0x0&&b['help']&&(Log['notice']('Generators:'),this[A(0x152)](this[A(0x160)]));else{if(j instanceof MustBeInProjectError)Log[A(0x171)](A(0x17f));else{if(j instanceof NoMeteorFoundError)Log[A(0x171)](A(0x168)),Log[A(0x15d)](A(0x185));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x171)]('There\x20is\x20no\x20Meteor\x20application\x20here');else throw j;}}}process[A(0x180)](0x1);}return new Promise(k=>{const B=A;inside(b[B(0x158)],async()=>{const C=B;try{if(!b[C(0x14a)]&&!this['fsi'][C(0x13e)]())throw new MustBeInProjectError();const l=b[C(0x170)]?.[C(0x15e)](/\\/g,'/')[C(0x184)]('/');!b['dir']&&(l?.[C(0x16c)]>0x1?(b[C(0x170)]=l[C(0x13a)](),f[0x0]=b['resourceName'],b['dir']=l[C(0x16a)](m=>{return paramCase(m);})[C(0x177)](a72e['sep'])):b['dir']='');if(this[C(0x14b)][C(0x14d)]){if(!b['where']){const n={'type':'list','name':'colLocAnswer','message':'Location','choices':[{'name':C(0x149),'value':C(0x191)},{'name':C(0x14e),'value':C(0x18f)},{'name':'Both','value':C(0x15b)}]},{colLocAnswer:o}=await Actions[C(0x14b)](n);o?b['where']=o:b[C(0x18c)]=C(0x15b);}const m=[C(0x15b),C(0x191),'server'];if(!m[C(0x188)](b[C(0x18c)])){Log[C(0x171)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b['where']){case C(0x15b):b[C(0x172)]='lib';break;case'server':b[C(0x172)]='server';break;case'client':b[C(0x172)]=C(0x191);break;default:b[C(0x172)]='';}}k(this[C(0x159)][C(0x173)](this,f,b));}catch(p){console[C(0x171)](p);}});});}['listGenerators'](){const D=a72u;this[D(0x152)](this[D(0x160)]);}[a72u(0x152)](a){const E=a72u,b=new a72f({});b[E(0x156)](['Name',E(0x179),E(0x161)]),a[E(0x13f)]()[E(0x141)](c=>{const F=E;b[F(0x156)]([c['name'],c[F(0x138)](),c[F(0x183)]()]);}),Log[E(0x13d)](b[E(0x18b)]());}}
1
+ const a85t=a85d;function a85c(){const F=['4jFzNTw','tableList','cwd','sort','shortDesc','name','lib','server','Server','maxOptsLength','client','where','Generator.create\x20requires\x20some\x20options!','function','create','minArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','Too\x20many\x20arguments','8uiBrnE','replace','39373fkxFTF','call','parent','error','both','minOptsLength','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','help','Generator\x20requires\x20a\x20handler\x20function','2241060CzETDk','match','keys','Location','push','Alias','map','chdir','number','addGenerator\x20requires\x20a\x20Generator\x20instance','3055410HMbilZ','_generators','colLocAnswer','515080wdtINL','notice','assign','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','No\x20resource\x20name\x20specified','21ipCBXy','bright','Too\x20many\x20options','There\x20is\x20no\x20Meteor\x20application\x20here','dir','validateMeteorInstall','usage','253785GcAVCq','3699243xdCEzK','validateMakaSubscription','Name','_handler','findProjectDirectory','Description','join','appPathPrefix','To\x20use\x20these\x20pro\x20flags,\x20\x22','maxArgLength','invoke','validateParams','To\x20use\x20this\x20generator,\x20\x22','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','options','(((.+)+)+)+$','Too\x20few\x20options','Both','roles','noResource','proFlags','exit','toString','filter','Generator.create\x20requires\x20a\x20handler\x20function!','constructor','checkWhere','addGenerator','includes','resourceName','mustBeInMakaProject','Generator\x20requires\x20a\x20name','validateMakaProject','146520BKkbVr','listGenerators','length','proGenerators'];a85c=function(){return F;};return a85c();}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0xad;let f=c[d];return f;},a85d(a,b);}(function(a,b){const q=a85d,c=a();while(!![]){try{const d=parseInt(q(0x101))/0x1*(-parseInt(q(0xff))/0x2)+-parseInt(q(0xc7))/0x3*(parseInt(q(0xed))/0x4)+parseInt(q(0xe9))/0x5+parseInt(q(0xae))/0x6+parseInt(q(0xc0))/0x7*(parseInt(q(0xbb))/0x8)+-parseInt(q(0xc8))/0x9+parseInt(q(0xb8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x3ca4c));const a85b=(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;};}()),a85a=a85b(this,function(){const r=a85d;return a85a[r(0xde)]()['search'](r(0xd7))[r(0xde)]()[r(0xe1)](a85a)['search'](r(0xd7));});a85a();import a85e from'path';import a85f from'cli-table';import{paramCase}from'change-case';import a85g from'./generators/maka.gen.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevGen='';function inside(a='.',b){const s=a85d,c=process[s(0xef)]();let d=null;try{process['chdir'](a),d=b();}finally{process[s(0xb5)](c);}return d;}export class Generator extends Tool{['options'];[a85t(0xb9)];constructor(a,b){const u=a85t;super();if(!a)throw new Error('Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a[u(0xf2)])throw new Error(u(0xe7));if(typeof b!==u(0xfa))throw new Error(u(0xad));this[u(0xb9)]=[],this['options']=Object[u(0xbd)]({},a),this[u(0xf2)]=this[u(0xd6)][u(0xf2)],this[u(0xcb)]=b['bind'](this);}static[a85t(0xfb)](a,b,c){const v=a85t;if(!a)throw new Error(v(0xf9));if(typeof b!==v(0xfa))throw new Error(v(0xe0));const d=new Generator(a,b);return c=c||a85g,Object[v(0xbd)](d,{'parent':c?.[v(0xd6)]?.[v(0xf2)]}),c['addGenerator'](d),d;}[a85t(0xe3)](a){const w=a85t;if(!(a instanceof Generator))throw new Error(w(0xb7));this[w(0xb9)][w(0xb2)](a);}['findGenerator'](a){const x=a85t,b=this[x(0xb9)]['find'](c=>c[x(0xaf)](a));return b;}async[a85t(0xc9)](a,b){const y=a85t,c=this['findGenerator'](a[0x0]);if(c){const d=c?.[y(0xf2)]||a[0x0],e=c?.[y(0x103)]||'',f=Object[y(0xb0)](b),g=await this['fsi']['getPro']();!g&&(Log[y(0x104)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[y(0xdd)](0x1));const h=!g?.['roles'][y(0xe4)]('singleLicense')&&!g?.[y(0xda)][y(0xe4)]('domainLicense'),i=g?.[y(0xec)]['includes'](d)||g?.['proGenerators'][y(0xe4)](e);if(i&&h)throw y(0xd4)+d+y(0xd5);if(f[y(0xeb)]>0x0){const j=g?.[y(0xdc)][y(0xdf)](k=>f[y(0xe4)](k));if(j&&j[y(0xeb)]>0x0&&h)throw y(0xd0)+j?.[y(0xce)](',\x20')+y(0xd5);}}}async[a85t(0xd2)](a,b){const z=a85t,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[z(0xd6)];try{await this[z(0xc9)](a,b);}catch(g){Log[z(0x104)](g),process[z(0xdd)](0x1);}const f=a['slice']();b[z(0xe5)]=f[0x0];try{if((a[0x0]===_prevGen||a[z(0xeb)]===0x0)&&b['help'])throw new UsageError();if(this['options'][z(0xe6)]){const h=this[z(0xe8)]();if(!h)throw new MustBeInProjectError();}if(this['options']['mustHaveMeteorInstalled']){const i=this[z(0xc5)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[z(0xd6)][z(0xfc)]===z(0xb6)){if(a[z(0xeb)]<this[z(0xd6)][z(0xfc)]){Log[z(0x104)]('Too\x20few\x20arguments');throw new UsageError();}}if(typeof this[z(0xd6)][z(0xd1)]===z(0xb6)){if(a['length']>this[z(0xd6)][z(0xd1)]){Log[z(0x104)](z(0xfe));throw new UsageError();}}if(typeof this['options']['minOptsLength']==='number'){if(Object[z(0xb0)](b)[z(0xeb)]<this['options'][z(0x106)]){Log['error'](z(0xd8));throw new UsageError();}}if(typeof this['options'][z(0xf6)]==='number'){if(Object[z(0xb0)](b)[z(0xeb)]>=this[z(0xd6)][z(0xf6)]){Log[z(0x104)](z(0xc2));throw new UsageError();}}this[z(0xd3)](a,b,this[z(0xd6)]);if(!b[z(0xe5)]&&!this['options'][z(0xdb)]){Log[z(0x104)](z(0xbf));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[z(0xc6)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[z(0xb9)][z(0xeb)]>0x0&&b[z(0x108)]&&(Log[z(0xbc)]('Generators:'),this['tableList'](this['_generators']));else{if(j instanceof MustBeInProjectError)Log[z(0x104)](z(0xbe));else{if(j instanceof NoMeteorFoundError)Log[z(0x104)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](z(0xfd));else{if(j instanceof NoMeteorAppFoundError)Log[z(0x104)](z(0xc3));else throw j;}}}process[z(0xdd)](0x1);}return new Promise(k=>{const A=z;inside(b[A(0xef)],async()=>{const B=A;try{if(!b['root']&&!this['fsi'][B(0xcc)]())throw new MustBeInProjectError();const l=b[B(0xe5)]?.[B(0x100)](/\\/g,'/')['split']('/');!b[B(0xc4)]&&(l?.['length']>0x1?(b[B(0xe5)]=l['pop'](),f[0x0]=b[B(0xe5)],b[B(0xc4)]=l[B(0xb4)](m=>{return paramCase(m);})[B(0xce)](a85e['sep'])):b[B(0xc4)]='');if(this[B(0xd6)][B(0xe2)]){if(!b[B(0xf8)]){const n={'type':'list','name':B(0xba),'message':B(0xb1),'choices':[{'name':'Client','value':B(0xf7)},{'name':B(0xf5),'value':B(0xf4)},{'name':B(0xd9),'value':B(0x105)}]},{colLocAnswer:o}=await Actions[B(0xd6)](n);o?b[B(0xf8)]=o:b[B(0xf8)]='both';}const m=[B(0x105),B(0xf7),B(0xf4)];if(!m['includes'](b[B(0xf8)])){Log[B(0x104)](B(0x107));throw new UsageError();}switch(b[B(0xf8)]){case B(0x105):b[B(0xcf)]=B(0xf3);break;case B(0xf4):b['appPathPrefix']=B(0xf4);break;case B(0xf7):b[B(0xcf)]='client';break;default:b[B(0xcf)]='';}}k(this[B(0xcb)][B(0x102)](this,f,b));}catch(p){console[B(0x104)](p);}});});}[a85t(0xea)](){const C=a85t;this[C(0xee)](this[C(0xb9)]);}['tableList'](a){const D=a85t,b=new a85f({});b[D(0xb2)]([D(0xca),D(0xb3),D(0xcd)]),a[D(0xf0)]()['forEach'](c=>{const E=D;b[E(0xb2)]([c[E(0xf2)],c['aliases'](),c[E(0xf1)]()]);}),Log[D(0xc1)](b[D(0xde)]());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a73d,c=a();while(!![]){try{var d=parseInt(f(0x102))/0x1+-parseInt(f(0x101))/0x2*(parseInt(f(0x100))/0x3)+parseInt(f(0xfd))/0x4*(parseInt(f(0xf6))/0x5)+parseInt(f(0xfb))/0x6*(parseInt(f(0x105))/0x7)+-parseInt(f(0x103))/0x8+parseInt(f(0xfe))/0x9*(parseInt(f(0xf7))/0xa)+parseInt(f(0xf9))/0xb*(-parseInt(f(0x104))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0xc467a));var a73b=(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;};}()),a73a=a73b(this,function(){var g=a73d;return a73a[g(0xfc)]()[g(0xff)](g(0xf8))[g(0xfc)]()[g(0xfa)](a73a)[g(0xff)](g(0xf8));});a73a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';function a73d(a,b){var c=a73c();return a73d=function(d,e){d=d-0xf6;var f=c[d];return f;},a73d(a,b);}import'./dbc.js';import'./hook.js';import'./kit.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';function a73c(){var h=['495pcySFN','constructor','8070vtIHdn','toString','4cLHYBV','9sqjwUa','search','332769xsoEgL','16WqJiiN','754219QIovVE','2168672ZjKfkd','777540fBrYez','7763rSitLf','7897405JxtokX','10534120gSzseg','(((.+)+)+)+$'];a73c=function(){return h;};return a73c();}import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a86d,c=a();while(!![]){try{var d=-parseInt(f(0x130))/0x1+-parseInt(f(0x12d))/0x2*(parseInt(f(0x128))/0x3)+-parseInt(f(0x126))/0x4*(parseInt(f(0x123))/0x5)+parseInt(f(0x12a))/0x6+-parseInt(f(0x12f))/0x7+parseInt(f(0x12e))/0x8+-parseInt(f(0x12c))/0x9*(-parseInt(f(0x127))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x9cac5));var a86b=(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;};}()),a86a=a86b(this,function(){var g=a86d;return a86a['toString']()['search'](g(0x129))[g(0x124)]()[g(0x12b)](a86a)[g(0x125)](g(0x129));});a86a();function a86d(a,b){var c=a86c();return a86d=function(d,e){d=d-0x123;var f=c[d];return f;},a86d(a,b);}import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kit.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';function a86c(){var h=['292864ELnIqi','4649939DJkkzq','25396DxxpMY','95qoLaVX','toString','search','9436JTyDVl','110IcbrWL','3qDDBxw','(((.+)+)+)+$','3541338FaxLjV','constructor','671751XuEjLh','143266IGLLnm'];a86c=function(){return h;};return a86c();}import'./dockerfile.js';import'./maka.gen.js';
@@ -1 +1 @@
1
- const a74z=a74d;(function(a,b){const w=a74d,c=a();while(!![]){try{const d=parseInt(w(0xc4))/0x1*(-parseInt(w(0xf1))/0x2)+-parseInt(w(0xad))/0x3*(parseInt(w(0xf2))/0x4)+-parseInt(w(0xb3))/0x5+-parseInt(w(0xd9))/0x6*(parseInt(w(0xbd))/0x7)+parseInt(w(0xd0))/0x8+-parseInt(w(0xa4))/0x9+parseInt(w(0xdf))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a74c,0xb8f10));const a74b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a74d;if(c){const e=c[x(0xee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a74a=a74b(this,function(){const y=a74d;return a74a[y(0xe2)]()[y(0xb9)](y(0xcb))['toString']()[y(0xb0)](a74a)[y(0xb9)]('(((.+)+)+)+$');});a74a();import{Generator}from'../generator.js';function a74d(a,b){const c=a74c();return a74d=function(d,e){d=d-0x9d;let f=c[d];return f;},a74d(a,b);}import{Log}from'../tools/log/log.class.js';function a74c(){const C=['graphql','\x0aimport\x20{\x20resolvers\x20as\x20','21276FkkMsL','api/fixtures.js','api/tests.js','if\x20\x5c(typeList','checkbox','withValue','push','(((.+)+)+)+$','pathFromApp','fixtures.','api/methods.js','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','10101016AUOpxo','findGenerator','options','test','RPC\x20(Methods)','import\x20{\x20typeDefs\x20as\x20','publications.','api/register-api.js','injectIntoFile','2118WJwrEX','engines','No\x20API\x20boundaries\x20selected','withMethods','TypeDefs\x20}\x20from\x20\x27','Resolvers);\x0a\x0a','32837920ZBdmJh','checkMeteorPackage','maka:rest','toString','typeList.push(','mongo','rest','-api\x27;','resolvers.','rest-api.','resolverList.push(','injectAtBeginningOfFile','dir','apollo','api/typeDefs.js','apply','register-','exit','72lCdPLj','1066832xOjEas','withGql','log','/imports/api','rpc-methods.','includes','maka\x20{generate,\x20g}:{api}\x20<resource-name>','api/api.js','Verifying\x20meteor\x20package\x20requirements\x20...','4634838PbMFqB','imports','startup','fsi','REST\x20API','-api.','api','server','template','9RkyqqV','invoke','Publications','constructor','length','.app-tests.','2012315DJYpMv','none','/graphql/resolvers','injectAtEndOfFile','maka:check','installMeteorPackage','search','ddp-rate-limiter','/graphql/typeDefs','withPubs','25886ZIKFqr','withFixtures','withRest','API\x20boundaries\x20to\x20create','index.'];a74c=function(){return C;};return a74c();}import{Actions}from'../tools/actions/actions.class.js';import a74e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a74z(0xaa),'aliases':['a'],'usage':a74z(0xa1),'shortDesc':a74z(0xcf),'validOpts':[a74z(0xeb)],'examples':['maka\x20g:api\x20todos']},async function(a,b){const A=a74z;try{const c=this[A(0xa7)]['getProjectConfig'](),d=[{'name':A(0xd4),'value':'withMethods'},{'name':'Fixtures','value':A(0xbe)},{'name':A(0xaf),'value':'withPubs'}];c[A(0xda)][A(0xaa)]==='rest'&&d[A(0xca)]({'name':A(0xa8),'value':A(0xbf)});c['engines']['graphql']===A(0xec)&&d[A(0xca)]({'name':'GraphQL','value':A(0xf3)});const f={'type':A(0xc8),'name':'apiAnswers','message':A(0xc0),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0xd2)](f);g[A(0xb1)]===0x0&&(Log['error'](A(0xdb)),process[A(0xf0)](0x1)),this[A(0xa7)][A(0xc9)](c,async()=>{const B=A,h=this[B(0xa7)][B(0xcc)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0xeb)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xda)][B(0xaa)],'graphql':c[B(0xda)]['graphql'],'test':c[B(0xda)][B(0xd3)],'noRename':!![],'withPubs':g['includes'](B(0xbc)),'withFixtures':g[B(0xa0)](B(0xbe)),'withMethods':g['includes'](B(0xdc)),'withRest':g['includes']('withRest')};let n='js';c[B(0xda)]['js']==='tsx'&&(n='ts');(!this[B(0xa7)][B(0xe0)](B(0xe1))||!this[B(0xa7)][B(0xe0)](B(0xb7))||!this[B(0xa7)][B(0xe0)](B(0xba))||!this['fsi'][B(0xe0)]('mdg:validated-method')||!this[B(0xa7)]['checkMeteorPackage'](B(0xe4)))&&(Log['notice'](B(0xa3)),await this[B(0xa7)][B(0xb8)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a74e[B(0xd1)]('collection');o&&await o[B(0xae)]([j],{'config':c,'where':B(0xab)});c[B(0xda)][B(0xaa)]===B(0xe5)&&(m['withRest']&&this[B(0xa7)][B(0xac)]({'srcPath':B(0xa2),'destPath':this[B(0xa7)]['pathFromApp']({'pathParts':[B(0xa5),'api',b[B(0xeb)],j,B(0xe8)+n]}),'context':m,'config':c}));m[B(0xdc)]&&this['fsi']['template']({'srcPath':B(0xce),'destPath':this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xaa),b[B(0xeb)],j,B(0x9f)+n]}),'context':m,'config':c});m[B(0xbe)]&&this[B(0xa7)][B(0xac)]({'srcPath':B(0xc5),'destPath':this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xaa),b['dir'],j,B(0xcd)+n]}),'context':m,'config':c});c[B(0xda)][B(0xd3)]!==B(0xb4)&&this[B(0xa7)][B(0xac)]({'srcPath':B(0xc6),'destPath':this['fsi'][B(0xcc)]({'pathParts':['imports',B(0xaa),b['dir'],j,j+B(0xb2)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0xa7)][B(0xac)]({'srcPath':'api/publications.js','destPath':this[B(0xa7)]['pathFromApp']({'pathParts':['imports',B(0xaa),b[B(0xeb)],j,B(0xd6)+n]}),'context':m,'config':c});if(c[B(0xda)][B(0xc2)]===B(0xec)){if(g[B(0xa0)](B(0xf3))){const q=this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xa6),B(0xab),'index.'+c[B(0xda)]['js']]}),r=this[B(0xa7)]['rewriteDestinationPathForEngine']({'pathParts':[q],'config':c}),s=this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),'api',b[B(0xeb)],j,B(0xc2),'typeDefs.'+n]}),t=B(0x9e)+l+j+B(0xbb);this['fsi']['template']({'srcPath':B(0xed),'destPath':s,'context':m,'config':c}),this[B(0xa7)][B(0xea)]({'filePath':r,'content':B(0xd5)+k+B(0xdd)+t+'\x27;\x0a'}),this[B(0xa7)][B(0xd8)]({'filePath':r,'content':B(0xe3)+k+'TypeDefs);\x0a','begin':'const','end':'if\x20\x5c(typeList'});const u=this[B(0xa7)][B(0xcc)]({'pathParts':[B(0xa5),B(0xaa),b[B(0xeb)],j,B(0xc2),B(0xe7)+n]}),v=B(0x9e)+l+j+B(0xb5);this[B(0xa7)]['template']({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0xa7)]['injectAtBeginningOfFile']({'filePath':r,'content':B(0xc3)+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this[B(0xa7)][B(0xd8)]({'filePath':r,'content':B(0xe9)+k+B(0xde),'begin':'const','end':B(0xc7)});}}this['fsi'][B(0xac)]({'srcPath':B(0xd7),'destPath':this[B(0xa7)]['pathFromApp']({'pathParts':['imports',B(0xa6),B(0xab),B(0xef)+j+B(0xa9)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0xa7)][B(0xcc)]({'pathParts':['imports',B(0xa6),B(0xab),B(0xc1)+c['engines']['js']]});this[B(0xa7)][B(0xb6)]({'filePath':p,'content':'import\x20\x27./register-'+j+B(0xe6)});});}catch(h){console[A(0x9d)](h),process[A(0xf0)](0x0);}});
1
+ const a87z=a87d;(function(a,b){const w=a87d,c=a();while(!![]){try{const d=-parseInt(w(0xd4))/0x1*(-parseInt(w(0x11c))/0x2)+parseInt(w(0x119))/0x3*(-parseInt(w(0x116))/0x4)+parseInt(w(0xea))/0x5+parseInt(w(0x104))/0x6*(-parseInt(w(0xfb))/0x7)+parseInt(w(0x115))/0x8+-parseInt(w(0xf1))/0x9*(-parseInt(w(0xff))/0xa)+parseInt(w(0x11e))/0xb*(-parseInt(w(0xda))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x869bb));const a87b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a87d;if(c){const e=c[x(0x110)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a87a=a87b(this,function(){const y=a87d;return a87a[y(0xe5)]()[y(0xfe)](y(0x111))['toString']()[y(0xf6)](a87a)[y(0xfe)]('(((.+)+)+)+$');});a87a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a87c(){const C=['engines','exit','import\x20{\x20typeDefs\x20as\x20','GraphQL','9AWBJqZ','api/methods.js','withGql','typeDefs.','typeList.push(','constructor','rpc-methods.','\x27;\x0a','withFixtures','push','7650923lVKbTC','injectAtBeginningOfFile','findGenerator','search','3873710nAWqWe','const','resolvers.','withPubs','withRest','6ykUXqv','imports','installMeteorPackage','injectIntoFile','register-','notice','test','startup','log','withValue','api/register-api.js','invoke','apply','(((.+)+)+)+$','apollo','fsi','apiAnswers','5881560evUSdH','24gZapWw','No\x20API\x20boundaries\x20selected','injectAtEndOfFile','13719yoNaWN','maka:rest','api','2oZenhJ','/graphql/resolvers','2744181UHEoOw','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','template','checkMeteorPackage','rewriteDestinationPathForEngine','\x0aimport\x20{\x20resolvers\x20as\x20','import\x20\x27./register-','RPC\x20(Methods)','resolverList.push(','publications.','maka\x20g:api\x20todos','if\x20\x5c(typeList','maka\x20{generate,\x20g}:{api}\x20<resource-name>','136443KSsoHj','graphql','-api\x27;','api/fixtures.js','getProjectConfig','mongo','12DeVWpq','api/api.js','server','Resolvers\x20}\x20from\x20\x27','pathFromApp','rest','Verifying\x20meteor\x20package\x20requirements\x20...','error','index.','ddp-rate-limiter','dir','toString','collection','checkbox','api/tests.js','fixtures.','3311220IlPPUo','includes','.app-tests.'];a87c=function(){return C;};return a87c();}function a87d(a,b){const c=a87c();return a87d=function(d,e){d=d-0xd3;let f=c[d];return f;},a87d(a,b);}import{Actions}from'../tools/actions/actions.class.js';import a87e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a87z(0x11b),'aliases':['a'],'usage':a87z(0xd3),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a87z(0xe4)],'examples':[a87z(0x128)]},async function(a,b){const A=a87z;try{const c=this[A(0x113)][A(0xd8)](),d=[{'name':A(0x125),'value':'withMethods'},{'name':'Fixtures','value':A(0xf9)},{'name':'Publications','value':A(0x102)}];c[A(0xed)][A(0x11b)]==='rest'&&d['push']({'name':'REST\x20API','value':A(0x103)});c['engines'][A(0xd5)]===A(0x112)&&d[A(0xfa)]({'name':A(0xf0),'value':A(0xf3)});const f={'type':A(0xe7),'name':A(0x114),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g['length']===0x0&&(Log[A(0xe1)](A(0x117)),process['exit'](0x1)),this[A(0x113)][A(0x10d)](c,async()=>{const B=A,h=this[B(0x113)]['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0xe4)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0xed)][B(0x11b)],'graphql':c[B(0xed)][B(0xd5)],'test':c['engines'][B(0x10a)],'noRename':!![],'withPubs':g[B(0xeb)]('withPubs'),'withFixtures':g[B(0xeb)]('withFixtures'),'withMethods':g[B(0xeb)]('withMethods'),'withRest':g['includes']('withRest')};let n='js';c[B(0xed)]['js']==='tsx'&&(n='ts');(!this[B(0x113)]['checkMeteorPackage'](B(0x11a))||!this['fsi'][B(0x121)]('maka:check')||!this[B(0x113)][B(0x121)](B(0xe3))||!this[B(0x113)][B(0x121)]('mdg:validated-method')||!this[B(0x113)][B(0x121)](B(0xd9)))&&(Log[B(0x109)](B(0xe0)),await this[B(0x113)][B(0x106)](B(0x11f),{'cwd':h}));const o=a87e[B(0xfd)](B(0xe6));o&&await o[B(0x10f)]([j],{'config':c,'where':B(0xdc)});c[B(0xed)][B(0x11b)]===B(0xdf)&&(m[B(0x103)]&&this[B(0x113)]['template']({'srcPath':B(0xdb),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b['dir'],j,'rest-api.'+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x120)]({'srcPath':B(0xf2),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0xf7)+n]}),'context':m,'config':c});m[B(0xf9)]&&this['fsi'][B(0x120)]({'srcPath':B(0xd7),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b['dir'],j,B(0xe9)+n]}),'context':m,'config':c});c['engines'][B(0x10a)]!=='none'&&this[B(0x113)][B(0x120)]({'srcPath':B(0xe8),'destPath':this[B(0x113)][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,j+B(0xec)+n]}),'context':m,'config':c});m[B(0x102)]&&this[B(0x113)][B(0x120)]({'srcPath':'api/publications.js','destPath':this['fsi'][B(0xde)]({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0x127)+n]}),'context':m,'config':c});if(c['engines'][B(0xd5)]===B(0x112)){if(g[B(0xeb)]('withGql')){const q=this['fsi']['pathFromApp']({'pathParts':[B(0x105),B(0x10b),B(0xdc),B(0xe2)+c['engines']['js']]}),r=this['fsi'][B(0x122)]({'pathParts':[q],'config':c}),s=this['fsi']['pathFromApp']({'pathParts':[B(0x105),B(0x11b),b[B(0xe4)],j,B(0xd5),B(0xf4)+n]}),t='/imports/api'+l+j+'/graphql/typeDefs';this[B(0x113)][B(0x120)]({'srcPath':'api/typeDefs.js','destPath':s,'context':m,'config':c}),this[B(0x113)][B(0xfc)]({'filePath':r,'content':B(0xef)+k+'TypeDefs\x20}\x20from\x20\x27'+t+B(0xf8)}),this[B(0x113)][B(0x107)]({'filePath':r,'content':B(0xf5)+k+'TypeDefs);\x0a','begin':B(0x100),'end':B(0x129)});const u=this[B(0x113)][B(0xde)]({'pathParts':['imports','api',b['dir'],j,B(0xd5),B(0x101)+n]}),v='/imports/api'+l+j+B(0x11d);this[B(0x113)][B(0x120)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this[B(0x113)][B(0xfc)]({'filePath':r,'content':B(0x123)+k+B(0xdd)+v+'\x27;'}),this[B(0x113)][B(0x107)]({'filePath':r,'content':B(0x126)+k+'Resolvers);\x0a\x0a','begin':B(0x100),'end':B(0x129)});}}this[B(0x113)][B(0x120)]({'srcPath':B(0x10e),'destPath':this[B(0x113)][B(0xde)]({'pathParts':['imports','startup',B(0xdc),B(0x108)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this['fsi'][B(0xde)]({'pathParts':['imports','startup',B(0xdc),'index.'+c['engines']['js']]});this[B(0x113)][B(0x118)]({'filePath':p,'content':B(0x124)+j+B(0xd6)});});}catch(h){console[A(0x10c)](h),process[A(0xee)](0x0);}});
@@ -1 +1 @@
1
- const a75n=a75d;(function(a,b){const k=a75d,c=a();while(!![]){try{const d=parseInt(k(0x148))/0x1+parseInt(k(0x13e))/0x2*(-parseInt(k(0x12a))/0x3)+parseInt(k(0x135))/0x4*(-parseInt(k(0x127))/0x5)+-parseInt(k(0x13f))/0x6*(-parseInt(k(0x139))/0x7)+-parseInt(k(0x140))/0x8*(-parseInt(k(0x123))/0x9)+parseInt(k(0x121))/0xa+-parseInt(k(0x14b))/0xb*(-parseInt(k(0x146))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a75c,0xb4aac));const a75b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a75d;if(c){const e=c[l(0x149)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a75a=a75b(this,function(){const m=a75d;return a75a[m(0x122)]()['search'](m(0x133))['toString']()['constructor'](a75a)['search'](m(0x133));});a75a();import{paramCase,pascalCase}from'change-case';function a75d(a,b){const c=a75c();return a75d=function(d,e){d=d-0x11e;let f=c[d];return f;},a75d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a75c(){const q=['88QkVmvR','getProjectConfig','pathFromApp','collection','index.','fsi','12nIAZoD','checkMeteorPackage','167637OgISMJ','apply','engines','5271959xiCBSi','appPathPrefix','collections','where','7159440OcqWBJ','toString','168957JKOWba','template','mongo','resourceName','469355iWEsbr','tsx','maka:check','60KgbmMT','installMeteorPackage','dir','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','none','imports','collection/tests.js','create','\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','(((.+)+)+)+$','notice','16CxKzbY','injectAtEndOfFile','.app-tests.','test','946421KyAzeW','col','startup','error','collection/collection.js','58906WfpYOm','6nLUKXc'];a75c=function(){return q;};return a75c();}Generator[a75n(0x131)]({'name':a75n(0x143),'aliases':[a75n(0x13a)],'usage':a75n(0x12d),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a75n(0x120)],'description':a75n(0x132),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a75n;try{const c=this['fsi'][o(0x142)]({}),d=this[o(0x145)][o(0x141)]();this[o(0x145)]['withValue'](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b[p(0x126)]),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x120)],'test':d['engines'][p(0x138)],'noRename':!![]};let h='js';d[p(0x14a)]['js']===p(0x128)&&(h='ts');!this['fsi']['checkMeteorPackage'](p(0x125))&&(Log[p(0x134)]('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[p(0x145)][p(0x12b)](p(0x125),{'cwd':c}));!this['fsi'][p(0x147)](p(0x129))&&(Log[p(0x134)]('Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...'),await this[p(0x145)][p(0x12b)]('maka:check',{'cwd':c}));this[p(0x145)][p(0x124)]({'srcPath':p(0x13d),'destPath':this[p(0x145)][p(0x142)]({'pathParts':['imports',p(0x13b),b[p(0x11e)],p(0x11f),b[p(0x12c)],f+'.'+h]}),'context':g,'config':d});d[p(0x14a)][p(0x138)]!==p(0x12e)&&this['fsi'][p(0x124)]({'srcPath':p(0x130),'destPath':this[p(0x145)][p(0x142)]({'pathParts':['imports',p(0x13b),b[p(0x11e)],'collections',b['dir'],f+p(0x137)+h]}),'context':g,'config':d});const i=b[p(0x12c)]?'/'+b[p(0x12c)]+'/':'/',j=this[p(0x145)][p(0x142)]({'pathParts':[p(0x12f),'startup',b[p(0x11e)],p(0x144)+d['engines']['js']]});this[p(0x145)][p(0x136)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0x13c)](f);}});
1
+ function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x7e;let f=c[d];return f;},a88d(a,b);}const a88n=a88d;(function(a,b){const k=a88d,c=a();while(!![]){try{const d=-parseInt(k(0x80))/0x1+-parseInt(k(0xa3))/0x2*(parseInt(k(0xa0))/0x3)+parseInt(k(0x8f))/0x4+-parseInt(k(0x9b))/0x5+parseInt(k(0xa2))/0x6*(-parseInt(k(0x97))/0x7)+parseInt(k(0xaa))/0x8+-parseInt(k(0xa9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xb5328));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a88d;if(c){const e=c[l(0x8c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const m=a88d;return a88a['toString']()['search'](m(0x9e))['toString']()[m(0x8e)](a88a)[m(0x98)](m(0x9e));});a88a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a88c(){const q=['496714fufWfA','col','template','dir','startup','tsx','2078946dWRaPp','6654184mCfJIi','installMeteorPackage','appPathPrefix','engines','.app-tests.','collection/tests.js','249513hzUyXk','pathFromApp','resourceName','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','collection/collection.js','mongo','index.','collection','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','create','test','apply','getProjectConfig','constructor','5360628OtUFli','maka:check','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','notice','collections','\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','none','withValue','243957gLvmDV','search','fsi','checkMeteorPackage','2284625TTdjYk','where','maka\x20g:collection\x20todos','(((.+)+)+)+$','imports','3wMinzT','error','42ZbkEJI'];a88c=function(){return q;};return a88c();}Generator[a88n(0x8a)]({'name':a88n(0x88),'aliases':[a88n(0xa4)],'usage':a88n(0x89),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a88n(0xa6),a88n(0x9c)],'description':a88n(0x94),'examples':[a88n(0x9d)]},async function(a,b){const o=a88n;try{const c=this[o(0x99)][o(0x81)]({}),d=this[o(0x99)][o(0x8d)]();this[o(0x99)][o(0x96)](d,async()=>{const p=o,f=paramCase(b[p(0x82)]),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[p(0x82)]),'fileName':f,'where':b['where'],'test':d['engines'][p(0x8b)],'noRename':!![]};let h='js';d['engines']['js']===p(0xa8)&&(h='ts');!this['fsi'][p(0x9a)](p(0x86))&&(Log[p(0x92)](p(0x91)),await this[p(0x99)]['installMeteorPackage'](p(0x86),{'cwd':c}));!this[p(0x99)][p(0x9a)](p(0x90))&&(Log['notice'](p(0x83)),await this[p(0x99)][p(0xab)](p(0x90),{'cwd':c}));this['fsi'][p(0xa5)]({'srcPath':p(0x85),'destPath':this[p(0x99)]['pathFromApp']({'pathParts':['imports','startup',b[p(0xac)],p(0x93),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0xad)][p(0x8b)]!==p(0x95)&&this['fsi'][p(0xa5)]({'srcPath':p(0x7f),'destPath':this[p(0x99)]['pathFromApp']({'pathParts':[p(0x9f),p(0xa7),b[p(0xac)],p(0x93),b[p(0xa6)],f+p(0x7e)+h]}),'context':g,'config':d});const i=b[p(0xa6)]?'/'+b[p(0xa6)]+'/':'/',j=this[p(0x99)][p(0x81)]({'pathParts':[p(0x9f),p(0xa7),b[p(0xac)],p(0x87)+d['engines']['js']]});this['fsi'][p(0x84)]({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log[o(0xa1)](f);}});
@@ -1 +1 @@
1
- const a76q=a76d;(function(a,b){const n=a76d,c=a();while(!![]){try{const d=parseInt(n(0xa4))/0x1*(-parseInt(n(0xe1))/0x2)+-parseInt(n(0xc0))/0x3*(-parseInt(n(0xa3))/0x4)+parseInt(n(0xc8))/0x5+parseInt(n(0xe6))/0x6+parseInt(n(0xad))/0x7*(parseInt(n(0xbb))/0x8)+-parseInt(n(0xe3))/0x9*(parseInt(n(0xc5))/0xa)+parseInt(n(0xd2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a76c,0x8d1dd));const a76b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a76d;if(c){const e=c[o(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a76a=a76b(this,function(){const p=a76d;return a76a[p(0xbe)]()[p(0x9f)](p(0xd3))[p(0xbe)]()[p(0xe7)](a76a)[p(0x9f)](p(0xd3));});a76a();function a76c(){const t=['3710655dBCZXk','startup','test','3932700PGRkVX','constructor','ssr','/imports/ui/components','search','getProjectConfig','import\x20\x27./','css','2013652KxpSlJ','4177DFqbfG','templates.js','client','root','react','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','none','rewriteDestinationPathForEngine','\x20};\x0a','11851uzFnlJ','true','dir','className','tsx','lib','test/test.js','withTranslations','findAppDirectory','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','reflux','resourceName','import\x20{\x20','fileName','2384XQiwYU','setTemplate','import\x20\x27','toString','fsi','3xregmq','engines','pathFromProject','string','template/template.css','20fESpcW','cssCaseName','.css','1247400JtVfQr','theme','template','\x27;\x0a','ramda','\x20}\x20from\x20\x27','graphql','withValue','imports','pathFromApp','5506380ujWiAw','(((.+)+)+)+$','apply','.tests.js','comp','installNpmPackage','.js','features','maka\x20g:comp\x20todos/todos-item','component/component.js','export\x20{\x20','assign','injectAtEndOfFile','create','warn','484lGQQFx','error'];a76c=function(){return t;};return a76c();}import a76e from'path';import{camelCase,paramCase,pascalCase}from'change-case';function a76d(a,b){const c=a76c();return a76d=function(d,e){d=d-0x9e;let f=c[d];return f;},a76d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a76q(0xd6)];Generator[a76q(0xdf)]({'name':'component','aliases':aliases,'usage':a76q(0xb6),'shortDesc':a76q(0xa9),'validOpts':[a76q(0xaf)],'examples':[a76q(0xda)]},async function(a,b){const r=a76q;try{const c=this[r(0xbf)][r(0xb5)](),d=r(0x9e),f=this[r(0xbf)][r(0xd1)]({'pathParts':[d,b['dir'],paramCase(b[r(0xb8)]),paramCase(b['resourceName'])]}),g=await this[r(0xbf)][r(0xa0)]();this[r(0xbf)][r(0xcf)](g,async()=>{const s=r;typeof g[s(0xca)][s(0xe5)]===s(0xc3)&&(g[s(0xca)]['test']=g[s(0xca)][s(0xe5)]===s(0xae)?!![]:![],this['fsi']['setTemplate'](s(0xe5),g[s(0xca)][s(0xe5)]));typeof g[s(0xca)][s(0xa2)]===s(0xc3)&&(g[s(0xca)]['css']=g[s(0xca)]['css']===s(0xae)?!![]:![],this['fsi'][s(0xbc)](s(0xa2),g[s(0xca)]['css']));typeof g[s(0xca)]['js']===s(0xc3)&&(g['template']['js']=g['template']['js']===s(0xae)?!![]:![],this['fsi'][s(0xbc)]('js',g[s(0xca)]['js']));!g[s(0xd9)]&&(g[s(0xd9)]={});!b[s(0xa7)]&&!this['fsi']['checkNpmPackage'](s(0xcc))&&(Log[s(0xe0)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0xbf)][s(0xd7)]('ramda',{'cwd':c}));if(!b[s(0xa7)]&&!this[s(0xbf)]['checkNpmPackage'](s(0xa8))){Log[s(0xe2)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[s(0xb8)]),'myPath':a76e['relative'](this[s(0xbf)][s(0xc2)]({}),f),'cssCaseName':paramCase(b[s(0xb8)]),'className':pascalCase(b[s(0xb8)]),'camelCaseName':camelCase(b[s(0xb8)]),'fileName':paramCase(b[s(0xb8)]),'graphql':g['engines'][s(0xce)],'features':g[s(0xd9)],'client':g['engines'][s(0xa6)],'api':g[s(0xc1)]['api'],'ssr':g[s(0xc1)][s(0xe8)],'test':g[s(0xc1)]['test'],'theme':g[s(0xc1)][s(0xc9)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][s(0xb4)]};this['fsi']['template']({'srcPath':s(0xdb),'destPath':f+s(0xd8),'context':h,'framework':'react','config':g});g[s(0xc1)][s(0xe5)]!==s(0xaa)&&this[s(0xbf)][s(0xca)]({'srcPath':s(0xb3),'destPath':f+s(0xd5),'context':h,'framework':'react','config':g});g['template'][s(0xa2)]&&(this[s(0xbf)][s(0xca)]({'srcPath':s(0xc4),'destPath':f+s(0xc7),'context':Object[s(0xdd)]({},h,{'className':paramCase(b['resourceName'])}),'config':g}),this[s(0xbf)]['injectAtBeginningOfFile']({'filePath':f+'.'+g['engines']['js'],'content':s(0xa1)+h[s(0xc6)]+'.'+g[s(0xc1)][s(0xa2)]+'\x27;'}));const i=b[s(0xaf)]?'/'+b[s(0xaf)]+'/':'/',j=''+d+i+h[s(0xba)]+'/'+h['fileName'];let k;if(g['engines'][s(0xe8)]===s(0xae)){const l=this[s(0xbf)]['pathFromApp']({'pathParts':[s(0xd0),s(0xe4),s(0xb2),s(0xa5)]});k=this[s(0xbf)][s(0xab)]({'pathParts':[l],'config':g});}else{const m=this[s(0xbf)][s(0xd1)]({'pathParts':[s(0xd0),s(0xe4),s(0xa6),'templates.js']});k=this[s(0xbf)][s(0xab)]({'pathParts':[m],'config':g});}g['engines'][s(0xa6)]===s(0xa8)||g['engines'][s(0xa6)]===s(0xb7)?(g['engines']['js']===s(0xb1)?this[s(0xbf)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0xb9)+h[s(0xb0)]+s(0xcd)+j+s(0xcb)}):this[s(0xbf)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0xb0)]+s(0xcd)+j+'.'+g[s(0xc1)]['js']+s(0xcb)}),this[s(0xbf)][s(0xde)]({'filePath':k,'content':s(0xdc)+h[s(0xb0)]+s(0xac)})):this[s(0xbf)][s(0xde)]({'filePath':k,'content':s(0xbd)+j+'.'+g[s(0xc1)]['js']+s(0xcb)});});}catch(h){Log[r(0xe2)](h);}});
1
+ const a89q=a89d;(function(a,b){const n=a89d,c=a();while(!![]){try{const d=-parseInt(n(0xbb))/0x1*(-parseInt(n(0xdc))/0x2)+parseInt(n(0xfb))/0x3*(parseInt(n(0xc4))/0x4)+parseInt(n(0xd9))/0x5+-parseInt(n(0xcc))/0x6*(-parseInt(n(0xc2))/0x7)+parseInt(n(0xba))/0x8*(-parseInt(n(0xbd))/0x9)+-parseInt(n(0xde))/0xa+parseInt(n(0xfc))/0xb*(-parseInt(n(0xd5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x241a3));const a89b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a89d;if(c){const e=c[o(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){const p=a89d;return a89a['toString']()[p(0xda)](p(0xcb))['toString']()[p(0xf9)](a89a)['search'](p(0xcb));});a89a();function a89c(){const t=['cssCaseName','checkNpmPackage','warn','860160IfHask','search','import\x20\x27','40JKGRLu','maka\x20g:comp\x20todos/todos-item','1055150yBsuks','true','string','\x20}\x20from\x20\x27','pathFromProject','injectAtEndOfFile','withTranslations','root','.css','test/test.js','fsi','apply','import\x20{\x20','graphql','client','installNpmPackage','create','reflux','getProjectConfig','\x27;\x0a','css','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','comp','tsx','template','import\x20\x27./','test','constructor','\x20};\x0a','569469bTjeHj','11fTQUtR','error','react','component','engines','resourceName','dir','8ahrTdm','13627AkjYdb','setTemplate','160425pyKvXt','className','withValue','injectAtBeginningOfFile','pathFromApp','1978179yeiFRR','template/template.css','4MEfCbX','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','features','imports','ramda','api','.tests.js','(((.+)+)+)+$','6wgPRCS','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','assign','/imports/ui/components','.js','findAppDirectory','startup','ssr','7749324DRrlTi'];a89c=function(){return t;};return a89c();}import a89e from'path';function a89d(a,b){const c=a89c();return a89d=function(d,e){d=d-0xb4;let f=c[d];return f;},a89d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a89q(0xf4)];Generator[a89q(0xee)]({'name':a89q(0xb6),'aliases':aliases,'usage':a89q(0xc5),'shortDesc':a89q(0xf3),'validOpts':[a89q(0xb9)],'examples':[a89q(0xdd)]},async function(a,b){const r=a89q;try{const c=this[r(0xe8)][r(0xd2)](),d=r(0xd0),f=this[r(0xe8)][r(0xc1)]({'pathParts':[d,b[r(0xb9)],paramCase(b['resourceName']),paramCase(b['resourceName'])]}),g=await this[r(0xe8)][r(0xf0)]();this[r(0xe8)][r(0xbf)](g,async()=>{const s=r;typeof g[s(0xf6)]['test']==='string'&&(g[s(0xf6)][s(0xf8)]=g[s(0xf6)][s(0xf8)]===s(0xdf)?!![]:![],this[s(0xe8)][s(0xbc)]('test',g['template'][s(0xf8)]));typeof g['template'][s(0xf2)]===s(0xe0)&&(g['template'][s(0xf2)]=g[s(0xf6)][s(0xf2)]===s(0xdf)?!![]:![],this['fsi'][s(0xbc)](s(0xf2),g[s(0xf6)][s(0xf2)]));typeof g['template']['js']===s(0xe0)&&(g['template']['js']=g[s(0xf6)]['js']==='true'?!![]:![],this[s(0xe8)][s(0xbc)]('js',g['template']['js']));!g[s(0xc6)]&&(g[s(0xc6)]={});!b[s(0xe5)]&&!this[s(0xe8)][s(0xd7)](s(0xc8))&&(Log[s(0xd8)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0xe8)][s(0xed)](s(0xc8),{'cwd':c}));if(!b[s(0xe5)]&&!this[s(0xe8)][s(0xd7)](s(0xb5))){Log[s(0xb4)](s(0xcd));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a89e['relative'](this[s(0xe8)][s(0xe2)]({}),f),'cssCaseName':paramCase(b[s(0xb8)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[s(0xb8)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0xb7)][s(0xeb)],'features':g['features'],'client':g[s(0xb7)][s(0xec)],'api':g[s(0xb7)][s(0xc9)],'ssr':g[s(0xb7)][s(0xd4)],'test':g[s(0xb7)]['test'],'theme':g['engines']['theme'],'isLayout':![],'isComponent':!![],'withTranslations':g[s(0xc6)][s(0xe4)]};this[s(0xe8)][s(0xf6)]({'srcPath':'component/component.js','destPath':f+s(0xd1),'context':h,'framework':s(0xb5),'config':g});g[s(0xb7)][s(0xf8)]!=='none'&&this[s(0xe8)][s(0xf6)]({'srcPath':s(0xe7),'destPath':f+s(0xca),'context':h,'framework':s(0xb5),'config':g});g['template'][s(0xf2)]&&(this['fsi']['template']({'srcPath':s(0xc3),'destPath':f+s(0xe6),'context':Object[s(0xcf)]({},h,{'className':paramCase(b[s(0xb8)])}),'config':g}),this[s(0xe8)]['injectAtBeginningOfFile']({'filePath':f+'.'+g[s(0xb7)]['js'],'content':s(0xf7)+h[s(0xd6)]+'.'+g[s(0xb7)]['css']+'\x27;'}));const i=b[s(0xb9)]?'/'+b[s(0xb9)]+'/':'/',j=''+d+i+h['fileName']+'/'+h['fileName'];let k;if(g[s(0xb7)][s(0xd4)]===s(0xdf)){const l=this[s(0xe8)][s(0xc1)]({'pathParts':[s(0xc7),s(0xd3),'lib',s(0xce)]});k=this[s(0xe8)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0xe8)][s(0xc1)]({'pathParts':[s(0xc7),s(0xd3),s(0xec),s(0xce)]});k=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g['engines'][s(0xec)]===s(0xb5)||g['engines'][s(0xec)]===s(0xef)?(g['engines']['js']===s(0xf5)?this[s(0xe8)][s(0xc0)]({'filePath':k,'content':s(0xea)+h[s(0xbe)]+s(0xe1)+j+'\x27;\x0a'}):this[s(0xe8)][s(0xc0)]({'filePath':k,'content':'import\x20{\x20'+h[s(0xbe)]+s(0xe1)+j+'.'+g[s(0xb7)]['js']+s(0xf1)}),this[s(0xe8)]['injectAtEndOfFile']({'filePath':k,'content':'export\x20{\x20'+h[s(0xbe)]+s(0xfa)})):this['fsi'][s(0xe3)]({'filePath':k,'content':s(0xdb)+j+'.'+g[s(0xb7)]['js']+s(0xf1)});});}catch(h){Log[r(0xb4)](h);}});
@@ -1 +1 @@
1
- const a77k=a77d;function a77c(){const n=['create','config','367100FhKWRH','298545SusMKs','config/process.env','(((.+)+)+)+$','process.env','constructor','apply','appName','isDocker','10821015azeUlO','production','fsi','template','dev','pathFromProject','development','15XLbhWY','35ySmNHE','getProjectConfig','config/settings.json','Generate\x20configuration\x20settings.','toString','6cJzutF','maka\x20{generate,\x20g}:{config}\x20<name>','1400576peHKqQ','786786FZvbhC','2511173oWJSga','856668JYkpad','resourceName','settings.json'];a77c=function(){return n;};return a77c();}(function(a,b){const h=a77d,c=a();while(!![]){try{const d=parseInt(h(0x1ee))/0x1*(-parseInt(h(0x203))/0x2)+-parseInt(h(0x1fd))/0x3*(parseInt(h(0x208))/0x4)+-parseInt(h(0x1fe))/0x5*(-parseInt(h(0x206))/0x6)+parseInt(h(0x207))/0x7+parseInt(h(0x205))/0x8+parseInt(h(0x1f6))/0x9+parseInt(h(0x20d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a77c,0xb0d4f));const a77b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a77d;if(c){const e=c[i(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a77a=a77b(this,function(){const j=a77d;return a77a[j(0x202)]()['search'](j(0x1f0))[j(0x202)]()[j(0x1f2)](a77a)['search'](j(0x1f0));});function a77d(a,b){const c=a77c();return a77d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a77d(a,b);}a77a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a77k(0x20b)]({'name':a77k(0x20c),'usage':a77k(0x204),'shortDesc':a77k(0x201),'validOpts':[a77k(0x1f5)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a77k,c=this['fsi'][l(0x1ff)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'app':c[m(0x1f4)],'appFileCase':paramCase(c[m(0x1f4)]),'name':pascalCase(b[m(0x209)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b[m(0x1f5)]};let e=a[0x0];if(e===m(0x1fa))e=m(0x1fc);else e==='prod'&&(e=m(0x1f7));const f=this[m(0x1f8)][m(0x1fb)]({'pathParts':['config',e,m(0x20a)]});this[m(0x1f8)][m(0x1f9)]({'srcPath':m(0x200),'destPath':f,'context':d,'config':c});if(!b[m(0x1f5)]){const g=this['fsi'][m(0x1fb)]({'pathParts':[m(0x20c),e,m(0x1f1)]});this['fsi']['template']({'srcPath':m(0x1ef),'destPath':g,'context':d,'config':c});}});});
1
+ const a90j=a90d;function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x141;let f=c[d];return f;},a90d(a,b);}function a90c(){const m=['dev','prod','maka\x20{generate,\x20g}:{config}\x20<name>','config/settings.json','179TtwcfQ','getProjectConfig','718866JJFehF','isDocker','ubuntu','Generate\x20configuration\x20settings.','constructor','762lIoGwt','fsi','process.env','toString','production','120OXBiOi','(((.+)+)+)+$','23255KikqhP','config/process.env','template','4592vzhNxW','search','appName','479409iKAJAB','pathFromProject','3057672jTcVqI','resourceName','config','2143379AMWYMo','2643888bwQNjJ'];a90c=function(){return m;};return a90c();}(function(a,b){const h=a90d,c=a();while(!![]){try{const d=parseInt(h(0x148))/0x1*(-parseInt(h(0x159))/0x2)+-parseInt(h(0x15c))/0x3+-parseInt(h(0x143))/0x4+parseInt(h(0x156))/0x5*(parseInt(h(0x14f))/0x6)+-parseInt(h(0x142))/0x7+parseInt(h(0x15e))/0x8+-parseInt(h(0x14a))/0x9*(-parseInt(h(0x154))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x600ca));const a90b=(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;};}()),a90a=a90b(this,function(){const i=a90d;return a90a[i(0x152)]()[i(0x15a)](i(0x155))[i(0x152)]()[i(0x14e)](a90a)[i(0x15a)](i(0x155));});a90a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a90j(0x141),'usage':a90j(0x146),'shortDesc':a90j(0x14d),'validOpts':[a90j(0x14b)],'examples':['maka\x20g:config\x20production']},function(a,b){const k=a90j,c=this[k(0x150)][k(0x149)]();this[k(0x150)]['withValue'](c,async()=>{const l=k,d={'app':c[l(0x15b)],'appFileCase':paramCase(c[l(0x15b)]),'name':pascalCase(b[l(0x15f)]),'fileName':paramCase(b[l(0x15f)]),'camelCase':camelCase(b['resourceName']),'userName':l(0x14c),'isDocker':b[l(0x14b)]};let e=a[0x0];if(e===l(0x144))e='development';else e===l(0x145)&&(e=l(0x153));const f=this[l(0x150)][l(0x15d)]({'pathParts':[l(0x141),e,'settings.json']});this[l(0x150)]['template']({'srcPath':l(0x147),'destPath':f,'context':d,'config':c});if(!b[l(0x14b)]){const g=this[l(0x150)][l(0x15d)]({'pathParts':[l(0x141),e,l(0x151)]});this['fsi'][l(0x158)]({'srcPath':l(0x157),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a78q=a78d;(function(a,b){const n=a78d,c=a();while(!![]){try{const d=-parseInt(n(0x1ad))/0x1+-parseInt(n(0x17d))/0x2*(parseInt(n(0x17f))/0x3)+-parseInt(n(0x1a6))/0x4*(parseInt(n(0x194))/0x5)+-parseInt(n(0x198))/0x6+parseInt(n(0x1a3))/0x7*(parseInt(n(0x195))/0x8)+-parseInt(n(0x173))/0x9*(-parseInt(n(0x175))/0xa)+parseInt(n(0x192))/0xb*(parseInt(n(0x18e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a78c,0x81174));const a78b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a78d;if(c){const e=c[o(0x197)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a78a=a78b(this,function(){const p=a78d;return a78a[p(0x19e)]()['search'](p(0x180))['toString']()[p(0x174)](a78a)[p(0x1a8)]('(((.+)+)+)+$');});function a78d(a,b){const c=a78c();return a78d=function(d,e){d=d-0x172;let f=c[d];return f;},a78d(a,b);}function a78c(){const t=['error','indexOf','options','MS\x20SQL','toString','list','engines','index.','type','6342mBdjzF','maka\x20g:dbc\x20todos\x20--type=sqlite','withValue','1336820WIUikG','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','search','pathFromApp','warn','injectAtEndOfFile','Invalid\x20type\x20','444821zmgsGD','(blank)','1800BCKpcW','constructor','32030hptjvJ','dbc','pgsql','dbc/register-dbc.js','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','template','conn.','resourceName','2YfntnP','maka\x20g:dbc\x20azure\x20--type=mssql','2501139vpmiOX','(((.+)+)+)+$','dir','dbc/conn.js','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','mssql','better-sqlite3','dbc/config.js','startup','server','maka\x20g:dbc\x20geoserver\x20--type=pgsql','import\x20\x27./register-','register-','-dbc.','checkNpmPackage','934056Alhyht','PostgreSQL','fsi','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','220eQBjTx','installNpmPackage','5eXyFwK','6352ySBVpD','imports','apply','4651374UxvTDD','dbAnswer'];a78c=function(){return t;};return a78c();}a78a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':a78q(0x176),'usage':a78q(0x1a7),'shortDesc':a78q(0x183),'validOpts':['type',a78q(0x181)],'examples':[a78q(0x189),a78q(0x17e),a78q(0x1a4)]},async function(a,b){const r=a78q;try{const c=await this[r(0x190)]['getProjectConfig'](),d=this[r(0x190)][r(0x1a9)]({}),f=paramCase(b[r(0x17c)]);if(!b[r(0x1a2)]){const h={'type':r(0x19f),'name':r(0x199),'message':'DB\x20Driver','choices':[{'name':r(0x18f),'value':r(0x177)},{'name':r(0x19d),'value':'mssql'}]},{dbAnswer:i}=await Actions[r(0x19c)](h);i&&(b['type']=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[r(0x17c)]),'type':b[r(0x1a2)],'engine':c[r(0x1a0)]['js'],'noRename':!![]};this[r(0x190)][r(0x1a5)](c,async()=>{const s=r;let j='js';c[s(0x1a0)]['js']==='tsx'&&(j='ts');const k=[s(0x184),'pgsql'];if(k[s(0x19b)](g[s(0x1a2)])<0x0){const m=g['type']?g['type']:s(0x172);Log[s(0x19a)](s(0x1ac)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x1a2)]===s(0x177)&&!this[s(0x190)][s(0x18d)]('pg')&&(Log[s(0x1aa)](s(0x179)),await this[s(0x190)]['installNpmPackage']('pg',{'cwd':d}));b[s(0x1a2)]===s(0x184)&&!this[s(0x190)][s(0x18d)](s(0x184))&&(Log[s(0x1aa)](s(0x191)),await this[s(0x190)]['installNpmPackage'](s(0x184),{'cwd':d}));b[s(0x1a2)]==='sqlite'&&!this['fsi']['checkNpmPackage'](s(0x185))&&(Log[s(0x1aa)]('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x190)][s(0x193)]('better-sqlite3',{'cwd':d}));this[s(0x190)][s(0x17a)]({'srcPath':s(0x186),'destPath':this[s(0x190)][s(0x1a9)]({'pathParts':['imports',s(0x187),s(0x188),s(0x176),b[s(0x181)],f,'config.'+j]}),'context':g,'config':c}),this['fsi'][s(0x17a)]({'srcPath':s(0x182),'destPath':this[s(0x190)][s(0x1a9)]({'pathParts':['imports',s(0x187),s(0x188),s(0x176),b[s(0x181)],f,s(0x17b)+j]}),'context':g,'config':c}),this[s(0x190)][s(0x17a)]({'srcPath':s(0x178),'destPath':this[s(0x190)]['pathFromApp']({'pathParts':[s(0x196),'startup',s(0x188),s(0x18b)+f+s(0x18c)+j]}),'context':g,'config':c});const l=this[s(0x190)][s(0x1a9)]({'pathParts':['imports','startup',s(0x188),s(0x1a1)+c[s(0x1a0)]['js']]});this[s(0x190)][s(0x1ab)]({'filePath':l,'content':s(0x18a)+f+'-dbc\x27;'});});}catch(j){Log[r(0x19a)](j);}});
1
+ function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a91d(a,b);}const a91q=a91d;(function(a,b){const n=a91d,c=a();while(!![]){try{const d=parseInt(n(0x1e4))/0x1*(-parseInt(n(0x1e0))/0x2)+parseInt(n(0x1f1))/0x3+parseInt(n(0x1d2))/0x4*(parseInt(n(0x1f4))/0x5)+-parseInt(n(0x1e3))/0x6*(-parseInt(n(0x1dc))/0x7)+parseInt(n(0x1d0))/0x8*(-parseInt(n(0x1fd))/0x9)+parseInt(n(0x1d9))/0xa+parseInt(n(0x1e1))/0xb*(-parseInt(n(0x1fa))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x894ae));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a91d;if(c){const e=c[o(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const p=a91d;return a91a[p(0x1d1)]()[p(0x1db)](p(0x1fe))[p(0x1d1)]()['constructor'](a91a)[p(0x1db)](p(0x1fe));});a91a();import{camelCase,paramCase,pascalCase}from'change-case';function a91c(){const t=['sqlite','dir','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','fsi','imports','maka\x20g:dbc\x20geoserver\x20--type=pgsql','server','register-','better-sqlite3','maka\x20g:dbc\x20azure\x20--type=mssql','Invalid\x20type\x20','2937054StcgUh','create','resourceName','158825RAcYAx','(blank)','template','dbc','pgsql','dbAnswer','24436452afoBIq','withValue','MS\x20SQL','12789nmbulD','(((.+)+)+)+$','PostgreSQL','type','config.','checkNpmPackage','dbc/config.js','warn','4504JAhCnV','toString','124uQQmPu','DB\x20Driver','list','apply','index.','startup','import\x20\x27./register-','8243990UCLjri','pathFromApp','search','19761iJWceR','installNpmPackage','error','indexOf','2kmJcrv','11HDxQfn','mssql','1968DlQWEs','315332AbDJdX','engines'];a91c=function(){return t;};return a91c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator[a91q(0x1f2)]({'name':a91q(0x1f7),'usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':'Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','validOpts':[a91q(0x1cb),a91q(0x1e7)],'examples':[a91q(0x1eb),a91q(0x1ef),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a91q;try{const c=await this[r(0x1e9)]['getProjectConfig'](),d=this['fsi']['pathFromApp']({}),f=paramCase(b['resourceName']);if(!b[r(0x1cb)]){const h={'type':r(0x1d4),'name':r(0x1f9),'message':r(0x1d3),'choices':[{'name':r(0x1ca),'value':'pgsql'},{'name':r(0x1fc),'value':r(0x1e2)}]},{dbAnswer:i}=await Actions['options'](h);i&&(b[r(0x1cb)]=i);}const g={'name':pascalCase(b[r(0x1f3)]),'fileName':paramCase(b[r(0x1f3)]),'camelCase':camelCase(b[r(0x1f3)]),'type':b[r(0x1cb)],'engine':c[r(0x1e5)]['js'],'noRename':!![]};this[r(0x1e9)][r(0x1fb)](c,async()=>{const s=r;let j='js';c[s(0x1e5)]['js']==='tsx'&&(j='ts');const k=[s(0x1e2),s(0x1f8)];if(k[s(0x1df)](g[s(0x1cb)])<0x0){const m=g['type']?g[s(0x1cb)]:s(0x1f5);Log[s(0x1de)](s(0x1f0)+m+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[s(0x1cb)]===s(0x1f8)&&!this[s(0x1e9)][s(0x1cd)]('pg')&&(Log[s(0x1cf)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this['fsi'][s(0x1dd)]('pg',{'cwd':d}));b['type']==='mssql'&&!this['fsi']['checkNpmPackage'](s(0x1e2))&&(Log['warn'](s(0x1e8)),await this['fsi']['installNpmPackage'](s(0x1e2),{'cwd':d}));b[s(0x1cb)]===s(0x1e6)&&!this[s(0x1e9)]['checkNpmPackage']('better-sqlite3')&&(Log['warn']('Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...'),await this[s(0x1e9)][s(0x1dd)](s(0x1ee),{'cwd':d}));this[s(0x1e9)][s(0x1f6)]({'srcPath':s(0x1ce),'destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1f7),b[s(0x1e7)],f,s(0x1cc)+j]}),'context':g,'config':c}),this['fsi'][s(0x1f6)]({'srcPath':'dbc/conn.js','destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1f7),b['dir'],f,'conn.'+j]}),'context':g,'config':c}),this['fsi'][s(0x1f6)]({'srcPath':'dbc/register-dbc.js','destPath':this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),s(0x1d7),s(0x1ec),s(0x1ed)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x1e9)][s(0x1da)]({'pathParts':[s(0x1ea),'startup',s(0x1ec),s(0x1d6)+c['engines']['js']]});this[s(0x1e9)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1d8)+f+'-dbc\x27;'});});}catch(j){Log[r(0x1de)](j);}});
@@ -1 +1 @@
1
- const a79h=a79d;(function(a,b){const f=a79d,c=a();while(!![]){try{const d=parseInt(f(0x123))/0x1*(-parseInt(f(0x12d))/0x2)+-parseInt(f(0x126))/0x3*(parseInt(f(0x138))/0x4)+parseInt(f(0x131))/0x5+parseInt(f(0x128))/0x6+parseInt(f(0x134))/0x7*(-parseInt(f(0x139))/0x8)+parseInt(f(0x124))/0x9*(parseInt(f(0x11a))/0xa)+-parseInt(f(0x136))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a79c,0xa43a7));function a79c(){const k=['app','build','search','docker/Dockerfile','51878EgDIeY','206109jaioky','appName','15531nOkswN','toString','7278222gljUkK','create','template','Dockerfile','app.tar.gz','10FejbPu','fsi','findProjectDirectory','join','6582485zfAMnl','withValue','Generate\x20an\x20updated\x20dockerfile','14QkgAaU','maka\x20{generate,\x20g}:dockerfile','21150250NfNkXn','error','60rUvLGl','2602024HHFJjS','460BnbqJr','isFile','getGlobalConfig','(((.+)+)+)+$','dockerfile'];a79c=function(){return k;};return a79c();}function a79d(a,b){const c=a79c();return a79d=function(d,e){d=d-0x11a;let f=c[d];return f;},a79d(a,b);}const a79b=(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;};}()),a79a=a79b(this,function(){const g=a79d;return a79a[g(0x127)]()[g(0x121)](g(0x11d))[g(0x127)]()['constructor'](a79a)[g(0x121)](g(0x11d));});a79a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a79e from'path';Generator[a79h(0x129)]({'name':a79h(0x11e),'usage':a79h(0x135),'shortDesc':a79h(0x133),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const i=a79h;try{const a=await this['fsi']['getProjectConfig'](),b=await this[i(0x12e)][i(0x11c)](),c=this[i(0x12e)][i(0x12f)]();this[i(0x12e)][i(0x132)](a,async()=>{const j=i,d={'app':b[j(0x125)],'config':a,'appPath':a79e['join'](c,j(0x11f)),'bundlePath':a79e[j(0x130)](c,j(0x120),j(0x12c)),'useCert':this['fsi'][j(0x11b)](b['cert'])};this[j(0x12e)][j(0x12a)]({'srcPath':j(0x122),'destPath':a79e['join'](c,j(0x12b)),'framework':'service','context':d,'config':a});});}catch(d){Log[i(0x137)](d);}});
1
+ const a92i=a92d;(function(a,b){const f=a92d,c=a();while(!![]){try{const d=-parseInt(f(0xaf))/0x1+-parseInt(f(0xb7))/0x2+parseInt(f(0xbe))/0x3*(-parseInt(f(0xae))/0x4)+-parseInt(f(0xc4))/0x5*(parseInt(f(0xc2))/0x6)+-parseInt(f(0xc6))/0x7*(-parseInt(f(0xc3))/0x8)+parseInt(f(0xca))/0x9*(parseInt(f(0xbb))/0xa)+-parseInt(f(0xb6))/0xb*(-parseInt(f(0xc7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x4c41a));function a92c(){const l=['withValue','app','(((.+)+)+)+$','99wUlbwN','1123456mTBVVz','docker/Dockerfile','appName','maka\x20{generate,\x20g}:dockerfile','10KyVEoP','Dockerfile','error','63156BfsIvl','getProjectConfig','service','apply','956724aFzBew','534056WkpHXB','15jIJGgy','search','7ZXBovL','2399652qzmzXW','fsi','constructor','452907MWQKup','app.tar.gz','Generate\x20an\x20updated\x20dockerfile','join','24MqAXmw','438071JJnwkn','cert','toString','findProjectDirectory'];a92c=function(){return l;};return a92c();}const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a92d;if(c){const e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const h=a92d;return a92a['toString']()[h(0xc5)]('(((.+)+)+)+$')[h(0xb1)]()[h(0xc9)](a92a)[h(0xc5)](h(0xb5));});a92a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0xad;let f=c[d];return f;},a92d(a,b);}import a92e from'path';Generator['create']({'name':'dockerfile','usage':a92i(0xba),'shortDesc':a92i(0xcc),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a92i;try{const a=await this[j(0xc8)][j(0xbf)](),b=await this[j(0xc8)]['getGlobalConfig'](),c=this['fsi'][j(0xb2)]();this['fsi'][j(0xb3)](a,async()=>{const k=j,d={'app':b[k(0xb9)],'config':a,'appPath':a92e[k(0xad)](c,k(0xb4)),'bundlePath':a92e[k(0xad)](c,'build',k(0xcb)),'useCert':this[k(0xc8)]['isFile'](b[k(0xb0)])};this[k(0xc8)]['template']({'srcPath':k(0xb8),'destPath':a92e[k(0xad)](c,k(0xbc)),'framework':k(0xc0),'context':d,'config':a});});}catch(d){Log[j(0xbd)](d);}});
@@ -1 +1 @@
1
- const a80r=a80d;(function(a,b){const o=a80d,c=a();while(!![]){try{const d=-parseInt(o(0xc6))/0x1*(-parseInt(o(0xad))/0x2)+-parseInt(o(0xd2))/0x3+parseInt(o(0xda))/0x4+-parseInt(o(0xca))/0x5+-parseInt(o(0xb9))/0x6*(-parseInt(o(0xae))/0x7)+-parseInt(o(0xd9))/0x8*(parseInt(o(0xb0))/0x9)+parseInt(o(0xcb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a80c,0xa5eb5));const a80b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a80d;if(c){const e=c[p(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a80a=a80b(this,function(){const q=a80d;return a80a[q(0xc1)]()['search'](q(0xc2))['toString']()[q(0xbf)](a80a)[q(0xa7)]('(((.+)+)+)+$');});a80a();import a80e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a80c(){const u=['search','@apollo/client','create','.css','pathFromApp','templates.js','854088dRgeBh','266EIUEUc','assign','318042lMCoJU','fsi','relative','error','react','hook','checkNpmPackage','true','test/test.js','109290uNVyWo','ssr','resourceName','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','import\x20\x27./','.app-tests.js','constructor','graphql','toString','(((.+)+)+)+$','installNpmPackage','apply','injectAtBeginningOfFile','2XgHORS','none','injectAtEndOfFile','tsx','1049360ZPUlHv','2757330KaUHcA','string','rewriteDestinationPathForEngine','/imports/ui/hooks','template/template.css','features','dir','2203533FzuzBZ','import\x20{\x20','withTranslations','engines','\x20};\x0a','template','className','128rwGSLF','1469620RqMcfF','cssCaseName','hook/hook.js','maka\x20g:hook\x20cool-hook','imports','.js','warn','\x27;\x0a','setTemplate','css','client','\x20}\x20from\x20\x27','startup','withValue','getProjectConfig','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>'];a80c=function(){return u;};return a80c();}function a80d(a,b){const c=a80c();return a80d=function(d,e){d=d-0x9f;let f=c[d];return f;},a80d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a80r(0xa9)]({'name':a80r(0xb5),'aliases':['h'],'checkWhere':![],'usage':a80r(0xa6),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':[a80r(0xd1)],'examples':[a80r(0xdd)]},async function(a,b){const s=a80r;try{const c=this[s(0xb1)][s(0xb6)]('react');if(!c){Log[s(0xb3)](s(0xbc));throw new UsageError();}const d=this[s(0xb1)][s(0xab)](b),f=s(0xce),g=this[s(0xb1)][s(0xab)]({'pathParts':[f,b['dir'],paramCase(b[s(0xbb)]),paramCase(b[s(0xbb)])]}),h=await this['fsi'][s(0xa5)]();this[s(0xb1)][s(0xa4)](h,async()=>{const t=s;typeof h['template'][t(0xa0)]===t(0xcc)&&(h[t(0xd7)]['css']=h['template'][t(0xa0)]===t(0xb7)?!![]:![],this['fsi'][t(0x9f)](t(0xa0),h[t(0xd7)][t(0xa0)]));h[t(0xd5)][t(0xc0)]==='apollo'&&!this[t(0xb6)](t(0xa8))&&(Log[t(0xe0)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[t(0xb1)][t(0xc3)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[t(0xbb)]),'name':pascalCase(b['resourceName']),'graphql':h[t(0xd5)][t(0xc0)],'theme':h[t(0xd5)]['theme'],'features':h[t(0xd0)],'myPath':a80e[t(0xb2)](this[t(0xb1)]['pathFromProject']({}),g),'fileName':paramCase(b['resourceName']),'isComponent':![],'isLayout':![],'withTranslations':h['features'][t(0xd4)]};this[t(0xb1)][t(0xd7)]({'srcPath':t(0xdc),'destPath':g+t(0xdf),'context':i,'config':h,'framework':'react'});h[t(0xd7)]['css']&&(this[t(0xb1)][t(0xd7)]({'srcPath':t(0xcf),'destPath':g+t(0xaa),'context':Object[t(0xaf)]({},i,{'className':i[t(0xdb)]}),'config':h}),this[t(0xb1)][t(0xc5)]({'filePath':g+'.'+h['engines']['js'],'content':t(0xbd)+i['fileName']+'.'+h[t(0xd5)][t(0xa0)]+'\x27;'}));h[t(0xd5)]['test']!==t(0xc7)&&this[t(0xb1)]['template']({'srcPath':t(0xb8),'destPath':g+t(0xbe),'framework':t(0xb4),'context':i,'config':h});const j=b[t(0xd1)]?'/'+b[t(0xd1)]+'/':'/',k=''+f+j+i['fileName']+'/'+i['fileName'];let l;if(h[t(0xd5)][t(0xba)]===t(0xb7)){const m=this['fsi']['pathFromApp']({'pathParts':[t(0xde),t(0xa3),'lib',t(0xac)]});l=this[t(0xb1)][t(0xcd)]({'pathParts':[m],'config':h});}else{const n=this[t(0xb1)][t(0xab)]({'pathParts':[t(0xde),t(0xa3),t(0xa1),t(0xac)]});l=this[t(0xb1)][t(0xcd)]({'pathParts':[n],'config':h});}h[t(0xd5)][t(0xa1)]===t(0xb4)?(h[t(0xd5)]['js']===t(0xc9)?this[t(0xb1)][t(0xc5)]({'filePath':l,'content':t(0xd3)+i[t(0xd8)]+t(0xa2)+k+t(0xe1)}):this['fsi'][t(0xc5)]({'filePath':l,'content':'import\x20{\x20'+i['className']+'\x20}\x20from\x20\x27'+k+'.'+h[t(0xd5)]['js']+t(0xe1)}),this[t(0xb1)][t(0xc8)]({'filePath':l,'content':'export\x20{\x20'+i[t(0xd8)]+t(0xd6)})):this[t(0xb1)][t(0xc8)]({'filePath':l,'content':'import\x20\x27'+k+'.'+h['engines']['js']+'\x27;\x0a'});});}catch(i){Log[s(0xb3)](i);}});
1
+ function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x74;let f=c[d];return f;},a93d(a,b);}const a93r=a93d;(function(a,b){const o=a93d,c=a();while(!![]){try{const d=-parseInt(o(0x74))/0x1*(-parseInt(o(0xab))/0x2)+parseInt(o(0x87))/0x3*(-parseInt(o(0x9f))/0x4)+parseInt(o(0x81))/0x5+-parseInt(o(0x99))/0x6+-parseInt(o(0x8d))/0x7*(-parseInt(o(0x96))/0x8)+parseInt(o(0xa6))/0x9+-parseInt(o(0xa2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x3d371));function a93c(){const u=['fileName','css','injectAtBeginningOfFile','hook/hook.js','cssCaseName','69ASxDJD','(((.+)+)+)+$','ssr','react','error','/imports/ui/hooks','7aAwbHs','.app-tests.js','theme','string','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','hook','constructor','toString','warn','827032tVRHsy','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','none','2468790qmIZjj','test','.css','\x20}\x20from\x20\x27','export\x20{\x20','@apollo/client\x20isomorphic-fetch','69328GPnYvH','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','search','2291870DKNwCT','templates.js','pathFromProject','injectAtEndOfFile','3993921xBtEGI','engines','withTranslations','true','className','12RAzRTg','maka\x20g:hook\x20cool-hook','import\x20\x27','relative','apollo','withValue','setTemplate','startup','features','resourceName','tsx','61589wxIPEn','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','fsi','import\x20\x27./','client','apply','.js','template','dir','\x20};\x0a','pathFromApp','\x27;\x0a','checkNpmPackage','1866715CHUrRb'];a93c=function(){return u;};return a93c();}const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a93d;if(c){const e=c[p(0x79)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const q=a93d;return a93a[q(0x94)]()[q(0xa1)]('(((.+)+)+)+$')[q(0x94)]()[q(0x93)](a93a)[q(0xa1)](q(0x88));});a93a();import a93e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator['create']({'name':a93r(0x92),'aliases':['h'],'checkWhere':![],'usage':a93r(0x91),'shortDesc':a93r(0x97),'validOpts':[a93r(0x7c)],'examples':[a93r(0xac)]},async function(a,b){const s=a93r;try{const c=this[s(0x76)][s(0x80)](s(0x8a));if(!c){Log[s(0x8b)](s(0xa0));throw new UsageError();}const d=this[s(0x76)][s(0x7e)](b),f=s(0x8c),g=this['fsi'][s(0x7e)]({'pathParts':[f,b[s(0x7c)],paramCase(b[s(0xb4)]),paramCase(b[s(0xb4)])]}),h=await this[s(0x76)]['getProjectConfig']();this[s(0x76)][s(0xb0)](h,async()=>{const t=s;typeof h['template'][t(0x83)]===t(0x90)&&(h['template'][t(0x83)]=h[t(0x7b)]['css']===t(0xa9)?!![]:![],this['fsi'][t(0xb1)](t(0x83),h[t(0x7b)][t(0x83)]));h[t(0xa7)]['graphql']===t(0xaf)&&!this[t(0x80)]('@apollo/client')&&(Log[t(0x95)](t(0x75)),await this['fsi']['installNpmPackage'](t(0x9e),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0xb4)]),'className':pascalCase(b[t(0xb4)]),'name':pascalCase(b[t(0xb4)]),'graphql':h[t(0xa7)]['graphql'],'theme':h['engines'][t(0x8f)],'features':h[t(0xb3)],'myPath':a93e[t(0xae)](this[t(0x76)][t(0xa4)]({}),g),'fileName':paramCase(b[t(0xb4)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0xb3)][t(0xa8)]};this[t(0x76)]['template']({'srcPath':t(0x85),'destPath':g+t(0x7a),'context':i,'config':h,'framework':t(0x8a)});h[t(0x7b)][t(0x83)]&&(this[t(0x76)][t(0x7b)]({'srcPath':'template/template.css','destPath':g+t(0x9b),'context':Object['assign']({},i,{'className':i[t(0x86)]}),'config':h}),this[t(0x76)][t(0x84)]({'filePath':g+'.'+h['engines']['js'],'content':t(0x77)+i[t(0x82)]+'.'+h[t(0xa7)][t(0x83)]+'\x27;'}));h[t(0xa7)][t(0x9a)]!==t(0x98)&&this['fsi'][t(0x7b)]({'srcPath':'test/test.js','destPath':g+t(0x8e),'framework':'react','context':i,'config':h});const j=b[t(0x7c)]?'/'+b[t(0x7c)]+'/':'/',k=''+f+j+i[t(0x82)]+'/'+i[t(0x82)];let l;if(h[t(0xa7)][t(0x89)]===t(0xa9)){const m=this[t(0x76)]['pathFromApp']({'pathParts':['imports',t(0xb2),'lib',t(0xa3)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x76)][t(0x7e)]({'pathParts':['imports','startup',t(0x78),t(0xa3)]});l=this[t(0x76)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':h});}h[t(0xa7)]['client']===t(0x8a)?(h[t(0xa7)]['js']===t(0xb5)?this[t(0x76)][t(0x84)]({'filePath':l,'content':'import\x20{\x20'+i[t(0xaa)]+t(0x9c)+k+'\x27;\x0a'}):this[t(0x76)]['injectAtBeginningOfFile']({'filePath':l,'content':'import\x20{\x20'+i[t(0xaa)]+t(0x9c)+k+'.'+h[t(0xa7)]['js']+'\x27;\x0a'}),this[t(0x76)][t(0xa5)]({'filePath':l,'content':t(0x9d)+i[t(0xaa)]+t(0x7d)})):this[t(0x76)]['injectAtEndOfFile']({'filePath':l,'content':t(0xad)+k+'.'+h[t(0xa7)]['js']+t(0x7f)});});}catch(i){Log['error'](i);}});
@@ -1 +1 @@
1
- function a81c(){const n=['create','(blank)','type','1403507LEiXRJ','maka\x20g:k\x20city-map\x20--type=leaflet-map','11lznYQH','apply','leaflet-map','kit','3001450EOAVqg','notice','constructor','indexOf','login','toString','NIE','3298vPUosZ','5SUeaNE','engines','4AHUgfi','2469030jJryIP','fsi','resourceName','6745818ZNGSfy','search','Invalid\x20type\x20','error','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','5152RnUZKW','812836kBPCph','13383YRFjaN','getProjectConfig','map'];a81c=function(){return n;};return a81c();}const a81k=a81d;(function(a,b){const h=a81d,c=a();while(!![]){try{const d=-parseInt(h(0x107))/0x1*(parseInt(h(0x10a))/0x2)+parseInt(h(0xea))/0x3+parseInt(h(0xf3))/0x4*(parseInt(h(0x108))/0x5)+-parseInt(h(0xed))/0x6+parseInt(h(0xfa))/0x7+parseInt(h(0xf2))/0x8*(parseInt(h(0xf4))/0x9)+-parseInt(h(0x100))/0xa*(parseInt(h(0xfc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a81c,0xb7e98));const a81b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a81d;if(c){const e=c[i(0xfd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a81a=a81b(this,function(){const j=a81d;return a81a[j(0x105)]()[j(0xee)]('(((.+)+)+)+$')['toString']()[j(0x102)](a81a)[j(0xee)]('(((.+)+)+)+$');});function a81d(a,b){const c=a81c();return a81d=function(d,e){d=d-0xea;let f=c[d];return f;},a81d(a,b);}a81a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a81k(0xf7)]({'name':a81k(0xff),'aliases':['k'],'usage':a81k(0xf1),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a81k(0xf9)],'examples':['maka\x20g:kit\x20--type=map',a81k(0xfb)]},async function(a,b){const l=a81k;try{const c=this[l(0xeb)][l(0xf5)]();this[l(0xeb)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0xec)]),'fileName':paramCase(b[m(0xec)]),'camelCase':camelCase(b['resourceName']),'type':b[m(0xf9)],'engine':c[m(0x109)]['js'],'noRename':!![]},f=[m(0xfe),m(0x104)];if(f[m(0x103)](d['type'])<0x0){const g=d[m(0xf9)]?d[m(0xf9)]:m(0xf8);Log[m(0xf0)](m(0xef)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0xf9)]===m(0xf6)&&Log[m(0x101)](m(0x106)),b['type']===m(0x104)&&Log[m(0x101)](m(0x106));});}catch(d){Log[l(0xf0)](d);}});
1
+ const a94k=a94d;(function(a,b){const h=a94d,c=a();while(!![]){try{const d=-parseInt(h(0x13e))/0x1+parseInt(h(0x147))/0x2*(parseInt(h(0x14f))/0x3)+parseInt(h(0x149))/0x4*(parseInt(h(0x136))/0x5)+parseInt(h(0x134))/0x6*(parseInt(h(0x148))/0x7)+-parseInt(h(0x140))/0x8+parseInt(h(0x14c))/0x9*(parseInt(h(0x145))/0xa)+parseInt(h(0x13f))/0xb*(-parseInt(h(0x13c))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x85ee9));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a94d;if(c){const e=c[i(0x138)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const j=a94d;return a94a[j(0x141)]()[j(0x13b)](j(0x14a))[j(0x141)]()['constructor'](a94a)[j(0x13b)]('(((.+)+)+)+$');});a94a();function a94c(){const n=['error','6099790pCyFTi','kit','2lGCuAf','21gIGNrI','704056JuKiTv','(((.+)+)+)+$','engines','9QwNVRV','withValue','indexOf','867924UUODVe','(blank)',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','getProjectConfig','fsi','177108HGlvTx','login','25PsNMGp','resourceName','apply','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:k\x20city-map\x20--type=leaflet-map','search','5355804xcGHhN','notice','156602ArhAWf','11rpkqsA','5731256TrirXO','toString','type','NIE'];a94c=function(){return n;};return a94c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x133;let f=c[d];return f;},a94d(a,b);}Generator['create']({'name':a94k(0x146),'aliases':['k'],'usage':'maka\x20{generate,\x20g}:{kit}\x20<kit-name>','shortDesc':a94k(0x139),'validOpts':[a94k(0x142)],'examples':['maka\x20g:kit\x20--type=map',a94k(0x13a)]},async function(a,b){const l=a94k;try{const c=this[l(0x133)][l(0x152)]();this[l(0x133)][l(0x14d)](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x137)]),'fileName':paramCase(b[m(0x137)]),'camelCase':camelCase(b[m(0x137)]),'type':b[m(0x142)],'engine':c[m(0x14b)]['js'],'noRename':!![]},f=['leaflet-map','login'];if(f[m(0x14e)](d['type'])<0x0){const g=d[m(0x142)]?d[m(0x142)]:m(0x150);Log[m(0x144)]('Invalid\x20type\x20'+g+m(0x151));return;}b[m(0x142)]==='map'&&Log[m(0x13d)](m(0x143)),b[m(0x142)]===m(0x135)&&Log['notice'](m(0x143));});}catch(d){Log[l(0x144)](d);}});
@@ -1 +1 @@
1
- const a82q=a82d;function a82c(){const t=['string','Scaffolding\x20for\x20a\x20React\x20Layout.','className','startup','search','checkNpmPackage','graphql','dir','2398495tnUlYY','theme','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','css','imports','injectAtEndOfFile','relative','export\x20{\x20','withTranslations','features','maka\x20g:layout\x20mobile/iPhone8','templates.js','177163eamOYD','6CWGLOt','ssr','import\x20\x27','resourceName','/imports/ui/layouts','react','rewriteDestinationPathForEngine','assign','template/template.css','132BuySYZ','maka\x20g:l\x20web/safari','pathFromApp','4360sjckDT','fsi','includes','getProjectConfig','28sexlWR','test/test.js','tsx','component/component.js','create','client','pathFromProject','injectAtBeginningOfFile','\x20}\x20from\x20\x27','7424ciqori','setTemplate','300091vphiBD','toString','constructor','\x27;\x0a','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','engines','.js','test','withHooks','true','fileName','1889220sMUBPJ','warn','installNpmPackage','split','36XuictJ','.app-tests.js','(((.+)+)+)+$','516UTBeaF','import\x20{\x20','2834016fzYzxB','template'];a82c=function(){return t;};return a82c();}(function(a,b){const o=a82d,c=a();while(!![]){try{const d=parseInt(o(0x1cf))/0x1*(parseInt(o(0x1cb))/0x2)+-parseInt(o(0x1c8))/0x3*(parseInt(o(0x1d8))/0x4)+parseInt(o(0x1f8))/0x5+parseInt(o(0x1bf))/0x6*(parseInt(o(0x1be))/0x7)+parseInt(o(0x1ee))/0x8+parseInt(o(0x1e9))/0x9*(parseInt(o(0x1e5))/0xa)+-parseInt(o(0x1da))/0xb*(parseInt(o(0x1ec))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0x66d79));const a82b=(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;};}()),a82a=a82b(this,function(){const p=a82d;return a82a[p(0x1db)]()['search'](p(0x1eb))[p(0x1db)]()[p(0x1dc)](a82a)[p(0x1f4)](p(0x1eb));});a82a();import a82e from'path';import{Generator}from'../generator.js';function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x1be;let f=c[d];return f;},a82d(a,b);}import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a82q(0x1d3)]({'name':'layout','aliases':aliases,'usage':a82q(0x1de),'shortDesc':a82q(0x1f1),'validOpts':[],'examples':[a82q(0x202),a82q(0x1c9)]},function(a,b){const r=a82q,c=r(0x1c3),d=this[r(0x1cc)]['findAppDirectory'](),e=this[r(0x1cc)][r(0x1ca)]({'pathParts':[c,b[r(0x1f7)],paramCase(b[r(0x1c2)]),paramCase(b['resourceName'])]}),f=this[r(0x1cc)][r(0x1ce)]();this[r(0x1cc)]['withValue'](f,()=>{const s=r;typeof f['template'][s(0x1e1)]===s(0x1f0)&&(f['template']['test']=f[s(0x1ef)][s(0x1e1)]===s(0x1e3)?!![]:![],this[s(0x1cc)][s(0x1d9)](s(0x1e1),f[s(0x1ef)][s(0x1e1)]));typeof f['template'][s(0x1fb)]===s(0x1f0)&&(f[s(0x1ef)][s(0x1fb)]=f['template'][s(0x1fb)]===s(0x1e3)?!![]:![],this[s(0x1cc)][s(0x1d9)](s(0x1fb),f['template'][s(0x1fb)]));typeof f['template']['js']==='string'&&(f['template']['js']=f[s(0x1ef)]['js']===s(0x1e3)?!![]:![],this[s(0x1cc)][s(0x1d9)]('js',f['template']['js']));!f[s(0x201)]&&(f[s(0x201)]={});const g=b['_']?b['_'][0x0][s(0x1e8)](':')[0x1]:![],h=b['_']&&aliases[s(0x1cd)](g);h&&!this['checkNpmPackage']('ramda')&&(Log[s(0x1e6)](s(0x1fa)),this[s(0x1cc)][s(0x1e7)]('ramda',{'cwd':d}));if(h&&!this[s(0x1f5)](s(0x1c4))){Log[s(0x1e6)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const i={'name':pascalCase(b['resourceName']),'myPath':a82e[s(0x1fe)](this[s(0x1cc)][s(0x1d5)]({}),e),'cssCaseName':paramCase(b[s(0x1c2)]),'className':pascalCase(b[s(0x1c2)]),'camelCaseName':camelCase(b[s(0x1c2)]),'fileName':paramCase(b[s(0x1c2)]),'graphql':f[s(0x1df)][s(0x1f6)],'features':f['features'],'client':f[s(0x1df)][s(0x1d4)],'api':f[s(0x1df)]['api'],'ssr':f[s(0x1df)][s(0x1c0)],'test':f[s(0x1df)]['test'],'theme':f[s(0x1df)][s(0x1f9)],'isComponent':![],'isLayout':!![],'withTranslations':f[s(0x201)][s(0x200)]};f[s(0x201)]?.[s(0x1e2)]||b['withHook']?this['fsi'][s(0x1ef)]({'srcPath':'hook/hook.js','destPath':e+s(0x1e0),'framework':s(0x1c4),'context':i,'config':f}):this[s(0x1cc)][s(0x1ef)]({'srcPath':s(0x1d2),'destPath':e+s(0x1e0),'framework':s(0x1c4),'context':i,'config':f});f[s(0x1df)][s(0x1e1)]!=='none'&&this['fsi'][s(0x1ef)]({'srcPath':s(0x1d0),'destPath':e+s(0x1ea),'framework':'react','context':i,'config':f});f[s(0x1ef)][s(0x1fb)]&&(this[s(0x1cc)][s(0x1ef)]({'srcPath':s(0x1c7),'destPath':e+'.css','context':Object[s(0x1c6)]({},i,{'className':paramCase(b[s(0x1c2)])}),'config':f}),this[s(0x1cc)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[s(0x1df)]['js'],'content':'import\x20\x27./'+i['fileName']+'.'+f[s(0x1df)][s(0x1fb)]+'\x27;'}));const j=b[s(0x1f7)]?'/'+b[s(0x1f7)]+'/':'/',k=''+c+j+i[s(0x1e4)]+'/'+i[s(0x1e4)];let l;if(f[s(0x1df)]['ssr']==='true'){const m=this['fsi'][s(0x1ca)]({'pathParts':[s(0x1fc),s(0x1f3),'lib',s(0x203)]});l=this['fsi'][s(0x1c5)]({'pathParts':[m],'config':f});}else{const n=this[s(0x1cc)]['pathFromApp']({'pathParts':[s(0x1fc),s(0x1f3),s(0x1d4),'templates.js']});l=this['fsi'][s(0x1c5)]({'pathParts':[n],'config':f});}f[s(0x1df)]['client']===s(0x1c4)?(f[s(0x1df)]['js']===s(0x1d1)?this[s(0x1cc)][s(0x1d6)]({'filePath':l,'content':s(0x1ed)+i[s(0x1f2)]+s(0x1d7)+k+s(0x1dd)}):this[s(0x1cc)][s(0x1d6)]({'filePath':l,'content':s(0x1ed)+i[s(0x1f2)]+s(0x1d7)+k+'.'+f[s(0x1df)]['js']+s(0x1dd)}),this[s(0x1cc)]['injectAtEndOfFile']({'filePath':l,'content':s(0x1ff)+i[s(0x1f2)]+'\x20};\x0a'})):this[s(0x1cc)][s(0x1fd)]({'filePath':l,'content':s(0x1c1)+k+'.'+f[s(0x1df)]['js']+s(0x1dd)});});});
1
+ const a95r=a95d;(function(a,b){const o=a95d,c=a();while(!![]){try{const d=-parseInt(o(0x1f7))/0x1*(-parseInt(o(0x20e))/0x2)+parseInt(o(0x220))/0x3*(-parseInt(o(0x20b))/0x4)+parseInt(o(0x1ef))/0x5*(parseInt(o(0x207))/0x6)+-parseInt(o(0x203))/0x7+-parseInt(o(0x1fe))/0x8+parseInt(o(0x234))/0x9+parseInt(o(0x205))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x3e80a));const a95b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a95d;if(c){const e=c[p(0x219)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){const q=a95d;return a95a[q(0x1f1)]()[q(0x216)](q(0x235))[q(0x1f1)]()['constructor'](a95a)[q(0x216)](q(0x235));});a95a();import a95e from'path';function a95d(a,b){const c=a95c();return a95d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a95d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a95c(){const u=['checkNpmPackage','test','setTemplate','client','hook/hook.js','3AMNuPY','engines','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','.app-tests.js','warn','graphql','resourceName','import\x20\x27./','withHook','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','templates.js','maka\x20g:layout\x20mobile/iPhone8','assign','imports','withHooks','theme','.js','true','api','import\x20{\x20','2797056sxUQlR','(((.+)+)+)+$','relative','template','\x20};\x0a','25wkzaAo','injectAtEndOfFile','toString','fsi','split','className','installNpmPackage','withTranslations','5223kQfycy','fileName','react','ramda','dir','Scaffolding\x20for\x20a\x20React\x20Layout.','withValue','3602712YtQURf','layout','getProjectConfig','\x27;\x0a','pathFromApp','1447432kOdYKR','\x20}\x20from\x20\x27','5017560DTPemU','maka\x20g:l\x20web/safari','224550RwJqxp','injectAtBeginningOfFile','template/template.css','none','1411652vcJlYl','findAppDirectory','features','102VCXeLF','rewriteDestinationPathForEngine','pathFromProject','import\x20\x27','ssr','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','create','startup','search','css','string','apply','lib'];a95c=function(){return u;};return a95c();}const aliases=['l'];Generator[a95r(0x214)]({'name':a95r(0x1ff),'aliases':aliases,'usage':a95r(0x213),'shortDesc':a95r(0x1fc),'validOpts':[],'examples':[a95r(0x22b),a95r(0x206)]},function(a,b){const s=a95r,c='/imports/ui/layouts',d=this[s(0x1f2)][s(0x20c)](),e=this[s(0x1f2)][s(0x202)]({'pathParts':[c,b['dir'],paramCase(b[s(0x226)]),paramCase(b[s(0x226)])]}),f=this[s(0x1f2)][s(0x200)]();this[s(0x1f2)][s(0x1fd)](f,()=>{const t=s;typeof f[t(0x1ed)][t(0x21c)]===t(0x218)&&(f[t(0x1ed)][t(0x21c)]=f[t(0x1ed)][t(0x21c)]===t(0x231)?!![]:![],this[t(0x1f2)][t(0x21d)](t(0x21c),f['template'][t(0x21c)]));typeof f[t(0x1ed)][t(0x217)]===t(0x218)&&(f[t(0x1ed)][t(0x217)]=f[t(0x1ed)][t(0x217)]===t(0x231)?!![]:![],this['fsi']['setTemplate'](t(0x217),f['template'][t(0x217)]));typeof f[t(0x1ed)]['js']===t(0x218)&&(f['template']['js']=f[t(0x1ed)]['js']===t(0x231)?!![]:![],this['fsi'][t(0x21d)]('js',f[t(0x1ed)]['js']));!f[t(0x20d)]&&(f[t(0x20d)]={});const g=b['_']?b['_'][0x0][t(0x1f3)](':')[0x1]:![],h=b['_']&&aliases['includes'](g);h&&!this[t(0x21b)](t(0x1fa))&&(Log[t(0x224)](t(0x222)),this['fsi'][t(0x1f5)](t(0x1fa),{'cwd':d}));if(h&&!this[t(0x21b)](t(0x1f9))){Log[t(0x224)](t(0x229));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a95e[t(0x1ec)](this[t(0x1f2)][t(0x210)]({}),e),'cssCaseName':paramCase(b[t(0x226)]),'className':pascalCase(b[t(0x226)]),'camelCaseName':camelCase(b[t(0x226)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x221)][t(0x225)],'features':f['features'],'client':f['engines']['client'],'api':f['engines'][t(0x232)],'ssr':f['engines']['ssr'],'test':f[t(0x221)][t(0x21c)],'theme':f[t(0x221)][t(0x22f)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x20d)][t(0x1f6)]};f[t(0x20d)]?.[t(0x22e)]||b[t(0x228)]?this[t(0x1f2)][t(0x1ed)]({'srcPath':t(0x21f),'destPath':e+t(0x230),'framework':t(0x1f9),'context':i,'config':f}):this['fsi'][t(0x1ed)]({'srcPath':'component/component.js','destPath':e+t(0x230),'framework':'react','context':i,'config':f});f[t(0x221)][t(0x21c)]!==t(0x20a)&&this[t(0x1f2)]['template']({'srcPath':'test/test.js','destPath':e+t(0x223),'framework':t(0x1f9),'context':i,'config':f});f['template']['css']&&(this[t(0x1f2)]['template']({'srcPath':t(0x209),'destPath':e+'.css','context':Object[t(0x22c)]({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x1f2)][t(0x208)]({'filePath':e+'.'+f[t(0x221)]['js'],'content':t(0x227)+i[t(0x1f8)]+'.'+f[t(0x221)][t(0x217)]+'\x27;'}));const j=b[t(0x1fb)]?'/'+b[t(0x1fb)]+'/':'/',k=''+c+j+i['fileName']+'/'+i[t(0x1f8)];let l;if(f[t(0x221)][t(0x212)]==='true'){const m=this['fsi'][t(0x202)]({'pathParts':[t(0x22d),t(0x215),t(0x21a),t(0x22a)]});l=this[t(0x1f2)][t(0x20f)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x202)]({'pathParts':[t(0x22d),t(0x215),'client',t(0x22a)]});l=this[t(0x1f2)][t(0x20f)]({'pathParts':[n],'config':f});}f[t(0x221)][t(0x21e)]===t(0x1f9)?(f[t(0x221)]['js']==='tsx'?this[t(0x1f2)][t(0x208)]({'filePath':l,'content':t(0x233)+i['className']+'\x20}\x20from\x20\x27'+k+t(0x201)}):this[t(0x1f2)][t(0x208)]({'filePath':l,'content':t(0x233)+i[t(0x1f4)]+t(0x204)+k+'.'+f[t(0x221)]['js']+'\x27;\x0a'}),this['fsi'][t(0x1f0)]({'filePath':l,'content':'export\x20{\x20'+i[t(0x1f4)]+t(0x1ee)})):this[t(0x1f2)]['injectAtEndOfFile']({'filePath':l,'content':t(0x211)+k+'.'+f[t(0x221)]['js']+t(0x201)});});});
@@ -1 +1 @@
1
- function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x1de;let f=c[d];return f;},a83d(a,b);}const a83h=a83d;(function(a,b){const f=a83d,c=a();while(!![]){try{const d=-parseInt(f(0x1e5))/0x1*(parseInt(f(0x1e4))/0x2)+-parseInt(f(0x1e6))/0x3+-parseInt(f(0x1ec))/0x4*(-parseInt(f(0x1df))/0x5)+-parseInt(f(0x1ef))/0x6+parseInt(f(0x1eb))/0x7+parseInt(f(0x1e2))/0x8+parseInt(f(0x1f0))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x9fc9c));const a83b=(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;};}()),a83a=a83b(this,function(){const g=a83d;return a83a[g(0x1e8)]()[g(0x1e1)](g(0x1e0))[g(0x1e8)]()[g(0x1ea)](a83a)[g(0x1e1)](g(0x1e0));});a83a();function a83c(){const i=['\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','toString','maka\x20g:hook\x20cool-hook','constructor','7787213KpQErb','28Hmwqrs','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','Maka!','382632eBRotp','7039188BBUzbU','maka\x20generate:api\x20Trucks','153635lcLkcl','(((.+)+)+)+$','search','3046664SXRhlK','maka','116eogqqm','16461mDtKqS','2452533KISNue'];a83c=function(){return i;};return a83c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a83h(0x1e3),'shortDesc':a83h(0x1ee),'validOpts':[],'description':a83h(0x1e7),'usage':a83h(0x1ed),'examples':[a83h(0x1de),a83h(0x1e9)]},function(){return null;});export default MakaGen;
1
+ const a96i=a96d;function a96c(){const j=['toString','23585247zvwwVx','search','2272200odnORw','190114lRcefo','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$','maka\x20g:hook\x20cool-hook','6142398khiFnW','maka\x20generate:api\x20Trucks','561358pjKPHe','apply','Maka!','7BfMydX','8cIFwEL','1000608prkwWL','3316032KQsmki'];a96c=function(){return j;};return a96c();}(function(a,b){const f=a96d,c=a();while(!![]){try{const d=parseInt(f(0x170))/0x1+parseInt(f(0x176))/0x2+parseInt(f(0x16a))/0x3*(-parseInt(f(0x169))/0x4)+-parseInt(f(0x16f))/0x5+-parseInt(f(0x174))/0x6*(parseInt(f(0x168))/0x7)+-parseInt(f(0x16b))/0x8+parseInt(f(0x16d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x81cab));function a96d(a,b){const c=a96c();return a96d=function(d,e){d=d-0x167;let f=c[d];return f;},a96d(a,b);}const a96b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a96d;if(c){const e=c[g(0x177)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){const h=a96d;return a96a['toString']()['search'](h(0x172))[h(0x16c)]()['constructor'](a96a)[h(0x16e)](h(0x172));});a96a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a96i(0x167),'validOpts':[],'description':'\x0a\x20\x20For\x20more\x20information\x20visit:\x0a\x20\x20\x20\x20https://www.maka-cli.com\x0a\x20\x20\x20\x20https://medium.com/@maka-io\x0a\x20\x20\x20\x20https://gitter.im/meteor/meteor\x20(@maka-io)\x0a\x20\x20','usage':a96i(0x171),'examples':[a96i(0x175),a96i(0x173)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a84n=a84d;(function(a,b){const k=a84d,c=a();while(!![]){try{const d=-parseInt(k(0x175))/0x1*(-parseInt(k(0x18c))/0x2)+-parseInt(k(0x191))/0x3*(parseInt(k(0x171))/0x4)+-parseInt(k(0x17c))/0x5+-parseInt(k(0x18f))/0x6*(-parseInt(k(0x18a))/0x7)+-parseInt(k(0x173))/0x8+parseInt(k(0x180))/0x9*(parseInt(k(0x188))/0xa)+-parseInt(k(0x181))/0xb*(parseInt(k(0x17d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x9ec8f));const a84b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a84d;if(c){const e=c[l(0x16a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){const m=a84d;return a84a[m(0x18d)]()['search'](m(0x170))[m(0x18d)]()[m(0x192)](a84a)[m(0x177)](m(0x170));});function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x169;let f=c[d];return f;},a84d(a,b);}a84a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a84c(){const q=['search','checkMeteorPackage','injectAtEndOfFile','appPathPrefix','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','4313550rzjJtB','1008gLFyZc','method/method.js','-rpc-method.','18goiKEC','34012svogKp','warn','pathFromApp','fsi','check','installMeteorPackage','startup','2513910peMoTW','imports','134883lEyCgQ','dir','1759366kypFgm','toString','engines','348SWScgq','index.','12927BaUsOz','constructor','import\x20\x27./methods','maka\x20g:method\x20todos','maka\x20{generate,\x20g}:{method,\x20m}\x20name','create','error','apply','check\x20ddp-rate-limiter\x20mdg:validated-method','mdg:validated-method','resourceName','methods','method','(((.+)+)+)+$','188RjYAIT','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','4197784rQweAs','ddp-rate-limiter','1EahXsG','template'];a84c=function(){return q;};return a84c();}Generator[a84n(0x196)]({'name':a84n(0x16f),'aliases':['m'],'usage':a84n(0x195),'checkWhere':!![],'shortDesc':a84n(0x17b),'validOpts':[a84n(0x18b)],'examples':[a84n(0x194)]},function(a,b){const o=a84n;try{const c=this[o(0x184)]['getProjectConfig']();this[o(0x184)]['withValue'](c,async()=>{const p=o,d=paramCase(b[p(0x16d)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x16d)]),'camelCase':camelCase(b['resourceName']),'noRename':!![]};let g='js';c[p(0x18e)]['js']==='tsx'&&(g='ts');const h=this[p(0x184)][p(0x183)]({});(!this[p(0x184)]['checkMeteorPackage'](p(0x185))||!this['fsi'][p(0x178)](p(0x174))||!this[p(0x184)][p(0x178)](p(0x16c)))&&(Log[p(0x182)](p(0x172)),this[p(0x184)][p(0x186)](p(0x16b),{'cwd':h}));this[p(0x184)][p(0x176)]({'srcPath':p(0x17e),'destPath':this[p(0x184)][p(0x183)]({'pathParts':[p(0x189),p(0x187),b[p(0x17a)],p(0x16e),b[p(0x18b)],d+p(0x17f)+g]}),'context':f,'config':c});const i=b[p(0x18b)]?'/'+b[p(0x18b)]+'/':'/',j=this[p(0x184)][p(0x183)]({'pathParts':[p(0x189),'startup',b[p(0x17a)],p(0x190)+c[p(0x18e)]['js']]});this['fsi'][p(0x179)]({'filePath':j,'content':p(0x193)+i+d+'-rpc-method\x27;'});});}catch(d){Log[o(0x169)](d);}});
1
+ const a97m=a97d;(function(a,b){const k=a97d,c=a();while(!![]){try{const d=-parseInt(k(0xcd))/0x1+-parseInt(k(0xc9))/0x2+-parseInt(k(0xcf))/0x3*(parseInt(k(0xea))/0x4)+-parseInt(k(0xca))/0x5+parseInt(k(0xe8))/0x6*(-parseInt(k(0xde))/0x7)+parseInt(k(0xe4))/0x8*(parseInt(k(0xd5))/0x9)+parseInt(k(0xd9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x29077));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const l=a97d;return a97a[l(0xed)]()[l(0xf0)]('(((.+)+)+)+$')[l(0xed)]()[l(0xe3)](a97a)[l(0xf0)](l(0xcb));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xc9;let f=c[d];return f;},a97d(a,b);}a97a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a97m(0xd8)]({'name':a97m(0xd0),'aliases':['m'],'usage':a97m(0xd1),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a97m(0xec)],'examples':[a97m(0xd3)]},function(a,b){const n=a97m;try{const c=this['fsi']['getProjectConfig']();this['fsi'][n(0xdd)](c,async()=>{const o=n,d=paramCase(b[o(0xdc)]),f={'name':b[o(0xdc)],'fileName':d,'className':pascalCase(b[o(0xdc)]),'camelCase':camelCase(b[o(0xdc)]),'noRename':!![]};let g='js';c[o(0xe0)]['js']===o(0xe2)&&(g='ts');const h=this[o(0xef)]['pathFromApp']({});(!this[o(0xef)][o(0xee)](o(0xe5))||!this[o(0xef)]['checkMeteorPackage'](o(0xd6))||!this[o(0xef)][o(0xee)](o(0xeb)))&&(Log['warn'](o(0xe9)),this[o(0xef)][o(0xf2)](o(0xd2),{'cwd':h}));this[o(0xef)][o(0xdb)]({'srcPath':o(0xe6),'destPath':this['fsi'][o(0xda)]({'pathParts':[o(0xd7),'startup',b['appPathPrefix'],o(0xdf),b[o(0xec)],d+'-rpc-method.'+g]}),'context':f,'config':c});const i=b[o(0xec)]?'/'+b['dir']+'/':'/',j=this['fsi'][o(0xda)]({'pathParts':[o(0xd7),o(0xe7),b[o(0xd4)],o(0xf1)+c['engines']['js']]});this[o(0xef)]['injectAtEndOfFile']({'filePath':j,'content':o(0xe1)+i+d+o(0xcc)});});}catch(d){Log[n(0xce)](d);}});function a97c(){const p=['fsi','search','index.','installMeteorPackage','70814OZYVbY','349245ujiUsr','(((.+)+)+)+$','-rpc-method\x27;','252184bGXlpy','error','1671FCRbLx','method','maka\x20{generate,\x20g}:{method,\x20m}\x20name','check\x20ddp-rate-limiter\x20mdg:validated-method','maka\x20g:method\x20todos','appPathPrefix','2401137nCNwbu','ddp-rate-limiter','imports','create','5834850GwVbLY','pathFromApp','template','resourceName','withValue','7OgqsKJ','methods','engines','import\x20\x27./methods','tsx','constructor','8SiHziP','check','method/method.js','startup','1845096txjqKB','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','124ZvpgKG','mdg:validated-method','dir','toString','checkMeteorPackage'];a97c=function(){return p;};return a97c();}
@@ -1 +1 @@
1
- const a85o=a85d;(function(a,b){const l=a85d,c=a();while(!![]){try{const d=-parseInt(l(0x1fb))/0x1*(-parseInt(l(0x1fc))/0x2)+-parseInt(l(0x1f2))/0x3*(-parseInt(l(0x1f6))/0x4)+parseInt(l(0x1ef))/0x5*(-parseInt(l(0x1e7))/0x6)+parseInt(l(0x1f5))/0x7*(parseInt(l(0x1e6))/0x8)+parseInt(l(0x1e9))/0x9*(parseInt(l(0x1ee))/0xa)+parseInt(l(0x1d8))/0xb*(parseInt(l(0x1d1))/0xc)+-parseInt(l(0x1e5))/0xd*(parseInt(l(0x1d0))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xe8b9a));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a85d;if(c){const e=c[m(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const n=a85d;return a85a[n(0x1d5)]()[n(0x200)](n(0x1f9))[n(0x1d5)]()['constructor'](a85a)[n(0x200)](n(0x1f9));});function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x1d0;let f=c[d];return f;},a85d(a,b);}a85a();import a85e from'path';function a85c(){const s=['686WNwmfF','1860kzKRBD','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','package/package.js','tests/server','toString','relative','tests/client','16148hBftvH','fsi','server','.js','noRename','package.js','template/template.js','engines','create','dir','store','resourceName','maka\x20g:package\x20todos:package','843453SKZVIo','296VEHGbp','11274snKDqY','apply','200295TOYmpN','theme','hasOwnProperty','packages','features','70tEYESb','575mEScWn','pathFromAppWithNoReWrite','pathFromApp','3VSvjDg','forEach','/package.js','307601fBAlwl','4104964AusWym','client','/client/','(((.+)+)+)+$','graphql','187577ZJDHRT','14TPSMFh','withValue','package','layout','search','template'];a85c=function(){return s;};return a85c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a85o(0x1e0)]({'name':a85o(0x1fe),'aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':a85o(0x1d2),'validOpts':[a85o(0x1e1)],'examples':[a85o(0x1e4)]},async function(a,b){const p=a85o,c=paramCase(b[p(0x1e3)]),d=this['fsi'][p(0x1f1)]({'pathParts':[p(0x1ec),b[p(0x1e1)],c]}),e=this['fsi'][p(0x1f0)]({'pathParts':[p(0x1ec),b[p(0x1e1)],c,p(0x1dd)]}),f=this[p(0x1d9)]['getProjectConfig']();this[p(0x1d9)][p(0x1fd)](f,async()=>{const q=p,g={'name':paramCase(b[q(0x1e3)]),'myPath':a85e[q(0x1d6)](this[q(0x1d9)]['pathFromProject']({}),d),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[q(0x1e3)]),'camelCaseName':camelCase(b['resourceName']),'fileName':c,'client':f[q(0x1df)][q(0x1f7)],'graphql':f[q(0x1df)][q(0x1fa)],'ssr':f[q(0x1df)]['ssr'],'isComponent':b[q(0x1eb)]('component'),'isLayout':b[q(0x1eb)](q(0x1ff)),'isStore':b['hasOwnProperty'](q(0x1e2)),'features':f[q(0x1ed)],'noRename':!![],'theme':f['engines'][q(0x1ea)]};this[q(0x1d9)][q(0x201)]({'srcPath':q(0x1d3),'destPath':e,'context':g,'config':f}),g[q(0x1dc)]=![];const h=d+q(0x1f8)+c+q(0x1db);this[q(0x1d9)][q(0x201)]({'srcPath':q(0x1de),'destPath':h,'context':g,'config':f});const i=['lib',q(0x1da),q(0x1d7),q(0x1d4)];i[q(0x1f3)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0x1db);this[r(0x1d9)]['template']({'srcPath':'package/'+j+r(0x1f4),'destPath':k,'context':g,'config':f});});});});
1
+ const a98o=a98d;(function(a,b){const l=a98d,c=a();while(!![]){try{const d=parseInt(l(0xf9))/0x1+parseInt(l(0xd9))/0x2+-parseInt(l(0xfa))/0x3*(-parseInt(l(0xea))/0x4)+-parseInt(l(0xf4))/0x5+parseInt(l(0xd3))/0x6+-parseInt(l(0xf3))/0x7+parseInt(l(0xe8))/0x8*(-parseInt(l(0xd4))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x9dc84));const a98b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a98d;if(c){const e=c[m(0xe3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){const n=a98d;return a98a[n(0xe6)]()[n(0xd5)](n(0xd6))[n(0xe6)]()['constructor'](a98a)[n(0xd5)]('(((.+)+)+)+$');});a98a();function a98c(){const s=['theme','server','package/','template/template.js','store','apply','lib','package/package.js','toString','fsi','122824MEtOqS','hasOwnProperty','364TkFxCH','.js','package.js','pathFromApp','pathFromAppWithNoReWrite','ssr','noRename','layout','dir','932372zrbtsG','1479575fLXSsP','forEach','client','packages','/client/','181789XwJlob','33144fVdxKI','features','6192816fbcjeG','747ZDSKPn','search','(((.+)+)+)+$','create','relative','260786kGWyeC','engines','resourceName','template','/package.js'];a98c=function(){return s;};return a98c();}function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xd2;let f=c[d];return f;},a98d(a,b);}import a98e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a98o(0xd7)]({'name':'package','aliases':['p'],'usage':'maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','validOpts':[a98o(0xf2)],'examples':['maka\x20g:package\x20todos:package']},async function(a,b){const p=a98o,c=paramCase(b['resourceName']),d=this[p(0xe7)][p(0xed)]({'pathParts':[p(0xf7),b[p(0xf2)],c]}),e=this[p(0xe7)][p(0xee)]({'pathParts':[p(0xf7),b['dir'],c,p(0xec)]}),f=this['fsi']['getProjectConfig']();this['fsi']['withValue'](f,async()=>{const q=p,g={'name':paramCase(b['resourceName']),'myPath':a98e[q(0xd8)](this[q(0xe7)]['pathFromProject']({}),d),'cssCaseName':paramCase(b[q(0xdb)]),'className':pascalCase(b[q(0xdb)]),'camelCaseName':camelCase(b[q(0xdb)]),'fileName':c,'client':f[q(0xda)][q(0xf6)],'graphql':f[q(0xda)]['graphql'],'ssr':f[q(0xda)][q(0xef)],'isComponent':b[q(0xe9)]('component'),'isLayout':b[q(0xe9)](q(0xf1)),'isStore':b[q(0xe9)](q(0xe2)),'features':f[q(0xd2)],'noRename':!![],'theme':f[q(0xda)][q(0xde)]};this[q(0xe7)][q(0xdc)]({'srcPath':q(0xe5),'destPath':e,'context':g,'config':f}),g[q(0xf0)]=![];const h=d+q(0xf8)+c+q(0xeb);this['fsi'][q(0xdc)]({'srcPath':q(0xe1),'destPath':h,'context':g,'config':f});const i=[q(0xe4),q(0xdf),'tests/client','tests/server'];i[q(0xf5)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xeb);this['fsi'][r(0xdc)]({'srcPath':r(0xe0)+j+r(0xdd),'destPath':k,'context':g,'config':f});});});});