@daiso-tech/core 0.6.0 → 0.8.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/dist/cjs/_module.js +8 -5
- package/dist/cjs/_module.js.map +1 -1
- package/dist/cjs/_shared/utilities.js +9 -0
- package/dist/cjs/_shared/utilities.js.map +1 -1
- package/dist/cjs/collection/contracts/_module.js +20 -0
- package/dist/cjs/collection/contracts/_module.js.map +1 -0
- package/dist/cjs/collection/contracts/_shared.js.map +1 -0
- package/dist/cjs/collection/contracts/async-collection.contract.js.map +1 -0
- package/dist/cjs/collection/contracts/collection.contract.js.map +1 -0
- package/dist/cjs/collection/implementations/_module.js +21 -0
- package/dist/cjs/collection/implementations/_module.js.map +1 -0
- package/dist/cjs/collection/implementations/_shared.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_module.js +18 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_module.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/_module.js +50 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/_module.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js +22 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js +35 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-error-handler-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js +37 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/async-iterable-collection.js +547 -0
- package/dist/cjs/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_module.js +18 -0
- package/dist/cjs/collection/implementations/iterable-collection/_module.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/_module.js +49 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/_module.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/chunk-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/collapse-iterable.js +22 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/collapse-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/cross-join-iterable.js +37 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/cross-join-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/entries-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/merge-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/pad-end-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/pad-start-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/repeat-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/reverse-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/shuffle-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/skip-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/slice-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/sliding-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/split-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/take-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/_shared/zip-iterable.js.map +1 -0
- package/dist/cjs/collection/implementations/iterable-collection/iterable-collection.js +493 -0
- package/dist/cjs/collection/implementations/iterable-collection/iterable-collection.js.map +1 -0
- package/dist/cjs/collection/implementations/list-collection/_module.js +18 -0
- package/dist/cjs/collection/implementations/list-collection/_module.js.map +1 -0
- package/dist/cjs/collection/implementations/list-collection/list-collection.js +628 -0
- package/dist/cjs/collection/implementations/list-collection/list-collection.js.map +1 -0
- package/dist/cjs/event-bus/contracts/_module.js +21 -0
- package/dist/cjs/event-bus/contracts/_module.js.map +1 -0
- package/dist/cjs/event-bus/contracts/_shared.js +32 -0
- package/dist/cjs/event-bus/contracts/_shared.js.map +1 -0
- package/dist/cjs/event-bus/contracts/event-bus-adapter.contract.js +3 -0
- package/dist/cjs/event-bus/contracts/event-bus-adapter.contract.js.map +1 -0
- package/dist/cjs/event-bus/contracts/event-bus-manager.contract.js +3 -0
- package/dist/cjs/event-bus/contracts/event-bus-manager.contract.js.map +1 -0
- package/dist/cjs/event-bus/contracts/event-bus.contract.js +3 -0
- package/dist/cjs/event-bus/contracts/event-bus.contract.js.map +1 -0
- package/dist/cjs/event-bus/implementations/_module.js +22 -0
- package/dist/cjs/event-bus/implementations/_module.js.map +1 -0
- package/dist/cjs/event-bus/implementations/_shared/test-utilities/_module.js +18 -0
- package/dist/cjs/event-bus/implementations/_shared/test-utilities/_module.js.map +1 -0
- package/dist/cjs/event-bus/implementations/_shared/test-utilities/event-bus-adapter.test-suite.js +51 -0
- package/dist/cjs/event-bus/implementations/_shared/test-utilities/event-bus-adapter.test-suite.js.map +1 -0
- package/dist/cjs/event-bus/implementations/event-bus/_module.js +19 -0
- package/dist/cjs/event-bus/implementations/event-bus/_module.js.map +1 -0
- package/dist/cjs/event-bus/implementations/event-bus/event-bus-manager.js +24 -0
- package/dist/cjs/event-bus/implementations/event-bus/event-bus-manager.js.map +1 -0
- package/dist/cjs/event-bus/implementations/event-bus/event-bus.js +104 -0
- package/dist/cjs/event-bus/implementations/event-bus/event-bus.js.map +1 -0
- package/dist/cjs/event-bus/implementations/event-bus/with-namespace-event-bus-adapter.js +41 -0
- package/dist/cjs/event-bus/implementations/event-bus/with-namespace-event-bus-adapter.js.map +1 -0
- package/dist/cjs/event-bus/implementations/event-bus/with-validation-event-bus-adapter.js +35 -0
- package/dist/cjs/event-bus/implementations/event-bus/with-validation-event-bus-adapter.js.map +1 -0
- package/dist/cjs/event-bus/implementations/memory-event-bus-adapter/_module.js +18 -0
- package/dist/cjs/event-bus/implementations/memory-event-bus-adapter/_module.js.map +1 -0
- package/dist/cjs/event-bus/implementations/memory-event-bus-adapter/memory-event-bus-adapter.js +23 -0
- package/dist/cjs/event-bus/implementations/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -0
- package/dist/cjs/event-bus/implementations/no-op-event-bus-adapter/_module.js +18 -0
- package/dist/cjs/event-bus/implementations/no-op-event-bus-adapter/_module.js.map +1 -0
- package/dist/cjs/event-bus/implementations/no-op-event-bus-adapter/no-op-event-bus-adapter.js +16 -0
- package/dist/cjs/event-bus/implementations/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -0
- package/dist/cjs/event-bus/implementations/redis-event-bus-adapter/_module.js +18 -0
- package/dist/cjs/event-bus/implementations/redis-event-bus-adapter/_module.js.map +1 -0
- package/dist/cjs/event-bus/implementations/redis-event-bus-adapter/redis-event-bus-adapter.js +45 -0
- package/dist/cjs/event-bus/implementations/redis-event-bus-adapter/redis-event-bus-adapter.js.map +1 -0
- package/dist/cjs/serializer/contracts/_module.js +18 -0
- package/dist/cjs/serializer/contracts/_module.js.map +1 -0
- package/dist/cjs/serializer/contracts/serializer.contract.js.map +1 -0
- package/dist/cjs/serializer/implementations/_module.js +22 -0
- package/dist/cjs/serializer/implementations/_module.js.map +1 -0
- package/dist/cjs/serializer/implementations/_shared/test-utilities/_module.js +18 -0
- package/dist/cjs/serializer/implementations/_shared/test-utilities/_module.js.map +1 -0
- package/dist/cjs/serializer/implementations/_shared/test-utilities/serializer.test-suite.js.map +1 -0
- package/dist/cjs/serializer/implementations/mongodb-serializer/_module.js +18 -0
- package/dist/cjs/serializer/implementations/mongodb-serializer/_module.js.map +1 -0
- package/dist/cjs/serializer/implementations/mongodb-serializer/mongodb-serializer.js +36 -0
- package/dist/cjs/serializer/implementations/mongodb-serializer/mongodb-serializer.js.map +1 -0
- package/dist/cjs/serializer/implementations/redis-serializer/_module.js +18 -0
- package/dist/cjs/serializer/implementations/redis-serializer/_module.js.map +1 -0
- package/dist/cjs/serializer/implementations/redis-serializer/redis-serializer.js +37 -0
- package/dist/cjs/serializer/implementations/redis-serializer/redis-serializer.js.map +1 -0
- package/dist/cjs/serializer/implementations/sql-serializer/_module.js +18 -0
- package/dist/cjs/serializer/implementations/sql-serializer/_module.js.map +1 -0
- package/dist/cjs/serializer/implementations/sql-serializer/sql-serializer.js +37 -0
- package/dist/cjs/serializer/implementations/sql-serializer/sql-serializer.js.map +1 -0
- package/dist/cjs/serializer/implementations/super-json-serializer/_module.js +18 -0
- package/dist/cjs/serializer/implementations/super-json-serializer/_module.js.map +1 -0
- package/dist/cjs/serializer/implementations/super-json-serializer/super-json-serializer.js +304 -0
- package/dist/cjs/serializer/implementations/super-json-serializer/super-json-serializer.js.map +1 -0
- package/dist/cjs/storage/contracts/_module.js +22 -0
- package/dist/cjs/storage/contracts/_module.js.map +1 -0
- package/dist/cjs/storage/contracts/_shared.js.map +1 -0
- package/dist/cjs/storage/contracts/storage-adapter.contract.js.map +1 -0
- package/dist/cjs/storage/contracts/storage-events.contract.js +14 -0
- package/dist/cjs/storage/contracts/storage-events.contract.js.map +1 -0
- package/dist/cjs/storage/contracts/storage-manager.contract.js +3 -0
- package/dist/cjs/storage/contracts/storage-manager.contract.js.map +1 -0
- package/dist/cjs/storage/contracts/storage.contract.js.map +1 -0
- package/dist/cjs/storage/implementations/_module.js +23 -0
- package/dist/cjs/storage/implementations/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/_module.js +18 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js +298 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js.map +1 -0
- package/dist/cjs/storage/implementations/memory-storage-adapter/_module.js +18 -0
- package/dist/cjs/storage/implementations/memory-storage-adapter/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/memory-storage-adapter/memory-storage-adapter.js +85 -0
- package/dist/cjs/storage/implementations/memory-storage-adapter/memory-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/mongodb-storage-adapter/_module.js +6 -0
- package/dist/cjs/storage/implementations/mongodb-storage-adapter/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/mongodb-storage-adapter/mongodb-storage-adapter.js +203 -0
- package/dist/cjs/storage/implementations/mongodb-storage-adapter/mongodb-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/redis-storage-adapter/_module.js +18 -0
- package/dist/cjs/storage/implementations/redis-storage-adapter/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/redis-storage-adapter/redis-storage-adapter.js +228 -0
- package/dist/cjs/storage/implementations/redis-storage-adapter/redis-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/sqlite/_module.js +19 -0
- package/dist/cjs/storage/implementations/sqlite/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/sqlite/_shared/_module.js +18 -0
- package/dist/cjs/storage/implementations/sqlite/_shared/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/sqlite/_shared/base-sqlite-storage-adapter.js +190 -0
- package/dist/cjs/storage/implementations/sqlite/_shared/base-sqlite-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/sqlite/libsql-storage-adapter/_module.js +18 -0
- package/dist/cjs/storage/implementations/sqlite/libsql-storage-adapter/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.js +53 -0
- package/dist/cjs/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/sqlite/sqlite-storage-adapter/_module.js +18 -0
- package/dist/cjs/storage/implementations/sqlite/sqlite-storage-adapter/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js +52 -0
- package/dist/cjs/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/_module.js +19 -0
- package/dist/cjs/storage/implementations/storage/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/storage-manager.js +24 -0
- package/dist/cjs/storage/implementations/storage/storage-manager.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/storage.js +265 -0
- package/dist/cjs/storage/implementations/storage/storage.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/with-event-storage-adapter.js +254 -0
- package/dist/cjs/storage/implementations/storage/with-event-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/with-namespace-storage-adapter.js +53 -0
- package/dist/cjs/storage/implementations/storage/with-namespace-storage-adapter.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/with-validation-storage-adapter.js +48 -0
- package/dist/cjs/storage/implementations/storage/with-validation-storage-adapter.js.map +1 -0
- package/dist/cjs/utilities/_module.js +3 -0
- package/dist/cjs/utilities/_module.js.map +1 -1
- package/dist/cjs/utilities/async/_module.js +29 -0
- package/dist/cjs/utilities/async/_module.js.map +1 -0
- package/dist/cjs/utilities/async/_shared.js.map +1 -0
- package/dist/cjs/utilities/async/abortable/_module.js +18 -0
- package/dist/cjs/utilities/async/abortable/_module.js.map +1 -0
- package/dist/cjs/utilities/async/abortable/abortable.js +48 -0
- package/dist/cjs/utilities/async/abortable/abortable.js.map +1 -0
- package/dist/cjs/utilities/async/abortable-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async/abortable-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async/abortable-iterable/abortable-iterable.js +32 -0
- package/dist/cjs/utilities/async/abortable-iterable/abortable-iterable.js.map +1 -0
- package/dist/cjs/utilities/async/delay/_module.js +18 -0
- package/dist/cjs/utilities/async/delay/_module.js.map +1 -0
- package/dist/cjs/utilities/async/delay/delay.js +24 -0
- package/dist/cjs/utilities/async/delay/delay.js.map +1 -0
- package/dist/cjs/utilities/async/delay-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async/delay-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async/delay-iterable/delay-iterable.js +36 -0
- package/dist/cjs/utilities/async/delay-iterable/delay-iterable.js.map +1 -0
- package/dist/cjs/utilities/async/lazy-promise/_module.js +18 -0
- package/dist/cjs/utilities/async/lazy-promise/_module.js.map +1 -0
- package/dist/cjs/utilities/async/lazy-promise/lazy-promise.js.map +1 -0
- package/dist/cjs/utilities/async/retry/_module.js +18 -0
- package/dist/cjs/utilities/async/retry/_module.js.map +1 -0
- package/dist/cjs/utilities/async/retry/retry.js +43 -0
- package/dist/cjs/utilities/async/retry/retry.js.map +1 -0
- package/dist/cjs/utilities/async/retry-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async/retry-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async/retry-iterable/retry-iterable.js +32 -0
- package/dist/cjs/utilities/async/retry-iterable/retry-iterable.js.map +1 -0
- package/dist/cjs/utilities/async/timeout/_module.js +18 -0
- package/dist/cjs/utilities/async/timeout/_module.js.map +1 -0
- package/dist/cjs/utilities/async/timeout/timeout.js +28 -0
- package/dist/cjs/utilities/async/timeout/timeout.js.map +1 -0
- package/dist/cjs/utilities/async/timeout-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async/timeout-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async/timeout-iterable/timeout-iterable.js +11 -0
- package/dist/cjs/utilities/async/timeout-iterable/timeout-iterable.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/_module.js +21 -0
- package/dist/cjs/utilities/backof-policies/_module.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/_shared.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/constant-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/backof-policies/constant-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/constant-backoff-policy/constant-backoff-policy.js +19 -0
- package/dist/cjs/utilities/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/exponential-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/backof-policies/exponential-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +23 -0
- package/dist/cjs/utilities/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/linear-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/backof-policies/linear-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/linear-backoff-policy/linear-backoff-policy.js +23 -0
- package/dist/cjs/utilities/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/polynomial-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/backof-policies/polynomial-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +23 -0
- package/dist/cjs/utilities/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +1 -0
- package/dist/cjs/utilities/time-span/time-span.js +2 -2
- package/dist/cjs/utilities/time-span/time-span.js.map +1 -1
- package/dist/cjs/utilities/validation/_module.js +22 -0
- package/dist/cjs/utilities/validation/_module.js.map +1 -0
- package/dist/esm/_module.js +8 -5
- package/dist/esm/_module.js.map +1 -1
- package/dist/esm/_shared/utilities.js +7 -0
- package/dist/esm/_shared/utilities.js.map +1 -1
- package/dist/esm/collection/contracts/_module.js +4 -0
- package/dist/esm/collection/contracts/_module.js.map +1 -0
- package/dist/esm/collection/contracts/_shared.js.map +1 -0
- package/dist/esm/collection/contracts/async-collection.contract.js.map +1 -0
- package/dist/esm/collection/contracts/collection.contract.js.map +1 -0
- package/dist/esm/collection/implementations/_module.js +5 -0
- package/dist/esm/collection/implementations/_module.js.map +1 -0
- package/dist/esm/collection/implementations/_shared.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_module.js +2 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_module.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/_module.js +34 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/_module.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js +18 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js +31 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-error-handler-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js +33 -0
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/async-iterable-collection/async-iterable-collection.js +543 -0
- package/dist/esm/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_module.js +2 -0
- package/dist/esm/collection/implementations/iterable-collection/_module.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/_module.js +33 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/_module.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/chunk-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/collapse-iterable.js +18 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/collapse-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/cross-join-iterable.js +33 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/cross-join-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/entries-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/merge-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/pad-end-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/pad-start-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/repeat-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/reverse-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/shuffle-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/skip-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/slice-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/sliding-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/split-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/take-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/_shared/zip-iterable.js.map +1 -0
- package/dist/esm/collection/implementations/iterable-collection/iterable-collection.js +489 -0
- package/dist/esm/collection/implementations/iterable-collection/iterable-collection.js.map +1 -0
- package/dist/esm/collection/implementations/list-collection/_module.js +2 -0
- package/dist/esm/collection/implementations/list-collection/_module.js.map +1 -0
- package/dist/esm/collection/implementations/list-collection/list-collection.js +624 -0
- package/dist/esm/collection/implementations/list-collection/list-collection.js.map +1 -0
- package/dist/esm/event-bus/contracts/_module.js +5 -0
- package/dist/esm/event-bus/contracts/_module.js.map +1 -0
- package/dist/esm/event-bus/contracts/_shared.js +25 -0
- package/dist/esm/event-bus/contracts/_shared.js.map +1 -0
- package/dist/esm/event-bus/contracts/event-bus-adapter.contract.js +1 -0
- package/dist/esm/event-bus/contracts/event-bus-adapter.contract.js.map +1 -0
- package/dist/esm/event-bus/contracts/event-bus-manager.contract.js +1 -0
- package/dist/esm/event-bus/contracts/event-bus-manager.contract.js.map +1 -0
- package/dist/esm/event-bus/contracts/event-bus.contract.js +1 -0
- package/dist/esm/event-bus/contracts/event-bus.contract.js.map +1 -0
- package/dist/esm/event-bus/implementations/_module.js +6 -0
- package/dist/esm/event-bus/implementations/_module.js.map +1 -0
- package/dist/esm/event-bus/implementations/_shared/test-utilities/_module.js +2 -0
- package/dist/esm/event-bus/implementations/_shared/test-utilities/_module.js.map +1 -0
- package/dist/esm/event-bus/implementations/_shared/test-utilities/event-bus-adapter.test-suite.js +48 -0
- package/dist/esm/event-bus/implementations/_shared/test-utilities/event-bus-adapter.test-suite.js.map +1 -0
- package/dist/esm/event-bus/implementations/event-bus/_module.js +3 -0
- package/dist/esm/event-bus/implementations/event-bus/_module.js.map +1 -0
- package/dist/esm/event-bus/implementations/event-bus/event-bus-manager.js +20 -0
- package/dist/esm/event-bus/implementations/event-bus/event-bus-manager.js.map +1 -0
- package/dist/esm/event-bus/implementations/event-bus/event-bus.js +100 -0
- package/dist/esm/event-bus/implementations/event-bus/event-bus.js.map +1 -0
- package/dist/esm/event-bus/implementations/event-bus/with-namespace-event-bus-adapter.js +37 -0
- package/dist/esm/event-bus/implementations/event-bus/with-namespace-event-bus-adapter.js.map +1 -0
- package/dist/esm/event-bus/implementations/event-bus/with-validation-event-bus-adapter.js +31 -0
- package/dist/esm/event-bus/implementations/event-bus/with-validation-event-bus-adapter.js.map +1 -0
- package/dist/esm/event-bus/implementations/memory-event-bus-adapter/_module.js +2 -0
- package/dist/esm/event-bus/implementations/memory-event-bus-adapter/_module.js.map +1 -0
- package/dist/esm/event-bus/implementations/memory-event-bus-adapter/memory-event-bus-adapter.js +19 -0
- package/dist/esm/event-bus/implementations/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -0
- package/dist/esm/event-bus/implementations/no-op-event-bus-adapter/_module.js +2 -0
- package/dist/esm/event-bus/implementations/no-op-event-bus-adapter/_module.js.map +1 -0
- package/dist/esm/event-bus/implementations/no-op-event-bus-adapter/no-op-event-bus-adapter.js +12 -0
- package/dist/esm/event-bus/implementations/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -0
- package/dist/esm/event-bus/implementations/redis-event-bus-adapter/_module.js +2 -0
- package/dist/esm/event-bus/implementations/redis-event-bus-adapter/_module.js.map +1 -0
- package/dist/esm/event-bus/implementations/redis-event-bus-adapter/redis-event-bus-adapter.js +41 -0
- package/dist/esm/event-bus/implementations/redis-event-bus-adapter/redis-event-bus-adapter.js.map +1 -0
- package/dist/esm/serializer/contracts/_module.js +2 -0
- package/dist/esm/serializer/contracts/_module.js.map +1 -0
- package/dist/esm/serializer/contracts/serializer.contract.js.map +1 -0
- package/dist/esm/serializer/implementations/_module.js +6 -0
- package/dist/esm/serializer/implementations/_module.js.map +1 -0
- package/dist/esm/serializer/implementations/_shared/test-utilities/_module.js +2 -0
- package/dist/esm/serializer/implementations/_shared/test-utilities/_module.js.map +1 -0
- package/dist/esm/serializer/implementations/_shared/test-utilities/serializer.test-suite.js.map +1 -0
- package/dist/esm/serializer/implementations/mongodb-serializer/_module.js +2 -0
- package/dist/esm/serializer/implementations/mongodb-serializer/_module.js.map +1 -0
- package/dist/esm/serializer/implementations/mongodb-serializer/mongodb-serializer.js +32 -0
- package/dist/esm/serializer/implementations/mongodb-serializer/mongodb-serializer.js.map +1 -0
- package/dist/esm/serializer/implementations/redis-serializer/_module.js +2 -0
- package/dist/esm/serializer/implementations/redis-serializer/_module.js.map +1 -0
- package/dist/esm/serializer/implementations/redis-serializer/redis-serializer.js +33 -0
- package/dist/esm/serializer/implementations/redis-serializer/redis-serializer.js.map +1 -0
- package/dist/esm/serializer/implementations/sql-serializer/_module.js +2 -0
- package/dist/esm/serializer/implementations/sql-serializer/_module.js.map +1 -0
- package/dist/esm/serializer/implementations/sql-serializer/sql-serializer.js +33 -0
- package/dist/esm/serializer/implementations/sql-serializer/sql-serializer.js.map +1 -0
- package/dist/esm/serializer/implementations/super-json-serializer/_module.js +2 -0
- package/dist/esm/serializer/implementations/super-json-serializer/_module.js.map +1 -0
- package/dist/esm/serializer/implementations/super-json-serializer/super-json-serializer.js +277 -0
- package/dist/esm/serializer/implementations/super-json-serializer/super-json-serializer.js.map +1 -0
- package/dist/esm/storage/contracts/_module.js +6 -0
- package/dist/esm/storage/contracts/_module.js.map +1 -0
- package/dist/esm/storage/contracts/_shared.js.map +1 -0
- package/dist/esm/storage/contracts/storage-adapter.contract.js.map +1 -0
- package/dist/esm/storage/contracts/storage-events.contract.js +11 -0
- package/dist/esm/storage/contracts/storage-events.contract.js.map +1 -0
- package/dist/esm/storage/contracts/storage-manager.contract.js +1 -0
- package/dist/esm/storage/contracts/storage-manager.contract.js.map +1 -0
- package/dist/esm/storage/contracts/storage.contract.js.map +1 -0
- package/dist/esm/storage/implementations/_module.js +7 -0
- package/dist/esm/storage/implementations/_module.js.map +1 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/_module.js +2 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/_module.js.map +1 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js +295 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js.map +1 -0
- package/dist/esm/storage/implementations/memory-storage-adapter/_module.js +2 -0
- package/dist/esm/storage/implementations/memory-storage-adapter/_module.js.map +1 -0
- package/dist/esm/storage/implementations/memory-storage-adapter/memory-storage-adapter.js +81 -0
- package/dist/esm/storage/implementations/memory-storage-adapter/memory-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/mongodb-storage-adapter/_module.js +2 -0
- package/dist/esm/storage/implementations/mongodb-storage-adapter/_module.js.map +1 -0
- package/dist/esm/storage/implementations/mongodb-storage-adapter/mongodb-storage-adapter.js +196 -0
- package/dist/esm/storage/implementations/mongodb-storage-adapter/mongodb-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/redis-storage-adapter/_module.js +2 -0
- package/dist/esm/storage/implementations/redis-storage-adapter/_module.js.map +1 -0
- package/dist/esm/storage/implementations/redis-storage-adapter/redis-storage-adapter.js +224 -0
- package/dist/esm/storage/implementations/redis-storage-adapter/redis-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/sqlite/_module.js +3 -0
- package/dist/esm/storage/implementations/sqlite/_module.js.map +1 -0
- package/dist/esm/storage/implementations/sqlite/_shared/_module.js +2 -0
- package/dist/esm/storage/implementations/sqlite/_shared/_module.js.map +1 -0
- package/dist/esm/storage/implementations/sqlite/_shared/base-sqlite-storage-adapter.js +186 -0
- package/dist/esm/storage/implementations/sqlite/_shared/base-sqlite-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/sqlite/libsql-storage-adapter/_module.js +2 -0
- package/dist/esm/storage/implementations/sqlite/libsql-storage-adapter/_module.js.map +1 -0
- package/dist/esm/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.js +49 -0
- package/dist/esm/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/sqlite/sqlite-storage-adapter/_module.js +2 -0
- package/dist/esm/storage/implementations/sqlite/sqlite-storage-adapter/_module.js.map +1 -0
- package/dist/esm/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js +48 -0
- package/dist/esm/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/storage/_module.js +3 -0
- package/dist/esm/storage/implementations/storage/_module.js.map +1 -0
- package/dist/esm/storage/implementations/storage/storage-manager.js +20 -0
- package/dist/esm/storage/implementations/storage/storage-manager.js.map +1 -0
- package/dist/esm/storage/implementations/storage/storage.js +261 -0
- package/dist/esm/storage/implementations/storage/storage.js.map +1 -0
- package/dist/esm/storage/implementations/storage/with-event-storage-adapter.js +250 -0
- package/dist/esm/storage/implementations/storage/with-event-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/storage/with-namespace-storage-adapter.js +49 -0
- package/dist/esm/storage/implementations/storage/with-namespace-storage-adapter.js.map +1 -0
- package/dist/esm/storage/implementations/storage/with-validation-storage-adapter.js +44 -0
- package/dist/esm/storage/implementations/storage/with-validation-storage-adapter.js.map +1 -0
- package/dist/esm/utilities/_module.js +3 -0
- package/dist/esm/utilities/_module.js.map +1 -1
- package/dist/esm/utilities/async/_module.js +11 -0
- package/dist/esm/utilities/async/_module.js.map +1 -0
- package/dist/esm/utilities/async/_shared.js.map +1 -0
- package/dist/esm/utilities/async/abortable/_module.js +2 -0
- package/dist/esm/utilities/async/abortable/_module.js.map +1 -0
- package/dist/esm/utilities/async/abortable/abortable.js +45 -0
- package/dist/esm/utilities/async/abortable/abortable.js.map +1 -0
- package/dist/esm/utilities/async/abortable-iterable/_module.js +2 -0
- package/dist/esm/utilities/async/abortable-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async/abortable-iterable/abortable-iterable.js +29 -0
- package/dist/esm/utilities/async/abortable-iterable/abortable-iterable.js.map +1 -0
- package/dist/esm/utilities/async/delay/_module.js +2 -0
- package/dist/esm/utilities/async/delay/_module.js.map +1 -0
- package/dist/esm/utilities/async/delay/delay.js +21 -0
- package/dist/esm/utilities/async/delay/delay.js.map +1 -0
- package/dist/esm/utilities/async/delay-iterable/_module.js +2 -0
- package/dist/esm/utilities/async/delay-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async/delay-iterable/delay-iterable.js +33 -0
- package/dist/esm/utilities/async/delay-iterable/delay-iterable.js.map +1 -0
- package/dist/esm/utilities/async/lazy-promise/_module.js +2 -0
- package/dist/esm/utilities/async/lazy-promise/_module.js.map +1 -0
- package/dist/esm/utilities/async/lazy-promise/lazy-promise.js.map +1 -0
- package/dist/esm/utilities/async/retry/_module.js +2 -0
- package/dist/esm/utilities/async/retry/_module.js.map +1 -0
- package/dist/esm/utilities/async/retry/retry.js +40 -0
- package/dist/esm/utilities/async/retry/retry.js.map +1 -0
- package/dist/esm/utilities/async/retry-iterable/_module.js +2 -0
- package/dist/esm/utilities/async/retry-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async/retry-iterable/retry-iterable.js +29 -0
- package/dist/esm/utilities/async/retry-iterable/retry-iterable.js.map +1 -0
- package/dist/esm/utilities/async/timeout/_module.js +2 -0
- package/dist/esm/utilities/async/timeout/_module.js.map +1 -0
- package/dist/esm/utilities/async/timeout/timeout.js +25 -0
- package/dist/esm/utilities/async/timeout/timeout.js.map +1 -0
- package/dist/esm/utilities/async/timeout-iterable/_module.js +2 -0
- package/dist/esm/utilities/async/timeout-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async/timeout-iterable/timeout-iterable.js +8 -0
- package/dist/esm/utilities/async/timeout-iterable/timeout-iterable.js.map +1 -0
- package/dist/esm/utilities/backof-policies/_module.js +5 -0
- package/dist/esm/utilities/backof-policies/_module.js.map +1 -0
- package/dist/esm/utilities/backof-policies/_shared.js.map +1 -0
- package/dist/esm/utilities/backof-policies/constant-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/backof-policies/constant-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/backof-policies/constant-backoff-policy/constant-backoff-policy.js +16 -0
- package/dist/esm/utilities/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +1 -0
- package/dist/esm/utilities/backof-policies/exponential-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/backof-policies/exponential-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +20 -0
- package/dist/esm/utilities/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +1 -0
- package/dist/esm/utilities/backof-policies/linear-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/backof-policies/linear-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/backof-policies/linear-backoff-policy/linear-backoff-policy.js +20 -0
- package/dist/esm/utilities/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +1 -0
- package/dist/esm/utilities/backof-policies/polynomial-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/backof-policies/polynomial-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +20 -0
- package/dist/esm/utilities/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +1 -0
- package/dist/esm/utilities/time-span/time-span.js +2 -2
- package/dist/esm/utilities/time-span/time-span.js.map +1 -1
- package/dist/esm/utilities/validation/_module.js +17 -0
- package/dist/esm/utilities/validation/_module.js.map +1 -0
- package/dist/types/_module.d.ts +8 -5
- package/dist/types/_shared/types.d.ts +1 -1
- package/dist/types/_shared/utilities.d.ts +8 -0
- package/dist/types/collection/contracts/_module.d.ts +3 -0
- package/dist/types/collection/contracts/async-collection.contract.d.ts +1310 -0
- package/dist/types/collection/contracts/collection.contract.d.ts +1270 -0
- package/dist/types/collection/implementations/_module.d.ts +4 -0
- package/dist/types/collection/implementations/async-iterable-collection/_module.d.ts +1 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/_module.d.ts +33 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.d.ts +16 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-error-handler-iterable.d.ts +9 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-map-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.d.ts +16 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.d.ts +16 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-split-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-take-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-update-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-when-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +106 -0
- package/dist/types/collection/implementations/iterable-collection/_module.d.ts +1 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/_module.d.ts +32 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/chunk-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/chunk-while-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/collapse-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/count-by-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/cross-join-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/entries-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/filter-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/flat-map-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/group-by-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/insert-after-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/insert-before-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/map-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/merge-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/pad-end-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/pad-start-iterable.d.ts +15 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/partion-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/repeat-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/reverse-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/shuffle-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/skip-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/skip-until-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/slice-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/sliding-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/sort-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/split-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/take-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/take-until-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/tap-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/unique-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/update-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/when-iterable.d.ts +14 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/zip-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/iterable-collection/iterable-collection.d.ts +100 -0
- package/dist/types/collection/implementations/list-collection/_module.d.ts +1 -0
- package/dist/types/collection/implementations/list-collection/list-collection.d.ts +97 -0
- package/dist/types/event-bus/contracts/_module.d.ts +4 -0
- package/dist/types/event-bus/contracts/_shared.d.ts +32 -0
- package/dist/types/event-bus/contracts/event-bus-adapter.contract.d.ts +23 -0
- package/dist/types/event-bus/contracts/event-bus-manager.contract.d.ts +20 -0
- package/dist/types/event-bus/contracts/event-bus.contract.d.ts +91 -0
- package/dist/types/event-bus/implementations/_module.d.ts +5 -0
- package/dist/types/event-bus/implementations/_shared/test-utilities/_module.d.ts +1 -0
- package/dist/types/event-bus/implementations/_shared/test-utilities/event-bus-adapter.test-suite.d.ts +20 -0
- package/dist/types/event-bus/implementations/event-bus/_module.d.ts +2 -0
- package/dist/types/event-bus/implementations/event-bus/event-bus-manager.d.ts +23 -0
- package/dist/types/event-bus/implementations/event-bus/event-bus.d.ts +102 -0
- package/dist/types/event-bus/implementations/event-bus/with-namespace-event-bus-adapter.d.ts +16 -0
- package/dist/types/event-bus/implementations/event-bus/with-validation-event-bus-adapter.d.ts +17 -0
- package/dist/types/event-bus/implementations/memory-event-bus-adapter/_module.d.ts +1 -0
- package/dist/types/event-bus/implementations/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +15 -0
- package/dist/types/event-bus/implementations/no-op-event-bus-adapter/_module.d.ts +1 -0
- package/dist/types/event-bus/implementations/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +14 -0
- package/dist/types/event-bus/implementations/redis-event-bus-adapter/_module.d.ts +1 -0
- package/dist/types/event-bus/implementations/redis-event-bus-adapter/redis-event-bus-adapter.d.ts +28 -0
- package/dist/types/serializer/contracts/_module.d.ts +1 -0
- package/dist/types/serializer/implementations/_module.d.ts +5 -0
- package/dist/types/serializer/implementations/_shared/test-utilities/_module.d.ts +1 -0
- package/dist/types/serializer/implementations/_shared/test-utilities/serializer.test-suite.d.ts +18 -0
- package/dist/types/serializer/implementations/mongodb-serializer/_module.d.ts +1 -0
- package/dist/types/serializer/implementations/mongodb-serializer/mongodb-serializer.d.ts +13 -0
- package/dist/types/serializer/implementations/redis-serializer/_module.d.ts +1 -0
- package/dist/types/serializer/implementations/redis-serializer/redis-serializer.d.ts +13 -0
- package/dist/types/serializer/implementations/sql-serializer/_module.d.ts +1 -0
- package/dist/types/serializer/implementations/sql-serializer/sql-serializer.d.ts +13 -0
- package/dist/types/serializer/implementations/super-json-serializer/_module.d.ts +1 -0
- package/dist/types/serializer/implementations/super-json-serializer/super-json-serializer.d.ts +37 -0
- package/dist/types/storage/contracts/_module.d.ts +5 -0
- package/dist/types/storage/contracts/storage-adapter.contract.d.ts +58 -0
- package/dist/types/storage/contracts/storage-events.contract.d.ts +90 -0
- package/dist/types/storage/contracts/storage-manager.contract.d.ts +19 -0
- package/dist/types/storage/contracts/storage.contract.d.ts +176 -0
- package/dist/types/storage/implementations/_module.d.ts +6 -0
- package/dist/types/storage/implementations/_shared/test-utilities/_module.d.ts +1 -0
- package/dist/types/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.d.ts +20 -0
- package/dist/types/storage/implementations/memory-storage-adapter/_module.d.ts +1 -0
- package/dist/types/storage/implementations/memory-storage-adapter/memory-storage-adapter.d.ts +18 -0
- package/dist/types/storage/implementations/mongodb-storage-adapter/_module.d.ts +1 -0
- package/dist/types/storage/implementations/mongodb-storage-adapter/mongodb-storage-adapter.d.ts +43 -0
- package/dist/types/storage/implementations/redis-storage-adapter/_module.d.ts +1 -0
- package/dist/types/storage/implementations/redis-storage-adapter/redis-storage-adapter.d.ts +38 -0
- package/dist/types/storage/implementations/sqlite/_module.d.ts +2 -0
- package/dist/types/storage/implementations/sqlite/_shared/_module.d.ts +1 -0
- package/dist/types/storage/implementations/sqlite/_shared/base-sqlite-storage-adapter.d.ts +39 -0
- package/dist/types/storage/implementations/sqlite/libsql-storage-adapter/_module.d.ts +1 -0
- package/dist/types/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.d.ts +30 -0
- package/dist/types/storage/implementations/sqlite/sqlite-storage-adapter/_module.d.ts +1 -0
- package/dist/types/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.d.ts +30 -0
- package/dist/types/storage/implementations/storage/_module.d.ts +2 -0
- package/dist/types/storage/implementations/storage/storage-manager.d.ts +23 -0
- package/dist/types/storage/implementations/storage/storage.d.ts +114 -0
- package/dist/types/storage/implementations/storage/with-event-storage-adapter.d.ts +31 -0
- package/dist/types/storage/implementations/storage/with-namespace-storage-adapter.d.ts +24 -0
- package/dist/types/storage/implementations/storage/with-validation-storage-adapter.d.ts +22 -0
- package/dist/types/utilities/_module.d.ts +3 -0
- package/dist/types/utilities/async/_module.d.ts +10 -0
- package/dist/types/utilities/async/_shared.d.ts +35 -0
- package/dist/types/utilities/async/abortable/_module.d.ts +1 -0
- package/dist/types/utilities/async/abortable/abortable.d.ts +39 -0
- package/dist/types/utilities/async/abortable-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async/abortable-iterable/abortable-iterable.d.ts +36 -0
- package/dist/types/utilities/async/delay/_module.d.ts +1 -0
- package/dist/types/utilities/async/delay/delay.d.ts +38 -0
- package/dist/types/utilities/async/delay-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async/delay-iterable/delay-iterable.d.ts +57 -0
- package/dist/types/utilities/async/lazy-promise/_module.d.ts +1 -0
- package/dist/types/utilities/async/lazy-promise/lazy-promise.d.ts +28 -0
- package/dist/types/utilities/async/retry/_module.d.ts +1 -0
- package/dist/types/utilities/async/retry/retry.d.ts +89 -0
- package/dist/types/utilities/async/retry-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async/retry-iterable/retry-iterable.d.ts +86 -0
- package/dist/types/utilities/async/timeout/_module.d.ts +1 -0
- package/dist/types/utilities/async/timeout/timeout.d.ts +40 -0
- package/dist/types/utilities/async/timeout-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async/timeout-iterable/timeout-iterable.d.ts +64 -0
- package/dist/types/utilities/backof-policies/_module.d.ts +5 -0
- package/dist/types/utilities/backof-policies/_shared.d.ts +12 -0
- package/dist/types/utilities/backof-policies/constant-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/backof-policies/constant-backoff-policy/constant-backoff-policy.d.ts +28 -0
- package/dist/types/utilities/backof-policies/exponential-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/backof-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +36 -0
- package/dist/types/utilities/backof-policies/linear-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/backof-policies/linear-backoff-policy/linear-backoff-policy.d.ts +32 -0
- package/dist/types/utilities/backof-policies/polynomial-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +36 -0
- package/dist/types/utilities/time-span/time-span.d.ts +3 -2
- package/dist/types/utilities/validation/_module.d.ts +32 -0
- package/package.json +10 -6
- package/dist/cjs/async/_module.js +0 -30
- package/dist/cjs/async/_module.js.map +0 -1
- package/dist/cjs/async/_shared.js.map +0 -1
- package/dist/cjs/async/abortable/_module.js +0 -18
- package/dist/cjs/async/abortable/_module.js.map +0 -1
- package/dist/cjs/async/abortable/abortable.js +0 -48
- package/dist/cjs/async/abortable/abortable.js.map +0 -1
- package/dist/cjs/async/abortable-iterable/_module.js +0 -18
- package/dist/cjs/async/abortable-iterable/_module.js.map +0 -1
- package/dist/cjs/async/abortable-iterable/abortable-iterable.js +0 -32
- package/dist/cjs/async/abortable-iterable/abortable-iterable.js.map +0 -1
- package/dist/cjs/async/backof-policies/_module.js +0 -21
- package/dist/cjs/async/backof-policies/_module.js.map +0 -1
- package/dist/cjs/async/backof-policies/_shared.js.map +0 -1
- package/dist/cjs/async/backof-policies/constant-backoff-policy/_module.js +0 -18
- package/dist/cjs/async/backof-policies/constant-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js +0 -19
- package/dist/cjs/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +0 -1
- package/dist/cjs/async/backof-policies/exponential-backoff-policy/_module.js +0 -18
- package/dist/cjs/async/backof-policies/exponential-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +0 -23
- package/dist/cjs/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +0 -1
- package/dist/cjs/async/backof-policies/linear-backoff-policy/_module.js +0 -18
- package/dist/cjs/async/backof-policies/linear-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +0 -23
- package/dist/cjs/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +0 -1
- package/dist/cjs/async/backof-policies/polynomial-backoff-policy/_module.js +0 -18
- package/dist/cjs/async/backof-policies/polynomial-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +0 -23
- package/dist/cjs/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +0 -1
- package/dist/cjs/async/delay/_module.js +0 -18
- package/dist/cjs/async/delay/_module.js.map +0 -1
- package/dist/cjs/async/delay/delay.js +0 -24
- package/dist/cjs/async/delay/delay.js.map +0 -1
- package/dist/cjs/async/delay-iterable/_module.js +0 -18
- package/dist/cjs/async/delay-iterable/_module.js.map +0 -1
- package/dist/cjs/async/delay-iterable/delay-iterable.js +0 -36
- package/dist/cjs/async/delay-iterable/delay-iterable.js.map +0 -1
- package/dist/cjs/async/lazy-promise/_module.js +0 -18
- package/dist/cjs/async/lazy-promise/_module.js.map +0 -1
- package/dist/cjs/async/lazy-promise/lazy-promise.js.map +0 -1
- package/dist/cjs/async/retry/_module.js +0 -18
- package/dist/cjs/async/retry/_module.js.map +0 -1
- package/dist/cjs/async/retry/retry.js +0 -43
- package/dist/cjs/async/retry/retry.js.map +0 -1
- package/dist/cjs/async/retry-iterable/_module.js +0 -18
- package/dist/cjs/async/retry-iterable/_module.js.map +0 -1
- package/dist/cjs/async/retry-iterable/retry-iterable.js +0 -32
- package/dist/cjs/async/retry-iterable/retry-iterable.js.map +0 -1
- package/dist/cjs/async/timeout/_module.js +0 -18
- package/dist/cjs/async/timeout/_module.js.map +0 -1
- package/dist/cjs/async/timeout/timeout.js +0 -28
- package/dist/cjs/async/timeout/timeout.js.map +0 -1
- package/dist/cjs/async/timeout-iterable/_module.js +0 -18
- package/dist/cjs/async/timeout-iterable/_module.js.map +0 -1
- package/dist/cjs/async/timeout-iterable/timeout-iterable.js +0 -11
- package/dist/cjs/async/timeout-iterable/timeout-iterable.js.map +0 -1
- package/dist/cjs/collection/_module.js +0 -21
- package/dist/cjs/collection/_module.js.map +0 -1
- package/dist/cjs/collection/_shared.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_module.js +0 -18
- package/dist/cjs/collection/async-iterable-collection/_module.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/_module.js +0 -50
- package/dist/cjs/collection/async-iterable-collection/_shared/_module.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-collapse-iterable.js +0 -22
- package/dist/cjs/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-cross-join-iterable.js +0 -35
- package/dist/cjs/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-entries-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-error-handler-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-group-by-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-map-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-end-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-pad-start-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-reverse-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-shuffle-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-slice-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-sort-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-split-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-update-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-when-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/_shared/async-zip-iterable.js +0 -37
- package/dist/cjs/collection/async-iterable-collection/_shared/async-zip-iterable.js.map +0 -1
- package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js +0 -547
- package/dist/cjs/collection/async-iterable-collection/async-iterable-collection.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_module.js +0 -18
- package/dist/cjs/collection/iterable-collection/_module.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/_module.js +0 -49
- package/dist/cjs/collection/iterable-collection/_shared/_module.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/chunk-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/chunk-while-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/collapse-iterable.js +0 -22
- package/dist/cjs/collection/iterable-collection/_shared/collapse-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/count-by-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/cross-join-iterable.js +0 -37
- package/dist/cjs/collection/iterable-collection/_shared/cross-join-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/entries-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/filter-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/flat-map-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/group-by-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/insert-after-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/insert-before-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/map-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/merge-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/pad-end-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/pad-start-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/partion-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/repeat-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/reverse-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/shuffle-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/skip-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/skip-until-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/slice-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/sliding-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/sort-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/split-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/take-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/take-until-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/tap-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/unique-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/update-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/when-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/_shared/zip-iterable.js.map +0 -1
- package/dist/cjs/collection/iterable-collection/iterable-collection.js +0 -493
- package/dist/cjs/collection/iterable-collection/iterable-collection.js.map +0 -1
- package/dist/cjs/collection/list-collection/_module.js +0 -18
- package/dist/cjs/collection/list-collection/_module.js.map +0 -1
- package/dist/cjs/collection/list-collection/list-collection.js +0 -627
- package/dist/cjs/collection/list-collection/list-collection.js.map +0 -1
- package/dist/cjs/contracts/_module.js +0 -20
- package/dist/cjs/contracts/_module.js.map +0 -1
- package/dist/cjs/contracts/collection/_module.js +0 -20
- package/dist/cjs/contracts/collection/_module.js.map +0 -1
- package/dist/cjs/contracts/collection/_shared.js.map +0 -1
- package/dist/cjs/contracts/collection/async-collection.contract.js.map +0 -1
- package/dist/cjs/contracts/collection/collection.contract.js.map +0 -1
- package/dist/cjs/contracts/serializer/_module.js +0 -18
- package/dist/cjs/contracts/serializer/_module.js.map +0 -1
- package/dist/cjs/contracts/serializer/serializer.contract.js.map +0 -1
- package/dist/cjs/contracts/storage/_module.js +0 -20
- package/dist/cjs/contracts/storage/_module.js.map +0 -1
- package/dist/cjs/contracts/storage/_shared.js.map +0 -1
- package/dist/cjs/contracts/storage/storage-adapter.contract.js.map +0 -1
- package/dist/cjs/contracts/storage/storage.contract.js.map +0 -1
- package/dist/cjs/serializer/_module.js +0 -22
- package/dist/cjs/serializer/_module.js.map +0 -1
- package/dist/cjs/serializer/_shared/test-utilities/_module.js +0 -18
- package/dist/cjs/serializer/_shared/test-utilities/_module.js.map +0 -1
- package/dist/cjs/serializer/_shared/test-utilities/serializer.test-suite.js.map +0 -1
- package/dist/cjs/serializer/mongodb-serializer/_module.js +0 -18
- package/dist/cjs/serializer/mongodb-serializer/_module.js.map +0 -1
- package/dist/cjs/serializer/mongodb-serializer/mongodb-serializer.js +0 -36
- package/dist/cjs/serializer/mongodb-serializer/mongodb-serializer.js.map +0 -1
- package/dist/cjs/serializer/redis-serializer/_module.js +0 -18
- package/dist/cjs/serializer/redis-serializer/_module.js.map +0 -1
- package/dist/cjs/serializer/redis-serializer/redis-serializer.js +0 -37
- package/dist/cjs/serializer/redis-serializer/redis-serializer.js.map +0 -1
- package/dist/cjs/serializer/sql-serializer/_module.js +0 -18
- package/dist/cjs/serializer/sql-serializer/_module.js.map +0 -1
- package/dist/cjs/serializer/sql-serializer/sql-serializer.js +0 -37
- package/dist/cjs/serializer/sql-serializer/sql-serializer.js.map +0 -1
- package/dist/cjs/serializer/super-json-serializer/_module.js +0 -18
- package/dist/cjs/serializer/super-json-serializer/_module.js.map +0 -1
- package/dist/cjs/serializer/super-json-serializer/super-json-serializer.js +0 -304
- package/dist/cjs/serializer/super-json-serializer/super-json-serializer.js.map +0 -1
- package/dist/cjs/storage/_module.js +0 -23
- package/dist/cjs/storage/_module.js.map +0 -1
- package/dist/cjs/storage/_shared/test-utilities/_module.js +0 -18
- package/dist/cjs/storage/_shared/test-utilities/_module.js.map +0 -1
- package/dist/cjs/storage/_shared/test-utilities/storage-api.test-suite.js +0 -572
- package/dist/cjs/storage/_shared/test-utilities/storage-api.test-suite.js.map +0 -1
- package/dist/cjs/storage/_shared/test-utilities/storage-namespace.test-suite.js +0 -241
- package/dist/cjs/storage/_shared/test-utilities/storage-namespace.test-suite.js.map +0 -1
- package/dist/cjs/storage/_shared/test-utilities/storage-value.test-suite.js +0 -4172
- package/dist/cjs/storage/_shared/test-utilities/storage-value.test-suite.js.map +0 -1
- package/dist/cjs/storage/_shared/test-utilities/storage.test-suite.js +0 -12
- package/dist/cjs/storage/_shared/test-utilities/storage.test-suite.js.map +0 -1
- package/dist/cjs/storage/memory-storage-adapter/_module.js +0 -18
- package/dist/cjs/storage/memory-storage-adapter/_module.js.map +0 -1
- package/dist/cjs/storage/memory-storage-adapter/memory-storage-adapter.js +0 -85
- package/dist/cjs/storage/memory-storage-adapter/memory-storage-adapter.js.map +0 -1
- package/dist/cjs/storage/mongodb-storage-adapter/_module.js +0 -6
- package/dist/cjs/storage/mongodb-storage-adapter/_module.js.map +0 -1
- package/dist/cjs/storage/mongodb-storage-adapter/mongodb-storage-adapter.js +0 -203
- package/dist/cjs/storage/mongodb-storage-adapter/mongodb-storage-adapter.js.map +0 -1
- package/dist/cjs/storage/namespace-storage-adapter.js +0 -56
- package/dist/cjs/storage/namespace-storage-adapter.js.map +0 -1
- package/dist/cjs/storage/redis-storage-adapter/_module.js +0 -18
- package/dist/cjs/storage/redis-storage-adapter/_module.js.map +0 -1
- package/dist/cjs/storage/redis-storage-adapter/redis-storage-adapter.js +0 -228
- package/dist/cjs/storage/redis-storage-adapter/redis-storage-adapter.js.map +0 -1
- package/dist/cjs/storage/sqlite/_module.js +0 -19
- package/dist/cjs/storage/sqlite/_module.js.map +0 -1
- package/dist/cjs/storage/sqlite/_shared/_module.js +0 -18
- package/dist/cjs/storage/sqlite/_shared/_module.js.map +0 -1
- package/dist/cjs/storage/sqlite/_shared/base-sqlite-storage-adapter.js +0 -190
- package/dist/cjs/storage/sqlite/_shared/base-sqlite-storage-adapter.js.map +0 -1
- package/dist/cjs/storage/sqlite/libsql-storage-adapter/_module.js +0 -18
- package/dist/cjs/storage/sqlite/libsql-storage-adapter/_module.js.map +0 -1
- package/dist/cjs/storage/sqlite/libsql-storage-adapter/libsql-storage-adapter.js +0 -53
- package/dist/cjs/storage/sqlite/libsql-storage-adapter/libsql-storage-adapter.js.map +0 -1
- package/dist/cjs/storage/sqlite/sqlite-storage-adapter/_module.js +0 -18
- package/dist/cjs/storage/sqlite/sqlite-storage-adapter/_module.js.map +0 -1
- package/dist/cjs/storage/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js +0 -52
- package/dist/cjs/storage/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js.map +0 -1
- package/dist/cjs/storage/storage.js +0 -217
- package/dist/cjs/storage/storage.js.map +0 -1
- package/dist/esm/async/_module.js +0 -12
- package/dist/esm/async/_module.js.map +0 -1
- package/dist/esm/async/_shared.js.map +0 -1
- package/dist/esm/async/abortable/_module.js +0 -2
- package/dist/esm/async/abortable/_module.js.map +0 -1
- package/dist/esm/async/abortable/abortable.js +0 -45
- package/dist/esm/async/abortable/abortable.js.map +0 -1
- package/dist/esm/async/abortable-iterable/_module.js +0 -2
- package/dist/esm/async/abortable-iterable/_module.js.map +0 -1
- package/dist/esm/async/abortable-iterable/abortable-iterable.js +0 -29
- package/dist/esm/async/abortable-iterable/abortable-iterable.js.map +0 -1
- package/dist/esm/async/backof-policies/_module.js +0 -5
- package/dist/esm/async/backof-policies/_module.js.map +0 -1
- package/dist/esm/async/backof-policies/_shared.js.map +0 -1
- package/dist/esm/async/backof-policies/constant-backoff-policy/_module.js +0 -2
- package/dist/esm/async/backof-policies/constant-backoff-policy/_module.js.map +0 -1
- package/dist/esm/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js +0 -16
- package/dist/esm/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +0 -1
- package/dist/esm/async/backof-policies/exponential-backoff-policy/_module.js +0 -2
- package/dist/esm/async/backof-policies/exponential-backoff-policy/_module.js.map +0 -1
- package/dist/esm/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +0 -20
- package/dist/esm/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +0 -1
- package/dist/esm/async/backof-policies/linear-backoff-policy/_module.js +0 -2
- package/dist/esm/async/backof-policies/linear-backoff-policy/_module.js.map +0 -1
- package/dist/esm/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +0 -20
- package/dist/esm/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +0 -1
- package/dist/esm/async/backof-policies/polynomial-backoff-policy/_module.js +0 -2
- package/dist/esm/async/backof-policies/polynomial-backoff-policy/_module.js.map +0 -1
- package/dist/esm/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +0 -20
- package/dist/esm/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +0 -1
- package/dist/esm/async/delay/_module.js +0 -2
- package/dist/esm/async/delay/_module.js.map +0 -1
- package/dist/esm/async/delay/delay.js +0 -21
- package/dist/esm/async/delay/delay.js.map +0 -1
- package/dist/esm/async/delay-iterable/_module.js +0 -2
- package/dist/esm/async/delay-iterable/_module.js.map +0 -1
- package/dist/esm/async/delay-iterable/delay-iterable.js +0 -33
- package/dist/esm/async/delay-iterable/delay-iterable.js.map +0 -1
- package/dist/esm/async/lazy-promise/_module.js +0 -2
- package/dist/esm/async/lazy-promise/_module.js.map +0 -1
- package/dist/esm/async/lazy-promise/lazy-promise.js.map +0 -1
- package/dist/esm/async/retry/_module.js +0 -2
- package/dist/esm/async/retry/_module.js.map +0 -1
- package/dist/esm/async/retry/retry.js +0 -40
- package/dist/esm/async/retry/retry.js.map +0 -1
- package/dist/esm/async/retry-iterable/_module.js +0 -2
- package/dist/esm/async/retry-iterable/_module.js.map +0 -1
- package/dist/esm/async/retry-iterable/retry-iterable.js +0 -29
- package/dist/esm/async/retry-iterable/retry-iterable.js.map +0 -1
- package/dist/esm/async/timeout/_module.js +0 -2
- package/dist/esm/async/timeout/_module.js.map +0 -1
- package/dist/esm/async/timeout/timeout.js +0 -25
- package/dist/esm/async/timeout/timeout.js.map +0 -1
- package/dist/esm/async/timeout-iterable/_module.js +0 -2
- package/dist/esm/async/timeout-iterable/_module.js.map +0 -1
- package/dist/esm/async/timeout-iterable/timeout-iterable.js +0 -8
- package/dist/esm/async/timeout-iterable/timeout-iterable.js.map +0 -1
- package/dist/esm/collection/_module.js +0 -5
- package/dist/esm/collection/_module.js.map +0 -1
- package/dist/esm/collection/_shared.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_module.js +0 -2
- package/dist/esm/collection/async-iterable-collection/_module.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/_module.js +0 -34
- package/dist/esm/collection/async-iterable-collection/_shared/_module.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-collapse-iterable.js +0 -18
- package/dist/esm/collection/async-iterable-collection/_shared/async-collapse-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-count-by-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-cross-join-iterable.js +0 -31
- package/dist/esm/collection/async-iterable-collection/_shared/async-cross-join-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-entries-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-error-handler-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-filter-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-flat-map-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-group-by-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-after-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-insert-before-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-map-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-merge-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-end-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-pad-start-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-partion-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-repeat-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-reverse-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-shuffle-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-skip-until-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-slice-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-sliding-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-sort-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-split-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-take-until-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-tap-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-unique-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-update-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-when-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/_shared/async-zip-iterable.js +0 -33
- package/dist/esm/collection/async-iterable-collection/_shared/async-zip-iterable.js.map +0 -1
- package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js +0 -543
- package/dist/esm/collection/async-iterable-collection/async-iterable-collection.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_module.js +0 -2
- package/dist/esm/collection/iterable-collection/_module.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/_module.js +0 -33
- package/dist/esm/collection/iterable-collection/_shared/_module.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/chunk-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/chunk-while-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/collapse-iterable.js +0 -18
- package/dist/esm/collection/iterable-collection/_shared/collapse-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/count-by-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/cross-join-iterable.js +0 -33
- package/dist/esm/collection/iterable-collection/_shared/cross-join-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/entries-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/filter-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/flat-map-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/group-by-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/insert-after-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/insert-before-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/map-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/merge-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/pad-end-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/pad-start-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/partion-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/repeat-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/reverse-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/shuffle-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/skip-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/skip-until-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/slice-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/sliding-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/sort-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/split-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/take-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/take-until-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/tap-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/unique-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/update-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/when-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/_shared/zip-iterable.js.map +0 -1
- package/dist/esm/collection/iterable-collection/iterable-collection.js +0 -489
- package/dist/esm/collection/iterable-collection/iterable-collection.js.map +0 -1
- package/dist/esm/collection/list-collection/_module.js +0 -2
- package/dist/esm/collection/list-collection/_module.js.map +0 -1
- package/dist/esm/collection/list-collection/list-collection.js +0 -623
- package/dist/esm/collection/list-collection/list-collection.js.map +0 -1
- package/dist/esm/contracts/_module.js +0 -4
- package/dist/esm/contracts/_module.js.map +0 -1
- package/dist/esm/contracts/collection/_module.js +0 -4
- package/dist/esm/contracts/collection/_module.js.map +0 -1
- package/dist/esm/contracts/collection/_shared.js.map +0 -1
- package/dist/esm/contracts/collection/async-collection.contract.js.map +0 -1
- package/dist/esm/contracts/collection/collection.contract.js.map +0 -1
- package/dist/esm/contracts/serializer/_module.js +0 -2
- package/dist/esm/contracts/serializer/_module.js.map +0 -1
- package/dist/esm/contracts/serializer/serializer.contract.js.map +0 -1
- package/dist/esm/contracts/storage/_module.js +0 -4
- package/dist/esm/contracts/storage/_module.js.map +0 -1
- package/dist/esm/contracts/storage/_shared.js.map +0 -1
- package/dist/esm/contracts/storage/storage-adapter.contract.js.map +0 -1
- package/dist/esm/contracts/storage/storage.contract.js.map +0 -1
- package/dist/esm/serializer/_module.js +0 -6
- package/dist/esm/serializer/_module.js.map +0 -1
- package/dist/esm/serializer/_shared/test-utilities/_module.js +0 -2
- package/dist/esm/serializer/_shared/test-utilities/_module.js.map +0 -1
- package/dist/esm/serializer/_shared/test-utilities/serializer.test-suite.js.map +0 -1
- package/dist/esm/serializer/mongodb-serializer/_module.js +0 -2
- package/dist/esm/serializer/mongodb-serializer/_module.js.map +0 -1
- package/dist/esm/serializer/mongodb-serializer/mongodb-serializer.js +0 -32
- package/dist/esm/serializer/mongodb-serializer/mongodb-serializer.js.map +0 -1
- package/dist/esm/serializer/redis-serializer/_module.js +0 -2
- package/dist/esm/serializer/redis-serializer/_module.js.map +0 -1
- package/dist/esm/serializer/redis-serializer/redis-serializer.js +0 -33
- package/dist/esm/serializer/redis-serializer/redis-serializer.js.map +0 -1
- package/dist/esm/serializer/sql-serializer/_module.js +0 -2
- package/dist/esm/serializer/sql-serializer/_module.js.map +0 -1
- package/dist/esm/serializer/sql-serializer/sql-serializer.js +0 -33
- package/dist/esm/serializer/sql-serializer/sql-serializer.js.map +0 -1
- package/dist/esm/serializer/super-json-serializer/_module.js +0 -2
- package/dist/esm/serializer/super-json-serializer/_module.js.map +0 -1
- package/dist/esm/serializer/super-json-serializer/super-json-serializer.js +0 -277
- package/dist/esm/serializer/super-json-serializer/super-json-serializer.js.map +0 -1
- package/dist/esm/storage/_module.js +0 -7
- package/dist/esm/storage/_module.js.map +0 -1
- package/dist/esm/storage/_shared/test-utilities/_module.js +0 -2
- package/dist/esm/storage/_shared/test-utilities/_module.js.map +0 -1
- package/dist/esm/storage/_shared/test-utilities/storage-api.test-suite.js +0 -569
- package/dist/esm/storage/_shared/test-utilities/storage-api.test-suite.js.map +0 -1
- package/dist/esm/storage/_shared/test-utilities/storage-namespace.test-suite.js +0 -238
- package/dist/esm/storage/_shared/test-utilities/storage-namespace.test-suite.js.map +0 -1
- package/dist/esm/storage/_shared/test-utilities/storage-value.test-suite.js +0 -4169
- package/dist/esm/storage/_shared/test-utilities/storage-value.test-suite.js.map +0 -1
- package/dist/esm/storage/_shared/test-utilities/storage.test-suite.js +0 -9
- package/dist/esm/storage/_shared/test-utilities/storage.test-suite.js.map +0 -1
- package/dist/esm/storage/memory-storage-adapter/_module.js +0 -2
- package/dist/esm/storage/memory-storage-adapter/_module.js.map +0 -1
- package/dist/esm/storage/memory-storage-adapter/memory-storage-adapter.js +0 -81
- package/dist/esm/storage/memory-storage-adapter/memory-storage-adapter.js.map +0 -1
- package/dist/esm/storage/mongodb-storage-adapter/_module.js +0 -2
- package/dist/esm/storage/mongodb-storage-adapter/_module.js.map +0 -1
- package/dist/esm/storage/mongodb-storage-adapter/mongodb-storage-adapter.js +0 -196
- package/dist/esm/storage/mongodb-storage-adapter/mongodb-storage-adapter.js.map +0 -1
- package/dist/esm/storage/namespace-storage-adapter.js +0 -52
- package/dist/esm/storage/namespace-storage-adapter.js.map +0 -1
- package/dist/esm/storage/redis-storage-adapter/_module.js +0 -2
- package/dist/esm/storage/redis-storage-adapter/_module.js.map +0 -1
- package/dist/esm/storage/redis-storage-adapter/redis-storage-adapter.js +0 -224
- package/dist/esm/storage/redis-storage-adapter/redis-storage-adapter.js.map +0 -1
- package/dist/esm/storage/sqlite/_module.js +0 -3
- package/dist/esm/storage/sqlite/_module.js.map +0 -1
- package/dist/esm/storage/sqlite/_shared/_module.js +0 -2
- package/dist/esm/storage/sqlite/_shared/_module.js.map +0 -1
- package/dist/esm/storage/sqlite/_shared/base-sqlite-storage-adapter.js +0 -186
- package/dist/esm/storage/sqlite/_shared/base-sqlite-storage-adapter.js.map +0 -1
- package/dist/esm/storage/sqlite/libsql-storage-adapter/_module.js +0 -2
- package/dist/esm/storage/sqlite/libsql-storage-adapter/_module.js.map +0 -1
- package/dist/esm/storage/sqlite/libsql-storage-adapter/libsql-storage-adapter.js +0 -49
- package/dist/esm/storage/sqlite/libsql-storage-adapter/libsql-storage-adapter.js.map +0 -1
- package/dist/esm/storage/sqlite/sqlite-storage-adapter/_module.js +0 -2
- package/dist/esm/storage/sqlite/sqlite-storage-adapter/_module.js.map +0 -1
- package/dist/esm/storage/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js +0 -48
- package/dist/esm/storage/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js.map +0 -1
- package/dist/esm/storage/storage.js +0 -213
- package/dist/esm/storage/storage.js.map +0 -1
- package/dist/types/async/_module.d.ts +0 -11
- package/dist/types/async/_shared.d.ts +0 -35
- package/dist/types/async/abortable/_module.d.ts +0 -1
- package/dist/types/async/abortable/abortable.d.ts +0 -39
- package/dist/types/async/abortable-iterable/_module.d.ts +0 -1
- package/dist/types/async/abortable-iterable/abortable-iterable.d.ts +0 -36
- package/dist/types/async/backof-policies/_module.d.ts +0 -5
- package/dist/types/async/backof-policies/_shared.d.ts +0 -12
- package/dist/types/async/backof-policies/constant-backoff-policy/_module.d.ts +0 -1
- package/dist/types/async/backof-policies/constant-backoff-policy/constant-backoff-policy.d.ts +0 -28
- package/dist/types/async/backof-policies/exponential-backoff-policy/_module.d.ts +0 -1
- package/dist/types/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +0 -36
- package/dist/types/async/backof-policies/linear-backoff-policy/_module.d.ts +0 -1
- package/dist/types/async/backof-policies/linear-backoff-policy/linear-backoff-policy.d.ts +0 -32
- package/dist/types/async/backof-policies/polynomial-backoff-policy/_module.d.ts +0 -1
- package/dist/types/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +0 -36
- package/dist/types/async/delay/_module.d.ts +0 -1
- package/dist/types/async/delay/delay.d.ts +0 -38
- package/dist/types/async/delay-iterable/_module.d.ts +0 -1
- package/dist/types/async/delay-iterable/delay-iterable.d.ts +0 -57
- package/dist/types/async/lazy-promise/_module.d.ts +0 -1
- package/dist/types/async/lazy-promise/lazy-promise.d.ts +0 -28
- package/dist/types/async/retry/_module.d.ts +0 -1
- package/dist/types/async/retry/retry.d.ts +0 -86
- package/dist/types/async/retry-iterable/_module.d.ts +0 -1
- package/dist/types/async/retry-iterable/retry-iterable.d.ts +0 -86
- package/dist/types/async/timeout/_module.d.ts +0 -1
- package/dist/types/async/timeout/timeout.d.ts +0 -40
- package/dist/types/async/timeout-iterable/_module.d.ts +0 -1
- package/dist/types/async/timeout-iterable/timeout-iterable.d.ts +0 -64
- package/dist/types/collection/_module.d.ts +0 -4
- package/dist/types/collection/async-iterable-collection/_module.d.ts +0 -1
- package/dist/types/collection/async-iterable-collection/_shared/_module.d.ts +0 -33
- package/dist/types/collection/async-iterable-collection/_shared/async-chunk-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-chunk-while-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-collapse-iterable.d.ts +0 -9
- package/dist/types/collection/async-iterable-collection/_shared/async-count-by-iterable.d.ts +0 -11
- package/dist/types/collection/async-iterable-collection/_shared/async-cross-join-iterable.d.ts +0 -13
- package/dist/types/collection/async-iterable-collection/_shared/async-entries-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-error-handler-iterable.d.ts +0 -6
- package/dist/types/collection/async-iterable-collection/_shared/async-filter-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-flat-map-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-group-by-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-insert-after-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-insert-before-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-map-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-merge-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-pad-end-iterable.d.ts +0 -13
- package/dist/types/collection/async-iterable-collection/_shared/async-pad-start-iterable.d.ts +0 -13
- package/dist/types/collection/async-iterable-collection/_shared/async-partion-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-repeat-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-reverse-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-shuffle-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-skip-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-skip-until-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-slice-iterable.d.ts +0 -11
- package/dist/types/collection/async-iterable-collection/_shared/async-sliding-iterable.d.ts +0 -11
- package/dist/types/collection/async-iterable-collection/_shared/async-sort-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-split-iterable.d.ts +0 -12
- package/dist/types/collection/async-iterable-collection/_shared/async-take-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-take-until-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-tap-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-unique-iterable.d.ts +0 -10
- package/dist/types/collection/async-iterable-collection/_shared/async-update-iterable.d.ts +0 -11
- package/dist/types/collection/async-iterable-collection/_shared/async-when-iterable.d.ts +0 -11
- package/dist/types/collection/async-iterable-collection/_shared/async-zip-iterable.d.ts +0 -11
- package/dist/types/collection/async-iterable-collection/async-iterable-collection.d.ts +0 -105
- package/dist/types/collection/iterable-collection/_module.d.ts +0 -1
- package/dist/types/collection/iterable-collection/_shared/_module.d.ts +0 -32
- package/dist/types/collection/iterable-collection/_shared/chunk-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/chunk-while-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/collapse-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/_shared/count-by-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/cross-join-iterable.d.ts +0 -8
- package/dist/types/collection/iterable-collection/_shared/entries-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/_shared/filter-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/flat-map-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/group-by-iterable.d.ts +0 -12
- package/dist/types/collection/iterable-collection/_shared/insert-after-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/insert-before-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/map-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/merge-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/_shared/pad-end-iterable.d.ts +0 -12
- package/dist/types/collection/iterable-collection/_shared/pad-start-iterable.d.ts +0 -12
- package/dist/types/collection/iterable-collection/_shared/partion-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/repeat-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/reverse-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/shuffle-iterable.d.ts +0 -9
- package/dist/types/collection/iterable-collection/_shared/skip-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/skip-until-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/slice-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/sliding-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/sort-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/split-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/take-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/take-until-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/tap-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/unique-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/_shared/update-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/when-iterable.d.ts +0 -11
- package/dist/types/collection/iterable-collection/_shared/zip-iterable.d.ts +0 -10
- package/dist/types/collection/iterable-collection/iterable-collection.d.ts +0 -100
- package/dist/types/collection/list-collection/_module.d.ts +0 -1
- package/dist/types/collection/list-collection/list-collection.d.ts +0 -97
- package/dist/types/contracts/_module.d.ts +0 -3
- package/dist/types/contracts/collection/_module.d.ts +0 -3
- package/dist/types/contracts/collection/async-collection.contract.d.ts +0 -1309
- package/dist/types/contracts/collection/collection.contract.d.ts +0 -1269
- package/dist/types/contracts/serializer/_module.d.ts +0 -1
- package/dist/types/contracts/storage/_module.d.ts +0 -3
- package/dist/types/contracts/storage/storage-adapter.contract.d.ts +0 -53
- package/dist/types/contracts/storage/storage.contract.d.ts +0 -148
- package/dist/types/serializer/_module.d.ts +0 -5
- package/dist/types/serializer/_shared/test-utilities/_module.d.ts +0 -1
- package/dist/types/serializer/_shared/test-utilities/serializer.test-suite.d.ts +0 -18
- package/dist/types/serializer/mongodb-serializer/_module.d.ts +0 -1
- package/dist/types/serializer/mongodb-serializer/mongodb-serializer.d.ts +0 -13
- package/dist/types/serializer/redis-serializer/_module.d.ts +0 -1
- package/dist/types/serializer/redis-serializer/redis-serializer.d.ts +0 -13
- package/dist/types/serializer/sql-serializer/_module.d.ts +0 -1
- package/dist/types/serializer/sql-serializer/sql-serializer.d.ts +0 -13
- package/dist/types/serializer/super-json-serializer/_module.d.ts +0 -1
- package/dist/types/serializer/super-json-serializer/super-json-serializer.d.ts +0 -37
- package/dist/types/storage/_module.d.ts +0 -6
- package/dist/types/storage/_shared/test-utilities/_module.d.ts +0 -1
- package/dist/types/storage/_shared/test-utilities/storage-api.test-suite.d.ts +0 -20
- package/dist/types/storage/_shared/test-utilities/storage-namespace.test-suite.d.ts +0 -20
- package/dist/types/storage/_shared/test-utilities/storage-value.test-suite.d.ts +0 -20
- package/dist/types/storage/_shared/test-utilities/storage.test-suite.d.ts +0 -20
- package/dist/types/storage/memory-storage-adapter/_module.d.ts +0 -1
- package/dist/types/storage/memory-storage-adapter/memory-storage-adapter.d.ts +0 -18
- package/dist/types/storage/mongodb-storage-adapter/_module.d.ts +0 -1
- package/dist/types/storage/mongodb-storage-adapter/mongodb-storage-adapter.d.ts +0 -43
- package/dist/types/storage/namespace-storage-adapter.d.ts +0 -25
- package/dist/types/storage/redis-storage-adapter/_module.d.ts +0 -1
- package/dist/types/storage/redis-storage-adapter/redis-storage-adapter.d.ts +0 -38
- package/dist/types/storage/sqlite/_module.d.ts +0 -2
- package/dist/types/storage/sqlite/_shared/_module.d.ts +0 -1
- package/dist/types/storage/sqlite/_shared/base-sqlite-storage-adapter.d.ts +0 -39
- package/dist/types/storage/sqlite/libsql-storage-adapter/_module.d.ts +0 -1
- package/dist/types/storage/sqlite/libsql-storage-adapter/libsql-storage-adapter.d.ts +0 -30
- package/dist/types/storage/sqlite/sqlite-storage-adapter/_module.d.ts +0 -1
- package/dist/types/storage/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.d.ts +0 -30
- package/dist/types/storage/storage.d.ts +0 -39
- /package/dist/cjs/{contracts/collection → collection/contracts}/_shared.js +0 -0
- /package/dist/cjs/{contracts/collection → collection/contracts}/async-collection.contract.js +0 -0
- /package/dist/cjs/{contracts/collection → collection/contracts}/collection.contract.js +0 -0
- /package/dist/cjs/collection/{_shared.js → implementations/_shared.js} +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-chunk-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-chunk-while-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-count-by-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-entries-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-error-handler-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-filter-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-flat-map-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-group-by-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-insert-after-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-insert-before-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-map-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-merge-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-pad-end-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-pad-start-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-partion-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-repeat-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-reverse-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-shuffle-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-skip-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-skip-until-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-slice-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-sliding-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-sort-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-split-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-take-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-take-until-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-tap-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-unique-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-update-iterable.js +0 -0
- /package/dist/cjs/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-when-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/chunk-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/chunk-while-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/count-by-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/entries-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/filter-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/flat-map-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/group-by-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/insert-after-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/insert-before-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/map-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/merge-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/pad-end-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/pad-start-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/partion-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/repeat-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/reverse-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/shuffle-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/skip-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/skip-until-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/slice-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/sliding-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/sort-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/split-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/take-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/take-until-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/tap-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/unique-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/update-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/when-iterable.js +0 -0
- /package/dist/cjs/collection/{iterable-collection → implementations/iterable-collection}/_shared/zip-iterable.js +0 -0
- /package/dist/cjs/{contracts/serializer → serializer/contracts}/serializer.contract.js +0 -0
- /package/dist/cjs/serializer/{_shared → implementations/_shared}/test-utilities/serializer.test-suite.js +0 -0
- /package/dist/cjs/{contracts/storage → storage/contracts}/_shared.js +0 -0
- /package/dist/cjs/{contracts/storage → storage/contracts}/storage-adapter.contract.js +0 -0
- /package/dist/cjs/{contracts/storage → storage/contracts}/storage.contract.js +0 -0
- /package/dist/cjs/{async → utilities/async}/_shared.js +0 -0
- /package/dist/cjs/{async → utilities/async}/lazy-promise/lazy-promise.js +0 -0
- /package/dist/cjs/{async → utilities}/backof-policies/_shared.js +0 -0
- /package/dist/esm/{contracts/collection → collection/contracts}/_shared.js +0 -0
- /package/dist/esm/{contracts/collection → collection/contracts}/async-collection.contract.js +0 -0
- /package/dist/esm/{contracts/collection → collection/contracts}/collection.contract.js +0 -0
- /package/dist/esm/collection/{_shared.js → implementations/_shared.js} +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-chunk-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-chunk-while-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-count-by-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-entries-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-error-handler-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-filter-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-flat-map-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-group-by-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-insert-after-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-insert-before-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-map-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-merge-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-pad-end-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-pad-start-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-partion-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-repeat-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-reverse-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-shuffle-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-skip-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-skip-until-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-slice-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-sliding-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-sort-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-split-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-take-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-take-until-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-tap-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-unique-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-update-iterable.js +0 -0
- /package/dist/esm/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-when-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/chunk-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/chunk-while-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/count-by-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/entries-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/filter-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/flat-map-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/group-by-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/insert-after-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/insert-before-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/map-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/merge-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/pad-end-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/pad-start-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/partion-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/repeat-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/reverse-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/shuffle-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/skip-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/skip-until-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/slice-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/sliding-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/sort-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/split-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/take-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/take-until-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/tap-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/unique-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/update-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/when-iterable.js +0 -0
- /package/dist/esm/collection/{iterable-collection → implementations/iterable-collection}/_shared/zip-iterable.js +0 -0
- /package/dist/esm/{contracts/serializer → serializer/contracts}/serializer.contract.js +0 -0
- /package/dist/esm/serializer/{_shared → implementations/_shared}/test-utilities/serializer.test-suite.js +0 -0
- /package/dist/esm/{contracts/storage → storage/contracts}/_shared.js +0 -0
- /package/dist/esm/{contracts/storage → storage/contracts}/storage-adapter.contract.js +0 -0
- /package/dist/esm/{contracts/storage → storage/contracts}/storage.contract.js +0 -0
- /package/dist/esm/{async → utilities/async}/_shared.js +0 -0
- /package/dist/esm/{async → utilities/async}/lazy-promise/lazy-promise.js +0 -0
- /package/dist/esm/{async → utilities}/backof-policies/_shared.js +0 -0
- /package/dist/types/{contracts/collection → collection/contracts}/_shared.d.ts +0 -0
- /package/dist/types/collection/{_shared.d.ts → implementations/_shared.d.ts} +0 -0
- /package/dist/types/{contracts/serializer → serializer/contracts}/serializer.contract.d.ts +0 -0
- /package/dist/types/{contracts/storage → storage/contracts}/_shared.d.ts +0 -0
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
import { KeyNotFoundStorageError, STORAGE_EVENTS, UnexpectedStorageError, } from "../../../storage/contracts/_module";
|
|
2
|
+
import { WithNamespaceStorageAdapter } from "../../../storage/implementations/storage/with-namespace-storage-adapter";
|
|
3
|
+
import { isArrayEmpty, isObjectEmpty, simplifyAsyncLazyable, } from "../../../_shared/utilities";
|
|
4
|
+
import { LazyPromise } from "../../../utilities/_module";
|
|
5
|
+
import { WithValidationStorageAdapter } from "../../../storage/implementations/storage/with-validation-storage-adapter";
|
|
6
|
+
import { EventBus, NoOpEventBusAdapter, } from "../../../event-bus/implementations/_module";
|
|
7
|
+
import { WithEventStorageAdapter } from "../../../storage/implementations/storage/with-event-storage-adapter";
|
|
8
|
+
export class Storage {
|
|
9
|
+
storageAdapter;
|
|
10
|
+
static EVENTS = STORAGE_EVENTS;
|
|
11
|
+
withEventStorageAdapter;
|
|
12
|
+
namespace_;
|
|
13
|
+
validator;
|
|
14
|
+
eventBus;
|
|
15
|
+
constructor(storageAdapter, settings = {}) {
|
|
16
|
+
this.storageAdapter = storageAdapter;
|
|
17
|
+
const { rootNamespace: namespace = "", validator = (v) => v, eventBus = new EventBus(new NoOpEventBusAdapter()), } = settings;
|
|
18
|
+
this.namespace_ = namespace;
|
|
19
|
+
this.validator = validator;
|
|
20
|
+
this.eventBus = eventBus.withNamespace(this.namespace_);
|
|
21
|
+
const withValidationStorageAdapter = new WithValidationStorageAdapter(this.storageAdapter, this.validator);
|
|
22
|
+
const withNamespaceStorageAdapter = new WithNamespaceStorageAdapter(withValidationStorageAdapter, this.namespace_);
|
|
23
|
+
this.withEventStorageAdapter = new WithEventStorageAdapter(withNamespaceStorageAdapter, this.eventBus, {
|
|
24
|
+
adapter: this.storageAdapter,
|
|
25
|
+
namespace: this.namespace_,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
addListener(event, listener) {
|
|
29
|
+
return this.eventBus.addListener(event, listener);
|
|
30
|
+
}
|
|
31
|
+
addListenerMany(events, listener) {
|
|
32
|
+
return this.eventBus.addListenerMany(events, listener);
|
|
33
|
+
}
|
|
34
|
+
removeListener(event, listener) {
|
|
35
|
+
return this.eventBus.removeListener(event, listener);
|
|
36
|
+
}
|
|
37
|
+
removeListenerMany(events, listener) {
|
|
38
|
+
return this.eventBus.removeListenerMany(events, listener);
|
|
39
|
+
}
|
|
40
|
+
subscribe(event, listener) {
|
|
41
|
+
return this.eventBus.subscribe(event, listener);
|
|
42
|
+
}
|
|
43
|
+
subscribeMany(events, listener) {
|
|
44
|
+
return this.eventBus.subscribeMany(events, listener);
|
|
45
|
+
}
|
|
46
|
+
withNamespace(namespace) {
|
|
47
|
+
return new Storage(this.storageAdapter, {
|
|
48
|
+
validator: this.validator,
|
|
49
|
+
rootNamespace: `${this.namespace_}${namespace}`,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
getNamespace() {
|
|
53
|
+
return this.namespace_;
|
|
54
|
+
}
|
|
55
|
+
exists(key) {
|
|
56
|
+
return new LazyPromise(async () => {
|
|
57
|
+
const { [key]: hasKey } = await this.existsMany([key]);
|
|
58
|
+
if (hasKey === undefined) {
|
|
59
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
60
|
+
}
|
|
61
|
+
return hasKey;
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
existsMany(keys) {
|
|
65
|
+
return new LazyPromise(async () => {
|
|
66
|
+
const getResult = await this.getMany(keys);
|
|
67
|
+
const results = {};
|
|
68
|
+
for (const key in getResult) {
|
|
69
|
+
results[key] = getResult[key] !== null;
|
|
70
|
+
}
|
|
71
|
+
return results;
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
missing(key) {
|
|
75
|
+
return new LazyPromise(async () => {
|
|
76
|
+
const { [key]: hasKey } = await this.missingMany([key]);
|
|
77
|
+
if (hasKey === undefined) {
|
|
78
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
79
|
+
}
|
|
80
|
+
return hasKey;
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
missingMany(keys) {
|
|
84
|
+
return new LazyPromise(async () => {
|
|
85
|
+
return Object.fromEntries(Object.entries(await this.existsMany(keys)).map(([key, hasKey]) => [key, !hasKey]));
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
get(key) {
|
|
89
|
+
return new LazyPromise(async () => {
|
|
90
|
+
const { [key]: value } = await this.getMany([key]);
|
|
91
|
+
if (value === undefined) {
|
|
92
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
93
|
+
}
|
|
94
|
+
return value;
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
getMany(keys) {
|
|
98
|
+
return new LazyPromise(async () => {
|
|
99
|
+
if (isArrayEmpty(keys)) {
|
|
100
|
+
return {};
|
|
101
|
+
}
|
|
102
|
+
return await this.withEventStorageAdapter.getMany(keys);
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
getOr(key, defaultValue) {
|
|
106
|
+
return new LazyPromise(async () => {
|
|
107
|
+
const { [key]: value } = await this.getOrMany({
|
|
108
|
+
[key]: defaultValue,
|
|
109
|
+
});
|
|
110
|
+
if (value === undefined) {
|
|
111
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
112
|
+
}
|
|
113
|
+
return value;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
getOrMany(keysWithDefaults) {
|
|
117
|
+
return new LazyPromise(async () => {
|
|
118
|
+
const getManyResult = await this.getMany(Object.keys(keysWithDefaults));
|
|
119
|
+
const result = {};
|
|
120
|
+
for (const key in getManyResult) {
|
|
121
|
+
const { [key]: value } = getManyResult;
|
|
122
|
+
if (value === undefined) {
|
|
123
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
124
|
+
}
|
|
125
|
+
if (value === null) {
|
|
126
|
+
const defaultValue = keysWithDefaults[key];
|
|
127
|
+
result[key] = (await simplifyAsyncLazyable(defaultValue));
|
|
128
|
+
}
|
|
129
|
+
else {
|
|
130
|
+
result[key] = value;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
return result;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
getOrFail(key) {
|
|
137
|
+
return new LazyPromise(async () => {
|
|
138
|
+
const value = await this.get(key);
|
|
139
|
+
if (value === null) {
|
|
140
|
+
throw new KeyNotFoundStorageError(`Key "${key}" is not found`);
|
|
141
|
+
}
|
|
142
|
+
return value;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
add(key, value) {
|
|
146
|
+
return new LazyPromise(async () => {
|
|
147
|
+
const { [key]: hasAdded } = await this.addMany({
|
|
148
|
+
[key]: value,
|
|
149
|
+
});
|
|
150
|
+
if (hasAdded === undefined) {
|
|
151
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
152
|
+
}
|
|
153
|
+
return hasAdded;
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
addMany(values) {
|
|
157
|
+
return new LazyPromise(async () => {
|
|
158
|
+
if (isObjectEmpty(values)) {
|
|
159
|
+
return {};
|
|
160
|
+
}
|
|
161
|
+
return await this.withEventStorageAdapter.addMany(values);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
update(key, value) {
|
|
165
|
+
return new LazyPromise(async () => {
|
|
166
|
+
const { [key]: hasKey } = await this.updateMany({
|
|
167
|
+
[key]: value,
|
|
168
|
+
});
|
|
169
|
+
if (hasKey === undefined) {
|
|
170
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
171
|
+
}
|
|
172
|
+
return hasKey;
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
updateMany(values) {
|
|
176
|
+
return new LazyPromise(async () => {
|
|
177
|
+
if (isObjectEmpty(values)) {
|
|
178
|
+
return {};
|
|
179
|
+
}
|
|
180
|
+
return await this.withEventStorageAdapter.updateMany(values);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
put(key, value) {
|
|
184
|
+
return new LazyPromise(async () => {
|
|
185
|
+
const { [key]: hasAdded } = await this.putMany({
|
|
186
|
+
[key]: value,
|
|
187
|
+
});
|
|
188
|
+
if (hasAdded === undefined) {
|
|
189
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
190
|
+
}
|
|
191
|
+
return hasAdded;
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
putMany(values) {
|
|
195
|
+
return new LazyPromise(async () => {
|
|
196
|
+
if (isObjectEmpty(values)) {
|
|
197
|
+
return {};
|
|
198
|
+
}
|
|
199
|
+
return await this.withEventStorageAdapter.putMany(values);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
remove(key) {
|
|
203
|
+
return new LazyPromise(async () => {
|
|
204
|
+
const { [key]: hasAdded } = await this.removeMany([key]);
|
|
205
|
+
if (hasAdded === undefined) {
|
|
206
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
207
|
+
}
|
|
208
|
+
return hasAdded;
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
removeMany(keys) {
|
|
212
|
+
return new LazyPromise(async () => {
|
|
213
|
+
if (isArrayEmpty(keys)) {
|
|
214
|
+
return {};
|
|
215
|
+
}
|
|
216
|
+
return await this.withEventStorageAdapter.removeMany(keys);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
getAndRemove(key) {
|
|
220
|
+
return new LazyPromise(async () => {
|
|
221
|
+
const { [key]: value } = await this.getMany([key]);
|
|
222
|
+
if (value === undefined) {
|
|
223
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
224
|
+
}
|
|
225
|
+
await this.withEventStorageAdapter.removeMany([key]);
|
|
226
|
+
return value;
|
|
227
|
+
});
|
|
228
|
+
}
|
|
229
|
+
getOrAdd(key, valueToAdd) {
|
|
230
|
+
return new LazyPromise(async () => {
|
|
231
|
+
const { [key]: value } = await this.getMany([key]);
|
|
232
|
+
if (value === undefined) {
|
|
233
|
+
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
234
|
+
}
|
|
235
|
+
if (value === null) {
|
|
236
|
+
const valueToAddSimplified = (await simplifyAsyncLazyable(valueToAdd));
|
|
237
|
+
await this.withEventStorageAdapter.addMany({
|
|
238
|
+
[key]: valueToAddSimplified,
|
|
239
|
+
});
|
|
240
|
+
return valueToAddSimplified;
|
|
241
|
+
}
|
|
242
|
+
return value;
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
increment(key, value = 1) {
|
|
246
|
+
return new LazyPromise(async () => {
|
|
247
|
+
return await this.withEventStorageAdapter.increment(key, value);
|
|
248
|
+
});
|
|
249
|
+
}
|
|
250
|
+
decrement(key, value = 1) {
|
|
251
|
+
return new LazyPromise(async () => {
|
|
252
|
+
return await this.withEventStorageAdapter.increment(key, -value);
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
clear() {
|
|
256
|
+
return new LazyPromise(async () => {
|
|
257
|
+
await this.withEventStorageAdapter.clear();
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
//# sourceMappingURL=storage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/storage.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,uBAAuB,EACvB,cAAc,EACd,sBAAsB,GAGzB,MAAM,6BAA6B,CAAC;AAMrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,kEAAkE,CAAC;AAC/G,OAAO,EACH,YAAY,EACZ,aAAa,EACb,qBAAqB,GACxB,MAAM,qBAAqB,CAAC;AAI7B,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,mEAAmE,CAAC;AAQjH,OAAO,EACH,QAAQ,EACR,mBAAmB,GACtB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,8DAA8D,CAAC;AA8DvG,MAAM,OAAO,OAAO;IAUK;IATrB,MAAM,CAAC,MAAM,GAAG,cAAc,CAAC;IAEd,uBAAuB,CAAiC;I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ORAGE_EVENTS, } from "../../../storage/contracts/_module";
|
|
2
|
+
import { isArrayEmpty, isObjectEmpty } from "../../../_shared/utilities";
|
|
3
|
+
export class WithEventStorageAdapter {
|
|
4
|
+
withNamespaceStorageAdapter;
|
|
5
|
+
eventBus;
|
|
6
|
+
eventAttributes;
|
|
7
|
+
constructor(withNamespaceStorageAdapter, eventBus, eventAttributes) {
|
|
8
|
+
this.withNamespaceStorageAdapter = withNamespaceStorageAdapter;
|
|
9
|
+
this.eventBus = eventBus;
|
|
10
|
+
this.eventAttributes = eventAttributes;
|
|
11
|
+
}
|
|
12
|
+
async triggerGetManyEvents(result) {
|
|
13
|
+
const keysNotFoundEvent = {
|
|
14
|
+
...this.eventAttributes,
|
|
15
|
+
type: STORAGE_EVENTS.KEYS_NOT_FOUND,
|
|
16
|
+
keys: [],
|
|
17
|
+
};
|
|
18
|
+
const keysFoundEvent = {
|
|
19
|
+
...this.eventAttributes,
|
|
20
|
+
type: STORAGE_EVENTS.KEYS_FOUND,
|
|
21
|
+
values: {},
|
|
22
|
+
};
|
|
23
|
+
for (const key in result) {
|
|
24
|
+
const value = result[key];
|
|
25
|
+
if (value === undefined) {
|
|
26
|
+
continue;
|
|
27
|
+
}
|
|
28
|
+
if (value === null) {
|
|
29
|
+
keysNotFoundEvent.keys.push(key);
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
keysFoundEvent.values[key] = value;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const events = [];
|
|
36
|
+
if (!isArrayEmpty(keysNotFoundEvent.keys)) {
|
|
37
|
+
events.push(keysNotFoundEvent);
|
|
38
|
+
}
|
|
39
|
+
if (!isObjectEmpty(keysFoundEvent.values)) {
|
|
40
|
+
events.push(keysFoundEvent);
|
|
41
|
+
}
|
|
42
|
+
await this.eventBus.dispatch(events);
|
|
43
|
+
}
|
|
44
|
+
async getMany(keys) {
|
|
45
|
+
const result = await this.withNamespaceStorageAdapter.getMany(keys);
|
|
46
|
+
await this.triggerGetManyEvents(result);
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
async triggerAddManyEvents(values, result) {
|
|
50
|
+
const keysAddedEvent = {
|
|
51
|
+
...this.eventAttributes,
|
|
52
|
+
type: STORAGE_EVENTS.KEYS_ADDED,
|
|
53
|
+
values: {},
|
|
54
|
+
};
|
|
55
|
+
for (const key in result) {
|
|
56
|
+
const value = values[key];
|
|
57
|
+
if (value === undefined) {
|
|
58
|
+
continue;
|
|
59
|
+
}
|
|
60
|
+
const hasAdded = result[key];
|
|
61
|
+
if (hasAdded) {
|
|
62
|
+
keysAddedEvent.values[key] = value;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
if (!isObjectEmpty(keysAddedEvent.values)) {
|
|
66
|
+
await this.eventBus.dispatch([keysAddedEvent]);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async addMany(values) {
|
|
70
|
+
const result = await this.withNamespaceStorageAdapter.addMany(values);
|
|
71
|
+
await this.triggerAddManyEvents(values, result);
|
|
72
|
+
return result;
|
|
73
|
+
}
|
|
74
|
+
async triggerUpdateManyEvents(values, result) {
|
|
75
|
+
const keysUpdatedEvent = {
|
|
76
|
+
...this.eventAttributes,
|
|
77
|
+
type: STORAGE_EVENTS.KEYS_UPDATED,
|
|
78
|
+
values: {},
|
|
79
|
+
};
|
|
80
|
+
const keysNotFoundEvent = {
|
|
81
|
+
...this.eventAttributes,
|
|
82
|
+
type: STORAGE_EVENTS.KEYS_NOT_FOUND,
|
|
83
|
+
keys: [],
|
|
84
|
+
};
|
|
85
|
+
for (const key in result) {
|
|
86
|
+
const value = values[key];
|
|
87
|
+
if (value === undefined) {
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
const keysExists = result[key];
|
|
91
|
+
if (keysExists) {
|
|
92
|
+
keysUpdatedEvent.values[key] = value;
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
keysNotFoundEvent.keys.push(key);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const events = [];
|
|
99
|
+
if (!isObjectEmpty(keysUpdatedEvent.values)) {
|
|
100
|
+
events.push(keysUpdatedEvent);
|
|
101
|
+
}
|
|
102
|
+
if (!isArrayEmpty(keysNotFoundEvent.keys)) {
|
|
103
|
+
events.push(keysNotFoundEvent);
|
|
104
|
+
}
|
|
105
|
+
await this.eventBus.dispatch(events);
|
|
106
|
+
}
|
|
107
|
+
async updateMany(values) {
|
|
108
|
+
const result = await this.withNamespaceStorageAdapter.updateMany(values);
|
|
109
|
+
await this.triggerUpdateManyEvents(values, result);
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
async triggerPutManyEvents(values, result) {
|
|
113
|
+
const keysUpdatedEvent = {
|
|
114
|
+
...this.eventAttributes,
|
|
115
|
+
type: STORAGE_EVENTS.KEYS_UPDATED,
|
|
116
|
+
values: {},
|
|
117
|
+
};
|
|
118
|
+
const keysAddedEvent = {
|
|
119
|
+
...this.eventAttributes,
|
|
120
|
+
type: STORAGE_EVENTS.KEYS_ADDED,
|
|
121
|
+
values: {},
|
|
122
|
+
};
|
|
123
|
+
for (const key in result) {
|
|
124
|
+
const value = values[key];
|
|
125
|
+
if (value === undefined) {
|
|
126
|
+
continue;
|
|
127
|
+
}
|
|
128
|
+
const keyExists = result[key];
|
|
129
|
+
if (keyExists) {
|
|
130
|
+
keysUpdatedEvent.values[key] = value;
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
keysAddedEvent.values[key] = value;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
const events = [];
|
|
137
|
+
if (!isObjectEmpty(keysUpdatedEvent.values)) {
|
|
138
|
+
events.push(keysUpdatedEvent);
|
|
139
|
+
}
|
|
140
|
+
if (!isObjectEmpty(keysAddedEvent.values)) {
|
|
141
|
+
events.push(keysAddedEvent);
|
|
142
|
+
}
|
|
143
|
+
await this.eventBus.dispatch(events);
|
|
144
|
+
}
|
|
145
|
+
async putMany(values) {
|
|
146
|
+
const result = await this.withNamespaceStorageAdapter.putMany(values);
|
|
147
|
+
await this.triggerPutManyEvents(values, result);
|
|
148
|
+
return result;
|
|
149
|
+
}
|
|
150
|
+
async triggerRemoveManyEvents(result) {
|
|
151
|
+
const keysRemovedEvent = {
|
|
152
|
+
...this.eventAttributes,
|
|
153
|
+
type: STORAGE_EVENTS.KEYS_REMOVED,
|
|
154
|
+
keys: [],
|
|
155
|
+
};
|
|
156
|
+
const keysNotFoundEvent = {
|
|
157
|
+
...this.eventAttributes,
|
|
158
|
+
type: STORAGE_EVENTS.KEYS_NOT_FOUND,
|
|
159
|
+
keys: [],
|
|
160
|
+
};
|
|
161
|
+
for (const key in result) {
|
|
162
|
+
const keysExists = result[key];
|
|
163
|
+
if (keysExists === undefined) {
|
|
164
|
+
continue;
|
|
165
|
+
}
|
|
166
|
+
if (keysExists) {
|
|
167
|
+
keysRemovedEvent.keys.push(key);
|
|
168
|
+
}
|
|
169
|
+
else {
|
|
170
|
+
keysNotFoundEvent.keys.push(key);
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
const events = [];
|
|
174
|
+
if (!isArrayEmpty(keysRemovedEvent.keys)) {
|
|
175
|
+
events.push(keysRemovedEvent);
|
|
176
|
+
}
|
|
177
|
+
if (!isArrayEmpty(keysNotFoundEvent.keys)) {
|
|
178
|
+
events.push(keysNotFoundEvent);
|
|
179
|
+
}
|
|
180
|
+
await this.eventBus.dispatch(events);
|
|
181
|
+
}
|
|
182
|
+
async removeMany(keys) {
|
|
183
|
+
const result = await this.withNamespaceStorageAdapter.removeMany(keys);
|
|
184
|
+
await this.triggerRemoveManyEvents(result);
|
|
185
|
+
return result;
|
|
186
|
+
}
|
|
187
|
+
async triggerIncrementEvents(key, value, keyExists) {
|
|
188
|
+
if (keyExists) {
|
|
189
|
+
await this.eventBus.dispatch([
|
|
190
|
+
{
|
|
191
|
+
...this.eventAttributes,
|
|
192
|
+
type: STORAGE_EVENTS.KEY_INCREMENTED,
|
|
193
|
+
key,
|
|
194
|
+
value,
|
|
195
|
+
},
|
|
196
|
+
]);
|
|
197
|
+
}
|
|
198
|
+
else {
|
|
199
|
+
await this.eventBus.dispatch([
|
|
200
|
+
{
|
|
201
|
+
...this.eventAttributes,
|
|
202
|
+
type: STORAGE_EVENTS.KEYS_NOT_FOUND,
|
|
203
|
+
keys: [key],
|
|
204
|
+
},
|
|
205
|
+
]);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
async triggerDecrementEvents(key, value, keyExists) {
|
|
209
|
+
if (keyExists) {
|
|
210
|
+
await this.eventBus.dispatch([
|
|
211
|
+
{
|
|
212
|
+
...this.eventAttributes,
|
|
213
|
+
type: STORAGE_EVENTS.KEY_DECREMENTED,
|
|
214
|
+
key,
|
|
215
|
+
value,
|
|
216
|
+
},
|
|
217
|
+
]);
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
await this.eventBus.dispatch([
|
|
221
|
+
{
|
|
222
|
+
...this.eventAttributes,
|
|
223
|
+
type: STORAGE_EVENTS.KEYS_NOT_FOUND,
|
|
224
|
+
keys: [key],
|
|
225
|
+
},
|
|
226
|
+
]);
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
async increment(key, value) {
|
|
230
|
+
const keyExists = await this.withNamespaceStorageAdapter.increment(key, value);
|
|
231
|
+
if (value > 0) {
|
|
232
|
+
await this.triggerIncrementEvents(key, value, keyExists);
|
|
233
|
+
}
|
|
234
|
+
else if (value < 0) {
|
|
235
|
+
await this.triggerDecrementEvents(key, value, keyExists);
|
|
236
|
+
}
|
|
237
|
+
return keyExists;
|
|
238
|
+
}
|
|
239
|
+
async triggerClearEvents() {
|
|
240
|
+
await this.eventBus.dispatch({
|
|
241
|
+
...this.eventAttributes,
|
|
242
|
+
type: STORAGE_EVENTS.KEYS_CLEARED,
|
|
243
|
+
});
|
|
244
|
+
}
|
|
245
|
+
async clear() {
|
|
246
|
+
await this.withNamespaceStorageAdapter.clear();
|
|
247
|
+
await this.triggerClearEvents();
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
//# sourceMappingURL=with-event-storage-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-event-storage-adapter.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/with-event-storage-adapter.ts"],"names":[],"mappings":"AAUA,OAAO,EACH,cAAc,GAKjB,MAAM,6BAA6B,CAAC;AAGrC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAKlE,MAAM,OAAO,uBAAuB;IAIX;IACA;IACA;IAHrB,YACqB,2BAA+D,EAC/D,QAA4C,EAC5C,eAA6B;QAF7B,gCAA2B,GAA3B,2BAA2B,CAAoC;QAC/D,aAAQ,GAAR,QAAQ,CAAoC;QAC5C,oBAAe,GAAf,eAAe,CAAc;IAC/C,CAAC;IAEI,KAAK,CAAC,oBAAoB,CAC9B,MAAoC;QAEpC,MAAM,iBAAiB,GAA6B;YAChD,GAAG,IAAI,CAAC,eAAe;YACvB,IAAI,EAAE,cAAc,CAAC,cAAc;YACnC,IAAI,EAAE,EAAE;SACX,CAAC;QACF,MAAM,cAAc,GAAiC;YACjD,GAAG,IAAI,CAAC,eAAe;YACvB,IAAI,EAAE,cAAc,CAAC,UAAU;YAC/B,MAAM,EAAE,EAAE;SACb,CAAC;QACF,KAAK,MAAM,GAAG,IAAI,MAAM,EAAE,CAAC;YACvB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YAC1B,IAAI,KAAK,KAAK,SAAS,EAAE,CAAC;gBACtB,SAAS;YACb,CAAC;YACD,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;gBACjB,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YACrC,CAAC;iBAAM,CAAC;gBACJ,cAAc,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;YACvC,CAAC;QACL,CAAC;QACD,MAA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AAe;oBACpC,GAAG;oBACH,KAAK;iBACR;aACJ,CAAC,CAAC;QACP,CAAC;aAAM,CAAC;YACJ,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;gBACzB;oBACI,GAAG,IAAI,CAAC,eAAe;oBACvB,IAAI,EAAE,cAAc,CAAC,cAAc;oBACnC,IAAI,EAAE,CAAC,GAAG,CAAC;iBACd;aACJ,CAAC,CAAC;QACP,CAAC;IACL,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,KAAa;QACtC,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,SAAS,CAC9D,GAAG,EACH,KAAK,CACR,CAAC;QAEF,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACZ,MAAM,IAAI,CAAC,sBAAsB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QAC7D,CAAC;aAAM,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC;YACnB,MAAM,IAAI,CAAC,sBAAsB,CAAC,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC;QAC7D,CAAC;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;IAEO,KAAK,CAAC,kBAAkB;QAC5B,MAAM,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC;YACzB,GAAG,IAAI,CAAC,eAAe;YACvB,IAAI,EAAE,cAAc,CAAC,YAAY;SACpC,CAAC,CAAC;IACP,CAAC;IAED,KAAK,CAAC,KAAK;QACP,MAAM,IAAI,CAAC,2BAA2B,CAAC,KAAK,EAAE,CAAC;QAC/C,MAAM,IAAI,CAAC,kBAAkB,EAAE,CAAC;IACpC,CAAC;CACJ"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export class WithNamespaceStorageAdapter {
|
|
2
|
+
storageAdapter;
|
|
3
|
+
namespace;
|
|
4
|
+
constructor(storageAdapter, namespace) {
|
|
5
|
+
this.storageAdapter = storageAdapter;
|
|
6
|
+
this.namespace = namespace;
|
|
7
|
+
}
|
|
8
|
+
withNamespace(key) {
|
|
9
|
+
return `${this.namespace}${key}`;
|
|
10
|
+
}
|
|
11
|
+
withNamespaceArray(keys) {
|
|
12
|
+
return keys.map((key) => this.withNamespace(key));
|
|
13
|
+
}
|
|
14
|
+
withNamespaceObject(object) {
|
|
15
|
+
return Object.fromEntries(Object.entries(object).map(([key, value]) => {
|
|
16
|
+
return [this.withNamespace(key), value];
|
|
17
|
+
}));
|
|
18
|
+
}
|
|
19
|
+
withoutNamespace(key) {
|
|
20
|
+
return key.slice(this.namespace.length);
|
|
21
|
+
}
|
|
22
|
+
withoutNamespaceObject(object) {
|
|
23
|
+
return Object.fromEntries(Object.entries(object).map(([key, value]) => {
|
|
24
|
+
return [this.withoutNamespace(key), value];
|
|
25
|
+
}));
|
|
26
|
+
}
|
|
27
|
+
async getMany(keys) {
|
|
28
|
+
return this.withoutNamespaceObject(await this.storageAdapter.getMany(this.withNamespaceArray(keys)));
|
|
29
|
+
}
|
|
30
|
+
async addMany(values) {
|
|
31
|
+
return this.withoutNamespaceObject(await this.storageAdapter.addMany(this.withNamespaceObject(values)));
|
|
32
|
+
}
|
|
33
|
+
async updateMany(values) {
|
|
34
|
+
return this.withoutNamespaceObject(await this.storageAdapter.updateMany(this.withNamespaceObject(values)));
|
|
35
|
+
}
|
|
36
|
+
async putMany(values) {
|
|
37
|
+
return this.withoutNamespaceObject(await this.storageAdapter.putMany(this.withNamespaceObject(values)));
|
|
38
|
+
}
|
|
39
|
+
async removeMany(keys) {
|
|
40
|
+
return this.withoutNamespaceObject(await this.storageAdapter.removeMany(this.withNamespaceArray(keys)));
|
|
41
|
+
}
|
|
42
|
+
async increment(key, value) {
|
|
43
|
+
return await this.storageAdapter.increment(this.withNamespace(key), value);
|
|
44
|
+
}
|
|
45
|
+
async clear() {
|
|
46
|
+
await this.storageAdapter.clear(this.namespace);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=with-namespace-storage-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-namespace-storage-adapter.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/with-namespace-storage-adapter.ts"],"names":[],"mappings":"AASA,MAAM,OAAO,2BAA2B;IAIf;IACA;IAFrB,YACqB,cAAsC,EACtC,SAAiB;QADjB,mBAAc,GAAd,cAAc,CAAwB;QACtC,cAAS,GAAT,SAAS,CAAQ;IACnC,CAAC;IAEI,aAAa,CAAC,GAAW;QAC7B,OAAO,GAAG,IAAI,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC;IACrC,CAAC;IAEO,kBAAkB,CAAC,IAAc;QACrC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;IACtD,CAAC;IAEO,mBAAmB,CACvB,MAA8B;QAE9B,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACxC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAC5C,CAAC,CAAC,CACL,CAAC;IACN,CAAC;IAEO,gBAAgB,CAAC,GAAW;QAChC,OAAO,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;IAEO,sBAAsB,CAC1B,MAA8B;QAE9B,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE;YACxC,OAAO,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC;QAC/C,CAAC,CAAC,CACL,CAAC;I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 -0,0 +1,44 @@
|
|
|
1
|
+
export class WithValidationStorageAdapter {
|
|
2
|
+
storageAdapter;
|
|
3
|
+
validator;
|
|
4
|
+
constructor(storageAdapter, validator) {
|
|
5
|
+
this.storageAdapter = storageAdapter;
|
|
6
|
+
this.validator = validator;
|
|
7
|
+
}
|
|
8
|
+
validateOutput(values) {
|
|
9
|
+
return Object.fromEntries(Object.entries(values).map(([key, value]) => {
|
|
10
|
+
if (value === null) {
|
|
11
|
+
return [key, value];
|
|
12
|
+
}
|
|
13
|
+
return [key, this.validator(value)];
|
|
14
|
+
}));
|
|
15
|
+
}
|
|
16
|
+
validateInput(values) {
|
|
17
|
+
return Object.fromEntries(Object.entries(values).map(([key, value]) => [
|
|
18
|
+
key,
|
|
19
|
+
this.validator(value),
|
|
20
|
+
]));
|
|
21
|
+
}
|
|
22
|
+
async getMany(keys) {
|
|
23
|
+
return this.validateOutput(await this.storageAdapter.getMany(keys));
|
|
24
|
+
}
|
|
25
|
+
async addMany(values) {
|
|
26
|
+
return await this.storageAdapter.addMany(this.validateInput(values));
|
|
27
|
+
}
|
|
28
|
+
async updateMany(values) {
|
|
29
|
+
return await this.storageAdapter.updateMany(this.validateInput(values));
|
|
30
|
+
}
|
|
31
|
+
async putMany(values) {
|
|
32
|
+
return await this.storageAdapter.putMany(this.validateInput(values));
|
|
33
|
+
}
|
|
34
|
+
async removeMany(keys) {
|
|
35
|
+
return await this.storageAdapter.removeMany(keys);
|
|
36
|
+
}
|
|
37
|
+
async increment(key, value) {
|
|
38
|
+
return await this.storageAdapter.increment(key, this.validator(value));
|
|
39
|
+
}
|
|
40
|
+
async clear(prefix) {
|
|
41
|
+
await this.storageAdapter.clear(prefix);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=with-validation-storage-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"with-validation-storage-adapter.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/with-validation-storage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CAAC,MAAM,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED,KAAK,CAAC,OAAO,CACT,MAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IACzE,CAAC;IAED,KAAK,CAAC,UAAU,CACZ,IAAa;QAEb,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,KAAa;QACtC,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,SAAS,CACtC,GAAG,EACH,IAAI,CAAC,SAAS,CAAC,KAAK,CAAW,CAClC,CAAC;IACN,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,MAAc;QACtB,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../src/utilities/_module.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../src/utilities/_module.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from "../../utilities/async/_shared";
|
|
2
|
+
export * from "../../utilities/async/abortable/_module";
|
|
3
|
+
export * from "../../utilities/async/abortable-iterable/_module";
|
|
4
|
+
export * from "../../utilities/async/delay/_module";
|
|
5
|
+
export * from "../../utilities/async/delay-iterable/_module";
|
|
6
|
+
export * from "../../utilities/async/lazy-promise/_module";
|
|
7
|
+
export * from "../../utilities/async/retry/_module";
|
|
8
|
+
export { retryIterable as unstable_retryIterable } from "../../utilities/async/retry-iterable/_module";
|
|
9
|
+
export * from "../../utilities/async/timeout/_module";
|
|
10
|
+
export * from "../../utilities/async/timeout-iterable/_module";
|
|
11
|
+
//# sourceMappingURL=_module.js.map
|