inversify 6.0.1 → 6.0.3
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/.nyc_output/c29b2307-4e95-47d0-b220-9efcfa7ee49f.json +1 -0
- package/.nyc_output/processinfo/c29b2307-4e95-47d0-b220-9efcfa7ee49f.json +1 -0
- package/.nyc_output/processinfo/index.json +1 -1
- package/CHANGELOG.md +33 -3
- package/README.md +27 -24
- package/amd/annotation/decorator_utils.js +14 -12
- package/amd/annotation/inject.js +5 -2
- package/amd/annotation/inject_base.js +2 -4
- package/amd/annotation/injectable.js +6 -4
- package/amd/annotation/lazy_service_identifier.js +6 -7
- package/amd/annotation/multi_inject.js +5 -2
- package/amd/annotation/named.js +6 -4
- package/amd/annotation/optional.js +6 -4
- package/amd/annotation/post_construct.js +5 -2
- package/amd/annotation/pre_destroy.js +5 -2
- package/amd/annotation/property_event_decorator.js +1 -3
- package/amd/annotation/tagged.js +1 -3
- package/amd/annotation/target_name.js +6 -4
- package/amd/annotation/unmanaged.js +6 -4
- package/amd/bindings/binding.js +0 -1
- package/amd/bindings/binding_count.js +1 -3
- package/amd/constants/error_msgs.js +52 -43
- package/amd/constants/literal_types.js +14 -15
- package/amd/constants/metadata_keys.js +12 -13
- package/amd/container/container.js +27 -18
- package/amd/container/container_module.js +0 -1
- package/amd/container/container_snapshot.js +0 -1
- package/amd/container/lookup.js +5 -2
- package/amd/container/module_activation_store.js +0 -1
- package/amd/interfaces/interfaces.js +1 -3
- package/amd/inversify.js +9 -5
- package/amd/planning/context.js +0 -1
- package/amd/planning/metadata.js +7 -4
- package/amd/planning/metadata_reader.js +5 -2
- package/amd/planning/plan.js +0 -1
- package/amd/planning/planner.js +13 -11
- package/amd/planning/queryable_string.js +3 -4
- package/amd/planning/reflection_utils.js +15 -12
- package/amd/planning/request.js +0 -1
- package/amd/planning/target.js +6 -3
- package/amd/resolution/instantiation.js +19 -13
- package/amd/resolution/resolver.js +10 -8
- package/amd/scope/scope.js +8 -9
- package/amd/syntax/binding_in_syntax.js +0 -1
- package/amd/syntax/binding_in_when_on_syntax.js +0 -1
- package/amd/syntax/binding_on_syntax.js +0 -1
- package/amd/syntax/binding_to_syntax.js +6 -3
- package/amd/syntax/binding_when_on_syntax.js +0 -1
- package/amd/syntax/binding_when_syntax.js +0 -1
- package/amd/syntax/constraint_helpers.js +6 -3
- package/amd/utils/async.js +2 -4
- package/amd/utils/binding_utils.js +9 -6
- package/amd/utils/clonable.js +1 -3
- package/amd/utils/exceptions.js +9 -6
- package/amd/utils/factory_type.js +1 -2
- package/amd/utils/id.js +1 -3
- package/amd/utils/js.js +1 -3
- package/amd/utils/serialization.js +26 -24
- package/es/annotation/decorator_utils.js +8 -9
- package/es/annotation/inject.js +2 -3
- package/es/annotation/inject_base.js +4 -5
- package/es/annotation/injectable.js +2 -3
- package/es/annotation/lazy_service_identifier.js +5 -6
- package/es/annotation/multi_inject.js +2 -3
- package/es/annotation/named.js +3 -4
- package/es/annotation/optional.js +3 -4
- package/es/annotation/post_construct.js +3 -4
- package/es/annotation/pre_destroy.js +3 -4
- package/es/annotation/property_event_decorator.js +1 -2
- package/es/annotation/tagged.js +0 -1
- package/es/annotation/target_name.js +0 -1
- package/es/annotation/unmanaged.js +3 -4
- package/es/bindings/binding.js +2 -3
- package/es/bindings/binding_count.js +1 -3
- package/es/constants/error_msgs.js +52 -43
- package/es/constants/literal_types.js +14 -15
- package/es/constants/metadata_keys.js +12 -13
- package/es/container/container.js +36 -31
- package/es/container/container_module.js +1 -2
- package/es/container/container_snapshot.js +0 -1
- package/es/container/lookup.js +2 -3
- package/es/container/module_activation_store.js +1 -2
- package/es/interfaces/interfaces.js +0 -1
- package/es/inversify.js +24 -24
- package/es/planning/context.js +1 -2
- package/es/planning/metadata.js +3 -4
- package/es/planning/metadata_reader.js +1 -2
- package/es/planning/plan.js +0 -1
- package/es/planning/planner.js +17 -18
- package/es/planning/queryable_string.js +3 -4
- package/es/planning/reflection_utils.js +13 -14
- package/es/planning/request.js +1 -2
- package/es/planning/target.js +1 -2
- package/es/resolution/instantiation.js +17 -14
- package/es/resolution/resolver.js +12 -13
- package/es/scope/scope.js +5 -6
- package/es/syntax/binding_in_syntax.js +2 -3
- package/es/syntax/binding_in_when_on_syntax.js +3 -4
- package/es/syntax/binding_on_syntax.js +1 -2
- package/es/syntax/binding_to_syntax.js +1 -2
- package/es/syntax/binding_when_on_syntax.js +2 -3
- package/es/syntax/binding_when_syntax.js +2 -3
- package/es/syntax/constraint_helpers.js +3 -4
- package/es/utils/async.js +0 -1
- package/es/utils/binding_utils.js +6 -7
- package/es/utils/clonable.js +0 -1
- package/es/utils/exceptions.js +3 -4
- package/es/utils/factory_type.js +0 -1
- package/es/utils/id.js +0 -1
- package/es/utils/js.js +0 -1
- package/es/utils/serialization.js +16 -17
- package/es6/annotation/decorator_utils.js +12 -10
- package/es6/annotation/inject.js +5 -2
- package/es6/annotation/inject_base.js +2 -4
- package/es6/annotation/injectable.js +6 -4
- package/es6/annotation/lazy_service_identifier.js +3 -4
- package/es6/annotation/multi_inject.js +5 -2
- package/es6/annotation/named.js +6 -4
- package/es6/annotation/optional.js +6 -4
- package/es6/annotation/post_construct.js +5 -2
- package/es6/annotation/pre_destroy.js +5 -2
- package/es6/annotation/property_event_decorator.js +1 -3
- package/es6/annotation/tagged.js +1 -3
- package/es6/annotation/target_name.js +6 -4
- package/es6/annotation/unmanaged.js +6 -4
- package/es6/bindings/binding.js +0 -1
- package/es6/bindings/binding_count.js +1 -3
- package/es6/constants/error_msgs.js +46 -38
- package/es6/constants/literal_types.js +14 -15
- package/es6/constants/metadata_keys.js +12 -13
- package/es6/container/container.js +35 -27
- package/es6/container/container_module.js +0 -1
- package/es6/container/container_snapshot.js +0 -1
- package/es6/container/lookup.js +5 -2
- package/es6/container/module_activation_store.js +0 -1
- package/es6/interfaces/interfaces.js +1 -3
- package/es6/inversify.js +9 -4
- package/es6/planning/context.js +0 -1
- package/es6/planning/metadata.js +5 -2
- package/es6/planning/metadata_reader.js +5 -2
- package/es6/planning/plan.js +0 -1
- package/es6/planning/planner.js +12 -10
- package/es6/planning/queryable_string.js +3 -4
- package/es6/planning/reflection_utils.js +12 -9
- package/es6/planning/request.js +0 -1
- package/es6/planning/target.js +6 -3
- package/es6/resolution/instantiation.js +15 -9
- package/es6/resolution/resolver.js +7 -5
- package/es6/scope/scope.js +5 -6
- package/es6/syntax/binding_in_syntax.js +0 -1
- package/es6/syntax/binding_in_when_on_syntax.js +0 -1
- package/es6/syntax/binding_on_syntax.js +0 -1
- package/es6/syntax/binding_to_syntax.js +5 -2
- package/es6/syntax/binding_when_on_syntax.js +0 -1
- package/es6/syntax/binding_when_syntax.js +0 -1
- package/es6/syntax/constraint_helpers.js +6 -3
- package/es6/utils/async.js +2 -4
- package/es6/utils/binding_utils.js +7 -4
- package/es6/utils/clonable.js +1 -3
- package/es6/utils/exceptions.js +9 -6
- package/es6/utils/factory_type.js +1 -2
- package/es6/utils/id.js +1 -3
- package/es6/utils/js.js +1 -3
- package/es6/utils/serialization.js +20 -18
- package/lib/annotation/decorator_utils.d.ts +5 -5
- package/lib/annotation/decorator_utils.js +14 -12
- package/lib/annotation/inject.d.ts +1 -1
- package/lib/annotation/inject.js +5 -2
- package/lib/annotation/inject_base.d.ts +3 -3
- package/lib/annotation/inject_base.js +2 -4
- package/lib/annotation/injectable.d.ts +1 -1
- package/lib/annotation/injectable.js +6 -4
- package/lib/annotation/lazy_service_identifier.d.ts +3 -3
- package/lib/annotation/lazy_service_identifier.js +6 -7
- package/lib/annotation/multi_inject.d.ts +1 -1
- package/lib/annotation/multi_inject.js +5 -2
- package/lib/annotation/named.d.ts +1 -1
- package/lib/annotation/named.js +6 -4
- package/lib/annotation/optional.d.ts +1 -1
- package/lib/annotation/optional.js +6 -4
- package/lib/annotation/post_construct.js +5 -2
- package/lib/annotation/pre_destroy.js +5 -2
- package/lib/annotation/property_event_decorator.js +1 -3
- package/lib/annotation/tagged.d.ts +1 -1
- package/lib/annotation/tagged.js +1 -3
- package/lib/annotation/target_name.d.ts +1 -1
- package/lib/annotation/target_name.js +6 -4
- package/lib/annotation/unmanaged.d.ts +2 -2
- package/lib/annotation/unmanaged.js +6 -4
- package/lib/bindings/binding.d.ts +2 -2
- package/lib/bindings/binding.js +0 -1
- package/lib/bindings/binding_count.d.ts +1 -2
- package/lib/bindings/binding_count.js +1 -3
- package/lib/constants/error_msgs.js +52 -43
- package/lib/constants/literal_types.d.ts +1 -1
- package/lib/constants/literal_types.js +14 -15
- package/lib/constants/metadata_keys.js +12 -13
- package/lib/container/container.d.ts +2 -2
- package/lib/container/container.js +27 -18
- package/lib/container/container_module.d.ts +1 -1
- package/lib/container/container_module.js +0 -1
- package/lib/container/container_snapshot.d.ts +1 -1
- package/lib/container/container_snapshot.js +0 -1
- package/lib/container/lookup.d.ts +1 -1
- package/lib/container/lookup.js +5 -2
- package/lib/container/module_activation_store.d.ts +1 -1
- package/lib/container/module_activation_store.js +0 -1
- package/lib/interfaces/interfaces.d.ts +23 -22
- package/lib/interfaces/interfaces.js +1 -3
- package/lib/inversify.d.ts +24 -23
- package/lib/inversify.js +9 -4
- package/lib/planning/context.d.ts +1 -1
- package/lib/planning/context.js +0 -1
- package/lib/planning/metadata.d.ts +1 -1
- package/lib/planning/metadata.js +7 -4
- package/lib/planning/metadata_reader.d.ts +1 -1
- package/lib/planning/metadata_reader.js +5 -2
- package/lib/planning/plan.d.ts +1 -1
- package/lib/planning/plan.js +0 -1
- package/lib/planning/planner.d.ts +1 -1
- package/lib/planning/planner.js +13 -11
- package/lib/planning/queryable_string.d.ts +1 -1
- package/lib/planning/queryable_string.js +3 -4
- package/lib/planning/reflection_utils.d.ts +2 -2
- package/lib/planning/reflection_utils.js +15 -12
- package/lib/planning/request.d.ts +1 -1
- package/lib/planning/request.js +0 -1
- package/lib/planning/target.js +6 -3
- package/lib/resolution/instantiation.d.ts +1 -1
- package/lib/resolution/instantiation.js +19 -13
- package/lib/resolution/resolver.d.ts +1 -1
- package/lib/resolution/resolver.js +10 -8
- package/lib/scope/scope.d.ts +1 -1
- package/lib/scope/scope.js +8 -9
- package/lib/syntax/binding_in_syntax.d.ts +1 -1
- package/lib/syntax/binding_in_syntax.js +0 -1
- package/lib/syntax/binding_in_when_on_syntax.d.ts +1 -1
- package/lib/syntax/binding_in_when_on_syntax.js +0 -1
- package/lib/syntax/binding_on_syntax.d.ts +1 -1
- package/lib/syntax/binding_on_syntax.js +0 -1
- package/lib/syntax/binding_to_syntax.d.ts +1 -1
- package/lib/syntax/binding_to_syntax.js +6 -3
- package/lib/syntax/binding_when_on_syntax.d.ts +1 -1
- package/lib/syntax/binding_when_on_syntax.js +0 -1
- package/lib/syntax/binding_when_syntax.d.ts +1 -1
- package/lib/syntax/binding_when_syntax.js +0 -1
- package/lib/syntax/constraint_helpers.d.ts +1 -1
- package/lib/syntax/constraint_helpers.js +6 -3
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/async.js +2 -4
- package/lib/utils/binding_utils.d.ts +1 -1
- package/lib/utils/binding_utils.js +9 -6
- package/lib/utils/clonable.d.ts +1 -1
- package/lib/utils/clonable.js +1 -3
- package/lib/utils/exceptions.d.ts +1 -1
- package/lib/utils/exceptions.js +9 -6
- package/lib/utils/factory_type.js +1 -2
- package/lib/utils/id.js +1 -3
- package/lib/utils/js.js +1 -3
- package/lib/utils/serialization.d.ts +1 -1
- package/lib/utils/serialization.js +26 -24
- package/package.json +46 -61
- package/.auditignore +0 -2
- package/.nyc_output/c19faffc-964b-4370-81a6-9b4942f3c35e.json +0 -1
- package/.nyc_output/processinfo/c19faffc-964b-4370-81a6-9b4942f3c35e.json +0 -1
- package/CODE_OF_CONDUCT.md +0 -46
- package/amd/annotation/decorator_utils.js.map +0 -1
- package/amd/annotation/inject.js.map +0 -1
- package/amd/annotation/inject_base.js.map +0 -1
- package/amd/annotation/injectable.js.map +0 -1
- package/amd/annotation/lazy_service_identifier.js.map +0 -1
- package/amd/annotation/multi_inject.js.map +0 -1
- package/amd/annotation/named.js.map +0 -1
- package/amd/annotation/optional.js.map +0 -1
- package/amd/annotation/post_construct.js.map +0 -1
- package/amd/annotation/pre_destroy.js.map +0 -1
- package/amd/annotation/property_event_decorator.js.map +0 -1
- package/amd/annotation/tagged.js.map +0 -1
- package/amd/annotation/target_name.js.map +0 -1
- package/amd/annotation/unmanaged.js.map +0 -1
- package/amd/bindings/binding.js.map +0 -1
- package/amd/bindings/binding_count.js.map +0 -1
- package/amd/constants/error_msgs.js.map +0 -1
- package/amd/constants/literal_types.js.map +0 -1
- package/amd/constants/metadata_keys.js.map +0 -1
- package/amd/container/container.js.map +0 -1
- package/amd/container/container_module.js.map +0 -1
- package/amd/container/container_snapshot.js.map +0 -1
- package/amd/container/lookup.js.map +0 -1
- package/amd/container/module_activation_store.js.map +0 -1
- package/amd/interfaces/interfaces.js.map +0 -1
- package/amd/inversify.js.map +0 -1
- package/amd/planning/context.js.map +0 -1
- package/amd/planning/metadata.js.map +0 -1
- package/amd/planning/metadata_reader.js.map +0 -1
- package/amd/planning/plan.js.map +0 -1
- package/amd/planning/planner.js.map +0 -1
- package/amd/planning/queryable_string.js.map +0 -1
- package/amd/planning/reflection_utils.js.map +0 -1
- package/amd/planning/request.js.map +0 -1
- package/amd/planning/target.js.map +0 -1
- package/amd/resolution/instantiation.js.map +0 -1
- package/amd/resolution/resolver.js.map +0 -1
- package/amd/scope/scope.js.map +0 -1
- package/amd/syntax/binding_in_syntax.js.map +0 -1
- package/amd/syntax/binding_in_when_on_syntax.js.map +0 -1
- package/amd/syntax/binding_on_syntax.js.map +0 -1
- package/amd/syntax/binding_to_syntax.js.map +0 -1
- package/amd/syntax/binding_when_on_syntax.js.map +0 -1
- package/amd/syntax/binding_when_syntax.js.map +0 -1
- package/amd/syntax/constraint_helpers.js.map +0 -1
- package/amd/utils/async.js.map +0 -1
- package/amd/utils/binding_utils.js.map +0 -1
- package/amd/utils/clonable.js.map +0 -1
- package/amd/utils/exceptions.js.map +0 -1
- package/amd/utils/factory_type.js.map +0 -1
- package/amd/utils/id.js.map +0 -1
- package/amd/utils/js.js.map +0 -1
- package/amd/utils/serialization.js.map +0 -1
- package/es/annotation/decorator_utils.js.map +0 -1
- package/es/annotation/inject.js.map +0 -1
- package/es/annotation/inject_base.js.map +0 -1
- package/es/annotation/injectable.js.map +0 -1
- package/es/annotation/lazy_service_identifier.js.map +0 -1
- package/es/annotation/multi_inject.js.map +0 -1
- package/es/annotation/named.js.map +0 -1
- package/es/annotation/optional.js.map +0 -1
- package/es/annotation/post_construct.js.map +0 -1
- package/es/annotation/pre_destroy.js.map +0 -1
- package/es/annotation/property_event_decorator.js.map +0 -1
- package/es/annotation/tagged.js.map +0 -1
- package/es/annotation/target_name.js.map +0 -1
- package/es/annotation/unmanaged.js.map +0 -1
- package/es/bindings/binding.js.map +0 -1
- package/es/bindings/binding_count.js.map +0 -1
- package/es/constants/error_msgs.js.map +0 -1
- package/es/constants/literal_types.js.map +0 -1
- package/es/constants/metadata_keys.js.map +0 -1
- package/es/container/container.js.map +0 -1
- package/es/container/container_module.js.map +0 -1
- package/es/container/container_snapshot.js.map +0 -1
- package/es/container/lookup.js.map +0 -1
- package/es/container/module_activation_store.js.map +0 -1
- package/es/interfaces/interfaces.js.map +0 -1
- package/es/inversify.js.map +0 -1
- package/es/planning/context.js.map +0 -1
- package/es/planning/metadata.js.map +0 -1
- package/es/planning/metadata_reader.js.map +0 -1
- package/es/planning/plan.js.map +0 -1
- package/es/planning/planner.js.map +0 -1
- package/es/planning/queryable_string.js.map +0 -1
- package/es/planning/reflection_utils.js.map +0 -1
- package/es/planning/request.js.map +0 -1
- package/es/planning/target.js.map +0 -1
- package/es/resolution/instantiation.js.map +0 -1
- package/es/resolution/resolver.js.map +0 -1
- package/es/scope/scope.js.map +0 -1
- package/es/syntax/binding_in_syntax.js.map +0 -1
- package/es/syntax/binding_in_when_on_syntax.js.map +0 -1
- package/es/syntax/binding_on_syntax.js.map +0 -1
- package/es/syntax/binding_to_syntax.js.map +0 -1
- package/es/syntax/binding_when_on_syntax.js.map +0 -1
- package/es/syntax/binding_when_syntax.js.map +0 -1
- package/es/syntax/constraint_helpers.js.map +0 -1
- package/es/utils/async.js.map +0 -1
- package/es/utils/binding_utils.js.map +0 -1
- package/es/utils/clonable.js.map +0 -1
- package/es/utils/exceptions.js.map +0 -1
- package/es/utils/factory_type.js.map +0 -1
- package/es/utils/id.js.map +0 -1
- package/es/utils/js.js.map +0 -1
- package/es/utils/serialization.js.map +0 -1
- package/es6/annotation/decorator_utils.js.map +0 -1
- package/es6/annotation/inject.js.map +0 -1
- package/es6/annotation/inject_base.js.map +0 -1
- package/es6/annotation/injectable.js.map +0 -1
- package/es6/annotation/lazy_service_identifier.js.map +0 -1
- package/es6/annotation/multi_inject.js.map +0 -1
- package/es6/annotation/named.js.map +0 -1
- package/es6/annotation/optional.js.map +0 -1
- package/es6/annotation/post_construct.js.map +0 -1
- package/es6/annotation/pre_destroy.js.map +0 -1
- package/es6/annotation/property_event_decorator.js.map +0 -1
- package/es6/annotation/tagged.js.map +0 -1
- package/es6/annotation/target_name.js.map +0 -1
- package/es6/annotation/unmanaged.js.map +0 -1
- package/es6/bindings/binding.js.map +0 -1
- package/es6/bindings/binding_count.js.map +0 -1
- package/es6/constants/error_msgs.js.map +0 -1
- package/es6/constants/literal_types.js.map +0 -1
- package/es6/constants/metadata_keys.js.map +0 -1
- package/es6/container/container.js.map +0 -1
- package/es6/container/container_module.js.map +0 -1
- package/es6/container/container_snapshot.js.map +0 -1
- package/es6/container/lookup.js.map +0 -1
- package/es6/container/module_activation_store.js.map +0 -1
- package/es6/interfaces/interfaces.js.map +0 -1
- package/es6/inversify.js.map +0 -1
- package/es6/planning/context.js.map +0 -1
- package/es6/planning/metadata.js.map +0 -1
- package/es6/planning/metadata_reader.js.map +0 -1
- package/es6/planning/plan.js.map +0 -1
- package/es6/planning/planner.js.map +0 -1
- package/es6/planning/queryable_string.js.map +0 -1
- package/es6/planning/reflection_utils.js.map +0 -1
- package/es6/planning/request.js.map +0 -1
- package/es6/planning/target.js.map +0 -1
- package/es6/resolution/instantiation.js.map +0 -1
- package/es6/resolution/resolver.js.map +0 -1
- package/es6/scope/scope.js.map +0 -1
- package/es6/syntax/binding_in_syntax.js.map +0 -1
- package/es6/syntax/binding_in_when_on_syntax.js.map +0 -1
- package/es6/syntax/binding_on_syntax.js.map +0 -1
- package/es6/syntax/binding_to_syntax.js.map +0 -1
- package/es6/syntax/binding_when_on_syntax.js.map +0 -1
- package/es6/syntax/binding_when_syntax.js.map +0 -1
- package/es6/syntax/constraint_helpers.js.map +0 -1
- package/es6/utils/async.js.map +0 -1
- package/es6/utils/binding_utils.js.map +0 -1
- package/es6/utils/clonable.js.map +0 -1
- package/es6/utils/exceptions.js.map +0 -1
- package/es6/utils/factory_type.js.map +0 -1
- package/es6/utils/id.js.map +0 -1
- package/es6/utils/js.js.map +0 -1
- package/es6/utils/serialization.js.map +0 -1
- package/lib/annotation/decorator_utils.js.map +0 -1
- package/lib/annotation/inject.js.map +0 -1
- package/lib/annotation/inject_base.js.map +0 -1
- package/lib/annotation/injectable.js.map +0 -1
- package/lib/annotation/lazy_service_identifier.js.map +0 -1
- package/lib/annotation/multi_inject.js.map +0 -1
- package/lib/annotation/named.js.map +0 -1
- package/lib/annotation/optional.js.map +0 -1
- package/lib/annotation/post_construct.js.map +0 -1
- package/lib/annotation/pre_destroy.js.map +0 -1
- package/lib/annotation/property_event_decorator.js.map +0 -1
- package/lib/annotation/tagged.js.map +0 -1
- package/lib/annotation/target_name.js.map +0 -1
- package/lib/annotation/unmanaged.js.map +0 -1
- package/lib/bindings/binding.js.map +0 -1
- package/lib/bindings/binding_count.js.map +0 -1
- package/lib/constants/error_msgs.js.map +0 -1
- package/lib/constants/literal_types.js.map +0 -1
- package/lib/constants/metadata_keys.js.map +0 -1
- package/lib/container/container.js.map +0 -1
- package/lib/container/container_module.js.map +0 -1
- package/lib/container/container_snapshot.js.map +0 -1
- package/lib/container/lookup.js.map +0 -1
- package/lib/container/module_activation_store.js.map +0 -1
- package/lib/interfaces/interfaces.js.map +0 -1
- package/lib/inversify.js.map +0 -1
- package/lib/planning/context.js.map +0 -1
- package/lib/planning/metadata.js.map +0 -1
- package/lib/planning/metadata_reader.js.map +0 -1
- package/lib/planning/plan.js.map +0 -1
- package/lib/planning/planner.js.map +0 -1
- package/lib/planning/queryable_string.js.map +0 -1
- package/lib/planning/reflection_utils.js.map +0 -1
- package/lib/planning/request.js.map +0 -1
- package/lib/planning/target.js.map +0 -1
- package/lib/resolution/instantiation.js.map +0 -1
- package/lib/resolution/resolver.js.map +0 -1
- package/lib/scope/scope.js.map +0 -1
- package/lib/syntax/binding_in_syntax.js.map +0 -1
- package/lib/syntax/binding_in_when_on_syntax.js.map +0 -1
- package/lib/syntax/binding_on_syntax.js.map +0 -1
- package/lib/syntax/binding_to_syntax.js.map +0 -1
- package/lib/syntax/binding_when_on_syntax.js.map +0 -1
- package/lib/syntax/binding_when_syntax.js.map +0 -1
- package/lib/syntax/constraint_helpers.js.map +0 -1
- package/lib/utils/async.js.map +0 -1
- package/lib/utils/binding_utils.js.map +0 -1
- package/lib/utils/clonable.js.map +0 -1
- package/lib/utils/exceptions.js.map +0 -1
- package/lib/utils/factory_type.js.map +0 -1
- package/lib/utils/id.js.map +0 -1
- package/lib/utils/js.js.map +0 -1
- package/lib/utils/serialization.js.map +0 -1
- package/mocha.opts +0 -3
package/es/scope/scope.js
CHANGED
|
@@ -8,12 +8,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
-
return g =
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
12
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
13
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
14
|
function step(op) {
|
|
15
15
|
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
-
while (_) try {
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
17
|
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
18
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
19
|
switch (op[0]) {
|
|
@@ -34,8 +34,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
34
34
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
|
-
import { BindingScopeEnum } from
|
|
38
|
-
import { isPromise } from
|
|
37
|
+
import { BindingScopeEnum } from '../constants/literal_types';
|
|
38
|
+
import { isPromise } from '../utils/async';
|
|
39
39
|
export var tryGetFromScope = function (requestScope, binding) {
|
|
40
40
|
if ((binding.scope === BindingScopeEnum.Singleton) && binding.activated) {
|
|
41
41
|
return binding.cache;
|
|
@@ -86,4 +86,3 @@ var _saveAsyncResultToSingletonScope = function (binding, asyncResult) { return
|
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
}); };
|
|
89
|
-
//# sourceMappingURL=scope.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingScopeEnum } from
|
|
2
|
-
import { BindingWhenOnSyntax } from
|
|
1
|
+
import { BindingScopeEnum } from '../constants/literal_types';
|
|
2
|
+
import { BindingWhenOnSyntax } from './binding_when_on_syntax';
|
|
3
3
|
var BindingInSyntax = (function () {
|
|
4
4
|
function BindingInSyntax(binding) {
|
|
5
5
|
this._binding = binding;
|
|
@@ -19,4 +19,3 @@ var BindingInSyntax = (function () {
|
|
|
19
19
|
return BindingInSyntax;
|
|
20
20
|
}());
|
|
21
21
|
export { BindingInSyntax };
|
|
22
|
-
//# sourceMappingURL=binding_in_syntax.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { BindingInSyntax } from
|
|
2
|
-
import { BindingOnSyntax } from
|
|
3
|
-
import { BindingWhenSyntax } from
|
|
1
|
+
import { BindingInSyntax } from './binding_in_syntax';
|
|
2
|
+
import { BindingOnSyntax } from './binding_on_syntax';
|
|
3
|
+
import { BindingWhenSyntax } from './binding_when_syntax';
|
|
4
4
|
var BindingInWhenOnSyntax = (function () {
|
|
5
5
|
function BindingInWhenOnSyntax(binding) {
|
|
6
6
|
this._binding = binding;
|
|
@@ -71,4 +71,3 @@ var BindingInWhenOnSyntax = (function () {
|
|
|
71
71
|
return BindingInWhenOnSyntax;
|
|
72
72
|
}());
|
|
73
73
|
export { BindingInWhenOnSyntax };
|
|
74
|
-
//# sourceMappingURL=binding_in_when_on_syntax.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BindingWhenSyntax } from
|
|
1
|
+
import { BindingWhenSyntax } from './binding_when_syntax';
|
|
2
2
|
var BindingOnSyntax = (function () {
|
|
3
3
|
function BindingOnSyntax(binding) {
|
|
4
4
|
this._binding = binding;
|
|
@@ -14,4 +14,3 @@ var BindingOnSyntax = (function () {
|
|
|
14
14
|
return BindingOnSyntax;
|
|
15
15
|
}());
|
|
16
16
|
export { BindingOnSyntax };
|
|
17
|
-
//# sourceMappingURL=binding_on_syntax.js.map
|
|
@@ -13,7 +13,7 @@ var BindingToSyntax = (function () {
|
|
|
13
13
|
};
|
|
14
14
|
BindingToSyntax.prototype.toSelf = function () {
|
|
15
15
|
if (typeof this._binding.serviceIdentifier !== "function") {
|
|
16
|
-
throw new Error(""
|
|
16
|
+
throw new Error("".concat(ERROR_MSGS.INVALID_TO_SELF_VALUE));
|
|
17
17
|
}
|
|
18
18
|
var self = this._binding.serviceIdentifier;
|
|
19
19
|
return this.to(self);
|
|
@@ -82,4 +82,3 @@ var BindingToSyntax = (function () {
|
|
|
82
82
|
return BindingToSyntax;
|
|
83
83
|
}());
|
|
84
84
|
export { BindingToSyntax };
|
|
85
|
-
//# sourceMappingURL=binding_to_syntax.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingOnSyntax } from
|
|
2
|
-
import { BindingWhenSyntax } from
|
|
1
|
+
import { BindingOnSyntax } from './binding_on_syntax';
|
|
2
|
+
import { BindingWhenSyntax } from './binding_when_syntax';
|
|
3
3
|
var BindingWhenOnSyntax = (function () {
|
|
4
4
|
function BindingWhenOnSyntax(binding) {
|
|
5
5
|
this._binding = binding;
|
|
@@ -60,4 +60,3 @@ var BindingWhenOnSyntax = (function () {
|
|
|
60
60
|
return BindingWhenOnSyntax;
|
|
61
61
|
}());
|
|
62
62
|
export { BindingWhenOnSyntax };
|
|
63
|
-
//# sourceMappingURL=binding_when_on_syntax.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BindingOnSyntax } from
|
|
2
|
-
import { namedConstraint, taggedConstraint, traverseAncerstors, typeConstraint } from
|
|
1
|
+
import { BindingOnSyntax } from './binding_on_syntax';
|
|
2
|
+
import { namedConstraint, taggedConstraint, traverseAncerstors, typeConstraint } from './constraint_helpers';
|
|
3
3
|
var BindingWhenSyntax = (function () {
|
|
4
4
|
function BindingWhenSyntax(binding) {
|
|
5
5
|
this._binding = binding;
|
|
@@ -97,4 +97,3 @@ var BindingWhenSyntax = (function () {
|
|
|
97
97
|
return BindingWhenSyntax;
|
|
98
98
|
}());
|
|
99
99
|
export { BindingWhenSyntax };
|
|
100
|
-
//# sourceMappingURL=binding_when_syntax.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as METADATA_KEY from
|
|
2
|
-
import { Metadata } from
|
|
1
|
+
import * as METADATA_KEY from '../constants/metadata_keys';
|
|
2
|
+
import { Metadata } from '../planning/metadata';
|
|
3
3
|
var traverseAncerstors = function (request, constraint) {
|
|
4
4
|
var parent = request.parentRequest;
|
|
5
5
|
if (parent !== null) {
|
|
@@ -21,7 +21,7 @@ var typeConstraint = function (type) { return function (request) {
|
|
|
21
21
|
var binding = null;
|
|
22
22
|
if (request !== null) {
|
|
23
23
|
binding = request.bindings[0];
|
|
24
|
-
if (typeof type ===
|
|
24
|
+
if (typeof type === 'string') {
|
|
25
25
|
var serviceIdentifier = binding.serviceIdentifier;
|
|
26
26
|
return serviceIdentifier === type;
|
|
27
27
|
}
|
|
@@ -33,4 +33,3 @@ var typeConstraint = function (type) { return function (request) {
|
|
|
33
33
|
return false;
|
|
34
34
|
}; };
|
|
35
35
|
export { traverseAncerstors, taggedConstraint, namedConstraint, typeConstraint };
|
|
36
|
-
//# sourceMappingURL=constraint_helpers.js.map
|
package/es/utils/async.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getServiceIdentifierAsString } from
|
|
2
|
-
import * as ERROR_MSGS from
|
|
3
|
-
import { BindingTypeEnum } from
|
|
4
|
-
import { FactoryType } from
|
|
1
|
+
import { getServiceIdentifierAsString } from '../utils/serialization';
|
|
2
|
+
import * as ERROR_MSGS from '../constants/error_msgs';
|
|
3
|
+
import { BindingTypeEnum } from '../constants/literal_types';
|
|
4
|
+
import { FactoryType } from './factory_type';
|
|
5
5
|
export var multiBindToService = function (container) {
|
|
6
6
|
return function (service) {
|
|
7
7
|
return function () {
|
|
@@ -36,7 +36,7 @@ export var ensureFullyBound = function (binding) {
|
|
|
36
36
|
}
|
|
37
37
|
if (boundValue === null) {
|
|
38
38
|
var serviceIdentifierAsString = getServiceIdentifierAsString(binding.serviceIdentifier);
|
|
39
|
-
throw new Error(ERROR_MSGS.INVALID_BINDING_TYPE
|
|
39
|
+
throw new Error("".concat(ERROR_MSGS.INVALID_BINDING_TYPE, " ").concat(serviceIdentifierAsString));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
export var getFactoryDetails = function (binding) {
|
|
@@ -48,7 +48,6 @@ export var getFactoryDetails = function (binding) {
|
|
|
48
48
|
case BindingTypeEnum.DynamicValue:
|
|
49
49
|
return { factory: binding.dynamicValue, factoryType: FactoryType.DynamicValue };
|
|
50
50
|
default:
|
|
51
|
-
throw new Error("Unexpected factory type "
|
|
51
|
+
throw new Error("Unexpected factory type ".concat(binding.type));
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
|
-
//# sourceMappingURL=binding_utils.js.map
|
package/es/utils/clonable.js
CHANGED
package/es/utils/exceptions.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as ERROR_MSGS from
|
|
2
|
-
export function
|
|
1
|
+
import * as ERROR_MSGS from '../constants/error_msgs';
|
|
2
|
+
export function isStackOverflowException(error) {
|
|
3
3
|
return (error instanceof RangeError ||
|
|
4
4
|
error.message === ERROR_MSGS.STACK_OVERFLOW);
|
|
5
5
|
}
|
|
@@ -8,10 +8,9 @@ export var tryAndThrowErrorIfStackOverflow = function (fn, errorCallback) {
|
|
|
8
8
|
return fn();
|
|
9
9
|
}
|
|
10
10
|
catch (error) {
|
|
11
|
-
if (
|
|
11
|
+
if (isStackOverflowException(error)) {
|
|
12
12
|
error = errorCallback();
|
|
13
13
|
}
|
|
14
14
|
throw error;
|
|
15
15
|
}
|
|
16
16
|
};
|
|
17
|
-
//# sourceMappingURL=exceptions.js.map
|
package/es/utils/factory_type.js
CHANGED
package/es/utils/id.js
CHANGED
package/es/utils/js.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as ERROR_MSGS from
|
|
1
|
+
import * as ERROR_MSGS from '../constants/error_msgs';
|
|
2
2
|
function getServiceIdentifierAsString(serviceIdentifier) {
|
|
3
|
-
if (typeof serviceIdentifier ===
|
|
3
|
+
if (typeof serviceIdentifier === 'function') {
|
|
4
4
|
var _serviceIdentifier = serviceIdentifier;
|
|
5
5
|
return _serviceIdentifier.name;
|
|
6
6
|
}
|
|
7
|
-
else if (typeof serviceIdentifier ===
|
|
7
|
+
else if (typeof serviceIdentifier === 'symbol') {
|
|
8
8
|
return serviceIdentifier.toString();
|
|
9
9
|
}
|
|
10
10
|
else {
|
|
@@ -13,18 +13,18 @@ function getServiceIdentifierAsString(serviceIdentifier) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
function listRegisteredBindingsForServiceIdentifier(container, serviceIdentifier, getBindings) {
|
|
16
|
-
var registeredBindingsList =
|
|
16
|
+
var registeredBindingsList = '';
|
|
17
17
|
var registeredBindings = getBindings(container, serviceIdentifier);
|
|
18
18
|
if (registeredBindings.length !== 0) {
|
|
19
|
-
registeredBindingsList =
|
|
19
|
+
registeredBindingsList = '\nRegistered bindings:';
|
|
20
20
|
registeredBindings.forEach(function (binding) {
|
|
21
|
-
var name =
|
|
21
|
+
var name = 'Object';
|
|
22
22
|
if (binding.implementationType !== null) {
|
|
23
23
|
name = getFunctionName(binding.implementationType);
|
|
24
24
|
}
|
|
25
|
-
registeredBindingsList = registeredBindingsList
|
|
25
|
+
registeredBindingsList = "".concat(registeredBindingsList, "\n ").concat(name);
|
|
26
26
|
if (binding.constraint.metaData) {
|
|
27
|
-
registeredBindingsList = registeredBindingsList
|
|
27
|
+
registeredBindingsList = "".concat(registeredBindingsList, " - ").concat(binding.constraint.metaData);
|
|
28
28
|
}
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -52,13 +52,13 @@ function dependencyChainToString(request) {
|
|
|
52
52
|
return result;
|
|
53
53
|
}
|
|
54
54
|
var stringArr = _createStringArr(request);
|
|
55
|
-
return stringArr.reverse().join(
|
|
55
|
+
return stringArr.reverse().join(' --> ');
|
|
56
56
|
}
|
|
57
57
|
function circularDependencyToException(request) {
|
|
58
58
|
request.childRequests.forEach(function (childRequest) {
|
|
59
59
|
if (alreadyDependencyChain(childRequest, childRequest.serviceIdentifier)) {
|
|
60
60
|
var services = dependencyChainToString(childRequest);
|
|
61
|
-
throw new Error(ERROR_MSGS.CIRCULAR_DEPENDENCY
|
|
61
|
+
throw new Error("".concat(ERROR_MSGS.CIRCULAR_DEPENDENCY, " ").concat(services));
|
|
62
62
|
}
|
|
63
63
|
else {
|
|
64
64
|
circularDependencyToException(childRequest);
|
|
@@ -67,21 +67,21 @@ function circularDependencyToException(request) {
|
|
|
67
67
|
}
|
|
68
68
|
function listMetadataForTarget(serviceIdentifierString, target) {
|
|
69
69
|
if (target.isTagged() || target.isNamed()) {
|
|
70
|
-
var m_1 =
|
|
70
|
+
var m_1 = '';
|
|
71
71
|
var namedTag = target.getNamedTag();
|
|
72
72
|
var otherTags = target.getCustomTags();
|
|
73
73
|
if (namedTag !== null) {
|
|
74
|
-
m_1 += namedTag.toString() +
|
|
74
|
+
m_1 += namedTag.toString() + '\n';
|
|
75
75
|
}
|
|
76
76
|
if (otherTags !== null) {
|
|
77
77
|
otherTags.forEach(function (tag) {
|
|
78
|
-
m_1 += tag.toString() +
|
|
78
|
+
m_1 += tag.toString() + '\n';
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
return " "
|
|
81
|
+
return " ".concat(serviceIdentifierString, "\n ").concat(serviceIdentifierString, " - ").concat(m_1);
|
|
82
82
|
}
|
|
83
83
|
else {
|
|
84
|
-
return " "
|
|
84
|
+
return " ".concat(serviceIdentifierString);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
function getFunctionName(func) {
|
|
@@ -91,11 +91,10 @@ function getFunctionName(func) {
|
|
|
91
91
|
else {
|
|
92
92
|
var name_1 = func.toString();
|
|
93
93
|
var match = name_1.match(/^function\s*([^\s(]+)/);
|
|
94
|
-
return match ? match[1] : "Anonymous function: "
|
|
94
|
+
return match ? match[1] : "Anonymous function: ".concat(name_1);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
function getSymbolDescription(symbol) {
|
|
98
98
|
return symbol.toString().slice(7, -1);
|
|
99
99
|
}
|
|
100
100
|
export { getFunctionName, getServiceIdentifierAsString, listRegisteredBindingsForServiceIdentifier, listMetadataForTarget, circularDependencyToException, getSymbolDescription };
|
|
101
|
-
//# sourceMappingURL=serialization.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -19,7 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
23
|
return result;
|
|
20
24
|
};
|
|
21
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.
|
|
26
|
+
exports.decorate = decorate;
|
|
27
|
+
exports.tagParameter = tagParameter;
|
|
28
|
+
exports.tagProperty = tagProperty;
|
|
29
|
+
exports.createTaggedDecorator = createTaggedDecorator;
|
|
23
30
|
const ERROR_MSGS = __importStar(require("../constants/error_msgs"));
|
|
24
31
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
25
32
|
const js_1 = require("../utils/js");
|
|
@@ -35,14 +42,12 @@ function tagParameter(annotationTarget, parameterName, parameterIndex, metadata)
|
|
|
35
42
|
_throwIfMethodParameter(parameterName);
|
|
36
43
|
_tagParameterOrProperty(METADATA_KEY.TAGGED, annotationTarget, parameterIndex.toString(), metadata);
|
|
37
44
|
}
|
|
38
|
-
exports.tagParameter = tagParameter;
|
|
39
45
|
function tagProperty(annotationTarget, propertyName, metadata) {
|
|
40
46
|
if (targetIsConstructorFunction(annotationTarget)) {
|
|
41
47
|
throw new Error(ERROR_MSGS.INVALID_DECORATOR_OPERATION);
|
|
42
48
|
}
|
|
43
49
|
_tagParameterOrProperty(METADATA_KEY.TAGGED_PROP, annotationTarget.constructor, propertyName, metadata);
|
|
44
50
|
}
|
|
45
|
-
exports.tagProperty = tagProperty;
|
|
46
51
|
function _ensureNoMetadataKeyDuplicates(metadata) {
|
|
47
52
|
let metadatas = [];
|
|
48
53
|
if (Array.isArray(metadata)) {
|
|
@@ -80,7 +85,7 @@ function _tagParameterOrProperty(metadataKey, annotationTarget, key, metadata) {
|
|
|
80
85
|
}
|
|
81
86
|
function createTaggedDecorator(metadata) {
|
|
82
87
|
return (target, targetKey, indexOrPropertyDescriptor) => {
|
|
83
|
-
if (typeof indexOrPropertyDescriptor ===
|
|
88
|
+
if (typeof indexOrPropertyDescriptor === 'number') {
|
|
84
89
|
tagParameter(target, targetKey, indexOrPropertyDescriptor, metadata);
|
|
85
90
|
}
|
|
86
91
|
else {
|
|
@@ -88,7 +93,6 @@ function createTaggedDecorator(metadata) {
|
|
|
88
93
|
}
|
|
89
94
|
};
|
|
90
95
|
}
|
|
91
|
-
exports.createTaggedDecorator = createTaggedDecorator;
|
|
92
96
|
function _decorate(decorators, target) {
|
|
93
97
|
Reflect.decorate(decorators, target);
|
|
94
98
|
}
|
|
@@ -96,15 +100,13 @@ function _param(paramIndex, decorator) {
|
|
|
96
100
|
return function (target, key) { decorator(target, key, paramIndex); };
|
|
97
101
|
}
|
|
98
102
|
function decorate(decorator, target, parameterIndexOrProperty) {
|
|
99
|
-
if (typeof parameterIndexOrProperty ===
|
|
103
|
+
if (typeof parameterIndexOrProperty === 'number') {
|
|
100
104
|
_decorate([_param(parameterIndexOrProperty, decorator)], target);
|
|
101
105
|
}
|
|
102
|
-
else if (typeof parameterIndexOrProperty ===
|
|
106
|
+
else if (typeof parameterIndexOrProperty === 'string') {
|
|
103
107
|
Reflect.decorate([decorator], target, parameterIndexOrProperty);
|
|
104
108
|
}
|
|
105
109
|
else {
|
|
106
110
|
_decorate([decorator], target);
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
|
-
exports.decorate = decorate;
|
|
110
|
-
//# sourceMappingURL=decorator_utils.js.map
|
package/es6/annotation/inject.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -24,4 +28,3 @@ const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
|
24
28
|
const inject_base_1 = require("./inject_base");
|
|
25
29
|
const inject = (0, inject_base_1.injectBase)(METADATA_KEY.INJECT_TAG);
|
|
26
30
|
exports.inject = inject;
|
|
27
|
-
//# sourceMappingURL=inject.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.injectBase =
|
|
3
|
+
exports.injectBase = injectBase;
|
|
4
4
|
const error_msgs_1 = require("../constants/error_msgs");
|
|
5
5
|
const metadata_1 = require("../planning/metadata");
|
|
6
6
|
const decorator_utils_1 = require("./decorator_utils");
|
|
@@ -8,12 +8,10 @@ function injectBase(metadataKey) {
|
|
|
8
8
|
return (serviceIdentifier) => {
|
|
9
9
|
return (target, targetKey, indexOrPropertyDescriptor) => {
|
|
10
10
|
if (serviceIdentifier === undefined) {
|
|
11
|
-
const className = typeof target ===
|
|
11
|
+
const className = typeof target === 'function' ? target.name : target.constructor.name;
|
|
12
12
|
throw new Error((0, error_msgs_1.UNDEFINED_INJECT_ANNOTATION)(className));
|
|
13
13
|
}
|
|
14
14
|
return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(metadataKey, serviceIdentifier))(target, targetKey, indexOrPropertyDescriptor);
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
}
|
|
18
|
-
exports.injectBase = injectBase;
|
|
19
|
-
//# sourceMappingURL=inject_base.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -19,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
23
|
return result;
|
|
20
24
|
};
|
|
21
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.injectable =
|
|
26
|
+
exports.injectable = injectable;
|
|
23
27
|
const ERRORS_MSGS = __importStar(require("../constants/error_msgs"));
|
|
24
28
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
25
29
|
function injectable() {
|
|
@@ -32,5 +36,3 @@ function injectable() {
|
|
|
32
36
|
return target;
|
|
33
37
|
};
|
|
34
38
|
}
|
|
35
|
-
exports.injectable = injectable;
|
|
36
|
-
//# sourceMappingURL=injectable.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
class
|
|
3
|
+
exports.LazyServiceIdentifier = void 0;
|
|
4
|
+
class LazyServiceIdentifier {
|
|
5
5
|
constructor(cb) {
|
|
6
6
|
this._cb = cb;
|
|
7
7
|
}
|
|
@@ -9,5 +9,4 @@ class LazyServiceIdentifer {
|
|
|
9
9
|
return this._cb();
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
exports.
|
|
13
|
-
//# sourceMappingURL=lazy_service_identifier.js.map
|
|
12
|
+
exports.LazyServiceIdentifier = LazyServiceIdentifier;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -24,4 +28,3 @@ const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
|
24
28
|
const inject_base_1 = require("./inject_base");
|
|
25
29
|
const multiInject = (0, inject_base_1.injectBase)(METADATA_KEY.MULTI_INJECT_TAG);
|
|
26
30
|
exports.multiInject = multiInject;
|
|
27
|
-
//# sourceMappingURL=multi_inject.js.map
|
package/es6/annotation/named.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -19,12 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
23
|
return result;
|
|
20
24
|
};
|
|
21
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.named =
|
|
26
|
+
exports.named = named;
|
|
23
27
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
24
28
|
const metadata_1 = require("../planning/metadata");
|
|
25
29
|
const decorator_utils_1 = require("./decorator_utils");
|
|
26
30
|
function named(name) {
|
|
27
31
|
return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(METADATA_KEY.NAMED_TAG, name));
|
|
28
32
|
}
|
|
29
|
-
exports.named = named;
|
|
30
|
-
//# sourceMappingURL=named.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -19,12 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
23
|
return result;
|
|
20
24
|
};
|
|
21
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.optional =
|
|
26
|
+
exports.optional = optional;
|
|
23
27
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
24
28
|
const metadata_1 = require("../planning/metadata");
|
|
25
29
|
const decorator_utils_1 = require("./decorator_utils");
|
|
26
30
|
function optional() {
|
|
27
31
|
return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(METADATA_KEY.OPTIONAL_TAG, true));
|
|
28
32
|
}
|
|
29
|
-
exports.optional = optional;
|
|
30
|
-
//# sourceMappingURL=optional.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -25,4 +29,3 @@ const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
|
25
29
|
const property_event_decorator_1 = require("./property_event_decorator");
|
|
26
30
|
const postConstruct = (0, property_event_decorator_1.propertyEventDecorator)(METADATA_KEY.POST_CONSTRUCT, ERRORS_MSGS.MULTIPLE_POST_CONSTRUCT_METHODS);
|
|
27
31
|
exports.postConstruct = postConstruct;
|
|
28
|
-
//# sourceMappingURL=post_construct.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -25,4 +29,3 @@ const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
|
25
29
|
const property_event_decorator_1 = require("./property_event_decorator");
|
|
26
30
|
const preDestroy = (0, property_event_decorator_1.propertyEventDecorator)(METADATA_KEY.PRE_DESTROY, ERRORS_MSGS.MULTIPLE_PRE_DESTROY_METHODS);
|
|
27
31
|
exports.preDestroy = preDestroy;
|
|
28
|
-
//# sourceMappingURL=pre_destroy.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.propertyEventDecorator =
|
|
3
|
+
exports.propertyEventDecorator = propertyEventDecorator;
|
|
4
4
|
const metadata_1 = require("../planning/metadata");
|
|
5
5
|
function propertyEventDecorator(eventKey, errorMessage) {
|
|
6
6
|
return () => {
|
|
@@ -13,5 +13,3 @@ function propertyEventDecorator(eventKey, errorMessage) {
|
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
15
|
}
|
|
16
|
-
exports.propertyEventDecorator = propertyEventDecorator;
|
|
17
|
-
//# sourceMappingURL=property_event_decorator.js.map
|
package/es6/annotation/tagged.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.tagged =
|
|
3
|
+
exports.tagged = tagged;
|
|
4
4
|
const metadata_1 = require("../planning/metadata");
|
|
5
5
|
const decorator_utils_1 = require("./decorator_utils");
|
|
6
6
|
function tagged(metadataKey, metadataValue) {
|
|
7
7
|
return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(metadataKey, metadataValue));
|
|
8
8
|
}
|
|
9
|
-
exports.tagged = tagged;
|
|
10
|
-
//# sourceMappingURL=tagged.js.map
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
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);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -19,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
23
|
return result;
|
|
20
24
|
};
|
|
21
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.targetName =
|
|
26
|
+
exports.targetName = targetName;
|
|
23
27
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
24
28
|
const metadata_1 = require("../planning/metadata");
|
|
25
29
|
const decorator_utils_1 = require("./decorator_utils");
|
|
@@ -29,5 +33,3 @@ function targetName(name) {
|
|
|
29
33
|
(0, decorator_utils_1.tagParameter)(target, targetKey, index, metadata);
|
|
30
34
|
};
|
|
31
35
|
}
|
|
32
|
-
exports.targetName = targetName;
|
|
33
|
-
//# sourceMappingURL=target_name.js.map
|