inversify 6.0.1 → 6.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (479) hide show
  1. package/.nyc_output/c29b2307-4e95-47d0-b220-9efcfa7ee49f.json +1 -0
  2. package/.nyc_output/processinfo/c29b2307-4e95-47d0-b220-9efcfa7ee49f.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -1
  4. package/CHANGELOG.md +33 -3
  5. package/README.md +27 -24
  6. package/amd/annotation/decorator_utils.js +14 -12
  7. package/amd/annotation/inject.js +5 -2
  8. package/amd/annotation/inject_base.js +2 -4
  9. package/amd/annotation/injectable.js +6 -4
  10. package/amd/annotation/lazy_service_identifier.js +6 -7
  11. package/amd/annotation/multi_inject.js +5 -2
  12. package/amd/annotation/named.js +6 -4
  13. package/amd/annotation/optional.js +6 -4
  14. package/amd/annotation/post_construct.js +5 -2
  15. package/amd/annotation/pre_destroy.js +5 -2
  16. package/amd/annotation/property_event_decorator.js +1 -3
  17. package/amd/annotation/tagged.js +1 -3
  18. package/amd/annotation/target_name.js +6 -4
  19. package/amd/annotation/unmanaged.js +6 -4
  20. package/amd/bindings/binding.js +0 -1
  21. package/amd/bindings/binding_count.js +1 -3
  22. package/amd/constants/error_msgs.js +52 -43
  23. package/amd/constants/literal_types.js +14 -15
  24. package/amd/constants/metadata_keys.js +12 -13
  25. package/amd/container/container.js +27 -18
  26. package/amd/container/container_module.js +0 -1
  27. package/amd/container/container_snapshot.js +0 -1
  28. package/amd/container/lookup.js +5 -2
  29. package/amd/container/module_activation_store.js +0 -1
  30. package/amd/interfaces/interfaces.js +1 -3
  31. package/amd/inversify.js +9 -5
  32. package/amd/planning/context.js +0 -1
  33. package/amd/planning/metadata.js +7 -4
  34. package/amd/planning/metadata_reader.js +5 -2
  35. package/amd/planning/plan.js +0 -1
  36. package/amd/planning/planner.js +13 -11
  37. package/amd/planning/queryable_string.js +3 -4
  38. package/amd/planning/reflection_utils.js +15 -12
  39. package/amd/planning/request.js +0 -1
  40. package/amd/planning/target.js +6 -3
  41. package/amd/resolution/instantiation.js +19 -13
  42. package/amd/resolution/resolver.js +10 -8
  43. package/amd/scope/scope.js +8 -9
  44. package/amd/syntax/binding_in_syntax.js +0 -1
  45. package/amd/syntax/binding_in_when_on_syntax.js +0 -1
  46. package/amd/syntax/binding_on_syntax.js +0 -1
  47. package/amd/syntax/binding_to_syntax.js +6 -3
  48. package/amd/syntax/binding_when_on_syntax.js +0 -1
  49. package/amd/syntax/binding_when_syntax.js +0 -1
  50. package/amd/syntax/constraint_helpers.js +6 -3
  51. package/amd/utils/async.js +2 -4
  52. package/amd/utils/binding_utils.js +9 -6
  53. package/amd/utils/clonable.js +1 -3
  54. package/amd/utils/exceptions.js +9 -6
  55. package/amd/utils/factory_type.js +1 -2
  56. package/amd/utils/id.js +1 -3
  57. package/amd/utils/js.js +1 -3
  58. package/amd/utils/serialization.js +26 -24
  59. package/es/annotation/decorator_utils.js +8 -9
  60. package/es/annotation/inject.js +2 -3
  61. package/es/annotation/inject_base.js +4 -5
  62. package/es/annotation/injectable.js +2 -3
  63. package/es/annotation/lazy_service_identifier.js +5 -6
  64. package/es/annotation/multi_inject.js +2 -3
  65. package/es/annotation/named.js +3 -4
  66. package/es/annotation/optional.js +3 -4
  67. package/es/annotation/post_construct.js +3 -4
  68. package/es/annotation/pre_destroy.js +3 -4
  69. package/es/annotation/property_event_decorator.js +1 -2
  70. package/es/annotation/tagged.js +0 -1
  71. package/es/annotation/target_name.js +0 -1
  72. package/es/annotation/unmanaged.js +3 -4
  73. package/es/bindings/binding.js +2 -3
  74. package/es/bindings/binding_count.js +1 -3
  75. package/es/constants/error_msgs.js +52 -43
  76. package/es/constants/literal_types.js +14 -15
  77. package/es/constants/metadata_keys.js +12 -13
  78. package/es/container/container.js +36 -31
  79. package/es/container/container_module.js +1 -2
  80. package/es/container/container_snapshot.js +0 -1
  81. package/es/container/lookup.js +2 -3
  82. package/es/container/module_activation_store.js +1 -2
  83. package/es/interfaces/interfaces.js +0 -1
  84. package/es/inversify.js +24 -24
  85. package/es/planning/context.js +1 -2
  86. package/es/planning/metadata.js +3 -4
  87. package/es/planning/metadata_reader.js +1 -2
  88. package/es/planning/plan.js +0 -1
  89. package/es/planning/planner.js +17 -18
  90. package/es/planning/queryable_string.js +3 -4
  91. package/es/planning/reflection_utils.js +13 -14
  92. package/es/planning/request.js +1 -2
  93. package/es/planning/target.js +1 -2
  94. package/es/resolution/instantiation.js +17 -14
  95. package/es/resolution/resolver.js +12 -13
  96. package/es/scope/scope.js +5 -6
  97. package/es/syntax/binding_in_syntax.js +2 -3
  98. package/es/syntax/binding_in_when_on_syntax.js +3 -4
  99. package/es/syntax/binding_on_syntax.js +1 -2
  100. package/es/syntax/binding_to_syntax.js +1 -2
  101. package/es/syntax/binding_when_on_syntax.js +2 -3
  102. package/es/syntax/binding_when_syntax.js +2 -3
  103. package/es/syntax/constraint_helpers.js +3 -4
  104. package/es/utils/async.js +0 -1
  105. package/es/utils/binding_utils.js +6 -7
  106. package/es/utils/clonable.js +0 -1
  107. package/es/utils/exceptions.js +3 -4
  108. package/es/utils/factory_type.js +0 -1
  109. package/es/utils/id.js +0 -1
  110. package/es/utils/js.js +0 -1
  111. package/es/utils/serialization.js +16 -17
  112. package/es6/annotation/decorator_utils.js +12 -10
  113. package/es6/annotation/inject.js +5 -2
  114. package/es6/annotation/inject_base.js +2 -4
  115. package/es6/annotation/injectable.js +6 -4
  116. package/es6/annotation/lazy_service_identifier.js +3 -4
  117. package/es6/annotation/multi_inject.js +5 -2
  118. package/es6/annotation/named.js +6 -4
  119. package/es6/annotation/optional.js +6 -4
  120. package/es6/annotation/post_construct.js +5 -2
  121. package/es6/annotation/pre_destroy.js +5 -2
  122. package/es6/annotation/property_event_decorator.js +1 -3
  123. package/es6/annotation/tagged.js +1 -3
  124. package/es6/annotation/target_name.js +6 -4
  125. package/es6/annotation/unmanaged.js +6 -4
  126. package/es6/bindings/binding.js +0 -1
  127. package/es6/bindings/binding_count.js +1 -3
  128. package/es6/constants/error_msgs.js +46 -38
  129. package/es6/constants/literal_types.js +14 -15
  130. package/es6/constants/metadata_keys.js +12 -13
  131. package/es6/container/container.js +35 -27
  132. package/es6/container/container_module.js +0 -1
  133. package/es6/container/container_snapshot.js +0 -1
  134. package/es6/container/lookup.js +5 -2
  135. package/es6/container/module_activation_store.js +0 -1
  136. package/es6/interfaces/interfaces.js +1 -3
  137. package/es6/inversify.js +9 -4
  138. package/es6/planning/context.js +0 -1
  139. package/es6/planning/metadata.js +5 -2
  140. package/es6/planning/metadata_reader.js +5 -2
  141. package/es6/planning/plan.js +0 -1
  142. package/es6/planning/planner.js +12 -10
  143. package/es6/planning/queryable_string.js +3 -4
  144. package/es6/planning/reflection_utils.js +12 -9
  145. package/es6/planning/request.js +0 -1
  146. package/es6/planning/target.js +6 -3
  147. package/es6/resolution/instantiation.js +15 -9
  148. package/es6/resolution/resolver.js +7 -5
  149. package/es6/scope/scope.js +5 -6
  150. package/es6/syntax/binding_in_syntax.js +0 -1
  151. package/es6/syntax/binding_in_when_on_syntax.js +0 -1
  152. package/es6/syntax/binding_on_syntax.js +0 -1
  153. package/es6/syntax/binding_to_syntax.js +5 -2
  154. package/es6/syntax/binding_when_on_syntax.js +0 -1
  155. package/es6/syntax/binding_when_syntax.js +0 -1
  156. package/es6/syntax/constraint_helpers.js +6 -3
  157. package/es6/utils/async.js +2 -4
  158. package/es6/utils/binding_utils.js +7 -4
  159. package/es6/utils/clonable.js +1 -3
  160. package/es6/utils/exceptions.js +9 -6
  161. package/es6/utils/factory_type.js +1 -2
  162. package/es6/utils/id.js +1 -3
  163. package/es6/utils/js.js +1 -3
  164. package/es6/utils/serialization.js +20 -18
  165. package/lib/annotation/decorator_utils.d.ts +5 -5
  166. package/lib/annotation/decorator_utils.js +14 -12
  167. package/lib/annotation/inject.d.ts +1 -1
  168. package/lib/annotation/inject.js +5 -2
  169. package/lib/annotation/inject_base.d.ts +3 -3
  170. package/lib/annotation/inject_base.js +2 -4
  171. package/lib/annotation/injectable.d.ts +1 -1
  172. package/lib/annotation/injectable.js +6 -4
  173. package/lib/annotation/lazy_service_identifier.d.ts +3 -3
  174. package/lib/annotation/lazy_service_identifier.js +6 -7
  175. package/lib/annotation/multi_inject.d.ts +1 -1
  176. package/lib/annotation/multi_inject.js +5 -2
  177. package/lib/annotation/named.d.ts +1 -1
  178. package/lib/annotation/named.js +6 -4
  179. package/lib/annotation/optional.d.ts +1 -1
  180. package/lib/annotation/optional.js +6 -4
  181. package/lib/annotation/post_construct.js +5 -2
  182. package/lib/annotation/pre_destroy.js +5 -2
  183. package/lib/annotation/property_event_decorator.js +1 -3
  184. package/lib/annotation/tagged.d.ts +1 -1
  185. package/lib/annotation/tagged.js +1 -3
  186. package/lib/annotation/target_name.d.ts +1 -1
  187. package/lib/annotation/target_name.js +6 -4
  188. package/lib/annotation/unmanaged.d.ts +2 -2
  189. package/lib/annotation/unmanaged.js +6 -4
  190. package/lib/bindings/binding.d.ts +2 -2
  191. package/lib/bindings/binding.js +0 -1
  192. package/lib/bindings/binding_count.d.ts +1 -2
  193. package/lib/bindings/binding_count.js +1 -3
  194. package/lib/constants/error_msgs.js +52 -43
  195. package/lib/constants/literal_types.d.ts +1 -1
  196. package/lib/constants/literal_types.js +14 -15
  197. package/lib/constants/metadata_keys.js +12 -13
  198. package/lib/container/container.d.ts +2 -2
  199. package/lib/container/container.js +27 -18
  200. package/lib/container/container_module.d.ts +1 -1
  201. package/lib/container/container_module.js +0 -1
  202. package/lib/container/container_snapshot.d.ts +1 -1
  203. package/lib/container/container_snapshot.js +0 -1
  204. package/lib/container/lookup.d.ts +1 -1
  205. package/lib/container/lookup.js +5 -2
  206. package/lib/container/module_activation_store.d.ts +1 -1
  207. package/lib/container/module_activation_store.js +0 -1
  208. package/lib/interfaces/interfaces.d.ts +23 -22
  209. package/lib/interfaces/interfaces.js +1 -3
  210. package/lib/inversify.d.ts +24 -23
  211. package/lib/inversify.js +9 -4
  212. package/lib/planning/context.d.ts +1 -1
  213. package/lib/planning/context.js +0 -1
  214. package/lib/planning/metadata.d.ts +1 -1
  215. package/lib/planning/metadata.js +7 -4
  216. package/lib/planning/metadata_reader.d.ts +1 -1
  217. package/lib/planning/metadata_reader.js +5 -2
  218. package/lib/planning/plan.d.ts +1 -1
  219. package/lib/planning/plan.js +0 -1
  220. package/lib/planning/planner.d.ts +1 -1
  221. package/lib/planning/planner.js +13 -11
  222. package/lib/planning/queryable_string.d.ts +1 -1
  223. package/lib/planning/queryable_string.js +3 -4
  224. package/lib/planning/reflection_utils.d.ts +2 -2
  225. package/lib/planning/reflection_utils.js +15 -12
  226. package/lib/planning/request.d.ts +1 -1
  227. package/lib/planning/request.js +0 -1
  228. package/lib/planning/target.js +6 -3
  229. package/lib/resolution/instantiation.d.ts +1 -1
  230. package/lib/resolution/instantiation.js +19 -13
  231. package/lib/resolution/resolver.d.ts +1 -1
  232. package/lib/resolution/resolver.js +10 -8
  233. package/lib/scope/scope.d.ts +1 -1
  234. package/lib/scope/scope.js +8 -9
  235. package/lib/syntax/binding_in_syntax.d.ts +1 -1
  236. package/lib/syntax/binding_in_syntax.js +0 -1
  237. package/lib/syntax/binding_in_when_on_syntax.d.ts +1 -1
  238. package/lib/syntax/binding_in_when_on_syntax.js +0 -1
  239. package/lib/syntax/binding_on_syntax.d.ts +1 -1
  240. package/lib/syntax/binding_on_syntax.js +0 -1
  241. package/lib/syntax/binding_to_syntax.d.ts +1 -1
  242. package/lib/syntax/binding_to_syntax.js +6 -3
  243. package/lib/syntax/binding_when_on_syntax.d.ts +1 -1
  244. package/lib/syntax/binding_when_on_syntax.js +0 -1
  245. package/lib/syntax/binding_when_syntax.d.ts +1 -1
  246. package/lib/syntax/binding_when_syntax.js +0 -1
  247. package/lib/syntax/constraint_helpers.d.ts +1 -1
  248. package/lib/syntax/constraint_helpers.js +6 -3
  249. package/lib/tsconfig.tsbuildinfo +1 -1
  250. package/lib/utils/async.js +2 -4
  251. package/lib/utils/binding_utils.d.ts +1 -1
  252. package/lib/utils/binding_utils.js +9 -6
  253. package/lib/utils/clonable.d.ts +1 -1
  254. package/lib/utils/clonable.js +1 -3
  255. package/lib/utils/exceptions.d.ts +1 -1
  256. package/lib/utils/exceptions.js +9 -6
  257. package/lib/utils/factory_type.js +1 -2
  258. package/lib/utils/id.js +1 -3
  259. package/lib/utils/js.js +1 -3
  260. package/lib/utils/serialization.d.ts +1 -1
  261. package/lib/utils/serialization.js +26 -24
  262. package/package.json +46 -61
  263. package/.auditignore +0 -2
  264. package/.nyc_output/c19faffc-964b-4370-81a6-9b4942f3c35e.json +0 -1
  265. package/.nyc_output/processinfo/c19faffc-964b-4370-81a6-9b4942f3c35e.json +0 -1
  266. package/CODE_OF_CONDUCT.md +0 -46
  267. package/amd/annotation/decorator_utils.js.map +0 -1
  268. package/amd/annotation/inject.js.map +0 -1
  269. package/amd/annotation/inject_base.js.map +0 -1
  270. package/amd/annotation/injectable.js.map +0 -1
  271. package/amd/annotation/lazy_service_identifier.js.map +0 -1
  272. package/amd/annotation/multi_inject.js.map +0 -1
  273. package/amd/annotation/named.js.map +0 -1
  274. package/amd/annotation/optional.js.map +0 -1
  275. package/amd/annotation/post_construct.js.map +0 -1
  276. package/amd/annotation/pre_destroy.js.map +0 -1
  277. package/amd/annotation/property_event_decorator.js.map +0 -1
  278. package/amd/annotation/tagged.js.map +0 -1
  279. package/amd/annotation/target_name.js.map +0 -1
  280. package/amd/annotation/unmanaged.js.map +0 -1
  281. package/amd/bindings/binding.js.map +0 -1
  282. package/amd/bindings/binding_count.js.map +0 -1
  283. package/amd/constants/error_msgs.js.map +0 -1
  284. package/amd/constants/literal_types.js.map +0 -1
  285. package/amd/constants/metadata_keys.js.map +0 -1
  286. package/amd/container/container.js.map +0 -1
  287. package/amd/container/container_module.js.map +0 -1
  288. package/amd/container/container_snapshot.js.map +0 -1
  289. package/amd/container/lookup.js.map +0 -1
  290. package/amd/container/module_activation_store.js.map +0 -1
  291. package/amd/interfaces/interfaces.js.map +0 -1
  292. package/amd/inversify.js.map +0 -1
  293. package/amd/planning/context.js.map +0 -1
  294. package/amd/planning/metadata.js.map +0 -1
  295. package/amd/planning/metadata_reader.js.map +0 -1
  296. package/amd/planning/plan.js.map +0 -1
  297. package/amd/planning/planner.js.map +0 -1
  298. package/amd/planning/queryable_string.js.map +0 -1
  299. package/amd/planning/reflection_utils.js.map +0 -1
  300. package/amd/planning/request.js.map +0 -1
  301. package/amd/planning/target.js.map +0 -1
  302. package/amd/resolution/instantiation.js.map +0 -1
  303. package/amd/resolution/resolver.js.map +0 -1
  304. package/amd/scope/scope.js.map +0 -1
  305. package/amd/syntax/binding_in_syntax.js.map +0 -1
  306. package/amd/syntax/binding_in_when_on_syntax.js.map +0 -1
  307. package/amd/syntax/binding_on_syntax.js.map +0 -1
  308. package/amd/syntax/binding_to_syntax.js.map +0 -1
  309. package/amd/syntax/binding_when_on_syntax.js.map +0 -1
  310. package/amd/syntax/binding_when_syntax.js.map +0 -1
  311. package/amd/syntax/constraint_helpers.js.map +0 -1
  312. package/amd/utils/async.js.map +0 -1
  313. package/amd/utils/binding_utils.js.map +0 -1
  314. package/amd/utils/clonable.js.map +0 -1
  315. package/amd/utils/exceptions.js.map +0 -1
  316. package/amd/utils/factory_type.js.map +0 -1
  317. package/amd/utils/id.js.map +0 -1
  318. package/amd/utils/js.js.map +0 -1
  319. package/amd/utils/serialization.js.map +0 -1
  320. package/es/annotation/decorator_utils.js.map +0 -1
  321. package/es/annotation/inject.js.map +0 -1
  322. package/es/annotation/inject_base.js.map +0 -1
  323. package/es/annotation/injectable.js.map +0 -1
  324. package/es/annotation/lazy_service_identifier.js.map +0 -1
  325. package/es/annotation/multi_inject.js.map +0 -1
  326. package/es/annotation/named.js.map +0 -1
  327. package/es/annotation/optional.js.map +0 -1
  328. package/es/annotation/post_construct.js.map +0 -1
  329. package/es/annotation/pre_destroy.js.map +0 -1
  330. package/es/annotation/property_event_decorator.js.map +0 -1
  331. package/es/annotation/tagged.js.map +0 -1
  332. package/es/annotation/target_name.js.map +0 -1
  333. package/es/annotation/unmanaged.js.map +0 -1
  334. package/es/bindings/binding.js.map +0 -1
  335. package/es/bindings/binding_count.js.map +0 -1
  336. package/es/constants/error_msgs.js.map +0 -1
  337. package/es/constants/literal_types.js.map +0 -1
  338. package/es/constants/metadata_keys.js.map +0 -1
  339. package/es/container/container.js.map +0 -1
  340. package/es/container/container_module.js.map +0 -1
  341. package/es/container/container_snapshot.js.map +0 -1
  342. package/es/container/lookup.js.map +0 -1
  343. package/es/container/module_activation_store.js.map +0 -1
  344. package/es/interfaces/interfaces.js.map +0 -1
  345. package/es/inversify.js.map +0 -1
  346. package/es/planning/context.js.map +0 -1
  347. package/es/planning/metadata.js.map +0 -1
  348. package/es/planning/metadata_reader.js.map +0 -1
  349. package/es/planning/plan.js.map +0 -1
  350. package/es/planning/planner.js.map +0 -1
  351. package/es/planning/queryable_string.js.map +0 -1
  352. package/es/planning/reflection_utils.js.map +0 -1
  353. package/es/planning/request.js.map +0 -1
  354. package/es/planning/target.js.map +0 -1
  355. package/es/resolution/instantiation.js.map +0 -1
  356. package/es/resolution/resolver.js.map +0 -1
  357. package/es/scope/scope.js.map +0 -1
  358. package/es/syntax/binding_in_syntax.js.map +0 -1
  359. package/es/syntax/binding_in_when_on_syntax.js.map +0 -1
  360. package/es/syntax/binding_on_syntax.js.map +0 -1
  361. package/es/syntax/binding_to_syntax.js.map +0 -1
  362. package/es/syntax/binding_when_on_syntax.js.map +0 -1
  363. package/es/syntax/binding_when_syntax.js.map +0 -1
  364. package/es/syntax/constraint_helpers.js.map +0 -1
  365. package/es/utils/async.js.map +0 -1
  366. package/es/utils/binding_utils.js.map +0 -1
  367. package/es/utils/clonable.js.map +0 -1
  368. package/es/utils/exceptions.js.map +0 -1
  369. package/es/utils/factory_type.js.map +0 -1
  370. package/es/utils/id.js.map +0 -1
  371. package/es/utils/js.js.map +0 -1
  372. package/es/utils/serialization.js.map +0 -1
  373. package/es6/annotation/decorator_utils.js.map +0 -1
  374. package/es6/annotation/inject.js.map +0 -1
  375. package/es6/annotation/inject_base.js.map +0 -1
  376. package/es6/annotation/injectable.js.map +0 -1
  377. package/es6/annotation/lazy_service_identifier.js.map +0 -1
  378. package/es6/annotation/multi_inject.js.map +0 -1
  379. package/es6/annotation/named.js.map +0 -1
  380. package/es6/annotation/optional.js.map +0 -1
  381. package/es6/annotation/post_construct.js.map +0 -1
  382. package/es6/annotation/pre_destroy.js.map +0 -1
  383. package/es6/annotation/property_event_decorator.js.map +0 -1
  384. package/es6/annotation/tagged.js.map +0 -1
  385. package/es6/annotation/target_name.js.map +0 -1
  386. package/es6/annotation/unmanaged.js.map +0 -1
  387. package/es6/bindings/binding.js.map +0 -1
  388. package/es6/bindings/binding_count.js.map +0 -1
  389. package/es6/constants/error_msgs.js.map +0 -1
  390. package/es6/constants/literal_types.js.map +0 -1
  391. package/es6/constants/metadata_keys.js.map +0 -1
  392. package/es6/container/container.js.map +0 -1
  393. package/es6/container/container_module.js.map +0 -1
  394. package/es6/container/container_snapshot.js.map +0 -1
  395. package/es6/container/lookup.js.map +0 -1
  396. package/es6/container/module_activation_store.js.map +0 -1
  397. package/es6/interfaces/interfaces.js.map +0 -1
  398. package/es6/inversify.js.map +0 -1
  399. package/es6/planning/context.js.map +0 -1
  400. package/es6/planning/metadata.js.map +0 -1
  401. package/es6/planning/metadata_reader.js.map +0 -1
  402. package/es6/planning/plan.js.map +0 -1
  403. package/es6/planning/planner.js.map +0 -1
  404. package/es6/planning/queryable_string.js.map +0 -1
  405. package/es6/planning/reflection_utils.js.map +0 -1
  406. package/es6/planning/request.js.map +0 -1
  407. package/es6/planning/target.js.map +0 -1
  408. package/es6/resolution/instantiation.js.map +0 -1
  409. package/es6/resolution/resolver.js.map +0 -1
  410. package/es6/scope/scope.js.map +0 -1
  411. package/es6/syntax/binding_in_syntax.js.map +0 -1
  412. package/es6/syntax/binding_in_when_on_syntax.js.map +0 -1
  413. package/es6/syntax/binding_on_syntax.js.map +0 -1
  414. package/es6/syntax/binding_to_syntax.js.map +0 -1
  415. package/es6/syntax/binding_when_on_syntax.js.map +0 -1
  416. package/es6/syntax/binding_when_syntax.js.map +0 -1
  417. package/es6/syntax/constraint_helpers.js.map +0 -1
  418. package/es6/utils/async.js.map +0 -1
  419. package/es6/utils/binding_utils.js.map +0 -1
  420. package/es6/utils/clonable.js.map +0 -1
  421. package/es6/utils/exceptions.js.map +0 -1
  422. package/es6/utils/factory_type.js.map +0 -1
  423. package/es6/utils/id.js.map +0 -1
  424. package/es6/utils/js.js.map +0 -1
  425. package/es6/utils/serialization.js.map +0 -1
  426. package/lib/annotation/decorator_utils.js.map +0 -1
  427. package/lib/annotation/inject.js.map +0 -1
  428. package/lib/annotation/inject_base.js.map +0 -1
  429. package/lib/annotation/injectable.js.map +0 -1
  430. package/lib/annotation/lazy_service_identifier.js.map +0 -1
  431. package/lib/annotation/multi_inject.js.map +0 -1
  432. package/lib/annotation/named.js.map +0 -1
  433. package/lib/annotation/optional.js.map +0 -1
  434. package/lib/annotation/post_construct.js.map +0 -1
  435. package/lib/annotation/pre_destroy.js.map +0 -1
  436. package/lib/annotation/property_event_decorator.js.map +0 -1
  437. package/lib/annotation/tagged.js.map +0 -1
  438. package/lib/annotation/target_name.js.map +0 -1
  439. package/lib/annotation/unmanaged.js.map +0 -1
  440. package/lib/bindings/binding.js.map +0 -1
  441. package/lib/bindings/binding_count.js.map +0 -1
  442. package/lib/constants/error_msgs.js.map +0 -1
  443. package/lib/constants/literal_types.js.map +0 -1
  444. package/lib/constants/metadata_keys.js.map +0 -1
  445. package/lib/container/container.js.map +0 -1
  446. package/lib/container/container_module.js.map +0 -1
  447. package/lib/container/container_snapshot.js.map +0 -1
  448. package/lib/container/lookup.js.map +0 -1
  449. package/lib/container/module_activation_store.js.map +0 -1
  450. package/lib/interfaces/interfaces.js.map +0 -1
  451. package/lib/inversify.js.map +0 -1
  452. package/lib/planning/context.js.map +0 -1
  453. package/lib/planning/metadata.js.map +0 -1
  454. package/lib/planning/metadata_reader.js.map +0 -1
  455. package/lib/planning/plan.js.map +0 -1
  456. package/lib/planning/planner.js.map +0 -1
  457. package/lib/planning/queryable_string.js.map +0 -1
  458. package/lib/planning/reflection_utils.js.map +0 -1
  459. package/lib/planning/request.js.map +0 -1
  460. package/lib/planning/target.js.map +0 -1
  461. package/lib/resolution/instantiation.js.map +0 -1
  462. package/lib/resolution/resolver.js.map +0 -1
  463. package/lib/scope/scope.js.map +0 -1
  464. package/lib/syntax/binding_in_syntax.js.map +0 -1
  465. package/lib/syntax/binding_in_when_on_syntax.js.map +0 -1
  466. package/lib/syntax/binding_on_syntax.js.map +0 -1
  467. package/lib/syntax/binding_to_syntax.js.map +0 -1
  468. package/lib/syntax/binding_when_on_syntax.js.map +0 -1
  469. package/lib/syntax/binding_when_syntax.js.map +0 -1
  470. package/lib/syntax/constraint_helpers.js.map +0 -1
  471. package/lib/utils/async.js.map +0 -1
  472. package/lib/utils/binding_utils.js.map +0 -1
  473. package/lib/utils/clonable.js.map +0 -1
  474. package/lib/utils/exceptions.js.map +0 -1
  475. package/lib/utils/factory_type.js.map +0 -1
  476. package/lib/utils/id.js.map +0 -1
  477. package/lib/utils/js.js.map +0 -1
  478. package/lib/utils/serialization.js.map +0 -1
  479. package/mocha.opts +0 -3
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -19,7 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
23
  return result;
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.createTaggedDecorator = exports.tagProperty = exports.tagParameter = exports.decorate = void 0;
26
+ exports.decorate = decorate;
27
+ exports.tagParameter = tagParameter;
28
+ exports.tagProperty = tagProperty;
29
+ exports.createTaggedDecorator = createTaggedDecorator;
23
30
  var ERROR_MSGS = __importStar(require("../constants/error_msgs"));
24
31
  var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
25
32
  var js_1 = require("../utils/js");
@@ -35,21 +42,19 @@ function tagParameter(annotationTarget, parameterName, parameterIndex, metadata)
35
42
  _throwIfMethodParameter(parameterName);
36
43
  _tagParameterOrProperty(METADATA_KEY.TAGGED, annotationTarget, parameterIndex.toString(), metadata);
37
44
  }
38
- exports.tagParameter = tagParameter;
39
45
  function tagProperty(annotationTarget, propertyName, metadata) {
40
46
  if (targetIsConstructorFunction(annotationTarget)) {
41
47
  throw new Error(ERROR_MSGS.INVALID_DECORATOR_OPERATION);
42
48
  }
43
49
  _tagParameterOrProperty(METADATA_KEY.TAGGED_PROP, annotationTarget.constructor, propertyName, metadata);
44
50
  }
45
- exports.tagProperty = tagProperty;
46
51
  function _ensureNoMetadataKeyDuplicates(metadata) {
47
52
  var metadatas = [];
48
53
  if (Array.isArray(metadata)) {
49
54
  metadatas = metadata;
50
55
  var duplicate = (0, js_1.getFirstArrayDuplicate)(metadatas.map(function (md) { return md.key; }));
51
56
  if (duplicate !== undefined) {
52
- throw new Error(ERROR_MSGS.DUPLICATED_METADATA + " " + duplicate.toString());
57
+ throw new Error("".concat(ERROR_MSGS.DUPLICATED_METADATA, " ").concat(duplicate.toString()));
53
58
  }
54
59
  }
55
60
  else {
@@ -70,7 +75,7 @@ function _tagParameterOrProperty(metadataKey, annotationTarget, key, metadata) {
70
75
  else {
71
76
  var _loop_1 = function (m) {
72
77
  if (metadatas.some(function (md) { return md.key === m.key; })) {
73
- throw new Error(ERROR_MSGS.DUPLICATED_METADATA + " " + m.key.toString());
78
+ throw new Error("".concat(ERROR_MSGS.DUPLICATED_METADATA, " ").concat(m.key.toString()));
74
79
  }
75
80
  };
76
81
  for (var _i = 0, paramOrPropertyMetadata_1 = paramOrPropertyMetadata; _i < paramOrPropertyMetadata_1.length; _i++) {
@@ -84,7 +89,7 @@ function _tagParameterOrProperty(metadataKey, annotationTarget, key, metadata) {
84
89
  }
85
90
  function createTaggedDecorator(metadata) {
86
91
  return function (target, targetKey, indexOrPropertyDescriptor) {
87
- if (typeof indexOrPropertyDescriptor === "number") {
92
+ if (typeof indexOrPropertyDescriptor === 'number') {
88
93
  tagParameter(target, targetKey, indexOrPropertyDescriptor, metadata);
89
94
  }
90
95
  else {
@@ -92,7 +97,6 @@ function createTaggedDecorator(metadata) {
92
97
  }
93
98
  };
94
99
  }
95
- exports.createTaggedDecorator = createTaggedDecorator;
96
100
  function _decorate(decorators, target) {
97
101
  Reflect.decorate(decorators, target);
98
102
  }
@@ -100,15 +104,13 @@ function _param(paramIndex, decorator) {
100
104
  return function (target, key) { decorator(target, key, paramIndex); };
101
105
  }
102
106
  function decorate(decorator, target, parameterIndexOrProperty) {
103
- if (typeof parameterIndexOrProperty === "number") {
107
+ if (typeof parameterIndexOrProperty === 'number') {
104
108
  _decorate([_param(parameterIndexOrProperty, decorator)], target);
105
109
  }
106
- else if (typeof parameterIndexOrProperty === "string") {
110
+ else if (typeof parameterIndexOrProperty === 'string') {
107
111
  Reflect.decorate([decorator], target, parameterIndexOrProperty);
108
112
  }
109
113
  else {
110
114
  _decorate([decorator], target);
111
115
  }
112
116
  }
113
- exports.decorate = decorate;
114
- //# sourceMappingURL=decorator_utils.js.map
@@ -1,2 +1,2 @@
1
- declare const inject: <T = unknown>(serviceIdentifier: import("./lazy_service_identifier").ServiceIdentifierOrFunc<T>) => (target: import("./decorator_utils").DecoratorTarget<unknown>, targetKey?: string | symbol | undefined, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<any> | undefined) => void;
1
+ declare const inject: <T = unknown>(serviceIdentifier: import("./lazy_service_identifier").ServiceIdentifierOrFunc<T>) => (target: import("./decorator_utils").DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
2
2
  export { inject };
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -24,4 +28,3 @@ var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
24
28
  var inject_base_1 = require("./inject_base");
25
29
  var inject = (0, inject_base_1.injectBase)(METADATA_KEY.INJECT_TAG);
26
30
  exports.inject = inject;
27
- //# sourceMappingURL=inject.js.map
@@ -1,3 +1,3 @@
1
- import { DecoratorTarget } from "./decorator_utils";
2
- import { ServiceIdentifierOrFunc } from "./lazy_service_identifier";
3
- export declare function injectBase(metadataKey: string): <T = unknown>(serviceIdentifier: ServiceIdentifierOrFunc<T>) => (target: DecoratorTarget, targetKey?: string | symbol | undefined, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<any> | undefined) => void;
1
+ import { DecoratorTarget } from './decorator_utils';
2
+ import { ServiceIdentifierOrFunc } from './lazy_service_identifier';
3
+ export declare function injectBase(metadataKey: string): <T = unknown>(serviceIdentifier: ServiceIdentifierOrFunc<T>) => (target: DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.injectBase = void 0;
3
+ exports.injectBase = injectBase;
4
4
  var error_msgs_1 = require("../constants/error_msgs");
5
5
  var metadata_1 = require("../planning/metadata");
6
6
  var decorator_utils_1 = require("./decorator_utils");
@@ -8,12 +8,10 @@ function injectBase(metadataKey) {
8
8
  return function (serviceIdentifier) {
9
9
  return function (target, targetKey, indexOrPropertyDescriptor) {
10
10
  if (serviceIdentifier === undefined) {
11
- var className = typeof target === "function" ? target.name : target.constructor.name;
11
+ var className = typeof target === 'function' ? target.name : target.constructor.name;
12
12
  throw new Error((0, error_msgs_1.UNDEFINED_INJECT_ANNOTATION)(className));
13
13
  }
14
14
  return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(metadataKey, serviceIdentifier))(target, targetKey, indexOrPropertyDescriptor);
15
15
  };
16
16
  };
17
17
  }
18
- exports.injectBase = injectBase;
19
- //# sourceMappingURL=inject_base.js.map
@@ -1,2 +1,2 @@
1
- declare function injectable(): <T extends abstract new (...args: never) => unknown>(target: T) => T;
1
+ declare function injectable(): <T extends abstract new (...args: any) => unknown>(target: T) => T;
2
2
  export { injectable };
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -19,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
23
  return result;
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.injectable = void 0;
26
+ exports.injectable = injectable;
23
27
  var ERRORS_MSGS = __importStar(require("../constants/error_msgs"));
24
28
  var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
25
29
  function injectable() {
@@ -32,5 +36,3 @@ function injectable() {
32
36
  return target;
33
37
  };
34
38
  }
35
- exports.injectable = injectable;
36
- //# sourceMappingURL=injectable.js.map
@@ -1,6 +1,6 @@
1
- import { interfaces } from "../interfaces/interfaces";
2
- export declare type ServiceIdentifierOrFunc<T> = interfaces.ServiceIdentifier<T> | LazyServiceIdentifer<T>;
3
- export declare class LazyServiceIdentifer<T = unknown> {
1
+ import { interfaces } from '../interfaces/interfaces';
2
+ export type ServiceIdentifierOrFunc<T> = interfaces.ServiceIdentifier<T> | LazyServiceIdentifier<T>;
3
+ export declare class LazyServiceIdentifier<T = unknown> {
4
4
  private _cb;
5
5
  constructor(cb: () => interfaces.ServiceIdentifier<T>);
6
6
  unwrap(): interfaces.ServiceIdentifier<T>;
@@ -1,14 +1,13 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LazyServiceIdentifer = void 0;
4
- var LazyServiceIdentifer = (function () {
5
- function LazyServiceIdentifer(cb) {
3
+ exports.LazyServiceIdentifier = void 0;
4
+ var LazyServiceIdentifier = (function () {
5
+ function LazyServiceIdentifier(cb) {
6
6
  this._cb = cb;
7
7
  }
8
- LazyServiceIdentifer.prototype.unwrap = function () {
8
+ LazyServiceIdentifier.prototype.unwrap = function () {
9
9
  return this._cb();
10
10
  };
11
- return LazyServiceIdentifer;
11
+ return LazyServiceIdentifier;
12
12
  }());
13
- exports.LazyServiceIdentifer = LazyServiceIdentifer;
14
- //# sourceMappingURL=lazy_service_identifier.js.map
13
+ exports.LazyServiceIdentifier = LazyServiceIdentifier;
@@ -1,2 +1,2 @@
1
- declare const multiInject: <T = unknown>(serviceIdentifier: import("./lazy_service_identifier").ServiceIdentifierOrFunc<T>) => (target: import("./decorator_utils").DecoratorTarget<unknown>, targetKey?: string | symbol | undefined, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<any> | undefined) => void;
1
+ declare const multiInject: <T = unknown>(serviceIdentifier: import("./lazy_service_identifier").ServiceIdentifierOrFunc<T>) => (target: import("./decorator_utils").DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
2
2
  export { multiInject };
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -24,4 +28,3 @@ var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
24
28
  var inject_base_1 = require("./inject_base");
25
29
  var multiInject = (0, inject_base_1.injectBase)(METADATA_KEY.MULTI_INJECT_TAG);
26
30
  exports.multiInject = multiInject;
27
- //# sourceMappingURL=multi_inject.js.map
@@ -1,2 +1,2 @@
1
- declare function named(name: string | number | symbol): <T>(target: import("./decorator_utils").DecoratorTarget<unknown>, targetKey?: string | symbol | undefined, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T> | undefined) => void;
1
+ declare function named(name: string | number | symbol): <T>(target: import("./decorator_utils").DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
2
2
  export { named };
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -19,12 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
23
  return result;
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.named = void 0;
26
+ exports.named = named;
23
27
  var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
24
28
  var metadata_1 = require("../planning/metadata");
25
29
  var decorator_utils_1 = require("./decorator_utils");
26
30
  function named(name) {
27
31
  return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(METADATA_KEY.NAMED_TAG, name));
28
32
  }
29
- exports.named = named;
30
- //# sourceMappingURL=named.js.map
@@ -1,2 +1,2 @@
1
- declare function optional(): <T>(target: import("./decorator_utils").DecoratorTarget<unknown>, targetKey?: string | symbol | undefined, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T> | undefined) => void;
1
+ declare function optional(): <T>(target: import("./decorator_utils").DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T>) => void;
2
2
  export { optional };
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -19,12 +23,10 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
23
  return result;
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.optional = void 0;
26
+ exports.optional = optional;
23
27
  var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
24
28
  var metadata_1 = require("../planning/metadata");
25
29
  var decorator_utils_1 = require("./decorator_utils");
26
30
  function optional() {
27
31
  return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(METADATA_KEY.OPTIONAL_TAG, true));
28
32
  }
29
- exports.optional = optional;
30
- //# sourceMappingURL=optional.js.map
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -25,4 +29,3 @@ var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
25
29
  var property_event_decorator_1 = require("./property_event_decorator");
26
30
  var postConstruct = (0, property_event_decorator_1.propertyEventDecorator)(METADATA_KEY.POST_CONSTRUCT, ERRORS_MSGS.MULTIPLE_POST_CONSTRUCT_METHODS);
27
31
  exports.postConstruct = postConstruct;
28
- //# sourceMappingURL=post_construct.js.map
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -25,4 +29,3 @@ var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
25
29
  var property_event_decorator_1 = require("./property_event_decorator");
26
30
  var preDestroy = (0, property_event_decorator_1.propertyEventDecorator)(METADATA_KEY.PRE_DESTROY, ERRORS_MSGS.MULTIPLE_PRE_DESTROY_METHODS);
27
31
  exports.preDestroy = preDestroy;
28
- //# sourceMappingURL=pre_destroy.js.map
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.propertyEventDecorator = void 0;
3
+ exports.propertyEventDecorator = propertyEventDecorator;
4
4
  var metadata_1 = require("../planning/metadata");
5
5
  function propertyEventDecorator(eventKey, errorMessage) {
6
6
  return function () {
@@ -13,5 +13,3 @@ function propertyEventDecorator(eventKey, errorMessage) {
13
13
  };
14
14
  };
15
15
  }
16
- exports.propertyEventDecorator = propertyEventDecorator;
17
- //# sourceMappingURL=property_event_decorator.js.map
@@ -1,2 +1,2 @@
1
- declare function tagged<T>(metadataKey: string | number | symbol, metadataValue: unknown): <T_1>(target: import("./decorator_utils").DecoratorTarget<unknown>, targetKey?: string | symbol | undefined, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T_1> | undefined) => void;
1
+ declare function tagged<T>(metadataKey: string | number | symbol, metadataValue: unknown): <T_1>(target: import("./decorator_utils").DecoratorTarget, targetKey?: string | symbol, indexOrPropertyDescriptor?: number | TypedPropertyDescriptor<T_1>) => void;
2
2
  export { tagged };
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.tagged = void 0;
3
+ exports.tagged = tagged;
4
4
  var metadata_1 = require("../planning/metadata");
5
5
  var decorator_utils_1 = require("./decorator_utils");
6
6
  function tagged(metadataKey, metadataValue) {
7
7
  return (0, decorator_utils_1.createTaggedDecorator)(new metadata_1.Metadata(metadataKey, metadataValue));
8
8
  }
9
- exports.tagged = tagged;
10
- //# sourceMappingURL=tagged.js.map
@@ -1,3 +1,3 @@
1
1
  import { DecoratorTarget } from "./decorator_utils";
2
- declare function targetName(name: string): (target: DecoratorTarget, targetKey: string, index: number) => void;
2
+ declare function targetName(name: string): (target: DecoratorTarget, targetKey: string | undefined, index: number) => void;
3
3
  export { targetName };
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -19,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
23
  return result;
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.targetName = void 0;
26
+ exports.targetName = targetName;
23
27
  var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
24
28
  var metadata_1 = require("../planning/metadata");
25
29
  var decorator_utils_1 = require("./decorator_utils");
@@ -29,5 +33,3 @@ function targetName(name) {
29
33
  (0, decorator_utils_1.tagParameter)(target, targetKey, index, metadata);
30
34
  };
31
35
  }
32
- exports.targetName = targetName;
33
- //# sourceMappingURL=target_name.js.map
@@ -1,3 +1,3 @@
1
- import { DecoratorTarget } from "./decorator_utils";
2
- declare function unmanaged(): (target: DecoratorTarget, targetKey: string, index: number) => void;
1
+ import { DecoratorTarget } from './decorator_utils';
2
+ declare function unmanaged(): (target: DecoratorTarget, targetKey: string | undefined, index: number) => void;
3
3
  export { unmanaged };
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -19,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
19
23
  return result;
20
24
  };
21
25
  Object.defineProperty(exports, "__esModule", { value: true });
22
- exports.unmanaged = void 0;
26
+ exports.unmanaged = unmanaged;
23
27
  var METADATA_KEY = __importStar(require("../constants/metadata_keys"));
24
28
  var metadata_1 = require("../planning/metadata");
25
29
  var decorator_utils_1 = require("./decorator_utils");
@@ -29,5 +33,3 @@ function unmanaged() {
29
33
  (0, decorator_utils_1.tagParameter)(target, targetKey, index, metadata);
30
34
  };
31
35
  }
32
- exports.unmanaged = unmanaged;
33
- //# sourceMappingURL=unmanaged.js.map
@@ -1,7 +1,7 @@
1
- import { interfaces } from "../interfaces/interfaces";
1
+ import { interfaces } from '../interfaces/interfaces';
2
2
  declare class Binding<TActivated> implements interfaces.Binding<TActivated> {
3
3
  id: number;
4
- moduleId: interfaces.ContainerModuleBase["id"];
4
+ moduleId: interfaces.ContainerModuleBase['id'];
5
5
  activated: boolean;
6
6
  serviceIdentifier: interfaces.ServiceIdentifier<TActivated>;
7
7
  implementationType: interfaces.Newable<TActivated> | TActivated | null;
@@ -37,4 +37,3 @@ var Binding = (function () {
37
37
  return Binding;
38
38
  }());
39
39
  exports.Binding = Binding;
40
- //# sourceMappingURL=binding.js.map
@@ -1,6 +1,5 @@
1
- declare const BindingCount: {
1
+ export declare const BindingCount: {
2
2
  MultipleBindingsAvailable: number;
3
3
  NoBindingsAvailable: number;
4
4
  OnlyOneBindingAvailable: number;
5
5
  };
6
- export { BindingCount };
@@ -1,10 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.BindingCount = void 0;
4
- var BindingCount = {
4
+ exports.BindingCount = {
5
5
  MultipleBindingsAvailable: 2,
6
6
  NoBindingsAvailable: 0,
7
7
  OnlyOneBindingAvailable: 1
8
8
  };
9
- exports.BindingCount = BindingCount;
10
- //# sourceMappingURL=binding_count.js.map
@@ -1,63 +1,72 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.STACK_OVERFLOW = exports.CIRCULAR_DEPENDENCY_IN_FACTORY = exports.ON_DEACTIVATION_ERROR = exports.PRE_DESTROY_ERROR = exports.POST_CONSTRUCT_ERROR = exports.ASYNC_UNBIND_REQUIRED = exports.MULTIPLE_POST_CONSTRUCT_METHODS = exports.MULTIPLE_PRE_DESTROY_METHODS = exports.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK = exports.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE = exports.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE = exports.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT = exports.ARGUMENTS_LENGTH_MISMATCH = exports.INVALID_DECORATOR_OPERATION = exports.INVALID_TO_SELF_VALUE = exports.LAZY_IN_SYNC = exports.INVALID_FUNCTION_BINDING = exports.INVALID_MIDDLEWARE_RETURN = exports.NO_MORE_SNAPSHOTS_AVAILABLE = exports.INVALID_BINDING_TYPE = exports.NOT_IMPLEMENTED = exports.CIRCULAR_DEPENDENCY = exports.UNDEFINED_INJECT_ANNOTATION = exports.MISSING_INJECT_ANNOTATION = exports.MISSING_INJECTABLE_ANNOTATION = exports.NOT_REGISTERED = exports.CANNOT_UNBIND = exports.AMBIGUOUS_MATCH = exports.KEY_NOT_FOUND = exports.NULL_ARGUMENT = exports.DUPLICATED_METADATA = exports.DUPLICATED_INJECTABLE_DECORATOR = void 0;
4
- exports.DUPLICATED_INJECTABLE_DECORATOR = "Cannot apply @injectable decorator multiple times.";
5
- exports.DUPLICATED_METADATA = "Metadata key was used more than once in a parameter:";
6
- exports.NULL_ARGUMENT = "NULL argument";
7
- exports.KEY_NOT_FOUND = "Key Not Found";
8
- exports.AMBIGUOUS_MATCH = "Ambiguous match found for serviceIdentifier:";
9
- exports.CANNOT_UNBIND = "Could not unbind serviceIdentifier:";
10
- exports.NOT_REGISTERED = "No matching bindings found for serviceIdentifier:";
11
- exports.MISSING_INJECTABLE_ANNOTATION = "Missing required @injectable annotation in:";
12
- exports.MISSING_INJECT_ANNOTATION = "Missing required @inject or @multiInject annotation in:";
4
+ exports.DUPLICATED_INJECTABLE_DECORATOR = 'Cannot apply @injectable decorator multiple times.';
5
+ exports.DUPLICATED_METADATA = 'Metadata key was used more than once in a parameter:';
6
+ exports.NULL_ARGUMENT = 'NULL argument';
7
+ exports.KEY_NOT_FOUND = 'Key Not Found';
8
+ exports.AMBIGUOUS_MATCH = 'Ambiguous match found for serviceIdentifier:';
9
+ exports.CANNOT_UNBIND = 'Could not unbind serviceIdentifier:';
10
+ exports.NOT_REGISTERED = 'No matching bindings found for serviceIdentifier:';
11
+ exports.MISSING_INJECTABLE_ANNOTATION = 'Missing required @injectable annotation in:';
12
+ exports.MISSING_INJECT_ANNOTATION = 'Missing required @inject or @multiInject annotation in:';
13
13
  var UNDEFINED_INJECT_ANNOTATION = function (name) {
14
- return "@inject called with undefined this could mean that the class " + name + " has " +
15
- "a circular dependency problem. You can use a LazyServiceIdentifer to " +
16
- "overcome this limitation.";
14
+ return "@inject called with undefined this could mean that the class ".concat(name, " has ") +
15
+ 'a circular dependency problem. You can use a LazyServiceIdentifer to ' +
16
+ 'overcome this limitation.';
17
17
  };
18
18
  exports.UNDEFINED_INJECT_ANNOTATION = UNDEFINED_INJECT_ANNOTATION;
19
- exports.CIRCULAR_DEPENDENCY = "Circular dependency found:";
20
- exports.NOT_IMPLEMENTED = "Sorry, this feature is not fully implemented yet.";
21
- exports.INVALID_BINDING_TYPE = "Invalid binding type:";
22
- exports.NO_MORE_SNAPSHOTS_AVAILABLE = "No snapshot available to restore.";
23
- exports.INVALID_MIDDLEWARE_RETURN = "Invalid return type in middleware. Middleware must return!";
24
- exports.INVALID_FUNCTION_BINDING = "Value provided to function binding must be a function!";
25
- var LAZY_IN_SYNC = function (key) { return "You are attempting to construct '" + key + "' in a synchronous way\n but it has asynchronous dependencies."; };
19
+ exports.CIRCULAR_DEPENDENCY = 'Circular dependency found:';
20
+ exports.NOT_IMPLEMENTED = 'Sorry, this feature is not fully implemented yet.';
21
+ exports.INVALID_BINDING_TYPE = 'Invalid binding type:';
22
+ exports.NO_MORE_SNAPSHOTS_AVAILABLE = 'No snapshot available to restore.';
23
+ exports.INVALID_MIDDLEWARE_RETURN = 'Invalid return type in middleware. Middleware must return!';
24
+ exports.INVALID_FUNCTION_BINDING = 'Value provided to function binding must be a function!';
25
+ var LAZY_IN_SYNC = function (key) { return "You are attempting to construct ".concat(keyToString(key), " in a synchronous way ") +
26
+ 'but it has asynchronous dependencies.'; };
26
27
  exports.LAZY_IN_SYNC = LAZY_IN_SYNC;
27
- exports.INVALID_TO_SELF_VALUE = "The toSelf function can only be applied when a constructor is " +
28
- "used as service identifier";
29
- exports.INVALID_DECORATOR_OPERATION = "The @inject @multiInject @tagged and @named decorators " +
30
- "must be applied to the parameters of a class constructor or a class property.";
28
+ exports.INVALID_TO_SELF_VALUE = 'The toSelf function can only be applied when a constructor is ' +
29
+ 'used as service identifier';
30
+ exports.INVALID_DECORATOR_OPERATION = 'The @inject @multiInject @tagged and @named decorators ' +
31
+ 'must be applied to the parameters of a class constructor or a class property.';
31
32
  var ARGUMENTS_LENGTH_MISMATCH = function () {
32
33
  var values = [];
33
34
  for (var _i = 0; _i < arguments.length; _i++) {
34
35
  values[_i] = arguments[_i];
35
36
  }
36
- return "The number of constructor arguments in the derived class " +
37
- (values[0] + " must be >= than the number of constructor arguments of its base class.");
37
+ return 'The number of constructor arguments in the derived class ' +
38
+ "".concat(values[0], " must be >= than the number of constructor arguments of its base class.");
38
39
  };
39
40
  exports.ARGUMENTS_LENGTH_MISMATCH = ARGUMENTS_LENGTH_MISMATCH;
40
- exports.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT = "Invalid Container constructor argument. Container options " +
41
- "must be an object.";
42
- exports.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE = "Invalid Container option. Default scope must " +
43
- "be a string ('singleton' or 'transient').";
44
- exports.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE = "Invalid Container option. Auto bind injectable must " +
45
- "be a boolean";
46
- exports.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK = "Invalid Container option. Skip base check must " +
47
- "be a boolean";
48
- exports.MULTIPLE_PRE_DESTROY_METHODS = "Cannot apply @preDestroy decorator multiple times in the same class";
49
- exports.MULTIPLE_POST_CONSTRUCT_METHODS = "Cannot apply @postConstruct decorator multiple times in the same class";
50
- exports.ASYNC_UNBIND_REQUIRED = "Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)";
51
- var POST_CONSTRUCT_ERROR = function (clazz, errorMessage) { return "@postConstruct error in class " + clazz + ": " + errorMessage; };
41
+ exports.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT = 'Invalid Container constructor argument. Container options ' +
42
+ 'must be an object.';
43
+ exports.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE = 'Invalid Container option. Default scope must ' +
44
+ 'be a string ("singleton" or "transient").';
45
+ exports.CONTAINER_OPTIONS_INVALID_AUTO_BIND_INJECTABLE = 'Invalid Container option. Auto bind injectable must ' +
46
+ 'be a boolean';
47
+ exports.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK = 'Invalid Container option. Skip base check must ' +
48
+ 'be a boolean';
49
+ exports.MULTIPLE_PRE_DESTROY_METHODS = 'Cannot apply @preDestroy decorator multiple times in the same class';
50
+ exports.MULTIPLE_POST_CONSTRUCT_METHODS = 'Cannot apply @postConstruct decorator multiple times in the same class';
51
+ exports.ASYNC_UNBIND_REQUIRED = 'Attempting to unbind dependency with asynchronous destruction (@preDestroy or onDeactivation)';
52
+ var POST_CONSTRUCT_ERROR = function (clazz, errorMessage) { return "@postConstruct error in class ".concat(clazz, ": ").concat(errorMessage); };
52
53
  exports.POST_CONSTRUCT_ERROR = POST_CONSTRUCT_ERROR;
53
- var PRE_DESTROY_ERROR = function (clazz, errorMessage) { return "@preDestroy error in class " + clazz + ": " + errorMessage; };
54
+ var PRE_DESTROY_ERROR = function (clazz, errorMessage) { return "@preDestroy error in class ".concat(clazz, ": ").concat(errorMessage); };
54
55
  exports.PRE_DESTROY_ERROR = PRE_DESTROY_ERROR;
55
- var ON_DEACTIVATION_ERROR = function (clazz, errorMessage) { return "onDeactivation() error in class " + clazz + ": " + errorMessage; };
56
+ var ON_DEACTIVATION_ERROR = function (clazz, errorMessage) { return "onDeactivation() error in class ".concat(clazz, ": ").concat(errorMessage); };
56
57
  exports.ON_DEACTIVATION_ERROR = ON_DEACTIVATION_ERROR;
57
58
  var CIRCULAR_DEPENDENCY_IN_FACTORY = function (factoryType, serviceIdentifier) {
58
- return "It looks like there is a circular dependency in one of the '" + factoryType + "' bindings. Please investigate bindings with" +
59
- ("service identifier '" + serviceIdentifier + "'.");
59
+ return "It looks like there is a circular dependency in one of the '".concat(factoryType, "' bindings. Please investigate bindings with ") +
60
+ "service identifier '".concat(serviceIdentifier, "'.");
60
61
  };
61
62
  exports.CIRCULAR_DEPENDENCY_IN_FACTORY = CIRCULAR_DEPENDENCY_IN_FACTORY;
62
- exports.STACK_OVERFLOW = "Maximum call stack size exceeded";
63
- //# sourceMappingURL=error_msgs.js.map
63
+ exports.STACK_OVERFLOW = 'Maximum call stack size exceeded';
64
+ function keyToString(key) {
65
+ if (typeof key === 'function') {
66
+ return "[function/class ".concat(key.name || '<anonymous>', "]");
67
+ }
68
+ if (typeof key === 'symbol') {
69
+ return key.toString();
70
+ }
71
+ return "'".concat(key, "'");
72
+ }
@@ -1,4 +1,4 @@
1
- import { interfaces } from "../interfaces/interfaces";
1
+ import { interfaces } from '../interfaces/interfaces';
2
2
  declare const BindingScopeEnum: interfaces.BindingScopeEnum;
3
3
  declare const BindingTypeEnum: interfaces.BindingTypeEnum;
4
4
  declare const TargetTypeEnum: interfaces.TargetTypeEnum;