@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
package/reflection/decorators.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Parameter = exports.ConstructorParameter = exports.MethodParameter = exports.Method = exports.PropertyOrAccessor = exports.Accessor = exports.Property = exports.Class = exports.Decorate = void 0;
|
|
5
|
-
const
|
|
5
|
+
const noop_js_1 = require("../utils/noop.js");
|
|
6
6
|
require("reflect-metadata");
|
|
7
|
-
const
|
|
7
|
+
const utils_js_1 = require("./utils.js");
|
|
8
8
|
function Decorate({ handler, ...options } = {}) {
|
|
9
|
-
return (0,
|
|
9
|
+
return (0, utils_js_1.createDecorator)({
|
|
10
10
|
...options,
|
|
11
11
|
class: true,
|
|
12
12
|
property: true,
|
|
@@ -15,39 +15,39 @@ function Decorate({ handler, ...options } = {}) {
|
|
|
15
15
|
parameter: true,
|
|
16
16
|
methodParameter: true,
|
|
17
17
|
constructorParameter: true
|
|
18
|
-
}, handler ??
|
|
18
|
+
}, handler ?? noop_js_1.noop);
|
|
19
19
|
}
|
|
20
20
|
exports.Decorate = Decorate;
|
|
21
21
|
function Class(options) {
|
|
22
|
-
return (0,
|
|
22
|
+
return (0, utils_js_1.createClassDecorator)(options);
|
|
23
23
|
}
|
|
24
24
|
exports.Class = Class;
|
|
25
25
|
function Property(options) {
|
|
26
|
-
return (0,
|
|
26
|
+
return (0, utils_js_1.createPropertyDecorator)(options);
|
|
27
27
|
}
|
|
28
28
|
exports.Property = Property;
|
|
29
29
|
function Accessor(options) {
|
|
30
|
-
return (0,
|
|
30
|
+
return (0, utils_js_1.createAccessorDecorator)(options);
|
|
31
31
|
}
|
|
32
32
|
exports.Accessor = Accessor;
|
|
33
33
|
function PropertyOrAccessor(options) {
|
|
34
|
-
return (0,
|
|
34
|
+
return (0, utils_js_1.createPropertyOrAccessorDecorator)(options);
|
|
35
35
|
}
|
|
36
36
|
exports.PropertyOrAccessor = PropertyOrAccessor;
|
|
37
37
|
function Method(options) {
|
|
38
|
-
return (0,
|
|
38
|
+
return (0, utils_js_1.createMethodDecorator)(options);
|
|
39
39
|
}
|
|
40
40
|
exports.Method = Method;
|
|
41
41
|
function MethodParameter(options) {
|
|
42
|
-
return (0,
|
|
42
|
+
return (0, utils_js_1.createMethodParameterDecorator)(options);
|
|
43
43
|
}
|
|
44
44
|
exports.MethodParameter = MethodParameter;
|
|
45
45
|
function ConstructorParameter(options) {
|
|
46
|
-
return (0,
|
|
46
|
+
return (0, utils_js_1.createConstructorParameterDecorator)(options);
|
|
47
47
|
}
|
|
48
48
|
exports.ConstructorParameter = ConstructorParameter;
|
|
49
49
|
function Parameter(options) {
|
|
50
|
-
return (0,
|
|
50
|
+
return (0, utils_js_1.createParameterDecorator)(options);
|
|
51
51
|
}
|
|
52
52
|
exports.Parameter = Parameter;
|
|
53
53
|
//# sourceMappingURL=decorators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decorators.js","sourceRoot":"","sources":["../../source/reflection/decorators.ts"],"names":[],"mappings":";AAAA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EAAC,OAAO,CAAC,CAAC;AACtD,CAAC;AAFD,oDAEC;AAED,SAAgB,SAAS,CAAC,OAAqD;IAC7E,OAAO,IAAA,mCAAwB,EAAC,OAAO,CAAC,CAAC;AAC3C,CAAC;AAFD,8BAEC"}
|
package/reflection/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './decorator-data';
|
|
2
|
-
export * from './decorators';
|
|
3
|
-
export * from './registry';
|
|
4
|
-
export * from './types';
|
|
5
|
-
export * from './utils';
|
|
1
|
+
export * from './decorator-data.js';
|
|
2
|
+
export * from './decorators.js';
|
|
3
|
+
export * from './registry.js';
|
|
4
|
+
export * from './types.js';
|
|
5
|
+
export * from './utils.js';
|
package/reflection/index.js
CHANGED
|
@@ -14,9 +14,9 @@ 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("./decorator-data"), exports);
|
|
18
|
-
__exportStar(require("./decorators"), exports);
|
|
19
|
-
__exportStar(require("./registry"), exports);
|
|
20
|
-
__exportStar(require("./types"), exports);
|
|
21
|
-
__exportStar(require("./utils"), exports);
|
|
17
|
+
__exportStar(require("./decorator-data.js"), exports);
|
|
18
|
+
__exportStar(require("./decorators.js"), exports);
|
|
19
|
+
__exportStar(require("./registry.js"), exports);
|
|
20
|
+
__exportStar(require("./types.js"), exports);
|
|
21
|
+
__exportStar(require("./utils.js"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
package/reflection/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/reflection/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/reflection/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,sDAAoC;AACpC,kDAAgC;AAChC,gDAA8B;AAC9B,6CAA2B;AAC3B,6CAA2B"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ReflectionDataMap = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const merge_js_1 = require("../utils/merge.js");
|
|
5
|
+
const object_js_1 = require("../utils/object/object.js");
|
|
6
|
+
const type_guards_js_1 = require("../utils/type-guards.js");
|
|
7
7
|
class ReflectionDataMap {
|
|
8
8
|
data;
|
|
9
9
|
constructor() {
|
|
@@ -17,7 +17,7 @@ class ReflectionDataMap {
|
|
|
17
17
|
}
|
|
18
18
|
get(key) {
|
|
19
19
|
const data = this.tryGet(key);
|
|
20
|
-
if ((0,
|
|
20
|
+
if ((0, type_guards_js_1.isUndefined)(data)) {
|
|
21
21
|
throw new Error(`No data for ${String(key)} available.`);
|
|
22
22
|
}
|
|
23
23
|
return data;
|
|
@@ -28,11 +28,11 @@ class ReflectionDataMap {
|
|
|
28
28
|
return;
|
|
29
29
|
}
|
|
30
30
|
const existing = this.data.get(key) ?? {};
|
|
31
|
-
const newData = (0,
|
|
31
|
+
const newData = (0, merge_js_1.merge)(existing, value);
|
|
32
32
|
this.data.set(key, newData);
|
|
33
33
|
}
|
|
34
34
|
setMany(data, mergeValues = false) {
|
|
35
|
-
for (const [key, value] of (0,
|
|
35
|
+
for (const [key, value] of (0, object_js_1.objectEntries)(data)) {
|
|
36
36
|
this.set(key, value, mergeValues);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reflection-data-map.js","sourceRoot":"","sources":["../../source/reflection/reflection-data-map.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"reflection-data-map.js","sourceRoot":"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9C,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,WAAW,CAAC,CAAC;SACnC;IACH,CAAC;CACF;AA1CD,8CA0CC"}
|
package/reflection/registry.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AbstractConstructor } from "../types";
|
|
2
|
-
import { ReflectionDataMap } from './reflection-data-map';
|
|
3
|
-
import type { DecoratorData } from './types';
|
|
1
|
+
import type { AbstractConstructor } from "../types.js";
|
|
2
|
+
import { ReflectionDataMap } from './reflection-data-map.js';
|
|
3
|
+
import type { DecoratorData } from './types.js';
|
|
4
4
|
export type ReflectionMetadata = TypeMetadata | PropertyMetadata | MethodMetadata | ConstructorParameterMetadata | MethodParameterMetadata;
|
|
5
5
|
export type MetadataType = 'type' | 'property' | 'method' | 'method-parameter' | 'constructor-parameter';
|
|
6
6
|
export type MetadataBase<T extends MetadataType> = {
|
package/reflection/registry.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reflectionRegistry = exports.ReflectionRegistry = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
4
|
+
const factory_map_js_1 = require("../utils/factory-map.js");
|
|
5
|
+
const lazy_property_js_1 = require("../utils/object/lazy-property.js");
|
|
6
|
+
const reflection_js_1 = require("../utils/reflection.js");
|
|
7
|
+
const type_guards_js_1 = require("../utils/type-guards.js");
|
|
8
|
+
const decorator_data_js_1 = require("./decorator-data.js");
|
|
9
|
+
const reflection_data_map_js_1 = require("./reflection-data-map.js");
|
|
10
10
|
class ReflectionRegistry {
|
|
11
11
|
metadataMap;
|
|
12
12
|
finalizedTypesSet;
|
|
@@ -19,7 +19,7 @@ class ReflectionRegistry {
|
|
|
19
19
|
}
|
|
20
20
|
getMetadata(type) {
|
|
21
21
|
const metadata = this.metadataMap.get(type);
|
|
22
|
-
if ((0,
|
|
22
|
+
if ((0, type_guards_js_1.isDefined)(metadata) && !this.finalizedTypesSet.has(type)) {
|
|
23
23
|
metadata.properties = new Map(metadata.properties);
|
|
24
24
|
metadata.staticProperties = new Map(metadata.staticProperties);
|
|
25
25
|
metadata.methods = new Map(metadata.methods);
|
|
@@ -29,7 +29,7 @@ class ReflectionRegistry {
|
|
|
29
29
|
return metadata;
|
|
30
30
|
}
|
|
31
31
|
register(target, propertyKey, descriptorOrParameterIndex) {
|
|
32
|
-
const data = (0,
|
|
32
|
+
const data = (0, decorator_data_js_1.getDecoratorData)(target, propertyKey, descriptorOrParameterIndex);
|
|
33
33
|
this.registerDecoratorData(data);
|
|
34
34
|
return data;
|
|
35
35
|
}
|
|
@@ -50,7 +50,7 @@ class ReflectionRegistry {
|
|
|
50
50
|
return (data.static ? metadata.staticMethods : metadata.methods).get(data.methodKey);
|
|
51
51
|
}
|
|
52
52
|
else if (data.type == 'constructor-parameter') { // eslint-disable-line @typescript-eslint/no-unnecessary-condition
|
|
53
|
-
if ((0,
|
|
53
|
+
if ((0, type_guards_js_1.isUndefined)(metadata.parameters)) {
|
|
54
54
|
throw new Error('Constructor parameters are not available. (missing decoration?)');
|
|
55
55
|
}
|
|
56
56
|
return metadata.parameters[data.index];
|
|
@@ -78,43 +78,43 @@ class ReflectionRegistry {
|
|
|
78
78
|
}
|
|
79
79
|
// eslint-disable-next-line max-lines-per-function
|
|
80
80
|
initializeType(type) {
|
|
81
|
-
return (0,
|
|
81
|
+
return (0, lazy_property_js_1.lazyObject)({
|
|
82
82
|
metadataType: 'type',
|
|
83
|
-
constructor: (0,
|
|
84
|
-
parent: (0,
|
|
83
|
+
constructor: (0, lazy_property_js_1.lazyObjectValue)(type),
|
|
84
|
+
parent: (0, lazy_property_js_1.lazyObjectValue)(Reflect.getPrototypeOf(type)),
|
|
85
85
|
parameters: {
|
|
86
86
|
initializer() {
|
|
87
|
-
const parametersTypes = (0,
|
|
88
|
-
return parametersTypes?.map((parameterType, index) => ({ metadataType: 'constructor-parameter', index, type: parameterType, data: new
|
|
87
|
+
const parametersTypes = (0, reflection_js_1.getParameterTypes)(type);
|
|
88
|
+
return parametersTypes?.map((parameterType, index) => ({ metadataType: 'constructor-parameter', index, type: parameterType, data: new reflection_data_map_js_1.ReflectionDataMap() }));
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
properties: {
|
|
92
|
-
initializer: () => new
|
|
92
|
+
initializer: () => new factory_map_js_1.FactoryMap((key) => ({ metadataType: 'property', key, type: (0, reflection_js_1.getDesignType)(type.prototype, key), isAccessor: false, data: new reflection_data_map_js_1.ReflectionDataMap() }))
|
|
93
93
|
},
|
|
94
94
|
staticProperties: {
|
|
95
|
-
initializer: () => new
|
|
95
|
+
initializer: () => new factory_map_js_1.FactoryMap((key) => ({ metadataType: 'property', key, type: (0, reflection_js_1.getDesignType)(type, key), isAccessor: false, data: new reflection_data_map_js_1.ReflectionDataMap() }))
|
|
96
96
|
},
|
|
97
97
|
methods: {
|
|
98
|
-
initializer: () => new
|
|
99
|
-
const parameters = (0,
|
|
100
|
-
const returnType = (0,
|
|
101
|
-
if ((0,
|
|
98
|
+
initializer: () => new factory_map_js_1.FactoryMap((key) => {
|
|
99
|
+
const parameters = (0, reflection_js_1.getParameterTypes)(type.prototype, key);
|
|
100
|
+
const returnType = (0, reflection_js_1.getReturnType)(type.prototype, key);
|
|
101
|
+
if ((0, type_guards_js_1.isUndefined)(parameters)) {
|
|
102
102
|
throw new Error(`Could not get parameters for method ${key.toString()} of type ${type.name}`);
|
|
103
103
|
}
|
|
104
|
-
return { metadataType: 'method', parameters: parameters.map((parameter, index) => ({ metadataType: 'method-parameter', index, type: parameter, data: new
|
|
104
|
+
return { metadataType: 'method', parameters: parameters.map((parameter, index) => ({ metadataType: 'method-parameter', index, type: parameter, data: new reflection_data_map_js_1.ReflectionDataMap() })), returnType, data: new reflection_data_map_js_1.ReflectionDataMap() };
|
|
105
105
|
})
|
|
106
106
|
},
|
|
107
107
|
staticMethods: {
|
|
108
|
-
initializer: () => new
|
|
109
|
-
const parameters = (0,
|
|
110
|
-
const returnType = (0,
|
|
111
|
-
if ((0,
|
|
108
|
+
initializer: () => new factory_map_js_1.FactoryMap((key) => {
|
|
109
|
+
const parameters = (0, reflection_js_1.getParameterTypes)(type, key);
|
|
110
|
+
const returnType = (0, reflection_js_1.getReturnType)(type, key);
|
|
111
|
+
if ((0, type_guards_js_1.isUndefined)(parameters)) {
|
|
112
112
|
throw new Error(`Could not get parameters for static method ${key.toString()} of type ${type.name}`);
|
|
113
113
|
}
|
|
114
|
-
return { metadataType: 'method', parameters: parameters.map((parameter, index) => ({ metadataType: 'method-parameter', index, type: parameter, data: new
|
|
114
|
+
return { metadataType: 'method', parameters: parameters.map((parameter, index) => ({ metadataType: 'method-parameter', index, type: parameter, data: new reflection_data_map_js_1.ReflectionDataMap() })), returnType, data: new reflection_data_map_js_1.ReflectionDataMap() };
|
|
115
115
|
})
|
|
116
116
|
},
|
|
117
|
-
data: { initializer: () => new
|
|
117
|
+
data: { initializer: () => new reflection_data_map_js_1.ReflectionDataMap() }
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../source/reflection/registry.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"registry.js","sourceRoot":"","sources":["../../source/reflection/registry.ts"],"names":[],"mappings":";;;AAEA,4DAAoD;AACpD,uEAA8E;AAC9E,0DAAwF;AACxF,4DAAgE;AAChE,2DAAuD;AACvD,qEAA6D;AAqD7D,MAAa,kBAAkB;IACZ,WAAW,CAA6C;IACxD,iBAAiB,CAA+B;IAEjE;QACE,IAAI,CAAC,WAAW,GAAG,IAAI,OAAO,EAAE,CAAC;QACjC,IAAI,CAAC,iBAAiB,GAAG,IAAI,OAAO,EAAE,CAAC;IACzC,CAAC;IAED,OAAO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AAC,CAAC,GAAG,EAAkB,EAAE;oBACxD,MAAM,UAAU,GAAG,IAAA,iCAAiB,EAAC,IAAc,EAAE,GAAG,CAAC,CAAC;oBAC1D,MAAM,UAAU,GAAG,IAAA,6BAAa,EAAC,IAAc,EAAE,GAAG,CAAC,CAAC;oBAEtD,IAAI,IAAA,4BAAW,EAAC,UAAU,CAAC,EAAE;wBAC3B,MAAM,IAAI,KAAK,CAAC,8CAA8C,GAAG,CAAC,QAAQ,EAAE,YAAY,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;qBACtG;oBAED,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,KAAK,EAA2B,EAAE,CAAC,CAAC,EAAE,YAAY,EAAE,kBAAkB,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,0CAAiB,EAAE,EAAE,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,0CAAiB,EAAE,EAAE,CAAC;gBACzP,CAAC,CAAC;aACH;YACD,IAAI,EAAE,EAAE,WAAW,EAAE,GAAG,EAAE,CAAC,IAAI,0CAAiB,EAAE,EAAE;SACrD,CAAC,CAAC;IACL,CAAC;CACF;AApID,gDAoIC;AAEY,QAAA,kBAAkB,GAAG,IAAI,kBAAkB,EAAE,CAAC"}
|
package/reflection/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AbstractConstructor, Constructor, Record } from "../types";
|
|
1
|
+
import type { AbstractConstructor, Constructor, Record } from "../types.js";
|
|
2
2
|
import type { UnionToIntersection } from 'type-fest';
|
|
3
|
-
import type { ConstructorParameterMetadata, MethodMetadata, MethodParameterMetadata, ParameterMetadata, PropertyMetadata, TypeMetadata } from './registry';
|
|
3
|
+
import type { ConstructorParameterMetadata, MethodMetadata, MethodParameterMetadata, ParameterMetadata, PropertyMetadata, TypeMetadata } from './registry.js';
|
|
4
4
|
export type DecoratorType = 'class' | 'property' | 'accessor' | 'method' | 'parameter' | 'methodParameter' | 'constructorParameter';
|
|
5
5
|
export type DecoratorHandler<T extends DecoratorType = DecoratorType> = (data: DecoratorData<T>, metadata: DecoratorMetadata<T>, originalArguments: Parameters<DecoratorUnion<T>>) => DecoratorHandlerReturnType<T>;
|
|
6
6
|
export type DecoratorHandlerReturnType<T extends DecoratorType = DecoratorType> = DecoratorOptionsTypeMap<DecoratorHandlerReturnTypeMap, T>;
|
package/reflection/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { AbstractConstructor, Constructor, OneOrMany, PropertiesOfType, Record, TypedOmit } from "../types";
|
|
2
|
-
import type { CombinedDecoratorParameters, Decorator, DecoratorData, DecoratorHandler, DecoratorMetadata, DecoratorType, DecoratorUnion } from './types';
|
|
1
|
+
import type { AbstractConstructor, Constructor, OneOrMany, PropertiesOfType, Record, TypedOmit } from "../types.js";
|
|
2
|
+
import type { CombinedDecoratorParameters, Decorator, DecoratorData, DecoratorHandler, DecoratorMetadata, DecoratorType, DecoratorUnion } from './types.js';
|
|
3
3
|
export type CreateDecoratorTypeOptions = {
|
|
4
4
|
[P in DecoratorType]?: boolean;
|
|
5
5
|
};
|
package/reflection/utils.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.printType = exports.getTypeInfoString = exports.getConstructor = exports.wrapDecorator = exports.wrapDecoratorFactory = exports.createParameterDecorator = exports.createConstructorParameterDecorator = exports.createMethodParameterDecorator = exports.createMethodDecorator = exports.createPropertyOrAccessorDecorator = exports.createAccessorDecorator = exports.createPropertyDecorator = exports.createClassDecorator = exports.createDecorator = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
4
|
+
const array_js_1 = require("../utils/array/array.js");
|
|
5
|
+
const noop_js_1 = require("../utils/noop.js");
|
|
6
|
+
const type_guards_js_1 = require("../utils/type-guards.js");
|
|
7
|
+
const decorator_data_js_1 = require("./decorator-data.js");
|
|
8
|
+
const registry_js_1 = require("./registry.js");
|
|
9
9
|
// eslint-disable-next-line max-lines-per-function
|
|
10
|
-
function createDecorator(options, handler =
|
|
10
|
+
function createDecorator(options, handler = noop_js_1.noop) {
|
|
11
11
|
// eslint-disable-next-line max-statements, max-lines-per-function
|
|
12
12
|
function decoratorWrapper(...args) {
|
|
13
|
-
const data = (0,
|
|
13
|
+
const data = (0, decorator_data_js_1.getDecoratorData)(...args);
|
|
14
14
|
const optionsType = (data.type == 'constructor-parameter') ? 'constructorParameter'
|
|
15
15
|
: (data.type == 'method-parameter') ? 'methodParameter'
|
|
16
16
|
: data.type;
|
|
17
17
|
const valid = (options[optionsType] == true)
|
|
18
18
|
|| (optionsType == 'methodParameter' && ((options.methodParameter == true) || (options.parameter == true)))
|
|
19
19
|
|| (optionsType == 'constructorParameter' && ((options.constructorParameter == true) || (options.parameter == true)));
|
|
20
|
-
(0,
|
|
21
|
-
const metadata =
|
|
22
|
-
if ((0,
|
|
20
|
+
(0, type_guards_js_1.assert)(valid, () => `Decorator cannot be used for ${data.type}.`);
|
|
21
|
+
const metadata = registry_js_1.reflectionRegistry.registerDecoratorData(data);
|
|
22
|
+
if ((0, type_guards_js_1.isDefined)(options.data)) {
|
|
23
23
|
metadata.data.setMany(options.data, options.mergeData);
|
|
24
24
|
}
|
|
25
25
|
const result = handler(data, metadata, args);
|
|
26
|
-
if ((0,
|
|
27
|
-
for (const include of (0,
|
|
26
|
+
if ((0, type_guards_js_1.isDefined)(options.include)) {
|
|
27
|
+
for (const include of (0, array_js_1.toArray)(options.include)) {
|
|
28
28
|
include(...args); // eslint-disable-line @typescript-eslint/no-unsafe-argument
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -90,31 +90,31 @@ function wrapDecorator(decorator, options) {
|
|
|
90
90
|
}
|
|
91
91
|
exports.wrapDecorator = wrapDecorator;
|
|
92
92
|
function getConstructor(constructorOrTarget) {
|
|
93
|
-
return (0,
|
|
93
|
+
return (0, type_guards_js_1.isFunction)(constructorOrTarget)
|
|
94
94
|
? constructorOrTarget
|
|
95
95
|
: constructorOrTarget.constructor;
|
|
96
96
|
}
|
|
97
97
|
exports.getConstructor = getConstructor;
|
|
98
98
|
function getTypeInfoString(type) {
|
|
99
99
|
const lines = [];
|
|
100
|
-
const metadata =
|
|
100
|
+
const metadata = registry_js_1.reflectionRegistry.getMetadata(type);
|
|
101
101
|
const constructorParameters = metadata?.parameters?.map((parameter) => parameter.type?.name ?? '<unknown>').join(', ') ?? '?';
|
|
102
102
|
lines.push(`${type.name}(${constructorParameters})`);
|
|
103
103
|
for (const [key, propertyMetadata] of (metadata?.staticProperties ?? [])) {
|
|
104
|
-
const propertyKey = (0,
|
|
104
|
+
const propertyKey = (0, type_guards_js_1.isSymbol)(key) ? `[${key.toString()}]` : key;
|
|
105
105
|
lines.push(` static ${propertyKey}: ${propertyMetadata.type.name}`);
|
|
106
106
|
}
|
|
107
107
|
for (const [key, methodMetadata] of (metadata?.staticMethods ?? [])) {
|
|
108
|
-
const propertyKey = (0,
|
|
108
|
+
const propertyKey = (0, type_guards_js_1.isSymbol)(key) ? `[${key.toString()}]` : key;
|
|
109
109
|
const parameters = methodMetadata.parameters.map((parameter) => parameter.type.name).join(', ');
|
|
110
110
|
lines.push(` static ${propertyKey}(${parameters}): ${methodMetadata.returnType?.name ?? 'void'}`);
|
|
111
111
|
}
|
|
112
112
|
for (const [key, propertyMetadata] of (metadata?.properties ?? [])) {
|
|
113
|
-
const propertyKey = (0,
|
|
113
|
+
const propertyKey = (0, type_guards_js_1.isSymbol)(key) ? `[${key.toString()}]` : key;
|
|
114
114
|
lines.push(` ${propertyKey}: ${propertyMetadata.type.name}`);
|
|
115
115
|
}
|
|
116
116
|
for (const [key, methodMetadata] of (metadata?.methods ?? [])) {
|
|
117
|
-
const propertyKey = (0,
|
|
117
|
+
const propertyKey = (0, type_guards_js_1.isSymbol)(key) ? `[${key.toString()}]` : key;
|
|
118
118
|
const parameters = methodMetadata.parameters.map((parameter) => parameter.type.name).join(', ');
|
|
119
119
|
lines.push(` ${propertyKey}(${parameters}): ${methodMetadata.returnType?.name ?? 'void'}`);
|
|
120
120
|
}
|
package/reflection/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../source/reflection/utils.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../source/reflection/utils.ts"],"names":[],"mappings":";;;AACA,sDAAiD;AACjD,8CAAuC;AACvC,4DAAiF;AACjF,2DAAuD;AACvD,+CAAmD;AA0BnD,kDAAkD;AAClD,SAAgB,eAAe,CAAgE,OAAU,EAAE,UAAoD,cAAI;IACjK,kEAAkE;IAClE,SAAS,gBAAgB,CAAC,GAAG,IAAiC;QAC5D,MAAM,IAAI,GAAG,IAAA,oCAAgB,EAAC,GAAG,IAAI,CAAC,CAAC;QACvC,MAAM,WAAW,GACf,CAAC,IAAI,CAAC,IAAI,IAAI,uBAAuB,CAAC,CAAC,CAAC,CAAC,sBAAsB;YAC7D,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,kBAAkB,CAAC,CAAC,CAAC,CAAC,iBAAiB;gBACrD,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;QAElB,MAAM,KAAK,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC;eACvC,CAAC,WAAW,IAAI,iBAAiB,IAAI,CAAC,CAAC,OAAO,CAAC,eAAe,IAAI,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC,CAAC;eACxG,CAAC,WAAW,IAAI,sBAAsB,IAAI,CAAC,CAAC,OAAO,CAAC,oBAAoB,IAAI,IAAI,CAAC,IAAI,CAAC,OAA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,CAAC,EAAE;QAC7D,MAAM,WAAW,GAAG,IAAA,yBAAQ,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;QAChE,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAChG,KAAK,CAAC,IAAI,CAAC,KAAK,WAAW,IAAI,UAAU,MAAM,cAAc,CAAC,UAAU,EAAE,IAAI,IAAI,MAAM,EAAE,CAAC,CAAC;KAC7F;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC;AA/BD,8CA+BC;AAED,SAAgB,SAAS,CAAC,IAAiB;IACzC,MAAM,IAAI,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IACrC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,iCAAiC;AACtD,CAAC;AAHD,8BAGC"}
|
package/require.js
CHANGED
package/require.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"require.js","sourceRoot":"","sources":["../source/require.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"require.js","sourceRoot":"","sources":["../source/require.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAAG,OAAgC,CAAC;AAElD,SAAgB,cAAc,CAAU,EAAU;IAChD,OAAO,QAAQ,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC;AAFD,wCAEC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import type { Observable } from 'rxjs';
|
|
3
3
|
import type * as NodeWorkerThreads from 'worker_threads';
|
|
4
|
-
import type { RpcMessage } from '../model';
|
|
5
|
-
import { RpcEndpoint } from '../rpc-endpoint';
|
|
4
|
+
import type { RpcMessage } from '../model.js';
|
|
5
|
+
import { RpcEndpoint } from '../rpc-endpoint.js';
|
|
6
6
|
type BrowserSource = Worker | MessagePort | Window | SharedWorker;
|
|
7
7
|
type NodeSource = NodeWorkerThreads.MessagePort | NodeWorkerThreads.Worker;
|
|
8
8
|
export type MessagePortRpcEndpointSource = BrowserSource | NodeSource;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.MessagePortRpcEndpoint = void 0;
|
|
4
|
-
const
|
|
4
|
+
const environment_js_1 = require("../../environment.js");
|
|
5
5
|
const rxjs_1 = require("rxjs");
|
|
6
|
-
const
|
|
7
|
-
class MessagePortRpcEndpoint extends
|
|
6
|
+
const rpc_endpoint_js_1 = require("../rpc-endpoint.js");
|
|
7
|
+
class MessagePortRpcEndpoint extends rpc_endpoint_js_1.RpcEndpoint {
|
|
8
8
|
source;
|
|
9
9
|
_postMessage;
|
|
10
10
|
supportsTransfers = true;
|
|
11
11
|
message$;
|
|
12
12
|
constructor(source) {
|
|
13
13
|
super();
|
|
14
|
-
this.source = (
|
|
14
|
+
this.source = (environment_js_1.isBrowser && ((typeof SharedWorker == 'function') && (source instanceof SharedWorker)))
|
|
15
15
|
? source.port
|
|
16
16
|
: source;
|
|
17
17
|
this.message$ = (0, rxjs_1.fromEvent)(this.source, 'message').pipe((0, rxjs_1.map)((message) => ((message instanceof MessageEvent) ? { ...message.data, metadata: { source: message } } : message)));
|
|
18
|
-
this._postMessage =
|
|
18
|
+
this._postMessage = environment_js_1.isBrowser
|
|
19
19
|
? (data, transfer) => this.source.postMessage(data, { transfer })
|
|
20
20
|
: (data, transfer) => this.source.postMessage(data, transfer);
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-port.rpc-endpoint.js","sourceRoot":"","sources":["../../../source/rpc/endpoints/message-port.rpc-endpoint.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"message-port.rpc-endpoint.js","sourceRoot":"","sources":["../../../source/rpc/endpoints/message-port.rpc-endpoint.ts"],"names":[],"mappings":";;;AAAA,yDAA6C;AAE7C,+BAAsC;AAGtC,wDAAiD;AAOjD,MAAa,sBAAuB,SAAQ,6BAAW;IACpC,MAAM,CAA+B;IACrC,YAAY,CAAsB;IAE1C,iBAAiB,GAAY,IAAI,CAAC;IAClC,QAAQ,CAAyB;IAE1C,YAAY,MAAoC;QAC9C,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,MAAM,GAAG,CAAC,0BAAS,IAAI,CAAC,CAAC,OAAO,YAAY,IAAI,UAAU,CAAC,IAAI,CAAC,MAAM,YAAY,YAAY,CAAC,CAAC,CAAC;YACpG,CAAC,CAAC,MAAM,CAAC,IAAI;YACb,CAAC,CAAC,MAAM,CAAC;QAEX,IAAI,CAAC,QAAQ,GAAG,IAAA,gBAAS,EAAE,IAAI,CAAC,MAAsB,EAAE,SAAS,CAAC,CAAC,IAAI,CACrE,IAAA,UAAG,EAAC,CAAC,OAAgB,EAAc,EAAE,CAAC,CAAC,CAAC,OAAO,YAAY,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE,GAAI,OAAO,CAAC,IAAmB,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,CAAC,CAAC,CAAC,OAAqB,CAAC,CAAC,CACxK,CAAC;QAEF,IAAI,CAAC,YAAY,GAAG,0BAAS;YAC3B,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAE,IAAI,CAAC,MAAsB,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,CAAC;YAClF,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAE,IAAI,CAAC,MAAqB,CAAC,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IAClF,CAAC;IAED,KAAK;QACH,IAAI,IAAI,CAAC,MAAM,YAAY,WAAW,EAAE;YACtC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;SACrB;IACH,CAAC;IAED,KAAK;QACH,IAAI,IAAI,CAAC,MAAM,YAAY,WAAW,EAAE;YACtC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;SACrB;IACH,CAAC;IAED,WAAW,CAAC,IAAS,EAAE,QAA4B;QACjD,IAAI,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACpC,CAAC;CACF;AAtCD,wDAsCC"}
|
package/rpc/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './model';
|
|
2
|
-
export * from './rpc';
|
|
3
|
-
export * from './rpc-endpoint';
|
|
4
|
-
export * from './rpc-error';
|
|
1
|
+
export * from './model.js';
|
|
2
|
+
export * from './rpc.js';
|
|
3
|
+
export * from './rpc-endpoint.js';
|
|
4
|
+
export * from './rpc-error.js';
|
package/rpc/index.js
CHANGED
|
@@ -14,8 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./model"), exports);
|
|
18
|
-
__exportStar(require("./rpc"), exports);
|
|
19
|
-
__exportStar(require("./rpc-endpoint"), exports);
|
|
20
|
-
__exportStar(require("./rpc-error"), exports);
|
|
17
|
+
__exportStar(require("./model.js"), exports);
|
|
18
|
+
__exportStar(require("./rpc.js"), exports);
|
|
19
|
+
__exportStar(require("./rpc-endpoint.js"), exports);
|
|
20
|
+
__exportStar(require("./rpc-error.js"), exports);
|
|
21
21
|
//# sourceMappingURL=index.js.map
|
package/rpc/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/rpc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/rpc/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,oDAAkC;AAClC,iDAA+B"}
|
package/rpc/model.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { SerializationOptions } from "../serializer";
|
|
2
|
-
import type { Constructor, Record } from "../types";
|
|
1
|
+
import type { SerializationOptions } from "../serializer/types.js";
|
|
2
|
+
import type { Constructor, Record } from "../types.js";
|
|
3
3
|
export type RpcConstructor<T extends Constructor> = T extends Constructor<any, infer R> ? Constructor<Promise<RpcRemote<InstanceType<T>>>, R> : never;
|
|
4
4
|
export type RpcFunction<T extends (...args: any) => any> = T extends (...args: infer Args) => infer R ? (...args: Args) => Promise<Awaited<R>> : never;
|
|
5
5
|
export type RpcObject<T extends Record> = {
|
package/rpc/model.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createRpcMessage = void 0;
|
|
4
|
-
const
|
|
4
|
+
const random_js_1 = require("../utils/random.js");
|
|
5
5
|
function createRpcMessage(type, message) {
|
|
6
6
|
return {
|
|
7
|
-
id: (0,
|
|
7
|
+
id: (0, random_js_1.getRandomString)(24),
|
|
8
8
|
type,
|
|
9
9
|
...message
|
|
10
10
|
};
|
package/rpc/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../source/rpc/model.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../source/rpc/model.ts"],"names":[],"mappings":";;;AAEA,kDAAoD;AAgDpD,SAAgB,gBAAgB,CAAkC,IAAU,EAAE,OAAiE;IAC7I,OAAO;QACL,EAAE,EAAE,IAAA,2BAAe,EAAC,EAAE,CAAC;QACvB,IAAI;QACJ,GAAG,OAAO;KAC4B,CAAC;AAC3C,CAAC;AAND,4CAMC"}
|
package/rpc/rpc-endpoint.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Observable } from 'rxjs';
|
|
2
|
-
import type { RpcMessage, RpcMessageValue } from './model';
|
|
2
|
+
import type { RpcMessage, RpcMessageValue } from './model.js';
|
|
3
3
|
export declare abstract class RpcEndpoint {
|
|
4
4
|
abstract readonly supportsTransfers: boolean;
|
|
5
5
|
abstract readonly message$: Observable<RpcMessage>;
|
package/rpc/rpc-error.d.ts
CHANGED