@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.
Files changed (2) hide show
  1. package/dist/index.mjs +14 -18
  2. 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
- let ServiceFactoryType = /* @__PURE__ */ function(ServiceFactoryType$1) {
480
- ServiceFactoryType$1["CLASS"] = "CLASS";
481
- ServiceFactoryType$1["CLASS_SINGLETON"] = "CLASS_SINGLETON";
482
- ServiceFactoryType$1["INSTANCE"] = "INSTANCE";
483
- return ServiceFactoryType$1;
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.ServiceFactoryType = ServiceFactoryType;
486
- let InjectMethod = /* @__PURE__ */ function(InjectMethod$1) {
487
- InjectMethod$1["LAZY"] = "LAZY";
488
- InjectMethod$1["STATIC"] = "STATIC";
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.InjectMethod = InjectMethod;
492
- let DependencyType = /* @__PURE__ */ function(DependencyType$1) {
493
- DependencyType$1[DependencyType$1["STANDARD"] = 0] = "STANDARD";
494
- DependencyType$1[DependencyType$1["OPTIONAL"] = 1] = "OPTIONAL";
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
- const newEntry = { deps: [] };
520
- entry = newEntry;
516
+ entry = { deps: [] };
521
517
  classMap.set(prototype, entry);
522
518
  }
523
519
  const newDep = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercube/di",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "Dependencie Injection module for Vercube framework",
5
5
  "repository": {
6
6
  "type": "git",