@eggjs/tegg-plugin 4.0.0-beta.34 → 4.0.0-beta.36
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/dist/app/extend/application.d.ts +28 -24
- package/dist/app/extend/application.js +69 -75
- package/dist/app/extend/application.unittest.d.ts +9 -5
- package/dist/app/extend/application.unittest.js +39 -50
- package/dist/app/extend/context.d.ts +12 -8
- package/dist/app/extend/context.js +27 -32
- package/dist/app/middleware/tegg_ctx_lifecycle_middleware.d.ts +5 -2
- package/dist/app/middleware/tegg_ctx_lifecycle_middleware.js +7 -3
- package/dist/app.d.ts +20 -16
- package/dist/app.js +50 -57
- package/dist/index.d.ts +3 -3
- package/dist/index.js +4 -3
- package/dist/lib/AppLoadUnit.d.ts +23 -19
- package/dist/lib/AppLoadUnit.js +77 -92
- package/dist/lib/AppLoadUnitInstance.d.ts +23 -19
- package/dist/lib/AppLoadUnitInstance.js +69 -82
- package/dist/lib/CompatibleUtil.d.ts +22 -18
- package/dist/lib/CompatibleUtil.js +99 -104
- package/dist/lib/ConfigSourceLoadUnitHook.d.ts +13 -8
- package/dist/lib/ConfigSourceLoadUnitHook.js +20 -19
- package/dist/lib/EggAppLoader.d.ts +19 -15
- package/dist/lib/EggAppLoader.js +104 -115
- package/dist/lib/EggCompatibleObject.d.ts +19 -15
- package/dist/lib/EggCompatibleObject.js +34 -41
- package/dist/lib/EggCompatibleProtoImpl.d.ts +25 -21
- package/dist/lib/EggCompatibleProtoImpl.js +49 -52
- package/dist/lib/EggContextCompatibleHook.d.ts +13 -9
- package/dist/lib/EggContextCompatibleHook.js +32 -44
- package/dist/lib/EggContextHandler.d.ts +12 -8
- package/dist/lib/EggContextHandler.js +28 -25
- package/dist/lib/EggContextImpl.d.ts +9 -5
- package/dist/lib/EggContextImpl.js +18 -15
- package/dist/lib/EggModuleLoader.d.ts +14 -10
- package/dist/lib/EggModuleLoader.js +48 -52
- package/dist/lib/EggQualifierProtoHook.d.ts +13 -9
- package/dist/lib/EggQualifierProtoHook.js +46 -60
- package/dist/lib/ModuleConfigLoader.d.ts +11 -7
- package/dist/lib/ModuleConfigLoader.js +81 -79
- package/dist/lib/ModuleHandler.d.ts +16 -12
- package/dist/lib/ModuleHandler.js +44 -51
- package/dist/lib/Utils.d.ts +4 -1
- package/dist/lib/Utils.js +30 -33
- package/dist/lib/ctx_lifecycle_middleware.d.ts +6 -2
- package/dist/lib/ctx_lifecycle_middleware.js +24 -30
- package/dist/lib/run_in_background.d.ts +7 -3
- package/dist/lib/run_in_background.js +46 -54
- package/dist/types.d.ts +54 -53
- package/dist/types.js +3 -2
- package/package.json +47 -51
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { QualifierInfo } from "@eggjs/core-decorator";
|
|
2
|
+
import { EggLoadUnitTypeLike, EggPrototype, LoadUnit, LoadUnitLifecycleContext, Loader } from "@eggjs/metadata";
|
|
3
|
+
import { Id } from "@eggjs/tegg-types";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/AppLoadUnit.d.ts
|
|
6
|
+
declare class AppLoadUnit implements LoadUnit {
|
|
7
|
+
private readonly loader;
|
|
8
|
+
id: Id;
|
|
9
|
+
readonly name: string;
|
|
10
|
+
readonly type: EggLoadUnitTypeLike;
|
|
11
|
+
readonly unitPath: string;
|
|
12
|
+
private protoMap;
|
|
13
|
+
constructor(name: string, unitPath: string, loader: Loader);
|
|
14
|
+
init(): Promise<void>;
|
|
15
|
+
containPrototype(proto: EggPrototype): boolean;
|
|
16
|
+
getEggPrototype(name: string, qualifiers: QualifierInfo[]): EggPrototype[];
|
|
17
|
+
registerEggPrototype(proto: EggPrototype): void;
|
|
18
|
+
deletePrototype(proto: EggPrototype): void;
|
|
19
|
+
destroy(): Promise<void>;
|
|
20
|
+
iterateEggPrototype(): IterableIterator<EggPrototype>;
|
|
21
|
+
static createModule(ctx: LoadUnitLifecycleContext): AppLoadUnit;
|
|
20
22
|
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { AppLoadUnit };
|
package/dist/lib/AppLoadUnit.js
CHANGED
|
@@ -1,93 +1,78 @@
|
|
|
1
|
-
import { debuglog } from
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { MapUtil } from
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (const proto of protos) {
|
|
76
|
-
EggPrototypeFactory.instance.deletePrototype(proto, this);
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
this.protoMap.clear();
|
|
80
|
-
}
|
|
81
|
-
iterateEggPrototype() {
|
|
82
|
-
const protos = Array.from(this.protoMap.values()).reduce((p, c) => {
|
|
83
|
-
p = p.concat(c);
|
|
84
|
-
return p;
|
|
85
|
-
}, []);
|
|
86
|
-
return protos.values();
|
|
87
|
-
}
|
|
88
|
-
static createModule(ctx) {
|
|
89
|
-
return new AppLoadUnit('tegg-app', ctx.unitPath, ctx.loader);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
1
|
+
import { debuglog } from "node:util";
|
|
2
|
+
import { InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PrototypeUtil, QualifierUtil } from "@eggjs/core-decorator";
|
|
3
|
+
import { IdenticalUtil } from "@eggjs/lifecycle";
|
|
4
|
+
import { EggLoadUnitType, EggPrototypeCreatorFactory, EggPrototypeFactory, LoadUnitFactory } from "@eggjs/metadata";
|
|
5
|
+
import { MapUtil } from "@eggjs/tegg-common-util";
|
|
6
|
+
|
|
7
|
+
//#region src/lib/AppLoadUnit.ts
|
|
8
|
+
const debug = debuglog("egg/tegg/plugin/tegg/lib/AppLoadUnit");
|
|
9
|
+
var AppLoadUnit = class AppLoadUnit {
|
|
10
|
+
loader;
|
|
11
|
+
id;
|
|
12
|
+
name;
|
|
13
|
+
type = EggLoadUnitType.APP;
|
|
14
|
+
unitPath;
|
|
15
|
+
protoMap = /* @__PURE__ */ new Map();
|
|
16
|
+
constructor(name, unitPath, loader) {
|
|
17
|
+
this.id = IdenticalUtil.createLoadUnitId(name);
|
|
18
|
+
this.name = name;
|
|
19
|
+
this.unitPath = unitPath;
|
|
20
|
+
this.loader = loader;
|
|
21
|
+
}
|
|
22
|
+
async init() {
|
|
23
|
+
const clazzList = await this.loader.load();
|
|
24
|
+
if (debug.enabled) debug("init, get clazzList:%j, from unitPath:%o:%o:%o", clazzList.map((t) => t.name), this.type, this.name, this.unitPath);
|
|
25
|
+
for (const clazz of clazzList) {
|
|
26
|
+
[{
|
|
27
|
+
attribute: InitTypeQualifierAttribute,
|
|
28
|
+
value: await PrototypeUtil.getInitType(clazz, {
|
|
29
|
+
unitPath: this.unitPath,
|
|
30
|
+
moduleName: this.name
|
|
31
|
+
})
|
|
32
|
+
}, {
|
|
33
|
+
attribute: LoadUnitNameQualifierAttribute,
|
|
34
|
+
value: this.name
|
|
35
|
+
}].forEach((qualifier) => {
|
|
36
|
+
QualifierUtil.addProtoQualifier(clazz, qualifier.attribute, qualifier.value);
|
|
37
|
+
});
|
|
38
|
+
const protos = await EggPrototypeCreatorFactory.createProto(clazz, this);
|
|
39
|
+
for (const proto of protos) EggPrototypeFactory.instance.registerPrototype(proto, this);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
containPrototype(proto) {
|
|
43
|
+
return !!this.protoMap.get(proto.name)?.find((t) => t === proto);
|
|
44
|
+
}
|
|
45
|
+
getEggPrototype(name, qualifiers) {
|
|
46
|
+
return this.protoMap.get(name)?.filter((proto) => proto.verifyQualifiers(qualifiers)) || [];
|
|
47
|
+
}
|
|
48
|
+
registerEggPrototype(proto) {
|
|
49
|
+
MapUtil.getOrStore(this.protoMap, proto.name, []).push(proto);
|
|
50
|
+
}
|
|
51
|
+
deletePrototype(proto) {
|
|
52
|
+
const protos = this.protoMap.get(proto.name);
|
|
53
|
+
if (protos) {
|
|
54
|
+
const index = protos.indexOf(proto);
|
|
55
|
+
if (index !== -1) protos.splice(index, 1);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
async destroy() {
|
|
59
|
+
for (const namedProtos of this.protoMap.values()) {
|
|
60
|
+
const protos = namedProtos.slice();
|
|
61
|
+
for (const proto of protos) EggPrototypeFactory.instance.deletePrototype(proto, this);
|
|
62
|
+
}
|
|
63
|
+
this.protoMap.clear();
|
|
64
|
+
}
|
|
65
|
+
iterateEggPrototype() {
|
|
66
|
+
return Array.from(this.protoMap.values()).reduce((p, c) => {
|
|
67
|
+
p = p.concat(c);
|
|
68
|
+
return p;
|
|
69
|
+
}, []).values();
|
|
70
|
+
}
|
|
71
|
+
static createModule(ctx) {
|
|
72
|
+
return new AppLoadUnit("tegg-app", ctx.unitPath, ctx.loader);
|
|
73
|
+
}
|
|
74
|
+
};
|
|
92
75
|
LoadUnitFactory.registerLoadUnitCreator(EggLoadUnitType.APP, AppLoadUnit.createModule);
|
|
93
|
-
|
|
76
|
+
|
|
77
|
+
//#endregion
|
|
78
|
+
export { AppLoadUnit };
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import { EggObjectName, EggPrototypeName } from "@eggjs/core-decorator";
|
|
2
|
+
import { EggPrototype, LoadUnit } from "@eggjs/metadata";
|
|
3
|
+
import { EggObject, LoadUnitInstance, LoadUnitInstanceLifecycleContext } from "@eggjs/tegg-runtime";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/AppLoadUnitInstance.d.ts
|
|
6
|
+
declare class AppLoadUnitInstance implements LoadUnitInstance {
|
|
7
|
+
readonly loadUnit: LoadUnit;
|
|
8
|
+
readonly id: string;
|
|
9
|
+
readonly name: string;
|
|
10
|
+
private protoToCreateMap;
|
|
11
|
+
private eggObjectMap;
|
|
12
|
+
private eggObjectPromiseMap;
|
|
13
|
+
constructor(loadUnit: LoadUnit);
|
|
14
|
+
iterateProtoToCreate(): IterableIterator<[EggObjectName, EggPrototype]>;
|
|
15
|
+
addProtoToCreate(name: string, proto: EggPrototype): void;
|
|
16
|
+
deleteProtoToCreate(name: string): void;
|
|
17
|
+
init(ctx: LoadUnitInstanceLifecycleContext): Promise<void>;
|
|
18
|
+
destroy(): Promise<void>;
|
|
19
|
+
getOrCreateEggObject(name: EggPrototypeName, proto: EggPrototype): Promise<EggObject>;
|
|
20
|
+
getEggObject(name: EggPrototypeName, proto: EggPrototype): EggObject;
|
|
21
|
+
static createModuleLoadUnitInstance(ctx: LoadUnitInstanceLifecycleContext): LoadUnitInstance;
|
|
20
22
|
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { AppLoadUnitInstance };
|
|
@@ -1,83 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { MapUtil } from
|
|
5
|
-
import { EggObjectFactory, LoadUnitInstanceFactory, LoadUnitInstanceLifecycleUtil
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
return protoObjMap.get(name);
|
|
70
|
-
}
|
|
71
|
-
getEggObject(name, proto) {
|
|
72
|
-
const protoObjMap = this.eggObjectMap.get(proto.id);
|
|
73
|
-
if (!protoObjMap || !protoObjMap.has(name)) {
|
|
74
|
-
throw new Error(`EggObject ${String(proto.name)} not found`);
|
|
75
|
-
}
|
|
76
|
-
return protoObjMap.get(name);
|
|
77
|
-
}
|
|
78
|
-
static createModuleLoadUnitInstance(ctx) {
|
|
79
|
-
return new AppLoadUnitInstance(ctx.loadUnit);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
1
|
+
import { ObjectInitType } from "@eggjs/core-decorator";
|
|
2
|
+
import { IdenticalUtil } from "@eggjs/lifecycle";
|
|
3
|
+
import { EggLoadUnitType } from "@eggjs/metadata";
|
|
4
|
+
import { MapUtil } from "@eggjs/tegg-common-util";
|
|
5
|
+
import { EggObjectFactory, LoadUnitInstanceFactory, LoadUnitInstanceLifecycleUtil } from "@eggjs/tegg-runtime";
|
|
6
|
+
|
|
7
|
+
//#region src/lib/AppLoadUnitInstance.ts
|
|
8
|
+
var AppLoadUnitInstance = class AppLoadUnitInstance {
|
|
9
|
+
loadUnit;
|
|
10
|
+
id;
|
|
11
|
+
name;
|
|
12
|
+
protoToCreateMap = /* @__PURE__ */ new Map();
|
|
13
|
+
eggObjectMap = /* @__PURE__ */ new Map();
|
|
14
|
+
eggObjectPromiseMap = /* @__PURE__ */ new Map();
|
|
15
|
+
constructor(loadUnit) {
|
|
16
|
+
this.loadUnit = loadUnit;
|
|
17
|
+
this.name = loadUnit.name;
|
|
18
|
+
const iterator = this.loadUnit.iterateEggPrototype();
|
|
19
|
+
for (const proto of iterator) if (proto.initType === ObjectInitType.SINGLETON) this.protoToCreateMap.set(proto.name, proto);
|
|
20
|
+
this.id = IdenticalUtil.createLoadUnitInstanceId(loadUnit.id);
|
|
21
|
+
}
|
|
22
|
+
iterateProtoToCreate() {
|
|
23
|
+
return this.protoToCreateMap.entries();
|
|
24
|
+
}
|
|
25
|
+
addProtoToCreate(name, proto) {
|
|
26
|
+
this.protoToCreateMap.set(name, proto);
|
|
27
|
+
}
|
|
28
|
+
deleteProtoToCreate(name) {
|
|
29
|
+
this.protoToCreateMap.delete(name);
|
|
30
|
+
}
|
|
31
|
+
async init(ctx) {
|
|
32
|
+
await LoadUnitInstanceLifecycleUtil.objectPreCreate(ctx, this);
|
|
33
|
+
for (const [name, proto] of this.protoToCreateMap) await this.getOrCreateEggObject(name, proto);
|
|
34
|
+
}
|
|
35
|
+
async destroy() {
|
|
36
|
+
const objs = [];
|
|
37
|
+
for (const protoObjMap of this.eggObjectMap.values()) for (const protoObj of protoObjMap.values()) objs.push(protoObj);
|
|
38
|
+
this.eggObjectMap.clear();
|
|
39
|
+
await Promise.all(objs.map(async (obj) => {
|
|
40
|
+
await EggObjectFactory.destroyObject(obj);
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
43
|
+
async getOrCreateEggObject(name, proto) {
|
|
44
|
+
if (!this.loadUnit.containPrototype(proto)) throw new Error("load unit not contain proto");
|
|
45
|
+
const protoObjMap = MapUtil.getOrStore(this.eggObjectMap, proto.id, /* @__PURE__ */ new Map());
|
|
46
|
+
if (!protoObjMap.has(name)) {
|
|
47
|
+
const protoObjPromiseMap = MapUtil.getOrStore(this.eggObjectPromiseMap, proto.id, /* @__PURE__ */ new Map());
|
|
48
|
+
if (!protoObjPromiseMap.has(name)) {
|
|
49
|
+
const objPromise = EggObjectFactory.createObject(name, proto);
|
|
50
|
+
protoObjPromiseMap.set(name, objPromise);
|
|
51
|
+
const obj = await objPromise;
|
|
52
|
+
protoObjPromiseMap.delete(name);
|
|
53
|
+
protoObjMap.set(name, obj);
|
|
54
|
+
} else await protoObjPromiseMap.get(name);
|
|
55
|
+
}
|
|
56
|
+
return protoObjMap.get(name);
|
|
57
|
+
}
|
|
58
|
+
getEggObject(name, proto) {
|
|
59
|
+
const protoObjMap = this.eggObjectMap.get(proto.id);
|
|
60
|
+
if (!protoObjMap || !protoObjMap.has(name)) throw new Error(`EggObject ${String(proto.name)} not found`);
|
|
61
|
+
return protoObjMap.get(name);
|
|
62
|
+
}
|
|
63
|
+
static createModuleLoadUnitInstance(ctx) {
|
|
64
|
+
return new AppLoadUnitInstance(ctx.loadUnit);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
82
67
|
LoadUnitInstanceFactory.registerLoadUnitInstanceClass(EggLoadUnitType.APP, AppLoadUnitInstance.createModuleLoadUnitInstance);
|
|
83
|
-
|
|
68
|
+
|
|
69
|
+
//#endregion
|
|
70
|
+
export { AppLoadUnitInstance };
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { EggPrototype } from "@eggjs/metadata";
|
|
2
|
+
import { LoadUnitInstance } from "@eggjs/tegg-runtime";
|
|
3
|
+
import { Application, Context } from "egg";
|
|
4
|
+
|
|
5
|
+
//#region src/lib/CompatibleUtil.d.ts
|
|
6
|
+
declare class CompatibleUtil {
|
|
7
|
+
static singletonProtoCache: Map<PropertyKey, EggPrototype>;
|
|
8
|
+
static requestProtoCache: Map<PropertyKey, EggPrototype>;
|
|
9
|
+
static getSingletonProto(name: PropertyKey): EggPrototype;
|
|
10
|
+
static getRequestProto(name: PropertyKey): EggPrototype;
|
|
11
|
+
private static singletonModuleProxyFactory;
|
|
12
|
+
static appCompatible(app: Application, loadUnitInstance: LoadUnitInstance): void;
|
|
13
|
+
static contextModuleProxyFactory(holder: Record<string, any>, ctx: Context, loadUnitInstance: LoadUnitInstance): any;
|
|
14
|
+
/**
|
|
15
|
+
* Compatible the context module, only for koa application
|
|
16
|
+
* @param contextPrototype - The prototype of the context
|
|
17
|
+
* @param loadUnitInstances - The load unit instances
|
|
18
|
+
*/
|
|
19
|
+
static contextModuleCompatible(contextPrototype: any, loadUnitInstances: LoadUnitInstance[]): void;
|
|
20
|
+
static clean(): void;
|
|
19
21
|
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { CompatibleUtil };
|