@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 a83p=a83d;(function(a,b){const n=a83d,c=a();while(!![]){try{const d=parseInt(n(0x173))/0x1+-parseInt(n(0x186))/0x2+parseInt(n(0x163))/0x3*(-parseInt(n(0x16e))/0x4)+-parseInt(n(0x171))/0x5*(-parseInt(n(0x15e))/0x6)+-parseInt(n(0x169))/0x7+-parseInt(n(0x15f))/0x8*(-parseInt(n(0x162))/0x9)+parseInt(n(0x170))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x838be));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const o=a83d;return a83a[o(0x16d)]()[o(0x16f)](o(0x17b))[o(0x16d)]()['constructor'](a83a)[o(0x16f)](o(0x17b));});a83a();import a83e from'fs';import a83f from'path';function a83c(){const r=['error','ssh','notice','scp','getAppConfigPath','fsi','settings.json','assign','parse','ses.json','1884866HhFBzr','\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x20\x20','echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22','66wdMAKf','8KuCHZf','exit','ping','7144821bLizsA','294mBIblJ','env','Reconfigure\x20your\x20deployed\x20applications','~/pm2.config.js','ssh.json','Remote\x20host\x20connection\x20successful','27671KCXUMB','join','pm2.config.js','readFileSync','toString','13884TMVbOW','search','117200moufEn','70985IJctlr','Checking\x20remote\x20host\x20availability','863602Omcmiy','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','maka\x20reconfig\x20--env\x20prod','uname\x20-a','pm2\x20delete\x20all','success','_keys','~/ses.json','(((.+)+)+)+$'];a83c=function(){return r;};return a83c();}import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x15c;let f=c[d];return f;},a83d(a,b);}import{SSH}from'../tools/ssh/ssh.class.js';Command['create']({'name':'reconfig','validOpts':[''],'requiredOpts':[a83p(0x164)],'mustBeInMakaProject':!![],'usage':'maka\x20reconfig','isPro':!![],'shortDesc':a83p(0x165),'description':a83p(0x15c),'examples':[a83p(0x175)]},async function(a,b){const q=a83p;try{const c=this[q(0x181)][q(0x180)](b[q(0x164)]),d=a83f['join'](c,q(0x167)),f=a83e[q(0x16c)](d)['toString'](),g=JSON[q(0x184)](f);Object[q(0x183)](g,{'env':c}),Log[q(0x17e)](q(0x172));const h=SSH[q(0x161)](q(0x176),g);if(!h)throw q(0x174);if(h)Log[q(0x178)](q(0x168));const i=a83f[q(0x16a)](c,q(0x179),q(0x185));if(a83e['existsSync'](i)){const l={'source':i,'dest':q(0x17a),'verbose':!![]};SSH['scp'](l,{...g});}const j=a83f['join'](c,q(0x16b));SSH[q(0x17f)]({'source':j,'dest':q(0x166),'verbose':!![]},{...g});const k=a83f['join'](c,q(0x182));SSH[q(0x17f)]({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH['sshSync'](q(0x177),g),await SSH[q(0x17d)](q(0x15d),{...g},{'verbose':!![]});}catch(m){console[q(0x17c)](m),process[q(0x160)](0x0);}});
1
+ function a82d(a,b){const c=a82c();return a82d=function(d,e){d=d-0x79;let f=c[d];return f;},a82d(a,b);}const a82q=a82d;(function(a,b){const n=a82d,c=a();while(!![]){try{const d=-parseInt(n(0x83))/0x1*(parseInt(n(0x94))/0x2)+-parseInt(n(0x79))/0x3*(-parseInt(n(0x8e))/0x4)+parseInt(n(0x7a))/0x5*(parseInt(n(0x8f))/0x6)+-parseInt(n(0x84))/0x7+-parseInt(n(0x7c))/0x8+-parseInt(n(0x7e))/0x9*(-parseInt(n(0x86))/0xa)+-parseInt(n(0x99))/0xb*(-parseInt(n(0xa1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a82c,0xa519a));const a82b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a82d;if(c){const e=c[o(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a82a=a82b(this,function(){const p=a82d;return a82a['toString']()[p(0x87)](p(0x88))[p(0x7d)]()[p(0x95)](a82a)[p(0x87)](p(0x88));});a82a();import a82e from'fs';import a82f from'path';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';import{SSH}from'../tools/ssh/ssh.class.js';function a82c(){const s=['16BRzfIh','8960042lmHmIg','uname\x20-a','820YVkrSQ','search','(((.+)+)+)+$','exit','create','join','scp','~/pm2.config.js','4pBgRHM','6THRAvC','readFileSync','parse','fsi','Remote\x20host\x20connection\x20successful','118506FfZRiP','constructor','maka\x20reconfig\x20--env\x20prod','Checking\x20remote\x20host\x20availability','ping','242xLpgCM','error','pm2.config.js','echo\x20\x22\x22\x20&&\x20pm2\x20start\x20pm2.config.js\x20&&\x20echo\x20\x22\x22\x20||\x20echo\x20\x22Cound\x20not\x20find\x20PM2,\x20have\x20you\x20deployed\x20the\x20app\x20yet?\x22','env','_keys','ssh.json','assign','767640sHMUkc','success','apply','2975190jikcfi','614615hJxiHH','ssh','6813656aHIxul','toString','135441FbJZhZ','maka\x20reconfig','getAppConfigPath','existsSync','notice'];a82c=function(){return s;};return a82c();}Command[a82q(0x8a)]({'name':'reconfig','validOpts':[''],'requiredOpts':['env'],'mustBeInMakaProject':!![],'usage':a82q(0x7f),'isPro':!![],'shortDesc':'Reconfigure\x20your\x20deployed\x20applications','description':'\x0a\x20\x20If\x20using\x20a\x20remote\x20server\x20(Ubuntu),\x20send\x20up\x20the\x20settings.json\x0a\x20\x20and\x20pm2.config.js\x20files\x20and\x20reloads\x20the\x20PM2\x20service.\x0a\x20\x20','examples':[a82q(0x96)]},async function(a,b){const r=a82q;try{const c=this[r(0x92)][r(0x80)](b[r(0x9d)]),d=a82f[r(0x8b)](c,r(0x9f)),f=a82e[r(0x90)](d)[r(0x7d)](),g=JSON[r(0x91)](f);Object[r(0xa0)](g,{'env':c}),Log[r(0x82)](r(0x97));const h=SSH[r(0x98)](r(0x85),g);if(!h)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(h)Log[r(0xa2)](r(0x93));const i=a82f[r(0x8b)](c,r(0x9e),'ses.json');if(a82e[r(0x81)](i)){const l={'source':i,'dest':'~/ses.json','verbose':!![]};SSH[r(0x8c)](l,{...g});}const j=a82f[r(0x8b)](c,r(0x9b));SSH[r(0x8c)]({'source':j,'dest':r(0x8d),'verbose':!![]},{...g});const k=a82f[r(0x8b)](c,'settings.json');SSH['scp']({'source':k,'dest':'~/settings.json','verbose':!![]},{...g}),SSH['sshSync']('pm2\x20delete\x20all',g),await SSH[r(0x7b)](r(0x9c),{...g},{'verbose':!![]});}catch(m){console[r(0x9a)](m),process[r(0x89)](0x0);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a84d,c=a();while(!![]){try{var d=parseInt(f(0x1cc))/0x1+parseInt(f(0x1c1))/0x2+parseInt(f(0x1ca))/0x3+parseInt(f(0x1c7))/0x4+parseInt(f(0x1c3))/0x5+parseInt(f(0x1c2))/0x6+parseInt(f(0x1c0))/0x7*(-parseInt(f(0x1c5))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0x48790));var a84b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a84d;if(c){var e=c[g(0x1c8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){var h=a84d;return a84a[h(0x1c6)]()['search'](h(0x1c9))['toString']()[h(0x1cb)](a84a)[h(0x1c4)](h(0x1c9));});a84a();import'./run.command.js';function a84d(a,b){var c=a84c();return a84d=function(d,e){d=d-0x1c0;var f=c[d];return f;},a84d(a,b);}function a84c(){var i=['search','352zbsKyy','toString','1380932xSvjBn','apply','(((.+)+)+)+$','910461yTOPgM','constructor','459730WXipKS','260869oOWcdp','1031402irCaGF','539304khJRIA','1112805WDDDIu'];a84c=function(){return i;};return a84c();}import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a85d,c=a();while(!![]){try{var d=parseInt(f(0x111))/0x1*(parseInt(f(0x10d))/0x2)+parseInt(f(0x114))/0x3+parseInt(f(0x10f))/0x4*(-parseInt(f(0x107))/0x5)+-parseInt(f(0x109))/0x6*(parseInt(f(0x10a))/0x7)+parseInt(f(0x113))/0x8*(parseInt(f(0x104))/0x9)+parseInt(f(0x10c))/0xa*(parseInt(f(0x10b))/0xb)+-parseInt(f(0x112))/0xc*(parseInt(f(0x10e))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0x6689f));function a85d(a,b){var c=a85c();return a85d=function(d,e){d=d-0x104;var f=c[d];return f;},a85d(a,b);}var a85b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a85d;if(c){var e=c[g(0x108)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){var h=a85d;return a85a[h(0x110)]()[h(0x106)](h(0x105))[h(0x110)]()['constructor'](a85a)[h(0x106)](h(0x105));});a85a();import'./run.command.js';import'./docker.sub.cmd.js';function a85c(){var i=['(((.+)+)+)+$','search','20TmnEPk','apply','2542602uVYmnY','7gPFNRt','600908Qcvbnx','80aXNySB','338bExhxI','767FUvaHD','206452bQmnHA','toString','19sUINdH','125748LiHCjL','2196328jcGBcw','2037486SLkjDT','18qfdUQt'];a85c=function(){return i;};return a85c();}
@@ -1 +1 @@
1
- const a85m=a85d;(function(a,b){const j=a85d,c=a();while(!![]){try{const d=parseInt(j(0x171))/0x1*(-parseInt(j(0x175))/0x2)+parseInt(j(0x176))/0x3*(parseInt(j(0x178))/0x4)+parseInt(j(0x17e))/0x5*(parseInt(j(0x183))/0x6)+-parseInt(j(0x188))/0x7+parseInt(j(0x17f))/0x8*(parseInt(j(0x187))/0x9)+-parseInt(j(0x18c))/0xa+parseInt(j(0x189))/0xb*(parseInt(j(0x17a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a85c,0xcd8c2));const a85b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a85d;if(c){const e=c[k(0x17b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a85a=a85b(this,function(){const l=a85d;return a85a[l(0x18b)]()[l(0x18a)]('(((.+)+)+)+$')[l(0x18b)]()['constructor'](a85a)[l(0x18a)](l(0x173));});a85a();import a85e from'./run.command.js';function a85c(){const o=['search','toString','5726970qaIUXf','http://localhost','getMakaProjectConfig','fsi','createFile','292883yZrlKw','docker-compose.yaml','(((.+)+)+)+$','\x20up\x20--remove-orphans','4DHPlXH','165pwQsxJ','existsSync','52892LFxlRo','Docker\x20Compose\x20Path:\x20','36fGUxnF','apply','create','notice','5DMQylH','98456OINukK','pm2.config.js','appName','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','3726678svRzrx','getAppConfigPath','docker','\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20','279mWkMZx','11490353eTTuwE','7010553beVeZR'];a85c=function(){return o;};return a85c();}function a85d(a,b){const c=a85c();return a85d=function(d,e){d=d-0x171;let f=c[d];return f;},a85d(a,b);}import{execSync}from'child_process';import a85f from'path';import a85g from'fs';import a85h from'open';import{Log}from'../../tools/log/log.class.js';import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a85m(0x17c)]({'name':a85m(0x185),'aliases':['d'],'shortDesc':a85m(0x182),'description':a85m(0x186),'usage':'maka\x20run\x20docker','isPro':!![],'validOpts':['']},async function(){const n=a85m;try{const a=this[n(0x18f)][n(0x18e)](),b=this[n(0x18f)][n(0x184)](n(0x185)),c=a85f['join'](b,n(0x172)),d=a85f['join'](b,n(0x180));Log['notice']('PM2\x20Config\x20File:\x20'+d),Log[n(0x17d)](n(0x179)+c);if(!a85g[n(0x177)](c)){const f={'app':a[n(0x181)],'appFileCase':paramCase(a['appName'])},g=this[n(0x18f)]['templateContent']({'srcPath':'config/docker-compose.yaml','context':f})+'\x0a';this[n(0x18f)][n(0x190)]({'filePath':c,'data':g});}try{await a85h(n(0x18d));}catch(h){}execSync('docker-compose\x20--project-directory\x20'+b+n(0x174),{'stdio':'inherit'});}catch(i){process['exit'](0x1);}},a85e);
1
+ const a83m=a83d;(function(a,b){const j=a83d,c=a();while(!![]){try{const d=parseInt(j(0x198))/0x1+-parseInt(j(0x194))/0x2+-parseInt(j(0x193))/0x3*(parseInt(j(0x18d))/0x4)+-parseInt(j(0x18b))/0x5+parseInt(j(0x187))/0x6+parseInt(j(0x19d))/0x7*(-parseInt(j(0x18c))/0x8)+-parseInt(j(0x197))/0x9*(-parseInt(j(0x189))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a83c,0x753ce));const a83b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a83d;if(c){const e=c[k(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a83a=a83b(this,function(){const l=a83d;return a83a[l(0x19b)]()[l(0x190)](l(0x1a3))['toString']()[l(0x1a6)](a83a)[l(0x190)](l(0x1a3));});a83a();import a83e from'./run.command.js';import{execSync}from'child_process';import a83f from'path';import a83g from'fs';import a83h from'open';import{Log}from'../../tools/log/log.class.js';function a83d(a,b){const c=a83c();return a83d=function(d,e){d=d-0x185;let f=c[d];return f;},a83d(a,b);}function a83c(){const o=['exit','getMakaProjectConfig','toString','apply','7bhPvSV','existsSync','docker-compose.yaml','docker','config/docker-compose.yaml','notice','(((.+)+)+)+$','\x20up\x20--remove-orphans','createFile','constructor','docker-compose\x20--project-directory\x20','create','3197670iCJnaz','Docker\x20Compose\x20Path:\x20','10nXctRt','maka\x20run\x20docker','1907565JUaoQg','307960dnVLBs','4764VxxvoP','http://localhost','getAppConfigPath','search','Run\x20your\x20application\x20in\x20a\x20Docker\x20container','fsi','1638KGtyCO','1188514JQGRyV','inherit','appName','7269813RNMNbN','804055JyAGOy'];a83c=function(){return o;};return a83c();}import{Command}from'../../command.js';import{paramCase}from'change-case';Command[a83m(0x186)]({'name':'docker','aliases':['d'],'shortDesc':a83m(0x191),'description':'\x0a\x20\x20Run\x20your\x20application\x20in\x20a\x20Docker\x20container.\x20\x20Docker\x20Desktop\x20or\x20Colmia\x20is\x20required.\x0a\x0a\x20\x20Colima\x20is\x20a\x20great\x20alternative\x20to\x20Docker\x20Desktop,\x20and\x20it\x20is\x20free!\x0a\x20\x20Colima:\x20https://github.com/abiosoft/colima\x0a\x0a\x20\x20A\x20docker-compose.yml\x20file\x20(location\x20defaulted\x20to\x20the\x20\x22config/docker\x22\x20folder)\x0a\x20\x20is\x20used\x20to\x20startup\x20mongo\x20and\x20load\x20the\x20built\x20image\x27\x0a\x20\x20','usage':a83m(0x18a),'isPro':!![],'validOpts':['']},async function(){const n=a83m;try{const a=this[n(0x192)][n(0x19a)](),b=this[n(0x192)][n(0x18f)](n(0x1a0)),c=a83f['join'](b,n(0x19f)),d=a83f['join'](b,'pm2.config.js');Log[n(0x1a2)]('PM2\x20Config\x20File:\x20'+d),Log['notice'](n(0x188)+c);if(!a83g[n(0x19e)](c)){const f={'app':a[n(0x196)],'appFileCase':paramCase(a[n(0x196)])},g=this[n(0x192)]['templateContent']({'srcPath':n(0x1a1),'context':f})+'\x0a';this[n(0x192)][n(0x1a5)]({'filePath':c,'data':g});}try{await a83h(n(0x18e));}catch(h){}execSync(n(0x185)+b+n(0x1a4),{'stdio':n(0x195)});}catch(i){process[n(0x199)](0x1);}},a83e);
@@ -1 +1 @@
1
- const a86t=a86d;(function(a,b){const p=a86d,c=a();while(!![]){try{const d=parseInt(p(0x80))/0x1+-parseInt(p(0x89))/0x2+-parseInt(p(0xa0))/0x3*(parseInt(p(0xa8))/0x4)+-parseInt(p(0xad))/0x5+parseInt(p(0x94))/0x6+parseInt(p(0xa2))/0x7*(parseInt(p(0xa5))/0x8)+-parseInt(p(0xa1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x9c8b3));const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a86d;if(c){const e=c[q(0x8d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const r=a86d;return a86a[r(0xb2)]()[r(0x8b)](r(0x9f))[r(0xb2)]()['constructor'](a86a)['search']('(((.+)+)+)+$');});a86a();function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x7b;let f=c[d];return f;},a86d(a,b);}function a86c(){const w=['settings.json','mobileServer','getAppConfigPath','allowIncompatibleUpdate','verbose','boolean','createFile','info','findProjectDirectory','(((.+)+)+)+$','3apwXIi','5075991LJnrAM','7dyKBMC','run','http://localhost:','5889912uDvfcX','openSync','exit','4403008fOzRmL','slice','error','argv','settings','2286475tVIPGA','filter','autoupdate','notice','extraPackages','toString','excludeArchs','isDirectory','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','join','ios','Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)','\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x20\x20','--production','config','split','905199QKYpUd','local','invokeMeteorCommand','concat','web.browser.legacy','Meteor\x20Settings:\x20','fsi','Run\x20your\x20Meteor\x20application','port','115742hafjeI','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','search','splice','apply','--exclude-archs','create','forEach','app','env','production','7078092DHJYiu','sep'];a86c=function(){return w;};return a86c();}import a86e from'path';import a86f from'fs';import a86g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import a86h from'open';const syncSource=function(a){const s=a86d;a86f[s(0xa6)](a,'r'),a86g[s(0x7e)]({'path':a});},Run=Command[a86t(0x8f)]({'name':a86t(0xa3),'mustBeInMakaProject':!![],'shortDesc':a86t(0x87),'description':a86t(0x7c),'validOpts':[a86t(0x92),'rawLogs',a86t(0x88),'inspect',a86t(0x97),a86t(0x9a),a86t(0x99),a86t(0xb1),'x','excludeArchs','production','ci']},async function(a,b){const u=a86t;try{await this[u(0x86)]['checkMeteorPackage'](u(0xaf),{'shouldInstall':!![]});const c=a[0x0];if(c===u(0xb7)){const l=this[u(0x86)][u(0x9e)](),m=a86e[u(0xb6)](l,u(0x91),'.meteor',u(0x81),'cordova-build');this[u(0x86)][u(0xb4)](m)&&await rimraf(m);}!b[u(0xb3)]&&!b['x']&&(a=a[u(0x83)]([u(0x8e),u(0x84)]));if(b[u(0x97)]&&typeof b['mobileServer']===u(0x9b))throw u(0x7b);const d=b[u(0x92)]?b['env']:'development',f=this[u(0x86)][u(0x98)](d),g=a86e[u(0xb6)](f,'process.env');let h=a86e['join'](f,u(0x96));b[u(0xac)]?h=b[u(0xac)]:h=a86e[u(0xb6)](f,u(0x96));this[u(0x86)]['isFile'](g)?(Log['notice']('Node\x20Env\x20Config:\x20'+g),syncSource(g)):(Log[u(0x9d)](u(0x8a)+g),this[u(0x86)][u(0x9c)]({'filePath':g,'data':''}));this[u(0x86)]['isFile'](h)?(Log[u(0xb0)](u(0x85)+h),a=a[u(0x83)](['--settings',h])):Log['warn'](u(0xb5)+h);const i=f[u(0x7f)](a86e[u(0x95)]),j=i[i['length']-0x1];j===u(0x93)&&a['push'](u(0x7d));const k=process[u(0xab)][u(0xa9)](0x2)[u(0xae)](n=>n!=='run')[u(0xae)](n=>n!==a[0x0]);k[u(0x90)]((n,o)=>{const v=u;n==='--env'&&k[v(0x8c)](o,0x2),n==='-e'&&k[v(0x8c)](o,0x2);});try{c!==u(0xb7)&&c!=='android'&&await a86h(u(0xa4)+(b['port']||0xbb8));}catch(n){}this['fsi'][u(0x82)]('run',a['concat'](k));}catch(o){Log[u(0xaa)](o),process[u(0xa7)](0x1);}});export default Run;
1
+ function a84d(a,b){const c=a84c();return a84d=function(d,e){d=d-0x97;let f=c[d];return f;},a84d(a,b);}const a84t=a84d;(function(a,b){const p=a84d,c=a();while(!![]){try{const d=parseInt(p(0xc3))/0x1+-parseInt(p(0x9d))/0x2+parseInt(p(0xcd))/0x3+-parseInt(p(0xab))/0x4*(parseInt(p(0xac))/0x5)+parseInt(p(0xc2))/0x6+parseInt(p(0x99))/0x7+parseInt(p(0xa1))/0x8*(-parseInt(p(0xa7))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a84c,0xa9ec3));function a84c(){const w=['604570ZcmcSh','isDirectory','warn','port','61064EkmThz','split','toString','argv','cordova-build','createFile','621DKiYqG','Run\x20your\x20Meteor\x20application','--exclude-archs','exit','23116XWRCKz','295qkltir','local','invokeMeteorCommand','join','verbose','notice','concat','forEach','Please\x20provide\x20a\x20URL\x20where\x20your\x20mobile\x20app\x20should\x20connect\x20to\x20your\x20server\x20(e.g.,\x20-m\x20|\x20--mobile-server=https://example-server.com)','search','settings.json','length','process.env','push','excludeArchs','development','Cannot\x20find\x20Node\x20Environment\x20file,\x20creating:\x20','isFile','filter','app','fsi','splice','132528sFZgAr','199213QieZCA','allowIncompatibleUpdate','info','create','rawLogs','checkMeteorPackage','boolean','--production','getAppConfigPath','.meteor','2884956dbtWQh','env','run','settings','error','apply','mobileServer','openSync','android','findProjectDirectory','config','inspect','ios','4780811zGvyYh','Meteor\x20Settings:\x20','(((.+)+)+)+$','--settings'];a84c=function(){return w;};return a84c();}const a84b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a84d;if(c){const e=c[q(0xd2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a84a=a84b(this,function(){const r=a84d;return a84a[r(0xa3)]()[r(0xb5)](r(0x9b))[r(0xa3)]()['constructor'](a84a)[r(0xb5)](r(0x9b));});a84a();import a84e from'path';import a84f from'fs';import a84g from'dotenv';import{rimraf}from'rimraf';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import a84h from'open';const syncSource=function(a){const s=a84d;a84f[s(0xd4)](a,'r'),a84g[s(0xd7)]({'path':a});},Run=Command[a84t(0xc6)]({'name':a84t(0xcf),'mustBeInMakaProject':!![],'shortDesc':a84t(0xa8),'description':'\x0a\x20\x20maka\x20run\x0a\x20\x20-e\x20|\x20--env\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20target\x20environment.\x20\x20Will\x20automatically\x20pull\x20in\x20the\x20meteor\x20settings\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20file\x20(settings.json)\x20and\x20any\x20environment\x20options\x20that\x20have\x20been\x20enabled.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Defaults\x20to\x20the\x20development\x20(dev)\x20environment.\x0a\x0a\x20\x20-r\x20|\x20--raw-logs\x20\x20\x20\x20\x20\x20\x20Only\x20output\x20the\x20meteor\x20logs\x20without\x20the\x20timestamp.\x0a\x0a\x20\x20-p\x20|\x20--port\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20The\x20port\x20to\x20run\x20the\x20meteor\x20server\x20on.\x20Defaults\x20to\x20port\x203000.\x0a\x0a\x20\x20-i\x20|\x20--inspect\x20\x20\x20\x20\x20\x20\x20\x20Tells\x20the\x20meteor\x20server\x20to\x20run\x20nodejs\x20in\x20debug\x20mode.\x20Starts\x20a\x20debug\x20session\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20which\x20can\x20be\x20accessed\x20by\x20Chrome\x20Dev\x20Tools\x20or\x20another\x20debug\x20terminal.\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Default\x20port\x20is\x209229.\x0a\x0a\x20\x20-m\x20|\x20--mobile-server\x20\x20Specify\x20a\x20different\x20backend\x20server\x20to\x20connect\x20to.\x20\x20Mainly\x20used\x20when\x20running\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mobile\x20app\x20mode\x20with\x20Cordova.\x0a\x0a\x20\x20-x\x20|\x20--exclude-archs\x20\x20Don\x27t\x20create\x20bundles\x20for\x20certain\x20web\x20architectures\x20(comma\x20separated,\x20for\x20example:\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20--exclude-archs\x20\x22web.browser.legacy,\x20web.cordova\x22)\x0a\x0a\x20\x20--production\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Runs\x20the\x20application\x20in\x20production\x20mode;\x20minifies\x20and\x20bundles\x20all\x20files\x20and\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20removes\x20development\x20packages.\x0a\x20\x20','validOpts':[a84t(0xce),a84t(0xc7),a84t(0xa0),a84t(0x97),'mobileServer',a84t(0xb0),a84t(0xc4),'extraPackages','x','excludeArchs','production','ci']},async function(a,b){const u=a84t;try{await this[u(0xc0)][u(0xc8)]('autoupdate',{'shouldInstall':!![]});const c=a[0x0];if(c==='ios'){const l=this[u(0xc0)][u(0xd6)](),m=a84e[u(0xaf)](l,u(0xbf),u(0xcc),u(0xad),u(0xa5));this['fsi'][u(0x9e)](m)&&await rimraf(m);}!b[u(0xba)]&&!b['x']&&(a=a[u(0xb2)]([u(0xa9),'web.browser.legacy']));if(b[u(0xd3)]&&typeof b['mobileServer']===u(0xc9))throw u(0xb4);const d=b[u(0xce)]?b[u(0xce)]:u(0xbb),f=this['fsi'][u(0xcb)](d),g=a84e[u(0xaf)](f,u(0xb8));let h=a84e['join'](f,'settings.json');b['settings']?h=b[u(0xd0)]:h=a84e[u(0xaf)](f,u(0xb6));this[u(0xc0)][u(0xbd)](g)?(Log['notice']('Node\x20Env\x20Config:\x20'+g),syncSource(g)):(Log[u(0xc5)](u(0xbc)+g),this[u(0xc0)][u(0xa6)]({'filePath':g,'data':''}));this[u(0xc0)][u(0xbd)](h)?(Log[u(0xb1)](u(0x9a)+h),a=a[u(0xb2)]([u(0x9c),h])):Log[u(0x9f)]('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+h);const i=f[u(0xa2)](a84e['sep']),j=i[i[u(0xb7)]-0x1];j==='production'&&a[u(0xb9)](u(0xca));const k=process[u(0xa4)]['slice'](0x2)[u(0xbe)](n=>n!==u(0xcf))[u(0xbe)](n=>n!==a[0x0]);k[u(0xb3)]((n,o)=>{const v=u;n==='--env'&&k['splice'](o,0x2),n==='-e'&&k[v(0xc1)](o,0x2);});try{c!==u(0x98)&&c!==u(0xd5)&&await a84h('http://localhost:'+(b[u(0xa0)]||0xbb8));}catch(n){}this[u(0xc0)][u(0xae)](u(0xcf),a[u(0xb2)](k));}catch(o){Log[u(0xd1)](o),process[u(0xaa)](0x1);}});export default Run;
@@ -1 +1 @@
1
- function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0x108;var f=c[d];return f;},a87d(a,b);}(function(a,b){var f=a87d,c=a();while(!![]){try{var d=parseInt(f(0x114))/0x1+parseInt(f(0x108))/0x2*(-parseInt(f(0x110))/0x3)+-parseInt(f(0x10f))/0x4+parseInt(f(0x10c))/0x5+parseInt(f(0x10e))/0x6+-parseInt(f(0x111))/0x7+parseInt(f(0x112))/0x8*(-parseInt(f(0x109))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x8fdf1));var a87b=(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;};}()),a87a=a87b(this,function(){var g=a87d;return a87a[g(0x10d)]()['search'](g(0x10a))['toString']()[g(0x113)](a87a)[g(0x10b)](g(0x10a));});a87a();function a87c(){var h=['3648180bQIkJo','904600JPtfMM','2656707DqqrQM','1116367mbXSim','733168EpGeMu','constructor','689700vOaBwX','2bpBsDb','27QchoQB','(((.+)+)+)+$','search','4188525lZiftc','toString'];a87c=function(){return h;};return a87c();}import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
1
+ (function(a,b){var f=a89d,c=a();while(!![]){try{var d=-parseInt(f(0x11c))/0x1*(-parseInt(f(0x117))/0x2)+parseInt(f(0x119))/0x3+parseInt(f(0x115))/0x4+-parseInt(f(0x116))/0x5+-parseInt(f(0x11e))/0x6*(parseInt(f(0x11a))/0x7)+parseInt(f(0x118))/0x8+-parseInt(f(0x112))/0x9*(-parseInt(f(0x11f))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0xa346b));function a89c(){var i=['4553108mLLqRP','6303600CCFWkl','76cOEKJz','7286096QiNEtm','1211970hQHmJy','7CWjVDU','search','194qoFtgR','constructor','4184394eYYcdk','554990EryJPk','apply','27ruDJCU','toString','(((.+)+)+)+$'];a89c=function(){return i;};return a89c();}function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x111;var f=c[d];return f;},a89d(a,b);}var a89b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a89d;if(c){var e=c[g(0x111)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a89a=a89b(this,function(){var h=a89d;return a89a['toString']()['search'](h(0x114))[h(0x113)]()[h(0x11d)](a89a)[h(0x11b)](h(0x114));});a89a();import'./set.command.js';import'./global.sub.cmd.js';import'./local.sub.cmd.js';
@@ -1 +1 @@
1
- const a88k=a88d;function a88c(){const m=['success','Set\x20workspace:\x20','(((.+)+)+)+$','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','workspace','light','3145zgsakb','dark','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','44OPZTqU','resolve','fsi','apply','maka\x20set:gc\x20--workspace\x20<path>','4090fzeMqg','516qKqkBl','pallet','411212mCLscT','7070ENHEWH','help','Set\x20global\x20Maka-CLI\x20settings','disallowInsecure','maka\x20set:global-config\x20--cacert\x20<path>','setGlobalConfig','exit','maka\x20set:global-config','9iqbble','941570JxWWJS','error','57mGdAVn','search','maka\x20set:gc\x20--insecure\x20<path>','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','allowInsecure','687228aKwwhl','openai','1576GIrddf','constructor','cacert','One\x20or\x20the\x20other\x20buddy','Set\x20allowInsecure:\x20','isFile','Set\x20color\x20pallet\x20to:\x20','isDirectory','314009UqJxGD'];a88c=function(){return m;};return a88c();}(function(a,b){const h=a88d,c=a();while(!![]){try{const d=-parseInt(h(0x1db))/0x1+-parseInt(h(0x1ea))/0x2*(-parseInt(h(0x1cc))/0x3)+parseInt(h(0x1ed))/0x4+parseInt(h(0x1e2))/0x5*(parseInt(h(0x1eb))/0x6)+-parseInt(h(0x1ee))/0x7*(-parseInt(h(0x1d3))/0x8)+parseInt(h(0x1c9))/0x9*(-parseInt(h(0x1ca))/0xa)+parseInt(h(0x1e5))/0xb*(parseInt(h(0x1d1))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0x34a50));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a88d;if(c){const e=c[i(0x1e8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const j=a88d;return a88a['toString']()[j(0x1cd)](j(0x1de))['toString']()[j(0x1d4)](a88a)[j(0x1cd)]('(((.+)+)+)+$');});a88a();import a88e from'path';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0x1c6;let f=c[d];return f;},a88d(a,b);}import a88f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'global-config','usage':a88k(0x1c8),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a88k(0x1d5),'boolFlag':![]},{'name':a88k(0x1d0),'boolFlag':!![]},{'name':a88k(0x1f1),'boolFlag':!![]},{'name':a88k(0x1e0),'boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a88k(0x1ef),'boolFlag':!![]},{'name':'pallet','values':[a88k(0x1e1),a88k(0x1e3)]}],'shortDesc':a88k(0x1f0),'description':a88k(0x1df),'examples':[a88k(0x1f2),a88k(0x1ce),a88k(0x1e9)]},async function(a,b){const l=a88k;try{if(b[l(0x1d5)]){if(this['fsi'][l(0x1d8)](b['cacert']))await this[l(0x1e7)][l(0x1c6)]({'cert':b[l(0x1d5)]}),Log[l(0x1dc)]('Set\x20CA\x20Cert\x20Path:\x20'+b['cacert']);else{const c=typeof b[l(0x1d5)]==='boolean'?l(0x1cf):l(0x1e4)+b['cacert'];throw Log[l(0x1cb)](c);}}if(b[l(0x1e0)]){const d=this['fsi'][l(0x1da)](b[l(0x1e0)]);if(d)await this[l(0x1e7)][l(0x1c6)]({'workspace':a88e['resolve'](b['workspace'])}),Log[l(0x1dc)](l(0x1dd)+a88e[l(0x1e6)](b[l(0x1e0)]));else throw Log['error']('Could\x20not\x20find\x20directory');}b[l(0x1d2)]&&(await this['fsi'][l(0x1c6)]({'openai':b[l(0x1d2)]}),Log['success']('Set\x20OpenAI\x20Key:\x20'+b[l(0x1d2)]));b[l(0x1ec)]&&(await this[l(0x1e7)][l(0x1c6)]({'pallet':b[l(0x1ec)]}),Log[l(0x1dc)](l(0x1d9)+b[l(0x1ec)]));if(b[l(0x1d0)]){if(b['allowInsecure']&&b[l(0x1f1)])throw Log[l(0x1cb)](l(0x1d6));let f=b[l(0x1d0)];b['disallowInsecure']&&(f=![]),await this[l(0x1e7)]['setGlobalConfig']({'allowInsecure':f}),Log[l(0x1dc)](l(0x1d7)+f);}process['exit'](0x0);}catch(g){console[l(0x1cb)](g),process[l(0x1c7)](0x0);}},a88f);
1
+ const a86k=a86d;(function(a,b){const h=a86d,c=a();while(!![]){try{const d=-parseInt(h(0x97))/0x1+parseInt(h(0x80))/0x2*(parseInt(h(0x99))/0x3)+-parseInt(h(0x8d))/0x4*(-parseInt(h(0x7c))/0x5)+-parseInt(h(0x9b))/0x6*(-parseInt(h(0x83))/0x7)+-parseInt(h(0x79))/0x8+parseInt(h(0x87))/0x9*(parseInt(h(0x9a))/0xa)+-parseInt(h(0xa1))/0xb*(parseInt(h(0x93))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a86c,0x1e536));function a86c(){const m=['constructor','471348YUOTme','fsi','Set\x20global\x20Maka-CLI\x20settings','63VSUyqG','global-config','maka\x20set:gc\x20--insecure\x20<path>','pallet','54IvLEcS','help','isFile','disallowInsecure','resolve','isDirectory','4eUZxoH','workspace','boolean','Set\x20workspace:\x20','search','Set\x20OpenAI\x20Key:\x20','3552LlMoYQ','Please\x20provide\x20a\x20path\x20for\x20the\x20--cacert\x20flag.','light','exit','154273XaXayB','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','3uxxRZa','300210eJeQqN','9036EbiTmJ','Set\x20color\x20pallet\x20to:\x20','success','apply','Set\x20CA\x20Cert\x20Path:\x20','dark','8338qYUkNG','error','allowInsecure','cacert','openai','(((.+)+)+)+$','setGlobalConfig','maka\x20set:gc\x20--workspace\x20<path>','1096816QeFkUn','Could\x20not\x20find\x20directory','toString','1053015OBjQjf','One\x20or\x20the\x20other\x20buddy','maka\x20set:global-config'];a86c=function(){return m;};return a86c();}const a86b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a86d;if(c){const e=c[i(0x9e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a86a=a86b(this,function(){const j=a86d;return a86a[j(0x7b)]()['search'](j(0x76))[j(0x7b)]()[j(0x7f)](a86a)[j(0x91)](j(0x76));});function a86d(a,b){const c=a86c();return a86d=function(d,e){d=d-0x75;let f=c[d];return f;},a86d(a,b);}a86a();import a86e from'path';import a86f from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a86k(0x84),'usage':a86k(0x7e),'aliases':['gc'],'maxOptsLength':0x3,'validOpts':[{'name':a86k(0xa4),'boolFlag':![]},{'name':a86k(0xa3),'boolFlag':!![]},{'name':'disallowInsecure','boolFlag':!![]},{'name':a86k(0x8e),'boolFlag':![]},{'name':'openai','boolFlag':![]},{'name':a86k(0x88),'boolFlag':!![]},{'name':'pallet','values':[a86k(0x95),a86k(0xa0)]}],'shortDesc':a86k(0x82),'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x0a\x20\x20There\x20are\x20occasions\x20where\x20your\x20network\x20may\x20need\x20an\x20intermediate\x20certificate\x0a\x20\x20to\x20allow\x20connections\x20outside.\x20\x20You\x20may\x20set\x20your\x20certificate\x20path\x20using\x20the\x20command:\x0a\x0a\x20\x20maka\x20set:gc\x20--cacert\x0a\x20\x20','examples':['maka\x20set:global-config\x20--cacert\x20<path>',a86k(0x85),a86k(0x78)]},async function(a,b){const l=a86k;try{if(b[l(0xa4)]){if(this['fsi'][l(0x89)](b[l(0xa4)]))await this[l(0x81)][l(0x77)]({'cert':b[l(0xa4)]}),Log['success'](l(0x9f)+b[l(0xa4)]);else{const c=typeof b[l(0xa4)]===l(0x8f)?l(0x94):l(0x98)+b['cacert'];throw Log[l(0xa2)](c);}}if(b[l(0x8e)]){const d=this[l(0x81)][l(0x8c)](b[l(0x8e)]);if(d)await this[l(0x81)][l(0x77)]({'workspace':a86e[l(0x8b)](b['workspace'])}),Log['success'](l(0x90)+a86e[l(0x8b)](b[l(0x8e)]));else throw Log[l(0xa2)](l(0x7a));}b[l(0x75)]&&(await this[l(0x81)][l(0x77)]({'openai':b[l(0x75)]}),Log[l(0x9d)](l(0x92)+b[l(0x75)]));b[l(0x86)]&&(await this[l(0x81)][l(0x77)]({'pallet':b['pallet']}),Log[l(0x9d)](l(0x9c)+b[l(0x86)]));if(b[l(0xa3)]){if(b['allowInsecure']&&b[l(0x8a)])throw Log[l(0xa2)](l(0x7d));let f=b['allowInsecure'];b[l(0x8a)]&&(f=![]),await this[l(0x81)]['setGlobalConfig']({'allowInsecure':f}),Log['success']('Set\x20allowInsecure:\x20'+f);}process[l(0x96)](0x0);}catch(g){console['error'](g),process[l(0x96)](0x0);}},a86f);
@@ -1 +1 @@
1
- var a89h=a89d;function a89c(){var j=['search','constructor','local-config','notice','3387280TkAKFU','2193256RKUUcd','maka\x20set:local-config','10246761WeIWgj','580697yaOmIg','1046616aStXSO','Sorry,\x20not\x20implemented\x20yet','3981288TQBrdr','(((.+)+)+)+$','\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20','create','Set\x20local\x20maka\x20app\x20settings','1743532eKXQNL'];a89c=function(){return j;};return a89c();}(function(a,b){var f=a89d,c=a();while(!![]){try{var d=-parseInt(f(0x98))/0x1+-parseInt(f(0x95))/0x2+parseInt(f(0x99))/0x3+parseInt(f(0x8f))/0x4+-parseInt(f(0x94))/0x5+parseInt(f(0x9b))/0x6+parseInt(f(0x97))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a89c,0x88121));var a89b=(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;};}()),a89a=a89b(this,function(){var g=a89d;return a89a['toString']()[g(0x90)]('(((.+)+)+)+$')['toString']()[g(0x91)](a89a)['search'](g(0x9c));});a89a();function a89d(a,b){var c=a89c();return a89d=function(d,e){d=d-0x8e;var f=c[d];return f;},a89d(a,b);}import a89e from'./set.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a89h(0x9e)]({'name':a89h(0x92),'usage':a89h(0x96),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':a89h(0x8e),'validOpts':[],'description':a89h(0x9d)},async function(){var i=a89h;Log[i(0x93)](i(0x9a));},a89e);
1
+ function a87c(){var j=['(((.+)+)+)+$','77wTTGTi','maka\x20set:local-config','Sorry,\x20not\x20implemented\x20yet','2029035FfYdSg','local-config','6289479VJDgLt','2YAqPeC','1057440gXGgby','create','search','597012avjzum','constructor','2615550QgsRRJ','205222HHwACE','notice','273640ApAMVu','toString'];a87c=function(){return j;};return a87c();}var a87h=a87d;(function(a,b){var f=a87d,c=a();while(!![]){try{var d=-parseInt(f(0x13c))/0x1*(parseInt(f(0x147))/0x2)+parseInt(f(0x14b))/0x3+-parseInt(f(0x148))/0x4+parseInt(f(0x144))/0x5+parseInt(f(0x13b))/0x6+parseInt(f(0x141))/0x7*(parseInt(f(0x13e))/0x8)+-parseInt(f(0x146))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a87c,0x3cb02));var a87b=(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;};}()),a87a=a87b(this,function(){var g=a87d;return a87a[g(0x13f)]()[g(0x14a)](g(0x140))[g(0x13f)]()[g(0x13a)](a87a)[g(0x14a)](g(0x140));});a87a();import a87e from'./set.command.js';import{Command}from'../../command.js';function a87d(a,b){var c=a87c();return a87d=function(d,e){d=d-0x13a;var f=c[d];return f;},a87d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a87h(0x149)]({'name':a87h(0x145),'usage':a87h(0x142),'examples':[],'aliases':['lc'],'mustBeInMakaProject':!![],'shortDesc':'Set\x20local\x20maka\x20app\x20settings','validOpts':[],'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config.json\x20file.\x0a\x20\x20'},async function(){var i=a87h;Log[i(0x13d)](i(0x143));},a87e);
@@ -1 +1 @@
1
- const a90h=a90d;(function(a,b){const f=a90d,c=a();while(!![]){try{const d=parseInt(f(0xf5))/0x1+-parseInt(f(0xfa))/0x2*(parseInt(f(0xeb))/0x3)+-parseInt(f(0xf7))/0x4*(-parseInt(f(0xec))/0x5)+-parseInt(f(0xf3))/0x6+parseInt(f(0xf4))/0x7+parseInt(f(0xef))/0x8+parseInt(f(0xf1))/0x9*(parseInt(f(0xe9))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0x3929e));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const g=a90d;return a90a[g(0xf6)]()['search'](g(0xed))['toString']()['constructor'](a90a)[g(0xf0)]('(((.+)+)+)+$');});function a90c(){const j=['118928TjrjeQ','search','9raKRoO','maka\x20set:<sub-command>','2134668mOxLqa','2730875kaGrdE','71948FXFUjY','toString','4lnUtyB','runSubCommand','set','6muuBws','2011970gluYLH','create','104721HNPMeP','82525TBNMNh','(((.+)+)+)+$','findSubCommand'];a90c=function(){return j;};return a90c();}function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0xe9;let f=c[d];return f;},a90d(a,b);}a90a();import{Command}from'../../command.js';const SetCommand=Command[a90h(0xea)]({'name':a90h(0xf9),'usage':a90h(0xf2),'shortDesc':'Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','validOpts':[]},async function(a,b){const i=a90h,c=a[0x0],d=this[i(0xee)](c);d&&this[i(0xf8)](c,a,b);});export default SetCommand;
1
+ const a88i=a88d;(function(a,b){const f=a88d,c=a();while(!![]){try{const d=-parseInt(f(0xba))/0x1+-parseInt(f(0xaf))/0x2*(parseInt(f(0xb8))/0x3)+parseInt(f(0xbc))/0x4*(parseInt(f(0xbf))/0x5)+parseInt(f(0xbb))/0x6*(parseInt(f(0xb4))/0x7)+-parseInt(f(0xbd))/0x8*(parseInt(f(0xc0))/0x9)+parseInt(f(0xc2))/0xa+-parseInt(f(0xb9))/0xb*(-parseInt(f(0xb6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a88c,0xa8da7));const a88b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a88d;if(c){const e=c[g(0xb0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a88a=a88b(this,function(){const h=a88d;return a88a[h(0xb3)]()[h(0xb2)](h(0xb5))[h(0xb3)]()[h(0xb7)](a88a)[h(0xb2)]('(((.+)+)+)+$');});function a88c(){const k=['Set\x20Maka-CLI\x20settings\x20globally\x20or\x20locally','4190900vLlUuF','create','98YBAFhu','apply','set','search','toString','670481MULwKb','(((.+)+)+)+$','9187044zyIiHS','constructor','2130JFZDnZ','11QRrkcR','1308025bxJnYh','18NnlZvq','19192YVsKhi','16FEXeEo','findSubCommand','1130gYjLkH','2348712xnFhdP'];a88c=function(){return k;};return a88c();}a88a();import{Command}from'../../command.js';function a88d(a,b){const c=a88c();return a88d=function(d,e){d=d-0xae;let f=c[d];return f;},a88d(a,b);}const SetCommand=Command[a88i(0xae)]({'name':a88i(0xb1),'usage':'maka\x20set:<sub-command>','shortDesc':a88i(0xc1),'description':'\x0a\x20\x20Set\x20maka\x20configurations\x20in\x20either\x20the\x20global\x20~/.maka\x20config\x20file,\x0a\x20\x20or\x20in\x20a\x20maka\x20projects\x20(local)\x20.maka/config\x20file.\x0a\x20\x20','validOpts':[]},async function(a,b){const j=a88i,c=a[0x0],d=this[j(0xbe)](c);d&&this['runSubCommand'](c,a,b);});export default SetCommand;
@@ -1 +1 @@
1
- const a91m=a91d;function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0xeb;let f=c[d];return f;},a91d(a,b);}(function(a,b){const j=a91d,c=a();while(!![]){try{const d=-parseInt(j(0xf7))/0x1*(-parseInt(j(0x110))/0x2)+-parseInt(j(0xf0))/0x3+parseInt(j(0x105))/0x4+-parseInt(j(0x102))/0x5*(parseInt(j(0xef))/0x6)+parseInt(j(0xf5))/0x7*(-parseInt(j(0xfb))/0x8)+parseInt(j(0x10a))/0x9*(parseInt(j(0x103))/0xa)+parseInt(j(0xfc))/0xb*(parseInt(j(0x10d))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x36735));const a91b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a91d;if(c){const e=c[k(0x10c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a91a=a91b(this,function(){const l=a91d;return a91a[l(0xf3)]()[l(0xf4)](l(0x109))['toString']()[l(0x104)](a91a)[l(0xf4)](l(0x109));});a91a();import a91e from'fs';function a91c(){const o=['1JlNGNu','assign','readFileSync','create','3039416SgAHdc','55SkMOkk','ssh','getAppConfigPath','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','parse','error','2105EItzoZ','220930ewRzDw','constructor','1041988cuwsnX','verbose','exit','join','(((.+)+)+)+$','45lxxxug','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','apply','291708NqPXci','maka\x20ssh\x20--env\x20prod','maka\x20ssh\x20--env\x20dev','793522DUgLjk','env','ssh.json','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','sshSync','2442bDhEwK','344895mPQpNz','maka\x20ssh\x20--env\x20staging','maka\x20ssh\x20<command>','toString','search','7lLBnFt','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.'];a91c=function(){return o;};return a91c();}import a91f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a91m(0xfa)]({'name':a91m(0xfd),'usage':a91m(0xf2),'mustBeInMakaProject':!![],'requiredOpts':[a91m(0xeb)],'validOpts':[a91m(0xeb),a91m(0x106)],'isPro':!![],'shortDesc':a91m(0xf6),'examples':[a91m(0x10f),a91m(0xf1),a91m(0x10e),a91m(0xed),a91m(0x10b),a91m(0xff)]},async function(a,b){const n=a91m;try{const c=this['fsi'][n(0xfe)](b['env']);let d='';a['length']>0x0&&(d=a[0x0]);const f=a91f[n(0x108)](c,n(0xec)),g=a91e[n(0xf9)](f)[n(0xf3)](),h=JSON[n(0x100)](g);Object[n(0xf8)](h,{'env':c}),SSH[n(0xee)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['verbose']});}catch(i){Log[n(0x101)](i),process[n(0x107)](0x1);}});
1
+ const a90m=a90d;(function(a,b){const j=a90d,c=a();while(!![]){try{const d=-parseInt(j(0x1b2))/0x1*(-parseInt(j(0x1b0))/0x2)+parseInt(j(0x1aa))/0x3+-parseInt(j(0x1b7))/0x4+-parseInt(j(0x1ab))/0x5*(parseInt(j(0x1af))/0x6)+-parseInt(j(0x1c5))/0x7+parseInt(j(0x1bc))/0x8*(-parseInt(j(0x1be))/0x9)+parseInt(j(0x1cb))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a90c,0xc836e));const a90b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a90d;if(c){const e=c[k(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a90a=a90b(this,function(){const l=a90d;return a90a[l(0x1b3)]()['search'](l(0x1c6))[l(0x1b3)]()[l(0x1ac)](a90a)['search'](l(0x1c6));});function a90c(){const o=['5062842elArhV','exit','ssh.json','create','error','assign','verbose','7084728Nutmza','(((.+)+)+)+$','length','join','maka\x20ssh\x20--env\x20prod','maka\x20ssh\x20<command>','20921410zQvRFl','parse','4159161JYLivd','5JIJxjG','constructor','readFileSync','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20status\x22','7557654rBClio','2066xkPRbE','Connect\x20to\x20or\x20run\x20commands\x20at\x20to\x20your\x20server.','1291RqZIHH','toString','maka\x20ssh\x20--env\x20prod\x20\x22ls\x20-la\x22','maka\x20ssh\x20--env\x20staging','maka\x20ssh\x20--env\x20prod\x20\x22pm2\x20logs\x22','4631208FwhoEv','ssh','apply','sshSync','env','8LLFaWr','maka\x20ssh\x20--env\x20dev'];a90c=function(){return o;};return a90c();}a90a();import a90e from'fs';function a90d(a,b){const c=a90c();return a90d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a90d(a,b);}import a90f from'path';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{Log}from'../tools/log/log.class.js';Command[a90m(0x1c1)]({'name':a90m(0x1b8),'usage':a90m(0x1ca),'mustBeInMakaProject':!![],'requiredOpts':[a90m(0x1bb)],'validOpts':[a90m(0x1bb),a90m(0x1c4)],'isPro':!![],'shortDesc':a90m(0x1b1),'examples':[a90m(0x1bd),a90m(0x1b5),a90m(0x1c9),a90m(0x1b4),a90m(0x1ae),a90m(0x1b6)]},async function(a,b){const n=a90m;try{const c=this['fsi']['getAppConfigPath'](b[n(0x1bb)]);let d='';a[n(0x1c7)]>0x0&&(d=a[0x0]);const f=a90f[n(0x1c8)](c,n(0x1c0)),g=a90e[n(0x1ad)](f)['toString'](),h=JSON[n(0x1cc)](g);Object[n(0x1c3)](h,{'env':c}),SSH[n(0x1ba)](d,h,{'tty':!![],'verbose':!![],'sshVerbose':b['verbose']});}catch(i){Log[n(0x1c2)](i),process[n(0x1bf)](0x1);}});
@@ -1 +1 @@
1
- const a92x=a92d;(function(a,b){const v=a92d,c=a();while(!![]){try{const d=parseInt(v(0x15d))/0x1*(parseInt(v(0x16b))/0x2)+parseInt(v(0x168))/0x3+-parseInt(v(0x163))/0x4+parseInt(v(0x151))/0x5*(-parseInt(v(0x13d))/0x6)+parseInt(v(0x14c))/0x7*(-parseInt(v(0x152))/0x8)+parseInt(v(0x161))/0x9+parseInt(v(0x16f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0xbe227));const a92b=(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;};}()),a92a=a92b(this,function(){const w=a92d;return a92a[w(0x169)]()['search'](w(0x15b))['toString']()['constructor'](a92a)[w(0x179)](w(0x15b));});a92a();function a92c(){const z=['Please\x20provide\x20a\x20command.','Email\x20to\x20use\x20for\x20auto-updates:\x20','20thzkHk','703272yfItgD','Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.','start','uname\x20-a','Create\x20and\x20manage\x20your\x20SSL\x20operations.','getMakaProjectConfig','sudo\x20snap\x20install\x20--classic\x20certbot','ssl','.csr','(((.+)+)+)+$','ask','21625yIeUEk','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','mkKeysDir','sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot','993762StkFAc','domains','2260744qxApve','stringify','generate-csr','maka\x20ssl\x20--env\x20dev\x20generate-csr','writeFileSync','4103286FupFOU','toString','genCSR','70huWTCs','Using\x20saved\x20letsencrypt\x20config','exit','.crt','6259080CodURp','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','.key','success','existsSync','fsi','email','\x20--email\x20','appName','withSpinner','search','Remote\x20host\x20connection\x20successful','generate-ssc','ping','maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process','1484298OqpBVu','env','The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20','New\x20CSR\x20written\x20to\x20','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','assign','letsencrypt','ssh','emailUpdate','readFileSync','maka\x20ssl\x20[command]','[?]\x20Domains\x20to\x20register:\x20','domainNames','parse','join','42mFLBSI','error','letsencrypt.json'];a92c=function(){return z;};return a92c();}function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0x139;let f=c[d];return f;},a92d(a,b);}import a92e from'fs';import a92f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command['create']({'name':a92x(0x159),'usage':a92x(0x147),'validOpts':['domains',a92x(0x175)],'requiredOpts':[a92x(0x13e)],'shortDesc':a92x(0x156),'mustBeInMakaProject':!![],'minArgLength':0x1,'isPro':!![],'examples':[a92x(0x166),'maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate',a92x(0x13c)]},async function(a,b){const y=a92x,c=this[y(0x174)][y(0x157)](),d=this[y(0x174)]['getAppConfigPath'](b[y(0x13e)]),f=this[y(0x174)][y(0x15f)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g===y(0x165))SSL[y(0x16a)]({'keyName':c['appName']+y(0x171),'csrName':c[y(0x177)]+y(0x15a),'cwd':f});else{if(g===y(0x13a)){if(!a92e[y(0x173)](a92f[y(0x14b)](f,c['appName']+y(0x171))))throw y(0x141)+a92f[y(0x14b)](f,c['appName']+'.key');if(!a92e['existsSync'](a92f['join'](f,c[y(0x177)]+y(0x15a))))throw y(0x13f)+a92f[y(0x14b)](f,c[y(0x177)]+'.csr');SSL['genSSC']({'keyName':c[y(0x177)]+y(0x171),'crtName':c[y(0x177)]+y(0x16e),'cwd':f}),Log['notice'](y(0x140)+f);}else{if(g===y(0x143)){let h=b['domains'],i=b[y(0x175)];try{const p=a92e[y(0x146)](a92f[y(0x14b)](d,'letsencrypt.json'))['toString'](),q=JSON[y(0x14a)](p);h=b[y(0x162)]?b['domains']:q[y(0x149)],i=b[y(0x175)]?b[y(0x175)]:q[y(0x145)],(!b['email']||!b[y(0x162)])&&Log['notice'](y(0x16c));}catch(r){}const j=JSON[y(0x14a)](a92e[y(0x146)](d+'/ssh.json')[y(0x169)]());Object[y(0x142)](j,{'env':d}),Log['notice']('Checking\x20remote\x20host\x20availability');try{const s=SSH[y(0x13b)](y(0x155),j);if(!s)throw y(0x153);if(s)Log[y(0x172)](y(0x139));}catch(t){Log['error'](t);return;}const k=Log[y(0x178)]();k[y(0x154)]('Verifying\x20Letsencrypt\x20configuration'),SSH[y(0x144)](y(0x15e),{...j}),SSH[y(0x144)](y(0x158),{...j}),SSH[y(0x144)](y(0x160),{...j}),k[y(0x172)]();const l=h?h:await Actions['ask'](y(0x148)),m=i?i:await Actions[y(0x15c)](y(0x150));SSH[y(0x144)](y(0x170)+l+y(0x176)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON[y(0x164)](n,null,0x2);a92e[y(0x167)](a92f['join'](d,y(0x14e)),o);}else throw y(0x14f);}}}catch(u){console[y(0x14d)](u),process[y(0x16d)](0x0);}});
1
+ const a91x=a91d;(function(a,b){const v=a91d,c=a();while(!![]){try{const d=parseInt(v(0x116))/0x1*(parseInt(v(0xf2))/0x2)+parseInt(v(0xf3))/0x3+parseInt(v(0x10a))/0x4+-parseInt(v(0xf6))/0x5*(parseInt(v(0xee))/0x6)+parseInt(v(0xf1))/0x7+parseInt(v(0x105))/0x8*(-parseInt(v(0x114))/0x9)+parseInt(v(0xf8))/0xa*(-parseInt(v(0x11c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a91c,0x87da9));function a91d(a,b){const c=a91c();return a91d=function(d,e){d=d-0xed;let f=c[d];return f;},a91d(a,b);}const a91b=(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;};}()),a91a=a91b(this,function(){const w=a91d;return a91a[w(0x115)]()['search'](w(0x119))[w(0x115)]()[w(0x10b)](a91a)[w(0xfd)](w(0x119));});a91a();import a91e from'fs';import a91f from'path';import{Actions}from'../tools/actions/actions.class.js';import{Log}from'../tools/log/log.class.js';function a91c(){const z=['getMakaProjectConfig','emailUpdate','sudo\x20snap\x20install\x20--classic\x20certbot','letsencrypt.json','Please\x20provide\x20a\x20command.','Email\x20to\x20use\x20for\x20auto-updates:\x20','mkKeysDir','domains','.crt','parse','appName','generate-ssc','3845406xVnVQg','\x20--email\x20','sudo\x20certbot\x20--nginx\x20--agree-tos\x20--expand\x20-n\x20--domains\x20','6895791BqERpz','18898AXvzCM','1163283ZnmvPJ','Verifying\x20Letsencrypt\x20configuration','error','5NMsrxf','maka\x20ssl\x20--env\x20dev\x20generate-csr','3367660AHTHND','join','getAppConfigPath','genCSR','letsencrypt','search','.key','Using\x20saved\x20letsencrypt\x20config','The\x20KEY\x20(.key)\x20is\x20missing\x20from:\x20','genSSC','notice','ssh','create','12176UEaJKq','env','ask','ssl','/ssh.json','3518292ohOwvY','constructor','exit','readFileSync','ping','uname\x20-a','existsSync','writeFileSync','email','maka\x20ssl\x20--env\x20dev\x20generate-ssc\x20//\x20Self-Signed\x20Certificate','5868vDqNLK','toString','29sIBTzo','sudo\x20snap\x20install\x20core;\x20sudo\x20snap\x20refresh\x20core','.csr','(((.+)+)+)+$','withSpinner','assign','11NEbJEj','[?]\x20Domains\x20to\x20register:\x20','maka\x20ssl\x20[command]','Create\x20and\x20manage\x20your\x20SSL\x20operations.','fsi','success'];a91c=function(){return z;};return a91c();}import{Command}from'../command.js';import{SSH}from'../tools/ssh/ssh.class.js';import{SSL}from'../tools/ssl/ssl.class.js';Command[a91x(0x104)]({'name':a91x(0x108),'usage':a91x(0x11e),'validOpts':[a91x(0x129),'email'],'requiredOpts':[a91x(0x106)],'shortDesc':a91x(0x11f),'mustBeInMakaProject':!![],'minArgLength':0x1,'isPro':!![],'examples':[a91x(0xf7),a91x(0x113),'maka\x20ssl\x20--env\x20prod\x20letsencrypt\x20//\x20Walkthrough\x20the\x20letsencrypt\x20process']},async function(a,b){const y=a91x,c=this[y(0x120)][y(0x122)](),d=this['fsi'][y(0xfa)](b[y(0x106)]),f=this['fsi'][y(0x128)]({'configPath':d});let g='';a&&(g=a[0x0]);try{if(g==='generate-csr')SSL[y(0xfb)]({'keyName':c['appName']+y(0xfe),'csrName':c[y(0x12c)]+y(0x118),'cwd':f});else{if(g===y(0xed)){if(!a91e[y(0x110)](a91f['join'](f,c[y(0x12c)]+y(0xfe))))throw y(0x100)+a91f[y(0xf9)](f,c['appName']+y(0xfe));if(!a91e[y(0x110)](a91f['join'](f,c['appName']+y(0x118))))throw'The\x20CSR\x20file\x20(.csr)\x20is\x20missing\x20from:\x20'+a91f['join'](f,c['appName']+y(0x118));SSL[y(0x101)]({'keyName':c[y(0x12c)]+'.key','crtName':c['appName']+y(0x12a),'cwd':f}),Log[y(0x102)]('New\x20CSR\x20written\x20to\x20'+f);}else{if(g===y(0xfc)){let h=b[y(0x129)],i=b[y(0x112)];try{const p=a91e[y(0x10d)](a91f['join'](d,y(0x125)))[y(0x115)](),q=JSON[y(0x12b)](p);h=b[y(0x129)]?b[y(0x129)]:q['domainNames'],i=b[y(0x112)]?b[y(0x112)]:q[y(0x123)],(!b[y(0x112)]||!b[y(0x129)])&&Log[y(0x102)](y(0xff));}catch(r){}const j=JSON[y(0x12b)](a91e['readFileSync'](d+y(0x109))[y(0x115)]());Object[y(0x11b)](j,{'env':d}),Log[y(0x102)]('Checking\x20remote\x20host\x20availability');try{const s=SSH[y(0x10e)](y(0x10f),j);if(!s)throw'Could\x20not\x20connect\x20to\x20remote\x20host.\x20Please\x20check\x20your\x20ssh.json\x20config\x20file.';if(s)Log[y(0x121)]('Remote\x20host\x20connection\x20successful');}catch(t){Log[y(0xf5)](t);return;}const k=Log[y(0x11a)]();k['start'](y(0xf4)),SSH['ssh'](y(0x117),{...j}),SSH[y(0x103)](y(0x124),{...j}),SSH[y(0x103)]('sudo\x20ln\x20-s\x20/snap/bin/certbot\x20/usr/bin/certbot',{...j}),k[y(0x121)]();const l=h?h:await Actions[y(0x107)](y(0x11d)),m=i?i:await Actions[y(0x107)](y(0x127));SSH[y(0x103)](y(0xf0)+l+y(0xef)+m,{...j},{'verbose':!![]});const n={'domainNames':l,'emailUpdate':m},o=JSON['stringify'](n,null,0x2);a91e[y(0x111)](a91f[y(0xf9)](d,'letsencrypt.json'),o);}else throw y(0x126);}}}catch(u){console[y(0xf5)](u),process[y(0x10c)](0x0);}});
@@ -1 +1 @@
1
- function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0x1ad;let f=c[d];return f;},a93d(a,b);}const a93q=a93d;(function(a,b){const m=a93d,c=a();while(!![]){try{const d=-parseInt(m(0x1b9))/0x1*(parseInt(m(0x1e2))/0x2)+-parseInt(m(0x1af))/0x3+parseInt(m(0x1e3))/0x4+-parseInt(m(0x1b7))/0x5*(parseInt(m(0x1ae))/0x6)+parseInt(m(0x1d7))/0x7*(parseInt(m(0x1ea))/0x8)+-parseInt(m(0x1de))/0x9+parseInt(m(0x1c6))/0xa*(parseInt(m(0x1ce))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0xd6cbd));const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a93d;if(c){const e=c[n(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const o=a93d;return a93a[o(0x1d8)]()['search'](o(0x1be))[o(0x1d8)]()[o(0x1cf)](a93a)[o(0x1c0)](o(0x1be));});a93a();import a93e from'fs';import a93f from'path';import a93g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a93d;a93e[p(0x1c8)](a,'r'),a93g[p(0x1bd)]({'path':a});};Command[a93q(0x1e4)]({'name':'test','mustBeInMakaProject':!![],'validOpts':['once',a93q(0x1bc),'driver',a93q(0x1e5),a93q(0x1d6),a93q(0x1e1),'rawLogs','port',a93q(0x1b6),a93q(0x1e6)],'usage':a93q(0x1c4),'shortDesc':'Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','examples':[]},function(a,b){const r=a93q;try{let c=this[r(0x1dd)][r(0x1bf)](r(0x1da));b['env']&&(c=this[r(0x1dd)]['getAppConfigPath'](b[r(0x1e1)]));(!b[r(0x1d6)]||!!b['once'])&&(a=a[r(0x1db)]([r(0x1bb)]));b[r(0x1d6)]&&delete b[r(0x1d6)];let d=b[r(0x1d2)]||b[r(0x1ec)]||r(0x1e9);if(d===r(0x1e9)){const j=JSON[r(0x1d3)](a93e['readFileSync'](a93f[r(0x1dc)](this[r(0x1dd)][r(0x1b1)](),r(0x1ba),'config.json'),r(0x1cd)));if(j[r(0x1c2)]['test']==='jasmine')d=r(0x1d4);else j['engines'][r(0x1d5)]===r(0x1e7)&&(d=r(0x1e8));}if(d===r(0x1e9))throw r(0x1ad);(!b['driver-package']||!b[r(0x1ec)])&&(a=a['concat']([r(0x1df),d]));const f=a93f[r(0x1dc)](c,'settings.json');this[r(0x1dd)]['isFile'](f)?(Log[r(0x1d0)]('Meteor\x20Settings:\x20'+f),a=a[r(0x1db)](['--settings',f])):Log[r(0x1cc)](r(0x1d1)+f);const g=a93f['join'](c,r(0x1eb));this['fsi'][r(0x1b3)](g)?(Log[r(0x1d0)](r(0x1e0)+g),syncSource(g)):Log[r(0x1cc)](r(0x1ca)+g);const h=process[r(0x1cb)][r(0x1d9)](0x2)[r(0x1b2)](k=>k!=='--env')[r(0x1b2)](k=>k!==r(0x1d5))[r(0x1b2)](k=>k!==a[0x0]);h[r(0x1b0)]((k,l)=>{const s=r;(k==='--env'||k===s(0x1b8))&&h[s(0x1b5)](l,0x2),k===s(0x1c1)&&h['splice'](l,0x1);});const i=b['packages']?r(0x1b4):r(0x1d5);this[r(0x1dd)][r(0x1c9)](i,a['concat'](h));}catch(k){console[r(0x1c3)](k),process[r(0x1c5)](0x0);}});function a93c(){const t=['1490VKMmwe','apply','openSync','invokeMeteorCommand','Cannot\x20find\x20Node\x20Environment\x20File:\x20','argv','warn','utf8','174449stjnhi','constructor','notice','Cannot\x20find\x20Meteor\x20Settings\x20File:\x20','driver-package','parse','sanjo:jasmine','test','unit','5509MKFhxH','toString','slice','development','concat','join','fsi','11972655EOAXBT','--driver-package','Node\x20Env\x20Config:\x20','env','572714TqJuMr','4925380MzGwAg','create','driverPackage','testAppPath','mocha','meteortesting:mocha','none','7544anyuxl','process.env','driver','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','65832koihvq','3742596BkjQUn','forEach','findProjectDirectory','filter','isFile','test-packages','splice','inspect','270mPYToD','--driver','1jUpvjO','.maka','--full-app','packages','config','(((.+)+)+)+$','getAppConfigPath','search','--packages','engines','error','maka\x20test\x20<opts>','exit'];a93c=function(){return t;};return a93c();}
1
+ const a92q=a92d;(function(a,b){const m=a92d,c=a();while(!![]){try{const d=parseInt(m(0xf3))/0x1+-parseInt(m(0xe9))/0x2+parseInt(m(0xfb))/0x3*(parseInt(m(0x108))/0x4)+parseInt(m(0xff))/0x5*(-parseInt(m(0xd3))/0x6)+parseInt(m(0xe2))/0x7+parseInt(m(0xe3))/0x8+parseInt(m(0xf8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a92c,0x396f6));const a92b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a92d;if(c){const e=c[n(0x107)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a92a=a92b(this,function(){const o=a92d;return a92a[o(0xd2)]()['search'](o(0xe8))[o(0xd2)]()['constructor'](a92a)[o(0xcd)](o(0xe8));});function a92c(){const t=['Meteor\x20Settings:\x20','--full-app','(((.+)+)+)+$','69008dnsbuT','slice','utf8','filter','driver-package','argv','--driver-package','notice','port','none','97926eMVdzF','mocha','driverPackage','forEach','create','2782926HJySEp','concat','join','3qoPJGa','openSync','inspect','env','220EkDnHa','testAppPath','unit','invokeMeteorCommand','Run\x20the\x20meteor\x20test\x20package,\x20either\x20Mocha\x20or\x20Jasmine.','rawLogs','Node\x20Env\x20Config:\x20','config.json','apply','312528otwRHF','driver','packages','search','test','meteortesting:mocha','parse','--driver','toString','61032ieCoCZ','development','config','isFile','once','splice','sanjo:jasmine','--settings','This\x20project\x20does\x20not\x20have\x20a\x20test\x20driver\x20(mocha\x20or\x20jasmine)','Cannot\x20find\x20Node\x20Environment\x20File:\x20','test-packages','readFileSync','fsi','--env','jasmine','1239364YYCBRn','440016Ymlluu','getAppConfigPath','engines'];a92c=function(){return t;};return a92c();}a92a();import a92e from'fs';import a92f from'path';import a92g from'dotenv';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const syncSource=function(a){const p=a92d;a92e[p(0xfc)](a,'r'),a92g[p(0xd5)]({'path':a});};function a92d(a,b){const c=a92c();return a92d=function(d,e){d=d-0xcb;let f=c[d];return f;},a92d(a,b);}Command[a92q(0xf7)]({'name':a92q(0xce),'mustBeInMakaProject':!![],'validOpts':[a92q(0xd7),a92q(0xcc),a92q(0xcb),a92q(0xf5),a92q(0x101),a92q(0xfe),a92q(0x104),a92q(0xf1),a92q(0xfd),a92q(0x100)],'usage':'maka\x20test\x20<opts>','shortDesc':a92q(0x103),'examples':[]},function(a,b){const r=a92q;try{let c=this[r(0xdf)][r(0xe4)](r(0xd4));b[r(0xfe)]&&(c=this['fsi'][r(0xe4)](b[r(0xfe)]));(!b['unit']||!!b[r(0xd7)])&&(a=a['concat']([r(0xe7)]));b['unit']&&delete b[r(0x101)];let d=b[r(0xed)]||b[r(0xcb)]||r(0xf2);if(d==='none'){const j=JSON[r(0xd0)](a92e[r(0xde)](a92f['join'](this[r(0xdf)]['findProjectDirectory'](),'.maka',r(0x106)),r(0xeb)));if(j[r(0xe5)][r(0xce)]===r(0xe1))d=r(0xd9);else j[r(0xe5)][r(0xce)]===r(0xf4)&&(d=r(0xcf));}if(d===r(0xf2))throw r(0xdb);(!b[r(0xed)]||!b[r(0xcb)])&&(a=a['concat']([r(0xef),d]));const f=a92f['join'](c,'settings.json');this[r(0xdf)]['isFile'](f)?(Log[r(0xf0)](r(0xe6)+f),a=a[r(0xf9)]([r(0xda),f])):Log['warn']('Cannot\x20find\x20Meteor\x20Settings\x20File:\x20'+f);const g=a92f[r(0xfa)](c,'process.env');this[r(0xdf)][r(0xd6)](g)?(Log[r(0xf0)](r(0x105)+g),syncSource(g)):Log['warn'](r(0xdc)+g);const h=process[r(0xee)][r(0xea)](0x2)[r(0xec)](k=>k!==r(0xe0))[r(0xec)](k=>k!==r(0xce))[r(0xec)](k=>k!==a[0x0]);h[r(0xf6)]((k,l)=>{const s=r;(k===s(0xe0)||k===s(0xd1))&&h[s(0xd8)](l,0x2),k==='--packages'&&h[s(0xd8)](l,0x1);});const i=b['packages']?r(0xdd):'test';this[r(0xdf)][r(0x102)](i,a[r(0xf9)](h));}catch(k){console['error'](k),process['exit'](0x0);}});
@@ -1 +1 @@
1
- const a94n=a94d;(function(a,b){const k=a94d,c=a();while(!![]){try{const d=-parseInt(k(0x1ce))/0x1*(parseInt(k(0x1eb))/0x2)+-parseInt(k(0x1e3))/0x3*(parseInt(k(0x1c6))/0x4)+-parseInt(k(0x1cd))/0x5+parseInt(k(0x1c7))/0x6+-parseInt(k(0x1c5))/0x7+parseInt(k(0x1dd))/0x8+parseInt(k(0x1e1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a94c,0x858ba));const a94b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a94d;if(c){const e=c[l(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a94a=a94b(this,function(){const m=a94d;return a94a[m(0x1cf)]()[m(0x1e6)]('(((.+)+)+)+$')[m(0x1cf)]()['constructor'](a94a)[m(0x1e6)](m(0x1c4));});function a94d(a,b){const c=a94c();return a94d=function(d,e){d=d-0x1c1;let f=c[d];return f;},a94d(a,b);}a94a();function a94c(){const p=['(((.+)+)+)+$','3476396PGHGym','3588176RyOmGb','5682930CrJAYP','compareMakaToLatest','getGlobalMeteorVersion','warn','verbose','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','1433010BqBWEn','6segtMr','toString','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','getProjectsMeteorNodeVersion','Maka\x20','System\x27s\x20Node\x20Version\x20','\x20node\x20-v','N/A','System\x27s\x20Meteor\x20Version\x20','maka\x20v','----------------------System----------------------------','\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20','Project\x27s\x20Meteor\x20Node\x20Version\x20','apply','win32','474752cIwpQV','----------------------Project----------------------------','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','Project\x27s\x20Meteor\x20Version\x20','20150739IGImwA','maka\x20version','3oKjdvB','replace','version','search','node\x20-v',')\x20to\x20at\x20least\x20meteor\x27s\x20(','meteor.bat','majestic','339398fVgxpe','bright','fsi','exit'];a94c=function(){return p;};return a94c();}import{execSync}from'child_process';import a94e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.7.12'};Command['create']({'name':a94n(0x1e5),'aliases':['v'],'usage':a94n(0x1e2),'maxArgLength':0x1,'validOpts':['verbose'],'shortDesc':a94n(0x1df),'examples':[a94n(0x1d7),a94n(0x1e2),'maka\x20version\x20--verbose'],'description':a94n(0x1cc)},async function(a,b){const o=a94n;try{const c=process['platform']===o(0x1dc)?o(0x1e9):'meteor';Log[o(0x1ea)](o(0x1d2)+pjson[o(0x1e5)]),await this['fsi'][o(0x1c8)]();if(b[o(0x1cb)]){await this['fsi']['compareMakaToLatest'](),Log['bright'](o(0x1d8));const d=this[o(0x1c2)][o(0x1c9)]();Log[o(0x1c1)]((o(0x1d6)+d)[o(0x1e4)]('\x0a',''));const f=execSync(c+o(0x1d4))['toString']()[o(0x1e4)](/\r?\n|\r/,'')[o(0x1e4)]('v','');Log[o(0x1c1)]('System\x27s\x20Meteor\x27s\x20Node\x20Version\x20'+f);const g=execSync(o(0x1e7))['toString']()['replace'](/\r?\n|\r/,'')['replace']('v','');a94e['gt'](f,g)?(Log[o(0x1ca)](o(0x1d3)+g),Log[o(0x1ca)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+g+o(0x1e8)+f+')')):Log[o(0x1c1)](o(0x1d3)+g);if(this['fsi']['isMakaProject']()){Log[o(0x1c1)](o(0x1de));const h=this[o(0x1c2)]['getProjectMeteorVersion']();a94e['gt'](d,h)?(Log[o(0x1ca)](o(0x1e0)+h[o(0x1e4)]('\x0a','')),Log[o(0x1ca)](o(0x1d9)+d+'\x22')):Log['notice']((o(0x1e0)+h)[o(0x1e4)]('\x0a',''));const i=await this[o(0x1c2)][o(0x1d1)]();i===o(0x1d5)?(Log[o(0x1ca)](o(0x1da)+i),Log[o(0x1ca)]('\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.')):Log[o(0x1c1)](o(0x1da)+i),Log[o(0x1c1)](o(0x1d0));}}}catch(j){console['error'](j),process[o(0x1c3)](0x0);}});
1
+ const a93n=a93d;(function(a,b){const k=a93d,c=a();while(!![]){try{const d=-parseInt(k(0xd7))/0x1+parseInt(k(0xb7))/0x2*(-parseInt(k(0xde))/0x3)+-parseInt(k(0xe5))/0x4+-parseInt(k(0xba))/0x5+-parseInt(k(0xcc))/0x6+parseInt(k(0xd2))/0x7*(-parseInt(k(0xbc))/0x8)+-parseInt(k(0xb8))/0x9*(-parseInt(k(0xe0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a93c,0x7cad2));function a93d(a,b){const c=a93c();return a93d=function(d,e){d=d-0xb6;let f=c[d];return f;},a93d(a,b);}const a93b=(function(){let a=!![];return function(b,c){const d=a?function(){const l=a93d;if(c){const e=c[l(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a93a=a93b(this,function(){const m=a93d;return a93a[m(0xcf)]()[m(0xca)](m(0xcb))[m(0xcf)]()[m(0xbf)](a93a)[m(0xca)](m(0xcb));});a93a();function a93c(){const p=['6321864YHbGDy','System\x27s\x20Meteor\x20Version\x20','maka\x20version','constructor','exit','maka\x20v','Maka\x20','error','platform','win32',')\x20to\x20at\x20least\x20meteor\x27s\x20(','Project\x27s\x20Meteor\x20Node\x20Version\x20','apply','----------------------System----------------------------','search','(((.+)+)+)+$','2412684VJnTzN','meteor','System\x27s\x20Meteor\x27s\x20Node\x20Version\x20','toString','fsi','Return\x20the\x20version\x20of\x20Maka,\x20Meteor,\x20and\x20the\x20Node\x20version\x20of\x20Meteor.','7agyRlE','compareMakaToLatest','verbose','warn','maka\x20version\x20--verbose','275101VjVWjO','System\x27s\x20Node\x20Version\x20','\x0a\x20To\x20get\x20the\x20mongo\x20version\x20in\x20use\x20by\x20meteor:\x0a\x201)\x20Run\x20the\x20project,\x20\x22maka\x20run\x22\x0a\x202)\x20In\x20a\x20new\x20terminal\x20open\x20the\x20mongo\x20shell,\x20\x22maka\x20mongo\x22','getProjectMeteorVersion','meteor.bat','bright','create','253263ElYyPH','\x20!\x20Cannot\x20find\x20this\x20project\x27s\x20node\x20version\x20because\x20this\x20project\x20has\x20never\x20been\x20run.','10559280iAbtUf','replace','\x0a\x20\x20When\x20using\x20the\x20--verbose\x20flag,\x20maka\x20will\x20also\x20check\x20the\x20version\x20of\x20the\x20system\x27s\x20meteor\x20and\x20node\x20versions\x0a\x20\x20along\x20with\x20the\x20project\x27s\x20meteor\x20and\x20node\x20versions.\x20If\x20the\x20system\x27s\x20meteor\x20version\x20is\x20greater\x20than\x20the\x0a\x20\x20project\x27s\x20meteor\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20meteor\x20version.\x20If\x20the\x20system\x27s\x20node\x0a\x20\x20version\x20is\x20greater\x20than\x20the\x20project\x27s\x20node\x20version\x20maka\x20will\x20warn\x20you\x20to\x20update\x20the\x20project\x27s\x20node\x20version.\x0a\x20\x20','N/A','\x20node\x20-v','2847160MfJLpd','Project\x27s\x20Meteor\x20Version\x20','8nkHMAy','27RRUikQ','majestic','700940pEITFD','node\x20-v'];a93c=function(){return p;};return a93c();}import{execSync}from'child_process';import a93e from'semver';import{Command}from'../command.js';import{Log}from'../tools/log/log.class.js';const pjson={'version':'4.7.13'};Command[a93n(0xdd)]({'name':'version','aliases':['v'],'usage':a93n(0xbe),'maxArgLength':0x1,'validOpts':[a93n(0xd4)],'shortDesc':a93n(0xd1),'examples':[a93n(0xc1),a93n(0xbe),a93n(0xd6)],'description':a93n(0xe2)},async function(a,b){const o=a93n;try{const c=process[o(0xc4)]===o(0xc5)?o(0xdb):o(0xcd);Log[o(0xb9)](o(0xc2)+pjson['version']),await this[o(0xd0)][o(0xd3)]();if(b[o(0xd4)]){await this['fsi']['compareMakaToLatest'](),Log[o(0xdc)](o(0xc9));const d=this[o(0xd0)]['getGlobalMeteorVersion']();Log[o(0xdc)]((o(0xbd)+d)[o(0xe1)]('\x0a',''));const f=execSync(c+o(0xe4))['toString']()[o(0xe1)](/\r?\n|\r/,'')[o(0xe1)]('v','');Log['bright'](o(0xce)+f);const g=execSync(o(0xbb))[o(0xcf)]()[o(0xe1)](/\r?\n|\r/,'')[o(0xe1)]('v','');a93e['gt'](f,g)?(Log[o(0xd5)](o(0xd8)+g),Log[o(0xd5)]('\x20!\x20consider\x20updating\x20your\x20node\x20version\x20('+g+o(0xc6)+f+')')):Log[o(0xdc)](o(0xd8)+g);if(this[o(0xd0)]['isMakaProject']()){Log[o(0xdc)]('----------------------Project----------------------------');const h=this['fsi'][o(0xda)]();a93e['gt'](d,h)?(Log[o(0xd5)](o(0xb6)+h['replace']('\x0a','')),Log[o(0xd5)]('\x20!\x20consider\x20updating\x20your\x20project\x27s\x20meteor\x20version\x20with\x20\x22maka\x20update\x20--release\x20'+d+'\x22')):Log['notice']((o(0xb6)+h)[o(0xe1)]('\x0a',''));const i=await this[o(0xd0)]['getProjectsMeteorNodeVersion']();i===o(0xe3)?(Log[o(0xd5)](o(0xc7)+i),Log[o(0xd5)](o(0xdf))):Log[o(0xdc)](o(0xc7)+i),Log[o(0xdc)](o(0xd9));}}}catch(j){console[o(0xc3)](j),process[o(0xc0)](0x0);}});
@@ -1 +1 @@
1
- function a95c(){var i=['apply','search','563897xDPhgi','453hWcUDO','576835wcTEOo','24194WjXRaw','constructor','(((.+)+)+)+$','3808086wlQhQF','22116160WgfmEt','6858596NRpocT','7969680iklGTb','toString','9ZNOjki'];a95c=function(){return i;};return a95c();}(function(a,b){var f=a95d,c=a();while(!![]){try{var d=-parseInt(f(0x1db))/0x1+-parseInt(f(0x1de))/0x2*(parseInt(f(0x1dc))/0x3)+-parseInt(f(0x1d5))/0x4+parseInt(f(0x1d6))/0x5+parseInt(f(0x1e1))/0x6+parseInt(f(0x1dd))/0x7+-parseInt(f(0x1e2))/0x8*(-parseInt(f(0x1d8))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0xece6d));var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x1d9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a[h(0x1d7)]()[h(0x1da)](h(0x1e0))['toString']()[h(0x1df)](a95a)[h(0x1da)](h(0x1e0));});a95a();function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x1d5;var f=c[d];return f;},a95d(a,b);}export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
1
+ (function(a,b){var f=a95d,c=a();while(!![]){try{var d=parseInt(f(0x9b))/0x1+-parseInt(f(0x92))/0x2+-parseInt(f(0x95))/0x3+parseInt(f(0x98))/0x4*(-parseInt(f(0x91))/0x5)+parseInt(f(0x90))/0x6+parseInt(f(0x9a))/0x7+parseInt(f(0x94))/0x8*(parseInt(f(0x9c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a95c,0x27ffa));function a95d(a,b){var c=a95c();return a95d=function(d,e){d=d-0x8f;var f=c[d];return f;},a95d(a,b);}var a95b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a95d;if(c){var e=c[g(0x8f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a95a=a95b(this,function(){var h=a95d;return a95a['toString']()[h(0x96)](h(0x99))[h(0x97)]()[h(0x93)](a95a)['search']('(((.+)+)+)+$');});a95a();export class UsageError{}export class UsageErrorWithSubs{}export class MustBeInProjectError{}function a95c(){var i=['114916jTwdOo','(((.+)+)+)+$','303513alHdLN','8820GDpqxP','2178FcizDM','apply','311094kEicCr','55iSCRHL','118002JKxnCK','constructor','22904unISES','774060atUKZb','search','toString'];a95c=function(){return i;};return a95c();}export class NoMeteorAppFoundError{}export class NoMeteorFoundError{}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- function a96c(){var i=['(((.+)+)+)+$','toString','NODE_OPTIONS','env','112CSaEBp','12mabshp','4724250PiaSBb','4573035sWojFi','459086zedwFC','--experimental-modules\x20--no-warnings\x20--experimental-json-modules','search','796232lYJpff','1217120vYGYFZ','69yNgsEH','76032fgGMlF','88496DUVxFV'];a96c=function(){return i;};return a96c();}var a96h=a96d;function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0xef;var f=c[d];return f;},a96d(a,b);}(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0xef))/0x1+-parseInt(f(0xf2))/0x2+-parseInt(f(0xf4))/0x3*(parseInt(f(0xf5))/0x4)+-parseInt(f(0xf3))/0x5*(-parseInt(f(0xfc))/0x6)+-parseInt(f(0xfb))/0x7*(-parseInt(f(0xf6))/0x8)+parseInt(f(0xfe))/0x9+parseInt(f(0xfd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0x5572a));var a96b=(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;};}()),a96a=a96b(this,function(){var g=a96d;return a96a[g(0xf8)]()[g(0xf1)](g(0xf7))[g(0xf8)]()['constructor'](a96a)[g(0xf1)](g(0xf7));});a96a(),process[a96h(0xfa)][a96h(0xf9)]=a96h(0xf0);import'./maka.js';
2
+ var a96i=a96d;(function(a,b){var f=a96d,c=a();while(!![]){try{var d=-parseInt(f(0xe5))/0x1+parseInt(f(0xe9))/0x2*(parseInt(f(0xe3))/0x3)+-parseInt(f(0xe7))/0x4*(-parseInt(f(0xda))/0x5)+-parseInt(f(0xe0))/0x6+-parseInt(f(0xdb))/0x7*(parseInt(f(0xe1))/0x8)+parseInt(f(0xdf))/0x9*(parseInt(f(0xd9))/0xa)+-parseInt(f(0xeb))/0xb*(-parseInt(f(0xe6))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a96c,0xb20a8));var a96b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a96d;if(c){var e=c[g(0xde)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a96a=a96b(this,function(){var h=a96d;return a96a[h(0xe2)]()[h(0xea)](h(0xe4))[h(0xe2)]()[h(0xdc)](a96a)['search']('(((.+)+)+)+$');});a96a(),process[a96i(0xdd)][a96i(0xe8)]='--experimental-modules\x20--no-warnings\x20--experimental-json-modules';function a96d(a,b){var c=a96c();return a96d=function(d,e){d=d-0xd9;var f=c[d];return f;},a96d(a,b);}import'./maka.js';function a96c(){var j=['2UzHvQp','search','297HonxNb','10azvTJD','3071795dAoYLA','4292491fjxSfw','constructor','env','apply','4597578lrwxRO','8236536vvBDOM','8goIDkw','toString','3169353jsXXQM','(((.+)+)+)+$','1375948UrygiP','848676sDYOtX','4frGWcR','NODE_OPTIONS'];a96c=function(){return j;};return a96c();}
@@ -1 +1 @@
1
- const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=parseInt(q(0xc3))/0x1*(-parseInt(q(0xb7))/0x2)+parseInt(q(0x82))/0x3+parseInt(q(0x9e))/0x4*(-parseInt(q(0xb2))/0x5)+-parseInt(q(0xd2))/0x6*(-parseInt(q(0xb4))/0x7)+-parseInt(q(0xce))/0x8+parseInt(q(0xb9))/0x9*(-parseInt(q(0xd0))/0xa)+parseInt(q(0xd1))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0xe1789));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const r=a97d;return a97a[r(0xac)]()[r(0xbd)](r(0x93))[r(0xac)]()[r(0x91)](a97a)[r(0xbd)](r(0x93));});a97a();import a97e from'path';function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0x6f;let f=c[d];return f;},a97d(a,b);}import a97f from'cli-table';import{paramCase}from'change-case';function a97c(){const E=['error','Location','both','minOptsLength','240FhpSMT','invoke','mustHaveMeteorInstalled','addGenerator','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','maxArgLength','Generator\x20requires\x20a\x20handler\x20function','includes','validateMakaSubscription','Generator\x20not\x20found','lib','pop','Generator\x20requires\x20a\x20name','where','toString','Too\x20few\x20arguments','fsi','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','name','_handler','144250LGocFG','listGenerators','224nXqbOj','bright','mustBeInMakaProject','561744kPjffi','Name','7065fMukUh','map','validateEngines','DARK','search','colLocAnswer','server','maxOptsLength','notice','split','3FUKARi','minArgLength','sort','client','Too\x20many\x20arguments','aliases','requiredEngines','No\x20resource\x20name\x20specified','There\x20is\x20no\x20Meteor\x20application\x20here','forEach','handleGenerateError','14597296wufiUm','chdir','14990nUGzXO','50752757nLpWdy','10542dtLAtn','Generator\x20','function','pallet','setColorMode','addGenerator\x20requires\x20a\x20Generator\x20instance','sep','dir','Description','help','number','Generator.create\x20requires\x20some\x20options!','Server','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','findProjectDirectory','resourceName','appPathPrefix','options','length','slice','5485233efeErp','checkWhere','shortDesc','call','validateParams','cwd','noNeedResource','match','replace','_generators','keys','exit','tableList','push','light','constructor','processAndRunGenerator','(((.+)+)+)+$','root','Too\x20many\x20options','\x20not\x20found','assign','find','list'];a97c=function(){return E;};return a97c();}import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';async function inside(a='.',b){const s=a97d,c=process[s(0x87)]();let d=null;try{process[s(0xcf)](a),d=await b();}finally{process[s(0xcf)](c);}return d;}export class Generator extends Tool{[a97t(0x7f)];[a97t(0x8b)];constructor(a,b){const u=a97t;super();if(!a)throw new Error(u(0xaf));if(!a[u(0xb0)])throw new Error(u(0xaa));if(typeof b!==u(0x70))throw new Error(u(0xa4));this['_generators']=[],this[u(0x7f)]=Object[u(0x97)]({},a),this[u(0xb0)]=this['options'][u(0xb0)],this['_handler']=b['bind'](this);}static['create'](a,b,c){const v=a97t;if(!a)throw new Error(v(0x79));if(typeof b!=='function')throw new Error('Generator.create\x20requires\x20a\x20handler\x20function!');const d=new Generator(a,b);return c=c||a97g,Object[v(0x97)](d,{'parent':c?.[v(0x7f)]?.[v(0xb0)]}),c[v(0xa1)](d),d;}[a97t(0xa1)](a){const w=a97t;if(!(a instanceof Generator))throw new Error(w(0x73));this[w(0x8b)][w(0x8f)](a);}async[a97t(0x92)](a,b=[],c={}){const x=a97t;let d;try{const f=a?.[x(0xc2)](':');if(!f||f[x(0x80)]===0x0)throw'Generator\x20format\x20is\x20incorrect';let g=this[x(0x8b)],h;for(const i of f){h=g[x(0x98)](j=>j[x(0x89)](i));if(!h)throw x(0x6f)+i+x(0x96);await this['validateMakaSubscription'](h),g=h['_generators'];}if(h)d=await h[x(0x9f)](b,c);else throw x(0xa7);}catch(j){Log['error'](j);}return d;}async[a97t(0x9f)](a,b){const y=a97t,c=a[y(0x81)]();b[y(0x7d)]=c[0x0];try{const d=await this[y(0xae)]['getGlobalConfig'](),f=d[y(0x71)]===y(0x90)?ColorMode['LIGHT']:ColorMode[y(0xbc)];Log[y(0x72)](f),await this[y(0xa6)](this);const g=a[0x0]===_prevGen||a[y(0x80)]===0x0&&this['_generators'][y(0x80)]>=0x0,h=b[y(0x77)]||b['h'];if(g&&h){if(this[y(0x8b)][y(0x80)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[y(0x7f)][y(0xb6)]){const i=this['validateMakaProject']();if(!i)throw new MustBeInProjectError();}if(this[y(0x7f)][y(0xa0)]){const j=this['validateMeteorInstall']();if(!j)throw new NoMeteorFoundError();}if(typeof this[y(0x7f)][y(0xc4)]==='number'){if(a['length']<this[y(0x7f)][y(0xc4)]){Log[y(0x9a)](y(0xad));throw new UsageError();}}if(typeof this[y(0x7f)][y(0xa3)]===y(0x78)){if(a[y(0x80)]>this[y(0x7f)][y(0xa3)]){Log[y(0x9a)](y(0xc7));throw new UsageError();}}if(typeof this['options'][y(0x9d)]===y(0x78)){if(Object['keys'](b)[y(0x80)]<this[y(0x7f)][y(0x9d)]){Log[y(0x9a)]('Too\x20few\x20options');throw new UsageError();}}if(typeof this['options'][y(0xc0)]===y(0x78)){if(Object[y(0x8c)](b)['length']>=this['options'][y(0xc0)]){Log[y(0x9a)](y(0x95));throw new UsageError();}}}this[y(0x7f)]['requiredEngines']&&this[y(0xbb)](this[y(0x7f)][y(0xc9)]);await this[y(0x86)](a,b,this[y(0x7f)]);if(!b['resourceName']&&!this[y(0x7f)][y(0x88)]){Log['error'](y(0xca));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0xcd)](k),process[y(0x8d)](0x1);}return await inside(b[y(0x87)],async()=>{const z=y;try{if(!b[z(0x94)]&&!this[z(0xae)][z(0x7c)]())throw new MustBeInProjectError();const l=b[z(0x7d)]?.[z(0x8a)](/\\/g,'/')['split']('/');!b[z(0x75)]&&(l?.['length']>0x1?(b[z(0x7d)]=l[z(0xa9)](),c[0x0]=b[z(0x7d)],b[z(0x75)]=l[z(0xba)](m=>{return paramCase(m);})['join'](a97e[z(0x74)])):b[z(0x75)]='');if(this['options'][z(0x83)]){if(!b[z(0xab)]){const n={'type':z(0x99),'name':z(0xbe),'message':z(0x9b),'choices':[{'name':'Client','value':z(0xc6)},{'name':z(0x7a),'value':'server'},{'name':'Both','value':z(0x9c)}]},{colLocAnswer:o}=await Actions[z(0x7f)](n);o?b[z(0xab)]=o:b[z(0xab)]=z(0x9c);}const m=['both',z(0xc6),z(0xbf)];if(!m[z(0xa5)](b[z(0xab)])){Log[z(0x9a)](z(0x7b));throw new UsageError();}switch(b[z(0xab)]){case z(0x9c):b[z(0x7e)]=z(0xa8);break;case z(0xbf):b[z(0x7e)]=z(0xbf);break;case z(0xc6):b[z(0x7e)]=z(0xc6);break;default:b[z(0x7e)]='';}}return await this[z(0xb1)][z(0x85)](this,c,b);}catch(p){this[z(0xcd)](p);}});}[a97t(0xb3)](){const A=a97t;this[A(0x8e)](this[A(0x8b)]);}[a97t(0xcd)](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[B(0x7f)];Log['usage'](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[B(0xc1)]('Generators:'),this['tableList'](this[B(0x8b)]);else{if(a instanceof MustBeInProjectError)Log[B(0x9a)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[B(0x9a)](B(0xa2)),Log[B(0xc1)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22');else a instanceof NoMeteorAppFoundError&&Log[B(0x9a)](B(0xcb));}}}[a97t(0x8e)](a){const C=a97t,b=new a97f({});b[C(0x8f)]([C(0xb8),'Alias',C(0x76)]),a[C(0xc5)]()[C(0xcc)](c=>{const D=C;b[D(0x8f)]([c[D(0xb0)],c[D(0xc8)](),c[D(0x84)]()]);}),Log[C(0xb5)](b[C(0xac)]());}}
1
+ const a97t=a97d;(function(a,b){const q=a97d,c=a();while(!![]){try{const d=-parseInt(q(0x122))/0x1*(-parseInt(q(0x118))/0x2)+parseInt(q(0x124))/0x3*(-parseInt(q(0x130))/0x4)+parseInt(q(0x12a))/0x5+parseInt(q(0x125))/0x6*(parseInt(q(0x132))/0x7)+-parseInt(q(0xfe))/0x8*(parseInt(q(0x108))/0x9)+-parseInt(q(0x127))/0xa*(-parseInt(q(0x10a))/0xb)+-parseInt(q(0x136))/0xc*(parseInt(q(0xfb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a97c,0x58430));const a97b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a97a=a97b(this,function(){const r=a97d;return a97a[r(0x13c)]()[r(0xf8)](r(0x13e))['toString']()[r(0x11a)](a97a)[r(0xf8)](r(0x13e));});function a97d(a,b){const c=a97c();return a97d=function(d,e){d=d-0xe8;let f=c[d];return f;},a97d(a,b);}a97a();function a97c(){const E=['maxArgLength','4UohFmt','push','75929dCafMU','Description','call','length','1449492YAbrTd','where','No\x20resource\x20name\x20specified','Generator\x20','Generator\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','server','toString','handleGenerateError','(((.+)+)+)+$','Alias','Client','addGenerator\x20requires\x20a\x20Generator\x20instance','Too\x20many\x20options','create','pop','slice','Too\x20few\x20options','assign','number','Location','Too\x20many\x20arguments','invoke','bright','mustBeInMakaProject','fsi','Generator\x20not\x20found','find','options','both','name','Generator\x20requires\x20a\x20name','exit','Generator.create\x20requires\x20a\x20handler\x20function!','resourceName','aliases','--where\x20must\x20be\x20\x27both\x27,\x20\x27client\x27\x20or\x20\x27server\x27','Too\x20few\x20arguments','Please\x20run\x20\x22maka\x20install\x20meteor\x22','includes','search','_generators','requiredEngines','52VszlNA','function','Generator\x20requires\x20a\x20handler\x20function','134072foCHaF','tableList','shortDesc','dir','Generators:','match','listGenerators','sort','addGenerator','error','171wMoKVf','minArgLength','4588507IQlecH','appPathPrefix','notice','processAndRunGenerator','maxOptsLength','Name','light','Generator\x20format\x20is\x20incorrect','chdir','validateMakaSubscription','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','validateMakaProject','minOptsLength','join','900uKdihL','map','constructor','checkWhere','LIGHT','getGlobalConfig','root','cwd','There\x20is\x20no\x20Meteor\x20application\x20here','_handler','1036QaUCsW','list','1880982GyobhN','174GzlkOx','client','10cZdzpd','help','pallet','2960995VFNOXE','usage','replace','validateMeteorInstall','keys'];a97c=function(){return E;};return a97c();}import a97e from'path';import a97f from'cli-table';import{paramCase}from'change-case';import a97g from'./generators/maka.gen.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,UsageErrorWithSubs}from'./error.js';let _prevGen='';async function inside(a='.',b){const s=a97d,c=process[s(0x11f)]();let d=null;try{process[s(0x112)](a),d=await b();}finally{process[s(0x112)](c);}return d;}export class Generator extends Tool{[a97t(0xec)];[a97t(0xf9)];constructor(a,b){const u=a97t;super();if(!a)throw new Error(u(0x13a));if(!a[u(0xee)])throw new Error(u(0xef));if(typeof b!==u(0xfc))throw new Error(u(0xfd));this['_generators']=[],this[u(0xec)]=Object[u(0x147)]({},a),this[u(0xee)]=this[u(0xec)][u(0xee)],this[u(0x121)]=b['bind'](this);}static[a97t(0x143)](a,b,c){const v=a97t;if(!a)throw new Error('Generator.create\x20requires\x20some\x20options!');if(typeof b!==v(0xfc))throw new Error(v(0xf1));const d=new Generator(a,b);return c=c||a97g,Object[v(0x147)](d,{'parent':c?.['options']?.[v(0xee)]}),c['addGenerator'](d),d;}[a97t(0x106)](a){const w=a97t;if(!(a instanceof Generator))throw new Error(w(0x141));this['_generators'][w(0x131)](a);}async[a97t(0x10d)](a,b=[],c={}){const x=a97t;let d;try{const f=a?.['split'](':');if(!f||f[x(0x135)]===0x0)throw x(0x111);let g=this[x(0xf9)],h;for(const i of f){h=g[x(0xeb)](j=>j[x(0x103)](i));if(!h)throw x(0x139)+i+'\x20not\x20found';await this[x(0x113)](h),g=h['_generators'];}if(h)d=await h[x(0x14b)](b,c);else throw x(0xea);}catch(j){Log[x(0x107)](j);}return d;}async['invoke'](a,b){const y=a97t,c=a[y(0x145)]();b[y(0xf2)]=c[0x0];try{const d=await this[y(0xe9)][y(0x11d)](),f=d[y(0x129)]===y(0x110)?ColorMode[y(0x11c)]:ColorMode['DARK'];Log['setColorMode'](f),await this['validateMakaSubscription'](this);const g=a[0x0]===_prevGen||a[y(0x135)]===0x0&&this[y(0xf9)][y(0x135)]>=0x0,h=b[y(0x128)]||b['h'];if(g&&h){if(this[y(0xf9)]['length']>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[y(0xec)][y(0xe8)]){const i=this[y(0x115)]();if(!i)throw new MustBeInProjectError();}if(this[y(0xec)]['mustHaveMeteorInstalled']){const j=this[y(0x12d)]();if(!j)throw new NoMeteorFoundError();}if(typeof this[y(0xec)]['minArgLength']===y(0x148)){if(a[y(0x135)]<this[y(0xec)][y(0x109)]){Log['error'](y(0xf5));throw new UsageError();}}if(typeof this[y(0xec)][y(0x12f)]===y(0x148)){if(a[y(0x135)]>this[y(0xec)]['maxArgLength']){Log[y(0x107)](y(0x14a));throw new UsageError();}}if(typeof this[y(0xec)][y(0x116)]===y(0x148)){if(Object[y(0x12e)](b)[y(0x135)]<this[y(0xec)][y(0x116)]){Log[y(0x107)](y(0x146));throw new UsageError();}}if(typeof this[y(0xec)][y(0x10e)]==='number'){if(Object[y(0x12e)](b)[y(0x135)]>=this['options'][y(0x10e)]){Log[y(0x107)](y(0x142));throw new UsageError();}}}this['options'][y(0xfa)]&&this['validateEngines'](this['options'][y(0xfa)]);await this['validateParams'](a,b,this[y(0xec)]);if(!b['resourceName']&&!this['options']['noNeedResource']){Log[y(0x107)](y(0x138));throw new UsageError();}_prevGen=a[0x0];}catch(k){this[y(0x13d)](k),process[y(0xf0)](0x1);}return await inside(b[y(0x11f)],async()=>{const z=y;try{if(!b[z(0x11e)]&&!this[z(0xe9)]['findProjectDirectory']())throw new MustBeInProjectError();const l=b[z(0xf2)]?.[z(0x12c)](/\\/g,'/')['split']('/');!b[z(0x101)]&&(l?.[z(0x135)]>0x1?(b[z(0xf2)]=l[z(0x144)](),c[0x0]=b[z(0xf2)],b['dir']=l[z(0x119)](m=>{return paramCase(m);})[z(0x117)](a97e['sep'])):b['dir']='');if(this[z(0xec)][z(0x11b)]){if(!b[z(0x137)]){const n={'type':z(0x123),'name':'colLocAnswer','message':z(0x149),'choices':[{'name':z(0x140),'value':z(0x126)},{'name':'Server','value':z(0x13b)},{'name':'Both','value':z(0xed)}]},{colLocAnswer:o}=await Actions['options'](n);o?b['where']=o:b[z(0x137)]='both';}const m=[z(0xed),z(0x126),z(0x13b)];if(!m[z(0xf7)](b[z(0x137)])){Log[z(0x107)](z(0xf4));throw new UsageError();}switch(b[z(0x137)]){case'both':b[z(0x10b)]='lib';break;case z(0x13b):b[z(0x10b)]='server';break;case z(0x126):b[z(0x10b)]=z(0x126);break;default:b[z(0x10b)]='';}}return await this[z(0x121)][z(0x134)](this,c,b);}catch(p){this[z(0x13d)](p);}});}[a97t(0x104)](){const A=a97t;this[A(0xff)](this[A(0xf9)]);}[a97t(0x13d)](a){const B=a97t,{usage:usage='',description:description='',examples:examples=[],shortDesc:b,requiredOpts:requiredOpts=[],validOpts:c}=this[B(0xec)];Log[B(0x12b)](description,examples,usage,b,requiredOpts,c);if(a instanceof UsageErrorWithSubs)Log[B(0x10c)](B(0x102)),this[B(0xff)](this['_generators']);else{if(a instanceof MustBeInProjectError)Log[B(0x107)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20generator');else{if(a instanceof NoMeteorFoundError)Log[B(0x107)](B(0x114)),Log[B(0x10c)](B(0xf6));else a instanceof NoMeteorAppFoundError&&Log[B(0x107)](B(0x120));}}}['tableList'](a){const C=a97t,b=new a97f({});b[C(0x131)]([C(0x10f),C(0x13f),C(0x133)]),a[C(0x105)]()['forEach'](c=>{const D=C;b['push']([c[D(0xee)],c[D(0xf3)](),c[D(0x100)]()]);}),Log[C(0x14c)](b[C(0x13c)]());}}
@@ -1 +1 @@
1
- (function(a,b){var f=a98d,c=a();while(!![]){try{var d=parseInt(f(0x11f))/0x1+parseInt(f(0x126))/0x2+parseInt(f(0x127))/0x3*(parseInt(f(0x123))/0x4)+-parseInt(f(0x124))/0x5+parseInt(f(0x125))/0x6+-parseInt(f(0x11d))/0x7+-parseInt(f(0x129))/0x8*(parseInt(f(0x128))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x898b6));var a98b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a98d;if(c){var e=c[g(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a98a=a98b(this,function(){var h=a98d;return a98a[h(0x12a)]()['search'](h(0x121))[h(0x12a)]()[h(0x11e)](a98a)[h(0x122)](h(0x121));});a98a();import'./services/_index.js';import'./api.js';import'./collection.js';import'./component.js';function a98d(a,b){var c=a98c();return a98d=function(d,e){d=d-0x11d;var f=c[d];return f;},a98d(a,b);}import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';import'./layout.js';import'./methods.js';import'./package.js';import'./publish.js';import'./route.js';function a98c(){var i=['938509vvemic','apply','(((.+)+)+)+$','search','916TCpMDF','2854585DyPuPj','4795452vMpCED','697588YtTIKG','14676piHJGH','12343230aZovQb','8kDiuZz','toString','4907308hywurS','constructor'];a98c=function(){return i;};return a98c();}import'./service.js';import'./page.js';import'./maka.gen.js';import'./dockerfile.js';import'./maka.gen.js';
1
+ (function(a,b){var f=a124d,c=a();while(!![]){try{var d=-parseInt(f(0xdb))/0x1*(parseInt(f(0xe3))/0x2)+-parseInt(f(0xdd))/0x3+-parseInt(f(0xe8))/0x4*(parseInt(f(0xda))/0x5)+-parseInt(f(0xe7))/0x6+parseInt(f(0xe1))/0x7*(-parseInt(f(0xe0))/0x8)+parseInt(f(0xe2))/0x9*(parseInt(f(0xe6))/0xa)+parseInt(f(0xe5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a124c,0x9782b));var a124b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a124d;if(c){var e=c[g(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a124a=a124b(this,function(){var h=a124d;return a124a['toString']()[h(0xde)](h(0xdc))['toString']()[h(0xdf)](a124a)[h(0xde)](h(0xdc));});a124a();import'./services/_index.js';function a124c(){var i=['8590JTxQHW','5851068bRUQTj','12kIcLZK','126785LYREGD','1228478PMQXDu','(((.+)+)+)+$','2740695mHopez','search','constructor','8TwSVOI','6037409nirSgr','9297MDQuTA','2jtkanC','apply','41679209XiJGjn'];a124c=function(){return i;};return a124c();}import'./api.js';import'./collection.js';import'./component.js';import'./config.js';import'./dbc.js';import'./hook.js';import'./kits/_index.js';function a124d(a,b){var c=a124c();return a124d=function(d,e){d=d-0xda;var f=c[d];return f;},a124d(a,b);}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 a99x=a99d;(function(a,b){const u=a99d,c=a();while(!![]){try{const d=-parseInt(u(0x190))/0x1+parseInt(u(0x193))/0x2*(parseInt(u(0x19e))/0x3)+-parseInt(u(0x1af))/0x4+-parseInt(u(0x1d0))/0x5*(-parseInt(u(0x199))/0x6)+-parseInt(u(0x1b1))/0x7*(parseInt(u(0x1b7))/0x8)+-parseInt(u(0x187))/0x9+parseInt(u(0x1cd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0x37d86));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const v=a99d;if(c){const e=c[v(0x1a4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const w=a99d;return a99a[w(0x1d9)]()['search'](w(0x19b))[w(0x1d9)]()[w(0x1c0)](a99a)[w(0x1c3)]('(((.+)+)+)+$');});a99a();import{Generator}from'../generator.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0x186;let f=c[d];return f;},a99d(a,b);}import{Log}from'../tools/log/log.class.js';import{Actions}from'../tools/actions/actions.class.js';import a99e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator[a99x(0x1a3)]({'name':a99x(0x1ce),'aliases':['a'],'usage':a99x(0x19c),'shortDesc':'Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','validOpts':[a99x(0x1c1)],'examples':[a99x(0x1da)],'description':a99x(0x1a5)},async function(a,b){const y=a99x;try{const c=this[y(0x1b5)][y(0x1aa)](),d=[{'name':y(0x1bd),'value':y(0x186)},{'name':y(0x191),'value':y(0x18a)},{'name':'Publications','value':y(0x1b2)}];c[y(0x1c4)][y(0x1ce)]===y(0x18d)&&d['push']({'name':'REST\x20API','value':'withRest'});c[y(0x1c4)][y(0x1b3)]===y(0x1ae)&&d[y(0x1ba)]({'name':'GraphQL','value':y(0x1ac)});const f={'type':'checkbox','name':y(0x1ab),'message':y(0x1de),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions['options'](f);g[y(0x1b0)]===0x0&&(Log[y(0x1a8)](y(0x1dd)),process['exit'](0x1)),await this['fsi'][y(0x1ca)](c,async()=>{const z=y,h=b[z(0x1be)],i=paramCase(h),j=camelCase(h),k=b[z(0x1c1)]?'/'+b[z(0x1c1)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c['engines'][z(0x1ce)],'graphql':c[z(0x1c4)][z(0x1b3)],'test':c[z(0x1c4)][z(0x1d2)],'noRename':!![],'withPubs':g[z(0x1b6)](z(0x1b2)),'withFixtures':g[z(0x1b6)](z(0x18a)),'withMethods':g['includes'](z(0x186)),'withRest':g[z(0x1b6)](z(0x188))};let m='js';c[z(0x1c4)]['js']===z(0x1b8)&&(m='ts');await this[z(0x1b5)][z(0x19f)]([z(0x18c),z(0x1d4),z(0x1cb),z(0x19a),'mongo'],{'shouldInstall':!![]}),await a99e[z(0x1b9)]('collection',[i],{'config':c,'where':z(0x19d)});c[z(0x1c4)][z(0x1ce)]===z(0x18d)&&(l['withRest']&&await this[z(0x1b5)]['template']({'srcPath':z(0x1bc),'destPath':this[z(0x1b5)]['pathFromApp']({'pathParts':[z(0x1df),z(0x1ce),b[z(0x1c1)],i,z(0x1a0)+m]}),'context':l,'config':c}));l[z(0x186)]&&await this[z(0x1b5)][z(0x1b4)]({'srcPath':z(0x18e),'destPath':this[z(0x1b5)][z(0x1c9)]({'pathParts':[z(0x1df),'api',b['dir'],i,z(0x1a6)+m]}),'context':l,'config':c});l[z(0x18a)]&&await this['fsi'][z(0x1b4)]({'srcPath':z(0x1c7),'destPath':this[z(0x1b5)][z(0x1c9)]({'pathParts':[z(0x1df),'api',b[z(0x1c1)],i,z(0x18f)+m]}),'context':l,'config':c});c[z(0x1c4)]['test']!==z(0x1c5)&&this[z(0x1b5)][z(0x1b4)]({'srcPath':z(0x1a9),'destPath':this['fsi'][z(0x1c9)]({'pathParts':[z(0x1df),'api',b['dir'],i,i+'.app-tests.'+m]}),'context':l,'config':c});l[z(0x1b2)]&&await this[z(0x1b5)][z(0x1b4)]({'srcPath':z(0x1db),'destPath':this[z(0x1b5)][z(0x1c9)]({'pathParts':[z(0x1df),'api',b[z(0x1c1)],i,z(0x1bb)+m]}),'context':l,'config':c});if(c[z(0x1c4)][z(0x1b3)]===z(0x1ae)){if(g[z(0x1b6)](z(0x1ac))){const o=this[z(0x1b5)]['pathFromApp']({'pathParts':['imports',z(0x1d1),z(0x19d),z(0x194)+c[z(0x1c4)]['js']]}),p=this[z(0x1b5)][z(0x1c8)]({'pathParts':[o],'config':c}),q=this[z(0x1b5)]['pathFromApp']({'pathParts':[z(0x1df),'api',b[z(0x1c1)],i,z(0x1b3),z(0x1d3)+m]}),r=z(0x189)+k+i+z(0x1d7);this[z(0x1b5)][z(0x1b4)]({'srcPath':z(0x1bf),'destPath':q,'context':l,'config':c}),await this[z(0x1b5)][z(0x1cf)]({'filePath':p,'content':'import\x20{\x20typeDefs\x20as\x20'+j+'TypeDefs\x20}\x20from\x20\x27'+r+z(0x1ad)}),await this[z(0x1b5)]['injectIntoFile']({'filePath':p,'content':z(0x1a1)+j+'TypeDefs);\x0a','begin':z(0x1d6),'end':z(0x1a7)});const s=this[z(0x1b5)]['pathFromApp']({'pathParts':[z(0x1df),z(0x1ce),b[z(0x1c1)],i,z(0x1b3),z(0x1d5)+m]}),t=z(0x189)+k+i+z(0x197);await this[z(0x1b5)][z(0x1b4)]({'srcPath':z(0x1a2),'destPath':s,'context':l,'config':c}),await this[z(0x1b5)]['injectAtBeginningOfFile']({'filePath':p,'content':z(0x196)+j+'Resolvers\x20}\x20from\x20\x27'+t+'\x27;'}),await this[z(0x1b5)][z(0x1c2)]({'filePath':p,'content':'resolverList.push('+j+z(0x1cc),'begin':'const','end':z(0x1a7)});}}await this['fsi'][z(0x1b4)]({'srcPath':z(0x1dc),'destPath':this['fsi'][z(0x1c9)]({'pathParts':[z(0x1df),z(0x1d1),'server',z(0x1c6)+i+z(0x1d8)+m]}),'context':l,'config':c,'force':!![]});const n=this[z(0x1b5)]['pathFromApp']({'pathParts':[z(0x1df),z(0x1d1),z(0x19d),'index.'+c[z(0x1c4)]['js']]});await this[z(0x1b5)][z(0x195)]({'filePath':n,'content':z(0x192)+i+z(0x18b)});});}catch(h){console[y(0x1a8)](h),process[y(0x198)](0x0);}});function a99c(){const A=['api/fixtures.js','rewriteDestinationPathForEngine','pathFromApp','withValue','ddp-rate-limiter','Resolvers);\x0a\x0a','10787960lKTMFn','api','injectAtBeginningOfFile','95QeJIwy','startup','test','typeDefs.','maka:check','resolvers.','const','/graphql/typeDefs','-api.','toString','maka\x20g:api\x20Todos','api/publications.js','api/register-api.js','No\x20API\x20boundaries\x20selected','API\x20boundaries\x20to\x20create','imports','withMethods','2727684LqkGmX','withRest','/imports/api','withFixtures','-api\x27;','maka:rest','rest','api/methods.js','fixtures.','304050mOqmdU','Fixtures','import\x20\x27./register-','2gxNdwj','index.','injectAtEndOfFile','\x0aimport\x20{\x20resolvers\x20as\x20','/graphql/resolvers','exit','23298nTpsyR','mdg:validated-method','(((.+)+)+)+$','maka\x20{generate,\x20g}:{api}\x20<resource-name>','server','792228WzHVtZ','checkMeteorPackage','rest-api.','typeList.push(','api/resolvers.js','create','apply','\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20','rpc-methods.','if\x20\x5c(typeList','error','api/tests.js','getMakaProjectConfig','apiAnswers','withGql','\x27;\x0a','apollo','1222436jYdlbz','length','84NidWvb','withPubs','graphql','template','fsi','includes','183448JzaoFx','tsx','processAndRunGenerator','push','publications.','api/api.js','RPC\x20(Methods)','resourceName','api/typeDefs.js','constructor','dir','injectIntoFile','search','engines','none','register-'];a99c=function(){return A;};return a99c();}
1
+ const a98w=a98d;(function(a,b){const u=a98d,c=a();while(!![]){try{const d=-parseInt(u(0x122))/0x1+-parseInt(u(0x11a))/0x2*(-parseInt(u(0x104))/0x3)+parseInt(u(0xfe))/0x4*(-parseInt(u(0x11f))/0x5)+parseInt(u(0x10e))/0x6+-parseInt(u(0xd8))/0x7*(parseInt(u(0xd3))/0x8)+parseInt(u(0x118))/0x9*(-parseInt(u(0xe2))/0xa)+parseInt(u(0xcf))/0xb*(parseInt(u(0x124))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a98c,0x83b3a));const a98b=(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;};}()),a98a=a98b(this,function(){const v=a98d;return a98a['toString']()[v(0x11b)](v(0xf3))[v(0x11d)]()['constructor'](a98a)['search'](v(0xf3));});a98a();import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a98d(a,b){const c=a98c();return a98d=function(d,e){d=d-0xcf;let f=c[d];return f;},a98d(a,b);}function a98c(){const z=['18GDKZGo','Fixtures','maka:rest','rest-api.','api/fixtures.js','length','mdg:validated-method','imports','apiAnswers','push','342000nYPOpA','publications.','collection','rest','error','import\x20{\x20typeDefs\x20as\x20','resolverList.push(','exit','index.','.app-tests.','9ADyBWa','No\x20API\x20boundaries\x20selected','52712umXQDS','search','-api.','toString','typeList.push(','5xSpQrp','rpc-methods.','withGql','7902yuFRMw','withFixtures','12WqDPjT','checkMeteorPackage','17615246bNPoBy','withValue','graphql','resourceName','16QZuxSa','withRest','api/tests.js','engines','TypeDefs);\x0a','3585596wxImkQ','api/methods.js','options','\x0aimport\x20{\x20resolvers\x20as\x20','GraphQL','tsx','template','includes','startup','resolvers.','848870hMsafs','-api\x27;','TypeDefs\x20}\x20from\x20\x27','Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).','injectIntoFile','api/resolvers.js','pathFromApp','API\x20boundaries\x20to\x20create','if\x20\x5c(typeList','const','injectAtBeginningOfFile','Resolvers\x20}\x20from\x20\x27','REST\x20API','\x27;\x0a','getMakaProjectConfig','typeDefs.','api','(((.+)+)+)+$','api/publications.js','checkbox','withMethods','dir','RPC\x20(Methods)','apollo','/graphql/typeDefs','fsi','server','withPubs','639308fchRzq','injectAtEndOfFile','/imports/api','maka\x20g:api\x20Todos','import\x20\x27./register-','api/typeDefs.js'];a98c=function(){return z;};return a98c();}import{Actions}from'../tools/actions/actions.class.js';import a98e from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';Generator['create']({'name':a98w(0xf2),'aliases':['a'],'usage':'maka\x20{generate,\x20g}:{api}\x20<resource-name>','shortDesc':a98w(0xe5),'validOpts':[a98w(0xf7)],'examples':[a98w(0x101)],'description':'\x0a\x20\x20Scaffolding\x20for\x20an\x20api\x20concept\x20(i.e.\x20Todos).\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20create\x20a\x20collection,\x20publications,\x20methods,\x20fixtures,\x20and\x20tests\x0a\x20\x20for\x20the\x20given\x20resource\x20name.\x0a\x0a\x20\x20The\x20api\x20generator\x20will\x20ask\x20which\x20boundaries\x20to\x20create.\x20The\x20choices\x20are:\x0a\x20\x20\x20\x20-\x20RPC\x20(Methods)\x0a\x20\x20\x20\x20-\x20Fixtures\x0a\x20\x20\x20\x20-\x20Publications\x0a\x20\x20\x20\x20-\x20REST\x20API\x0a\x20\x20\x20\x20-\x20GraphQL\x0a\x0a\x20\x20'},async function(a,b){const x=a98w;try{const c=this[x(0xfb)][x(0xf0)](),d=[{'name':x(0xf8),'value':x(0xf6)},{'name':x(0x105),'value':x(0x123)},{'name':'Publications','value':x(0xfd)}];c[x(0xd6)][x(0xf2)]===x(0x111)&&d[x(0x10d)]({'name':x(0xee),'value':x(0xd4)});c[x(0xd6)][x(0xd1)]===x(0xf9)&&d[x(0x10d)]({'name':x(0xdc),'value':x(0x121)});const f={'type':x(0xf5),'name':x(0x10c),'message':x(0xe9),'pageSize':0x64,'choices':d},{apiAnswers:g}=await Actions[x(0xda)](f);g[x(0x109)]===0x0&&(Log[x(0x112)](x(0x119)),process['exit'](0x1)),await this['fsi'][x(0xd0)](c,async()=>{const y=x,h=b[y(0xd2)],i=paramCase(h),j=camelCase(h),k=b['dir']?'/'+b[y(0xf7)]+'/':'/',l={'name':pascalCase(h),'fileName':i,'camelCase':pascalCase(h),'optsDir':k,'api':c[y(0xd6)][y(0xf2)],'graphql':c['engines'][y(0xd1)],'test':c[y(0xd6)]['test'],'noRename':!![],'withPubs':g['includes']('withPubs'),'withFixtures':g[y(0xdf)](y(0x123)),'withMethods':g[y(0xdf)](y(0xf6)),'withRest':g[y(0xdf)](y(0xd4))};let m='js';c[y(0xd6)]['js']===y(0xdd)&&(m='ts');await this['fsi'][y(0x125)]([y(0x106),'maka:check','ddp-rate-limiter',y(0x10a),'mongo'],{'shouldInstall':!![]}),await a98e['processAndRunGenerator'](y(0x110),[i],{'config':c,'where':y(0xfc)});c[y(0xd6)][y(0xf2)]===y(0x111)&&(l[y(0xd4)]&&await this[y(0xfb)][y(0xde)]({'srcPath':'api/api.js','destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),'api',b[y(0xf7)],i,y(0x107)+m]}),'context':l,'config':c}));l[y(0xf6)]&&await this['fsi'][y(0xde)]({'srcPath':y(0xd9),'destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),'api',b[y(0xf7)],i,y(0x120)+m]}),'context':l,'config':c});l[y(0x123)]&&await this['fsi'][y(0xde)]({'srcPath':y(0x108),'destPath':this['fsi'][y(0xe8)]({'pathParts':['imports',y(0xf2),b[y(0xf7)],i,'fixtures.'+m]}),'context':l,'config':c});c['engines']['test']!=='none'&&this[y(0xfb)]['template']({'srcPath':y(0xd5),'destPath':this['fsi'][y(0xe8)]({'pathParts':[y(0x10b),y(0xf2),b[y(0xf7)],i,i+y(0x117)+m]}),'context':l,'config':c});l[y(0xfd)]&&await this['fsi'][y(0xde)]({'srcPath':y(0xf4),'destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),y(0xf2),b['dir'],i,y(0x10f)+m]}),'context':l,'config':c});if(c[y(0xd6)][y(0xd1)]==='apollo'){if(g['includes'](y(0x121))){const o=this['fsi'][y(0xe8)]({'pathParts':['imports','startup',y(0xfc),y(0x116)+c[y(0xd6)]['js']]}),p=this[y(0xfb)]['rewriteDestinationPathForEngine']({'pathParts':[o],'config':c}),q=this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),y(0xf2),b['dir'],i,y(0xd1),y(0xf1)+m]}),r=y(0x100)+k+i+y(0xfa);this[y(0xfb)][y(0xde)]({'srcPath':y(0x103),'destPath':q,'context':l,'config':c}),await this[y(0xfb)][y(0xec)]({'filePath':p,'content':y(0x113)+j+y(0xe4)+r+y(0xef)}),await this['fsi'][y(0xe6)]({'filePath':p,'content':y(0x11e)+j+y(0xd7),'begin':y(0xeb),'end':y(0xea)});const s=this[y(0xfb)]['pathFromApp']({'pathParts':[y(0x10b),y(0xf2),b['dir'],i,y(0xd1),y(0xe1)+m]}),t=y(0x100)+k+i+'/graphql/resolvers';await this[y(0xfb)][y(0xde)]({'srcPath':y(0xe7),'destPath':s,'context':l,'config':c}),await this[y(0xfb)]['injectAtBeginningOfFile']({'filePath':p,'content':y(0xdb)+j+y(0xed)+t+'\x27;'}),await this['fsi'][y(0xe6)]({'filePath':p,'content':y(0x114)+j+'Resolvers);\x0a\x0a','begin':y(0xeb),'end':'if\x20\x5c(typeList'});}}await this[y(0xfb)][y(0xde)]({'srcPath':'api/register-api.js','destPath':this[y(0xfb)][y(0xe8)]({'pathParts':[y(0x10b),y(0xe0),y(0xfc),'register-'+i+y(0x11c)+m]}),'context':l,'config':c,'force':!![]});const n=this['fsi'][y(0xe8)]({'pathParts':['imports',y(0xe0),'server',y(0x116)+c[y(0xd6)]['js']]});await this[y(0xfb)][y(0xff)]({'filePath':n,'content':y(0x102)+i+y(0xe3)});});}catch(h){console[x(0x112)](h),process[x(0x115)](0x0);}});
@@ -1 +1 @@
1
- const a100m=a100d;(function(a,b){const j=a100d,c=a();while(!![]){try{const d=-parseInt(j(0x1a2))/0x1*(parseInt(j(0x1bd))/0x2)+-parseInt(j(0x1c6))/0x3+-parseInt(j(0x1a7))/0x4*(-parseInt(j(0x1b3))/0x5)+-parseInt(j(0x1bb))/0x6*(parseInt(j(0x1a9))/0x7)+-parseInt(j(0x1ae))/0x8*(parseInt(j(0x1c7))/0x9)+-parseInt(j(0x1b2))/0xa+parseInt(j(0x1bf))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a100c,0xde1ad));const a100b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a100d;if(c){const e=c[k(0x1a5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a100a=a100b(this,function(){const l=a100d;return a100a['toString']()[l(0x1a3)](l(0x1b0))[l(0x1b5)]()['constructor'](a100a)['search'](l(0x1b0));});function a100c(){const p=['465eeJOtz','injectAtEndOfFile','toString','maka\x20g:collection\x20todos','index.','imports','resourceName','where','762DJGrwA','collections','14pCPoDI','pathFromApp','40979411AZDctX','col','maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','getMakaProjectConfig','collection/tests.js','error','engines','3344205woaSPG','1341htMGpU','collection/collection.js','template','appPathPrefix','collection','97961GoNQbu','search','startup','apply','checkMeteorPackage','39380NHxWyr','test','42721plzzgy','tsx','dir','.app-tests.','maka:check','1048ILKqVy','fsi','(((.+)+)+)+$','\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','11361830qddUVT'];a100c=function(){return p;};return a100c();}a100a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a100d(a,b){const c=a100c();return a100d=function(d,e){d=d-0x19e;let f=c[d];return f;},a100d(a,b);}import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a100m(0x1a1),'aliases':[a100m(0x1c0)],'usage':a100m(0x1c1),'checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':[a100m(0x1ab),a100m(0x1ba)],'description':a100m(0x1b1),'examples':[a100m(0x1b6)]},async function(a,b){const n=a100m;try{const c=this[n(0x1af)][n(0x1c2)]();await this[n(0x1af)]['withValue'](c,async()=>{const o=n,d=paramCase(b[o(0x1b9)]),f={'name':pascalCase(b[o(0x1b9)]),'collectionName':pascalCase(b[o(0x1b9)]),'fileName':d,'where':b[o(0x1ba)],'test':c[o(0x1c5)][o(0x1a8)],'noRename':!![]};let g='js';c[o(0x1c5)]['js']===o(0x1aa)&&(g='ts');await this['fsi'][o(0x1a6)](['mongo',o(0x1ad)],{'shouldInstall':!![]}),await this[o(0x1af)][o(0x19f)]({'srcPath':o(0x19e),'destPath':this['fsi'][o(0x1be)]({'pathParts':[o(0x1b8),o(0x1a4),b[o(0x1a0)],o(0x1bc),b[o(0x1ab)],d+'.'+g]}),'context':f,'config':c});c[o(0x1c5)][o(0x1a8)]!=='none'&&await this['fsi'][o(0x19f)]({'srcPath':o(0x1c3),'destPath':this[o(0x1af)][o(0x1be)]({'pathParts':[o(0x1b8),'startup',b[o(0x1a0)],o(0x1bc),b[o(0x1ab)],d+o(0x1ac)+g]}),'context':f,'config':c});const h=b['dir']?'/'+b[o(0x1ab)]+'/':'/',i=this['fsi'][o(0x1be)]({'pathParts':[o(0x1b8),o(0x1a4),b[o(0x1a0)],o(0x1b7)+c[o(0x1c5)]['js']]});await this[o(0x1af)][o(0x1b4)]({'filePath':i,'content':'import\x20\x27./collections'+h+d+'\x27;'});});}catch(d){Log[n(0x1c4)](d);}});
1
+ const a99m=a99d;(function(a,b){const j=a99d,c=a();while(!![]){try{const d=parseInt(j(0xd1))/0x1+parseInt(j(0xe6))/0x2*(parseInt(j(0xd7))/0x3)+-parseInt(j(0xc4))/0x4*(-parseInt(j(0xcf))/0x5)+-parseInt(j(0xe0))/0x6+parseInt(j(0xe5))/0x7*(parseInt(j(0xe7))/0x8)+parseInt(j(0xce))/0x9+parseInt(j(0xd8))/0xa*(-parseInt(j(0xcd))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a99c,0xa9857));const a99b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a99d;if(c){const e=c[k(0xd4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a99a=a99b(this,function(){const l=a99d;return a99a[l(0xd6)]()[l(0xda)]('(((.+)+)+)+$')['toString']()[l(0xd5)](a99a)[l(0xda)](l(0xde));});a99a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a99d(a,b){const c=a99c();return a99d=function(d,e){d=d-0xc1;let f=c[d];return f;},a99d(a,b);}Generator[a99m(0xcb)]({'name':a99m(0xc6),'aliases':['col'],'usage':'maka\x20{generate,\x20g}:{collection,\x20col}\x20<name>','checkWhere':!![],'shortDesc':'Scaffolding\x20for\x20a\x20Meteor\x20(Mongo)\x20Collection','validOpts':['dir',a99m(0xd3)],'description':a99m(0xdb),'examples':['maka\x20g:collection\x20todos']},async function(a,b){const n=a99m;try{const c=this[n(0xcc)][n(0xdd)]();await this[n(0xcc)][n(0xc3)](c,async()=>{const o=n,d=paramCase(b[o(0xca)]),f={'name':pascalCase(b[o(0xca)]),'collectionName':pascalCase(b[o(0xca)]),'fileName':d,'where':b[o(0xd3)],'test':c[o(0xd9)][o(0xc1)],'noRename':!![]};let g='js';c[o(0xd9)]['js']===o(0xe8)&&(g='ts');await this[o(0xcc)][o(0xe3)](['mongo','maka:check'],{'shouldInstall':!![]}),await this['fsi'][o(0xe2)]({'srcPath':o(0xe4),'destPath':this[o(0xcc)][o(0xe1)]({'pathParts':['imports','startup',b['appPathPrefix'],'collections',b[o(0xc9)],d+'.'+g]}),'context':f,'config':c});c[o(0xd9)][o(0xc1)]!==o(0xdf)&&await this[o(0xcc)][o(0xe2)]({'srcPath':'collection/tests.js','destPath':this[o(0xcc)][o(0xe1)]({'pathParts':[o(0xc5),o(0xdc),b['appPathPrefix'],o(0xc2),b[o(0xc9)],d+'.app-tests.'+g]}),'context':f,'config':c});const h=b[o(0xc9)]?'/'+b[o(0xc9)]+'/':'/',i=this[o(0xcc)]['pathFromApp']({'pathParts':[o(0xc5),o(0xdc),b[o(0xc7)],'index.'+c[o(0xd9)]['js']]});await this['fsi'][o(0xd2)]({'filePath':i,'content':o(0xc8)+h+d+'\x27;'});});}catch(d){Log[n(0xd0)](d);}});function a99c(){const p=['collection','appPathPrefix','import\x20\x27./collections','dir','resourceName','create','fsi','3523014ISBNqW','7642485qxnWyT','1065LJNCBk','error','1177349qZdWcY','injectAtEndOfFile','where','apply','constructor','toString','600036uGYGyk','80zovlAu','engines','search','\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','startup','getMakaProjectConfig','(((.+)+)+)+$','none','3922296antIdD','pathFromApp','template','checkMeteorPackage','collection/collection.js','4785907bxcUGg','4PXGpuE','8TjJRYm','tsx','test','collections','withValue','15024XeOQnZ','imports'];a99c=function(){return p;};return a99c();}