inversify 4.14.0 → 5.1.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.
Files changed (399) hide show
  1. package/.nyc_output/4df1ad3a-a319-42b9-bb65-746cefa3318e.json +1 -0
  2. package/.nyc_output/processinfo/4df1ad3a-a319-42b9-bb65-746cefa3318e.json +1 -0
  3. package/.nyc_output/processinfo/index.json +1 -0
  4. package/CHANGELOG.md +32 -0
  5. package/README.md +13 -13
  6. package/amd/annotation/decorator_utils.js +2 -0
  7. package/amd/annotation/decorator_utils.js.map +1 -0
  8. package/amd/annotation/inject.js +2 -0
  9. package/amd/annotation/inject.js.map +1 -0
  10. package/amd/annotation/injectable.js +2 -0
  11. package/amd/annotation/injectable.js.map +1 -0
  12. package/amd/annotation/multi_inject.js +2 -0
  13. package/amd/annotation/multi_inject.js.map +1 -0
  14. package/amd/annotation/named.js +2 -0
  15. package/amd/annotation/named.js.map +1 -0
  16. package/amd/annotation/optional.js +2 -0
  17. package/amd/annotation/optional.js.map +1 -0
  18. package/amd/annotation/post_construct.js +2 -0
  19. package/amd/annotation/post_construct.js.map +1 -0
  20. package/amd/annotation/tagged.js +2 -0
  21. package/amd/annotation/tagged.js.map +1 -0
  22. package/amd/annotation/target_name.js +2 -0
  23. package/amd/annotation/target_name.js.map +1 -0
  24. package/amd/annotation/unmanaged.js +2 -0
  25. package/amd/annotation/unmanaged.js.map +1 -0
  26. package/amd/bindings/binding.js +3 -1
  27. package/amd/bindings/binding.js.map +1 -0
  28. package/amd/bindings/binding_count.js +2 -0
  29. package/amd/bindings/binding_count.js.map +1 -0
  30. package/amd/constants/error_msgs.js +10 -4
  31. package/amd/constants/error_msgs.js.map +1 -0
  32. package/amd/constants/literal_types.js +2 -0
  33. package/amd/constants/literal_types.js.map +1 -0
  34. package/amd/constants/metadata_keys.js +13 -0
  35. package/amd/constants/metadata_keys.js.map +1 -0
  36. package/amd/container/container.js +24 -7
  37. package/amd/container/container.js.map +1 -0
  38. package/amd/container/container_module.js +2 -0
  39. package/amd/container/container_module.js.map +1 -0
  40. package/amd/container/container_snapshot.js +2 -0
  41. package/amd/container/container_snapshot.js.map +1 -0
  42. package/amd/container/lookup.js +2 -0
  43. package/amd/container/lookup.js.map +1 -0
  44. package/amd/interfaces/interfaces.js +1 -0
  45. package/amd/interfaces/interfaces.js.map +1 -0
  46. package/amd/inversify.js +27 -25
  47. package/amd/inversify.js.map +1 -0
  48. package/amd/planning/context.js +2 -0
  49. package/amd/planning/context.js.map +1 -0
  50. package/amd/planning/metadata.js +2 -0
  51. package/amd/planning/metadata.js.map +1 -0
  52. package/amd/planning/metadata_reader.js +2 -0
  53. package/amd/planning/metadata_reader.js.map +1 -0
  54. package/amd/planning/plan.js +2 -0
  55. package/amd/planning/plan.js.map +1 -0
  56. package/amd/planning/planner.js +2 -0
  57. package/amd/planning/planner.js.map +1 -0
  58. package/amd/planning/queryable_string.js +2 -0
  59. package/amd/planning/queryable_string.js.map +1 -0
  60. package/amd/planning/reflection_utils.js +12 -4
  61. package/amd/planning/reflection_utils.js.map +1 -0
  62. package/amd/planning/request.js +2 -0
  63. package/amd/planning/request.js.map +1 -0
  64. package/amd/planning/target.js +7 -15
  65. package/amd/planning/target.js.map +1 -0
  66. package/amd/resolution/instantiation.js +8 -1
  67. package/amd/resolution/instantiation.js.map +1 -0
  68. package/amd/resolution/resolver.js +4 -0
  69. package/amd/resolution/resolver.js.map +1 -0
  70. package/amd/syntax/binding_in_syntax.js +2 -0
  71. package/amd/syntax/binding_in_syntax.js.map +1 -0
  72. package/amd/syntax/binding_in_when_on_syntax.js +2 -0
  73. package/amd/syntax/binding_in_when_on_syntax.js.map +1 -0
  74. package/amd/syntax/binding_on_syntax.js +2 -0
  75. package/amd/syntax/binding_on_syntax.js.map +1 -0
  76. package/amd/syntax/binding_to_syntax.js +8 -0
  77. package/amd/syntax/binding_to_syntax.js.map +1 -0
  78. package/amd/syntax/binding_when_on_syntax.js +2 -0
  79. package/amd/syntax/binding_when_on_syntax.js.map +1 -0
  80. package/amd/syntax/binding_when_syntax.js +2 -0
  81. package/amd/syntax/binding_when_syntax.js.map +1 -0
  82. package/amd/syntax/constraint_helpers.js +2 -0
  83. package/amd/syntax/constraint_helpers.js.map +1 -0
  84. package/amd/utils/binding_utils.js +4 -1
  85. package/amd/utils/binding_utils.js.map +1 -0
  86. package/amd/utils/exceptions.js +2 -0
  87. package/amd/utils/exceptions.js.map +1 -0
  88. package/amd/utils/id.js +2 -0
  89. package/amd/utils/id.js.map +1 -0
  90. package/amd/utils/serialization.js +2 -0
  91. package/amd/utils/serialization.js.map +1 -0
  92. package/es/annotation/decorator_utils.js +1 -0
  93. package/es/annotation/decorator_utils.js.map +1 -0
  94. package/es/annotation/inject.js +1 -0
  95. package/es/annotation/inject.js.map +1 -0
  96. package/es/annotation/injectable.js +1 -0
  97. package/es/annotation/injectable.js.map +1 -0
  98. package/es/annotation/multi_inject.js +1 -0
  99. package/es/annotation/multi_inject.js.map +1 -0
  100. package/es/annotation/named.js +1 -0
  101. package/es/annotation/named.js.map +1 -0
  102. package/es/annotation/optional.js +1 -0
  103. package/es/annotation/optional.js.map +1 -0
  104. package/es/annotation/post_construct.js +1 -0
  105. package/es/annotation/post_construct.js.map +1 -0
  106. package/es/annotation/tagged.js +1 -0
  107. package/es/annotation/tagged.js.map +1 -0
  108. package/es/annotation/target_name.js +1 -0
  109. package/es/annotation/target_name.js.map +1 -0
  110. package/es/annotation/unmanaged.js +1 -0
  111. package/es/annotation/unmanaged.js.map +1 -0
  112. package/es/bindings/binding.js +3 -2
  113. package/es/bindings/binding.js.map +1 -0
  114. package/es/bindings/binding_count.js +1 -0
  115. package/es/bindings/binding_count.js.map +1 -0
  116. package/es/constants/error_msgs.js +1 -0
  117. package/es/constants/error_msgs.js.map +1 -0
  118. package/es/constants/literal_types.js +1 -0
  119. package/es/constants/literal_types.js.map +1 -0
  120. package/es/constants/metadata_keys.js +12 -0
  121. package/es/constants/metadata_keys.js.map +1 -0
  122. package/es/container/container.js +23 -7
  123. package/es/container/container.js.map +1 -0
  124. package/es/container/container_module.js +1 -0
  125. package/es/container/container_module.js.map +1 -0
  126. package/es/container/container_snapshot.js +1 -0
  127. package/es/container/container_snapshot.js.map +1 -0
  128. package/es/container/lookup.js +1 -0
  129. package/es/container/lookup.js.map +1 -0
  130. package/es/interfaces/interfaces.js +2 -0
  131. package/es/interfaces/interfaces.js.map +1 -0
  132. package/es/inversify.js +1 -0
  133. package/es/inversify.js.map +1 -0
  134. package/es/planning/context.js +1 -0
  135. package/es/planning/context.js.map +1 -0
  136. package/es/planning/metadata.js +1 -0
  137. package/es/planning/metadata.js.map +1 -0
  138. package/es/planning/metadata_reader.js +1 -0
  139. package/es/planning/metadata_reader.js.map +1 -0
  140. package/es/planning/plan.js +1 -0
  141. package/es/planning/plan.js.map +1 -0
  142. package/es/planning/planner.js +1 -0
  143. package/es/planning/planner.js.map +1 -0
  144. package/es/planning/queryable_string.js +1 -0
  145. package/es/planning/queryable_string.js.map +1 -0
  146. package/es/planning/reflection_utils.js +10 -3
  147. package/es/planning/reflection_utils.js.map +1 -0
  148. package/es/planning/request.js +1 -0
  149. package/es/planning/request.js.map +1 -0
  150. package/es/planning/target.js +6 -15
  151. package/es/planning/target.js.map +1 -0
  152. package/es/resolution/instantiation.js +7 -1
  153. package/es/resolution/instantiation.js.map +1 -0
  154. package/es/resolution/resolver.js +3 -0
  155. package/es/resolution/resolver.js.map +1 -0
  156. package/es/syntax/binding_in_syntax.js +1 -0
  157. package/es/syntax/binding_in_syntax.js.map +1 -0
  158. package/es/syntax/binding_in_when_on_syntax.js +1 -0
  159. package/es/syntax/binding_in_when_on_syntax.js.map +1 -0
  160. package/es/syntax/binding_on_syntax.js +1 -0
  161. package/es/syntax/binding_on_syntax.js.map +1 -0
  162. package/es/syntax/binding_to_syntax.js +8 -1
  163. package/es/syntax/binding_to_syntax.js.map +1 -0
  164. package/es/syntax/binding_when_on_syntax.js +1 -0
  165. package/es/syntax/binding_when_on_syntax.js.map +1 -0
  166. package/es/syntax/binding_when_syntax.js +1 -0
  167. package/es/syntax/binding_when_syntax.js.map +1 -0
  168. package/es/syntax/constraint_helpers.js +1 -0
  169. package/es/syntax/constraint_helpers.js.map +1 -0
  170. package/es/utils/binding_utils.js +1 -0
  171. package/es/utils/binding_utils.js.map +1 -0
  172. package/es/utils/exceptions.js +1 -0
  173. package/es/utils/exceptions.js.map +1 -0
  174. package/es/utils/id.js +1 -0
  175. package/es/utils/id.js.map +1 -0
  176. package/es/utils/serialization.js +1 -0
  177. package/es/utils/serialization.js.map +1 -0
  178. package/es6/annotation/decorator_utils.js +59 -0
  179. package/es6/annotation/decorator_utils.js.map +1 -0
  180. package/es6/annotation/inject.js +32 -0
  181. package/es6/annotation/inject.js.map +1 -0
  182. package/es6/annotation/injectable.js +17 -0
  183. package/es6/annotation/injectable.js.map +1 -0
  184. package/es6/annotation/multi_inject.js +19 -0
  185. package/es6/annotation/multi_inject.js.map +1 -0
  186. package/es6/annotation/named.js +19 -0
  187. package/es6/annotation/named.js.map +1 -0
  188. package/es6/annotation/optional.js +19 -0
  189. package/es6/annotation/optional.js.map +1 -0
  190. package/es6/annotation/post_construct.js +17 -0
  191. package/es6/annotation/post_construct.js.map +1 -0
  192. package/es6/annotation/tagged.js +18 -0
  193. package/es6/annotation/tagged.js.map +1 -0
  194. package/es6/annotation/target_name.js +14 -0
  195. package/es6/annotation/target_name.js.map +1 -0
  196. package/es6/annotation/unmanaged.js +14 -0
  197. package/es6/annotation/unmanaged.js.map +1 -0
  198. package/es6/bindings/binding.js +37 -0
  199. package/es6/bindings/binding.js.map +1 -0
  200. package/es6/bindings/binding_count.js +10 -0
  201. package/es6/bindings/binding_count.js.map +1 -0
  202. package/es6/constants/error_msgs.js +46 -0
  203. package/es6/constants/error_msgs.js.map +1 -0
  204. package/es6/constants/literal_types.js +27 -0
  205. package/es6/constants/literal_types.js.map +1 -0
  206. package/es6/constants/metadata_keys.js +26 -0
  207. package/es6/constants/metadata_keys.js.map +1 -0
  208. package/es6/container/container.js +260 -0
  209. package/es6/container/container.js.map +1 -0
  210. package/es6/container/container_module.js +19 -0
  211. package/es6/container/container_module.js.map +1 -0
  212. package/es6/container/container_snapshot.js +13 -0
  213. package/es6/container/container_snapshot.js.map +1 -0
  214. package/es6/container/lookup.js +79 -0
  215. package/es6/container/lookup.js.map +1 -0
  216. package/es6/interfaces/interfaces.js +3 -0
  217. package/es6/interfaces/interfaces.js.map +1 -0
  218. package/es6/inversify.js +49 -0
  219. package/es6/inversify.js.map +1 -0
  220. package/es6/planning/context.js +18 -0
  221. package/es6/planning/context.js.map +1 -0
  222. package/es6/planning/metadata.js +20 -0
  223. package/es6/planning/metadata.js.map +1 -0
  224. package/es6/planning/metadata_reader.js +20 -0
  225. package/es6/planning/metadata_reader.js.map +1 -0
  226. package/es6/planning/plan.js +11 -0
  227. package/es6/planning/plan.js.map +1 -0
  228. package/es6/planning/planner.js +156 -0
  229. package/es6/planning/planner.js.map +1 -0
  230. package/es6/planning/queryable_string.js +28 -0
  231. package/es6/planning/queryable_string.js.map +1 -0
  232. package/es6/planning/reflection_utils.js +128 -0
  233. package/es6/planning/reflection_utils.js.map +1 -0
  234. package/es6/planning/request.js +25 -0
  235. package/es6/planning/request.js.map +1 -0
  236. package/es6/planning/target.js +78 -0
  237. package/es6/planning/target.js.map +1 -0
  238. package/es6/resolution/instantiation.js +48 -0
  239. package/es6/resolution/instantiation.js.map +1 -0
  240. package/es6/resolution/resolver.js +100 -0
  241. package/es6/resolution/resolver.js.map +1 -0
  242. package/es6/syntax/binding_in_syntax.js +24 -0
  243. package/es6/syntax/binding_in_syntax.js.map +1 -0
  244. package/es6/syntax/binding_in_when_on_syntax.js +73 -0
  245. package/es6/syntax/binding_in_when_on_syntax.js.map +1 -0
  246. package/es6/syntax/binding_on_syntax.js +15 -0
  247. package/es6/syntax/binding_on_syntax.js.map +1 -0
  248. package/es6/syntax/binding_to_syntax.js +80 -0
  249. package/es6/syntax/binding_to_syntax.js.map +1 -0
  250. package/es6/syntax/binding_when_on_syntax.js +62 -0
  251. package/es6/syntax/binding_when_on_syntax.js.map +1 -0
  252. package/es6/syntax/binding_when_syntax.js +77 -0
  253. package/es6/syntax/binding_when_syntax.js.map +1 -0
  254. package/es6/syntax/constraint_helpers.js +40 -0
  255. package/es6/syntax/constraint_helpers.js.map +1 -0
  256. package/es6/utils/binding_utils.js +6 -0
  257. package/es6/utils/binding_utils.js.map +1 -0
  258. package/es6/utils/exceptions.js +10 -0
  259. package/es6/utils/exceptions.js.map +1 -0
  260. package/es6/utils/id.js +9 -0
  261. package/es6/utils/id.js.map +1 -0
  262. package/es6/utils/serialization.js +104 -0
  263. package/es6/utils/serialization.js.map +1 -0
  264. package/{dts → lib}/annotation/decorator_utils.d.ts +0 -0
  265. package/lib/annotation/decorator_utils.js +2 -0
  266. package/lib/annotation/decorator_utils.js.map +1 -0
  267. package/{dts → lib}/annotation/inject.d.ts +2 -2
  268. package/lib/annotation/inject.js +2 -0
  269. package/lib/annotation/inject.js.map +1 -0
  270. package/{dts → lib}/annotation/injectable.d.ts +0 -0
  271. package/lib/annotation/injectable.js +2 -0
  272. package/lib/annotation/injectable.js.map +1 -0
  273. package/{dts → lib}/annotation/multi_inject.d.ts +0 -0
  274. package/lib/annotation/multi_inject.js +2 -0
  275. package/lib/annotation/multi_inject.js.map +1 -0
  276. package/{dts → lib}/annotation/named.d.ts +0 -0
  277. package/lib/annotation/named.js +2 -0
  278. package/lib/annotation/named.js.map +1 -0
  279. package/{dts → lib}/annotation/optional.d.ts +0 -0
  280. package/lib/annotation/optional.js +2 -0
  281. package/lib/annotation/optional.js.map +1 -0
  282. package/{dts → lib}/annotation/post_construct.d.ts +0 -0
  283. package/lib/annotation/post_construct.js +2 -0
  284. package/lib/annotation/post_construct.js.map +1 -0
  285. package/{dts → lib}/annotation/tagged.d.ts +0 -0
  286. package/lib/annotation/tagged.js +2 -0
  287. package/lib/annotation/tagged.js.map +1 -0
  288. package/{dts → lib}/annotation/target_name.d.ts +0 -0
  289. package/lib/annotation/target_name.js +2 -0
  290. package/lib/annotation/target_name.js.map +1 -0
  291. package/{dts → lib}/annotation/unmanaged.d.ts +0 -0
  292. package/lib/annotation/unmanaged.js +2 -0
  293. package/lib/annotation/unmanaged.js.map +1 -0
  294. package/{dts → lib}/bindings/binding.d.ts +0 -0
  295. package/lib/bindings/binding.js +3 -1
  296. package/lib/bindings/binding.js.map +1 -0
  297. package/{dts → lib}/bindings/binding_count.d.ts +0 -0
  298. package/lib/bindings/binding_count.js +2 -0
  299. package/lib/bindings/binding_count.js.map +1 -0
  300. package/{dts → lib}/constants/error_msgs.d.ts +0 -0
  301. package/lib/constants/error_msgs.js +10 -4
  302. package/lib/constants/error_msgs.js.map +1 -0
  303. package/{dts → lib}/constants/literal_types.d.ts +0 -0
  304. package/lib/constants/literal_types.js +2 -0
  305. package/lib/constants/literal_types.js.map +1 -0
  306. package/{dts → lib}/constants/metadata_keys.d.ts +1 -0
  307. package/lib/constants/metadata_keys.js +13 -0
  308. package/lib/constants/metadata_keys.js.map +1 -0
  309. package/{dts → lib}/container/container.d.ts +5 -4
  310. package/lib/container/container.js +24 -7
  311. package/lib/container/container.js.map +1 -0
  312. package/{dts → lib}/container/container_module.d.ts +0 -0
  313. package/lib/container/container_module.js +2 -0
  314. package/lib/container/container_module.js.map +1 -0
  315. package/{dts → lib}/container/container_snapshot.d.ts +0 -0
  316. package/lib/container/container_snapshot.js +2 -0
  317. package/lib/container/container_snapshot.js.map +1 -0
  318. package/{dts → lib}/container/lookup.d.ts +1 -1
  319. package/lib/container/lookup.js +2 -0
  320. package/lib/container/lookup.js.map +1 -0
  321. package/{dts → lib}/interfaces/interfaces.d.ts +4 -6
  322. package/lib/interfaces/interfaces.js +1 -0
  323. package/lib/interfaces/interfaces.js.map +1 -0
  324. package/{dts → lib}/inversify.d.ts +0 -0
  325. package/lib/inversify.js +27 -25
  326. package/lib/inversify.js.map +1 -0
  327. package/{dts → lib}/planning/context.d.ts +0 -0
  328. package/lib/planning/context.js +2 -0
  329. package/lib/planning/context.js.map +1 -0
  330. package/{dts → lib}/planning/metadata.d.ts +0 -0
  331. package/lib/planning/metadata.js +2 -0
  332. package/lib/planning/metadata.js.map +1 -0
  333. package/{dts → lib}/planning/metadata_reader.d.ts +0 -0
  334. package/lib/planning/metadata_reader.js +2 -0
  335. package/lib/planning/metadata_reader.js.map +1 -0
  336. package/{dts → lib}/planning/plan.d.ts +0 -0
  337. package/lib/planning/plan.js +2 -0
  338. package/lib/planning/plan.js.map +1 -0
  339. package/{dts → lib}/planning/planner.d.ts +0 -0
  340. package/lib/planning/planner.js +2 -0
  341. package/lib/planning/planner.js.map +1 -0
  342. package/{dts → lib}/planning/queryable_string.d.ts +0 -0
  343. package/lib/planning/queryable_string.js +2 -0
  344. package/lib/planning/queryable_string.js.map +1 -0
  345. package/{dts → lib}/planning/reflection_utils.d.ts +0 -0
  346. package/lib/planning/reflection_utils.js +12 -4
  347. package/lib/planning/reflection_utils.js.map +1 -0
  348. package/{dts → lib}/planning/request.d.ts +0 -0
  349. package/lib/planning/request.js +2 -0
  350. package/lib/planning/request.js.map +1 -0
  351. package/{dts → lib}/planning/target.d.ts +0 -0
  352. package/lib/planning/target.js +7 -15
  353. package/lib/planning/target.js.map +1 -0
  354. package/{dts → lib}/resolution/instantiation.d.ts +0 -0
  355. package/lib/resolution/instantiation.js +8 -1
  356. package/lib/resolution/instantiation.js.map +1 -0
  357. package/{dts → lib}/resolution/resolver.d.ts +0 -0
  358. package/lib/resolution/resolver.js +4 -0
  359. package/lib/resolution/resolver.js.map +1 -0
  360. package/{dts → lib}/syntax/binding_in_syntax.d.ts +0 -0
  361. package/lib/syntax/binding_in_syntax.js +2 -0
  362. package/lib/syntax/binding_in_syntax.js.map +1 -0
  363. package/{dts → lib}/syntax/binding_in_when_on_syntax.d.ts +0 -0
  364. package/lib/syntax/binding_in_when_on_syntax.js +2 -0
  365. package/lib/syntax/binding_in_when_on_syntax.js.map +1 -0
  366. package/{dts → lib}/syntax/binding_on_syntax.d.ts +0 -0
  367. package/lib/syntax/binding_on_syntax.js +2 -0
  368. package/lib/syntax/binding_on_syntax.js.map +1 -0
  369. package/{dts → lib}/syntax/binding_to_syntax.d.ts +1 -3
  370. package/lib/syntax/binding_to_syntax.js +8 -0
  371. package/lib/syntax/binding_to_syntax.js.map +1 -0
  372. package/{dts → lib}/syntax/binding_when_on_syntax.d.ts +0 -0
  373. package/lib/syntax/binding_when_on_syntax.js +2 -0
  374. package/lib/syntax/binding_when_on_syntax.js.map +1 -0
  375. package/{dts → lib}/syntax/binding_when_syntax.d.ts +0 -0
  376. package/lib/syntax/binding_when_syntax.js +2 -0
  377. package/lib/syntax/binding_when_syntax.js.map +1 -0
  378. package/{dts → lib}/syntax/constraint_helpers.d.ts +2 -2
  379. package/lib/syntax/constraint_helpers.js +2 -0
  380. package/lib/syntax/constraint_helpers.js.map +1 -0
  381. package/lib/tsconfig.tsbuildinfo +719 -0
  382. package/lib/utils/binding_utils.d.ts +2 -0
  383. package/lib/utils/binding_utils.js +4 -1
  384. package/lib/utils/binding_utils.js.map +1 -0
  385. package/{dts → lib}/utils/exceptions.d.ts +0 -0
  386. package/lib/utils/exceptions.js +2 -0
  387. package/lib/utils/exceptions.js.map +1 -0
  388. package/{dts → lib}/utils/id.d.ts +0 -0
  389. package/lib/utils/id.js +2 -0
  390. package/lib/utils/id.js.map +1 -0
  391. package/{dts → lib}/utils/serialization.d.ts +0 -0
  392. package/lib/utils/serialization.js +2 -0
  393. package/lib/utils/serialization.js.map +1 -0
  394. package/mocha.opts +3 -0
  395. package/package.json +35 -38
  396. package/appveyor.yml +0 -34
  397. package/dts/utils/binding_utils.d.ts +0 -2
  398. package/dts/utils/guid.d.ts +0 -2
  399. package/dts/utils/template.d.ts +0 -1
@@ -0,0 +1 @@
1
+ {"parent":null,"pid":65900,"argv":["/Users/dan/.nvm/versions/node/v14.15.3/bin/node","/Users/dan/jsProjects/inversify/InversifyJS/node_modules/.bin/mocha","test/annotation/inject.test.ts","test/annotation/injectable.test.ts","test/annotation/multi_inject.test.ts","test/annotation/named.test.ts","test/annotation/optional.test.ts","test/annotation/post_construct.test.ts","test/annotation/tagged.test.ts","test/annotation/target_name.test.ts","test/bindings/binding.test.ts","test/bugs/bugs.test.ts","test/bugs/issue_1190.test.ts","test/bugs/issue_1297.test.ts","test/bugs/issue_543.test.ts","test/bugs/issue_549.test.ts","test/bugs/issue_633.test.ts","test/bugs/issue_706.test.ts","test/bugs/issue_928.test.ts","test/constants/error_message.test.ts","test/container/container.test.ts","test/container/container_module.test.ts","test/container/lookup.test.ts","test/features/metadata_reader.test.ts","test/features/named_default.test.ts","test/features/property_injection.test.ts","test/features/provider.test.ts","test/features/request_scope.test.ts","test/features/resolve_unbinded.test.ts","test/features/transitive_bindings.test.ts","test/middleware/middleware.test.ts","test/node/error_messages.test.ts","test/node/exceptions.test.ts","test/node/performance.test.ts","test/node/proxies.test.ts","test/planning/context.test.ts","test/planning/metadata.test.ts","test/planning/plan.test.ts","test/planning/planner.test.ts","test/planning/queryable_string.test.ts","test/planning/request.test.ts","test/planning/target.test.ts","test/resolution/resolver.test.ts","test/syntax/binding_in_syntax.test.ts","test/syntax/binding_in_when_on_syntax.test.ts","test/syntax/binding_on_syntax.test.ts","test/syntax/binding_to_syntax.test.ts","test/syntax/binding_when_on_syntax.test.ts","test/syntax/binding_when_syntax.test.ts","test/syntax/constraint_helpers.test.ts","test/utils/id.test.ts","test/utils/serialization.test.ts","--reporter","spec","--retries","3","--require","node_modules/reflect-metadata/Reflect.js","--exit"],"execArgv":[],"cwd":"/Users/dan/jsProjects/inversify/InversifyJS","time":1619389888081,"ppid":65899,"coverageFilename":"/Users/dan/jsProjects/inversify/InversifyJS/.nyc_output/4df1ad3a-a319-42b9-bb65-746cefa3318e.json","externalId":"","uuid":"4df1ad3a-a319-42b9-bb65-746cefa3318e","files":["/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/decorator_utils.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/constants/error_msgs.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/constants/metadata_keys.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/inject.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/metadata.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/inversify.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/container/container.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/bindings/binding.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/constants/literal_types.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/utils/id.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/metadata_reader.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/planner.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/bindings/binding_count.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/utils/exceptions.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/utils/serialization.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/context.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/plan.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/reflection_utils.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/target.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/queryable_string.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/planning/request.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/resolution/resolver.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/resolution/instantiation.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_to_syntax.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_in_when_on_syntax.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_in_syntax.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_when_on_syntax.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_on_syntax.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_when_syntax.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/constraint_helpers.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/container/container_snapshot.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/container/lookup.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/container/container_module.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/injectable.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/tagged.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/named.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/optional.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/unmanaged.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/multi_inject.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/target_name.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/post_construct.ts","/Users/dan/jsProjects/inversify/InversifyJS/src/utils/binding_utils.ts"]}
@@ -0,0 +1 @@
1
+ {"processes":{"4df1ad3a-a319-42b9-bb65-746cefa3318e":{"parent":null,"children":[]}},"files":{"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/decorator_utils.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/constants/error_msgs.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/constants/metadata_keys.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/inject.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/metadata.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/inversify.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/container/container.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/bindings/binding.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/constants/literal_types.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/utils/id.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/metadata_reader.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/planner.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/bindings/binding_count.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/utils/exceptions.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/utils/serialization.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/context.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/plan.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/reflection_utils.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/target.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/queryable_string.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/planning/request.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/resolution/resolver.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/resolution/instantiation.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_to_syntax.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_in_when_on_syntax.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_in_syntax.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_when_on_syntax.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_on_syntax.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/binding_when_syntax.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/syntax/constraint_helpers.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/container/container_snapshot.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/container/lookup.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/container/container_module.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/injectable.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/tagged.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/named.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/optional.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/unmanaged.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/multi_inject.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/target_name.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/annotation/post_construct.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"],"/Users/dan/jsProjects/inversify/InversifyJS/src/utils/binding_utils.ts":["4df1ad3a-a319-42b9-bb65-746cefa3318e"]},"externalIds":{}}
package/CHANGELOG.md ADDED
@@ -0,0 +1,32 @@
1
+ # Changelog
2
+ All notable changes to this project from 5.0.0 forward will be documented in this file.
3
+
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [5.1.1] - 2021-04-25
8
+ -Fix pre-publish for build artifacts
9
+
10
+ ## [5.1.0] - 2021-04-25
11
+ ### Added
12
+ - Upgrade information for v4.x to v5.x
13
+
14
+ ### Fixed
15
+ - Fix `Target.isTagged()` to exclude `optional` from tag injections #1190.
16
+ - Update `toConstructor`, `toFactory`, `toFunction`, `toAutoFactory`, `toProvider` and `toConstantValue` to have singleton scope #1297.
17
+ - Fix injection on optional properties when targeting ES6 #928
18
+
19
+ ## [5.0.1] - 2018-10-17
20
+ ### Added
21
+ - Updating constructor injection wiki document with concrete injection example #922
22
+
23
+ ### Changed
24
+ - Change GUID to incremented counter for better performance #882
25
+
26
+ ### Fixed
27
+ - fix broken compilation by adding `.toString()` so symbols serialization #893
28
+ - Fix problem with applying options on Container.resolve (fix #914) #915
29
+ - Fixed documentation issues
30
+
31
+ ## [4.14.0] - 2018-10-16
32
+ Deprecated - Replaced by 5.0.1
package/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # InversifyJS
2
2
 
3
3
  [![Join the chat at https://gitter.im/inversify/InversifyJS](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/inversify/InversifyJS?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4
- [![Build Status](https://secure.travis-ci.org/inversify/InversifyJS.svg?branch=master)](https://travis-ci.org/inversify/InversifyJS)
5
- [![Windows Build status](https://ci.appveyor.com/api/projects/status/cd9ekn86p8y2t7h4/branch/master?svg=true)](https://ci.appveyor.com/project/remojansen/inversifyjs/branch/master)
4
+ ![Build Status](https://github.com/inversify/InversifyJS/actions/workflows/node.js.yml/badge.svg)
5
+
6
6
  [![Test Coverage](https://codeclimate.com/github/inversify/InversifyJS/badges/coverage.svg)](https://codeclimate.com/github/inversify/InversifyJS/coverage)
7
7
  [![npm version](https://badge.fury.io/js/inversify.svg)](http://badge.fury.io/js/inversify)
8
8
  [![Dependencies](https://david-dm.org/inversify/InversifyJS.svg)](https://david-dm.org/inversify/InversifyJS#info=dependencies)
@@ -46,7 +46,7 @@ InversifyJS has been developed with 4 main goals:
46
46
 
47
47
  **[Nate Kohari](https://twitter.com/nkohari)** - Author of [Ninject](https://github.com/ninject/Ninject)
48
48
 
49
- > *"Nice work! I've taken a couple shots at creating DI frameworks for JavaScript and TypeScript, but the lack of RTTI really hinders things.*
49
+ > *"Nice work! I've taken a couple shots at creating DI frameworks for JavaScript and TypeScript, but the lack of RTTI really hinders things.*
50
50
  > *The ES7 metadata gets us part of the way there (as you've discovered). Keep up the great work!"*
51
51
 
52
52
  **[Michel Weststrate](https://twitter.com/mweststrate)** - Author of [MobX](https://github.com/mobxjs/mobx)
@@ -64,9 +64,9 @@ You can get the latest release and the type definitions using npm:
64
64
  $ npm install inversify reflect-metadata --save
65
65
  ```
66
66
 
67
- The InversifyJS type definitions are included in the inversify npm package.
67
+ The InversifyJS type definitions are included in the inversify npm package.
68
68
 
69
- > :warning: **Important!** InversifyJS requires TypeScript >= 2.0 and the `experimentalDecorators`, `emitDecoratorMetadata`, `types` and `lib`
69
+ > :warning: **Important!** InversifyJS requires TypeScript >= 2.0 and the `experimentalDecorators`, `emitDecoratorMetadata`, `types` and `lib`
70
70
  compilation options in your `tsconfig.json` file.
71
71
 
72
72
  ```js
@@ -92,7 +92,7 @@ InversifyJS requires a modern JavaScript engine with support for:
92
92
 
93
93
  If your environment doesn't support one of these you will need to import a shim or polyfill.
94
94
 
95
- > :warning: **The `reflect-metadata` polyfill should be imported only once in your entire application** because the Reflect object is mean to be a global singleton. More details about this can be found [here](https://github.com/inversify/InversifyJS/issues/262#issuecomment-227593844).
95
+ > :warning: **The `reflect-metadata` polyfill should be imported only once in your entire application** because the Reflect object is meant to be a global singleton. More details about this can be found [here](https://github.com/inversify/InversifyJS/issues/262#issuecomment-227593844).
96
96
 
97
97
  Check out the [Environment support and polyfills](https://github.com/inversify/InversifyJS/blob/master/wiki/environment.md)
98
98
  page in the wiki and the [Basic example](https://github.com/inversify/inversify-basic-example) to learn more.
@@ -102,8 +102,8 @@ Let’s take a look at the basic usage and APIs of InversifyJS with TypeScript:
102
102
 
103
103
  ### Step 1: Declare your interfaces and types
104
104
 
105
- Our goal is to write code that adheres to the [dependency inversion principle](https://en.wikipedia.org/wiki/Dependency_inversion_principle).
106
- This means that we should "depend upon Abstractions and do not depend upon concretions".
105
+ Our goal is to write code that adheres to the [dependency inversion principle](https://en.wikipedia.org/wiki/Dependency_inversion_principle).
106
+ This means that we should "depend upon Abstractions and do not depend upon concretions".
107
107
  Let's start by declaring some interfaces (abstractions).
108
108
 
109
109
  ```ts
@@ -123,8 +123,8 @@ export interface ThrowableWeapon {
123
123
  }
124
124
  ```
125
125
 
126
- InversifyJS need to use the type as identifiers at runtime. We use symbols as identifiers but you can also use classes and or string literals.
127
-
126
+ InversifyJS needs to use the type as identifiers at runtime. We use symbols as identifiers but you can also use classes and or string literals.
127
+
128
128
  ```ts
129
129
  // file types.ts
130
130
 
@@ -141,7 +141,7 @@ export { TYPES };
141
141
  > **Note**: It is recommended to use Symbols but InversifyJS also support the usage of Classes and string literals (please refer to the features section to learn more).
142
142
 
143
143
  ### Step 2: Declare dependencies using the `@injectable` & `@inject` decorators
144
- Let's continue by declaring some classes (concretions). The classes are implementations of the interfaces that we just declared. All the classes must be annotated with the `@injectable` decorator.
144
+ Let's continue by declaring some classes (concretions). The classes are implementations of the interfaces that we just declared. All the classes must be annotated with the `@injectable` decorator.
145
145
 
146
146
  When a class has a dependency on an interface we also need to use the `@inject` decorator to define an identifier for the interface that will be available at runtime. In this case we will use the Symbols `Symbol.for("Weapon")` and `Symbol.for("ThrowableWeapon")` as runtime identifiers.
147
147
 
@@ -150,7 +150,7 @@ When a class has a dependency on an interface we also need to use the `@inject`
150
150
 
151
151
  import { injectable, inject } from "inversify";
152
152
  import "reflect-metadata";
153
- import { Weapon, ThrowableWeapon, Warrior } from "./interfaces"
153
+ import { Weapon, ThrowableWeapon, Warrior } from "./interfaces";
154
154
  import { TYPES } from "./types";
155
155
 
156
156
  @injectable()
@@ -301,6 +301,6 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of
301
301
 
302
302
  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
303
303
 
304
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
304
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
305
305
 
306
306
  IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/error_msgs", "../constants/metadata_keys"], function (require, exports, ERROR_MSGS, METADATA_KEY) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.tagProperty = exports.tagParameter = exports.decorate = void 0;
4
5
  function tagParameter(annotationTarget, propertyName, parameterIndex, metadata) {
5
6
  var metadataKey = METADATA_KEY.TAGGED;
6
7
  _tagParameterOrProperty(metadataKey, annotationTarget, propertyName, metadata, parameterIndex);
@@ -56,3 +57,4 @@ define(["require", "exports", "../constants/error_msgs", "../constants/metadata_
56
57
  }
57
58
  exports.decorate = decorate;
58
59
  });
60
+ //# sourceMappingURL=decorator_utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"decorator_utils.js","sourceRoot":"","sources":["../../src/annotation/decorator_utils.ts"],"names":[],"mappings":";;;;IAIA,SAAS,YAAY,CACjB,gBAAqB,EACrB,YAAoB,EACpB,cAAsB,EACtB,QAA6B;QAE7B,IAAM,WAAW,GAAG,YAAY,CAAC,MAAM,CAAC;QACxC,uBAAuB,CAAC,WAAW,EAAE,gBAAgB,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,CAAC,CAAC;IACnG,CAAC;IAgFkB,oCAAY;IA9E/B,SAAS,WAAW,CAChB,gBAAqB,EACrB,YAAoB,EACpB,QAA6B;QAE7B,IAAM,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QAC7C,uBAAuB,CAAC,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,CAAC;IAC/F,CAAC;IAuEgC,kCAAW;IArE5C,SAAS,uBAAuB,CAC5B,WAAmB,EACnB,gBAAqB,EACrB,YAAoB,EACpB,QAA6B,EAC7B,cAAuB;QAGvB,IAAI,0BAA0B,GAA6B,EAAE,CAAC;QAC9D,IAAM,oBAAoB,GAAG,CAAC,OAAO,cAAc,KAAK,QAAQ,CAAC,CAAC;QAClE,IAAM,GAAG,GAAW,CAAC,cAAc,KAAK,SAAS,IAAI,oBAAoB,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,YAAY,CAAC;QAGtH,IAAI,oBAAoB,IAAI,YAAY,KAAK,SAAS,EAAE;YACpD,MAAM,IAAI,KAAK,CAAC,UAAU,CAAC,2BAA2B,CAAC,CAAC;SAC3D;QAGD,IAAI,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,gBAAgB,CAAC,EAAE;YACvD,0BAA0B,GAAG,OAAO,CAAC,WAAW,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC;SACnF;QAGD,IAAI,uBAAuB,GAA0B,0BAA0B,CAAC,GAAG,CAAC,CAAC;QAErF,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE;YACzC,uBAAuB,GAAG,EAAE,CAAC;SAChC;aAAM;YACH,KAAgB,UAAuB,EAAvB,mDAAuB,EAAvB,qCAAuB,EAAvB,IAAuB,EAAE;gBAApC,IAAM,CAAC,gCAAA;gBACR,IAAI,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,EAAE;oBACxB,MAAM,IAAI,KAAK,CAAI,UAAU,CAAC,mBAAmB,SAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAI,CAAC,CAAC;iBAC5E;aACJ;SACJ;QAGD,uBAAuB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACvC,0BAA0B,CAAC,GAAG,CAAC,GAAG,uBAAuB,CAAC;QAC1D,OAAO,CAAC,cAAc,CAAC,WAAW,EAAE,0BAA0B,EAAE,gBAAgB,CAAC,CAAC;IAEtF,CAAC;IAED,SAAS,SAAS,CAAC,UAAiB,EAAE,MAAW;QAC7C,OAAO,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACzC,CAAC;IAED,SAAS,MAAM,CAAC,UAAkB,EAAE,SAA6B;QAC7D,OAAO,UAAU,MAAW,EAAE,GAAW,IAAI,SAAS,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;IACvF,CAAC;IAOD,SAAS,QAAQ,CACb,SAAkE,EAClE,MAAW,EACX,cAAgC;QAEhC,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;YACpC,SAAS,CAAC,CAAC,MAAM,CAAC,cAAc,EAAE,SAA+B,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;SAChF;aAAM,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAE;YAC3C,OAAO,CAAC,QAAQ,CAAC,CAAC,SAA4B,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,CAAC;SAC5E;aAAM;YACH,SAAS,CAAC,CAAC,SAA2B,CAAC,EAAE,MAAM,CAAC,CAAC;SACpD;IACL,CAAC;IAEQ,4BAAQ"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/error_msgs", "../constants/metadata_keys", "../planning/metadata", "./decorator_utils"], function (require, exports, error_msgs_1, METADATA_KEY, metadata_1, decorator_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.inject = exports.LazyServiceIdentifer = void 0;
4
5
  var LazyServiceIdentifer = (function () {
5
6
  function LazyServiceIdentifer(cb) {
6
7
  this._cb = cb;
@@ -27,3 +28,4 @@ define(["require", "exports", "../constants/error_msgs", "../constants/metadata_
27
28
  }
28
29
  exports.inject = inject;
29
30
  });
31
+ //# sourceMappingURL=inject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inject.js","sourceRoot":"","sources":["../../src/annotation/inject.ts"],"names":[],"mappings":";;;;IAQA;QAEE,8BAAmB,EAAyC;YACxD,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QAClB,CAAC;QAEM,qCAAM,GAAb;YACE,OAAO,IAAI,CAAC,GAAG,EAAE,CAAC;QACpB,CAAC;QACH,2BAAC;IAAD,CAAC,AATD,IASC;IATY,oDAAoB;IAWjC,SAAS,MAAM,CAAC,iBAA0C;QACxD,OAAO,UAAS,MAAW,EAAE,SAAiB,EAAE,KAAmC;YACjF,IAAI,iBAAiB,KAAK,SAAS,EAAE;gBACnC,MAAM,IAAI,KAAK,CAAC,wCAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;aAC3D;YAED,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,YAAY,CAAC,UAAU,EAAE,iBAAiB,CAAC,CAAC;YAE1E,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,8BAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;aAClD;iBAAM;gBACL,6BAAW,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;aAC1C;QAEH,CAAC,CAAC;IACJ,CAAC;IAEQ,wBAAM"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/error_msgs", "../constants/metadata_keys"], function (require, exports, ERRORS_MSGS, METADATA_KEY) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.injectable = void 0;
4
5
  function injectable() {
5
6
  return function (target) {
6
7
  if (Reflect.hasOwnMetadata(METADATA_KEY.PARAM_TYPES, target)) {
@@ -13,3 +14,4 @@ define(["require", "exports", "../constants/error_msgs", "../constants/metadata_
13
14
  }
14
15
  exports.injectable = injectable;
15
16
  });
17
+ //# sourceMappingURL=injectable.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"injectable.js","sourceRoot":"","sources":["../../src/annotation/injectable.ts"],"names":[],"mappings":";;;;IAGA,SAAS,UAAU;QACjB,OAAO,UAAS,MAAW;YAEzB,IAAI,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,WAAW,EAAE,MAAM,CAAC,EAAE;gBAC5D,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAC;aAC9D;YAED,IAAM,KAAK,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,kBAAkB,EAAE,MAAM,CAAC,IAAI,EAAE,CAAC;YACjF,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,WAAW,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;YAEhE,OAAO,MAAM,CAAC;QAChB,CAAC,CAAC;IACJ,CAAC;IAEQ,gCAAU"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/metadata_keys", "../planning/metadata", "./decorator_utils"], function (require, exports, METADATA_KEY, metadata_1, decorator_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.multiInject = void 0;
4
5
  function multiInject(serviceIdentifier) {
5
6
  return function (target, targetKey, index) {
6
7
  var metadata = new metadata_1.Metadata(METADATA_KEY.MULTI_INJECT_TAG, serviceIdentifier);
@@ -14,3 +15,4 @@ define(["require", "exports", "../constants/metadata_keys", "../planning/metadat
14
15
  }
15
16
  exports.multiInject = multiInject;
16
17
  });
18
+ //# sourceMappingURL=multi_inject.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"multi_inject.js","sourceRoot":"","sources":["../../src/annotation/multi_inject.ts"],"names":[],"mappings":";;;;IAKA,SAAS,WAAW,CAAC,iBAAoD;QACvE,OAAO,UAAS,MAAW,EAAE,SAAiB,EAAE,KAAc;YAE5D,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,YAAY,CAAC,gBAAgB,EAAE,iBAAiB,CAAC,CAAC;YAEhF,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC7B,8BAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;aAClD;iBAAM;gBACL,6BAAW,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;aAC1C;QAEH,CAAC,CAAC;IACJ,CAAC;IAEQ,kCAAW"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/metadata_keys", "../planning/metadata", "./decorator_utils"], function (require, exports, METADATA_KEY, metadata_1, decorator_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.named = void 0;
4
5
  function named(name) {
5
6
  return function (target, targetKey, index) {
6
7
  var metadata = new metadata_1.Metadata(METADATA_KEY.NAMED_TAG, name);
@@ -14,3 +15,4 @@ define(["require", "exports", "../constants/metadata_keys", "../planning/metadat
14
15
  }
15
16
  exports.named = named;
16
17
  });
18
+ //# sourceMappingURL=named.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"named.js","sourceRoot":"","sources":["../../src/annotation/named.ts"],"names":[],"mappings":";;;;IAKA,SAAS,KAAK,CAAC,IAA8B;QACzC,OAAO,UAAS,MAAW,EAAE,SAAiB,EAAE,KAAc;YAC1D,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,YAAY,CAAC,SAAS,EAAE,IAAI,CAAC,CAAC;YAC5D,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC3B,8BAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;aACpD;iBAAM;gBACH,6BAAW,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;aAC5C;QACL,CAAC,CAAC;IACN,CAAC;IAEQ,sBAAK"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/metadata_keys", "../planning/metadata", "./decorator_utils"], function (require, exports, METADATA_KEY, metadata_1, decorator_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.optional = void 0;
4
5
  function optional() {
5
6
  return function (target, targetKey, index) {
6
7
  var metadata = new metadata_1.Metadata(METADATA_KEY.OPTIONAL_TAG, true);
@@ -14,3 +15,4 @@ define(["require", "exports", "../constants/metadata_keys", "../planning/metadat
14
15
  }
15
16
  exports.optional = optional;
16
17
  });
18
+ //# sourceMappingURL=optional.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"optional.js","sourceRoot":"","sources":["../../src/annotation/optional.ts"],"names":[],"mappings":";;;;IAIA,SAAS,QAAQ;QACb,OAAO,UAAS,MAAW,EAAE,SAAiB,EAAE,KAAc;YAE1D,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,YAAY,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;YAE/D,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC3B,8BAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;aACpD;iBAAM;gBACH,6BAAW,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;aAC5C;QAEL,CAAC,CAAC;IACN,CAAC;IAEQ,4BAAQ"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/error_msgs", "../constants/metadata_keys", "../planning/metadata"], function (require, exports, ERRORS_MSGS, METADATA_KEY, metadata_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.postConstruct = void 0;
4
5
  function postConstruct() {
5
6
  return function (target, propertyKey, descriptor) {
6
7
  var metadata = new metadata_1.Metadata(METADATA_KEY.POST_CONSTRUCT, propertyKey);
@@ -12,3 +13,4 @@ define(["require", "exports", "../constants/error_msgs", "../constants/metadata_
12
13
  }
13
14
  exports.postConstruct = postConstruct;
14
15
  });
16
+ //# sourceMappingURL=post_construct.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"post_construct.js","sourceRoot":"","sources":["../../src/annotation/post_construct.ts"],"names":[],"mappings":";;;;IAIA,SAAS,aAAa;QAClB,OAAO,UAAU,MAAW,EAAE,WAAmB,EAAE,UAA8B;YAC7E,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,YAAY,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;YAExE,IAAI,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,cAAc,EAAE,MAAM,CAAC,WAAW,CAAC,EAAE;gBACzE,MAAM,IAAI,KAAK,CAAC,WAAW,CAAC,+BAA+B,CAAC,CAAC;aAChE;YACD,OAAO,CAAC,cAAc,CAAC,YAAY,CAAC,cAAc,EAAE,QAAQ,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;QACtF,CAAC,CAAC;IACN,CAAC;IAEQ,sCAAa"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../planning/metadata", "./decorator_utils"], function (require, exports, metadata_1, decorator_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.tagged = void 0;
4
5
  function tagged(metadataKey, metadataValue) {
5
6
  return function (target, targetKey, index) {
6
7
  var metadata = new metadata_1.Metadata(metadataKey, metadataValue);
@@ -14,3 +15,4 @@ define(["require", "exports", "../planning/metadata", "./decorator_utils"], func
14
15
  }
15
16
  exports.tagged = tagged;
16
17
  });
18
+ //# sourceMappingURL=tagged.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tagged.js","sourceRoot":"","sources":["../../src/annotation/tagged.ts"],"names":[],"mappings":";;;;IAIA,SAAS,MAAM,CAAC,WAAqC,EAAE,aAAkB;QACrE,OAAO,UAAS,MAAW,EAAE,SAAiB,EAAE,KAAc;YAC1D,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;YAC1D,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;gBAC3B,8BAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;aACpD;iBAAM;gBACH,6BAAW,CAAC,MAAM,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;aAC5C;QACL,CAAC,CAAC;IACN,CAAC;IAEQ,wBAAM"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/metadata_keys", "../planning/metadata", "./decorator_utils"], function (require, exports, METADATA_KEY, metadata_1, decorator_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.targetName = void 0;
4
5
  function targetName(name) {
5
6
  return function (target, targetKey, index) {
6
7
  var metadata = new metadata_1.Metadata(METADATA_KEY.NAME_TAG, name);
@@ -9,3 +10,4 @@ define(["require", "exports", "../constants/metadata_keys", "../planning/metadat
9
10
  }
10
11
  exports.targetName = targetName;
11
12
  });
13
+ //# sourceMappingURL=target_name.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"target_name.js","sourceRoot":"","sources":["../../src/annotation/target_name.ts"],"names":[],"mappings":";;;;IAIA,SAAS,UAAU,CAAC,IAAY;QAC9B,OAAO,UAAS,MAAW,EAAE,SAAiB,EAAE,KAAa;YAC3D,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,YAAY,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAC3D,8BAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC,CAAC;IACJ,CAAC;IAEQ,gCAAU"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/metadata_keys", "../planning/metadata", "./decorator_utils"], function (require, exports, METADATA_KEY, metadata_1, decorator_utils_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.unmanaged = void 0;
4
5
  function unmanaged() {
5
6
  return function (target, targetKey, index) {
6
7
  var metadata = new metadata_1.Metadata(METADATA_KEY.UNMANAGED_TAG, true);
@@ -9,3 +10,4 @@ define(["require", "exports", "../constants/metadata_keys", "../planning/metadat
9
10
  }
10
11
  exports.unmanaged = unmanaged;
11
12
  });
13
+ //# sourceMappingURL=unmanaged.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"unmanaged.js","sourceRoot":"","sources":["../../src/annotation/unmanaged.ts"],"names":[],"mappings":";;;;IAIA,SAAS,SAAS;QACd,OAAO,UAAS,MAAW,EAAE,SAAiB,EAAE,KAAa;YACzD,IAAM,QAAQ,GAAG,IAAI,mBAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;YAChE,8BAAY,CAAC,MAAM,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,CAAC,CAAC;QACrD,CAAC,CAAC;IACN,CAAC;IAEQ,8BAAS"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports", "../constants/literal_types", "../utils/id"], function (require, exports, literal_types_1, id_1) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Binding = void 0;
4
5
  var Binding = (function () {
5
6
  function Binding(serviceIdentifier, scope) {
6
7
  this.id = id_1.id();
@@ -18,7 +19,7 @@ define(["require", "exports", "../constants/literal_types", "../utils/id"], func
18
19
  }
19
20
  Binding.prototype.clone = function () {
20
21
  var clone = new Binding(this.serviceIdentifier, this.scope);
21
- clone.activated = false;
22
+ clone.activated = (clone.scope === literal_types_1.BindingScopeEnum.Singleton) ? this.activated : false;
22
23
  clone.implementationType = this.implementationType;
23
24
  clone.dynamicValue = this.dynamicValue;
24
25
  clone.scope = this.scope;
@@ -34,3 +35,4 @@ define(["require", "exports", "../constants/literal_types", "../utils/id"], func
34
35
  }());
35
36
  exports.Binding = Binding;
36
37
  });
38
+ //# sourceMappingURL=binding.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binding.js","sourceRoot":"","sources":["../../src/bindings/binding.ts"],"names":[],"mappings":";;;;IAIA;QAwCI,iBAAmB,iBAAkD,EAAE,KAA8B;YACjG,IAAI,CAAC,EAAE,GAAG,OAAE,EAAE,CAAC;YACf,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;YACvB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;YAC3C,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;YACnB,IAAI,CAAC,IAAI,GAAG,+BAAe,CAAC,OAAO,CAAC;YACpC,IAAI,CAAC,UAAU,GAAG,UAAC,OAA2B,IAAK,OAAA,IAAI,EAAJ,CAAI,CAAC;YACxD,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;YAC/B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;YACpB,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC;YACrB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;YACzB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAC7B,CAAC;QAEM,uBAAK,GAAZ;YACI,IAAM,KAAK,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,iBAAiB,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;YAC9D,KAAK,CAAC,SAAS,GAAG,CAAC,KAAK,CAAC,KAAK,KAAK,gCAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC;YACxF,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,kBAAkB,CAAC;YACnD,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;YACvC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzB,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;YACvB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;YAC7B,KAAK,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC;YAC/B,KAAK,CAAC,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC;YACnC,KAAK,CAAC,YAAY,GAAG,IAAI,CAAC,YAAY,CAAC;YACvC,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;YACzB,OAAO,KAAK,CAAC;QACjB,CAAC;QAEL,cAAC;IAAD,CAAC,AAtED,IAsEC;IAEQ,0BAAO"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports"], function (require, exports) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BindingCount = void 0;
4
5
  var BindingCount = {
5
6
  MultipleBindingsAvailable: 2,
6
7
  NoBindingsAvailable: 0,
@@ -8,3 +9,4 @@ define(["require", "exports"], function (require, exports) {
8
9
  };
9
10
  exports.BindingCount = BindingCount;
10
11
  });
12
+ //# sourceMappingURL=binding_count.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"binding_count.js","sourceRoot":"","sources":["../../src/bindings/binding_count.ts"],"names":[],"mappings":";;;;IAAA,IAAM,YAAY,GAAG;QACjB,yBAAyB,EAAE,CAAC;QAC5B,mBAAmB,EAAE,CAAC;QACtB,uBAAuB,EAAE,CAAC;KAC7B,CAAC;IAEO,oCAAY"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports"], function (require, exports) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.STACK_OVERFLOW = exports.CIRCULAR_DEPENDENCY_IN_FACTORY = exports.POST_CONSTRUCT_ERROR = exports.MULTIPLE_POST_CONSTRUCT_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.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
5
  exports.DUPLICATED_INJECTABLE_DECORATOR = "Cannot apply @injectable decorator multiple times.";
5
6
  exports.DUPLICATED_METADATA = "Metadata key was used more than once in a parameter:";
6
7
  exports.NULL_ARGUMENT = "NULL argument";
@@ -10,11 +11,12 @@ define(["require", "exports"], function (require, exports) {
10
11
  exports.NOT_REGISTERED = "No matching bindings found for serviceIdentifier:";
11
12
  exports.MISSING_INJECTABLE_ANNOTATION = "Missing required @injectable annotation in:";
12
13
  exports.MISSING_INJECT_ANNOTATION = "Missing required @inject or @multiInject annotation in:";
13
- exports.UNDEFINED_INJECT_ANNOTATION = function (name) {
14
+ var UNDEFINED_INJECT_ANNOTATION = function (name) {
14
15
  return "@inject called with undefined this could mean that the class " + name + " has " +
15
16
  "a circular dependency problem. You can use a LazyServiceIdentifer to " +
16
17
  "overcome this limitation.";
17
18
  };
19
+ exports.UNDEFINED_INJECT_ANNOTATION = UNDEFINED_INJECT_ANNOTATION;
18
20
  exports.CIRCULAR_DEPENDENCY = "Circular dependency found:";
19
21
  exports.NOT_IMPLEMENTED = "Sorry, this feature is not fully implemented yet.";
20
22
  exports.INVALID_BINDING_TYPE = "Invalid binding type:";
@@ -25,7 +27,7 @@ define(["require", "exports"], function (require, exports) {
25
27
  "used as service identifier";
26
28
  exports.INVALID_DECORATOR_OPERATION = "The @inject @multiInject @tagged and @named decorators " +
27
29
  "must be applied to the parameters of a class constructor or a class property.";
28
- exports.ARGUMENTS_LENGTH_MISMATCH = function () {
30
+ var ARGUMENTS_LENGTH_MISMATCH = function () {
29
31
  var values = [];
30
32
  for (var _i = 0; _i < arguments.length; _i++) {
31
33
  values[_i] = arguments[_i];
@@ -33,6 +35,7 @@ define(["require", "exports"], function (require, exports) {
33
35
  return "The number of constructor arguments in the derived class " +
34
36
  (values[0] + " must be >= than the number of constructor arguments of its base class.");
35
37
  };
38
+ exports.ARGUMENTS_LENGTH_MISMATCH = ARGUMENTS_LENGTH_MISMATCH;
36
39
  exports.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT = "Invalid Container constructor argument. Container options " +
37
40
  "must be an object.";
38
41
  exports.CONTAINER_OPTIONS_INVALID_DEFAULT_SCOPE = "Invalid Container option. Default scope must " +
@@ -42,14 +45,15 @@ define(["require", "exports"], function (require, exports) {
42
45
  exports.CONTAINER_OPTIONS_INVALID_SKIP_BASE_CHECK = "Invalid Container option. Skip base check must " +
43
46
  "be a boolean";
44
47
  exports.MULTIPLE_POST_CONSTRUCT_METHODS = "Cannot apply @postConstruct decorator multiple times in the same class";
45
- exports.POST_CONSTRUCT_ERROR = function () {
48
+ var POST_CONSTRUCT_ERROR = function () {
46
49
  var values = [];
47
50
  for (var _i = 0; _i < arguments.length; _i++) {
48
51
  values[_i] = arguments[_i];
49
52
  }
50
53
  return "@postConstruct error in class " + values[0] + ": " + values[1];
51
54
  };
52
- exports.CIRCULAR_DEPENDENCY_IN_FACTORY = function () {
55
+ exports.POST_CONSTRUCT_ERROR = POST_CONSTRUCT_ERROR;
56
+ var CIRCULAR_DEPENDENCY_IN_FACTORY = function () {
53
57
  var values = [];
54
58
  for (var _i = 0; _i < arguments.length; _i++) {
55
59
  values[_i] = arguments[_i];
@@ -58,5 +62,7 @@ define(["require", "exports"], function (require, exports) {
58
62
  ("in one of the '" + values[0] + "' bindings. Please investigate bindings with") +
59
63
  ("service identifier '" + values[1] + "'.");
60
64
  };
65
+ exports.CIRCULAR_DEPENDENCY_IN_FACTORY = CIRCULAR_DEPENDENCY_IN_FACTORY;
61
66
  exports.STACK_OVERFLOW = "Maximum call stack size exceeded";
62
67
  });
68
+ //# sourceMappingURL=error_msgs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error_msgs.js","sourceRoot":"","sources":["../../src/constants/error_msgs.ts"],"names":[],"mappings":";;;;IAAa,QAAA,+BAA+B,GAAG,oDAAoD,CAAC;IACvF,QAAA,mBAAmB,GAAG,sDAAsD,CAAC;IAC7E,QAAA,aAAa,GAAG,eAAe,CAAC;IAChC,QAAA,aAAa,GAAG,eAAe,CAAC;IAChC,QAAA,eAAe,GAAG,8CAA8C,CAAC;IACjE,QAAA,aAAa,GAAG,qCAAqC,CAAC;IACtD,QAAA,cAAc,GAAG,mDAAmD,CAAC;IACrE,QAAA,6BAA6B,GAAG,6CAA6C,CAAC;IAC9E,QAAA,yBAAyB,GAAG,yDAAyD,CAAC;IAC5F,IAAM,2BAA2B,GAAG,UAAC,IAAY;QAC5C,OAAA,kEAAgE,IAAI,UAAO;YAC3E,wEAAwE;YACxE,2BAA2B;IAF3B,CAE2B,CAAC;IAH3B,QAAA,2BAA2B,+BAGA;IAC3B,QAAA,mBAAmB,GAAG,4BAA4B,CAAC;IACnD,QAAA,eAAe,GAAG,mDAAmD,CAAC;IACtE,QAAA,oBAAoB,GAAG,uBAAuB,CAAC;IAC/C,QAAA,2BAA2B,GAAG,mCAAmC,CAAC;IAClE,QAAA,yBAAyB,GAAG,4DAA4D,CAAC;IACzF,QAAA,wBAAwB,GAAG,wDAAwD,CAAC;IAEpF,QAAA,qBAAqB,GAAG,gEAAgE;QACjG,4BAA4B,CAAC;IAEpB,QAAA,2BAA2B,GAAG,yDAAyD;QAChG,+EAA+E,CAAC;IAE7E,IAAM,yBAAyB,GAAG;QAAC,gBAAgB;aAAhB,UAAgB,EAAhB,qBAAgB,EAAhB,IAAgB;YAAhB,2BAAgB;;QAAK,OAAA,2DAA2D;aACnH,MAAM,CAAC,CAAC,CAAC,4EAAyE,CAAA;IAD1B,CAC0B,CAAC;IAD7E,QAAA,yBAAyB,6BACoD;IAE7E,QAAA,mCAAmC,GAAG,4DAA4D;QAC3G,oBAAoB,CAAC;IAEZ,QAAA,uCAAuC,GAAG,+CAA+C;QAClG,2CAA2C,CAAC;IAEnC,QAAA,8CAA8C,GAAG,sDAAsD;QAChH,cAAc,CAAC;IAEN,QAAA,yCAAyC,GAAG,iDAAiD;QACtG,cAAc,CAAC;IAEN,QAAA,+BAA+B,GAAG,wEAAwE,CAAC;IACjH,IAAM,oBAAoB,GAAG;QAAC,gBAAgB;aAAhB,UAAgB,EAAhB,qBAAgB,EAAhB,IAAgB;YAAhB,2BAAgB;;QAAK,OAAA,mCAAiC,MAAM,CAAC,CAAC,CAAC,UAAK,MAAM,CAAC,CAAC,CAAG;IAA1D,CAA0D,CAAC;IAAxG,QAAA,oBAAoB,wBAAoF;IAE9G,IAAM,8BAA8B,GAAG;QAAC,gBAAgB;aAAhB,UAAgB,EAAhB,qBAAgB,EAAhB,IAAgB;YAAhB,2BAAgB;;QAAM,OAAA,+CAA+C;aAChH,oBAAkB,MAAM,CAAC,CAAC,CAAC,iDAA8C,CAAA;aACzE,yBAAuB,MAAM,CAAC,CAAC,CAAC,OAAI,CAAA;IAF6B,CAE7B,CAAC;IAF5B,QAAA,8BAA8B,kCAEF;IAE5B,QAAA,cAAc,GAAG,kCAAkC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports"], function (require, exports) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.TargetTypeEnum = exports.BindingTypeEnum = exports.BindingScopeEnum = void 0;
4
5
  var BindingScopeEnum = {
5
6
  Request: "Request",
6
7
  Singleton: "Singleton",
@@ -25,3 +26,4 @@ define(["require", "exports"], function (require, exports) {
25
26
  };
26
27
  exports.TargetTypeEnum = TargetTypeEnum;
27
28
  });
29
+ //# sourceMappingURL=literal_types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"literal_types.js","sourceRoot":"","sources":["../../src/constants/literal_types.ts"],"names":[],"mappings":";;;;IAEA,IAAM,gBAAgB,GAAgC;QAClD,OAAO,EAAE,SAAS;QAClB,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACzB,CAAC;IAmBO,4CAAgB;IAjBzB,IAAM,eAAe,GAA+B;QAChD,aAAa,EAAE,eAAe;QAC9B,WAAW,EAAE,aAAa;QAC1B,YAAY,EAAE,cAAc;QAC5B,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,UAAU;QACpB,QAAQ,EAAE,UAAU;QACpB,OAAO,EAAE,SAAS;QAClB,QAAQ,EAAE,UAAU;KACvB,CAAC;IAQyB,0CAAe;IAN1C,IAAM,cAAc,GAA8B;QAC9C,aAAa,EAAE,eAAe;QAC9B,mBAAmB,EAAE,qBAAqB;QAC1C,QAAQ,EAAE,UAAU;KACvB,CAAC;IAE0C,wCAAc"}
@@ -1,6 +1,7 @@
1
1
  define(["require", "exports"], function (require, exports) {
2
2
  "use strict";
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.NON_CUSTOM_TAG_KEYS = exports.POST_CONSTRUCT = exports.DESIGN_PARAM_TYPES = exports.PARAM_TYPES = exports.TAGGED_PROP = exports.TAGGED = exports.MULTI_INJECT_TAG = exports.INJECT_TAG = exports.OPTIONAL_TAG = exports.UNMANAGED_TAG = exports.NAME_TAG = exports.NAMED_TAG = void 0;
4
5
  exports.NAMED_TAG = "named";
5
6
  exports.NAME_TAG = "name";
6
7
  exports.UNMANAGED_TAG = "unmanaged";
@@ -12,4 +13,16 @@ define(["require", "exports"], function (require, exports) {
12
13
  exports.PARAM_TYPES = "inversify:paramtypes";
13
14
  exports.DESIGN_PARAM_TYPES = "design:paramtypes";
14
15
  exports.POST_CONSTRUCT = "post_construct";
16
+ function getNonCustomTagKeys() {
17
+ return [
18
+ exports.INJECT_TAG,
19
+ exports.MULTI_INJECT_TAG,
20
+ exports.NAME_TAG,
21
+ exports.UNMANAGED_TAG,
22
+ exports.NAMED_TAG,
23
+ exports.OPTIONAL_TAG,
24
+ ];
25
+ }
26
+ exports.NON_CUSTOM_TAG_KEYS = getNonCustomTagKeys();
15
27
  });
28
+ //# sourceMappingURL=metadata_keys.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"metadata_keys.js","sourceRoot":"","sources":["../../src/constants/metadata_keys.ts"],"names":[],"mappings":";;;;IACa,QAAA,SAAS,GAAG,OAAO,CAAC;IAGpB,QAAA,QAAQ,GAAG,MAAM,CAAC;IAGlB,QAAA,aAAa,GAAG,WAAW,CAAC;IAG5B,QAAA,YAAY,GAAG,UAAU,CAAC;IAG1B,QAAA,UAAU,GAAG,QAAQ,CAAC;IAGtB,QAAA,gBAAgB,GAAG,cAAc,CAAC;IAGlC,QAAA,MAAM,GAAG,kBAAkB,CAAC;IAG5B,QAAA,WAAW,GAAG,wBAAwB,CAAC;IAGvC,QAAA,WAAW,GAAG,sBAAsB,CAAC;IAGrC,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;IAGzC,QAAA,cAAc,GAAG,gBAAgB,CAAC;IAE/C,SAAS,mBAAmB;QACxB,OAAO;YACH,kBAAU;YACV,wBAAgB;YAChB,gBAAQ;YACR,qBAAa;YACb,iBAAS;YACT,oBAAY;SACf,CAAC;IACN,CAAC;IAEY,QAAA,mBAAmB,GAAa,mBAAmB,EAAE,CAAC"}
@@ -1,8 +1,9 @@
1
1
  var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2
3
  return new (P || (P = Promise))(function (resolve, reject) {
3
4
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
4
5
  function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
5
- function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
6
7
  step((generator = generator.apply(thisArg, _arguments || [])).next());
7
8
  });
8
9
  };
@@ -13,8 +14,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
13
14
  function step(op) {
14
15
  if (f) throw new TypeError("Generator is already executing.");
15
16
  while (_) try {
16
- if (f = 1, y && (t = y[op[0] & 2 ? "return" : op[0] ? "throw" : "next"]) && !(t = t.call(y, op[1])).done) return t;
17
- if (y = 0, t) op = [0, t.value];
17
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
+ if (y = 0, t) op = [op[0] & 2, t.value];
18
19
  switch (op[0]) {
19
20
  case 0: case 1: t = op; break;
20
21
  case 4: _.label++; return { value: op[1], done: false };
@@ -33,11 +34,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
33
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
34
35
  }
35
36
  };
37
+ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
38
+ for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
39
+ to[j] = from[i];
40
+ return to;
41
+ };
36
42
  define(["require", "exports", "../bindings/binding", "../constants/error_msgs", "../constants/literal_types", "../constants/metadata_keys", "../planning/metadata_reader", "../planning/planner", "../resolution/resolver", "../syntax/binding_to_syntax", "../utils/id", "../utils/serialization", "./container_snapshot", "./lookup"], function (require, exports, binding_1, ERROR_MSGS, literal_types_1, METADATA_KEY, metadata_reader_1, planner_1, resolver_1, binding_to_syntax_1, id_1, serialization_1, container_snapshot_1, lookup_1) {
37
43
  "use strict";
38
44
  Object.defineProperty(exports, "__esModule", { value: true });
45
+ exports.Container = void 0;
39
46
  var Container = (function () {
40
47
  function Container(containerOptions) {
48
+ this._appliedMiddleware = [];
41
49
  var options = containerOptions || {};
42
50
  if (typeof options !== "object") {
43
51
  throw new Error("" + ERROR_MSGS.CONTAINER_OPTIONS_MUST_BE_AN_OBJECT);
@@ -75,10 +83,13 @@ define(["require", "exports", "../bindings/binding", "../constants/error_msgs",
75
83
  this._metadataReader = new metadata_reader_1.MetadataReader();
76
84
  }
77
85
  Container.merge = function (container1, container2) {
86
+ var container3 = [];
87
+ for (var _i = 2; _i < arguments.length; _i++) {
88
+ container3[_i - 2] = arguments[_i];
89
+ }
78
90
  var container = new Container();
91
+ var targetContainers = __spreadArray([container1, container2], container3).map(function (targetContainer) { return planner_1.getBindingDictionary(targetContainer); });
79
92
  var bindingDictionary = planner_1.getBindingDictionary(container);
80
- var bindingDictionary1 = planner_1.getBindingDictionary(container1);
81
- var bindingDictionary2 = planner_1.getBindingDictionary(container2);
82
93
  function copyDictionary(origin, destination) {
83
94
  origin.traverse(function (key, value) {
84
95
  value.forEach(function (binding) {
@@ -86,8 +97,9 @@ define(["require", "exports", "../bindings/binding", "../constants/error_msgs",
86
97
  });
87
98
  });
88
99
  }
89
- copyDictionary(bindingDictionary1, bindingDictionary);
90
- copyDictionary(bindingDictionary2, bindingDictionary);
100
+ targetContainers.forEach(function (targetBindingDictionary) {
101
+ copyDictionary(targetBindingDictionary, bindingDictionary);
102
+ });
91
103
  return container;
92
104
  };
93
105
  Container.prototype.load = function () {
@@ -209,6 +221,7 @@ define(["require", "exports", "../bindings/binding", "../constants/error_msgs",
209
221
  for (var _i = 0; _i < arguments.length; _i++) {
210
222
  middlewares[_i] = arguments[_i];
211
223
  }
224
+ this._appliedMiddleware = this._appliedMiddleware.concat(middlewares);
212
225
  var initial = (this._middleware) ? this._middleware : this._planAndResolve();
213
226
  this._middleware = middlewares.reduce(function (prev, curr) { return curr(prev); }, initial);
214
227
  };
@@ -236,6 +249,9 @@ define(["require", "exports", "../bindings/binding", "../constants/error_msgs",
236
249
  Container.prototype.resolve = function (constructorFunction) {
237
250
  var tempContainer = this.createChild();
238
251
  tempContainer.bind(constructorFunction).toSelf();
252
+ this._appliedMiddleware.forEach(function (m) {
253
+ tempContainer.applyMiddleware(m);
254
+ });
239
255
  return tempContainer.get(constructorFunction);
240
256
  };
241
257
  Container.prototype._getContainerModuleHelpersFactory = function () {
@@ -313,3 +329,4 @@ define(["require", "exports", "../bindings/binding", "../constants/error_msgs",
313
329
  }());
314
330
  exports.Container = Container;
315
331
  });
332
+ //# sourceMappingURL=container.js.map