@tstdl/base 0.71.48 → 0.72.0-beta1
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/api/client/client.d.ts +3 -4
- package/api/client/client.js +33 -34
- package/api/client/client.js.map +1 -1
- package/api/client/index.d.ts +1 -1
- package/api/client/index.js +1 -17
- package/api/client/index.js.map +1 -1
- package/api/default-error-handlers.d.ts +2 -2
- package/api/default-error-handlers.js +11 -21
- package/api/default-error-handlers.js.map +1 -1
- package/api/index.d.ts +3 -3
- package/api/index.js +3 -19
- package/api/index.js.map +1 -1
- package/api/response.d.ts +2 -2
- package/api/response.js +42 -46
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +5 -5
- package/api/server/api-controller.js +11 -19
- package/api/server/api-controller.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +11 -15
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +9 -10
- package/api/server/gateway.js +60 -57
- package/api/server/gateway.js.map +1 -1
- package/api/server/index.d.ts +3 -3
- package/api/server/index.js +3 -19
- package/api/server/index.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +4 -4
- package/api/server/middlewares/allowed-methods.middleware.js +7 -11
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +3 -3
- package/api/server/middlewares/catch-error.middleware.js +3 -7
- package/api/server/middlewares/catch-error.middleware.js.map +1 -1
- package/api/server/middlewares/cors.middleware.d.ts +3 -3
- package/api/server/middlewares/cors.middleware.js +16 -21
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/index.d.ts +4 -4
- package/api/server/middlewares/index.js +4 -20
- package/api/server/middlewares/index.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +2 -2
- package/api/server/middlewares/response-time.middleware.js +5 -9
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +4 -4
- package/api/server/module.js +7 -10
- package/api/server/module.js.map +1 -1
- package/api/types.d.ts +15 -7
- package/api/types.js +8 -15
- package/api/types.js.map +1 -1
- package/application/application.d.ts +3 -3
- package/application/application.js +22 -23
- package/application/application.js.map +1 -1
- package/application/index.d.ts +1 -1
- package/application/index.js +1 -17
- package/application/index.js.map +1 -1
- package/async-iterator-symbol.js +1 -5
- package/async-iterator-symbol.js.map +1 -1
- package/collections/awaitable/awaitable-list.d.ts +1 -1
- package/collections/awaitable/awaitable-list.js +8 -13
- package/collections/awaitable/awaitable-list.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +9 -13
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +5 -9
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/awaitable/index.d.ts +3 -3
- package/collections/awaitable/index.js +3 -19
- package/collections/awaitable/index.js.map +1 -1
- package/collections/collection.js +1 -2
- package/collections/index.d.ts +6 -6
- package/collections/index.js +6 -22
- package/collections/index.js.map +1 -1
- package/collections/keyed-set.js +5 -9
- package/collections/keyed-set.js.map +1 -1
- package/collections/list.d.ts +1 -1
- package/collections/list.js +1 -2
- package/collections/observable/index.d.ts +8 -8
- package/collections/observable/index.js +8 -24
- package/collections/observable/index.js.map +1 -1
- package/collections/observable/observable-array.d.ts +2 -2
- package/collections/observable/observable-array.js +2 -6
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.d.ts +2 -2
- package/collections/observable/observable-collection-base.js +18 -23
- package/collections/observable/observable-collection-base.js.map +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-collection.js +1 -2
- package/collections/observable/observable-list-base.d.ts +3 -3
- package/collections/observable/observable-list-base.js +11 -15
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.d.ts +3 -3
- package/collections/observable/observable-list.js +1 -2
- package/collections/observable/observable-map.js +3 -7
- package/collections/observable/observable-map.js.map +1 -1
- package/collections/observable/observable-set.d.ts +2 -2
- package/collections/observable/observable-set.js +2 -6
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +3 -3
- package/collections/observable/observable-sorted-array-list.js +21 -25
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +2 -2
- package/collections/sorted-array-list.js +17 -21
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-list.d.ts +1 -1
- package/collections/sorted-list.js +1 -2
- package/collections/sorted-map.d.ts +2 -2
- package/collections/sorted-map.js +9 -14
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +5 -5
- package/container/container.js +115 -122
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +5 -5
- package/container/decorators.js +42 -68
- package/container/decorators.js.map +1 -1
- package/container/index.d.ts +10 -10
- package/container/index.js +10 -26
- package/container/index.js.map +1 -1
- package/container/interfaces.js +2 -4
- package/container/interfaces.js.map +1 -1
- package/container/provider.d.ts +4 -4
- package/container/provider.js +13 -24
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +2 -2
- package/container/resolve-chain.js +7 -11
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +2 -2
- package/container/resolve.error.js +4 -8
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +1 -1
- package/container/token.js +5 -10
- package/container/token.js.map +1 -1
- package/container/type-info.d.ts +3 -3
- package/container/type-info.js +16 -25
- package/container/type-info.js.map +1 -1
- package/container/types.d.ts +2 -2
- package/container/types.js +1 -2
- package/container/utils.d.ts +1 -1
- package/container/utils.js +7 -11
- package/container/utils.js.map +1 -1
- package/core.d.ts +4 -4
- package/core.js +23 -28
- package/core.js.map +1 -1
- package/css/theme/index.d.ts +2 -2
- package/css/theme/index.js +2 -18
- package/css/theme/index.js.map +1 -1
- package/css/theme/theme.model.js +1 -5
- package/css/theme/theme.model.js.map +1 -1
- package/css/theme/theme.service.d.ts +1 -1
- package/css/theme/theme.service.js +10 -14
- package/css/theme/theme.service.js.map +1 -1
- package/data-structures/array-list.d.ts +2 -2
- package/data-structures/array-list.js +2 -6
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +2 -2
- package/data-structures/circular-buffer.js +31 -50
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +1 -1
- package/data-structures/collection.js +12 -17
- package/data-structures/collection.js.map +1 -1
- package/data-structures/index-out-of-bounds.error.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.js +5 -9
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/index.d.ts +9 -9
- package/data-structures/index.js +9 -25
- package/data-structures/index.js.map +1 -1
- package/data-structures/linked-list.d.ts +4 -4
- package/data-structures/linked-list.js +25 -28
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +2 -2
- package/data-structures/list.js +10 -14
- package/data-structures/list.js.map +1 -1
- package/data-structures/multi-key-map.d.ts +1 -1
- package/data-structures/multi-key-map.js +13 -17
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +5 -5
- package/data-structures/sorted-array-list.js +19 -22
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.d.ts +1 -1
- package/data-structures/weak-ref-map.js +13 -17
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -2
- package/database/entity-repository.js +1 -5
- package/database/entity-repository.js.map +1 -1
- package/database/entity.js +1 -2
- package/database/id.js +4 -8
- package/database/id.js.map +1 -1
- package/database/index.d.ts +6 -6
- package/database/index.js +6 -22
- package/database/index.js.map +1 -1
- package/database/module.js +6 -11
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +5 -5
- package/database/mongo/classes.js +11 -14
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/index.d.ts +10 -10
- package/database/mongo/index.js +10 -26
- package/database/mongo/index.js.map +1 -1
- package/database/mongo/{model/document.d.ts → model.d.ts} +3 -3
- package/database/mongo/model.js +71 -0
- package/database/mongo/model.js.map +1 -0
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/module.js +28 -45
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +5 -5
- package/database/mongo/mongo-base.repository.js +49 -98
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +4 -4
- package/database/mongo/mongo-bulk.js +17 -21
- package/database/mongo/mongo-bulk.js.map +1 -1
- package/database/mongo/{mongo-entity-repository.d.ts → mongo-entity.repository.d.ts} +8 -8
- package/database/mongo/{mongo-entity-repository.js → mongo-entity.repository.js} +50 -130
- package/database/mongo/mongo-entity.repository.js.map +1 -0
- package/database/mongo/operations.d.ts +4 -4
- package/database/mongo/operations.js +6 -15
- package/database/mongo/operations.js.map +1 -1
- package/database/mongo/query-converter.d.ts +4 -4
- package/database/mongo/query-converter.js +18 -27
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity.repository.d.ts +7 -0
- package/database/mongo/simple-entity.repository.js +7 -0
- package/database/mongo/simple-entity.repository.js.map +1 -0
- package/database/mongo/types.d.ts +3 -3
- package/database/mongo/types.js +1 -5
- package/database/mongo/types.js.map +1 -1
- package/database/query.d.ts +2 -2
- package/database/query.js +7 -10
- package/database/query.js.map +1 -1
- package/database/utils.d.ts +1 -1
- package/database/utils.js +1 -5
- package/database/utils.js.map +1 -1
- package/disposable/async-disposer.d.ts +4 -4
- package/disposable/async-disposer.js +20 -24
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +7 -12
- package/disposable/disposable.js.map +1 -1
- package/disposable/index.d.ts +3 -3
- package/disposable/index.js +3 -19
- package/disposable/index.js.map +1 -1
- package/disposable/using.d.ts +1 -1
- package/disposable/using.js +5 -10
- package/disposable/using.js.map +1 -1
- package/distributed-loop/controller.js +1 -2
- package/distributed-loop/distributed-loop.d.ts +5 -5
- package/distributed-loop/distributed-loop.js +15 -19
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/index.d.ts +3 -3
- package/distributed-loop/index.js +3 -19
- package/distributed-loop/index.js.map +1 -1
- package/distributed-loop/provider.d.ts +2 -2
- package/distributed-loop/provider.js +7 -10
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +8 -8
- package/enumerable/async-enumerable.js +66 -71
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable-methods.js +1 -2
- package/enumerable/enumerable.d.ts +6 -6
- package/enumerable/enumerable.js +44 -49
- package/enumerable/enumerable.js.map +1 -1
- package/enumerable/index.d.ts +2 -2
- package/enumerable/index.js +2 -18
- package/enumerable/index.js.map +1 -1
- package/error/api.error.d.ts +2 -2
- package/error/api.error.js +2 -6
- package/error/api.error.js.map +1 -1
- package/error/assertion.error.d.ts +1 -1
- package/error/assertion.error.js +2 -6
- package/error/assertion.error.js.map +1 -1
- package/error/bad-request.error.d.ts +1 -1
- package/error/bad-request.error.js +2 -6
- package/error/bad-request.error.js.map +1 -1
- package/error/custom.error.js +2 -7
- package/error/custom.error.js.map +1 -1
- package/error/details.error.d.ts +1 -1
- package/error/details.error.js +2 -6
- package/error/details.error.js.map +1 -1
- package/error/forbidden.error.d.ts +1 -1
- package/error/forbidden.error.js +2 -6
- package/error/forbidden.error.js.map +1 -1
- package/error/index.d.ts +15 -15
- package/error/index.js +15 -31
- package/error/index.js.map +1 -1
- package/error/invalid-token.error.d.ts +1 -1
- package/error/invalid-token.error.js +2 -6
- package/error/invalid-token.error.js.map +1 -1
- package/error/max-bytes-exceeded.error.d.ts +1 -1
- package/error/max-bytes-exceeded.error.js +2 -6
- package/error/max-bytes-exceeded.error.js.map +1 -1
- package/error/method-not-allowed.error.d.ts +1 -1
- package/error/method-not-allowed.error.js +2 -6
- package/error/method-not-allowed.error.js.map +1 -1
- package/error/multi.error.d.ts +1 -1
- package/error/multi.error.js +2 -6
- package/error/multi.error.js.map +1 -1
- package/error/not-found.error.d.ts +1 -1
- package/error/not-found.error.js +2 -6
- package/error/not-found.error.js.map +1 -1
- package/error/not-implemented.error.d.ts +1 -1
- package/error/not-implemented.error.js +2 -6
- package/error/not-implemented.error.js.map +1 -1
- package/error/unauthorized.error.d.ts +1 -1
- package/error/unauthorized.error.js +2 -6
- package/error/unauthorized.error.js.map +1 -1
- package/error/unsupported-media-type.error.d.ts +1 -1
- package/error/unsupported-media-type.error.js +2 -6
- package/error/unsupported-media-type.error.js.map +1 -1
- package/error/validation.error.d.ts +1 -1
- package/error/validation.error.js +2 -6
- package/error/validation.error.js.map +1 -1
- package/examples/api/basic-overview.js +35 -36
- package/examples/api/basic-overview.js.map +1 -1
- package/global-this.js +1 -5
- package/global-this.js.map +1 -1
- package/http/client/adapters/got-http-client.adapter.d.ts +3 -3
- package/http/client/adapters/got-http-client.adapter.js +49 -82
- package/http/client/adapters/got-http-client.adapter.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +4 -4
- package/http/client/adapters/undici-http-client.adapter.js +31 -37
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/adapters/utils.d.ts +2 -2
- package/http/client/adapters/utils.js +14 -22
- package/http/client/adapters/utils.js.map +1 -1
- package/http/client/http-client-request.d.ts +13 -13
- package/http/client/http-client-request.js +34 -40
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +5 -5
- package/http/client/http-client-response.js +3 -7
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.adapter.d.ts +3 -3
- package/http/client/http-client.adapter.js +1 -5
- package/http/client/http-client.adapter.js.map +1 -1
- package/http/client/http-client.d.ts +10 -10
- package/http/client/http-client.js +77 -118
- package/http/client/http-client.js.map +1 -1
- package/http/client/index.d.ts +4 -4
- package/http/client/index.js +4 -20
- package/http/client/index.js.map +1 -1
- package/http/cookie-parser.d.ts +1 -1
- package/http/cookie-parser.js +5 -9
- package/http/cookie-parser.js.map +1 -1
- package/http/http-form.d.ts +3 -3
- package/http/http-form.js +2 -6
- package/http/http-form.js.map +1 -1
- package/http/http-headers.d.ts +3 -3
- package/http/http-headers.js +16 -21
- package/http/http-headers.js.map +1 -1
- package/http/http-query.d.ts +3 -3
- package/http/http-query.js +2 -6
- package/http/http-query.js.map +1 -1
- package/http/http-url-parameters.d.ts +3 -3
- package/http/http-url-parameters.js +2 -6
- package/http/http-url-parameters.js.map +1 -1
- package/http/http-value-map.d.ts +2 -2
- package/http/http-value-map.js +21 -27
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +3 -3
- package/http/http.error.js +8 -13
- package/http/http.error.js.map +1 -1
- package/http/index.d.ts +9 -9
- package/http/index.js +9 -25
- package/http/index.js.map +1 -1
- package/http/server/http-server-request.d.ts +5 -5
- package/http/server/http-server-request.js +14 -19
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +3 -3
- package/http/server/http-server-response.js +3 -7
- package/http/server/http-server-response.js.map +1 -1
- package/http/server/http-server.d.ts +2 -3
- package/http/server/http-server.js +2 -6
- package/http/server/http-server.js.map +1 -1
- package/http/server/index.d.ts +3 -3
- package/http/server/index.js +3 -19
- package/http/server/index.js.map +1 -1
- package/http/server/node/index.d.ts +2 -2
- package/http/server/node/index.js +2 -18
- package/http/server/node/index.js.map +1 -1
- package/http/server/node/module.js +5 -9
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +8 -8
- package/http/server/node/node-http-server.js +51 -100
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +1 -1
- package/http/types.js +9 -16
- package/http/types.js.map +1 -1
- package/image-service/image-service.js +14 -18
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +5 -5
- package/image-service/imgproxy/imgproxy-image-service.js +32 -36
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/image-service/imgproxy/index.d.ts +1 -1
- package/image-service/imgproxy/index.js +1 -17
- package/image-service/imgproxy/index.js.map +1 -1
- package/image-service/index.d.ts +1 -1
- package/image-service/index.js +1 -17
- package/image-service/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -17
- package/index.js.map +1 -1
- package/instance-provider.d.ts +4 -4
- package/instance-provider.js +27 -35
- package/instance-provider.js.map +1 -1
- package/interfaces.js +1 -2
- package/json-path/index.d.ts +1 -1
- package/json-path/index.js +1 -17
- package/json-path/index.js.map +1 -1
- package/json-path/json-path.js +12 -19
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/index.d.ts +2 -2
- package/key-value-store/index.js +2 -18
- package/key-value-store/index.js.map +1 -1
- package/key-value-store/key-value-store.provider.d.ts +2 -2
- package/key-value-store/key-value-store.provider.js +1 -5
- package/key-value-store/key-value-store.provider.js.map +1 -1
- package/key-value-store/key-value.store.d.ts +3 -3
- package/key-value-store/key-value.store.js +2 -6
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/index.d.ts +5 -5
- package/key-value-store/mongo/index.js +5 -21
- package/key-value-store/mongo/index.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +2 -2
- package/key-value-store/mongo/module.js +10 -14
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value-store.provider.js +7 -10
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +1 -1
- package/key-value-store/mongo/mongo-key-value.model.js +1 -2
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +6 -6
- package/key-value-store/mongo/mongo-key-value.repository.js +11 -14
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value.store.js +16 -19
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/lock/index.d.ts +2 -2
- package/lock/index.js +2 -18
- package/lock/index.js.map +1 -1
- package/lock/lock.d.ts +2 -2
- package/lock/lock.js +2 -6
- package/lock/lock.js.map +1 -1
- package/lock/mongo/index.d.ts +5 -5
- package/lock/mongo/index.js +5 -21
- package/lock/mongo/index.js.map +1 -1
- package/lock/mongo/lock.d.ts +4 -4
- package/lock/mongo/lock.js +30 -33
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/model.js +1 -2
- package/lock/mongo/module.d.ts +2 -2
- package/lock/mongo/module.js +10 -14
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/{mongo-lock-repository.d.ts → mongo-lock.repository.d.ts} +6 -6
- package/lock/mongo/{mongo-lock-repository.js → mongo-lock.repository.js} +17 -20
- package/lock/mongo/mongo-lock.repository.js.map +1 -0
- package/lock/mongo/provider.d.ts +4 -4
- package/lock/mongo/provider.js +16 -19
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +3 -3
- package/lock/provider.js +2 -6
- package/lock/provider.js.map +1 -1
- package/logger/console/index.d.ts +1 -1
- package/logger/console/index.js +1 -17
- package/logger/console/index.js.map +1 -1
- package/logger/console/logger.d.ts +3 -3
- package/logger/console/logger.js +20 -27
- package/logger/console/logger.js.map +1 -1
- package/logger/index.d.ts +2 -2
- package/logger/index.js +2 -18
- package/logger/index.js.map +1 -1
- package/logger/level.js +2 -5
- package/logger/level.js.map +1 -1
- package/logger/logger.d.ts +3 -3
- package/logger/logger.js +13 -17
- package/logger/logger.js.map +1 -1
- package/logger/noop/index.d.ts +1 -1
- package/logger/noop/index.js +1 -17
- package/logger/noop/index.js.map +1 -1
- package/logger/noop/logger.d.ts +1 -1
- package/logger/noop/logger.js +5 -9
- package/logger/noop/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.d.ts +2 -2
- package/mail/clients/nodemailer.mail-client.js +15 -20
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/index.d.ts +8 -8
- package/mail/index.js +8 -24
- package/mail/index.js.map +1 -1
- package/mail/mail-log.repository.d.ts +2 -2
- package/mail/mail-log.repository.js +2 -6
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail-template-renderer.provider.d.ts +1 -1
- package/mail/mail-template-renderer.provider.js +6 -9
- package/mail/mail-template-renderer.provider.js.map +1 -1
- package/mail/mail-template.provider.d.ts +1 -1
- package/mail/mail-template.provider.js +1 -5
- package/mail/mail-template.provider.js.map +1 -1
- package/mail/mail-template.renderer.d.ts +1 -1
- package/mail/mail-template.renderer.js +1 -5
- package/mail/mail-template.renderer.js.map +1 -1
- package/mail/mail.client.d.ts +3 -3
- package/mail/mail.client.js +2 -6
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +7 -7
- package/mail/mail.service.js +24 -27
- package/mail/mail.service.js.map +1 -1
- package/mail/models/index.d.ts +6 -6
- package/mail/models/index.js +6 -22
- package/mail/models/index.js.map +1 -1
- package/mail/models/mail-address.model.js +1 -2
- package/mail/models/mail-content.model.js +1 -2
- package/mail/models/mail-data.model.d.ts +3 -3
- package/mail/models/mail-data.model.js +1 -2
- package/mail/models/mail-log.model.d.ts +3 -3
- package/mail/models/mail-log.model.js +1 -2
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-send-result.model.js +1 -2
- package/mail/models/mail-template.model.js +1 -2
- package/mail/module.d.ts +6 -6
- package/mail/module.js +21 -25
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +6 -6
- package/mail/repositories/mongo-mail-log.repository.js +13 -18
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/template-providers/file-mail-template.provider.d.ts +5 -5
- package/mail/template-providers/file-mail-template.provider.js +29 -32
- package/mail/template-providers/file-mail-template.provider.js.map +1 -1
- package/mail/template-providers/memory-mail-template.provider.d.ts +2 -2
- package/mail/template-providers/memory-mail-template.provider.js +7 -10
- package/mail/template-providers/memory-mail-template.provider.js.map +1 -1
- package/mail/template-renderers/handlebars.mail-template-renderer.d.ts +3 -3
- package/mail/template-renderers/handlebars.mail-template-renderer.js +13 -17
- package/mail/template-renderers/handlebars.mail-template-renderer.js.map +1 -1
- package/mail/template-renderers/mjml.mail-template-renderer.d.ts +4 -4
- package/mail/template-renderers/mjml.mail-template-renderer.js +18 -18
- package/mail/template-renderers/mjml.mail-template-renderer.js.map +1 -1
- package/mail/tokens.d.ts +5 -5
- package/mail/tokens.js +3 -6
- package/mail/tokens.js.map +1 -1
- package/memory/index.d.ts +1 -1
- package/memory/index.js +1 -17
- package/memory/index.js.map +1 -1
- package/memory/observable-finalization-registry.js +3 -7
- package/memory/observable-finalization-registry.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js +3 -7
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +7 -12
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/broadcast-channel/index.d.ts +2 -2
- package/message-bus/broadcast-channel/index.js +2 -18
- package/message-bus/broadcast-channel/index.js.map +1 -1
- package/message-bus/index.d.ts +3 -3
- package/message-bus/index.js +3 -19
- package/message-bus/index.js.map +1 -1
- package/message-bus/local/index.d.ts +2 -2
- package/message-bus/local/index.js +2 -18
- package/message-bus/local/index.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +3 -3
- package/message-bus/local/local-message-bus-provider.js +20 -24
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +4 -4
- package/message-bus/local/local-message-bus.js +13 -16
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/types.js +1 -2
- package/message-bus/message-bus-base.d.ts +4 -4
- package/message-bus/message-bus-base.js +11 -15
- package/message-bus/message-bus-base.js.map +1 -1
- package/message-bus/message-bus-provider.d.ts +1 -1
- package/message-bus/message-bus-provider.js +1 -5
- package/message-bus/message-bus-provider.js.map +1 -1
- package/message-bus/message-bus.d.ts +4 -4
- package/message-bus/message-bus.js +3 -7
- package/message-bus/message-bus.js.map +1 -1
- package/migration/index.d.ts +3 -3
- package/migration/index.js +3 -19
- package/migration/index.js.map +1 -1
- package/migration/migration-state-repository.d.ts +2 -2
- package/migration/migration-state-repository.js +2 -6
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +1 -1
- package/migration/migration-state.js +1 -2
- package/migration/migrator.d.ts +3 -3
- package/migration/migrator.js +24 -28
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/index.d.ts +2 -2
- package/migration/mongo/index.js +2 -18
- package/migration/mongo/index.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +7 -7
- package/migration/mongo/migration-state-repository.js +12 -15
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +2 -2
- package/migration/mongo/module.js +7 -11
- package/migration/mongo/module.js.map +1 -1
- package/module/index.d.ts +4 -4
- package/module/index.js +4 -20
- package/module/index.js.map +1 -1
- package/module/module-base.d.ts +5 -5
- package/module/module-base.js +10 -14
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +4 -4
- package/module/module-metric-reporter.js +8 -12
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +1 -1
- package/module/module.js +4 -7
- package/module/module.js.map +1 -1
- package/module/modules/index.d.ts +2 -2
- package/module/modules/index.js +2 -18
- package/module/modules/index.js.map +1 -1
- package/module/modules/old-web-server.module.d.ts +7 -7
- package/module/modules/old-web-server.module.js +6 -28
- package/module/modules/old-web-server.module.js.map +1 -1
- package/module/modules/web-server.module.d.ts +9 -9
- package/module/modules/web-server.module.js +24 -47
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +2 -2
- package/module/utils.js +2 -7
- package/module/utils.js.map +1 -1
- package/object-storage/index.d.ts +3 -3
- package/object-storage/index.js +3 -19
- package/object-storage/index.js.map +1 -1
- package/object-storage/object-storage-provider.d.ts +1 -1
- package/object-storage/object-storage-provider.js +1 -5
- package/object-storage/object-storage-provider.js.map +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +2 -6
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.js +1 -2
- package/object-storage/s3/index.d.ts +3 -3
- package/object-storage/s3/index.js +3 -19
- package/object-storage/s3/index.js.map +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +3 -3
- package/object-storage/s3/s3.object-storage-provider.js +20 -24
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +3 -3
- package/object-storage/s3/s3.object-storage.js +17 -20
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +1 -1
- package/object-storage/s3/s3.object.js +1 -2
- package/old-api/endpoint.d.ts +1 -1
- package/old-api/endpoint.js +2 -7
- package/old-api/endpoint.js.map +1 -1
- package/old-api/endpoints/echo.endpoint.d.ts +1 -1
- package/old-api/endpoints/echo.endpoint.js +1 -5
- package/old-api/endpoints/echo.endpoint.js.map +1 -1
- package/old-api/endpoints/index.d.ts +1 -1
- package/old-api/endpoints/index.js +1 -17
- package/old-api/endpoints/index.js.map +1 -1
- package/old-api/http-api.d.ts +10 -10
- package/old-api/http-api.js +60 -84
- package/old-api/http-api.js.map +1 -1
- package/old-api/index.d.ts +3 -3
- package/old-api/index.js +3 -19
- package/old-api/index.js.map +1 -1
- package/old-api/validation/index.d.ts +1 -1
- package/old-api/validation/index.js +1 -17
- package/old-api/validation/index.js.map +1 -1
- package/old-api/validation/types.d.ts +1 -1
- package/old-api/validation/types.js +2 -5
- package/old-api/validation/types.js.map +1 -1
- package/old-api/validation/validators/index.d.ts +1 -1
- package/old-api/validation/validators/index.js +1 -17
- package/old-api/validation/validators/index.js.map +1 -1
- package/old-api/validation/validators/noop.d.ts +1 -1
- package/old-api/validation/validators/noop.js +1 -5
- package/old-api/validation/validators/noop.js.map +1 -1
- package/old-api/validation/validators/superstruct.d.ts +3 -3
- package/old-api/validation/validators/superstruct.js +17 -28
- package/old-api/validation/validators/superstruct.js.map +1 -1
- package/old-api/validation/validators/yup.d.ts +1 -1
- package/old-api/validation/validators/yup.js +8 -16
- package/old-api/validation/validators/yup.js.map +1 -1
- package/openid-connect/cached-oidc-configuration.service.d.ts +3 -3
- package/openid-connect/cached-oidc-configuration.service.js +14 -17
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.d.ts +7 -7
- package/openid-connect/index.js +11 -27
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +8 -8
- package/openid-connect/mongo-oidc-state.repository.js +15 -19
- package/openid-connect/mongo-oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc-configuration.service.d.ts +1 -1
- package/openid-connect/oidc-configuration.service.js +11 -14
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.model.js +1 -2
- package/openid-connect/oidc-state.repository.d.ts +2 -2
- package/openid-connect/oidc-state.repository.js +2 -6
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service-model.js +1 -2
- package/openid-connect/oidc.service.d.ts +4 -4
- package/openid-connect/oidc.service.js +31 -34
- package/openid-connect/oidc.service.js.map +1 -1
- package/package.json +5 -4
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +11 -18
- package/process-shutdown.js.map +1 -1
- package/promise/cancelable-promise.js +1 -5
- package/promise/cancelable-promise.js.map +1 -1
- package/promise/deferred-promise.js +1 -5
- package/promise/deferred-promise.js.map +1 -1
- package/promise/index.d.ts +2 -2
- package/promise/index.js +2 -18
- package/promise/index.js.map +1 -1
- package/queue/enqueue-batch.d.ts +1 -1
- package/queue/enqueue-batch.js +2 -6
- package/queue/enqueue-batch.js.map +1 -1
- package/queue/index.d.ts +3 -3
- package/queue/index.js +3 -19
- package/queue/index.js.map +1 -1
- package/queue/mongo/index.d.ts +4 -4
- package/queue/mongo/index.js +4 -20
- package/queue/mongo/index.js.map +1 -1
- package/queue/mongo/job.d.ts +3 -3
- package/queue/mongo/job.js +1 -2
- package/queue/mongo/mongo-job.repository.d.ts +7 -7
- package/queue/mongo/mongo-job.repository.js +20 -34
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +6 -6
- package/queue/mongo/queue.js +62 -111
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +10 -10
- package/queue/mongo/queue.provider.js +16 -20
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/provider.d.ts +1 -1
- package/queue/provider.js +1 -5
- package/queue/provider.js.map +1 -1
- package/queue/queue.d.ts +4 -4
- package/queue/queue.js +9 -13
- package/queue/queue.js.map +1 -1
- package/random/index.d.ts +1 -1
- package/random/index.js +1 -17
- package/random/index.js.map +1 -1
- package/random/number/index.d.ts +3 -3
- package/random/number/index.js +3 -19
- package/random/number/index.js.map +1 -1
- package/random/number/mulberry32.d.ts +1 -1
- package/random/number/mulberry32.js +3 -8
- package/random/number/mulberry32.js.map +1 -1
- package/random/number/seeded.js +1 -5
- package/random/number/seeded.js.map +1 -1
- package/random/number/sfc32.d.ts +1 -1
- package/random/number/sfc32.js +3 -8
- package/random/number/sfc32.js.map +1 -1
- package/rxjs/cast.js +2 -7
- package/rxjs/cast.js.map +1 -1
- package/rxjs/index.d.ts +11 -11
- package/rxjs/index.js +11 -27
- package/rxjs/index.js.map +1 -1
- package/rxjs/intersection-observer.js +10 -25
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/mutation-observer.js +11 -27
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/noop.js +2 -7
- package/rxjs/noop.js.map +1 -1
- package/rxjs/performance-observer.js +9 -13
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.js +11 -27
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +13 -18
- package/rxjs/retry-backoff.js.map +1 -1
- package/rxjs/slow-array.js +8 -17
- package/rxjs/slow-array.js.map +1 -1
- package/rxjs/teardown.js +3 -7
- package/rxjs/teardown.js.map +1 -1
- package/rxjs/timing.js +14 -17
- package/rxjs/timing.js.map +1 -1
- package/rxjs/touch.js +7 -11
- package/rxjs/touch.js.map +1 -1
- package/schema/index.d.ts +4 -4
- package/schema/index.js +4 -20
- package/schema/index.js.map +1 -1
- package/schema/schema.error.d.ts +2 -2
- package/schema/schema.error.js +6 -11
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.validator.d.ts +4 -4
- package/schema/schema.validator.js +19 -26
- package/schema/schema.validator.js.map +1 -1
- package/schema/schemas/any.d.ts +3 -3
- package/schema/schemas/any.js +9 -11
- package/schema/schemas/any.js.map +1 -1
- package/schema/schemas/array.d.ts +4 -4
- package/schema/schemas/array.js +20 -21
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/async-iterable.d.ts +4 -4
- package/schema/schemas/async-iterable.js +18 -19
- package/schema/schemas/async-iterable.js.map +1 -1
- package/schema/schemas/boolean.d.ts +4 -4
- package/schema/schemas/boolean.js +13 -16
- package/schema/schemas/boolean.js.map +1 -1
- package/schema/schemas/date.d.ts +4 -4
- package/schema/schemas/date.js +22 -25
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +5 -5
- package/schema/schemas/defaulted.js +14 -14
- package/schema/schemas/defaulted.js.map +1 -1
- package/schema/schemas/enumeration.d.ts +6 -6
- package/schema/schemas/enumeration.js +24 -26
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/index.d.ts +24 -24
- package/schema/schemas/index.js +24 -40
- package/schema/schemas/index.js.map +1 -1
- package/schema/schemas/instance.d.ts +5 -5
- package/schema/schemas/instance.js +13 -14
- package/schema/schemas/instance.js.map +1 -1
- package/schema/schemas/iterable.d.ts +4 -4
- package/schema/schemas/iterable.js +18 -19
- package/schema/schemas/iterable.js.map +1 -1
- package/schema/schemas/literal.d.ts +4 -4
- package/schema/schemas/literal.js +12 -13
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/never.d.ts +4 -4
- package/schema/schemas/never.js +12 -14
- package/schema/schemas/never.js.map +1 -1
- package/schema/schemas/nullable.d.ts +4 -4
- package/schema/schemas/nullable.js +14 -16
- package/schema/schemas/nullable.js.map +1 -1
- package/schema/schemas/number.d.ts +4 -4
- package/schema/schemas/number.js +21 -24
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +5 -5
- package/schema/schemas/object.js +24 -26
- package/schema/schemas/object.js.map +1 -1
- package/schema/schemas/optional.d.ts +4 -4
- package/schema/schemas/optional.js +14 -16
- package/schema/schemas/optional.js.map +1 -1
- package/schema/schemas/preprocess.d.ts +4 -4
- package/schema/schemas/preprocess.js +16 -16
- package/schema/schemas/preprocess.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +4 -4
- package/schema/schemas/readable-stream.js +12 -14
- package/schema/schemas/readable-stream.js.map +1 -1
- package/schema/schemas/refine.d.ts +5 -5
- package/schema/schemas/refine.js +19 -19
- package/schema/schemas/refine.js.map +1 -1
- package/schema/schemas/regexp.d.ts +4 -4
- package/schema/schemas/regexp.js +16 -19
- package/schema/schemas/regexp.js.map +1 -1
- package/schema/schemas/string.d.ts +4 -4
- package/schema/schemas/string.js +22 -26
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +4 -4
- package/schema/schemas/transform.js +16 -16
- package/schema/schemas/transform.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +4 -4
- package/schema/schemas/uint8-array.js +19 -22
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +4 -4
- package/schema/schemas/union.js +14 -15
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +3 -3
- package/schema/schemas/unknown.js +9 -11
- package/schema/schemas/unknown.js.map +1 -1
- package/schema/types.d.ts +2 -2
- package/schema/types.js +1 -5
- package/schema/types.js.map +1 -1
- package/search-index/elastic/config.d.ts +3 -3
- package/search-index/elastic/config.js +6 -9
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/index.d.ts +5 -5
- package/search-index/elastic/index.js +5 -21
- package/search-index/elastic/index.js.map +1 -1
- package/search-index/elastic/model/elastic-query.d.ts +1 -1
- package/search-index/elastic/model/elastic-query.js +1 -2
- package/search-index/elastic/model/index-mapping.d.ts +3 -3
- package/search-index/elastic/model/index-mapping.js +3 -7
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/index.d.ts +3 -3
- package/search-index/elastic/model/index.js +3 -19
- package/search-index/elastic/model/index.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +3 -3
- package/search-index/elastic/model/sort.js +1 -2
- package/search-index/elastic/module.d.ts +4 -4
- package/search-index/elastic/module.js +22 -28
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.d.ts +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js +1 -5
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +1 -1
- package/search-index/elastic/query-builder/index.d.ts +1 -1
- package/search-index/elastic/query-builder/index.js +1 -17
- package/search-index/elastic/query-builder/index.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +4 -4
- package/search-index/elastic/query-converter.js +29 -37
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +9 -9
- package/search-index/elastic/search-index.js +36 -51
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +2 -2
- package/search-index/elastic/sort-converter.js +3 -8
- package/search-index/elastic/sort-converter.js.map +1 -1
- package/search-index/elastic/types.d.ts +1 -1
- package/search-index/elastic/types.js +1 -2
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +4 -8
- package/search-index/error.js.map +1 -1
- package/search-index/index.d.ts +3 -3
- package/search-index/index.js +3 -19
- package/search-index/index.js.map +1 -1
- package/search-index/memory/index.d.ts +1 -1
- package/search-index/memory/index.js +1 -17
- package/search-index/memory/index.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +4 -3
- package/search-index/memory/memory-search-index.js +25 -30
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +2 -3
- package/search-index/search-index.js +11 -41
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +1 -1
- package/search-index/search-result.js +1 -2
- package/serializer/handlers/binary.d.ts +2 -2
- package/serializer/handlers/binary.js +11 -20
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/date.js +2 -7
- package/serializer/handlers/date.js.map +1 -1
- package/serializer/handlers/error.js +2 -7
- package/serializer/handlers/error.js.map +1 -1
- package/serializer/handlers/index.d.ts +7 -7
- package/serializer/handlers/index.js +7 -23
- package/serializer/handlers/index.js.map +1 -1
- package/serializer/handlers/map.d.ts +1 -1
- package/serializer/handlers/map.js +2 -7
- package/serializer/handlers/map.js.map +1 -1
- package/serializer/handlers/regex.js +2 -7
- package/serializer/handlers/regex.js.map +1 -1
- package/serializer/handlers/register.d.ts +1 -1
- package/serializer/handlers/register.js +17 -21
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.d.ts +2 -2
- package/serializer/handlers/set.js +2 -7
- package/serializer/handlers/set.js.map +1 -1
- package/serializer/index.d.ts +4 -4
- package/serializer/index.js +3 -24
- package/serializer/index.js.map +1 -1
- package/serializer/serializable.d.ts +1 -1
- package/serializer/serializable.js +15 -24
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +30 -37
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/serializer/types.js +5 -8
- package/serializer/types.js.map +1 -1
- package/tailwind/colors.d.ts +1 -1
- package/tailwind/colors.js +4 -10
- package/tailwind/colors.js.map +1 -1
- package/tailwind/index.d.ts +1 -1
- package/tailwind/index.js +1 -17
- package/tailwind/index.js.map +1 -1
- package/tokens.d.ts +1 -1
- package/tokens.js +2 -5
- package/tokens.js.map +1 -1
- package/tsconfig.json +7 -3
- package/types/geo-json.d.ts +1 -1
- package/types/geo-json.js +1 -2
- package/types.js +1 -2
- package/types.js.map +1 -1
- package/utils/alphabet.js +2 -5
- package/utils/alphabet.js.map +1 -1
- package/utils/any-iterable-iterator.js +4 -8
- package/utils/any-iterable-iterator.js.map +1 -1
- package/utils/array/array-backtracker.js +8 -12
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/array/array.js +13 -21
- package/utils/array/array.js.map +1 -1
- package/utils/array/index.d.ts +2 -2
- package/utils/array/index.js +2 -18
- package/utils/array/index.js.map +1 -1
- package/utils/async-iterable-helpers/all.d.ts +2 -2
- package/utils/async-iterable-helpers/all.js +9 -31
- package/utils/async-iterable-helpers/all.js.map +1 -1
- package/utils/async-iterable-helpers/any.d.ts +2 -2
- package/utils/async-iterable-helpers/any.js +9 -31
- package/utils/async-iterable-helpers/any.js.map +1 -1
- package/utils/async-iterable-helpers/assert.d.ts +2 -2
- package/utils/async-iterable-helpers/assert.js +22 -60
- package/utils/async-iterable-helpers/assert.js.map +1 -1
- package/utils/async-iterable-helpers/batch.d.ts +1 -1
- package/utils/async-iterable-helpers/batch.js +25 -63
- package/utils/async-iterable-helpers/batch.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.d.ts +1 -1
- package/utils/async-iterable-helpers/buffer.js +43 -90
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/concat.d.ts +1 -1
- package/utils/async-iterable-helpers/concat.js +3 -33
- package/utils/async-iterable-helpers/concat.js.map +1 -1
- package/utils/async-iterable-helpers/default-if-empty.d.ts +1 -1
- package/utils/async-iterable-helpers/default-if-empty.js +9 -45
- package/utils/async-iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/async-iterable-helpers/deferred.d.ts +1 -1
- package/utils/async-iterable-helpers/deferred.js +3 -33
- package/utils/async-iterable-helpers/deferred.js.map +1 -1
- package/utils/async-iterable-helpers/distinct.d.ts +2 -2
- package/utils/async-iterable-helpers/distinct.js +23 -61
- package/utils/async-iterable-helpers/distinct.js.map +1 -1
- package/utils/async-iterable-helpers/drain.d.ts +1 -1
- package/utils/async-iterable-helpers/drain.js +3 -24
- package/utils/async-iterable-helpers/drain.js.map +1 -1
- package/utils/async-iterable-helpers/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/filter.js +22 -60
- package/utils/async-iterable-helpers/filter.js.map +1 -1
- package/utils/async-iterable-helpers/first-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/first-or-default.js +6 -28
- package/utils/async-iterable-helpers/first-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/first.d.ts +3 -3
- package/utils/async-iterable-helpers/first.js +6 -28
- package/utils/async-iterable-helpers/first.js.map +1 -1
- package/utils/async-iterable-helpers/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/for-each.js +7 -29
- package/utils/async-iterable-helpers/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/group-single.d.ts +2 -2
- package/utils/async-iterable-helpers/group-single.js +3 -33
- package/utils/async-iterable-helpers/group-single.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-map.js +9 -31
- package/utils/async-iterable-helpers/group-to-map.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-single-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-single-map.js +8 -30
- package/utils/async-iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/async-iterable-helpers/group.d.ts +2 -2
- package/utils/async-iterable-helpers/group.js +3 -33
- package/utils/async-iterable-helpers/group.js.map +1 -1
- package/utils/async-iterable-helpers/index.d.ts +45 -45
- package/utils/async-iterable-helpers/index.js +45 -61
- package/utils/async-iterable-helpers/index.js.map +1 -1
- package/utils/async-iterable-helpers/interrupt.d.ts +1 -1
- package/utils/async-iterable-helpers/interrupt.js +19 -69
- package/utils/async-iterable-helpers/interrupt.js.map +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.js +5 -10
- package/utils/async-iterable-helpers/is-async-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/last-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/last-or-default.js +6 -28
- package/utils/async-iterable-helpers/last-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/last.d.ts +3 -3
- package/utils/async-iterable-helpers/last.js +6 -28
- package/utils/async-iterable-helpers/last.js.map +1 -1
- package/utils/async-iterable-helpers/map-many.d.ts +2 -2
- package/utils/async-iterable-helpers/map-many.js +19 -62
- package/utils/async-iterable-helpers/map-many.js.map +1 -1
- package/utils/async-iterable-helpers/map.d.ts +2 -2
- package/utils/async-iterable-helpers/map.js +19 -57
- package/utils/async-iterable-helpers/map.js.map +1 -1
- package/utils/async-iterable-helpers/materialize.d.ts +1 -1
- package/utils/async-iterable-helpers/materialize.js +9 -41
- package/utils/async-iterable-helpers/materialize.js.map +1 -1
- package/utils/async-iterable-helpers/metadata.d.ts +2 -2
- package/utils/async-iterable-helpers/metadata.js +35 -75
- package/utils/async-iterable-helpers/metadata.js.map +1 -1
- package/utils/async-iterable-helpers/multiplex.d.ts +1 -1
- package/utils/async-iterable-helpers/multiplex.js +7 -29
- package/utils/async-iterable-helpers/multiplex.js.map +1 -1
- package/utils/async-iterable-helpers/observable-iterable.js +31 -49
- package/utils/async-iterable-helpers/observable-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/pairwise.d.ts +1 -1
- package/utils/async-iterable-helpers/pairwise.js +24 -62
- package/utils/async-iterable-helpers/pairwise.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/feed.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/feed.js +24 -54
- package/utils/async-iterable-helpers/parallel/feed.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/filter.js +3 -7
- package/utils/async-iterable-helpers/parallel/filter.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/for-each.js +13 -35
- package/utils/async-iterable-helpers/parallel/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/group.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/group.js +5 -9
- package/utils/async-iterable-helpers/parallel/group.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/index.d.ts +7 -7
- package/utils/async-iterable-helpers/parallel/index.js +7 -23
- package/utils/async-iterable-helpers/parallel/index.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/map.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/map.js +3 -7
- package/utils/async-iterable-helpers/parallel/map.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/tap.js +3 -7
- package/utils/async-iterable-helpers/parallel/tap.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/types.js +1 -2
- package/utils/async-iterable-helpers/reduce.d.ts +2 -2
- package/utils/async-iterable-helpers/reduce.js +11 -33
- package/utils/async-iterable-helpers/reduce.js.map +1 -1
- package/utils/async-iterable-helpers/retry.d.ts +2 -2
- package/utils/async-iterable-helpers/retry.js +41 -79
- package/utils/async-iterable-helpers/retry.js.map +1 -1
- package/utils/async-iterable-helpers/single-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/single-or-default.js +11 -33
- package/utils/async-iterable-helpers/single-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/single.d.ts +3 -3
- package/utils/async-iterable-helpers/single.js +11 -33
- package/utils/async-iterable-helpers/single.js.map +1 -1
- package/utils/async-iterable-helpers/skip.d.ts +1 -1
- package/utils/async-iterable-helpers/skip.js +3 -7
- package/utils/async-iterable-helpers/skip.js.map +1 -1
- package/utils/async-iterable-helpers/sort.d.ts +2 -2
- package/utils/async-iterable-helpers/sort.js +5 -9
- package/utils/async-iterable-helpers/sort.js.map +1 -1
- package/utils/async-iterable-helpers/take-until.d.ts +2 -2
- package/utils/async-iterable-helpers/take-until.js +30 -52
- package/utils/async-iterable-helpers/take-until.js.map +1 -1
- package/utils/async-iterable-helpers/take-while.d.ts +2 -2
- package/utils/async-iterable-helpers/take-while.js +28 -66
- package/utils/async-iterable-helpers/take-while.js.map +1 -1
- package/utils/async-iterable-helpers/take.d.ts +1 -1
- package/utils/async-iterable-helpers/take.js +10 -46
- package/utils/async-iterable-helpers/take.js.map +1 -1
- package/utils/async-iterable-helpers/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/tap.js +19 -57
- package/utils/async-iterable-helpers/tap.js.map +1 -1
- package/utils/async-iterable-helpers/throttle.d.ts +2 -2
- package/utils/async-iterable-helpers/throttle.js +9 -45
- package/utils/async-iterable-helpers/throttle.js.map +1 -1
- package/utils/async-iterable-helpers/to-array.d.ts +1 -1
- package/utils/async-iterable-helpers/to-array.js +5 -27
- package/utils/async-iterable-helpers/to-array.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js +36 -74
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.js +9 -14
- package/utils/async-iterable-helpers/to-async-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.js +5 -9
- package/utils/async-iterable-helpers/to-sync-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/types.d.ts +1 -1
- package/utils/async-iterable-helpers/types.js +1 -2
- package/utils/async-iterable-helpers/while.d.ts +2 -2
- package/utils/async-iterable-helpers/while.js +24 -62
- package/utils/async-iterable-helpers/while.js.map +1 -1
- package/utils/async-iterator-iterable-iterator.js +24 -42
- package/utils/async-iterator-iterable-iterator.js.map +1 -1
- package/utils/backoff.d.ts +2 -2
- package/utils/backoff.js +30 -53
- package/utils/backoff.js.map +1 -1
- package/utils/base64.d.ts +1 -1
- package/utils/base64.js +15 -26
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.js +17 -25
- package/utils/benchmark.js.map +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary-search.js +10 -21
- package/utils/binary-search.js.map +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +7 -13
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.js +22 -26
- package/utils/cancellation-token.js.map +1 -1
- package/utils/comparison.js +7 -17
- package/utils/comparison.js.map +1 -1
- package/utils/compression.d.ts +2 -2
- package/utils/compression.js +18 -25
- package/utils/compression.js.map +1 -1
- package/utils/config-parser.js +11 -18
- package/utils/config-parser.js.map +1 -1
- package/utils/cryptography.d.ts +1 -1
- package/utils/cryptography.js +54 -69
- package/utils/cryptography.js.map +1 -1
- package/utils/date-time.js +34 -57
- package/utils/date-time.js.map +1 -1
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +12 -19
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/enum.js +7 -13
- package/utils/enum.js.map +1 -1
- package/utils/equals.d.ts +2 -2
- package/utils/equals.js +17 -24
- package/utils/equals.js.map +1 -1
- package/utils/event-loop.d.ts +2 -2
- package/utils/event-loop.js +9 -14
- package/utils/event-loop.js.map +1 -1
- package/utils/factory-map.js +2 -6
- package/utils/factory-map.js.map +1 -1
- package/utils/feedable-async-iterable.js +16 -53
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/file-reader.js +6 -13
- package/utils/file-reader.js.map +1 -1
- package/utils/function/index.d.ts +2 -2
- package/utils/function/index.js +2 -18
- package/utils/function/index.js.map +1 -1
- package/utils/function/memoize.js +4 -9
- package/utils/function/memoize.js.map +1 -1
- package/utils/function/throttle.js +5 -9
- package/utils/function/throttle.js.map +1 -1
- package/utils/helpers.d.ts +1 -1
- package/utils/helpers.js +54 -86
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +22 -30
- package/utils/image.js.map +1 -1
- package/utils/index.d.ts +42 -42
- package/utils/index.js +42 -58
- package/utils/index.js.map +1 -1
- package/utils/iterable-helpers/all.d.ts +1 -1
- package/utils/iterable-helpers/all.js +1 -5
- package/utils/iterable-helpers/all.js.map +1 -1
- package/utils/iterable-helpers/any.d.ts +1 -1
- package/utils/iterable-helpers/any.js +1 -5
- package/utils/iterable-helpers/any.js.map +1 -1
- package/utils/iterable-helpers/assert.d.ts +1 -1
- package/utils/iterable-helpers/assert.js +3 -7
- package/utils/iterable-helpers/assert.js.map +1 -1
- package/utils/iterable-helpers/batch.js +1 -5
- package/utils/iterable-helpers/batch.js.map +1 -1
- package/utils/iterable-helpers/concat.js +1 -5
- package/utils/iterable-helpers/concat.js.map +1 -1
- package/utils/iterable-helpers/default-if-empty.js +1 -5
- package/utils/iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/iterable-helpers/deferred.js +1 -5
- package/utils/iterable-helpers/deferred.js.map +1 -1
- package/utils/iterable-helpers/distinct.d.ts +1 -1
- package/utils/iterable-helpers/distinct.js +1 -5
- package/utils/iterable-helpers/distinct.js.map +1 -1
- package/utils/iterable-helpers/drain.js +1 -5
- package/utils/iterable-helpers/drain.js.map +1 -1
- package/utils/iterable-helpers/filter.d.ts +1 -1
- package/utils/iterable-helpers/filter.js +1 -5
- package/utils/iterable-helpers/filter.js.map +1 -1
- package/utils/iterable-helpers/first-or-default.d.ts +1 -1
- package/utils/iterable-helpers/first-or-default.js +3 -7
- package/utils/iterable-helpers/first-or-default.js.map +1 -1
- package/utils/iterable-helpers/first.d.ts +1 -1
- package/utils/iterable-helpers/first.js +3 -7
- package/utils/iterable-helpers/first.js.map +1 -1
- package/utils/iterable-helpers/for-each.d.ts +1 -1
- package/utils/iterable-helpers/for-each.js +1 -5
- package/utils/iterable-helpers/for-each.js.map +1 -1
- package/utils/iterable-helpers/group-single.d.ts +1 -1
- package/utils/iterable-helpers/group-single.js +3 -7
- package/utils/iterable-helpers/group-single.js.map +1 -1
- package/utils/iterable-helpers/group-to-map.d.ts +1 -1
- package/utils/iterable-helpers/group-to-map.js +3 -7
- package/utils/iterable-helpers/group-to-map.js.map +1 -1
- package/utils/iterable-helpers/group-to-single-map.d.ts +1 -1
- package/utils/iterable-helpers/group-to-single-map.js +1 -5
- package/utils/iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/iterable-helpers/group.d.ts +1 -1
- package/utils/iterable-helpers/group.js +3 -7
- package/utils/iterable-helpers/group.js.map +1 -1
- package/utils/iterable-helpers/index.d.ts +37 -37
- package/utils/iterable-helpers/index.js +37 -53
- package/utils/iterable-helpers/index.js.map +1 -1
- package/utils/iterable-helpers/is-iterable.d.ts +1 -1
- package/utils/iterable-helpers/is-iterable.js +5 -10
- package/utils/iterable-helpers/is-iterable.js.map +1 -1
- package/utils/iterable-helpers/last-or-default.d.ts +1 -1
- package/utils/iterable-helpers/last-or-default.js +3 -7
- package/utils/iterable-helpers/last-or-default.js.map +1 -1
- package/utils/iterable-helpers/last.d.ts +1 -1
- package/utils/iterable-helpers/last.js +3 -7
- package/utils/iterable-helpers/last.js.map +1 -1
- package/utils/iterable-helpers/map-many.d.ts +1 -1
- package/utils/iterable-helpers/map-many.js +1 -5
- package/utils/iterable-helpers/map-many.js.map +1 -1
- package/utils/iterable-helpers/map.d.ts +1 -1
- package/utils/iterable-helpers/map.js +1 -5
- package/utils/iterable-helpers/map.js.map +1 -1
- package/utils/iterable-helpers/materialize.js +1 -5
- package/utils/iterable-helpers/materialize.js.map +1 -1
- package/utils/iterable-helpers/metadata.d.ts +1 -1
- package/utils/iterable-helpers/metadata.js +1 -5
- package/utils/iterable-helpers/metadata.js.map +1 -1
- package/utils/iterable-helpers/pairwise.js +1 -5
- package/utils/iterable-helpers/pairwise.js.map +1 -1
- package/utils/iterable-helpers/range.js +1 -5
- package/utils/iterable-helpers/range.js.map +1 -1
- package/utils/iterable-helpers/reduce.d.ts +1 -1
- package/utils/iterable-helpers/reduce.js +1 -5
- package/utils/iterable-helpers/reduce.js.map +1 -1
- package/utils/iterable-helpers/single-or-default.d.ts +1 -1
- package/utils/iterable-helpers/single-or-default.js +1 -5
- package/utils/iterable-helpers/single-or-default.js.map +1 -1
- package/utils/iterable-helpers/single.d.ts +1 -1
- package/utils/iterable-helpers/single.js +1 -5
- package/utils/iterable-helpers/single.js.map +1 -1
- package/utils/iterable-helpers/skip.js +1 -5
- package/utils/iterable-helpers/skip.js.map +1 -1
- package/utils/iterable-helpers/sort.d.ts +1 -1
- package/utils/iterable-helpers/sort.js +2 -6
- package/utils/iterable-helpers/sort.js.map +1 -1
- package/utils/iterable-helpers/take-until.d.ts +1 -1
- package/utils/iterable-helpers/take-until.js +1 -5
- package/utils/iterable-helpers/take-until.js.map +1 -1
- package/utils/iterable-helpers/take-while.d.ts +1 -1
- package/utils/iterable-helpers/take-while.js +1 -5
- package/utils/iterable-helpers/take-while.js.map +1 -1
- package/utils/iterable-helpers/take.js +1 -5
- package/utils/iterable-helpers/take.js.map +1 -1
- package/utils/iterable-helpers/tap.d.ts +1 -1
- package/utils/iterable-helpers/tap.js +1 -5
- package/utils/iterable-helpers/tap.js.map +1 -1
- package/utils/iterable-helpers/types.js +1 -2
- package/utils/iterable-helpers/while.d.ts +1 -1
- package/utils/iterable-helpers/while.js +1 -5
- package/utils/iterable-helpers/while.js.map +1 -1
- package/utils/jwt.d.ts +2 -2
- package/utils/jwt.js +26 -31
- package/utils/jwt.js.map +1 -1
- package/utils/map.js +7 -15
- package/utils/map.js.map +1 -1
- package/utils/math.js +7 -17
- package/utils/math.js.map +1 -1
- package/utils/middleware.js +2 -7
- package/utils/middleware.js.map +1 -1
- package/utils/moving-metric.js +5 -9
- package/utils/moving-metric.js.map +1 -1
- package/utils/noop.js +1 -5
- package/utils/noop.js.map +1 -1
- package/utils/object/dereference.js +7 -13
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.js +15 -19
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/object/index.d.ts +6 -6
- package/utils/object/index.js +6 -22
- package/utils/object/index.js.map +1 -1
- package/utils/object/lazy-property.d.ts +1 -1
- package/utils/object/lazy-property.js +14 -21
- package/utils/object/lazy-property.js.map +1 -1
- package/utils/object/merge.js +13 -17
- package/utils/object/merge.js.map +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/object.js +18 -29
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +1 -1
- package/utils/object/property-name.js +16 -25
- package/utils/object/property-name.js.map +1 -1
- package/utils/ordered-feedable-async-iterable.d.ts +1 -1
- package/utils/ordered-feedable-async-iterable.js +3 -7
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +2 -2
- package/utils/patch-worker.js +23 -29
- package/utils/patch-worker.js.map +1 -1
- package/utils/patterns.js +4 -8
- package/utils/patterns.js.map +1 -1
- package/utils/periodic-reporter.js +9 -13
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.js +15 -19
- package/utils/periodic-sampler.js.map +1 -1
- package/utils/provider-function-iterable.js +14 -32
- package/utils/provider-function-iterable.js.map +1 -1
- package/utils/random.js +4 -9
- package/utils/random.js.map +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/reflection.js +7 -16
- package/utils/reflection.js.map +1 -1
- package/utils/set.js +7 -15
- package/utils/set.js.map +1 -1
- package/utils/singleton.js +3 -7
- package/utils/singleton.js.map +1 -1
- package/utils/sort.js +5 -12
- package/utils/sort.js.map +1 -1
- package/utils/stream/async-iterable-readable.d.ts +3 -3
- package/utils/stream/async-iterable-readable.js +8 -13
- package/utils/stream/async-iterable-readable.js.map +1 -1
- package/utils/stream/async-writable-stream.d.ts +3 -3
- package/utils/stream/async-writable-stream.js +3 -7
- package/utils/stream/async-writable-stream.js.map +1 -1
- package/utils/stream/index.d.ts +5 -5
- package/utils/stream/index.js +5 -21
- package/utils/stream/index.js.map +1 -1
- package/utils/stream/stream-helper-types.d.ts +1 -1
- package/utils/stream/stream-helper-types.js +1 -2
- package/utils/stream/stream-reader.js +20 -51
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/stream/typed-readable.d.ts +2 -2
- package/utils/stream/typed-readable.js +2 -5
- package/utils/stream/typed-readable.js.map +1 -1
- package/utils/timer.js +1 -5
- package/utils/timer.js.map +1 -1
- package/utils/timing.d.ts +1 -9
- package/utils/timing.js +12 -23
- package/utils/timing.js.map +1 -1
- package/utils/type-guards.d.ts +1 -1
- package/utils/type-guards.js +209 -422
- package/utils/type-guards.js.map +1 -1
- package/utils/type-of.js +4 -9
- package/utils/type-of.js.map +1 -1
- package/utils/units.js +51 -55
- package/utils/units.js.map +1 -1
- package/utils/url-builder.d.ts +1 -1
- package/utils/url-builder.js +14 -31
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/utils/z-base32.js +6 -11
- package/utils/z-base32.js.map +1 -1
- package/database/mongo/model/document.js +0 -75
- package/database/mongo/model/document.js.map +0 -1
- package/database/mongo/model/index.d.ts +0 -1
- package/database/mongo/model/index.js +0 -18
- package/database/mongo/model/index.js.map +0 -1
- package/database/mongo/mongo-entity-repository.js.map +0 -1
- package/database/mongo/simple-entity-repository.d.ts +0 -7
- package/database/mongo/simple-entity-repository.js +0 -11
- package/database/mongo/simple-entity-repository.js.map +0 -1
- package/lock/mongo/mongo-lock-repository.js.map +0 -1
- package/rxjs/compat/first-value-from.d.ts +0 -2
- package/rxjs/compat/first-value-from.js +0 -9
- package/rxjs/compat/first-value-from.js.map +0 -1
- package/rxjs/compat/index.d.ts +0 -1
- package/rxjs/compat/index.js +0 -18
- package/rxjs/compat/index.js.map +0 -1
package/utils/benchmark.js
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const math_1 = require("./math");
|
|
5
|
-
const noop_1 = require("./noop");
|
|
6
|
-
const timer_1 = require("./timer");
|
|
1
|
+
import { clamp } from './math.js';
|
|
2
|
+
import { noop } from './noop.js';
|
|
3
|
+
import { Timer } from './timer.js';
|
|
7
4
|
let microsecondsPerTimerRead = 0;
|
|
8
5
|
/**
|
|
9
6
|
* measure the timer overhead for more precise benchmarks
|
|
@@ -11,9 +8,9 @@ let microsecondsPerTimerRead = 0;
|
|
|
11
8
|
* only relevant for benchmarked functions with a execution time in the range of microseconds
|
|
12
9
|
* @param duration fow how long to measure the overhead in milliseconds (default 250)
|
|
13
10
|
*/
|
|
14
|
-
function measureBenchmarkOverhead(duration = 250) {
|
|
15
|
-
const timer = new
|
|
16
|
-
const warmupDuration =
|
|
11
|
+
export function measureBenchmarkOverhead(duration = 250) {
|
|
12
|
+
const timer = new Timer(true);
|
|
13
|
+
const warmupDuration = clamp(duration / 2, 50, 500);
|
|
17
14
|
const testDuration = Math.max(duration - warmupDuration, 50);
|
|
18
15
|
let operations = 0;
|
|
19
16
|
let warmupPhase = true;
|
|
@@ -21,7 +18,7 @@ function measureBenchmarkOverhead(duration = 250) {
|
|
|
21
18
|
if (warmupPhase && timer.milliseconds >= warmupDuration) {
|
|
22
19
|
warmupPhase = false;
|
|
23
20
|
operations = 0;
|
|
24
|
-
warmupFunction =
|
|
21
|
+
warmupFunction = noop;
|
|
25
22
|
timer.restart();
|
|
26
23
|
}
|
|
27
24
|
};
|
|
@@ -33,22 +30,20 @@ function measureBenchmarkOverhead(duration = 250) {
|
|
|
33
30
|
timer.stop();
|
|
34
31
|
microsecondsPerTimerRead = timer.microseconds / operations;
|
|
35
32
|
}
|
|
36
|
-
exports.measureBenchmarkOverhead = measureBenchmarkOverhead;
|
|
37
33
|
/**
|
|
38
34
|
* benchmarks a function for a number of times
|
|
39
35
|
* @param runs how often to run the benchmarked function
|
|
40
36
|
* @param fn the function to benchmark
|
|
41
37
|
* @param warmupDuration run the function for specified duration in milliseconds to warm it up
|
|
42
38
|
*/
|
|
43
|
-
function benchmark(runs, fn, warmupDuration = 500) {
|
|
39
|
+
export function benchmark(runs, fn, warmupDuration = 500) {
|
|
44
40
|
warmup(fn, warmupDuration);
|
|
45
|
-
const timer = new
|
|
41
|
+
const timer = new Timer(true);
|
|
46
42
|
for (let run = 1; run <= runs; run++) {
|
|
47
43
|
fn(run);
|
|
48
44
|
}
|
|
49
45
|
return calculateResult(runs, timer.milliseconds);
|
|
50
46
|
}
|
|
51
|
-
exports.benchmark = benchmark;
|
|
52
47
|
/**
|
|
53
48
|
* benchmarks a function for a duration
|
|
54
49
|
*
|
|
@@ -57,9 +52,9 @@ exports.benchmark = benchmark;
|
|
|
57
52
|
* @param fn the function to benchmark
|
|
58
53
|
* @param warmupDuration run the function for specified duration in milliseconds to warm it up
|
|
59
54
|
*/
|
|
60
|
-
function timedBenchmark(milliseconds, fn, warmupDuration = 500) {
|
|
55
|
+
export function timedBenchmark(milliseconds, fn, warmupDuration = 500) {
|
|
61
56
|
warmup(fn, warmupDuration);
|
|
62
|
-
const timer = new
|
|
57
|
+
const timer = new Timer(true);
|
|
63
58
|
let runs = 0;
|
|
64
59
|
do {
|
|
65
60
|
runs++;
|
|
@@ -67,22 +62,20 @@ function timedBenchmark(milliseconds, fn, warmupDuration = 500) {
|
|
|
67
62
|
} while (timer.milliseconds < milliseconds);
|
|
68
63
|
return calculateTimedResult(runs, timer.milliseconds);
|
|
69
64
|
}
|
|
70
|
-
exports.timedBenchmark = timedBenchmark;
|
|
71
65
|
/**
|
|
72
66
|
* benchmarks an async function for a number of times
|
|
73
67
|
* @param runs how often to run the benchmarked function
|
|
74
68
|
* @param fn the function to benchmark
|
|
75
69
|
* @param warmupDuration run the function for specified duration in milliseconds to warm it up
|
|
76
70
|
*/
|
|
77
|
-
async function benchmarkAsync(runs, fn, warmupDuration = 500) {
|
|
71
|
+
export async function benchmarkAsync(runs, fn, warmupDuration = 500) {
|
|
78
72
|
await warmupAsync(fn, warmupDuration);
|
|
79
|
-
const timer = new
|
|
73
|
+
const timer = new Timer(true);
|
|
80
74
|
for (let run = 1; run <= runs; run++) {
|
|
81
75
|
await fn(run);
|
|
82
76
|
}
|
|
83
77
|
return calculateResult(runs, timer.milliseconds);
|
|
84
78
|
}
|
|
85
|
-
exports.benchmarkAsync = benchmarkAsync;
|
|
86
79
|
/**
|
|
87
80
|
* benchmarks an async function for a duration
|
|
88
81
|
*
|
|
@@ -91,9 +84,9 @@ exports.benchmarkAsync = benchmarkAsync;
|
|
|
91
84
|
* @param fn the function to benchmark
|
|
92
85
|
* @param warmupDuration run the function for specified duration in milliseconds to warm it up
|
|
93
86
|
*/
|
|
94
|
-
async function timedBenchmarkAsync(milliseconds, fn, warmupDuration = 500) {
|
|
87
|
+
export async function timedBenchmarkAsync(milliseconds, fn, warmupDuration = 500) {
|
|
95
88
|
await warmupAsync(fn, warmupDuration);
|
|
96
|
-
const timer = new
|
|
89
|
+
const timer = new Timer(true);
|
|
97
90
|
let runs = 0;
|
|
98
91
|
do {
|
|
99
92
|
runs++;
|
|
@@ -101,7 +94,6 @@ async function timedBenchmarkAsync(milliseconds, fn, warmupDuration = 500) {
|
|
|
101
94
|
} while (timer.milliseconds < milliseconds);
|
|
102
95
|
return calculateTimedResult(runs, timer.milliseconds);
|
|
103
96
|
}
|
|
104
|
-
exports.timedBenchmarkAsync = timedBenchmarkAsync;
|
|
105
97
|
function calculateTimedResult(runs, time) {
|
|
106
98
|
const correctedTime = time - (microsecondsPerTimerRead * runs / 1000);
|
|
107
99
|
return calculateResult(runs, correctedTime);
|
|
@@ -118,7 +110,7 @@ function warmup(fn, duration) {
|
|
|
118
110
|
if (duration <= 0) {
|
|
119
111
|
return;
|
|
120
112
|
}
|
|
121
|
-
const timer = new
|
|
113
|
+
const timer = new Timer(true);
|
|
122
114
|
let runs = 0;
|
|
123
115
|
while (timer.milliseconds < duration) {
|
|
124
116
|
fn(++runs);
|
|
@@ -128,7 +120,7 @@ async function warmupAsync(fn, duration) {
|
|
|
128
120
|
if (duration <= 0) {
|
|
129
121
|
return;
|
|
130
122
|
}
|
|
131
|
-
const timer = new
|
|
123
|
+
const timer = new Timer(true);
|
|
132
124
|
let runs = 0;
|
|
133
125
|
while (timer.milliseconds < duration) {
|
|
134
126
|
await fn(++runs);
|
package/utils/benchmark.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../../source/utils/benchmark.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../../source/utils/benchmark.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC,IAAI,wBAAwB,GAAG,CAAC,CAAC;AAIjC;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAAC,WAAmB,GAAG;IAC7D,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,cAAc,GAAG,KAAK,CAAC,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,cAAc,EAAE,EAAE,CAAC,CAAC;IAE7D,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,WAAW,GAAG,IAAI,CAAC;IAEvB,IAAI,cAAc,GAAG,GAAS,EAAE;QAC9B,IAAI,WAAW,IAAI,KAAK,CAAC,YAAY,IAAI,cAAc,EAAE;YACvD,WAAW,GAAG,KAAK,CAAC;YACpB,UAAU,GAAG,CAAC,CAAC;YACf,cAAc,GAAG,IAAI,CAAC;YACtB,KAAK,CAAC,O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AAI,QAAQ,IAAI,CAAC,EAAE;QACjB,OAAO;KACR;IAED,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;IAE9B,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,OAAO,KAAK,CAAC,YAAY,GAAG,QAAQ,EAAE;QACpC,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;KACZ;AACH,CAAC;AAED,KAAK,UAAU,WAAW,CAAC,EAAmC,EAAE,QAAgB;IAC9E,IAAI,QAAQ,IAAI,CAAC,EAAE;QACjB,OAAO;KACR;IAED,MAAM,KAAK,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC;IAE9B,IAAI,IAAI,GAAG,CAAC,CAAC;IACb,OAAO,KAAK,CAAC,YAAY,GAAG,QAAQ,EAAE;QACpC,MAAM,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;KAClB;AACH,CAAC"}
|
package/utils/binary-search.d.ts
CHANGED
package/utils/binary-search.js
CHANGED
|
@@ -1,62 +1,51 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.binarySearchInsertionIndex = exports.binarySearchLastIndexEqualOrSmaller = exports.binarySearchFirstIndexEqualOrLarger = exports.binarySearchNearestIndex = exports.binarySearchLast = exports.binarySearchFirst = exports.binarySearch = void 0;
|
|
4
|
-
const comparison_1 = require("./comparison");
|
|
1
|
+
import { compareByValue } from './comparison.js';
|
|
5
2
|
var Position;
|
|
6
3
|
(function (Position) {
|
|
7
4
|
Position[Position["Undefined"] = 0] = "Undefined";
|
|
8
5
|
Position[Position["First"] = 1] = "First";
|
|
9
6
|
Position[Position["Last"] = 2] = "Last";
|
|
10
7
|
})(Position || (Position = {}));
|
|
11
|
-
function binarySearch(values, searchValue, comparator =
|
|
8
|
+
export function binarySearch(values, searchValue, comparator = compareByValue, options) {
|
|
12
9
|
return _binarySearch(values, searchValue, Position.Undefined, comparator, options);
|
|
13
10
|
}
|
|
14
|
-
|
|
15
|
-
function binarySearchFirst(values, searchValue, comparator = comparison_1.compareByValue, options) {
|
|
11
|
+
export function binarySearchFirst(values, searchValue, comparator = compareByValue, options) {
|
|
16
12
|
return _binarySearch(values, searchValue, Position.First, comparator, options);
|
|
17
13
|
}
|
|
18
|
-
|
|
19
|
-
function binarySearchLast(values, searchValue, comparator = comparison_1.compareByValue, options) {
|
|
14
|
+
export function binarySearchLast(values, searchValue, comparator = compareByValue, options) {
|
|
20
15
|
return _binarySearch(values, searchValue, Position.Last, comparator, options);
|
|
21
16
|
}
|
|
22
|
-
exports.binarySearchLast = binarySearchLast;
|
|
23
17
|
function _binarySearch(values, searchValue, position, comparator, options) {
|
|
24
18
|
const { index, comparison } = _binarySearchRawIndex(values, searchValue, position, comparator, options);
|
|
25
19
|
return (comparison == 0)
|
|
26
20
|
? index
|
|
27
21
|
: undefined;
|
|
28
22
|
}
|
|
29
|
-
function binarySearchNearestIndex(values, searchValue, comparator =
|
|
23
|
+
export function binarySearchNearestIndex(values, searchValue, comparator = compareByValue, options) {
|
|
30
24
|
const { index } = _binarySearchRawIndex(values, searchValue, Position.Undefined, comparator, options);
|
|
31
25
|
return index;
|
|
32
26
|
}
|
|
33
|
-
|
|
34
|
-
function binarySearchFirstIndexEqualOrLarger(values, searchValue, comparator = comparison_1.compareByValue, options) {
|
|
27
|
+
export function binarySearchFirstIndexEqualOrLarger(values, searchValue, comparator = compareByValue, options) {
|
|
35
28
|
const { index, comparison } = _binarySearchRawIndex(values, searchValue, Position.First, comparator, options);
|
|
36
29
|
if ((index == values.length - 1) && (comparison < 0)) {
|
|
37
30
|
return undefined;
|
|
38
31
|
}
|
|
39
32
|
return index + (comparison < 0);
|
|
40
33
|
}
|
|
41
|
-
|
|
42
|
-
function binarySearchLastIndexEqualOrSmaller(values, searchValue, comparator = comparison_1.compareByValue, options) {
|
|
34
|
+
export function binarySearchLastIndexEqualOrSmaller(values, searchValue, comparator = compareByValue, options) {
|
|
43
35
|
const { index, comparison } = _binarySearchRawIndex(values, searchValue, Position.Last, comparator, options);
|
|
44
36
|
if ((index == 0) && (comparison > 0)) {
|
|
45
37
|
return undefined;
|
|
46
38
|
}
|
|
47
39
|
return (comparison > 0) ? (index - 1) : index;
|
|
48
40
|
}
|
|
49
|
-
|
|
50
|
-
function binarySearchInsertionIndex(values, searchValue, comparator = comparison_1.compareByValue) {
|
|
41
|
+
export function binarySearchInsertionIndex(values, searchValue, comparator = compareByValue) {
|
|
51
42
|
const { index, comparison } = _binarySearchRawIndex(values, searchValue, Position.Undefined, comparator);
|
|
52
43
|
return index + Number(comparison <= 0);
|
|
53
44
|
}
|
|
54
|
-
exports.binarySearchInsertionIndex = binarySearchInsertionIndex;
|
|
55
45
|
// eslint-disable-next-line max-statements, max-lines-per-function
|
|
56
46
|
function _binarySearchRawIndex(values, searchValue, position, comparator, options) {
|
|
57
|
-
|
|
58
|
-
let
|
|
59
|
-
let max = (_b = options === null || options === void 0 ? void 0 : options.max) !== null && _b !== void 0 ? _b : values.length - 1;
|
|
47
|
+
let min = options?.min ?? 0;
|
|
48
|
+
let max = options?.max ?? values.length - 1;
|
|
60
49
|
let middle = 0;
|
|
61
50
|
let value;
|
|
62
51
|
let comparison;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary-search.js","sourceRoot":"","sources":["../../source/utils/binary-search.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"binary-search.js","sourceRoot":"","sources":["../../source/utils/binary-search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAWjD,IAAK,QAIJ;AAJD,WAAK,QAAQ;IACX,iDAAa,CAAA;IACb,yCAAS,CAAA;IACT,uCAAQ,CAAA;AACV,CAAC,EAJI,QAAQ,KAAR,QAAQ,QAIZ;AAED,MAAM,UAAU,YAAY,CAAqC,MAAoB,EAAE,WAAwB,EAAE,aAAsC,cAAc,EAAE,OAA6B;IAClM,OAAO,aAAa,CA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C,MAAM,CAAE,CAAC;QACxB,UAAU,GAAG,UAAU,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAE5C,IAAI,UAAU,GAAG,CAAC,EAAE;YAClB,GAAG,GAAG,MAAM,GAAG,CAAC,CAAC;SAClB;aACI,IAAI,UAAU,GAAG,CAAC,EAAE;YACvB,GAAG,GAAG,MAAM,GAAG,CAAC,CAAC;SAClB;aACI,IAAI,kBAAkB,EAAE,EAAE;YAC7B,cAAc,EAAE,CAAC;SAClB;aACI,IAAI,UAAU,IAAI,CAAC,EAAE;YACxB,MAAM;SACP;KACF;IAED,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AACvC,CAAC"}
|
package/utils/binary.d.ts
CHANGED
package/utils/binary.js
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.concatArrayBufferViews = exports.concatArrayBuffers = exports.toUint8Array = void 0;
|
|
4
|
-
const type_guards_1 = require("./type-guards");
|
|
1
|
+
import { assert, isArrayBuffer } from './type-guards.js';
|
|
5
2
|
/**
|
|
6
3
|
* eslint-disable-next-line @typescript-eslint/no-shadow
|
|
7
4
|
* convert to Uint8Array
|
|
8
5
|
* @param data binary data
|
|
9
6
|
* @param clone whether to clone buffer or not
|
|
10
7
|
*/
|
|
11
|
-
function toUint8Array(data, clone = false) {
|
|
12
|
-
if (
|
|
8
|
+
export function toUint8Array(data, clone = false) {
|
|
9
|
+
if (isArrayBuffer(data)) {
|
|
13
10
|
return clone
|
|
14
11
|
? new Uint8Array(data.slice(0))
|
|
15
12
|
: new Uint8Array(data);
|
|
@@ -19,20 +16,18 @@ function toUint8Array(data, clone = false) {
|
|
|
19
16
|
? new Uint8Array(buffer.slice(byteOffset, byteLength))
|
|
20
17
|
: new Uint8Array(buffer, byteOffset, byteLength);
|
|
21
18
|
}
|
|
22
|
-
|
|
23
|
-
function concatArrayBuffers(buffers) {
|
|
19
|
+
export function concatArrayBuffers(buffers) {
|
|
24
20
|
const arrays = buffers.map((buffer) => new Uint8Array(buffer));
|
|
25
21
|
const bytes = concatArrayBufferViews(arrays);
|
|
26
22
|
return bytes.buffer;
|
|
27
23
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
(0, type_guards_1.assert)(arrays.length > 0, 'no array provided');
|
|
24
|
+
export function concatArrayBufferViews(arrays, totalLength) {
|
|
25
|
+
assert(arrays.length > 0, 'no array provided');
|
|
31
26
|
const type = arrays[0].constructor;
|
|
32
27
|
if ((typeof Buffer != 'undefined') && (type == Buffer)) {
|
|
33
28
|
return Buffer.concat(arrays, totalLength);
|
|
34
29
|
}
|
|
35
|
-
const totalBytes = totalLength
|
|
30
|
+
const totalBytes = totalLength ?? arrays.reduce((sum, array) => sum + array.byteLength, 0);
|
|
36
31
|
const merged = new Uint8Array(totalBytes);
|
|
37
32
|
let currentIndex = 0;
|
|
38
33
|
for (const array of arrays) {
|
|
@@ -42,5 +37,4 @@ function concatArrayBufferViews(arrays, totalLength) {
|
|
|
42
37
|
}
|
|
43
38
|
return new type(merged.buffer);
|
|
44
39
|
}
|
|
45
|
-
exports.concatArrayBufferViews = concatArrayBufferViews;
|
|
46
40
|
//# sourceMappingURL=binary.js.map
|
package/utils/binary.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binary.js","sourceRoot":"","sources":["../../source/utils/binary.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"binary.js","sourceRoot":"","sources":["../../source/utils/binary.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEzD;;;;;GAKG;AACH,MAAM,UAAU,YAAY,CAAC,IAAgB,EAAE,QAAiB,KAAK;IACnE,IAAI,aAAa,CAAC,IAAI,CAAC,EAAE;QACvB,OAAO,KAAK;YACV,CAAC,CAAC,IAAI,UAAU,CAAC,IAAI,CAA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G,CAAC,CAAC;IACrB,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC9C,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACrC,YAAY,IAAI,UAAU,CAAC,UAAU,CAAC;KACvC;IAED,OAAO,IAAK,IAA8B,CAAC,MAAM,CAAC,MAAM,CAAiB,CAAC;AAC5E,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const noop_2 = require("./noop");
|
|
7
|
-
const type_guards_1 = require("./type-guards");
|
|
8
|
-
class CancellationToken {
|
|
1
|
+
import { noopOperator } from "../rxjs/noop.js";
|
|
2
|
+
import { BehaviorSubject, distinctUntilChanged, filter, first, firstValueFrom, from, fromEvent, map, skip, take } from 'rxjs';
|
|
3
|
+
import { noop } from './noop.js';
|
|
4
|
+
import { isBoolean, isUndefined } from './type-guards.js';
|
|
5
|
+
export class CancellationToken {
|
|
9
6
|
/**
|
|
10
7
|
* @param initialState which state to initialze this token to
|
|
11
8
|
* - `false`: unset
|
|
@@ -13,10 +10,10 @@ class CancellationToken {
|
|
|
13
10
|
* @default false
|
|
14
11
|
*/
|
|
15
12
|
constructor(initialState = false) {
|
|
16
|
-
this.stateSubject = new
|
|
17
|
-
this.state$ = this.stateSubject.pipe(
|
|
18
|
-
this.set$ = this.state$.pipe(
|
|
19
|
-
this.unset$ = this.state$.pipe(
|
|
13
|
+
this.stateSubject = new BehaviorSubject(initialState);
|
|
14
|
+
this.state$ = this.stateSubject.pipe(distinctUntilChanged());
|
|
15
|
+
this.set$ = this.state$.pipe(filter((state) => state), map(() => undefined)); // eslint-disable-line @typescript-eslint/no-unsafe-argument
|
|
16
|
+
this.unset$ = this.state$.pipe(filter((state) => !state), map(() => undefined)); // eslint-disable-line @typescript-eslint/no-unsafe-argument
|
|
20
17
|
}
|
|
21
18
|
get isSet() {
|
|
22
19
|
return this.stateSubject.value;
|
|
@@ -25,24 +22,24 @@ class CancellationToken {
|
|
|
25
22
|
return !this.stateSubject.value;
|
|
26
23
|
}
|
|
27
24
|
get $set() {
|
|
28
|
-
return
|
|
25
|
+
return firstValueFrom(this.set$);
|
|
29
26
|
}
|
|
30
27
|
get $unset() {
|
|
31
|
-
return
|
|
28
|
+
return firstValueFrom(this.unset$);
|
|
32
29
|
}
|
|
33
30
|
get $state() {
|
|
34
|
-
return
|
|
31
|
+
return firstValueFrom(this.state$.pipe(skip(1)));
|
|
35
32
|
}
|
|
36
33
|
get asReadonly() {
|
|
37
34
|
return this;
|
|
38
35
|
}
|
|
39
36
|
get asAbortSignal() {
|
|
40
|
-
if (
|
|
37
|
+
if (isUndefined(this.abortController)) {
|
|
41
38
|
const abortController = new AbortController();
|
|
42
39
|
this.abortController = abortController;
|
|
43
|
-
this.set$.pipe(
|
|
40
|
+
this.set$.pipe(first()).subscribe(() => {
|
|
44
41
|
abortController.abort();
|
|
45
|
-
this.unset$.pipe(
|
|
42
|
+
this.unset$.pipe(first()).subscribe(() => (this.abortController = undefined));
|
|
46
43
|
});
|
|
47
44
|
}
|
|
48
45
|
return this.abortController.signal;
|
|
@@ -53,7 +50,7 @@ class CancellationToken {
|
|
|
53
50
|
* @param complete complete token after resolve
|
|
54
51
|
*/
|
|
55
52
|
static fromAbortSignal(signal, complete = true) {
|
|
56
|
-
const signal$ =
|
|
53
|
+
const signal$ = fromEvent(signal, 'abort', () => true);
|
|
57
54
|
return CancellationToken.fromObservable(signal$, { complete });
|
|
58
55
|
}
|
|
59
56
|
/**
|
|
@@ -62,7 +59,7 @@ class CancellationToken {
|
|
|
62
59
|
* @param complete complete token after resolve
|
|
63
60
|
*/
|
|
64
61
|
static fromPromise(promise, complete = true) {
|
|
65
|
-
const signal$ =
|
|
62
|
+
const signal$ = from(promise).pipe(map(() => true));
|
|
66
63
|
return CancellationToken.fromObservable(signal$, { complete });
|
|
67
64
|
}
|
|
68
65
|
/**
|
|
@@ -71,18 +68,18 @@ class CancellationToken {
|
|
|
71
68
|
*/
|
|
72
69
|
static fromObservable(observable, config) {
|
|
73
70
|
const token = new CancellationToken();
|
|
74
|
-
const source$ = observable.pipe(
|
|
71
|
+
const source$ = observable.pipe(map((state) => (isBoolean(state) ? state : true)));
|
|
75
72
|
CancellationToken.connect(source$, token, config);
|
|
76
73
|
return token;
|
|
77
74
|
}
|
|
78
75
|
static connect(stateObservable, target, config = {}) {
|
|
79
76
|
const { set = true, unset = true, complete = true, error = true, immediate = true, once = false } = config;
|
|
80
77
|
const state$ = stateObservable
|
|
81
|
-
.pipe(immediate ?
|
|
78
|
+
.pipe(immediate ? noopOperator() : skip(1), (set && unset) ? noopOperator() : set ? filter((state) => state) : unset ? filter((state) => !state) : filter(() => false), once ? take(1) : noopOperator());
|
|
82
79
|
const subscription = state$.subscribe({
|
|
83
80
|
next: (state) => target.setState(state),
|
|
84
|
-
error: error ? ((errorValue) => target.error(errorValue)) :
|
|
85
|
-
complete: complete ? (() => target.complete()) :
|
|
81
|
+
error: error ? ((errorValue) => target.error(errorValue)) : noop,
|
|
82
|
+
complete: complete ? (() => target.complete()) : noop
|
|
86
83
|
});
|
|
87
84
|
target.stateSubject.subscribe({
|
|
88
85
|
error: () => subscription.unsubscribe(),
|
|
@@ -138,11 +135,10 @@ class CancellationToken {
|
|
|
138
135
|
}
|
|
139
136
|
async then(onfulfilled) {
|
|
140
137
|
await this.$set;
|
|
141
|
-
return onfulfilled
|
|
138
|
+
return onfulfilled?.();
|
|
142
139
|
}
|
|
143
140
|
subscribe(observer) {
|
|
144
141
|
return this.set$.subscribe(observer);
|
|
145
142
|
}
|
|
146
143
|
}
|
|
147
|
-
exports.CancellationToken = CancellationToken;
|
|
148
144
|
//# sourceMappingURL=cancellation-token.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cancellation-token.js","sourceRoot":"","sources":["../../source/utils/cancellation-token.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cancellation-token.js","sourceRoot":"","sources":["../../source/utils/cancellation-token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,wBAAuB;AAE9C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,IAAI,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC9H,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAmG1D,MAAM,OAAO,iBAAiB;IA+C5B;;;;;OAKG;IACH,YAAY,eAAwB,KAAK;QACvC,IAAI,CAAC,YAAY,GAAG,IAAI,eAAe,CAAU,YAAY,CAAC,CAAC;QAC/D,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;QAC7D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4DAA4D;QAC1I,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4DAA4D;IAC/I,CAAC;IAjDD,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;IACjC,CAAC;IAED,IAAI,OAAO;QACT,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;IACl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AAC,CAAC;QACvD,OAAO,IAAI,CAAC;IACd,CAAC;IAED;;OAEG;IACH,GAAG;QACD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,KAAK;QACH,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,KAAc;QACrB,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IAChC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,KAAY;QAChB,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACjC,CAAC;IAED;;;;OAIG;IACH,QAAQ;QACN,IAAI,CAAC,YAAY,CAAC,QAAQ,EAAE,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,IAAI,CAAU,WAAkF;QACpG,MAAM,IAAI,CAAC,IAAI,CAAC;QAChB,OAAO,WAAW,EAAE,EAAa,CAAC;IACpC,CAAC;IAED,SAAS,CAAC,QAAiC;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IACvC,CAAC;CACF"}
|
package/utils/comparison.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.compareByValueDescending = exports.compareByValue = exports.compareByValueSelectionToOrder = exports.compareByValueToOrder = exports.compareByValueSelectionOrdered = exports.compareByValueSelectionDescending = exports.compareByValueSelection = void 0;
|
|
4
|
-
function compareByValueSelection(...selectors) {
|
|
1
|
+
export function compareByValueSelection(...selectors) {
|
|
5
2
|
return (a, b) => {
|
|
6
3
|
for (const selector of selectors) {
|
|
7
4
|
const selectedA = selector(a);
|
|
@@ -14,8 +11,7 @@ function compareByValueSelection(...selectors) {
|
|
|
14
11
|
return 0;
|
|
15
12
|
};
|
|
16
13
|
}
|
|
17
|
-
|
|
18
|
-
function compareByValueSelectionDescending(...selectors) {
|
|
14
|
+
export function compareByValueSelectionDescending(...selectors) {
|
|
19
15
|
return (a, b) => {
|
|
20
16
|
for (const selector of selectors) {
|
|
21
17
|
const selectedA = selector(a);
|
|
@@ -28,8 +24,7 @@ function compareByValueSelectionDescending(...selectors) {
|
|
|
28
24
|
return 0;
|
|
29
25
|
};
|
|
30
26
|
}
|
|
31
|
-
|
|
32
|
-
function compareByValueSelectionOrdered(...selectors) {
|
|
27
|
+
export function compareByValueSelectionOrdered(...selectors) {
|
|
33
28
|
return (a, b) => {
|
|
34
29
|
for (const [selector, order] of selectors) {
|
|
35
30
|
const selectedA = selector(a);
|
|
@@ -44,12 +39,10 @@ function compareByValueSelectionOrdered(...selectors) {
|
|
|
44
39
|
return 0;
|
|
45
40
|
};
|
|
46
41
|
}
|
|
47
|
-
|
|
48
|
-
function compareByValueToOrder(order) {
|
|
42
|
+
export function compareByValueToOrder(order) {
|
|
49
43
|
return compareByValueSelectionToOrder(order, (item) => item);
|
|
50
44
|
}
|
|
51
|
-
|
|
52
|
-
function compareByValueSelectionToOrder(order, selector) {
|
|
45
|
+
export function compareByValueSelectionToOrder(order, selector) {
|
|
53
46
|
const indexMapEntries = order.map((orderItem, index) => [orderItem, index]);
|
|
54
47
|
const indexMap = new Map(indexMapEntries);
|
|
55
48
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
@@ -64,8 +57,7 @@ function compareByValueSelectionToOrder(order, selector) {
|
|
|
64
57
|
return compareByValue(indexA, indexB);
|
|
65
58
|
};
|
|
66
59
|
}
|
|
67
|
-
|
|
68
|
-
function compareByValue(a, b) {
|
|
60
|
+
export function compareByValue(a, b) {
|
|
69
61
|
if (a === b) {
|
|
70
62
|
return 0;
|
|
71
63
|
}
|
|
@@ -77,8 +69,7 @@ function compareByValue(a, b) {
|
|
|
77
69
|
}
|
|
78
70
|
throw new Error('objects not comparable');
|
|
79
71
|
}
|
|
80
|
-
|
|
81
|
-
function compareByValueDescending(a, b) {
|
|
72
|
+
export function compareByValueDescending(a, b) {
|
|
82
73
|
if (a === b) {
|
|
83
74
|
return 0;
|
|
84
75
|
}
|
|
@@ -90,5 +81,4 @@ function compareByValueDescending(a, b) {
|
|
|
90
81
|
}
|
|
91
82
|
throw new Error('objects not comparable');
|
|
92
83
|
}
|
|
93
|
-
exports.compareByValueDescending = compareByValueDescending;
|
|
94
84
|
//# sourceMappingURL=comparison.js.map
|
package/utils/comparison.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comparison.js","sourceRoot":"","sources":["../../source/utils/comparison.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comparison.js","sourceRoot":"","sources":["../../source/utils/comparison.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,uBAAuB,CAAI,GAAG,SAAmC;IAC/E,OAAO,CAAC,CAAI,EAAE,CAAI,EAAE,EAAE;QACpB,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;YAChC,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC9B,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC9B,MAAM,UAAU,GAAG,cAAc,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;YAExD,IAAI,UAAU,IAAI,CAAC,EAAE;gBACnB,OAAO,UAAU,CAAC;aACnB;SACF;QAED,OAAO,CAAC,CAAC;IACX,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAI,GAAG,SAAmC;IACzF,OAAO,CAAC,CAAI,EAAE,CAAI,EAAE,EAAE;QACpB,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE;YAChC,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC9B,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC9B,MAAM,UAAU,GAAG,wBAAwB,CAAC,SAAS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,MAAM,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;QAC9B,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QACvC,MAAM,MAAM,GAAG,QAAQ,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC;QAEvC,IAAI,MAAM,IAAI,SAAS,IAAI,MAAM,IAAI,SAAS,EAAE;YAC9C,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;SAC/C;QAED,OAAO,cAAc,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,cAAc,CAAI,CAAI,EAAE,CAAI;IAC1C,IAAI,CAAC,KAAK,CAAC,EAAE;QACX,OAAO,CAAC,CAAC;KACV;SACI,IAAI,CAAC,GAAG,CAAC,EAAE;QACd,OAAO,CAAC,CAAC;KACV;SACI,IAAI,CAAC,GAAG,CAAC,EAAE;QACd,OAAO,CAAC,CAAC,CAAC;KACX;IAED,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC5C,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAI,CAAI,EAAE,CAAI;IACpD,IAAI,CAAC,KAAK,CAAC,EAAE;QACX,OAAO,CAAC,CAAC;KACV;SACI,IAAI,CAAC,GAAG,CAAC,EAAE;QACd,OAAO,CAAC,CAAC,CAAC;KACX;SACI,IAAI,CAAC,GAAG,CAAC,EAAE;QACd,OAAO,CAAC,CAAC;KACV;IAED,MAAM,IAAI,KAAK,CAAC,wBAAwB,CAAC,CAAC;AAC5C,CAAC"}
|
package/utils/compression.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
/// <reference types="node" />
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
3
3
|
import * as Zlib from 'zlib';
|
|
4
4
|
export interface CompressionResult {
|
|
5
5
|
toBuffer(): Promise<Uint8Array>;
|
package/utils/compression.js
CHANGED
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
const z_base32_1 = require("./z-base32");
|
|
8
|
-
function compressString(input, algorithm, options) {
|
|
9
|
-
const inputBuffer = (0, encoding_1.encodeUtf8)(input);
|
|
1
|
+
import * as Zlib from 'zlib';
|
|
2
|
+
import { encodeBase64, encodeBase64Url } from './base64.js';
|
|
3
|
+
import { decodeText, encodeHex, encodeUtf8 } from './encoding.js';
|
|
4
|
+
import { zBase32Encode } from './z-base32.js';
|
|
5
|
+
export function compressString(input, algorithm, options) {
|
|
6
|
+
const inputBuffer = encodeUtf8(input);
|
|
10
7
|
return compress(inputBuffer, algorithm, options);
|
|
11
8
|
}
|
|
12
|
-
|
|
13
|
-
function compress(buffer, algorithm, options) {
|
|
9
|
+
export function compress(buffer, algorithm, options) {
|
|
14
10
|
const compressedBuffer = _compress(buffer, algorithm, options);
|
|
15
11
|
return {
|
|
16
12
|
toBuffer: async () => compressedBuffer,
|
|
17
|
-
toHex: async () =>
|
|
18
|
-
toBase64: async () =>
|
|
19
|
-
toBase64Url: async () =>
|
|
20
|
-
toZBase32: async () =>
|
|
13
|
+
toHex: async () => encodeHex(await compressedBuffer),
|
|
14
|
+
toBase64: async () => encodeBase64(await compressedBuffer),
|
|
15
|
+
toBase64Url: async () => encodeBase64Url(await compressedBuffer),
|
|
16
|
+
toZBase32: async () => zBase32Encode(await compressedBuffer)
|
|
21
17
|
};
|
|
22
18
|
}
|
|
23
|
-
exports.compress = compress;
|
|
24
19
|
async function _compress(buffer, algorithm, options) {
|
|
25
20
|
return new Promise((resolve, reject) => {
|
|
26
21
|
const compressor = algorithm == 'gzip' ? Zlib.gzip
|
|
@@ -47,23 +42,21 @@ async function _compress(buffer, algorithm, options) {
|
|
|
47
42
|
}
|
|
48
43
|
});
|
|
49
44
|
}
|
|
50
|
-
function decompressString(input, encoding, algorithm, options) {
|
|
45
|
+
export function decompressString(input, encoding, algorithm, options) {
|
|
51
46
|
const inputBuffer = Buffer.from(input, encoding);
|
|
52
47
|
return decompress(inputBuffer, algorithm, options);
|
|
53
48
|
}
|
|
54
|
-
|
|
55
|
-
function decompress(buffer, algorithm, options) {
|
|
49
|
+
export function decompress(buffer, algorithm, options) {
|
|
56
50
|
const decompressedBuffer = _decompress(buffer, algorithm, options);
|
|
57
51
|
return {
|
|
58
52
|
toBuffer: async () => decompressedBuffer,
|
|
59
|
-
toHex: async () =>
|
|
60
|
-
toBase64: async () =>
|
|
61
|
-
toBase64Url: async () =>
|
|
62
|
-
toZBase32: async () =>
|
|
63
|
-
toUtf8: async () =>
|
|
53
|
+
toHex: async () => encodeHex(await decompressedBuffer),
|
|
54
|
+
toBase64: async () => encodeBase64(await decompressedBuffer),
|
|
55
|
+
toBase64Url: async () => encodeBase64Url(await decompressedBuffer),
|
|
56
|
+
toZBase32: async () => zBase32Encode(await decompressedBuffer),
|
|
57
|
+
toUtf8: async () => decodeText(await decompressedBuffer)
|
|
64
58
|
};
|
|
65
59
|
}
|
|
66
|
-
exports.decompress = decompress;
|
|
67
60
|
async function _decompress(buffer, algorithm, options) {
|
|
68
61
|
return new Promise((resolve, reject) => {
|
|
69
62
|
const decompressor = algorithm == 'gzip' ? Zlib.gunzip
|