@tstdl/base 0.81.3 → 0.81.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/client/client.d.ts +6 -6
- package/api/client/client.js +4 -4
- package/api/client/client.js.map +1 -1
- package/api/default-error-handlers.d.ts +2 -2
- package/api/default-error-handlers.js +1 -1
- package/api/default-error-handlers.js.map +1 -1
- package/api/response.d.ts +8 -8
- package/api/response.js +1 -1
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +3 -3
- package/api/server/api-controller.js +3 -3
- package/api/server/api-controller.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +2 -2
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +17 -17
- package/api/server/gateway.js +12 -12
- package/api/server/gateway.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +3 -3
- package/api/server/middlewares/allowed-methods.middleware.js +3 -3
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +2 -2
- package/api/server/middlewares/cors.middleware.d.ts +2 -2
- package/api/server/middlewares/cors.middleware.js +2 -2
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +1 -1
- package/api/server/middlewares/response-time.middleware.js +2 -2
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +2 -2
- package/api/server/module.js +2 -2
- package/api/server/module.js.map +1 -1
- package/api/server/tokens.d.ts +1 -1
- package/api/server/tokens.js +1 -1
- package/api/server/tokens.js.map +1 -1
- package/api/types.d.ts +34 -34
- package/api/types.js +2 -2
- package/api/types.js.map +1 -1
- package/api/utils.d.ts +1 -1
- package/api/utils.js +3 -3
- package/api/utils.js.map +1 -1
- package/application/application.d.ts +5 -5
- package/application/application.js +19 -19
- package/application/application.js.map +1 -1
- package/collections/awaitable/awaitable-list.js +6 -6
- package/collections/awaitable/awaitable-list.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +7 -7
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +7 -7
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/keyed-set.d.ts +1 -1
- package/collections/observable/observable-array.js +4 -4
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.js +9 -9
- package/collections/observable/observable-collection-base.js.map +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-list-base.js +6 -6
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.d.ts +2 -2
- package/collections/observable/observable-map.js +5 -5
- package/collections/observable/observable-map.js.map +1 -1
- package/collections/observable/observable-set.js +5 -5
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +1 -1
- package/collections/observable/observable-sorted-array-list.js +8 -8
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +1 -1
- package/collections/sorted-array-list.js +5 -5
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-map.js +4 -4
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +4 -4
- package/container/container.js +12 -12
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +5 -5
- package/container/decorators.js +3 -3
- package/container/decorators.js.map +1 -1
- package/container/interfaces.d.ts +1 -1
- package/container/provider.d.ts +7 -7
- package/container/provider.js +1 -1
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +3 -3
- package/container/resolve-chain.js +5 -5
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +1 -1
- package/container/resolve.error.js +2 -2
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +4 -4
- package/container/token.js +1 -1
- package/container/token.js.map +1 -1
- package/container/type-info.d.ts +1 -1
- package/container/types.d.ts +4 -4
- package/container/utils.d.ts +1 -1
- package/container/utils.js +1 -1
- package/container/utils.js.map +1 -1
- package/core.d.ts +1 -1
- package/css/theme/theme.model.d.ts +2 -2
- package/css/theme/theme.service.js +4 -4
- package/css/theme/theme.service.js.map +1 -1
- package/data-structures/array-list.d.ts +2 -1
- package/data-structures/array-list.js +3 -0
- package/data-structures/array-list.js.map +1 -1
- package/data-structures/circular-buffer.d.ts +2 -1
- package/data-structures/circular-buffer.js +22 -14
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +2 -1
- package/data-structures/collection.js +13 -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 +2 -2
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/iterable-weak-map.d.ts +1 -0
- package/data-structures/iterable-weak-map.js +17 -11
- package/data-structures/iterable-weak-map.js.map +1 -1
- package/data-structures/linked-list.d.ts +5 -4
- package/data-structures/linked-list.js +16 -8
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +1 -1
- package/data-structures/list.js +1 -1
- package/data-structures/list.js.map +1 -1
- package/data-structures/map.d.ts +1 -0
- package/data-structures/map.js +6 -0
- package/data-structures/map.js.map +1 -1
- package/data-structures/multi-key-map.d.ts +3 -2
- package/data-structures/multi-key-map.js +8 -2
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/set.d.ts +1 -0
- package/data-structures/set.js +3 -0
- package/data-structures/set.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +6 -5
- package/data-structures/sorted-array-list.js +9 -5
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.d.ts +1 -0
- package/data-structures/weak-ref-map.js +14 -8
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -2
- package/database/entity.d.ts +3 -3
- package/database/id.js +1 -1
- package/database/id.js.map +1 -1
- package/database/module.d.ts +1 -1
- package/database/module.js +1 -1
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +6 -6
- package/database/mongo/classes.js +1 -1
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/model/document.d.ts +4 -4
- package/database/mongo/model/document.js +2 -2
- package/database/mongo/model/document.js.map +1 -1
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/module.js +4 -4
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +13 -13
- package/database/mongo/mongo-base.repository.js +4 -4
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +2 -2
- package/database/mongo/mongo-entity-repository.d.ts +12 -12
- package/database/mongo/mongo-entity-repository.js +6 -6
- package/database/mongo/mongo-entity-repository.js.map +1 -1
- package/database/mongo/operations.d.ts +1 -1
- package/database/mongo/query-converter.d.ts +2 -2
- package/database/mongo/query-converter.js +3 -3
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity-repository.d.ts +2 -2
- package/database/mongo/types.d.ts +18 -18
- package/database/query.d.ts +40 -40
- package/disposable/async-disposer.d.ts +3 -3
- package/disposable/async-disposer.js +10 -10
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +1 -1
- package/disposable/disposable.js.map +1 -1
- package/distributed-loop/distributed-loop.d.ts +6 -6
- package/distributed-loop/distributed-loop.js +6 -6
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/provider.d.ts +1 -1
- package/distributed-loop/provider.js +2 -2
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +3 -3
- package/enumerable/async-enumerable.js +2 -2
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable.d.ts +2 -2
- package/error/custom.error.d.ts +1 -1
- package/error/not-supported.error.d.ts +1 -1
- package/error/not-supported.error.js +1 -1
- package/error/not-supported.error.js.map +1 -1
- package/examples/api/basic-overview.js +11 -11
- package/examples/api/basic-overview.js.map +1 -1
- package/examples/api/streaming.js +14 -14
- package/examples/api/streaming.js.map +1 -1
- package/examples/http/client.js +3 -3
- package/examples/http/client.js.map +1 -1
- package/examples/mail/basic.js +9 -9
- package/examples/mail/basic.js.map +1 -1
- package/examples/mail/templates/hello-name.d.ts +1 -1
- package/examples/mail/templates/hello-name.js +2 -2
- package/examples/mail/templates/hello-name.js.map +1 -1
- package/examples/pdf/basic.js +9 -9
- package/examples/pdf/basic.js.map +1 -1
- package/examples/pdf/templates/hello-name.d.ts +1 -1
- package/examples/pdf/templates/hello-name.js +3 -3
- package/examples/pdf/templates/hello-name.js.map +1 -1
- package/examples/reflection/basic.d.ts +1 -1
- package/examples/reflection/basic.js +4 -4
- package/examples/reflection/basic.js.map +1 -1
- package/examples/template/basic.js +7 -7
- package/examples/template/basic.js.map +1 -1
- package/examples/template/templates/hello-name.d.ts +1 -1
- package/examples/template/templates/hello-name.js +3 -3
- package/examples/template/templates/hello-name.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +1 -1
- package/http/client/adapters/undici-http-client.adapter.js +4 -4
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/http-client-request.d.ts +9 -9
- package/http/client/http-client-request.js +10 -10
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +3 -3
- package/http/client/http-client-response.js +3 -3
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.d.ts +10 -10
- package/http/client/http-client.js +10 -10
- package/http/client/http-client.js.map +1 -1
- package/http/cookie-parser.js +2 -2
- package/http/cookie-parser.js.map +1 -1
- package/http/http-body.d.ts +3 -3
- package/http/http-body.js +5 -5
- package/http/http-body.js.map +1 -1
- package/http/http-form.d.ts +2 -2
- package/http/http-headers.d.ts +3 -3
- package/http/http-headers.js +3 -3
- package/http/http-headers.js.map +1 -1
- package/http/http-query.d.ts +2 -2
- package/http/http-url-parameters.d.ts +2 -2
- package/http/http-value-map.d.ts +2 -2
- package/http/http-value-map.js +5 -5
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +2 -2
- package/http/http.error.js +2 -2
- package/http/http.error.js.map +1 -1
- package/http/server/http-server-request.d.ts +2 -2
- package/http/server/http-server-request.js +3 -3
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +3 -3
- package/http/server/http-server.d.ts +4 -4
- package/http/server/http-server.js +1 -1
- package/http/server/http-server.js.map +1 -1
- package/http/server/node/module.js +1 -1
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +6 -6
- package/http/server/node/node-http-server.js +16 -16
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +6 -6
- package/http/types.js +1 -1
- package/http/types.js.map +1 -1
- package/http/utils.d.ts +5 -5
- package/http/utils.js +10 -10
- package/http/utils.js.map +1 -1
- package/image-service/image-service.js +1 -1
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +4 -4
- package/image-service/imgproxy/imgproxy-image-service.js +6 -6
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/json-path/json-path.d.ts +4 -4
- package/json-path/json-path.js +17 -17
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/key-value.store.d.ts +3 -3
- package/key-value-store/key-value.store.js +1 -1
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +2 -2
- package/key-value-store/mongo/module.js +1 -1
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value-store.provider.js +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +5 -5
- package/key-value-store/mongo/mongo-key-value.repository.js +3 -3
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value.store.js +6 -6
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/lock/lock.d.ts +6 -6
- package/lock/lock.js +1 -1
- package/lock/lock.js.map +1 -1
- package/lock/mongo/lock.d.ts +3 -3
- package/lock/mongo/lock.js +10 -10
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +2 -2
- package/lock/mongo/module.d.ts +2 -2
- package/lock/mongo/module.js +1 -1
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/mongo-lock-repository.d.ts +5 -5
- package/lock/mongo/mongo-lock-repository.js +5 -5
- package/lock/mongo/mongo-lock-repository.js.map +1 -1
- package/lock/mongo/provider.d.ts +3 -3
- package/lock/mongo/provider.js +4 -4
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +3 -3
- package/lock/provider.js +1 -1
- package/lock/provider.js.map +1 -1
- package/logger/console/logger.js +4 -4
- package/logger/console/logger.js.map +1 -1
- package/logger/logger.d.ts +8 -8
- package/logger/logger.js +3 -3
- package/logger/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.js +2 -2
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/mail-log.repository.d.ts +1 -1
- package/mail/mail-log.repository.js +1 -1
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail.client.d.ts +3 -3
- package/mail/mail.client.js +1 -1
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +3 -3
- package/mail/mail.service.js +6 -6
- package/mail/mail.service.js.map +1 -1
- package/mail/models/mail-address.model.d.ts +1 -1
- package/mail/models/mail-content.model.d.ts +1 -1
- package/mail/models/mail-data.model.d.ts +2 -2
- package/mail/models/mail-log.model.d.ts +3 -3
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-template.model.d.ts +2 -2
- package/mail/module.d.ts +2 -2
- package/mail/module.js +2 -2
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +7 -7
- package/mail/repositories/mongo-mail-log.repository.js +3 -3
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/tokens.d.ts +1 -1
- package/mail/tokens.js +1 -1
- package/mail/tokens.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +5 -5
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +1 -1
- package/message-bus/local/local-message-bus-provider.js +5 -5
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +1 -1
- package/message-bus/local/local-message-bus.js +3 -3
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/types.d.ts +1 -1
- package/message-bus/message-bus-base.d.ts +1 -1
- package/message-bus/message-bus.d.ts +3 -3
- package/message-bus/message-bus.js +1 -1
- package/message-bus/message-bus.js.map +1 -1
- package/migration/migration-state-repository.d.ts +1 -1
- package/migration/migration-state-repository.js +1 -1
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +3 -3
- package/migration/migrator.d.ts +6 -6
- package/migration/migrator.js +9 -9
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +4 -4
- package/migration/mongo/migration-state-repository.js +2 -2
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +3 -3
- package/migration/mongo/module.js +2 -2
- package/migration/mongo/module.js.map +1 -1
- package/module/module-base.d.ts +3 -3
- package/module/module-base.js +7 -7
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +5 -5
- package/module/module-metric-reporter.js +3 -3
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +2 -2
- package/module/modules/function.module.d.ts +2 -2
- package/module/modules/web-server.module.d.ts +7 -7
- package/module/modules/web-server.module.js +4 -4
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +1 -1
- package/notification/api.d.ts +4 -4
- package/notification/api.js +3 -3
- package/notification/api.js.map +1 -1
- package/notification/model.js +1 -1
- package/notification/model.js.map +1 -1
- package/notification/module.d.ts +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +1 -1
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.d.ts +2 -2
- package/object-storage/s3/s3.object-storage-provider.d.ts +3 -3
- package/object-storage/s3/s3.object-storage-provider.js +3 -3
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +2 -2
- package/object-storage/s3/s3.object-storage.js +6 -6
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +3 -3
- package/openid-connect/cached-oidc-configuration.service.d.ts +1 -1
- package/openid-connect/cached-oidc-configuration.service.js +5 -5
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.js +1 -1
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +7 -7
- package/openid-connect/mongo-oidc-state.repository.js +3 -3
- package/openid-connect/mongo-oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc-configuration.service.d.ts +2 -2
- package/openid-connect/oidc-configuration.service.js +3 -3
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +3 -3
- package/openid-connect/oidc-state.repository.d.ts +1 -1
- package/openid-connect/oidc-state.repository.js +1 -1
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service-model.d.ts +8 -8
- package/openid-connect/oidc.service.d.ts +1 -1
- package/openid-connect/oidc.service.js +14 -14
- package/openid-connect/oidc.service.js.map +1 -1
- package/orm/sql/sql-repository.js +1 -1
- package/orm/sql/sql-repository.js.map +1 -1
- package/orm/test.js +1 -1
- package/orm/test.js.map +1 -1
- package/orm/types.d.ts +5 -5
- package/orm/types.js +6 -6
- package/orm/types.js.map +1 -1
- package/package.json +2 -2
- package/pdf/pdf.service.d.ts +8 -8
- package/pdf/pdf.service.js +13 -13
- package/pdf/pdf.service.js.map +1 -1
- package/pool/pool.d.ts +7 -7
- package/pool/pool.js +7 -7
- package/pool/pool.js.map +1 -1
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +2 -2
- package/promise/cancelable-promise.d.ts +1 -1
- package/promise/deferred-promise.js +7 -7
- package/promise/deferred-promise.js.map +1 -1
- package/promise/lazy-promise.d.ts +1 -1
- package/promise/lazy-promise.js +2 -2
- package/promise/lazy-promise.js.map +1 -1
- package/queue/mongo/job.d.ts +5 -5
- package/queue/mongo/mongo-job.repository.d.ts +6 -6
- package/queue/mongo/mongo-job.repository.js +5 -5
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +5 -5
- package/queue/mongo/queue.js +12 -12
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +7 -7
- package/queue/mongo/queue.provider.js +4 -4
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/queue.d.ts +8 -8
- package/queue/queue.js +2 -2
- package/queue/queue.js.map +1 -1
- package/reflection/decorator-data.js +1 -1
- package/reflection/decorator-data.js.map +1 -1
- package/reflection/decorators.js +1 -1
- package/reflection/decorators.js.map +1 -1
- package/reflection/reflection-data-map.d.ts +1 -1
- package/reflection/reflection-data-map.js +3 -3
- package/reflection/reflection-data-map.js.map +1 -1
- package/reflection/registry.d.ts +10 -10
- package/reflection/registry.js +4 -4
- package/reflection/registry.js.map +1 -1
- package/reflection/types.d.ts +33 -33
- package/reflection/utils.d.ts +6 -6
- package/reflection/utils.js +3 -3
- package/reflection/utils.js.map +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.d.ts +3 -3
- package/rpc/endpoints/message-port.rpc-endpoint.js +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.js.map +1 -1
- package/rpc/model.d.ts +24 -24
- package/rpc/model.js +1 -1
- package/rpc/model.js.map +1 -1
- package/rpc/rpc-error.d.ts +1 -1
- package/rpc/rpc-error.js +3 -3
- package/rpc/rpc-error.js.map +1 -1
- package/rpc/rpc.d.ts +2 -2
- package/rpc/rpc.js +7 -7
- package/rpc/rpc.js.map +1 -1
- package/rxjs/intersection-observer.d.ts +1 -1
- package/rxjs/intersection-observer.js +2 -2
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/mutation-observer.d.ts +1 -1
- package/rxjs/mutation-observer.js +2 -2
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/performance-observer.d.ts +1 -1
- package/rxjs/performance-observer.js +2 -2
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.d.ts +1 -1
- package/rxjs/resize-observer.js +2 -2
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +1 -1
- package/rxjs/retry-backoff.js.map +1 -1
- package/rxjs/slow-array.d.ts +1 -1
- package/rxjs/touch.d.ts +1 -1
- package/schema/array-constraints/maximum-length.d.ts +2 -2
- package/schema/array-constraints/minimum-length.d.ts +2 -2
- package/schema/coercers/boolean.coercer.d.ts +1 -1
- package/schema/coercers/boolean.coercer.js +1 -1
- package/schema/coercers/boolean.coercer.js.map +1 -1
- package/schema/coercers/date.coercer.d.ts +1 -1
- package/schema/coercers/date.coercer.js +1 -1
- package/schema/coercers/date.coercer.js.map +1 -1
- package/schema/coercers/number.coercer.d.ts +1 -1
- package/schema/coercers/regexp.coercer.d.ts +1 -1
- package/schema/coercers/string.coercer.d.ts +1 -1
- package/schema/coercers/string.coercer.js +1 -1
- package/schema/coercers/string.coercer.js.map +1 -1
- package/schema/coercers/uint8-array.coercer.d.ts +1 -1
- package/schema/constraints/enumeration.d.ts +2 -2
- package/schema/constraints/enumeration.js +3 -3
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +4 -4
- package/schema/constraints/generic.js +1 -1
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/integer.d.ts +2 -2
- package/schema/constraints/length.d.ts +2 -2
- package/schema/constraints/length.js +1 -1
- package/schema/constraints/length.js.map +1 -1
- package/schema/constraints/literal.d.ts +1 -1
- package/schema/constraints/literal.js +1 -1
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +2 -2
- package/schema/constraints/maximum-date.js +1 -1
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +2 -2
- package/schema/constraints/maximum-length.js +1 -1
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +2 -2
- package/schema/constraints/minimum-date.d.ts +2 -2
- package/schema/constraints/minimum-date.js +1 -1
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +2 -2
- package/schema/constraints/minimum-length.js +1 -1
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +2 -2
- package/schema/constraints/pattern.d.ts +2 -2
- package/schema/decorators/class.d.ts +1 -1
- package/schema/decorators/class.js +1 -1
- package/schema/decorators/class.js.map +1 -1
- package/schema/decorators/coerce.d.ts +1 -1
- package/schema/decorators/constraint.d.ts +2 -2
- package/schema/decorators/property.d.ts +2 -2
- package/schema/decorators/property.js +2 -2
- package/schema/decorators/property.js.map +1 -1
- package/schema/decorators/types.d.ts +4 -4
- package/schema/decorators/utils.d.ts +2 -2
- package/schema/decorators/utils.js +5 -5
- package/schema/decorators/utils.js.map +1 -1
- package/schema/schema.d.ts +4 -4
- package/schema/schema.error.d.ts +6 -6
- package/schema/schema.error.js +3 -3
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +6 -6
- package/schema/schema.js.map +1 -1
- package/schema/schemas/any.d.ts +2 -2
- package/schema/schemas/array.d.ts +3 -3
- package/schema/schemas/array.js +2 -2
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/assign.d.ts +1 -1
- package/schema/schemas/assign.js +2 -2
- package/schema/schemas/assign.js.map +1 -1
- package/schema/schemas/boolean.d.ts +2 -2
- package/schema/schemas/constraint.d.ts +1 -1
- package/schema/schemas/date.d.ts +2 -2
- package/schema/schemas/date.js +2 -2
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +2 -2
- package/schema/schemas/enumeration.d.ts +3 -3
- package/schema/schemas/enumeration.js +1 -1
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/instance.d.ts +1 -1
- package/schema/schemas/literal.d.ts +2 -2
- package/schema/schemas/literal.js +1 -1
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +2 -2
- package/schema/schemas/number.d.ts +2 -2
- package/schema/schemas/number.js +2 -2
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +2 -2
- package/schema/schemas/omit.d.ts +1 -1
- package/schema/schemas/omit.js +2 -2
- package/schema/schemas/omit.js.map +1 -1
- package/schema/schemas/one-or-many.d.ts +4 -4
- package/schema/schemas/one-or-many.js +1 -1
- package/schema/schemas/one-or-many.js.map +1 -1
- package/schema/schemas/optional.d.ts +3 -3
- package/schema/schemas/partial.d.ts +1 -1
- package/schema/schemas/partial.js +3 -3
- package/schema/schemas/partial.js.map +1 -1
- package/schema/schemas/pick.d.ts +1 -1
- package/schema/schemas/pick.js +2 -2
- package/schema/schemas/pick.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +2 -2
- package/schema/schemas/record.d.ts +2 -2
- package/schema/schemas/regexp.d.ts +2 -2
- package/schema/schemas/string.d.ts +2 -2
- package/schema/schemas/string.js +2 -2
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +1 -1
- package/schema/schemas/uint8-array.d.ts +2 -2
- package/schema/schemas/uint8-array.js +2 -2
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +2 -2
- package/schema/schemas/union.js +1 -1
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +2 -2
- package/schema/transformers/generic.d.ts +3 -3
- package/schema/transformers/lowercase.d.ts +1 -1
- package/schema/transformers/trim.d.ts +1 -1
- package/schema/transformers/uppercase.d.ts +1 -1
- package/schema/types.d.ts +33 -33
- package/schema/types.js +2 -2
- package/schema/types.js.map +1 -1
- package/schema/utils/schema.d.ts +1 -1
- package/schema/utils/schema.js +5 -5
- package/schema/utils/schema.js.map +1 -1
- package/schema/utils/value-type.d.ts +1 -1
- package/schema/utils/value-type.js +2 -2
- package/schema/utils/value-type.js.map +1 -1
- package/search-index/elastic/config.d.ts +4 -4
- package/search-index/elastic/config.js +2 -2
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/model/elastic-query.d.ts +15 -15
- package/search-index/elastic/model/index-mapping.d.ts +16 -16
- package/search-index/elastic/model/index-mapping.js +1 -1
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +4 -4
- package/search-index/elastic/module.d.ts +3 -3
- package/search-index/elastic/module.js +4 -4
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js +3 -3
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +2 -2
- package/search-index/elastic/query-converter.js +2 -2
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +6 -6
- package/search-index/elastic/search-index.js +8 -8
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +1 -1
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +2 -2
- package/search-index/error.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +1 -1
- package/search-index/memory/memory-search-index.js +7 -7
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +3 -3
- package/search-index/search-index.js +1 -1
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +3 -3
- package/serializer/handlers/binary.d.ts +2 -2
- package/serializer/handlers/binary.js +1 -1
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/error.d.ts +1 -1
- package/serializer/handlers/map.d.ts +1 -1
- package/serializer/handlers/regex.d.ts +1 -1
- package/serializer/handlers/register.js +2 -2
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.d.ts +1 -1
- package/serializer/serializable.d.ts +7 -7
- package/serializer/serializable.js +1 -1
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +6 -6
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +16 -16
- package/sse/server-sent-events.d.ts +3 -3
- package/sse/server-sent-events.js +7 -7
- package/sse/server-sent-events.js.map +1 -1
- package/tailwind/colors.d.ts +2 -2
- package/tailwind/colors.js +2 -2
- package/tailwind/colors.js.map +1 -1
- package/templates/module.d.ts +2 -2
- package/templates/module.js +1 -1
- package/templates/module.js.map +1 -1
- package/templates/providers/file.provider-template.d.ts +4 -4
- package/templates/providers/file.provider-template.js +5 -4
- package/templates/providers/file.provider-template.js.map +1 -1
- package/templates/providers/memory.template-provider.js +2 -2
- package/templates/providers/memory.template-provider.js.map +1 -1
- package/templates/renderers/handlebars.template-renderer.d.ts +10 -10
- package/templates/renderers/handlebars.template-renderer.js +4 -4
- package/templates/renderers/handlebars.template-renderer.js.map +1 -1
- package/templates/renderers/mjml.template-renderer.d.ts +3 -3
- package/templates/renderers/mjml.template-renderer.js +1 -1
- package/templates/renderers/mjml.template-renderer.js.map +1 -1
- package/templates/renderers/string.template-renderer.d.ts +1 -1
- package/templates/renderers/string.template-renderer.js +1 -1
- package/templates/renderers/string.template-renderer.js.map +1 -1
- package/templates/resolvers/file.template-resolver.d.ts +5 -5
- package/templates/resolvers/file.template-resolver.js +3 -3
- package/templates/resolvers/file.template-resolver.js.map +1 -1
- package/templates/resolvers/string.template-resolver.d.ts +1 -1
- package/templates/resolvers/string.template-resolver.js +2 -2
- package/templates/resolvers/string.template-resolver.js.map +1 -1
- package/templates/template-renderer.provider.js +1 -1
- package/templates/template-renderer.provider.js.map +1 -1
- package/templates/template-resolver.provider.js +1 -1
- package/templates/template-resolver.provider.js.map +1 -1
- package/templates/template.model.d.ts +2 -2
- package/templates/template.model.js +1 -1
- package/templates/template.model.js.map +1 -1
- package/templates/template.renderer.d.ts +4 -4
- package/templates/template.service.d.ts +2 -2
- package/templates/template.service.js +4 -4
- package/templates/template.service.js.map +1 -1
- package/templates/tokens.d.ts +2 -2
- package/templates/tokens.js +1 -1
- package/templates/tokens.js.map +1 -1
- package/text/dynamic-text.model.d.ts +1 -1
- package/text/dynamic-text.model.js +2 -2
- package/text/dynamic-text.model.js.map +1 -1
- package/text/localizable-text.model.d.ts +1 -1
- package/text/localization.service.d.ts +13 -13
- package/text/localization.service.js +13 -13
- package/text/localization.service.js.map +1 -1
- package/threading/thread-pool.d.ts +4 -4
- package/threading/thread-pool.js +5 -5
- package/threading/thread-pool.js.map +1 -1
- package/threading/thread-worker.d.ts +2 -2
- package/threading/thread-worker.js +1 -1
- package/threading/thread-worker.js.map +1 -1
- package/types/geo-json.d.ts +13 -13
- package/types.d.ts +89 -89
- package/utils/any-iterable-iterator.d.ts +3 -3
- package/utils/array/array-backtracker.js +3 -3
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.js +1 -1
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/types.d.ts +2 -2
- package/utils/async-iterable-helpers/types.d.ts +7 -7
- package/utils/backoff.d.ts +5 -5
- package/utils/base64.js +1 -1
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.d.ts +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +1 -1
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.d.ts +1 -1
- package/utils/cancellation-token.js +13 -13
- package/utils/cancellation-token.js.map +1 -1
- package/utils/clone.js +1 -1
- package/utils/clone.js.map +1 -1
- package/utils/compression.d.ts +1 -1
- package/utils/compression.js +3 -3
- package/utils/compression.js.map +1 -1
- package/utils/cryptography.d.ts +12 -12
- package/utils/date-time.d.ts +7 -7
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +1 -1
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/equals.d.ts +4 -4
- package/utils/factory-map.d.ts +1 -1
- package/utils/factory-map.js +3 -3
- package/utils/factory-map.js.map +1 -1
- package/utils/feedable-async-iterable.js +6 -6
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/format-error.d.ts +2 -2
- package/utils/function/memoize.d.ts +1 -1
- package/utils/function/memoize.js +2 -2
- package/utils/function/memoize.js.map +1 -1
- package/utils/helpers.d.ts +1 -1
- package/utils/helpers.js +1 -1
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +1 -1
- package/utils/image.js.map +1 -1
- package/utils/iterable-helpers/types.d.ts +6 -6
- package/utils/jwt.d.ts +4 -4
- package/utils/math.d.ts +1 -1
- package/utils/math.js +1 -1
- package/utils/math.js.map +1 -1
- package/utils/merge.d.ts +2 -2
- package/utils/middleware.d.ts +9 -9
- package/utils/moving-metric.d.ts +1 -1
- package/utils/object/decycle.d.ts +2 -2
- package/utils/object/decycle.js +1 -1
- package/utils/object/decycle.js.map +1 -1
- package/utils/object/dereference.d.ts +2 -2
- package/utils/object/dereference.js +1 -1
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.d.ts +2 -2
- package/utils/object/lazy-property.d.ts +6 -6
- package/utils/object/merge.d.ts +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/property-name.d.ts +6 -6
- package/utils/ordered-feedable-async-iterable.js +5 -5
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +2 -2
- package/utils/periodic-reporter.js +3 -3
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.d.ts +1 -1
- package/utils/provider-function-iterable.d.ts +2 -2
- package/utils/proxy.d.ts +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/singleton.d.ts +2 -2
- package/utils/sort.d.ts +2 -2
- package/utils/stream/size-limited-stream.d.ts +1 -1
- package/utils/stream/size-limited-stream.js +1 -1
- package/utils/stream/size-limited-stream.js.map +1 -1
- package/utils/stream/stream-helper-types.d.ts +5 -5
- package/utils/stream/stream-reader.js +1 -1
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/type-guards.d.ts +4 -4
- package/utils/type-guards.js +1 -1
- package/utils/type-guards.js.map +1 -1
- package/utils/url-builder.d.ts +4 -4
- package/utils/url-builder.js +1 -1
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/web-types.d.ts +4 -4
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { Enumeration, EnumerationValue } from
|
|
2
|
-
import type { PropertyName } from
|
|
1
|
+
import type { Enumeration, EnumerationValue } from '#/types';
|
|
2
|
+
import type { PropertyName } from '#/utils/object/property-name';
|
|
3
3
|
import type { Observable } from 'rxjs';
|
|
4
|
-
export
|
|
4
|
+
export type Language = {
|
|
5
5
|
code: string;
|
|
6
6
|
name: string;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
|
|
8
|
+
export type LocalizeFunction<Parameters = void> = (parameters: Parameters) => string;
|
|
9
|
+
export type LocalizeItem<Parameters = void> = string | LocalizeFunction<Parameters>;
|
|
10
|
+
type LocalizationTemplate = {
|
|
11
11
|
[key: string]: LocalizeItem<any> | LocalizationTemplate;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type EnumerationLocalization<T extends Enumeration = Enumeration> = {
|
|
14
14
|
[P in EnumerationValue<T>]: LocalizeItem<any>;
|
|
15
15
|
};
|
|
16
|
-
export
|
|
17
|
-
export
|
|
16
|
+
export type EnumerationLocalizationEntry<T extends Enumeration = Enumeration> = [T, EnumerationLocalization<T>];
|
|
17
|
+
export type Localization<T extends LocalizationTemplate = LocalizationTemplate, Enums extends Enumeration[] = []> = {
|
|
18
18
|
language: Language;
|
|
19
19
|
keys: T;
|
|
20
20
|
enums: {
|
|
@@ -22,18 +22,18 @@ export declare type Localization<T extends LocalizationTemplate = LocalizationTe
|
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
24
|
declare const parametersSymbol: unique symbol;
|
|
25
|
-
export
|
|
25
|
+
export type LocalizationKey<Parameters = void> = PropertyName & {
|
|
26
26
|
[parametersSymbol]: Parameters;
|
|
27
27
|
};
|
|
28
|
-
export
|
|
28
|
+
export type LocalizationData<Parameters = any> = LocalizationKey | LocalizationDataObject<Parameters> | {
|
|
29
29
|
key: LocalizationKey;
|
|
30
30
|
parameters?: void;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
32
|
+
export type LocalizationDataObject<Parameters> = {
|
|
33
33
|
key: LocalizationKey<Parameters>;
|
|
34
34
|
parameters: Parameters;
|
|
35
35
|
};
|
|
36
|
-
export
|
|
36
|
+
export type LocalizationKeys<T extends LocalizationTemplate> = {
|
|
37
37
|
[P in keyof T]: T[P] extends LocalizationTemplate ? LocalizationKeys<T[P]> : T[P] extends LocalizeItem<infer R> ? LocalizationKey<R> : LocalizationKey;
|
|
38
38
|
};
|
|
39
39
|
export declare function isLocalizationKey(value: any): value is LocalizationKey;
|
|
@@ -10,11 +10,11 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.autoEnumerationLocalization = exports.enumerationLocalization = exports.LocalizationService = exports.getLocalizationKeys = exports.localizationData = exports.getLocalizationKey = exports.isLocalizationKey = void 0;
|
|
13
|
-
const container_1 = require("
|
|
14
|
-
const enum_1 = require("
|
|
15
|
-
const object_1 = require("
|
|
16
|
-
const property_name_1 = require("
|
|
17
|
-
const type_guards_1 = require("
|
|
13
|
+
const container_1 = require("#/container");
|
|
14
|
+
const enum_1 = require("#/utils/enum");
|
|
15
|
+
const object_1 = require("#/utils/object/object");
|
|
16
|
+
const property_name_1 = require("#/utils/object/property-name");
|
|
17
|
+
const type_guards_1 = require("#/utils/type-guards");
|
|
18
18
|
const rxjs_1 = require("rxjs");
|
|
19
19
|
function isLocalizationKey(value) {
|
|
20
20
|
return (0, property_name_1.isPropertyName)(value);
|
|
@@ -40,13 +40,6 @@ function getLocalizationKeys(_localization) {
|
|
|
40
40
|
exports.getLocalizationKeys = getLocalizationKeys;
|
|
41
41
|
const parametersPattern = /(?:\{\{\s*(?<parameter>\w+)\s*\}\})/ug;
|
|
42
42
|
let LocalizationService = class LocalizationService {
|
|
43
|
-
constructor() {
|
|
44
|
-
this.localizations = new Map();
|
|
45
|
-
this.activeLanguageSubject = new rxjs_1.BehaviorSubject(undefined);
|
|
46
|
-
this.availableLanguagesSubject = new rxjs_1.BehaviorSubject([]);
|
|
47
|
-
this.activeLanguage$ = this.activeLanguageSubject.asObservable();
|
|
48
|
-
this.availableLanguages$ = this.availableLanguagesSubject.asObservable();
|
|
49
|
-
}
|
|
50
43
|
get activeLocalization() {
|
|
51
44
|
if ((0, type_guards_1.isUndefined)(this.activeLanguage)) {
|
|
52
45
|
throw new Error('Language not set.');
|
|
@@ -59,6 +52,13 @@ let LocalizationService = class LocalizationService {
|
|
|
59
52
|
get activeLanguage() {
|
|
60
53
|
return this.activeLanguageSubject.value;
|
|
61
54
|
}
|
|
55
|
+
constructor() {
|
|
56
|
+
this.localizations = new Map();
|
|
57
|
+
this.activeLanguageSubject = new rxjs_1.BehaviorSubject(undefined);
|
|
58
|
+
this.availableLanguagesSubject = new rxjs_1.BehaviorSubject([]);
|
|
59
|
+
this.activeLanguage$ = this.activeLanguageSubject.asObservable();
|
|
60
|
+
this.availableLanguages$ = this.availableLanguagesSubject.asObservable();
|
|
61
|
+
}
|
|
62
62
|
registerLocalization(...localizations) {
|
|
63
63
|
for (const localization of localizations) {
|
|
64
64
|
if (this.localizations.has(localization.language.code)) {
|
|
@@ -156,7 +156,7 @@ function enumerationLocalization(enumeration, localization) {
|
|
|
156
156
|
exports.enumerationLocalization = enumerationLocalization;
|
|
157
157
|
function autoEnumerationLocalization(enumeration) {
|
|
158
158
|
if ((0, type_guards_1.isObject)(enumeration)) {
|
|
159
|
-
return [enumeration, Object.fromEntries((0, enum_1.enumEntries)(enumeration))];
|
|
159
|
+
return [enumeration, Object.fromEntries((0, enum_1.enumEntries)(enumeration).map(([key, value]) => [value, key]))];
|
|
160
160
|
}
|
|
161
161
|
const arrayEntries = enumeration.map((value) => [value, value]);
|
|
162
162
|
return [enumeration, Object.fromEntries(arrayEntries)];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localization.service.js","sourceRoot":"","sources":["../../source/text/localization.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"localization.service.js","sourceRoot":"","sources":["../../source/text/localization.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAwC;AAExC,uCAA0D;AAC1D,kDAAoD;AAEpD,gEAAkG;AAClG,qDAAoI;AAEpI,+BAA4C;AA8C5C,SAAgB,iBAAiB,CAAC,KAAU;IAC1C,OAAO,IAAA,8BAAc,EAAC,KAAK,CAAC,CAAC;AAC/B,CAAC;AAFD,8CAEC;AAED,SAAgB,kBAAkB,CAAoB,GAAW;IAC/D,OAAO,EAAE,CAAC,4BAAY,CAAC,EAAE,GAAG,EAAiC,CAAC;AAChE,CAAC;AAFD,gDAEC;AAED,4CAA4C;AAC5C,SAAgB,gBAAgB,CAAI,IAAyB;IAC3D,OAAO,IAAI,CAAC;AACd,CAAC;AAFD,4CAEC;AAED;;;;GAIG;AACH,SAAgB,mBAAmB,CAAmC,aAAiB;IACrF,OAAO,IAAA,oCAAoB,GAA4C,CAAC;AAC1E,CAAC;AAFD,kDAEC;AAQD,MAAM,iBAAiB,GAAG,uCAAuC,CAAC;AAG3D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C,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,KAAK,CAAU,CAAC,CAAC;IAC/F,OAAO,CAAC,WAAW,EAAE,MAAM,CAAC,WAAW,CAAC,YAAY,CAA+B,CAAC,CAAC;AACvF,CAAC;AAPD,kEAOC;AAED,SAAS,uBAAuB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAgB;IACtE,MAAM,kBAAkB,GAAuB;QAC7C,QAAQ;QACR,IAAI,EAAE,IAAI,GAAG,CAAC,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAChC,KAAK,EAAE,IAAI,GAAG,CAAC,KAAK,CAAC;KACtB,CAAC;IAEF,OAAO,kBAAkB,CAAC;AAC5B,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import type { AsyncDisposable } from
|
|
3
|
-
import { disposeAsync } from
|
|
4
|
-
import type { Logger } from
|
|
2
|
+
import type { AsyncDisposable } from '#/disposable';
|
|
3
|
+
import { disposeAsync } from '#/disposable';
|
|
4
|
+
import type { Logger } from '#/logger';
|
|
5
5
|
import type * as NodeWorkerThreads from 'worker_threads';
|
|
6
6
|
import type { ThreadWorker } from './thread-worker';
|
|
7
|
-
export
|
|
7
|
+
export type ThreadOptions = (WorkerOptions | NodeWorkerThreads.WorkerOptions) & {
|
|
8
8
|
threadCount?: number;
|
|
9
9
|
};
|
|
10
10
|
export declare class ThreadPool implements AsyncDisposable {
|
package/threading/thread-pool.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ThreadPool = void 0;
|
|
4
|
-
const disposable_1 = require("
|
|
5
|
-
const environment_1 = require("
|
|
6
|
-
const pool_1 = require("
|
|
7
|
-
const require_1 = require("
|
|
8
|
-
const rpc_1 = require("
|
|
4
|
+
const disposable_1 = require("#/disposable");
|
|
5
|
+
const environment_1 = require("#/environment");
|
|
6
|
+
const pool_1 = require("#/pool");
|
|
7
|
+
const require_1 = require("#/require");
|
|
8
|
+
const rpc_1 = require("#/rpc");
|
|
9
9
|
let spawnWorker;
|
|
10
10
|
if (environment_1.isNode) {
|
|
11
11
|
const { Worker: NodeWorker } = (0, require_1.dynamicRequire)('worker_threads');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-pool.js","sourceRoot":"","sources":["../../source/threading/thread-pool.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"thread-pool.js","sourceRoot":"","sources":["../../source/threading/thread-pool.ts"],"names":[],"mappings":";;;AACA,6CAA4C;AAC5C,+CAAuC;AAEvC,iCAA8B;AAC9B,uCAA2C;AAE3C,+BAA4B;AAe5B,IAAI,WAAkE,CAAC;AAEvE,IAAI,oBAAM,EAAE;IACV,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,GAAG,IAAA,wBAAc,EAA2B,gBAAgB,CAAC,CAAC;IAC1F,WAAW,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,GAAG,EAAE,OAA0C,CAAC,CAAC;CACjG;KACI;IACH,WAAW,GAAG,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,GAAG,EAAE,OAAwB,CAAC,CAAC;CAC3E;AAED,MAAa,UAAU;IAMrB,YAAY,GAAiB,EAAE,MAAc,EAAE,OAAuB;QACpE,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;QACf,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QAEvB,IAAI,CAAC,IAAI,GAAG,IAAI,WAAI,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,OA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;IAC7B,CAAC;CACF;AA9CD,gCA8CC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { RpcEndpointSource } from
|
|
2
|
-
export
|
|
1
|
+
import type { RpcEndpointSource } from '#/rpc';
|
|
2
|
+
export type ThreadWorker = (...args: any[]) => any | Promise<any>;
|
|
3
3
|
export declare function exposeThreadWorker<T extends ThreadWorker>(worker: T, endpointOrSource: RpcEndpointSource, name?: string): void;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.exposeThreadWorker = void 0;
|
|
4
|
-
const rpc_1 = require("
|
|
4
|
+
const rpc_1 = require("#/rpc");
|
|
5
5
|
function exposeThreadWorker(worker, endpointOrSource, name = 'default') {
|
|
6
6
|
rpc_1.Rpc.expose(worker, endpointOrSource, `thread-worker:${name}`);
|
|
7
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread-worker.js","sourceRoot":"","sources":["../../source/threading/thread-worker.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"thread-worker.js","sourceRoot":"","sources":["../../source/threading/thread-worker.ts"],"names":[],"mappings":";;;AACA,+BAA4B;AAI5B,SAAgB,kBAAkB,CAAyB,MAAS,EAAE,gBAAmC,EAAE,OAAe,SAAS;IACjI,SAAG,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAC;AAChE,CAAC;AAFD,gDAEC"}
|
package/types/geo-json.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import type { JsonObject } from
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
import type { JsonObject } from '#/types';
|
|
2
|
+
export type Position = [longitude: number, latitude: number, elevation?: number];
|
|
3
|
+
export type GeoJsonObject<Type extends string> = {
|
|
4
4
|
type: Type;
|
|
5
5
|
bbox?: [number, number, number, number] | [number, number, number, number, number, number];
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type Point = GeoJsonObject<'Point'> & {
|
|
8
8
|
coordinates: Position;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type LineString = GeoJsonObject<'LineString'> & {
|
|
11
11
|
coordinates: Position[];
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type Polygon = GeoJsonObject<'Polygon'> & {
|
|
14
14
|
coordinates: Position[][];
|
|
15
15
|
};
|
|
16
|
-
export
|
|
16
|
+
export type MultiPoint = GeoJsonObject<'MultiPoint'> & {
|
|
17
17
|
coordinates: Position[];
|
|
18
18
|
};
|
|
19
|
-
export
|
|
19
|
+
export type MultiLineString = GeoJsonObject<'MultiLineString'> & {
|
|
20
20
|
coordinates: Position[][];
|
|
21
21
|
};
|
|
22
|
-
export
|
|
22
|
+
export type MultiPolygon = GeoJsonObject<'MultiPolygon'> & {
|
|
23
23
|
coordinates: Position[][][];
|
|
24
24
|
};
|
|
25
|
-
export
|
|
25
|
+
export type GeometryCollection = GeoJsonObject<'GeometryCollection'> & {
|
|
26
26
|
geometries: Geometry[];
|
|
27
27
|
};
|
|
28
|
-
export
|
|
29
|
-
export
|
|
28
|
+
export type Geometry = Point | LineString | Polygon | MultiPoint | MultiLineString | MultiPolygon | GeometryCollection;
|
|
29
|
+
export type Feature<G extends Geometry | null = null, P extends JsonObject | null = null> = GeoJsonObject<'Feature'> & {
|
|
30
30
|
id?: string | number;
|
|
31
31
|
geometry: G;
|
|
32
32
|
properties: P;
|
|
33
33
|
};
|
|
34
|
-
export
|
|
34
|
+
export type FeatureCollection<G extends Geometry | null = null, P extends JsonObject | null = null> = GeoJsonObject<'FeatureCollection'> & {
|
|
35
35
|
features: Feature<G, P>[];
|
|
36
36
|
};
|
package/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { UnionToIntersection } from 'type-fest';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export type ObjectLiteral = {};
|
|
3
|
+
export type PrimitiveTypeMap = {
|
|
4
4
|
'string': string;
|
|
5
5
|
'number': number;
|
|
6
6
|
'boolean': boolean;
|
|
@@ -10,160 +10,160 @@ export declare type PrimitiveTypeMap = {
|
|
|
10
10
|
'function': Function;
|
|
11
11
|
'undefined': undefined;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
13
|
+
export type PrimitiveTypeString<T extends PrimitiveTypeMap[keyof PrimitiveTypeMap] = PrimitiveTypeMap[keyof PrimitiveTypeMap]> = Simplify<keyof PickBy<PrimitiveTypeMap, T>>;
|
|
14
|
+
export type PrimitiveType<T extends keyof PrimitiveTypeMap = keyof PrimitiveTypeMap> = Simplify<PrimitiveTypeMap[T]>;
|
|
15
|
+
export type Nested<T> = T | NestedObject<T> | NestedArray<T>;
|
|
16
|
+
export type NestedObject<T> = {
|
|
17
17
|
[key: string]: Nested<T>;
|
|
18
18
|
};
|
|
19
|
-
export
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
19
|
+
export type NestedArray<T> = T[];
|
|
20
|
+
export type Primitive = string | number | boolean | bigint | null | undefined | symbol;
|
|
21
|
+
export type PrimitiveValue = Primitive | PrimitiveObject | PrimitiveArray;
|
|
22
|
+
export type PrimitiveObject = {
|
|
23
23
|
[key: string]: PrimitiveValue;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
25
|
+
export type PrimitiveArray = PrimitiveValue[];
|
|
26
|
+
export type BuiltIn = Primitive | RegExp | Date | Function;
|
|
27
|
+
export type Json = JsonPrimitive | JsonObject | JsonArray;
|
|
28
|
+
export type JsonPrimitive = string | number | boolean | null;
|
|
29
|
+
export type JsonObject = {
|
|
30
30
|
[key: string]: Json;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
32
|
+
export type JsonArray = Json[];
|
|
33
|
+
export type UndefinableJson = JsonPrimitive | UndefinableJsonObject | UndefinableJsonArray;
|
|
34
|
+
export type UndefinableJsonInnerNode = UndefinableJsonPrimitive | UndefinableJsonObject | UndefinableJsonArray;
|
|
35
|
+
export type UndefinableJsonPrimitive = JsonPrimitive | undefined;
|
|
36
|
+
export type UndefinableJsonObject = {
|
|
37
37
|
[key: string]: UndefinableJsonInnerNode;
|
|
38
38
|
};
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
39
|
+
export type UndefinableJsonArray = UndefinableJsonInnerNode[];
|
|
40
|
+
export type ArrayItem<T extends readonly any[]> = T extends readonly (infer U)[] ? U : never;
|
|
41
|
+
export type Enumeration = EnumerationArray | EnumerationObject;
|
|
42
|
+
export type EnumerationArray = readonly [string | number, ...(string | number)[]];
|
|
43
|
+
export type EnumerationObject = Record<string, string | number>;
|
|
44
|
+
export type EnumerationKey<T extends EnumerationObject = EnumerationObject> = Extract<keyof T, string>;
|
|
45
|
+
export type EnumerationMap<T extends EnumerationObject = EnumerationObject> = SimplifyObject<{
|
|
46
46
|
[P in EnumerationKey<T>]: (T[P] extends number ? (`${T[P]}` extends `${infer U extends number}` ? U : never) : `${T[P]}`) | T[P];
|
|
47
47
|
}>;
|
|
48
|
-
export
|
|
49
|
-
export
|
|
48
|
+
export type EnumerationValue<T extends Enumeration = Enumeration> = T extends EnumerationObject ? Simplify<EnumerationMap<T>[keyof EnumerationMap<T>]> : T extends EnumerationArray ? T[number] : never;
|
|
49
|
+
export type EnumerationEntry<T extends EnumerationObject = EnumerationObject> = {
|
|
50
50
|
[P in EnumerationKey<T>]: [P, EnumerationMap<T>[P]];
|
|
51
51
|
}[EnumerationKey<T>];
|
|
52
|
-
|
|
52
|
+
type EnumerationEntriesHelper<T extends EnumerationObject = EnumerationObject, Tuple = UnionToTuple<EnumerationKey<T>>> = {
|
|
53
53
|
[P in keyof Tuple]: [Tuple[P], Tuple[P] extends EnumerationKey<T> ? EnumerationMap<T>[Tuple[P]] : never];
|
|
54
54
|
};
|
|
55
|
-
export
|
|
56
|
-
export
|
|
55
|
+
export type EnumerationEntries<T extends EnumerationObject = EnumerationObject> = EnumerationEntriesHelper<T> extends (infer U)[] ? U[] : never;
|
|
56
|
+
export type Type<T = any, Arguments extends any[] = any> = Constructor<T, Arguments> & {
|
|
57
57
|
prototype: T;
|
|
58
58
|
};
|
|
59
|
-
export
|
|
60
|
-
export
|
|
59
|
+
export type Constructor<T = any, Arguments extends any[] = any> = new (...args: Arguments) => T;
|
|
60
|
+
export type AbstractType<T = any, Arguments extends any[] = any> = AbstractConstructor<T, Arguments> & {
|
|
61
61
|
prototype: T;
|
|
62
62
|
};
|
|
63
|
-
export
|
|
64
|
-
export
|
|
65
|
-
export
|
|
63
|
+
export type AbstractConstructor<T = any, Arguments extends any[] = any> = abstract new (...args: Arguments) => T;
|
|
64
|
+
export type ReturnTypeOrT<T> = T extends (...args: any) => infer R ? R : T;
|
|
65
|
+
export type Record<K extends PropertyKey = PropertyKey, V = any> = {
|
|
66
66
|
[P in K]: V;
|
|
67
67
|
};
|
|
68
|
-
export
|
|
68
|
+
export type DeepRecord<K extends PropertyKey = PropertyKey, V = any> = {
|
|
69
69
|
[P in K]: V | DeepRecord<K, V>;
|
|
70
70
|
};
|
|
71
|
-
export
|
|
72
|
-
export
|
|
73
|
-
export
|
|
71
|
+
export type StringMap<T = any> = Record<string, T>;
|
|
72
|
+
export type NumberMap<T = any> = Record<number, T>;
|
|
73
|
+
export type StringNumberMap<T = any> = {
|
|
74
74
|
[key: string]: T;
|
|
75
75
|
[key: number]: T;
|
|
76
76
|
};
|
|
77
|
-
export
|
|
78
|
-
export
|
|
79
|
-
export
|
|
77
|
+
export type OneOrMany<T> = T | readonly T[];
|
|
78
|
+
export type WritableOneOrMany<T> = T | T[];
|
|
79
|
+
export type Writable<T> = {
|
|
80
80
|
-readonly [P in keyof T]: T[P];
|
|
81
81
|
};
|
|
82
|
-
export
|
|
82
|
+
export type RequiredKeys<T> = {
|
|
83
83
|
[K in keyof T]-?: {} extends Pick<T, K> ? never : K;
|
|
84
84
|
}[keyof T];
|
|
85
|
-
export
|
|
85
|
+
export type OptionalKeys<T> = {
|
|
86
86
|
[K in keyof T]-?: {} extends Pick<T, K> ? K : never;
|
|
87
87
|
}[keyof T];
|
|
88
|
-
export
|
|
89
|
-
export
|
|
90
|
-
export
|
|
91
|
-
export
|
|
88
|
+
export type TypedOmit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
89
|
+
export type TypedExtract<T, U extends T> = T extends U ? T : never;
|
|
90
|
+
export type ReplaceIfUnknown<T, U> = IfUnknown<T, U, T>;
|
|
91
|
+
export type OmitNever<T extends Record> = {
|
|
92
92
|
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
|
93
93
|
};
|
|
94
|
-
export
|
|
94
|
+
export type SharedProperties<A, B, C = unknown, D = unknown, E = unknown, F = unknown, G = unknown, H = unknown, I = unknown, J = unknown> = OmitNever<Pick<A & B & C & D & E & F & G & H & I & J, keyof A & keyof B & keyof ReplaceIfUnknown<C, never> & keyof ReplaceIfUnknown<D, never> & keyof ReplaceIfUnknown<E, never> & keyof ReplaceIfUnknown<F, never> & keyof ReplaceIfUnknown<G, never> & keyof ReplaceIfUnknown<H, never> & keyof ReplaceIfUnknown<I, never> & keyof ReplaceIfUnknown<J, never>>>;
|
|
95
95
|
/**
|
|
96
96
|
* omit properties from a type that extend from a specific type.
|
|
97
97
|
*/
|
|
98
|
-
export
|
|
98
|
+
export type OmitBy<T, V> = Omit<T, {
|
|
99
99
|
[K in keyof T]: V extends Extract<T[K], V> ? K : never;
|
|
100
100
|
}[keyof T]>;
|
|
101
101
|
/**
|
|
102
102
|
* normalize properties of a type that allow `undefined` to make them optional.
|
|
103
103
|
*/
|
|
104
|
-
export
|
|
105
|
-
export
|
|
104
|
+
export type Optionalize<T extends object> = OmitBy<T, undefined> & Partial<PickBy<T, undefined>>;
|
|
105
|
+
export type SimplifiedOptionalize<T extends object> = Simplify<Optionalize<T>>;
|
|
106
106
|
/**
|
|
107
107
|
* remove nested type information
|
|
108
108
|
*/
|
|
109
|
-
export
|
|
109
|
+
export type Simplify<T> = T extends (Primitive | Function | Date | RegExp) ? T : T extends (infer AT)[] ? Simplify<AT>[] : T extends readonly (infer AT)[] ? readonly Simplify<AT>[] : T extends Record ? SimplifyObject<T> : T;
|
|
110
110
|
/**
|
|
111
111
|
* remove type information on object
|
|
112
112
|
*/
|
|
113
|
-
export
|
|
113
|
+
export type SimplifyObject<T extends Record> = {
|
|
114
114
|
[K in keyof T]: T[K];
|
|
115
115
|
} & {};
|
|
116
|
-
export
|
|
117
|
-
export
|
|
116
|
+
export type UnionToTuple<T, Tuple extends any[] = []> = UnionToIntersection<T extends any ? () => T : never> extends () => infer R ? UnionToTuple<Exclude<T, R>, [R, ...Tuple]> : Tuple;
|
|
117
|
+
export type UndefinableObject<T extends Record> = {
|
|
118
118
|
[K in keyof T]: T[K] | undefined;
|
|
119
119
|
};
|
|
120
120
|
/**
|
|
121
121
|
* pick properties from a type that extend from a specific type.
|
|
122
122
|
*/
|
|
123
|
-
export
|
|
123
|
+
export type PickBy<T, V> = Pick<T, {
|
|
124
124
|
[K in keyof T]: V extends Extract<T[K], V> ? K : never;
|
|
125
125
|
}[keyof T]>;
|
|
126
|
-
export
|
|
127
|
-
export
|
|
128
|
-
export
|
|
126
|
+
export type NonNullable<T> = T extends null ? never : T;
|
|
127
|
+
export type NonUndefinable<T> = T extends undefined ? never : T;
|
|
128
|
+
export type NonNullOrUndefinable<T> = T extends null | undefined ? never : T;
|
|
129
129
|
/**
|
|
130
130
|
* makes optional properties required and removes null and undefined
|
|
131
131
|
*/
|
|
132
|
-
export
|
|
132
|
+
export type DeepNonNullable<T> = T extends Record ? {
|
|
133
133
|
[P in keyof T]-?: DeepNonNullable<T[P]>;
|
|
134
134
|
} : NonNullable<T>;
|
|
135
|
-
export
|
|
136
|
-
export
|
|
137
|
-
export
|
|
138
|
-
export
|
|
139
|
-
export
|
|
140
|
-
export
|
|
141
|
-
export
|
|
142
|
-
export
|
|
143
|
-
export
|
|
135
|
+
export type IfAny<T, Then, Else = never> = true extends (false & T) ? Then : Else;
|
|
136
|
+
export type IfUnknown<T, Then, Else = never> = unknown extends T ? Then : Else;
|
|
137
|
+
export type IsAny<T> = IfAny<T, true, false>;
|
|
138
|
+
export type IsUnknown<T> = IfUnknown<T, true, false>;
|
|
139
|
+
export type If<B extends Boolean, Then, Else> = B extends true ? Then : Else;
|
|
140
|
+
export type PartialProperty<T, P extends keyof T> = Omit<T, P> & Partial<Pick<T, P>>;
|
|
141
|
+
export type TypeOf<T extends object, P extends keyof T> = T[P];
|
|
142
|
+
export type PropertyOf<T extends object, P extends keyof T> = Property<Of<T>, P>;
|
|
143
|
+
export type Property<T extends object, P extends keyof T> = {
|
|
144
144
|
[P2 in keyof T[P]]: T[P][P2];
|
|
145
145
|
};
|
|
146
|
-
export
|
|
147
|
-
export
|
|
148
|
-
export
|
|
149
|
-
export
|
|
146
|
+
export type Of<T> = T;
|
|
147
|
+
export type PropertiesOfType<T, U> = keyof PickBy<T, U>;
|
|
148
|
+
export type Flatten<T> = T extends readonly (infer R)[] ? R : T;
|
|
149
|
+
export type DeepFlatten<T> = T extends readonly (infer R)[] ? DeepFlatten<R> : T extends Record ? {
|
|
150
150
|
[P in keyof T]: DeepFlatten<T[P]>;
|
|
151
151
|
} : T;
|
|
152
|
-
export
|
|
153
|
-
export
|
|
154
|
-
export
|
|
152
|
+
export type DeepArray<T> = (T | DeepArray<T>)[];
|
|
153
|
+
export type DeepReadonly<T> = T extends BuiltIn ? T : T extends (any[] | readonly any[]) ? DeepReadonlyArray<T[number]> : DeepReadonlyObject<T>;
|
|
154
|
+
export type DeepReadonlyObject<T> = {
|
|
155
155
|
readonly [P in keyof T]: DeepReadonly<T[P]>;
|
|
156
156
|
};
|
|
157
|
-
export
|
|
158
|
-
export
|
|
159
|
-
export
|
|
157
|
+
export type DeepReadonlyArray<T> = readonly DeepReadonly<T>[];
|
|
158
|
+
export type DeepPartial<T> = T extends BuiltIn ? T : T extends any[] ? DeepPartialArray<T[number]> : T extends readonly any[] ? Readonly<DeepPartialArray<T[number]>> : DeepPartialObject<T>;
|
|
159
|
+
export type DeepPartialObject<T> = {
|
|
160
160
|
[P in keyof T]?: DeepPartial<T[P]>;
|
|
161
161
|
};
|
|
162
|
-
export
|
|
163
|
-
export
|
|
164
|
-
export
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
export type DeepPartialArray<T> = DeepPartial<T>[];
|
|
163
|
+
export type TypedArray = Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array | BigInt64Array | BigUint64Array;
|
|
164
|
+
export type BinaryData = ArrayBuffer | ArrayBufferView;
|
|
165
|
+
type JoinPaths<K, P> = K extends string | number ? P extends string | number ? `${K}${'' extends P ? '' : '.'}${P}` : never : never;
|
|
166
|
+
type Prev = [
|
|
167
167
|
never,
|
|
168
168
|
0,
|
|
169
169
|
1,
|
|
@@ -188,10 +188,10 @@ declare type Prev = [
|
|
|
188
188
|
20,
|
|
189
189
|
...0[]
|
|
190
190
|
];
|
|
191
|
-
export
|
|
191
|
+
export type Paths<T, D extends number = 10> = [D] extends [never] ? never : T extends object ? {
|
|
192
192
|
[K in keyof T]-?: K extends string | number ? `${K}` | (Paths<T[K], Prev[D]> extends infer R ? JoinPaths<K, R> : never) : never;
|
|
193
193
|
}[keyof T] : '';
|
|
194
|
-
export
|
|
194
|
+
export type LeavePaths<T, D extends number = 10> = [D] extends [never] ? never : T extends object ? {
|
|
195
195
|
[K in keyof T]-?: JoinPaths<K, LeavePaths<T[K], Prev[D]>>;
|
|
196
196
|
}[keyof T] : '';
|
|
197
197
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type AnyIterable<T> = Iterable<T> | AsyncIterable<T>;
|
|
2
|
+
export type AnyIterator<T> = Iterator<T> | AsyncIterator<T>;
|
|
3
|
+
export type AnyIterableIterator<T> = IterableIterator<T> | AsyncIterableIterator<T>;
|
|
4
4
|
export declare function isAnyIterable<T = any>(obj: any): obj is AnyIterable<T>;
|
|
@@ -5,6 +5,9 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const set_1 = require("../set");
|
|
6
6
|
const type_guards_1 = require("../type-guards");
|
|
7
7
|
class ArrayBacktracker {
|
|
8
|
+
get record() {
|
|
9
|
+
return this.recordMap;
|
|
10
|
+
}
|
|
8
11
|
constructor(array) {
|
|
9
12
|
this.recordMap = new Map();
|
|
10
13
|
this.recordMapSubject = new rxjs_1.BehaviorSubject(this.recordMap);
|
|
@@ -14,9 +17,6 @@ class ArrayBacktracker {
|
|
|
14
17
|
this.track(array);
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
|
-
get record() {
|
|
18
|
-
return this.recordMap;
|
|
19
|
-
}
|
|
20
20
|
/**
|
|
21
21
|
* gets a clone of the current record
|
|
22
22
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"array-backtracker.js","sourceRoot":"","sources":["../../../source/utils/array/array-backtracker.ts"],"names":[],"mappings":";;;AACA,+BAAuC;AACvC,gCAAwC;AACxC,gDAA2C;AAE3C,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"array-backtracker.js","sourceRoot":"","sources":["../../../source/utils/array/array-backtracker.ts"],"names":[],"mappings":";;;AACA,+BAAuC;AACvC,gCAAwC;AACxC,gDAA2C;AAE3C,MAAa,gBAAgB;IAM3B,IAAI,MAAM;QACR,OAAO,IAAI,CAAC,SAAS,CAAC;IACxB,CAAC;IAID,YAAY,KAAW;QACrB,IAAI,CAAC,SAAS,GAAG,IAAI,GAAG,EAAE,CA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AC;QACvB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IAC7C,CAAC;CACF;AAxDD,4CAwDC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.bufferAsync = void 0;
|
|
4
|
-
const circular_buffer_1 = require("
|
|
4
|
+
const circular_buffer_1 = require("#/data-structures/circular-buffer");
|
|
5
5
|
const cancellation_token_1 = require("../cancellation-token");
|
|
6
6
|
const object_1 = require("../object/object");
|
|
7
7
|
const take_until_1 = require("./take-until");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/buffer.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"buffer.js","sourceRoot":"","sources":["../../../source/utils/async-iterable-helpers/buffer.ts"],"names":[],"mappings":";;;AAAA,uEAAmE;AAEnE,8DAA0D;AAC1D,6CAAkD;AAClD,6CAA8C;AAM9C,kEAAkE;AAC3D,KAAK,SAAS,CAAC,CAAC,WAAW,CAAI,QAAwB,EAAE,IAAY;IAC1E,MAAM,MAAM,GAAG,IAAI,gCAAc,CAAgB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IAEpE,MAAM,kBAAkB,GAAG,IAAI,sCAAiB,EAAE,CAAC;IACnD,IAAI,gBAAgB,GAAG,KAAK,CAAC;IAC7B,IAAI,aAAkB,CAAC;IAEvB,KAAK,CAAC,KAAK,IAAI,EAAE;QACf,IAAI;YACF,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,IAAA,2BAAc,EAAC,QAAQ,EAAE,kBAAkB,CAAC,EAAE;gBACrE,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;gBAExC,IAAI,MAAM,CAAC,MAAM,EAAE;oBACjB,MAAM,MAAM,CAAC,YAAY,CAAC;iBAC3B;gBAED,uEAAuE;gBACvE,IAAI,gBAAgB,EAAE;oBACpB,MAAM,aAAa,CAAC;iBACrB;gBAED,uEAAuE;gBACvE,IAAI,kBAAkB,CAAC,KAAK,EAAE;oBAC5B,OAAO;iBACR;aACF;YAED,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC;SAC3B;QACD,OAAO,KAAc,EAAE;YACrB,MAAM,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,KAAc,EAAE,CAAC,CAAC;SAClD;IACH,CAAC,CAAC,EAAE,CAAC;IAEL,IAAI;QACF,IAAI,KAAK,EAAE,MAAM,IAAI,IAAI,MAAM,CAAC,YAAY,EAAE,EAAE;YAC9C,IAAI,IAAI,CAAC,GAAG,EAAE;gBACZ,IAAI,IAAA,uBAAc,EAAC,IAAI,EAAE,OAAO,CAAC,EAAE;oBACjC,MAAM,IAAI,CAAC,KAAM,CAAC;iBACnB;gBAED,MAAM;aACP;YAED,MAAM,IAAI,CAAC,KAAK,CAAC;SAClB;KACF;IACD,OAAO,KAAc,EAAE;QACrB,gBAAgB,GAAG,IAAI,CAAC;QACxB,aAAa,GAAG,KAAc,CAAC;QAC/B,MAAM,KAAK,CAAC;KACb;YACO;QACN,kBAAkB,CAAC,GAAG,EAAE,CAAC;QACzB,MAAM,CAAC,KAAK,EAAE,CAAC;KAChB;AACH,CAAC;AAxDD,kCAwDC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type FeedFunction<T> = (item: T, index: number) => void;
|
|
2
|
+
export type ParallelFeedIteratorFunction<TIn, TOut> = (item: TIn, index: number, feed: FeedFunction<TOut>) => Promise<void>;
|