@fastcar/core 0.3.17 → 0.3.18

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastcar/core",
3
- "version": "0.3.17",
3
+ "version": "0.3.18",
4
4
  "homepage": "https://github.com/williamDazhangyu/fast-car",
5
5
  "main": "target/index.js",
6
6
  "author": "william_zhong",
@@ -53,6 +53,7 @@ class FastCarApplication extends Events {
53
53
  protected hotConfigure: Map<string, string[]>;
54
54
 
55
55
  protected demandInstanceMap: DataMap<string, DataMap<string, Set<ClassConstructor<Object> | Object>>>;
56
+ protected demandTargetMap: DataMap<string, DataMap<string, ClassConstructor<Object>>>;
56
57
 
57
58
  constructor() {
58
59
  super();
@@ -70,6 +71,7 @@ class FastCarApplication extends Events {
70
71
 
71
72
  this.demandInstanceMap = new DataMap();
72
73
  this.sysLogger = console;
74
+ this.demandTargetMap = new DataMap();
73
75
 
74
76
  this.loadSelf();
75
77
  this.addHot();
@@ -181,6 +183,12 @@ class FastCarApplication extends Events {
181
183
  if (m) {
182
184
  let key = classZ.name;
183
185
  if (key) {
186
+ this?.addDemandTargetMap({
187
+ fp,
188
+ targetName: key,
189
+ Target: classZ,
190
+ });
191
+
184
192
  let instances = m.get(key);
185
193
  if (instances) {
186
194
  instances.forEach((beforeInstance) => {
@@ -1001,6 +1009,21 @@ class FastCarApplication extends Events {
1001
1009
  }
1002
1010
  }
1003
1011
  }
1012
+
1013
+ private addDemandTargetMap({ fp, targetName, Target }: { fp: string; targetName: string; Target: ClassConstructor<any> }) {
1014
+ let sets = this.demandTargetMap.get(fp);
1015
+ if (!sets) {
1016
+ sets = new DataMap();
1017
+ this.demandTargetMap.set(fp, sets);
1018
+ }
1019
+
1020
+ sets.set(targetName, Target);
1021
+ }
1022
+
1023
+ getDemandTarget(fp: string, targetName: string) {
1024
+ let sets = this.demandTargetMap.get(fp);
1025
+ return sets?.get(targetName);
1026
+ }
1004
1027
  }
1005
1028
 
1006
1029
  export default FastCarApplication;
@@ -1,28 +1,38 @@
1
- //延迟注入作用用于类上,用于没有初始时的依赖注入
2
1
  import { CommonConstant } from "../../constant/CommonConstant";
3
2
  import { FastCarMetaData } from "../../constant/FastCarMetaData";
3
+ import FastCarApplication from "../../FastCarApplication";
4
4
  import { ClassConstructor } from "../../type/ClassConstructor";
5
5
  import ClassUtils from "../../utils/ClassUtils";
6
6
 
7
7
  export default function DemandInjection(Target: ClassConstructor<any>) {
8
8
  const proxy = new Proxy(Target, {
9
- construct: (Target: ClassConstructor<any>, args: any, newTarget?: any) => {
10
- let c = Reflect.construct(Target, args, newTarget);
11
- let app: any = Reflect.get(global, CommonConstant.FastcarApp);
9
+ construct: (Target: ClassConstructor<any>, args: any, newTarget: any) => {
10
+ let hotter = Reflect.getMetadata(FastCarMetaData.HotterFilePath, Target.prototype);
11
+ let fp = Reflect.getMetadata(FastCarMetaData.HotterFilePath, Target.prototype);
12
+ let app: FastCarApplication = Reflect.get(global, CommonConstant.FastcarApp);
13
+
14
+ if (hotter) {
15
+ if (fp) {
16
+ let currTarget = app.getDemandTarget(fp, Target.name);
17
+ if (currTarget) {
18
+ newTarget = currTarget;
19
+ }
20
+ }
21
+ }
12
22
 
13
- app?.loadInjectionService(c);
14
- app?.loadLoggerIOC(c);
23
+ let instance = Reflect.construct(Target, args, newTarget);
15
24
 
16
- let hotter = Reflect.getMetadata(FastCarMetaData.HotterFilePath, Target.prototype);
17
- if (!!hotter) {
18
- let fp = Reflect.getMetadata(FastCarMetaData.HotterFilePath, Target.prototype);
19
- if (!!fp) {
20
- //启用监听
21
- app?.addClassHot(fp, c, Target.name);
25
+ // 依赖注入
26
+ app?.loadInjectionService(instance);
27
+ app?.loadLoggerIOC(instance);
28
+
29
+ if (hotter) {
30
+ if (fp) {
31
+ app?.addClassHot(fp, instance, Target.name);
22
32
  }
23
33
  }
24
34
 
25
- return c;
35
+ return instance;
26
36
  },
27
37
  });
28
38
 
@@ -51,6 +51,7 @@ let FastCarApplication = FastCarApplication_1 = class FastCarApplication extends
51
51
  componentAliasMap;
52
52
  hotConfigure;
53
53
  demandInstanceMap;
54
+ demandTargetMap;
54
55
  constructor() {
55
56
  super();
56
57
  this.sysConfig = SysConfig_1.SYSDefaultConfig;
@@ -65,6 +66,7 @@ let FastCarApplication = FastCarApplication_1 = class FastCarApplication extends
65
66
  this.hotConfigure = new Map();
66
67
  this.demandInstanceMap = new DataMap_1.default();
67
68
  this.sysLogger = console;
69
+ this.demandTargetMap = new DataMap_1.default();
68
70
  this.loadSelf();
69
71
  this.addHot();
70
72
  }
@@ -165,6 +167,11 @@ let FastCarApplication = FastCarApplication_1 = class FastCarApplication extends
165
167
  if (m) {
166
168
  let key = classZ.name;
167
169
  if (key) {
170
+ this?.addDemandTargetMap({
171
+ fp,
172
+ targetName: key,
173
+ Target: classZ,
174
+ });
168
175
  let instances = m.get(key);
169
176
  if (instances) {
170
177
  instances.forEach((beforeInstance) => {
@@ -865,6 +872,18 @@ let FastCarApplication = FastCarApplication_1 = class FastCarApplication extends
865
872
  }
866
873
  }
867
874
  }
875
+ addDemandTargetMap({ fp, targetName, Target }) {
876
+ let sets = this.demandTargetMap.get(fp);
877
+ if (!sets) {
878
+ sets = new DataMap_1.default();
879
+ this.demandTargetMap.set(fp, sets);
880
+ }
881
+ sets.set(targetName, Target);
882
+ }
883
+ getDemandTarget(fp, targetName) {
884
+ let sets = this.demandTargetMap.get(fp);
885
+ return sets?.get(targetName);
886
+ }
868
887
  };
869
888
  __decorate([
870
889
  (0, Log_1.default)("sys"),
@@ -1,26 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = DemandInjection;
4
- //延迟注入作用用于类上,用于没有初始时的依赖注入
5
4
  const CommonConstant_1 = require("../../constant/CommonConstant");
6
5
  const FastCarMetaData_1 = require("../../constant/FastCarMetaData");
7
6
  const ClassUtils_1 = require("../../utils/ClassUtils");
8
7
  function DemandInjection(Target) {
9
8
  const proxy = new Proxy(Target, {
10
9
  construct: (Target, args, newTarget) => {
11
- let c = Reflect.construct(Target, args, newTarget);
12
- let app = Reflect.get(global, CommonConstant_1.CommonConstant.FastcarApp);
13
- app?.loadInjectionService(c);
14
- app?.loadLoggerIOC(c);
15
10
  let hotter = Reflect.getMetadata(FastCarMetaData_1.FastCarMetaData.HotterFilePath, Target.prototype);
16
- if (!!hotter) {
17
- let fp = Reflect.getMetadata(FastCarMetaData_1.FastCarMetaData.HotterFilePath, Target.prototype);
18
- if (!!fp) {
19
- //启用监听
20
- app?.addClassHot(fp, c, Target.name);
11
+ let fp = Reflect.getMetadata(FastCarMetaData_1.FastCarMetaData.HotterFilePath, Target.prototype);
12
+ let app = Reflect.get(global, CommonConstant_1.CommonConstant.FastcarApp);
13
+ if (hotter) {
14
+ if (fp) {
15
+ let currTarget = app.getDemandTarget(fp, Target.name);
16
+ if (currTarget) {
17
+ newTarget = currTarget;
18
+ }
19
+ }
20
+ }
21
+ let instance = Reflect.construct(Target, args, newTarget);
22
+ // 依赖注入
23
+ app?.loadInjectionService(instance);
24
+ app?.loadLoggerIOC(instance);
25
+ if (hotter) {
26
+ if (fp) {
27
+ app?.addClassHot(fp, instance, Target.name);
21
28
  }
22
29
  }
23
- return c;
30
+ return instance;
24
31
  },
25
32
  });
26
33
  ClassUtils_1.default.cloneMetadata(Target, proxy);
@@ -0,0 +1,5 @@
1
+ {"timestamp":"2025-12-23 21:38:19.671","level":"INFO","label":"fastcar-server.app","message":"https://echovids.amusemax.cc/iptv/movies/True%20Detective/S03/True%20Detective_S03E05_If%20You%20Have%20Ghosts.mp4?token=9cef7079a9847afbe41a4d9281c92791&timestamp=1766496611486"}
2
+ {"timestamp":"2025-12-23 21:42:50.675","level":"INFO","label":"fastcar-server.app","message":"https://echovids.amusemax.cc/iptv/movies/Dear___/S02/Dear____S02E02_Sandra%20Oh.mp4?token=648a04ca079cd4e0426de05161610d25&timestamp=1766497261996"}
3
+ {"timestamp":"2025-12-23 22:23:29.39","level":"INFO","label":"fastcar-server.app","message":"https://echovids.amusemax.cc/iptv/movies/Dear___/S02/Dear____S02E02_Sandra%20Oh.mp4?token=648a04ca079cd4e0426de05161610d25&timestamp=1766497261996"}
4
+ {"timestamp":"2025-12-23 22:25:21.971","level":"INFO","label":"fastcar-server.app","message":"https://echovids.amusemax.cc/iptv/movies/Dear___/S02/Dear____S02E02_Sandra%20Oh.mp4?token=648a04ca079cd4e0426de05161610d25&timestamp=1766497261996"}
5
+ {"timestamp":"2025-12-23 22:27:55.462","level":"INFO","label":"fastcar-server.app","message":"https://echovids.amusemax.cc/iptv/movies/Dear___/S02/Dear____S02E02_Sandra%20Oh.mp4?token=648a04ca079cd4e0426de05161610d25&timestamp=1766497261996"}
@@ -0,0 +1 @@
1
+ {"timestamp":"2025-12-23 22:29:00.684","level":"INFO","label":"fastcar-server.app","message":"https://echovids.amusemax.cc/iptv/movies/Dear___/S02/Dear____S02E02_Sandra%20Oh.mp4?token=648a04ca079cd4e0426de05161610d25&timestamp=1766497261996"}
@@ -0,0 +1,13 @@
1
+ {"timestamp":"2026-03-03 11:57:36.198","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
+ {"timestamp":"2026-03-03 11:57:36.415","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
+ {"timestamp":"2026-03-03 11:57:36.416","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
+ {"timestamp":"2026-03-03 11:57:36.418","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
+ {"timestamp":"2026-03-03 11:57:36.419","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
+ {"timestamp":"2026-03-03 12:01:10.814","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
7
+ {"timestamp":"2026-03-03 12:17:38.378","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
8
+ {"timestamp":"2026-03-03 12:17:39.149","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
9
+ {"timestamp":"2026-03-03 12:17:39.155","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
10
+ {"timestamp":"2026-03-03 12:17:39.158","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
11
+ {"timestamp":"2026-03-03 12:17:39.159","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
12
+ {"timestamp":"2026-03-03 12:17:43.980","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
13
+ {"timestamp":"2026-03-03 12:18:11.194","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
@@ -0,0 +1,11 @@
1
+ {"timestamp":"2026-03-03 12:18:44.475","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
2
+ {"timestamp":"2026-03-03 12:19:41.164","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
3
+ {"timestamp":"2026-03-03 12:19:41.583","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
4
+ {"timestamp":"2026-03-03 12:19:41.585","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
5
+ {"timestamp":"2026-03-03 12:19:41.588","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
6
+ {"timestamp":"2026-03-03 12:19:41.588","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
7
+ {"timestamp":"2026-03-03 14:18:30.855","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
8
+ {"timestamp":"2026-03-03 14:18:31.432","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
9
+ {"timestamp":"2026-03-03 14:18:31.437","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
10
+ {"timestamp":"2026-03-03 14:18:31.440","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
11
+ {"timestamp":"2026-03-03 14:18:31.441","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
@@ -4,3 +4,8 @@
4
4
  {"timestamp":"2025-12-22 10:51:51.709","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
5
  {"timestamp":"2025-12-22 10:51:51.710","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
6
  {"timestamp":"2025-12-22 13:36:16.367","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
7
+ {"timestamp":"2025-12-23 22:27:54.724","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
8
+ {"timestamp":"2025-12-23 22:27:55.460","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
9
+ {"timestamp":"2025-12-23 22:27:55.464","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
10
+ {"timestamp":"2025-12-23 22:27:55.467","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
11
+ {"timestamp":"2025-12-23 22:27:55.469","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
@@ -0,0 +1,10 @@
1
+ {"timestamp":"2026-03-02 16:36:06.549","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
+ {"timestamp":"2026-03-02 16:36:06.899","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
+ {"timestamp":"2026-03-02 16:36:06.902","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
+ {"timestamp":"2026-03-02 16:36:06.905","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
+ {"timestamp":"2026-03-02 16:36:06.905","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
+ {"timestamp":"2026-03-02 17:10:32.620","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
7
+ {"timestamp":"2026-03-02 17:10:32.971","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
8
+ {"timestamp":"2026-03-02 17:10:32.973","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
9
+ {"timestamp":"2026-03-02 17:10:32.976","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
10
+ {"timestamp":"2026-03-02 17:10:32.977","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
@@ -0,0 +1,8 @@
1
+ {"timestamp":"2026-03-02 17:20:36.559","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
+ {"timestamp":"2026-03-02 17:20:36.958","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
+ {"timestamp":"2026-03-02 17:20:36.962","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
+ {"timestamp":"2026-03-02 17:20:36.965","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
+ {"timestamp":"2026-03-02 17:20:36.965","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
+ {"timestamp":"2026-03-02 17:20:41.855","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
7
+ {"timestamp":"2026-03-02 18:04:19.373","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
8
+ {"timestamp":"2026-03-02 18:05:57.80","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
@@ -0,0 +1,11 @@
1
+ {"timestamp":"2026-03-02 18:34:45.959","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
+ {"timestamp":"2026-03-02 18:34:46.447","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
+ {"timestamp":"2026-03-02 18:34:46.451","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
+ {"timestamp":"2026-03-02 18:34:46.456","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
+ {"timestamp":"2026-03-02 18:34:46.457","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
+ {"timestamp":"2026-03-03 11:38:40.878","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
7
+ {"timestamp":"2026-03-03 11:38:41.375","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
8
+ {"timestamp":"2026-03-03 11:38:41.378","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
9
+ {"timestamp":"2026-03-03 11:38:41.382","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
10
+ {"timestamp":"2026-03-03 11:38:41.383","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
11
+ {"timestamp":"2026-03-03 11:38:58.258","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
@@ -1,8 +1,8 @@
1
- {"timestamp":"2025-12-19 18:15:28.442","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
- {"timestamp":"2025-12-19 18:15:28.770","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
- {"timestamp":"2025-12-19 18:15:28.772","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
- {"timestamp":"2025-12-19 18:15:28.775","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
- {"timestamp":"2025-12-19 18:15:28.776","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
- {"timestamp":"2025-12-19 18:16:18.714","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
7
- {"timestamp":"2025-12-19 18:16:22.788","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
8
- {"timestamp":"2025-12-19 18:17:24.98","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
1
+ {"timestamp":"2026-03-03 14:46:22.373","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
+ {"timestamp":"2026-03-03 14:46:22.700","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
+ {"timestamp":"2026-03-03 14:46:22.702","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
+ {"timestamp":"2026-03-03 14:46:22.705","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
+ {"timestamp":"2026-03-03 14:46:22.705","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
+ {"timestamp":"2026-03-03 14:46:28.605","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
7
+ {"timestamp":"2026-03-03 14:46:38.710","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
8
+ {"timestamp":"2026-03-03 14:47:05.984","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
@@ -1,13 +1,7 @@
1
- {"timestamp":"2025-12-19 18:27:17.488","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
- {"timestamp":"2025-12-19 18:27:17.806","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
- {"timestamp":"2025-12-19 18:27:17.809","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
- {"timestamp":"2025-12-19 18:27:17.812","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
- {"timestamp":"2025-12-19 18:27:17.813","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
- {"timestamp":"2025-12-19 18:27:26.754","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
7
- {"timestamp":"2025-12-19 20:44:06.736","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
8
- {"timestamp":"2025-12-19 20:44:07.58","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
9
- {"timestamp":"2025-12-19 20:44:07.61","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
10
- {"timestamp":"2025-12-19 20:44:07.63","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
11
- {"timestamp":"2025-12-19 20:44:07.64","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
12
- {"timestamp":"2025-12-19 20:44:13.987","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
13
- {"timestamp":"2025-12-19 20:44:24.128","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
1
+ {"timestamp":"2026-03-04 11:48:57.992","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
2
+ {"timestamp":"2026-03-04 11:48:58.377","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
3
+ {"timestamp":"2026-03-04 11:48:58.379","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
4
+ {"timestamp":"2026-03-04 11:48:58.382","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
5
+ {"timestamp":"2026-03-04 11:48:58.383","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
6
+ {"timestamp":"2026-03-04 11:49:14.367","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
7
+ {"timestamp":"2026-03-04 11:49:25.481","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\DemandService.ts"}
@@ -128,6 +128,11 @@ describe("程序应用测试", () => {
128
128
  // console.log(testValue2.sayHello());
129
129
  }, 1000);
130
130
 
131
+ setInterval(() => {
132
+ let testValue2 = new DemandService();
133
+ console.log("v2---", testValue2.sayHello());
134
+ }, 10000);
135
+
131
136
  // setTimeout(() => {
132
137
  // appInsatcne.app.deleteDemandInstance(testValue);
133
138
  // }, 3000);
@@ -1,8 +0,0 @@
1
- {"timestamp":"2025-12-19 20:44:32.225","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
2
- {"timestamp":"2025-12-19 20:47:55.391","level":"INFO","label":"fastcar-server.sys","message":"Start scanning component"}
3
- {"timestamp":"2025-12-19 20:48:23.98","level":"INFO","label":"fastcar-server.sys","message":"Complete component scan"}
4
- {"timestamp":"2025-12-19 20:48:23.100","level":"INFO","label":"fastcar-server.sys","message":"Call application initialization method"}
5
- {"timestamp":"2025-12-19 20:48:23.101","level":"INFO","label":"fastcar-server.sys","message":"start server app is run"}
6
- {"timestamp":"2025-12-19 20:48:23.102","level":"INFO","label":"fastcar-server.sys","message":"version 1.0.0"}
7
- {"timestamp":"2025-12-19 20:48:33.510","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}
8
- {"timestamp":"2025-12-19 20:49:02.65","level":"INFO","label":"fastcar-server.sys","message":"hot update----D:\\code\\fast-car\\fastcar-core\\test\\example\\simple\\service\\TestValue.ts"}