@maka/maka-cli 4.7.12 → 4.7.13

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 (323) hide show
  1. package/.eslintrc.json +29 -29
  2. package/.mocharc.json +3 -3
  3. package/.vs/VSWorkspaceState.json +12 -0
  4. package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
  5. package/.vs/maka-cli-src/FileContentIndex/69d2de39-b193-48d9-b520-96bdb73b7b61.vsidx +0 -0
  6. package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
  7. package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
  8. package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
  9. package/.vs/maka-cli-src/config/applicationhost.config +1016 -0
  10. package/.vs/maka-cli-src/v17/.wsuo +0 -0
  11. package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
  12. package/.vs/slnx.sqlite +0 -0
  13. package/README.md +21 -21
  14. package/bundle/obf/package.json +127 -127
  15. package/bundle/obf/src/README.md +21 -21
  16. package/bundle/obf/src/command.js +1 -1
  17. package/bundle/obf/src/commands/_index.js +1 -1
  18. package/bundle/obf/src/commands/ai.js +1 -1
  19. package/bundle/obf/src/commands/aws/_index.js +1 -1
  20. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  21. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  23. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/build/_index.js +1 -1
  34. package/bundle/obf/src/commands/build/build.js +1 -1
  35. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  36. package/bundle/obf/src/commands/create.js +1 -1
  37. package/bundle/obf/src/commands/debug.js +1 -1
  38. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  39. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  40. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  41. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  42. package/bundle/obf/src/commands/game/_index.js +1 -1
  43. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  44. package/bundle/obf/src/commands/game/play.command.js +1 -1
  45. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  69. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  70. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  71. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  72. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  73. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  74. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  75. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  76. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  77. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  78. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  79. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  80. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  81. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  82. package/bundle/obf/src/commands/generate.js +1 -1
  83. package/bundle/obf/src/commands/get/_index.js +1 -1
  84. package/bundle/obf/src/commands/get/get.command.js +1 -1
  85. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/help.js +1 -1
  89. package/bundle/obf/src/commands/install.js +1 -1
  90. package/bundle/obf/src/commands/jsdoc.js +1 -1
  91. package/bundle/obf/src/commands/lint.js +1 -1
  92. package/bundle/obf/src/commands/login.js +1 -1
  93. package/bundle/obf/src/commands/logout.js +1 -1
  94. package/bundle/obf/src/commands/logs.js +1 -1
  95. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  96. package/bundle/obf/src/commands/murder.js +1 -1
  97. package/bundle/obf/src/commands/proxy.js +1 -1
  98. package/bundle/obf/src/commands/reconfig.js +1 -1
  99. package/bundle/obf/src/commands/run/_index.js +1 -1
  100. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/run/run.command.js +1 -1
  102. package/bundle/obf/src/commands/set/_index.js +1 -1
  103. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  104. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  105. package/bundle/obf/src/commands/set/set.command.js +1 -1
  106. package/bundle/obf/src/commands/ssh.js +1 -1
  107. package/bundle/obf/src/commands/ssl.js +1 -1
  108. package/bundle/obf/src/commands/test.js +1 -1
  109. package/bundle/obf/src/commands/version.js +1 -1
  110. package/bundle/obf/src/error.js +1 -1
  111. package/bundle/obf/src/exec.js +1 -1
  112. package/bundle/obf/src/generator.js +1 -1
  113. package/bundle/obf/src/generators/_index.js +1 -1
  114. package/bundle/obf/src/generators/api.js +1 -1
  115. package/bundle/obf/src/generators/collection.js +1 -1
  116. package/bundle/obf/src/generators/component.js +1 -1
  117. package/bundle/obf/src/generators/config.js +1 -1
  118. package/bundle/obf/src/generators/dbc.js +1 -1
  119. package/bundle/obf/src/generators/dockerfile.js +1 -1
  120. package/bundle/obf/src/generators/hook.js +1 -1
  121. package/bundle/obf/src/generators/kits/_index.js +1 -1
  122. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/kit.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  129. package/bundle/obf/src/generators/layout.js +1 -1
  130. package/bundle/obf/src/generators/maka.gen.js +1 -1
  131. package/bundle/obf/src/generators/methods.js +1 -1
  132. package/bundle/obf/src/generators/package.js +1 -1
  133. package/bundle/obf/src/generators/page.js +1 -1
  134. package/bundle/obf/src/generators/publish.js +1 -1
  135. package/bundle/obf/src/generators/route.js +1 -1
  136. package/bundle/obf/src/generators/service.js +1 -1
  137. package/bundle/obf/src/generators/services/_index.js +1 -1
  138. package/bundle/obf/src/generators/services/openssl.js +1 -1
  139. package/bundle/obf/src/generators/services/translation.js +1 -1
  140. package/bundle/obf/src/maka.js +1 -1
  141. package/bundle/obf/src/templates/meteor/api/api.js +11 -11
  142. package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
  143. package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
  144. package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
  145. package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
  146. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
  147. package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
  148. package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
  149. package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
  150. package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
  151. package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
  152. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
  153. package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
  154. package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
  155. package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
  156. package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
  157. package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
  158. package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
  159. package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
  160. package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
  161. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
  162. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
  163. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
  164. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
  165. package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
  166. package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
  167. package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
  168. package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
  169. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
  170. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
  171. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
  172. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
  173. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
  174. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
  175. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
  176. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
  177. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
  178. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
  179. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
  180. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
  181. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
  182. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
  183. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
  184. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
  185. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
  186. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
  187. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
  188. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
  189. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
  190. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
  191. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
  192. package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
  193. package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
  194. package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
  195. package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
  196. package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
  197. package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
  198. package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
  199. package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
  200. package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
  201. package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
  202. package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
  203. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
  204. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
  205. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
  206. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
  207. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
  208. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
  209. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
  210. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
  211. package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
  212. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
  213. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
  214. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
  215. package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
  216. package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
  217. package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
  218. package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
  219. package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
  220. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
  221. package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
  222. package/bundle/obf/src/templates/meteor/config/process.env +5 -5
  223. package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
  224. package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
  225. package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
  226. package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
  227. package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
  228. package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
  229. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
  230. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
  231. package/bundle/obf/src/templates/meteor/method/method.js +48 -48
  232. package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
  233. package/bundle/obf/src/templates/meteor/package/package.js +37 -37
  234. package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
  235. package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
  236. package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
  237. package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
  238. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
  239. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
  240. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
  241. package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
  242. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
  243. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
  244. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
  245. package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
  246. package/bundle/obf/src/templates/meteor/project/README.md +1 -1
  247. package/bundle/obf/src/templates/meteor/project/build/README +4 -4
  248. package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
  249. package/bundle/obf/src/templates/meteor/project/package.json +20 -20
  250. package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
  251. package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
  252. package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
  253. package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
  254. package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
  255. package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
  256. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
  257. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
  258. package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
  259. package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
  260. package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
  261. package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
  262. package/bundle/obf/src/templates/meteor/template/template.css +3 -3
  263. package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
  264. package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
  265. package/bundle/obf/src/templates/meteor/template/template.html +5 -5
  266. package/bundle/obf/src/templates/meteor/template/template.js +20 -20
  267. package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
  268. package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
  269. package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
  270. package/bundle/obf/src/templates/react/component/component.css +6 -6
  271. package/bundle/obf/src/templates/react/component/component.css.less +6 -6
  272. package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
  273. package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
  274. package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
  275. package/bundle/obf/src/templates/react/hook/hook.css +3 -3
  276. package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
  277. package/bundle/obf/src/templates/react/hook/hook.js +1 -1
  278. package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
  279. package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
  280. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
  281. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
  282. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
  283. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
  284. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
  285. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
  286. package/bundle/obf/src/templates/react/route/route.js +8 -8
  287. package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
  288. package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
  289. package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
  290. package/bundle/obf/src/templates/react/test/test.js +1 -1
  291. package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
  292. package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
  293. package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
  294. package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
  295. package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
  296. package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
  297. package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
  298. package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
  299. package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
  300. package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
  301. package/bundle/obf/src/tool.js +1 -1
  302. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  303. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  304. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  305. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  306. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  307. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  308. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  309. package/bundle/obf/src/tools/https/https.class.js +1 -1
  310. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  311. package/bundle/obf/src/tools/log/log.class.js +1 -1
  312. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  313. package/bundle/obf/src/tools/options/options.class.js +1 -1
  314. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  315. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  316. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  317. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  318. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  319. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  320. package/jest.config.js +11 -11
  321. package/obfuscator.json +29 -29
  322. package/package.json +127 -127
  323. package/tsconfig.json +23 -23
@@ -1 +1 @@
1
- const a120A=a120d;(function(a,b){const y=a120d,c=a();while(!![]){try{const d=-parseInt(y(0x1c3))/0x1+-parseInt(y(0x1db))/0x2+-parseInt(y(0x1f1))/0x3*(-parseInt(y(0x1ba))/0x4)+-parseInt(y(0x1c2))/0x5*(parseInt(y(0x1fa))/0x6)+parseInt(y(0x1b0))/0x7+parseInt(y(0x1c0))/0x8*(parseInt(y(0x1ed))/0x9)+-parseInt(y(0x1dc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x88e6f));function a120c(){const J=['7280090cbYMzQ','cwd','baseDir','pathFromApp','templateContent','(((.+)+)+)+$','startup','join','withValue','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','components','imports','route/route.js','Invalid\x20directory\x20option\x20\x22','warn','url','injectAtEndOfFile','189lYeWVp','\x22*\x22','withHook','MasterLayout','879HXZzis','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','maka\x20g:route\x20pages/lists/listIndex\x20lists','length','rewriteDestinationPathForEngine','client','<Route','info','injectAfterLineNumber','4056EZHrGC','templateName','replace','const\x20publicRoutes\x20=\x20(<>','vanilla','lib','engines','6890779dConQh','getMakaProjectConfig','fileContainsString','newForm','/imports/ui/','\x20to\x20','/imports/ui/pages','routes.js','hooks','filter','12308qPUqkb','layout','readFileLines','toLowerCase','private','\x0a\x09\x09','1064HKUlBU','includes','975MfDOrQ','400780aihsxv','route','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','layouts','maka\x20g:route\x20todosEdit\x20todos/:id/edit','true','constructor','maka\x20g:route\x20pages/about','fsi','react','map','Valid\x20options\x20are:\x20','</Router>','Route\x20','withTranslations','<Router','toString','only','injectIntoFile','error','dir','const\x20privateRoutes\x20=\x20(<>','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','Scaffolding\x20for\x20a\x20Route.','134782KyqYHB'];a120c=function(){return J;};return a120c();}const a120b=(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;};}()),a120a=a120b(this,function(){const z=a120d;return a120a[z(0x1d3)]()['search'](z(0x1e1))['toString']()[z(0x1c9)](a120a)['search'](z(0x1e1));});a120a();import a120e from'path';import{Generator}from'../generator.js';function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x1ac;let f=c[d];return f;},a120d(a,b);}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a120A(0x1c4),'aliases':aliases,'validOpts':[a120A(0x1be),'layout',a120A(0x1d4),a120A(0x1dd),'config','root',a120A(0x1ef),a120A(0x1eb),'baseDir'],'usage':a120A(0x1f2),'shortDesc':a120A(0x1da),'examples':['maka\x20g:route\x20todosIndex\x20todos',a120A(0x1c7),a120A(0x1d9),a120A(0x1f3),a120A(0x1ca)]},async function(a,b){const B=a120A;try{const c=[B(0x1b8),B(0x1e6),'pages',B(0x1c6)];if(b[B(0x1de)]&&!c[B(0x1c1)](b[B(0x1de)])){Log[B(0x1d6)](B(0x1e9)+b[B(0x1de)]+'\x22'),Log['error'](B(0x1ce)+c[B(0x1e3)](',\x20'));throw new UsageError();}const d=this['fsi'][B(0x1b1)]();await this['fsi'][B(0x1e4)](d,async()=>{const C=B,f=b['private']??![];let g=paramCase(b['resourceName']),h='/'+g;a[C(0x1f4)]>0x1&&(h='/'+a[C(0x1b9)](function(n){return n!=='/';})[C(0x1e3)]('/')[C(0x1bd)]());g=camelCase(g);b[C(0x1bb)]&&(b[C(0x1bb)]=camelCase(b[C(0x1bb)]));const i=b[C(0x1de)]?C(0x1b4)+b[C(0x1de)]:C(0x1b6),j=a120e[C(0x1e3)](i,b[C(0x1d7)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||C(0x1f0),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x1af)]['client'],'newForm':![],'withTranslations':d['features'][C(0x1d1)]};f&&(k[C(0x1bb)]='PrivateLayout');let l,m;if(d[C(0x1af)][C(0x1f6)]===C(0x1cc)){if(d[C(0x1af)]['ssr']===C(0x1c8)){const r=this['fsi']['pathFromApp']({'pathParts':[C(0x1e7),C(0x1e2),C(0x1ae),'routes.js']});l=this['fsi'][C(0x1f5)]({'pathParts':[r],'config':d});}else{const s=this[C(0x1cb)][C(0x1df)]({'pathParts':['imports',C(0x1e2),'client',C(0x1b7)]});l=this['fsi'][C(0x1f5)]({'pathParts':[s],'config':d});}const n=await this[C(0x1cb)][C(0x1b2)](l,g);if(n){Log[C(0x1ea)](C(0x1d0)+g+'\x20already\x20exists.\x20\x20Skipping.');return;}else{const t=this['fsi']['pathFromProject'](l);Log[C(0x1f8)]('Adding\x20route\x20'+g+C(0x1b5)+l[C(0x1fc)](t,''));}const o=this[C(0x1cb)]['readFileLines'](l)[C(0x1cd)]((u,v)=>{const D=C;return u[D(0x1c1)](D(0x1e5))?v+0x1:null;})[C(0x1b9)](u=>u!==null);let p=this[C(0x1cb)][C(0x1bc)](l)[C(0x1cd)]((u,v)=>{const E=C;return u[E(0x1c1)](E(0x1ac))?v+0x1:null;})[C(0x1b9)](u=>u!==null),q=this['fsi'][C(0x1bc)](l)[C(0x1cd)]((u,v)=>{const F=C;return u[F(0x1c1)](F(0x1d8))?v+0x1:null;})[C(0x1b9)](u=>u!==null);p[C(0x1f4)]>0x0&&q['length']>0x0&&(k[C(0x1b3)]=!![]);m=this['fsi'][C(0x1e0)]({'srcPath':C(0x1e8),'framework':C(0x1cc),'context':k,'config':d});if(p[C(0x1f4)]>0x0||q['length']>0x0){this[C(0x1cb)][C(0x1f9)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x1f4)]>0x0)q=this[C(0x1cb)][C(0x1bc)](l)['map']((u,v)=>{const G=C;return u[G(0x1c1)](G(0x1d8))?v+0x1:null;})['filter'](u=>u!==null),this[C(0x1cb)][C(0x1f9)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[C(0x1f4)]>0x0?(p=this[C(0x1cb)]['readFileLines'](l)[C(0x1cd)]((u,v)=>{const H=C;return u[H(0x1c1)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})['filter'](u=>u!==null),this[C(0x1cb)][C(0x1f9)]({'filePath':l,'content':'\x09{'+k[C(0x1fb)]+'}','lineNumber':p[0x0]})):Log[C(0x1ea)](C(0x1c5)+l);}else{const u=this['fsi'][C(0x1bc)](l)[C(0x1cd)](x=>{const I=C;return x[I(0x1c1)](I(0x1ee));}),v=u['indexOf'](!![])>-0x1,w=v?C(0x1f7):C(0x1cf);await this['fsi'][C(0x1d5)]({'filePath':l,'content':'\x0a\x09\x09'+m+C(0x1bf),'begin':C(0x1d2),'end':w});}}else{if(d[C(0x1af)][C(0x1f6)]===C(0x1ad)){const x=this[C(0x1cb)][C(0x1df)]({'pathParts':[C(0x1e7),C(0x1e2),C(0x1f6),C(0x1b7)]});l=this[C(0x1cb)]['rewriteDestinationPathForEngine']({'pathParts':[x],'config':d}),m=this[C(0x1cb)][C(0x1e0)]({'srcPath':C(0x1e8),'context':k}),await this[C(0x1cb)][C(0x1ec)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x1d6)](f);}});
1
+ const a119B=a119d;(function(a,b){const y=a119d,c=a();while(!![]){try{const d=-parseInt(y(0x7f))/0x1+-parseInt(y(0x8b))/0x2+parseInt(y(0x97))/0x3+-parseInt(y(0xa2))/0x4+parseInt(y(0xc2))/0x5*(-parseInt(y(0x9e))/0x6)+-parseInt(y(0xad))/0x7+-parseInt(y(0x90))/0x8*(-parseInt(y(0x93))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a119c,0x338c0));const a119b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a119d;if(c){const e=c[z(0xc0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a119a=a119b(this,function(){const A=a119d;return a119a[A(0x96)]()[A(0xbb)]('(((.+)+)+)+$')[A(0x96)]()['constructor'](a119a)[A(0xbb)](A(0x83));});a119a();import a119e from'path';function a119d(a,b){const c=a119c();return a119d=function(d,e){d=d-0x7a;let f=c[d];return f;},a119d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a119B(0xbd)]({'name':a119B(0x81),'aliases':aliases,'validOpts':[a119B(0x88),'layout',a119B(0xaa),a119B(0x9b),a119B(0xa7),a119B(0xa9),a119B(0xab),a119B(0x84),'baseDir'],'usage':'maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','shortDesc':a119B(0x9c),'examples':[a119B(0x7d),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a119B(0xa3),a119B(0xc9),a119B(0xa8)]},async function(a,b){const C=a119B;try{const c=['hooks',C(0xc3),'pages','layouts'];if(b[C(0x98)]&&!c['includes'](b[C(0x98)])){Log['error'](C(0xb5)+b[C(0x98)]+'\x22'),Log['error'](C(0xba)+c[C(0xc5)](',\x20'));throw new UsageError();}const d=this[C(0x80)]['getMakaProjectConfig']();await this[C(0x80)]['withValue'](d,async()=>{const D=C,f=b[D(0x88)]??![];let g=paramCase(b[D(0xc8)]),h='/'+g;a[D(0xa4)]>0x1&&(h='/'+a[D(0x9a)](function(n){return n!=='/';})[D(0xc5)]('/')[D(0x7e)]());g=camelCase(g);b[D(0x9f)]&&(b['layout']=camelCase(b[D(0x9f)]));const i=b['baseDir']?D(0x99)+b[D(0x98)]:D(0xa1),j=a119e[D(0xc5)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x9f)]||D(0xa5),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x91)][D(0x86)],'newForm':![],'withTranslations':d[D(0xbf)][D(0x95)]};f&&(k[D(0x9f)]=D(0xbc));let l,m;if(d['engines'][D(0x86)]===D(0x94)){if(d[D(0x91)][D(0x82)]===D(0xaf)){const r=this['fsi'][D(0xb3)]({'pathParts':[D(0xac),'startup','lib',D(0xbe)]});l=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[r],'config':d});}else{const s=this[D(0x80)][D(0xb3)]({'pathParts':[D(0xac),D(0xb8),'client','routes.js']});l=this['fsi'][D(0x89)]({'pathParts':[s],'config':d});}const n=await this[D(0x80)][D(0x92)](l,g);if(n){Log[D(0xae)](D(0x8d)+g+D(0xa0));return;}else{const t=this[D(0x80)][D(0x9d)](l);Log[D(0x8f)](D(0x7c)+g+D(0xb1)+l[D(0x7a)](t,''));}const o=this[D(0x80)][D(0x7b)](l)[D(0xb0)]((u,v)=>{const E=D;return u[E(0xc4)](E(0xc6))?v+0x1:null;})[D(0x9a)](u=>u!==null);let p=this[D(0x80)][D(0x7b)](l)[D(0xb0)]((u,v)=>{const F=D;return u[F(0xc4)](F(0x8e))?v+0x1:null;})[D(0x9a)](u=>u!==null),q=this[D(0x80)][D(0x7b)](l)[D(0xb0)]((u,v)=>{const G=D;return u[G(0xc4)](G(0xb9))?v+0x1:null;})[D(0x9a)](u=>u!==null);p['length']>0x0&&q['length']>0x0&&(k['newForm']=!![]);m=this[D(0x80)][D(0x87)]({'srcPath':D(0xa6),'framework':D(0x94),'context':k,'config':d});if(p[D(0xa4)]>0x0||q[D(0xa4)]>0x0){this['fsi']['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0xa4)]>0x0)q=this['fsi'][D(0x7b)](l)[D(0xb0)]((u,v)=>{const H=D;return u[H(0xc4)](H(0xb9))?v+0x1:null;})[D(0x9a)](u=>u!==null),this[D(0x80)][D(0xca)]({'filePath':l,'content':'\x09{'+k[D(0x85)]+'}','lineNumber':q[0x0]});else p[D(0xa4)]>0x0?(p=this[D(0x80)][D(0x7b)](l)[D(0xb0)]((u,v)=>{const I=D;return u[I(0xc4)](I(0x8e))?v+0x1:null;})['filter'](u=>u!==null),this[D(0x80)][D(0xca)]({'filePath':l,'content':'\x09{'+k[D(0x85)]+'}','lineNumber':p[0x0]})):Log[D(0xae)](D(0xb4)+l);}else{const u=this[D(0x80)][D(0x7b)](l)[D(0xb0)](x=>{const J=D;return x[J(0xc4)](J(0x8c));}),v=u[D(0xb7)](!![])>-0x1,w=v?D(0xb2):D(0x8a);await this[D(0x80)][D(0xc7)]({'filePath':l,'content':'\x0a\x09\x09'+m+'\x0a\x09\x09','begin':'<Router','end':w});}}else{if(d[D(0x91)]['client']===D(0xc1)){const x=this['fsi'][D(0xb3)]({'pathParts':[D(0xac),D(0xb8),'client',D(0xbe)]});l=this[D(0x80)][D(0x89)]({'pathParts':[x],'config':d}),m=this[D(0x80)]['templateContent']({'srcPath':D(0xa6),'context':k}),await this[D(0x80)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0xb6)](f);}});function a119c(){const K=['baseDir','/imports/ui/','filter','cwd','Scaffolding\x20for\x20a\x20Route.','pathFromProject','34260xgxHzL','layout','\x20already\x20exists.\x20\x20Skipping.','/imports/ui/pages','1236648DEINlL','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','length','MasterLayout','route/route.js','config','maka\x20g:route\x20pages/about','root','only','withHook','imports','2746723QesOCr','warn','true','map','\x20to\x20','<Route','pathFromApp','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','Invalid\x20directory\x20option\x20\x22','error','indexOf','startup','const\x20privateRoutes\x20=\x20(<>','Valid\x20options\x20are:\x20','search','PrivateLayout','create','routes.js','features','apply','vanilla','235rYPMyg','components','includes','join','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','injectIntoFile','resourceName','maka\x20g:route\x20pages/lists/listIndex\x20lists','injectAfterLineNumber','replace','readFileLines','Adding\x20route\x20','maka\x20g:route\x20todosIndex\x20todos','toLowerCase','692TBbnCF','fsi','route','ssr','(((.+)+)+)+$','url','templateName','client','templateContent','private','rewriteDestinationPathForEngine','</Router>','592060PjLUyd','\x22*\x22','Route\x20','const\x20publicRoutes\x20=\x20(<>','info','3350056tRFUxo','engines','fileContainsString','27iqMKhL','react','withTranslations','toString','664524pkFIho'];a119c=function(){return K;};return a119c();}
@@ -1 +1 @@
1
- function a121c(){const o=['6427631ghzqmB','getMakaProjectConfig','maka\x20{generate,\x20g}:{service}\x20<resource-name>','600494GjOODH','constructor','create','3hVYIvp','service','pathFromApp','search','service/logger/logger.js','template','imports','services','4141308MbbIqA','1DVLztH','(((.+)+)+)+$','1881312bDEpjZ','winston','8795052wfCmiM','4743775HarIGh','maka\x20g:svc\x20service-logger\x20--type=logger','winston\x20setimmediate','type','logger','toString','checkNpmPackage','engines','lib','Installing\x20winston','svc','error','resourceName','770672wXFwwx','fsi'];a121c=function(){return o;};return a121c();}const a121l=a121d;(function(a,b){const j=a121d,c=a();while(!![]){try{const d=-parseInt(j(0x173))/0x1*(-parseInt(j(0x167))/0x2)+parseInt(j(0x16a))/0x3*(parseInt(j(0x172))/0x4)+-parseInt(j(0x155))/0x5+parseInt(j(0x152))/0x6+parseInt(j(0x164))/0x7+-parseInt(j(0x162))/0x8+-parseInt(j(0x154))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0x85112));const a121b=(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;};}()),a121a=a121b(this,function(){const k=a121d;return a121a[k(0x15a)]()[k(0x16d)](k(0x174))[k(0x15a)]()[k(0x168)](a121a)[k(0x16d)]('(((.+)+)+)+$');});a121a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x152;let f=c[d];return f;},a121d(a,b);}Generator[a121l(0x169)]({'name':a121l(0x16b),'aliases':[a121l(0x15f)],'usage':a121l(0x166),'shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':'type','values':[a121l(0x159)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a121l(0x156)]},async function(a,b){const m=a121l;try{const c=this[m(0x163)][m(0x165)]();await this[m(0x163)]['withValue'](c,async()=>{const n=m,d=this[n(0x163)][n(0x16c)]({}),f=paramCase(b[n(0x161)]),g={'name':pascalCase(b[n(0x161)]),'fileName':f,'camelCase':camelCase(b[n(0x161)]),'type':b[n(0x158)],'engine':c[n(0x15c)]['js'],'noRename':!![]};let h='js';c[n(0x15c)]['js']==='tsx'&&(h='ts');if(b[n(0x158)]===n(0x159)){!this[n(0x163)][n(0x15b)](n(0x153))&&await this['fsi']['installNpmPackage'](n(0x157),{'cwd':d,'msg':n(0x15e)});const i=this[n(0x163)][n(0x16c)]({'pathParts':[n(0x170),'startup',n(0x15d),n(0x171),f+'.'+h]});await this[n(0x163)][n(0x16f)]({'srcPath':n(0x16e),'destPath':i,'context':g,'config':c});}});}catch(d){Log[m(0x160)](d);}});
1
+ function a120c(){const p=['checkNpmPackage','imports','3788PinNBR','toString','winston','search','type','333891JUtFZU','svc','799554WpVXOE','382135POlfNa','fsi','3908853wDQkbg','create','245744sQHmHX','template','apply','lib','pathFromApp','maka\x20g:svc\x20service-logger\x20--type=logger','525cUfYFT','installNpmPackage','tsx','logger','420176zUuuBO','constructor','63JXbRen','winston\x20setimmediate','(((.+)+)+)+$','startup','Installing\x20winston','resourceName','getMakaProjectConfig','withValue'];a120c=function(){return p;};return a120c();}const a120m=a120d;function a120d(a,b){const c=a120c();return a120d=function(d,e){d=d-0x83;let f=c[d];return f;},a120d(a,b);}(function(a,b){const j=a120d,c=a();while(!![]){try{const d=parseInt(j(0x96))/0x1+-parseInt(j(0x85))/0x2+-parseInt(j(0xa3))/0x3*(-parseInt(j(0x91))/0x4)+-parseInt(j(0x99))/0x5+-parseInt(j(0x98))/0x6+parseInt(j(0x87))/0x7*(-parseInt(j(0x9d))/0x8)+parseInt(j(0x9b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a120c,0x3a081));const a120b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a120d;if(c){const e=c[k(0x9f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a120a=a120b(this,function(){const l=a120d;return a120a[l(0x92)]()[l(0x94)](l(0x89))[l(0x92)]()[l(0x86)](a120a)[l(0x94)](l(0x89));});a120a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a120m(0x9c)]({'name':'service','aliases':[a120m(0x97)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a120m(0x95),'values':[a120m(0x84)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a120m(0xa2)]},async function(a,b){const n=a120m;try{const c=this[n(0x9a)][n(0x8d)]();await this['fsi'][n(0x8e)](c,async()=>{const o=n,d=this[o(0x9a)][o(0xa1)]({}),f=paramCase(b[o(0x8c)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0x8c)]),'type':b[o(0x95)],'engine':c['engines']['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x83)&&(h='ts');if(b[o(0x95)]===o(0x84)){!this['fsi'][o(0x8f)](o(0x93))&&await this['fsi'][o(0xa4)](o(0x88),{'cwd':d,'msg':o(0x8b)});const i=this[o(0x9a)][o(0xa1)]({'pathParts':[o(0x90),o(0x8a),o(0xa0),'services',f+'.'+h]});await this[o(0x9a)][o(0x9e)]({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- function a122c(){var h=['toString','33UeCyav','3548352DqJVHr','search','254124JMYtgE','(((.+)+)+)+$','131288EtEdvD','4fIgkWh','2UwGMpU','9gVswPn','607820qzUgFt','540hbdpTB','10511cMhqCf','55570bxFcfm','497YrhdgU'];a122c=function(){return h;};return a122c();}(function(a,b){var f=a122d,c=a();while(!![]){try{var d=parseInt(f(0xda))/0x1*(parseInt(f(0xd6))/0x2)+-parseInt(f(0xe1))/0x3+parseInt(f(0xd5))/0x4*(-parseInt(f(0xd8))/0x5)+-parseInt(f(0xd9))/0x6*(-parseInt(f(0xdc))/0x7)+-parseInt(f(0xd4))/0x8*(-parseInt(f(0xd7))/0x9)+-parseInt(f(0xdb))/0xa*(parseInt(f(0xde))/0xb)+parseInt(f(0xdf))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x19e51));var a122b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){var g=a122d;return a122a[g(0xdd)]()['search'](g(0xd3))[g(0xdd)]()['constructor'](a122a)[g(0xe0)](g(0xd3));});a122a();import'./translation.js';function a122d(a,b){var c=a122c();return a122d=function(d,e){d=d-0xd3;var f=c[d];return f;},a122d(a,b);}import'./openssl.js';
1
+ (function(a,b){var f=a123d,c=a();while(!![]){try{var d=-parseInt(f(0xff))/0x1+parseInt(f(0xfe))/0x2*(parseInt(f(0x100))/0x3)+-parseInt(f(0x101))/0x4*(parseInt(f(0xfd))/0x5)+parseInt(f(0xfa))/0x6+parseInt(f(0xf7))/0x7+-parseInt(f(0x102))/0x8*(-parseInt(f(0xf8))/0x9)+-parseInt(f(0xfb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x259a0));var a123b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){var g=a123d;return a123a['toString']()[g(0xf6)]('(((.+)+)+)+$')['toString']()[g(0xfc)](a123a)['search'](g(0xf9));});a123a();function a123d(a,b){var c=a123c();return a123d=function(d,e){d=d-0xf6;var f=c[d];return f;},a123d(a,b);}function a123c(){var h=['constructor','3765Aptbhj','3334UvisJh','177859IqXayR','39RfgedP','1320Uiylbx','111032HijKHx','search','1327585lgVTlk','198JCSmDn','(((.+)+)+)+$','668928aqnxOi','477870HdnggD'];a123c=function(){return h;};return a123c();}import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a123l=a123d;function a123c(){const o=['682yJbfkI','1741986wFurSL','maka\x20g:sslconfig\x20--env\x20dev','apply','getGlobalConfig','template','sslconfig','(((.+)+)+)+$','31526wSwVie','getMakaProjectConfig','327732WKhwgH','Generate\x20a\x20new\x20openssl\x20config\x20file','create','fsi','maka\x20{generate,\x20g}:sslconfig','openssl.conf','2186VUWXFJ','env','1551515uowYJd','5590ZgpYPl','getAppConfigPath','8ExHIgr','openssl/openssl.conf','error','join','5656662lQZoCS','1879832RFhzXV','search','45gEayzm','_keys','service','constructor'];a123c=function(){return o;};return a123c();}(function(a,b){const i=a123d,c=a();while(!![]){try{const d=-parseInt(i(0x1a2))/0x1*(-parseInt(i(0x1b2))/0x2)+-parseInt(i(0x1a3))/0x3+-parseInt(i(0x1bc))/0x4+parseInt(i(0x1be))/0x5*(-parseInt(i(0x1ac))/0x6)+-parseInt(i(0x1b4))/0x7*(-parseInt(i(0x1b7))/0x8)+-parseInt(i(0x1bb))/0x9+-parseInt(i(0x1b5))/0xa*(-parseInt(i(0x1aa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a123c,0x6145d));const a123b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a123d;if(c){const e=c[j(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a123a=a123b(this,function(){const k=a123d;return a123a['toString']()[k(0x1bd)]('(((.+)+)+)+$')['toString']()[k(0x1a1)](a123a)['search'](k(0x1a9));});a123a();function a123d(a,b){const c=a123c();return a123d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a123d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a123e from'path';Generator[a123l(0x1ae)]({'name':a123l(0x1a8),'usage':a123l(0x1b0),'shortDesc':a123l(0x1ad),'noNeedResource':!![],'requiredOpts':[a123l(0x1b3)],'examples':[a123l(0x1a4)],'validOpts':[]},async function(a,b){const m=a123l;try{const c=await this[m(0x1af)][m(0x1ab)](),d=await this[m(0x1af)][m(0x1a6)](),f=this[m(0x1af)][m(0x1b6)](b[m(0x1b3)]),g=a123e[m(0x1ba)](f,m(0x1bf),m(0x1b1));await this[m(0x1af)]['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi'][n(0x1a7)]({'srcPath':n(0x1b8),'destPath':g,'framework':n(0x1a0),'context':h,'config':c});});}catch(h){Log[m(0x1b9)](h);}});
1
+ const a121k=a121d;(function(a,b){const i=a121d,c=a();while(!![]){try{const d=parseInt(i(0x1a1))/0x1+parseInt(i(0x1af))/0x2*(-parseInt(i(0x1b0))/0x3)+parseInt(i(0x1b7))/0x4+-parseInt(i(0x1ad))/0x5+parseInt(i(0x1aa))/0x6*(parseInt(i(0x1a7))/0x7)+parseInt(i(0x1b6))/0x8*(-parseInt(i(0x1b9))/0x9)+-parseInt(i(0x1a9))/0xa*(-parseInt(i(0x1a4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a121c,0xee2d7));function a121c(){const n=['sslconfig','9bYQthS','search','error','getGlobalConfig','join','withValue','260564eFNlnq','openssl.conf','appName','33lDpDhL','toString','Generate\x20a\x20new\x20openssl\x20config\x20file','245JytJsN','getAppConfigPath','4668010jhIyEc','262032bnNMqp','(((.+)+)+)+$','maka\x20{generate,\x20g}:sslconfig','3367675JCDPju','getMakaProjectConfig','4tIcDPL','1333923hXAtBG','env','constructor','fsi','openssl/openssl.conf','service','13733016xedXty','4262128wzNoZk'];a121c=function(){return n;};return a121c();}const a121b=(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;};}()),a121a=a121b(this,function(){const j=a121d;return a121a[j(0x1a5)]()['search'](j(0x1ab))[j(0x1a5)]()[j(0x1b2)](a121a)[j(0x19c)](j(0x1ab));});a121a();function a121d(a,b){const c=a121c();return a121d=function(d,e){d=d-0x19c;let f=c[d];return f;},a121d(a,b);}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a121e from'path';Generator['create']({'name':a121k(0x1b8),'usage':a121k(0x1ac),'shortDesc':a121k(0x1a6),'noNeedResource':!![],'requiredOpts':[a121k(0x1b1)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const l=a121k;try{const c=await this[l(0x1b3)][l(0x1ae)](),d=await this['fsi'][l(0x19e)](),f=this[l(0x1b3)][l(0x1a8)](b['env']),g=a121e[l(0x19f)](f,'_keys',l(0x1a2));await this[l(0x1b3)][l(0x1a0)](c,async()=>{const m=l,h={'app':d[m(0x1a3)],'noRename':!![]};await this[m(0x1b3)]['template']({'srcPath':m(0x1b4),'destPath':g,'framework':m(0x1b5),'context':h,'config':c});});}catch(h){Log[l(0x19d)](h);}});
@@ -1 +1 @@
1
- const a124A=a124d;(function(a,b){const x=a124d,c=a();while(!![]){try{const d=parseInt(x(0x11e))/0x1*(-parseInt(x(0xe2))/0x2)+-parseInt(x(0x107))/0x3*(-parseInt(x(0xea))/0x4)+-parseInt(x(0x10c))/0x5+-parseInt(x(0x105))/0x6*(-parseInt(x(0x112))/0x7)+parseInt(x(0xdf))/0x8+-parseInt(x(0xef))/0x9*(parseInt(x(0xe7))/0xa)+parseInt(x(0xe0))/0xb*(parseInt(x(0x10a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x8966b));const a124b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a124d;if(c){const e=c[y(0xfc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){const z=a124d;return a124a[z(0x102)]()[z(0x110)](z(0x104))['toString']()[z(0xf6)](a124a)[z(0x110)](z(0x104));});a124a();import{Generator}from'../../generator.js';function a124d(a,b){const c=a124c();return a124d=function(d,e){d=d-0xdb;let f=c[d];return f;},a124d(a,b);}function a124c(){const D=['constructor','rewriteDestinationPathForEngine','create','client','engines','maka\x20g:translation\x20--lang=en\x20(default)','apply','features.withTranslations','services','getMakaProjectConfig','.js','grep','toString','maka\x20g:translation\x20--lang=de','(((.+)+)+)+$','565602fJRgsm','locales','2751123PZwFQt','findAppDirectory','i18n.js','2709636GjNWcU','startup','1718020wgardO','maka\x20g:translation\x20--lang=fr','imports','index.js','search','default\x20as\x20','77xXDTlq','warn','server','lib','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','root','error','export\x20{\x20default\x20as\x20','i18n/i18n.js','\x20}\x20from\x20\x27./','true','i18next\x20i18next-browser-languagedetector\x20react-i18next','3jfuhDj','withValue','translations','exit','injectAtBeginningOfFile','260920yRkmSG','11MbPOFl','index.','479868CeHERB','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','fsi','readFileSync','pathFromApp','1172390lgGxvQ','i18n/index.js','import\x20\x27../lib/services/translations/i18n\x27;','4ngWSzO','setProjectConfig','injectAtEndOfFile','service','ssr','45bDJpZs','translation','installNpmPackage','template','isFile','import\x20\x27../lib/services/translations/i18n\x27;\x0a','lang'];a124c=function(){return D;};return a124c();}import{Log}from'../../tools/log/log.class.js';import a124e from'fs';Generator[a124A(0xf8)]({'name':a124A(0xf0),'usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a124A(0xf5),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a124A(0x116),'examples':[a124A(0xfb),a124A(0x10d),a124A(0x103)],'validOpts':[]},async function(a,b){const B=a124A;try{const c=this[B(0xe4)][B(0xff)](),d=this[B(0xe4)]['getGlobalConfig'](),f=this[B(0xe4)][B(0x108)]();await this[B(0xe4)][B(0xdb)](c,()=>{const C=B;try{!b[C(0xf5)]&&(b['lang']='en');!b[C(0x117)]&&!this['fsi']['checkNpmPackage']('i18next')&&(Log[C(0x113)](C(0xe3)),this[C(0xe4)][C(0xf1)](C(0x11d),{'cwd':f}),this['fsi'][C(0xeb)](C(0xfd),!![]));const g=this['fsi']['pathFromApp']({'pathParts':[C(0x10e),C(0x10b),C(0xf9),C(0x10f)]}),h=this[C(0xe4)][C(0xf7)]({'pathParts':[g],'config':c}),i=this[C(0xe4)][C(0x101)](a124e[C(0xe5)](h)[C(0x102)](),C(0xe9))[0x0]&&!![];if(c[C(0xfa)][C(0xee)]===C(0x11c)){!i&&this[C(0xe4)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0xf4)});const t=this[C(0xe4)][C(0xe6)]({'pathParts':[C(0x10e),C(0x10b),C(0x114),'index.js']}),u=this[C(0xe4)][C(0xf7)]({'pathParts':[t],'config':c}),v=this[C(0xe4)][C(0x101)](a124e[C(0xe5)](u)[C(0x102)](),C(0xe9))[0x0]&&!![];!v&&this[C(0xe4)][C(0xde)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0xe4)][C(0xde)]({'filePath':h,'content':C(0xf4)});const j={'app':d['appName'],'config':c},k=this[C(0xe4)][C(0xe6)]({'pathParts':[C(0x10e),C(0x10b),C(0x115),C(0xfe),C(0xdc),C(0x109)]}),l=this[C(0xe4)][C(0xf3)](this[C(0xe4)][C(0xf7)]({'pathParts':[k],'config':c}));!l&&this[C(0xe4)]['template']({'srcPath':C(0x11a),'destPath':k,'framework':C(0xed),'context':j,'config':c});const m=this[C(0xe4)][C(0xe6)]({'pathParts':[C(0x10e),C(0x10b),'lib',C(0xfe),C(0xdc),C(0x106),b['lang']+C(0x100)]}),n=this[C(0xe4)][C(0xf7)]({'pathParts':[m],'config':c}),o=this[C(0xe4)][C(0xf3)](n);!o?this[C(0xe4)][C(0xf2)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0xed),'context':j,'config':c}):Log['warn']('Locale\x20already\x20defined:\x20'+n);const p=this[C(0xe4)]['pathFromApp']({'pathParts':[C(0x10e),'startup',C(0x115),C(0xfe),C(0xdc),'locales',C(0xe1)+c[C(0xfa)]['js']]}),q=this[C(0xe4)]['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[C(0xe4)][C(0xf3)](q);!r&&this[C(0xe4)][C(0xf2)]({'srcPath':C(0xe8),'destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0xe4)][C(0x101)](a124e[C(0xe5)](p)['toString'](),C(0x111)+b[C(0xf5)])[0x0]&&!![];!s?this[C(0xe4)][C(0xec)]({'filePath':p,'content':C(0x119)+b[C(0xf5)]+C(0x11b)+b[C(0xf5)]+'\x27;'}):Log[C(0x113)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[C(0x118)](w),process[C(0xdd)](0x1);}});}catch(g){Log[B(0x118)](g),process['exit'](0x1);}});
1
+ const a122A=a122d;function a122c(){const D=['true','template','apply','installNpmPackage','grep','119245EcToDl','\x20}\x20from\x20\x27./','maka\x20g:translation\x20--lang=fr','engines','4YvWeoD','search','Locale\x20already\x20exported:\x20','service','locales','pathFromApp','imports','285762qVDhKu','rewriteDestinationPathForEngine','import\x20\x27../lib/services/translations/i18n\x27;','(((.+)+)+)+$','i18n/i18n.js','Generate\x20a\x20new\x20locale\x20translation','162aWHjHZ','constructor','exit','toString','translations','index.js','injectAtEndOfFile','getMakaProjectConfig','maka\x20g:translation\x20--lang=en\x20(default)','maka\x20{generate,\x20g}:translation','fsi','i18next\x20i18next-browser-languagedetector\x20react-i18next','isFile','i18n.js','setProjectConfig','55979LAzYWc','injectAtBeginningOfFile','2892135Xhqnpn','withValue','readFileSync','lib','6706264nTSiic','export\x20{\x20default\x20as\x20','ssr','lang','error','i18n/index.js','warn','index.','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','10617471MGqIql','getGlobalConfig','create','i18n/locales.js','485210RUtmJL','i18next','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','appName','Locale\x20already\x20defined:\x20','root','server','import\x20\x27../lib/services/translations/i18n\x27;\x0a','startup','.js','services'];a122c=function(){return D;};return a122c();}function a122d(a,b){const c=a122c();return a122d=function(d,e){d=d-0x1e2;let f=c[d];return f;},a122d(a,b);}(function(a,b){const x=a122d,c=a();while(!![]){try{const d=-parseInt(x(0x203))/0x1+-parseInt(x(0x1ee))/0x2+-parseInt(x(0x205))/0x3+parseInt(x(0x1e7))/0x4*(parseInt(x(0x216))/0x5)+-parseInt(x(0x1f4))/0x6*(parseInt(x(0x1e3))/0x7)+parseInt(x(0x209))/0x8+parseInt(x(0x212))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a122c,0x782a2));const a122b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a122d;if(c){const e=c[y(0x223)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a122a=a122b(this,function(){const z=a122d;return a122a[z(0x1f7)]()[z(0x1e8)]('(((.+)+)+)+$')['toString']()[z(0x1f5)](a122a)['search'](z(0x1f1));});a122a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a122e from'fs';Generator[a122A(0x214)]({'name':'translation','usage':a122A(0x1fd),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a122A(0x20c),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a122A(0x1f3),'description':a122A(0x218),'examples':[a122A(0x1fc),a122A(0x1e5),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a122A;try{const c=this[B(0x1fe)][B(0x1fb)](),d=this[B(0x1fe)][B(0x213)](),f=this[B(0x1fe)]['findAppDirectory']();await this[B(0x1fe)][B(0x206)](c,()=>{const C=B;try{!b[C(0x20c)]&&(b['lang']='en');!b[C(0x21b)]&&!this[C(0x1fe)]['checkNpmPackage'](C(0x217))&&(Log[C(0x20f)](C(0x211)),this[C(0x1fe)][C(0x224)](C(0x1ff),{'cwd':f}),this[C(0x1fe)][C(0x202)]('features.withTranslations',!![]));const g=this[C(0x1fe)][C(0x1ec)]({'pathParts':[C(0x1ed),C(0x21e),'client','index.js']}),h=this[C(0x1fe)][C(0x1ef)]({'pathParts':[g],'config':c}),i=this['fsi'][C(0x1e2)](a122e['readFileSync'](h)[C(0x1f7)](),C(0x1f0))[0x0]&&!![];if(c[C(0x1e6)][C(0x20b)]===C(0x221)){!i&&this['fsi'][C(0x204)]({'filePath':h,'content':C(0x21d)});const t=this[C(0x1fe)][C(0x1ec)]({'pathParts':[C(0x1ed),C(0x21e),C(0x21c),C(0x1f9)]}),u=this[C(0x1fe)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this[C(0x1fe)][C(0x1e2)](a122e['readFileSync'](u)[C(0x1f7)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x1fe)]['injectAtBeginningOfFile']({'filePath':u,'content':C(0x21d)});}else!i&&this[C(0x1fe)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x21d)});const j={'app':d[C(0x219)],'config':c},k=this['fsi'][C(0x1ec)]({'pathParts':[C(0x1ed),C(0x21e),'lib',C(0x220),C(0x1f8),C(0x201)]}),l=this[C(0x1fe)][C(0x200)](this[C(0x1fe)][C(0x1ef)]({'pathParts':[k],'config':c}));!l&&this['fsi']['template']({'srcPath':C(0x1f2),'destPath':k,'framework':C(0x1ea),'context':j,'config':c});const m=this[C(0x1fe)][C(0x1ec)]({'pathParts':[C(0x1ed),C(0x21e),C(0x208),'services','translations',C(0x1eb),b['lang']+C(0x21f)]}),n=this[C(0x1fe)][C(0x1ef)]({'pathParts':[m],'config':c}),o=this[C(0x1fe)]['isFile'](n);!o?this['fsi']['template']({'srcPath':C(0x215),'destPath':m,'framework':C(0x1ea),'context':j,'config':c}):Log['warn'](C(0x21a)+n);const p=this[C(0x1fe)][C(0x1ec)]({'pathParts':[C(0x1ed),'startup',C(0x208),C(0x220),C(0x1f8),C(0x1eb),C(0x210)+c[C(0x1e6)]['js']]}),q=this[C(0x1fe)][C(0x1ef)]({'pathParts':[p],'config':c}),r=this[C(0x1fe)]['isFile'](q);!r&&this[C(0x1fe)][C(0x222)]({'srcPath':C(0x20e),'destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x1fe)][C(0x1e2)](a122e[C(0x207)](p)['toString'](),'default\x20as\x20'+b[C(0x20c)])[0x0]&&!![];!s?this[C(0x1fe)][C(0x1fa)]({'filePath':p,'content':C(0x20a)+b[C(0x20c)]+C(0x1e4)+b[C(0x20c)]+'\x27;'}):Log[C(0x20f)](C(0x1e9)+p);}catch(w){Log[C(0x20d)](w),process[C(0x1f6)](0x1);}});}catch(g){Log[B(0x20d)](g),process[B(0x1f6)](0x1);}});
@@ -1 +1 @@
1
- const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=parseInt(j(0x1e3))/0x1*(parseInt(j(0x1de))/0x2)+parseInt(j(0x1e0))/0x3*(-parseInt(j(0x1ee))/0x4)+parseInt(j(0x1d5))/0x5*(-parseInt(j(0x1ec))/0x6)+-parseInt(j(0x1e5))/0x7+-parseInt(j(0x1d6))/0x8*(parseInt(j(0x1d4))/0x9)+parseInt(j(0x1dc))/0xa*(-parseInt(j(0x1ed))/0xb)+parseInt(j(0x1e9))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x5e037));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x1e6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x1d9)]()[l(0x1ea)](l(0x1e1))[l(0x1d9)]()['constructor'](a125a)[l(0x1ea)](l(0x1e1));});a125a();import a125e from'minimist';import a125f from'os';import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';function a125c(){const n=['env','155318GfdTCj','BROWSERSLIST_IGNORE_OLD_DATA','78723KjRbqd','(((.+)+)+)+$','--max-old-space-size=','7BhxvKp','slice','1917027DQvfYP','apply','dirname','stringify','23721024IBLdUF','search','run','498ZVTrEv','143FYMAVe','28fzEout','18egQPhB','38950HoWpaT','1683064YGGVhI','NODE_NO_WARNINGS','floor','toString','totalmem','parse','469540ByukKH'];a125c=function(){return n;};return a125c();}import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a125g[a125m(0x1e7)](__filename);function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x1d4;let f=c[d];return f;},a125d(a,b);}global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a125f[a125m(0x1da)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0x1d8)](total_mem_in_mb),process[a125m(0x1dd)]['TOOL_NODE_FLAGS']=a125m(0x1e2)+total_mem_in_mb,process[a125m(0x1dd)][a125m(0x1df)]='1',process[a125m(0x1dd)][a125m(0x1d7)]='1';const argv=a125e(process['argv'][a125m(0x1e4)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x1db)](JSON[a125m(0x1e8)](argv));delete deepCopyArgv['_'];const opts=a125h['camelizeKeys'](deepCopyArgv);a125i[a125m(0x1eb)](args,opts);
1
+ function a125c(){const n=['467982ItktIM','totalmem','dirname','url','1120945NRFvHp','MAKA_COMMAND_PATH','16kamvPn','6RwEpxM','206546cvdJBu','search','floor','camelizeKeys','(((.+)+)+)+$','parse','slice','2IOQRRY','NODE_NO_WARNINGS','env','toString','196593CKKhKx','constructor','847972QOcgpx','stringify','BROWSERSLIST_IGNORE_OLD_DATA','argv','TOOL_NODE_FLAGS','20339PCqkEe','1208088ImWySi','1290YSBYjn','run','apply'];a125c=function(){return n;};return a125c();}const a125m=a125d;(function(a,b){const j=a125d,c=a();while(!![]){try{const d=-parseInt(j(0x1be))/0x1+-parseInt(j(0x1c5))/0x2*(-parseInt(j(0x1c9))/0x3)+parseInt(j(0x1cb))/0x4+parseInt(j(0x1ba))/0x5*(parseInt(j(0x1bd))/0x6)+parseInt(j(0x1d1))/0x7+-parseInt(j(0x1bc))/0x8*(parseInt(j(0x1b6))/0x9)+parseInt(j(0x1d2))/0xa*(-parseInt(j(0x1d0))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a125c,0x1e932));const a125b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a125d;if(c){const e=c[k(0x1d4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a125a=a125b(this,function(){const l=a125d;return a125a[l(0x1c8)]()[l(0x1bf)](l(0x1c2))[l(0x1c8)]()[l(0x1ca)](a125a)['search'](l(0x1c2));});a125a();import a125e from'minimist';import a125f from'os';import a125g from'path';import a125h from'humps';import a125i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a125m(0x1b9)]),__dirname=a125g[a125m(0x1b8)](__filename);global[a125m(0x1bb)]=__dirname;function a125d(a,b){const c=a125c();return a125d=function(d,e){d=d-0x1b6;let f=c[d];return f;},a125d(a,b);}const total_memory=a125f[a125m(0x1b7)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a125m(0x1c0)](total_mem_in_mb),process[a125m(0x1c7)][a125m(0x1cf)]='--max-old-space-size='+total_mem_in_mb,process[a125m(0x1c7)][a125m(0x1cd)]='1',process[a125m(0x1c7)][a125m(0x1c6)]='1';const argv=a125e(process[a125m(0x1ce)][a125m(0x1c4)](0x2)),args=argv['_'],deepCopyArgv=JSON[a125m(0x1c3)](JSON[a125m(0x1cc)](argv));delete deepCopyArgv['_'];const opts=a125h[a125m(0x1c1)](deepCopyArgv);a125i[a125m(0x1d3)](args,opts);
@@ -1,11 +1,11 @@
1
- import { Meteor } from 'meteor/meteor';
2
- <% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
3
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
4
-
5
- const <%= name %>ApiV1 = new Restivus({
6
- version: 'v1',
7
- useDefaultAuth: false,
8
- prettyJson: Meteor.isDevelopment
9
- });
10
-
11
- <%= name %>ApiV1.addCollection(<%= name %>);
1
+ import { Meteor } from 'meteor/meteor';
2
+ <% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
3
+ import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
4
+
5
+ const <%= name %>ApiV1 = new Restivus({
6
+ version: 'v1',
7
+ useDefaultAuth: false,
8
+ prettyJson: Meteor.isDevelopment
9
+ });
10
+
11
+ <%= name %>ApiV1.addCollection(<%= name %>);
@@ -1,11 +1,11 @@
1
- import { Meteor } from 'meteor/meteor';
2
- <% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
3
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
4
-
5
- const <%= name %>ApiV1 = new Restivus({
6
- version: 'v1',
7
- useDefaultAuth: false,
8
- prettyJson: Meteor.isDevelopment
9
- });
10
-
11
- <%= name %>ApiV1.addCollection(<%= name %>);
1
+ import { Meteor } from 'meteor/meteor';
2
+ <% if (api === 'rest') { %>import { Restivus } from 'meteor/maka:rest';<% } else { %>import { Restivus } from 'meteor/nimble:restivus';<% } %>
3
+ import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
4
+
5
+ const <%= name %>ApiV1 = new Restivus({
6
+ version: 'v1',
7
+ useDefaultAuth: false,
8
+ prettyJson: Meteor.isDevelopment
9
+ });
10
+
11
+ <%= name %>ApiV1.addCollection(<%= name %>);
@@ -1,86 +1,86 @@
1
- import { Mongo } from 'meteor/mongo';
2
- import { check, Match } from 'meteor/maka:check';
3
-
4
- /**
5
- * @memberof Server.<%= name %>
6
- * @extends Mongo.Collection
7
- */
8
- class <%= name %>Collection extends Mongo.Collection {
9
- constructor() {
10
- super('<%= name %>');
11
-
12
- this.publicFields = {};
13
- this.privateFields = {};
14
- this.allow({
15
- insert() { return false; },
16
- update() { return false; },
17
- remove() { return false; },
18
- });
19
-
20
- this.insertSchema = {};
21
- this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
22
- }
23
-
24
- find(selector = {}, modifier) {
25
- return super.find(selector, modifier);
26
- }
27
-
28
- findOne(selector = {}, modifier) {
29
- return super.findOne(selector, modifier);
30
- }
31
-
32
- /**
33
- * @public
34
- * @param { object } doc The document to inserted.
35
- * @param { object } callback The callback from invocation.
36
- * @returns { string } The _id of the new doc.
37
- */
38
- insert(doc) {
39
- if (this._hasSchema()) {
40
- check(doc, this.insertSchema, 'while validating mongo insert against schema');
41
- }
42
- return super.insert(doc);
43
- }
44
-
45
- /**
46
- * @public
47
- * @param { object | string } selector The mongodb selector.
48
- * @param { object } modifier The mongodb modifier.
49
- * @returns { string } The _id of the document updated.
50
- * */
51
- update(selector, modifier) {
52
- if (this._hasSchema()) {
53
- check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
54
- }
55
- return super.update(selector, modifier);
56
- }
57
-
58
- /**
59
- * @public
60
- * @param { object | string } selector The mongodb selector.
61
- * @returns { string } The _id of the document being removed.
62
- */
63
- remove(selector) {
64
- return super.remove(selector);
65
- }
66
-
67
- // Helper method
68
- _hasSchema = () => {
69
- const { insertSchema, updateSchema } = this;
70
- if (insertSchema) {
71
- return (Object.keys(insertSchema).length !== 0
72
- && insertSchema.constructor === Object);
73
- }
74
- if (updateSchema) {
75
- return (Object.keys(updateSchema).length !== 0
76
- && updateSchema.constructor === Object);
77
- }
78
- }
79
- }
80
-
81
- /**
82
- * @memberof Server.<%= name %>
83
- * @member <%= name %>
84
- */
85
- const <%= name %> = new <%= name %>Collection();
86
- export default <%= name %>;
1
+ import { Mongo } from 'meteor/mongo';
2
+ import { check, Match } from 'meteor/maka:check';
3
+
4
+ /**
5
+ * @memberof Server.<%= name %>
6
+ * @extends Mongo.Collection
7
+ */
8
+ class <%= name %>Collection extends Mongo.Collection {
9
+ constructor() {
10
+ super('<%= name %>');
11
+
12
+ this.publicFields = {};
13
+ this.privateFields = {};
14
+ this.allow({
15
+ insert() { return false; },
16
+ update() { return false; },
17
+ remove() { return false; },
18
+ });
19
+
20
+ this.insertSchema = {};
21
+ this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
22
+ }
23
+
24
+ find(selector = {}, modifier) {
25
+ return super.find(selector, modifier);
26
+ }
27
+
28
+ findOne(selector = {}, modifier) {
29
+ return super.findOne(selector, modifier);
30
+ }
31
+
32
+ /**
33
+ * @public
34
+ * @param { object } doc The document to inserted.
35
+ * @param { object } callback The callback from invocation.
36
+ * @returns { string } The _id of the new doc.
37
+ */
38
+ insert(doc) {
39
+ if (this._hasSchema()) {
40
+ check(doc, this.insertSchema, 'while validating mongo insert against schema');
41
+ }
42
+ return super.insert(doc);
43
+ }
44
+
45
+ /**
46
+ * @public
47
+ * @param { object | string } selector The mongodb selector.
48
+ * @param { object } modifier The mongodb modifier.
49
+ * @returns { string } The _id of the document updated.
50
+ * */
51
+ update(selector, modifier) {
52
+ if (this._hasSchema()) {
53
+ check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
54
+ }
55
+ return super.update(selector, modifier);
56
+ }
57
+
58
+ /**
59
+ * @public
60
+ * @param { object | string } selector The mongodb selector.
61
+ * @returns { string } The _id of the document being removed.
62
+ */
63
+ remove(selector) {
64
+ return super.remove(selector);
65
+ }
66
+
67
+ // Helper method
68
+ _hasSchema = () => {
69
+ const { insertSchema, updateSchema } = this;
70
+ if (insertSchema) {
71
+ return (Object.keys(insertSchema).length !== 0
72
+ && insertSchema.constructor === Object);
73
+ }
74
+ if (updateSchema) {
75
+ return (Object.keys(updateSchema).length !== 0
76
+ && updateSchema.constructor === Object);
77
+ }
78
+ }
79
+ }
80
+
81
+ /**
82
+ * @memberof Server.<%= name %>
83
+ * @member <%= name %>
84
+ */
85
+ const <%= name %> = new <%= name %>Collection();
86
+ export default <%= name %>;
@@ -1,94 +1,94 @@
1
- import { Mongo } from 'meteor/mongo';
2
- import { check, Match } from 'meteor/maka:check';
3
-
4
- interface <%=name%>Collection {
5
- publicFields: any;
6
- privateFields: any;
7
- deny: any,
8
- schema: any;
9
- }
10
-
11
- /**
12
- * @memberof Server.<%= name %>
13
- * @extends Mongo.Collection
14
- */
15
- class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
16
- constructor() {
17
- super('<%= name %>');
18
-
19
- this.publicFields = {};
20
- this.privateFields = {};
21
- this.allow({
22
- insert() { return false; },
23
- update() { return false; },
24
- remove() { return false; },
25
- });
26
-
27
- this.insertSchema = {};
28
- this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
29
- }
30
-
31
- find(selector:any = {}, modifier:object) {
32
- return super.find(selector, modifier);
33
- }
34
-
35
- findOne(selector:any = {}, modifier:object) {
36
- return super.findOne(selector, modifier);
37
- }
38
-
39
- /**
40
- * @public
41
- * @param { object } doc The document to inserted.
42
- * @param { object } callback The callback from invocation.
43
- * @returns { string } The _id of the new doc.
44
- */
45
- insert(doc:any) {
46
- if (this._hasSchema()) {
47
- check(doc, this.insertSchema, 'while validating mongo insert against schema');
48
- }
49
- return super.insert(doc);
50
- }
51
-
52
- /**
53
- * @public
54
- * @param { object | string } selector The mongodb selector.
55
- * @param { object } modifier The mongodb modifier.
56
- * @returns { string } The _id of the document updated.
57
- * */
58
- update(selector:any, modifier:UpdateModifier) {
59
- if (this._hasSchema()) {
60
- check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
61
- }
62
-
63
- return super.update(selector, modifier);
64
- }
65
-
66
- /**
67
- * @public
68
- * @param { object | string } selector The mongodb selector.
69
- * @returns { string } The _id of the document being removed.
70
- */
71
- remove(selector:any) {
72
- return super.remove(selector);
73
- }
74
-
75
- // Helper method
76
- _hasSchema = () => {
77
- const { insertSchema, updateSchema } = this;
78
- if (insertSchema) {
79
- return (Object.keys(insertSchema).length !== 0
80
- && insertSchema.constructor === Object);
81
- }
82
- if (updateSchema) {
83
- return (Object.keys(updateSchema).length !== 0
84
- && updateSchema.constructor === Object);
85
- }
86
- }
87
- }
88
-
89
- /**
90
- * @memberof Server.<%= name %>
91
- * @member <%= name %>
92
- */
93
- const <%= name %> = new <%= name %>Collection();
94
- export default <%= name %>;
1
+ import { Mongo } from 'meteor/mongo';
2
+ import { check, Match } from 'meteor/maka:check';
3
+
4
+ interface <%=name%>Collection {
5
+ publicFields: any;
6
+ privateFields: any;
7
+ deny: any,
8
+ schema: any;
9
+ }
10
+
11
+ /**
12
+ * @memberof Server.<%= name %>
13
+ * @extends Mongo.Collection
14
+ */
15
+ class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
16
+ constructor() {
17
+ super('<%= name %>');
18
+
19
+ this.publicFields = {};
20
+ this.privateFields = {};
21
+ this.allow({
22
+ insert() { return false; },
23
+ update() { return false; },
24
+ remove() { return false; },
25
+ });
26
+
27
+ this.insertSchema = {};
28
+ this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
29
+ }
30
+
31
+ find(selector:any = {}, modifier:object) {
32
+ return super.find(selector, modifier);
33
+ }
34
+
35
+ findOne(selector:any = {}, modifier:object) {
36
+ return super.findOne(selector, modifier);
37
+ }
38
+
39
+ /**
40
+ * @public
41
+ * @param { object } doc The document to inserted.
42
+ * @param { object } callback The callback from invocation.
43
+ * @returns { string } The _id of the new doc.
44
+ */
45
+ insert(doc:any) {
46
+ if (this._hasSchema()) {
47
+ check(doc, this.insertSchema, 'while validating mongo insert against schema');
48
+ }
49
+ return super.insert(doc);
50
+ }
51
+
52
+ /**
53
+ * @public
54
+ * @param { object | string } selector The mongodb selector.
55
+ * @param { object } modifier The mongodb modifier.
56
+ * @returns { string } The _id of the document updated.
57
+ * */
58
+ update(selector:any, modifier:UpdateModifier) {
59
+ if (this._hasSchema()) {
60
+ check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
61
+ }
62
+
63
+ return super.update(selector, modifier);
64
+ }
65
+
66
+ /**
67
+ * @public
68
+ * @param { object | string } selector The mongodb selector.
69
+ * @returns { string } The _id of the document being removed.
70
+ */
71
+ remove(selector:any) {
72
+ return super.remove(selector);
73
+ }
74
+
75
+ // Helper method
76
+ _hasSchema = () => {
77
+ const { insertSchema, updateSchema } = this;
78
+ if (insertSchema) {
79
+ return (Object.keys(insertSchema).length !== 0
80
+ && insertSchema.constructor === Object);
81
+ }
82
+ if (updateSchema) {
83
+ return (Object.keys(updateSchema).length !== 0
84
+ && updateSchema.constructor === Object);
85
+ }
86
+ }
87
+ }
88
+
89
+ /**
90
+ * @memberof Server.<%= name %>
91
+ * @member <%= name %>
92
+ */
93
+ const <%= name %> = new <%= name %>Collection();
94
+ export default <%= name %>;
@@ -1,23 +1,23 @@
1
- import { Meteor } from 'meteor/meteor';
2
- import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
3
-
4
- /**
5
- * If the <%= name %> collection is empty on server start, and you'd like to
6
- * populate it with some data here is a handy spot.
7
- *
8
- * Example:
9
- * ```
10
- * if (<%= name %>.find({}).count() === 0) {
11
- * const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
12
- * data.forEach((datum) => {
13
- * <%= name %>.insert(datum);
14
- * });
15
- * }
16
- *
17
- * ```
18
- * @memberof Server.<%= name %>
19
- * @member Fixtures
20
- */
21
- Meteor.startup(() => {
22
-
23
- });
1
+ import { Meteor } from 'meteor/meteor';
2
+ import <%= name %> from '/imports/startup/server/collections/<%= fileName %>';
3
+
4
+ /**
5
+ * If the <%= name %> collection is empty on server start, and you'd like to
6
+ * populate it with some data here is a handy spot.
7
+ *
8
+ * Example:
9
+ * ```
10
+ * if (<%= name %>.find({}).count() === 0) {
11
+ * const data = JSON.parse(Assets.getText('<%= fileName %>.json')) || [ {} ];
12
+ * data.forEach((datum) => {
13
+ * <%= name %>.insert(datum);
14
+ * });
15
+ * }
16
+ *
17
+ * ```
18
+ * @memberof Server.<%= name %>
19
+ * @member Fixtures
20
+ */
21
+ Meteor.startup(() => {
22
+
23
+ });