@daiso-tech/core 0.41.1 → 0.43.2
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.
- package/README.md +18 -8
- package/dist/backoff-policies/_module-exports.d.ts +5 -4
- package/dist/backoff-policies/_module-exports.js +5 -4
- package/dist/backoff-policies/_module-exports.js.map +1 -1
- package/dist/backoff-policies/_module.d.ts +7 -0
- package/dist/backoff-policies/_module.js +8 -0
- package/dist/backoff-policies/_module.js.map +1 -0
- package/dist/backoff-policies/_shared.d.ts +8 -3
- package/dist/backoff-policies/_shared.js +57 -2
- package/dist/backoff-policies/_shared.js.map +1 -1
- package/dist/backoff-policies/backoffs-lua.d.ts +7 -0
- package/dist/backoff-policies/backoffs-lua.js +78 -0
- package/dist/backoff-policies/backoffs-lua.js.map +1 -0
- package/dist/backoff-policies/constant-backoff/_module.d.ts +1 -0
- package/dist/backoff-policies/constant-backoff/_module.js +2 -0
- package/dist/backoff-policies/constant-backoff/_module.js.map +1 -0
- package/dist/backoff-policies/constant-backoff/constant-backoff.d.ts +53 -0
- package/dist/backoff-policies/constant-backoff/constant-backoff.js +54 -0
- package/dist/backoff-policies/constant-backoff/constant-backoff.js.map +1 -0
- package/dist/backoff-policies/exponential-backoff/_module.d.ts +1 -0
- package/dist/backoff-policies/exponential-backoff/_module.js +2 -0
- package/dist/backoff-policies/exponential-backoff/_module.js.map +1 -0
- package/dist/backoff-policies/exponential-backoff/exponential-backoff.d.ts +68 -0
- package/dist/backoff-policies/exponential-backoff/exponential-backoff.js +59 -0
- package/dist/backoff-policies/exponential-backoff/exponential-backoff.js.map +1 -0
- package/dist/backoff-policies/linear-backoff/_module.d.ts +1 -0
- package/dist/backoff-policies/linear-backoff/_module.js +2 -0
- package/dist/backoff-policies/linear-backoff/_module.js.map +1 -0
- package/dist/backoff-policies/linear-backoff/linear-backoff.d.ts +63 -0
- package/dist/backoff-policies/linear-backoff/linear-backoff.js +57 -0
- package/dist/backoff-policies/linear-backoff/linear-backoff.js.map +1 -0
- package/dist/backoff-policies/polynomial-backoff/_module.d.ts +1 -0
- package/dist/backoff-policies/polynomial-backoff/_module.js +2 -0
- package/dist/backoff-policies/polynomial-backoff/_module.js.map +1 -0
- package/dist/backoff-policies/polynomial-backoff/polynomial-backoff.d.ts +68 -0
- package/dist/backoff-policies/polynomial-backoff/polynomial-backoff.js +59 -0
- package/dist/backoff-policies/polynomial-backoff/polynomial-backoff.js.map +1 -0
- package/dist/backoff-policies/types.d.ts +83 -0
- package/dist/backoff-policies/types.js +18 -0
- package/dist/backoff-policies/types.js.map +1 -0
- package/dist/cache/contracts/_module-exports.d.ts +5 -4
- package/dist/cache/contracts/_module-exports.js +0 -4
- package/dist/cache/contracts/_module-exports.js.map +1 -1
- package/dist/cache/contracts/_module.d.ts +7 -0
- package/dist/cache/contracts/_module.js +3 -0
- package/dist/cache/contracts/_module.js.map +1 -0
- package/dist/cache/contracts/cache-adapter.contract.d.ts +1 -1
- package/dist/cache/contracts/cache-adapter.contract.js +4 -1
- package/dist/cache/contracts/cache-adapter.contract.js.map +1 -1
- package/dist/cache/contracts/cache-factory.contract.d.ts +1 -1
- package/dist/cache/contracts/cache-factory.contract.js +2 -1
- package/dist/cache/contracts/cache-factory.contract.js.map +1 -1
- package/dist/cache/contracts/cache.contract.d.ts +79 -76
- package/dist/cache/contracts/cache.contract.js +10 -1
- package/dist/cache/contracts/cache.contract.js.map +1 -1
- package/dist/cache/contracts/cache.errors.d.ts +22 -0
- package/dist/cache/contracts/cache.errors.js +29 -0
- package/dist/cache/contracts/cache.errors.js.map +1 -1
- package/dist/cache/contracts/cache.events.d.ts +19 -22
- package/dist/cache/contracts/cache.events.js +8 -1
- package/dist/cache/contracts/cache.events.js.map +1 -1
- package/dist/cache/contracts/types.d.ts +18 -0
- package/dist/cache/contracts/types.js +7 -0
- package/dist/cache/contracts/types.js.map +1 -0
- package/dist/cache/implementations/adapters/{_module-exports.js → _module.js} +1 -1
- package/dist/cache/implementations/adapters/_module.js.map +1 -0
- package/dist/cache/implementations/adapters/kysely-cache-adapter/_module-exports.d.ts +1 -0
- package/dist/cache/implementations/adapters/kysely-cache-adapter/_module-exports.js +2 -0
- package/dist/cache/implementations/adapters/kysely-cache-adapter/_module-exports.js.map +1 -0
- package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.d.ts +20 -13
- package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js +16 -8
- package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/memory-cache-adapter/_module-exports.d.ts +1 -0
- package/dist/cache/implementations/adapters/memory-cache-adapter/_module-exports.js +2 -0
- package/dist/cache/implementations/adapters/memory-cache-adapter/_module-exports.js.map +1 -0
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.d.ts +4 -4
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +4 -3
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module-exports.d.ts +1 -0
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module-exports.js +2 -0
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module-exports.js.map +1 -0
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.d.ts +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-serde.js.map +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.d.ts +10 -11
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +11 -8
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/no-op-cache-adapter/_module-exports.d.ts +1 -0
- package/dist/cache/implementations/adapters/no-op-cache-adapter/_module-exports.js +2 -0
- package/dist/cache/implementations/adapters/no-op-cache-adapter/_module-exports.js.map +1 -0
- package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.d.ts +3 -3
- package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js +3 -2
- package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/redis-cache-adapter/_module-exports.d.ts +1 -0
- package/dist/cache/implementations/adapters/redis-cache-adapter/_module-exports.js +2 -0
- package/dist/cache/implementations/adapters/redis-cache-adapter/_module-exports.js.map +1 -0
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.d.ts +1 -1
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js +1 -1
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-serde.js.map +1 -1
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.d.ts +7 -7
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +9 -5
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/redis-cache-adapter/utilities.js +1 -1
- package/dist/cache/implementations/adapters/redis-cache-adapter/utilities.js.map +1 -1
- package/dist/cache/implementations/derivables/_module.d.ts +2 -0
- package/dist/cache/implementations/derivables/_module.js +3 -0
- package/dist/cache/implementations/derivables/_module.js.map +1 -0
- package/dist/cache/implementations/derivables/cache/_module.d.ts +1 -0
- package/dist/cache/implementations/derivables/cache/_module.js +1 -0
- package/dist/cache/implementations/derivables/cache/_module.js.map +1 -1
- package/dist/cache/implementations/derivables/cache/cache.d.ts +53 -43
- package/dist/cache/implementations/derivables/cache/cache.js +148 -82
- package/dist/cache/implementations/derivables/cache/cache.js.map +1 -1
- package/dist/cache/implementations/derivables/cache/database-cache-adapter.d.ts +2 -2
- package/dist/cache/implementations/derivables/cache/database-cache-adapter.js +2 -1
- package/dist/cache/implementations/derivables/cache/database-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.d.ts +2 -3
- package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js +9 -2
- package/dist/cache/implementations/derivables/cache/is-database-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/derivables/cache/resolve-cache-adapter.d.ts +8 -0
- package/dist/cache/implementations/derivables/cache/resolve-cache-adapter.js +16 -0
- package/dist/cache/implementations/derivables/cache/resolve-cache-adapter.js.map +1 -0
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.d.ts +14 -11
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.js +19 -6
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.js.map +1 -1
- package/dist/cache/implementations/test-utilities/_module.d.ts +3 -0
- package/dist/cache/implementations/test-utilities/_module.js +4 -0
- package/dist/cache/implementations/test-utilities/_module.js.map +1 -0
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.d.ts +4 -4
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +6 -6
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js.map +1 -1
- package/dist/cache/implementations/test-utilities/cache.test-suite.d.ts +7 -3
- package/dist/cache/implementations/test-utilities/cache.test-suite.js +1480 -608
- package/dist/cache/implementations/test-utilities/cache.test-suite.js.map +1 -1
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.d.ts +16 -9
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +17 -10
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js.map +1 -1
- package/dist/circuit-breaker/contracts/_module-exports.d.ts +9 -0
- package/dist/circuit-breaker/contracts/_module-exports.js +6 -0
- package/dist/circuit-breaker/contracts/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/contracts/_module.d.ts +9 -0
- package/dist/circuit-breaker/contracts/_module.js +6 -0
- package/dist/circuit-breaker/contracts/_module.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-adapter.contract.d.ts +45 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-adapter.contract.js +7 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-adapter.contract.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-policy.contract.d.ts +114 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-policy.contract.js +41 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-policy.contract.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-provider-factory.contract.d.ts +19 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-provider-factory.contract.js +10 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-provider-factory.contract.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-provider.contract.d.ts +63 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-provider.contract.js +19 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-provider.contract.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-state.contract.d.ts +20 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-state.contract.js +15 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-state.contract.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-storage-adapter.contract.d.ts +52 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-storage-adapter.contract.js +5 -0
- package/dist/circuit-breaker/contracts/circuit-breaker-storage-adapter.contract.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.contract.d.ts +40 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.contract.js +9 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.contract.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.errors.d.ts +49 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.errors.js +61 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.errors.js.map +1 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.events.d.ts +96 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.events.js +20 -0
- package/dist/circuit-breaker/contracts/circuit-breaker.events.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/_module.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/_module.js +8 -0
- package/dist/circuit-breaker/implementations/adapters/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module-exports.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module-exports.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-policy.d.ts +65 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-policy.js +128 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-policy.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-state-manager.d.ts +18 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-state-manager.js +57 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-state-manager.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-storage.d.ts +17 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-storage.js +40 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/circuit-breaker-storage.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/database-circuit-breaker-adapter.d.ts +59 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/database-circuit-breaker-adapter.js +57 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/database-circuit-breaker-adapter.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/types.d.ts +12 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/types.js +6 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/types.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module-exports.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/kysely-circuit-breaker-storage-adapter.d.ts +81 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/kysely-circuit-breaker-storage-adapter.js +149 -0
- package/dist/circuit-breaker/implementations/adapters/kysely-circuit-breaker-storage-adapter/kysely-circuit-breaker-storage-adapter.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module-exports.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/memory-circuit-breaker-storage-adapter.d.ts +42 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/memory-circuit-breaker-storage-adapter.js +60 -0
- package/dist/circuit-breaker/implementations/adapters/memory-circuit-breaker-storage-adapter/memory-circuit-breaker-storage-adapter.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module-exports.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/mongodb-circuit-breaker-storage-adapter.d.ts +80 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/mongodb-circuit-breaker-storage-adapter.js +115 -0
- package/dist/circuit-breaker/implementations/adapters/mongodb-circuit-breaker-storage-adapter/mongodb-circuit-breaker-storage-adapter.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module-exports.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module-exports.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/no-op-circuit-breaker-adapter.d.ts +16 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/no-op-circuit-breaker-adapter.js +32 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-adapter/no-op-circuit-breaker-adapter.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module-exports.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/no-op-circuit-breaker-storage-adapter.d.ts +16 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/no-op-circuit-breaker-storage-adapter.js +24 -0
- package/dist/circuit-breaker/implementations/adapters/no-op-circuit-breaker-storage-adapter/no-op-circuit-breaker-storage-adapter.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module-exports.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module-exports.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/_module.js +2 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-factory-lua.d.ts +4 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-factory-lua.js +76 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-factory-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-lua.js +34 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-policy-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-policy-lua.js +144 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-policy-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-state-manager-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-state-manager-lua.js +64 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-state-manager-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-storage-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-storage-lua.js +39 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/circuit-breaker-storage-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/consecutive-breaker-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/consecutive-breaker-lua.js +75 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/consecutive-breaker-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/count-breaker-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/count-breaker-lua.js +136 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/count-breaker-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/sampling-breaker-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/sampling-breaker-lua.js +153 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/sampling-breaker-lua.js.map +1 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/redis-circuit-breaker-adapter.d.ts +68 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/redis-circuit-breaker-adapter.js +131 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/redis-circuit-breaker-adapter.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/_module-exports.d.ts +2 -0
- package/dist/circuit-breaker/implementations/derivables/_module-exports.js +3 -0
- package/dist/circuit-breaker/implementations/derivables/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/_module.d.ts +2 -0
- package/dist/circuit-breaker/implementations/derivables/_module.js +3 -0
- package/dist/circuit-breaker/implementations/derivables/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/_module.js +2 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-provider.d.ts +154 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-provider.js +138 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-provider.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-serde-transformer.d.ts +41 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-serde-transformer.js +77 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker-serde-transformer.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker.d.ts +62 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker.js +201 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider/circuit-breaker.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/_module.d.ts +2 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/_module.js +3 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/circuit-breaker-provider-factory.d.ts +108 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/circuit-breaker-provider-factory.js +140 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/circuit-breaker-provider-factory.js.map +1 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/database-circuit-breaker-provider-factory.d.ts +137 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/database-circuit-breaker-provider-factory.js +164 -0
- package/dist/circuit-breaker/implementations/derivables/circuit-breaker-provider-factory/database-circuit-breaker-provider-factory.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/_module-exports.d.ts +5 -0
- package/dist/circuit-breaker/implementations/policies/_module-exports.js +6 -0
- package/dist/circuit-breaker/implementations/policies/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/_module.d.ts +5 -0
- package/dist/circuit-breaker/implementations/policies/_module.js +6 -0
- package/dist/circuit-breaker/implementations/policies/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/_shared.d.ts +12 -0
- package/dist/circuit-breaker/implementations/policies/_shared.js +50 -0
- package/dist/circuit-breaker/implementations/policies/_shared.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/consecutive-breaker/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/policies/consecutive-breaker/_module.js +2 -0
- package/dist/circuit-breaker/implementations/policies/consecutive-breaker/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/consecutive-breaker/consecutive-breaker.d.ts +51 -0
- package/dist/circuit-breaker/implementations/policies/consecutive-breaker/consecutive-breaker.js +85 -0
- package/dist/circuit-breaker/implementations/policies/consecutive-breaker/consecutive-breaker.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/count-breaker/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/policies/count-breaker/_module.js +2 -0
- package/dist/circuit-breaker/implementations/policies/count-breaker/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/count-breaker/count-breaker.d.ts +74 -0
- package/dist/circuit-breaker/implementations/policies/count-breaker/count-breaker.js +130 -0
- package/dist/circuit-breaker/implementations/policies/count-breaker/count-breaker.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/sampling-breaker/_module.d.ts +1 -0
- package/dist/circuit-breaker/implementations/policies/sampling-breaker/_module.js +2 -0
- package/dist/circuit-breaker/implementations/policies/sampling-breaker/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/sampling-breaker/sampling-breaker.d.ts +112 -0
- package/dist/circuit-breaker/implementations/policies/sampling-breaker/sampling-breaker.js +159 -0
- package/dist/circuit-breaker/implementations/policies/sampling-breaker/sampling-breaker.js.map +1 -0
- package/dist/circuit-breaker/implementations/policies/types.d.ts +51 -0
- package/dist/circuit-breaker/implementations/policies/types.js +16 -0
- package/dist/circuit-breaker/implementations/policies/types.js.map +1 -0
- package/dist/circuit-breaker/implementations/test-utilities/_module-exports.d.ts +4 -0
- package/dist/circuit-breaker/implementations/test-utilities/_module-exports.js +5 -0
- package/dist/circuit-breaker/implementations/test-utilities/_module-exports.js.map +1 -0
- package/dist/circuit-breaker/implementations/test-utilities/_module.d.ts +4 -0
- package/dist/circuit-breaker/implementations/test-utilities/_module.js +5 -0
- package/dist/circuit-breaker/implementations/test-utilities/_module.js.map +1 -0
- package/dist/circuit-breaker/implementations/test-utilities/circuit-breaker-storage-adapter.test-suite.d.ts +45 -0
- package/dist/circuit-breaker/implementations/test-utilities/circuit-breaker-storage-adapter.test-suite.js +110 -0
- package/dist/circuit-breaker/implementations/test-utilities/circuit-breaker-storage-adapter.test-suite.js.map +1 -0
- package/dist/circuit-breaker/implementations/test-utilities/consecutive-breaker.test-suite.d.ts +60 -0
- package/dist/circuit-breaker/implementations/test-utilities/consecutive-breaker.test-suite.js +453 -0
- package/dist/circuit-breaker/implementations/test-utilities/consecutive-breaker.test-suite.js.map +1 -0
- package/dist/circuit-breaker/implementations/test-utilities/count-breaker.test-suite.d.ts +60 -0
- package/dist/circuit-breaker/implementations/test-utilities/count-breaker.test-suite.js +703 -0
- package/dist/circuit-breaker/implementations/test-utilities/count-breaker.test-suite.js.map +1 -0
- package/dist/circuit-breaker/implementations/test-utilities/sampling-breaker.test-suite.d.ts +60 -0
- package/dist/circuit-breaker/implementations/test-utilities/sampling-breaker.test-suite.js +94 -0
- package/dist/circuit-breaker/implementations/test-utilities/sampling-breaker.test-suite.js.map +1 -0
- package/dist/collection/contracts/_module-exports.d.ts +3 -3
- package/dist/collection/contracts/_module-exports.js +0 -3
- package/dist/collection/contracts/_module-exports.js.map +1 -1
- package/dist/collection/contracts/_module.d.ts +4 -0
- package/dist/collection/contracts/_module.js +2 -0
- package/dist/collection/contracts/_module.js.map +1 -0
- package/dist/collection/contracts/_shared/_module.d.ts +11 -11
- package/dist/collection/contracts/_shared/_module.js +1 -11
- package/dist/collection/contracts/_shared/_module.js.map +1 -1
- package/dist/collection/contracts/_shared/compartor.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/compartor.type.js +1 -1
- package/dist/collection/contracts/_shared/compartor.type.js.map +1 -1
- package/dist/collection/contracts/_shared/foreach.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/foreach.type.js +1 -1
- package/dist/collection/contracts/_shared/foreach.type.js.map +1 -1
- package/dist/collection/contracts/_shared/map.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/map.type.js +1 -1
- package/dist/collection/contracts/_shared/map.type.js.map +1 -1
- package/dist/collection/contracts/_shared/modifier.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/modifier.type.js +1 -1
- package/dist/collection/contracts/_shared/modifier.type.js.map +1 -1
- package/dist/collection/contracts/_shared/predicate.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/predicate.type.js +1 -1
- package/dist/collection/contracts/_shared/predicate.type.js.map +1 -1
- package/dist/collection/contracts/_shared/reduce.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/reduce.type.js +1 -1
- package/dist/collection/contracts/_shared/reduce.type.js.map +1 -1
- package/dist/collection/contracts/_shared/tap.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/tap.type.js +1 -1
- package/dist/collection/contracts/_shared/tap.type.js.map +1 -1
- package/dist/collection/contracts/_shared/transform.type.d.ts +1 -1
- package/dist/collection/contracts/_shared/transform.type.js +1 -1
- package/dist/collection/contracts/_shared/transform.type.js.map +1 -1
- package/dist/collection/contracts/async-collection.contract.d.ts +54 -54
- package/dist/collection/contracts/async-collection.contract.js +5 -1
- package/dist/collection/contracts/async-collection.contract.js.map +1 -1
- package/dist/collection/contracts/collection.contract.d.ts +12 -12
- package/dist/collection/contracts/collection.contract.js +5 -1
- package/dist/collection/contracts/collection.contract.js.map +1 -1
- package/dist/collection/contracts/collection.errors.d.ts +18 -10
- package/dist/collection/contracts/collection.errors.js +24 -13
- package/dist/collection/contracts/collection.errors.js.map +1 -1
- package/dist/collection/implementations/_module.d.ts +4 -0
- package/dist/collection/implementations/_module.js +5 -0
- package/dist/collection/implementations/_module.js.map +1 -0
- package/dist/collection/implementations/_shared.d.ts +0 -23
- package/dist/collection/implementations/_shared.js +0 -41
- package/dist/collection/implementations/_shared.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.d.ts +2 -3
- package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js +3 -4
- package/dist/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js +3 -3
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js +3 -3
- package/dist/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js +4 -5
- package/dist/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-split-iterable.d.ts +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.js +4 -0
- package/dist/collection/implementations/async-iterable-collection/_shared/async-validate-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js +2 -2
- package/dist/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.d.ts +1 -1
- package/dist/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js +3 -16
- package/dist/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -1
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +43 -44
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js +32 -32
- package/dist/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/chunk-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/chunk-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/chunk-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/collapse-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/collapse-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/collapse-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/map-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/merge-iterable.d.ts +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/merge-iterable.js +3 -2
- package/dist/collection/implementations/iterable-collection/_shared/merge-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/pad-end-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/pad-end-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/pad-start-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/pad-start-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/repeat-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/repeat-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/repeat-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/reverse-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/reverse-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/reverse-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/skip-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/skip-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/skip-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/slice-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/slice-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/slice-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/sliding-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/sliding-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/sliding-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/split-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/split-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/split-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/take-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/take-iterable.js +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/take-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/update-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.d.ts +4 -1
- package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.js +2 -1
- package/dist/collection/implementations/iterable-collection/_shared/validate-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/when-iterable.d.ts +1 -1
- package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js +2 -2
- package/dist/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -1
- package/dist/collection/implementations/iterable-collection/iterable-collection.d.ts +17 -18
- package/dist/collection/implementations/iterable-collection/iterable-collection.js +39 -40
- package/dist/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/collection/implementations/list-collection/list-collection.d.ts +16 -17
- package/dist/collection/implementations/list-collection/list-collection.js +45 -41
- package/dist/collection/implementations/list-collection/list-collection.js.map +1 -1
- package/dist/event-bus/contracts/_module-exports.d.ts +3 -3
- package/dist/event-bus/contracts/_module-exports.js +1 -3
- package/dist/event-bus/contracts/_module-exports.js.map +1 -1
- package/dist/event-bus/contracts/_module.d.ts +3 -0
- package/dist/event-bus/contracts/_module.js +2 -0
- package/dist/event-bus/contracts/_module.js.map +1 -0
- package/dist/event-bus/contracts/event-bus-adapter.contract.d.ts +21 -8
- package/dist/event-bus/contracts/event-bus-adapter.contract.js +1 -1
- package/dist/event-bus/contracts/event-bus-adapter.contract.js.map +1 -1
- package/dist/event-bus/contracts/event-bus-factory.contract.d.ts +1 -1
- package/dist/event-bus/contracts/event-bus-factory.contract.js +2 -1
- package/dist/event-bus/contracts/event-bus-factory.contract.js.map +1 -1
- package/dist/event-bus/contracts/event-bus.contract.d.ts +12 -12
- package/dist/event-bus/contracts/event-bus.contract.js +3 -1
- package/dist/event-bus/contracts/event-bus.contract.js.map +1 -1
- package/dist/event-bus/implementations/adapters/{_module-exports.js → _module.js} +1 -1
- package/dist/event-bus/implementations/adapters/_module.js.map +1 -0
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module-exports.d.ts +1 -0
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module-exports.js +2 -0
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module-exports.js.map +1 -0
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +4 -4
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +4 -3
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module-exports.d.ts +1 -0
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module-exports.js +2 -0
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module-exports.js.map +1 -0
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +2 -3
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js +2 -1
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module-exports.d.ts +1 -0
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module-exports.js +2 -0
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module-exports.js.map +1 -0
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +7 -7
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +8 -6
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
- package/dist/event-bus/implementations/derivables/_module.d.ts +2 -0
- package/dist/event-bus/implementations/derivables/_module.js +3 -0
- package/dist/event-bus/implementations/derivables/_module.js.map +1 -0
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.d.ts +12 -14
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +8 -7
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js.map +1 -1
- package/dist/event-bus/implementations/derivables/event-bus/listener-store.d.ts +1 -1
- package/dist/event-bus/implementations/derivables/event-bus/listener-store.js +2 -1
- package/dist/event-bus/implementations/derivables/event-bus/listener-store.js.map +1 -1
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.d.ts +9 -7
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js +10 -7
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js.map +1 -1
- package/dist/event-bus/implementations/test-utilities/_module.d.ts +2 -0
- package/dist/event-bus/implementations/test-utilities/_module.js +3 -0
- package/dist/event-bus/implementations/test-utilities/_module.js.map +1 -0
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.d.ts +2 -2
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js +4 -3
- package/dist/event-bus/implementations/test-utilities/event-bus-adapter.test-suite.js.map +1 -1
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.d.ts +2 -2
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js +6 -6
- package/dist/event-bus/implementations/test-utilities/event-bus.test-suite.js.map +1 -1
- package/dist/hooks/_module-exports.d.ts +1 -1
- package/dist/hooks/_module-exports.js +0 -1
- package/dist/hooks/_module-exports.js.map +1 -1
- package/dist/hooks/_module.d.ts +3 -0
- package/dist/hooks/_module.js +3 -0
- package/dist/hooks/_module.js.map +1 -0
- package/dist/hooks/async-hooks.d.ts +3 -3
- package/dist/hooks/async-hooks.js +8 -5
- package/dist/hooks/async-hooks.js.map +1 -1
- package/dist/hooks/hooks.d.ts +2 -2
- package/dist/hooks/hooks.js +2 -1
- package/dist/hooks/hooks.js.map +1 -1
- package/dist/lock/contracts/_module-exports.d.ts +6 -6
- package/dist/lock/contracts/_module-exports.js +0 -6
- package/dist/lock/contracts/_module-exports.js.map +1 -1
- package/dist/lock/contracts/_module.d.ts +9 -0
- package/dist/lock/contracts/_module.js +4 -0
- package/dist/lock/contracts/_module.js.map +1 -0
- package/dist/lock/contracts/database-lock-adapter.contract.d.ts +8 -3
- package/dist/lock/contracts/database-lock-adapter.contract.js +1 -1
- package/dist/lock/contracts/database-lock-adapter.contract.js.map +1 -1
- package/dist/lock/contracts/lock-adapter.contract.d.ts +1 -1
- package/dist/lock/contracts/lock-adapter.contract.js +3 -1
- package/dist/lock/contracts/lock-adapter.contract.js.map +1 -1
- package/dist/lock/contracts/lock-provider-factory.contract.d.ts +1 -1
- package/dist/lock/contracts/lock-provider-factory.contract.js +2 -1
- package/dist/lock/contracts/lock-provider-factory.contract.js.map +1 -1
- package/dist/lock/contracts/lock-provider.contract.d.ts +4 -8
- package/dist/lock/contracts/lock-provider.contract.js +4 -1
- package/dist/lock/contracts/lock-provider.contract.js.map +1 -1
- package/dist/lock/contracts/lock-state.contract.d.ts +2 -2
- package/dist/lock/contracts/lock-state.contract.js +1 -0
- package/dist/lock/contracts/lock-state.contract.js.map +1 -1
- package/dist/lock/contracts/lock.contract.d.ts +18 -27
- package/dist/lock/contracts/lock.contract.js +5 -1
- package/dist/lock/contracts/lock.contract.js.map +1 -1
- package/dist/lock/contracts/lock.errors.d.ts +19 -0
- package/dist/lock/contracts/lock.errors.js +25 -0
- package/dist/lock/contracts/lock.errors.js.map +1 -1
- package/dist/lock/contracts/lock.events.d.ts +1 -1
- package/dist/lock/contracts/lock.events.js +2 -0
- package/dist/lock/contracts/lock.events.js.map +1 -1
- package/dist/lock/contracts/types.d.ts +2 -2
- package/dist/lock/contracts/types.js +2 -1
- package/dist/lock/contracts/types.js.map +1 -1
- package/dist/lock/implementations/adapters/{_module-exports.js → _module.js} +1 -1
- package/dist/lock/implementations/adapters/_module.js.map +1 -0
- package/dist/lock/implementations/adapters/kysely-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/lock/implementations/adapters/kysely-lock-adapter/_module-exports.js +2 -0
- package/dist/lock/implementations/adapters/kysely-lock-adapter/_module-exports.js.map +1 -0
- package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.d.ts +13 -18
- package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js +11 -10
- package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/adapters/memory-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/lock/implementations/adapters/memory-lock-adapter/_module-exports.js +2 -0
- package/dist/lock/implementations/adapters/memory-lock-adapter/_module-exports.js.map +1 -0
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.d.ts +11 -8
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js +10 -4
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module-exports.js +2 -0
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module-exports.js.map +1 -0
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.d.ts +8 -9
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js +6 -3
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/adapters/no-op-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/lock/implementations/adapters/no-op-lock-adapter/_module-exports.js +2 -0
- package/dist/lock/implementations/adapters/no-op-lock-adapter/_module-exports.js.map +1 -0
- package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.d.ts +3 -3
- package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js +3 -1
- package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/adapters/redis-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/lock/implementations/adapters/redis-lock-adapter/_module-exports.js +2 -0
- package/dist/lock/implementations/adapters/redis-lock-adapter/_module-exports.js.map +1 -0
- package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.d.ts +5 -6
- package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js +5 -2
- package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/derivables/_module.d.ts +2 -0
- package/dist/lock/implementations/derivables/_module.js +3 -0
- package/dist/lock/implementations/derivables/_module.js.map +1 -0
- package/dist/lock/implementations/derivables/lock-provider/_module.d.ts +1 -0
- package/dist/lock/implementations/derivables/lock-provider/_module.js +1 -0
- package/dist/lock/implementations/derivables/lock-provider/_module.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.d.ts +2 -2
- package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js +5 -3
- package/dist/lock/implementations/derivables/lock-provider/database-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.d.ts +1 -2
- package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js +4 -0
- package/dist/lock/implementations/derivables/lock-provider/is-database-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.d.ts +40 -25
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +30 -21
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.d.ts +6 -6
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js +6 -2
- package/dist/lock/implementations/derivables/lock-provider/lock-serde-transformer.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/lock.d.ts +19 -23
- package/dist/lock/implementations/derivables/lock-provider/lock.js +13 -37
- package/dist/lock/implementations/derivables/lock-provider/lock.js.map +1 -1
- package/dist/lock/implementations/derivables/lock-provider/resolve-lock-adapter.d.ts +8 -0
- package/dist/lock/implementations/derivables/lock-provider/{resolve-database-lock-adapter.js → resolve-lock-adapter.js} +7 -3
- package/dist/lock/implementations/derivables/lock-provider/resolve-lock-adapter.js.map +1 -0
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.d.ts +12 -12
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js +15 -8
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js.map +1 -1
- package/dist/lock/implementations/test-utilities/_module.d.ts +3 -0
- package/dist/lock/implementations/test-utilities/_module.js +4 -0
- package/dist/lock/implementations/test-utilities/_module.js.map +1 -0
- package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.d.ts +17 -12
- package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js +19 -14
- package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js.map +1 -1
- package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.d.ts +3 -3
- package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js +5 -5
- package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js.map +1 -1
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.d.ts +6 -6
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +9 -544
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js.map +1 -1
- package/dist/namespace/_module.d.ts +1 -0
- package/dist/namespace/_module.js +2 -0
- package/dist/namespace/_module.js.map +1 -0
- package/dist/namespace/namespace.d.ts +1 -1
- package/dist/namespace/namespace.js +1 -1
- package/dist/namespace/namespace.js.map +1 -1
- package/dist/rate-limiter/contracts/_module-exports.d.ts +9 -0
- package/dist/rate-limiter/contracts/_module-exports.js +4 -0
- package/dist/rate-limiter/contracts/_module-exports.js.map +1 -0
- package/dist/rate-limiter/contracts/_module.d.ts +9 -0
- package/dist/rate-limiter/contracts/_module.js +4 -0
- package/dist/rate-limiter/contracts/_module.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter-adapter.contract.d.ts +36 -0
- package/dist/rate-limiter/contracts/rate-limiter-adapter.contract.js +7 -0
- package/dist/rate-limiter/contracts/rate-limiter-adapter.contract.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter-policy.contract.d.ts +28 -0
- package/dist/rate-limiter/contracts/rate-limiter-policy.contract.js +5 -0
- package/dist/rate-limiter/contracts/rate-limiter-policy.contract.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter-provider-factory.contract.d.ts +19 -0
- package/dist/rate-limiter/contracts/rate-limiter-provider-factory.contract.js +10 -0
- package/dist/rate-limiter/contracts/rate-limiter-provider-factory.contract.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter-provider.contract.d.ts +39 -0
- package/dist/rate-limiter/contracts/rate-limiter-provider.contract.js +8 -0
- package/dist/rate-limiter/contracts/rate-limiter-provider.contract.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter-state.contract.d.ts +48 -0
- package/dist/rate-limiter/contracts/rate-limiter-state.contract.js +14 -0
- package/dist/rate-limiter/contracts/rate-limiter-state.contract.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter-storage-adapter.contract.d.ts +65 -0
- package/dist/rate-limiter/contracts/rate-limiter-storage-adapter.contract.js +5 -0
- package/dist/rate-limiter/contracts/rate-limiter-storage-adapter.contract.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter.contract.d.ts +46 -0
- package/dist/rate-limiter/contracts/rate-limiter.contract.js +10 -0
- package/dist/rate-limiter/contracts/rate-limiter.contract.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter.errors.d.ts +34 -0
- package/dist/rate-limiter/contracts/rate-limiter.errors.js +40 -0
- package/dist/rate-limiter/contracts/rate-limiter.errors.js.map +1 -0
- package/dist/rate-limiter/contracts/rate-limiter.events.d.ts +74 -0
- package/dist/rate-limiter/contracts/rate-limiter.events.js +17 -0
- package/dist/rate-limiter/contracts/rate-limiter.events.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/_module.d.ts +7 -0
- package/dist/rate-limiter/implementations/adapters/_module.js +8 -0
- package/dist/rate-limiter/implementations/adapters/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module-exports.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module-exports.js +2 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/database-rate-limiter-adapter.d.ts +56 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/database-rate-limiter-adapter.js +75 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/database-rate-limiter-adapter.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-policy.d.ts +48 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-policy.js +69 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-policy.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-state-manager.d.ts +15 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-state-manager.js +33 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-state-manager.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-storage.d.ts +45 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-storage.js +59 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-storage.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module-exports.js +2 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/kysely-rate-limiter-storage-adapter.d.ts +95 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/kysely-rate-limiter-storage-adapter.js +186 -0
- package/dist/rate-limiter/implementations/adapters/kysely-rate-limiter-storage-adapter/kysely-rate-limiter-storage-adapter.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module-exports.js +2 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/memory-rate-limiter-storage-adapter.d.ts +37 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/memory-rate-limiter-storage-adapter.js +71 -0
- package/dist/rate-limiter/implementations/adapters/memory-rate-limiter-storage-adapter/memory-rate-limiter-storage-adapter.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module-exports.js +2 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/mongodb-rate-limiter-storage-adapter.d.ts +77 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/mongodb-rate-limiter-storage-adapter.js +126 -0
- package/dist/rate-limiter/implementations/adapters/mongodb-rate-limiter-storage-adapter/mongodb-rate-limiter-storage-adapter.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module-exports.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module-exports.js +2 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/no-op-rate-limiter-adapter.d.ts +13 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/no-op-rate-limiter-adapter.js +29 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-adapter/no-op-rate-limiter-adapter.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module-exports.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module-exports.js +2 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/no-op-rate-limiter-storage-adapter.d.ts +16 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/no-op-rate-limiter-storage-adapter.js +33 -0
- package/dist/rate-limiter/implementations/adapters/no-op-rate-limiter-storage-adapter/no-op-rate-limiter-storage-adapter.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module-exports.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module-exports.js +2 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/_module.js +2 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/fixed-window-limiter-lua.d.ts +7 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/fixed-window-limiter-lua.js +55 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/fixed-window-limiter-lua.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-factory-lua.d.ts +4 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-factory-lua.js +71 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-factory-lua.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-lua.d.ts +4 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-lua.js +29 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-lua.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-policy-lua.d.ts +7 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-policy-lua.js +82 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-policy-lua.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-state-manager-lua.d.ts +7 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-state-manager-lua.js +51 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-state-manager-lua.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-storage-lua.d.ts +7 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-storage-lua.js +59 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/rate-limiter-storage-lua.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/sliding-window-limiter-lua.d.ts +7 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/sliding-window-limiter-lua.js +113 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/sliding-window-limiter-lua.js.map +1 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/redis-rate-limiter-adapter.d.ts +64 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/redis-rate-limiter-adapter.js +95 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/redis-rate-limiter-adapter.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/_module-exports.d.ts +2 -0
- package/dist/rate-limiter/implementations/derivables/_module-exports.js +3 -0
- package/dist/rate-limiter/implementations/derivables/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/_module.d.ts +2 -0
- package/dist/rate-limiter/implementations/derivables/_module.js +3 -0
- package/dist/rate-limiter/implementations/derivables/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/_module.js +2 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter-provider.d.ts +114 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter-provider.js +104 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter-provider.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter.d.ts +41 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter.js +160 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider/rate-limiter.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/_module.d.ts +2 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/_module.js +3 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/database-rate-limiter-provider-factory.d.ts +135 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/database-rate-limiter-provider-factory.js +156 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/database-rate-limiter-provider-factory.js.map +1 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/rate-limiter-provider-factory.d.ts +106 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/rate-limiter-provider-factory.js +132 -0
- package/dist/rate-limiter/implementations/derivables/rate-limiter-provider-factory/rate-limiter-provider-factory.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/_module-exports.d.ts +4 -0
- package/dist/rate-limiter/implementations/policies/_module-exports.js +5 -0
- package/dist/rate-limiter/implementations/policies/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/_module.d.ts +4 -0
- package/dist/rate-limiter/implementations/policies/_module.js +5 -0
- package/dist/rate-limiter/implementations/policies/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/_shared.d.ts +12 -0
- package/dist/rate-limiter/implementations/policies/_shared.js +37 -0
- package/dist/rate-limiter/implementations/policies/_shared.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/fixed-window-limiter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/policies/fixed-window-limiter/_module.js +2 -0
- package/dist/rate-limiter/implementations/policies/fixed-window-limiter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/fixed-window-limiter/fixed-window-limiter.d.ts +74 -0
- package/dist/rate-limiter/implementations/policies/fixed-window-limiter/fixed-window-limiter.js +73 -0
- package/dist/rate-limiter/implementations/policies/fixed-window-limiter/fixed-window-limiter.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/sliding-window-limiter/_module.d.ts +1 -0
- package/dist/rate-limiter/implementations/policies/sliding-window-limiter/_module.js +2 -0
- package/dist/rate-limiter/implementations/policies/sliding-window-limiter/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/sliding-window-limiter/sliding-window-limiter.d.ts +86 -0
- package/dist/rate-limiter/implementations/policies/sliding-window-limiter/sliding-window-limiter.js +106 -0
- package/dist/rate-limiter/implementations/policies/sliding-window-limiter/sliding-window-limiter.js.map +1 -0
- package/dist/rate-limiter/implementations/policies/types.d.ts +47 -0
- package/dist/rate-limiter/implementations/policies/types.js +14 -0
- package/dist/rate-limiter/implementations/policies/types.js.map +1 -0
- package/dist/rate-limiter/implementations/test-utilities/_module-exports.d.ts +3 -0
- package/dist/rate-limiter/implementations/test-utilities/_module-exports.js +4 -0
- package/dist/rate-limiter/implementations/test-utilities/_module-exports.js.map +1 -0
- package/dist/rate-limiter/implementations/test-utilities/_module.d.ts +3 -0
- package/dist/rate-limiter/implementations/test-utilities/_module.js +4 -0
- package/dist/rate-limiter/implementations/test-utilities/_module.js.map +1 -0
- package/dist/rate-limiter/implementations/test-utilities/fixed-window-limiter.test-suite.d.ts +60 -0
- package/dist/rate-limiter/implementations/test-utilities/fixed-window-limiter.test-suite.js +90 -0
- package/dist/rate-limiter/implementations/test-utilities/fixed-window-limiter.test-suite.js.map +1 -0
- package/dist/rate-limiter/implementations/test-utilities/rate-limiter-storage-adapter.test-suite.d.ts +45 -0
- package/dist/rate-limiter/implementations/test-utilities/rate-limiter-storage-adapter.test-suite.js +102 -0
- package/dist/rate-limiter/implementations/test-utilities/rate-limiter-storage-adapter.test-suite.js.map +1 -0
- package/dist/rate-limiter/implementations/test-utilities/sliding-window-limiter.test-suite.d.ts +60 -0
- package/dist/rate-limiter/implementations/test-utilities/sliding-window-limiter.test-suite.js +91 -0
- package/dist/rate-limiter/implementations/test-utilities/sliding-window-limiter.test-suite.js.map +1 -0
- package/dist/resilience/_module.d.ts +2 -0
- package/dist/resilience/_module.js +3 -0
- package/dist/resilience/_module.js.map +1 -0
- package/dist/resilience/middlewares/dynamic/dynamic.middleware.d.ts +2 -2
- package/dist/resilience/middlewares/dynamic/dynamic.middleware.js +2 -1
- package/dist/resilience/middlewares/dynamic/dynamic.middleware.js.map +1 -1
- package/dist/resilience/middlewares/fallback/_module.d.ts +1 -1
- package/dist/resilience/middlewares/fallback/_module.js +0 -1
- package/dist/resilience/middlewares/fallback/_module.js.map +1 -1
- package/dist/resilience/middlewares/fallback/fallback.middleware.d.ts +3 -25
- package/dist/resilience/middlewares/fallback/fallback.middleware.js +6 -32
- package/dist/resilience/middlewares/fallback/fallback.middleware.js.map +1 -1
- package/dist/resilience/middlewares/fallback/fallback.types.d.ts +4 -6
- package/dist/resilience/middlewares/fallback/fallback.types.js +2 -2
- package/dist/resilience/middlewares/fallback/fallback.types.js.map +1 -1
- package/dist/resilience/middlewares/observe/_module.d.ts +1 -1
- package/dist/resilience/middlewares/observe/_module.js +0 -1
- package/dist/resilience/middlewares/observe/_module.js.map +1 -1
- package/dist/resilience/middlewares/observe/observe.middleware.d.ts +3 -39
- package/dist/resilience/middlewares/observe/observe.middleware.js +5 -57
- package/dist/resilience/middlewares/observe/observe.middleware.js.map +1 -1
- package/dist/resilience/middlewares/observe/observe.types.d.ts +4 -5
- package/dist/resilience/middlewares/observe/observe.types.js +3 -1
- package/dist/resilience/middlewares/observe/observe.types.js.map +1 -1
- package/dist/resilience/middlewares/retry/_module.d.ts +1 -1
- package/dist/resilience/middlewares/retry/_module.js +0 -1
- package/dist/resilience/middlewares/retry/_module.js.map +1 -1
- package/dist/resilience/middlewares/retry/retry.middleware.d.ts +3 -33
- package/dist/resilience/middlewares/retry/retry.middleware.js +9 -40
- package/dist/resilience/middlewares/retry/retry.middleware.js.map +1 -1
- package/dist/resilience/middlewares/retry/retry.types.d.ts +7 -9
- package/dist/resilience/middlewares/retry/retry.types.js +4 -3
- package/dist/resilience/middlewares/retry/retry.types.js.map +1 -1
- package/dist/resilience/middlewares/timeout/_module.d.ts +1 -1
- package/dist/resilience/middlewares/timeout/_module.js +0 -1
- package/dist/resilience/middlewares/timeout/_module.js.map +1 -1
- package/dist/resilience/middlewares/timeout/timeout.middleware.d.ts +2 -2
- package/dist/resilience/middlewares/timeout/timeout.middleware.js +4 -2
- package/dist/resilience/middlewares/timeout/timeout.middleware.js.map +1 -1
- package/dist/resilience/middlewares/timeout/timeout.type.d.ts +4 -4
- package/dist/resilience/middlewares/timeout/timeout.type.js +4 -1
- package/dist/resilience/middlewares/timeout/timeout.type.js.map +1 -1
- package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.d.ts +1 -1
- package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.js +1 -1
- package/dist/resilience/utilities/timeout-and-fail/timeout-and-fail.js.map +1 -1
- package/dist/semaphore/contracts/_module-exports.d.ts +6 -6
- package/dist/semaphore/contracts/_module-exports.js +0 -6
- package/dist/semaphore/contracts/_module-exports.js.map +1 -1
- package/dist/semaphore/contracts/_module.d.ts +9 -0
- package/dist/semaphore/contracts/_module.js +4 -0
- package/dist/semaphore/contracts/_module.js.map +1 -0
- package/dist/semaphore/contracts/database-semaphore-adapter.contract.d.ts +1 -1
- package/dist/semaphore/contracts/database-semaphore-adapter.contract.js +1 -1
- package/dist/semaphore/contracts/database-semaphore-adapter.contract.js.map +1 -1
- package/dist/semaphore/contracts/semaphore-adapter.contract.d.ts +1 -1
- package/dist/semaphore/contracts/semaphore-adapter.contract.js +3 -1
- package/dist/semaphore/contracts/semaphore-adapter.contract.js.map +1 -1
- package/dist/semaphore/contracts/semaphore-provider-factory.contract.d.ts +1 -1
- package/dist/semaphore/contracts/semaphore-provider-factory.contract.js +2 -1
- package/dist/semaphore/contracts/semaphore-provider-factory.contract.js.map +1 -1
- package/dist/semaphore/contracts/semaphore-provider.contract.d.ts +4 -8
- package/dist/semaphore/contracts/semaphore-provider.contract.js +4 -1
- package/dist/semaphore/contracts/semaphore-provider.contract.js.map +1 -1
- package/dist/semaphore/contracts/semaphore-state.contract.d.ts +2 -2
- package/dist/semaphore/contracts/semaphore-state.contract.js +1 -0
- package/dist/semaphore/contracts/semaphore-state.contract.js.map +1 -1
- package/dist/semaphore/contracts/semaphore.contract.d.ts +18 -28
- package/dist/semaphore/contracts/semaphore.contract.js +5 -1
- package/dist/semaphore/contracts/semaphore.contract.js.map +1 -1
- package/dist/semaphore/contracts/semaphore.errors.d.ts +19 -0
- package/dist/semaphore/contracts/semaphore.errors.js +25 -0
- package/dist/semaphore/contracts/semaphore.errors.js.map +1 -1
- package/dist/semaphore/contracts/semaphore.events.d.ts +1 -1
- package/dist/semaphore/contracts/semaphore.events.js +1 -0
- package/dist/semaphore/contracts/semaphore.events.js.map +1 -1
- package/dist/semaphore/contracts/types.d.ts +2 -2
- package/dist/semaphore/contracts/types.js +2 -1
- package/dist/semaphore/contracts/types.js.map +1 -1
- package/dist/semaphore/implementations/adapters/{_module-exports.js → _module.js} +1 -1
- package/dist/semaphore/implementations/adapters/_module.js.map +1 -0
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module-exports.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module-exports.js +2 -0
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module-exports.js.map +1 -0
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.d.ts +18 -11
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js +13 -6
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module-exports.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module-exports.js +2 -0
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module-exports.js.map +1 -0
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.d.ts +13 -8
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js +22 -4
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module-exports.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module-exports.js +2 -0
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module-exports.js.map +1 -0
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.d.ts +13 -10
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.js +9 -5
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module-exports.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module-exports.js +2 -0
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module-exports.js.map +1 -0
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.d.ts +3 -3
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.js +3 -1
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module-exports.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module-exports.js +2 -0
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module-exports.js.map +1 -0
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.d.ts +4 -4
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.js +4 -1
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/derivables/_module-exports.d.ts +1 -1
- package/dist/semaphore/implementations/derivables/_module-exports.js +0 -1
- package/dist/semaphore/implementations/derivables/_module-exports.js.map +1 -1
- package/dist/semaphore/implementations/derivables/_module.d.ts +2 -0
- package/dist/semaphore/implementations/derivables/_module.js +2 -0
- package/dist/semaphore/implementations/derivables/_module.js.map +1 -0
- package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.d.ts +2 -2
- package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.js +3 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider/database-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.d.ts +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.js +4 -0
- package/dist/semaphore/implementations/derivables/semaphore-provider/is-database-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-semaphore-adapter.d.ts +8 -0
- package/dist/semaphore/implementations/derivables/semaphore-provider/{resolve-database-semaphore-adapter.js → resolve-semaphore-adapter.js} +4 -3
- package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-semaphore-adapter.js.map +1 -0
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.d.ts +57 -18
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.js +46 -12
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.js.map +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.d.ts +6 -6
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.js +6 -3
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-serde-transformer.js.map +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.d.ts +19 -23
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.js +13 -36
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore.js.map +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.d.ts +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.js +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider-factory/_module.js.map +1 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.d.ts +59 -4
- package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.js +63 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.js.map +1 -1
- package/dist/semaphore/implementations/test-utilities/_module.d.ts +3 -0
- package/dist/semaphore/implementations/test-utilities/_module.js +4 -0
- package/dist/semaphore/implementations/test-utilities/_module.js.map +1 -0
- package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.d.ts +17 -12
- package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.js +18 -12
- package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.js.map +1 -1
- package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.d.ts +4 -4
- package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.js +6 -6
- package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.js.map +1 -1
- package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.d.ts +6 -6
- package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.js +81 -810
- package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.js.map +1 -1
- package/dist/serde/contracts/_module-exports.d.ts +5 -5
- package/dist/serde/contracts/_module-exports.js +0 -5
- package/dist/serde/contracts/_module-exports.js.map +1 -1
- package/dist/serde/contracts/_module.d.ts +6 -0
- package/dist/serde/contracts/_module.js +2 -0
- package/dist/serde/contracts/_module.js.map +1 -0
- package/dist/serde/contracts/flexible-serde-adapter.contract.d.ts +1 -1
- package/dist/serde/contracts/flexible-serde-adapter.contract.js +1 -1
- package/dist/serde/contracts/flexible-serde-adapter.contract.js.map +1 -1
- package/dist/serde/contracts/flexible-serde.contract.d.ts +2 -2
- package/dist/serde/contracts/flexible-serde.contract.js +2 -1
- package/dist/serde/contracts/flexible-serde.contract.js.map +1 -1
- package/dist/serde/contracts/serde.contract.d.ts +2 -2
- package/dist/serde/contracts/serde.contract.js +2 -1
- package/dist/serde/contracts/serde.contract.js.map +1 -1
- package/dist/serde/contracts/serde.errors.d.ts +12 -0
- package/dist/serde/contracts/serde.errors.js +16 -0
- package/dist/serde/contracts/serde.errors.js.map +1 -1
- package/dist/serde/implementations/adapters/{_module-exports.js → _module.js} +1 -1
- package/dist/serde/implementations/adapters/_module.js.map +1 -0
- package/dist/serde/implementations/adapters/no-op-serde-adapter/_module-exports.d.ts +1 -0
- package/dist/serde/implementations/adapters/no-op-serde-adapter/_module-exports.js +2 -0
- package/dist/serde/implementations/adapters/no-op-serde-adapter/_module-exports.js.map +1 -0
- package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.d.ts +2 -2
- package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js +5 -1
- package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js.map +1 -1
- package/dist/serde/implementations/adapters/super-json-serde-adapter/_module-exports.d.ts +1 -0
- package/dist/serde/implementations/adapters/super-json-serde-adapter/_module-exports.js +2 -0
- package/dist/serde/implementations/adapters/super-json-serde-adapter/_module-exports.js.map +1 -0
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.d.ts +2 -2
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +4 -4
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js.map +1 -1
- package/dist/serde/implementations/derivables/_module.d.ts +1 -0
- package/dist/serde/implementations/derivables/_module.js +2 -0
- package/dist/serde/implementations/derivables/_module.js.map +1 -0
- package/dist/serde/implementations/derivables/serde-transformers.d.ts +2 -2
- package/dist/serde/implementations/derivables/serde-transformers.js +5 -1
- package/dist/serde/implementations/derivables/serde-transformers.js.map +1 -1
- package/dist/serde/implementations/derivables/serde.d.ts +7 -7
- package/dist/serde/implementations/derivables/serde.js +7 -6
- package/dist/serde/implementations/derivables/serde.js.map +1 -1
- package/dist/serde/implementations/test-utilities/_module.d.ts +2 -0
- package/dist/serde/implementations/test-utilities/_module.js +3 -0
- package/dist/serde/implementations/test-utilities/_module.js.map +1 -0
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.d.ts +2 -2
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +2 -1
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js.map +1 -1
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.d.ts +2 -2
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +2 -1
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js.map +1 -1
- package/dist/shared-lock/contracts/_module-exports.d.ts +7 -7
- package/dist/shared-lock/contracts/_module-exports.js +0 -7
- package/dist/shared-lock/contracts/_module-exports.js.map +1 -1
- package/dist/shared-lock/contracts/_module.d.ts +10 -0
- package/dist/shared-lock/contracts/_module.js +4 -0
- package/dist/shared-lock/contracts/_module.js.map +1 -0
- package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.d.ts +1 -1
- package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.js +1 -1
- package/dist/shared-lock/contracts/database-shared-lock-adapter.contract.js.map +1 -1
- package/dist/shared-lock/contracts/shared-lock-adapter.contract.d.ts +1 -1
- package/dist/shared-lock/contracts/shared-lock-adapter.contract.js +3 -1
- package/dist/shared-lock/contracts/shared-lock-adapter.contract.js.map +1 -1
- package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.d.ts +1 -1
- package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.js +2 -1
- package/dist/shared-lock/contracts/shared-lock-provider-factory.contract.js.map +1 -1
- package/dist/shared-lock/contracts/shared-lock-provider.contract.d.ts +4 -8
- package/dist/shared-lock/contracts/shared-lock-provider.contract.js +4 -1
- package/dist/shared-lock/contracts/shared-lock-provider.contract.js.map +1 -1
- package/dist/shared-lock/contracts/shared-lock-state.contract.d.ts +3 -3
- package/dist/shared-lock/contracts/shared-lock-state.contract.js +1 -0
- package/dist/shared-lock/contracts/shared-lock-state.contract.js.map +1 -1
- package/dist/shared-lock/contracts/shared-lock.contract.d.ts +33 -51
- package/dist/shared-lock/contracts/shared-lock.contract.js +5 -0
- package/dist/shared-lock/contracts/shared-lock.contract.js.map +1 -1
- package/dist/shared-lock/contracts/shared-lock.errors.d.ts +37 -0
- package/dist/shared-lock/contracts/shared-lock.errors.js +52 -0
- package/dist/shared-lock/contracts/shared-lock.errors.js.map +1 -1
- package/dist/shared-lock/contracts/shared-lock.events.d.ts +1 -1
- package/dist/shared-lock/contracts/shared-lock.events.js +1 -0
- package/dist/shared-lock/contracts/shared-lock.events.js.map +1 -1
- package/dist/shared-lock/contracts/types.d.ts +2 -2
- package/dist/shared-lock/contracts/types.js +2 -1
- package/dist/shared-lock/contracts/types.js.map +1 -1
- package/dist/shared-lock/implementations/adapters/{_module-exports.js → _module.js} +1 -1
- package/dist/shared-lock/implementations/adapters/_module.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module-exports.js +2 -0
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module-exports.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.d.ts +21 -14
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js +15 -8
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js.map +1 -1
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module-exports.js +2 -0
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module-exports.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.d.ts +15 -12
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js +12 -7
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js.map +1 -1
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module-exports.js +2 -0
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module-exports.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.d.ts +15 -15
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js +10 -8
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js.map +1 -1
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module-exports.js +2 -0
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module-exports.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.d.ts +3 -3
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.js +3 -1
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.js.map +1 -1
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module-exports.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module-exports.js +2 -0
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module-exports.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.d.ts +6 -6
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.js +6 -3
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.js.map +1 -1
- package/dist/shared-lock/implementations/derivables/_module.d.ts +2 -0
- package/dist/shared-lock/implementations/derivables/_module.js +3 -0
- package/dist/shared-lock/implementations/derivables/_module.js.map +1 -0
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.d.ts +2 -3
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.js +6 -3
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/database-shared-lock-adapter.js.map +1 -1
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.d.ts +1 -1
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.js +1 -0
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/is-database-shared-lock-adapter.js.map +1 -1
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-shared-lock-adapter.d.ts +8 -0
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/{resolve-database-shared-lock-adapter.js → resolve-shared-lock-adapter.js} +4 -3
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-shared-lock-adapter.js.map +1 -0
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.d.ts +43 -27
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.js +32 -22
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.js.map +1 -1
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.d.ts +6 -6
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.js +6 -3
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-serde-transformer.js.map +1 -1
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.d.ts +31 -35
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.js +17 -68
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.js.map +1 -1
- package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.d.ts +19 -19
- package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.js +22 -15
- package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.js.map +1 -1
- package/dist/shared-lock/implementations/test-utilities/_module.d.ts +3 -0
- package/dist/shared-lock/implementations/test-utilities/_module.js +4 -0
- package/dist/shared-lock/implementations/test-utilities/_module.js.map +1 -0
- package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.d.ts +20 -15
- package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js +24 -13
- package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js.map +1 -1
- package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.d.ts +3 -3
- package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js +5 -5
- package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js.map +1 -1
- package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.d.ts +6 -6
- package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js +1008 -2498
- package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js.map +1 -1
- package/dist/task/contracts/_module-exports.d.ts +1 -0
- package/dist/task/contracts/_module-exports.js +2 -0
- package/dist/task/contracts/_module-exports.js.map +1 -0
- package/dist/task/contracts/_module.d.ts +1 -0
- package/dist/task/contracts/_module.js +2 -0
- package/dist/task/contracts/_module.js.map +1 -0
- package/dist/task/contracts/task.contract.d.ts +20 -0
- package/dist/task/contracts/task.contract.js +6 -0
- package/dist/task/contracts/task.contract.js.map +1 -0
- package/dist/task/implementations/_module-exports.d.ts +1 -0
- package/dist/task/implementations/_module-exports.js +2 -0
- package/dist/task/implementations/_module-exports.js.map +1 -0
- package/dist/task/implementations/_module.d.ts +1 -0
- package/dist/task/implementations/_module.js +2 -0
- package/dist/task/implementations/_module.js.map +1 -0
- package/dist/task/implementations/abort-and-fail.js.map +1 -0
- package/dist/task/{task.d.ts → implementations/task.d.ts} +27 -25
- package/dist/task/{task.js → implementations/task.js} +19 -10
- package/dist/task/implementations/task.js.map +1 -0
- package/dist/time-span/contracts/_module.d.ts +1 -0
- package/dist/time-span/contracts/_module.js +2 -0
- package/dist/time-span/contracts/_module.js.map +1 -0
- package/dist/time-span/implementations/_module.d.ts +1 -0
- package/dist/time-span/implementations/_module.js +2 -0
- package/dist/time-span/implementations/_module.js.map +1 -0
- package/dist/time-span/implementations/time-span.d.ts +3 -3
- package/dist/time-span/implementations/time-span.js +4 -2
- package/dist/time-span/implementations/time-span.js.map +1 -1
- package/dist/utilities/_module-exports.d.ts +2 -3
- package/dist/utilities/_module-exports.js +0 -3
- package/dist/utilities/_module-exports.js.map +1 -1
- package/dist/utilities/_module.d.ts +5 -0
- package/dist/utilities/_module.js +4 -0
- package/dist/utilities/_module.js.map +1 -0
- package/dist/utilities/contracts/_module.d.ts +5 -5
- package/dist/utilities/contracts/_module.js +1 -5
- package/dist/utilities/contracts/_module.js.map +1 -1
- package/dist/utilities/errors.d.ts +2 -10
- package/dist/utilities/errors.js +2 -13
- package/dist/utilities/errors.js.map +1 -1
- package/dist/utilities/functions/_module.d.ts +9 -2
- package/dist/utilities/functions/_module.js +9 -2
- package/dist/utilities/functions/_module.js.map +1 -1
- package/dist/utilities/functions/array-like-to-iterable.d.ts +7 -0
- package/dist/utilities/functions/array-like-to-iterable.js +20 -0
- package/dist/utilities/functions/array-like-to-iterable.js.map +1 -0
- package/dist/utilities/functions/error-policy.d.ts +7 -7
- package/dist/utilities/functions/error-policy.js +17 -28
- package/dist/utilities/functions/error-policy.js.map +1 -1
- package/dist/utilities/functions/invokable.d.ts +2 -2
- package/dist/utilities/functions/invokable.js +3 -1
- package/dist/utilities/functions/invokable.js.map +1 -1
- package/dist/utilities/functions/is-array-like.d.ts +7 -0
- package/dist/utilities/functions/is-array-like.js +17 -0
- package/dist/utilities/functions/is-array-like.js.map +1 -0
- package/dist/utilities/functions/is-async-iterable.d.ts +7 -0
- package/dist/utilities/functions/is-async-iterable.js +14 -0
- package/dist/utilities/functions/is-async-iterable.js.map +1 -0
- package/dist/utilities/functions/is-class.d.ts +1 -1
- package/dist/utilities/functions/is-class.js +1 -0
- package/dist/utilities/functions/is-class.js.map +1 -1
- package/dist/utilities/functions/is-iterable.d.ts +7 -0
- package/dist/utilities/functions/is-iterable.js +13 -0
- package/dist/utilities/functions/is-iterable.js.map +1 -0
- package/dist/utilities/functions/is-standard-schema.d.ts +1 -1
- package/dist/utilities/functions/is-standard-schema.js +1 -0
- package/dist/utilities/functions/is-standard-schema.js.map +1 -1
- package/dist/utilities/functions/iterable-to-async-iterable.d.ts +7 -0
- package/dist/utilities/functions/iterable-to-async-iterable.js +17 -0
- package/dist/utilities/functions/iterable-to-async-iterable.js.map +1 -0
- package/dist/utilities/functions/lazy.d.ts +4 -4
- package/dist/utilities/functions/lazy.js +5 -3
- package/dist/utilities/functions/lazy.js.map +1 -1
- package/dist/utilities/functions/resolve-async-iterable-value.d.ts +8 -0
- package/dist/utilities/functions/resolve-async-iterable-value.js +21 -0
- package/dist/utilities/functions/resolve-async-iterable-value.js.map +1 -0
- package/dist/utilities/functions/resolve-iterable-value.d.ts +8 -0
- package/dist/utilities/functions/resolve-iterable-value.js +16 -0
- package/dist/utilities/functions/resolve-iterable-value.js.map +1 -0
- package/dist/utilities/functions/resolve-one-or-more.js +1 -1
- package/dist/utilities/functions/resolve-one-or-more.js.map +1 -1
- package/dist/utilities/functions/validate.d.ts +1 -1
- package/dist/utilities/functions/validate.js +1 -0
- package/dist/utilities/functions/validate.js.map +1 -1
- package/dist/utilities/functions/with-jitter.d.ts +15 -0
- package/dist/utilities/functions/with-jitter.js +14 -0
- package/dist/utilities/functions/with-jitter.js.map +1 -0
- package/dist/utilities/types/_module.d.ts +4 -4
- package/dist/utilities/types/_module.js +1 -4
- package/dist/utilities/types/_module.js.map +1 -1
- package/dist/utilities/types/async-iterable-value.type.d.ts +6 -1
- package/package.json +207 -28
- package/dist/backoff-policies/constant-backoff-policy/_module.d.ts +0 -1
- package/dist/backoff-policies/constant-backoff-policy/_module.js +0 -2
- package/dist/backoff-policies/constant-backoff-policy/_module.js.map +0 -1
- package/dist/backoff-policies/constant-backoff-policy/constant-backoff-policy.d.ts +0 -30
- package/dist/backoff-policies/constant-backoff-policy/constant-backoff-policy.js +0 -29
- package/dist/backoff-policies/constant-backoff-policy/constant-backoff-policy.js.map +0 -1
- package/dist/backoff-policies/exponential-backoff-policy/_module.d.ts +0 -1
- package/dist/backoff-policies/exponential-backoff-policy/_module.js +0 -2
- package/dist/backoff-policies/exponential-backoff-policy/_module.js.map +0 -1
- package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +0 -38
- package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.js +0 -30
- package/dist/backoff-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +0 -1
- package/dist/backoff-policies/linear-backoff-policy/_module.d.ts +0 -1
- package/dist/backoff-policies/linear-backoff-policy/_module.js +0 -2
- package/dist/backoff-policies/linear-backoff-policy/_module.js.map +0 -1
- package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.d.ts +0 -34
- package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.js +0 -30
- package/dist/backoff-policies/linear-backoff-policy/linear-backoff-policy.js.map +0 -1
- package/dist/backoff-policies/polynomial-backoff-policy/_module.d.ts +0 -1
- package/dist/backoff-policies/polynomial-backoff-policy/_module.js +0 -2
- package/dist/backoff-policies/polynomial-backoff-policy/_module.js.map +0 -1
- package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +0 -38
- package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +0 -30
- package/dist/backoff-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +0 -1
- package/dist/cache/implementations/adapters/_module-exports.js.map +0 -1
- package/dist/event-bus/implementations/adapters/_module-exports.js.map +0 -1
- package/dist/lock/implementations/adapters/_module-exports.js.map +0 -1
- package/dist/lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.d.ts +0 -9
- package/dist/lock/implementations/derivables/lock-provider/resolve-database-lock-adapter.js.map +0 -1
- package/dist/semaphore/implementations/adapters/_module-exports.js.map +0 -1
- package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-database-semaphore-adapter.d.ts +0 -8
- package/dist/semaphore/implementations/derivables/semaphore-provider/resolve-database-semaphore-adapter.js.map +0 -1
- package/dist/serde/implementations/adapters/_module-exports.js.map +0 -1
- package/dist/shared-lock/implementations/adapters/_module-exports.js.map +0 -1
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-database-shared-lock-adapter.d.ts +0 -8
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/resolve-database-shared-lock-adapter.js.map +0 -1
- package/dist/task/_module-exports.d.ts +0 -1
- package/dist/task/_module-exports.js +0 -2
- package/dist/task/_module-exports.js.map +0 -1
- package/dist/task/abort-and-fail.js.map +0 -1
- package/dist/task/task.js.map +0 -1
- package/dist/utilities/classes/_module.d.ts +0 -1
- package/dist/utilities/classes/_module.js +0 -2
- package/dist/utilities/classes/_module.js.map +0 -1
- package/dist/utilities/classes/kysely-table-name-transformer-plugin/_module.d.ts +0 -1
- package/dist/utilities/classes/kysely-table-name-transformer-plugin/_module.js +0 -2
- package/dist/utilities/classes/kysely-table-name-transformer-plugin/_module.js.map +0 -1
- package/dist/utilities/classes/kysely-table-name-transformer-plugin/kysely-table-name-transformer-plugin.d.ts +0 -13
- package/dist/utilities/classes/kysely-table-name-transformer-plugin/kysely-table-name-transformer-plugin.js +0 -51
- package/dist/utilities/classes/kysely-table-name-transformer-plugin/kysely-table-name-transformer-plugin.js.map +0 -1
- package/dist/utilities/functions/result.d.ts +0 -91
- package/dist/utilities/functions/result.js +0 -59
- package/dist/utilities/functions/result.js.map +0 -1
- /package/dist/cache/implementations/adapters/{_module-exports.d.ts → _module.d.ts} +0 -0
- /package/dist/event-bus/implementations/adapters/{_module-exports.d.ts → _module.d.ts} +0 -0
- /package/dist/lock/implementations/adapters/{_module-exports.d.ts → _module.d.ts} +0 -0
- /package/dist/semaphore/implementations/adapters/{_module-exports.d.ts → _module.d.ts} +0 -0
- /package/dist/serde/implementations/adapters/{_module-exports.d.ts → _module.d.ts} +0 -0
- /package/dist/shared-lock/implementations/adapters/{_module-exports.d.ts → _module.d.ts} +0 -0
- /package/dist/task/{abort-and-fail.d.ts → implementations/abort-and-fail.d.ts} +0 -0
- /package/dist/task/{abort-and-fail.js → implementations/abort-and-fail.js} +0 -0
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import {} from "../../../../event-bus/contracts/event-bus.contract.js";
|
|
5
|
+
import {} from "../../../../hooks/_module.js";
|
|
6
|
+
import {} from "../../../../namespace/_module.js";
|
|
7
|
+
import { FailedAcquireWriterLockError, FailedRefreshReaderSemaphoreError, FailedRefreshWriterLockError, FailedReleaseReaderSemaphoreError, FailedReleaseWriterLockError, isSharedLockError, LimitReachedReaderSemaphoreError, SHARED_LOCK_EVENTS, SHARED_LOCK_STATE, } from "../../../../shared-lock/contracts/_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, UnexpectedError, } from "../../../../utilities/_module.js";
|
|
8
13
|
/**
|
|
9
14
|
* @internal
|
|
10
15
|
*/
|
|
@@ -57,20 +62,6 @@ export class SharedLock {
|
|
|
57
62
|
_internal_getAdapter() {
|
|
58
63
|
return this.originalAdapter;
|
|
59
64
|
}
|
|
60
|
-
runReader(asyncFn) {
|
|
61
|
-
return new Task(async () => {
|
|
62
|
-
try {
|
|
63
|
-
const hasAquired = await this.acquireReader();
|
|
64
|
-
if (!hasAquired) {
|
|
65
|
-
return resultFailure(new LimitReachedReaderSemaphoreError(`Key "${this._key.toString()}" already acquired`));
|
|
66
|
-
}
|
|
67
|
-
return resultSuccess(await resolveLazyable(asyncFn));
|
|
68
|
-
}
|
|
69
|
-
finally {
|
|
70
|
-
await this.releaseReader();
|
|
71
|
-
}
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
65
|
runReaderOrFail(asyncFn) {
|
|
75
66
|
return new Task(async () => {
|
|
76
67
|
try {
|
|
@@ -82,20 +73,6 @@ export class SharedLock {
|
|
|
82
73
|
}
|
|
83
74
|
});
|
|
84
75
|
}
|
|
85
|
-
runReaderBlocking(asyncFn, settings) {
|
|
86
|
-
return new Task(async () => {
|
|
87
|
-
try {
|
|
88
|
-
const hasAquired = await this.acquireReaderBlocking(settings);
|
|
89
|
-
if (!hasAquired) {
|
|
90
|
-
return resultFailure(new LimitReachedReaderSemaphoreError(`Key "${this._key.toString()}" has reached the limit ${String(this.limit)}`));
|
|
91
|
-
}
|
|
92
|
-
return resultSuccess(await resolveLazyable(asyncFn));
|
|
93
|
-
}
|
|
94
|
-
finally {
|
|
95
|
-
await this.releaseReader();
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
76
|
runReaderBlockingOrFail(asyncFn, settings) {
|
|
100
77
|
return new Task(async () => {
|
|
101
78
|
try {
|
|
@@ -172,7 +149,7 @@ export class SharedLock {
|
|
|
172
149
|
return new Task(async () => {
|
|
173
150
|
const hasAquired = await this.acquireReader();
|
|
174
151
|
if (!hasAquired) {
|
|
175
|
-
throw
|
|
152
|
+
throw LimitReachedReaderSemaphoreError.create(this._key);
|
|
176
153
|
}
|
|
177
154
|
});
|
|
178
155
|
}
|
|
@@ -195,7 +172,7 @@ export class SharedLock {
|
|
|
195
172
|
return new Task(async () => {
|
|
196
173
|
const hasAquired = await this.acquireReaderBlocking(settings);
|
|
197
174
|
if (!hasAquired) {
|
|
198
|
-
throw
|
|
175
|
+
throw LimitReachedReaderSemaphoreError.create(this._key);
|
|
199
176
|
}
|
|
200
177
|
});
|
|
201
178
|
}
|
|
@@ -224,7 +201,7 @@ export class SharedLock {
|
|
|
224
201
|
return new Task(async () => {
|
|
225
202
|
const hasReleased = await this.releaseReader();
|
|
226
203
|
if (!hasReleased) {
|
|
227
|
-
throw
|
|
204
|
+
throw FailedReleaseReaderSemaphoreError.create(this._key, this.lockId);
|
|
228
205
|
}
|
|
229
206
|
});
|
|
230
207
|
}
|
|
@@ -275,21 +252,7 @@ export class SharedLock {
|
|
|
275
252
|
return new Task(async () => {
|
|
276
253
|
const hasRefreshed = await this.refreshReader(ttl);
|
|
277
254
|
if (!hasRefreshed) {
|
|
278
|
-
throw
|
|
279
|
-
}
|
|
280
|
-
});
|
|
281
|
-
}
|
|
282
|
-
runWriter(asyncFn) {
|
|
283
|
-
return new Task(async () => {
|
|
284
|
-
try {
|
|
285
|
-
const hasAquired = await this.acquireWriter();
|
|
286
|
-
if (!hasAquired) {
|
|
287
|
-
return resultFailure(new FailedAcquireWriterLockError(`Key "${this._key.toString()}" already acquired`));
|
|
288
|
-
}
|
|
289
|
-
return resultSuccess(await resolveLazyable(asyncFn));
|
|
290
|
-
}
|
|
291
|
-
finally {
|
|
292
|
-
await this.releaseWriter();
|
|
255
|
+
throw FailedRefreshReaderSemaphoreError.create(this._key, this.lockId);
|
|
293
256
|
}
|
|
294
257
|
});
|
|
295
258
|
}
|
|
@@ -304,20 +267,6 @@ export class SharedLock {
|
|
|
304
267
|
}
|
|
305
268
|
});
|
|
306
269
|
}
|
|
307
|
-
runWriterBlocking(asyncFn, settings) {
|
|
308
|
-
return new Task(async () => {
|
|
309
|
-
try {
|
|
310
|
-
const hasAquired = await this.acquireWriterBlocking(settings);
|
|
311
|
-
if (!hasAquired) {
|
|
312
|
-
return resultFailure(new FailedAcquireWriterLockError(`Key "${this._key.toString()}" already acquired`));
|
|
313
|
-
}
|
|
314
|
-
return resultSuccess(await resolveLazyable(asyncFn));
|
|
315
|
-
}
|
|
316
|
-
finally {
|
|
317
|
-
await this.releaseWriter();
|
|
318
|
-
}
|
|
319
|
-
});
|
|
320
|
-
}
|
|
321
270
|
runWriterBlockingOrFail(asyncFn, settings) {
|
|
322
271
|
return new Task(async () => {
|
|
323
272
|
try {
|
|
@@ -354,7 +303,7 @@ export class SharedLock {
|
|
|
354
303
|
return new Task(async () => {
|
|
355
304
|
const hasAquired = await this.acquireWriter();
|
|
356
305
|
if (!hasAquired) {
|
|
357
|
-
throw
|
|
306
|
+
throw FailedAcquireWriterLockError.create(this._key);
|
|
358
307
|
}
|
|
359
308
|
});
|
|
360
309
|
}
|
|
@@ -377,7 +326,7 @@ export class SharedLock {
|
|
|
377
326
|
return new Task(async () => {
|
|
378
327
|
const hasAquired = await this.acquireWriterBlocking(settings);
|
|
379
328
|
if (!hasAquired) {
|
|
380
|
-
throw
|
|
329
|
+
throw FailedAcquireWriterLockError.create(this._key);
|
|
381
330
|
}
|
|
382
331
|
});
|
|
383
332
|
}
|
|
@@ -406,7 +355,7 @@ export class SharedLock {
|
|
|
406
355
|
return new Task(async () => {
|
|
407
356
|
const hasRelased = await this.releaseWriter();
|
|
408
357
|
if (!hasRelased) {
|
|
409
|
-
throw
|
|
358
|
+
throw FailedReleaseWriterLockError.create(this._key, this.lockId);
|
|
410
359
|
}
|
|
411
360
|
});
|
|
412
361
|
}
|
|
@@ -459,7 +408,7 @@ export class SharedLock {
|
|
|
459
408
|
return new Task(async () => {
|
|
460
409
|
const hasRefreshed = await this.refreshWriter(ttl);
|
|
461
410
|
if (!hasRefreshed) {
|
|
462
|
-
throw
|
|
411
|
+
throw FailedRefreshWriterLockError.create(this._key, this.lockId);
|
|
463
412
|
}
|
|
464
413
|
});
|
|
465
414
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-lock.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AAGjD,OAAO,EACH,4BAA4B,EAC5B,iCAAiC,EACjC,4BAA4B,EAC5B,iCAAiC,EACjC,4BAA4B,EAC5B,iBAAiB,EACjB,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB,GAapB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EAAE,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAC1E,OAAO,EACH,eAAe,EACf,aAAa,EACb,aAAa,EACb,eAAe,GAGlB,MAAM,gCAAgC,CAAC;AAgCxC;;GAEG;AACH,MAAM,OAAO,UAAU;IACnB;;OAEG;IACH,MAAM,CAAC,mBAAmB,CACtB,iBAA6B;QAE7B,OAAO;YACH,OAAO,EAAE,GAAG;YACZ,GAAG,EAAE,iBAAiB,CAAC,IAAI,CAAC,GAAG,EAAE;YACjC,KAAK,EAAE,iBAAiB,CAAC,KAAK;YAC9B,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,CAAqB;IAC5B,eAAe,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C,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;iBACb,CAAC;YACjD,CAAC;YAED,IAAI,KAAK,CAAC,MAAM,KAAK,IAAI,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;gBACxD,OAAO;oBACH,IAAI,EAAE,iBAAiB,CAAC,eAAe;oBACvC,aAAa,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;oBACrD,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI;oBACnD,cAAc,EACV,KAAK,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI;oBACxD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;oBACzB,aAAa,EACT,cAAc,KAAK,IAAI;wBACnB,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;4BACnB,KAAK,EAAE,IAAI,IAAI,EAAE;4BACjB,GAAG,EAAE,cAAc;yBACtB,CAAC;iBAC0B,CAAC;YAC/C,CAAC;YAED,MAAM,IAAI,eAAe,CACrB,sIAAsI,CACzI,CAAC;QACN,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC1C,CAAC;CACJ"}
|
|
1
|
+
{"version":3,"file":"shared-lock.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/derivables/shared-lock-provider/shared-lock.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAyB,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAA0B,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAA4B,MAAM,wBAAwB,CAAC;AAClE,OAAO,EACH,4BAA4B,EAC5B,iCAAiC,EACjC,4BAA4B,EAC5B,iCAAiC,EACjC,4BAA4B,EAC5B,iBAAiB,EACjB,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB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CAAC,aAAa,CAAC,IAAI;oBACxD,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK;oBACzB,aAAa,EACT,cAAc,KAAK,IAAI;wBACnB,CAAC,CAAC,IAAI;wBACN,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;4BACnB,KAAK,EAAE,IAAI,IAAI,EAAE;4BACjB,GAAG,EAAE,cAAc;yBACtB,CAAC;iBAC0B,CAAC;YAC/C,CAAC;YAED,MAAM,IAAI,eAAe,CACrB,sIAAsI,CACzI,CAAC;QACN,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC1C,CAAC;CACJ"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import type
|
|
5
|
-
import
|
|
6
|
-
import type
|
|
4
|
+
import { type IEventBus } from "../../../../event-bus/contracts/_module.js";
|
|
5
|
+
import { type Namespace } from "../../../../namespace/_module.js";
|
|
6
|
+
import { type ISharedLockProviderFactory, type ISharedLockProvider, type SharedLockAdapterVariants } from "../../../../shared-lock/contracts/_module.js";
|
|
7
7
|
import { type SharedLockProviderSettingsBase } from "../../../../shared-lock/implementations/derivables/shared-lock-provider/_module.js";
|
|
8
|
-
import type
|
|
9
|
-
import type
|
|
8
|
+
import { type ITimeSpan } from "../../../../time-span/contracts/_module.js";
|
|
9
|
+
import { type Invokable } from "../../../../utilities/_module.js";
|
|
10
10
|
/**
|
|
11
11
|
*
|
|
12
12
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock"`
|
|
@@ -34,18 +34,18 @@ export declare class SharedLockProviderFactory<TAdapters extends string> impleme
|
|
|
34
34
|
* @example
|
|
35
35
|
* ```ts
|
|
36
36
|
* import { SharedLockProviderFactory } from "@daiso-tech/core/shared-lock";
|
|
37
|
-
* import
|
|
38
|
-
* import {
|
|
37
|
+
* import { MemorySharedLockAdapter } from "@daiso-tech/core/shared-lock/memory-shared-lock-adapter";
|
|
38
|
+
* import { RedisSharedLockAdapter } from "@daiso-tech/core/shared-lock/redis-shared-lock-adapter";
|
|
39
39
|
* import { Serde } from "@daiso-tech/core/serde";
|
|
40
|
-
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/
|
|
40
|
+
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/super-json-serde-adapter";
|
|
41
41
|
* import Redis from "ioredis"
|
|
42
42
|
*
|
|
43
43
|
* const serde = new Serde(new SuperJsonSerdeAdapter());
|
|
44
44
|
* const lockProviderFactory = new SharedLockProviderFactory({
|
|
45
45
|
* serde,
|
|
46
46
|
* adapters: {
|
|
47
|
-
* memory: new
|
|
48
|
-
* redis: new
|
|
47
|
+
* memory: new MemorySharedLockAdapter(),
|
|
48
|
+
* redis: new RedisSharedLockAdapter(new Redis("YOUR_REDIS_CONNECTION")),
|
|
49
49
|
* },
|
|
50
50
|
* defaultAdapter: "memory",
|
|
51
51
|
* });
|
|
@@ -63,10 +63,10 @@ export declare class SharedLockProviderFactory<TAdapters extends string> impleme
|
|
|
63
63
|
* @example
|
|
64
64
|
* ```ts
|
|
65
65
|
* import { SharedLockProviderFactory } from "@daiso-tech/core/shared-lock";
|
|
66
|
-
* import
|
|
67
|
-
* import {
|
|
66
|
+
* import { MemorySharedLockAdapter } from "@daiso-tech/core/shared-lock/memory-shared-lock-adapter";
|
|
67
|
+
* import { RedisSharedLockAdapter } from "@daiso-tech/core/shared-lock/redis-shared-lock-adapter";
|
|
68
68
|
* import { Serde } from "@daiso-tech/core/serde";
|
|
69
|
-
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/
|
|
69
|
+
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/super-json-serde-adapter";
|
|
70
70
|
* import { TimeSpan } from "@daiso-tech/core/time-span" from "@daiso-tech/core/time-span";
|
|
71
71
|
* import Redis from "ioredis";
|
|
72
72
|
*
|
|
@@ -74,23 +74,23 @@ export declare class SharedLockProviderFactory<TAdapters extends string> impleme
|
|
|
74
74
|
* const lockProviderFactory = new SharedLockProviderFactory({
|
|
75
75
|
* serde,
|
|
76
76
|
* adapters: {
|
|
77
|
-
* memory: new
|
|
78
|
-
* redis: new
|
|
77
|
+
* memory: new MemorySharedLockAdapter(),
|
|
78
|
+
* redis: new RedisSharedLockAdapter(new Redis("YOUR_REDIS_CONNECTION")),
|
|
79
79
|
* },
|
|
80
80
|
* defaultAdapter: "memory",
|
|
81
81
|
* });
|
|
82
82
|
*
|
|
83
|
-
* // Will acquire key using the default adapter which is
|
|
83
|
+
* // Will acquire key using the default adapter which is MemorySharedLockAdapter
|
|
84
84
|
* await lockProviderFactory
|
|
85
85
|
* .use()
|
|
86
86
|
* .create("a")
|
|
87
|
-
* .
|
|
87
|
+
* .acquireWriter();
|
|
88
88
|
*
|
|
89
|
-
* // Will acquire key using the redis adapter
|
|
89
|
+
* // Will acquire key using the redis adapter
|
|
90
90
|
* await lockProviderFactory
|
|
91
91
|
* .use("redis")
|
|
92
92
|
* .create("a")
|
|
93
|
-
* .
|
|
93
|
+
* .acquireWriter();
|
|
94
94
|
* ```
|
|
95
95
|
*/
|
|
96
96
|
use(adapterName?: TAdapters | undefined): ISharedLockProvider;
|
|
@@ -1,5 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module SharedLock
|
|
3
|
+
*/
|
|
4
|
+
import {} from "../../../../event-bus/contracts/_module.js";
|
|
5
|
+
import {} from "../../../../namespace/_module.js";
|
|
6
|
+
import {} from "../../../../shared-lock/contracts/_module.js";
|
|
2
7
|
import { DEFAULT_SHARED_LOCK_NAMESPACE, SharedLockProvider, } from "../../../../shared-lock/implementations/derivables/shared-lock-provider/_module.js";
|
|
8
|
+
import {} from "../../../../time-span/contracts/_module.js";
|
|
9
|
+
import { DefaultAdapterNotDefinedError, UnregisteredAdapterError, } from "../../../../utilities/_module.js";
|
|
3
10
|
/**
|
|
4
11
|
* The `SharedLockProviderFactory` class is immutable.
|
|
5
12
|
*
|
|
@@ -12,18 +19,18 @@ export class SharedLockProviderFactory {
|
|
|
12
19
|
* @example
|
|
13
20
|
* ```ts
|
|
14
21
|
* import { SharedLockProviderFactory } from "@daiso-tech/core/shared-lock";
|
|
15
|
-
* import
|
|
16
|
-
* import {
|
|
22
|
+
* import { MemorySharedLockAdapter } from "@daiso-tech/core/shared-lock/memory-shared-lock-adapter";
|
|
23
|
+
* import { RedisSharedLockAdapter } from "@daiso-tech/core/shared-lock/redis-shared-lock-adapter";
|
|
17
24
|
* import { Serde } from "@daiso-tech/core/serde";
|
|
18
|
-
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/
|
|
25
|
+
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/super-json-serde-adapter";
|
|
19
26
|
* import Redis from "ioredis"
|
|
20
27
|
*
|
|
21
28
|
* const serde = new Serde(new SuperJsonSerdeAdapter());
|
|
22
29
|
* const lockProviderFactory = new SharedLockProviderFactory({
|
|
23
30
|
* serde,
|
|
24
31
|
* adapters: {
|
|
25
|
-
* memory: new
|
|
26
|
-
* redis: new
|
|
32
|
+
* memory: new MemorySharedLockAdapter(),
|
|
33
|
+
* redis: new RedisSharedLockAdapter(new Redis("YOUR_REDIS_CONNECTION")),
|
|
27
34
|
* },
|
|
28
35
|
* defaultAdapter: "memory",
|
|
29
36
|
* });
|
|
@@ -78,10 +85,10 @@ export class SharedLockProviderFactory {
|
|
|
78
85
|
* @example
|
|
79
86
|
* ```ts
|
|
80
87
|
* import { SharedLockProviderFactory } from "@daiso-tech/core/shared-lock";
|
|
81
|
-
* import
|
|
82
|
-
* import {
|
|
88
|
+
* import { MemorySharedLockAdapter } from "@daiso-tech/core/shared-lock/memory-shared-lock-adapter";
|
|
89
|
+
* import { RedisSharedLockAdapter } from "@daiso-tech/core/shared-lock/redis-shared-lock-adapter";
|
|
83
90
|
* import { Serde } from "@daiso-tech/core/serde";
|
|
84
|
-
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/
|
|
91
|
+
* import { SuperJsonSerdeAdapter } from "@daiso-tech/core/serde/super-json-serde-adapter";
|
|
85
92
|
* import { TimeSpan } from "@daiso-tech/core/time-span" from "@daiso-tech/core/time-span";
|
|
86
93
|
* import Redis from "ioredis";
|
|
87
94
|
*
|
|
@@ -89,23 +96,23 @@ export class SharedLockProviderFactory {
|
|
|
89
96
|
* const lockProviderFactory = new SharedLockProviderFactory({
|
|
90
97
|
* serde,
|
|
91
98
|
* adapters: {
|
|
92
|
-
* memory: new
|
|
93
|
-
* redis: new
|
|
99
|
+
* memory: new MemorySharedLockAdapter(),
|
|
100
|
+
* redis: new RedisSharedLockAdapter(new Redis("YOUR_REDIS_CONNECTION")),
|
|
94
101
|
* },
|
|
95
102
|
* defaultAdapter: "memory",
|
|
96
103
|
* });
|
|
97
104
|
*
|
|
98
|
-
* // Will acquire key using the default adapter which is
|
|
105
|
+
* // Will acquire key using the default adapter which is MemorySharedLockAdapter
|
|
99
106
|
* await lockProviderFactory
|
|
100
107
|
* .use()
|
|
101
108
|
* .create("a")
|
|
102
|
-
* .
|
|
109
|
+
* .acquireWriter();
|
|
103
110
|
*
|
|
104
|
-
* // Will acquire key using the redis adapter
|
|
111
|
+
* // Will acquire key using the redis adapter
|
|
105
112
|
* await lockProviderFactory
|
|
106
113
|
* .use("redis")
|
|
107
114
|
* .create("a")
|
|
108
|
-
* .
|
|
115
|
+
* .acquireWriter();
|
|
109
116
|
* ```
|
|
110
117
|
*/
|
|
111
118
|
use(adapterName = this.settings.defaultAdapter) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-lock-provider-factory.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shared-lock-provider-factory.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory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ACjC,GAAG,IAAI,CAAC,QAAQ;YAChB,mBAAmB,EAAE,IAAI;SAC5B,CAAC,CAAC;IACP,CAAC;IAED,qBAAqB,CACjB,IAAe;QAEf,OAAO,IAAI,yBAAyB,CAAC;YACjC,GAAG,IAAI,CAAC,QAAQ;YAChB,kBAAkB,EAAE,IAAI;SAC3B,CAAC,CAAC;IACP,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAiCG;IACH,GAAG,CACC,cAAqC,IAAI,CAAC,QAAQ,CAAC,cAAc;QAEjE,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAI,6BAA6B,CACnC,yBAAyB,CAAC,IAAI,CACjC,CAAC;QACN,CAAC;QACD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QACpD,IAAI,OAAO,KAAK,SAAS,EAAE,CAAC;YACxB,MAAM,IAAI,wBAAwB,CAAC,WAAW,CAAC,CAAC;QACpD,CAAC;QACD,MAAM,EAAE,SAAS,GAAG,6BAA6B,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;QACpE,OAAO,IAAI,kBAAkB,CAAC;YAC1B,GAAG,IAAI,CAAC,QAAQ;YAChB,OAAO;YACP,SAAS,EAAE,SAAS,CAAC,UAAU,CAAC,WAAW,CAAC;YAC5C,oBAAoB,EAAE,WAAW;SACpC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export * from "../../../shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js";
|
|
2
|
+
export * from "../../../shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js";
|
|
3
|
+
export * from "../../../shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from "../../../shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js";
|
|
2
|
+
export * from "../../../shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js";
|
|
3
|
+
export * from "../../../shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js";
|
|
4
|
+
//# sourceMappingURL=_module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/shared-lock/implementations/test-utilities/_module.ts"],"names":[],"mappings":"AAAA,cAAc,yFAAyF,CAAC;AACxG,cAAc,gFAAgF,CAAC;AAC/F,cAAc,iFAAiF,CAAC"}
|
package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import type
|
|
5
|
-
import type
|
|
6
|
-
import type
|
|
4
|
+
import { type TestAPI, type SuiteAPI, type ExpectStatic, type beforeEach } from "vitest";
|
|
5
|
+
import { type IDatabaseSharedLockAdapter } from "../../../shared-lock/contracts/_module.js";
|
|
6
|
+
import { type Promisable } from "../../../utilities/_module.js";
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/test-utilities"`
|
|
@@ -25,28 +25,33 @@ export type DatabaseSharedLockAdapterTestSuiteSettings = {
|
|
|
25
25
|
* ```ts
|
|
26
26
|
* import { afterEach, beforeEach, describe, expect, test } from "vitest";
|
|
27
27
|
* import { databaseSharedLockAdapterTestSuite } from "@daiso-tech/core/shared-lock/test-utilities";
|
|
28
|
-
* import {
|
|
29
|
-
* import {
|
|
28
|
+
* import { KyselySharedLockAdapter, type KyselySharedLockTables } from "@daiso-tech/core/shared-lock/kysely-shared-lock-adapter";
|
|
29
|
+
* import { Kysely, SqliteDialect } from "kysely";
|
|
30
|
+
* import Sqlite, { type Database } from "better-sqlite3";
|
|
31
|
+
*
|
|
32
|
+
* describe("class: KyselySharedLockAdapter", () => {
|
|
33
|
+
* let database: Database;
|
|
34
|
+
* let kysely: Kysely<KyselySharedLockTables>;
|
|
30
35
|
*
|
|
31
|
-
* describe("class: LibsqlSharedLockAdapter", () => {
|
|
32
|
-
* let client: Client;
|
|
33
36
|
* beforeEach(() => {
|
|
34
|
-
*
|
|
35
|
-
*
|
|
37
|
+
* database = new Sqlite(":memory:");
|
|
38
|
+
* kysely = new Kysely({
|
|
39
|
+
* dialect: new SqliteDialect({
|
|
40
|
+
* database,
|
|
41
|
+
* }),
|
|
36
42
|
* });
|
|
37
43
|
* });
|
|
38
44
|
* afterEach(() => {
|
|
39
|
-
*
|
|
45
|
+
* database.close();
|
|
40
46
|
* });
|
|
41
47
|
* databaseSharedLockAdapterTestSuite({
|
|
42
48
|
* createAdapter: async () => {
|
|
43
|
-
* const
|
|
44
|
-
*
|
|
45
|
-
* tableName: "custom_table",
|
|
49
|
+
* const sharedLockAdapter = new KyselySharedLockAdapter({
|
|
50
|
+
* kysely,
|
|
46
51
|
* shouldRemoveExpiredKeys: false,
|
|
47
52
|
* });
|
|
48
|
-
* await
|
|
49
|
-
* return
|
|
53
|
+
* await sharedLockAdapter.init();
|
|
54
|
+
* return sharedLockAdapter;
|
|
50
55
|
* },
|
|
51
56
|
* test,
|
|
52
57
|
* beforeEach,
|
package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @module SharedLock
|
|
3
|
+
*/
|
|
4
|
+
import {} from "vitest";
|
|
5
|
+
import {} from "../../../shared-lock/contracts/_module.js";
|
|
6
|
+
import { TimeSpan } from "../../../time-span/implementations/_module.js";
|
|
7
|
+
import {} from "../../../utilities/_module.js";
|
|
2
8
|
/**
|
|
3
9
|
* The `databaseSharedLockAdapterTestSuite` function simplifies the process of testing your custom implementation of {@link IDatabaseSharedLockAdapter | `IDatabaseSharedLockAdapter`} with `vitest`.
|
|
4
10
|
*
|
|
@@ -8,28 +14,33 @@ import { TimeSpan } from "../../../time-span/implementations/_module-exports.js"
|
|
|
8
14
|
* ```ts
|
|
9
15
|
* import { afterEach, beforeEach, describe, expect, test } from "vitest";
|
|
10
16
|
* import { databaseSharedLockAdapterTestSuite } from "@daiso-tech/core/shared-lock/test-utilities";
|
|
11
|
-
* import {
|
|
12
|
-
* import {
|
|
17
|
+
* import { KyselySharedLockAdapter, type KyselySharedLockTables } from "@daiso-tech/core/shared-lock/kysely-shared-lock-adapter";
|
|
18
|
+
* import { Kysely, SqliteDialect } from "kysely";
|
|
19
|
+
* import Sqlite, { type Database } from "better-sqlite3";
|
|
20
|
+
*
|
|
21
|
+
* describe("class: KyselySharedLockAdapter", () => {
|
|
22
|
+
* let database: Database;
|
|
23
|
+
* let kysely: Kysely<KyselySharedLockTables>;
|
|
13
24
|
*
|
|
14
|
-
* describe("class: LibsqlSharedLockAdapter", () => {
|
|
15
|
-
* let client: Client;
|
|
16
25
|
* beforeEach(() => {
|
|
17
|
-
*
|
|
18
|
-
*
|
|
26
|
+
* database = new Sqlite(":memory:");
|
|
27
|
+
* kysely = new Kysely({
|
|
28
|
+
* dialect: new SqliteDialect({
|
|
29
|
+
* database,
|
|
30
|
+
* }),
|
|
19
31
|
* });
|
|
20
32
|
* });
|
|
21
33
|
* afterEach(() => {
|
|
22
|
-
*
|
|
34
|
+
* database.close();
|
|
23
35
|
* });
|
|
24
36
|
* databaseSharedLockAdapterTestSuite({
|
|
25
37
|
* createAdapter: async () => {
|
|
26
|
-
* const
|
|
27
|
-
*
|
|
28
|
-
* tableName: "custom_table",
|
|
38
|
+
* const sharedLockAdapter = new KyselySharedLockAdapter({
|
|
39
|
+
* kysely,
|
|
29
40
|
* shouldRemoveExpiredKeys: false,
|
|
30
41
|
* });
|
|
31
|
-
* await
|
|
32
|
-
* return
|
|
42
|
+
* await sharedLockAdapter.init();
|
|
43
|
+
* return sharedLockAdapter;
|
|
33
44
|
* },
|
|
34
45
|
* test,
|
|
35
46
|
* beforeEach,
|