@tstdl/base 0.71.48 → 0.72.0-beta1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/client/client.d.ts +3 -4
- package/api/client/client.js +33 -34
- package/api/client/client.js.map +1 -1
- package/api/client/index.d.ts +1 -1
- package/api/client/index.js +1 -17
- package/api/client/index.js.map +1 -1
- package/api/default-error-handlers.d.ts +2 -2
- package/api/default-error-handlers.js +11 -21
- package/api/default-error-handlers.js.map +1 -1
- package/api/index.d.ts +3 -3
- package/api/index.js +3 -19
- package/api/index.js.map +1 -1
- package/api/response.d.ts +2 -2
- package/api/response.js +42 -46
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +5 -5
- package/api/server/api-controller.js +11 -19
- package/api/server/api-controller.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +11 -15
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +9 -10
- package/api/server/gateway.js +60 -57
- package/api/server/gateway.js.map +1 -1
- package/api/server/index.d.ts +3 -3
- package/api/server/index.js +3 -19
- package/api/server/index.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +4 -4
- package/api/server/middlewares/allowed-methods.middleware.js +7 -11
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +3 -3
- package/api/server/middlewares/catch-error.middleware.js +3 -7
- package/api/server/middlewares/catch-error.middleware.js.map +1 -1
- package/api/server/middlewares/cors.middleware.d.ts +3 -3
- package/api/server/middlewares/cors.middleware.js +16 -21
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/index.d.ts +4 -4
- package/api/server/middlewares/index.js +4 -20
- package/api/server/middlewares/index.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +2 -2
- package/api/server/middlewares/response-time.middleware.js +5 -9
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +4 -4
- package/api/server/module.js +7 -10
- package/api/server/module.js.map +1 -1
- package/api/types.d.ts +15 -7
- package/api/types.js +8 -15
- package/api/types.js.map +1 -1
- package/application/application.d.ts +3 -3
- package/application/application.js +22 -23
- package/application/application.js.map +1 -1
- package/application/index.d.ts +1 -1
- package/application/index.js +1 -17
- package/application/index.js.map +1 -1
- package/async-iterator-symbol.js +1 -5
- package/async-iterator-symbol.js.map +1 -1
- package/collections/awaitable/awaitable-list.d.ts +1 -1
- package/collections/awaitable/awaitable-list.js +8 -13
- package/collections/awaitable/awaitable-list.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +9 -13
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +5 -9
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/awaitable/index.d.ts +3 -3
- package/collections/awaitable/index.js +3 -19
- package/collections/awaitable/index.js.map +1 -1
- package/collections/collection.js +1 -2
- package/collections/index.d.ts +6 -6
- package/collections/index.js +6 -22
- package/collections/index.js.map +1 -1
- package/collections/keyed-set.js +5 -9
- package/collections/keyed-set.js.map +1 -1
- package/collections/list.d.ts +1 -1
- package/collections/list.js +1 -2
- package/collections/observable/index.d.ts +8 -8
- package/collections/observable/index.js +8 -24
- package/collections/observable/index.js.map +1 -1
- package/collections/observable/observable-array.d.ts +2 -2
- package/collections/observable/observable-array.js +2 -6
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.d.ts +2 -2
- package/collections/observable/observable-collection-base.js +18 -23
- package/collections/observable/observable-collection-base.js.map +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-collection.js +1 -2
- package/collections/observable/observable-list-base.d.ts +3 -3
- package/collections/observable/observable-list-base.js +11 -15
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.d.ts +3 -3
- package/collections/observable/observable-list.js +1 -2
- package/collections/observable/observable-map.js +3 -7
- package/collections/observable/observable-map.js.map +1 -1
- package/collections/observable/observable-set.d.ts +2 -2
- package/collections/observable/observable-set.js +2 -6
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +3 -3
- package/collections/observable/observable-sorted-array-list.js +21 -25
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +2 -2
- package/collections/sorted-array-list.js +17 -21
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-list.d.ts +1 -1
- package/collections/sorted-list.js +1 -2
- package/collections/sorted-map.d.ts +2 -2
- package/collections/sorted-map.js +9 -14
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +5 -5
- package/container/container.js +115 -122
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +5 -5
- package/container/decorators.js +42 -68
- package/container/decorators.js.map +1 -1
- package/container/index.d.ts +10 -10
- package/container/index.js +10 -26
- package/container/index.js.map +1 -1
- package/container/interfaces.js +2 -4
- package/container/interfaces.js.map +1 -1
- package/container/provider.d.ts +4 -4
- package/container/provider.js +13 -24
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +2 -2
- package/container/resolve-chain.js +7 -11
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +2 -2
- package/container/resolve.error.js +4 -8
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +1 -1
- package/container/token.js +5 -10
- package/container/token.js.map +1 -1
- package/container/type-info.d.ts +3 -3
- package/container/type-info.js +16 -25
- package/container/type-info.js.map +1 -1
- package/container/types.d.ts +2 -2
- package/container/types.js +1 -2
- package/container/utils.d.ts +1 -1
- package/container/utils.js +7 -11
- package/container/utils.js.map +1 -1
- package/core.d.ts +4 -4
- package/core.js +23 -28
- package/core.js.map +1 -1
- package/css/theme/index.d.ts +2 -2
- package/css/theme/index.js +2 -18
- package/css/theme/index.js.map +1 -1
- package/css/theme/theme.model.js +1 -5
- package/css/theme/theme.model.js.map +1 -1
- package/css/theme/theme.service.d.ts +1 -1
- package/css/theme/theme.service.js +10 -14
- package/css/theme/theme.service.js.map +1 -1
- package/data-structures/array-list.d.ts +2 -2
- package/data-structures/array-list.js +2 -6
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +2 -2
- package/data-structures/circular-buffer.js +31 -50
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +1 -1
- package/data-structures/collection.js +12 -17
- package/data-structures/collection.js.map +1 -1
- package/data-structures/index-out-of-bounds.error.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.js +5 -9
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/index.d.ts +9 -9
- package/data-structures/index.js +9 -25
- package/data-structures/index.js.map +1 -1
- package/data-structures/linked-list.d.ts +4 -4
- package/data-structures/linked-list.js +25 -28
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +2 -2
- package/data-structures/list.js +10 -14
- package/data-structures/list.js.map +1 -1
- package/data-structures/multi-key-map.d.ts +1 -1
- package/data-structures/multi-key-map.js +13 -17
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +5 -5
- package/data-structures/sorted-array-list.js +19 -22
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.d.ts +1 -1
- package/data-structures/weak-ref-map.js +13 -17
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -2
- package/database/entity-repository.js +1 -5
- package/database/entity-repository.js.map +1 -1
- package/database/entity.js +1 -2
- package/database/id.js +4 -8
- package/database/id.js.map +1 -1
- package/database/index.d.ts +6 -6
- package/database/index.js +6 -22
- package/database/index.js.map +1 -1
- package/database/module.js +6 -11
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +5 -5
- package/database/mongo/classes.js +11 -14
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/index.d.ts +10 -10
- package/database/mongo/index.js +10 -26
- package/database/mongo/index.js.map +1 -1
- package/database/mongo/{model/document.d.ts → model.d.ts} +3 -3
- package/database/mongo/model.js +71 -0
- package/database/mongo/model.js.map +1 -0
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/module.js +28 -45
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +5 -5
- package/database/mongo/mongo-base.repository.js +49 -98
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +4 -4
- package/database/mongo/mongo-bulk.js +17 -21
- package/database/mongo/mongo-bulk.js.map +1 -1
- package/database/mongo/{mongo-entity-repository.d.ts → mongo-entity.repository.d.ts} +8 -8
- package/database/mongo/{mongo-entity-repository.js → mongo-entity.repository.js} +50 -130
- package/database/mongo/mongo-entity.repository.js.map +1 -0
- package/database/mongo/operations.d.ts +4 -4
- package/database/mongo/operations.js +6 -15
- package/database/mongo/operations.js.map +1 -1
- package/database/mongo/query-converter.d.ts +4 -4
- package/database/mongo/query-converter.js +18 -27
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity.repository.d.ts +7 -0
- package/database/mongo/simple-entity.repository.js +7 -0
- package/database/mongo/simple-entity.repository.js.map +1 -0
- package/database/mongo/types.d.ts +3 -3
- package/database/mongo/types.js +1 -5
- package/database/mongo/types.js.map +1 -1
- package/database/query.d.ts +2 -2
- package/database/query.js +7 -10
- package/database/query.js.map +1 -1
- package/database/utils.d.ts +1 -1
- package/database/utils.js +1 -5
- package/database/utils.js.map +1 -1
- package/disposable/async-disposer.d.ts +4 -4
- package/disposable/async-disposer.js +20 -24
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +7 -12
- package/disposable/disposable.js.map +1 -1
- package/disposable/index.d.ts +3 -3
- package/disposable/index.js +3 -19
- package/disposable/index.js.map +1 -1
- package/disposable/using.d.ts +1 -1
- package/disposable/using.js +5 -10
- package/disposable/using.js.map +1 -1
- package/distributed-loop/controller.js +1 -2
- package/distributed-loop/distributed-loop.d.ts +5 -5
- package/distributed-loop/distributed-loop.js +15 -19
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/index.d.ts +3 -3
- package/distributed-loop/index.js +3 -19
- package/distributed-loop/index.js.map +1 -1
- package/distributed-loop/provider.d.ts +2 -2
- package/distributed-loop/provider.js +7 -10
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +8 -8
- package/enumerable/async-enumerable.js +66 -71
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable-methods.js +1 -2
- package/enumerable/enumerable.d.ts +6 -6
- package/enumerable/enumerable.js +44 -49
- package/enumerable/enumerable.js.map +1 -1
- package/enumerable/index.d.ts +2 -2
- package/enumerable/index.js +2 -18
- package/enumerable/index.js.map +1 -1
- package/error/api.error.d.ts +2 -2
- package/error/api.error.js +2 -6
- package/error/api.error.js.map +1 -1
- package/error/assertion.error.d.ts +1 -1
- package/error/assertion.error.js +2 -6
- package/error/assertion.error.js.map +1 -1
- package/error/bad-request.error.d.ts +1 -1
- package/error/bad-request.error.js +2 -6
- package/error/bad-request.error.js.map +1 -1
- package/error/custom.error.js +2 -7
- package/error/custom.error.js.map +1 -1
- package/error/details.error.d.ts +1 -1
- package/error/details.error.js +2 -6
- package/error/details.error.js.map +1 -1
- package/error/forbidden.error.d.ts +1 -1
- package/error/forbidden.error.js +2 -6
- package/error/forbidden.error.js.map +1 -1
- package/error/index.d.ts +15 -15
- package/error/index.js +15 -31
- package/error/index.js.map +1 -1
- package/error/invalid-token.error.d.ts +1 -1
- package/error/invalid-token.error.js +2 -6
- package/error/invalid-token.error.js.map +1 -1
- package/error/max-bytes-exceeded.error.d.ts +1 -1
- package/error/max-bytes-exceeded.error.js +2 -6
- package/error/max-bytes-exceeded.error.js.map +1 -1
- package/error/method-not-allowed.error.d.ts +1 -1
- package/error/method-not-allowed.error.js +2 -6
- package/error/method-not-allowed.error.js.map +1 -1
- package/error/multi.error.d.ts +1 -1
- package/error/multi.error.js +2 -6
- package/error/multi.error.js.map +1 -1
- package/error/not-found.error.d.ts +1 -1
- package/error/not-found.error.js +2 -6
- package/error/not-found.error.js.map +1 -1
- package/error/not-implemented.error.d.ts +1 -1
- package/error/not-implemented.error.js +2 -6
- package/error/not-implemented.error.js.map +1 -1
- package/error/unauthorized.error.d.ts +1 -1
- package/error/unauthorized.error.js +2 -6
- package/error/unauthorized.error.js.map +1 -1
- package/error/unsupported-media-type.error.d.ts +1 -1
- package/error/unsupported-media-type.error.js +2 -6
- package/error/unsupported-media-type.error.js.map +1 -1
- package/error/validation.error.d.ts +1 -1
- package/error/validation.error.js +2 -6
- package/error/validation.error.js.map +1 -1
- package/examples/api/basic-overview.js +35 -36
- package/examples/api/basic-overview.js.map +1 -1
- package/global-this.js +1 -5
- package/global-this.js.map +1 -1
- package/http/client/adapters/got-http-client.adapter.d.ts +3 -3
- package/http/client/adapters/got-http-client.adapter.js +49 -82
- package/http/client/adapters/got-http-client.adapter.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +4 -4
- package/http/client/adapters/undici-http-client.adapter.js +31 -37
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/adapters/utils.d.ts +2 -2
- package/http/client/adapters/utils.js +14 -22
- package/http/client/adapters/utils.js.map +1 -1
- package/http/client/http-client-request.d.ts +13 -13
- package/http/client/http-client-request.js +34 -40
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +5 -5
- package/http/client/http-client-response.js +3 -7
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.adapter.d.ts +3 -3
- package/http/client/http-client.adapter.js +1 -5
- package/http/client/http-client.adapter.js.map +1 -1
- package/http/client/http-client.d.ts +10 -10
- package/http/client/http-client.js +77 -118
- package/http/client/http-client.js.map +1 -1
- package/http/client/index.d.ts +4 -4
- package/http/client/index.js +4 -20
- package/http/client/index.js.map +1 -1
- package/http/cookie-parser.d.ts +1 -1
- package/http/cookie-parser.js +5 -9
- package/http/cookie-parser.js.map +1 -1
- package/http/http-form.d.ts +3 -3
- package/http/http-form.js +2 -6
- package/http/http-form.js.map +1 -1
- package/http/http-headers.d.ts +3 -3
- package/http/http-headers.js +16 -21
- package/http/http-headers.js.map +1 -1
- package/http/http-query.d.ts +3 -3
- package/http/http-query.js +2 -6
- package/http/http-query.js.map +1 -1
- package/http/http-url-parameters.d.ts +3 -3
- package/http/http-url-parameters.js +2 -6
- package/http/http-url-parameters.js.map +1 -1
- package/http/http-value-map.d.ts +2 -2
- package/http/http-value-map.js +21 -27
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +3 -3
- package/http/http.error.js +8 -13
- package/http/http.error.js.map +1 -1
- package/http/index.d.ts +9 -9
- package/http/index.js +9 -25
- package/http/index.js.map +1 -1
- package/http/server/http-server-request.d.ts +5 -5
- package/http/server/http-server-request.js +14 -19
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +3 -3
- package/http/server/http-server-response.js +3 -7
- package/http/server/http-server-response.js.map +1 -1
- package/http/server/http-server.d.ts +2 -3
- package/http/server/http-server.js +2 -6
- package/http/server/http-server.js.map +1 -1
- package/http/server/index.d.ts +3 -3
- package/http/server/index.js +3 -19
- package/http/server/index.js.map +1 -1
- package/http/server/node/index.d.ts +2 -2
- package/http/server/node/index.js +2 -18
- package/http/server/node/index.js.map +1 -1
- package/http/server/node/module.js +5 -9
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +8 -8
- package/http/server/node/node-http-server.js +51 -100
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +1 -1
- package/http/types.js +9 -16
- package/http/types.js.map +1 -1
- package/image-service/image-service.js +14 -18
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +5 -5
- package/image-service/imgproxy/imgproxy-image-service.js +32 -36
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/image-service/imgproxy/index.d.ts +1 -1
- package/image-service/imgproxy/index.js +1 -17
- package/image-service/imgproxy/index.js.map +1 -1
- package/image-service/index.d.ts +1 -1
- package/image-service/index.js +1 -17
- package/image-service/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -17
- package/index.js.map +1 -1
- package/instance-provider.d.ts +4 -4
- package/instance-provider.js +27 -35
- package/instance-provider.js.map +1 -1
- package/interfaces.js +1 -2
- package/json-path/index.d.ts +1 -1
- package/json-path/index.js +1 -17
- package/json-path/index.js.map +1 -1
- package/json-path/json-path.js +12 -19
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/index.d.ts +2 -2
- package/key-value-store/index.js +2 -18
- package/key-value-store/index.js.map +1 -1
- package/key-value-store/key-value-store.provider.d.ts +2 -2
- package/key-value-store/key-value-store.provider.js +1 -5
- package/key-value-store/key-value-store.provider.js.map +1 -1
- package/key-value-store/key-value.store.d.ts +3 -3
- package/key-value-store/key-value.store.js +2 -6
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/index.d.ts +5 -5
- package/key-value-store/mongo/index.js +5 -21
- package/key-value-store/mongo/index.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +2 -2
- package/key-value-store/mongo/module.js +10 -14
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value-store.provider.js +7 -10
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +1 -1
- package/key-value-store/mongo/mongo-key-value.model.js +1 -2
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +6 -6
- package/key-value-store/mongo/mongo-key-value.repository.js +11 -14
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value.store.js +16 -19
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/lock/index.d.ts +2 -2
- package/lock/index.js +2 -18
- package/lock/index.js.map +1 -1
- package/lock/lock.d.ts +2 -2
- package/lock/lock.js +2 -6
- package/lock/lock.js.map +1 -1
- package/lock/mongo/index.d.ts +5 -5
- package/lock/mongo/index.js +5 -21
- package/lock/mongo/index.js.map +1 -1
- package/lock/mongo/lock.d.ts +4 -4
- package/lock/mongo/lock.js +30 -33
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/model.js +1 -2
- package/lock/mongo/module.d.ts +2 -2
- package/lock/mongo/module.js +10 -14
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/{mongo-lock-repository.d.ts → mongo-lock.repository.d.ts} +6 -6
- package/lock/mongo/{mongo-lock-repository.js → mongo-lock.repository.js} +17 -20
- package/lock/mongo/mongo-lock.repository.js.map +1 -0
- package/lock/mongo/provider.d.ts +4 -4
- package/lock/mongo/provider.js +16 -19
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +3 -3
- package/lock/provider.js +2 -6
- package/lock/provider.js.map +1 -1
- package/logger/console/index.d.ts +1 -1
- package/logger/console/index.js +1 -17
- package/logger/console/index.js.map +1 -1
- package/logger/console/logger.d.ts +3 -3
- package/logger/console/logger.js +20 -27
- package/logger/console/logger.js.map +1 -1
- package/logger/index.d.ts +2 -2
- package/logger/index.js +2 -18
- package/logger/index.js.map +1 -1
- package/logger/level.js +2 -5
- package/logger/level.js.map +1 -1
- package/logger/logger.d.ts +3 -3
- package/logger/logger.js +13 -17
- package/logger/logger.js.map +1 -1
- package/logger/noop/index.d.ts +1 -1
- package/logger/noop/index.js +1 -17
- package/logger/noop/index.js.map +1 -1
- package/logger/noop/logger.d.ts +1 -1
- package/logger/noop/logger.js +5 -9
- package/logger/noop/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.d.ts +2 -2
- package/mail/clients/nodemailer.mail-client.js +15 -20
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/index.d.ts +8 -8
- package/mail/index.js +8 -24
- package/mail/index.js.map +1 -1
- package/mail/mail-log.repository.d.ts +2 -2
- package/mail/mail-log.repository.js +2 -6
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail-template-renderer.provider.d.ts +1 -1
- package/mail/mail-template-renderer.provider.js +6 -9
- package/mail/mail-template-renderer.provider.js.map +1 -1
- package/mail/mail-template.provider.d.ts +1 -1
- package/mail/mail-template.provider.js +1 -5
- package/mail/mail-template.provider.js.map +1 -1
- package/mail/mail-template.renderer.d.ts +1 -1
- package/mail/mail-template.renderer.js +1 -5
- package/mail/mail-template.renderer.js.map +1 -1
- package/mail/mail.client.d.ts +3 -3
- package/mail/mail.client.js +2 -6
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +7 -7
- package/mail/mail.service.js +24 -27
- package/mail/mail.service.js.map +1 -1
- package/mail/models/index.d.ts +6 -6
- package/mail/models/index.js +6 -22
- package/mail/models/index.js.map +1 -1
- package/mail/models/mail-address.model.js +1 -2
- package/mail/models/mail-content.model.js +1 -2
- package/mail/models/mail-data.model.d.ts +3 -3
- package/mail/models/mail-data.model.js +1 -2
- package/mail/models/mail-log.model.d.ts +3 -3
- package/mail/models/mail-log.model.js +1 -2
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-send-result.model.js +1 -2
- package/mail/models/mail-template.model.js +1 -2
- package/mail/module.d.ts +6 -6
- package/mail/module.js +21 -25
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +6 -6
- package/mail/repositories/mongo-mail-log.repository.js +13 -18
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/template-providers/file-mail-template.provider.d.ts +5 -5
- package/mail/template-providers/file-mail-template.provider.js +29 -32
- package/mail/template-providers/file-mail-template.provider.js.map +1 -1
- package/mail/template-providers/memory-mail-template.provider.d.ts +2 -2
- package/mail/template-providers/memory-mail-template.provider.js +7 -10
- package/mail/template-providers/memory-mail-template.provider.js.map +1 -1
- package/mail/template-renderers/handlebars.mail-template-renderer.d.ts +3 -3
- package/mail/template-renderers/handlebars.mail-template-renderer.js +13 -17
- package/mail/template-renderers/handlebars.mail-template-renderer.js.map +1 -1
- package/mail/template-renderers/mjml.mail-template-renderer.d.ts +4 -4
- package/mail/template-renderers/mjml.mail-template-renderer.js +18 -18
- package/mail/template-renderers/mjml.mail-template-renderer.js.map +1 -1
- package/mail/tokens.d.ts +5 -5
- package/mail/tokens.js +3 -6
- package/mail/tokens.js.map +1 -1
- package/memory/index.d.ts +1 -1
- package/memory/index.js +1 -17
- package/memory/index.js.map +1 -1
- package/memory/observable-finalization-registry.js +3 -7
- package/memory/observable-finalization-registry.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js +3 -7
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +7 -12
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/broadcast-channel/index.d.ts +2 -2
- package/message-bus/broadcast-channel/index.js +2 -18
- package/message-bus/broadcast-channel/index.js.map +1 -1
- package/message-bus/index.d.ts +3 -3
- package/message-bus/index.js +3 -19
- package/message-bus/index.js.map +1 -1
- package/message-bus/local/index.d.ts +2 -2
- package/message-bus/local/index.js +2 -18
- package/message-bus/local/index.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +3 -3
- package/message-bus/local/local-message-bus-provider.js +20 -24
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +4 -4
- package/message-bus/local/local-message-bus.js +13 -16
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/types.js +1 -2
- package/message-bus/message-bus-base.d.ts +4 -4
- package/message-bus/message-bus-base.js +11 -15
- package/message-bus/message-bus-base.js.map +1 -1
- package/message-bus/message-bus-provider.d.ts +1 -1
- package/message-bus/message-bus-provider.js +1 -5
- package/message-bus/message-bus-provider.js.map +1 -1
- package/message-bus/message-bus.d.ts +4 -4
- package/message-bus/message-bus.js +3 -7
- package/message-bus/message-bus.js.map +1 -1
- package/migration/index.d.ts +3 -3
- package/migration/index.js +3 -19
- package/migration/index.js.map +1 -1
- package/migration/migration-state-repository.d.ts +2 -2
- package/migration/migration-state-repository.js +2 -6
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +1 -1
- package/migration/migration-state.js +1 -2
- package/migration/migrator.d.ts +3 -3
- package/migration/migrator.js +24 -28
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/index.d.ts +2 -2
- package/migration/mongo/index.js +2 -18
- package/migration/mongo/index.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +7 -7
- package/migration/mongo/migration-state-repository.js +12 -15
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +2 -2
- package/migration/mongo/module.js +7 -11
- package/migration/mongo/module.js.map +1 -1
- package/module/index.d.ts +4 -4
- package/module/index.js +4 -20
- package/module/index.js.map +1 -1
- package/module/module-base.d.ts +5 -5
- package/module/module-base.js +10 -14
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +4 -4
- package/module/module-metric-reporter.js +8 -12
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +1 -1
- package/module/module.js +4 -7
- package/module/module.js.map +1 -1
- package/module/modules/index.d.ts +2 -2
- package/module/modules/index.js +2 -18
- package/module/modules/index.js.map +1 -1
- package/module/modules/old-web-server.module.d.ts +7 -7
- package/module/modules/old-web-server.module.js +6 -28
- package/module/modules/old-web-server.module.js.map +1 -1
- package/module/modules/web-server.module.d.ts +9 -9
- package/module/modules/web-server.module.js +24 -47
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +2 -2
- package/module/utils.js +2 -7
- package/module/utils.js.map +1 -1
- package/object-storage/index.d.ts +3 -3
- package/object-storage/index.js +3 -19
- package/object-storage/index.js.map +1 -1
- package/object-storage/object-storage-provider.d.ts +1 -1
- package/object-storage/object-storage-provider.js +1 -5
- package/object-storage/object-storage-provider.js.map +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +2 -6
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.js +1 -2
- package/object-storage/s3/index.d.ts +3 -3
- package/object-storage/s3/index.js +3 -19
- package/object-storage/s3/index.js.map +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +3 -3
- package/object-storage/s3/s3.object-storage-provider.js +20 -24
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +3 -3
- package/object-storage/s3/s3.object-storage.js +17 -20
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +1 -1
- package/object-storage/s3/s3.object.js +1 -2
- package/old-api/endpoint.d.ts +1 -1
- package/old-api/endpoint.js +2 -7
- package/old-api/endpoint.js.map +1 -1
- package/old-api/endpoints/echo.endpoint.d.ts +1 -1
- package/old-api/endpoints/echo.endpoint.js +1 -5
- package/old-api/endpoints/echo.endpoint.js.map +1 -1
- package/old-api/endpoints/index.d.ts +1 -1
- package/old-api/endpoints/index.js +1 -17
- package/old-api/endpoints/index.js.map +1 -1
- package/old-api/http-api.d.ts +10 -10
- package/old-api/http-api.js +60 -84
- package/old-api/http-api.js.map +1 -1
- package/old-api/index.d.ts +3 -3
- package/old-api/index.js +3 -19
- package/old-api/index.js.map +1 -1
- package/old-api/validation/index.d.ts +1 -1
- package/old-api/validation/index.js +1 -17
- package/old-api/validation/index.js.map +1 -1
- package/old-api/validation/types.d.ts +1 -1
- package/old-api/validation/types.js +2 -5
- package/old-api/validation/types.js.map +1 -1
- package/old-api/validation/validators/index.d.ts +1 -1
- package/old-api/validation/validators/index.js +1 -17
- package/old-api/validation/validators/index.js.map +1 -1
- package/old-api/validation/validators/noop.d.ts +1 -1
- package/old-api/validation/validators/noop.js +1 -5
- package/old-api/validation/validators/noop.js.map +1 -1
- package/old-api/validation/validators/superstruct.d.ts +3 -3
- package/old-api/validation/validators/superstruct.js +17 -28
- package/old-api/validation/validators/superstruct.js.map +1 -1
- package/old-api/validation/validators/yup.d.ts +1 -1
- package/old-api/validation/validators/yup.js +8 -16
- package/old-api/validation/validators/yup.js.map +1 -1
- package/openid-connect/cached-oidc-configuration.service.d.ts +3 -3
- package/openid-connect/cached-oidc-configuration.service.js +14 -17
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.d.ts +7 -7
- package/openid-connect/index.js +11 -27
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +8 -8
- package/openid-connect/mongo-oidc-state.repository.js +15 -19
- package/openid-connect/mongo-oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc-configuration.service.d.ts +1 -1
- package/openid-connect/oidc-configuration.service.js +11 -14
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.model.js +1 -2
- package/openid-connect/oidc-state.repository.d.ts +2 -2
- package/openid-connect/oidc-state.repository.js +2 -6
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service-model.js +1 -2
- package/openid-connect/oidc.service.d.ts +4 -4
- package/openid-connect/oidc.service.js +31 -34
- package/openid-connect/oidc.service.js.map +1 -1
- package/package.json +5 -4
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +11 -18
- package/process-shutdown.js.map +1 -1
- package/promise/cancelable-promise.js +1 -5
- package/promise/cancelable-promise.js.map +1 -1
- package/promise/deferred-promise.js +1 -5
- package/promise/deferred-promise.js.map +1 -1
- package/promise/index.d.ts +2 -2
- package/promise/index.js +2 -18
- package/promise/index.js.map +1 -1
- package/queue/enqueue-batch.d.ts +1 -1
- package/queue/enqueue-batch.js +2 -6
- package/queue/enqueue-batch.js.map +1 -1
- package/queue/index.d.ts +3 -3
- package/queue/index.js +3 -19
- package/queue/index.js.map +1 -1
- package/queue/mongo/index.d.ts +4 -4
- package/queue/mongo/index.js +4 -20
- package/queue/mongo/index.js.map +1 -1
- package/queue/mongo/job.d.ts +3 -3
- package/queue/mongo/job.js +1 -2
- package/queue/mongo/mongo-job.repository.d.ts +7 -7
- package/queue/mongo/mongo-job.repository.js +20 -34
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +6 -6
- package/queue/mongo/queue.js +62 -111
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +10 -10
- package/queue/mongo/queue.provider.js +16 -20
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/provider.d.ts +1 -1
- package/queue/provider.js +1 -5
- package/queue/provider.js.map +1 -1
- package/queue/queue.d.ts +4 -4
- package/queue/queue.js +9 -13
- package/queue/queue.js.map +1 -1
- package/random/index.d.ts +1 -1
- package/random/index.js +1 -17
- package/random/index.js.map +1 -1
- package/random/number/index.d.ts +3 -3
- package/random/number/index.js +3 -19
- package/random/number/index.js.map +1 -1
- package/random/number/mulberry32.d.ts +1 -1
- package/random/number/mulberry32.js +3 -8
- package/random/number/mulberry32.js.map +1 -1
- package/random/number/seeded.js +1 -5
- package/random/number/seeded.js.map +1 -1
- package/random/number/sfc32.d.ts +1 -1
- package/random/number/sfc32.js +3 -8
- package/random/number/sfc32.js.map +1 -1
- package/rxjs/cast.js +2 -7
- package/rxjs/cast.js.map +1 -1
- package/rxjs/index.d.ts +11 -11
- package/rxjs/index.js +11 -27
- package/rxjs/index.js.map +1 -1
- package/rxjs/intersection-observer.js +10 -25
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/mutation-observer.js +11 -27
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/noop.js +2 -7
- package/rxjs/noop.js.map +1 -1
- package/rxjs/performance-observer.js +9 -13
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.js +11 -27
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +13 -18
- package/rxjs/retry-backoff.js.map +1 -1
- package/rxjs/slow-array.js +8 -17
- package/rxjs/slow-array.js.map +1 -1
- package/rxjs/teardown.js +3 -7
- package/rxjs/teardown.js.map +1 -1
- package/rxjs/timing.js +14 -17
- package/rxjs/timing.js.map +1 -1
- package/rxjs/touch.js +7 -11
- package/rxjs/touch.js.map +1 -1
- package/schema/index.d.ts +4 -4
- package/schema/index.js +4 -20
- package/schema/index.js.map +1 -1
- package/schema/schema.error.d.ts +2 -2
- package/schema/schema.error.js +6 -11
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.validator.d.ts +4 -4
- package/schema/schema.validator.js +19 -26
- package/schema/schema.validator.js.map +1 -1
- package/schema/schemas/any.d.ts +3 -3
- package/schema/schemas/any.js +9 -11
- package/schema/schemas/any.js.map +1 -1
- package/schema/schemas/array.d.ts +4 -4
- package/schema/schemas/array.js +20 -21
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/async-iterable.d.ts +4 -4
- package/schema/schemas/async-iterable.js +18 -19
- package/schema/schemas/async-iterable.js.map +1 -1
- package/schema/schemas/boolean.d.ts +4 -4
- package/schema/schemas/boolean.js +13 -16
- package/schema/schemas/boolean.js.map +1 -1
- package/schema/schemas/date.d.ts +4 -4
- package/schema/schemas/date.js +22 -25
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +5 -5
- package/schema/schemas/defaulted.js +14 -14
- package/schema/schemas/defaulted.js.map +1 -1
- package/schema/schemas/enumeration.d.ts +6 -6
- package/schema/schemas/enumeration.js +24 -26
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/index.d.ts +24 -24
- package/schema/schemas/index.js +24 -40
- package/schema/schemas/index.js.map +1 -1
- package/schema/schemas/instance.d.ts +5 -5
- package/schema/schemas/instance.js +13 -14
- package/schema/schemas/instance.js.map +1 -1
- package/schema/schemas/iterable.d.ts +4 -4
- package/schema/schemas/iterable.js +18 -19
- package/schema/schemas/iterable.js.map +1 -1
- package/schema/schemas/literal.d.ts +4 -4
- package/schema/schemas/literal.js +12 -13
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/never.d.ts +4 -4
- package/schema/schemas/never.js +12 -14
- package/schema/schemas/never.js.map +1 -1
- package/schema/schemas/nullable.d.ts +4 -4
- package/schema/schemas/nullable.js +14 -16
- package/schema/schemas/nullable.js.map +1 -1
- package/schema/schemas/number.d.ts +4 -4
- package/schema/schemas/number.js +21 -24
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +5 -5
- package/schema/schemas/object.js +24 -26
- package/schema/schemas/object.js.map +1 -1
- package/schema/schemas/optional.d.ts +4 -4
- package/schema/schemas/optional.js +14 -16
- package/schema/schemas/optional.js.map +1 -1
- package/schema/schemas/preprocess.d.ts +4 -4
- package/schema/schemas/preprocess.js +16 -16
- package/schema/schemas/preprocess.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +4 -4
- package/schema/schemas/readable-stream.js +12 -14
- package/schema/schemas/readable-stream.js.map +1 -1
- package/schema/schemas/refine.d.ts +5 -5
- package/schema/schemas/refine.js +19 -19
- package/schema/schemas/refine.js.map +1 -1
- package/schema/schemas/regexp.d.ts +4 -4
- package/schema/schemas/regexp.js +16 -19
- package/schema/schemas/regexp.js.map +1 -1
- package/schema/schemas/string.d.ts +4 -4
- package/schema/schemas/string.js +22 -26
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +4 -4
- package/schema/schemas/transform.js +16 -16
- package/schema/schemas/transform.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +4 -4
- package/schema/schemas/uint8-array.js +19 -22
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +4 -4
- package/schema/schemas/union.js +14 -15
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +3 -3
- package/schema/schemas/unknown.js +9 -11
- package/schema/schemas/unknown.js.map +1 -1
- package/schema/types.d.ts +2 -2
- package/schema/types.js +1 -5
- package/schema/types.js.map +1 -1
- package/search-index/elastic/config.d.ts +3 -3
- package/search-index/elastic/config.js +6 -9
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/index.d.ts +5 -5
- package/search-index/elastic/index.js +5 -21
- package/search-index/elastic/index.js.map +1 -1
- package/search-index/elastic/model/elastic-query.d.ts +1 -1
- package/search-index/elastic/model/elastic-query.js +1 -2
- package/search-index/elastic/model/index-mapping.d.ts +3 -3
- package/search-index/elastic/model/index-mapping.js +3 -7
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/index.d.ts +3 -3
- package/search-index/elastic/model/index.js +3 -19
- package/search-index/elastic/model/index.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +3 -3
- package/search-index/elastic/model/sort.js +1 -2
- package/search-index/elastic/module.d.ts +4 -4
- package/search-index/elastic/module.js +22 -28
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.d.ts +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js +1 -5
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +1 -1
- package/search-index/elastic/query-builder/index.d.ts +1 -1
- package/search-index/elastic/query-builder/index.js +1 -17
- package/search-index/elastic/query-builder/index.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +4 -4
- package/search-index/elastic/query-converter.js +29 -37
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +9 -9
- package/search-index/elastic/search-index.js +36 -51
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +2 -2
- package/search-index/elastic/sort-converter.js +3 -8
- package/search-index/elastic/sort-converter.js.map +1 -1
- package/search-index/elastic/types.d.ts +1 -1
- package/search-index/elastic/types.js +1 -2
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +4 -8
- package/search-index/error.js.map +1 -1
- package/search-index/index.d.ts +3 -3
- package/search-index/index.js +3 -19
- package/search-index/index.js.map +1 -1
- package/search-index/memory/index.d.ts +1 -1
- package/search-index/memory/index.js +1 -17
- package/search-index/memory/index.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +4 -3
- package/search-index/memory/memory-search-index.js +25 -30
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +2 -3
- package/search-index/search-index.js +11 -41
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +1 -1
- package/search-index/search-result.js +1 -2
- package/serializer/handlers/binary.d.ts +2 -2
- package/serializer/handlers/binary.js +11 -20
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/date.js +2 -7
- package/serializer/handlers/date.js.map +1 -1
- package/serializer/handlers/error.js +2 -7
- package/serializer/handlers/error.js.map +1 -1
- package/serializer/handlers/index.d.ts +7 -7
- package/serializer/handlers/index.js +7 -23
- package/serializer/handlers/index.js.map +1 -1
- package/serializer/handlers/map.d.ts +1 -1
- package/serializer/handlers/map.js +2 -7
- package/serializer/handlers/map.js.map +1 -1
- package/serializer/handlers/regex.js +2 -7
- package/serializer/handlers/regex.js.map +1 -1
- package/serializer/handlers/register.d.ts +1 -1
- package/serializer/handlers/register.js +17 -21
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.d.ts +2 -2
- package/serializer/handlers/set.js +2 -7
- package/serializer/handlers/set.js.map +1 -1
- package/serializer/index.d.ts +4 -4
- package/serializer/index.js +3 -24
- package/serializer/index.js.map +1 -1
- package/serializer/serializable.d.ts +1 -1
- package/serializer/serializable.js +15 -24
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +30 -37
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/serializer/types.js +5 -8
- package/serializer/types.js.map +1 -1
- package/tailwind/colors.d.ts +1 -1
- package/tailwind/colors.js +4 -10
- package/tailwind/colors.js.map +1 -1
- package/tailwind/index.d.ts +1 -1
- package/tailwind/index.js +1 -17
- package/tailwind/index.js.map +1 -1
- package/tokens.d.ts +1 -1
- package/tokens.js +2 -5
- package/tokens.js.map +1 -1
- package/tsconfig.json +7 -3
- package/types/geo-json.d.ts +1 -1
- package/types/geo-json.js +1 -2
- package/types.js +1 -2
- package/types.js.map +1 -1
- package/utils/alphabet.js +2 -5
- package/utils/alphabet.js.map +1 -1
- package/utils/any-iterable-iterator.js +4 -8
- package/utils/any-iterable-iterator.js.map +1 -1
- package/utils/array/array-backtracker.js +8 -12
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/array/array.js +13 -21
- package/utils/array/array.js.map +1 -1
- package/utils/array/index.d.ts +2 -2
- package/utils/array/index.js +2 -18
- package/utils/array/index.js.map +1 -1
- package/utils/async-iterable-helpers/all.d.ts +2 -2
- package/utils/async-iterable-helpers/all.js +9 -31
- package/utils/async-iterable-helpers/all.js.map +1 -1
- package/utils/async-iterable-helpers/any.d.ts +2 -2
- package/utils/async-iterable-helpers/any.js +9 -31
- package/utils/async-iterable-helpers/any.js.map +1 -1
- package/utils/async-iterable-helpers/assert.d.ts +2 -2
- package/utils/async-iterable-helpers/assert.js +22 -60
- package/utils/async-iterable-helpers/assert.js.map +1 -1
- package/utils/async-iterable-helpers/batch.d.ts +1 -1
- package/utils/async-iterable-helpers/batch.js +25 -63
- package/utils/async-iterable-helpers/batch.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.d.ts +1 -1
- package/utils/async-iterable-helpers/buffer.js +43 -90
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/concat.d.ts +1 -1
- package/utils/async-iterable-helpers/concat.js +3 -33
- package/utils/async-iterable-helpers/concat.js.map +1 -1
- package/utils/async-iterable-helpers/default-if-empty.d.ts +1 -1
- package/utils/async-iterable-helpers/default-if-empty.js +9 -45
- package/utils/async-iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/async-iterable-helpers/deferred.d.ts +1 -1
- package/utils/async-iterable-helpers/deferred.js +3 -33
- package/utils/async-iterable-helpers/deferred.js.map +1 -1
- package/utils/async-iterable-helpers/distinct.d.ts +2 -2
- package/utils/async-iterable-helpers/distinct.js +23 -61
- package/utils/async-iterable-helpers/distinct.js.map +1 -1
- package/utils/async-iterable-helpers/drain.d.ts +1 -1
- package/utils/async-iterable-helpers/drain.js +3 -24
- package/utils/async-iterable-helpers/drain.js.map +1 -1
- package/utils/async-iterable-helpers/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/filter.js +22 -60
- package/utils/async-iterable-helpers/filter.js.map +1 -1
- package/utils/async-iterable-helpers/first-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/first-or-default.js +6 -28
- package/utils/async-iterable-helpers/first-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/first.d.ts +3 -3
- package/utils/async-iterable-helpers/first.js +6 -28
- package/utils/async-iterable-helpers/first.js.map +1 -1
- package/utils/async-iterable-helpers/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/for-each.js +7 -29
- package/utils/async-iterable-helpers/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/group-single.d.ts +2 -2
- package/utils/async-iterable-helpers/group-single.js +3 -33
- package/utils/async-iterable-helpers/group-single.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-map.js +9 -31
- package/utils/async-iterable-helpers/group-to-map.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-single-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-single-map.js +8 -30
- package/utils/async-iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/async-iterable-helpers/group.d.ts +2 -2
- package/utils/async-iterable-helpers/group.js +3 -33
- package/utils/async-iterable-helpers/group.js.map +1 -1
- package/utils/async-iterable-helpers/index.d.ts +45 -45
- package/utils/async-iterable-helpers/index.js +45 -61
- package/utils/async-iterable-helpers/index.js.map +1 -1
- package/utils/async-iterable-helpers/interrupt.d.ts +1 -1
- package/utils/async-iterable-helpers/interrupt.js +19 -69
- package/utils/async-iterable-helpers/interrupt.js.map +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.js +5 -10
- package/utils/async-iterable-helpers/is-async-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/last-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/last-or-default.js +6 -28
- package/utils/async-iterable-helpers/last-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/last.d.ts +3 -3
- package/utils/async-iterable-helpers/last.js +6 -28
- package/utils/async-iterable-helpers/last.js.map +1 -1
- package/utils/async-iterable-helpers/map-many.d.ts +2 -2
- package/utils/async-iterable-helpers/map-many.js +19 -62
- package/utils/async-iterable-helpers/map-many.js.map +1 -1
- package/utils/async-iterable-helpers/map.d.ts +2 -2
- package/utils/async-iterable-helpers/map.js +19 -57
- package/utils/async-iterable-helpers/map.js.map +1 -1
- package/utils/async-iterable-helpers/materialize.d.ts +1 -1
- package/utils/async-iterable-helpers/materialize.js +9 -41
- package/utils/async-iterable-helpers/materialize.js.map +1 -1
- package/utils/async-iterable-helpers/metadata.d.ts +2 -2
- package/utils/async-iterable-helpers/metadata.js +35 -75
- package/utils/async-iterable-helpers/metadata.js.map +1 -1
- package/utils/async-iterable-helpers/multiplex.d.ts +1 -1
- package/utils/async-iterable-helpers/multiplex.js +7 -29
- package/utils/async-iterable-helpers/multiplex.js.map +1 -1
- package/utils/async-iterable-helpers/observable-iterable.js +31 -49
- package/utils/async-iterable-helpers/observable-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/pairwise.d.ts +1 -1
- package/utils/async-iterable-helpers/pairwise.js +24 -62
- package/utils/async-iterable-helpers/pairwise.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/feed.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/feed.js +24 -54
- package/utils/async-iterable-helpers/parallel/feed.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/filter.js +3 -7
- package/utils/async-iterable-helpers/parallel/filter.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/for-each.js +13 -35
- package/utils/async-iterable-helpers/parallel/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/group.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/group.js +5 -9
- package/utils/async-iterable-helpers/parallel/group.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/index.d.ts +7 -7
- package/utils/async-iterable-helpers/parallel/index.js +7 -23
- package/utils/async-iterable-helpers/parallel/index.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/map.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/map.js +3 -7
- package/utils/async-iterable-helpers/parallel/map.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/tap.js +3 -7
- package/utils/async-iterable-helpers/parallel/tap.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/types.js +1 -2
- package/utils/async-iterable-helpers/reduce.d.ts +2 -2
- package/utils/async-iterable-helpers/reduce.js +11 -33
- package/utils/async-iterable-helpers/reduce.js.map +1 -1
- package/utils/async-iterable-helpers/retry.d.ts +2 -2
- package/utils/async-iterable-helpers/retry.js +41 -79
- package/utils/async-iterable-helpers/retry.js.map +1 -1
- package/utils/async-iterable-helpers/single-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/single-or-default.js +11 -33
- package/utils/async-iterable-helpers/single-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/single.d.ts +3 -3
- package/utils/async-iterable-helpers/single.js +11 -33
- package/utils/async-iterable-helpers/single.js.map +1 -1
- package/utils/async-iterable-helpers/skip.d.ts +1 -1
- package/utils/async-iterable-helpers/skip.js +3 -7
- package/utils/async-iterable-helpers/skip.js.map +1 -1
- package/utils/async-iterable-helpers/sort.d.ts +2 -2
- package/utils/async-iterable-helpers/sort.js +5 -9
- package/utils/async-iterable-helpers/sort.js.map +1 -1
- package/utils/async-iterable-helpers/take-until.d.ts +2 -2
- package/utils/async-iterable-helpers/take-until.js +30 -52
- package/utils/async-iterable-helpers/take-until.js.map +1 -1
- package/utils/async-iterable-helpers/take-while.d.ts +2 -2
- package/utils/async-iterable-helpers/take-while.js +28 -66
- package/utils/async-iterable-helpers/take-while.js.map +1 -1
- package/utils/async-iterable-helpers/take.d.ts +1 -1
- package/utils/async-iterable-helpers/take.js +10 -46
- package/utils/async-iterable-helpers/take.js.map +1 -1
- package/utils/async-iterable-helpers/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/tap.js +19 -57
- package/utils/async-iterable-helpers/tap.js.map +1 -1
- package/utils/async-iterable-helpers/throttle.d.ts +2 -2
- package/utils/async-iterable-helpers/throttle.js +9 -45
- package/utils/async-iterable-helpers/throttle.js.map +1 -1
- package/utils/async-iterable-helpers/to-array.d.ts +1 -1
- package/utils/async-iterable-helpers/to-array.js +5 -27
- package/utils/async-iterable-helpers/to-array.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js +36 -74
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.js +9 -14
- package/utils/async-iterable-helpers/to-async-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.js +5 -9
- package/utils/async-iterable-helpers/to-sync-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/types.d.ts +1 -1
- package/utils/async-iterable-helpers/types.js +1 -2
- package/utils/async-iterable-helpers/while.d.ts +2 -2
- package/utils/async-iterable-helpers/while.js +24 -62
- package/utils/async-iterable-helpers/while.js.map +1 -1
- package/utils/async-iterator-iterable-iterator.js +24 -42
- package/utils/async-iterator-iterable-iterator.js.map +1 -1
- package/utils/backoff.d.ts +2 -2
- package/utils/backoff.js +30 -53
- package/utils/backoff.js.map +1 -1
- package/utils/base64.d.ts +1 -1
- package/utils/base64.js +15 -26
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.js +17 -25
- package/utils/benchmark.js.map +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary-search.js +10 -21
- package/utils/binary-search.js.map +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +7 -13
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.js +22 -26
- package/utils/cancellation-token.js.map +1 -1
- package/utils/comparison.js +7 -17
- package/utils/comparison.js.map +1 -1
- package/utils/compression.d.ts +2 -2
- package/utils/compression.js +18 -25
- package/utils/compression.js.map +1 -1
- package/utils/config-parser.js +11 -18
- package/utils/config-parser.js.map +1 -1
- package/utils/cryptography.d.ts +1 -1
- package/utils/cryptography.js +54 -69
- package/utils/cryptography.js.map +1 -1
- package/utils/date-time.js +34 -57
- package/utils/date-time.js.map +1 -1
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +12 -19
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/enum.js +7 -13
- package/utils/enum.js.map +1 -1
- package/utils/equals.d.ts +2 -2
- package/utils/equals.js +17 -24
- package/utils/equals.js.map +1 -1
- package/utils/event-loop.d.ts +2 -2
- package/utils/event-loop.js +9 -14
- package/utils/event-loop.js.map +1 -1
- package/utils/factory-map.js +2 -6
- package/utils/factory-map.js.map +1 -1
- package/utils/feedable-async-iterable.js +16 -53
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/file-reader.js +6 -13
- package/utils/file-reader.js.map +1 -1
- package/utils/function/index.d.ts +2 -2
- package/utils/function/index.js +2 -18
- package/utils/function/index.js.map +1 -1
- package/utils/function/memoize.js +4 -9
- package/utils/function/memoize.js.map +1 -1
- package/utils/function/throttle.js +5 -9
- package/utils/function/throttle.js.map +1 -1
- package/utils/helpers.d.ts +1 -1
- package/utils/helpers.js +54 -86
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +22 -30
- package/utils/image.js.map +1 -1
- package/utils/index.d.ts +42 -42
- package/utils/index.js +42 -58
- package/utils/index.js.map +1 -1
- package/utils/iterable-helpers/all.d.ts +1 -1
- package/utils/iterable-helpers/all.js +1 -5
- package/utils/iterable-helpers/all.js.map +1 -1
- package/utils/iterable-helpers/any.d.ts +1 -1
- package/utils/iterable-helpers/any.js +1 -5
- package/utils/iterable-helpers/any.js.map +1 -1
- package/utils/iterable-helpers/assert.d.ts +1 -1
- package/utils/iterable-helpers/assert.js +3 -7
- package/utils/iterable-helpers/assert.js.map +1 -1
- package/utils/iterable-helpers/batch.js +1 -5
- package/utils/iterable-helpers/batch.js.map +1 -1
- package/utils/iterable-helpers/concat.js +1 -5
- package/utils/iterable-helpers/concat.js.map +1 -1
- package/utils/iterable-helpers/default-if-empty.js +1 -5
- package/utils/iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/iterable-helpers/deferred.js +1 -5
- package/utils/iterable-helpers/deferred.js.map +1 -1
- package/utils/iterable-helpers/distinct.d.ts +1 -1
- package/utils/iterable-helpers/distinct.js +1 -5
- package/utils/iterable-helpers/distinct.js.map +1 -1
- package/utils/iterable-helpers/drain.js +1 -5
- package/utils/iterable-helpers/drain.js.map +1 -1
- package/utils/iterable-helpers/filter.d.ts +1 -1
- package/utils/iterable-helpers/filter.js +1 -5
- package/utils/iterable-helpers/filter.js.map +1 -1
- package/utils/iterable-helpers/first-or-default.d.ts +1 -1
- package/utils/iterable-helpers/first-or-default.js +3 -7
- package/utils/iterable-helpers/first-or-default.js.map +1 -1
- package/utils/iterable-helpers/first.d.ts +1 -1
- package/utils/iterable-helpers/first.js +3 -7
- package/utils/iterable-helpers/first.js.map +1 -1
- package/utils/iterable-helpers/for-each.d.ts +1 -1
- package/utils/iterable-helpers/for-each.js +1 -5
- package/utils/iterable-helpers/for-each.js.map +1 -1
- package/utils/iterable-helpers/group-single.d.ts +1 -1
- package/utils/iterable-helpers/group-single.js +3 -7
- package/utils/iterable-helpers/group-single.js.map +1 -1
- package/utils/iterable-helpers/group-to-map.d.ts +1 -1
- package/utils/iterable-helpers/group-to-map.js +3 -7
- package/utils/iterable-helpers/group-to-map.js.map +1 -1
- package/utils/iterable-helpers/group-to-single-map.d.ts +1 -1
- package/utils/iterable-helpers/group-to-single-map.js +1 -5
- package/utils/iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/iterable-helpers/group.d.ts +1 -1
- package/utils/iterable-helpers/group.js +3 -7
- package/utils/iterable-helpers/group.js.map +1 -1
- package/utils/iterable-helpers/index.d.ts +37 -37
- package/utils/iterable-helpers/index.js +37 -53
- package/utils/iterable-helpers/index.js.map +1 -1
- package/utils/iterable-helpers/is-iterable.d.ts +1 -1
- package/utils/iterable-helpers/is-iterable.js +5 -10
- package/utils/iterable-helpers/is-iterable.js.map +1 -1
- package/utils/iterable-helpers/last-or-default.d.ts +1 -1
- package/utils/iterable-helpers/last-or-default.js +3 -7
- package/utils/iterable-helpers/last-or-default.js.map +1 -1
- package/utils/iterable-helpers/last.d.ts +1 -1
- package/utils/iterable-helpers/last.js +3 -7
- package/utils/iterable-helpers/last.js.map +1 -1
- package/utils/iterable-helpers/map-many.d.ts +1 -1
- package/utils/iterable-helpers/map-many.js +1 -5
- package/utils/iterable-helpers/map-many.js.map +1 -1
- package/utils/iterable-helpers/map.d.ts +1 -1
- package/utils/iterable-helpers/map.js +1 -5
- package/utils/iterable-helpers/map.js.map +1 -1
- package/utils/iterable-helpers/materialize.js +1 -5
- package/utils/iterable-helpers/materialize.js.map +1 -1
- package/utils/iterable-helpers/metadata.d.ts +1 -1
- package/utils/iterable-helpers/metadata.js +1 -5
- package/utils/iterable-helpers/metadata.js.map +1 -1
- package/utils/iterable-helpers/pairwise.js +1 -5
- package/utils/iterable-helpers/pairwise.js.map +1 -1
- package/utils/iterable-helpers/range.js +1 -5
- package/utils/iterable-helpers/range.js.map +1 -1
- package/utils/iterable-helpers/reduce.d.ts +1 -1
- package/utils/iterable-helpers/reduce.js +1 -5
- package/utils/iterable-helpers/reduce.js.map +1 -1
- package/utils/iterable-helpers/single-or-default.d.ts +1 -1
- package/utils/iterable-helpers/single-or-default.js +1 -5
- package/utils/iterable-helpers/single-or-default.js.map +1 -1
- package/utils/iterable-helpers/single.d.ts +1 -1
- package/utils/iterable-helpers/single.js +1 -5
- package/utils/iterable-helpers/single.js.map +1 -1
- package/utils/iterable-helpers/skip.js +1 -5
- package/utils/iterable-helpers/skip.js.map +1 -1
- package/utils/iterable-helpers/sort.d.ts +1 -1
- package/utils/iterable-helpers/sort.js +2 -6
- package/utils/iterable-helpers/sort.js.map +1 -1
- package/utils/iterable-helpers/take-until.d.ts +1 -1
- package/utils/iterable-helpers/take-until.js +1 -5
- package/utils/iterable-helpers/take-until.js.map +1 -1
- package/utils/iterable-helpers/take-while.d.ts +1 -1
- package/utils/iterable-helpers/take-while.js +1 -5
- package/utils/iterable-helpers/take-while.js.map +1 -1
- package/utils/iterable-helpers/take.js +1 -5
- package/utils/iterable-helpers/take.js.map +1 -1
- package/utils/iterable-helpers/tap.d.ts +1 -1
- package/utils/iterable-helpers/tap.js +1 -5
- package/utils/iterable-helpers/tap.js.map +1 -1
- package/utils/iterable-helpers/types.js +1 -2
- package/utils/iterable-helpers/while.d.ts +1 -1
- package/utils/iterable-helpers/while.js +1 -5
- package/utils/iterable-helpers/while.js.map +1 -1
- package/utils/jwt.d.ts +2 -2
- package/utils/jwt.js +26 -31
- package/utils/jwt.js.map +1 -1
- package/utils/map.js +7 -15
- package/utils/map.js.map +1 -1
- package/utils/math.js +7 -17
- package/utils/math.js.map +1 -1
- package/utils/middleware.js +2 -7
- package/utils/middleware.js.map +1 -1
- package/utils/moving-metric.js +5 -9
- package/utils/moving-metric.js.map +1 -1
- package/utils/noop.js +1 -5
- package/utils/noop.js.map +1 -1
- package/utils/object/dereference.js +7 -13
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.js +15 -19
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/object/index.d.ts +6 -6
- package/utils/object/index.js +6 -22
- package/utils/object/index.js.map +1 -1
- package/utils/object/lazy-property.d.ts +1 -1
- package/utils/object/lazy-property.js +14 -21
- package/utils/object/lazy-property.js.map +1 -1
- package/utils/object/merge.js +13 -17
- package/utils/object/merge.js.map +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/object.js +18 -29
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +1 -1
- package/utils/object/property-name.js +16 -25
- package/utils/object/property-name.js.map +1 -1
- package/utils/ordered-feedable-async-iterable.d.ts +1 -1
- package/utils/ordered-feedable-async-iterable.js +3 -7
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +2 -2
- package/utils/patch-worker.js +23 -29
- package/utils/patch-worker.js.map +1 -1
- package/utils/patterns.js +4 -8
- package/utils/patterns.js.map +1 -1
- package/utils/periodic-reporter.js +9 -13
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.js +15 -19
- package/utils/periodic-sampler.js.map +1 -1
- package/utils/provider-function-iterable.js +14 -32
- package/utils/provider-function-iterable.js.map +1 -1
- package/utils/random.js +4 -9
- package/utils/random.js.map +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/reflection.js +7 -16
- package/utils/reflection.js.map +1 -1
- package/utils/set.js +7 -15
- package/utils/set.js.map +1 -1
- package/utils/singleton.js +3 -7
- package/utils/singleton.js.map +1 -1
- package/utils/sort.js +5 -12
- package/utils/sort.js.map +1 -1
- package/utils/stream/async-iterable-readable.d.ts +3 -3
- package/utils/stream/async-iterable-readable.js +8 -13
- package/utils/stream/async-iterable-readable.js.map +1 -1
- package/utils/stream/async-writable-stream.d.ts +3 -3
- package/utils/stream/async-writable-stream.js +3 -7
- package/utils/stream/async-writable-stream.js.map +1 -1
- package/utils/stream/index.d.ts +5 -5
- package/utils/stream/index.js +5 -21
- package/utils/stream/index.js.map +1 -1
- package/utils/stream/stream-helper-types.d.ts +1 -1
- package/utils/stream/stream-helper-types.js +1 -2
- package/utils/stream/stream-reader.js +20 -51
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/stream/typed-readable.d.ts +2 -2
- package/utils/stream/typed-readable.js +2 -5
- package/utils/stream/typed-readable.js.map +1 -1
- package/utils/timer.js +1 -5
- package/utils/timer.js.map +1 -1
- package/utils/timing.d.ts +1 -9
- package/utils/timing.js +12 -23
- package/utils/timing.js.map +1 -1
- package/utils/type-guards.d.ts +1 -1
- package/utils/type-guards.js +209 -422
- package/utils/type-guards.js.map +1 -1
- package/utils/type-of.js +4 -9
- package/utils/type-of.js.map +1 -1
- package/utils/units.js +51 -55
- package/utils/units.js.map +1 -1
- package/utils/url-builder.d.ts +1 -1
- package/utils/url-builder.js +14 -31
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/utils/z-base32.js +6 -11
- package/utils/z-base32.js.map +1 -1
- package/database/mongo/model/document.js +0 -75
- package/database/mongo/model/document.js.map +0 -1
- package/database/mongo/model/index.d.ts +0 -1
- package/database/mongo/model/index.js +0 -18
- package/database/mongo/model/index.js.map +0 -1
- package/database/mongo/mongo-entity-repository.js.map +0 -1
- package/database/mongo/simple-entity-repository.d.ts +0 -7
- package/database/mongo/simple-entity-repository.js +0 -11
- package/database/mongo/simple-entity-repository.js.map +0 -1
- package/lock/mongo/mongo-lock-repository.js.map +0 -1
- package/rxjs/compat/first-value-from.d.ts +0 -2
- package/rxjs/compat/first-value-from.js +0 -9
- package/rxjs/compat/first-value-from.js.map +0 -1
- package/rxjs/compat/index.d.ts +0 -1
- package/rxjs/compat/index.js +0 -18
- package/rxjs/compat/index.js.map +0 -1
package/database/mongo/module.js
CHANGED
|
@@ -1,72 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.configureMongo = exports.mongoModuleConfig = void 0;
|
|
15
|
-
const container_1 = require("../../container");
|
|
16
|
-
const core_1 = require("../../core");
|
|
17
|
-
const logger_1 = require("../../logger");
|
|
18
|
-
const type_guards_1 = require("../../utils/type-guards");
|
|
19
|
-
const Mongo = require("mongodb");
|
|
20
|
-
const classes_1 = require("./classes");
|
|
21
|
-
exports.mongoModuleConfig = {
|
|
1
|
+
import { container } from "../../container/index.js";
|
|
2
|
+
import { connect, disposer } from "../../core.js";
|
|
3
|
+
import { Logger } from "../../logger/index.js";
|
|
4
|
+
import { assertDefined, isObject, isString } from "../../utils/type-guards.js";
|
|
5
|
+
import * as Mongo from 'mongodb';
|
|
6
|
+
import { Collection, Database, MongoClient } from './classes.js';
|
|
7
|
+
export const mongoModuleConfig = {
|
|
22
8
|
defaultConnection: { url: 'mongodb://localhost:27017/test-db' },
|
|
23
9
|
defaultDatabase: undefined,
|
|
24
10
|
logPrefix: 'MONGO'
|
|
25
11
|
};
|
|
26
|
-
function configureMongo(config) {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
const mongoLogger = container_1.container.resolve(logger_1.Logger, exports.mongoModuleConfig.logPrefix);
|
|
12
|
+
export function configureMongo(config) {
|
|
13
|
+
mongoModuleConfig.defaultDatabase = config.defaultDatabase ?? mongoModuleConfig.defaultDatabase;
|
|
14
|
+
mongoModuleConfig.defaultConnection = config.defaultConnection ?? mongoModuleConfig.defaultConnection;
|
|
15
|
+
mongoModuleConfig.logPrefix = config.logPrefix ?? mongoModuleConfig.logPrefix;
|
|
16
|
+
const mongoLogger = container.resolve(Logger, mongoModuleConfig.logPrefix);
|
|
32
17
|
Mongo.Logger.setCurrentLogger((message, parameters) => mongoLogger.verbose(JSON.stringify({ message, parameters }, undefined, 2)));
|
|
33
18
|
}
|
|
34
|
-
|
|
35
|
-
container_1.container.registerSingleton(classes_1.MongoClient, {
|
|
19
|
+
container.registerSingleton(MongoClient, {
|
|
36
20
|
useFactory: async (argument, context) => {
|
|
37
|
-
|
|
38
|
-
const { url
|
|
39
|
-
const logger = context.resolve(
|
|
40
|
-
const client = new
|
|
21
|
+
assertDefined(argument, 'mongo connection resolve argument missing');
|
|
22
|
+
const { url, ...options } = argument;
|
|
23
|
+
const logger = context.resolve(Logger, mongoModuleConfig.logPrefix);
|
|
24
|
+
const client = new MongoClient(url, options);
|
|
41
25
|
client
|
|
42
26
|
.on('fullsetup', () => logger.verbose('connection setup'))
|
|
43
27
|
.on('reconnect', () => logger.warn('reconnected'))
|
|
44
28
|
.on('timeout', () => logger.warn('connection timed out'))
|
|
45
29
|
.on('close', () => logger.verbose('connection closed'));
|
|
46
|
-
|
|
47
|
-
await
|
|
30
|
+
disposer.add(async () => client.close(), 10000);
|
|
31
|
+
await connect(`mongo at ${url}`, async () => client.connect(), logger);
|
|
48
32
|
return client;
|
|
49
33
|
}
|
|
50
34
|
}, {
|
|
51
|
-
defaultArgumentProvider: () =>
|
|
35
|
+
defaultArgumentProvider: () => mongoModuleConfig.defaultConnection,
|
|
52
36
|
argumentIdentityProvider: JSON.stringify
|
|
53
37
|
});
|
|
54
|
-
|
|
38
|
+
container.registerSingleton(Database, {
|
|
55
39
|
useFactory: async (argument, context) => {
|
|
56
|
-
|
|
57
|
-
const
|
|
58
|
-
const
|
|
59
|
-
const client = await context.resolveAsync(classes_1.MongoClient, connection);
|
|
40
|
+
const connection = isObject(argument) ? argument.connection : mongoModuleConfig.defaultConnection;
|
|
41
|
+
const name = (isString(argument) ? argument : isObject(argument) ? argument.database : undefined) ?? mongoModuleConfig.defaultDatabase;
|
|
42
|
+
const client = await context.resolveAsync(MongoClient, connection);
|
|
60
43
|
return client.db(name);
|
|
61
44
|
}
|
|
62
45
|
}, {
|
|
63
|
-
defaultArgumentProvider: () => ({ database:
|
|
46
|
+
defaultArgumentProvider: () => ({ database: mongoModuleConfig.defaultDatabase, connection: mongoModuleConfig.defaultConnection }),
|
|
64
47
|
argumentIdentityProvider: JSON.stringify
|
|
65
48
|
});
|
|
66
|
-
|
|
49
|
+
container.registerSingleton(Collection, {
|
|
67
50
|
useFactory: async (config, context) => {
|
|
68
|
-
|
|
69
|
-
const database = await context.resolveAsync(
|
|
51
|
+
assertDefined(config, 'mongo repository config resolve argument missing');
|
|
52
|
+
const database = await context.resolveAsync(Database, config);
|
|
70
53
|
const existingCollections = await database.collections();
|
|
71
54
|
for (const collection of existingCollections) {
|
|
72
55
|
if (collection.collectionName == config.collection) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../source/database/mongo/module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../../../source/database/mongo/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,iCAA6B;AACjD,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,sBAAkB;AAC9C,OAAO,EAAE,MAAM,EAAE,8BAA0B;AAC3C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,mCAA+B;AAC3E,OAAO,KAAK,KAAK,MAAM,SAAS,CAAC;AAGjC,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAUjE,MAAM,CAAC,MAAM,iBAAiB,GAAsB;IAClD,iBAAiB,EAAE,EAAE,GAAG,EAAE,mCAAmC,EAAE;IAC/D,eAAe,EAAE,SAAS;IAC1B,SAAS,EAAE,OAA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C,CAAC,EAAE,QAAQ,EAAE,iBAAiB,CAAC,eAAe,EAAE,UAAU,EAAE,iBAAiB,CAAC,iBAAiB,EAAE,CAAC;IACnJ,wBAAwB,EAAE,IAAI,CAAC,SAAS;CACzC,CAAC,CAAC;AAEH,SAAS,CAAC,iBAAiB,CAAC,UAAU,EAAE;IACtC,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE;QACpC,aAAa,CAAC,MAAM,EAAE,kDAAkD,CAAC,CAAC;QAE1E,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QAC9D,MAAM,mBAAmB,GAAG,MAAM,QAAQ,CAAC,WAAW,EAAE,CAAC;QAEzD,KAAK,MAAM,UAAU,IAAI,mBAAmB,EAAE;YAC5C,IAAI,UAAU,CAAC,cAAc,IAAI,MAAM,CAAC,UAAU,EAAE;gBAClD,OAAO,UAA0C,CAAC;aACnD;SACF;QAED,OAAO,QAAQ,CAAC,gBAAgB,CAAwB,MAAM,CAAC,UAAU,CAAiB,CAAC;IAC7F,CAAC;CACF,EAAE;IACD,wBAAwB,EAAE,IAAI,CAAC,SAAS;CACzC,CAAC,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Entity, MaybeNewEntity } from "
|
|
2
|
-
import type { Record } from "../../types";
|
|
1
|
+
import type { Entity, MaybeNewEntity } from "../index.js";
|
|
2
|
+
import type { Record } from "../../types.js";
|
|
3
3
|
import type { FindOneAndUpdateOptions } from 'mongodb';
|
|
4
|
-
import type { Collection } from './classes';
|
|
5
|
-
import { MongoBulk } from './mongo-bulk';
|
|
6
|
-
import type { Filter, Sort, TypedIndexDescription, UpdateFilter } from './types';
|
|
4
|
+
import type { Collection } from './classes.js';
|
|
5
|
+
import { MongoBulk } from './mongo-bulk.js';
|
|
6
|
+
import type { Filter, Sort, TypedIndexDescription, UpdateFilter } from './types.js';
|
|
7
7
|
export declare const enum ProjectionMode {
|
|
8
8
|
Include = 0,
|
|
9
9
|
Exclude = 1
|
|
@@ -1,32 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
10
|
-
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
11
|
-
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
12
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
13
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
14
|
-
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); }); }; }
|
|
15
|
-
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
16
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
17
|
-
function fulfill(value) { resume("next", value); }
|
|
18
|
-
function reject(value) { resume("throw", value); }
|
|
19
|
-
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.MongoBaseRepository = void 0;
|
|
23
|
-
const enumerable_1 = require("../../enumerable");
|
|
24
|
-
const error_1 = require("../../error");
|
|
25
|
-
const type_guards_1 = require("../../utils/type-guards");
|
|
26
|
-
const model_1 = require("./model");
|
|
27
|
-
const mongo_bulk_1 = require("./mongo-bulk");
|
|
28
|
-
const operations_1 = require("./operations");
|
|
29
|
-
class MongoBaseRepository {
|
|
1
|
+
import { Enumerable } from "../../enumerable/enumerable.js";
|
|
2
|
+
import { NotFoundError } from "../../error/not-found.error.js";
|
|
3
|
+
import { assertDefined, isNullOrUndefined } from "../../utils/type-guards.js";
|
|
4
|
+
import { mongoDocumentFromMaybeNewEntity, toEntity, toMongoDocument, toMongoProjection, toNewEntity, toProjectedEntity } from './model.js';
|
|
5
|
+
import { MongoBulk } from './mongo-bulk.js';
|
|
6
|
+
import { replaceOneOperation, updateOneOperation } from './operations.js';
|
|
7
|
+
export class MongoBaseRepository {
|
|
30
8
|
constructor(collection) {
|
|
31
9
|
this.collection = collection;
|
|
32
10
|
}
|
|
@@ -34,12 +12,12 @@ class MongoBaseRepository {
|
|
|
34
12
|
await this.collection.createIndexes(indexes);
|
|
35
13
|
}
|
|
36
14
|
bulk() {
|
|
37
|
-
return new
|
|
15
|
+
return new MongoBulk(this.collection);
|
|
38
16
|
}
|
|
39
17
|
async insert(entity) {
|
|
40
|
-
const document =
|
|
18
|
+
const document = mongoDocumentFromMaybeNewEntity(entity);
|
|
41
19
|
await this.collection.insertOne(document); // eslint-disable-line @typescript-eslint/no-unsafe-argument
|
|
42
|
-
return
|
|
20
|
+
return toEntity(document);
|
|
43
21
|
}
|
|
44
22
|
async insertMany(entities) {
|
|
45
23
|
if (entities.length == 0) {
|
|
@@ -51,20 +29,20 @@ class MongoBaseRepository {
|
|
|
51
29
|
return documents;
|
|
52
30
|
}
|
|
53
31
|
async insertIfNotExists(entity) {
|
|
54
|
-
const filter =
|
|
32
|
+
const filter = toNewEntity(entity);
|
|
55
33
|
return this.insertIfNotExistsByFilter(filter, entity);
|
|
56
34
|
}
|
|
57
35
|
async insertManyIfNotExists(entities) {
|
|
58
|
-
const items = entities.map((entity) => ({ filter:
|
|
36
|
+
const items = entities.map((entity) => ({ filter: toNewEntity(entity), entity }));
|
|
59
37
|
return this.insertManyIfNotExistsByFilter(items);
|
|
60
38
|
}
|
|
61
39
|
async insertIfNotExistsByFilter(filter, entity) {
|
|
62
|
-
const document =
|
|
40
|
+
const document = mongoDocumentFromMaybeNewEntity(entity);
|
|
63
41
|
const result = await this.collection.updateOne(filter, { $setOnInsert: document }, { upsert: true });
|
|
64
42
|
if (result.upsertedCount == 0) {
|
|
65
43
|
return undefined;
|
|
66
44
|
}
|
|
67
|
-
return
|
|
45
|
+
return toEntity(document);
|
|
68
46
|
}
|
|
69
47
|
/**
|
|
70
48
|
*
|
|
@@ -75,14 +53,14 @@ class MongoBaseRepository {
|
|
|
75
53
|
if (items.length == 0) {
|
|
76
54
|
return [];
|
|
77
55
|
}
|
|
78
|
-
const mapped =
|
|
79
|
-
.map(({ filter, entity }) => ({ filter, document:
|
|
80
|
-
.map(({ filter, document }) => ({ document, operation:
|
|
56
|
+
const mapped = Enumerable.from(items)
|
|
57
|
+
.map(({ filter, entity }) => ({ filter, document: mongoDocumentFromMaybeNewEntity(entity) }))
|
|
58
|
+
.map(({ filter, document }) => ({ document, operation: updateOneOperation(filter, { $setOnInsert: document }, { upsert: true }) }))
|
|
81
59
|
.toArray();
|
|
82
60
|
const operations = mapped.map((o) => o.operation);
|
|
83
61
|
const result = await this.collection.bulkWrite(operations, { ordered: false });
|
|
84
|
-
|
|
85
|
-
const entities = Object.keys(result.upsertedIds).map((index) =>
|
|
62
|
+
assertDefined(result.upsertedIds);
|
|
63
|
+
const entities = Object.keys(result.upsertedIds).map((index) => toEntity(mapped[index].document));
|
|
86
64
|
return entities;
|
|
87
65
|
}
|
|
88
66
|
async load(id, options) {
|
|
@@ -109,21 +87,21 @@ class MongoBaseRepository {
|
|
|
109
87
|
}
|
|
110
88
|
async tryLoadByFilter(filter, options) {
|
|
111
89
|
const document = await this.collection.findOne(filter, options);
|
|
112
|
-
if (
|
|
90
|
+
if (isNullOrUndefined(document)) {
|
|
113
91
|
return undefined;
|
|
114
92
|
}
|
|
115
|
-
return
|
|
93
|
+
return toEntity(document);
|
|
116
94
|
}
|
|
117
95
|
async loadProjectedByFilter(filter, mode, projection, options) {
|
|
118
96
|
const id = await this.tryLoadProjectedByFilter(filter, mode, projection, options);
|
|
119
97
|
return throwIfUndefinedElsePass(id, this.collection.collectionName);
|
|
120
98
|
}
|
|
121
99
|
async tryLoadProjectedByFilter(filter, mode, projection, options) {
|
|
122
|
-
const document = await this.collection.findOne(filter,
|
|
123
|
-
if (
|
|
100
|
+
const document = await this.collection.findOne(filter, { ...options, projection: toMongoProjection(mode, projection) });
|
|
101
|
+
if (isNullOrUndefined(document)) {
|
|
124
102
|
return undefined;
|
|
125
103
|
}
|
|
126
|
-
return
|
|
104
|
+
return toProjectedEntity(document);
|
|
127
105
|
}
|
|
128
106
|
async loadByFilterAndDelete(filter, options) {
|
|
129
107
|
const entity = await this.tryLoadByFilterAndDelete(filter, options);
|
|
@@ -137,7 +115,7 @@ class MongoBaseRepository {
|
|
|
137
115
|
if (result.value == undefined) {
|
|
138
116
|
return undefined;
|
|
139
117
|
}
|
|
140
|
-
return
|
|
118
|
+
return toEntity(result.value);
|
|
141
119
|
}
|
|
142
120
|
async loadByFilterAndUpdate(filter, update, options) {
|
|
143
121
|
const entity = await this.tryLoadByFilterAndUpdate(filter, update, options);
|
|
@@ -148,7 +126,7 @@ class MongoBaseRepository {
|
|
|
148
126
|
if (document == undefined) {
|
|
149
127
|
return undefined;
|
|
150
128
|
}
|
|
151
|
-
return
|
|
129
|
+
return toEntity(document);
|
|
152
130
|
}
|
|
153
131
|
async loadManyById(ids, options) {
|
|
154
132
|
const filter = { _id: { $in: ids } };
|
|
@@ -156,64 +134,38 @@ class MongoBaseRepository {
|
|
|
156
134
|
}
|
|
157
135
|
async loadManyByFilter(filter, options) {
|
|
158
136
|
const documents = await this.collection.find(filter, options).toArray();
|
|
159
|
-
return documents.map(
|
|
137
|
+
return documents.map(toEntity);
|
|
160
138
|
}
|
|
161
139
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
162
140
|
loadManyByIdWithCursor(ids, options) {
|
|
163
141
|
const filter = { _id: { $in: ids } };
|
|
164
142
|
return this.loadManyByFilterWithCursor(filter, options);
|
|
165
143
|
}
|
|
166
|
-
loadManyByFilterWithCursor(filter, options) {
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
for (var cursor_1 = __asyncValues(cursor), cursor_1_1; cursor_1_1 = yield __await(cursor_1.next()), !cursor_1_1.done;) {
|
|
172
|
-
const document = cursor_1_1.value;
|
|
173
|
-
if ((0, type_guards_1.isNullOrUndefined)(document)) {
|
|
174
|
-
continue;
|
|
175
|
-
}
|
|
176
|
-
yield yield __await((0, model_1.toEntity)(document));
|
|
177
|
-
}
|
|
144
|
+
async *loadManyByFilterWithCursor(filter, options) {
|
|
145
|
+
const cursor = this.collection.find(filter, options);
|
|
146
|
+
for await (const document of cursor) {
|
|
147
|
+
if (isNullOrUndefined(document)) {
|
|
148
|
+
continue;
|
|
178
149
|
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
try {
|
|
182
|
-
if (cursor_1_1 && !cursor_1_1.done && (_a = cursor_1.return)) yield __await(_a.call(cursor_1));
|
|
183
|
-
}
|
|
184
|
-
finally { if (e_1) throw e_1.error; }
|
|
185
|
-
}
|
|
186
|
-
});
|
|
150
|
+
yield toEntity(document);
|
|
151
|
+
}
|
|
187
152
|
}
|
|
188
153
|
async loadManyProjectedById(ids, mode, projection, options) {
|
|
189
154
|
const filter = { _id: { $in: ids } };
|
|
190
155
|
return this.loadManyProjectedByFilter(filter, mode, projection, options);
|
|
191
156
|
}
|
|
192
157
|
async loadManyProjectedByFilter(filter, mode, projection, options) {
|
|
193
|
-
const documents = await this.collection.find(filter,
|
|
194
|
-
return documents.map(
|
|
195
|
-
}
|
|
196
|
-
loadManyProjectedByFilterWithCursor(filter, mode, projection, options) {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
for (var cursor_2 = __asyncValues(cursor), cursor_2_1; cursor_2_1 = yield __await(cursor_2.next()), !cursor_2_1.done;) {
|
|
202
|
-
const document = cursor_2_1.value;
|
|
203
|
-
if ((0, type_guards_1.isNullOrUndefined)(document)) {
|
|
204
|
-
continue;
|
|
205
|
-
}
|
|
206
|
-
yield yield __await((0, model_1.toProjectedEntity)(document));
|
|
207
|
-
}
|
|
158
|
+
const documents = await this.collection.find(filter, { ...options, projection: toMongoProjection(mode, projection) }).toArray();
|
|
159
|
+
return documents.map(toProjectedEntity);
|
|
160
|
+
}
|
|
161
|
+
async *loadManyProjectedByFilterWithCursor(filter, mode, projection, options) {
|
|
162
|
+
const cursor = this.collection.find(filter, { ...options, projection: toMongoProjection(mode, projection) });
|
|
163
|
+
for await (const document of cursor) {
|
|
164
|
+
if (isNullOrUndefined(document)) {
|
|
165
|
+
continue;
|
|
208
166
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
try {
|
|
212
|
-
if (cursor_2_1 && !cursor_2_1.done && (_a = cursor_2.return)) yield __await(_a.call(cursor_2));
|
|
213
|
-
}
|
|
214
|
-
finally { if (e_2) throw e_2.error; }
|
|
215
|
-
}
|
|
216
|
-
});
|
|
167
|
+
yield toProjectedEntity(document);
|
|
168
|
+
}
|
|
217
169
|
}
|
|
218
170
|
async deleteById(id) {
|
|
219
171
|
return this.deleteByFilter({ _id: id });
|
|
@@ -237,7 +189,7 @@ class MongoBaseRepository {
|
|
|
237
189
|
return this.replaceByFilter({ _id: entity.id }, entity, options);
|
|
238
190
|
}
|
|
239
191
|
async replaceByFilter(filter, entity, options = {}) {
|
|
240
|
-
const document =
|
|
192
|
+
const document = toMongoDocument(entity);
|
|
241
193
|
const result = await this.collection.replaceOne(filter, document, options);
|
|
242
194
|
return (result.matchedCount + result.upsertedCount) > 0;
|
|
243
195
|
}
|
|
@@ -245,11 +197,11 @@ class MongoBaseRepository {
|
|
|
245
197
|
if (entities.length == 0) {
|
|
246
198
|
return 0;
|
|
247
199
|
}
|
|
248
|
-
const documents = entities.map(
|
|
249
|
-
const operations = documents.map((document) =>
|
|
200
|
+
const documents = entities.map(toMongoDocument);
|
|
201
|
+
const operations = documents.map((document) => replaceOneOperation({ _id: document._id }, document, options));
|
|
250
202
|
const result = await this.collection.bulkWrite(operations);
|
|
251
203
|
if (result.matchedCount + result.upsertedCount != entities.length) {
|
|
252
|
-
throw new
|
|
204
|
+
throw new NotFoundError(`${entities.length - (result.matchedCount + result.upsertedCount)} entities in ${this.collection.collectionName} not found`);
|
|
253
205
|
}
|
|
254
206
|
return (result.matchedCount + result.upsertedCount);
|
|
255
207
|
}
|
|
@@ -296,10 +248,9 @@ class MongoBaseRepository {
|
|
|
296
248
|
await this.collection.drop();
|
|
297
249
|
}
|
|
298
250
|
}
|
|
299
|
-
exports.MongoBaseRepository = MongoBaseRepository;
|
|
300
251
|
function throwIfUndefinedElsePass(value, collectionName) {
|
|
301
252
|
if (value == undefined) {
|
|
302
|
-
throw new
|
|
253
|
+
throw new NotFoundError(`entity not found in ${collectionName}`);
|
|
303
254
|
}
|
|
304
255
|
return value;
|
|
305
256
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-base.repository.js","sourceRoot":"","sources":["../../../source/database/mongo/mongo-base.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAEA,iDAA0C;AAC1C,uCAAwC;AAExC,yDAAuE;AAIvE,mCAAwI;AACxI,6CAAyC;AACzC,6CAAuE;AAsDvE,MAAa,mBAAmB;IAG9B,YAAY,UAAyB;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,OAAmC;QACrD,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC/C,CAAC;IAED,IAAI;QACF,OAAO,IAAI,sBAAS,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxC,CAAC;IAED,KAAK,CAAC,MAAM,CAAc,MAAyB;QACjD,MAAM,QAAQ,GAAG,IAAA,uCAA+B,EAAC,MAAM,CAAC,CAAC;QACzD,MAAM,IAAI,CAAC,UAAU,CAAC,SAAS,CAAC,QAAe,CAAC,CAAC,CAA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AC,aAAa,CAAkB,MAAiB,EAAE,EAAE,KAAK,EAAE,IAAI,KAAmB,EAAE;QACxF,OAAO,IAAI,CAAC,UAAU,CAAC,cAAc,CAAC,MAAmB,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED,KAAK,CAAC,sBAAsB;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,sBAAsB,EAAE,CAAC;IAClD,CAAC;IAED,KAAK,CAAC,IAAI;QACR,MAAM,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IAC/B,CAAC;CACF;AAED,SAAS,wBAAwB,CAAI,KAAoB,EAAE,cAAsB;IAC/E,IAAI,KAAK,IAAI,SAAS,EAAE;QACtB,MAAM,IAAI,aAAa,CAAC,uBAAuB,cAAc,EAAE,CAAC,CAAC;KAClE;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Entity, MaybeNewEntity } from "
|
|
1
|
+
import type { Entity, MaybeNewEntity } from "../index.js";
|
|
2
2
|
import type { BulkWriteResult } from 'mongodb';
|
|
3
|
-
import type { Collection } from './classes';
|
|
4
|
-
import type { ReplaceOptions, UpdateOptions } from './mongo-base.repository';
|
|
5
|
-
import type { Filter, UpdateFilter } from './types';
|
|
3
|
+
import type { Collection } from './classes.js';
|
|
4
|
+
import type { ReplaceOptions, UpdateOptions } from './mongo-base.repository.js';
|
|
5
|
+
import type { Filter, UpdateFilter } from './types.js';
|
|
6
6
|
export declare type BulkResult = {
|
|
7
7
|
insertedCount: number;
|
|
8
8
|
matchedCount: number;
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const model_1 = require("./model");
|
|
5
|
-
const operations_1 = require("./operations");
|
|
6
|
-
class MongoBulk {
|
|
1
|
+
import { mongoDocumentFromMaybeNewEntity, toEntity, toMongoDocument } from './model.js';
|
|
2
|
+
import { deleteManyOperation, deleteOneOperation, insertOneOperation, replaceOneOperation, updateManyOperation, updateOneOperation } from './operations.js';
|
|
3
|
+
export class MongoBulk {
|
|
7
4
|
constructor(collection) {
|
|
8
5
|
this.collection = collection;
|
|
9
6
|
this.operations = [];
|
|
@@ -32,24 +29,24 @@ class MongoBulk {
|
|
|
32
29
|
};
|
|
33
30
|
}
|
|
34
31
|
insert(entity) {
|
|
35
|
-
const document =
|
|
36
|
-
const operation =
|
|
32
|
+
const document = mongoDocumentFromMaybeNewEntity(entity);
|
|
33
|
+
const operation = insertOneOperation(document);
|
|
37
34
|
this.operations.push(operation);
|
|
38
|
-
return
|
|
35
|
+
return toEntity(document);
|
|
39
36
|
}
|
|
40
37
|
insertMany(entities) {
|
|
41
|
-
const documents = entities.map(
|
|
42
|
-
const operations = documents.map(
|
|
38
|
+
const documents = entities.map(mongoDocumentFromMaybeNewEntity);
|
|
39
|
+
const operations = documents.map(insertOneOperation);
|
|
43
40
|
this.operations.push(...operations);
|
|
44
|
-
return documents.map(
|
|
41
|
+
return documents.map(toEntity);
|
|
45
42
|
}
|
|
46
43
|
update(filter, update, options) {
|
|
47
|
-
const operation =
|
|
44
|
+
const operation = updateOneOperation(filter, update, options);
|
|
48
45
|
this.operations.push(operation);
|
|
49
46
|
return this;
|
|
50
47
|
}
|
|
51
48
|
updateMany(filter, update, options) {
|
|
52
|
-
const operation =
|
|
49
|
+
const operation = updateManyOperation(filter, update, options);
|
|
53
50
|
this.operations.push(operation);
|
|
54
51
|
return this;
|
|
55
52
|
}
|
|
@@ -57,14 +54,14 @@ class MongoBulk {
|
|
|
57
54
|
return this.replaceByFilter({ _id: entity.id }, entity, options);
|
|
58
55
|
}
|
|
59
56
|
replaceMany(entities, options) {
|
|
60
|
-
const documents = entities.map(
|
|
61
|
-
const operations = documents.map((document) =>
|
|
57
|
+
const documents = entities.map(toMongoDocument);
|
|
58
|
+
const operations = documents.map((document) => replaceOneOperation({ _id: document._id }, document, options));
|
|
62
59
|
this.operations.push(...operations);
|
|
63
60
|
return this;
|
|
64
61
|
}
|
|
65
62
|
replaceByFilter(filter, entity, options) {
|
|
66
|
-
const document =
|
|
67
|
-
const operation =
|
|
63
|
+
const document = toMongoDocument(entity);
|
|
64
|
+
const operation = replaceOneOperation(filter, document, options);
|
|
68
65
|
this.operations.push(operation);
|
|
69
66
|
return this;
|
|
70
67
|
}
|
|
@@ -78,15 +75,14 @@ class MongoBulk {
|
|
|
78
75
|
return this.deleteManyByFilter(filter);
|
|
79
76
|
}
|
|
80
77
|
deleteByFilter(filter) {
|
|
81
|
-
const operation =
|
|
78
|
+
const operation = deleteOneOperation(filter);
|
|
82
79
|
this.operations.push(operation);
|
|
83
80
|
return this;
|
|
84
81
|
}
|
|
85
82
|
deleteManyByFilter(filter) {
|
|
86
|
-
const operation =
|
|
83
|
+
const operation = deleteManyOperation(filter);
|
|
87
84
|
this.operations.push(operation);
|
|
88
85
|
return this;
|
|
89
86
|
}
|
|
90
87
|
}
|
|
91
|
-
exports.MongoBulk = MongoBulk;
|
|
92
88
|
//# sourceMappingURL=mongo-bulk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-bulk.js","sourceRoot":"","sources":["../../../source/database/mongo/mongo-bulk.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mongo-bulk.js","sourceRoot":"","sources":["../../../source/database/mongo/mongo-bulk.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,+BAA+B,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAExF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAY5J,MAAM,OAAO,SAAS;IAMpB,YAAY,UAAyB;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAE7B,IAAI,CAAC,UAAU,GAAG,EAAE,CAAC;QACrB,IAAI,CAAC,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jE,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAc,MAAS;QAC3B,MAAM,MAAM,GAAW,EAAE,GAAG,EAAE,MAAM,CAAC,EAAE,EAAE,CAAC;QAC1C,OAAO,IAAI,CAAC,cAAc,CAAC,MAAmB,CAAC,CAAC;IAClD,CAAC;IAED,UAAU,CAAc,QAAa;QACnC,MAAM,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;QAChD,MAAM,MAAM,GAAW,EAAE,GAAG,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,CAAC;QAC7C,OAAO,IAAI,CAAC,kBAAkB,CAAC,MAAmB,CAAC,CAAC;IACtD,CAAC;IAED,cAAc,CAAc,MAAiB;QAC3C,MAAM,SAAS,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC;QAC7C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhC,OAAO,IAAI,CAAC;IACd,CAAC;IAED,kBAAkB,CAAc,MAAiB;QAC/C,MAAM,SAAS,GAAG,mBAAmB,CAAC,MAAM,CAAC,CAAC;QAC9C,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAEhC,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import type { AfterResolve } from "../../container";
|
|
2
|
-
import { afterResolve } from "../../container";
|
|
3
|
-
import type { Entity, EntityPatch, MaybeNewEntity, Query, QueryOptions, UpdateOptions } from "
|
|
4
|
-
import { EntityRepository } from "
|
|
5
|
-
import type { Logger } from "../../logger";
|
|
6
|
-
import type { Collection } from './classes';
|
|
7
|
-
import { MongoBaseRepository } from './mongo-base.repository';
|
|
8
|
-
import type { TypedIndexDescription } from './types';
|
|
1
|
+
import type { AfterResolve } from "../../container/index.js";
|
|
2
|
+
import { afterResolve } from "../../container/index.js";
|
|
3
|
+
import type { Entity, EntityPatch, MaybeNewEntity, Query, QueryOptions, UpdateOptions } from "../index.js";
|
|
4
|
+
import { EntityRepository } from "../index.js";
|
|
5
|
+
import type { Logger } from "../../logger/index.js";
|
|
6
|
+
import type { Collection } from './classes.js';
|
|
7
|
+
import { MongoBaseRepository } from './mongo-base.repository.js';
|
|
8
|
+
import type { TypedIndexDescription } from './types.js';
|
|
9
9
|
export declare type MongoEntityRepositoryOptions<T extends Entity<any>> = {
|
|
10
10
|
logger: Logger;
|
|
11
11
|
indexes?: TypedIndexDescription<T>[];
|