@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
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Uppercase = exports.UppercaseTransformer = void 0;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
class UppercaseTransformer extends
|
|
5
|
+
const index_js_1 = require("../decorators/index.js");
|
|
6
|
+
const index_js_2 = require("../types/index.js");
|
|
7
|
+
class UppercaseTransformer extends index_js_2.SchemaValueTransformer {
|
|
8
8
|
sourceType = String;
|
|
9
9
|
transform(value) {
|
|
10
10
|
return value.toUpperCase();
|
|
@@ -12,7 +12,7 @@ class UppercaseTransformer extends types_1.SchemaValueTransformer {
|
|
|
12
12
|
}
|
|
13
13
|
exports.UppercaseTransformer = UppercaseTransformer;
|
|
14
14
|
function Uppercase() {
|
|
15
|
-
return (0,
|
|
15
|
+
return (0, index_js_1.createSchemaValueTransformerDecorator)(new UppercaseTransformer(), { schema: (0, index_js_2.typeSchema)(String) });
|
|
16
16
|
}
|
|
17
17
|
exports.Uppercase = Uppercase;
|
|
18
18
|
//# sourceMappingURL=uppercase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uppercase.js","sourceRoot":"","sources":["../../../source/schema/transformers/uppercase.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,
|
|
1
|
+
{"version":3,"file":"uppercase.js","sourceRoot":"","sources":["../../../source/schema/transformers/uppercase.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,qDAA+E;AAE/E,gDAAuE;AAEvE,MAAa,oBAAqB,SAAQ,iCAAsC;IACrE,UAAU,GAAG,MAAM,CAAC;IAE7B,SAAS,CAAC,KAAa;QACrB,OAAO,KAAK,CAAC,WAAW,EAAE,CAAC;IAC7B,CAAC;CACF;AAND,oDAMC;AAED,SAAgB,SAAS;IACvB,OAAO,IAAA,gDAAqC,EAAC,IAAI,oBAAoB,EAAE,EAAE,EAAE,MAAM,EAAE,IAAA,qBAAU,EAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAC3G,CAAC;AAFD,8BAEC"}
|
package/schema/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './schema-array-constraint';
|
|
2
|
-
export * from './schema-value-coercer';
|
|
3
|
-
export * from './schema-value-constraint';
|
|
4
|
-
export * from './schema-value-transformer';
|
|
5
|
-
export * from './types';
|
|
1
|
+
export * from './schema-array-constraint.js';
|
|
2
|
+
export * from './schema-value-coercer.js';
|
|
3
|
+
export * from './schema-value-constraint.js';
|
|
4
|
+
export * from './schema-value-transformer.js';
|
|
5
|
+
export * from './types.js';
|
package/schema/types/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("./schema-array-constraint"), exports);
|
|
18
|
-
__exportStar(require("./schema-value-coercer"), exports);
|
|
19
|
-
__exportStar(require("./schema-value-constraint"), exports);
|
|
20
|
-
__exportStar(require("./schema-value-transformer"), exports);
|
|
21
|
-
__exportStar(require("./types"), exports);
|
|
17
|
+
__exportStar(require("./schema-array-constraint.js"), exports);
|
|
18
|
+
__exportStar(require("./schema-value-coercer.js"), exports);
|
|
19
|
+
__exportStar(require("./schema-value-constraint.js"), exports);
|
|
20
|
+
__exportStar(require("./schema-value-transformer.js"), exports);
|
|
21
|
+
__exportStar(require("./types.js"), exports);
|
|
22
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/schema/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4DAA0C;AAC1C
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/schema/types/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA6C;AAC7C,4DAA0C;AAC1C,+DAA6C;AAC7C,gEAA8C;AAC9C,6CAA2B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { JsonPath } from "../../json-path/json-path";
|
|
2
|
-
import type { ConstraintContext, ConstraintResult } from './types';
|
|
1
|
+
import type { JsonPath } from "../../json-path/json-path.js";
|
|
2
|
+
import type { ConstraintContext, ConstraintResult } from './types.js';
|
|
3
3
|
export declare abstract class SchemaArrayConstraint {
|
|
4
4
|
abstract validate(value: readonly unknown[], path: JsonPath, context: ConstraintContext): ConstraintResult;
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { JsonPath } from "../../json-path/json-path";
|
|
2
|
-
import type { OneOrMany } from "../../types";
|
|
3
|
-
import type { CoercerContext, CoerceResult, ValueType } from './types';
|
|
1
|
+
import type { JsonPath } from "../../json-path/json-path.js";
|
|
2
|
+
import type { OneOrMany } from "../../types.js";
|
|
3
|
+
import type { CoercerContext, CoerceResult, ValueType } from './types.js';
|
|
4
4
|
export declare abstract class SchemaValueCoercer {
|
|
5
5
|
abstract readonly sourceType: OneOrMany<ValueType>;
|
|
6
6
|
abstract readonly targetType: ValueType;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { JsonPath } from "../../json-path/json-path";
|
|
2
|
-
import type { OneOrMany } from "../../types";
|
|
3
|
-
import type { ConstraintContext, ConstraintResult, ValueType } from './types';
|
|
1
|
+
import type { JsonPath } from "../../json-path/json-path.js";
|
|
2
|
+
import type { OneOrMany } from "../../types.js";
|
|
3
|
+
import type { ConstraintContext, ConstraintResult, ValueType } from './types.js';
|
|
4
4
|
export declare abstract class SchemaValueConstraint {
|
|
5
5
|
abstract readonly suitableTypes: OneOrMany<ValueType>;
|
|
6
6
|
abstract readonly expects: OneOrMany<string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { JsonPath } from "../../json-path/json-path";
|
|
2
|
-
import type { OneOrMany } from "../../types";
|
|
3
|
-
import type { TransformerContext, TransformResult, ValueType } from './types';
|
|
1
|
+
import type { JsonPath } from "../../json-path/json-path.js";
|
|
2
|
+
import type { OneOrMany } from "../../types.js";
|
|
3
|
+
import type { TransformerContext, TransformResult, ValueType } from './types.js';
|
|
4
4
|
export declare abstract class SchemaValueTransformer<T = any, O = any> {
|
|
5
5
|
abstract readonly sourceType?: OneOrMany<ValueType<T>>;
|
|
6
6
|
abstract transform(value: T, path: JsonPath, context: TransformerContext): TransformResult<O>;
|
package/schema/types/types.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { AbstractConstructor, OneOrMany, Record, Type, TypedOmit } from "../../types";
|
|
2
|
-
import type { NormalizedSchema, Schema, SchemaTestable } from '../schema';
|
|
3
|
-
import type { SchemaError } from '../schema.error';
|
|
4
|
-
import type { SchemaArrayConstraint } from './schema-array-constraint';
|
|
5
|
-
import type { SchemaValueCoercer } from './schema-value-coercer';
|
|
6
|
-
import type { SchemaValueConstraint } from './schema-value-constraint';
|
|
7
|
-
import type { SchemaValueTransformer } from './schema-value-transformer';
|
|
1
|
+
import type { AbstractConstructor, OneOrMany, Record, Type, TypedOmit } from "../../types.js";
|
|
2
|
+
import type { NormalizedSchema, Schema, SchemaTestable } from '../schema.js';
|
|
3
|
+
import type { SchemaError } from '../schema.error.js';
|
|
4
|
+
import type { SchemaArrayConstraint } from './schema-array-constraint.js';
|
|
5
|
+
import type { SchemaValueCoercer } from './schema-value-coercer.js';
|
|
6
|
+
import type { SchemaValueConstraint } from './schema-value-constraint.js';
|
|
7
|
+
import type { SchemaValueTransformer } from './schema-value-transformer.js';
|
|
8
8
|
declare const schemaOutputTypeSymbol: unique symbol;
|
|
9
9
|
export type SchemaFactoryFunction<T> = (data: T) => T;
|
|
10
10
|
export type SchemaFactory<T> = {
|
package/schema/types/types.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.optimizeSchema = exports.optimizeValueSchema = exports.optimizeObjectSchemaProperties = exports.optimizeObjectSchema = exports.schemaTestableToSchema = exports.valueTypesOrSchemasToSchemas = exports.resolveValueType = exports.resolveValueTypes = exports.isDeferredValueType = exports.isTypeSchema = exports.isValueSchema = exports.isObjectSchema = exports.isSchema = exports.typeSchema = exports.valueSchema = exports.objectSchema = exports.objectSchemaProperties = exports.isTransformErrorResult = exports.transformErrorResult = exports.transformErrorResultSymbol = exports.primitiveConstructorSet = exports.primitiveConstructors = void 0;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const object_js_1 = require("../../utils/object/object.js");
|
|
6
|
+
const type_guards_js_1 = require("../../utils/type-guards.js");
|
|
7
7
|
exports.primitiveConstructors = [String, Number, Boolean, Symbol, BigInt, Function, 'undefined', 'null'];
|
|
8
8
|
exports.primitiveConstructorSet = new Set(exports.primitiveConstructors);
|
|
9
9
|
exports.transformErrorResultSymbol = Symbol('Transform error');
|
|
@@ -12,7 +12,7 @@ function transformErrorResult(error) {
|
|
|
12
12
|
}
|
|
13
13
|
exports.transformErrorResult = transformErrorResult;
|
|
14
14
|
function isTransformErrorResult(value) {
|
|
15
|
-
return (0,
|
|
15
|
+
return (0, type_guards_js_1.isObject)(value) && (0, object_js_1.hasOwnProperty)(value, exports.transformErrorResultSymbol);
|
|
16
16
|
}
|
|
17
17
|
exports.isTransformErrorResult = isTransformErrorResult;
|
|
18
18
|
function objectSchemaProperties(properties) {
|
|
@@ -36,32 +36,32 @@ function isSchema(value) {
|
|
|
36
36
|
}
|
|
37
37
|
exports.isSchema = isSchema;
|
|
38
38
|
function isObjectSchema(schema) {
|
|
39
|
-
return (0,
|
|
39
|
+
return (0, type_guards_js_1.isObject)(schema?.properties);
|
|
40
40
|
}
|
|
41
41
|
exports.isObjectSchema = isObjectSchema;
|
|
42
42
|
function isValueSchema(schema) {
|
|
43
|
-
return (0,
|
|
43
|
+
return (0, type_guards_js_1.isObject)(schema) && (0, type_guards_js_1.isDefined)(schema?.schema);
|
|
44
44
|
}
|
|
45
45
|
exports.isValueSchema = isValueSchema;
|
|
46
46
|
function isTypeSchema(schema) {
|
|
47
|
-
if (!(0,
|
|
47
|
+
if (!(0, type_guards_js_1.isObject)(schema)) {
|
|
48
48
|
return false;
|
|
49
49
|
}
|
|
50
50
|
const type = schema.type;
|
|
51
|
-
return (0,
|
|
52
|
-
&& ((0,
|
|
53
|
-
|| ((0,
|
|
51
|
+
return (0, type_guards_js_1.isObject)(schema)
|
|
52
|
+
&& ((0, type_guards_js_1.isFunction)(type)
|
|
53
|
+
|| ((0, type_guards_js_1.isObject)(type) && (0, type_guards_js_1.isFunction)(type.deferred))
|
|
54
54
|
|| (type == 'undefined')
|
|
55
55
|
|| (type == 'null')
|
|
56
56
|
|| (type == 'any'));
|
|
57
57
|
}
|
|
58
58
|
exports.isTypeSchema = isTypeSchema;
|
|
59
59
|
function isDeferredValueType(value) {
|
|
60
|
-
return (0,
|
|
60
|
+
return (0, type_guards_js_1.isObject)(value) && (0, type_guards_js_1.isFunction)(value.deferred);
|
|
61
61
|
}
|
|
62
62
|
exports.isDeferredValueType = isDeferredValueType;
|
|
63
63
|
function resolveValueTypes(valueTypes) {
|
|
64
|
-
if ((0,
|
|
64
|
+
if ((0, type_guards_js_1.isArray)(valueTypes)) {
|
|
65
65
|
return valueTypes.map(resolveValueType);
|
|
66
66
|
}
|
|
67
67
|
return resolveValueType(valueTypes);
|
|
@@ -74,7 +74,7 @@ function resolveValueType(valueType) {
|
|
|
74
74
|
}
|
|
75
75
|
exports.resolveValueType = resolveValueType;
|
|
76
76
|
function valueTypesOrSchemasToSchemas(valueTypesOrSchemas) {
|
|
77
|
-
if ((0,
|
|
77
|
+
if ((0, type_guards_js_1.isArray)(valueTypesOrSchemas)) {
|
|
78
78
|
return valueTypesOrSchemas.map(schemaTestableToSchema);
|
|
79
79
|
}
|
|
80
80
|
return schemaTestableToSchema(valueTypesOrSchemas);
|
|
@@ -89,13 +89,13 @@ function schemaTestableToSchema(valueTypeOrSchema) {
|
|
|
89
89
|
exports.schemaTestableToSchema = schemaTestableToSchema;
|
|
90
90
|
function optimizeObjectSchema(schema) {
|
|
91
91
|
return {
|
|
92
|
-
...(0,
|
|
92
|
+
...(0, object_js_1.filterObject)(schema, type_guards_js_1.isDefined),
|
|
93
93
|
properties: optimizeObjectSchemaProperties(schema.properties)
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
exports.optimizeObjectSchema = optimizeObjectSchema;
|
|
97
97
|
function optimizeObjectSchemaProperties(properties) {
|
|
98
|
-
const entries = (0,
|
|
98
|
+
const entries = (0, object_js_1.objectEntries)(properties)
|
|
99
99
|
.map(([property, innerSchema]) => [property, optimizeSchema(innerSchema)]);
|
|
100
100
|
return Object.fromEntries(entries);
|
|
101
101
|
}
|
|
@@ -106,22 +106,22 @@ function optimizeValueSchema(schema) {
|
|
|
106
106
|
}
|
|
107
107
|
exports.optimizeValueSchema = optimizeValueSchema;
|
|
108
108
|
function optimizeSchema(schema) {
|
|
109
|
-
if ((0,
|
|
109
|
+
if ((0, type_guards_js_1.isArray)(schema)) {
|
|
110
110
|
if (schema.length == 1) {
|
|
111
111
|
return optimizeSchema(schema[0]);
|
|
112
112
|
}
|
|
113
113
|
return schema.flatMap(optimizeSchema);
|
|
114
114
|
}
|
|
115
|
-
if ((0,
|
|
115
|
+
if ((0, type_guards_js_1.isFunction)(schema) || (0, type_guards_js_1.isString)(schema) || isDeferredValueType(schema)) {
|
|
116
116
|
return schema;
|
|
117
117
|
}
|
|
118
118
|
if (isTypeSchema(schema)) {
|
|
119
119
|
return schema.type;
|
|
120
120
|
}
|
|
121
121
|
if (isValueSchema(schema)) {
|
|
122
|
-
const entries = (0,
|
|
122
|
+
const entries = (0, object_js_1.objectEntries)(schema).filter(([, value]) => (0, type_guards_js_1.isDefined)(value));
|
|
123
123
|
if (entries.length == 1) {
|
|
124
|
-
if (!(0,
|
|
124
|
+
if (!(0, type_guards_js_1.isArray)(schema.schema)) {
|
|
125
125
|
return optimizeSchema(schema.schema);
|
|
126
126
|
}
|
|
127
127
|
else if (schema.schema.length == 1) {
|
|
@@ -130,7 +130,7 @@ function optimizeSchema(schema) {
|
|
|
130
130
|
return schema.schema.map(optimizeSchema);
|
|
131
131
|
}
|
|
132
132
|
if (isValueSchema(schema.schema)) {
|
|
133
|
-
const combinedProperties = new Set([...(0,
|
|
133
|
+
const combinedProperties = new Set([...(0, object_js_1.objectKeys)(schema), ...(0, object_js_1.objectKeys)(schema.schema)]);
|
|
134
134
|
if (isValueSchema(schema.schema)
|
|
135
135
|
&& !combinedProperties.has('array')
|
|
136
136
|
&& !combinedProperties.has('coerce')
|
|
@@ -140,15 +140,15 @@ function optimizeSchema(schema) {
|
|
|
140
140
|
&& !combinedProperties.has('valueConstraints')) {
|
|
141
141
|
return {
|
|
142
142
|
schema: optimizeSchema(schema.schema.schema),
|
|
143
|
-
...(0,
|
|
143
|
+
...(0, object_js_1.filterObject)({
|
|
144
144
|
optional: ((schema.optional ?? false) || (schema.schema.optional ?? false)) ? true : undefined,
|
|
145
145
|
nullable: ((schema.nullable ?? false) || (schema.schema.nullable ?? false)) ? true : undefined
|
|
146
|
-
},
|
|
146
|
+
}, type_guards_js_1.isDefined)
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
}
|
|
150
150
|
const { schema: innerSchema, optional, nullable, coercers, transformers, arrayConstraints, valueConstraints, ...rest } = schema;
|
|
151
|
-
return (0,
|
|
151
|
+
return (0, object_js_1.filterObject)({
|
|
152
152
|
schema: optimizeSchema(innerSchema),
|
|
153
153
|
optional: (optional ?? false) ? true : undefined,
|
|
154
154
|
nullable: (nullable ?? false) ? true : undefined,
|
|
@@ -157,13 +157,13 @@ function optimizeSchema(schema) {
|
|
|
157
157
|
arrayConstraints: optimizeOneOrMany(arrayConstraints),
|
|
158
158
|
valueConstraints: optimizeOneOrMany(valueConstraints),
|
|
159
159
|
...rest
|
|
160
|
-
},
|
|
160
|
+
}, type_guards_js_1.isDefined);
|
|
161
161
|
}
|
|
162
162
|
return optimizeObjectSchema(schema);
|
|
163
163
|
}
|
|
164
164
|
exports.optimizeSchema = optimizeSchema;
|
|
165
165
|
function optimizeOneOrMany(values) {
|
|
166
|
-
if ((0,
|
|
166
|
+
if ((0, type_guards_js_1.isArray)(values)) {
|
|
167
167
|
if (values.length == 0) {
|
|
168
168
|
return undefined;
|
|
169
169
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../source/schema/types/types.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAGjD,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../source/schema/types/types.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAGjD,4DAAmG;AACnG,+DAA4F;AAyH/E,QAAA,qBAAqB,GAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAA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AC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;YAChD,QAAQ,EAAE,iBAAiB,CAAC,QAAQ,CAAC;YACrC,YAAY,EAAE,iBAAiB,CAAC,YAAY,CAAC;YAC7C,gBAAgB,EAAE,iBAAiB,CAAC,gBAAgB,CAAC;YACrD,gBAAgB,EAAE,iBAAiB,CAAC,gBAAgB,CAAC;YACrD,GAAG,IAAI;SACiB,EAAE,0BAAS,CAAmB,CAAC;KAC1D;IAED,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC;AApED,wCAoEC;AAED,SAAS,iBAAiB,CAAI,MAAgC;IAC5D,IAAI,IAAA,wBAAO,EAAC,MAAM,CAAC,EAAE;QACnB,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE;YACtB,OAAO,SAAS,CAAC;SAClB;QAED,IAAI,MAAM,CAAC,MAAM,IAAI,CAAC,EAAE;YACtB,OAAO,MAAM,CAAC,CAAC,CAAC,CAAC;SAClB;KACF;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
package/schema/utils/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './schema';
|
|
2
|
-
export * from './value-type';
|
|
1
|
+
export * from './schema.js';
|
|
2
|
+
export * from './value-type.js';
|
package/schema/utils/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./schema"), exports);
|
|
18
|
-
__exportStar(require("./value-type"), exports);
|
|
17
|
+
__exportStar(require("./schema.js"), exports);
|
|
18
|
+
__exportStar(require("./value-type.js"), exports);
|
|
19
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/schema/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/schema/utils/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,kDAAgC"}
|
package/schema/utils/schema.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AbstractConstructor } from "../../types";
|
|
2
|
-
import type { NormalizedSchema, Schema } from '../schema';
|
|
3
|
-
import type { NormalizedObjectSchema, NormalizedTypeSchema, NormalizedValueSchema, ObjectSchema, ObjectSchemaOrType, TypeSchema, ValueSchema } from '../types';
|
|
1
|
+
import type { AbstractConstructor } from "../../types.js";
|
|
2
|
+
import type { NormalizedSchema, Schema } from '../schema.js';
|
|
3
|
+
import type { NormalizedObjectSchema, NormalizedTypeSchema, NormalizedValueSchema, ObjectSchema, ObjectSchemaOrType, TypeSchema, ValueSchema } from '../types/index.js';
|
|
4
4
|
export declare const normalizeSchema: typeof _normalizeSchema;
|
|
5
5
|
export declare const normalizeObjectSchema: typeof _normalizeObjectSchema;
|
|
6
6
|
export declare const normalizeValueSchema: typeof _normalizeValueSchema;
|
package/schema/utils/schema.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getObjectSchemaFromReflection = exports.getObjectSchema = exports.tryGetObjectSchemaFromReflection = exports.getArrayItemSchema = exports.normalizeTypeSchema = exports.normalizeValueSchema = exports.normalizeObjectSchema = exports.normalizeSchema = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
const
|
|
9
|
-
const
|
|
10
|
-
const
|
|
11
|
-
exports.normalizeSchema = (0,
|
|
12
|
-
exports.normalizeObjectSchema = (0,
|
|
13
|
-
exports.normalizeValueSchema = (0,
|
|
14
|
-
exports.normalizeTypeSchema = (0,
|
|
15
|
-
exports.getArrayItemSchema = (0,
|
|
16
|
-
exports.tryGetObjectSchemaFromReflection = (0,
|
|
4
|
+
const registry_js_1 = require("../../reflection/registry.js");
|
|
5
|
+
const array_js_1 = require("../../utils/array/array.js");
|
|
6
|
+
const memoize_js_1 = require("../../utils/function/memoize.js");
|
|
7
|
+
const object_js_1 = require("../../utils/object/object.js");
|
|
8
|
+
const type_guards_js_1 = require("../../utils/type-guards.js");
|
|
9
|
+
const assign_js_1 = require("../schemas/assign.js");
|
|
10
|
+
const index_js_1 = require("../types/index.js");
|
|
11
|
+
exports.normalizeSchema = (0, memoize_js_1.memoizeSingle)(_normalizeSchema, { weak: true });
|
|
12
|
+
exports.normalizeObjectSchema = (0, memoize_js_1.memoizeSingle)(_normalizeObjectSchema, { weak: true });
|
|
13
|
+
exports.normalizeValueSchema = (0, memoize_js_1.memoizeSingle)(_normalizeValueSchema, { weak: true });
|
|
14
|
+
exports.normalizeTypeSchema = (0, memoize_js_1.memoizeSingle)(_normalizeTypeSchema, { weak: true });
|
|
15
|
+
exports.getArrayItemSchema = (0, memoize_js_1.memoizeSingle)(_getArrayItemSchema, { weak: true });
|
|
16
|
+
exports.tryGetObjectSchemaFromReflection = (0, memoize_js_1.memoizeSingle)(_tryGetObjectSchemaFromReflection, { weak: true });
|
|
17
17
|
function getObjectSchema(schemaOrType) {
|
|
18
|
-
return (0,
|
|
18
|
+
return (0, type_guards_js_1.isFunction)(schemaOrType)
|
|
19
19
|
? getObjectSchemaFromReflection(schemaOrType)
|
|
20
20
|
: schemaOrType;
|
|
21
21
|
}
|
|
22
22
|
exports.getObjectSchema = getObjectSchema;
|
|
23
23
|
function _normalizeSchema(schema) {
|
|
24
|
-
if ((0,
|
|
24
|
+
if ((0, index_js_1.isObjectSchema)(schema)) {
|
|
25
25
|
return (0, exports.normalizeObjectSchema)(schema);
|
|
26
26
|
}
|
|
27
|
-
if ((0,
|
|
27
|
+
if ((0, index_js_1.isValueSchema)(schema)) {
|
|
28
28
|
return (0, exports.normalizeValueSchema)(schema);
|
|
29
29
|
}
|
|
30
|
-
if ((0,
|
|
30
|
+
if ((0, index_js_1.isTypeSchema)(schema)) {
|
|
31
31
|
return (0, exports.normalizeTypeSchema)(schema);
|
|
32
32
|
}
|
|
33
33
|
throw new Error('Unsupported schema.');
|
|
@@ -35,26 +35,26 @@ function _normalizeSchema(schema) {
|
|
|
35
35
|
function _normalizeObjectSchema(schema) {
|
|
36
36
|
const normalizedSchema = {
|
|
37
37
|
factory: schema.factory,
|
|
38
|
-
properties: (0,
|
|
38
|
+
properties: (0, object_js_1.mapObjectValues)(schema.properties, (propertyValueType) => (0, index_js_1.valueTypesOrSchemasToSchemas)(propertyValueType)),
|
|
39
39
|
mask: schema.mask,
|
|
40
|
-
allowUnknownProperties: new Set((0,
|
|
40
|
+
allowUnknownProperties: new Set((0, array_js_1.toArray)(schema.allowUnknownProperties ?? []).map(index_js_1.schemaTestableToSchema))
|
|
41
41
|
};
|
|
42
42
|
return normalizedSchema;
|
|
43
43
|
}
|
|
44
44
|
function _normalizeValueSchema(schema) {
|
|
45
45
|
const normalizedValueSchema = {
|
|
46
|
-
schema: new Set((0,
|
|
46
|
+
schema: new Set((0, array_js_1.toArray)(schema.schema).map(index_js_1.schemaTestableToSchema)),
|
|
47
47
|
array: schema.array ?? false,
|
|
48
48
|
optional: schema.optional ?? false,
|
|
49
49
|
nullable: schema.nullable ?? false,
|
|
50
50
|
coerce: schema.coerce ?? false,
|
|
51
51
|
coercers: new Map(),
|
|
52
|
-
transformers: (0,
|
|
53
|
-
arrayConstraints: (0,
|
|
54
|
-
valueConstraints: (0,
|
|
52
|
+
transformers: (0, array_js_1.toArray)(schema.transformers ?? []),
|
|
53
|
+
arrayConstraints: (0, array_js_1.toArray)(schema.arrayConstraints ?? []),
|
|
54
|
+
valueConstraints: (0, array_js_1.toArray)(schema.valueConstraints ?? [])
|
|
55
55
|
};
|
|
56
|
-
for (const coercer of (0,
|
|
57
|
-
for (const sourceType of (0,
|
|
56
|
+
for (const coercer of (0, array_js_1.toArray)(schema.coercers ?? [])) {
|
|
57
|
+
for (const sourceType of (0, array_js_1.toArray)(coercer.sourceType)) {
|
|
58
58
|
if (!normalizedValueSchema.coercers.has(sourceType)) {
|
|
59
59
|
normalizedValueSchema.coercers.set(sourceType, []);
|
|
60
60
|
}
|
|
@@ -65,7 +65,7 @@ function _normalizeValueSchema(schema) {
|
|
|
65
65
|
}
|
|
66
66
|
function _normalizeTypeSchema(schema) {
|
|
67
67
|
const normalizedSchema = {
|
|
68
|
-
foo: (0,
|
|
68
|
+
foo: (0, index_js_1.resolveValueType)(schema.type)
|
|
69
69
|
};
|
|
70
70
|
return normalizedSchema;
|
|
71
71
|
}
|
|
@@ -79,37 +79,37 @@ function _getArrayItemSchema(schema) {
|
|
|
79
79
|
}
|
|
80
80
|
function getObjectSchemaFromReflection(type) {
|
|
81
81
|
const schema = (0, exports.tryGetObjectSchemaFromReflection)(type);
|
|
82
|
-
if ((0,
|
|
82
|
+
if ((0, type_guards_js_1.isNull)(schema)) {
|
|
83
83
|
throw new Error(`Could not get schema for ${type.name} from reflection data.`);
|
|
84
84
|
}
|
|
85
85
|
return schema;
|
|
86
86
|
}
|
|
87
87
|
exports.getObjectSchemaFromReflection = getObjectSchemaFromReflection;
|
|
88
88
|
function _tryGetObjectSchemaFromReflection(type) {
|
|
89
|
-
const metadata =
|
|
90
|
-
if ((0,
|
|
89
|
+
const metadata = registry_js_1.reflectionRegistry.getMetadata(type);
|
|
90
|
+
if ((0, type_guards_js_1.isUndefined)(metadata)) {
|
|
91
91
|
return null;
|
|
92
92
|
}
|
|
93
93
|
const typeData = metadata.data.tryGet('schema') ?? {};
|
|
94
|
-
const dataSchema = (0,
|
|
94
|
+
const dataSchema = (0, index_js_1.isTypeSchema)(typeData.schema)
|
|
95
95
|
? getObjectSchema(typeData.schema.type)
|
|
96
|
-
: (0,
|
|
96
|
+
: (0, index_js_1.isObjectSchema)(typeData.schema)
|
|
97
97
|
? typeData.schema
|
|
98
|
-
: (0,
|
|
98
|
+
: (0, type_guards_js_1.isFunction)(typeData.schema)
|
|
99
99
|
? getObjectSchema(typeData.schema)
|
|
100
100
|
: undefined;
|
|
101
|
-
const schema = (0,
|
|
101
|
+
const schema = (0, index_js_1.objectSchema)({
|
|
102
102
|
sourceType: type,
|
|
103
|
-
factory: (0,
|
|
103
|
+
factory: (0, type_guards_js_1.isDefined)(typeData.factory) ? { builder: typeData.factory } : { type: type },
|
|
104
104
|
properties: dataSchema?.properties ?? getObjectSchemaPropertiesFromReflection(metadata, type),
|
|
105
105
|
mask: typeData.mask ?? dataSchema?.mask,
|
|
106
|
-
allowUnknownProperties: (((0,
|
|
106
|
+
allowUnknownProperties: (((0, type_guards_js_1.isUndefined)(typeData.allowUnknownProperties) || ((0, type_guards_js_1.isArray)(typeData.allowUnknownProperties) && (typeData.allowUnknownProperties.length == 0))) ? undefined : typeData.allowUnknownProperties) ?? dataSchema?.allowUnknownProperties
|
|
107
107
|
});
|
|
108
|
-
if ((0,
|
|
108
|
+
if ((0, type_guards_js_1.isUndefined)(dataSchema)) {
|
|
109
109
|
const prototype = Reflect.getPrototypeOf(type);
|
|
110
|
-
if ((0,
|
|
110
|
+
if ((0, type_guards_js_1.isNotNull)(prototype) && registry_js_1.reflectionRegistry.hasType(prototype)) {
|
|
111
111
|
const parentSchema = getObjectSchemaFromReflection(prototype);
|
|
112
|
-
return (0,
|
|
112
|
+
return (0, assign_js_1.assign)(parentSchema, schema);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
return schema;
|
|
@@ -120,10 +120,10 @@ function getObjectSchemaPropertiesFromReflection(metadata, type) {
|
|
|
120
120
|
const reflectionData = propertyMetadata.data.tryGet('schema');
|
|
121
121
|
const itemType = reflectionData?.schema;
|
|
122
122
|
const array = (reflectionData?.array == true) ? true : undefined;
|
|
123
|
-
if (array && ((0,
|
|
123
|
+
if (array && ((0, type_guards_js_1.isUndefined)(itemType) || ((0, type_guards_js_1.isArray)(itemType) && (itemType.length == 0)))) {
|
|
124
124
|
throw new Error(`Item type missing on type ${type.name} at property "${String(key)}"`);
|
|
125
125
|
}
|
|
126
|
-
properties[key] = (0,
|
|
126
|
+
properties[key] = (0, index_js_1.valueSchema)((0, index_js_1.valueTypesOrSchemasToSchemas)(itemType ?? propertyMetadata.type), {
|
|
127
127
|
array,
|
|
128
128
|
optional: reflectionData?.optional,
|
|
129
129
|
nullable: reflectionData?.nullable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../source/schema/utils/schema.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../source/schema/utils/schema.ts"],"names":[],"mappings":";;;AACA,8DAA8D;AAE9D,yDAAiD;AACjD,gEAA4D;AAC5D,4DAA2D;AAC3D,+DAAwG;AAGxG,oDAA8C;AAE9C,gDAAmL;AAEtK,QAAA,eAAe,GAAG,IAAA,0BAAa,EAAC,gBAAgB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAClE,QAAA,qBAAqB,GAAG,IAAA,0BAAa,EAAC,sBAAsB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9E,QAAA,oBAAoB,GAAG,IAAA,0BAAa,EAAC,qBAAqB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC5E,QAAA,mBAAmB,GAAG,IAAA,0BAAa,EAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AAC1E,QAAA,kBAAkB,GAAG,IAAA,0BAAa,EAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;AACxE,QAAA,gCAAgC,GAAG,IAAA,0BAAa,EAAC,iCAAiC,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,C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MAAM,KAAK,GAAG,CAAC,cAAc,EAAE,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;QAEjE,IAAI,KAAK,IAAI,CAAC,IAAA,4BAAW,EAAC,QAAQ,CAAC,IAAI,CAAC,IAAA,wBAAO,EAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;YACrF,MAAM,IAAI,KAAK,CAAC,6BAA6B,IAAI,CAAC,IAAI,iBAAiB,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;SACxF;QAED,UAAU,CAAC,GAAc,CAAC,GAAG,IAAA,sBAAW,EAAC,IAAA,uCAA4B,EAAC,QAAQ,IAAI,gBAAgB,CAAC,IAAI,CAAC,EAAE;YACxG,KAAK;YACL,QAAQ,EAAE,cAAc,EAAE,QAAQ;YAClC,QAAQ,EAAE,cAAc,EAAE,QAAQ;YAClC,MAAM,EAAE,cAAc,EAAE,MAAM;YAC9B,QAAQ,EAAE,cAAc,EAAE,QAAQ;YAClC,YAAY,EAAE,cAAc,EAAE,YAAY;YAC1C,gBAAgB,EAAE,cAAc,EAAE,gBAAgB;YAClD,gBAAgB,EAAE,cAAc,EAAE,gBAAgB;SACnD,CAAC,CAAC;KACJ;IAED,OAAO,UAAU,CAAC;AACpB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { OneOrMany } from "../../types";
|
|
2
|
-
import type { SchemaTestable } from '../schema';
|
|
3
|
-
import type { ResolvedValueType, ValueType } from '../types/types';
|
|
1
|
+
import type { OneOrMany } from "../../types.js";
|
|
2
|
+
import type { SchemaTestable } from '../schema.js';
|
|
3
|
+
import type { ResolvedValueType, ValueType } from '../types/types.js';
|
|
4
4
|
export declare function getValueType(value: unknown): ResolvedValueType;
|
|
5
5
|
export declare function includesValueType(valueType: ValueType, valueTypes: OneOrMany<ValueType>): boolean;
|
|
6
6
|
export declare function getValueTypeName(valueType: ValueType): string;
|