inversify 6.1.4 → 6.1.5-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -1
- package/README.md +6 -15
- package/{amd → lib/cjs}/annotation/decorator_utils.d.ts +1 -0
- package/lib/cjs/annotation/decorator_utils.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/decorator_utils.js +25 -7
- package/lib/cjs/annotation/decorator_utils.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/inject.d.ts +1 -0
- package/lib/cjs/annotation/inject.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/inject.js +18 -7
- package/lib/cjs/annotation/inject.js.map +1 -0
- package/{amd → lib/cjs}/annotation/inject_base.d.ts +1 -0
- package/lib/cjs/annotation/inject_base.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/inject_base.js +2 -0
- package/lib/cjs/annotation/inject_base.js.map +1 -0
- package/{amd → lib/cjs}/annotation/injectable.d.ts +1 -0
- package/lib/cjs/annotation/injectable.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/injectable.js +19 -7
- package/lib/cjs/annotation/injectable.js.map +1 -0
- package/{es → lib/cjs}/annotation/multi_inject.d.ts +1 -0
- package/lib/cjs/annotation/multi_inject.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/multi_inject.js +18 -7
- package/lib/cjs/annotation/multi_inject.js.map +1 -0
- package/{amd → lib/cjs}/annotation/named.d.ts +1 -0
- package/lib/cjs/annotation/named.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/named.js +19 -7
- package/lib/cjs/annotation/named.js.map +1 -0
- package/{amd → lib/cjs}/annotation/optional.d.ts +1 -0
- package/lib/cjs/annotation/optional.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/optional.js +18 -7
- package/lib/cjs/annotation/optional.js.map +1 -0
- package/{amd → lib/cjs}/annotation/post_construct.d.ts +1 -0
- package/lib/cjs/annotation/post_construct.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/post_construct.js +18 -7
- package/lib/cjs/annotation/post_construct.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/pre_destroy.d.ts +1 -0
- package/lib/cjs/annotation/pre_destroy.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/pre_destroy.js +18 -7
- package/lib/cjs/annotation/pre_destroy.js.map +1 -0
- package/{es → lib/cjs}/annotation/property_event_decorator.d.ts +1 -0
- package/lib/cjs/annotation/property_event_decorator.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/property_event_decorator.js +1 -0
- package/lib/cjs/annotation/property_event_decorator.js.map +1 -0
- package/{amd → lib/cjs}/annotation/tagged.d.ts +1 -0
- package/lib/cjs/annotation/tagged.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/tagged.js +2 -0
- package/lib/cjs/annotation/tagged.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/target_name.d.ts +1 -0
- package/lib/cjs/annotation/target_name.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/target_name.js +18 -7
- package/lib/cjs/annotation/target_name.js.map +1 -0
- package/{es6 → lib/cjs}/annotation/unmanaged.d.ts +1 -0
- package/lib/cjs/annotation/unmanaged.d.ts.map +1 -0
- package/{es6 → lib/cjs}/annotation/unmanaged.js +18 -7
- package/lib/cjs/annotation/unmanaged.js.map +1 -0
- package/{es6 → lib/cjs}/bindings/binding.d.ts +1 -0
- package/lib/cjs/bindings/binding.d.ts.map +1 -0
- package/{es6 → lib/cjs}/bindings/binding.js +29 -0
- package/lib/cjs/bindings/binding.js.map +1 -0
- package/{amd → lib/cjs}/bindings/binding_count.d.ts +1 -0
- package/lib/cjs/bindings/binding_count.d.ts.map +1 -0
- package/lib/{bindings → cjs/bindings}/binding_count.js +1 -0
- package/lib/cjs/bindings/binding_count.js.map +1 -0
- package/{amd → lib/cjs}/constants/error_msgs.d.ts +1 -0
- package/lib/cjs/constants/error_msgs.d.ts.map +1 -0
- package/{es6 → lib/cjs}/constants/error_msgs.js +2 -0
- package/lib/cjs/constants/error_msgs.js.map +1 -0
- package/{es → lib/cjs}/constants/literal_types.d.ts +1 -0
- package/lib/cjs/constants/literal_types.d.ts.map +1 -0
- package/{es6 → lib/cjs}/constants/literal_types.js +4 -0
- package/lib/cjs/constants/literal_types.js.map +1 -0
- package/{amd → lib/cjs}/constants/metadata_keys.d.ts +1 -0
- package/lib/cjs/constants/metadata_keys.d.ts.map +1 -0
- package/{es6 → lib/cjs}/constants/metadata_keys.js +13 -0
- package/lib/cjs/constants/metadata_keys.js.map +1 -0
- package/{es6 → lib/cjs}/container/container.d.ts +3 -0
- package/lib/cjs/container/container.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/container.js +157 -147
- package/lib/cjs/container/container.js.map +1 -0
- package/{amd → lib/cjs}/container/container_module.d.ts +1 -0
- package/lib/cjs/container/container_module.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/container_module.js +5 -0
- package/lib/cjs/container/container_module.js.map +1 -0
- package/{es → lib/cjs}/container/container_snapshot.d.ts +1 -0
- package/lib/cjs/container/container_snapshot.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/container_snapshot.js +6 -0
- package/lib/cjs/container/container_snapshot.js.map +1 -0
- package/{es → lib/cjs}/container/lookup.d.ts +1 -0
- package/lib/cjs/container/lookup.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/lookup.js +26 -7
- package/lib/cjs/container/lookup.js.map +1 -0
- package/{es6 → lib/cjs}/container/module_activation_store.d.ts +3 -2
- package/lib/cjs/container/module_activation_store.d.ts.map +1 -0
- package/{es6 → lib/cjs}/container/module_activation_store.js +2 -3
- package/lib/cjs/container/module_activation_store.js.map +1 -0
- package/{amd/inversify.d.ts → lib/cjs/index.d.ts} +2 -0
- package/lib/cjs/index.d.ts.map +1 -0
- package/{es6/inversify.js → lib/cjs/index.js} +20 -7
- package/lib/cjs/index.js.map +1 -0
- package/{amd → lib/cjs}/interfaces/interfaces.d.ts +3 -2
- package/lib/cjs/interfaces/interfaces.d.ts.map +1 -0
- package/lib/{interfaces → cjs/interfaces}/interfaces.js +1 -0
- package/lib/cjs/interfaces/interfaces.js.map +1 -0
- package/lib/cjs/package.json +3 -0
- package/{es6 → lib/cjs}/planning/context.d.ts +1 -0
- package/lib/cjs/planning/context.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/context.js +5 -0
- package/lib/cjs/planning/context.js.map +1 -0
- package/{es6 → lib/cjs}/planning/metadata.d.ts +1 -0
- package/lib/cjs/planning/metadata.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/metadata.js +20 -7
- package/lib/cjs/planning/metadata.js.map +1 -0
- package/{es → lib/cjs}/planning/metadata_reader.d.ts +1 -0
- package/lib/cjs/planning/metadata_reader.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/metadata_reader.js +24 -12
- package/lib/cjs/planning/metadata_reader.js.map +1 -0
- package/{amd → lib/cjs}/planning/plan.d.ts +1 -0
- package/lib/cjs/planning/plan.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/plan.js +3 -0
- package/lib/cjs/planning/plan.js.map +1 -0
- package/{amd → lib/cjs}/planning/planner.d.ts +1 -0
- package/lib/cjs/planning/planner.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/planner.js +27 -7
- package/lib/cjs/planning/planner.js.map +1 -0
- package/{amd → lib/cjs}/planning/queryable_string.d.ts +1 -0
- package/lib/cjs/planning/queryable_string.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/queryable_string.js +3 -0
- package/lib/cjs/planning/queryable_string.js.map +1 -0
- package/{amd → lib/cjs}/planning/reflection_utils.d.ts +1 -0
- package/lib/cjs/planning/reflection_utils.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/reflection_utils.js +25 -8
- package/lib/cjs/planning/reflection_utils.js.map +1 -0
- package/{amd → lib/cjs}/planning/request.d.ts +1 -0
- package/lib/cjs/planning/request.d.ts.map +1 -0
- package/{es6 → lib/cjs}/planning/request.js +13 -1
- package/lib/cjs/planning/request.js.map +1 -0
- package/{es → lib/cjs}/resolution/instantiation.d.ts +1 -0
- package/lib/cjs/resolution/instantiation.d.ts.map +1 -0
- package/{es6 → lib/cjs}/resolution/instantiation.js +40 -37
- package/lib/cjs/resolution/instantiation.js.map +1 -0
- package/{amd → lib/cjs}/resolution/resolver.d.ts +1 -0
- package/lib/cjs/resolution/resolver.d.ts.map +1 -0
- package/{es6 → lib/cjs}/resolution/resolver.js +39 -20
- package/lib/cjs/resolution/resolver.js.map +1 -0
- package/{amd → lib/cjs}/scope/scope.d.ts +1 -0
- package/lib/cjs/scope/scope.d.ts.map +1 -0
- package/{es6 → lib/cjs}/scope/scope.js +10 -12
- package/lib/cjs/scope/scope.js.map +1 -0
- package/{amd → lib/cjs}/syntax/binding_in_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_in_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_in_syntax.js +2 -0
- package/lib/cjs/syntax/binding_in_syntax.js.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_in_when_on_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_in_when_on_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_in_when_on_syntax.js +5 -0
- package/lib/cjs/syntax/binding_in_when_on_syntax.js.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_on_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_on_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_on_syntax.js +2 -0
- package/lib/cjs/syntax/binding_on_syntax.js.map +1 -0
- package/{es → lib/cjs}/syntax/binding_to_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_to_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_to_syntax.js +43 -8
- package/lib/cjs/syntax/binding_to_syntax.js.map +1 -0
- package/{amd → lib/cjs}/syntax/binding_when_on_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_when_on_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_when_on_syntax.js +4 -0
- package/lib/cjs/syntax/binding_when_on_syntax.js.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_when_syntax.d.ts +1 -0
- package/lib/cjs/syntax/binding_when_syntax.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/binding_when_syntax.js +5 -1
- package/lib/cjs/syntax/binding_when_syntax.js.map +1 -0
- package/{amd → lib/cjs}/syntax/constraint_helpers.d.ts +1 -0
- package/lib/cjs/syntax/constraint_helpers.d.ts.map +1 -0
- package/{es6 → lib/cjs}/syntax/constraint_helpers.js +22 -7
- package/lib/cjs/syntax/constraint_helpers.js.map +1 -0
- package/{amd → lib/cjs}/utils/async.d.ts +1 -0
- package/lib/cjs/utils/async.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/async.js +1 -0
- package/lib/cjs/utils/async.js.map +1 -0
- package/{es6 → lib/cjs}/utils/binding_utils.d.ts +1 -0
- package/lib/cjs/utils/binding_utils.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/binding_utils.js +21 -7
- package/lib/cjs/utils/binding_utils.js.map +1 -0
- package/{es6 → lib/cjs}/utils/clonable.d.ts +1 -0
- package/lib/cjs/utils/clonable.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/clonable.js +1 -0
- package/lib/cjs/utils/clonable.js.map +1 -0
- package/{amd → lib/cjs}/utils/exceptions.d.ts +1 -0
- package/lib/cjs/utils/exceptions.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/exceptions.js +18 -7
- package/lib/cjs/utils/exceptions.js.map +1 -0
- package/{es6 → lib/cjs}/utils/factory_type.d.ts +1 -0
- package/lib/cjs/utils/factory_type.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/factory_type.js +1 -0
- package/lib/cjs/utils/factory_type.js.map +1 -0
- package/{amd → lib/cjs}/utils/id.d.ts +1 -0
- package/lib/cjs/utils/id.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/id.js +1 -0
- package/lib/cjs/utils/id.js.map +1 -0
- package/{amd → lib/cjs}/utils/js.d.ts +1 -0
- package/lib/cjs/utils/js.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/js.js +1 -0
- package/lib/cjs/utils/js.js.map +1 -0
- package/{amd → lib/cjs}/utils/serialization.d.ts +1 -0
- package/lib/cjs/utils/serialization.d.ts.map +1 -0
- package/{es6 → lib/cjs}/utils/serialization.js +23 -7
- package/lib/cjs/utils/serialization.js.map +1 -0
- package/{es6/interfaces/interfaces.d.ts → lib/esm/index.d.ts} +207 -8
- package/lib/esm/index.d.ts.map +1 -0
- package/lib/esm/index.js +2 -0
- package/lib/esm/index.js.map +1 -0
- package/package.json +30 -34
- package/amd/annotation/decorator_utils.js +0 -119
- package/amd/annotation/inject.d.ts +0 -5
- package/amd/annotation/inject.js +0 -31
- package/amd/annotation/inject_base.js +0 -16
- package/amd/annotation/injectable.js +0 -40
- package/amd/annotation/lazy_service_identifier.js +0 -4
- package/amd/annotation/multi_inject.d.ts +0 -5
- package/amd/annotation/multi_inject.js +0 -31
- package/amd/annotation/named.js +0 -32
- package/amd/annotation/optional.js +0 -32
- package/amd/annotation/post_construct.js +0 -32
- package/amd/annotation/pre_destroy.d.ts +0 -4
- package/amd/annotation/pre_destroy.js +0 -32
- package/amd/annotation/property_event_decorator.d.ts +0 -4
- package/amd/annotation/property_event_decorator.js +0 -16
- package/amd/annotation/tagged.js +0 -8
- package/amd/annotation/target_name.d.ts +0 -3
- package/amd/annotation/target_name.js +0 -35
- package/amd/annotation/unmanaged.d.ts +0 -3
- package/amd/annotation/unmanaged.js +0 -35
- package/amd/bindings/binding.d.ts +0 -20
- package/amd/bindings/binding.js +0 -40
- package/amd/bindings/binding_count.js +0 -11
- package/amd/constants/error_msgs.js +0 -75
- package/amd/constants/literal_types.d.ts +0 -5
- package/amd/constants/literal_types.js +0 -28
- package/amd/constants/metadata_keys.js +0 -28
- package/amd/container/container.d.ts +0 -73
- package/amd/container/container.js +0 -766
- package/amd/container/container_module.js +0 -21
- package/amd/container/container_snapshot.d.ts +0 -10
- package/amd/container/container_snapshot.js +0 -20
- package/amd/container/lookup.d.ts +0 -17
- package/amd/container/lookup.js +0 -132
- package/amd/container/module_activation_store.d.ts +0 -10
- package/amd/container/module_activation_store.js +0 -51
- package/amd/interfaces/interfaces.js +0 -4
- package/amd/inversify.js +0 -57
- package/amd/planning/context.d.ts +0 -11
- package/amd/planning/context.js +0 -19
- package/amd/planning/metadata.d.ts +0 -8
- package/amd/planning/metadata.js +0 -45
- package/amd/planning/metadata_reader.d.ts +0 -6
- package/amd/planning/metadata_reader.js +0 -49
- package/amd/planning/plan.js +0 -13
- package/amd/planning/planner.js +0 -187
- package/amd/planning/queryable_string.js +0 -33
- package/amd/planning/reflection_utils.js +0 -55
- package/amd/planning/request.js +0 -24
- package/amd/planning/target.js +0 -111
- package/amd/resolution/instantiation.d.ts +0 -3
- package/amd/resolution/instantiation.js +0 -219
- package/amd/resolution/resolver.js +0 -234
- package/amd/scope/scope.js +0 -93
- package/amd/syntax/binding_in_syntax.js +0 -24
- package/amd/syntax/binding_in_when_on_syntax.d.ts +0 -29
- package/amd/syntax/binding_in_when_on_syntax.js +0 -75
- package/amd/syntax/binding_on_syntax.d.ts +0 -8
- package/amd/syntax/binding_on_syntax.js +0 -20
- package/amd/syntax/binding_to_syntax.d.ts +0 -18
- package/amd/syntax/binding_to_syntax.js +0 -116
- package/amd/syntax/binding_when_on_syntax.js +0 -65
- package/amd/syntax/binding_when_syntax.d.ts +0 -21
- package/amd/syntax/binding_when_syntax.js +0 -107
- package/amd/syntax/constraint_helpers.js +0 -66
- package/amd/utils/async.js +0 -17
- package/amd/utils/binding_utils.d.ts +0 -4
- package/amd/utils/binding_utils.js +0 -86
- package/amd/utils/clonable.d.ts +0 -3
- package/amd/utils/clonable.js +0 -11
- package/amd/utils/exceptions.js +0 -46
- package/amd/utils/factory_type.d.ts +0 -5
- package/amd/utils/factory_type.js +0 -11
- package/amd/utils/id.js +0 -9
- package/amd/utils/js.js +0 -18
- package/amd/utils/serialization.js +0 -135
- package/es/annotation/decorator_utils.d.ts +0 -16
- package/es/annotation/decorator_utils.js +0 -90
- package/es/annotation/inject.d.ts +0 -5
- package/es/annotation/inject.js +0 -4
- package/es/annotation/inject_base.d.ts +0 -4
- package/es/annotation/inject_base.js +0 -14
- package/es/annotation/injectable.d.ts +0 -2
- package/es/annotation/injectable.js +0 -13
- package/es/annotation/lazy_service_identifier.js +0 -1
- package/es/annotation/multi_inject.js +0 -4
- package/es/annotation/named.d.ts +0 -2
- package/es/annotation/named.js +0 -7
- package/es/annotation/optional.d.ts +0 -2
- package/es/annotation/optional.js +0 -7
- package/es/annotation/post_construct.d.ts +0 -4
- package/es/annotation/post_construct.js +0 -5
- package/es/annotation/pre_destroy.d.ts +0 -4
- package/es/annotation/pre_destroy.js +0 -5
- package/es/annotation/property_event_decorator.js +0 -13
- package/es/annotation/tagged.d.ts +0 -2
- package/es/annotation/tagged.js +0 -6
- package/es/annotation/target_name.d.ts +0 -3
- package/es/annotation/target_name.js +0 -10
- package/es/annotation/unmanaged.d.ts +0 -3
- package/es/annotation/unmanaged.js +0 -10
- package/es/bindings/binding.d.ts +0 -20
- package/es/bindings/binding.js +0 -37
- package/es/bindings/binding_count.d.ts +0 -5
- package/es/bindings/binding_count.js +0 -6
- package/es/constants/error_msgs.d.ts +0 -30
- package/es/constants/error_msgs.js +0 -62
- package/es/constants/literal_types.js +0 -21
- package/es/constants/metadata_keys.d.ts +0 -13
- package/es/constants/metadata_keys.js +0 -23
- package/es/container/container.d.ts +0 -73
- package/es/container/container.js +0 -750
- package/es/container/container_module.d.ts +0 -11
- package/es/container/container_module.js +0 -17
- package/es/container/container_snapshot.js +0 -15
- package/es/container/lookup.js +0 -105
- package/es/container/module_activation_store.d.ts +0 -10
- package/es/container/module_activation_store.js +0 -47
- package/es/interfaces/interfaces.d.ts +0 -269
- package/es/interfaces/interfaces.js +0 -1
- package/es/inversify.d.ts +0 -24
- package/es/inversify.js +0 -2
- package/es/planning/context.d.ts +0 -11
- package/es/planning/context.js +0 -15
- package/es/planning/metadata.d.ts +0 -8
- package/es/planning/metadata.js +0 -17
- package/es/planning/metadata_reader.js +0 -21
- package/es/planning/plan.d.ts +0 -7
- package/es/planning/plan.js +0 -8
- package/es/planning/planner.d.ts +0 -5
- package/es/planning/planner.js +0 -168
- package/es/planning/queryable_string.d.ts +0 -10
- package/es/planning/queryable_string.js +0 -28
- package/es/planning/reflection_utils.d.ts +0 -5
- package/es/planning/reflection_utils.js +0 -27
- package/es/planning/request.d.ts +0 -14
- package/es/planning/request.js +0 -20
- package/es/planning/target.js +0 -87
- package/es/resolution/instantiation.js +0 -195
- package/es/resolution/resolver.d.ts +0 -3
- package/es/resolution/resolver.js +0 -214
- package/es/scope/scope.d.ts +0 -3
- package/es/scope/scope.js +0 -88
- package/es/syntax/binding_in_syntax.d.ts +0 -9
- package/es/syntax/binding_in_syntax.js +0 -21
- package/es/syntax/binding_in_when_on_syntax.d.ts +0 -29
- package/es/syntax/binding_in_when_on_syntax.js +0 -73
- package/es/syntax/binding_on_syntax.d.ts +0 -8
- package/es/syntax/binding_on_syntax.js +0 -16
- package/es/syntax/binding_to_syntax.js +0 -91
- package/es/syntax/binding_when_on_syntax.d.ts +0 -25
- package/es/syntax/binding_when_on_syntax.js +0 -62
- package/es/syntax/binding_when_syntax.d.ts +0 -21
- package/es/syntax/binding_when_syntax.js +0 -104
- package/es/syntax/constraint_helpers.d.ts +0 -6
- package/es/syntax/constraint_helpers.js +0 -36
- package/es/utils/async.d.ts +0 -3
- package/es/utils/async.js +0 -12
- package/es/utils/binding_utils.d.ts +0 -4
- package/es/utils/binding_utils.js +0 -58
- package/es/utils/clonable.d.ts +0 -3
- package/es/utils/clonable.js +0 -7
- package/es/utils/exceptions.d.ts +0 -2
- package/es/utils/exceptions.js +0 -16
- package/es/utils/factory_type.d.ts +0 -5
- package/es/utils/factory_type.js +0 -6
- package/es/utils/id.d.ts +0 -2
- package/es/utils/id.js +0 -5
- package/es/utils/js.d.ts +0 -1
- package/es/utils/js.js +0 -13
- package/es/utils/serialization.d.ts +0 -10
- package/es/utils/serialization.js +0 -103
- package/es6/annotation/decorator_utils.d.ts +0 -16
- package/es6/annotation/inject_base.d.ts +0 -4
- package/es6/annotation/injectable.d.ts +0 -2
- package/es6/annotation/lazy_service_identifier.js +0 -2
- package/es6/annotation/multi_inject.d.ts +0 -5
- package/es6/annotation/named.d.ts +0 -2
- package/es6/annotation/optional.d.ts +0 -2
- package/es6/annotation/post_construct.d.ts +0 -4
- package/es6/annotation/property_event_decorator.d.ts +0 -4
- package/es6/annotation/tagged.d.ts +0 -2
- package/es6/bindings/binding_count.d.ts +0 -5
- package/es6/bindings/binding_count.js +0 -9
- package/es6/constants/error_msgs.d.ts +0 -30
- package/es6/constants/literal_types.d.ts +0 -5
- package/es6/constants/metadata_keys.d.ts +0 -13
- package/es6/container/container_module.d.ts +0 -11
- package/es6/container/container_snapshot.d.ts +0 -10
- package/es6/container/lookup.d.ts +0 -17
- package/es6/interfaces/interfaces.js +0 -2
- package/es6/inversify.d.ts +0 -24
- package/es6/planning/metadata_reader.d.ts +0 -6
- package/es6/planning/plan.d.ts +0 -7
- package/es6/planning/planner.d.ts +0 -5
- package/es6/planning/queryable_string.d.ts +0 -10
- package/es6/planning/reflection_utils.d.ts +0 -5
- package/es6/planning/request.d.ts +0 -14
- package/es6/planning/target.js +0 -105
- package/es6/resolution/instantiation.d.ts +0 -3
- package/es6/resolution/resolver.d.ts +0 -3
- package/es6/scope/scope.d.ts +0 -3
- package/es6/syntax/binding_in_syntax.d.ts +0 -9
- package/es6/syntax/binding_to_syntax.d.ts +0 -18
- package/es6/syntax/binding_when_on_syntax.d.ts +0 -25
- package/es6/syntax/constraint_helpers.d.ts +0 -6
- package/es6/utils/async.d.ts +0 -3
- package/es6/utils/exceptions.d.ts +0 -2
- package/es6/utils/id.d.ts +0 -2
- package/es6/utils/js.d.ts +0 -1
- package/es6/utils/serialization.d.ts +0 -10
- package/lib/annotation/decorator_utils.d.ts +0 -16
- package/lib/annotation/decorator_utils.js +0 -118
- package/lib/annotation/inject.d.ts +0 -5
- package/lib/annotation/inject.js +0 -30
- package/lib/annotation/inject_base.d.ts +0 -4
- package/lib/annotation/inject_base.js +0 -17
- package/lib/annotation/injectable.d.ts +0 -2
- package/lib/annotation/injectable.js +0 -38
- package/lib/annotation/lazy_service_identifier.d.ts +0 -3
- package/lib/annotation/lazy_service_identifier.js +0 -2
- package/lib/annotation/multi_inject.d.ts +0 -5
- package/lib/annotation/multi_inject.js +0 -30
- package/lib/annotation/named.d.ts +0 -2
- package/lib/annotation/named.js +0 -32
- package/lib/annotation/optional.d.ts +0 -2
- package/lib/annotation/optional.js +0 -32
- package/lib/annotation/post_construct.d.ts +0 -4
- package/lib/annotation/post_construct.js +0 -31
- package/lib/annotation/pre_destroy.d.ts +0 -4
- package/lib/annotation/pre_destroy.js +0 -31
- package/lib/annotation/property_event_decorator.d.ts +0 -4
- package/lib/annotation/property_event_decorator.js +0 -15
- package/lib/annotation/tagged.d.ts +0 -2
- package/lib/annotation/tagged.js +0 -8
- package/lib/annotation/target_name.d.ts +0 -3
- package/lib/annotation/target_name.js +0 -35
- package/lib/annotation/unmanaged.d.ts +0 -3
- package/lib/annotation/unmanaged.js +0 -35
- package/lib/bindings/binding.d.ts +0 -20
- package/lib/bindings/binding.js +0 -40
- package/lib/bindings/binding_count.d.ts +0 -5
- package/lib/constants/error_msgs.d.ts +0 -30
- package/lib/constants/error_msgs.js +0 -73
- package/lib/constants/literal_types.d.ts +0 -5
- package/lib/constants/literal_types.js +0 -26
- package/lib/constants/metadata_keys.d.ts +0 -13
- package/lib/constants/metadata_keys.js +0 -26
- package/lib/container/container.d.ts +0 -73
- package/lib/container/container.js +0 -776
- package/lib/container/container_module.d.ts +0 -11
- package/lib/container/container_module.js +0 -20
- package/lib/container/container_snapshot.d.ts +0 -10
- package/lib/container/container_snapshot.js +0 -18
- package/lib/container/lookup.d.ts +0 -17
- package/lib/container/lookup.js +0 -131
- package/lib/container/module_activation_store.d.ts +0 -10
- package/lib/container/module_activation_store.js +0 -50
- package/lib/interfaces/interfaces.d.ts +0 -269
- package/lib/inversify.d.ts +0 -24
- package/lib/inversify.js +0 -76
- package/lib/planning/context.d.ts +0 -11
- package/lib/planning/context.js +0 -18
- package/lib/planning/metadata.d.ts +0 -8
- package/lib/planning/metadata.js +0 -43
- package/lib/planning/metadata_reader.d.ts +0 -6
- package/lib/planning/metadata_reader.js +0 -47
- package/lib/planning/plan.d.ts +0 -7
- package/lib/planning/plan.js +0 -11
- package/lib/planning/planner.d.ts +0 -5
- package/lib/planning/planner.js +0 -195
- package/lib/planning/queryable_string.d.ts +0 -10
- package/lib/planning/queryable_string.js +0 -31
- package/lib/planning/reflection_utils.d.ts +0 -5
- package/lib/planning/reflection_utils.js +0 -55
- package/lib/planning/request.d.ts +0 -14
- package/lib/planning/request.js +0 -23
- package/lib/planning/target.d.ts +0 -23
- package/lib/planning/target.js +0 -113
- package/lib/resolution/instantiation.d.ts +0 -3
- package/lib/resolution/instantiation.js +0 -220
- package/lib/resolution/resolver.d.ts +0 -3
- package/lib/resolution/resolver.js +0 -239
- package/lib/scope/scope.d.ts +0 -3
- package/lib/scope/scope.js +0 -93
- package/lib/syntax/binding_in_syntax.d.ts +0 -9
- package/lib/syntax/binding_in_syntax.js +0 -24
- package/lib/syntax/binding_in_when_on_syntax.d.ts +0 -29
- package/lib/syntax/binding_in_when_on_syntax.js +0 -76
- package/lib/syntax/binding_on_syntax.d.ts +0 -8
- package/lib/syntax/binding_on_syntax.js +0 -19
- package/lib/syntax/binding_to_syntax.d.ts +0 -18
- package/lib/syntax/binding_to_syntax.js +0 -117
- package/lib/syntax/binding_when_on_syntax.d.ts +0 -25
- package/lib/syntax/binding_when_on_syntax.js +0 -65
- package/lib/syntax/binding_when_syntax.d.ts +0 -21
- package/lib/syntax/binding_when_syntax.js +0 -107
- package/lib/syntax/constraint_helpers.d.ts +0 -6
- package/lib/syntax/constraint_helpers.js +0 -65
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/utils/async.d.ts +0 -3
- package/lib/utils/async.js +0 -15
- package/lib/utils/binding_utils.d.ts +0 -4
- package/lib/utils/binding_utils.js +0 -87
- package/lib/utils/clonable.d.ts +0 -3
- package/lib/utils/clonable.js +0 -9
- package/lib/utils/exceptions.d.ts +0 -2
- package/lib/utils/exceptions.js +0 -44
- package/lib/utils/factory_type.d.ts +0 -5
- package/lib/utils/factory_type.js +0 -9
- package/lib/utils/id.d.ts +0 -2
- package/lib/utils/id.js +0 -7
- package/lib/utils/js.d.ts +0 -1
- package/lib/utils/js.js +0 -16
- package/lib/utils/serialization.d.ts +0 -10
- package/lib/utils/serialization.js +0 -133
- /package/{es → lib/esm}/package.json +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -12,6 +12,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
12
12
|
|
|
13
13
|
### Fixed
|
|
14
14
|
|
|
15
|
+
## [6.1.5-beta.1]
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Updated ESM build to provide proper types regardless of the ts resolution module strategy in the userland.
|
|
19
|
+
|
|
20
|
+
## [6.1.5-beta.0]
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
- Updated library to import `reflect-metadata`. Importing `reflect-metadata` before bootstraping a module in the userland is no longer required.
|
|
24
|
+
|
|
25
|
+
### Fixed
|
|
26
|
+
- Fixed container to properly resolve async `.toService` bindings.
|
|
27
|
+
- Fixed `.toService` binding to properly disable caching any values.
|
|
28
|
+
|
|
15
29
|
## [6.1.4]
|
|
16
30
|
|
|
17
31
|
### Changed
|
|
@@ -63,10 +77,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
63
77
|
|
|
64
78
|
### Changed
|
|
65
79
|
- Updated `ServiceIdentifier` to rely on `Function` instead of `Abstract<T>`.
|
|
66
|
-
- `injectable` decorator is no longer required.
|
|
67
80
|
|
|
68
81
|
### Fixed
|
|
69
82
|
- Fixed `Target.getNameTag` with the right type: `number | string | symbol`.
|
|
83
|
+
- Fixed `interfaces.ModuleActivationStore.addDeactivation` to enforce `serviceIdentifier` and `onDeactivation` are consistent.
|
|
84
|
+
- Fixed `interfaces.ModuleActivationStore.addActivation` to enforce `serviceIdentifier` and `onDeactivation` are consistent.
|
|
70
85
|
|
|
71
86
|
## [6.0.3]
|
|
72
87
|
|
package/README.md
CHANGED
|
@@ -63,24 +63,18 @@ You can get the latest release and the type definitions using your preferred pac
|
|
|
63
63
|
> pnpm add inversify reflect-metadata
|
|
64
64
|
```
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
`reflect-metadata` will be automatically imported by inversify.
|
|
67
67
|
|
|
68
68
|
The InversifyJS type definitions are included in the inversify npm package.
|
|
69
69
|
|
|
70
|
-
> :warning: **Important!** InversifyJS requires TypeScript >= 4.4 and the `experimentalDecorators`, `emitDecoratorMetadata`,
|
|
71
|
-
compilation options in your `tsconfig.json` file.
|
|
70
|
+
> :warning: **Important!** InversifyJS requires TypeScript >= 4.4 and the `experimentalDecorators`, `emitDecoratorMetadata`, compilation options in your `tsconfig.json` file.
|
|
72
71
|
|
|
73
72
|
```json
|
|
74
73
|
{
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
"module": "commonjs",
|
|
80
|
-
"moduleResolution": "node",
|
|
81
|
-
"experimentalDecorators": true,
|
|
82
|
-
"emitDecoratorMetadata": true
|
|
83
|
-
}
|
|
74
|
+
"compilerOptions": {
|
|
75
|
+
"experimentalDecorators": true,
|
|
76
|
+
"emitDecoratorMetadata": true
|
|
77
|
+
}
|
|
84
78
|
}
|
|
85
79
|
```
|
|
86
80
|
|
|
@@ -93,8 +87,6 @@ InversifyJS requires a modern JavaScript engine with support for:
|
|
|
93
87
|
|
|
94
88
|
If your environment doesn't support one of these you will need to import a shim or polyfill.
|
|
95
89
|
|
|
96
|
-
> :warning: **The `reflect-metadata` polyfill should be imported only once in your entire application** because the Reflect object is meant to be a global singleton. More details about this can be found [here](https://github.com/inversify/InversifyJS/issues/262#issuecomment-227593844).
|
|
97
|
-
|
|
98
90
|
Check out the [Environment support and polyfills](https://github.com/inversify/InversifyJS/blob/master/wiki/environment.md)
|
|
99
91
|
page in the wiki and the [Basic example](https://github.com/inversify/inversify-basic-example) to learn more.
|
|
100
92
|
|
|
@@ -152,7 +144,6 @@ When a class has a dependency on an interface we also need to use the `@inject`
|
|
|
152
144
|
// file entities.ts
|
|
153
145
|
|
|
154
146
|
import { injectable, inject } from "inversify";
|
|
155
|
-
import "reflect-metadata";
|
|
156
147
|
import { Weapon, ThrowableWeapon, Warrior } from "./interfaces";
|
|
157
148
|
import { TYPES } from "./types";
|
|
158
149
|
|
|
@@ -14,3 +14,4 @@ declare function tagProperty(annotationTarget: DecoratorTarget, propertyName: st
|
|
|
14
14
|
declare function createTaggedDecorator(metadata: interfaces.MetadataOrMetadataArray): <T>(target: DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
|
|
15
15
|
declare function decorate(decorator: DecoratorTarget | ParameterDecorator | MethodDecorator, target: object, parameterIndexOrProperty?: number | string): void;
|
|
16
16
|
export { decorate, tagParameter, tagProperty, createTaggedDecorator };
|
|
17
|
+
//# sourceMappingURL=decorator_utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorator_utils.d.ts","sourceRoot":"","sources":["../../../src/annotation/decorator_utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAStD,KAAK,SAAS,CAAC,CAAC,IAAI;KACjB,QAAQ,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,SAAS,eAAe,GACtD,CAAC,CAAC,QAAQ,CAAC,GACX,CAAC,CAAC,QAAQ,CAAC,GAAG,SAAS;CAC5B,GAAG;IAAE,WAAW,EAAE,eAAe,CAAA;CAAE,CAAC;AAErC,UAAU,mBAAmB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IACvD,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC;IACxB,KAAK,GAAG,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,CAAC;CAC7B;AAED,MAAM,MAAM,eAAe,CAAC,CAAC,GAAG,OAAO,IACnC,mBAAmB,CAAC,CAAC,CAAC,GACtB,SAAS,CAAC,CAAC,CAAC,CAAC;AAUjB,iBAAS,YAAY,CACnB,gBAAgB,EAAE,eAAe,EACjC,aAAa,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,EAC1C,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,UAAU,CAAC,uBAAuB,QAS7C;AAED,iBAAS,WAAW,CAClB,gBAAgB,EAAE,eAAe,EACjC,YAAY,EAAE,MAAM,GAAG,MAAM,EAC7B,QAAQ,EAAE,UAAU,CAAC,uBAAuB,QAW7C;AAqED,iBAAS,qBAAqB,CAAC,QAAQ,EAAE,UAAU,CAAC,uBAAuB,IACjE,CAAC,UACC,eAAe,cACX,MAAM,GAAG,MAAM,8BACC,MAAM,GAAG,uBAAuB,CAAC,CAAC,CAAC,UAQlE;AAoBD,iBAAS,QAAQ,CACf,SAAS,EAAE,eAAe,GAAG,kBAAkB,GAAG,eAAe,EACjE,MAAM,EAAE,MAAM,EACd,wBAAwB,CAAC,EAAE,MAAM,GAAG,MAAM,GACzC,IAAI,CAeN;AAED,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,qBAAqB,EAAE,CAAC"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.decorate = decorate;
|
|
27
37
|
exports.tagParameter = tagParameter;
|
|
@@ -65,6 +75,7 @@ function _ensureNoMetadataKeyDuplicates(metadata) {
|
|
|
65
75
|
function _tagParameterOrProperty(metadataKey, annotationTarget, key, metadata) {
|
|
66
76
|
const metadatas = _ensureNoMetadataKeyDuplicates(metadata);
|
|
67
77
|
let paramsOrPropertiesMetadata = {};
|
|
78
|
+
// read metadata if available
|
|
68
79
|
if (Reflect.hasOwnMetadata(metadataKey, annotationTarget)) {
|
|
69
80
|
paramsOrPropertiesMetadata = Reflect.getMetadata(metadataKey, annotationTarget);
|
|
70
81
|
}
|
|
@@ -79,6 +90,7 @@ function _tagParameterOrProperty(metadataKey, annotationTarget, key, metadata) {
|
|
|
79
90
|
}
|
|
80
91
|
}
|
|
81
92
|
}
|
|
93
|
+
// set metadata
|
|
82
94
|
paramOrPropertyMetadata.push(...metadatas);
|
|
83
95
|
paramsOrPropertiesMetadata[key] = paramOrPropertyMetadata;
|
|
84
96
|
Reflect.defineMetadata(metadataKey, paramsOrPropertiesMetadata, annotationTarget);
|
|
@@ -101,6 +113,11 @@ function _param(paramIndex, decorator) {
|
|
|
101
113
|
decorator(target, key, paramIndex);
|
|
102
114
|
};
|
|
103
115
|
}
|
|
116
|
+
// Allows VanillaJS developers to use decorators:
|
|
117
|
+
// decorate(injectable(), FooBar);
|
|
118
|
+
// decorate(targetName('foo', 'bar'), FooBar);
|
|
119
|
+
// decorate(named('foo'), FooBar, 0);
|
|
120
|
+
// decorate(tagged('bar'), FooBar, 1);
|
|
104
121
|
function decorate(decorator, target, parameterIndexOrProperty) {
|
|
105
122
|
if (typeof parameterIndexOrProperty === 'number') {
|
|
106
123
|
_decorate([_param(parameterIndexOrProperty, decorator)], target);
|
|
@@ -112,3 +129,4 @@ function decorate(decorator, target, parameterIndexOrProperty) {
|
|
|
112
129
|
_decorate([decorator], target);
|
|
113
130
|
}
|
|
114
131
|
}
|
|
132
|
+
//# sourceMappingURL=decorator_utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decorator_utils.js","sourceRoot":"","sources":["../../../src/annotation/decorator_utils.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyLS,4BAAQ;AAAE,oCAAY;AAAE,kCAAW;AAAE,sDAAqB;AAzLnE,oEAAsD;AACtD,yEAA2D;AAE3D,oCAAqD;AAErD,SAAS,2BAA2B,CAClC,MAA0B;IAE1B,OAAQ,MAA0C,CAAC,SAAS,KAAK,SAAS,CAAC;AAC7E,CAAC;AAiBD,SAAS,uBAAuB,CAC9B,aAA0C;IAE1C,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC;AAED,SAAS,YAAY,CACnB,gBAAiC,EACjC,aAA0C,EAC1C,cAAsB,EACtB,QAA4C;IAE5C,uBAAuB,CAAC,aAAa,CAAC,CAAC;IACvC,uBAAuB,CACrB,YAAY,CAAC,MAAM,EACnB,gBAAuC,EACvC,cAAc,CAAC,QAAQ,EAAE,EACzB,QAAQ,CACT,CAAC;AACJ,CAAC;AAED,SAAS,WAAW,CAClB,gBAAiC,EACjC,YAA6B,EAC7B,QAA4C;IAE5C,IAAI,2BAA2B,CAAC,gBAAgB,CAAC,EAAE,CAAC;QAClD,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;IAC1D,CAAC;IACD,uBAAuB,CACrB,YAAY,CAAC,WAAW,EACxB,gBAAgB,CAAC,WAAW,EAC5B,YAAY,EACZ,QAAQ,CACT,CAAC;AACJ,CAAC;AAED,SAAS,8BAA8B,CACrC,QAA4C;IAE5C,IAAI,SAAS,GAA0B,EAAE,CAAC;IAC1C,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC5B,SAAS,GAAG,QAAQ,CAAC;QACrB,MAAM,SAAS,GACb,IAAA,2BAAsB,EACpB,SAAS,CAAC,GAAG,CAAC,CAAC,EAAuB,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,CAAC,CACnD,CAAC;QACJ,IAAI,SAAS,KAAK,SAAS,EAAE,CAAC;YAC5B,MAAM,IAAI,KAAK,CACb,GAAG,UAAU,CAAC,mBAAmB,IAAI,SAAS,CAAC,QAAQ,EAAE,EAAE,CAC5D,CAAC;QACJ,CAAC;IACH,CAAC;SAAM,CAAC;QACN,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED,SAAS,uBAAuB,CAC9B,WAAmB,EACnB,gBAAiC,EACjC,GAAoB,EACpB,QAA4C;IAE5C,MAAM,SAAS,GACb,8BAA8B,CAAC,QAAQ,CAAC,CAAC;IAE3C,IAAI,0BAA0B,GAG1B,EAAE,CAAC;IACP,6BAA6B;IAC7B,IAAI,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,gBAAgB,CAAC,EAAE,CAAC;QAC1D,0BAA0B,GAAG,OAAO,CAAC,WAAW,CAC9C,WAAW,EACX,gBAAgB,CACS,CAAC;IAC9B,CAAC;IAED,IAAI,uBAAuB,GACzB,0BAA0B,CAAC,GAAG,CAAC,CAAC;IAElC,IAAI,uBAAuB,KAAK,SAAS,EAAE,CAAC;QAC1C,uBAAuB,GAAG,EAAE,CAAC;IAC/B,CAAC;SAAM,CAAC;QACN,KAAK,MAAM,CAAC,IAAI,uBAAuB,EAAE,CAAC;YACxC,IAAI,SAAS,CAAC,IAAI,CAAC,CAAC,EAAuB,EAAE,EAAE,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC;gBAClE,MAAM,IAAI,KAAK,CACb,GAAG,UAAU,CAAC,mBAAmB,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,EAAE,CACxD,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IAED,eAAe;IACf,uBAAuB,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC,CAAC;IAC3C,0BAA0B,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC;IAC1D,OAAO,CAAC,cAAc,CACpB,WAAW,EACX,0BAA0B,EAC1B,gBAAgB,CACjB,CAAC;AACJ,CAAC;AAED,SAAS,qBAAqB,CAAC,QAA4C;IACzE,OAAO,CACL,MAAuB,EACvB,SAA2B,EAC3B,yBAA+D,EAC/D,EAAE;QACF,IAAI,OAAO,yBAAyB,KAAK,QAAQ,EAAE,CAAC;YAClD,YAAY,CAAC,MAAM,EAAE,SAAS,EAAE,yBAAyB,EAAE,QAAQ,CAAC,CAAC;QACvE,CAAC;aAAM,CAAC;YACN,WAAW,CAAC,MAAM,EAAE,SAA4B,EAAE,QAAQ,CAAC,CAAC;QAC9D,CAAC;IACH,CAAC,CAAC;AACJ,CAAC;AAED,SAAS,SAAS,CAChB,UAAsE,EACtE,MAAgC;IAEhC,OAAO,CAAC,QAAQ,CAAC,UAA8B,EAAE,MAAyB,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,MAAM,CAAC,UAAkB,EAAE,SAA6B;IAC/D,OAAO,UAAU,MAAc,EAAE,GAAW;QAC1C,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC;IACrC,CAAC,CAAC;AACJ,CAAC;AAED,iDAAiD;AACjD,kCAAkC;AAClC,8CAA8C;AAC9C,qCAAqC;AACrC,sCAAsC;AACtC,SAAS,QAAQ,CACf,SAAiE,EACjE,MAAc,EACd,wBAA0C;IAE1C,IAAI,OAAO,wBAAwB,KAAK,QAAQ,EAAE,CAAC;QACjD,SAAS,CACP,CAAC,MAAM,CAAC,wBAAwB,EAAE,SAA+B,CAAC,CAAC,EACnE,MAAM,CACP,CAAC;IACJ,CAAC;SAAM,IAAI,OAAO,wBAAwB,KAAK,QAAQ,EAAE,CAAC;QACxD,OAAO,CAAC,QAAQ,CACd,CAAC,SAA4B,CAAC,EAC9B,MAAM,EACN,wBAAwB,CACzB,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,SAAS,CAAC,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,CAAC;IACjC,CAAC;AACH,CAAC"}
|
|
@@ -3,3 +3,4 @@ import { interfaces } from '../interfaces/interfaces';
|
|
|
3
3
|
import { DecoratorTarget } from './decorator_utils';
|
|
4
4
|
declare const inject: <T = unknown>(serviceIdentifier: interfaces.ServiceIdentifier<T> | LazyServiceIdentifier<T>) => (target: DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
|
|
5
5
|
export { inject };
|
|
6
|
+
//# sourceMappingURL=inject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject.d.ts","sourceRoot":"","sources":["../../../src/annotation/inject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,QAAA,MAAM,MAAM,EAAE,CAAC,CAAC,GAAG,OAAO,EACxB,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,KAC1E,CACH,MAAM,EAAE,eAAe,EACvB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAC3B,yBAAyB,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,CAAC,CAAC,KAC5D,IAA0C,CAAC;AAEhD,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -15,16 +15,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.inject = void 0;
|
|
27
37
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
28
38
|
const inject_base_1 = require("./inject_base");
|
|
29
39
|
const inject = (0, inject_base_1.injectBase)(METADATA_KEY.INJECT_TAG);
|
|
30
40
|
exports.inject = inject;
|
|
41
|
+
//# sourceMappingURL=inject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject.js","sourceRoot":"","sources":["../../../src/annotation/inject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yEAA2D;AAG3D,+CAA2C;AAE3C,MAAM,MAAM,GAMA,IAAA,wBAAU,EAAC,YAAY,CAAC,UAAU,CAAC,CAAC;AAEvC,wBAAM"}
|
|
@@ -2,3 +2,4 @@ import { LazyServiceIdentifier } from '@inversifyjs/common';
|
|
|
2
2
|
import { interfaces } from '../interfaces/interfaces';
|
|
3
3
|
import { DecoratorTarget } from './decorator_utils';
|
|
4
4
|
export declare function injectBase(metadataKey: string): <T = unknown>(serviceIdentifier: interfaces.ServiceIdentifier<T> | LazyServiceIdentifier<T>) => (target: DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
|
|
5
|
+
//# sourceMappingURL=inject_base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject_base.d.ts","sourceRoot":"","sources":["../../../src/annotation/inject_base.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAEtD,OAAO,EAAyB,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAE3E,wBAAgB,UAAU,CACxB,WAAW,EAAE,MAAM,GAClB,CAAC,CAAC,GAAG,OAAO,EACb,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,KAC1E,CACH,MAAM,EAAE,eAAe,EACvB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAC3B,yBAAyB,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,CAAC,CAAC,KAC5D,IAAI,CA0BR"}
|
|
@@ -7,6 +7,7 @@ const decorator_utils_1 = require("./decorator_utils");
|
|
|
7
7
|
function injectBase(metadataKey) {
|
|
8
8
|
return (serviceIdentifier) => {
|
|
9
9
|
return (target, targetKey, indexOrPropertyDescriptor) => {
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
|
10
11
|
if (serviceIdentifier === undefined) {
|
|
11
12
|
const className = typeof target === 'function' ? target.name : target.constructor.name;
|
|
12
13
|
throw new Error((0, error_msgs_1.UNDEFINED_INJECT_ANNOTATION)(className));
|
|
@@ -15,3 +16,4 @@ function injectBase(metadataKey) {
|
|
|
15
16
|
};
|
|
16
17
|
};
|
|
17
18
|
}
|
|
19
|
+
//# sourceMappingURL=inject_base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inject_base.js","sourceRoot":"","sources":["../../../src/annotation/inject_base.ts"],"names":[],"mappings":";;AAOA,gCAkCC;AAvCD,wDAAsE;AAEtE,mDAAgD;AAChD,uDAA2E;AAE3E,SAAgB,UAAU,CACxB,WAAmB;IAQnB,OAAO,CACL,iBAE4B,EAC5B,EAAE;QACF,OAAO,CACL,MAAuB,EACvB,SAA2B,EAC3B,yBAA+D,EAC/D,EAAE;YACF,uEAAuE;YACvE,IAAI,iBAAiB,KAAK,SAAS,EAAE,CAAC;gBACpC,MAAM,SAAS,GACb,OAAO,MAAM,KAAK,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;gBAEvE,MAAM,IAAI,KAAK,CAAC,IAAA,wCAA2B,EAAC,SAAS,CAAC,CAAC,CAAC;YAC1D,CAAC;YAED,IAAA,uCAAqB,EAAC,IAAI,mBAAQ,CAAC,WAAW,EAAE,iBAAiB,CAAC,CAAC,CACjE,MAAM,EACN,SAAS,EACT,yBAAyB,CAC1B,CAAC;QACJ,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectable.d.ts","sourceRoot":"","sources":["../../../src/annotation/injectable.ts"],"names":[],"mappings":"AAGA,iBAAS,UAAU,KAEA,CAAC,SAAS,QAAQ,MAAM,GAAG,IAAI,EAAE,GAAG,KAAK,OAAO,UACvD,CAAC,OAcZ;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -15,18 +15,29 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.injectable = injectable;
|
|
27
37
|
const ERRORS_MSGS = __importStar(require("../constants/error_msgs"));
|
|
28
38
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
29
39
|
function injectable() {
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
30
41
|
return function (target) {
|
|
31
42
|
if (Reflect.hasOwnMetadata(METADATA_KEY.PARAM_TYPES, target)) {
|
|
32
43
|
throw new Error(ERRORS_MSGS.DUPLICATED_INJECTABLE_DECORATOR);
|
|
@@ -36,3 +47,4 @@ function injectable() {
|
|
|
36
47
|
return target;
|
|
37
48
|
};
|
|
38
49
|
}
|
|
50
|
+
//# sourceMappingURL=injectable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"injectable.js","sourceRoot":"","sources":["../../../src/annotation/injectable.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsBS,gCAAU;AAtBnB,qEAAuD;AACvD,yEAA2D;AAE3D,SAAS,UAAU;IACjB,8DAA8D;IAC9D,OAAO,UACL,MAAS;QAET,IAAI,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE,CAAC;YAC7D,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAC;QAC/D,CAAC;QAED,MAAM,KAAK,GACR,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,kBAAkB,EAAE,MAAM,CAE9C,IAAI,EAAE,CAAC;QACvB,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;QAEhE,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -3,3 +3,4 @@ import { interfaces } from '../interfaces/interfaces';
|
|
|
3
3
|
import { DecoratorTarget } from './decorator_utils';
|
|
4
4
|
declare const multiInject: <T = unknown>(serviceIdentifier: interfaces.ServiceIdentifier<T> | LazyServiceIdentifier<T>) => (target: DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
|
|
5
5
|
export { multiInject };
|
|
6
|
+
//# sourceMappingURL=multi_inject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi_inject.d.ts","sourceRoot":"","sources":["../../../src/annotation/multi_inject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,QAAA,MAAM,WAAW,EAAE,CAAC,CAAC,GAAG,OAAO,EAC7B,iBAAiB,EAAE,UAAU,CAAC,iBAAiB,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,KAC1E,CACH,MAAM,EAAE,eAAe,EACvB,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAC3B,yBAAyB,CAAC,EAAE,MAAM,GAAG,uBAAuB,CAAC,CAAC,CAAC,KAC5D,IAAgD,CAAC;AAEtD,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -15,16 +15,27 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.multiInject = void 0;
|
|
27
37
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
28
38
|
const inject_base_1 = require("./inject_base");
|
|
29
39
|
const multiInject = (0, inject_base_1.injectBase)(METADATA_KEY.MULTI_INJECT_TAG);
|
|
30
40
|
exports.multiInject = multiInject;
|
|
41
|
+
//# sourceMappingURL=multi_inject.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"multi_inject.js","sourceRoot":"","sources":["../../../src/annotation/multi_inject.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,yEAA2D;AAG3D,+CAA2C;AAE3C,MAAM,WAAW,GAML,IAAA,wBAAU,EAAC,YAAY,CAAC,gBAAgB,CAAC,CAAC;AAE7C,kCAAW"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"named.d.ts","sourceRoot":"","sources":["../../../src/annotation/named.ts"],"names":[],"mappings":"AAKA,iBAAS,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,kKAE5C;AAED,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -15,18 +15,30 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.named = named;
|
|
27
37
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
28
38
|
const metadata_1 = require("../planning/metadata");
|
|
29
39
|
const decorator_utils_1 = require("./decorator_utils");
|
|
40
|
+
// Used to add named metadata which is used to resolve name-based contextual bindings.
|
|
30
41
|
function named(name) {
|
|
31
42
|
return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(METADATA_KEY.NAMED_TAG, name));
|
|
32
43
|
}
|
|
44
|
+
//# sourceMappingURL=named.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"named.js","sourceRoot":"","sources":["../../../src/annotation/named.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASS,sBAAK;AATd,yEAA2D;AAC3D,mDAAgD;AAChD,uDAA0D;AAE1D,sFAAsF;AACtF,SAAS,KAAK,CAAC,IAA8B;IAC3C,OAAO,IAAA,uCAAqB,EAAC,IAAI,mBAAQ,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC;AAC3E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional.d.ts","sourceRoot":"","sources":["../../../src/annotation/optional.ts"],"names":[],"mappings":"AAIA,iBAAS,QAAQ,mKAEhB;AAED,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.optional = optional;
|
|
27
37
|
const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
@@ -30,3 +40,4 @@ const decorator_utils_1 = require("./decorator_utils");
|
|
|
30
40
|
function optional() {
|
|
31
41
|
return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(METADATA_KEY.OPTIONAL_TAG, true));
|
|
32
42
|
}
|
|
43
|
+
//# sourceMappingURL=optional.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optional.js","sourceRoot":"","sources":["../../../src/annotation/optional.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQS,4BAAQ;AARjB,yEAA2D;AAC3D,mDAAgD;AAChD,uDAA0D;AAE1D,SAAS,QAAQ;IACf,OAAO,IAAA,uCAAqB,EAAC,IAAI,mBAAQ,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC;AAC9E,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post_construct.d.ts","sourceRoot":"","sources":["../../../src/annotation/post_construct.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,aAAa,EAAE,MAAM,CACzB,MAAM,EAAE;IACN,WAAW,EAAE,eAAe,CAAC;CAC9B,EACD,WAAW,EAAE,MAAM,KAChB,IAGJ,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.postConstruct = void 0;
|
|
27
37
|
const ERRORS_MSGS = __importStar(require("../constants/error_msgs"));
|
|
@@ -29,3 +39,4 @@ const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
|
29
39
|
const property_event_decorator_1 = require("./property_event_decorator");
|
|
30
40
|
const postConstruct = (0, property_event_decorator_1.propertyEventDecorator)(METADATA_KEY.POST_CONSTRUCT, ERRORS_MSGS.MULTIPLE_POST_CONSTRUCT_METHODS);
|
|
31
41
|
exports.postConstruct = postConstruct;
|
|
42
|
+
//# sourceMappingURL=post_construct.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"post_construct.js","sourceRoot":"","sources":["../../../src/annotation/post_construct.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAuD;AACvD,yEAA2D;AAC3D,yEAAoE;AAEpE,MAAM,aAAa,GAKP,IAAA,iDAAsB,EAChC,YAAY,CAAC,cAAc,EAC3B,WAAW,CAAC,+BAA+B,CAC5C,CAAC;AAEO,sCAAa"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pre_destroy.d.ts","sourceRoot":"","sources":["../../../src/annotation/pre_destroy.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,UAAU,EAAE,MAAM,CACtB,MAAM,EAAE;IACN,WAAW,EAAE,eAAe,CAAC;CAC9B,EACD,WAAW,EAAE,MAAM,KAChB,IAGJ,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
36
|
exports.preDestroy = void 0;
|
|
27
37
|
const ERRORS_MSGS = __importStar(require("../constants/error_msgs"));
|
|
@@ -29,3 +39,4 @@ const METADATA_KEY = __importStar(require("../constants/metadata_keys"));
|
|
|
29
39
|
const property_event_decorator_1 = require("./property_event_decorator");
|
|
30
40
|
const preDestroy = (0, property_event_decorator_1.propertyEventDecorator)(METADATA_KEY.PRE_DESTROY, ERRORS_MSGS.MULTIPLE_PRE_DESTROY_METHODS);
|
|
31
41
|
exports.preDestroy = preDestroy;
|
|
42
|
+
//# sourceMappingURL=pre_destroy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pre_destroy.js","sourceRoot":"","sources":["../../../src/annotation/pre_destroy.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAAuD;AACvD,yEAA2D;AAC3D,yEAAoE;AAEpE,MAAM,UAAU,GAKJ,IAAA,iDAAsB,EAChC,YAAY,CAAC,WAAW,EACxB,WAAW,CAAC,4BAA4B,CACzC,CAAC;AAEO,gCAAU"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property_event_decorator.d.ts","sourceRoot":"","sources":["../../../src/annotation/property_event_decorator.ts"],"names":[],"mappings":"AAEA,iBAAS,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,kBAElD;IAAE,WAAW,EAAE,eAAe,CAAA;CAAE,eAAe,MAAM,UASxE;AAED,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property_event_decorator.js","sourceRoot":"","sources":["../../../src/annotation/property_event_decorator.ts"],"names":[],"mappings":";;AAeS,wDAAsB;AAf/B,mDAAgD;AAEhD,SAAS,sBAAsB,CAAC,QAAgB,EAAE,YAAoB;IACpE,OAAO,GAAG,EAAE;QACV,OAAO,CAAC,MAAwC,EAAE,WAAmB,EAAE,EAAE;YACvE,MAAM,QAAQ,GAAa,IAAI,mBAAQ,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;YAE/D,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC;gBACzD,MAAM,IAAI,KAAK,CAAC,YAAY,CAAC,CAAC;YAChC,CAAC;YACD,OAAO,CAAC,cAAc,CAAC,QAAQ,EAAE,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACjE,CAAC,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
declare function tagged(metadataKey: string | number | symbol, metadataValue: unknown): <T>(target: import("./decorator_utils").DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
|
|
2
2
|
export { tagged };
|
|
3
|
+
//# sourceMappingURL=tagged.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagged.d.ts","sourceRoot":"","sources":["../../../src/annotation/tagged.ts"],"names":[],"mappings":"AAIA,iBAAS,MAAM,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,aAAa,EAAE,OAAO,kKAE5E;AAED,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
|
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.tagged = tagged;
|
|
4
4
|
const metadata_1 = require("../planning/metadata");
|
|
5
5
|
const decorator_utils_1 = require("./decorator_utils");
|
|
6
|
+
// Used to add custom metadata which is used to resolve metadata-based contextual bindings.
|
|
6
7
|
function tagged(metadataKey, metadataValue) {
|
|
7
8
|
return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(metadataKey, metadataValue));
|
|
8
9
|
}
|
|
10
|
+
//# sourceMappingURL=tagged.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tagged.js","sourceRoot":"","sources":["../../../src/annotation/tagged.ts"],"names":[],"mappings":";;AAQS,wBAAM;AARf,mDAAgD;AAChD,uDAA0D;AAE1D,2FAA2F;AAC3F,SAAS,MAAM,CAAC,WAAqC,EAAE,aAAsB;IAC3E,OAAO,IAAA,uCAAqB,EAAC,IAAI,mBAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC,CAAC;AACzE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target_name.d.ts","sourceRoot":"","sources":["../../../src/annotation/target_name.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,eAAe,EAAgB,MAAM,mBAAmB,CAAC;AAElE,iBAAS,UAAU,CAAC,IAAI,EAAE,MAAM,YAEpB,eAAe,aACZ,MAAM,GAAG,SAAS,SACtB,MAAM,UAKhB;AAED,OAAO,EAAE,UAAU,EAAE,CAAC"}
|