@tstdl/base 0.82.40 → 0.82.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/client/client.d.ts +4 -4
- package/api/client/client.js +25 -25
- package/api/client/client.js.map +1 -1
- package/api/client/index.d.ts +1 -1
- package/api/client/index.js +1 -1
- package/api/client/index.js.map +1 -1
- package/api/default-error-handlers.d.ts +1 -1
- package/api/default-error-handlers.js +2 -2
- package/api/default-error-handlers.js.map +1 -1
- package/api/index.d.ts +3 -3
- package/api/index.js +3 -3
- package/api/index.js.map +1 -1
- package/api/response.d.ts +2 -2
- package/api/response.js +21 -21
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +3 -3
- package/api/server/api-controller.js +6 -6
- package/api/server/api-controller.js.map +1 -1
- package/api/server/api-request-token.provider.d.ts +1 -1
- package/api/server/api-request-token.provider.js +2 -2
- package/api/server/api-request-token.provider.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +10 -10
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +11 -11
- package/api/server/gateway.js +53 -53
- package/api/server/gateway.js.map +1 -1
- package/api/server/index.d.ts +5 -5
- package/api/server/index.js +5 -5
- package/api/server/index.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +4 -4
- package/api/server/middlewares/allowed-methods.middleware.js +6 -6
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +3 -3
- package/api/server/middlewares/catch-error.middleware.js +2 -2
- package/api/server/middlewares/catch-error.middleware.js.map +1 -1
- package/api/server/middlewares/cors.middleware.d.ts +2 -2
- package/api/server/middlewares/cors.middleware.js +17 -17
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/index.d.ts +4 -4
- package/api/server/middlewares/index.js +4 -4
- package/api/server/middlewares/index.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +2 -2
- package/api/server/middlewares/response-time.middleware.js +4 -4
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +3 -3
- package/api/server/module.js +10 -10
- package/api/server/module.js.map +1 -1
- package/api/server/tokens.d.ts +2 -2
- package/api/server/tokens.js +2 -2
- package/api/server/tokens.js.map +1 -1
- package/api/types.d.ts +5 -5
- package/api/types.js +4 -4
- package/api/types.js.map +1 -1
- package/api/utils.d.ts +1 -1
- package/api/utils.js +10 -10
- package/api/utils.js.map +1 -1
- package/application/application.d.ts +5 -5
- package/application/application.js +26 -26
- package/application/application.js.map +1 -1
- package/application/index.d.ts +1 -1
- package/application/index.js +1 -1
- package/application/index.js.map +1 -1
- package/authentication/authentication.api.d.ts +23 -23
- package/authentication/authentication.api.js +17 -17
- package/authentication/authentication.api.js.map +1 -1
- package/authentication/client/api.client.d.ts +4 -4
- package/authentication/client/api.client.js +12 -12
- package/authentication/client/api.client.js.map +1 -1
- package/authentication/client/authentication.service.d.ts +11 -11
- package/authentication/client/authentication.service.js +47 -47
- package/authentication/client/authentication.service.js.map +1 -1
- package/authentication/client/http-client.middleware.d.ts +2 -2
- package/authentication/client/http-client.middleware.js +9 -9
- package/authentication/client/http-client.middleware.js.map +1 -1
- package/authentication/client/index.d.ts +5 -5
- package/authentication/client/index.js +5 -5
- package/authentication/client/index.js.map +1 -1
- package/authentication/client/module.d.ts +3 -3
- package/authentication/client/module.js +11 -11
- package/authentication/client/module.js.map +1 -1
- package/authentication/client/tokens.d.ts +4 -4
- package/authentication/client/tokens.js +5 -5
- package/authentication/client/tokens.js.map +1 -1
- package/authentication/index.d.ts +2 -2
- package/authentication/index.js +2 -2
- package/authentication/index.js.map +1 -1
- package/authentication/models/authentication-credentials.model.js +10 -10
- package/authentication/models/authentication-credentials.model.js.map +1 -1
- package/authentication/models/authentication-session.model.js +14 -14
- package/authentication/models/authentication-session.model.js.map +1 -1
- package/authentication/models/index.d.ts +4 -4
- package/authentication/models/index.js +4 -4
- package/authentication/models/index.js.map +1 -1
- package/authentication/models/token-payload-base.model.js +7 -7
- package/authentication/models/token-payload-base.model.js.map +1 -1
- package/authentication/models/token.model.d.ts +3 -3
- package/authentication/server/authentication-api-request-token.provider.d.ts +3 -3
- package/authentication/server/authentication-api-request-token.provider.js +8 -8
- package/authentication/server/authentication-api-request-token.provider.js.map +1 -1
- package/authentication/server/authentication-credentials.repository.d.ts +1 -1
- package/authentication/server/authentication-credentials.repository.js +2 -2
- package/authentication/server/authentication-credentials.repository.js.map +1 -1
- package/authentication/server/authentication-session.repository.d.ts +2 -2
- package/authentication/server/authentication-subject.resolver.js +2 -2
- package/authentication/server/authentication-subject.resolver.js.map +1 -1
- package/authentication/server/authentication-token-payload.provider.d.ts +1 -1
- package/authentication/server/authentication-token-payload.provider.js +2 -2
- package/authentication/server/authentication-token-payload.provider.js.map +1 -1
- package/authentication/server/authentication.api-controller.d.ts +4 -4
- package/authentication/server/authentication.api-controller.js +15 -15
- package/authentication/server/authentication.api-controller.js.map +1 -1
- package/authentication/server/authentication.service.d.ts +8 -8
- package/authentication/server/authentication.service.js +53 -53
- package/authentication/server/authentication.service.js.map +1 -1
- package/authentication/server/helper.d.ts +3 -3
- package/authentication/server/helper.js +22 -22
- package/authentication/server/helper.js.map +1 -1
- package/authentication/server/index.d.ts +9 -9
- package/authentication/server/index.js +9 -9
- package/authentication/server/index.js.map +1 -1
- package/authentication/server/module.d.ts +6 -6
- package/authentication/server/module.js +16 -16
- package/authentication/server/module.js.map +1 -1
- package/authentication/server/mongo/index.d.ts +2 -2
- package/authentication/server/mongo/index.js +2 -2
- package/authentication/server/mongo/index.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-credentials.repository.d.ts +8 -8
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js +16 -16
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-session.repository.d.ts +8 -8
- package/authentication/server/mongo/mongo-authentication-session.repository.js +12 -12
- package/authentication/server/mongo/mongo-authentication-session.repository.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +8 -8
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +4 -4
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/awaitable/index.d.ts +3 -3
- package/collections/awaitable/index.js +3 -3
- package/collections/awaitable/index.js.map +1 -1
- package/collections/index.d.ts +6 -6
- package/collections/index.js +6 -6
- package/collections/index.js.map +1 -1
- package/collections/keyed-set.js +2 -2
- package/collections/keyed-set.js.map +1 -1
- package/collections/list.d.ts +1 -1
- package/collections/observable/index.d.ts +8 -8
- package/collections/observable/index.js +8 -8
- package/collections/observable/index.js.map +1 -1
- package/collections/observable/observable-array.d.ts +2 -2
- package/collections/observable/observable-array.js +2 -2
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.d.ts +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-list-base.d.ts +3 -3
- package/collections/observable/observable-list-base.js +2 -2
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.d.ts +3 -3
- package/collections/observable/observable-set.d.ts +2 -2
- package/collections/observable/observable-set.js +2 -2
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +3 -3
- package/collections/observable/observable-sorted-array-list.js +21 -21
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +2 -2
- package/collections/sorted-array-list.js +16 -16
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-list.d.ts +1 -1
- package/collections/sorted-map.d.ts +2 -2
- package/collections/sorted-map.js +7 -9
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +5 -5
- package/container/container.js +110 -104
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +6 -6
- package/container/decorators.js +20 -20
- package/container/decorators.js.map +1 -1
- package/container/index.d.ts +10 -10
- package/container/index.js +10 -10
- package/container/index.js.map +1 -1
- package/container/provider.d.ts +7 -7
- package/container/provider.js +5 -5
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +2 -2
- package/container/resolve-chain.js +7 -7
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +2 -2
- package/container/resolve.error.js +4 -4
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +1 -1
- package/container/token.js +3 -3
- package/container/token.js.map +1 -1
- package/container/type-info.d.ts +2 -2
- package/container/types.d.ts +3 -3
- package/container/utils.d.ts +1 -1
- package/container/utils.js +4 -4
- package/container/utils.js.map +1 -1
- package/cookie/cookie.js +13 -13
- package/cookie/cookie.js.map +1 -1
- package/cookie/index.d.ts +1 -1
- package/cookie/index.js +1 -1
- package/cookie/index.js.map +1 -1
- package/core.d.ts +6 -6
- package/core.js +19 -18
- package/core.js.map +1 -1
- package/data-structures/array-list.d.ts +2 -2
- package/data-structures/array-list.js +2 -2
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +2 -2
- package/data-structures/circular-buffer.js +8 -8
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.js +5 -5
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/index.d.ts +12 -12
- package/data-structures/index.js +12 -12
- package/data-structures/index.js.map +1 -1
- package/data-structures/iterable-weak-map.d.ts +1 -1
- package/data-structures/iterable-weak-map.js +13 -13
- package/data-structures/iterable-weak-map.js.map +1 -1
- package/data-structures/linked-list.d.ts +4 -4
- package/data-structures/linked-list.js +24 -24
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +2 -2
- package/data-structures/list.js +10 -10
- package/data-structures/list.js.map +1 -1
- package/data-structures/map.d.ts +1 -1
- package/data-structures/map.js +2 -2
- package/data-structures/map.js.map +1 -1
- package/data-structures/multi-key-map.d.ts +1 -1
- package/data-structures/multi-key-map.js +12 -12
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/set.d.ts +1 -1
- package/data-structures/set.js +2 -2
- package/data-structures/set.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +5 -5
- package/data-structures/sorted-array-list.js +19 -19
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.d.ts +1 -1
- package/data-structures/weak-ref-map.js +11 -11
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -2
- package/database/id.js +3 -3
- package/database/id.js.map +1 -1
- package/database/index.d.ts +6 -6
- package/database/index.js +6 -6
- package/database/index.js.map +1 -1
- package/database/module.js +2 -2
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +5 -5
- package/database/mongo/classes.js +7 -7
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/index.d.ts +10 -10
- package/database/mongo/index.js +10 -10
- package/database/mongo/index.js.map +1 -1
- package/database/mongo/model/document.d.ts +3 -3
- package/database/mongo/model/document.js +4 -4
- package/database/mongo/model/document.js.map +1 -1
- package/database/mongo/model/index.d.ts +1 -1
- package/database/mongo/model/index.js +1 -1
- package/database/mongo/model/index.js.map +1 -1
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/module.js +18 -18
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +5 -5
- package/database/mongo/mongo-base.repository.js +38 -41
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +4 -4
- package/database/mongo/mongo-bulk.js +16 -16
- package/database/mongo/mongo-bulk.js.map +1 -1
- package/database/mongo/mongo-entity-repository.d.ts +8 -8
- package/database/mongo/mongo-entity-repository.js +23 -23
- package/database/mongo/mongo-entity-repository.js.map +1 -1
- package/database/mongo/operations.d.ts +4 -4
- package/database/mongo/query-converter.d.ts +4 -4
- package/database/mongo/query-converter.js +13 -13
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity-repository.d.ts +4 -4
- package/database/mongo/simple-entity-repository.js +3 -3
- package/database/mongo/simple-entity-repository.js.map +1 -1
- package/database/mongo/types.d.ts +3 -3
- package/database/query.d.ts +2 -2
- package/database/utils.d.ts +1 -1
- package/disposable/async-disposer.d.ts +4 -4
- package/disposable/async-disposer.js +20 -20
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +3 -3
- package/disposable/disposable.js.map +1 -1
- package/disposable/index.d.ts +3 -3
- package/disposable/index.js +3 -3
- package/disposable/index.js.map +1 -1
- package/disposable/using.d.ts +1 -1
- package/disposable/using.js +3 -3
- package/disposable/using.js.map +1 -1
- package/distributed-loop/distributed-loop.d.ts +5 -5
- package/distributed-loop/distributed-loop.js +15 -15
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/index.d.ts +3 -3
- package/distributed-loop/index.js +3 -3
- package/distributed-loop/index.js.map +1 -1
- package/distributed-loop/provider.d.ts +2 -2
- package/distributed-loop/provider.js +6 -6
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +7 -7
- package/enumerable/async-enumerable.js +67 -67
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable.d.ts +6 -6
- package/enumerable/enumerable.js +45 -45
- package/enumerable/enumerable.js.map +1 -1
- package/enumerable/index.d.ts +2 -2
- package/enumerable/index.js +2 -2
- package/enumerable/index.js.map +1 -1
- package/error/api.error.d.ts +2 -2
- package/error/api.error.js +2 -2
- package/error/api.error.js.map +1 -1
- package/error/assertion.error.d.ts +1 -1
- package/error/assertion.error.js +2 -2
- package/error/assertion.error.js.map +1 -1
- package/error/bad-request.error.d.ts +1 -1
- package/error/bad-request.error.js +2 -2
- package/error/bad-request.error.js.map +1 -1
- package/error/details.error.d.ts +1 -1
- package/error/details.error.js +2 -2
- package/error/details.error.js.map +1 -1
- package/error/forbidden.error.d.ts +1 -1
- package/error/forbidden.error.js +2 -2
- package/error/forbidden.error.js.map +1 -1
- package/error/index.d.ts +15 -15
- package/error/index.js +15 -15
- package/error/index.js.map +1 -1
- package/error/invalid-token.error.d.ts +1 -1
- package/error/invalid-token.error.js +2 -2
- package/error/invalid-token.error.js.map +1 -1
- package/error/max-bytes-exceeded.error.d.ts +1 -1
- package/error/max-bytes-exceeded.error.js +2 -2
- package/error/max-bytes-exceeded.error.js.map +1 -1
- package/error/method-not-allowed.error.d.ts +1 -1
- package/error/method-not-allowed.error.js +2 -2
- package/error/method-not-allowed.error.js.map +1 -1
- package/error/multi.error.d.ts +1 -1
- package/error/multi.error.js +2 -2
- package/error/multi.error.js.map +1 -1
- package/error/not-found.error.d.ts +1 -1
- package/error/not-found.error.js +2 -2
- package/error/not-found.error.js.map +1 -1
- package/error/not-implemented.error.d.ts +1 -1
- package/error/not-implemented.error.js +2 -2
- package/error/not-implemented.error.js.map +1 -1
- package/error/not-supported.error.d.ts +2 -2
- package/error/not-supported.error.js +4 -4
- package/error/not-supported.error.js.map +1 -1
- package/error/unauthorized.error.d.ts +1 -1
- package/error/unauthorized.error.js +2 -2
- package/error/unauthorized.error.js.map +1 -1
- package/error/unsupported-media-type.error.d.ts +1 -1
- package/error/unsupported-media-type.error.js +2 -2
- package/error/unsupported-media-type.error.js.map +1 -1
- package/examples/api/authentication.js +31 -32
- package/examples/api/authentication.js.map +1 -1
- package/examples/api/basic-overview.js +32 -31
- package/examples/api/basic-overview.js.map +1 -1
- package/examples/api/custom-authentication.js +38 -38
- package/examples/api/custom-authentication.js.map +1 -1
- package/examples/api/streaming.js +38 -37
- package/examples/api/streaming.js.map +1 -1
- package/examples/http/client.js +5 -5
- package/examples/http/client.js.map +1 -1
- package/examples/mail/basic.js +25 -25
- package/examples/mail/basic.js.map +1 -1
- package/examples/mail/templates/hello-name.d.ts +1 -1
- package/examples/mail/templates/hello-name.js +7 -7
- package/examples/mail/templates/hello-name.js.map +1 -1
- package/examples/pdf/basic.js +19 -19
- package/examples/pdf/basic.js.map +1 -1
- package/examples/pdf/templates/hello-name.d.ts +1 -1
- package/examples/pdf/templates/hello-name.js +10 -10
- package/examples/pdf/templates/hello-name.js.map +1 -1
- package/examples/reflection/basic.d.ts +1 -1
- package/examples/reflection/basic.js +14 -14
- package/examples/reflection/basic.js.map +1 -1
- package/examples/template/basic.js +19 -19
- package/examples/template/basic.js.map +1 -1
- package/examples/template/templates/hello-jsx.d.ts +1 -1
- package/examples/template/templates/hello-jsx.js +3 -3
- package/examples/template/templates/hello-jsx.js.map +1 -1
- package/examples/template/templates/hello-name.d.ts +1 -1
- package/examples/template/templates/hello-name.js +6 -6
- package/examples/template/templates/hello-name.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +3 -3
- package/http/client/adapters/undici-http-client.adapter.js +27 -26
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/http-client-options.d.ts +1 -1
- package/http/client/http-client-request.d.ts +13 -13
- package/http/client/http-client-request.js +23 -23
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +6 -6
- package/http/client/http-client-response.js +4 -4
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.adapter.d.ts +2 -2
- package/http/client/http-client.d.ts +10 -10
- package/http/client/http-client.js +61 -61
- package/http/client/http-client.js.map +1 -1
- package/http/client/index.d.ts +6 -6
- package/http/client/index.js +6 -6
- package/http/client/index.js.map +1 -1
- package/http/client/module.d.ts +3 -3
- package/http/client/module.js +7 -7
- package/http/client/module.js.map +1 -1
- package/http/cookie-parser.d.ts +1 -1
- package/http/cookie-parser.js +6 -6
- package/http/cookie-parser.js.map +1 -1
- package/http/http-body.d.ts +4 -4
- package/http/http-body.js +11 -11
- package/http/http-body.js.map +1 -1
- package/http/http-form.d.ts +3 -3
- package/http/http-form.js +2 -2
- package/http/http-form.js.map +1 -1
- package/http/http-headers.d.ts +3 -3
- package/http/http-headers.js +15 -15
- package/http/http-headers.js.map +1 -1
- package/http/http-query.d.ts +3 -3
- package/http/http-query.js +2 -2
- package/http/http-query.js.map +1 -1
- package/http/http-url-parameters.d.ts +3 -3
- package/http/http-url-parameters.js +2 -2
- package/http/http-url-parameters.js.map +1 -1
- package/http/http-value-map.d.ts +2 -2
- package/http/http-value-map.js +19 -19
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +4 -4
- package/http/http.error.js +11 -11
- package/http/http.error.js.map +1 -1
- package/http/index.d.ts +11 -11
- package/http/index.js +11 -11
- package/http/index.js.map +1 -1
- package/http/server/http-server-request.d.ts +7 -7
- package/http/server/http-server-request.js +4 -4
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +5 -5
- package/http/server/http-server-response.js +8 -8
- package/http/server/http-server-response.js.map +1 -1
- package/http/server/http-server.d.ts +3 -3
- package/http/server/http-server.js +1 -1
- package/http/server/http-server.js.map +1 -1
- package/http/server/index.d.ts +3 -3
- package/http/server/index.js +3 -3
- package/http/server/index.js.map +1 -1
- package/http/server/node/index.d.ts +2 -2
- package/http/server/node/index.js +2 -2
- package/http/server/node/index.js.map +1 -1
- package/http/server/node/module.js +4 -4
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +8 -8
- package/http/server/node/node-http-server.js +47 -47
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +1 -1
- package/http/types.js +4 -4
- package/http/types.js.map +1 -1
- package/http/utils.d.ts +3 -3
- package/http/utils.js +32 -32
- package/http/utils.js.map +1 -1
- package/image-service/image-service.js +13 -13
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +5 -5
- package/image-service/imgproxy/imgproxy-image-service.js +29 -29
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/image-service/imgproxy/index.d.ts +1 -1
- package/image-service/imgproxy/index.js +1 -1
- package/image-service/imgproxy/index.js.map +1 -1
- package/image-service/index.d.ts +1 -1
- package/image-service/index.js +1 -1
- package/image-service/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/json-path/index.d.ts +1 -1
- package/json-path/index.js +1 -1
- package/json-path/index.js.map +1 -1
- package/json-path/json-path.js +15 -15
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/index.d.ts +2 -2
- package/key-value-store/index.js +2 -2
- package/key-value-store/index.js.map +1 -1
- package/key-value-store/key-value-store.provider.d.ts +2 -2
- package/key-value-store/key-value.store.d.ts +3 -3
- package/key-value-store/key-value.store.js +2 -2
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/index.d.ts +5 -5
- package/key-value-store/mongo/index.js +5 -5
- package/key-value-store/mongo/index.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +2 -2
- package/key-value-store/mongo/module.js +7 -7
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value-store.provider.js +6 -6
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +1 -1
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +6 -6
- package/key-value-store/mongo/mongo-key-value.repository.js +11 -11
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value.store.js +17 -17
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/lock/index.d.ts +2 -2
- package/lock/index.js +2 -2
- package/lock/index.js.map +1 -1
- package/lock/lock.d.ts +2 -2
- package/lock/lock.js +2 -2
- package/lock/lock.js.map +1 -1
- package/lock/mongo/index.d.ts +5 -5
- package/lock/mongo/index.js +5 -5
- package/lock/mongo/index.js.map +1 -1
- package/lock/mongo/lock.d.ts +4 -4
- package/lock/mongo/lock.js +28 -28
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/module.d.ts +2 -2
- package/lock/mongo/module.js +7 -7
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/mongo-lock-repository.d.ts +6 -6
- package/lock/mongo/mongo-lock-repository.js +14 -14
- package/lock/mongo/mongo-lock-repository.js.map +1 -1
- package/lock/mongo/provider.d.ts +4 -4
- package/lock/mongo/provider.js +15 -15
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +3 -3
- package/lock/provider.js +2 -2
- package/lock/provider.js.map +1 -1
- package/lock/web/index.d.ts +3 -3
- package/lock/web/index.js +3 -3
- package/lock/web/index.js.map +1 -1
- package/lock/web/module.js +7 -7
- package/lock/web/module.js.map +1 -1
- package/lock/web/web-lock.d.ts +2 -2
- package/lock/web/web-lock.js +17 -17
- package/lock/web/web-lock.js.map +1 -1
- package/lock/web/web-lock.provider.d.ts +2 -2
- package/lock/web/web-lock.provider.js +7 -7
- package/lock/web/web-lock.provider.js.map +1 -1
- package/logger/console/index.d.ts +1 -1
- package/logger/console/index.js +1 -1
- package/logger/console/index.js.map +1 -1
- package/logger/console/logger.d.ts +3 -3
- package/logger/console/logger.js +18 -18
- package/logger/console/logger.js.map +1 -1
- package/logger/index.d.ts +2 -2
- package/logger/index.js +2 -2
- package/logger/index.js.map +1 -1
- package/logger/logger.d.ts +3 -3
- package/logger/logger.js +13 -13
- package/logger/logger.js.map +1 -1
- package/logger/noop/index.d.ts +1 -1
- package/logger/noop/index.js +1 -1
- package/logger/noop/index.js.map +1 -1
- package/logger/noop/logger.d.ts +1 -1
- package/logger/noop/logger.js +4 -4
- package/logger/noop/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.d.ts +2 -2
- package/mail/clients/nodemailer.mail-client.js +9 -9
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/index.d.ts +5 -5
- package/mail/index.js +5 -5
- package/mail/index.js.map +1 -1
- package/mail/mail-log.repository.d.ts +2 -2
- package/mail/mail-log.repository.js +2 -2
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail.client.d.ts +3 -3
- package/mail/mail.client.js +11 -11
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +7 -7
- package/mail/mail.service.js +22 -22
- package/mail/mail.service.js.map +1 -1
- package/mail/models/index.d.ts +6 -6
- package/mail/models/index.js +6 -6
- package/mail/models/index.js.map +1 -1
- package/mail/models/mail-data.model.d.ts +3 -3
- package/mail/models/mail-log.model.d.ts +3 -3
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-template.model.d.ts +1 -1
- package/mail/module.d.ts +4 -4
- package/mail/module.js +13 -13
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +6 -6
- package/mail/repositories/mongo-mail-log.repository.js +9 -9
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/tokens.d.ts +1 -1
- package/mail/tokens.js +2 -2
- package/mail/tokens.js.map +1 -1
- package/memory/index.d.ts +1 -1
- package/memory/index.js +1 -1
- package/memory/index.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js +7 -7
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +11 -11
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/broadcast-channel/index.d.ts +3 -3
- package/message-bus/broadcast-channel/index.js +3 -3
- package/message-bus/broadcast-channel/index.js.map +1 -1
- package/message-bus/broadcast-channel/module.js +7 -7
- package/message-bus/broadcast-channel/module.js.map +1 -1
- package/message-bus/index.d.ts +3 -3
- package/message-bus/index.js +3 -3
- package/message-bus/index.js.map +1 -1
- package/message-bus/local/index.d.ts +3 -3
- package/message-bus/local/index.js +3 -3
- package/message-bus/local/index.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +3 -3
- package/message-bus/local/local-message-bus-provider.js +14 -14
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +4 -4
- package/message-bus/local/local-message-bus.js +10 -10
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/module.js +7 -7
- package/message-bus/local/module.js.map +1 -1
- package/message-bus/message-bus-base.d.ts +4 -4
- package/message-bus/message-bus-base.js +6 -6
- package/message-bus/message-bus-base.js.map +1 -1
- package/message-bus/message-bus-provider.d.ts +1 -1
- package/message-bus/message-bus.d.ts +4 -4
- package/message-bus/message-bus.js +4 -4
- package/message-bus/message-bus.js.map +1 -1
- package/migration/index.d.ts +3 -3
- package/migration/index.js +3 -3
- package/migration/index.js.map +1 -1
- package/migration/migration-state-repository.d.ts +2 -2
- package/migration/migration-state-repository.js +2 -2
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +1 -1
- package/migration/migrator.d.ts +3 -3
- package/migration/migrator.js +22 -22
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/index.d.ts +2 -2
- package/migration/mongo/index.js +2 -2
- package/migration/mongo/index.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +7 -7
- package/migration/mongo/migration-state-repository.js +12 -12
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +2 -2
- package/migration/mongo/module.js +4 -4
- package/migration/mongo/module.js.map +1 -1
- package/module/index.d.ts +4 -4
- package/module/index.js +4 -4
- package/module/index.js.map +1 -1
- package/module/module-base.d.ts +5 -5
- package/module/module-base.js +9 -9
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +4 -4
- package/module/module-metric-reporter.js +10 -11
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +1 -1
- package/module/modules/function.module.d.ts +3 -3
- package/module/modules/function.module.js +2 -2
- package/module/modules/function.module.js.map +1 -1
- package/module/modules/index.d.ts +2 -2
- package/module/modules/index.js +2 -2
- package/module/modules/index.js.map +1 -1
- package/module/modules/web-server.module.d.ts +9 -9
- package/module/modules/web-server.module.js +17 -17
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +2 -2
- package/notification/api.d.ts +3 -3
- package/notification/api.js +9 -9
- package/notification/api.js.map +1 -1
- package/notification/models/index.d.ts +2 -2
- package/notification/models/index.js +2 -2
- package/notification/models/index.js.map +1 -1
- package/notification/models/notification.model.js +13 -13
- package/notification/models/notification.model.js.map +1 -1
- package/notification/notification-channel.service.d.ts +1 -1
- package/notification/notification.repository.d.ts +1 -1
- package/notification/notification.service.d.ts +2 -2
- package/notification/notification.service.js +6 -6
- package/notification/notification.service.js.map +1 -1
- package/object-storage/index.d.ts +3 -3
- package/object-storage/index.js +3 -3
- package/object-storage/index.js.map +1 -1
- package/object-storage/object-storage-provider.d.ts +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +2 -2
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.d.ts +1 -1
- package/object-storage/s3/index.d.ts +3 -3
- package/object-storage/s3/index.js +3 -3
- package/object-storage/s3/index.js.map +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +3 -3
- package/object-storage/s3/s3.object-storage-provider.js +15 -15
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +4 -4
- package/object-storage/s3/s3.object-storage.js +23 -26
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +3 -3
- package/object-storage/s3/s3.object.js +5 -5
- package/object-storage/s3/s3.object.js.map +1 -1
- package/openid-connect/cached-oidc-configuration.service.d.ts +3 -3
- package/openid-connect/cached-oidc-configuration.service.js +13 -13
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.d.ts +7 -7
- package/openid-connect/index.js +11 -11
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +8 -8
- package/openid-connect/mongo-oidc-state.repository.js +12 -12
- package/openid-connect/mongo-oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc-configuration.service.d.ts +1 -1
- package/openid-connect/oidc-configuration.service.js +12 -12
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.repository.d.ts +2 -2
- package/openid-connect/oidc-state.repository.js +2 -2
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service.d.ts +6 -6
- package/openid-connect/oidc.service.js +34 -34
- package/openid-connect/oidc.service.js.map +1 -1
- package/package.json +5 -5
- package/pdf/index.d.ts +1 -1
- package/pdf/index.js +1 -1
- package/pdf/index.js.map +1 -1
- package/pdf/pdf.service.d.ts +7 -7
- package/pdf/pdf.service.js +53 -53
- package/pdf/pdf.service.js.map +1 -1
- package/pool/index.d.ts +1 -1
- package/pool/index.js +1 -1
- package/pool/index.js.map +1 -1
- package/pool/pool.d.ts +3 -3
- package/pool/pool.js +10 -10
- package/pool/pool.js.map +1 -1
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +7 -7
- package/process-shutdown.js.map +1 -1
- package/promise/index.d.ts +3 -3
- package/promise/index.js +3 -3
- package/promise/index.js.map +1 -1
- package/promise/lazy-promise.js +4 -4
- package/promise/lazy-promise.js.map +1 -1
- package/queue/enqueue-batch.d.ts +1 -1
- package/queue/index.d.ts +3 -3
- package/queue/index.js +3 -3
- package/queue/index.js.map +1 -1
- package/queue/mongo/index.d.ts +4 -4
- package/queue/mongo/index.js +4 -4
- package/queue/mongo/index.js.map +1 -1
- package/queue/mongo/job.d.ts +3 -3
- package/queue/mongo/mongo-job.repository.d.ts +7 -7
- package/queue/mongo/mongo-job.repository.js +18 -18
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +6 -6
- package/queue/mongo/queue.js +47 -47
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +10 -10
- package/queue/mongo/queue.provider.js +15 -15
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/provider.d.ts +1 -1
- package/queue/queue.d.ts +4 -4
- package/queue/queue.js +6 -6
- package/queue/queue.js.map +1 -1
- package/random/index.d.ts +1 -1
- package/random/index.js +1 -1
- package/random/index.js.map +1 -1
- package/random/number/index.d.ts +3 -3
- package/random/number/index.js +3 -3
- package/random/number/index.js.map +1 -1
- package/random/number/mulberry32.d.ts +1 -1
- package/random/number/mulberry32.js +2 -2
- package/random/number/mulberry32.js.map +1 -1
- package/random/number/sfc32.d.ts +1 -1
- package/random/number/sfc32.js +2 -2
- package/random/number/sfc32.js.map +1 -1
- package/reflection/decorator-data.d.ts +1 -1
- package/reflection/decorator-data.js +11 -11
- package/reflection/decorator-data.js.map +1 -1
- package/reflection/decorators.d.ts +2 -2
- package/reflection/decorators.js +12 -12
- package/reflection/decorators.js.map +1 -1
- package/reflection/index.d.ts +5 -5
- package/reflection/index.js +5 -5
- package/reflection/index.js.map +1 -1
- package/reflection/reflection-data-map.d.ts +1 -1
- package/reflection/reflection-data-map.js +6 -6
- package/reflection/reflection-data-map.js.map +1 -1
- package/reflection/registry.d.ts +3 -3
- package/reflection/registry.js +27 -27
- package/reflection/registry.js.map +1 -1
- package/reflection/types.d.ts +2 -2
- package/reflection/utils.d.ts +2 -2
- package/reflection/utils.js +18 -18
- package/reflection/utils.js.map +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.d.ts +2 -2
- package/rpc/endpoints/message-port.rpc-endpoint.js +5 -5
- package/rpc/endpoints/message-port.rpc-endpoint.js.map +1 -1
- package/rpc/index.d.ts +4 -4
- package/rpc/index.js +4 -4
- package/rpc/index.js.map +1 -1
- package/rpc/model.d.ts +2 -2
- package/rpc/model.js +2 -2
- package/rpc/model.js.map +1 -1
- package/rpc/rpc-endpoint.d.ts +1 -1
- package/rpc/rpc-error.d.ts +1 -1
- package/rpc/rpc-error.js +8 -8
- package/rpc/rpc-error.js.map +1 -1
- package/rpc/rpc.d.ts +4 -4
- package/rpc/rpc.js +32 -32
- package/rpc/rpc.js.map +1 -1
- package/rxjs/index.d.ts +12 -12
- package/rxjs/index.js +12 -12
- package/rxjs/index.js.map +1 -1
- package/rxjs/intersection-observer.js +6 -6
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/mutation-observer.js +6 -6
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/performance-observer.js +6 -6
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.js +6 -6
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +3 -3
- package/rxjs/retry-backoff.js.map +1 -1
- package/schema/array-constraints/index.d.ts +2 -2
- package/schema/array-constraints/index.js +2 -2
- package/schema/array-constraints/index.js.map +1 -1
- package/schema/array-constraints/maximum-length.d.ts +4 -4
- package/schema/array-constraints/maximum-length.js +6 -6
- package/schema/array-constraints/maximum-length.js.map +1 -1
- package/schema/array-constraints/minimum-length.d.ts +4 -4
- package/schema/array-constraints/minimum-length.js +6 -6
- package/schema/array-constraints/minimum-length.js.map +1 -1
- package/schema/coercers/boolean.coercer.d.ts +3 -3
- package/schema/coercers/boolean.coercer.js +6 -6
- package/schema/coercers/boolean.coercer.js.map +1 -1
- package/schema/coercers/date.coercer.d.ts +3 -3
- package/schema/coercers/date.coercer.js +6 -6
- package/schema/coercers/date.coercer.js.map +1 -1
- package/schema/coercers/index.d.ts +6 -6
- package/schema/coercers/index.js +6 -6
- package/schema/coercers/index.js.map +1 -1
- package/schema/coercers/number.coercer.d.ts +3 -3
- package/schema/coercers/number.coercer.js +4 -4
- package/schema/coercers/number.coercer.js.map +1 -1
- package/schema/coercers/regexp.coercer.d.ts +3 -3
- package/schema/coercers/regexp.coercer.js +4 -4
- package/schema/coercers/regexp.coercer.js.map +1 -1
- package/schema/coercers/string.coercer.d.ts +3 -3
- package/schema/coercers/string.coercer.js +6 -6
- package/schema/coercers/string.coercer.js.map +1 -1
- package/schema/coercers/uint8-array.coercer.d.ts +3 -3
- package/schema/coercers/uint8-array.coercer.js +9 -9
- package/schema/coercers/uint8-array.coercer.js.map +1 -1
- package/schema/constraints/enumeration.d.ts +4 -4
- package/schema/constraints/enumeration.js +11 -11
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +5 -5
- package/schema/constraints/generic.js +6 -6
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/index.d.ts +12 -12
- package/schema/constraints/index.js +12 -12
- package/schema/constraints/index.js.map +1 -1
- package/schema/constraints/integer.d.ts +4 -4
- package/schema/constraints/integer.js +7 -7
- package/schema/constraints/integer.js.map +1 -1
- package/schema/constraints/length.d.ts +1 -1
- package/schema/constraints/length.js +9 -9
- package/schema/constraints/length.js.map +1 -1
- package/schema/constraints/literal.d.ts +3 -3
- package/schema/constraints/literal.js +9 -9
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +4 -4
- package/schema/constraints/maximum-date.js +10 -10
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +4 -4
- package/schema/constraints/maximum-length.js +8 -8
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +4 -4
- package/schema/constraints/maximum.js +7 -7
- package/schema/constraints/maximum.js.map +1 -1
- package/schema/constraints/minimum-date.d.ts +4 -4
- package/schema/constraints/minimum-date.js +10 -10
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +4 -4
- package/schema/constraints/minimum-length.js +8 -8
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +4 -4
- package/schema/constraints/minimum.js +7 -7
- package/schema/constraints/minimum.js.map +1 -1
- package/schema/constraints/pattern.d.ts +4 -4
- package/schema/constraints/pattern.js +7 -7
- package/schema/constraints/pattern.js.map +1 -1
- package/schema/decorators/class.d.ts +2 -2
- package/schema/decorators/class.js +2 -2
- package/schema/decorators/class.js.map +1 -1
- package/schema/decorators/coerce.d.ts +1 -1
- package/schema/decorators/coerce.js +2 -2
- package/schema/decorators/coerce.js.map +1 -1
- package/schema/decorators/constraint.d.ts +3 -3
- package/schema/decorators/constraint.js +4 -4
- package/schema/decorators/constraint.js.map +1 -1
- package/schema/decorators/index.d.ts +6 -6
- package/schema/decorators/index.js +6 -6
- package/schema/decorators/index.js.map +1 -1
- package/schema/decorators/property.d.ts +4 -4
- package/schema/decorators/property.js +11 -11
- package/schema/decorators/property.js.map +1 -1
- package/schema/decorators/types.d.ts +3 -3
- package/schema/decorators/utils.d.ts +8 -8
- package/schema/decorators/utils.js +14 -14
- package/schema/decorators/utils.js.map +1 -1
- package/schema/index.d.ts +10 -10
- package/schema/index.js +10 -10
- package/schema/index.js.map +1 -1
- package/schema/schema.d.ts +2 -2
- package/schema/schema.error.d.ts +6 -6
- package/schema/schema.error.js +18 -18
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +63 -63
- package/schema/schema.js.map +1 -1
- package/schema/schemas/any.d.ts +2 -2
- package/schema/schemas/any.js +4 -4
- package/schema/schemas/any.js.map +1 -1
- package/schema/schemas/array.d.ts +4 -4
- package/schema/schemas/array.js +12 -12
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/assign.d.ts +1 -1
- package/schema/schemas/assign.js +6 -6
- package/schema/schemas/assign.js.map +1 -1
- package/schema/schemas/boolean.d.ts +2 -2
- package/schema/schemas/boolean.js +4 -4
- package/schema/schemas/boolean.js.map +1 -1
- package/schema/schemas/constraint.d.ts +4 -4
- package/schema/schemas/constraint.js +4 -4
- package/schema/schemas/constraint.js.map +1 -1
- package/schema/schemas/date.d.ts +2 -2
- package/schema/schemas/date.js +12 -12
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +4 -4
- package/schema/schemas/defaulted.js +5 -5
- package/schema/schemas/defaulted.js.map +1 -1
- package/schema/schemas/enumeration.d.ts +3 -3
- package/schema/schemas/enumeration.js +8 -8
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/index.d.ts +26 -26
- package/schema/schemas/index.js +26 -26
- package/schema/schemas/index.js.map +1 -1
- package/schema/schemas/instance.d.ts +1 -1
- package/schema/schemas/instance.js +2 -2
- package/schema/schemas/instance.js.map +1 -1
- package/schema/schemas/literal.d.ts +2 -2
- package/schema/schemas/literal.js +9 -9
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +3 -3
- package/schema/schemas/nullable.js +4 -4
- package/schema/schemas/nullable.js.map +1 -1
- package/schema/schemas/number.d.ts +2 -2
- package/schema/schemas/number.js +15 -15
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +2 -2
- package/schema/schemas/object.js +2 -2
- package/schema/schemas/object.js.map +1 -1
- package/schema/schemas/omit.d.ts +2 -2
- package/schema/schemas/omit.js +8 -8
- package/schema/schemas/omit.js.map +1 -1
- package/schema/schemas/one-or-many.d.ts +5 -5
- package/schema/schemas/one-or-many.js +8 -8
- package/schema/schemas/one-or-many.js.map +1 -1
- package/schema/schemas/optional.d.ts +4 -4
- package/schema/schemas/optional.js +4 -4
- package/schema/schemas/optional.js.map +1 -1
- package/schema/schemas/partial.d.ts +2 -2
- package/schema/schemas/partial.js +11 -11
- package/schema/schemas/partial.js.map +1 -1
- package/schema/schemas/pick.d.ts +2 -2
- package/schema/schemas/pick.js +8 -8
- package/schema/schemas/pick.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +3 -3
- package/schema/schemas/readable-stream.js +4 -4
- package/schema/schemas/readable-stream.js.map +1 -1
- package/schema/schemas/record.d.ts +3 -3
- package/schema/schemas/record.js +2 -2
- package/schema/schemas/record.js.map +1 -1
- package/schema/schemas/regexp.d.ts +3 -3
- package/schema/schemas/regexp.js +4 -4
- package/schema/schemas/regexp.js.map +1 -1
- package/schema/schemas/string.d.ts +2 -2
- package/schema/schemas/string.js +22 -22
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +4 -4
- package/schema/schemas/transform.js +4 -4
- package/schema/schemas/transform.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +2 -2
- package/schema/schemas/uint8-array.js +16 -16
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +3 -3
- package/schema/schemas/union.js +8 -8
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +2 -2
- package/schema/schemas/unknown.js +4 -4
- package/schema/schemas/unknown.js.map +1 -1
- package/schema/transformers/generic.d.ts +4 -4
- package/schema/transformers/generic.js +4 -4
- package/schema/transformers/generic.js.map +1 -1
- package/schema/transformers/index.d.ts +4 -4
- package/schema/transformers/index.js +4 -4
- package/schema/transformers/index.js.map +1 -1
- package/schema/transformers/lowercase.d.ts +3 -3
- package/schema/transformers/lowercase.js +4 -4
- package/schema/transformers/lowercase.js.map +1 -1
- package/schema/transformers/trim.d.ts +3 -3
- package/schema/transformers/trim.js +4 -4
- package/schema/transformers/trim.js.map +1 -1
- package/schema/transformers/uppercase.d.ts +3 -3
- package/schema/transformers/uppercase.js +4 -4
- package/schema/transformers/uppercase.js.map +1 -1
- package/schema/types/index.d.ts +5 -5
- package/schema/types/index.js +5 -5
- package/schema/types/index.js.map +1 -1
- package/schema/types/schema-array-constraint.d.ts +2 -2
- package/schema/types/schema-value-coercer.d.ts +3 -3
- package/schema/types/schema-value-constraint.d.ts +3 -3
- package/schema/types/schema-value-transformer.d.ts +3 -3
- package/schema/types/types.d.ts +7 -7
- package/schema/types/types.js +24 -24
- package/schema/types/types.js.map +1 -1
- package/schema/utils/index.d.ts +2 -2
- package/schema/utils/index.js +2 -2
- package/schema/utils/index.js.map +1 -1
- package/schema/utils/schema.d.ts +3 -3
- package/schema/utils/schema.js +40 -40
- package/schema/utils/schema.js.map +1 -1
- package/schema/utils/value-type.d.ts +3 -3
- package/schema/utils/value-type.js +22 -22
- package/schema/utils/value-type.js.map +1 -1
- package/search-index/elastic/config.d.ts +3 -3
- package/search-index/elastic/config.js +6 -6
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/index.d.ts +6 -6
- package/search-index/elastic/index.js +6 -6
- package/search-index/elastic/index.js.map +1 -1
- package/search-index/elastic/model/elastic-query.d.ts +1 -1
- package/search-index/elastic/model/index-mapping.d.ts +3 -3
- package/search-index/elastic/model/index-mapping.js +2 -2
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/index.d.ts +3 -3
- package/search-index/elastic/model/index.js +3 -3
- package/search-index/elastic/model/index.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +3 -3
- package/search-index/elastic/module.d.ts +4 -4
- package/search-index/elastic/module.js +17 -17
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.d.ts +1 -1
- package/search-index/elastic/query-builder/index.d.ts +1 -1
- package/search-index/elastic/query-builder/index.js +1 -1
- package/search-index/elastic/query-builder/index.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +4 -4
- package/search-index/elastic/query-converter.js +26 -26
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +10 -10
- package/search-index/elastic/search-index.js +33 -33
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +3 -3
- package/search-index/elastic/types.d.ts +1 -1
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +4 -4
- package/search-index/error.js.map +1 -1
- package/search-index/index.d.ts +3 -3
- package/search-index/index.js +3 -3
- package/search-index/index.js.map +1 -1
- package/search-index/memory/index.d.ts +1 -1
- package/search-index/memory/index.js +1 -1
- package/search-index/memory/index.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +3 -3
- package/search-index/memory/memory-search-index.js +26 -26
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +3 -3
- package/search-index/search-index.js +3 -3
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +1 -1
- package/serializer/handlers/binary.d.ts +1 -1
- package/serializer/handlers/binary.js +7 -7
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/index.d.ts +7 -7
- package/serializer/handlers/index.js +7 -7
- package/serializer/handlers/index.js.map +1 -1
- package/serializer/handlers/map.d.ts +1 -1
- package/serializer/handlers/register.d.ts +1 -1
- package/serializer/handlers/register.js +18 -18
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.d.ts +2 -2
- package/serializer/index.d.ts +4 -4
- package/serializer/index.js +7 -7
- package/serializer/index.js.map +1 -1
- package/serializer/serializable.d.ts +1 -1
- package/serializer/serializable.js +5 -5
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +35 -35
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/sse/index.d.ts +1 -1
- package/sse/index.js +1 -1
- package/sse/index.js.map +1 -1
- package/sse/server-sent-events.js +5 -5
- package/sse/server-sent-events.js.map +1 -1
- package/tailwind/index.d.ts +1 -1
- package/tailwind/index.js +1 -1
- package/tailwind/index.js.map +1 -1
- package/tailwind/theme-adapter.d.ts +1 -1
- package/tailwind/theme-adapter.js +4 -4
- package/tailwind/theme-adapter.js.map +1 -1
- package/templates/index.d.ts +9 -9
- package/templates/index.js +9 -9
- package/templates/index.js.map +1 -1
- package/templates/module.d.ts +4 -4
- package/templates/module.js +12 -12
- package/templates/module.js.map +1 -1
- package/templates/providers/file.template-provider.d.ts +4 -4
- package/templates/providers/file.template-provider.js +13 -13
- package/templates/providers/file.template-provider.js.map +1 -1
- package/templates/providers/memory.template-provider.d.ts +2 -2
- package/templates/providers/memory.template-provider.js +6 -6
- package/templates/providers/memory.template-provider.js.map +1 -1
- package/templates/renderers/handlebars.template-renderer.d.ts +5 -5
- package/templates/renderers/handlebars.template-renderer.js +19 -19
- package/templates/renderers/handlebars.template-renderer.js.map +1 -1
- package/templates/renderers/jsx.template-renderer.d.ts +6 -6
- package/templates/renderers/jsx.template-renderer.js +8 -8
- package/templates/renderers/jsx.template-renderer.js.map +1 -1
- package/templates/renderers/mjml.template-renderer.d.ts +3 -3
- package/templates/renderers/mjml.template-renderer.js +7 -7
- package/templates/renderers/mjml.template-renderer.js.map +1 -1
- package/templates/renderers/string.template-renderer.d.ts +2 -2
- package/templates/renderers/string.template-renderer.js +4 -4
- package/templates/renderers/string.template-renderer.js.map +1 -1
- package/templates/resolvers/file.template-resolver.d.ts +6 -6
- package/templates/resolvers/file.template-resolver.js +13 -13
- package/templates/resolvers/file.template-resolver.js.map +1 -1
- package/templates/resolvers/jsx.template-resolver.d.ts +4 -4
- package/templates/resolvers/jsx.template-resolver.js +8 -8
- package/templates/resolvers/jsx.template-resolver.js.map +1 -1
- package/templates/resolvers/string.template-resolver.d.ts +4 -4
- package/templates/resolvers/string.template-resolver.js +8 -8
- package/templates/resolvers/string.template-resolver.js.map +1 -1
- package/templates/template-renderer.provider.d.ts +1 -1
- package/templates/template-renderer.provider.js +4 -4
- package/templates/template-renderer.provider.js.map +1 -1
- package/templates/template-resolver.provider.d.ts +1 -1
- package/templates/template-resolver.provider.js +4 -4
- package/templates/template-resolver.provider.js.map +1 -1
- package/templates/template.model.d.ts +1 -1
- package/templates/template.model.js +10 -10
- package/templates/template.model.js.map +1 -1
- package/templates/template.provider.d.ts +1 -1
- package/templates/template.renderer.d.ts +2 -2
- package/templates/template.renderer.js +4 -4
- package/templates/template.renderer.js.map +1 -1
- package/templates/template.resolver.d.ts +1 -1
- package/templates/template.service.d.ts +5 -5
- package/templates/template.service.js +15 -15
- package/templates/template.service.js.map +1 -1
- package/templates/tokens.d.ts +4 -4
- package/templates/tokens.js +3 -3
- package/templates/tokens.js.map +1 -1
- package/text/dynamic-text.model.d.ts +6 -2
- package/text/dynamic-text.model.js +23 -6
- package/text/dynamic-text.model.js.map +1 -1
- package/text/index.d.ts +3 -3
- package/text/index.js +3 -3
- package/text/index.js.map +1 -1
- package/text/localizable-text.model.d.ts +1 -1
- package/text/localization.service.d.ts +7 -4
- package/text/localization.service.js +50 -35
- package/text/localization.service.js.map +1 -1
- package/theme/adapters/css-adapter.d.ts +1 -1
- package/theme/adapters/css-adapter.js +19 -19
- package/theme/adapters/css-adapter.js.map +1 -1
- package/theme/index.d.ts +1 -1
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/theme-service.d.ts +2 -2
- package/theme/theme-service.js +19 -19
- package/theme/theme-service.js.map +1 -1
- package/threading/index.d.ts +2 -2
- package/threading/index.js +2 -2
- package/threading/index.js.map +1 -1
- package/threading/thread-pool.d.ts +4 -4
- package/threading/thread-pool.js +11 -11
- package/threading/thread-pool.js.map +1 -1
- package/threading/thread-worker.d.ts +1 -1
- package/threading/thread-worker.js +2 -2
- package/threading/thread-worker.js.map +1 -1
- package/tokens.d.ts +1 -1
- package/tokens.js +2 -2
- package/tokens.js.map +1 -1
- package/types/geo-json.d.ts +1 -1
- package/types.d.ts +3 -0
- package/utils/any-iterable-iterator.js +3 -3
- package/utils/any-iterable-iterator.js.map +1 -1
- package/utils/array/array-backtracker.js +5 -5
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/array/array.js +11 -11
- package/utils/array/array.js.map +1 -1
- package/utils/array/index.d.ts +2 -2
- package/utils/array/index.js +2 -2
- package/utils/array/index.js.map +1 -1
- package/utils/async-iterable-helpers/all.d.ts +2 -2
- package/utils/async-iterable-helpers/all.js +2 -2
- package/utils/async-iterable-helpers/all.js.map +1 -1
- package/utils/async-iterable-helpers/any.d.ts +2 -2
- package/utils/async-iterable-helpers/any.js +2 -2
- package/utils/async-iterable-helpers/any.js.map +1 -1
- package/utils/async-iterable-helpers/assert.d.ts +2 -2
- package/utils/async-iterable-helpers/assert.js +5 -5
- package/utils/async-iterable-helpers/assert.js.map +1 -1
- package/utils/async-iterable-helpers/batch.d.ts +1 -1
- package/utils/async-iterable-helpers/batch.js +2 -2
- package/utils/async-iterable-helpers/batch.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.d.ts +1 -1
- package/utils/async-iterable-helpers/buffer.js +8 -8
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/concat.d.ts +1 -1
- package/utils/async-iterable-helpers/default-if-empty.d.ts +1 -1
- package/utils/async-iterable-helpers/deferred.d.ts +1 -1
- package/utils/async-iterable-helpers/difference.d.ts +2 -2
- package/utils/async-iterable-helpers/difference.js +8 -8
- package/utils/async-iterable-helpers/difference.js.map +1 -1
- package/utils/async-iterable-helpers/distinct.d.ts +2 -2
- package/utils/async-iterable-helpers/distinct.js +2 -2
- package/utils/async-iterable-helpers/distinct.js.map +1 -1
- package/utils/async-iterable-helpers/drain.d.ts +1 -1
- package/utils/async-iterable-helpers/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/filter.js +2 -2
- package/utils/async-iterable-helpers/filter.js.map +1 -1
- package/utils/async-iterable-helpers/first-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/first-or-default.js +2 -2
- package/utils/async-iterable-helpers/first-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/first.d.ts +3 -3
- package/utils/async-iterable-helpers/first.js +2 -2
- package/utils/async-iterable-helpers/first.js.map +1 -1
- package/utils/async-iterable-helpers/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/for-each.js +2 -2
- package/utils/async-iterable-helpers/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/group-single.d.ts +2 -2
- package/utils/async-iterable-helpers/group-single.js +2 -2
- package/utils/async-iterable-helpers/group-single.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-map.js +5 -5
- package/utils/async-iterable-helpers/group-to-map.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-single-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-single-map.js +2 -2
- package/utils/async-iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/async-iterable-helpers/group.d.ts +2 -2
- package/utils/async-iterable-helpers/group.js +2 -2
- package/utils/async-iterable-helpers/group.js.map +1 -1
- package/utils/async-iterable-helpers/includes.d.ts +1 -1
- package/utils/async-iterable-helpers/includes.js +6 -6
- package/utils/async-iterable-helpers/includes.js.map +1 -1
- package/utils/async-iterable-helpers/index.d.ts +48 -48
- package/utils/async-iterable-helpers/index.js +48 -48
- package/utils/async-iterable-helpers/index.js.map +1 -1
- package/utils/async-iterable-helpers/interrupt.d.ts +1 -1
- package/utils/async-iterable-helpers/interrupt.js +5 -5
- package/utils/async-iterable-helpers/interrupt.js.map +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.js +3 -3
- package/utils/async-iterable-helpers/is-async-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/last-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/last-or-default.js +2 -2
- package/utils/async-iterable-helpers/last-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/last.d.ts +3 -3
- package/utils/async-iterable-helpers/last.js +2 -2
- package/utils/async-iterable-helpers/last.js.map +1 -1
- package/utils/async-iterable-helpers/map-many.d.ts +2 -2
- package/utils/async-iterable-helpers/map-many.js +2 -2
- package/utils/async-iterable-helpers/map-many.js.map +1 -1
- package/utils/async-iterable-helpers/map.d.ts +2 -2
- package/utils/async-iterable-helpers/map.js +2 -2
- package/utils/async-iterable-helpers/map.js.map +1 -1
- package/utils/async-iterable-helpers/materialize.d.ts +1 -1
- package/utils/async-iterable-helpers/materialize.js +4 -4
- package/utils/async-iterable-helpers/materialize.js.map +1 -1
- package/utils/async-iterable-helpers/metadata.d.ts +2 -2
- package/utils/async-iterable-helpers/metadata.js +2 -2
- package/utils/async-iterable-helpers/metadata.js.map +1 -1
- package/utils/async-iterable-helpers/multiplex.d.ts +1 -1
- package/utils/async-iterable-helpers/multiplex.js +3 -3
- package/utils/async-iterable-helpers/multiplex.js.map +1 -1
- package/utils/async-iterable-helpers/observable-iterable.js +5 -5
- package/utils/async-iterable-helpers/observable-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/pairwise.d.ts +1 -1
- package/utils/async-iterable-helpers/pairwise.js +2 -2
- package/utils/async-iterable-helpers/pairwise.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/feed.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/feed.js +6 -6
- package/utils/async-iterable-helpers/parallel/feed.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/filter.js +2 -2
- package/utils/async-iterable-helpers/parallel/filter.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/for-each.js +4 -4
- package/utils/async-iterable-helpers/parallel/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/group.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/group.js +4 -4
- package/utils/async-iterable-helpers/parallel/group.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/index.d.ts +7 -7
- package/utils/async-iterable-helpers/parallel/index.js +7 -7
- package/utils/async-iterable-helpers/parallel/index.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/map.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/map.js +2 -2
- package/utils/async-iterable-helpers/parallel/map.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/tap.js +2 -2
- package/utils/async-iterable-helpers/parallel/tap.js.map +1 -1
- package/utils/async-iterable-helpers/reduce.d.ts +2 -2
- package/utils/async-iterable-helpers/reduce.js +2 -2
- package/utils/async-iterable-helpers/reduce.js.map +1 -1
- package/utils/async-iterable-helpers/retry.d.ts +2 -2
- package/utils/async-iterable-helpers/retry.js +2 -2
- package/utils/async-iterable-helpers/retry.js.map +1 -1
- package/utils/async-iterable-helpers/single-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/single.d.ts +3 -3
- package/utils/async-iterable-helpers/skip.d.ts +1 -1
- package/utils/async-iterable-helpers/skip.js +2 -2
- package/utils/async-iterable-helpers/skip.js.map +1 -1
- package/utils/async-iterable-helpers/sort.d.ts +2 -2
- package/utils/async-iterable-helpers/sort.js +4 -4
- package/utils/async-iterable-helpers/sort.js.map +1 -1
- package/utils/async-iterable-helpers/take-until.d.ts +2 -2
- package/utils/async-iterable-helpers/take-until.js +2 -2
- package/utils/async-iterable-helpers/take-until.js.map +1 -1
- package/utils/async-iterable-helpers/take-while.d.ts +2 -2
- package/utils/async-iterable-helpers/take-while.js +2 -2
- package/utils/async-iterable-helpers/take-while.js.map +1 -1
- package/utils/async-iterable-helpers/take.d.ts +1 -1
- package/utils/async-iterable-helpers/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/tap.js +2 -2
- package/utils/async-iterable-helpers/tap.js.map +1 -1
- package/utils/async-iterable-helpers/throttle.d.ts +2 -2
- package/utils/async-iterable-helpers/throttle.js +2 -2
- package/utils/async-iterable-helpers/throttle.js.map +1 -1
- package/utils/async-iterable-helpers/to-array.d.ts +1 -1
- package/utils/async-iterable-helpers/to-array.js +2 -2
- package/utils/async-iterable-helpers/to-array.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.js +7 -7
- package/utils/async-iterable-helpers/to-async-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-set.d.ts +1 -1
- package/utils/async-iterable-helpers/to-set.js +2 -2
- package/utils/async-iterable-helpers/to-set.js.map +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.js +4 -4
- package/utils/async-iterable-helpers/to-sync-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/types.d.ts +1 -1
- package/utils/async-iterable-helpers/while.d.ts +2 -2
- package/utils/async-iterable-helpers/while.js +2 -2
- package/utils/async-iterable-helpers/while.js.map +1 -1
- package/utils/async-iterator-iterable-iterator.js +3 -3
- package/utils/async-iterator-iterable-iterator.js.map +1 -1
- package/utils/backoff.d.ts +2 -2
- package/utils/backoff.js +9 -9
- package/utils/backoff.js.map +1 -1
- package/utils/base64.d.ts +1 -1
- package/utils/base64.js +8 -8
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.d.ts +2 -2
- package/utils/benchmark.js +12 -12
- package/utils/benchmark.js.map +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary-search.js +8 -8
- package/utils/binary-search.js.map +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +6 -6
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.js +8 -8
- package/utils/cancellation-token.js.map +1 -1
- package/utils/clone.js +15 -15
- package/utils/clone.js.map +1 -1
- package/utils/compression.d.ts +1 -1
- package/utils/compression.js +26 -26
- package/utils/compression.js.map +1 -1
- package/utils/config-parser.js +3 -3
- package/utils/config-parser.js.map +1 -1
- package/utils/cryptography.d.ts +1 -1
- package/utils/cryptography.js +33 -33
- package/utils/cryptography.js.map +1 -1
- package/utils/date-time.js +11 -11
- package/utils/date-time.js.map +1 -1
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +8 -8
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/enum.js +10 -10
- package/utils/enum.js.map +1 -1
- package/utils/equals.d.ts +2 -2
- package/utils/equals.js +14 -14
- package/utils/equals.js.map +1 -1
- package/utils/event-loop.d.ts +2 -2
- package/utils/event-loop.js +7 -7
- package/utils/event-loop.js.map +1 -1
- package/utils/feedable-async-iterable.js +4 -4
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/file-reader.js +2 -2
- package/utils/file-reader.js.map +1 -1
- package/utils/format-error.d.ts +1 -1
- package/utils/format-error.js +10 -10
- package/utils/format-error.js.map +1 -1
- package/utils/function/index.d.ts +2 -2
- package/utils/function/index.js +2 -2
- package/utils/function/index.js.map +1 -1
- package/utils/function/memoize.js +4 -4
- package/utils/function/memoize.js.map +1 -1
- package/utils/function/throttle.js +2 -2
- package/utils/function/throttle.js.map +1 -1
- package/utils/helpers.d.ts +1 -1
- package/utils/helpers.js +8 -8
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +9 -9
- package/utils/image.js.map +1 -1
- package/utils/index.d.ts +47 -47
- package/utils/index.js +47 -47
- package/utils/index.js.map +1 -1
- package/utils/iterable-helpers/all.d.ts +1 -1
- package/utils/iterable-helpers/any.d.ts +1 -1
- package/utils/iterable-helpers/assert.d.ts +1 -1
- package/utils/iterable-helpers/assert.js +2 -2
- package/utils/iterable-helpers/assert.js.map +1 -1
- package/utils/iterable-helpers/difference.d.ts +1 -1
- package/utils/iterable-helpers/difference.js +5 -5
- package/utils/iterable-helpers/difference.js.map +1 -1
- package/utils/iterable-helpers/distinct.d.ts +1 -1
- package/utils/iterable-helpers/filter.d.ts +1 -1
- package/utils/iterable-helpers/first-or-default.d.ts +1 -1
- package/utils/iterable-helpers/first-or-default.js +2 -2
- package/utils/iterable-helpers/first-or-default.js.map +1 -1
- package/utils/iterable-helpers/first.d.ts +1 -1
- package/utils/iterable-helpers/first.js +2 -2
- package/utils/iterable-helpers/first.js.map +1 -1
- package/utils/iterable-helpers/for-each.d.ts +1 -1
- package/utils/iterable-helpers/group-single.d.ts +1 -1
- package/utils/iterable-helpers/group-single.js +2 -2
- package/utils/iterable-helpers/group-single.js.map +1 -1
- package/utils/iterable-helpers/group-to-map.d.ts +1 -1
- package/utils/iterable-helpers/group-to-map.js +2 -2
- package/utils/iterable-helpers/group-to-map.js.map +1 -1
- package/utils/iterable-helpers/group-to-single-map.d.ts +1 -1
- package/utils/iterable-helpers/group.d.ts +1 -1
- package/utils/iterable-helpers/group.js +2 -2
- package/utils/iterable-helpers/group.js.map +1 -1
- package/utils/iterable-helpers/includes.js +2 -2
- package/utils/iterable-helpers/includes.js.map +1 -1
- package/utils/iterable-helpers/index.d.ts +39 -39
- package/utils/iterable-helpers/index.js +39 -39
- package/utils/iterable-helpers/index.js.map +1 -1
- package/utils/iterable-helpers/is-iterable.d.ts +1 -1
- package/utils/iterable-helpers/is-iterable.js +3 -3
- package/utils/iterable-helpers/is-iterable.js.map +1 -1
- package/utils/iterable-helpers/last-or-default.d.ts +1 -1
- package/utils/iterable-helpers/last-or-default.js +2 -2
- package/utils/iterable-helpers/last-or-default.js.map +1 -1
- package/utils/iterable-helpers/last.d.ts +1 -1
- package/utils/iterable-helpers/last.js +2 -2
- package/utils/iterable-helpers/last.js.map +1 -1
- package/utils/iterable-helpers/map-many.d.ts +1 -1
- package/utils/iterable-helpers/map.d.ts +1 -1
- package/utils/iterable-helpers/metadata.d.ts +1 -1
- package/utils/iterable-helpers/reduce.d.ts +1 -1
- package/utils/iterable-helpers/single-or-default.d.ts +1 -1
- package/utils/iterable-helpers/single.d.ts +1 -1
- package/utils/iterable-helpers/sort.d.ts +1 -1
- package/utils/iterable-helpers/sort.js +2 -2
- package/utils/iterable-helpers/sort.js.map +1 -1
- package/utils/iterable-helpers/take-until.d.ts +1 -1
- package/utils/iterable-helpers/take-while.d.ts +1 -1
- package/utils/iterable-helpers/tap.d.ts +1 -1
- package/utils/iterable-helpers/while.d.ts +1 -1
- package/utils/jwt.d.ts +2 -2
- package/utils/jwt.js +26 -26
- package/utils/jwt.js.map +1 -1
- package/utils/map.js +2 -2
- package/utils/map.js.map +1 -1
- package/utils/math.js +3 -3
- package/utils/math.js.map +1 -1
- package/utils/merge.d.ts +1 -1
- package/utils/merge.js +11 -11
- package/utils/merge.js.map +1 -1
- package/utils/moving-metric.js +2 -2
- package/utils/moving-metric.js.map +1 -1
- package/utils/object/decycle.d.ts +1 -1
- package/utils/object/decycle.js +20 -20
- package/utils/object/decycle.js.map +1 -1
- package/utils/object/dereference.d.ts +1 -1
- package/utils/object/dereference.js +4 -4
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.js +14 -14
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/object/index.d.ts +7 -7
- package/utils/object/index.js +7 -7
- package/utils/object/index.js.map +1 -1
- package/utils/object/lazy-property.d.ts +1 -1
- package/utils/object/lazy-property.js +11 -11
- package/utils/object/lazy-property.js.map +1 -1
- package/utils/object/merge.js +12 -12
- package/utils/object/merge.js.map +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/object.js +9 -9
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +2 -2
- package/utils/object/property-name.js +7 -7
- package/utils/object/property-name.js.map +1 -1
- package/utils/ordered-feedable-async-iterable.d.ts +1 -1
- package/utils/ordered-feedable-async-iterable.js +2 -2
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +1 -1
- package/utils/patch-worker.js +10 -10
- package/utils/patch-worker.js.map +1 -1
- package/utils/periodic-reporter.js +6 -6
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.js +8 -8
- package/utils/periodic-sampler.js.map +1 -1
- package/utils/provider-function-iterable.js +2 -2
- package/utils/provider-function-iterable.js.map +1 -1
- package/utils/proxy.js +2 -2
- package/utils/proxy.js.map +1 -1
- package/utils/random.js +2 -2
- package/utils/random.js.map +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/set.js +2 -2
- package/utils/set.js.map +1 -1
- package/utils/singleton.js +2 -2
- package/utils/singleton.js.map +1 -1
- package/utils/sort.js +3 -3
- package/utils/sort.js.map +1 -1
- package/utils/stream/index.d.ts +6 -6
- package/utils/stream/index.js +6 -6
- package/utils/stream/index.js.map +1 -1
- package/utils/stream/readable-stream-adapter.d.ts +1 -1
- package/utils/stream/readable-stream-adapter.js +2 -2
- package/utils/stream/readable-stream-adapter.js.map +1 -1
- package/utils/stream/size-limited-stream.d.ts +1 -1
- package/utils/stream/size-limited-stream.js +2 -2
- package/utils/stream/size-limited-stream.js.map +1 -1
- package/utils/stream/stream-reader.d.ts +1 -1
- package/utils/stream/stream-reader.js +10 -10
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/string/index.d.ts +2 -2
- package/utils/string/index.js +2 -2
- package/utils/string/index.js.map +1 -1
- package/utils/timing.d.ts +1 -1
- package/utils/type-guards.d.ts +1 -1
- package/utils/type-guards.js +6 -6
- package/utils/type-guards.js.map +1 -1
- package/utils/type-of.js +2 -2
- package/utils/type-of.js.map +1 -1
- package/utils/url-builder.d.ts +1 -1
- package/utils/url-builder.js +9 -9
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/utils/z-base32.js +4 -4
- package/utils/z-base32.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/tap.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/tap.ts"],"names":[],"mappings":";;;AACA,iEAAyD;AAGzD,SAAgB,QAAQ,CAAI,QAAwB,EAAE,MAAqC;IACzF,OAAO,IAAA,sCAAe,EAAC,QAAQ,CAAC;QAC9B,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;QACzB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC7B,CAAC;AAJD,4BAIC;AAED,KAAK,SAAS,CAAC,CAAC,IAAI,CAAI,QAAqB,EAAE,MAAqC;IAClF,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;QAC3B,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAE1C,IAAI,WAAW,YAAY,OAAO,EAAE;YAClC,MAAM,WAAW,CAAC;SACnB;QAED,MAAM,IAAI,CAAC;KACZ;AACH,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,KAAK,CAAI,QAA0B,EAAE,MAAqC;IACxF,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,MAAM,WAAW,GAAG,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAE1C,IAAI,WAAW,YAAY,OAAO,EAAE;YAClC,MAAM,WAAW,CAAC;SACnB;QAED,MAAM,IAAI,CAAC;KACZ;AACH,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
2
|
-
import type { ThrottleFunction } from './types';
|
|
1
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
2
|
+
import type { ThrottleFunction } from './types.js';
|
|
3
3
|
export declare function throttle<T>(iterable: AnyIterable<T>, delayOrThrottleFunction: number | ThrottleFunction): AsyncIterableIterator<T>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.throttle = void 0;
|
|
4
|
-
const
|
|
4
|
+
const timing_js_1 = require("../timing.js");
|
|
5
5
|
async function* throttle(iterable, delayOrThrottleFunction) {
|
|
6
6
|
const throttleFunction = (typeof delayOrThrottleFunction == 'number')
|
|
7
|
-
? () => (0,
|
|
7
|
+
? () => (0, timing_js_1.timeout)(delayOrThrottleFunction) // eslint-disable-line @typescript-eslint/promise-function-async
|
|
8
8
|
: delayOrThrottleFunction;
|
|
9
9
|
for await (const item of iterable) {
|
|
10
10
|
yield item;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/throttle.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/throttle.ts"],"names":[],"mappings":";;;AACA,4CAAuC;AAIhC,KAAK,SAAS,CAAC,CAAC,QAAQ,CAAI,QAAwB,EAAE,uBAAkD;IAC7G,MAAM,gBAAgB,GAAG,CAAC,OAAO,uBAAuB,IAAI,QAAQ,CAAC;QACnE,CAAC,CAAC,GAAG,EAAE,CAAC,IAAA,mBAAO,EAAC,uBAAuB,CAAC,CAAC,gEAAgE;QACzG,CAAC,CAAC,uBAAuB,CAAC;IAE5B,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,MAAM,IAAI,CAAC;QACX,MAAM,gBAAgB,EAAE,CAAC;KAC1B;AACH,CAAC;AATD,4BASC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
1
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
2
2
|
export declare function toArrayAsync<T>(iterable: AnyIterable<T>): Promise<T[]>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toArrayAsync = void 0;
|
|
4
|
-
const
|
|
4
|
+
const is_iterable_js_1 = require("../iterable-helpers/is-iterable.js");
|
|
5
5
|
async function toArrayAsync(iterable) {
|
|
6
|
-
if ((0,
|
|
6
|
+
if ((0, is_iterable_js_1.isIterable)(iterable)) {
|
|
7
7
|
return [...iterable];
|
|
8
8
|
}
|
|
9
9
|
const array = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-array.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-array.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"to-array.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-array.ts"],"names":[],"mappings":";;;AACA,uEAAgE;AAEzD,KAAK,UAAU,YAAY,CAAI,QAAwB;IAC5D,IAAI,IAAA,2BAAU,EAAC,QAAQ,CAAC,EAAE;QACxB,OAAO,CAAC,GAAG,QAAQ,CAAC,CAAC;KACtB;IAED,MAAM,KAAK,GAAQ,EAAE,CAAC;IAEtB,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAClB;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAZD,oCAYC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
1
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
2
2
|
export declare function iterableToAsyncIterableIterator<T>(iterable: AnyIterable<T>): AsyncIterableIterator<T>;
|
|
3
3
|
export declare function iteratorToAsyncIterableIterator<T, TReturn, TNext>(iterator: Iterator<T, TReturn, TNext>): AsyncIterableIterator<T>;
|
|
4
4
|
export declare function asyncIteratorToAsyncIterableIterator<T, TReturn, TNext>(iterator: AsyncIterator<T, TReturn, TNext>): AsyncIterableIterator<T>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
1
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
2
2
|
export declare function iterableToAsyncIterator<T>(iterable: AnyIterable<T>): AsyncIterator<T>;
|
|
3
3
|
export declare function iteratorToAsyncIterator<T, TReturn = any, TNext = undefined>(iterator: Iterator<T, TReturn, TNext>): AsyncIterator<T, TReturn, TNext>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.iteratorToAsyncIterator = exports.iterableToAsyncIterator = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const is_iterable_js_1 = require("../iterable-helpers/is-iterable.js");
|
|
5
|
+
const type_guards_js_1 = require("../type-guards.js");
|
|
6
|
+
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
7
7
|
function iterableToAsyncIterator(iterable) {
|
|
8
8
|
let asyncIterator;
|
|
9
|
-
if ((0,
|
|
9
|
+
if ((0, is_iterable_js_1.isIterable)(iterable)) {
|
|
10
10
|
const iterator = iterable[Symbol.iterator]();
|
|
11
11
|
asyncIterator = iteratorToAsyncIterator(iterator);
|
|
12
12
|
}
|
|
13
|
-
else if ((0,
|
|
13
|
+
else if ((0, is_async_iterable_js_1.isAsyncIterable)(iterable)) {
|
|
14
14
|
asyncIterator = iterable[Symbol.asyncIterator]();
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
@@ -25,12 +25,12 @@ function iteratorToAsyncIterator(iterator) {
|
|
|
25
25
|
return iterator.next(...args);
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
|
-
if ((0,
|
|
28
|
+
if ((0, type_guards_js_1.isDefined)(iterator.return)) { // eslint-disable-line @typescript-eslint/unbound-method
|
|
29
29
|
asyncIterator.return = async function _return(value) {
|
|
30
30
|
return iterator.return(await value);
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
if ((0,
|
|
33
|
+
if ((0, type_guards_js_1.isDefined)(iterator.throw)) { // eslint-disable-line @typescript-eslint/unbound-method
|
|
34
34
|
asyncIterator.throw = async function _throw(error) {
|
|
35
35
|
return iterator.throw(error);
|
|
36
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-async-iterator.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-async-iterator.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"to-async-iterator.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-async-iterator.ts"],"names":[],"mappings":";;;AACA,uEAAgE;AAChE,sDAA8C;AAC9C,iEAAyD;AAEzD,SAAgB,uBAAuB,CAAI,QAAwB;IACjE,IAAI,aAA+B,CAAC;IAEpC,IAAI,IAAA,2BAAU,EAAC,QAAQ,CAAC,EAAE;QACxB,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7C,aAAa,GAAG,uBAAuB,CAAC,QAAQ,CAAC,CAAC;KACnD;SACI,IAAI,IAAA,sCAAe,EAAC,QAAQ,CAAC,EAAE;QAClC,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;KAClD;SACI;QACH,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;KACrE;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AAfD,0DAeC;AAED,SAAgB,uBAAuB,CAAsC,QAAqC;IAChH,MAAM,aAAa,GAAqC;QACtD,KAAK,CAAC,IAAI,CAAC,GAAG,IAAkB;YAC9B,OAAO,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;QAChC,CAAC;KACF,CAAC;IAEF,IAAI,IAAA,0BAAS,EAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,EAAE,wDAAwD;QACxF,aAAa,CAAC,MAAM,GAAG,KAAK,UAAU,OAAO,CAAC,KAAsC;YAClF,OAAO,QAAQ,CAAC,MAAO,CAAC,MAAM,KAAK,CAAC,CAAC;QACvC,CAAC,CAAC;KACH;IAED,IAAI,IAAA,0BAAS,EAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,EAAE,wDAAwD;QACvF,aAAa,CAAC,KAAK,GAAG,KAAK,UAAU,MAAM,CAAC,KAAW;YACrD,OAAO,QAAQ,CAAC,KAAM,CAAC,KAAK,CAAC,CAAC;QAChC,CAAC,CAAC;KACH;IAED,OAAO,aAAa,CAAC;AACvB,CAAC;AApBD,0DAoBC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
1
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
2
2
|
export declare function toSetAsync<T>(iterable: AnyIterable<T>): Promise<Set<T>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toSetAsync = void 0;
|
|
4
|
-
const
|
|
4
|
+
const is_iterable_js_1 = require("../iterable-helpers/is-iterable.js");
|
|
5
5
|
async function toSetAsync(iterable) {
|
|
6
|
-
if ((0,
|
|
6
|
+
if ((0, is_iterable_js_1.isIterable)(iterable)) {
|
|
7
7
|
return new Set(iterable);
|
|
8
8
|
}
|
|
9
9
|
const set = new Set();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-set.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-set.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"to-set.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-set.ts"],"names":[],"mappings":";;;AACA,uEAAgE;AAEzD,KAAK,UAAU,UAAU,CAAI,QAAwB;IAC1D,IAAI,IAAA,2BAAU,EAAC,QAAQ,CAAC,EAAE;QACxB,OAAO,IAAI,GAAG,CAAC,QAAQ,CAAC,CAAC;KAC1B;IAED,MAAM,GAAG,GAAG,IAAI,GAAG,EAAK,CAAC;IAEzB,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KACf;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAZD,gCAYC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
1
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
2
2
|
export declare function toSync<T>(iterable: AnyIterable<T>): Promise<Iterable<T>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toSync = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
4
|
+
const is_iterable_js_1 = require("../iterable-helpers/is-iterable.js");
|
|
5
|
+
const to_array_js_1 = require("./to-array.js");
|
|
6
6
|
async function toSync(iterable) {
|
|
7
|
-
return ((0,
|
|
7
|
+
return ((0, is_iterable_js_1.isIterable)(iterable))
|
|
8
8
|
? iterable
|
|
9
|
-
: (0,
|
|
9
|
+
: (0, to_array_js_1.toArrayAsync)(iterable);
|
|
10
10
|
}
|
|
11
11
|
exports.toSync = toSync;
|
|
12
12
|
//# sourceMappingURL=to-sync-iterable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-sync-iterable.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-sync-iterable.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"to-sync-iterable.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-sync-iterable.ts"],"names":[],"mappings":";;;AACA,uEAAgE;AAChE,+CAA6C;AAEtC,KAAK,UAAU,MAAM,CAAI,QAAwB;IACtD,OAAO,CAAC,IAAA,2BAAU,EAAC,QAAQ,CAAC,CAAC;QAC3B,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,IAAA,0BAAY,EAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC;AAJD,wBAIC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type { Context } from '../iterable-helpers/types';
|
|
1
|
+
export type { Context } from '../iterable-helpers/types.js';
|
|
2
2
|
export type AsyncIteratorFunction<TIn, TOut> = (item: TIn, index: number) => TOut | Promise<TOut>;
|
|
3
3
|
export type AsyncPredicate<T> = (item: T, index: number) => boolean | Promise<boolean>;
|
|
4
4
|
export type AsyncRetryPredicate<T> = (error: Error, item: T, index: number) => boolean | Promise<boolean>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { AnyIterable } from '../any-iterable-iterator';
|
|
2
|
-
import type { AsyncPredicate } from './types';
|
|
1
|
+
import type { AnyIterable } from '../any-iterable-iterator.js';
|
|
2
|
+
import type { AsyncPredicate } from './types.js';
|
|
3
3
|
export declare function whileAsync<T>(iterable: AnyIterable<T>, predicate: AsyncPredicate<T>): AsyncIterableIterator<T>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.whileAsync = void 0;
|
|
4
|
-
const
|
|
4
|
+
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
5
5
|
function whileAsync(iterable, predicate) {
|
|
6
|
-
return ((0,
|
|
6
|
+
return ((0, is_async_iterable_js_1.isAsyncIterable)(iterable))
|
|
7
7
|
? async(iterable, predicate)
|
|
8
8
|
: sync(iterable, predicate);
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"while.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/while.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"while.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/while.ts"],"names":[],"mappings":";;;AACA,iEAAyD;AAGzD,SAAgB,UAAU,CAAI,QAAwB,EAAE,SAA4B;IAClF,OAAO,CAAC,IAAA,sCAAe,EAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC;QAC5B,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC;AAJD,gCAIC;AAED,KAAK,SAAS,CAAC,CAAC,IAAI,CAAI,QAAqB,EAAE,SAA4B;IACzE,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;QAC3B,MAAM,IAAI,CAAC;QAEX,IAAI,IAAI,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAEpC,IAAI,IAAI,YAAY,OAAO,EAAE;YAC3B,IAAI,GAAG,MAAM,IAAI,CAAC;SACnB;QAED,IAAI,CAAC,IAAI,EAAE;YACT,OAAO;SACR;KACF;AACH,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,KAAK,CAAI,QAA0B,EAAE,SAA4B;IAC/E,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,MAAM,IAAI,CAAC;QAEX,IAAI,IAAI,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAEpC,IAAI,IAAI,YAAY,OAAO,EAAE;YAC3B,IAAI,GAAG,MAAM,IAAI,CAAC;SACnB;QAED,IAAI,CAAC,IAAI,EAAE;YACT,OAAO;SACR;KACF;AACH,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AsyncIteratorIterableIterator = void 0;
|
|
4
|
-
const
|
|
4
|
+
const type_guards_js_1 = require("./type-guards.js");
|
|
5
5
|
class AsyncIteratorIterableIterator {
|
|
6
6
|
iterator;
|
|
7
7
|
keepOpen;
|
|
@@ -13,11 +13,11 @@ class AsyncIteratorIterableIterator {
|
|
|
13
13
|
return this.iterator.next(...args);
|
|
14
14
|
}
|
|
15
15
|
async return(value) {
|
|
16
|
-
(0,
|
|
16
|
+
(0, type_guards_js_1.assertDefined)(this.iterator.return, 'underlying iterator has no return function defined'); // eslint-disable-line @typescript-eslint/unbound-method
|
|
17
17
|
return this.iterator.return(value);
|
|
18
18
|
}
|
|
19
19
|
async throw(error) {
|
|
20
|
-
(0,
|
|
20
|
+
(0, type_guards_js_1.assertDefined)(this.iterator.throw, 'underlying iterator has no throw function defined'); // eslint-disable-line @typescript-eslint/unbound-method
|
|
21
21
|
return this.iterator.throw(error);
|
|
22
22
|
}
|
|
23
23
|
async *[Symbol.asyncIterator]() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-iterator-iterable-iterator.js","sourceRoot":"","sources":["../../source/utils/async-iterator-iterable-iterator.ts"],"names":[],"mappings":";;;AAAA
|
|
1
|
+
{"version":3,"file":"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BACD,OAAO,KAAc,EAAE;oBACrB,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,SAAS,EAAE;wBACpC,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;qBAClC;iBACF;aACF;SACF;gBACO;YACN,IAAI,CAAC,QAAQ,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,IAAI,CAAC,QAAQ,CAAC,MAAM,IAAI,SAAS,EAAE;gBACpE,MAAM,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;aAC9B;SACF;IACH,CAAC;CACF;AAnDD,sEAmDC"}
|
package/utils/backoff.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ReadonlyCancellationToken } from './cancellation-token';
|
|
2
|
-
import { CancellationToken } from './cancellation-token';
|
|
1
|
+
import type { ReadonlyCancellationToken } from './cancellation-token.js';
|
|
2
|
+
import { CancellationToken } from './cancellation-token.js';
|
|
3
3
|
export type BackoffStrategy = 'linear' | 'exponential';
|
|
4
4
|
export type BackoffOptions = {
|
|
5
5
|
/**
|
package/utils/backoff.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.backoffGenerator = exports.backoffLoop = exports.autoBackoffLoop = exports.BackoffHelper = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
4
|
+
const cancellation_token_js_1 = require("./cancellation-token.js");
|
|
5
|
+
const noop_js_1 = require("./noop.js");
|
|
6
|
+
const timing_js_1 = require("./timing.js");
|
|
7
|
+
const type_guards_js_1 = require("./type-guards.js");
|
|
8
8
|
class BackoffHelper {
|
|
9
9
|
strategy;
|
|
10
10
|
initialDelay;
|
|
@@ -34,7 +34,7 @@ exports.BackoffHelper = BackoffHelper;
|
|
|
34
34
|
* @param loopFunction function to call
|
|
35
35
|
*/
|
|
36
36
|
async function autoBackoffLoop(options, loopFunction, extras) {
|
|
37
|
-
const errorHandler = extras?.errorHandler ??
|
|
37
|
+
const errorHandler = extras?.errorHandler ?? noop_js_1.noop;
|
|
38
38
|
return backoffLoop(options, async (controller) => {
|
|
39
39
|
try {
|
|
40
40
|
await loopFunction(controller);
|
|
@@ -54,7 +54,7 @@ exports.autoBackoffLoop = autoBackoffLoop;
|
|
|
54
54
|
*/
|
|
55
55
|
async function backoffLoop(options, loopFunction, extras) {
|
|
56
56
|
const backoffHelper = new BackoffHelper(options);
|
|
57
|
-
const loopCancellationToken = extras?.cancellationToken?.createChild({ unset: false, complete: false }) ?? new
|
|
57
|
+
const loopCancellationToken = extras?.cancellationToken?.createChild({ unset: false, complete: false }) ?? new cancellation_token_js_1.CancellationToken();
|
|
58
58
|
let backoff = false;
|
|
59
59
|
const controller = {
|
|
60
60
|
backoff: () => backoff = true,
|
|
@@ -68,7 +68,7 @@ async function backoffLoop(options, loopFunction, extras) {
|
|
|
68
68
|
if (backoff) {
|
|
69
69
|
backoff = false;
|
|
70
70
|
const milliseconds = backoffHelper.backoff();
|
|
71
|
-
await (0,
|
|
71
|
+
await (0, timing_js_1.cancelableTimeout)(milliseconds, loopCancellationToken);
|
|
72
72
|
}
|
|
73
73
|
else {
|
|
74
74
|
backoffHelper.reset();
|
|
@@ -94,14 +94,14 @@ async function* backoffGenerator(options, cancellationToken) {
|
|
|
94
94
|
let timeoutToken = cancellationToken;
|
|
95
95
|
const backoffFunction = (continueToken) => {
|
|
96
96
|
backoff = true;
|
|
97
|
-
if ((0,
|
|
97
|
+
if ((0, type_guards_js_1.isDefined)(continueToken)) {
|
|
98
98
|
timeoutToken = cancellationToken.createChild().inherit(continueToken);
|
|
99
99
|
}
|
|
100
100
|
};
|
|
101
101
|
yield backoffFunction;
|
|
102
102
|
if (backoff) { // eslint-disable-line @typescript-eslint/no-unnecessary-condition
|
|
103
103
|
const milliseconds = backoffHelper.backoff();
|
|
104
|
-
await (0,
|
|
104
|
+
await (0, timing_js_1.cancelableTimeout)(milliseconds, timeoutToken);
|
|
105
105
|
}
|
|
106
106
|
else {
|
|
107
107
|
backoffHelper.reset();
|
package/utils/backoff.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"backoff.js","sourceRoot":"","sources":["../../source/utils/backoff.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"backoff.js","sourceRoot":"","sources":["../../source/utils/backoff.ts"],"names":[],"mappings":";;;AACA,mEAA4D;AAC5D,uCAAiC;AACjC,2CAAgD;AAChD,qDAA6C;AA6C7C,MAAa,aAAa;IACP,QAAQ,CAAkB;IAC1B,YAAY,CAAS;IACrB,QAAQ,CAAS;IACjB,YAAY,CAAS;IAE9B,KAAK,CAAS;IAEtB,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAkB;QAC5E,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,IAAI,MAAM,CAAC,gBAAgB,CAAC;QAE5D,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,KAAK;QACH,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,YAAY,CAAC;IACjC,CAAC;IAED,OAAO;QACL,IAAI,CAAC,KAAK,GAAG,WAAW,CAAC,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QACtF,OAAO,IAAI,CAAC,KAAK,CAAC;IACpB,CAAC;CACF;AAzBD,sCAyBC;AAED;;;;;GAKG;AACI,KAAK,UAAU,eAAe,CAAC,OAAuB,EAAE,YAAiC,EAAE,MAAiG;IACjM,MAAM,YAAY,GAAG,MAAM,EAAE,YA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/base64.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BinaryData } from '../types';
|
|
1
|
+
import type { BinaryData } from '../types.js';
|
|
2
2
|
export declare function encodeBase64(array: BinaryData, bytesOffset?: number, bytesLength?: number): string;
|
|
3
3
|
export declare function decodeBase64(base64: string): Uint8Array;
|
|
4
4
|
export declare function encodeBase64Url(array: BinaryData, bytesOffset?: number, length?: number): string;
|
package/utils/base64.js
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
/* eslint-disable no-bitwise */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.stringToUtf8Array = exports.utf8ArrayToString = exports.base64UrlToBase64 = exports.base64ToBase64Url = exports.decodeBase64Url = exports.encodeBase64Url = exports.decodeBase64 = exports.encodeBase64 = void 0;
|
|
5
|
-
const
|
|
6
|
-
const
|
|
7
|
-
const
|
|
5
|
+
const supports_js_1 = require("../supports.js");
|
|
6
|
+
const binary_js_1 = require("./binary.js");
|
|
7
|
+
const type_guards_js_1 = require("./type-guards.js");
|
|
8
8
|
function encodeBase64(array, bytesOffset, bytesLength) {
|
|
9
9
|
let arrayBuffer;
|
|
10
10
|
let offset;
|
|
11
11
|
let length;
|
|
12
|
-
if ((0,
|
|
12
|
+
if ((0, type_guards_js_1.isArrayBuffer)(array)) {
|
|
13
13
|
arrayBuffer = array;
|
|
14
14
|
}
|
|
15
15
|
else {
|
|
@@ -17,7 +17,7 @@ function encodeBase64(array, bytesOffset, bytesLength) {
|
|
|
17
17
|
offset = bytesOffset ?? array.byteOffset;
|
|
18
18
|
length = bytesLength ?? array.byteLength;
|
|
19
19
|
}
|
|
20
|
-
if (
|
|
20
|
+
if (supports_js_1.supportsBuffer) {
|
|
21
21
|
const buffer = Buffer.from(arrayBuffer, offset, length);
|
|
22
22
|
const base64 = buffer.toString('base64');
|
|
23
23
|
return base64;
|
|
@@ -26,7 +26,7 @@ function encodeBase64(array, bytesOffset, bytesLength) {
|
|
|
26
26
|
}
|
|
27
27
|
exports.encodeBase64 = encodeBase64;
|
|
28
28
|
function decodeBase64(base64) {
|
|
29
|
-
if (
|
|
29
|
+
if (supports_js_1.supportsBuffer) {
|
|
30
30
|
const buffer = Buffer.from(base64, 'base64');
|
|
31
31
|
return buffer;
|
|
32
32
|
}
|
|
@@ -55,7 +55,7 @@ function base64UrlToBase64(input) {
|
|
|
55
55
|
}
|
|
56
56
|
exports.base64UrlToBase64 = base64UrlToBase64;
|
|
57
57
|
function encodeBase64Fallback(data) {
|
|
58
|
-
const bytes = (0,
|
|
58
|
+
const bytes = (0, binary_js_1.toUint8Array)(data);
|
|
59
59
|
let nMod3 = 2;
|
|
60
60
|
let base64 = '';
|
|
61
61
|
let nUint24 = 0;
|
|
@@ -72,7 +72,7 @@ function encodeBase64Fallback(data) {
|
|
|
72
72
|
function decodeBase64Fallback(base64, blockSize) {
|
|
73
73
|
const clearedBase64 = base64.replace(/[^A-Za-z0-9+/]/ug, '');
|
|
74
74
|
const inputLength = clearedBase64.length;
|
|
75
|
-
const outputLength = (0,
|
|
75
|
+
const outputLength = (0, type_guards_js_1.isDefined)(blockSize) ? Math.ceil(((inputLength * 3) + 1 >> 2) / blockSize) * blockSize : (inputLength * 3) + 1 >> 2;
|
|
76
76
|
const bytes = new Uint8Array(outputLength);
|
|
77
77
|
let nUint24 = 0;
|
|
78
78
|
let nOutIdx = 0;
|
package/utils/base64.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../../source/utils/base64.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAE/B,
|
|
1
|
+
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../../source/utils/base64.ts"],"names":[],"mappings":";AAAA,+BAA+B;;;AAE/B,gDAA+C;AAE/C,2CAA2C;AAC3C,qDAA4D;AAE5D,SAAgB,YAAY,CAAC,KAAiB,EAAE,WAAoB,EAAE,WAAoB;IACxF,IAAI,WAAw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AAa,CAAC,IAAY;IACjC,OAAO,IAAI,GAAG,EAAE,IAAI,IAAI,GAAG,EAAE;QAC3B,CAAC,CAAC,IAAI,GAAG,EAAE;QACX,CAAC,CAAC,IAAI,GAAG,EAAE,IAAI,IAAI,GAAG,GAAG;YACvB,CAAC,CAAC,IAAI,GAAG,EAAE;YACX,CAAC,CAAC,IAAI,GAAG,EAAE,IAAI,IAAI,GAAG,EAAE;gBACtB,CAAC,CAAC,IAAI,GAAG,CAAC;gBACV,CAAC,CAAC,IAAI,KAAK,EAAE;oBACX,CAAC,CAAC,EAAE;oBACJ,CAAC,CAAC,IAAI,KAAK,EAAE;wBACX,CAAC,CAAC,EAAE;wBACJ,CAAC,CAAC,CAAC,CAAC;AAChB,CAAC"}
|
package/utils/benchmark.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export declare function timedBenchmark(milliseconds: number, fn: (run: number) =
|
|
|
31
31
|
* @param fn the function to benchmark
|
|
32
32
|
* @param warmupDuration run the function for specified duration in milliseconds to warm it up
|
|
33
33
|
*/
|
|
34
|
-
export declare function benchmarkAsync(runs: number, fn: (run: number) => Promise<
|
|
34
|
+
export declare function benchmarkAsync(runs: number, fn: (run: number) => Promise<any>, warmupDuration?: number): Promise<BenchmarkResult>;
|
|
35
35
|
/**
|
|
36
36
|
* benchmarks an async function for a duration
|
|
37
37
|
*
|
|
@@ -40,4 +40,4 @@ export declare function benchmarkAsync(runs: number, fn: (run: number) => Promis
|
|
|
40
40
|
* @param fn the function to benchmark
|
|
41
41
|
* @param warmupDuration run the function for specified duration in milliseconds to warm it up
|
|
42
42
|
*/
|
|
43
|
-
export declare function timedBenchmarkAsync(milliseconds: number, fn: (run: number) => Promise<
|
|
43
|
+
export declare function timedBenchmarkAsync(milliseconds: number, fn: (run: number) => Promise<any>, warmupDuration?: number): Promise<BenchmarkResult>;
|
package/utils/benchmark.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.timedBenchmarkAsync = exports.benchmarkAsync = exports.timedBenchmark = exports.benchmark = exports.measureBenchmarkOverhead = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const math_js_1 = require("./math.js");
|
|
5
|
+
const noop_js_1 = require("./noop.js");
|
|
6
|
+
const timer_js_1 = require("./timer.js");
|
|
7
7
|
let microsecondsPerTimerRead = 0;
|
|
8
8
|
/**
|
|
9
9
|
* measure the timer overhead for more precise benchmarks
|
|
@@ -12,8 +12,8 @@ let microsecondsPerTimerRead = 0;
|
|
|
12
12
|
* @param duration fow how long to measure the overhead in milliseconds (default 250)
|
|
13
13
|
*/
|
|
14
14
|
function measureBenchmarkOverhead(duration = 250) {
|
|
15
|
-
const timer = new
|
|
16
|
-
const warmupDuration = (0,
|
|
15
|
+
const timer = new timer_js_1.Timer(true);
|
|
16
|
+
const warmupDuration = (0, math_js_1.clamp)(duration / 2, 50, 500);
|
|
17
17
|
const testDuration = Math.max(duration - warmupDuration, 50);
|
|
18
18
|
let operations = 0;
|
|
19
19
|
let warmupPhase = true;
|
|
@@ -21,7 +21,7 @@ function measureBenchmarkOverhead(duration = 250) {
|
|
|
21
21
|
if (warmupPhase && timer.milliseconds >= warmupDuration) {
|
|
22
22
|
warmupPhase = false;
|
|
23
23
|
operations = 0;
|
|
24
|
-
warmupFunction =
|
|
24
|
+
warmupFunction = noop_js_1.noop;
|
|
25
25
|
timer.restart();
|
|
26
26
|
}
|
|
27
27
|
};
|
|
@@ -42,7 +42,7 @@ exports.measureBenchmarkOverhead = measureBenchmarkOverhead;
|
|
|
42
42
|
*/
|
|
43
43
|
function benchmark(runs, fn, warmupDuration = 500) {
|
|
44
44
|
warmup(fn, warmupDuration);
|
|
45
|
-
const timer = new
|
|
45
|
+
const timer = new timer_js_1.Timer(true);
|
|
46
46
|
for (let run = 1; run <= runs; run++) {
|
|
47
47
|
fn(run);
|
|
48
48
|
}
|
|
@@ -59,7 +59,7 @@ exports.benchmark = benchmark;
|
|
|
59
59
|
*/
|
|
60
60
|
function timedBenchmark(milliseconds, fn, warmupDuration = 500) {
|
|
61
61
|
warmup(fn, warmupDuration);
|
|
62
|
-
const timer = new
|
|
62
|
+
const timer = new timer_js_1.Timer(true);
|
|
63
63
|
let runs = 0;
|
|
64
64
|
do {
|
|
65
65
|
runs++;
|
|
@@ -76,7 +76,7 @@ exports.timedBenchmark = timedBenchmark;
|
|
|
76
76
|
*/
|
|
77
77
|
async function benchmarkAsync(runs, fn, warmupDuration = 500) {
|
|
78
78
|
await warmupAsync(fn, warmupDuration);
|
|
79
|
-
const timer = new
|
|
79
|
+
const timer = new timer_js_1.Timer(true);
|
|
80
80
|
for (let run = 1; run <= runs; run++) {
|
|
81
81
|
await fn(run);
|
|
82
82
|
}
|
|
@@ -93,7 +93,7 @@ exports.benchmarkAsync = benchmarkAsync;
|
|
|
93
93
|
*/
|
|
94
94
|
async function timedBenchmarkAsync(milliseconds, fn, warmupDuration = 500) {
|
|
95
95
|
await warmupAsync(fn, warmupDuration);
|
|
96
|
-
const timer = new
|
|
96
|
+
const timer = new timer_js_1.Timer(true);
|
|
97
97
|
let runs = 0;
|
|
98
98
|
do {
|
|
99
99
|
runs++;
|
|
@@ -118,7 +118,7 @@ function warmup(fn, duration) {
|
|
|
118
118
|
if (duration <= 0) {
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
|
-
const timer = new
|
|
121
|
+
const timer = new timer_js_1.Timer(true);
|
|
122
122
|
let runs = 0;
|
|
123
123
|
while (timer.milliseconds < duration) {
|
|
124
124
|
fn(++runs);
|
|
@@ -128,7 +128,7 @@ async function warmupAsync(fn, duration) {
|
|
|
128
128
|
if (duration <= 0) {
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
|
-
const timer = new
|
|
131
|
+
const timer = new timer_js_1.Timer(true);
|
|
132
132
|
let runs = 0;
|
|
133
133
|
while (timer.milliseconds < duration) {
|
|
134
134
|
await fn(++runs);
|
package/utils/benchmark.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../../source/utils/benchmark.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"benchmark.js","sourceRoot":"","sources":["../../source/utils/benchmark.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAClC,uCAAiC;AACjC,yCAAmC;AAEnC,IAAI,wBAAwB,GAAG,CAAC,CAAC;AAIjC;;;;;GAKG;AACH,SAAgB,wBAAwB,CAAC,WAAmB,GAAG;IAC7D,MAAM,KAAK,GAAG,IAAI,gBAAK,CAAC,IAAI,CAAC,CAAC;IAC9B,MAAM,cAAc,GAAG,IAAA,eAAK,EAAC,QAAQ,GAAG,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,CAAC;IACpD,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,QAAQ,GAAG,cAAc,EAAE,EAAE,CAAC,CAAC;IAE7D,IAAI,UAAU,GAAG,CAAC,CAAC;IACnB,IAAI,WAAW,GAAG,IAAI,CAAC;IAEvB,IAAI,cAAc,GAAG,GAAS,EAAE;QAC9B,IAAI,WAAW,IAAI,KAAK,CAAC,YAAY,IAAI,cAAc,EAAE;YACvD,WAAW,GAAG,KAAK,CAAC;YACpB,UAAU,GAAG,CAAC,CAAC;YACf,cAAc,GAAG,cAAI,CAAC;YACtB,KAAK,CAAC,OAAO,EAAE,CAAC;SACjB;IACH,CAAC,CAAC;IAEF,KAAK,CAAC,KAAK,EAAE,CAAC;IACd,GAAG;QACD,cAAc,EAAE,CAAC;QACjB,UAAU,EAAE,CAAC;KACd,QACM,KAAK,CAAC,YAAY,GAAG,YAAY,IAAI,WAAW,EAAE;IACzD,KAAK,CAAC,IAAI,EAAE,CAAC;IAEb,wBAAwB,GAAG,KAAK,CAAC,YAAY,GAAG,UAAU,CAAC;AAC7D,CAAC;AA1BD,4DA0BC;AAED;;;;;GAKG;AACH,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