@tstdl/base 0.72.0-beta1 → 0.78.0-beta3
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 +11 -8
- package/api/client/client.d.ts +4 -3
- package/api/client/client.js +29 -35
- package/api/client/client.js.map +1 -1
- package/api/client/index.d.ts +1 -1
- package/api/client/index.js +17 -1
- package/api/client/index.js.map +1 -1
- package/api/default-error-handlers.d.ts +2 -6
- package/api/default-error-handlers.js +15 -12
- package/api/default-error-handlers.js.map +1 -1
- package/api/index.d.ts +3 -3
- package/api/index.js +19 -3
- package/api/index.js.map +1 -1
- package/api/response.d.ts +2 -2
- package/api/response.js +44 -41
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +3 -3
- package/api/server/api-controller.js +16 -9
- package/api/server/api-controller.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +15 -12
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +13 -8
- package/api/server/gateway.js +66 -67
- package/api/server/gateway.js.map +1 -1
- package/api/server/index.d.ts +4 -3
- package/api/server/index.js +20 -3
- package/api/server/index.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +4 -4
- package/api/server/middlewares/allowed-methods.middleware.js +11 -7
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +3 -3
- package/api/server/middlewares/catch-error.middleware.js +7 -3
- package/api/server/middlewares/catch-error.middleware.js.map +1 -1
- package/api/server/middlewares/cors.middleware.d.ts +3 -3
- package/api/server/middlewares/cors.middleware.js +18 -14
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/index.d.ts +4 -4
- package/api/server/middlewares/index.js +20 -4
- package/api/server/middlewares/index.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +2 -2
- package/api/server/middlewares/response-time.middleware.js +9 -5
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +8 -5
- package/api/server/module.js +19 -9
- package/api/server/module.js.map +1 -1
- package/api/server/tokens.d.ts +2 -0
- package/api/server/tokens.js +6 -0
- package/api/server/tokens.js.map +1 -0
- package/api/types.d.ts +12 -40
- package/api/types.js +15 -8
- package/api/types.js.map +1 -1
- package/application/application.d.ts +6 -5
- package/application/application.js +43 -30
- package/application/application.js.map +1 -1
- package/application/index.d.ts +1 -1
- package/application/index.js +17 -1
- package/application/index.js.map +1 -1
- package/async-iterator-symbol.js +5 -1
- package/async-iterator-symbol.js.map +1 -1
- package/collections/awaitable/awaitable-list.d.ts +1 -1
- package/collections/awaitable/awaitable-list.js +13 -8
- package/collections/awaitable/awaitable-list.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +13 -9
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +9 -5
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/awaitable/index.d.ts +3 -3
- package/collections/awaitable/index.js +19 -3
- package/collections/awaitable/index.js.map +1 -1
- package/collections/collection.js +2 -1
- package/collections/index.d.ts +6 -6
- package/collections/index.js +22 -6
- package/collections/index.js.map +1 -1
- package/collections/keyed-set.js +9 -5
- package/collections/keyed-set.js.map +1 -1
- package/collections/list.d.ts +1 -1
- package/collections/list.js +2 -1
- package/collections/observable/index.d.ts +8 -8
- package/collections/observable/index.js +24 -8
- package/collections/observable/index.js.map +1 -1
- package/collections/observable/observable-array.d.ts +2 -2
- package/collections/observable/observable-array.js +6 -2
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.d.ts +2 -2
- package/collections/observable/observable-collection-base.js +23 -18
- package/collections/observable/observable-collection-base.js.map +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-collection.js +2 -1
- package/collections/observable/observable-list-base.d.ts +3 -3
- package/collections/observable/observable-list-base.js +15 -11
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.d.ts +3 -3
- package/collections/observable/observable-list.js +2 -1
- package/collections/observable/observable-map.js +7 -3
- package/collections/observable/observable-map.js.map +1 -1
- package/collections/observable/observable-set.d.ts +2 -2
- package/collections/observable/observable-set.js +6 -2
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +3 -3
- package/collections/observable/observable-sorted-array-list.js +25 -21
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +2 -2
- package/collections/sorted-array-list.js +21 -17
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-list.d.ts +1 -1
- package/collections/sorted-list.js +2 -1
- package/collections/sorted-map.d.ts +2 -2
- package/collections/sorted-map.js +12 -8
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +6 -5
- package/container/container.js +147 -133
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +16 -13
- package/container/decorators.js +77 -84
- package/container/decorators.js.map +1 -1
- package/container/index.d.ts +10 -10
- package/container/index.js +26 -10
- package/container/index.js.map +1 -1
- package/container/interfaces.js +4 -2
- package/container/interfaces.js.map +1 -1
- package/container/provider.d.ts +4 -4
- package/container/provider.js +24 -13
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +6 -6
- package/container/resolve-chain.js +12 -7
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +2 -2
- package/container/resolve.error.js +8 -4
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +1 -1
- package/container/token.js +10 -5
- package/container/token.js.map +1 -1
- package/container/type-info.d.ts +3 -23
- package/container/type-info.js +2 -36
- package/container/type-info.js.map +1 -1
- package/container/types.d.ts +2 -2
- package/container/types.js +2 -1
- package/container/utils.d.ts +2 -2
- package/container/utils.js +23 -30
- package/container/utils.js.map +1 -1
- package/core.d.ts +4 -4
- package/core.js +24 -20
- package/core.js.map +1 -1
- package/css/theme/index.d.ts +2 -2
- package/css/theme/index.js +18 -2
- package/css/theme/index.js.map +1 -1
- package/css/theme/theme.model.js +5 -1
- package/css/theme/theme.model.js.map +1 -1
- package/css/theme/theme.service.d.ts +1 -1
- package/css/theme/theme.service.js +16 -12
- package/css/theme/theme.service.js.map +1 -1
- package/data-structures/array-list.d.ts +2 -2
- package/data-structures/array-list.js +6 -2
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +2 -2
- package/data-structures/circular-buffer.js +25 -21
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +3 -2
- package/data-structures/collection.js +21 -13
- 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 +9 -5
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/index.d.ts +11 -9
- package/data-structures/index.js +27 -9
- package/data-structures/index.js.map +1 -1
- package/data-structures/iterable-weak-map.d.ts +29 -0
- package/data-structures/iterable-weak-map.js +128 -0
- package/data-structures/iterable-weak-map.js.map +1 -0
- package/data-structures/linked-list.d.ts +4 -4
- package/data-structures/linked-list.js +28 -25
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +2 -2
- package/data-structures/list.js +14 -10
- package/data-structures/list.js.map +1 -1
- package/data-structures/multi-key-map.d.ts +13 -2
- package/data-structures/multi-key-map.js +37 -22
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/set.d.ts +18 -0
- package/data-structures/set.js +59 -0
- package/data-structures/set.js.map +1 -0
- package/data-structures/sorted-array-list.d.ts +5 -5
- package/data-structures/sorted-array-list.js +22 -19
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.d.ts +1 -1
- package/data-structures/weak-ref-map.js +17 -13
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +4 -5
- package/database/entity-repository.js +5 -1
- package/database/entity-repository.js.map +1 -1
- package/database/entity.js +2 -1
- package/database/id.js +8 -4
- package/database/id.js.map +1 -1
- package/database/index.d.ts +6 -6
- package/database/index.js +22 -6
- package/database/index.js.map +1 -1
- package/database/module.js +10 -6
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +5 -5
- package/database/mongo/classes.js +14 -11
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/index.d.ts +10 -10
- package/database/mongo/index.js +26 -10
- package/database/mongo/index.js.map +1 -1
- package/database/mongo/{model.d.ts → model/document.d.ts} +3 -3
- package/database/mongo/model/document.js +84 -0
- package/database/mongo/model/document.js.map +1 -0
- package/database/mongo/model/index.d.ts +1 -0
- package/database/mongo/model/index.js +18 -0
- package/database/mongo/model/index.js.map +1 -0
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/module.js +31 -27
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +5 -5
- package/database/mongo/mongo-base.repository.js +43 -39
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +4 -4
- package/database/mongo/mongo-bulk.js +21 -17
- package/database/mongo/mongo-bulk.js.map +1 -1
- package/database/mongo/{mongo-entity.repository.d.ts → mongo-entity-repository.d.ts} +8 -8
- package/database/mongo/{mongo-entity.repository.js → mongo-entity-repository.js} +34 -27
- package/database/mongo/mongo-entity-repository.js.map +1 -0
- package/database/mongo/operations.d.ts +4 -4
- package/database/mongo/operations.js +15 -6
- package/database/mongo/operations.js.map +1 -1
- package/database/mongo/query-converter.d.ts +4 -4
- package/database/mongo/query-converter.js +17 -12
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity-repository.d.ts +7 -0
- package/database/mongo/simple-entity-repository.js +11 -0
- package/database/mongo/simple-entity-repository.js.map +1 -0
- package/database/mongo/types.d.ts +4 -4
- package/database/mongo/types.js +5 -1
- package/database/mongo/types.js.map +1 -1
- package/database/query.d.ts +2 -2
- package/database/query.js +10 -7
- package/database/query.js.map +1 -1
- package/database/utils.d.ts +1 -1
- package/database/utils.js +5 -1
- package/database/utils.js.map +1 -1
- package/disposable/async-disposer.d.ts +4 -4
- package/disposable/async-disposer.js +24 -20
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +12 -7
- package/disposable/disposable.js.map +1 -1
- package/disposable/index.d.ts +3 -3
- package/disposable/index.js +19 -3
- package/disposable/index.js.map +1 -1
- package/disposable/using.d.ts +1 -1
- package/disposable/using.js +10 -5
- package/disposable/using.js.map +1 -1
- package/distributed-loop/controller.js +2 -1
- package/distributed-loop/distributed-loop.d.ts +5 -5
- package/distributed-loop/distributed-loop.js +18 -15
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/index.d.ts +3 -3
- package/distributed-loop/index.js +19 -3
- package/distributed-loop/index.js.map +1 -1
- package/distributed-loop/provider.d.ts +2 -2
- package/distributed-loop/provider.js +10 -7
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +12 -9
- package/enumerable/async-enumerable.js +84 -67
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable-methods.d.ts +3 -0
- package/enumerable/enumerable-methods.js +2 -1
- package/enumerable/enumerable.d.ts +10 -7
- package/enumerable/enumerable.js +61 -45
- package/enumerable/enumerable.js.map +1 -1
- package/enumerable/index.d.ts +2 -2
- package/enumerable/index.js +18 -2
- package/enumerable/index.js.map +1 -1
- package/error/api.error.d.ts +2 -2
- package/error/api.error.js +6 -2
- package/error/api.error.js.map +1 -1
- package/error/assertion.error.d.ts +1 -1
- package/error/assertion.error.js +6 -2
- package/error/assertion.error.js.map +1 -1
- package/error/bad-request.error.d.ts +1 -1
- package/error/bad-request.error.js +6 -2
- package/error/bad-request.error.js.map +1 -1
- package/error/custom.error.d.ts +3 -1
- package/error/custom.error.js +21 -8
- package/error/custom.error.js.map +1 -1
- package/error/details.error.d.ts +1 -1
- package/error/details.error.js +6 -2
- package/error/details.error.js.map +1 -1
- package/error/forbidden.error.d.ts +1 -1
- package/error/forbidden.error.js +6 -2
- package/error/forbidden.error.js.map +1 -1
- package/error/index.d.ts +15 -15
- package/error/index.js +31 -15
- package/error/index.js.map +1 -1
- package/error/invalid-token.error.d.ts +1 -1
- package/error/invalid-token.error.js +6 -2
- package/error/invalid-token.error.js.map +1 -1
- package/error/max-bytes-exceeded.error.d.ts +1 -1
- package/error/max-bytes-exceeded.error.js +6 -2
- package/error/max-bytes-exceeded.error.js.map +1 -1
- package/error/method-not-allowed.error.d.ts +1 -1
- package/error/method-not-allowed.error.js +6 -2
- package/error/method-not-allowed.error.js.map +1 -1
- package/error/multi.error.d.ts +1 -1
- package/error/multi.error.js +6 -2
- package/error/multi.error.js.map +1 -1
- package/error/not-found.error.d.ts +1 -1
- package/error/not-found.error.js +6 -2
- package/error/not-found.error.js.map +1 -1
- package/error/not-implemented.error.d.ts +1 -1
- package/error/not-implemented.error.js +6 -2
- package/error/not-implemented.error.js.map +1 -1
- package/error/unauthorized.error.d.ts +1 -1
- package/error/unauthorized.error.js +6 -2
- package/error/unauthorized.error.js.map +1 -1
- package/error/unsupported-media-type.error.d.ts +1 -1
- package/error/unsupported-media-type.error.js +6 -2
- package/error/unsupported-media-type.error.js.map +1 -1
- package/error/validation.error.d.ts +1 -1
- package/error/validation.error.js +6 -2
- package/error/validation.error.js.map +1 -1
- package/examples/api/basic-overview.js +47 -38
- package/examples/api/basic-overview.js.map +1 -1
- package/examples/http/client.d.ts +1 -0
- package/examples/http/client.js +18 -0
- package/examples/http/client.js.map +1 -0
- package/examples/mail/basic.d.ts +1 -0
- package/examples/mail/basic.js +33 -0
- package/examples/mail/basic.js.map +1 -0
- package/examples/pdf/basic.d.ts +1 -0
- package/examples/pdf/basic.js +24 -0
- package/examples/pdf/basic.js.map +1 -0
- package/examples/pdf/templates/hello-name.d.ts +5 -0
- package/examples/pdf/templates/hello-name.js +10 -0
- package/examples/pdf/templates/hello-name.js.map +1 -0
- package/examples/reflection/basic.d.ts +11 -0
- package/examples/reflection/basic.js +72 -0
- package/examples/reflection/basic.js.map +1 -0
- package/global-this.js +5 -1
- package/global-this.js.map +1 -1
- package/http/client/adapters/got-http-client.adapter.d.ts +3 -3
- package/http/client/adapters/got-http-client.adapter.js +40 -36
- package/http/client/adapters/got-http-client.adapter.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +5 -5
- package/http/client/adapters/undici-http-client.adapter.js +35 -31
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/adapters/utils.d.ts +2 -2
- package/http/client/adapters/utils.js +19 -12
- package/http/client/adapters/utils.js.map +1 -1
- package/http/client/http-client-request.d.ts +13 -13
- package/http/client/http-client-request.js +26 -22
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +5 -5
- package/http/client/http-client-response.js +7 -3
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.adapter.d.ts +3 -3
- package/http/client/http-client.adapter.js +5 -1
- package/http/client/http-client.adapter.js.map +1 -1
- package/http/client/http-client.d.ts +10 -10
- package/http/client/http-client.js +50 -46
- package/http/client/http-client.js.map +1 -1
- package/http/client/index.d.ts +4 -4
- package/http/client/index.js +20 -4
- package/http/client/index.js.map +1 -1
- package/http/cookie-parser.d.ts +1 -1
- package/http/cookie-parser.js +9 -5
- package/http/cookie-parser.js.map +1 -1
- package/http/http-form.d.ts +3 -3
- package/http/http-form.js +6 -2
- package/http/http-form.js.map +1 -1
- package/http/http-headers.d.ts +3 -3
- package/http/http-headers.js +19 -15
- package/http/http-headers.js.map +1 -1
- package/http/http-query.d.ts +3 -3
- package/http/http-query.js +6 -2
- package/http/http-query.js.map +1 -1
- package/http/http-url-parameters.d.ts +3 -3
- package/http/http-url-parameters.js +6 -2
- package/http/http-url-parameters.js.map +1 -1
- package/http/http-value-map.d.ts +2 -2
- package/http/http-value-map.js +23 -19
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +6 -4
- package/http/http.error.js +17 -7
- package/http/http.error.js.map +1 -1
- package/http/index.d.ts +9 -9
- package/http/index.js +25 -9
- package/http/index.js.map +1 -1
- package/http/server/http-server-request.d.ts +5 -5
- package/http/server/http-server-request.js +17 -13
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +4 -3
- package/http/server/http-server-response.js +10 -3
- package/http/server/http-server-response.js.map +1 -1
- package/http/server/http-server.d.ts +3 -2
- package/http/server/http-server.js +6 -2
- package/http/server/http-server.js.map +1 -1
- package/http/server/index.d.ts +3 -3
- package/http/server/index.js +19 -3
- package/http/server/index.js.map +1 -1
- package/http/server/node/index.d.ts +2 -2
- package/http/server/node/index.js +18 -2
- package/http/server/node/index.js.map +1 -1
- package/http/server/node/module.js +9 -5
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +8 -8
- package/http/server/node/node-http-server.js +47 -44
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +1 -1
- package/http/types.js +16 -9
- package/http/types.js.map +1 -1
- package/image-service/image-service.d.ts +32 -65
- package/image-service/image-service.js +77 -15
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +5 -5
- package/image-service/imgproxy/imgproxy-image-service.js +35 -31
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/image-service/imgproxy/index.d.ts +1 -1
- package/image-service/imgproxy/index.js +17 -1
- package/image-service/imgproxy/index.js.map +1 -1
- package/image-service/index.d.ts +1 -1
- package/image-service/index.js +17 -1
- package/image-service/index.js.map +1 -1
- package/index.d.ts +1 -1
- package/index.js +17 -1
- package/index.js.map +1 -1
- package/interfaces.js +2 -1
- package/json-path/index.d.ts +1 -1
- package/json-path/index.js +17 -1
- package/json-path/index.js.map +1 -1
- package/json-path/json-path.d.ts +8 -3
- package/json-path/json-path.js +40 -17
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/index.d.ts +2 -2
- package/key-value-store/index.js +18 -2
- package/key-value-store/index.js.map +1 -1
- package/key-value-store/key-value-store.provider.d.ts +2 -2
- package/key-value-store/key-value-store.provider.js +5 -1
- package/key-value-store/key-value-store.provider.js.map +1 -1
- package/key-value-store/key-value.store.d.ts +3 -3
- package/key-value-store/key-value.store.js +6 -2
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/index.d.ts +5 -5
- package/key-value-store/mongo/index.js +21 -5
- package/key-value-store/mongo/index.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +2 -2
- package/key-value-store/mongo/module.js +14 -10
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value-store.provider.js +10 -7
- 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 +2 -1
- package/key-value-store/mongo/mongo-key-value.model.js +2 -1
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +6 -6
- package/key-value-store/mongo/mongo-key-value.repository.js +14 -11
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +3 -3
- package/key-value-store/mongo/mongo-key-value.store.js +19 -16
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/lock/index.d.ts +2 -2
- package/lock/index.js +18 -2
- package/lock/index.js.map +1 -1
- package/lock/lock.d.ts +2 -2
- package/lock/lock.js +6 -2
- package/lock/lock.js.map +1 -1
- package/lock/mongo/index.d.ts +5 -5
- package/lock/mongo/index.js +21 -5
- package/lock/mongo/index.js.map +1 -1
- package/lock/mongo/lock.d.ts +4 -4
- package/lock/mongo/lock.js +32 -29
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/model.js +2 -1
- package/lock/mongo/module.d.ts +2 -2
- package/lock/mongo/module.js +14 -10
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/{mongo-lock.repository.d.ts → mongo-lock-repository.d.ts} +6 -6
- package/lock/mongo/{mongo-lock.repository.js → mongo-lock-repository.js} +20 -17
- package/lock/mongo/mongo-lock-repository.js.map +1 -0
- package/lock/mongo/provider.d.ts +4 -4
- package/lock/mongo/provider.js +19 -16
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +3 -3
- package/lock/provider.js +6 -2
- package/lock/provider.js.map +1 -1
- package/logger/console/index.d.ts +1 -1
- package/logger/console/index.js +17 -1
- package/logger/console/index.js.map +1 -1
- package/logger/console/logger.d.ts +3 -3
- package/logger/console/logger.js +22 -19
- package/logger/console/logger.js.map +1 -1
- package/logger/index.d.ts +2 -2
- package/logger/index.js +18 -2
- package/logger/index.js.map +1 -1
- package/logger/level.js +5 -2
- package/logger/level.js.map +1 -1
- package/logger/logger.d.ts +3 -3
- package/logger/logger.js +17 -13
- package/logger/logger.js.map +1 -1
- package/logger/noop/index.d.ts +1 -1
- package/logger/noop/index.js +17 -1
- package/logger/noop/index.js.map +1 -1
- package/logger/noop/logger.d.ts +1 -1
- package/logger/noop/logger.js +9 -5
- package/logger/noop/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.d.ts +2 -2
- package/mail/clients/nodemailer.mail-client.js +18 -14
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/index.d.ts +8 -8
- package/mail/index.js +24 -8
- package/mail/index.js.map +1 -1
- package/mail/mail-log.repository.d.ts +2 -2
- package/mail/mail-log.repository.js +6 -2
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail-template-renderer.provider.d.ts +1 -1
- package/mail/mail-template-renderer.provider.js +9 -6
- package/mail/mail-template-renderer.provider.js.map +1 -1
- package/mail/mail-template.provider.d.ts +1 -1
- package/mail/mail-template.provider.js +5 -1
- package/mail/mail-template.provider.js.map +1 -1
- package/mail/mail-template.renderer.d.ts +1 -1
- package/mail/mail-template.renderer.js +5 -1
- package/mail/mail-template.renderer.js.map +1 -1
- package/mail/mail.client.d.ts +3 -3
- package/mail/mail.client.js +6 -2
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +8 -7
- package/mail/mail.service.js +32 -24
- package/mail/mail.service.js.map +1 -1
- package/mail/models/index.d.ts +6 -6
- package/mail/models/index.js +22 -6
- package/mail/models/index.js.map +1 -1
- package/mail/models/mail-address.model.js +2 -1
- package/mail/models/mail-content.model.js +2 -1
- package/mail/models/mail-data.model.d.ts +3 -3
- package/mail/models/mail-data.model.js +2 -1
- package/mail/models/mail-log.model.d.ts +6 -6
- package/mail/models/mail-log.model.js +2 -1
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-send-result.model.js +2 -1
- package/mail/models/mail-template.model.d.ts +0 -1
- package/mail/models/mail-template.model.js +2 -1
- package/mail/module.d.ts +6 -6
- package/mail/module.js +25 -21
- 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 +17 -13
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/template-providers/file-mail-template.provider.d.ts +8 -9
- package/mail/template-providers/file-mail-template.provider.js +29 -47
- package/mail/template-providers/file-mail-template.provider.js.map +1 -1
- package/mail/template-providers/memory-mail-template.provider.d.ts +4 -6
- package/mail/template-providers/memory-mail-template.provider.js +8 -17
- package/mail/template-providers/memory-mail-template.provider.js.map +1 -1
- package/mail/template-renderers/handlebars.mail-template-renderer.d.ts +9 -7
- package/mail/template-renderers/handlebars.mail-template-renderer.js +33 -14
- package/mail/template-renderers/handlebars.mail-template-renderer.js.map +1 -1
- package/mail/template-renderers/mjml.mail-template-renderer.d.ts +9 -10
- package/mail/template-renderers/mjml.mail-template-renderer.js +38 -37
- package/mail/template-renderers/mjml.mail-template-renderer.js.map +1 -1
- package/mail/tokens.d.ts +5 -5
- package/mail/tokens.js +6 -3
- package/mail/tokens.js.map +1 -1
- package/memory/index.d.ts +1 -1
- package/memory/index.js +17 -1
- package/memory/index.js.map +1 -1
- package/memory/observable-finalization-registry.js +7 -3
- package/memory/observable-finalization-registry.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js +7 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +3 -3
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +10 -6
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/broadcast-channel/index.d.ts +2 -2
- package/message-bus/broadcast-channel/index.js +18 -2
- package/message-bus/broadcast-channel/index.js.map +1 -1
- package/message-bus/index.d.ts +3 -3
- package/message-bus/index.js +19 -3
- package/message-bus/index.js.map +1 -1
- package/message-bus/local/index.d.ts +2 -2
- package/message-bus/local/index.js +18 -2
- package/message-bus/local/index.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +3 -3
- package/message-bus/local/local-message-bus-provider.js +24 -20
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +4 -4
- package/message-bus/local/local-message-bus.js +16 -13
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/types.js +2 -1
- package/message-bus/message-bus-base.d.ts +4 -4
- package/message-bus/message-bus-base.js +15 -11
- package/message-bus/message-bus-base.js.map +1 -1
- package/message-bus/message-bus-provider.d.ts +1 -1
- package/message-bus/message-bus-provider.js +5 -1
- package/message-bus/message-bus-provider.js.map +1 -1
- package/message-bus/message-bus.d.ts +4 -4
- package/message-bus/message-bus.js +7 -3
- package/message-bus/message-bus.js.map +1 -1
- package/migration/index.d.ts +3 -3
- package/migration/index.js +19 -3
- package/migration/index.js.map +1 -1
- package/migration/migration-state-repository.d.ts +2 -2
- package/migration/migration-state-repository.js +6 -2
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +1 -1
- package/migration/migration-state.js +2 -1
- package/migration/migrator.d.ts +3 -3
- package/migration/migrator.js +26 -23
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/index.d.ts +2 -2
- package/migration/mongo/index.js +18 -2
- package/migration/mongo/index.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +7 -7
- package/migration/mongo/migration-state-repository.js +15 -12
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +2 -2
- package/migration/mongo/module.js +11 -7
- package/migration/mongo/module.js.map +1 -1
- package/module/index.d.ts +4 -4
- package/module/index.js +20 -4
- package/module/index.js.map +1 -1
- package/module/module-base.d.ts +5 -5
- package/module/module-base.js +15 -11
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +4 -4
- package/module/module-metric-reporter.js +12 -8
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +1 -1
- package/module/module.js +7 -4
- package/module/module.js.map +1 -1
- package/module/modules/function.module.d.ts +10 -0
- package/module/modules/function.module.js +16 -0
- package/module/modules/function.module.js.map +1 -0
- package/module/modules/index.d.ts +2 -2
- package/module/modules/index.js +18 -2
- package/module/modules/index.js.map +1 -1
- package/module/modules/web-server.module.d.ts +10 -11
- package/module/modules/web-server.module.js +25 -29
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +2 -2
- package/module/utils.js +7 -2
- package/module/utils.js.map +1 -1
- package/object-storage/index.d.ts +3 -3
- package/object-storage/index.js +19 -3
- package/object-storage/index.js.map +1 -1
- package/object-storage/object-storage-provider.d.ts +1 -1
- package/object-storage/object-storage-provider.js +5 -1
- package/object-storage/object-storage-provider.js.map +1 -1
- package/object-storage/object-storage.d.ts +8 -3
- package/object-storage/object-storage.js +6 -2
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.js +2 -1
- package/object-storage/s3/index.d.ts +3 -3
- package/object-storage/s3/index.js +19 -3
- package/object-storage/s3/index.js.map +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +3 -3
- package/object-storage/s3/s3.object-storage-provider.js +24 -20
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +4 -3
- package/object-storage/s3/s3.object-storage.js +24 -17
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +1 -1
- package/object-storage/s3/s3.object.js +2 -1
- package/openid-connect/cached-oidc-configuration.service.d.ts +3 -3
- package/openid-connect/cached-oidc-configuration.service.js +17 -14
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.d.ts +7 -7
- package/openid-connect/index.js +27 -11
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +8 -8
- package/openid-connect/mongo-oidc-state.repository.js +17 -13
- 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 +15 -12
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +1 -1
- package/openid-connect/oidc-state.model.js +2 -1
- package/openid-connect/oidc-state.repository.d.ts +2 -2
- package/openid-connect/oidc-state.repository.js +6 -2
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service-model.js +2 -1
- package/openid-connect/oidc.service.d.ts +4 -4
- package/openid-connect/oidc.service.js +35 -32
- package/openid-connect/oidc.service.js.map +1 -1
- package/package.json +19 -19
- package/pdf/index.d.ts +1 -0
- package/pdf/index.js +18 -0
- package/pdf/index.js.map +1 -0
- package/pdf/pdf.service.d.ts +33 -0
- package/pdf/pdf.service.js +82 -0
- package/pdf/pdf.service.js.map +1 -0
- package/pool/index.d.ts +1 -0
- package/pool/index.js +18 -0
- package/pool/index.js.map +1 -0
- package/pool/pool.d.ts +24 -0
- package/pool/pool.js +83 -0
- package/pool/pool.js.map +1 -0
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +19 -11
- package/process-shutdown.js.map +1 -1
- package/promise/cancelable-promise.js +5 -1
- package/promise/cancelable-promise.js.map +1 -1
- package/promise/deferred-promise.js +5 -1
- package/promise/deferred-promise.js.map +1 -1
- package/promise/index.d.ts +2 -2
- package/promise/index.js +18 -2
- package/promise/index.js.map +1 -1
- package/queue/enqueue-batch.d.ts +1 -1
- package/queue/enqueue-batch.js +5 -1
- package/queue/enqueue-batch.js.map +1 -1
- package/queue/index.d.ts +3 -3
- package/queue/index.js +19 -3
- package/queue/index.js.map +1 -1
- package/queue/mongo/index.d.ts +4 -4
- package/queue/mongo/index.js +20 -4
- package/queue/mongo/index.js.map +1 -1
- package/queue/mongo/job.d.ts +3 -3
- package/queue/mongo/job.js +2 -1
- package/queue/mongo/mongo-job.repository.d.ts +7 -7
- package/queue/mongo/mongo-job.repository.js +21 -18
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +6 -6
- package/queue/mongo/queue.js +49 -46
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +10 -10
- package/queue/mongo/queue.provider.js +20 -16
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/provider.d.ts +1 -1
- package/queue/provider.js +5 -1
- package/queue/provider.js.map +1 -1
- package/queue/queue.d.ts +4 -4
- package/queue/queue.js +13 -9
- package/queue/queue.js.map +1 -1
- package/random/index.d.ts +1 -1
- package/random/index.js +17 -1
- package/random/index.js.map +1 -1
- package/random/number/index.d.ts +3 -3
- package/random/number/index.js +19 -3
- package/random/number/index.js.map +1 -1
- package/random/number/mulberry32.d.ts +1 -1
- package/random/number/mulberry32.js +8 -3
- package/random/number/mulberry32.js.map +1 -1
- package/random/number/seeded.js +5 -1
- package/random/number/seeded.js.map +1 -1
- package/random/number/sfc32.d.ts +1 -1
- package/random/number/sfc32.js +8 -3
- package/random/number/sfc32.js.map +1 -1
- package/reflection/decorator-data.d.ts +2 -0
- package/reflection/decorator-data.js +68 -0
- package/reflection/decorator-data.js.map +1 -0
- package/reflection/decorators.d.ts +14 -0
- package/reflection/decorators.js +53 -0
- package/reflection/decorators.js.map +1 -0
- package/reflection/index.d.ts +5 -0
- package/reflection/index.js +22 -0
- package/reflection/index.js.map +1 -0
- package/reflection/reflection-data-map.d.ts +10 -0
- package/reflection/reflection-data-map.js +40 -0
- package/reflection/reflection-data-map.js.map +1 -0
- package/reflection/registry.d.ts +58 -0
- package/reflection/registry.js +107 -0
- package/reflection/registry.js.map +1 -0
- package/reflection/types.d.ts +89 -0
- package/reflection/types.js +3 -0
- package/reflection/types.js.map +1 -0
- package/reflection/utils.d.ts +30 -0
- package/reflection/utils.js +103 -0
- package/reflection/utils.js.map +1 -0
- package/rxjs/cast.js +7 -2
- package/rxjs/cast.js.map +1 -1
- package/rxjs/compat/first-value-from.d.ts +2 -0
- package/rxjs/compat/first-value-from.js +9 -0
- package/rxjs/compat/first-value-from.js.map +1 -0
- package/rxjs/compat/index.d.ts +1 -0
- package/rxjs/compat/index.js +18 -0
- package/rxjs/compat/index.js.map +1 -0
- package/rxjs/index.d.ts +11 -11
- package/rxjs/index.js +27 -11
- package/rxjs/index.js.map +1 -1
- package/rxjs/intersection-observer.js +13 -9
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/mutation-observer.js +13 -9
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/noop.js +7 -2
- package/rxjs/noop.js.map +1 -1
- package/rxjs/performance-observer.js +13 -9
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.js +13 -9
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +18 -13
- package/rxjs/retry-backoff.js.map +1 -1
- package/rxjs/slow-array.js +10 -5
- package/rxjs/slow-array.js.map +1 -1
- package/rxjs/teardown.js +7 -3
- package/rxjs/teardown.js.map +1 -1
- package/rxjs/timing.js +15 -12
- package/rxjs/timing.js.map +1 -1
- package/rxjs/touch.js +11 -7
- package/rxjs/touch.js.map +1 -1
- package/schema/array-constraints/index.d.ts +2 -0
- package/schema/array-constraints/index.js +19 -0
- package/schema/array-constraints/index.js.map +1 -0
- package/schema/array-constraints/maximum-length.d.ts +11 -0
- package/schema/array-constraints/maximum-length.js +26 -0
- package/schema/array-constraints/maximum-length.js.map +1 -0
- package/schema/array-constraints/minimum-length.d.ts +11 -0
- package/schema/array-constraints/minimum-length.js +26 -0
- package/schema/array-constraints/minimum-length.js.map +1 -0
- package/schema/coercers/boolean.coercer.d.ts +9 -0
- package/schema/coercers/boolean.coercer.js +35 -0
- package/schema/coercers/boolean.coercer.js.map +1 -0
- package/schema/coercers/date.coercer.d.ts +9 -0
- package/schema/coercers/date.coercer.js +24 -0
- package/schema/coercers/date.coercer.js.map +1 -0
- package/schema/coercers/default-value.coercer.d.ts +9 -0
- package/schema/coercers/default-value.coercer.js +16 -0
- package/schema/coercers/default-value.coercer.js.map +1 -0
- package/schema/coercers/index.d.ts +7 -0
- package/schema/coercers/index.js +24 -0
- package/schema/coercers/index.js.map +1 -0
- package/schema/coercers/number.coercer.d.ts +9 -0
- package/schema/coercers/number.coercer.js +22 -0
- package/schema/coercers/number.coercer.js.map +1 -0
- package/schema/coercers/regexp.coercer.d.ts +11 -0
- package/schema/coercers/regexp.coercer.js +24 -0
- package/schema/coercers/regexp.coercer.js.map +1 -0
- package/schema/coercers/string.coercer.d.ts +9 -0
- package/schema/coercers/string.coercer.js +22 -0
- package/schema/coercers/string.coercer.js.map +1 -0
- package/schema/coercers/uint8-array.coercer.d.ts +9 -0
- package/schema/coercers/uint8-array.coercer.js +25 -0
- package/schema/coercers/uint8-array.coercer.js.map +1 -0
- package/schema/constraints/enumeration.d.ts +13 -0
- package/schema/constraints/enumeration.js +29 -0
- package/schema/constraints/enumeration.js.map +1 -0
- package/schema/constraints/generic.d.ts +22 -0
- package/schema/constraints/generic.js +32 -0
- package/schema/constraints/generic.js.map +1 -0
- package/schema/constraints/index.d.ts +12 -0
- package/schema/constraints/index.js +29 -0
- package/schema/constraints/index.js.map +1 -0
- package/schema/constraints/integer.d.ts +12 -0
- package/schema/constraints/integer.js +27 -0
- package/schema/constraints/integer.js.map +1 -0
- package/schema/constraints/length.d.ts +6 -0
- package/schema/constraints/length.js +20 -0
- package/schema/constraints/length.js.map +1 -0
- package/schema/constraints/literal.d.ts +10 -0
- package/schema/constraints/literal.js +26 -0
- package/schema/constraints/literal.js.map +1 -0
- package/schema/constraints/maximum-date.d.ts +12 -0
- package/schema/constraints/maximum-date.js +29 -0
- package/schema/constraints/maximum-date.js.map +1 -0
- package/schema/constraints/maximum-length.d.ts +12 -0
- package/schema/constraints/maximum-length.js +29 -0
- package/schema/constraints/maximum-length.js.map +1 -0
- package/schema/constraints/maximum.d.ts +12 -0
- package/schema/constraints/maximum.js +27 -0
- package/schema/constraints/maximum.js.map +1 -0
- package/schema/constraints/minimum-date.d.ts +12 -0
- package/schema/constraints/minimum-date.js +29 -0
- package/schema/constraints/minimum-date.js.map +1 -0
- package/schema/constraints/minimum-length.d.ts +12 -0
- package/schema/constraints/minimum-length.js +29 -0
- package/schema/constraints/minimum-length.js.map +1 -0
- package/schema/constraints/minimum.d.ts +12 -0
- package/schema/constraints/minimum.js +27 -0
- package/schema/constraints/minimum.js.map +1 -0
- package/schema/constraints/pattern.d.ts +13 -0
- package/schema/constraints/pattern.js +28 -0
- package/schema/constraints/pattern.js.map +1 -0
- package/schema/decorators/array.d.ts +5 -0
- package/schema/decorators/array.js +11 -0
- package/schema/decorators/array.js.map +1 -0
- package/schema/decorators/coerce.d.ts +2 -0
- package/schema/decorators/coerce.js +10 -0
- package/schema/decorators/coerce.js.map +1 -0
- package/schema/decorators/defaulted.d.ts +4 -0
- package/schema/decorators/defaulted.js +11 -0
- package/schema/decorators/defaulted.js.map +1 -0
- package/schema/decorators/index.d.ts +8 -0
- package/schema/decorators/index.js +25 -0
- package/schema/decorators/index.js.map +1 -0
- package/schema/decorators/nullable.d.ts +2 -0
- package/schema/decorators/nullable.js +10 -0
- package/schema/decorators/nullable.js.map +1 -0
- package/schema/decorators/optional.d.ts +2 -0
- package/schema/decorators/optional.js +10 -0
- package/schema/decorators/optional.js.map +1 -0
- package/schema/decorators/property.d.ts +6 -0
- package/schema/decorators/property.js +20 -0
- package/schema/decorators/property.js.map +1 -0
- package/schema/decorators/type.d.ts +3 -0
- package/schema/decorators/type.js +10 -0
- package/schema/decorators/type.js.map +1 -0
- package/schema/decorators/types.d.ts +18 -0
- package/schema/decorators/types.js +3 -0
- package/schema/decorators/types.js.map +1 -0
- package/schema/decorators/utils.d.ts +10 -0
- package/schema/decorators/utils.js +59 -0
- package/schema/decorators/utils.js.map +1 -0
- package/schema/index.d.ts +10 -4
- package/schema/index.js +26 -4
- package/schema/index.js.map +1 -1
- package/schema/schema.d.ts +18 -0
- package/schema/schema.error.d.ts +15 -9
- package/schema/schema.error.js +52 -15
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +287 -0
- package/schema/schema.js.map +1 -0
- package/schema/schemas/any.d.ts +4 -8
- package/schema/schemas/any.js +12 -12
- package/schema/schemas/any.js.map +1 -1
- package/schema/schemas/array.d.ts +8 -13
- package/schema/schemas/array.js +19 -43
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/assign.d.ts +8 -0
- package/schema/schemas/assign.js +27 -0
- package/schema/schemas/assign.js.map +1 -0
- package/schema/schemas/boolean.d.ts +5 -9
- package/schema/schemas/boolean.js +15 -37
- package/schema/schemas/boolean.js.map +1 -1
- package/schema/schemas/constraint.d.ts +4 -0
- package/schema/schemas/constraint.js +14 -0
- package/schema/schemas/constraint.js.map +1 -0
- package/schema/schemas/date.d.ts +7 -11
- package/schema/schemas/date.js +23 -53
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +3 -15
- package/schema/schemas/defaulted.js +11 -22
- package/schema/schemas/defaulted.js.map +1 -1
- package/schema/schemas/enumeration.d.ts +6 -21
- package/schema/schemas/enumeration.js +17 -49
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/exclude.d.ts +4 -0
- package/schema/schemas/exclude.js +17 -0
- package/schema/schemas/exclude.js.map +1 -0
- package/schema/schemas/index.d.ts +23 -24
- package/schema/schemas/index.js +39 -24
- package/schema/schemas/index.js.map +1 -1
- package/schema/schemas/instance.d.ts +2 -12
- package/schema/schemas/instance.js +8 -19
- package/schema/schemas/instance.js.map +1 -1
- package/schema/schemas/literal.d.ts +4 -11
- package/schema/schemas/literal.js +17 -17
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +2 -13
- package/schema/schemas/nullable.js +7 -25
- package/schema/schemas/nullable.js.map +1 -1
- package/schema/schemas/number.d.ts +7 -14
- package/schema/schemas/number.js +31 -44
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +6 -27
- package/schema/schemas/object.js +12 -82
- package/schema/schemas/object.js.map +1 -1
- package/schema/schemas/optional.d.ts +3 -13
- package/schema/schemas/optional.js +7 -25
- package/schema/schemas/optional.js.map +1 -1
- package/schema/schemas/pick.d.ts +4 -0
- package/schema/schemas/pick.js +17 -0
- package/schema/schemas/pick.js.map +1 -0
- package/schema/schemas/readable-stream.d.ts +4 -9
- package/schema/schemas/readable-stream.js +13 -14
- package/schema/schemas/readable-stream.js.map +1 -1
- package/schema/schemas/record.d.ts +4 -0
- package/schema/schemas/record.js +14 -0
- package/schema/schemas/record.js.map +1 -0
- package/schema/schemas/regexp.d.ts +6 -9
- package/schema/schemas/regexp.js +14 -26
- package/schema/schemas/regexp.js.map +1 -1
- package/schema/schemas/string.d.ts +9 -13
- package/schema/schemas/string.js +39 -46
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +4 -16
- package/schema/schemas/transform.js +10 -35
- package/schema/schemas/transform.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +8 -11
- package/schema/schemas/uint8-array.js +25 -32
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +9 -17
- package/schema/schemas/union.js +16 -34
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +4 -8
- package/schema/schemas/unknown.js +12 -12
- package/schema/schemas/unknown.js.map +1 -1
- package/schema/transformers/generic.d.ts +13 -0
- package/schema/transformers/generic.js +28 -0
- package/schema/transformers/generic.js.map +1 -0
- package/schema/transformers/index.d.ts +3 -0
- package/schema/transformers/index.js +20 -0
- package/schema/transformers/index.js.map +1 -0
- package/schema/transformers/lowercase.d.ts +9 -0
- package/schema/transformers/lowercase.js +22 -0
- package/schema/transformers/lowercase.js.map +1 -0
- package/schema/transformers/trim.d.ts +9 -0
- package/schema/transformers/trim.js +22 -0
- package/schema/transformers/trim.js.map +1 -0
- package/schema/transformers/uppercase.d.ts +9 -0
- package/schema/transformers/uppercase.js +22 -0
- package/schema/transformers/uppercase.js.map +1 -0
- package/schema/types.d.ts +143 -17
- package/schema/types.js +74 -1
- package/schema/types.js.map +1 -1
- package/schema/utils/index.d.ts +2 -0
- package/schema/utils/index.js +19 -0
- package/schema/utils/index.js.map +1 -0
- package/schema/utils/schema.d.ts +8 -0
- package/schema/utils/schema.js +56 -0
- package/schema/utils/schema.js.map +1 -0
- package/schema/utils/value-type.d.ts +3 -0
- package/schema/utils/value-type.js +19 -0
- package/schema/utils/value-type.js.map +1 -0
- package/search-index/elastic/config.d.ts +3 -3
- package/search-index/elastic/config.js +9 -6
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/index.d.ts +6 -5
- package/search-index/elastic/index.js +22 -5
- package/search-index/elastic/index.js.map +1 -1
- package/search-index/elastic/keyword-rewriter.d.ts +8 -0
- package/search-index/elastic/keyword-rewriter.js +22 -0
- package/search-index/elastic/keyword-rewriter.js.map +1 -0
- package/search-index/elastic/model/elastic-query.d.ts +1 -1
- package/search-index/elastic/model/elastic-query.js +2 -1
- package/search-index/elastic/model/index-mapping.d.ts +3 -3
- package/search-index/elastic/model/index-mapping.js +7 -3
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/index.d.ts +3 -3
- package/search-index/elastic/model/index.js +19 -3
- package/search-index/elastic/model/index.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +3 -3
- package/search-index/elastic/model/sort.js +2 -1
- package/search-index/elastic/module.d.ts +4 -4
- package/search-index/elastic/module.js +27 -22
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.d.ts +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js +5 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +1 -1
- package/search-index/elastic/query-builder/index.d.ts +1 -1
- package/search-index/elastic/query-builder/index.js +17 -1
- package/search-index/elastic/query-builder/index.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +4 -4
- package/search-index/elastic/query-converter.js +37 -29
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +13 -11
- package/search-index/elastic/search-index.js +45 -31
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +4 -3
- package/search-index/elastic/sort-converter.js +6 -3
- package/search-index/elastic/sort-converter.js.map +1 -1
- package/search-index/elastic/types.d.ts +1 -1
- package/search-index/elastic/types.js +2 -1
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +8 -4
- package/search-index/error.js.map +1 -1
- package/search-index/index.d.ts +3 -3
- package/search-index/index.js +19 -3
- package/search-index/index.js.map +1 -1
- package/search-index/memory/index.d.ts +1 -1
- package/search-index/memory/index.js +17 -1
- package/search-index/memory/index.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +4 -4
- package/search-index/memory/memory-search-index.js +32 -24
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +4 -2
- package/search-index/search-index.js +8 -4
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +1 -1
- package/search-index/search-result.js +2 -1
- package/serializer/handlers/binary.d.ts +2 -2
- package/serializer/handlers/binary.js +20 -11
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/date.js +7 -2
- package/serializer/handlers/date.js.map +1 -1
- package/serializer/handlers/error.js +7 -2
- package/serializer/handlers/error.js.map +1 -1
- package/serializer/handlers/index.d.ts +7 -7
- package/serializer/handlers/index.js +23 -7
- package/serializer/handlers/index.js.map +1 -1
- package/serializer/handlers/map.d.ts +1 -1
- package/serializer/handlers/map.js +7 -2
- package/serializer/handlers/map.js.map +1 -1
- package/serializer/handlers/regex.js +7 -2
- package/serializer/handlers/regex.js.map +1 -1
- package/serializer/handlers/register.d.ts +1 -1
- package/serializer/handlers/register.js +21 -17
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.d.ts +2 -2
- package/serializer/handlers/set.js +7 -2
- package/serializer/handlers/set.js.map +1 -1
- package/serializer/index.d.ts +4 -4
- package/serializer/index.js +24 -3
- package/serializer/index.js.map +1 -1
- package/serializer/serializable.d.ts +1 -1
- package/serializer/serializable.js +20 -12
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +41 -33
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +1 -1
- package/serializer/types.js +8 -5
- package/serializer/types.js.map +1 -1
- package/tailwind/colors.d.ts +1 -1
- package/tailwind/colors.js +9 -4
- package/tailwind/colors.js.map +1 -1
- package/tailwind/index.d.ts +1 -1
- package/tailwind/index.js +17 -1
- package/tailwind/index.js.map +1 -1
- package/templates/index.d.ts +7 -0
- package/templates/index.js +24 -0
- package/templates/index.js.map +1 -0
- package/templates/module.d.ts +12 -0
- package/templates/module.js +25 -0
- package/templates/module.js.map +1 -0
- package/templates/providers/file-template.provider.base.d.ts +12 -0
- package/templates/providers/file-template.provider.base.js +50 -0
- package/templates/providers/file-template.provider.base.js.map +1 -0
- package/templates/providers/file-template.provider.d.ts +22 -0
- package/templates/providers/file-template.provider.js +47 -0
- package/templates/providers/file-template.provider.js.map +1 -0
- package/templates/providers/memory-template.provider.base.d.ts +9 -0
- package/templates/providers/memory-template.provider.base.js +35 -0
- package/templates/providers/memory-template.provider.base.js.map +1 -0
- package/templates/providers/memory-template.provider.d.ts +4 -0
- package/templates/providers/memory-template.provider.js +18 -0
- package/templates/providers/memory-template.provider.js.map +1 -0
- package/templates/renderers/handlebars.template-renderer.d.ts +11 -0
- package/templates/renderers/handlebars.template-renderer.js +26 -0
- package/templates/renderers/handlebars.template-renderer.js.map +1 -0
- package/templates/renderers/mjml.template-renderer.d.ts +15 -0
- package/templates/renderers/mjml.template-renderer.js +57 -0
- package/templates/renderers/mjml.template-renderer.js.map +1 -0
- package/templates/template-renderer.provider.d.ts +8 -0
- package/templates/template-renderer.provider.js +60 -0
- package/templates/template-renderer.provider.js.map +1 -0
- package/templates/template.model.d.ts +5 -0
- package/templates/template.model.js +3 -0
- package/templates/template.model.js.map +1 -0
- package/templates/template.provider.d.ts +4 -0
- package/templates/template.provider.js +7 -0
- package/templates/template.provider.js.map +1 -0
- package/templates/template.renderer.d.ts +6 -0
- package/templates/template.renderer.js +7 -0
- package/templates/template.renderer.js.map +1 -0
- package/templates/template.service.d.ts +11 -0
- package/templates/template.service.js +39 -0
- package/templates/template.service.js.map +1 -0
- package/templates/tokens.d.ts +3 -0
- package/templates/tokens.js +6 -0
- package/templates/tokens.js.map +1 -0
- package/tokens.d.ts +1 -1
- package/tokens.js +5 -2
- package/tokens.js.map +1 -1
- package/tsconfig.json +3 -7
- package/types/geo-json.d.ts +1 -1
- package/types/geo-json.js +2 -1
- package/types.d.ts +57 -6
- package/types.js +2 -1
- package/types.js.map +1 -1
- package/utils/alphabet.js +5 -2
- package/utils/alphabet.js.map +1 -1
- package/utils/any-iterable-iterator.js +8 -4
- package/utils/any-iterable-iterator.js.map +1 -1
- package/utils/array/array-backtracker.js +12 -8
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/array/array.js +21 -13
- package/utils/array/array.js.map +1 -1
- package/utils/array/index.d.ts +2 -2
- package/utils/array/index.js +18 -2
- package/utils/array/index.js.map +1 -1
- package/utils/async-iterable-helpers/all.d.ts +2 -2
- package/utils/async-iterable-helpers/all.js +7 -3
- package/utils/async-iterable-helpers/all.js.map +1 -1
- package/utils/async-iterable-helpers/any.d.ts +2 -2
- package/utils/async-iterable-helpers/any.js +7 -3
- package/utils/async-iterable-helpers/any.js.map +1 -1
- package/utils/async-iterable-helpers/assert.d.ts +2 -2
- package/utils/async-iterable-helpers/assert.js +10 -6
- package/utils/async-iterable-helpers/assert.js.map +1 -1
- package/utils/async-iterable-helpers/batch.d.ts +1 -1
- package/utils/async-iterable-helpers/batch.js +7 -3
- package/utils/async-iterable-helpers/batch.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.d.ts +1 -1
- package/utils/async-iterable-helpers/buffer.js +13 -9
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/concat.d.ts +2 -2
- package/utils/async-iterable-helpers/concat.js +8 -3
- package/utils/async-iterable-helpers/concat.js.map +1 -1
- package/utils/async-iterable-helpers/default-if-empty.d.ts +1 -1
- package/utils/async-iterable-helpers/default-if-empty.js +5 -1
- package/utils/async-iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/async-iterable-helpers/deferred.d.ts +1 -1
- package/utils/async-iterable-helpers/deferred.js +5 -1
- package/utils/async-iterable-helpers/deferred.js.map +1 -1
- package/utils/async-iterable-helpers/difference.d.ts +4 -0
- package/utils/async-iterable-helpers/difference.js +34 -0
- package/utils/async-iterable-helpers/difference.js.map +1 -0
- package/utils/async-iterable-helpers/distinct.d.ts +2 -2
- package/utils/async-iterable-helpers/distinct.js +7 -3
- package/utils/async-iterable-helpers/distinct.js.map +1 -1
- package/utils/async-iterable-helpers/drain.d.ts +1 -1
- package/utils/async-iterable-helpers/drain.js +5 -1
- package/utils/async-iterable-helpers/drain.js.map +1 -1
- package/utils/async-iterable-helpers/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/filter.js +7 -3
- package/utils/async-iterable-helpers/filter.js.map +1 -1
- package/utils/async-iterable-helpers/first-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/first-or-default.js +7 -3
- package/utils/async-iterable-helpers/first-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/first.d.ts +3 -3
- package/utils/async-iterable-helpers/first.js +7 -3
- package/utils/async-iterable-helpers/first.js.map +1 -1
- package/utils/async-iterable-helpers/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/for-each.js +7 -3
- package/utils/async-iterable-helpers/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/group-single.d.ts +2 -2
- package/utils/async-iterable-helpers/group-single.js +7 -3
- package/utils/async-iterable-helpers/group-single.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-map.js +10 -6
- package/utils/async-iterable-helpers/group-to-map.js.map +1 -1
- package/utils/async-iterable-helpers/group-to-single-map.d.ts +2 -2
- package/utils/async-iterable-helpers/group-to-single-map.js +7 -3
- package/utils/async-iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/async-iterable-helpers/group.d.ts +2 -2
- package/utils/async-iterable-helpers/group.js +7 -3
- package/utils/async-iterable-helpers/group.js.map +1 -1
- package/utils/async-iterable-helpers/index.d.ts +47 -45
- package/utils/async-iterable-helpers/index.js +63 -45
- package/utils/async-iterable-helpers/index.js.map +1 -1
- package/utils/async-iterable-helpers/interrupt.d.ts +1 -1
- package/utils/async-iterable-helpers/interrupt.js +12 -7
- package/utils/async-iterable-helpers/interrupt.js.map +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/is-async-iterable.js +10 -5
- package/utils/async-iterable-helpers/is-async-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/last-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/last-or-default.js +7 -3
- package/utils/async-iterable-helpers/last-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/last.d.ts +3 -3
- package/utils/async-iterable-helpers/last.js +7 -3
- package/utils/async-iterable-helpers/last.js.map +1 -1
- package/utils/async-iterable-helpers/map-many.d.ts +2 -2
- package/utils/async-iterable-helpers/map-many.js +7 -3
- package/utils/async-iterable-helpers/map-many.js.map +1 -1
- package/utils/async-iterable-helpers/map.d.ts +2 -2
- package/utils/async-iterable-helpers/map.js +7 -3
- package/utils/async-iterable-helpers/map.js.map +1 -1
- package/utils/async-iterable-helpers/materialize.d.ts +1 -1
- package/utils/async-iterable-helpers/materialize.js +9 -5
- package/utils/async-iterable-helpers/materialize.js.map +1 -1
- package/utils/async-iterable-helpers/metadata.d.ts +2 -2
- package/utils/async-iterable-helpers/metadata.js +11 -5
- package/utils/async-iterable-helpers/metadata.js.map +1 -1
- package/utils/async-iterable-helpers/multiplex.d.ts +1 -1
- package/utils/async-iterable-helpers/multiplex.js +8 -4
- package/utils/async-iterable-helpers/multiplex.js.map +1 -1
- package/utils/async-iterable-helpers/observable-iterable.js +13 -9
- package/utils/async-iterable-helpers/observable-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/pairwise.d.ts +1 -1
- package/utils/async-iterable-helpers/pairwise.js +7 -3
- package/utils/async-iterable-helpers/pairwise.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/feed.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/feed.js +11 -7
- package/utils/async-iterable-helpers/parallel/feed.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/filter.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/filter.js +7 -3
- package/utils/async-iterable-helpers/parallel/filter.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/for-each.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/for-each.js +9 -5
- package/utils/async-iterable-helpers/parallel/for-each.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/group.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/group.js +9 -5
- package/utils/async-iterable-helpers/parallel/group.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/index.d.ts +7 -7
- package/utils/async-iterable-helpers/parallel/index.js +23 -7
- package/utils/async-iterable-helpers/parallel/index.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/map.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/map.js +7 -3
- package/utils/async-iterable-helpers/parallel/map.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/parallel/tap.js +7 -3
- package/utils/async-iterable-helpers/parallel/tap.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/types.js +2 -1
- package/utils/async-iterable-helpers/reduce.d.ts +2 -2
- package/utils/async-iterable-helpers/reduce.js +7 -3
- package/utils/async-iterable-helpers/reduce.js.map +1 -1
- package/utils/async-iterable-helpers/retry.d.ts +2 -2
- package/utils/async-iterable-helpers/retry.js +7 -3
- package/utils/async-iterable-helpers/retry.js.map +1 -1
- package/utils/async-iterable-helpers/single-or-default.d.ts +3 -3
- package/utils/async-iterable-helpers/single-or-default.js +5 -1
- package/utils/async-iterable-helpers/single-or-default.js.map +1 -1
- package/utils/async-iterable-helpers/single.d.ts +3 -3
- package/utils/async-iterable-helpers/single.js +5 -1
- package/utils/async-iterable-helpers/single.js.map +1 -1
- package/utils/async-iterable-helpers/skip.d.ts +1 -1
- package/utils/async-iterable-helpers/skip.js +7 -3
- package/utils/async-iterable-helpers/skip.js.map +1 -1
- package/utils/async-iterable-helpers/sort.d.ts +2 -2
- package/utils/async-iterable-helpers/sort.js +9 -5
- package/utils/async-iterable-helpers/sort.js.map +1 -1
- package/utils/async-iterable-helpers/take-until.d.ts +2 -2
- package/utils/async-iterable-helpers/take-until.js +11 -6
- package/utils/async-iterable-helpers/take-until.js.map +1 -1
- package/utils/async-iterable-helpers/take-while.d.ts +2 -2
- package/utils/async-iterable-helpers/take-while.js +7 -3
- package/utils/async-iterable-helpers/take-while.js.map +1 -1
- package/utils/async-iterable-helpers/take.d.ts +1 -1
- package/utils/async-iterable-helpers/take.js +5 -1
- package/utils/async-iterable-helpers/take.js.map +1 -1
- package/utils/async-iterable-helpers/tap.d.ts +2 -2
- package/utils/async-iterable-helpers/tap.js +7 -3
- package/utils/async-iterable-helpers/tap.js.map +1 -1
- package/utils/async-iterable-helpers/throttle.d.ts +2 -2
- package/utils/async-iterable-helpers/throttle.js +7 -3
- package/utils/async-iterable-helpers/throttle.js.map +1 -1
- package/utils/async-iterable-helpers/to-array.d.ts +1 -1
- package/utils/async-iterable-helpers/to-array.js +7 -3
- package/utils/async-iterable-helpers/to-array.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js +9 -3
- package/utils/async-iterable-helpers/to-async-iterable-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.d.ts +1 -1
- package/utils/async-iterable-helpers/to-async-iterator.js +14 -9
- package/utils/async-iterable-helpers/to-async-iterator.js.map +1 -1
- package/utils/async-iterable-helpers/to-set.d.ts +2 -0
- package/utils/async-iterable-helpers/to-set.js +16 -0
- package/utils/async-iterable-helpers/to-set.js.map +1 -0
- package/utils/async-iterable-helpers/to-sync-iterable.d.ts +1 -1
- package/utils/async-iterable-helpers/to-sync-iterable.js +9 -5
- package/utils/async-iterable-helpers/to-sync-iterable.js.map +1 -1
- package/utils/async-iterable-helpers/types.d.ts +1 -1
- package/utils/async-iterable-helpers/types.js +2 -1
- package/utils/async-iterable-helpers/while.d.ts +2 -2
- package/utils/async-iterable-helpers/while.js +7 -3
- package/utils/async-iterable-helpers/while.js.map +1 -1
- package/utils/async-iterator-iterable-iterator.js +8 -4
- package/utils/async-iterator-iterable-iterator.js.map +1 -1
- package/utils/backoff.d.ts +2 -2
- package/utils/backoff.js +20 -13
- package/utils/backoff.js.map +1 -1
- package/utils/base64.d.ts +1 -1
- package/utils/base64.js +24 -13
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.js +25 -17
- package/utils/benchmark.js.map +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary-search.js +18 -8
- package/utils/binary-search.js.map +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +12 -6
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.js +25 -21
- package/utils/cancellation-token.js.map +1 -1
- package/utils/clone.d.ts +1 -0
- package/utils/clone.js +45 -0
- package/utils/clone.js.map +1 -0
- package/utils/comparison.js +17 -7
- package/utils/comparison.js.map +1 -1
- package/utils/compression.d.ts +2 -2
- package/utils/compression.js +25 -18
- package/utils/compression.js.map +1 -1
- package/utils/config-parser.js +18 -11
- package/utils/config-parser.js.map +1 -1
- package/utils/cryptography.d.ts +1 -1
- package/utils/cryptography.js +67 -53
- package/utils/cryptography.js.map +1 -1
- package/utils/date-time.js +55 -33
- package/utils/date-time.js.map +1 -1
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +19 -12
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +6 -5
- package/utils/enum.js +18 -7
- package/utils/enum.js.map +1 -1
- package/utils/equals.d.ts +2 -2
- package/utils/equals.js +21 -15
- package/utils/equals.js.map +1 -1
- package/utils/event-loop.d.ts +2 -2
- package/utils/event-loop.js +14 -9
- package/utils/event-loop.js.map +1 -1
- package/utils/factory-map.js +5 -1
- package/utils/factory-map.js.map +1 -1
- package/utils/feedable-async-iterable.js +13 -8
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/file-reader.js +13 -6
- package/utils/file-reader.js.map +1 -1
- package/utils/format-error.d.ts +20 -0
- package/utils/format-error.js +42 -0
- package/utils/format-error.js.map +1 -0
- package/utils/function/index.d.ts +2 -2
- package/utils/function/index.js +18 -2
- package/utils/function/index.js.map +1 -1
- package/utils/function/memoize.d.ts +6 -2
- package/utils/function/memoize.js +34 -21
- package/utils/function/memoize.js.map +1 -1
- package/utils/function/throttle.js +9 -5
- package/utils/function/throttle.js.map +1 -1
- package/utils/helpers.d.ts +1 -32
- package/utils/helpers.js +34 -163
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +30 -22
- package/utils/image.js.map +1 -1
- package/utils/index.d.ts +45 -42
- package/utils/index.js +61 -42
- package/utils/index.js.map +1 -1
- package/utils/iterable-helpers/all.d.ts +1 -1
- package/utils/iterable-helpers/all.js +5 -1
- package/utils/iterable-helpers/all.js.map +1 -1
- package/utils/iterable-helpers/any.d.ts +1 -1
- package/utils/iterable-helpers/any.js +5 -1
- package/utils/iterable-helpers/any.js.map +1 -1
- package/utils/iterable-helpers/assert.d.ts +1 -1
- package/utils/iterable-helpers/assert.js +7 -3
- package/utils/iterable-helpers/assert.js.map +1 -1
- package/utils/iterable-helpers/batch.js +5 -1
- package/utils/iterable-helpers/batch.js.map +1 -1
- package/utils/iterable-helpers/concat.d.ts +1 -1
- package/utils/iterable-helpers/concat.js +8 -3
- package/utils/iterable-helpers/concat.js.map +1 -1
- package/utils/iterable-helpers/default-if-empty.js +5 -1
- package/utils/iterable-helpers/default-if-empty.js.map +1 -1
- package/utils/iterable-helpers/deferred.js +5 -1
- package/utils/iterable-helpers/deferred.js.map +1 -1
- package/utils/iterable-helpers/difference.d.ts +3 -0
- package/utils/iterable-helpers/difference.js +31 -0
- package/utils/iterable-helpers/difference.js.map +1 -0
- package/utils/iterable-helpers/distinct.d.ts +1 -1
- package/utils/iterable-helpers/distinct.js +5 -1
- package/utils/iterable-helpers/distinct.js.map +1 -1
- package/utils/iterable-helpers/drain.js +5 -1
- package/utils/iterable-helpers/drain.js.map +1 -1
- package/utils/iterable-helpers/filter.d.ts +1 -1
- package/utils/iterable-helpers/filter.js +5 -1
- package/utils/iterable-helpers/filter.js.map +1 -1
- package/utils/iterable-helpers/first-or-default.d.ts +1 -1
- package/utils/iterable-helpers/first-or-default.js +7 -3
- package/utils/iterable-helpers/first-or-default.js.map +1 -1
- package/utils/iterable-helpers/first.d.ts +1 -1
- package/utils/iterable-helpers/first.js +7 -3
- package/utils/iterable-helpers/first.js.map +1 -1
- package/utils/iterable-helpers/for-each.d.ts +1 -1
- package/utils/iterable-helpers/for-each.js +5 -1
- package/utils/iterable-helpers/for-each.js.map +1 -1
- package/utils/iterable-helpers/group-single.d.ts +1 -1
- package/utils/iterable-helpers/group-single.js +7 -3
- package/utils/iterable-helpers/group-single.js.map +1 -1
- package/utils/iterable-helpers/group-to-map.d.ts +1 -1
- package/utils/iterable-helpers/group-to-map.js +7 -3
- package/utils/iterable-helpers/group-to-map.js.map +1 -1
- package/utils/iterable-helpers/group-to-single-map.d.ts +1 -1
- package/utils/iterable-helpers/group-to-single-map.js +5 -1
- package/utils/iterable-helpers/group-to-single-map.js.map +1 -1
- package/utils/iterable-helpers/group.d.ts +1 -1
- package/utils/iterable-helpers/group.js +7 -3
- package/utils/iterable-helpers/group.js.map +1 -1
- package/utils/iterable-helpers/index.d.ts +38 -37
- package/utils/iterable-helpers/index.js +54 -37
- package/utils/iterable-helpers/index.js.map +1 -1
- package/utils/iterable-helpers/is-iterable.d.ts +1 -1
- package/utils/iterable-helpers/is-iterable.js +10 -5
- package/utils/iterable-helpers/is-iterable.js.map +1 -1
- package/utils/iterable-helpers/last-or-default.d.ts +1 -1
- package/utils/iterable-helpers/last-or-default.js +7 -3
- package/utils/iterable-helpers/last-or-default.js.map +1 -1
- package/utils/iterable-helpers/last.d.ts +1 -1
- package/utils/iterable-helpers/last.js +7 -3
- package/utils/iterable-helpers/last.js.map +1 -1
- package/utils/iterable-helpers/map-many.d.ts +1 -1
- package/utils/iterable-helpers/map-many.js +5 -1
- package/utils/iterable-helpers/map-many.js.map +1 -1
- package/utils/iterable-helpers/map.d.ts +1 -1
- package/utils/iterable-helpers/map.js +5 -1
- package/utils/iterable-helpers/map.js.map +1 -1
- package/utils/iterable-helpers/materialize.js +5 -1
- package/utils/iterable-helpers/materialize.js.map +1 -1
- package/utils/iterable-helpers/metadata.d.ts +1 -1
- package/utils/iterable-helpers/metadata.js +5 -1
- package/utils/iterable-helpers/metadata.js.map +1 -1
- package/utils/iterable-helpers/pairwise.js +5 -1
- package/utils/iterable-helpers/pairwise.js.map +1 -1
- package/utils/iterable-helpers/range.js +5 -1
- package/utils/iterable-helpers/range.js.map +1 -1
- package/utils/iterable-helpers/reduce.d.ts +1 -1
- package/utils/iterable-helpers/reduce.js +5 -1
- package/utils/iterable-helpers/reduce.js.map +1 -1
- package/utils/iterable-helpers/single-or-default.d.ts +1 -1
- package/utils/iterable-helpers/single-or-default.js +5 -1
- package/utils/iterable-helpers/single-or-default.js.map +1 -1
- package/utils/iterable-helpers/single.d.ts +1 -1
- package/utils/iterable-helpers/single.js +5 -1
- package/utils/iterable-helpers/single.js.map +1 -1
- package/utils/iterable-helpers/skip.js +5 -1
- package/utils/iterable-helpers/skip.js.map +1 -1
- package/utils/iterable-helpers/sort.d.ts +1 -1
- package/utils/iterable-helpers/sort.js +6 -2
- package/utils/iterable-helpers/sort.js.map +1 -1
- package/utils/iterable-helpers/take-until.d.ts +1 -1
- package/utils/iterable-helpers/take-until.js +5 -1
- package/utils/iterable-helpers/take-until.js.map +1 -1
- package/utils/iterable-helpers/take-while.d.ts +1 -1
- package/utils/iterable-helpers/take-while.js +5 -1
- package/utils/iterable-helpers/take-while.js.map +1 -1
- package/utils/iterable-helpers/take.js +5 -1
- package/utils/iterable-helpers/take.js.map +1 -1
- package/utils/iterable-helpers/tap.d.ts +1 -1
- package/utils/iterable-helpers/tap.js +5 -1
- package/utils/iterable-helpers/tap.js.map +1 -1
- package/utils/iterable-helpers/types.js +2 -1
- package/utils/iterable-helpers/while.d.ts +1 -1
- package/utils/iterable-helpers/while.js +5 -1
- package/utils/iterable-helpers/while.js.map +1 -1
- package/utils/jwt.d.ts +2 -2
- package/utils/jwt.js +31 -26
- package/utils/jwt.js.map +1 -1
- package/utils/map.js +15 -7
- package/utils/map.js.map +1 -1
- package/utils/math.js +17 -7
- package/utils/math.js.map +1 -1
- package/utils/merge.d.ts +5 -0
- package/utils/merge.js +32 -0
- package/utils/merge.js.map +1 -0
- package/utils/middleware.js +7 -2
- package/utils/middleware.js.map +1 -1
- package/utils/moving-metric.js +9 -5
- package/utils/moving-metric.js.map +1 -1
- package/utils/noop.js +5 -1
- package/utils/noop.js.map +1 -1
- package/utils/object/decycle.d.ts +16 -0
- package/utils/object/decycle.js +81 -0
- package/utils/object/decycle.js.map +1 -0
- package/utils/object/dereference.js +13 -7
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.js +15 -12
- package/utils/object/forward-ref.js.map +1 -1
- package/utils/object/index.d.ts +7 -6
- package/utils/object/index.js +23 -6
- package/utils/object/index.js.map +1 -1
- package/utils/object/lazy-property.d.ts +1 -1
- package/utils/object/lazy-property.js +22 -15
- package/utils/object/lazy-property.js.map +1 -1
- package/utils/object/merge.js +17 -13
- package/utils/object/merge.js.map +1 -1
- package/utils/object/object.d.ts +10 -2
- package/utils/object/object.js +57 -25
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +1 -1
- package/utils/object/property-name.js +23 -16
- package/utils/object/property-name.js.map +1 -1
- package/utils/ordered-feedable-async-iterable.d.ts +1 -1
- package/utils/ordered-feedable-async-iterable.js +7 -3
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +2 -2
- package/utils/patch-worker.js +24 -19
- package/utils/patch-worker.js.map +1 -1
- package/utils/patterns.d.ts +1 -1
- package/utils/patterns.js +8 -4
- package/utils/patterns.js.map +1 -1
- package/utils/periodic-reporter.js +13 -9
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.js +19 -15
- package/utils/periodic-sampler.js.map +1 -1
- package/utils/provider-function-iterable.js +7 -3
- package/utils/provider-function-iterable.js.map +1 -1
- package/utils/random.js +8 -3
- package/utils/random.js.map +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/reflection.js +16 -7
- package/utils/reflection.js.map +1 -1
- package/utils/set.js +15 -7
- package/utils/set.js.map +1 -1
- package/utils/singleton.js +7 -3
- package/utils/singleton.js.map +1 -1
- package/utils/sort.js +12 -5
- package/utils/sort.js.map +1 -1
- package/utils/stream/async-iterable-readable.d.ts +3 -3
- package/utils/stream/async-iterable-readable.js +10 -6
- package/utils/stream/async-iterable-readable.js.map +1 -1
- package/utils/stream/async-writable-stream.d.ts +3 -3
- package/utils/stream/async-writable-stream.js +7 -3
- package/utils/stream/async-writable-stream.js.map +1 -1
- package/utils/stream/index.d.ts +5 -5
- package/utils/stream/index.js +21 -5
- package/utils/stream/index.js.map +1 -1
- package/utils/stream/stream-helper-types.d.ts +1 -1
- package/utils/stream/stream-helper-types.js +2 -1
- package/utils/stream/stream-reader.js +16 -13
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/stream/typed-readable.d.ts +2 -2
- package/utils/stream/typed-readable.js +5 -2
- package/utils/stream/typed-readable.js.map +1 -1
- package/utils/timer.js +5 -1
- package/utils/timer.js.map +1 -1
- package/utils/timing.d.ts +1 -1
- package/utils/timing.js +23 -12
- package/utils/timing.js.map +1 -1
- package/utils/type-guards.d.ts +10 -4
- package/utils/type-guards.js +434 -209
- package/utils/type-guards.js.map +1 -1
- package/utils/type-of.js +7 -3
- package/utils/type-of.js.map +1 -1
- package/utils/units.js +55 -51
- package/utils/units.js.map +1 -1
- package/utils/url-builder.d.ts +1 -1
- package/utils/url-builder.js +16 -11
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/utils/z-base32.js +11 -6
- package/utils/z-base32.js.map +1 -1
- package/database/mongo/model.js +0 -71
- package/database/mongo/model.js.map +0 -1
- package/database/mongo/mongo-entity.repository.js.map +0 -1
- package/database/mongo/simple-entity.repository.d.ts +0 -7
- package/database/mongo/simple-entity.repository.js +0 -7
- package/database/mongo/simple-entity.repository.js.map +0 -1
- package/instance-provider.d.ts +0 -17
- package/instance-provider.js +0 -48
- package/instance-provider.js.map +0 -1
- package/lock/mongo/mongo-lock.repository.js.map +0 -1
- package/module/modules/old-web-server.module.d.ts +0 -22
- package/module/modules/old-web-server.module.js +0 -33
- package/module/modules/old-web-server.module.js.map +0 -1
- package/old-api/endpoint.d.ts +0 -5
- package/old-api/endpoint.js +0 -15
- package/old-api/endpoint.js.map +0 -1
- package/old-api/endpoints/echo.endpoint.d.ts +0 -2
- package/old-api/endpoints/echo.endpoint.js +0 -2
- package/old-api/endpoints/echo.endpoint.js.map +0 -1
- package/old-api/endpoints/index.d.ts +0 -1
- package/old-api/endpoints/index.js +0 -2
- package/old-api/endpoints/index.js.map +0 -1
- package/old-api/http-api.d.ts +0 -63
- package/old-api/http-api.js +0 -258
- package/old-api/http-api.js.map +0 -1
- package/old-api/index.d.ts +0 -3
- package/old-api/index.js +0 -4
- package/old-api/index.js.map +0 -1
- package/old-api/validation/index.d.ts +0 -1
- package/old-api/validation/index.js +0 -2
- package/old-api/validation/index.js.map +0 -1
- package/old-api/validation/types.d.ts +0 -6
- package/old-api/validation/types.js +0 -3
- package/old-api/validation/types.js.map +0 -1
- package/old-api/validation/validators/index.d.ts +0 -1
- package/old-api/validation/validators/index.js +0 -2
- package/old-api/validation/validators/index.js.map +0 -1
- package/old-api/validation/validators/noop.d.ts +0 -2
- package/old-api/validation/validators/noop.js +0 -4
- package/old-api/validation/validators/noop.js.map +0 -1
- package/old-api/validation/validators/superstruct.d.ts +0 -14
- package/old-api/validation/validators/superstruct.js +0 -55
- package/old-api/validation/validators/superstruct.js.map +0 -1
- package/old-api/validation/validators/yup.d.ts +0 -7
- package/old-api/validation/validators/yup.js +0 -52
- package/old-api/validation/validators/yup.js.map +0 -1
- package/schema/schema.validator.d.ts +0 -40
- package/schema/schema.validator.js +0 -71
- package/schema/schema.validator.js.map +0 -1
- package/schema/schemas/async-iterable.d.ts +0 -13
- package/schema/schemas/async-iterable.js +0 -35
- package/schema/schemas/async-iterable.js.map +0 -1
- package/schema/schemas/iterable.d.ts +0 -13
- package/schema/schemas/iterable.js +0 -35
- package/schema/schemas/iterable.js.map +0 -1
- package/schema/schemas/never.d.ts +0 -9
- package/schema/schemas/never.js +0 -17
- package/schema/schemas/never.js.map +0 -1
- package/schema/schemas/preprocess.d.ts +0 -16
- package/schema/schemas/preprocess.js +0 -30
- package/schema/schemas/preprocess.js.map +0 -1
- package/schema/schemas/refine.d.ts +0 -24
- package/schema/schemas/refine.js +0 -47
- package/schema/schemas/refine.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { UndefinableJson } from "../types";
|
|
2
|
+
export declare type FormatErrorOptions = {
|
|
3
|
+
/**
|
|
4
|
+
* include all error properties beside name and message
|
|
5
|
+
*/
|
|
6
|
+
includeRest?: boolean | 'if-no-extra-info';
|
|
7
|
+
/**
|
|
8
|
+
* include extraInfo from errors implementing {@link ErrorExtraInfo}
|
|
9
|
+
*/
|
|
10
|
+
includeExtraInfo?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* include stack trace
|
|
13
|
+
*/
|
|
14
|
+
includeStack?: boolean;
|
|
15
|
+
};
|
|
16
|
+
export interface ErrorExtraInfo {
|
|
17
|
+
/** format extra data (without message and stack) as JSON */
|
|
18
|
+
getExtraInfo(): UndefinableJson | undefined;
|
|
19
|
+
}
|
|
20
|
+
export declare function formatError(error: any, options?: FormatErrorOptions): string;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatError = void 0;
|
|
4
|
+
const decycle_1 = require("./object/decycle");
|
|
5
|
+
const type_guards_1 = require("./type-guards");
|
|
6
|
+
// eslint-disable-next-line max-statements, complexity
|
|
7
|
+
function formatError(error, options = {}) {
|
|
8
|
+
const { includeRest = 'if-no-extra-info', includeExtraInfo = true, includeStack = true } = options;
|
|
9
|
+
let name;
|
|
10
|
+
let message;
|
|
11
|
+
let stack;
|
|
12
|
+
let rest;
|
|
13
|
+
let extraInfo;
|
|
14
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
15
|
+
const wrappedError = error?.rejection ?? error?.reason ?? error?.error;
|
|
16
|
+
if ((error instanceof Error) && !(error.message.startsWith('Uncaught') && (wrappedError instanceof Error))) {
|
|
17
|
+
({ name, message, stack, ...rest } = error);
|
|
18
|
+
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
19
|
+
if (includeExtraInfo && (0, type_guards_1.isFunction)(error.getExtraInfo)) {
|
|
20
|
+
extraInfo = error.getExtraInfo();
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
else if (wrappedError instanceof Error) {
|
|
24
|
+
return formatError(wrappedError, options);
|
|
25
|
+
}
|
|
26
|
+
if ((0, type_guards_1.isUndefined)(name) && ((0, type_guards_1.isUndefined)(message) || message.trim().length == 0)) {
|
|
27
|
+
try {
|
|
28
|
+
const decycledError = (0, decycle_1.decycle)(error);
|
|
29
|
+
message = JSON.stringify(decycledError, null, 2);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
throw error;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
const decycledRest = (0, type_guards_1.isDefined)(rest) ? (0, decycle_1.decycle)(rest) : undefined;
|
|
36
|
+
const restString = (((includeRest == true) || ((includeRest == 'if-no-extra-info') && (0, type_guards_1.isUndefined)(extraInfo))) && (0, type_guards_1.isDefined)(decycledRest) && (Object.keys(rest ?? {}).length > 0)) ? `\n${JSON.stringify(decycledRest, null, 2)}` : '';
|
|
37
|
+
const extraInfoString = (0, type_guards_1.isDefined)(extraInfo) ? `\n${JSON.stringify(extraInfo, null, 2)}` : '';
|
|
38
|
+
const stackString = (includeStack && (0, type_guards_1.isDefined)(stack)) ? `\n${stack}` : '';
|
|
39
|
+
return `${name ?? 'Error'}: ${message}${restString}${extraInfoString}${stackString}`;
|
|
40
|
+
}
|
|
41
|
+
exports.formatError = formatError;
|
|
42
|
+
//# sourceMappingURL=format-error.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format-error.js","sourceRoot":"","sources":["../../source/utils/format-error.ts"],"names":[],"mappings":";;;AACA,8CAA2C;AAC3C,+CAAmE;AAwBnE,sDAAsD;AACtD,SAAgB,WAAW,CAAC,KAAU,EAAE,UAA8B,EAAE;IACtE,MAAM,EAAE,WAAW,GAAG,kBAAkB,EAA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,CAAC,CAAC,CAAC,IAAA,iBAAO,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IACjE,MAAM,UAAU,GAAG,CAAC,CAAC,CAAC,WAAW,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,WAAW,IAAI,kBAAkB,CAAC,IAAI,IAAA,yBAAW,EAAC,SAAS,CAAC,CAAC,CAAC,IAAI,IAAA,uBAAS,EAAC,YAAY,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IACvO,MAAM,eAAe,GAAG,IAAA,uBAAS,EAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9F,MAAM,WAAW,GAAG,CAAC,YAAY,IAAI,IAAA,uBAAS,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;IAE3E,OAAO,GAAG,IAAI,IAAI,OAAO,KAAK,OAAO,GAAG,UAAU,GAAG,eAAe,GAAG,WAAW,EAAE,CAAC;AACvF,CAAC;AAxCD,kCAwCC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './memoize
|
|
2
|
-
export * from './throttle
|
|
1
|
+
export * from './memoize';
|
|
2
|
+
export * from './throttle';
|
package/utils/function/index.js
CHANGED
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./memoize"), exports);
|
|
18
|
+
__exportStar(require("./throttle"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utils/function/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../source/utils/function/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
+
export declare type MemoizeOptions = {
|
|
2
|
+
/** Use WeakMap instead of Map for caching. Can be used with object parameters only */
|
|
3
|
+
weak?: boolean;
|
|
4
|
+
};
|
|
1
5
|
/**
|
|
2
6
|
* memoizes a function with an arbitrary number of parameters. If you only need a single parameter, {@link memoizeSingle} is faster
|
|
3
7
|
* @param fn function memoize
|
|
4
8
|
* @returns memoized function
|
|
5
|
-
*/ export declare function memoize<Fn extends (...parameters: any[]) => any>(fn: Fn): Fn;
|
|
9
|
+
*/ export declare function memoize<Fn extends (...parameters: any[]) => any>(fn: Fn, options?: MemoizeOptions): Fn;
|
|
6
10
|
/**
|
|
7
11
|
* memoizes a function with a single parameter. Faster than {@link memoize}
|
|
8
12
|
* @param fn function memoize
|
|
9
13
|
* @returns memoized function
|
|
10
14
|
*/
|
|
11
|
-
export declare function memoizeSingle<Fn extends (parameter: any) => any>(fn: Fn): Fn;
|
|
15
|
+
export declare function memoizeSingle<Fn extends (parameter: any) => any>(fn: Fn, options?: MemoizeOptions): Fn;
|
|
@@ -1,35 +1,48 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.memoizeSingle = exports.memoize = void 0;
|
|
4
|
+
const data_structures_1 = require("../../data-structures");
|
|
5
|
+
const multi_key_map_1 = require("../../data-structures/multi-key-map");
|
|
2
6
|
/**
|
|
3
7
|
* memoizes a function with an arbitrary number of parameters. If you only need a single parameter, {@link memoizeSingle} is faster
|
|
4
8
|
* @param fn function memoize
|
|
5
9
|
* @returns memoized function
|
|
6
|
-
*/
|
|
7
|
-
const cache = new MultiKeyMap();
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
*/ function memoize(fn, options = {}) {
|
|
11
|
+
const cache = new multi_key_map_1.MultiKeyMap((options.weak == true) ? () => new data_structures_1.IterableWeakMap() : undefined);
|
|
12
|
+
const name = getMemoizedName(fn);
|
|
13
|
+
return {
|
|
14
|
+
[name](...parameters) {
|
|
15
|
+
if (cache.has(parameters)) {
|
|
16
|
+
return cache.get(parameters);
|
|
17
|
+
}
|
|
18
|
+
const result = fn(...parameters);
|
|
19
|
+
cache.set(parameters, result);
|
|
20
|
+
return result;
|
|
11
21
|
}
|
|
12
|
-
|
|
13
|
-
cache.set(parameters, result);
|
|
14
|
-
return result;
|
|
15
|
-
}
|
|
16
|
-
return memoized;
|
|
22
|
+
}[name];
|
|
17
23
|
}
|
|
24
|
+
exports.memoize = memoize;
|
|
18
25
|
/**
|
|
19
26
|
* memoizes a function with a single parameter. Faster than {@link memoize}
|
|
20
27
|
* @param fn function memoize
|
|
21
28
|
* @returns memoized function
|
|
22
29
|
*/
|
|
23
|
-
|
|
24
|
-
const cache = new Map();
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
30
|
+
function memoizeSingle(fn, options = {}) {
|
|
31
|
+
const cache = (options.weak == true) ? new data_structures_1.IterableWeakMap() : new Map();
|
|
32
|
+
const name = getMemoizedName(fn);
|
|
33
|
+
return {
|
|
34
|
+
[name](parameter) {
|
|
35
|
+
if (cache.has(parameter)) {
|
|
36
|
+
return cache.get(parameter);
|
|
37
|
+
}
|
|
38
|
+
const result = fn(parameter);
|
|
39
|
+
cache.set(parameter, result);
|
|
40
|
+
return result;
|
|
28
41
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return memoized
|
|
42
|
+
}[name];
|
|
43
|
+
}
|
|
44
|
+
exports.memoizeSingle = memoizeSingle;
|
|
45
|
+
function getMemoizedName(fn) {
|
|
46
|
+
return `memoized${fn.name[0]?.toUpperCase() ?? ''}${fn.name.slice(1)}`;
|
|
34
47
|
}
|
|
35
48
|
//# sourceMappingURL=memoize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memoize.js","sourceRoot":"","sources":["../../../source/utils/function/memoize.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"memoize.js","sourceRoot":"","sources":["../../../source/utils/function/memoize.ts"],"names":[],"mappings":";;;AAAA,2DAAoD;AACpD,uEAA8D;AAO9D;;;;GAIG,CAAA,SAAgB,OAAO,CAA2C,EAAM,EAAE,UAA0B,EAAE;IACvG,MAAM,KAAK,GAAG,IAAI,2BAAW,CAAW,CAAC,OAAO,CAAC,IAAI,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,IAAI,iCAAe,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAC1G,MAAM,IAAI,GAAG,eAAe,CAAC,EAAE,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|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.throttleFunction = exports.didNotRun = void 0;
|
|
4
|
+
const date_time_1 = require("../date-time");
|
|
5
|
+
exports.didNotRun = Symbol('did-not-run');
|
|
6
|
+
function throttleFunction(func, interval, queue = false) {
|
|
4
7
|
let lastCall = 0;
|
|
5
8
|
let pending = false;
|
|
6
9
|
let nextArgs;
|
|
7
10
|
// eslint-disable-next-line @typescript-eslint/explicit-function-return-type
|
|
8
11
|
const throttled = (...args) => {
|
|
9
12
|
const nextAllowedCall = lastCall + interval;
|
|
10
|
-
const now = currentTimestamp(); // eslint-disable-line no-shadow
|
|
13
|
+
const now = (0, date_time_1.currentTimestamp)(); // eslint-disable-line no-shadow
|
|
11
14
|
if (now >= nextAllowedCall) {
|
|
12
15
|
pending = false;
|
|
13
16
|
lastCall = now;
|
|
@@ -21,8 +24,9 @@ export function throttleFunction(func, interval, queue = false) {
|
|
|
21
24
|
pending = true;
|
|
22
25
|
}
|
|
23
26
|
}
|
|
24
|
-
return didNotRun;
|
|
27
|
+
return exports.didNotRun;
|
|
25
28
|
};
|
|
26
29
|
return throttled;
|
|
27
30
|
}
|
|
31
|
+
exports.throttleFunction = throttleFunction;
|
|
28
32
|
//# sourceMappingURL=throttle.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../source/utils/function/throttle.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"throttle.js","sourceRoot":"","sources":["../../../source/utils/function/throttle.ts"],"names":[],"mappings":";;;AAAA,4CAAgD;AAEnC,QAAA,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AAE/C,SAAgB,gBAAgB,CAAkC,IAAoC,EAAE,QAAgB,EAAE,QAAiB,KAAK;IAC9I,IAAI,QAAQ,GAAG,CAAC,CAAC;IACjB,IAAI,OAAO,GAAG,KAAK,CAAC;IACpB,IAAI,QAAc,CAAC;IAEnB,4EAA4E;IAC5E,MAAM,SAAS,GAAG,CAAC,GAAG,IAAU,EAAE,EAAE;QAClC,MAAM,eAAe,GAAG,QAAQ,GAAG,QAAQ,CAAC;QAC5C,MAAM,GAAG,GAAG,IAAA,4BAAgB,GAAE,CAAC,CAAC,gCAAgC;QAEhE,IAAI,GAAG,IAAI,eAAe,EAAE;YAC1B,OAAO,GAAG,KAAK,CAAC;YAChB,QAAQ,GAAG,GAAG,CAAC;YACf,OAAO,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;SACtB;aACI,IAAI,KAAK,EAAE;YACd,QAAQ,GAAG,IAAI,CAAC;YAEhB,IAAI,CAAC,OAAO,EAAE;gBACZ,MAAM,KAAK,GAAG,eAAe,GAAG,GAAG,CAAC;gBACpC,UAAU,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,GAAG,QAAQ,CAAC,EAAE,KAAK,CAAC,CAAC;gBAChD,OAAO,GAAG,IAAI,CAAC;aAChB;SACF;QAED,OAAO,iBAAS,CAAC;IACnB,CAAC,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC;AA7BD,4CA6BC"}
|
package/utils/helpers.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DeepArray, Record
|
|
1
|
+
import type { DeepArray, Record } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* create an structured clone of an value using Notification if available, otherwise history state (may alters history)
|
|
4
4
|
*
|
|
@@ -17,26 +17,10 @@ export declare function structuredClone<T>(value: T): T;
|
|
|
17
17
|
export declare function structuredCloneAsync<T>(value: T, options?: {
|
|
18
18
|
transfer?: any[];
|
|
19
19
|
}): Promise<T>;
|
|
20
|
-
export declare function clone<T>(object: T, deep: boolean): T;
|
|
21
20
|
export declare function formatDuration(milliseconds: number, precision: number): string;
|
|
22
21
|
export declare function valueOfType<T>(value: T): T;
|
|
23
22
|
export declare function flatten<T>(array: DeepArray<T>): T[];
|
|
24
23
|
export declare function toError(obj: any): Error;
|
|
25
|
-
export declare type FormatErrorOptions = {
|
|
26
|
-
/**
|
|
27
|
-
* include all error properties beside name and message
|
|
28
|
-
*/
|
|
29
|
-
includeRest?: boolean;
|
|
30
|
-
/**
|
|
31
|
-
* include stack trace
|
|
32
|
-
*/
|
|
33
|
-
includeStack?: boolean;
|
|
34
|
-
/**
|
|
35
|
-
* enable special formatting for some known Errors like {@link HttpError} in certain configurations
|
|
36
|
-
*/
|
|
37
|
-
handleBuiltInErrors?: boolean;
|
|
38
|
-
};
|
|
39
|
-
export declare function formatError(error: any, options?: FormatErrorOptions): string;
|
|
40
24
|
export declare function select<T extends Record, K extends keyof T>(key: K): (item: T) => T[K];
|
|
41
25
|
export declare function parseFirstAndFamilyName(name: string): {
|
|
42
26
|
firstName: string | undefined;
|
|
@@ -44,21 +28,6 @@ export declare function parseFirstAndFamilyName(name: string): {
|
|
|
44
28
|
};
|
|
45
29
|
export declare function _throw(value: any): never;
|
|
46
30
|
export declare function deferThrow(value: any): () => never;
|
|
47
|
-
export declare type Decycled<T> = {
|
|
48
|
-
__type: T;
|
|
49
|
-
} & StringMap;
|
|
50
|
-
/**
|
|
51
|
-
* replaces cycles (circular references) in objects with JSONPath
|
|
52
|
-
* @param value object to decycle
|
|
53
|
-
* @param replacer replace values. Like JSON.stringify(value, *replacer*)
|
|
54
|
-
*/
|
|
55
|
-
export declare function decycle<T>(value: T, replacer?: (value: any) => any): Decycled<T>;
|
|
56
|
-
/**
|
|
57
|
-
* replaces JSONPath in objects with their reference
|
|
58
|
-
* @param value object to recycle
|
|
59
|
-
*/
|
|
60
|
-
export declare function recycle<T = any>(value: Decycled<T>, clone?: boolean): T;
|
|
61
|
-
export declare function recycle<T = any>(value: any, clone?: boolean): T;
|
|
62
31
|
export declare type NormalizeTextOptions = {
|
|
63
32
|
/**
|
|
64
33
|
* remove leading and trailing whitespace
|
package/utils/helpers.js
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* eslint-disable @typescript-eslint/ban-types */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.iif = exports.normalizeText = exports.deferThrow = exports._throw = exports.parseFirstAndFamilyName = exports.select = exports.toError = exports.flatten = exports.valueOfType = exports.formatDuration = exports.structuredCloneAsync = exports.structuredClone = void 0;
|
|
5
|
+
const error_1 = require("../error");
|
|
6
|
+
const decycle_1 = require("./object/decycle");
|
|
7
|
+
const type_guards_1 = require("./type-guards");
|
|
6
8
|
const supportsNotification = typeof Notification != 'undefined';
|
|
7
9
|
/**
|
|
8
10
|
* create an structured clone of an value using Notification if available, otherwise history state (may alters history)
|
|
@@ -11,7 +13,7 @@ const supportsNotification = typeof Notification != 'undefined';
|
|
|
11
13
|
* @param value value to clone
|
|
12
14
|
* @returns clone of value
|
|
13
15
|
*/
|
|
14
|
-
|
|
16
|
+
function structuredClone(value) {
|
|
15
17
|
if (supportsNotification) {
|
|
16
18
|
return new Notification('', { data: value, silent: true }).data;
|
|
17
19
|
}
|
|
@@ -21,6 +23,7 @@ export function structuredClone(value) {
|
|
|
21
23
|
history.replaceState(oldState, document.title);
|
|
22
24
|
return copy;
|
|
23
25
|
}
|
|
26
|
+
exports.structuredClone = structuredClone;
|
|
24
27
|
/**
|
|
25
28
|
* create an structured clone of an value using a MessageChannel
|
|
26
29
|
*
|
|
@@ -28,48 +31,14 @@ export function structuredClone(value) {
|
|
|
28
31
|
* @param value value to clone
|
|
29
32
|
* @returns clone of value
|
|
30
33
|
*/
|
|
31
|
-
|
|
34
|
+
async function structuredCloneAsync(value, options) {
|
|
32
35
|
const { port1, port2 } = new MessageChannel();
|
|
33
36
|
const promise = new Promise((resolve) => (port2.onmessage = (event) => resolve(event.data)));
|
|
34
37
|
port1.postMessage(value, options);
|
|
35
38
|
return promise;
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
if (isPrimitive(object) || isNullOrUndefined(object)) {
|
|
40
|
-
return object;
|
|
41
|
-
}
|
|
42
|
-
if (isDate(object)) {
|
|
43
|
-
return new Date(object);
|
|
44
|
-
}
|
|
45
|
-
if (isRegExp(object)) {
|
|
46
|
-
return new RegExp(object.source, object.flags);
|
|
47
|
-
}
|
|
48
|
-
if (isSet(object)) {
|
|
49
|
-
return new Set(object);
|
|
50
|
-
}
|
|
51
|
-
if (isMap(object)) {
|
|
52
|
-
return new Map(object);
|
|
53
|
-
}
|
|
54
|
-
if (isArrayBuffer(object)) {
|
|
55
|
-
return object.slice(0);
|
|
56
|
-
}
|
|
57
|
-
if (isTypedArray(object)) {
|
|
58
|
-
return object.slice();
|
|
59
|
-
}
|
|
60
|
-
if (isDataView(object)) {
|
|
61
|
-
const clonedBuffer = object.buffer.slice(0);
|
|
62
|
-
return new DataView(clonedBuffer, object.byteOffset, object.byteLength);
|
|
63
|
-
}
|
|
64
|
-
if (!deep) {
|
|
65
|
-
return (isArray(object) ? [...object] : { ...object });
|
|
66
|
-
}
|
|
67
|
-
if (isArray(object)) {
|
|
68
|
-
return object.map((value) => clone(value, true));
|
|
69
|
-
}
|
|
70
|
-
return Object.fromEntries(Object.entries(object).map(([key, value]) => [key, clone(value, true)]));
|
|
71
|
-
}
|
|
72
|
-
export function formatDuration(milliseconds, precision) {
|
|
40
|
+
exports.structuredCloneAsync = structuredCloneAsync;
|
|
41
|
+
function formatDuration(milliseconds, precision) {
|
|
73
42
|
let value;
|
|
74
43
|
let suffix;
|
|
75
44
|
if (milliseconds >= (10 ** 3)) {
|
|
@@ -92,66 +61,35 @@ export function formatDuration(milliseconds, precision) {
|
|
|
92
61
|
const result = `${trimmed} ${suffix}`;
|
|
93
62
|
return result;
|
|
94
63
|
}
|
|
95
|
-
|
|
64
|
+
exports.formatDuration = formatDuration;
|
|
65
|
+
function valueOfType(value) {
|
|
96
66
|
return value;
|
|
97
67
|
}
|
|
98
|
-
|
|
68
|
+
exports.valueOfType = valueOfType;
|
|
69
|
+
function flatten(array) {
|
|
99
70
|
return array.reduce((acc, item) => (Array.isArray(item) ? [...(acc), ...flatten(item)] : [...(acc), item]), []);
|
|
100
71
|
}
|
|
101
|
-
|
|
72
|
+
exports.flatten = flatten;
|
|
73
|
+
function toError(obj) {
|
|
102
74
|
if (obj instanceof Error) {
|
|
103
75
|
return obj;
|
|
104
76
|
}
|
|
105
77
|
let message;
|
|
106
78
|
try {
|
|
107
|
-
message = JSON.stringify(decycle(obj));
|
|
79
|
+
message = JSON.stringify((0, decycle_1.decycle)(obj));
|
|
108
80
|
}
|
|
109
81
|
catch {
|
|
110
82
|
message = 'serialization of error reason failed. Take a look at the details property of this error instance.';
|
|
111
83
|
}
|
|
112
|
-
|
|
84
|
+
const error = new error_1.DetailsError(message, obj);
|
|
85
|
+
return error;
|
|
113
86
|
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
const { includeRest = true, includeStack = true, handleBuiltInErrors = true } = options;
|
|
117
|
-
let name;
|
|
118
|
-
let message;
|
|
119
|
-
let stack;
|
|
120
|
-
let rest;
|
|
121
|
-
let extraInfo;
|
|
122
|
-
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
123
|
-
const wrappedError = error?.rejection ?? error?.reason ?? error?.error;
|
|
124
|
-
if ((error instanceof Error) && !(error.message.startsWith('Uncaught') && (wrappedError instanceof Error))) {
|
|
125
|
-
({ name, message, stack, ...rest } = error);
|
|
126
|
-
if (handleBuiltInErrors) {
|
|
127
|
-
if ((error instanceof HttpError) && !includeRest) {
|
|
128
|
-
extraInfo = {
|
|
129
|
-
url: error.request.url,
|
|
130
|
-
method: error.request.method
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
else if (wrappedError instanceof Error) {
|
|
136
|
-
return formatError(wrappedError, options);
|
|
137
|
-
}
|
|
138
|
-
if (isUndefined(name) && (isUndefined(message) || message.trim().length == 0)) {
|
|
139
|
-
try {
|
|
140
|
-
message = JSON.stringify(decycle(error), null, 2);
|
|
141
|
-
}
|
|
142
|
-
catch {
|
|
143
|
-
throw error;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
const restString = (includeRest && (Object.keys(rest ?? {}).length > 0)) ? `\n${JSON.stringify(decycle(rest), null, 2)}` : '';
|
|
147
|
-
const extraInfoString = isDefined(extraInfo) ? `\n${JSON.stringify(extraInfo, null, 2)}` : '';
|
|
148
|
-
const stackString = (includeStack && isDefined(stack)) ? `\n${stack}` : '';
|
|
149
|
-
return `${name ?? 'Error'}: ${message}${restString}${extraInfoString}${stackString}`;
|
|
150
|
-
}
|
|
151
|
-
export function select(key) {
|
|
87
|
+
exports.toError = toError;
|
|
88
|
+
function select(key) {
|
|
152
89
|
return (item) => item[key];
|
|
153
90
|
}
|
|
154
|
-
|
|
91
|
+
exports.select = select;
|
|
92
|
+
function parseFirstAndFamilyName(name) {
|
|
155
93
|
if (name.includes(',')) {
|
|
156
94
|
const [familyName, firstName] = name.split(',').map((part) => part.trim());
|
|
157
95
|
return { firstName, familyName };
|
|
@@ -164,94 +102,25 @@ export function parseFirstAndFamilyName(name) {
|
|
|
164
102
|
familyName: familyName.length > 0 ? familyName : undefined
|
|
165
103
|
};
|
|
166
104
|
}
|
|
167
|
-
|
|
105
|
+
exports.parseFirstAndFamilyName = parseFirstAndFamilyName;
|
|
106
|
+
function _throw(value) {
|
|
168
107
|
throw value;
|
|
169
108
|
}
|
|
170
|
-
|
|
109
|
+
exports._throw = _throw;
|
|
110
|
+
function deferThrow(value) {
|
|
171
111
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
172
112
|
return function deferThrow() {
|
|
173
113
|
throw value;
|
|
174
114
|
};
|
|
175
115
|
}
|
|
176
|
-
|
|
177
|
-
const mapping = new Map();
|
|
178
|
-
const replacerFn = isDefined(replacer) ? replacer : (value) => value;
|
|
179
|
-
function _decycle(__value, path) {
|
|
180
|
-
const value = replacerFn(__value);
|
|
181
|
-
if (isPrimitive(value) || isRegExp(value) || isDate(value) || isFunction(value)) {
|
|
182
|
-
return value;
|
|
183
|
-
}
|
|
184
|
-
const mappedPath = mapping.get(value);
|
|
185
|
-
if (isDefined(mappedPath)) {
|
|
186
|
-
return { $ref: mappedPath };
|
|
187
|
-
}
|
|
188
|
-
mapping.set(value, path);
|
|
189
|
-
if (isArray(value)) {
|
|
190
|
-
return value.map((item, index) => _decycle(item, `${path}[${index}]`));
|
|
191
|
-
}
|
|
192
|
-
return Object.fromEntries(Object.entries(value).map(([key, item]) => [key, _decycle(item, `${path}['${key}']`)]));
|
|
193
|
-
}
|
|
194
|
-
return _decycle(_value, '$');
|
|
195
|
-
}
|
|
196
|
-
const recyclePathPattern = /^\$(?:\[(?:(\d+)|'(.*?)')\])*$/u;
|
|
197
|
-
const recyclePathPartsPattern = /\[(?:(\d+)|'(.*?)')\]/ug;
|
|
198
|
-
export function recycle(_value, _clone = true) {
|
|
199
|
-
const value = _clone ? clone(_value, true) : _value;
|
|
200
|
-
function deref(ref) {
|
|
201
|
-
const parts = ref.matchAll(recyclePathPartsPattern);
|
|
202
|
-
let target = value;
|
|
203
|
-
for (const [, index, property] of parts) {
|
|
204
|
-
const key = index ?? property;
|
|
205
|
-
if (!hasOwnProperty(target, key)) {
|
|
206
|
-
throw new Error(`reference ${ref} not found`);
|
|
207
|
-
}
|
|
208
|
-
target = target[key];
|
|
209
|
-
}
|
|
210
|
-
return target;
|
|
211
|
-
}
|
|
212
|
-
function getRef(node) {
|
|
213
|
-
if (isObject(node) && hasOwnProperty(node, '$ref')) {
|
|
214
|
-
const ref = node['$ref'];
|
|
215
|
-
if (isString(ref) && recyclePathPattern.test(ref)) {
|
|
216
|
-
return ref;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
return undefined;
|
|
220
|
-
}
|
|
221
|
-
function _recycle(node) {
|
|
222
|
-
if (isWritableArray(node)) {
|
|
223
|
-
for (let i = 0; i < node.length; i++) {
|
|
224
|
-
const ref = getRef(node[i]);
|
|
225
|
-
if (isDefined(ref)) {
|
|
226
|
-
node[i] = deref(ref);
|
|
227
|
-
}
|
|
228
|
-
else {
|
|
229
|
-
_recycle(node[i]);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
else if (isObject(node) && isNotNull(node)) {
|
|
234
|
-
for (const key of Object.keys(node)) {
|
|
235
|
-
const ref = getRef(node[key]);
|
|
236
|
-
if (isDefined(ref)) {
|
|
237
|
-
node[key] = deref(ref);
|
|
238
|
-
}
|
|
239
|
-
else {
|
|
240
|
-
_recycle(node[key]);
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
_recycle(value);
|
|
246
|
-
return value;
|
|
247
|
-
}
|
|
116
|
+
exports.deferThrow = deferThrow;
|
|
248
117
|
/**
|
|
249
118
|
* trims, lowercases, replaces multi-character whitespace with a single space and unicode normalization
|
|
250
119
|
* @param text text to normalize
|
|
251
120
|
* @param options specify what to normalize. Defaults to all except unicode
|
|
252
121
|
* @returns normalized text
|
|
253
122
|
*/
|
|
254
|
-
|
|
123
|
+
function normalizeText(text, options = { trim: true, lowercase: true, multipleWhitespace: true, diacritics: true, ligatures: true }) {
|
|
255
124
|
let normalized = text;
|
|
256
125
|
if (options.trim == true) {
|
|
257
126
|
normalized = normalized.trim();
|
|
@@ -268,12 +137,14 @@ export function normalizeText(text, options = { trim: true, lowercase: true, mul
|
|
|
268
137
|
if (options.ligatures == true) {
|
|
269
138
|
normalized = normalized.normalize('NFKC');
|
|
270
139
|
}
|
|
271
|
-
if (isDefined(options.unicode)) {
|
|
140
|
+
if ((0, type_guards_1.isDefined)(options.unicode)) {
|
|
272
141
|
normalized = normalized.normalize(options.unicode);
|
|
273
142
|
}
|
|
274
143
|
return normalized;
|
|
275
144
|
}
|
|
276
|
-
|
|
145
|
+
exports.normalizeText = normalizeText;
|
|
146
|
+
function iif(condition, trueFn, falseFn) {
|
|
277
147
|
return condition ? trueFn() : falseFn();
|
|
278
148
|
}
|
|
149
|
+
exports.iif = iif;
|
|
279
150
|
//# sourceMappingURL=helpers.js.map
|
package/utils/helpers.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../source/utils/helpers.ts"],"names":[],"mappings":"AAAA,iDAAiD;AAEjD,OAAO,EAAE,SAAS,EAAE,8BAA6B;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAEzD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,SAAS,EAAE,iBAAiB,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAExO,MAAM,oBAAoB,GAAG,OAAO,YAAY,IAAI,WAAW,CAAC;AAEhE;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAI,KAAQ;IACzC,IAAI,oBAAoB,EAAE;QACxB,OAAO,IAAI,YAAY,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAS,CAAC;KACtE;IAED,MAAM,QAAQ,GAAG,OAAO,CAAC,KAAK,CAAC;IAC/B,OAAO,CAAC,YAAY,CAAC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,IAAI,GAAG,OAAO,CAAC,KAAU,CAAC;IAChC,OAAO,CAAC,YAAY,CAAC,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE/C,OAAO,IAAI,CAAC;AACd,CAAC;AAED;;;;;;GAM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