@venok/core 1.1.0 → 2.0.0
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/dist/application/config.js +92 -0
- package/dist/application/context.js +252 -0
- package/dist/application/factory.js +136 -0
- package/dist/constants.js +100 -0
- package/dist/context/context-id.factory.js +58 -0
- package/dist/context/context.js +186 -0
- package/dist/context/creator.js +49 -0
- package/dist/context/execution-host.js +51 -0
- package/dist/context/proxy.js +55 -0
- package/dist/decorators/apply.decorator.js +33 -0
- package/dist/decorators/bind.decorator.js +28 -0
- package/dist/decorators/catch.decorator.js +29 -0
- package/dist/decorators/dependencies.decorator.js +30 -0
- package/dist/decorators/exception-filters.decorator.js +40 -0
- package/dist/decorators/global.decorator.js +28 -0
- package/dist/decorators/inject.decorator.js +42 -0
- package/dist/decorators/injectable.decorator.js +38 -0
- package/dist/decorators/module.decorator.js +42 -0
- package/dist/decorators/optional.decorator.js +35 -0
- package/dist/decorators/set-metadata.decorator.js +35 -0
- package/dist/decorators/use-guards.decorator.js +39 -0
- package/dist/decorators/use-interceptors.decorator.js +39 -0
- package/dist/decorators/use-pipes.decorator.js +38 -0
- package/dist/enums/scope.enum.js +28 -0
- package/dist/enums/shutdown-signal.enum.js +36 -0
- package/dist/errors/exceptions/circular-dependency.exception.js +30 -0
- package/dist/errors/exceptions/invalid-class-module.exception.js +30 -0
- package/dist/errors/exceptions/invalid-class-scope.exception.js +33 -0
- package/dist/errors/exceptions/invalid-class.exception.js +30 -0
- package/dist/errors/exceptions/invalid-exception-filter.exception.js +30 -0
- package/dist/errors/exceptions/invalid-module.exception.js +30 -0
- package/dist/errors/exceptions/runtime.exception.js +30 -0
- package/dist/errors/exceptions/undefined-dependency.exception.js +30 -0
- package/dist/errors/exceptions/undefined-forwardref.exception.js +30 -0
- package/dist/errors/exceptions/undefined-module.exception.js +30 -0
- package/dist/errors/exceptions/unknown-dependencies.exception.js +38 -0
- package/dist/errors/exceptions/unknown-element.exception.js +31 -0
- package/dist/errors/exceptions/unknown-export.exception.js +30 -0
- package/dist/errors/exceptions/unknown-module.exception.js +29 -0
- package/dist/errors/messages.js +134 -0
- package/dist/exceptions/handler.js +53 -0
- package/dist/exceptions/zone/handler.js +30 -0
- package/dist/exceptions/zone/zone.js +49 -0
- package/dist/filters/context-creator.js +65 -0
- package/dist/filters/context.js +58 -0
- package/dist/filters/filter.js +36 -0
- package/dist/guards/consumer.js +54 -0
- package/dist/guards/context-creator.js +76 -0
- package/dist/helpers/color.helper.js +35 -0
- package/dist/helpers/context-id-factory.helper.js +25 -0
- package/dist/helpers/context.helper.js +65 -0
- package/dist/helpers/create-param-decorator.helper.js +73 -0
- package/dist/helpers/filter-log-levels.util.js +38 -0
- package/dist/helpers/flatten.helper.js +26 -0
- package/dist/helpers/is-log-level-enabled.util.js +39 -0
- package/dist/helpers/is-log-level.util.js +26 -0
- package/dist/helpers/messages.helper.js +23 -0
- package/dist/helpers/metadata.helper.js +51 -0
- package/dist/helpers/noop.helper.js +23 -0
- package/dist/helpers/random-string-generator.helper.js +24 -0
- package/dist/helpers/rethrow.helper.js +25 -0
- package/dist/helpers/shared.helper.js +49 -0
- package/dist/helpers/silent.helper.js +34 -0
- package/dist/helpers/transient.helper.js +30 -0
- package/dist/helpers/uuid.helper.js +60 -0
- package/dist/helpers/validate-each.helper.js +42 -0
- package/dist/hooks/before-app-shutdown.hook.js +43 -0
- package/dist/hooks/on-app-bootstrap.hook.js +43 -0
- package/dist/hooks/on-app-shutdown.hook.js +43 -0
- package/dist/hooks/on-module-destroy.hook.js +43 -0
- package/dist/hooks/on-module-init.hook.js +43 -0
- package/dist/index.d.ts +3142 -0
- package/dist/index.js +115 -0
- package/dist/injector/constants.js +28 -0
- package/dist/injector/container.js +229 -0
- package/dist/injector/helpers/barrier.js +48 -0
- package/dist/injector/helpers/class-scope.helper.js +27 -0
- package/dist/injector/helpers/classifier.helper.js +35 -0
- package/dist/injector/helpers/is-durable.helper.js +27 -0
- package/dist/injector/injector.js +490 -0
- package/dist/injector/instance/links-host.js +68 -0
- package/dist/injector/instance/loader.js +95 -0
- package/dist/injector/instance/resolver.js +61 -0
- package/dist/injector/instance/wrapper.js +324 -0
- package/dist/injector/internal-core-module/core-providers.js +42 -0
- package/dist/injector/internal-core-module/internal-core-module-factory.js +66 -0
- package/dist/injector/internal-core-module/internal-core-module.js +46 -0
- package/dist/injector/module/compiler.js +47 -0
- package/dist/injector/module/container.js +33 -0
- package/dist/injector/module/lazy/loader.js +71 -0
- package/dist/injector/module/module.js +395 -0
- package/dist/injector/module/ref.js +78 -0
- package/dist/injector/module/token-factory.js +82 -0
- package/dist/injector/settlement-signal.js +50 -0
- package/dist/injector/topology-tree/topology-tree.js +68 -0
- package/dist/injector/topology-tree/tree-node.js +68 -0
- package/dist/inspector/graph-inspector.js +182 -0
- package/dist/inspector/initialize-on-preview.allowlist.js +31 -0
- package/dist/inspector/noop-graph-inspector.js +27 -0
- package/dist/inspector/partial-graph.host.js +34 -0
- package/dist/inspector/serialized-graph.js +128 -0
- package/dist/interceptors/consumer.js +54 -0
- package/dist/interceptors/context-creator.js +75 -0
- package/dist/interfaces/application/context-options.interface.js +31 -0
- package/dist/interfaces/application/context.interface.js +0 -0
- package/dist/interfaces/application/index.js +3 -0
- package/dist/interfaces/context/arguments-host.interface.js +0 -0
- package/dist/interfaces/context/context-id-factory.interface.js +0 -0
- package/dist/interfaces/context/context.interface.js +0 -0
- package/dist/interfaces/context/creator.interface.js +0 -0
- package/dist/interfaces/context/execution.interface.js +0 -0
- package/dist/interfaces/context/index.js +7 -0
- package/dist/interfaces/context/params.interface.js +0 -0
- package/dist/interfaces/features/exception-filter.interface.js +0 -0
- package/dist/interfaces/features/guards.interface.js +0 -0
- package/dist/interfaces/features/index.js +5 -0
- package/dist/interfaces/features/interceptor.interface.js +0 -0
- package/dist/interfaces/features/pipes.interface.js +0 -0
- package/dist/interfaces/helper.interface.js +0 -0
- package/dist/interfaces/hooks/before-application-shutdown.interface.js +0 -0
- package/dist/interfaces/hooks/index.js +6 -0
- package/dist/interfaces/hooks/on-application-bootstrap.interface.js +0 -0
- package/dist/interfaces/hooks/on-application-shutdown.interface.js +0 -0
- package/dist/interfaces/hooks/on-destroy.interface.js +0 -0
- package/dist/interfaces/hooks/on-init.interface.js +0 -0
- package/dist/interfaces/index.js +16 -0
- package/dist/interfaces/injectable.interface.js +0 -0
- package/dist/interfaces/injector/index.js +6 -0
- package/dist/interfaces/injector/injector.interface.js +0 -0
- package/dist/interfaces/injector/instance-wrapper.interface.js +0 -0
- package/dist/interfaces/injector/lazy-module-options.interface.js +0 -0
- package/dist/interfaces/injector/module-compiler.interface.js +0 -0
- package/dist/interfaces/injector/module-ref.interface.js +0 -0
- package/dist/interfaces/inspector/edge.interface.js +0 -0
- package/dist/interfaces/inspector/enhancer-metadata-cache-entry.interface.js +0 -0
- package/dist/interfaces/inspector/entrypoint.interface.js +0 -0
- package/dist/interfaces/inspector/extras.interface.js +0 -0
- package/dist/interfaces/inspector/index.js +8 -0
- package/dist/interfaces/inspector/node.interface.js +0 -0
- package/dist/interfaces/inspector/serialized-graph-json.interface.js +0 -0
- package/dist/interfaces/inspector/serialized-graph-metadata.interface.js +0 -0
- package/dist/interfaces/modules/definition.interface.js +0 -0
- package/dist/interfaces/modules/dynamic-module.interface.js +0 -0
- package/dist/interfaces/modules/forward-reference.interface.js +0 -0
- package/dist/interfaces/modules/index.js +10 -0
- package/dist/interfaces/modules/injection-token.interface.js +0 -0
- package/dist/interfaces/modules/introspection-result.interface.js +0 -0
- package/dist/interfaces/modules/module-metadata.interface.js +0 -0
- package/dist/interfaces/modules/module.interface.js +0 -0
- package/dist/interfaces/modules/optional-factory-dependency.interface.js +0 -0
- package/dist/interfaces/modules/override.interface.js +0 -0
- package/dist/interfaces/modules/provider.interface.js +0 -0
- package/dist/interfaces/param-decorator.interface.js +0 -0
- package/dist/interfaces/scope.interface.js +0 -0
- package/dist/interfaces/services/console.interface.js +0 -0
- package/dist/interfaces/services/index.js +4 -0
- package/dist/interfaces/services/logger.interface.js +0 -0
- package/dist/interfaces/services/reflector.interface.js +0 -0
- package/dist/interfaces/set-metadata.interface.js +0 -0
- package/dist/interfaces/type.interface.js +0 -0
- package/dist/metadata-scanner.js +50 -0
- package/dist/pipes/consumer.js +33 -0
- package/dist/pipes/context-creator.js +78 -0
- package/dist/scanner.js +371 -0
- package/dist/services/console.service.js +347 -0
- package/dist/services/logger.service.js +276 -0
- package/dist/services/reflector.service.js +82 -0
- package/dist/storage/handler-metadata.storage.js +42 -0
- package/dist/storage/meta-host.storage.js +62 -0
- package/package.json +52 -40
- package/application/config.d.ts +0 -35
- package/application/config.js +0 -85
- package/application/context.d.ts +0 -198
- package/application/context.js +0 -325
- package/application/factory.d.ts +0 -43
- package/application/factory.js +0 -147
- package/constants.d.ts +0 -44
- package/constants.js +0 -51
- package/context/context.d.ts +0 -66
- package/context/context.js +0 -156
- package/context/creator.d.ts +0 -9
- package/context/creator.js +0 -32
- package/context/execution-host.d.ts +0 -16
- package/context/execution-host.js +0 -30
- package/context/index.d.ts +0 -4
- package/context/index.js +0 -20
- package/context/proxy.d.ts +0 -6
- package/context/proxy.js +0 -33
- package/decorators/apply.decorator.d.ts +0 -10
- package/decorators/apply.decorator.js +0 -24
- package/decorators/bind.decorator.d.ts +0 -11
- package/decorators/bind.decorator.js +0 -20
- package/decorators/catch.decorator.d.ts +0 -17
- package/decorators/catch.decorator.js +0 -26
- package/decorators/create-param.decorator.d.ts +0 -29
- package/decorators/create-param.decorator.js +0 -51
- package/decorators/dependencies.decorator.d.ts +0 -6
- package/decorators/dependencies.decorator.js +0 -17
- package/decorators/exception-filters.decorator.d.ts +0 -21
- package/decorators/exception-filters.decorator.js +0 -41
- package/decorators/global.decorator.d.ts +0 -10
- package/decorators/global.decorator.js +0 -19
- package/decorators/index.d.ts +0 -15
- package/decorators/index.js +0 -31
- package/decorators/inject.decorator.d.ts +0 -26
- package/decorators/inject.decorator.js +0 -45
- package/decorators/injectable.decorator.d.ts +0 -40
- package/decorators/injectable.decorator.js +0 -51
- package/decorators/module.decorator.d.ts +0 -14
- package/decorators/module.decorator.js +0 -38
- package/decorators/optional.decorator.d.ts +0 -14
- package/decorators/optional.decorator.js +0 -30
- package/decorators/set-metadata.decorator.d.ts +0 -18
- package/decorators/set-metadata.decorator.js +0 -30
- package/decorators/use-guards.decorator.d.ts +0 -21
- package/decorators/use-guards.decorator.js +0 -40
- package/decorators/use-interceptors.decorator.d.ts +0 -21
- package/decorators/use-interceptors.decorator.js +0 -40
- package/decorators/use-pipes.decorator.d.ts +0 -21
- package/decorators/use-pipes.decorator.js +0 -39
- package/discovery/meta-host-collection.d.ts +0 -32
- package/discovery/meta-host-collection.js +0 -79
- package/discovery/module.d.ts +0 -5
- package/discovery/module.js +0 -24
- package/discovery/service.d.ts +0 -68
- package/discovery/service.js +0 -90
- package/errors/exceptions/circular-dependency.exception.d.ts +0 -4
- package/errors/exceptions/circular-dependency.exception.js +0 -11
- package/errors/exceptions/index.d.ts +0 -8
- package/errors/exceptions/index.js +0 -24
- package/errors/exceptions/invalid-class-module.exception.d.ts +0 -4
- package/errors/exceptions/invalid-class-module.exception.js +0 -11
- package/errors/exceptions/invalid-class-scope.exception.d.ts +0 -5
- package/errors/exceptions/invalid-class-scope.exception.js +0 -14
- package/errors/exceptions/invalid-class.exception.d.ts +0 -4
- package/errors/exceptions/invalid-class.exception.js +0 -11
- package/errors/exceptions/invalid-exception-filter.exception.d.ts +0 -4
- package/errors/exceptions/invalid-exception-filter.exception.js +0 -11
- package/errors/exceptions/invalid-module.exception.d.ts +0 -4
- package/errors/exceptions/invalid-module.exception.js +0 -11
- package/errors/exceptions/runtime.exception.d.ts +0 -4
- package/errors/exceptions/runtime.exception.js +0 -12
- package/errors/exceptions/undefined-dependency.exception.d.ts +0 -6
- package/errors/exceptions/undefined-dependency.exception.js +0 -11
- package/errors/exceptions/undefined-forwardref.exception.d.ts +0 -5
- package/errors/exceptions/undefined-forwardref.exception.js +0 -11
- package/errors/exceptions/undefined-module.exception.d.ts +0 -4
- package/errors/exceptions/undefined-module.exception.js +0 -11
- package/errors/exceptions/unknown-dependencies.exception.d.ts +0 -16
- package/errors/exceptions/unknown-dependencies.exception.js +0 -15
- package/errors/exceptions/unknown-element.exception.d.ts +0 -4
- package/errors/exceptions/unknown-element.exception.js +0 -12
- package/errors/exceptions/unknown-export.exception.d.ts +0 -4
- package/errors/exceptions/unknown-export.exception.js +0 -11
- package/errors/exceptions/unknown-module.exception.d.ts +0 -4
- package/errors/exceptions/unknown-module.exception.js +0 -10
- package/errors/messages.d.ts +0 -15
- package/errors/messages.js +0 -126
- package/exceptions/handler.d.ts +0 -10
- package/exceptions/handler.js +0 -34
- package/exceptions/index.d.ts +0 -2
- package/exceptions/index.js +0 -18
- package/exceptions/zone/handler.d.ts +0 -5
- package/exceptions/zone/handler.js +0 -15
- package/exceptions/zone/index.d.ts +0 -2
- package/exceptions/zone/index.js +0 -18
- package/exceptions/zone/zone.d.ts +0 -5
- package/exceptions/zone/zone.js +0 -32
- package/filters/context-creator.d.ts +0 -14
- package/filters/context-creator.js +0 -48
- package/filters/context.d.ts +0 -12
- package/filters/context.js +0 -41
- package/filters/filter.d.ts +0 -6
- package/filters/filter.js +0 -16
- package/filters/index.d.ts +0 -3
- package/filters/index.js +0 -19
- package/guards/consumer.d.ts +0 -9
- package/guards/consumer.js +0 -33
- package/guards/context-creator.d.ts +0 -17
- package/guards/context-creator.js +0 -69
- package/guards/index.d.ts +0 -2
- package/guards/index.js +0 -18
- package/helpers/color.helper.d.ts +0 -9
- package/helpers/color.helper.js +0 -14
- package/helpers/context-id-factory.helper.d.ts +0 -2
- package/helpers/context-id-factory.helper.js +0 -15
- package/helpers/context.helper.d.ts +0 -23
- package/helpers/context.helper.js +0 -49
- package/helpers/extends-metadata.helper.d.ts +0 -1
- package/helpers/extends-metadata.helper.js +0 -9
- package/helpers/flatten.helper.d.ts +0 -1
- package/helpers/flatten.helper.js +0 -9
- package/helpers/messages.helper.d.ts +0 -2
- package/helpers/messages.helper.js +0 -7
- package/helpers/noop.helper.d.ts +0 -1
- package/helpers/noop.helper.js +0 -5
- package/helpers/random-string-generator.helper.d.ts +0 -1
- package/helpers/random-string-generator.helper.js +0 -6
- package/helpers/rethrow.helper.d.ts +0 -1
- package/helpers/rethrow.helper.js +0 -7
- package/helpers/shared.helper.d.ts +0 -10
- package/helpers/shared.helper.js +0 -33
- package/helpers/silent.helper.d.ts +0 -10
- package/helpers/silent.helper.js +0 -18
- package/helpers/transient.helper.d.ts +0 -12
- package/helpers/transient.helper.js +0 -26
- package/helpers/uuid.helper.d.ts +0 -15
- package/helpers/uuid.helper.js +0 -54
- package/helpers/validate-each.helper.d.ts +0 -8
- package/helpers/validate-each.helper.js +0 -25
- package/hooks/before-app-shutdown.hook.d.ts +0 -9
- package/hooks/before-app-shutdown.hook.js +0 -45
- package/hooks/index.d.ts +0 -5
- package/hooks/index.js +0 -21
- package/hooks/on-app-bootstrap.hook.d.ts +0 -8
- package/hooks/on-app-bootstrap.hook.js +0 -45
- package/hooks/on-app-shutdown.hook.d.ts +0 -9
- package/hooks/on-app-shutdown.hook.js +0 -46
- package/hooks/on-module-destroy.hook.d.ts +0 -8
- package/hooks/on-module-destroy.hook.js +0 -45
- package/hooks/on-module-init.hook.d.ts +0 -8
- package/hooks/on-module-init.hook.js +0 -45
- package/index.d.ts +0 -10
- package/index.js +0 -32
- package/injector/constants.d.ts +0 -2
- package/injector/constants.js +0 -7
- package/injector/container.d.ts +0 -61
- package/injector/container.js +0 -194
- package/injector/helpers/class-scope.helper.d.ts +0 -2
- package/injector/helpers/class-scope.helper.js +0 -9
- package/injector/helpers/classifier.helper.d.ts +0 -4
- package/injector/helpers/classifier.helper.js +0 -17
- package/injector/helpers/is-durable.helper.d.ts +0 -2
- package/injector/helpers/is-durable.helper.js +0 -9
- package/injector/index.d.ts +0 -5
- package/injector/index.js +0 -20
- package/injector/injector.d.ts +0 -87
- package/injector/injector.js +0 -452
- package/injector/instance/links-host.d.ts +0 -22
- package/injector/instance/links-host.js +0 -50
- package/injector/instance/loader.d.ts +0 -21
- package/injector/instance/loader.js +0 -73
- package/injector/instance/resolver.d.ts +0 -16
- package/injector/instance/resolver.js +0 -43
- package/injector/instance/wrapper.d.ts +0 -90
- package/injector/instance/wrapper.js +0 -272
- package/injector/internal-core-module/core-providers.d.ts +0 -4
- package/injector/internal-core-module/core-providers.js +0 -21
- package/injector/internal-core-module/internal-core-module-factory.d.ts +0 -8
- package/injector/internal-core-module/internal-core-module-factory.js +0 -47
- package/injector/internal-core-module/internal-core-module.d.ts +0 -4
- package/injector/internal-core-module/internal-core-module.js +0 -31
- package/injector/module/compiler.d.ts +0 -19
- package/injector/module/compiler.js +0 -27
- package/injector/module/container.d.ts +0 -6
- package/injector/module/container.js +0 -24
- package/injector/module/lazy/loader.d.ts +0 -21
- package/injector/module/lazy/loader.js +0 -49
- package/injector/module/lazy/options.d.ts +0 -6
- package/injector/module/lazy/options.js +0 -2
- package/injector/module/module.d.ts +0 -74
- package/injector/module/module.js +0 -383
- package/injector/module/ref.d.ts +0 -106
- package/injector/module/ref.js +0 -62
- package/injector/module/token-factory.d.ts +0 -13
- package/injector/module/token-factory.js +0 -71
- package/injector/settlement-signal.d.ts +0 -37
- package/injector/settlement-signal.js +0 -55
- package/inspector/graph-inspector.d.ts +0 -26
- package/inspector/graph-inspector.js +0 -163
- package/inspector/initialize-on-preview.allowlist.d.ts +0 -6
- package/inspector/initialize-on-preview.allowlist.js +0 -13
- package/inspector/interfaces/edge.interface.d.ts +0 -28
- package/inspector/interfaces/edge.interface.js +0 -2
- package/inspector/interfaces/enhancer-metadata-cache-entry.interface.d.ts +0 -12
- package/inspector/interfaces/enhancer-metadata-cache-entry.interface.js +0 -2
- package/inspector/interfaces/entrypoint.interface.d.ts +0 -10
- package/inspector/interfaces/entrypoint.interface.js +0 -2
- package/inspector/interfaces/extras.interface.d.ts +0 -18
- package/inspector/interfaces/extras.interface.js +0 -2
- package/inspector/interfaces/node.interface.d.ts +0 -49
- package/inspector/interfaces/node.interface.js +0 -2
- package/inspector/interfaces/serialized-graph-json.interface.d.ts +0 -14
- package/inspector/interfaces/serialized-graph-json.interface.js +0 -2
- package/inspector/interfaces/serialized-graph-metadata.interface.d.ts +0 -10
- package/inspector/interfaces/serialized-graph-metadata.interface.js +0 -2
- package/inspector/noop-graph-inspector.d.ts +0 -2
- package/inspector/noop-graph-inspector.js +0 -8
- package/inspector/partial-graph.host.d.ts +0 -7
- package/inspector/partial-graph.host.js +0 -15
- package/inspector/serialized-graph.d.ts +0 -52
- package/inspector/serialized-graph.js +0 -121
- package/interceptors/consumer.d.ts +0 -9
- package/interceptors/consumer.js +0 -37
- package/interceptors/context-creator.d.ts +0 -17
- package/interceptors/context-creator.js +0 -67
- package/interceptors/index.d.ts +0 -2
- package/interceptors/index.js +0 -18
- package/interfaces/abstract.interface.d.ts +0 -3
- package/interfaces/abstract.interface.js +0 -2
- package/interfaces/application/context-options.interface.d.ts +0 -41
- package/interfaces/application/context-options.interface.js +0 -9
- package/interfaces/application/context.interface.d.ts +0 -162
- package/interfaces/application/context.interface.js +0 -2
- package/interfaces/application/index.d.ts +0 -1
- package/interfaces/application/index.js +0 -17
- package/interfaces/context/arguments-host.interface.d.ts +0 -22
- package/interfaces/context/arguments-host.interface.js +0 -2
- package/interfaces/context/execution.interface.d.ts +0 -18
- package/interfaces/context/execution.interface.js +0 -2
- package/interfaces/context/index.d.ts +0 -2
- package/interfaces/context/index.js +0 -18
- package/interfaces/features/exception-filter.interface.d.ts +0 -21
- package/interfaces/features/exception-filter.interface.js +0 -2
- package/interfaces/features/guards.interface.d.ts +0 -20
- package/interfaces/features/guards.interface.js +0 -2
- package/interfaces/features/index.d.ts +0 -4
- package/interfaces/features/index.js +0 -20
- package/interfaces/features/interceptor.interface.d.ts +0 -30
- package/interfaces/features/interceptor.interface.js +0 -2
- package/interfaces/features/pipes.interface.d.ts +0 -37
- package/interfaces/features/pipes.interface.js +0 -2
- package/interfaces/helper.interface.d.ts +0 -3
- package/interfaces/helper.interface.js +0 -2
- package/interfaces/hooks/before-application-shutdown.interface.d.ts +0 -3
- package/interfaces/hooks/before-application-shutdown.interface.js +0 -2
- package/interfaces/hooks/index.d.ts +0 -5
- package/interfaces/hooks/index.js +0 -21
- package/interfaces/hooks/on-application-bootstrap.interface.d.ts +0 -9
- package/interfaces/hooks/on-application-bootstrap.interface.js +0 -2
- package/interfaces/hooks/on-application-shutdown.interface.d.ts +0 -9
- package/interfaces/hooks/on-application-shutdown.interface.js +0 -2
- package/interfaces/hooks/on-destroy.interface.d.ts +0 -10
- package/interfaces/hooks/on-destroy.interface.js +0 -2
- package/interfaces/hooks/on-init.interface.d.ts +0 -8
- package/interfaces/hooks/on-init.interface.js +0 -2
- package/interfaces/index.d.ts +0 -8
- package/interfaces/index.js +0 -24
- package/interfaces/injectable.interface.d.ts +0 -1
- package/interfaces/injectable.interface.js +0 -2
- package/interfaces/modules/configurable/async-options.interface.d.ts +0 -42
- package/interfaces/modules/configurable/async-options.interface.js +0 -2
- package/interfaces/modules/configurable/cls.interface.d.ts +0 -13
- package/interfaces/modules/configurable/cls.interface.js +0 -2
- package/interfaces/modules/configurable/host.interface.d.ts +0 -62
- package/interfaces/modules/configurable/host.interface.js +0 -2
- package/interfaces/modules/configurable/index.d.ts +0 -3
- package/interfaces/modules/configurable/index.js +0 -19
- package/interfaces/modules/definition.interface.d.ts +0 -4
- package/interfaces/modules/definition.interface.js +0 -2
- package/interfaces/modules/dynamic-module.interface.d.ts +0 -23
- package/interfaces/modules/dynamic-module.interface.js +0 -2
- package/interfaces/modules/forward-reference.interface.d.ts +0 -3
- package/interfaces/modules/forward-reference.interface.js +0 -2
- package/interfaces/modules/index.d.ts +0 -9
- package/interfaces/modules/index.js +0 -25
- package/interfaces/modules/injection-token.interface.d.ts +0 -5
- package/interfaces/modules/injection-token.interface.js +0 -2
- package/interfaces/modules/introspection-result.interface.d.ts +0 -10
- package/interfaces/modules/introspection-result.interface.js +0 -2
- package/interfaces/modules/module-metadata.interface.d.ts +0 -24
- package/interfaces/modules/module-metadata.interface.js +0 -2
- package/interfaces/modules/module.interface.d.ts +0 -2
- package/interfaces/modules/module.interface.js +0 -2
- package/interfaces/modules/optional-factory-dependency.interface.d.ts +0 -8
- package/interfaces/modules/optional-factory-dependency.interface.js +0 -2
- package/interfaces/modules/override.interface.d.ts +0 -5
- package/interfaces/modules/override.interface.js +0 -2
- package/interfaces/modules/provider.interface.d.ts +0 -142
- package/interfaces/modules/provider.interface.js +0 -2
- package/interfaces/scope.interface.d.ts +0 -35
- package/interfaces/scope.interface.js +0 -23
- package/interfaces/type.interface.d.ts +0 -3
- package/interfaces/type.interface.js +0 -2
- package/metadata-scanner.d.ts +0 -4
- package/metadata-scanner.js +0 -34
- package/module/configurable-module.builder.d.ts +0 -93
- package/module/configurable-module.builder.js +0 -204
- package/module/constants.d.ts +0 -4
- package/module/constants.js +0 -7
- package/module/helpers/generate-options-injection-token.helper.d.ts +0 -1
- package/module/helpers/generate-options-injection-token.helper.js +0 -9
- package/module/helpers/get-injection-providers.helper.d.ts +0 -8
- package/module/helpers/get-injection-providers.helper.js +0 -36
- package/module/helpers/index.d.ts +0 -2
- package/module/helpers/index.js +0 -18
- package/module/index.d.ts +0 -2
- package/module/index.js +0 -18
- package/pipes/consumer.d.ts +0 -9
- package/pipes/consumer.js +0 -15
- package/pipes/context-creator.d.ts +0 -18
- package/pipes/context-creator.js +0 -70
- package/pipes/index.d.ts +0 -2
- package/pipes/index.js +0 -18
- package/scanner.d.ts +0 -81
- package/scanner.js +0 -374
- package/services/console.service.d.ts +0 -86
- package/services/console.service.js +0 -233
- package/services/index.d.ts +0 -1
- package/services/index.js +0 -17
- package/services/logger.service.d.ts +0 -157
- package/services/logger.service.js +0 -269
- package/services/reflector.service.d.ts +0 -110
- package/services/reflector.service.js +0 -87
- package/test/context/creator.spec.d.ts +0 -1
- package/test/context/creator.spec.js +0 -149
- package/test/context/execution-host.spec.d.ts +0 -1
- package/test/context/execution-host.spec.js +0 -31
- package/test/context/proxy.spec.d.ts +0 -1
- package/test/context/proxy.spec.js +0 -46
- package/test/exceptions/handler.spec.d.ts +0 -1
- package/test/exceptions/handler.spec.js +0 -90
- package/test/exceptions/messages.spec.js +0 -201
- package/test/exceptions/zona/handler.spec.d.ts +0 -1
- package/test/exceptions/zona/handler.spec.js +0 -51
- package/test/exceptions/zona/zone.spec.d.ts +0 -1
- package/test/exceptions/zona/zone.spec.js +0 -66
- package/test/filters/context-creator.spec.d.ts +0 -2
- package/test/filters/context-creator.spec.js +0 -91
- package/test/guards/consumer.spec.d.ts +0 -1
- package/test/guards/consumer.spec.js +0 -47
- package/test/guards/context-creator.spec.d.ts +0 -1
- package/test/guards/context-creator.spec.js +0 -138
- package/test/helpers/context-id-factory.spec.d.ts +0 -1
- package/test/helpers/context-id-factory.spec.js +0 -9
- package/test/helpers/shared.spec.d.ts +0 -1
- package/test/helpers/shared.spec.js +0 -122
- package/test/hooks/before-app-shutdown.hook.spec.d.ts +0 -1
- package/test/hooks/before-app-shutdown.hook.spec.js +0 -44
- package/test/hooks/on-app-bootstrap.hook.spec.d.ts +0 -1
- package/test/hooks/on-app-bootstrap.hook.spec.js +0 -43
- package/test/hooks/on-app-shutdown.hook.spec.d.ts +0 -1
- package/test/hooks/on-app-shutdown.hook.spec.js +0 -43
- package/test/hooks/on-module-destroy.hook.spec.d.ts +0 -1
- package/test/hooks/on-module-destroy.hook.spec.js +0 -43
- package/test/hooks/on-module-init.hook.spec.d.ts +0 -1
- package/test/hooks/on-module-init.hook.spec.js +0 -43
- package/test/injector/compiler.spec.d.ts +0 -1
- package/test/injector/compiler.spec.js +0 -42
- package/test/injector/container.spec.d.ts +0 -1
- package/test/injector/container.spec.js +0 -203
- package/test/injector/helpers/classifier.spec.d.ts +0 -1
- package/test/injector/helpers/classifier.spec.js +0 -102
- package/test/injector/injector.spec.d.ts +0 -1
- package/test/injector/injector.spec.js +0 -678
- package/test/injector/instance/loader.spec.d.ts +0 -1
- package/test/injector/instance/loader.spec.js +0 -108
- package/test/injector/instance/wrapper.spec.d.ts +0 -1
- package/test/injector/instance/wrapper.spec.js +0 -772
- package/test/injector/internal-core-module/internal-core-module-factory.spec.d.ts +0 -1
- package/test/injector/internal-core-module/internal-core-module-factory.spec.js +0 -27
- package/test/injector/module/lazy/loader.spec.d.ts +0 -1
- package/test/injector/module/lazy/loader.spec.js +0 -71
- package/test/injector/module/module.spec.d.ts +0 -1
- package/test/injector/module/module.spec.js +0 -410
- package/test/injector/module/token-factory.spec.d.ts +0 -1
- package/test/injector/module/token-factory.spec.js +0 -84
- package/test/interceptors/consumer.spec.d.ts +0 -1
- package/test/interceptors/consumer.spec.js +0 -136
- package/test/interceptors/context-creator.spec.d.ts +0 -1
- package/test/interceptors/context-creator.spec.js +0 -139
- package/test/metadata-scanner.spec.d.ts +0 -1
- package/test/metadata-scanner.spec.js +0 -41
- package/test/module/configurable-module.builder.spec.d.ts +0 -1
- package/test/module/configurable-module.builder.spec.js +0 -102
- package/test/module/helpers/get-injection-providers.helper.spec.d.ts +0 -1
- package/test/module/helpers/get-injection-providers.helper.spec.js +0 -49
- package/test/pipes/consumer.spec.d.ts +0 -1
- package/test/pipes/consumer.spec.js +0 -42
- package/test/pipes/context-creator.spec.d.ts +0 -1
- package/test/pipes/context-creator.spec.js +0 -108
- package/test/scanner.spec.d.ts +0 -1
- package/test/scanner.spec.js +0 -620
- package/test/services/logger.service.spec.d.ts +0 -1
- package/test/services/logger.service.spec.js +0 -487
- package/test/services/reflector.service.spec.d.ts +0 -1
- package/test/services/reflector.service.spec.js +0 -105
- package/tsconfig.tsbuildinfo +0 -1
- /package/{test/exceptions/messages.spec.d.ts → dist/interfaces/abstract.interface.js} +0 -0
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/injector/topology-tree/topology-tree.ts
|
|
20
|
+
import { TreeNode } from "../../injector/topology-tree/tree-node.js";
|
|
21
|
+
|
|
22
|
+
class TopologyTree {
|
|
23
|
+
root;
|
|
24
|
+
links = new Map;
|
|
25
|
+
constructor(moduleRef) {
|
|
26
|
+
this.root = new TreeNode({
|
|
27
|
+
value: moduleRef,
|
|
28
|
+
parent: null
|
|
29
|
+
});
|
|
30
|
+
this.links.set(moduleRef, this.root);
|
|
31
|
+
this.traverseAndMapToTree(this.root);
|
|
32
|
+
}
|
|
33
|
+
walk(callback) {
|
|
34
|
+
function walkNode(node, depth = 1) {
|
|
35
|
+
callback(node.value, depth);
|
|
36
|
+
node.children.forEach((child) => walkNode(child, depth + 1));
|
|
37
|
+
}
|
|
38
|
+
walkNode(this.root);
|
|
39
|
+
}
|
|
40
|
+
traverseAndMapToTree(node, depth = 1) {
|
|
41
|
+
if (!node.value.imports)
|
|
42
|
+
return;
|
|
43
|
+
node.value.imports.forEach((child) => {
|
|
44
|
+
if (!child) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
if (this.links.has(child)) {
|
|
48
|
+
const existingSubtree = this.links.get(child);
|
|
49
|
+
if (node.hasCycleWith(child))
|
|
50
|
+
return;
|
|
51
|
+
const existingDepth = existingSubtree.getDepth();
|
|
52
|
+
if (existingDepth < depth)
|
|
53
|
+
existingSubtree.relink(node);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
const childNode = new TreeNode({
|
|
57
|
+
value: child,
|
|
58
|
+
parent: node
|
|
59
|
+
});
|
|
60
|
+
node.addChild(childNode);
|
|
61
|
+
this.links.set(child, childNode);
|
|
62
|
+
this.traverseAndMapToTree(childNode, depth + 1);
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
TopologyTree
|
|
68
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/injector/topology-tree/tree-node.ts
|
|
20
|
+
class TreeNode {
|
|
21
|
+
value;
|
|
22
|
+
children = new Set;
|
|
23
|
+
parent;
|
|
24
|
+
constructor({ value, parent }) {
|
|
25
|
+
this.value = value;
|
|
26
|
+
this.parent = parent;
|
|
27
|
+
}
|
|
28
|
+
addChild(child) {
|
|
29
|
+
this.children.add(child);
|
|
30
|
+
}
|
|
31
|
+
removeChild(child) {
|
|
32
|
+
this.children.delete(child);
|
|
33
|
+
}
|
|
34
|
+
relink(parent) {
|
|
35
|
+
this.parent?.removeChild(this);
|
|
36
|
+
this.parent = parent;
|
|
37
|
+
this.parent.addChild(this);
|
|
38
|
+
}
|
|
39
|
+
getDepth() {
|
|
40
|
+
const visited = new Set;
|
|
41
|
+
let depth = 0;
|
|
42
|
+
let current = this;
|
|
43
|
+
while (current) {
|
|
44
|
+
depth++;
|
|
45
|
+
current = current.parent;
|
|
46
|
+
if (visited.has(current))
|
|
47
|
+
return -1;
|
|
48
|
+
visited.add(current);
|
|
49
|
+
}
|
|
50
|
+
return depth;
|
|
51
|
+
}
|
|
52
|
+
hasCycleWith(target) {
|
|
53
|
+
const visited = new Set;
|
|
54
|
+
let current = this;
|
|
55
|
+
while (current) {
|
|
56
|
+
if (current.value === target)
|
|
57
|
+
return true;
|
|
58
|
+
current = current.parent;
|
|
59
|
+
if (visited.has(current))
|
|
60
|
+
return false;
|
|
61
|
+
visited.add(current);
|
|
62
|
+
}
|
|
63
|
+
return false;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export {
|
|
67
|
+
TreeNode
|
|
68
|
+
};
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/inspector/graph-inspector.ts
|
|
20
|
+
import { DeterministicUuidRegistry } from "../helpers/uuid.helper.js";
|
|
21
|
+
import { UnknownDependenciesException } from "../errors/exceptions/unknown-dependencies.exception.js";
|
|
22
|
+
import { PartialGraphHost } from "../inspector/partial-graph.host.js";
|
|
23
|
+
|
|
24
|
+
class GraphInspector {
|
|
25
|
+
container;
|
|
26
|
+
graph;
|
|
27
|
+
enhancersMetadataCache = new Array;
|
|
28
|
+
constructor(container) {
|
|
29
|
+
this.container = container;
|
|
30
|
+
this.graph = container.serializedGraph;
|
|
31
|
+
}
|
|
32
|
+
inspectModules(modules = this.container.getModules()) {
|
|
33
|
+
for (const moduleRef of modules.values()) {
|
|
34
|
+
this.insertModuleNode(moduleRef);
|
|
35
|
+
this.insertClassNodes(moduleRef);
|
|
36
|
+
this.insertModuleToModuleEdges(moduleRef);
|
|
37
|
+
}
|
|
38
|
+
this.enhancersMetadataCache.forEach((entry) => this.insertEnhancerEdge(entry));
|
|
39
|
+
DeterministicUuidRegistry.clear();
|
|
40
|
+
}
|
|
41
|
+
registerPartial(error) {
|
|
42
|
+
this.graph.status = "partial";
|
|
43
|
+
if (error instanceof UnknownDependenciesException) {
|
|
44
|
+
this.graph.metadata = {
|
|
45
|
+
cause: {
|
|
46
|
+
type: "unknown-dependencies",
|
|
47
|
+
context: error.context,
|
|
48
|
+
moduleId: error.moduleRef?.id,
|
|
49
|
+
nodeId: error.metadata?.id
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
} else {
|
|
53
|
+
this.graph.metadata = {
|
|
54
|
+
cause: {
|
|
55
|
+
type: "unknown",
|
|
56
|
+
error
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
PartialGraphHost.register(this.graph);
|
|
61
|
+
}
|
|
62
|
+
inspectInstanceWrapper(source, moduleRef) {
|
|
63
|
+
const ctorMetadata = source.getCtorMetadata();
|
|
64
|
+
ctorMetadata?.forEach((target, index) => this.insertClassToClassEdge(source, target, moduleRef, index, "constructor"));
|
|
65
|
+
const propertiesMetadata = source.getPropertiesMetadata();
|
|
66
|
+
propertiesMetadata?.forEach(({ key, wrapper: target }) => this.insertClassToClassEdge(source, target, moduleRef, key, "property"));
|
|
67
|
+
}
|
|
68
|
+
insertEnhancerMetadataCache(entry) {
|
|
69
|
+
this.enhancersMetadataCache.push(entry);
|
|
70
|
+
}
|
|
71
|
+
insertOrphanedEnhancer(entry) {
|
|
72
|
+
this.graph.insertOrphanedEnhancer({
|
|
73
|
+
...entry,
|
|
74
|
+
ref: entry.ref?.constructor?.name ?? "Object"
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
insertAttachedEnhancer(wrapper) {
|
|
78
|
+
const existingNode = this.graph.getNodeById(wrapper.id);
|
|
79
|
+
existingNode.metadata.global = true;
|
|
80
|
+
this.graph.insertAttachedEnhancer(existingNode.id);
|
|
81
|
+
}
|
|
82
|
+
insertEntrypointDefinition(definition, parentId) {
|
|
83
|
+
definition = {
|
|
84
|
+
...definition,
|
|
85
|
+
id: `${definition.classNodeId}_${definition.methodName}`
|
|
86
|
+
};
|
|
87
|
+
this.graph.insertEntrypoint(definition, parentId);
|
|
88
|
+
}
|
|
89
|
+
insertClassNode(moduleRef, wrapper, type) {
|
|
90
|
+
this.graph.insertNode({
|
|
91
|
+
id: wrapper.id,
|
|
92
|
+
label: wrapper.name,
|
|
93
|
+
parent: moduleRef.id,
|
|
94
|
+
metadata: {
|
|
95
|
+
type,
|
|
96
|
+
internal: wrapper.metatype === moduleRef.metatype,
|
|
97
|
+
sourceModuleName: moduleRef.name,
|
|
98
|
+
durable: wrapper.isDependencyTreeDurable(),
|
|
99
|
+
static: wrapper.isDependencyTreeStatic(),
|
|
100
|
+
scope: wrapper.scope,
|
|
101
|
+
transient: wrapper.isTransient,
|
|
102
|
+
exported: moduleRef.exports.has(wrapper.token),
|
|
103
|
+
token: wrapper.token,
|
|
104
|
+
subtype: wrapper.subtype,
|
|
105
|
+
initTime: wrapper.initTime ?? 0
|
|
106
|
+
}
|
|
107
|
+
});
|
|
108
|
+
}
|
|
109
|
+
insertModuleNode(moduleRef) {
|
|
110
|
+
const dynamicMetadata = this.container.getDynamicMetadataByToken(moduleRef.token);
|
|
111
|
+
const node = {
|
|
112
|
+
id: moduleRef.id,
|
|
113
|
+
label: moduleRef.name,
|
|
114
|
+
metadata: {
|
|
115
|
+
type: "module",
|
|
116
|
+
global: moduleRef.isGlobal,
|
|
117
|
+
dynamic: !!dynamicMetadata,
|
|
118
|
+
internal: moduleRef.name === "InternalCoreModule"
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
this.graph.insertNode(node);
|
|
122
|
+
}
|
|
123
|
+
insertModuleToModuleEdges(moduleRef) {
|
|
124
|
+
for (const targetModuleRef of moduleRef.imports) {
|
|
125
|
+
this.graph.insertEdge({
|
|
126
|
+
source: moduleRef.id,
|
|
127
|
+
target: targetModuleRef.id,
|
|
128
|
+
metadata: {
|
|
129
|
+
type: "module-to-module",
|
|
130
|
+
sourceModuleName: moduleRef.name,
|
|
131
|
+
targetModuleName: targetModuleRef.name
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
insertEnhancerEdge(entry) {
|
|
137
|
+
const moduleRef = this.container.getModuleByKey(entry.moduleToken);
|
|
138
|
+
const sourceInstanceWrapper = moduleRef.providers.get(entry.classRef);
|
|
139
|
+
const existingSourceNode = this.graph.getNodeById(sourceInstanceWrapper.id);
|
|
140
|
+
const enhancers = existingSourceNode.metadata.enhancers ?? [];
|
|
141
|
+
if (entry.enhancerInstanceWrapper) {
|
|
142
|
+
this.insertClassToClassEdge(sourceInstanceWrapper, entry.enhancerInstanceWrapper, moduleRef, undefined, "decorator");
|
|
143
|
+
enhancers.push({
|
|
144
|
+
id: entry.enhancerInstanceWrapper.id,
|
|
145
|
+
methodKey: entry.methodKey,
|
|
146
|
+
subtype: entry.subtype
|
|
147
|
+
});
|
|
148
|
+
} else {
|
|
149
|
+
const name = entry.enhancerRef.constructor?.name ?? entry.enhancerRef.name;
|
|
150
|
+
enhancers.push({
|
|
151
|
+
name,
|
|
152
|
+
methodKey: entry.methodKey,
|
|
153
|
+
subtype: entry.subtype
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
existingSourceNode.metadata.enhancers = enhancers;
|
|
157
|
+
}
|
|
158
|
+
insertClassToClassEdge(source, target, moduleRef, keyOrIndex, injectionType) {
|
|
159
|
+
this.graph.insertEdge({
|
|
160
|
+
source: source.id,
|
|
161
|
+
target: target.id,
|
|
162
|
+
metadata: {
|
|
163
|
+
type: "class-to-class",
|
|
164
|
+
sourceModuleName: moduleRef.name,
|
|
165
|
+
sourceClassName: source.name,
|
|
166
|
+
targetClassName: target.name,
|
|
167
|
+
sourceClassToken: source.token,
|
|
168
|
+
targetClassToken: target.token,
|
|
169
|
+
targetModuleName: target.host?.name ?? "",
|
|
170
|
+
keyOrIndex,
|
|
171
|
+
injectionType
|
|
172
|
+
}
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
insertClassNodes(moduleRef) {
|
|
176
|
+
moduleRef.providers.forEach((value) => this.insertClassNode(moduleRef, value, "provider"));
|
|
177
|
+
moduleRef.injectables.forEach((value) => this.insertClassNode(moduleRef, value, "injectable"));
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
export {
|
|
181
|
+
GraphInspector
|
|
182
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/inspector/initialize-on-preview.allowlist.ts
|
|
20
|
+
class InitializeOnPreviewAllowlist {
|
|
21
|
+
static allowlist = new WeakMap;
|
|
22
|
+
static add(type) {
|
|
23
|
+
this.allowlist.set(type, true);
|
|
24
|
+
}
|
|
25
|
+
static has(type) {
|
|
26
|
+
return this.allowlist.has(type);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
InitializeOnPreviewAllowlist
|
|
31
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/inspector/noop-graph-inspector.ts
|
|
20
|
+
import { GraphInspector } from "../inspector/graph-inspector.js";
|
|
21
|
+
import { noop } from "../helpers/noop.helper.js";
|
|
22
|
+
var NoopGraphInspector = new Proxy(GraphInspector.prototype, {
|
|
23
|
+
get: () => noop
|
|
24
|
+
});
|
|
25
|
+
export {
|
|
26
|
+
NoopGraphInspector
|
|
27
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/inspector/partial-graph.host.ts
|
|
20
|
+
class PartialGraphHost {
|
|
21
|
+
static partialGraph;
|
|
22
|
+
static toJSON() {
|
|
23
|
+
return this.partialGraph?.toJSON();
|
|
24
|
+
}
|
|
25
|
+
static toString() {
|
|
26
|
+
return this.partialGraph?.toString();
|
|
27
|
+
}
|
|
28
|
+
static register(partialGraph) {
|
|
29
|
+
this.partialGraph = partialGraph;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
PartialGraphHost
|
|
34
|
+
};
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/inspector/serialized-graph.ts
|
|
20
|
+
import { ApplicationConfig } from "../application/config.js";
|
|
21
|
+
import { LazyModuleLoader } from "../injector/module/lazy/loader.js";
|
|
22
|
+
import { ModuleRef } from "../injector/module/ref.js";
|
|
23
|
+
import { ModulesContainer } from "../injector/module/container.js";
|
|
24
|
+
import { INQUIRER, REQUEST } from "../constants.js";
|
|
25
|
+
import { DeterministicUuidRegistry } from "../helpers/uuid.helper.js";
|
|
26
|
+
|
|
27
|
+
class SerializedGraph {
|
|
28
|
+
nodes = new Map;
|
|
29
|
+
edges = new Map;
|
|
30
|
+
entrypoints = new Map;
|
|
31
|
+
extras = {
|
|
32
|
+
orphanedEnhancers: [],
|
|
33
|
+
attachedEnhancers: []
|
|
34
|
+
};
|
|
35
|
+
_status = "complete";
|
|
36
|
+
_metadata;
|
|
37
|
+
static INTERNAL_PROVIDERS = [
|
|
38
|
+
ApplicationConfig,
|
|
39
|
+
ModuleRef,
|
|
40
|
+
LazyModuleLoader,
|
|
41
|
+
ModulesContainer,
|
|
42
|
+
REQUEST,
|
|
43
|
+
INQUIRER
|
|
44
|
+
];
|
|
45
|
+
set status(status) {
|
|
46
|
+
this._status = status;
|
|
47
|
+
}
|
|
48
|
+
set metadata(metadata) {
|
|
49
|
+
this._metadata = metadata;
|
|
50
|
+
}
|
|
51
|
+
insertNode(nodeDefinition) {
|
|
52
|
+
if (nodeDefinition.metadata.type === "provider" && SerializedGraph.INTERNAL_PROVIDERS.includes(nodeDefinition.metadata.token)) {
|
|
53
|
+
nodeDefinition.metadata = {
|
|
54
|
+
...nodeDefinition.metadata,
|
|
55
|
+
internal: true
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
if (this.nodes.has(nodeDefinition.id)) {
|
|
59
|
+
return this.nodes.get(nodeDefinition.id);
|
|
60
|
+
}
|
|
61
|
+
this.nodes.set(nodeDefinition.id, nodeDefinition);
|
|
62
|
+
return nodeDefinition;
|
|
63
|
+
}
|
|
64
|
+
insertEdge(edgeDefinition) {
|
|
65
|
+
if (edgeDefinition.metadata.type === "class-to-class" && (SerializedGraph.INTERNAL_PROVIDERS.includes(edgeDefinition.metadata.sourceClassToken) || SerializedGraph.INTERNAL_PROVIDERS.includes(edgeDefinition.metadata.targetClassToken))) {
|
|
66
|
+
edgeDefinition.metadata = {
|
|
67
|
+
...edgeDefinition.metadata,
|
|
68
|
+
internal: true
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
const id = edgeDefinition.id ?? this.generateUuidByEdgeDefinition(edgeDefinition);
|
|
72
|
+
const edge = {
|
|
73
|
+
...edgeDefinition,
|
|
74
|
+
id
|
|
75
|
+
};
|
|
76
|
+
this.edges.set(id, edge);
|
|
77
|
+
return edge;
|
|
78
|
+
}
|
|
79
|
+
insertEntrypoint(definition, parentId) {
|
|
80
|
+
if (this.entrypoints.has(parentId)) {
|
|
81
|
+
const existingCollection = this.entrypoints.get(parentId);
|
|
82
|
+
existingCollection.push(definition);
|
|
83
|
+
} else {
|
|
84
|
+
this.entrypoints.set(parentId, [definition]);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
insertOrphanedEnhancer(entry) {
|
|
88
|
+
this.extras.orphanedEnhancers.push(entry);
|
|
89
|
+
}
|
|
90
|
+
insertAttachedEnhancer(nodeId) {
|
|
91
|
+
this.extras.attachedEnhancers.push({
|
|
92
|
+
nodeId
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
getNodeById(id) {
|
|
96
|
+
return this.nodes.get(id);
|
|
97
|
+
}
|
|
98
|
+
toJSON() {
|
|
99
|
+
const json = {
|
|
100
|
+
nodes: Object.fromEntries(this.nodes),
|
|
101
|
+
edges: Object.fromEntries(this.edges),
|
|
102
|
+
entrypoints: Object.fromEntries(this.entrypoints),
|
|
103
|
+
extras: this.extras
|
|
104
|
+
};
|
|
105
|
+
if (this._status) {
|
|
106
|
+
json["status"] = this._status;
|
|
107
|
+
}
|
|
108
|
+
if (this._metadata) {
|
|
109
|
+
json["metadata"] = this._metadata;
|
|
110
|
+
}
|
|
111
|
+
return json;
|
|
112
|
+
}
|
|
113
|
+
toString() {
|
|
114
|
+
const replacer = (key, value) => {
|
|
115
|
+
if (typeof value === "symbol") {
|
|
116
|
+
return value.toString();
|
|
117
|
+
}
|
|
118
|
+
return typeof value === "function" ? value.name ?? "Function" : value;
|
|
119
|
+
};
|
|
120
|
+
return JSON.stringify(this.toJSON(), replacer, 2);
|
|
121
|
+
}
|
|
122
|
+
generateUuidByEdgeDefinition(edgeDefinition) {
|
|
123
|
+
return DeterministicUuidRegistry.get(JSON.stringify(edgeDefinition));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
export {
|
|
127
|
+
SerializedGraph
|
|
128
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/interceptors/consumer.ts
|
|
20
|
+
import { defer, from, mergeAll, Observable, switchMap } from "rxjs";
|
|
21
|
+
import { AsyncResource } from "node:async_hooks";
|
|
22
|
+
import { ExecutionContextHost } from "../context/execution-host.js";
|
|
23
|
+
import { isEmpty } from "../helpers/shared.helper.js";
|
|
24
|
+
|
|
25
|
+
class InterceptorsConsumer {
|
|
26
|
+
async intercept(interceptors, args, instance, callback, next, type) {
|
|
27
|
+
if (isEmpty(interceptors))
|
|
28
|
+
return next();
|
|
29
|
+
const context = this.createContext(args, instance, callback);
|
|
30
|
+
context.setType(type);
|
|
31
|
+
const nextFn = async (i = 0) => {
|
|
32
|
+
if (i >= interceptors.length) {
|
|
33
|
+
return defer(AsyncResource.bind(() => this.transformDeferred(next)));
|
|
34
|
+
}
|
|
35
|
+
const handler = {
|
|
36
|
+
handle: () => defer(AsyncResource.bind(() => nextFn(i + 1))).pipe(mergeAll())
|
|
37
|
+
};
|
|
38
|
+
return interceptors[i].intercept(context, handler);
|
|
39
|
+
};
|
|
40
|
+
return defer(() => nextFn()).pipe(mergeAll());
|
|
41
|
+
}
|
|
42
|
+
createContext(args, instance, callback) {
|
|
43
|
+
return new ExecutionContextHost(args, instance.constructor, callback);
|
|
44
|
+
}
|
|
45
|
+
transformDeferred(next) {
|
|
46
|
+
return from(next()).pipe(switchMap((res) => {
|
|
47
|
+
const isDeferred = res instanceof Promise || res instanceof Observable;
|
|
48
|
+
return isDeferred ? res : Promise.resolve(res);
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
InterceptorsConsumer
|
|
54
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
var __legacyDecorateClassTS = function(decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
5
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else
|
|
7
|
+
for (var i = decorators.length - 1;i >= 0; i--)
|
|
8
|
+
if (d = decorators[i])
|
|
9
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
|
+
};
|
|
12
|
+
var __legacyDecorateParamTS = (index, decorator) => (target, key) => decorator(target, key, index);
|
|
13
|
+
var __legacyMetadataTS = (k, v) => {
|
|
14
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
15
|
+
return Reflect.metadata(k, v);
|
|
16
|
+
};
|
|
17
|
+
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
18
|
+
|
|
19
|
+
// packages/core/src/interceptors/context-creator.ts
|
|
20
|
+
import { STATIC_CONTEXT } from "../injector/constants.js";
|
|
21
|
+
import { ContextCreator } from "../context/creator.js";
|
|
22
|
+
import { isEmpty, isFunction } from "../helpers/shared.helper.js";
|
|
23
|
+
import { INTERCEPTORS_METADATA } from "../constants.js";
|
|
24
|
+
|
|
25
|
+
class InterceptorsContextCreator extends ContextCreator {
|
|
26
|
+
container;
|
|
27
|
+
config;
|
|
28
|
+
moduleContext;
|
|
29
|
+
constructor(container, config) {
|
|
30
|
+
super();
|
|
31
|
+
this.container = container;
|
|
32
|
+
this.config = config;
|
|
33
|
+
}
|
|
34
|
+
create(instance, callback, module, contextId = STATIC_CONTEXT, inquirerId) {
|
|
35
|
+
this.moduleContext = module;
|
|
36
|
+
return this.createContext(instance, callback, INTERCEPTORS_METADATA, contextId, inquirerId);
|
|
37
|
+
}
|
|
38
|
+
createConcreteContext(metadata, contextId = STATIC_CONTEXT, inquirerId) {
|
|
39
|
+
if (isEmpty(metadata))
|
|
40
|
+
return [];
|
|
41
|
+
return metadata.filter((interceptor) => interceptor && (interceptor.name || interceptor.intercept)).map((interceptor) => this.getInterceptorInstance(interceptor, contextId, inquirerId)).filter((interceptor) => interceptor && isFunction(interceptor.intercept));
|
|
42
|
+
}
|
|
43
|
+
getInterceptorInstance(metatype, contextId = STATIC_CONTEXT, inquirerId) {
|
|
44
|
+
const isObject = metatype.intercept;
|
|
45
|
+
if (isObject)
|
|
46
|
+
return metatype;
|
|
47
|
+
const instanceWrapper = this.getInstanceByMetatype(metatype);
|
|
48
|
+
if (!instanceWrapper)
|
|
49
|
+
return null;
|
|
50
|
+
const instanceHost = instanceWrapper.getInstanceByContextId(this.getContextId(contextId, instanceWrapper), inquirerId);
|
|
51
|
+
return instanceHost && instanceHost.instance;
|
|
52
|
+
}
|
|
53
|
+
getInstanceByMetatype(metatype) {
|
|
54
|
+
if (!this.moduleContext)
|
|
55
|
+
return;
|
|
56
|
+
const collection = this.container.getModules();
|
|
57
|
+
const moduleRef = collection.get(this.moduleContext);
|
|
58
|
+
if (!moduleRef)
|
|
59
|
+
return;
|
|
60
|
+
return moduleRef.injectables.get(metatype);
|
|
61
|
+
}
|
|
62
|
+
getGlobalMetadata(contextId = STATIC_CONTEXT, inquirerId) {
|
|
63
|
+
if (!this.config)
|
|
64
|
+
return [];
|
|
65
|
+
const globalInterceptors = this.config.getGlobalInterceptors();
|
|
66
|
+
if (contextId === STATIC_CONTEXT && !inquirerId)
|
|
67
|
+
return globalInterceptors;
|
|
68
|
+
const scopedInterceptorWrappers = this.config.getGlobalRequestInterceptors();
|
|
69
|
+
const scopedInterceptors = scopedInterceptorWrappers.map((wrapper) => wrapper.getInstanceByContextId(this.getContextId(contextId, wrapper), inquirerId)).filter((host) => !!host).map((host) => host.instance);
|
|
70
|
+
return globalInterceptors.concat(scopedInterceptors);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
InterceptorsContextCreator
|
|
75
|
+
};
|