@tstdl/base 0.82.85 → 0.83.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{.eslintrc.js → .eslintrc.cjs} +134 -13
- package/api/client/client.d.ts +3 -3
- package/api/client/client.js +44 -49
- package/api/client/client.js.map +1 -1
- package/api/client/index.js +1 -17
- package/api/client/index.js.map +1 -1
- package/api/default-error-handlers.d.ts +2 -2
- package/api/default-error-handlers.js +9 -16
- package/api/default-error-handlers.js.map +1 -1
- package/api/index.js +3 -19
- package/api/index.js.map +1 -1
- package/api/response.js +33 -46
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +2 -2
- package/api/server/api-controller.js +12 -20
- package/api/server/api-controller.js.map +1 -1
- package/api/server/api-request-token.provider.js +4 -8
- package/api/server/api-request-token.provider.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +11 -15
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +8 -8
- package/api/server/gateway.js +56 -60
- package/api/server/gateway.js.map +1 -1
- package/api/server/index.js +5 -21
- package/api/server/index.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +3 -3
- package/api/server/middlewares/allowed-methods.middleware.js +7 -11
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +2 -2
- package/api/server/middlewares/catch-error.middleware.js +3 -7
- package/api/server/middlewares/catch-error.middleware.js.map +1 -1
- package/api/server/middlewares/cors.middleware.d.ts +1 -1
- package/api/server/middlewares/cors.middleware.js +18 -22
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/index.js +4 -20
- package/api/server/middlewares/index.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +1 -1
- package/api/server/middlewares/response-time.middleware.js +5 -9
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +1 -1
- package/api/server/module.js +14 -18
- package/api/server/module.js.map +1 -1
- package/api/server/tokens.js +2 -5
- package/api/server/tokens.js.map +1 -1
- package/api/types.d.ts +6 -6
- package/api/types.js +8 -15
- package/api/types.js.map +1 -1
- package/api/utils.js +11 -15
- package/api/utils.js.map +1 -1
- package/application/application.d.ts +5 -5
- package/application/application.js +27 -30
- package/application/application.js.map +1 -1
- package/application/index.js +1 -17
- package/application/index.js.map +1 -1
- package/async-iterator-symbol.js +1 -5
- package/async-iterator-symbol.js.map +1 -1
- package/authentication/authentication.api.d.ts +5 -5
- package/authentication/authentication.api.js +34 -39
- package/authentication/authentication.api.js.map +1 -1
- package/authentication/client/api.client.d.ts +3 -3
- package/authentication/client/api.client.js +14 -18
- package/authentication/client/api.client.js.map +1 -1
- package/authentication/client/authentication.service.d.ts +9 -9
- package/authentication/client/authentication.service.js +61 -64
- package/authentication/client/authentication.service.js.map +1 -1
- package/authentication/client/http-client.middleware.d.ts +1 -1
- package/authentication/client/http-client.middleware.js +12 -17
- package/authentication/client/http-client.middleware.js.map +1 -1
- package/authentication/client/index.js +5 -21
- package/authentication/client/index.js.map +1 -1
- package/authentication/client/module.d.ts +2 -2
- package/authentication/client/module.js +12 -16
- package/authentication/client/module.js.map +1 -1
- package/authentication/client/tokens.d.ts +1 -1
- package/authentication/client/tokens.js +5 -8
- package/authentication/client/tokens.js.map +1 -1
- package/authentication/errors/index.d.ts +1 -1
- package/authentication/errors/index.js +1 -17
- package/authentication/errors/index.js.map +1 -1
- package/authentication/errors/secret-requirements.error.d.ts +1 -1
- package/authentication/errors/secret-requirements.error.js +3 -6
- package/authentication/errors/secret-requirements.error.js.map +1 -1
- package/authentication/index.js +2 -18
- package/authentication/index.js.map +1 -1
- package/authentication/models/authentication-credentials.model.js +12 -17
- package/authentication/models/authentication-credentials.model.js.map +1 -1
- package/authentication/models/authentication-session.model.js +16 -21
- package/authentication/models/authentication-session.model.js.map +1 -1
- package/authentication/models/index.d.ts +2 -2
- package/authentication/models/index.js +6 -22
- package/authentication/models/index.js.map +1 -1
- package/authentication/models/init-secret-reset-data.model.js +4 -8
- package/authentication/models/init-secret-reset-data.model.js.map +1 -1
- package/authentication/models/secret-check-result.model.d.ts +1 -1
- package/authentication/models/secret-check-result.model.js +5 -8
- package/authentication/models/secret-check-result.model.js.map +1 -1
- package/authentication/models/token-payload-base.model.js +8 -12
- package/authentication/models/token-payload-base.model.js.map +1 -1
- package/authentication/models/token.model.d.ts +2 -2
- package/authentication/models/token.model.js +1 -2
- package/authentication/server/authentication-api-request-token.provider.d.ts +2 -2
- package/authentication/server/authentication-api-request-token.provider.js +9 -12
- package/authentication/server/authentication-api-request-token.provider.js.map +1 -1
- package/authentication/server/authentication-credentials.repository.js +1 -5
- package/authentication/server/authentication-credentials.repository.js.map +1 -1
- package/authentication/server/authentication-secret-requirements.validator.d.ts +1 -1
- package/authentication/server/authentication-secret-requirements.validator.js +13 -17
- package/authentication/server/authentication-secret-requirements.validator.js.map +1 -1
- package/authentication/server/authentication-secret-reset.handler.d.ts +1 -1
- package/authentication/server/authentication-secret-reset.handler.js +1 -5
- package/authentication/server/authentication-secret-reset.handler.js.map +1 -1
- package/authentication/server/authentication-session.repository.d.ts +1 -1
- package/authentication/server/authentication-session.repository.js +1 -5
- package/authentication/server/authentication-session.repository.js.map +1 -1
- package/authentication/server/authentication-subject.resolver.js +1 -5
- package/authentication/server/authentication-subject.resolver.js.map +1 -1
- package/authentication/server/authentication-token-payload.provider.d.ts +1 -1
- package/authentication/server/authentication-token-payload.provider.js +3 -7
- package/authentication/server/authentication-token-payload.provider.js.map +1 -1
- package/authentication/server/authentication.api-controller.d.ts +2 -2
- package/authentication/server/authentication.api-controller.js +17 -20
- package/authentication/server/authentication.api-controller.js.map +1 -1
- package/authentication/server/authentication.service.d.ts +3 -3
- package/authentication/server/authentication.service.js +65 -69
- package/authentication/server/authentication.service.js.map +1 -1
- package/authentication/server/helper.d.ts +2 -2
- package/authentication/server/helper.js +33 -42
- package/authentication/server/helper.js.map +1 -1
- package/authentication/server/index.d.ts +2 -2
- package/authentication/server/index.js +11 -27
- package/authentication/server/index.js.map +1 -1
- package/authentication/server/module.d.ts +1 -1
- package/authentication/server/module.js +17 -21
- package/authentication/server/module.js.map +1 -1
- package/authentication/server/mongo/index.js +2 -18
- package/authentication/server/mongo/index.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-credentials.repository.d.ts +6 -6
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js +18 -23
- package/authentication/server/mongo/mongo-authentication-credentials.repository.js.map +1 -1
- package/authentication/server/mongo/mongo-authentication-session.repository.d.ts +5 -5
- package/authentication/server/mongo/mongo-authentication-session.repository.js +14 -19
- package/authentication/server/mongo/mongo-authentication-session.repository.js.map +1 -1
- package/collections/awaitable/awaitable-list.js +8 -12
- package/collections/awaitable/awaitable-list.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +9 -13
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +5 -9
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/awaitable/index.js +3 -19
- package/collections/awaitable/index.js.map +1 -1
- package/collections/collection.js +1 -2
- package/collections/index.js +6 -22
- package/collections/index.js.map +1 -1
- package/collections/keyed-set.js +5 -9
- package/collections/keyed-set.js.map +1 -1
- package/collections/list.js +1 -2
- package/collections/observable/index.js +8 -24
- package/collections/observable/index.js.map +1 -1
- package/collections/observable/observable-array.js +2 -6
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.js +17 -21
- package/collections/observable/observable-collection-base.js.map +1 -1
- package/collections/observable/observable-collection.js +1 -2
- package/collections/observable/observable-list-base.js +9 -13
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.js +1 -2
- package/collections/observable/observable-map.js +3 -7
- package/collections/observable/observable-map.js.map +1 -1
- package/collections/observable/observable-set.js +2 -6
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +1 -1
- package/collections/observable/observable-sorted-array-list.js +21 -25
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +1 -1
- package/collections/sorted-array-list.js +17 -21
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-list.js +1 -2
- package/collections/sorted-map.js +8 -12
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +1 -1
- package/container/container.js +113 -117
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +2 -2
- package/container/decorators.js +31 -45
- package/container/decorators.js.map +1 -1
- package/container/index.js +10 -26
- package/container/index.js.map +1 -1
- package/container/interfaces.js +2 -4
- package/container/interfaces.js.map +1 -1
- package/container/provider.d.ts +1 -1
- package/container/provider.js +13 -24
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +1 -1
- package/container/resolve-chain.js +9 -13
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +1 -1
- package/container/resolve.error.js +4 -8
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +1 -1
- package/container/token.js +5 -10
- package/container/token.js.map +1 -1
- package/container/type-info.js +1 -2
- package/container/types.d.ts +1 -1
- package/container/types.js +1 -2
- package/container/utils.d.ts +1 -1
- package/container/utils.js +6 -11
- package/container/utils.js.map +1 -1
- package/cookie/cookie.js +17 -22
- package/cookie/cookie.js.map +1 -1
- package/cookie/index.js +1 -17
- package/cookie/index.js.map +1 -1
- package/core.js +20 -26
- package/core.js.map +1 -1
- package/data-structures/array-list.d.ts +1 -1
- package/data-structures/array-list.js +2 -6
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +1 -1
- package/data-structures/circular-buffer.js +20 -24
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +1 -1
- package/data-structures/collection.js +12 -16
- package/data-structures/collection.js.map +1 -1
- package/data-structures/index-out-of-bounds.error.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.js +5 -9
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/index.js +12 -28
- package/data-structures/index.js.map +1 -1
- package/data-structures/iterable-weak-map.js +15 -19
- package/data-structures/iterable-weak-map.js.map +1 -1
- package/data-structures/linked-list.d.ts +3 -3
- package/data-structures/linked-list.js +25 -28
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +1 -1
- package/data-structures/list.js +10 -14
- package/data-structures/list.js.map +1 -1
- package/data-structures/map.js +2 -6
- package/data-structures/map.js.map +1 -1
- package/data-structures/multi-key-map.js +12 -16
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/set.js +2 -6
- package/data-structures/set.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +4 -4
- package/data-structures/sorted-array-list.js +20 -23
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.js +13 -17
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -1
- package/database/entity-repository.js +1 -6
- package/database/entity-repository.js.map +1 -1
- package/database/entity.js +1 -2
- package/database/id.js +4 -8
- package/database/id.js.map +1 -1
- package/database/index.js +6 -22
- package/database/index.js.map +1 -1
- package/database/module.js +6 -10
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +4 -4
- package/database/mongo/classes.js +11 -17
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/index.js +10 -26
- package/database/mongo/index.js.map +1 -1
- package/database/mongo/model/document.d.ts +1 -1
- package/database/mongo/model/document.js +15 -26
- package/database/mongo/model/document.js.map +1 -1
- package/database/mongo/model/index.js +1 -17
- package/database/mongo/model/index.js.map +1 -1
- package/database/mongo/module.js +25 -29
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +2 -2
- package/database/mongo/mongo-base.repository.js +43 -42
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +1 -1
- package/database/mongo/mongo-bulk.js +17 -21
- package/database/mongo/mongo-bulk.js.map +1 -1
- package/database/mongo/mongo-entity-repository.d.ts +5 -5
- package/database/mongo/mongo-entity-repository.js +30 -37
- package/database/mongo/mongo-entity-repository.js.map +1 -1
- package/database/mongo/operations.d.ts +1 -1
- package/database/mongo/operations.js +6 -15
- package/database/mongo/operations.js.map +1 -1
- package/database/mongo/query-converter.d.ts +2 -2
- package/database/mongo/query-converter.js +15 -20
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity-repository.d.ts +2 -2
- package/database/mongo/simple-entity-repository.js +3 -7
- package/database/mongo/simple-entity-repository.js.map +1 -1
- package/database/mongo/types.d.ts +2 -2
- package/database/mongo/types.js +1 -5
- package/database/mongo/types.js.map +1 -1
- package/database/query.d.ts +2 -2
- package/database/query.js +7 -10
- package/database/query.js.map +1 -1
- package/database/utils.js +1 -5
- package/database/utils.js.map +1 -1
- package/disposable/async-disposer.js +21 -25
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +7 -12
- package/disposable/disposable.js.map +1 -1
- package/disposable/index.js +3 -19
- package/disposable/index.js.map +1 -1
- package/disposable/using.js +5 -10
- package/disposable/using.js.map +1 -1
- package/distributed-loop/controller.js +1 -2
- package/distributed-loop/distributed-loop.d.ts +5 -5
- package/distributed-loop/distributed-loop.js +15 -19
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/index.js +3 -19
- package/distributed-loop/index.js.map +1 -1
- package/distributed-loop/provider.d.ts +1 -1
- package/distributed-loop/provider.js +7 -10
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +3 -6
- package/enumerable/async-enumerable.js +67 -76
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable-methods.js +1 -2
- package/enumerable/enumerable.d.ts +1 -5
- package/enumerable/enumerable.js +45 -54
- package/enumerable/enumerable.js.map +1 -1
- package/enumerable/index.js +2 -18
- package/enumerable/index.js.map +1 -1
- package/environment.d.ts +2 -0
- package/environment.js +18 -16
- package/environment.js.map +1 -1
- package/error/api.error.js +3 -6
- package/error/api.error.js.map +1 -1
- package/error/assertion.error.js +3 -6
- package/error/assertion.error.js.map +1 -1
- package/error/bad-request.error.js +3 -6
- package/error/bad-request.error.js.map +1 -1
- package/error/custom.error.js +1 -5
- package/error/custom.error.js.map +1 -1
- package/error/details.error.js +3 -6
- package/error/details.error.js.map +1 -1
- package/error/forbidden.error.js +3 -6
- package/error/forbidden.error.js.map +1 -1
- package/error/index.js +15 -31
- package/error/index.js.map +1 -1
- package/error/invalid-token.error.js +3 -6
- package/error/invalid-token.error.js.map +1 -1
- package/error/max-bytes-exceeded.error.js +3 -6
- package/error/max-bytes-exceeded.error.js.map +1 -1
- package/error/method-not-allowed.error.js +3 -6
- package/error/method-not-allowed.error.js.map +1 -1
- package/error/multi.error.js +3 -6
- package/error/multi.error.js.map +1 -1
- package/error/not-found.error.js +3 -6
- package/error/not-found.error.js.map +1 -1
- package/error/not-implemented.error.js +3 -6
- package/error/not-implemented.error.js.map +1 -1
- package/error/not-supported.error.d.ts +1 -1
- package/error/not-supported.error.js +5 -8
- package/error/not-supported.error.js.map +1 -1
- package/error/unauthorized.error.js +3 -6
- package/error/unauthorized.error.js.map +1 -1
- package/error/unsupported-media-type.error.js +3 -6
- package/error/unsupported-media-type.error.js.map +1 -1
- package/examples/api/authentication.js +32 -34
- package/examples/api/authentication.js.map +1 -1
- package/examples/api/basic-overview.js +32 -34
- package/examples/api/basic-overview.js.map +1 -1
- package/examples/api/custom-authentication.js +39 -41
- package/examples/api/custom-authentication.js.map +1 -1
- package/examples/api/streaming.js +38 -40
- package/examples/api/streaming.js.map +1 -1
- package/examples/http/client.js +5 -7
- package/examples/http/client.js.map +1 -1
- package/examples/mail/basic.js +25 -27
- package/examples/mail/basic.js.map +1 -1
- package/examples/mail/templates/hello-name.js +10 -12
- package/examples/mail/templates/hello-name.js.map +1 -1
- package/examples/pdf/basic.js +19 -21
- package/examples/pdf/basic.js.map +1 -1
- package/examples/pdf/templates/hello-name.js +11 -13
- package/examples/pdf/templates/hello-name.js.map +1 -1
- package/examples/reflection/basic.d.ts +1 -1
- package/examples/reflection/basic.js +15 -18
- package/examples/reflection/basic.js.map +1 -1
- package/examples/template/basic.js +19 -21
- package/examples/template/basic.js.map +1 -1
- package/examples/template/templates/hello-jsx.d.ts +1 -1
- package/examples/template/templates/hello-jsx.js +6 -9
- package/examples/template/templates/hello-jsx.js.map +1 -1
- package/examples/template/templates/hello-name.d.ts +1 -1
- package/examples/template/templates/hello-name.js +7 -9
- package/examples/template/templates/hello-name.js.map +1 -1
- package/global-this.js +1 -5
- package/global-this.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.js +32 -36
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/http-client-options.js +1 -5
- package/http/client/http-client-options.js.map +1 -1
- package/http/client/http-client-request.d.ts +4 -4
- package/http/client/http-client-request.js +24 -28
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +1 -1
- package/http/client/http-client-response.js +5 -9
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.adapter.js +1 -5
- package/http/client/http-client.adapter.js.map +1 -1
- package/http/client/http-client.d.ts +4 -4
- package/http/client/http-client.js +61 -65
- package/http/client/http-client.js.map +1 -1
- package/http/client/index.js +6 -22
- package/http/client/index.js.map +1 -1
- package/http/client/module.d.ts +1 -1
- package/http/client/module.js +8 -12
- package/http/client/module.js.map +1 -1
- package/http/cookie-parser.js +7 -11
- package/http/cookie-parser.js.map +1 -1
- package/http/http-body.d.ts +2 -2
- package/http/http-body.js +12 -16
- package/http/http-body.js.map +1 -1
- package/http/http-form.js +2 -6
- package/http/http-form.js.map +1 -1
- package/http/http-headers.js +15 -19
- package/http/http-headers.js.map +1 -1
- package/http/http-query.js +2 -6
- package/http/http-query.js.map +1 -1
- package/http/http-url-parameters.js +2 -6
- package/http/http-url-parameters.js.map +1 -1
- package/http/http-value-map.d.ts +1 -1
- package/http/http-value-map.js +20 -24
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +2 -2
- package/http/http.error.js +14 -17
- package/http/http.error.js.map +1 -1
- package/http/index.js +11 -27
- package/http/index.js.map +1 -1
- package/http/server/http-server-request.d.ts +1 -1
- package/http/server/http-server-request.js +5 -9
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +3 -3
- package/http/server/http-server-response.js +9 -13
- package/http/server/http-server-response.js.map +1 -1
- package/http/server/http-server.d.ts +3 -3
- package/http/server/http-server.js +2 -6
- package/http/server/http-server.js.map +1 -1
- package/http/server/index.js +3 -19
- package/http/server/index.js.map +1 -1
- package/http/server/node/index.js +2 -18
- package/http/server/node/index.js.map +1 -1
- package/http/server/node/module.js +5 -9
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +6 -6
- package/http/server/node/node-http-server.js +50 -53
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +1 -1
- package/http/types.js +8 -15
- package/http/types.js.map +1 -1
- package/http/utils.d.ts +3 -3
- package/http/utils.js +39 -49
- package/http/utils.js.map +1 -1
- package/image-service/image-service.js +21 -26
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +2 -2
- package/image-service/imgproxy/imgproxy-image-service.js +31 -36
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/image-service/imgproxy/index.js +1 -17
- package/image-service/imgproxy/index.js.map +1 -1
- package/image-service/index.js +1 -17
- package/image-service/index.js.map +1 -1
- package/import.d.ts +1 -0
- package/import.js +4 -0
- package/import.js.map +1 -0
- package/index.js +1 -17
- package/index.js.map +1 -1
- package/interfaces.js +1 -2
- package/json-path/index.js +1 -17
- package/json-path/index.js.map +1 -1
- package/json-path/json-path.js +19 -26
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/index.js +2 -18
- package/key-value-store/index.js.map +1 -1
- package/key-value-store/key-value-store.provider.js +1 -5
- package/key-value-store/key-value-store.provider.js.map +1 -1
- package/key-value-store/key-value.store.d.ts +2 -2
- package/key-value-store/key-value.store.js +2 -7
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/index.d.ts +1 -0
- package/key-value-store/mongo/index.js +6 -21
- package/key-value-store/mongo/index.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +1 -5
- package/key-value-store/mongo/module.js +10 -16
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value-store.provider.js +7 -10
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +1 -1
- package/key-value-store/mongo/mongo-key-value.model.js +1 -2
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +5 -5
- package/key-value-store/mongo/mongo-key-value.repository.js +11 -15
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value.store.js +18 -21
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/key-value-store/mongo/tokens.d.ts +3 -0
- package/key-value-store/mongo/tokens.js +3 -0
- package/key-value-store/mongo/tokens.js.map +1 -0
- package/lock/index.js +2 -18
- package/lock/index.js.map +1 -1
- package/lock/lock.d.ts +1 -2
- package/lock/lock.js +1 -7
- package/lock/lock.js.map +1 -1
- package/lock/mongo/index.js +5 -21
- package/lock/mongo/index.js.map +1 -1
- package/lock/mongo/lock.d.ts +3 -3
- package/lock/mongo/lock.js +29 -32
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/model.js +1 -2
- package/lock/mongo/module.d.ts +1 -1
- package/lock/mongo/module.js +10 -14
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/mongo-lock-repository.d.ts +6 -6
- package/lock/mongo/mongo-lock-repository.js +16 -20
- package/lock/mongo/mongo-lock-repository.js.map +1 -1
- package/lock/mongo/provider.d.ts +3 -3
- package/lock/mongo/provider.js +16 -19
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +1 -2
- package/lock/provider.js +1 -7
- package/lock/provider.js.map +1 -1
- package/lock/web/index.js +3 -19
- package/lock/web/index.js.map +1 -1
- package/lock/web/module.js +8 -12
- package/lock/web/module.js.map +1 -1
- package/lock/web/web-lock.js +19 -22
- package/lock/web/web-lock.js.map +1 -1
- package/lock/web/web-lock.provider.d.ts +2 -2
- package/lock/web/web-lock.provider.js +8 -11
- package/lock/web/web-lock.provider.js.map +1 -1
- package/logger/console/index.js +1 -17
- package/logger/console/index.js.map +1 -1
- package/logger/console/logger.js +19 -22
- package/logger/console/logger.js.map +1 -1
- package/logger/index.js +2 -18
- package/logger/index.js.map +1 -1
- package/logger/level.js +2 -5
- package/logger/level.js.map +1 -1
- package/logger/logger.d.ts +3 -3
- package/logger/logger.js +12 -18
- package/logger/logger.js.map +1 -1
- package/logger/noop/index.js +1 -17
- package/logger/noop/index.js.map +1 -1
- package/logger/noop/logger.js +5 -9
- package/logger/noop/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.js +13 -17
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/index.js +5 -21
- package/mail/index.js.map +1 -1
- package/mail/mail-log.repository.d.ts +1 -1
- package/mail/mail-log.repository.js +2 -6
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail.client.d.ts +1 -2
- package/mail/mail.client.js +12 -20
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +5 -6
- package/mail/mail.service.js +25 -28
- package/mail/mail.service.js.map +1 -1
- package/mail/models/index.js +6 -22
- package/mail/models/index.js.map +1 -1
- package/mail/models/mail-address.model.js +1 -2
- package/mail/models/mail-content.model.js +1 -2
- package/mail/models/mail-data.model.d.ts +1 -1
- package/mail/models/mail-data.model.js +1 -2
- package/mail/models/mail-log.model.d.ts +1 -1
- package/mail/models/mail-log.model.js +1 -2
- package/mail/models/mail-send-result.model.js +1 -2
- package/mail/models/mail-template.model.d.ts +1 -1
- package/mail/models/mail-template.model.js +1 -5
- package/mail/models/mail-template.model.js.map +1 -1
- package/mail/module.d.ts +1 -1
- package/mail/module.js +14 -18
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +6 -6
- package/mail/repositories/mongo-mail-log.repository.js +13 -18
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/tokens.js +2 -5
- package/mail/tokens.js.map +1 -1
- package/memory/finalization.js +8 -13
- package/memory/finalization.js.map +1 -1
- package/memory/index.d.ts +1 -1
- package/memory/index.js +2 -18
- package/memory/index.js.map +1 -1
- package/memory/observable-finalization-registry.js +3 -7
- package/memory/observable-finalization-registry.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js +8 -11
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +14 -17
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/broadcast-channel/index.js +3 -19
- package/message-bus/broadcast-channel/index.js.map +1 -1
- package/message-bus/broadcast-channel/module.js +8 -12
- package/message-bus/broadcast-channel/module.js.map +1 -1
- package/message-bus/index.js +3 -19
- package/message-bus/index.js.map +1 -1
- package/message-bus/local/index.js +3 -19
- package/message-bus/local/index.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +1 -1
- package/message-bus/local/local-message-bus-provider.js +16 -19
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +1 -1
- package/message-bus/local/local-message-bus.js +13 -16
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/module.js +8 -12
- package/message-bus/local/module.js.map +1 -1
- package/message-bus/local/types.js +1 -2
- package/message-bus/message-bus-base.d.ts +1 -1
- package/message-bus/message-bus-base.js +10 -14
- package/message-bus/message-bus-base.js.map +1 -1
- package/message-bus/message-bus-provider.js +1 -5
- package/message-bus/message-bus-provider.js.map +1 -1
- package/message-bus/message-bus.d.ts +2 -2
- package/message-bus/message-bus.js +3 -9
- package/message-bus/message-bus.js.map +1 -1
- package/migration/index.js +3 -19
- package/migration/index.js.map +1 -1
- package/migration/migration-state-repository.d.ts +1 -1
- package/migration/migration-state-repository.js +2 -6
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +1 -1
- package/migration/migration-state.js +1 -2
- package/migration/migrator.d.ts +2 -2
- package/migration/migrator.js +23 -26
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/index.js +2 -18
- package/migration/mongo/index.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +4 -4
- package/migration/mongo/migration-state-repository.js +12 -16
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +2 -2
- package/migration/mongo/module.js +7 -11
- package/migration/mongo/module.js.map +1 -1
- package/module/index.js +4 -20
- package/module/index.js.map +1 -1
- package/module/module-base.d.ts +3 -3
- package/module/module-base.js +10 -14
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +3 -3
- package/module/module-metric-reporter.js +7 -11
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +1 -1
- package/module/module.js +4 -7
- package/module/module.js.map +1 -1
- package/module/modules/function.module.d.ts +1 -1
- package/module/modules/function.module.js +2 -6
- package/module/modules/function.module.js.map +1 -1
- package/module/modules/index.js +2 -18
- package/module/modules/index.js.map +1 -1
- package/module/modules/web-server.module.d.ts +7 -7
- package/module/modules/web-server.module.js +20 -25
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +1 -1
- package/module/utils.js +2 -7
- package/module/utils.js.map +1 -1
- package/notification/api.d.ts +1 -1
- package/notification/api.js +10 -13
- package/notification/api.js.map +1 -1
- package/notification/models/index.js +2 -18
- package/notification/models/index.js.map +1 -1
- package/notification/models/notification-channel-job.model.js +1 -2
- package/notification/models/notification.model.js +15 -19
- package/notification/models/notification.model.js.map +1 -1
- package/notification/module.js +3 -7
- package/notification/module.js.map +1 -1
- package/notification/notification-channel.service.js +1 -5
- package/notification/notification-channel.service.js.map +1 -1
- package/notification/notification.repository.js +1 -5
- package/notification/notification.repository.js.map +1 -1
- package/notification/notification.service.js +7 -10
- package/notification/notification.service.js.map +1 -1
- package/object-storage/index.js +3 -19
- package/object-storage/index.js.map +1 -1
- package/object-storage/object-storage-provider.js +1 -5
- package/object-storage/object-storage-provider.js.map +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +1 -7
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.d.ts +1 -1
- package/object-storage/object.js +1 -5
- package/object-storage/object.js.map +1 -1
- package/object-storage/s3/index.js +3 -19
- package/object-storage/s3/index.js.map +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +1 -1
- package/object-storage/s3/s3.object-storage-provider.js +19 -24
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +2 -2
- package/object-storage/s3/s3.object-storage.js +26 -29
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +2 -2
- package/object-storage/s3/s3.object.js +5 -9
- package/object-storage/s3/s3.object.js.map +1 -1
- package/openid-connect/cached-oidc-configuration.service.d.ts +1 -1
- package/openid-connect/cached-oidc-configuration.service.js +14 -17
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.js +11 -27
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +6 -6
- package/openid-connect/mongo-oidc-state.repository.js +13 -18
- package/openid-connect/mongo-oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc-configuration.service.d.ts +1 -1
- package/openid-connect/oidc-configuration.service.js +13 -16
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.model.js +1 -2
- package/openid-connect/oidc-state.repository.d.ts +1 -1
- package/openid-connect/oidc-state.repository.js +2 -6
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service-model.js +1 -2
- package/openid-connect/oidc.service.d.ts +2 -2
- package/openid-connect/oidc.service.js +35 -38
- package/openid-connect/oidc.service.js.map +1 -1
- package/package.json +13 -11
- package/password/have-i-been-pwned.js +3 -7
- package/password/have-i-been-pwned.js.map +1 -1
- package/password/index.d.ts +4 -4
- package/password/index.js +4 -20
- package/password/index.js.map +1 -1
- package/password/password-check-result.model.js +10 -12
- package/password/password-check-result.model.js.map +1 -1
- package/password/password-check.d.ts +1 -1
- package/password/password-check.js +15 -19
- package/password/password-check.js.map +1 -1
- package/password/password-check.localization.d.ts +7 -7
- package/password/password-check.localization.js +4 -7
- package/password/password-check.localization.js.map +1 -1
- package/pdf/index.js +1 -17
- package/pdf/index.js.map +1 -1
- package/pdf/pdf.service.d.ts +8 -8
- package/pdf/pdf.service.js +60 -67
- package/pdf/pdf.service.js.map +1 -1
- package/pool/index.js +1 -17
- package/pool/index.js.map +1 -1
- package/pool/pool.d.ts +3 -3
- package/pool/pool.js +13 -17
- package/pool/pool.js.map +1 -1
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +12 -19
- package/process-shutdown.js.map +1 -1
- package/promise/cancelable-promise.js +1 -5
- package/promise/cancelable-promise.js.map +1 -1
- package/promise/deferred-promise.js +14 -11
- package/promise/deferred-promise.js.map +1 -1
- package/promise/index.js +3 -19
- package/promise/index.js.map +1 -1
- package/promise/lazy-promise.js +5 -8
- package/promise/lazy-promise.js.map +1 -1
- package/queue/enqueue-batch.js +1 -5
- package/queue/enqueue-batch.js.map +1 -1
- package/queue/index.js +3 -19
- package/queue/index.js.map +1 -1
- package/queue/mongo/index.js +4 -20
- package/queue/mongo/index.js.map +1 -1
- package/queue/mongo/job.d.ts +3 -3
- package/queue/mongo/job.js +1 -2
- package/queue/mongo/mongo-job.repository.d.ts +6 -6
- package/queue/mongo/mongo-job.repository.js +18 -22
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +5 -5
- package/queue/mongo/queue.js +48 -51
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +7 -7
- package/queue/mongo/queue.provider.js +16 -21
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/provider.js +1 -5
- package/queue/provider.js.map +1 -1
- package/queue/queue.d.ts +2 -2
- package/queue/queue.js +10 -15
- package/queue/queue.js.map +1 -1
- package/random/index.js +1 -17
- package/random/index.js.map +1 -1
- package/random/number/index.js +3 -19
- package/random/number/index.js.map +1 -1
- package/random/number/mulberry32.js +3 -8
- package/random/number/mulberry32.js.map +1 -1
- package/random/number/seeded.js +1 -5
- package/random/number/seeded.js.map +1 -1
- package/random/number/sfc32.js +3 -8
- package/random/number/sfc32.js.map +1 -1
- package/reflection/decorator-data.js +12 -16
- package/reflection/decorator-data.js.map +1 -1
- package/reflection/decorators.d.ts +3 -2
- package/reflection/decorators.js +22 -34
- package/reflection/decorators.js.map +1 -1
- package/reflection/index.js +5 -21
- package/reflection/index.js.map +1 -1
- package/reflection/reflection-data-map.d.ts +1 -1
- package/reflection/reflection-data-map.js +7 -11
- package/reflection/reflection-data-map.js.map +1 -1
- package/reflection/registry.d.ts +1 -1
- package/reflection/registry.js +29 -33
- package/reflection/registry.js.map +1 -1
- package/reflection/types.d.ts +3 -3
- package/reflection/types.js +1 -2
- package/reflection/utils.d.ts +3 -3
- package/reflection/utils.js +31 -48
- package/reflection/utils.js.map +1 -1
- package/require.js +5 -7
- package/require.js.map +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.d.ts +2 -2
- package/rpc/endpoints/message-port.rpc-endpoint.js +7 -11
- package/rpc/endpoints/message-port.rpc-endpoint.js.map +1 -1
- package/rpc/index.js +4 -20
- package/rpc/index.js.map +1 -1
- package/rpc/model.d.ts +2 -2
- package/rpc/model.js +3 -7
- package/rpc/model.js.map +1 -1
- package/rpc/rpc-endpoint.js +4 -8
- package/rpc/rpc-endpoint.js.map +1 -1
- package/rpc/rpc-error.d.ts +1 -1
- package/rpc/rpc-error.js +9 -13
- package/rpc/rpc-error.js.map +1 -1
- package/rpc/rpc.d.ts +1 -1
- package/rpc/rpc.js +38 -41
- package/rpc/rpc.js.map +1 -1
- package/rxjs/cast.js +2 -7
- package/rxjs/cast.js.map +1 -1
- package/rxjs/index.js +12 -28
- package/rxjs/index.js.map +1 -1
- package/rxjs/intersection-observer.js +9 -13
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/media-query.js +3 -7
- package/rxjs/media-query.js.map +1 -1
- package/rxjs/mutation-observer.js +9 -13
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/noop.js +2 -7
- package/rxjs/noop.js.map +1 -1
- package/rxjs/performance-observer.js +9 -13
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.js +9 -13
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +12 -17
- package/rxjs/retry-backoff.js.map +1 -1
- package/rxjs/slow-array.js +5 -10
- package/rxjs/slow-array.js.map +1 -1
- package/rxjs/teardown.js +3 -7
- package/rxjs/teardown.js.map +1 -1
- package/rxjs/timing.js +12 -15
- package/rxjs/timing.js.map +1 -1
- package/rxjs/touch.js +7 -11
- package/rxjs/touch.js.map +1 -1
- package/schema/array-constraints/index.js +2 -18
- package/schema/array-constraints/index.js.map +1 -1
- package/schema/array-constraints/maximum-length.d.ts +2 -2
- package/schema/array-constraints/maximum-length.js +7 -12
- package/schema/array-constraints/maximum-length.js.map +1 -1
- package/schema/array-constraints/minimum-length.d.ts +2 -2
- package/schema/array-constraints/minimum-length.js +7 -12
- package/schema/array-constraints/minimum-length.js.map +1 -1
- package/schema/coercers/boolean.coercer.d.ts +1 -1
- package/schema/coercers/boolean.coercer.js +7 -11
- package/schema/coercers/boolean.coercer.js.map +1 -1
- package/schema/coercers/date.coercer.d.ts +1 -1
- package/schema/coercers/date.coercer.js +7 -11
- package/schema/coercers/date.coercer.js.map +1 -1
- package/schema/coercers/index.js +6 -22
- package/schema/coercers/index.js.map +1 -1
- package/schema/coercers/number.coercer.d.ts +1 -1
- package/schema/coercers/number.coercer.js +5 -9
- package/schema/coercers/number.coercer.js.map +1 -1
- package/schema/coercers/regexp.coercer.d.ts +1 -1
- package/schema/coercers/regexp.coercer.js +5 -9
- package/schema/coercers/regexp.coercer.js.map +1 -1
- package/schema/coercers/string.coercer.d.ts +1 -1
- package/schema/coercers/string.coercer.js +7 -11
- package/schema/coercers/string.coercer.js.map +1 -1
- package/schema/coercers/uint8-array.coercer.d.ts +1 -1
- package/schema/coercers/uint8-array.coercer.js +10 -14
- package/schema/coercers/uint8-array.coercer.js.map +1 -1
- package/schema/constraints/enumeration.d.ts +2 -2
- package/schema/constraints/enumeration.js +11 -15
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +2 -2
- package/schema/constraints/generic.js +6 -10
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/index.js +12 -28
- package/schema/constraints/index.js.map +1 -1
- package/schema/constraints/integer.d.ts +2 -2
- package/schema/constraints/integer.js +9 -14
- package/schema/constraints/integer.js.map +1 -1
- package/schema/constraints/length.d.ts +1 -1
- package/schema/constraints/length.js +10 -14
- package/schema/constraints/length.js.map +1 -1
- package/schema/constraints/literal.d.ts +1 -1
- package/schema/constraints/literal.js +9 -13
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +2 -2
- package/schema/constraints/maximum-date.js +11 -16
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +2 -2
- package/schema/constraints/maximum-length.js +9 -14
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +2 -2
- package/schema/constraints/maximum.js +8 -13
- package/schema/constraints/maximum.js.map +1 -1
- package/schema/constraints/minimum-date.d.ts +2 -2
- package/schema/constraints/minimum-date.js +11 -16
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +2 -2
- package/schema/constraints/minimum-length.js +9 -14
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +2 -2
- package/schema/constraints/minimum.js +8 -13
- package/schema/constraints/minimum.js.map +1 -1
- package/schema/constraints/pattern.d.ts +2 -2
- package/schema/constraints/pattern.js +8 -13
- package/schema/constraints/pattern.js.map +1 -1
- package/schema/decorators/class.d.ts +1 -1
- package/schema/decorators/class.js +3 -7
- package/schema/decorators/class.js.map +1 -1
- package/schema/decorators/coerce.d.ts +1 -1
- package/schema/decorators/coerce.js +3 -7
- package/schema/decorators/coerce.js.map +1 -1
- package/schema/decorators/constraint.d.ts +2 -2
- package/schema/decorators/constraint.js +5 -9
- package/schema/decorators/constraint.js.map +1 -1
- package/schema/decorators/index.js +6 -22
- package/schema/decorators/index.js.map +1 -1
- package/schema/decorators/property.d.ts +2 -2
- package/schema/decorators/property.js +12 -16
- package/schema/decorators/property.js.map +1 -1
- package/schema/decorators/types.d.ts +1 -1
- package/schema/decorators/types.js +1 -2
- package/schema/decorators/utils.d.ts +2 -2
- package/schema/decorators/utils.js +21 -31
- package/schema/decorators/utils.js.map +1 -1
- package/schema/index.js +10 -26
- package/schema/index.js.map +1 -1
- package/schema/schema.d.ts +1 -1
- package/schema/schema.error.d.ts +5 -5
- package/schema/schema.error.js +19 -22
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +68 -72
- package/schema/schema.js.map +1 -1
- package/schema/schemas/any.d.ts +1 -1
- package/schema/schemas/any.js +6 -11
- package/schema/schemas/any.js.map +1 -1
- package/schema/schemas/array.d.ts +2 -2
- package/schema/schemas/array.js +14 -19
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/assign.js +7 -11
- package/schema/schemas/assign.js.map +1 -1
- package/schema/schemas/boolean.d.ts +1 -1
- package/schema/schemas/boolean.js +6 -11
- package/schema/schemas/boolean.js.map +1 -1
- package/schema/schemas/constraint.d.ts +1 -1
- package/schema/schemas/constraint.js +5 -9
- package/schema/schemas/constraint.js.map +1 -1
- package/schema/schemas/date.d.ts +1 -1
- package/schema/schemas/date.js +14 -19
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +2 -2
- package/schema/schemas/defaulted.js +7 -12
- package/schema/schemas/defaulted.js.map +1 -1
- package/schema/schemas/enumeration.d.ts +2 -2
- package/schema/schemas/enumeration.js +10 -15
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/index.js +26 -42
- package/schema/schemas/index.js.map +1 -1
- package/schema/schemas/instance.js +3 -7
- package/schema/schemas/instance.js.map +1 -1
- package/schema/schemas/literal.d.ts +1 -1
- package/schema/schemas/literal.js +11 -16
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +1 -1
- package/schema/schemas/nullable.js +6 -11
- package/schema/schemas/nullable.js.map +1 -1
- package/schema/schemas/number.d.ts +1 -1
- package/schema/schemas/number.js +17 -22
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +1 -1
- package/schema/schemas/object.js +5 -10
- package/schema/schemas/object.js.map +1 -1
- package/schema/schemas/omit.d.ts +2 -3
- package/schema/schemas/omit.js +9 -13
- package/schema/schemas/omit.js.map +1 -1
- package/schema/schemas/one-or-many.d.ts +2 -2
- package/schema/schemas/one-or-many.js +10 -15
- package/schema/schemas/one-or-many.js.map +1 -1
- package/schema/schemas/optional.d.ts +2 -2
- package/schema/schemas/optional.js +6 -11
- package/schema/schemas/optional.js.map +1 -1
- package/schema/schemas/partial.d.ts +1 -1
- package/schema/schemas/partial.js +12 -16
- package/schema/schemas/partial.js.map +1 -1
- package/schema/schemas/pick.d.ts +2 -3
- package/schema/schemas/pick.js +9 -13
- package/schema/schemas/pick.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +1 -1
- package/schema/schemas/readable-stream.js +6 -11
- package/schema/schemas/readable-stream.js.map +1 -1
- package/schema/schemas/record.d.ts +1 -1
- package/schema/schemas/record.js +3 -7
- package/schema/schemas/record.js.map +1 -1
- package/schema/schemas/regexp.d.ts +1 -1
- package/schema/schemas/regexp.js +6 -11
- package/schema/schemas/regexp.js.map +1 -1
- package/schema/schemas/string.d.ts +1 -1
- package/schema/schemas/string.js +24 -29
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +1 -1
- package/schema/schemas/transform.js +5 -9
- package/schema/schemas/transform.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +1 -1
- package/schema/schemas/uint8-array.js +18 -23
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +1 -1
- package/schema/schemas/union.js +10 -15
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +1 -1
- package/schema/schemas/unknown.js +6 -11
- package/schema/schemas/unknown.js.map +1 -1
- package/schema/transformers/generic.d.ts +2 -2
- package/schema/transformers/generic.js +5 -10
- package/schema/transformers/generic.js.map +1 -1
- package/schema/transformers/index.js +4 -20
- package/schema/transformers/index.js.map +1 -1
- package/schema/transformers/lowercase.d.ts +1 -1
- package/schema/transformers/lowercase.js +5 -10
- package/schema/transformers/lowercase.js.map +1 -1
- package/schema/transformers/trim.d.ts +1 -1
- package/schema/transformers/trim.js +5 -10
- package/schema/transformers/trim.js.map +1 -1
- package/schema/transformers/uppercase.d.ts +1 -1
- package/schema/transformers/uppercase.js +5 -10
- package/schema/transformers/uppercase.js.map +1 -1
- package/schema/types/index.js +5 -21
- package/schema/types/index.js.map +1 -1
- package/schema/types/schema-array-constraint.d.ts +1 -1
- package/schema/types/schema-array-constraint.js +1 -5
- package/schema/types/schema-array-constraint.js.map +1 -1
- package/schema/types/schema-value-coercer.d.ts +2 -2
- package/schema/types/schema-value-coercer.js +1 -5
- package/schema/types/schema-value-coercer.js.map +1 -1
- package/schema/types/schema-value-constraint.d.ts +2 -2
- package/schema/types/schema-value-constraint.js +1 -5
- package/schema/types/schema-value-constraint.js.map +1 -1
- package/schema/types/schema-value-transformer.d.ts +2 -2
- package/schema/types/schema-value-transformer.js +1 -5
- package/schema/types/schema-value-transformer.js.map +1 -1
- package/schema/types/types.d.ts +1 -1
- package/schema/types/types.js +49 -71
- package/schema/types/types.js.map +1 -1
- package/schema/utils/index.js +2 -18
- package/schema/utils/index.js.map +1 -1
- package/schema/utils/schema.d.ts +1 -1
- package/schema/utils/schema.js +46 -51
- package/schema/utils/schema.js.map +1 -1
- package/schema/utils/value-type.d.ts +1 -1
- package/schema/utils/value-type.js +27 -35
- package/schema/utils/value-type.js.map +1 -1
- package/search-index/elastic/config.d.ts +3 -3
- package/search-index/elastic/config.js +6 -10
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/index.js +6 -22
- package/search-index/elastic/index.js.map +1 -1
- package/search-index/elastic/keyword-rewriter.js +1 -5
- package/search-index/elastic/keyword-rewriter.js.map +1 -1
- package/search-index/elastic/model/elastic-query.js +1 -2
- package/search-index/elastic/model/index-mapping.d.ts +2 -2
- package/search-index/elastic/model/index-mapping.js +3 -7
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/index.js +3 -19
- package/search-index/elastic/model/index.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +1 -1
- package/search-index/elastic/model/sort.js +1 -2
- package/search-index/elastic/module.d.ts +2 -2
- package/search-index/elastic/module.js +25 -30
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js +1 -5
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +1 -1
- package/search-index/elastic/query-builder/index.js +1 -17
- package/search-index/elastic/query-builder/index.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +2 -2
- package/search-index/elastic/query-converter.js +31 -39
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +6 -6
- package/search-index/elastic/search-index.js +33 -37
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +1 -1
- package/search-index/elastic/sort-converter.js +1 -5
- package/search-index/elastic/sort-converter.js.map +1 -1
- package/search-index/elastic/types.js +1 -2
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +5 -8
- package/search-index/error.js.map +1 -1
- package/search-index/index.js +3 -19
- package/search-index/index.js.map +1 -1
- package/search-index/memory/index.js +1 -17
- package/search-index/memory/index.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +1 -1
- package/search-index/memory/memory-search-index.js +26 -30
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +2 -2
- package/search-index/search-index.js +4 -8
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +1 -1
- package/search-index/search-result.js +1 -2
- package/serializer/handlers/binary.d.ts +2 -2
- package/serializer/handlers/binary.js +13 -22
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/date.js +2 -7
- package/serializer/handlers/date.js.map +1 -1
- package/serializer/handlers/error.js +2 -7
- package/serializer/handlers/error.js.map +1 -1
- package/serializer/handlers/index.js +7 -23
- package/serializer/handlers/index.js.map +1 -1
- package/serializer/handlers/map.js +2 -7
- package/serializer/handlers/map.js.map +1 -1
- package/serializer/handlers/regex.js +2 -7
- package/serializer/handlers/regex.js.map +1 -1
- package/serializer/handlers/register.js +19 -23
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.js +2 -7
- package/serializer/handlers/set.js.map +1 -1
- package/serializer/index.js +3 -24
- package/serializer/index.js.map +1 -1
- package/serializer/serializable.d.ts +1 -1
- package/serializer/serializable.js +14 -24
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +1 -1
- package/serializer/serializer.js +38 -45
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/serializer/types.js +6 -9
- package/serializer/types.js.map +1 -1
- package/sse/index.js +2 -18
- package/sse/index.js.map +1 -1
- package/sse/model.js +1 -2
- package/sse/server-sent-events-source.d.ts +1 -1
- package/sse/server-sent-events-source.js +6 -10
- package/sse/server-sent-events-source.js.map +1 -1
- package/sse/server-sent-events.js +15 -19
- package/sse/server-sent-events.js.map +1 -1
- package/supports.js +5 -8
- package/supports.js.map +1 -1
- package/templates/index.js +9 -25
- package/templates/index.js.map +1 -1
- package/templates/module.d.ts +1 -1
- package/templates/module.js +20 -24
- package/templates/module.js.map +1 -1
- package/templates/providers/file.template-provider.d.ts +2 -2
- package/templates/providers/file.template-provider.js +18 -24
- package/templates/providers/file.template-provider.js.map +1 -1
- package/templates/providers/memory.template-provider.js +7 -10
- package/templates/providers/memory.template-provider.js.map +1 -1
- package/templates/renderers/handlebars.template-renderer.d.ts +1 -1
- package/templates/renderers/handlebars.template-renderer.js +21 -24
- package/templates/renderers/handlebars.template-renderer.js.map +1 -1
- package/templates/renderers/jsx.template-renderer.d.ts +0 -7
- package/templates/renderers/jsx.template-renderer.js +13 -16
- package/templates/renderers/jsx.template-renderer.js.map +1 -1
- package/templates/renderers/mjml.template-renderer.js +9 -12
- package/templates/renderers/mjml.template-renderer.js.map +1 -1
- package/templates/renderers/string.template-renderer.js +5 -8
- package/templates/renderers/string.template-renderer.js.map +1 -1
- package/templates/resolvers/file.template-resolver.d.ts +3 -3
- package/templates/resolvers/file.template-resolver.js +19 -26
- package/templates/resolvers/file.template-resolver.js.map +1 -1
- package/templates/resolvers/jsx.template-resolver.d.ts +1 -1
- package/templates/resolvers/jsx.template-resolver.js +10 -15
- package/templates/resolvers/jsx.template-resolver.js.map +1 -1
- package/templates/resolvers/string.template-resolver.d.ts +1 -1
- package/templates/resolvers/string.template-resolver.js +10 -15
- package/templates/resolvers/string.template-resolver.js.map +1 -1
- package/templates/template-renderer.provider.js +5 -8
- package/templates/template-renderer.provider.js.map +1 -1
- package/templates/template-resolver.provider.js +5 -8
- package/templates/template-resolver.provider.js.map +1 -1
- package/templates/template.model.d.ts +1 -1
- package/templates/template.model.js +13 -18
- package/templates/template.model.js.map +1 -1
- package/templates/template.provider.js +1 -5
- package/templates/template.provider.js.map +1 -1
- package/templates/template.renderer.d.ts +2 -2
- package/templates/template.renderer.js +7 -11
- package/templates/template.renderer.js.map +1 -1
- package/templates/template.resolver.js +1 -5
- package/templates/template.resolver.js.map +1 -1
- package/templates/template.service.d.ts +1 -1
- package/templates/template.service.js +16 -19
- package/templates/template.service.js.map +1 -1
- package/templates/tokens.js +3 -6
- package/templates/tokens.js.map +1 -1
- package/templates/types/jsx.intrinsic-elements.d.ts +8 -0
- package/templates/types/jsx.intrinsic-elements.js +2 -0
- package/templates/types/jsx.intrinsic-elements.js.map +1 -0
- package/text/dynamic-text.model.d.ts +1 -1
- package/text/dynamic-text.model.js +18 -25
- package/text/dynamic-text.model.js.map +1 -1
- package/text/index.js +3 -19
- package/text/index.js.map +1 -1
- package/text/localizable-text.model.js +1 -2
- package/text/localization.service.d.ts +3 -3
- package/text/localization.service.js +49 -57
- package/text/localization.service.js.map +1 -1
- package/theme/adapters/css-adapter.js +7 -11
- package/theme/adapters/css-adapter.js.map +1 -1
- package/theme/adapters/tailwind-adapter.d.ts +1 -1
- package/theme/adapters/tailwind-adapter.js +10 -16
- package/theme/adapters/tailwind-adapter.js.map +1 -1
- package/theme/index.js +1 -17
- package/theme/index.js.map +1 -1
- package/theme/theme-service.js +21 -24
- package/theme/theme-service.js.map +1 -1
- package/threading/index.js +2 -18
- package/threading/index.js.map +1 -1
- package/threading/thread-pool.d.ts +5 -5
- package/threading/thread-pool.js +18 -19
- package/threading/thread-pool.js.map +1 -1
- package/threading/thread-worker.d.ts +1 -1
- package/threading/thread-worker.js +3 -7
- package/threading/thread-worker.js.map +1 -1
- package/tokens.js +2 -5
- package/tokens.js.map +1 -1
- package/tsconfig.json +8 -5
- package/types/geo-json.d.ts +1 -1
- package/types/geo-json.js +1 -2
- package/types.d.ts +1 -0
- package/types.js +1 -2
- package/types.js.map +1 -1
- package/utils/alphabet.js +2 -5
- package/utils/alphabet.js.map +1 -1
- package/utils/any-iterable-iterator.js +4 -8
- package/utils/any-iterable-iterator.js.map +1 -1
- package/utils/array/array-backtracker.js +8 -12
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/array/array.js +18 -28
- package/utils/array/array.js.map +1 -1
- package/utils/array/index.js +2 -18
- package/utils/array/index.js.map +1 -1
- package/utils/async-iterable-helpers/all.js +3 -7
- package/utils/async-iterable-helpers/all.js.map +1 -1
- package/utils/async-iterable-helpers/any.js +3 -7
- package/utils/async-iterable-helpers/any.js.map +1 -1
- package/utils/async-iterable-helpers/assert.js +6 -10
- package/utils/async-iterable-helpers/assert.js.map +1 -1
- package/utils/async-iterable-helpers/batch.js +3 -7
- package/utils/async-iterable-helpers/batch.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.js +9 -13
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/concat.js +1 -5
- package/utils/async-iterable-helpers/concat.js.map +1 -1
- package/utils/async-iterable-helpers/default-if-empty.js +1 -5
- package/utils/async-iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/async-iterable-helpers/deferred.js +1 -5
- package/utils/async-iterable-helpers/deferred.js.map +1 -1
- package/utils/async-iterable-helpers/difference.js +10 -15
- package/utils/async-iterable-helpers/difference.js.map +1 -1
- package/utils/async-iterable-helpers/distinct.js +3 -7
- package/utils/async-iterable-helpers/distinct.js.map +1 -1
- package/utils/async-iterable-helpers/drain.js +1 -5
- package/utils/async-iterable-helpers/drain.js.map +1 -1
- package/utils/async-iterable-helpers/filter.js +3 -7
- package/utils/async-iterable-helpers/filter.js.map +1 -1
- package/utils/async-iterable-helpers/first-or-default.js +3 -7
- package/utils/async-iterable-helpers/first-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/first.js +3 -7
- package/utils/async-iterable-helpers/first.js.map +1 -1
- package/utils/async-iterable-helpers/for-each.js +3 -7
- package/utils/async-iterable-helpers/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/group-single.js +3 -7
- package/utils/async-iterable-helpers/group-single.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-map.js +6 -10
- package/utils/async-iterable-helpers/group-to-map.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-single-map.js +3 -7
- package/utils/async-iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/async-iterable-helpers/group.js +3 -7
- package/utils/async-iterable-helpers/group.js.map +1 -1
- package/utils/async-iterable-helpers/includes.js +7 -11
- package/utils/async-iterable-helpers/includes.js.map +1 -1
- package/utils/async-iterable-helpers/index.js +48 -64
- package/utils/async-iterable-helpers/index.js.map +1 -1
- package/utils/async-iterable-helpers/interrupt.js +7 -12
- package/utils/async-iterable-helpers/interrupt.js.map +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.js +5 -10
- package/utils/async-iterable-helpers/is-async-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/last-or-default.js +3 -7
- package/utils/async-iterable-helpers/last-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/last.js +3 -7
- package/utils/async-iterable-helpers/last.js.map +1 -1
- package/utils/async-iterable-helpers/map-many.js +3 -7
- package/utils/async-iterable-helpers/map-many.js.map +1 -1
- package/utils/async-iterable-helpers/map.js +3 -7
- package/utils/async-iterable-helpers/map.js.map +1 -1
- package/utils/async-iterable-helpers/materialize.js +5 -9
- package/utils/async-iterable-helpers/materialize.js.map +1 -1
- package/utils/async-iterable-helpers/metadata.js +5 -11
- package/utils/async-iterable-helpers/metadata.js.map +1 -1
- package/utils/async-iterable-helpers/multiplex.js +4 -8
- package/utils/async-iterable-helpers/multiplex.js.map +1 -1
- package/utils/async-iterable-helpers/observable-iterable.js +8 -12
- package/utils/async-iterable-helpers/observable-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/pairwise.js +3 -7
- package/utils/async-iterable-helpers/pairwise.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/feed.js +7 -11
- package/utils/async-iterable-helpers/parallel/feed.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/filter.js +3 -7
- package/utils/async-iterable-helpers/parallel/filter.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/for-each.js +5 -9
- package/utils/async-iterable-helpers/parallel/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/group.js +5 -9
- package/utils/async-iterable-helpers/parallel/group.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/index.js +7 -23
- package/utils/async-iterable-helpers/parallel/index.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/map.js +3 -7
- package/utils/async-iterable-helpers/parallel/map.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/tap.js +3 -7
- package/utils/async-iterable-helpers/parallel/tap.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/types.js +1 -2
- package/utils/async-iterable-helpers/reduce.js +3 -7
- package/utils/async-iterable-helpers/reduce.js.map +1 -1
- package/utils/async-iterable-helpers/retry.js +3 -7
- package/utils/async-iterable-helpers/retry.js.map +1 -1
- package/utils/async-iterable-helpers/single-or-default.js +1 -5
- package/utils/async-iterable-helpers/single-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/single.js +1 -5
- package/utils/async-iterable-helpers/single.js.map +1 -1
- package/utils/async-iterable-helpers/skip.js +3 -7
- package/utils/async-iterable-helpers/skip.js.map +1 -1
- package/utils/async-iterable-helpers/sort.js +5 -9
- package/utils/async-iterable-helpers/sort.js.map +1 -1
- package/utils/async-iterable-helpers/take-until.js +6 -10
- package/utils/async-iterable-helpers/take-until.js.map +1 -1
- package/utils/async-iterable-helpers/take-while.js +3 -7
- package/utils/async-iterable-helpers/take-while.js.map +1 -1
- package/utils/async-iterable-helpers/take.js +1 -5
- package/utils/async-iterable-helpers/take.js.map +1 -1
- package/utils/async-iterable-helpers/tap.js +3 -7
- package/utils/async-iterable-helpers/tap.js.map +1 -1
- package/utils/async-iterable-helpers/throttle.js +3 -7
- package/utils/async-iterable-helpers/throttle.js.map +1 -1
- package/utils/async-iterable-helpers/to-array.js +3 -7
- package/utils/async-iterable-helpers/to-array.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js +3 -9
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.js +9 -14
- package/utils/async-iterable-helpers/to-async-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-set.js +3 -7
- package/utils/async-iterable-helpers/to-set.js.map +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.js +5 -9
- package/utils/async-iterable-helpers/to-sync-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/types.js +1 -2
- package/utils/async-iterable-helpers/while.js +3 -7
- package/utils/async-iterable-helpers/while.js.map +1 -1
- package/utils/async-iterator-iterable-iterator.js +4 -8
- package/utils/async-iterator-iterable-iterator.js.map +1 -1
- package/utils/backoff.js +13 -20
- package/utils/backoff.js.map +1 -1
- package/utils/base64.js +16 -27
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.js +17 -25
- package/utils/benchmark.js.map +1 -1
- package/utils/binary-search.js +8 -18
- package/utils/binary-search.js.map +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +10 -17
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.js +21 -25
- package/utils/cancellation-token.js.map +1 -1
- package/utils/clone.js +16 -20
- package/utils/clone.js.map +1 -1
- package/utils/comparison.js +7 -17
- package/utils/comparison.js.map +1 -1
- package/utils/compression.d.ts +4 -4
- package/utils/compression.js +32 -39
- package/utils/compression.js.map +1 -1
- package/utils/config-parser.js +11 -18
- package/utils/config-parser.js.map +1 -1
- package/utils/cryptography.d.ts +1 -1
- package/utils/cryptography.js +44 -58
- package/utils/cryptography.js.map +1 -1
- package/utils/date-time.js +44 -68
- package/utils/date-time.js.map +1 -1
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +14 -23
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/enum.js +16 -24
- package/utils/enum.js.map +1 -1
- package/utils/equals.d.ts +1 -1
- package/utils/equals.js +22 -28
- package/utils/equals.js.map +1 -1
- package/utils/event-loop.js +9 -14
- package/utils/event-loop.js.map +1 -1
- package/utils/factory-map.js +1 -5
- package/utils/factory-map.js.map +1 -1
- package/utils/feedable-async-iterable.js +8 -12
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/file-reader.js +6 -13
- package/utils/file-reader.js.map +1 -1
- package/utils/format-error.d.ts +1 -1
- package/utils/format-error.js +11 -15
- package/utils/format-error.js.map +1 -1
- package/utils/function/index.js +2 -18
- package/utils/function/index.js.map +1 -1
- package/utils/function/memoize.js +6 -11
- package/utils/function/memoize.js.map +1 -1
- package/utils/function/throttle.js +5 -9
- package/utils/function/throttle.js.map +1 -1
- package/utils/helpers.js +18 -31
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +21 -29
- package/utils/image.js.map +1 -1
- package/utils/index.js +47 -63
- package/utils/index.js.map +1 -1
- package/utils/iterable-helpers/all.js +1 -5
- package/utils/iterable-helpers/all.js.map +1 -1
- package/utils/iterable-helpers/any.js +1 -5
- package/utils/iterable-helpers/any.js.map +1 -1
- package/utils/iterable-helpers/assert.js +3 -7
- package/utils/iterable-helpers/assert.js.map +1 -1
- package/utils/iterable-helpers/batch.js +1 -5
- package/utils/iterable-helpers/batch.js.map +1 -1
- package/utils/iterable-helpers/concat.js +1 -5
- package/utils/iterable-helpers/concat.js.map +1 -1
- package/utils/iterable-helpers/default-if-empty.js +1 -5
- package/utils/iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/iterable-helpers/deferred.js +1 -5
- package/utils/iterable-helpers/deferred.js.map +1 -1
- package/utils/iterable-helpers/difference.js +7 -12
- package/utils/iterable-helpers/difference.js.map +1 -1
- package/utils/iterable-helpers/distinct.js +1 -5
- package/utils/iterable-helpers/distinct.js.map +1 -1
- package/utils/iterable-helpers/drain.js +1 -5
- package/utils/iterable-helpers/drain.js.map +1 -1
- package/utils/iterable-helpers/filter.js +1 -5
- package/utils/iterable-helpers/filter.js.map +1 -1
- package/utils/iterable-helpers/first-or-default.js +3 -7
- package/utils/iterable-helpers/first-or-default.js.map +1 -1
- package/utils/iterable-helpers/first.js +3 -7
- package/utils/iterable-helpers/first.js.map +1 -1
- package/utils/iterable-helpers/for-each.js +1 -5
- package/utils/iterable-helpers/for-each.js.map +1 -1
- package/utils/iterable-helpers/group-single.js +3 -7
- package/utils/iterable-helpers/group-single.js.map +1 -1
- package/utils/iterable-helpers/group-to-map.js +3 -7
- package/utils/iterable-helpers/group-to-map.js.map +1 -1
- package/utils/iterable-helpers/group-to-single-map.js +1 -5
- package/utils/iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/iterable-helpers/group.js +3 -7
- package/utils/iterable-helpers/group.js.map +1 -1
- package/utils/iterable-helpers/includes.js +3 -7
- package/utils/iterable-helpers/includes.js.map +1 -1
- package/utils/iterable-helpers/index.js +39 -55
- package/utils/iterable-helpers/index.js.map +1 -1
- package/utils/iterable-helpers/is-iterable.js +5 -10
- package/utils/iterable-helpers/is-iterable.js.map +1 -1
- package/utils/iterable-helpers/last-or-default.js +3 -7
- package/utils/iterable-helpers/last-or-default.js.map +1 -1
- package/utils/iterable-helpers/last.js +3 -7
- package/utils/iterable-helpers/last.js.map +1 -1
- package/utils/iterable-helpers/map-many.js +1 -5
- package/utils/iterable-helpers/map-many.js.map +1 -1
- package/utils/iterable-helpers/map.js +1 -5
- package/utils/iterable-helpers/map.js.map +1 -1
- package/utils/iterable-helpers/materialize.js +1 -5
- package/utils/iterable-helpers/materialize.js.map +1 -1
- package/utils/iterable-helpers/metadata.js +1 -5
- package/utils/iterable-helpers/metadata.js.map +1 -1
- package/utils/iterable-helpers/pairwise.js +1 -5
- package/utils/iterable-helpers/pairwise.js.map +1 -1
- package/utils/iterable-helpers/range.js +1 -5
- package/utils/iterable-helpers/range.js.map +1 -1
- package/utils/iterable-helpers/reduce.js +1 -5
- package/utils/iterable-helpers/reduce.js.map +1 -1
- package/utils/iterable-helpers/single-or-default.js +1 -5
- package/utils/iterable-helpers/single-or-default.js.map +1 -1
- package/utils/iterable-helpers/single.js +1 -5
- package/utils/iterable-helpers/single.js.map +1 -1
- package/utils/iterable-helpers/skip.js +1 -5
- package/utils/iterable-helpers/skip.js.map +1 -1
- package/utils/iterable-helpers/sort.js +2 -6
- package/utils/iterable-helpers/sort.js.map +1 -1
- package/utils/iterable-helpers/take-until.js +1 -5
- package/utils/iterable-helpers/take-until.js.map +1 -1
- package/utils/iterable-helpers/take-while.js +1 -5
- package/utils/iterable-helpers/take-while.js.map +1 -1
- package/utils/iterable-helpers/take.js +1 -5
- package/utils/iterable-helpers/take.js.map +1 -1
- package/utils/iterable-helpers/tap.js +1 -5
- package/utils/iterable-helpers/tap.js.map +1 -1
- package/utils/iterable-helpers/types.js +1 -2
- package/utils/iterable-helpers/while.js +1 -5
- package/utils/iterable-helpers/while.js.map +1 -1
- package/utils/jwt.js +29 -35
- package/utils/jwt.js.map +1 -1
- package/utils/map.js +7 -15
- package/utils/map.js.map +1 -1
- package/utils/math.js +14 -28
- package/utils/math.js.map +1 -1
- package/utils/merge.d.ts +1 -1
- package/utils/merge.js +12 -16
- package/utils/merge.js.map +1 -1
- package/utils/middleware.js +2 -7
- package/utils/middleware.js.map +1 -1
- package/utils/moving-metric.js +5 -9
- package/utils/moving-metric.js.map +1 -1
- package/utils/noop.js +2 -7
- package/utils/noop.js.map +1 -1
- package/utils/object/decycle.d.ts +1 -1
- package/utils/object/decycle.js +22 -27
- package/utils/object/decycle.js.map +1 -1
- package/utils/object/dereference.d.ts +1 -1
- package/utils/object/dereference.js +7 -13
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.js +15 -18
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/object/index.js +7 -23
- package/utils/object/index.js.map +1 -1
- package/utils/object/lazy-property.d.ts +1 -1
- package/utils/object/lazy-property.js +15 -22
- package/utils/object/lazy-property.js.map +1 -1
- package/utils/object/merge.js +13 -17
- package/utils/object/merge.js.map +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/object.js +23 -40
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +1 -1
- package/utils/object/property-name.js +18 -26
- package/utils/object/property-name.js.map +1 -1
- package/utils/ordered-feedable-async-iterable.js +3 -7
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +1 -1
- package/utils/patch-worker.js +19 -23
- package/utils/patch-worker.js.map +1 -1
- package/utils/patterns.js +4 -8
- package/utils/patterns.js.map +1 -1
- package/utils/periodic-reporter.js +9 -13
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.js +15 -19
- package/utils/periodic-sampler.js.map +1 -1
- package/utils/provider-function-iterable.js +3 -7
- package/utils/provider-function-iterable.js.map +1 -1
- package/utils/proxy.js +4 -7
- package/utils/proxy.js.map +1 -1
- package/utils/random.js +3 -8
- package/utils/random.js.map +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/reflection.js +7 -16
- package/utils/reflection.js.map +1 -1
- package/utils/set.js +7 -15
- package/utils/set.js.map +1 -1
- package/utils/singleton.js +3 -7
- package/utils/singleton.js.map +1 -1
- package/utils/sort.js +5 -12
- package/utils/sort.js.map +1 -1
- package/utils/stream/finalize-stream.js +1 -5
- package/utils/stream/finalize-stream.js.map +1 -1
- package/utils/stream/index.js +6 -22
- package/utils/stream/index.js.map +1 -1
- package/utils/stream/readable-stream-adapter.js +4 -9
- package/utils/stream/readable-stream-adapter.js.map +1 -1
- package/utils/stream/readable-stream-from-promise.js +1 -5
- package/utils/stream/readable-stream-from-promise.js.map +1 -1
- package/utils/stream/size-limited-stream.d.ts +1 -1
- package/utils/stream/size-limited-stream.js +3 -7
- package/utils/stream/size-limited-stream.js.map +1 -1
- package/utils/stream/stream-helper-types.d.ts +1 -1
- package/utils/stream/stream-helper-types.js +1 -2
- package/utils/stream/stream-reader.js +11 -15
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/string/hypenate.js +1 -5
- package/utils/string/hypenate.js.map +1 -1
- package/utils/string/index.js +3 -19
- package/utils/string/index.js.map +1 -1
- package/utils/string/title-case.js +1 -5
- package/utils/string/title-case.js.map +1 -1
- package/utils/string/trim.js +1 -5
- package/utils/string/trim.js.map +1 -1
- package/utils/throw.js +2 -7
- package/utils/throw.js.map +1 -1
- package/utils/timer.js +1 -5
- package/utils/timer.js.map +1 -1
- package/utils/timing.js +12 -23
- package/utils/timing.js.map +1 -1
- package/utils/type-guards.d.ts +1 -1
- package/utils/type-guards.js +234 -471
- package/utils/type-guards.js.map +1 -1
- package/utils/type-of.js +3 -7
- package/utils/type-of.js.map +1 -1
- package/utils/units.js +51 -55
- package/utils/units.js.map +1 -1
- package/utils/url-builder.js +20 -20
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/utils/z-base32.js +6 -11
- package/utils/z-base32.js.map +1 -1
- package/web-types.js +1 -2
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
5
|
-
function reduceAsync(iterable, reducer, initialValue) {
|
|
6
|
-
return ((0, is_async_iterable_js_1.isAsyncIterable)(iterable))
|
|
1
|
+
import { isAsyncIterable } from './is-async-iterable.js';
|
|
2
|
+
export function reduceAsync(iterable, reducer, initialValue) {
|
|
3
|
+
return (isAsyncIterable(iterable))
|
|
7
4
|
? async(iterable, reducer, initialValue)
|
|
8
5
|
: sync(iterable, reducer, initialValue);
|
|
9
6
|
}
|
|
10
|
-
exports.reduceAsync = reduceAsync;
|
|
11
7
|
async function sync(iterable, reducer, initialValue) {
|
|
12
8
|
let accumulator = initialValue;
|
|
13
9
|
let index = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reduce.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/reduce.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"reduce.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/reduce.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAKzD,MAAM,UAAU,WAAW,CAAO,QAAwB,EAAE,OAA2B,EAAE,YAAgB;IACvG,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC;QACxC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,OAAO,EAAE,YAAY,CAAC,CAAC;AAC5C,CAAC;AAED,KAAK,UAAU,IAAI,CAAO,QAAqB,EAAE,OAA2B,EAAE,YAAgB;IAC5F,IAAI,WAAW,GAAsB,YAAY,CAAC;IAClD,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,KAAK,MAAM,YAAY,IAAI,QAAQ,EAAE;QACnC,IAAI,WAAW,IAAI,SAAS,EAAE;YAC5B,WAAW,GAAG,YAAY,CAAC;SAC5B;aACI;YACH,MAAM,WAAW,GAAG,OAAO,CAAC,WAAgB,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;YAErE,WAAW,GAAG,CAAC,WAAW,YAAY,OAAO,CAAC;gBAC5C,CAAC,CAAC,MAAM,WAAW;gBACnB,CAAC,CAAC,WAAW,CAAC;SACjB;KACF;IAED,OAAO,WAAgB,CAAC;AAC1B,CAAC;AAED,KAAK,UAAU,KAAK,CAAO,QAAwB,EAAE,OAA2B,EAAE,YAAgB;IAChG,IAAI,WAAW,GAAsB,YAAY,CAAC;IAClD,IAAI,KAAK,GAAG,CAAC,CAAC;IAEd,IAAI,KAAK,EAAE,MAAM,YAAY,IAAI,QAAQ,EAAE;QACzC,IAAI,WAAW,IAAI,SAAS,EAAE;YAC5B,WAAW,GAAG,YAAY,CAAC;SAC5B;aACI;YACH,MAAM,WAAW,GAAG,OAAO,CAAC,WAAgB,EAAE,YAAY,EAAE,KAAK,EAAE,CAAC,CAAC;YAErE,WAAW,GAAG,CAAC,WAAW,YAAY,OAAO,CAAC;gBAC5C,CAAC,CAAC,MAAM,WAAW;gBACnB,CAAC,CAAC,WAAW,CAAC;SACjB;KACF;IAED,OAAO,WAAgB,CAAC;AAC1B,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
5
|
-
function retryAsync(iterable, throwOnRetryFalse, predicate) {
|
|
6
|
-
return (0, is_async_iterable_js_1.isAsyncIterable)(iterable)
|
|
1
|
+
import { isAsyncIterable } from './is-async-iterable.js';
|
|
2
|
+
export function retryAsync(iterable, throwOnRetryFalse, predicate) {
|
|
3
|
+
return isAsyncIterable(iterable)
|
|
7
4
|
? async(iterable, throwOnRetryFalse, predicate)
|
|
8
5
|
: sync(iterable, throwOnRetryFalse, predicate);
|
|
9
6
|
}
|
|
10
|
-
exports.retryAsync = retryAsync;
|
|
11
7
|
async function* sync(iterable, throwOnRetryFalse, predicate) {
|
|
12
8
|
let index = -1;
|
|
13
9
|
for (const item of iterable) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/retry.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"retry.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/retry.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,UAAU,UAAU,CAAI,QAAwB,EAAE,iBAA0B,EAAE,SAAiC;IACnH,OAAO,eAAe,CAAC,QAAQ,CAAC;QAC9B,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,iBAAiB,EAAE,SAAS,CAAC;QAC/C,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,EAAE,SAAS,CAAC,CAAC;AACnD,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,IAAI,CAAI,QAAqB,EAAE,iBAA0B,EAAE,SAAiC;IAC1G,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;IAEf,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;QAC3B,KAAK,EAAE,CAAC;QAER,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,OAAO,CAAC,OAAO,IAAI,KAAK,EAAE;YACxB,IAAI;gBACF,MAAM,IAAI,CAAC;gBACX,OAAO,GAAG,IAAI,CAAC;aAChB;YACD,OAAO,KAAc,EAAE;gBACrB,MAAM,WAAW,GAAG,SAAS,CAAC,KAAc,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;gBAE3D,KAAK,GAAG,CAAC,WAAW,YAAY,OAAO,CAAC;oBACtC,CAAC,CAAC,MAAM,WAAW;oBACnB,CAAC,CAAC,WAAW,CAAC;gBAEhB,IAAI,CAAC,KAAK,IAAI,iBAAiB,EAAE;oBAC/B,MAAM,KAAK,CAAC;iBACb;aACF;SACF;KACF;AACH,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,KAAK,CAAI,QAA0B,EAAE,iBAA0B,EAAE,SAAiC;IAChH,IAAI,KAAK,GAAG,CAAC,CAAC,CAAC;IAEf,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,KAAK,EAAE,CAAC;QAER,IAAI,OAAO,GAAG,KAAK,CAAC;QACpB,IAAI,KAAK,GAAG,IAAI,CAAC;QAEjB,OAAO,CAAC,OAAO,IAAI,KAAK,EAAE;YACxB,IAAI;gBACF,MAAM,IAAI,CAAC;gBACX,OAAO,GAAG,IAAI,CAAC;aAChB;YACD,OAAO,KAAc,EAAE;gBACrB,MAAM,WAAW,GAAG,SAAS,CAAC,KAAc,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;gBAE3D,KAAK,GAAG,CAAC,WAAW,YAAY,OAAO,CAAC;oBACtC,CAAC,CAAC,MAAM,WAAW;oBACnB,CAAC,CAAC,WAAW,CAAC;gBAEhB,IAAI,CAAC,KAAK,IAAI,iBAAiB,EAAE;oBAC/B,MAAM,KAAK,CAAC;iBACb;aACF;SACF;KACF;AACH,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.singleOrDefaultAsync = void 0;
|
|
4
|
-
async function singleOrDefaultAsync(iterable, defaultValue, predicate = (() => true)) {
|
|
1
|
+
export async function singleOrDefaultAsync(iterable, defaultValue, predicate = (() => true)) {
|
|
5
2
|
let matched = false;
|
|
6
3
|
let result = defaultValue;
|
|
7
4
|
let index = 0;
|
|
@@ -20,5 +17,4 @@ async function singleOrDefaultAsync(iterable, defaultValue, predicate = (() => t
|
|
|
20
17
|
}
|
|
21
18
|
return result;
|
|
22
19
|
}
|
|
23
|
-
exports.singleOrDefaultAsync = singleOrDefaultAsync;
|
|
24
20
|
//# sourceMappingURL=single-or-default.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single-or-default.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/single-or-default.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"single-or-default.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/single-or-default.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,oBAAoB,CAAiC,QAAwB,EAAE,YAAe,EAAE,YAA8D,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IAC9L,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,MAAM,GAAmB,YAAY,CAAC;IAE1C,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,IAAI,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAEvC,IAAI,OAAO,YAAY,OAAO,EAAE;YAC9B,OAAO,GAAG,MAAM,OAAO,CAAC;SACzB;QAED,IAAI,OAAO,EAAE;YACX,IAAI,OAAO,EAAE;gBACX,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aACzD;YAED,OAAO,GAAG,IAAI,CAAC;YACf,MAAM,GAAG,IAA2B,CAAC;SACtC;KACF;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.singleAsync = void 0;
|
|
4
|
-
async function singleAsync(iterable, predicate = (() => true)) {
|
|
1
|
+
export async function singleAsync(iterable, predicate = (() => true)) {
|
|
5
2
|
let matched = false;
|
|
6
3
|
let result;
|
|
7
4
|
let index = 0;
|
|
@@ -23,5 +20,4 @@ async function singleAsync(iterable, predicate = (() => true)) {
|
|
|
23
20
|
}
|
|
24
21
|
return result;
|
|
25
22
|
}
|
|
26
|
-
exports.singleAsync = singleAsync;
|
|
27
23
|
//# sourceMappingURL=single.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"single.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/single.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"single.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/single.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,KAAK,UAAU,WAAW,CAA8B,QAAwB,EAAE,YAA8D,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC;IACjK,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,MAAqB,CAAC;IAE1B,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,IAAI,OAAO,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAEvC,IAAI,OAAO,YAAY,OAAO,EAAE;YAC9B,OAAO,GAAG,MAAM,OAAO,CAAC;SACzB;QAED,IAAI,OAAO,EAAE;YACX,IAAI,OAAO,EAAE;gBACX,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aACzD;YAED,OAAO,GAAG,IAAI,CAAC;YACf,MAAM,GAAG,IAAI,CAAC;SACf;KACF;IAED,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;KAC9C;IAED,OAAO,MAAoB,CAAC;AAC9B,CAAC"}
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const take_while_js_1 = require("./take-while.js");
|
|
5
|
-
function skipAsync(iterable, count) {
|
|
6
|
-
return (0, take_while_js_1.takeWhileAsync)(iterable, false, (_item, index) => index >= count);
|
|
1
|
+
import { takeWhileAsync } from './take-while.js';
|
|
2
|
+
export function skipAsync(iterable, count) {
|
|
3
|
+
return takeWhileAsync(iterable, false, (_item, index) => index >= count);
|
|
7
4
|
}
|
|
8
|
-
exports.skipAsync = skipAsync;
|
|
9
5
|
//# sourceMappingURL=skip.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/skip.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skip.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/skip.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,UAAU,SAAS,CAAI,QAAwB,EAAE,KAAa;IAClE,OAAO,cAAc,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,KAAK,IAAI,KAAK,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
async function sortAsync(iterable, comparator) {
|
|
7
|
-
const array = await (0, to_array_js_1.toArrayAsync)(iterable);
|
|
8
|
-
await (0, sort_js_1.quickSortInPlaceAsync)(array, comparator);
|
|
1
|
+
import { quickSortInPlaceAsync } from '../sort.js';
|
|
2
|
+
import { toArrayAsync } from './to-array.js';
|
|
3
|
+
export async function sortAsync(iterable, comparator) {
|
|
4
|
+
const array = await toArrayAsync(iterable);
|
|
5
|
+
await quickSortInPlaceAsync(array, comparator);
|
|
9
6
|
return array;
|
|
10
7
|
}
|
|
11
|
-
exports.sortAsync = sortAsync;
|
|
12
8
|
//# sourceMappingURL=sort.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sort.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/sort.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sort.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/sort.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,KAAK,UAAU,SAAS,CAAI,QAAwB,EAAE,UAA+B;IAC1F,MAAM,KAAK,GAAG,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;IAE3C,MAAM,qBAAqB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;IAE/C,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
6
|
-
function takeUntilAsync(iterable, cancellationToken) {
|
|
7
|
-
return (0, is_async_iterable_js_1.isAsyncIterable)(iterable)
|
|
1
|
+
import { firstValueFrom, map, race } from 'rxjs';
|
|
2
|
+
import { isAsyncIterable } from './is-async-iterable.js';
|
|
3
|
+
export function takeUntilAsync(iterable, cancellationToken) {
|
|
4
|
+
return isAsyncIterable(iterable)
|
|
8
5
|
? async(iterable, cancellationToken)
|
|
9
6
|
: sync(iterable, cancellationToken);
|
|
10
7
|
}
|
|
11
|
-
exports.takeUntilAsync = takeUntilAsync;
|
|
12
8
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
13
9
|
async function* sync(iterable, cancellationToken) {
|
|
14
10
|
if (cancellationToken.isSet) {
|
|
@@ -24,10 +20,10 @@ async function* sync(iterable, cancellationToken) {
|
|
|
24
20
|
}
|
|
25
21
|
async function* async(iterable, cancellationToken) {
|
|
26
22
|
const iterator = iterable[Symbol.asyncIterator]();
|
|
27
|
-
const cancel$ = cancellationToken.set$.pipe(
|
|
23
|
+
const cancel$ = cancellationToken.set$.pipe(map(() => ({ done: true, value: undefined }))); // eslint-disable-line @typescript-eslint/no-unsafe-argument
|
|
28
24
|
try {
|
|
29
25
|
while (true) {
|
|
30
|
-
const result = await
|
|
26
|
+
const result = await firstValueFrom(race([iterator.next(), cancel$]));
|
|
31
27
|
if (result.done == true) {
|
|
32
28
|
return result.value;
|
|
33
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"take-until.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/take-until.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"take-until.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/take-until.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGjD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,UAAU,cAAc,CAAI,QAAwB,EAAE,iBAA4C;IACtG,OAAO,eAAe,CAAC,QAAQ,CAAC;QAC9B,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,iBAAiB,CAAC;QACpC,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;AACxC,CAAC;AAED,4DAA4D;AAC5D,KAAK,SAAS,CAAC,CAAC,IAAI,CAAI,QAAqB,EAAE,iBAA4C;IACzF,IAAI,iBAAiB,CAAC,KAAK,EAAE;QAC3B,OAAO;KACR;IAED,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;QAC3B,MAAM,IAAI,CAAC;QAEX,uEAAuE;QACvE,IAAI,iBAAiB,CAAC,KAAK,EAAE;YAC3B,MAAM;SACP;KACF;AACH,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,KAAK,CAAI,QAA0B,EAAE,iBAA4C;IAC/F,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC;IAClD,MAAM,OAAO,GAAG,iBAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAsB,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,4DAA4D;IAE3K,IAAI;QACF,OAAO,IAAI,EAAE;YACX,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;YAEtE,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE;gBACvB,OAAO,MAAM,CAAC,KAAkB,CAAC;aAClC;YAED,MAAO,MAA4B,CAAC,KAAK,CAAC;SAC3C;KACF;IACD,OAAO,KAAK,EAAE;QACZ,CAAC,QAAQ,CAAC,KAAK,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;KAC9C;YACO;QACN,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;KACrB;IAED,OAAO,SAAS,CAAC;AACnB,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
5
|
-
function takeWhileAsync(iterable, yieldLastOnFalse, predicate) {
|
|
6
|
-
return (0, is_async_iterable_js_1.isAsyncIterable)(iterable)
|
|
1
|
+
import { isAsyncIterable } from './is-async-iterable.js';
|
|
2
|
+
export function takeWhileAsync(iterable, yieldLastOnFalse, predicate) {
|
|
3
|
+
return isAsyncIterable(iterable)
|
|
7
4
|
? async(iterable, yieldLastOnFalse, predicate)
|
|
8
5
|
: sync(iterable, yieldLastOnFalse, predicate);
|
|
9
6
|
}
|
|
10
|
-
exports.takeWhileAsync = takeWhileAsync;
|
|
11
7
|
async function* sync(iterable, yieldLastOnFalse, predicate) {
|
|
12
8
|
let index = 0;
|
|
13
9
|
for (const item of iterable) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"take-while.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/take-while.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"take-while.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/take-while.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,UAAU,cAAc,CAAI,QAAwB,EAAE,gBAAyB,EAAE,SAA4B;IACjH,OAAO,eAAe,CAAC,QAAQ,CAAC;QAC9B,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,gBAAgB,EAAE,SAAS,CAAC;QAC9C,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,gBAAgB,EAAE,SAAS,CAAC,CAAC;AAClD,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,IAAI,CAAI,QAAqB,EAAE,gBAAyB,EAAE,SAA4B;IACpG,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,KAAK,MAAM,IAAI,IAAI,QAAQ,EAAE;QAC3B,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAG,CAAC,WAAW,YAAY,OAAO,CAAC;YAC3C,CAAC,CAAC,MAAM,WAAW;YACnB,CAAC,CAAC,WAAW,CAAC;QAEhB,IAAI,IAAI,IAAI,gBAAgB,EAAE;YAC5B,MAAM,IAAI,CAAC;SACZ;QAED,IAAI,CAAC,IAAI,EAAE;YACT,MAAM;SACP;KACF;AACH,CAAC;AAED,KAAK,SAAS,CAAC,CAAC,KAAK,CAAI,QAA0B,EAAE,gBAAyB,EAAE,SAA4B;IAC1G,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,MAAM,WAAW,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAC7C,MAAM,IAAI,GAAG,CAAC,WAAW,YAAY,OAAO,CAAC;YAC3C,CAAC,CAAC,MAAM,WAAW;YACnB,CAAC,CAAC,WAAW,CAAC;QAEhB,IAAI,IAAI,IAAI,gBAAgB,EAAE;YAC5B,MAAM,IAAI,CAAC;SACZ;QAED,IAAI,CAAC,IAAI,EAAE;YACT,MAAM;SACP;KACF;AACH,CAAC"}
|
|
@@ -1,7 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.takeAsync = void 0;
|
|
4
|
-
async function* takeAsync(iterable, count) {
|
|
1
|
+
export async function* takeAsync(iterable, count) {
|
|
5
2
|
if (count <= 0) {
|
|
6
3
|
return;
|
|
7
4
|
}
|
|
@@ -13,5 +10,4 @@ async function* takeAsync(iterable, count) {
|
|
|
13
10
|
}
|
|
14
11
|
}
|
|
15
12
|
}
|
|
16
|
-
exports.takeAsync = takeAsync;
|
|
17
13
|
//# sourceMappingURL=take.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"take.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/take.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"take.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/take.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,SAAS,CAAI,QAAwB,EAAE,KAAa;IACzE,IAAI,KAAK,IAAI,CAAC,EAAE;QACd,OAAO;KACR;IAED,IAAI,OAAO,GAAG,CAAC,CAAC;IAChB,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,QAAQ,EAAE;QACjC,MAAM,IAAI,CAAC;QAEX,IAAI,EAAE,OAAO,IAAI,KAAK,EAAE;YACtB,MAAM;SACP;KACF;AACH,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
5
|
-
function tapAsync(iterable, tapper) {
|
|
6
|
-
return (0, is_async_iterable_js_1.isAsyncIterable)(iterable)
|
|
1
|
+
import { isAsyncIterable } from './is-async-iterable.js';
|
|
2
|
+
export function tapAsync(iterable, tapper) {
|
|
3
|
+
return isAsyncIterable(iterable)
|
|
7
4
|
? async(iterable, tapper)
|
|
8
5
|
: sync(iterable, tapper);
|
|
9
6
|
}
|
|
10
|
-
exports.tapAsync = tapAsync;
|
|
11
7
|
async function* sync(iterable, tapper) {
|
|
12
8
|
let index = 0;
|
|
13
9
|
for (const item of iterable) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/tap.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tap.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/tap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,UAAU,QAAQ,CAAI,QAAwB,EAAE,MAAqC;IACzF,OAAO,eAAe,CAAC,QAAQ,CAAC;QAC9B,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC;QACzB,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC7B,CAAC;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,15 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.throttle = void 0;
|
|
4
|
-
const timing_js_1 = require("../timing.js");
|
|
5
|
-
async function* throttle(iterable, delayOrThrottleFunction) {
|
|
1
|
+
import { timeout } from '../timing.js';
|
|
2
|
+
export async function* throttle(iterable, delayOrThrottleFunction) {
|
|
6
3
|
const throttleFunction = (typeof delayOrThrottleFunction == 'number')
|
|
7
|
-
? () =>
|
|
4
|
+
? () => timeout(delayOrThrottleFunction) // eslint-disable-line @typescript-eslint/promise-function-async
|
|
8
5
|
: delayOrThrottleFunction;
|
|
9
6
|
for await (const item of iterable) {
|
|
10
7
|
yield item;
|
|
11
8
|
await throttleFunction();
|
|
12
9
|
}
|
|
13
10
|
}
|
|
14
|
-
exports.throttle = throttle;
|
|
15
11
|
//# sourceMappingURL=throttle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/throttle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/throttle.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAIvC,MAAM,CAAC,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,OAAO,CAAC,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"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const is_iterable_js_1 = require("../iterable-helpers/is-iterable.js");
|
|
5
|
-
async function toArrayAsync(iterable) {
|
|
6
|
-
if ((0, is_iterable_js_1.isIterable)(iterable)) {
|
|
1
|
+
import { isIterable } from '../iterable-helpers/is-iterable.js';
|
|
2
|
+
export async function toArrayAsync(iterable) {
|
|
3
|
+
if (isIterable(iterable)) {
|
|
7
4
|
return [...iterable];
|
|
8
5
|
}
|
|
9
6
|
const array = [];
|
|
@@ -12,5 +9,4 @@ async function toArrayAsync(iterable) {
|
|
|
12
9
|
}
|
|
13
10
|
return array;
|
|
14
11
|
}
|
|
15
|
-
exports.toArrayAsync = toArrayAsync;
|
|
16
12
|
//# sourceMappingURL=to-array.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-array.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-array.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-array.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-array.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,MAAM,CAAC,KAAK,UAAU,YAAY,CAAI,QAAwB;IAC5D,IAAI,UAAU,CAAC,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"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.asyncIteratorToAsyncIterableIterator = exports.iteratorToAsyncIterableIterator = exports.iterableToAsyncIterableIterator = void 0;
|
|
4
1
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
5
|
-
async function* iterableToAsyncIterableIterator(iterable) {
|
|
2
|
+
export async function* iterableToAsyncIterableIterator(iterable) {
|
|
6
3
|
yield* iterable;
|
|
7
4
|
}
|
|
8
|
-
exports.iterableToAsyncIterableIterator = iterableToAsyncIterableIterator;
|
|
9
5
|
// eslint-disable-next-line @typescript-eslint/require-await
|
|
10
|
-
async function* iteratorToAsyncIterableIterator(iterator) {
|
|
6
|
+
export async function* iteratorToAsyncIterableIterator(iterator) {
|
|
11
7
|
try {
|
|
12
8
|
while (true) {
|
|
13
9
|
const result = iterator.next();
|
|
@@ -27,8 +23,7 @@ async function* iteratorToAsyncIterableIterator(iterator) {
|
|
|
27
23
|
iterator.return?.();
|
|
28
24
|
}
|
|
29
25
|
}
|
|
30
|
-
|
|
31
|
-
async function* asyncIteratorToAsyncIterableIterator(iterator) {
|
|
26
|
+
export async function* asyncIteratorToAsyncIterableIterator(iterator) {
|
|
32
27
|
try {
|
|
33
28
|
while (true) {
|
|
34
29
|
const result = await iterator.next();
|
|
@@ -48,5 +43,4 @@ async function* asyncIteratorToAsyncIterableIterator(iterator) {
|
|
|
48
43
|
await iterator.return?.();
|
|
49
44
|
}
|
|
50
45
|
}
|
|
51
|
-
exports.asyncIteratorToAsyncIterableIterator = asyncIteratorToAsyncIterableIterator;
|
|
52
46
|
//# sourceMappingURL=to-async-iterable-iterator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-async-iterable-iterator.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-async-iterable-iterator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-async-iterable-iterator.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-async-iterable-iterator.ts"],"names":[],"mappings":"AAEA,4DAA4D;AAC5D,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,+BAA+B,CAAI,QAAwB;IAChF,KAAK,CAAC,CAAC,QAAQ,CAAC;AAClB,CAAC;AAED,4DAA4D;AAC5D,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,+BAA+B,CAAoB,QAAqC;IAC7G,IAAI;QACF,OAAO,IAAI,EAAE;YACX,MAAM,MAAM,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;YAE/B,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE;gBACvB,OAAO,MAAM,CAAC,KAAK,CAAC;aACrB;YAED,IAAI;gBACF,MAAM,MAAM,CAAC,KAAK,CAAC;aACpB;YACD,OAAO,KAAK,EAAE;gBACZ,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;gBACxB,MAAM,KAAK,CAAC;aACb;SACF;KACF;YACO;QACN,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;KACrB;AACH,CAAC;AAED,MAAM,CAAC,KAAK,SAAS,CAAC,CAAC,oCAAoC,CAAoB,QAA0C;IACvH,IAAI;QACF,OAAO,IAAI,EAAE;YACX,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;YAErC,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE;gBACvB,OAAO,MAAM,CAAC,KAAK,CAAC;aACrB;YAED,IAAI;gBACF,MAAM,MAAM,CAAC,KAAK,CAAC;aACpB;YACD,OAAO,KAAK,EAAE;gBACZ,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAK,CAAC,CAAC;gBAC9B,MAAM,KAAK,CAAC;aACb;SACF;KACF;YACO;QACN,MAAM,QAAQ,CAAC,MAAM,EAAE,EAAE,CAAC;KAC3B;AACH,CAAC"}
|
|
@@ -1,16 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const type_guards_js_1 = require("../type-guards.js");
|
|
6
|
-
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
7
|
-
function iterableToAsyncIterator(iterable) {
|
|
1
|
+
import { isIterable } from '../iterable-helpers/is-iterable.js';
|
|
2
|
+
import { isDefined } from '../type-guards.js';
|
|
3
|
+
import { isAsyncIterable } from './is-async-iterable.js';
|
|
4
|
+
export function iterableToAsyncIterator(iterable) {
|
|
8
5
|
let asyncIterator;
|
|
9
|
-
if (
|
|
6
|
+
if (isIterable(iterable)) {
|
|
10
7
|
const iterator = iterable[Symbol.iterator]();
|
|
11
8
|
asyncIterator = iteratorToAsyncIterator(iterator);
|
|
12
9
|
}
|
|
13
|
-
else if (
|
|
10
|
+
else if (isAsyncIterable(iterable)) {
|
|
14
11
|
asyncIterator = iterable[Symbol.asyncIterator]();
|
|
15
12
|
}
|
|
16
13
|
else {
|
|
@@ -18,24 +15,22 @@ function iterableToAsyncIterator(iterable) {
|
|
|
18
15
|
}
|
|
19
16
|
return asyncIterator;
|
|
20
17
|
}
|
|
21
|
-
|
|
22
|
-
function iteratorToAsyncIterator(iterator) {
|
|
18
|
+
export function iteratorToAsyncIterator(iterator) {
|
|
23
19
|
const asyncIterator = {
|
|
24
20
|
async next(...args) {
|
|
25
21
|
return iterator.next(...args);
|
|
26
22
|
}
|
|
27
23
|
};
|
|
28
|
-
if (
|
|
24
|
+
if (isDefined(iterator.return)) { // eslint-disable-line @typescript-eslint/unbound-method
|
|
29
25
|
asyncIterator.return = async function _return(value) {
|
|
30
26
|
return iterator.return(await value);
|
|
31
27
|
};
|
|
32
28
|
}
|
|
33
|
-
if (
|
|
29
|
+
if (isDefined(iterator.throw)) { // eslint-disable-line @typescript-eslint/unbound-method
|
|
34
30
|
asyncIterator.throw = async function _throw(error) {
|
|
35
31
|
return iterator.throw(error);
|
|
36
32
|
};
|
|
37
33
|
}
|
|
38
34
|
return asyncIterator;
|
|
39
35
|
}
|
|
40
|
-
exports.iteratorToAsyncIterator = iteratorToAsyncIterator;
|
|
41
36
|
//# sourceMappingURL=to-async-iterator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-async-iterator.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-async-iterator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-async-iterator.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-async-iterator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,UAAU,uBAAuB,CAAI,QAAwB;IACjE,IAAI,aAA+B,CAAC;IAEpC,IAAI,UAAU,CAAC,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,eAAe,CAAC,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;AAED,MAAM,UAAU,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,SAAS,CAAC,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,SAAS,CAAC,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"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const is_iterable_js_1 = require("../iterable-helpers/is-iterable.js");
|
|
5
|
-
async function toSetAsync(iterable) {
|
|
6
|
-
if ((0, is_iterable_js_1.isIterable)(iterable)) {
|
|
1
|
+
import { isIterable } from '../iterable-helpers/is-iterable.js';
|
|
2
|
+
export async function toSetAsync(iterable) {
|
|
3
|
+
if (isIterable(iterable)) {
|
|
7
4
|
return new Set(iterable);
|
|
8
5
|
}
|
|
9
6
|
const set = new Set();
|
|
@@ -12,5 +9,4 @@ async function toSetAsync(iterable) {
|
|
|
12
9
|
}
|
|
13
10
|
return set;
|
|
14
11
|
}
|
|
15
|
-
exports.toSetAsync = toSetAsync;
|
|
16
12
|
//# sourceMappingURL=to-set.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"to-set.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-set.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"to-set.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-set.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEhE,MAAM,CAAC,KAAK,UAAU,UAAU,CAAI,QAAwB;IAC1D,IAAI,UAAU,CAAC,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"}
|
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
const to_array_js_1 = require("./to-array.js");
|
|
6
|
-
async function toSync(iterable) {
|
|
7
|
-
return ((0, is_iterable_js_1.isIterable)(iterable))
|
|
1
|
+
import { isIterable } from '../iterable-helpers/is-iterable.js';
|
|
2
|
+
import { toArrayAsync } from './to-array.js';
|
|
3
|
+
export async function toSync(iterable) {
|
|
4
|
+
return (isIterable(iterable))
|
|
8
5
|
? iterable
|
|
9
|
-
:
|
|
6
|
+
: toArrayAsync(iterable);
|
|
10
7
|
}
|
|
11
|
-
exports.toSync = toSync;
|
|
12
8
|
//# 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":"
|
|
1
|
+
{"version":3,"file":"to-sync-iterable.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/to-sync-iterable.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,CAAC,KAAK,UAAU,MAAM,CAAI,QAAwB;IACtD,OAAO,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3B,CAAC,CAAC,QAAQ;QACV,CAAC,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;AAC7B,CAAC"}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const is_async_iterable_js_1 = require("./is-async-iterable.js");
|
|
5
|
-
function whileAsync(iterable, predicate) {
|
|
6
|
-
return ((0, is_async_iterable_js_1.isAsyncIterable)(iterable))
|
|
1
|
+
import { isAsyncIterable } from './is-async-iterable.js';
|
|
2
|
+
export function whileAsync(iterable, predicate) {
|
|
3
|
+
return (isAsyncIterable(iterable))
|
|
7
4
|
? async(iterable, predicate)
|
|
8
5
|
: sync(iterable, predicate);
|
|
9
6
|
}
|
|
10
|
-
exports.whileAsync = whileAsync;
|
|
11
7
|
async function* sync(iterable, predicate) {
|
|
12
8
|
let index = 0;
|
|
13
9
|
for (const item of iterable) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"while.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/while.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"while.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/while.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGzD,MAAM,UAAU,UAAU,CAAI,QAAwB,EAAE,SAA4B;IAClF,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;QAChC,CAAC,CAAC,KAAK,CAAC,QAAQ,EAAE,SAAS,CAAC;QAC5B,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;AAChC,CAAC;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,8 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.AsyncIteratorIterableIterator = void 0;
|
|
4
|
-
const type_guards_js_1 = require("./type-guards.js");
|
|
5
|
-
class AsyncIteratorIterableIterator {
|
|
1
|
+
import { assertDefined } from './type-guards.js';
|
|
2
|
+
export class AsyncIteratorIterableIterator {
|
|
6
3
|
iterator;
|
|
7
4
|
keepOpen;
|
|
8
5
|
constructor(iterator, keepOpen = false) {
|
|
@@ -13,11 +10,11 @@ class AsyncIteratorIterableIterator {
|
|
|
13
10
|
return this.iterator.next(...args);
|
|
14
11
|
}
|
|
15
12
|
async return(value) {
|
|
16
|
-
|
|
13
|
+
assertDefined(this.iterator.return, 'underlying iterator has no return function defined'); // eslint-disable-line @typescript-eslint/unbound-method
|
|
17
14
|
return this.iterator.return(value);
|
|
18
15
|
}
|
|
19
16
|
async throw(error) {
|
|
20
|
-
|
|
17
|
+
assertDefined(this.iterator.throw, 'underlying iterator has no throw function defined'); // eslint-disable-line @typescript-eslint/unbound-method
|
|
21
18
|
return this.iterator.throw(error);
|
|
22
19
|
}
|
|
23
20
|
async *[Symbol.asyncIterator]() {
|
|
@@ -46,5 +43,4 @@ class AsyncIteratorIterableIterator {
|
|
|
46
43
|
}
|
|
47
44
|
}
|
|
48
45
|
}
|
|
49
|
-
exports.AsyncIteratorIterableIterator = AsyncIteratorIterableIterator;
|
|
50
46
|
//# sourceMappingURL=async-iterator-iterable-iterator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async-iterator-iterable-iterator.js","sourceRoot":"","sources":["../../source/utils/async-iterator-iterable-iterator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"async-iterator-iterable-iterator.js","sourceRoot":"","sources":["../../source/utils/async-iterator-iterable-iterator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAMjD,MAAM,OAAO,6BAA6B;IACvB,QAAQ,CAAmC;IAC3C,QAAQ,CAAU;IAEnC,YAAY,QAA0C,EAAE,WAAoB,KAAK;QAC/E,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,GAAG,IAAkB;QAC9B,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,KAAsC;QACjD,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,oDAAoD,CAAC,CAAC,CAAC,wDAAwD;QACnJ,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,KAAW;QACrB,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,mDAAmD,CAAC,CAAC,CAAC,wDAAwD;QACjJ,OAAO,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IACpC,CAAC;IAED,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC;QAC3B,IAAI,QAAQ,GAAG,KAAK,CAAC;QAErB,IAAI;YACF,OAAO,IAAI,EAAE,EAAE,kEAAkE;gBAC/E,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;gBAE1C,IAAI,MAAM,CAAC,IAAI,IAAI,IAAI,EAAE;oBACvB,QAAQ,GAAG,IAAI,CAAC;oBAChB,OAAO;iBACR;gBAED,IAAI;oBACF,MAAM,MAAM,CAAC,KAAK,CAAC;iBACpB;gBACD,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"}
|