@tstdl/base 0.71.50 → 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 +3 -3
- 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 +8 -9
- 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 +3 -3
- package/api/server/module.js +7 -10
- package/api/server/module.js.map +1 -1
- package/api/types.d.ts +10 -5
- 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.d.ts +2 -2
- 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 +2 -1
- 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 +12 -29
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-worker.js","sourceRoot":"","sources":["../../source/utils/patch-worker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patch-worker.js","sourceRoot":"","sources":["../../source/utils/patch-worker.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAc,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC3G,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,mBAAmB,GAAG,IAAI,CAAC;AACjC,MAAM,iBAAiB,GAAG,KAAK,CAAC;AAWhC,MAAM,OAAO,WAAW;IAQtB,YAAY,OAA8B;QACxC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAAC;QACvC,IAAI,CAAC,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,EAAE,CAAC;QAC7C,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;QAEvB,IAAI,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE;YAC/B,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;SACjC;QAED,IAAI,SAAS,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE;YACjC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;SACrC;QAED,KAAK,IAAI,CAAC,UAAU,EAAE,CAAC;IACzB,CAAC;IAED,QAAQ,CAAC,UAA2B;QAClC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,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CAAC,SAAS,EAAE,IAAI,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC,CAAC;QAEpH,IAAI,KAA6B,CAAC;QAElC,OAAO,IAAI,CAAC,aAAa,CAAC,OAAO,IAAI,SAAS,CAAC,KAAK,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;YAC9E,MAAM,cAAc,CAAC,OAAO,CAAC,CAAC;YAE9B,IAAI,WAAW,CAAC,KAAK,CAAC,IAAI,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;gBACjD,SAAS;aACV;YAED,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,EAAgB,CAAC;YAClD,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;YAEvB,IAAI;gBACF,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;gBAClC,KAAK,GAAG,SAAS,CAAC;aACnB;YACD,OAAO,KAAc,EAAE;gBACrB,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,KAAc,CAAC,CAAC;gBAClD,MAAM,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,iBAAiB,CAAC,CAAC;aAC7D;SACF;IACH,CAAC;CACF"}
|
package/utils/patterns.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isEmail = exports.emailPattern = exports.numberPattern = void 0;
|
|
4
1
|
/** pattern matching valid JavaScript number literals including binary, octal and hexadecimal format but *not* Infinity and NaN */
|
|
5
|
-
|
|
2
|
+
export const numberPattern = /^[+-]?(?:\d*\.?\d+|\d+\.?\d*|0[bB][01]+|0[xX][\da-fA-F]+|0[oO][0-7]+)$/u;
|
|
6
3
|
/** pattern matching valid email addresses */
|
|
7
4
|
// eslint-disable-next-line no-control-regex
|
|
8
|
-
|
|
9
|
-
function isEmail(value) {
|
|
10
|
-
return
|
|
5
|
+
export const emailPattern = /^(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/u;
|
|
6
|
+
export function isEmail(value) {
|
|
7
|
+
return emailPattern.test(value);
|
|
11
8
|
}
|
|
12
|
-
exports.isEmail = isEmail;
|
|
13
9
|
//# sourceMappingURL=patterns.js.map
|
package/utils/patterns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.js","sourceRoot":"","sources":["../../source/utils/patterns.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patterns.js","sourceRoot":"","sources":["../../source/utils/patterns.ts"],"names":[],"mappings":"AAAA,kIAAkI;AAClI,MAAM,CAAC,MAAM,aAAa,GAAG,yEAAyE,CAAC;AAEvG,6CAA6C;AAC7C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,YAAY,GAAG,ieAAie,CAAC;AAE9f,MAAM,UAAU,OAAO,CAAC,KAAa;IACnC,OAAO,YAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC"}
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const cancellation_token_1 = require("./cancellation-token");
|
|
7
|
-
const timing_1 = require("./timing");
|
|
8
|
-
class PeriodicReporter {
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { DeferredPromise } from '../promise/deferred-promise.js';
|
|
3
|
+
import { CancellationToken } from './cancellation-token.js';
|
|
4
|
+
import { cancelableTimeout } from './timing.js';
|
|
5
|
+
export class PeriodicReporter {
|
|
9
6
|
constructor(interval, ignoreZero, resetAfterReport) {
|
|
10
7
|
this.interval = interval;
|
|
11
8
|
this.ignoreZero = ignoreZero;
|
|
12
9
|
this.resetAfterReport = resetAfterReport;
|
|
13
10
|
this.running = false;
|
|
14
|
-
this.stopToken = new
|
|
15
|
-
this.stopped = new
|
|
16
|
-
this.reportSubject = new
|
|
11
|
+
this.stopToken = new CancellationToken();
|
|
12
|
+
this.stopped = new DeferredPromise();
|
|
13
|
+
this.reportSubject = new Subject();
|
|
17
14
|
}
|
|
18
15
|
get report() {
|
|
19
16
|
return this.reportSubject.asObservable();
|
|
@@ -33,7 +30,7 @@ class PeriodicReporter {
|
|
|
33
30
|
this.stopToken.unset();
|
|
34
31
|
this.stopped.reset();
|
|
35
32
|
while (!this.stopRequested) { // eslint-disable-line @typescript-eslint/no-unnecessary-condition
|
|
36
|
-
await
|
|
33
|
+
await cancelableTimeout(this.interval, this.stopToken);
|
|
37
34
|
if (!this.stopRequested && (!this.ignoreZero || (this.counter > 0))) { // eslint-disable-line @typescript-eslint/no-unnecessary-condition
|
|
38
35
|
this.emitReport(this.resetAfterReport);
|
|
39
36
|
}
|
|
@@ -57,5 +54,4 @@ class PeriodicReporter {
|
|
|
57
54
|
}
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
|
-
exports.PeriodicReporter = PeriodicReporter;
|
|
61
57
|
//# sourceMappingURL=periodic-reporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"periodic-reporter.js","sourceRoot":"","sources":["../../source/utils/periodic-reporter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"periodic-reporter.js","sourceRoot":"","sources":["../../source/utils/periodic-reporter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,OAAO,gBAAgB;IAgB3B,YAAY,QAAgB,EAAE,UAAmB,EAAE,gBAAyB;QAC1E,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;QAErB,IAAI,CAAC,SAAS,GAAG,IAAI,iBAAiB,EAAE,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,eAAe,EAAE,CAAC;QACrC,IAAI,CAAC,aAAa,GAAG,IAAI,OAAO,EAAE,CAAC;IACrC,CAAC;IAbD,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,YAAY,EAAE,CAAC;IAC3C,CAAC;IAaD,QAAQ,CAAC,KAAa;QACpB,IAAI,CAAC,OAAO,IAAI,KAAK,CAAC;IACxB,CAAC;IAED,GAAG;QACD,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;SACpC;QAED,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QAEpB,mEAAmE;QACnE,CAAC,KAAK,IAAI,EAAE;YACV,IAAI,CAAC,OA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
-
var AggregationMode;
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { bufferCount, filter, map } from 'rxjs/operators';
|
|
3
|
+
import { compareByValue } from './comparison.js';
|
|
4
|
+
import { average } from './math.js';
|
|
5
|
+
import { timeout } from './timing.js';
|
|
6
|
+
export var AggregationMode;
|
|
10
7
|
(function (AggregationMode) {
|
|
11
8
|
AggregationMode[AggregationMode["Minimum"] = 0] = "Minimum";
|
|
12
9
|
AggregationMode[AggregationMode["Maximum"] = 1] = "Maximum";
|
|
@@ -14,13 +11,13 @@ var AggregationMode;
|
|
|
14
11
|
AggregationMode[AggregationMode["Median"] = 3] = "Median";
|
|
15
12
|
AggregationMode[AggregationMode["FirstQuartile"] = 4] = "FirstQuartile";
|
|
16
13
|
AggregationMode[AggregationMode["ThirdQuartile"] = 5] = "ThirdQuartile";
|
|
17
|
-
})(AggregationMode
|
|
18
|
-
class PeriodicSampler {
|
|
14
|
+
})(AggregationMode || (AggregationMode = {}));
|
|
15
|
+
export class PeriodicSampler {
|
|
19
16
|
constructor(sampleFunction, sampleInterval = 100) {
|
|
20
17
|
this.sampleFunction = sampleFunction;
|
|
21
18
|
this.sampleInterval = sampleInterval;
|
|
22
19
|
this.run = false;
|
|
23
|
-
this.subject = new
|
|
20
|
+
this.subject = new Subject();
|
|
24
21
|
}
|
|
25
22
|
start() {
|
|
26
23
|
if (this.run) {
|
|
@@ -34,18 +31,17 @@ class PeriodicSampler {
|
|
|
34
31
|
await this.stopped;
|
|
35
32
|
}
|
|
36
33
|
watch(threshold = 0, samples = 1, aggregation = AggregationMode.Maximum) {
|
|
37
|
-
const observable = this.subject.pipe(
|
|
34
|
+
const observable = this.subject.pipe(bufferCount(samples), map((measures) => aggregate(aggregation, measures)), filter((ms) => ms >= threshold));
|
|
38
35
|
return observable;
|
|
39
36
|
}
|
|
40
37
|
async runSampleLoop() {
|
|
41
38
|
while (this.run) {
|
|
42
39
|
const delay = await this.sampleFunction();
|
|
43
40
|
this.subject.next(delay);
|
|
44
|
-
await
|
|
41
|
+
await timeout(this.sampleInterval);
|
|
45
42
|
}
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
|
-
exports.PeriodicSampler = PeriodicSampler;
|
|
49
45
|
function aggregate(aggregation, values) {
|
|
50
46
|
switch (aggregation) {
|
|
51
47
|
case AggregationMode.Minimum:
|
|
@@ -53,17 +49,17 @@ function aggregate(aggregation, values) {
|
|
|
53
49
|
case AggregationMode.Maximum:
|
|
54
50
|
return Math.max(...values);
|
|
55
51
|
case AggregationMode.Mean:
|
|
56
|
-
return
|
|
52
|
+
return average(values);
|
|
57
53
|
case AggregationMode.Median:
|
|
58
|
-
values.sort(
|
|
54
|
+
values.sort(compareByValue);
|
|
59
55
|
const median = Math.floor(values.length / 2);
|
|
60
56
|
return values[median];
|
|
61
57
|
case AggregationMode.FirstQuartile:
|
|
62
|
-
values.sort(
|
|
58
|
+
values.sort(compareByValue);
|
|
63
59
|
const firstQuartile = Math.floor(values.length / 4 * 1);
|
|
64
60
|
return values[firstQuartile];
|
|
65
61
|
case AggregationMode.ThirdQuartile:
|
|
66
|
-
values.sort(
|
|
62
|
+
values.sort(compareByValue);
|
|
67
63
|
const thirdQuartile = Math.floor(values.length / 4 * 3);
|
|
68
64
|
return values[thirdQuartile];
|
|
69
65
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"periodic-sampler.js","sourceRoot":"","sources":["../../source/utils/periodic-sampler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"periodic-sampler.js","sourceRoot":"","sources":["../../source/utils/periodic-sampler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;A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;QAEhC;YACE,MAAM,IAAI,KAAK,CAAC,oBAAoB,WAAqB,kBAAkB,CAAC,CAAC;KAChF;AACH,CAAC"}
|
|
@@ -1,20 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
4
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
5
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
6
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
7
|
-
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
8
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
9
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
10
|
-
function fulfill(value) { resume("next", value); }
|
|
11
|
-
function reject(value) { resume("throw", value); }
|
|
12
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
13
|
-
};
|
|
14
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.ProviderFunctionIterable = void 0;
|
|
16
|
-
const timing_1 = require("./timing");
|
|
17
|
-
class ProviderFunctionIterable {
|
|
1
|
+
import { timeout } from './timing.js';
|
|
2
|
+
export class ProviderFunctionIterable {
|
|
18
3
|
constructor(providerFunction, delay) {
|
|
19
4
|
this.providerFunction = providerFunction;
|
|
20
5
|
this.delay = delay;
|
|
@@ -23,22 +8,19 @@ class ProviderFunctionIterable {
|
|
|
23
8
|
stop() {
|
|
24
9
|
this.stopped = true;
|
|
25
10
|
}
|
|
26
|
-
[Symbol.asyncIterator]() {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
result = yield __await(result);
|
|
32
|
-
}
|
|
33
|
-
if (result.hasItem) {
|
|
34
|
-
yield yield __await(result.item);
|
|
35
|
-
}
|
|
36
|
-
else {
|
|
37
|
-
yield __await((0, timing_1.timeout)(this.delay));
|
|
38
|
-
}
|
|
11
|
+
async *[Symbol.asyncIterator]() {
|
|
12
|
+
while (!this.stopped) {
|
|
13
|
+
let result = this.providerFunction();
|
|
14
|
+
if (result instanceof Promise) {
|
|
15
|
+
result = await result;
|
|
39
16
|
}
|
|
40
|
-
|
|
17
|
+
if (result.hasItem) {
|
|
18
|
+
yield result.item;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
await timeout(this.delay);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
41
24
|
}
|
|
42
25
|
}
|
|
43
|
-
exports.ProviderFunctionIterable = ProviderFunctionIterable;
|
|
44
26
|
//# sourceMappingURL=provider-function-iterable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-function-iterable.js","sourceRoot":"","sources":["../../source/utils/provider-function-iterable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider-function-iterable.js","sourceRoot":"","sources":["../../source/utils/provider-function-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAMtC,MAAM,OAAO,wBAAwB;IAMnC,YAAY,gBAAqC,EAAE,KAAa;QAC9D,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,IAAI;QACF,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;QAC3B,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE;YACpB,IAAI,MAAM,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAErC,IAAI,MAAM,YAAY,OAAO,EAAE;gBAC7B,MAAM,GAAG,MAAM,MAAM,CAAC;aACvB;YAED,IAAI,MAAM,CAAC,OAAO,EAAE;gBAClB,MAAM,MAAM,CAAC,IAAI,CAAC;aACnB;iBACI;gBACH,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aAC3B;SACF;IACH,CAAC;CACF"}
|
package/utils/random.js
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRandomString = exports.getRandomBytes = void 0;
|
|
4
|
-
const alphabet_1 = require("./alphabet");
|
|
1
|
+
import { Alphabet } from './alphabet.js';
|
|
5
2
|
const bufferSize = 20480;
|
|
6
3
|
const bufferBypassThreshold = (bufferSize / 2) + 1;
|
|
7
4
|
let nodeCrypto;
|
|
@@ -9,7 +6,7 @@ try {
|
|
|
9
6
|
// eslint-disable-next-line no-eval
|
|
10
7
|
nodeCrypto = eval('require(\'crypto\')');
|
|
11
8
|
}
|
|
12
|
-
catch
|
|
9
|
+
catch {
|
|
13
10
|
// ignore
|
|
14
11
|
}
|
|
15
12
|
function getNodeCryptoRandomBytes(size) {
|
|
@@ -35,7 +32,7 @@ let randomBytesBufferIndex = 0;
|
|
|
35
32
|
* @param count number of bytes to get
|
|
36
33
|
* @param allowUnsafe whether to allow sharing the underlying pool
|
|
37
34
|
*/
|
|
38
|
-
function getRandomBytes(count, allowUnsafe = false) {
|
|
35
|
+
export function getRandomBytes(count, allowUnsafe = false) {
|
|
39
36
|
if (!allowUnsafe || (count >= bufferBypassThreshold)) {
|
|
40
37
|
return randomBytes(count);
|
|
41
38
|
}
|
|
@@ -48,13 +45,12 @@ function getRandomBytes(count, allowUnsafe = false) {
|
|
|
48
45
|
randomBytesBufferIndex = end;
|
|
49
46
|
return bytes;
|
|
50
47
|
}
|
|
51
|
-
exports.getRandomBytes = getRandomBytes;
|
|
52
48
|
/**
|
|
53
49
|
* generate a cryptographically secure random string (in terms of source of randomness).
|
|
54
50
|
* @param length length of string
|
|
55
51
|
* @param alphabet alphabet to choose characters from. Defaults to {@link Alphabet.LowerUpperCaseNumbers}
|
|
56
52
|
*/
|
|
57
|
-
function getRandomString(length, alphabet =
|
|
53
|
+
export function getRandomString(length, alphabet = Alphabet.LowerUpperCaseNumbers) {
|
|
58
54
|
let result = '';
|
|
59
55
|
if (length < 1) {
|
|
60
56
|
return result;
|
|
@@ -68,5 +64,4 @@ function getRandomString(length, alphabet = alphabet_1.Alphabet.LowerUpperCaseNu
|
|
|
68
64
|
}
|
|
69
65
|
return result;
|
|
70
66
|
}
|
|
71
|
-
exports.getRandomString = getRandomString;
|
|
72
67
|
//# sourceMappingURL=random.js.map
|
package/utils/random.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"random.js","sourceRoot":"","sources":["../../source/utils/random.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"random.js","sourceRoot":"","sources":["../../source/utils/random.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAIzC,MAAM,UAAU,GAAG,KAAK,CAAC;AACzB,MAAM,qBAAqB,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AAEnD,IAAI,UAAsC,CAAC;AAE3C,IAAI;IACF,mCAAmC;IACnC,UAAU,GAAG,IAAI,CAAC,qBAAqB,CAAmB,CAAC;CAC5D;AACD,MAAM;IACJ,SAAS;CACV;AAED,SAAS,wBAAwB,CAAC,IAAY;IAC5C,MAAM,MAAM,GAAG,UAAW,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IAEnF,OAAO,UAAU,CAAC;AACpB,CAAC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M,GAAG,IAAI,WAAW,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACvE,MAAM,MAAM,GAAG,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC,CAAC;IAE5E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,CAAC,EAAE,EAAE;QAC/B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAE,GAAG,MAAM,CAAC,CAAC;QAC9C,MAAM,IAAI,QAAQ,CAAC,KAAK,CAAC,CAAC;KAC3B;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/utils/reflection.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Type } from "../types";
|
|
1
|
+
import type { Type } from "../types.js";
|
|
2
2
|
import 'reflect-metadata';
|
|
3
3
|
export declare function getDesignType(target: object, propertyKey?: string | symbol): Type;
|
|
4
4
|
export declare function hasDesignType(target: object, propertyKey?: string | symbol): boolean;
|
package/utils/reflection.js
CHANGED
|
@@ -1,29 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.hasReturnType = exports.getReturnType = exports.hasParameterTypes = exports.getParameterTypes = exports.hasDesignType = exports.getDesignType = void 0;
|
|
4
|
-
require("reflect-metadata");
|
|
5
|
-
function getDesignType(target, propertyKey) {
|
|
1
|
+
import 'reflect-metadata';
|
|
2
|
+
export function getDesignType(target, propertyKey) {
|
|
6
3
|
return Reflect.getMetadata('design:type', target, propertyKey);
|
|
7
4
|
}
|
|
8
|
-
|
|
9
|
-
function hasDesignType(target, propertyKey) {
|
|
5
|
+
export function hasDesignType(target, propertyKey) {
|
|
10
6
|
return Reflect.hasMetadata('design:type', target, propertyKey);
|
|
11
7
|
}
|
|
12
|
-
|
|
13
|
-
function getParameterTypes(target, propertyKey) {
|
|
8
|
+
export function getParameterTypes(target, propertyKey) {
|
|
14
9
|
return Reflect.getMetadata('design:paramtypes', target, propertyKey);
|
|
15
10
|
}
|
|
16
|
-
|
|
17
|
-
function hasParameterTypes(target, propertyKey) {
|
|
11
|
+
export function hasParameterTypes(target, propertyKey) {
|
|
18
12
|
return Reflect.hasMetadata('design:paramtypes', target, propertyKey);
|
|
19
13
|
}
|
|
20
|
-
|
|
21
|
-
function getReturnType(target, propertyKey) {
|
|
14
|
+
export function getReturnType(target, propertyKey) {
|
|
22
15
|
return Reflect.getMetadata('design:returntype', target, propertyKey);
|
|
23
16
|
}
|
|
24
|
-
|
|
25
|
-
function hasReturnType(target, propertyKey) {
|
|
17
|
+
export function hasReturnType(target, propertyKey) {
|
|
26
18
|
return Reflect.hasMetadata('design:returntype', target, propertyKey);
|
|
27
19
|
}
|
|
28
|
-
exports.hasReturnType = hasReturnType;
|
|
29
20
|
//# sourceMappingURL=reflection.js.map
|
package/utils/reflection.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../source/utils/reflection.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reflection.js","sourceRoot":"","sources":["../../source/utils/reflection.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,WAA6B;IACzE,OAAO,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,WAAqB,CAAS,CAAC;AACnF,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,WAA6B;IACzE,OAAO,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,WAAqB,CAAC,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,MAAc,EAAE,WAA6B;IAC7E,OAAO,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,WAAqB,CAAyB,CAAC;AACzG,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,MAAc,EAAE,WAA6B;IAC7E,OAAO,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,WAAqB,CAAC,CAAC;AACjF,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,WAA6B;IACzE,OAAO,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,WAAqB,CAAS,CAAC;AACzF,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,WAA6B;IACzE,OAAO,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,WAAqB,CAAC,CAAC;AACjF,CAAC"}
|
package/utils/set.js
CHANGED
|
@@ -1,25 +1,20 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
/* eslint-disable max-statements */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const comparison_1 = require("./comparison");
|
|
6
|
-
function intersectSets(...sets) {
|
|
2
|
+
import { compareByValueSelectionDescending } from './comparison.js';
|
|
3
|
+
export function intersectSets(...sets) {
|
|
7
4
|
if (sets.length == 0) {
|
|
8
5
|
return [];
|
|
9
6
|
}
|
|
10
7
|
if (sets.length == 1) {
|
|
11
8
|
return [...sets[0]];
|
|
12
9
|
}
|
|
13
|
-
const sortedSets = sets.sort(
|
|
10
|
+
const sortedSets = sets.sort(compareByValueSelectionDescending((set) => set.size));
|
|
14
11
|
const [smallestSet, ...otherSets] = sortedSets;
|
|
15
12
|
return [...smallestSet].filter((value) => !otherSets.some((set) => !set.has(value)));
|
|
16
13
|
}
|
|
17
|
-
|
|
18
|
-
function differenceSets(base, ...sets) {
|
|
14
|
+
export function differenceSets(base, ...sets) {
|
|
19
15
|
return [...base].filter((value) => !sets.some((set) => set.has(value)));
|
|
20
16
|
}
|
|
21
|
-
|
|
22
|
-
function symmetricDifferenceSets(...sets) {
|
|
17
|
+
export function symmetricDifferenceSets(...sets) {
|
|
23
18
|
if (sets.length == 0) {
|
|
24
19
|
return new Set();
|
|
25
20
|
}
|
|
@@ -29,8 +24,7 @@ function symmetricDifferenceSets(...sets) {
|
|
|
29
24
|
const [first, second, ...others] = sets;
|
|
30
25
|
return symmetricDifferenceSets(simpleSymmetricDifference(first, second), ...others);
|
|
31
26
|
}
|
|
32
|
-
|
|
33
|
-
function uniquesSets(...sets) {
|
|
27
|
+
export function uniquesSets(...sets) {
|
|
34
28
|
const result = new Set();
|
|
35
29
|
for (const set of sets) {
|
|
36
30
|
for (const value of set) {
|
|
@@ -42,11 +36,9 @@ function uniquesSets(...sets) {
|
|
|
42
36
|
}
|
|
43
37
|
return result;
|
|
44
38
|
}
|
|
45
|
-
|
|
46
|
-
function unionSets(...sets) {
|
|
39
|
+
export function unionSets(...sets) {
|
|
47
40
|
return new Set(sets.flatMap((set) => [...set]));
|
|
48
41
|
}
|
|
49
|
-
exports.unionSets = unionSets;
|
|
50
42
|
function simpleSymmetricDifference(a, b) {
|
|
51
43
|
return unionSets(differenceSets(a, b), differenceSets(b, a));
|
|
52
44
|
}
|
package/utils/set.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../source/utils/set.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../source/utils/set.ts"],"names":[],"mappings":"AAAA,mCAAmC;AAEnC,OAAO,EAAE,iCAAiC,EAAE,MAAM,iBAAiB,CAAC;AAEpE,MAAM,UAAU,aAAa,CAAI,GAAG,IAAc;IAChD,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;QACpB,OAAO,EAAE,CAAC;KACX;IAED,IAAI,IAAI,CAAC,MAAM,IAAI,CAAC,EAAE;QACpB,OAAO,CAAC,GAAG,IAAI,CAAC,CAAC,CAAE,CAAC,CAAC;KACtB;IAED,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,iCA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AM,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YAEnF,IAAI,MAAM,EAAE;gBACV,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;aACnB;SACF;KACF;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,SAAS,CAAI,GAAG,IAAmB;IACjD,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC;AAClD,CAAC;AAED,SAAS,yBAAyB,CAAI,CAAS,EAAE,CAAS;IACxD,OAAO,SAAS,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC;AAC/D,CAAC"}
|
package/utils/singleton.js
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.singleton = void 0;
|
|
4
|
-
const factory_map_1 = require("./factory-map");
|
|
1
|
+
import { FactoryMap } from './factory-map.js';
|
|
5
2
|
const globalScope = Symbol('global singleton scope');
|
|
6
|
-
const scopes = new
|
|
7
|
-
function singleton(scopeOrType, typeOrBuilder, _builder) {
|
|
3
|
+
const scopes = new FactoryMap(() => new Map());
|
|
4
|
+
export function singleton(scopeOrType, typeOrBuilder, _builder) {
|
|
8
5
|
const builder = _builder != undefined ? _builder : typeOrBuilder;
|
|
9
6
|
const scope = _builder != undefined ? scopeOrType : globalScope;
|
|
10
7
|
const type = _builder != undefined ? typeOrBuilder : scopeOrType;
|
|
@@ -18,7 +15,6 @@ function singleton(scopeOrType, typeOrBuilder, _builder) {
|
|
|
18
15
|
}
|
|
19
16
|
return instances.get(type);
|
|
20
17
|
}
|
|
21
|
-
exports.singleton = singleton;
|
|
22
18
|
async function asyncSingleton(instances, type, promise) {
|
|
23
19
|
const instance = await promise;
|
|
24
20
|
instances.set(type, instance);
|
package/utils/singleton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"singleton.js","sourceRoot":"","sources":["../../source/utils/singleton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"singleton.js","sourceRoot":"","sources":["../../source/utils/singleton.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAK9C,MAAM,WAAW,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;AACrD,MAAM,MAAM,GAAmC,IAAI,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;AAM/E,MAAM,UAAU,SAAS,CAAI,WAAgB,EAAE,aAAiD,EAAE,QAAqB;IACrH,MAAM,OAAO,GAAG,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,aAA6C,CAAC;IACjG,MAAM,KAAK,GAAG,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,WAAW,CAAC;IAChE,MAAM,IAAI,GAAG,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,CAAC;IAEjE,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAEpC,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;QACxB,MAAM,iBAAiB,GAAG,OAAO,EAAE,CAAC;QACpC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;QAEvC,IAAI,iBAAiB,YAAY,OAAO,EAAE;YACxC,OAAO,cAAc,CAAC,SAAS,EAAE,IAAI,EAAE,iBAAiB,CAAC,CAAC;SAC3D;KACF;IAED,OAAO,SAAS,CAAC,GAAG,CAAC,IAAI,CAAmB,CAAC;AAC/C,CAAC;AAED,KAAK,UAAU,cAAc,CAAI,SAAwB,EAAE,IAAS,EAAE,OAAmB;IACvF,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC;IAC/B,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAE9B,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/utils/sort.js
CHANGED
|
@@ -1,20 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.quickSortInPlaceAsync = exports.quickSortInPlace = exports.quickSortAsync = exports.quickSort = void 0;
|
|
4
|
-
const comparison_1 = require("./comparison");
|
|
5
|
-
function quickSort(array, comparator, left, right) {
|
|
1
|
+
import { compareByValue } from './comparison.js';
|
|
2
|
+
export function quickSort(array, comparator, left, right) {
|
|
6
3
|
const copy = [...array];
|
|
7
4
|
quickSortInPlace(copy, comparator, left, right);
|
|
8
5
|
return copy;
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
async function quickSortAsync(array, comparator, left, right) {
|
|
7
|
+
export async function quickSortAsync(array, comparator, left, right) {
|
|
12
8
|
const copy = [...array];
|
|
13
9
|
await quickSortInPlaceAsync(copy, comparator, left, right);
|
|
14
10
|
return copy;
|
|
15
11
|
}
|
|
16
|
-
|
|
17
|
-
function quickSortInPlace(array, comparator = comparison_1.compareByValue, left = 0, right = (array.length - 1)) {
|
|
12
|
+
export function quickSortInPlace(array, comparator = compareByValue, left = 0, right = (array.length - 1)) {
|
|
18
13
|
let pivot;
|
|
19
14
|
let partitionIndex;
|
|
20
15
|
if (left < right) {
|
|
@@ -24,8 +19,7 @@ function quickSortInPlace(array, comparator = comparison_1.compareByValue, left
|
|
|
24
19
|
quickSortInPlace(array, comparator, partitionIndex + 1, right);
|
|
25
20
|
}
|
|
26
21
|
}
|
|
27
|
-
|
|
28
|
-
async function quickSortInPlaceAsync(array, comparator = comparison_1.compareByValue, left = 0, right = (array.length - 1)) {
|
|
22
|
+
export async function quickSortInPlaceAsync(array, comparator = compareByValue, left = 0, right = (array.length - 1)) {
|
|
29
23
|
let pivot;
|
|
30
24
|
let partitionIndex;
|
|
31
25
|
if (left < right) {
|
|
@@ -35,7 +29,6 @@ async function quickSortInPlaceAsync(array, comparator = comparison_1.compareByV
|
|
|
35
29
|
await quickSortInPlaceAsync(array, comparator, partitionIndex + 1, right);
|
|
36
30
|
}
|
|
37
31
|
}
|
|
38
|
-
exports.quickSortInPlaceAsync = quickSortInPlaceAsync;
|
|
39
32
|
function partition(array, comparator, pivot, left, right) {
|
|
40
33
|
const pivotValue = array[pivot];
|
|
41
34
|
let partitionIndex = left;
|
package/utils/sort.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.js","sourceRoot":"","sources":["../../source/utils/sort.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sort.js","sourceRoot":"","sources":["../../source/utils/sort.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAKjD,MAAM,UAAU,SAAS,CAAI,KAAU,EAAE,UAA0B,EAAE,IAAa,EAAE,KAAc;IAChG,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACxB,gBAAgB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAEhD,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,cAAc,CAAI,KAAU,EAAE,UAA+B,EAAE,IAAa,EAAE,KAAc;IAChH,MAAM,IAAI,GAAG,CAAC,GAAG,KAAK,CAAC,CAAC;IACxB,MAAM,qBAAqB,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;IAE3D,OAAO,IAAI,CAAC;AACd,CAAC;AAED,MAAM,UAAU,gBAAgB,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AAK,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACpB,KAAK,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC;AAClB,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import type { TypedOmit } from "../../types";
|
|
1
|
+
/// <reference types="node" resolution-mode="require"/>
|
|
2
|
+
import type { TypedOmit } from "../../types.js";
|
|
3
3
|
import type { ReadableOptions } from 'stream';
|
|
4
4
|
import { Readable } from 'stream';
|
|
5
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
5
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
6
6
|
export declare class AsyncIterableReadable extends Readable {
|
|
7
7
|
private readonly iterable;
|
|
8
8
|
private iterator;
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const is_iterable_1 = require("../iterable-helpers/is-iterable");
|
|
6
|
-
const type_guards_1 = require("../type-guards");
|
|
7
|
-
class AsyncIterableReadable extends stream_1.Readable {
|
|
1
|
+
import { Readable } from 'stream';
|
|
2
|
+
import { isIterable } from '../iterable-helpers/is-iterable.js';
|
|
3
|
+
import { isNotNull } from '../type-guards.js';
|
|
4
|
+
export class AsyncIterableReadable extends Readable {
|
|
8
5
|
constructor(iterable, options) {
|
|
9
6
|
super(options);
|
|
10
7
|
this.iterable = iterable;
|
|
11
8
|
}
|
|
12
9
|
_construct(callback) {
|
|
13
|
-
this.iterator =
|
|
10
|
+
this.iterator = isIterable(this.iterable) ? this.iterable[Symbol.iterator]() : this.iterable[Symbol.asyncIterator]();
|
|
14
11
|
callback();
|
|
15
12
|
}
|
|
16
13
|
async _read() {
|
|
@@ -22,13 +19,12 @@ class AsyncIterableReadable extends stream_1.Readable {
|
|
|
22
19
|
this.push(next.value);
|
|
23
20
|
}
|
|
24
21
|
async _destroy(error, callback) {
|
|
25
|
-
var _a, _b, _c, _d;
|
|
26
22
|
try {
|
|
27
|
-
if (
|
|
28
|
-
await
|
|
23
|
+
if (isNotNull(error)) {
|
|
24
|
+
await this.iterator.throw?.(error);
|
|
29
25
|
}
|
|
30
26
|
else {
|
|
31
|
-
await
|
|
27
|
+
await this.iterator.return?.();
|
|
32
28
|
}
|
|
33
29
|
callback(error);
|
|
34
30
|
}
|
|
@@ -37,5 +33,4 @@ class AsyncIterableReadable extends stream_1.Readable {
|
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
}
|
|
40
|
-
exports.AsyncIterableReadable = AsyncIterableReadable;
|
|
41
36
|
//# sourceMappingURL=async-iterable-readable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-iterable-readable.js","sourceRoot":"","sources":["../../../source/utils/stream/async-iterable-readable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"async-iterable-readable.js","sourceRoot":"","sources":["../../../source/utils/stream/async-iterable-readable.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAElC,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,MAAM,OAAO,qBAAsB,SAAQ,QAAQ;IAKjD,YAAY,QAAiC,EAAE,OAAkD;QAC/F,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEQ,UAAU,CAAC,QAAwC;QAC1D,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;QACrH,QAAQ,EAAE,CAAC;IACb,CAAC;IAEQ,KAAK,CAAC,KAAK;QAClB,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QAExC,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,EAAE;YACrB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAChB,OAAO;SACR;QAED,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAEQ,KAAK,CAAC,QAAQ,CAAC,KAAmB,EAAE,QAAwC;QACnF,IAAI;YACF,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE;gBACpB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;aACpC;iBACI;gBACH,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;aAChC;YAED,QAAQ,CAAC,KAAK,CAAC,CAAC;SACjB;QACD,OAAO,aAAa,EAAE;YACpB,QAAQ,CAAC,aAAsB,CAAC,CAAC;SAClC;IACH,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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 type { Writable } from 'stream';
|
|
4
|
-
import type { Data, NonObjectMode } from './stream-helper-types';
|
|
4
|
+
import type { Data, NonObjectMode } from './stream-helper-types.js';
|
|
5
5
|
export declare class AsyncWritableStream<T = NonObjectMode> {
|
|
6
6
|
private readonly writable;
|
|
7
7
|
private readonly drain;
|