@daiso-tech/core 0.42.0 → 0.44.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 (1410) hide show
  1. package/README.md +19 -9
  2. package/dist/backoff-policies/_module-exports.d.ts +5 -4
  3. package/dist/backoff-policies/_module-exports.js +5 -4
  4. package/dist/backoff-policies/_module-exports.js.map +1 -1
  5. package/dist/backoff-policies/_module.d.ts +7 -0
  6. package/dist/backoff-policies/_module.js +8 -0
  7. package/dist/backoff-policies/_module.js.map +1 -0
  8. package/dist/backoff-policies/_shared.d.ts +8 -3
  9. package/dist/backoff-policies/_shared.js +57 -2
  10. package/dist/backoff-policies/_shared.js.map +1 -1
  11. package/dist/backoff-policies/backoffs-lua.d.ts +7 -0
  12. package/dist/backoff-policies/backoffs-lua.js +78 -0
  13. package/dist/backoff-policies/backoffs-lua.js.map +1 -0
  14. package/dist/backoff-policies/constant-backoff/_module.d.ts +1 -0
  15. package/dist/backoff-policies/constant-backoff/_module.js +2 -0
  16. package/dist/backoff-policies/constant-backoff/_module.js.map +1 -0
  17. package/dist/backoff-policies/constant-backoff/constant-backoff.d.ts +53 -0
  18. package/dist/backoff-policies/constant-backoff/constant-backoff.js +54 -0
  19. package/dist/backoff-policies/constant-backoff/constant-backoff.js.map +1 -0
  20. package/dist/backoff-policies/exponential-backoff/_module.d.ts +1 -0
  21. package/dist/backoff-policies/exponential-backoff/_module.js +2 -0
  22. package/dist/backoff-policies/exponential-backoff/_module.js.map +1 -0
  23. package/dist/backoff-policies/exponential-backoff/exponential-backoff.d.ts +68 -0
  24. package/dist/backoff-policies/exponential-backoff/exponential-backoff.js +59 -0
  25. package/dist/backoff-policies/exponential-backoff/exponential-backoff.js.map +1 -0
  26. package/dist/backoff-policies/linear-backoff/_module.d.ts +1 -0
  27. package/dist/backoff-policies/linear-backoff/_module.js +2 -0
  28. package/dist/backoff-policies/linear-backoff/_module.js.map +1 -0
  29. package/dist/backoff-policies/linear-backoff/linear-backoff.d.ts +63 -0
  30. package/dist/backoff-policies/linear-backoff/linear-backoff.js +57 -0
  31. package/dist/backoff-policies/linear-backoff/linear-backoff.js.map +1 -0
  32. package/dist/backoff-policies/polynomial-backoff/_module.d.ts +1 -0
  33. package/dist/backoff-policies/polynomial-backoff/_module.js +2 -0
  34. package/dist/backoff-policies/polynomial-backoff/_module.js.map +1 -0
  35. package/dist/backoff-policies/polynomial-backoff/polynomial-backoff.d.ts +68 -0
  36. package/dist/backoff-policies/polynomial-backoff/polynomial-backoff.js +59 -0
  37. package/dist/backoff-policies/polynomial-backoff/polynomial-backoff.js.map +1 -0
  38. package/dist/backoff-policies/types.d.ts +83 -0
  39. package/dist/backoff-policies/types.js +18 -0
  40. package/dist/backoff-policies/types.js.map +1 -0
  41. package/dist/cache/contracts/_module-exports.d.ts +5 -4
  42. package/dist/cache/contracts/_module-exports.js +0 -4
  43. package/dist/cache/contracts/_module-exports.js.map +1 -1
  44. package/dist/cache/contracts/_module.d.ts +7 -0
  45. package/dist/cache/contracts/_module.js +3 -0
  46. package/dist/cache/contracts/_module.js.map +1 -0
  47. package/dist/cache/contracts/cache-adapter.contract.d.ts +1 -1
  48. package/dist/cache/contracts/cache-adapter.contract.js +4 -1
  49. package/dist/cache/contracts/cache-adapter.contract.js.map +1 -1
  50. package/dist/cache/contracts/cache-factory.contract.d.ts +1 -1
  51. package/dist/cache/contracts/cache-factory.contract.js +2 -1
  52. package/dist/cache/contracts/cache-factory.contract.js.map +1 -1
  53. package/dist/cache/contracts/cache.contract.d.ts +79 -76
  54. package/dist/cache/contracts/cache.contract.js +10 -1
  55. package/dist/cache/contracts/cache.contract.js.map +1 -1
  56. package/dist/cache/contracts/cache.errors.d.ts +22 -0
  57. package/dist/cache/contracts/cache.errors.js +29 -0
  58. package/dist/cache/contracts/cache.errors.js.map +1 -1
  59. package/dist/cache/contracts/cache.events.d.ts +19 -22
  60. package/dist/cache/contracts/cache.events.js +8 -1
  61. package/dist/cache/contracts/cache.events.js.map +1 -1
  62. package/dist/cache/contracts/types.d.ts +18 -0
  63. package/dist/cache/contracts/types.js +7 -0
  64. package/dist/cache/contracts/types.js.map +1 -0
  65. package/dist/cache/implementations/adapters/_module.d.ts +5 -5
  66. package/dist/cache/implementations/adapters/_module.js +5 -5
  67. package/dist/cache/implementations/adapters/_module.js.map +1 -1
  68. package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.d.ts +1 -0
  69. package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.js +2 -0
  70. package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.js.map +1 -0
  71. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.d.ts +14 -7
  72. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js +13 -5
  73. package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js.map +1 -1
  74. package/dist/cache/implementations/adapters/memory-cache-adapter/_module.d.ts +1 -0
  75. package/dist/cache/implementations/adapters/memory-cache-adapter/_module.js +2 -0
  76. package/dist/cache/implementations/adapters/memory-cache-adapter/_module.js.map +1 -0
  77. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.d.ts +2 -2
  78. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +2 -1
  79. package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
  80. package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module.d.ts +1 -0
  81. package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module.js +2 -0
  82. package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module.js.map +1 -0
  83. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.d.ts +1 -1
  84. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js +1 -1
  85. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js.map +1 -1
  86. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.d.ts +5 -6
  87. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +8 -5
  88. package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js.map +1 -1
  89. package/dist/cache/implementations/adapters/no-op-cache-adapter/_module.d.ts +1 -0
  90. package/dist/cache/implementations/adapters/no-op-cache-adapter/_module.js +2 -0
  91. package/dist/cache/implementations/adapters/no-op-cache-adapter/_module.js.map +1 -0
  92. package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.d.ts +2 -2
  93. package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js +2 -1
  94. package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js.map +1 -1
  95. package/dist/cache/implementations/adapters/redis-cache-adapter/_module.d.ts +1 -0
  96. package/dist/cache/implementations/adapters/redis-cache-adapter/_module.js +2 -0
  97. package/dist/cache/implementations/adapters/redis-cache-adapter/_module.js.map +1 -0
  98. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.d.ts +1 -1
  99. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js +1 -1
  100. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js.map +1 -1
  101. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.d.ts +3 -3
  102. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +6 -2
  103. package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js.map +1 -1
  104. package/dist/cache/implementations/adapters/redis-cache-adapter/utilities.js +1 -1
  105. package/dist/cache/implementations/adapters/redis-cache-adapter/utilities.js.map +1 -1
  106. package/dist/cache/implementations/derivables/_module.d.ts +2 -0
  107. package/dist/cache/implementations/derivables/_module.js +3 -0
  108. package/dist/cache/implementations/derivables/_module.js.map +1 -0
  109. package/dist/cache/implementations/derivables/cache/_module.d.ts +1 -0
  110. package/dist/cache/implementations/derivables/cache/_module.js +1 -0
  111. package/dist/cache/implementations/derivables/cache/_module.js.map +1 -1
  112. package/dist/cache/implementations/derivables/cache/cache.d.ts +44 -39
  113. package/dist/cache/implementations/derivables/cache/cache.js +139 -78
  114. package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
  115. package/dist/cache/implementations/derivables/cache/database-cache-adapter.d.ts +2 -2
  116. package/dist/cache/implementations/derivables/cache/database-cache-adapter.js +2 -1
  117. package/dist/cache/implementations/derivables/cache/database-cache-adapter.js.map +1 -1
  118. package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.d.ts +2 -3
  119. package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js +9 -2
  120. package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js.map +1 -1
  121. package/dist/cache/implementations/derivables/cache/resolve-cache-adapter.d.ts +8 -0
  122. package/dist/cache/implementations/derivables/cache/resolve-cache-adapter.js +16 -0
  123. package/dist/cache/implementations/derivables/cache/resolve-cache-adapter.js.map +1 -0
  124. package/dist/cache/implementations/derivables/cache-factory/cache-factory.d.ts +8 -7
  125. package/dist/cache/implementations/derivables/cache-factory/cache-factory.js +13 -2
  126. package/dist/cache/implementations/derivables/cache-factory/cache-factory.js.map +1 -1
  127. package/dist/cache/implementations/test-utilities/_module.d.ts +3 -0
  128. package/dist/cache/implementations/test-utilities/_module.js +4 -0
  129. package/dist/cache/implementations/test-utilities/_module.js.map +1 -0
  130. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.d.ts +2 -2
  131. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +4 -4
  132. package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js.map +1 -1
  133. package/dist/cache/implementations/test-utilities/cache.test-suite.d.ts +6 -2
  134. package/dist/cache/implementations/test-utilities/cache.test-suite.js +1479 -607
  135. package/dist/cache/implementations/test-utilities/cache.test-suite.js.map +1 -1
  136. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.d.ts +2 -2
  137. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +3 -3
  138. package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js.map +1 -1
  139. package/dist/circuit-breaker/contracts/_module-exports.d.ts +9 -0
  140. package/dist/circuit-breaker/contracts/_module-exports.js +6 -0
  141. package/dist/circuit-breaker/contracts/_module-exports.js.map +1 -0
  142. package/dist/circuit-breaker/contracts/_module.d.ts +9 -0
  143. package/dist/circuit-breaker/contracts/_module.js +6 -0
  144. package/dist/circuit-breaker/contracts/_module.js.map +1 -0
  145. package/dist/circuit-breaker/contracts/circuit-breaker-adapter.contract.d.ts +45 -0
  146. package/dist/circuit-breaker/contracts/circuit-breaker-adapter.contract.js +7 -0
  147. package/dist/circuit-breaker/contracts/circuit-breaker-adapter.contract.js.map +1 -0
  148. package/dist/circuit-breaker/contracts/circuit-breaker-policy.contract.d.ts +114 -0
  149. package/dist/circuit-breaker/contracts/circuit-breaker-policy.contract.js +41 -0
  150. package/dist/circuit-breaker/contracts/circuit-breaker-policy.contract.js.map +1 -0
  151. package/dist/circuit-breaker/contracts/circuit-breaker-provider-factory.contract.d.ts +19 -0
  152. package/dist/circuit-breaker/contracts/circuit-breaker-provider-factory.contract.js +10 -0
  153. package/dist/circuit-breaker/contracts/circuit-breaker-provider-factory.contract.js.map +1 -0
  154. package/dist/circuit-breaker/contracts/circuit-breaker-provider.contract.d.ts +63 -0
  155. package/dist/circuit-breaker/contracts/circuit-breaker-provider.contract.js +19 -0
  156. package/dist/circuit-breaker/contracts/circuit-breaker-provider.contract.js.map +1 -0
  157. package/dist/circuit-breaker/contracts/circuit-breaker-state.contract.d.ts +20 -0
  158. package/dist/circuit-breaker/contracts/circuit-breaker-state.contract.js +15 -0
  159. package/dist/circuit-breaker/contracts/circuit-breaker-state.contract.js.map +1 -0
  160. package/dist/circuit-breaker/contracts/circuit-breaker-storage-adapter.contract.d.ts +52 -0
  161. package/dist/circuit-breaker/contracts/circuit-breaker-storage-adapter.contract.js +5 -0
  162. package/dist/circuit-breaker/contracts/circuit-breaker-storage-adapter.contract.js.map +1 -0
  163. package/dist/circuit-breaker/contracts/circuit-breaker.contract.d.ts +40 -0
  164. package/dist/circuit-breaker/contracts/circuit-breaker.contract.js +9 -0
  165. package/dist/circuit-breaker/contracts/circuit-breaker.contract.js.map +1 -0
  166. package/dist/circuit-breaker/contracts/circuit-breaker.errors.d.ts +49 -0
  167. package/dist/circuit-breaker/contracts/circuit-breaker.errors.js +61 -0
  168. package/dist/circuit-breaker/contracts/circuit-breaker.errors.js.map +1 -0
  169. package/dist/circuit-breaker/contracts/circuit-breaker.events.d.ts +96 -0
  170. package/dist/circuit-breaker/contracts/circuit-breaker.events.js +20 -0
  171. package/dist/circuit-breaker/contracts/circuit-breaker.events.js.map +1 -0
  172. package/dist/circuit-breaker/implementations/adapters/_module.d.ts +7 -0
  173. package/dist/circuit-breaker/implementations/adapters/_module.js +8 -0
  174. package/dist/circuit-breaker/implementations/adapters/_module.js.map +1 -0
  175. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module-exports.d.ts +1 -0
  176. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module-exports.js +2 -0
  177. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module-exports.js.map +1 -0
  178. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module.d.ts +1 -0
  179. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module.js +2 -0
  180. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module.js.map +1 -0
  181. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-state-manager.d.ts +18 -0
  182. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-state-manager.js +57 -0
  183. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-state-manager.js.map +1 -0
  184. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-storage.d.ts +17 -0
  185. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-storage.js +40 -0
  186. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-storage.js.map +1 -0
  187. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/database-circuit-breaker-adapter.d.ts +59 -0
  188. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/database-circuit-breaker-adapter.js +57 -0
  189. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/database-circuit-breaker-adapter.js.map +1 -0
  190. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/internal-circuit-breaker-policy.d.ts +65 -0
  191. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/internal-circuit-breaker-policy.js +128 -0
  192. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/internal-circuit-breaker-policy.js.map +1 -0
  193. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/types.d.ts +12 -0
  194. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/types.js +6 -0
  195. package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/types.js.map +1 -0
  196. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
  197. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module-exports.js +2 -0
  198. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
  199. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module.d.ts +1 -0
  200. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module.js +2 -0
  201. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module.js.map +1 -0
  202. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/kysely-circuit-breaker-storage-adapter.d.ts +81 -0
  203. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/kysely-circuit-breaker-storage-adapter.js +149 -0
  204. package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/kysely-circuit-breaker-storage-adapter.js.map +1 -0
  205. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
  206. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module-exports.js +2 -0
  207. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
  208. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module.d.ts +1 -0
  209. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module.js +2 -0
  210. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module.js.map +1 -0
  211. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/memory-circuit-breaker-storage-adapter.d.ts +42 -0
  212. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/memory-circuit-breaker-storage-adapter.js +60 -0
  213. package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/memory-circuit-breaker-storage-adapter.js.map +1 -0
  214. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
  215. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module-exports.js +2 -0
  216. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
  217. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module.d.ts +1 -0
  218. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module.js +2 -0
  219. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module.js.map +1 -0
  220. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/mongodb-circuit-breaker-storage-adapter.d.ts +80 -0
  221. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/mongodb-circuit-breaker-storage-adapter.js +115 -0
  222. package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/mongodb-circuit-breaker-storage-adapter.js.map +1 -0
  223. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module-exports.d.ts +1 -0
  224. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module-exports.js +2 -0
  225. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module-exports.js.map +1 -0
  226. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module.d.ts +1 -0
  227. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module.js +2 -0
  228. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module.js.map +1 -0
  229. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/no-op-circuit-breaker-adapter.d.ts +16 -0
  230. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/no-op-circuit-breaker-adapter.js +32 -0
  231. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/no-op-circuit-breaker-adapter.js.map +1 -0
  232. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
  233. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module-exports.js +2 -0
  234. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
  235. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module.d.ts +1 -0
  236. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module.js +2 -0
  237. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module.js.map +1 -0
  238. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/no-op-circuit-breaker-storage-adapter.d.ts +16 -0
  239. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/no-op-circuit-breaker-storage-adapter.js +24 -0
  240. package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/no-op-circuit-breaker-storage-adapter.js.map +1 -0
  241. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module-exports.d.ts +1 -0
  242. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module-exports.js +2 -0
  243. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module-exports.js.map +1 -0
  244. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module.d.ts +1 -0
  245. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module.js +2 -0
  246. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module.js.map +1 -0
  247. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/_module.d.ts +1 -0
  248. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/_module.js +2 -0
  249. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/_module.js.map +1 -0
  250. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-factory-lua.d.ts +4 -0
  251. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-factory-lua.js +76 -0
  252. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-factory-lua.js.map +1 -0
  253. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-lua.d.ts +7 -0
  254. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-lua.js +34 -0
  255. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-lua.js.map +1 -0
  256. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-state-manager-lua.d.ts +7 -0
  257. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-state-manager-lua.js +64 -0
  258. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-state-manager-lua.js.map +1 -0
  259. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-storage-lua.d.ts +7 -0
  260. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-storage-lua.js +39 -0
  261. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-storage-lua.js.map +1 -0
  262. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/consecutive-breaker-lua.d.ts +7 -0
  263. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/consecutive-breaker-lua.js +75 -0
  264. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/consecutive-breaker-lua.js.map +1 -0
  265. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/count-breaker-lua.d.ts +7 -0
  266. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/count-breaker-lua.js +136 -0
  267. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/count-breaker-lua.js.map +1 -0
  268. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/internal-circuit-breaker-policy-lua.d.ts +7 -0
  269. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/internal-circuit-breaker-policy-lua.js +144 -0
  270. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/internal-circuit-breaker-policy-lua.js.map +1 -0
  271. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/sampling-breaker-lua.d.ts +7 -0
  272. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/sampling-breaker-lua.js +153 -0
  273. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/sampling-breaker-lua.js.map +1 -0
  274. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/redis-circuit-breaker-adapter.d.ts +68 -0
  275. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/redis-circuit-breaker-adapter.js +131 -0
  276. package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/redis-circuit-breaker-adapter.js.map +1 -0
  277. package/dist/circuit-breaker/implementations/derivables/_module-exports.d.ts +2 -0
  278. package/dist/circuit-breaker/implementations/derivables/_module-exports.js +3 -0
  279. package/dist/circuit-breaker/implementations/derivables/_module-exports.js.map +1 -0
  280. package/dist/circuit-breaker/implementations/derivables/_module.d.ts +2 -0
  281. package/dist/circuit-breaker/implementations/derivables/_module.js +3 -0
  282. package/dist/circuit-breaker/implementations/derivables/_module.js.map +1 -0
  283. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/_module.d.ts +1 -0
  284. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/_module.js +2 -0
  285. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/_module.js.map +1 -0
  286. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-provider.d.ts +154 -0
  287. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-provider.js +138 -0
  288. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-provider.js.map +1 -0
  289. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-serde-transformer.d.ts +41 -0
  290. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-serde-transformer.js +77 -0
  291. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-serde-transformer.js.map +1 -0
  292. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker.d.ts +62 -0
  293. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker.js +201 -0
  294. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker.js.map +1 -0
  295. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/_module.d.ts +2 -0
  296. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/_module.js +3 -0
  297. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/_module.js.map +1 -0
  298. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/circuit-breaker-provider-factory.d.ts +108 -0
  299. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/circuit-breaker-provider-factory.js +140 -0
  300. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/circuit-breaker-provider-factory.js.map +1 -0
  301. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/database-circuit-breaker-provider-factory.d.ts +137 -0
  302. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/database-circuit-breaker-provider-factory.js +164 -0
  303. package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/database-circuit-breaker-provider-factory.js.map +1 -0
  304. package/dist/circuit-breaker/implementations/policies/_module-exports.d.ts +5 -0
  305. package/dist/circuit-breaker/implementations/policies/_module-exports.js +6 -0
  306. package/dist/circuit-breaker/implementations/policies/_module-exports.js.map +1 -0
  307. package/dist/circuit-breaker/implementations/policies/_module.d.ts +5 -0
  308. package/dist/circuit-breaker/implementations/policies/_module.js +6 -0
  309. package/dist/circuit-breaker/implementations/policies/_module.js.map +1 -0
  310. package/dist/circuit-breaker/implementations/policies/_shared.d.ts +12 -0
  311. package/dist/circuit-breaker/implementations/policies/_shared.js +50 -0
  312. package/dist/circuit-breaker/implementations/policies/_shared.js.map +1 -0
  313. package/dist/circuit-breaker/implementations/policies/consecutive-breaker/_module.d.ts +1 -0
  314. package/dist/circuit-breaker/implementations/policies/consecutive-breaker/_module.js +2 -0
  315. package/dist/circuit-breaker/implementations/policies/consecutive-breaker/_module.js.map +1 -0
  316. package/dist/circuit-breaker/implementations/policies/consecutive-breaker/consecutive-breaker.d.ts +51 -0
  317. package/dist/circuit-breaker/implementations/policies/consecutive-breaker/consecutive-breaker.js +85 -0
  318. package/dist/circuit-breaker/implementations/policies/consecutive-breaker/consecutive-breaker.js.map +1 -0
  319. package/dist/circuit-breaker/implementations/policies/count-breaker/_module.d.ts +1 -0
  320. package/dist/circuit-breaker/implementations/policies/count-breaker/_module.js +2 -0
  321. package/dist/circuit-breaker/implementations/policies/count-breaker/_module.js.map +1 -0
  322. package/dist/circuit-breaker/implementations/policies/count-breaker/count-breaker.d.ts +74 -0
  323. package/dist/circuit-breaker/implementations/policies/count-breaker/count-breaker.js +130 -0
  324. package/dist/circuit-breaker/implementations/policies/count-breaker/count-breaker.js.map +1 -0
  325. package/dist/circuit-breaker/implementations/policies/sampling-breaker/_module.d.ts +1 -0
  326. package/dist/circuit-breaker/implementations/policies/sampling-breaker/_module.js +2 -0
  327. package/dist/circuit-breaker/implementations/policies/sampling-breaker/_module.js.map +1 -0
  328. package/dist/circuit-breaker/implementations/policies/sampling-breaker/sampling-breaker.d.ts +112 -0
  329. package/dist/circuit-breaker/implementations/policies/sampling-breaker/sampling-breaker.js +159 -0
  330. package/dist/circuit-breaker/implementations/policies/sampling-breaker/sampling-breaker.js.map +1 -0
  331. package/dist/circuit-breaker/implementations/policies/types.d.ts +51 -0
  332. package/dist/circuit-breaker/implementations/policies/types.js +16 -0
  333. package/dist/circuit-breaker/implementations/policies/types.js.map +1 -0
  334. package/dist/circuit-breaker/implementations/test-utilities/_module-exports.d.ts +4 -0
  335. package/dist/circuit-breaker/implementations/test-utilities/_module-exports.js +5 -0
  336. package/dist/circuit-breaker/implementations/test-utilities/_module-exports.js.map +1 -0
  337. package/dist/circuit-breaker/implementations/test-utilities/_module.d.ts +4 -0
  338. package/dist/circuit-breaker/implementations/test-utilities/_module.js +5 -0
  339. package/dist/circuit-breaker/implementations/test-utilities/_module.js.map +1 -0
  340. package/dist/circuit-breaker/implementations/test-utilities/circuit-breaker-storage-adapter.test-suite.d.ts +45 -0
  341. package/dist/circuit-breaker/implementations/test-utilities/circuit-breaker-storage-adapter.test-suite.js +110 -0
  342. package/dist/circuit-breaker/implementations/test-utilities/circuit-breaker-storage-adapter.test-suite.js.map +1 -0
  343. package/dist/circuit-breaker/implementations/test-utilities/consecutive-breaker.test-suite.d.ts +60 -0
  344. package/dist/circuit-breaker/implementations/test-utilities/consecutive-breaker.test-suite.js +454 -0
  345. package/dist/circuit-breaker/implementations/test-utilities/consecutive-breaker.test-suite.js.map +1 -0
  346. package/dist/circuit-breaker/implementations/test-utilities/count-breaker.test-suite.d.ts +60 -0
  347. package/dist/circuit-breaker/implementations/test-utilities/count-breaker.test-suite.js +704 -0
  348. package/dist/circuit-breaker/implementations/test-utilities/count-breaker.test-suite.js.map +1 -0
  349. package/dist/circuit-breaker/implementations/test-utilities/sampling-breaker.test-suite.d.ts +60 -0
  350. package/dist/circuit-breaker/implementations/test-utilities/sampling-breaker.test-suite.js +95 -0
  351. package/dist/circuit-breaker/implementations/test-utilities/sampling-breaker.test-suite.js.map +1 -0
  352. package/dist/collection/contracts/_module-exports.d.ts +3 -3
  353. package/dist/collection/contracts/_module-exports.js +0 -3
  354. package/dist/collection/contracts/_module-exports.js.map +1 -1
  355. package/dist/collection/contracts/_module.d.ts +4 -0
  356. package/dist/collection/contracts/_module.js +2 -0
  357. package/dist/collection/contracts/_module.js.map +1 -0
  358. package/dist/collection/contracts/_shared/_module.d.ts +11 -11
  359. package/dist/collection/contracts/_shared/_module.js +1 -11
  360. package/dist/collection/contracts/_shared/_module.js.map +1 -1
  361. package/dist/collection/contracts/_shared/compartor.type.d.ts +1 -1
  362. package/dist/collection/contracts/_shared/compartor.type.js +1 -1
  363. package/dist/collection/contracts/_shared/compartor.type.js.map +1 -1
  364. package/dist/collection/contracts/_shared/foreach.type.d.ts +1 -1
  365. package/dist/collection/contracts/_shared/foreach.type.js +1 -1
  366. package/dist/collection/contracts/_shared/foreach.type.js.map +1 -1
  367. package/dist/collection/contracts/_shared/map.type.d.ts +1 -1
  368. package/dist/collection/contracts/_shared/map.type.js +1 -1
  369. package/dist/collection/contracts/_shared/map.type.js.map +1 -1
  370. package/dist/collection/contracts/_shared/modifier.type.d.ts +1 -1
  371. package/dist/collection/contracts/_shared/modifier.type.js +1 -1
  372. package/dist/collection/contracts/_shared/modifier.type.js.map +1 -1
  373. package/dist/collection/contracts/_shared/predicate.type.d.ts +1 -1
  374. package/dist/collection/contracts/_shared/predicate.type.js +1 -1
  375. package/dist/collection/contracts/_shared/predicate.type.js.map +1 -1
  376. package/dist/collection/contracts/_shared/reduce.type.d.ts +1 -1
  377. package/dist/collection/contracts/_shared/reduce.type.js +1 -1
  378. package/dist/collection/contracts/_shared/reduce.type.js.map +1 -1
  379. package/dist/collection/contracts/_shared/tap.type.d.ts +1 -1
  380. package/dist/collection/contracts/_shared/tap.type.js +1 -1
  381. package/dist/collection/contracts/_shared/tap.type.js.map +1 -1
  382. package/dist/collection/contracts/_shared/transform.type.d.ts +1 -1
  383. package/dist/collection/contracts/_shared/transform.type.js +1 -1
  384. package/dist/collection/contracts/_shared/transform.type.js.map +1 -1
  385. package/dist/collection/contracts/async-collection.contract.d.ts +54 -54
  386. package/dist/collection/contracts/async-collection.contract.js +5 -1
  387. package/dist/collection/contracts/async-collection.contract.js.map +1 -1
  388. package/dist/collection/contracts/collection.contract.d.ts +12 -12
  389. package/dist/collection/contracts/collection.contract.js +5 -1
  390. package/dist/collection/contracts/collection.contract.js.map +1 -1
  391. package/dist/collection/contracts/collection.errors.d.ts +18 -10
  392. package/dist/collection/contracts/collection.errors.js +24 -13
  393. package/dist/collection/contracts/collection.errors.js.map +1 -1
  394. package/dist/collection/implementations/_module.d.ts +4 -0
  395. package/dist/collection/implementations/_module.js +5 -0
  396. package/dist/collection/implementations/_module.js.map +1 -0
  397. package/dist/collection/implementations/_shared.d.ts +0 -23
  398. package/dist/collection/implementations/_shared.js +0 -41
  399. package/dist/collection/implementations/_shared.js.map +1 -1
  400. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.d.ts +2 -2
  401. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.js +2 -2
  402. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
  403. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.d.ts +2 -2
  404. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js +2 -2
  405. package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
  406. package/dist/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.d.ts +1 -1
  407. package/dist/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js +2 -2
  408. package/dist/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
  409. package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.d.ts +1 -1
  410. package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js +2 -2
  411. package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
  412. package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.d.ts +2 -3
  413. package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js +3 -4
  414. package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
  415. package/dist/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.d.ts +1 -1
  416. package/dist/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js +2 -2
  417. package/dist/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -1
  418. package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.d.ts +1 -1
  419. package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js +2 -2
  420. package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
  421. package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.d.ts +1 -1
  422. package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js +2 -2
  423. package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
  424. package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.d.ts +2 -2
  425. package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js +2 -2
  426. package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
  427. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.d.ts +2 -2
  428. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js +3 -3
  429. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
  430. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.d.ts +2 -2
  431. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js +3 -3
  432. package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
  433. package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.d.ts +1 -1
  434. package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js +2 -2
  435. package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
  436. package/dist/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.d.ts +1 -1
  437. package/dist/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js +4 -5
  438. package/dist/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
  439. package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.d.ts +2 -2
  440. package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js +2 -2
  441. package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -1
  442. package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.d.ts +2 -2
  443. package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js +2 -2
  444. package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -1
  445. package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.d.ts +2 -2
  446. package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js +2 -2
  447. package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
  448. package/dist/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.d.ts +2 -2
  449. package/dist/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js +2 -2
  450. package/dist/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
  451. package/dist/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.d.ts +2 -2
  452. package/dist/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js +2 -2
  453. package/dist/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -1
  454. package/dist/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.d.ts +1 -1
  455. package/dist/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js +1 -1
  456. package/dist/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -1
  457. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.d.ts +1 -1
  458. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js +1 -1
  459. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
  460. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.d.ts +1 -1
  461. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js +2 -2
  462. package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
  463. package/dist/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.d.ts +1 -1
  464. package/dist/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js +1 -1
  465. package/dist/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -1
  466. package/dist/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.d.ts +1 -1
  467. package/dist/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js +1 -1
  468. package/dist/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
  469. package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.d.ts +1 -1
  470. package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js +2 -2
  471. package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -1
  472. package/dist/collection/implementations/async-iterable-collection/_shared/async-split-iterable.d.ts +2 -2
  473. package/dist/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js +2 -2
  474. package/dist/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
  475. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-iterable.d.ts +1 -1
  476. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js +1 -1
  477. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
  478. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.d.ts +1 -1
  479. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js +2 -2
  480. package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
  481. package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.d.ts +1 -1
  482. package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js +2 -2
  483. package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
  484. package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.d.ts +1 -1
  485. package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js +2 -2
  486. package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
  487. package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.d.ts +1 -1
  488. package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js +2 -2
  489. package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
  490. package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.d.ts +1 -1
  491. package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.js +4 -0
  492. package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.js.map +1 -1
  493. package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.d.ts +1 -1
  494. package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js +2 -2
  495. package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
  496. package/dist/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.d.ts +1 -1
  497. package/dist/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js +3 -16
  498. package/dist/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -1
  499. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +43 -44
  500. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js +32 -32
  501. package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
  502. package/dist/collection/implementations/iterable-collection/_shared/chunk-iterable.d.ts +1 -1
  503. package/dist/collection/implementations/iterable-collection/_shared/chunk-iterable.js +1 -1
  504. package/dist/collection/implementations/iterable-collection/_shared/chunk-iterable.js.map +1 -1
  505. package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.d.ts +1 -1
  506. package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js +2 -2
  507. package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
  508. package/dist/collection/implementations/iterable-collection/_shared/collapse-iterable.d.ts +1 -1
  509. package/dist/collection/implementations/iterable-collection/_shared/collapse-iterable.js +2 -2
  510. package/dist/collection/implementations/iterable-collection/_shared/collapse-iterable.js.map +1 -1
  511. package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.d.ts +1 -1
  512. package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js +2 -2
  513. package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -1
  514. package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.d.ts +1 -1
  515. package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.js +2 -1
  516. package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
  517. package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.d.ts +1 -1
  518. package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js +2 -2
  519. package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -1
  520. package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.d.ts +1 -1
  521. package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js +2 -2
  522. package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
  523. package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.d.ts +1 -1
  524. package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js +2 -2
  525. package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -1
  526. package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.d.ts +1 -1
  527. package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js +2 -2
  528. package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
  529. package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.d.ts +1 -1
  530. package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js +2 -2
  531. package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
  532. package/dist/collection/implementations/iterable-collection/_shared/map-iterable.d.ts +1 -1
  533. package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js +2 -2
  534. package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -1
  535. package/dist/collection/implementations/iterable-collection/_shared/merge-iterable.d.ts +2 -1
  536. package/dist/collection/implementations/iterable-collection/_shared/merge-iterable.js +3 -2
  537. package/dist/collection/implementations/iterable-collection/_shared/merge-iterable.js.map +1 -1
  538. package/dist/collection/implementations/iterable-collection/_shared/pad-end-iterable.d.ts +1 -1
  539. package/dist/collection/implementations/iterable-collection/_shared/pad-end-iterable.js +1 -1
  540. package/dist/collection/implementations/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
  541. package/dist/collection/implementations/iterable-collection/_shared/pad-start-iterable.d.ts +1 -1
  542. package/dist/collection/implementations/iterable-collection/_shared/pad-start-iterable.js +1 -1
  543. package/dist/collection/implementations/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
  544. package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.d.ts +1 -1
  545. package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js +2 -2
  546. package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -1
  547. package/dist/collection/implementations/iterable-collection/_shared/repeat-iterable.d.ts +1 -1
  548. package/dist/collection/implementations/iterable-collection/_shared/repeat-iterable.js +1 -1
  549. package/dist/collection/implementations/iterable-collection/_shared/repeat-iterable.js.map +1 -1
  550. package/dist/collection/implementations/iterable-collection/_shared/reverse-iterable.d.ts +1 -1
  551. package/dist/collection/implementations/iterable-collection/_shared/reverse-iterable.js +1 -1
  552. package/dist/collection/implementations/iterable-collection/_shared/reverse-iterable.js.map +1 -1
  553. package/dist/collection/implementations/iterable-collection/_shared/skip-iterable.d.ts +1 -1
  554. package/dist/collection/implementations/iterable-collection/_shared/skip-iterable.js +1 -1
  555. package/dist/collection/implementations/iterable-collection/_shared/skip-iterable.js.map +1 -1
  556. package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.d.ts +1 -1
  557. package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js +2 -2
  558. package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
  559. package/dist/collection/implementations/iterable-collection/_shared/slice-iterable.d.ts +1 -1
  560. package/dist/collection/implementations/iterable-collection/_shared/slice-iterable.js +1 -1
  561. package/dist/collection/implementations/iterable-collection/_shared/slice-iterable.js.map +1 -1
  562. package/dist/collection/implementations/iterable-collection/_shared/sliding-iterable.d.ts +1 -1
  563. package/dist/collection/implementations/iterable-collection/_shared/sliding-iterable.js +1 -1
  564. package/dist/collection/implementations/iterable-collection/_shared/sliding-iterable.js.map +1 -1
  565. package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.d.ts +1 -1
  566. package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js +2 -2
  567. package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -1
  568. package/dist/collection/implementations/iterable-collection/_shared/split-iterable.d.ts +1 -1
  569. package/dist/collection/implementations/iterable-collection/_shared/split-iterable.js +1 -1
  570. package/dist/collection/implementations/iterable-collection/_shared/split-iterable.js.map +1 -1
  571. package/dist/collection/implementations/iterable-collection/_shared/take-iterable.d.ts +1 -1
  572. package/dist/collection/implementations/iterable-collection/_shared/take-iterable.js +1 -1
  573. package/dist/collection/implementations/iterable-collection/_shared/take-iterable.js.map +1 -1
  574. package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.d.ts +1 -1
  575. package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js +2 -2
  576. package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -1
  577. package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.d.ts +1 -1
  578. package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js +2 -2
  579. package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -1
  580. package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.d.ts +1 -1
  581. package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js +2 -2
  582. package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -1
  583. package/dist/collection/implementations/iterable-collection/_shared/update-iterable.d.ts +1 -1
  584. package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js +2 -2
  585. package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -1
  586. package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.d.ts +4 -1
  587. package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.js +2 -1
  588. package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.js.map +1 -1
  589. package/dist/collection/implementations/iterable-collection/_shared/when-iterable.d.ts +1 -1
  590. package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js +2 -2
  591. package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -1
  592. package/dist/collection/implementations/iterable-collection/iterable-collection.d.ts +17 -18
  593. package/dist/collection/implementations/iterable-collection/iterable-collection.js +39 -40
  594. package/dist/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
  595. package/dist/collection/implementations/list-collection/list-collection.d.ts +16 -17
  596. package/dist/collection/implementations/list-collection/list-collection.js +45 -41
  597. package/dist/collection/implementations/list-collection/list-collection.js.map +1 -1
  598. package/dist/event-bus/contracts/_module-exports.d.ts +3 -3
  599. package/dist/event-bus/contracts/_module-exports.js +1 -3
  600. package/dist/event-bus/contracts/_module-exports.js.map +1 -1
  601. package/dist/event-bus/contracts/_module.d.ts +3 -0
  602. package/dist/event-bus/contracts/_module.js +2 -0
  603. package/dist/event-bus/contracts/_module.js.map +1 -0
  604. package/dist/event-bus/contracts/event-bus-adapter.contract.d.ts +21 -8
  605. package/dist/event-bus/contracts/event-bus-adapter.contract.js +1 -1
  606. package/dist/event-bus/contracts/event-bus-adapter.contract.js.map +1 -1
  607. package/dist/event-bus/contracts/event-bus-factory.contract.d.ts +1 -1
  608. package/dist/event-bus/contracts/event-bus-factory.contract.js +2 -1
  609. package/dist/event-bus/contracts/event-bus-factory.contract.js.map +1 -1
  610. package/dist/event-bus/contracts/event-bus.contract.d.ts +12 -12
  611. package/dist/event-bus/contracts/event-bus.contract.js +3 -1
  612. package/dist/event-bus/contracts/event-bus.contract.js.map +1 -1
  613. package/dist/event-bus/implementations/adapters/_module.d.ts +3 -3
  614. package/dist/event-bus/implementations/adapters/_module.js +3 -3
  615. package/dist/event-bus/implementations/adapters/_module.js.map +1 -1
  616. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module.d.ts +1 -0
  617. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js +2 -0
  618. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js.map +1 -0
  619. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +1 -1
  620. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +1 -0
  621. package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
  622. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module.d.ts +1 -0
  623. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module.js +2 -0
  624. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module.js.map +1 -0
  625. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +1 -2
  626. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js +1 -0
  627. package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
  628. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.d.ts +1 -0
  629. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js +2 -0
  630. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js.map +1 -0
  631. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +3 -3
  632. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +4 -2
  633. package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
  634. package/dist/event-bus/implementations/derivables/_module.d.ts +2 -0
  635. package/dist/event-bus/implementations/derivables/_module.js +3 -0
  636. package/dist/event-bus/implementations/derivables/_module.js.map +1 -0
  637. package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +11 -13
  638. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +7 -6
  639. package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
  640. package/dist/event-bus/implementations/derivables/event-bus/listener-store.d.ts +1 -1
  641. package/dist/event-bus/implementations/derivables/event-bus/listener-store.js +2 -1
  642. package/dist/event-bus/implementations/derivables/event-bus/listener-store.js.map +1 -1
  643. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.d.ts +3 -5
  644. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js +4 -5
  645. package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js.map +1 -1
  646. package/dist/event-bus/implementations/test-utilities/_module.d.ts +2 -0
  647. package/dist/event-bus/implementations/test-utilities/_module.js +3 -0
  648. package/dist/event-bus/implementations/test-utilities/_module.js.map +1 -0
  649. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.d.ts +2 -2
  650. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js +4 -3
  651. package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js.map +1 -1
  652. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.d.ts +2 -2
  653. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +6 -6
  654. package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
  655. package/dist/hooks/_module-exports.d.ts +1 -1
  656. package/dist/hooks/_module-exports.js +0 -1
  657. package/dist/hooks/_module-exports.js.map +1 -1
  658. package/dist/hooks/_module.d.ts +3 -0
  659. package/dist/hooks/_module.js +3 -0
  660. package/dist/hooks/_module.js.map +1 -0
  661. package/dist/hooks/async-hooks.d.ts +3 -3
  662. package/dist/hooks/async-hooks.js +8 -5
  663. package/dist/hooks/async-hooks.js.map +1 -1
  664. package/dist/hooks/hooks.d.ts +2 -2
  665. package/dist/hooks/hooks.js +2 -1
  666. package/dist/hooks/hooks.js.map +1 -1
  667. package/dist/lock/contracts/_module-exports.d.ts +6 -6
  668. package/dist/lock/contracts/_module-exports.js +0 -6
  669. package/dist/lock/contracts/_module-exports.js.map +1 -1
  670. package/dist/lock/contracts/_module.d.ts +9 -0
  671. package/dist/lock/contracts/_module.js +4 -0
  672. package/dist/lock/contracts/_module.js.map +1 -0
  673. package/dist/lock/contracts/database-lock-adapter.contract.d.ts +8 -3
  674. package/dist/lock/contracts/database-lock-adapter.contract.js +1 -1
  675. package/dist/lock/contracts/database-lock-adapter.contract.js.map +1 -1
  676. package/dist/lock/contracts/lock-adapter.contract.d.ts +1 -1
  677. package/dist/lock/contracts/lock-adapter.contract.js +3 -1
  678. package/dist/lock/contracts/lock-adapter.contract.js.map +1 -1
  679. package/dist/lock/contracts/lock-provider-factory.contract.d.ts +1 -1
  680. package/dist/lock/contracts/lock-provider-factory.contract.js +2 -1
  681. package/dist/lock/contracts/lock-provider-factory.contract.js.map +1 -1
  682. package/dist/lock/contracts/lock-provider.contract.d.ts +4 -8
  683. package/dist/lock/contracts/lock-provider.contract.js +4 -1
  684. package/dist/lock/contracts/lock-provider.contract.js.map +1 -1
  685. package/dist/lock/contracts/lock-state.contract.d.ts +2 -2
  686. package/dist/lock/contracts/lock-state.contract.js +1 -0
  687. package/dist/lock/contracts/lock-state.contract.js.map +1 -1
  688. package/dist/lock/contracts/lock.contract.d.ts +18 -27
  689. package/dist/lock/contracts/lock.contract.js +5 -1
  690. package/dist/lock/contracts/lock.contract.js.map +1 -1
  691. package/dist/lock/contracts/lock.errors.d.ts +19 -0
  692. package/dist/lock/contracts/lock.errors.js +25 -0
  693. package/dist/lock/contracts/lock.errors.js.map +1 -1
  694. package/dist/lock/contracts/lock.events.d.ts +1 -1
  695. package/dist/lock/contracts/lock.events.js +2 -0
  696. package/dist/lock/contracts/lock.events.js.map +1 -1
  697. package/dist/lock/contracts/types.d.ts +2 -2
  698. package/dist/lock/contracts/types.js +2 -1
  699. package/dist/lock/contracts/types.js.map +1 -1
  700. package/dist/lock/implementations/adapters/_module.d.ts +5 -5
  701. package/dist/lock/implementations/adapters/_module.js +5 -5
  702. package/dist/lock/implementations/adapters/_module.js.map +1 -1
  703. package/dist/lock/implementations/adapters/kysely-lock-adapter/_module.d.ts +1 -0
  704. package/dist/lock/implementations/adapters/kysely-lock-adapter/_module.js +2 -0
  705. package/dist/lock/implementations/adapters/kysely-lock-adapter/_module.js.map +1 -0
  706. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.d.ts +8 -13
  707. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js +9 -8
  708. package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js.map +1 -1
  709. package/dist/lock/implementations/adapters/memory-lock-adapter/_module.d.ts +1 -0
  710. package/dist/lock/implementations/adapters/memory-lock-adapter/_module.js +2 -0
  711. package/dist/lock/implementations/adapters/memory-lock-adapter/_module.js.map +1 -0
  712. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.d.ts +7 -4
  713. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js +7 -1
  714. package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js.map +1 -1
  715. package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module.d.ts +1 -0
  716. package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module.js +2 -0
  717. package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module.js.map +1 -0
  718. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.d.ts +4 -5
  719. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js +4 -1
  720. package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js.map +1 -1
  721. package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.d.ts +1 -0
  722. package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.js +2 -0
  723. package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.js.map +1 -0
  724. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.d.ts +2 -2
  725. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js +2 -0
  726. package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js.map +1 -1
  727. package/dist/lock/implementations/adapters/redis-lock-adapter/_module.d.ts +1 -0
  728. package/dist/lock/implementations/adapters/redis-lock-adapter/_module.js +2 -0
  729. package/dist/lock/implementations/adapters/redis-lock-adapter/_module.js.map +1 -0
  730. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.d.ts +3 -4
  731. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js +3 -0
  732. package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js.map +1 -1
  733. package/dist/lock/implementations/derivables/_module.d.ts +2 -0
  734. package/dist/lock/implementations/derivables/_module.js +3 -0
  735. package/dist/lock/implementations/derivables/_module.js.map +1 -0
  736. package/dist/lock/implementations/derivables/lock-provider/_module.d.ts +1 -0
  737. package/dist/lock/implementations/derivables/lock-provider/_module.js +1 -0
  738. package/dist/lock/implementations/derivables/lock-provider/_module.js.map +1 -1
  739. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.d.ts +2 -2
  740. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js +5 -3
  741. package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js.map +1 -1
  742. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.d.ts +1 -2
  743. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js +4 -0
  744. package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js.map +1 -1
  745. package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +29 -18
  746. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +19 -14
  747. package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
  748. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +6 -6
  749. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js +6 -2
  750. package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js.map +1 -1
  751. package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +19 -23
  752. package/dist/lock/implementations/derivables/lock-provider/lock.js +13 -37
  753. package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
  754. package/dist/lock/implementations/derivables/lock-provider/resolve-lock-adapter.d.ts +8 -0
  755. package/dist/lock/implementations/derivables/lock-provider/{resolve-database-lock-adapter.js → resolve-lock-adapter.js} +7 -3
  756. package/dist/lock/implementations/derivables/lock-provider/resolve-lock-adapter.js.map +1 -0
  757. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.d.ts +6 -6
  758. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js +9 -2
  759. package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js.map +1 -1
  760. package/dist/lock/implementations/test-utilities/_module.d.ts +3 -0
  761. package/dist/lock/implementations/test-utilities/_module.js +4 -0
  762. package/dist/lock/implementations/test-utilities/_module.js.map +1 -0
  763. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.d.ts +2 -2
  764. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js +3 -3
  765. package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js.map +1 -1
  766. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.d.ts +2 -2
  767. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js +4 -4
  768. package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js.map +1 -1
  769. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.d.ts +3 -3
  770. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +6 -541
  771. package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js.map +1 -1
  772. package/dist/namespace/_module.d.ts +1 -0
  773. package/dist/namespace/_module.js +2 -0
  774. package/dist/namespace/_module.js.map +1 -0
  775. package/dist/namespace/namespace.d.ts +1 -1
  776. package/dist/namespace/namespace.js +1 -1
  777. package/dist/namespace/namespace.js.map +1 -1
  778. package/dist/rate-limiter/contracts/_module-exports.d.ts +9 -0
  779. package/dist/rate-limiter/contracts/_module-exports.js +4 -0
  780. package/dist/rate-limiter/contracts/_module-exports.js.map +1 -0
  781. package/dist/rate-limiter/contracts/_module.d.ts +9 -0
  782. package/dist/rate-limiter/contracts/_module.js +4 -0
  783. package/dist/rate-limiter/contracts/_module.js.map +1 -0
  784. package/dist/rate-limiter/contracts/rate-limiter-adapter.contract.d.ts +36 -0
  785. package/dist/rate-limiter/contracts/rate-limiter-adapter.contract.js +7 -0
  786. package/dist/rate-limiter/contracts/rate-limiter-adapter.contract.js.map +1 -0
  787. package/dist/rate-limiter/contracts/rate-limiter-policy.contract.d.ts +28 -0
  788. package/dist/rate-limiter/contracts/rate-limiter-policy.contract.js +5 -0
  789. package/dist/rate-limiter/contracts/rate-limiter-policy.contract.js.map +1 -0
  790. package/dist/rate-limiter/contracts/rate-limiter-provider-factory.contract.d.ts +19 -0
  791. package/dist/rate-limiter/contracts/rate-limiter-provider-factory.contract.js +10 -0
  792. package/dist/rate-limiter/contracts/rate-limiter-provider-factory.contract.js.map +1 -0
  793. package/dist/rate-limiter/contracts/rate-limiter-provider.contract.d.ts +39 -0
  794. package/dist/rate-limiter/contracts/rate-limiter-provider.contract.js +8 -0
  795. package/dist/rate-limiter/contracts/rate-limiter-provider.contract.js.map +1 -0
  796. package/dist/rate-limiter/contracts/rate-limiter-state.contract.d.ts +58 -0
  797. package/dist/rate-limiter/contracts/rate-limiter-state.contract.js +15 -0
  798. package/dist/rate-limiter/contracts/rate-limiter-state.contract.js.map +1 -0
  799. package/dist/rate-limiter/contracts/rate-limiter-storage-adapter.contract.d.ts +65 -0
  800. package/dist/rate-limiter/contracts/rate-limiter-storage-adapter.contract.js +5 -0
  801. package/dist/rate-limiter/contracts/rate-limiter-storage-adapter.contract.js.map +1 -0
  802. package/dist/rate-limiter/contracts/rate-limiter.contract.d.ts +46 -0
  803. package/dist/rate-limiter/contracts/rate-limiter.contract.js +10 -0
  804. package/dist/rate-limiter/contracts/rate-limiter.contract.js.map +1 -0
  805. package/dist/rate-limiter/contracts/rate-limiter.errors.d.ts +34 -0
  806. package/dist/rate-limiter/contracts/rate-limiter.errors.js +40 -0
  807. package/dist/rate-limiter/contracts/rate-limiter.errors.js.map +1 -0
  808. package/dist/rate-limiter/contracts/rate-limiter.events.d.ts +74 -0
  809. package/dist/rate-limiter/contracts/rate-limiter.events.js +17 -0
  810. package/dist/rate-limiter/contracts/rate-limiter.events.js.map +1 -0
  811. package/dist/rate-limiter/implementations/adapters/_module.d.ts +7 -0
  812. package/dist/rate-limiter/implementations/adapters/_module.js +8 -0
  813. package/dist/rate-limiter/implementations/adapters/_module.js.map +1 -0
  814. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module-exports.d.ts +1 -0
  815. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module-exports.js +2 -0
  816. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module-exports.js.map +1 -0
  817. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module.d.ts +1 -0
  818. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module.js +2 -0
  819. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module.js.map +1 -0
  820. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/database-rate-limiter-adapter.d.ts +56 -0
  821. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/database-rate-limiter-adapter.js +77 -0
  822. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/database-rate-limiter-adapter.js.map +1 -0
  823. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/internal-rate-limiter-policy.d.ts +48 -0
  824. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/internal-rate-limiter-policy.js +70 -0
  825. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/internal-rate-limiter-policy.js.map +1 -0
  826. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-state-manager.d.ts +15 -0
  827. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-state-manager.js +33 -0
  828. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-state-manager.js.map +1 -0
  829. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-storage.d.ts +46 -0
  830. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-storage.js +68 -0
  831. package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-storage.js.map +1 -0
  832. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
  833. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module-exports.js +2 -0
  834. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
  835. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module.d.ts +1 -0
  836. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module.js +2 -0
  837. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module.js.map +1 -0
  838. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/kysely-rate-limiter-storage-adapter.d.ts +95 -0
  839. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/kysely-rate-limiter-storage-adapter.js +186 -0
  840. package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/kysely-rate-limiter-storage-adapter.js.map +1 -0
  841. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
  842. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module-exports.js +2 -0
  843. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
  844. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module.d.ts +1 -0
  845. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module.js +2 -0
  846. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module.js.map +1 -0
  847. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/memory-rate-limiter-storage-adapter.d.ts +37 -0
  848. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/memory-rate-limiter-storage-adapter.js +71 -0
  849. package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/memory-rate-limiter-storage-adapter.js.map +1 -0
  850. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
  851. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module-exports.js +2 -0
  852. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
  853. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module.d.ts +1 -0
  854. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module.js +2 -0
  855. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module.js.map +1 -0
  856. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/mongodb-rate-limiter-storage-adapter.d.ts +77 -0
  857. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/mongodb-rate-limiter-storage-adapter.js +126 -0
  858. package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/mongodb-rate-limiter-storage-adapter.js.map +1 -0
  859. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module-exports.d.ts +1 -0
  860. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module-exports.js +2 -0
  861. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module-exports.js.map +1 -0
  862. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module.d.ts +1 -0
  863. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module.js +2 -0
  864. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module.js.map +1 -0
  865. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/no-op-rate-limiter-adapter.d.ts +13 -0
  866. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/no-op-rate-limiter-adapter.js +30 -0
  867. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/no-op-rate-limiter-adapter.js.map +1 -0
  868. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
  869. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module-exports.js +2 -0
  870. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
  871. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module.d.ts +1 -0
  872. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module.js +2 -0
  873. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module.js.map +1 -0
  874. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/no-op-rate-limiter-storage-adapter.d.ts +16 -0
  875. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/no-op-rate-limiter-storage-adapter.js +33 -0
  876. package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/no-op-rate-limiter-storage-adapter.js.map +1 -0
  877. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module-exports.d.ts +1 -0
  878. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module-exports.js +2 -0
  879. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module-exports.js.map +1 -0
  880. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module.d.ts +1 -0
  881. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module.js +2 -0
  882. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module.js.map +1 -0
  883. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/_module.d.ts +1 -0
  884. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/_module.js +2 -0
  885. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/_module.js.map +1 -0
  886. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/fixed-window-limiter-lua.d.ts +7 -0
  887. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/fixed-window-limiter-lua.js +55 -0
  888. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/fixed-window-limiter-lua.js.map +1 -0
  889. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/internal-rate-limiter-policy-lua.d.ts +7 -0
  890. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/internal-rate-limiter-policy-lua.js +100 -0
  891. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/internal-rate-limiter-policy-lua.js.map +1 -0
  892. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-factory-lua.d.ts +4 -0
  893. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-factory-lua.js +71 -0
  894. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-factory-lua.js.map +1 -0
  895. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-lua.d.ts +4 -0
  896. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-lua.js +45 -0
  897. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-lua.js.map +1 -0
  898. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-state-manager-lua.d.ts +7 -0
  899. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-state-manager-lua.js +51 -0
  900. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-state-manager-lua.js.map +1 -0
  901. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-storage-lua.d.ts +7 -0
  902. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-storage-lua.js +76 -0
  903. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-storage-lua.js.map +1 -0
  904. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/sliding-window-limiter-lua.d.ts +7 -0
  905. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/sliding-window-limiter-lua.js +113 -0
  906. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/sliding-window-limiter-lua.js.map +1 -0
  907. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/redis-rate-limiter-adapter.d.ts +69 -0
  908. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/redis-rate-limiter-adapter.js +112 -0
  909. package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/redis-rate-limiter-adapter.js.map +1 -0
  910. package/dist/rate-limiter/implementations/derivables/_module-exports.d.ts +2 -0
  911. package/dist/rate-limiter/implementations/derivables/_module-exports.js +3 -0
  912. package/dist/rate-limiter/implementations/derivables/_module-exports.js.map +1 -0
  913. package/dist/rate-limiter/implementations/derivables/_module.d.ts +2 -0
  914. package/dist/rate-limiter/implementations/derivables/_module.js +3 -0
  915. package/dist/rate-limiter/implementations/derivables/_module.js.map +1 -0
  916. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/_module.d.ts +1 -0
  917. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/_module.js +2 -0
  918. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/_module.js.map +1 -0
  919. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter-provider.d.ts +123 -0
  920. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter-provider.js +104 -0
  921. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter-provider.js.map +1 -0
  922. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter.d.ts +41 -0
  923. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter.js +154 -0
  924. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter.js.map +1 -0
  925. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/_module.d.ts +2 -0
  926. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/_module.js +3 -0
  927. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/_module.js.map +1 -0
  928. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/database-rate-limiter-provider-factory.d.ts +135 -0
  929. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/database-rate-limiter-provider-factory.js +156 -0
  930. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/database-rate-limiter-provider-factory.js.map +1 -0
  931. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/rate-limiter-provider-factory.d.ts +106 -0
  932. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/rate-limiter-provider-factory.js +132 -0
  933. package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/rate-limiter-provider-factory.js.map +1 -0
  934. package/dist/rate-limiter/implementations/policies/_module-exports.d.ts +4 -0
  935. package/dist/rate-limiter/implementations/policies/_module-exports.js +5 -0
  936. package/dist/rate-limiter/implementations/policies/_module-exports.js.map +1 -0
  937. package/dist/rate-limiter/implementations/policies/_module.d.ts +4 -0
  938. package/dist/rate-limiter/implementations/policies/_module.js +5 -0
  939. package/dist/rate-limiter/implementations/policies/_module.js.map +1 -0
  940. package/dist/rate-limiter/implementations/policies/_shared.d.ts +12 -0
  941. package/dist/rate-limiter/implementations/policies/_shared.js +37 -0
  942. package/dist/rate-limiter/implementations/policies/_shared.js.map +1 -0
  943. package/dist/rate-limiter/implementations/policies/fixed-window-limiter/_module.d.ts +1 -0
  944. package/dist/rate-limiter/implementations/policies/fixed-window-limiter/_module.js +2 -0
  945. package/dist/rate-limiter/implementations/policies/fixed-window-limiter/_module.js.map +1 -0
  946. package/dist/rate-limiter/implementations/policies/fixed-window-limiter/fixed-window-limiter.d.ts +74 -0
  947. package/dist/rate-limiter/implementations/policies/fixed-window-limiter/fixed-window-limiter.js +73 -0
  948. package/dist/rate-limiter/implementations/policies/fixed-window-limiter/fixed-window-limiter.js.map +1 -0
  949. package/dist/rate-limiter/implementations/policies/sliding-window-limiter/_module.d.ts +1 -0
  950. package/dist/rate-limiter/implementations/policies/sliding-window-limiter/_module.js +2 -0
  951. package/dist/rate-limiter/implementations/policies/sliding-window-limiter/_module.js.map +1 -0
  952. package/dist/rate-limiter/implementations/policies/sliding-window-limiter/sliding-window-limiter.d.ts +86 -0
  953. package/dist/rate-limiter/implementations/policies/sliding-window-limiter/sliding-window-limiter.js +106 -0
  954. package/dist/rate-limiter/implementations/policies/sliding-window-limiter/sliding-window-limiter.js.map +1 -0
  955. package/dist/rate-limiter/implementations/policies/types.d.ts +47 -0
  956. package/dist/rate-limiter/implementations/policies/types.js +14 -0
  957. package/dist/rate-limiter/implementations/policies/types.js.map +1 -0
  958. package/dist/rate-limiter/implementations/test-utilities/_module-exports.d.ts +3 -0
  959. package/dist/rate-limiter/implementations/test-utilities/_module-exports.js +4 -0
  960. package/dist/rate-limiter/implementations/test-utilities/_module-exports.js.map +1 -0
  961. package/dist/rate-limiter/implementations/test-utilities/_module.d.ts +3 -0
  962. package/dist/rate-limiter/implementations/test-utilities/_module.js +4 -0
  963. package/dist/rate-limiter/implementations/test-utilities/_module.js.map +1 -0
  964. package/dist/rate-limiter/implementations/test-utilities/fixed-window-limiter.test-suite.d.ts +60 -0
  965. package/dist/rate-limiter/implementations/test-utilities/fixed-window-limiter.test-suite.js +250 -0
  966. package/dist/rate-limiter/implementations/test-utilities/fixed-window-limiter.test-suite.js.map +1 -0
  967. package/dist/rate-limiter/implementations/test-utilities/rate-limiter-storage-adapter.test-suite.d.ts +45 -0
  968. package/dist/rate-limiter/implementations/test-utilities/rate-limiter-storage-adapter.test-suite.js +102 -0
  969. package/dist/rate-limiter/implementations/test-utilities/rate-limiter-storage-adapter.test-suite.js.map +1 -0
  970. package/dist/rate-limiter/implementations/test-utilities/sliding-window-limiter.test-suite.d.ts +60 -0
  971. package/dist/rate-limiter/implementations/test-utilities/sliding-window-limiter.test-suite.js +91 -0
  972. package/dist/rate-limiter/implementations/test-utilities/sliding-window-limiter.test-suite.js.map +1 -0
  973. package/dist/resilience/_module.d.ts +2 -0
  974. package/dist/resilience/_module.js +3 -0
  975. package/dist/resilience/_module.js.map +1 -0
  976. package/dist/resilience/middlewares/dynamic/dynamic.middleware.d.ts +2 -2
  977. package/dist/resilience/middlewares/dynamic/dynamic.middleware.js +2 -1
  978. package/dist/resilience/middlewares/dynamic/dynamic.middleware.js.map +1 -1
  979. package/dist/resilience/middlewares/fallback/_module.d.ts +1 -1
  980. package/dist/resilience/middlewares/fallback/_module.js +0 -1
  981. package/dist/resilience/middlewares/fallback/_module.js.map +1 -1
  982. package/dist/resilience/middlewares/fallback/fallback.middleware.d.ts +3 -25
  983. package/dist/resilience/middlewares/fallback/fallback.middleware.js +6 -32
  984. package/dist/resilience/middlewares/fallback/fallback.middleware.js.map +1 -1
  985. package/dist/resilience/middlewares/fallback/fallback.types.d.ts +4 -6
  986. package/dist/resilience/middlewares/fallback/fallback.types.js +2 -2
  987. package/dist/resilience/middlewares/fallback/fallback.types.js.map +1 -1
  988. package/dist/resilience/middlewares/observe/_module.d.ts +1 -1
  989. package/dist/resilience/middlewares/observe/_module.js +0 -1
  990. package/dist/resilience/middlewares/observe/_module.js.map +1 -1
  991. package/dist/resilience/middlewares/observe/observe.middleware.d.ts +3 -39
  992. package/dist/resilience/middlewares/observe/observe.middleware.js +5 -57
  993. package/dist/resilience/middlewares/observe/observe.middleware.js.map +1 -1
  994. package/dist/resilience/middlewares/observe/observe.types.d.ts +4 -5
  995. package/dist/resilience/middlewares/observe/observe.types.js +3 -1
  996. package/dist/resilience/middlewares/observe/observe.types.js.map +1 -1
  997. package/dist/resilience/middlewares/retry/_module.d.ts +1 -1
  998. package/dist/resilience/middlewares/retry/_module.js +0 -1
  999. package/dist/resilience/middlewares/retry/_module.js.map +1 -1
  1000. package/dist/resilience/middlewares/retry/retry.middleware.d.ts +3 -33
  1001. package/dist/resilience/middlewares/retry/retry.middleware.js +9 -40
  1002. package/dist/resilience/middlewares/retry/retry.middleware.js.map +1 -1
  1003. package/dist/resilience/middlewares/retry/retry.types.d.ts +7 -9
  1004. package/dist/resilience/middlewares/retry/retry.types.js +4 -3
  1005. package/dist/resilience/middlewares/retry/retry.types.js.map +1 -1
  1006. package/dist/resilience/middlewares/timeout/_module.d.ts +1 -1
  1007. package/dist/resilience/middlewares/timeout/_module.js +0 -1
  1008. package/dist/resilience/middlewares/timeout/_module.js.map +1 -1
  1009. package/dist/resilience/middlewares/timeout/timeout.middleware.d.ts +2 -2
  1010. package/dist/resilience/middlewares/timeout/timeout.middleware.js +4 -2
  1011. package/dist/resilience/middlewares/timeout/timeout.middleware.js.map +1 -1
  1012. package/dist/resilience/middlewares/timeout/timeout.type.d.ts +4 -4
  1013. package/dist/resilience/middlewares/timeout/timeout.type.js +4 -1
  1014. package/dist/resilience/middlewares/timeout/timeout.type.js.map +1 -1
  1015. package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.d.ts +1 -1
  1016. package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.js +1 -1
  1017. package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.js.map +1 -1
  1018. package/dist/semaphore/contracts/_module-exports.d.ts +6 -6
  1019. package/dist/semaphore/contracts/_module-exports.js +0 -6
  1020. package/dist/semaphore/contracts/_module-exports.js.map +1 -1
  1021. package/dist/semaphore/contracts/_module.d.ts +9 -0
  1022. package/dist/semaphore/contracts/_module.js +4 -0
  1023. package/dist/semaphore/contracts/_module.js.map +1 -0
  1024. package/dist/semaphore/contracts/database-semaphore-adapter.contract.d.ts +1 -1
  1025. package/dist/semaphore/contracts/database-semaphore-adapter.contract.js +1 -1
  1026. package/dist/semaphore/contracts/database-semaphore-adapter.contract.js.map +1 -1
  1027. package/dist/semaphore/contracts/semaphore-adapter.contract.d.ts +1 -1
  1028. package/dist/semaphore/contracts/semaphore-adapter.contract.js +3 -1
  1029. package/dist/semaphore/contracts/semaphore-adapter.contract.js.map +1 -1
  1030. package/dist/semaphore/contracts/semaphore-provider-factory.contract.d.ts +1 -1
  1031. package/dist/semaphore/contracts/semaphore-provider-factory.contract.js +2 -1
  1032. package/dist/semaphore/contracts/semaphore-provider-factory.contract.js.map +1 -1
  1033. package/dist/semaphore/contracts/semaphore-provider.contract.d.ts +4 -8
  1034. package/dist/semaphore/contracts/semaphore-provider.contract.js +4 -1
  1035. package/dist/semaphore/contracts/semaphore-provider.contract.js.map +1 -1
  1036. package/dist/semaphore/contracts/semaphore-state.contract.d.ts +2 -2
  1037. package/dist/semaphore/contracts/semaphore-state.contract.js +1 -0
  1038. package/dist/semaphore/contracts/semaphore-state.contract.js.map +1 -1
  1039. package/dist/semaphore/contracts/semaphore.contract.d.ts +18 -28
  1040. package/dist/semaphore/contracts/semaphore.contract.js +5 -1
  1041. package/dist/semaphore/contracts/semaphore.contract.js.map +1 -1
  1042. package/dist/semaphore/contracts/semaphore.errors.d.ts +19 -0
  1043. package/dist/semaphore/contracts/semaphore.errors.js +25 -0
  1044. package/dist/semaphore/contracts/semaphore.errors.js.map +1 -1
  1045. package/dist/semaphore/contracts/semaphore.events.d.ts +1 -1
  1046. package/dist/semaphore/contracts/semaphore.events.js +1 -0
  1047. package/dist/semaphore/contracts/semaphore.events.js.map +1 -1
  1048. package/dist/semaphore/contracts/types.d.ts +2 -2
  1049. package/dist/semaphore/contracts/types.js +2 -1
  1050. package/dist/semaphore/contracts/types.js.map +1 -1
  1051. package/dist/semaphore/implementations/adapters/_module.d.ts +5 -5
  1052. package/dist/semaphore/implementations/adapters/_module.js +5 -5
  1053. package/dist/semaphore/implementations/adapters/_module.js.map +1 -1
  1054. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.d.ts +1 -0
  1055. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.js +2 -0
  1056. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.js.map +1 -0
  1057. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.d.ts +12 -5
  1058. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js +11 -4
  1059. package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js.map +1 -1
  1060. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.d.ts +1 -0
  1061. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.js +2 -0
  1062. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.js.map +1 -0
  1063. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.d.ts +9 -4
  1064. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js +19 -1
  1065. package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js.map +1 -1
  1066. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.d.ts +1 -0
  1067. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.js +2 -0
  1068. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.js.map +1 -0
  1069. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.d.ts +8 -5
  1070. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.js +7 -3
  1071. package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.js.map +1 -1
  1072. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.d.ts +1 -0
  1073. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.js +2 -0
  1074. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.js.map +1 -0
  1075. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.d.ts +2 -2
  1076. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.js +2 -0
  1077. package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.js.map +1 -1
  1078. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.d.ts +1 -0
  1079. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.js +2 -0
  1080. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.js.map +1 -0
  1081. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.d.ts +3 -3
  1082. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.js +3 -0
  1083. package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.js.map +1 -1
  1084. package/dist/semaphore/implementations/derivables/_module-exports.d.ts +1 -1
  1085. package/dist/semaphore/implementations/derivables/_module-exports.js +0 -1
  1086. package/dist/semaphore/implementations/derivables/_module-exports.js.map +1 -1
  1087. package/dist/semaphore/implementations/derivables/_module.d.ts +2 -0
  1088. package/dist/semaphore/implementations/derivables/_module.js +2 -0
  1089. package/dist/semaphore/implementations/derivables/_module.js.map +1 -0
  1090. package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.d.ts +2 -2
  1091. package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.js +3 -1
  1092. package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.js.map +1 -1
  1093. package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.d.ts +1 -1
  1094. package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.js +4 -0
  1095. package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.js.map +1 -1
  1096. package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-semaphore-adapter.d.ts +8 -0
  1097. package/dist/semaphore/implementations/derivables/semaphore-provider/{resolve-database-semaphore-adapter.js → resolve-semaphore-adapter.js} +4 -3
  1098. package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-semaphore-adapter.js.map +1 -0
  1099. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.d.ts +30 -18
  1100. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.js +19 -12
  1101. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.js.map +1 -1
  1102. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.d.ts +6 -6
  1103. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.js +6 -3
  1104. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.js.map +1 -1
  1105. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.d.ts +19 -23
  1106. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.js +13 -36
  1107. package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.js.map +1 -1
  1108. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.d.ts +1 -1
  1109. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.js +1 -1
  1110. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.js.map +1 -1
  1111. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.d.ts +5 -5
  1112. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.js +9 -2
  1113. package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.js.map +1 -1
  1114. package/dist/semaphore/implementations/test-utilities/_module.d.ts +3 -0
  1115. package/dist/semaphore/implementations/test-utilities/_module.js +4 -0
  1116. package/dist/semaphore/implementations/test-utilities/_module.js.map +1 -0
  1117. package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.d.ts +2 -2
  1118. package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.js +3 -2
  1119. package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.js.map +1 -1
  1120. package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.d.ts +3 -3
  1121. package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.js +5 -5
  1122. package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.js.map +1 -1
  1123. package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.d.ts +3 -3
  1124. package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.js +76 -805
  1125. package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.js.map +1 -1
  1126. package/dist/serde/contracts/_module-exports.d.ts +5 -5
  1127. package/dist/serde/contracts/_module-exports.js +0 -5
  1128. package/dist/serde/contracts/_module-exports.js.map +1 -1
  1129. package/dist/serde/contracts/_module.d.ts +6 -0
  1130. package/dist/serde/contracts/_module.js +2 -0
  1131. package/dist/serde/contracts/_module.js.map +1 -0
  1132. package/dist/serde/contracts/flexible-serde-adapter.contract.d.ts +1 -1
  1133. package/dist/serde/contracts/flexible-serde-adapter.contract.js +1 -1
  1134. package/dist/serde/contracts/flexible-serde-adapter.contract.js.map +1 -1
  1135. package/dist/serde/contracts/flexible-serde.contract.d.ts +2 -2
  1136. package/dist/serde/contracts/flexible-serde.contract.js +2 -1
  1137. package/dist/serde/contracts/flexible-serde.contract.js.map +1 -1
  1138. package/dist/serde/contracts/serde.contract.d.ts +2 -2
  1139. package/dist/serde/contracts/serde.contract.js +2 -1
  1140. package/dist/serde/contracts/serde.contract.js.map +1 -1
  1141. package/dist/serde/contracts/serde.errors.d.ts +12 -0
  1142. package/dist/serde/contracts/serde.errors.js +16 -0
  1143. package/dist/serde/contracts/serde.errors.js.map +1 -1
  1144. package/dist/serde/implementations/adapters/_module.d.ts +2 -2
  1145. package/dist/serde/implementations/adapters/_module.js +2 -2
  1146. package/dist/serde/implementations/adapters/_module.js.map +1 -1
  1147. package/dist/serde/implementations/adapters/no-op-serde-adapter/_module.d.ts +1 -0
  1148. package/dist/serde/implementations/adapters/no-op-serde-adapter/_module.js +2 -0
  1149. package/dist/serde/implementations/adapters/no-op-serde-adapter/_module.js.map +1 -0
  1150. package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.d.ts +1 -1
  1151. package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js +4 -0
  1152. package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js.map +1 -1
  1153. package/dist/serde/implementations/adapters/super-json-serde-adapter/_module.d.ts +1 -0
  1154. package/dist/serde/implementations/adapters/super-json-serde-adapter/_module.js +2 -0
  1155. package/dist/serde/implementations/adapters/super-json-serde-adapter/_module.js.map +1 -0
  1156. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.d.ts +1 -1
  1157. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +3 -3
  1158. package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js.map +1 -1
  1159. package/dist/serde/implementations/derivables/_module.d.ts +1 -0
  1160. package/dist/serde/implementations/derivables/_module.js +2 -0
  1161. package/dist/serde/implementations/derivables/_module.js.map +1 -0
  1162. package/dist/serde/implementations/derivables/serde-transformers.d.ts +2 -2
  1163. package/dist/serde/implementations/derivables/serde-transformers.js +5 -1
  1164. package/dist/serde/implementations/derivables/serde-transformers.js.map +1 -1
  1165. package/dist/serde/implementations/derivables/serde.d.ts +2 -2
  1166. package/dist/serde/implementations/derivables/serde.js +2 -1
  1167. package/dist/serde/implementations/derivables/serde.js.map +1 -1
  1168. package/dist/serde/implementations/test-utilities/_module.d.ts +2 -0
  1169. package/dist/serde/implementations/test-utilities/_module.js +3 -0
  1170. package/dist/serde/implementations/test-utilities/_module.js.map +1 -0
  1171. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.d.ts +1 -1
  1172. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +1 -0
  1173. package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js.map +1 -1
  1174. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.d.ts +1 -1
  1175. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +1 -0
  1176. package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js.map +1 -1
  1177. package/dist/shared-lock/contracts/_module-exports.d.ts +7 -7
  1178. package/dist/shared-lock/contracts/_module-exports.js +0 -7
  1179. package/dist/shared-lock/contracts/_module-exports.js.map +1 -1
  1180. package/dist/shared-lock/contracts/_module.d.ts +10 -0
  1181. package/dist/shared-lock/contracts/_module.js +4 -0
  1182. package/dist/shared-lock/contracts/_module.js.map +1 -0
  1183. package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.d.ts +1 -1
  1184. package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.js +1 -1
  1185. package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.js.map +1 -1
  1186. package/dist/shared-lock/contracts/shared-lock-adapter.contract.d.ts +1 -1
  1187. package/dist/shared-lock/contracts/shared-lock-adapter.contract.js +3 -1
  1188. package/dist/shared-lock/contracts/shared-lock-adapter.contract.js.map +1 -1
  1189. package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.d.ts +1 -1
  1190. package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.js +2 -1
  1191. package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.js.map +1 -1
  1192. package/dist/shared-lock/contracts/shared-lock-provider.contract.d.ts +4 -8
  1193. package/dist/shared-lock/contracts/shared-lock-provider.contract.js +4 -1
  1194. package/dist/shared-lock/contracts/shared-lock-provider.contract.js.map +1 -1
  1195. package/dist/shared-lock/contracts/shared-lock-state.contract.d.ts +3 -3
  1196. package/dist/shared-lock/contracts/shared-lock-state.contract.js +1 -0
  1197. package/dist/shared-lock/contracts/shared-lock-state.contract.js.map +1 -1
  1198. package/dist/shared-lock/contracts/shared-lock.contract.d.ts +33 -51
  1199. package/dist/shared-lock/contracts/shared-lock.contract.js +5 -0
  1200. package/dist/shared-lock/contracts/shared-lock.contract.js.map +1 -1
  1201. package/dist/shared-lock/contracts/shared-lock.errors.d.ts +37 -0
  1202. package/dist/shared-lock/contracts/shared-lock.errors.js +52 -0
  1203. package/dist/shared-lock/contracts/shared-lock.errors.js.map +1 -1
  1204. package/dist/shared-lock/contracts/shared-lock.events.d.ts +1 -1
  1205. package/dist/shared-lock/contracts/shared-lock.events.js +1 -0
  1206. package/dist/shared-lock/contracts/shared-lock.events.js.map +1 -1
  1207. package/dist/shared-lock/contracts/types.d.ts +2 -2
  1208. package/dist/shared-lock/contracts/types.js +2 -1
  1209. package/dist/shared-lock/contracts/types.js.map +1 -1
  1210. package/dist/shared-lock/implementations/adapters/_module.d.ts +5 -5
  1211. package/dist/shared-lock/implementations/adapters/_module.js +5 -5
  1212. package/dist/shared-lock/implementations/adapters/_module.js.map +1 -1
  1213. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.d.ts +1 -0
  1214. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js +2 -0
  1215. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js.map +1 -0
  1216. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.d.ts +12 -5
  1217. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js +11 -4
  1218. package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js.map +1 -1
  1219. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.d.ts +1 -0
  1220. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js +2 -0
  1221. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js.map +1 -0
  1222. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.d.ts +7 -4
  1223. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js +7 -2
  1224. package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js.map +1 -1
  1225. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.d.ts +1 -0
  1226. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js +2 -0
  1227. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js.map +1 -0
  1228. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.d.ts +6 -6
  1229. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js +6 -4
  1230. package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js.map +1 -1
  1231. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.d.ts +1 -0
  1232. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js +2 -0
  1233. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js.map +1 -0
  1234. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.d.ts +2 -2
  1235. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.js +2 -0
  1236. package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.js.map +1 -1
  1237. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.d.ts +1 -0
  1238. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js +2 -0
  1239. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js.map +1 -0
  1240. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.d.ts +3 -3
  1241. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.js +3 -0
  1242. package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.js.map +1 -1
  1243. package/dist/shared-lock/implementations/derivables/_module.d.ts +2 -0
  1244. package/dist/shared-lock/implementations/derivables/_module.js +3 -0
  1245. package/dist/shared-lock/implementations/derivables/_module.js.map +1 -0
  1246. package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.d.ts +2 -3
  1247. package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.js +6 -3
  1248. package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.js.map +1 -1
  1249. package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.d.ts +1 -1
  1250. package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.js +1 -0
  1251. package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.js.map +1 -1
  1252. package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-shared-lock-adapter.d.ts +8 -0
  1253. package/dist/shared-lock/implementations/derivables/shared-lock-provider/{resolve-database-shared-lock-adapter.js → resolve-shared-lock-adapter.js} +4 -3
  1254. package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-shared-lock-adapter.js.map +1 -0
  1255. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.d.ts +29 -17
  1256. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.js +18 -12
  1257. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.js.map +1 -1
  1258. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.d.ts +6 -6
  1259. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.js +6 -3
  1260. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.js.map +1 -1
  1261. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.d.ts +31 -35
  1262. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.js +17 -68
  1263. package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.js.map +1 -1
  1264. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.d.ts +6 -6
  1265. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.js +9 -2
  1266. package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.js.map +1 -1
  1267. package/dist/shared-lock/implementations/test-utilities/_module.d.ts +3 -0
  1268. package/dist/shared-lock/implementations/test-utilities/_module.js +4 -0
  1269. package/dist/shared-lock/implementations/test-utilities/_module.js.map +1 -0
  1270. package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.d.ts +3 -3
  1271. package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js +7 -1
  1272. package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js.map +1 -1
  1273. package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.d.ts +2 -2
  1274. package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js +4 -4
  1275. package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js.map +1 -1
  1276. package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.d.ts +3 -3
  1277. package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js +1005 -2495
  1278. package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js.map +1 -1
  1279. package/dist/task/contracts/_module-exports.d.ts +1 -0
  1280. package/dist/task/contracts/_module-exports.js +2 -0
  1281. package/dist/task/contracts/_module-exports.js.map +1 -0
  1282. package/dist/task/contracts/_module.d.ts +1 -0
  1283. package/dist/task/contracts/_module.js +2 -0
  1284. package/dist/task/contracts/_module.js.map +1 -0
  1285. package/dist/task/contracts/task.contract.d.ts +20 -0
  1286. package/dist/task/contracts/task.contract.js +6 -0
  1287. package/dist/task/contracts/task.contract.js.map +1 -0
  1288. package/dist/task/implementations/_module-exports.d.ts +1 -0
  1289. package/dist/task/implementations/_module-exports.js +2 -0
  1290. package/dist/task/implementations/_module-exports.js.map +1 -0
  1291. package/dist/task/implementations/_module.d.ts +1 -0
  1292. package/dist/task/implementations/_module.js +2 -0
  1293. package/dist/task/implementations/_module.js.map +1 -0
  1294. package/dist/task/implementations/abort-and-fail.js.map +1 -0
  1295. package/dist/task/{task.d.ts → implementations/task.d.ts} +27 -25
  1296. package/dist/task/{task.js → implementations/task.js} +19 -10
  1297. package/dist/task/implementations/task.js.map +1 -0
  1298. package/dist/time-span/contracts/_module.d.ts +1 -0
  1299. package/dist/time-span/contracts/_module.js +2 -0
  1300. package/dist/time-span/contracts/_module.js.map +1 -0
  1301. package/dist/time-span/implementations/_module.d.ts +1 -0
  1302. package/dist/time-span/implementations/_module.js +2 -0
  1303. package/dist/time-span/implementations/_module.js.map +1 -0
  1304. package/dist/time-span/implementations/time-span.d.ts +3 -3
  1305. package/dist/time-span/implementations/time-span.js +4 -2
  1306. package/dist/time-span/implementations/time-span.js.map +1 -1
  1307. package/dist/utilities/_module-exports.d.ts +2 -2
  1308. package/dist/utilities/_module-exports.js +0 -2
  1309. package/dist/utilities/_module-exports.js.map +1 -1
  1310. package/dist/utilities/_module.d.ts +5 -0
  1311. package/dist/utilities/_module.js +4 -0
  1312. package/dist/utilities/_module.js.map +1 -0
  1313. package/dist/utilities/contracts/_module.d.ts +5 -5
  1314. package/dist/utilities/contracts/_module.js +1 -5
  1315. package/dist/utilities/contracts/_module.js.map +1 -1
  1316. package/dist/utilities/errors.d.ts +2 -10
  1317. package/dist/utilities/errors.js +2 -13
  1318. package/dist/utilities/errors.js.map +1 -1
  1319. package/dist/utilities/functions/_module.d.ts +9 -2
  1320. package/dist/utilities/functions/_module.js +9 -2
  1321. package/dist/utilities/functions/_module.js.map +1 -1
  1322. package/dist/utilities/functions/array-like-to-iterable.d.ts +7 -0
  1323. package/dist/utilities/functions/array-like-to-iterable.js +20 -0
  1324. package/dist/utilities/functions/array-like-to-iterable.js.map +1 -0
  1325. package/dist/utilities/functions/error-policy.d.ts +7 -7
  1326. package/dist/utilities/functions/error-policy.js +17 -28
  1327. package/dist/utilities/functions/error-policy.js.map +1 -1
  1328. package/dist/utilities/functions/invokable.d.ts +2 -33
  1329. package/dist/utilities/functions/invokable.js +3 -1
  1330. package/dist/utilities/functions/invokable.js.map +1 -1
  1331. package/dist/utilities/functions/is-array-like.d.ts +7 -0
  1332. package/dist/utilities/functions/is-array-like.js +17 -0
  1333. package/dist/utilities/functions/is-array-like.js.map +1 -0
  1334. package/dist/utilities/functions/is-async-iterable.d.ts +7 -0
  1335. package/dist/utilities/functions/is-async-iterable.js +14 -0
  1336. package/dist/utilities/functions/is-async-iterable.js.map +1 -0
  1337. package/dist/utilities/functions/is-class.d.ts +1 -1
  1338. package/dist/utilities/functions/is-class.js +1 -0
  1339. package/dist/utilities/functions/is-class.js.map +1 -1
  1340. package/dist/utilities/functions/is-iterable.d.ts +7 -0
  1341. package/dist/utilities/functions/is-iterable.js +13 -0
  1342. package/dist/utilities/functions/is-iterable.js.map +1 -0
  1343. package/dist/utilities/functions/is-standard-schema.d.ts +1 -1
  1344. package/dist/utilities/functions/is-standard-schema.js +1 -0
  1345. package/dist/utilities/functions/is-standard-schema.js.map +1 -1
  1346. package/dist/utilities/functions/iterable-to-async-iterable.d.ts +7 -0
  1347. package/dist/utilities/functions/iterable-to-async-iterable.js +17 -0
  1348. package/dist/utilities/functions/iterable-to-async-iterable.js.map +1 -0
  1349. package/dist/utilities/functions/lazy.d.ts +4 -4
  1350. package/dist/utilities/functions/lazy.js +5 -3
  1351. package/dist/utilities/functions/lazy.js.map +1 -1
  1352. package/dist/utilities/functions/resolve-async-iterable-value.d.ts +8 -0
  1353. package/dist/utilities/functions/resolve-async-iterable-value.js +21 -0
  1354. package/dist/utilities/functions/resolve-async-iterable-value.js.map +1 -0
  1355. package/dist/utilities/functions/resolve-iterable-value.d.ts +8 -0
  1356. package/dist/utilities/functions/resolve-iterable-value.js +16 -0
  1357. package/dist/utilities/functions/resolve-iterable-value.js.map +1 -0
  1358. package/dist/utilities/functions/resolve-one-or-more.js +1 -1
  1359. package/dist/utilities/functions/resolve-one-or-more.js.map +1 -1
  1360. package/dist/utilities/functions/validate.d.ts +1 -1
  1361. package/dist/utilities/functions/validate.js +1 -0
  1362. package/dist/utilities/functions/validate.js.map +1 -1
  1363. package/dist/utilities/functions/with-jitter.d.ts +15 -0
  1364. package/dist/utilities/functions/with-jitter.js +14 -0
  1365. package/dist/utilities/functions/with-jitter.js.map +1 -0
  1366. package/dist/utilities/types/_module.d.ts +4 -4
  1367. package/dist/utilities/types/_module.js +1 -4
  1368. package/dist/utilities/types/_module.js.map +1 -1
  1369. package/dist/utilities/types/async-iterable-value.type.d.ts +6 -1
  1370. package/package.json +113 -10
  1371. package/dist/backoff-policies/constant-backoff-policy/_module.d.ts +0 -1
  1372. package/dist/backoff-policies/constant-backoff-policy/_module.js +0 -2
  1373. package/dist/backoff-policies/constant-backoff-policy/_module.js.map +0 -1
  1374. package/dist/backoff-policies/constant-backoff-policy/constant-backoff-policy.d.ts +0 -30
  1375. package/dist/backoff-policies/constant-backoff-policy/constant-backoff-policy.js +0 -29
  1376. package/dist/backoff-policies/constant-backoff-policy/constant-backoff-policy.js.map +0 -1
  1377. package/dist/backoff-policies/exponential-backoff-policy/_module.d.ts +0 -1
  1378. package/dist/backoff-policies/exponential-backoff-policy/_module.js +0 -2
  1379. package/dist/backoff-policies/exponential-backoff-policy/_module.js.map +0 -1
  1380. package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +0 -38
  1381. package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.js +0 -30
  1382. package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +0 -1
  1383. package/dist/backoff-policies/linear-backoff-policy/_module.d.ts +0 -1
  1384. package/dist/backoff-policies/linear-backoff-policy/_module.js +0 -2
  1385. package/dist/backoff-policies/linear-backoff-policy/_module.js.map +0 -1
  1386. package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.d.ts +0 -34
  1387. package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.js +0 -30
  1388. package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.js.map +0 -1
  1389. package/dist/backoff-policies/polynomial-backoff-policy/_module.d.ts +0 -1
  1390. package/dist/backoff-policies/polynomial-backoff-policy/_module.js +0 -2
  1391. package/dist/backoff-policies/polynomial-backoff-policy/_module.js.map +0 -1
  1392. package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +0 -38
  1393. package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +0 -30
  1394. package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +0 -1
  1395. package/dist/lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.d.ts +0 -9
  1396. package/dist/lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.js.map +0 -1
  1397. package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-database-semaphore-adapter.d.ts +0 -8
  1398. package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-database-semaphore-adapter.js.map +0 -1
  1399. package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-database-shared-lock-adapter.d.ts +0 -8
  1400. package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-database-shared-lock-adapter.js.map +0 -1
  1401. package/dist/task/_module-exports.d.ts +0 -1
  1402. package/dist/task/_module-exports.js +0 -2
  1403. package/dist/task/_module-exports.js.map +0 -1
  1404. package/dist/task/abort-and-fail.js.map +0 -1
  1405. package/dist/task/task.js.map +0 -1
  1406. package/dist/utilities/functions/result.d.ts +0 -91
  1407. package/dist/utilities/functions/result.js +0 -59
  1408. package/dist/utilities/functions/result.js.map +0 -1
  1409. /package/dist/task/{abort-and-fail.d.ts → implementations/abort-and-fail.d.ts} +0 -0
  1410. /package/dist/task/{abort-and-fail.js → implementations/abort-and-fail.js} +0 -0
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
- import { type IDatabaseLockAdapter, type ILockAdapter, type ILockAdapterState } from "../../../../lock/contracts/_module-exports.js";
5
- import type { TimeSpan } from "../../../../time-span/implementations/_module-exports.js";
4
+ import { type IDatabaseLockAdapter, type ILockAdapter, type ILockAdapterState } from "../../../../lock/contracts/_module.js";
5
+ import { type TimeSpan } from "../../../../time-span/implementations/_module.js";
6
6
  /**
7
7
  * @internal
8
8
  */
@@ -2,7 +2,8 @@
2
2
  /**
3
3
  * @module Lock
4
4
  */
5
- import {} from "../../../../lock/contracts/_module-exports.js";
5
+ import {} from "../../../../lock/contracts/_module.js";
6
+ import {} from "../../../../time-span/implementations/_module.js";
6
7
  /**
7
8
  * @internal
8
9
  */
@@ -12,10 +13,11 @@ export class DatabaseLockAdapter {
12
13
  this.adapter = adapter;
13
14
  }
14
15
  async acquire(key, lockId, ttl) {
16
+ const expiration = ttl?.toEndDate() ?? null;
15
17
  return await this.adapter.transaction(async (trx) => {
16
18
  const lockData = await trx.find(key);
17
19
  if (lockData === null) {
18
- await trx.upsert(key, lockId, ttl?.toEndDate() ?? null);
20
+ await trx.upsert(key, lockId, expiration);
19
21
  return true;
20
22
  }
21
23
  if (lockData.owner === lockId) {
@@ -25,7 +27,7 @@ export class DatabaseLockAdapter {
25
27
  return false;
26
28
  }
27
29
  if (lockData.expiration <= new Date()) {
28
- await trx.upsert(key, lockId, ttl?.toEndDate() ?? null);
30
+ await trx.upsert(key, lockId, expiration);
29
31
  return true;
30
32
  }
31
33
  return lockData.expiration <= new Date();
@@ -1 +1 @@
1
- {"version":3,"file":"database-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/database-lock-adapter.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE;;GAEG;AAEH,OAAO,EAIN,MAAM,qCAAqC,CAAC;AAG7C;;GAEG;AACH,MAAM,OAAO,mBAAmB;IACC;IAA7B,YAA6B,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;IAAG,CAAC;IAE9D,KAAK,CAAC,OAAO,CACT,GAAW,EACX,MAAc,EACd,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AO,QAAQ,CAAC;IACpB,CAAC;CACJ"}
1
+ {"version":3,"file":"database-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/database-lock-adapter.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE;;GAEG;AAEH,OAAO,EAIN,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAiB,MAAM,wCAAwC,CAAC;AAEvE;;GAEG;AACH,MAAM,OAAO,mBAAmB;IACC;IAA7B,YAA6B,OAA6B;QAA7B,YAAO,GAAP,OAAO,CAAsB;IAAG,CAAC;IAE9D,KAAK,CAAC,OAAO,CACT,GAAW,EACX,MAAc,EACd,GAAoB;QAEpB,MAAM,UAAU,GAAG,GAAG,EAAE,SAAS,EAAE,IAAI,IAAI,CAAC;QAC5C,OAAO,MAAM,IAAI,CAAC,OAAO,CAAC,WAAW,CAAU,KAAK,EAAE,GAAG,EAAE,EAAE;YACzD,MAAM,QAAQ,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACrC,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;gBACpB,MAAM,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;gBAC1C,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,IAAI,QAAQ,CAAC,KAAK,KAAK,MAAM,EAAE,CAAC;gBAC5B,OAAO,IAAI,CAAC;YAChB,CAAC;YACD,IAAI,QAAQ,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;gBAC/B,OAAO,KAAK,CAAC;YACjB,CAAC;YACD,IAAI,QAAQ,CAAC,UAAU,IAAI,IAAI,IAAI,EAAE,EAAE,CAAC;gBACpC,MAAM,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC;gBAC1C,OAAO,IAAI,CAAC;YAChB,CAAC;YAED,OAAO,QAAQ,CAAC,UAAU,IAAI,IAAI,IAAI,EAAE,CAAC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C;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,GAAW;QACtB,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9C,IAAI,QAAQ,KAAK,IAAI,EAAE,CAAC;YACpB,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,IAAI,QAAQ,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;YAC/B,OAAO,QAAQ,CAAC;QACpB,CAAC;QACD,IAAI,QAAQ,CAAC,UAAU,IAAI,IAAI,IAAI,EAAE,EAAE,CAAC;YACpC,OAAO,IAAI,CAAC;QAChB,CAAC;QACD,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ"}
@@ -1,8 +1,7 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
- import type { IDatabaseLockAdapter } from "../../../../lock/contracts/_module-exports.js";
5
- import type { LockAdapterVariants } from "../../../../lock/contracts/_module-exports.js";
4
+ import { type IDatabaseLockAdapter, type LockAdapterVariants } from "../../../../lock/contracts/_module.js";
6
5
  /**
7
6
  * @internal
8
7
  */
@@ -1,3 +1,7 @@
1
+ /**
2
+ * @module Lock
3
+ */
4
+ import {} from "../../../../lock/contracts/_module.js";
1
5
  /**
2
6
  * @internal
3
7
  */
@@ -1 +1 @@
1
- {"version":3,"file":"is-database-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/is-database-lock-adapter.ts"],"names":[],"mappings":"AAMA;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACjC,OAA4B;IAE5B,MAAM,QAAQ,GAAG,OAEhB,CAAC;IAEF,OAAO,CACH,OAAO,QAAQ,CAAC,aAAa,CAAC,KAAK,UAAU;QAC7C,QAAQ,CAAC,aAAa,CAAC,CAAC,MAAM,KAAK,CAAC;QACpC,OAAO,QAAQ,CAAC,QAAQ,CAAC,KAAK,UAAU;QACxC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC;QAC/B,OAAO,QAAQ,CAAC,eAAe,CAAC,KAAK,UAAU;QAC/C,QAAQ,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC;QACtC,OAAO,QAAQ,CAAC,kBAAkB,CAAC,KAAK,UAAU;QAClD,QAAQ,CAAC,kBAAkB,CAAC,CAAC,MAAM,KAAK,CAAC;QACzC,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,UAAU;QACtC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,CAChC,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"is-database-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/is-database-lock-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAGN,MAAM,6BAA6B,CAAC;AAErC;;GAEG;AACH,MAAM,UAAU,qBAAqB,CACjC,OAA4B;IAE5B,MAAM,QAAQ,GAAG,OAEhB,CAAC;IAEF,OAAO,CACH,OAAO,QAAQ,CAAC,aAAa,CAAC,KAAK,UAAU;QAC7C,QAAQ,CAAC,aAAa,CAAC,CAAC,MAAM,KAAK,CAAC;QACpC,OAAO,QAAQ,CAAC,QAAQ,CAAC,KAAK,UAAU;QACxC,QAAQ,CAAC,QAAQ,CAAC,CAAC,MAAM,KAAK,CAAC;QAC/B,OAAO,QAAQ,CAAC,eAAe,CAAC,KAAK,UAAU;QAC/C,QAAQ,CAAC,eAAe,CAAC,CAAC,MAAM,KAAK,CAAC;QACtC,OAAO,QAAQ,CAAC,kBAAkB,CAAC,KAAK,UAAU;QAClD,QAAQ,CAAC,kBAAkB,CAAC,CAAC,MAAM,KAAK,CAAC;QACzC,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,UAAU;QACtC,QAAQ,CAAC,MAAM,CAAC,CAAC,MAAM,KAAK,CAAC,CAChC,CAAC;AACN,CAAC"}
@@ -1,15 +1,13 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
- import { type Invokable } from "../../../../utilities/_module-exports.js";
5
- import { type OneOrMore } from "../../../../utilities/_module-exports.js";
6
- import type { LockAdapterVariants, LockEventMap } from "../../../../lock/contracts/_module-exports.js";
7
- import { type ILock, type LockProviderCreateSettings, type ILockProvider } from "../../../../lock/contracts/_module-exports.js";
8
- import type { Task } from "../../../../task/_module-exports.js";
9
- import type { EventListener, IEventBus, Unsubscribe } from "../../../../event-bus/contracts/_module-exports.js";
10
- import type { ISerderRegister } from "../../../../serde/contracts/_module-exports.js";
11
- import type { ITimeSpan } from "../../../../time-span/contracts/_module-exports.js";
12
- import { Namespace } from "../../../../namespace/_module-exports.js";
4
+ import { type EventListener, type IEventBus, type Unsubscribe } from "../../../../event-bus/contracts/_module.js";
5
+ import { type ILock, type LockProviderCreateSettings, type ILockProvider, type LockAdapterVariants, type LockEventMap } from "../../../../lock/contracts/_module.js";
6
+ import { Namespace } from "../../../../namespace/_module.js";
7
+ import { type ISerderRegister } from "../../../../serde/contracts/_module.js";
8
+ import { type ITask } from "../../../../task/contracts/_module.js";
9
+ import { type ITimeSpan } from "../../../../time-span/contracts/_module.js";
10
+ import { type OneOrMore, type Invokable } from "../../../../utilities/_module.js";
13
11
  /**
14
12
  *
15
13
  * IMPORT_PATH: `"@daiso-tech/core/lock"`
@@ -25,23 +23,28 @@ export type LockProviderSettingsBase = {
25
23
  * ```
26
24
  */
27
25
  namespace?: Namespace;
28
- serde: OneOrMore<ISerderRegister>;
26
+ serde?: OneOrMore<ISerderRegister>;
29
27
  /**
30
28
  * @default ""
31
29
  */
32
30
  serdeTransformerName?: string;
33
31
  /**
34
32
  * You can pass your lock id id generator function.
33
+ * @default
34
+ * ```ts
35
+ * import { v4 } from "uuid";
36
+ *
37
+ * () => v4
35
38
  */
36
39
  createLockId?: Invokable<[], string>;
37
40
  /**
38
41
  * @default
39
42
  * ```ts
40
43
  * import { EventBus } from "@daiso-tech/core/event-bus";
41
- * import { MemoryEventBusAdapter } from "@daiso-tech/core/event-bus/memory-event-bus-adapter";
44
+ * import { NoOpEventBusAdapter } from "@daiso-tech/core/event-bus/no-op-event-bus-adapter";
42
45
  *
43
46
  * new EventBus({
44
- * adapter: new MemoryEventBusAdapter()
47
+ * adapter: new NoOpEventBusAdapter()
45
48
  * })
46
49
  * ```
47
50
  */
@@ -50,6 +53,8 @@ export type LockProviderSettingsBase = {
50
53
  * You can decide the default ttl value for {@link ILock | `ILock`} expiration. If null is passed then no ttl will be used by default.
51
54
  * @default
52
55
  * ```ts
56
+ * import { TimeSpan } from "@daiso-tech/core/time-span";
57
+ *
53
58
  * TimeSpan.fromMinutes(5);
54
59
  * ```
55
60
  */
@@ -58,6 +63,8 @@ export type LockProviderSettingsBase = {
58
63
  * The default refresh time used in the {@link ILock | `ILock`} `acquireBlocking` and `runBlocking` methods.
59
64
  * @default
60
65
  * ```ts
66
+ * import { TimeSpan } from "@daiso-tech/core/time-span";
67
+ *
61
68
  * TimeSpan.fromSeconds(1);
62
69
  * ```
63
70
  */
@@ -66,6 +73,8 @@ export type LockProviderSettingsBase = {
66
73
  * The default refresh time used in the {@link ILock | `ILock`} `acquireBlocking` and `runBlocking` methods.
67
74
  * @default
68
75
  * ```ts
76
+ * import { TimeSpan } from "@daiso-tech/core/time-span";
77
+ *
69
78
  * TimeSpan.fromMinutes(1);
70
79
  * ```
71
80
  */
@@ -73,6 +82,8 @@ export type LockProviderSettingsBase = {
73
82
  /**
74
83
  * The default refresh time used in the {@link ILock | `ILock`} `referesh` method.
75
84
  * ```ts
85
+ * import { TimeSpan } from "@daiso-tech/core/time-span";
86
+ *
76
87
  * TimeSpan.fromMinutes(5);
77
88
  * ```
78
89
  */
@@ -147,32 +158,32 @@ export declare class LockProvider implements ILockProvider {
147
158
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
148
159
  * To understand how this method works, refer to {@link IEventListenable | `IEventListenable `}.
149
160
  */
150
- addListener<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): Task<void>;
161
+ addListener<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): ITask<void>;
151
162
  /**
152
163
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
153
164
  * To understand how this method works, refer to {@link IEventListenable | `IEventListenable `}.
154
165
  */
155
- removeListener<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): Task<void>;
166
+ removeListener<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): ITask<void>;
156
167
  /**
157
168
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
158
169
  * To understand how this method works, refer to {@link IEventListenable | `IEventListenable `}.
159
170
  */
160
- listenOnce<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): Task<void>;
171
+ listenOnce<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): ITask<void>;
161
172
  /**
162
173
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
163
174
  * To understand how this method works, refer to {@link IEventListenable | `IEventListenable `}.
164
175
  */
165
- asPromise<TEventName extends keyof LockEventMap>(eventName: TEventName): Task<LockEventMap[TEventName]>;
176
+ asTask<TEventName extends keyof LockEventMap>(eventName: TEventName): ITask<LockEventMap[TEventName]>;
166
177
  /**
167
178
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
168
179
  * To understand how this method works, refer to {@link IEventListenable | `IEventListenable `}.
169
180
  */
170
- subscribeOnce<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): Task<Unsubscribe>;
181
+ subscribeOnce<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): ITask<Unsubscribe>;
171
182
  /**
172
183
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
173
184
  * To understand how this method works, refer to {@link IEventListenable | `IEventListenable `}.
174
185
  */
175
- subscribe<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): Task<Unsubscribe>;
186
+ subscribe<TEventName extends keyof LockEventMap>(eventName: TEventName, listener: EventListener<LockEventMap[TEventName]>): ITask<Unsubscribe>;
176
187
  /**
177
188
  * @example
178
189
  * ```ts
@@ -1,17 +1,22 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
- import { CORE, resolveOneOrMore, callInvokable, } from "../../../../utilities/_module-exports.js";
5
- import {} from "../../../../utilities/_module-exports.js";
6
- import {} from "../../../../lock/contracts/_module-exports.js";
7
- import { EventBus } from "../../../../event-bus/implementations/derivables/_module-exports.js";
8
- import { MemoryEventBusAdapter } from "../../../../event-bus/implementations/adapters/_module.js";
9
4
  import { v4 } from "uuid";
10
- import { Lock } from "../../../../lock/implementations/derivables/lock-provider/lock.js";
5
+ import {} from "../../../../event-bus/contracts/_module.js";
6
+ import { NoOpEventBusAdapter } from "../../../../event-bus/implementations/adapters/_module.js";
7
+ import { EventBus } from "../../../../event-bus/implementations/derivables/_module.js";
8
+ import {} from "../../../../lock/contracts/_module.js";
11
9
  import { LockSerdeTransformer } from "../../../../lock/implementations/derivables/lock-provider/lock-serde-transformer.js";
12
- import { resolveDatabaseLockAdapter } from "../../../../lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.js";
13
- import { TimeSpan } from "../../../../time-span/implementations/_module-exports.js";
14
- import { Namespace } from "../../../../namespace/_module-exports.js";
10
+ import { Lock } from "../../../../lock/implementations/derivables/lock-provider/lock.js";
11
+ import { resolveLockAdapter } from "../../../../lock/implementations/derivables/lock-provider/resolve-lock-adapter.js";
12
+ import { Namespace } from "../../../../namespace/_module.js";
13
+ import {} from "../../../../serde/contracts/_module.js";
14
+ import { NoOpSerdeAdapter } from "../../../../serde/implementations/adapters/_module.js";
15
+ import { Serde } from "../../../../serde/implementations/derivables/_module.js";
16
+ import {} from "../../../../task/contracts/_module.js";
17
+ import {} from "../../../../time-span/contracts/_module.js";
18
+ import { TimeSpan } from "../../../../time-span/implementations/_module.js";
19
+ import { CORE, resolveOneOrMore, callInvokable, } from "../../../../utilities/_module.js";
15
20
  /**
16
21
  *
17
22
  * IMPORT_PATH: `"@daiso-tech/core/lock"`
@@ -68,8 +73,8 @@ export class LockProvider {
68
73
  * ```
69
74
  */
70
75
  constructor(settings) {
71
- const { defaultTtl = TimeSpan.fromMinutes(5), defaultBlockingInterval = TimeSpan.fromSeconds(1), defaultBlockingTime = TimeSpan.fromMinutes(1), defaultRefreshTime = TimeSpan.fromMinutes(5), createLockId = () => v4(), serde, namespace = DEFAULT_LOCK_PROVIDER_NAMESPACE, adapter, eventBus = new EventBus({
72
- adapter: new MemoryEventBusAdapter(),
76
+ const { defaultTtl = TimeSpan.fromMinutes(5), defaultBlockingInterval = TimeSpan.fromSeconds(1), defaultBlockingTime = TimeSpan.fromMinutes(1), defaultRefreshTime = TimeSpan.fromMinutes(5), createLockId = () => v4(), serde = new Serde(new NoOpSerdeAdapter()), namespace = DEFAULT_LOCK_PROVIDER_NAMESPACE, adapter, eventBus = new EventBus({
77
+ adapter: new NoOpEventBusAdapter(),
73
78
  }), serdeTransformerName = "", } = settings;
74
79
  this.serde = serde;
75
80
  this.defaultBlockingInterval = TimeSpan.fromTimeSpan(defaultBlockingInterval);
@@ -82,7 +87,7 @@ export class LockProvider {
82
87
  this.eventBus = eventBus;
83
88
  this.serdeTransformerName = serdeTransformerName;
84
89
  this.originalAdapter = adapter;
85
- this.adapter = resolveDatabaseLockAdapter(adapter);
90
+ this.adapter = resolveLockAdapter(adapter);
86
91
  this.registerToSerde();
87
92
  }
88
93
  registerToSerde() {
@@ -125,8 +130,8 @@ export class LockProvider {
125
130
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
126
131
  * To understand how this method works, refer to {@link IEventListenable | `IEventListenable `}.
127
132
  */
128
- asPromise(eventName) {
129
- return this.eventBus.asPromise(eventName);
133
+ asTask(eventName) {
134
+ return this.eventBus.asTask(eventName);
130
135
  }
131
136
  /**
132
137
  * You can listen to the following {@link LockEventMap | `LockEventMap`} of all {@link ILock | `ILock`} instances created by the {@link ILockProvider | `ILockProvider`}.
@@ -1 +1 @@
1
- {"version":3,"file":"lock-provider.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/lock-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EACH,IAAI,EACJ,gBAAgB,EAEhB,aAAa,GAChB,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAkB,MAAM,gCAAgC,CAAC;AAOhE,OAAO,EAKN,MAAM,qCAAqC,CAAC;AAW7C,OAAO,EAAE,QAAQ,EAAE,MAAM,2DAA2D,CAAC;AACrF,OAAO,EAAE,qBAAqB,EAAE,MAAM,iDAAiD,CAAC;AACxF,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,MAAM,yDAAyD,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AACjH,OAAO,EAAE,0BAA0B,EAAE,MAAM,kFAAkF,CAAC;AAC9H,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAE1E,OAAO,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAwF3D;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;AAEtE;;;;;;;;;GASG;AACH,MAA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C;IACP,CAAC;CACJ"}
1
+ {"version":3,"file":"lock-provider.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/lock-provider.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAE1B,OAAO,EAMN,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAE,QAAQ,EAAE,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAUN,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,oBAAoB,EAAE,MAAM,2EAA2E,CAAC;AACjH,OAAO,EAAE,IAAI,EAAE,MAAM,yDAAyD,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,yEAAyE,CAAC;AAC7G,OAAO,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACnD,OAAO,EAAwB,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,MAAM,+CAA+C,CAAC;AACtE,OAAO,EAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAkB,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAEH,IAAI,EACJ,gBAAgB,EAEhB,aAAa,GAChB,MAAM,wBAAwB,CAAC;AAqGhC;;;;GAIG;AACH,MAAM,CAAC,MAAM,+BAA+B,GAAG,IAAI,SAAS,CAAC,OAAO,CAAC,CAAC;AAEtE;;;;;;;;;GASG;AACH,MAAM,OAAO,YAAY;IACJ,QAAQ,CAA0B;IAClC,eAAe,CAAsB;IACrC,OAAO,CAAe;IACtB,SAAS,CAAY;IACrB,WAAW,CAAwB;IACnC,UAAU,CAAkB;IAC5B,uBAAuB,CAAW;IAClC,mBAAmB,CAAW;IAC9B,kBAAk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Bus } from "../../../../event-bus/contracts/_module.js";
5
+ import { type ILockAdapter, type LockAdapterVariants, type LockEventMap } from "../../../../lock/contracts/_module.js";
5
6
  import { Lock, type ISerializedLock } from "../../../../lock/implementations/derivables/lock-provider/lock.js";
6
- import type { OneOrMore } from "../../../../utilities/_module-exports.js";
7
- import type { ILockAdapter, LockAdapterVariants, LockEventMap } from "../../../../lock/contracts/_module-exports.js";
8
- import type { IEventBus } from "../../../../event-bus/contracts/_module-exports.js";
9
- import { TimeSpan } from "../../../../time-span/implementations/_module-exports.js";
10
- import type { Namespace } from "../../../../namespace/_module-exports.js";
7
+ import { type Namespace } from "../../../../namespace/_module.js";
8
+ import { type ISerdeTransformer } from "../../../../serde/contracts/_module.js";
9
+ import { TimeSpan } from "../../../../time-span/implementations/_module.js";
10
+ import { type OneOrMore } from "../../../../utilities/_module.js";
11
11
  /**
12
12
  * @internal
13
13
  */
@@ -1,9 +1,13 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
+ import {} from "../../../../event-bus/contracts/_module.js";
5
+ import {} from "../../../../lock/contracts/_module.js";
4
6
  import { Lock, } from "../../../../lock/implementations/derivables/lock-provider/lock.js";
5
- import { getConstructorName } from "../../../../utilities/_module-exports.js";
6
- import { TimeSpan } from "../../../../time-span/implementations/_module-exports.js";
7
+ import {} from "../../../../namespace/_module.js";
8
+ import {} from "../../../../serde/contracts/_module.js";
9
+ import { TimeSpan } from "../../../../time-span/implementations/_module.js";
10
+ import { getConstructorName } from "../../../../utilities/_module.js";
7
11
  /**
8
12
  * @internal
9
13
  */
@@ -1 +1 @@
1
- {"version":3,"file":"lock-serde-transformer.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/lock-serde-transformer.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EACH,IAAI,GAEP,MAAM,yDAAyD,CAAC;AAOjE,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE,OAAO,EAAE,QAAQ,EA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,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,gBAAgB,CAAC,OAAO,CAAC;YACjE,uBAAuB,EAAE,IAAI,CAAC,uBAAuB;YACrD,mBAAmB,EAAE,IAAI,CAAC,mBAAmB;YAC7C,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;SAC9C,CAAC,CAAC;IACP,CAAC;IAED,SAAS,CAAC,iBAAuB;QAC7B,OAAO,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,CAAC;IACvD,CAAC;CACJ"}
@@ -1,15 +1,13 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
- import { type AsyncLazy, type Result } from "../../../../utilities/_module-exports.js";
5
- import type { ILockState, IDatabaseLockAdapter } from "../../../../lock/contracts/_module-exports.js";
6
- import { FailedAcquireLockError, type LockAquireBlockingSettings, type LockEventMap } from "../../../../lock/contracts/_module-exports.js";
7
- import { type ILock, type ILockAdapter } from "../../../../lock/contracts/_module-exports.js";
8
- import { Task } from "../../../../task/_module-exports.js";
9
- import type { IEventDispatcher } from "../../../../event-bus/contracts/_module-exports.js";
10
- import { TimeSpan } from "../../../../time-span/implementations/_module-exports.js";
11
- import type { Key, Namespace } from "../../../../namespace/_module-exports.js";
12
- import type { ITimeSpan } from "../../../../time-span/contracts/_module-exports.js";
4
+ import { type IEventDispatcher } from "../../../../event-bus/contracts/_module.js";
5
+ import { type ILock, type ILockAdapter, type LockAquireBlockingSettings, type LockEventMap, type ILockState, type IDatabaseLockAdapter } from "../../../../lock/contracts/_module.js";
6
+ import { type Key, type Namespace } from "../../../../namespace/_module.js";
7
+ import { type ITask } from "../../../../task/contracts/_module.js";
8
+ import { type ITimeSpan } from "../../../../time-span/contracts/_module.js";
9
+ import { TimeSpan } from "../../../../time-span/implementations/_module.js";
10
+ import { type AsyncLazy } from "../../../../utilities/_module.js";
13
11
  /**
14
12
  * @internal
15
13
  */
@@ -58,23 +56,21 @@ export declare class Lock implements ILock {
58
56
  _internal_getNamespace(): Namespace;
59
57
  _internal_getSerdeTransformerName(): string;
60
58
  _internal_getAdapter(): IDatabaseLockAdapter | ILockAdapter;
61
- run<TValue = void>(asyncFn: AsyncLazy<TValue>): Task<Result<TValue, FailedAcquireLockError>>;
62
- runOrFail<TValue = void>(asyncFn: AsyncLazy<TValue>): Task<TValue>;
63
- runBlocking<TValue = void>(asyncFn: AsyncLazy<TValue>, settings?: LockAquireBlockingSettings): Task<Result<TValue, FailedAcquireLockError>>;
64
- runBlockingOrFail<TValue = void>(asyncFn: AsyncLazy<TValue>, settings?: LockAquireBlockingSettings): Task<TValue>;
59
+ runOrFail<TValue = void>(asyncFn: AsyncLazy<TValue>): ITask<TValue>;
60
+ runBlockingOrFail<TValue = void>(asyncFn: AsyncLazy<TValue>, settings?: LockAquireBlockingSettings): ITask<TValue>;
65
61
  private handleUnexpectedError;
66
62
  private handleDispatch;
67
- acquire(): Task<boolean>;
68
- acquireOrFail(): Task<void>;
69
- acquireBlocking(settings?: LockAquireBlockingSettings): Task<boolean>;
70
- acquireBlockingOrFail(settings?: LockAquireBlockingSettings): Task<void>;
71
- release(): Task<boolean>;
72
- releaseOrFail(): Task<void>;
73
- forceRelease(): Task<boolean>;
74
- refresh(ttl?: ITimeSpan): Task<boolean>;
75
- refreshOrFail(ttl?: ITimeSpan): Task<void>;
63
+ acquire(): ITask<boolean>;
64
+ acquireOrFail(): ITask<void>;
65
+ acquireBlocking(settings?: LockAquireBlockingSettings): ITask<boolean>;
66
+ acquireBlockingOrFail(settings?: LockAquireBlockingSettings): ITask<void>;
67
+ release(): ITask<boolean>;
68
+ releaseOrFail(): ITask<void>;
69
+ forceRelease(): ITask<boolean>;
70
+ refresh(ttl?: ITimeSpan): ITask<boolean>;
71
+ refreshOrFail(ttl?: ITimeSpan): ITask<void>;
76
72
  get key(): string;
77
73
  get id(): string;
78
74
  get ttl(): TimeSpan | null;
79
- getState(): Task<ILockState>;
75
+ getState(): ITask<ILockState>;
80
76
  }
@@ -1,11 +1,15 @@
1
1
  /**
2
2
  * @module Lock
3
3
  */
4
- import { resolveLazyable, resultSuccess, resultFailure, } from "../../../../utilities/_module-exports.js";
5
- import { FailedAcquireLockError, LOCK_EVENTS, FailedReleaseLockError, FailedRefreshLockError, LOCK_STATE, isLockError, } from "../../../../lock/contracts/_module-exports.js";
6
- import {} from "../../../../lock/contracts/_module-exports.js";
7
- import { Task } from "../../../../task/_module-exports.js";
8
- import { TimeSpan } from "../../../../time-span/implementations/_module-exports.js";
4
+ import {} from "../../../../event-bus/contracts/_module.js";
5
+ import {} from "../../../../hooks/_module.js";
6
+ import { FailedAcquireLockError, LOCK_EVENTS, FailedReleaseLockError, FailedRefreshLockError, LOCK_STATE, isLockError, } from "../../../../lock/contracts/_module.js";
7
+ import {} from "../../../../namespace/_module.js";
8
+ import {} from "../../../../task/contracts/_module.js";
9
+ import { Task } from "../../../../task/implementations/_module.js";
10
+ import {} from "../../../../time-span/contracts/_module.js";
11
+ import { TimeSpan } from "../../../../time-span/implementations/_module.js";
12
+ import { resolveLazyable } from "../../../../utilities/_module.js";
9
13
  /**
10
14
  * @internal
11
15
  */
@@ -55,20 +59,6 @@ export class Lock {
55
59
  _internal_getAdapter() {
56
60
  return this.originalAdapter;
57
61
  }
58
- run(asyncFn) {
59
- return new Task(async () => {
60
- try {
61
- const hasAquired = await this.acquire();
62
- if (!hasAquired) {
63
- return resultFailure(new FailedAcquireLockError(`Key "${this._key.get()}" already acquired`));
64
- }
65
- return resultSuccess(await resolveLazyable(asyncFn));
66
- }
67
- finally {
68
- await this.release();
69
- }
70
- });
71
- }
72
62
  runOrFail(asyncFn) {
73
63
  return new Task(async () => {
74
64
  try {
@@ -80,20 +70,6 @@ export class Lock {
80
70
  }
81
71
  });
82
72
  }
83
- runBlocking(asyncFn, settings) {
84
- return new Task(async () => {
85
- try {
86
- const hasAquired = await this.acquireBlocking(settings);
87
- if (!hasAquired) {
88
- return resultFailure(new FailedAcquireLockError(`Key "${this._key.get()}" already acquired`));
89
- }
90
- return resultSuccess(await resolveLazyable(asyncFn));
91
- }
92
- finally {
93
- await this.release();
94
- }
95
- });
96
- }
97
73
  runBlockingOrFail(asyncFn, settings) {
98
74
  return new Task(async () => {
99
75
  try {
@@ -165,7 +141,7 @@ export class Lock {
165
141
  return new Task(async () => {
166
142
  const hasAquired = await this.acquire();
167
143
  if (!hasAquired) {
168
- throw new FailedAcquireLockError(`Key "${this._key.get()}" already acquired`);
144
+ throw FailedAcquireLockError.create(this._key);
169
145
  }
170
146
  });
171
147
  }
@@ -189,7 +165,7 @@ export class Lock {
189
165
  return new Task(async () => {
190
166
  const hasAquired = await this.acquireBlocking(settings);
191
167
  if (!hasAquired) {
192
- throw new FailedAcquireLockError(`Key "${this._key.get()}" already acquired`);
168
+ throw FailedAcquireLockError.create(this._key);
193
169
  }
194
170
  });
195
171
  }
@@ -218,7 +194,7 @@ export class Lock {
218
194
  return new Task(async () => {
219
195
  const hasRelased = await this.release();
220
196
  if (!hasRelased) {
221
- throw new FailedReleaseLockError(`Unonwed release on key "${this._key.get()}" by owner "${this.lockId}"`);
197
+ throw FailedReleaseLockError.create(this._key, this.lockId);
222
198
  }
223
199
  });
224
200
  }
@@ -271,7 +247,7 @@ export class Lock {
271
247
  return new Task(async () => {
272
248
  const hasRefreshed = await this.refresh(ttl);
273
249
  if (!hasRefreshed) {
274
- throw new FailedRefreshLockError(`Unonwed refresh on key "${this._key.get()}" by owner "${this.lockId}"`);
250
+ throw FailedRefreshLockError.create(this._key, this.lockId);
275
251
  }
276
252
  });
277
253
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/lock.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAGH,eAAe,EACf,aAAa,EACb,aAAa,GAChB,MAAM,gCAAgC,CAAC;AAQxC,OAAO,EACH,sBAAsB,EACtB,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EAGtB,UAAU,EACV,WAAW,GACd,MAAM,q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C;YACnC,CAAC;YACD,OAAO;gBACH,IAAI,EAAE,UAAU,CAAC,WAAW;gBAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;aACW,CAAC;QACtC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC1C,CAAC;CACJ"}
1
+ {"version":3,"file":"lock.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/lock.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAyB,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAA0B,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAGH,sBAAsB,EACtB,WAAW,EACX,sBAAsB,EACtB,sBAAsB,EAGtB,UAAU,EACV,WAAW,GAMd,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAA4B,MAAM,wBAAwB,CAAC;AAClE,OAAO,EAAc,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,IAAI,EAAE,MAAM,mCAAmC,CAAC;AACzD,OAAO,EAAkB,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAkB,eAAe,EAAE,MAAM,wBAAwB,CAAC;AA6BzE;;GAEG;AACH,MAAM,OAAO,IAAI;IACb;;OAEG;IACH,MAAM,CAAC,mBAAmB,CAAC,iBAAuB;QAC9C,OAAO;YACH,OAAO,EAAE,GAAG;YACZ,GAAG,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,EAAE;YACjC,MAAM,EAAE,iBAAiB,CAAC,MAAM;YAChC,OAAO,EAAE,iBAAiB,CAAC,IAAI,EAAE,cAAc,EAAE,IAAI,IAAI;SAC5D,CAAC;IACN,CAAC;IAEgB,SAAS,CAAY;IACrB,OAAO,CAAe;IACtB,eAAe,CAAsC;IACrD,eAAe,CAAiC;IAChD,IAAI,CAAM;IACV,MAAM,CAAS;IACxB,IAAI,CAAkB;IACb,uBAA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,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,IAAI,CAAC;IACrB,CAAC;IAED,QAAQ;QACJ,OAAO,IAAI,IAAI,CAAC,KAAK,IAAI,EAAE;YACvB,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YAChE,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACjB,OAAO;oBACH,IAAI,EAAE,UAAU,CAAC,OAAO;iBACC,CAAC;YAClC,CAAC;YACD,IAAI,KAAK,CAAC,KAAK,KAAK,IAAI,CAAC,MAAM,EAAE,CAAC;gBAC9B,OAAO;oBACH,IAAI,EAAE,UAAU,CAAC,QAAQ;oBACzB,aAAa,EACT,KAAK,CAAC,UAAU,KAAK,IAAI;wBACrB,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;4BACnB,KAAK,EAAE,IAAI,IAAI,EAAE;4BACjB,GAAG,EAAE,KAAK,CAAC,UAAU;yBACxB,CAAC;iBACc,CAAC;YACnC,CAAC;YACD,OAAO;gBACH,IAAI,EAAE,UAAU,CAAC,WAAW;gBAC5B,KAAK,EAAE,KAAK,CAAC,KAAK;aACW,CAAC;QACtC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC1C,CAAC;CACJ"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * @module Lock
3
+ */
4
+ import { type LockAdapterVariants, type ILockAdapter } from "../../../../lock/contracts/_module.js";
5
+ /**
6
+ * @internal
7
+ */
8
+ export declare function resolveLockAdapter(adapter: LockAdapterVariants): ILockAdapter;
@@ -1,12 +1,16 @@
1
- import { isDatabaseLockAdapter } from "../../../../lock/implementations/derivables/lock-provider/is-database-lock-adapter.js";
1
+ /**
2
+ * @module Lock
3
+ */
4
+ import {} from "../../../../lock/contracts/_module.js";
2
5
  import { DatabaseLockAdapter } from "../../../../lock/implementations/derivables/lock-provider/database-lock-adapter.js";
6
+ import { isDatabaseLockAdapter } from "../../../../lock/implementations/derivables/lock-provider/is-database-lock-adapter.js";
3
7
  /**
4
8
  * @internal
5
9
  */
6
- export function resolveDatabaseLockAdapter(adapter) {
10
+ export function resolveLockAdapter(adapter) {
7
11
  if (isDatabaseLockAdapter(adapter)) {
8
12
  return new DatabaseLockAdapter(adapter);
9
13
  }
10
14
  return adapter;
11
15
  }
12
- //# sourceMappingURL=resolve-database-lock-adapter.js.map
16
+ //# sourceMappingURL=resolve-lock-adapter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/lock/implementations/derivables/lock-provider/resolve-lock-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAGN,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0EAA0E,CAAC;AAC/G,OAAO,EAAE,qBAAqB,EAAE,MAAM,6EAA6E,CAAC;AAEpH;;GAEG;AACH,MAAM,UAAU,kBAAkB,CAAC,OAA4B;IAC3D,IAAI,qBAAqB,CAAC,OAAO,CAAC,EAAE,CAAC;QACjC,OAAO,IAAI,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAC5C,CAAC;IACD,OAAO,OAAO,CAAC;AACnB,CAAC"}