@celljs/core 3.7.8 → 3.9.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 (479) hide show
  1. package/esm/browser/application/frontend-application-state.d.ts +4 -0
  2. package/esm/browser/application/frontend-application-state.js +14 -0
  3. package/esm/browser/application/frontend-application-state.js.map +1 -0
  4. package/esm/browser/application/frontend-application.d.ts +30 -0
  5. package/esm/browser/application/frontend-application.js +142 -0
  6. package/esm/browser/application/frontend-application.js.map +1 -0
  7. package/esm/browser/application/index.d.ts +2 -0
  8. package/esm/browser/application/index.js +3 -0
  9. package/esm/browser/application/index.js.map +1 -0
  10. package/esm/browser/browser.d.ts +22 -0
  11. package/esm/browser/browser.js +48 -0
  12. package/esm/browser/browser.js.map +1 -0
  13. package/esm/browser/index.d.ts +3 -0
  14. package/esm/browser/index.js +4 -0
  15. package/esm/browser/index.js.map +1 -0
  16. package/esm/browser/shell/application-shell.d.ts +4 -0
  17. package/esm/browser/shell/application-shell.js +18 -0
  18. package/esm/browser/shell/application-shell.js.map +1 -0
  19. package/esm/browser/shell/index.d.ts +2 -0
  20. package/esm/browser/shell/index.js +3 -0
  21. package/esm/browser/shell/index.js.map +1 -0
  22. package/esm/browser/shell/shell-protocol.d.ts +4 -0
  23. package/esm/browser/shell/shell-protocol.js +2 -0
  24. package/esm/browser/shell/shell-protocol.js.map +1 -0
  25. package/esm/browser/static-module.d.ts +3 -0
  26. package/esm/browser/static-module.js +4 -0
  27. package/esm/browser/static-module.js.map +1 -0
  28. package/esm/common/annotation/aspect.d.ts +7 -0
  29. package/esm/common/annotation/aspect.js +10 -0
  30. package/esm/common/annotation/aspect.js.map +1 -0
  31. package/esm/common/annotation/autowired-provider.d.ts +7 -0
  32. package/esm/common/annotation/autowired-provider.js +25 -0
  33. package/esm/common/annotation/autowired-provider.js.map +1 -0
  34. package/esm/common/annotation/autowired.d.ts +22 -0
  35. package/esm/common/annotation/autowired.js +48 -0
  36. package/esm/common/annotation/autowired.js.map +1 -0
  37. package/esm/common/annotation/component.d.ts +57 -0
  38. package/esm/common/annotation/component.js +71 -0
  39. package/esm/common/annotation/component.js.map +1 -0
  40. package/esm/common/annotation/constant.d.ts +8 -0
  41. package/esm/common/annotation/constant.js +12 -0
  42. package/esm/common/annotation/constant.js.map +1 -0
  43. package/esm/common/annotation/decorate.d.ts +1 -0
  44. package/esm/common/annotation/decorate.js +2 -0
  45. package/esm/common/annotation/decorate.js.map +1 -0
  46. package/esm/common/annotation/detached/autowired-provider.d.ts +2 -0
  47. package/esm/common/annotation/detached/autowired-provider.js +12 -0
  48. package/esm/common/annotation/detached/autowired-provider.js.map +1 -0
  49. package/esm/common/annotation/detached/autowired.d.ts +2 -0
  50. package/esm/common/annotation/detached/autowired.js +9 -0
  51. package/esm/common/annotation/detached/autowired.js.map +1 -0
  52. package/esm/common/annotation/detached/index.d.ts +3 -0
  53. package/esm/common/annotation/detached/index.js +4 -0
  54. package/esm/common/annotation/detached/index.js.map +1 -0
  55. package/esm/common/annotation/detached/value.d.ts +2 -0
  56. package/esm/common/annotation/detached/value.js +9 -0
  57. package/esm/common/annotation/detached/value.js.map +1 -0
  58. package/esm/common/annotation/index.d.ts +17 -0
  59. package/esm/common/annotation/index.js +18 -0
  60. package/esm/common/annotation/index.js.map +1 -0
  61. package/esm/common/annotation/inject.d.ts +1 -0
  62. package/esm/common/annotation/inject.js +2 -0
  63. package/esm/common/annotation/inject.js.map +1 -0
  64. package/esm/common/annotation/injectable.d.ts +1 -0
  65. package/esm/common/annotation/injectable.js +2 -0
  66. package/esm/common/annotation/injectable.js.map +1 -0
  67. package/esm/common/annotation/named.d.ts +1 -0
  68. package/esm/common/annotation/named.js +2 -0
  69. package/esm/common/annotation/named.js.map +1 -0
  70. package/esm/common/annotation/optional.d.ts +1 -0
  71. package/esm/common/annotation/optional.js +2 -0
  72. package/esm/common/annotation/optional.js.map +1 -0
  73. package/esm/common/annotation/post-construct.d.ts +1 -0
  74. package/esm/common/annotation/post-construct.js +2 -0
  75. package/esm/common/annotation/post-construct.js.map +1 -0
  76. package/esm/common/annotation/pre-destroy.d.ts +1 -0
  77. package/esm/common/annotation/pre-destroy.js +2 -0
  78. package/esm/common/annotation/pre-destroy.js.map +1 -0
  79. package/esm/common/annotation/service.d.ts +4 -0
  80. package/esm/common/annotation/service.js +14 -0
  81. package/esm/common/annotation/service.js.map +1 -0
  82. package/esm/common/annotation/tagged.d.ts +1 -0
  83. package/esm/common/annotation/tagged.js +2 -0
  84. package/esm/common/annotation/tagged.js.map +1 -0
  85. package/esm/common/annotation/target-name.d.ts +1 -0
  86. package/esm/common/annotation/target-name.js +2 -0
  87. package/esm/common/annotation/target-name.js.map +1 -0
  88. package/esm/common/annotation/unmanaged.d.ts +1 -0
  89. package/esm/common/annotation/unmanaged.js +2 -0
  90. package/esm/common/annotation/unmanaged.js.map +1 -0
  91. package/esm/common/annotation/value.d.ts +15 -0
  92. package/esm/common/annotation/value.js +50 -0
  93. package/esm/common/annotation/value.js.map +1 -0
  94. package/esm/common/aop/aop-protocol.d.ts +38 -0
  95. package/esm/common/aop/aop-protocol.js +8 -0
  96. package/esm/common/aop/aop-protocol.js.map +1 -0
  97. package/esm/common/aop/aop-proxy-factory.d.ts +6 -0
  98. package/esm/common/aop/aop-proxy-factory.js +67 -0
  99. package/esm/common/aop/aop-proxy-factory.js.map +1 -0
  100. package/esm/common/aop/class-filter.d.ts +6 -0
  101. package/esm/common/aop/class-filter.js +28 -0
  102. package/esm/common/aop/class-filter.js.map +1 -0
  103. package/esm/common/aop/index.d.ts +3 -0
  104. package/esm/common/aop/index.js +4 -0
  105. package/esm/common/aop/index.js.map +1 -0
  106. package/esm/common/application/application-entry.d.ts +1 -0
  107. package/esm/common/application/application-entry.js +23 -0
  108. package/esm/common/application/application-entry.js.map +1 -0
  109. package/esm/common/application/application-error.d.ts +20 -0
  110. package/esm/common/application/application-error.js +44 -0
  111. package/esm/common/application/application-error.js.map +1 -0
  112. package/esm/common/application/application-factory.d.ts +8 -0
  113. package/esm/common/application/application-factory.js +19 -0
  114. package/esm/common/application/application-factory.js.map +1 -0
  115. package/esm/common/application/application-protocol.d.ts +52 -0
  116. package/esm/common/application/application-protocol.js +103 -0
  117. package/esm/common/application/application-protocol.js.map +1 -0
  118. package/esm/common/application/application-state.d.ts +3 -0
  119. package/esm/common/application/application-state.js +15 -0
  120. package/esm/common/application/application-state.js.map +1 -0
  121. package/esm/common/application/application.d.ts +6 -0
  122. package/esm/common/application/application.js +31 -0
  123. package/esm/common/application/application.js.map +1 -0
  124. package/esm/common/application/index.d.ts +2 -0
  125. package/esm/common/application/index.js +3 -0
  126. package/esm/common/application/index.js.map +1 -0
  127. package/esm/common/config/config-protocol.d.ts +4 -0
  128. package/esm/common/config/config-protocol.js +2 -0
  129. package/esm/common/config/config-protocol.js.map +1 -0
  130. package/esm/common/config/config-provider.d.ts +6 -0
  131. package/esm/common/config/config-provider.js +26 -0
  132. package/esm/common/config/config-provider.js.map +1 -0
  133. package/esm/common/config/config-util.d.ts +4 -0
  134. package/esm/common/config/config-util.js +16 -0
  135. package/esm/common/config/config-util.js.map +1 -0
  136. package/esm/common/config/dynamic-config.d.ts +3 -0
  137. package/esm/common/config/dynamic-config.js +3 -0
  138. package/esm/common/config/dynamic-config.js.map +1 -0
  139. package/esm/common/config/index.d.ts +3 -0
  140. package/esm/common/config/index.js +4 -0
  141. package/esm/common/config/index.js.map +1 -0
  142. package/esm/common/constants.d.ts +5 -0
  143. package/esm/common/constants.js +6 -0
  144. package/esm/common/constants.js.map +1 -0
  145. package/esm/common/container/auto-bind.d.ts +3 -0
  146. package/esm/common/container/auto-bind.js +98 -0
  147. package/esm/common/container/auto-bind.js.map +1 -0
  148. package/esm/common/container/container-factory.d.ts +4 -0
  149. package/esm/common/container/container-factory.js +9 -0
  150. package/esm/common/container/container-factory.js.map +1 -0
  151. package/esm/common/container/container-provider.d.ts +6 -0
  152. package/esm/common/container/container-provider.js +23 -0
  153. package/esm/common/container/container-provider.js.map +1 -0
  154. package/esm/common/container/container-util.d.ts +9 -0
  155. package/esm/common/container/container-util.js +29 -0
  156. package/esm/common/container/container-util.js.map +1 -0
  157. package/esm/common/container/dynamic-container.d.ts +2 -0
  158. package/esm/common/container/dynamic-container.js +4 -0
  159. package/esm/common/container/dynamic-container.js.map +1 -0
  160. package/esm/common/container/index.d.ts +8 -0
  161. package/esm/common/container/index.js +6 -0
  162. package/esm/common/container/index.js.map +1 -0
  163. package/esm/common/container/scope.d.ts +5 -0
  164. package/esm/common/container/scope.js +7 -0
  165. package/esm/common/container/scope.js.map +1 -0
  166. package/esm/common/el/core-context-initializer.d.ts +6 -0
  167. package/esm/common/el/core-context-initializer.js +36 -0
  168. package/esm/common/el/core-context-initializer.js.map +1 -0
  169. package/esm/common/el/expression-compiler.d.ts +19 -0
  170. package/esm/common/el/expression-compiler.js +187 -0
  171. package/esm/common/el/expression-compiler.js.map +1 -0
  172. package/esm/common/el/expression-context-provider.d.ts +9 -0
  173. package/esm/common/el/expression-context-provider.js +43 -0
  174. package/esm/common/el/expression-context-provider.js.map +1 -0
  175. package/esm/common/el/expression-handler.d.ts +11 -0
  176. package/esm/common/el/expression-handler.js +95 -0
  177. package/esm/common/el/expression-handler.js.map +1 -0
  178. package/esm/common/el/expression-protocol.d.ts +32 -0
  179. package/esm/common/el/expression-protocol.js +6 -0
  180. package/esm/common/el/expression-protocol.js.map +1 -0
  181. package/esm/common/el/index.d.ts +6 -0
  182. package/esm/common/el/index.js +7 -0
  183. package/esm/common/el/index.js.map +1 -0
  184. package/esm/common/el/jexl-engine-provider.d.ts +5 -0
  185. package/esm/common/el/jexl-engine-provider.js +22 -0
  186. package/esm/common/el/jexl-engine-provider.js.map +1 -0
  187. package/esm/common/error/custom-error.d.ts +26 -0
  188. package/esm/common/error/custom-error.js +40 -0
  189. package/esm/common/error/custom-error.js.map +1 -0
  190. package/esm/common/error/error-protocol.d.ts +3 -0
  191. package/esm/common/error/error-protocol.js +2 -0
  192. package/esm/common/error/error-protocol.js.map +1 -0
  193. package/esm/common/error/illegal-argument-error.d.ts +3 -0
  194. package/esm/common/error/illegal-argument-error.js +4 -0
  195. package/esm/common/error/illegal-argument-error.js.map +1 -0
  196. package/esm/common/error/illegal-state-error.d.ts +3 -0
  197. package/esm/common/error/illegal-state-error.js +4 -0
  198. package/esm/common/error/illegal-state-error.js.map +1 -0
  199. package/esm/common/error/index.d.ts +5 -0
  200. package/esm/common/error/index.js +6 -0
  201. package/esm/common/error/index.js.map +1 -0
  202. package/esm/common/error/invalid-mime-type-error.d.ts +5 -0
  203. package/esm/common/error/invalid-mime-type-error.js +8 -0
  204. package/esm/common/error/invalid-mime-type-error.js.map +1 -0
  205. package/esm/common/index.d.ts +12 -0
  206. package/esm/common/index.js +13 -0
  207. package/esm/common/index.js.map +1 -0
  208. package/esm/common/logger/abstract-logger.d.ts +18 -0
  209. package/esm/common/logger/abstract-logger.js +69 -0
  210. package/esm/common/logger/abstract-logger.js.map +1 -0
  211. package/esm/common/logger/index.d.ts +4 -0
  212. package/esm/common/logger/index.js +5 -0
  213. package/esm/common/logger/index.js.map +1 -0
  214. package/esm/common/logger/logger-protocol.d.ts +30 -0
  215. package/esm/common/logger/logger-protocol.js +8 -0
  216. package/esm/common/logger/logger-protocol.js.map +1 -0
  217. package/esm/common/logger/logger-service.d.ts +4 -0
  218. package/esm/common/logger/logger-service.js +18 -0
  219. package/esm/common/logger/logger-service.js.map +1 -0
  220. package/esm/common/logger/logger.d.ts +7 -0
  221. package/esm/common/logger/logger.js +35 -0
  222. package/esm/common/logger/logger.js.map +1 -0
  223. package/esm/common/provider/component-filter-registry.d.ts +11 -0
  224. package/esm/common/provider/component-filter-registry.js +66 -0
  225. package/esm/common/provider/component-filter-registry.js.map +1 -0
  226. package/esm/common/provider/index.d.ts +5 -0
  227. package/esm/common/provider/index.js +6 -0
  228. package/esm/common/provider/index.js.map +1 -0
  229. package/esm/common/provider/provider-creator.d.ts +6 -0
  230. package/esm/common/provider/provider-creator.js +19 -0
  231. package/esm/common/provider/provider-creator.js.map +1 -0
  232. package/esm/common/provider/provider-protocol.d.ts +48 -0
  233. package/esm/common/provider/provider-protocol.js +5 -0
  234. package/esm/common/provider/provider-protocol.js.map +1 -0
  235. package/esm/common/provider/provider-util.d.ts +5 -0
  236. package/esm/common/provider/provider-util.js +10 -0
  237. package/esm/common/provider/provider-util.js.map +1 -0
  238. package/esm/common/provider/provider.d.ts +13 -0
  239. package/esm/common/provider/provider.js +54 -0
  240. package/esm/common/provider/provider.js.map +1 -0
  241. package/esm/common/static-module.d.ts +3 -0
  242. package/esm/common/static-module.js +9 -0
  243. package/esm/common/static-module.js.map +1 -0
  244. package/esm/common/test/index.d.ts +1 -0
  245. package/esm/common/test/index.js +2 -0
  246. package/esm/common/test/index.js.map +1 -0
  247. package/esm/common/test/mock-logger.d.ts +14 -0
  248. package/esm/common/test/mock-logger.js +41 -0
  249. package/esm/common/test/mock-logger.js.map +1 -0
  250. package/esm/common/test/test-module.d.ts +2 -0
  251. package/esm/common/test/test-module.js +12 -0
  252. package/esm/common/test/test-module.js.map +1 -0
  253. package/esm/common/utils/annotation-util.d.ts +4 -0
  254. package/esm/common/utils/annotation-util.js +24 -0
  255. package/esm/common/utils/annotation-util.js.map +1 -0
  256. package/esm/common/utils/assert.d.ts +173 -0
  257. package/esm/common/utils/assert.js +283 -0
  258. package/esm/common/utils/assert.js.map +1 -0
  259. package/esm/common/utils/async.d.ts +367 -0
  260. package/esm/common/utils/async.js +935 -0
  261. package/esm/common/utils/async.js.map +1 -0
  262. package/esm/common/utils/byte-util.d.ts +11 -0
  263. package/esm/common/utils/byte-util.js +75 -0
  264. package/esm/common/utils/byte-util.js.map +1 -0
  265. package/esm/common/utils/cancellation.d.ts +21 -0
  266. package/esm/common/utils/cancellation.js +89 -0
  267. package/esm/common/utils/cancellation.js.map +1 -0
  268. package/esm/common/utils/class-util.d.ts +2 -0
  269. package/esm/common/utils/class-util.js +19 -0
  270. package/esm/common/utils/class-util.js.map +1 -0
  271. package/esm/common/utils/disposable.d.ts +29 -0
  272. package/esm/common/utils/disposable.js +78 -0
  273. package/esm/common/utils/disposable.js.map +1 -0
  274. package/esm/common/utils/emitter.d.ts +63 -0
  275. package/esm/common/utils/emitter.js +221 -0
  276. package/esm/common/utils/emitter.js.map +1 -0
  277. package/esm/common/utils/error-util.d.ts +19 -0
  278. package/esm/common/utils/error-util.js +35 -0
  279. package/esm/common/utils/error-util.js.map +1 -0
  280. package/esm/common/utils/event.d.ts +40 -0
  281. package/esm/common/utils/event.js +90 -0
  282. package/esm/common/utils/event.js.map +1 -0
  283. package/esm/common/utils/global-util.d.ts +1 -0
  284. package/esm/common/utils/global-util.js +16 -0
  285. package/esm/common/utils/global-util.js.map +1 -0
  286. package/esm/common/utils/index.d.ts +21 -0
  287. package/esm/common/utils/index.js +22 -0
  288. package/esm/common/utils/index.js.map +1 -0
  289. package/esm/common/utils/metadata-util.d.ts +1 -0
  290. package/esm/common/utils/metadata-util.js +25 -0
  291. package/esm/common/utils/metadata-util.js.map +1 -0
  292. package/esm/common/utils/mime-type-util.d.ts +36 -0
  293. package/esm/common/utils/mime-type-util.js +168 -0
  294. package/esm/common/utils/mime-type-util.js.map +1 -0
  295. package/esm/common/utils/mime-type.d.ts +36 -0
  296. package/esm/common/utils/mime-type.js +284 -0
  297. package/esm/common/utils/mime-type.js.map +1 -0
  298. package/esm/common/utils/os.d.ts +19 -0
  299. package/esm/common/utils/os.js +46 -0
  300. package/esm/common/utils/os.js.map +1 -0
  301. package/esm/common/utils/prioritizeable.d.ts +17 -0
  302. package/esm/common/utils/prioritizeable.js +38 -0
  303. package/esm/common/utils/prioritizeable.js.map +1 -0
  304. package/esm/common/utils/promise-util.d.ts +5 -0
  305. package/esm/common/utils/promise-util.js +9 -0
  306. package/esm/common/utils/promise-util.js.map +1 -0
  307. package/esm/common/utils/proxy-util.d.ts +4 -0
  308. package/esm/common/utils/proxy-util.js +34 -0
  309. package/esm/common/utils/proxy-util.js.map +1 -0
  310. package/esm/common/utils/types.d.ts +16 -0
  311. package/esm/common/utils/types.js +2 -0
  312. package/esm/common/utils/types.js.map +1 -0
  313. package/esm/common/utils/url-util.d.ts +3 -0
  314. package/esm/common/utils/url-util.js +56 -0
  315. package/esm/common/utils/url-util.js.map +1 -0
  316. package/esm/common/utils/uuid.d.ts +2 -0
  317. package/esm/common/utils/uuid.js +61 -0
  318. package/esm/common/utils/uuid.js.map +1 -0
  319. package/esm/node/application/backend-application-state.d.ts +4 -0
  320. package/esm/node/application/backend-application-state.js +14 -0
  321. package/esm/node/application/backend-application-state.js.map +1 -0
  322. package/esm/node/application/backend-application.d.ts +10 -0
  323. package/esm/node/application/backend-application.js +52 -0
  324. package/esm/node/application/backend-application.js.map +1 -0
  325. package/esm/node/application/index.d.ts +2 -0
  326. package/esm/node/application/index.js +3 -0
  327. package/esm/node/application/index.js.map +1 -0
  328. package/esm/node/constants.d.ts +15 -0
  329. package/esm/node/constants.js +16 -0
  330. package/esm/node/constants.js.map +1 -0
  331. package/esm/node/context/context.d.ts +15 -0
  332. package/esm/node/context/context.js +58 -0
  333. package/esm/node/context/context.js.map +1 -0
  334. package/esm/node/context/index.d.ts +1 -0
  335. package/esm/node/context/index.js +2 -0
  336. package/esm/node/context/index.js.map +1 -0
  337. package/esm/node/index.d.ts +3 -0
  338. package/esm/node/index.js +4 -0
  339. package/esm/node/index.js.map +1 -0
  340. package/esm/node/static-module.d.ts +3 -0
  341. package/esm/node/static-module.js +4 -0
  342. package/esm/node/static-module.js.map +1 -0
  343. package/esm/node/utils/crc.d.ts +1 -0
  344. package/esm/node/utils/crc.js +7 -0
  345. package/esm/node/utils/crc.js.map +1 -0
  346. package/esm/node/utils/index.d.ts +1 -0
  347. package/esm/node/utils/index.js +2 -0
  348. package/esm/node/utils/index.js.map +1 -0
  349. package/esm/package.json +3 -0
  350. package/lib/browser/application/frontend-application-state.js.map +1 -1
  351. package/lib/browser/application/frontend-application.d.ts.map +1 -1
  352. package/lib/browser/application/frontend-application.js.map +1 -1
  353. package/lib/browser/browser.js.map +1 -1
  354. package/lib/browser/shell/application-shell.d.ts.map +1 -1
  355. package/lib/browser/shell/application-shell.js.map +1 -1
  356. package/lib/browser/static-module.d.ts.map +1 -1
  357. package/lib/browser/static-module.js.map +1 -1
  358. package/lib/common/annotation/aspect.d.ts.map +1 -1
  359. package/lib/common/annotation/aspect.js.map +1 -1
  360. package/lib/common/annotation/autowired-provider.d.ts.map +1 -1
  361. package/lib/common/annotation/autowired-provider.js.map +1 -1
  362. package/lib/common/annotation/autowired.d.ts.map +1 -1
  363. package/lib/common/annotation/autowired.js.map +1 -1
  364. package/lib/common/annotation/component.js.map +1 -1
  365. package/lib/common/annotation/constant.d.ts.map +1 -1
  366. package/lib/common/annotation/constant.js.map +1 -1
  367. package/lib/common/annotation/detached/autowired-provider.d.ts.map +1 -1
  368. package/lib/common/annotation/detached/autowired-provider.js.map +1 -1
  369. package/lib/common/annotation/detached/autowired.d.ts.map +1 -1
  370. package/lib/common/annotation/detached/autowired.js.map +1 -1
  371. package/lib/common/annotation/detached/value.d.ts.map +1 -1
  372. package/lib/common/annotation/detached/value.js.map +1 -1
  373. package/lib/common/annotation/service.js.map +1 -1
  374. package/lib/common/annotation/value.d.ts.map +1 -1
  375. package/lib/common/annotation/value.js.map +1 -1
  376. package/lib/common/aop/aop-proxy-factory.d.ts.map +1 -1
  377. package/lib/common/aop/aop-proxy-factory.js.map +1 -1
  378. package/lib/common/aop/class-filter.d.ts.map +1 -1
  379. package/lib/common/aop/class-filter.js.map +1 -1
  380. package/lib/common/application/application-error.js.map +1 -1
  381. package/lib/common/application/application-factory.d.ts +1 -0
  382. package/lib/common/application/application-factory.d.ts.map +1 -1
  383. package/lib/common/application/application-factory.js +5 -2
  384. package/lib/common/application/application-factory.js.map +1 -1
  385. package/lib/common/application/application-protocol.d.ts.map +1 -1
  386. package/lib/common/application/application-protocol.js.map +1 -1
  387. package/lib/common/application/application-state.js.map +1 -1
  388. package/lib/common/application/application.d.ts.map +1 -1
  389. package/lib/common/application/application.js.map +1 -1
  390. package/lib/common/config/config-provider.d.ts.map +1 -1
  391. package/lib/common/config/config-provider.js.map +1 -1
  392. package/lib/common/config/config-util.js.map +1 -1
  393. package/lib/common/constants.d.ts.map +1 -1
  394. package/lib/common/container/auto-bind.js.map +1 -1
  395. package/lib/common/container/container-factory.d.ts.map +1 -1
  396. package/lib/common/container/container-factory.js.map +1 -1
  397. package/lib/common/container/container-provider.js.map +1 -1
  398. package/lib/common/container/container-util.js.map +1 -1
  399. package/lib/common/container/scope.js.map +1 -1
  400. package/lib/common/el/core-context-initializer.d.ts.map +1 -1
  401. package/lib/common/el/core-context-initializer.js.map +1 -1
  402. package/lib/common/el/expression-compiler.d.ts.map +1 -1
  403. package/lib/common/el/expression-compiler.js.map +1 -1
  404. package/lib/common/el/expression-context-provider.d.ts.map +1 -1
  405. package/lib/common/el/expression-context-provider.js.map +1 -1
  406. package/lib/common/el/expression-handler.d.ts.map +1 -1
  407. package/lib/common/el/expression-handler.js +5 -2
  408. package/lib/common/el/expression-handler.js.map +1 -1
  409. package/lib/common/el/jexl-engine-provider.d.ts.map +1 -1
  410. package/lib/common/el/jexl-engine-provider.js.map +1 -1
  411. package/lib/common/error/custom-error.d.ts.map +1 -1
  412. package/lib/common/error/custom-error.js.map +1 -1
  413. package/lib/common/error/illegal-argument-error.js.map +1 -1
  414. package/lib/common/error/illegal-state-error.js.map +1 -1
  415. package/lib/common/error/invalid-mime-type-error.d.ts.map +1 -1
  416. package/lib/common/error/invalid-mime-type-error.js.map +1 -1
  417. package/lib/common/logger/abstract-logger.d.ts.map +1 -1
  418. package/lib/common/logger/abstract-logger.js.map +1 -1
  419. package/lib/common/logger/logger-protocol.js.map +1 -1
  420. package/lib/common/logger/logger-service.js.map +1 -1
  421. package/lib/common/logger/logger.d.ts.map +1 -1
  422. package/lib/common/logger/logger.js.map +1 -1
  423. package/lib/common/provider/component-filter-registry.d.ts.map +1 -1
  424. package/lib/common/provider/component-filter-registry.js.map +1 -1
  425. package/lib/common/provider/provider-creator.d.ts.map +1 -1
  426. package/lib/common/provider/provider-creator.js.map +1 -1
  427. package/lib/common/provider/provider-util.js.map +1 -1
  428. package/lib/common/provider/provider.d.ts.map +1 -1
  429. package/lib/common/provider/provider.js.map +1 -1
  430. package/lib/common/static-module.d.ts.map +1 -1
  431. package/lib/common/static-module.js.map +1 -1
  432. package/lib/common/test/mock-logger.d.ts.map +1 -1
  433. package/lib/common/test/mock-logger.js.map +1 -1
  434. package/lib/common/utils/annotation-util.js.map +1 -1
  435. package/lib/common/utils/assert.d.ts.map +1 -1
  436. package/lib/common/utils/assert.js.map +1 -1
  437. package/lib/common/utils/async.d.ts.map +1 -1
  438. package/lib/common/utils/async.js.map +1 -1
  439. package/lib/common/utils/byte-util.d.ts.map +1 -1
  440. package/lib/common/utils/byte-util.js.map +1 -1
  441. package/lib/common/utils/cancellation.d.ts.map +1 -1
  442. package/lib/common/utils/cancellation.js.map +1 -1
  443. package/lib/common/utils/class-util.js.map +1 -1
  444. package/lib/common/utils/disposable.d.ts.map +1 -1
  445. package/lib/common/utils/disposable.js.map +1 -1
  446. package/lib/common/utils/emitter.d.ts.map +1 -1
  447. package/lib/common/utils/emitter.js.map +1 -1
  448. package/lib/common/utils/error-util.d.ts.map +1 -1
  449. package/lib/common/utils/error-util.js.map +1 -1
  450. package/lib/common/utils/event.d.ts.map +1 -1
  451. package/lib/common/utils/event.js.map +1 -1
  452. package/lib/common/utils/metadata-util.js.map +1 -1
  453. package/lib/common/utils/mime-type-util.d.ts.map +1 -1
  454. package/lib/common/utils/mime-type-util.js.map +1 -1
  455. package/lib/common/utils/mime-type.d.ts.map +1 -1
  456. package/lib/common/utils/mime-type.js.map +1 -1
  457. package/lib/common/utils/os.js.map +1 -1
  458. package/lib/common/utils/prioritizeable.js.map +1 -1
  459. package/lib/common/utils/promise-util.js.map +1 -1
  460. package/lib/common/utils/proxy-util.js.map +1 -1
  461. package/lib/common/utils/url-util.js.map +1 -1
  462. package/lib/common/utils/uuid.js.map +1 -1
  463. package/lib/node/application/backend-application-state.js.map +1 -1
  464. package/lib/node/application/backend-application.d.ts.map +1 -1
  465. package/lib/node/application/backend-application.js.map +1 -1
  466. package/lib/node/constants.d.ts.map +1 -1
  467. package/lib/node/context/context.d.ts.map +1 -1
  468. package/lib/node/context/context.js.map +1 -1
  469. package/lib/node/static-module.d.ts.map +1 -1
  470. package/lib/node/static-module.js.map +1 -1
  471. package/lib/node/utils/crc.js.map +1 -1
  472. package/lib/package.spec.d.ts +1 -0
  473. package/lib/package.spec.js +5 -2
  474. package/lib/package.spec.js.map +1 -1
  475. package/package.json +126 -9
  476. package/src/common/application/application-factory.ts +1 -1
  477. package/src/common/el/expression-handler.ts +1 -1
  478. package/src/package.spec.ts +1 -0
  479. package/LICENSE +0 -21
@@ -0,0 +1,6 @@
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
+ }
@@ -0,0 +1,19 @@
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/component.js';
8
+ import { ProviderCreator } from './provider-protocol.js';
9
+ import { ContainerBasedProvider } from './provider.js';
10
+ let ProviderCreatorImpl = class ProviderCreatorImpl {
11
+ create(id, container) {
12
+ return new ContainerBasedProvider(id, container);
13
+ }
14
+ };
15
+ ProviderCreatorImpl = __decorate([
16
+ Component(ProviderCreator)
17
+ ], ProviderCreatorImpl);
18
+ export { ProviderCreatorImpl };
19
+ //# sourceMappingURL=provider-creator.js.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,48 @@
1
+ import { ComponentId } from '../annotation/component.js';
2
+ import { Container } from '../container/index.js';
3
+ import { Prioritizeable } from '../utils/prioritizeable.js';
4
+ export declare const ProviderCreator: unique symbol;
5
+ export declare const ComponentFilter: unique symbol;
6
+ export declare const ComponentFilterRegistry: unique symbol;
7
+ export declare const ComponentFilterContribution: unique symbol;
8
+ export interface Provider<T extends object> {
9
+ get(recursive?: boolean): T[];
10
+ sortSync(getPriority?: Prioritizeable.GetPrioritySync<T>, recursive?: boolean): T[];
11
+ sort(getPriority?: Prioritizeable.GetPriority<T>, recursive?: boolean): Promise<T[]>;
12
+ }
13
+ export interface ProviderCreator<T extends object> {
14
+ create(id: ComponentId, container: Container): Provider<T>;
15
+ }
16
+ /**
17
+ * @param toTest Object that should be tested
18
+ * @returns `true` if the object passes the test, `false` otherwise.
19
+ */
20
+ export type ComponentFilter<T extends Object> = (toTest: T) => boolean;
21
+ export type ComponentType = ComponentId;
22
+ export interface ComponentFilterRegistry {
23
+ /**
24
+ * Add filters to be applied for every type of component.
25
+ */
26
+ addFilters(types: '*', filters: ComponentFilter<Object>[]): void;
27
+ /**
28
+ * Given a list of component types, register filters to apply.
29
+ * @param types types for which to register the filters.
30
+ */
31
+ addFilters(types: ComponentType[], filters: ComponentFilter<Object>[]): void;
32
+ /**
33
+ * Applies the filters for the given component type. Generic filters will be applied on any given type.
34
+ * @param toFilter the elements to filter
35
+ * @param type the component type for which potentially filters were registered
36
+ * @returns the filtered elements
37
+ */
38
+ applyFilters<T extends Object>(toFilter: T[], type: ComponentType): T[];
39
+ }
40
+ /**
41
+ * Register filters to remove contributions.
42
+ */
43
+ export interface ComponentFilterContribution {
44
+ /**
45
+ * Use the registry to register your contribution filters.
46
+ */
47
+ registerContributionFilters(registry: ComponentFilterRegistry): void;
48
+ }
@@ -0,0 +1,5 @@
1
+ export const ProviderCreator = Symbol('ProviderCreator');
2
+ export const ComponentFilter = Symbol('ComponentFilter');
3
+ export const ComponentFilterRegistry = Symbol('ComponentFilterRegistry');
4
+ export const ComponentFilterContribution = Symbol('ComponentFilterContribution');
5
+ //# sourceMappingURL=provider-protocol.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-protocol.js","sourceRoot":"","sources":["../../../src/common/provider/provider-protocol.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AACzD,MAAM,CAAC,MAAM,uBAAuB,GAAG,MAAM,CAAC,yBAAyB,CAAC,CAAC;AACzE,MAAM,CAAC,MAAM,2BAA2B,GAAG,MAAM,CAAC,6BAA6B,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { ComponentId } from '../annotation/component.js';
2
+ import { Provider } from './provider-protocol.js';
3
+ export declare namespace ProviderUtil {
4
+ function get<T extends Object>(componentId: ComponentId<T>): Provider<T>;
5
+ }
@@ -0,0 +1,10 @@
1
+ import { PROVIDER, ID_KEY } from '../annotation/autowired-provider.js';
2
+ import { ContainerUtil } from '../container/index.js';
3
+ export var ProviderUtil;
4
+ (function (ProviderUtil) {
5
+ function get(componentId) {
6
+ return ContainerUtil.getTagged(PROVIDER, ID_KEY, componentId);
7
+ }
8
+ ProviderUtil.get = get;
9
+ })(ProviderUtil || (ProviderUtil = {}));
10
+ //# sourceMappingURL=provider-util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-util.js","sourceRoot":"","sources":["../../../src/common/provider/provider-util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,MAAM,KAAW,YAAY,CAI5B;AAJD,WAAiB,YAAY;IACzB,SAAgB,GAAG,CAAmB,WAA2B;QAC7D,OAAO,aAAa,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,CAAC,CAAC;IAClE,CAAC;IAFe,aAAA,GAAG,MAElB,CAAA;AACL,CAAC,EAJgB,YAAY,KAAZ,YAAY,QAI5B"}
@@ -0,0 +1,13 @@
1
+ import { ComponentId } from '../annotation/component.js';
2
+ import { Provider } from './provider-protocol.js';
3
+ import { Container } from '../container/index.js';
4
+ import { Prioritizeable } from '../utils/index.js';
5
+ export declare class ContainerBasedProvider<T extends object> implements Provider<T> {
6
+ protected readonly componentId: ComponentId<T>;
7
+ protected readonly container: Container;
8
+ protected components: T[] | undefined;
9
+ constructor(componentId: ComponentId<T>, container: Container);
10
+ get(recursive?: boolean): T[];
11
+ sortSync(getPriority?: Prioritizeable.GetPrioritySync<T>, recursive?: boolean): T[];
12
+ sort(getPriority?: Prioritizeable.GetPriority<T>, recursive?: boolean): Promise<T[]>;
13
+ }
@@ -0,0 +1,54 @@
1
+ import { ComponentFilterRegistry } from './provider-protocol.js';
2
+ import { Prioritizeable } from '../utils/index.js';
3
+ const DEFAULT_GET_PRIORITY = value => {
4
+ if (value) {
5
+ if ('priority' in value) {
6
+ return value.priority;
7
+ }
8
+ else if ('order' in value) {
9
+ return value.order;
10
+ }
11
+ return 0;
12
+ }
13
+ };
14
+ export class ContainerBasedProvider {
15
+ constructor(componentId, container) {
16
+ this.componentId = componentId;
17
+ this.container = container;
18
+ }
19
+ get(recursive) {
20
+ if (this.components === undefined) {
21
+ const currentComponents = [];
22
+ let filterRegistry;
23
+ let currentContainer = this.container;
24
+ // eslint-disable-next-line no-null/no-null
25
+ while (currentContainer !== null) {
26
+ if (currentContainer.isBound(this.componentId)) {
27
+ try {
28
+ currentComponents.push(...currentContainer.getAll(this.componentId));
29
+ }
30
+ catch (error) {
31
+ console.error(error);
32
+ }
33
+ }
34
+ if (filterRegistry === undefined && currentContainer.isBound(ComponentFilterRegistry)) {
35
+ filterRegistry = currentContainer.get(ComponentFilterRegistry);
36
+ }
37
+ // eslint-disable-next-line no-null/no-null
38
+ currentContainer = recursive === true ? currentContainer.parent : null;
39
+ }
40
+ this.components = filterRegistry ? filterRegistry.applyFilters(currentComponents, this.componentId) : currentComponents;
41
+ }
42
+ return this.components;
43
+ }
44
+ sortSync(getPriority = DEFAULT_GET_PRIORITY, recursive) {
45
+ this.components = Prioritizeable.prioritizeAllSync(this.get(recursive), getPriority).map(c => c.value);
46
+ return this.components;
47
+ }
48
+ async sort(getPriority = DEFAULT_GET_PRIORITY, recursive) {
49
+ const result = await Prioritizeable.prioritizeAll(this.get(recursive), getPriority);
50
+ this.components = result.map(c => c.value);
51
+ return this.components;
52
+ }
53
+ }
54
+ //# sourceMappingURL=provider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider.js","sourceRoot":"","sources":["../../../src/common/provider/provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAExE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE1C,MAAM,oBAAoB,GAAwC,KAAK,CAAC,EAAE;IACtE,IAAI,KAAK,EAAE,CAAC;QACR,IAAI,UAAU,IAAI,KAAK,EAAE,CAAC;YACtB,OAAO,KAAK,CAAC,QAAQ,CAAC;QAC1B,CAAC;aAAM,IAAI,OAAO,IAAI,KAAK,EAAE,CAAC;YAC1B,OAAO,KAAK,CAAC,KAAK,CAAC;QACvB,CAAC;QACD,OAAO,CAAC,CAAC;IACb,CAAC;AACL,CAAC,CAAC;AAEF,MAAM,OAAO,sBAAsB;IAI/B,YACuB,WAA2B,EAC3B,SAAoB;2BADpB,WAAW;yBACX,SAAS;IAC5B,CAAC;IAEL,GAAG,CAAC,SAAmB;QACnB,IAAI,IAAI,CAAC,UAAU,KAAK,SAAS,EAAE,CAAC;YAChC,MAAM,iBAAiB,GAAQ,EAAE,CAAC;YAClC,IAAI,cAAmD,CAAC;YACxD,IAAI,gBAAgB,GAAqB,IAAI,CAAC,SAAS,CAAC;YACxD,2CAA2C;YAC3C,OAAO,gBAAgB,KAAK,IAAI,EAAE,CAAC;gBAC/B,IAAI,gBAAgB,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;oBAC7C,IAAI,CAAC;wBACD,iBAAiB,CAAC,IAAI,CAAC,GAAG,gBAAgB,CAAC,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;oBACzE,CAAC;oBAAC,OAAO,KAAK,EAAE,CAAC;wBACb,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;oBACzB,CAAC;gBACL,CAAC;gBACD,IAAI,cAAc,KAAK,SAAS,IAAI,gBAAgB,CAAC,OAAO,CAAC,uBAAuB,CAAC,EAAE,CAAC;oBACpF,cAAc,GAAG,gBAAgB,CAAC,GAAG,CAAC,uBAAuB,CAAC,CAAC;gBACnE,CAAC;gBACD,2CAA2C;gBAC3C,gBAAgB,GAAG,SAAS,KAAK,IAAI,CAAC,CAAC,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;YAC3E,CAAC;YAED,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,CAAC,CAAC,cAAc,CAAC,YAAY,CAAC,iBAAiB,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,iBAAiB,CAAC;QAE5H,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,QAAQ,CAAC,WAAW,GAAsC,oBAAoB,EAAE,SAAmB;QAC/F,IAAI,CAAC,UAAU,GAAG,cAAc,CAAC,iBAAiB,CAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC1G,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,WAAW,GAAkC,oBAAoB,EAAE,SAAmB;QAC7F,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,aAAa,CAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,WAAW,CAAC,CAAC;QACvF,IAAI,CAAC,UAAU,GAAG,MAAM,CAAC,GAAG,CAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9C,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ"}
@@ -0,0 +1,3 @@
1
+ import './index.js';
2
+ declare const _default: import("inversify").interfaces.ContainerModule;
3
+ export default _default;
@@ -0,0 +1,9 @@
1
+ import './index.js';
2
+ import { bindValue } from './annotation/value.js';
3
+ import { bindAutowiredProvider } from './annotation/autowired-provider.js';
4
+ import { autoBind } from './container/auto-bind.js';
5
+ export default autoBind(bind => {
6
+ bindValue(bind);
7
+ bindAutowiredProvider(bind);
8
+ });
9
+ //# sourceMappingURL=static-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"static-module.js","sourceRoot":"","sources":["../../src/common/static-module.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,CAAC;AACjB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAEjD,eAAe,QAAQ,CAAC,IAAI,CAAC,EAAE;IAC3B,SAAS,CAAC,IAAI,CAAC,CAAC;IAChB,qBAAqB,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export * from './mock-logger.js';
@@ -0,0 +1,2 @@
1
+ export * from './mock-logger.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/test/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { Logger, LogLevel, LogMessage } from '../logger/logger-protocol.js';
2
+ import { Emitter } from '../utils/index.js';
3
+ export declare class MockLogger implements Logger {
4
+ level: LogLevel;
5
+ protected readonly onLogEmitter: Emitter<LogMessage>;
6
+ onLog: import("../index.js").Event<LogMessage>;
7
+ time(label: string): void;
8
+ timeEnd(label: string, context?: string): number | undefined;
9
+ setContext(context?: string): void;
10
+ info(message: any, context?: string): void;
11
+ error(message: any, context?: string): void;
12
+ warn(message: any, context?: string): void;
13
+ debug(message: any, context?: string): void;
14
+ }
@@ -0,0 +1,41 @@
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 { Injectable } from '../annotation/index.js';
8
+ import { Emitter } from '../utils/index.js';
9
+ let MockLogger = class MockLogger {
10
+ constructor() {
11
+ this.level = 'info';
12
+ this.onLogEmitter = new Emitter();
13
+ this.onLog = this.onLogEmitter.event;
14
+ }
15
+ time(label) {
16
+ // do nothing
17
+ }
18
+ timeEnd(label, context) {
19
+ return undefined;
20
+ }
21
+ setContext(context) {
22
+ // do nothing
23
+ }
24
+ info(message, context) {
25
+ // do nothing
26
+ }
27
+ error(message, context) {
28
+ // do nothing
29
+ }
30
+ warn(message, context) {
31
+ // do nothing
32
+ }
33
+ debug(message, context) {
34
+ // do nothing
35
+ }
36
+ };
37
+ MockLogger = __decorate([
38
+ Injectable()
39
+ ], MockLogger);
40
+ export { MockLogger };
41
+ //# sourceMappingURL=mock-logger.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-logger.js","sourceRoot":"","sources":["../../../src/common/test/mock-logger.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAG5B,IAAM,UAAU,GAAhB,MAAM,UAAU;IAAhB;QACH,UAAK,GAAa,MAAM,CAAC;QACN,iBAAY,GAAG,IAAI,OAAO,EAAc,CAAC;QAC5D,UAAK,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC;IAsBpC,CAAC;IArBG,IAAI,CAAC,KAAa;QACd,aAAa;IACjB,CAAC;IACD,OAAO,CAAC,KAAa,EAAE,OAAgB;QACnC,OAAO,SAAS,CAAC;IACrB,CAAC;IACD,UAAU,CAAC,OAAgB;QACvB,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;IACD,IAAI,CAAC,OAAY,EAAE,OAAgB;QAC/B,aAAa;IACjB,CAAC;IACD,KAAK,CAAC,OAAY,EAAE,OAAgB;QAChC,aAAa;IACjB,CAAC;CACJ,CAAA;AAzBY,UAAU;IADtB,UAAU,EAAE;GACA,UAAU,CAyBtB"}
@@ -0,0 +1,2 @@
1
+ import '../index.js';
2
+ export declare const coreTestModule: import("inversify").interfaces.ContainerModule;
@@ -0,0 +1,12 @@
1
+ import { bindAutowiredProvider } from '../annotation/autowired-provider.js';
2
+ import { bindValue } from '../annotation/value.js';
3
+ import { autoBind } from '../container/index.js';
4
+ import { Logger } from '../logger/index.js';
5
+ import { MockLogger } from './mock-logger.js';
6
+ import '../index.js';
7
+ export const coreTestModule = autoBind((bind, unbind, isBound, rebind) => {
8
+ bindValue(bind);
9
+ bindAutowiredProvider(bind);
10
+ rebind(Logger).to(MockLogger).inSingletonScope();
11
+ });
12
+ //# sourceMappingURL=test-module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"test-module.js","sourceRoot":"","sources":["../../../src/common/test/test-module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,UAAU,CAAC;AAElB,MAAM,CAAC,MAAM,cAAc,GAAG,QAAQ,CAAC,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IACrE,SAAS,CAAC,IAAI,CAAC,CAAC;IAChB,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC5B,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACrD,CAAC,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export declare namespace AnnotationUtil {
2
+ function getValueOrOption<T>(valueOrOption?: any, primaryProperty?: string): T;
3
+ function getType(target: any, targetKey: string | symbol, index?: number): any;
4
+ }
@@ -0,0 +1,24 @@
1
+ export var AnnotationUtil;
2
+ (function (AnnotationUtil) {
3
+ function getValueOrOption(valueOrOption, primaryProperty = 'id') {
4
+ let option = {};
5
+ if (typeof valueOrOption === 'object' && !Array.isArray(valueOrOption)) {
6
+ option = valueOrOption;
7
+ }
8
+ else if (valueOrOption) {
9
+ option = { [primaryProperty]: valueOrOption };
10
+ }
11
+ return option;
12
+ }
13
+ AnnotationUtil.getValueOrOption = getValueOrOption;
14
+ function getType(target, targetKey, index) {
15
+ if (index !== undefined) {
16
+ return Reflect.getMetadata('design:paramtypes', target, targetKey)[index];
17
+ }
18
+ else {
19
+ return Reflect.getMetadata('design:type', target, targetKey);
20
+ }
21
+ }
22
+ AnnotationUtil.getType = getType;
23
+ })(AnnotationUtil || (AnnotationUtil = {}));
24
+ //# sourceMappingURL=annotation-util.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"annotation-util.js","sourceRoot":"","sources":["../../../src/common/utils/annotation-util.ts"],"names":[],"mappings":"AAAA,MAAM,KAAW,cAAc,CAoB9B;AApBD,WAAiB,cAAc;IAE3B,SAAgB,gBAAgB,CAAI,aAAmB,EAAE,eAAe,GAAG,IAAI;QAC3E,IAAI,MAAM,GAAG,EAAE,CAAC;QAChB,IAAI,OAAO,aAAa,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAC;YACrE,MAAM,GAAG,aAAa,CAAC;QAC3B,CAAC;aAAM,IAAI,aAAa,EAAE,CAAC;YACvB,MAAM,GAAG,EAAE,CAAC,eAAe,CAAC,EAAE,aAAa,EAAE,CAAC;QAClD,CAAC;QACD,OAAO,MAAW,CAAC;IACvB,CAAC;IARe,eAAA,gBAAgB,mBAQ/B,CAAA;IAED,SAAgB,OAAO,CAAC,MAAW,EAAE,SAA0B,EAAE,KAAc;QAC3E,IAAI,KAAK,KAAK,SAAS,EAAG,CAAC;YACvB,OAAO,OAAO,CAAC,WAAW,CAAC,mBAAmB,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC,KAAK,CAAC,CAAC;QAC9E,CAAC;aAAM,CAAC;YACJ,OAAO,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,CAAC;QACjE,CAAC;IACL,CAAC;IANe,eAAA,OAAO,UAMtB,CAAA;AAEL,CAAC,EApBgB,cAAc,KAAd,cAAc,QAoB9B"}
@@ -0,0 +1,173 @@
1
+ export declare abstract class Assert {
2
+ /**
3
+ * Assert a boolean expression, throwing an `IllegalStateError`
4
+ * if the expression evaluates to `false`.
5
+ * @param expression a boolean expression
6
+ * @param message the exception message to use if the assertion fails
7
+ * @throws IllegalStateError if `expression` is `false`
8
+ * @example
9
+ * Assert.state(id === undefined, "The id property must not already be initialized");
10
+ * Assert.state(entity.getId() === undefined,
11
+ * () => "ID for entity " + entity.getName() + " must not already be initialized");
12
+ */
13
+ static state(expression: boolean, message: string | (() => string)): void;
14
+ /**
15
+ * Assert a boolean expression, throwing an `IllegalStateError`
16
+ * if the expression evaluates to `false`.
17
+ * @param expression a boolean expression
18
+ * @param message the exception message to use if the assertion fails
19
+ * @throws IllegalStateError if `expression` is `false`
20
+ * @example
21
+ * Assert.isTrue(i > 0, "The value must be greater than zero");
22
+ * Assert.isTrue(i > 0, () => "The value '" + i + "' must be greater than zero");
23
+ */
24
+ static isTrue(expression: boolean, message: string | (() => string)): void;
25
+ /**
26
+ * Assert that an object is `undefined`.
27
+ * @param object the object to check
28
+ * @param message the exception message to use if the assertion fails
29
+ * @throws IllegalStateError if the object is not `undefined`
30
+ * @example
31
+ * Assert.isNull(value, "The value must be null");
32
+ * Assert.isNull(value, () => "The value '" + value + "' must be null");
33
+ */
34
+ static isNull(object: any, message: string | (() => string)): void;
35
+ /**
36
+ * Assert that an object is not `undefined`.
37
+ * @param object the object to check
38
+ * @param message the exception message to use if the assertion fails
39
+ * @throws IllegalStateError if the object is `undefined`
40
+ * @example
41
+ * Assert.notNull(clazz, "The class must not be null");
42
+ * Assert.notNull(entity.getId(),
43
+ * () => "ID for entity " + entity.getName() + " must not be null");
44
+ */
45
+ static notNull(object: unknown, message: string | (() => string)): void;
46
+ /**
47
+ * Assert that the given String is not empty; that is,
48
+ * it must not be `undefined` and not the empty String.
49
+ * @param text the String to check
50
+ * @param message the exception message to use if the assertion fails
51
+ * @throws IllegalStateError if the text is empty
52
+ * @example
53
+ * Assert.hasLength(name, "Name must not be empty");
54
+ * Assert.hasLength(name, () => "Name for account '" + account.getId() + "' must not be empty");
55
+ */
56
+ static hasLength(text: string | undefined, message: string | (() => string)): void;
57
+ /**
58
+ * Assert that the given String contains valid text content; that is, it must not
59
+ * be `undefined` and must contain at least one non-whitespace character.
60
+ * @param text the String to check
61
+ * @param message the exception message to use if the assertion fails
62
+ * @throws IllegalStateError if the text does not contain valid text content
63
+ * @example
64
+ * Assert.hasText(account.getName(), "Name must not be empty");
65
+ * Assert.hasText(account.getName(),
66
+ * () => "Name for account '" + account.getId() + "' must not be empty");
67
+ */
68
+ static hasText(text: string | undefined, message: string | (() => string)): void;
69
+ /**
70
+ * Assert that the given text does not contain the given substring.
71
+ * @param textToSearch the text to search
72
+ * @param substring the substring to find within the text
73
+ * @param message the exception message to use if the assertion fails
74
+ * @throws IllegalStateError if the text contains the substring
75
+ * @example
76
+ * Assert.doesNotContain(name, forbidden, "Name must not contain '" + forbidden + "'");
77
+ * Assert.doesNotContain(name, forbidden,
78
+ * () => "Name must not contain '" + forbidden + "'");
79
+ */
80
+ static doesNotContain(textToSearch: string | undefined, substring: string, message: string | (() => string)): void;
81
+ /**
82
+ * Assert that an array contains elements; that is, it must not be
83
+ * `undefined` and must contain at least one element.
84
+ * @param array the array to check
85
+ * @param message the exception message to use if the assertion fails
86
+ * @throws IllegalStateError if the object array is `undefined` or contains no elements
87
+ * @example
88
+ * Assert.notEmpty(array, "The array must contain elements");
89
+ * Assert.notEmpty(array, () => "The " + arrayType + " array must contain elements");
90
+ */
91
+ static notEmpty(array: unknown[] | undefined, message: string | (() => string)): void;
92
+ /**
93
+ * Assert that an array contains no `undefined` elements.
94
+ * <p>Note: Does not complain if the array is empty!
95
+ * @param array the array to check
96
+ * @param message the exception message to use if the assertion fails
97
+ * @throws IllegalStateError if the object array contains a `undefined` element
98
+ * @example
99
+ * Assert.noNullElements(array, "The array must contain non-null elements");
100
+ * Assert.noNullElements(array, () => "The " + arrayType + " array must contain non-null elements");
101
+ */
102
+ static noNullElements(array: unknown[] | undefined, message: string | (() => string)): void;
103
+ /**
104
+ * Assert that a collection contains elements; that is, it must not be
105
+ * `undefined` and must contain at least one element.
106
+ * @param collection the collection to check
107
+ * @param message the exception message to use if the assertion fails
108
+ * @throws IllegalStateError if the collection is `undefined` or
109
+ * contains no elements
110
+ * @example
111
+ * Assert.notEmpty(collection, "Collection must contain elements");
112
+ * Assert.notEmpty(collection, () => "The " + collectionType + " collection must contain elements");
113
+ */
114
+ static notEmptyCollection(collection: unknown[] | undefined, message: string | (() => string)): void;
115
+ /**
116
+ * Assert that a collection contains no `undefined` elements.
117
+ * <p>Note: Does not complain if the collection is empty!
118
+ * @param collection the collection to check
119
+ * @param message the exception message to use if the assertion fails
120
+ * @throws IllegalStateError if the collection contains a `undefined`
121
+ * @example
122
+ * Assert.noNullElements(collection, "Collection must contain non-null elements");
123
+ * Assert.noNullElements(collection, () => "The " + collectionName + " must contain non-null elements");
124
+ */
125
+ static noNullElementsCollection(collection: unknown[] | undefined, message: string | (() => string)): void;
126
+ /**
127
+ * Assert that a Map contains entries; that is, it must not be `undefined`
128
+ * and must contain at least one entry.
129
+ * @param map the map to check
130
+ * @param message the exception message to use if the assertion fails
131
+ * @throws IllegalStateError if the map is `undefined` or contains no entries
132
+ * @example
133
+ * Assert.notEmpty(map, "The map must contain entries");
134
+ * Assert.notEmpty(map, () => "The " + mapType + " map must contain entries");
135
+ */
136
+ static notEmptyMap(map: Map<unknown, unknown> | undefined, message: string | (() => string)): void;
137
+ /**
138
+ * Assert that the provided object is an instance of the provided class.
139
+ * @param type the type to check against
140
+ * @param obj the object to check
141
+ * @param message a message which will be prepended to provide further context.
142
+ * If it is empty or ends in ":" or ";" or "," or ".", a full exception message
143
+ * will be appended. If it ends in a space, the name of the offending object's
144
+ * type will be appended. In any other case, a ":" with a space and the name
145
+ * of the offending object's type will be appended.
146
+ * @throws IllegalStateError if the object is not an instance of type
147
+ * @example
148
+ * Assert.instanceOf(Foo, foo, "Foo expected");
149
+ * Assert.instanceOf(Foo, foo, () => "Processing " + Foo.name + ":");
150
+ * Assert.instanceOf(Foo, foo);
151
+ */
152
+ static isInstanceOf(type: any, obj: unknown, message?: string | (() => string)): void;
153
+ /**
154
+ * Assert that `superType.isAssignableFrom(subType)` is `true`.
155
+ * @param superType the supertype to check against
156
+ * @param subType the subtype to check
157
+ * @param message a message which will be prepended to provide further context.
158
+ * If it is empty or ends in ":" or ";" or "," or ".", a full exception message
159
+ * will be appended. If it ends in a space, the name of the offending subtype
160
+ * will be appended. In any other case, a ":" with a space and the name of the
161
+ * offending subtype will be appended.
162
+ * @throws IllegalStateError if the classes are not assignable
163
+ * @example
164
+ * Assert.isAssignable(Number, myClass, "Number expected");
165
+ * Assert.isAssignable(Number, myClass, () => "Processing " + myAttributeName + ":");
166
+ */
167
+ static isAssignable(superType: unknown, subType: any | undefined, message?: string | (() => string)): void;
168
+ private static instanceCheckFailed;
169
+ private static assignableCheckFailed;
170
+ private static endsWithSeparator;
171
+ private static messageWithTypeName;
172
+ private static resolveMessage;
173
+ }