@nathapp/nestjs-health 3.3.0

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 (86) hide show
  1. package/.eslintrc.js +8 -0
  2. package/.nax/features/nestjs-health/.nax-acceptance.test.ts +756 -0
  3. package/.turbo/turbo-build.log +4 -0
  4. package/CHANGELOG.md +15 -0
  5. package/README.md +19 -0
  6. package/dist/constant/health.constants.d.ts +5 -0
  7. package/dist/constant/health.constants.js +9 -0
  8. package/dist/constant/health.constants.js.map +1 -0
  9. package/dist/constant/index.d.ts +1 -0
  10. package/dist/constant/index.js +18 -0
  11. package/dist/constant/index.js.map +1 -0
  12. package/dist/controller/health.controller.d.ts +5 -0
  13. package/dist/controller/health.controller.js +48 -0
  14. package/dist/controller/health.controller.js.map +1 -0
  15. package/dist/controller/index.d.ts +1 -0
  16. package/dist/controller/index.js +18 -0
  17. package/dist/controller/index.js.map +1 -0
  18. package/dist/index.d.ts +6 -0
  19. package/dist/index.js +23 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/indicator/cache-health.check.d.ts +20 -0
  22. package/dist/indicator/cache-health.check.js +50 -0
  23. package/dist/indicator/cache-health.check.js.map +1 -0
  24. package/dist/indicator/generic-health.check.d.ts +13 -0
  25. package/dist/indicator/generic-health.check.js +51 -0
  26. package/dist/indicator/generic-health.check.js.map +1 -0
  27. package/dist/indicator/index.d.ts +4 -0
  28. package/dist/indicator/index.js +21 -0
  29. package/dist/indicator/index.js.map +1 -0
  30. package/dist/indicator/prisma-health.check.d.ts +20 -0
  31. package/dist/indicator/prisma-health.check.js +53 -0
  32. package/dist/indicator/prisma-health.check.js.map +1 -0
  33. package/dist/indicator/queue-health.check.d.ts +22 -0
  34. package/dist/indicator/queue-health.check.js +56 -0
  35. package/dist/indicator/queue-health.check.js.map +1 -0
  36. package/dist/interface/health-indicator.interface.d.ts +4 -0
  37. package/dist/interface/health-indicator.interface.js +3 -0
  38. package/dist/interface/health-indicator.interface.js.map +1 -0
  39. package/dist/interface/health-module-options.interface.d.ts +22 -0
  40. package/dist/interface/health-module-options.interface.js +19 -0
  41. package/dist/interface/health-module-options.interface.js.map +1 -0
  42. package/dist/interface/index.d.ts +2 -0
  43. package/dist/interface/index.js +19 -0
  44. package/dist/interface/index.js.map +1 -0
  45. package/dist/module/health.module.d.ts +8 -0
  46. package/dist/module/health.module.js +58 -0
  47. package/dist/module/health.module.js.map +1 -0
  48. package/dist/module/index.d.ts +1 -0
  49. package/dist/module/index.js +18 -0
  50. package/dist/module/index.js.map +1 -0
  51. package/dist/service/health-executor.service.d.ts +20 -0
  52. package/dist/service/health-executor.service.js +50 -0
  53. package/dist/service/health-executor.service.js.map +1 -0
  54. package/dist/service/index.d.ts +1 -0
  55. package/dist/service/index.js +18 -0
  56. package/dist/service/index.js.map +1 -0
  57. package/lib/constant/health.constants.ts +23 -0
  58. package/lib/constant/index.ts +1 -0
  59. package/lib/controller/health.controller.ts +37 -0
  60. package/lib/controller/index.ts +1 -0
  61. package/lib/index.ts +6 -0
  62. package/lib/indicator/cache-health.check.ts +59 -0
  63. package/lib/indicator/generic-health.check.ts +43 -0
  64. package/lib/indicator/index.ts +4 -0
  65. package/lib/indicator/prisma-health.check.ts +59 -0
  66. package/lib/indicator/queue-health.check.ts +72 -0
  67. package/lib/interface/health-indicator.interface.ts +18 -0
  68. package/lib/interface/health-module-options.interface.ts +85 -0
  69. package/lib/interface/index.ts +2 -0
  70. package/lib/module/health.module.ts +62 -0
  71. package/lib/module/index.ts +1 -0
  72. package/lib/service/health-executor.service.ts +69 -0
  73. package/lib/service/index.ts +1 -0
  74. package/package.json +67 -0
  75. package/test/constant/health.constants.spec.ts +34 -0
  76. package/test/controller/health.controller.spec.ts +117 -0
  77. package/test/indicator/cache-health.check.spec.ts +88 -0
  78. package/test/indicator/generic-health.check.spec.ts +61 -0
  79. package/test/indicator/prisma-health.check.spec.ts +69 -0
  80. package/test/indicator/queue-health.check.spec.ts +88 -0
  81. package/test/interface/health-module-options.spec.ts +59 -0
  82. package/test/jest-nax.json +27 -0
  83. package/test/jest-test.json +28 -0
  84. package/test/module/health.module.spec.ts +311 -0
  85. package/test/service/health-executor.service.spec.ts +186 -0
  86. package/tsconfig.json +9 -0
package/.eslintrc.js ADDED
@@ -0,0 +1,8 @@
1
+ module.exports = {
2
+ root: true,
3
+ extends: ["@nathapp/eslint-config/library.js"],
4
+ parser: "@typescript-eslint/parser",
5
+ parserOptions: {
6
+ project: true,
7
+ },
8
+ };