@eggjs/tegg-metadata
Advanced tools
Comparing version 3.37.1 to 3.37.3
@@ -1,2 +0,2 @@ | ||
export * from './src/enum/EggLoadUnitType'; | ||
export * from '@eggjs/tegg-types/metadata'; | ||
export * from './src/factory/EggPrototypeFactory'; | ||
@@ -7,3 +7,2 @@ export * from './src/factory/EggPrototypeCreatorFactory'; | ||
export * from './src/model/LoadUnit'; | ||
export * from './src/model/Loader'; | ||
export * from './src/errors'; | ||
@@ -10,0 +9,0 @@ export * from './src/util/ClassUtil'; |
@@ -17,3 +17,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./src/enum/EggLoadUnitType"), exports); | ||
__exportStar(require("@eggjs/tegg-types/metadata"), exports); | ||
__exportStar(require("./src/factory/EggPrototypeFactory"), exports); | ||
@@ -24,3 +24,2 @@ __exportStar(require("./src/factory/EggPrototypeCreatorFactory"), exports); | ||
__exportStar(require("./src/model/LoadUnit"), exports); | ||
__exportStar(require("./src/model/Loader"), exports); | ||
__exportStar(require("./src/errors"), exports); | ||
@@ -32,2 +31,2 @@ __exportStar(require("./src/util/ClassUtil"), exports); | ||
require("./src/impl/EggPrototypeBuilder"); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNkRBQTJDO0FBQzNDLG9FQUFrRDtBQUNsRCwyRUFBeUQ7QUFDekQsZ0VBQThDO0FBQzlDLDJEQUF5QztBQUN6Qyx1REFBcUM7QUFDckMscURBQW1DO0FBQ25DLCtDQUE2QjtBQUM3Qix1REFBcUM7QUFDckMsNEVBQTBEO0FBQzFELHVEQUFxQztBQUVyQyxxQ0FBbUM7QUFDbkMsMENBQXdDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsNkRBQTJDO0FBQzNDLG9FQUFrRDtBQUNsRCwyRUFBeUQ7QUFDekQsZ0VBQThDO0FBQzlDLDJEQUF5QztBQUN6Qyx1REFBcUM7QUFDckMsK0NBQTZCO0FBQzdCLHVEQUFxQztBQUNyQyw0RUFBMEQ7QUFDMUQsdURBQXFDO0FBRXJDLHFDQUFtQztBQUNuQywwQ0FBd0MifQ== |
import { FrameworkBaseError } from 'egg-errors'; | ||
import { EggPrototypeName, QualifierInfo } from '@eggjs/core-decorator'; | ||
export declare enum ErrorCodes { | ||
EGG_PROTO_NOT_FOUND = "EGG_PROTO_NOT_FOUND", | ||
MULTI_PROTO_FOUND = "MULTI_PROTO_FOUND", | ||
INCOMPATIBLE_PROTO_INJECT = "INCOMPATIBLE_PROTO_INJECT" | ||
} | ||
import type { EggPrototypeName, QualifierInfo } from '@eggjs/tegg-types'; | ||
export declare class TeggError extends FrameworkBaseError { | ||
@@ -9,0 +4,0 @@ get module(): string; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.IncompatibleProtoInject = exports.MultiPrototypeFound = exports.EggPrototypeNotFound = exports.TeggError = exports.ErrorCodes = void 0; | ||
exports.IncompatibleProtoInject = exports.MultiPrototypeFound = exports.EggPrototypeNotFound = exports.TeggError = void 0; | ||
const egg_errors_1 = require("egg-errors"); | ||
var ErrorCodes; | ||
(function (ErrorCodes) { | ||
ErrorCodes["EGG_PROTO_NOT_FOUND"] = "EGG_PROTO_NOT_FOUND"; | ||
ErrorCodes["MULTI_PROTO_FOUND"] = "MULTI_PROTO_FOUND"; | ||
ErrorCodes["INCOMPATIBLE_PROTO_INJECT"] = "INCOMPATIBLE_PROTO_INJECT"; | ||
})(ErrorCodes || (exports.ErrorCodes = ErrorCodes = {})); | ||
const tegg_types_1 = require("@eggjs/tegg-types"); | ||
class TeggError extends egg_errors_1.FrameworkBaseError { | ||
@@ -22,3 +17,3 @@ get module() { | ||
: `Object ${String(protoName)} not found`; | ||
super(msg, ErrorCodes.EGG_PROTO_NOT_FOUND); | ||
super(msg, tegg_types_1.ErrorCodes.EGG_PROTO_NOT_FOUND); | ||
} | ||
@@ -30,3 +25,3 @@ } | ||
const msg = `multi proto found for name:${String(name)} and qualifiers ${JSON.stringify(qualifier)}${result ? `, result is ${result}` : ''}`; | ||
super(msg, ErrorCodes.MULTI_PROTO_FOUND); | ||
super(msg, tegg_types_1.ErrorCodes.MULTI_PROTO_FOUND); | ||
} | ||
@@ -37,6 +32,6 @@ } | ||
constructor(msg) { | ||
super(msg, ErrorCodes.INCOMPATIBLE_PROTO_INJECT); | ||
super(msg, tegg_types_1.ErrorCodes.INCOMPATIBLE_PROTO_INJECT); | ||
} | ||
} | ||
exports.IncompatibleProtoInject = IncompatibleProtoInject; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3JzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2Vycm9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwyQ0FBZ0Q7QUFHaEQsSUFBWSxVQUlYO0FBSkQsV0FBWSxVQUFVO0lBQ3BCLHlEQUEyQyxDQUFBO0lBQzNDLHFEQUF1QyxDQUFBO0lBQ3ZDLHFFQUF1RCxDQUFBO0FBQ3pELENBQUMsRUFKVyxVQUFVLDBCQUFWLFVBQVUsUUFJckI7QUFFRCxNQUFhLFNBQVUsU0FBUSwrQkFBa0I7SUFDL0MsSUFBSSxNQUFNO1FBQ1IsT0FBTyxNQUFNLENBQUM7SUFDaEIsQ0FBQztDQUNGO0FBSkQsOEJBSUM7QUFFRCxNQUFhLG9CQUFxQ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UFFLHVCQUFVLENBQUMseUJBQXlCLENBQUMsQ0FBQztJQUNuRCxDQUFDO0NBQ0Y7QUFKRCwwREFJQyJ9 |
@@ -1,5 +0,2 @@ | ||
import { EggProtoImplClass } from '@eggjs/core-decorator'; | ||
import { LoadUnit } from '../model/LoadUnit'; | ||
import { EggPrototype, EggPrototypeLifecycleContext } from '../model/EggPrototype'; | ||
export type EggPrototypeCreator = (ctx: EggPrototypeLifecycleContext) => EggPrototype; | ||
import type { EggProtoImplClass, EggPrototypeCreator, LoadUnit, EggPrototype } from '@eggjs/tegg-types'; | ||
export declare class EggPrototypeCreatorFactory { | ||
@@ -6,0 +3,0 @@ private static creatorMap; |
@@ -60,2 +60,2 @@ "use strict"; | ||
EggPrototypeCreatorFactory.creatorMap = new Map(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWdnUHJvdG90eXBlQ3JlYXRvckZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvZmFjdG9yeS9FZ2dQcm90b3R5cGVDcmVhdG9yRmFjdG9yeS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwwREFBMkY7QUFFM0Ysd0RBQThHO0FBSTlHLE1BQWEsMEJBQTBCO0lBR3JDLE1BQU0sQ0FBQyx3QkFBd0IsQ0FBQyxJQUFZLEVBQUUsT0FBNEI7UUFDeEUsSUFBSSxDQUFDLFVBQVUsQ0FBQyxHQUFHLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFDO0lBQ3JDLENBQUM7SUFFRCxNQUFNLENBQUMsbUJBQW1CLENBQUMsSUFBWTtRQUNyQyxPQUFPLElBQUksQ0FBQyxVQUFVLENBQUMsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ25DLENBQUM7SUFFRCxNQUFNLENBQUMsS0FBSyxDQUFDLFdBQVcsQ0FBQyxLQUF3Qix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BQWEsQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUM7WUFDMUMsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsQ0FBQztRQUNyQixDQUFDO1FBQ0QsT0FBTyxNQUFNLENBQUM7SUFFaEIsQ0FBQzs7QUF0REgsZ0VBdURDO0FBdERnQixxQ0FBVSxHQUFHLElBQUksR0FBRyxFQUErQixDQUFDIn0= |
@@ -1,4 +0,2 @@ | ||
import { QualifierInfo } from '@eggjs/core-decorator'; | ||
import { EggPrototype } from '../model/EggPrototype'; | ||
import { LoadUnit } from '../model/LoadUnit'; | ||
import type { EggPrototype, LoadUnit, QualifierInfo } from '@eggjs/tegg-types'; | ||
export declare class EggPrototypeFactory { | ||
@@ -5,0 +3,0 @@ static instance: EggPrototypeFactory; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EggPrototypeFactory = void 0; | ||
const core_decorator_1 = require("@eggjs/core-decorator"); | ||
const tegg_common_util_1 = require("@eggjs/tegg-common-util"); | ||
const tegg_types_1 = require("@eggjs/tegg-types"); | ||
const egg_errors_1 = require("egg-errors"); | ||
@@ -14,3 +14,3 @@ const errors_1 = require("../errors"); | ||
registerPrototype(proto, loadUnit) { | ||
if (proto.accessLevel === core_decorator_1.AccessLevel.PUBLIC) { | ||
if (proto.accessLevel === tegg_types_1.AccessLevel.PUBLIC) { | ||
const protoList = tegg_common_util_1.MapUtil.getOrStore(this.publicProtoMap, proto.name, []); | ||
@@ -22,3 +22,3 @@ protoList.push(proto); | ||
deletePrototype(proto, loadUnit) { | ||
if (proto.accessLevel === core_decorator_1.AccessLevel.PUBLIC) { | ||
if (proto.accessLevel === tegg_types_1.AccessLevel.PUBLIC) { | ||
const protos = this.publicProtoMap.get(proto.name); | ||
@@ -60,2 +60,2 @@ if (protos) { | ||
EggPrototypeFactory.instance = new EggPrototypeFactory(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaW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UFDLEtBQUksRUFBRSxDQUFDO0lBQzNFLENBQUM7O0FBcERILGtEQXFEQztBQXBEZSw0QkFBUSxHQUFHLElBQUksbUJBQW1CLEVBQUUsQUFBNUIsQ0FBNkIifQ== |
@@ -1,6 +0,2 @@ | ||
import { LoadUnit, LoadUnitLifecycleContext } from '../model/LoadUnit'; | ||
import { EggLoadUnitTypeLike } from '../enum/EggLoadUnitType'; | ||
import { Id } from '@eggjs/tegg-lifecycle'; | ||
import { Loader } from '../model/Loader'; | ||
export type LoadUnitCreator = (ctx: LoadUnitLifecycleContext) => LoadUnit; | ||
import type { EggLoadUnitTypeLike, Id, LoadUnit, Loader, LoadUnitCreator } from '@eggjs/tegg-types'; | ||
export declare class LoadUnitFactory { | ||
@@ -7,0 +3,0 @@ private static loadUnitCreatorMap; |
@@ -53,2 +53,2 @@ "use strict"; | ||
LoadUnitFactory.loadUnitIdMap = new Map(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9hZFVuaXRGYWN0b3J5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ZhY3RvcnkvTG9hZFVuaXRGYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLGdEQUE4RjtBQVk5RixNQUFhLGVBQWU7SUFLMUIsTUFBTSxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUMsUUFBZ0IsRUFBRSxJQUF5QixFQUFFLE1BQWM7UUFDckYsSUFBSSxJQUFJLENBQUMsV0FBVyxDQUFDLEdBQUcsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDO1lBQ25DLE9BQU8sSUFBSSxDQUFDLFdBQVcsQ0FBQyxHQUFHLENBQUMsUUFBUSxDQUFFLENBQUMsUUFBUSxDQUFDO1FBQ2xELENBQUM7UUFDRCxNQUFNLE9BQU8sR0FBRyxJQUFJLENBQUMsa0JBQWtCLENBQUMsR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UUsT0FBd0I7UUFDaEYsSUFBSSxDQUFDLGtCQUFrQixDQUFDLEdBQUcsQ0FBQyxJQUFJLEVBQUUsT0FBTyxDQUFDLENBQUM7SUFDN0MsQ0FBQzs7QUFoREgsMENBaURDO0FBaERnQixrQ0FBa0IsR0FBOEMsSUFBSSxHQUFHLEVBQUUsQ0FBQztBQUMxRSwyQkFBVyxHQUE4QixJQUFJLEdBQUcsRUFBRSxDQUFDO0FBQ25ELDZCQUFhLEdBQXNCLElBQUksR0FBRyxFQUFFLENBQUMifQ== |
@@ -1,18 +0,2 @@ | ||
import { ObjectInitTypeLike } from '@eggjs/core-decorator'; | ||
import { EggPrototype, EggPrototypeLifecycleContext } from '../model/EggPrototype'; | ||
export interface InjectObject { | ||
/** | ||
* property name obj inject to | ||
*/ | ||
refName: PropertyKey; | ||
/** | ||
* obj's name will be injected | ||
*/ | ||
objName: PropertyKey; | ||
/** | ||
* obj's initType will be injected | ||
* if null same as current obj | ||
*/ | ||
initType?: ObjectInitTypeLike; | ||
} | ||
import type { EggPrototype, EggPrototypeLifecycleContext } from '@eggjs/tegg-types'; | ||
export declare class EggPrototypeBuilder { | ||
@@ -19,0 +3,0 @@ private clazz; |
@@ -7,7 +7,8 @@ "use strict"; | ||
exports.EggPrototypeBuilder = void 0; | ||
const assert_1 = __importDefault(require("assert")); | ||
const node_assert_1 = __importDefault(require("node:assert")); | ||
const core_decorator_1 = require("@eggjs/core-decorator"); | ||
const tegg_types_1 = require("@eggjs/tegg-types"); | ||
const EggPrototypeFactory_1 = require("../factory/EggPrototypeFactory"); | ||
const tegg_lifecycle_1 = require("@eggjs/tegg-lifecycle"); | ||
const EggPrototypeImpl_1 = require("../impl/EggPrototypeImpl"); | ||
const EggPrototypeImpl_1 = require("./EggPrototypeImpl"); | ||
const EggPrototypeCreatorFactory_1 = require("../factory/EggPrototypeCreatorFactory"); | ||
@@ -24,3 +25,3 @@ const errors_1 = require("../errors"); | ||
const filepath = core_decorator_1.PrototypeUtil.getFilePath(clazz); | ||
(0, assert_1.default)(filepath, 'not find filepath'); | ||
(0, node_assert_1.default)(filepath, 'not find filepath'); | ||
const builder = new EggPrototypeBuilder(); | ||
@@ -50,4 +51,4 @@ builder.clazz = clazz; | ||
{ | ||
attribute: core_decorator_1.InitTypeQualifierAttribute, | ||
value: core_decorator_1.ObjectInitType.CONTEXT, | ||
attribute: tegg_types_1.InitTypeQualifierAttribute, | ||
value: tegg_types_1.ObjectInitType.CONTEXT, | ||
}, | ||
@@ -62,3 +63,3 @@ ]; | ||
{ | ||
attribute: core_decorator_1.InitTypeQualifierAttribute, | ||
attribute: tegg_types_1.InitTypeQualifierAttribute, | ||
value: this.initType, | ||
@@ -75,3 +76,3 @@ }, | ||
catch (e) { | ||
if (!(e instanceof errors_1.MultiPrototypeFound && !propertyQualifiers.find(t => t.attribute === core_decorator_1.InitTypeQualifierAttribute))) { | ||
if (!(e instanceof errors_1.MultiPrototypeFound && !propertyQualifiers.find(t => t.attribute === tegg_types_1.InitTypeQualifierAttribute))) { | ||
throw e; | ||
@@ -107,3 +108,3 @@ } | ||
exports.EggPrototypeBuilder = EggPrototypeBuilder; | ||
EggPrototypeCreatorFactory_1.EggPrototypeCreatorFactory.registerPrototypeCreator(core_decorator_1.DEFAULT_PROTO_IMPL_TYPE, EggPrototypeBuilder.create); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWdnUHJvdG90eXBlQnVpbGRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbXBsL0VnZ1Byb3RvdHlwZUJ1aWxkZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsb0RBQTRCO0FBQzVCLDBEQU8rQjtBQUcvQix3RUFBcUU7QUFDckUsMERBQXNEO0FBQ3RELCtEQUE0RDtBQUM1RCxzRkFBbUY7QUFDbkYsc0NBQXNFO0FBa0J0RSxNQUFh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QUMsT0FBTyxDQUFDLENBQUM7WUFDL0YsTUFBTSxLQUFLLEdBQUcsSUFBSSxDQUFDLHlCQUF5QixDQUFDLFlBQVksQ0FBQyxDQUFDO1lBQzNELGtCQUFrQixDQUFDLElBQUksQ0FBQztnQkFDdEIsT0FBTyxFQUFFLFlBQVksQ0FBQyxPQUFPO2dCQUM3QixPQUFPLEVBQUUsWUFBWSxDQUFDLE9BQU87Z0JBQzdCLFVBQVUsRUFBRSxrQkFBa0I7Z0JBQzlCLEtBQUs7YUFDTixDQUFDLENBQUM7UUFDTCxDQUFDO1FBQ0QsTUFBTSxFQUFFLEdBQUcsOEJBQWEsQ0FBQyxhQUFhLENBQUMsSUFBSSxDQUFDLFFBQVEsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFDO1FBQ3BFLE9BQU8sSUFBSSxtQ0FBZ0IsQ0FDekIsRUFBRSxFQUNGLElBQUksQ0FBQyxJQUFJLEVBQ1QsSUFBSSxDQUFDLEtBQUssRUFDVixJQUFJLENBQUMsUUFBUSxFQUNiLElBQUksQ0FBQyxRQUFRLEVBQ2IsSUFBSSxDQUFDLFdBQVcsRUFDaEIsa0JBQWtCLEVBQ2xCLElBQUksQ0FBQyxRQUFRLENBQUMsRUFBRSxFQUNoQixJQUFJLENBQUMsVUFBVSxFQUNmLElBQUksQ0FBQyxTQUFTLENBQ2YsQ0FBQztJQUNKLENBQUM7Q0FDRjtBQXpHRCxrREF5R0M7QUFFRCx1REFBMEIsQ0FBQyx3QkFBd0IsQ0FBQyxvQ0FBdUIsRUFBRSxtQkFBbUIsQ0FBQyxNQUFNLENBQUMsQ0FBQyJ9 |
@@ -1,4 +0,2 @@ | ||
import { EggPrototype, InjectObjectProto } from '../model/EggPrototype'; | ||
import { AccessLevel, EggProtoImplClass, EggPrototypeName, MetaDataKey, ObjectInitTypeLike, QualifierInfo, QualifierValue } from '@eggjs/core-decorator'; | ||
import { Id } from '@eggjs/tegg-lifecycle'; | ||
import type { AccessLevel, EggPrototype, EggProtoImplClass, EggPrototypeName, MetaDataKey, ObjectInitTypeLike, QualifierInfo, QualifierValue, Id, InjectObjectProto } from '@eggjs/tegg-types'; | ||
export declare class EggPrototypeImpl implements EggPrototype { | ||
@@ -5,0 +3,0 @@ private readonly clazz; |
@@ -42,2 +42,2 @@ "use strict"; | ||
exports.EggPrototypeImpl = EggPrototypeImpl; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWdnUHJvdG90eXBlSW1wbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9pbXBsL0VnZ1Byb3RvdHlwZUltcGwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsMERBTStCO0FBSS9CLE1BQWEsZ0JBQWdCO0lBYTNCLFlBQ0UsRUFBVSxFQUNWLElBQXNCLEVBQ3RCLEtBQXdCLEVBQ3hCLFFBQWdCLEVBQ2hCLFFBQTRCLEVBQzVCLFdBQXdCLEVBQ3hCLGVBQW9DLEVBQ3BDLFVBQWMsRUFDZCxVQUEyQixFQUMzQixTQUFrQjtRQUVsQixJQUFJLENBQUMsRUFBRSxHQUFHLEVBQUUsQ0FBQztRQUNiLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO1FBQ25CLElBQUksQ0FBQyxJQUFJLEdBQUcsSUFBSSxDQUFDO1FBQ2pCLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxRQUFRLEdBQUcsUUFBUSxDQUFDO1FBQ3pCLElBQUksQ0FBQyxXQUFXLEdBQUcsV0FBVyxDQUFDO1FBQy9CLElBQUksQ0FBQyxhQUFhLEdBQUcsZUFBZSxDQUFDO1FBQ3JDLElBQUksQ0FBQyxVQUFVLEdBQUcsVUFBVSxDQUFDO1FBQzdCLElBQUksQ0FBQyxVQUFVLEdB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; | ||
import { LoadUnit, LoadUnitLifecycleContext } from '@eggjs/tegg-metadata'; | ||
import type { EggProtoImplClass, LifecycleHook, LoadUnit, LoadUnitLifecycleContext } from '@eggjs/tegg-types'; | ||
export declare class LoadUnitMultiInstanceProtoHook implements LifecycleHook<LoadUnitLifecycleContext, LoadUnit> { | ||
@@ -5,0 +3,0 @@ multiInstanceClazzSet: Set<EggProtoImplClass>; |
@@ -5,3 +5,4 @@ "use strict"; | ||
const core_decorator_1 = require("@eggjs/core-decorator"); | ||
const tegg_metadata_1 = require("@eggjs/tegg-metadata"); | ||
const EggPrototypeCreatorFactory_1 = require("../factory/EggPrototypeCreatorFactory"); | ||
const EggPrototypeFactory_1 = require("../factory/EggPrototypeFactory"); | ||
class LoadUnitMultiInstanceProtoHook { | ||
@@ -20,5 +21,5 @@ constructor() { | ||
for (const clazz of multiInstanceClazzList) { | ||
const protos = await tegg_metadata_1.EggPrototypeCreatorFactory.createProto(clazz, loadUnit); | ||
const protos = await EggPrototypeCreatorFactory_1.EggPrototypeCreatorFactory.createProto(clazz, loadUnit); | ||
for (const proto of protos) { | ||
tegg_metadata_1.EggPrototypeFactory.instance.registerPrototype(proto, loadUnit); | ||
EggPrototypeFactory_1.EggPrototypeFactory.instance.registerPrototype(proto, loadUnit); | ||
} | ||
@@ -29,2 +30,2 @@ } | ||
exports.LoadUnitMultiInstanceProtoHook = LoadUnitMultiInstanceProtoHook; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9hZFVuaXRNdWx0aUluc3RhbmNlUHJvdG9Ib29rLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ltcGwvTG9hZFVuaXRNdWx0aUluc3RhbmNlUHJvdG9Ib29rLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLDBEQUF5RTtBQUN6RSx3REFJOEI7QUFFOUIsTUFBYSw4QkFBOEI7SUF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@@ -1,6 +0,3 @@ | ||
import { EggProtoImplClass, QualifierInfo } from '@eggjs/core-decorator'; | ||
import { LoadUnit, LoadUnitLifecycleContext } from '../model/LoadUnit'; | ||
import { Loader } from '../model/Loader'; | ||
import { EggPrototype } from '../model/EggPrototype'; | ||
import { EggLoadUnitType } from '../enum/EggLoadUnitType'; | ||
import { EggLoadUnitType } from '@eggjs/tegg-types'; | ||
import type { EggProtoImplClass, EggPrototype, Loader, LoadUnit, LoadUnitLifecycleContext, QualifierInfo } from '@eggjs/tegg-types'; | ||
export declare class ModuleGraph { | ||
@@ -7,0 +4,0 @@ private graph; |
@@ -7,4 +7,5 @@ "use strict"; | ||
exports.ModuleLoadUnit = exports.ModuleGraph = void 0; | ||
const assert_1 = __importDefault(require("assert")); | ||
const path_1 = __importDefault(require("path")); | ||
const node_assert_1 = __importDefault(require("node:assert")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const tegg_types_1 = require("@eggjs/tegg-types"); | ||
const tegg_common_util_1 = require("@eggjs/tegg-common-util"); | ||
@@ -14,3 +15,2 @@ const core_decorator_1 = require("@eggjs/core-decorator"); | ||
const tegg_lifecycle_1 = require("@eggjs/tegg-lifecycle"); | ||
const EggLoadUnitType_1 = require("../enum/EggLoadUnitType"); | ||
const EggPrototypeFactory_1 = require("../factory/EggPrototypeFactory"); | ||
@@ -67,3 +67,3 @@ const LoadUnitFactory_1 = require("../factory/LoadUnitFactory"); | ||
const initTypeQualifier = { | ||
attribute: core_decorator_1.InitTypeQualifierAttribute, | ||
attribute: tegg_types_1.InitTypeQualifierAttribute, | ||
value: parentInitTye, | ||
@@ -122,3 +122,3 @@ }; | ||
this.protoMap = new Map(); | ||
this.type = EggLoadUnitType_1.EggLoadUnitType.MODULE; | ||
this.type = tegg_types_1.EggLoadUnitType.MODULE; | ||
this.id = tegg_lifecycle_1.IdenticalUtil.createLoadUnitId(name); | ||
@@ -133,3 +133,3 @@ this.name = name; | ||
const defaultQualifier = [{ | ||
attribute: core_decorator_1.InitTypeQualifierAttribute, | ||
attribute: tegg_types_1.InitTypeQualifierAttribute, | ||
value: core_decorator_1.PrototypeUtil.getInitType(clazz, { | ||
@@ -140,3 +140,3 @@ unitPath: this.unitPath, | ||
}, { | ||
attribute: core_decorator_1.LoadUnitNameQualifierAttribute, | ||
attribute: tegg_types_1.LoadUnitNameQualifierAttribute, | ||
value: this.name, | ||
@@ -200,6 +200,6 @@ }]; | ||
static createModule(ctx) { | ||
const pkgPath = path_1.default.join(ctx.unitPath, 'package.json'); | ||
const pkgPath = node_path_1.default.join(ctx.unitPath, 'package.json'); | ||
// eslint-disable-next-line @typescript-eslint/no-var-requires | ||
const pkg = require(pkgPath); | ||
(0, assert_1.default)(pkg.eggModule, `module config not found in package ${pkgPath}`); | ||
(0, node_assert_1.default)(pkg.eggModule, `module config not found in package ${pkgPath}`); | ||
const { name } = pkg.eggModule; | ||
@@ -210,3 +210,3 @@ return new ModuleLoadUnit(name, ctx.unitPath, ctx.loader); | ||
exports.ModuleLoadUnit = ModuleLoadUnit; | ||
LoadUnitFactory_1.LoadUnitFactory.registerLoadUnitCreator(EggLoadUnitType_1.EggLoadUnitType.MODULE, ModuleLoadUnit.createModule); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTW9kdWxlTG9hZFVuaXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvaW1wbC9Nb2R1bGVMb2FkVW5pdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxvREFBNEI7QUFDNUIsZ0RBQXdCO0FBRXhCLDhEQUFrRjtBQUNsRiwwREFTK0I7QUFDL0IsMkNBQW9EO0FBQ3BELDBEQUFzRDtBQUl0RCw2REFBMEQ7QUFDMUQsd0VBQXFFO0FBQ3JFLGdFQUE2RDtBQUM3RCxzRkFBbUY7QUFDbkYsc0NBQWdEO0FBRWhELElBQUksRUFBRSxHQUF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QUMsU0FBUyxFQUFFLHNDQUFzQyxPQUFPLEVBQUUsQ0FBQyxDQUFDO1FBQ3ZFLE1BQU0sRUFBRSxJQUFJLEVBQUUsR0FBRyxHQUFHLENBQUMsU0FBUyxDQUFDO1FBQy9CLE9BQU8sSUFBSSxjQUFjLENBQUMsSUFBSSxFQUFFLEdBQUcsQ0FBQyxRQUFRLEVBQUUsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQzVELENBQUM7Q0FDRjtBQXBHRCx3Q0FvR0M7QUFFRCxpQ0FBZSxDQUFDLHVCQUF1QixDQUFDLDRCQUFlLENBQUMsTUFBTSxFQUFFLGNBQWMsQ0FBQyxZQUFZLENBQUMsQ0FBQyJ9 |
@@ -1,3 +0,4 @@ | ||
import { Graph, GraphNode, GraphNodeObj, ModuleReference } from '@eggjs/tegg-common-util'; | ||
import { AccessLevel, EggProtoImplClass, EggPrototypeName, QualifierInfo } from '@eggjs/core-decorator'; | ||
import { Graph, GraphNode } from '@eggjs/tegg-common-util'; | ||
import { AccessLevel } from '@eggjs/tegg-types'; | ||
import type { EggProtoImplClass, EggPrototypeName, GraphNodeObj, ModuleReference, QualifierInfo } from '@eggjs/tegg-types'; | ||
export interface InstanceClazzMeta { | ||
@@ -4,0 +5,0 @@ name: PropertyKey; |
@@ -11,2 +11,3 @@ "use strict"; | ||
const core_decorator_1 = require("@eggjs/core-decorator"); | ||
const tegg_types_1 = require("@eggjs/tegg-types"); | ||
function verifyQualifier(clazzQualifiers, qualifier) { | ||
@@ -90,3 +91,3 @@ const selfQualifiers = clazzQualifiers.find(t => t.attribute === qualifier.attribute); | ||
// 1. check accessLevel | ||
if (obj.instanceModule !== intoModule && obj.accessLevel === core_decorator_1.AccessLevel.PRIVATE) { | ||
if (obj.instanceModule !== intoModule && obj.accessLevel === tegg_types_1.AccessLevel.PRIVATE) { | ||
return false; | ||
@@ -99,4 +100,4 @@ } | ||
if (mayObjs.length > 1) { | ||
const initTypeQualifiers = core_decorator_1.INIT_TYPE_TRY_ORDER.map(type => ({ | ||
attribute: core_decorator_1.InitTypeQualifierAttribute, | ||
const initTypeQualifiers = tegg_types_1.INIT_TYPE_TRY_ORDER.map(type => ({ | ||
attribute: tegg_types_1.InitTypeQualifierAttribute, | ||
value: type, | ||
@@ -119,3 +120,3 @@ })); | ||
const moduleNameQualifiers = { | ||
attribute: core_decorator_1.LoadUnitNameQualifierAttribute, | ||
attribute: tegg_types_1.LoadUnitNameQualifierAttribute, | ||
value: intoModule.val.name, | ||
@@ -159,3 +160,3 @@ }; | ||
const defaultQualifier = [{ | ||
attribute: core_decorator_1.InitTypeQualifierAttribute, | ||
attribute: tegg_types_1.InitTypeQualifierAttribute, | ||
value: core_decorator_1.PrototypeUtil.getInitType(clazz, { | ||
@@ -166,3 +167,3 @@ unitPath: this.moduleConfig.path, | ||
}, { | ||
attribute: core_decorator_1.LoadUnitNameQualifierAttribute, | ||
attribute: tegg_types_1.LoadUnitNameQualifierAttribute, | ||
value: this.name, | ||
@@ -226,2 +227,2 @@ }]; | ||
exports.AppGraph = AppGraph; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQXBwR3JhcGguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWwvQXBwR3JhcGgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsOERBQWlDO0FBQ2pDLDBEQUE2QjtBQUM3Qiw4REFBNEc7QUFDNUcsMERBVStCO0FBWS9CLFNBQVMsZUFBZSxDQUFDLGVBQWdDLEVBQUUsU0FBd0I7SUFDakYsTUFBTSxjQUFjLEdBQUcsZUFBZSxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxTQUFTLEtBQUssU0FBUyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ3RGLE9BQU8sQ0FBQSxjQUFjLGFBQ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YsT0FBTyxDQUFDLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxRQUFRLEtBQUssSUFBSSxJQUFJLENBQUMsQ0FBQyxXQUFXLENBQUMsSUFBSSxHQUFHLENBQUMsQ0FBQztRQUN4RSxDQUFDLENBQUM7YUFDRCxHQUFHLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLFlBQVksQ0FBQyxDQUFDO0lBQ2xDLENBQUM7Q0FDRjtBQWxERCw0QkFrREMifQ== |
@@ -1,57 +0,3 @@ | ||
import { QualifierInfo, EggPrototypeName, AccessLevel, ObjectInitTypeLike, MetaDataKey, EggProtoImplClass, EggPrototypeInfo, QualifierValue, QualifierAttribute } from '@eggjs/core-decorator'; | ||
import { LifecycleObject, LifecycleContext, LifecycleUtil } from '@eggjs/tegg-lifecycle'; | ||
import { LoadUnit } from './LoadUnit'; | ||
export interface InjectObjectProto { | ||
/** | ||
* property name obj inject to | ||
*/ | ||
refName: PropertyKey; | ||
/** | ||
* obj's name will be injected | ||
*/ | ||
objName: PropertyKey; | ||
/** | ||
* inject qualifiers | ||
*/ | ||
qualifiers: QualifierInfo[]; | ||
/** | ||
* inject prototype | ||
*/ | ||
proto: EggPrototype; | ||
} | ||
export type EggPrototypeClass = new (...args: any[]) => EggPrototype; | ||
export interface EggPrototypeLifecycleContext extends LifecycleContext { | ||
clazz: EggProtoImplClass; | ||
prototypeInfo: EggPrototypeInfo; | ||
loadUnit: LoadUnit; | ||
} | ||
export interface EggPrototype extends LifecycleObject<EggPrototypeLifecycleContext> { | ||
readonly name: EggPrototypeName; | ||
readonly initType: ObjectInitTypeLike; | ||
readonly accessLevel: AccessLevel; | ||
readonly loadUnitId: string; | ||
readonly injectObjects: InjectObjectProto[]; | ||
readonly className?: string; | ||
/** | ||
* get metedata for key | ||
* @param {MetaDataKey} metadataKey | ||
*/ | ||
getMetaData<T>(metadataKey: MetaDataKey): T | undefined; | ||
/** | ||
* verify proto is satisfied with qualifier | ||
* | ||
* default qualifier: | ||
* - load unit name | ||
* - init type | ||
* | ||
* @param qualifier | ||
*/ | ||
verifyQualifier(qualifier: QualifierInfo): boolean; | ||
verifyQualifiers(qualifiers: QualifierInfo[]): boolean; | ||
getQualifier(attribute: QualifierAttribute): QualifierValue | undefined; | ||
/** | ||
* construct egg object, not trigger lifecycle method/hook | ||
*/ | ||
constructEggObject(): object; | ||
} | ||
import { LifecycleUtil } from '@eggjs/tegg-lifecycle'; | ||
import type { EggPrototype, EggPrototypeLifecycleContext } from '@eggjs/tegg-types'; | ||
export declare const EggPrototypeLifecycleUtil: LifecycleUtil<EggPrototypeLifecycleContext, EggPrototype>; |
@@ -6,2 +6,2 @@ "use strict"; | ||
exports.EggPrototypeLifecycleUtil = new tegg_lifecycle_1.LifecycleUtil(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWdnUHJvdG90eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZGVsL0VnZ1Byb3RvdHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFRQSwwREFBeUY7QUFrRTVFLFFBQUEseUJBQXlCLEdBQUcsSUFBSSw4QkFBYSxFQUE4QyxDQUFDIn0= | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRWdnUHJvdG90eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL21vZGVsL0VnZ1Byb3RvdHlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSwwREFBc0Q7QUFHekMsUUFBQSx5QkFBeUIsR0FBRyxJQUFJLDhCQUFhLEVBQThDLENBQUMifQ== |
@@ -1,20 +0,3 @@ | ||
import { LifecycleContext, LifecycleObject, LifecycleUtil } from '@eggjs/tegg-lifecycle'; | ||
import { EggPrototypeName, QualifierInfo } from '@eggjs/core-decorator'; | ||
import { EggLoadUnitTypeLike } from '../enum/EggLoadUnitType'; | ||
import { EggPrototype } from './EggPrototype'; | ||
import { Loader } from './Loader'; | ||
export interface LoadUnitLifecycleContext extends LifecycleContext { | ||
unitPath: string; | ||
loader: Loader; | ||
} | ||
export interface LoadUnit extends LifecycleObject<LoadUnitLifecycleContext> { | ||
readonly name: string; | ||
readonly unitPath: string; | ||
readonly type: EggLoadUnitTypeLike; | ||
iterateEggPrototype(): IterableIterator<EggPrototype>; | ||
registerEggPrototype(proto: EggPrototype): void; | ||
deletePrototype(proto: EggPrototype): any; | ||
getEggPrototype(name: EggPrototypeName, qualifiers: QualifierInfo[]): EggPrototype[]; | ||
containPrototype(proto: EggPrototype): boolean; | ||
} | ||
import { LifecycleUtil } from '@eggjs/tegg-lifecycle'; | ||
import type { LoadUnit, LoadUnitLifecycleContext } from '@eggjs/tegg-types'; | ||
export declare const LoadUnitLifecycleUtil: LifecycleUtil<LoadUnitLifecycleContext, LoadUnit>; |
@@ -6,2 +6,2 @@ "use strict"; | ||
exports.LoadUnitLifecycleUtil = new tegg_lifecycle_1.LifecycleUtil(); | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9hZFVuaXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWwvTG9hZFVuaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMERBQXlGO0FBd0I1RSxRQUFBLHFCQUFxQixHQUFHLElBQUksOEJBQWEsRUFBc0MsQ0FBQyJ9 | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTG9hZFVuaXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvbW9kZWwvTG9hZFVuaXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsMERBQXNEO0FBR3pDLFFBQUEscUJBQXFCLEdBQUcsSUFBSSw4QkFBYSxFQUFzQyxDQUFDIn0= |
@@ -1,2 +0,2 @@ | ||
import { EggProtoImplClass } from '@eggjs/core-decorator'; | ||
import type { EggProtoImplClass } from '@eggjs/tegg-types'; | ||
export declare class ClassUtil { | ||
@@ -3,0 +3,0 @@ static classDescription(clazz: EggProtoImplClass): string; |
@@ -21,2 +21,2 @@ "use strict"; | ||
exports.ClassUtil = ClassUtil; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQ2xhc3NVdGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL3V0aWwvQ2xhc3NVdGlsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDBEQUF5RTtBQUV6RSxNQUFhLFNBQVM7SUFDcEIsTUFBTSxDQUFDLGdCQUFnQixDQUFDLEtBQXdCO1FBQzlDLE1BQU0sUUFBUSxHQUFHLDhCQUFhLENBQUMsV0FBVyxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQ2xELE1BQU0sSUFBSSxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDbkMsSUFBSSxJQUFJLEdBQUcsU0FBUyxNQUFNLENBQUMsSUFBSSxDQUFDLEVBQUUsQ0FBQztRQUNuQyxJQUFJLFFBQVEsRUFBRSxDQUFDO1lBQ2IsSUFBSSxJQUFJLElBQUksUUFBUSxFQUFFLENBQUM7UUFDekIsQ0FBQztRQUNELE9BQU8sSUFBSSxDQUFDO0lBQ2QsQ0FBQztJQUVELE1BQU0sQ0FBQyxTQUFTLENBQUMsS0FBd0I7UUFDdkMsTUFBTSxRQUFRLEdBQUcsOEJBQWEsQ0FBQyxXQUFXLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDb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MifQ== |
{ | ||
"name": "@eggjs/tegg-metadata", | ||
"version": "3.37.1", | ||
"version": "3.37.3", | ||
"description": "tegg metadata", | ||
@@ -38,5 +38,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@eggjs/core-decorator": "^3.37.1", | ||
"@eggjs/tegg-common-util": "^3.37.1", | ||
"@eggjs/tegg-lifecycle": "^3.37.1", | ||
"@eggjs/core-decorator": "^3.37.3", | ||
"@eggjs/tegg-common-util": "^3.37.3", | ||
"@eggjs/tegg-lifecycle": "^3.37.3", | ||
"@eggjs/tegg-types": "^3.37.3", | ||
"egg-errors": "^2.2.3" | ||
@@ -57,3 +58,3 @@ }, | ||
}, | ||
"gitHead": "5612b8fbf5bf131160c0db924534f6e232b2178e" | ||
"gitHead": "5ad6b48d45cebbdac751f2c70bcb398f9a468961" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
84963
5
29
1025