@daiso-tech/core 0.42.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -9
- 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.d.ts +5 -5
- package/dist/cache/implementations/adapters/_module.js +5 -5
- package/dist/cache/implementations/adapters/_module.js.map +1 -1
- package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.d.ts +1 -0
- package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.js +2 -0
- package/dist/cache/implementations/adapters/kysely-cache-adapter/_module.js.map +1 -0
- package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.d.ts +14 -7
- package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js +13 -5
- package/dist/cache/implementations/adapters/kysely-cache-adapter/kysely-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/memory-cache-adapter/_module.d.ts +1 -0
- package/dist/cache/implementations/adapters/memory-cache-adapter/_module.js +2 -0
- package/dist/cache/implementations/adapters/memory-cache-adapter/_module.js.map +1 -0
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.d.ts +2 -2
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +2 -1
- package/dist/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module.d.ts +1 -0
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module.js +2 -0
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/_module.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 +5 -6
- package/dist/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +8 -5
- 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.d.ts +1 -0
- package/dist/cache/implementations/adapters/no-op-cache-adapter/_module.js +2 -0
- package/dist/cache/implementations/adapters/no-op-cache-adapter/_module.js.map +1 -0
- package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.d.ts +2 -2
- package/dist/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.js +2 -1
- 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.d.ts +1 -0
- package/dist/cache/implementations/adapters/redis-cache-adapter/_module.js +2 -0
- package/dist/cache/implementations/adapters/redis-cache-adapter/_module.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 +3 -3
- package/dist/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +6 -2
- 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 +44 -39
- package/dist/cache/implementations/derivables/cache/cache.js +139 -78
- 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 +8 -7
- package/dist/cache/implementations/derivables/cache-factory/cache-factory.js +13 -2
- 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 +2 -2
- package/dist/cache/implementations/test-utilities/cache-adapter.test-suite.js +4 -4
- 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 +6 -2
- package/dist/cache/implementations/test-utilities/cache.test-suite.js +1479 -607
- 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 +2 -2
- package/dist/cache/implementations/test-utilities/database-cache-dapter.test-suite.js +3 -3
- 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-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/internal-circuit-breaker-policy.d.ts +65 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/internal-circuit-breaker-policy.js +128 -0
- package/dist/circuit-breaker/implementations/adapters/database-circuit-breaker-adapter/internal-circuit-breaker-policy.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-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/internal-circuit-breaker-policy-lua.d.ts +7 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/internal-circuit-breaker-policy-lua.js +144 -0
- package/dist/circuit-breaker/implementations/adapters/redis-circuit-breaker-adapter/lua/internal-circuit-breaker-policy-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 +454 -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 +704 -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 +95 -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.d.ts +3 -3
- package/dist/event-bus/implementations/adapters/_module.js +3 -3
- package/dist/event-bus/implementations/adapters/_module.js.map +1 -1
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module.d.ts +1 -0
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js +2 -0
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js.map +1 -0
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +1 -1
- package/dist/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +1 -0
- 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.d.ts +1 -0
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module.js +2 -0
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/_module.js.map +1 -0
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +1 -2
- package/dist/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js +1 -0
- 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.d.ts +1 -0
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js +2 -0
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js.map +1 -0
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +3 -3
- package/dist/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +4 -2
- 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 +11 -13
- package/dist/event-bus/implementations/derivables/event-bus/event-bus.js +7 -6
- 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 +3 -5
- package/dist/event-bus/implementations/derivables/event-bus-factory/event-bus-factory.js +4 -5
- 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.d.ts +5 -5
- package/dist/lock/implementations/adapters/_module.js +5 -5
- package/dist/lock/implementations/adapters/_module.js.map +1 -1
- package/dist/lock/implementations/adapters/kysely-lock-adapter/_module.d.ts +1 -0
- package/dist/lock/implementations/adapters/kysely-lock-adapter/_module.js +2 -0
- package/dist/lock/implementations/adapters/kysely-lock-adapter/_module.js.map +1 -0
- package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.d.ts +8 -13
- package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js +9 -8
- package/dist/lock/implementations/adapters/kysely-lock-adapter/kysely-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/adapters/memory-lock-adapter/_module.d.ts +1 -0
- package/dist/lock/implementations/adapters/memory-lock-adapter/_module.js +2 -0
- package/dist/lock/implementations/adapters/memory-lock-adapter/_module.js.map +1 -0
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.d.ts +7 -4
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js +7 -1
- package/dist/lock/implementations/adapters/memory-lock-adapter/memory-lock-adapter.js.map +1 -1
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module.d.ts +1 -0
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module.js +2 -0
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/_module.js.map +1 -0
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.d.ts +4 -5
- package/dist/lock/implementations/adapters/mongodb-lock-adapter/mongodb-lock-adapter.js +4 -1
- 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.d.ts +1 -0
- package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.js +2 -0
- package/dist/lock/implementations/adapters/no-op-lock-adapter/_module.js.map +1 -0
- package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.d.ts +2 -2
- package/dist/lock/implementations/adapters/no-op-lock-adapter/no-op-lock-adapter.js +2 -0
- 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.d.ts +1 -0
- package/dist/lock/implementations/adapters/redis-lock-adapter/_module.js +2 -0
- package/dist/lock/implementations/adapters/redis-lock-adapter/_module.js.map +1 -0
- package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.d.ts +3 -4
- package/dist/lock/implementations/adapters/redis-lock-adapter/redis-lock-adapter.js +3 -0
- 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 +29 -18
- package/dist/lock/implementations/derivables/lock-provider/lock-provider.js +19 -14
- 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 +6 -6
- package/dist/lock/implementations/derivables/lock-provider-factory/lock-provider-factory.js +9 -2
- 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 +2 -2
- package/dist/lock/implementations/test-utilities/database-lock-adapter.test-suite.js +3 -3
- 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 +2 -2
- package/dist/lock/implementations/test-utilities/lock-adapter.test-suite.js +4 -4
- 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 +3 -3
- package/dist/lock/implementations/test-utilities/lock-provider.test-suite.js +6 -541
- 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 +58 -0
- package/dist/rate-limiter/contracts/rate-limiter-state.contract.js +15 -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 +77 -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/internal-rate-limiter-policy.d.ts +48 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/internal-rate-limiter-policy.js +70 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/internal-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 +46 -0
- package/dist/rate-limiter/implementations/adapters/database-rate-limiter-adapter/rate-limiter-storage.js +68 -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 +30 -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/internal-rate-limiter-policy-lua.d.ts +7 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/internal-rate-limiter-policy-lua.js +100 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/lua/internal-rate-limiter-policy-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 +45 -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-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 +76 -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 +69 -0
- package/dist/rate-limiter/implementations/adapters/redis-rate-limiter-adapter/redis-rate-limiter-adapter.js +112 -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 +123 -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 +154 -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 +250 -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.d.ts +5 -5
- package/dist/semaphore/implementations/adapters/_module.js +5 -5
- package/dist/semaphore/implementations/adapters/_module.js.map +1 -1
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.js +2 -0
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/_module.js.map +1 -0
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.d.ts +12 -5
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js +11 -4
- package/dist/semaphore/implementations/adapters/kysely-semaphore-adapter/kysely-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.js +2 -0
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/_module.js.map +1 -0
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.d.ts +9 -4
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js +19 -1
- package/dist/semaphore/implementations/adapters/memory-semaphore-adapter/memory-semaphore-adapter.js.map +1 -1
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.js +2 -0
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/_module.js.map +1 -0
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.d.ts +8 -5
- package/dist/semaphore/implementations/adapters/mongodb-semaphore-adapter/mongodb-semaphore-adapter.js +7 -3
- 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.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.js +2 -0
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/_module.js.map +1 -0
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.d.ts +2 -2
- package/dist/semaphore/implementations/adapters/no-op-semaphore-adapter/no-op-semaphore-adapter.js +2 -0
- 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.d.ts +1 -0
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.js +2 -0
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/_module.js.map +1 -0
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.d.ts +3 -3
- package/dist/semaphore/implementations/adapters/redis-semaphore-adapter/redis-semaphore-adapter.js +3 -0
- 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 +30 -18
- package/dist/semaphore/implementations/derivables/semaphore-provider/semaphore-provider.js +19 -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 +5 -5
- package/dist/semaphore/implementations/derivables/semaphore-provider-factory/semaphore-provider-factory.js +9 -2
- 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 +2 -2
- package/dist/semaphore/implementations/test-utilities/database-semaphore-adapter.test-suite.js +3 -2
- 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 +3 -3
- package/dist/semaphore/implementations/test-utilities/semaphore-adapter.test-suite.js +5 -5
- 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 +3 -3
- package/dist/semaphore/implementations/test-utilities/semaphore-provider.test-suite.js +76 -805
- 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.d.ts +2 -2
- package/dist/serde/implementations/adapters/_module.js +2 -2
- package/dist/serde/implementations/adapters/_module.js.map +1 -1
- package/dist/serde/implementations/adapters/no-op-serde-adapter/_module.d.ts +1 -0
- package/dist/serde/implementations/adapters/no-op-serde-adapter/_module.js +2 -0
- package/dist/serde/implementations/adapters/no-op-serde-adapter/_module.js.map +1 -0
- package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.d.ts +1 -1
- package/dist/serde/implementations/adapters/no-op-serde-adapter/no-op-serde-adapter.js +4 -0
- 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.d.ts +1 -0
- package/dist/serde/implementations/adapters/super-json-serde-adapter/_module.js +2 -0
- package/dist/serde/implementations/adapters/super-json-serde-adapter/_module.js.map +1 -0
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.d.ts +1 -1
- package/dist/serde/implementations/adapters/super-json-serde-adapter/super-json-serde-adapter.js +3 -3
- 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 +2 -2
- package/dist/serde/implementations/derivables/serde.js +2 -1
- 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 +1 -1
- package/dist/serde/implementations/test-utilities/flexible-serde-adapter.test-suite.js +1 -0
- 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 +1 -1
- package/dist/serde/implementations/test-utilities/flexible-serde.test-suite.js +1 -0
- 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.d.ts +5 -5
- package/dist/shared-lock/implementations/adapters/_module.js +5 -5
- package/dist/shared-lock/implementations/adapters/_module.js.map +1 -1
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js +2 -0
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.d.ts +12 -5
- package/dist/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js +11 -4
- 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.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js +2 -0
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.d.ts +7 -4
- package/dist/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js +7 -2
- 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.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js +2 -0
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.d.ts +6 -6
- package/dist/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js +6 -4
- 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.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js +2 -0
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.d.ts +2 -2
- package/dist/shared-lock/implementations/adapters/no-op-shared-lock-adapter/no-op-shared-lock-adapter.js +2 -0
- 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.d.ts +1 -0
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js +2 -0
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js.map +1 -0
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.d.ts +3 -3
- package/dist/shared-lock/implementations/adapters/redis-shared-lock-adapter/redis-shared-lock-adapter.js +3 -0
- 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 +29 -17
- package/dist/shared-lock/implementations/derivables/shared-lock-provider/shared-lock-provider.js +18 -12
- 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 +6 -6
- package/dist/shared-lock/implementations/derivables/shared-lock-provider-factory/shared-lock-provider-factory.js +9 -2
- 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 +3 -3
- package/dist/shared-lock/implementations/test-utilities/database-shared-lock-adapter.test-suite.js +7 -1
- 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 +2 -2
- package/dist/shared-lock/implementations/test-utilities/shared-lock-adapter.test-suite.js +4 -4
- 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 +3 -3
- package/dist/shared-lock/implementations/test-utilities/shared-lock-provider.test-suite.js +1005 -2495
- 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 -2
- package/dist/utilities/_module-exports.js +0 -2
- 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 -33
- 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 +113 -10
- 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/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/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/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/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/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,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
+
import { type Key } from "../../namespace/_module.js";
|
|
4
5
|
/**
|
|
5
6
|
* The error is thrown when trying to acquire a semaphore slot, but all slots are already taken.
|
|
6
7
|
*
|
|
@@ -8,6 +9,12 @@
|
|
|
8
9
|
* @group Errors
|
|
9
10
|
*/
|
|
10
11
|
export declare class LimitReachedReaderSemaphoreError extends Error {
|
|
12
|
+
static create(key: Key, cause?: unknown): LimitReachedReaderSemaphoreError;
|
|
13
|
+
/**
|
|
14
|
+
* Note: Do not instantiate `LimitReachedReaderSemaphoreError` directly via the constructor. Use the static `create()` factory method instead.
|
|
15
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
16
|
+
* @internal
|
|
17
|
+
*/
|
|
11
18
|
constructor(message: string, cause?: unknown);
|
|
12
19
|
}
|
|
13
20
|
/**
|
|
@@ -17,6 +24,12 @@ export declare class LimitReachedReaderSemaphoreError extends Error {
|
|
|
17
24
|
* @group Errors
|
|
18
25
|
*/
|
|
19
26
|
export declare class FailedRefreshReaderSemaphoreError extends Error {
|
|
27
|
+
static create(key: Key, slotId: string, cause?: unknown): FailedRefreshReaderSemaphoreError;
|
|
28
|
+
/**
|
|
29
|
+
* Note: Do not instantiate `FailedRefreshReaderSemaphoreError` directly via the constructor. Use the static `create()` factory method instead.
|
|
30
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
20
33
|
constructor(message: string, cause?: unknown);
|
|
21
34
|
}
|
|
22
35
|
/**
|
|
@@ -26,6 +39,12 @@ export declare class FailedRefreshReaderSemaphoreError extends Error {
|
|
|
26
39
|
* @group Errors
|
|
27
40
|
*/
|
|
28
41
|
export declare class FailedReleaseReaderSemaphoreError extends Error {
|
|
42
|
+
static create(key: Key, slotId: string, cause?: unknown): FailedReleaseReaderSemaphoreError;
|
|
43
|
+
/**
|
|
44
|
+
* Note: Do not instantiate `FailedReleaseReaderSemaphoreError` directly via the constructor. Use the static `create()` factory method instead.
|
|
45
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
29
48
|
constructor(message: string, cause?: unknown);
|
|
30
49
|
}
|
|
31
50
|
/**
|
|
@@ -57,6 +76,12 @@ export declare function isReaderSemaphoreError(value: unknown): value is AllRead
|
|
|
57
76
|
* @group Errors
|
|
58
77
|
*/
|
|
59
78
|
export declare class FailedAcquireWriterLockError extends Error {
|
|
79
|
+
static create(key: Key, cause?: unknown): FailedAcquireWriterLockError;
|
|
80
|
+
/**
|
|
81
|
+
* Note: Do not instantiate `FailedAcquireWriterLockError` directly via the constructor. Use the static `create()` factory method instead.
|
|
82
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
60
85
|
constructor(message: string, cause?: unknown);
|
|
61
86
|
}
|
|
62
87
|
/**
|
|
@@ -66,6 +91,12 @@ export declare class FailedAcquireWriterLockError extends Error {
|
|
|
66
91
|
* @group Errors
|
|
67
92
|
*/
|
|
68
93
|
export declare class FailedReleaseWriterLockError extends Error {
|
|
94
|
+
static create(key: Key, lockId: string, cause?: unknown): FailedReleaseWriterLockError;
|
|
95
|
+
/**
|
|
96
|
+
* Note: Do not instantiate `FailedReleaseWriterLockError` directly via the constructor. Use the static `create()` factory method instead.
|
|
97
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
98
|
+
* @internal
|
|
99
|
+
*/
|
|
69
100
|
constructor(message: string, cause?: unknown);
|
|
70
101
|
}
|
|
71
102
|
/**
|
|
@@ -75,6 +106,12 @@ export declare class FailedReleaseWriterLockError extends Error {
|
|
|
75
106
|
* @group Errors
|
|
76
107
|
*/
|
|
77
108
|
export declare class FailedRefreshWriterLockError extends Error {
|
|
109
|
+
static create(_key: Key, lockId: string, cause?: unknown): FailedRefreshWriterLockError;
|
|
110
|
+
/**
|
|
111
|
+
* Note: Do not instantiate `FailedRefreshWriterLockError` directly via the constructor. Use the static `create()` factory method instead.
|
|
112
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
78
115
|
constructor(message: string, cause?: unknown);
|
|
79
116
|
}
|
|
80
117
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
+
import {} from "../../namespace/_module.js";
|
|
4
5
|
/**
|
|
5
6
|
* The error is thrown when trying to acquire a semaphore slot, but all slots are already taken.
|
|
6
7
|
*
|
|
@@ -8,6 +9,14 @@
|
|
|
8
9
|
* @group Errors
|
|
9
10
|
*/
|
|
10
11
|
export class LimitReachedReaderSemaphoreError extends Error {
|
|
12
|
+
static create(key, cause) {
|
|
13
|
+
return new LimitReachedReaderSemaphoreError(`Key "${key.get()}" has reached the limit`, cause);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Note: Do not instantiate `LimitReachedReaderSemaphoreError` directly via the constructor. Use the static `create()` factory method instead.
|
|
17
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
18
|
+
* @internal
|
|
19
|
+
*/
|
|
11
20
|
constructor(message, cause) {
|
|
12
21
|
super(message, { cause });
|
|
13
22
|
this.name = LimitReachedReaderSemaphoreError.name;
|
|
@@ -20,6 +29,14 @@ export class LimitReachedReaderSemaphoreError extends Error {
|
|
|
20
29
|
* @group Errors
|
|
21
30
|
*/
|
|
22
31
|
export class FailedRefreshReaderSemaphoreError extends Error {
|
|
32
|
+
static create(key, slotId, cause) {
|
|
33
|
+
return new FailedRefreshReaderSemaphoreError(`Failed to refresh slot "${slotId}" of key "${key.get()}"`, cause);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Note: Do not instantiate `FailedRefreshReaderSemaphoreError` directly via the constructor. Use the static `create()` factory method instead.
|
|
37
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
38
|
+
* @internal
|
|
39
|
+
*/
|
|
23
40
|
constructor(message, cause) {
|
|
24
41
|
super(message, { cause });
|
|
25
42
|
this.name = FailedRefreshReaderSemaphoreError.name;
|
|
@@ -32,6 +49,14 @@ export class FailedRefreshReaderSemaphoreError extends Error {
|
|
|
32
49
|
* @group Errors
|
|
33
50
|
*/
|
|
34
51
|
export class FailedReleaseReaderSemaphoreError extends Error {
|
|
52
|
+
static create(key, slotId, cause) {
|
|
53
|
+
return new FailedReleaseReaderSemaphoreError(`Failed to release slot "${slotId}" of key "${key.get()}"`, cause);
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Note: Do not instantiate `FailedReleaseReaderSemaphoreError` directly via the constructor. Use the static `create()` factory method instead.
|
|
57
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
58
|
+
* @internal
|
|
59
|
+
*/
|
|
35
60
|
constructor(message, cause) {
|
|
36
61
|
super(message, { cause });
|
|
37
62
|
this.name = FailedReleaseReaderSemaphoreError.name;
|
|
@@ -67,8 +92,17 @@ export function isReaderSemaphoreError(value) {
|
|
|
67
92
|
* @group Errors
|
|
68
93
|
*/
|
|
69
94
|
export class FailedAcquireWriterLockError extends Error {
|
|
95
|
+
static create(key, cause) {
|
|
96
|
+
return new FailedAcquireWriterLockError(`Key "${key.get()}" already acquired`, cause);
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Note: Do not instantiate `FailedAcquireWriterLockError` directly via the constructor. Use the static `create()` factory method instead.
|
|
100
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
70
103
|
constructor(message, cause) {
|
|
71
104
|
super(message, { cause });
|
|
105
|
+
this.name = FailedAcquireWriterLockError.name;
|
|
72
106
|
}
|
|
73
107
|
}
|
|
74
108
|
/**
|
|
@@ -78,8 +112,17 @@ export class FailedAcquireWriterLockError extends Error {
|
|
|
78
112
|
* @group Errors
|
|
79
113
|
*/
|
|
80
114
|
export class FailedReleaseWriterLockError extends Error {
|
|
115
|
+
static create(key, lockId, cause) {
|
|
116
|
+
return new FailedReleaseWriterLockError(`Unonwed release on key "${key.get()}" by owner "${lockId}"`, cause);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Note: Do not instantiate `FailedReleaseWriterLockError` directly via the constructor. Use the static `create()` factory method instead.
|
|
120
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
121
|
+
* @internal
|
|
122
|
+
*/
|
|
81
123
|
constructor(message, cause) {
|
|
82
124
|
super(message, { cause });
|
|
125
|
+
this.name = FailedReleaseWriterLockError.name;
|
|
83
126
|
}
|
|
84
127
|
}
|
|
85
128
|
/**
|
|
@@ -89,8 +132,17 @@ export class FailedReleaseWriterLockError extends Error {
|
|
|
89
132
|
* @group Errors
|
|
90
133
|
*/
|
|
91
134
|
export class FailedRefreshWriterLockError extends Error {
|
|
135
|
+
static create(_key, lockId, cause) {
|
|
136
|
+
return new FailedRefreshWriterLockError(`Unonwed refresh on key "${_key.get()}" by owner "${lockId}"`, cause);
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* Note: Do not instantiate `FailedRefreshWriterLockError` directly via the constructor. Use the static `create()` factory method instead.
|
|
140
|
+
* The constructor remains public only to maintain compatibility with errorPolicy types and prevent type errors.
|
|
141
|
+
* @internal
|
|
142
|
+
*/
|
|
92
143
|
constructor(message, cause) {
|
|
93
144
|
super(message, { cause });
|
|
145
|
+
this.name = FailedRefreshWriterLockError.name;
|
|
94
146
|
}
|
|
95
147
|
}
|
|
96
148
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-lock.errors.js","sourceRoot":"","sources":["../../../src/shared-lock/contracts/shared-lock.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,MAAM,OAAO,gCAAiC,SAAQ,KAAK;IACvD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,gCAAgC,CAAC,IAAI,CAAC;IACtD,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IACxD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,IAAI,CAAC;IACvD,CAAC;CACJ;AAED;;;;;GAKG;AACH,MAAM,OAAO,iCAAkC,SAAQ,KAAK;IACxD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,iCAAiC,CAAC,IAAI,CAAC;IACvD,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,YAAY,EAAE,gCAAgC;IAC9C,aAAa,EAAE,iCAAiC;IAChD,aAAa,EAAE,iCAAiC;CAC1C,CAAC;AAYX;;;;GAIG;AACH,MAAM,UAAU,sBAAsB,CAClC,KAAc;IAEd,KAAK,MAAM,UAAU,IAAI,MAAM,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,CAAC;QAC9D,IAAI,CAAC,CAAC,KAAK,YAAY,UAAU,CAAC,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,OAAO,4BAA6B,SAAQ,KAAK;IACnD,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"shared-lock.errors.js","sourceRoot":"","sources":["../../../src/shared-lock/contracts/shared-lock.errors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAY,MAAM,wBAAwB,CAAC;AAElD;;;;;GAKG;AACH,MAAM,OAAO,gCAAiC,SAAQ,KAAK;IACvD,MAAM,CAAC,MAAM,CAAC,GAAQ,EAAE,KAAe;QACnC,OAAO,IAAI,gCA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C,GAAG,EAAE,eAAe,MAAM,GAAG,EAC7D,KAAK,CACR,CAAC;IACN,CAAC;IAED;;;;OAIG;IACH,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,4BAA4B,CAAC,IAAI,CAAC;IAClD,CAAC;CACJ;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,aAAa,EAAE,4BAA4B;IAC3C,aAAa,EAAE,4BAA4B;IAC3C,aAAa,EAAE,4BAA4B;CACrC,CAAC;AAYX;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC7B,KAAc;IAEd,KAAK,MAAM,UAAU,IAAI,MAAM,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACzD,IAAI,CAAC,CAAC,KAAK,YAAY,UAAU,CAAC,EAAE,CAAC;YACjC,OAAO,KAAK,CAAC;QACjB,CAAC;IACL,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,uBAAuB;IAC1B,GAAG,kBAAkB;CACf,CAAC;AAWX;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC7B,KAAc;IAEd,OAAO,sBAAsB,CAAC,KAAK,CAAC,IAAI,iBAAiB,CAAC,KAAK,CAAC,CAAC;AACrE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import type
|
|
4
|
+
import { type ISharedLockStateMethods } from "../../shared-lock/contracts/shared-lock.contract.js";
|
|
5
5
|
/**
|
|
6
6
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/contracts"`
|
|
7
7
|
* @group Events
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-lock.events.js","sourceRoot":"","sources":["../../../src/shared-lock/contracts/shared-lock.events.ts"],"names":[],"mappings":"AAAA;;GAEG;
|
|
1
|
+
{"version":3,"file":"shared-lock.events.js","sourceRoot":"","sources":["../../../src/shared-lock/contracts/shared-lock.events.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAgC,MAAM,iDAAiD,CAAC;AAwE/F;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,gBAAgB,EAAE,kBAAkB;CAC9B,CAAC;AAoEX;;;;GAIG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,eAAe,EAAE,iBAAiB;IAClC,eAAe,EAAE,iBAAiB;IAClC,yBAAyB,EAAE,2BAA2B;IACtD,qBAAqB,EAAE,uBAAuB;IAC9C,qBAAqB,EAAE,uBAAuB;IAC9C,oBAAoB,EAAE,sBAAsB;IAC5C,gBAAgB,EAAE,kBAAkB;IACpC,uBAAuB,EAAE,yBAAyB;CAC5C,CAAC;AAyBX;;;;GAIG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,GAAG,uBAAuB;IAC1B,GAAG,kBAAkB;IACrB,gBAAgB,EAAE,kBAAkB;IACpC,WAAW,EAAE,aAAa;CACpB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import type
|
|
5
|
-
import type
|
|
4
|
+
import { type IDatabaseSharedLockAdapter } from "../../shared-lock/contracts/database-shared-lock-adapter.contract.js";
|
|
5
|
+
import { type ISharedLockAdapter } from "../../shared-lock/contracts/shared-lock-adapter.contract.js";
|
|
6
6
|
/**
|
|
7
7
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/contracts"`
|
|
8
8
|
* @group Contracts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/shared-lock/contracts/types.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/shared-lock/contracts/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAmC,MAAM,kEAAkE,CAAC;AACnH,OAAO,EAA2B,MAAM,yDAAyD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from "../../../shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module
|
|
2
|
-
export * from "../../../shared-lock/implementations/adapters/memory-shared-lock-adapter/_module
|
|
3
|
-
export * from "../../../shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module
|
|
4
|
-
export * from "../../../shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module
|
|
5
|
-
export * from "../../../shared-lock/implementations/adapters/redis-shared-lock-adapter/_module
|
|
1
|
+
export * from "../../../shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js";
|
|
2
|
+
export * from "../../../shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js";
|
|
3
|
+
export * from "../../../shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js";
|
|
4
|
+
export * from "../../../shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js";
|
|
5
|
+
export * from "../../../shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from "../../../shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module
|
|
2
|
-
export * from "../../../shared-lock/implementations/adapters/memory-shared-lock-adapter/_module
|
|
3
|
-
export * from "../../../shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module
|
|
4
|
-
export * from "../../../shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module
|
|
5
|
-
export * from "../../../shared-lock/implementations/adapters/redis-shared-lock-adapter/_module
|
|
1
|
+
export * from "../../../shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.js";
|
|
2
|
+
export * from "../../../shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.js";
|
|
3
|
+
export * from "../../../shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.js";
|
|
4
|
+
export * from "../../../shared-lock/implementations/adapters/no-op-shared-lock-adapter/_module.js";
|
|
5
|
+
export * from "../../../shared-lock/implementations/adapters/redis-shared-lock-adapter/_module.js";
|
|
6
6
|
//# sourceMappingURL=_module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/shared-lock/implementations/adapters/_module.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/shared-lock/implementations/adapters/_module.ts"],"names":[],"mappings":"AAAA,cAAc,8EAA8E,CAAC;AAC7F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,+EAA+E,CAAC;AAC9F,cAAc,6EAA6E,CAAC;AAC5F,cAAc,6EAA6E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../../shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/adapters/kysely-shared-lock-adapter/_module.ts"],"names":[],"mappings":"AAAA,cAAc,iGAAiG,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import type { IDatabaseSharedLockAdapter, IDatabaseSharedLockTransaction } from "../../../../shared-lock/contracts/_module-exports.js";
|
|
5
4
|
import { type Kysely } from "kysely";
|
|
6
|
-
import { type
|
|
7
|
-
import {
|
|
5
|
+
import { type IDatabaseSharedLockAdapter, type IDatabaseSharedLockTransaction } from "../../../../shared-lock/contracts/_module.js";
|
|
6
|
+
import { type ITimeSpan } from "../../../../time-span/contracts/_module.js";
|
|
7
|
+
import { type IDeinitizable, type IInitizable, type InvokableFn, type IPrunable } from "../../../../utilities/_module.js";
|
|
8
8
|
/**
|
|
9
9
|
*
|
|
10
10
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/kysely-shared-lock-adapter"`
|
|
@@ -54,10 +54,12 @@ export type KyselySharedLockAdapterSettings = {
|
|
|
54
54
|
/**
|
|
55
55
|
* @default
|
|
56
56
|
* ```ts
|
|
57
|
+
* import { TimeSpan } from "@daiso-tech/core/time-span";
|
|
58
|
+
*
|
|
57
59
|
* TimeSpan.fromMinutes(1)
|
|
58
60
|
* ```
|
|
59
61
|
*/
|
|
60
|
-
expiredKeysRemovalInterval?:
|
|
62
|
+
expiredKeysRemovalInterval?: ITimeSpan;
|
|
61
63
|
/**
|
|
62
64
|
* @default true
|
|
63
65
|
*/
|
|
@@ -73,7 +75,7 @@ export type KyselySharedLockAdapterSettings = {
|
|
|
73
75
|
/**
|
|
74
76
|
* To utilize the `KyselySharedLockAdapter`, you must install the [`"kysely"`](https://www.npmjs.com/package/kysely) package and configure a `Kysely` class instance.
|
|
75
77
|
*
|
|
76
|
-
* Note in order to use `KyselySharedLockAdapter` correctly, ensure you use a single, consistent database across all server instances.
|
|
78
|
+
* Note in order to use `KyselySharedLockAdapter` correctly, ensure you use a single, consistent database across all server instances and use a database that has support for transactions.
|
|
77
79
|
* The adapter have been tested with `sqlite`, `postgres` and `mysql` databases.
|
|
78
80
|
*
|
|
79
81
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/kysely-shared-lock-adapter"`
|
|
@@ -90,6 +92,7 @@ export declare class KyselySharedLockAdapter implements IDatabaseSharedLockAdapt
|
|
|
90
92
|
* ```ts
|
|
91
93
|
* import { KyselySharedLockAdapter } from "@daiso-tech/core/shared-lock/kysely-shared-lock-adapter";
|
|
92
94
|
* import Sqlite from "better-sqlite3";
|
|
95
|
+
* import { Kysely, SqliteDialect } from "kysely";
|
|
93
96
|
*
|
|
94
97
|
* const sharedLockAdapter = new KyselySharedLockAdapter({
|
|
95
98
|
* kysely: new Kysely({
|
|
@@ -104,6 +107,10 @@ export declare class KyselySharedLockAdapter implements IDatabaseSharedLockAdapt
|
|
|
104
107
|
*/
|
|
105
108
|
constructor(settings: KyselySharedLockAdapterSettings);
|
|
106
109
|
init(): Promise<void>;
|
|
110
|
+
/**
|
|
111
|
+
* Removes all related shared-lock tables and their rows.
|
|
112
|
+
* Note all shared-lock data will be removed.
|
|
113
|
+
*/
|
|
107
114
|
deInit(): Promise<void>;
|
|
108
115
|
private removeAllExpiredReaders;
|
|
109
116
|
private removeAllExpiredWriters;
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
4
|
import { MysqlAdapter } from "kysely";
|
|
5
|
-
import {} from "../../../../
|
|
6
|
-
import {
|
|
5
|
+
import {} from "../../../../shared-lock/contracts/_module.js";
|
|
6
|
+
import {} from "../../../../time-span/contracts/_module.js";
|
|
7
|
+
import { TimeSpan } from "../../../../time-span/implementations/_module.js";
|
|
8
|
+
import {} from "../../../../utilities/_module.js";
|
|
7
9
|
/**
|
|
8
10
|
* @internal
|
|
9
11
|
*/
|
|
@@ -306,7 +308,7 @@ class DatabaseWriterLockTransaction {
|
|
|
306
308
|
/**
|
|
307
309
|
* To utilize the `KyselySharedLockAdapter`, you must install the [`"kysely"`](https://www.npmjs.com/package/kysely) package and configure a `Kysely` class instance.
|
|
308
310
|
*
|
|
309
|
-
* Note in order to use `KyselySharedLockAdapter` correctly, ensure you use a single, consistent database across all server instances.
|
|
311
|
+
* Note in order to use `KyselySharedLockAdapter` correctly, ensure you use a single, consistent database across all server instances and use a database that has support for transactions.
|
|
310
312
|
* The adapter have been tested with `sqlite`, `postgres` and `mysql` databases.
|
|
311
313
|
*
|
|
312
314
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/kysely-shared-lock-adapter"`
|
|
@@ -323,6 +325,7 @@ export class KyselySharedLockAdapter {
|
|
|
323
325
|
* ```ts
|
|
324
326
|
* import { KyselySharedLockAdapter } from "@daiso-tech/core/shared-lock/kysely-shared-lock-adapter";
|
|
325
327
|
* import Sqlite from "better-sqlite3";
|
|
328
|
+
* import { Kysely, SqliteDialect } from "kysely";
|
|
326
329
|
*
|
|
327
330
|
* const sharedLockAdapter = new KyselySharedLockAdapter({
|
|
328
331
|
* kysely: new Kysely({
|
|
@@ -337,7 +340,7 @@ export class KyselySharedLockAdapter {
|
|
|
337
340
|
*/
|
|
338
341
|
constructor(settings) {
|
|
339
342
|
const { kysely, expiredKeysRemovalInterval = TimeSpan.fromMinutes(1), shouldRemoveExpiredKeys = true, currentDate = () => new Date(), } = settings;
|
|
340
|
-
this.expiredKeysRemovalInterval = expiredKeysRemovalInterval;
|
|
343
|
+
this.expiredKeysRemovalInterval = TimeSpan.fromTimeSpan(expiredKeysRemovalInterval);
|
|
341
344
|
this.shouldRemoveExpiredKeys = shouldRemoveExpiredKeys;
|
|
342
345
|
this.kysely = kysely;
|
|
343
346
|
this.currentDate = currentDate;
|
|
@@ -407,6 +410,10 @@ export class KyselySharedLockAdapter {
|
|
|
407
410
|
}, this.expiredKeysRemovalInterval.toMilliseconds());
|
|
408
411
|
}
|
|
409
412
|
}
|
|
413
|
+
/**
|
|
414
|
+
* Removes all related shared-lock tables and their rows.
|
|
415
|
+
* Note all shared-lock data will be removed.
|
|
416
|
+
*/
|
|
410
417
|
async deInit() {
|
|
411
418
|
if (this.shouldRemoveExpiredKeys && this.intervalId !== null) {
|
|
412
419
|
clearInterval(this.intervalId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kysely-shared-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.ts"],"names":[],"mappings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CAAC,MAAM;aACZ,UAAU,CAAC,YAAY,CAAC;aACxB,KAAK,CAAC,uBAAuB,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC;aAClE,OAAO,EAAE,CAAC;IACnB,CAAC;IAED,KAAK,CAAC,gBAAgB;QAClB,MAAM,OAAO,CAAC,GAAG,CAAC;YACd,IAAI,CAAC,uBAAuB,EAAE;YAC9B,IAAI,CAAC,uBAAuB,EAAE;SACjC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,WAAW,CACb,EAGC;QAED,OAAO,MAAM,IAAI,CAAC,MAAM;aACnB,WAAW,EAAE;aACb,iBAAiB,CAAC,cAAc,CAAC;aACjC,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YACnB,OAAO,MAAM,EAAE,CAAC;gBACZ,MAAM,EAAE,IAAI,kCAAkC,CAAC,GAAG,CAAC;gBACnD,MAAM,EAAE,IAAI,6BAA6B,CAAC,GAAG,CAAC;aACjD,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACX,CAAC;CACJ"}
|
|
1
|
+
{"version":3,"file":"kysely-shared-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/adapters/kysely-shared-lock-adapter/kysely-shared-lock-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,YAAY,EAAe,MAAM,QAAQ,CAAC;AAEnD,OAAO,EAUN,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAkB,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAKN,MAAM,wBAAwB,CAAC;AAkFhC;;GAEG;AACH,MAAM,kCAAkC;IAKP;IAFZ,OAAO,CAAU;IAElC,YAA6B,MAAsC;QAAtC,WAAM,GAAN,MAAM,CAAgC;QAC/D,IAAI,CAAC,OAAO;YACR,IAAI,CAAC,MAAM,CAAC,WAAW,EAA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uB,EAAE;SACjC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,WAAW,CACb,EAGC;QAED,OAAO,MAAM,IAAI,CAAC,MAAM;aACnB,WAAW,EAAE;aACb,iBAAiB,CAAC,cAAc,CAAC;aACjC,OAAO,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;YACnB,OAAO,MAAM,EAAE,CAAC;gBACZ,MAAM,EAAE,IAAI,kCAAkC,CAAC,GAAG,CAAC;gBACnD,MAAM,EAAE,IAAI,6BAA6B,CAAC,GAAG,CAAC;aACjD,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;IACX,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../../shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/adapters/memory-shared-lock-adapter/_module.ts"],"names":[],"mappings":"AAAA,cAAc,iGAAiG,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import { type
|
|
5
|
-
import
|
|
6
|
-
import type
|
|
4
|
+
import { type ISharedLockAdapter, type ISharedLockAdapterState, type SharedLockAcquireSettings } from "../../../../shared-lock/contracts/_module.js";
|
|
5
|
+
import { type TimeSpan } from "../../../../time-span/implementations/_module.js";
|
|
6
|
+
import { type IDeinitizable } from "../../../../utilities/_module.js";
|
|
7
7
|
/**
|
|
8
8
|
*
|
|
9
9
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/memory-shared-lock-adapter"`
|
|
@@ -41,7 +41,7 @@ export type MemorySharedLockData = {
|
|
|
41
41
|
};
|
|
42
42
|
/**
|
|
43
43
|
* Note the `MemorySharedLockAdapter` is limited to single process usage and cannot be shared across multiple servers or different processes.
|
|
44
|
-
* This adapter is meant
|
|
44
|
+
* This adapter is meant for testing.
|
|
45
45
|
*
|
|
46
46
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/memory-shared-lock-adapter"`
|
|
47
47
|
* @group Adapters
|
|
@@ -65,6 +65,9 @@ export declare class MemorySharedLockAdapter implements ISharedLockAdapter, IDei
|
|
|
65
65
|
* ```
|
|
66
66
|
*/
|
|
67
67
|
constructor(map?: Map<string, MemorySharedLockData>);
|
|
68
|
+
/**
|
|
69
|
+
* Removes all in-memory shared-lock data.
|
|
70
|
+
*/
|
|
68
71
|
deInit(): Promise<void>;
|
|
69
72
|
acquireWriter(key: string, lockId: string, ttl: TimeSpan | null): Promise<boolean>;
|
|
70
73
|
releaseWriter(key: string, lockId: string): Promise<boolean>;
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module SharedLock
|
|
3
3
|
*/
|
|
4
|
-
import {
|
|
4
|
+
import {} from "../../../../shared-lock/contracts/_module.js";
|
|
5
|
+
import {} from "../../../../time-span/implementations/_module.js";
|
|
6
|
+
import { UnexpectedError } from "../../../../utilities/_module.js";
|
|
5
7
|
/**
|
|
6
8
|
* Note the `MemorySharedLockAdapter` is limited to single process usage and cannot be shared across multiple servers or different processes.
|
|
7
|
-
* This adapter is meant
|
|
9
|
+
* This adapter is meant for testing.
|
|
8
10
|
*
|
|
9
11
|
* IMPORT_PATH: `"@daiso-tech/core/shared-lock/memory-shared-lock-adapter"`
|
|
10
12
|
* @group Adapters
|
|
@@ -30,6 +32,9 @@ export class MemorySharedLockAdapter {
|
|
|
30
32
|
constructor(map = new Map()) {
|
|
31
33
|
this.map = map;
|
|
32
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Removes all in-memory shared-lock data.
|
|
37
|
+
*/
|
|
33
38
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
34
39
|
async deInit() {
|
|
35
40
|
for (const [key, sharedLock] of this.map) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory-shared-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"memory-shared-lock-adapter.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/adapters/memory-shared-lock-adapter/memory-shared-lock-adapter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAIN,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAiB,MAAM,wCAAwC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAsB,MAAM,wBAAwB,CAAC;AA6C7E;;;;;;GAMG;AACH,MAAM,OAAO,uBAAuB;IAoBX;IAjBrB;;;;;;;;;;;;;;;OAeG;IACH,YACqB,MAAM,IAAI,GAAG,EAAgC;QAA7C,QAAG,GAAH,GAAG,CAA0C;IAC/D,CAAC;IAEJ;;OAEG;IACH,4DAA4D;IAC5D,KAAK,CAAC,MAAM;QACR,KAAK,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;YACvC,MAAM,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;YACzC,IAAI,UAAU,KAAK,IAAI,IAAI,UAAU,CAAC,aAAa,EAAE,CAAC;gBAClD,YAAY,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;YACvC,CAAC;YAED,MAAM,eAAe,GAAG,UAAU,CAAC,eAAe,CAAC;YACnD,IAAI,eAAe,KAAK,IAAI,EAAE,CAAC;gBAC3B,KAAK,MAAM,CAAC,CAAC,EAAE,EAAE,SAAS,EAAE,CAAC,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC;oBACrD,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;wBACrB,YAAY,CAAC,SAAS,CAAC,CAAC;oBAC5B,CAAC;gBACL,CAAC;YACL,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,GAAG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AU,EAAE,UAAU,CAAC,UAAU;iBACpC;aACJ,CAAC;QACN,CAAC;QAED,MAAM,IAAI,eAAe,CACrB,sIAAsI,CACzI,CAAC;IACN,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../../../../shared-lock/implementations/adapters/mongodb-shared-lock-adapter/mongodb-shared-lock-adapter.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/shared-lock/implementations/adapters/mongodb-shared-lock-adapter/_module.ts"],"names":[],"mappings":"AAAA,cAAc,mGAAmG,CAAC"}
|