@tstdl/base 0.72.0-beta1 → 0.78.0-beta1
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 +11 -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 +2 -2
- 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 +3 -3
- 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 +1 -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 +31 -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 +4 -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 +3 -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 +19 -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 +19 -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 +286 -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 +7 -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 +28 -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 +2 -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 +3 -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 +28 -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 +11 -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 +5 -17
- package/schema/schemas/union.js +13 -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 +135 -15
- package/schema/types.js +41 -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 +12 -0
- package/schema/utils/schema.js +78 -0
- package/schema/utils/schema.js.map +1 -0
- package/schema/utils/value-type.d.ts +4 -0
- package/schema/utils/value-type.js +35 -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 +24 -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
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeMap = exports.serializeMap = void 0;
|
|
4
|
+
function serializeMap(map) {
|
|
2
5
|
return [...map.entries()];
|
|
3
6
|
}
|
|
4
|
-
|
|
7
|
+
exports.serializeMap = serializeMap;
|
|
8
|
+
function deserializeMap(data, tryDereference) {
|
|
5
9
|
const map = new Map();
|
|
6
10
|
for (let [key, value] of data) {
|
|
7
11
|
const hasKey = tryDereference(key, (dereferenced) => {
|
|
@@ -17,4 +21,5 @@ export function deserializeMap(data, tryDereference) {
|
|
|
17
21
|
}
|
|
18
22
|
return map;
|
|
19
23
|
}
|
|
24
|
+
exports.deserializeMap = deserializeMap;
|
|
20
25
|
//# sourceMappingURL=map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"map.js","sourceRoot":"","sources":["../../../source/serializer/handlers/map.ts"],"names":[],"mappings":"AAIA,
|
|
1
|
+
{"version":3,"file":"map.js","sourceRoot":"","sources":["../../../source/serializer/handlers/map.ts"],"names":[],"mappings":";;;AAIA,SAAgB,YAAY,CAAC,GAAkB;IAC7C,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;AAC5B,CAAC;AAFD,oCAEC;AAED,SAAgB,cAAc,CAAC,IAAa,EAAE,cAA8B;IAC1E,MAAM,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;IAEtB,KAAK,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,IAAI,EAAE;QAC7B,MAAM,MAAM,GAAG,cAAc,CAAC,GAAG,EAAE,CAAC,YAAY,EAAE,EAAE;YAClD,GAAG,GAAG,YAAY,CAAC;YAEnB,IAAI,CAAC,QAAQ,EAAE,EAAE,8DAA8D;gBAC7E,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;aACrB;QACH,CAAC,CAAC,CAAC;QAEH,MAAM,QAAQ,GAAG,cAAc,CAAC,KAAK,EAAE,CAAC,YAAY,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,YAAY,CAAC,CAAC,CAAC;QAErF,IAAI,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE;YACxB,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;SACrB;KACF;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AApBD,wCAoBC"}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeRegExp = exports.serializeRegExp = void 0;
|
|
4
|
+
function serializeRegExp(regex) {
|
|
2
5
|
return {
|
|
3
6
|
pattern: regex.source,
|
|
4
7
|
flags: regex.flags
|
|
5
8
|
};
|
|
6
9
|
}
|
|
7
|
-
|
|
10
|
+
exports.serializeRegExp = serializeRegExp;
|
|
11
|
+
function deserializeRegExp(data) {
|
|
8
12
|
return new RegExp(data.pattern, data.flags);
|
|
9
13
|
}
|
|
14
|
+
exports.deserializeRegExp = deserializeRegExp;
|
|
10
15
|
//# sourceMappingURL=regex.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"regex.js","sourceRoot":"","sources":["../../../source/serializer/handlers/regex.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"regex.js","sourceRoot":"","sources":["../../../source/serializer/handlers/regex.ts"],"names":[],"mappings":";;;AAKA,SAAgB,eAAe,CAAC,KAAa;IAC3C,OAAO;QACL,OAAO,EAAE,KAAK,CAAC,MAAM;QACrB,KAAK,EAAE,KAAK,CAAC,KAAK;KACnB,CAAC;AACJ,CAAC;AALD,0CAKC;AAED,SAAgB,iBAAiB,CAAC,IAAgB;IAChD,OAAO,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;AAC9C,CAAC;AAFD,8CAEC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { registerSerializer } from '../serializable
|
|
1
|
+
import type { registerSerializer } from '../serializable';
|
|
2
2
|
export declare function registerDefaultSerializers(register: typeof registerSerializer): void;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerDefaultSerializers = void 0;
|
|
4
|
+
const type_guards_1 = require("../../utils/type-guards");
|
|
5
|
+
const binary_1 = require("./binary");
|
|
6
|
+
const date_1 = require("./date");
|
|
7
|
+
const error_1 = require("./error");
|
|
8
|
+
const map_1 = require("./map");
|
|
9
|
+
const regex_1 = require("./regex");
|
|
10
|
+
const set_1 = require("./set");
|
|
8
11
|
const typedArrays = [
|
|
9
12
|
globalThis.Int8Array,
|
|
10
13
|
globalThis.Uint8Array,
|
|
@@ -17,19 +20,20 @@ const typedArrays = [
|
|
|
17
20
|
globalThis.Float64Array,
|
|
18
21
|
globalThis.BigInt64Array,
|
|
19
22
|
globalThis.BigUint64Array
|
|
20
|
-
].filter(isDefined);
|
|
21
|
-
|
|
22
|
-
register(Set, 'Set', serializeSet, deserializeSet);
|
|
23
|
-
register(Map, 'Map', serializeMap, deserializeMap);
|
|
24
|
-
register(RegExp, 'RegExp', serializeRegExp, deserializeRegExp);
|
|
25
|
-
register(Date, 'Date', serializeDate, deserializeDate);
|
|
26
|
-
register(Error, 'Error', serializeError, deserializeError);
|
|
27
|
-
register(ArrayBuffer, 'ArrayBuffer', serializeArrayBuffer, deserializeArrayBuffer);
|
|
23
|
+
].filter(type_guards_1.isDefined);
|
|
24
|
+
function registerDefaultSerializers(register) {
|
|
25
|
+
register(Set, 'Set', set_1.serializeSet, set_1.deserializeSet);
|
|
26
|
+
register(Map, 'Map', map_1.serializeMap, map_1.deserializeMap);
|
|
27
|
+
register(RegExp, 'RegExp', regex_1.serializeRegExp, regex_1.deserializeRegExp);
|
|
28
|
+
register(Date, 'Date', date_1.serializeDate, date_1.deserializeDate);
|
|
29
|
+
register(Error, 'Error', error_1.serializeError, error_1.deserializeError);
|
|
30
|
+
register(ArrayBuffer, 'ArrayBuffer', binary_1.serializeArrayBuffer, binary_1.deserializeArrayBuffer);
|
|
28
31
|
for (const typedArray of typedArrays) {
|
|
29
|
-
register(typedArray, typedArray.name, serializeTypedArray, getTypedArrayDeserializer(typedArray));
|
|
32
|
+
register(typedArray, typedArray.name, binary_1.serializeTypedArray, (0, binary_1.getTypedArrayDeserializer)(typedArray));
|
|
30
33
|
}
|
|
31
34
|
if (typeof Buffer != 'undefined') {
|
|
32
|
-
register(Buffer, 'Buffer', serializeBuffer, deserializeBuffer);
|
|
35
|
+
register(Buffer, 'Buffer', binary_1.serializeBuffer, binary_1.deserializeBuffer);
|
|
33
36
|
}
|
|
34
37
|
}
|
|
38
|
+
exports.registerDefaultSerializers = registerDefaultSerializers;
|
|
35
39
|
//# sourceMappingURL=register.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../source/serializer/handlers/register.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"register.js","sourceRoot":"","sources":["../../../source/serializer/handlers/register.ts"],"names":[],"mappings":";;;AAAA,yDAAgD;AAEhD,qCAA4J;AAC5J,iCAAwD;AACxD,mCAA2D;AAC3D,+BAAqD;AACrD,mCAA6D;AAC7D,+BAAqD;AAErD,MAAM,WAAW,GAAG;IAClB,UAAU,CAAC,SAAS;IACpB,UAAU,CAAC,UAAU;IACrB,UAAU,CAAC,iBAAiB;IAC5B,UAAU,CAAC,UAAU;IACrB,UAAU,CAAC,WAAW;IACtB,UAAU,CAAC,UAAU;IACrB,UAAU,CAAC,WAAW;IACtB,UAAU,CAAC,YAAY;IACvB,UAAU,CAAC,YAAY;IACvB,UAAU,CAAC,aAAa;IACxB,UAAU,CAAC,cAAc;CAC1B,CAAC,MAAM,CAAC,uBAAS,CAAC,CAAC;AAEpB,SAAgB,0BAA0B,CAAC,QAAmC;IAC5E,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,kBAAY,EAAE,oBAAc,CAAC,CAAC;IACnD,QAAQ,CAAC,GAAG,EAAE,KAAK,EAAE,kBAAY,EAAE,oBAAc,CAAC,CAAC;IACnD,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,uBAAe,EAAE,yBAAiB,CAAC,CAAC;IAC/D,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,oBAAa,EAAE,sBAAe,CAAC,CAAC;IACvD,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,sBAAc,EAAE,wBAAgB,CAAC,CAAC;IAC3D,QAAQ,CAAC,WAAW,EAAE,aAAa,EAAE,6BAAoB,EAAE,+BAAsB,CAAC,CAAC;IAEnF,KAAK,MAAM,UAAU,IAAI,WAAW,EAAE;QACpC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC,IAAI,EAAE,4BAAmB,EAAE,IAAA,kCAAyB,EAAC,UAAU,CAAC,CAAC,CAAC;KACnG;IAED,IAAI,OAAO,MAAM,IAAI,WAAW,EAAE;QAChC,QAAQ,CAAC,MAAM,EAAE,QAAQ,EAAE,wBAAe,EAAE,0BAAiB,CAAC,CAAC;KAChE;AACH,CAAC;AAfD,gEAeC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { TryDereference } from '../serializable
|
|
2
|
-
import type { Serialized } from '../types
|
|
1
|
+
import type { TryDereference } from '../serializable';
|
|
2
|
+
import type { Serialized } from '../types';
|
|
3
3
|
declare type SetData = Serialized<any>[];
|
|
4
4
|
export declare function serializeSet(set: Set<any>): SetData;
|
|
5
5
|
export declare function deserializeSet(data: SetData, tryDereference: TryDereference): Set<any>;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deserializeSet = exports.serializeSet = void 0;
|
|
4
|
+
function serializeSet(set) {
|
|
2
5
|
const data = [...set.values()];
|
|
3
6
|
return data;
|
|
4
7
|
}
|
|
5
|
-
|
|
8
|
+
exports.serializeSet = serializeSet;
|
|
9
|
+
function deserializeSet(data, tryDereference) {
|
|
6
10
|
const set = new Set();
|
|
7
11
|
for (const item of data) {
|
|
8
12
|
const has = tryDereference(item, (dereferenced) => {
|
|
@@ -14,4 +18,5 @@ export function deserializeSet(data, tryDereference) {
|
|
|
14
18
|
}
|
|
15
19
|
return set;
|
|
16
20
|
}
|
|
21
|
+
exports.deserializeSet = deserializeSet;
|
|
17
22
|
//# sourceMappingURL=set.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../source/serializer/handlers/set.ts"],"names":[],"mappings":"AAKA,
|
|
1
|
+
{"version":3,"file":"set.js","sourceRoot":"","sources":["../../../source/serializer/handlers/set.ts"],"names":[],"mappings":";;;AAKA,SAAgB,YAAY,CAAC,GAAa;IACxC,MAAM,IAAI,GAAY,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;IACxC,OAAO,IAAI,CAAC;AACd,CAAC;AAHD,oCAGC;AAED,SAAgB,cAAc,CAAC,IAAa,EAAE,cAA8B;IAC1E,MAAM,GAAG,GAAG,IAAI,GAAG,EAAW,CAAC;IAE/B,KAAK,MAAM,IAAI,IAAI,IAAI,EAAE;QACvB,MAAM,GAAG,GAAG,cAAc,CAAC,IAAI,EAAE,CAAC,YAAY,EAAE,EAAE;YAChD,GAAG,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,GAAG,EAAE;YACR,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;SACf;KACF;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAdD,wCAcC"}
|
package/serializer/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { registerSerializable, registerSerializer, Serializable, serializable } from './serializable
|
|
2
|
-
export type { DereferenceCallback, SerializableType, TryDereference, SerializeFunction, DeserializeFunction } from './serializable
|
|
3
|
-
export * from './serializer
|
|
4
|
-
export * from './types
|
|
1
|
+
export { registerSerializable, registerSerializer, Serializable, serializable } from './serializable';
|
|
2
|
+
export type { DereferenceCallback, SerializableType, TryDereference, SerializeFunction, DeserializeFunction } from './serializable';
|
|
3
|
+
export * from './serializer';
|
|
4
|
+
export * from './types';
|
package/serializer/index.js
CHANGED
|
@@ -1,4 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
exports.serializable = exports.Serializable = exports.registerSerializer = exports.registerSerializable = void 0;
|
|
18
|
+
var serializable_1 = require("./serializable");
|
|
19
|
+
Object.defineProperty(exports, "registerSerializable", { enumerable: true, get: function () { return serializable_1.registerSerializable; } });
|
|
20
|
+
Object.defineProperty(exports, "registerSerializer", { enumerable: true, get: function () { return serializable_1.registerSerializer; } });
|
|
21
|
+
Object.defineProperty(exports, "Serializable", { enumerable: true, get: function () { return serializable_1.Serializable; } });
|
|
22
|
+
Object.defineProperty(exports, "serializable", { enumerable: true, get: function () { return serializable_1.serializable; } });
|
|
23
|
+
__exportStar(require("./serializer"), exports);
|
|
24
|
+
__exportStar(require("./types"), exports);
|
|
4
25
|
//# sourceMappingURL=index.js.map
|
package/serializer/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/serializer/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/serializer/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,+CAAsG;AAA7F,oHAAA,oBAAoB,OAAA;AAAE,kHAAA,kBAAkB,OAAA;AAAE,4GAAA,YAAY,OAAA;AAAE,4GAAA,YAAY,OAAA;AAE7E,+CAA6B;AAC7B,0CAAwB"}
|
|
@@ -1,39 +1,46 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerSerializer = exports.registerSerializable = exports.serializable = exports.getSerializerByTypeName = exports.getTypeNameByConstructor = exports.Serializable = void 0;
|
|
4
|
+
const type_guards_1 = require("../utils/type-guards");
|
|
5
|
+
const handlers_1 = require("./handlers");
|
|
3
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
4
|
-
|
|
7
|
+
exports.Serializable = {
|
|
5
8
|
serialize: Symbol('serialize'),
|
|
6
9
|
deserialize: Symbol('deserialize')
|
|
7
10
|
};
|
|
8
11
|
const constructorTypeNameMap = new Map();
|
|
9
12
|
const typeNameSerializerMap = new Map();
|
|
10
|
-
|
|
13
|
+
function getTypeNameByConstructor(constructor) {
|
|
11
14
|
return constructorTypeNameMap.get(constructor);
|
|
12
15
|
}
|
|
13
|
-
|
|
16
|
+
exports.getTypeNameByConstructor = getTypeNameByConstructor;
|
|
17
|
+
function getSerializerByTypeName(typeName) {
|
|
14
18
|
return typeNameSerializerMap.get(typeName);
|
|
15
19
|
}
|
|
16
|
-
|
|
20
|
+
exports.getSerializerByTypeName = getSerializerByTypeName;
|
|
21
|
+
function serializable(typeName) {
|
|
17
22
|
function serializableDecorator(type) {
|
|
18
23
|
registerSerializable(type, typeName);
|
|
19
24
|
}
|
|
20
25
|
return serializableDecorator;
|
|
21
26
|
}
|
|
27
|
+
exports.serializable = serializable;
|
|
22
28
|
/**
|
|
23
29
|
* register a serializable type for serialization
|
|
24
30
|
* @param type class implementing {@link Serializable}
|
|
25
31
|
*/
|
|
26
|
-
|
|
27
|
-
const { [Serializable.serialize]: serializer, [Serializable.deserialize]: deserializer } = type.prototype;
|
|
28
|
-
if (!isFunction(serializer) || !isFunction(deserializer)) {
|
|
32
|
+
function registerSerializable(type, typeName) {
|
|
33
|
+
const { [exports.Serializable.serialize]: serializer, [exports.Serializable.deserialize]: deserializer } = type.prototype;
|
|
34
|
+
if (!(0, type_guards_1.isFunction)(serializer) || !(0, type_guards_1.isFunction)(deserializer)) {
|
|
29
35
|
throw new Error('implementation for at least one of [type], [serialize] and [deserialize] is missing or of wrong type');
|
|
30
36
|
}
|
|
31
37
|
registerSerializer(type, typeName ?? type.name, serializer, deserializer);
|
|
32
38
|
}
|
|
33
|
-
|
|
39
|
+
exports.registerSerializable = registerSerializable;
|
|
40
|
+
function registerSerializer(constructor, typeName, serializer, deserializer) {
|
|
34
41
|
const existingMappedType = constructorTypeNameMap.get(constructor);
|
|
35
42
|
const existingMappedSerializer = typeNameSerializerMap.get(typeName);
|
|
36
|
-
if (isDefined(existingMappedType) || isDefined(existingMappedSerializer)) {
|
|
43
|
+
if ((0, type_guards_1.isDefined)(existingMappedType) || (0, type_guards_1.isDefined)(existingMappedSerializer)) {
|
|
37
44
|
const ctor = existingMappedSerializer?.constructor ?? constructor;
|
|
38
45
|
throw new Error(`serializer for constructor ${ctor.name} is already registered as ${existingMappedType ?? typeName}`);
|
|
39
46
|
}
|
|
@@ -41,5 +48,6 @@ export function registerSerializer(constructor, typeName, serializer, deserializ
|
|
|
41
48
|
constructorTypeNameMap.set(constructor, typeName);
|
|
42
49
|
typeNameSerializerMap.set(typeName, registration);
|
|
43
50
|
}
|
|
44
|
-
|
|
51
|
+
exports.registerSerializer = registerSerializer;
|
|
52
|
+
(0, handlers_1.registerDefaultSerializers)(registerSerializer);
|
|
45
53
|
//# sourceMappingURL=serializable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializable.js","sourceRoot":"","sources":["../../source/serializer/serializable.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"serializable.js","sourceRoot":"","sources":["../../source/serializer/serializable.ts"],"names":[],"mappings":";;;AACA,sDAA4D;AAC5D,yCAAwD;AAExD,gEAAgE;AACnD,QAAA,YAAY,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;CAInC,CAAC;AAwBF,MAAM,sBAAsB,GAAG,IAAI,GAAG,EAAuB,CAAC;AAC9D,MAAM,qBAAqB,GAAG,IAAI,GAAG,EAA8C,CAAC;AAEpF,SAAgB,wBAAwB,CAAC,WAAwB;IAC/D,OAAO,sBAAsB,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;AACjD,CAAC;AAFD,4DAEC;AAED,SAAgB,uBAAuB,CAAC,QAAgB;IACtD,OAAO,qBAAqB,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7C,CAAC;AAFD,0DAEC;AAED,SAAgB,YAAY,CAA0C,QAAiB;IACrF,SAAS,qBAAqB,CAAC,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AAE,QAAQ,CAAC,CAAC;IAClD,qBAAqB,CAAC,GAAG,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AACpD,CAAC;AAbD,gDAaC;AAED,IAAA,qCAA0B,EAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CircularBuffer } from "../data-structures/circular-buffer
|
|
2
|
-
import type { SerializationOptions, Serialized, StringSerialized } from './types
|
|
1
|
+
import { CircularBuffer } from "../data-structures/circular-buffer";
|
|
2
|
+
import type { SerializationOptions, Serialized, StringSerialized } from './types';
|
|
3
3
|
declare type QueueItem = () => void;
|
|
4
4
|
export declare function stringSerialize<T>(value: T, options?: SerializationOptions): StringSerialized<T>;
|
|
5
5
|
export declare function stringDeserialize<T = unknown>(serialized: string, options?: SerializationOptions): T;
|
package/serializer/serializer.js
CHANGED
|
@@ -1,20 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
1
2
|
/* eslint-disable @typescript-eslint/no-unsafe-return, @typescript-eslint/ban-types, max-lines-per-function, max-statements, complexity */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.deserialize = exports.serialize = exports.stringDeserialize = exports.stringSerialize = void 0;
|
|
5
|
+
const circular_buffer_1 = require("../data-structures/circular-buffer");
|
|
6
|
+
const sorted_array_list_1 = require("../data-structures/sorted-array-list");
|
|
7
|
+
const comparison_1 = require("../utils/comparison");
|
|
8
|
+
const forward_ref_1 = require("../utils/object/forward-ref");
|
|
9
|
+
const object_1 = require("../utils/object/object");
|
|
10
|
+
const type_guards_1 = require("../utils/type-guards");
|
|
11
|
+
const serializable_1 = require("./serializable");
|
|
12
|
+
const types_1 = require("./types");
|
|
13
|
+
function stringSerialize(value, options) {
|
|
10
14
|
const serialized = serialize(value, options);
|
|
11
15
|
return JSON.stringify(serialized);
|
|
12
16
|
}
|
|
13
|
-
|
|
17
|
+
exports.stringSerialize = stringSerialize;
|
|
18
|
+
function stringDeserialize(serialized, options) {
|
|
14
19
|
const parsedStringSerialized = JSON.parse(serialized);
|
|
15
20
|
return deserialize(parsedStringSerialized, options);
|
|
16
21
|
}
|
|
17
|
-
|
|
22
|
+
exports.stringDeserialize = stringDeserialize;
|
|
23
|
+
function serialize(value, options = {}, references = new Map(), queue = new circular_buffer_1.CircularBuffer(), path = '$') {
|
|
18
24
|
const type = typeof value;
|
|
19
25
|
if (type == 'boolean' || type == 'number' || value === null) {
|
|
20
26
|
return value;
|
|
@@ -22,8 +28,8 @@ export function serialize(value, options = {}, references = new Map(), queue = n
|
|
|
22
28
|
if (type == 'undefined') {
|
|
23
29
|
return { '<undefined>': null };
|
|
24
30
|
}
|
|
25
|
-
if ((path == '$') && isDefined(options.context)) {
|
|
26
|
-
for (const entry of
|
|
31
|
+
if ((path == '$') && (0, type_guards_1.isDefined)(options.context)) {
|
|
32
|
+
for (const entry of (0, object_1.objectEntries)(options.context)) {
|
|
27
33
|
references.set(entry[1], `$['__context__']['${entry[0]}']`);
|
|
28
34
|
}
|
|
29
35
|
}
|
|
@@ -72,17 +78,17 @@ export function serialize(value, options = {}, references = new Map(), queue = n
|
|
|
72
78
|
}
|
|
73
79
|
else if (constructor == Object) {
|
|
74
80
|
const target = {};
|
|
75
|
-
const entries =
|
|
76
|
-
const queueItems = entries.map(([key, innerValue]) => () => (target[key] = serialize(innerValue, options, references, queue, `${path}['${key}']`)));
|
|
81
|
+
const entries = (0, object_1.objectEntries)(value);
|
|
82
|
+
const queueItems = entries.map(([key, innerValue]) => () => (target[key] = serialize(innerValue, options, references, queue, `${path}['${key.toString()}']`)));
|
|
77
83
|
queue.addMany(queueItems);
|
|
78
84
|
result = target;
|
|
79
85
|
}
|
|
80
86
|
else {
|
|
81
|
-
const serializableType = getTypeNameByConstructor(constructor);
|
|
82
|
-
if (isUndefined(serializableType)) {
|
|
87
|
+
const serializableType = (0, serializable_1.getTypeNameByConstructor)(constructor);
|
|
88
|
+
if ((0, type_guards_1.isUndefined)(serializableType)) {
|
|
83
89
|
throw new Error(`constructor ${constructor.name} has no serializer registered`);
|
|
84
90
|
}
|
|
85
|
-
const registration = getSerializerByTypeName(serializableType);
|
|
91
|
+
const registration = (0, serializable_1.getSerializerByTypeName)(serializableType);
|
|
86
92
|
const typeString = getTypeString(serializableType);
|
|
87
93
|
const nonPrimitive = { [typeString]: null };
|
|
88
94
|
queue.add(() => {
|
|
@@ -100,10 +106,12 @@ export function serialize(value, options = {}, references = new Map(), queue = n
|
|
|
100
106
|
}
|
|
101
107
|
throw new Error(`unsupported type '${type}'`);
|
|
102
108
|
}
|
|
103
|
-
|
|
109
|
+
exports.serialize = serialize;
|
|
110
|
+
function deserialize(serialized, options) {
|
|
104
111
|
const context = getDeserializeContext(serialized, options);
|
|
105
112
|
return _deserialize(serialized, context, '$', 0);
|
|
106
113
|
}
|
|
114
|
+
exports.deserialize = deserialize;
|
|
107
115
|
function _deserialize(serialized, context, path, depth) {
|
|
108
116
|
const type = typeof serialized;
|
|
109
117
|
if ((type == 'number') || (type == 'boolean') || (serialized === null)) {
|
|
@@ -117,8 +125,8 @@ function _deserialize(serialized, context, path, depth) {
|
|
|
117
125
|
return { '<undefined>': null };
|
|
118
126
|
}
|
|
119
127
|
if (type == 'object') {
|
|
120
|
-
if ((depth == 0) && isDefined(context.options.context)) {
|
|
121
|
-
for (const entry of
|
|
128
|
+
if ((depth == 0) && (0, type_guards_1.isDefined)(context.options.context)) {
|
|
129
|
+
for (const entry of (0, object_1.objectEntries)(context.options.context)) {
|
|
122
130
|
context.references.set(`$['__context__']['${entry[0]}']`, entry[1]);
|
|
123
131
|
}
|
|
124
132
|
}
|
|
@@ -128,20 +136,20 @@ function _deserialize(serialized, context, path, depth) {
|
|
|
128
136
|
const nonPrimitiveData = entries[0][1];
|
|
129
137
|
const nonPrimitiveType = entries[0][0].slice(1, -1);
|
|
130
138
|
switch (nonPrimitiveType) {
|
|
131
|
-
case undefinedNonPrimitiveType: {
|
|
139
|
+
case types_1.undefinedNonPrimitiveType: {
|
|
132
140
|
return undefined;
|
|
133
141
|
}
|
|
134
|
-
case bigintNonPrimitiveType: {
|
|
142
|
+
case types_1.bigintNonPrimitiveType: {
|
|
135
143
|
const bigint = BigInt(nonPrimitiveData);
|
|
136
144
|
context.references.set(path, bigint);
|
|
137
145
|
return bigint;
|
|
138
146
|
}
|
|
139
|
-
case globalSymbolNonPrimitiveType: {
|
|
147
|
+
case types_1.globalSymbolNonPrimitiveType: {
|
|
140
148
|
const symbol = Symbol.for(nonPrimitiveData);
|
|
141
149
|
context.references.set(path, symbol);
|
|
142
150
|
return symbol;
|
|
143
151
|
}
|
|
144
|
-
case functionNonPrimitiveType: {
|
|
152
|
+
case types_1.functionNonPrimitiveType: {
|
|
145
153
|
if (context.options.allowUnsafe !== true) {
|
|
146
154
|
throw new Error('functions are only allowed if allowUnsafe option is true');
|
|
147
155
|
}
|
|
@@ -149,7 +157,7 @@ function _deserialize(serialized, context, path, depth) {
|
|
|
149
157
|
context.references.set(path, fn);
|
|
150
158
|
return fn;
|
|
151
159
|
}
|
|
152
|
-
case refNonPrimitiveType: {
|
|
160
|
+
case types_1.refNonPrimitiveType: {
|
|
153
161
|
const dereferenced = context.references.get(nonPrimitiveData);
|
|
154
162
|
if (dereferenced == undefined) {
|
|
155
163
|
throw new Error(`reference ${nonPrimitiveData} not found`);
|
|
@@ -157,22 +165,22 @@ function _deserialize(serialized, context, path, depth) {
|
|
|
157
165
|
return dereferenced;
|
|
158
166
|
}
|
|
159
167
|
default: {
|
|
160
|
-
const registration = getSerializerByTypeName(nonPrimitiveType);
|
|
168
|
+
const registration = (0, serializable_1.getSerializerByTypeName)(nonPrimitiveType);
|
|
161
169
|
if (registration == undefined) {
|
|
162
170
|
throw new Error(`non-primitive type ${nonPrimitiveType} not registered`);
|
|
163
171
|
}
|
|
164
|
-
const forwardRef = ForwardRef.create();
|
|
172
|
+
const forwardRef = forward_ref_1.ForwardRef.create();
|
|
165
173
|
context.references.set(path, forwardRef);
|
|
166
174
|
context.addToDeserializeQueue(() => {
|
|
167
175
|
const deserializedData = _deserialize(nonPrimitiveData, context, `${path}['<${nonPrimitiveType}>']`, depth + 1);
|
|
168
176
|
context.addToDeserializeQueue(() => {
|
|
169
177
|
const deserialized = registration.deserializer(deserializedData, context.tryAddToDerefQueue);
|
|
170
|
-
ForwardRef.setRef(forwardRef, deserialized);
|
|
178
|
+
forward_ref_1.ForwardRef.setRef(forwardRef, deserialized);
|
|
171
179
|
}, depth);
|
|
172
180
|
}, depth);
|
|
173
181
|
if (depth == 0) {
|
|
174
182
|
drainQueues(context);
|
|
175
|
-
return ForwardRef.deref(forwardRef);
|
|
183
|
+
return forward_ref_1.ForwardRef.deref(forwardRef);
|
|
176
184
|
}
|
|
177
185
|
return forwardRef;
|
|
178
186
|
}
|
|
@@ -224,8 +232,8 @@ function getDeserializeContext(serializedRoot, options) {
|
|
|
224
232
|
options: options ?? {},
|
|
225
233
|
references: new Map(),
|
|
226
234
|
deserializeCounter: 0,
|
|
227
|
-
deserializeQueue: new SortedArrayList(undefined, compareByValueSelection((item) => item.depth, (item) => item.counter)),
|
|
228
|
-
derefQueue: new CircularBuffer(),
|
|
235
|
+
deserializeQueue: new sorted_array_list_1.SortedArrayList(undefined, (0, comparison_1.compareByValueSelection)((item) => item.depth, (item) => item.counter)),
|
|
236
|
+
derefQueue: new circular_buffer_1.CircularBuffer(),
|
|
229
237
|
addToDeserializeQueue(fn, depth) {
|
|
230
238
|
context.deserializeQueue.add({ depth, counter: context.deserializeCounter++, fn });
|
|
231
239
|
},
|
|
@@ -235,11 +243,11 @@ function getDeserializeContext(serializedRoot, options) {
|
|
|
235
243
|
}
|
|
236
244
|
},
|
|
237
245
|
tryAddToDerefQueue(value, callback) {
|
|
238
|
-
if (!ForwardRef.isForwardRef(value) || (context.options.doNotDereferenceForwardRefs == true)) {
|
|
246
|
+
if (!forward_ref_1.ForwardRef.isForwardRef(value) || (context.options.doNotDereferenceForwardRefs == true)) {
|
|
239
247
|
return false;
|
|
240
248
|
}
|
|
241
249
|
context.derefQueue.add(() => {
|
|
242
|
-
const dereferenced = ForwardRef.deref(value);
|
|
250
|
+
const dereferenced = forward_ref_1.ForwardRef.deref(value);
|
|
243
251
|
callback(dereferenced);
|
|
244
252
|
});
|
|
245
253
|
return true;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializer.js","sourceRoot":"","sources":["../../source/serializer/serializer.ts"],"names":[],"mappings":"AAAA,0IAA0I;AAE1I,OAAO,EAAE,cAAc,EAAE,8CAA6C;AACtE,OAAO,EAAE,eAAe,EAAE,gDAA+C;AAEzE,OAAO,EAAE,uBAAuB,EAAE,+BAA8B;AAChE,OAAO,EAAE,UAAU,EAAE,uCAAsC;AAC3D,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,gCAA+B;AAEhE,OAAO,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAEtF,OAAO,EAAE,sBAAsB,EAAE,wBAAwB,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAsB5J,MAAM,UAAU,eAAe,CAAI,KAAQ,EAAE,OAA8B;IACzE,MAAM,UAAU,GAAG,SAAS,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC7C,OAAO,IAAI,CAAC,SAAS,CAAC,UAAU,CAAwB,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAc,UAAkB,EAAE,OAA8B;IAC/F,MAAM,sBAAsB,GAAG,IAAI,CAAC,KAAK,CAAC,UAAU,CAAkB,CAAC;IACvE,OAAO,WAAW,CAAC,sBAAsB,EAAE,OAAO,CAAC,CAAC;AACtD,CAAC;AAcD,MAAM,UAAU,SAAS,CAAC,KAAU,EAAE,UAAgC,EAAE,EAAE,aAA+B,IAAI,GAAG,E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AC,EAAE,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,kBAAkB,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;aACpF;QACH,CAAC;QACD,kBAAkB,CAAC,KAAc,EAAE,QAA6B;YAC9D,IAAI,CAAC,wBAAU,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,2BAA2B,IAAI,IAAI,CAAC,EAAE;gBAC5F,OAAO,KAAK,CAAC;aACd;YAED,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,EAAE;gBAC1B,MAAM,YAAY,GAAG,wBAAU,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;gBAC7C,QAAQ,CAAC,YAAY,CAAC,CAAC;YACzB,CAAC,CAAC,CAAC;YAEH,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;IAEF,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,SAAS,WAAW,CAAC,EAAE,gBAAgB,EAAE,UAAU,EAAsB;IACvE,OAAO,gBAAgB,CAAC,IAAI,GAAG,CAAC,EAAE;QAChC,MAAM,IAAI,GAAG,gBAAgB,CAAC,UAAU,EAAE,CAAC;QAC3C,IAAI,CAAC,EAAE,EAAE,CAAC;KACX;IAED,KAAK,MAAM,EAAE,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE;QACrC,EAAE,EAAE,CAAC;KACN;AACH,CAAC"}
|
package/serializer/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { JsonPrimitive, Nested, StringMap } from "../types
|
|
1
|
+
import type { JsonPrimitive, Nested, StringMap } from "../types";
|
|
2
2
|
declare const serializedSymbol: unique symbol;
|
|
3
3
|
declare const stringSerializedSymbol: unique symbol;
|
|
4
4
|
declare const decycledSymbol: unique symbol;
|
package/serializer/types.js
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.refNonPrimitiveType = exports.functionNonPrimitiveType = exports.globalSymbolNonPrimitiveType = exports.bigintNonPrimitiveType = exports.undefinedNonPrimitiveType = void 0;
|
|
4
|
+
exports.undefinedNonPrimitiveType = 'undefined';
|
|
5
|
+
exports.bigintNonPrimitiveType = 'bigint';
|
|
6
|
+
exports.globalSymbolNonPrimitiveType = 'global-symbol';
|
|
7
|
+
exports.functionNonPrimitiveType = 'function';
|
|
8
|
+
exports.refNonPrimitiveType = 'ref';
|
|
6
9
|
//# sourceMappingURL=types.js.map
|
package/serializer/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../source/serializer/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../source/serializer/types.ts"],"names":[],"mappings":";;;AA4Ca,QAAA,yBAAyB,GAAG,WAAW,CAAC;AACxC,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAClC,QAAA,4BAA4B,GAAG,eAAe,CAAC;AAC/C,QAAA,wBAAwB,GAAG,UAAU,CAAC;AACtC,QAAA,mBAAmB,GAAG,KAAK,CAAC"}
|
package/tailwind/colors.d.ts
CHANGED
package/tailwind/colors.js
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.generateTailwindPalette = exports.generateTailwindColors = void 0;
|
|
4
|
+
const type_guards_1 = require("../utils/type-guards");
|
|
5
|
+
function generateTailwindColors(theme) {
|
|
3
6
|
const entries = Object.entries(theme.colors)
|
|
4
7
|
.map(([colorName, value]) => {
|
|
5
|
-
const name = isString(value) ? colorName : (value.name ?? colorName);
|
|
8
|
+
const name = (0, type_guards_1.isString)(value) ? colorName : (value.name ?? colorName);
|
|
6
9
|
return [name, generateTailwindPalette(name)];
|
|
7
10
|
});
|
|
8
11
|
return Object.fromEntries(entries);
|
|
9
12
|
}
|
|
10
|
-
|
|
13
|
+
exports.generateTailwindColors = generateTailwindColors;
|
|
14
|
+
function generateTailwindPalette(name) {
|
|
11
15
|
return {
|
|
12
16
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
13
17
|
DEFAULT: `var(--color-${name})`,
|
|
@@ -24,4 +28,5 @@ export function generateTailwindPalette(name) {
|
|
|
24
28
|
/* eslint-enable @typescript-eslint/naming-convention */
|
|
25
29
|
};
|
|
26
30
|
}
|
|
31
|
+
exports.generateTailwindPalette = generateTailwindPalette;
|
|
27
32
|
//# sourceMappingURL=colors.js.map
|
package/tailwind/colors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../source/tailwind/colors.ts"],"names":[],"mappings":"AACA,
|
|
1
|
+
{"version":3,"file":"colors.js","sourceRoot":"","sources":["../../source/tailwind/colors.ts"],"names":[],"mappings":";;;AACA,sDAA+C;AAkB/C,SAAgB,sBAAsB,CAAC,KAAY;IACjD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC;SACzC,GAAG,CAAC,CAAC,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,EAAE;QAC1B,MAAM,IAAI,GAAG,IAAA,sBAAQ,EAAC,KAAK,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,IAAI,SAAS,CAAC,CAAC;QACrE,OAAO,CAAC,IAAI,EAAE,uBAAuB,CAAC,IAAI,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEL,OAAO,MAAM,CAAC,WAAW,CAAC,OAAO,CAAoC,CAAC;AACxE,CAAC;AARD,wDAQC;AAED,SAAgB,uBAAuB,CAAC,IAAY;IAClD,OAAO;QACL,yDAAyD;QACzD,OAAO,EAAE,eAAe,IAAI,GAAG;QAC/B,EAAE,EAAE,eAAe,IAAI,MAAM;QAC7B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,GAAG,EAAE,eAAe,IAAI,OAAO;QAC/B,wDAAwD;KACzD,CAAC;AACJ,CAAC;AAhBD,0DAgBC"}
|
package/tailwind/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './colors
|
|
1
|
+
export * from './colors';
|