@daiso-tech/core 0.16.0 → 0.19.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/async/_module.js +1 -1
- package/dist/cjs/async/_module.js.map +1 -1
- package/dist/cjs/async/backof-policies/_module.js +1 -0
- package/dist/cjs/async/backof-policies/_module.js.map +1 -1
- package/dist/cjs/async/utilities/_module.js +3 -0
- package/dist/cjs/async/utilities/_module.js.map +1 -1
- package/dist/cjs/async/utilities/lazy-promise/lazy-promise.js +16 -22
- package/dist/cjs/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
- package/dist/cjs/cache/contracts/cache.errors.js +19 -0
- package/dist/cjs/cache/contracts/cache.errors.js.map +1 -1
- package/dist/cjs/cache/contracts/cache.events.js +156 -0
- package/dist/cjs/cache/contracts/cache.events.js.map +1 -1
- package/dist/cjs/cache/implementations/_shared/_module.js +1 -0
- package/dist/cjs/cache/implementations/_shared/_module.js.map +1 -1
- package/dist/cjs/cache/implementations/_shared/cache-adapter.test-suite.js.map +1 -1
- package/dist/cjs/cache/implementations/_shared/cache.test-suite.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.js +7 -5
- package/dist/cjs/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/libsql-cache-adapter/_module.js +2 -1
- package/dist/cjs/cache/implementations/adapters/libsql-cache-adapter/_module.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter-settings.js +56 -0
- package/dist/cjs/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter-settings.js.map +1 -0
- package/dist/cjs/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.js +18 -14
- package/dist/cjs/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/memory-cache-adapter/_module.js +1 -0
- package/dist/cjs/cache/implementations/adapters/memory-cache-adapter/_module.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter-settings.js +26 -0
- package/dist/cjs/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter-settings.js.map +1 -0
- package/dist/cjs/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +11 -3
- package/dist/cjs/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/mongodb-cache-adapter/_module.js +2 -1
- package/dist/cjs/cache/implementations/adapters/mongodb-cache-adapter/_module.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-settings.js +44 -0
- package/dist/cjs/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-settings.js.map +1 -0
- package/dist/cjs/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +21 -8
- package/dist/cjs/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/redis-cache-adapter/_module.js +1 -0
- package/dist/cjs/cache/implementations/adapters/redis-cache-adapter/_module.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-settings.js +32 -0
- package/dist/cjs/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-settings.js.map +1 -0
- package/dist/cjs/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +27 -20
- package/dist/cjs/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/sqlite-cache-adapter/_module.js +1 -0
- package/dist/cjs/cache/implementations/adapters/sqlite-cache-adapter/_module.js.map +1 -1
- package/dist/cjs/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter-settings.js +56 -0
- package/dist/cjs/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter-settings.js.map +1 -0
- package/dist/cjs/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.js +19 -15
- package/dist/cjs/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.js.map +1 -1
- package/dist/cjs/cache/implementations/derivables/_module.js +3 -1
- package/dist/cjs/cache/implementations/derivables/_module.js.map +1 -1
- package/dist/cjs/cache/implementations/derivables/cache-factory-settings.js +83 -0
- package/dist/cjs/cache/implementations/derivables/cache-factory-settings.js.map +1 -0
- package/dist/cjs/cache/implementations/derivables/cache-factory.js +52 -18
- package/dist/cjs/cache/implementations/derivables/cache-factory.js.map +1 -1
- package/dist/cjs/cache/implementations/derivables/cache-settings.js +74 -0
- package/dist/cjs/cache/implementations/derivables/cache-settings.js.map +1 -0
- package/dist/cjs/cache/implementations/derivables/cache.js +167 -93
- package/dist/cjs/cache/implementations/derivables/cache.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.js +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-until-abort-iterable.js +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-until-abort-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-until-timeout-iterable.js +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/_shared/async-take-until-timeout-iterable.js.map +1 -1
- package/dist/cjs/collection/implementations/async-iterable-collection/async-iterable-collection.js +20 -11
- package/dist/cjs/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/cjs/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/cjs/collection/implementations/list-collection/list-collection.js.map +1 -1
- package/dist/cjs/event-bus/contracts/_module.js +2 -2
- package/dist/cjs/event-bus/contracts/_module.js.map +1 -1
- package/dist/cjs/event-bus/contracts/_shared.js +7 -0
- package/dist/cjs/event-bus/contracts/_shared.js.map +1 -1
- package/dist/cjs/event-bus/contracts/event-bus.errors.js +19 -0
- package/dist/cjs/event-bus/contracts/event-bus.errors.js.map +1 -1
- package/dist/cjs/event-bus/implementations/_shared/event-bus-adapter.test-suite.js +52 -36
- package/dist/cjs/event-bus/implementations/_shared/event-bus-adapter.test-suite.js.map +1 -1
- package/dist/cjs/event-bus/implementations/_shared/event-bus.test-suite.js +156 -120
- package/dist/cjs/event-bus/implementations/_shared/event-bus.test-suite.js.map +1 -1
- package/dist/cjs/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js +2 -1
- package/dist/cjs/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js.map +1 -1
- package/dist/cjs/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter-settings.js +26 -0
- package/dist/cjs/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter-settings.js.map +1 -0
- package/dist/cjs/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +17 -9
- package/dist/cjs/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
- package/dist/cjs/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js +3 -3
- package/dist/cjs/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
- package/dist/cjs/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js +2 -1
- package/dist/cjs/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js.map +1 -1
- package/dist/cjs/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter-settings.js +38 -0
- package/dist/cjs/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter-settings.js.map +1 -0
- package/dist/cjs/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +9 -5
- package/dist/cjs/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
- package/dist/cjs/event-bus/implementations/derivables/_module.js +3 -1
- package/dist/cjs/event-bus/implementations/derivables/_module.js.map +1 -1
- package/dist/cjs/event-bus/implementations/derivables/event-bus-factory-settings.js +71 -0
- package/dist/cjs/event-bus/implementations/derivables/event-bus-factory-settings.js.map +1 -0
- package/dist/cjs/event-bus/implementations/derivables/event-bus-factory.js +47 -18
- package/dist/cjs/event-bus/implementations/derivables/event-bus-factory.js.map +1 -1
- package/dist/cjs/event-bus/implementations/derivables/event-bus-settings.js +68 -0
- package/dist/cjs/event-bus/implementations/derivables/event-bus-settings.js.map +1 -0
- package/dist/cjs/event-bus/implementations/derivables/event-bus.js +102 -62
- package/dist/cjs/event-bus/implementations/derivables/event-bus.js.map +1 -1
- package/dist/cjs/serde/contracts/_module.js +4 -0
- package/dist/cjs/serde/contracts/_module.js.map +1 -1
- package/dist/cjs/serde/contracts/deserializer.contract.js +3 -0
- package/dist/cjs/serde/contracts/deserializer.contract.js.map +1 -0
- package/dist/cjs/serde/contracts/flexible-serde.contract.js +3 -0
- package/dist/cjs/serde/contracts/flexible-serde.contract.js.map +1 -0
- package/dist/cjs/serde/contracts/serializable.contract.js +3 -0
- package/dist/cjs/serde/contracts/serializable.contract.js.map +1 -0
- package/dist/cjs/serde/contracts/serializer.contract.js +3 -0
- package/dist/cjs/serde/contracts/serializer.contract.js.map +1 -0
- package/dist/cjs/serde/implementations/_module.js +1 -0
- package/dist/cjs/serde/implementations/_module.js.map +1 -1
- package/dist/cjs/serde/implementations/_shared/test-utilities/_module.js +1 -0
- package/dist/cjs/serde/implementations/_shared/test-utilities/_module.js.map +1 -1
- package/dist/cjs/serde/implementations/_shared/test-utilities/flexible-serde.test-suite.js +69 -0
- package/dist/cjs/serde/implementations/_shared/test-utilities/flexible-serde.test-suite.js.map +1 -0
- package/dist/cjs/serde/implementations/_shared/test-utilities/serde.test-suite.js +35 -60
- package/dist/cjs/serde/implementations/_shared/test-utilities/serde.test-suite.js.map +1 -1
- package/dist/cjs/serde/implementations/no-op-serde/_module.js +18 -0
- package/dist/cjs/serde/implementations/no-op-serde/_module.js.map +1 -0
- package/dist/cjs/serde/implementations/no-op-serde/no-op-serde.js +19 -0
- package/dist/cjs/serde/implementations/no-op-serde/no-op-serde.js.map +1 -0
- package/dist/cjs/serde/implementations/super-json-serde/super-json-serde.js +57 -111
- package/dist/cjs/serde/implementations/super-json-serde/super-json-serde.js.map +1 -1
- package/dist/cjs/utilities/contracts/_module.js +2 -0
- package/dist/cjs/utilities/contracts/_module.js.map +1 -1
- package/dist/cjs/utilities/contracts/buildable.contract.js +3 -0
- package/dist/cjs/utilities/contracts/buildable.contract.js.map +1 -0
- package/dist/cjs/utilities/contracts/serialized-error.contract.js +3 -0
- package/dist/cjs/utilities/contracts/serialized-error.contract.js.map +1 -0
- package/dist/cjs/utilities/errors.js +10 -10
- package/dist/cjs/utilities/errors.js.map +1 -1
- package/dist/cjs/utilities/functions.js +4 -0
- package/dist/cjs/utilities/functions.js.map +1 -1
- package/dist/cjs/utilities/time-span/time-span.js.map +1 -1
- package/dist/esm/async/_module.js +1 -1
- package/dist/esm/async/_module.js.map +1 -1
- package/dist/esm/async/backof-policies/_module.js +1 -0
- package/dist/esm/async/backof-policies/_module.js.map +1 -1
- package/dist/esm/async/utilities/_module.js +3 -0
- package/dist/esm/async/utilities/_module.js.map +1 -1
- package/dist/esm/async/utilities/lazy-promise/lazy-promise.js +16 -22
- package/dist/esm/async/utilities/lazy-promise/lazy-promise.js.map +1 -1
- package/dist/esm/cache/contracts/cache.errors.js +19 -0
- package/dist/esm/cache/contracts/cache.errors.js.map +1 -1
- package/dist/esm/cache/contracts/cache.events.js +147 -0
- package/dist/esm/cache/contracts/cache.events.js.map +1 -1
- package/dist/esm/cache/implementations/_shared/_module.js +1 -0
- package/dist/esm/cache/implementations/_shared/_module.js.map +1 -1
- package/dist/esm/cache/implementations/_shared/cache-adapter.test-suite.js.map +1 -1
- package/dist/esm/cache/implementations/_shared/cache.test-suite.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.js +7 -5
- package/dist/esm/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/libsql-cache-adapter/_module.js +2 -1
- package/dist/esm/cache/implementations/adapters/libsql-cache-adapter/_module.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter-settings.js +52 -0
- package/dist/esm/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter-settings.js.map +1 -0
- package/dist/esm/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.js +17 -13
- package/dist/esm/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/memory-cache-adapter/_module.js +1 -0
- package/dist/esm/cache/implementations/adapters/memory-cache-adapter/_module.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter-settings.js +22 -0
- package/dist/esm/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter-settings.js.map +1 -0
- package/dist/esm/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js +11 -3
- package/dist/esm/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/mongodb-cache-adapter/_module.js +2 -1
- package/dist/esm/cache/implementations/adapters/mongodb-cache-adapter/_module.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-settings.js +40 -0
- package/dist/esm/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-settings.js.map +1 -0
- package/dist/esm/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js +21 -8
- package/dist/esm/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/redis-cache-adapter/_module.js +1 -0
- package/dist/esm/cache/implementations/adapters/redis-cache-adapter/_module.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-settings.js +28 -0
- package/dist/esm/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-settings.js.map +1 -0
- package/dist/esm/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js +28 -21
- package/dist/esm/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/sqlite-cache-adapter/_module.js +1 -0
- package/dist/esm/cache/implementations/adapters/sqlite-cache-adapter/_module.js.map +1 -1
- package/dist/esm/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter-settings.js +52 -0
- package/dist/esm/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter-settings.js.map +1 -0
- package/dist/esm/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.js +17 -13
- package/dist/esm/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.js.map +1 -1
- package/dist/esm/cache/implementations/derivables/_module.js +3 -1
- package/dist/esm/cache/implementations/derivables/_module.js.map +1 -1
- package/dist/esm/cache/implementations/derivables/cache-factory-settings.js +79 -0
- package/dist/esm/cache/implementations/derivables/cache-factory-settings.js.map +1 -0
- package/dist/esm/cache/implementations/derivables/cache-factory.js +53 -19
- package/dist/esm/cache/implementations/derivables/cache-factory.js.map +1 -1
- package/dist/esm/cache/implementations/derivables/cache-settings.js +70 -0
- package/dist/esm/cache/implementations/derivables/cache-settings.js.map +1 -0
- package/dist/esm/cache/implementations/derivables/cache.js +146 -72
- package/dist/esm/cache/implementations/derivables/cache.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.js +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-until-abort-iterable.js +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-until-abort-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-until-timeout-iterable.js +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/_shared/async-take-until-timeout-iterable.js.map +1 -1
- package/dist/esm/collection/implementations/async-iterable-collection/async-iterable-collection.js +20 -11
- package/dist/esm/collection/implementations/async-iterable-collection/async-iterable-collection.js.map +1 -1
- package/dist/esm/collection/implementations/iterable-collection/iterable-collection.js.map +1 -1
- package/dist/esm/collection/implementations/list-collection/list-collection.js.map +1 -1
- package/dist/esm/event-bus/contracts/_module.js +2 -2
- package/dist/esm/event-bus/contracts/_module.js.map +1 -1
- package/dist/esm/event-bus/contracts/_shared.js +5 -0
- package/dist/esm/event-bus/contracts/_shared.js.map +1 -1
- package/dist/esm/event-bus/contracts/event-bus.errors.js +19 -0
- package/dist/esm/event-bus/contracts/event-bus.errors.js.map +1 -1
- package/dist/esm/event-bus/implementations/_shared/event-bus-adapter.test-suite.js +45 -29
- package/dist/esm/event-bus/implementations/_shared/event-bus-adapter.test-suite.js.map +1 -1
- package/dist/esm/event-bus/implementations/_shared/event-bus.test-suite.js +143 -107
- package/dist/esm/event-bus/implementations/_shared/event-bus.test-suite.js.map +1 -1
- package/dist/esm/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js +2 -1
- package/dist/esm/event-bus/implementations/adapters/memory-event-bus-adapter/_module.js.map +1 -1
- package/dist/esm/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter-settings.js +22 -0
- package/dist/esm/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter-settings.js.map +1 -0
- package/dist/esm/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js +17 -9
- package/dist/esm/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.js.map +1 -1
- package/dist/esm/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js +3 -3
- package/dist/esm/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.js.map +1 -1
- package/dist/esm/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js +2 -1
- package/dist/esm/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.js.map +1 -1
- package/dist/esm/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter-settings.js +34 -0
- package/dist/esm/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter-settings.js.map +1 -0
- package/dist/esm/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js +10 -6
- package/dist/esm/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.js.map +1 -1
- package/dist/esm/event-bus/implementations/derivables/_module.js +3 -1
- package/dist/esm/event-bus/implementations/derivables/_module.js.map +1 -1
- package/dist/esm/event-bus/implementations/derivables/event-bus-factory-settings.js +67 -0
- package/dist/esm/event-bus/implementations/derivables/event-bus-factory-settings.js.map +1 -0
- package/dist/esm/event-bus/implementations/derivables/event-bus-factory.js +48 -19
- package/dist/esm/event-bus/implementations/derivables/event-bus-factory.js.map +1 -1
- package/dist/esm/event-bus/implementations/derivables/event-bus-settings.js +64 -0
- package/dist/esm/event-bus/implementations/derivables/event-bus-settings.js.map +1 -0
- package/dist/esm/event-bus/implementations/derivables/event-bus.js +104 -64
- package/dist/esm/event-bus/implementations/derivables/event-bus.js.map +1 -1
- package/dist/esm/serde/contracts/_module.js +4 -0
- package/dist/esm/serde/contracts/_module.js.map +1 -1
- package/dist/esm/serde/contracts/deserializer.contract.js +1 -0
- package/dist/esm/serde/contracts/deserializer.contract.js.map +1 -0
- package/dist/esm/serde/contracts/flexible-serde.contract.js +1 -0
- package/dist/esm/serde/contracts/flexible-serde.contract.js.map +1 -0
- package/dist/esm/serde/contracts/serializable.contract.js +1 -0
- package/dist/esm/serde/contracts/serializable.contract.js.map +1 -0
- package/dist/esm/serde/contracts/serializer.contract.js +1 -0
- package/dist/esm/serde/contracts/serializer.contract.js.map +1 -0
- package/dist/esm/serde/implementations/_module.js +1 -0
- package/dist/esm/serde/implementations/_module.js.map +1 -1
- package/dist/esm/serde/implementations/_shared/test-utilities/_module.js +1 -0
- package/dist/esm/serde/implementations/_shared/test-utilities/_module.js.map +1 -1
- package/dist/esm/serde/implementations/_shared/test-utilities/flexible-serde.test-suite.js +66 -0
- package/dist/esm/serde/implementations/_shared/test-utilities/flexible-serde.test-suite.js.map +1 -0
- package/dist/esm/serde/implementations/_shared/test-utilities/serde.test-suite.js +35 -60
- package/dist/esm/serde/implementations/_shared/test-utilities/serde.test-suite.js.map +1 -1
- package/dist/esm/serde/implementations/no-op-serde/_module.js +2 -0
- package/dist/esm/serde/implementations/no-op-serde/_module.js.map +1 -0
- package/dist/esm/serde/implementations/no-op-serde/no-op-serde.js +15 -0
- package/dist/esm/serde/implementations/no-op-serde/no-op-serde.js.map +1 -0
- package/dist/esm/serde/implementations/super-json-serde/super-json-serde.js +57 -111
- package/dist/esm/serde/implementations/super-json-serde/super-json-serde.js.map +1 -1
- package/dist/esm/utilities/contracts/_module.js +2 -0
- package/dist/esm/utilities/contracts/_module.js.map +1 -1
- package/dist/esm/utilities/contracts/buildable.contract.js +1 -0
- package/dist/esm/utilities/contracts/buildable.contract.js.map +1 -0
- package/dist/esm/utilities/contracts/serialized-error.contract.js +1 -0
- package/dist/esm/utilities/contracts/serialized-error.contract.js.map +1 -0
- package/dist/esm/utilities/errors.js +7 -7
- package/dist/esm/utilities/errors.js.map +1 -1
- package/dist/esm/utilities/functions.js +3 -0
- package/dist/esm/utilities/functions.js.map +1 -1
- package/dist/esm/utilities/time-span/time-span.js.map +1 -1
- package/dist/types/async/_module.d.ts +1 -1
- package/dist/types/async/backof-policies/_module.d.ts +1 -1
- package/dist/types/async/utilities/_module.d.ts +3 -0
- package/dist/types/async/utilities/lazy-promise/lazy-promise.d.ts +36 -46
- package/dist/types/cache/contracts/cache-factory.contract.d.ts +10 -23
- package/dist/types/cache/contracts/cache.contract.d.ts +365 -8
- package/dist/types/cache/contracts/cache.errors.d.ts +11 -4
- package/dist/types/cache/contracts/cache.events.d.ts +150 -38
- package/dist/types/cache/implementations/_shared/_module.d.ts +1 -0
- package/dist/types/cache/implementations/_shared/cache-adapter.test-suite.d.ts +10 -8
- package/dist/types/cache/implementations/_shared/cache.test-suite.d.ts +15 -9
- package/dist/types/cache/implementations/adapters/kysely-sqlite-cache-adapter/kysely-sqlite-cache-adapter.d.ts +4 -3
- package/dist/types/cache/implementations/adapters/libsql-cache-adapter/_module.d.ts +2 -1
- package/dist/types/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter-settings.d.ts +48 -0
- package/dist/types/cache/implementations/adapters/libsql-cache-adapter/libsql-cache-adapter.d.ts +49 -37
- package/dist/types/cache/implementations/adapters/memory-cache-adapter/_module.d.ts +1 -0
- package/dist/types/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter-settings.d.ts +27 -0
- package/dist/types/cache/implementations/adapters/memory-cache-adapter/memory-cache-adapter.d.ts +41 -17
- package/dist/types/cache/implementations/adapters/mongodb-cache-adapter/_module.d.ts +2 -1
- package/dist/types/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter-settings.d.ts +51 -0
- package/dist/types/cache/implementations/adapters/mongodb-cache-adapter/mongodb-cache-adapter.d.ts +59 -45
- package/dist/types/cache/implementations/adapters/no-op-cache-adapter/no-op-cache-adapter.d.ts +1 -1
- package/dist/types/cache/implementations/adapters/redis-cache-adapter/_module.d.ts +1 -0
- package/dist/types/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter-settings.d.ts +32 -0
- package/dist/types/cache/implementations/adapters/redis-cache-adapter/redis-cache-adapter.d.ts +41 -26
- package/dist/types/cache/implementations/adapters/sqlite-cache-adapter/_module.d.ts +1 -0
- package/dist/types/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter-settings.d.ts +48 -0
- package/dist/types/cache/implementations/adapters/sqlite-cache-adapter/sqlite-cache-adapter.d.ts +49 -37
- package/dist/types/cache/implementations/derivables/_module.d.ts +3 -1
- package/dist/types/cache/implementations/derivables/cache-factory-settings.d.ts +108 -0
- package/dist/types/cache/implementations/derivables/cache-factory.d.ts +67 -39
- package/dist/types/cache/implementations/derivables/cache-settings.d.ts +100 -0
- package/dist/types/cache/implementations/derivables/cache.d.ts +95 -36
- package/dist/types/collection/contracts/async-collection.contract.d.ts +1247 -666
- package/dist/types/collection/contracts/collection.contract.d.ts +1195 -638
- package/dist/types/collection/implementations/async-iterable-collection/_shared/async-retry-iterable.d.ts +1 -1
- package/dist/types/collection/implementations/async-iterable-collection/async-iterable-collection.d.ts +190 -4
- package/dist/types/collection/implementations/iterable-collection/iterable-collection.d.ts +138 -1
- package/dist/types/collection/implementations/list-collection/list-collection.d.ts +138 -1
- package/dist/types/event-bus/contracts/_module.d.ts +2 -2
- package/dist/types/event-bus/contracts/_shared.d.ts +11 -0
- package/dist/types/event-bus/contracts/event-bus-adapter.contract.d.ts +4 -6
- package/dist/types/event-bus/contracts/event-bus-factory.contract.d.ts +37 -31
- package/dist/types/event-bus/contracts/event-bus.contract.d.ts +24 -32
- package/dist/types/event-bus/contracts/event-bus.errors.d.ts +8 -1
- package/dist/types/event-bus/implementations/_shared/event-bus-adapter.test-suite.d.ts +6 -3
- package/dist/types/event-bus/implementations/_shared/event-bus.test-suite.d.ts +10 -7
- package/dist/types/event-bus/implementations/adapters/memory-event-bus-adapter/_module.d.ts +2 -1
- package/dist/types/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter-settings.d.ts +28 -0
- package/dist/types/event-bus/implementations/adapters/memory-event-bus-adapter/memory-event-bus-adapter.d.ts +48 -22
- package/dist/types/event-bus/implementations/adapters/no-op-event-bus-adapter/no-op-event-bus-adapter.d.ts +4 -4
- package/dist/types/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/_module.d.ts +2 -1
- package/dist/types/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter-settings.d.ts +36 -0
- package/dist/types/event-bus/implementations/adapters/redis-pub-sub-event-bus-adapter/redis-pub-sub-event-bus-adapter.d.ts +43 -31
- package/dist/types/event-bus/implementations/derivables/_module.d.ts +3 -1
- package/dist/types/event-bus/implementations/derivables/event-bus-factory-settings.d.ts +92 -0
- package/dist/types/event-bus/implementations/derivables/event-bus-factory.d.ts +43 -22
- package/dist/types/event-bus/implementations/derivables/event-bus-settings.d.ts +80 -0
- package/dist/types/event-bus/implementations/derivables/event-bus.d.ts +46 -22
- package/dist/types/serde/contracts/_module.d.ts +4 -0
- package/dist/types/serde/contracts/deserializer.contract.d.ts +13 -0
- package/dist/types/serde/contracts/flexible-serde.contract.d.ts +120 -0
- package/dist/types/serde/contracts/serde.contract.d.ts +5 -36
- package/dist/types/serde/contracts/serializable.contract.d.ts +10 -0
- package/dist/types/serde/contracts/serializer.contract.d.ts +10 -0
- package/dist/types/serde/implementations/_module.d.ts +1 -0
- package/dist/types/serde/implementations/_shared/test-utilities/_module.d.ts +1 -0
- package/dist/types/serde/implementations/_shared/test-utilities/flexible-serde.test-suite.d.ts +17 -0
- package/dist/types/serde/implementations/_shared/test-utilities/serde.test-suite.d.ts +2 -3
- package/dist/types/serde/implementations/no-op-serde/_module.d.ts +1 -0
- package/dist/types/serde/implementations/no-op-serde/no-op-serde.d.ts +14 -0
- package/dist/types/serde/implementations/super-json-serde/super-json-serde.d.ts +23 -2
- package/dist/types/utilities/contracts/_module.d.ts +2 -0
- package/dist/types/utilities/contracts/buildable.contract.d.ts +9 -0
- package/dist/types/utilities/contracts/serialized-error.contract.d.ts +11 -0
- package/dist/types/utilities/errors.d.ts +3 -3
- package/dist/types/utilities/functions.d.ts +4 -0
- package/dist/types/utilities/time-span/time-span.d.ts +2 -2
- package/dist/types/utilities/types.d.ts +1 -2
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.SuperJsonSerde = void 0;
|
|
4
|
+
const _module_1 = require("../../../utilities/_module");
|
|
4
5
|
const serde_errors_1 = require("../../../serde/contracts/serde.errors");
|
|
5
6
|
const superjson_cjs_1 = require("superjson-cjs");
|
|
6
7
|
class SuperJsonSerde {
|
|
@@ -8,8 +9,22 @@ class SuperJsonSerde {
|
|
|
8
9
|
constructor() {
|
|
9
10
|
this.registerAll();
|
|
10
11
|
}
|
|
11
|
-
|
|
12
|
+
registerCustom(transformer) {
|
|
12
13
|
this.superJson.registerCustom({
|
|
14
|
+
isApplicable(value) {
|
|
15
|
+
return transformer.isApplicable(value);
|
|
16
|
+
},
|
|
17
|
+
serialize(deserializedValue) {
|
|
18
|
+
return transformer.serialize(deserializedValue);
|
|
19
|
+
},
|
|
20
|
+
deserialize(serializedValue) {
|
|
21
|
+
return transformer.deserialize(serializedValue);
|
|
22
|
+
},
|
|
23
|
+
}, transformer.name);
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
registerBuffer() {
|
|
27
|
+
this.registerCustom({
|
|
13
28
|
isApplicable(value) {
|
|
14
29
|
return value instanceof Buffer;
|
|
15
30
|
},
|
|
@@ -31,207 +46,136 @@ class SuperJsonSerde {
|
|
|
31
46
|
buffer: deserializedValue.toString("base64"),
|
|
32
47
|
};
|
|
33
48
|
},
|
|
34
|
-
|
|
49
|
+
name: Buffer.name,
|
|
50
|
+
});
|
|
35
51
|
}
|
|
36
52
|
registerUint8Array() {
|
|
37
|
-
this.
|
|
53
|
+
this.registerCustom({
|
|
38
54
|
isApplicable(value) {
|
|
39
55
|
return value instanceof Uint8Array;
|
|
40
56
|
},
|
|
41
57
|
deserialize(serializedValue) {
|
|
42
|
-
|
|
43
|
-
typeof serializedValue === "object" &&
|
|
44
|
-
serializedValue !== null;
|
|
45
|
-
if (!isObject) {
|
|
46
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
47
|
-
}
|
|
48
|
-
const { buffer } = serializedValue;
|
|
49
|
-
if (typeof buffer !== "string") {
|
|
50
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
51
|
-
}
|
|
52
|
-
return new Uint8Array(Buffer.from(buffer, "base64"));
|
|
58
|
+
return new Uint8Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
53
59
|
},
|
|
54
60
|
serialize(deserializedValue) {
|
|
55
61
|
return {
|
|
56
62
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
57
63
|
};
|
|
58
64
|
},
|
|
59
|
-
|
|
65
|
+
name: Uint8Array.name,
|
|
66
|
+
});
|
|
60
67
|
}
|
|
61
68
|
registerInt8Array() {
|
|
62
|
-
this.
|
|
69
|
+
this.registerCustom({
|
|
63
70
|
isApplicable(value) {
|
|
64
71
|
return value instanceof Int8Array;
|
|
65
72
|
},
|
|
66
73
|
deserialize(serializedValue) {
|
|
67
|
-
|
|
68
|
-
typeof serializedValue === "object" &&
|
|
69
|
-
serializedValue !== null;
|
|
70
|
-
if (!isObject) {
|
|
71
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
72
|
-
}
|
|
73
|
-
const { buffer } = serializedValue;
|
|
74
|
-
if (typeof buffer !== "string") {
|
|
75
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
76
|
-
}
|
|
77
|
-
return new Int8Array(Buffer.from(buffer, "base64"));
|
|
74
|
+
return new Int8Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
78
75
|
},
|
|
79
76
|
serialize(deserializedValue) {
|
|
80
77
|
return {
|
|
81
78
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
82
79
|
};
|
|
83
80
|
},
|
|
84
|
-
|
|
81
|
+
name: Int8Array.name,
|
|
82
|
+
});
|
|
85
83
|
}
|
|
86
84
|
registerUint16Array() {
|
|
87
|
-
this.
|
|
85
|
+
this.registerCustom({
|
|
88
86
|
isApplicable(value) {
|
|
89
87
|
return value instanceof Uint16Array;
|
|
90
88
|
},
|
|
91
89
|
deserialize(serializedValue) {
|
|
92
|
-
|
|
93
|
-
typeof serializedValue === "object" &&
|
|
94
|
-
serializedValue !== null;
|
|
95
|
-
if (!isObject) {
|
|
96
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
97
|
-
}
|
|
98
|
-
const { buffer } = serializedValue;
|
|
99
|
-
if (typeof buffer !== "string") {
|
|
100
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
101
|
-
}
|
|
102
|
-
return new Uint16Array(Buffer.from(buffer, "base64"));
|
|
90
|
+
return new Uint16Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
103
91
|
},
|
|
104
92
|
serialize(deserializedValue) {
|
|
105
93
|
return {
|
|
106
94
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
107
95
|
};
|
|
108
96
|
},
|
|
109
|
-
|
|
97
|
+
name: Uint16Array.name,
|
|
98
|
+
});
|
|
110
99
|
}
|
|
111
100
|
registerInt16Array() {
|
|
112
|
-
this.
|
|
101
|
+
this.registerCustom({
|
|
113
102
|
isApplicable(value) {
|
|
114
103
|
return value instanceof Int16Array;
|
|
115
104
|
},
|
|
116
105
|
deserialize(serializedValue) {
|
|
117
|
-
|
|
118
|
-
typeof serializedValue === "object" &&
|
|
119
|
-
serializedValue !== null;
|
|
120
|
-
if (!isObject) {
|
|
121
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
122
|
-
}
|
|
123
|
-
const { buffer } = serializedValue;
|
|
124
|
-
if (typeof buffer !== "string") {
|
|
125
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
126
|
-
}
|
|
127
|
-
return new Int16Array(Buffer.from(buffer, "base64"));
|
|
106
|
+
return new Int16Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
128
107
|
},
|
|
129
108
|
serialize(deserializedValue) {
|
|
130
109
|
return {
|
|
131
110
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
132
111
|
};
|
|
133
112
|
},
|
|
134
|
-
|
|
113
|
+
name: Int16Array.name,
|
|
114
|
+
});
|
|
135
115
|
}
|
|
136
116
|
registerUint32Array() {
|
|
137
|
-
this.
|
|
117
|
+
this.registerCustom({
|
|
138
118
|
isApplicable(value) {
|
|
139
119
|
return value instanceof Uint32Array;
|
|
140
120
|
},
|
|
141
121
|
deserialize(serializedValue) {
|
|
142
|
-
|
|
143
|
-
typeof serializedValue === "object" &&
|
|
144
|
-
serializedValue !== null;
|
|
145
|
-
if (!isObject) {
|
|
146
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
147
|
-
}
|
|
148
|
-
const { buffer } = serializedValue;
|
|
149
|
-
if (typeof buffer !== "string") {
|
|
150
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
151
|
-
}
|
|
152
|
-
return new Uint32Array(Buffer.from(buffer, "base64"));
|
|
122
|
+
return new Uint32Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
153
123
|
},
|
|
154
124
|
serialize(deserializedValue) {
|
|
155
125
|
return {
|
|
156
126
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
157
127
|
};
|
|
158
128
|
},
|
|
159
|
-
|
|
129
|
+
name: Uint32Array.name,
|
|
130
|
+
});
|
|
160
131
|
}
|
|
161
132
|
registerInt32Array() {
|
|
162
|
-
this.
|
|
133
|
+
this.registerCustom({
|
|
163
134
|
isApplicable(value) {
|
|
164
135
|
return value instanceof Int32Array;
|
|
165
136
|
},
|
|
166
137
|
deserialize(serializedValue) {
|
|
167
|
-
|
|
168
|
-
typeof serializedValue === "object" &&
|
|
169
|
-
serializedValue !== null;
|
|
170
|
-
if (!isObject) {
|
|
171
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
172
|
-
}
|
|
173
|
-
const { buffer } = serializedValue;
|
|
174
|
-
if (typeof buffer !== "string") {
|
|
175
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
176
|
-
}
|
|
177
|
-
return new Int32Array(Buffer.from(buffer, "base64"));
|
|
138
|
+
return new Int32Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
178
139
|
},
|
|
179
140
|
serialize(deserializedValue) {
|
|
180
141
|
return {
|
|
181
142
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
182
143
|
};
|
|
183
144
|
},
|
|
184
|
-
|
|
145
|
+
name: Int32Array.name,
|
|
146
|
+
});
|
|
185
147
|
}
|
|
186
148
|
registerFloat32Array() {
|
|
187
|
-
this.
|
|
149
|
+
this.registerCustom({
|
|
188
150
|
isApplicable(value) {
|
|
189
151
|
return value instanceof Float32Array;
|
|
190
152
|
},
|
|
191
153
|
deserialize(serializedValue) {
|
|
192
|
-
|
|
193
|
-
typeof serializedValue === "object" &&
|
|
194
|
-
serializedValue !== null;
|
|
195
|
-
if (!isObject) {
|
|
196
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
197
|
-
}
|
|
198
|
-
const { buffer } = serializedValue;
|
|
199
|
-
if (typeof buffer !== "string") {
|
|
200
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
201
|
-
}
|
|
202
|
-
return new Float32Array(Buffer.from(buffer, "base64"));
|
|
154
|
+
return new Float32Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
203
155
|
},
|
|
204
156
|
serialize(deserializedValue) {
|
|
205
157
|
return {
|
|
206
158
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
207
159
|
};
|
|
208
160
|
},
|
|
209
|
-
|
|
161
|
+
name: Float32Array.name,
|
|
162
|
+
});
|
|
210
163
|
}
|
|
211
164
|
registerFloat64Array() {
|
|
212
|
-
this.
|
|
165
|
+
this.registerCustom({
|
|
213
166
|
isApplicable(value) {
|
|
214
167
|
return value instanceof Float64Array;
|
|
215
168
|
},
|
|
216
169
|
deserialize(serializedValue) {
|
|
217
|
-
|
|
218
|
-
typeof serializedValue === "object" &&
|
|
219
|
-
serializedValue !== null;
|
|
220
|
-
if (!isObject) {
|
|
221
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not object");
|
|
222
|
-
}
|
|
223
|
-
const { buffer } = serializedValue;
|
|
224
|
-
if (typeof buffer !== "string") {
|
|
225
|
-
throw new serde_errors_1.DeserializationError("Serialized value is not a string");
|
|
226
|
-
}
|
|
227
|
-
return new Float64Array(Buffer.from(buffer, "base64"));
|
|
170
|
+
return new Float64Array(Buffer.from(serializedValue.buffer, "base64"));
|
|
228
171
|
},
|
|
229
172
|
serialize(deserializedValue) {
|
|
230
173
|
return {
|
|
231
174
|
buffer: Buffer.from(deserializedValue).toString("base64"),
|
|
232
175
|
};
|
|
233
176
|
},
|
|
234
|
-
|
|
177
|
+
name: Float64Array.name,
|
|
178
|
+
});
|
|
235
179
|
}
|
|
236
180
|
registerAll() {
|
|
237
181
|
this.registerBuffer();
|
|
@@ -245,17 +189,19 @@ class SuperJsonSerde {
|
|
|
245
189
|
this.registerFloat64Array();
|
|
246
190
|
}
|
|
247
191
|
registerClass(class_) {
|
|
248
|
-
this.
|
|
192
|
+
return this.registerCustom({
|
|
249
193
|
isApplicable(value) {
|
|
250
|
-
return value instanceof class_
|
|
194
|
+
return (value instanceof class_ &&
|
|
195
|
+
(0, _module_1.getConstructorName)(value) === class_.name);
|
|
251
196
|
},
|
|
252
197
|
deserialize(serializedValue) {
|
|
253
198
|
return class_.deserialize(serializedValue);
|
|
254
199
|
},
|
|
255
|
-
serialize(
|
|
256
|
-
return
|
|
200
|
+
serialize(deserializedValue) {
|
|
201
|
+
return deserializedValue.serialize();
|
|
257
202
|
},
|
|
258
|
-
|
|
203
|
+
name: class_.name,
|
|
204
|
+
});
|
|
259
205
|
}
|
|
260
206
|
serialize(value) {
|
|
261
207
|
try {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super-json-serde.js","sourceRoot":"","sources":["../../../../../src/serde/implementations/super-json-serde/super-json-serde.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"super-json-serde.js","sourceRoot":"","sources":["../../../../../src/serde/implementations/super-json-serde/super-json-serde.ts"],"names":[],"mappings":";;;AAIA,iDAAyD;AAOzD,iEAGwC;AACxC,iDAA0C;AAkC1C,MAAa,cAAc;IACN,SAAS,GAAc,IAAI,yBAAS,EAAE,CAAC;IAExD;QACI,IAAI,CAAC,WAAW,EAAE,CAAC;IACvB,CAAC;IAED,cAAc,CACV,WAAsE;QAEtE,IAAI,CAAC,SAAS,CAAC,cAAc,CACzB;YACI,YAAY,CAAC,KAAK;gBACd,OAAO,WAAW,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC;YAC3C,CAAC;YACD,SAAS,CAAC,iBAAiB;gBACvB,OAAO,WAAW,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;YACpD,CAAC;YACD,WAAW,CAAC,eAAe;gBAEvB,OAAO,WAAW,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;YACpD,CAAC;SACJ,EACD,WAAW,CAAC,IAAI,CACnB,CAAC;QACF,OAAO,IAAI,CAAC;IAChB,CAAC;IAEO,cAAc;QAClB,IAAI,CAAC,cAAc,CAAc;YAC7B,YAAY,CAAC,KAAU;gBACnB,OAAO,KAAK,YAAY,MAAM,CAAC;YACnC,CAAC;YACD,WAAW,CAAC,eAAe;gBACvB,MAAM,QAAQ,GACV,CAAC,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC;oBAC/B,OAAO,eAAe,KAAK,QAAQ;oBACnC,eAAe,KAAK,IAAI,CAAC;gBAC7B,IAAI,CAAC,QAAQ,EAAE,CAAC;oBACZ,MAAM,IAAI,mCAAoB,CAC1B,gCAAgC,CACnC,CAAC;gBACN,CAAC;gBACD,MAAM,EAAE,MAAM,EAAE,GAAG,e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C;YACpE,CAAC;YACD,IAAI,EAAE,MAAM,CAAC,IAAI;SACpB,CAAC,CAAC;IACP,CAAC;IAED,SAAS,CAAS,KAAa;QAC3B,IAAI,CAAC;YACD,OAAO,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QAC3C,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,IAAI,iCAAkB,CACxB,wBAAwB,MAAM,CAAC,KAAK,CAAC,WAAW,EAChD,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;IAED,WAAW,CAAS,KAAa;QAC7B,IAAI,CAAC;YACD,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACvC,CAAC;QAAC,OAAO,KAAc,EAAE,CAAC;YACtB,MAAM,IAAI,mCAAoB,CAC1B,0BAA0B,MAAM,CAAC,KAAK,CAAC,WAAW,EAClD,KAAK,CACR,CAAC;QACN,CAAC;IACL,CAAC;CACJ;AAhRD,wCAgRC"}
|
|
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("../../utilities/contracts/serialized-error.contract"), exports);
|
|
18
|
+
__exportStar(require("../../utilities/contracts/buildable.contract"), exports);
|
|
17
19
|
__exportStar(require("../../utilities/contracts/deinitizable.contract"), exports);
|
|
18
20
|
__exportStar(require("../../utilities/contracts/initizable.contract"), exports);
|
|
19
21
|
//# sourceMappingURL=_module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/utilities/contracts/_module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8EAA4D;AAC5D,4EAA0D"}
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/utilities/contracts/_module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kFAAgE;AAChE,2EAAyD;AACzD,8EAA4D;AAC5D,4EAA0D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buildable.contract.js","sourceRoot":"","sources":["../../../../src/utilities/contracts/buildable.contract.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"serialized-error.contract.js","sourceRoot":"","sources":["../../../../src/utilities/contracts/serialized-error.contract.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.UnregisteredAdapterError = exports.DefaultAdapterNotDefinedError = exports.FactoryError = void 0;
|
|
4
4
|
class FactoryError extends Error {
|
|
5
5
|
constructor(message, cause) {
|
|
6
6
|
super(message, { cause });
|
|
@@ -8,18 +8,18 @@ class FactoryError extends Error {
|
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
exports.FactoryError = FactoryError;
|
|
11
|
-
class
|
|
11
|
+
class DefaultAdapterNotDefinedError extends FactoryError {
|
|
12
12
|
constructor(factoryName) {
|
|
13
|
-
super(`Default
|
|
14
|
-
this.name =
|
|
13
|
+
super(`Default adapter not set for factory "${factoryName}"`);
|
|
14
|
+
this.name = DefaultAdapterNotDefinedError.name;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
18
|
-
class
|
|
19
|
-
constructor(
|
|
20
|
-
super(`Unregistered
|
|
21
|
-
this.name =
|
|
17
|
+
exports.DefaultAdapterNotDefinedError = DefaultAdapterNotDefinedError;
|
|
18
|
+
class UnregisteredAdapterError extends FactoryError {
|
|
19
|
+
constructor(adapterName) {
|
|
20
|
+
super(`Unregistered adapter "${adapterName}"`);
|
|
21
|
+
this.name = UnregisteredAdapterError.name;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.UnregisteredAdapterError = UnregisteredAdapterError;
|
|
25
25
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/utilities/errors.ts"],"names":[],"mappings":";;;AAOA,MAAa,YAAa,SAAQ,KAAK;IACnC,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;IAClC,CAAC;CACJ;AALD,oCAKC;AAKD,MAAa,
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../src/utilities/errors.ts"],"names":[],"mappings":";;;AAOA,MAAa,YAAa,SAAQ,KAAK;IACnC,YAAY,OAAe,EAAE,KAAe;QACxC,KAAK,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1B,IAAI,CAAC,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;IAClC,CAAC;CACJ;AALD,oCAKC;AAKD,MAAa,6BAA8B,SAAQ,YAAY;IAC3D,YAAY,WAAmB;QAC3B,KAAK,CAAC,wCAAwC,WAAW,GAAG,CAAC,CAAC;QAC9D,IAAI,CAAC,IAAI,GAAG,6BAA6B,CAAC,IAAI,CAAC;IACnD,CAAC;CACJ;AALD,sEAKC;AAKD,MAAa,wBAAyB,SAAQ,YAAY;IACtD,YAAY,WAAmB;QAC3B,KAAK,CAAC,yBAAyB,WAAW,GAAG,CAAC,CAAC;QAC/C,IAAI,CAAC,IAAI,GAAG,wBAAwB,CAAC,IAAI,CAAC;IAC9C,CAAC;CACJ;AALD,4DAKC"}
|
|
@@ -5,6 +5,7 @@ exports.simplifyAsyncLazyable = simplifyAsyncLazyable;
|
|
|
5
5
|
exports.isArrayEmpty = isArrayEmpty;
|
|
6
6
|
exports.isObjectEmpty = isObjectEmpty;
|
|
7
7
|
exports.simplifyGroupName = simplifyGroupName;
|
|
8
|
+
exports.getConstructorName = getConstructorName;
|
|
8
9
|
function simplifyLazyable(lazyable) {
|
|
9
10
|
if (typeof lazyable === "function") {
|
|
10
11
|
const getValue = lazyable;
|
|
@@ -32,4 +33,7 @@ function simplifyGroupName(name) {
|
|
|
32
33
|
}
|
|
33
34
|
return name;
|
|
34
35
|
}
|
|
36
|
+
function getConstructorName(instance) {
|
|
37
|
+
return instance.constructor.name;
|
|
38
|
+
}
|
|
35
39
|
//# sourceMappingURL=functions.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/utilities/functions.ts"],"names":[],"mappings":";;AAUA,4CAMC;AAID,sDAQC;AAKD,oCAEC;AAID,sCASC;AAKD,8CAKC;
|
|
1
|
+
{"version":3,"file":"functions.js","sourceRoot":"","sources":["../../../src/utilities/functions.ts"],"names":[],"mappings":";;AAUA,4CAMC;AAID,sDAQC;AAKD,oCAEC;AAID,sCASC;AAKD,8CAKC;AAKD,gDAEC;AAvDD,SAAgB,gBAAgB,CAAS,QAA0B;IAC/D,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,QAAwB,CAAC;QAC1C,OAAO,QAAQ,EAAE,CAAC;IACtB,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC;AAIM,KAAK,UAAU,qBAAqB,CACvC,QAA+B;IAE/B,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;QACjC,MAAM,QAAQ,GAAG,QAAiC,CAAC;QACnD,OAAO,QAAQ,EAAE,CAAC;IACtB,CAAC;IACD,OAAO,QAAQ,CAAC;AACpB,CAAC;AAKD,SAAgB,YAAY,CAAC,KAAY;IACrC,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC;AAC9B,CAAC;AAID,SAAgB,aAAa,CAEzB,MAA6C;IAE7C,OAAO,CAEH,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,KAAK,SAAS,CAAC;SAC5D,MAAM,KAAK,CAAC,CACpB,CAAC;AACN,CAAC;AAKD,SAAgB,iBAAiB,CAAC,IAAuB;IACrD,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QACtB,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1D,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AAKD,SAAgB,kBAAkB,CAAC,QAAgB;IAC/C,OAAO,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC;AACrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"time-span.js","sourceRoot":"","sources":["../../../../src/utilities/time-span/time-span.ts"],"names":[],"mappings":";;;AAkBA,MAAa,QAAQ;
|
|
1
|
+
{"version":3,"file":"time-span.js","sourceRoot":"","sources":["../../../../src/utilities/time-span/time-span.ts"],"names":[],"mappings":";;;AAkBA,MAAa,QAAQ;IAUoB;IAT7B,MAAM,CAAC,oBAAoB,GAAG,IAAI,CAAC;IACnC,MAAM,CAAC,oBAAoB,GAAG,EAAE,GAAG,QAAQ,CAAC,oBAAoB,CAAC;IACjE,MAAM,CAAC,kBAAkB,GAAG,EAAE,GAAG,QAAQ,CAAC,oBAAoB,CAAC;IAC/D,MAAM,CAAC,iBAAiB,GAAG,EAAE,GAAG,QAAQ,CAAC,kBAAkB,CAAC;IAEpE,MAAM,CAAC,WAAW,CAAC,eAAoC;QACnD,OAAO,IAAI,QAAQ,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IAClD,CA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CAAC,OAAO,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC;IAC/D,CAAC;;AAlJL,4BAmJC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../src/async/_module.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../src/async/_module.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from "../../async/backof-policies/_shared";
|
|
1
2
|
export * from "../../async/backof-policies/constant-backoff-policy/_module";
|
|
2
3
|
export * from "../../async/backof-policies/exponential-backoff-policy/_module";
|
|
3
4
|
export * from "../../async/backof-policies/linear-backoff-policy/_module";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/async/backof-policies/_module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/async/backof-policies/_module.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,yDAAyD,CAAC;AACxE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,uDAAuD,CAAC;AACtE,cAAc,2DAA2D,CAAC"}
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
export * from "../../async/utilities/abort/_module";
|
|
1
2
|
export * from "../../async/utilities/delay/_module";
|
|
2
3
|
export * from "../../async/utilities/lazy-promise/_module";
|
|
4
|
+
export * from "../../async/utilities/retry/_module";
|
|
5
|
+
export * from "../../async/utilities/timeout/_module";
|
|
3
6
|
//# sourceMappingURL=_module.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/async/utilities/_module.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC"}
|
|
1
|
+
{"version":3,"file":"_module.js","sourceRoot":"","sources":["../../../../src/async/utilities/_module.ts"],"names":[],"mappings":"AAAA,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,wCAAwC,CAAC;AACvD,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC"}
|
|
@@ -3,20 +3,20 @@ import { timeoutAndFail } from "../../../async/utilities/timeout/_module";
|
|
|
3
3
|
import { abortAndFail } from "../../../async/utilities/abort/_module";
|
|
4
4
|
export class LazyPromise {
|
|
5
5
|
asyncFn;
|
|
6
|
-
static wrapFn(fn
|
|
7
|
-
return (...parameters) => new LazyPromise(() => fn(...parameters)
|
|
6
|
+
static wrapFn(fn) {
|
|
7
|
+
return (...parameters) => new LazyPromise(() => fn(...parameters));
|
|
8
8
|
}
|
|
9
|
-
static all(promises
|
|
10
|
-
return new LazyPromise(async () => Promise.all(promises)
|
|
9
|
+
static all(promises) {
|
|
10
|
+
return new LazyPromise(async () => Promise.all(promises));
|
|
11
11
|
}
|
|
12
|
-
static allSettled(promises
|
|
13
|
-
return new LazyPromise(async () => Promise.allSettled(promises)
|
|
12
|
+
static allSettled(promises) {
|
|
13
|
+
return new LazyPromise(async () => Promise.allSettled(promises));
|
|
14
14
|
}
|
|
15
|
-
static race(promises
|
|
16
|
-
return new LazyPromise(async () => Promise.race(promises)
|
|
15
|
+
static race(promises) {
|
|
16
|
+
return new LazyPromise(async () => Promise.race(promises));
|
|
17
17
|
}
|
|
18
|
-
static any(promises
|
|
19
|
-
return new LazyPromise(async () => Promise.any(promises)
|
|
18
|
+
static any(promises) {
|
|
19
|
+
return new LazyPromise(async () => Promise.any(promises));
|
|
20
20
|
}
|
|
21
21
|
promise = null;
|
|
22
22
|
attempts = null;
|
|
@@ -24,14 +24,8 @@ export class LazyPromise {
|
|
|
24
24
|
retryPolicy_ = null;
|
|
25
25
|
abortSignal = null;
|
|
26
26
|
time = null;
|
|
27
|
-
constructor(asyncFn
|
|
27
|
+
constructor(asyncFn) {
|
|
28
28
|
this.asyncFn = asyncFn;
|
|
29
|
-
const { retryAttempts = null, backoffPolicy = null, retryPolicy = null, abortSignal = null, time = null, } = settings;
|
|
30
|
-
this.attempts = retryAttempts;
|
|
31
|
-
this.backoffPolicy_ = backoffPolicy;
|
|
32
|
-
this.retryPolicy_ = retryPolicy;
|
|
33
|
-
this.abortSignal = abortSignal;
|
|
34
|
-
this.time = time;
|
|
35
29
|
}
|
|
36
30
|
applyTimeout() {
|
|
37
31
|
if (this.time !== null) {
|
|
@@ -79,23 +73,23 @@ export class LazyPromise {
|
|
|
79
73
|
}
|
|
80
74
|
return this.promise.then(onfulfilled, onrejected);
|
|
81
75
|
}
|
|
82
|
-
|
|
76
|
+
setRetryAttempts(attempts) {
|
|
83
77
|
this.attempts = attempts;
|
|
84
78
|
return this;
|
|
85
79
|
}
|
|
86
|
-
|
|
80
|
+
setBackoffPolicy(policy) {
|
|
87
81
|
this.backoffPolicy_ = policy;
|
|
88
82
|
return this;
|
|
89
83
|
}
|
|
90
|
-
|
|
84
|
+
setRetryPolicy(policy) {
|
|
91
85
|
this.retryPolicy_ = policy;
|
|
92
86
|
return this;
|
|
93
87
|
}
|
|
94
|
-
|
|
88
|
+
setTimeout(time) {
|
|
95
89
|
this.time = time;
|
|
96
90
|
return this;
|
|
97
91
|
}
|
|
98
|
-
|
|
92
|
+
setAbortSignal(abortSignal) {
|
|
99
93
|
this.abortSignal = abortSignal;
|
|
100
94
|
return this;
|
|
101
95
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lazy-promise.js","sourceRoot":"","sources":["../../../../../src/async/utilities/lazy-promise/lazy-promise.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAm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