@vercube/di 0.0.43 → 0.0.45
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 +1 -11
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -27,7 +27,6 @@ var BaseDecorator = class {
|
|
|
27
27
|
*/
|
|
28
28
|
destroyed() {}
|
|
29
29
|
};
|
|
30
|
-
|
|
31
30
|
//#endregion
|
|
32
31
|
//#region src/Utils/Utils.ts
|
|
33
32
|
/**
|
|
@@ -130,7 +129,6 @@ function destroyContainer(container) {
|
|
|
130
129
|
container.getAllServices().forEach((service) => destroyDecorators(service, container));
|
|
131
130
|
containerMap.delete(container);
|
|
132
131
|
}
|
|
133
|
-
|
|
134
132
|
//#endregion
|
|
135
133
|
//#region src/Domain/ContainerEvents.ts
|
|
136
134
|
/**
|
|
@@ -153,7 +151,6 @@ var ContainerEvents = class {
|
|
|
153
151
|
for (const handler of this.fOnExpanded) handler(serviceKeys);
|
|
154
152
|
}
|
|
155
153
|
};
|
|
156
|
-
|
|
157
154
|
//#endregion
|
|
158
155
|
//#region src/Domain/Container.ts
|
|
159
156
|
/**
|
|
@@ -483,7 +480,6 @@ var Container = class Container {
|
|
|
483
480
|
return "Unknown";
|
|
484
481
|
}
|
|
485
482
|
};
|
|
486
|
-
|
|
487
483
|
//#endregion
|
|
488
484
|
//#region src/Types/IOCTypes.ts
|
|
489
485
|
let IOC;
|
|
@@ -505,7 +501,6 @@ let IOC;
|
|
|
505
501
|
return DependencyType;
|
|
506
502
|
}({});
|
|
507
503
|
})(IOC || (IOC = {}));
|
|
508
|
-
|
|
509
504
|
//#endregion
|
|
510
505
|
//#region src/Domain/Engine.ts
|
|
511
506
|
/**
|
|
@@ -622,7 +617,6 @@ const IOCEngine = {
|
|
|
622
617
|
injectDeps,
|
|
623
618
|
getDeps
|
|
624
619
|
};
|
|
625
|
-
|
|
626
620
|
//#endregion
|
|
627
621
|
//#region src/Decorators/Inject.ts
|
|
628
622
|
/**
|
|
@@ -635,7 +629,6 @@ function Inject(key) {
|
|
|
635
629
|
IOCEngine.registerInject(target, propertyName, key, IOC.DependencyType.STANDARD);
|
|
636
630
|
};
|
|
637
631
|
}
|
|
638
|
-
|
|
639
632
|
//#endregion
|
|
640
633
|
//#region src/Decorators/InjectOptional.ts
|
|
641
634
|
/**
|
|
@@ -648,7 +641,6 @@ function InjectOptional(key) {
|
|
|
648
641
|
IOCEngine.registerInject(target, propertyName, key, IOC.DependencyType.OPTIONAL);
|
|
649
642
|
};
|
|
650
643
|
}
|
|
651
|
-
|
|
652
644
|
//#endregion
|
|
653
645
|
//#region src/Decorators/Init.ts
|
|
654
646
|
/**
|
|
@@ -671,7 +663,6 @@ var InitDecorator = class extends BaseDecorator {
|
|
|
671
663
|
function Init() {
|
|
672
664
|
return createDecorator(InitDecorator, {});
|
|
673
665
|
}
|
|
674
|
-
|
|
675
666
|
//#endregion
|
|
676
667
|
//#region src/Decorators/Destroy.ts
|
|
677
668
|
/**
|
|
@@ -708,6 +699,5 @@ var DestroyDecorator = class extends BaseDecorator {
|
|
|
708
699
|
function Destroy() {
|
|
709
700
|
return createDecorator(DestroyDecorator, {});
|
|
710
701
|
}
|
|
711
|
-
|
|
712
702
|
//#endregion
|
|
713
|
-
export { BaseDecorator, Container, Destroy, IOC, Identity, Init, Inject, InjectOptional, createDecorator, destroyContainer, destroyDecorators, initializeContainer, initializeDecorators };
|
|
703
|
+
export { BaseDecorator, Container, Destroy, IOC, Identity, Init, Inject, InjectOptional, createDecorator, destroyContainer, destroyDecorators, initializeContainer, initializeDecorators };
|