inversify 6.2.1 → 7.0.0-alpha.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 +66 -1
- package/README.md +3 -0
- package/lib/cjs/index.d.ts +3 -29
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +19 -90
- package/lib/cjs/index.js.map +1 -1
- package/lib/esm/index.d.ts +3 -504
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -1
- package/lib/esm/index.js.map +1 -1
- package/package.json +13 -12
- package/lib/cjs/annotation/decorator_utils.d.ts +0 -17
- package/lib/cjs/annotation/decorator_utils.d.ts.map +0 -1
- package/lib/cjs/annotation/decorator_utils.js +0 -132
- package/lib/cjs/annotation/decorator_utils.js.map +0 -1
- package/lib/cjs/annotation/inject.d.ts +0 -6
- package/lib/cjs/annotation/inject.d.ts.map +0 -1
- package/lib/cjs/annotation/inject.js +0 -41
- package/lib/cjs/annotation/inject.js.map +0 -1
- package/lib/cjs/annotation/inject_base.d.ts +0 -5
- package/lib/cjs/annotation/inject_base.d.ts.map +0 -1
- package/lib/cjs/annotation/inject_base.js +0 -19
- package/lib/cjs/annotation/inject_base.js.map +0 -1
- package/lib/cjs/annotation/injectable.d.ts +0 -3
- package/lib/cjs/annotation/injectable.d.ts.map +0 -1
- package/lib/cjs/annotation/injectable.js +0 -50
- package/lib/cjs/annotation/injectable.js.map +0 -1
- package/lib/cjs/annotation/multi_inject.d.ts +0 -6
- package/lib/cjs/annotation/multi_inject.d.ts.map +0 -1
- package/lib/cjs/annotation/multi_inject.js +0 -41
- package/lib/cjs/annotation/multi_inject.js.map +0 -1
- package/lib/cjs/annotation/named.d.ts +0 -3
- package/lib/cjs/annotation/named.d.ts.map +0 -1
- package/lib/cjs/annotation/named.js +0 -44
- package/lib/cjs/annotation/named.js.map +0 -1
- package/lib/cjs/annotation/optional.d.ts +0 -3
- package/lib/cjs/annotation/optional.d.ts.map +0 -1
- package/lib/cjs/annotation/optional.js +0 -43
- package/lib/cjs/annotation/optional.js.map +0 -1
- package/lib/cjs/annotation/post_construct.d.ts +0 -5
- package/lib/cjs/annotation/post_construct.d.ts.map +0 -1
- package/lib/cjs/annotation/post_construct.js +0 -42
- package/lib/cjs/annotation/post_construct.js.map +0 -1
- package/lib/cjs/annotation/pre_destroy.d.ts +0 -5
- package/lib/cjs/annotation/pre_destroy.d.ts.map +0 -1
- package/lib/cjs/annotation/pre_destroy.js +0 -42
- package/lib/cjs/annotation/pre_destroy.js.map +0 -1
- package/lib/cjs/annotation/property_event_decorator.d.ts +0 -5
- package/lib/cjs/annotation/property_event_decorator.d.ts.map +0 -1
- package/lib/cjs/annotation/property_event_decorator.js +0 -16
- package/lib/cjs/annotation/property_event_decorator.js.map +0 -1
- package/lib/cjs/annotation/tagged.d.ts +0 -3
- package/lib/cjs/annotation/tagged.d.ts.map +0 -1
- package/lib/cjs/annotation/tagged.js +0 -10
- package/lib/cjs/annotation/tagged.js.map +0 -1
- package/lib/cjs/annotation/target_name.d.ts +0 -4
- package/lib/cjs/annotation/target_name.d.ts.map +0 -1
- package/lib/cjs/annotation/target_name.js +0 -46
- package/lib/cjs/annotation/target_name.js.map +0 -1
- package/lib/cjs/annotation/unmanaged.d.ts +0 -4
- package/lib/cjs/annotation/unmanaged.d.ts.map +0 -1
- package/lib/cjs/annotation/unmanaged.js +0 -46
- package/lib/cjs/annotation/unmanaged.js.map +0 -1
- package/lib/cjs/bindings/binding.d.ts +0 -21
- package/lib/cjs/bindings/binding.d.ts.map +0 -1
- package/lib/cjs/bindings/binding.js +0 -68
- package/lib/cjs/bindings/binding.js.map +0 -1
- package/lib/cjs/bindings/binding_count.d.ts +0 -6
- package/lib/cjs/bindings/binding_count.d.ts.map +0 -1
- package/lib/cjs/bindings/binding_count.js +0 -10
- package/lib/cjs/bindings/binding_count.js.map +0 -1
- package/lib/cjs/constants/error_msgs.d.ts +0 -31
- package/lib/cjs/constants/error_msgs.d.ts.map +0 -1
- package/lib/cjs/constants/error_msgs.js +0 -61
- package/lib/cjs/constants/error_msgs.js.map +0 -1
- package/lib/cjs/constants/literal_types.d.ts +0 -6
- package/lib/cjs/constants/literal_types.d.ts.map +0 -1
- package/lib/cjs/constants/literal_types.js +0 -30
- package/lib/cjs/constants/literal_types.js.map +0 -1
- package/lib/cjs/constants/metadata_keys.d.ts +0 -14
- package/lib/cjs/constants/metadata_keys.d.ts.map +0 -1
- package/lib/cjs/constants/metadata_keys.js +0 -39
- package/lib/cjs/constants/metadata_keys.js.map +0 -1
- package/lib/cjs/container/container.d.ts +0 -89
- package/lib/cjs/container/container.d.ts.map +0 -1
- package/lib/cjs/container/container.js +0 -622
- package/lib/cjs/container/container.js.map +0 -1
- package/lib/cjs/container/container_module.d.ts +0 -12
- package/lib/cjs/container/container_module.d.ts.map +0 -1
- package/lib/cjs/container/container_module.js +0 -23
- package/lib/cjs/container/container_module.js.map +0 -1
- package/lib/cjs/container/container_snapshot.d.ts +0 -11
- package/lib/cjs/container/container_snapshot.d.ts.map +0 -1
- package/lib/cjs/container/container_snapshot.js +0 -21
- package/lib/cjs/container/container_snapshot.js.map +0 -1
- package/lib/cjs/container/lookup.d.ts +0 -18
- package/lib/cjs/container/lookup.d.ts.map +0 -1
- package/lib/cjs/container/lookup.js +0 -144
- package/lib/cjs/container/lookup.js.map +0 -1
- package/lib/cjs/container/module_activation_store.d.ts +0 -11
- package/lib/cjs/container/module_activation_store.d.ts.map +0 -1
- package/lib/cjs/container/module_activation_store.js +0 -48
- package/lib/cjs/container/module_activation_store.js.map +0 -1
- package/lib/cjs/interfaces/interfaces.d.ts +0 -286
- package/lib/cjs/interfaces/interfaces.d.ts.map +0 -1
- package/lib/cjs/interfaces/interfaces.js +0 -3
- package/lib/cjs/interfaces/interfaces.js.map +0 -1
- package/lib/cjs/interfaces/interfaces_common_exports.d.ts +0 -4
- package/lib/cjs/interfaces/interfaces_common_exports.d.ts.map +0 -1
- package/lib/cjs/interfaces/interfaces_common_exports.js +0 -3
- package/lib/cjs/interfaces/interfaces_common_exports.js.map +0 -1
- package/lib/cjs/planning/context.d.ts +0 -12
- package/lib/cjs/planning/context.d.ts.map +0 -1
- package/lib/cjs/planning/context.js +0 -22
- package/lib/cjs/planning/context.js.map +0 -1
- package/lib/cjs/planning/metadata.d.ts +0 -9
- package/lib/cjs/planning/metadata.d.ts.map +0 -1
- package/lib/cjs/planning/metadata.js +0 -55
- package/lib/cjs/planning/metadata.js.map +0 -1
- package/lib/cjs/planning/metadata_reader.d.ts +0 -7
- package/lib/cjs/planning/metadata_reader.d.ts.map +0 -1
- package/lib/cjs/planning/metadata_reader.js +0 -56
- package/lib/cjs/planning/metadata_reader.js.map +0 -1
- package/lib/cjs/planning/plan.d.ts +0 -8
- package/lib/cjs/planning/plan.d.ts.map +0 -1
- package/lib/cjs/planning/plan.js +0 -13
- package/lib/cjs/planning/plan.js.map +0 -1
- package/lib/cjs/planning/planner.d.ts +0 -13
- package/lib/cjs/planning/planner.d.ts.map +0 -1
- package/lib/cjs/planning/planner.js +0 -217
- package/lib/cjs/planning/planner.js.map +0 -1
- package/lib/cjs/planning/queryable_string.d.ts +0 -11
- package/lib/cjs/planning/queryable_string.d.ts.map +0 -1
- package/lib/cjs/planning/queryable_string.js +0 -33
- package/lib/cjs/planning/queryable_string.js.map +0 -1
- package/lib/cjs/planning/reflection_utils.d.ts +0 -6
- package/lib/cjs/planning/reflection_utils.d.ts.map +0 -1
- package/lib/cjs/planning/reflection_utils.js +0 -67
- package/lib/cjs/planning/reflection_utils.js.map +0 -1
- package/lib/cjs/planning/request.d.ts +0 -15
- package/lib/cjs/planning/request.d.ts.map +0 -1
- package/lib/cjs/planning/request.js +0 -34
- package/lib/cjs/planning/request.js.map +0 -1
- package/lib/cjs/resolution/instantiation.d.ts +0 -4
- package/lib/cjs/resolution/instantiation.d.ts.map +0 -1
- package/lib/cjs/resolution/instantiation.js +0 -161
- package/lib/cjs/resolution/instantiation.js.map +0 -1
- package/lib/cjs/resolution/resolver.d.ts +0 -4
- package/lib/cjs/resolution/resolver.d.ts.map +0 -1
- package/lib/cjs/resolution/resolver.js +0 -212
- package/lib/cjs/resolution/resolver.js.map +0 -1
- package/lib/cjs/scope/scope.d.ts +0 -4
- package/lib/cjs/scope/scope.d.ts.map +0 -1
- package/lib/cjs/scope/scope.js +0 -55
- package/lib/cjs/scope/scope.js.map +0 -1
- package/lib/cjs/syntax/binding_in_syntax.d.ts +0 -10
- package/lib/cjs/syntax/binding_in_syntax.d.ts.map +0 -1
- package/lib/cjs/syntax/binding_in_syntax.js +0 -25
- package/lib/cjs/syntax/binding_in_syntax.js.map +0 -1
- package/lib/cjs/syntax/binding_in_when_on_syntax.d.ts +0 -30
- package/lib/cjs/syntax/binding_in_when_on_syntax.d.ts.map +0 -1
- package/lib/cjs/syntax/binding_in_when_on_syntax.js +0 -80
- package/lib/cjs/syntax/binding_in_when_on_syntax.js.map +0 -1
- package/lib/cjs/syntax/binding_on_syntax.d.ts +0 -9
- package/lib/cjs/syntax/binding_on_syntax.d.ts.map +0 -1
- package/lib/cjs/syntax/binding_on_syntax.js +0 -20
- package/lib/cjs/syntax/binding_on_syntax.js.map +0 -1
- package/lib/cjs/syntax/binding_to_syntax.d.ts +0 -19
- package/lib/cjs/syntax/binding_to_syntax.d.ts.map +0 -1
- package/lib/cjs/syntax/binding_to_syntax.js +0 -145
- package/lib/cjs/syntax/binding_to_syntax.js.map +0 -1
- package/lib/cjs/syntax/binding_when_on_syntax.d.ts +0 -26
- package/lib/cjs/syntax/binding_when_on_syntax.d.ts.map +0 -1
- package/lib/cjs/syntax/binding_when_on_syntax.js +0 -68
- package/lib/cjs/syntax/binding_when_on_syntax.js.map +0 -1
- package/lib/cjs/syntax/binding_when_syntax.d.ts +0 -22
- package/lib/cjs/syntax/binding_when_syntax.d.ts.map +0 -1
- package/lib/cjs/syntax/binding_when_syntax.js +0 -88
- package/lib/cjs/syntax/binding_when_syntax.js.map +0 -1
- package/lib/cjs/syntax/constraint_helpers.d.ts +0 -7
- package/lib/cjs/syntax/constraint_helpers.d.ts.map +0 -1
- package/lib/cjs/syntax/constraint_helpers.js +0 -78
- package/lib/cjs/syntax/constraint_helpers.js.map +0 -1
- package/lib/cjs/utils/async.d.ts +0 -4
- package/lib/cjs/utils/async.d.ts.map +0 -1
- package/lib/cjs/utils/async.js +0 -16
- package/lib/cjs/utils/async.js.map +0 -1
- package/lib/cjs/utils/binding_utils.d.ts +0 -5
- package/lib/cjs/utils/binding_utils.d.ts.map +0 -1
- package/lib/cjs/utils/binding_utils.js +0 -93
- package/lib/cjs/utils/binding_utils.js.map +0 -1
- package/lib/cjs/utils/clonable.d.ts +0 -4
- package/lib/cjs/utils/clonable.d.ts.map +0 -1
- package/lib/cjs/utils/clonable.js +0 -10
- package/lib/cjs/utils/clonable.js.map +0 -1
- package/lib/cjs/utils/exceptions.d.ts +0 -3
- package/lib/cjs/utils/exceptions.d.ts.map +0 -1
- package/lib/cjs/utils/exceptions.js +0 -55
- package/lib/cjs/utils/exceptions.js.map +0 -1
- package/lib/cjs/utils/factory_type.d.ts +0 -6
- package/lib/cjs/utils/factory_type.d.ts.map +0 -1
- package/lib/cjs/utils/factory_type.js +0 -10
- package/lib/cjs/utils/factory_type.js.map +0 -1
- package/lib/cjs/utils/get_base_type.d.ts +0 -3
- package/lib/cjs/utils/get_base_type.d.ts.map +0 -1
- package/lib/cjs/utils/get_base_type.js +0 -10
- package/lib/cjs/utils/get_base_type.js.map +0 -1
- package/lib/cjs/utils/id.d.ts +0 -3
- package/lib/cjs/utils/id.d.ts.map +0 -1
- package/lib/cjs/utils/id.js +0 -8
- package/lib/cjs/utils/id.js.map +0 -1
- package/lib/cjs/utils/js.d.ts +0 -2
- package/lib/cjs/utils/js.d.ts.map +0 -1
- package/lib/cjs/utils/js.js +0 -16
- package/lib/cjs/utils/js.js.map +0 -1
- package/lib/cjs/utils/serialization.d.ts +0 -11
- package/lib/cjs/utils/serialization.d.ts.map +0 -1
- package/lib/cjs/utils/serialization.js +0 -148
- package/lib/cjs/utils/serialization.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,13 +4,78 @@ All notable changes to this project from 5.0.0 forward will be documented in thi
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
-
## [
|
|
7
|
+
## [7.0.0-alpha.1]
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
- Updated `GetOptions` with `autobind`.
|
|
11
|
+
- Updated `ContainerOptions` with `autobind`.
|
|
12
|
+
|
|
13
|
+
## [7.0.0-alpha.0]
|
|
8
14
|
|
|
9
15
|
### Added
|
|
16
|
+
- Added `BindInFluentSyntax`.
|
|
17
|
+
- Added `BindInWhenOnFluentSyntax`.
|
|
18
|
+
- Added `BindOnFluentSyntax`.
|
|
19
|
+
- Added `BindingScope`.
|
|
20
|
+
- Added `BindToFluentSyntax`.
|
|
21
|
+
- Added `BindWhenFluentSyntax`.
|
|
22
|
+
- Added `BindWhenOnFluentSyntax`.
|
|
23
|
+
- Added `ContainerModuleLoadOptions`.
|
|
24
|
+
- Added `DynamicValueBuilder`.
|
|
25
|
+
- Added `Factory`.
|
|
26
|
+
- Added `GetOptions`.
|
|
27
|
+
- Added `GetOptionsTagConstraint`.
|
|
28
|
+
- Added `IsBoundOptions`.
|
|
29
|
+
- Added `MetadataName`.
|
|
30
|
+
- Added `MetadataTag`.
|
|
31
|
+
- Added `MetadataTargetName`.
|
|
32
|
+
- Added `OptionalGetOptions`.
|
|
33
|
+
- Added `Provider`.
|
|
34
|
+
- Added `ResolutionContext`.
|
|
35
|
+
- Added `bindingScopeValues`.
|
|
36
|
+
- Added `bindingTypeValues`.
|
|
37
|
+
- Added `injectFromBase` decorator.
|
|
10
38
|
|
|
11
39
|
### Changed
|
|
40
|
+
- Updated `injectable` with optional `scope`.
|
|
41
|
+
- [Breaking] Updated `ContainerModule` constructor to receive a callback with `ContainerModuleLoadOptions` instead of `interfaces.ContainerModuleCallBack`.
|
|
42
|
+
- [Breaking] Updated `ContainerModule`.load to return `Promise<void>`.
|
|
43
|
+
- Updated `ContainerOptions` with `parent`.
|
|
44
|
+
- Updated `ContainerOptions` without `autoBindInjectable` and `skipBaseClassChecks`.
|
|
45
|
+
- [Breaking] Updated `Container` to no longer expose `id`, `parent` nor `options`.
|
|
46
|
+
- [Breaking] Updated `Container` with no `applyCustomMetadataReader`, `applyMiddleware`, `createChild`, `merge` and `rebind` methods.
|
|
47
|
+
- [Breaking] Updated `Container` with no `isCurrentBound`, `isBoundNamed`, `isBoundTagged` methods in favor of using `Container.isBound` with `isBoundOptions`.
|
|
48
|
+
- [Breaking] Updated `Container` with no `getNamed`, `getTagged`, `tryGet`, `tryGetNamed` and `tryGetTagged` methods in favor of `Container.get` with `OptionalGetOptions` options.
|
|
49
|
+
- [Breaking] Updated `Container` with no `getNamedAsync`, `getTaggedAsync`, `tryGetAsync`, `tryGetNamedAsync` and `tryGetTaggedAsync` methods in favor of `Container.getAsync` with `OptionalGetOptions` options.
|
|
50
|
+
- [Breaking] Updated `Container` with no `getAllNamed`, `getAllTagged`, `tryGetAll`, `tryGetAllNamed` and `tryGetAllTagged` methods in favor of `Container.getAll` with `GetOptions` options.
|
|
51
|
+
- [Breaking] Updated `Container` with no `getAllNamedAsync`, `getAllTaggedAsync`, `tryGetAllAsync`, `tryGetAllNamedAsync` and `tryGetAllTaggedAsync` methods in favor of `Container.getAllAsync` with `GetOptions` options.
|
|
52
|
+
- [Breaking] Updated `Container` with no `loadAsync` in favor of an async `Container.load`.
|
|
53
|
+
- [Breaking] Updated `Container` with no `unbindAsync` in favor of an async `Container.unbind`.
|
|
54
|
+
- [Breaking] Updated `Container` with no `unbindAllAsync` in favor of an async `Container.unbindAll`.
|
|
55
|
+
- [Breaking] Updated `Container` with no `unloadAsync` in favor of an async `Container.unload`.
|
|
56
|
+
|
|
12
57
|
|
|
13
58
|
### Fixed
|
|
59
|
+
- Updated `decorate` to no longer require a unexpected prototypes to decorate property nor methods.
|
|
60
|
+
|
|
61
|
+
### Removed
|
|
62
|
+
- [Breaking] Removed deprecated `LazyServiceIdentifer`. Use `LazyServiceIdentifier` instead.
|
|
63
|
+
- [Breaking] Removed `BindingScopeEnum`. Use `bindingScopeValues` instead.
|
|
64
|
+
- [Breaking] Removed `BindingTypeEnum`.
|
|
65
|
+
- [Breaking] Removed `TargetTypeEnum`.
|
|
66
|
+
- [Breaking] Removed `METADATA_KEY`.
|
|
67
|
+
- [Breaking] Removed `AsyncContainerModule`. Use `ContainerModule` instead.
|
|
68
|
+
- [Breaking] Removed `createTaggedDecorator`.
|
|
69
|
+
- [Breaking] Removed `MetadataReader`.
|
|
70
|
+
- [Breaking] Removed `id`.
|
|
71
|
+
- [Breaking] Removed `interfaces` types. Rely on new types instead.
|
|
72
|
+
- [Breaking] Removed `traverseAncerstors`.
|
|
73
|
+
- [Breaking] Removed `taggedConstraint`.
|
|
74
|
+
- [Breaking] Removed `namedConstraint`.
|
|
75
|
+
- [Breaking] Removed `typeConstraint`.
|
|
76
|
+
- [Breaking] Removed `getServiceIdentifierAsString`.
|
|
77
|
+
- [Breaking] Removed `multiBindToService`.
|
|
78
|
+
|
|
14
79
|
|
|
15
80
|
## [6.2.1]
|
|
16
81
|
|
package/README.md
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
> [!NOTE]
|
|
2
|
+
> New docs are temporary available [here](https://inversify.io/monorepo/). We would love to have your feedback in this [discussion](https://github.com/inversify/monorepo/discussions/235).
|
|
3
|
+
|
|
1
4
|

|
|
2
5
|
|
|
3
6
|
<p align="center">
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -1,31 +1,5 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export {
|
|
5
|
-
/**
|
|
6
|
-
* @deprecated Use LazyServiceIdentifier instead
|
|
7
|
-
*/
|
|
8
|
-
export declare const LazyServiceIdentifer: typeof LazyServiceIdentifier;
|
|
9
|
-
export declare const METADATA_KEY: typeof keys;
|
|
10
|
-
export { Container } from './container/container';
|
|
11
|
-
export { BindingScopeEnum, BindingTypeEnum, TargetTypeEnum, } from './constants/literal_types';
|
|
12
|
-
export { AsyncContainerModule, ContainerModule, } from './container/container_module';
|
|
13
|
-
export { createTaggedDecorator } from './annotation/decorator_utils';
|
|
14
|
-
export { injectable } from './annotation/injectable';
|
|
15
|
-
export { tagged } from './annotation/tagged';
|
|
16
|
-
export { named } from './annotation/named';
|
|
17
|
-
export { inject } from './annotation/inject';
|
|
18
|
-
export { optional } from './annotation/optional';
|
|
19
|
-
export { unmanaged } from './annotation/unmanaged';
|
|
20
|
-
export { multiInject } from './annotation/multi_inject';
|
|
21
|
-
export { targetName } from './annotation/target_name';
|
|
22
|
-
export { postConstruct } from './annotation/post_construct';
|
|
23
|
-
export { preDestroy } from './annotation/pre_destroy';
|
|
24
|
-
export { MetadataReader } from './planning/metadata_reader';
|
|
25
|
-
export { id } from './utils/id';
|
|
26
|
-
export type { interfaces } from './interfaces/interfaces';
|
|
27
|
-
export { decorate } from './annotation/decorator_utils';
|
|
28
|
-
export { traverseAncerstors, taggedConstraint, namedConstraint, typeConstraint, } from './syntax/constraint_helpers';
|
|
29
|
-
export { getServiceIdentifierAsString } from './utils/serialization';
|
|
30
|
-
export { multiBindToService } from './utils/binding_utils';
|
|
2
|
+
export { Newable, LazyServiceIdentifier, ServiceIdentifier, } from '@inversifyjs/common';
|
|
3
|
+
export { BindInFluentSyntax, BindInWhenOnFluentSyntax, BindOnFluentSyntax, BindToFluentSyntax, BindWhenFluentSyntax, BindWhenOnFluentSyntax, Container, ContainerModule, ContainerModuleLoadOptions, ContainerOptions, IsBoundOptions, } from '@inversifyjs/container';
|
|
4
|
+
export { BindingMetadata, BindingScope, DynamicValueBuilder, Factory, GetOptions, GetOptionsTagConstraint, MetadataName, MetadataTag, OptionalGetOptions, Provider, ResolutionContext, bindingScopeValues, bindingTypeValues, decorate, inject, injectFromBase, injectable, multiInject, named, optional, unmanaged, tagged, postConstruct, preDestroy, } from '@inversifyjs/core';
|
|
31
5
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EACL,OAAO,EACP,qBAAqB,EACrB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACpB,sBAAsB,EACtB,SAAS,EACT,eAAe,EACf,0BAA0B,EAC1B,gBAAgB,EAChB,cAAc,GACf,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,OAAO,EACP,UAAU,EACV,uBAAuB,EACvB,YAAY,EACZ,WAAW,EACX,kBAAkB,EAClB,QAAQ,EACR,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,QAAQ,EACR,MAAM,EACN,cAAc,EACd,UAAU,EACV,WAAW,EACX,KAAK,EACL,QAAQ,EACR,SAAS,EACT,MAAM,EACN,aAAa,EACb,UAAU,GACX,MAAM,mBAAmB,CAAC"}
|
package/lib/cjs/index.js
CHANGED
|
@@ -1,95 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
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
|
-
})();
|
|
35
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
|
+
exports.preDestroy = exports.postConstruct = exports.tagged = exports.unmanaged = exports.optional = exports.named = exports.multiInject = exports.injectable = exports.injectFromBase = exports.inject = exports.decorate = exports.bindingTypeValues = exports.bindingScopeValues = exports.ContainerModule = exports.Container = exports.LazyServiceIdentifier = void 0;
|
|
38
4
|
require("reflect-metadata");
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
var
|
|
42
|
-
Object.defineProperty(exports, "LazyServiceIdentifier", { enumerable: true, get: function () { return common_2.LazyServiceIdentifier; } });
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated Use LazyServiceIdentifier instead
|
|
45
|
-
*/
|
|
46
|
-
exports.LazyServiceIdentifer = common_1.LazyServiceIdentifier;
|
|
47
|
-
// eslint-disable-next-line @typescript-eslint/typedef
|
|
48
|
-
exports.METADATA_KEY = keys;
|
|
49
|
-
var container_1 = require("./container/container");
|
|
5
|
+
var common_1 = require("@inversifyjs/common");
|
|
6
|
+
Object.defineProperty(exports, "LazyServiceIdentifier", { enumerable: true, get: function () { return common_1.LazyServiceIdentifier; } });
|
|
7
|
+
var container_1 = require("@inversifyjs/container");
|
|
50
8
|
Object.defineProperty(exports, "Container", { enumerable: true, get: function () { return container_1.Container; } });
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
Object.defineProperty(exports, "
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
-
|
|
56
|
-
Object.defineProperty(exports, "
|
|
57
|
-
Object.defineProperty(exports, "
|
|
58
|
-
|
|
59
|
-
Object.defineProperty(exports, "
|
|
60
|
-
|
|
61
|
-
Object.defineProperty(exports, "
|
|
62
|
-
|
|
63
|
-
Object.defineProperty(exports, "tagged", { enumerable: true, get: function () { return
|
|
64
|
-
|
|
65
|
-
Object.defineProperty(exports, "
|
|
66
|
-
var inject_1 = require("./annotation/inject");
|
|
67
|
-
Object.defineProperty(exports, "inject", { enumerable: true, get: function () { return inject_1.inject; } });
|
|
68
|
-
var optional_1 = require("./annotation/optional");
|
|
69
|
-
Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return optional_1.optional; } });
|
|
70
|
-
var unmanaged_1 = require("./annotation/unmanaged");
|
|
71
|
-
Object.defineProperty(exports, "unmanaged", { enumerable: true, get: function () { return unmanaged_1.unmanaged; } });
|
|
72
|
-
var multi_inject_1 = require("./annotation/multi_inject");
|
|
73
|
-
Object.defineProperty(exports, "multiInject", { enumerable: true, get: function () { return multi_inject_1.multiInject; } });
|
|
74
|
-
var target_name_1 = require("./annotation/target_name");
|
|
75
|
-
Object.defineProperty(exports, "targetName", { enumerable: true, get: function () { return target_name_1.targetName; } });
|
|
76
|
-
var post_construct_1 = require("./annotation/post_construct");
|
|
77
|
-
Object.defineProperty(exports, "postConstruct", { enumerable: true, get: function () { return post_construct_1.postConstruct; } });
|
|
78
|
-
var pre_destroy_1 = require("./annotation/pre_destroy");
|
|
79
|
-
Object.defineProperty(exports, "preDestroy", { enumerable: true, get: function () { return pre_destroy_1.preDestroy; } });
|
|
80
|
-
var metadata_reader_1 = require("./planning/metadata_reader");
|
|
81
|
-
Object.defineProperty(exports, "MetadataReader", { enumerable: true, get: function () { return metadata_reader_1.MetadataReader; } });
|
|
82
|
-
var id_1 = require("./utils/id");
|
|
83
|
-
Object.defineProperty(exports, "id", { enumerable: true, get: function () { return id_1.id; } });
|
|
84
|
-
var decorator_utils_2 = require("./annotation/decorator_utils");
|
|
85
|
-
Object.defineProperty(exports, "decorate", { enumerable: true, get: function () { return decorator_utils_2.decorate; } });
|
|
86
|
-
var constraint_helpers_1 = require("./syntax/constraint_helpers");
|
|
87
|
-
Object.defineProperty(exports, "traverseAncerstors", { enumerable: true, get: function () { return constraint_helpers_1.traverseAncerstors; } });
|
|
88
|
-
Object.defineProperty(exports, "taggedConstraint", { enumerable: true, get: function () { return constraint_helpers_1.taggedConstraint; } });
|
|
89
|
-
Object.defineProperty(exports, "namedConstraint", { enumerable: true, get: function () { return constraint_helpers_1.namedConstraint; } });
|
|
90
|
-
Object.defineProperty(exports, "typeConstraint", { enumerable: true, get: function () { return constraint_helpers_1.typeConstraint; } });
|
|
91
|
-
var serialization_1 = require("./utils/serialization");
|
|
92
|
-
Object.defineProperty(exports, "getServiceIdentifierAsString", { enumerable: true, get: function () { return serialization_1.getServiceIdentifierAsString; } });
|
|
93
|
-
var binding_utils_1 = require("./utils/binding_utils");
|
|
94
|
-
Object.defineProperty(exports, "multiBindToService", { enumerable: true, get: function () { return binding_utils_1.multiBindToService; } });
|
|
9
|
+
Object.defineProperty(exports, "ContainerModule", { enumerable: true, get: function () { return container_1.ContainerModule; } });
|
|
10
|
+
var core_1 = require("@inversifyjs/core");
|
|
11
|
+
Object.defineProperty(exports, "bindingScopeValues", { enumerable: true, get: function () { return core_1.bindingScopeValues; } });
|
|
12
|
+
Object.defineProperty(exports, "bindingTypeValues", { enumerable: true, get: function () { return core_1.bindingTypeValues; } });
|
|
13
|
+
Object.defineProperty(exports, "decorate", { enumerable: true, get: function () { return core_1.decorate; } });
|
|
14
|
+
Object.defineProperty(exports, "inject", { enumerable: true, get: function () { return core_1.inject; } });
|
|
15
|
+
Object.defineProperty(exports, "injectFromBase", { enumerable: true, get: function () { return core_1.injectFromBase; } });
|
|
16
|
+
Object.defineProperty(exports, "injectable", { enumerable: true, get: function () { return core_1.injectable; } });
|
|
17
|
+
Object.defineProperty(exports, "multiInject", { enumerable: true, get: function () { return core_1.multiInject; } });
|
|
18
|
+
Object.defineProperty(exports, "named", { enumerable: true, get: function () { return core_1.named; } });
|
|
19
|
+
Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return core_1.optional; } });
|
|
20
|
+
Object.defineProperty(exports, "unmanaged", { enumerable: true, get: function () { return core_1.unmanaged; } });
|
|
21
|
+
Object.defineProperty(exports, "tagged", { enumerable: true, get: function () { return core_1.tagged; } });
|
|
22
|
+
Object.defineProperty(exports, "postConstruct", { enumerable: true, get: function () { return core_1.postConstruct; } });
|
|
23
|
+
Object.defineProperty(exports, "preDestroy", { enumerable: true, get: function () { return core_1.preDestroy; } });
|
|
95
24
|
//# sourceMappingURL=index.js.map
|
package/lib/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,4BAA0B;AAE1B,8CAI6B;AAF3B,+GAAA,qBAAqB,OAAA;AAGvB,oDAYgC;AAL9B,sGAAA,SAAS,OAAA;AACT,4GAAA,eAAe,OAAA;AAKjB,0CAyB2B;AAbzB,0GAAA,kBAAkB,OAAA;AAClB,yGAAA,iBAAiB,OAAA;AACjB,gGAAA,QAAQ,OAAA;AACR,8FAAA,MAAM,OAAA;AACN,sGAAA,cAAc,OAAA;AACd,kGAAA,UAAU,OAAA;AACV,mGAAA,WAAW,OAAA;AACX,6FAAA,KAAK,OAAA;AACL,gGAAA,QAAQ,OAAA;AACR,iGAAA,SAAS,OAAA;AACT,8FAAA,MAAM,OAAA;AACN,qGAAA,aAAa,OAAA;AACb,kGAAA,UAAU,OAAA"}
|