@eggjs/tegg-runtime 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.3.0](https://github.com/eggjs/tegg/compare/v1.2.0...v1.3.0) (2022-07-01)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* allow inject proto and name ([#40](https://github.com/eggjs/tegg/issues/40)) ([abd1766](https://github.com/eggjs/tegg/commit/abd17665af2528c4c2e33f4c6b0fceddd8a4e76b))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [0.2.0](https://github.com/eggjs/tegg/compare/v0.1.19...v0.2.0) (2022-01-20)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @eggjs/tegg-runtime
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
|
@@ -21,4 +25,4 @@ __exportStar(require("./src/factory/LoadUnitInstanceFactory"), exports);
|
|
|
21
25
|
__exportStar(require("./src/impl/ModuleLoadUnitInstance"), exports);
|
|
22
26
|
require("./src/impl/EggAlwaysNewObjectContainer");
|
|
23
27
|
require("./src/impl/ModuleLoadUnitInstance");
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsMkRBQXlDO0FBQ3pDLHlEQUF1QztBQUN2QyxpRUFBK0M7QUFDL0MsK0RBQTZDO0FBQzdDLHdEQUFzQztBQUV0QyxvRUFBa0Q7QUFDbEQsaUVBQStDO0FBQy9DLHdFQUFzRDtBQUN0RCxvRUFBa0Q7QUFFbEQsa0RBQWdEO0FBQ2hELDZDQUEyQyJ9
|
|
@@ -4,7 +4,7 @@ import { EggContainer } from '../model/EggContainer';
|
|
|
4
4
|
import { LifecycleContext } from '@eggjs/tegg-lifecycle';
|
|
5
5
|
import { EggObjectName, ObjectInitTypeLike } from '@eggjs/core-decorator';
|
|
6
6
|
import { EggObject } from '../model/EggObject';
|
|
7
|
-
export
|
|
7
|
+
export type ContainerGetMethod = (proto: EggPrototype, ctx?: EggContext) => EggContainer<LifecycleContext>;
|
|
8
8
|
export declare class EggContainerFactory {
|
|
9
9
|
private static containerGetMethodMap;
|
|
10
10
|
static registerContainerGetMethod(initType: ObjectInitTypeLike, method: ContainerGetMethod): void;
|
|
@@ -6,7 +6,7 @@ interface EggObjectPair {
|
|
|
6
6
|
obj: EggObject;
|
|
7
7
|
ctx: EggObjectLifeCycleContext;
|
|
8
8
|
}
|
|
9
|
-
export
|
|
9
|
+
export type CreateObjectMethod = (name: EggObjectName, proto: EggPrototype, lifecycleContext: EggObjectLifeCycleContext, ctx?: EggContext) => Promise<EggObject>;
|
|
10
10
|
export declare class EggObjectFactory {
|
|
11
11
|
static eggObjectMap: Map<string, EggObjectPair>;
|
|
12
12
|
static eggObjectCreateMap: Map<EggPrototypeClass, CreateObjectMethod>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LoadUnitInstance, LoadUnitInstanceLifecycleContext } from '../model/LoadUnitInstance';
|
|
2
2
|
import { EggLoadUnitTypeLike, EggPrototype, LoadUnit } from '@eggjs/tegg-metadata';
|
|
3
|
-
|
|
3
|
+
type LoadUnitInstanceCreator = (ctx: LoadUnitInstanceLifecycleContext) => LoadUnitInstance;
|
|
4
4
|
export declare class LoadUnitInstanceFactory {
|
|
5
5
|
private static creatorMap;
|
|
6
6
|
private static instanceMap;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-runtime",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "tegg runtime",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -36,16 +36,16 @@
|
|
|
36
36
|
"node": ">=14.0.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@eggjs/core-decorator": "^1.
|
|
40
|
-
"@eggjs/tegg-common-util": "^1.
|
|
39
|
+
"@eggjs/core-decorator": "^1.4.0",
|
|
40
|
+
"@eggjs/tegg-common-util": "^1.2.0",
|
|
41
41
|
"@eggjs/tegg-lifecycle": "^1.0.0",
|
|
42
|
-
"@eggjs/tegg-metadata": "^1.
|
|
42
|
+
"@eggjs/tegg-metadata": "^1.4.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@eggjs/tegg-loader": "^1.
|
|
45
|
+
"@eggjs/tegg-loader": "^1.4.0"
|
|
46
46
|
},
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "6bd085c1c265921d31110811f4d707875dc7acea"
|
|
51
51
|
}
|