@tstdl/base 0.82.41 → 0.82.43
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 +4 -4
- package/api/client/client.js +49 -25
- package/api/client/client.js.map +1 -1
- package/api/client/index.d.ts +1 -1
- package/api/client/index.js +1 -1
- package/api/client/index.js.map +1 -1
- package/api/default-error-handlers.d.ts +1 -1
- package/api/default-error-handlers.js +2 -2
- package/api/default-error-handlers.js.map +1 -1
- package/api/index.d.ts +3 -3
- package/api/index.js +3 -3
- package/api/index.js.map +1 -1
- package/api/response.d.ts +2 -2
- package/api/response.js +21 -21
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +3 -3
- package/api/server/api-controller.js +6 -6
- package/api/server/api-controller.js.map +1 -1
- package/api/server/api-request-token.provider.d.ts +1 -1
- package/api/server/api-request-token.provider.js +2 -2
- package/api/server/api-request-token.provider.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +10 -10
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +11 -11
- package/api/server/gateway.js +57 -55
- package/api/server/gateway.js.map +1 -1
- package/api/server/index.d.ts +5 -5
- package/api/server/index.js +5 -5
- 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 +6 -6
- 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 +2 -2
- package/api/server/middlewares/catch-error.middleware.js.map +1 -1
- package/api/server/middlewares/cors.middleware.d.ts +2 -2
- package/api/server/middlewares/cors.middleware.js +17 -17
- 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 -4
- 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 +4 -4
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +3 -3
- package/api/server/module.js +10 -10
- package/api/server/module.js.map +1 -1
- package/api/server/tokens.d.ts +2 -2
- package/api/server/tokens.js +2 -2
- package/api/server/tokens.js.map +1 -1
- package/api/types.d.ts +8 -6
- package/api/types.js +4 -4
- package/api/types.js.map +1 -1
- package/api/utils.d.ts +1 -1
- package/api/utils.js +10 -10
- package/api/utils.js.map +1 -1
- package/application/application.d.ts +5 -5
- package/application/application.js +26 -26
- package/application/application.js.map +1 -1
- package/application/index.d.ts +1 -1
- package/application/index.js +1 -1
- package/application/index.js.map +1 -1
- package/authentication/authentication.api.d.ts +32 -23
- package/authentication/authentication.api.js +21 -18
- package/authentication/authentication.api.js.map +1 -1
- package/authentication/client/api.client.d.ts +4 -4
- package/authentication/client/api.client.js +12 -12
- package/authentication/client/api.client.js.map +1 -1
- package/authentication/client/authentication.service.d.ts +11 -11
- package/authentication/client/authentication.service.js +51 -48
- package/authentication/client/authentication.service.js.map +1 -1
- package/authentication/client/http-client.middleware.d.ts +2 -2
- package/authentication/client/http-client.middleware.js +9 -9
- package/authentication/client/http-client.middleware.js.map +1 -1
- package/authentication/client/index.d.ts +5 -5
- package/authentication/client/index.js +5 -5
- package/authentication/client/index.js.map +1 -1
- package/authentication/client/module.d.ts +3 -3
- package/authentication/client/module.js +11 -11
- package/authentication/client/module.js.map +1 -1
- package/authentication/client/tokens.d.ts +4 -4
- package/authentication/client/tokens.js +5 -5
- package/authentication/client/tokens.js.map +1 -1
- package/authentication/index.d.ts +2 -2
- package/authentication/index.js +2 -2
- package/authentication/index.js.map +1 -1
- package/authentication/models/authentication-credentials.model.js +10 -10
- package/authentication/models/authentication-credentials.model.js.map +1 -1
- package/authentication/models/authentication-session.model.js +14 -14
- package/authentication/models/authentication-session.model.js.map +1 -1
- package/authentication/models/index.d.ts +4 -4
- package/authentication/models/index.js +4 -4
- package/authentication/models/index.js.map +1 -1
- package/authentication/models/token-payload-base.model.js +7 -7
- package/authentication/models/token-payload-base.model.js.map +1 -1
- package/authentication/models/token.model.d.ts +3 -3
- package/authentication/server/authentication-api-request-token.provider.d.ts +3 -3
- package/authentication/server/authentication-api-request-token.provider.js +8 -8
- package/authentication/server/authentication-api-request-token.provider.js.map +1 -1
- package/authentication/server/authentication-credentials.repository.d.ts +1 -1
- package/authentication/server/authentication-credentials.repository.js +2 -2
- package/authentication/server/authentication-credentials.repository.js.map +1 -1
- package/authentication/server/authentication-session.repository.d.ts +2 -2
- package/authentication/server/authentication-subject.resolver.js +2 -2
- package/authentication/server/authentication-subject.resolver.js.map +1 -1
- package/authentication/server/authentication-token-payload.provider.d.ts +1 -1
- package/authentication/server/authentication-token-payload.provider.js +2 -2
- package/authentication/server/authentication-token-payload.provider.js.map +1 -1
- package/authentication/server/authentication.api-controller.d.ts +4 -4
- package/authentication/server/authentication.api-controller.js +31 -17
- package/authentication/server/authentication.api-controller.js.map +1 -1
- package/authentication/server/authentication.service.d.ts +8 -8
- package/authentication/server/authentication.service.js +53 -53
- package/authentication/server/authentication.service.js.map +1 -1
- package/authentication/server/helper.d.ts +4 -4
- package/authentication/server/helper.js +24 -24
- package/authentication/server/helper.js.map +1 -1
- package/authentication/server/index.d.ts +9 -9
- package/authentication/server/index.js +9 -9
- package/authentication/server/index.js.map +1 -1
- package/authentication/server/module.d.ts +6 -6
- package/authentication/server/module.js +16 -16
- package/authentication/server/module.js.map +1 -1
- package/authentication/server/mongo/index.d.ts +2 -2
- package/authentication/server/mongo/index.js +2 -2
- package/authentication/server/mongo/index.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-credentials.repository.d.ts +8 -8
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js +16 -16
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-session.repository.d.ts +8 -8
- package/authentication/server/mongo/mongo-authentication-session.repository.js +12 -12
- package/authentication/server/mongo/mongo-authentication-session.repository.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +8 -8
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +4 -4
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/awaitable/index.d.ts +3 -3
- package/collections/awaitable/index.js +3 -3
- package/collections/awaitable/index.js.map +1 -1
- package/collections/index.d.ts +6 -6
- package/collections/index.js +6 -6
- package/collections/index.js.map +1 -1
- package/collections/keyed-set.js +2 -2
- package/collections/keyed-set.js.map +1 -1
- package/collections/list.d.ts +1 -1
- package/collections/observable/index.d.ts +8 -8
- package/collections/observable/index.js +8 -8
- package/collections/observable/index.js.map +1 -1
- package/collections/observable/observable-array.d.ts +2 -2
- package/collections/observable/observable-array.js +2 -2
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.d.ts +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-list-base.d.ts +3 -3
- package/collections/observable/observable-list-base.js +2 -2
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.d.ts +3 -3
- package/collections/observable/observable-set.d.ts +2 -2
- package/collections/observable/observable-set.js +2 -2
- 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 -21
- 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 +16 -16
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-list.d.ts +1 -1
- package/collections/sorted-map.d.ts +2 -2
- package/collections/sorted-map.js +7 -9
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +5 -5
- package/container/container.js +110 -104
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +6 -6
- package/container/decorators.js +20 -20
- package/container/decorators.js.map +1 -1
- package/container/index.d.ts +10 -10
- package/container/index.js +10 -10
- package/container/index.js.map +1 -1
- package/container/provider.d.ts +7 -7
- package/container/provider.js +5 -5
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +2 -2
- package/container/resolve-chain.js +7 -7
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +2 -2
- package/container/resolve.error.js +4 -4
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +1 -1
- package/container/token.js +3 -3
- package/container/token.js.map +1 -1
- package/container/type-info.d.ts +2 -2
- package/container/types.d.ts +3 -3
- package/container/utils.d.ts +1 -1
- package/container/utils.js +4 -4
- package/container/utils.js.map +1 -1
- package/cookie/cookie.js +13 -13
- package/cookie/cookie.js.map +1 -1
- package/cookie/index.d.ts +1 -1
- package/cookie/index.js +1 -1
- package/cookie/index.js.map +1 -1
- package/core.d.ts +6 -6
- package/core.js +19 -18
- package/core.js.map +1 -1
- package/data-structures/array-list.d.ts +2 -2
- package/data-structures/array-list.js +2 -2
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +2 -2
- package/data-structures/circular-buffer.js +8 -8
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.js +5 -5
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/index.d.ts +12 -12
- package/data-structures/index.js +12 -12
- package/data-structures/index.js.map +1 -1
- package/data-structures/iterable-weak-map.d.ts +1 -1
- package/data-structures/iterable-weak-map.js +13 -13
- package/data-structures/iterable-weak-map.js.map +1 -1
- package/data-structures/linked-list.d.ts +4 -4
- package/data-structures/linked-list.js +24 -24
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +2 -2
- package/data-structures/list.js +10 -10
- package/data-structures/list.js.map +1 -1
- package/data-structures/map.d.ts +1 -1
- package/data-structures/map.js +2 -2
- package/data-structures/map.js.map +1 -1
- package/data-structures/multi-key-map.d.ts +1 -1
- package/data-structures/multi-key-map.js +12 -12
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/set.d.ts +1 -1
- package/data-structures/set.js +2 -2
- package/data-structures/set.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +5 -5
- package/data-structures/sorted-array-list.js +19 -19
- 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 +11 -11
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -2
- package/database/id.js +3 -3
- package/database/id.js.map +1 -1
- package/database/index.d.ts +6 -6
- package/database/index.js +6 -6
- package/database/index.js.map +1 -1
- package/database/module.js +2 -2
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +5 -5
- package/database/mongo/classes.js +7 -7
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/index.d.ts +10 -10
- package/database/mongo/index.js +10 -10
- package/database/mongo/index.js.map +1 -1
- package/database/mongo/model/document.d.ts +3 -3
- package/database/mongo/model/document.js +4 -4
- package/database/mongo/model/document.js.map +1 -1
- package/database/mongo/model/index.d.ts +1 -1
- package/database/mongo/model/index.js +1 -1
- package/database/mongo/model/index.js.map +1 -1
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/module.js +18 -18
- 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 +38 -41
- 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 +16 -16
- package/database/mongo/mongo-bulk.js.map +1 -1
- package/database/mongo/mongo-entity-repository.d.ts +8 -8
- package/database/mongo/mongo-entity-repository.js +23 -23
- package/database/mongo/mongo-entity-repository.js.map +1 -1
- package/database/mongo/operations.d.ts +4 -4
- package/database/mongo/query-converter.d.ts +4 -4
- package/database/mongo/query-converter.js +13 -13
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity-repository.d.ts +4 -4
- package/database/mongo/simple-entity-repository.js +3 -3
- package/database/mongo/simple-entity-repository.js.map +1 -1
- package/database/mongo/types.d.ts +3 -3
- package/database/query.d.ts +2 -2
- package/database/utils.d.ts +1 -1
- package/disposable/async-disposer.d.ts +4 -4
- package/disposable/async-disposer.js +20 -20
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +3 -3
- package/disposable/disposable.js.map +1 -1
- package/disposable/index.d.ts +3 -3
- package/disposable/index.js +3 -3
- package/disposable/index.js.map +1 -1
- package/disposable/using.d.ts +1 -1
- package/disposable/using.js +3 -3
- package/disposable/using.js.map +1 -1
- package/distributed-loop/distributed-loop.d.ts +5 -5
- package/distributed-loop/distributed-loop.js +15 -15
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/index.d.ts +3 -3
- package/distributed-loop/index.js +3 -3
- package/distributed-loop/index.js.map +1 -1
- package/distributed-loop/provider.d.ts +2 -2
- package/distributed-loop/provider.js +6 -6
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +7 -7
- package/enumerable/async-enumerable.js +67 -67
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable.d.ts +6 -6
- package/enumerable/enumerable.js +45 -45
- package/enumerable/enumerable.js.map +1 -1
- package/enumerable/index.d.ts +2 -2
- package/enumerable/index.js +2 -2
- package/enumerable/index.js.map +1 -1
- package/error/api.error.d.ts +2 -2
- package/error/api.error.js +2 -2
- package/error/api.error.js.map +1 -1
- package/error/assertion.error.d.ts +1 -1
- package/error/assertion.error.js +2 -2
- package/error/assertion.error.js.map +1 -1
- package/error/bad-request.error.d.ts +1 -1
- package/error/bad-request.error.js +2 -2
- package/error/bad-request.error.js.map +1 -1
- package/error/details.error.d.ts +1 -1
- package/error/details.error.js +2 -2
- package/error/details.error.js.map +1 -1
- package/error/forbidden.error.d.ts +1 -1
- package/error/forbidden.error.js +2 -2
- package/error/forbidden.error.js.map +1 -1
- package/error/index.d.ts +15 -15
- package/error/index.js +15 -15
- package/error/index.js.map +1 -1
- package/error/invalid-token.error.d.ts +1 -1
- package/error/invalid-token.error.js +2 -2
- 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 -2
- 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 -2
- package/error/method-not-allowed.error.js.map +1 -1
- package/error/multi.error.d.ts +1 -1
- package/error/multi.error.js +2 -2
- package/error/multi.error.js.map +1 -1
- package/error/not-found.error.d.ts +1 -1
- package/error/not-found.error.js +2 -2
- 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 -2
- package/error/not-implemented.error.js.map +1 -1
- package/error/not-supported.error.d.ts +2 -2
- package/error/not-supported.error.js +4 -4
- package/error/not-supported.error.js.map +1 -1
- package/error/unauthorized.error.d.ts +1 -1
- package/error/unauthorized.error.js +2 -2
- 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 -2
- package/error/unsupported-media-type.error.js.map +1 -1
- package/examples/api/authentication.js +31 -32
- package/examples/api/authentication.js.map +1 -1
- package/examples/api/basic-overview.js +32 -31
- package/examples/api/basic-overview.js.map +1 -1
- package/examples/api/custom-authentication.js +38 -38
- package/examples/api/custom-authentication.js.map +1 -1
- package/examples/api/streaming.js +38 -41
- package/examples/api/streaming.js.map +1 -1
- package/examples/http/client.js +5 -5
- package/examples/http/client.js.map +1 -1
- package/examples/mail/basic.js +25 -25
- package/examples/mail/basic.js.map +1 -1
- package/examples/mail/templates/hello-name.d.ts +1 -1
- package/examples/mail/templates/hello-name.js +7 -7
- package/examples/mail/templates/hello-name.js.map +1 -1
- package/examples/pdf/basic.js +19 -19
- package/examples/pdf/basic.js.map +1 -1
- package/examples/pdf/templates/hello-name.d.ts +1 -1
- package/examples/pdf/templates/hello-name.js +10 -10
- package/examples/pdf/templates/hello-name.js.map +1 -1
- package/examples/reflection/basic.d.ts +1 -1
- package/examples/reflection/basic.js +14 -14
- package/examples/reflection/basic.js.map +1 -1
- package/examples/template/basic.js +19 -19
- package/examples/template/basic.js.map +1 -1
- package/examples/template/templates/hello-jsx.d.ts +1 -1
- package/examples/template/templates/hello-jsx.js +3 -3
- package/examples/template/templates/hello-jsx.js.map +1 -1
- package/examples/template/templates/hello-name.d.ts +1 -1
- package/examples/template/templates/hello-name.js +6 -6
- package/examples/template/templates/hello-name.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +3 -3
- package/http/client/adapters/undici-http-client.adapter.js +27 -26
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/http-client-options.d.ts +1 -1
- package/http/client/http-client-request.d.ts +13 -13
- package/http/client/http-client-request.js +23 -23
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +6 -6
- package/http/client/http-client-response.js +4 -4
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.adapter.d.ts +2 -2
- package/http/client/http-client.d.ts +11 -11
- package/http/client/http-client.js +62 -62
- package/http/client/http-client.js.map +1 -1
- package/http/client/index.d.ts +6 -6
- package/http/client/index.js +6 -6
- package/http/client/index.js.map +1 -1
- package/http/client/module.d.ts +3 -3
- package/http/client/module.js +7 -7
- package/http/client/module.js.map +1 -1
- package/http/cookie-parser.d.ts +1 -1
- package/http/cookie-parser.js +6 -6
- package/http/cookie-parser.js.map +1 -1
- package/http/http-body.d.ts +4 -4
- package/http/http-body.js +11 -11
- package/http/http-body.js.map +1 -1
- package/http/http-form.d.ts +3 -3
- package/http/http-form.js +2 -2
- package/http/http-form.js.map +1 -1
- package/http/http-headers.d.ts +3 -3
- package/http/http-headers.js +15 -15
- package/http/http-headers.js.map +1 -1
- package/http/http-query.d.ts +3 -3
- package/http/http-query.js +2 -2
- package/http/http-query.js.map +1 -1
- package/http/http-url-parameters.d.ts +3 -3
- package/http/http-url-parameters.js +2 -2
- package/http/http-url-parameters.js.map +1 -1
- package/http/http-value-map.d.ts +2 -2
- package/http/http-value-map.js +19 -19
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +4 -4
- package/http/http.error.js +11 -11
- package/http/http.error.js.map +1 -1
- package/http/index.d.ts +11 -11
- package/http/index.js +11 -11
- package/http/index.js.map +1 -1
- package/http/server/http-server-request.d.ts +7 -7
- package/http/server/http-server-request.js +4 -4
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +7 -7
- package/http/server/http-server-response.js +8 -8
- package/http/server/http-server-response.js.map +1 -1
- package/http/server/http-server.d.ts +3 -3
- package/http/server/http-server.js +1 -1
- package/http/server/http-server.js.map +1 -1
- package/http/server/index.d.ts +3 -3
- package/http/server/index.js +3 -3
- package/http/server/index.js.map +1 -1
- package/http/server/node/index.d.ts +2 -2
- package/http/server/node/index.js +2 -2
- package/http/server/node/index.js.map +1 -1
- package/http/server/node/module.js +4 -4
- 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 +47 -47
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +1 -1
- package/http/types.js +4 -4
- package/http/types.js.map +1 -1
- package/http/utils.d.ts +3 -3
- package/http/utils.js +32 -32
- package/http/utils.js.map +1 -1
- package/image-service/image-service.js +13 -13
- 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 +29 -29
- 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 -1
- package/image-service/imgproxy/index.js.map +1 -1
- package/image-service/index.d.ts +1 -1
- package/image-service/index.js +1 -1
- package/image-service/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/json-path/index.d.ts +1 -1
- package/json-path/index.js +1 -1
- package/json-path/index.js.map +1 -1
- package/json-path/json-path.js +15 -15
- 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 -2
- 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.d.ts +3 -3
- package/key-value-store/key-value.store.js +2 -2
- 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 -5
- 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 +7 -7
- 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 +6 -6
- 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.repository.d.ts +6 -6
- package/key-value-store/mongo/mongo-key-value.repository.js +11 -11
- 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 +17 -17
- 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 -2
- package/lock/index.js.map +1 -1
- package/lock/lock.d.ts +2 -2
- package/lock/lock.js +2 -2
- package/lock/lock.js.map +1 -1
- package/lock/mongo/index.d.ts +5 -5
- package/lock/mongo/index.js +5 -5
- package/lock/mongo/index.js.map +1 -1
- package/lock/mongo/lock.d.ts +4 -4
- package/lock/mongo/lock.js +28 -28
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/module.d.ts +2 -2
- package/lock/mongo/module.js +7 -7
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/mongo-lock-repository.d.ts +6 -6
- package/lock/mongo/mongo-lock-repository.js +14 -14
- package/lock/mongo/mongo-lock-repository.js.map +1 -1
- package/lock/mongo/provider.d.ts +4 -4
- package/lock/mongo/provider.js +15 -15
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +3 -3
- package/lock/provider.js +2 -2
- package/lock/provider.js.map +1 -1
- package/lock/web/index.d.ts +3 -3
- package/lock/web/index.js +3 -3
- package/lock/web/index.js.map +1 -1
- package/lock/web/module.js +7 -7
- package/lock/web/module.js.map +1 -1
- package/lock/web/web-lock.d.ts +2 -2
- package/lock/web/web-lock.js +17 -17
- package/lock/web/web-lock.js.map +1 -1
- package/lock/web/web-lock.provider.d.ts +2 -2
- package/lock/web/web-lock.provider.js +7 -7
- package/lock/web/web-lock.provider.js.map +1 -1
- package/logger/console/index.d.ts +1 -1
- package/logger/console/index.js +1 -1
- package/logger/console/index.js.map +1 -1
- package/logger/console/logger.d.ts +3 -3
- package/logger/console/logger.js +18 -18
- package/logger/console/logger.js.map +1 -1
- package/logger/index.d.ts +2 -2
- package/logger/index.js +2 -2
- package/logger/index.js.map +1 -1
- package/logger/logger.d.ts +3 -3
- package/logger/logger.js +13 -13
- package/logger/logger.js.map +1 -1
- package/logger/noop/index.d.ts +1 -1
- package/logger/noop/index.js +1 -1
- package/logger/noop/index.js.map +1 -1
- package/logger/noop/logger.d.ts +1 -1
- package/logger/noop/logger.js +4 -4
- 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 +9 -9
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/index.d.ts +5 -5
- package/mail/index.js +5 -5
- package/mail/index.js.map +1 -1
- package/mail/mail-log.repository.d.ts +2 -2
- package/mail/mail-log.repository.js +2 -2
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail.client.d.ts +3 -3
- package/mail/mail.client.js +11 -11
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +7 -7
- package/mail/mail.service.js +22 -22
- package/mail/mail.service.js.map +1 -1
- package/mail/models/index.d.ts +6 -6
- package/mail/models/index.js +6 -6
- package/mail/models/index.js.map +1 -1
- package/mail/models/mail-data.model.d.ts +3 -3
- package/mail/models/mail-log.model.d.ts +3 -3
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-template.model.d.ts +1 -1
- package/mail/module.d.ts +4 -4
- package/mail/module.js +13 -13
- 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 +9 -9
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/tokens.d.ts +1 -1
- package/mail/tokens.js +2 -2
- package/mail/tokens.js.map +1 -1
- package/memory/index.d.ts +1 -1
- package/memory/index.js +1 -1
- package/memory/index.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 +7 -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 +11 -11
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/broadcast-channel/index.d.ts +3 -3
- package/message-bus/broadcast-channel/index.js +3 -3
- package/message-bus/broadcast-channel/index.js.map +1 -1
- package/message-bus/broadcast-channel/module.js +7 -7
- package/message-bus/broadcast-channel/module.js.map +1 -1
- package/message-bus/index.d.ts +3 -3
- package/message-bus/index.js +3 -3
- package/message-bus/index.js.map +1 -1
- package/message-bus/local/index.d.ts +3 -3
- package/message-bus/local/index.js +3 -3
- 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 +14 -14
- 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 +10 -10
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/module.js +7 -7
- package/message-bus/local/module.js.map +1 -1
- package/message-bus/message-bus-base.d.ts +4 -4
- package/message-bus/message-bus-base.js +6 -6
- 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.d.ts +4 -4
- package/message-bus/message-bus.js +4 -4
- package/message-bus/message-bus.js.map +1 -1
- package/migration/index.d.ts +3 -3
- package/migration/index.js +3 -3
- package/migration/index.js.map +1 -1
- package/migration/migration-state-repository.d.ts +2 -2
- package/migration/migration-state-repository.js +2 -2
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +1 -1
- package/migration/migrator.d.ts +3 -3
- package/migration/migrator.js +22 -22
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/index.d.ts +2 -2
- package/migration/mongo/index.js +2 -2
- 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 -12
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +2 -2
- package/migration/mongo/module.js +4 -4
- package/migration/mongo/module.js.map +1 -1
- package/module/index.d.ts +4 -4
- package/module/index.js +4 -4
- package/module/index.js.map +1 -1
- package/module/module-base.d.ts +5 -5
- package/module/module-base.js +9 -9
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +4 -4
- package/module/module-metric-reporter.js +10 -11
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +1 -1
- package/module/modules/function.module.d.ts +3 -3
- package/module/modules/function.module.js +2 -2
- package/module/modules/function.module.js.map +1 -1
- package/module/modules/index.d.ts +2 -2
- package/module/modules/index.js +2 -2
- package/module/modules/index.js.map +1 -1
- package/module/modules/web-server.module.d.ts +9 -9
- package/module/modules/web-server.module.js +17 -17
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +2 -2
- package/notification/api.d.ts +3 -3
- package/notification/api.js +9 -9
- package/notification/api.js.map +1 -1
- package/notification/models/index.d.ts +2 -2
- package/notification/models/index.js +2 -2
- package/notification/models/index.js.map +1 -1
- package/notification/models/notification.model.js +13 -13
- package/notification/models/notification.model.js.map +1 -1
- package/notification/notification-channel.service.d.ts +1 -1
- package/notification/notification.repository.d.ts +1 -1
- package/notification/notification.service.d.ts +2 -2
- package/notification/notification.service.js +6 -6
- package/notification/notification.service.js.map +1 -1
- package/object-storage/index.d.ts +3 -3
- package/object-storage/index.js +3 -3
- package/object-storage/index.js.map +1 -1
- package/object-storage/object-storage-provider.d.ts +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +2 -2
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.d.ts +1 -1
- package/object-storage/s3/index.d.ts +3 -3
- package/object-storage/s3/index.js +3 -3
- 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 +15 -15
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +4 -4
- package/object-storage/s3/s3.object-storage.js +23 -26
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +3 -3
- package/object-storage/s3/s3.object.js +5 -5
- package/object-storage/s3/s3.object.js.map +1 -1
- package/openid-connect/cached-oidc-configuration.service.d.ts +3 -3
- package/openid-connect/cached-oidc-configuration.service.js +13 -13
- 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 -11
- 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 +12 -12
- 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 +12 -12
- 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.repository.d.ts +2 -2
- package/openid-connect/oidc-state.repository.js +2 -2
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service.d.ts +6 -6
- package/openid-connect/oidc.service.js +34 -34
- package/openid-connect/oidc.service.js.map +1 -1
- package/package.json +5 -5
- package/pdf/index.d.ts +1 -1
- package/pdf/index.js +1 -1
- package/pdf/index.js.map +1 -1
- package/pdf/pdf.service.d.ts +7 -7
- package/pdf/pdf.service.js +53 -53
- package/pdf/pdf.service.js.map +1 -1
- package/pool/index.d.ts +1 -1
- package/pool/index.js +1 -1
- package/pool/index.js.map +1 -1
- package/pool/pool.d.ts +3 -3
- package/pool/pool.js +10 -10
- package/pool/pool.js.map +1 -1
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +7 -7
- package/process-shutdown.js.map +1 -1
- package/promise/index.d.ts +3 -3
- package/promise/index.js +3 -3
- package/promise/index.js.map +1 -1
- package/promise/lazy-promise.js +4 -4
- package/promise/lazy-promise.js.map +1 -1
- package/queue/enqueue-batch.d.ts +1 -1
- package/queue/index.d.ts +3 -3
- package/queue/index.js +3 -3
- package/queue/index.js.map +1 -1
- package/queue/mongo/index.d.ts +4 -4
- package/queue/mongo/index.js +4 -4
- package/queue/mongo/index.js.map +1 -1
- package/queue/mongo/job.d.ts +3 -3
- package/queue/mongo/mongo-job.repository.d.ts +7 -7
- package/queue/mongo/mongo-job.repository.js +18 -18
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +6 -6
- package/queue/mongo/queue.js +47 -47
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +10 -10
- package/queue/mongo/queue.provider.js +15 -15
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/provider.d.ts +1 -1
- package/queue/queue.d.ts +4 -4
- package/queue/queue.js +6 -6
- package/queue/queue.js.map +1 -1
- package/random/index.d.ts +1 -1
- package/random/index.js +1 -1
- package/random/index.js.map +1 -1
- package/random/number/index.d.ts +3 -3
- package/random/number/index.js +3 -3
- package/random/number/index.js.map +1 -1
- package/random/number/mulberry32.d.ts +1 -1
- package/random/number/mulberry32.js +2 -2
- package/random/number/mulberry32.js.map +1 -1
- package/random/number/sfc32.d.ts +1 -1
- package/random/number/sfc32.js +2 -2
- package/random/number/sfc32.js.map +1 -1
- package/reflection/decorator-data.d.ts +1 -1
- package/reflection/decorator-data.js +11 -11
- package/reflection/decorator-data.js.map +1 -1
- package/reflection/decorators.d.ts +2 -2
- package/reflection/decorators.js +12 -12
- package/reflection/decorators.js.map +1 -1
- package/reflection/index.d.ts +5 -5
- package/reflection/index.js +5 -5
- package/reflection/index.js.map +1 -1
- package/reflection/reflection-data-map.d.ts +1 -1
- package/reflection/reflection-data-map.js +6 -6
- package/reflection/reflection-data-map.js.map +1 -1
- package/reflection/registry.d.ts +3 -3
- package/reflection/registry.js +27 -27
- package/reflection/registry.js.map +1 -1
- package/reflection/types.d.ts +2 -2
- package/reflection/utils.d.ts +2 -2
- package/reflection/utils.js +18 -18
- package/reflection/utils.js.map +1 -1
- package/require.js +1 -1
- package/require.js.map +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.d.ts +2 -2
- package/rpc/endpoints/message-port.rpc-endpoint.js +5 -5
- package/rpc/endpoints/message-port.rpc-endpoint.js.map +1 -1
- package/rpc/index.d.ts +4 -4
- package/rpc/index.js +4 -4
- package/rpc/index.js.map +1 -1
- package/rpc/model.d.ts +2 -2
- package/rpc/model.js +2 -2
- package/rpc/model.js.map +1 -1
- package/rpc/rpc-endpoint.d.ts +1 -1
- package/rpc/rpc-error.d.ts +1 -1
- package/rpc/rpc-error.js +8 -8
- package/rpc/rpc-error.js.map +1 -1
- package/rpc/rpc.d.ts +4 -4
- package/rpc/rpc.js +32 -32
- package/rpc/rpc.js.map +1 -1
- package/rxjs/index.d.ts +12 -12
- package/rxjs/index.js +12 -12
- package/rxjs/index.js.map +1 -1
- package/rxjs/intersection-observer.js +6 -6
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/mutation-observer.js +6 -6
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/performance-observer.js +6 -6
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.js +6 -6
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +3 -3
- package/rxjs/retry-backoff.js.map +1 -1
- package/schema/array-constraints/index.d.ts +2 -2
- package/schema/array-constraints/index.js +2 -2
- package/schema/array-constraints/index.js.map +1 -1
- package/schema/array-constraints/maximum-length.d.ts +4 -4
- package/schema/array-constraints/maximum-length.js +6 -6
- package/schema/array-constraints/maximum-length.js.map +1 -1
- package/schema/array-constraints/minimum-length.d.ts +4 -4
- package/schema/array-constraints/minimum-length.js +6 -6
- package/schema/array-constraints/minimum-length.js.map +1 -1
- package/schema/coercers/boolean.coercer.d.ts +3 -3
- package/schema/coercers/boolean.coercer.js +6 -6
- package/schema/coercers/boolean.coercer.js.map +1 -1
- package/schema/coercers/date.coercer.d.ts +3 -3
- package/schema/coercers/date.coercer.js +6 -6
- package/schema/coercers/date.coercer.js.map +1 -1
- package/schema/coercers/index.d.ts +6 -6
- package/schema/coercers/index.js +6 -6
- package/schema/coercers/index.js.map +1 -1
- package/schema/coercers/number.coercer.d.ts +3 -3
- package/schema/coercers/number.coercer.js +4 -4
- package/schema/coercers/number.coercer.js.map +1 -1
- package/schema/coercers/regexp.coercer.d.ts +3 -3
- package/schema/coercers/regexp.coercer.js +4 -4
- package/schema/coercers/regexp.coercer.js.map +1 -1
- package/schema/coercers/string.coercer.d.ts +3 -3
- package/schema/coercers/string.coercer.js +6 -6
- package/schema/coercers/string.coercer.js.map +1 -1
- package/schema/coercers/uint8-array.coercer.d.ts +3 -3
- package/schema/coercers/uint8-array.coercer.js +9 -9
- package/schema/coercers/uint8-array.coercer.js.map +1 -1
- package/schema/constraints/enumeration.d.ts +4 -4
- package/schema/constraints/enumeration.js +11 -11
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +5 -5
- package/schema/constraints/generic.js +6 -6
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/index.d.ts +12 -12
- package/schema/constraints/index.js +12 -12
- package/schema/constraints/index.js.map +1 -1
- package/schema/constraints/integer.d.ts +4 -4
- package/schema/constraints/integer.js +7 -7
- package/schema/constraints/integer.js.map +1 -1
- package/schema/constraints/length.d.ts +1 -1
- package/schema/constraints/length.js +9 -9
- package/schema/constraints/length.js.map +1 -1
- package/schema/constraints/literal.d.ts +3 -3
- package/schema/constraints/literal.js +9 -9
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +4 -4
- package/schema/constraints/maximum-date.js +10 -10
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +4 -4
- package/schema/constraints/maximum-length.js +8 -8
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +4 -4
- package/schema/constraints/maximum.js +7 -7
- package/schema/constraints/maximum.js.map +1 -1
- package/schema/constraints/minimum-date.d.ts +4 -4
- package/schema/constraints/minimum-date.js +10 -10
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +4 -4
- package/schema/constraints/minimum-length.js +8 -8
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +4 -4
- package/schema/constraints/minimum.js +7 -7
- package/schema/constraints/minimum.js.map +1 -1
- package/schema/constraints/pattern.d.ts +4 -4
- package/schema/constraints/pattern.js +7 -7
- package/schema/constraints/pattern.js.map +1 -1
- package/schema/decorators/class.d.ts +2 -2
- package/schema/decorators/class.js +2 -2
- package/schema/decorators/class.js.map +1 -1
- package/schema/decorators/coerce.d.ts +1 -1
- package/schema/decorators/coerce.js +2 -2
- package/schema/decorators/coerce.js.map +1 -1
- package/schema/decorators/constraint.d.ts +3 -3
- package/schema/decorators/constraint.js +4 -4
- package/schema/decorators/constraint.js.map +1 -1
- package/schema/decorators/index.d.ts +6 -6
- package/schema/decorators/index.js +6 -6
- package/schema/decorators/index.js.map +1 -1
- package/schema/decorators/property.d.ts +4 -4
- package/schema/decorators/property.js +11 -11
- package/schema/decorators/property.js.map +1 -1
- package/schema/decorators/types.d.ts +3 -3
- package/schema/decorators/utils.d.ts +8 -8
- package/schema/decorators/utils.js +14 -14
- package/schema/decorators/utils.js.map +1 -1
- package/schema/index.d.ts +10 -10
- package/schema/index.js +10 -10
- package/schema/index.js.map +1 -1
- package/schema/schema.d.ts +2 -2
- package/schema/schema.error.d.ts +6 -6
- package/schema/schema.error.js +18 -18
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +63 -63
- package/schema/schema.js.map +1 -1
- package/schema/schemas/any.d.ts +2 -2
- package/schema/schemas/any.js +4 -4
- package/schema/schemas/any.js.map +1 -1
- package/schema/schemas/array.d.ts +4 -4
- package/schema/schemas/array.js +12 -12
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/assign.d.ts +1 -1
- package/schema/schemas/assign.js +6 -6
- package/schema/schemas/assign.js.map +1 -1
- package/schema/schemas/boolean.d.ts +2 -2
- package/schema/schemas/boolean.js +4 -4
- package/schema/schemas/boolean.js.map +1 -1
- package/schema/schemas/constraint.d.ts +4 -4
- package/schema/schemas/constraint.js +4 -4
- package/schema/schemas/constraint.js.map +1 -1
- package/schema/schemas/date.d.ts +2 -2
- package/schema/schemas/date.js +12 -12
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +4 -4
- package/schema/schemas/defaulted.js +5 -5
- package/schema/schemas/defaulted.js.map +1 -1
- package/schema/schemas/enumeration.d.ts +3 -3
- package/schema/schemas/enumeration.js +8 -8
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/index.d.ts +26 -26
- package/schema/schemas/index.js +26 -26
- package/schema/schemas/index.js.map +1 -1
- package/schema/schemas/instance.d.ts +1 -1
- package/schema/schemas/instance.js +2 -2
- package/schema/schemas/instance.js.map +1 -1
- package/schema/schemas/literal.d.ts +2 -2
- package/schema/schemas/literal.js +9 -9
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +3 -3
- package/schema/schemas/nullable.js +4 -4
- package/schema/schemas/nullable.js.map +1 -1
- package/schema/schemas/number.d.ts +2 -2
- package/schema/schemas/number.js +15 -15
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +2 -2
- package/schema/schemas/object.js +2 -2
- package/schema/schemas/object.js.map +1 -1
- package/schema/schemas/omit.d.ts +2 -2
- package/schema/schemas/omit.js +8 -8
- package/schema/schemas/omit.js.map +1 -1
- package/schema/schemas/one-or-many.d.ts +5 -5
- package/schema/schemas/one-or-many.js +8 -8
- package/schema/schemas/one-or-many.js.map +1 -1
- package/schema/schemas/optional.d.ts +4 -4
- package/schema/schemas/optional.js +4 -4
- package/schema/schemas/optional.js.map +1 -1
- package/schema/schemas/partial.d.ts +2 -2
- package/schema/schemas/partial.js +11 -11
- package/schema/schemas/partial.js.map +1 -1
- package/schema/schemas/pick.d.ts +2 -2
- package/schema/schemas/pick.js +8 -8
- package/schema/schemas/pick.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +3 -3
- package/schema/schemas/readable-stream.js +4 -4
- package/schema/schemas/readable-stream.js.map +1 -1
- package/schema/schemas/record.d.ts +3 -3
- package/schema/schemas/record.js +2 -2
- package/schema/schemas/record.js.map +1 -1
- package/schema/schemas/regexp.d.ts +3 -3
- package/schema/schemas/regexp.js +4 -4
- package/schema/schemas/regexp.js.map +1 -1
- package/schema/schemas/string.d.ts +2 -2
- package/schema/schemas/string.js +22 -22
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +4 -4
- package/schema/schemas/transform.js +4 -4
- package/schema/schemas/transform.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +2 -2
- package/schema/schemas/uint8-array.js +16 -16
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +3 -3
- package/schema/schemas/union.js +8 -8
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +2 -2
- package/schema/schemas/unknown.js +4 -4
- package/schema/schemas/unknown.js.map +1 -1
- package/schema/transformers/generic.d.ts +4 -4
- package/schema/transformers/generic.js +4 -4
- package/schema/transformers/generic.js.map +1 -1
- package/schema/transformers/index.d.ts +4 -4
- package/schema/transformers/index.js +4 -4
- package/schema/transformers/index.js.map +1 -1
- package/schema/transformers/lowercase.d.ts +3 -3
- package/schema/transformers/lowercase.js +4 -4
- package/schema/transformers/lowercase.js.map +1 -1
- package/schema/transformers/trim.d.ts +3 -3
- package/schema/transformers/trim.js +4 -4
- package/schema/transformers/trim.js.map +1 -1
- package/schema/transformers/uppercase.d.ts +3 -3
- package/schema/transformers/uppercase.js +4 -4
- package/schema/transformers/uppercase.js.map +1 -1
- package/schema/types/index.d.ts +5 -5
- package/schema/types/index.js +5 -5
- package/schema/types/index.js.map +1 -1
- package/schema/types/schema-array-constraint.d.ts +2 -2
- package/schema/types/schema-value-coercer.d.ts +3 -3
- package/schema/types/schema-value-constraint.d.ts +3 -3
- package/schema/types/schema-value-transformer.d.ts +3 -3
- package/schema/types/types.d.ts +7 -7
- package/schema/types/types.js +24 -24
- package/schema/types/types.js.map +1 -1
- package/schema/utils/index.d.ts +2 -2
- package/schema/utils/index.js +2 -2
- package/schema/utils/index.js.map +1 -1
- package/schema/utils/schema.d.ts +3 -3
- package/schema/utils/schema.js +40 -40
- package/schema/utils/schema.js.map +1 -1
- package/schema/utils/value-type.d.ts +3 -3
- package/schema/utils/value-type.js +22 -22
- package/schema/utils/value-type.js.map +1 -1
- package/search-index/elastic/config.d.ts +3 -3
- package/search-index/elastic/config.js +6 -6
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/index.d.ts +6 -6
- package/search-index/elastic/index.js +6 -6
- 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/index-mapping.d.ts +3 -3
- package/search-index/elastic/model/index-mapping.js +2 -2
- 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 -3
- package/search-index/elastic/model/index.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +3 -3
- package/search-index/elastic/module.d.ts +4 -4
- package/search-index/elastic/module.js +17 -17
- 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/index.d.ts +1 -1
- package/search-index/elastic/query-builder/index.js +1 -1
- 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 +26 -26
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +10 -10
- package/search-index/elastic/search-index.js +33 -33
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +3 -3
- package/search-index/elastic/types.d.ts +1 -1
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +4 -4
- package/search-index/error.js.map +1 -1
- package/search-index/index.d.ts +3 -3
- package/search-index/index.js +3 -3
- package/search-index/index.js.map +1 -1
- package/search-index/memory/index.d.ts +1 -1
- package/search-index/memory/index.js +1 -1
- package/search-index/memory/index.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +3 -3
- package/search-index/memory/memory-search-index.js +26 -26
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +3 -3
- package/search-index/search-index.js +3 -3
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +1 -1
- package/serializer/handlers/binary.d.ts +1 -1
- package/serializer/handlers/binary.js +7 -7
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/index.d.ts +7 -7
- package/serializer/handlers/index.js +7 -7
- package/serializer/handlers/index.js.map +1 -1
- package/serializer/handlers/map.d.ts +1 -1
- package/serializer/handlers/register.d.ts +1 -1
- package/serializer/handlers/register.js +18 -18
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.d.ts +2 -2
- package/serializer/index.d.ts +4 -4
- package/serializer/index.js +7 -7
- package/serializer/index.js.map +1 -1
- package/serializer/serializable.d.ts +1 -1
- package/serializer/serializable.js +5 -5
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +35 -35
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/sse/index.d.ts +2 -1
- package/sse/index.js +2 -1
- package/sse/index.js.map +1 -1
- package/sse/model.d.ts +21 -0
- package/sse/model.js +3 -0
- package/sse/model.js.map +1 -0
- package/sse/server-sent-events-source.d.ts +15 -0
- package/sse/server-sent-events-source.js +66 -0
- package/sse/server-sent-events-source.js.map +1 -0
- package/sse/server-sent-events.d.ts +20 -33
- package/sse/server-sent-events.js +48 -58
- package/sse/server-sent-events.js.map +1 -1
- package/tailwind/index.d.ts +1 -1
- package/tailwind/index.js +1 -1
- package/tailwind/index.js.map +1 -1
- package/tailwind/theme-adapter.d.ts +1 -1
- package/tailwind/theme-adapter.js +4 -4
- package/tailwind/theme-adapter.js.map +1 -1
- package/templates/index.d.ts +9 -9
- package/templates/index.js +9 -9
- package/templates/index.js.map +1 -1
- package/templates/module.d.ts +4 -4
- package/templates/module.js +12 -12
- package/templates/module.js.map +1 -1
- package/templates/providers/file.template-provider.d.ts +4 -4
- package/templates/providers/file.template-provider.js +13 -13
- package/templates/providers/file.template-provider.js.map +1 -1
- package/templates/providers/memory.template-provider.d.ts +2 -2
- package/templates/providers/memory.template-provider.js +6 -6
- package/templates/providers/memory.template-provider.js.map +1 -1
- package/templates/renderers/handlebars.template-renderer.d.ts +5 -5
- package/templates/renderers/handlebars.template-renderer.js +19 -19
- package/templates/renderers/handlebars.template-renderer.js.map +1 -1
- package/templates/renderers/jsx.template-renderer.d.ts +6 -6
- package/templates/renderers/jsx.template-renderer.js +8 -8
- package/templates/renderers/jsx.template-renderer.js.map +1 -1
- package/templates/renderers/mjml.template-renderer.d.ts +3 -3
- package/templates/renderers/mjml.template-renderer.js +7 -7
- package/templates/renderers/mjml.template-renderer.js.map +1 -1
- package/templates/renderers/string.template-renderer.d.ts +2 -2
- package/templates/renderers/string.template-renderer.js +4 -4
- package/templates/renderers/string.template-renderer.js.map +1 -1
- package/templates/resolvers/file.template-resolver.d.ts +6 -6
- package/templates/resolvers/file.template-resolver.js +13 -13
- package/templates/resolvers/file.template-resolver.js.map +1 -1
- package/templates/resolvers/jsx.template-resolver.d.ts +4 -4
- package/templates/resolvers/jsx.template-resolver.js +8 -8
- package/templates/resolvers/jsx.template-resolver.js.map +1 -1
- package/templates/resolvers/string.template-resolver.d.ts +4 -4
- package/templates/resolvers/string.template-resolver.js +8 -8
- package/templates/resolvers/string.template-resolver.js.map +1 -1
- package/templates/template-renderer.provider.d.ts +1 -1
- package/templates/template-renderer.provider.js +4 -4
- package/templates/template-renderer.provider.js.map +1 -1
- package/templates/template-resolver.provider.d.ts +1 -1
- package/templates/template-resolver.provider.js +4 -4
- package/templates/template-resolver.provider.js.map +1 -1
- package/templates/template.model.d.ts +1 -1
- package/templates/template.model.js +10 -10
- package/templates/template.model.js.map +1 -1
- package/templates/template.provider.d.ts +1 -1
- package/templates/template.renderer.d.ts +2 -2
- package/templates/template.renderer.js +4 -4
- package/templates/template.renderer.js.map +1 -1
- package/templates/template.resolver.d.ts +1 -1
- package/templates/template.service.d.ts +5 -5
- package/templates/template.service.js +15 -15
- package/templates/template.service.js.map +1 -1
- package/templates/tokens.d.ts +4 -4
- package/templates/tokens.js +3 -3
- package/templates/tokens.js.map +1 -1
- package/text/dynamic-text.model.d.ts +3 -3
- package/text/dynamic-text.model.js +7 -7
- package/text/dynamic-text.model.js.map +1 -1
- package/text/index.d.ts +3 -3
- package/text/index.js +3 -3
- package/text/index.js.map +1 -1
- package/text/localizable-text.model.d.ts +1 -1
- package/text/localization.service.d.ts +7 -4
- package/text/localization.service.js +50 -35
- package/text/localization.service.js.map +1 -1
- package/theme/adapters/css-adapter.d.ts +1 -1
- package/theme/adapters/css-adapter.js +19 -19
- package/theme/adapters/css-adapter.js.map +1 -1
- package/theme/index.d.ts +1 -1
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/theme-service.d.ts +2 -2
- package/theme/theme-service.js +19 -19
- package/theme/theme-service.js.map +1 -1
- package/threading/index.d.ts +2 -2
- package/threading/index.js +2 -2
- package/threading/index.js.map +1 -1
- package/threading/thread-pool.d.ts +4 -4
- package/threading/thread-pool.js +11 -11
- package/threading/thread-pool.js.map +1 -1
- package/threading/thread-worker.d.ts +1 -1
- package/threading/thread-worker.js +2 -2
- package/threading/thread-worker.js.map +1 -1
- package/tokens.d.ts +1 -1
- package/tokens.js +2 -2
- package/tokens.js.map +1 -1
- package/types/geo-json.d.ts +1 -1
- package/utils/any-iterable-iterator.js +3 -3
- package/utils/any-iterable-iterator.js.map +1 -1
- package/utils/array/array-backtracker.js +5 -5
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/array/array.js +11 -11
- package/utils/array/array.js.map +1 -1
- package/utils/array/index.d.ts +2 -2
- package/utils/array/index.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +8 -8
- 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/default-if-empty.d.ts +1 -1
- package/utils/async-iterable-helpers/deferred.d.ts +1 -1
- package/utils/async-iterable-helpers/difference.d.ts +2 -2
- package/utils/async-iterable-helpers/difference.js +8 -8
- package/utils/async-iterable-helpers/difference.js.map +1 -1
- package/utils/async-iterable-helpers/distinct.d.ts +2 -2
- package/utils/async-iterable-helpers/distinct.js +2 -2
- 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/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/filter.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +5 -5
- 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 +2 -2
- 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 +2 -2
- package/utils/async-iterable-helpers/group.js.map +1 -1
- package/utils/async-iterable-helpers/includes.d.ts +1 -1
- package/utils/async-iterable-helpers/includes.js +6 -6
- package/utils/async-iterable-helpers/includes.js.map +1 -1
- package/utils/async-iterable-helpers/index.d.ts +48 -48
- package/utils/async-iterable-helpers/index.js +48 -48
- 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 +5 -5
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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 +4 -4
- 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 +2 -2
- 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 +3 -3
- package/utils/async-iterable-helpers/multiplex.js.map +1 -1
- package/utils/async-iterable-helpers/observable-iterable.js +5 -5
- 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 +2 -2
- 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 +6 -6
- 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 +2 -2
- 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 +4 -4
- 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 +4 -4
- 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 -7
- 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 +2 -2
- 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 +2 -2
- package/utils/async-iterable-helpers/parallel/tap.js.map +1 -1
- package/utils/async-iterable-helpers/reduce.d.ts +2 -2
- package/utils/async-iterable-helpers/reduce.js +2 -2
- 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 +2 -2
- 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.d.ts +3 -3
- package/utils/async-iterable-helpers/skip.d.ts +1 -1
- package/utils/async-iterable-helpers/skip.js +2 -2
- 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 +4 -4
- 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 +2 -2
- 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 +2 -2
- 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/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/tap.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.js +7 -7
- package/utils/async-iterable-helpers/to-async-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-set.d.ts +1 -1
- package/utils/async-iterable-helpers/to-set.js +2 -2
- package/utils/async-iterable-helpers/to-set.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 +4 -4
- 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/while.d.ts +2 -2
- package/utils/async-iterable-helpers/while.js +2 -2
- package/utils/async-iterable-helpers/while.js.map +1 -1
- package/utils/async-iterator-iterable-iterator.js +3 -3
- package/utils/async-iterator-iterable-iterator.js.map +1 -1
- package/utils/backoff.d.ts +2 -2
- package/utils/backoff.js +9 -9
- package/utils/backoff.js.map +1 -1
- package/utils/base64.d.ts +1 -1
- package/utils/base64.js +8 -8
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.d.ts +2 -2
- package/utils/benchmark.js +12 -12
- package/utils/benchmark.js.map +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary-search.js +8 -8
- package/utils/binary-search.js.map +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +6 -6
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.js +8 -8
- package/utils/cancellation-token.js.map +1 -1
- package/utils/clone.js +15 -15
- package/utils/clone.js.map +1 -1
- package/utils/compression.d.ts +1 -1
- package/utils/compression.js +26 -26
- package/utils/compression.js.map +1 -1
- package/utils/config-parser.js +3 -3
- package/utils/config-parser.js.map +1 -1
- package/utils/cryptography.d.ts +1 -1
- package/utils/cryptography.js +33 -33
- package/utils/cryptography.js.map +1 -1
- package/utils/date-time.js +11 -11
- package/utils/date-time.js.map +1 -1
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +8 -8
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/enum.js +10 -10
- package/utils/enum.js.map +1 -1
- package/utils/equals.d.ts +2 -2
- package/utils/equals.js +14 -14
- package/utils/equals.js.map +1 -1
- package/utils/event-loop.d.ts +2 -2
- package/utils/event-loop.js +7 -7
- package/utils/event-loop.js.map +1 -1
- package/utils/feedable-async-iterable.js +4 -4
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/file-reader.js +2 -2
- package/utils/file-reader.js.map +1 -1
- package/utils/format-error.d.ts +1 -1
- package/utils/format-error.js +10 -10
- package/utils/format-error.js.map +1 -1
- package/utils/function/index.d.ts +2 -2
- package/utils/function/index.js +2 -2
- package/utils/function/index.js.map +1 -1
- package/utils/function/memoize.js +4 -4
- package/utils/function/memoize.js.map +1 -1
- package/utils/function/throttle.js +2 -2
- package/utils/function/throttle.js.map +1 -1
- package/utils/helpers.d.ts +1 -1
- package/utils/helpers.js +8 -8
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +9 -9
- package/utils/image.js.map +1 -1
- package/utils/index.d.ts +47 -47
- package/utils/index.js +47 -47
- package/utils/index.js.map +1 -1
- package/utils/iterable-helpers/all.d.ts +1 -1
- package/utils/iterable-helpers/any.d.ts +1 -1
- package/utils/iterable-helpers/assert.d.ts +1 -1
- package/utils/iterable-helpers/assert.js +2 -2
- package/utils/iterable-helpers/assert.js.map +1 -1
- package/utils/iterable-helpers/difference.d.ts +1 -1
- package/utils/iterable-helpers/difference.js +5 -5
- package/utils/iterable-helpers/difference.js.map +1 -1
- package/utils/iterable-helpers/distinct.d.ts +1 -1
- package/utils/iterable-helpers/filter.d.ts +1 -1
- package/utils/iterable-helpers/first-or-default.d.ts +1 -1
- package/utils/iterable-helpers/first-or-default.js +2 -2
- 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 +2 -2
- package/utils/iterable-helpers/first.js.map +1 -1
- package/utils/iterable-helpers/for-each.d.ts +1 -1
- package/utils/iterable-helpers/group-single.d.ts +1 -1
- package/utils/iterable-helpers/group-single.js +2 -2
- 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 +2 -2
- 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.d.ts +1 -1
- package/utils/iterable-helpers/group.js +2 -2
- package/utils/iterable-helpers/group.js.map +1 -1
- package/utils/iterable-helpers/includes.js +2 -2
- package/utils/iterable-helpers/includes.js.map +1 -1
- package/utils/iterable-helpers/index.d.ts +39 -39
- package/utils/iterable-helpers/index.js +39 -39
- 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 +3 -3
- 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 +2 -2
- 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 +2 -2
- package/utils/iterable-helpers/last.js.map +1 -1
- package/utils/iterable-helpers/map-many.d.ts +1 -1
- package/utils/iterable-helpers/map.d.ts +1 -1
- package/utils/iterable-helpers/metadata.d.ts +1 -1
- package/utils/iterable-helpers/reduce.d.ts +1 -1
- package/utils/iterable-helpers/single-or-default.d.ts +1 -1
- package/utils/iterable-helpers/single.d.ts +1 -1
- package/utils/iterable-helpers/sort.d.ts +1 -1
- package/utils/iterable-helpers/sort.js +2 -2
- package/utils/iterable-helpers/sort.js.map +1 -1
- package/utils/iterable-helpers/take-until.d.ts +1 -1
- package/utils/iterable-helpers/take-while.d.ts +1 -1
- package/utils/iterable-helpers/tap.d.ts +1 -1
- package/utils/iterable-helpers/while.d.ts +1 -1
- package/utils/jwt.d.ts +2 -2
- package/utils/jwt.js +26 -26
- package/utils/jwt.js.map +1 -1
- package/utils/map.js +2 -2
- package/utils/map.js.map +1 -1
- package/utils/math.js +3 -3
- package/utils/math.js.map +1 -1
- package/utils/merge.d.ts +1 -1
- package/utils/merge.js +11 -11
- package/utils/merge.js.map +1 -1
- package/utils/moving-metric.js +2 -2
- package/utils/moving-metric.js.map +1 -1
- package/utils/object/decycle.d.ts +1 -1
- package/utils/object/decycle.js +20 -20
- package/utils/object/decycle.js.map +1 -1
- package/utils/object/dereference.d.ts +1 -1
- package/utils/object/dereference.js +4 -4
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.js +14 -14
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/object/index.d.ts +7 -7
- package/utils/object/index.js +7 -7
- package/utils/object/index.js.map +1 -1
- package/utils/object/lazy-property.d.ts +1 -1
- package/utils/object/lazy-property.js +11 -11
- package/utils/object/lazy-property.js.map +1 -1
- package/utils/object/merge.js +12 -12
- package/utils/object/merge.js.map +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/object.js +9 -9
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +2 -2
- package/utils/object/property-name.js +7 -7
- 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 +2 -2
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +1 -1
- package/utils/patch-worker.js +10 -10
- package/utils/patch-worker.js.map +1 -1
- package/utils/periodic-reporter.js +6 -6
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.js +8 -8
- package/utils/periodic-sampler.js.map +1 -1
- package/utils/provider-function-iterable.js +2 -2
- package/utils/provider-function-iterable.js.map +1 -1
- package/utils/proxy.js +2 -2
- package/utils/proxy.js.map +1 -1
- package/utils/random.js +2 -2
- package/utils/random.js.map +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/set.js +2 -2
- package/utils/set.js.map +1 -1
- package/utils/singleton.js +2 -2
- package/utils/singleton.js.map +1 -1
- package/utils/sort.js +3 -3
- package/utils/sort.js.map +1 -1
- package/utils/stream/index.d.ts +6 -6
- package/utils/stream/index.js +6 -6
- package/utils/stream/index.js.map +1 -1
- package/utils/stream/readable-stream-adapter.d.ts +1 -1
- package/utils/stream/readable-stream-adapter.js +2 -2
- package/utils/stream/readable-stream-adapter.js.map +1 -1
- package/utils/stream/size-limited-stream.d.ts +1 -1
- package/utils/stream/size-limited-stream.js +2 -2
- package/utils/stream/size-limited-stream.js.map +1 -1
- package/utils/stream/stream-reader.d.ts +1 -1
- package/utils/stream/stream-reader.js +10 -10
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/string/index.d.ts +2 -2
- package/utils/string/index.js +2 -2
- package/utils/string/index.js.map +1 -1
- package/utils/timing.d.ts +1 -1
- package/utils/type-guards.d.ts +1 -1
- package/utils/type-guards.js +6 -6
- package/utils/type-guards.js.map +1 -1
- package/utils/type-of.js +2 -2
- package/utils/type-of.js.map +1 -1
- package/utils/url-builder.d.ts +1 -1
- package/utils/url-builder.js +9 -9
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/utils/z-base32.js +4 -4
- package/utils/z-base32.js.map +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.registerDefaultSerializers = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
4
|
+
const supports_js_1 = require("../../supports.js");
|
|
5
|
+
const type_guards_js_1 = require("../../utils/type-guards.js");
|
|
6
|
+
const binary_js_1 = require("./binary.js");
|
|
7
|
+
const date_js_1 = require("./date.js");
|
|
8
|
+
const error_js_1 = require("./error.js");
|
|
9
|
+
const map_js_1 = require("./map.js");
|
|
10
|
+
const regex_js_1 = require("./regex.js");
|
|
11
|
+
const set_js_1 = require("./set.js");
|
|
12
12
|
const typedArrays = [
|
|
13
13
|
globalThis.Int8Array,
|
|
14
14
|
globalThis.Uint8Array,
|
|
@@ -21,19 +21,19 @@ const typedArrays = [
|
|
|
21
21
|
globalThis.Float64Array,
|
|
22
22
|
globalThis.BigInt64Array,
|
|
23
23
|
globalThis.BigUint64Array
|
|
24
|
-
].filter(
|
|
24
|
+
].filter(type_guards_js_1.isDefined);
|
|
25
25
|
function registerDefaultSerializers(register, registerRaw) {
|
|
26
|
-
register(Set, 'Set',
|
|
27
|
-
register(Map, 'Map',
|
|
28
|
-
register(RegExp, 'RegExp',
|
|
29
|
-
register(Date, 'Date',
|
|
30
|
-
register(Error, 'Error',
|
|
31
|
-
register(ArrayBuffer, 'ArrayBuffer',
|
|
26
|
+
register(Set, 'Set', set_js_1.serializeSet, set_js_1.deserializeSet);
|
|
27
|
+
register(Map, 'Map', map_js_1.serializeMap, map_js_1.deserializeMap);
|
|
28
|
+
register(RegExp, 'RegExp', regex_js_1.serializeRegExp, regex_js_1.deserializeRegExp);
|
|
29
|
+
register(Date, 'Date', date_js_1.serializeDate, date_js_1.deserializeDate);
|
|
30
|
+
register(Error, 'Error', error_js_1.serializeError, error_js_1.deserializeError);
|
|
31
|
+
register(ArrayBuffer, 'ArrayBuffer', binary_js_1.serializeArrayBuffer, binary_js_1.deserializeArrayBuffer);
|
|
32
32
|
for (const typedArray of typedArrays) {
|
|
33
|
-
register(typedArray, typedArray.name,
|
|
33
|
+
register(typedArray, typedArray.name, binary_js_1.serializeTypedArray, (0, binary_js_1.getTypedArrayDeserializer)(typedArray));
|
|
34
34
|
}
|
|
35
|
-
if (
|
|
36
|
-
register(Buffer, 'Buffer',
|
|
35
|
+
if (supports_js_1.supportsBuffer) {
|
|
36
|
+
register(Buffer, 'Buffer', binary_js_1.serializeBuffer, binary_js_1.deserializeBuffer);
|
|
37
37
|
}
|
|
38
38
|
if (typeof MessagePort != 'undefined') {
|
|
39
39
|
registerRaw(MessagePort);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../source/serializer/handlers/register.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../source/serializer/handlers/register.ts"],"names":[],"mappings":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C,CAAC;KAChE;IAED,IAAI,OAAO,WAAW,IAAI,WAAW,EAAE;QACrC,WAAW,CAAC,WAAW,CAAC,CAAC;KAC1B;AACH,CAAC;AAnBD,gEAmBC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TryDereference } from '../serializable';
|
|
2
|
-
import type { Serialized } from '../types';
|
|
1
|
+
import type { TryDereference } from '../serializable.js';
|
|
2
|
+
import type { Serialized } from '../types.js';
|
|
3
3
|
type SetData = Serialized<any>[];
|
|
4
4
|
export declare function serializeSet(set: Set<any>): SetData;
|
|
5
5
|
export declare function deserializeSet(data: SetData, tryDereference: TryDereference): Set<any>;
|
package/serializer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { registerSerializable, registerSerializer, Serializable, serializable } from './serializable';
|
|
2
|
-
export type { DereferenceCallback,
|
|
3
|
-
export * from './serializer';
|
|
4
|
-
export * from './types';
|
|
1
|
+
export { registerSerializable, registerSerializer, Serializable, serializable } from './serializable.js';
|
|
2
|
+
export type { DereferenceCallback, DeserializeFunction, SerializableType, SerializeFunction, TryDereference } from './serializable.js';
|
|
3
|
+
export * from './serializer.js';
|
|
4
|
+
export * from './types.js';
|
package/serializer/index.js
CHANGED
|
@@ -15,11 +15,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.serializable = exports.Serializable = exports.registerSerializer = exports.registerSerializable = void 0;
|
|
18
|
-
var
|
|
19
|
-
Object.defineProperty(exports, "registerSerializable", { enumerable: true, get: function () { return
|
|
20
|
-
Object.defineProperty(exports, "registerSerializer", { enumerable: true, get: function () { return
|
|
21
|
-
Object.defineProperty(exports, "Serializable", { enumerable: true, get: function () { return
|
|
22
|
-
Object.defineProperty(exports, "serializable", { enumerable: true, get: function () { return
|
|
23
|
-
__exportStar(require("./serializer"), exports);
|
|
24
|
-
__exportStar(require("./types"), exports);
|
|
18
|
+
var serializable_js_1 = require("./serializable.js");
|
|
19
|
+
Object.defineProperty(exports, "registerSerializable", { enumerable: true, get: function () { return serializable_js_1.registerSerializable; } });
|
|
20
|
+
Object.defineProperty(exports, "registerSerializer", { enumerable: true, get: function () { return serializable_js_1.registerSerializer; } });
|
|
21
|
+
Object.defineProperty(exports, "Serializable", { enumerable: true, get: function () { return serializable_js_1.Serializable; } });
|
|
22
|
+
Object.defineProperty(exports, "serializable", { enumerable: true, get: function () { return serializable_js_1.serializable; } });
|
|
23
|
+
__exportStar(require("./serializer.js"), exports);
|
|
24
|
+
__exportStar(require("./types.js"), exports);
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
package/serializer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/serializer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/serializer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,qDAAyG;AAAhG,uHAAA,oBAAoB,OAAA;AAAE,qHAAA,kBAAkB,OAAA;AAAE,+GAAA,YAAY,OAAA;AAAE,+GAAA,YAAY,OAAA;AAE7E,kDAAgC;AAChC,6CAA2B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbstractConstructor, Record, Type, TypedOmit } from "../types";
|
|
1
|
+
import type { AbstractConstructor, Record, Type, TypedOmit } from "../types.js";
|
|
2
2
|
export declare const Serializable: {
|
|
3
3
|
readonly serialize: unique symbol;
|
|
4
4
|
readonly deserialize: unique symbol;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.registerSerializer = exports.registerSerializable = exports.serializable = exports.isRawSerializable = exports.registerRawSerializable = exports.getSerializerByTypeName = exports.getTypeNameByConstructor = exports.Serializable = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const type_guards_js_1 = require("../utils/type-guards.js");
|
|
5
|
+
const register_js_1 = require("./handlers/register.js");
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
exports.Serializable = {
|
|
8
8
|
serialize: Symbol('serialize'),
|
|
@@ -40,7 +40,7 @@ exports.serializable = serializable;
|
|
|
40
40
|
*/
|
|
41
41
|
function registerSerializable(type, typeName) {
|
|
42
42
|
const { [exports.Serializable.serialize]: serializer, [exports.Serializable.deserialize]: deserializer } = type.prototype;
|
|
43
|
-
if (!(0,
|
|
43
|
+
if (!(0, type_guards_js_1.isFunction)(serializer) || !(0, type_guards_js_1.isFunction)(deserializer)) {
|
|
44
44
|
throw new Error('implementation for at least one of [type], [serialize] and [deserialize] is missing or of wrong type');
|
|
45
45
|
}
|
|
46
46
|
registerSerializer(type, typeName ?? type.name, serializer, deserializer);
|
|
@@ -49,7 +49,7 @@ exports.registerSerializable = registerSerializable;
|
|
|
49
49
|
function registerSerializer(constructor, typeName, serializer, deserializer, options) {
|
|
50
50
|
const existingMappedType = constructorTypeNameMap.get(constructor);
|
|
51
51
|
const existingMappedSerializer = typeNameSerializerMap.get(typeName);
|
|
52
|
-
if ((0,
|
|
52
|
+
if ((0, type_guards_js_1.isDefined)(existingMappedType) || (0, type_guards_js_1.isDefined)(existingMappedSerializer)) {
|
|
53
53
|
const ctor = existingMappedSerializer?.constructor ?? constructor;
|
|
54
54
|
throw new Error(`serializer for constructor ${ctor.name} is already registered as ${existingMappedType ?? typeName}`);
|
|
55
55
|
}
|
|
@@ -58,5 +58,5 @@ function registerSerializer(constructor, typeName, serializer, deserializer, opt
|
|
|
58
58
|
typeNameSerializerMap.set(typeName, registration);
|
|
59
59
|
}
|
|
60
60
|
exports.registerSerializer = registerSerializer;
|
|
61
|
-
(0,
|
|
61
|
+
(0, register_js_1.registerDefaultSerializers)(registerSerializer, registerRawSerializable);
|
|
62
62
|
//# sourceMappingURL=serializable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializable.js","sourceRoot":"","sources":["../../source/serializer/serializable.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"serializable.js","sourceRoot":"","sources":["../../source/serializer/serializable.ts"],"names":[],"mappings":";;;AACA,4DAA+D;AAC/D,wDAAoE;AAEpE,gEAAgE;AACnD,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;CAInC,CAAC;AAyBF,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAA+B,CAAC;AACtE,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAAoC,CAAC;AAC1E,MAAM,MAAM,GAAG,IAAI,GAAG,EAAuB,CAAC;AAE9C,SAAgB,wBAAwB,CAAC,WAAgC;IACvE,OAAO,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACjD,CAAC;AAFD,4DAEC;AAED,SAAgB,uBAAuB,CAAC,QAAgB;IACtD,OAAO,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAFD,0DAEC;AAED,SAAgB,uBAAuB,CAAC,WAAgC;IACtE,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AAC1B,CAAC;AAFD,0DAEC;AAED,SAAgB,iBAAiB,CAAC,WAAgC;IAChE,OAAO,MAAM,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACjC,CAAC;AAFD,8CAEC;AAED,SAAgB,YAAY,CAA0C,QAAiB;IACrF,SAAS,qBAAqB,CAAC,IAA+B;QAC5D,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACvC,CAAC;IAED,OAAO,qBAAqB,CAAC;AAC/B,CAAC;AAND,oCAMC;AAED;;;GAGG;AACH,SAAgB,oBAAoB,CAA0C,IAA+B,EAAE,Q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,EAAE,uBAAuB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CircularBuffer } from "../data-structures/circular-buffer";
|
|
2
|
-
import type { SerializationOptions, Serialized, StringSerialized } from './types';
|
|
1
|
+
import { CircularBuffer } from "../data-structures/circular-buffer.js";
|
|
2
|
+
import type { SerializationOptions, Serialized, StringSerialized } from './types.js';
|
|
3
3
|
type QueueItem = () => void;
|
|
4
4
|
export declare function stringSerialize<T>(value: T, options?: SerializationOptions): StringSerialized<T>;
|
|
5
5
|
export declare function stringDeserialize<T = unknown>(serialized: string, options?: SerializationOptions): T;
|
package/serializer/serializer.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-unsafe-return, @typescript-eslint/ban-types, max-lines-per-function, max-statements, complexity */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.deserialize = exports.serialize = exports.stringDeserialize = exports.stringSerialize = void 0;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
5
|
+
const circular_buffer_js_1 = require("../data-structures/circular-buffer.js");
|
|
6
|
+
const sorted_array_list_js_1 = require("../data-structures/sorted-array-list.js");
|
|
7
|
+
const comparison_js_1 = require("../utils/comparison.js");
|
|
8
|
+
const forward_ref_js_1 = require("../utils/object/forward-ref.js");
|
|
9
|
+
const object_js_1 = require("../utils/object/object.js");
|
|
10
|
+
const type_guards_js_1 = require("../utils/type-guards.js");
|
|
11
|
+
const serializable_js_1 = require("./serializable.js");
|
|
12
|
+
const types_js_1 = require("./types.js");
|
|
13
13
|
function stringSerialize(value, options) {
|
|
14
14
|
const serialized = serialize(value, options);
|
|
15
15
|
return JSON.stringify(serialized);
|
|
@@ -20,9 +20,9 @@ function stringDeserialize(serialized, options) {
|
|
|
20
20
|
return deserialize(parsedStringSerialized, options);
|
|
21
21
|
}
|
|
22
22
|
exports.stringDeserialize = stringDeserialize;
|
|
23
|
-
function serialize(_value, options = {}, references = new Map(), queue = new
|
|
23
|
+
function serialize(_value, options = {}, references = new Map(), queue = new circular_buffer_js_1.CircularBuffer(), path = '$') {
|
|
24
24
|
let value = _value;
|
|
25
|
-
if ((0,
|
|
25
|
+
if ((0, type_guards_js_1.isDefined)(options.replacers)) {
|
|
26
26
|
for (const replacer of options.replacers) {
|
|
27
27
|
value = replacer(value);
|
|
28
28
|
}
|
|
@@ -34,13 +34,13 @@ function serialize(_value, options = {}, references = new Map(), queue = new cir
|
|
|
34
34
|
if (type == 'undefined') {
|
|
35
35
|
return { '<undefined>': null };
|
|
36
36
|
}
|
|
37
|
-
if ((path == '$') && (0,
|
|
38
|
-
for (const entry of (0,
|
|
37
|
+
if ((path == '$') && (0, type_guards_js_1.isDefined)(options.context)) {
|
|
38
|
+
for (const entry of (0, object_js_1.objectEntries)(options.context)) {
|
|
39
39
|
references.set(entry[1], `$['__context__']['${entry[0]}']`);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
const reference = references.get(value);
|
|
43
|
-
if ((0,
|
|
43
|
+
if ((0, type_guards_js_1.isDefined)(reference)) {
|
|
44
44
|
return { '<ref>': reference };
|
|
45
45
|
}
|
|
46
46
|
if (type == 'string') {
|
|
@@ -84,21 +84,21 @@ function serialize(_value, options = {}, references = new Map(), queue = new cir
|
|
|
84
84
|
}
|
|
85
85
|
else if (constructor == Object) {
|
|
86
86
|
const target = {};
|
|
87
|
-
const entries = (0,
|
|
87
|
+
const entries = (0, object_js_1.objectEntries)(value);
|
|
88
88
|
const queueItems = entries.map(([key, innerValue]) => () => (target[key] = serialize(innerValue, options, references, queue, `${path}['${key.toString()}']`)));
|
|
89
89
|
queue.addMany(queueItems);
|
|
90
90
|
result = target;
|
|
91
91
|
}
|
|
92
|
-
else if ((0,
|
|
92
|
+
else if ((0, serializable_js_1.isRawSerializable)(constructor) || ((0, type_guards_js_1.isDefined)(options.raws) && options.raws.includes(constructor))) {
|
|
93
93
|
references.set(value, path);
|
|
94
94
|
return { '<raw>': value };
|
|
95
95
|
}
|
|
96
96
|
else {
|
|
97
|
-
const serializableType = (0,
|
|
98
|
-
if ((0,
|
|
97
|
+
const serializableType = (0, serializable_js_1.getTypeNameByConstructor)(constructor);
|
|
98
|
+
if ((0, type_guards_js_1.isUndefined)(serializableType)) {
|
|
99
99
|
throw new Error(`constructor ${constructor.name} has no serializer registered`);
|
|
100
100
|
}
|
|
101
|
-
const registration = (0,
|
|
101
|
+
const registration = (0, serializable_js_1.getSerializerByTypeName)(serializableType);
|
|
102
102
|
const typeString = getTypeString(serializableType);
|
|
103
103
|
const nonPrimitive = { [typeString]: null };
|
|
104
104
|
queue.add(() => {
|
|
@@ -135,31 +135,31 @@ function _deserialize(serialized, context, path, depth) {
|
|
|
135
135
|
return { '<undefined>': null };
|
|
136
136
|
}
|
|
137
137
|
if (type == 'object') {
|
|
138
|
-
if ((depth == 0) && (0,
|
|
139
|
-
for (const entry of (0,
|
|
138
|
+
if ((depth == 0) && (0, type_guards_js_1.isDefined)(context.options.context)) {
|
|
139
|
+
for (const entry of (0, object_js_1.objectEntries)(context.options.context)) {
|
|
140
140
|
context.references.set(`$['__context__']['${entry[0]}']`, entry[1]);
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
-
const entries = (0,
|
|
143
|
+
const entries = (0, object_js_1.objectEntries)(serialized);
|
|
144
144
|
const isNonPrimitive = (entries.length == 1) && entries[0][0].startsWith('<') && entries[0][0].endsWith('>');
|
|
145
145
|
if (isNonPrimitive) {
|
|
146
146
|
const nonPrimitiveData = entries[0][1];
|
|
147
147
|
const nonPrimitiveType = entries[0][0].slice(1, -1);
|
|
148
148
|
switch (nonPrimitiveType) {
|
|
149
|
-
case
|
|
149
|
+
case types_js_1.undefinedNonPrimitiveType: {
|
|
150
150
|
return undefined;
|
|
151
151
|
}
|
|
152
|
-
case
|
|
152
|
+
case types_js_1.bigintNonPrimitiveType: {
|
|
153
153
|
const bigint = BigInt(nonPrimitiveData);
|
|
154
154
|
context.references.set(path, bigint);
|
|
155
155
|
return bigint;
|
|
156
156
|
}
|
|
157
|
-
case
|
|
157
|
+
case types_js_1.globalSymbolNonPrimitiveType: {
|
|
158
158
|
const symbol = Symbol.for(nonPrimitiveData);
|
|
159
159
|
context.references.set(path, symbol);
|
|
160
160
|
return symbol;
|
|
161
161
|
}
|
|
162
|
-
case
|
|
162
|
+
case types_js_1.functionNonPrimitiveType: {
|
|
163
163
|
if (context.options.allowUnsafe !== true) {
|
|
164
164
|
throw new Error('functions are only allowed if allowUnsafe option is true');
|
|
165
165
|
}
|
|
@@ -167,10 +167,10 @@ function _deserialize(serialized, context, path, depth) {
|
|
|
167
167
|
context.references.set(path, fn);
|
|
168
168
|
return fn;
|
|
169
169
|
}
|
|
170
|
-
case
|
|
170
|
+
case types_js_1.rawNonPrimitiveType: {
|
|
171
171
|
return nonPrimitiveData;
|
|
172
172
|
}
|
|
173
|
-
case
|
|
173
|
+
case types_js_1.refNonPrimitiveType: {
|
|
174
174
|
const dereferenced = context.references.get(nonPrimitiveData);
|
|
175
175
|
if (dereferenced == undefined) {
|
|
176
176
|
throw new Error(`reference ${nonPrimitiveData} not found`);
|
|
@@ -178,22 +178,22 @@ function _deserialize(serialized, context, path, depth) {
|
|
|
178
178
|
return dereferenced;
|
|
179
179
|
}
|
|
180
180
|
default: {
|
|
181
|
-
const registration = (0,
|
|
181
|
+
const registration = (0, serializable_js_1.getSerializerByTypeName)(nonPrimitiveType);
|
|
182
182
|
if (registration == undefined) {
|
|
183
183
|
throw new Error(`non-primitive type ${nonPrimitiveType} not registered`);
|
|
184
184
|
}
|
|
185
|
-
const forwardRef =
|
|
185
|
+
const forwardRef = forward_ref_js_1.ForwardRef.create();
|
|
186
186
|
context.references.set(path, forwardRef);
|
|
187
187
|
context.addToDeserializeQueue(() => {
|
|
188
188
|
const deserializedData = _deserialize(nonPrimitiveData, context, `${path}['<${nonPrimitiveType}>']`, depth + 1);
|
|
189
189
|
context.addToDeserializeQueue(() => {
|
|
190
190
|
const deserialized = registration.deserializer(deserializedData, context.tryAddToDerefQueue, context.options.data ?? {});
|
|
191
|
-
|
|
191
|
+
forward_ref_js_1.ForwardRef.setRef(forwardRef, deserialized);
|
|
192
192
|
}, depth);
|
|
193
193
|
}, depth);
|
|
194
194
|
if (depth == 0) {
|
|
195
195
|
drainQueues(context);
|
|
196
|
-
return
|
|
196
|
+
return forward_ref_js_1.ForwardRef.deref(forwardRef);
|
|
197
197
|
}
|
|
198
198
|
return forwardRef;
|
|
199
199
|
}
|
|
@@ -245,8 +245,8 @@ function getDeserializeContext(serializedRoot, options) {
|
|
|
245
245
|
options: options ?? {},
|
|
246
246
|
references: new Map(),
|
|
247
247
|
deserializeCounter: 0,
|
|
248
|
-
deserializeQueue: new
|
|
249
|
-
derefQueue: new
|
|
248
|
+
deserializeQueue: new sorted_array_list_js_1.SortedArrayList(undefined, (0, comparison_js_1.compareByValueSelection)((item) => item.depth, (item) => item.counter)),
|
|
249
|
+
derefQueue: new circular_buffer_js_1.CircularBuffer(),
|
|
250
250
|
addToDeserializeQueue(fn, depth) {
|
|
251
251
|
context.deserializeQueue.add({ depth, counter: context.deserializeCounter++, fn });
|
|
252
252
|
},
|
|
@@ -256,11 +256,11 @@ function getDeserializeContext(serializedRoot, options) {
|
|
|
256
256
|
}
|
|
257
257
|
},
|
|
258
258
|
tryAddToDerefQueue(value, callback) {
|
|
259
|
-
if (!
|
|
259
|
+
if (!forward_ref_js_1.ForwardRef.isForwardRef(value) || (context.options.doNotDereferenceForwardRefs == true)) {
|
|
260
260
|
return false;
|
|
261
261
|
}
|
|
262
262
|
context.derefQueue.add(() => {
|
|
263
|
-
const dereferenced =
|
|
263
|
+
const dereferenced = forward_ref_js_1.ForwardRef.deref(value);
|
|
264
264
|
callback(dereferenced);
|
|
265
265
|
});
|
|
266
266
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|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AO,CAAC,2BAA2B,IAAI,IAAI,CAAC,EAAE;gBAC5F,OAAO,KAAK,CAAC;aACd;YAED,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;gBAC1B,MAAM,YAAY,GAAG,2BAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC7C,QAAQ,CAAC,YAAY,CAAC,CAAC;YACzB,CAAC,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,WAAW,CAAC,EAAE,gBAAgB,EAAE,UAAU,EAAsB;IACvE,OAAO,gBAAgB,CAAC,IAAI,GAAG,CAAC,EAAE;QAChC,MAAM,IAAI,GAAG,gBAAgB,CAAC,UAAU,EAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,EAAE,CAAC;KACX;IAED,KAAK,MAAM,EAAE,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE;QACrC,EAAE,EAAE,CAAC;KACN;AACH,CAAC"}
|
package/serializer/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AbstractConstructor, JsonPrimitive, Nested, Record, StringMap } from "../types";
|
|
1
|
+
import type { AbstractConstructor, JsonPrimitive, Nested, Record, StringMap } from "../types.js";
|
|
2
2
|
declare const serializedSymbol: unique symbol;
|
|
3
3
|
declare const stringSerializedSymbol: unique symbol;
|
|
4
4
|
declare const decycledSymbol: unique symbol;
|
package/sse/index.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './server-sent-events';
|
|
1
|
+
export * from './server-sent-events-source.js';
|
|
2
|
+
export * from './server-sent-events.js';
|
package/sse/index.js
CHANGED
|
@@ -14,5 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./server-sent-events"), exports);
|
|
17
|
+
__exportStar(require("./server-sent-events-source.js"), exports);
|
|
18
|
+
__exportStar(require("./server-sent-events.js"), exports);
|
|
18
19
|
//# sourceMappingURL=index.js.map
|
package/sse/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/sse/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/sse/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iEAA+C;AAC/C,0DAAwC"}
|
package/sse/model.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export type ServerSentEventBase<Data> = {
|
|
2
|
+
/**
|
|
3
|
+
* Name of the event.
|
|
4
|
+
*/
|
|
5
|
+
name?: string;
|
|
6
|
+
/**
|
|
7
|
+
* Data of the event.
|
|
8
|
+
*/
|
|
9
|
+
data?: Data;
|
|
10
|
+
/**
|
|
11
|
+
* Id of the event.
|
|
12
|
+
*/
|
|
13
|
+
id?: string;
|
|
14
|
+
/**
|
|
15
|
+
* Retry recommendation for consumers in milliseconds.
|
|
16
|
+
*/
|
|
17
|
+
retry?: number;
|
|
18
|
+
};
|
|
19
|
+
export type ServerSentTextEvent = ServerSentEventBase<string>;
|
|
20
|
+
export type ServerSentJsonEvent = ServerSentEventBase<any>;
|
|
21
|
+
export type ServerSentEvent = ServerSentTextEvent | ServerSentJsonEvent;
|
package/sse/model.js
ADDED
package/sse/model.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../source/sse/model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ServerSentJsonEvent, ServerSentTextEvent } from './model';
|
|
2
|
+
export declare class ServerSentEventsSource {
|
|
3
|
+
private readonly writable;
|
|
4
|
+
private readonly writer;
|
|
5
|
+
private _closed;
|
|
6
|
+
private _error;
|
|
7
|
+
readonly readable: ReadableStream<string>;
|
|
8
|
+
get closed(): boolean;
|
|
9
|
+
get error(): Error | undefined;
|
|
10
|
+
constructor();
|
|
11
|
+
close(): Promise<void>;
|
|
12
|
+
sendComment(comment: string): Promise<void>;
|
|
13
|
+
sendText({ name, data, id, retry }: ServerSentTextEvent): Promise<void>;
|
|
14
|
+
sendJson({ name, data, id, retry }: ServerSentJsonEvent): Promise<void>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ServerSentEventsSource = void 0;
|
|
4
|
+
const type_guards_js_1 = require("../utils/type-guards.js");
|
|
5
|
+
class ServerSentEventsSource {
|
|
6
|
+
writable;
|
|
7
|
+
writer;
|
|
8
|
+
_closed;
|
|
9
|
+
_error;
|
|
10
|
+
readable;
|
|
11
|
+
get closed() {
|
|
12
|
+
return this._closed;
|
|
13
|
+
}
|
|
14
|
+
get error() {
|
|
15
|
+
return this._error;
|
|
16
|
+
}
|
|
17
|
+
constructor() {
|
|
18
|
+
const { writable, readable } = new TransformStream();
|
|
19
|
+
this.writable = writable;
|
|
20
|
+
this.readable = readable;
|
|
21
|
+
this._closed = false;
|
|
22
|
+
this._error = undefined;
|
|
23
|
+
this.writer = this.writable.getWriter();
|
|
24
|
+
this.writer.closed
|
|
25
|
+
.then(() => (this._closed = true))
|
|
26
|
+
.catch((error) => (this._error = error));
|
|
27
|
+
}
|
|
28
|
+
async close() {
|
|
29
|
+
await this.writer.close();
|
|
30
|
+
}
|
|
31
|
+
async sendComment(comment) {
|
|
32
|
+
const text = formatText(comment, '');
|
|
33
|
+
await this.writer.write(text);
|
|
34
|
+
}
|
|
35
|
+
async sendText({ name, data, id, retry }) {
|
|
36
|
+
let message = '';
|
|
37
|
+
if ((0, type_guards_js_1.isDefined)(name)) {
|
|
38
|
+
message += formatText(name, 'event');
|
|
39
|
+
}
|
|
40
|
+
if ((0, type_guards_js_1.isDefined)(data)) {
|
|
41
|
+
message += formatText(data, 'data');
|
|
42
|
+
}
|
|
43
|
+
if ((0, type_guards_js_1.isDefined)(id)) {
|
|
44
|
+
message += formatText(id, 'id');
|
|
45
|
+
}
|
|
46
|
+
if ((0, type_guards_js_1.isDefined)(retry)) {
|
|
47
|
+
message += formatText(retry.toString(), 'retry');
|
|
48
|
+
}
|
|
49
|
+
message += '\n';
|
|
50
|
+
await this.writer.write(message);
|
|
51
|
+
}
|
|
52
|
+
async sendJson({ name, data, id, retry }) {
|
|
53
|
+
return this.sendText({
|
|
54
|
+
name,
|
|
55
|
+
data: JSON.stringify(data),
|
|
56
|
+
id,
|
|
57
|
+
retry
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
exports.ServerSentEventsSource = ServerSentEventsSource;
|
|
62
|
+
function formatText(text, type) {
|
|
63
|
+
const formatted = text.split('\n').map((line) => `${type}: ${line}`).join('\n');
|
|
64
|
+
return `${formatted}\n`;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=server-sent-events-source.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server-sent-events-source.js","sourceRoot":"","sources":["../../source/sse/server-sent-events-source.ts"],"names":[],"mappings":";;;AAAA,4DAAmD;AAGnD,MAAa,sBAAsB;IAChB,QAAQ,CAAyB;IACjC,MAAM,CAAsC;IAErD,OAAO,CAAU;IACjB,MAAM,CAAoB;IAEzB,QAAQ,CAAyB;IAE1C,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,OAAO,CAAC;IACtB,CAAC;IAED,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;QACE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,IAAI,eAAe,EAAkB,CAA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IAAA,0BAAS,EAAC,KAAK,CAAC,EAAE;YACpB,OAAO,IAAI,UAAU,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;SAClD;QAED,OAAO,IAAI,IAAI,CAAC;QAEhB,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACnC,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,KAAK,EAAuB;QAC3D,OAAO,IAAI,CAAC,QAAQ,CAAC;YACnB,IAAI;YACJ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;YAC1B,EAAE;YACF,KAAK;SACN,CAAC,CAAC;IACL,CAAC;CACF;AAzED,wDAyEC;AAED,SAAS,UAAU,CAAC,IAAY,EAAE,IAAY;IAC5C,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,GAAG,IAAI,KAAK,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAChF,OAAO,GAAG,SAAS,IAAI,CAAC;AAC1B,CAAC"}
|
|
@@ -1,34 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export declare class SeverSentEvents {
|
|
22
|
-
private readonly writable;
|
|
23
|
-
private readonly writer;
|
|
24
|
-
private _closed;
|
|
25
|
-
private _error;
|
|
26
|
-
readonly readable: ReadableStream<string>;
|
|
27
|
-
get closed(): boolean;
|
|
28
|
-
get error(): Error | undefined;
|
|
29
|
-
constructor();
|
|
30
|
-
close(): Promise<void>;
|
|
31
|
-
sendComment(comment: string): Promise<void>;
|
|
32
|
-
sendText({ name, data, id, retry }: SeverSentEventsTextEvent): Promise<void>;
|
|
33
|
-
sendJson({ name, data, id, retry }: SeverSentEventsJsonEvent): Promise<void>;
|
|
1
|
+
import type { Observable } from 'rxjs';
|
|
2
|
+
export declare enum ServerSentEventsState {
|
|
3
|
+
Connecting = 0,
|
|
4
|
+
Open = 1,
|
|
5
|
+
Closed = 2
|
|
6
|
+
}
|
|
7
|
+
export declare class ServerSentEvents {
|
|
8
|
+
private readonly eventSource;
|
|
9
|
+
private readonly closeSubject;
|
|
10
|
+
readonly open$: Observable<void>;
|
|
11
|
+
readonly close$: Observable<void>;
|
|
12
|
+
readonly error$: Observable<Event>;
|
|
13
|
+
readonly state$: Observable<ServerSentEventsState>;
|
|
14
|
+
readonly isConnecting$: Observable<boolean>;
|
|
15
|
+
readonly isOpen$: Observable<boolean>;
|
|
16
|
+
readonly isClosed$: Observable<boolean>;
|
|
17
|
+
get state(): ServerSentEventsState;
|
|
18
|
+
constructor(url: string, options?: EventSourceInit);
|
|
19
|
+
message$(event?: string): Observable<MessageEvent<string>>;
|
|
20
|
+
close(): void;
|
|
34
21
|
}
|