@daiso-tech/core 0.7.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 +2 -0
- 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/implementations/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-error-handler-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/chunk-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/collapse-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/entries-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/merge-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/repeat-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/reverse-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/shuffle-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/skip-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/slice-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/sliding-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/split-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/take-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/_shared/zip-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/cjs/collection/implementations/list-collection/list-collection.js +2 -1
- package/dist/cjs/collection/implementations/list-collection/list-collection.js.map +1 -1
- package/dist/cjs/{utilities/async/backof-policies/exponential-backoff-policy → event-bus/contracts}/_module.js +4 -1
- 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/{serializer → event-bus/implementations}/_module.js +5 -5
- 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/{utilities/async-iterable/timeout-iterable → event-bus/implementations/memory-event-bus-adapter}/_module.js +1 -1
- 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/{utilities/async-iterable/abortable-iterable → event-bus/implementations/redis-event-bus-adapter}/_module.js +1 -1
- 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/storage/contracts/_module.js +2 -0
- package/dist/cjs/storage/contracts/_module.js.map +1 -1
- 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/implementations/_shared/test-utilities/storage-adapter.test-suite.js +292 -4
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js.map +1 -1
- package/dist/cjs/storage/implementations/storage/_module.js +1 -0
- package/dist/cjs/storage/implementations/storage/_module.js.map +1 -1
- 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 +67 -21
- package/dist/cjs/storage/implementations/storage/storage.js.map +1 -1
- 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 +0 -3
- package/dist/cjs/storage/implementations/storage/with-namespace-storage-adapter.js.map +1 -1
- package/dist/cjs/storage/implementations/storage/with-validation-storage-adapter.js.map +1 -1
- package/dist/cjs/utilities/_module.js +1 -2
- package/dist/cjs/utilities/_module.js.map +1 -1
- package/dist/cjs/utilities/async/_module.js +6 -1
- package/dist/cjs/utilities/async/_module.js.map +1 -1
- package/dist/cjs/utilities/{async-iterable/retry-iterable → async/abortable-iterable}/_module.js +1 -1
- package/dist/cjs/utilities/async/abortable-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async/abortable-iterable/abortable-iterable.js.map +1 -0
- package/dist/cjs/utilities/{async-iterable → async}/delay-iterable/_module.js +1 -1
- package/dist/cjs/utilities/async/delay-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async/delay-iterable/delay-iterable.js.map +1 -0
- package/dist/cjs/utilities/async/retry/retry.js +1 -1
- package/dist/cjs/utilities/async/retry/retry.js.map +1 -1
- 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.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-iterable → async}/timeout-iterable/timeout-iterable.js +1 -1
- 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/{async/backof-policies → backof-policies}/constant-backoff-policy/constant-backoff-policy.js +2 -2
- 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/{async/backof-policies → backof-policies}/exponential-backoff-policy/exponential-backoff-policy.js +2 -2
- 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/{async/backof-policies → backof-policies}/linear-backoff-policy/linear-backoff-policy.js +2 -2
- 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/{async/backof-policies → backof-policies}/polynomial-backoff-policy/polynomial-backoff-policy.js +2 -2
- 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.map +1 -1
- package/dist/cjs/utilities/validation/_module.js.map +1 -1
- package/dist/esm/_module.js +2 -0
- 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/implementations/async-iterable-collection/_shared/async-chunk-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-error-handler-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-map-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-split-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-update-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-when-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/chunk-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/chunk-while-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/collapse-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/count-by-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/cross-join-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/entries-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/filter-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/flat-map-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/group-by-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/insert-after-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/insert-before-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/map-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/merge-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/pad-end-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/pad-start-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/partion-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/repeat-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/reverse-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/shuffle-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/skip-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/skip-until-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/slice-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/sliding-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/sort-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/split-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/take-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/take-until-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/tap-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/unique-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/update-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/when-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/_shared/zip-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/esm/collection/implementations/list-collection/list-collection.js +2 -1
- package/dist/esm/collection/implementations/list-collection/list-collection.js.map +1 -1
- 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/storage/contracts/_module.js +2 -0
- package/dist/esm/storage/contracts/_module.js.map +1 -1
- 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/implementations/_shared/test-utilities/storage-adapter.test-suite.js +292 -4
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js.map +1 -1
- package/dist/esm/storage/implementations/storage/_module.js +1 -0
- package/dist/esm/storage/implementations/storage/_module.js.map +1 -1
- 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 +69 -23
- package/dist/esm/storage/implementations/storage/storage.js.map +1 -1
- 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 +0 -3
- package/dist/esm/storage/implementations/storage/with-namespace-storage-adapter.js.map +1 -1
- package/dist/esm/storage/implementations/storage/with-validation-storage-adapter.js.map +1 -1
- package/dist/esm/utilities/_module.js +1 -2
- package/dist/esm/utilities/_module.js.map +1 -1
- package/dist/esm/utilities/async/_module.js +4 -1
- package/dist/esm/utilities/async/_module.js.map +1 -1
- 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.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.map +1 -0
- package/dist/esm/utilities/async/retry/retry.js +1 -1
- package/dist/esm/utilities/async/retry/retry.js.map +1 -1
- 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.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-iterable → async}/timeout-iterable/timeout-iterable.js +1 -1
- 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/{async/backof-policies → backof-policies}/constant-backoff-policy/constant-backoff-policy.js +2 -2
- 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/{async/backof-policies → backof-policies}/exponential-backoff-policy/exponential-backoff-policy.js +2 -2
- 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/{async/backof-policies → backof-policies}/linear-backoff-policy/linear-backoff-policy.js +2 -2
- 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/{async/backof-policies → backof-policies}/polynomial-backoff-policy/polynomial-backoff-policy.js +2 -2
- 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.map +1 -1
- package/dist/esm/utilities/validation/_module.js.map +1 -1
- package/dist/types/_module.d.ts +2 -0
- package/dist/types/_shared/types.d.ts +1 -1
- package/dist/types/_shared/utilities.d.ts +8 -0
- package/dist/types/collection/contracts/async-collection.contract.d.ts +9 -8
- package/dist/types/collection/contracts/collection.contract.d.ts +8 -7
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-chunk-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-error-handler-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-map-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-split-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-take-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-update-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-when-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +10 -9
- package/dist/types/collection/implementations/iterable-collection/_shared/chunk-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/chunk-while-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/collapse-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/count-by-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/cross-join-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/entries-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/filter-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/flat-map-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/group-by-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/insert-after-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/insert-before-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/map-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/merge-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/pad-end-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/pad-start-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/partion-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/repeat-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/reverse-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/shuffle-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/skip-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/skip-until-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/slice-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/sliding-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/sort-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/split-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/take-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/take-until-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/tap-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/unique-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/update-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/when-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/zip-iterable.d.ts +3 -0
- package/dist/types/collection/implementations/iterable-collection/iterable-collection.d.ts +7 -7
- package/dist/types/collection/implementations/list-collection/list-collection.d.ts +7 -7
- 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/storage/contracts/_module.d.ts +2 -0
- package/dist/types/storage/contracts/storage-adapter.contract.d.ts +11 -6
- 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 +51 -26
- package/dist/types/storage/implementations/storage/_module.d.ts +1 -0
- package/dist/types/storage/implementations/storage/storage-manager.d.ts +23 -0
- package/dist/types/storage/implementations/storage/storage.d.ts +81 -8
- 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 +0 -1
- package/dist/types/storage/implementations/storage/with-validation-storage-adapter.d.ts +3 -0
- package/dist/types/utilities/_module.d.ts +1 -2
- package/dist/types/utilities/async/_module.d.ts +4 -1
- package/dist/types/utilities/async/_shared.d.ts +6 -6
- package/dist/types/utilities/async/abortable/abortable.d.ts +2 -2
- package/dist/types/utilities/async/abortable-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/{async-iterable → async}/abortable-iterable/abortable-iterable.d.ts +2 -2
- package/dist/types/utilities/async/delay/delay.d.ts +2 -2
- package/dist/types/utilities/async/delay-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/{async-iterable → async}/delay-iterable/delay-iterable.d.ts +2 -2
- package/dist/types/utilities/async/lazy-promise/lazy-promise.d.ts +3 -3
- package/dist/types/utilities/async/retry/retry.d.ts +7 -4
- package/dist/types/utilities/async/retry-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/{async-iterable → async}/retry-iterable/retry-iterable.d.ts +1 -1
- package/dist/types/utilities/async/timeout/timeout.d.ts +2 -2
- package/dist/types/utilities/async/timeout-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/{async-iterable → async}/timeout-iterable/timeout-iterable.d.ts +2 -2
- package/dist/types/utilities/backof-policies/_module.d.ts +5 -0
- package/dist/types/utilities/{async/backof-policies → backof-policies}/_shared.d.ts +2 -2
- package/dist/types/utilities/backof-policies/constant-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/{async/backof-policies → backof-policies}/constant-backoff-policy/constant-backoff-policy.d.ts +3 -3
- package/dist/types/utilities/backof-policies/exponential-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/{async/backof-policies → backof-policies}/exponential-backoff-policy/exponential-backoff-policy.d.ts +3 -3
- package/dist/types/utilities/backof-policies/linear-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/{async/backof-policies → backof-policies}/linear-backoff-policy/linear-backoff-policy.d.ts +3 -3
- package/dist/types/utilities/backof-policies/polynomial-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/{async/backof-policies → backof-policies}/polynomial-backoff-policy/polynomial-backoff-policy.d.ts +3 -3
- package/dist/types/utilities/time-span/time-span.d.ts +2 -1
- package/dist/types/utilities/validation/_module.d.ts +21 -1
- package/package.json +1 -1
- package/dist/cjs/serializer/_module.js.map +0 -1
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite.js +0 -300
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite.js.map +0 -1
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js +0 -1208
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/_module.js +0 -21
- package/dist/cjs/utilities/async/backof-policies/_module.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/_shared.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/constant-backoff-policy/_module.js +0 -18
- package/dist/cjs/utilities/async/backof-policies/constant-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/exponential-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/linear-backoff-policy/_module.js +0 -18
- package/dist/cjs/utilities/async/backof-policies/linear-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/polynomial-backoff-policy/_module.js +0 -18
- package/dist/cjs/utilities/async/backof-policies/polynomial-backoff-policy/_module.js.map +0 -1
- package/dist/cjs/utilities/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/_module.js +0 -23
- package/dist/cjs/utilities/async-iterable/_module.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/abortable-iterable/_module.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/abortable-iterable/abortable-iterable.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/delay-iterable/_module.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/delay-iterable/delay-iterable.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/retry-iterable/_module.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/retry-iterable/retry-iterable.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/timeout-iterable/_module.js.map +0 -1
- package/dist/cjs/utilities/async-iterable/timeout-iterable/timeout-iterable.js.map +0 -1
- package/dist/esm/serializer/_module.js +0 -6
- package/dist/esm/serializer/_module.js.map +0 -1
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite.js +0 -297
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite.js.map +0 -1
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js +0 -1205
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/_module.js +0 -5
- package/dist/esm/utilities/async/backof-policies/_module.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/_shared.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/constant-backoff-policy/_module.js +0 -2
- package/dist/esm/utilities/async/backof-policies/constant-backoff-policy/_module.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/exponential-backoff-policy/_module.js +0 -2
- package/dist/esm/utilities/async/backof-policies/exponential-backoff-policy/_module.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/linear-backoff-policy/_module.js +0 -2
- package/dist/esm/utilities/async/backof-policies/linear-backoff-policy/_module.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/polynomial-backoff-policy/_module.js +0 -2
- package/dist/esm/utilities/async/backof-policies/polynomial-backoff-policy/_module.js.map +0 -1
- package/dist/esm/utilities/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js.map +0 -1
- package/dist/esm/utilities/async-iterable/_module.js +0 -5
- package/dist/esm/utilities/async-iterable/_module.js.map +0 -1
- package/dist/esm/utilities/async-iterable/abortable-iterable/_module.js +0 -2
- package/dist/esm/utilities/async-iterable/abortable-iterable/_module.js.map +0 -1
- package/dist/esm/utilities/async-iterable/abortable-iterable/abortable-iterable.js.map +0 -1
- package/dist/esm/utilities/async-iterable/delay-iterable/_module.js +0 -2
- package/dist/esm/utilities/async-iterable/delay-iterable/_module.js.map +0 -1
- package/dist/esm/utilities/async-iterable/delay-iterable/delay-iterable.js.map +0 -1
- package/dist/esm/utilities/async-iterable/retry-iterable/_module.js +0 -2
- package/dist/esm/utilities/async-iterable/retry-iterable/_module.js.map +0 -1
- package/dist/esm/utilities/async-iterable/retry-iterable/retry-iterable.js.map +0 -1
- package/dist/esm/utilities/async-iterable/timeout-iterable/_module.js +0 -2
- package/dist/esm/utilities/async-iterable/timeout-iterable/_module.js.map +0 -1
- package/dist/esm/utilities/async-iterable/timeout-iterable/timeout-iterable.js.map +0 -1
- package/dist/types/serializer/_module.d.ts +0 -5
- package/dist/types/storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite.d.ts +0 -20
- package/dist/types/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.d.ts +0 -20
- package/dist/types/utilities/async/backof-policies/_module.d.ts +0 -5
- package/dist/types/utilities/async/backof-policies/constant-backoff-policy/_module.d.ts +0 -1
- package/dist/types/utilities/async/backof-policies/exponential-backoff-policy/_module.d.ts +0 -1
- package/dist/types/utilities/async/backof-policies/linear-backoff-policy/_module.d.ts +0 -1
- package/dist/types/utilities/async/backof-policies/polynomial-backoff-policy/_module.d.ts +0 -1
- package/dist/types/utilities/async-iterable/_module.d.ts +0 -4
- package/dist/types/utilities/async-iterable/abortable-iterable/_module.d.ts +0 -1
- package/dist/types/utilities/async-iterable/delay-iterable/_module.d.ts +0 -1
- package/dist/types/utilities/async-iterable/retry-iterable/_module.d.ts +0 -1
- package/dist/types/utilities/async-iterable/timeout-iterable/_module.d.ts +0 -1
- /package/dist/cjs/utilities/{async-iterable → async}/abortable-iterable/abortable-iterable.js +0 -0
- /package/dist/cjs/utilities/{async-iterable → async}/delay-iterable/delay-iterable.js +0 -0
- /package/dist/cjs/utilities/{async-iterable → async}/retry-iterable/retry-iterable.js +0 -0
- /package/dist/cjs/utilities/{async/backof-policies → backof-policies}/_shared.js +0 -0
- /package/dist/esm/utilities/{async-iterable → async}/abortable-iterable/abortable-iterable.js +0 -0
- /package/dist/esm/utilities/{async-iterable → async}/delay-iterable/delay-iterable.js +0 -0
- /package/dist/esm/utilities/{async-iterable → async}/retry-iterable/retry-iterable.js +0 -0
- /package/dist/esm/utilities/{async/backof-policies → backof-policies}/_shared.js +0 -0
package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js
CHANGED
|
@@ -1,10 +1,298 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.storageTestSuite = storageTestSuite;
|
|
4
|
-
const
|
|
5
|
-
const storage_adapter_api_test_suite_1 = require("../../../../storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite");
|
|
4
|
+
const _module_1 = require("../../../../storage/contracts/_module");
|
|
6
5
|
function storageTestSuite(settings) {
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const { expect, test, createAdapter, describe, beforeEach } = settings;
|
|
7
|
+
let storageAdapter;
|
|
8
|
+
beforeEach(async () => {
|
|
9
|
+
storageAdapter = await createAdapter();
|
|
10
|
+
});
|
|
11
|
+
describe("method: getMany", () => {
|
|
12
|
+
test("Should return only values when all keys exists", async () => {
|
|
13
|
+
await storageAdapter.addMany({
|
|
14
|
+
a: 1,
|
|
15
|
+
b: 1,
|
|
16
|
+
});
|
|
17
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
18
|
+
a: 1,
|
|
19
|
+
b: 1,
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
test("Should return only null when all keys doesnt exists", async () => {
|
|
23
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
24
|
+
a: null,
|
|
25
|
+
b: null,
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
test("Should return values and null when some keys exists", async () => {
|
|
29
|
+
await storageAdapter.addMany({ a: 1 });
|
|
30
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
31
|
+
a: 1,
|
|
32
|
+
b: null,
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
describe("method: addMany", () => {
|
|
37
|
+
test("Should return only true when all keys doesnt exists", async () => {
|
|
38
|
+
expect(await storageAdapter.addMany({
|
|
39
|
+
a: 1,
|
|
40
|
+
b: 1,
|
|
41
|
+
})).toEqual({
|
|
42
|
+
a: true,
|
|
43
|
+
b: true,
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
test("Should persist values when all keys doesnt exist", async () => {
|
|
47
|
+
await storageAdapter.addMany({
|
|
48
|
+
a: 1,
|
|
49
|
+
b: 1,
|
|
50
|
+
});
|
|
51
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
52
|
+
a: 1,
|
|
53
|
+
b: 1,
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
test("Should return only false when all keys exists", async () => {
|
|
57
|
+
await storageAdapter.addMany({
|
|
58
|
+
a: 1,
|
|
59
|
+
b: 1,
|
|
60
|
+
});
|
|
61
|
+
expect(await storageAdapter.addMany({
|
|
62
|
+
a: 1,
|
|
63
|
+
b: 1,
|
|
64
|
+
})).toEqual({
|
|
65
|
+
a: false,
|
|
66
|
+
b: false,
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
test("Should not persist values when key exist", async () => {
|
|
70
|
+
await storageAdapter.addMany({
|
|
71
|
+
a: 1,
|
|
72
|
+
b: 1,
|
|
73
|
+
});
|
|
74
|
+
await storageAdapter.addMany({
|
|
75
|
+
a: 2,
|
|
76
|
+
b: 2,
|
|
77
|
+
});
|
|
78
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
79
|
+
a: 1,
|
|
80
|
+
b: 1,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
test("Should return true and false when some keys exists", async () => {
|
|
84
|
+
await storageAdapter.addMany({ a: 1 });
|
|
85
|
+
expect(await storageAdapter.addMany({
|
|
86
|
+
a: 1,
|
|
87
|
+
b: 1,
|
|
88
|
+
})).toEqual({
|
|
89
|
+
a: false,
|
|
90
|
+
b: true,
|
|
91
|
+
});
|
|
92
|
+
});
|
|
93
|
+
test("Should persist and not persist values when some keys exists", async () => {
|
|
94
|
+
await storageAdapter.addMany({
|
|
95
|
+
a: 1,
|
|
96
|
+
});
|
|
97
|
+
await storageAdapter.addMany({
|
|
98
|
+
a: 2,
|
|
99
|
+
b: 2,
|
|
100
|
+
});
|
|
101
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
102
|
+
a: 1,
|
|
103
|
+
b: 2,
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
});
|
|
107
|
+
describe("method: updateMany", () => {
|
|
108
|
+
test("Should return only true when all keys exists", async () => {
|
|
109
|
+
await storageAdapter.addMany({
|
|
110
|
+
a: 1,
|
|
111
|
+
b: 1,
|
|
112
|
+
});
|
|
113
|
+
expect(await storageAdapter.updateMany({ a: -1, b: -1 })).toEqual({
|
|
114
|
+
a: true,
|
|
115
|
+
b: true,
|
|
116
|
+
});
|
|
117
|
+
});
|
|
118
|
+
test("Should persist values when all keys exist", async () => {
|
|
119
|
+
await storageAdapter.addMany({
|
|
120
|
+
a: 1,
|
|
121
|
+
b: 1,
|
|
122
|
+
});
|
|
123
|
+
await storageAdapter.updateMany({ a: -1, b: -1 });
|
|
124
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
125
|
+
a: -1,
|
|
126
|
+
b: -1,
|
|
127
|
+
});
|
|
128
|
+
});
|
|
129
|
+
test("Should return only false when all keys doesnt exists", async () => {
|
|
130
|
+
expect(await storageAdapter.updateMany({ a: -1, b: -1 })).toEqual({
|
|
131
|
+
a: false,
|
|
132
|
+
b: false,
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
test("Should not persist values when all keys doesnt exist", async () => {
|
|
136
|
+
await storageAdapter.updateMany({ a: -1, b: -1 });
|
|
137
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
138
|
+
a: null,
|
|
139
|
+
b: null,
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
test("Should return true and false when some keys exists", async () => {
|
|
143
|
+
await storageAdapter.addMany({ a: 1 });
|
|
144
|
+
expect(await storageAdapter.updateMany({ a: -1, b: -1 })).toEqual({
|
|
145
|
+
a: true,
|
|
146
|
+
b: false,
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
test("Should persist and not persist values when some keys exists", async () => {
|
|
150
|
+
await storageAdapter.addMany({ a: 1 });
|
|
151
|
+
await storageAdapter.updateMany({ a: -1, b: -1 });
|
|
152
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
153
|
+
a: -1,
|
|
154
|
+
b: null,
|
|
155
|
+
});
|
|
156
|
+
});
|
|
157
|
+
});
|
|
158
|
+
describe("method: putMany", () => {
|
|
159
|
+
test("Should return only true when all keys exists", async () => {
|
|
160
|
+
await storageAdapter.addMany({
|
|
161
|
+
a: 1,
|
|
162
|
+
b: 1,
|
|
163
|
+
});
|
|
164
|
+
expect(await storageAdapter.putMany({ a: -1, b: -1 })).toEqual({
|
|
165
|
+
a: true,
|
|
166
|
+
b: true,
|
|
167
|
+
});
|
|
168
|
+
});
|
|
169
|
+
test("Should persist values when all keys exist", async () => {
|
|
170
|
+
await storageAdapter.addMany({
|
|
171
|
+
a: 1,
|
|
172
|
+
b: 1,
|
|
173
|
+
});
|
|
174
|
+
await storageAdapter.putMany({ a: -1, b: -1 });
|
|
175
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
176
|
+
a: -1,
|
|
177
|
+
b: -1,
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
test("Should return only false when all keys doesnt exists", async () => {
|
|
181
|
+
expect(await storageAdapter.putMany({ a: -1, b: -1 })).toEqual({
|
|
182
|
+
a: false,
|
|
183
|
+
b: false,
|
|
184
|
+
});
|
|
185
|
+
});
|
|
186
|
+
test("Should persist values when all keys doesnt exist", async () => {
|
|
187
|
+
await storageAdapter.putMany({ a: -1, b: -1 });
|
|
188
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
189
|
+
a: -1,
|
|
190
|
+
b: -1,
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
test("Should return true and false when some keys exists", async () => {
|
|
194
|
+
await storageAdapter.addMany({ a: 1 });
|
|
195
|
+
expect(await storageAdapter.putMany({ a: -1, b: -1 })).toEqual({
|
|
196
|
+
a: true,
|
|
197
|
+
b: false,
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
test("Should persist all values when some keys exists", async () => {
|
|
201
|
+
await storageAdapter.addMany({ a: 1 });
|
|
202
|
+
await storageAdapter.putMany({ a: -1, b: -1 });
|
|
203
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
204
|
+
a: -1,
|
|
205
|
+
b: -1,
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
});
|
|
209
|
+
describe("method: removeMany", () => {
|
|
210
|
+
test("Should return only true when all keys exists", async () => {
|
|
211
|
+
await storageAdapter.addMany({
|
|
212
|
+
a: 1,
|
|
213
|
+
b: 1,
|
|
214
|
+
});
|
|
215
|
+
expect(await storageAdapter.removeMany(["a", "b"])).toEqual({
|
|
216
|
+
a: true,
|
|
217
|
+
b: true,
|
|
218
|
+
});
|
|
219
|
+
});
|
|
220
|
+
test("Should persist values when all keys exist", async () => {
|
|
221
|
+
await storageAdapter.addMany({
|
|
222
|
+
a: 1,
|
|
223
|
+
b: 1,
|
|
224
|
+
});
|
|
225
|
+
await storageAdapter.removeMany(["a", "b"]);
|
|
226
|
+
expect(await storageAdapter.getMany(["a", "b"])).toEqual({
|
|
227
|
+
a: null,
|
|
228
|
+
b: null,
|
|
229
|
+
});
|
|
230
|
+
});
|
|
231
|
+
test("Should return only false when all keys doesnt exists", async () => {
|
|
232
|
+
expect(await storageAdapter.removeMany(["a", "b"])).toEqual({
|
|
233
|
+
a: false,
|
|
234
|
+
b: false,
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
test("Should return true and false when some keys exists", async () => {
|
|
238
|
+
await storageAdapter.addMany({ a: 1 });
|
|
239
|
+
expect(await storageAdapter.removeMany(["a", "b"])).toEqual({
|
|
240
|
+
a: true,
|
|
241
|
+
b: false,
|
|
242
|
+
});
|
|
243
|
+
});
|
|
244
|
+
});
|
|
245
|
+
describe("method: increment", () => {
|
|
246
|
+
test("Should return true when key exists", async () => {
|
|
247
|
+
await storageAdapter.addMany({ a: 1 });
|
|
248
|
+
expect(await storageAdapter.increment("a", 1)).toBe(true);
|
|
249
|
+
});
|
|
250
|
+
test("Should persist increment when key exists", async () => {
|
|
251
|
+
await storageAdapter.addMany({ a: 1 });
|
|
252
|
+
await storageAdapter.increment("a", 1);
|
|
253
|
+
expect(await storageAdapter.getMany(["a"])).toEqual({ a: 2 });
|
|
254
|
+
});
|
|
255
|
+
test("Should return false when key doesnt exists", async () => {
|
|
256
|
+
expect(await storageAdapter.increment("a", 1)).toBe(false);
|
|
257
|
+
});
|
|
258
|
+
test("Should not persist increment when key doesnt exists", async () => {
|
|
259
|
+
await storageAdapter.increment("a", 1);
|
|
260
|
+
expect(await storageAdapter.getMany(["a"])).toEqual({
|
|
261
|
+
a: null,
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
test("Should throw TypeStorageError key value is not number type", async () => {
|
|
265
|
+
await storageAdapter.addMany({ a: "str" });
|
|
266
|
+
await expect(storageAdapter.increment("a", 1)).rejects.toBeInstanceOf(_module_1.TypeStorageError);
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
describe("method: clear", () => {
|
|
270
|
+
test("Should remove all keys", async () => {
|
|
271
|
+
await storageAdapter.addMany({
|
|
272
|
+
"@a/a": 1,
|
|
273
|
+
"@a/b": 2,
|
|
274
|
+
"@a/c": 3,
|
|
275
|
+
"@b/d": 4,
|
|
276
|
+
"@b/e": 5,
|
|
277
|
+
"@b/f": 6,
|
|
278
|
+
});
|
|
279
|
+
await storageAdapter.clear("@a/");
|
|
280
|
+
expect(await storageAdapter.getMany([
|
|
281
|
+
"@a/a",
|
|
282
|
+
"@a/b",
|
|
283
|
+
"@a/c",
|
|
284
|
+
"@b/d",
|
|
285
|
+
"@b/e",
|
|
286
|
+
"@b/f",
|
|
287
|
+
])).toEqual({
|
|
288
|
+
"@a/a": null,
|
|
289
|
+
"@a/b": null,
|
|
290
|
+
"@a/c": null,
|
|
291
|
+
"@b/d": 4,
|
|
292
|
+
"@b/e": 5,
|
|
293
|
+
"@b/f": 6,
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
});
|
|
9
297
|
}
|
|
10
298
|
//# sourceMappingURL=storage-adapter.test-suite.js.map
|
package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-adapter.test-suite.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.ts"],"names":[],"mappings":";;AA4BA,4CAKC;AArBD,wIAAiI;AACjI,oIAA6H;AAe7H,SAAgB,gBAAgB,CAC5B,QAAyC;IAEzC,IAAA,2DAA0B,EAAC,QAAQ,CAAC,CAAC;IACrC,IAAA,+DAA4B,EAAC,QAAQ,CAAC,CAAC;AAC3C,CAAC"}
|
|
1
|
+
{"version":3,"file":"storage-adapter.test-suite.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.ts"],"names":[],"mappings":";;AA6BA,4CAkTC;AArUD,yDAGqC;AAgBrC,SAAgB,gBAAgB,CAC5B,QAAyC;IAEzC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,aAAa,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,QAAQ,CAAC;IAEvE,IAAI,cAAoC,CAAC;IACzC,UAAU,CAAC,KAAK,IAAI,EAAE;QAClB,cAAc,GAAG,MAAM,aAAa,EAAE,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;QAC7B,IAAI,CAAC,gDAAgD,EAAE,KAAK,IAAI,EAAE;YAC9D,MAAM,cAAc,CAAC,OAAO,CAAC;gBACzB,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP,CAAC,CAAC;YACH,MAAM,CAAC,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC;gBACrD,CAAC,EAAE,CAAC;gBACJ,CAAC,EAAE,CAAC;aACP,CAAC,CAAC;QACP,CAAC,CAAC,CAAC;QACH,IAAI,CAAC,qDAAqD,EAAE,KAAK,IAAI,EAAE;YACnE,MAAM,CAAC,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,C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C,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -15,4 +15,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("../../../storage/implementations/storage/storage"), exports);
|
|
18
|
+
__exportStar(require("../../../storage/implementations/storage/storage-manager"), exports);
|
|
18
19
|
//# sourceMappingURL=_module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/_module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4EAA0D"}
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/_module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4EAA0D;AAC1D,oFAAkE"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StorageManager = void 0;
|
|
4
|
+
const storage_1 = require("../../../storage/implementations/storage/storage");
|
|
5
|
+
class StorageManager {
|
|
6
|
+
adapters;
|
|
7
|
+
defaultAdapter;
|
|
8
|
+
adapterSettings;
|
|
9
|
+
constructor(settings) {
|
|
10
|
+
const { adapters, defaultAdapter, adapterSettings = {} } = settings;
|
|
11
|
+
this.adapters = adapters;
|
|
12
|
+
this.defaultAdapter = defaultAdapter;
|
|
13
|
+
this.adapterSettings = adapterSettings;
|
|
14
|
+
}
|
|
15
|
+
use(adapterSettings = {}) {
|
|
16
|
+
const { adapter = this.defaultAdapter, validator } = adapterSettings;
|
|
17
|
+
return new storage_1.Storage(this.adapters[adapter], {
|
|
18
|
+
...this.adapterSettings,
|
|
19
|
+
validator,
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.StorageManager = StorageManager;
|
|
24
|
+
//# sourceMappingURL=storage-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storage-manager.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/storage-manager.ts"],"names":[],"mappings":";;;AAUA,uEAGmD;AAgBnD,MAAa,cAAc;IAGN,QAAQ,CAA8C;IACtD,cAAc,CAAY;IAE1B,eAAe,CAA0C;IAE1E,YAAY,QAA2C;QACnD,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,GAAG,EAAE,EAAE,GAAG,QAAQ,CAAC;QACpE,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,cAAc,GAAG,cAAc,CAAC;QACrC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;IAC3C,CAAC;IAED,GAAG,CACC,kBAA+D,EAAE;QAEjE,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC,cAAc,EAAE,SAAS,EAAE,GAAG,eAAe,CAAC;QACrE,OAAO,IAAI,iBAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE;YACvC,GAAG,IAAI,CAAC,eAAe;YACvB,SAAS;SACZ,CAAC,CAAC;IACP,CAAC;CACJ;AAxBD,wCAwBC"}
|
|
@@ -6,24 +6,55 @@ const with_namespace_storage_adapter_1 = require("../../../storage/implementatio
|
|
|
6
6
|
const utilities_1 = require("../../../_shared/utilities");
|
|
7
7
|
const _module_2 = require("../../../utilities/_module");
|
|
8
8
|
const with_validation_storage_adapter_1 = require("../../../storage/implementations/storage/with-validation-storage-adapter");
|
|
9
|
+
const _module_3 = require("../../../event-bus/implementations/_module");
|
|
10
|
+
const with_event_storage_adapter_1 = require("../../../storage/implementations/storage/with-event-storage-adapter");
|
|
9
11
|
class Storage {
|
|
10
12
|
storageAdapter;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
static EVENTS = _module_1.STORAGE_EVENTS;
|
|
14
|
+
withEventStorageAdapter;
|
|
15
|
+
namespace_;
|
|
16
|
+
validator;
|
|
17
|
+
eventBus;
|
|
18
|
+
constructor(storageAdapter, settings = {}) {
|
|
14
19
|
this.storageAdapter = storageAdapter;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
+
const { rootNamespace: namespace = "", validator = (v) => v, eventBus = new _module_3.EventBus(new _module_3.NoOpEventBusAdapter()), } = settings;
|
|
21
|
+
this.namespace_ = namespace;
|
|
22
|
+
this.validator = validator;
|
|
23
|
+
this.eventBus = eventBus.withNamespace(this.namespace_);
|
|
24
|
+
const withValidationStorageAdapter = new with_validation_storage_adapter_1.WithValidationStorageAdapter(this.storageAdapter, this.validator);
|
|
25
|
+
const withNamespaceStorageAdapter = new with_namespace_storage_adapter_1.WithNamespaceStorageAdapter(withValidationStorageAdapter, this.namespace_);
|
|
26
|
+
this.withEventStorageAdapter = new with_event_storage_adapter_1.WithEventStorageAdapter(withNamespaceStorageAdapter, this.eventBus, {
|
|
27
|
+
adapter: this.storageAdapter,
|
|
28
|
+
namespace: this.namespace_,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
addListener(event, listener) {
|
|
32
|
+
return this.eventBus.addListener(event, listener);
|
|
33
|
+
}
|
|
34
|
+
addListenerMany(events, listener) {
|
|
35
|
+
return this.eventBus.addListenerMany(events, listener);
|
|
36
|
+
}
|
|
37
|
+
removeListener(event, listener) {
|
|
38
|
+
return this.eventBus.removeListener(event, listener);
|
|
39
|
+
}
|
|
40
|
+
removeListenerMany(events, listener) {
|
|
41
|
+
return this.eventBus.removeListenerMany(events, listener);
|
|
42
|
+
}
|
|
43
|
+
subscribe(event, listener) {
|
|
44
|
+
return this.eventBus.subscribe(event, listener);
|
|
45
|
+
}
|
|
46
|
+
subscribeMany(events, listener) {
|
|
47
|
+
return this.eventBus.subscribeMany(events, listener);
|
|
20
48
|
}
|
|
21
|
-
namespace
|
|
49
|
+
withNamespace(namespace) {
|
|
22
50
|
return new Storage(this.storageAdapter, {
|
|
23
|
-
|
|
24
|
-
|
|
51
|
+
validator: this.validator,
|
|
52
|
+
rootNamespace: `${this.namespace_}${namespace}`,
|
|
25
53
|
});
|
|
26
54
|
}
|
|
55
|
+
getNamespace() {
|
|
56
|
+
return this.namespace_;
|
|
57
|
+
}
|
|
27
58
|
exists(key) {
|
|
28
59
|
return new _module_2.LazyPromise(async () => {
|
|
29
60
|
const { [key]: hasKey } = await this.existsMany([key]);
|
|
@@ -68,7 +99,10 @@ class Storage {
|
|
|
68
99
|
}
|
|
69
100
|
getMany(keys) {
|
|
70
101
|
return new _module_2.LazyPromise(async () => {
|
|
71
|
-
|
|
102
|
+
if ((0, utilities_1.isArrayEmpty)(keys)) {
|
|
103
|
+
return {};
|
|
104
|
+
}
|
|
105
|
+
return await this.withEventStorageAdapter.getMany(keys);
|
|
72
106
|
});
|
|
73
107
|
}
|
|
74
108
|
getOr(key, defaultValue) {
|
|
@@ -124,7 +158,10 @@ class Storage {
|
|
|
124
158
|
}
|
|
125
159
|
addMany(values) {
|
|
126
160
|
return new _module_2.LazyPromise(async () => {
|
|
127
|
-
|
|
161
|
+
if ((0, utilities_1.isObjectEmpty)(values)) {
|
|
162
|
+
return {};
|
|
163
|
+
}
|
|
164
|
+
return await this.withEventStorageAdapter.addMany(values);
|
|
128
165
|
});
|
|
129
166
|
}
|
|
130
167
|
update(key, value) {
|
|
@@ -140,7 +177,10 @@ class Storage {
|
|
|
140
177
|
}
|
|
141
178
|
updateMany(values) {
|
|
142
179
|
return new _module_2.LazyPromise(async () => {
|
|
143
|
-
|
|
180
|
+
if ((0, utilities_1.isObjectEmpty)(values)) {
|
|
181
|
+
return {};
|
|
182
|
+
}
|
|
183
|
+
return await this.withEventStorageAdapter.updateMany(values);
|
|
144
184
|
});
|
|
145
185
|
}
|
|
146
186
|
put(key, value) {
|
|
@@ -156,7 +196,10 @@ class Storage {
|
|
|
156
196
|
}
|
|
157
197
|
putMany(values) {
|
|
158
198
|
return new _module_2.LazyPromise(async () => {
|
|
159
|
-
|
|
199
|
+
if ((0, utilities_1.isObjectEmpty)(values)) {
|
|
200
|
+
return {};
|
|
201
|
+
}
|
|
202
|
+
return await this.withEventStorageAdapter.putMany(values);
|
|
160
203
|
});
|
|
161
204
|
}
|
|
162
205
|
remove(key) {
|
|
@@ -170,7 +213,10 @@ class Storage {
|
|
|
170
213
|
}
|
|
171
214
|
removeMany(keys) {
|
|
172
215
|
return new _module_2.LazyPromise(async () => {
|
|
173
|
-
|
|
216
|
+
if ((0, utilities_1.isArrayEmpty)(keys)) {
|
|
217
|
+
return {};
|
|
218
|
+
}
|
|
219
|
+
return await this.withEventStorageAdapter.removeMany(keys);
|
|
174
220
|
});
|
|
175
221
|
}
|
|
176
222
|
getAndRemove(key) {
|
|
@@ -179,7 +225,7 @@ class Storage {
|
|
|
179
225
|
if (value === undefined) {
|
|
180
226
|
throw new _module_1.UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
181
227
|
}
|
|
182
|
-
await this.
|
|
228
|
+
await this.withEventStorageAdapter.removeMany([key]);
|
|
183
229
|
return value;
|
|
184
230
|
});
|
|
185
231
|
}
|
|
@@ -191,7 +237,7 @@ class Storage {
|
|
|
191
237
|
}
|
|
192
238
|
if (value === null) {
|
|
193
239
|
const valueToAddSimplified = (await (0, utilities_1.simplifyAsyncLazyable)(valueToAdd));
|
|
194
|
-
await this.
|
|
240
|
+
await this.withEventStorageAdapter.addMany({
|
|
195
241
|
[key]: valueToAddSimplified,
|
|
196
242
|
});
|
|
197
243
|
return valueToAddSimplified;
|
|
@@ -201,17 +247,17 @@ class Storage {
|
|
|
201
247
|
}
|
|
202
248
|
increment(key, value = 1) {
|
|
203
249
|
return new _module_2.LazyPromise(async () => {
|
|
204
|
-
return await this.
|
|
250
|
+
return await this.withEventStorageAdapter.increment(key, value);
|
|
205
251
|
});
|
|
206
252
|
}
|
|
207
253
|
decrement(key, value = 1) {
|
|
208
254
|
return new _module_2.LazyPromise(async () => {
|
|
209
|
-
return await this.
|
|
255
|
+
return await this.withEventStorageAdapter.increment(key, -value);
|
|
210
256
|
});
|
|
211
257
|
}
|
|
212
258
|
clear() {
|
|
213
259
|
return new _module_2.LazyPromise(async () => {
|
|
214
|
-
await this.
|
|
260
|
+
await this.withEventStorageAdapter.clear();
|
|
215
261
|
});
|
|
216
262
|
}
|
|
217
263
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/storage.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/storage.ts"],"names":[],"mappings":";;;AAIA,yDAMqC;AAMrC,qHAA+G;AAC/G,mDAI6B;AAI7B,iDAAkD;AAClD,uHAAiH;AAQjH,iEAG6C;AAC7C,6GAAuG;AA8DvG,MAAa,OAAO;IAUK;IATrB,MAAM,CAAC,MAAM,GAAG,wBAAc,CAAC;IAEd,uBAAuB,CAAiC;IACxD,UAAU,CAAS;IACnB,SAAS,CAAmB;IAC5B,QAAQ,CAAqC;IAE9D,YAEqB,cAAoC,EACrD,WAAmC,EAAE;QADpB,mBAAc,GAAd,cAAc,CAAsB;QAGrD,MAAM,EACF,aAAa,EAAE,SAAS,GAAG,EAAE,EAC7B,SAAS,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAU,EAC7B,QAAQ,GAAG,IAAI,kBAAQ,CAAC,IAAI,6BAAmB,EAAE,CAAC,GACrD,GAAG,QAAQ,CAAC;QAEb,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;QAC5B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAExD,MAAM,4BAA4B,GAAG,IAAI,8DAA4B,CACjE,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,SAAS,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