@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
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { sql } from "kysely";
|
|
2
|
-
import { TypeStorageError } from "../../../contracts/storage/_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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-sqlite-storage-adapter.js","sourceRoot":"","sources":["../../../../../src/storage/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;IA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AC;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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/storage/sqlite/libsql-storage-adapter/_module.ts"],"names":[],"mappings":"AAAA,cAAc,gEAAgE,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { SuperJsonSerializer } from "../../../_module";
|
|
2
|
-
import { SqlSerializer } from "../../../serializer/sql-serializer/sql-serializer";
|
|
3
|
-
import { BaseSqliteStorageAdapter } from "../../../storage/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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"libsql-storage-adapter.js","sourceRoot":"","sources":["../../../../../src/storage/sqlite/libsql-storage-adapter/libsql-storage-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAoB,MAAM,WAAW,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,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,C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K,CAAC,KAAK,CAAC,MAAc;QACtB,MAAM,IAAI,CAAC,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5C,CAAC;CACJ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../../src/storage/sqlite/sqlite-storage-adapter/_module.ts"],"names":[],"mappings":"AAAA,cAAc,gEAAgE,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { SuperJsonSerializer } from "../../../_module";
|
|
2
|
-
import { SqlSerializer } from "../../../serializer/sql-serializer/sql-serializer";
|
|
3
|
-
import { BaseSqliteStorageAdapter } from "../../../storage/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
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sqlite-storage-adapter.js","sourceRoot":"","sources":["../../../../../src/storage/sqlite/sqlite-storage-adapter/sqlite-storage-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,mBAAmB,EAAoB,MAAM,WAAW,CAAC;AAElE,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAE3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAE5E,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,MAA8B;QAE9B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,UAAU,CACZ,MAA8B;QAE9B,OAAO,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;IAED,KAAK,CAAC,OAAO,CACT,MAA8B;QAE9B,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"}
|
|
@@ -1,213 +0,0 @@
|
|
|
1
|
-
import { KeyNotFoundStorageError, UnexpectedStorageError, } from "../contracts/storage/_module";
|
|
2
|
-
import { NamespaceStorageAdapter } from "../storage/namespace-storage-adapter";
|
|
3
|
-
import { simplifyAsyncLazyable } from "../_shared/utilities";
|
|
4
|
-
import { LazyPromise } from "../async/_module";
|
|
5
|
-
export class Storage {
|
|
6
|
-
storageAdapter;
|
|
7
|
-
namespaceStorageAdapter;
|
|
8
|
-
settings;
|
|
9
|
-
constructor(storageAdapter, { namespace = "" } = {}) {
|
|
10
|
-
this.storageAdapter = storageAdapter;
|
|
11
|
-
this.settings = {
|
|
12
|
-
namespace,
|
|
13
|
-
};
|
|
14
|
-
this.namespaceStorageAdapter = new NamespaceStorageAdapter(this.storageAdapter, this.settings.namespace);
|
|
15
|
-
}
|
|
16
|
-
namespace(name) {
|
|
17
|
-
return new Storage(this.storageAdapter, {
|
|
18
|
-
...this.settings,
|
|
19
|
-
namespace: `${this.settings.namespace}${name}`,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
exists(key) {
|
|
23
|
-
return new LazyPromise(async () => {
|
|
24
|
-
const { [key]: hasKey } = await this.existsMany([key]);
|
|
25
|
-
if (hasKey === undefined) {
|
|
26
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
27
|
-
}
|
|
28
|
-
return hasKey;
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
existsMany(keys) {
|
|
32
|
-
return new LazyPromise(async () => {
|
|
33
|
-
const getResult = await this.getMany(keys);
|
|
34
|
-
const results = {};
|
|
35
|
-
for (const key in getResult) {
|
|
36
|
-
results[key] = getResult[key] !== null;
|
|
37
|
-
}
|
|
38
|
-
return results;
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
missing(key) {
|
|
42
|
-
return new LazyPromise(async () => {
|
|
43
|
-
const { [key]: hasKey } = await this.missingMany([key]);
|
|
44
|
-
if (hasKey === undefined) {
|
|
45
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
46
|
-
}
|
|
47
|
-
return hasKey;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
missingMany(keys) {
|
|
51
|
-
return new LazyPromise(async () => {
|
|
52
|
-
return Object.fromEntries(Object.entries(await this.existsMany(keys)).map(([key, hasKey]) => [key, !hasKey]));
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
get(key) {
|
|
56
|
-
return new LazyPromise(async () => {
|
|
57
|
-
const { [key]: value } = await this.getMany([key]);
|
|
58
|
-
if (value === undefined) {
|
|
59
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
60
|
-
}
|
|
61
|
-
return value;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
getMany(keys) {
|
|
65
|
-
return new LazyPromise(async () => {
|
|
66
|
-
return await this.namespaceStorageAdapter.getMany(keys);
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
getOr(key, defaultValue) {
|
|
70
|
-
return new LazyPromise(async () => {
|
|
71
|
-
const { [key]: value } = await this.getOrMany({
|
|
72
|
-
[key]: defaultValue,
|
|
73
|
-
});
|
|
74
|
-
if (value === undefined) {
|
|
75
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
76
|
-
}
|
|
77
|
-
return value;
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
getOrMany(keysWithDefaults) {
|
|
81
|
-
return new LazyPromise(async () => {
|
|
82
|
-
const getManyResult = await this.getMany(Object.keys(keysWithDefaults));
|
|
83
|
-
const result = {};
|
|
84
|
-
for (const key in getManyResult) {
|
|
85
|
-
const { [key]: value } = getManyResult;
|
|
86
|
-
if (value === undefined) {
|
|
87
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
88
|
-
}
|
|
89
|
-
if (value === null) {
|
|
90
|
-
const defaultValue = keysWithDefaults[key];
|
|
91
|
-
result[key] = (await simplifyAsyncLazyable(defaultValue));
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
result[key] = value;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return result;
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
getOrFail(key) {
|
|
101
|
-
return new LazyPromise(async () => {
|
|
102
|
-
const value = await this.get(key);
|
|
103
|
-
if (value === null) {
|
|
104
|
-
throw new KeyNotFoundStorageError(`Key "${key}" is not found`);
|
|
105
|
-
}
|
|
106
|
-
return value;
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
add(key, value) {
|
|
110
|
-
return new LazyPromise(async () => {
|
|
111
|
-
const { [key]: hasAdded } = await this.addMany({
|
|
112
|
-
[key]: value,
|
|
113
|
-
});
|
|
114
|
-
if (hasAdded === undefined) {
|
|
115
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
116
|
-
}
|
|
117
|
-
return hasAdded;
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
addMany(values) {
|
|
121
|
-
return new LazyPromise(async () => {
|
|
122
|
-
return await this.namespaceStorageAdapter.addMany(values);
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
update(key, value) {
|
|
126
|
-
return new LazyPromise(async () => {
|
|
127
|
-
const { [key]: hasKey } = await this.updateMany({
|
|
128
|
-
[key]: value,
|
|
129
|
-
});
|
|
130
|
-
if (hasKey === undefined) {
|
|
131
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
132
|
-
}
|
|
133
|
-
return hasKey;
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
updateMany(values) {
|
|
137
|
-
return new LazyPromise(async () => {
|
|
138
|
-
return await this.namespaceStorageAdapter.updateMany(values);
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
put(key, value) {
|
|
142
|
-
return new LazyPromise(async () => {
|
|
143
|
-
const { [key]: hasAdded } = await this.putMany({
|
|
144
|
-
[key]: value,
|
|
145
|
-
});
|
|
146
|
-
if (hasAdded === undefined) {
|
|
147
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
148
|
-
}
|
|
149
|
-
return hasAdded;
|
|
150
|
-
});
|
|
151
|
-
}
|
|
152
|
-
putMany(values) {
|
|
153
|
-
return new LazyPromise(async () => {
|
|
154
|
-
return await this.namespaceStorageAdapter.putMany(values);
|
|
155
|
-
});
|
|
156
|
-
}
|
|
157
|
-
remove(key) {
|
|
158
|
-
return new LazyPromise(async () => {
|
|
159
|
-
const { [key]: hasAdded } = await this.removeMany([key]);
|
|
160
|
-
if (hasAdded === undefined) {
|
|
161
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
162
|
-
}
|
|
163
|
-
return hasAdded;
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
removeMany(keys) {
|
|
167
|
-
return new LazyPromise(async () => {
|
|
168
|
-
return await this.namespaceStorageAdapter.removeMany(keys);
|
|
169
|
-
});
|
|
170
|
-
}
|
|
171
|
-
getAndRemove(key) {
|
|
172
|
-
return new LazyPromise(async () => {
|
|
173
|
-
const { [key]: value } = await this.getMany([key]);
|
|
174
|
-
if (value === undefined) {
|
|
175
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
176
|
-
}
|
|
177
|
-
await this.namespaceStorageAdapter.removeMany([key]);
|
|
178
|
-
return value;
|
|
179
|
-
});
|
|
180
|
-
}
|
|
181
|
-
getOrAdd(key, valueToAdd) {
|
|
182
|
-
return new LazyPromise(async () => {
|
|
183
|
-
const { [key]: value } = await this.getMany([key]);
|
|
184
|
-
if (value === undefined) {
|
|
185
|
-
throw new UnexpectedStorageError(`Destructed field "key" is undefined`);
|
|
186
|
-
}
|
|
187
|
-
if (value === null) {
|
|
188
|
-
const valueToAddSimplified = (await simplifyAsyncLazyable(valueToAdd));
|
|
189
|
-
await this.namespaceStorageAdapter.addMany({
|
|
190
|
-
[key]: valueToAddSimplified,
|
|
191
|
-
});
|
|
192
|
-
return valueToAddSimplified;
|
|
193
|
-
}
|
|
194
|
-
return value;
|
|
195
|
-
});
|
|
196
|
-
}
|
|
197
|
-
increment(key, value = 1) {
|
|
198
|
-
return new LazyPromise(async () => {
|
|
199
|
-
return await this.namespaceStorageAdapter.increment(key, value);
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
decrement(key, value = 1) {
|
|
203
|
-
return new LazyPromise(async () => {
|
|
204
|
-
return await this.namespaceStorageAdapter.increment(key, -value);
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
clear() {
|
|
208
|
-
return new LazyPromise(async () => {
|
|
209
|
-
await this.namespaceStorageAdapter.clear();
|
|
210
|
-
});
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
//# sourceMappingURL=storage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"storage.js","sourceRoot":"","sources":["../../../src/storage/storage.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,uBAAuB,EACvB,sBAAsB,GAEzB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAK9C,MAAM,OAAO,OAAO;IAKK;IAJJ,uBAAuB,CAAiC;IACxD,QAAQ,CAA4B;IAErD,YACqB,cAAsC,EACvD,EAAE,SAAS,GAAG,EAAE,KAAsB,EAAE;QADvB,mBAAc,GAAd,cAAc,CAAwB;QAGvD,IAAI,CAAC,QAAQ,GAAG;YACZ,SAAS;SACZ,CAAC;QACF,IAAI,CAAC,uBAAuB,GAAG,IAAI,uBAAuB,CACtD,IAAI,CAAC,cAAc,EACnB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAC1B,CAAC;IACN,CAAC;IAED,SAAS,CACL,IAAY;QAEZ,OAAO,IAAI,OAAO,CAAiB,IAAI,CAAC,cAAc,EAAE;YACpD,GAAG,IAAI,CAAC,QAAQ;YAChB,SAAS,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,GAAG,IAAI,EAAE;SACjD,CAAC,CAAC;IACP,CAAC;IAED,M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EAAE,CAAC;QAC/C,CAAC,CAAC,CAAC;IACP,CAAC;CACJ"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export * from "../async/_shared";
|
|
2
|
-
export * from "../async/abortable/_module";
|
|
3
|
-
export * from "../async/abortable-iterable/_module";
|
|
4
|
-
export * from "../async/backof-policies/_module";
|
|
5
|
-
export * from "../async/delay/_module";
|
|
6
|
-
export * from "../async/delay-iterable/_module";
|
|
7
|
-
export * from "../async/lazy-promise/_module";
|
|
8
|
-
export * from "../async/retry/_module";
|
|
9
|
-
export { retryIterable as unstable_retryIterable } from "../async/retry-iterable/_module";
|
|
10
|
-
export * from "../async/timeout/_module";
|
|
11
|
-
export * from "../async/timeout-iterable/_module";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../async/abortable/abortable";
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module Async
|
|
3
|
-
*/
|
|
4
|
-
import { LazyPromise } from "../../async/lazy-promise/_module";
|
|
5
|
-
/**
|
|
6
|
-
* The <i>abortable</i> function makes a <i>{@link PromiseLike}</i> object abortable.
|
|
7
|
-
* @group Promise utilities
|
|
8
|
-
* @throws {AsyncError} {@link AsyncError}
|
|
9
|
-
* @throws {AbortAsyncError} {@link AbortAsyncError}
|
|
10
|
-
* @example
|
|
11
|
-
* ```ts
|
|
12
|
-
* import { abortable } from "@daiso-tech/core"
|
|
13
|
-
*
|
|
14
|
-
* let a = 0;
|
|
15
|
-
* const abortController = new AbortController();
|
|
16
|
-
* const fn = async () => {
|
|
17
|
-
* a = 1;
|
|
18
|
-
* abortController.abort("My message")
|
|
19
|
-
* await new Promise<void>(resolve => {
|
|
20
|
-
* setTimeout(() => {
|
|
21
|
-
* resolve()
|
|
22
|
-
* }, 0)
|
|
23
|
-
* })
|
|
24
|
-
* a = 2;
|
|
25
|
-
* }
|
|
26
|
-
* const promise = abortable(fn, abortController.signal);
|
|
27
|
-
* (async () => {
|
|
28
|
-
* try {
|
|
29
|
-
* // An error will be thrown
|
|
30
|
-
* await promise;
|
|
31
|
-
* }
|
|
32
|
-
* finally {
|
|
33
|
-
* // Will be 1
|
|
34
|
-
* console.log(a);
|
|
35
|
-
* }
|
|
36
|
-
* })();
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export declare function abortable<TValue>(asyncFn: () => PromiseLike<TValue>, abortSignal: AbortSignal): LazyPromise<TValue>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../async/abortable-iterable/abortable-iterable";
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { type BackoffPolicy } from "../../async/backof-policies/_shared";
|
|
2
|
-
export * from "../../async/backof-policies/constant-backoff-policy/_module";
|
|
3
|
-
export * from "../../async/backof-policies/exponential-backoff-policy/_module";
|
|
4
|
-
export * from "../../async/backof-policies/linear-backoff-policy/_module";
|
|
5
|
-
export * from "../../async/backof-policies/polynomial-backoff-policy/_module";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../async/backof-policies/constant-backoff-policy/constant-backoff-policy";
|
package/dist/types/async/backof-policies/constant-backoff-policy/constant-backoff-policy.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @module Async
|
|
3
|
-
*/
|
|
4
|
-
import { TimeSpan } from "../../../utilities/_module";
|
|
5
|
-
import { type BackoffPolicy } from "../../../async/backof-policies/_shared";
|
|
6
|
-
/**
|
|
7
|
-
* @group Backoff policies
|
|
8
|
-
*/
|
|
9
|
-
export type ConstantBackoffPolicySettings = {
|
|
10
|
-
/**
|
|
11
|
-
* @default 1000 milliseconds
|
|
12
|
-
*/
|
|
13
|
-
delay?: TimeSpan;
|
|
14
|
-
/**
|
|
15
|
-
* @default {0.5}
|
|
16
|
-
*/
|
|
17
|
-
jitter?: number;
|
|
18
|
-
/**
|
|
19
|
-
* Used only for testing
|
|
20
|
-
* @internal
|
|
21
|
-
*/
|
|
22
|
-
_mathRandom?: () => number;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Constant backoff policy with jitter
|
|
26
|
-
* @group Backoff policies
|
|
27
|
-
*/
|
|
28
|
-
export declare function constantBackoffPolicy(settings?: ConstantBackoffPolicySettings | ((error: unknown) => ConstantBackoffPolicySettings)): BackoffPolicy;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "../../../async/backof-policies/exponential-backoff-policy/exponential-backoff-policy";
|