@eggjs/tegg-metadata 1.1.1 → 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-metadata
|
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/errors"), exports);
|
|
|
21
25
|
__exportStar(require("./src/util/ClassUtil"), exports);
|
|
22
26
|
require("./src/impl/ModuleLoadUnit");
|
|
23
27
|
require("./src/impl/EggPrototypeBuilder");
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNkRBQTJDO0FBQzNDLG9FQUFrRDtBQUNsRCwyRUFBeUQ7QUFDekQsZ0VBQThDO0FBQzlDLDJEQUF5QztBQUN6Qyx1REFBcUM7QUFDckMscURBQW1DO0FBQ25DLCtDQUE2QjtBQUM3Qix1REFBcUM7QUFFckMscUNBQW1DO0FBQ25DLDBDQUF3QyJ9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EggProtoImplClass } from '@eggjs/core-decorator';
|
|
2
2
|
import { LoadUnit } from '../model/LoadUnit';
|
|
3
3
|
import { EggPrototype, EggPrototypeLifecycleContext } from '../model/EggPrototype';
|
|
4
|
-
export
|
|
4
|
+
export type EggPrototypeCreator = (ctx: EggPrototypeLifecycleContext) => EggPrototype;
|
|
5
5
|
export declare class EggPrototypeCreatorFactory {
|
|
6
6
|
private static creatorMap;
|
|
7
7
|
static registerPrototypeCreator(type: string, creator: EggPrototypeCreator): void;
|
|
@@ -2,7 +2,7 @@ import { LoadUnit, LoadUnitLifecycleContext } from '../model/LoadUnit';
|
|
|
2
2
|
import { EggLoadUnitTypeLike } from '../enum/EggLoadUnitType';
|
|
3
3
|
import { Id } from '@eggjs/tegg-lifecycle';
|
|
4
4
|
import { Loader } from '../model/Loader';
|
|
5
|
-
export
|
|
5
|
+
export type LoadUnitCreator = (ctx: LoadUnitLifecycleContext) => LoadUnit;
|
|
6
6
|
export declare class LoadUnitFactory {
|
|
7
7
|
private static loadUnitCreatorMap;
|
|
8
8
|
private static loadUnitMap;
|
|
@@ -19,7 +19,7 @@ export interface InjectObjectProto {
|
|
|
19
19
|
*/
|
|
20
20
|
proto: EggPrototype;
|
|
21
21
|
}
|
|
22
|
-
export
|
|
22
|
+
export type EggPrototypeClass = new (...args: any[]) => EggPrototype;
|
|
23
23
|
export interface EggPrototypeLifecycleContext extends LifecycleContext {
|
|
24
24
|
clazz: EggProtoImplClass;
|
|
25
25
|
loadUnit: LoadUnit;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-metadata",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "tegg metadata",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"egg",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"node": ">=14.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@eggjs/core-decorator": "^1.
|
|
39
|
-
"@eggjs/tegg-common-util": "^1.
|
|
38
|
+
"@eggjs/core-decorator": "^1.4.0",
|
|
39
|
+
"@eggjs/tegg-common-util": "^1.2.0",
|
|
40
40
|
"@eggjs/tegg-lifecycle": "^1.0.0",
|
|
41
41
|
"egg-errors": "^2.2.3"
|
|
42
42
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "6bd085c1c265921d31110811f4d707875dc7acea"
|
|
50
50
|
}
|