@creator.co/wapi 1.7.1-alpha3 → 1.7.1

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 (114) hide show
  1. package/.eslintignore +3 -0
  2. package/.eslintrc.cjs +60 -0
  3. package/.github/workflows/npmpublish.yml +11 -0
  4. package/.github/workflows/prs.yml +13 -0
  5. package/dist/package-lock.json +2 -2
  6. package/dist/package.json +1 -1
  7. package/jest.config.ts +33 -0
  8. package/jest.smoke.config.ts +35 -0
  9. package/package.json +1 -1
  10. package/tests/API/Request.test.ts +273 -0
  11. package/tests/API/Response.test.ts +367 -0
  12. package/tests/API/Utils.test.ts +167 -0
  13. package/tests/BaseEvent/EventProcessor.test.ts +261 -0
  14. package/tests/BaseEvent/Process.test.ts +49 -0
  15. package/tests/BaseEvent/Transaction.test.ts +408 -0
  16. package/tests/Cache/Redis-client.test.ts +90 -0
  17. package/tests/Cache/Redis-cluster.test.ts +100 -0
  18. package/tests/Config/Config.test.ts +205 -0
  19. package/tests/Config/EnvironmentVar.test.ts +250 -0
  20. package/tests/Crypto/Crypto.test.ts +88 -0
  21. package/tests/Crypto/JWT.test.ts +92 -0
  22. package/tests/Database/DatabaseManager.test.ts +71 -0
  23. package/tests/Database/integrations/knex/KnexDatabase.test.ts +76 -0
  24. package/tests/Database/integrations/knex/KnexTransaction.test.ts +149 -0
  25. package/tests/Database/integrations/kysely/KyselyDatabase.test.ts +113 -0
  26. package/tests/Database/integrations/kysely/KyselyTransaction.test.ts +119 -0
  27. package/tests/Database/integrations/pg/PostgresDatabase.test.ts +76 -0
  28. package/tests/Database/integrations/pg/PostgresTransaction.test.ts +118 -0
  29. package/tests/Logger/Logger.test.ts +219 -0
  30. package/tests/Mailer/Mailer.test.ts +59 -0
  31. package/tests/Publisher/Publisher.test.ts +94 -0
  32. package/tests/Server/RouteResolver.test.ts +102 -0
  33. package/tests/Server/Router.test.ts +39 -0
  34. package/tests/Server/lib/ContainerServer.test.ts +531 -0
  35. package/tests/Server/lib/Server.test.ts +12 -0
  36. package/tests/Server/lib/container/GenericHandler.test.ts +131 -0
  37. package/tests/Server/lib/container/GenericHandlerEvent.test.ts +103 -0
  38. package/tests/Server/lib/container/HealthHandler.test.ts +30 -0
  39. package/tests/Server/lib/container/Proxy.test.ts +268 -0
  40. package/tests/Server/lib/container/Utils.test.ts +47 -0
  41. package/tests/Test.utils.ts +74 -0
  42. package/tests/Validation/Validator.test.ts +76 -0
  43. package/tsconfig.json +26 -0
  44. package/tsconfig.smoke.json +26 -0
  45. package/coverage/clover.xml +0 -1088
  46. package/coverage/coverage/coverage.txt +0 -40
  47. package/coverage/coverage-final.json +0 -37
  48. package/coverage/coverage-summary.json +0 -38
  49. package/coverage/coverage.txt +0 -59
  50. package/coverage/lcov-report/base.css +0 -224
  51. package/coverage/lcov-report/block-navigation.js +0 -87
  52. package/coverage/lcov-report/favicon.png +0 -0
  53. package/coverage/lcov-report/index.html +0 -371
  54. package/coverage/lcov-report/prettify.css +0 -1
  55. package/coverage/lcov-report/prettify.js +0 -2
  56. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  57. package/coverage/lcov-report/sorter.js +0 -196
  58. package/coverage/lcov-report/src/API/Request.ts.html +0 -727
  59. package/coverage/lcov-report/src/API/Response.ts.html +0 -1189
  60. package/coverage/lcov-report/src/API/Utils.ts.html +0 -313
  61. package/coverage/lcov-report/src/API/index.html +0 -131
  62. package/coverage/lcov-report/src/BaseEvent/EventProcessor.ts.html +0 -496
  63. package/coverage/lcov-report/src/BaseEvent/Process.ts.html +0 -346
  64. package/coverage/lcov-report/src/BaseEvent/Transaction.ts.html +0 -1015
  65. package/coverage/lcov-report/src/BaseEvent/index.html +0 -146
  66. package/coverage/lcov-report/src/Cache/Redis.ts.html +0 -367
  67. package/coverage/lcov-report/src/Cache/index.html +0 -116
  68. package/coverage/lcov-report/src/Config/Configuration.ts.html +0 -700
  69. package/coverage/lcov-report/src/Config/EnvironmentVar.ts.html +0 -526
  70. package/coverage/lcov-report/src/Config/index.html +0 -131
  71. package/coverage/lcov-report/src/Crypto/Crypto.ts.html +0 -352
  72. package/coverage/lcov-report/src/Crypto/JWT.ts.html +0 -337
  73. package/coverage/lcov-report/src/Crypto/index.html +0 -131
  74. package/coverage/lcov-report/src/Database/Database.ts.html +0 -151
  75. package/coverage/lcov-report/src/Database/DatabaseManager.ts.html +0 -289
  76. package/coverage/lcov-report/src/Database/DatabaseTransaction.ts.html +0 -595
  77. package/coverage/lcov-report/src/Database/index.html +0 -161
  78. package/coverage/lcov-report/src/Database/index.ts.html +0 -169
  79. package/coverage/lcov-report/src/Database/integrations/knex/KnexDatabase.ts.html +0 -283
  80. package/coverage/lcov-report/src/Database/integrations/knex/KnexTransaction.ts.html +0 -337
  81. package/coverage/lcov-report/src/Database/integrations/knex/index.html +0 -131
  82. package/coverage/lcov-report/src/Database/integrations/kysely/KyselyDatabase.ts.html +0 -376
  83. package/coverage/lcov-report/src/Database/integrations/kysely/KyselyTransaction.ts.html +0 -601
  84. package/coverage/lcov-report/src/Database/integrations/kysely/index.html +0 -131
  85. package/coverage/lcov-report/src/Database/integrations/pgsql/PostgresDatabase.ts.html +0 -250
  86. package/coverage/lcov-report/src/Database/integrations/pgsql/PostgresTransaction.ts.html +0 -346
  87. package/coverage/lcov-report/src/Database/integrations/pgsql/index.html +0 -131
  88. package/coverage/lcov-report/src/Database/types.d.ts.html +0 -232
  89. package/coverage/lcov-report/src/Globals.ts.html +0 -394
  90. package/coverage/lcov-report/src/Logger/Logger.ts.html +0 -1138
  91. package/coverage/lcov-report/src/Logger/index.html +0 -116
  92. package/coverage/lcov-report/src/Mailer/Mailer.ts.html +0 -754
  93. package/coverage/lcov-report/src/Mailer/index.html +0 -116
  94. package/coverage/lcov-report/src/Publisher/Publisher.ts.html +0 -460
  95. package/coverage/lcov-report/src/Publisher/index.html +0 -116
  96. package/coverage/lcov-report/src/Server/RouteResolver.ts.html +0 -442
  97. package/coverage/lcov-report/src/Server/Router.ts.html +0 -616
  98. package/coverage/lcov-report/src/Server/index.html +0 -131
  99. package/coverage/lcov-report/src/Server/lib/ContainerServer.ts.html +0 -280
  100. package/coverage/lcov-report/src/Server/lib/Server.ts.html +0 -403
  101. package/coverage/lcov-report/src/Server/lib/container/GenericHandler.ts.html +0 -331
  102. package/coverage/lcov-report/src/Server/lib/container/GenericHandlerEvent.ts.html +0 -547
  103. package/coverage/lcov-report/src/Server/lib/container/HealthHandler.ts.html +0 -118
  104. package/coverage/lcov-report/src/Server/lib/container/Proxy.ts.html +0 -619
  105. package/coverage/lcov-report/src/Server/lib/container/Utils.ts.html +0 -184
  106. package/coverage/lcov-report/src/Server/lib/container/index.html +0 -176
  107. package/coverage/lcov-report/src/Server/lib/index.html +0 -131
  108. package/coverage/lcov-report/src/Util/AsyncSingleton.ts.html +0 -343
  109. package/coverage/lcov-report/src/Util/Utils.ts.html +0 -313
  110. package/coverage/lcov-report/src/Util/index.html +0 -131
  111. package/coverage/lcov-report/src/Validation/Validator.ts.html +0 -217
  112. package/coverage/lcov-report/src/Validation/index.html +0 -116
  113. package/coverage/lcov-report/src/index.html +0 -116
  114. package/coverage/lcov.info +0 -2326
@@ -1,38 +0,0 @@
1
- {"total": {"lines":{"total":920,"covered":866,"skipped":0,"pct":94.13},"statements":{"total":1030,"covered":958,"skipped":0,"pct":93},"functions":{"total":270,"covered":243,"skipped":0,"pct":90},"branches":{"total":542,"covered":465,"skipped":0,"pct":85.79},"branchesTrue":{"total":0,"covered":0,"skipped":0,"pct":100}}
2
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Globals.ts": {"lines":{"total":23,"covered":23,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":23,"covered":23,"skipped":0,"pct":100},"branches":{"total":6,"covered":6,"skipped":0,"pct":100}}
3
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/API/Request.ts": {"lines":{"total":49,"covered":49,"skipped":0,"pct":100},"functions":{"total":18,"covered":18,"skipped":0,"pct":100},"statements":{"total":51,"covered":51,"skipped":0,"pct":100},"branches":{"total":32,"covered":30,"skipped":0,"pct":93.75}}
4
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/API/Response.ts": {"lines":{"total":54,"covered":54,"skipped":0,"pct":100},"functions":{"total":20,"covered":19,"skipped":0,"pct":95},"statements":{"total":67,"covered":65,"skipped":0,"pct":97.01},"branches":{"total":54,"covered":52,"skipped":0,"pct":96.29}}
5
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/BaseEvent/EventProcessor.ts": {"lines":{"total":31,"covered":30,"skipped":0,"pct":96.77},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":33,"covered":32,"skipped":0,"pct":96.96},"branches":{"total":36,"covered":32,"skipped":0,"pct":88.88}}
6
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/BaseEvent/Process.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
7
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/BaseEvent/Transaction.ts": {"lines":{"total":70,"covered":64,"skipped":0,"pct":91.42},"functions":{"total":12,"covered":12,"skipped":0,"pct":100},"statements":{"total":76,"covered":70,"skipped":0,"pct":92.1},"branches":{"total":36,"covered":36,"skipped":0,"pct":100}}
8
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Cache/Redis.ts": {"lines":{"total":19,"covered":19,"skipped":0,"pct":100},"functions":{"total":7,"covered":6,"skipped":0,"pct":85.71},"statements":{"total":26,"covered":24,"skipped":0,"pct":92.3},"branches":{"total":8,"covered":6,"skipped":0,"pct":75}}
9
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Config/Configuration.ts": {"lines":{"total":30,"covered":26,"skipped":0,"pct":86.66},"functions":{"total":7,"covered":6,"skipped":0,"pct":85.71},"statements":{"total":36,"covered":30,"skipped":0,"pct":83.33},"branches":{"total":21,"covered":13,"skipped":0,"pct":61.9}}
10
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Config/EnvironmentVar.ts": {"lines":{"total":38,"covered":38,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":45,"covered":45,"skipped":0,"pct":100},"branches":{"total":20,"covered":20,"skipped":0,"pct":100}}
11
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Crypto/Crypto.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
12
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Crypto/JWT.ts": {"lines":{"total":14,"covered":14,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":13,"covered":13,"skipped":0,"pct":100}}
13
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/Database.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
14
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/DatabaseManager.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":1,"covered":1,"skipped":0,"pct":100}}
15
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/DatabaseTransaction.ts": {"lines":{"total":41,"covered":40,"skipped":0,"pct":97.56},"functions":{"total":16,"covered":16,"skipped":0,"pct":100},"statements":{"total":46,"covered":45,"skipped":0,"pct":97.82},"branches":{"total":13,"covered":13,"skipped":0,"pct":100}}
16
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/index.ts": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":6,"covered":1,"skipped":0,"pct":16.66},"statements":{"total":12,"covered":12,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
17
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/integrations/knex/KnexDatabase.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
18
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/integrations/knex/KnexTransaction.ts": {"lines":{"total":13,"covered":13,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":14,"covered":14,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
19
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/integrations/kysely/KyselyDatabase.ts": {"lines":{"total":17,"covered":17,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":1,"covered":1,"skipped":0,"pct":100}}
20
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/integrations/kysely/KyselyTransaction.ts": {"lines":{"total":28,"covered":28,"skipped":0,"pct":100},"functions":{"total":15,"covered":14,"skipped":0,"pct":93.33},"statements":{"total":29,"covered":29,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
21
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/integrations/pgsql/PostgresDatabase.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":1,"covered":1,"skipped":0,"pct":100}}
22
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Database/integrations/pgsql/PostgresTransaction.ts": {"lines":{"total":13,"covered":13,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":14,"covered":14,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
23
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Logger/Logger.ts": {"lines":{"total":86,"covered":75,"skipped":0,"pct":87.2},"functions":{"total":32,"covered":25,"skipped":0,"pct":78.12},"statements":{"total":96,"covered":82,"skipped":0,"pct":85.41},"branches":{"total":100,"covered":69,"skipped":0,"pct":69}}
24
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Mailer/Mailer.ts": {"lines":{"total":42,"covered":17,"skipped":0,"pct":40.47},"functions":{"total":8,"covered":2,"skipped":0,"pct":25},"statements":{"total":49,"covered":20,"skipped":0,"pct":40.81},"branches":{"total":27,"covered":9,"skipped":0,"pct":33.33}}
25
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Publisher/Publisher.ts": {"lines":{"total":27,"covered":27,"skipped":0,"pct":100},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":32,"covered":30,"skipped":0,"pct":93.75},"branches":{"total":11,"covered":9,"skipped":0,"pct":81.81}}
26
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/RouteResolver.ts": {"lines":{"total":26,"covered":26,"skipped":0,"pct":100},"functions":{"total":8,"covered":8,"skipped":0,"pct":100},"statements":{"total":29,"covered":29,"skipped":0,"pct":100},"branches":{"total":21,"covered":21,"skipped":0,"pct":100}}
27
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/Router.ts": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
28
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/lib/ContainerServer.ts": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":6,"covered":5,"skipped":0,"pct":83.33},"statements":{"total":12,"covered":12,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
29
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/lib/Server.ts": {"lines":{"total":31,"covered":31,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":35,"covered":35,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
30
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/lib/container/GenericHandler.ts": {"lines":{"total":28,"covered":27,"skipped":0,"pct":96.42},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":34,"covered":31,"skipped":0,"pct":91.17},"branches":{"total":23,"covered":19,"skipped":0,"pct":82.6}}
31
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/lib/container/GenericHandlerEvent.ts": {"lines":{"total":19,"covered":19,"skipped":0,"pct":100},"functions":{"total":11,"covered":11,"skipped":0,"pct":100},"statements":{"total":20,"covered":20,"skipped":0,"pct":100},"branches":{"total":37,"covered":37,"skipped":0,"pct":100}}
32
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/lib/container/HealthHandler.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
33
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/lib/container/Proxy.ts": {"lines":{"total":45,"covered":44,"skipped":0,"pct":97.77},"functions":{"total":13,"covered":13,"skipped":0,"pct":100},"statements":{"total":53,"covered":52,"skipped":0,"pct":98.11},"branches":{"total":21,"covered":20,"skipped":0,"pct":95.23}}
34
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Server/lib/container/Utils.ts": {"lines":{"total":13,"covered":13,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
35
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Util/AsyncSingleton.ts": {"lines":{"total":28,"covered":25,"skipped":0,"pct":89.28},"functions":{"total":9,"covered":7,"skipped":0,"pct":77.77},"statements":{"total":30,"covered":26,"skipped":0,"pct":86.66},"branches":{"total":5,"covered":4,"skipped":0,"pct":80}}
36
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Util/Utils.ts": {"lines":{"total":19,"covered":19,"skipped":0,"pct":100},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":23,"covered":23,"skipped":0,"pct":100},"branches":{"total":21,"covered":20,"skipped":0,"pct":95.23}}
37
- ,"/Users/gwdebes/Desktop/creator/repos/Wapi/src/Validation/Validator.ts": {"lines":{"total":11,"covered":10,"skipped":0,"pct":90.9},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":12,"covered":11,"skipped":0,"pct":91.66},"branches":{"total":6,"covered":5,"skipped":0,"pct":83.33}}
38
- }
@@ -1,59 +0,0 @@
1
- ----------------------------------|---------|----------|---------|---------|-----------------------------------------
2
- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
3
- ----------------------------------|---------|----------|---------|---------|-----------------------------------------
4
- All files | 93 | 85.79 | 90 | 94.13 |
5
- src | 100 | 100 | 100 | 100 |
6
- Globals.ts | 100 | 100 | 100 | 100 |
7
- src/API | 98.3 | 95.34 | 97.36 | 100 |
8
- Request.ts | 100 | 93.75 | 100 | 100 | 104,194
9
- Response.ts | 97.01 | 96.29 | 95 | 100 | 369
10
- src/BaseEvent | 94.44 | 94.44 | 100 | 94.01 |
11
- EventProcessor.ts | 96.96 | 88.88 | 100 | 96.77 | 82
12
- Process.ts | 100 | 100 | 100 | 100 |
13
- Transaction.ts | 92.1 | 100 | 100 | 91.42 | 260-261,268-272
14
- src/Cache | 92.3 | 75 | 85.71 | 100 |
15
- Redis.ts | 92.3 | 75 | 85.71 | 100 | 95
16
- src/Config | 92.59 | 80.48 | 92.85 | 94.11 |
17
- Configuration.ts | 83.33 | 61.9 | 85.71 | 86.66 | 156-159
18
- EnvironmentVar.ts | 100 | 100 | 100 | 100 |
19
- src/Crypto | 100 | 100 | 100 | 100 |
20
- Crypto.ts | 100 | 100 | 100 | 100 |
21
- JWT.ts | 100 | 100 | 100 | 100 |
22
- src/Database | 98.68 | 100 | 80.76 | 98.59 |
23
- Database.ts | 100 | 100 | 100 | 100 |
24
- DatabaseManager.ts | 100 | 100 | 100 | 100 |
25
- DatabaseTransaction.ts | 97.82 | 100 | 100 | 97.56 | 72
26
- index.ts | 100 | 100 | 16.66 | 100 |
27
- src/Database/integrations/knex | 100 | 100 | 100 | 100 |
28
- KnexDatabase.ts | 100 | 100 | 100 | 100 |
29
- KnexTransaction.ts | 100 | 100 | 100 | 100 |
30
- src/Database/integrations/kysely | 100 | 100 | 94.73 | 100 |
31
- KyselyDatabase.ts | 100 | 100 | 100 | 100 |
32
- KyselyTransaction.ts | 100 | 100 | 93.33 | 100 |
33
- src/Database/integrations/pgsql | 100 | 100 | 100 | 100 |
34
- PostgresDatabase.ts | 100 | 100 | 100 | 100 |
35
- PostgresTransaction.ts | 100 | 100 | 100 | 100 |
36
- src/Logger | 85.41 | 69 | 78.12 | 87.2 |
37
- Logger.ts | 85.41 | 69 | 78.12 | 87.2 | 150-168,199,204-205,236,317,331,335,345
38
- src/Mailer | 40.81 | 33.33 | 25 | 40.47 |
39
- Mailer.ts | 40.81 | 33.33 | 25 | 40.47 | 115-215
40
- src/Publisher | 93.75 | 81.81 | 80 | 100 |
41
- Publisher.ts | 93.75 | 81.81 | 80 | 100 | 126
42
- src/Server | 100 | 100 | 100 | 100 |
43
- RouteResolver.ts | 100 | 100 | 100 | 100 |
44
- Router.ts | 100 | 100 | 100 | 100 |
45
- src/Server/lib | 100 | 100 | 91.66 | 100 |
46
- ContainerServer.ts | 100 | 100 | 83.33 | 100 |
47
- Server.ts | 100 | 100 | 100 | 100 |
48
- src/Server/lib/container | 96.82 | 94.11 | 96.96 | 98.13 |
49
- GenericHandler.ts | 91.17 | 82.6 | 80 | 96.42 | 70
50
- GenericHandlerEvent.ts | 100 | 100 | 100 | 100 |
51
- HealthHandler.ts | 100 | 100 | 100 | 100 |
52
- Proxy.ts | 98.11 | 95.23 | 100 | 97.77 | 123
53
- Utils.ts | 100 | 100 | 100 | 100 |
54
- src/Util | 92.45 | 92.3 | 87.5 | 93.61 |
55
- AsyncSingleton.ts | 86.66 | 80 | 77.77 | 89.28 | 22,55,74
56
- Utils.ts | 100 | 95.23 | 100 | 100 | 19
57
- src/Validation | 91.66 | 83.33 | 100 | 90.9 |
58
- Validator.ts | 91.66 | 83.33 | 100 | 90.9 | 30
59
- ----------------------------------|---------|----------|---------|---------|-----------------------------------------
@@ -1,224 +0,0 @@
1
- body, html {
2
- margin:0; padding: 0;
3
- height: 100%;
4
- }
5
- body {
6
- font-family: Helvetica Neue, Helvetica, Arial;
7
- font-size: 14px;
8
- color:#333;
9
- }
10
- .small { font-size: 12px; }
11
- *, *:after, *:before {
12
- -webkit-box-sizing:border-box;
13
- -moz-box-sizing:border-box;
14
- box-sizing:border-box;
15
- }
16
- h1 { font-size: 20px; margin: 0;}
17
- h2 { font-size: 14px; }
18
- pre {
19
- font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace;
20
- margin: 0;
21
- padding: 0;
22
- -moz-tab-size: 2;
23
- -o-tab-size: 2;
24
- tab-size: 2;
25
- }
26
- a { color:#0074D9; text-decoration:none; }
27
- a:hover { text-decoration:underline; }
28
- .strong { font-weight: bold; }
29
- .space-top1 { padding: 10px 0 0 0; }
30
- .pad2y { padding: 20px 0; }
31
- .pad1y { padding: 10px 0; }
32
- .pad2x { padding: 0 20px; }
33
- .pad2 { padding: 20px; }
34
- .pad1 { padding: 10px; }
35
- .space-left2 { padding-left:55px; }
36
- .space-right2 { padding-right:20px; }
37
- .center { text-align:center; }
38
- .clearfix { display:block; }
39
- .clearfix:after {
40
- content:'';
41
- display:block;
42
- height:0;
43
- clear:both;
44
- visibility:hidden;
45
- }
46
- .fl { float: left; }
47
- @media only screen and (max-width:640px) {
48
- .col3 { width:100%; max-width:100%; }
49
- .hide-mobile { display:none!important; }
50
- }
51
-
52
- .quiet {
53
- color: #7f7f7f;
54
- color: rgba(0,0,0,0.5);
55
- }
56
- .quiet a { opacity: 0.7; }
57
-
58
- .fraction {
59
- font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace;
60
- font-size: 10px;
61
- color: #555;
62
- background: #E8E8E8;
63
- padding: 4px 5px;
64
- border-radius: 3px;
65
- vertical-align: middle;
66
- }
67
-
68
- div.path a:link, div.path a:visited { color: #333; }
69
- table.coverage {
70
- border-collapse: collapse;
71
- margin: 10px 0 0 0;
72
- padding: 0;
73
- }
74
-
75
- table.coverage td {
76
- margin: 0;
77
- padding: 0;
78
- vertical-align: top;
79
- }
80
- table.coverage td.line-count {
81
- text-align: right;
82
- padding: 0 5px 0 20px;
83
- }
84
- table.coverage td.line-coverage {
85
- text-align: right;
86
- padding-right: 10px;
87
- min-width:20px;
88
- }
89
-
90
- table.coverage td span.cline-any {
91
- display: inline-block;
92
- padding: 0 5px;
93
- width: 100%;
94
- }
95
- .missing-if-branch {
96
- display: inline-block;
97
- margin-right: 5px;
98
- border-radius: 3px;
99
- position: relative;
100
- padding: 0 4px;
101
- background: #333;
102
- color: yellow;
103
- }
104
-
105
- .skip-if-branch {
106
- display: none;
107
- margin-right: 10px;
108
- position: relative;
109
- padding: 0 4px;
110
- background: #ccc;
111
- color: white;
112
- }
113
- .missing-if-branch .typ, .skip-if-branch .typ {
114
- color: inherit !important;
115
- }
116
- .coverage-summary {
117
- border-collapse: collapse;
118
- width: 100%;
119
- }
120
- .coverage-summary tr { border-bottom: 1px solid #bbb; }
121
- .keyline-all { border: 1px solid #ddd; }
122
- .coverage-summary td, .coverage-summary th { padding: 10px; }
123
- .coverage-summary tbody { border: 1px solid #bbb; }
124
- .coverage-summary td { border-right: 1px solid #bbb; }
125
- .coverage-summary td:last-child { border-right: none; }
126
- .coverage-summary th {
127
- text-align: left;
128
- font-weight: normal;
129
- white-space: nowrap;
130
- }
131
- .coverage-summary th.file { border-right: none !important; }
132
- .coverage-summary th.pct { }
133
- .coverage-summary th.pic,
134
- .coverage-summary th.abs,
135
- .coverage-summary td.pct,
136
- .coverage-summary td.abs { text-align: right; }
137
- .coverage-summary td.file { white-space: nowrap; }
138
- .coverage-summary td.pic { min-width: 120px !important; }
139
- .coverage-summary tfoot td { }
140
-
141
- .coverage-summary .sorter {
142
- height: 10px;
143
- width: 7px;
144
- display: inline-block;
145
- margin-left: 0.5em;
146
- background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent;
147
- }
148
- .coverage-summary .sorted .sorter {
149
- background-position: 0 -20px;
150
- }
151
- .coverage-summary .sorted-desc .sorter {
152
- background-position: 0 -10px;
153
- }
154
- .status-line { height: 10px; }
155
- /* yellow */
156
- .cbranch-no { background: yellow !important; color: #111; }
157
- /* dark red */
158
- .red.solid, .status-line.low, .low .cover-fill { background:#C21F39 }
159
- .low .chart { border:1px solid #C21F39 }
160
- .highlighted,
161
- .highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{
162
- background: #C21F39 !important;
163
- }
164
- /* medium red */
165
- .cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE }
166
- /* light red */
167
- .low, .cline-no { background:#FCE1E5 }
168
- /* light green */
169
- .high, .cline-yes { background:rgb(230,245,208) }
170
- /* medium green */
171
- .cstat-yes { background:rgb(161,215,106) }
172
- /* dark green */
173
- .status-line.high, .high .cover-fill { background:rgb(77,146,33) }
174
- .high .chart { border:1px solid rgb(77,146,33) }
175
- /* dark yellow (gold) */
176
- .status-line.medium, .medium .cover-fill { background: #f9cd0b; }
177
- .medium .chart { border:1px solid #f9cd0b; }
178
- /* light yellow */
179
- .medium { background: #fff4c2; }
180
-
181
- .cstat-skip { background: #ddd; color: #111; }
182
- .fstat-skip { background: #ddd; color: #111 !important; }
183
- .cbranch-skip { background: #ddd !important; color: #111; }
184
-
185
- span.cline-neutral { background: #eaeaea; }
186
-
187
- .coverage-summary td.empty {
188
- opacity: .5;
189
- padding-top: 4px;
190
- padding-bottom: 4px;
191
- line-height: 1;
192
- color: #888;
193
- }
194
-
195
- .cover-fill, .cover-empty {
196
- display:inline-block;
197
- height: 12px;
198
- }
199
- .chart {
200
- line-height: 0;
201
- }
202
- .cover-empty {
203
- background: white;
204
- }
205
- .cover-full {
206
- border-right: none !important;
207
- }
208
- pre.prettyprint {
209
- border: none !important;
210
- padding: 0 !important;
211
- margin: 0 !important;
212
- }
213
- .com { color: #999 !important; }
214
- .ignore-none { color: #999; font-weight: normal; }
215
-
216
- .wrapper {
217
- min-height: 100%;
218
- height: auto !important;
219
- height: 100%;
220
- margin: 0 auto -48px;
221
- }
222
- .footer, .push {
223
- height: 48px;
224
- }
@@ -1,87 +0,0 @@
1
- /* eslint-disable */
2
- var jumpToCode = (function init() {
3
- // Classes of code we would like to highlight in the file view
4
- var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no'];
5
-
6
- // Elements to highlight in the file listing view
7
- var fileListingElements = ['td.pct.low'];
8
-
9
- // We don't want to select elements that are direct descendants of another match
10
- var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > `
11
-
12
- // Selecter that finds elements on the page to which we can jump
13
- var selector =
14
- fileListingElements.join(', ') +
15
- ', ' +
16
- notSelector +
17
- missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b`
18
-
19
- // The NodeList of matching elements
20
- var missingCoverageElements = document.querySelectorAll(selector);
21
-
22
- var currentIndex;
23
-
24
- function toggleClass(index) {
25
- missingCoverageElements
26
- .item(currentIndex)
27
- .classList.remove('highlighted');
28
- missingCoverageElements.item(index).classList.add('highlighted');
29
- }
30
-
31
- function makeCurrent(index) {
32
- toggleClass(index);
33
- currentIndex = index;
34
- missingCoverageElements.item(index).scrollIntoView({
35
- behavior: 'smooth',
36
- block: 'center',
37
- inline: 'center'
38
- });
39
- }
40
-
41
- function goToPrevious() {
42
- var nextIndex = 0;
43
- if (typeof currentIndex !== 'number' || currentIndex === 0) {
44
- nextIndex = missingCoverageElements.length - 1;
45
- } else if (missingCoverageElements.length > 1) {
46
- nextIndex = currentIndex - 1;
47
- }
48
-
49
- makeCurrent(nextIndex);
50
- }
51
-
52
- function goToNext() {
53
- var nextIndex = 0;
54
-
55
- if (
56
- typeof currentIndex === 'number' &&
57
- currentIndex < missingCoverageElements.length - 1
58
- ) {
59
- nextIndex = currentIndex + 1;
60
- }
61
-
62
- makeCurrent(nextIndex);
63
- }
64
-
65
- return function jump(event) {
66
- if (
67
- document.getElementById('fileSearch') === document.activeElement &&
68
- document.activeElement != null
69
- ) {
70
- // if we're currently focused on the search input, we don't want to navigate
71
- return;
72
- }
73
-
74
- switch (event.which) {
75
- case 78: // n
76
- case 74: // j
77
- goToNext();
78
- break;
79
- case 66: // b
80
- case 75: // k
81
- case 80: // p
82
- goToPrevious();
83
- break;
84
- }
85
- };
86
- })();
87
- window.addEventListener('keydown', jumpToCode);
Binary file