@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
package/utils/object/object.js
CHANGED
|
@@ -1,74 +1,59 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const to_array_js_1 = require("../async-iterable-helpers/to-array.js");
|
|
7
|
-
const type_guards_js_1 = require("../type-guards.js");
|
|
8
|
-
function hasOwnProperty(obj, key) {
|
|
1
|
+
import { filterAsync } from '../async-iterable-helpers/filter.js';
|
|
2
|
+
import { mapAsync } from '../async-iterable-helpers/map.js';
|
|
3
|
+
import { toArrayAsync } from '../async-iterable-helpers/to-array.js';
|
|
4
|
+
import { isArray, isObject, isSymbol, isUndefined } from '../type-guards.js';
|
|
5
|
+
export function hasOwnProperty(obj, key) {
|
|
9
6
|
return Object.hasOwn(obj, key);
|
|
10
7
|
}
|
|
11
|
-
exports.hasOwnProperty = hasOwnProperty;
|
|
12
8
|
/**
|
|
13
9
|
* returns object entries including those with symbols keys (which Object.entries does not)
|
|
14
10
|
*/
|
|
15
|
-
function objectEntries(object) {
|
|
11
|
+
export function objectEntries(object) {
|
|
16
12
|
const keys = objectKeys(object);
|
|
17
13
|
return keys.map((key) => [key, object[key]]);
|
|
18
14
|
}
|
|
19
|
-
exports.objectEntries = objectEntries;
|
|
20
15
|
/**
|
|
21
16
|
* returns object keys including symbols (which Object.keys does not)
|
|
22
17
|
*/
|
|
23
|
-
function objectKeys(object) {
|
|
18
|
+
export function objectKeys(object) {
|
|
24
19
|
return Reflect.ownKeys(object).filter((key) => key != '__proto__');
|
|
25
20
|
}
|
|
26
|
-
|
|
27
|
-
function objectValues(object) {
|
|
21
|
+
export function objectValues(object) {
|
|
28
22
|
return objectKeys(object).map((key) => object[key]);
|
|
29
23
|
}
|
|
30
|
-
|
|
31
|
-
function fromEntries(entries) {
|
|
24
|
+
export function fromEntries(entries) {
|
|
32
25
|
return Object.fromEntries(entries);
|
|
33
26
|
}
|
|
34
|
-
|
|
35
|
-
function mapObject(object, mapper) {
|
|
27
|
+
export function mapObject(object, mapper) {
|
|
36
28
|
const mappedEntries = objectKeys(object).map((key) => mapper(object[key], key));
|
|
37
29
|
return Object.fromEntries(mappedEntries);
|
|
38
30
|
}
|
|
39
|
-
|
|
40
|
-
async function mapObjectAsync(object, mapper) {
|
|
31
|
+
export async function mapObjectAsync(object, mapper) {
|
|
41
32
|
const entries = objectKeys(object);
|
|
42
|
-
const mappedEntries = await
|
|
33
|
+
const mappedEntries = await toArrayAsync(mapAsync(entries, async (key) => mapper(object[key], key)));
|
|
43
34
|
return Object.fromEntries(mappedEntries);
|
|
44
35
|
}
|
|
45
|
-
|
|
46
|
-
function mapObjectValues(object, mapper) {
|
|
36
|
+
export function mapObjectValues(object, mapper) {
|
|
47
37
|
return mapObject(object, (value, key) => [key, mapper(value, key)]);
|
|
48
38
|
}
|
|
49
|
-
|
|
50
|
-
async function mapObjectValuesAsync(object, mapper) {
|
|
39
|
+
export async function mapObjectValuesAsync(object, mapper) {
|
|
51
40
|
return mapObjectAsync(object, async (value, key) => [key, await mapper(value, key)]);
|
|
52
41
|
}
|
|
53
|
-
|
|
54
|
-
function filterObject(object, predicate) {
|
|
42
|
+
export function filterObject(object, predicate) {
|
|
55
43
|
const mappedEntries = objectEntries(object).filter(([key, value]) => predicate(value, key));
|
|
56
44
|
return Object.fromEntries(mappedEntries);
|
|
57
45
|
}
|
|
58
|
-
|
|
59
|
-
async function filterObjectAsync(object, predicate) {
|
|
46
|
+
export async function filterObjectAsync(object, predicate) {
|
|
60
47
|
const entries = objectEntries(object);
|
|
61
|
-
const mappedEntries = await
|
|
48
|
+
const mappedEntries = await toArrayAsync(filterAsync(entries, async ([key, value]) => predicate(value, key)));
|
|
62
49
|
return Object.fromEntries(mappedEntries);
|
|
63
50
|
}
|
|
64
|
-
|
|
65
|
-
function copyObjectProperties(source, target) {
|
|
51
|
+
export function copyObjectProperties(source, target) {
|
|
66
52
|
for (const key of objectKeys(source)) {
|
|
67
53
|
target[key] = source[key];
|
|
68
54
|
}
|
|
69
55
|
}
|
|
70
|
-
|
|
71
|
-
function getGetter(obj, property, bind) {
|
|
56
|
+
export function getGetter(obj, property, bind) {
|
|
72
57
|
if (!(property in obj)) {
|
|
73
58
|
throw new Error(`Property ${property} does not exist.`);
|
|
74
59
|
}
|
|
@@ -87,20 +72,19 @@ function getGetter(obj, property, bind) {
|
|
|
87
72
|
const getter = bind ? descriptor.get.bind(obj) : descriptor.get;
|
|
88
73
|
return getter;
|
|
89
74
|
}
|
|
90
|
-
|
|
91
|
-
function deepObjectEntries(object, keepInnerObjects = false, prefix) {
|
|
75
|
+
export function deepObjectEntries(object, keepInnerObjects = false, prefix) {
|
|
92
76
|
const allEntries = objectEntries(object);
|
|
93
77
|
for (const entry of allEntries) {
|
|
94
|
-
if (
|
|
78
|
+
if (isSymbol(entry[0])) {
|
|
95
79
|
throw new Error('Deep entries does not support symbols.');
|
|
96
80
|
}
|
|
97
81
|
}
|
|
98
|
-
const rawEntries =
|
|
82
|
+
const rawEntries = isUndefined(prefix)
|
|
99
83
|
? allEntries
|
|
100
84
|
: allEntries.map(([key, value]) => [`${prefix}${key}`, value]);
|
|
101
85
|
const entries = [];
|
|
102
86
|
for (const [key, value] of rawEntries) {
|
|
103
|
-
if (
|
|
87
|
+
if (isObject(value) || isArray(value)) {
|
|
104
88
|
if (keepInnerObjects) {
|
|
105
89
|
entries.push([key, value]);
|
|
106
90
|
}
|
|
@@ -113,5 +97,4 @@ function deepObjectEntries(object, keepInnerObjects = false, prefix) {
|
|
|
113
97
|
}
|
|
114
98
|
return entries;
|
|
115
99
|
}
|
|
116
|
-
exports.deepObjectEntries = deepObjectEntries;
|
|
117
100
|
//# sourceMappingURL=object.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../source/utils/object/object.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../source/utils/object/object.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AAClE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE7E,MAAM,UAAU,cAAc,CAAmB,GAAM,EAAE,GAAY;IACnE,OAAO,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;AACjC,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAA0B,MAAS;IAC9D,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;IAChC,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,EAAE,MAAM,CAAC,G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C,GAAG,EAAE,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,MAAM,GAAG,GAAG,EAAE,EAAE,KAAK,CAAU,CAAC,CAAC;IAE1E,MAAM,OAAO,GAAoB,EAAE,CAAC;IAEpC,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,UAAU,EAAE;QACrC,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;YACrC,IAAI,gBAAgB,EAAE;gBACpB,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;aAC5B;YAED,MAAM,YAAY,GAAG,iBAAiB,CAAC,KAAK,EAAE,gBAAgB,EAAE,GAAG,GAAG,GAAG,CAAC,CAAC;YAC3E,OAAO,CAAC,IAAI,CAAC,GAAG,YAAY,CAAC,CAAC;SAC/B;aACI;YACH,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;SAC5B;KACF;IAED,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DeepFlatten, DeepNonNullable, Record } from
|
|
1
|
+
import type { DeepFlatten, DeepNonNullable, Record } from '../../types.js';
|
|
2
2
|
export declare const propertyName: unique symbol;
|
|
3
3
|
export declare const cast: unique symbol;
|
|
4
4
|
export type PropertyName = {
|
|
@@ -1,17 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.cast = Symbol('cast');
|
|
7
|
-
function getPropertyName(name) {
|
|
8
|
-
return { [exports.propertyName]: name };
|
|
1
|
+
import { assertString, assertStringPass, isDefined, isUndefined } from '../type-guards.js';
|
|
2
|
+
export const propertyName = Symbol('PropertyName');
|
|
3
|
+
export const cast = Symbol('cast');
|
|
4
|
+
export function getPropertyName(name) {
|
|
5
|
+
return { [propertyName]: name };
|
|
9
6
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return (0, type_guards_js_1.isDefined)(value?.[exports.propertyName]);
|
|
7
|
+
export function isPropertyName(value) {
|
|
8
|
+
return isDefined(value?.[propertyName]);
|
|
13
9
|
}
|
|
14
|
-
exports.isPropertyName = isPropertyName;
|
|
15
10
|
const propertyNameProxy = Symbol('PropertyNameProxy');
|
|
16
11
|
/**
|
|
17
12
|
* get the path to a property
|
|
@@ -27,50 +22,47 @@ const propertyNameProxy = Symbol('PropertyNameProxy');
|
|
|
27
22
|
*
|
|
28
23
|
* name == 'foo.bar' // true
|
|
29
24
|
*/
|
|
30
|
-
function getPropertyNameProxy(options = {}) {
|
|
25
|
+
export function getPropertyNameProxy(options = {}) {
|
|
31
26
|
const { deep = true, flat = false, prefix } = options;
|
|
32
27
|
const proxy = new Proxy({ [propertyNameProxy]: prefix }, {
|
|
33
28
|
get: (_target, property) => {
|
|
34
|
-
if (property ==
|
|
29
|
+
if (property == propertyName) {
|
|
35
30
|
return prefix;
|
|
36
31
|
}
|
|
37
|
-
if (property ==
|
|
32
|
+
if (property == cast) {
|
|
38
33
|
return () => proxy;
|
|
39
34
|
}
|
|
40
|
-
|
|
35
|
+
assertString(property, `property must be a string, but was ${property.toString()}`);
|
|
41
36
|
const ignore = (flat && (/\d+/u).test(property));
|
|
42
37
|
if (ignore) {
|
|
43
38
|
return proxy;
|
|
44
39
|
}
|
|
45
40
|
if (deep) {
|
|
46
|
-
return getPropertyNameProxy({ deep, flat, prefix:
|
|
41
|
+
return getPropertyNameProxy({ deep, flat, prefix: isUndefined(prefix) ? property : `${prefix}.${property}` });
|
|
47
42
|
}
|
|
48
43
|
return getPropertyNameProxy({ deep, flat, prefix: property });
|
|
49
44
|
}
|
|
50
45
|
});
|
|
51
46
|
return proxy;
|
|
52
47
|
}
|
|
53
|
-
exports.getPropertyNameProxy = getPropertyNameProxy;
|
|
54
48
|
/**
|
|
55
49
|
* get the path to a property
|
|
56
50
|
* @param expression property selection expression
|
|
57
51
|
* @param options.deep whether to return the whole path to the property or just the last property
|
|
58
52
|
* @returns property name
|
|
59
53
|
*/
|
|
60
|
-
function propertyNameOf(expression, options = {}) {
|
|
61
|
-
const name = expression(getPropertyNameProxy({ deep: options.deep, flat: false }))?.[
|
|
62
|
-
return
|
|
54
|
+
export function propertyNameOf(expression, options = {}) {
|
|
55
|
+
const name = expression(getPropertyNameProxy({ deep: options.deep, flat: false }))?.[propertyName];
|
|
56
|
+
return assertStringPass(name, 'invalid expression');
|
|
63
57
|
}
|
|
64
|
-
exports.propertyNameOf = propertyNameOf;
|
|
65
58
|
/**
|
|
66
59
|
* get the flat path to a property (flat = ignore array accesses (properties only consisting of numbers))
|
|
67
60
|
* @param expression property selection expression
|
|
68
61
|
* @param options.deep whether to return the whole path to the property or just the last property
|
|
69
62
|
* @returns property name
|
|
70
63
|
*/
|
|
71
|
-
function flatPropertyNameOf(expression, options = {}) {
|
|
72
|
-
const name = expression(getPropertyNameProxy({ deep: options.deep, flat: true }))?.[
|
|
73
|
-
return
|
|
64
|
+
export function flatPropertyNameOf(expression, options = {}) {
|
|
65
|
+
const name = expression(getPropertyNameProxy({ deep: options.deep, flat: true }))?.[propertyName];
|
|
66
|
+
return assertStringPass(name, 'invalid expression');
|
|
74
67
|
}
|
|
75
|
-
exports.flatPropertyNameOf = flatPropertyNameOf;
|
|
76
68
|
//# sourceMappingURL=property-name.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"property-name.js","sourceRoot":"","sources":["../../../source/utils/object/property-name.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"property-name.js","sourceRoot":"","sources":["../../../source/utils/object/property-name.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAE3F,MAAM,CAAC,MAAM,YAAY,GAAkB,MAAM,CAAC,cAAc,CAAC,CAAC;AAClE,MAAM,C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,QAAQ,EAAE,EAAE,CAAC,CAAC;aAC/G;YAED,OAAO,oBAAoB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC;QAChE,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,cAAc,CAA4B,UAAgE,EAAE,UAA8B,EAAE;IAC1J,MAAM,IAAI,GAAI,UAAU,CAAC,oBAAoB,CAAI,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,CAAsC,CAA+C,EAAE,CAAC,YAAY,CAAC,CAAC;IAC1L,OAAO,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;AACtD,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,kBAAkB,CAA4B,UAAoE,EAAE,UAA8B,EAAE;IAClK,MAAM,IAAI,GAAI,UAAU,CAAC,oBAAoB,CAAC,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAA0C,CAA0D,EAAE,CAAC,YAAY,CAAC,CAAC;IACrM,OAAO,gBAAgB,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;AACtD,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.OrderedFeedableAsyncIterable = void 0;
|
|
4
|
-
const feedable_async_iterable_js_1 = require("./feedable-async-iterable.js");
|
|
5
|
-
class OrderedFeedableAsyncIterable {
|
|
1
|
+
import { FeedableAsyncIterable } from './feedable-async-iterable.js';
|
|
2
|
+
export class OrderedFeedableAsyncIterable {
|
|
6
3
|
inBuffer;
|
|
7
4
|
out;
|
|
8
5
|
currentIndex = 0;
|
|
@@ -20,7 +17,7 @@ class OrderedFeedableAsyncIterable {
|
|
|
20
17
|
}
|
|
21
18
|
constructor() {
|
|
22
19
|
this.inBuffer = new Map();
|
|
23
|
-
this.out = new
|
|
20
|
+
this.out = new FeedableAsyncIterable();
|
|
24
21
|
}
|
|
25
22
|
feed(item, index) {
|
|
26
23
|
if (this.out.closed) {
|
|
@@ -46,5 +43,4 @@ class OrderedFeedableAsyncIterable {
|
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
|
-
exports.OrderedFeedableAsyncIterable = OrderedFeedableAsyncIterable;
|
|
50
46
|
//# sourceMappingURL=ordered-feedable-async-iterable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ordered-feedable-async-iterable.js","sourceRoot":"","sources":["../../source/utils/ordered-feedable-async-iterable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ordered-feedable-async-iterable.js","sourceRoot":"","sources":["../../source/utils/ordered-feedable-async-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,4BAA4B;IACtB,QAAQ,CAAiB;IACzB,GAAG,CAA2B;IAEvC,YAAY,GAAW,CAAC,CAAC;IAEjC,IAAI,KAAK;QACP,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;IACxB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;IACzB,CAAC;IAED,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC;IACzB,CAAC;IAED,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC;IAC7B,CAAC;IAED;QACE,IAAI,CAAC,QAAQ,GAAG,IAAI,GAAG,EAAa,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,IAAI,qBAAqB,EAAK,CAAC;IAC5C,CAAC;IAED,IAAI,CAAC,IAAO,EAAE,KAAa;QACzB,IAAI,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;SAC/C;QAED,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;QAE/B,IAAI,CAAC,QAAQ,EAAE,CAAC;IAClB,CAAC;IAED,GAAG;QACD,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC;IACjB,CAAC;IAED,KAAK,CAAC,KAAY;QAChB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,CAAC,MAAM,CAAC,aAAa,CAAC;QACpB,OAAO,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;IAC1C,CAAC;IAEO,QAAQ;QACd,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE;YAC3C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAE,CAAC;YAEnD,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;YAC1C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACrB;IACH,CAAC;CACF"}
|
package/utils/patch-worker.d.ts
CHANGED
package/utils/patch-worker.js
CHANGED
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const cancellation_token_js_1 = require("./cancellation-token.js");
|
|
6
|
-
const timing_js_1 = require("./timing.js");
|
|
7
|
-
const type_guards_js_1 = require("./type-guards.js");
|
|
1
|
+
import { debounceTime, defaultIfEmpty, firstValueFrom, merge, Subject, takeUntil } from 'rxjs';
|
|
2
|
+
import { CancellationToken } from './cancellation-token.js';
|
|
3
|
+
import { timeout } from './timing.js';
|
|
4
|
+
import { isDefined, isObject, isUndefined } from './type-guards.js';
|
|
8
5
|
const defaultDebounceTime = 5000;
|
|
9
6
|
const defaultRetryDelay = 10000;
|
|
10
|
-
class PatchWorker {
|
|
7
|
+
export class PatchWorker {
|
|
11
8
|
patchAddedSubject;
|
|
12
9
|
handleSubject;
|
|
13
10
|
completeToken;
|
|
@@ -15,29 +12,29 @@ class PatchWorker {
|
|
|
15
12
|
patch;
|
|
16
13
|
constructor(options) {
|
|
17
14
|
this.options = options;
|
|
18
|
-
this.patchAddedSubject = new
|
|
19
|
-
this.handleSubject = new
|
|
20
|
-
this.completeToken = new
|
|
15
|
+
this.patchAddedSubject = new Subject();
|
|
16
|
+
this.handleSubject = new Subject();
|
|
17
|
+
this.completeToken = new CancellationToken();
|
|
21
18
|
this.patch = undefined;
|
|
22
|
-
if (
|
|
19
|
+
if (isDefined(options.handleOn)) {
|
|
23
20
|
this.handleOn(options.handleOn);
|
|
24
21
|
}
|
|
25
|
-
if (
|
|
22
|
+
if (isDefined(options.completeOn)) {
|
|
26
23
|
this.completeOn(options.completeOn);
|
|
27
24
|
}
|
|
28
25
|
void this.handleLoop();
|
|
29
26
|
}
|
|
30
27
|
handleOn(observable) {
|
|
31
|
-
observable.pipe(
|
|
28
|
+
observable.pipe(takeUntil(this.completeToken)).subscribe(() => this.handle());
|
|
32
29
|
}
|
|
33
30
|
completeOn(observable) {
|
|
34
|
-
observable.pipe(
|
|
31
|
+
observable.pipe(takeUntil(this.completeToken)).subscribe(() => this.complete());
|
|
35
32
|
}
|
|
36
33
|
add(patchOrKey, value) {
|
|
37
34
|
if (this.completeToken.isSet) {
|
|
38
35
|
throw new Error('instance is completed');
|
|
39
36
|
}
|
|
40
|
-
if (
|
|
37
|
+
if (isObject(patchOrKey)) {
|
|
41
38
|
this.patch = { ...this.patch, ...patchOrKey };
|
|
42
39
|
}
|
|
43
40
|
else {
|
|
@@ -55,12 +52,12 @@ class PatchWorker {
|
|
|
55
52
|
this.completeToken.set();
|
|
56
53
|
}
|
|
57
54
|
async handleLoop() {
|
|
58
|
-
const debounce$ = this.patchAddedSubject.pipe(
|
|
59
|
-
const handle$ =
|
|
55
|
+
const debounce$ = this.patchAddedSubject.pipe(debounceTime(this.options.debounceTime ?? defaultDebounceTime));
|
|
56
|
+
const handle$ = merge(debounce$, this.handleSubject).pipe(takeUntil(this.completeToken), defaultIfEmpty(undefined));
|
|
60
57
|
let patch;
|
|
61
|
-
while (this.completeToken.isUnset ||
|
|
62
|
-
await
|
|
63
|
-
if (
|
|
58
|
+
while (this.completeToken.isUnset || isDefined(patch) || isDefined(this.patch)) {
|
|
59
|
+
await firstValueFrom(handle$);
|
|
60
|
+
if (isUndefined(patch) && isUndefined(this.patch)) {
|
|
64
61
|
continue;
|
|
65
62
|
}
|
|
66
63
|
patch = { ...patch, ...this.patch };
|
|
@@ -71,10 +68,9 @@ class PatchWorker {
|
|
|
71
68
|
}
|
|
72
69
|
catch (error) {
|
|
73
70
|
await this.options.errorHandler?.(error);
|
|
74
|
-
await
|
|
71
|
+
await timeout(this.options.retryDelay ?? defaultRetryDelay);
|
|
75
72
|
}
|
|
76
73
|
}
|
|
77
74
|
}
|
|
78
75
|
}
|
|
79
|
-
exports.PatchWorker = PatchWorker;
|
|
80
76
|
//# sourceMappingURL=patch-worker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patch-worker.js","sourceRoot":"","sources":["../../source/utils/patch-worker.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patch-worker.js","sourceRoot":"","sources":["../../source/utils/patch-worker.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,MAAM,CAAC;AAC/F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AA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AW,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;gBACjD,SAAS;aACV;YAED,KAAK,GAAG,EAAE,GAAG,KAAK,EAAE,GAAG,IAAI,CAAC,KAAK,EAAgB,CAAC;YAClD,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC;YAEvB,IAAI;gBACF,MAAM,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;gBAClC,KAAK,GAAG,SAAS,CAAC;aACnB;YACD,OAAO,KAAc,EAAE;gBACrB,MAAM,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC,KAAc,CAAC,CAAC;gBAClD,MAAM,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,IAAI,iBAAiB,CAAC,CAAC;aAC7D;SACF;IACH,CAAC;CACF"}
|
package/utils/patterns.js
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isEmail = exports.mailPattern = exports.numberPattern = void 0;
|
|
4
1
|
/** pattern matching valid JavaScript number literals including binary, octal and hexadecimal format but *not* Infinity and NaN */
|
|
5
|
-
|
|
2
|
+
export const numberPattern = /^[+-]?(?:\d*\.?\d+|\d+\.?\d*|0[bB][01]+|0[xX][\da-fA-F]+|0[oO][0-7]+)$/u;
|
|
6
3
|
/** pattern matching valid email addresses */
|
|
7
4
|
// eslint-disable-next-line no-control-regex
|
|
8
|
-
|
|
9
|
-
function isEmail(value) {
|
|
10
|
-
return
|
|
5
|
+
export const mailPattern = /^(?:[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?|\[(?:(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9]))\.){3}(?:(2(5[0-5]|[0-4][0-9])|1[0-9][0-9]|[1-9]?[0-9])|[a-zA-Z0-9-]*[a-zA-Z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/u;
|
|
6
|
+
export function isEmail(value) {
|
|
7
|
+
return mailPattern.test(value);
|
|
11
8
|
}
|
|
12
|
-
exports.isEmail = isEmail;
|
|
13
9
|
//# sourceMappingURL=patterns.js.map
|
package/utils/patterns.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patterns.js","sourceRoot":"","sources":["../../source/utils/patterns.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"patterns.js","sourceRoot":"","sources":["../../source/utils/patterns.ts"],"names":[],"mappings":"AAAA,kIAAkI;AAClI,MAAM,CAAC,MAAM,aAAa,GAAG,yEAAyE,CAAC;AAEvG,6CAA6C;AAC7C,4CAA4C;AAC5C,MAAM,CAAC,MAAM,WAAW,GAAG,ieAAie,CAAC;AAE7f,MAAM,UAAU,OAAO,CAAC,KAAa;IACnC,OAAO,WAAW,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AACjC,CAAC"}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const cancellation_token_js_1 = require("./cancellation-token.js");
|
|
7
|
-
const timing_js_1 = require("./timing.js");
|
|
8
|
-
class PeriodicReporter {
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { DeferredPromise } from '../promise/deferred-promise.js';
|
|
3
|
+
import { CancellationToken } from './cancellation-token.js';
|
|
4
|
+
import { cancelableTimeout } from './timing.js';
|
|
5
|
+
export class PeriodicReporter {
|
|
9
6
|
reportSubject;
|
|
10
7
|
interval;
|
|
11
8
|
ignoreZero;
|
|
@@ -23,9 +20,9 @@ class PeriodicReporter {
|
|
|
23
20
|
this.ignoreZero = ignoreZero;
|
|
24
21
|
this.resetAfterReport = resetAfterReport;
|
|
25
22
|
this.running = false;
|
|
26
|
-
this.stopToken = new
|
|
27
|
-
this.stopped = new
|
|
28
|
-
this.reportSubject = new
|
|
23
|
+
this.stopToken = new CancellationToken();
|
|
24
|
+
this.stopped = new DeferredPromise();
|
|
25
|
+
this.reportSubject = new Subject();
|
|
29
26
|
}
|
|
30
27
|
increase(count) {
|
|
31
28
|
this.counter += count;
|
|
@@ -42,7 +39,7 @@ class PeriodicReporter {
|
|
|
42
39
|
this.stopToken.unset();
|
|
43
40
|
this.stopped.reset();
|
|
44
41
|
while (!this.stopRequested) { // eslint-disable-line @typescript-eslint/no-unnecessary-condition
|
|
45
|
-
await
|
|
42
|
+
await cancelableTimeout(this.interval, this.stopToken);
|
|
46
43
|
if (!this.stopRequested && (!this.ignoreZero || (this.counter > 0))) { // eslint-disable-line @typescript-eslint/no-unnecessary-condition
|
|
47
44
|
this.emitReport(this.resetAfterReport);
|
|
48
45
|
}
|
|
@@ -66,5 +63,4 @@ class PeriodicReporter {
|
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
65
|
}
|
|
69
|
-
exports.PeriodicReporter = PeriodicReporter;
|
|
70
66
|
//# sourceMappingURL=periodic-reporter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"periodic-reporter.js","sourceRoot":"","sources":["../../source/utils/periodic-reporter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"periodic-reporter.js","sourceRoot":"","sources":["../../source/utils/periodic-reporter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,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OAAO,CAAC,IAAI,CAAC,aAAa,EAAE,EAAE,kEAAkE;gBAC9F,MAAM,iBAAiB,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;gBAEvD,IAAI,CAAC,IAAI,CAAC,aAAa,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,IAAI,CAAC,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,kEAAkE;oBACvI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;iBACxC;aACF;YAED,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;QACzB,CAAC,CAAC,EAAE,CAAC;IACP,CAAC;IAED,KAAK,CAAC,IAAI;QACR,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,OAAO;SACR;QAED,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC;QAC1B,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;QACrB,MAAM,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAEO,UAAU,CAAC,gBAAyB;QAC1C,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAEtC,IAAI,gBAAgB,EAAE;YACpB,IAAI,CAAC,OAAO,GAAG,CAAC,CAAC;SAClB;IACH,CAAC;CACF"}
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const math_js_1 = require("./math.js");
|
|
8
|
-
const timing_js_1 = require("./timing.js");
|
|
9
|
-
var AggregationMode;
|
|
1
|
+
import { Subject } from 'rxjs';
|
|
2
|
+
import { bufferCount, filter, map } from 'rxjs';
|
|
3
|
+
import { compareByValue } from './comparison.js';
|
|
4
|
+
import { average } from './math.js';
|
|
5
|
+
import { timeout } from './timing.js';
|
|
6
|
+
export var AggregationMode;
|
|
10
7
|
(function (AggregationMode) {
|
|
11
8
|
AggregationMode[AggregationMode["Minimum"] = 0] = "Minimum";
|
|
12
9
|
AggregationMode[AggregationMode["Maximum"] = 1] = "Maximum";
|
|
@@ -14,8 +11,8 @@ var AggregationMode;
|
|
|
14
11
|
AggregationMode[AggregationMode["Median"] = 3] = "Median";
|
|
15
12
|
AggregationMode[AggregationMode["FirstQuartile"] = 4] = "FirstQuartile";
|
|
16
13
|
AggregationMode[AggregationMode["ThirdQuartile"] = 5] = "ThirdQuartile";
|
|
17
|
-
})(AggregationMode
|
|
18
|
-
class PeriodicSampler {
|
|
14
|
+
})(AggregationMode || (AggregationMode = {}));
|
|
15
|
+
export class PeriodicSampler {
|
|
19
16
|
sampleFunction;
|
|
20
17
|
subject;
|
|
21
18
|
run;
|
|
@@ -25,7 +22,7 @@ class PeriodicSampler {
|
|
|
25
22
|
this.sampleFunction = sampleFunction;
|
|
26
23
|
this.sampleInterval = sampleInterval;
|
|
27
24
|
this.run = false;
|
|
28
|
-
this.subject = new
|
|
25
|
+
this.subject = new Subject();
|
|
29
26
|
}
|
|
30
27
|
start() {
|
|
31
28
|
if (this.run) {
|
|
@@ -39,18 +36,17 @@ class PeriodicSampler {
|
|
|
39
36
|
await this.stopped;
|
|
40
37
|
}
|
|
41
38
|
watch(threshold = 0, samples = 1, aggregation = AggregationMode.Maximum) {
|
|
42
|
-
const observable = this.subject.pipe(
|
|
39
|
+
const observable = this.subject.pipe(bufferCount(samples), map((measures) => aggregate(aggregation, measures)), filter((ms) => ms >= threshold));
|
|
43
40
|
return observable;
|
|
44
41
|
}
|
|
45
42
|
async runSampleLoop() {
|
|
46
43
|
while (this.run) {
|
|
47
44
|
const delay = await this.sampleFunction();
|
|
48
45
|
this.subject.next(delay);
|
|
49
|
-
await
|
|
46
|
+
await timeout(this.sampleInterval);
|
|
50
47
|
}
|
|
51
48
|
}
|
|
52
49
|
}
|
|
53
|
-
exports.PeriodicSampler = PeriodicSampler;
|
|
54
50
|
function aggregate(aggregation, values) {
|
|
55
51
|
switch (aggregation) {
|
|
56
52
|
case AggregationMode.Minimum:
|
|
@@ -58,17 +54,17 @@ function aggregate(aggregation, values) {
|
|
|
58
54
|
case AggregationMode.Maximum:
|
|
59
55
|
return Math.max(...values);
|
|
60
56
|
case AggregationMode.Mean:
|
|
61
|
-
return
|
|
57
|
+
return average(values);
|
|
62
58
|
case AggregationMode.Median:
|
|
63
|
-
values.sort(
|
|
59
|
+
values.sort(compareByValue);
|
|
64
60
|
const median = Math.floor(values.length / 2);
|
|
65
61
|
return values[median];
|
|
66
62
|
case AggregationMode.FirstQuartile:
|
|
67
|
-
values.sort(
|
|
63
|
+
values.sort(compareByValue);
|
|
68
64
|
const firstQuartile = Math.floor(values.length / 4 * 1);
|
|
69
65
|
return values[firstQuartile];
|
|
70
66
|
case AggregationMode.ThirdQuartile:
|
|
71
|
-
values.sort(
|
|
67
|
+
values.sort(compareByValue);
|
|
72
68
|
const thirdQuartile = Math.floor(values.length / 4 * 3);
|
|
73
69
|
return values[thirdQuartile];
|
|
74
70
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"periodic-sampler.js","sourceRoot":"","sources":["../../source/utils/periodic-sampler.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"periodic-sampler.js","sourceRoot":"","sources":["../../source/utils/periodic-sampler.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,MAAM,CAAN,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,2DAAW,C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M,IAAI,KAAK,CAAC,oBAAoB,WAAqB,kBAAkB,CAAC,CAAC;KAChF;AACH,CAAC"}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.ProviderFunctionIterable = void 0;
|
|
4
|
-
const timing_js_1 = require("./timing.js");
|
|
5
|
-
class ProviderFunctionIterable {
|
|
1
|
+
import { timeout } from './timing.js';
|
|
2
|
+
export class ProviderFunctionIterable {
|
|
6
3
|
providerFunction;
|
|
7
4
|
delay;
|
|
8
5
|
stopped;
|
|
@@ -24,10 +21,9 @@ class ProviderFunctionIterable {
|
|
|
24
21
|
yield result.item;
|
|
25
22
|
}
|
|
26
23
|
else {
|
|
27
|
-
await
|
|
24
|
+
await timeout(this.delay);
|
|
28
25
|
}
|
|
29
26
|
}
|
|
30
27
|
}
|
|
31
28
|
}
|
|
32
|
-
exports.ProviderFunctionIterable = ProviderFunctionIterable;
|
|
33
29
|
//# sourceMappingURL=provider-function-iterable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider-function-iterable.js","sourceRoot":"","sources":["../../source/utils/provider-function-iterable.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"provider-function-iterable.js","sourceRoot":"","sources":["../../source/utils/provider-function-iterable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAMtC,MAAM,OAAO,wBAAwB;IAClB,gBAAgB,CAAsB;IACtC,KAAK,CAAS;IAEvB,OAAO,CAAU;IAEzB,YAAY,gBAAqC,EAAE,KAAa;QAC9D,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;QACzC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,IAAI;QACF,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;IACtB,CAAC;IAED,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;QAC3B,OAAO,CAAC,IAAI,CAAC,OAAO,EAAE;YACpB,IAAI,MAAM,GAAG,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAErC,IAAI,MAAM,YAAY,OAAO,EAAE;gBAC7B,MAAM,GAAG,MAAM,MAAM,CAAC;aACvB;YAED,IAAI,MAAM,CAAC,OAAO,EAAE;gBAClB,MAAM,MAAM,CAAC,IAAI,CAAC;aACnB;iBACI;gBACH,MAAM,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;aAC3B;SACF;IACH,CAAC;CACF"}
|