@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
package/decorators/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./apply.decorator"), exports);
|
|
18
|
-
__exportStar(require("./bind.decorator"), exports);
|
|
19
|
-
__exportStar(require("./catch.decorator"), exports);
|
|
20
|
-
__exportStar(require("./create-param.decorator"), exports);
|
|
21
|
-
__exportStar(require("./dependencies.decorator"), exports);
|
|
22
|
-
__exportStar(require("./exception-filters.decorator"), exports);
|
|
23
|
-
__exportStar(require("./global.decorator"), exports);
|
|
24
|
-
__exportStar(require("./inject.decorator"), exports);
|
|
25
|
-
__exportStar(require("./injectable.decorator"), exports);
|
|
26
|
-
__exportStar(require("./module.decorator"), exports);
|
|
27
|
-
__exportStar(require("./optional.decorator"), exports);
|
|
28
|
-
__exportStar(require("./set-metadata.decorator"), exports);
|
|
29
|
-
__exportStar(require("./use-guards.decorator"), exports);
|
|
30
|
-
__exportStar(require("./use-pipes.decorator"), exports);
|
|
31
|
-
__exportStar(require("./use-interceptors.decorator"), exports);
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Decorator that marks a constructor parameter as a target for
|
|
3
|
-
* Dependency Injection (DI).
|
|
4
|
-
*
|
|
5
|
-
* Any injected provider must be visible within the module scope (loosely
|
|
6
|
-
* speaking, the containing module) of the class it is being injected into. This
|
|
7
|
-
* can be done by:
|
|
8
|
-
*
|
|
9
|
-
* - defining the provider in the same module scope
|
|
10
|
-
* - exporting the provider from one module scope and importing that module into the
|
|
11
|
-
* module scope of the class being injected into
|
|
12
|
-
* - exporting the provider from a module that is marked as global using the
|
|
13
|
-
* `@Global()` decorator
|
|
14
|
-
*
|
|
15
|
-
* #### Injection tokens
|
|
16
|
-
* Can be *types* (class names), *strings* or *symbols*. This depends on how the
|
|
17
|
-
* provider with which it is associated was defined. Providers defined with the
|
|
18
|
-
* `@Injectable()` decorator use the class name. Custom Providers may use strings
|
|
19
|
-
* or symbols as the injection token.
|
|
20
|
-
*
|
|
21
|
-
* @param token lookup key for the provider to be injected (assigned to the constructor
|
|
22
|
-
* parameter).
|
|
23
|
-
*
|
|
24
|
-
* @publicApi
|
|
25
|
-
*/
|
|
26
|
-
export declare function Inject<T = any>(token?: T): PropertyDecorator & ParameterDecorator;
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Inject = void 0;
|
|
4
|
-
const shared_helper_1 = require("@venok/core/helpers/shared.helper");
|
|
5
|
-
const constants_1 = require("@venok/core/constants");
|
|
6
|
-
/**
|
|
7
|
-
* Decorator that marks a constructor parameter as a target for
|
|
8
|
-
* Dependency Injection (DI).
|
|
9
|
-
*
|
|
10
|
-
* Any injected provider must be visible within the module scope (loosely
|
|
11
|
-
* speaking, the containing module) of the class it is being injected into. This
|
|
12
|
-
* can be done by:
|
|
13
|
-
*
|
|
14
|
-
* - defining the provider in the same module scope
|
|
15
|
-
* - exporting the provider from one module scope and importing that module into the
|
|
16
|
-
* module scope of the class being injected into
|
|
17
|
-
* - exporting the provider from a module that is marked as global using the
|
|
18
|
-
* `@Global()` decorator
|
|
19
|
-
*
|
|
20
|
-
* #### Injection tokens
|
|
21
|
-
* Can be *types* (class names), *strings* or *symbols*. This depends on how the
|
|
22
|
-
* provider with which it is associated was defined. Providers defined with the
|
|
23
|
-
* `@Injectable()` decorator use the class name. Custom Providers may use strings
|
|
24
|
-
* or symbols as the injection token.
|
|
25
|
-
*
|
|
26
|
-
* @param token lookup key for the provider to be injected (assigned to the constructor
|
|
27
|
-
* parameter).
|
|
28
|
-
*
|
|
29
|
-
* @publicApi
|
|
30
|
-
*/
|
|
31
|
-
function Inject(token) {
|
|
32
|
-
return (target, key, index) => {
|
|
33
|
-
const type = token || Reflect.getMetadata("design:type", target, key);
|
|
34
|
-
if (!(0, shared_helper_1.isUndefined)(index)) {
|
|
35
|
-
let dependencies = Reflect.getMetadata(constants_1.SELF_DECLARED_DEPS_METADATA, target) || [];
|
|
36
|
-
dependencies = [...dependencies, { index, param: type }];
|
|
37
|
-
Reflect.defineMetadata(constants_1.SELF_DECLARED_DEPS_METADATA, dependencies, target);
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
let properties = Reflect.getMetadata(constants_1.PROPERTY_DEPS_METADATA, target.constructor) || [];
|
|
41
|
-
properties = [...properties, { key, type }];
|
|
42
|
-
Reflect.defineMetadata(constants_1.PROPERTY_DEPS_METADATA, properties, target.constructor);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
exports.Inject = Inject;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ScopeOptions, Type } from "@venok/core/interfaces";
|
|
2
|
-
/**
|
|
3
|
-
* Defines the injection scope.
|
|
4
|
-
*
|
|
5
|
-
* @publicApi
|
|
6
|
-
*/
|
|
7
|
-
export type InjectableOptions = ScopeOptions;
|
|
8
|
-
/**
|
|
9
|
-
* Decorator that marks a class as a provider(https://venok.com/providers).
|
|
10
|
-
* Providers can be injected into other classes via constructor parameter injection
|
|
11
|
-
* using Venok built-in [Dependency Injection (DI)](https://venok.com/providers#dependency-injection)
|
|
12
|
-
* system.
|
|
13
|
-
*
|
|
14
|
-
* When injecting a provider, it must be visible within the module scope (loosely
|
|
15
|
-
* speaking, the containing module) of the class it is being injected into. This
|
|
16
|
-
* can be done by:
|
|
17
|
-
*
|
|
18
|
-
* - defining the provider in the same module scope
|
|
19
|
-
* - exporting the provider from one module scope and importing that module into the
|
|
20
|
-
* module scope of the class being injected into
|
|
21
|
-
* - exporting the provider from a module that is marked as global using the
|
|
22
|
-
* `@Global()` decorator
|
|
23
|
-
*
|
|
24
|
-
* Providers can also be defined in a more explicit and imperative form using
|
|
25
|
-
* various [custom provider](https://venok.com/fundamentals/custom-providers) techniques that expose
|
|
26
|
-
* more capabilities of the DI system.
|
|
27
|
-
*
|
|
28
|
-
* @param options options specifying scope of injectable
|
|
29
|
-
*
|
|
30
|
-
* @see [Providers](https://venok.com/providers)
|
|
31
|
-
* @see [Custom Providers](https://venok.com/fundamentals/custom-providers)
|
|
32
|
-
* @see [Injection Scopes](https://venok.com/fundamentals/injection-scopes)
|
|
33
|
-
*
|
|
34
|
-
* @publicApi
|
|
35
|
-
*/
|
|
36
|
-
export declare function Injectable(options?: InjectableOptions): ClassDecorator;
|
|
37
|
-
/**
|
|
38
|
-
* @publicApi
|
|
39
|
-
*/
|
|
40
|
-
export declare function mixin<T>(mixinClass: Type<T>): Type<T>;
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mixin = exports.Injectable = void 0;
|
|
4
|
-
const uid_1 = require("uid");
|
|
5
|
-
const constants_1 = require("@venok/core/constants");
|
|
6
|
-
/**
|
|
7
|
-
* Decorator that marks a class as a provider(https://venok.com/providers).
|
|
8
|
-
* Providers can be injected into other classes via constructor parameter injection
|
|
9
|
-
* using Venok built-in [Dependency Injection (DI)](https://venok.com/providers#dependency-injection)
|
|
10
|
-
* system.
|
|
11
|
-
*
|
|
12
|
-
* When injecting a provider, it must be visible within the module scope (loosely
|
|
13
|
-
* speaking, the containing module) of the class it is being injected into. This
|
|
14
|
-
* can be done by:
|
|
15
|
-
*
|
|
16
|
-
* - defining the provider in the same module scope
|
|
17
|
-
* - exporting the provider from one module scope and importing that module into the
|
|
18
|
-
* module scope of the class being injected into
|
|
19
|
-
* - exporting the provider from a module that is marked as global using the
|
|
20
|
-
* `@Global()` decorator
|
|
21
|
-
*
|
|
22
|
-
* Providers can also be defined in a more explicit and imperative form using
|
|
23
|
-
* various [custom provider](https://venok.com/fundamentals/custom-providers) techniques that expose
|
|
24
|
-
* more capabilities of the DI system.
|
|
25
|
-
*
|
|
26
|
-
* @param options options specifying scope of injectable
|
|
27
|
-
*
|
|
28
|
-
* @see [Providers](https://venok.com/providers)
|
|
29
|
-
* @see [Custom Providers](https://venok.com/fundamentals/custom-providers)
|
|
30
|
-
* @see [Injection Scopes](https://venok.com/fundamentals/injection-scopes)
|
|
31
|
-
*
|
|
32
|
-
* @publicApi
|
|
33
|
-
*/
|
|
34
|
-
function Injectable(options) {
|
|
35
|
-
return (target) => {
|
|
36
|
-
Reflect.defineMetadata(constants_1.INJECTABLE_WATERMARK, true, target);
|
|
37
|
-
Reflect.defineMetadata(constants_1.SCOPE_OPTIONS_METADATA, options, target);
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.Injectable = Injectable;
|
|
41
|
-
/**
|
|
42
|
-
* @publicApi
|
|
43
|
-
*/
|
|
44
|
-
function mixin(mixinClass) {
|
|
45
|
-
Object.defineProperty(mixinClass, "name", {
|
|
46
|
-
value: (0, uid_1.uid)(21),
|
|
47
|
-
});
|
|
48
|
-
Injectable()(mixinClass);
|
|
49
|
-
return mixinClass;
|
|
50
|
-
}
|
|
51
|
-
exports.mixin = mixin;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { ModuleMetadata } from "@venok/core/interfaces/modules";
|
|
2
|
-
export declare const INVALID_MODULE_CONFIG_MESSAGE: (text: TemplateStringsArray, property: string) => string;
|
|
3
|
-
/**
|
|
4
|
-
* Decorator that marks a class as a module.
|
|
5
|
-
*
|
|
6
|
-
* Modules are used by Venok to organize the application structure into scopes.
|
|
7
|
-
* Providers are scoped by the module they are declared in. Modules and their
|
|
8
|
-
* classes (Providers) form a graph that determines how Venok
|
|
9
|
-
*
|
|
10
|
-
* @param metadata module configuration metadata
|
|
11
|
-
*
|
|
12
|
-
* @publicApi
|
|
13
|
-
*/
|
|
14
|
-
export declare function Module(metadata: ModuleMetadata): ClassDecorator;
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Module = exports.INVALID_MODULE_CONFIG_MESSAGE = void 0;
|
|
4
|
-
const constants_1 = require("../constants");
|
|
5
|
-
const INVALID_MODULE_CONFIG_MESSAGE = (text, property) => `Invalid property '${property}' passed into the @Module() decorator.`;
|
|
6
|
-
exports.INVALID_MODULE_CONFIG_MESSAGE = INVALID_MODULE_CONFIG_MESSAGE;
|
|
7
|
-
const metadataKeys = [constants_1.MODULE_METADATA.IMPORTS, constants_1.MODULE_METADATA.EXPORTS, constants_1.MODULE_METADATA.PROVIDERS];
|
|
8
|
-
function validateModuleKeys(keys) {
|
|
9
|
-
const validateKey = (key) => {
|
|
10
|
-
if (metadataKeys.includes(key))
|
|
11
|
-
return;
|
|
12
|
-
throw new Error((0, exports.INVALID_MODULE_CONFIG_MESSAGE) `${key}`);
|
|
13
|
-
};
|
|
14
|
-
keys.forEach(validateKey);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Decorator that marks a class as a module.
|
|
18
|
-
*
|
|
19
|
-
* Modules are used by Venok to organize the application structure into scopes.
|
|
20
|
-
* Providers are scoped by the module they are declared in. Modules and their
|
|
21
|
-
* classes (Providers) form a graph that determines how Venok
|
|
22
|
-
*
|
|
23
|
-
* @param metadata module configuration metadata
|
|
24
|
-
*
|
|
25
|
-
* @publicApi
|
|
26
|
-
*/
|
|
27
|
-
function Module(metadata) {
|
|
28
|
-
const propsKeys = Object.keys(metadata);
|
|
29
|
-
validateModuleKeys(propsKeys);
|
|
30
|
-
return (target) => {
|
|
31
|
-
for (const property in metadata) {
|
|
32
|
-
if (metadata.hasOwnProperty(property)) {
|
|
33
|
-
Reflect.defineMetadata(property, metadata[property], target);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
exports.Module = Module;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Parameter decorator for an injected dependency marking the
|
|
3
|
-
* dependency as optional.
|
|
4
|
-
*
|
|
5
|
-
* For example:
|
|
6
|
-
* ```typescript
|
|
7
|
-
* constructor(@Optional() @Inject('HTTP_OPTIONS')private readonly httpClient: T) {}
|
|
8
|
-
* ```
|
|
9
|
-
*
|
|
10
|
-
* @see [Optional providers](https://venok.com/providers#optional-providers)
|
|
11
|
-
*
|
|
12
|
-
* @publicApi
|
|
13
|
-
*/
|
|
14
|
-
export declare function Optional(): PropertyDecorator & ParameterDecorator;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Optional = void 0;
|
|
4
|
-
const constants_1 = require("@venok/core/constants");
|
|
5
|
-
const shared_helper_1 = require("@venok/core/helpers/shared.helper");
|
|
6
|
-
/**
|
|
7
|
-
* Parameter decorator for an injected dependency marking the
|
|
8
|
-
* dependency as optional.
|
|
9
|
-
*
|
|
10
|
-
* For example:
|
|
11
|
-
* ```typescript
|
|
12
|
-
* constructor(@Optional() @Inject('HTTP_OPTIONS')private readonly httpClient: T) {}
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* @see [Optional providers](https://venok.com/providers#optional-providers)
|
|
16
|
-
*
|
|
17
|
-
* @publicApi
|
|
18
|
-
*/
|
|
19
|
-
function Optional() {
|
|
20
|
-
return (target, key, index) => {
|
|
21
|
-
if (!(0, shared_helper_1.isUndefined)(index)) {
|
|
22
|
-
const args = Reflect.getMetadata(constants_1.OPTIONAL_DEPS_METADATA, target) || [];
|
|
23
|
-
Reflect.defineMetadata(constants_1.OPTIONAL_DEPS_METADATA, [...args, index], target);
|
|
24
|
-
return;
|
|
25
|
-
}
|
|
26
|
-
const properties = Reflect.getMetadata(constants_1.OPTIONAL_PROPERTY_DEPS_METADATA, target.constructor) || [];
|
|
27
|
-
Reflect.defineMetadata(constants_1.OPTIONAL_PROPERTY_DEPS_METADATA, [...properties, key], target.constructor);
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
exports.Optional = Optional;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export type CustomDecorator<TKey = string> = MethodDecorator & ClassDecorator & {
|
|
2
|
-
KEY: TKey;
|
|
3
|
-
};
|
|
4
|
-
/**
|
|
5
|
-
* Decorator that assigns metadata to the class/function using the
|
|
6
|
-
* specified `key`.
|
|
7
|
-
*
|
|
8
|
-
* Requires two parameters:
|
|
9
|
-
* - `key` - a value defining the key under which the metadata is stored
|
|
10
|
-
* - `value` - metadata to be associated with `key`
|
|
11
|
-
*
|
|
12
|
-
* This metadata can be reflected using the `Reflector` class.
|
|
13
|
-
*
|
|
14
|
-
* Example: `@SetMetadata('roles', ['admin'])`
|
|
15
|
-
*
|
|
16
|
-
* @publicApi
|
|
17
|
-
*/
|
|
18
|
-
export declare const SetMetadata: <K = string, V = any>(metadataKey: K, metadataValue: V) => CustomDecorator<K>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SetMetadata = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Decorator that assigns metadata to the class/function using the
|
|
6
|
-
* specified `key`.
|
|
7
|
-
*
|
|
8
|
-
* Requires two parameters:
|
|
9
|
-
* - `key` - a value defining the key under which the metadata is stored
|
|
10
|
-
* - `value` - metadata to be associated with `key`
|
|
11
|
-
*
|
|
12
|
-
* This metadata can be reflected using the `Reflector` class.
|
|
13
|
-
*
|
|
14
|
-
* Example: `@SetMetadata('roles', ['admin'])`
|
|
15
|
-
*
|
|
16
|
-
* @publicApi
|
|
17
|
-
*/
|
|
18
|
-
const SetMetadata = (metadataKey, metadataValue) => {
|
|
19
|
-
const decoratorFactory = (target, key, descriptor) => {
|
|
20
|
-
if (descriptor) {
|
|
21
|
-
Reflect.defineMetadata(metadataKey, metadataValue, descriptor.value);
|
|
22
|
-
return descriptor;
|
|
23
|
-
}
|
|
24
|
-
Reflect.defineMetadata(metadataKey, metadataValue, target);
|
|
25
|
-
return target;
|
|
26
|
-
};
|
|
27
|
-
decoratorFactory.KEY = metadataKey;
|
|
28
|
-
return decoratorFactory;
|
|
29
|
-
};
|
|
30
|
-
exports.SetMetadata = SetMetadata;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { CanActivate } from "@venok/core/interfaces/features/guards.interface";
|
|
2
|
-
/**
|
|
3
|
-
* Decorator that binds guards to the scope of the provider or method,
|
|
4
|
-
* depending on its context.
|
|
5
|
-
*
|
|
6
|
-
* When `@UseGuards` is used at the controller level, the guard will be
|
|
7
|
-
* applied to every handler (method) in the provider.
|
|
8
|
-
*
|
|
9
|
-
* When `@UseGuards` is used at the individual handler level, the guard
|
|
10
|
-
* will apply only to that specific method.
|
|
11
|
-
*
|
|
12
|
-
* @param guards a single guard instance or class, or a list of guard instances
|
|
13
|
-
* or classes.
|
|
14
|
-
*
|
|
15
|
-
* @usageNotes
|
|
16
|
-
* Guards can also be set up globally for all controllers and routes
|
|
17
|
-
* using `app.useGlobalGuards()`.
|
|
18
|
-
*
|
|
19
|
-
* @publicApi
|
|
20
|
-
*/
|
|
21
|
-
export declare function UseGuards(...guards: (CanActivate | Function)[]): MethodDecorator & ClassDecorator;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UseGuards = void 0;
|
|
4
|
-
const shared_helper_1 = require("@venok/core/helpers/shared.helper");
|
|
5
|
-
const constants_1 = require("@venok/core/constants");
|
|
6
|
-
const validate_each_helper_1 = require("@venok/core/helpers/validate-each.helper");
|
|
7
|
-
const extends_metadata_helper_1 = require("@venok/core/helpers/extends-metadata.helper");
|
|
8
|
-
/**
|
|
9
|
-
* Decorator that binds guards to the scope of the provider or method,
|
|
10
|
-
* depending on its context.
|
|
11
|
-
*
|
|
12
|
-
* When `@UseGuards` is used at the controller level, the guard will be
|
|
13
|
-
* applied to every handler (method) in the provider.
|
|
14
|
-
*
|
|
15
|
-
* When `@UseGuards` is used at the individual handler level, the guard
|
|
16
|
-
* will apply only to that specific method.
|
|
17
|
-
*
|
|
18
|
-
* @param guards a single guard instance or class, or a list of guard instances
|
|
19
|
-
* or classes.
|
|
20
|
-
*
|
|
21
|
-
* @usageNotes
|
|
22
|
-
* Guards can also be set up globally for all controllers and routes
|
|
23
|
-
* using `app.useGlobalGuards()`.
|
|
24
|
-
*
|
|
25
|
-
* @publicApi
|
|
26
|
-
*/
|
|
27
|
-
function UseGuards(...guards) {
|
|
28
|
-
return (target, key, descriptor) => {
|
|
29
|
-
const isGuardValid = (guard) => guard && ((0, shared_helper_1.isFunction)(guard) || (0, shared_helper_1.isFunction)(guard.canActivate));
|
|
30
|
-
if (descriptor) {
|
|
31
|
-
(0, validate_each_helper_1.validateEach)(target.constructor, guards, isGuardValid, "@UseGuards", "guard");
|
|
32
|
-
(0, extends_metadata_helper_1.extendArrayMetadata)(constants_1.GUARDS_METADATA, guards, descriptor.value);
|
|
33
|
-
return descriptor;
|
|
34
|
-
}
|
|
35
|
-
(0, validate_each_helper_1.validateEach)(target, guards, isGuardValid, "@UseGuards", "guard");
|
|
36
|
-
(0, extends_metadata_helper_1.extendArrayMetadata)(constants_1.GUARDS_METADATA, guards, target);
|
|
37
|
-
return target;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.UseGuards = UseGuards;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { VenokInterceptor } from "@venok/core/interfaces/features/interceptor.interface";
|
|
2
|
-
/**
|
|
3
|
-
* Decorator that binds interceptors to the scope of the provider or method,
|
|
4
|
-
* depending on its context.
|
|
5
|
-
*
|
|
6
|
-
* When `@UseInterceptors` is used at the controller level, the interceptor will
|
|
7
|
-
* be applied to every handler (method) in the provider.
|
|
8
|
-
*
|
|
9
|
-
* When `@UseInterceptors` is used at the individual handler level, the interceptor
|
|
10
|
-
* will apply only to that specific method.
|
|
11
|
-
*
|
|
12
|
-
* @param interceptors a single interceptor instance or class, or a list of
|
|
13
|
-
* interceptor instances or classes.
|
|
14
|
-
*
|
|
15
|
-
* @usageNotes
|
|
16
|
-
* Interceptors can also be set up globally for all controllers and routes
|
|
17
|
-
* using `app.useGlobalInterceptors()`.
|
|
18
|
-
*
|
|
19
|
-
* @publicApi
|
|
20
|
-
*/
|
|
21
|
-
export declare function UseInterceptors(...interceptors: (VenokInterceptor | Function)[]): MethodDecorator & ClassDecorator;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UseInterceptors = void 0;
|
|
4
|
-
const shared_helper_1 = require("@venok/core/helpers/shared.helper");
|
|
5
|
-
const constants_1 = require("@venok/core/constants");
|
|
6
|
-
const validate_each_helper_1 = require("@venok/core/helpers/validate-each.helper");
|
|
7
|
-
const extends_metadata_helper_1 = require("@venok/core/helpers/extends-metadata.helper");
|
|
8
|
-
/**
|
|
9
|
-
* Decorator that binds interceptors to the scope of the provider or method,
|
|
10
|
-
* depending on its context.
|
|
11
|
-
*
|
|
12
|
-
* When `@UseInterceptors` is used at the controller level, the interceptor will
|
|
13
|
-
* be applied to every handler (method) in the provider.
|
|
14
|
-
*
|
|
15
|
-
* When `@UseInterceptors` is used at the individual handler level, the interceptor
|
|
16
|
-
* will apply only to that specific method.
|
|
17
|
-
*
|
|
18
|
-
* @param interceptors a single interceptor instance or class, or a list of
|
|
19
|
-
* interceptor instances or classes.
|
|
20
|
-
*
|
|
21
|
-
* @usageNotes
|
|
22
|
-
* Interceptors can also be set up globally for all controllers and routes
|
|
23
|
-
* using `app.useGlobalInterceptors()`.
|
|
24
|
-
*
|
|
25
|
-
* @publicApi
|
|
26
|
-
*/
|
|
27
|
-
function UseInterceptors(...interceptors) {
|
|
28
|
-
return (target, key, descriptor) => {
|
|
29
|
-
const isInterceptorValid = (interceptor) => interceptor && ((0, shared_helper_1.isFunction)(interceptor) || (0, shared_helper_1.isFunction)(interceptor.intercept));
|
|
30
|
-
if (descriptor) {
|
|
31
|
-
(0, validate_each_helper_1.validateEach)(target.constructor, interceptors, isInterceptorValid, "@UseInterceptors", "interceptor");
|
|
32
|
-
(0, extends_metadata_helper_1.extendArrayMetadata)(constants_1.INTERCEPTORS_METADATA, interceptors, descriptor.value);
|
|
33
|
-
return descriptor;
|
|
34
|
-
}
|
|
35
|
-
(0, validate_each_helper_1.validateEach)(target, interceptors, isInterceptorValid, "@UseInterceptors", "interceptor");
|
|
36
|
-
(0, extends_metadata_helper_1.extendArrayMetadata)(constants_1.INTERCEPTORS_METADATA, interceptors, target);
|
|
37
|
-
return target;
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
exports.UseInterceptors = UseInterceptors;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from "@venok/core/interfaces/features/pipes.interface";
|
|
2
|
-
/**
|
|
3
|
-
* Decorator that binds pipes to the scope of the provider or method,
|
|
4
|
-
* depending on its context.
|
|
5
|
-
*
|
|
6
|
-
* When `@UsePipes` is used at the controller level, the pipe will be
|
|
7
|
-
* applied to every handler (method) in the provider.
|
|
8
|
-
*
|
|
9
|
-
* When `@UsePipes` is used at the individual handler level, the pipe
|
|
10
|
-
* will apply only to that specific method.
|
|
11
|
-
*
|
|
12
|
-
* @param pipes a single pipe instance or class, or a list of pipe instances or
|
|
13
|
-
* classes.
|
|
14
|
-
*
|
|
15
|
-
* @usageNotes
|
|
16
|
-
* Pipes can also be set up globally for all controllers and routes
|
|
17
|
-
* using `app.useGlobalPipes()`.
|
|
18
|
-
*
|
|
19
|
-
* @publicApi
|
|
20
|
-
*/
|
|
21
|
-
export declare function UsePipes(...pipes: (PipeTransform | Function)[]): ClassDecorator & MethodDecorator;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UsePipes = void 0;
|
|
4
|
-
const shared_helper_1 = require("@venok/core/helpers/shared.helper");
|
|
5
|
-
const constants_1 = require("@venok/core/constants");
|
|
6
|
-
const extends_metadata_helper_1 = require("@venok/core/helpers/extends-metadata.helper");
|
|
7
|
-
const validate_each_helper_1 = require("@venok/core/helpers/validate-each.helper");
|
|
8
|
-
/**
|
|
9
|
-
* Decorator that binds pipes to the scope of the provider or method,
|
|
10
|
-
* depending on its context.
|
|
11
|
-
*
|
|
12
|
-
* When `@UsePipes` is used at the controller level, the pipe will be
|
|
13
|
-
* applied to every handler (method) in the provider.
|
|
14
|
-
*
|
|
15
|
-
* When `@UsePipes` is used at the individual handler level, the pipe
|
|
16
|
-
* will apply only to that specific method.
|
|
17
|
-
*
|
|
18
|
-
* @param pipes a single pipe instance or class, or a list of pipe instances or
|
|
19
|
-
* classes.
|
|
20
|
-
*
|
|
21
|
-
* @usageNotes
|
|
22
|
-
* Pipes can also be set up globally for all controllers and routes
|
|
23
|
-
* using `app.useGlobalPipes()`.
|
|
24
|
-
*
|
|
25
|
-
* @publicApi
|
|
26
|
-
*/
|
|
27
|
-
function UsePipes(...pipes) {
|
|
28
|
-
return (target, key, descriptor) => {
|
|
29
|
-
const isPipeValid = (pipe) => pipe && ((0, shared_helper_1.isFunction)(pipe) || (0, shared_helper_1.isFunction)(pipe.transform));
|
|
30
|
-
if (descriptor) {
|
|
31
|
-
(0, extends_metadata_helper_1.extendArrayMetadata)(constants_1.PIPES_METADATA, pipes, descriptor.value);
|
|
32
|
-
return descriptor;
|
|
33
|
-
}
|
|
34
|
-
(0, validate_each_helper_1.validateEach)(target, pipes, isPipeValid, "@UsePipes", "pipe");
|
|
35
|
-
(0, extends_metadata_helper_1.extendArrayMetadata)(constants_1.PIPES_METADATA, pipes, target);
|
|
36
|
-
return target;
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
exports.UsePipes = UsePipes;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Type } from "@venok/core/interfaces";
|
|
2
|
-
import { ModulesContainer } from "@venok/core/injector/module/container";
|
|
3
|
-
import { InstanceWrapper } from "@venok/core/injector/instance/wrapper";
|
|
4
|
-
export declare class DiscoverableMetaHostCollection {
|
|
5
|
-
/**
|
|
6
|
-
* A map of class references to metadata keys.
|
|
7
|
-
*/
|
|
8
|
-
static readonly metaHostLinks: Map<Function | Type<any>, string>;
|
|
9
|
-
/**
|
|
10
|
-
* A map of metadata keys to instance wrappers (providers) with the corresponding metadata key.
|
|
11
|
-
* The map is weakly referenced by the modules container (unique per application).
|
|
12
|
-
*/
|
|
13
|
-
private static readonly providersByMetaKey;
|
|
14
|
-
/**
|
|
15
|
-
* Adds a link between a class reference and a metadata key.
|
|
16
|
-
* @param target The class reference.
|
|
17
|
-
* @param metadataKey The metadata key.
|
|
18
|
-
*/
|
|
19
|
-
static addClassMetaHostLink(target: Type | Function, metadataKey: string): void;
|
|
20
|
-
/**
|
|
21
|
-
* Inspects a provider instance wrapper and adds it to the collection of providers
|
|
22
|
-
* if it has a metadata key.
|
|
23
|
-
* @param hostContainerRef A reference to the module's container.
|
|
24
|
-
* @param instanceWrapper A provider instance wrapper.
|
|
25
|
-
* @returns void
|
|
26
|
-
*/
|
|
27
|
-
static inspectProvider(hostContainerRef: ModulesContainer, instanceWrapper: InstanceWrapper): void;
|
|
28
|
-
static insertByMetaKey(metaKey: string, instanceWrapper: InstanceWrapper, collection: Map<string, Set<InstanceWrapper>>): void;
|
|
29
|
-
static getProvidersByMetaKey(hostContainerRef: ModulesContainer, metaKey: string): Set<InstanceWrapper>;
|
|
30
|
-
private static inspectInstanceWrapper;
|
|
31
|
-
private static getMetaKeyByInstanceWrapper;
|
|
32
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DiscoverableMetaHostCollection = void 0;
|
|
4
|
-
class DiscoverableMetaHostCollection {
|
|
5
|
-
/**
|
|
6
|
-
* Adds a link between a class reference and a metadata key.
|
|
7
|
-
* @param target The class reference.
|
|
8
|
-
* @param metadataKey The metadata key.
|
|
9
|
-
*/
|
|
10
|
-
static addClassMetaHostLink(target, metadataKey) {
|
|
11
|
-
this.metaHostLinks.set(target, metadataKey);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Inspects a provider instance wrapper and adds it to the collection of providers
|
|
15
|
-
* if it has a metadata key.
|
|
16
|
-
* @param hostContainerRef A reference to the module's container.
|
|
17
|
-
* @param instanceWrapper A provider instance wrapper.
|
|
18
|
-
* @returns void
|
|
19
|
-
*/
|
|
20
|
-
static inspectProvider(hostContainerRef, instanceWrapper) {
|
|
21
|
-
return this.inspectInstanceWrapper(hostContainerRef, instanceWrapper, this.providersByMetaKey);
|
|
22
|
-
}
|
|
23
|
-
static insertByMetaKey(metaKey, instanceWrapper, collection) {
|
|
24
|
-
if (collection.has(metaKey)) {
|
|
25
|
-
const wrappers = collection.get(metaKey);
|
|
26
|
-
wrappers.add(instanceWrapper);
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
const wrappers = new Set();
|
|
30
|
-
wrappers.add(instanceWrapper);
|
|
31
|
-
collection.set(metaKey, wrappers);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
static getProvidersByMetaKey(hostContainerRef, metaKey) {
|
|
35
|
-
const wrappersByMetaKey = this.providersByMetaKey.get(hostContainerRef);
|
|
36
|
-
return wrappersByMetaKey.get(metaKey);
|
|
37
|
-
}
|
|
38
|
-
static inspectInstanceWrapper(hostContainerRef, instanceWrapper, wrapperByMetaKeyMap) {
|
|
39
|
-
const metaKey = DiscoverableMetaHostCollection.getMetaKeyByInstanceWrapper(instanceWrapper);
|
|
40
|
-
if (!metaKey) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
let collection;
|
|
44
|
-
if (wrapperByMetaKeyMap.has(hostContainerRef)) {
|
|
45
|
-
collection = wrapperByMetaKeyMap.get(hostContainerRef);
|
|
46
|
-
}
|
|
47
|
-
else {
|
|
48
|
-
collection = new Map();
|
|
49
|
-
wrapperByMetaKeyMap.set(hostContainerRef, collection);
|
|
50
|
-
}
|
|
51
|
-
this.insertByMetaKey(metaKey, instanceWrapper, collection);
|
|
52
|
-
}
|
|
53
|
-
static getMetaKeyByInstanceWrapper(instanceWrapper) {
|
|
54
|
-
return this.metaHostLinks.get(
|
|
55
|
-
// NOTE: Regarding the ternary statement below,
|
|
56
|
-
// - The condition `!wrapper.metatype` is needed because when we use `useValue`
|
|
57
|
-
// the value of `wrapper.metatype` will be `null`.
|
|
58
|
-
// - The condition `wrapper.inject` is needed here because when we use
|
|
59
|
-
// `useFactory`, the value of `wrapper.metatype` will be the supplied
|
|
60
|
-
// factory function.
|
|
61
|
-
// For both cases, we should use `wrapper.instance.constructor` instead
|
|
62
|
-
// of `wrapper.metatype` to resolve processor's class properly.
|
|
63
|
-
// But since calling `wrapper.instance` could degrade overall performance
|
|
64
|
-
// we must defer it as much we can.
|
|
65
|
-
instanceWrapper.metatype || instanceWrapper.inject
|
|
66
|
-
? instanceWrapper.instance?.constructor ?? instanceWrapper.metatype
|
|
67
|
-
: instanceWrapper.metatype);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
exports.DiscoverableMetaHostCollection = DiscoverableMetaHostCollection;
|
|
71
|
-
/**
|
|
72
|
-
* A map of class references to metadata keys.
|
|
73
|
-
*/
|
|
74
|
-
DiscoverableMetaHostCollection.metaHostLinks = new Map();
|
|
75
|
-
/**
|
|
76
|
-
* A map of metadata keys to instance wrappers (providers) with the corresponding metadata key.
|
|
77
|
-
* The map is weakly referenced by the modules container (unique per application).
|
|
78
|
-
*/
|
|
79
|
-
DiscoverableMetaHostCollection.providersByMetaKey = new WeakMap();
|