@maka/maka-cli 4.5.13 → 4.5.15

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 (106) hide show
  1. package/bundle/obf/package.json +5 -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/dunnet/commands.js +1 -0
  25. package/bundle/obf/src/commands/game/dunnet/game.js +1 -0
  26. package/bundle/obf/src/commands/game/dunnet/items.js +1 -0
  27. package/bundle/obf/src/commands/game/dunnet/puzzles.js +1 -0
  28. package/bundle/obf/src/commands/game/dunnet/rooms.js +1 -0
  29. package/bundle/obf/src/commands/game/dunnet/types.js +1 -0
  30. package/bundle/obf/src/commands/game/dunnet.sub.cmd.js +1 -0
  31. package/bundle/obf/src/commands/game/play.command.js +1 -1
  32. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/generate.js +1 -1
  36. package/bundle/obf/src/commands/get/_index.js +1 -1
  37. package/bundle/obf/src/commands/get/get.command.js +1 -1
  38. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  39. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  40. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  41. package/bundle/obf/src/commands/help.js +1 -1
  42. package/bundle/obf/src/commands/jsdoc.js +1 -1
  43. package/bundle/obf/src/commands/lint.js +1 -1
  44. package/bundle/obf/src/commands/login.js +1 -1
  45. package/bundle/obf/src/commands/logout.js +1 -1
  46. package/bundle/obf/src/commands/logs.js +1 -1
  47. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  48. package/bundle/obf/src/commands/murder.js +1 -1
  49. package/bundle/obf/src/commands/proxy.js +1 -1
  50. package/bundle/obf/src/commands/reconfig.js +1 -1
  51. package/bundle/obf/src/commands/run/_index.js +1 -1
  52. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  53. package/bundle/obf/src/commands/run/run.command.js +1 -1
  54. package/bundle/obf/src/commands/set/_index.js +1 -1
  55. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  56. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  57. package/bundle/obf/src/commands/set/set.command.js +1 -1
  58. package/bundle/obf/src/commands/ssh.js +1 -1
  59. package/bundle/obf/src/commands/ssl.js +1 -1
  60. package/bundle/obf/src/commands/test.js +1 -1
  61. package/bundle/obf/src/commands/version.js +1 -1
  62. package/bundle/obf/src/error.js +1 -1
  63. package/bundle/obf/src/generator.js +1 -1
  64. package/bundle/obf/src/generators/_index.js +1 -1
  65. package/bundle/obf/src/generators/api.js +1 -1
  66. package/bundle/obf/src/generators/collection.js +1 -1
  67. package/bundle/obf/src/generators/component.js +1 -1
  68. package/bundle/obf/src/generators/config.js +1 -1
  69. package/bundle/obf/src/generators/dbc.js +1 -1
  70. package/bundle/obf/src/generators/dockerfile.js +1 -1
  71. package/bundle/obf/src/generators/hook.js +1 -1
  72. package/bundle/obf/src/generators/kit.js +1 -1
  73. package/bundle/obf/src/generators/layout.js +1 -1
  74. package/bundle/obf/src/generators/maka.gen.js +1 -1
  75. package/bundle/obf/src/generators/methods.js +1 -1
  76. package/bundle/obf/src/generators/package.js +1 -1
  77. package/bundle/obf/src/generators/page.js +1 -1
  78. package/bundle/obf/src/generators/publish.js +1 -1
  79. package/bundle/obf/src/generators/route.js +1 -1
  80. package/bundle/obf/src/generators/service.js +1 -1
  81. package/bundle/obf/src/generators/services/_index.js +1 -1
  82. package/bundle/obf/src/generators/services/openssl.js +1 -1
  83. package/bundle/obf/src/generators/services/translation.js +1 -1
  84. package/bundle/obf/src/maka.js +1 -1
  85. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +2 -2
  86. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +2 -2
  87. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +2 -2
  88. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +2 -2
  89. package/bundle/obf/src/tool.js +1 -1
  90. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  91. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  92. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  93. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  94. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  95. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  96. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  97. package/bundle/obf/src/tools/https/https.class.js +1 -1
  98. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  99. package/bundle/obf/src/tools/log/log.class.js +1 -1
  100. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  101. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  102. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  103. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  104. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  105. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  106. package/package.json +5 -1
@@ -1 +1 @@
1
- const a52k=a52d;(function(a,b){const i=a52d,c=a();while(!![]){try{const d=-parseInt(i(0x143))/0x1+-parseInt(i(0x12c))/0x2*(parseInt(i(0x135))/0x3)+parseInt(i(0x138))/0x4+-parseInt(i(0x13e))/0x5*(-parseInt(i(0x130))/0x6)+parseInt(i(0x152))/0x7+-parseInt(i(0x141))/0x8+parseInt(i(0x14a))/0x9*(parseInt(i(0x146))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a52c,0xada06));const a52b=(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;};}()),a52a=a52b(this,function(){const j=a52d;return a52a[j(0x140)]()[j(0x134)]('(((.+)+)+)+$')[j(0x140)]()['constructor'](a52a)[j(0x134)](j(0x142));});function a52c(){const m=['8392840SZaoHL','(((.+)+)+)+$','1020312rkIlsF','System\x27s\x20Node\x20Version\x20','create','1520EByPWT','Project\x27s\x20Meteor\x20Node\x20Version\x20','error','getGlobalMeteorVersion','67914CNkOqd','warn','getProjectMeteorVersion','----------------------Project----------------------------','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','meteor','Project\x27s\x20Meteor\x20Version\x20','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','7266196axrTco','isMakaProject','replace','win32','2Ltluff','maka\x20v',')\x20to\x20at\x20least\x20meteor\x27s\x20(','bright','170850QgsyyJ','notice','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','System\x27s\x20Meteor\x20Version\x20','search','3195714QmpKaL','platform','compareMakaToLatest','2542836lHkDgr','\x20!\x20consider\x20updating\x20your\x20node\x20version\x20(','maka\x20version','----------------------System----------------------------','meteor.bat','fsi','180gIzVeo','node\x20-v','toString'];a52c=function(){return m;};return a52c();}a52a();import{execSync}from'child_process';function a52d(a,b){const c=a52c();return a52d=function(d,e){d=d-0x12a;let f=c[d];return f;},a52d(a,b);}import a52e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.5.12'};Command[a52k(0x145)]({'name':'version','aliases':['v'],'usage':a52k(0x13a),'maxArgLength':0x1,'validOpts':[],'shortDesc':a52k(0x132),'examples':[a52k(0x12d),a52k(0x13a)]},async function(){const l=a52k;try{const a=process[l(0x136)]===l(0x12b)?l(0x13c):l(0x14f);Log['majestic']('Maka\x20'+pjson['version']),await this[l(0x13d)][l(0x137)](),Log[l(0x12f)](l(0x13b));const b=this[l(0x13d)][l(0x149)]();Log[l(0x12f)]((l(0x133)+b)[l(0x12a)]('\x0a',''));const c=execSync(a+'\x20node\x20-v')[l(0x140)]()['replace'](/\r?\n|\r/,'')[l(0x12a)]('v','');Log[l(0x12f)]('System\x27s\x20Meteor\x27s\x20Node\x20Version\x20'+c);const d=execSync(l(0x13f))['toString']()[l(0x12a)](/\r?\n|\r/,'')[l(0x12a)]('v','');a52e['gt'](c,d)?(Log[l(0x14b)](l(0x144)+d),Log['warn'](l(0x139)+d+l(0x12e)+c+')')):Log[l(0x12f)](l(0x144)+d);if(this[l(0x13d)][l(0x153)]()){Log[l(0x12f)](l(0x14d));const f=this[l(0x13d)][l(0x14c)]();a52e['gt'](b,f)?(Log[l(0x14b)](l(0x150)+f['replace']('\x0a','')),Log[l(0x14b)](l(0x14e)+b+'\x22')):Log[l(0x131)]((l(0x150)+f)['replace']('\x0a',''));const g=await this[l(0x13d)]['getProjectsMeteorNodeVersion']();g==='N/A'?(Log[l(0x14b)](l(0x147)+g),Log[l(0x14b)](l(0x151))):Log['bright'](l(0x147)+g),Log[l(0x12f)]('\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22');}}catch(h){console[l(0x148)](h),process['exit'](0x0);}});
1
+ const a59l=a59d;(function(a,b){const i=a59d,c=a();while(!![]){try{const d=-parseInt(i(0x93))/0x1+parseInt(i(0xa3))/0x2*(-parseInt(i(0xab))/0x3)+-parseInt(i(0x9c))/0x4*(-parseInt(i(0xa6))/0x5)+-parseInt(i(0x92))/0x6+parseInt(i(0x98))/0x7+parseInt(i(0xb0))/0x8*(-parseInt(i(0xb1))/0x9)+parseInt(i(0x90))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xb4abb));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a59d;if(c){const e=c[j(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const k=a59d;return a59a[k(0x9f)]()[k(0x96)](k(0xa5))[k(0x9f)]()[k(0x97)](a59a)[k(0x96)](k(0xa5));});a59a();import{execSync}from'child_process';import a59e from'semver';import{Command}from'../command.js';function a59c(){const n=['\x20node\x20-v','4154970KHFrEN','create','247926UcNExL','301667KHmqoD','compareMakaToLatest','notice','search','constructor','8198078WNFqfD','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','win32','System\x27s\x20Meteor\x20Version\x20','4TVqoPw','node\x20-v','maka\x20v','toString','Project\x27s\x20Meteor\x20Node\x20Version\x20','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','getGlobalMeteorVersion','4oSwFHj','warn','(((.+)+)+)+$','5619800fHRapc','Project\x27s\x20Meteor\x20Version\x20','apply','meteor','Maka\x20','710151CrsFMu','maka\x20version','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','bright','meteor.bat','8JlcbLP','10387458tESYkl','N/A','fsi','System\x27s\x20Node\x20Version\x20','exit',')\x20to\x20at\x20least\x20meteor\x27s\x20(','replace','getProjectsMeteorNodeVersion'];a59c=function(){return n;};return a59c();}function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x90;let f=c[d];return f;},a59d(a,b);}import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.5.15'};Command[a59l(0x91)]({'name':'version','aliases':['v'],'usage':a59l(0xac),'maxArgLength':0x1,'validOpts':[],'shortDesc':a59l(0xad),'examples':[a59l(0x9e),'maka\x20version']},async function(){const m=a59l;try{const a=process['platform']===m(0x9a)?m(0xaf):m(0xa9);Log['majestic'](m(0xaa)+pjson['version']),await this[m(0xb3)][m(0x94)](),Log[m(0xae)]('----------------------System----------------------------');const b=this[m(0xb3)][m(0xa2)]();Log[m(0xae)]((m(0x9b)+b)[m(0xb7)]('\x0a',''));const c=execSync(a+m(0xb9))['toString']()['replace'](/\r?\n|\r/,'')[m(0xb7)]('v','');Log[m(0xae)]('System\x27s\x20Meteor\x27s\x20Node\x20Version\x20'+c);const d=execSync(m(0x9d))[m(0x9f)]()['replace'](/\r?\n|\r/,'')[m(0xb7)]('v','');a59e['gt'](c,d)?(Log[m(0xa4)](m(0xb4)+d),Log[m(0xa4)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+d+m(0xb6)+c+')')):Log['bright'](m(0xb4)+d);if(this[m(0xb3)]['isMakaProject']()){Log[m(0xae)]('----------------------Project----------------------------');const f=this[m(0xb3)]['getProjectMeteorVersion']();a59e['gt'](b,f)?(Log[m(0xa4)](m(0xa7)+f[m(0xb7)]('\x0a','')),Log[m(0xa4)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+b+'\x22')):Log[m(0x95)]((m(0xa7)+f)[m(0xb7)]('\x0a',''));const g=await this[m(0xb3)][m(0xb8)]();g===m(0xb2)?(Log['warn'](m(0xa0)+g),Log[m(0xa4)](m(0x99))):Log[m(0xae)](m(0xa0)+g),Log[m(0xae)](m(0xa1));}}catch(h){console['error'](h),process[m(0xb5)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a53d,c=a();while(!![]){try{var d=parseInt(f(0x11e))/0x1+parseInt(f(0x120))/0x2+parseInt(f(0x125))/0x3+-parseInt(f(0x11d))/0x4*(parseInt(f(0x121))/0x5)+-parseInt(f(0x11c))/0x6*(-parseInt(f(0x122))/0x7)+-parseInt(f(0x124))/0x8+-parseInt(f(0x123))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a53c,0xd2b7d));var a53b=(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;};}()),a53a=a53b(this,function(){var g=a53d;return a53a[g(0x11f)]()['search']('(((.+)+)+)+$')[g(0x11f)]()['constructor'](a53a)[g(0x127)](g(0x126));});a53a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a53c(){var h=['849700wPtQua','toString','2579820JBupCK','15hhGazi','7VHlQdB','9957033hBNbSg','10306824PDdbRF','4953144nCHuJK','(((.+)+)+)+$','search','1957512LJPImN','1145492tWOniF'];a53c=function(){return h;};return a53c();}function a53d(a,b){var c=a53c();return a53d=function(d,e){d=d-0x11c;var f=c[d];return f;},a53d(a,b);}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
1
+ (function(a,b){var f=a60d,c=a();while(!![]){try{var d=-parseInt(f(0xbf))/0x1*(parseInt(f(0xbb))/0x2)+-parseInt(f(0xb4))/0x3*(-parseInt(f(0xba))/0x4)+parseInt(f(0xb1))/0x5*(parseInt(f(0xb8))/0x6)+parseInt(f(0xbd))/0x7*(-parseInt(f(0xb3))/0x8)+-parseInt(f(0xc0))/0x9*(-parseInt(f(0xb0))/0xa)+-parseInt(f(0xb7))/0xb+-parseInt(f(0xb2))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0xb67d3));var a60b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a60d;if(c){var e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a60a=a60b(this,function(){var h=a60d;return a60a[h(0xbe)]()[h(0xb5)](h(0xb6))['toString']()[h(0xb9)](a60a)['search'](h(0xb6));});function a60d(a,b){var c=a60c();return a60d=function(d,e){d=d-0xb0;var f=c[d];return f;},a60d(a,b);}a60a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}function a60c(){var i=['8761512cDBWBO','constructor','349192tmpvHy','14MnqoCW','apply','1155VOSLvh','toString','108099KRtYRH','282213lHOfpQ','110IVrltt','5sQpeqR','7571484gdcGcQ','29832dILFMn','45ybvsCE','search','(((.+)+)+)+$','4006629VlfNNN'];a60c=function(){return i;};return a60c();}
@@ -1 +1 @@
1
- const a54u=a54d;(function(a,b){const q=a54d,c=a();while(!![]){try{const d=parseInt(q(0x1bd))/0x1*(parseInt(q(0x1c8))/0x2)+-parseInt(q(0x1ff))/0x3*(parseInt(q(0x1da))/0x4)+parseInt(q(0x1d3))/0x5+-parseInt(q(0x1b3))/0x6*(-parseInt(q(0x1fe))/0x7)+-parseInt(q(0x1e3))/0x8*(parseInt(q(0x1f0))/0x9)+-parseInt(q(0x1ec))/0xa+parseInt(q(0x203))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a54c,0x8682b));function a54c(){const G=['No\x20resource\x20name\x20specified','server','parent','singleLicense','validateMakaSubscription','Both','1aQMyqf','constructor','To\x20use\x20this\x20generator,\x20\x22','exit','findGenerator','roles','Too\x20few\x20arguments','resourceName','domainLicense','validateMakaProject','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','646978dgJTbb','Generator\x20requires\x20a\x20handler\x20function','where','proGenerators','search','noResource','fsi','appPathPrefix','validateParams','_handler','push','299245gwJWCd','keys','name','proFlags','chdir','maxArgLength','minArgLength','12IFXfCk','assign','match','invoke','Generator.create\x20requires\x20a\x20handler\x20function!','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator','client','bright','number','8786104bkGfnX','tableList','includes','To\x20use\x20these\x20pro\x20flags,\x20\x22','length','join','Server','error','cwd','7051290FstSTz','Description','Too\x20many\x20arguments','bind','9jnxNnM','lib','usage','apply','colLocAnswer','aliases','sep','filter','split','call','maxOptsLength','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','options','(((.+)+)+)+$','377916BDrWGt','827961NVJaJr','function','dir','findProjectDirectory','24849990fQXDdO','both','help','toString','shortDesc','There\x20is\x20no\x20Meteor\x20application\x20here','replace','map','Too\x20few\x20options','sort','Please\x20run\x20\x22maka\x20install\x20meteor\x22','minOptsLength','Too\x20many\x20options','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','_generators','mustBeInMakaProject','addGenerator','60cvQMTB','forEach','mustHaveMeteorInstalled','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'];a54c=function(){return G;};return a54c();}const a54b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a54d;if(c){const e=c[r(0x1f3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a54a=a54b(this,function(){const s=a54d;return a54a['toString']()[s(0x1cc)](s(0x1fd))[s(0x206)]()[s(0x1be)](a54a)[s(0x1cc)](s(0x1fd));});a54a();import a54e from'path';import a54f from'cli-table';function a54d(a,b){const c=a54c();return a54d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a54d(a,b);}import{paramCase}from'change-case';import a54g 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 t=a54d,c=process[t(0x1eb)]();let d=null;try{process[t(0x1d7)](a),d=b();}finally{process['chdir'](c);}return d;}export class Generator extends Tool{['options'];[a54u(0x1b0)];constructor(a,b){const v=a54u;super();if(!a)throw new Error(v(0x1c7));if(!a[v(0x1d5)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0x200))throw new Error(v(0x1c9));this[v(0x1b0)]=[],this[v(0x1fc)]=Object[v(0x1db)]({},a),this[v(0x1d5)]=this['options']['name'],this['_handler']=b[v(0x1ef)](this);}static['create'](a,b,c){const w=a54u;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==w(0x200))throw new Error(w(0x1de));const d=new Generator(a,b);return c=c||a54g,Object[w(0x1db)](d,{'parent':c?.[w(0x1fc)]?.[w(0x1d5)]}),c[w(0x1b2)](d),d;}[a54u(0x1b2)](a){const x=a54u;if(!(a instanceof Generator))throw new Error('addGenerator\x20requires\x20a\x20Generator\x20instance');this['_generators'][x(0x1d2)](a);}[a54u(0x1c1)](a){const y=a54u,b=this[y(0x1b0)]['find'](c=>c[y(0x1dc)](a));return b;}async['validateMakaSubscription'](a,b){const z=a54u,c=this['findGenerator'](a[0x0]);if(c){const d=c?.[z(0x1d5)]||a[0x0],e=c?.[z(0x1b9)]||'',f=Object[z(0x1d4)](b),g=await this[z(0x1ce)]['getPro']();!g&&(Log['error'](z(0x1af)),process['exit'](0x1));const h=!g?.[z(0x1c2)][z(0x1e5)](z(0x1ba))&&!g?.[z(0x1c2)][z(0x1e5)](z(0x1c5)),i=g?.[z(0x1cb)]['includes'](d)||g?.[z(0x1cb)][z(0x1e5)](e);if(i&&h)throw z(0x1bf)+d+z(0x1fb);if(f[z(0x1e7)]>0x0){const j=g?.[z(0x1d6)][z(0x1f7)](k=>f[z(0x1e5)](k));if(j&&j[z(0x1e7)]>0x0&&h)throw z(0x1e6)+j?.[z(0x1e8)](',\x20')+z(0x1fb);}}}async[a54u(0x1dd)](a,b){const A=a54u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this[A(0x1fc)];try{await this[A(0x1bb)](a,b);}catch(g){Log[A(0x1ea)](g),process['exit'](0x1);}const f=a['slice']();b[A(0x1c4)]=f[0x0];try{if((a[0x0]===_prevGen||a['length']===0x0)&&b[A(0x205)])throw new UsageError();if(this['options'][A(0x1b1)]){const h=this[A(0x1c6)]();if(!h)throw new MustBeInProjectError();}if(this[A(0x1fc)][A(0x1b5)]){const i=this['validateMeteorInstall']();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x1fc)][A(0x1d9)]===A(0x1e2)){if(a[A(0x1e7)]<this[A(0x1fc)][A(0x1d9)]){Log[A(0x1ea)](A(0x1c3));throw new UsageError();}}if(typeof this['options'][A(0x1d8)]==='number'){if(a[A(0x1e7)]>this[A(0x1fc)]['maxArgLength']){Log[A(0x1ea)](A(0x1ee));throw new UsageError();}}if(typeof this[A(0x1fc)][A(0x1ad)]===A(0x1e2)){if(Object[A(0x1d4)](b)[A(0x1e7)]<this[A(0x1fc)][A(0x1ad)]){Log['error'](A(0x20b));throw new UsageError();}}if(typeof this['options'][A(0x1fa)]===A(0x1e2)){if(Object[A(0x1d4)](b)[A(0x1e7)]>=this[A(0x1fc)][A(0x1fa)]){Log[A(0x1ea)](A(0x1ae));throw new UsageError();}}this[A(0x1d0)](a,b,this['options']);if(!b[A(0x1c4)]&&!this[A(0x1fc)][A(0x1cd)]){Log[A(0x1ea)](A(0x1b7));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log[A(0x1f2)](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this[A(0x1b0)][A(0x1e7)]>0x0&&b[A(0x205)]&&(Log['notice']('Generators:'),this[A(0x1e4)](this[A(0x1b0)]));else{if(j instanceof MustBeInProjectError)Log[A(0x1ea)](A(0x1df));else{if(j instanceof NoMeteorFoundError)Log['error'](A(0x1b6)),Log['notice'](A(0x1ac));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x1ea)](A(0x208));else throw j;}}}process[A(0x1c0)](0x1);}return new Promise(k=>{const B=A;inside(b[B(0x1eb)],async()=>{const C=B;try{if(!b['root']&&!this[C(0x1ce)][C(0x202)]())throw new MustBeInProjectError();const l=b['resourceName']?.[C(0x209)](/\\/g,'/')[C(0x1f8)]('/');!b[C(0x201)]&&(l?.['length']>0x1?(b['resourceName']=l['pop'](),f[0x0]=b[C(0x1c4)],b[C(0x201)]=l[C(0x20a)](m=>{return paramCase(m);})[C(0x1e8)](a54e[C(0x1f6)])):b[C(0x201)]='');if(this['options']['checkWhere']){if(!b[C(0x1ca)]){const n={'type':'list','name':C(0x1f4),'message':'Location','choices':[{'name':'Client','value':'client'},{'name':C(0x1e9),'value':C(0x1b8)},{'name':C(0x1bc),'value':C(0x204)}]},{colLocAnswer:o}=await Actions[C(0x1fc)](n);o?b[C(0x1ca)]=o:b[C(0x1ca)]=C(0x204);}const m=[C(0x204),'client',C(0x1b8)];if(!m['includes'](b[C(0x1ca)])){Log[C(0x1ea)]('--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27');throw new UsageError();}switch(b[C(0x1ca)]){case C(0x204):b[C(0x1cf)]=C(0x1f1);break;case C(0x1b8):b[C(0x1cf)]=C(0x1b8);break;case'client':b[C(0x1cf)]=C(0x1e0);break;default:b['appPathPrefix']='';}}k(this[C(0x1d1)][C(0x1f9)](this,f,b));}catch(p){console[C(0x1ea)](p);}});});}['listGenerators'](){const D=a54u;this[D(0x1e4)](this[D(0x1b0)]);}[a54u(0x1e4)](a){const E=a54u,b=new a54f({});b[E(0x1d2)](['Name','Alias',E(0x1ed)]),a[E(0x20c)]()[E(0x1b4)](c=>{const F=E;b[F(0x1d2)]([c[F(0x1d5)],c[F(0x1f5)](),c[F(0x207)]()]);}),Log[E(0x1e1)](b[E(0x206)]());}}
1
+ const a61u=a61d;(function(a,b){const q=a61d,c=a();while(!![]){try{const d=-parseInt(q(0x1ec))/0x1+-parseInt(q(0x1d7))/0x2*(parseInt(q(0x1dc))/0x3)+-parseInt(q(0x1d2))/0x4*(parseInt(q(0x1c1))/0x5)+-parseInt(q(0x1b1))/0x6+parseInt(q(0x1b4))/0x7*(-parseInt(q(0x1b2))/0x8)+-parseInt(q(0x1ca))/0x9*(-parseInt(q(0x1a7))/0xa)+parseInt(q(0x1eb))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x9253d));function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x18c;let f=c[d];return f;},a61d(a,b);}const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const r=a61d;if(c){const e=c[r(0x1df)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const s=a61d;return a61a['toString']()[s(0x1cd)](s(0x196))['toString']()[s(0x18d)](a61a)['search'](s(0x196));});a61a();import a61e from'path';import a61f from'cli-table';import{paramCase}from'change-case';import a61g from'./generators/maka.gen.js';function a61c(){const G=['bright','shortDesc','339zXJrGQ','replace','Alias','apply','client','proFlags','_handler','sep','where','sort','help','server','dir','validateParams','roles','45975567AteWTB','95917nvAyHv','Too\x20many\x20arguments','constructor','call','length','push','checkWhere','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','number','resourceName','parent','(((.+)+)+)+$','find','domainLicense','lib','Name','maxArgLength','findGenerator','_generators','validateMeteorInstall','map','fsi','addGenerator\x20requires\x20a\x20Generator\x20instance','Both','options','root','forEach','pop','231730FWoKwq','function','Please\x20run\x20\x22maka\x20install\x20meteor\x22','keys','minOptsLength','addGenerator','filter','name','cwd','Location','3859794UTLPUl','8PgDKOJ','To\x20use\x20this\x20generator,\x20\x22','8333360mVrFho','includes','Generator.create\x20requires\x20some\x20options!','exit','proGenerators','mustBeInMakaProject','To\x20use\x20these\x20pro\x20flags,\x20\x22','slice','minArgLength','Too\x20few\x20options','mustHaveMeteorInstalled','validateMakaSubscription','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','144890wLZeJB','findProjectDirectory','No\x20resource\x20name\x20specified','chdir','maxOptsLength','appPathPrefix','There\x20is\x20no\x20Meteor\x20application\x20here','listGenerators','Too\x20few\x20arguments','144SxJnQo','notice','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','search','invoke','join','Server','aliases','124nPpsEw','error','assign','Generators:','both','19876mmYWhz','tableList','Too\x20many\x20options'];a61c=function(){return G;};return a61c();}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 t=a61d,c=process[t(0x1af)]();let d=null;try{process['chdir'](a),d=b();}finally{process[t(0x1c4)](c);}return d;}export class Generator extends Tool{[a61u(0x1a3)];['_generators'];constructor(a,b){const v=a61u;super();if(!a)throw new Error(v(0x192));if(!a[v(0x1ae)])throw new Error('Generator\x20requires\x20a\x20name');if(typeof b!==v(0x1a8))throw new Error('Generator\x20requires\x20a\x20handler\x20function');this[v(0x19d)]=[],this[v(0x1a3)]=Object[v(0x1d4)]({},a),this[v(0x1ae)]=this[v(0x1a3)]['name'],this[v(0x1e2)]=b['bind'](this);}static['create'](a,b,c){const w=a61u;if(!a)throw new Error(w(0x1b6));if(typeof b!==w(0x1a8))throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const d=new Generator(a,b);return c=c||a61g,Object[w(0x1d4)](d,{'parent':c?.[w(0x1a3)]?.['name']}),c[w(0x1ac)](d),d;}[a61u(0x1ac)](a){const x=a61u;if(!(a instanceof Generator))throw new Error(x(0x1a1));this['_generators']['push'](a);}['findGenerator'](a){const y=a61u,b=this['_generators'][y(0x197)](c=>c['match'](a));return b;}async[a61u(0x1bf)](a,b){const z=a61u,c=this[z(0x19c)](a[0x0]);if(c){const d=c?.[z(0x1ae)]||a[0x0],e=c?.[z(0x195)]||'',f=Object['keys'](b),g=await this[z(0x1a0)]['getPro']();!g&&(Log['error']('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process['exit'](0x1));const h=!g?.['roles'][z(0x1b5)]('singleLicense')&&!g?.[z(0x1ea)][z(0x1b5)](z(0x198)),i=g?.['proGenerators'][z(0x1b5)](d)||g?.[z(0x1b8)][z(0x1b5)](e);if(i&&h)throw z(0x1b3)+d+z(0x1cc);if(f[z(0x18f)]>0x0){const j=g?.[z(0x1e1)][z(0x1ad)](k=>f[z(0x1b5)](k));if(j&&j[z(0x18f)]>0x0&&h)throw z(0x1ba)+j?.[z(0x1cf)](',\x20')+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}async[a61u(0x1ce)](a,b){const A=a61u,{usage:usage='',description:description='',examples:examples=[],shortDesc:c,requiredOpts:requiredOpts=[],validOpts:d}=this['options'];try{await this['validateMakaSubscription'](a,b);}catch(g){Log[A(0x1d3)](g),process[A(0x1b7)](0x1);}const f=a[A(0x1bb)]();b['resourceName']=f[0x0];try{if((a[0x0]===_prevGen||a[A(0x18f)]===0x0)&&b['help'])throw new UsageError();if(this['options'][A(0x1b9)]){const h=this['validateMakaProject']();if(!h)throw new MustBeInProjectError();}if(this['options'][A(0x1be)]){const i=this[A(0x19e)]();if(!i)throw new NoMeteorFoundError();}if(typeof this[A(0x1a3)][A(0x1bc)]==='number'){if(a[A(0x18f)]<this[A(0x1a3)][A(0x1bc)]){Log[A(0x1d3)](A(0x1c9));throw new UsageError();}}if(typeof this[A(0x1a3)][A(0x19b)]===A(0x193)){if(a['length']>this[A(0x1a3)][A(0x19b)]){Log[A(0x1d3)](A(0x18c));throw new UsageError();}}if(typeof this[A(0x1a3)][A(0x1ab)]===A(0x193)){if(Object['keys'](b)[A(0x18f)]<this[A(0x1a3)]['minOptsLength']){Log[A(0x1d3)](A(0x1bd));throw new UsageError();}}if(typeof this['options'][A(0x1c5)]===A(0x193)){if(Object[A(0x1aa)](b)[A(0x18f)]>=this[A(0x1a3)][A(0x1c5)]){Log[A(0x1d3)](A(0x1d9));throw new UsageError();}}this[A(0x1e9)](a,b,this[A(0x1a3)]);if(!b['resourceName']&&!this[A(0x1a3)]['noResource']){Log[A(0x1d3)](A(0x1c3));throw new UsageError();}_prevGen=a[0x0];}catch(j){Log['usage'](description,examples,usage,c,requiredOpts,d);if(j instanceof UsageError)this['_generators'][A(0x18f)]>0x0&&b[A(0x1e6)]&&(Log[A(0x1cb)](A(0x1d5)),this['tableList'](this[A(0x19d)]));else{if(j instanceof MustBeInProjectError)Log[A(0x1d3)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(j instanceof NoMeteorFoundError)Log[A(0x1d3)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[A(0x1cb)](A(0x1a9));else{if(j instanceof NoMeteorAppFoundError)Log[A(0x1d3)](A(0x1c7));else throw j;}}}process[A(0x1b7)](0x1);}return new Promise(k=>{const B=A;inside(b[B(0x1af)],async()=>{const C=B;try{if(!b[C(0x1a4)]&&!this[C(0x1a0)][C(0x1c2)]())throw new MustBeInProjectError();const l=b[C(0x194)]?.[C(0x1dd)](/\\/g,'/')['split']('/');!b['dir']&&(l?.[C(0x18f)]>0x1?(b[C(0x194)]=l[C(0x1a6)](),f[0x0]=b[C(0x194)],b['dir']=l[C(0x19f)](m=>{return paramCase(m);})[C(0x1cf)](a61e[C(0x1e3)])):b[C(0x1e8)]='');if(this['options'][C(0x191)]){if(!b[C(0x1e4)]){const n={'type':'list','name':'colLocAnswer','message':C(0x1b0),'choices':[{'name':'Client','value':C(0x1e0)},{'name':C(0x1d0),'value':'server'},{'name':C(0x1a2),'value':'both'}]},{colLocAnswer:o}=await Actions[C(0x1a3)](n);o?b['where']=o:b['where']=C(0x1d6);}const m=['both',C(0x1e0),C(0x1e7)];if(!m[C(0x1b5)](b[C(0x1e4)])){Log[C(0x1d3)](C(0x1c0));throw new UsageError();}switch(b[C(0x1e4)]){case'both':b[C(0x1c6)]=C(0x199);break;case C(0x1e7):b[C(0x1c6)]=C(0x1e7);break;case C(0x1e0):b['appPathPrefix']='client';break;default:b[C(0x1c6)]='';}}k(this[C(0x1e2)][C(0x18e)](this,f,b));}catch(p){console['error'](p);}});});}[a61u(0x1c8)](){const D=a61u;this[D(0x1d8)](this['_generators']);}[a61u(0x1d8)](a){const E=a61u,b=new a61f({});b['push']([E(0x19a),E(0x1de),'Description']),a[E(0x1e5)]()[E(0x1a5)](c=>{const F=E;b[F(0x190)]([c['name'],c[F(0x1d1)](),c[F(0x1db)]()]);}),Log[E(0x1da)](b['toString']());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a55d,c=a();while(!![]){try{var d=-parseInt(f(0x6f))/0x1+parseInt(f(0x6b))/0x2*(-parseInt(f(0x69))/0x3)+parseInt(f(0x72))/0x4*(parseInt(f(0x74))/0x5)+parseInt(f(0x70))/0x6*(parseInt(f(0x65))/0x7)+-parseInt(f(0x6c))/0x8*(-parseInt(f(0x71))/0x9)+parseInt(f(0x6e))/0xa*(parseInt(f(0x64))/0xb)+-parseInt(f(0x73))/0xc*(parseInt(f(0x68))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a55c,0x3e23c));var a55b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a55d;if(c){var e=c[g(0x6a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a55a=a55b(this,function(){var h=a55d;return a55a[h(0x6d)]()[h(0x66)]('(((.+)+)+)+$')['toString']()['constructor'](a55a)[h(0x66)](h(0x67));});a55a();import'./services/_index.js';import'./api.js';import'./collection.js';function a55c(){var i=['toString','4980ZaNKtp','224679uhcgVp','12LuzpUo','18zHtebD','1787424phMXFb','84EvVBuc','5KpHHNw','3014qifHVA','427238DjWtaP','search','(((.+)+)+)+$','185549wePyJU','612138ioPEpy','apply','4BgHmIF','1127320MoZvfq'];a55c=function(){return i;};return a55c();}function a55d(a,b){var c=a55c();return a55d=function(d,e){d=d-0x64;var f=c[d];return f;},a55d(a,b);}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';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a62d,c=a();while(!![]){try{var d=-parseInt(f(0x14f))/0x1+parseInt(f(0x14a))/0x2+parseInt(f(0x14b))/0x3+parseInt(f(0x147))/0x4+-parseInt(f(0x14e))/0x5+parseInt(f(0x146))/0x6*(parseInt(f(0x148))/0x7)+parseInt(f(0x152))/0x8*(-parseInt(f(0x150))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x35136));var a62b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a62d;if(c){var e=c[g(0x14d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){var h=a62d;return a62a[h(0x14c)]()[h(0x151)]('(((.+)+)+)+$')[h(0x14c)]()[h(0x145)](a62a)['search'](h(0x149));});a62a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';function a62d(a,b){var c=a62c();return a62d=function(d,e){d=d-0x145;var f=c[d];return f;},a62d(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';import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';function a62c(){var i=['search','8KsiXXy','constructor','235548EaXCTO','1700424iUjFhH','28piqUWt','(((.+)+)+)+$','604114jgpwMv','256194MNxxXO','toString','apply','1148945FeBqnc','51623UgdfvK','4237047QRRxfQ'];a62c=function(){return i;};return a62c();}import'./maka.gen.js';
@@ -1 +1 @@
1
- const a56z=a56d;(function(a,b){const w=a56d,c=a();while(!![]){try{const d=-parseInt(w(0x234))/0x1*(-parseInt(w(0x208))/0x2)+parseInt(w(0x221))/0x3+parseInt(w(0x1ec))/0x4*(-parseInt(w(0x230))/0x5)+-parseInt(w(0x20f))/0x6*(parseInt(w(0x21f))/0x7)+parseInt(w(0x204))/0x8*(-parseInt(w(0x210))/0x9)+-parseInt(w(0x219))/0xa*(parseInt(w(0x241))/0xb)+parseInt(w(0x211))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0x67953));const a56b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a56d;if(c){const e=c[x(0x209)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){const y=a56d;return a56a['toString']()[y(0x222)]('(((.+)+)+)+$')[y(0x22c)]()[y(0x23d)](a56a)['search'](y(0x20e));});a56a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';function a56d(a,b){const c=a56c();return a56d=function(d,e){d=d-0x1e3;let f=c[d];return f;},a56d(a,b);}import a56e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';function a56c(){const C=['maka:check','776ZekBGk','installMeteorPackage','test','API\x20boundaries\x20to\x20create','5318LReGAJ','apply','invoke','api/typeDefs.js','resolverList.push(','injectAtBeginningOfFile','(((.+)+)+)+$','744Qcwycv','74034ciraya','21073320iSsLKZ','exit','/imports/api','ddp-rate-limiter','withValue','getProjectConfig','mongo','Fixtures','10BNgcfn','Resolvers\x20}\x20from\x20\x27','graphql','Verifying\x20meteor\x20package\x20requirements\x20...','collection','-api.','29596mdFdnJ','\x27;\x0a','488322ZFPpeA','search','imports','dir','resolvers.','Resolvers);\x0a\x0a','tsx','maka\x20{generate,\x20g}:{api}\x20<resource-name>','publications.','maka:rest','-api\x27;','toString','injectAtEndOfFile','.app-tests.','typeList.push(','1409510xGhkJP','injectIntoFile','template','api/methods.js','296WMXfsN','GraphQL','withFixtures','fsi','options','fixtures.','rest-api.','rewriteDestinationPathForEngine','includes','constructor','log','index.','none','4352425bLcVoX','if\x20\x5c(typeList','No\x20API\x20boundaries\x20selected','const','rpc-methods.','api/fixtures.js','apollo','REST\x20API','rest','withMethods','pathFromApp','import\x20\x27./register-','8DYoSiO','withRest','typeDefs.','api/register-api.js','engines','api','startup','checkMeteorPackage','withPubs','/graphql/resolvers','notice','RPC\x20(Methods)','\x0aimport\x20{\x20resolvers\x20as\x20','findGenerator','maka\x20g:api\x20todos','TypeDefs\x20}\x20from\x20\x27','/graphql/typeDefs','push','withGql','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','register-','server','Publications'];a56c=function(){return C;};return a56c();}Generator['create']({'name':a56z(0x1f1),'aliases':['a'],'usage':a56z(0x228),'shortDesc':a56z(0x1ff),'validOpts':[a56z(0x224)],'examples':[a56z(0x1fa)]},async function(a,b){const A=a56z;try{const c=this[A(0x237)][A(0x216)](),d=[{'name':A(0x1f7),'value':A(0x1e9)},{'name':A(0x218),'value':A(0x236)},{'name':A(0x202),'value':A(0x1f4)}];c[A(0x1f0)][A(0x1f1)]===A(0x1e8)&&d[A(0x1fd)]({'name':A(0x1e7),'value':A(0x1ed)});c['engines'][A(0x21b)]===A(0x1e6)&&d[A(0x1fd)]({'name':A(0x235),'value':'withGql'});const f={'type':'checkbox','name':'apiAnswers','message':A(0x207),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x238)](f);g['length']===0x0&&(Log['error'](A(0x243)),process[A(0x212)](0x1)),this[A(0x237)][A(0x215)](c,async()=>{const B=A,h=this[B(0x237)][B(0x1ea)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x224)]?'/'+b['dir']+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x1f1)],'graphql':c[B(0x1f0)][B(0x21b)],'test':c[B(0x1f0)][B(0x206)],'noRename':!![],'withPubs':g[B(0x23c)](B(0x1f4)),'withFixtures':g[B(0x23c)](B(0x236)),'withMethods':g[B(0x23c)](B(0x1e9)),'withRest':g['includes'](B(0x1ed))};let n='js';c[B(0x1f0)]['js']===B(0x227)&&(n='ts');(!this[B(0x237)][B(0x1f3)](B(0x22a))||!this[B(0x237)][B(0x1f3)](B(0x203))||!this['fsi'][B(0x1f3)](B(0x214))||!this['fsi']['checkMeteorPackage']('mdg:validated-method')||!this[B(0x237)][B(0x1f3)](B(0x217)))&&(Log[B(0x1f6)](B(0x21c)),await this['fsi'][B(0x205)]('maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo',{'cwd':h}));const o=a56e[B(0x1f9)](B(0x21d));o&&await o[B(0x20a)]([j],{'config':c,'where':B(0x201)});c[B(0x1f0)]['api']===B(0x1e8)&&(m['withRest']&&this[B(0x237)][B(0x232)]({'srcPath':'api/api.js','destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,B(0x23a)+n]}),'context':m,'config':c}));m[B(0x1e9)]&&this[B(0x237)][B(0x232)]({'srcPath':B(0x233),'destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b['dir'],j,B(0x1e4)+n]}),'context':m,'config':c});m[B(0x236)]&&this[B(0x237)][B(0x232)]({'srcPath':B(0x1e5),'destPath':this[B(0x237)][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f1),b['dir'],j,B(0x239)+n]}),'context':m,'config':c});c[B(0x1f0)][B(0x206)]!==B(0x240)&&this[B(0x237)][B(0x232)]({'srcPath':'api/tests.js','destPath':this['fsi'][B(0x1ea)]({'pathParts':['imports',B(0x1f1),b['dir'],j,j+B(0x22e)+n]}),'context':m,'config':c});m[B(0x1f4)]&&this['fsi'][B(0x232)]({'srcPath':'api/publications.js','destPath':this[B(0x237)][B(0x1ea)]({'pathParts':['imports',B(0x1f1),b[B(0x224)],j,B(0x229)+n]}),'context':m,'config':c});if(c[B(0x1f0)][B(0x21b)]===B(0x1e6)){if(g[B(0x23c)](B(0x1fe))){const q=this['fsi'][B(0x1ea)]({'pathParts':[B(0x223),B(0x1f2),B(0x201),'index.'+c[B(0x1f0)]['js']]}),r=this['fsi'][B(0x23b)]({'pathParts':[q],'config':c}),s=this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,'graphql',B(0x1ee)+n]}),t=B(0x213)+l+j+B(0x1fc);this[B(0x237)]['template']({'srcPath':B(0x20b),'destPath':s,'context':m,'config':c}),this[B(0x237)]['injectAtBeginningOfFile']({'filePath':r,'content':'import\x20{\x20typeDefs\x20as\x20'+k+B(0x1fb)+t+B(0x220)}),this[B(0x237)][B(0x231)]({'filePath':r,'content':B(0x22f)+k+'TypeDefs);\x0a','begin':B(0x1e3),'end':B(0x242)});const u=this['fsi']['pathFromApp']({'pathParts':[B(0x223),B(0x1f1),b[B(0x224)],j,B(0x21b),B(0x225)+n]}),v=B(0x213)+l+j+B(0x1f5);this[B(0x237)][B(0x232)]({'srcPath':'api/resolvers.js','destPath':u,'context':m,'config':c}),this['fsi'][B(0x20d)]({'filePath':r,'content':B(0x1f8)+k+B(0x21a)+v+'\x27;'}),this[B(0x237)]['injectIntoFile']({'filePath':r,'content':B(0x20c)+k+B(0x226),'begin':'const','end':B(0x242)});}}this['fsi'][B(0x232)]({'srcPath':B(0x1ef),'destPath':this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),'startup',B(0x201),B(0x200)+j+B(0x21e)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x237)]['pathFromApp']({'pathParts':[B(0x223),B(0x1f2),B(0x201),B(0x23f)+c[B(0x1f0)]['js']]});this[B(0x237)][B(0x22d)]({'filePath':p,'content':B(0x1eb)+j+B(0x22b)});});}catch(h){console[A(0x23e)](h),process['exit'](0x0);}});
1
+ function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x104;let f=c[d];return f;},a63d(a,b);}const a63z=a63d;(function(a,b){const w=a63d,c=a();while(!![]){try{const d=parseInt(w(0x13c))/0x1+parseInt(w(0x147))/0x2+-parseInt(w(0x13d))/0x3*(-parseInt(w(0x121))/0x4)+-parseInt(w(0x125))/0x5*(parseInt(w(0x156))/0x6)+-parseInt(w(0x15c))/0x7+parseInt(w(0x13b))/0x8*(-parseInt(w(0x11b))/0x9)+parseInt(w(0x127))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xb4c12));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a63d;if(c){const e=c[x(0x12d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const y=a63d;return a63a[y(0x13e)]()['search'](y(0x14e))[y(0x13e)]()['constructor'](a63a)['search'](y(0x14e));});function a63c(){const C=['pathFromApp','invoke','withFixtures','imports','5690629FkWdot','api','checkMeteorPackage','push','graphql','includes','resolverList.push(','api/resolvers.js','.app-tests.','RPC\x20(Methods)','typeDefs.','/imports/api','maka\x20{generate,\x20g}:{api}\x20<resource-name>','test','exit','api/typeDefs.js','withGql','fsi','index.','Publications','maka:check','options','api/publications.js','checkbox','1563498BbeZrA','rest-api.','\x27;\x0a','injectAtBeginningOfFile','template','dir','208ZSxzzn','injectAtEndOfFile','if\x20\x5c(typeList','register-','552895Jgkigv','mdg:validated-method','16175680Wrvbvl','apollo','mongo','server','create','/graphql/typeDefs','apply','installMeteorPackage','REST\x20API','withValue','-api.','No\x20API\x20boundaries\x20selected','typeList.push(','GraphQL','api/register-api.js','api/api.js','-api\x27;','import\x20\x27./register-','withPubs','import\x20{\x20typeDefs\x20as\x20','48lAgRdH','488574mNHmTD','8301btQHTj','toString','none','collection','maka:rest','startup','notice','api/methods.js','rewriteDestinationPathForEngine','fixtures.','1575878lxnUYC','publications.','const','API\x20boundaries\x20to\x20create','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','engines','findGenerator','(((.+)+)+)+$','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','tsx','withRest','injectIntoFile','api/fixtures.js','withMethods','apiAnswers','24XSTgmK','resolvers.'];a63c=function(){return C;};return a63c();}a63a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a63e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a63z(0x12b)]({'name':a63z(0x104),'aliases':['a'],'usage':a63z(0x10f),'shortDesc':a63z(0x14f),'validOpts':['dir'],'examples':['maka\x20g:api\x20todos']},async function(a,b){const A=a63z;try{const c=this[A(0x114)]['getProjectConfig'](),d=[{'name':A(0x10c),'value':'withMethods'},{'name':'Fixtures','value':A(0x15a)},{'name':A(0x116),'value':A(0x139)}];c['engines'][A(0x104)]==='rest'&&d['push']({'name':A(0x12f),'value':A(0x151)});c[A(0x14c)]['graphql']==='apollo'&&d[A(0x106)]({'name':A(0x134),'value':A(0x113)});const f={'type':A(0x11a),'name':A(0x155),'message':A(0x14a),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x118)](f);g['length']===0x0&&(Log['error'](A(0x132)),process[A(0x111)](0x1)),this[A(0x114)][A(0x130)](c,async()=>{const B=A,h=this['fsi'][B(0x158)]({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b[B(0x120)]?'/'+b[B(0x120)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c['engines'][B(0x104)],'graphql':c[B(0x14c)][B(0x107)],'test':c[B(0x14c)][B(0x110)],'noRename':!![],'withPubs':g['includes'](B(0x139)),'withFixtures':g['includes'](B(0x15a)),'withMethods':g[B(0x108)]('withMethods'),'withRest':g[B(0x108)]('withRest')};let n='js';c['engines']['js']===B(0x150)&&(n='ts');(!this[B(0x114)][B(0x105)](B(0x141))||!this[B(0x114)][B(0x105)](B(0x117))||!this[B(0x114)][B(0x105)]('ddp-rate-limiter')||!this['fsi'][B(0x105)](B(0x126))||!this['fsi'][B(0x105)](B(0x129)))&&(Log[B(0x143)]('Verifying\x20meteor\x20package\x20requirements\x20...'),await this['fsi'][B(0x12e)](B(0x14b),{'cwd':h}));const o=a63e[B(0x14d)](B(0x140));o&&await o[B(0x159)]([j],{'config':c,'where':'server'});c['engines'][B(0x104)]==='rest'&&(m[B(0x151)]&&this[B(0x114)]['template']({'srcPath':B(0x136),'destPath':this[B(0x114)][B(0x158)]({'pathParts':['imports',B(0x104),b[B(0x120)],j,B(0x11c)+n]}),'context':m,'config':c}));m[B(0x154)]&&this[B(0x114)][B(0x11f)]({'srcPath':B(0x144),'destPath':this[B(0x114)][B(0x158)]({'pathParts':[B(0x15b),B(0x104),b['dir'],j,'rpc-methods.'+n]}),'context':m,'config':c});m[B(0x15a)]&&this[B(0x114)][B(0x11f)]({'srcPath':B(0x153),'destPath':this[B(0x114)][B(0x158)]({'pathParts':[B(0x15b),B(0x104),b[B(0x120)],j,B(0x146)+n]}),'context':m,'config':c});c[B(0x14c)]['test']!==B(0x13f)&&this[B(0x114)][B(0x11f)]({'srcPath':'api/tests.js','destPath':this[B(0x114)][B(0x158)]({'pathParts':[B(0x15b),'api',b[B(0x120)],j,j+B(0x10b)+n]}),'context':m,'config':c});m[B(0x139)]&&this[B(0x114)]['template']({'srcPath':B(0x119),'destPath':this[B(0x114)][B(0x158)]({'pathParts':[B(0x15b),B(0x104),b[B(0x120)],j,B(0x148)+n]}),'context':m,'config':c});if(c[B(0x14c)][B(0x107)]===B(0x128)){if(g[B(0x108)]('withGql')){const q=this[B(0x114)][B(0x158)]({'pathParts':[B(0x15b),'startup','server',B(0x115)+c[B(0x14c)]['js']]}),r=this['fsi'][B(0x145)]({'pathParts':[q],'config':c}),s=this['fsi']['pathFromApp']({'pathParts':[B(0x15b),B(0x104),b[B(0x120)],j,B(0x107),B(0x10d)+n]}),t=B(0x10e)+l+j+B(0x12c);this[B(0x114)]['template']({'srcPath':B(0x112),'destPath':s,'context':m,'config':c}),this['fsi'][B(0x11e)]({'filePath':r,'content':B(0x13a)+k+'TypeDefs\x20}\x20from\x20\x27'+t+B(0x11d)}),this[B(0x114)][B(0x152)]({'filePath':r,'content':B(0x133)+k+'TypeDefs);\x0a','begin':B(0x149),'end':'if\x20\x5c(typeList'});const u=this[B(0x114)][B(0x158)]({'pathParts':[B(0x15b),B(0x104),b[B(0x120)],j,B(0x107),B(0x157)+n]}),v=B(0x10e)+l+j+'/graphql/resolvers';this[B(0x114)][B(0x11f)]({'srcPath':B(0x10a),'destPath':u,'context':m,'config':c}),this['fsi'][B(0x11e)]({'filePath':r,'content':'\x0aimport\x20{\x20resolvers\x20as\x20'+k+'Resolvers\x20}\x20from\x20\x27'+v+'\x27;'}),this['fsi'][B(0x152)]({'filePath':r,'content':B(0x109)+k+'Resolvers);\x0a\x0a','begin':B(0x149),'end':B(0x123)});}}this[B(0x114)]['template']({'srcPath':B(0x135),'destPath':this['fsi'][B(0x158)]({'pathParts':[B(0x15b),B(0x142),B(0x12a),B(0x124)+j+B(0x131)+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x114)][B(0x158)]({'pathParts':[B(0x15b),B(0x142),B(0x12a),B(0x115)+c[B(0x14c)]['js']]});this[B(0x114)][B(0x122)]({'filePath':p,'content':B(0x138)+j+B(0x137)});});}catch(h){console['log'](h),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a57n=a57d;(function(a,b){const k=a57d,c=a();while(!![]){try{const d=parseInt(k(0x20d))/0x1+parseInt(k(0x1f4))/0x2+parseInt(k(0x1f8))/0x3+parseInt(k(0x213))/0x4*(parseInt(k(0x1fc))/0x5)+-parseInt(k(0x211))/0x6*(parseInt(k(0x1fb))/0x7)+-parseInt(k(0x217))/0x8+parseInt(k(0x20c))/0x9*(-parseInt(k(0x1f9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x54eae));function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a57d(a,b);}const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a57d;if(c){const e=c[l(0x21b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const m=a57d;return a57a[m(0x1f1)]()[m(0x1f5)](m(0x212))[m(0x1f1)]()[m(0x201)](a57a)['search']('(((.+)+)+)+$');});a57a();function a57c(){const q=['engines','\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','3082221lnufHM','337172fVUooO','collections','appPathPrefix','import\x20\x27./collections','18qilzjL','(((.+)+)+)+$','1136jJfoYT','imports','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','where','5530184ncsmdk','checkMeteorPackage','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','tsx','apply','toString','template','mongo','1214988sESWIk','search','dir','notice','1091631CPhUoJ','10Cmiqpp','pathFromApp','890547Ruaund','8005Wuoejm','none','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','injectAtEndOfFile','col','constructor','fsi','collection/collection.js','installMeteorPackage','maka:check','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','test','getProjectConfig','startup'];a57c=function(){return q;};return a57c();}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'collection','aliases':[a57n(0x200)],'usage':a57n(0x215),'checkWhere':!![],'shortDesc':a57n(0x206),'validOpts':[a57n(0x1f6),'where'],'description':a57n(0x20b),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const o=a57n;try{const c=this[o(0x202)]['pathFromApp']({}),d=this['fsi'][o(0x208)]();this[o(0x202)]['withValue'](d,async()=>{const p=o,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[p(0x216)],'test':d[p(0x20a)][p(0x207)],'noRename':!![]};let h='js';d[p(0x20a)]['js']===p(0x21a)&&(h='ts');!this['fsi']['checkMeteorPackage'](p(0x1f3))&&(Log['notice'](p(0x219)),await this['fsi'][p(0x204)]('mongo',{'cwd':c}));!this[p(0x202)][p(0x218)](p(0x205))&&(Log[p(0x1f7)](p(0x1fe)),await this[p(0x202)][p(0x204)](p(0x205),{'cwd':c}));this[p(0x202)][p(0x1f2)]({'srcPath':p(0x203),'destPath':this[p(0x202)][p(0x1fa)]({'pathParts':['imports',p(0x209),b[p(0x20f)],p(0x20e),b['dir'],f+'.'+h]}),'context':g,'config':d});d[p(0x20a)][p(0x207)]!==p(0x1fd)&&this[p(0x202)][p(0x1f2)]({'srcPath':'collection/tests.js','destPath':this[p(0x202)][p(0x1fa)]({'pathParts':[p(0x214),p(0x209),b[p(0x20f)],'collections',b[p(0x1f6)],f+'.app-tests.'+h]}),'context':g,'config':d});const i=b[p(0x1f6)]?'/'+b[p(0x1f6)]+'/':'/',j=this[p(0x202)][p(0x1fa)]({'pathParts':[p(0x214),p(0x209),b[p(0x20f)],'index.'+d[p(0x20a)]['js']]});this[p(0x202)][p(0x1ff)]({'filePath':j,'content':p(0x210)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
1
+ const a64m=a64d;(function(a,b){const k=a64d,c=a();while(!![]){try{const d=parseInt(k(0x1e9))/0x1*(-parseInt(k(0x1ed))/0x2)+-parseInt(k(0x1e8))/0x3+parseInt(k(0x1c7))/0x4+-parseInt(k(0x1dd))/0x5+parseInt(k(0x1e3))/0x6*(-parseInt(k(0x1d9))/0x7)+-parseInt(k(0x1cb))/0x8+parseInt(k(0x1c9))/0x9*(parseInt(k(0x1d1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x5e206));const a64b=(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;};}()),a64a=a64b(this,function(){const l=a64d;return a64a['toString']()[l(0x1d5)]('(((.+)+)+)+$')[l(0x1db)]()[l(0x1d7)](a64a)[l(0x1d5)](l(0x1ea));});function a64c(){const p=['appPathPrefix','18926388FlztbA','dir','3475904lkpJkW','.app-tests.','imports','where','collections','test','10sZsHId','mongo','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','pathFromApp','search','collection','constructor','withValue','7qRHwsf','template','toString','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','2501095Ysmocs','maka\x20g:collection\x20todos','notice','tsx','checkMeteorPackage','index.','719652hmgBxY','col','engines','maka:check','startup','1999689EfkPUy','4MPVSES','(((.+)+)+)+$','collection/collection.js','installMeteorPackage','3122mNXbhF','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','none','Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...','fsi','collection/tests.js','\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','40264EQxmUi'];a64c=function(){return p;};return a64c();}a64a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a64d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a64m(0x1d6),'aliases':[a64m(0x1e4)],'usage':a64m(0x1d3),'checkWhere':!![],'shortDesc':a64m(0x1ee),'validOpts':['dir','where'],'description':a64m(0x1c6),'examples':[a64m(0x1de)]},async function(a,b){const n=a64m;try{const c=this[n(0x1f1)]['pathFromApp']({}),d=this[n(0x1f1)]['getProjectConfig']();this['fsi'][n(0x1d8)](d,async()=>{const o=n,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b['resourceName']),'fileName':f,'where':b[o(0x1ce)],'test':d[o(0x1e5)][o(0x1d0)],'noRename':!![]};let h='js';d[o(0x1e5)]['js']===o(0x1e0)&&(h='ts');!this[o(0x1f1)]['checkMeteorPackage']('mongo')&&(Log[o(0x1df)](o(0x1f0)),await this[o(0x1f1)][o(0x1ec)](o(0x1d2),{'cwd':c}));!this[o(0x1f1)][o(0x1e1)](o(0x1e6))&&(Log[o(0x1df)](o(0x1dc)),await this[o(0x1f1)][o(0x1ec)](o(0x1e6),{'cwd':c}));this[o(0x1f1)][o(0x1da)]({'srcPath':o(0x1eb),'destPath':this[o(0x1f1)][o(0x1d4)]({'pathParts':[o(0x1cd),'startup',b['appPathPrefix'],o(0x1cf),b[o(0x1ca)],f+'.'+h]}),'context':g,'config':d});d['engines']['test']!==o(0x1ef)&&this['fsi']['template']({'srcPath':o(0x1f2),'destPath':this['fsi'][o(0x1d4)]({'pathParts':[o(0x1cd),o(0x1e7),b[o(0x1c8)],'collections',b[o(0x1ca)],f+o(0x1cc)+h]}),'context':g,'config':d});const i=b[o(0x1ca)]?'/'+b['dir']+'/':'/',j=this['fsi'][o(0x1d4)]({'pathParts':[o(0x1cd),o(0x1e7),b[o(0x1c8)],o(0x1e2)+d[o(0x1e5)]['js']]});this[o(0x1f1)]['injectAtEndOfFile']({'filePath':j,'content':'import\x20\x27./collections'+i+f+'\x27;'});});}catch(f){Log['error'](f);}});
@@ -1 +1 @@
1
- const a58q=a58d;(function(a,b){const n=a58d,c=a();while(!![]){try{const d=-parseInt(n(0x18a))/0x1+-parseInt(n(0x191))/0x2*(parseInt(n(0x197))/0x3)+parseInt(n(0x18e))/0x4+parseInt(n(0x193))/0x5+parseInt(n(0x170))/0x6+parseInt(n(0x184))/0x7*(-parseInt(n(0x166))/0x8)+parseInt(n(0x161))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x27623));const a58b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a58d;if(c){const e=c[o(0x17a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a58a=a58b(this,function(){const p=a58d;return a58a[p(0x195)]()[p(0x159)]('(((.+)+)+)+$')[p(0x195)]()[p(0x171)](a58a)[p(0x159)](p(0x199));});function a58c(){const t=['98lCtUnP','create','client','rewriteDestinationPathForEngine','installNpmPackage','assign','207176xFGovp','graphql','fsi','string','216380otvsUR','reflux','engines','1070JXnszr','imports','1384670aFpCin','component','toString','warn','1137RPGCYh','comp','(((.+)+)+)+$','template','fileName','withValue','css','search','setTemplate','tsx','import\x20\x27./','\x20};\x0a','true','withTranslations','resourceName','3746826JjOcQS','.js','component/component.js','react','lib','177760bZBMqH','ramda','\x27;\x0a','.css','\x20}\x20from\x20\x27','none','root','theme','import\x20\x27','startup','809958HaYbuH','constructor','pathFromProject','.tests.js','injectAtBeginningOfFile','injectAtEndOfFile','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','pathFromApp','checkNpmPackage','relative','apply','features','ssr','import\x20{\x20','test/test.js','dir','templates.js','test','className','cssCaseName'];a58c=function(){return t;};return a58c();}a58a();import a58e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0x158;let f=c[d];return f;},a58d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=[a58q(0x198)];Generator[a58q(0x185)]({'name':a58q(0x194),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','shortDesc':'Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','validOpts':[a58q(0x17f)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const r=a58q;try{const c=this['fsi']['findAppDirectory'](),d='/imports/ui/components',f=this['fsi'][r(0x177)]({'pathParts':[d,b[r(0x17f)],paramCase(b['resourceName']),paramCase(b[r(0x160)])]}),g=await this[r(0x18c)]['getProjectConfig']();this['fsi'][r(0x19c)](g,async()=>{const s=r;typeof g[s(0x19a)][s(0x181)]===s(0x18d)&&(g['template'][s(0x181)]=g['template'][s(0x181)]===s(0x15e)?!![]:![],this[s(0x18c)]['setTemplate']('test',g[s(0x19a)]['test']));typeof g[s(0x19a)][s(0x158)]===s(0x18d)&&(g[s(0x19a)][s(0x158)]=g[s(0x19a)][s(0x158)]===s(0x15e)?!![]:![],this[s(0x18c)][s(0x15a)](s(0x158),g[s(0x19a)][s(0x158)]));typeof g[s(0x19a)]['js']===s(0x18d)&&(g[s(0x19a)]['js']=g[s(0x19a)]['js']===s(0x15e)?!![]:![],this['fsi'][s(0x15a)]('js',g[s(0x19a)]['js']));!g[s(0x17b)]&&(g['features']={});!b[s(0x16c)]&&!this[s(0x18c)]['checkNpmPackage'](s(0x167))&&(Log[s(0x196)]('Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...'),await this[s(0x18c)][s(0x188)](s(0x167),{'cwd':c}));if(!b[s(0x16c)]&&!this['fsi'][s(0x178)]('react')){Log['error'](s(0x176));return;}const h={'name':pascalCase(b[s(0x160)]),'myPath':a58e[s(0x179)](this['fsi'][s(0x172)]({}),f),'cssCaseName':paramCase(b[s(0x160)]),'className':pascalCase(b[s(0x160)]),'camelCaseName':camelCase(b[s(0x160)]),'fileName':paramCase(b['resourceName']),'graphql':g[s(0x190)][s(0x18b)],'features':g[s(0x17b)],'client':g['engines'][s(0x186)],'api':g[s(0x190)]['api'],'ssr':g[s(0x190)][s(0x17c)],'test':g[s(0x190)][s(0x181)],'theme':g[s(0x190)][s(0x16d)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][s(0x15f)]};this['fsi']['template']({'srcPath':s(0x163),'destPath':f+s(0x162),'context':h,'framework':'react','config':g});g[s(0x190)][s(0x181)]!==s(0x16b)&&this['fsi']['template']({'srcPath':s(0x17e),'destPath':f+s(0x173),'context':h,'framework':s(0x164),'config':g});g[s(0x19a)][s(0x158)]&&(this['fsi']['template']({'srcPath':'template/template.css','destPath':f+s(0x169),'context':Object[s(0x189)]({},h,{'className':paramCase(b[s(0x160)])}),'config':g}),this[s(0x18c)][s(0x174)]({'filePath':f+'.'+g[s(0x190)]['js'],'content':s(0x15c)+h[s(0x183)]+'.'+g[s(0x190)]['css']+'\x27;'}));const i=b[s(0x17f)]?'/'+b[s(0x17f)]+'/':'/',j=''+d+i+h[s(0x19b)]+'/'+h[s(0x19b)];let k;if(g[s(0x190)]['ssr']===s(0x15e)){const l=this[s(0x18c)]['pathFromApp']({'pathParts':[s(0x192),s(0x16f),s(0x165),'templates.js']});k=this[s(0x18c)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[s(0x18c)][s(0x177)]({'pathParts':[s(0x192),s(0x16f),s(0x186),s(0x180)]});k=this[s(0x18c)][s(0x187)]({'pathParts':[m],'config':g});}g['engines'][s(0x186)]==='react'||g[s(0x190)][s(0x186)]===s(0x18f)?(g['engines']['js']===s(0x15b)?this[s(0x18c)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[s(0x182)]+s(0x16a)+j+s(0x168)}):this[s(0x18c)]['injectAtBeginningOfFile']({'filePath':k,'content':s(0x17d)+h[s(0x182)]+s(0x16a)+j+'.'+g[s(0x190)]['js']+s(0x168)}),this['fsi'][s(0x175)]({'filePath':k,'content':'export\x20{\x20'+h['className']+s(0x15d)})):this[s(0x18c)][s(0x175)]({'filePath':k,'content':s(0x16e)+j+'.'+g[s(0x190)]['js']+s(0x168)});});}catch(h){Log['error'](h);}});
1
+ const a65p=a65d;(function(a,b){const n=a65d,c=a();while(!![]){try{const d=parseInt(n(0x119))/0x1+-parseInt(n(0x135))/0x2+parseInt(n(0x109))/0x3*(parseInt(n(0x11c))/0x4)+-parseInt(n(0x138))/0x5+-parseInt(n(0x10e))/0x6*(-parseInt(n(0x121))/0x7)+parseInt(n(0x12d))/0x8+parseInt(n(0x13d))/0x9*(-parseInt(n(0x11f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x86919));const a65b=(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;};}()),a65a=a65b(this,function(){const o=a65d;return a65a[o(0xfe)]()[o(0x115)](o(0x13e))['toString']()[o(0x140)](a65a)[o(0x115)](o(0x13e));});a65a();function a65c(){const s=['import\x20\x27','.css','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','checkNpmPackage','search','graphql','setTemplate','/imports/ui/components','826557xsoVWn','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','error','4ojqvGh','root','component','355630eggvop','template','205863BLxFaz','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','imports','withValue','comp','injectAtBeginningOfFile','api','css','assign','\x27;\x0a','theme','.js','5739168fIQfwF','true','startup','fsi','reflux','template/template.css','pathFromProject','resourceName','1619938LTcJiN','ssr','react','1229310iWGCNa','\x20}\x20from\x20\x27','create','ramda','none','261nxCDkL','(((.+)+)+)+$','withTranslations','constructor','engines','import\x20\x27./','warn','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','toString','className','getProjectConfig','rewriteDestinationPathForEngine','dir','import\x20{\x20','injectAtEndOfFile','\x20};\x0a','features','lib','client','2224470lsfBbg','string','test','fileName','tsx','72WYYcKQ','relative','pathFromApp'];a65c=function(){return s;};return a65c();}import a65e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0xfb;let f=c[d];return f;},a65d(a,b);}import{Log}from'../tools/log/log.class.js';const aliases=[a65p(0x125)];Generator[a65p(0x13a)]({'name':a65p(0x11e),'aliases':aliases,'usage':a65p(0x113),'shortDesc':a65p(0x122),'validOpts':[a65p(0x102)],'examples':['maka\x20g:comp\x20todos/todos-item']},async function(a,b){const q=a65p;try{const c=this[q(0x130)]['findAppDirectory'](),d=q(0x118),f=this[q(0x130)][q(0x110)]({'pathParts':[d,b[q(0x102)],paramCase(b[q(0x134)]),paramCase(b[q(0x134)])]}),g=await this['fsi'][q(0x100)]();this[q(0x130)][q(0x124)](g,async()=>{const r=q;typeof g[r(0x120)][r(0x10b)]===r(0x10a)&&(g[r(0x120)][r(0x10b)]=g['template'][r(0x10b)]===r(0x12e)?!![]:![],this[r(0x130)][r(0x117)](r(0x10b),g[r(0x120)][r(0x10b)]));typeof g['template'][r(0x128)]===r(0x10a)&&(g['template'][r(0x128)]=g[r(0x120)][r(0x128)]==='true'?!![]:![],this['fsi']['setTemplate'](r(0x128),g['template'][r(0x128)]));typeof g[r(0x120)]['js']===r(0x10a)&&(g[r(0x120)]['js']=g[r(0x120)]['js']==='true'?!![]:![],this[r(0x130)][r(0x117)]('js',g[r(0x120)]['js']));!g[r(0x106)]&&(g[r(0x106)]={});!b[r(0x11d)]&&!this[r(0x130)][r(0x114)](r(0x13b))&&(Log[r(0xfc)](r(0x11a)),await this[r(0x130)]['installNpmPackage'](r(0x13b),{'cwd':c}));if(!b[r(0x11d)]&&!this[r(0x130)][r(0x114)]('react')){Log[r(0x11b)](r(0xfd));return;}const h={'name':pascalCase(b['resourceName']),'myPath':a65e[r(0x10f)](this[r(0x130)][r(0x133)]({}),f),'cssCaseName':paramCase(b[r(0x134)]),'className':pascalCase(b[r(0x134)]),'camelCaseName':camelCase(b[r(0x134)]),'fileName':paramCase(b['resourceName']),'graphql':g[r(0x141)][r(0x116)],'features':g['features'],'client':g[r(0x141)][r(0x108)],'api':g[r(0x141)][r(0x127)],'ssr':g['engines']['ssr'],'test':g[r(0x141)]['test'],'theme':g[r(0x141)][r(0x12b)],'isLayout':![],'isComponent':!![],'withTranslations':g['features'][r(0x13f)]};this[r(0x130)][r(0x120)]({'srcPath':'component/component.js','destPath':f+r(0x12c),'context':h,'framework':r(0x137),'config':g});g[r(0x141)][r(0x10b)]!==r(0x13c)&&this[r(0x130)]['template']({'srcPath':'test/test.js','destPath':f+'.tests.js','context':h,'framework':r(0x137),'config':g});g[r(0x120)][r(0x128)]&&(this['fsi'][r(0x120)]({'srcPath':r(0x132),'destPath':f+r(0x112),'context':Object[r(0x129)]({},h,{'className':paramCase(b[r(0x134)])}),'config':g}),this[r(0x130)][r(0x126)]({'filePath':f+'.'+g[r(0x141)]['js'],'content':r(0xfb)+h['cssCaseName']+'.'+g['engines'][r(0x128)]+'\x27;'}));const i=b[r(0x102)]?'/'+b[r(0x102)]+'/':'/',j=''+d+i+h[r(0x10c)]+'/'+h[r(0x10c)];let k;if(g[r(0x141)][r(0x136)]===r(0x12e)){const l=this[r(0x130)]['pathFromApp']({'pathParts':[r(0x123),r(0x12f),r(0x107),'templates.js']});k=this[r(0x130)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[r(0x130)]['pathFromApp']({'pathParts':[r(0x123),'startup',r(0x108),'templates.js']});k=this[r(0x130)][r(0x101)]({'pathParts':[m],'config':g});}g['engines'][r(0x108)]===r(0x137)||g[r(0x141)]['client']===r(0x131)?(g[r(0x141)]['js']===r(0x10d)?this[r(0x130)]['injectAtBeginningOfFile']({'filePath':k,'content':r(0x103)+h[r(0xff)]+r(0x139)+j+r(0x12a)}):this[r(0x130)][r(0x126)]({'filePath':k,'content':r(0x103)+h[r(0xff)]+'\x20}\x20from\x20\x27'+j+'.'+g[r(0x141)]['js']+r(0x12a)}),this[r(0x130)][r(0x104)]({'filePath':k,'content':'export\x20{\x20'+h[r(0xff)]+r(0x105)})):this[r(0x130)]['injectAtEndOfFile']({'filePath':k,'content':r(0x111)+j+'.'+g[r(0x141)]['js']+'\x27;\x0a'});});}catch(h){Log[q(0x11b)](h);}});
@@ -1 +1 @@
1
- const a59k=a59d;(function(a,b){const h=a59d,c=a();while(!![]){try{const d=parseInt(h(0x1cf))/0x1*(parseInt(h(0x1d0))/0x2)+-parseInt(h(0x1d1))/0x3+-parseInt(h(0x1e4))/0x4*(-parseInt(h(0x1e0))/0x5)+-parseInt(h(0x1e7))/0x6*(-parseInt(h(0x1cc))/0x7)+parseInt(h(0x1c9))/0x8*(parseInt(h(0x1d3))/0x9)+parseInt(h(0x1d4))/0xa*(parseInt(h(0x1e3))/0xb)+-parseInt(h(0x1de))/0xc*(parseInt(h(0x1dd))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xe973b));const a59b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a59d;if(c){const e=c[i(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a59a=a59b(this,function(){const j=a59d;return a59a[j(0x1dc)]()[j(0x1ce)](j(0x1d6))[j(0x1dc)]()[j(0x1e6)](a59a)[j(0x1ce)](j(0x1d6));});function a59c(){const n=['11BgBlzT','8508AqcXnu','prod','constructor','402DvUawO','apply','231464Ctmzcw','template','isDocker','74893AbZEDE','config','search','31442ZVVPuU','100EhPUoX','4877664hmXwWK','pathFromProject','342oBRkWK','16000610ywUpcS','getProjectConfig','(((.+)+)+)+$','create','config/settings.json','process.env','production','settings.json','toString','581633vLhbUG','804vkPvbc','resourceName','1390mWffxP','fsi','appName'];a59c=function(){return n;};return a59c();}function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0x1c9;let f=c[d];return f;},a59d(a,b);}a59a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a59k(0x1d7)]({'name':a59k(0x1cd),'usage':'maka\x20{generate,\x20g}:{config}\x20<name>','shortDesc':'Generate\x20configuration\x20settings.','validOpts':[a59k(0x1cb)],'examples':['maka\x20g:config\x20production']},function(a,b){const l=a59k,c=this[l(0x1e1)][l(0x1d5)]();this['fsi']['withValue'](c,async()=>{const m=l,d={'app':c[m(0x1e2)],'appFileCase':paramCase(c[m(0x1e2)]),'name':pascalCase(b[m(0x1df)]),'fileName':paramCase(b[m(0x1df)]),'camelCase':camelCase(b['resourceName']),'userName':'ubuntu','isDocker':b['isDocker']};let e=a[0x0];if(e==='dev')e='development';else e===m(0x1e5)&&(e=m(0x1da));const f=this[m(0x1e1)][m(0x1d2)]({'pathParts':[m(0x1cd),e,m(0x1db)]});this[m(0x1e1)][m(0x1ca)]({'srcPath':m(0x1d8),'destPath':f,'context':d,'config':c});if(!b['isDocker']){const g=this[m(0x1e1)][m(0x1d2)]({'pathParts':[m(0x1cd),e,m(0x1d9)]});this['fsi'][m(0x1ca)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
1
+ const a66k=a66d;(function(a,b){const h=a66d,c=a();while(!![]){try{const d=parseInt(h(0x1be))/0x1*(-parseInt(h(0x1c1))/0x2)+-parseInt(h(0x1b7))/0x3*(-parseInt(h(0x1ad))/0x4)+-parseInt(h(0x1b1))/0x5*(-parseInt(h(0x1bb))/0x6)+parseInt(h(0x1b4))/0x7*(parseInt(h(0x1c0))/0x8)+parseInt(h(0x1c4))/0x9*(parseInt(h(0x1c8))/0xa)+parseInt(h(0x1b8))/0xb*(-parseInt(h(0x1c5))/0xc)+-parseInt(h(0x1ba))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x3866c));function a66c(){const n=['prod','settings.json','2933esyjGQ','pathFromProject','maka\x20{generate,\x20g}:{config}\x20<name>','250692qJrijo','11NiXmRY','config/process.env','5642013TlYFCa','15846XAOJgl','search','resourceName','1SDcLBp','appName','7848MsMigp','336694UHqIeT','withValue','config','594hWshpm','2210820HVmcCm','apply','maka\x20g:config\x20production','10560drZSal','Generate\x20configuration\x20settings.','isDocker','fsi','template','ubuntu','toString','8LJZcQa','(((.+)+)+)+$','process.env','create','700eQHExE'];a66c=function(){return n;};return a66c();}function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x1a7;let f=c[d];return f;},a66d(a,b);}const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a66d;if(c){const e=c[i(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const j=a66d;return a66a['toString']()[j(0x1bc)](j(0x1ae))[j(0x1ac)]()['constructor'](a66a)[j(0x1bc)](j(0x1ae));});a66a();import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a66k(0x1b0)]({'name':a66k(0x1c3),'usage':a66k(0x1b6),'shortDesc':a66k(0x1a7),'validOpts':['isDocker'],'examples':[a66k(0x1c7)]},function(a,b){const l=a66k,c=this['fsi']['getProjectConfig']();this[l(0x1a9)][l(0x1c2)](c,async()=>{const m=l,d={'app':c[m(0x1bf)],'appFileCase':paramCase(c[m(0x1bf)]),'name':pascalCase(b[m(0x1bd)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[m(0x1bd)]),'userName':m(0x1ab),'isDocker':b[m(0x1a8)]};let e=a[0x0];if(e==='dev')e='development';else e===m(0x1b2)&&(e='production');const f=this['fsi'][m(0x1b5)]({'pathParts':[m(0x1c3),e,m(0x1b3)]});this[m(0x1a9)][m(0x1aa)]({'srcPath':'config/settings.json','destPath':f,'context':d,'config':c});if(!b[m(0x1a8)]){const g=this['fsi'][m(0x1b5)]({'pathParts':[m(0x1c3),e,m(0x1af)]});this[m(0x1a9)][m(0x1aa)]({'srcPath':m(0x1b9),'destPath':g,'context':d,'config':c});}});});
@@ -1 +1 @@
1
- const a60p=a60d;(function(a,b){const n=a60d,c=a();while(!![]){try{const d=-parseInt(n(0x21a))/0x1+-parseInt(n(0x20c))/0x2*(-parseInt(n(0x218))/0x3)+parseInt(n(0x21c))/0x4+-parseInt(n(0x21f))/0x5+-parseInt(n(0x21b))/0x6+-parseInt(n(0x20d))/0x7*(-parseInt(n(0x228))/0x8)+-parseInt(n(0x1f3))/0x9*(-parseInt(n(0x1fa))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0x62c89));const a60b=(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;};}()),a60a=a60b(this,function(){const o=a60d;return a60a['toString']()[o(0x214)](o(0x220))[o(0x210)]()[o(0x215)](a60a)['search'](o(0x220));});function a60c(){const s=['withValue','installNpmPackage','toString','maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','index.','imports','search','constructor','config.','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','438oOlRWT','create','282604XMkNdl','830712vbWRsU','74904ilYLLm','maka\x20g:dbc\x20geoserver\x20--type=pgsql','startup','1698425owzDJV','(((.+)+)+)+$','import\x20\x27./register-','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','dir','checkNpmPackage','resourceName','Invalid\x20type\x20','template','1184mxQKki','pgsql','getProjectConfig','dbAnswer','better-sqlite3','mssql','pathFromApp','sqlite','1414386FFLpwI','dbc/register-dbc.js','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20todos\x20--type=sqlite','DB\x20Driver','MS\x20SQL','injectAtEndOfFile','30wZcBCP','(blank)','-dbc.','warn','PostgreSQL','fsi','tsx','engines','options','server','type','dbc/config.js','indexOf','dbc',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','-dbc\x27;','conn.','error','1042RZXlhB','28336DCoNRq'];a60c=function(){return s;};return a60c();}a60a();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';function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x1f1;let f=c[d];return f;},a60d(a,b);}Generator[a60p(0x219)]({'name':a60p(0x207),'usage':a60p(0x211),'shortDesc':a60p(0x217),'validOpts':['type',a60p(0x223)],'examples':[a60p(0x21d),'maka\x20g:dbc\x20azure\x20--type=mssql',a60p(0x1f6)]},async function(a,b){const q=a60p;try{const c=await this[q(0x1ff)][q(0x22a)](),d=this[q(0x1ff)][q(0x1f1)]({}),f=paramCase(b['resourceName']);if(!b['type']){const h={'type':'list','name':q(0x22b),'message':q(0x1f7),'choices':[{'name':q(0x1fe),'value':q(0x229)},{'name':q(0x1f8),'value':'mssql'}]},{dbAnswer:i}=await Actions[q(0x202)](h);i&&(b['type']=i);}const g={'name':pascalCase(b[q(0x225)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[q(0x225)]),'type':b['type'],'engine':c[q(0x201)]['js'],'noRename':!![]};this[q(0x1ff)][q(0x20e)](c,async()=>{const r=q;let j='js';c[r(0x201)]['js']===r(0x200)&&(j='ts');const k=[r(0x22d),'pgsql'];if(k[r(0x206)](g[r(0x204)])<0x0){const m=g[r(0x204)]?g[r(0x204)]:r(0x1fb);Log[r(0x20b)](r(0x226)+m+r(0x208));return;}b[r(0x204)]===r(0x229)&&!this[r(0x1ff)][r(0x224)]('pg')&&(Log['warn'](r(0x222)),await this['fsi']['installNpmPackage']('pg',{'cwd':d}));b['type']==='mssql'&&!this[r(0x1ff)][r(0x224)](r(0x22d))&&(Log['warn']('Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'),await this[r(0x1ff)][r(0x20f)]('mssql',{'cwd':d}));b[r(0x204)]===r(0x1f2)&&!this[r(0x1ff)][r(0x224)](r(0x22c))&&(Log[r(0x1fd)](r(0x1f5)),await this[r(0x1ff)]['installNpmPackage'](r(0x22c),{'cwd':d}));this[r(0x1ff)]['template']({'srcPath':r(0x205),'destPath':this[r(0x1ff)]['pathFromApp']({'pathParts':[r(0x213),r(0x21e),r(0x203),'dbc',b[r(0x223)],f,r(0x216)+j]}),'context':g,'config':c}),this['fsi'][r(0x227)]({'srcPath':'dbc/conn.js','destPath':this['fsi']['pathFromApp']({'pathParts':[r(0x213),r(0x21e),r(0x203),r(0x207),b[r(0x223)],f,r(0x20a)+j]}),'context':g,'config':c}),this[r(0x1ff)][r(0x227)]({'srcPath':r(0x1f4),'destPath':this[r(0x1ff)][r(0x1f1)]({'pathParts':[r(0x213),'startup',r(0x203),'register-'+f+r(0x1fc)+j]}),'context':g,'config':c});const l=this[r(0x1ff)][r(0x1f1)]({'pathParts':[r(0x213),r(0x21e),'server',r(0x212)+c[r(0x201)]['js']]});this[r(0x1ff)][r(0x1f9)]({'filePath':l,'content':r(0x221)+f+r(0x209)});});}catch(j){Log[q(0x20b)](j);}});
1
+ const a67q=a67d;function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x18b;let f=c[d];return f;},a67d(a,b);}(function(a,b){const n=a67d,c=a();while(!![]){try{const d=parseInt(n(0x1c2))/0x1+-parseInt(n(0x1a1))/0x2*(-parseInt(n(0x19b))/0x3)+-parseInt(n(0x1a9))/0x4+-parseInt(n(0x1bc))/0x5*(parseInt(n(0x198))/0x6)+-parseInt(n(0x192))/0x7+parseInt(n(0x1aa))/0x8+-parseInt(n(0x1bf))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x824e1));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a67d;if(c){const e=c[o(0x1b4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const p=a67d;return a67a[p(0x1a0)]()[p(0x18c)]('(((.+)+)+)+$')[p(0x1a0)]()['constructor'](a67a)[p(0x18c)](p(0x1b8));});a67a();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[a67q(0x197)]({'name':'dbc','usage':'maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','shortDesc':a67q(0x195),'validOpts':[a67q(0x1a3),a67q(0x1b5)],'examples':[a67q(0x18b),a67q(0x1ab),a67q(0x191)]},async function(a,b){const r=a67q;try{const c=await this[r(0x196)][r(0x18e)](),d=this['fsi'][r(0x194)]({}),f=paramCase(b['resourceName']);if(!b[r(0x1a3)]){const h={'type':r(0x19f),'name':r(0x1b0),'message':r(0x18d),'choices':[{'name':'PostgreSQL','value':r(0x1b7)},{'name':r(0x19c),'value':r(0x1b1)}]},{dbAnswer:i}=await Actions[r(0x1ac)](h);i&&(b['type']=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b['resourceName']),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};this[r(0x196)][r(0x1bb)](c,async()=>{const s=r;let j='js';c['engines']['js']===s(0x1c0)&&(j='ts');const k=[s(0x1b1),'pgsql'];if(k['indexOf'](g[s(0x1a3)])<0x0){const m=g[s(0x1a3)]?g['type']:s(0x1a5);Log[s(0x1b2)](s(0x1b6)+m+s(0x1a4));return;}b[s(0x1a3)]===s(0x1b7)&&!this['fsi'][s(0x19d)]('pg')&&(Log[s(0x1ae)](s(0x19a)),await this[s(0x196)][s(0x1bd)]('pg',{'cwd':d}));b['type']===s(0x1b1)&&!this[s(0x196)][s(0x19d)](s(0x1b1))&&(Log['warn'](s(0x1b9)),await this[s(0x196)][s(0x1bd)](s(0x1b1),{'cwd':d}));b[s(0x1a3)]==='sqlite'&&!this[s(0x196)][s(0x19d)](s(0x1be))&&(Log['warn'](s(0x190)),await this[s(0x196)][s(0x1bd)](s(0x1be),{'cwd':d}));this[s(0x196)]['template']({'srcPath':s(0x1ba),'destPath':this[s(0x196)][s(0x194)]({'pathParts':['imports','startup',s(0x19e),s(0x1ad),b[s(0x1b5)],f,s(0x1a8)+j]}),'context':g,'config':c}),this[s(0x196)][s(0x1c3)]({'srcPath':'dbc/conn.js','destPath':this[s(0x196)][s(0x194)]({'pathParts':[s(0x18f),s(0x1a7),s(0x19e),s(0x1ad),b[s(0x1b5)],f,s(0x1a6)+j]}),'context':g,'config':c}),this[s(0x196)][s(0x1c3)]({'srcPath':s(0x1a2),'destPath':this[s(0x196)][s(0x194)]({'pathParts':[s(0x18f),s(0x1a7),'server',s(0x1c1)+f+s(0x199)+j]}),'context':g,'config':c});const l=this['fsi'][s(0x194)]({'pathParts':[s(0x18f),s(0x1a7),s(0x19e),s(0x1b3)+c[s(0x1af)]['js']]});this['fsi'][s(0x193)]({'filePath':l,'content':'import\x20\x27./register-'+f+'-dbc\x27;'});});}catch(j){Log[r(0x1b2)](j);}});function a67c(){const t=['dbc/config.js','withValue','10eJTahb','installNpmPackage','better-sqlite3','10489338xyuPGi','tsx','register-','1064071zEBtVO','template','maka\x20g:dbc\x20geoserver\x20--type=pgsql','search','DB\x20Driver','getProjectConfig','imports','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20todos\x20--type=sqlite','2328214Qmfbiq','injectAtEndOfFile','pathFromApp','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','fsi','create','2367714UkNWht','-dbc.','Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...','3rBINUM','MS\x20SQL','checkNpmPackage','server','list','toString','2032408SRsQFj','dbc/register-dbc.js','type',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','(blank)','conn.','startup','config.','1291880vDTyDF','8509968gvPQKz','maka\x20g:dbc\x20azure\x20--type=mssql','options','dbc','warn','engines','dbAnswer','mssql','error','index.','apply','dir','Invalid\x20type\x20','pgsql','(((.+)+)+)+$','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...'];a67c=function(){return t;};return a67c();}
@@ -1 +1 @@
1
- const a61i=a61d;(function(a,b){const f=a61d,c=a();while(!![]){try{const d=-parseInt(f(0xbe))/0x1*(-parseInt(f(0xd4))/0x2)+parseInt(f(0xc1))/0x3*(-parseInt(f(0xba))/0x4)+parseInt(f(0xcd))/0x5*(-parseInt(f(0xbf))/0x6)+-parseInt(f(0xd1))/0x7*(-parseInt(f(0xdc))/0x8)+-parseInt(f(0xca))/0x9*(-parseInt(f(0xd3))/0xa)+parseInt(f(0xdb))/0xb*(-parseInt(f(0xc9))/0xc)+parseInt(f(0xc0))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x2cba2));function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0xba;let f=c[d];return f;},a61d(a,b);}const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a61d;if(c){const e=c[g(0xbc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const h=a61d;return a61a[h(0xc6)]()[h(0xd5)](h(0xd2))[h(0xc6)]()[h(0xbd)](a61a)[h(0xd5)]('(((.+)+)+)+$');});a61a();function a61c(){const l=['99564xeGOGE','join','apply','constructor','21001fAlgus','1005234cHBbzY','2852057LaJSQX','27noSmVK','Dockerfile','fsi','service','findProjectDirectory','toString','template','create','238956fMNHEt','147816pAPObv','docker/Dockerfile','isFile','5ZumirW','error','maka\x20{generate,\x20g}:dockerfile','getProjectConfig','7mTHruU','(((.+)+)+)+$','10IlSLnS','2wXzUel','search','cert','Generate\x20an\x20updated\x20dockerfile','dockerfile','build','appName','22FGJaGY','2862176qyWvKr','app.tar.gz','maka\x20g:dockerfile'];a61c=function(){return l;};return a61c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a61e from'path';Generator[a61i(0xc8)]({'name':a61i(0xd8),'usage':a61i(0xcf),'shortDesc':a61i(0xd7),'validOpts':[],'noResource':!![],'examples':[a61i(0xde)]},async function(){const j=a61i;try{const a=await this[j(0xc3)][j(0xd0)](),b=await this['fsi']['getGlobalConfig'](),c=this[j(0xc3)][j(0xc5)]();this[j(0xc3)]['withValue'](a,async()=>{const k=j,d={'app':b[k(0xda)],'config':a,'appPath':a61e['join'](c,'app'),'bundlePath':a61e[k(0xbb)](c,k(0xd9),k(0xdd)),'useCert':this[k(0xc3)][k(0xcc)](b[k(0xd6)])};this[k(0xc3)][k(0xc7)]({'srcPath':k(0xcb),'destPath':a61e[k(0xbb)](c,k(0xc2)),'framework':k(0xc4),'context':d,'config':a});});}catch(d){Log[j(0xce)](d);}});
1
+ function a68c(){const l=['4OwjxmB','app.tar.gz','constructor','3000429rZFGbG','120114RDdRgA','fsi','580490UcsuUk','toString','service','83765dGHkdJ','185112ktfmKp','getGlobalConfig','appName','withValue','findProjectDirectory','dockerfile','Dockerfile','434HxiGsN','maka\x20{generate,\x20g}:dockerfile','error','docker/Dockerfile','52SOTDAD','create','Generate\x20an\x20updated\x20dockerfile','join','search','app','(((.+)+)+)+$','template','cert','apply','22455540hIZeeN','89988EmnGoB'];a68c=function(){return l;};return a68c();}const a68i=a68d;(function(a,b){const f=a68d,c=a();while(!![]){try{const d=-parseInt(f(0x9d))/0x1*(-parseInt(f(0x97))/0x2)+parseInt(f(0x9a))/0x3+-parseInt(f(0xac))/0x4*(parseInt(f(0xa0))/0x5)+parseInt(f(0x96))/0x6*(parseInt(f(0xa8))/0x7)+-parseInt(f(0xa1))/0x8+parseInt(f(0x9b))/0x9+-parseInt(f(0x95))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x96d87));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a68d;if(c){const e=c[g(0x94)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const h=a68d;return a68a[h(0x9e)]()[h(0x8f)](h(0x91))['toString']()[h(0x99)](a68a)[h(0x8f)](h(0x91));});a68a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a68e from'path';function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x8d;let f=c[d];return f;},a68d(a,b);}Generator[a68i(0xad)]({'name':a68i(0xa6),'usage':a68i(0xa9),'shortDesc':a68i(0x8d),'validOpts':[],'noResource':!![],'examples':['maka\x20g:dockerfile']},async function(){const j=a68i;try{const a=await this[j(0x9c)]['getProjectConfig'](),b=await this[j(0x9c)][j(0xa2)](),c=this['fsi'][j(0xa5)]();this[j(0x9c)][j(0xa4)](a,async()=>{const k=j,d={'app':b[k(0xa3)],'config':a,'appPath':a68e[k(0x8e)](c,k(0x90)),'bundlePath':a68e[k(0x8e)](c,'build',k(0x98)),'useCert':this['fsi']['isFile'](b[k(0x93)])};this[k(0x9c)][k(0x92)]({'srcPath':k(0xab),'destPath':a68e[k(0x8e)](c,k(0xa7)),'framework':k(0x9f),'context':d,'config':a});});}catch(d){Log[j(0xaa)](d);}});
@@ -1 +1 @@
1
- const a62r=a62d;(function(a,b){const o=a62d,c=a();while(!![]){try{const d=-parseInt(o(0x1ba))/0x1*(parseInt(o(0x19e))/0x2)+-parseInt(o(0x1b9))/0x3*(parseInt(o(0x1ac))/0x4)+-parseInt(o(0x195))/0x5+parseInt(o(0x1af))/0x6*(parseInt(o(0x1b2))/0x7)+-parseInt(o(0x17e))/0x8+parseInt(o(0x1bc))/0x9*(-parseInt(o(0x1a9))/0xa)+parseInt(o(0x1b4))/0xb*(parseInt(o(0x180))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x2a761));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a62d;if(c){const e=c[p(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const q=a62d;return a62a[q(0x194)]()['search'](q(0x1b7))[q(0x194)]()[q(0x1ad)](a62a)[q(0x1bb)](q(0x1b7));});a62a();import a62e 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';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x17b;let f=c[d];return f;},a62d(a,b);}Generator[a62r(0x186)]({'name':a62r(0x1ae),'aliases':['h'],'checkWhere':![],'usage':'maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','shortDesc':a62r(0x17b),'validOpts':[a62r(0x184)],'examples':[a62r(0x1a3)]},async function(a,b){const s=a62r;try{const c=this[s(0x181)][s(0x1a5)](s(0x187));if(!c){Log[s(0x19b)](s(0x1a0));throw new UsageError();}const d=this[s(0x181)][s(0x1bd)](b),f='/imports/ui/hooks',g=this[s(0x181)][s(0x1bd)]({'pathParts':[f,b[s(0x184)],paramCase(b[s(0x19a)]),paramCase(b[s(0x19a)])]}),h=await this['fsi'][s(0x17d)]();this['fsi'][s(0x18a)](h,async()=>{const t=s;typeof h['template'][t(0x185)]==='string'&&(h['template'][t(0x185)]=h['template'][t(0x185)]===t(0x1b5)?!![]:![],this[t(0x181)][t(0x1a7)]('css',h[t(0x18d)]['css']));h[t(0x1be)][t(0x1a4)]==='apollo'&&!this[t(0x1a5)](t(0x191))&&(Log[t(0x1a6)](t(0x18c)),await this[t(0x181)][t(0x19c)]('@apollo/client\x20isomorphic-fetch',{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x19a)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b[t(0x19a)]),'graphql':h[t(0x1be)][t(0x1a4)],'theme':h[t(0x1be)]['theme'],'features':h[t(0x199)],'myPath':a62e[t(0x190)](this[t(0x181)]['pathFromProject']({}),g),'fileName':paramCase(b[t(0x19a)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x199)][t(0x1a1)]};this[t(0x181)]['template']({'srcPath':t(0x196),'destPath':g+t(0x1b1),'context':i,'config':h,'framework':'react'});h[t(0x18d)][t(0x185)]&&(this[t(0x181)][t(0x18d)]({'srcPath':t(0x19f),'destPath':g+'.css','context':Object['assign']({},i,{'className':i[t(0x17f)]}),'config':h}),this[t(0x181)][t(0x197)]({'filePath':g+'.'+h[t(0x1be)]['js'],'content':'import\x20\x27./'+i[t(0x1ab)]+'.'+h[t(0x1be)][t(0x185)]+'\x27;'}));h[t(0x1be)][t(0x1a8)]!==t(0x18e)&&this['fsi'][t(0x18d)]({'srcPath':'test/test.js','destPath':g+t(0x19d),'framework':t(0x187),'context':i,'config':h});const j=b[t(0x184)]?'/'+b[t(0x184)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x1ab)];let l;if(h['engines'][t(0x18b)]===t(0x1b5)){const m=this[t(0x181)][t(0x1bd)]({'pathParts':[t(0x18f),t(0x17c),'lib',t(0x1a2)]});l=this['fsi'][t(0x188)]({'pathParts':[m],'config':h});}else{const n=this['fsi'][t(0x1bd)]({'pathParts':[t(0x18f),'startup',t(0x192),t(0x1a2)]});l=this['fsi'][t(0x188)]({'pathParts':[n],'config':h});}h[t(0x1be)][t(0x192)]===t(0x187)?(h[t(0x1be)]['js']===t(0x1b3)?this['fsi'][t(0x197)]({'filePath':l,'content':t(0x1b0)+i['className']+t(0x1aa)+k+'\x27;\x0a'}):this['fsi'][t(0x197)]({'filePath':l,'content':t(0x1b0)+i[t(0x183)]+t(0x1aa)+k+'.'+h[t(0x1be)]['js']+'\x27;\x0a'}),this[t(0x181)][t(0x193)]({'filePath':l,'content':t(0x182)+i[t(0x183)]+t(0x1b6)})):this[t(0x181)][t(0x193)]({'filePath':l,'content':t(0x1b8)+k+'.'+h[t(0x1be)]['js']+t(0x198)});});}catch(i){Log[s(0x19b)](i);}});function a62c(){const u=['export\x20{\x20','className','dir','css','create','react','rewriteDestinationPathForEngine','apply','withValue','ssr','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','template','none','imports','relative','@apollo/client','client','injectAtEndOfFile','toString','1663360CQRvRO','hook/hook.js','injectAtBeginningOfFile','\x27;\x0a','features','resourceName','error','installNpmPackage','.app-tests.js','2IKHstu','template/template.css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','withTranslations','templates.js','maka\x20g:hook\x20cool-hook','graphql','checkNpmPackage','warn','setTemplate','test','10PDlyjW','\x20}\x20from\x20\x27','fileName','3188IIRbkL','constructor','hook','222EXcNGX','import\x20{\x20','.js','25263xRIhej','tsx','35519vbDigB','true','\x20};\x0a','(((.+)+)+)+$','import\x20\x27','501nTYKRk','106200mhciuH','search','180909JDjZRb','pathFromApp','engines','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','startup','getProjectConfig','1940792RCBqmP','cssCaseName','3252neFkTr','fsi'];a62c=function(){return u;};return a62c();}
1
+ function a69c(){const u=['import\x20\x27','64NLLsRo','fileName','56KxiJBJ','\x20}\x20from\x20\x27','className','pathFromProject','fsi','export\x20{\x20','startup','templates.js','template/template.css','features','cssCaseName','2736ngfSIm','@apollo/client','hook','css','error','lib','injectAtBeginningOfFile','12230DCoRuM','search','warn','string','react','\x20};\x0a','pathFromApp','21672EKYiJF','rewriteDestinationPathForEngine','5367310tJLEHE','maka\x20g:hook\x20cool-hook','engines','dir','constructor','template','19063FioJKB','.app-tests.js','graphql','injectAtEndOfFile','getProjectConfig','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','resourceName','.css','import\x20\x27./','imports','(((.+)+)+)+$','import\x20{\x20','toString','true','client','none','test','.js','470691FXuhrE','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','theme','tsx','checkNpmPackage','@apollo/client\x20isomorphic-fetch','Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','38529BnVtvD','apply','create','6lorEuW','\x27;\x0a','3357072wjmLpj','2134139TKBoGg','assign'];a69c=function(){return u;};return a69c();}const a69r=a69d;(function(a,b){const o=a69d,c=a();while(!![]){try{const d=-parseInt(o(0x1ea))/0x1*(-parseInt(o(0x1f5))/0x2)+parseInt(o(0x1ef))/0x3+-parseInt(o(0x1bb))/0x4*(-parseInt(o(0x1c2))/0x5)+parseInt(o(0x1ed))/0x6*(parseInt(o(0x1f0))/0x7)+parseInt(o(0x1f3))/0x8*(parseInt(o(0x1e3))/0x9)+-parseInt(o(0x1cb))/0xa+parseInt(o(0x1d1))/0xb*(-parseInt(o(0x1c9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0xe2798));const a69b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a69d;if(c){const e=c[p(0x1eb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a69a=a69b(this,function(){const q=a69d;return a69a[q(0x1dd)]()[q(0x1c3)](q(0x1db))[q(0x1dd)]()[q(0x1cf)](a69a)[q(0x1c3)](q(0x1db));});a69a();import a69e from'path';import{paramCase,pascalCase}from'change-case';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a69d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a69r(0x1ec)]({'name':a69r(0x1bd),'aliases':['h'],'checkWhere':![],'usage':a69r(0x1e4),'shortDesc':a69r(0x1e9),'validOpts':[a69r(0x1ce)],'examples':[a69r(0x1cc)]},async function(a,b){const s=a69r;try{const c=this[s(0x1f9)][s(0x1e7)](s(0x1c6));if(!c){Log[s(0x1bf)]('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');throw new UsageError();}const d=this[s(0x1f9)][s(0x1c8)](b),f='/imports/ui/hooks',g=this['fsi'][s(0x1c8)]({'pathParts':[f,b[s(0x1ce)],paramCase(b[s(0x1d7)]),paramCase(b[s(0x1d7)])]}),h=await this[s(0x1f9)][s(0x1d5)]();this[s(0x1f9)]['withValue'](h,async()=>{const t=s;typeof h[t(0x1d0)][t(0x1be)]===t(0x1c5)&&(h[t(0x1d0)][t(0x1be)]=h[t(0x1d0)]['css']==='true'?!![]:![],this[t(0x1f9)]['setTemplate'](t(0x1be),h[t(0x1d0)]['css']));h[t(0x1cd)][t(0x1d3)]==='apollo'&&!this[t(0x1e7)](t(0x1bc))&&(Log[t(0x1c4)](t(0x1d6)),await this[t(0x1f9)]['installNpmPackage'](t(0x1e8),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1d7)]),'className':pascalCase(b[t(0x1d7)]),'name':pascalCase(b[t(0x1d7)]),'graphql':h['engines'][t(0x1d3)],'theme':h['engines'][t(0x1e5)],'features':h[t(0x1b9)],'myPath':a69e['relative'](this[t(0x1f9)][t(0x1f8)]({}),g),'fileName':paramCase(b[t(0x1d7)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x1b9)]['withTranslations']};this['fsi']['template']({'srcPath':'hook/hook.js','destPath':g+t(0x1e2),'context':i,'config':h,'framework':t(0x1c6)});h[t(0x1d0)][t(0x1be)]&&(this[t(0x1f9)]['template']({'srcPath':t(0x1b8),'destPath':g+t(0x1d8),'context':Object[t(0x1f1)]({},i,{'className':i[t(0x1ba)]}),'config':h}),this['fsi'][t(0x1c1)]({'filePath':g+'.'+h[t(0x1cd)]['js'],'content':t(0x1d9)+i[t(0x1f4)]+'.'+h['engines']['css']+'\x27;'}));h[t(0x1cd)][t(0x1e1)]!==t(0x1e0)&&this[t(0x1f9)][t(0x1d0)]({'srcPath':'test/test.js','destPath':g+t(0x1d2),'framework':t(0x1c6),'context':i,'config':h});const j=b['dir']?'/'+b[t(0x1ce)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x1f4)];let l;if(h[t(0x1cd)]['ssr']===t(0x1de)){const m=this[t(0x1f9)]['pathFromApp']({'pathParts':[t(0x1da),t(0x1fb),t(0x1c0),t(0x1fc)]});l=this[t(0x1f9)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x1f9)][t(0x1c8)]({'pathParts':['imports',t(0x1fb),'client','templates.js']});l=this[t(0x1f9)][t(0x1ca)]({'pathParts':[n],'config':h});}h[t(0x1cd)][t(0x1df)]===t(0x1c6)?(h['engines']['js']===t(0x1e6)?this['fsi'][t(0x1c1)]({'filePath':l,'content':t(0x1dc)+i['className']+t(0x1f6)+k+'\x27;\x0a'}):this[t(0x1f9)][t(0x1c1)]({'filePath':l,'content':'import\x20{\x20'+i['className']+t(0x1f6)+k+'.'+h[t(0x1cd)]['js']+t(0x1ee)}),this[t(0x1f9)][t(0x1d4)]({'filePath':l,'content':t(0x1fa)+i[t(0x1f7)]+t(0x1c7)})):this[t(0x1f9)]['injectAtEndOfFile']({'filePath':l,'content':t(0x1f2)+k+'.'+h[t(0x1cd)]['js']+t(0x1ee)});});}catch(i){Log[s(0x1bf)](i);}});
@@ -1 +1 @@
1
- function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x78;let f=c[d];return f;},a63d(a,b);}const a63j=a63d;(function(a,b){const h=a63d,c=a();while(!![]){try{const d=parseInt(h(0x86))/0x1*(-parseInt(h(0x81))/0x2)+parseInt(h(0x78))/0x3+-parseInt(h(0x88))/0x4+-parseInt(h(0x7f))/0x5*(parseInt(h(0x91))/0x6)+-parseInt(h(0x92))/0x7+parseInt(h(0x7c))/0x8+parseInt(h(0x95))/0x9*(parseInt(h(0x8f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0x45e04));const a63b=(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;};}()),a63a=a63b(this,function(){const i=a63d;return a63a[i(0x89)]()[i(0x79)](i(0x82))[i(0x89)]()['constructor'](a63a)['search'](i(0x82));});a63a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a63c(){const m=[',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','10448577wjoDrO','773811yqQwhI','search','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','maka\x20g:k\x20city-map\x20--type=leaflet-map','2661968UyeCDu','fsi','NIE','72125pjTzCP','login','24IMHVkI','(((.+)+)+)+$','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','error','type','28087uchQhe','create','1336660lJHwSA','toString','notice','leaflet-map','maka\x20g:kit\x20--type=map','resourceName','getProjectConfig','10fBrcLc','indexOf','228BrBVbE','1722455CwSxMP','(blank)'];a63c=function(){return m;};return a63c();}Generator[a63j(0x87)]({'name':'kit','aliases':['k'],'usage':a63j(0x83),'shortDesc':a63j(0x7a),'validOpts':[a63j(0x85)],'examples':[a63j(0x8c),a63j(0x7b)]},async function(a,b){const k=a63j;try{const c=this['fsi'][k(0x8e)]();this[k(0x7d)]['withValue'](c,async()=>{const l=k,d={'name':pascalCase(b[l(0x8d)]),'fileName':paramCase(b['resourceName']),'camelCase':camelCase(b[l(0x8d)]),'type':b[l(0x85)],'engine':c['engines']['js'],'noRename':!![]},f=[l(0x8b),l(0x80)];if(f[l(0x90)](d[l(0x85)])<0x0){const g=d[l(0x85)]?d['type']:l(0x93);Log[l(0x84)]('Invalid\x20type\x20'+g+l(0x94));return;}b[l(0x85)]==='map'&&Log[l(0x8a)](l(0x7e)),b['type']===l(0x80)&&Log[l(0x8a)](l(0x7e));});}catch(d){Log[k(0x84)](d);}});
1
+ const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0x1bb))/0x1+-parseInt(h(0x1c3))/0x2*(parseInt(h(0x1cb))/0x3)+parseInt(h(0x1bc))/0x4+parseInt(h(0x1ba))/0x5*(parseInt(h(0x1b9))/0x6)+-parseInt(h(0x1c8))/0x7+parseInt(h(0x1cf))/0x8+-parseInt(h(0x1be))/0x9*(-parseInt(h(0x1bd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0xa22b1));const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x1c9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x1c4)]()[j(0x1d3)](j(0x1d1))[j(0x1c4)]()[j(0x1cd)](a70a)[j(0x1d3)]('(((.+)+)+)+$');});a70a();function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x1b8;let f=c[d];return f;},a70d(a,b);}function a70c(){const n=['7040820oGJCXK','18aOtwtM','fsi','login','kit','Invalid\x20type\x20','4jBqgMc','toString','error','getProjectConfig','resourceName','3727885KQQiuu','apply','notice','1910784cTmmDz','map','constructor','type','1282008yhqEiX','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','(((.+)+)+)+$','NIE','search','maka\x20g:kit\x20--type=map','210624oYUvcs','35nLKQfw','230841jsoeke','3549400qIuxZF'];a70c=function(){return n;};return a70c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a70k(0x1c1),'aliases':['k'],'usage':a70k(0x1d0),'shortDesc':'(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','validOpts':[a70k(0x1ce)],'examples':[a70k(0x1b8),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const l=a70k;try{const c=this[l(0x1bf)][l(0x1c6)]();this[l(0x1bf)]['withValue'](c,async()=>{const m=l,d={'name':pascalCase(b[m(0x1c7)]),'fileName':paramCase(b[m(0x1c7)]),'camelCase':camelCase(b[m(0x1c7)]),'type':b[m(0x1ce)],'engine':c['engines']['js'],'noRename':!![]},f=['leaflet-map',m(0x1c0)];if(f['indexOf'](d[m(0x1ce)])<0x0){const g=d[m(0x1ce)]?d[m(0x1ce)]:'(blank)';Log[m(0x1c5)](m(0x1c2)+g+',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument');return;}b[m(0x1ce)]===m(0x1cc)&&Log[m(0x1ca)](m(0x1d2)),b[m(0x1ce)]===m(0x1c0)&&Log[m(0x1ca)](m(0x1d2));});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- const a64r=a64d;(function(a,b){const o=a64d,c=a();while(!![]){try{const d=-parseInt(o(0x14c))/0x1*(parseInt(o(0x163))/0x2)+parseInt(o(0x146))/0x3*(-parseInt(o(0x153))/0x4)+-parseInt(o(0x165))/0x5*(-parseInt(o(0x11e))/0x6)+parseInt(o(0x122))/0x7*(parseInt(o(0x14e))/0x8)+parseInt(o(0x128))/0x9*(-parseInt(o(0x132))/0xa)+-parseInt(o(0x15b))/0xb*(-parseInt(o(0x13b))/0xc)+parseInt(o(0x126))/0xd*(parseInt(o(0x11d))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0x3f235));const a64b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a64d;if(c){const e=c[p(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a64a=a64b(this,function(){const q=a64d;return a64a[q(0x134)]()[q(0x125)]('(((.+)+)+)+$')['toString']()[q(0x121)](a64a)['search'](q(0x11f));});function a64c(){const u=['graphql','search','429GhrTbT','withHook','9LTyoOK','component/component.js','css','.app-tests.js','tsx','create','className','relative','fsi','resourceName','2410130gxBiFW','imports','toString','Scaffolding\x20for\x20a\x20React\x20Layout.','withTranslations','setTemplate','api','\x20}\x20from\x20\x27','layout','12VqyHMU','features','string','injectAtEndOfFile','import\x20\x27./','/imports/ui/layouts','react','test','getProjectConfig','template','engines','549nJCgUJ','template/template.css','pathFromApp','none','maka\x20g:l\x20web/safari','true','17zgvdIi','pathFromProject','120HAGXDp','theme','templates.js','.js','export\x20{\x20','4268tmMAeB','ramda','maka\x20g:layout\x20mobile/iPhone8','findAppDirectory','client','test/test.js','ssr','startup','3681007SrbGcx','installNpmPackage','apply','fileName','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','import\x20{\x20','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','38788qCYOUv','withHooks','12805AEmxzH','dir','rewriteDestinationPathForEngine','checkNpmPackage','withValue','\x27;\x0a','82474XEBWua','780vQJLsG','(((.+)+)+)+$','includes','constructor','75887CiqQLp','warn'];a64c=function(){return u;};return a64c();}a64a();import a64e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0x11a;let f=c[d];return f;},a64d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a64r(0x12d)]({'name':a64r(0x13a),'aliases':aliases,'usage':a64r(0x162),'shortDesc':a64r(0x135),'validOpts':[],'examples':[a64r(0x155),a64r(0x14a)]},function(a,b){const s=a64r,c=s(0x140),d=this[s(0x130)][s(0x156)](),e=this[s(0x130)]['pathFromApp']({'pathParts':[c,b['dir'],paramCase(b[s(0x131)]),paramCase(b['resourceName'])]}),f=this['fsi'][s(0x143)]();this[s(0x130)][s(0x11b)](f,()=>{const t=s;typeof f['template']['test']==='string'&&(f[t(0x144)][t(0x142)]=f[t(0x144)][t(0x142)]===t(0x14b)?!![]:![],this[t(0x130)]['setTemplate'](t(0x142),f[t(0x144)][t(0x142)]));typeof f[t(0x144)][t(0x12a)]===t(0x13d)&&(f[t(0x144)][t(0x12a)]=f[t(0x144)][t(0x12a)]==='true'?!![]:![],this[t(0x130)]['setTemplate']('css',f[t(0x144)][t(0x12a)]));typeof f[t(0x144)]['js']===t(0x13d)&&(f['template']['js']=f[t(0x144)]['js']===t(0x14b)?!![]:![],this[t(0x130)][t(0x137)]('js',f[t(0x144)]['js']));!f[t(0x13c)]&&(f[t(0x13c)]={});const g=b['_']?b['_'][0x0]['split'](':')[0x1]:![],h=b['_']&&aliases[t(0x120)](g);h&&!this[t(0x11a)]('ramda')&&(Log[t(0x123)](t(0x15f)),this[t(0x130)][t(0x15c)](t(0x154),{'cwd':d}));if(h&&!this[t(0x11a)](t(0x141))){Log[t(0x123)](t(0x160));return;}const i={'name':pascalCase(b[t(0x131)]),'myPath':a64e[t(0x12f)](this[t(0x130)][t(0x14d)]({}),e),'cssCaseName':paramCase(b[t(0x131)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[t(0x131)]),'graphql':f[t(0x145)][t(0x124)],'features':f[t(0x13c)],'client':f[t(0x145)]['client'],'api':f[t(0x145)][t(0x138)],'ssr':f[t(0x145)][t(0x159)],'test':f[t(0x145)][t(0x142)],'theme':f[t(0x145)][t(0x14f)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x13c)][t(0x136)]};f[t(0x13c)]?.[t(0x164)]||b[t(0x127)]?this['fsi'][t(0x144)]({'srcPath':'hook/hook.js','destPath':e+t(0x151),'framework':t(0x141),'context':i,'config':f}):this[t(0x130)][t(0x144)]({'srcPath':t(0x129),'destPath':e+t(0x151),'framework':'react','context':i,'config':f});f['engines'][t(0x142)]!==t(0x149)&&this['fsi']['template']({'srcPath':t(0x158),'destPath':e+t(0x12b),'framework':t(0x141),'context':i,'config':f});f['template']['css']&&(this[t(0x130)][t(0x144)]({'srcPath':t(0x147),'destPath':e+'.css','context':Object['assign']({},i,{'className':paramCase(b[t(0x131)])}),'config':f}),this[t(0x130)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[t(0x145)]['js'],'content':t(0x13f)+i['fileName']+'.'+f[t(0x145)][t(0x12a)]+'\x27;'}));const j=b['dir']?'/'+b[t(0x166)]+'/':'/',k=''+c+j+i[t(0x15e)]+'/'+i[t(0x15e)];let l;if(f[t(0x145)][t(0x159)]===t(0x14b)){const m=this[t(0x130)][t(0x148)]({'pathParts':['imports',t(0x15a),'lib',t(0x150)]});l=this[t(0x130)][t(0x167)]({'pathParts':[m],'config':f});}else{const n=this[t(0x130)][t(0x148)]({'pathParts':[t(0x133),t(0x15a),t(0x157),t(0x150)]});l=this[t(0x130)][t(0x167)]({'pathParts':[n],'config':f});}f[t(0x145)][t(0x157)]===t(0x141)?(f[t(0x145)]['js']===t(0x12c)?this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x161)+i[t(0x12e)]+t(0x139)+k+t(0x11c)}):this[t(0x130)]['injectAtBeginningOfFile']({'filePath':l,'content':t(0x161)+i[t(0x12e)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x145)]['js']+t(0x11c)}),this[t(0x130)]['injectAtEndOfFile']({'filePath':l,'content':t(0x152)+i[t(0x12e)]+'\x20};\x0a'})):this[t(0x130)][t(0x13e)]({'filePath':l,'content':'import\x20\x27'+k+'.'+f[t(0x145)]['js']+t(0x11c)});});});
1
+ const a71q=a71d;(function(a,b){const o=a71d,c=a();while(!![]){try{const d=-parseInt(o(0x140))/0x1*(parseInt(o(0x13c))/0x2)+-parseInt(o(0x134))/0x3+-parseInt(o(0x112))/0x4+parseInt(o(0x10b))/0x5*(parseInt(o(0x135))/0x6)+parseInt(o(0x118))/0x7+-parseInt(o(0x10f))/0x8*(-parseInt(o(0x11b))/0x9)+-parseInt(o(0x124))/0xa*(parseInt(o(0x12a))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a71c,0xc6d29));const a71b=(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;};}()),a71a=a71b(this,function(){const p=a71d;return a71a['toString']()[p(0x143)](p(0x144))[p(0x139)]()[p(0x137)](a71a)[p(0x143)](p(0x144));});a71a();function a71c(){const t=['assign','1365177jEHaGB','split','export\x20{\x20','withHook','\x20};\x0a','true','tsx','template/template.css','withTranslations','startup','2522550TazsUe','1290cibiaF','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','constructor','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','toString','pathFromProject','Scaffolding\x20for\x20a\x20React\x20Layout.','122AVVDmL','getProjectConfig','none','\x20}\x20from\x20\x27','1529PlLvBP','api','react','search','(((.+)+)+)+$','features','fileName','warn','string','\x27;\x0a','ssr','/imports/ui/layouts','test','injectAtEndOfFile','findAppDirectory','templates.js','test/test.js','setTemplate','template','includes','checkNpmPackage','import\x20\x27','22335lQsAcN','.js','installNpmPackage','resourceName','16mlrpqo','withValue','dir','1263624yoMTps','injectAtBeginningOfFile','engines','theme','import\x20\x27./','fsi','2485630jQVTZs','className','client','6162489lUiklB','graphql','pathFromApp','ramda','imports','relative','import\x20{\x20','layout','component/component.js','50KDULeE','css','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','create','.app-tests.js'];a71c=function(){return t;};return a71c();}import a71e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';function a71d(a,b){const c=a71c();return a71d=function(d,e){d=d-0x109;let f=c[d];return f;},a71d(a,b);}const aliases=['l'];Generator[a71q(0x127)]({'name':a71q(0x122),'aliases':aliases,'usage':a71q(0x136),'shortDesc':a71q(0x13b),'validOpts':[],'examples':['maka\x20g:layout\x20mobile/iPhone8','maka\x20g:l\x20web/safari']},function(a,b){const r=a71q,c=r(0x14b),d=this[r(0x117)][r(0x14e)](),e=this['fsi']['pathFromApp']({'pathParts':[c,b[r(0x111)],paramCase(b['resourceName']),paramCase(b[r(0x10e)])]}),f=this[r(0x117)][r(0x13d)]();this['fsi'][r(0x110)](f,()=>{const s=r;typeof f[s(0x152)][s(0x14c)]==='string'&&(f[s(0x152)][s(0x14c)]=f[s(0x152)][s(0x14c)]===s(0x12f)?!![]:![],this['fsi']['setTemplate']('test',f[s(0x152)][s(0x14c)]));typeof f[s(0x152)][s(0x125)]===s(0x148)&&(f['template'][s(0x125)]=f[s(0x152)][s(0x125)]===s(0x12f)?!![]:![],this['fsi'][s(0x151)]('css',f[s(0x152)][s(0x125)]));typeof f['template']['js']==='string'&&(f[s(0x152)]['js']=f[s(0x152)]['js']===s(0x12f)?!![]:![],this['fsi'][s(0x151)]('js',f[s(0x152)]['js']));!f[s(0x145)]&&(f[s(0x145)]={});const g=b['_']?b['_'][0x0][s(0x12b)](':')[0x1]:![],h=b['_']&&aliases[s(0x153)](g);h&&!this[s(0x109)](s(0x11e))&&(Log[s(0x147)](s(0x138)),this['fsi'][s(0x10d)]('ramda',{'cwd':d}));if(h&&!this[s(0x109)](s(0x142))){Log[s(0x147)](s(0x126));return;}const i={'name':pascalCase(b['resourceName']),'myPath':a71e[s(0x120)](this[s(0x117)][s(0x13a)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[s(0x10e)]),'camelCaseName':camelCase(b[s(0x10e)]),'fileName':paramCase(b[s(0x10e)]),'graphql':f[s(0x114)][s(0x11c)],'features':f[s(0x145)],'client':f[s(0x114)]['client'],'api':f[s(0x114)][s(0x141)],'ssr':f[s(0x114)][s(0x14a)],'test':f[s(0x114)]['test'],'theme':f[s(0x114)][s(0x115)],'isComponent':![],'isLayout':!![],'withTranslations':f['features'][s(0x132)]};f[s(0x145)]?.['withHooks']||b[s(0x12d)]?this[s(0x117)][s(0x152)]({'srcPath':'hook/hook.js','destPath':e+s(0x10c),'framework':s(0x142),'context':i,'config':f}):this['fsi'][s(0x152)]({'srcPath':s(0x123),'destPath':e+s(0x10c),'framework':s(0x142),'context':i,'config':f});f[s(0x114)][s(0x14c)]!==s(0x13e)&&this['fsi'][s(0x152)]({'srcPath':s(0x150),'destPath':e+s(0x128),'framework':s(0x142),'context':i,'config':f});f['template']['css']&&(this[s(0x117)][s(0x152)]({'srcPath':s(0x131),'destPath':e+'.css','context':Object[s(0x129)]({},i,{'className':paramCase(b[s(0x10e)])}),'config':f}),this[s(0x117)][s(0x113)]({'filePath':e+'.'+f[s(0x114)]['js'],'content':s(0x116)+i['fileName']+'.'+f['engines'][s(0x125)]+'\x27;'}));const j=b[s(0x111)]?'/'+b[s(0x111)]+'/':'/',k=''+c+j+i[s(0x146)]+'/'+i[s(0x146)];let l;if(f[s(0x114)]['ssr']===s(0x12f)){const m=this[s(0x117)]['pathFromApp']({'pathParts':[s(0x11f),'startup','lib',s(0x14f)]});l=this[s(0x117)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':f});}else{const n=this[s(0x117)][s(0x11d)]({'pathParts':[s(0x11f),s(0x133),s(0x11a),'templates.js']});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[s(0x114)][s(0x11a)]==='react'?(f[s(0x114)]['js']===s(0x130)?this[s(0x117)][s(0x113)]({'filePath':l,'content':s(0x121)+i[s(0x119)]+s(0x13f)+k+s(0x149)}):this['fsi'][s(0x113)]({'filePath':l,'content':s(0x121)+i[s(0x119)]+s(0x13f)+k+'.'+f[s(0x114)]['js']+s(0x149)}),this['fsi'][s(0x14d)]({'filePath':l,'content':s(0x12c)+i['className']+s(0x12e)})):this[s(0x117)][s(0x14d)]({'filePath':l,'content':s(0x10a)+k+'.'+f[s(0x114)]['js']+s(0x149)});});});
@@ -1 +1 @@
1
- const a65i=a65d;(function(a,b){const f=a65d,c=a();while(!![]){try{const d=parseInt(f(0xb8))/0x1+parseInt(f(0xaa))/0x2+-parseInt(f(0xb0))/0x3+parseInt(f(0xb2))/0x4+-parseInt(f(0xb7))/0x5+-parseInt(f(0xab))/0x6+parseInt(f(0xae))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x5ab70));function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0xa9;let f=c[d];return f;},a65d(a,b);}const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a65d;if(c){const e=c[g(0xaf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const h=a65d;return a65a['toString']()['search'](h(0xa9))[h(0xba)]()[h(0xac)](a65a)[h(0xb5)]('(((.+)+)+)+$');});a65a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a65i(0xad),'shortDesc':a65i(0xb1),'validOpts':[],'description':a65i(0xb4),'usage':a65i(0xb9),'examples':[a65i(0xb6),a65i(0xb3)]},function(){return null;});function a65c(){const j=['Maka!','1914092zGVMEE','maka\x20g:hook\x20cool-hook','\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','search','maka\x20generate:api\x20Trucks','2037825tdZIKz','175074bixwtN','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','toString','(((.+)+)+)+$','1292320xzLBEK','3758652SoKlgr','constructor','maka','1708035PVukUl','apply','414561eRgEPM'];a65c=function(){return j;};return a65c();}export default MakaGen;
1
+ const a72h=a72d;(function(a,b){const f=a72d,c=a();while(!![]){try{const d=-parseInt(f(0xc8))/0x1*(parseInt(f(0xc6))/0x2)+parseInt(f(0xc4))/0x3+-parseInt(f(0xc2))/0x4+parseInt(f(0xcb))/0x5*(parseInt(f(0xd3))/0x6)+-parseInt(f(0xc3))/0x7*(parseInt(f(0xc7))/0x8)+-parseInt(f(0xd2))/0x9+parseInt(f(0xca))/0xa*(parseInt(f(0xd1))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a72c,0x63fe7));const a72b=(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;};}()),a72a=a72b(this,function(){const g=a72d;return a72a['toString']()[g(0xd5)](g(0xd0))[g(0xd4)]()['constructor'](a72a)[g(0xd5)](g(0xd0));});a72a();function a72d(a,b){const c=a72c();return a72d=function(d,e){d=d-0xc2;let f=c[d];return f;},a72d(a,b);}function a72c(){const i=['Maka!','(((.+)+)+)+$','22OPeKWN','4354956XNoxdM','3138nXNTqE','toString','search','833028hTtVQS','230104PYhRwG','166431NJOqbB','maka\x20g:hook\x20cool-hook','71824dxDvNo','80fkbqJe','3vcCLFA','maka\x20generate:api\x20Trucks','5010290QosttC','4595Iguzyo','maka','\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','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]'];a72c=function(){return i;};return a72c();}import{Generator}from'../generator.js';const MakaGen=new Generator({'name':a72h(0xcc),'shortDesc':a72h(0xcf),'validOpts':[],'description':a72h(0xcd),'usage':a72h(0xce),'examples':[a72h(0xc9),a72h(0xc5)]},function(){return null;});export default MakaGen;
@@ -1 +1 @@
1
- const a66n=a66d;(function(a,b){const k=a66d,c=a();while(!![]){try{const d=-parseInt(k(0xfb))/0x1+-parseInt(k(0xff))/0x2+parseInt(k(0xf3))/0x3*(parseInt(k(0xdf))/0x4)+-parseInt(k(0x106))/0x5+-parseInt(k(0x104))/0x6+parseInt(k(0xf6))/0x7+parseInt(k(0xf7))/0x8*(parseInt(k(0xf2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x2aecc));const a66b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a66d;if(c){const e=c[l(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a66a=a66b(this,function(){const m=a66d;return a66a[m(0xee)]()[m(0xe9)](m(0xe1))[m(0xee)]()[m(0xf8)](a66a)[m(0xe9)](m(0xe1));});a66a();function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0xdc;let f=c[d];return f;},a66d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a66c(){const q=['-rpc-method\x27;','688524akkpHU','index.','startup','template','resourceName','1653276qYojau','appPathPrefix','1619195VnjJZp','dir','installMeteorPackage','import\x20\x27./methods','4UREROY','apply','(((.+)+)+)+$','methods','-rpc-method.','mdg:validated-method','checkMeteorPackage','method','maka\x20g:method\x20todos','pathFromApp','search','check','create','ddp-rate-limiter','fsi','toString','method/method.js','engines','imports','1697778cVZUGy','974904ulHrMj','injectAtEndOfFile','check\x20ddp-rate-limiter\x20mdg:validated-method','2181179vkXgBn','24GzERcy','constructor','error','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','83024vCYIcz','withValue','tsx'];a66c=function(){return q;};return a66c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a66n(0xeb)]({'name':a66n(0xe6),'aliases':['m'],'usage':'maka\x20{generate,\x20g}:{method,\x20m}\x20name','checkWhere':!![],'shortDesc':a66n(0xfa),'validOpts':[a66n(0xdc)],'examples':[a66n(0xe7)]},function(a,b){const o=a66n;try{const c=this['fsi']['getProjectConfig']();this[o(0xed)][o(0xfc)](c,async()=>{const p=o,d=paramCase(b['resourceName']),f={'name':b[p(0x103)],'fileName':d,'className':pascalCase(b[p(0x103)]),'camelCase':camelCase(b[p(0x103)]),'noRename':!![]};let g='js';c[p(0xf0)]['js']===p(0xfd)&&(g='ts');const h=this['fsi'][p(0xe8)]({});(!this[p(0xed)][p(0xe5)](p(0xea))||!this[p(0xed)][p(0xe5)](p(0xec))||!this[p(0xed)]['checkMeteorPackage'](p(0xe4)))&&(Log['warn']('Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...'),this[p(0xed)][p(0xdd)](p(0xf5),{'cwd':h}));this[p(0xed)][p(0x102)]({'srcPath':p(0xef),'destPath':this[p(0xed)][p(0xe8)]({'pathParts':[p(0xf1),p(0x101),b[p(0x105)],p(0xe2),b['dir'],d+p(0xe3)+g]}),'context':f,'config':c});const i=b[p(0xdc)]?'/'+b[p(0xdc)]+'/':'/',j=this[p(0xed)][p(0xe8)]({'pathParts':[p(0xf1),p(0x101),b['appPathPrefix'],p(0x100)+c[p(0xf0)]['js']]});this[p(0xed)][p(0xf4)]({'filePath':j,'content':p(0xde)+i+d+p(0xfe)});});}catch(d){Log[o(0xf9)](d);}});
1
+ function a73c(){const q=['2699044WWcKEi','56cGKJkj','check\x20ddp-rate-limiter\x20mdg:validated-method','-rpc-method.','8EGpMUY','resourceName','engines','ddp-rate-limiter','669744LqtUcu','check','84EeSCPN','search','installMeteorPackage','(((.+)+)+)+$','startup','30434789zomXka','withValue','warn','index.','apply','fsi','template','10CTTVcf','toString','constructor','maka\x20{generate,\x20g}:{method,\x20m}\x20name','315579sDTxtH','checkMeteorPackage','2701359dzOUFI','error','67983vypcru','methods','dir','imports','appPathPrefix','pathFromApp','2196630BBOQkj','method/method.js','tsx','method','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','mdg:validated-method','import\x20\x27./methods','-rpc-method\x27;','create','injectAtEndOfFile','maka\x20g:method\x20todos','getProjectConfig'];a73c=function(){return q;};return a73c();}const a73n=a73d;(function(a,b){const k=a73d,c=a();while(!![]){try{const d=parseInt(k(0x12e))/0x1+-parseInt(k(0x14e))/0x2*(-parseInt(k(0x132))/0x3)+-parseInt(k(0x144))/0x4*(-parseInt(k(0x12a))/0x5)+parseInt(k(0x14c))/0x6*(parseInt(k(0x145))/0x7)+parseInt(k(0x148))/0x8*(parseInt(k(0x130))/0x9)+-parseInt(k(0x138))/0xa+-parseInt(k(0x153))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a73c,0xc90f8));const a73b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a73d;if(c){const e=c[l(0x157)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a73a=a73b(this,function(){const m=a73d;return a73a[m(0x12b)]()[m(0x14f)]('(((.+)+)+)+$')['toString']()[m(0x12c)](a73a)['search'](m(0x151));});function a73d(a,b){const c=a73c();return a73d=function(d,e){d=d-0x12a;let f=c[d];return f;},a73d(a,b);}a73a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a73n(0x140)]({'name':a73n(0x13b),'aliases':['m'],'usage':a73n(0x12d),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','validOpts':[a73n(0x134)],'examples':[a73n(0x142)]},function(a,b){const o=a73n;try{const c=this[o(0x158)][o(0x143)]();this[o(0x158)][o(0x154)](c,async()=>{const p=o,d=paramCase(b[p(0x149)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b['resourceName']),'camelCase':camelCase(b[p(0x149)]),'noRename':!![]};let g='js';c[p(0x14a)]['js']===p(0x13a)&&(g='ts');const h=this[p(0x158)][p(0x137)]({});(!this[p(0x158)][p(0x12f)](p(0x14d))||!this[p(0x158)][p(0x12f)](p(0x14b))||!this[p(0x158)]['checkMeteorPackage'](p(0x13d)))&&(Log[p(0x155)](p(0x13c)),this[p(0x158)][p(0x150)](p(0x146),{'cwd':h}));this[p(0x158)][p(0x159)]({'srcPath':p(0x139),'destPath':this['fsi'][p(0x137)]({'pathParts':[p(0x135),p(0x152),b[p(0x136)],p(0x133),b[p(0x134)],d+p(0x147)+g]}),'context':f,'config':c});const i=b[p(0x134)]?'/'+b[p(0x134)]+'/':'/',j=this[p(0x158)]['pathFromApp']({'pathParts':[p(0x135),'startup',b[p(0x136)],p(0x156)+c[p(0x14a)]['js']]});this['fsi'][p(0x141)]({'filePath':j,'content':p(0x13e)+i+d+p(0x13f)});});}catch(d){Log[o(0x131)](d);}});