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
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
2
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
4
8
|
}) : (function(o, m, k, k2) {
|
|
5
9
|
if (k2 === undefined) k2 = k;
|
|
6
10
|
o[k2] = m[k];
|
|
@@ -29,7 +33,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
29
33
|
define(["require", "exports", "../annotation/lazy_service_identifier", "../constants/error_msgs", "../constants/literal_types", "../constants/metadata_keys", "../utils/serialization", "./target"], function (require, exports, lazy_service_identifier_1, ERROR_MSGS, literal_types_1, METADATA_KEY, serialization_1, target_1) {
|
|
30
34
|
"use strict";
|
|
31
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.getFunctionName =
|
|
36
|
+
exports.getFunctionName = void 0;
|
|
37
|
+
exports.getDependencies = getDependencies;
|
|
38
|
+
exports.getBaseClassDependencyCount = getBaseClassDependencyCount;
|
|
33
39
|
ERROR_MSGS = __importStar(ERROR_MSGS);
|
|
34
40
|
METADATA_KEY = __importStar(METADATA_KEY);
|
|
35
41
|
Object.defineProperty(exports, "getFunctionName", { enumerable: true, get: function () { return serialization_1.getFunctionName; } });
|
|
@@ -37,12 +43,11 @@ define(["require", "exports", "../annotation/lazy_service_identifier", "../const
|
|
|
37
43
|
var constructorName = (0, serialization_1.getFunctionName)(func);
|
|
38
44
|
return getTargets(metadataReader, constructorName, func, false);
|
|
39
45
|
}
|
|
40
|
-
exports.getDependencies = getDependencies;
|
|
41
46
|
function getTargets(metadataReader, constructorName, func, isBaseClass) {
|
|
42
47
|
var metadata = metadataReader.getConstructorMetadata(func);
|
|
43
48
|
var serviceIdentifiers = metadata.compilerGeneratedMetadata;
|
|
44
49
|
if (serviceIdentifiers === undefined) {
|
|
45
|
-
var msg = ERROR_MSGS.MISSING_INJECTABLE_ANNOTATION
|
|
50
|
+
var msg = "".concat(ERROR_MSGS.MISSING_INJECTABLE_ANNOTATION, " ").concat(constructorName, ".");
|
|
46
51
|
throw new Error(msg);
|
|
47
52
|
}
|
|
48
53
|
var constructorArgsMetadata = metadata.userGeneratedMetadata;
|
|
@@ -60,18 +65,18 @@ define(["require", "exports", "../annotation/lazy_service_identifier", "../const
|
|
|
60
65
|
var metadata = formatTargetMetadata(targetMetadata);
|
|
61
66
|
var isManaged = metadata.unmanaged !== true;
|
|
62
67
|
var serviceIdentifier = serviceIdentifiers[index];
|
|
63
|
-
var injectIdentifier =
|
|
64
|
-
serviceIdentifier = (injectIdentifier
|
|
65
|
-
if (serviceIdentifier instanceof lazy_service_identifier_1.
|
|
68
|
+
var injectIdentifier = metadata.inject || metadata.multiInject;
|
|
69
|
+
serviceIdentifier = (injectIdentifier ? injectIdentifier : serviceIdentifier);
|
|
70
|
+
if (serviceIdentifier instanceof lazy_service_identifier_1.LazyServiceIdentifier) {
|
|
66
71
|
serviceIdentifier = serviceIdentifier.unwrap();
|
|
67
72
|
}
|
|
68
73
|
if (isManaged) {
|
|
69
74
|
var isObject = serviceIdentifier === Object;
|
|
70
75
|
var isFunction = serviceIdentifier === Function;
|
|
71
76
|
var isUndefined = serviceIdentifier === undefined;
|
|
72
|
-
var isUnknownType =
|
|
77
|
+
var isUnknownType = isObject || isFunction || isUndefined;
|
|
73
78
|
if (!isBaseClass && isUnknownType) {
|
|
74
|
-
var msg = ERROR_MSGS.MISSING_INJECT_ANNOTATION
|
|
79
|
+
var msg = "".concat(ERROR_MSGS.MISSING_INJECT_ANNOTATION, " argument ").concat(index, " in class ").concat(constructorName, ".");
|
|
75
80
|
throw new Error(msg);
|
|
76
81
|
}
|
|
77
82
|
var target = new target_1.Target(literal_types_1.TargetTypeEnum.ConstructorArgument, metadata.targetName, serviceIdentifier);
|
|
@@ -94,7 +99,7 @@ define(["require", "exports", "../annotation/lazy_service_identifier", "../const
|
|
|
94
99
|
function _getServiceIdentifierForProperty(inject, multiInject, propertyName, className) {
|
|
95
100
|
var serviceIdentifier = (inject || multiInject);
|
|
96
101
|
if (serviceIdentifier === undefined) {
|
|
97
|
-
var msg = ERROR_MSGS.MISSING_INJECTABLE_ANNOTATION
|
|
102
|
+
var msg = "".concat(ERROR_MSGS.MISSING_INJECTABLE_ANNOTATION, " for property ").concat(String(propertyName), " in class ").concat(className, ".");
|
|
98
103
|
throw new Error(msg);
|
|
99
104
|
}
|
|
100
105
|
return serviceIdentifier;
|
|
@@ -141,7 +146,6 @@ define(["require", "exports", "../annotation/lazy_service_identifier", "../const
|
|
|
141
146
|
return 0;
|
|
142
147
|
}
|
|
143
148
|
}
|
|
144
|
-
exports.getBaseClassDependencyCount = getBaseClassDependencyCount;
|
|
145
149
|
function formatTargetMetadata(targetMetadata) {
|
|
146
150
|
var targetMetadataMap = {};
|
|
147
151
|
targetMetadata.forEach(function (m) {
|
|
@@ -155,4 +159,3 @@ define(["require", "exports", "../annotation/lazy_service_identifier", "../const
|
|
|
155
159
|
};
|
|
156
160
|
}
|
|
157
161
|
});
|
|
158
|
-
//# sourceMappingURL=reflection_utils.js.map
|
package/amd/planning/request.js
CHANGED
package/amd/planning/target.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
2
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
4
8
|
}) : (function(o, m, k, k2) {
|
|
5
9
|
if (k2 === undefined) k2 = k;
|
|
6
10
|
o[k2] = m[k];
|
|
@@ -28,7 +32,7 @@ define(["require", "exports", "../constants/metadata_keys", "../utils/id", "../u
|
|
|
28
32
|
this.type = type;
|
|
29
33
|
this.serviceIdentifier = serviceIdentifier;
|
|
30
34
|
var queryableName = typeof identifier === 'symbol' ? (0, serialization_1.getSymbolDescription)(identifier) : identifier;
|
|
31
|
-
this.name = new queryable_string_1.QueryableString(queryableName ||
|
|
35
|
+
this.name = new queryable_string_1.QueryableString(queryableName || '');
|
|
32
36
|
this.identifier = identifier;
|
|
33
37
|
this.metadata = new Array();
|
|
34
38
|
var metadataItem = null;
|
|
@@ -99,4 +103,3 @@ define(["require", "exports", "../constants/metadata_keys", "../utils/id", "../u
|
|
|
99
103
|
}());
|
|
100
104
|
exports.Target = Target;
|
|
101
105
|
});
|
|
102
|
-
//# sourceMappingURL=target.js.map
|
|
@@ -11,7 +11,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
13
|
if (k2 === undefined) k2 = k;
|
|
14
|
-
Object.
|
|
14
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
+
}
|
|
18
|
+
Object.defineProperty(o, k2, desc);
|
|
15
19
|
}) : (function(o, m, k, k2) {
|
|
16
20
|
if (k2 === undefined) k2 = k;
|
|
17
21
|
o[k2] = m[k];
|
|
@@ -38,12 +42,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
38
42
|
});
|
|
39
43
|
};
|
|
40
44
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
41
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
42
|
-
return g =
|
|
45
|
+
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);
|
|
46
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
43
47
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
44
48
|
function step(op) {
|
|
45
49
|
if (f) throw new TypeError("Generator is already executing.");
|
|
46
|
-
while (_) try {
|
|
50
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
47
51
|
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;
|
|
48
52
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
49
53
|
switch (op[0]) {
|
|
@@ -76,7 +80,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
76
80
|
define(["require", "exports", "../constants/error_msgs", "../constants/literal_types", "../constants/metadata_keys", "../utils/async"], function (require, exports, error_msgs_1, literal_types_1, METADATA_KEY, async_1) {
|
|
77
81
|
"use strict";
|
|
78
82
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.resolveInstance =
|
|
83
|
+
exports.resolveInstance = resolveInstance;
|
|
80
84
|
METADATA_KEY = __importStar(METADATA_KEY);
|
|
81
85
|
function _resolveRequests(childRequests, resolveRequest) {
|
|
82
86
|
return childRequests.reduce(function (resolvedRequests, childRequest) {
|
|
@@ -118,7 +122,9 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
118
122
|
args.propertyRequests.forEach(function (r, index) {
|
|
119
123
|
var property = r.target.identifier;
|
|
120
124
|
var injection = args.propertyInjections[index];
|
|
121
|
-
|
|
125
|
+
if (!r.target.isOptional() || injection !== undefined) {
|
|
126
|
+
instance[property] = injection;
|
|
127
|
+
}
|
|
122
128
|
});
|
|
123
129
|
return instance;
|
|
124
130
|
}
|
|
@@ -173,7 +179,9 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
173
179
|
return (_b = (_a = instance)[data.value]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
174
180
|
}
|
|
175
181
|
catch (e) {
|
|
176
|
-
|
|
182
|
+
if (e instanceof Error) {
|
|
183
|
+
throw new Error((0, error_msgs_1.POST_CONSTRUCT_ERROR)(constr.name, e.message));
|
|
184
|
+
}
|
|
177
185
|
}
|
|
178
186
|
}
|
|
179
187
|
}
|
|
@@ -183,10 +191,10 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
183
191
|
}
|
|
184
192
|
}
|
|
185
193
|
function _throwIfHandlingDeactivation(binding, constr) {
|
|
186
|
-
var scopeErrorMessage = "Class cannot be instantiated in "
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
if (typeof binding.onDeactivation ===
|
|
194
|
+
var scopeErrorMessage = "Class cannot be instantiated in ".concat(binding.scope === literal_types_1.BindingScopeEnum.Request ?
|
|
195
|
+
'request' :
|
|
196
|
+
'transient', " scope.");
|
|
197
|
+
if (typeof binding.onDeactivation === 'function') {
|
|
190
198
|
throw new Error((0, error_msgs_1.ON_DEACTIVATION_ERROR)(constr.name, scopeErrorMessage));
|
|
191
199
|
}
|
|
192
200
|
if (Reflect.hasMetadata(METADATA_KEY.PRE_DESTROY, constr)) {
|
|
@@ -203,6 +211,4 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
203
211
|
return _getInstanceAfterPostConstruct(constr, result);
|
|
204
212
|
}
|
|
205
213
|
}
|
|
206
|
-
exports.resolveInstance = resolveInstance;
|
|
207
214
|
});
|
|
208
|
-
//# sourceMappingURL=instantiation.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
2
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
4
8
|
}) : (function(o, m, k, k2) {
|
|
5
9
|
if (k2 === undefined) k2 = k;
|
|
6
10
|
o[k2] = m[k];
|
|
@@ -27,12 +31,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
27
31
|
});
|
|
28
32
|
};
|
|
29
33
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
30
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
31
|
-
return g =
|
|
34
|
+
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);
|
|
35
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
32
36
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
33
37
|
function step(op) {
|
|
34
38
|
if (f) throw new TypeError("Generator is already executing.");
|
|
35
|
-
while (_) try {
|
|
39
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
36
40
|
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;
|
|
37
41
|
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
38
42
|
switch (op[0]) {
|
|
@@ -56,7 +60,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
56
60
|
define(["require", "exports", "../constants/error_msgs", "../constants/literal_types", "../planning/planner", "../scope/scope", "../utils/async", "../utils/binding_utils", "../utils/exceptions", "./instantiation"], function (require, exports, ERROR_MSGS, literal_types_1, planner_1, scope_1, async_1, binding_utils_1, exceptions_1, instantiation_1) {
|
|
57
61
|
"use strict";
|
|
58
62
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
59
|
-
exports.resolve =
|
|
63
|
+
exports.resolve = resolve;
|
|
60
64
|
ERROR_MSGS = __importStar(ERROR_MSGS);
|
|
61
65
|
var _resolveRequest = function (requestScope) {
|
|
62
66
|
return function (request) {
|
|
@@ -150,7 +154,7 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
150
154
|
}
|
|
151
155
|
var _bindingActivation = function (context, binding, previousResult) {
|
|
152
156
|
var result;
|
|
153
|
-
if (typeof binding.onActivation ===
|
|
157
|
+
if (typeof binding.onActivation === 'function') {
|
|
154
158
|
result = binding.onActivation(context, previousResult);
|
|
155
159
|
}
|
|
156
160
|
else {
|
|
@@ -218,6 +222,4 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
218
222
|
var _f = _resolveRequest(context.plan.rootRequest.requestScope);
|
|
219
223
|
return _f(context.plan.rootRequest);
|
|
220
224
|
}
|
|
221
|
-
exports.resolve = resolve;
|
|
222
225
|
});
|
|
223
|
-
//# sourceMappingURL=resolver.js.map
|
package/amd/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,15 +34,15 @@ 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
|
-
define(["require", "exports", "../
|
|
37
|
+
define(["require", "exports", "../constants/literal_types", "../utils/async"], function (require, exports, literal_types_1, async_1) {
|
|
38
38
|
"use strict";
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
40
|
exports.saveToScope = exports.tryGetFromScope = void 0;
|
|
41
41
|
var tryGetFromScope = function (requestScope, binding) {
|
|
42
|
-
if ((binding.scope ===
|
|
42
|
+
if ((binding.scope === literal_types_1.BindingScopeEnum.Singleton) && binding.activated) {
|
|
43
43
|
return binding.cache;
|
|
44
44
|
}
|
|
45
|
-
if (binding.scope ===
|
|
45
|
+
if (binding.scope === literal_types_1.BindingScopeEnum.Request &&
|
|
46
46
|
requestScope.has(binding.id)) {
|
|
47
47
|
return requestScope.get(binding.id);
|
|
48
48
|
}
|
|
@@ -50,10 +50,10 @@ define(["require", "exports", "../inversify", "../utils/async"], function (requi
|
|
|
50
50
|
};
|
|
51
51
|
exports.tryGetFromScope = tryGetFromScope;
|
|
52
52
|
var saveToScope = function (requestScope, binding, result) {
|
|
53
|
-
if (binding.scope ===
|
|
53
|
+
if (binding.scope === literal_types_1.BindingScopeEnum.Singleton) {
|
|
54
54
|
_saveToSingletonScope(binding, result);
|
|
55
55
|
}
|
|
56
|
-
if (binding.scope ===
|
|
56
|
+
if (binding.scope === literal_types_1.BindingScopeEnum.Request) {
|
|
57
57
|
_saveToRequestScope(requestScope, binding, result);
|
|
58
58
|
}
|
|
59
59
|
};
|
|
@@ -91,4 +91,3 @@ define(["require", "exports", "../inversify", "../utils/async"], function (requi
|
|
|
91
91
|
});
|
|
92
92
|
}); };
|
|
93
93
|
});
|
|
94
|
-
//# sourceMappingURL=scope.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
2
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
4
8
|
}) : (function(o, m, k, k2) {
|
|
5
9
|
if (k2 === undefined) k2 = k;
|
|
6
10
|
o[k2] = m[k];
|
|
@@ -33,7 +37,7 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
33
37
|
};
|
|
34
38
|
BindingToSyntax.prototype.toSelf = function () {
|
|
35
39
|
if (typeof this._binding.serviceIdentifier !== "function") {
|
|
36
|
-
throw new Error(""
|
|
40
|
+
throw new Error("".concat(ERROR_MSGS.INVALID_TO_SELF_VALUE));
|
|
37
41
|
}
|
|
38
42
|
var self = this._binding.serviceIdentifier;
|
|
39
43
|
return this.to(self);
|
|
@@ -103,4 +107,3 @@ define(["require", "exports", "../constants/error_msgs", "../constants/literal_t
|
|
|
103
107
|
}());
|
|
104
108
|
exports.BindingToSyntax = BindingToSyntax;
|
|
105
109
|
});
|
|
106
|
-
//# sourceMappingURL=binding_to_syntax.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
2
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
4
8
|
}) : (function(o, m, k, k2) {
|
|
5
9
|
if (k2 === undefined) k2 = k;
|
|
6
10
|
o[k2] = m[k];
|
|
@@ -46,7 +50,7 @@ define(["require", "exports", "../constants/metadata_keys", "../planning/metadat
|
|
|
46
50
|
var binding = null;
|
|
47
51
|
if (request !== null) {
|
|
48
52
|
binding = request.bindings[0];
|
|
49
|
-
if (typeof type ===
|
|
53
|
+
if (typeof type === 'string') {
|
|
50
54
|
var serviceIdentifier = binding.serviceIdentifier;
|
|
51
55
|
return serviceIdentifier === type;
|
|
52
56
|
}
|
|
@@ -59,4 +63,3 @@ define(["require", "exports", "../constants/metadata_keys", "../planning/metadat
|
|
|
59
63
|
}; };
|
|
60
64
|
exports.typeConstraint = typeConstraint;
|
|
61
65
|
});
|
|
62
|
-
//# sourceMappingURL=constraint_helpers.js.map
|
package/amd/utils/async.js
CHANGED
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
define(["require", "exports"], function (require, exports) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.isPromise = isPromise;
|
|
5
|
+
exports.isPromiseOrContainsPromise = isPromiseOrContainsPromise;
|
|
5
6
|
function isPromise(object) {
|
|
6
7
|
var isObjectOrFunction = (typeof object === 'object' && object !== null) || typeof object === 'function';
|
|
7
8
|
return isObjectOrFunction && typeof object.then === "function";
|
|
8
9
|
}
|
|
9
|
-
exports.isPromise = isPromise;
|
|
10
10
|
function isPromiseOrContainsPromise(object) {
|
|
11
11
|
if (isPromise(object)) {
|
|
12
12
|
return true;
|
|
13
13
|
}
|
|
14
14
|
return Array.isArray(object) && object.some(isPromise);
|
|
15
15
|
}
|
|
16
|
-
exports.isPromiseOrContainsPromise = isPromiseOrContainsPromise;
|
|
17
16
|
});
|
|
18
|
-
//# sourceMappingURL=async.js.map
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
2
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
4
8
|
}) : (function(o, m, k, k2) {
|
|
5
9
|
if (k2 === undefined) k2 = k;
|
|
6
10
|
o[k2] = m[k];
|
|
@@ -17,7 +21,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
17
21
|
__setModuleDefault(result, mod);
|
|
18
22
|
return result;
|
|
19
23
|
};
|
|
20
|
-
define(["require", "exports", "../
|
|
24
|
+
define(["require", "exports", "../utils/serialization", "../constants/error_msgs", "../constants/literal_types", "./factory_type"], function (require, exports, serialization_1, ERROR_MSGS, literal_types_1, factory_type_1) {
|
|
21
25
|
"use strict";
|
|
22
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
27
|
exports.getFactoryDetails = exports.ensureFullyBound = exports.multiBindToService = void 0;
|
|
@@ -56,8 +60,8 @@ define(["require", "exports", "../inversify", "../constants/error_msgs", "../con
|
|
|
56
60
|
break;
|
|
57
61
|
}
|
|
58
62
|
if (boundValue === null) {
|
|
59
|
-
var serviceIdentifierAsString = (0,
|
|
60
|
-
throw new Error(ERROR_MSGS.INVALID_BINDING_TYPE
|
|
63
|
+
var serviceIdentifierAsString = (0, serialization_1.getServiceIdentifierAsString)(binding.serviceIdentifier);
|
|
64
|
+
throw new Error("".concat(ERROR_MSGS.INVALID_BINDING_TYPE, " ").concat(serviceIdentifierAsString));
|
|
61
65
|
}
|
|
62
66
|
};
|
|
63
67
|
exports.ensureFullyBound = ensureFullyBound;
|
|
@@ -70,9 +74,8 @@ define(["require", "exports", "../inversify", "../constants/error_msgs", "../con
|
|
|
70
74
|
case literal_types_1.BindingTypeEnum.DynamicValue:
|
|
71
75
|
return { factory: binding.dynamicValue, factoryType: factory_type_1.FactoryType.DynamicValue };
|
|
72
76
|
default:
|
|
73
|
-
throw new Error("Unexpected factory type "
|
|
77
|
+
throw new Error("Unexpected factory type ".concat(binding.type));
|
|
74
78
|
}
|
|
75
79
|
};
|
|
76
80
|
exports.getFactoryDetails = getFactoryDetails;
|
|
77
81
|
});
|
|
78
|
-
//# sourceMappingURL=binding_utils.js.map
|
package/amd/utils/clonable.js
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
define(["require", "exports"], function (require, exports) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.isClonable =
|
|
4
|
+
exports.isClonable = isClonable;
|
|
5
5
|
function isClonable(obj) {
|
|
6
6
|
return (typeof obj === 'object')
|
|
7
7
|
&& (obj !== null)
|
|
8
8
|
&& ('clone' in obj)
|
|
9
9
|
&& typeof obj.clone === 'function';
|
|
10
10
|
}
|
|
11
|
-
exports.isClonable = isClonable;
|
|
12
11
|
});
|
|
13
|
-
//# sourceMappingURL=clonable.js.map
|
package/amd/utils/exceptions.js
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2
2
|
if (k2 === undefined) k2 = k;
|
|
3
|
-
Object.
|
|
3
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
4
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
5
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
6
|
+
}
|
|
7
|
+
Object.defineProperty(o, k2, desc);
|
|
4
8
|
}) : (function(o, m, k, k2) {
|
|
5
9
|
if (k2 === undefined) k2 = k;
|
|
6
10
|
o[k2] = m[k];
|
|
@@ -20,19 +24,19 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
20
24
|
define(["require", "exports", "../constants/error_msgs"], function (require, exports, ERROR_MSGS) {
|
|
21
25
|
"use strict";
|
|
22
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
|
-
exports.tryAndThrowErrorIfStackOverflow =
|
|
27
|
+
exports.tryAndThrowErrorIfStackOverflow = void 0;
|
|
28
|
+
exports.isStackOverflowException = isStackOverflowException;
|
|
24
29
|
ERROR_MSGS = __importStar(ERROR_MSGS);
|
|
25
|
-
function
|
|
30
|
+
function isStackOverflowException(error) {
|
|
26
31
|
return (error instanceof RangeError ||
|
|
27
32
|
error.message === ERROR_MSGS.STACK_OVERFLOW);
|
|
28
33
|
}
|
|
29
|
-
exports.isStackOverflowExeption = isStackOverflowExeption;
|
|
30
34
|
var tryAndThrowErrorIfStackOverflow = function (fn, errorCallback) {
|
|
31
35
|
try {
|
|
32
36
|
return fn();
|
|
33
37
|
}
|
|
34
38
|
catch (error) {
|
|
35
|
-
if (
|
|
39
|
+
if (isStackOverflowException(error)) {
|
|
36
40
|
error = errorCallback();
|
|
37
41
|
}
|
|
38
42
|
throw error;
|
|
@@ -40,4 +44,3 @@ define(["require", "exports", "../constants/error_msgs"], function (require, exp
|
|
|
40
44
|
};
|
|
41
45
|
exports.tryAndThrowErrorIfStackOverflow = tryAndThrowErrorIfStackOverflow;
|
|
42
46
|
});
|
|
43
|
-
//# sourceMappingURL=exceptions.js.map
|
|
@@ -7,6 +7,5 @@ define(["require", "exports"], function (require, exports) {
|
|
|
7
7
|
FactoryType["DynamicValue"] = "toDynamicValue";
|
|
8
8
|
FactoryType["Factory"] = "toFactory";
|
|
9
9
|
FactoryType["Provider"] = "toProvider";
|
|
10
|
-
})(FactoryType
|
|
10
|
+
})(FactoryType || (exports.FactoryType = FactoryType = {}));
|
|
11
11
|
});
|
|
12
|
-
//# sourceMappingURL=factory_type.js.map
|
package/amd/utils/id.js
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
define(["require", "exports"], function (require, exports) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.id =
|
|
4
|
+
exports.id = id;
|
|
5
5
|
var idCounter = 0;
|
|
6
6
|
function id() {
|
|
7
7
|
return idCounter++;
|
|
8
8
|
}
|
|
9
|
-
exports.id = id;
|
|
10
9
|
});
|
|
11
|
-
//# sourceMappingURL=id.js.map
|
package/amd/utils/js.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
define(["require", "exports"], function (require, exports) {
|
|
2
2
|
"use strict";
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.getFirstArrayDuplicate =
|
|
4
|
+
exports.getFirstArrayDuplicate = getFirstArrayDuplicate;
|
|
5
5
|
function getFirstArrayDuplicate(array) {
|
|
6
6
|
var seenValues = new Set();
|
|
7
7
|
for (var _i = 0, array_1 = array; _i < array_1.length; _i++) {
|
|
@@ -15,6 +15,4 @@ define(["require", "exports"], function (require, exports) {
|
|
|
15
15
|
}
|
|
16
16
|
return undefined;
|
|
17
17
|
}
|
|
18
|
-
exports.getFirstArrayDuplicate = getFirstArrayDuplicate;
|
|
19
18
|
});
|
|
20
|
-
//# sourceMappingURL=js.js.map
|