@vercube/di 0.0.23 → 0.0.24
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.mjs +14 -18
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -476,25 +476,22 @@ var Container = class Container {
|
|
|
476
476
|
//#region src/Types/IOCTypes.ts
|
|
477
477
|
let IOC;
|
|
478
478
|
(function(_IOC) {
|
|
479
|
-
|
|
480
|
-
ServiceFactoryType
|
|
481
|
-
ServiceFactoryType
|
|
482
|
-
ServiceFactoryType
|
|
483
|
-
return ServiceFactoryType
|
|
479
|
+
_IOC.ServiceFactoryType = /* @__PURE__ */ function(ServiceFactoryType) {
|
|
480
|
+
ServiceFactoryType["CLASS"] = "CLASS";
|
|
481
|
+
ServiceFactoryType["CLASS_SINGLETON"] = "CLASS_SINGLETON";
|
|
482
|
+
ServiceFactoryType["INSTANCE"] = "INSTANCE";
|
|
483
|
+
return ServiceFactoryType;
|
|
484
484
|
}({});
|
|
485
|
-
_IOC.
|
|
486
|
-
|
|
487
|
-
InjectMethod
|
|
488
|
-
InjectMethod
|
|
489
|
-
return InjectMethod$1;
|
|
485
|
+
_IOC.InjectMethod = /* @__PURE__ */ function(InjectMethod) {
|
|
486
|
+
InjectMethod["LAZY"] = "LAZY";
|
|
487
|
+
InjectMethod["STATIC"] = "STATIC";
|
|
488
|
+
return InjectMethod;
|
|
490
489
|
}({});
|
|
491
|
-
_IOC.
|
|
492
|
-
|
|
493
|
-
DependencyType
|
|
494
|
-
DependencyType
|
|
495
|
-
return DependencyType$1;
|
|
490
|
+
_IOC.DependencyType = /* @__PURE__ */ function(DependencyType) {
|
|
491
|
+
DependencyType[DependencyType["STANDARD"] = 0] = "STANDARD";
|
|
492
|
+
DependencyType[DependencyType["OPTIONAL"] = 1] = "OPTIONAL";
|
|
493
|
+
return DependencyType;
|
|
496
494
|
}({});
|
|
497
|
-
_IOC.DependencyType = DependencyType;
|
|
498
495
|
})(IOC || (IOC = {}));
|
|
499
496
|
|
|
500
497
|
//#endregion
|
|
@@ -516,8 +513,7 @@ const ROOT_PROTO = Object.getPrototypeOf({});
|
|
|
516
513
|
function registerInject(prototype, propertyName, dependency, type) {
|
|
517
514
|
let entry = classMap.get(prototype);
|
|
518
515
|
if (!entry) {
|
|
519
|
-
|
|
520
|
-
entry = newEntry;
|
|
516
|
+
entry = { deps: [] };
|
|
521
517
|
classMap.set(prototype, entry);
|
|
522
518
|
}
|
|
523
519
|
const newDep = {
|