inversify 6.2.1 → 7.0.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (219) hide show
  1. package/CHANGELOG.md +60 -1
  2. package/README.md +3 -0
  3. package/lib/cjs/index.d.ts +3 -29
  4. package/lib/cjs/index.d.ts.map +1 -1
  5. package/lib/cjs/index.js +19 -90
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/esm/index.d.ts +3 -504
  8. package/lib/esm/index.d.ts.map +1 -1
  9. package/lib/esm/index.js +1 -1
  10. package/lib/esm/index.js.map +1 -1
  11. package/package.json +13 -12
  12. package/lib/cjs/annotation/decorator_utils.d.ts +0 -17
  13. package/lib/cjs/annotation/decorator_utils.d.ts.map +0 -1
  14. package/lib/cjs/annotation/decorator_utils.js +0 -132
  15. package/lib/cjs/annotation/decorator_utils.js.map +0 -1
  16. package/lib/cjs/annotation/inject.d.ts +0 -6
  17. package/lib/cjs/annotation/inject.d.ts.map +0 -1
  18. package/lib/cjs/annotation/inject.js +0 -41
  19. package/lib/cjs/annotation/inject.js.map +0 -1
  20. package/lib/cjs/annotation/inject_base.d.ts +0 -5
  21. package/lib/cjs/annotation/inject_base.d.ts.map +0 -1
  22. package/lib/cjs/annotation/inject_base.js +0 -19
  23. package/lib/cjs/annotation/inject_base.js.map +0 -1
  24. package/lib/cjs/annotation/injectable.d.ts +0 -3
  25. package/lib/cjs/annotation/injectable.d.ts.map +0 -1
  26. package/lib/cjs/annotation/injectable.js +0 -50
  27. package/lib/cjs/annotation/injectable.js.map +0 -1
  28. package/lib/cjs/annotation/multi_inject.d.ts +0 -6
  29. package/lib/cjs/annotation/multi_inject.d.ts.map +0 -1
  30. package/lib/cjs/annotation/multi_inject.js +0 -41
  31. package/lib/cjs/annotation/multi_inject.js.map +0 -1
  32. package/lib/cjs/annotation/named.d.ts +0 -3
  33. package/lib/cjs/annotation/named.d.ts.map +0 -1
  34. package/lib/cjs/annotation/named.js +0 -44
  35. package/lib/cjs/annotation/named.js.map +0 -1
  36. package/lib/cjs/annotation/optional.d.ts +0 -3
  37. package/lib/cjs/annotation/optional.d.ts.map +0 -1
  38. package/lib/cjs/annotation/optional.js +0 -43
  39. package/lib/cjs/annotation/optional.js.map +0 -1
  40. package/lib/cjs/annotation/post_construct.d.ts +0 -5
  41. package/lib/cjs/annotation/post_construct.d.ts.map +0 -1
  42. package/lib/cjs/annotation/post_construct.js +0 -42
  43. package/lib/cjs/annotation/post_construct.js.map +0 -1
  44. package/lib/cjs/annotation/pre_destroy.d.ts +0 -5
  45. package/lib/cjs/annotation/pre_destroy.d.ts.map +0 -1
  46. package/lib/cjs/annotation/pre_destroy.js +0 -42
  47. package/lib/cjs/annotation/pre_destroy.js.map +0 -1
  48. package/lib/cjs/annotation/property_event_decorator.d.ts +0 -5
  49. package/lib/cjs/annotation/property_event_decorator.d.ts.map +0 -1
  50. package/lib/cjs/annotation/property_event_decorator.js +0 -16
  51. package/lib/cjs/annotation/property_event_decorator.js.map +0 -1
  52. package/lib/cjs/annotation/tagged.d.ts +0 -3
  53. package/lib/cjs/annotation/tagged.d.ts.map +0 -1
  54. package/lib/cjs/annotation/tagged.js +0 -10
  55. package/lib/cjs/annotation/tagged.js.map +0 -1
  56. package/lib/cjs/annotation/target_name.d.ts +0 -4
  57. package/lib/cjs/annotation/target_name.d.ts.map +0 -1
  58. package/lib/cjs/annotation/target_name.js +0 -46
  59. package/lib/cjs/annotation/target_name.js.map +0 -1
  60. package/lib/cjs/annotation/unmanaged.d.ts +0 -4
  61. package/lib/cjs/annotation/unmanaged.d.ts.map +0 -1
  62. package/lib/cjs/annotation/unmanaged.js +0 -46
  63. package/lib/cjs/annotation/unmanaged.js.map +0 -1
  64. package/lib/cjs/bindings/binding.d.ts +0 -21
  65. package/lib/cjs/bindings/binding.d.ts.map +0 -1
  66. package/lib/cjs/bindings/binding.js +0 -68
  67. package/lib/cjs/bindings/binding.js.map +0 -1
  68. package/lib/cjs/bindings/binding_count.d.ts +0 -6
  69. package/lib/cjs/bindings/binding_count.d.ts.map +0 -1
  70. package/lib/cjs/bindings/binding_count.js +0 -10
  71. package/lib/cjs/bindings/binding_count.js.map +0 -1
  72. package/lib/cjs/constants/error_msgs.d.ts +0 -31
  73. package/lib/cjs/constants/error_msgs.d.ts.map +0 -1
  74. package/lib/cjs/constants/error_msgs.js +0 -61
  75. package/lib/cjs/constants/error_msgs.js.map +0 -1
  76. package/lib/cjs/constants/literal_types.d.ts +0 -6
  77. package/lib/cjs/constants/literal_types.d.ts.map +0 -1
  78. package/lib/cjs/constants/literal_types.js +0 -30
  79. package/lib/cjs/constants/literal_types.js.map +0 -1
  80. package/lib/cjs/constants/metadata_keys.d.ts +0 -14
  81. package/lib/cjs/constants/metadata_keys.d.ts.map +0 -1
  82. package/lib/cjs/constants/metadata_keys.js +0 -39
  83. package/lib/cjs/constants/metadata_keys.js.map +0 -1
  84. package/lib/cjs/container/container.d.ts +0 -89
  85. package/lib/cjs/container/container.d.ts.map +0 -1
  86. package/lib/cjs/container/container.js +0 -622
  87. package/lib/cjs/container/container.js.map +0 -1
  88. package/lib/cjs/container/container_module.d.ts +0 -12
  89. package/lib/cjs/container/container_module.d.ts.map +0 -1
  90. package/lib/cjs/container/container_module.js +0 -23
  91. package/lib/cjs/container/container_module.js.map +0 -1
  92. package/lib/cjs/container/container_snapshot.d.ts +0 -11
  93. package/lib/cjs/container/container_snapshot.d.ts.map +0 -1
  94. package/lib/cjs/container/container_snapshot.js +0 -21
  95. package/lib/cjs/container/container_snapshot.js.map +0 -1
  96. package/lib/cjs/container/lookup.d.ts +0 -18
  97. package/lib/cjs/container/lookup.d.ts.map +0 -1
  98. package/lib/cjs/container/lookup.js +0 -144
  99. package/lib/cjs/container/lookup.js.map +0 -1
  100. package/lib/cjs/container/module_activation_store.d.ts +0 -11
  101. package/lib/cjs/container/module_activation_store.d.ts.map +0 -1
  102. package/lib/cjs/container/module_activation_store.js +0 -48
  103. package/lib/cjs/container/module_activation_store.js.map +0 -1
  104. package/lib/cjs/interfaces/interfaces.d.ts +0 -286
  105. package/lib/cjs/interfaces/interfaces.d.ts.map +0 -1
  106. package/lib/cjs/interfaces/interfaces.js +0 -3
  107. package/lib/cjs/interfaces/interfaces.js.map +0 -1
  108. package/lib/cjs/interfaces/interfaces_common_exports.d.ts +0 -4
  109. package/lib/cjs/interfaces/interfaces_common_exports.d.ts.map +0 -1
  110. package/lib/cjs/interfaces/interfaces_common_exports.js +0 -3
  111. package/lib/cjs/interfaces/interfaces_common_exports.js.map +0 -1
  112. package/lib/cjs/planning/context.d.ts +0 -12
  113. package/lib/cjs/planning/context.d.ts.map +0 -1
  114. package/lib/cjs/planning/context.js +0 -22
  115. package/lib/cjs/planning/context.js.map +0 -1
  116. package/lib/cjs/planning/metadata.d.ts +0 -9
  117. package/lib/cjs/planning/metadata.d.ts.map +0 -1
  118. package/lib/cjs/planning/metadata.js +0 -55
  119. package/lib/cjs/planning/metadata.js.map +0 -1
  120. package/lib/cjs/planning/metadata_reader.d.ts +0 -7
  121. package/lib/cjs/planning/metadata_reader.d.ts.map +0 -1
  122. package/lib/cjs/planning/metadata_reader.js +0 -56
  123. package/lib/cjs/planning/metadata_reader.js.map +0 -1
  124. package/lib/cjs/planning/plan.d.ts +0 -8
  125. package/lib/cjs/planning/plan.d.ts.map +0 -1
  126. package/lib/cjs/planning/plan.js +0 -13
  127. package/lib/cjs/planning/plan.js.map +0 -1
  128. package/lib/cjs/planning/planner.d.ts +0 -13
  129. package/lib/cjs/planning/planner.d.ts.map +0 -1
  130. package/lib/cjs/planning/planner.js +0 -217
  131. package/lib/cjs/planning/planner.js.map +0 -1
  132. package/lib/cjs/planning/queryable_string.d.ts +0 -11
  133. package/lib/cjs/planning/queryable_string.d.ts.map +0 -1
  134. package/lib/cjs/planning/queryable_string.js +0 -33
  135. package/lib/cjs/planning/queryable_string.js.map +0 -1
  136. package/lib/cjs/planning/reflection_utils.d.ts +0 -6
  137. package/lib/cjs/planning/reflection_utils.d.ts.map +0 -1
  138. package/lib/cjs/planning/reflection_utils.js +0 -67
  139. package/lib/cjs/planning/reflection_utils.js.map +0 -1
  140. package/lib/cjs/planning/request.d.ts +0 -15
  141. package/lib/cjs/planning/request.d.ts.map +0 -1
  142. package/lib/cjs/planning/request.js +0 -34
  143. package/lib/cjs/planning/request.js.map +0 -1
  144. package/lib/cjs/resolution/instantiation.d.ts +0 -4
  145. package/lib/cjs/resolution/instantiation.d.ts.map +0 -1
  146. package/lib/cjs/resolution/instantiation.js +0 -161
  147. package/lib/cjs/resolution/instantiation.js.map +0 -1
  148. package/lib/cjs/resolution/resolver.d.ts +0 -4
  149. package/lib/cjs/resolution/resolver.d.ts.map +0 -1
  150. package/lib/cjs/resolution/resolver.js +0 -212
  151. package/lib/cjs/resolution/resolver.js.map +0 -1
  152. package/lib/cjs/scope/scope.d.ts +0 -4
  153. package/lib/cjs/scope/scope.d.ts.map +0 -1
  154. package/lib/cjs/scope/scope.js +0 -55
  155. package/lib/cjs/scope/scope.js.map +0 -1
  156. package/lib/cjs/syntax/binding_in_syntax.d.ts +0 -10
  157. package/lib/cjs/syntax/binding_in_syntax.d.ts.map +0 -1
  158. package/lib/cjs/syntax/binding_in_syntax.js +0 -25
  159. package/lib/cjs/syntax/binding_in_syntax.js.map +0 -1
  160. package/lib/cjs/syntax/binding_in_when_on_syntax.d.ts +0 -30
  161. package/lib/cjs/syntax/binding_in_when_on_syntax.d.ts.map +0 -1
  162. package/lib/cjs/syntax/binding_in_when_on_syntax.js +0 -80
  163. package/lib/cjs/syntax/binding_in_when_on_syntax.js.map +0 -1
  164. package/lib/cjs/syntax/binding_on_syntax.d.ts +0 -9
  165. package/lib/cjs/syntax/binding_on_syntax.d.ts.map +0 -1
  166. package/lib/cjs/syntax/binding_on_syntax.js +0 -20
  167. package/lib/cjs/syntax/binding_on_syntax.js.map +0 -1
  168. package/lib/cjs/syntax/binding_to_syntax.d.ts +0 -19
  169. package/lib/cjs/syntax/binding_to_syntax.d.ts.map +0 -1
  170. package/lib/cjs/syntax/binding_to_syntax.js +0 -145
  171. package/lib/cjs/syntax/binding_to_syntax.js.map +0 -1
  172. package/lib/cjs/syntax/binding_when_on_syntax.d.ts +0 -26
  173. package/lib/cjs/syntax/binding_when_on_syntax.d.ts.map +0 -1
  174. package/lib/cjs/syntax/binding_when_on_syntax.js +0 -68
  175. package/lib/cjs/syntax/binding_when_on_syntax.js.map +0 -1
  176. package/lib/cjs/syntax/binding_when_syntax.d.ts +0 -22
  177. package/lib/cjs/syntax/binding_when_syntax.d.ts.map +0 -1
  178. package/lib/cjs/syntax/binding_when_syntax.js +0 -88
  179. package/lib/cjs/syntax/binding_when_syntax.js.map +0 -1
  180. package/lib/cjs/syntax/constraint_helpers.d.ts +0 -7
  181. package/lib/cjs/syntax/constraint_helpers.d.ts.map +0 -1
  182. package/lib/cjs/syntax/constraint_helpers.js +0 -78
  183. package/lib/cjs/syntax/constraint_helpers.js.map +0 -1
  184. package/lib/cjs/utils/async.d.ts +0 -4
  185. package/lib/cjs/utils/async.d.ts.map +0 -1
  186. package/lib/cjs/utils/async.js +0 -16
  187. package/lib/cjs/utils/async.js.map +0 -1
  188. package/lib/cjs/utils/binding_utils.d.ts +0 -5
  189. package/lib/cjs/utils/binding_utils.d.ts.map +0 -1
  190. package/lib/cjs/utils/binding_utils.js +0 -93
  191. package/lib/cjs/utils/binding_utils.js.map +0 -1
  192. package/lib/cjs/utils/clonable.d.ts +0 -4
  193. package/lib/cjs/utils/clonable.d.ts.map +0 -1
  194. package/lib/cjs/utils/clonable.js +0 -10
  195. package/lib/cjs/utils/clonable.js.map +0 -1
  196. package/lib/cjs/utils/exceptions.d.ts +0 -3
  197. package/lib/cjs/utils/exceptions.d.ts.map +0 -1
  198. package/lib/cjs/utils/exceptions.js +0 -55
  199. package/lib/cjs/utils/exceptions.js.map +0 -1
  200. package/lib/cjs/utils/factory_type.d.ts +0 -6
  201. package/lib/cjs/utils/factory_type.d.ts.map +0 -1
  202. package/lib/cjs/utils/factory_type.js +0 -10
  203. package/lib/cjs/utils/factory_type.js.map +0 -1
  204. package/lib/cjs/utils/get_base_type.d.ts +0 -3
  205. package/lib/cjs/utils/get_base_type.d.ts.map +0 -1
  206. package/lib/cjs/utils/get_base_type.js +0 -10
  207. package/lib/cjs/utils/get_base_type.js.map +0 -1
  208. package/lib/cjs/utils/id.d.ts +0 -3
  209. package/lib/cjs/utils/id.d.ts.map +0 -1
  210. package/lib/cjs/utils/id.js +0 -8
  211. package/lib/cjs/utils/id.js.map +0 -1
  212. package/lib/cjs/utils/js.d.ts +0 -2
  213. package/lib/cjs/utils/js.d.ts.map +0 -1
  214. package/lib/cjs/utils/js.js +0 -16
  215. package/lib/cjs/utils/js.js.map +0 -1
  216. package/lib/cjs/utils/serialization.d.ts +0 -11
  217. package/lib/cjs/utils/serialization.d.ts.map +0 -1
  218. package/lib/cjs/utils/serialization.js +0 -148
  219. package/lib/cjs/utils/serialization.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -4,13 +4,72 @@ 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
- ## [Unreleased]
7
+ ## [7.0.0-alpha.0]
8
8
 
9
9
  ### Added
10
+ - Added `BindInFluentSyntax`.
11
+ - Added `BindInWhenOnFluentSyntax`.
12
+ - Added `BindOnFluentSyntax`.
13
+ - Added `BindingScope`.
14
+ - Added `BindToFluentSyntax`.
15
+ - Added `BindWhenFluentSyntax`.
16
+ - Added `BindWhenOnFluentSyntax`.
17
+ - Added `ContainerModuleLoadOptions`.
18
+ - Added `DynamicValueBuilder`.
19
+ - Added `Factory`.
20
+ - Added `GetOptions`.
21
+ - Added `GetOptionsTagConstraint`.
22
+ - Added `IsBoundOptions`.
23
+ - Added `MetadataName`.
24
+ - Added `MetadataTag`.
25
+ - Added `MetadataTargetName`.
26
+ - Added `OptionalGetOptions`.
27
+ - Added `Provider`.
28
+ - Added `ResolutionContext`.
29
+ - Added `bindingScopeValues`.
30
+ - Added `bindingTypeValues`.
31
+ - Added `injectFromBase` decorator.
10
32
 
11
33
  ### Changed
34
+ - Updated `injectable` with optional `scope`.
35
+ - [Breaking] Updated `ContainerModule` constructor to receive a callback with `ContainerModuleLoadOptions` instead of `interfaces.ContainerModuleCallBack`.
36
+ - [Breaking] Updated `ContainerModule`.load to return `Promise<void>`.
37
+ - Updated `ContainerOptions` with `parent`.
38
+ - Updated `ContainerOptions` without `autoBindInjectable` and `skipBaseClassChecks`.
39
+ - [Breaking] Updated `Container` to no longer expose `id`, `parent` nor `options`.
40
+ - [Breaking] Updated `Container` with no `applyCustomMetadataReader`, `applyMiddleware`, `createChild`, `merge` and `rebind` methods.
41
+ - [Breaking] Updated `Container` with no `isCurrentBound`, `isBoundNamed`, `isBoundTagged` methods in favor of using `Container.isBound` with `isBoundOptions`.
42
+ - [Breaking] Updated `Container` with no `getNamed`, `getTagged`, `tryGet`, `tryGetNamed` and `tryGetTagged` methods in favor of `Container.get` with `OptionalGetOptions` options.
43
+ - [Breaking] Updated `Container` with no `getNamedAsync`, `getTaggedAsync`, `tryGetAsync`, `tryGetNamedAsync` and `tryGetTaggedAsync` methods in favor of `Container.getAsync` with `OptionalGetOptions` options.
44
+ - [Breaking] Updated `Container` with no `getAllNamed`, `getAllTagged`, `tryGetAll`, `tryGetAllNamed` and `tryGetAllTagged` methods in favor of `Container.getAll` with `GetOptions` options.
45
+ - [Breaking] Updated `Container` with no `getAllNamedAsync`, `getAllTaggedAsync`, `tryGetAllAsync`, `tryGetAllNamedAsync` and `tryGetAllTaggedAsync` methods in favor of `Container.getAllAsync` with `GetOptions` options.
46
+ - [Breaking] Updated `Container` with no `loadAsync` in favor of an async `Container.load`.
47
+ - [Breaking] Updated `Container` with no `unbindAsync` in favor of an async `Container.unbind`.
48
+ - [Breaking] Updated `Container` with no `unbindAllAsync` in favor of an async `Container.unbindAll`.
49
+ - [Breaking] Updated `Container` with no `unloadAsync` in favor of an async `Container.unload`.
50
+
12
51
 
13
52
  ### Fixed
53
+ - Updated `decorate` to no longer require a unexpected prototypes to decorate property nor methods.
54
+
55
+ ### Removed
56
+ - [Breaking] Removed deprecated `LazyServiceIdentifer`. Use `LazyServiceIdentifier` instead.
57
+ - [Breaking] Removed `BindingScopeEnum`. Use `bindingScopeValues` instead.
58
+ - [Breaking] Removed `BindingTypeEnum`.
59
+ - [Breaking] Removed `TargetTypeEnum`.
60
+ - [Breaking] Removed `METADATA_KEY`.
61
+ - [Breaking] Removed `AsyncContainerModule`. Use `ContainerModule` instead.
62
+ - [Breaking] Removed `createTaggedDecorator`.
63
+ - [Breaking] Removed `MetadataReader`.
64
+ - [Breaking] Removed `id`.
65
+ - [Breaking] Removed `interfaces` types. Rely on new types instead.
66
+ - [Breaking] Removed `traverseAncerstors`.
67
+ - [Breaking] Removed `taggedConstraint`.
68
+ - [Breaking] Removed `namedConstraint`.
69
+ - [Breaking] Removed `typeConstraint`.
70
+ - [Breaking] Removed `getServiceIdentifierAsString`.
71
+ - [Breaking] Removed `multiBindToService`.
72
+
14
73
 
15
74
  ## [6.2.1]
16
75
 
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
  ![](https://raw.githubusercontent.com/inversify/inversify.github.io/master/img/cover.jpg)
2
5
 
3
6
  <p align="center">
@@ -1,31 +1,5 @@
1
1
  import 'reflect-metadata';
2
- import { LazyServiceIdentifier } from '@inversifyjs/common';
3
- import * as keys from './constants/metadata_keys';
4
- export { LazyServiceIdentifier } from '@inversifyjs/common';
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OA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C;AACrC,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC"}
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.multiBindToService = exports.getServiceIdentifierAsString = exports.typeConstraint = exports.namedConstraint = exports.taggedConstraint = exports.traverseAncerstors = exports.decorate = exports.id = exports.MetadataReader = exports.preDestroy = exports.postConstruct = exports.targetName = exports.multiInject = exports.unmanaged = exports.optional = exports.inject = exports.named = exports.tagged = exports.injectable = exports.createTaggedDecorator = exports.ContainerModule = exports.AsyncContainerModule = exports.TargetTypeEnum = exports.BindingTypeEnum = exports.BindingScopeEnum = exports.Container = exports.METADATA_KEY = exports.LazyServiceIdentifer = exports.LazyServiceIdentifier = void 0;
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
- const common_1 = require("@inversifyjs/common");
40
- const keys = __importStar(require("./constants/metadata_keys"));
41
- var common_2 = require("@inversifyjs/common");
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
- var literal_types_1 = require("./constants/literal_types");
52
- Object.defineProperty(exports, "BindingScopeEnum", { enumerable: true, get: function () { return literal_types_1.BindingScopeEnum; } });
53
- Object.defineProperty(exports, "BindingTypeEnum", { enumerable: true, get: function () { return literal_types_1.BindingTypeEnum; } });
54
- Object.defineProperty(exports, "TargetTypeEnum", { enumerable: true, get: function () { return literal_types_1.TargetTypeEnum; } });
55
- var container_module_1 = require("./container/container_module");
56
- Object.defineProperty(exports, "AsyncContainerModule", { enumerable: true, get: function () { return container_module_1.AsyncContainerModule; } });
57
- Object.defineProperty(exports, "ContainerModule", { enumerable: true, get: function () { return container_module_1.ContainerModule; } });
58
- var decorator_utils_1 = require("./annotation/decorator_utils");
59
- Object.defineProperty(exports, "createTaggedDecorator", { enumerable: true, get: function () { return decorator_utils_1.createTaggedDecorator; } });
60
- var injectable_1 = require("./annotation/injectable");
61
- Object.defineProperty(exports, "injectable", { enumerable: true, get: function () { return injectable_1.injectable; } });
62
- var tagged_1 = require("./annotation/tagged");
63
- Object.defineProperty(exports, "tagged", { enumerable: true, get: function () { return tagged_1.tagged; } });
64
- var named_1 = require("./annotation/named");
65
- Object.defineProperty(exports, "named", { enumerable: true, get: function () { return named_1.named; } });
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
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yDAAyD;AACzD,4BAA0B;AAE1B,gDAA4D;AAE5D,gEAAkD;AAElD,8CAA4D;AAAnD,+GAAA,qBAAqB,OAAA;AAE9B;;GAEG;AACU,QAAA,oBAAoB,GAC/B,8BAAqB,CAAC;AAExB,sDAAsD;AACzC,QAAA,YAAY,GAAG,IAAI,CAAC;AACjC,mDAAkD;AAAzC,sGAAA,SA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