@fastcar/core 0.2.38

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 (239) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +379 -0
  3. package/annotation.d.ts +157 -0
  4. package/db.d.ts +272 -0
  5. package/index.d.ts +262 -0
  6. package/package.json +53 -0
  7. package/src/FastCarApplication.ts +761 -0
  8. package/src/annotation/Application.ts +46 -0
  9. package/src/annotation/ExceptionMonitor.ts +15 -0
  10. package/src/annotation/bind/AddRequireModule.ts +18 -0
  11. package/src/annotation/bind/AliasInjection.ts +24 -0
  12. package/src/annotation/bind/Autowired.ts +11 -0
  13. package/src/annotation/bind/CallDependency.ts +24 -0
  14. package/src/annotation/data/DBType.ts +9 -0
  15. package/src/annotation/data/DS.ts +58 -0
  16. package/src/annotation/data/DSIndex.ts +7 -0
  17. package/src/annotation/data/Entity.ts +8 -0
  18. package/src/annotation/data/Field.ts +15 -0
  19. package/src/annotation/data/PrimaryKey.ts +7 -0
  20. package/src/annotation/data/SqlSession.ts +7 -0
  21. package/src/annotation/data/Table.ts +37 -0
  22. package/src/annotation/data/Transactional.ts +60 -0
  23. package/src/annotation/env/ApplicationSetting.ts +24 -0
  24. package/src/annotation/env/BaseFilePath.ts +12 -0
  25. package/src/annotation/env/BasePath.ts +12 -0
  26. package/src/annotation/env/ENV.ts +8 -0
  27. package/src/annotation/env/ResourcePath.ts +7 -0
  28. package/src/annotation/lifeCycle/AddLifeCycleItem.ts +25 -0
  29. package/src/annotation/lifeCycle/ApplicationDestory.ts +13 -0
  30. package/src/annotation/lifeCycle/ApplicationInit.ts +13 -0
  31. package/src/annotation/lifeCycle/ApplicationRunner.ts +5 -0
  32. package/src/annotation/lifeCycle/ApplicationStart.ts +23 -0
  33. package/src/annotation/lifeCycle/ApplicationStop.ts +18 -0
  34. package/src/annotation/property/Deprecate.ts +17 -0
  35. package/src/annotation/property/NotImplemented.ts +5 -0
  36. package/src/annotation/property/Override.ts +4 -0
  37. package/src/annotation/property/Readonly.ts +12 -0
  38. package/src/annotation/scan/ComponentInjection.ts +22 -0
  39. package/src/annotation/scan/ComponentScan.ts +7 -0
  40. package/src/annotation/scan/ComponentScanExclusion.ts +26 -0
  41. package/src/annotation/scan/Hotter.ts +6 -0
  42. package/src/annotation/stereotype/BeanName.ts +9 -0
  43. package/src/annotation/stereotype/Component.ts +6 -0
  44. package/src/annotation/stereotype/Configure.ts +12 -0
  45. package/src/annotation/stereotype/Controller.ts +7 -0
  46. package/src/annotation/stereotype/Injection.ts +10 -0
  47. package/src/annotation/stereotype/Log.ts +17 -0
  48. package/src/annotation/stereotype/Repository.ts +7 -0
  49. package/src/annotation/stereotype/Service.ts +7 -0
  50. package/src/annotation/valid/AddChildValid.ts +61 -0
  51. package/src/annotation/valid/DefaultVal.ts +8 -0
  52. package/src/annotation/valid/NotNull.ts +7 -0
  53. package/src/annotation/valid/Rule.ts +104 -0
  54. package/src/annotation/valid/Size.ts +13 -0
  55. package/src/annotation/valid/Type.ts +8 -0
  56. package/src/annotation/valid/ValidCustom.ts +21 -0
  57. package/src/annotation/valid/ValidForm.ts +146 -0
  58. package/src/annotation.ts +103 -0
  59. package/src/config/ApplicationConfig.ts +5 -0
  60. package/src/config/SysConfig.ts +28 -0
  61. package/src/constant/AppStatusEnum.ts +5 -0
  62. package/src/constant/BootPriority.ts +7 -0
  63. package/src/constant/CommonConstant.ts +14 -0
  64. package/src/constant/ComponentKind.ts +7 -0
  65. package/src/constant/DataTypes.ts +15 -0
  66. package/src/constant/FastCarMetaData.ts +25 -0
  67. package/src/constant/LifeCycleModule.ts +5 -0
  68. package/src/db.ts +182 -0
  69. package/src/index.ts +11 -0
  70. package/src/interface/ApplicationHook.ts +9 -0
  71. package/src/interface/ApplicationRunnerService.ts +3 -0
  72. package/src/interface/DataSourceManager.ts +14 -0
  73. package/src/interface/Logger.ts +9 -0
  74. package/src/model/BaseMapper.ts +115 -0
  75. package/src/model/DataMap.ts +103 -0
  76. package/src/model/FormRuleModel.ts +23 -0
  77. package/src/model/ValidError.ts +1 -0
  78. package/src/model/WinstonLogger.ts +119 -0
  79. package/src/type/ComponentDesc.ts +5 -0
  80. package/src/type/DesignMeta.ts +11 -0
  81. package/src/type/FileHotterDesc.ts +4 -0
  82. package/src/type/MapperType.ts +8 -0
  83. package/src/type/ProcessType.ts +12 -0
  84. package/src/type/SqlError.ts +3 -0
  85. package/src/type/WinstonLoggerType.ts +18 -0
  86. package/src/utils/ClassLoader.ts +72 -0
  87. package/src/utils/ClassUtils.ts +38 -0
  88. package/src/utils/CryptoUtil.ts +106 -0
  89. package/src/utils/DataFormat.ts +97 -0
  90. package/src/utils/DateUtil.ts +85 -0
  91. package/src/utils/FileUtil.ts +172 -0
  92. package/src/utils/FormatStr.ts +13 -0
  93. package/src/utils/Mix.ts +69 -0
  94. package/src/utils/ReflectUtil.ts +22 -0
  95. package/src/utils/TypeUtil.ts +56 -0
  96. package/src/utils/ValidationUtil.ts +138 -0
  97. package/src/utils.ts +13 -0
  98. package/target/FastCarApplication.js +661 -0
  99. package/target/annotation/AddRequireModule.js +21 -0
  100. package/target/annotation/Application.js +45 -0
  101. package/target/annotation/Autowired.js +15 -0
  102. package/target/annotation/Calldependency.js +18 -0
  103. package/target/annotation/ExceptionMonitor.js +16 -0
  104. package/target/annotation/bind/AddRequireModule.js +21 -0
  105. package/target/annotation/bind/AliasInjection.js +23 -0
  106. package/target/annotation/bind/Autowired.js +13 -0
  107. package/target/annotation/bind/CallDependency.js +23 -0
  108. package/target/annotation/data/DBType.js +11 -0
  109. package/target/annotation/data/DS.js +54 -0
  110. package/target/annotation/data/DSIndex.js +9 -0
  111. package/target/annotation/data/Entity.js +10 -0
  112. package/target/annotation/data/Field.js +18 -0
  113. package/target/annotation/data/PrimaryKey.js +9 -0
  114. package/target/annotation/data/SqlSession.js +9 -0
  115. package/target/annotation/data/Table.js +34 -0
  116. package/target/annotation/data/Transactional.js +52 -0
  117. package/target/annotation/env/ApplicationSetting.js +25 -0
  118. package/target/annotation/env/BaseFilePath.js +14 -0
  119. package/target/annotation/env/BasePath.js +14 -0
  120. package/target/annotation/env/ENV.js +10 -0
  121. package/target/annotation/env/ResourcePath.js +9 -0
  122. package/target/annotation/lifeCycle/AddLifeCycleItem.js +18 -0
  123. package/target/annotation/lifeCycle/ApplicationDestory.js +15 -0
  124. package/target/annotation/lifeCycle/ApplicationInit.js +15 -0
  125. package/target/annotation/lifeCycle/ApplicationRunner.js +7 -0
  126. package/target/annotation/lifeCycle/ApplicationStart.js +24 -0
  127. package/target/annotation/lifeCycle/ApplicationStop.js +20 -0
  128. package/target/annotation/property/Deprecate.js +19 -0
  129. package/target/annotation/property/NotImplemented.js +8 -0
  130. package/target/annotation/property/Override.js +7 -0
  131. package/target/annotation/property/Readonly.js +16 -0
  132. package/target/annotation/scan/ComponentInjection.js +21 -0
  133. package/target/annotation/scan/ComponentScan.js +9 -0
  134. package/target/annotation/scan/ComponentScanExclusion.js +25 -0
  135. package/target/annotation/scan/Hotter.js +8 -0
  136. package/target/annotation/stereotype/BeanName.js +11 -0
  137. package/target/annotation/stereotype/Component.js +8 -0
  138. package/target/annotation/stereotype/Configure.js +14 -0
  139. package/target/annotation/stereotype/Controller.js +9 -0
  140. package/target/annotation/stereotype/Injection.js +12 -0
  141. package/target/annotation/stereotype/Log.js +16 -0
  142. package/target/annotation/stereotype/Repository.js +9 -0
  143. package/target/annotation/stereotype/Service.js +9 -0
  144. package/target/annotation/valid/AddChildValid.js +56 -0
  145. package/target/annotation/valid/DefaultVal.js +10 -0
  146. package/target/annotation/valid/NotNull.js +8 -0
  147. package/target/annotation/valid/Rule.js +100 -0
  148. package/target/annotation/valid/Size.js +10 -0
  149. package/target/annotation/valid/Type.js +10 -0
  150. package/target/annotation/valid/ValidCustom.js +17 -0
  151. package/target/annotation/valid/ValidForm.js +131 -0
  152. package/target/annotation.js +101 -0
  153. package/target/config/ApplicationConfig.js +2 -0
  154. package/target/config/SysConfig.js +19 -0
  155. package/target/constant/AppStatusEnum.js +9 -0
  156. package/target/constant/BootPriority.js +11 -0
  157. package/target/constant/CommonConstant.js +16 -0
  158. package/target/constant/ComponentKind.js +11 -0
  159. package/target/constant/DataTypes.js +19 -0
  160. package/target/constant/FastCarMetaData.js +29 -0
  161. package/target/constant/LifeCycleModule.js +9 -0
  162. package/target/db.js +46 -0
  163. package/target/index.js +21 -0
  164. package/target/interface/ApplicationHook.js +2 -0
  165. package/target/interface/ApplicationRunnerService.js +2 -0
  166. package/target/interface/DataSourceManager.js +2 -0
  167. package/target/interface/Logger.js +5 -0
  168. package/target/model/BaseMapper.js +98 -0
  169. package/target/model/DataMap.js +87 -0
  170. package/target/model/FormRuleModel.js +2 -0
  171. package/target/model/ValidError.js +5 -0
  172. package/target/model/WinstonLogger.js +95 -0
  173. package/target/type/ComponentDesc.js +2 -0
  174. package/target/type/DesignMeta.js +15 -0
  175. package/target/type/FileHotterDesc.js +2 -0
  176. package/target/type/MapperType.js +2 -0
  177. package/target/type/ProcessType.js +2 -0
  178. package/target/type/SqlError.js +5 -0
  179. package/target/type/WinstonLoggerType.js +9 -0
  180. package/target/utils/ClassUtils.js +35 -0
  181. package/target/utils/CryptoUtil.js +84 -0
  182. package/target/utils/DataFormat.js +84 -0
  183. package/target/utils/DateUtil.js +71 -0
  184. package/target/utils/FileUtil.js +153 -0
  185. package/target/utils/FormatStr.js +14 -0
  186. package/target/utils/Mix.js +62 -0
  187. package/target/utils/ReflectUtil.js +22 -0
  188. package/target/utils/TypeUtil.js +47 -0
  189. package/target/utils/ValidationUtil.js +118 -0
  190. package/target/utils/classLoader.js +65 -0
  191. package/target/utils.js +23 -0
  192. package/test/example/logs/app.log +0 -0
  193. package/test/example/logs/logger.log +12 -0
  194. package/test/example/logs/logger1.log +12 -0
  195. package/test/example/logs/logger2.log +12 -0
  196. package/test/example/logs/logger3.log +12 -0
  197. package/test/example/logs/logger4.log +12 -0
  198. package/test/example/logs/logger5.log +6 -0
  199. package/test/example/logs/sys.log +7 -0
  200. package/test/example/logs/sys1.log +14 -0
  201. package/test/example/logs/sys10.log +12 -0
  202. package/test/example/logs/sys11.log +5 -0
  203. package/test/example/logs/sys13.log +5 -0
  204. package/test/example/logs/sys2.log +3 -0
  205. package/test/example/logs/sys4.log +15 -0
  206. package/test/example/logs/sys5.log +9 -0
  207. package/test/example/logs/sys6.log +10 -0
  208. package/test/example/logs/sys7.log +15 -0
  209. package/test/example/logs/sys8.log +11 -0
  210. package/test/example/logs/sys9.log +10 -0
  211. package/test/example/resource/application-test.yml +0 -0
  212. package/test/example/resource/application.yml +7 -0
  213. package/test/example/resource/evnconfig-test.yml +1 -0
  214. package/test/example/resource/hello.yml +1 -0
  215. package/test/example/simple/app.ts +99 -0
  216. package/test/example/simple/component/StartRunner.ts +10 -0
  217. package/test/example/simple/component/StopRunner.ts +14 -0
  218. package/test/example/simple/config/EnvConfig.ts +6 -0
  219. package/test/example/simple/config/HelloConfig.ts +8 -0
  220. package/test/example/simple/controller/AliasController.ts +6 -0
  221. package/test/example/simple/controller/HelloController.ts +39 -0
  222. package/test/example/simple/controller/NotFoundController.ts +20 -0
  223. package/test/example/simple/service/CallService.ts +11 -0
  224. package/test/example/simple/service/HelloService.ts +10 -0
  225. package/test/example/simple/service/LogService.ts +19 -0
  226. package/test/logs/logger.log +0 -0
  227. package/test/logs/sys.log +227 -0
  228. package/test/multi/app.ts +15 -0
  229. package/test/multi/service/aService.ts +16 -0
  230. package/test/multi/service/bService.ts +18 -0
  231. package/test/multi/service/cService.ts +21 -0
  232. package/test/unit/dataMap-test.ts +48 -0
  233. package/test/unit/decorators-test.ts +38 -0
  234. package/test/unit/ds-test.ts +33 -0
  235. package/test/unit/logs/sys.log +24 -0
  236. package/test/unit/reflectMetadata-test.ts +15 -0
  237. package/test/unit/valid-test.ts +65 -0
  238. package/test/unit/winston-test.ts +15 -0
  239. package/utils.d.ts +166 -0
@@ -0,0 +1,227 @@
1
+ {"timestamp":"2022-12-07 15:10:36.45","level":"INFO","label":"sys","message":"Start scanning component"}
2
+ {"timestamp":"2022-12-07 15:10:36.49","level":"INFO","label":"sys","message":"Complete component scan"}
3
+ {"timestamp":"2022-12-07 15:10:36.49","level":"INFO","label":"sys","message":"Call application initialization method"}
4
+ {"timestamp":"2022-12-07 15:10:36.52","level":"INFO","label":"sys","message":"start server app is run"}
5
+ {"timestamp":"2022-12-07 15:10:36.52","level":"INFO","label":"sys","message":"version 1.0.0"}
6
+ {"timestamp":"2022-12-07 15:10:37.63","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
7
+ {"timestamp":"2022-12-07 15:14:46.897","level":"INFO","label":"sys","message":"Start scanning component"}
8
+ {"timestamp":"2022-12-07 15:14:46.900","level":"INFO","label":"sys","message":"Complete component scan"}
9
+ {"timestamp":"2022-12-07 15:14:46.901","level":"INFO","label":"sys","message":"Call application initialization method"}
10
+ {"timestamp":"2022-12-07 15:14:46.903","level":"INFO","label":"sys","message":"start server app is run"}
11
+ {"timestamp":"2022-12-07 15:14:46.904","level":"INFO","label":"sys","message":"version 1.0.0"}
12
+ {"timestamp":"2022-12-07 15:14:47.914","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
13
+ {"timestamp":"2022-12-07 15:17:44.929","level":"INFO","label":"sys","message":"Start scanning component"}
14
+ {"timestamp":"2022-12-07 15:17:44.933","level":"INFO","label":"sys","message":"Complete component scan"}
15
+ {"timestamp":"2022-12-07 15:17:44.934","level":"INFO","label":"sys","message":"Call application initialization method"}
16
+ {"timestamp":"2022-12-07 15:17:44.936","level":"INFO","label":"sys","message":"start server app is run"}
17
+ {"timestamp":"2022-12-07 15:17:44.937","level":"INFO","label":"sys","message":"version 1.0.0"}
18
+ {"timestamp":"2022-12-07 15:17:45.951","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
19
+ {"timestamp":"2022-12-07 15:19:21.675","level":"INFO","label":"sys","message":"Start scanning component"}
20
+ {"timestamp":"2022-12-07 15:19:21.679","level":"INFO","label":"sys","message":"Complete component scan"}
21
+ {"timestamp":"2022-12-07 15:19:21.679","level":"INFO","label":"sys","message":"Call application initialization method"}
22
+ {"timestamp":"2022-12-07 15:19:21.682","level":"INFO","label":"sys","message":"start server app is run"}
23
+ {"timestamp":"2022-12-07 15:19:21.682","level":"INFO","label":"sys","message":"version 1.0.0"}
24
+ {"timestamp":"2022-12-07 15:19:22.702","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
25
+ {"timestamp":"2022-12-07 15:23:48.413","level":"INFO","label":"sys","message":"Start scanning component"}
26
+ {"timestamp":"2022-12-07 15:23:48.417","level":"INFO","label":"sys","message":"Complete component scan"}
27
+ {"timestamp":"2022-12-07 15:23:48.417","level":"INFO","label":"sys","message":"Call application initialization method"}
28
+ {"timestamp":"2022-12-07 15:23:48.419","level":"INFO","label":"sys","message":"start server app is run"}
29
+ {"timestamp":"2022-12-07 15:23:48.420","level":"INFO","label":"sys","message":"version 1.0.0"}
30
+ {"timestamp":"2022-12-07 15:23:49.422","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
31
+ {"timestamp":"2022-12-07 15:23:49.423","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
32
+ {"timestamp":"2022-12-07 15:23:49.429","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:14:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
33
+ {"timestamp":"2022-12-07 15:23:49.430","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
34
+ {"timestamp":"2022-12-07 15:24:44.932","level":"INFO","label":"sys","message":"Start scanning component"}
35
+ {"timestamp":"2022-12-07 15:24:44.977","level":"INFO","label":"sys","message":"Complete component scan"}
36
+ {"timestamp":"2022-12-07 15:24:44.977","level":"INFO","label":"sys","message":"Call application initialization method"}
37
+ {"timestamp":"2022-12-07 15:24:44.980","level":"INFO","label":"sys","message":"start server app is run"}
38
+ {"timestamp":"2022-12-07 15:24:44.980","level":"INFO","label":"sys","message":"version 1.0.0"}
39
+ {"timestamp":"2022-12-07 15:24:45.995","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
40
+ {"timestamp":"2022-12-07 15:25:20.32","level":"INFO","label":"sys","message":"Start scanning component"}
41
+ {"timestamp":"2022-12-07 15:25:20.36","level":"INFO","label":"sys","message":"Complete component scan"}
42
+ {"timestamp":"2022-12-07 15:25:20.36","level":"INFO","label":"sys","message":"Call application initialization method"}
43
+ {"timestamp":"2022-12-07 15:25:20.38","level":"INFO","label":"sys","message":"start server app is run"}
44
+ {"timestamp":"2022-12-07 15:25:20.39","level":"INFO","label":"sys","message":"version 1.0.0"}
45
+ {"timestamp":"2022-12-07 15:25:21.63","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
46
+ {"timestamp":"2022-12-07 15:25:21.64","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
47
+ {"timestamp":"2022-12-07 15:25:21.70","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:14:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
48
+ {"timestamp":"2022-12-07 15:25:21.72","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
49
+ {"timestamp":"2022-12-07 15:25:40.204","level":"INFO","label":"sys","message":"Start scanning component"}
50
+ {"timestamp":"2022-12-07 15:25:40.208","level":"INFO","label":"sys","message":"Complete component scan"}
51
+ {"timestamp":"2022-12-07 15:25:40.208","level":"INFO","label":"sys","message":"Call application initialization method"}
52
+ {"timestamp":"2022-12-07 15:25:40.210","level":"INFO","label":"sys","message":"start server app is run"}
53
+ {"timestamp":"2022-12-07 15:25:40.211","level":"INFO","label":"sys","message":"version 1.0.0"}
54
+ {"timestamp":"2022-12-07 15:25:41.223","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
55
+ {"timestamp":"2022-12-07 15:25:41.224","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
56
+ {"timestamp":"2022-12-07 15:25:41.229","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:14:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
57
+ {"timestamp":"2022-12-07 15:25:41.231","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
58
+ {"timestamp":"2022-12-07 15:26:00.248","level":"INFO","label":"sys","message":"Start scanning component"}
59
+ {"timestamp":"2022-12-07 15:26:00.252","level":"INFO","label":"sys","message":"Complete component scan"}
60
+ {"timestamp":"2022-12-07 15:26:00.253","level":"INFO","label":"sys","message":"Call application initialization method"}
61
+ {"timestamp":"2022-12-07 15:26:00.255","level":"INFO","label":"sys","message":"start server app is run"}
62
+ {"timestamp":"2022-12-07 15:26:00.256","level":"INFO","label":"sys","message":"version 1.0.0"}
63
+ {"timestamp":"2022-12-07 15:28:29.482","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
64
+ {"timestamp":"2022-12-07 15:28:29.484","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
65
+ {"timestamp":"2022-12-07 15:28:29.485","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:14:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
66
+ {"timestamp":"2022-12-07 15:28:29.522","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
67
+ {"timestamp":"2022-12-07 15:28:50.948","level":"INFO","label":"sys","message":"Start scanning component"}
68
+ {"timestamp":"2022-12-07 15:28:50.952","level":"INFO","label":"sys","message":"Complete component scan"}
69
+ {"timestamp":"2022-12-07 15:28:50.953","level":"INFO","label":"sys","message":"Call application initialization method"}
70
+ {"timestamp":"2022-12-07 15:28:50.955","level":"INFO","label":"sys","message":"start server app is run"}
71
+ {"timestamp":"2022-12-07 15:28:50.956","level":"INFO","label":"sys","message":"version 1.0.0"}
72
+ {"timestamp":"2022-12-07 15:28:54.272","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
73
+ {"timestamp":"2022-12-07 15:28:54.273","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
74
+ {"timestamp":"2022-12-07 15:28:54.279","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:14:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
75
+ {"timestamp":"2022-12-07 15:28:54.339","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
76
+ {"timestamp":"2022-12-07 15:29:02.276","level":"INFO","label":"sys","message":"Start scanning component"}
77
+ {"timestamp":"2022-12-07 15:29:02.279","level":"INFO","label":"sys","message":"Complete component scan"}
78
+ {"timestamp":"2022-12-07 15:29:02.280","level":"INFO","label":"sys","message":"Call application initialization method"}
79
+ {"timestamp":"2022-12-07 15:29:02.282","level":"INFO","label":"sys","message":"start server app is run"}
80
+ {"timestamp":"2022-12-07 15:29:02.283","level":"INFO","label":"sys","message":"version 1.0.0"}
81
+ {"timestamp":"2022-12-07 15:29:54.269","level":"INFO","label":"sys","message":"Start scanning component"}
82
+ {"timestamp":"2022-12-07 15:29:54.273","level":"INFO","label":"sys","message":"Complete component scan"}
83
+ {"timestamp":"2022-12-07 15:29:54.274","level":"INFO","label":"sys","message":"Call application initialization method"}
84
+ {"timestamp":"2022-12-07 15:29:54.277","level":"INFO","label":"sys","message":"start server app is run"}
85
+ {"timestamp":"2022-12-07 15:29:54.277","level":"INFO","label":"sys","message":"version 1.0.0"}
86
+ {"timestamp":"2022-12-07 15:31:41.234","level":"INFO","label":"sys","message":"Start scanning component"}
87
+ {"timestamp":"2022-12-07 15:31:41.238","level":"INFO","label":"sys","message":"Complete component scan"}
88
+ {"timestamp":"2022-12-07 15:31:41.239","level":"INFO","label":"sys","message":"Call application initialization method"}
89
+ {"timestamp":"2022-12-07 15:31:41.241","level":"INFO","label":"sys","message":"start server app is run"}
90
+ {"timestamp":"2022-12-07 15:31:41.242","level":"INFO","label":"sys","message":"version 1.0.0"}
91
+ {"timestamp":"2022-12-07 15:36:52.628","level":"INFO","label":"sys","message":"Start scanning component"}
92
+ {"timestamp":"2022-12-07 15:36:52.632","level":"INFO","label":"sys","message":"Complete component scan"}
93
+ {"timestamp":"2022-12-07 15:36:52.633","level":"INFO","label":"sys","message":"Call application initialization method"}
94
+ {"timestamp":"2022-12-07 15:36:52.635","level":"INFO","label":"sys","message":"start server app is run"}
95
+ {"timestamp":"2022-12-07 15:36:52.636","level":"INFO","label":"sys","message":"version 1.0.0"}
96
+ {"timestamp":"2022-12-07 15:37:18.789","level":"INFO","label":"sys","message":"Start scanning component"}
97
+ {"timestamp":"2022-12-07 15:37:18.793","level":"INFO","label":"sys","message":"Complete component scan"}
98
+ {"timestamp":"2022-12-07 15:37:18.794","level":"INFO","label":"sys","message":"Call application initialization method"}
99
+ {"timestamp":"2022-12-07 15:37:18.796","level":"INFO","label":"sys","message":"start server app is run"}
100
+ {"timestamp":"2022-12-07 15:37:18.797","level":"INFO","label":"sys","message":"version 1.0.0"}
101
+ {"timestamp":"2022-12-07 15:38:09.08","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
102
+ {"timestamp":"2022-12-07 15:38:09.09","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
103
+ {"timestamp":"2022-12-07 15:38:09.15","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:15:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:20:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
104
+ {"timestamp":"2022-12-07 15:38:09.110","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
105
+ {"timestamp":"2022-12-07 15:39:14.939","level":"INFO","label":"sys","message":"Start scanning component"}
106
+ {"timestamp":"2022-12-07 15:39:14.943","level":"INFO","label":"sys","message":"Complete component scan"}
107
+ {"timestamp":"2022-12-07 15:39:14.944","level":"INFO","label":"sys","message":"Call application initialization method"}
108
+ {"timestamp":"2022-12-07 15:39:14.946","level":"INFO","label":"sys","message":"start server app is run"}
109
+ {"timestamp":"2022-12-07 15:39:14.947","level":"INFO","label":"sys","message":"version 1.0.0"}
110
+ {"timestamp":"2022-12-07 15:39:25.21","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
111
+ {"timestamp":"2022-12-07 15:44:27.495","level":"INFO","label":"sys","message":"Start scanning component"}
112
+ {"timestamp":"2022-12-07 15:44:27.499","level":"INFO","label":"sys","message":"Complete component scan"}
113
+ {"timestamp":"2022-12-07 15:44:27.500","level":"INFO","label":"sys","message":"Call application initialization method"}
114
+ {"timestamp":"2022-12-07 15:44:27.502","level":"INFO","label":"sys","message":"start server app is run"}
115
+ {"timestamp":"2022-12-07 15:44:27.503","level":"INFO","label":"sys","message":"version 1.0.0"}
116
+ {"timestamp":"2022-12-07 15:44:28.514","level":"ERROR","label":"sys","message":"Caught exception: The \"id\" argument must be of type string. Received an instance of APP"}
117
+ {"timestamp":"2022-12-07 15:44:28.515","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
118
+ {"timestamp":"2022-12-07 15:44:28.521","level":"ERROR","label":"sys","message":"stack: TypeError [ERR_INVALID_ARG_TYPE]: The \"id\" argument must be of type string. Received an instance of APP\n at new NodeError (node:internal/errors:371:5)\n at validateString (node:internal/validators:120:11)\n at Module.require (node:internal/modules/cjs/loader:998:3)\n at require (node:internal/modules/cjs/helpers:102:18)\n at APP.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:12:20)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:13:29)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
119
+ {"timestamp":"2022-12-07 15:44:28.522","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
120
+ {"timestamp":"2022-12-07 15:46:53.418","level":"INFO","label":"sys","message":"Start scanning component"}
121
+ {"timestamp":"2022-12-07 15:46:53.422","level":"INFO","label":"sys","message":"Complete component scan"}
122
+ {"timestamp":"2022-12-07 15:46:53.422","level":"INFO","label":"sys","message":"Call application initialization method"}
123
+ {"timestamp":"2022-12-07 15:46:53.425","level":"INFO","label":"sys","message":"start server app is run"}
124
+ {"timestamp":"2022-12-07 15:46:53.425","level":"INFO","label":"sys","message":"version 1.0.0"}
125
+ {"timestamp":"2022-12-07 15:47:02.197","level":"ERROR","label":"sys","message":"Caught exception: The \"id\" argument must be of type string. Received an instance of BService"}
126
+ {"timestamp":"2022-12-07 15:47:02.198","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
127
+ {"timestamp":"2022-12-07 15:47:02.205","level":"ERROR","label":"sys","message":"stack: TypeError [ERR_INVALID_ARG_TYPE]: The \"id\" argument must be of type string. Received an instance of BService\n at new NodeError (node:internal/errors:371:5)\n at validateString (node:internal/validators:120:11)\n at Module.require (node:internal/modules/cjs/loader:998:3)\n at require (node:internal/modules/cjs/helpers:102:18)\n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:16:21)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:17:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:20:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
128
+ {"timestamp":"2022-12-07 15:47:02.297","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
129
+ {"timestamp":"2022-12-07 15:48:13.488","level":"INFO","label":"sys","message":"Start scanning component"}
130
+ {"timestamp":"2022-12-07 15:48:13.491","level":"INFO","label":"sys","message":"Complete component scan"}
131
+ {"timestamp":"2022-12-07 15:48:13.492","level":"INFO","label":"sys","message":"Call application initialization method"}
132
+ {"timestamp":"2022-12-07 15:48:13.495","level":"INFO","label":"sys","message":"start server app is run"}
133
+ {"timestamp":"2022-12-07 15:48:13.495","level":"INFO","label":"sys","message":"version 1.0.0"}
134
+ {"timestamp":"2022-12-07 15:48:14.501","level":"ERROR","label":"sys","message":"Caught exception: The \"request\" argument must be of type string. Received an instance of BService"}
135
+ {"timestamp":"2022-12-07 15:48:14.502","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
136
+ {"timestamp":"2022-12-07 15:48:14.508","level":"ERROR","label":"sys","message":"stack: TypeError [ERR_INVALID_ARG_TYPE]: The \"request\" argument must be of type string. Received an instance of BService\n at new NodeError (node:internal/errors:371:5)\n at validateString (node:internal/validators:120:11)\n at Function.resolve (node:internal/modules/cjs/helpers:107:5)\n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:16:29)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:17:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:20:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
137
+ {"timestamp":"2022-12-07 15:48:14.509","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
138
+ {"timestamp":"2022-12-07 15:50:07.365","level":"INFO","label":"sys","message":"Start scanning component"}
139
+ {"timestamp":"2022-12-07 15:50:07.369","level":"INFO","label":"sys","message":"Complete component scan"}
140
+ {"timestamp":"2022-12-07 15:50:07.369","level":"INFO","label":"sys","message":"Call application initialization method"}
141
+ {"timestamp":"2022-12-07 15:50:07.372","level":"INFO","label":"sys","message":"start server app is run"}
142
+ {"timestamp":"2022-12-07 15:50:07.372","level":"INFO","label":"sys","message":"version 1.0.0"}
143
+ {"timestamp":"2022-12-07 15:52:22.461","level":"INFO","label":"sys","message":"Start scanning component"}
144
+ {"timestamp":"2022-12-07 15:52:22.464","level":"INFO","label":"sys","message":"Complete component scan"}
145
+ {"timestamp":"2022-12-07 15:52:22.465","level":"INFO","label":"sys","message":"Call application initialization method"}
146
+ {"timestamp":"2022-12-07 15:52:22.467","level":"INFO","label":"sys","message":"start server app is run"}
147
+ {"timestamp":"2022-12-07 15:52:22.468","level":"INFO","label":"sys","message":"version 1.0.0"}
148
+ {"timestamp":"2022-12-07 15:52:23.474","level":"ERROR","label":"sys","message":"Caught exception: Cannot find module './aService'\nRequire stack:\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\Autowired.ts\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation.ts\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts"}
149
+ {"timestamp":"2022-12-07 15:52:23.474","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
150
+ {"timestamp":"2022-12-07 15:52:23.480","level":"ERROR","label":"sys","message":"stack: Error: Cannot find module './aService'\nRequire stack:\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\Autowired.ts\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation.ts\n- D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts\n at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)\n at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (D:\\code\\fast-car\\fast-car\\node_modules\\@cspotcode\\source-map-support\\source-map-support.js:679:30)\n at Function.Module._load (node:internal/modules/cjs/loader:778:27)\n at Module.require (node:internal/modules/cjs/loader:1005:19)\n at require (node:internal/modules/cjs/helpers:102:18)\n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:18:21)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:17:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:20:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)"}
151
+ {"timestamp":"2022-12-07 15:52:23.482","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
152
+ {"timestamp":"2022-12-07 15:53:12.455","level":"INFO","label":"sys","message":"Start scanning component"}
153
+ {"timestamp":"2022-12-07 15:53:12.458","level":"INFO","label":"sys","message":"Complete component scan"}
154
+ {"timestamp":"2022-12-07 15:53:12.459","level":"INFO","label":"sys","message":"Call application initialization method"}
155
+ {"timestamp":"2022-12-07 15:53:12.461","level":"INFO","label":"sys","message":"start server app is run"}
156
+ {"timestamp":"2022-12-07 15:53:12.462","level":"INFO","label":"sys","message":"version 1.0.0"}
157
+ {"timestamp":"2022-12-07 15:55:32.769","level":"INFO","label":"sys","message":"Start scanning component"}
158
+ {"timestamp":"2022-12-07 15:55:32.773","level":"INFO","label":"sys","message":"Complete component scan"}
159
+ {"timestamp":"2022-12-07 15:55:32.773","level":"INFO","label":"sys","message":"Call application initialization method"}
160
+ {"timestamp":"2022-12-07 15:55:32.776","level":"INFO","label":"sys","message":"start server app is run"}
161
+ {"timestamp":"2022-12-07 15:55:32.776","level":"INFO","label":"sys","message":"version 1.0.0"}
162
+ {"timestamp":"2022-12-07 15:55:33.788","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
163
+ {"timestamp":"2022-12-07 15:55:33.789","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
164
+ {"timestamp":"2022-12-07 15:55:33.795","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:18:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:17:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:20:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
165
+ {"timestamp":"2022-12-07 15:55:33.797","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
166
+ {"timestamp":"2022-12-07 16:01:23.16","level":"INFO","label":"sys","message":"Start scanning component"}
167
+ {"timestamp":"2022-12-07 16:01:23.19","level":"INFO","label":"sys","message":"Complete component scan"}
168
+ {"timestamp":"2022-12-07 16:01:23.20","level":"INFO","label":"sys","message":"Call application initialization method"}
169
+ {"timestamp":"2022-12-07 16:01:23.22","level":"INFO","label":"sys","message":"start server app is run"}
170
+ {"timestamp":"2022-12-07 16:01:23.23","level":"INFO","label":"sys","message":"version 1.0.0"}
171
+ {"timestamp":"2022-12-07 16:01:24.29","level":"ERROR","label":"sys","message":"Caught exception: Cannot read properties of undefined (reading 'sayHello')"}
172
+ {"timestamp":"2022-12-07 16:01:24.30","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
173
+ {"timestamp":"2022-12-07 16:01:24.36","level":"ERROR","label":"sys","message":"stack: TypeError: Cannot read properties of undefined (reading 'sayHello')\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
174
+ {"timestamp":"2022-12-07 16:01:24.37","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
175
+ {"timestamp":"2022-12-07 16:02:19.804","level":"INFO","label":"sys","message":"Start scanning component"}
176
+ {"timestamp":"2022-12-07 16:02:19.807","level":"INFO","label":"sys","message":"Complete component scan"}
177
+ {"timestamp":"2022-12-07 16:02:19.808","level":"INFO","label":"sys","message":"Call application initialization method"}
178
+ {"timestamp":"2022-12-07 16:02:19.810","level":"INFO","label":"sys","message":"start server app is run"}
179
+ {"timestamp":"2022-12-07 16:02:19.811","level":"INFO","label":"sys","message":"version 1.0.0"}
180
+ {"timestamp":"2022-12-07 16:02:20.816","level":"ERROR","label":"sys","message":"Caught exception: Cannot read properties of undefined (reading 'sayHello')"}
181
+ {"timestamp":"2022-12-07 16:02:20.817","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
182
+ {"timestamp":"2022-12-07 16:02:20.823","level":"ERROR","label":"sys","message":"stack: TypeError: Cannot read properties of undefined (reading 'sayHello')\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
183
+ {"timestamp":"2022-12-07 16:02:20.824","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
184
+ {"timestamp":"2022-12-07 16:02:58.992","level":"INFO","label":"sys","message":"Start scanning component"}
185
+ {"timestamp":"2022-12-07 16:02:58.995","level":"INFO","label":"sys","message":"Complete component scan"}
186
+ {"timestamp":"2022-12-07 16:02:58.995","level":"INFO","label":"sys","message":"Call application initialization method"}
187
+ {"timestamp":"2022-12-07 16:02:58.998","level":"INFO","label":"sys","message":"start server app is run"}
188
+ {"timestamp":"2022-12-07 16:02:58.998","level":"INFO","label":"sys","message":"version 1.0.0"}
189
+ {"timestamp":"2022-12-07 16:03:00.01","level":"ERROR","label":"sys","message":"Caught exception: Cannot read properties of undefined (reading 'sayHello')"}
190
+ {"timestamp":"2022-12-07 16:03:00.02","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
191
+ {"timestamp":"2022-12-07 16:03:00.08","level":"ERROR","label":"sys","message":"stack: TypeError: Cannot read properties of undefined (reading 'sayHello')\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
192
+ {"timestamp":"2022-12-07 16:03:00.09","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
193
+ {"timestamp":"2022-12-07 16:05:54.120","level":"INFO","label":"sys","message":"Start scanning component"}
194
+ {"timestamp":"2022-12-07 16:05:54.123","level":"INFO","label":"sys","message":"Complete component scan"}
195
+ {"timestamp":"2022-12-07 16:05:54.124","level":"INFO","label":"sys","message":"Call application initialization method"}
196
+ {"timestamp":"2022-12-07 16:05:54.126","level":"INFO","label":"sys","message":"start server app is run"}
197
+ {"timestamp":"2022-12-07 16:05:54.127","level":"INFO","label":"sys","message":"version 1.0.0"}
198
+ {"timestamp":"2022-12-07 16:05:55.134","level":"ERROR","label":"sys","message":"Caught exception: Cannot read properties of undefined (reading 'sayHello')"}
199
+ {"timestamp":"2022-12-07 16:05:55.134","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
200
+ {"timestamp":"2022-12-07 16:05:55.140","level":"ERROR","label":"sys","message":"stack: TypeError: Cannot read properties of undefined (reading 'sayHello')\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
201
+ {"timestamp":"2022-12-07 16:05:55.142","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
202
+ {"timestamp":"2022-12-07 16:06:08.528","level":"INFO","label":"sys","message":"Start scanning component"}
203
+ {"timestamp":"2022-12-07 16:06:08.531","level":"INFO","label":"sys","message":"Complete component scan"}
204
+ {"timestamp":"2022-12-07 16:06:08.531","level":"INFO","label":"sys","message":"Call application initialization method"}
205
+ {"timestamp":"2022-12-07 16:06:08.534","level":"INFO","label":"sys","message":"start server app is run"}
206
+ {"timestamp":"2022-12-07 16:06:08.534","level":"INFO","label":"sys","message":"version 1.0.0"}
207
+ {"timestamp":"2022-12-07 16:10:41.492","level":"INFO","label":"sys","message":"Start scanning component"}
208
+ {"timestamp":"2022-12-07 16:10:41.540","level":"INFO","label":"sys","message":"Complete component scan"}
209
+ {"timestamp":"2022-12-07 16:10:41.541","level":"INFO","label":"sys","message":"Call application initialization method"}
210
+ {"timestamp":"2022-12-07 16:10:41.543","level":"INFO","label":"sys","message":"start server app is run"}
211
+ {"timestamp":"2022-12-07 16:10:41.543","level":"INFO","label":"sys","message":"version 1.0.0"}
212
+ {"timestamp":"2022-12-07 16:10:42.556","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
213
+ {"timestamp":"2022-12-07 16:11:34.778","level":"INFO","label":"sys","message":"Start scanning component"}
214
+ {"timestamp":"2022-12-07 16:11:34.782","level":"INFO","label":"sys","message":"Complete component scan"}
215
+ {"timestamp":"2022-12-07 16:11:34.782","level":"INFO","label":"sys","message":"Call application initialization method"}
216
+ {"timestamp":"2022-12-07 16:11:34.785","level":"INFO","label":"sys","message":"start server app is run"}
217
+ {"timestamp":"2022-12-07 16:11:34.785","level":"INFO","label":"sys","message":"version 1.0.0"}
218
+ {"timestamp":"2022-12-07 16:11:35.801","level":"ERROR","label":"sys","message":"Caught exception: Unsatisfied dependency expressed through [a] "}
219
+ {"timestamp":"2022-12-07 16:11:35.801","level":"ERROR","label":"sys","message":"Exception origin: uncaughtException"}
220
+ {"timestamp":"2022-12-07 16:11:35.808","level":"ERROR","label":"sys","message":"stack: Error: Unsatisfied dependency expressed through [a] \n at BService.get (D:\\code\\fast-car\\fast-car\\fastcar-core\\src\\annotation\\bind\\CallDependency.ts:17:26)\n at BService.sayHello (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\bService.ts:16:8)\n at CService.test (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\service\\cService.ts:19:10)\n at Timeout._onTimeout (D:\\code\\fast-car\\fast-car\\fastcar-core\\test\\multi\\app.ts:14:4)\n at listOnTimeout (node:internal/timers:559:17)\n at processTimers (node:internal/timers:502:7)"}
221
+ {"timestamp":"2022-12-07 16:11:35.809","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
222
+ {"timestamp":"2022-12-07 16:11:50.11","level":"INFO","label":"sys","message":"Start scanning component"}
223
+ {"timestamp":"2022-12-07 16:11:50.14","level":"INFO","label":"sys","message":"Complete component scan"}
224
+ {"timestamp":"2022-12-07 16:11:50.15","level":"INFO","label":"sys","message":"Call application initialization method"}
225
+ {"timestamp":"2022-12-07 16:11:50.17","level":"INFO","label":"sys","message":"start server app is run"}
226
+ {"timestamp":"2022-12-07 16:11:50.18","level":"INFO","label":"sys","message":"version 1.0.0"}
227
+ {"timestamp":"2022-12-07 16:11:51.32","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
@@ -0,0 +1,15 @@
1
+ import { Application, Autowired } from "../../src/annotation";
2
+ import FastCarApplication from "../../src/FastCarApplication";
3
+ import CService from "./service/cService";
4
+
5
+ @Application
6
+ class APP {
7
+ @Autowired
8
+ app!: FastCarApplication;
9
+ }
10
+
11
+ let instance = new APP();
12
+ setTimeout(() => {
13
+ let c: CService = instance.app.getComponentByTarget(CService);
14
+ c.test();
15
+ }, 1000);
@@ -0,0 +1,16 @@
1
+ import { Autowired, Log, Service } from "../../../src/annotation";
2
+ import Logger from "../../../src/interface/Logger";
3
+ import BService from "./bService";
4
+
5
+ @Service
6
+ export default class AService {
7
+ @Log()
8
+ logger!: Logger;
9
+
10
+ @Autowired
11
+ b!: BService;
12
+
13
+ sayHello() {
14
+ this.logger.debug("a---");
15
+ }
16
+ }
@@ -0,0 +1,18 @@
1
+ import { Autowired, Log, Service } from "../../../src/annotation";
2
+ import Logger from "../../../src/interface/Logger";
3
+ import AService from "./aService";
4
+
5
+ @Service
6
+ export default class BService {
7
+ @Autowired
8
+ a!: AService;
9
+
10
+ @Log()
11
+ logger!: Logger;
12
+
13
+ sayHello() {
14
+ // let aa = this.app.getComponentByTarget(AService);
15
+ // aa.sayHello();
16
+ this.a.sayHello();
17
+ }
18
+ }
@@ -0,0 +1,21 @@
1
+ import { Autowired, Log, Service } from "../../../src/annotation";
2
+ import Logger from "../../../src/interface/Logger";
3
+ import BService from "./bService"; //如果a b颠倒则会出现 b调用a时无法找到依赖情况
4
+ import AService from "./aService";
5
+
6
+ @Service
7
+ export default class CService {
8
+ @Log()
9
+ logger!: Logger;
10
+
11
+ @Autowired
12
+ a!: AService;
13
+
14
+ @Autowired
15
+ b!: BService;
16
+
17
+ test() {
18
+ this.a.sayHello();
19
+ this.b.sayHello();
20
+ }
21
+ }
@@ -0,0 +1,48 @@
1
+ import DataMap from "../../src/model/DataMap";
2
+
3
+ describe("数据集合测试", () => {
4
+ it("数据集合", () => {
5
+ type User = {
6
+ uid: number;
7
+ name: string;
8
+ desc?: {
9
+ detail: string;
10
+ };
11
+ };
12
+
13
+ let n: DataMap<number, User> = new DataMap();
14
+ n.set(1, {
15
+ uid: 1,
16
+ name: "小明",
17
+ });
18
+ n.set(2, {
19
+ uid: 2,
20
+ name: "小王",
21
+ desc: {
22
+ detail: "住在隔壁",
23
+ },
24
+ });
25
+
26
+ let xiaoming = n.get(1);
27
+ console.log(xiaoming?.name == "小明");
28
+
29
+ let oo: { [key: number]: User } = n.toObject();
30
+ console.log(oo[1]);
31
+
32
+ let searchList = n.findByAtts({ uid: 1 });
33
+ console.log(searchList);
34
+
35
+ //复合型查询
36
+ let searchList2 = n.findByAtts({ "desc.detail": "住在隔壁" });
37
+ console.log(searchList2);
38
+
39
+ let sortList = n.sort([
40
+ {
41
+ field: "uid",
42
+ order: true, //true为倒序
43
+ },
44
+ ]);
45
+
46
+ console.log(sortList);
47
+ });
48
+ });
@@ -0,0 +1,38 @@
1
+ import Deprecate from "../../src/annotation/property/Deprecate";
2
+ import Readonly from "../../src/annotation/property/Readonly";
3
+
4
+ describe("装饰器测试", () => {
5
+ it("只读装饰器测试", () => {
6
+ class TestModel {
7
+ @Readonly
8
+ info: string;
9
+
10
+ @Readonly
11
+ setInfo(s: string) {
12
+ Reflect.defineProperty(this, "entree", {
13
+ value: s,
14
+ });
15
+ }
16
+ }
17
+
18
+ var m = new TestModel();
19
+ m.setInfo("111");
20
+ m.setInfo = () => {};
21
+ });
22
+
23
+ it("弃用装饰器测试", () => {
24
+ @Deprecate()
25
+ class TestModel {
26
+ @Deprecate("hello is Deprecate")
27
+ async hello() {
28
+ return new Promise(resolve => {
29
+ resolve("hello is Deprecate");
30
+ });
31
+ }
32
+ }
33
+
34
+ new TestModel().hello().then(res => {
35
+ console.log(res);
36
+ });
37
+ });
38
+ });
@@ -0,0 +1,33 @@
1
+ import DS from "../../src/annotation/data/DS";
2
+ import DSIndex from "../../src/annotation/data/DSIndex";
3
+
4
+ describe("数据源测试", () => {
5
+ it("数据源类加载", () => {
6
+ @DS("aa")
7
+ class A {
8
+ @DS("bb")
9
+ test(@DSIndex zs?: string) {
10
+ console.log(zs);
11
+ }
12
+ }
13
+
14
+ let testA = new A();
15
+ testA.test();
16
+ });
17
+
18
+ it("数据源继承加载影响", () => {
19
+ class A {
20
+ test(@DSIndex zs?: string) {
21
+ console.log(zs);
22
+ }
23
+ }
24
+
25
+ @DS("cc")
26
+ class B extends A {
27
+ test2() {}
28
+ }
29
+
30
+ let testB = new B();
31
+ testB.test();
32
+ });
33
+ });
@@ -0,0 +1,24 @@
1
+ {"timestamp":"2022-09-09 10:58:51.75","level":"INFO","label":"sys","message":"Start scanning component"}
2
+ {"timestamp":"2022-09-09 10:58:51.78","level":"INFO","label":"sys","message":"Complete component scan"}
3
+ {"timestamp":"2022-09-09 10:58:51.78","level":"INFO","label":"sys","message":"Call application initialization method"}
4
+ {"timestamp":"2022-09-09 10:58:51.80","level":"INFO","label":"sys","message":"start server app is run"}
5
+ {"timestamp":"2022-09-09 10:58:51.81","level":"INFO","label":"sys","message":"version 1.0.0"}
6
+ {"timestamp":"2022-09-09 10:58:51.84","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
7
+ {"timestamp":"2022-09-09 11:11:48.302","level":"INFO","label":"sys","message":"Start scanning component"}
8
+ {"timestamp":"2022-09-09 11:11:48.305","level":"INFO","label":"sys","message":"Complete component scan"}
9
+ {"timestamp":"2022-09-09 11:11:48.306","level":"INFO","label":"sys","message":"Call application initialization method"}
10
+ {"timestamp":"2022-09-09 11:11:48.308","level":"INFO","label":"sys","message":"start server app is run"}
11
+ {"timestamp":"2022-09-09 11:11:48.309","level":"INFO","label":"sys","message":"version 1.0.0"}
12
+ {"timestamp":"2022-09-09 11:11:48.322","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
13
+ {"timestamp":"2022-09-09 11:12:01.418","level":"INFO","label":"sys","message":"Start scanning component"}
14
+ {"timestamp":"2022-09-09 11:12:01.421","level":"INFO","label":"sys","message":"Complete component scan"}
15
+ {"timestamp":"2022-09-09 11:12:01.422","level":"INFO","label":"sys","message":"Call application initialization method"}
16
+ {"timestamp":"2022-09-09 11:12:01.424","level":"INFO","label":"sys","message":"start server app is run"}
17
+ {"timestamp":"2022-09-09 11:12:01.424","level":"INFO","label":"sys","message":"version 1.0.0"}
18
+ {"timestamp":"2022-09-09 11:12:01.427","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
19
+ {"timestamp":"2022-09-09 11:17:03.161","level":"INFO","label":"sys","message":"Start scanning component"}
20
+ {"timestamp":"2022-09-09 11:17:03.164","level":"INFO","label":"sys","message":"Complete component scan"}
21
+ {"timestamp":"2022-09-09 11:17:03.905","level":"INFO","label":"sys","message":"Call application initialization method"}
22
+ {"timestamp":"2022-09-09 11:17:03.907","level":"INFO","label":"sys","message":"start server app is run"}
23
+ {"timestamp":"2022-09-09 11:17:03.908","level":"INFO","label":"sys","message":"version 1.0.0"}
24
+ {"timestamp":"2022-09-09 11:17:03.911","level":"INFO","label":"sys","message":"exit reason","splat":"[\"beforeExit exit\"]"}
@@ -0,0 +1,15 @@
1
+ import "reflect-metadata";
2
+
3
+ class Test {}
4
+
5
+ describe("装饰器元数据测试", () => {
6
+ it("元数据测试案例", () => {
7
+ class A {
8
+ @Reflect.metadata(undefined, undefined)
9
+ hello!: Test;
10
+ }
11
+
12
+ let s = Reflect.getMetadata("design:type", A.prototype, "hello");
13
+ console.log();
14
+ });
15
+ });
@@ -0,0 +1,65 @@
1
+ import "reflect-metadata";
2
+ import ValidForm from "../../src/annotation/valid/ValidForm";
3
+ import NotNull from "../../src/annotation/valid/NotNull";
4
+ import Size from "../../src/annotation/valid/Size";
5
+ import { Rule } from "../../src/annotation/valid/Rule";
6
+
7
+ describe("表单校验测试", () => {
8
+ it("表单单个测试", () => {
9
+ class A {
10
+ //简单类型
11
+ @ValidForm
12
+ test(@Rule() @NotNull a?: string) {
13
+ console.log(a);
14
+ }
15
+ }
16
+ let instance = new A();
17
+ instance.test("");
18
+ });
19
+
20
+ it("表单复合型测试", () => {
21
+ type B = {
22
+ c: string;
23
+ d?: number;
24
+ };
25
+ class A {
26
+ //简单类型
27
+ @ValidForm
28
+ test(
29
+ @Rule({
30
+ a: { required: true },
31
+ })
32
+ a: string,
33
+ @Rule({
34
+ c: { required: true },
35
+ d: { type: "number", minSize: 1, maxSize: 10 },
36
+ })
37
+ b: B
38
+ ) {
39
+ console.log(a, b);
40
+ }
41
+ }
42
+ let instance = new A();
43
+ instance.test("a", { c: "c", d: 6 }); // 校验通过
44
+ instance.test("a", { c: "c", d: 13 }); //校验失败
45
+ });
46
+
47
+ it("表单类测试", () => {
48
+ class B {
49
+ @NotNull
50
+ c!: string;
51
+
52
+ @Size({ minSize: 1, maxSize: 10 })
53
+ d?: number;
54
+ }
55
+ class A {
56
+ //简单类型
57
+ @ValidForm
58
+ test(a: string, @Rule() @NotNull b: B) {
59
+ console.log(a, b);
60
+ }
61
+ }
62
+ let instance = new A();
63
+ instance.test("a", { c: "c", d: 13 }); //校验失败
64
+ });
65
+ });
@@ -0,0 +1,15 @@
1
+ import WinstonLogger from "../../src/model/WinstonLogger";
2
+
3
+ let factoryLogger = new WinstonLogger({
4
+ consoleLevel: "info",
5
+ fileLevel: "info",
6
+ rootPath: __dirname, //日志路径夹
7
+ maxsize: 1024, //字节
8
+ maxFiles: 5, //最大文件数
9
+ printConsole: true,
10
+ });
11
+
12
+ let sys = factoryLogger.addLogger("sys");
13
+ sys.info({ hello: "world" });
14
+ sys.info("1", "2", "3");
15
+ sys.error(new Error("error ~"));