lakutata
Version:
An IoC-based universal application framework.
35 lines (24 loc) • 757 B
JavaScript
;
Object.defineProperty(exports, Symbol.toStringTag, {
value: "Module"
});
const e = require("../../../constants/DIMetadataKey.cjs");
const t = require("node:crypto");
require("../../../../vendor/Package.4.cjs");
require("../../../../vendor/Package.5.cjs");
const r = new Map;
function o(o) {
if (!Reflect.hasOwnMetadata(e.DI_TARGET_CONSTRUCTOR_SYMBOL, o)) {
const n = Symbol(t.randomUUID());
r.set(n, o.name);
Reflect.defineMetadata(e.DI_TARGET_CONSTRUCTOR_SYMBOL, n, o);
}
return Reflect.getOwnMetadata(e.DI_TARGET_CONSTRUCTOR_SYMBOL, o);
}
function n(e) {
const t = r.get(e);
if (t) return t;
return e;
}
exports.ConstructorSymbol = o;
exports.ResolveConstructorNameBySymbol = n;