@velajs/vela 1.18.0 → 1.19.1
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/CHANGELOG.md +78 -14
- package/dist/configurable-module.builder-5FGMaXG6.js +91 -0
- package/dist/configurable-module.builder-5FGMaXG6.js.map +1 -0
- package/dist/container-BqUHID4l.js +645 -0
- package/dist/container-BqUHID4l.js.map +1 -0
- package/dist/cron-matcher-C9qv5OUA.js +113 -0
- package/dist/cron-matcher-C9qv5OUA.js.map +1 -0
- package/dist/decorate-GcSMAbKn.js +528 -0
- package/dist/decorate-GcSMAbKn.js.map +1 -0
- package/dist/decorators-C8YBFCIk.js +53 -0
- package/dist/decorators-C8YBFCIk.js.map +1 -0
- package/dist/define-module-NOyOZNXD.js +235 -0
- package/dist/define-module-NOyOZNXD.js.map +1 -0
- package/dist/discovery.service-BYm95SSD.js +368 -0
- package/dist/discovery.service-BYm95SSD.js.map +1 -0
- package/dist/discovery.service-Cpf1QcZ5.d.ts +648 -0
- package/dist/i18n/index.d.ts +138 -10
- package/dist/i18n/index.js +270 -8
- package/dist/i18n/index.js.map +1 -0
- package/dist/index-D72EQfcC.d.ts +430 -0
- package/dist/index-DhShDLCM.d.ts +2310 -0
- package/dist/index.d.ts +6 -66
- package/dist/index.js +14 -71
- package/dist/internal.d.ts +13 -17
- package/dist/internal.js +6 -19
- package/dist/live/index.d.ts +2 -12
- package/dist/live/index.js +826 -16
- package/dist/live/index.js.map +1 -0
- package/dist/metadata.registry-D1od8ZBt.d.ts +842 -0
- package/dist/plugin-ByBlVOve.js +1387 -0
- package/dist/plugin-ByBlVOve.js.map +1 -0
- package/dist/queue/index.d.ts +247 -10
- package/dist/queue/index.js +384 -12
- package/dist/queue/index.js.map +1 -0
- package/dist/request-context-C3nCGJNd.js +26 -0
- package/dist/request-context-C3nCGJNd.js.map +1 -0
- package/dist/route.manager-DRAZ5X04.js +991 -0
- package/dist/route.manager-DRAZ5X04.js.map +1 -0
- package/dist/schedule-node/index.d.ts +32 -3
- package/dist/schedule-node/index.js +97 -3
- package/dist/schedule-node/index.js.map +1 -0
- package/dist/schedule.registry-DVm7Jp5w.d.ts +55 -0
- package/dist/seeder/index.d.ts +75 -5
- package/dist/seeder/index.js +105 -4
- package/dist/seeder/index.js.map +1 -0
- package/dist/signed-url-CMmi0SIb.js +56 -0
- package/dist/signed-url-CMmi0SIb.js.map +1 -0
- package/dist/signed-url-DKhgja4U.d.ts +16 -0
- package/dist/src-eb5CI6Xn.js +2151 -0
- package/dist/src-eb5CI6Xn.js.map +1 -0
- package/dist/storage/index.d.ts +57 -4
- package/dist/storage/index.js +22 -5
- package/dist/storage/index.js.map +1 -0
- package/dist/streaming/index.d.ts +2 -2
- package/dist/streaming/index.js +2 -1
- package/dist/websocket/index.d.ts +3 -12
- package/dist/websocket/index.js +2 -16
- package/dist/websocket-DXmB-MWJ.js +697 -0
- package/dist/websocket-DXmB-MWJ.js.map +1 -0
- package/dist/websocket-node/index.d.ts +108 -6
- package/dist/websocket-node/index.js +228 -6
- package/dist/websocket-node/index.js.map +1 -0
- package/package.json +67 -53
- package/dist/__tests__/workers/entry.d.ts +0 -9
- package/dist/__tests__/workers-als/entry-als.d.ts +0 -9
- package/dist/application.d.ts +0 -91
- package/dist/application.js +0 -308
- package/dist/cache/cache.decorators.d.ts +0 -2
- package/dist/cache/cache.decorators.js +0 -4
- package/dist/cache/cache.interceptor.d.ts +0 -9
- package/dist/cache/cache.interceptor.js +0 -60
- package/dist/cache/cache.module.d.ts +0 -7
- package/dist/cache/cache.module.js +0 -58
- package/dist/cache/cache.service.d.ts +0 -9
- package/dist/cache/cache.service.js +0 -42
- package/dist/cache/cache.store.d.ts +0 -12
- package/dist/cache/cache.store.js +0 -51
- package/dist/cache/cache.tokens.d.ts +0 -6
- package/dist/cache/cache.tokens.js +0 -5
- package/dist/cache/cache.types.d.ts +0 -41
- package/dist/cache/cache.types.js +0 -1
- package/dist/cache/index.d.ts +0 -8
- package/dist/cache/index.js +0 -7
- package/dist/cache/tiered-cache.store.d.ts +0 -19
- package/dist/cache/tiered-cache.store.js +0 -40
- package/dist/config/config.module.d.ts +0 -19
- package/dist/config/config.module.js +0 -98
- package/dist/config/config.service.d.ts +0 -20
- package/dist/config/config.service.js +0 -43
- package/dist/config/config.store.d.ts +0 -46
- package/dist/config/config.store.js +0 -119
- package/dist/config/config.tokens.d.ts +0 -13
- package/dist/config/config.tokens.js +0 -14
- package/dist/config/config.types.d.ts +0 -41
- package/dist/config/config.types.js +0 -4
- package/dist/config/index.d.ts +0 -7
- package/dist/config/index.js +0 -5
- package/dist/config/register-as.d.ts +0 -52
- package/dist/config/register-as.js +0 -39
- package/dist/constants.d.ts +0 -44
- package/dist/constants.js +0 -46
- package/dist/container/container.d.ts +0 -154
- package/dist/container/container.js +0 -849
- package/dist/container/decorators.d.ts +0 -17
- package/dist/container/decorators.js +0 -57
- package/dist/container/disposable.d.ts +0 -5
- package/dist/container/disposable.js +0 -33
- package/dist/container/index.d.ts +0 -6
- package/dist/container/index.js +0 -5
- package/dist/container/mixin.d.ts +0 -24
- package/dist/container/mixin.js +0 -26
- package/dist/container/module-ref.d.ts +0 -21
- package/dist/container/module-ref.js +0 -48
- package/dist/container/types.d.ts +0 -154
- package/dist/container/types.js +0 -49
- package/dist/cors/cors.module.d.ts +0 -7
- package/dist/cors/cors.module.js +0 -37
- package/dist/cors/cors.tokens.d.ts +0 -3
- package/dist/cors/cors.tokens.js +0 -2
- package/dist/cors/cors.types.d.ts +0 -8
- package/dist/cors/cors.types.js +0 -1
- package/dist/cors/index.d.ts +0 -3
- package/dist/cors/index.js +0 -2
- package/dist/crypto/signed-url.d.ts +0 -12
- package/dist/crypto/signed-url.js +0 -60
- package/dist/discovery/discoverable.decorator.d.ts +0 -38
- package/dist/discovery/discoverable.decorator.js +0 -42
- package/dist/discovery/discovery.service.d.ts +0 -102
- package/dist/discovery/discovery.service.js +0 -177
- package/dist/discovery/index.d.ts +0 -2
- package/dist/discovery/index.js +0 -2
- package/dist/entrypoint/entrypoint.registry.d.ts +0 -42
- package/dist/entrypoint/entrypoint.registry.js +0 -112
- package/dist/entrypoint/entrypoint.types.d.ts +0 -41
- package/dist/entrypoint/entrypoint.types.js +0 -3
- package/dist/entrypoint/execution-context.d.ts +0 -15
- package/dist/entrypoint/execution-context.js +0 -21
- package/dist/entrypoint/execution-scope.d.ts +0 -21
- package/dist/entrypoint/execution-scope.js +0 -28
- package/dist/entrypoint/index.d.ts +0 -4
- package/dist/entrypoint/index.js +0 -4
- package/dist/errors/http-exception.d.ts +0 -62
- package/dist/errors/http-exception.js +0 -134
- package/dist/errors/index.d.ts +0 -1
- package/dist/errors/index.js +0 -1
- package/dist/event-emitter/event-emitter.decorators.d.ts +0 -1
- package/dist/event-emitter/event-emitter.decorators.js +0 -10
- package/dist/event-emitter/event-emitter.module.d.ts +0 -2
- package/dist/event-emitter/event-emitter.module.js +0 -23
- package/dist/event-emitter/event-emitter.service.d.ts +0 -13
- package/dist/event-emitter/event-emitter.service.js +0 -127
- package/dist/event-emitter/event-emitter.subscriber.d.ts +0 -9
- package/dist/event-emitter/event-emitter.subscriber.js +0 -45
- package/dist/event-emitter/event-emitter.tokens.d.ts +0 -1
- package/dist/event-emitter/event-emitter.tokens.js +0 -1
- package/dist/event-emitter/event-emitter.types.d.ts +0 -5
- package/dist/event-emitter/event-emitter.types.js +0 -1
- package/dist/event-emitter/index.d.ts +0 -6
- package/dist/event-emitter/index.js +0 -5
- package/dist/factory/adapter.d.ts +0 -36
- package/dist/factory/adapter.js +0 -18
- package/dist/factory/bootstrap.d.ts +0 -23
- package/dist/factory/bootstrap.js +0 -108
- package/dist/factory.d.ts +0 -16
- package/dist/factory.js +0 -36
- package/dist/fetch/fetch.module.d.ts +0 -7
- package/dist/fetch/fetch.module.js +0 -31
- package/dist/fetch/fetch.service.d.ts +0 -24
- package/dist/fetch/fetch.service.js +0 -145
- package/dist/fetch/fetch.types.d.ts +0 -24
- package/dist/fetch/fetch.types.js +0 -1
- package/dist/fetch/index.d.ts +0 -3
- package/dist/fetch/index.js +0 -2
- package/dist/health/health.http.d.ts +0 -14
- package/dist/health/health.http.js +0 -75
- package/dist/health/health.indicator.d.ts +0 -9
- package/dist/health/health.indicator.js +0 -32
- package/dist/health/health.module.d.ts +0 -2
- package/dist/health/health.module.js +0 -26
- package/dist/health/health.service.d.ts +0 -7
- package/dist/health/health.service.js +0 -69
- package/dist/health/health.types.d.ts +0 -15
- package/dist/health/health.types.js +0 -1
- package/dist/health/index.d.ts +0 -6
- package/dist/health/index.js +0 -4
- package/dist/http/ambient.d.ts +0 -17
- package/dist/http/ambient.js +0 -44
- package/dist/http/argument-resolver.d.ts +0 -10
- package/dist/http/argument-resolver.js +0 -89
- package/dist/http/decorators.d.ts +0 -198
- package/dist/http/decorators.js +0 -321
- package/dist/http/execution-context.d.ts +0 -8
- package/dist/http/execution-context.js +0 -35
- package/dist/http/handler-executor.d.ts +0 -20
- package/dist/http/handler-executor.js +0 -111
- package/dist/http/index.d.ts +0 -12
- package/dist/http/index.js +0 -7
- package/dist/http/instantiate.d.ts +0 -4
- package/dist/http/instantiate.js +0 -45
- package/dist/http/lazy-param.decorator.d.ts +0 -37
- package/dist/http/lazy-param.decorator.js +0 -117
- package/dist/http/request-container.d.ts +0 -16
- package/dist/http/request-container.js +0 -19
- package/dist/http/request-context.d.ts +0 -13
- package/dist/http/request-context.js +0 -22
- package/dist/http/response-mapper.d.ts +0 -8
- package/dist/http/response-mapper.js +0 -42
- package/dist/http/route-contributor.d.ts +0 -68
- package/dist/http/route-contributor.js +0 -22
- package/dist/http/route-map.d.ts +0 -30
- package/dist/http/route-map.js +0 -27
- package/dist/http/route.manager.d.ts +0 -92
- package/dist/http/route.manager.js +0 -481
- package/dist/http/types.d.ts +0 -37
- package/dist/http/types.js +0 -1
- package/dist/http/url/index.d.ts +0 -4
- package/dist/http/url/index.js +0 -3
- package/dist/http/url/signed-url.guard.d.ts +0 -27
- package/dist/http/url/signed-url.guard.js +0 -62
- package/dist/http/url/signing-secret.d.ts +0 -20
- package/dist/http/url/signing-secret.js +0 -24
- package/dist/http/url/url-generator.service.d.ts +0 -52
- package/dist/http/url/url-generator.service.js +0 -104
- package/dist/i18n/deep-merge.d.ts +0 -2
- package/dist/i18n/deep-merge.js +0 -15
- package/dist/i18n/i18n.middleware.d.ts +0 -15
- package/dist/i18n/i18n.middleware.js +0 -94
- package/dist/i18n/i18n.module.d.ts +0 -13
- package/dist/i18n/i18n.module.js +0 -69
- package/dist/i18n/i18n.options.d.ts +0 -30
- package/dist/i18n/i18n.options.js +0 -16
- package/dist/i18n/i18n.service.d.ts +0 -20
- package/dist/i18n/i18n.service.js +0 -49
- package/dist/i18n/i18n.tokens.d.ts +0 -6
- package/dist/i18n/i18n.tokens.js +0 -3
- package/dist/i18n/i18n.types.d.ts +0 -6
- package/dist/i18n/i18n.types.js +0 -1
- package/dist/i18n/message-loader.service.d.ts +0 -21
- package/dist/i18n/message-loader.service.js +0 -90
- package/dist/i18n/message-registry.d.ts +0 -16
- package/dist/i18n/message-registry.js +0 -49
- package/dist/lifecycle/index.d.ts +0 -20
- package/dist/lifecycle/index.js +0 -15
- package/dist/live/live.cursor.d.ts +0 -22
- package/dist/live/live.cursor.js +0 -56
- package/dist/live/live.decorators.d.ts +0 -32
- package/dist/live/live.decorators.js +0 -46
- package/dist/live/live.delta.d.ts +0 -15
- package/dist/live/live.delta.js +0 -51
- package/dist/live/live.engine.d.ts +0 -81
- package/dist/live/live.engine.js +0 -448
- package/dist/live/live.invalidation.d.ts +0 -45
- package/dist/live/live.invalidation.js +0 -99
- package/dist/live/live.module.d.ts +0 -28
- package/dist/live/live.module.js +0 -87
- package/dist/live/live.tokens.d.ts +0 -9
- package/dist/live/live.tokens.js +0 -8
- package/dist/live/live.types.d.ts +0 -138
- package/dist/live/live.types.js +0 -1
- package/dist/live/presence.d.ts +0 -44
- package/dist/live/presence.js +0 -130
- package/dist/metadata.d.ts +0 -10
- package/dist/metadata.js +0 -20
- package/dist/module/configurable-module.builder.d.ts +0 -56
- package/dist/module/configurable-module.builder.js +0 -84
- package/dist/module/configurable-module.types.d.ts +0 -93
- package/dist/module/configurable-module.types.js +0 -5
- package/dist/module/decorators.d.ts +0 -10
- package/dist/module/decorators.js +0 -47
- package/dist/module/define-module.d.ts +0 -112
- package/dist/module/define-module.js +0 -232
- package/dist/module/graph.d.ts +0 -10
- package/dist/module/graph.js +0 -35
- package/dist/module/index.d.ts +0 -10
- package/dist/module/index.js +0 -7
- package/dist/module/lazy-modules.d.ts +0 -82
- package/dist/module/lazy-modules.js +0 -231
- package/dist/module/lazy-provider.d.ts +0 -65
- package/dist/module/lazy-provider.js +0 -111
- package/dist/module/middleware.d.ts +0 -30
- package/dist/module/middleware.js +0 -67
- package/dist/module/module-loader.d.ts +0 -58
- package/dist/module/module-loader.js +0 -484
- package/dist/module/stable-hash.d.ts +0 -15
- package/dist/module/stable-hash.js +0 -52
- package/dist/module/types.d.ts +0 -1
- package/dist/module/types.js +0 -1
- package/dist/openapi/decorators.d.ts +0 -34
- package/dist/openapi/decorators.js +0 -66
- package/dist/openapi/document.d.ts +0 -3
- package/dist/openapi/document.js +0 -316
- package/dist/openapi/index.d.ts +0 -7
- package/dist/openapi/index.js +0 -6
- package/dist/openapi/redoc-ui.d.ts +0 -1
- package/dist/openapi/redoc-ui.js +0 -19
- package/dist/openapi/scalar-ui.d.ts +0 -1
- package/dist/openapi/scalar-ui.js +0 -19
- package/dist/openapi/swagger-ui.d.ts +0 -1
- package/dist/openapi/swagger-ui.js +0 -23
- package/dist/openapi/types.d.ts +0 -182
- package/dist/openapi/types.js +0 -4
- package/dist/openapi/zod-to-json-schema.d.ts +0 -4
- package/dist/openapi/zod-to-json-schema.js +0 -57
- package/dist/pipeline/app-providers.d.ts +0 -10
- package/dist/pipeline/app-providers.js +0 -43
- package/dist/pipeline/component.manager.d.ts +0 -25
- package/dist/pipeline/component.manager.js +0 -66
- package/dist/pipeline/decorators.d.ts +0 -10
- package/dist/pipeline/decorators.js +0 -42
- package/dist/pipeline/index.d.ts +0 -12
- package/dist/pipeline/index.js +0 -7
- package/dist/pipeline/pipeline-runner.d.ts +0 -31
- package/dist/pipeline/pipeline-runner.js +0 -40
- package/dist/pipeline/pipes.d.ts +0 -48
- package/dist/pipeline/pipes.js +0 -104
- package/dist/pipeline/reflector.d.ts +0 -86
- package/dist/pipeline/reflector.js +0 -121
- package/dist/pipeline/scoped-components.d.ts +0 -26
- package/dist/pipeline/scoped-components.js +0 -27
- package/dist/pipeline/tokens.d.ts +0 -33
- package/dist/pipeline/tokens.js +0 -27
- package/dist/pipeline/types.d.ts +0 -64
- package/dist/pipeline/types.js +0 -1
- package/dist/plugin/plugin.d.ts +0 -31
- package/dist/plugin/plugin.js +0 -111
- package/dist/queue/inline.driver.d.ts +0 -30
- package/dist/queue/inline.driver.js +0 -58
- package/dist/queue/queue.binding.d.ts +0 -23
- package/dist/queue/queue.binding.js +0 -53
- package/dist/queue/queue.client.d.ts +0 -20
- package/dist/queue/queue.client.js +0 -33
- package/dist/queue/queue.decorators.d.ts +0 -23
- package/dist/queue/queue.decorators.js +0 -46
- package/dist/queue/queue.dispatch.d.ts +0 -36
- package/dist/queue/queue.dispatch.js +0 -102
- package/dist/queue/queue.module.d.ts +0 -32
- package/dist/queue/queue.module.js +0 -80
- package/dist/queue/queue.tokens.d.ts +0 -21
- package/dist/queue/queue.tokens.js +0 -34
- package/dist/queue/queue.types.d.ts +0 -61
- package/dist/queue/queue.types.js +0 -4
- package/dist/registry/index.d.ts +0 -2
- package/dist/registry/index.js +0 -1
- package/dist/registry/metadata.registry.d.ts +0 -73
- package/dist/registry/metadata.registry.js +0 -357
- package/dist/registry/paths.d.ts +0 -3
- package/dist/registry/paths.js +0 -15
- package/dist/registry/types.d.ts +0 -116
- package/dist/registry/types.js +0 -1
- package/dist/registry/util.d.ts +0 -3
- package/dist/registry/util.js +0 -8
- package/dist/schedule/cron-matcher.d.ts +0 -2
- package/dist/schedule/cron-matcher.js +0 -62
- package/dist/schedule/index.d.ts +0 -8
- package/dist/schedule/index.js +0 -5
- package/dist/schedule/schedule.decorators.d.ts +0 -2
- package/dist/schedule/schedule.decorators.js +0 -18
- package/dist/schedule/schedule.module.d.ts +0 -9
- package/dist/schedule/schedule.module.js +0 -28
- package/dist/schedule/schedule.registry.d.ts +0 -23
- package/dist/schedule/schedule.registry.js +0 -63
- package/dist/schedule/schedule.tokens.d.ts +0 -2
- package/dist/schedule/schedule.tokens.js +0 -2
- package/dist/schedule/schedule.types.d.ts +0 -8
- package/dist/schedule/schedule.types.js +0 -1
- package/dist/schedule-node/schedule-node.module.d.ts +0 -9
- package/dist/schedule-node/schedule-node.module.js +0 -28
- package/dist/schedule-node/schedule.executor.d.ts +0 -19
- package/dist/schedule-node/schedule.executor.js +0 -107
- package/dist/seeder/seeder.decorator.d.ts +0 -7
- package/dist/seeder/seeder.decorator.js +0 -15
- package/dist/seeder/seeder.module.d.ts +0 -16
- package/dist/seeder/seeder.module.js +0 -44
- package/dist/seeder/seeder.registry.d.ts +0 -23
- package/dist/seeder/seeder.registry.js +0 -83
- package/dist/seeder/seeder.tokens.d.ts +0 -2
- package/dist/seeder/seeder.tokens.js +0 -1
- package/dist/seeder/seeder.types.d.ts +0 -20
- package/dist/seeder/seeder.types.js +0 -1
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -2
- package/dist/serialization/serialize.decorator.d.ts +0 -6
- package/dist/serialization/serialize.decorator.js +0 -7
- package/dist/serialization/serializer.interceptor.d.ts +0 -4
- package/dist/serialization/serializer.interceptor.js +0 -16
- package/dist/services/index.d.ts +0 -2
- package/dist/services/index.js +0 -1
- package/dist/services/logger.d.ts +0 -59
- package/dist/services/logger.js +0 -159
- package/dist/storage/path-template.d.ts +0 -9
- package/dist/storage/path-template.js +0 -20
- package/dist/storage/storage.types.d.ts +0 -41
- package/dist/storage/storage.types.js +0 -5
- package/dist/throttler/index.d.ts +0 -6
- package/dist/throttler/index.js +0 -5
- package/dist/throttler/throttler.decorators.d.ts +0 -3
- package/dist/throttler/throttler.decorators.js +0 -4
- package/dist/throttler/throttler.guard.d.ts +0 -9
- package/dist/throttler/throttler.guard.js +0 -72
- package/dist/throttler/throttler.module.d.ts +0 -7
- package/dist/throttler/throttler.module.js +0 -41
- package/dist/throttler/throttler.storage.d.ts +0 -10
- package/dist/throttler/throttler.storage.js +0 -44
- package/dist/throttler/throttler.tokens.d.ts +0 -6
- package/dist/throttler/throttler.tokens.js +0 -5
- package/dist/throttler/throttler.types.d.ts +0 -25
- package/dist/throttler/throttler.types.js +0 -1
- package/dist/validation/create-zod-dto.d.ts +0 -13
- package/dist/validation/create-zod-dto.js +0 -18
- package/dist/validation/index.d.ts +0 -3
- package/dist/validation/index.js +0 -2
- package/dist/validation/validation.pipe.d.ts +0 -4
- package/dist/validation/validation.pipe.js +0 -19
- package/dist/websocket/websocket.decorators.d.ts +0 -47
- package/dist/websocket/websocket.decorators.js +0 -80
- package/dist/websocket/websocket.module.d.ts +0 -35
- package/dist/websocket/websocket.module.js +0 -63
- package/dist/websocket/websocket.tokens.d.ts +0 -30
- package/dist/websocket/websocket.tokens.js +0 -27
- package/dist/websocket/websocket.types.d.ts +0 -102
- package/dist/websocket/websocket.types.js +0 -4
- package/dist/websocket/ws-argument-resolver.d.ts +0 -13
- package/dist/websocket/ws-argument-resolver.js +0 -40
- package/dist/websocket/ws-dispatcher.d.ts +0 -54
- package/dist/websocket/ws-dispatcher.js +0 -322
- package/dist/websocket/ws-exception.d.ts +0 -16
- package/dist/websocket/ws-exception.js +0 -32
- package/dist/websocket/ws-execution-context.d.ts +0 -9
- package/dist/websocket/ws-execution-context.js +0 -24
- package/dist/websocket/ws-server.d.ts +0 -31
- package/dist/websocket/ws-server.js +0 -74
- package/dist/websocket/ws-sync.d.ts +0 -47
- package/dist/websocket/ws-sync.js +0 -74
- package/dist/websocket-node/node-ws-client.d.ts +0 -24
- package/dist/websocket-node/node-ws-client.js +0 -49
- package/dist/websocket-node/redis-live.d.ts +0 -24
- package/dist/websocket-node/redis-live.js +0 -57
- package/dist/websocket-node/redis-sync.d.ts +0 -33
- package/dist/websocket-node/redis-sync.js +0 -56
- package/dist/websocket-node/register-gateways.d.ts +0 -20
- package/dist/websocket-node/register-gateways.js +0 -61
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '../container/types';
|
|
2
|
-
export declare const CONFIG_OPTIONS: InjectionToken<Record<string, unknown>>;
|
|
3
|
-
/**
|
|
4
|
-
* Ambient environment record consumed by config-namespace factories
|
|
5
|
-
* (`registerAs`). It is the multi-runtime substitute for stratal's
|
|
6
|
-
* Cloudflare-specific `env` token: core never touches `process.env`.
|
|
7
|
-
*
|
|
8
|
-
* The token self-provides `{}` by default (so factories resolve even with no
|
|
9
|
-
* platform binding), and stays OVERRIDABLE — a platform adapter
|
|
10
|
-
* (`@velajs/cloudflare`) or a future `./config-node` subpath provides a global
|
|
11
|
-
* `CONFIG_ENV` and that registration wins over the default.
|
|
12
|
-
*/
|
|
13
|
-
export declare const CONFIG_ENV: InjectionToken<Record<string, unknown>>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "../container/types.js";
|
|
2
|
-
export const CONFIG_OPTIONS = new InjectionToken('CONFIG_OPTIONS');
|
|
3
|
-
/**
|
|
4
|
-
* Ambient environment record consumed by config-namespace factories
|
|
5
|
-
* (`registerAs`). It is the multi-runtime substitute for stratal's
|
|
6
|
-
* Cloudflare-specific `env` token: core never touches `process.env`.
|
|
7
|
-
*
|
|
8
|
-
* The token self-provides `{}` by default (so factories resolve even with no
|
|
9
|
-
* platform binding), and stays OVERRIDABLE — a platform adapter
|
|
10
|
-
* (`@velajs/cloudflare`) or a future `./config-node` subpath provides a global
|
|
11
|
-
* `CONFIG_ENV` and that registration wins over the default.
|
|
12
|
-
*/ export const CONFIG_ENV = new InjectionToken('CONFIG_ENV', {
|
|
13
|
-
factory: ()=>({})
|
|
14
|
-
});
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import type { AnyConfigNamespace } from './register-as';
|
|
2
|
-
/**
|
|
3
|
-
* A schema for validating the fully-merged config. Kept structural so zod stays
|
|
4
|
-
* an OPTIONAL peer — a zod schema (has `.parse`) or a plain function both work;
|
|
5
|
-
* core never imports zod. Throwing rejects the config.
|
|
6
|
-
*/
|
|
7
|
-
export type ConfigSchema = ((config: Record<string, unknown>) => unknown) | {
|
|
8
|
-
parse: (config: unknown) => unknown;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Options for {@link ConfigModule}.
|
|
12
|
-
*
|
|
13
|
-
* NOTE: `load` and `validateSchema` are **`forRoot`-only** — they are read
|
|
14
|
-
* structurally from the call-time options bag. On the `forRootAsync` path the
|
|
15
|
-
* options come from a DI-resolved factory, so only the flat `config` record is
|
|
16
|
-
* supported there (async namespaces are out of scope; declare them via
|
|
17
|
-
* `forRoot`).
|
|
18
|
-
*/
|
|
19
|
-
export interface ConfigModuleOptions<T extends Record<string, unknown> = Record<string, unknown>> {
|
|
20
|
-
/** Flat config record — the pre-namespace `config` path (still supported). */
|
|
21
|
-
config?: T;
|
|
22
|
-
/** Config namespaces created via `registerAs()`, merged under their namespace name. `forRoot`-only. */
|
|
23
|
-
load?: AnyConfigNamespace[];
|
|
24
|
-
/** Eager validator for the flat `config` record; runs at `forRoot()` call time. */
|
|
25
|
-
validate?: (config: T) => T;
|
|
26
|
-
/** Schema validating the MERGED config (flat + namespaces); runs lazily on first read. `forRoot`-only. */
|
|
27
|
-
validateSchema?: ConfigSchema;
|
|
28
|
-
isGlobal?: boolean;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* All valid dot-notation paths of a config object type.
|
|
32
|
-
* @example `ConfigPath<{ database: { url: string } }>` → `'database' | 'database.url'`
|
|
33
|
-
*/
|
|
34
|
-
export type ConfigPath<T> = {
|
|
35
|
-
[K in keyof T & string]: T[K] extends Record<string, unknown> ? K | `${K}.${ConfigPath<T[K]>}` : K;
|
|
36
|
-
}[keyof T & string];
|
|
37
|
-
/**
|
|
38
|
-
* The value type at a dot-notation path.
|
|
39
|
-
* @example `ConfigPathValue<{ database: { url: string } }, 'database.url'>` → `string`
|
|
40
|
-
*/
|
|
41
|
-
export type ConfigPathValue<T, P extends string> = P extends `${infer K}.${infer Rest}` ? K extends keyof T ? T[K] extends Record<string, unknown> ? ConfigPathValue<T[K], Rest> : never : never : P extends keyof T ? T[P] : never;
|
package/dist/config/index.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { ConfigModule } from './config.module';
|
|
2
|
-
export { ConfigService } from './config.service';
|
|
3
|
-
export { ConfigStore } from './config.store';
|
|
4
|
-
export { CONFIG_OPTIONS, CONFIG_ENV } from './config.tokens';
|
|
5
|
-
export { registerAs } from './register-as';
|
|
6
|
-
export type { ConfigNamespace, AnyConfigNamespace, InferConfigType, ConfigType } from './register-as';
|
|
7
|
-
export type { ConfigModuleOptions, ConfigSchema, ConfigPath, ConfigPathValue } from './config.types';
|
package/dist/config/index.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { ConfigModule } from "./config.module.js";
|
|
2
|
-
export { ConfigService } from "./config.service.js";
|
|
3
|
-
export { ConfigStore } from "./config.store.js";
|
|
4
|
-
export { CONFIG_OPTIONS, CONFIG_ENV } from "./config.tokens.js";
|
|
5
|
-
export { registerAs } from "./register-as.js";
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import type { InjectionToken, ProviderOptions } from '../container/types';
|
|
2
|
-
/**
|
|
3
|
-
* The result of {@link registerAs}: a namespaced config factory plus the DI
|
|
4
|
-
* token it is provided under.
|
|
5
|
-
*/
|
|
6
|
-
export interface ConfigNamespace<TKey extends string = string, TEnv = Record<string, unknown>, TConfig extends object = object> {
|
|
7
|
-
/** Injection token for this namespace's resolved config (`Symbol.for('vela:config:<ns>')`). */
|
|
8
|
-
readonly KEY: InjectionToken<TConfig>;
|
|
9
|
-
/** The namespace name (e.g. `'database'`). */
|
|
10
|
-
readonly namespace: TKey;
|
|
11
|
-
/** Factory receiving the ambient env and returning the namespace config. */
|
|
12
|
-
readonly factory: (env: TEnv) => TConfig;
|
|
13
|
-
/** Provider registration injecting {@link CONFIG_ENV} — spread into a module's providers. */
|
|
14
|
-
asProvider(): ProviderOptions<TConfig>;
|
|
15
|
-
}
|
|
16
|
-
/** Any config namespace — structural typing for the module `load` list. */
|
|
17
|
-
export type AnyConfigNamespace = ConfigNamespace<string, any, object>;
|
|
18
|
-
/**
|
|
19
|
-
* Create a namespaced configuration factory (NestJS `registerAs` parity).
|
|
20
|
-
*
|
|
21
|
-
* The `KEY` is minted with `Symbol.for` so it keeps a stable identity across
|
|
22
|
-
* module re-evaluation (HMR / repeated imports) — a fresh `InjectionToken`
|
|
23
|
-
* would mint a new identity each eval and break dedup. It is typed as
|
|
24
|
-
* `InjectionToken<TConfig>` purely for injection-site DX.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* export const dbConfig = registerAs('database', (env: Env) => ({
|
|
29
|
-
* url: env.DATABASE_URL,
|
|
30
|
-
* pool: 10,
|
|
31
|
-
* }));
|
|
32
|
-
* // ConfigModule.forRoot({ load: [dbConfig] });
|
|
33
|
-
* // cfg.get('database.url'); // via ConfigService
|
|
34
|
-
* // constructor(@Inject(dbConfig.KEY) db: InferConfigType<typeof dbConfig>) {}
|
|
35
|
-
* ```
|
|
36
|
-
*/
|
|
37
|
-
export declare function registerAs<TKey extends string, TEnv, TConfig extends object>(namespace: TKey, factory: (env: TEnv) => TConfig): ConfigNamespace<TKey, TEnv, TConfig>;
|
|
38
|
-
/**
|
|
39
|
-
* Extract a namespace's config shape from a {@link registerAs} result.
|
|
40
|
-
*
|
|
41
|
-
* @example `type Db = InferConfigType<typeof dbConfig>` → `{ url: string; pool: number }`
|
|
42
|
-
*/
|
|
43
|
-
export type InferConfigType<T> = T extends ConfigNamespace<string, any, infer C> ? C : never;
|
|
44
|
-
/**
|
|
45
|
-
* Zero-codegen typed config shape from a tuple of namespaces — pass as the
|
|
46
|
-
* `ConfigService` generic to type dot-notation reads.
|
|
47
|
-
*
|
|
48
|
-
* @example `ConfigService<ConfigType<[typeof dbConfig, typeof mailConfig]>>`
|
|
49
|
-
*/
|
|
50
|
-
export type ConfigType<L extends readonly AnyConfigNamespace[]> = {
|
|
51
|
-
[N in L[number] as N['namespace']]: InferConfigType<N>;
|
|
52
|
-
};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
// Config-namespace registration. Design ported from stratal's `registerAs`
|
|
2
|
-
// (MIT, © Temitayo Fadojutimi) and reworked for vela's multi-runtime DI: env
|
|
3
|
-
// enters through the `CONFIG_ENV` token instead of a Cloudflare-specific one.
|
|
4
|
-
import { CONFIG_ENV } from "./config.tokens.js";
|
|
5
|
-
/**
|
|
6
|
-
* Create a namespaced configuration factory (NestJS `registerAs` parity).
|
|
7
|
-
*
|
|
8
|
-
* The `KEY` is minted with `Symbol.for` so it keeps a stable identity across
|
|
9
|
-
* module re-evaluation (HMR / repeated imports) — a fresh `InjectionToken`
|
|
10
|
-
* would mint a new identity each eval and break dedup. It is typed as
|
|
11
|
-
* `InjectionToken<TConfig>` purely for injection-site DX.
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```ts
|
|
15
|
-
* export const dbConfig = registerAs('database', (env: Env) => ({
|
|
16
|
-
* url: env.DATABASE_URL,
|
|
17
|
-
* pool: 10,
|
|
18
|
-
* }));
|
|
19
|
-
* // ConfigModule.forRoot({ load: [dbConfig] });
|
|
20
|
-
* // cfg.get('database.url'); // via ConfigService
|
|
21
|
-
* // constructor(@Inject(dbConfig.KEY) db: InferConfigType<typeof dbConfig>) {}
|
|
22
|
-
* ```
|
|
23
|
-
*/ export function registerAs(namespace, factory) {
|
|
24
|
-
const KEY = Symbol.for(`vela:config:${namespace}`);
|
|
25
|
-
return {
|
|
26
|
-
KEY,
|
|
27
|
-
namespace,
|
|
28
|
-
factory,
|
|
29
|
-
asProvider () {
|
|
30
|
-
return {
|
|
31
|
-
provide: KEY,
|
|
32
|
-
useFactory: factory,
|
|
33
|
-
inject: [
|
|
34
|
-
CONFIG_ENV
|
|
35
|
-
]
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
}
|
package/dist/constants.d.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export declare const METADATA_KEYS: {
|
|
2
|
-
readonly INJECTABLE: "vela:injectable";
|
|
3
|
-
readonly INJECT: "vela:inject";
|
|
4
|
-
readonly SCOPE: "vela:scope";
|
|
5
|
-
readonly MODULE: "vela:module";
|
|
6
|
-
readonly MODULE_OPTIONS: "vela:module-options";
|
|
7
|
-
readonly CONTROLLER: "vela:controller";
|
|
8
|
-
readonly ROUTES: "vela:routes";
|
|
9
|
-
readonly PARAMS: "vela:params";
|
|
10
|
-
readonly HTTP_CODE: "vela:http-code";
|
|
11
|
-
readonly RESPONSE_HEADERS: "vela:response-headers";
|
|
12
|
-
readonly REDIRECT: "vela:redirect";
|
|
13
|
-
readonly CATCH: "vela:catch";
|
|
14
|
-
readonly CRUD: "vela:crud";
|
|
15
|
-
};
|
|
16
|
-
export declare const HttpMethod: {
|
|
17
|
-
readonly GET: "GET";
|
|
18
|
-
readonly POST: "POST";
|
|
19
|
-
readonly PUT: "PUT";
|
|
20
|
-
readonly PATCH: "PATCH";
|
|
21
|
-
readonly DELETE: "DELETE";
|
|
22
|
-
readonly OPTIONS: "OPTIONS";
|
|
23
|
-
readonly HEAD: "HEAD";
|
|
24
|
-
readonly ALL: "ALL";
|
|
25
|
-
};
|
|
26
|
-
export type HttpMethod = (typeof HttpMethod)[keyof typeof HttpMethod];
|
|
27
|
-
export declare const ParamType: {
|
|
28
|
-
readonly BODY: "body";
|
|
29
|
-
readonly QUERY: "query";
|
|
30
|
-
readonly PARAM: "param";
|
|
31
|
-
readonly HEADERS: "headers";
|
|
32
|
-
readonly REQUEST: "request";
|
|
33
|
-
readonly RESPONSE: "response";
|
|
34
|
-
readonly IP: "ip";
|
|
35
|
-
readonly COOKIE: "cookie";
|
|
36
|
-
readonly RAW_BODY: "raw_body";
|
|
37
|
-
};
|
|
38
|
-
export type ParamType = (typeof ParamType)[keyof typeof ParamType];
|
|
39
|
-
export declare const Scope: {
|
|
40
|
-
readonly SINGLETON: "singleton";
|
|
41
|
-
readonly TRANSIENT: "transient";
|
|
42
|
-
readonly REQUEST: "request";
|
|
43
|
-
};
|
|
44
|
-
export type Scope = (typeof Scope)[keyof typeof Scope];
|
package/dist/constants.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export const METADATA_KEYS = {
|
|
2
|
-
// DI
|
|
3
|
-
INJECTABLE: 'vela:injectable',
|
|
4
|
-
INJECT: 'vela:inject',
|
|
5
|
-
SCOPE: 'vela:scope',
|
|
6
|
-
// Module
|
|
7
|
-
MODULE: 'vela:module',
|
|
8
|
-
MODULE_OPTIONS: 'vela:module-options',
|
|
9
|
-
// HTTP
|
|
10
|
-
CONTROLLER: 'vela:controller',
|
|
11
|
-
ROUTES: 'vela:routes',
|
|
12
|
-
PARAMS: 'vela:params',
|
|
13
|
-
HTTP_CODE: 'vela:http-code',
|
|
14
|
-
RESPONSE_HEADERS: 'vela:response-headers',
|
|
15
|
-
REDIRECT: 'vela:redirect',
|
|
16
|
-
// Pipeline
|
|
17
|
-
CATCH: 'vela:catch',
|
|
18
|
-
// CRUD
|
|
19
|
-
CRUD: 'vela:crud'
|
|
20
|
-
};
|
|
21
|
-
export const HttpMethod = {
|
|
22
|
-
GET: 'GET',
|
|
23
|
-
POST: 'POST',
|
|
24
|
-
PUT: 'PUT',
|
|
25
|
-
PATCH: 'PATCH',
|
|
26
|
-
DELETE: 'DELETE',
|
|
27
|
-
OPTIONS: 'OPTIONS',
|
|
28
|
-
HEAD: 'HEAD',
|
|
29
|
-
ALL: 'ALL'
|
|
30
|
-
};
|
|
31
|
-
export const ParamType = {
|
|
32
|
-
BODY: 'body',
|
|
33
|
-
QUERY: 'query',
|
|
34
|
-
PARAM: 'param',
|
|
35
|
-
HEADERS: 'headers',
|
|
36
|
-
REQUEST: 'request',
|
|
37
|
-
RESPONSE: 'response',
|
|
38
|
-
IP: 'ip',
|
|
39
|
-
COOKIE: 'cookie',
|
|
40
|
-
RAW_BODY: 'raw_body'
|
|
41
|
-
};
|
|
42
|
-
export const Scope = {
|
|
43
|
-
SINGLETON: 'singleton',
|
|
44
|
-
TRANSIENT: 'transient',
|
|
45
|
-
REQUEST: 'request'
|
|
46
|
-
};
|
|
@@ -1,154 +0,0 @@
|
|
|
1
|
-
import { Scope } from '../constants';
|
|
2
|
-
import type { ContainerOptions, Diagnostics, LazyResolutionHook, ModuleDescription, ModuleScope, ProviderOptions, Token, Type } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* Per-module provider buckets. Each module instance owns its providers under
|
|
5
|
-
* its `moduleId`; the same logical token can have distinct registrations in
|
|
6
|
-
* different buckets, supporting multi-instance dynamic modules.
|
|
7
|
-
*
|
|
8
|
-
* The `__root__` bucket holds bootstrap-time framework primitives (Container,
|
|
9
|
-
* ModuleRef, REQUEST_CONTEXT, etc.) and any `register()` call that doesn't
|
|
10
|
-
* supply a `declaringModuleId`.
|
|
11
|
-
*/
|
|
12
|
-
export declare class Container {
|
|
13
|
-
private providers;
|
|
14
|
-
private exporterIndex;
|
|
15
|
-
private resolutionStack;
|
|
16
|
-
private requestInstances;
|
|
17
|
-
private scopes;
|
|
18
|
-
private globals;
|
|
19
|
-
private diagnostics;
|
|
20
|
-
private root;
|
|
21
|
-
private disposables;
|
|
22
|
-
private lazyHook?;
|
|
23
|
-
private asyncDepth;
|
|
24
|
-
constructor(options?: ContainerOptions);
|
|
25
|
-
/** Install the lazy-module seam (bootstrap-time; root container only). */
|
|
26
|
-
setLazyHook(hook: LazyResolutionHook): void;
|
|
27
|
-
private claimLazyModule;
|
|
28
|
-
private maybeDrainSync;
|
|
29
|
-
register<T>(provider: Type<T> | ProviderOptions<T>, declaringModuleId?: string): this;
|
|
30
|
-
private registerClass;
|
|
31
|
-
private registerOptions;
|
|
32
|
-
private writeRegistration;
|
|
33
|
-
registerScope(scope: ModuleScope): void;
|
|
34
|
-
markGlobalToken(token: Token): void;
|
|
35
|
-
setRequestInstance(token: Token, value: unknown): void;
|
|
36
|
-
getDiagnostics(): Diagnostics;
|
|
37
|
-
resolve<T>(token: Token<T>, requestingModuleId?: string): T;
|
|
38
|
-
resolveAll<T>(token: Token<T>, requestingModuleId?: string): T[];
|
|
39
|
-
/**
|
|
40
|
-
* Find a single reachable registration for a token, applying the visibility
|
|
41
|
-
* walk: requester's bucket → globals → requester's importedModules
|
|
42
|
-
* (transitively, following re-exports).
|
|
43
|
-
*
|
|
44
|
-
* Returns `undefined` if no candidate exists. Throws
|
|
45
|
-
* `MultipleProvidersFoundError` if the imports walk yields more than one.
|
|
46
|
-
*/
|
|
47
|
-
private findRegistration;
|
|
48
|
-
/** Typed bucket lookup — single seam where the Map<Token, Registration> erases T. */
|
|
49
|
-
private lookupInBucket;
|
|
50
|
-
/**
|
|
51
|
-
* Walk a scope's imports (and their imports' imports, …) collecting every
|
|
52
|
-
* registration reachable through re-export chains. A child only contributes
|
|
53
|
-
* if it explicitly exports the token — non-exported providers stay private.
|
|
54
|
-
*/
|
|
55
|
-
private collectFromImports;
|
|
56
|
-
private findAllRegistrations;
|
|
57
|
-
/** True if any bucket has a registration for `token`. Sandbox-friendly. */
|
|
58
|
-
has(token: Token): boolean;
|
|
59
|
-
/** True if the specified module's bucket has a registration for `token`. */
|
|
60
|
-
hasInScope(token: Token, moduleId: string): boolean;
|
|
61
|
-
/** Module buckets that hold a registration for `token` (registration order). */
|
|
62
|
-
getOwnerModuleIds(token: Token): string[];
|
|
63
|
-
/**
|
|
64
|
-
* Force-replace a provider across module scopes — the supported form of the
|
|
65
|
-
* override loop test harnesses need (module-scoped resolution consults the
|
|
66
|
-
* module's own bucket first, so a root-only override would never win there).
|
|
67
|
-
*
|
|
68
|
-
* - `'all-existing'` (default): every non-root bucket that already holds the
|
|
69
|
-
* token, plus `__root__` (so framework-internal lookups see it too).
|
|
70
|
-
* - `'root'`: only the `__root__` bucket.
|
|
71
|
-
* - `string[]`: exactly these bucket ids.
|
|
72
|
-
*/
|
|
73
|
-
replaceProvider<T>(provider: Type<T> | ProviderOptions<T>, options?: {
|
|
74
|
-
buckets?: 'all-existing' | 'root' | string[];
|
|
75
|
-
}): this;
|
|
76
|
-
/**
|
|
77
|
-
* True when the token belongs exclusively to lazy modules that have not
|
|
78
|
-
* been materialized yet — resolving it would trigger materialization.
|
|
79
|
-
* Build-time probes (route-manager middleware priority, entrypoint
|
|
80
|
-
* snapshots) use this to defer instead of forcing the group.
|
|
81
|
-
*/
|
|
82
|
-
isLazyPending(token: Token): boolean;
|
|
83
|
-
/**
|
|
84
|
-
* True when any registration of the token holds a constructed instance.
|
|
85
|
-
* Diagnostic helper (cold-start tests): checks WITHOUT resolving, so it
|
|
86
|
-
* never triggers lazy materialization.
|
|
87
|
-
*/
|
|
88
|
-
isInstantiated(token: Token): boolean;
|
|
89
|
-
getProviderScope(token: Token): Scope | undefined;
|
|
90
|
-
getTokens(): Token[];
|
|
91
|
-
/**
|
|
92
|
-
* Every statically-provided (useValue) instance across ALL module buckets.
|
|
93
|
-
* Unlike resolving a token (which yields only the first bucket's registration),
|
|
94
|
-
* this surfaces per-instance values — e.g. one BindingRef per multi-instance
|
|
95
|
-
* binding module — so framework adapters can initialize all of them.
|
|
96
|
-
*/
|
|
97
|
-
getUseValues(): unknown[];
|
|
98
|
-
/**
|
|
99
|
-
* Serializable description of every loaded module instance (load order),
|
|
100
|
-
* plus the `__root__` bucket (bootstrap primitives) when non-empty —
|
|
101
|
-
* the `vela module graph` seam. Reads registration state only: safe pre-
|
|
102
|
-
* and post-bootstrap, never constructs, never claims lazy modules.
|
|
103
|
-
*/
|
|
104
|
-
getModuleDescriptions(): ModuleDescription[];
|
|
105
|
-
/**
|
|
106
|
-
* Compute request-scope bubbling for every registration (call once at
|
|
107
|
-
* bootstrap, after all providers are registered). A provider whose declared
|
|
108
|
-
* scope is not REQUEST but which (transitively) depends on a request-scoped
|
|
109
|
-
* provider is marked `effectiveScope = REQUEST`, so it is rebuilt per request
|
|
110
|
-
* instead of capturing the first request's instance — matching NestJS.
|
|
111
|
-
*/
|
|
112
|
-
computeEffectiveScopes(): void;
|
|
113
|
-
/** The dependency tokens a registration would resolve when constructed. */
|
|
114
|
-
private dependencyTokensOf;
|
|
115
|
-
private tryFindRegistration;
|
|
116
|
-
/**
|
|
117
|
-
* Create a child container for request-scoped resolution.
|
|
118
|
-
* The child shares the parent's providers but caches REQUEST-scoped
|
|
119
|
-
* instances separately per child (per request).
|
|
120
|
-
*/
|
|
121
|
-
createChild(): Container;
|
|
122
|
-
createDetached(): Container;
|
|
123
|
-
clear(): void;
|
|
124
|
-
/** Whether this container has any tracked disposables (cheap request-path check). */
|
|
125
|
-
hasDisposables(): boolean;
|
|
126
|
-
/**
|
|
127
|
-
* Dispose container-constructed instances (Symbol.asyncDispose /
|
|
128
|
-
* Symbol.dispose / .dispose()) in reverse creation order (LIFO). Errors are
|
|
129
|
-
* logged and skipped so one bad teardown never blocks the rest.
|
|
130
|
-
*
|
|
131
|
-
* A REQUEST child disposes only its own request-scoped instances; the root
|
|
132
|
-
* disposes shared SINGLETONs and clears their cached instance so a dev HMR
|
|
133
|
-
* generation cannot leak a stale graph. Shared provider maps are left intact
|
|
134
|
-
* for a request child (they belong to the root).
|
|
135
|
-
*/
|
|
136
|
-
dispose(): Promise<void>;
|
|
137
|
-
private resolveRegistration;
|
|
138
|
-
private resolveClass;
|
|
139
|
-
/**
|
|
140
|
-
* Resolve one factory `inject` dependency. Since 1.11 the declaring module's
|
|
141
|
-
* scope is consulted FIRST (proper visibility semantics — a `forRootAsync`
|
|
142
|
-
* factory can inject providers reachable through its module's imports); on
|
|
143
|
-
* any failure the legacy no-requester lookup (root bucket, then first
|
|
144
|
-
* exporter) is kept as fallback, so every previously-resolving graph still
|
|
145
|
-
* resolves.
|
|
146
|
-
*/
|
|
147
|
-
private resolveFactoryDependency;
|
|
148
|
-
private resolveFactoryDependencyAsync;
|
|
149
|
-
private resolveFactory;
|
|
150
|
-
resolveAsync<T>(token: Token<T>, requestingModuleId?: string): Promise<T>;
|
|
151
|
-
private resolveAsyncInner;
|
|
152
|
-
private createLazyProxy;
|
|
153
|
-
private tokenToString;
|
|
154
|
-
}
|