@eggjs/tegg-runtime 4.0.0-beta.6 → 4.0.0-beta.7
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/factory/EggContainerFactory.js +1 -1
- package/dist/factory/EggObjectFactory.js +1 -3
- package/dist/impl/ContextInitiator.js +0 -1
- package/dist/impl/EggAlwaysNewObjectContainer.js +0 -1
- package/dist/impl/EggObjectImpl.js +2 -4
- package/dist/impl/EggObjectUtil.js +0 -1
- package/dist/impl/index.js +2 -2
- package/dist/index.js +8 -8
- package/dist/model/AbstractEggContext.js +1 -2
- package/dist/model/index.js +2 -2
- package/package.json +7 -7
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ContextHandler } from "../model/ContextHandler.js";
|
|
2
|
-
import "../model/index.js";
|
|
3
2
|
import { debuglog } from "node:util";
|
|
4
3
|
import { EggPrototypeFactory } from "@eggjs/tegg-metadata";
|
|
5
4
|
import { NameUtil } from "@eggjs/tegg-common-util";
|
|
@@ -32,6 +31,7 @@ var EggContainerFactory = class EggContainerFactory {
|
|
|
32
31
|
if (ctx) {
|
|
33
32
|
if (!EggContainerFactory.ContextInitiatorClass) {
|
|
34
33
|
const { ContextInitiator } = await import("../impl/ContextInitiator.js");
|
|
34
|
+
debug("import ContextInitiator to fix dependency cycle");
|
|
35
35
|
EggContainerFactory.ContextInitiatorClass = ContextInitiator;
|
|
36
36
|
}
|
|
37
37
|
await EggContainerFactory.ContextInitiatorClass.createContextInitiator(ctx).init(obj);
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
+
import { EggObjectLifecycleUtil } from "../model/EggObject.js";
|
|
1
2
|
import { EggObjectImpl } from "../impl/EggObjectImpl.js";
|
|
2
3
|
import { LoadUnitInstanceFactory } from "./LoadUnitInstanceFactory.js";
|
|
3
|
-
import "../impl/index.js";
|
|
4
|
-
import { EggObjectLifecycleUtil } from "../model/EggObject.js";
|
|
5
|
-
import "../model/index.js";
|
|
6
4
|
import { LoadUnitFactory } from "@eggjs/tegg-metadata";
|
|
7
5
|
|
|
8
6
|
//#region src/factory/EggObjectFactory.ts
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { EggContainerFactory } from "../factory/EggContainerFactory.js";
|
|
2
2
|
import { EggObjectFactory } from "../factory/EggObjectFactory.js";
|
|
3
|
-
import "../factory/index.js";
|
|
4
3
|
import { ObjectInitType } from "@eggjs/tegg-types";
|
|
5
4
|
|
|
6
5
|
//#region src/impl/EggAlwaysNewObjectContainer.ts
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import { EggContainerFactory } from "../factory/EggContainerFactory.js";
|
|
2
|
-
import { EggObjectUtil } from "./EggObjectUtil.js";
|
|
3
|
-
import "../factory/index.js";
|
|
4
1
|
import { ContextHandler } from "../model/ContextHandler.js";
|
|
2
|
+
import { EggContainerFactory } from "../factory/EggContainerFactory.js";
|
|
5
3
|
import { EggObjectLifecycleUtil } from "../model/EggObject.js";
|
|
6
|
-
import "
|
|
4
|
+
import { EggObjectUtil } from "./EggObjectUtil.js";
|
|
7
5
|
import { EggObjectStatus, InjectType, ObjectInitType } from "@eggjs/tegg-types";
|
|
8
6
|
import { LoadUnitFactory } from "@eggjs/tegg-metadata";
|
|
9
7
|
import { IdenticalUtil } from "@eggjs/tegg-lifecycle";
|
package/dist/impl/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { EggObjectUtil } from "./EggObjectUtil.js";
|
|
2
|
+
import { EggObjectImpl } from "./EggObjectImpl.js";
|
|
1
3
|
import { ContextObjectGraph } from "./ContextObjectGraph.js";
|
|
2
4
|
import { ContextInitiator } from "./ContextInitiator.js";
|
|
3
5
|
import { EggAlwaysNewObjectContainer } from "./EggAlwaysNewObjectContainer.js";
|
|
4
|
-
import { EggObjectUtil } from "./EggObjectUtil.js";
|
|
5
|
-
import { EggObjectImpl } from "./EggObjectImpl.js";
|
|
6
6
|
import { ModuleLoadUnitInstance } from "./ModuleLoadUnitInstance.js";
|
|
7
7
|
|
|
8
8
|
export { };
|
package/dist/index.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
+
import { ContextHandler } from "./model/ContextHandler.js";
|
|
1
2
|
import { EggContainerFactory } from "./factory/EggContainerFactory.js";
|
|
2
|
-
import {
|
|
3
|
-
import { ContextInitiator } from "./impl/ContextInitiator.js";
|
|
4
|
-
import { EggAlwaysNewObjectContainer } from "./impl/EggAlwaysNewObjectContainer.js";
|
|
3
|
+
import { EggObjectLifecycleUtil } from "./model/EggObject.js";
|
|
5
4
|
import { EggObjectUtil } from "./impl/EggObjectUtil.js";
|
|
6
5
|
import { EggObjectImpl } from "./impl/EggObjectImpl.js";
|
|
7
6
|
import { LoadUnitInstanceLifecycleUtil } from "./model/LoadUnitInstance.js";
|
|
8
7
|
import { LoadUnitInstanceFactory } from "./factory/LoadUnitInstanceFactory.js";
|
|
9
|
-
import { ModuleLoadUnitInstance } from "./impl/ModuleLoadUnitInstance.js";
|
|
10
|
-
import "./impl/index.js";
|
|
11
8
|
import { EggObjectFactory } from "./factory/EggObjectFactory.js";
|
|
12
|
-
import "./factory/index.js";
|
|
13
|
-
import { ContextHandler } from "./model/ContextHandler.js";
|
|
14
9
|
import { EggContextLifecycleUtil } from "./model/EggContext.js";
|
|
15
10
|
import { AbstractEggContext } from "./model/AbstractEggContext.js";
|
|
16
|
-
import { EggObjectLifecycleUtil } from "./model/EggObject.js";
|
|
17
11
|
import "./model/index.js";
|
|
12
|
+
import { ContextObjectGraph } from "./impl/ContextObjectGraph.js";
|
|
13
|
+
import { ContextInitiator } from "./impl/ContextInitiator.js";
|
|
14
|
+
import { EggAlwaysNewObjectContainer } from "./impl/EggAlwaysNewObjectContainer.js";
|
|
15
|
+
import { ModuleLoadUnitInstance } from "./impl/ModuleLoadUnitInstance.js";
|
|
16
|
+
import "./impl/index.js";
|
|
17
|
+
import "./factory/index.js";
|
|
18
18
|
|
|
19
19
|
export * from "@eggjs/tegg-types/runtime"
|
|
20
20
|
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
+
import { ContextHandler } from "./ContextHandler.js";
|
|
1
2
|
import { EggContainerFactory } from "../factory/EggContainerFactory.js";
|
|
2
3
|
import { EggObjectFactory } from "../factory/EggObjectFactory.js";
|
|
3
|
-
import "../factory/index.js";
|
|
4
|
-
import { ContextHandler } from "./ContextHandler.js";
|
|
5
4
|
import { EggContextLifecycleUtil } from "./EggContext.js";
|
|
6
5
|
import { debuglog } from "node:util";
|
|
7
6
|
import { ObjectInitType } from "@eggjs/tegg-types";
|
package/dist/model/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { LoadUnitInstanceLifecycleUtil } from "./LoadUnitInstance.js";
|
|
2
1
|
import { ContextHandler } from "./ContextHandler.js";
|
|
2
|
+
import { EggObjectLifecycleUtil } from "./EggObject.js";
|
|
3
|
+
import { LoadUnitInstanceLifecycleUtil } from "./LoadUnitInstance.js";
|
|
3
4
|
import { EggContextLifecycleUtil } from "./EggContext.js";
|
|
4
5
|
import { AbstractEggContext } from "./AbstractEggContext.js";
|
|
5
|
-
import { EggObjectLifecycleUtil } from "./EggObject.js";
|
|
6
6
|
|
|
7
7
|
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-runtime",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.7",
|
|
4
4
|
"description": "tegg runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"node": ">=22.18.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@eggjs/core-decorator": "4.0.0-beta.
|
|
35
|
-
"@eggjs/tegg-
|
|
36
|
-
"@eggjs/tegg-
|
|
37
|
-
"@eggjs/tegg-
|
|
38
|
-
"@eggjs/tegg-
|
|
34
|
+
"@eggjs/core-decorator": "4.0.0-beta.7",
|
|
35
|
+
"@eggjs/tegg-common-util": "4.0.0-beta.7",
|
|
36
|
+
"@eggjs/tegg-lifecycle": "4.0.0-beta.7",
|
|
37
|
+
"@eggjs/tegg-types": "4.0.0-beta.7",
|
|
38
|
+
"@eggjs/tegg-metadata": "4.0.0-beta.7"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^22.10.5",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"tsdown": "^0.15.6",
|
|
44
44
|
"unplugin-unused": "^0.5.3",
|
|
45
45
|
"@eggjs/module-test-util": "4.0.0-beta.4",
|
|
46
|
-
"@eggjs/tegg-loader": "4.0.0-beta.
|
|
46
|
+
"@eggjs/tegg-loader": "4.0.0-beta.7"
|
|
47
47
|
},
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|