@daiso-tech/core 0.6.0 → 0.7.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 +6 -5
- package/dist/cjs/_module.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 +627 -0
- package/dist/cjs/collection/implementations/list-collection/list-collection.js.map +1 -0
- package/dist/cjs/serializer/_module.js +5 -5
- package/dist/cjs/serializer/_module.js.map +1 -1
- 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 +20 -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.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-api.test-suite.js +300 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite.js.map +1 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js +1208 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js.map +1 -0
- package/dist/cjs/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js +10 -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 +18 -0
- package/dist/cjs/storage/implementations/storage/_module.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/storage.js +219 -0
- package/dist/cjs/storage/implementations/storage/storage.js.map +1 -0
- package/dist/cjs/storage/implementations/storage/with-namespace-storage-adapter.js +56 -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 +4 -0
- package/dist/cjs/utilities/_module.js.map +1 -1
- package/dist/cjs/utilities/async/_module.js +24 -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/backof-policies/_module.js +21 -0
- package/dist/cjs/utilities/async/backof-policies/_module.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/_shared.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/constant-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/async/backof-policies/constant-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js +19 -0
- package/dist/cjs/utilities/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/exponential-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/async/backof-policies/exponential-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +23 -0
- package/dist/cjs/utilities/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/linear-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/async/backof-policies/linear-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +23 -0
- package/dist/cjs/utilities/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/polynomial-backoff-policy/_module.js +18 -0
- package/dist/cjs/utilities/async/backof-policies/polynomial-backoff-policy/_module.js.map +1 -0
- package/dist/cjs/utilities/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +23 -0
- package/dist/cjs/utilities/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.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/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/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-iterable/_module.js +23 -0
- package/dist/cjs/utilities/async-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/abortable-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async-iterable/abortable-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/abortable-iterable/abortable-iterable.js +32 -0
- package/dist/cjs/utilities/async-iterable/abortable-iterable/abortable-iterable.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/delay-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async-iterable/delay-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/delay-iterable/delay-iterable.js +36 -0
- package/dist/cjs/utilities/async-iterable/delay-iterable/delay-iterable.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/retry-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async-iterable/retry-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/retry-iterable/retry-iterable.js +32 -0
- package/dist/cjs/utilities/async-iterable/retry-iterable/retry-iterable.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/timeout-iterable/_module.js +18 -0
- package/dist/cjs/utilities/async-iterable/timeout-iterable/_module.js.map +1 -0
- package/dist/cjs/utilities/async-iterable/timeout-iterable/timeout-iterable.js +11 -0
- package/dist/cjs/utilities/async-iterable/timeout-iterable/timeout-iterable.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 +6 -5
- package/dist/esm/_module.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 +623 -0
- package/dist/esm/collection/implementations/list-collection/list-collection.js.map +1 -0
- package/dist/esm/serializer/_module.js +5 -5
- package/dist/esm/serializer/_module.js.map +1 -1
- 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 +4 -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.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-api.test-suite.js +297 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter-api.test-suite.js.map +1 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js +1205 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.js.map +1 -0
- package/dist/esm/storage/implementations/_shared/test-utilities/storage-adapter.test-suite.js +7 -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 +2 -0
- package/dist/esm/storage/implementations/storage/_module.js.map +1 -0
- package/dist/esm/storage/implementations/storage/storage.js +215 -0
- package/dist/esm/storage/implementations/storage/storage.js.map +1 -0
- package/dist/esm/storage/implementations/storage/with-namespace-storage-adapter.js +52 -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 +4 -0
- package/dist/esm/utilities/_module.js.map +1 -1
- package/dist/esm/utilities/async/_module.js +8 -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/backof-policies/_module.js +5 -0
- package/dist/esm/utilities/async/backof-policies/_module.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/_shared.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/constant-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/async/backof-policies/constant-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js +16 -0
- package/dist/esm/utilities/async/backof-policies/constant-backoff-policy/constant-backoff-policy.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/exponential-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/async/backof-policies/exponential-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js +20 -0
- package/dist/esm/utilities/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/linear-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/async/backof-policies/linear-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js +20 -0
- package/dist/esm/utilities/async/backof-policies/linear-backoff-policy/linear-backoff-policy.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/polynomial-backoff-policy/_module.js +2 -0
- package/dist/esm/utilities/async/backof-policies/polynomial-backoff-policy/_module.js.map +1 -0
- package/dist/esm/utilities/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.js +20 -0
- package/dist/esm/utilities/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.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/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/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-iterable/_module.js +5 -0
- package/dist/esm/utilities/async-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async-iterable/abortable-iterable/_module.js +2 -0
- package/dist/esm/utilities/async-iterable/abortable-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async-iterable/abortable-iterable/abortable-iterable.js +29 -0
- package/dist/esm/utilities/async-iterable/abortable-iterable/abortable-iterable.js.map +1 -0
- package/dist/esm/utilities/async-iterable/delay-iterable/_module.js +2 -0
- package/dist/esm/utilities/async-iterable/delay-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async-iterable/delay-iterable/delay-iterable.js +33 -0
- package/dist/esm/utilities/async-iterable/delay-iterable/delay-iterable.js.map +1 -0
- package/dist/esm/utilities/async-iterable/retry-iterable/_module.js +2 -0
- package/dist/esm/utilities/async-iterable/retry-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async-iterable/retry-iterable/retry-iterable.js +29 -0
- package/dist/esm/utilities/async-iterable/retry-iterable/retry-iterable.js.map +1 -0
- package/dist/esm/utilities/async-iterable/timeout-iterable/_module.js +2 -0
- package/dist/esm/utilities/async-iterable/timeout-iterable/_module.js.map +1 -0
- package/dist/esm/utilities/async-iterable/timeout-iterable/timeout-iterable.js +8 -0
- package/dist/esm/utilities/async-iterable/timeout-iterable/timeout-iterable.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 +6 -5
- package/dist/types/collection/contracts/_module.d.ts +3 -0
- package/dist/types/collection/contracts/async-collection.contract.d.ts +1309 -0
- package/dist/types/collection/contracts/collection.contract.d.ts +1269 -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 +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-chunk-while-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-collapse-iterable.d.ts +9 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-count-by-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-cross-join-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-entries-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-filter-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-flat-map-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-group-by-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-insert-after-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-insert-before-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-map-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-merge-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-pad-end-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-pad-start-iterable.d.ts +13 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-partion-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-repeat-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-reverse-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-shuffle-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-skip-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-skip-until-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-slice-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-sliding-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-sort-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-split-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-take-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-take-until-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-tap-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-unique-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-update-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-when-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-zip-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +105 -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 +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/chunk-while-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/collapse-iterable.d.ts +9 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/count-by-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/cross-join-iterable.d.ts +8 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/entries-iterable.d.ts +9 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/filter-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/flat-map-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/group-by-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/insert-after-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/insert-before-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/map-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/pad-end-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/pad-start-iterable.d.ts +12 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/partion-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/repeat-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/reverse-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/skip-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/skip-until-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/slice-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/sliding-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/sort-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/split-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/take-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/take-until-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/tap-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/unique-iterable.d.ts +10 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/update-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/when-iterable.d.ts +11 -0
- package/dist/types/collection/implementations/iterable-collection/_shared/zip-iterable.d.ts +10 -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/serializer/_module.d.ts +5 -5
- 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 +3 -0
- package/dist/types/storage/contracts/storage-adapter.contract.d.ts +53 -0
- package/dist/types/storage/contracts/storage.contract.d.ts +151 -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-api.test-suite.d.ts +20 -0
- package/dist/types/storage/implementations/_shared/test-utilities/storage-adapter-value.test-suite.d.ts +20 -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 +1 -0
- package/dist/types/storage/implementations/storage/storage.d.ts +41 -0
- package/dist/types/storage/implementations/storage/with-namespace-storage-adapter.d.ts +25 -0
- package/dist/types/storage/implementations/storage/with-validation-storage-adapter.d.ts +19 -0
- package/dist/types/utilities/_module.d.ts +4 -0
- package/dist/types/utilities/async/_module.d.ts +7 -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/backof-policies/_module.d.ts +5 -0
- package/dist/types/utilities/async/backof-policies/constant-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/async/backof-policies/constant-backoff-policy/constant-backoff-policy.d.ts +28 -0
- package/dist/types/utilities/async/backof-policies/exponential-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/async/backof-policies/exponential-backoff-policy/exponential-backoff-policy.d.ts +36 -0
- package/dist/types/utilities/async/backof-policies/linear-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/async/backof-policies/linear-backoff-policy/linear-backoff-policy.d.ts +32 -0
- package/dist/types/utilities/async/backof-policies/polynomial-backoff-policy/_module.d.ts +1 -0
- package/dist/types/utilities/async/backof-policies/polynomial-backoff-policy/polynomial-backoff-policy.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/lazy-promise/_module.d.ts +1 -0
- package/dist/types/utilities/async/retry/_module.d.ts +1 -0
- package/dist/types/utilities/async/retry/retry.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-iterable/_module.d.ts +4 -0
- package/dist/types/utilities/async-iterable/abortable-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async-iterable/delay-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async-iterable/delay-iterable/delay-iterable.d.ts +57 -0
- package/dist/types/utilities/async-iterable/retry-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async-iterable/retry-iterable/retry-iterable.d.ts +86 -0
- package/dist/types/utilities/async-iterable/timeout-iterable/_module.d.ts +1 -0
- package/dist/types/utilities/async-iterable/timeout-iterable/timeout-iterable.d.ts +64 -0
- package/dist/types/utilities/time-span/time-span.d.ts +3 -3
- package/dist/types/utilities/validation/_module.d.ts +12 -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/_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/_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/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/backof-policies/_module.d.ts +0 -5
- 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/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-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/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/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/_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}/backof-policies/_shared.js +0 -0
- /package/dist/cjs/{async → utilities/async}/lazy-promise/lazy-promise.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}/backof-policies/_shared.js +0 -0
- /package/dist/esm/{async → utilities/async}/lazy-promise/lazy-promise.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/collection/{async-iterable-collection → implementations/async-iterable-collection}/_shared/async-error-handler-iterable.d.ts +0 -0
- /package/dist/types/collection/{iterable-collection → implementations/iterable-collection}/_shared/merge-iterable.d.ts +0 -0
- /package/dist/types/collection/{iterable-collection → implementations/iterable-collection}/_shared/shuffle-iterable.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
- /package/dist/types/{async → utilities/async}/_shared.d.ts +0 -0
- /package/dist/types/{async → utilities/async}/backof-policies/_shared.d.ts +0 -0
- /package/dist/types/{async → utilities/async}/lazy-promise/lazy-promise.d.ts +0 -0
- /package/dist/types/{async → utilities/async-iterable}/abortable-iterable/abortable-iterable.d.ts +0 -0
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { RedisSerializer, SuperJsonSerializer, } from "../../../serializer/implementations/_module";
|
|
2
|
+
import { TypeStorageError, UnexpectedStorageError, } from "../../../storage/contracts/_module";
|
|
3
|
+
import { ClearIterable, escapeRedisChars } from "../../../_shared/redis/_module";
|
|
4
|
+
import { isRedisTypeError } from "../../../_shared/redis/_module";
|
|
5
|
+
export class RedisStorageAdapter {
|
|
6
|
+
client;
|
|
7
|
+
serializer;
|
|
8
|
+
constructor(client, { serializer = new SuperJsonSerializer(), } = {}) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
this.serializer = new RedisSerializer(serializer);
|
|
11
|
+
this.initIncrementCommand();
|
|
12
|
+
this.initPutCommand();
|
|
13
|
+
}
|
|
14
|
+
initIncrementCommand() {
|
|
15
|
+
if (typeof this.client.daiso_storage_increment === "function") {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
this.client.defineCommand("daiso_storage_increment", {
|
|
19
|
+
numberOfKeys: 1,
|
|
20
|
+
lua: `
|
|
21
|
+
local hasKey = redis.call("exists", KEYS[1])
|
|
22
|
+
|
|
23
|
+
if hasKey == 1 then
|
|
24
|
+
redis.call("incrbyfloat", KEYS[1], tonumber(ARGV[1]))
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
return hasKey
|
|
28
|
+
`,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
initPutCommand() {
|
|
32
|
+
if (typeof this.client.daiso_storage_put === "function") {
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
this.client.defineCommand("daiso_storage_put", {
|
|
36
|
+
numberOfKeys: 1,
|
|
37
|
+
lua: `
|
|
38
|
+
local hasKey = redis.call("exists", KEYS[1])
|
|
39
|
+
redis.call("set", KEYS[1], ARGV[1])
|
|
40
|
+
return hasKey
|
|
41
|
+
`,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
async existsMany(keys) {
|
|
45
|
+
let pipeline = this.client.pipeline();
|
|
46
|
+
for (const key of keys) {
|
|
47
|
+
pipeline = pipeline.exists(key);
|
|
48
|
+
}
|
|
49
|
+
const redisResults = await pipeline.exec();
|
|
50
|
+
if (redisResults === null) {
|
|
51
|
+
throw new UnexpectedStorageError("Redis result is missing");
|
|
52
|
+
}
|
|
53
|
+
const results = {};
|
|
54
|
+
for (const [index, [error, redisResult]] of redisResults.entries()) {
|
|
55
|
+
if (error !== null) {
|
|
56
|
+
throw new UnexpectedStorageError(`Unexpected redis error "${String(error)}" occured`, error);
|
|
57
|
+
}
|
|
58
|
+
if (typeof redisResult !== "number") {
|
|
59
|
+
throw new UnexpectedStorageError("Redis result is not a number");
|
|
60
|
+
}
|
|
61
|
+
const key = keys[index];
|
|
62
|
+
if (key === undefined) {
|
|
63
|
+
throw new UnexpectedStorageError("Array item is undefined");
|
|
64
|
+
}
|
|
65
|
+
const hasKey = redisResult === 1;
|
|
66
|
+
results[key] = hasKey;
|
|
67
|
+
}
|
|
68
|
+
return results;
|
|
69
|
+
}
|
|
70
|
+
async getMany(keys) {
|
|
71
|
+
let pipeline = this.client.pipeline();
|
|
72
|
+
for (const key of keys) {
|
|
73
|
+
pipeline = pipeline.get(key);
|
|
74
|
+
}
|
|
75
|
+
const redisResults = await pipeline.exec();
|
|
76
|
+
if (redisResults === null) {
|
|
77
|
+
throw new UnexpectedStorageError("Redis result is missing");
|
|
78
|
+
}
|
|
79
|
+
const results = {};
|
|
80
|
+
for (const [index, [error, redisResult]] of redisResults.entries()) {
|
|
81
|
+
if (error !== null) {
|
|
82
|
+
throw new UnexpectedStorageError(`Unexpected redis error "${String(error)}" occured`, error);
|
|
83
|
+
}
|
|
84
|
+
if (typeof redisResult !== "string" && redisResult !== null) {
|
|
85
|
+
throw new UnexpectedStorageError("Redis result is invalid type expected to be null or string");
|
|
86
|
+
}
|
|
87
|
+
const key = keys[index];
|
|
88
|
+
if (key === undefined) {
|
|
89
|
+
throw new UnexpectedStorageError("Array item is undefined");
|
|
90
|
+
}
|
|
91
|
+
if (redisResult !== null) {
|
|
92
|
+
results[key] =
|
|
93
|
+
await this.serializer.deserialize(redisResult);
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
results[key] = null;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
return results;
|
|
100
|
+
}
|
|
101
|
+
async addMany(values) {
|
|
102
|
+
let pipeline = this.client.pipeline();
|
|
103
|
+
for (const key in values) {
|
|
104
|
+
const { [key]: value } = values;
|
|
105
|
+
pipeline = pipeline.set(key, await this.serializer.serialize(value), "NX");
|
|
106
|
+
}
|
|
107
|
+
const redisResults = await pipeline.exec();
|
|
108
|
+
if (redisResults === null) {
|
|
109
|
+
throw new UnexpectedStorageError("Redis result is missing");
|
|
110
|
+
}
|
|
111
|
+
const keys = Object.keys(values);
|
|
112
|
+
const results = {};
|
|
113
|
+
for (const [index, [error, redisResult]] of redisResults.entries()) {
|
|
114
|
+
if (error !== null) {
|
|
115
|
+
throw new UnexpectedStorageError(`Unexpected redis error "${String(error)}" occured`, error);
|
|
116
|
+
}
|
|
117
|
+
if (typeof redisResult !== "string" && redisResult !== null) {
|
|
118
|
+
throw new UnexpectedStorageError("Redis result is invalid type expected to be null or string");
|
|
119
|
+
}
|
|
120
|
+
const key = keys[index];
|
|
121
|
+
if (key === undefined) {
|
|
122
|
+
throw new UnexpectedStorageError("Array item is undefined");
|
|
123
|
+
}
|
|
124
|
+
results[key] = redisResult === "OK";
|
|
125
|
+
}
|
|
126
|
+
return results;
|
|
127
|
+
}
|
|
128
|
+
async updateMany(values) {
|
|
129
|
+
let pipeline = this.client.pipeline();
|
|
130
|
+
for (const key in values) {
|
|
131
|
+
const { [key]: value } = values;
|
|
132
|
+
pipeline = pipeline.set(key, await this.serializer.serialize(value), "XX");
|
|
133
|
+
}
|
|
134
|
+
const redisResults = await pipeline.exec();
|
|
135
|
+
if (redisResults === null) {
|
|
136
|
+
throw new UnexpectedStorageError("Redis result is missing");
|
|
137
|
+
}
|
|
138
|
+
const keys = Object.keys(values);
|
|
139
|
+
const results = {};
|
|
140
|
+
for (const [index, [error, redisResult]] of redisResults.entries()) {
|
|
141
|
+
if (error !== null) {
|
|
142
|
+
throw new UnexpectedStorageError(`Unexpected redis error "${String(error)}" occured`, error);
|
|
143
|
+
}
|
|
144
|
+
if (typeof redisResult !== "string" && redisResult !== null) {
|
|
145
|
+
throw new UnexpectedStorageError("Redis result is invalid type expected to be null or string");
|
|
146
|
+
}
|
|
147
|
+
const key = keys[index];
|
|
148
|
+
if (key === undefined) {
|
|
149
|
+
throw new UnexpectedStorageError("Array item is undefined");
|
|
150
|
+
}
|
|
151
|
+
results[key] = redisResult === "OK";
|
|
152
|
+
}
|
|
153
|
+
return results;
|
|
154
|
+
}
|
|
155
|
+
async putMany(values) {
|
|
156
|
+
let pipeline = this.client.pipeline();
|
|
157
|
+
for (const key in values) {
|
|
158
|
+
const { [key]: value } = values;
|
|
159
|
+
pipeline = pipeline.daiso_storage_put(key, await this.serializer.serialize(value));
|
|
160
|
+
}
|
|
161
|
+
const redisResults = await pipeline.exec();
|
|
162
|
+
if (redisResults === null) {
|
|
163
|
+
throw new UnexpectedStorageError("Redis result is missing");
|
|
164
|
+
}
|
|
165
|
+
const keys = Object.keys(values);
|
|
166
|
+
const results = {};
|
|
167
|
+
for (const [index, [error, redisResult]] of redisResults.entries()) {
|
|
168
|
+
if (error !== null) {
|
|
169
|
+
throw new UnexpectedStorageError(`Unexpected redis error "${String(error)}" occured`, error);
|
|
170
|
+
}
|
|
171
|
+
const hasAdded = redisResult === 1;
|
|
172
|
+
const key = keys[index];
|
|
173
|
+
if (key === undefined) {
|
|
174
|
+
throw new UnexpectedStorageError("Array item is undefined");
|
|
175
|
+
}
|
|
176
|
+
results[key] = hasAdded;
|
|
177
|
+
}
|
|
178
|
+
return results;
|
|
179
|
+
}
|
|
180
|
+
async removeMany(keys) {
|
|
181
|
+
let pipline = this.client.pipeline();
|
|
182
|
+
for (const key of keys) {
|
|
183
|
+
pipline = pipline.del(key);
|
|
184
|
+
}
|
|
185
|
+
const redisResults = await pipline.exec();
|
|
186
|
+
if (redisResults === null) {
|
|
187
|
+
throw new UnexpectedStorageError("Redis result is missing");
|
|
188
|
+
}
|
|
189
|
+
const results = {};
|
|
190
|
+
for (const [index, [error, redisResult]] of redisResults.entries()) {
|
|
191
|
+
if (error !== null) {
|
|
192
|
+
throw new UnexpectedStorageError(`Unexpected redis error "${String(error)}" occured`, error);
|
|
193
|
+
}
|
|
194
|
+
if (typeof redisResult !== "number") {
|
|
195
|
+
throw new UnexpectedStorageError("Redis result is not a number");
|
|
196
|
+
}
|
|
197
|
+
const hasRemoved = redisResult === 1;
|
|
198
|
+
const key = keys[index];
|
|
199
|
+
if (key === undefined) {
|
|
200
|
+
throw new UnexpectedStorageError("Array item is undefined");
|
|
201
|
+
}
|
|
202
|
+
results[key] = hasRemoved;
|
|
203
|
+
}
|
|
204
|
+
return results;
|
|
205
|
+
}
|
|
206
|
+
async increment(key, value) {
|
|
207
|
+
try {
|
|
208
|
+
const redisResult = await this.client.daiso_storage_increment(key, await this.serializer.serialize(value));
|
|
209
|
+
const keyExists = redisResult === 1;
|
|
210
|
+
return keyExists;
|
|
211
|
+
}
|
|
212
|
+
catch (error) {
|
|
213
|
+
if (!isRedisTypeError(error)) {
|
|
214
|
+
throw error;
|
|
215
|
+
}
|
|
216
|
+
throw new TypeStorageError(`Unable to increment or decrement none number type key "${key}"`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
async clear(prefix) {
|
|
220
|
+
for await (const _ of new ClearIterable(this.client, `${escapeRedisChars(prefix)}*`)) {
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
//# sourceMappingURL=redis-storage-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"redis-storage-adapter.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/redis-storage-adapter/redis-storage-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,eAAe,EACf,mBAAmB,GACtB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C;QAErB,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC3B,MAAM,KAAK,CAAC;YAChB,CAAC;YACD,MAAM,IAAI,gBAAgB,CACtB,0DAA0D,GAAG,GAAG,CACnE,CAAC;QACN,CAAC;IACL,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,MAAc;QACtB,IAAI,KAAK,EAAE,MAAM,CAAC,IAAI,IAAI,aAAa,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,gBAAgB,CAAC,MAAM,CAAC,GAAG,CACjC,EAAE,CAAC;QAEJ,CAAC;IACL,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/sqlite/_module.ts"],"names":[],"mappings":"AAAA,cAAc,iEAAiE,CAAC;AAChF,cAAc,iEAAiE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/sqlite/_shared/_module.ts"],"names":[],"mappings":"AAAA,cAAc,sEAAsE,CAAC"}
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { sql } from "kysely";
|
|
2
|
+
import { TypeStorageError } from "../../../../storage/contracts/_module";
|
|
3
|
+
export class BaseSqliteStorageAdapter {
|
|
4
|
+
db;
|
|
5
|
+
serializer;
|
|
6
|
+
constructor(db, serializer) {
|
|
7
|
+
this.db = db;
|
|
8
|
+
this.serializer = serializer;
|
|
9
|
+
}
|
|
10
|
+
async init() {
|
|
11
|
+
await this.db.schema
|
|
12
|
+
.createTable("storage")
|
|
13
|
+
.ifNotExists()
|
|
14
|
+
.addColumn("key", "text", (cb) => cb.primaryKey())
|
|
15
|
+
.addColumn("value", "text")
|
|
16
|
+
.addColumn("hasBeenUpdated", "integer", (cb) => cb.defaultTo(0))
|
|
17
|
+
.modifyEnd(sql `strict`)
|
|
18
|
+
.execute();
|
|
19
|
+
}
|
|
20
|
+
async existsMany(keys) {
|
|
21
|
+
const sqlResult = await this.db
|
|
22
|
+
.selectFrom("storage")
|
|
23
|
+
.select("storage.key")
|
|
24
|
+
.where("storage.key", "in", keys)
|
|
25
|
+
.execute();
|
|
26
|
+
const results = Object.fromEntries(keys.map((key) => [key, false]));
|
|
27
|
+
for (const { key } of sqlResult) {
|
|
28
|
+
results[key] = true;
|
|
29
|
+
}
|
|
30
|
+
return results;
|
|
31
|
+
}
|
|
32
|
+
async getMany(keys) {
|
|
33
|
+
const sqlResult = await this.db
|
|
34
|
+
.selectFrom("storage")
|
|
35
|
+
.select(["storage.key", "storage.value"])
|
|
36
|
+
.where("storage.key", "in", keys)
|
|
37
|
+
.execute();
|
|
38
|
+
const results = Object.fromEntries(keys.map((key) => [key, null]));
|
|
39
|
+
for (const { key, value } of sqlResult) {
|
|
40
|
+
results[key] = await this.serializer.deserialize(value);
|
|
41
|
+
}
|
|
42
|
+
return results;
|
|
43
|
+
}
|
|
44
|
+
async addMany(values) {
|
|
45
|
+
const rows = [];
|
|
46
|
+
for (const key in values) {
|
|
47
|
+
const { [key]: value } = values;
|
|
48
|
+
rows.push({
|
|
49
|
+
key,
|
|
50
|
+
value: await this.serializer.serialize(value),
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
const sqlResult = await this.db
|
|
54
|
+
.insertInto("storage")
|
|
55
|
+
.values(rows)
|
|
56
|
+
.onConflict((b) => b.doNothing())
|
|
57
|
+
.returning("storage.key")
|
|
58
|
+
.execute();
|
|
59
|
+
const results = Object.fromEntries(Object.keys(values).map((key) => [key, false]));
|
|
60
|
+
for (const { key } of sqlResult) {
|
|
61
|
+
results[key] = true;
|
|
62
|
+
}
|
|
63
|
+
return results;
|
|
64
|
+
}
|
|
65
|
+
async updateMany(values) {
|
|
66
|
+
const rows = [];
|
|
67
|
+
for (const key in values) {
|
|
68
|
+
const { [key]: value } = values;
|
|
69
|
+
rows.push({
|
|
70
|
+
key,
|
|
71
|
+
value: await this.serializer.serialize(value),
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
const sqlResults = await this.db
|
|
75
|
+
.updateTable("storage")
|
|
76
|
+
.set((eb) => {
|
|
77
|
+
let value = eb.case();
|
|
78
|
+
for (const row of rows) {
|
|
79
|
+
value = value
|
|
80
|
+
.when("storage.key", "=", row.key)
|
|
81
|
+
.then(row.value);
|
|
82
|
+
}
|
|
83
|
+
value = value.end();
|
|
84
|
+
return {
|
|
85
|
+
value,
|
|
86
|
+
hasBeenUpdated: 1,
|
|
87
|
+
};
|
|
88
|
+
})
|
|
89
|
+
.where("storage.key", "in", Object.keys(values))
|
|
90
|
+
.returning("storage.key")
|
|
91
|
+
.execute();
|
|
92
|
+
const results = Object.fromEntries(Object.keys(values).map((key) => [key, false]));
|
|
93
|
+
for (const { key } of sqlResults) {
|
|
94
|
+
results[key] = true;
|
|
95
|
+
}
|
|
96
|
+
return results;
|
|
97
|
+
}
|
|
98
|
+
async removeMany(keys) {
|
|
99
|
+
const sqlResult = await this.db
|
|
100
|
+
.deleteFrom("storage")
|
|
101
|
+
.where("storage.key", "in", keys)
|
|
102
|
+
.returning("storage.key")
|
|
103
|
+
.execute();
|
|
104
|
+
const results = Object.fromEntries(keys.map((key) => [key, false]));
|
|
105
|
+
for (const { key } of sqlResult) {
|
|
106
|
+
results[key] = true;
|
|
107
|
+
}
|
|
108
|
+
return results;
|
|
109
|
+
}
|
|
110
|
+
async putMany(values) {
|
|
111
|
+
const rows = [];
|
|
112
|
+
for (const key in values) {
|
|
113
|
+
const { [key]: value } = values;
|
|
114
|
+
rows.push({
|
|
115
|
+
key,
|
|
116
|
+
value: await this.serializer.serialize(value),
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
const sqlResults = await this.db
|
|
120
|
+
.insertInto("storage")
|
|
121
|
+
.values(rows)
|
|
122
|
+
.onConflict((eb) => eb.column("key").doUpdateSet((eb) => {
|
|
123
|
+
let value = eb.case();
|
|
124
|
+
for (const row of rows) {
|
|
125
|
+
value = value
|
|
126
|
+
.when("storage.key", "=", row.key)
|
|
127
|
+
.then(row.value);
|
|
128
|
+
}
|
|
129
|
+
value = value.end();
|
|
130
|
+
return {
|
|
131
|
+
value,
|
|
132
|
+
hasBeenUpdated: 1,
|
|
133
|
+
};
|
|
134
|
+
}))
|
|
135
|
+
.returning(["storage.key", "storage.hasBeenUpdated"])
|
|
136
|
+
.execute();
|
|
137
|
+
const results = Object.fromEntries(Object.keys(values).map((key) => [key, false]));
|
|
138
|
+
for (const { hasBeenUpdated, key } of sqlResults) {
|
|
139
|
+
results[key] = hasBeenUpdated === 1;
|
|
140
|
+
}
|
|
141
|
+
return results;
|
|
142
|
+
}
|
|
143
|
+
async increment(key, value) {
|
|
144
|
+
const sqlResult = await this.db
|
|
145
|
+
.updateTable("storage")
|
|
146
|
+
.set("value", (eb) => {
|
|
147
|
+
const jsonRootValue = sql `typeof(${eb.ref("storage.value")} ->> '$')`;
|
|
148
|
+
const isNumber = eb.or([
|
|
149
|
+
eb(jsonRootValue, "=", "real"),
|
|
150
|
+
eb(jsonRootValue, "=", "integer"),
|
|
151
|
+
]);
|
|
152
|
+
const incrementJsonRootIfNumber = eb
|
|
153
|
+
.case()
|
|
154
|
+
.when(isNumber)
|
|
155
|
+
.then(sql `${eb.ref("storage.value")} ->> '$' + ${value}`)
|
|
156
|
+
.else(sql `${eb.ref("storage.value")} ->> '$'`)
|
|
157
|
+
.end();
|
|
158
|
+
return sql `json_set(${eb.ref("storage.value")}, '$', ${incrementJsonRootIfNumber})`;
|
|
159
|
+
})
|
|
160
|
+
.where("storage.key", "=", key)
|
|
161
|
+
.returning((eb) => {
|
|
162
|
+
const jsonRootValue = sql `typeof(${eb.ref("storage.value")} ->> '$')`;
|
|
163
|
+
const isNumber = eb.or([
|
|
164
|
+
eb(jsonRootValue, "=", "real"),
|
|
165
|
+
eb(jsonRootValue, "=", "integer"),
|
|
166
|
+
]);
|
|
167
|
+
return isNumber.as("isNumber");
|
|
168
|
+
})
|
|
169
|
+
.executeTakeFirst();
|
|
170
|
+
if (sqlResult === undefined) {
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
const isTypeError = Number(sqlResult.isNumber.valueOf()) === 0;
|
|
174
|
+
if (isTypeError) {
|
|
175
|
+
throw new TypeStorageError(`Unable to increment or decrement none number type key "${key}"`);
|
|
176
|
+
}
|
|
177
|
+
return true;
|
|
178
|
+
}
|
|
179
|
+
async clear(prefix) {
|
|
180
|
+
await this.db
|
|
181
|
+
.deleteFrom("storage")
|
|
182
|
+
.where("key", "like", `${prefix}%`)
|
|
183
|
+
.execute();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=base-sqlite-storage-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-sqlite-storage-adapter.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/sqlite/_shared/base-sqlite-storage-adapter.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgD,GAAG,EAAE,MAAM,QAAQ,CAAC;AAG3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAoB/D,MAAM,OAAO,wBAAwB;IAIZ;IACA;IAFrB,YACqB,EAA4B,EAC5B,UAA+B;QAD/B,OAAE,GAAF,EAAE,CAA0B;QAC5B,eAAU,GAAV,UAAU,CAAqB;IACjD,CAAC;IAEJ,KAAK,CAAC,IAAI;QACN,MAAM,IAAI,CAAC,EAAE,CAAC,MAAM;aACf,WAAW,CAAC,SAAS,CAAC;aACtB,WAAW,EAAE;aACb,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,CAAC;aACjD,SAAS,CAAC,OAAO,EAAE,MAAM,CAAC;aAC1B,SAAS,CAAC,gBAAgB,EAAE,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE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C7C,GAAG,EAAE,CAAC;YACX,OAAO,GAAG,CAAA,YAAY,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,UAAU,yBAAyB,GAAG,CAAC;QACxF,CAAC,CAAC;aACD,KAAK,CAAC,aAAa,EAAE,GAAG,EAAE,GAAG,CAAC;aAC9B,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE;YACd,MAAM,aAAa,GAAG,GAAG,CAAA,UAAU,EAAE,CAAC,GAAG,CAAC,eAAe,CAAC,WAAW,CAAC;YACtE,MAAM,QAAQ,GAAG,EAAE,CAAC,EAAE,CAAC;gBACnB,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,MAAM,CAAC;gBAC9B,EAAE,CAAC,aAAa,EAAE,GAAG,EAAE,SAAS,CAAC;aACpC,CAAC,CAAC;YACH,OAAO,QAAQ,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC;QACnC,CAAC,CAAC;aACD,gBAAgB,EAAE,CAAC;QAExB,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,MAAM,WAAW,GAAG,MAAM,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QAC/D,IAAI,WAAW,EAAE,CAAC;YACd,MAAM,IAAI,gBAAgB,CACtB,0DAA0D,GAAG,GAAG,CACnE,CAAC;QACN,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,MAAc;QACtB,MAAM,IAAI,CAAC,EAAE;aACR,UAAU,CAAC,SAAS,CAAC;aACrB,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,GAAG,CAAC;aAClC,OAAO,EAAE,CAAC;IACnB,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/sqlite/libsql-storage-adapter/_module.ts"],"names":[],"mappings":"AAAA,cAAc,gFAAgF,CAAC"}
|
package/dist/esm/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { SuperJsonSerializer } from "../../../../serializer/implementations/_module";
|
|
2
|
+
import { SqlSerializer } from "../../../../serializer/implementations/sql-serializer/sql-serializer";
|
|
3
|
+
import { BaseSqliteStorageAdapter } from "../../../../storage/implementations/sqlite/_shared/_module";
|
|
4
|
+
import { Kysely } from "kysely";
|
|
5
|
+
import { KyselyTableNameTransformerPlugin } from "../../../../_shared/kysely/_module";
|
|
6
|
+
import { LibsqlDialect } from "@libsql/kysely-libsql";
|
|
7
|
+
export class LibsqlStorageAdapter {
|
|
8
|
+
storageAdapter;
|
|
9
|
+
constructor(client, { tableName = "storage", serializer = new SuperJsonSerializer(), } = {}) {
|
|
10
|
+
this.storageAdapter = new BaseSqliteStorageAdapter(new Kysely({
|
|
11
|
+
dialect: new LibsqlDialect({
|
|
12
|
+
client,
|
|
13
|
+
}),
|
|
14
|
+
plugins: [
|
|
15
|
+
new KyselyTableNameTransformerPlugin({
|
|
16
|
+
storage: tableName,
|
|
17
|
+
}),
|
|
18
|
+
],
|
|
19
|
+
}), new SqlSerializer(serializer));
|
|
20
|
+
}
|
|
21
|
+
async init() {
|
|
22
|
+
await this.storageAdapter.init();
|
|
23
|
+
}
|
|
24
|
+
async existsMany(keys) {
|
|
25
|
+
return await this.storageAdapter.existsMany(keys);
|
|
26
|
+
}
|
|
27
|
+
async getMany(keys) {
|
|
28
|
+
return await this.storageAdapter.getMany(keys);
|
|
29
|
+
}
|
|
30
|
+
async updateMany(values) {
|
|
31
|
+
return await this.storageAdapter.updateMany(values);
|
|
32
|
+
}
|
|
33
|
+
async addMany(values) {
|
|
34
|
+
return await this.storageAdapter.addMany(values);
|
|
35
|
+
}
|
|
36
|
+
async putMany(values) {
|
|
37
|
+
return await this.storageAdapter.putMany(values);
|
|
38
|
+
}
|
|
39
|
+
async removeMany(keys) {
|
|
40
|
+
return await this.storageAdapter.removeMany(keys);
|
|
41
|
+
}
|
|
42
|
+
async increment(key, value) {
|
|
43
|
+
return await this.storageAdapter.increment(key, value);
|
|
44
|
+
}
|
|
45
|
+
async clear(prefix) {
|
|
46
|
+
await this.storageAdapter.clear(prefix);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
//# sourceMappingURL=libsql-storage-adapter.js.map
|
package/dist/esm/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"libsql-storage-adapter.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/sqlite/libsql-storage-adapter/libsql-storage-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E,OAAO,EAAE,aAAa,EAAE,MAAM,4DAA4D,CAAC;AAC3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAE5F,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,gCAAgC,EAAE,MAAM,0BAA0B,CAAC;AAC5E,OAAO,EAAE,aAAa,EAA4B,MAAM,uBAAuB,CAAC;AAahF,MAAM,OAAO,oBAAoB;IAGZ,cAAc,CAAkC;IAEjE,YACI,MAAc,EACd,EACI,SAAS,GAAG,SAAS,EACrB,UAAU,GAAG,IAAI,mBAAmB,EAAE,MACR,EAAE;QAEpC,IAAI,CAAC,cAAc,GAAG,IAAI,wBAAwB,CAC9C,IAAI,MAAM,CAAC;YACP,OAAO,EAAE,IAAI,aAAa,CAAC;gBACvB,MAAM;aACc,CAAC;YACzB,OAAO,EAAE;gBACL,IAAI,gCAAgC,CAAC;oBACjC,OAAO,EAAE,SAAS;iBACrB,CAAC;aACL;SACJ,CAAC,EACF,IAAI,aAAa,CAAC,UAAU,CAAC,CAChC,CAAC;IACN,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,UAAU,CACZ,IAAa;QAEb,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,OAAO,CACT,IAAa;QAEb,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,UAAU,CACZ,MAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,OAAO,CACT,MAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,OAAO,CACT,MAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,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,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,MAAc;QACtB,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/sqlite/sqlite-storage-adapter/_module.ts"],"names":[],"mappings":"AAAA,cAAc,gFAAgF,CAAC"}
|
package/dist/esm/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SuperJsonSerializer } from "../../../../serializer/implementations/_module";
|
|
2
|
+
import { SqlSerializer } from "../../../../serializer/implementations/sql-serializer/sql-serializer";
|
|
3
|
+
import { BaseSqliteStorageAdapter } from "../../../../storage/implementations/sqlite/_shared/_module";
|
|
4
|
+
import { Kysely, SqliteDialect } from "kysely";
|
|
5
|
+
import { KyselyTableNameTransformerPlugin } from "../../../../_shared/kysely/_module";
|
|
6
|
+
export class SqliteStorageAdapter {
|
|
7
|
+
storageAdapter;
|
|
8
|
+
constructor(database, { tableName = "storage", serializer = new SuperJsonSerializer(), } = {}) {
|
|
9
|
+
this.storageAdapter = new BaseSqliteStorageAdapter(new Kysely({
|
|
10
|
+
dialect: new SqliteDialect({
|
|
11
|
+
database,
|
|
12
|
+
}),
|
|
13
|
+
plugins: [
|
|
14
|
+
new KyselyTableNameTransformerPlugin({
|
|
15
|
+
storage: tableName,
|
|
16
|
+
}),
|
|
17
|
+
],
|
|
18
|
+
}), new SqlSerializer(serializer));
|
|
19
|
+
}
|
|
20
|
+
async init() {
|
|
21
|
+
await this.storageAdapter.init();
|
|
22
|
+
}
|
|
23
|
+
async existsMany(keys) {
|
|
24
|
+
return await this.storageAdapter.existsMany(keys);
|
|
25
|
+
}
|
|
26
|
+
async getMany(keys) {
|
|
27
|
+
return await this.storageAdapter.getMany(keys);
|
|
28
|
+
}
|
|
29
|
+
async addMany(values) {
|
|
30
|
+
return await this.storageAdapter.addMany(values);
|
|
31
|
+
}
|
|
32
|
+
async updateMany(values) {
|
|
33
|
+
return await this.storageAdapter.updateMany(values);
|
|
34
|
+
}
|
|
35
|
+
async putMany(values) {
|
|
36
|
+
return await this.storageAdapter.putMany(values);
|
|
37
|
+
}
|
|
38
|
+
async removeMany(keys) {
|
|
39
|
+
return await this.storageAdapter.removeMany(keys);
|
|
40
|
+
}
|
|
41
|
+
async increment(key, value) {
|
|
42
|
+
return await this.storageAdapter.increment(key, value);
|
|
43
|
+
}
|
|
44
|
+
async clear(prefix) {
|
|
45
|
+
await this.storageAdapter.clear(prefix);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=sqlite-storage-adapter.js.map
|
package/dist/esm/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-storage-adapter.js","sourceRoot":"","sources":["../../../../../../src/storage/implementations/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AAG3E,OAAO,EAAE,aAAa,EAAE,MAAM,4DAA4D,CAAC;AAE3F,OAAO,EAAE,wBAAwB,EAAE,MAAM,kDAAkD,CAAC;AAE5F,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC/C,OAAO,EAAE,gCAAgC,EAAE,MAAM,0BAA0B,CAAC;AAY5E,MAAM,OAAO,oBAAoB;IAGZ,cAAc,CAAkC;IAEjE,YACI,QAAkB,EAClB,EACI,SAAS,GAAG,SAAS,EACrB,UAAU,GAAG,IAAI,mBAAmB,EAAE,MACR,EAAE;QAEpC,IAAI,CAAC,cAAc,GAAG,IAAI,wBAAwB,CAC9C,IAAI,MAAM,CAAC;YACP,OAAO,EAAE,IAAI,aAAa,CAAC;gBACvB,QAAQ;aACX,CAAC;YACF,OAAO,EAAE;gBACL,IAAI,gCAAgC,CAAC;oBACjC,OAAO,EAAE,SAAS;iBACrB,CAAC;aACL;SACJ,CAAC,EACF,IAAI,aAAa,CAAC,UAAU,CAAC,CAChC,CAAC;IACN,CAAC;IAED,KAAK,CAAC,IAAI;QACN,MAAM,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,UAAU,CACZ,IAAa;QAEb,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IAED,KAAK,CAAC,OAAO,CACT,IAAa;QAEb,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IAED,KAAK,CAAC,OAAO,CACT,MAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,UAAU,CACZ,MAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,OAAO,CACT,MAA4B;QAE5B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,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,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IAC3D,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,MAAc;QACtB,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACJ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/storage/implementations/storage/_module.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC"}
|