@tstdl/base 0.82.85 → 0.83.0-beta2
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/{.eslintrc.js → .eslintrc.cjs} +134 -13
- package/api/client/client.d.ts +3 -3
- package/api/client/client.js +44 -49
- package/api/client/client.js.map +1 -1
- package/api/client/index.js +1 -17
- package/api/client/index.js.map +1 -1
- package/api/default-error-handlers.d.ts +2 -2
- package/api/default-error-handlers.js +9 -16
- package/api/default-error-handlers.js.map +1 -1
- package/api/index.js +3 -19
- package/api/index.js.map +1 -1
- package/api/response.js +33 -46
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +2 -2
- package/api/server/api-controller.js +12 -20
- package/api/server/api-controller.js.map +1 -1
- package/api/server/api-request-token.provider.js +4 -8
- 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 +11 -15
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +8 -8
- package/api/server/gateway.js +56 -60
- package/api/server/gateway.js.map +1 -1
- package/api/server/index.js +5 -21
- package/api/server/index.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +3 -3
- package/api/server/middlewares/allowed-methods.middleware.js +7 -11
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +2 -2
- package/api/server/middlewares/catch-error.middleware.js +3 -7
- package/api/server/middlewares/catch-error.middleware.js.map +1 -1
- package/api/server/middlewares/cors.middleware.d.ts +1 -1
- package/api/server/middlewares/cors.middleware.js +18 -22
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/index.js +4 -20
- package/api/server/middlewares/index.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +1 -1
- package/api/server/middlewares/response-time.middleware.js +5 -9
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +1 -1
- package/api/server/module.js +14 -18
- package/api/server/module.js.map +1 -1
- package/api/server/tokens.js +2 -5
- package/api/server/tokens.js.map +1 -1
- package/api/types.d.ts +6 -6
- package/api/types.js +8 -15
- package/api/types.js.map +1 -1
- package/api/utils.js +11 -15
- package/api/utils.js.map +1 -1
- package/application/application.d.ts +5 -5
- package/application/application.js +27 -30
- package/application/application.js.map +1 -1
- package/application/index.js +1 -17
- package/application/index.js.map +1 -1
- package/async-iterator-symbol.js +1 -5
- package/async-iterator-symbol.js.map +1 -1
- package/authentication/authentication.api.d.ts +5 -5
- package/authentication/authentication.api.js +34 -39
- package/authentication/authentication.api.js.map +1 -1
- package/authentication/client/api.client.d.ts +3 -3
- package/authentication/client/api.client.js +14 -18
- package/authentication/client/api.client.js.map +1 -1
- package/authentication/client/authentication.service.d.ts +9 -9
- package/authentication/client/authentication.service.js +61 -64
- package/authentication/client/authentication.service.js.map +1 -1
- package/authentication/client/http-client.middleware.d.ts +1 -1
- package/authentication/client/http-client.middleware.js +12 -17
- package/authentication/client/http-client.middleware.js.map +1 -1
- package/authentication/client/index.js +5 -21
- package/authentication/client/index.js.map +1 -1
- package/authentication/client/module.d.ts +2 -2
- package/authentication/client/module.js +12 -16
- package/authentication/client/module.js.map +1 -1
- package/authentication/client/tokens.d.ts +1 -1
- package/authentication/client/tokens.js +5 -8
- package/authentication/client/tokens.js.map +1 -1
- package/authentication/errors/index.d.ts +1 -1
- package/authentication/errors/index.js +1 -17
- package/authentication/errors/index.js.map +1 -1
- package/authentication/errors/secret-requirements.error.d.ts +1 -1
- package/authentication/errors/secret-requirements.error.js +3 -6
- package/authentication/errors/secret-requirements.error.js.map +1 -1
- package/authentication/index.js +2 -18
- package/authentication/index.js.map +1 -1
- package/authentication/models/authentication-credentials.model.js +12 -17
- package/authentication/models/authentication-credentials.model.js.map +1 -1
- package/authentication/models/authentication-session.model.js +16 -21
- package/authentication/models/authentication-session.model.js.map +1 -1
- package/authentication/models/index.d.ts +2 -2
- package/authentication/models/index.js +6 -22
- package/authentication/models/index.js.map +1 -1
- package/authentication/models/init-secret-reset-data.model.js +4 -8
- package/authentication/models/init-secret-reset-data.model.js.map +1 -1
- package/authentication/models/secret-check-result.model.d.ts +1 -1
- package/authentication/models/secret-check-result.model.js +5 -8
- package/authentication/models/secret-check-result.model.js.map +1 -1
- package/authentication/models/token-payload-base.model.js +8 -12
- package/authentication/models/token-payload-base.model.js.map +1 -1
- package/authentication/models/token.model.d.ts +2 -2
- package/authentication/models/token.model.js +1 -2
- package/authentication/server/authentication-api-request-token.provider.d.ts +2 -2
- package/authentication/server/authentication-api-request-token.provider.js +9 -12
- package/authentication/server/authentication-api-request-token.provider.js.map +1 -1
- package/authentication/server/authentication-credentials.repository.js +1 -5
- package/authentication/server/authentication-credentials.repository.js.map +1 -1
- package/authentication/server/authentication-secret-requirements.validator.d.ts +1 -1
- package/authentication/server/authentication-secret-requirements.validator.js +13 -17
- package/authentication/server/authentication-secret-requirements.validator.js.map +1 -1
- package/authentication/server/authentication-secret-reset.handler.d.ts +1 -1
- package/authentication/server/authentication-secret-reset.handler.js +1 -5
- package/authentication/server/authentication-secret-reset.handler.js.map +1 -1
- package/authentication/server/authentication-session.repository.d.ts +1 -1
- package/authentication/server/authentication-session.repository.js +1 -5
- package/authentication/server/authentication-session.repository.js.map +1 -1
- package/authentication/server/authentication-subject.resolver.js +1 -5
- 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 +3 -7
- package/authentication/server/authentication-token-payload.provider.js.map +1 -1
- package/authentication/server/authentication.api-controller.d.ts +2 -2
- package/authentication/server/authentication.api-controller.js +17 -20
- package/authentication/server/authentication.api-controller.js.map +1 -1
- package/authentication/server/authentication.service.d.ts +3 -3
- package/authentication/server/authentication.service.js +65 -69
- package/authentication/server/authentication.service.js.map +1 -1
- package/authentication/server/helper.d.ts +2 -2
- package/authentication/server/helper.js +33 -42
- package/authentication/server/helper.js.map +1 -1
- package/authentication/server/index.d.ts +2 -2
- package/authentication/server/index.js +11 -27
- package/authentication/server/index.js.map +1 -1
- package/authentication/server/module.d.ts +1 -1
- package/authentication/server/module.js +17 -21
- package/authentication/server/module.js.map +1 -1
- package/authentication/server/mongo/index.js +2 -18
- package/authentication/server/mongo/index.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-credentials.repository.d.ts +6 -6
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js +18 -23
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-session.repository.d.ts +5 -5
- package/authentication/server/mongo/mongo-authentication-session.repository.js +14 -19
- package/authentication/server/mongo/mongo-authentication-session.repository.js.map +1 -1
- package/collections/awaitable/awaitable-list.js +8 -12
- package/collections/awaitable/awaitable-list.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +9 -13
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +5 -9
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/awaitable/index.js +3 -19
- package/collections/awaitable/index.js.map +1 -1
- package/collections/collection.js +1 -2
- package/collections/index.js +6 -22
- package/collections/index.js.map +1 -1
- package/collections/keyed-set.js +5 -9
- package/collections/keyed-set.js.map +1 -1
- package/collections/list.js +1 -2
- package/collections/observable/index.js +8 -24
- package/collections/observable/index.js.map +1 -1
- package/collections/observable/observable-array.js +2 -6
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.js +17 -21
- package/collections/observable/observable-collection-base.js.map +1 -1
- package/collections/observable/observable-collection.js +1 -2
- package/collections/observable/observable-list-base.js +9 -13
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.js +1 -2
- package/collections/observable/observable-map.js +3 -7
- package/collections/observable/observable-map.js.map +1 -1
- package/collections/observable/observable-set.js +2 -6
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +1 -1
- package/collections/observable/observable-sorted-array-list.js +21 -25
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +1 -1
- package/collections/sorted-array-list.js +17 -21
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-list.js +1 -2
- package/collections/sorted-map.js +8 -12
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +1 -1
- package/container/container.js +113 -117
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +2 -2
- package/container/decorators.js +31 -45
- package/container/decorators.js.map +1 -1
- package/container/index.js +10 -26
- package/container/index.js.map +1 -1
- package/container/interfaces.js +2 -4
- package/container/interfaces.js.map +1 -1
- package/container/provider.d.ts +1 -1
- package/container/provider.js +13 -24
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +1 -1
- package/container/resolve-chain.js +9 -13
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +1 -1
- package/container/resolve.error.js +4 -8
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +1 -1
- package/container/token.js +5 -10
- package/container/token.js.map +1 -1
- package/container/type-info.js +1 -2
- package/container/types.d.ts +1 -1
- package/container/types.js +1 -2
- package/container/utils.d.ts +1 -1
- package/container/utils.js +6 -11
- package/container/utils.js.map +1 -1
- package/cookie/cookie.js +17 -22
- package/cookie/cookie.js.map +1 -1
- package/cookie/index.js +1 -17
- package/cookie/index.js.map +1 -1
- package/core.js +20 -26
- package/core.js.map +1 -1
- package/data-structures/array-list.d.ts +1 -1
- package/data-structures/array-list.js +2 -6
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +1 -1
- package/data-structures/circular-buffer.js +20 -24
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +1 -1
- package/data-structures/collection.js +12 -16
- package/data-structures/collection.js.map +1 -1
- package/data-structures/index-out-of-bounds.error.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.js +5 -9
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/index.js +12 -28
- package/data-structures/index.js.map +1 -1
- package/data-structures/iterable-weak-map.js +15 -19
- package/data-structures/iterable-weak-map.js.map +1 -1
- package/data-structures/linked-list.d.ts +3 -3
- package/data-structures/linked-list.js +25 -28
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +1 -1
- package/data-structures/list.js +10 -14
- package/data-structures/list.js.map +1 -1
- package/data-structures/map.js +2 -6
- package/data-structures/map.js.map +1 -1
- package/data-structures/multi-key-map.js +12 -16
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/set.js +2 -6
- package/data-structures/set.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +4 -4
- package/data-structures/sorted-array-list.js +20 -23
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.js +13 -17
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -1
- package/database/entity-repository.js +1 -6
- package/database/entity-repository.js.map +1 -1
- package/database/entity.js +1 -2
- package/database/id.js +4 -8
- package/database/id.js.map +1 -1
- package/database/index.js +6 -22
- package/database/index.js.map +1 -1
- package/database/module.js +6 -10
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +4 -4
- package/database/mongo/classes.js +11 -17
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/index.js +10 -26
- package/database/mongo/index.js.map +1 -1
- package/database/mongo/model/document.d.ts +1 -1
- package/database/mongo/model/document.js +15 -26
- package/database/mongo/model/document.js.map +1 -1
- package/database/mongo/model/index.js +1 -17
- package/database/mongo/model/index.js.map +1 -1
- package/database/mongo/module.js +25 -29
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +2 -2
- package/database/mongo/mongo-base.repository.js +43 -42
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +1 -1
- package/database/mongo/mongo-bulk.js +17 -21
- package/database/mongo/mongo-bulk.js.map +1 -1
- package/database/mongo/mongo-entity-repository.d.ts +5 -5
- package/database/mongo/mongo-entity-repository.js +30 -37
- package/database/mongo/mongo-entity-repository.js.map +1 -1
- package/database/mongo/operations.d.ts +1 -1
- package/database/mongo/operations.js +6 -15
- package/database/mongo/operations.js.map +1 -1
- package/database/mongo/query-converter.d.ts +2 -2
- package/database/mongo/query-converter.js +15 -20
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity-repository.d.ts +2 -2
- package/database/mongo/simple-entity-repository.js +3 -7
- package/database/mongo/simple-entity-repository.js.map +1 -1
- package/database/mongo/types.d.ts +2 -2
- package/database/mongo/types.js +1 -5
- package/database/mongo/types.js.map +1 -1
- package/database/query.d.ts +2 -2
- package/database/query.js +7 -10
- package/database/query.js.map +1 -1
- package/database/utils.js +1 -5
- package/database/utils.js.map +1 -1
- package/disposable/async-disposer.js +21 -25
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +7 -12
- package/disposable/disposable.js.map +1 -1
- package/disposable/index.js +3 -19
- package/disposable/index.js.map +1 -1
- package/disposable/using.js +5 -10
- package/disposable/using.js.map +1 -1
- package/distributed-loop/controller.js +1 -2
- package/distributed-loop/distributed-loop.d.ts +5 -5
- package/distributed-loop/distributed-loop.js +15 -19
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/index.js +3 -19
- package/distributed-loop/index.js.map +1 -1
- package/distributed-loop/provider.d.ts +1 -1
- package/distributed-loop/provider.js +7 -10
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +3 -6
- package/enumerable/async-enumerable.js +67 -76
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable-methods.js +1 -2
- package/enumerable/enumerable.d.ts +1 -5
- package/enumerable/enumerable.js +45 -54
- package/enumerable/enumerable.js.map +1 -1
- package/enumerable/index.js +2 -18
- package/enumerable/index.js.map +1 -1
- package/environment.d.ts +2 -0
- package/environment.js +18 -16
- package/environment.js.map +1 -1
- package/error/api.error.js +3 -6
- package/error/api.error.js.map +1 -1
- package/error/assertion.error.js +3 -6
- package/error/assertion.error.js.map +1 -1
- package/error/bad-request.error.js +3 -6
- package/error/bad-request.error.js.map +1 -1
- package/error/custom.error.js +1 -5
- package/error/custom.error.js.map +1 -1
- package/error/details.error.js +3 -6
- package/error/details.error.js.map +1 -1
- package/error/forbidden.error.js +3 -6
- package/error/forbidden.error.js.map +1 -1
- package/error/index.js +15 -31
- package/error/index.js.map +1 -1
- package/error/invalid-token.error.js +3 -6
- package/error/invalid-token.error.js.map +1 -1
- package/error/max-bytes-exceeded.error.js +3 -6
- package/error/max-bytes-exceeded.error.js.map +1 -1
- package/error/method-not-allowed.error.js +3 -6
- package/error/method-not-allowed.error.js.map +1 -1
- package/error/multi.error.js +3 -6
- package/error/multi.error.js.map +1 -1
- package/error/not-found.error.js +3 -6
- package/error/not-found.error.js.map +1 -1
- package/error/not-implemented.error.js +3 -6
- package/error/not-implemented.error.js.map +1 -1
- package/error/not-supported.error.d.ts +1 -1
- package/error/not-supported.error.js +5 -8
- package/error/not-supported.error.js.map +1 -1
- package/error/unauthorized.error.js +3 -6
- package/error/unauthorized.error.js.map +1 -1
- package/error/unsupported-media-type.error.js +3 -6
- package/error/unsupported-media-type.error.js.map +1 -1
- package/examples/api/authentication.js +32 -34
- package/examples/api/authentication.js.map +1 -1
- package/examples/api/basic-overview.js +32 -34
- package/examples/api/basic-overview.js.map +1 -1
- package/examples/api/custom-authentication.js +39 -41
- package/examples/api/custom-authentication.js.map +1 -1
- package/examples/api/streaming.js +38 -40
- package/examples/api/streaming.js.map +1 -1
- package/examples/http/client.js +5 -7
- package/examples/http/client.js.map +1 -1
- package/examples/mail/basic.js +25 -27
- package/examples/mail/basic.js.map +1 -1
- package/examples/mail/templates/hello-name.js +10 -12
- package/examples/mail/templates/hello-name.js.map +1 -1
- package/examples/pdf/basic.js +19 -21
- package/examples/pdf/basic.js.map +1 -1
- package/examples/pdf/templates/hello-name.js +11 -13
- package/examples/pdf/templates/hello-name.js.map +1 -1
- package/examples/reflection/basic.d.ts +1 -1
- package/examples/reflection/basic.js +15 -18
- package/examples/reflection/basic.js.map +1 -1
- package/examples/template/basic.js +19 -21
- 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 +6 -9
- 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 +7 -9
- package/examples/template/templates/hello-name.js.map +1 -1
- package/global-this.js +1 -5
- package/global-this.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.js +32 -36
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/http-client-options.js +1 -5
- package/http/client/http-client-options.js.map +1 -1
- package/http/client/http-client-request.d.ts +4 -4
- package/http/client/http-client-request.js +24 -28
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +1 -1
- package/http/client/http-client-response.js +5 -9
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.adapter.js +1 -5
- package/http/client/http-client.adapter.js.map +1 -1
- package/http/client/http-client.d.ts +4 -4
- package/http/client/http-client.js +61 -65
- package/http/client/http-client.js.map +1 -1
- package/http/client/index.js +6 -22
- package/http/client/index.js.map +1 -1
- package/http/client/module.d.ts +1 -1
- package/http/client/module.js +8 -12
- package/http/client/module.js.map +1 -1
- package/http/cookie-parser.js +7 -11
- package/http/cookie-parser.js.map +1 -1
- package/http/http-body.d.ts +2 -2
- package/http/http-body.js +12 -16
- package/http/http-body.js.map +1 -1
- package/http/http-form.js +2 -6
- package/http/http-form.js.map +1 -1
- package/http/http-headers.js +15 -19
- package/http/http-headers.js.map +1 -1
- package/http/http-query.js +2 -6
- package/http/http-query.js.map +1 -1
- package/http/http-url-parameters.js +2 -6
- package/http/http-url-parameters.js.map +1 -1
- package/http/http-value-map.d.ts +1 -1
- package/http/http-value-map.js +20 -24
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +2 -2
- package/http/http.error.js +14 -17
- package/http/http.error.js.map +1 -1
- package/http/index.js +11 -27
- package/http/index.js.map +1 -1
- package/http/server/http-server-request.d.ts +1 -1
- package/http/server/http-server-request.js +5 -9
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +3 -3
- package/http/server/http-server-response.js +9 -13
- 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 +2 -6
- package/http/server/http-server.js.map +1 -1
- package/http/server/index.js +3 -19
- package/http/server/index.js.map +1 -1
- package/http/server/node/index.js +2 -18
- package/http/server/node/index.js.map +1 -1
- package/http/server/node/module.js +5 -9
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +6 -6
- package/http/server/node/node-http-server.js +50 -53
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +1 -1
- package/http/types.js +8 -15
- package/http/types.js.map +1 -1
- package/http/utils.d.ts +3 -3
- package/http/utils.js +39 -49
- package/http/utils.js.map +1 -1
- package/image-service/image-service.js +21 -26
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +2 -2
- package/image-service/imgproxy/imgproxy-image-service.js +31 -36
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/image-service/imgproxy/index.js +1 -17
- package/image-service/imgproxy/index.js.map +1 -1
- package/image-service/index.js +1 -17
- package/image-service/index.js.map +1 -1
- package/import.d.ts +1 -0
- package/import.js +4 -0
- package/import.js.map +1 -0
- package/index.js +1 -17
- package/index.js.map +1 -1
- package/interfaces.js +1 -2
- package/json-path/index.js +1 -17
- package/json-path/index.js.map +1 -1
- package/json-path/json-path.js +19 -26
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/index.js +2 -18
- package/key-value-store/index.js.map +1 -1
- package/key-value-store/key-value-store.provider.js +1 -5
- package/key-value-store/key-value-store.provider.js.map +1 -1
- package/key-value-store/key-value.store.d.ts +2 -2
- package/key-value-store/key-value.store.js +2 -7
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/index.d.ts +1 -0
- package/key-value-store/mongo/index.js +6 -21
- package/key-value-store/mongo/index.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +1 -5
- package/key-value-store/mongo/module.js +10 -16
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value-store.provider.js +7 -10
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +1 -1
- package/key-value-store/mongo/mongo-key-value.model.js +1 -2
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +5 -5
- package/key-value-store/mongo/mongo-key-value.repository.js +11 -15
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value.store.js +18 -21
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/key-value-store/mongo/tokens.d.ts +3 -0
- package/key-value-store/mongo/tokens.js +3 -0
- package/key-value-store/mongo/tokens.js.map +1 -0
- package/lock/index.js +2 -18
- package/lock/index.js.map +1 -1
- package/lock/lock.d.ts +1 -2
- package/lock/lock.js +1 -7
- package/lock/lock.js.map +1 -1
- package/lock/mongo/index.js +5 -21
- package/lock/mongo/index.js.map +1 -1
- package/lock/mongo/lock.d.ts +3 -3
- package/lock/mongo/lock.js +29 -32
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/model.js +1 -2
- package/lock/mongo/module.d.ts +1 -1
- package/lock/mongo/module.js +10 -14
- 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 +16 -20
- package/lock/mongo/mongo-lock-repository.js.map +1 -1
- package/lock/mongo/provider.d.ts +3 -3
- package/lock/mongo/provider.js +16 -19
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +1 -2
- package/lock/provider.js +1 -7
- package/lock/provider.js.map +1 -1
- package/lock/web/index.js +3 -19
- package/lock/web/index.js.map +1 -1
- package/lock/web/module.js +8 -12
- package/lock/web/module.js.map +1 -1
- package/lock/web/web-lock.js +19 -22
- 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 +8 -11
- package/lock/web/web-lock.provider.js.map +1 -1
- package/logger/console/index.js +1 -17
- package/logger/console/index.js.map +1 -1
- package/logger/console/logger.js +19 -22
- package/logger/console/logger.js.map +1 -1
- package/logger/index.js +2 -18
- package/logger/index.js.map +1 -1
- package/logger/level.js +2 -5
- package/logger/level.js.map +1 -1
- package/logger/logger.d.ts +3 -3
- package/logger/logger.js +12 -18
- package/logger/logger.js.map +1 -1
- package/logger/noop/index.js +1 -17
- package/logger/noop/index.js.map +1 -1
- package/logger/noop/logger.js +5 -9
- package/logger/noop/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.js +13 -17
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/index.js +5 -21
- package/mail/index.js.map +1 -1
- package/mail/mail-log.repository.d.ts +1 -1
- package/mail/mail-log.repository.js +2 -6
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail.client.d.ts +1 -2
- package/mail/mail.client.js +12 -20
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +5 -6
- package/mail/mail.service.js +25 -28
- package/mail/mail.service.js.map +1 -1
- package/mail/models/index.js +6 -22
- package/mail/models/index.js.map +1 -1
- package/mail/models/mail-address.model.js +1 -2
- package/mail/models/mail-content.model.js +1 -2
- package/mail/models/mail-data.model.d.ts +1 -1
- package/mail/models/mail-data.model.js +1 -2
- package/mail/models/mail-log.model.d.ts +1 -1
- package/mail/models/mail-log.model.js +1 -2
- package/mail/models/mail-send-result.model.js +1 -2
- package/mail/models/mail-template.model.d.ts +1 -1
- package/mail/models/mail-template.model.js +1 -5
- package/mail/models/mail-template.model.js.map +1 -1
- package/mail/module.d.ts +1 -1
- package/mail/module.js +14 -18
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +6 -6
- package/mail/repositories/mongo-mail-log.repository.js +13 -18
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/tokens.js +2 -5
- package/mail/tokens.js.map +1 -1
- package/memory/finalization.js +8 -13
- package/memory/finalization.js.map +1 -1
- package/memory/index.d.ts +1 -1
- package/memory/index.js +2 -18
- package/memory/index.js.map +1 -1
- package/memory/observable-finalization-registry.js +3 -7
- package/memory/observable-finalization-registry.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js +8 -11
- 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 +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +14 -17
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/broadcast-channel/index.js +3 -19
- package/message-bus/broadcast-channel/index.js.map +1 -1
- package/message-bus/broadcast-channel/module.js +8 -12
- package/message-bus/broadcast-channel/module.js.map +1 -1
- package/message-bus/index.js +3 -19
- package/message-bus/index.js.map +1 -1
- package/message-bus/local/index.js +3 -19
- package/message-bus/local/index.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +1 -1
- package/message-bus/local/local-message-bus-provider.js +16 -19
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +1 -1
- package/message-bus/local/local-message-bus.js +13 -16
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/module.js +8 -12
- package/message-bus/local/module.js.map +1 -1
- package/message-bus/local/types.js +1 -2
- package/message-bus/message-bus-base.d.ts +1 -1
- package/message-bus/message-bus-base.js +10 -14
- package/message-bus/message-bus-base.js.map +1 -1
- package/message-bus/message-bus-provider.js +1 -5
- package/message-bus/message-bus-provider.js.map +1 -1
- package/message-bus/message-bus.d.ts +2 -2
- package/message-bus/message-bus.js +3 -9
- package/message-bus/message-bus.js.map +1 -1
- package/migration/index.js +3 -19
- package/migration/index.js.map +1 -1
- package/migration/migration-state-repository.d.ts +1 -1
- package/migration/migration-state-repository.js +2 -6
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +1 -1
- package/migration/migration-state.js +1 -2
- package/migration/migrator.d.ts +2 -2
- package/migration/migrator.js +23 -26
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/index.js +2 -18
- package/migration/mongo/index.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +4 -4
- package/migration/mongo/migration-state-repository.js +12 -16
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +2 -2
- package/migration/mongo/module.js +7 -11
- package/migration/mongo/module.js.map +1 -1
- package/module/index.js +4 -20
- package/module/index.js.map +1 -1
- package/module/module-base.d.ts +3 -3
- package/module/module-base.js +10 -14
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +3 -3
- package/module/module-metric-reporter.js +7 -11
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +1 -1
- package/module/module.js +4 -7
- package/module/module.js.map +1 -1
- package/module/modules/function.module.d.ts +1 -1
- package/module/modules/function.module.js +2 -6
- package/module/modules/function.module.js.map +1 -1
- package/module/modules/index.js +2 -18
- package/module/modules/index.js.map +1 -1
- package/module/modules/web-server.module.d.ts +7 -7
- package/module/modules/web-server.module.js +20 -25
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +1 -1
- package/module/utils.js +2 -7
- package/module/utils.js.map +1 -1
- package/notification/api.d.ts +1 -1
- package/notification/api.js +10 -13
- package/notification/api.js.map +1 -1
- package/notification/models/index.js +2 -18
- package/notification/models/index.js.map +1 -1
- package/notification/models/notification-channel-job.model.js +1 -2
- package/notification/models/notification.model.js +15 -19
- package/notification/models/notification.model.js.map +1 -1
- package/notification/module.js +3 -7
- package/notification/module.js.map +1 -1
- package/notification/notification-channel.service.js +1 -5
- package/notification/notification-channel.service.js.map +1 -1
- package/notification/notification.repository.js +1 -5
- package/notification/notification.repository.js.map +1 -1
- package/notification/notification.service.js +7 -10
- package/notification/notification.service.js.map +1 -1
- package/object-storage/index.js +3 -19
- package/object-storage/index.js.map +1 -1
- package/object-storage/object-storage-provider.js +1 -5
- package/object-storage/object-storage-provider.js.map +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +1 -7
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.d.ts +1 -1
- package/object-storage/object.js +1 -5
- package/object-storage/object.js.map +1 -1
- package/object-storage/s3/index.js +3 -19
- package/object-storage/s3/index.js.map +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +1 -1
- package/object-storage/s3/s3.object-storage-provider.js +19 -24
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +2 -2
- package/object-storage/s3/s3.object-storage.js +26 -29
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +2 -2
- package/object-storage/s3/s3.object.js +5 -9
- package/object-storage/s3/s3.object.js.map +1 -1
- package/openid-connect/cached-oidc-configuration.service.d.ts +1 -1
- package/openid-connect/cached-oidc-configuration.service.js +14 -17
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.js +11 -27
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +6 -6
- package/openid-connect/mongo-oidc-state.repository.js +13 -18
- 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 +13 -16
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.model.js +1 -2
- package/openid-connect/oidc-state.repository.d.ts +1 -1
- package/openid-connect/oidc-state.repository.js +2 -6
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service-model.js +1 -2
- package/openid-connect/oidc.service.d.ts +2 -2
- package/openid-connect/oidc.service.js +35 -38
- package/openid-connect/oidc.service.js.map +1 -1
- package/package.json +13 -11
- package/password/have-i-been-pwned.js +3 -7
- package/password/have-i-been-pwned.js.map +1 -1
- package/password/index.d.ts +4 -4
- package/password/index.js +4 -20
- package/password/index.js.map +1 -1
- package/password/password-check-result.model.js +10 -12
- package/password/password-check-result.model.js.map +1 -1
- package/password/password-check.d.ts +1 -1
- package/password/password-check.js +15 -19
- package/password/password-check.js.map +1 -1
- package/password/password-check.localization.d.ts +7 -7
- package/password/password-check.localization.js +4 -7
- package/password/password-check.localization.js.map +1 -1
- package/pdf/index.js +1 -17
- package/pdf/index.js.map +1 -1
- package/pdf/pdf.service.d.ts +8 -8
- package/pdf/pdf.service.js +60 -67
- package/pdf/pdf.service.js.map +1 -1
- package/pool/index.js +1 -17
- package/pool/index.js.map +1 -1
- package/pool/pool.d.ts +3 -3
- package/pool/pool.js +13 -17
- package/pool/pool.js.map +1 -1
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +12 -19
- package/process-shutdown.js.map +1 -1
- package/promise/cancelable-promise.js +1 -5
- package/promise/cancelable-promise.js.map +1 -1
- package/promise/deferred-promise.js +14 -11
- package/promise/deferred-promise.js.map +1 -1
- package/promise/index.js +3 -19
- package/promise/index.js.map +1 -1
- package/promise/lazy-promise.js +5 -8
- package/promise/lazy-promise.js.map +1 -1
- package/queue/enqueue-batch.js +1 -5
- package/queue/enqueue-batch.js.map +1 -1
- package/queue/index.js +3 -19
- package/queue/index.js.map +1 -1
- package/queue/mongo/index.js +4 -20
- package/queue/mongo/index.js.map +1 -1
- package/queue/mongo/job.d.ts +3 -3
- package/queue/mongo/job.js +1 -2
- package/queue/mongo/mongo-job.repository.d.ts +6 -6
- package/queue/mongo/mongo-job.repository.js +18 -22
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +5 -5
- package/queue/mongo/queue.js +48 -51
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +7 -7
- package/queue/mongo/queue.provider.js +16 -21
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/provider.js +1 -5
- package/queue/provider.js.map +1 -1
- package/queue/queue.d.ts +2 -2
- package/queue/queue.js +10 -15
- package/queue/queue.js.map +1 -1
- package/random/index.js +1 -17
- package/random/index.js.map +1 -1
- package/random/number/index.js +3 -19
- package/random/number/index.js.map +1 -1
- package/random/number/mulberry32.js +3 -8
- package/random/number/mulberry32.js.map +1 -1
- package/random/number/seeded.js +1 -5
- package/random/number/seeded.js.map +1 -1
- package/random/number/sfc32.js +3 -8
- package/random/number/sfc32.js.map +1 -1
- package/reflection/decorator-data.js +12 -16
- package/reflection/decorator-data.js.map +1 -1
- package/reflection/decorators.d.ts +3 -2
- package/reflection/decorators.js +22 -34
- package/reflection/decorators.js.map +1 -1
- package/reflection/index.js +5 -21
- package/reflection/index.js.map +1 -1
- package/reflection/reflection-data-map.d.ts +1 -1
- package/reflection/reflection-data-map.js +7 -11
- package/reflection/reflection-data-map.js.map +1 -1
- package/reflection/registry.d.ts +1 -1
- package/reflection/registry.js +29 -33
- package/reflection/registry.js.map +1 -1
- package/reflection/types.d.ts +3 -3
- package/reflection/types.js +1 -2
- package/reflection/utils.d.ts +3 -3
- package/reflection/utils.js +31 -48
- package/reflection/utils.js.map +1 -1
- package/require.js +5 -7
- 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 +7 -11
- package/rpc/endpoints/message-port.rpc-endpoint.js.map +1 -1
- package/rpc/index.js +4 -20
- package/rpc/index.js.map +1 -1
- package/rpc/model.d.ts +2 -2
- package/rpc/model.js +3 -7
- package/rpc/model.js.map +1 -1
- package/rpc/rpc-endpoint.js +4 -8
- package/rpc/rpc-endpoint.js.map +1 -1
- package/rpc/rpc-error.d.ts +1 -1
- package/rpc/rpc-error.js +9 -13
- package/rpc/rpc-error.js.map +1 -1
- package/rpc/rpc.d.ts +1 -1
- package/rpc/rpc.js +38 -41
- package/rpc/rpc.js.map +1 -1
- package/rxjs/cast.js +2 -7
- package/rxjs/cast.js.map +1 -1
- package/rxjs/index.js +12 -28
- package/rxjs/index.js.map +1 -1
- package/rxjs/intersection-observer.js +9 -13
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/media-query.js +3 -7
- package/rxjs/media-query.js.map +1 -1
- package/rxjs/mutation-observer.js +9 -13
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/noop.js +2 -7
- package/rxjs/noop.js.map +1 -1
- package/rxjs/performance-observer.js +9 -13
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.js +9 -13
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +12 -17
- package/rxjs/retry-backoff.js.map +1 -1
- package/rxjs/slow-array.js +5 -10
- package/rxjs/slow-array.js.map +1 -1
- package/rxjs/teardown.js +3 -7
- package/rxjs/teardown.js.map +1 -1
- package/rxjs/timing.js +12 -15
- package/rxjs/timing.js.map +1 -1
- package/rxjs/touch.js +7 -11
- package/rxjs/touch.js.map +1 -1
- package/schema/array-constraints/index.js +2 -18
- package/schema/array-constraints/index.js.map +1 -1
- package/schema/array-constraints/maximum-length.d.ts +2 -2
- package/schema/array-constraints/maximum-length.js +7 -12
- package/schema/array-constraints/maximum-length.js.map +1 -1
- package/schema/array-constraints/minimum-length.d.ts +2 -2
- package/schema/array-constraints/minimum-length.js +7 -12
- package/schema/array-constraints/minimum-length.js.map +1 -1
- package/schema/coercers/boolean.coercer.d.ts +1 -1
- package/schema/coercers/boolean.coercer.js +7 -11
- package/schema/coercers/boolean.coercer.js.map +1 -1
- package/schema/coercers/date.coercer.d.ts +1 -1
- package/schema/coercers/date.coercer.js +7 -11
- package/schema/coercers/date.coercer.js.map +1 -1
- package/schema/coercers/index.js +6 -22
- package/schema/coercers/index.js.map +1 -1
- package/schema/coercers/number.coercer.d.ts +1 -1
- package/schema/coercers/number.coercer.js +5 -9
- package/schema/coercers/number.coercer.js.map +1 -1
- package/schema/coercers/regexp.coercer.d.ts +1 -1
- package/schema/coercers/regexp.coercer.js +5 -9
- package/schema/coercers/regexp.coercer.js.map +1 -1
- package/schema/coercers/string.coercer.d.ts +1 -1
- package/schema/coercers/string.coercer.js +7 -11
- package/schema/coercers/string.coercer.js.map +1 -1
- package/schema/coercers/uint8-array.coercer.d.ts +1 -1
- package/schema/coercers/uint8-array.coercer.js +10 -14
- package/schema/coercers/uint8-array.coercer.js.map +1 -1
- package/schema/constraints/enumeration.d.ts +2 -2
- package/schema/constraints/enumeration.js +11 -15
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +2 -2
- package/schema/constraints/generic.js +6 -10
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/index.js +12 -28
- package/schema/constraints/index.js.map +1 -1
- package/schema/constraints/integer.d.ts +2 -2
- package/schema/constraints/integer.js +9 -14
- package/schema/constraints/integer.js.map +1 -1
- package/schema/constraints/length.d.ts +1 -1
- package/schema/constraints/length.js +10 -14
- package/schema/constraints/length.js.map +1 -1
- package/schema/constraints/literal.d.ts +1 -1
- package/schema/constraints/literal.js +9 -13
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +2 -2
- package/schema/constraints/maximum-date.js +11 -16
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +2 -2
- package/schema/constraints/maximum-length.js +9 -14
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +2 -2
- package/schema/constraints/maximum.js +8 -13
- package/schema/constraints/maximum.js.map +1 -1
- package/schema/constraints/minimum-date.d.ts +2 -2
- package/schema/constraints/minimum-date.js +11 -16
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +2 -2
- package/schema/constraints/minimum-length.js +9 -14
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +2 -2
- package/schema/constraints/minimum.js +8 -13
- package/schema/constraints/minimum.js.map +1 -1
- package/schema/constraints/pattern.d.ts +2 -2
- package/schema/constraints/pattern.js +8 -13
- package/schema/constraints/pattern.js.map +1 -1
- package/schema/decorators/class.d.ts +1 -1
- package/schema/decorators/class.js +3 -7
- package/schema/decorators/class.js.map +1 -1
- package/schema/decorators/coerce.d.ts +1 -1
- package/schema/decorators/coerce.js +3 -7
- package/schema/decorators/coerce.js.map +1 -1
- package/schema/decorators/constraint.d.ts +2 -2
- package/schema/decorators/constraint.js +5 -9
- package/schema/decorators/constraint.js.map +1 -1
- package/schema/decorators/index.js +6 -22
- package/schema/decorators/index.js.map +1 -1
- package/schema/decorators/property.d.ts +2 -2
- package/schema/decorators/property.js +12 -16
- package/schema/decorators/property.js.map +1 -1
- package/schema/decorators/types.d.ts +1 -1
- package/schema/decorators/types.js +1 -2
- package/schema/decorators/utils.d.ts +2 -2
- package/schema/decorators/utils.js +21 -31
- package/schema/decorators/utils.js.map +1 -1
- package/schema/index.js +10 -26
- package/schema/index.js.map +1 -1
- package/schema/schema.d.ts +1 -1
- package/schema/schema.error.d.ts +5 -5
- package/schema/schema.error.js +19 -22
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +68 -72
- package/schema/schema.js.map +1 -1
- package/schema/schemas/any.d.ts +1 -1
- package/schema/schemas/any.js +6 -11
- package/schema/schemas/any.js.map +1 -1
- package/schema/schemas/array.d.ts +2 -2
- package/schema/schemas/array.js +14 -19
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/assign.js +7 -11
- package/schema/schemas/assign.js.map +1 -1
- package/schema/schemas/boolean.d.ts +1 -1
- package/schema/schemas/boolean.js +6 -11
- package/schema/schemas/boolean.js.map +1 -1
- package/schema/schemas/constraint.d.ts +1 -1
- package/schema/schemas/constraint.js +5 -9
- package/schema/schemas/constraint.js.map +1 -1
- package/schema/schemas/date.d.ts +1 -1
- package/schema/schemas/date.js +14 -19
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +2 -2
- package/schema/schemas/defaulted.js +7 -12
- package/schema/schemas/defaulted.js.map +1 -1
- package/schema/schemas/enumeration.d.ts +2 -2
- package/schema/schemas/enumeration.js +10 -15
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/index.js +26 -42
- package/schema/schemas/index.js.map +1 -1
- package/schema/schemas/instance.js +3 -7
- package/schema/schemas/instance.js.map +1 -1
- package/schema/schemas/literal.d.ts +1 -1
- package/schema/schemas/literal.js +11 -16
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +1 -1
- package/schema/schemas/nullable.js +6 -11
- package/schema/schemas/nullable.js.map +1 -1
- package/schema/schemas/number.d.ts +1 -1
- package/schema/schemas/number.js +17 -22
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +1 -1
- package/schema/schemas/object.js +5 -10
- package/schema/schemas/object.js.map +1 -1
- package/schema/schemas/omit.d.ts +2 -3
- package/schema/schemas/omit.js +9 -13
- package/schema/schemas/omit.js.map +1 -1
- package/schema/schemas/one-or-many.d.ts +2 -2
- package/schema/schemas/one-or-many.js +10 -15
- package/schema/schemas/one-or-many.js.map +1 -1
- package/schema/schemas/optional.d.ts +2 -2
- package/schema/schemas/optional.js +6 -11
- package/schema/schemas/optional.js.map +1 -1
- package/schema/schemas/partial.d.ts +1 -1
- package/schema/schemas/partial.js +12 -16
- package/schema/schemas/partial.js.map +1 -1
- package/schema/schemas/pick.d.ts +2 -3
- package/schema/schemas/pick.js +9 -13
- package/schema/schemas/pick.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +1 -1
- package/schema/schemas/readable-stream.js +6 -11
- package/schema/schemas/readable-stream.js.map +1 -1
- package/schema/schemas/record.d.ts +1 -1
- package/schema/schemas/record.js +3 -7
- package/schema/schemas/record.js.map +1 -1
- package/schema/schemas/regexp.d.ts +1 -1
- package/schema/schemas/regexp.js +6 -11
- package/schema/schemas/regexp.js.map +1 -1
- package/schema/schemas/string.d.ts +1 -1
- package/schema/schemas/string.js +24 -29
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +1 -1
- package/schema/schemas/transform.js +5 -9
- package/schema/schemas/transform.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +1 -1
- package/schema/schemas/uint8-array.js +18 -23
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +1 -1
- package/schema/schemas/union.js +10 -15
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +1 -1
- package/schema/schemas/unknown.js +6 -11
- package/schema/schemas/unknown.js.map +1 -1
- package/schema/transformers/generic.d.ts +2 -2
- package/schema/transformers/generic.js +5 -10
- package/schema/transformers/generic.js.map +1 -1
- package/schema/transformers/index.js +4 -20
- package/schema/transformers/index.js.map +1 -1
- package/schema/transformers/lowercase.d.ts +1 -1
- package/schema/transformers/lowercase.js +5 -10
- package/schema/transformers/lowercase.js.map +1 -1
- package/schema/transformers/trim.d.ts +1 -1
- package/schema/transformers/trim.js +5 -10
- package/schema/transformers/trim.js.map +1 -1
- package/schema/transformers/uppercase.d.ts +1 -1
- package/schema/transformers/uppercase.js +5 -10
- package/schema/transformers/uppercase.js.map +1 -1
- package/schema/types/index.js +5 -21
- package/schema/types/index.js.map +1 -1
- package/schema/types/schema-array-constraint.d.ts +1 -1
- package/schema/types/schema-array-constraint.js +1 -5
- package/schema/types/schema-array-constraint.js.map +1 -1
- package/schema/types/schema-value-coercer.d.ts +2 -2
- package/schema/types/schema-value-coercer.js +1 -5
- package/schema/types/schema-value-coercer.js.map +1 -1
- package/schema/types/schema-value-constraint.d.ts +2 -2
- package/schema/types/schema-value-constraint.js +1 -5
- package/schema/types/schema-value-constraint.js.map +1 -1
- package/schema/types/schema-value-transformer.d.ts +2 -2
- package/schema/types/schema-value-transformer.js +1 -5
- package/schema/types/schema-value-transformer.js.map +1 -1
- package/schema/types/types.d.ts +1 -1
- package/schema/types/types.js +49 -71
- package/schema/types/types.js.map +1 -1
- package/schema/utils/index.js +2 -18
- package/schema/utils/index.js.map +1 -1
- package/schema/utils/schema.d.ts +1 -1
- package/schema/utils/schema.js +46 -51
- package/schema/utils/schema.js.map +1 -1
- package/schema/utils/value-type.d.ts +1 -1
- package/schema/utils/value-type.js +27 -35
- 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 -10
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/index.js +6 -22
- package/search-index/elastic/index.js.map +1 -1
- package/search-index/elastic/keyword-rewriter.js +1 -5
- package/search-index/elastic/keyword-rewriter.js.map +1 -1
- package/search-index/elastic/model/elastic-query.js +1 -2
- package/search-index/elastic/model/index-mapping.d.ts +2 -2
- package/search-index/elastic/model/index-mapping.js +3 -7
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/index.js +3 -19
- package/search-index/elastic/model/index.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +1 -1
- package/search-index/elastic/model/sort.js +1 -2
- package/search-index/elastic/module.d.ts +2 -2
- package/search-index/elastic/module.js +25 -30
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js +1 -5
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +1 -1
- package/search-index/elastic/query-builder/index.js +1 -17
- package/search-index/elastic/query-builder/index.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +2 -2
- package/search-index/elastic/query-converter.js +31 -39
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +6 -6
- package/search-index/elastic/search-index.js +33 -37
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +1 -1
- package/search-index/elastic/sort-converter.js +1 -5
- package/search-index/elastic/sort-converter.js.map +1 -1
- package/search-index/elastic/types.js +1 -2
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +5 -8
- package/search-index/error.js.map +1 -1
- package/search-index/index.js +3 -19
- package/search-index/index.js.map +1 -1
- package/search-index/memory/index.js +1 -17
- package/search-index/memory/index.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +1 -1
- package/search-index/memory/memory-search-index.js +26 -30
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +2 -2
- package/search-index/search-index.js +4 -8
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +1 -1
- package/search-index/search-result.js +1 -2
- package/serializer/handlers/binary.d.ts +2 -2
- package/serializer/handlers/binary.js +13 -22
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/date.js +2 -7
- package/serializer/handlers/date.js.map +1 -1
- package/serializer/handlers/error.js +2 -7
- package/serializer/handlers/error.js.map +1 -1
- package/serializer/handlers/index.js +7 -23
- package/serializer/handlers/index.js.map +1 -1
- package/serializer/handlers/map.js +2 -7
- package/serializer/handlers/map.js.map +1 -1
- package/serializer/handlers/regex.js +2 -7
- package/serializer/handlers/regex.js.map +1 -1
- package/serializer/handlers/register.js +19 -23
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.js +2 -7
- package/serializer/handlers/set.js.map +1 -1
- package/serializer/index.js +3 -24
- package/serializer/index.js.map +1 -1
- package/serializer/serializable.d.ts +1 -1
- package/serializer/serializable.js +14 -24
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +1 -1
- package/serializer/serializer.js +38 -45
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/serializer/types.js +6 -9
- package/serializer/types.js.map +1 -1
- package/sse/index.js +2 -18
- package/sse/index.js.map +1 -1
- package/sse/model.js +1 -2
- package/sse/server-sent-events-source.d.ts +1 -1
- package/sse/server-sent-events-source.js +6 -10
- package/sse/server-sent-events-source.js.map +1 -1
- package/sse/server-sent-events.js +15 -19
- package/sse/server-sent-events.js.map +1 -1
- package/supports.js +5 -8
- package/supports.js.map +1 -1
- package/templates/index.js +9 -25
- package/templates/index.js.map +1 -1
- package/templates/module.d.ts +1 -1
- package/templates/module.js +20 -24
- package/templates/module.js.map +1 -1
- package/templates/providers/file.template-provider.d.ts +2 -2
- package/templates/providers/file.template-provider.js +18 -24
- package/templates/providers/file.template-provider.js.map +1 -1
- package/templates/providers/memory.template-provider.js +7 -10
- package/templates/providers/memory.template-provider.js.map +1 -1
- package/templates/renderers/handlebars.template-renderer.d.ts +1 -1
- package/templates/renderers/handlebars.template-renderer.js +21 -24
- package/templates/renderers/handlebars.template-renderer.js.map +1 -1
- package/templates/renderers/jsx.template-renderer.d.ts +0 -7
- package/templates/renderers/jsx.template-renderer.js +13 -16
- package/templates/renderers/jsx.template-renderer.js.map +1 -1
- package/templates/renderers/mjml.template-renderer.js +9 -12
- package/templates/renderers/mjml.template-renderer.js.map +1 -1
- package/templates/renderers/string.template-renderer.js +5 -8
- package/templates/renderers/string.template-renderer.js.map +1 -1
- package/templates/resolvers/file.template-resolver.d.ts +3 -3
- package/templates/resolvers/file.template-resolver.js +19 -26
- package/templates/resolvers/file.template-resolver.js.map +1 -1
- package/templates/resolvers/jsx.template-resolver.d.ts +1 -1
- package/templates/resolvers/jsx.template-resolver.js +10 -15
- package/templates/resolvers/jsx.template-resolver.js.map +1 -1
- package/templates/resolvers/string.template-resolver.d.ts +1 -1
- package/templates/resolvers/string.template-resolver.js +10 -15
- package/templates/resolvers/string.template-resolver.js.map +1 -1
- package/templates/template-renderer.provider.js +5 -8
- package/templates/template-renderer.provider.js.map +1 -1
- package/templates/template-resolver.provider.js +5 -8
- package/templates/template-resolver.provider.js.map +1 -1
- package/templates/template.model.d.ts +1 -1
- package/templates/template.model.js +13 -18
- package/templates/template.model.js.map +1 -1
- package/templates/template.provider.js +1 -5
- package/templates/template.provider.js.map +1 -1
- package/templates/template.renderer.d.ts +2 -2
- package/templates/template.renderer.js +7 -11
- package/templates/template.renderer.js.map +1 -1
- package/templates/template.resolver.js +1 -5
- package/templates/template.resolver.js.map +1 -1
- package/templates/template.service.d.ts +1 -1
- package/templates/template.service.js +16 -19
- package/templates/template.service.js.map +1 -1
- package/templates/tokens.js +3 -6
- package/templates/tokens.js.map +1 -1
- package/templates/types/jsx.intrinsic-elements.d.ts +8 -0
- package/templates/types/jsx.intrinsic-elements.js +2 -0
- package/templates/types/jsx.intrinsic-elements.js.map +1 -0
- package/text/dynamic-text.model.d.ts +1 -1
- package/text/dynamic-text.model.js +18 -25
- package/text/dynamic-text.model.js.map +1 -1
- package/text/index.js +3 -19
- package/text/index.js.map +1 -1
- package/text/localizable-text.model.js +1 -2
- package/text/localization.service.d.ts +3 -3
- package/text/localization.service.js +49 -57
- package/text/localization.service.js.map +1 -1
- package/theme/adapters/css-adapter.js +7 -11
- package/theme/adapters/css-adapter.js.map +1 -1
- package/theme/adapters/tailwind-adapter.d.ts +1 -1
- package/theme/adapters/tailwind-adapter.js +10 -16
- package/theme/adapters/tailwind-adapter.js.map +1 -1
- package/theme/index.js +1 -17
- package/theme/index.js.map +1 -1
- package/theme/theme-service.js +21 -24
- package/theme/theme-service.js.map +1 -1
- package/threading/index.js +2 -18
- package/threading/index.js.map +1 -1
- package/threading/thread-pool.d.ts +5 -5
- package/threading/thread-pool.js +18 -19
- package/threading/thread-pool.js.map +1 -1
- package/threading/thread-worker.d.ts +1 -1
- package/threading/thread-worker.js +3 -7
- package/threading/thread-worker.js.map +1 -1
- package/tokens.js +2 -5
- package/tokens.js.map +1 -1
- package/tsconfig.json +8 -5
- package/types/geo-json.d.ts +1 -1
- package/types/geo-json.js +1 -2
- package/types.d.ts +1 -0
- package/types.js +1 -2
- package/types.js.map +1 -1
- package/utils/alphabet.js +2 -5
- package/utils/alphabet.js.map +1 -1
- package/utils/any-iterable-iterator.js +4 -8
- package/utils/any-iterable-iterator.js.map +1 -1
- package/utils/array/array-backtracker.js +8 -12
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/array/array.js +18 -28
- package/utils/array/array.js.map +1 -1
- package/utils/array/index.js +2 -18
- package/utils/array/index.js.map +1 -1
- package/utils/async-iterable-helpers/all.js +3 -7
- package/utils/async-iterable-helpers/all.js.map +1 -1
- package/utils/async-iterable-helpers/any.js +3 -7
- package/utils/async-iterable-helpers/any.js.map +1 -1
- package/utils/async-iterable-helpers/assert.js +6 -10
- package/utils/async-iterable-helpers/assert.js.map +1 -1
- package/utils/async-iterable-helpers/batch.js +3 -7
- package/utils/async-iterable-helpers/batch.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.js +9 -13
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/concat.js +1 -5
- package/utils/async-iterable-helpers/concat.js.map +1 -1
- package/utils/async-iterable-helpers/default-if-empty.js +1 -5
- package/utils/async-iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/async-iterable-helpers/deferred.js +1 -5
- package/utils/async-iterable-helpers/deferred.js.map +1 -1
- package/utils/async-iterable-helpers/difference.js +10 -15
- package/utils/async-iterable-helpers/difference.js.map +1 -1
- package/utils/async-iterable-helpers/distinct.js +3 -7
- package/utils/async-iterable-helpers/distinct.js.map +1 -1
- package/utils/async-iterable-helpers/drain.js +1 -5
- package/utils/async-iterable-helpers/drain.js.map +1 -1
- package/utils/async-iterable-helpers/filter.js +3 -7
- package/utils/async-iterable-helpers/filter.js.map +1 -1
- package/utils/async-iterable-helpers/first-or-default.js +3 -7
- package/utils/async-iterable-helpers/first-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/first.js +3 -7
- package/utils/async-iterable-helpers/first.js.map +1 -1
- package/utils/async-iterable-helpers/for-each.js +3 -7
- package/utils/async-iterable-helpers/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/group-single.js +3 -7
- package/utils/async-iterable-helpers/group-single.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-map.js +6 -10
- package/utils/async-iterable-helpers/group-to-map.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-single-map.js +3 -7
- package/utils/async-iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/async-iterable-helpers/group.js +3 -7
- package/utils/async-iterable-helpers/group.js.map +1 -1
- package/utils/async-iterable-helpers/includes.js +7 -11
- package/utils/async-iterable-helpers/includes.js.map +1 -1
- package/utils/async-iterable-helpers/index.js +48 -64
- package/utils/async-iterable-helpers/index.js.map +1 -1
- package/utils/async-iterable-helpers/interrupt.js +7 -12
- package/utils/async-iterable-helpers/interrupt.js.map +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.js +5 -10
- package/utils/async-iterable-helpers/is-async-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/last-or-default.js +3 -7
- package/utils/async-iterable-helpers/last-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/last.js +3 -7
- package/utils/async-iterable-helpers/last.js.map +1 -1
- package/utils/async-iterable-helpers/map-many.js +3 -7
- package/utils/async-iterable-helpers/map-many.js.map +1 -1
- package/utils/async-iterable-helpers/map.js +3 -7
- package/utils/async-iterable-helpers/map.js.map +1 -1
- package/utils/async-iterable-helpers/materialize.js +5 -9
- package/utils/async-iterable-helpers/materialize.js.map +1 -1
- package/utils/async-iterable-helpers/metadata.js +5 -11
- package/utils/async-iterable-helpers/metadata.js.map +1 -1
- package/utils/async-iterable-helpers/multiplex.js +4 -8
- package/utils/async-iterable-helpers/multiplex.js.map +1 -1
- package/utils/async-iterable-helpers/observable-iterable.js +8 -12
- package/utils/async-iterable-helpers/observable-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/pairwise.js +3 -7
- package/utils/async-iterable-helpers/pairwise.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/feed.js +7 -11
- package/utils/async-iterable-helpers/parallel/feed.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/filter.js +3 -7
- package/utils/async-iterable-helpers/parallel/filter.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/for-each.js +5 -9
- package/utils/async-iterable-helpers/parallel/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/group.js +5 -9
- package/utils/async-iterable-helpers/parallel/group.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/index.js +7 -23
- package/utils/async-iterable-helpers/parallel/index.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/map.js +3 -7
- package/utils/async-iterable-helpers/parallel/map.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/tap.js +3 -7
- package/utils/async-iterable-helpers/parallel/tap.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/types.js +1 -2
- package/utils/async-iterable-helpers/reduce.js +3 -7
- package/utils/async-iterable-helpers/reduce.js.map +1 -1
- package/utils/async-iterable-helpers/retry.js +3 -7
- package/utils/async-iterable-helpers/retry.js.map +1 -1
- package/utils/async-iterable-helpers/single-or-default.js +1 -5
- package/utils/async-iterable-helpers/single-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/single.js +1 -5
- package/utils/async-iterable-helpers/single.js.map +1 -1
- package/utils/async-iterable-helpers/skip.js +3 -7
- package/utils/async-iterable-helpers/skip.js.map +1 -1
- package/utils/async-iterable-helpers/sort.js +5 -9
- package/utils/async-iterable-helpers/sort.js.map +1 -1
- package/utils/async-iterable-helpers/take-until.js +6 -10
- package/utils/async-iterable-helpers/take-until.js.map +1 -1
- package/utils/async-iterable-helpers/take-while.js +3 -7
- package/utils/async-iterable-helpers/take-while.js.map +1 -1
- package/utils/async-iterable-helpers/take.js +1 -5
- package/utils/async-iterable-helpers/take.js.map +1 -1
- package/utils/async-iterable-helpers/tap.js +3 -7
- package/utils/async-iterable-helpers/tap.js.map +1 -1
- package/utils/async-iterable-helpers/throttle.js +3 -7
- package/utils/async-iterable-helpers/throttle.js.map +1 -1
- package/utils/async-iterable-helpers/to-array.js +3 -7
- package/utils/async-iterable-helpers/to-array.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js +3 -9
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.js +9 -14
- package/utils/async-iterable-helpers/to-async-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-set.js +3 -7
- package/utils/async-iterable-helpers/to-set.js.map +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.js +5 -9
- package/utils/async-iterable-helpers/to-sync-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/types.js +1 -2
- package/utils/async-iterable-helpers/while.js +3 -7
- package/utils/async-iterable-helpers/while.js.map +1 -1
- package/utils/async-iterator-iterable-iterator.js +4 -8
- package/utils/async-iterator-iterable-iterator.js.map +1 -1
- package/utils/backoff.js +13 -20
- package/utils/backoff.js.map +1 -1
- package/utils/base64.js +16 -27
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.js +17 -25
- package/utils/benchmark.js.map +1 -1
- package/utils/binary-search.js +8 -18
- package/utils/binary-search.js.map +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +10 -17
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.js +21 -25
- package/utils/cancellation-token.js.map +1 -1
- package/utils/clone.js +16 -20
- package/utils/clone.js.map +1 -1
- package/utils/comparison.js +7 -17
- package/utils/comparison.js.map +1 -1
- package/utils/compression.d.ts +4 -4
- package/utils/compression.js +32 -39
- package/utils/compression.js.map +1 -1
- package/utils/config-parser.js +11 -18
- package/utils/config-parser.js.map +1 -1
- package/utils/cryptography.d.ts +1 -1
- package/utils/cryptography.js +44 -58
- package/utils/cryptography.js.map +1 -1
- package/utils/date-time.js +44 -68
- package/utils/date-time.js.map +1 -1
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +14 -23
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/enum.js +16 -24
- package/utils/enum.js.map +1 -1
- package/utils/equals.d.ts +1 -1
- package/utils/equals.js +22 -28
- package/utils/equals.js.map +1 -1
- package/utils/event-loop.js +9 -14
- package/utils/event-loop.js.map +1 -1
- package/utils/factory-map.js +1 -5
- package/utils/factory-map.js.map +1 -1
- package/utils/feedable-async-iterable.js +8 -12
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/file-reader.js +6 -13
- package/utils/file-reader.js.map +1 -1
- package/utils/format-error.d.ts +1 -1
- package/utils/format-error.js +11 -15
- package/utils/format-error.js.map +1 -1
- package/utils/function/index.js +2 -18
- package/utils/function/index.js.map +1 -1
- package/utils/function/memoize.js +6 -11
- package/utils/function/memoize.js.map +1 -1
- package/utils/function/throttle.js +5 -9
- package/utils/function/throttle.js.map +1 -1
- package/utils/helpers.js +18 -31
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +21 -29
- package/utils/image.js.map +1 -1
- package/utils/index.js +47 -63
- package/utils/index.js.map +1 -1
- package/utils/iterable-helpers/all.js +1 -5
- package/utils/iterable-helpers/all.js.map +1 -1
- package/utils/iterable-helpers/any.js +1 -5
- package/utils/iterable-helpers/any.js.map +1 -1
- package/utils/iterable-helpers/assert.js +3 -7
- package/utils/iterable-helpers/assert.js.map +1 -1
- package/utils/iterable-helpers/batch.js +1 -5
- package/utils/iterable-helpers/batch.js.map +1 -1
- package/utils/iterable-helpers/concat.js +1 -5
- package/utils/iterable-helpers/concat.js.map +1 -1
- package/utils/iterable-helpers/default-if-empty.js +1 -5
- package/utils/iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/iterable-helpers/deferred.js +1 -5
- package/utils/iterable-helpers/deferred.js.map +1 -1
- package/utils/iterable-helpers/difference.js +7 -12
- package/utils/iterable-helpers/difference.js.map +1 -1
- package/utils/iterable-helpers/distinct.js +1 -5
- package/utils/iterable-helpers/distinct.js.map +1 -1
- package/utils/iterable-helpers/drain.js +1 -5
- package/utils/iterable-helpers/drain.js.map +1 -1
- package/utils/iterable-helpers/filter.js +1 -5
- package/utils/iterable-helpers/filter.js.map +1 -1
- package/utils/iterable-helpers/first-or-default.js +3 -7
- package/utils/iterable-helpers/first-or-default.js.map +1 -1
- package/utils/iterable-helpers/first.js +3 -7
- package/utils/iterable-helpers/first.js.map +1 -1
- package/utils/iterable-helpers/for-each.js +1 -5
- package/utils/iterable-helpers/for-each.js.map +1 -1
- package/utils/iterable-helpers/group-single.js +3 -7
- package/utils/iterable-helpers/group-single.js.map +1 -1
- package/utils/iterable-helpers/group-to-map.js +3 -7
- package/utils/iterable-helpers/group-to-map.js.map +1 -1
- package/utils/iterable-helpers/group-to-single-map.js +1 -5
- package/utils/iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/iterable-helpers/group.js +3 -7
- package/utils/iterable-helpers/group.js.map +1 -1
- package/utils/iterable-helpers/includes.js +3 -7
- package/utils/iterable-helpers/includes.js.map +1 -1
- package/utils/iterable-helpers/index.js +39 -55
- package/utils/iterable-helpers/index.js.map +1 -1
- package/utils/iterable-helpers/is-iterable.js +5 -10
- package/utils/iterable-helpers/is-iterable.js.map +1 -1
- package/utils/iterable-helpers/last-or-default.js +3 -7
- package/utils/iterable-helpers/last-or-default.js.map +1 -1
- package/utils/iterable-helpers/last.js +3 -7
- package/utils/iterable-helpers/last.js.map +1 -1
- package/utils/iterable-helpers/map-many.js +1 -5
- package/utils/iterable-helpers/map-many.js.map +1 -1
- package/utils/iterable-helpers/map.js +1 -5
- package/utils/iterable-helpers/map.js.map +1 -1
- package/utils/iterable-helpers/materialize.js +1 -5
- package/utils/iterable-helpers/materialize.js.map +1 -1
- package/utils/iterable-helpers/metadata.js +1 -5
- package/utils/iterable-helpers/metadata.js.map +1 -1
- package/utils/iterable-helpers/pairwise.js +1 -5
- package/utils/iterable-helpers/pairwise.js.map +1 -1
- package/utils/iterable-helpers/range.js +1 -5
- package/utils/iterable-helpers/range.js.map +1 -1
- package/utils/iterable-helpers/reduce.js +1 -5
- package/utils/iterable-helpers/reduce.js.map +1 -1
- package/utils/iterable-helpers/single-or-default.js +1 -5
- package/utils/iterable-helpers/single-or-default.js.map +1 -1
- package/utils/iterable-helpers/single.js +1 -5
- package/utils/iterable-helpers/single.js.map +1 -1
- package/utils/iterable-helpers/skip.js +1 -5
- package/utils/iterable-helpers/skip.js.map +1 -1
- package/utils/iterable-helpers/sort.js +2 -6
- package/utils/iterable-helpers/sort.js.map +1 -1
- package/utils/iterable-helpers/take-until.js +1 -5
- package/utils/iterable-helpers/take-until.js.map +1 -1
- package/utils/iterable-helpers/take-while.js +1 -5
- package/utils/iterable-helpers/take-while.js.map +1 -1
- package/utils/iterable-helpers/take.js +1 -5
- package/utils/iterable-helpers/take.js.map +1 -1
- package/utils/iterable-helpers/tap.js +1 -5
- package/utils/iterable-helpers/tap.js.map +1 -1
- package/utils/iterable-helpers/types.js +1 -2
- package/utils/iterable-helpers/while.js +1 -5
- package/utils/iterable-helpers/while.js.map +1 -1
- package/utils/jwt.js +29 -35
- package/utils/jwt.js.map +1 -1
- package/utils/map.js +7 -15
- package/utils/map.js.map +1 -1
- package/utils/math.js +14 -28
- package/utils/math.js.map +1 -1
- package/utils/merge.d.ts +1 -1
- package/utils/merge.js +12 -16
- package/utils/merge.js.map +1 -1
- package/utils/middleware.js +2 -7
- package/utils/middleware.js.map +1 -1
- package/utils/moving-metric.js +5 -9
- package/utils/moving-metric.js.map +1 -1
- package/utils/noop.js +2 -7
- package/utils/noop.js.map +1 -1
- package/utils/object/decycle.d.ts +1 -1
- package/utils/object/decycle.js +22 -27
- package/utils/object/decycle.js.map +1 -1
- package/utils/object/dereference.d.ts +1 -1
- package/utils/object/dereference.js +7 -13
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.js +15 -18
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/object/index.js +7 -23
- package/utils/object/index.js.map +1 -1
- package/utils/object/lazy-property.d.ts +1 -1
- package/utils/object/lazy-property.js +15 -22
- package/utils/object/lazy-property.js.map +1 -1
- package/utils/object/merge.js +13 -17
- package/utils/object/merge.js.map +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/object.js +23 -40
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +1 -1
- package/utils/object/property-name.js +18 -26
- package/utils/object/property-name.js.map +1 -1
- package/utils/ordered-feedable-async-iterable.js +3 -7
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +1 -1
- package/utils/patch-worker.js +19 -23
- package/utils/patch-worker.js.map +1 -1
- package/utils/patterns.js +4 -8
- package/utils/patterns.js.map +1 -1
- package/utils/periodic-reporter.js +9 -13
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.js +15 -19
- package/utils/periodic-sampler.js.map +1 -1
- package/utils/provider-function-iterable.js +3 -7
- package/utils/provider-function-iterable.js.map +1 -1
- package/utils/proxy.js +4 -7
- package/utils/proxy.js.map +1 -1
- package/utils/random.js +3 -8
- package/utils/random.js.map +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/reflection.js +7 -16
- package/utils/reflection.js.map +1 -1
- package/utils/set.js +7 -15
- package/utils/set.js.map +1 -1
- package/utils/singleton.js +3 -7
- package/utils/singleton.js.map +1 -1
- package/utils/sort.js +5 -12
- package/utils/sort.js.map +1 -1
- package/utils/stream/finalize-stream.js +1 -5
- package/utils/stream/finalize-stream.js.map +1 -1
- package/utils/stream/index.js +6 -22
- package/utils/stream/index.js.map +1 -1
- package/utils/stream/readable-stream-adapter.js +4 -9
- package/utils/stream/readable-stream-adapter.js.map +1 -1
- package/utils/stream/readable-stream-from-promise.js +1 -5
- package/utils/stream/readable-stream-from-promise.js.map +1 -1
- package/utils/stream/size-limited-stream.d.ts +1 -1
- package/utils/stream/size-limited-stream.js +3 -7
- package/utils/stream/size-limited-stream.js.map +1 -1
- package/utils/stream/stream-helper-types.d.ts +1 -1
- package/utils/stream/stream-helper-types.js +1 -2
- package/utils/stream/stream-reader.js +11 -15
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/string/hypenate.js +1 -5
- package/utils/string/hypenate.js.map +1 -1
- package/utils/string/index.js +3 -19
- package/utils/string/index.js.map +1 -1
- package/utils/string/title-case.js +1 -5
- package/utils/string/title-case.js.map +1 -1
- package/utils/string/trim.js +1 -5
- package/utils/string/trim.js.map +1 -1
- package/utils/throw.js +2 -7
- package/utils/throw.js.map +1 -1
- package/utils/timer.js +1 -5
- package/utils/timer.js.map +1 -1
- package/utils/timing.js +12 -23
- package/utils/timing.js.map +1 -1
- package/utils/type-guards.d.ts +1 -1
- package/utils/type-guards.js +234 -471
- package/utils/type-guards.js.map +1 -1
- package/utils/type-of.js +3 -7
- package/utils/type-of.js.map +1 -1
- package/utils/units.js +51 -55
- package/utils/units.js.map +1 -1
- package/utils/url-builder.js +20 -20
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/utils/z-base32.js +6 -11
- package/utils/z-base32.js.map +1 -1
- package/web-types.js +1 -2
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AuthenticationTokenPayloadProvider = exports.GetTokenPayloadContextAction = void 0;
|
|
4
|
-
var GetTokenPayloadContextAction;
|
|
1
|
+
export var GetTokenPayloadContextAction;
|
|
5
2
|
(function (GetTokenPayloadContextAction) {
|
|
6
3
|
GetTokenPayloadContextAction[GetTokenPayloadContextAction["GetToken"] = 0] = "GetToken";
|
|
7
4
|
GetTokenPayloadContextAction[GetTokenPayloadContextAction["Refresh"] = 1] = "Refresh";
|
|
8
|
-
})(GetTokenPayloadContextAction
|
|
9
|
-
class AuthenticationTokenPayloadProvider {
|
|
5
|
+
})(GetTokenPayloadContextAction || (GetTokenPayloadContextAction = {}));
|
|
6
|
+
export class AuthenticationTokenPayloadProvider {
|
|
10
7
|
}
|
|
11
|
-
exports.AuthenticationTokenPayloadProvider = AuthenticationTokenPayloadProvider;
|
|
12
8
|
//# sourceMappingURL=authentication-token-payload.provider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication-token-payload.provider.js","sourceRoot":"","sources":["../../../source/authentication/server/authentication-token-payload.provider.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authentication-token-payload.provider.js","sourceRoot":"","sources":["../../../source/authentication/server/authentication-token-payload.provider.ts"],"names":[],"mappings":"AAEA,MAAM,CAAN,IAAY,4BAGX;AAHD,WAAY,4BAA4B;IACtC,uFAAY,CAAA;IACZ,qFAAW,CAAA;AACb,CAAC,EAHW,4BAA4B,KAA5B,4BAA4B,QAGvC;AAMD,MAAM,OAAgB,kCAAkC;CAEvD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ApiController, ApiRequestContext, ApiServerResult } from
|
|
2
|
-
import type { Record } from
|
|
1
|
+
import type { ApiController, ApiRequestContext, ApiServerResult } from '../../api/types.js';
|
|
2
|
+
import type { Record } from '../../types.js';
|
|
3
3
|
import type { AuthenticationApiDefinition } from '../authentication.api.js';
|
|
4
4
|
import { AuthenticationService } from './authentication.service.js';
|
|
5
5
|
export declare class AuthenticationApiController<AdditionalTokenPayload = Record<never>, AuthenticationData = void> implements ApiController<AuthenticationApiDefinition<AdditionalTokenPayload, AuthenticationData>> {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -8,15 +7,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
7
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
8
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
9
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
const authentication_service_js_1 = require("./authentication.service.js");
|
|
19
|
-
const helper_js_1 = require("./helper.js");
|
|
10
|
+
import { apiController } from '../../api/server/index.js';
|
|
11
|
+
import { UnauthorizedError } from '../../error/unauthorized.error.js';
|
|
12
|
+
import { HttpServerResponse } from '../../http/server/index.js';
|
|
13
|
+
import { currentTimestamp } from '../../utils/date-time.js';
|
|
14
|
+
import { authenticationApiDefinition } from '../authentication.api.js';
|
|
15
|
+
import { AuthenticationService } from './authentication.service.js';
|
|
16
|
+
import { tryGetAuthorizationTokenStringFromRequest } from './helper.js';
|
|
20
17
|
const cookieBaseOptions = { path: '/', httpOnly: true, secure: true, sameSite: 'strict' };
|
|
21
18
|
let AuthenticationApiController = class AuthenticationApiController {
|
|
22
19
|
authenticationService;
|
|
@@ -26,26 +23,26 @@ let AuthenticationApiController = class AuthenticationApiController {
|
|
|
26
23
|
async token({ parameters }) {
|
|
27
24
|
const authenticationResult = await this.authenticationService.authenticate(parameters.subject, parameters.secret);
|
|
28
25
|
if (!authenticationResult.success) {
|
|
29
|
-
throw new
|
|
26
|
+
throw new UnauthorizedError('Invalid credentials.');
|
|
30
27
|
}
|
|
31
28
|
const result = await this.authenticationService.getToken(authenticationResult.subject, parameters.data);
|
|
32
29
|
return this.getTokenResponse(result);
|
|
33
30
|
}
|
|
34
31
|
async refresh({ request, parameters }) {
|
|
35
|
-
const tokenString =
|
|
32
|
+
const tokenString = tryGetAuthorizationTokenStringFromRequest(request, 'refreshToken') ?? '';
|
|
36
33
|
const result = await this.authenticationService.refresh(tokenString, parameters.data);
|
|
37
34
|
return this.getTokenResponse(result);
|
|
38
35
|
}
|
|
39
36
|
async endSession({ request }) {
|
|
40
37
|
let sessionId;
|
|
41
38
|
try {
|
|
42
|
-
const tokenString =
|
|
39
|
+
const tokenString = tryGetAuthorizationTokenStringFromRequest(request) ?? '';
|
|
43
40
|
const token = await this.authenticationService.validateToken(tokenString);
|
|
44
41
|
sessionId = token.payload.sessionId;
|
|
45
42
|
}
|
|
46
43
|
catch (error) {
|
|
47
44
|
try {
|
|
48
|
-
const refreshTokenString =
|
|
45
|
+
const refreshTokenString = tryGetAuthorizationTokenStringFromRequest(request, 'refreshToken', true) ?? '';
|
|
49
46
|
const refreshToken = await this.authenticationService.validateRefreshToken(refreshTokenString);
|
|
50
47
|
sessionId = refreshToken.payload.sessionId;
|
|
51
48
|
}
|
|
@@ -55,7 +52,7 @@ let AuthenticationApiController = class AuthenticationApiController {
|
|
|
55
52
|
}
|
|
56
53
|
await this.authenticationService.endSession(sessionId);
|
|
57
54
|
const result = 'ok';
|
|
58
|
-
return new
|
|
55
|
+
return new HttpServerResponse({
|
|
59
56
|
cookies: {
|
|
60
57
|
authorization: { value: '', ...cookieBaseOptions, expires: -1 },
|
|
61
58
|
refreshToken: { value: '', ...cookieBaseOptions, expires: -1 }
|
|
@@ -77,11 +74,11 @@ let AuthenticationApiController = class AuthenticationApiController {
|
|
|
77
74
|
return this.authenticationService.checkSecret(parameters.secret);
|
|
78
75
|
}
|
|
79
76
|
timestamp() {
|
|
80
|
-
return
|
|
77
|
+
return currentTimestamp();
|
|
81
78
|
}
|
|
82
79
|
getTokenResponse({ token, jsonToken, refreshToken }) {
|
|
83
80
|
const result = jsonToken.payload;
|
|
84
|
-
return new
|
|
81
|
+
return new HttpServerResponse({
|
|
85
82
|
cookies: {
|
|
86
83
|
authorization: { value: `Bearer ${token}`, ...cookieBaseOptions, expires: jsonToken.payload.exp * 1000 },
|
|
87
84
|
refreshToken: { value: `Bearer ${refreshToken}`, ...cookieBaseOptions, expires: jsonToken.payload.refreshTokenExp * 1000 }
|
|
@@ -93,8 +90,8 @@ let AuthenticationApiController = class AuthenticationApiController {
|
|
|
93
90
|
}
|
|
94
91
|
};
|
|
95
92
|
AuthenticationApiController = __decorate([
|
|
96
|
-
|
|
97
|
-
__metadata("design:paramtypes", [
|
|
93
|
+
apiController(authenticationApiDefinition),
|
|
94
|
+
__metadata("design:paramtypes", [AuthenticationService])
|
|
98
95
|
], AuthenticationApiController);
|
|
99
|
-
|
|
96
|
+
export { AuthenticationApiController };
|
|
100
97
|
//# sourceMappingURL=authentication.api-controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.api-controller.js","sourceRoot":"","sources":["../../../source/authentication/server/authentication.api-controller.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authentication.api-controller.js","sourceRoot":"","sources":["../../../source/authentication/server/authentication.api-controller.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAE5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAExD,OAAO,EAAE,2BAA2B,EAAE,MAAM,0BAA0B,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,yCAAyC,EAAE,MAAM,aAAa,CAAC;AAExE,MAAM,iBAAiB,GAAwC,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC;AAE/H,IACa,2BAA2B,GADxC,MACa,2BAA2B;IAC7B,qBAAqB,CAAoE;IAElG,YAAY,qBAAwF;QAClG,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC;IACrD,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,EAAE,UAAU,EAAuG;QAC7H,MAAM,oBAAoB,GAAG,MAAM,IAA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AAI,kBAAkB,CAAC;YAC5B,OAAO,EAAE;gBACP,aAAa,EAAE,EAAE,KAAK,EAAE,UAAU,KAAK,EAAE,EAAE,GAAG,iBAAiB,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,GAAG,GAAG,IAAI,EAAE;gBACxG,YAAY,EAAE,EAAE,KAAK,EAAE,UAAU,YAAY,EAAE,EAAE,GAAG,iBAAiB,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,CAAC,eAAe,GAAG,IAAI,EAAE;aAC3H;YACD,IAAI,EAAE;gBACJ,IAAI,EAAE,MAAM;aACb;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA3FY,2BAA2B;IADvC,aAAa,CAAC,2BAA2B,CAAC;qCAIN,qBAAqB;GAH7C,2BAA2B,CA2FvC;SA3FY,2BAA2B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { AfterResolve } from
|
|
2
|
-
import { afterResolve } from
|
|
3
|
-
import type { Record } from
|
|
1
|
+
import type { AfterResolve } from '../../container/index.js';
|
|
2
|
+
import { afterResolve } from '../../container/index.js';
|
|
3
|
+
import type { Record } from '../../types.js';
|
|
4
4
|
import type { RefreshToken, SecretCheckResult, SecretResetToken, Token } from '../models/index.js';
|
|
5
5
|
import { AuthenticationCredentialsRepository } from './authentication-credentials.repository.js';
|
|
6
6
|
import { AuthenticationSecretRequirementsValidator } from './authentication-secret-requirements.validator.js';
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -11,27 +10,25 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
10
|
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
11
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
12
|
};
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
const helper_js_1 = require("./helper.js");
|
|
34
|
-
class AuthenticationServiceOptions {
|
|
13
|
+
import { afterResolve, inject, optional, singleton } from '../../container/index.js';
|
|
14
|
+
import { InvalidTokenError } from '../../error/invalid-token.error.js';
|
|
15
|
+
import { NotImplementedError } from '../../error/not-implemented.error.js';
|
|
16
|
+
import { Alphabet } from '../../utils/alphabet.js';
|
|
17
|
+
import { importPbkdf2Key } from '../../utils/cryptography.js';
|
|
18
|
+
import { currentTimestamp, timestampToTimestampSeconds } from '../../utils/date-time.js';
|
|
19
|
+
import { binaryEquals } from '../../utils/equals.js';
|
|
20
|
+
import { createJwtTokenString } from '../../utils/jwt.js';
|
|
21
|
+
import { getRandomBytes, getRandomString } from '../../utils/random.js';
|
|
22
|
+
import { isUndefined } from '../../utils/type-guards.js';
|
|
23
|
+
import { millisecondsPerDay, millisecondsPerMinute } from '../../utils/units.js';
|
|
24
|
+
import { AuthenticationCredentialsRepository } from './authentication-credentials.repository.js';
|
|
25
|
+
import { AuthenticationSecretRequirementsValidator } from './authentication-secret-requirements.validator.js';
|
|
26
|
+
import { AuthenticationSecretResetHandler } from './authentication-secret-reset.handler.js';
|
|
27
|
+
import { AuthenticationSessionRepository } from './authentication-session.repository.js';
|
|
28
|
+
import { AuthenticationSubjectResolver } from './authentication-subject.resolver.js';
|
|
29
|
+
import { AuthenticationTokenPayloadProvider, GetTokenPayloadContextAction } from './authentication-token-payload.provider.js';
|
|
30
|
+
import { getRefreshTokenFromString, getSecretResetTokenFromString, getTokenFromString } from './helper.js';
|
|
31
|
+
export class AuthenticationServiceOptions {
|
|
35
32
|
/** Secret used for signing tokens and refreshTokens */
|
|
36
33
|
secret;
|
|
37
34
|
/** Token version, forces refresh on mismatch (useful if payload changes) */
|
|
@@ -43,7 +40,6 @@ class AuthenticationServiceOptions {
|
|
|
43
40
|
/** How long a secret reset token is valid. */
|
|
44
41
|
secretResetTokenTimeToLive;
|
|
45
42
|
}
|
|
46
|
-
exports.AuthenticationServiceOptions = AuthenticationServiceOptions;
|
|
47
43
|
const SIGNING_SECRETS_LENGTH = 512;
|
|
48
44
|
let AuthenticationService = class AuthenticationService {
|
|
49
45
|
credentialsRepository;
|
|
@@ -69,11 +65,11 @@ let AuthenticationService = class AuthenticationService {
|
|
|
69
65
|
this.authenticationResetSecretHandler = authenticationResetSecretHandler;
|
|
70
66
|
this.secret = options.secret;
|
|
71
67
|
this.tokenVersion = options.version ?? 1;
|
|
72
|
-
this.tokenTimeToLive = options.tokenTimeToLive ?? (5 *
|
|
73
|
-
this.refreshTokenTimeToLive = options.refreshTokenTimeToLive ?? (5 *
|
|
74
|
-
this.secretResetTokenTimeToLive = options.secretResetTokenTimeToLive ?? (10 *
|
|
68
|
+
this.tokenTimeToLive = options.tokenTimeToLive ?? (5 * millisecondsPerMinute);
|
|
69
|
+
this.refreshTokenTimeToLive = options.refreshTokenTimeToLive ?? (5 * millisecondsPerDay);
|
|
70
|
+
this.secretResetTokenTimeToLive = options.secretResetTokenTimeToLive ?? (10 * millisecondsPerMinute);
|
|
75
71
|
}
|
|
76
|
-
async [
|
|
72
|
+
async [afterResolve]() {
|
|
77
73
|
await this.initialize();
|
|
78
74
|
}
|
|
79
75
|
async initialize() {
|
|
@@ -82,7 +78,7 @@ let AuthenticationService = class AuthenticationService {
|
|
|
82
78
|
async setCredentials(subject, secret) {
|
|
83
79
|
const actualSubject = await this.resolveSubject(subject);
|
|
84
80
|
await this.authenticationSecretRequirementsValidator.validateSecretRequirements(secret);
|
|
85
|
-
const salt =
|
|
81
|
+
const salt = getRandomBytes(32);
|
|
86
82
|
const hash = await this.getHash(secret, salt);
|
|
87
83
|
const credentials = {
|
|
88
84
|
subject: actualSubject,
|
|
@@ -95,11 +91,11 @@ let AuthenticationService = class AuthenticationService {
|
|
|
95
91
|
async authenticate(subject, secret) {
|
|
96
92
|
const actualSubject = await this.resolveSubject(subject);
|
|
97
93
|
const credentials = await this.credentialsRepository.tryLoadBySubject(actualSubject);
|
|
98
|
-
if (
|
|
94
|
+
if (isUndefined(credentials)) {
|
|
99
95
|
return { success: false };
|
|
100
96
|
}
|
|
101
97
|
const hash = await this.getHash(secret, credentials.salt);
|
|
102
|
-
const valid =
|
|
98
|
+
const valid = binaryEquals(hash, credentials.hash);
|
|
103
99
|
if (valid) {
|
|
104
100
|
return { success: true, subject: credentials.subject };
|
|
105
101
|
}
|
|
@@ -107,7 +103,7 @@ let AuthenticationService = class AuthenticationService {
|
|
|
107
103
|
}
|
|
108
104
|
async getToken(subject, authenticationData) {
|
|
109
105
|
const actualSubject = await this.resolveSubject(subject);
|
|
110
|
-
const now =
|
|
106
|
+
const now = currentTimestamp();
|
|
111
107
|
const end = now + this.refreshTokenTimeToLive;
|
|
112
108
|
const session = await this.sessionRepository.insert({
|
|
113
109
|
subject: actualSubject,
|
|
@@ -117,7 +113,7 @@ let AuthenticationService = class AuthenticationService {
|
|
|
117
113
|
refreshTokenSalt: new Uint8Array(),
|
|
118
114
|
refreshTokenHash: new Uint8Array()
|
|
119
115
|
});
|
|
120
|
-
const tokenPayload = await this.tokenPayloadProvider?.getTokenPayload(actualSubject, authenticationData, { action:
|
|
116
|
+
const tokenPayload = await this.tokenPayloadProvider?.getTokenPayload(actualSubject, authenticationData, { action: GetTokenPayloadContextAction.GetToken });
|
|
121
117
|
const { token, jsonToken } = await this.createToken(tokenPayload, actualSubject, session.id, end, now);
|
|
122
118
|
const refreshToken = await this.createRefreshToken(actualSubject, session.id, end);
|
|
123
119
|
await this.sessionRepository.extend(session.id, {
|
|
@@ -129,7 +125,7 @@ let AuthenticationService = class AuthenticationService {
|
|
|
129
125
|
return { token, jsonToken, refreshToken: refreshToken.token };
|
|
130
126
|
}
|
|
131
127
|
async endSession(sessionId) {
|
|
132
|
-
const now =
|
|
128
|
+
const now = currentTimestamp();
|
|
133
129
|
await this.sessionRepository.end(sessionId, now);
|
|
134
130
|
}
|
|
135
131
|
async refresh(refreshToken, authenticationData) {
|
|
@@ -137,15 +133,15 @@ let AuthenticationService = class AuthenticationService {
|
|
|
137
133
|
const sessionId = validatedToken.payload.sessionId;
|
|
138
134
|
const session = await this.sessionRepository.load(sessionId);
|
|
139
135
|
const hash = await this.getHash(validatedToken.payload.secret, session.refreshTokenSalt);
|
|
140
|
-
if (session.end <=
|
|
141
|
-
throw new
|
|
136
|
+
if (session.end <= currentTimestamp()) {
|
|
137
|
+
throw new InvalidTokenError('Session is expired.');
|
|
142
138
|
}
|
|
143
|
-
if (!
|
|
144
|
-
throw new
|
|
139
|
+
if (!binaryEquals(hash, session.refreshTokenHash)) {
|
|
140
|
+
throw new InvalidTokenError('Invalid refresh token.');
|
|
145
141
|
}
|
|
146
|
-
const now =
|
|
142
|
+
const now = currentTimestamp();
|
|
147
143
|
const newEnd = now + this.refreshTokenTimeToLive;
|
|
148
|
-
const tokenPayload = await this.tokenPayloadProvider?.getTokenPayload(session.subject, authenticationData, { action:
|
|
144
|
+
const tokenPayload = await this.tokenPayloadProvider?.getTokenPayload(session.subject, authenticationData, { action: GetTokenPayloadContextAction.Refresh });
|
|
149
145
|
const { token, jsonToken } = await this.createToken(tokenPayload, session.subject, sessionId, newEnd, now);
|
|
150
146
|
const newRefreshToken = await this.createRefreshToken(validatedToken.payload.subject, sessionId, newEnd);
|
|
151
147
|
await this.sessionRepository.extend(sessionId, {
|
|
@@ -157,11 +153,11 @@ let AuthenticationService = class AuthenticationService {
|
|
|
157
153
|
return { token, jsonToken, refreshToken: newRefreshToken.token };
|
|
158
154
|
}
|
|
159
155
|
async initResetSecret(subject) {
|
|
160
|
-
if (
|
|
161
|
-
throw new
|
|
156
|
+
if (isUndefined(this.authenticationResetSecretHandler)) {
|
|
157
|
+
throw new NotImplementedError();
|
|
162
158
|
}
|
|
163
159
|
const actualSubject = await this.resolveSubject(subject);
|
|
164
|
-
const secretResetToken = await this.createSecretResetToken(actualSubject,
|
|
160
|
+
const secretResetToken = await this.createSecretResetToken(actualSubject, currentTimestamp() + this.secretResetTokenTimeToLive);
|
|
165
161
|
const initSecretResetData = {
|
|
166
162
|
subject: actualSubject,
|
|
167
163
|
token: secretResetToken.token
|
|
@@ -176,13 +172,13 @@ let AuthenticationService = class AuthenticationService {
|
|
|
176
172
|
return this.authenticationSecretRequirementsValidator.checkSecretRequirements(secret);
|
|
177
173
|
}
|
|
178
174
|
async validateToken(token) {
|
|
179
|
-
return
|
|
175
|
+
return getTokenFromString(token, this.tokenVersion, this.derivedTokenSigningSecret);
|
|
180
176
|
}
|
|
181
177
|
async validateRefreshToken(token) {
|
|
182
|
-
return
|
|
178
|
+
return getRefreshTokenFromString(token, this.derivedRefreshTokenSigningSecret);
|
|
183
179
|
}
|
|
184
180
|
async validateSecretResetToken(token) {
|
|
185
|
-
return
|
|
181
|
+
return getSecretResetTokenFromString(token, this.derivedSecretResetTokenSigningSecret);
|
|
186
182
|
}
|
|
187
183
|
async resolveSubject(subject) {
|
|
188
184
|
return this.subjectResolver?.resolveSubject(subject) ?? subject;
|
|
@@ -194,10 +190,10 @@ let AuthenticationService = class AuthenticationService {
|
|
|
194
190
|
typ: 'JWT'
|
|
195
191
|
};
|
|
196
192
|
const payload = {
|
|
197
|
-
jti:
|
|
198
|
-
iat:
|
|
199
|
-
exp:
|
|
200
|
-
refreshTokenExp:
|
|
193
|
+
jti: getRandomString(24, Alphabet.LowerUpperCaseNumbers),
|
|
194
|
+
iat: timestampToTimestampSeconds(timestamp),
|
|
195
|
+
exp: timestampToTimestampSeconds(timestamp + this.tokenTimeToLive),
|
|
196
|
+
refreshTokenExp: timestampToTimestampSeconds(refreshTokenExpiration),
|
|
201
197
|
sessionId,
|
|
202
198
|
subject,
|
|
203
199
|
...additionalTokenPayload
|
|
@@ -206,12 +202,12 @@ let AuthenticationService = class AuthenticationService {
|
|
|
206
202
|
header,
|
|
207
203
|
payload
|
|
208
204
|
};
|
|
209
|
-
const token = await
|
|
205
|
+
const token = await createJwtTokenString(jsonToken, this.derivedTokenSigningSecret);
|
|
210
206
|
return { token, jsonToken };
|
|
211
207
|
}
|
|
212
208
|
async createRefreshToken(subject, sessionId, expirationTimestamp) {
|
|
213
|
-
const secret =
|
|
214
|
-
const salt =
|
|
209
|
+
const secret = getRandomString(64, Alphabet.LowerUpperCaseNumbers);
|
|
210
|
+
const salt = getRandomBytes(32);
|
|
215
211
|
const hash = await this.getHash(secret, salt);
|
|
216
212
|
const jsonToken = {
|
|
217
213
|
header: {
|
|
@@ -219,13 +215,13 @@ let AuthenticationService = class AuthenticationService {
|
|
|
219
215
|
typ: 'JWT'
|
|
220
216
|
},
|
|
221
217
|
payload: {
|
|
222
|
-
exp:
|
|
218
|
+
exp: timestampToTimestampSeconds(expirationTimestamp),
|
|
223
219
|
subject,
|
|
224
220
|
sessionId,
|
|
225
221
|
secret
|
|
226
222
|
}
|
|
227
223
|
};
|
|
228
|
-
const token = await
|
|
224
|
+
const token = await createJwtTokenString(jsonToken, this.derivedRefreshTokenSigningSecret);
|
|
229
225
|
return { token, jsonToken, salt, hash: new Uint8Array(hash) };
|
|
230
226
|
}
|
|
231
227
|
async createSecretResetToken(subject, expirationTimestamp) {
|
|
@@ -235,15 +231,15 @@ let AuthenticationService = class AuthenticationService {
|
|
|
235
231
|
typ: 'JWT'
|
|
236
232
|
},
|
|
237
233
|
payload: {
|
|
238
|
-
exp:
|
|
234
|
+
exp: timestampToTimestampSeconds(expirationTimestamp),
|
|
239
235
|
subject
|
|
240
236
|
}
|
|
241
237
|
};
|
|
242
|
-
const token = await
|
|
238
|
+
const token = await createJwtTokenString(jsonToken, this.derivedSecretResetTokenSigningSecret);
|
|
243
239
|
return { token, jsonToken };
|
|
244
240
|
}
|
|
245
241
|
async deriveSigningSecrets() {
|
|
246
|
-
const key = await
|
|
242
|
+
const key = await importPbkdf2Key(this.secret);
|
|
247
243
|
const hash = await globalThis.crypto.subtle.deriveBits({ name: 'PBKDF2', hash: 'SHA-512', iterations: 500000, salt: new Uint8Array() }, key, SIGNING_SECRETS_LENGTH * 3);
|
|
248
244
|
const bufferSize = SIGNING_SECRETS_LENGTH / 8;
|
|
249
245
|
this.derivedTokenSigningSecret = new Uint8Array(hash.slice(0, bufferSize));
|
|
@@ -251,22 +247,22 @@ let AuthenticationService = class AuthenticationService {
|
|
|
251
247
|
this.derivedSecretResetTokenSigningSecret = new Uint8Array(hash.slice(bufferSize * 2));
|
|
252
248
|
}
|
|
253
249
|
async getHash(secret, salt) {
|
|
254
|
-
const key = await
|
|
250
|
+
const key = await importPbkdf2Key(secret);
|
|
255
251
|
const hash = await globalThis.crypto.subtle.deriveBits({ name: 'PBKDF2', hash: 'SHA-512', iterations: 250000, salt }, key, 512);
|
|
256
252
|
return new Uint8Array(hash);
|
|
257
253
|
}
|
|
258
254
|
};
|
|
259
255
|
AuthenticationService = __decorate([
|
|
260
|
-
|
|
261
|
-
__param(3,
|
|
262
|
-
__param(3,
|
|
263
|
-
__param(4,
|
|
264
|
-
__param(4,
|
|
265
|
-
__param(5,
|
|
266
|
-
__param(5,
|
|
267
|
-
__metadata("design:paramtypes", [
|
|
268
|
-
|
|
269
|
-
|
|
256
|
+
singleton(),
|
|
257
|
+
__param(3, inject(AuthenticationSubjectResolver)),
|
|
258
|
+
__param(3, optional()),
|
|
259
|
+
__param(4, inject(AuthenticationTokenPayloadProvider)),
|
|
260
|
+
__param(4, optional()),
|
|
261
|
+
__param(5, inject(AuthenticationSecretResetHandler)),
|
|
262
|
+
__param(5, optional()),
|
|
263
|
+
__metadata("design:paramtypes", [AuthenticationCredentialsRepository,
|
|
264
|
+
AuthenticationSessionRepository,
|
|
265
|
+
AuthenticationSecretRequirementsValidator, Object, Object, Object, AuthenticationServiceOptions])
|
|
270
266
|
], AuthenticationService);
|
|
271
|
-
|
|
267
|
+
export { AuthenticationService };
|
|
272
268
|
//# sourceMappingURL=authentication.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.service.js","sourceRoot":"","sources":["../../../source/authentication/server/authentication.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"authentication.service.js","sourceRoot":"","sources":["../../../source/authentication/server/authentication.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjF,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AAEvE,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,MAAM,sBAAsB,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAE7E,OAAO,EAAE,mCAAmC,EAAE,MAAM,4CAA4C,CAAC;AACjG,OAAO,EAAE,yCAAyC,EAAE,MAAM,mDAAmD,CAAC;AAC9G,OAAO,EAAE,gCAAgC,EAAE,MAAM,0CAA0C,CAAC;AAC5F,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;A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AAM,GAAG,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC,CAAC;QAC1C,MAAM,IAAI,GAAG,MAAM,UAAU,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;QAEhI,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;IAC9B,CAAC;CACF,CAAA;AAjRY,qBAAqB;IADjC,SAAS,EAAE;IAuBP,WAAA,MAAM,CAAC,6BAA6B,CAAC,CAAA;IAAE,WAAA,QAAQ,EAAE,CAAA;IACjD,WAAA,MAAM,CAAC,kCAAkC,CAAC,CAAA;IAAE,WAAA,QAAQ,EAAE,CAAA;IACtD,WAAA,MAAM,CAAC,gCAAgC,CAAC,CAAA;IAAE,WAAA,QAAQ,EAAE,CAAA;qCAL9B,mCAAmC;QACvC,+BAA+B;QACP,yCAAyC,0BAI3E,4BAA4B;GAzB5B,qBAAqB,CAiRjC;SAjRY,qBAAqB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { HttpServerRequest } from
|
|
2
|
-
import type { Record } from
|
|
1
|
+
import type { HttpServerRequest } from '../../http/server/index.js';
|
|
2
|
+
import type { Record } from '../../types.js';
|
|
3
3
|
import type { SecretResetToken, RefreshToken, Token } from '../models/index.js';
|
|
4
4
|
/**
|
|
5
5
|
*
|