@maka/maka-cli 4.5.10 → 4.5.12

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 (97) hide show
  1. package/bundle/obf/package.json +2 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/aws/_index.js +1 -1
  5. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  6. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  7. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/build/_index.js +1 -1
  17. package/bundle/obf/src/commands/build/build.js +1 -1
  18. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/create.js +1 -1
  20. package/bundle/obf/src/commands/debug.js +1 -1
  21. package/bundle/obf/src/commands/deploy.js +1 -1
  22. package/bundle/obf/src/commands/game/_index.js +1 -1
  23. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/game/play.command.js +1 -1
  25. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/generate.js +1 -1
  29. package/bundle/obf/src/commands/get/_index.js +1 -1
  30. package/bundle/obf/src/commands/get/get.command.js +1 -1
  31. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/help.js +1 -1
  35. package/bundle/obf/src/commands/jsdoc.js +1 -1
  36. package/bundle/obf/src/commands/lint.js +1 -1
  37. package/bundle/obf/src/commands/login.js +1 -1
  38. package/bundle/obf/src/commands/logout.js +1 -1
  39. package/bundle/obf/src/commands/logs.js +1 -1
  40. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  41. package/bundle/obf/src/commands/murder.js +1 -1
  42. package/bundle/obf/src/commands/proxy.js +1 -1
  43. package/bundle/obf/src/commands/reconfig.js +1 -1
  44. package/bundle/obf/src/commands/run/_index.js +1 -1
  45. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  46. package/bundle/obf/src/commands/run/run.command.js +1 -1
  47. package/bundle/obf/src/commands/set/_index.js +1 -1
  48. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  49. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  50. package/bundle/obf/src/commands/set/set.command.js +1 -1
  51. package/bundle/obf/src/commands/ssh.js +1 -1
  52. package/bundle/obf/src/commands/ssl.js +1 -1
  53. package/bundle/obf/src/commands/test.js +1 -1
  54. package/bundle/obf/src/commands/version.js +1 -1
  55. package/bundle/obf/src/error.js +1 -1
  56. package/bundle/obf/src/generator.js +1 -1
  57. package/bundle/obf/src/generators/_index.js +1 -1
  58. package/bundle/obf/src/generators/api.js +1 -1
  59. package/bundle/obf/src/generators/collection.js +1 -1
  60. package/bundle/obf/src/generators/component.js +1 -1
  61. package/bundle/obf/src/generators/config.js +1 -1
  62. package/bundle/obf/src/generators/dbc.js +1 -1
  63. package/bundle/obf/src/generators/dockerfile.js +1 -1
  64. package/bundle/obf/src/generators/hook.js +1 -1
  65. package/bundle/obf/src/generators/kit.js +1 -1
  66. package/bundle/obf/src/generators/layout.js +1 -1
  67. package/bundle/obf/src/generators/maka.gen.js +1 -1
  68. package/bundle/obf/src/generators/methods.js +1 -1
  69. package/bundle/obf/src/generators/package.js +1 -1
  70. package/bundle/obf/src/generators/page.js +1 -1
  71. package/bundle/obf/src/generators/publish.js +1 -1
  72. package/bundle/obf/src/generators/route.js +1 -1
  73. package/bundle/obf/src/generators/service.js +1 -1
  74. package/bundle/obf/src/generators/services/_index.js +1 -1
  75. package/bundle/obf/src/generators/services/openssl.js +1 -1
  76. package/bundle/obf/src/generators/services/translation.js +1 -1
  77. package/bundle/obf/src/maka.js +1 -1
  78. package/bundle/obf/src/templates/meteor/dbc/conn.js +1 -1
  79. package/bundle/obf/src/tool.js +1 -1
  80. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  81. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  82. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  83. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  84. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  85. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  86. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  87. package/bundle/obf/src/tools/https/https.class.js +1 -1
  88. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  89. package/bundle/obf/src/tools/log/log.class.js +1 -1
  90. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  91. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  92. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  93. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  94. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  95. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  96. package/package.json +2 -1
  97. package/bundle/obf/src/commands/install.js +0 -1
@@ -1 +1 @@
1
- (function(a,b){var f=a56d,c=a();while(!![]){try{var d=parseInt(f(0x7b))/0x1*(parseInt(f(0x6e))/0x2)+parseInt(f(0x71))/0x3+parseInt(f(0x6d))/0x4*(parseInt(f(0x7a))/0x5)+-parseInt(f(0x76))/0x6+parseInt(f(0x73))/0x7+-parseInt(f(0x70))/0x8*(parseInt(f(0x79))/0x9)+parseInt(f(0x74))/0xa*(parseInt(f(0x6f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a56c,0xdc584));var a56b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a56d;if(c){var e=c[g(0x78)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a56a=a56b(this,function(){var h=a56d;return a56a[h(0x72)]()[h(0x75)](h(0x77))[h(0x72)]()['constructor'](a56a)['search'](h(0x77));});a56a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';function a56c(){var i=['1jGbNpn','10504ePORTp','878704AaSMlJ','12078IifeeD','8uYOWxv','196416RQRGJT','toString','3925404CUoNRL','15070rvvqfX','search','7858266dCvGQA','(((.+)+)+)+$','apply','8093817jsteKy','745zLEwak'];a56c=function(){return i;};return a56c();}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 a56d(a,b){var c=a56c();return a56d=function(d,e){d=d-0x6d;var f=c[d];return f;},a56d(a,b);}import'./maka.gen.js';
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 +1 @@
1
- const a57z=a57d;(function(a,b){const w=a57d,c=a();while(!![]){try{const d=parseInt(w(0x1d6))/0x1*(-parseInt(w(0x1dc))/0x2)+parseInt(w(0x1d4))/0x3*(-parseInt(w(0x18d))/0x4)+-parseInt(w(0x1e1))/0x5*(parseInt(w(0x1bb))/0x6)+-parseInt(w(0x1c9))/0x7+parseInt(w(0x1d3))/0x8+-parseInt(w(0x1a6))/0x9*(-parseInt(w(0x1aa))/0xa)+parseInt(w(0x1b7))/0xb*(parseInt(w(0x18f))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a57c,0x41943));const a57b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a57d;if(c){const e=c[x(0x1ad)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a57a=a57b(this,function(){const y=a57d;return a57a[y(0x1d9)]()[y(0x1ba)](y(0x1d5))['toString']()[y(0x1c6)](a57a)[y(0x1ba)](y(0x1d5));});a57a();import{Generator}from'../generator.js';function a57d(a,b){const c=a57c();return a57d=function(d,e){d=d-0x18d;let f=c[d];return f;},a57d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a57e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a57z(0x1b9)]({'name':a57z(0x1dd),'aliases':['a'],'usage':a57z(0x1bc),'shortDesc':a57z(0x1a1),'validOpts':['dir'],'examples':[a57z(0x18e)]},async function(a,b){const A=a57z;try{const c=this[A(0x1af)]['getProjectConfig'](),d=[{'name':A(0x1d7),'value':A(0x19b)},{'name':A(0x19f),'value':A(0x1be)},{'name':A(0x1c2),'value':A(0x19d)}];c[A(0x1ea)]['api']===A(0x1ce)&&d[A(0x1eb)]({'name':'REST\x20API','value':'withRest'});c['engines'][A(0x192)]===A(0x1c8)&&d[A(0x1eb)]({'name':'GraphQL','value':A(0x1ac)});const f={'type':A(0x1b5),'name':A(0x1a5),'message':'API\x20boundaries\x20to\x20create','pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[A(0x1c7)](f);g['length']===0x0&&(Log[A(0x1e8)](A(0x197)),process['exit'](0x1)),this[A(0x1af)][A(0x1db)](c,async()=>{const B=A,h=this['fsi']['pathFromApp']({}),i=a[0x0],j=paramCase(i),k=camelCase(i),l=b['dir']?'/'+b[B(0x1e0)]+'/':'/',m={'name':pascalCase(i),'fileName':j,'camelCase':pascalCase(i),'optsDir':l,'api':c[B(0x1ea)][B(0x1dd)],'graphql':c[B(0x1ea)][B(0x192)],'test':c[B(0x1ea)][B(0x1df)],'noRename':!![],'withPubs':g[B(0x1a9)](B(0x19d)),'withFixtures':g[B(0x1a9)](B(0x1be)),'withMethods':g[B(0x1a9)](B(0x19b)),'withRest':g['includes'](B(0x1a8))};let n='js';c['engines']['js']===B(0x1ab)&&(n='ts');(!this['fsi'][B(0x1de)](B(0x1c4))||!this[B(0x1af)][B(0x1de)]('maka:check')||!this[B(0x1af)]['checkMeteorPackage'](B(0x1a3))||!this[B(0x1af)][B(0x1de)](B(0x1d0))||!this['fsi']['checkMeteorPackage'](B(0x1e6)))&&(Log[B(0x19e)](B(0x1b0)),await this[B(0x1af)]['installMeteorPackage'](B(0x1a0),{'cwd':h}));const o=a57e['findGenerator'](B(0x19a));o&&await o['invoke']([j],{'config':c,'where':'server'});c[B(0x1ea)][B(0x1dd)]===B(0x1ce)&&(m[B(0x1a8)]&&this[B(0x1af)]['template']({'srcPath':'api/api.js','destPath':this[B(0x1af)][B(0x1a4)]({'pathParts':[B(0x1cf),'api',b['dir'],j,B(0x199)+n]}),'context':m,'config':c}));m['withMethods']&&this['fsi'][B(0x1bf)]({'srcPath':B(0x1b4),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1cf),B(0x1dd),b[B(0x1e0)],j,B(0x195)+n]}),'context':m,'config':c});m[B(0x1be)]&&this[B(0x1af)]['template']({'srcPath':B(0x1e5),'destPath':this[B(0x1af)][B(0x1a4)]({'pathParts':['imports','api',b[B(0x1e0)],j,B(0x1ae)+n]}),'context':m,'config':c});c[B(0x1ea)][B(0x1df)]!==B(0x1b3)&&this[B(0x1af)][B(0x1bf)]({'srcPath':B(0x1e9),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1cf),'api',b[B(0x1e0)],j,j+B(0x196)+n]}),'context':m,'config':c});m['withPubs']&&this[B(0x1af)]['template']({'srcPath':B(0x194),'destPath':this[B(0x1af)][B(0x1a4)]({'pathParts':['imports',B(0x1dd),b[B(0x1e0)],j,B(0x1c1)+n]}),'context':m,'config':c});if(c[B(0x1ea)][B(0x192)]===B(0x1c8)){if(g[B(0x1a9)](B(0x1ac))){const q=this['fsi'][B(0x1a4)]({'pathParts':['imports','startup','server','index.'+c[B(0x1ea)]['js']]}),r=this[B(0x1af)][B(0x1a2)]({'pathParts':[q],'config':c}),s=this['fsi'][B(0x1a4)]({'pathParts':[B(0x1cf),B(0x1dd),b[B(0x1e0)],j,B(0x192),B(0x1bd)+n]}),t=B(0x1e7)+l+j+B(0x1b6);this['fsi'][B(0x1bf)]({'srcPath':B(0x19c),'destPath':s,'context':m,'config':c}),this[B(0x1af)][B(0x1c3)]({'filePath':r,'content':B(0x191)+k+B(0x1da)+t+'\x27;\x0a'}),this[B(0x1af)][B(0x1e4)]({'filePath':r,'content':'typeList.push('+k+B(0x1b1),'begin':B(0x1cb),'end':B(0x1e3)});const u=this[B(0x1af)][B(0x1a4)]({'pathParts':[B(0x1cf),B(0x1dd),b['dir'],j,B(0x192),B(0x1d1)+n]}),v=B(0x1e7)+l+j+B(0x193);this['fsi']['template']({'srcPath':B(0x190),'destPath':u,'context':m,'config':c}),this[B(0x1af)][B(0x1c3)]({'filePath':r,'content':B(0x198)+k+B(0x1d8)+v+'\x27;'}),this[B(0x1af)][B(0x1e4)]({'filePath':r,'content':B(0x1b2)+k+B(0x1d2),'begin':B(0x1cb),'end':B(0x1e3)});}}this['fsi'][B(0x1bf)]({'srcPath':B(0x1ca),'destPath':this['fsi']['pathFromApp']({'pathParts':[B(0x1cf),B(0x1e2),'server',B(0x1cc)+j+'-api.'+n]}),'context':m,'config':c,'force':!![]});const p=this[B(0x1af)][B(0x1a4)]({'pathParts':[B(0x1cf),'startup',B(0x1c5),B(0x1c0)+c[B(0x1ea)]['js']]});this[B(0x1af)][B(0x1cd)]({'filePath':p,'content':B(0x1a7)+j+B(0x1b8)});});}catch(h){console['log'](h),process['exit'](0x0);}});function a57c(){const C=['test','dir','20960vLVSpU','startup','if\x20\x5c(typeList','injectIntoFile','api/fixtures.js','mongo','/imports/api','error','api/tests.js','engines','push','1162228hzVabY','maka\x20g:api\x20todos','12408mfeOYH','api/resolvers.js','import\x20{\x20typeDefs\x20as\x20','graphql','/graphql/resolvers','api/publications.js','rpc-methods.','.app-tests.','No\x20API\x20boundaries\x20selected','\x0aimport\x20{\x20resolvers\x20as\x20','rest-api.','collection','withMethods','api/typeDefs.js','withPubs','notice','Fixtures','maka:rest\x20maka:check\x20ddp-rate-limiter\x20mdg:validated-method\x20mongo','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','rewriteDestinationPathForEngine','ddp-rate-limiter','pathFromApp','apiAnswers','603IfBTUD','import\x20\x27./register-','withRest','includes','18220ORHsZV','tsx','withGql','apply','fixtures.','fsi','Verifying\x20meteor\x20package\x20requirements\x20...','TypeDefs);\x0a','resolverList.push(','none','api/methods.js','checkbox','/graphql/typeDefs','10340MxyLin','-api\x27;','create','search','696hPAHQN','maka\x20{generate,\x20g}:{api}\x20<resource-name>','typeDefs.','withFixtures','template','index.','publications.','Publications','injectAtBeginningOfFile','maka:rest','server','constructor','options','apollo','171024WDJgCQ','api/register-api.js','const','register-','injectAtEndOfFile','rest','imports','mdg:validated-method','resolvers.','Resolvers);\x0a\x0a','82264krCDAr','3MoNiDM','(((.+)+)+)+$','83XxEnpY','RPC\x20(Methods)','Resolvers\x20}\x20from\x20\x27','toString','TypeDefs\x20}\x20from\x20\x27','withValue','830NowrJu','api','checkMeteorPackage'];a57c=function(){return C;};return a57c();}
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 +1 @@
1
- const a58m=a58d;(function(a,b){const k=a58d,c=a();while(!![]){try{const d=-parseInt(k(0xcd))/0x1*(parseInt(k(0xc7))/0x2)+-parseInt(k(0xde))/0x3*(-parseInt(k(0xdd))/0x4)+-parseInt(k(0xcb))/0x5+-parseInt(k(0xcf))/0x6*(parseInt(k(0xc8))/0x7)+-parseInt(k(0xc3))/0x8*(parseInt(k(0xc5))/0x9)+parseInt(k(0xd4))/0xa*(-parseInt(k(0xd6))/0xb)+parseInt(k(0xdc))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a58c,0x56568));const a58b=(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;};}()),a58a=a58b(this,function(){const l=a58d;return a58a[l(0xd9)]()[l(0xcc)](l(0xd2))[l(0xd9)]()[l(0xe0)](a58a)[l(0xcc)](l(0xd2));});a58a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a58d(a,b){const c=a58c();return a58d=function(d,e){d=d-0xc1;let f=c[d];return f;},a58d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a58m(0xce)]({'name':a58m(0xe2),'aliases':['col'],'usage':a58m(0xd3),'checkWhere':!![],'shortDesc':a58m(0xdf),'validOpts':[a58m(0xee),a58m(0xda)],'description':a58m(0xc9),'examples':[a58m(0xd5)]},async function(a,b){const n=a58m;try{const c=this[n(0xd0)]['pathFromApp']({}),d=this[n(0xd0)]['getProjectConfig']();this[n(0xd0)][n(0xe5)](d,async()=>{const o=n,f=paramCase(b['resourceName']),g={'name':pascalCase(b['resourceName']),'collectionName':pascalCase(b[o(0xe1)]),'fileName':f,'where':b[o(0xda)],'test':d['engines'][o(0xeb)],'noRename':!![]};let h='js';d[o(0xc6)]['js']==='tsx'&&(h='ts');!this['fsi'][o(0xdb)]('mongo')&&(Log['notice']('Verifying\x20meteor\x20package\x20requirements:\x20mongo\x20...'),await this[o(0xd0)]['installMeteorPackage'](o(0xc1),{'cwd':c}));!this[o(0xd0)][o(0xdb)]('maka:check')&&(Log[o(0xd8)](o(0xe3)),await this['fsi'][o(0xd1)](o(0xe9),{'cwd':c}));this[o(0xd0)][o(0xec)]({'srcPath':'collection/collection.js','destPath':this['fsi'][o(0xea)]({'pathParts':[o(0xed),o(0xe7),b[o(0xd7)],o(0xc4),b[o(0xee)],f+'.'+h]}),'context':g,'config':d});d[o(0xc6)][o(0xeb)]!=='none'&&this[o(0xd0)][o(0xec)]({'srcPath':o(0xe6),'destPath':this['fsi'][o(0xea)]({'pathParts':['imports','startup',b[o(0xd7)],o(0xc4),b[o(0xee)],f+o(0xc2)+h]}),'context':g,'config':d});const i=b[o(0xee)]?'/'+b[o(0xee)]+'/':'/',j=this[o(0xd0)]['pathFromApp']({'pathParts':['imports',o(0xe7),b['appPathPrefix'],o(0xe4)+d[o(0xc6)]['js']]});this[o(0xd0)][o(0xe8)]({'filePath':j,'content':o(0xca)+i+f+'\x27;'});});}catch(f){Log['error'](f);}});function a58c(){const p=['(((.+)+)+)+$','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','17950QIVinP','maka\x20g:collection\x20todos','3245SFZYMZ','appPathPrefix','notice','toString','where','checkMeteorPackage','14776536oRxxdz','445612yDfeTU','9bytaYu','Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','constructor','resourceName','collection','Verifying\x20meteor\x20package\x20requirements:\x20maka:check\x20...','index.','withValue','collection/tests.js','startup','injectAtEndOfFile','maka:check','pathFromApp','test','template','imports','dir','mongo','.app-tests.','10536zyYmED','collections','1638PCwDws','engines','4nnohns','141554iLDBbD','\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','import\x20\x27./collections','137940YFJApj','search','177237AAtBmq','create','18mVpcEG','fsi','installMeteorPackage'];a58c=function(){return p;};return a58c();}
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 +1 @@
1
- const a59p=a59d;(function(a,b){const n=a59d,c=a();while(!![]){try{const d=-parseInt(n(0xb8))/0x1*(-parseInt(n(0xb3))/0x2)+parseInt(n(0xcb))/0x3*(parseInt(n(0xda))/0x4)+parseInt(n(0xe7))/0x5+-parseInt(n(0xbd))/0x6+-parseInt(n(0xb6))/0x7+parseInt(n(0xac))/0x8*(parseInt(n(0xe3))/0x9)+parseInt(n(0xc9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a59c,0xb1df0));const a59b=(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;};}()),a59a=a59b(this,function(){const o=a59d;return a59a[o(0xb9)]()['search']('(((.+)+)+)+$')[o(0xb9)]()[o(0xce)](a59a)[o(0xc6)](o(0xcf));});a59a();import a59e from'path';import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';const aliases=[a59p(0xc3)];function a59c(){const s=['client','checkNpmPackage','.tests.js','comp','import\x20{\x20','error','search','warn','features','11757920akZXeY','ssr','1032gWYRwQ','\x20}\x20from\x20\x27','pathFromProject','constructor','(((.+)+)+)+$','imports','\x27;\x0a','injectAtBeginningOfFile','root','none','/imports/ui/components','string','lib','getProjectConfig','assign','436TJBlnh','maka\x20{generate,\x20g}:{comp}\x20[path/]<name>','cssCaseName','css','theme','fileName','reflux','import\x20\x27','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','9mLmvhj','export\x20{\x20','.js','tsx','2178235FPspll','dir','template/template.css','resourceName','test','setTemplate','withTranslations','injectAtEndOfFile','fsi','3942624cRPsST','true','withValue','react','templates.js','maka\x20g:comp\x20todos/todos-item','findAppDirectory','18CnxFqp','engines','className','10112949ZFWRnG','pathFromApp','14397JPhaXT','toString','ramda','relative','template','588414BSeIqU','Scaffolding\x20for\x20a\x20React\x20Component.\x0ahttps://reactjs.org/docs/react-component.html','test/test.js'];a59c=function(){return s;};return a59c();}function a59d(a,b){const c=a59c();return a59d=function(d,e){d=d-0xaa;let f=c[d];return f;},a59d(a,b);}Generator['create']({'name':'component','aliases':aliases,'usage':a59p(0xdb),'shortDesc':a59p(0xbe),'validOpts':[a59p(0xe8)],'examples':[a59p(0xb1)]},async function(a,b){const q=a59p;try{const c=this['fsi'][q(0xb2)](),d=q(0xd5),f=this[q(0xab)]['pathFromApp']({'pathParts':[d,b[q(0xe8)],paramCase(b[q(0xea)]),paramCase(b[q(0xea)])]}),g=await this[q(0xab)][q(0xd8)]();this[q(0xab)][q(0xae)](g,async()=>{const r=q;typeof g[r(0xbc)][r(0xeb)]===r(0xd6)&&(g[r(0xbc)][r(0xeb)]=g[r(0xbc)][r(0xeb)]===r(0xad)?!![]:![],this['fsi'][r(0xec)](r(0xeb),g[r(0xbc)][r(0xeb)]));typeof g[r(0xbc)][r(0xdd)]===r(0xd6)&&(g[r(0xbc)]['css']=g[r(0xbc)][r(0xdd)]==='true'?!![]:![],this[r(0xab)][r(0xec)](r(0xdd),g[r(0xbc)][r(0xdd)]));typeof g['template']['js']===r(0xd6)&&(g['template']['js']=g[r(0xbc)]['js']===r(0xad)?!![]:![],this[r(0xab)][r(0xec)]('js',g[r(0xbc)]['js']));!g[r(0xc8)]&&(g['features']={});!b[r(0xd3)]&&!this[r(0xab)][r(0xc1)](r(0xba))&&(Log[r(0xc7)](r(0xe2)),await this[r(0xab)]['installNpmPackage'](r(0xba),{'cwd':c}));if(!b[r(0xd3)]&&!this[r(0xab)][r(0xc1)](r(0xaf))){Log['error']('This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator');return;}const h={'name':pascalCase(b[r(0xea)]),'myPath':a59e[r(0xbb)](this[r(0xab)][r(0xcd)]({}),f),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0xea)]),'camelCaseName':camelCase(b[r(0xea)]),'fileName':paramCase(b[r(0xea)]),'graphql':g[r(0xb4)]['graphql'],'features':g[r(0xc8)],'client':g[r(0xb4)][r(0xc0)],'api':g[r(0xb4)]['api'],'ssr':g[r(0xb4)][r(0xca)],'test':g[r(0xb4)][r(0xeb)],'theme':g[r(0xb4)][r(0xde)],'isLayout':![],'isComponent':!![],'withTranslations':g[r(0xc8)][r(0xed)]};this['fsi'][r(0xbc)]({'srcPath':'component/component.js','destPath':f+r(0xe5),'context':h,'framework':r(0xaf),'config':g});g[r(0xb4)][r(0xeb)]!==r(0xd4)&&this['fsi'][r(0xbc)]({'srcPath':r(0xbf),'destPath':f+r(0xc2),'context':h,'framework':r(0xaf),'config':g});g['template'][r(0xdd)]&&(this[r(0xab)]['template']({'srcPath':r(0xe9),'destPath':f+'.css','context':Object[r(0xd9)]({},h,{'className':paramCase(b[r(0xea)])}),'config':g}),this[r(0xab)][r(0xd2)]({'filePath':f+'.'+g['engines']['js'],'content':'import\x20\x27./'+h[r(0xdc)]+'.'+g['engines'][r(0xdd)]+'\x27;'}));const i=b[r(0xe8)]?'/'+b[r(0xe8)]+'/':'/',j=''+d+i+h[r(0xdf)]+'/'+h[r(0xdf)];let k;if(g[r(0xb4)][r(0xca)]===r(0xad)){const l=this[r(0xab)][r(0xb7)]({'pathParts':['imports','startup',r(0xd7),r(0xb0)]});k=this[r(0xab)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':g});}else{const m=this[r(0xab)]['pathFromApp']({'pathParts':[r(0xd0),'startup',r(0xc0),'templates.js']});k=this[r(0xab)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':g});}g['engines']['client']===r(0xaf)||g[r(0xb4)][r(0xc0)]===r(0xe0)?(g[r(0xb4)]['js']===r(0xe6)?this[r(0xab)]['injectAtBeginningOfFile']({'filePath':k,'content':r(0xc4)+h[r(0xb5)]+r(0xcc)+j+r(0xd1)}):this[r(0xab)]['injectAtBeginningOfFile']({'filePath':k,'content':'import\x20{\x20'+h[r(0xb5)]+r(0xcc)+j+'.'+g['engines']['js']+'\x27;\x0a'}),this[r(0xab)][r(0xaa)]({'filePath':k,'content':r(0xe4)+h['className']+'\x20};\x0a'})):this[r(0xab)]['injectAtEndOfFile']({'filePath':k,'content':r(0xe1)+j+'.'+g[r(0xb4)]['js']+r(0xd1)});});}catch(h){Log[q(0xc5)](h);}});
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 +1 @@
1
- function a60d(a,b){const c=a60c();return a60d=function(d,e){d=d-0x6c;let f=c[d];return f;},a60d(a,b);}const a60j=a60d;(function(a,b){const h=a60d,c=a();while(!![]){try{const d=-parseInt(h(0x7a))/0x1*(-parseInt(h(0x76))/0x2)+-parseInt(h(0x81))/0x3+-parseInt(h(0x6c))/0x4*(parseInt(h(0x7f))/0x5)+parseInt(h(0x87))/0x6+parseInt(h(0x72))/0x7+-parseInt(h(0x7b))/0x8*(parseInt(h(0x74))/0x9)+parseInt(h(0x89))/0xa*(parseInt(h(0x6e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a60c,0xc447d));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 i=a60d;return a60a[i(0x86)]()['search'](i(0x73))[i(0x86)]()[i(0x8c)](a60a)[i(0x79)]('(((.+)+)+)+$');});a60a();function a60c(){const m=['maka\x20{generate,\x20g}:{config}\x20<name>','production','constructor','ubuntu','pathFromProject','2790012lGUjFO','process.env','286kSFnlN','create','prod','fsi','3637361udBDDN','(((.+)+)+)+$','1209042dJNWjh','withValue','6vdaRao','isDocker','config/settings.json','search','98039BbTvzU','64xLzVFl','settings.json','template','dev','10neeMpS','development','494469EtCTWV','config','resourceName','appName','getProjectConfig','toString','2168904bgWtkP','Generate\x20configuration\x20settings.','870490wcgLtH'];a60c=function(){return m;};return a60c();}import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a60j(0x6f)]({'name':a60j(0x82),'usage':a60j(0x8a),'shortDesc':a60j(0x88),'validOpts':[a60j(0x77)],'examples':['maka\x20g:config\x20production']},function(a,b){const k=a60j,c=this[k(0x71)][k(0x85)]();this[k(0x71)][k(0x75)](c,async()=>{const l=k,d={'app':c[l(0x84)],'appFileCase':paramCase(c[l(0x84)]),'name':pascalCase(b['resourceName']),'fileName':paramCase(b[l(0x83)]),'camelCase':camelCase(b[l(0x83)]),'userName':l(0x8d),'isDocker':b['isDocker']};let e=a[0x0];if(e===l(0x7e))e=l(0x80);else e===l(0x70)&&(e=l(0x8b));const f=this['fsi'][l(0x8e)]({'pathParts':[l(0x82),e,l(0x7c)]});this[l(0x71)][l(0x7d)]({'srcPath':l(0x78),'destPath':f,'context':d,'config':c});if(!b[l(0x77)]){const g=this[l(0x71)][l(0x8e)]({'pathParts':[l(0x82),e,l(0x6d)]});this[l(0x71)][l(0x7d)]({'srcPath':'config/process.env','destPath':g,'context':d,'config':c});}});});
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 +1 @@
1
- const a61q=a61d;(function(a,b){const n=a61d,c=a();while(!![]){try{const d=-parseInt(n(0x8d))/0x1+parseInt(n(0x9b))/0x2*(-parseInt(n(0xa2))/0x3)+-parseInt(n(0x8c))/0x4+-parseInt(n(0x88))/0x5*(parseInt(n(0x85))/0x6)+parseInt(n(0x97))/0x7*(-parseInt(n(0xba))/0x8)+-parseInt(n(0x93))/0x9*(-parseInt(n(0x9f))/0xa)+parseInt(n(0x96))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a61c,0x3e649));const a61b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a61d;if(c){const e=c[o(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a61a=a61b(this,function(){const p=a61d;return a61a['toString']()[p(0xae)](p(0x9e))[p(0x89)]()[p(0xb5)](a61a)[p(0xae)]('(((.+)+)+)+$');});function a61d(a,b){const c=a61c();return a61d=function(d,e){d=d-0x7e;let f=c[d];return f;},a61d(a,b);}a61a();import{camelCase,paramCase,pascalCase}from'change-case';function a61c(){const t=['maka\x20{generate,\x20g}:{dbc}\x20<connection-name>','pgsql','5LyHtPx','toString','-dbc\x27;','type','1827172ajhYsS','25310LCdHef','mssql','server','better-sqlite3','Scaffolding\x20for\x20creating\x20a\x20for\x20a\x20database\x20connection.','dbc','45uSfLew','MS\x20SQL','withValue','10513008llmxBe','246141eguLsO','dir','getProjectConfig','Invalid\x20type\x20','14458JfOSjY','fsi','dbAnswer','(((.+)+)+)+$','557110VedGXl','conn.','Npm\x20package\x20\x22mssql\x22\x20not\x20installed,\x20installing...','96DIjzJk','indexOf','resourceName','options',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','startup','maka\x20g:dbc\x20azure\x20--type=mssql','error','engines','config.','(blank)','template','search','index.','apply','dbc/config.js','injectAtEndOfFile','register-','imports','constructor','pathFromApp','checkNpmPackage','dbc/conn.js','dbc/register-dbc.js','16rDXPST','warn','installNpmPackage','Npm\x20package\x20\x22better-sqlite3\x22\x20not\x20installed,\x20installing...','maka\x20g:dbc\x20geoserver\x20--type=pgsql','list','PostgreSQL','tsx','1169790iqPFNn'];a61c=function(){return t;};return a61c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';Generator['create']({'name':a61q(0x92),'usage':a61q(0x86),'shortDesc':a61q(0x91),'validOpts':['type','dir'],'examples':[a61q(0x81),a61q(0xa8),'maka\x20g:dbc\x20todos\x20--type=sqlite']},async function(a,b){const r=a61q;try{const c=await this[r(0x9c)][r(0x99)](),d=this['fsi']['pathFromApp']({}),f=paramCase(b[r(0xa4)]);if(!b[r(0x8b)]){const h={'type':r(0x82),'name':r(0x9d),'message':'DB\x20Driver','choices':[{'name':r(0x83),'value':r(0x87)},{'name':r(0x94),'value':r(0x8e)}]},{dbAnswer:i}=await Actions[r(0xa5)](h);i&&(b[r(0x8b)]=i);}const g={'name':pascalCase(b['resourceName']),'fileName':paramCase(b[r(0xa4)]),'camelCase':camelCase(b[r(0xa4)]),'type':b[r(0x8b)],'engine':c[r(0xaa)]['js'],'noRename':!![]};this[r(0x9c)][r(0x95)](c,async()=>{const s=r;let j='js';c[s(0xaa)]['js']===s(0x84)&&(j='ts');const k=[s(0x8e),s(0x87)];if(k[s(0xa3)](g['type'])<0x0){const m=g[s(0x8b)]?g[s(0x8b)]:s(0xac);Log[s(0xa9)](s(0x9a)+m+s(0xa6));return;}b[s(0x8b)]===s(0x87)&&!this['fsi'][s(0xb7)]('pg')&&(Log[s(0x7e)]('Npm\x20package\x20\x22pg\x22\x20not\x20installed,\x20installing...'),await this[s(0x9c)][s(0x7f)]('pg',{'cwd':d}));b[s(0x8b)]==='mssql'&&!this['fsi'][s(0xb7)](s(0x8e))&&(Log[s(0x7e)](s(0xa1)),await this[s(0x9c)][s(0x7f)]('mssql',{'cwd':d}));b[s(0x8b)]==='sqlite'&&!this[s(0x9c)][s(0xb7)](s(0x90))&&(Log['warn'](s(0x80)),await this[s(0x9c)][s(0x7f)](s(0x90),{'cwd':d}));this['fsi'][s(0xad)]({'srcPath':s(0xb1),'destPath':this['fsi'][s(0xb6)]({'pathParts':[s(0xb4),s(0xa7),s(0x8f),s(0x92),b[s(0x98)],f,s(0xab)+j]}),'context':g,'config':c}),this[s(0x9c)][s(0xad)]({'srcPath':s(0xb8),'destPath':this[s(0x9c)][s(0xb6)]({'pathParts':[s(0xb4),s(0xa7),'server',s(0x92),b[s(0x98)],f,s(0xa0)+j]}),'context':g,'config':c}),this[s(0x9c)]['template']({'srcPath':s(0xb9),'destPath':this['fsi'][s(0xb6)]({'pathParts':[s(0xb4),s(0xa7),s(0x8f),s(0xb3)+f+'-dbc.'+j]}),'context':g,'config':c});const l=this[s(0x9c)][s(0xb6)]({'pathParts':['imports','startup','server',s(0xaf)+c[s(0xaa)]['js']]});this['fsi'][s(0xb2)]({'filePath':l,'content':'import\x20\x27./register-'+f+s(0x8a)});});}catch(j){Log[r(0xa9)](j);}});
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 +1 @@
1
- const a62i=a62d;(function(a,b){const f=a62d,c=a();while(!![]){try{const d=-parseInt(f(0x1db))/0x1+parseInt(f(0x1ed))/0x2+parseInt(f(0x1d6))/0x3+parseInt(f(0x1d7))/0x4+parseInt(f(0x1e3))/0x5*(-parseInt(f(0x1ec))/0x6)+parseInt(f(0x1e8))/0x7*(parseInt(f(0x1dd))/0x8)+parseInt(f(0x1d4))/0x9*(-parseInt(f(0x1d9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a62c,0x8885a));const a62b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a62d;if(c){const e=c[g(0x1d5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a62a=a62b(this,function(){const h=a62d;return a62a['toString']()[h(0x1da)](h(0x1e0))['toString']()[h(0x1d1)](a62a)['search'](h(0x1e0));});a62a();import{Generator}from'../generator.js';function a62d(a,b){const c=a62c();return a62d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a62d(a,b);}import{Log}from'../tools/log/log.class.js';function a62c(){const l=['maka\x20g:dockerfile','getGlobalConfig','dockerfile','getProjectConfig','413wjtjvz','maka\x20{generate,\x20g}:dockerfile','withValue','app.tar.gz','4191126oUwnsp','490822jwacxO','cert','constructor','isFile','join','1934559yHuBNQ','apply','2630841ruZmru','324800iUPKZh','docker/Dockerfile','10trlANm','search','77045eJBkxr','template','46936jQtzcQ','findProjectDirectory','Dockerfile','(((.+)+)+)+$','fsi','Generate\x20an\x20updated\x20dockerfile','5THLXwQ'];a62c=function(){return l;};return a62c();}import a62e from'path';Generator['create']({'name':a62i(0x1e6),'usage':a62i(0x1e9),'shortDesc':a62i(0x1e2),'validOpts':[],'noResource':!![],'examples':[a62i(0x1e4)]},async function(){const j=a62i;try{const a=await this[j(0x1e1)][j(0x1e7)](),b=await this[j(0x1e1)][j(0x1e5)](),c=this['fsi'][j(0x1de)]();this[j(0x1e1)][j(0x1ea)](a,async()=>{const k=j,d={'app':b['appName'],'config':a,'appPath':a62e[k(0x1d3)](c,'app'),'bundlePath':a62e[k(0x1d3)](c,'build',k(0x1eb)),'useCert':this['fsi'][k(0x1d2)](b[k(0x1ee)])};this[k(0x1e1)][k(0x1dc)]({'srcPath':k(0x1d8),'destPath':a62e['join'](c,k(0x1df)),'framework':'service','context':d,'config':a});});}catch(d){Log['error'](d);}});
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 +1 @@
1
- const a63r=a63d;function a63c(){const u=['This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','18KVqaRs','search','className','imports','error','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','5iqwWAy','4157880ifsGce','tsx','import\x20\x27./','toString','checkNpmPackage','/imports/ui/hooks','startup','7295190TIYFaW','18004710IczXjN','features','test/test.js','react','relative','.js','templates.js','client','hook','fileName','maka\x20g:hook\x20cool-hook','import\x20\x27','.app-tests.js','pathFromProject','ssr','rewriteDestinationPathForEngine','template','template/template.css','installNpmPackage','true','withValue','export\x20{\x20','test','create','warn','6kZynrV','fsi','pathFromApp','312422YaGQqx','lib','@apollo/client','332645ghnQbm','apply','graphql','engines','@apollo/client\x20isomorphic-fetch','9090904GwiDZF','\x27;\x0a','\x20}\x20from\x20\x27','dir','theme','(((.+)+)+)+$','setTemplate','css','\x20};\x0a','injectAtEndOfFile','maka\x20{generate|\x20g}:{hook\x20|\x20h}\x20[path/]<name>','none','import\x20{\x20','resourceName','146884yiOwOe','injectAtBeginningOfFile'];a63c=function(){return u;};return a63c();}(function(a,b){const o=a63d,c=a();while(!![]){try{const d=-parseInt(o(0x193))/0x1+-parseInt(o(0x190))/0x2*(-parseInt(o(0x18d))/0x3)+parseInt(o(0x1a6))/0x4*(-parseInt(o(0x1af))/0x5)+-parseInt(o(0x1b0))/0x6+-parseInt(o(0x173))/0x7+-parseInt(o(0x198))/0x8+-parseInt(o(0x1a9))/0x9*(-parseInt(o(0x174))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a63c,0xa42e5));const a63b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a63d;if(c){const e=c[p(0x194)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a63a=a63b(this,function(){const q=a63d;return a63a[q(0x16f)]()[q(0x1aa)](q(0x19d))['toString']()['constructor'](a63a)[q(0x1aa)](q(0x19d));});a63a();import a63e from'path';import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a63d(a,b){const c=a63c();return a63d=function(d,e){d=d-0x16f;let f=c[d];return f;},a63d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';Generator[a63r(0x18b)]({'name':a63r(0x17c),'aliases':['h'],'checkWhere':![],'usage':a63r(0x1a2),'shortDesc':'Generate\x20a\x20React\x20hook.\x0ahttps://reactjs.org/docs/hooks-intro.html','validOpts':['dir'],'examples':[a63r(0x17e)]},async function(a,b){const s=a63r;try{const c=this['fsi'][s(0x170)](s(0x177));if(!c){Log['error'](s(0x1a8));throw new UsageError();}const d=this[s(0x18e)]['pathFromApp'](b),f=s(0x171),g=this[s(0x18e)]['pathFromApp']({'pathParts':[f,b[s(0x19b)],paramCase(b[s(0x1a5)]),paramCase(b[s(0x1a5)])]}),h=await this['fsi']['getProjectConfig']();this[s(0x18e)][s(0x188)](h,async()=>{const t=s;typeof h[t(0x184)][t(0x19f)]==='string'&&(h[t(0x184)][t(0x19f)]=h[t(0x184)][t(0x19f)]===t(0x187)?!![]:![],this['fsi'][t(0x19e)](t(0x19f),h[t(0x184)]['css']));h['engines'][t(0x195)]==='apollo'&&!this[t(0x170)](t(0x192))&&(Log[t(0x18c)](t(0x1ae)),await this['fsi'][t(0x186)](t(0x197),{'cwd':d}));const i={'cssCaseName':paramCase(b[t(0x1a5)]),'className':pascalCase(b['resourceName']),'name':pascalCase(b['resourceName']),'graphql':h['engines'][t(0x195)],'theme':h[t(0x196)][t(0x19c)],'features':h[t(0x175)],'myPath':a63e[t(0x178)](this[t(0x18e)][t(0x181)]({}),g),'fileName':paramCase(b[t(0x1a5)]),'isComponent':![],'isLayout':![],'withTranslations':h[t(0x175)]['withTranslations']};this['fsi']['template']({'srcPath':'hook/hook.js','destPath':g+t(0x179),'context':i,'config':h,'framework':t(0x177)});h['template'][t(0x19f)]&&(this[t(0x18e)][t(0x184)]({'srcPath':t(0x185),'destPath':g+'.css','context':Object['assign']({},i,{'className':i['cssCaseName']}),'config':h}),this[t(0x18e)][t(0x1a7)]({'filePath':g+'.'+h[t(0x196)]['js'],'content':t(0x1b2)+i[t(0x17d)]+'.'+h['engines'][t(0x19f)]+'\x27;'}));h['engines'][t(0x18a)]!==t(0x1a3)&&this[t(0x18e)][t(0x184)]({'srcPath':t(0x176),'destPath':g+t(0x180),'framework':t(0x177),'context':i,'config':h});const j=b['dir']?'/'+b[t(0x19b)]+'/':'/',k=''+f+j+i['fileName']+'/'+i[t(0x17d)];let l;if(h[t(0x196)][t(0x182)]===t(0x187)){const m=this[t(0x18e)][t(0x18f)]({'pathParts':[t(0x1ac),t(0x172),t(0x191),t(0x17a)]});l=this[t(0x18e)]['rewriteDestinationPathForEngine']({'pathParts':[m],'config':h});}else{const n=this[t(0x18e)][t(0x18f)]({'pathParts':['imports',t(0x172),t(0x17b),'templates.js']});l=this[t(0x18e)][t(0x183)]({'pathParts':[n],'config':h});}h[t(0x196)][t(0x17b)]===t(0x177)?(h[t(0x196)]['js']===t(0x1b1)?this[t(0x18e)][t(0x1a7)]({'filePath':l,'content':t(0x1a4)+i[t(0x1ab)]+t(0x19a)+k+t(0x199)}):this[t(0x18e)][t(0x1a7)]({'filePath':l,'content':t(0x1a4)+i[t(0x1ab)]+'\x20}\x20from\x20\x27'+k+'.'+h['engines']['js']+t(0x199)}),this[t(0x18e)][t(0x1a1)]({'filePath':l,'content':t(0x189)+i[t(0x1ab)]+t(0x1a0)})):this[t(0x18e)][t(0x1a1)]({'filePath':l,'content':t(0x17f)+k+'.'+h[t(0x196)]['js']+t(0x199)});});}catch(i){Log[s(0x1ad)](i);}});
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 +1 @@
1
- const a64j=a64d;(function(a,b){const h=a64d,c=a();while(!![]){try{const d=parseInt(h(0xce))/0x1+-parseInt(h(0xc0))/0x2+-parseInt(h(0xca))/0x3+parseInt(h(0xc1))/0x4*(parseInt(h(0xcb))/0x5)+-parseInt(h(0xd7))/0x6+parseInt(h(0xd1))/0x7*(-parseInt(h(0xc9))/0x8)+parseInt(h(0xd9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a64c,0xe2081));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 i=a64d;return a64a[i(0xd2)]()[i(0xdc)]('(((.+)+)+)+$')[i(0xd2)]()[i(0xc7)](a64a)[i(0xdc)]('(((.+)+)+)+$');});a64a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a64c(){const m=['37126557hVofrw','(Placeholder)\x20Generate\x20a\x20pre-built\x20\x22kit\x22\x20to\x20speed\x20up\x20your\x20development.','kit','search','3348622vxvdjm','8tbHwDL','resourceName','login','getProjectConfig','NIE','indexOf','constructor','fsi','6551704GLoKVP','1391181xbZvdV','151395FZKqzm','maka\x20g:kit\x20--type=map','(blank)','107527WoTnvq','withValue','maka\x20{generate,\x20g}:{kit}\x20<kit-name>','7HeRsKB','toString','type',',\x20you\x20must\x20provide\x20a\x20valid\x20type\x20as\x20an\x20argument','error','Invalid\x20type\x20','2462592RzYViQ','engines'];a64c=function(){return m;};return a64c();}import{camelCase,paramCase,pascalCase}from'change-case';function a64d(a,b){const c=a64c();return a64d=function(d,e){d=d-0xc0;let f=c[d];return f;},a64d(a,b);}Generator['create']({'name':a64j(0xdb),'aliases':['k'],'usage':a64j(0xd0),'shortDesc':a64j(0xda),'validOpts':[a64j(0xd3)],'examples':[a64j(0xcc),'maka\x20g:k\x20city-map\x20--type=leaflet-map']},async function(a,b){const k=a64j;try{const c=this[k(0xc8)][k(0xc4)]();this[k(0xc8)][k(0xcf)](c,async()=>{const l=k,d={'name':pascalCase(b[l(0xc2)]),'fileName':paramCase(b[l(0xc2)]),'camelCase':camelCase(b[l(0xc2)]),'type':b[l(0xd3)],'engine':c[l(0xd8)]['js'],'noRename':!![]},f=['leaflet-map',l(0xc3)];if(f[l(0xc6)](d[l(0xd3)])<0x0){const g=d[l(0xd3)]?d[l(0xd3)]:l(0xcd);Log[l(0xd5)](l(0xd6)+g+l(0xd4));return;}b[l(0xd3)]==='map'&&Log['notice'](l(0xc5)),b['type']===l(0xc3)&&Log['notice'](l(0xc5));});}catch(d){Log[k(0xd5)](d);}});
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 +1 @@
1
- const a65r=a65d;function a65d(a,b){const c=a65c();return a65d=function(d,e){d=d-0x127;let f=c[d];return f;},a65d(a,b);}(function(a,b){const o=a65d,c=a();while(!![]){try{const d=-parseInt(o(0x166))/0x1*(-parseInt(o(0x15f))/0x2)+-parseInt(o(0x15c))/0x3*(parseInt(o(0x148))/0x4)+-parseInt(o(0x13e))/0x5+-parseInt(o(0x152))/0x6+parseInt(o(0x14c))/0x7+-parseInt(o(0x15a))/0x8*(parseInt(o(0x168))/0x9)+parseInt(o(0x14b))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a65c,0x27195));const a65b=(function(){let a=!![];return function(b,c){const d=a?function(){const p=a65d;if(c){const e=c[p(0x135)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a65a=a65b(this,function(){const q=a65d;return a65a[q(0x16f)]()['search']('(((.+)+)+)+$')[q(0x16f)]()[q(0x16e)](a65a)[q(0x142)](q(0x12c));});a65a();import a65e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a65c(){const u=['template','setTemplate','maka\x20g:layout\x20mobile/iPhone8','relative','.css','layout','startup','apply','rewriteDestinationPathForEngine','test/test.js','fileName','\x20};\x0a','checkNpmPackage','findAppDirectory','theme','ramda','256305aDfNmq','imports','react','className','search','withValue','none','resourceName','component/component.js','dir','4hJGWWM','api','templates.js','2000290vmiqZA','622286gdsWNr','warn','export\x20{\x20','installNpmPackage','create','css','750804EwtJNX','maka\x20g:l\x20web/safari','pathFromApp','Npm\x20package\x20\x22@apollo/client\x22\x20not\x20installed,\x20installing...','injectAtEndOfFile','\x27;\x0a','import\x20\x27','fsi','1838152tUPnZs','import\x20\x27./','69039UBNPsg','/imports/ui/layouts','pathFromProject','66rtzEGh','template/template.css','.js','client','true','injectAtBeginningOfFile','includes','9103qFYcMr','maka\x20{generate,\x20g}:{layout,\x20l}\x20[path/]<name>','9cCVMfO','import\x20{\x20','test','.app-tests.js','engines','This\x20project\x20must\x20be\x20a\x20React\x20type\x20project\x20to\x20use\x20the\x20hooks\x20generator','constructor','toString','Scaffolding\x20for\x20a\x20React\x20Layout.','withHook','features','ssr','split','(((.+)+)+)+$','string'];a65c=function(){return u;};return a65c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['l'];Generator[a65r(0x150)]({'name':a65r(0x133),'aliases':aliases,'usage':a65r(0x167),'shortDesc':a65r(0x127),'validOpts':[],'examples':[a65r(0x130),a65r(0x153)]},function(a,b){const s=a65r,c=s(0x15d),d=this[s(0x159)][s(0x13b)](),e=this[s(0x159)][s(0x154)]({'pathParts':[c,b[s(0x147)],paramCase(b['resourceName']),paramCase(b[s(0x145)])]}),f=this[s(0x159)]['getProjectConfig']();this['fsi'][s(0x143)](f,()=>{const t=s;typeof f[t(0x12e)][t(0x16a)]===t(0x12d)&&(f[t(0x12e)]['test']=f[t(0x12e)][t(0x16a)]==='true'?!![]:![],this[t(0x159)]['setTemplate'](t(0x16a),f[t(0x12e)]['test']));typeof f[t(0x12e)]['css']===t(0x12d)&&(f[t(0x12e)][t(0x151)]=f[t(0x12e)][t(0x151)]===t(0x163)?!![]:![],this[t(0x159)]['setTemplate'](t(0x151),f[t(0x12e)]['css']));typeof f[t(0x12e)]['js']===t(0x12d)&&(f[t(0x12e)]['js']=f[t(0x12e)]['js']==='true'?!![]:![],this[t(0x159)][t(0x12f)]('js',f[t(0x12e)]['js']));!f[t(0x129)]&&(f['features']={});const g=b['_']?b['_'][0x0][t(0x12b)](':')[0x1]:![],h=b['_']&&aliases[t(0x165)](g);h&&!this['checkNpmPackage'](t(0x13d))&&(Log[t(0x14d)](t(0x155)),this[t(0x159)][t(0x14f)]('ramda',{'cwd':d}));if(h&&!this[t(0x13a)](t(0x140))){Log[t(0x14d)](t(0x16d));return;}const i={'name':pascalCase(b[t(0x145)]),'myPath':a65e[t(0x131)](this[t(0x159)][t(0x15e)]({}),e),'cssCaseName':paramCase(b[t(0x145)]),'className':pascalCase(b[t(0x145)]),'camelCaseName':camelCase(b[t(0x145)]),'fileName':paramCase(b['resourceName']),'graphql':f[t(0x16c)]['graphql'],'features':f['features'],'client':f['engines']['client'],'api':f[t(0x16c)][t(0x149)],'ssr':f[t(0x16c)][t(0x12a)],'test':f[t(0x16c)][t(0x16a)],'theme':f[t(0x16c)][t(0x13c)],'isComponent':![],'isLayout':!![],'withTranslations':f[t(0x129)]['withTranslations']};f[t(0x129)]?.['withHooks']||b[t(0x128)]?this[t(0x159)][t(0x12e)]({'srcPath':'hook/hook.js','destPath':e+t(0x161),'framework':'react','context':i,'config':f}):this[t(0x159)][t(0x12e)]({'srcPath':t(0x146),'destPath':e+t(0x161),'framework':t(0x140),'context':i,'config':f});f[t(0x16c)][t(0x16a)]!==t(0x144)&&this[t(0x159)][t(0x12e)]({'srcPath':t(0x137),'destPath':e+t(0x16b),'framework':t(0x140),'context':i,'config':f});f[t(0x12e)][t(0x151)]&&(this[t(0x159)][t(0x12e)]({'srcPath':t(0x160),'destPath':e+t(0x132),'context':Object['assign']({},i,{'className':paramCase(b['resourceName'])}),'config':f}),this[t(0x159)][t(0x164)]({'filePath':e+'.'+f[t(0x16c)]['js'],'content':t(0x15b)+i['fileName']+'.'+f['engines'][t(0x151)]+'\x27;'}));const j=b[t(0x147)]?'/'+b[t(0x147)]+'/':'/',k=''+c+j+i[t(0x138)]+'/'+i['fileName'];let l;if(f['engines'][t(0x12a)]==='true'){const m=this['fsi'][t(0x154)]({'pathParts':['imports','startup','lib','templates.js']});l=this[t(0x159)][t(0x136)]({'pathParts':[m],'config':f});}else{const n=this['fsi'][t(0x154)]({'pathParts':[t(0x13f),t(0x134),t(0x162),t(0x14a)]});l=this[t(0x159)]['rewriteDestinationPathForEngine']({'pathParts':[n],'config':f});}f[t(0x16c)][t(0x162)]===t(0x140)?(f[t(0x16c)]['js']==='tsx'?this[t(0x159)][t(0x164)]({'filePath':l,'content':t(0x169)+i[t(0x141)]+'\x20}\x20from\x20\x27'+k+t(0x157)}):this[t(0x159)][t(0x164)]({'filePath':l,'content':'import\x20{\x20'+i[t(0x141)]+'\x20}\x20from\x20\x27'+k+'.'+f[t(0x16c)]['js']+t(0x157)}),this[t(0x159)][t(0x156)]({'filePath':l,'content':t(0x14e)+i[t(0x141)]+t(0x139)})):this['fsi']['injectAtEndOfFile']({'filePath':l,'content':t(0x158)+k+'.'+f[t(0x16c)]['js']+t(0x157)});});});
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 +1 @@
1
- function a66c(){const i=['maka\x20generate:api\x20Trucks','search','maka\x20g:hook\x20cool-hook','35cTHewg','\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','2716190BqAPFP','871496FOvCVN','747075YOtgxv','1936323dixUmg','111138SpHBYt','Maka!','63VNpLOm','maka\x20<generate>:<entity>\x20[<args>]\x20[<opts>]','(((.+)+)+)+$','467593CgMGWZ','96JsqrKB','toString','462408IddnlV'];a66c=function(){return i;};return a66c();}const a66h=a66d;(function(a,b){const f=a66d,c=a();while(!![]){try{const d=-parseInt(f(0x1c4))/0x1+-parseInt(f(0x1c3))/0x2+parseInt(f(0x1c5))/0x3+-parseInt(f(0x1bc))/0x4+parseInt(f(0x1c0))/0x5*(parseInt(f(0x1c6))/0x6)+parseInt(f(0x1b9))/0x7*(-parseInt(f(0x1ba))/0x8)+parseInt(f(0x1c8))/0x9*(parseInt(f(0x1c2))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a66c,0x8cba6));const a66b=(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;};}()),a66a=a66b(this,function(){const g=a66d;return a66a['toString']()[g(0x1be)](g(0x1b8))[g(0x1bb)]()['constructor'](a66a)['search']('(((.+)+)+)+$');});function a66d(a,b){const c=a66c();return a66d=function(d,e){d=d-0x1b7;let f=c[d];return f;},a66d(a,b);}a66a();import{Generator}from'../generator.js';const MakaGen=new Generator({'name':'maka','shortDesc':a66h(0x1c7),'validOpts':[],'description':a66h(0x1c1),'usage':a66h(0x1b7),'examples':[a66h(0x1bd),a66h(0x1bf)]},function(){return null;});export default MakaGen;
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 +1 @@
1
- function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x1b4;let f=c[d];return f;},a67d(a,b);}const a67n=a67d;(function(a,b){const k=a67d,c=a();while(!![]){try{const d=parseInt(k(0x1dc))/0x1+-parseInt(k(0x1be))/0x2+-parseInt(k(0x1db))/0x3+-parseInt(k(0x1c5))/0x4*(-parseInt(k(0x1c2))/0x5)+-parseInt(k(0x1cc))/0x6+-parseInt(k(0x1bf))/0x7+parseInt(k(0x1cd))/0x8*(parseInt(k(0x1de))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0x78342));const a67b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a67d;if(c){const e=c[l(0x1d8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a67a=a67b(this,function(){const m=a67d;return a67a['toString']()['search'](m(0x1d0))[m(0x1d1)]()['constructor'](a67a)[m(0x1c9)]('(((.+)+)+)+$');});a67a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a67c(){const q=['checkMeteorPackage','apply','Meteor\x20package\x20\x22check\x22\x20or\x20\x22ddp-rate-limiter\x22\x20or\x20\x22mdg:validated-method\x22\x20is\x20not\x20installed,\x20installing...','warn','310689LUHdOK','168572bkfpvB','engines','513ovlAQR','fsi','import\x20\x27./methods','check','methods','ddp-rate-limiter','installMeteorPackage','create','method/method.js','withValue','tsx','1927532pnmTPR','482349WhUnOj','getProjectConfig','injectAtEndOfFile','5ANbTfE','resourceName','mdg:validated-method','3849488zaobEu','method','dir','pathFromApp','search','Scaffolding\x20for\x20a\x20Meteor\x20Method.\x0ahttps://guide.meteor.com/methods.html','appPathPrefix','167022UKVxkD','73752FgLftv','maka\x20{generate,\x20g}:{method,\x20m}\x20name','-rpc-method.','(((.+)+)+)+$','toString','template','maka\x20g:method\x20todos','imports','startup','check\x20ddp-rate-limiter\x20mdg:validated-method'];a67c=function(){return q;};return a67c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x1ba)]({'name':a67n(0x1c6),'aliases':['m'],'usage':a67n(0x1ce),'checkWhere':!![],'shortDesc':a67n(0x1ca),'validOpts':['dir'],'examples':[a67n(0x1d3)]},function(a,b){const o=a67n;try{const c=this[o(0x1b4)][o(0x1c0)]();this[o(0x1b4)][o(0x1bc)](c,async()=>{const p=o,d=paramCase(b[p(0x1c3)]),f={'name':b['resourceName'],'fileName':d,'className':pascalCase(b[p(0x1c3)]),'camelCase':camelCase(b[p(0x1c3)]),'noRename':!![]};let g='js';c['engines']['js']===p(0x1bd)&&(g='ts');const h=this[p(0x1b4)]['pathFromApp']({});(!this[p(0x1b4)][p(0x1d7)](p(0x1b6))||!this[p(0x1b4)][p(0x1d7)](p(0x1b8))||!this[p(0x1b4)]['checkMeteorPackage'](p(0x1c4)))&&(Log[p(0x1da)](p(0x1d9)),this['fsi'][p(0x1b9)](p(0x1d6),{'cwd':h}));this[p(0x1b4)][p(0x1d2)]({'srcPath':p(0x1bb),'destPath':this[p(0x1b4)][p(0x1c8)]({'pathParts':[p(0x1d4),p(0x1d5),b[p(0x1cb)],p(0x1b7),b[p(0x1c7)],d+p(0x1cf)+g]}),'context':f,'config':c});const i=b['dir']?'/'+b['dir']+'/':'/',j=this[p(0x1b4)][p(0x1c8)]({'pathParts':['imports','startup',b[p(0x1cb)],'index.'+c[p(0x1dd)]['js']]});this[p(0x1b4)][p(0x1c1)]({'filePath':j,'content':p(0x1b5)+i+d+'-rpc-method\x27;'});});}catch(d){Log['error'](d);}});
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 +1 @@
1
- function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x9b;let f=c[d];return f;},a68d(a,b);}const a68o=a68d;(function(a,b){const l=a68d,c=a();while(!![]){try{const d=parseInt(l(0xc2))/0x1*(-parseInt(l(0xa7))/0x2)+-parseInt(l(0xbb))/0x3*(-parseInt(l(0xbf))/0x4)+-parseInt(l(0x9b))/0x5*(-parseInt(l(0xa1))/0x6)+-parseInt(l(0xaf))/0x7+-parseInt(l(0xba))/0x8*(-parseInt(l(0xc7))/0x9)+parseInt(l(0xbc))/0xa*(parseInt(l(0xa4))/0xb)+-parseInt(l(0xb1))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x50827));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a68d;if(c){const e=c[m(0xa0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const n=a68d;return a68a[n(0xa5)]()[n(0xa2)]('(((.+)+)+)+$')['toString']()['constructor'](a68a)[n(0xa2)](n(0xad));});function a68c(){const s=['apply','42HkmvbT','search','template/template.js','55WFhvOy','toString','layout','4616LjWGqz','maka\x20g:package\x20todos:package','.js','noRename','packages','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','(((.+)+)+)+$','theme','4064410MoTMVq','hasOwnProperty','7764096VfJNCZ','create','component','package.js','package','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','tests/client','ssr','forEach','1544vPwyzA','3uUNOlm','903120MKtsyt','/package.js','fsi','2538344RXQAyB','graphql','template','2gGaLHu','store','pathFromProject','/client/','resourceName','21501SxUgxN','withValue','pathFromAppWithNoReWrite','server','10570QaBNTd','pathFromApp','package/','engines','dir'];a68c=function(){return s;};return a68c();}a68a();import a68e from'path';import{Generator}from'../generator.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a68o(0xb2)]({'name':a68o(0xb5),'aliases':['p'],'usage':a68o(0xac),'shortDesc':a68o(0xb6),'validOpts':['dir'],'examples':[a68o(0xa8)]},async function(a,b){const p=a68o,c=paramCase(b[p(0xc6)]),d=this[p(0xbe)][p(0x9c)]({'pathParts':[p(0xab),b[p(0x9f)],c]}),e=this[p(0xbe)][p(0xc9)]({'pathParts':[p(0xab),b['dir'],c,p(0xb4)]}),f=this[p(0xbe)]['getProjectConfig']();this[p(0xbe)][p(0xc8)](f,async()=>{const q=p,g={'name':paramCase(b[q(0xc6)]),'myPath':a68e['relative'](this[q(0xbe)][q(0xc4)]({}),d),'cssCaseName':paramCase(b[q(0xc6)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b[q(0xc6)]),'fileName':c,'client':f[q(0x9e)]['client'],'graphql':f[q(0x9e)][q(0xc0)],'ssr':f[q(0x9e)][q(0xb8)],'isComponent':b['hasOwnProperty'](q(0xb3)),'isLayout':b[q(0xb0)](q(0xa6)),'isStore':b[q(0xb0)](q(0xc3)),'features':f['features'],'noRename':!![],'theme':f['engines'][q(0xae)]};this[q(0xbe)][q(0xc1)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g[q(0xaa)]=![];const h=d+q(0xc5)+c+q(0xa9);this[q(0xbe)][q(0xc1)]({'srcPath':q(0xa3),'destPath':h,'context':g,'config':f});const i=['lib',q(0xca),q(0xb7),'tests/server'];i[q(0xb9)](j=>{const r=q,k=d+'/'+j+'/'+c+r(0xa9);this[r(0xbe)]['template']({'srcPath':r(0x9d)+j+r(0xbd),'destPath':k,'context':g,'config':f});});});});
1
+ const a67n=a67d;(function(a,b){const l=a67d,c=a();while(!![]){try{const d=parseInt(l(0x178))/0x1*(-parseInt(l(0x189))/0x2)+-parseInt(l(0x183))/0x3*(-parseInt(l(0x174))/0x4)+-parseInt(l(0x187))/0x5*(-parseInt(l(0x180))/0x6)+parseInt(l(0x182))/0x7*(-parseInt(l(0x177))/0x8)+-parseInt(l(0x18c))/0x9*(-parseInt(l(0x17f))/0xa)+parseInt(l(0x190))/0xb+-parseInt(l(0x198))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a67c,0xe00ab));const a67b=(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;};}()),a67a=a67b(this,function(){const m=a67d;return a67a['toString']()['search'](m(0x17b))[m(0x188)]()['constructor'](a67a)['search'](m(0x17b));});function a67d(a,b){const c=a67c();return a67d=function(d,e){d=d-0x171;let f=c[d];return f;},a67d(a,b);}a67a();import a67e from'path';import{Generator}from'../generator.js';function a67c(){const r=['engines','graphql','5970710eKXsLU','80502QTDItA','template/template.js','4334449FAKpFP','219gynDWG','theme','pathFromProject','package.js','305cPWkbY','toString','271426fllXfO','.js','fsi','9HvAtMD','resourceName','layout','create','8410633FuUvHs','relative','tests/client','forEach','tests/server','hasOwnProperty','pathFromApp','/client/','3538152InuVsF','template','features','/package.js','store','getProjectConfig','lib','Scaffolding\x20for\x20a\x20Meteor\x20Package.\x0ahttps://docs.meteor.com/api/packagejs.html','package/','22276LynjXi','pathFromAppWithNoReWrite','ssr','16yObWFp','1sZWQcc','maka\x20{generate,\x20g}:{package,\x20p}\x20[path/]<name>','packages','(((.+)+)+)+$','maka\x20g:package\x20todos:package'];a67c=function(){return r;};return a67c();}import{camelCase,paramCase,pascalCase}from'change-case';Generator[a67n(0x18f)]({'name':'package','aliases':['p'],'usage':a67n(0x179),'shortDesc':a67n(0x172),'validOpts':['dir'],'examples':[a67n(0x17c)]},async function(a,b){const o=a67n,c=paramCase(b[o(0x18d)]),d=this[o(0x18b)][o(0x196)]({'pathParts':['packages',b['dir'],c]}),e=this[o(0x18b)][o(0x175)]({'pathParts':[o(0x17a),b['dir'],c,o(0x186)]}),f=this[o(0x18b)][o(0x19d)]();this[o(0x18b)]['withValue'](f,async()=>{const p=o,g={'name':paramCase(b[p(0x18d)]),'myPath':a67e[p(0x191)](this[p(0x18b)][p(0x185)]({}),d),'cssCaseName':paramCase(b[p(0x18d)]),'className':pascalCase(b[p(0x18d)]),'camelCaseName':camelCase(b[p(0x18d)]),'fileName':c,'client':f[p(0x17d)]['client'],'graphql':f['engines'][p(0x17e)],'ssr':f['engines'][p(0x176)],'isComponent':b[p(0x195)]('component'),'isLayout':b['hasOwnProperty'](p(0x18e)),'isStore':b[p(0x195)](p(0x19c)),'features':f[p(0x19a)],'noRename':!![],'theme':f[p(0x17d)][p(0x184)]};this['fsi'][p(0x199)]({'srcPath':'package/package.js','destPath':e,'context':g,'config':f}),g['noRename']=![];const h=d+p(0x197)+c+'.js';this[p(0x18b)][p(0x199)]({'srcPath':p(0x181),'destPath':h,'context':g,'config':f});const i=[p(0x171),'server',p(0x192),p(0x194)];i[p(0x193)](j=>{const q=p,k=d+'/'+j+'/'+c+q(0x18a);this[q(0x18b)][q(0x199)]({'srcPath':q(0x173)+j+q(0x19b),'destPath':k,'context':g,'config':f});});});});
@@ -1 +1 @@
1
- const a69o=a69d;(function(a,b){const m=a69d,c=a();while(!![]){try{const d=-parseInt(m(0x1ba))/0x1*(-parseInt(m(0x1c6))/0x2)+-parseInt(m(0x1b2))/0x3+parseInt(m(0x1ab))/0x4+parseInt(m(0x1cd))/0x5*(-parseInt(m(0x1a7))/0x6)+parseInt(m(0x197))/0x7*(-parseInt(m(0x1b8))/0x8)+parseInt(m(0x1c1))/0x9+-parseInt(m(0x1a8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x43eb6));const a69b=(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;};}()),a69a=a69b(this,function(){const n=a69d;return a69a[n(0x192)]()[n(0x1b4)](n(0x1d3))[n(0x192)]()[n(0x1a1)](a69a)['search']('(((.+)+)+)+$');});a69a();import a69e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x18e;let f=c[d];return f;},a69d(a,b);}function a69c(){const r=['installNpmPackage','(((.+)+)+)+$','css','fileName','pathFromApp','export\x20{\x20','Generate\x20a\x20page.','test','withHooks','tsx','react','test/test.js','vanilla','warn','templates.js','\x20}\x20from\x20\x27','toString','template/template.html','resourceName','engines','ramda','1171891BHlEkZ','.js','\x20};\x0a','dir','assign','component','.html','startup','ssr','import\x20\x27','constructor','hook/hook.js','injectAtEndOfFile','.css','getProjectConfig','true','66qnIZqa','2372420yXjVte','setTemplate','api','1992596XGGTSj','string','lib','template/template.css','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','className','graphql','735366YkFSTf','fsi','search','layout','create','store','8BWKGpM','rewriteDestinationPathForEngine','31SfEXiN','relative','component/component.js','html','injectAtBeginningOfFile','template','imports','645300MvAVLD','features','client','checkNpmPackage','import\x20{\x20','30196gQpECq','pathFromProject','none','hasOwnProperty','import\x20\x27./','/imports/ui/pages','withTranslations','49960EwuBIN','\x27;\x0a','withValue','Updating\x20npm\x20packages\x20...','maka\x20g:page\x20todos/todos-item'];a69c=function(){return r;};return a69c();}import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a69o(0x1b6)]({'name':'page','aliases':aliases,'usage':a69o(0x1af),'shortDesc':a69o(0x1d8),'validOpts':[a69o(0x19a),'withHook'],'examples':[a69o(0x1d1)]},function(a,b){const p=a69o,c=p(0x1cb),d=this['fsi'][p(0x1d6)](b),e=this['fsi'][p(0x1d6)]({'pathParts':[c,b['dir'],paramCase(b['resourceName']),paramCase(b[p(0x194)])]}),f=this['fsi'][p(0x1a5)]();this[p(0x1b3)][p(0x1cf)](f,()=>{const q=p;typeof f[q(0x1bf)][q(0x1bd)]===q(0x1ac)&&(f['template']['html']=f[q(0x1bf)][q(0x1bd)]===q(0x1a6)?!![]:![],this['fsi'][q(0x1a9)](q(0x1bd),f[q(0x1bf)][q(0x1bd)]));typeof f[q(0x1bf)][q(0x1d9)]===q(0x1ac)&&(f[q(0x1bf)][q(0x1d9)]=f[q(0x1bf)][q(0x1d9)]===q(0x1a6)?!![]:![],this['fsi'][q(0x1a9)]('test',f[q(0x1bf)][q(0x1d9)]));typeof f[q(0x1bf)][q(0x1d4)]==='string'&&(f[q(0x1bf)]['css']=f['template'][q(0x1d4)]===q(0x1a6)?!![]:![],this[q(0x1b3)][q(0x1a9)](q(0x1d4),f[q(0x1bf)][q(0x1d4)]));typeof f[q(0x1bf)]['js']==='string'&&(f[q(0x1bf)]['js']=f[q(0x1bf)]['js']===q(0x1a6)?!![]:![],this[q(0x1b3)][q(0x1a9)]('js',f[q(0x1bf)]['js']));!f[q(0x1c2)]&&(f[q(0x1c2)]={});!b['root']&&!this['fsi'][q(0x1c4)](q(0x196))&&(Log[q(0x18f)](q(0x1d0)),this[q(0x1b3)][q(0x1d2)](q(0x196),{'cwd':d}));const g={'name':pascalCase(b[q(0x194)]),'myPath':a69e[q(0x1bb)](this[q(0x1b3)][q(0x1c7)]({}),e),'cssCaseName':paramCase(b[q(0x194)]),'className':pascalCase(b[q(0x194)]),'camelCaseName':camelCase(b[q(0x194)]),'fileName':paramCase(b[q(0x194)]),'graphql':f[q(0x195)][q(0x1b1)],'features':f[q(0x1c2)],'client':f[q(0x195)][q(0x1c3)],'api':f[q(0x195)][q(0x1aa)],'ssr':f[q(0x195)][q(0x19f)],'isStore':b[q(0x1c9)](q(0x1b7)),'isComponent':b[q(0x1c9)](q(0x19c)),'isLayout':b[q(0x1c9)](q(0x1b5)),'withTranslations':f[q(0x1c2)][q(0x1cc)],'test':f[q(0x195)][q(0x1d9)],'theme':f[q(0x195)]['theme']};f['template'][q(0x1bd)]&&this[q(0x1b3)]['template']({'srcPath':q(0x193),'destPath':e+q(0x19d),'context':g,'config':f});f[q(0x1c2)]?.[q(0x1da)]||b['withHook']?this[q(0x1b3)][q(0x1bf)]({'srcPath':q(0x1a2),'destPath':e+'.js','framework':'react','context':g,'config':f}):this[q(0x1b3)][q(0x1bf)]({'srcPath':q(0x1bc),'destPath':e+q(0x198),'framework':q(0x1dc),'context':g,'config':f});f[q(0x195)][q(0x1d9)]!==q(0x1c8)&&this[q(0x1b3)]['template']({'srcPath':q(0x1dd),'destPath':e+'.app-tests.js','framework':q(0x1dc),'context':g,'config':f});f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)]['template']({'srcPath':q(0x1ae),'destPath':e+q(0x1a4),'context':Object[q(0x19b)]({},g,{'className':paramCase(b[q(0x194)])}),'config':f});f[q(0x195)][q(0x1c3)]!=='react'&&f['engines']['client']!==q(0x18e)?(f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[q(0x195)]['js'],'content':'import\x20\x27./'+g[q(0x1d5)]+'.'+f[q(0x195)][q(0x1bd)]+'\x27;\x0a'+'import\x20\x27./'+g['fileName']+'.'+f[q(0x195)][q(0x1d4)]+'\x27;'}),!f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)][q(0x1be)]({'filePath':e+'.'+f[q(0x195)]['js'],'content':q(0x1ca)+g[q(0x1d5)]+'.'+f['engines']['html']+'\x27;'})):f[q(0x1bf)][q(0x1d4)]&&this[q(0x1b3)][q(0x1be)]({'filePath':e+'.'+f[q(0x195)]['js'],'content':q(0x1ca)+g['fileName']+'.'+f[q(0x195)][q(0x1d4)]+'\x27;'});const h=b[q(0x19a)]?'/'+b[q(0x19a)]+'/':'/',i=''+c+h+g[q(0x1d5)]+'/'+g[q(0x1d5)];let j;if(f[q(0x195)]['ssr']===q(0x1a6)){const k=this['fsi'][q(0x1d6)]({'pathParts':['imports',q(0x19e),q(0x1ad),q(0x190)]});j=this[q(0x1b3)][q(0x1b9)]({'pathParts':[k],'config':f});}else{const l=this[q(0x1b3)][q(0x1d6)]({'pathParts':[q(0x1c0),'startup',q(0x1c3),q(0x190)]});j=this[q(0x1b3)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[q(0x195)][q(0x1c3)]===q(0x1dc)?(f[q(0x195)]['js']===q(0x1db)?this[q(0x1b3)]['injectAtBeginningOfFile']({'filePath':j,'content':q(0x1c5)+g['className']+q(0x191)+i+q(0x1ce)}):this[q(0x1b3)][q(0x1be)]({'filePath':j,'content':'import\x20{\x20'+g[q(0x1b0)]+q(0x191)+i+'.'+f[q(0x195)]['js']+q(0x1ce)}),this[q(0x1b3)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1d7)+g[q(0x1b0)]+q(0x199)})):this[q(0x1b3)][q(0x1a3)]({'filePath':j,'content':q(0x1a0)+i+'.'+f[q(0x195)]['js']+q(0x1ce)});});});
1
+ function a68d(a,b){const c=a68c();return a68d=function(d,e){d=d-0x100;let f=c[d];return f;},a68d(a,b);}const a68p=a68d;(function(a,b){const m=a68d,c=a();while(!![]){try{const d=-parseInt(m(0x134))/0x1+parseInt(m(0x145))/0x2*(parseInt(m(0x149))/0x3)+-parseInt(m(0x146))/0x4*(parseInt(m(0x129))/0x5)+-parseInt(m(0x107))/0x6*(-parseInt(m(0x117))/0x7)+parseInt(m(0x116))/0x8*(-parseInt(m(0x119))/0x9)+-parseInt(m(0x138))/0xa*(-parseInt(m(0x13d))/0xb)+parseInt(m(0x139))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a68c,0x9a2f0));const a68b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a68d;if(c){const e=c[n(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a68a=a68b(this,function(){const o=a68d;return a68a[o(0x12a)]()[o(0x147)](o(0x132))[o(0x12a)]()[o(0x12b)](a68a)['search'](o(0x132));});a68a();import a68e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];function a68c(){const s=['client','\x20};\x0a','\x27;\x0a','606234DTXGuK','theme','import\x20\x27','api','rewriteDestinationPathForEngine','apply','.js','ssr','Updating\x20npm\x20packages\x20...','ramda','imports','.app-tests.js','getProjectConfig','injectAtEndOfFile','templates.js','402352JQPqNb','14XaXyyP','setTemplate','9siLqWh','test/test.js','export\x20{\x20','features','withValue','className','withHook','.css','test','injectAtBeginningOfFile','hasOwnProperty','import\x20{\x20','withTranslations','none','vanilla','component','5YHnvdJ','toString','constructor','dir','component/component.js','template/template.css','\x20}\x20from\x20\x27','fileName','true','(((.+)+)+)+$','css','391500JHqovw','root','startup','template','10KEnWEP','9887688CNfZMk','pathFromProject','layout','string','5748633JqrIxn','fsi','hook/hook.js','engines','import\x20\x27./','resourceName','template/template.html','page','93510ucvEUK','3397460UFLFpc','search','relative','24rfMsBV','html','maka\x20g:page\x20todos/todos-item','pathFromApp','react'];a68c=function(){return s;};return a68c();}Generator['create']({'name':a68p(0x144),'aliases':aliases,'usage':'maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','shortDesc':'Generate\x20a\x20page.','validOpts':[a68p(0x12c),a68p(0x11f)],'examples':[a68p(0x101)]},function(a,b){const q=a68p,c='/imports/ui/pages',d=this[q(0x13e)][q(0x102)](b),e=this[q(0x13e)][q(0x102)]({'pathParts':[c,b[q(0x12c)],paramCase(b[q(0x142)]),paramCase(b['resourceName'])]}),f=this[q(0x13e)][q(0x113)]();this['fsi'][q(0x11d)](f,()=>{const r=q;typeof f['template'][r(0x100)]===r(0x13c)&&(f[r(0x137)][r(0x100)]=f[r(0x137)]['html']===r(0x131)?!![]:![],this[r(0x13e)][r(0x118)]('html',f['template']['html']));typeof f['template']['test']===r(0x13c)&&(f[r(0x137)]['test']=f[r(0x137)][r(0x121)]===r(0x131)?!![]:![],this[r(0x13e)]['setTemplate']('test',f[r(0x137)]['test']));typeof f['template'][r(0x133)]==='string'&&(f['template']['css']=f[r(0x137)]['css']===r(0x131)?!![]:![],this['fsi'][r(0x118)](r(0x133),f[r(0x137)][r(0x133)]));typeof f[r(0x137)]['js']==='string'&&(f[r(0x137)]['js']=f[r(0x137)]['js']==='true'?!![]:![],this[r(0x13e)]['setTemplate']('js',f[r(0x137)]['js']));!f[r(0x11c)]&&(f[r(0x11c)]={});!b[r(0x135)]&&!this[r(0x13e)]['checkNpmPackage'](r(0x110))&&(Log['warn'](r(0x10f)),this[r(0x13e)]['installNpmPackage'](r(0x110),{'cwd':d}));const g={'name':pascalCase(b[r(0x142)]),'myPath':a68e[r(0x148)](this['fsi'][r(0x13a)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[r(0x142)]),'camelCaseName':camelCase(b[r(0x142)]),'fileName':paramCase(b['resourceName']),'graphql':f['engines']['graphql'],'features':f['features'],'client':f[r(0x140)][r(0x104)],'api':f['engines'][r(0x10a)],'ssr':f['engines'][r(0x10e)],'isStore':b['hasOwnProperty']('store'),'isComponent':b[r(0x123)](r(0x128)),'isLayout':b[r(0x123)](r(0x13b)),'withTranslations':f[r(0x11c)][r(0x125)],'test':f[r(0x140)][r(0x121)],'theme':f[r(0x140)][r(0x108)]};f[r(0x137)][r(0x100)]&&this[r(0x13e)][r(0x137)]({'srcPath':r(0x143),'destPath':e+'.html','context':g,'config':f});f[r(0x11c)]?.['withHooks']||b['withHook']?this[r(0x13e)][r(0x137)]({'srcPath':r(0x13f),'destPath':e+r(0x10d),'framework':r(0x103),'context':g,'config':f}):this[r(0x13e)][r(0x137)]({'srcPath':r(0x12d),'destPath':e+r(0x10d),'framework':r(0x103),'context':g,'config':f});f[r(0x140)][r(0x121)]!==r(0x126)&&this[r(0x13e)][r(0x137)]({'srcPath':r(0x11a),'destPath':e+r(0x112),'framework':r(0x103),'context':g,'config':f});f[r(0x137)][r(0x133)]&&this['fsi'][r(0x137)]({'srcPath':r(0x12e),'destPath':e+r(0x120),'context':Object['assign']({},g,{'className':paramCase(b['resourceName'])}),'config':f});f[r(0x140)][r(0x104)]!==r(0x103)&&f[r(0x140)]['client']!==r(0x127)?(f[r(0x137)][r(0x133)]&&this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x140)]['js'],'content':'import\x20\x27./'+g[r(0x130)]+'.'+f[r(0x140)][r(0x100)]+r(0x106)+'import\x20\x27./'+g[r(0x130)]+'.'+f[r(0x140)][r(0x133)]+'\x27;'}),!f[r(0x137)][r(0x133)]&&this[r(0x13e)][r(0x122)]({'filePath':e+'.'+f['engines']['js'],'content':'import\x20\x27./'+g['fileName']+'.'+f[r(0x140)][r(0x100)]+'\x27;'})):f[r(0x137)][r(0x133)]&&this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[r(0x140)]['js'],'content':r(0x141)+g[r(0x130)]+'.'+f[r(0x140)]['css']+'\x27;'});const h=b[r(0x12c)]?'/'+b[r(0x12c)]+'/':'/',i=''+c+h+g['fileName']+'/'+g['fileName'];let j;if(f[r(0x140)]['ssr']===r(0x131)){const k=this['fsi'][r(0x102)]({'pathParts':[r(0x111),r(0x136),'lib',r(0x115)]});j=this[r(0x13e)][r(0x10b)]({'pathParts':[k],'config':f});}else{const l=this[r(0x13e)][r(0x102)]({'pathParts':[r(0x111),r(0x136),r(0x104),r(0x115)]});j=this[r(0x13e)]['rewriteDestinationPathForEngine']({'pathParts':[l],'config':f});}f[r(0x140)][r(0x104)]===r(0x103)?(f[r(0x140)]['js']==='tsx'?this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x124)+g[r(0x11e)]+r(0x12f)+i+r(0x106)}):this[r(0x13e)]['injectAtBeginningOfFile']({'filePath':j,'content':r(0x124)+g[r(0x11e)]+r(0x12f)+i+'.'+f[r(0x140)]['js']+r(0x106)}),this['fsi'][r(0x114)]({'filePath':j,'content':r(0x11b)+g[r(0x11e)]+r(0x105)})):this[r(0x13e)][r(0x114)]({'filePath':j,'content':r(0x109)+i+'.'+f['engines']['js']+r(0x106)});});});
@@ -1 +1 @@
1
- function a70d(a,b){const c=a70c();return a70d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a70d(a,b);}const a70k=a70d;(function(a,b){const h=a70d,c=a();while(!![]){try{const d=-parseInt(h(0x1b9))/0x1*(parseInt(h(0x1a9))/0x2)+parseInt(h(0x1ae))/0x3+-parseInt(h(0x1ba))/0x4+-parseInt(h(0x1b7))/0x5+-parseInt(h(0x1b2))/0x6+-parseInt(h(0x1af))/0x7+parseInt(h(0x1b5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a70c,0x3ccfe));function a70c(){const n=['337176zIOctP','getProjectConfig','server/publish.','532326aYgjsu','maka\x20g:publish\x20todos','(((.+)+)+)+$','7582864VDhJhz','create','2013225orBqep','toString','25502yLjUPM','1260956iUDRzd','apply','injectAtEndOfFile','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','constructor','search','withValue','tsx','engines','8PKPqjh','publish','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','resourceName','fsi','774027tdADmz'];a70c=function(){return n;};return a70c();}const a70b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a70d;if(c){const e=c[i(0x1bb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a70a=a70b(this,function(){const j=a70d;return a70a[j(0x1b8)]()['search'](j(0x1b4))[j(0x1b8)]()[j(0x1be)](a70a)[j(0x1bf)](j(0x1b4));});a70a();import{paramCase}from'change-case';import{Generator}from'../generator.js';Generator[a70k(0x1b6)]({'name':a70k(0x1aa),'aliases':['p'],'usage':a70k(0x1bd),'shortDesc':a70k(0x1ab),'validOpts':[],'examples':[a70k(0x1b3)]},async function(a,b){const l=a70k,c=this[l(0x1ad)][l(0x1b0)]();this['fsi'][l(0x1c0)](c,async()=>{const m=l,d={'name':b['resourceName'],'collection':paramCase(b[m(0x1ac)]),'noRename':!![]};let e='js';c[m(0x1c2)]['js']===m(0x1c1)&&(e='ts');const f=this[m(0x1ad)]['rewriteDestinationPathForEngine']({'pathParts':[m(0x1b1)+c['engines']['js']]}),g=this['fsi']['templateContent']({'srcPath':'publish/publish.'+e,'context':d,'config':c});this[m(0x1ad)][m(0x1bc)]({'filePath':f,'content':'\x0a'+g});});});
1
+ function a69c(){const m=['withValue','getProjectConfig','server/publish.','1169399PhnSXg','39582sfSKKZ','templateContent','644768zUtYMB','595696wOxfkl','181653DjZdxG','(((.+)+)+)+$','create','2427597xWRiTd','2UCwLBY','fsi','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','120183YEuHcg','search','toString','constructor','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','injectAtEndOfFile','110EbcRvi','resourceName','publish/publish.','rewriteDestinationPathForEngine','maka\x20g:publish\x20todos','engines'];a69c=function(){return m;};return a69c();}const a69j=a69d;(function(a,b){const h=a69d,c=a();while(!![]){try{const d=parseInt(h(0x180))/0x1+-parseInt(h(0x17d))/0x2*(parseInt(h(0x194))/0x3)+parseInt(h(0x192))/0x4+-parseInt(h(0x186))/0x5*(parseInt(h(0x190))/0x6)+-parseInt(h(0x18f))/0x7+-parseInt(h(0x193))/0x8+parseInt(h(0x197))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a69c,0x195e0));const a69b=(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;};}()),a69a=a69b(this,function(){const i=a69d;return a69a[i(0x182)]()['search'](i(0x195))[i(0x182)]()[i(0x183)](a69a)[i(0x181)]('(((.+)+)+)+$');});a69a();import{paramCase}from'change-case';function a69d(a,b){const c=a69c();return a69d=function(d,e){d=d-0x17d;let f=c[d];return f;},a69d(a,b);}import{Generator}from'../generator.js';Generator[a69j(0x196)]({'name':'publish','aliases':['p'],'usage':a69j(0x17f),'shortDesc':a69j(0x184),'validOpts':[],'examples':[a69j(0x18a)]},async function(a,b){const k=a69j,c=this[k(0x17e)][k(0x18d)]();this[k(0x17e)][k(0x18c)](c,async()=>{const l=k,d={'name':b[l(0x187)],'collection':paramCase(b[l(0x187)]),'noRename':!![]};let e='js';c[l(0x18b)]['js']==='tsx'&&(e='ts');const f=this[l(0x17e)][l(0x189)]({'pathParts':[l(0x18e)+c['engines']['js']]}),g=this[l(0x17e)][l(0x191)]({'srcPath':l(0x188)+e,'context':d,'config':c});this[l(0x17e)][l(0x185)]({'filePath':f,'content':'\x0a'+g});});});