@celljs/core 4.1.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (410) hide show
  1. package/README.md +49 -62
  2. package/esm/browser/static-module.d.ts +1 -1
  3. package/esm/common/annotation/aspect.d.ts +2 -1
  4. package/esm/common/annotation/aspect.js.map +1 -1
  5. package/esm/common/annotation/autowired-provider.d.ts +0 -2
  6. package/esm/common/annotation/autowired-provider.js +4 -13
  7. package/esm/common/annotation/autowired-provider.js.map +1 -1
  8. package/esm/common/annotation/autowired.d.ts +1 -1
  9. package/esm/common/annotation/autowired.js +11 -3
  10. package/esm/common/annotation/autowired.js.map +1 -1
  11. package/esm/common/annotation/component.d.ts +4 -8
  12. package/esm/common/annotation/component.js +0 -6
  13. package/esm/common/annotation/component.js.map +1 -1
  14. package/esm/common/annotation/constant.d.ts +1 -1
  15. package/esm/common/annotation/constant.js +6 -3
  16. package/esm/common/annotation/constant.js.map +1 -1
  17. package/esm/common/annotation/detached/autowired-provider.js +2 -2
  18. package/esm/common/annotation/detached/autowired-provider.js.map +1 -1
  19. package/esm/common/annotation/index.d.ts +0 -6
  20. package/esm/common/annotation/index.js +0 -6
  21. package/esm/common/annotation/index.js.map +1 -1
  22. package/esm/common/annotation/named.d.ts +2 -1
  23. package/esm/common/annotation/named.js +5 -1
  24. package/esm/common/annotation/named.js.map +1 -1
  25. package/esm/common/annotation/optional.d.ts +2 -1
  26. package/esm/common/annotation/optional.js +5 -1
  27. package/esm/common/annotation/optional.js.map +1 -1
  28. package/esm/common/annotation/post-construct.d.ts +2 -1
  29. package/esm/common/annotation/post-construct.js +5 -1
  30. package/esm/common/annotation/post-construct.js.map +1 -1
  31. package/esm/common/annotation/tagged.d.ts +2 -1
  32. package/esm/common/annotation/tagged.js +6 -1
  33. package/esm/common/annotation/tagged.js.map +1 -1
  34. package/esm/common/annotation/value.d.ts +3 -2
  35. package/esm/common/annotation/value.js +7 -10
  36. package/esm/common/annotation/value.js.map +1 -1
  37. package/esm/common/aop/aop-proxy-factory.d.ts +6 -2
  38. package/esm/common/aop/aop-proxy-factory.js +44 -28
  39. package/esm/common/aop/aop-proxy-factory.js.map +1 -1
  40. package/esm/common/aop/class-filter.js +6 -6
  41. package/esm/common/aop/class-filter.js.map +1 -1
  42. package/esm/common/application/application-factory.d.ts +1 -1
  43. package/esm/common/application/application-factory.js +4 -4
  44. package/esm/common/application/application-factory.js.map +1 -1
  45. package/esm/common/container/auto-bind.d.ts +7 -3
  46. package/esm/common/container/auto-bind.js +49 -80
  47. package/esm/common/container/auto-bind.js.map +1 -1
  48. package/esm/common/container/container-error.d.ts +21 -0
  49. package/esm/common/container/container-error.js +22 -0
  50. package/esm/common/container/container-error.js.map +1 -0
  51. package/esm/common/container/container-provider.d.ts +5 -4
  52. package/esm/common/container/container-provider.js +2 -1
  53. package/esm/common/container/container-provider.js.map +1 -1
  54. package/esm/common/container/container-util.d.ts +5 -7
  55. package/esm/common/container/container-util.js +8 -19
  56. package/esm/common/container/container-util.js.map +1 -1
  57. package/esm/common/container/container.d.ts +104 -0
  58. package/esm/common/container/container.js +299 -0
  59. package/esm/common/container/container.js.map +1 -0
  60. package/esm/common/container/dynamic-container.d.ts +1 -1
  61. package/esm/common/container/dynamic-container.js +2 -2
  62. package/esm/common/container/dynamic-container.js.map +1 -1
  63. package/esm/common/container/index.d.ts +5 -6
  64. package/esm/common/container/index.js +5 -3
  65. package/esm/common/container/index.js.map +1 -1
  66. package/esm/common/container/injection.d.ts +40 -0
  67. package/esm/common/container/injection.js +109 -0
  68. package/esm/common/container/injection.js.map +1 -0
  69. package/esm/common/container/scope.d.ts +2 -3
  70. package/esm/common/container/scope.js +2 -3
  71. package/esm/common/container/scope.js.map +1 -1
  72. package/esm/common/el/application-expression-engine.d.ts +7 -0
  73. package/esm/common/{provider/provider-creator.js → el/application-expression-engine.js} +11 -11
  74. package/esm/common/el/application-expression-engine.js.map +1 -0
  75. package/esm/common/el/core-context-initializer.d.ts +3 -2
  76. package/esm/common/el/core-context-initializer.js +10 -8
  77. package/esm/common/el/core-context-initializer.js.map +1 -1
  78. package/esm/common/el/expression-compiler.d.ts +5 -4
  79. package/esm/common/el/expression-compiler.js +7 -6
  80. package/esm/common/el/expression-compiler.js.map +1 -1
  81. package/esm/common/el/expression-engine.d.ts +61 -0
  82. package/esm/common/el/expression-engine.js +459 -0
  83. package/esm/common/el/expression-engine.js.map +1 -0
  84. package/esm/common/el/expression-handler.d.ts +1 -2
  85. package/esm/common/el/expression-handler.js +1 -5
  86. package/esm/common/el/expression-handler.js.map +1 -1
  87. package/esm/common/el/expression-protocol.d.ts +3 -5
  88. package/esm/common/el/expression-protocol.js +0 -1
  89. package/esm/common/el/expression-protocol.js.map +1 -1
  90. package/esm/common/el/expression-util.d.ts +9 -8
  91. package/esm/common/el/expression-util.js +8 -9
  92. package/esm/common/el/expression-util.js.map +1 -1
  93. package/esm/common/el/index.d.ts +2 -1
  94. package/esm/common/el/index.js +2 -1
  95. package/esm/common/el/index.js.map +1 -1
  96. package/esm/common/provider/index.d.ts +0 -1
  97. package/esm/common/provider/index.js +0 -1
  98. package/esm/common/provider/index.js.map +1 -1
  99. package/esm/common/provider/provider-protocol.d.ts +5 -9
  100. package/esm/common/provider/provider-protocol.js +0 -1
  101. package/esm/common/provider/provider-protocol.js.map +1 -1
  102. package/esm/common/provider/provider-util.d.ts +1 -1
  103. package/esm/common/provider/provider-util.js +2 -2
  104. package/esm/common/provider/provider-util.js.map +1 -1
  105. package/esm/common/provider/provider.d.ts +7 -6
  106. package/esm/common/provider/provider.js +15 -26
  107. package/esm/common/provider/provider.js.map +1 -1
  108. package/esm/common/static-module.d.ts +1 -1
  109. package/esm/common/static-module.js +1 -1
  110. package/esm/common/static-module.js.map +1 -1
  111. package/esm/common/test/mock-logger.js +2 -13
  112. package/esm/common/test/mock-logger.js.map +1 -1
  113. package/esm/common/test/test-module.d.ts +1 -1
  114. package/esm/common/test/test-module.js +1 -1
  115. package/esm/common/test/test-module.js.map +1 -1
  116. package/esm/common/utils/annotation-util.js +2 -1
  117. package/esm/common/utils/annotation-util.js.map +1 -1
  118. package/esm/common/utils/proxy-util.d.ts +5 -2
  119. package/esm/common/utils/proxy-util.js +10 -28
  120. package/esm/common/utils/proxy-util.js.map +1 -1
  121. package/esm/node/static-module.d.ts +1 -1
  122. package/lib/browser/static-module.d.ts +1 -1
  123. package/lib/common/annotation/aspect.d.ts +2 -1
  124. package/lib/common/annotation/aspect.d.ts.map +1 -1
  125. package/lib/common/annotation/aspect.js.map +1 -1
  126. package/lib/common/annotation/autowired-provider.d.ts +0 -2
  127. package/lib/common/annotation/autowired-provider.d.ts.map +1 -1
  128. package/lib/common/annotation/autowired-provider.js +4 -14
  129. package/lib/common/annotation/autowired-provider.js.map +1 -1
  130. package/lib/common/annotation/autowired.d.ts +1 -1
  131. package/lib/common/annotation/autowired.d.ts.map +1 -1
  132. package/lib/common/annotation/autowired.js +11 -3
  133. package/lib/common/annotation/autowired.js.map +1 -1
  134. package/lib/common/annotation/component.d.ts +4 -8
  135. package/lib/common/annotation/component.d.ts.map +1 -1
  136. package/lib/common/annotation/component.js +0 -6
  137. package/lib/common/annotation/component.js.map +1 -1
  138. package/lib/common/annotation/constant.d.ts +1 -1
  139. package/lib/common/annotation/constant.d.ts.map +1 -1
  140. package/lib/common/annotation/constant.js +6 -3
  141. package/lib/common/annotation/constant.js.map +1 -1
  142. package/lib/common/annotation/detached/autowired-provider.js +2 -2
  143. package/lib/common/annotation/detached/autowired-provider.js.map +1 -1
  144. package/lib/common/annotation/index.d.ts +0 -6
  145. package/lib/common/annotation/index.d.ts.map +1 -1
  146. package/lib/common/annotation/index.js +0 -6
  147. package/lib/common/annotation/index.js.map +1 -1
  148. package/lib/common/annotation/named.d.ts +2 -1
  149. package/lib/common/annotation/named.d.ts.map +1 -1
  150. package/lib/common/annotation/named.js +6 -2
  151. package/lib/common/annotation/named.js.map +1 -1
  152. package/lib/common/annotation/optional.d.ts +2 -1
  153. package/lib/common/annotation/optional.d.ts.map +1 -1
  154. package/lib/common/annotation/optional.js +6 -2
  155. package/lib/common/annotation/optional.js.map +1 -1
  156. package/lib/common/annotation/post-construct.d.ts +2 -1
  157. package/lib/common/annotation/post-construct.d.ts.map +1 -1
  158. package/lib/common/annotation/post-construct.js +6 -2
  159. package/lib/common/annotation/post-construct.js.map +1 -1
  160. package/lib/common/annotation/tagged.d.ts +2 -1
  161. package/lib/common/annotation/tagged.d.ts.map +1 -1
  162. package/lib/common/annotation/tagged.js +7 -2
  163. package/lib/common/annotation/tagged.js.map +1 -1
  164. package/lib/common/annotation/value.d.ts +3 -2
  165. package/lib/common/annotation/value.d.ts.map +1 -1
  166. package/lib/common/annotation/value.js +7 -10
  167. package/lib/common/annotation/value.js.map +1 -1
  168. package/lib/common/aop/aop-proxy-factory.d.ts +6 -2
  169. package/lib/common/aop/aop-proxy-factory.d.ts.map +1 -1
  170. package/lib/common/aop/aop-proxy-factory.js +45 -29
  171. package/lib/common/aop/aop-proxy-factory.js.map +1 -1
  172. package/lib/common/aop/class-filter.js +7 -7
  173. package/lib/common/aop/class-filter.js.map +1 -1
  174. package/lib/common/application/application-factory.d.ts +1 -1
  175. package/lib/common/application/application-factory.d.ts.map +1 -1
  176. package/lib/common/application/application-factory.js +4 -4
  177. package/lib/common/application/application-factory.js.map +1 -1
  178. package/lib/common/container/assembly.spec.js +11 -11
  179. package/lib/common/container/assembly.spec.js.map +1 -1
  180. package/lib/common/container/auto-bind.d.ts +7 -3
  181. package/lib/common/container/auto-bind.d.ts.map +1 -1
  182. package/lib/common/container/auto-bind.js +49 -81
  183. package/lib/common/container/auto-bind.js.map +1 -1
  184. package/lib/common/container/container-error.d.ts +22 -0
  185. package/lib/common/container/container-error.d.ts.map +1 -0
  186. package/lib/common/container/container-error.js +26 -0
  187. package/lib/common/container/container-error.js.map +1 -0
  188. package/lib/common/container/container-provider.d.ts +5 -4
  189. package/lib/common/container/container-provider.d.ts.map +1 -1
  190. package/lib/common/container/container-provider.js +3 -2
  191. package/lib/common/container/container-provider.js.map +1 -1
  192. package/lib/common/container/container-util.d.ts +5 -7
  193. package/lib/common/container/container-util.d.ts.map +1 -1
  194. package/lib/common/container/container-util.js +8 -19
  195. package/lib/common/container/container-util.js.map +1 -1
  196. package/lib/common/container/container.d.ts +105 -0
  197. package/lib/common/container/container.d.ts.map +1 -0
  198. package/lib/common/container/container.js +305 -0
  199. package/lib/common/container/container.js.map +1 -0
  200. package/lib/common/container/container.spec.d.ts +2 -0
  201. package/lib/common/container/container.spec.d.ts.map +1 -0
  202. package/lib/common/container/container.spec.js +334 -0
  203. package/lib/common/container/container.spec.js.map +1 -0
  204. package/lib/common/container/dynamic-container.d.ts +1 -1
  205. package/lib/common/container/dynamic-container.d.ts.map +1 -1
  206. package/lib/common/container/dynamic-container.js +3 -3
  207. package/lib/common/container/dynamic-container.js.map +1 -1
  208. package/lib/common/container/index.d.ts +5 -6
  209. package/lib/common/container/index.d.ts.map +1 -1
  210. package/lib/common/container/index.js +5 -3
  211. package/lib/common/container/index.js.map +1 -1
  212. package/lib/common/container/injection.d.ts +41 -0
  213. package/lib/common/container/injection.d.ts.map +1 -0
  214. package/lib/common/container/injection.js +112 -0
  215. package/lib/common/container/injection.js.map +1 -0
  216. package/lib/common/container/scope.d.ts +2 -3
  217. package/lib/common/container/scope.d.ts.map +1 -1
  218. package/lib/common/container/scope.js +2 -3
  219. package/lib/common/container/scope.js.map +1 -1
  220. package/lib/common/el/application-expression-engine.d.ts +8 -0
  221. package/lib/common/el/application-expression-engine.d.ts.map +1 -0
  222. package/lib/common/el/application-expression-engine.js +22 -0
  223. package/lib/common/el/application-expression-engine.js.map +1 -0
  224. package/lib/common/el/core-context-initializer.d.ts +3 -2
  225. package/lib/common/el/core-context-initializer.d.ts.map +1 -1
  226. package/lib/common/el/core-context-initializer.js +9 -7
  227. package/lib/common/el/core-context-initializer.js.map +1 -1
  228. package/lib/common/el/expression-compiler.d.ts +5 -4
  229. package/lib/common/el/expression-compiler.d.ts.map +1 -1
  230. package/lib/common/el/expression-compiler.js +6 -5
  231. package/lib/common/el/expression-compiler.js.map +1 -1
  232. package/lib/common/el/expression-engine.d.ts +62 -0
  233. package/lib/common/el/expression-engine.d.ts.map +1 -0
  234. package/lib/common/el/expression-engine.js +465 -0
  235. package/lib/common/el/expression-engine.js.map +1 -0
  236. package/lib/common/el/expression-engine.spec.d.ts +2 -0
  237. package/lib/common/el/expression-engine.spec.d.ts.map +1 -0
  238. package/lib/common/el/expression-engine.spec.js +100 -0
  239. package/lib/common/el/expression-engine.spec.js.map +1 -0
  240. package/lib/common/el/expression-handler.d.ts +1 -2
  241. package/lib/common/el/expression-handler.d.ts.map +1 -1
  242. package/lib/common/el/expression-handler.js +0 -4
  243. package/lib/common/el/expression-handler.js.map +1 -1
  244. package/lib/common/el/expression-handler.spec.js +5 -6
  245. package/lib/common/el/expression-handler.spec.js.map +1 -1
  246. package/lib/common/el/expression-protocol.d.ts +3 -5
  247. package/lib/common/el/expression-protocol.d.ts.map +1 -1
  248. package/lib/common/el/expression-protocol.js +1 -2
  249. package/lib/common/el/expression-protocol.js.map +1 -1
  250. package/lib/common/el/expression-util.d.ts +9 -8
  251. package/lib/common/el/expression-util.d.ts.map +1 -1
  252. package/lib/common/el/expression-util.js +8 -9
  253. package/lib/common/el/expression-util.js.map +1 -1
  254. package/lib/common/el/index.d.ts +2 -1
  255. package/lib/common/el/index.d.ts.map +1 -1
  256. package/lib/common/el/index.js +2 -1
  257. package/lib/common/el/index.js.map +1 -1
  258. package/lib/common/el/value-and-el.spec.js +2 -2
  259. package/lib/common/el/value-and-el.spec.js.map +1 -1
  260. package/lib/common/provider/index.d.ts +0 -1
  261. package/lib/common/provider/index.d.ts.map +1 -1
  262. package/lib/common/provider/index.js +0 -1
  263. package/lib/common/provider/index.js.map +1 -1
  264. package/lib/common/provider/provider-protocol.d.ts +5 -9
  265. package/lib/common/provider/provider-protocol.d.ts.map +1 -1
  266. package/lib/common/provider/provider-protocol.js +1 -2
  267. package/lib/common/provider/provider-protocol.js.map +1 -1
  268. package/lib/common/provider/provider-util.d.ts +1 -1
  269. package/lib/common/provider/provider-util.d.ts.map +1 -1
  270. package/lib/common/provider/provider-util.js +2 -2
  271. package/lib/common/provider/provider-util.js.map +1 -1
  272. package/lib/common/provider/provider.d.ts +7 -6
  273. package/lib/common/provider/provider.d.ts.map +1 -1
  274. package/lib/common/provider/provider.js +16 -26
  275. package/lib/common/provider/provider.js.map +1 -1
  276. package/lib/common/static-module.d.ts +1 -1
  277. package/lib/common/static-module.js +2 -2
  278. package/lib/common/static-module.js.map +1 -1
  279. package/lib/common/test/mock-logger.d.ts.map +1 -1
  280. package/lib/common/test/mock-logger.js +2 -12
  281. package/lib/common/test/mock-logger.js.map +1 -1
  282. package/lib/common/test/test-module.d.ts +1 -1
  283. package/lib/common/test/test-module.d.ts.map +1 -1
  284. package/lib/common/test/test-module.js +2 -2
  285. package/lib/common/test/test-module.js.map +1 -1
  286. package/lib/common/utils/annotation-util.js +2 -1
  287. package/lib/common/utils/annotation-util.js.map +1 -1
  288. package/lib/common/utils/proxy-util.d.ts +5 -2
  289. package/lib/common/utils/proxy-util.d.ts.map +1 -1
  290. package/lib/common/utils/proxy-util.js +12 -30
  291. package/lib/common/utils/proxy-util.js.map +1 -1
  292. package/lib/node/static-module.d.ts +1 -1
  293. package/package.json +4 -6
  294. package/src/common/annotation/aspect.ts +2 -1
  295. package/src/common/annotation/autowired-provider.ts +4 -17
  296. package/src/common/annotation/autowired.ts +14 -6
  297. package/src/common/annotation/component.ts +6 -26
  298. package/src/common/annotation/constant.ts +10 -7
  299. package/src/common/annotation/detached/autowired-provider.ts +2 -2
  300. package/src/common/annotation/index.ts +0 -6
  301. package/src/common/annotation/named.ts +7 -1
  302. package/src/common/annotation/optional.ts +6 -1
  303. package/src/common/annotation/post-construct.ts +6 -1
  304. package/src/common/annotation/tagged.ts +8 -1
  305. package/src/common/annotation/value.ts +9 -11
  306. package/src/common/aop/aop-proxy-factory.ts +52 -30
  307. package/src/common/aop/class-filter.ts +6 -6
  308. package/src/common/application/application-factory.ts +4 -5
  309. package/src/common/container/assembly.spec.ts +7 -12
  310. package/src/common/container/auto-bind.ts +54 -85
  311. package/src/common/container/container-error.ts +31 -0
  312. package/src/common/container/container-provider.ts +9 -7
  313. package/src/common/container/container-util.ts +8 -19
  314. package/src/common/container/container.spec.ts +262 -0
  315. package/src/common/container/container.ts +363 -0
  316. package/src/common/container/dynamic-container.ts +2 -2
  317. package/src/common/container/index.ts +5 -7
  318. package/src/common/container/injection.ts +135 -0
  319. package/src/common/container/scope.ts +2 -1
  320. package/src/common/el/application-expression-engine.ts +9 -0
  321. package/src/common/el/core-context-initializer.ts +9 -8
  322. package/src/common/el/expression-compiler.ts +7 -6
  323. package/src/common/el/expression-engine.spec.ts +107 -0
  324. package/src/common/el/expression-engine.ts +487 -0
  325. package/src/common/el/expression-handler.spec.ts +6 -7
  326. package/src/common/el/expression-handler.ts +2 -5
  327. package/src/common/el/expression-protocol.ts +4 -8
  328. package/src/common/el/expression-util.ts +12 -13
  329. package/src/common/el/index.ts +3 -2
  330. package/src/common/el/value-and-el.spec.ts +2 -2
  331. package/src/common/provider/index.ts +0 -2
  332. package/src/common/provider/provider-protocol.ts +5 -11
  333. package/src/common/provider/provider-util.ts +3 -3
  334. package/src/common/provider/provider.ts +17 -29
  335. package/src/common/static-module.ts +1 -1
  336. package/src/common/test/mock-logger.ts +0 -2
  337. package/src/common/test/test-module.ts +1 -1
  338. package/src/common/utils/annotation-util.ts +2 -2
  339. package/src/common/utils/proxy-util.ts +8 -28
  340. package/esm/common/annotation/decorate.d.ts +0 -1
  341. package/esm/common/annotation/decorate.js +0 -2
  342. package/esm/common/annotation/decorate.js.map +0 -1
  343. package/esm/common/annotation/inject.d.ts +0 -1
  344. package/esm/common/annotation/inject.js +0 -2
  345. package/esm/common/annotation/inject.js.map +0 -1
  346. package/esm/common/annotation/injectable.d.ts +0 -1
  347. package/esm/common/annotation/injectable.js +0 -2
  348. package/esm/common/annotation/injectable.js.map +0 -1
  349. package/esm/common/annotation/pre-destroy.d.ts +0 -1
  350. package/esm/common/annotation/pre-destroy.js +0 -2
  351. package/esm/common/annotation/pre-destroy.js.map +0 -1
  352. package/esm/common/annotation/target-name.d.ts +0 -1
  353. package/esm/common/annotation/target-name.js +0 -2
  354. package/esm/common/annotation/target-name.js.map +0 -1
  355. package/esm/common/annotation/unmanaged.d.ts +0 -1
  356. package/esm/common/annotation/unmanaged.js +0 -2
  357. package/esm/common/annotation/unmanaged.js.map +0 -1
  358. package/esm/common/container/container-factory.d.ts +0 -4
  359. package/esm/common/container/container-factory.js +0 -9
  360. package/esm/common/container/container-factory.js.map +0 -1
  361. package/esm/common/el/jexl-engine-provider.d.ts +0 -5
  362. package/esm/common/el/jexl-engine-provider.js +0 -22
  363. package/esm/common/el/jexl-engine-provider.js.map +0 -1
  364. package/esm/common/provider/provider-creator.d.ts +0 -6
  365. package/esm/common/provider/provider-creator.js.map +0 -1
  366. package/lib/common/annotation/decorate.d.ts +0 -2
  367. package/lib/common/annotation/decorate.d.ts.map +0 -1
  368. package/lib/common/annotation/decorate.js +0 -6
  369. package/lib/common/annotation/decorate.js.map +0 -1
  370. package/lib/common/annotation/inject.d.ts +0 -2
  371. package/lib/common/annotation/inject.d.ts.map +0 -1
  372. package/lib/common/annotation/inject.js +0 -6
  373. package/lib/common/annotation/inject.js.map +0 -1
  374. package/lib/common/annotation/injectable.d.ts +0 -2
  375. package/lib/common/annotation/injectable.d.ts.map +0 -1
  376. package/lib/common/annotation/injectable.js +0 -6
  377. package/lib/common/annotation/injectable.js.map +0 -1
  378. package/lib/common/annotation/pre-destroy.d.ts +0 -2
  379. package/lib/common/annotation/pre-destroy.d.ts.map +0 -1
  380. package/lib/common/annotation/pre-destroy.js +0 -6
  381. package/lib/common/annotation/pre-destroy.js.map +0 -1
  382. package/lib/common/annotation/target-name.d.ts +0 -2
  383. package/lib/common/annotation/target-name.d.ts.map +0 -1
  384. package/lib/common/annotation/target-name.js +0 -6
  385. package/lib/common/annotation/target-name.js.map +0 -1
  386. package/lib/common/annotation/unmanaged.d.ts +0 -2
  387. package/lib/common/annotation/unmanaged.d.ts.map +0 -1
  388. package/lib/common/annotation/unmanaged.js +0 -6
  389. package/lib/common/annotation/unmanaged.js.map +0 -1
  390. package/lib/common/container/container-factory.d.ts +0 -5
  391. package/lib/common/container/container-factory.d.ts.map +0 -1
  392. package/lib/common/container/container-factory.js +0 -13
  393. package/lib/common/container/container-factory.js.map +0 -1
  394. package/lib/common/el/jexl-engine-provider.d.ts +0 -6
  395. package/lib/common/el/jexl-engine-provider.d.ts.map +0 -1
  396. package/lib/common/el/jexl-engine-provider.js +0 -25
  397. package/lib/common/el/jexl-engine-provider.js.map +0 -1
  398. package/lib/common/provider/provider-creator.d.ts +0 -7
  399. package/lib/common/provider/provider-creator.d.ts.map +0 -1
  400. package/lib/common/provider/provider-creator.js +0 -22
  401. package/lib/common/provider/provider-creator.js.map +0 -1
  402. package/src/common/annotation/decorate.ts +0 -1
  403. package/src/common/annotation/inject.ts +0 -1
  404. package/src/common/annotation/injectable.ts +0 -1
  405. package/src/common/annotation/pre-destroy.ts +0 -1
  406. package/src/common/annotation/target-name.ts +0 -1
  407. package/src/common/annotation/unmanaged.ts +0 -1
  408. package/src/common/container/container-factory.ts +0 -9
  409. package/src/common/el/jexl-engine-provider.ts +0 -18
  410. package/src/common/provider/provider-creator.ts +0 -12
@@ -1,20 +1,15 @@
1
- import { ComponentId } from '../annotation/component';
2
- import { Container } from '../container';
1
+ import type { ComponentId } from '../container/container';
3
2
  import { Prioritizeable } from '../utils/prioritizeable';
4
3
 
5
- export const ProviderCreator = Symbol('ProviderCreator');
6
4
  export const ComponentFilter = Symbol('ComponentFilter');
7
5
  export const ComponentFilterRegistry = Symbol('ComponentFilterRegistry');
8
6
  export const ComponentFilterContribution = Symbol('ComponentFilterContribution');
9
7
 
8
+ /** The components of an identifier, created when first asked for; what `@AutowiredProvider` injects. */
10
9
  export interface Provider<T extends object> {
11
- get(recursive?: boolean): T[];
12
- sortSync(getPriority?: Prioritizeable.GetPrioritySync<T>, recursive?: boolean): T[];
13
- sort(getPriority?: Prioritizeable.GetPriority<T> , recursive?: boolean): Promise<T[]>;
14
- }
15
-
16
- export interface ProviderCreator<T extends object> {
17
- create(id: ComponentId, container: Container): Provider<T>;
10
+ get(): T[];
11
+ sortSync(getPriority?: Prioritizeable.GetPrioritySync<T>): T[];
12
+ sort(getPriority?: Prioritizeable.GetPriority<T>): Promise<T[]>;
18
13
  }
19
14
 
20
15
  /**
@@ -23,7 +18,6 @@ export interface ProviderCreator<T extends object> {
23
18
  */
24
19
  export type ComponentFilter<T extends Object> = (toTest: T) => boolean;
25
20
 
26
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
27
21
  export type ComponentType = ComponentId;
28
22
 
29
23
  export interface ComponentFilterRegistry {
@@ -1,10 +1,10 @@
1
1
  import { PROVIDER, ID_KEY } from '../annotation/autowired-provider';
2
- import { ComponentId } from '../annotation/component';
3
- import { ContainerUtil } from '../container';
2
+ import type { ComponentId } from '../container/container';
3
+ import { ContainerUtil } from '../container/container-util';
4
4
  import { Provider } from './provider-protocol';
5
5
 
6
6
  export namespace ProviderUtil {
7
7
  export function get<T extends Object>(componentId: ComponentId<T>): Provider<T> {
8
- return ContainerUtil.getTagged(PROVIDER, ID_KEY, componentId);
8
+ return ContainerUtil.get(PROVIDER, { tags: { [ID_KEY]: componentId } });
9
9
  }
10
10
  }
@@ -1,7 +1,7 @@
1
- import { ComponentId } from '../annotation/component';
1
+ import type { Binding, ComponentId, Container } from '../container/container';
2
2
  import { Provider, ComponentFilterRegistry } from './provider-protocol';
3
- import { Container } from '../container';
4
- import { Prioritizeable } from '../utils';
3
+ import { Prioritizeable } from '../utils/prioritizeable';
4
+ import { ID_KEY, PROVIDER } from '../annotation/autowired-provider';
5
5
 
6
6
  const DEFAULT_GET_PRIORITY: Prioritizeable.GetPrioritySync<any> = value => {
7
7
  if (value) {
@@ -23,41 +23,29 @@ export class ContainerBasedProvider<T extends object> implements Provider<T> {
23
23
  protected readonly container: Container
24
24
  ) { }
25
25
 
26
- get(recursive?: boolean): T[] {
26
+ get(): T[] {
27
27
  if (this.components === undefined) {
28
- const currentComponents: T[] = [];
29
- let filterRegistry: ComponentFilterRegistry | undefined;
30
- let currentContainer: Container | null = this.container;
31
- // eslint-disable-next-line no-null/no-null
32
- while (currentContainer !== null) {
33
- if (currentContainer.isBound(this.componentId)) {
34
- try {
35
- currentComponents.push(...currentContainer.getAll(this.componentId));
36
- } catch (error) {
37
- console.error(error);
38
- }
39
- }
40
- if (filterRegistry === undefined && currentContainer.isBound(ComponentFilterRegistry)) {
41
- filterRegistry = currentContainer.get(ComponentFilterRegistry);
42
- }
43
- // eslint-disable-next-line no-null/no-null
44
- currentContainer = recursive === true ? currentContainer.parent : null;
45
- }
46
-
47
- this.components = filterRegistry ? filterRegistry.applyFilters(currentComponents, this.componentId) : currentComponents;
48
-
28
+ const components = this.container.isBound(this.componentId) ? this.container.getAll<T>(this.componentId) : [];
29
+ const filterRegistry = this.container.isBound(ComponentFilterRegistry)
30
+ ? this.container.get<ComponentFilterRegistry>(ComponentFilterRegistry) : undefined;
31
+ this.components = filterRegistry ? filterRegistry.applyFilters(components, this.componentId) : components;
49
32
  }
50
33
  return this.components;
51
34
  }
52
35
 
53
- sortSync(getPriority: Prioritizeable.GetPrioritySync<T> = DEFAULT_GET_PRIORITY, recursive?: boolean): T[] {
54
- this.components = Prioritizeable.prioritizeAllSync<T>(this.get(recursive), getPriority).map(c => c.value);
36
+ sortSync(getPriority: Prioritizeable.GetPrioritySync<T> = DEFAULT_GET_PRIORITY): T[] {
37
+ this.components = Prioritizeable.prioritizeAllSync<T>(this.get(), getPriority).map(c => c.value);
55
38
  return this.components;
56
39
  }
57
40
 
58
- async sort(getPriority: Prioritizeable.GetPriority<T> = DEFAULT_GET_PRIORITY, recursive?: boolean): Promise<T[]> {
59
- const result = await Prioritizeable.prioritizeAll<T>(this.get(recursive), getPriority);
41
+ async sort(getPriority: Prioritizeable.GetPriority<T> = DEFAULT_GET_PRIORITY): Promise<T[]> {
42
+ const result = await Prioritizeable.prioritizeAll<T>(this.get(), getPriority);
60
43
  this.components = result.map<T>(c => c.value);
61
44
  return this.components;
62
45
  }
63
46
  }
47
+
48
+ /** `@AutowiredProvider(id)` is an injection of `PROVIDER` tagged with the id: a provider of its components. */
49
+ export function bindAutowiredProvider(bind: <B>(id: ComponentId<B>) => Binding<B>): void {
50
+ bind(PROVIDER).toDynamicValue(ctx => new ContainerBasedProvider(ctx.target.tags![ID_KEY] as ComponentId<object>, ctx.container));
51
+ }
@@ -1,6 +1,6 @@
1
1
  import './index';
2
2
  import { bindValue } from './annotation/value';
3
- import { bindAutowiredProvider } from './annotation/autowired-provider';
3
+ import { bindAutowiredProvider } from './provider/provider';
4
4
  import { autoBind } from './container/auto-bind';
5
5
 
6
6
  export default autoBind(bind => {
@@ -1,8 +1,6 @@
1
- import { Injectable } from '../annotation';
2
1
  import { Logger, LogLevel, LogMessage } from '../logger/logger-protocol';
3
2
  import { Emitter } from '../utils';
4
3
 
5
- @Injectable()
6
4
  export class MockLogger implements Logger {
7
5
  level: LogLevel = 'info';
8
6
  protected readonly onLogEmitter = new Emitter<LogMessage>();
@@ -1,5 +1,5 @@
1
- import { bindAutowiredProvider } from '../annotation/autowired-provider';
2
1
  import { bindValue } from '../annotation/value';
2
+ import { bindAutowiredProvider } from '../provider/provider';
3
3
  import { autoBind } from '../container';
4
4
  import { Logger } from '../logger';
5
5
  import { MockLogger } from './mock-logger';
@@ -12,10 +12,10 @@ export namespace AnnotationUtil {
12
12
 
13
13
  export function getType(target: any, targetKey: string | symbol, index?: number) {
14
14
  if (index !== undefined) {
15
- return Reflect.getMetadata('design:paramtypes', target, targetKey)[index];
15
+ return Reflect.getMetadata('design:paramtypes', target, targetKey)?.[index];
16
16
  } else {
17
17
  return Reflect.getMetadata('design:type', target, targetKey);
18
18
  }
19
19
  }
20
20
 
21
- }
21
+ }
@@ -1,36 +1,16 @@
1
- let resolveMode = false;
1
+ /** What a proxy of a component (AOP) answers with the object it wraps. */
2
+ export const PROXY_TARGET = Symbol.for('@celljs/core/proxy-target');
2
3
 
3
- export function isResolveMode(): boolean {
4
- return resolveMode;
4
+ /** The object behind a component proxy, or the object itself. */
5
+ export function getTarget(obj: any): any {
6
+ return obj?.[PROXY_TARGET] ?? obj;
5
7
  }
6
8
 
9
+ /** The class of the object behind a component proxy, or of the object itself. */
7
10
  export function getTargetClass(obj: any): any {
8
- try {
9
- resolveMode = true;
10
- const target = obj.target;
11
- return target ? target.constructor : obj.constructor;
12
-
13
- } finally {
14
- resolveMode = false;
15
- }
16
- }
17
-
18
- export function getTarget(obj: any): any {
19
- try {
20
- resolveMode = true;
21
- const target = obj.target;
22
- return target || obj;
23
-
24
- } finally {
25
- resolveMode = false;
26
- }
11
+ return getTarget(obj)?.constructor;
27
12
  }
28
13
 
29
14
  export function isProxy(obj: any): boolean {
30
- try {
31
- resolveMode = true;
32
- return !!obj.target;
33
- } finally {
34
- resolveMode = false;
35
- }
15
+ return obj?.[PROXY_TARGET] !== undefined;
36
16
  }
@@ -1 +0,0 @@
1
- export { decorate } from 'inversify';
@@ -1,2 +0,0 @@
1
- export { decorate } from 'inversify';
2
- //# sourceMappingURL=decorate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorate.js","sourceRoot":"","sources":["../../../src/common/annotation/decorate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- export { inject as Inject } from 'inversify';
@@ -1,2 +0,0 @@
1
- export { inject as Inject } from 'inversify';
2
- //# sourceMappingURL=inject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inject.js","sourceRoot":"","sources":["../../../src/common/annotation/inject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- export { injectable as Injectable } from 'inversify';
@@ -1,2 +0,0 @@
1
- export { injectable as Injectable } from 'inversify';
2
- //# sourceMappingURL=injectable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"injectable.js","sourceRoot":"","sources":["../../../src/common/annotation/injectable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- export { preDestroy as PreDestroy } from 'inversify';
@@ -1,2 +0,0 @@
1
- export { preDestroy as PreDestroy } from 'inversify';
2
- //# sourceMappingURL=pre-destroy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pre-destroy.js","sourceRoot":"","sources":["../../../src/common/annotation/pre-destroy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- export { targetName as TargetName } from 'inversify';
@@ -1,2 +0,0 @@
1
- export { targetName as TargetName } from 'inversify';
2
- //# sourceMappingURL=target-name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"target-name.js","sourceRoot":"","sources":["../../../src/common/annotation/target-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- export { unmanaged as Unmanaged } from 'inversify';
@@ -1,2 +0,0 @@
1
- export { unmanaged as Unmanaged } from 'inversify';
2
- //# sourceMappingURL=unmanaged.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unmanaged.js","sourceRoot":"","sources":["../../../src/common/annotation/unmanaged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC"}
@@ -1,4 +0,0 @@
1
- import { ContainerModule, interfaces } from 'inversify';
2
- export declare class ContainerFactory {
3
- static create(...modules: ContainerModule[]): interfaces.Container;
4
- }
@@ -1,9 +0,0 @@
1
- import { Container } from 'inversify';
2
- export class ContainerFactory {
3
- static create(...modules) {
4
- const container = new Container({ skipBaseClassChecks: true });
5
- container.load(...modules);
6
- return container;
7
- }
8
- }
9
- //# sourceMappingURL=container-factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container-factory.js","sourceRoot":"","sources":["../../../src/common/container/container-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAA+B,MAAM,WAAW,CAAC;AAEnE,MAAM,OAAO,gBAAgB;IACzB,MAAM,CAAC,MAAM,CAAC,GAAG,OAA0B;QACvC,MAAM,SAAS,GAAG,IAAI,SAAS,CAAC,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/D,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ"}
@@ -1,5 +0,0 @@
1
- import { JexlEngineProvider } from './expression-protocol.js';
2
- export declare class JexlEngineProviderImpl implements JexlEngineProvider<any> {
3
- protected jexlEngine: any;
4
- provide(): any;
5
- }
@@ -1,22 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Component } from '../annotation/index.js';
8
- import { JexlEngineProvider } from './expression-protocol.js';
9
- import { Jexl } from 'jexl';
10
- let JexlEngineProviderImpl = class JexlEngineProviderImpl {
11
- provide() {
12
- if (!this.jexlEngine) {
13
- this.jexlEngine = new Jexl();
14
- }
15
- return this.jexlEngine;
16
- }
17
- };
18
- JexlEngineProviderImpl = __decorate([
19
- Component(JexlEngineProvider)
20
- ], JexlEngineProviderImpl);
21
- export { JexlEngineProviderImpl };
22
- //# sourceMappingURL=jexl-engine-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jexl-engine-provider.js","sourceRoot":"","sources":["../../../src/common/el/jexl-engine-provider.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGrB,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAI/B,OAAO;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,IAAI,IAAI,EAAE,CAAC;QACjC,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CAEJ,CAAA;AAZY,sBAAsB;IADlC,SAAS,CAAC,kBAAkB,CAAC;GACjB,sBAAsB,CAYlC"}
@@ -1,6 +0,0 @@
1
- import { ComponentId } from '../annotation/component.js';
2
- import { Provider, ProviderCreator } from './provider-protocol.js';
3
- import { Container } from '../container/index.js';
4
- export declare class ProviderCreatorImpl<T extends Object> implements ProviderCreator<T> {
5
- create(id: ComponentId, container: Container): Provider<T>;
6
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-creator.js","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,SAAS,EAAe,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAY,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,MAAM,CAAC,EAAe,EAAE,SAAoB;QACxC,OAAO,IAAI,sBAAsB,CAAC,EAAE,EAAE,SAAS,CAAgB,CAAC;IACpE,CAAC;CACJ,CAAA;AAJY,mBAAmB;IAD/B,SAAS,CAAC,eAAe,CAAC;GACd,mBAAmB,CAI/B"}
@@ -1,2 +0,0 @@
1
- export { decorate } from 'inversify';
2
- //# sourceMappingURL=decorate.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorate.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/decorate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.decorate = void 0;
4
- var inversify_1 = require("inversify");
5
- Object.defineProperty(exports, "decorate", { enumerable: true, get: function () { return inversify_1.decorate; } });
6
- //# sourceMappingURL=decorate.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"decorate.js","sourceRoot":"","sources":["../../../src/common/annotation/decorate.ts"],"names":[],"mappings":";;;AAAA,uCAAqC;AAA5B,qGAAA,QAAQ,OAAA"}
@@ -1,2 +0,0 @@
1
- export { inject as Inject } from 'inversify';
2
- //# sourceMappingURL=inject.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inject.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/inject.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,MAAM,EAAE,MAAM,WAAW,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Inject = void 0;
4
- var inversify_1 = require("inversify");
5
- Object.defineProperty(exports, "Inject", { enumerable: true, get: function () { return inversify_1.inject; } });
6
- //# sourceMappingURL=inject.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inject.js","sourceRoot":"","sources":["../../../src/common/annotation/inject.ts"],"names":[],"mappings":";;;AAAA,uCAA6C;AAApC,mGAAA,MAAM,OAAU"}
@@ -1,2 +0,0 @@
1
- export { injectable as Injectable } from 'inversify';
2
- //# sourceMappingURL=injectable.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"injectable.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/injectable.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Injectable = void 0;
4
- var inversify_1 = require("inversify");
5
- Object.defineProperty(exports, "Injectable", { enumerable: true, get: function () { return inversify_1.injectable; } });
6
- //# sourceMappingURL=injectable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"injectable.js","sourceRoot":"","sources":["../../../src/common/annotation/injectable.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAA5C,uGAAA,UAAU,OAAc"}
@@ -1,2 +0,0 @@
1
- export { preDestroy as PreDestroy } from 'inversify';
2
- //# sourceMappingURL=pre-destroy.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pre-destroy.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/pre-destroy.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PreDestroy = void 0;
4
- var inversify_1 = require("inversify");
5
- Object.defineProperty(exports, "PreDestroy", { enumerable: true, get: function () { return inversify_1.preDestroy; } });
6
- //# sourceMappingURL=pre-destroy.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pre-destroy.js","sourceRoot":"","sources":["../../../src/common/annotation/pre-destroy.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAA5C,uGAAA,UAAU,OAAc"}
@@ -1,2 +0,0 @@
1
- export { targetName as TargetName } from 'inversify';
2
- //# sourceMappingURL=target-name.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"target-name.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/target-name.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,IAAI,UAAU,EAAE,MAAM,WAAW,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TargetName = void 0;
4
- var inversify_1 = require("inversify");
5
- Object.defineProperty(exports, "TargetName", { enumerable: true, get: function () { return inversify_1.targetName; } });
6
- //# sourceMappingURL=target-name.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"target-name.js","sourceRoot":"","sources":["../../../src/common/annotation/target-name.ts"],"names":[],"mappings":";;;AAAA,uCAAqD;AAA5C,uGAAA,UAAU,OAAc"}
@@ -1,2 +0,0 @@
1
- export { unmanaged as Unmanaged } from 'inversify';
2
- //# sourceMappingURL=unmanaged.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unmanaged.d.ts","sourceRoot":"","sources":["../../../src/common/annotation/unmanaged.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,MAAM,WAAW,CAAC"}
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Unmanaged = void 0;
4
- var inversify_1 = require("inversify");
5
- Object.defineProperty(exports, "Unmanaged", { enumerable: true, get: function () { return inversify_1.unmanaged; } });
6
- //# sourceMappingURL=unmanaged.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unmanaged.js","sourceRoot":"","sources":["../../../src/common/annotation/unmanaged.ts"],"names":[],"mappings":";;;AAAA,uCAAmD;AAA1C,sGAAA,SAAS,OAAa"}
@@ -1,5 +0,0 @@
1
- import { ContainerModule, interfaces } from 'inversify';
2
- export declare class ContainerFactory {
3
- static create(...modules: ContainerModule[]): interfaces.Container;
4
- }
5
- //# sourceMappingURL=container-factory.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container-factory.d.ts","sourceRoot":"","sources":["../../../src/common/container/container-factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEnE,qBAAa,gBAAgB;IACzB,MAAM,CAAC,MAAM,CAAC,GAAG,OAAO,EAAE,eAAe,EAAE,GAAG,UAAU,CAAC,SAAS,CAIjE;CACJ"}
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContainerFactory = void 0;
4
- const inversify_1 = require("inversify");
5
- class ContainerFactory {
6
- static create(...modules) {
7
- const container = new inversify_1.Container({ skipBaseClassChecks: true });
8
- container.load(...modules);
9
- return container;
10
- }
11
- }
12
- exports.ContainerFactory = ContainerFactory;
13
- //# sourceMappingURL=container-factory.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"container-factory.js","sourceRoot":"","sources":["../../../src/common/container/container-factory.ts"],"names":[],"mappings":";;;AAAA,yCAAmE;AAEnE;IACI,MAAM,CAAC,MAAM,CAAC,GAAG,OAA0B;QACvC,MAAM,SAAS,GAAG,IAAI,qBAAS,CAAC,EAAE,mBAAmB,EAAE,IAAI,EAAE,CAAC,CAAC;QAC/D,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;QAC3B,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ"}
@@ -1,6 +0,0 @@
1
- import { JexlEngineProvider } from './expression-protocol';
2
- export declare class JexlEngineProviderImpl implements JexlEngineProvider<any> {
3
- protected jexlEngine: any;
4
- provide(): any;
5
- }
6
- //# sourceMappingURL=jexl-engine-provider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jexl-engine-provider.d.ts","sourceRoot":"","sources":["../../../src/common/el/jexl-engine-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAG3D,qBACa,sBAAuB,YAAW,kBAAkB,CAAC,GAAG,CAAC;IAElE,SAAS,CAAC,UAAU,EAAE,GAAG,CAAC;IAE1B,OAAO,IAAI,GAAG,CAMb;CAEJ"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.JexlEngineProviderImpl = void 0;
10
- const annotation_1 = require("../annotation");
11
- const expression_protocol_1 = require("./expression-protocol");
12
- const jexl_1 = require("jexl");
13
- let JexlEngineProviderImpl = class JexlEngineProviderImpl {
14
- provide() {
15
- if (!this.jexlEngine) {
16
- this.jexlEngine = new jexl_1.Jexl();
17
- }
18
- return this.jexlEngine;
19
- }
20
- };
21
- exports.JexlEngineProviderImpl = JexlEngineProviderImpl;
22
- exports.JexlEngineProviderImpl = JexlEngineProviderImpl = __decorate([
23
- (0, annotation_1.Component)(expression_protocol_1.JexlEngineProvider)
24
- ], JexlEngineProviderImpl);
25
- //# sourceMappingURL=jexl-engine-provider.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jexl-engine-provider.js","sourceRoot":"","sources":["../../../src/common/el/jexl-engine-provider.ts"],"names":[],"mappings":";;;;;;;;;AAAA,8CAA0C;AAC1C,+DAA2D;AAC3D,+BAA4B;AAGrB,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IAI/B,OAAO;QAEH,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;YACnB,IAAI,CAAC,UAAU,GAAG,IAAI,WAAI,EAAE,CAAC;QACjC,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CAEJ,CAAA;;iCAZY,sBAAsB;IADlC,IAAA,sBAAS,EAAC,wCAAkB,CAAC;GACjB,sBAAsB,CAYlC"}
@@ -1,7 +0,0 @@
1
- import { ComponentId } from '../annotation/component';
2
- import { Provider, ProviderCreator } from './provider-protocol';
3
- import { Container } from '../container';
4
- export declare class ProviderCreatorImpl<T extends Object> implements ProviderCreator<T> {
5
- create(id: ComponentId, container: Container): Provider<T>;
6
- }
7
- //# sourceMappingURL=provider-creator.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-creator.d.ts","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAGzC,qBACa,mBAAmB,CAAC,CAAC,SAAS,MAAM,CAAE,YAAW,eAAe,CAAC,CAAC,CAAC;IAC5E,MAAM,CAAC,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,GAAG,QAAQ,CAAC,CAAC,CAAC,CAEzD;CACJ"}
@@ -1,22 +0,0 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.ProviderCreatorImpl = void 0;
10
- const component_1 = require("../annotation/component");
11
- const provider_protocol_1 = require("./provider-protocol");
12
- const provider_1 = require("./provider");
13
- let ProviderCreatorImpl = class ProviderCreatorImpl {
14
- create(id, container) {
15
- return new provider_1.ContainerBasedProvider(id, container);
16
- }
17
- };
18
- exports.ProviderCreatorImpl = ProviderCreatorImpl;
19
- exports.ProviderCreatorImpl = ProviderCreatorImpl = __decorate([
20
- (0, component_1.Component)(provider_protocol_1.ProviderCreator)
21
- ], ProviderCreatorImpl);
22
- //# sourceMappingURL=provider-creator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"provider-creator.js","sourceRoot":"","sources":["../../../src/common/provider/provider-creator.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uDAAiE;AACjE,2DAAgE;AAEhE,yCAAoD;AAG7C,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC5B,MAAM,CAAC,EAAe,EAAE,SAAoB;QACxC,OAAO,IAAI,iCAAsB,CAAC,EAAE,EAAE,SAAS,CAAgB,CAAC;IACpE,CAAC;CACJ,CAAA;;8BAJY,mBAAmB;IAD/B,IAAA,qBAAS,EAAC,mCAAe,CAAC;GACd,mBAAmB,CAI/B"}
@@ -1 +0,0 @@
1
- export { decorate } from 'inversify';
@@ -1 +0,0 @@
1
- export { inject as Inject } from 'inversify';
@@ -1 +0,0 @@
1
- export { injectable as Injectable } from 'inversify';
@@ -1 +0,0 @@
1
- export { preDestroy as PreDestroy } from 'inversify';
@@ -1 +0,0 @@
1
- export { targetName as TargetName } from 'inversify';
@@ -1 +0,0 @@
1
- export { unmanaged as Unmanaged } from 'inversify';
@@ -1,9 +0,0 @@
1
- import { Container, ContainerModule, interfaces } from 'inversify';
2
-
3
- export class ContainerFactory {
4
- static create(...modules: ContainerModule[]): interfaces.Container {
5
- const container = new Container({ skipBaseClassChecks: true });
6
- container.load(...modules);
7
- return container;
8
- }
9
- }