@eggjs/tegg-dynamic-inject 1.3.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/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];
|
|
@@ -14,4 +18,4 @@ __exportStar(require("./src/EggObjectFactory"), exports);
|
|
|
14
18
|
__exportStar(require("./src/QualifierImplUtil"), exports);
|
|
15
19
|
__exportStar(require("./src/typing"), exports);
|
|
16
20
|
__exportStar(require("./src/QualifierImplDecoratorUtil"), exports);
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEseURBQXVDO0FBQ3ZDLDBEQUF3QztBQUN4QywrQ0FBNkI7QUFDN0IsbUVBQWlEIn0=
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { EggAbstractClazz } from './typing';
|
|
2
2
|
import { EggProtoImplClass, QualifierAttribute, QualifierValue } from '@eggjs/core-decorator';
|
|
3
|
-
export
|
|
3
|
+
export type ImplTypeEnum = {
|
|
4
4
|
[id: string]: QualifierValue;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ImplDecorator<T extends object, Enum extends ImplTypeEnum> = (type: Enum[keyof Enum]) => ((clazz: EggProtoImplClass<T>) => void);
|
|
7
7
|
export declare class QualifierImplDecoratorUtil {
|
|
8
8
|
static generatorDecorator<T extends object, Enum extends ImplTypeEnum>(abstractClazz: EggAbstractClazz<T>, attribute: QualifierAttribute): ImplDecorator<T, Enum>;
|
|
9
9
|
}
|
package/dist/src/typing.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/tegg-dynamic-inject",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"description": "tegg dyniamic inject",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@eggjs/core-decorator": "^1.
|
|
42
|
+
"@eggjs/core-decorator": "^1.4.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"coffee": "^5.4.0"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "6bd085c1c265921d31110811f4d707875dc7acea"
|
|
48
48
|
}
|