@noego/ioc 0.0.7 → 0.0.8

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 (181) hide show
  1. package/dist/framework/decorators/Component.cjs +41 -0
  2. package/dist/framework/decorators/Component.cjs.map +1 -0
  3. package/dist/framework/decorators/Component.d.cts +12 -0
  4. package/dist/framework/decorators/Component.d.ts +12 -0
  5. package/dist/framework/decorators/Component.js +17 -0
  6. package/dist/framework/decorators/Component.js.map +1 -0
  7. package/dist/framework/decorators/Inject.cjs +37 -0
  8. package/dist/framework/decorators/Inject.cjs.map +1 -0
  9. package/dist/{cjs/framework/decorators/Inject.d.ts → framework/decorators/Inject.d.cts} +3 -2
  10. package/dist/{esm/framework → framework}/decorators/Inject.d.ts +3 -2
  11. package/dist/framework/decorators/Inject.js +13 -0
  12. package/dist/framework/decorators/Inject.js.map +1 -0
  13. package/dist/framework/decorators/index.cjs +35 -0
  14. package/dist/framework/decorators/index.cjs.map +1 -0
  15. package/dist/framework/decorators/index.d.cts +4 -0
  16. package/dist/framework/decorators/index.d.ts +4 -0
  17. package/dist/framework/decorators/index.js +8 -0
  18. package/dist/framework/decorators/index.js.map +1 -0
  19. package/dist/framework/decorators/metadataKeys.cjs +35 -0
  20. package/dist/framework/decorators/metadataKeys.cjs.map +1 -0
  21. package/dist/framework/decorators/metadataKeys.d.cts +5 -0
  22. package/dist/framework/decorators/metadataKeys.d.ts +5 -0
  23. package/dist/framework/decorators/metadataKeys.js +9 -0
  24. package/dist/framework/decorators/metadataKeys.js.map +1 -0
  25. package/dist/framework/errors/ContainerErrors.cjs +61 -0
  26. package/dist/framework/errors/ContainerErrors.cjs.map +1 -0
  27. package/dist/{cjs/framework/errors/ContainerErrors.d.ts → framework/errors/ContainerErrors.d.cts} +7 -5
  28. package/dist/{esm/framework → framework}/errors/ContainerErrors.d.ts +7 -5
  29. package/dist/framework/errors/ContainerErrors.js +33 -0
  30. package/dist/framework/errors/ContainerErrors.js.map +1 -0
  31. package/dist/framework/implementation/Container.cjs +342 -0
  32. package/dist/framework/implementation/Container.cjs.map +1 -0
  33. package/dist/{cjs/framework/implementation/Container.d.ts → framework/implementation/Container.d.cts} +9 -6
  34. package/dist/{esm/framework → framework}/implementation/Container.d.ts +9 -6
  35. package/dist/framework/implementation/Container.js +320 -0
  36. package/dist/framework/implementation/Container.js.map +1 -0
  37. package/dist/framework/implementation/DecoratorSupport.cjs +92 -0
  38. package/dist/framework/implementation/DecoratorSupport.cjs.map +1 -0
  39. package/dist/framework/implementation/DecoratorSupport.d.cts +33 -0
  40. package/dist/framework/implementation/DecoratorSupport.d.ts +33 -0
  41. package/dist/framework/implementation/DecoratorSupport.js +63 -0
  42. package/dist/framework/implementation/DecoratorSupport.js.map +1 -0
  43. package/dist/framework/implementation/LoadAs.cjs +34 -0
  44. package/dist/framework/implementation/LoadAs.cjs.map +1 -0
  45. package/dist/{esm/framework/implementation/LoadAs.d.ts → framework/implementation/LoadAs.d.cts} +3 -1
  46. package/dist/{cjs/framework → framework}/implementation/LoadAs.d.ts +3 -1
  47. package/dist/framework/implementation/LoadAs.js +10 -0
  48. package/dist/framework/implementation/LoadAs.js.map +1 -0
  49. package/dist/framework/implementation/Parameter.cjs +82 -0
  50. package/dist/framework/implementation/Parameter.cjs.map +1 -0
  51. package/dist/{esm/framework/implementation/Parameter.d.ts → framework/implementation/Parameter.d.cts} +4 -2
  52. package/dist/{cjs/framework → framework}/implementation/Parameter.d.ts +4 -2
  53. package/dist/framework/implementation/Parameter.js +47 -0
  54. package/dist/framework/implementation/Parameter.js.map +1 -0
  55. package/dist/framework/interface/Container.cjs +17 -0
  56. package/dist/framework/interface/Container.cjs.map +1 -0
  57. package/dist/{esm/framework/interface/Container.d.ts → framework/interface/Container.d.cts} +10 -7
  58. package/dist/{cjs/framework → framework}/interface/Container.d.ts +10 -7
  59. package/dist/framework/interface/Container.js +1 -0
  60. package/dist/framework/interface/Container.js.map +1 -0
  61. package/dist/index.cjs +58 -0
  62. package/dist/index.cjs.map +1 -0
  63. package/dist/index.d.cts +12 -0
  64. package/dist/index.d.ts +12 -0
  65. package/dist/index.js +24 -0
  66. package/dist/index.js.map +1 -0
  67. package/package.json +16 -14
  68. package/dist/cjs/framework/decorators/Component.d.ts +0 -10
  69. package/dist/cjs/framework/decorators/Component.js +0 -25
  70. package/dist/cjs/framework/decorators/Component.js.map +0 -1
  71. package/dist/cjs/framework/decorators/Inject.js +0 -22
  72. package/dist/cjs/framework/decorators/Inject.js.map +0 -1
  73. package/dist/cjs/framework/decorators/index.d.ts +0 -3
  74. package/dist/cjs/framework/decorators/index.js +0 -24
  75. package/dist/cjs/framework/decorators/index.js.map +0 -1
  76. package/dist/cjs/framework/decorators/metadataKeys.d.ts +0 -3
  77. package/dist/cjs/framework/decorators/metadataKeys.js +0 -8
  78. package/dist/cjs/framework/decorators/metadataKeys.js.map +0 -1
  79. package/dist/cjs/framework/errors/ContainerErrors.js +0 -52
  80. package/dist/cjs/framework/errors/ContainerErrors.js.map +0 -1
  81. package/dist/cjs/framework/implementation/Container.js +0 -448
  82. package/dist/cjs/framework/implementation/Container.js.map +0 -1
  83. package/dist/cjs/framework/implementation/Container.test.d.ts +0 -1
  84. package/dist/cjs/framework/implementation/Container.test.js +0 -184
  85. package/dist/cjs/framework/implementation/Container.test.js.map +0 -1
  86. package/dist/cjs/framework/implementation/ContainerAsync.test.d.ts +0 -1
  87. package/dist/cjs/framework/implementation/ContainerAsync.test.js +0 -178
  88. package/dist/cjs/framework/implementation/ContainerAsync.test.js.map +0 -1
  89. package/dist/cjs/framework/implementation/ContainerBasic.test.d.ts +0 -1
  90. package/dist/cjs/framework/implementation/ContainerBasic.test.js +0 -101
  91. package/dist/cjs/framework/implementation/ContainerBasic.test.js.map +0 -1
  92. package/dist/cjs/framework/implementation/ContainerDecorators.test.d.ts +0 -1
  93. package/dist/cjs/framework/implementation/ContainerDecorators.test.js +0 -517
  94. package/dist/cjs/framework/implementation/ContainerDecorators.test.js.map +0 -1
  95. package/dist/cjs/framework/implementation/ContainerExtension.test.d.ts +0 -1
  96. package/dist/cjs/framework/implementation/ContainerExtension.test.js +0 -169
  97. package/dist/cjs/framework/implementation/ContainerExtension.test.js.map +0 -1
  98. package/dist/cjs/framework/implementation/ContainerLifetimes.test.d.ts +0 -1
  99. package/dist/cjs/framework/implementation/ContainerLifetimes.test.js +0 -154
  100. package/dist/cjs/framework/implementation/ContainerLifetimes.test.js.map +0 -1
  101. package/dist/cjs/framework/implementation/DecoratorSupport.d.ts +0 -31
  102. package/dist/cjs/framework/implementation/DecoratorSupport.js +0 -96
  103. package/dist/cjs/framework/implementation/DecoratorSupport.js.map +0 -1
  104. package/dist/cjs/framework/implementation/LoadAs.js +0 -10
  105. package/dist/cjs/framework/implementation/LoadAs.js.map +0 -1
  106. package/dist/cjs/framework/implementation/Parameter.js +0 -87
  107. package/dist/cjs/framework/implementation/Parameter.js.map +0 -1
  108. package/dist/cjs/framework/implementation/Parameter.test.d.ts +0 -1
  109. package/dist/cjs/framework/implementation/Parameter.test.js +0 -19
  110. package/dist/cjs/framework/implementation/Parameter.test.js.map +0 -1
  111. package/dist/cjs/framework/implementation/SimpleDecoratorTest.test.d.ts +0 -1
  112. package/dist/cjs/framework/implementation/SimpleDecoratorTest.test.js +0 -78
  113. package/dist/cjs/framework/implementation/SimpleDecoratorTest.test.js.map +0 -1
  114. package/dist/cjs/framework/implementation/SingletonTest.test.d.ts +0 -1
  115. package/dist/cjs/framework/implementation/SingletonTest.test.js +0 -85
  116. package/dist/cjs/framework/implementation/SingletonTest.test.js.map +0 -1
  117. package/dist/cjs/framework/interface/Container.js +0 -3
  118. package/dist/cjs/framework/interface/Container.js.map +0 -1
  119. package/dist/cjs/index.d.ts +0 -18
  120. package/dist/cjs/index.js +0 -24
  121. package/dist/cjs/index.js.map +0 -1
  122. package/dist/cjs/jest.config.d.ts +0 -3
  123. package/dist/cjs/jest.config.js +0 -9
  124. package/dist/cjs/jest.config.js.map +0 -1
  125. package/dist/esm/framework/decorators/Component.d.ts +0 -10
  126. package/dist/esm/framework/decorators/Component.js +0 -21
  127. package/dist/esm/framework/decorators/Component.js.map +0 -1
  128. package/dist/esm/framework/decorators/Inject.js +0 -19
  129. package/dist/esm/framework/decorators/Inject.js.map +0 -1
  130. package/dist/esm/framework/decorators/index.d.ts +0 -3
  131. package/dist/esm/framework/decorators/index.js +0 -5
  132. package/dist/esm/framework/decorators/index.js.map +0 -1
  133. package/dist/esm/framework/decorators/metadataKeys.d.ts +0 -3
  134. package/dist/esm/framework/decorators/metadataKeys.js +0 -5
  135. package/dist/esm/framework/decorators/metadataKeys.js.map +0 -1
  136. package/dist/esm/framework/errors/ContainerErrors.js +0 -44
  137. package/dist/esm/framework/errors/ContainerErrors.js.map +0 -1
  138. package/dist/esm/framework/implementation/Container.js +0 -432
  139. package/dist/esm/framework/implementation/Container.js.map +0 -1
  140. package/dist/esm/framework/implementation/Container.test.d.ts +0 -1
  141. package/dist/esm/framework/implementation/Container.test.js +0 -173
  142. package/dist/esm/framework/implementation/Container.test.js.map +0 -1
  143. package/dist/esm/framework/implementation/ContainerAsync.test.d.ts +0 -1
  144. package/dist/esm/framework/implementation/ContainerAsync.test.js +0 -151
  145. package/dist/esm/framework/implementation/ContainerAsync.test.js.map +0 -1
  146. package/dist/esm/framework/implementation/ContainerBasic.test.d.ts +0 -1
  147. package/dist/esm/framework/implementation/ContainerBasic.test.js +0 -90
  148. package/dist/esm/framework/implementation/ContainerBasic.test.js.map +0 -1
  149. package/dist/esm/framework/implementation/ContainerDecorators.test.d.ts +0 -1
  150. package/dist/esm/framework/implementation/ContainerDecorators.test.js +0 -498
  151. package/dist/esm/framework/implementation/ContainerDecorators.test.js.map +0 -1
  152. package/dist/esm/framework/implementation/ContainerExtension.test.d.ts +0 -1
  153. package/dist/esm/framework/implementation/ContainerExtension.test.js +0 -158
  154. package/dist/esm/framework/implementation/ContainerExtension.test.js.map +0 -1
  155. package/dist/esm/framework/implementation/ContainerLifetimes.test.d.ts +0 -1
  156. package/dist/esm/framework/implementation/ContainerLifetimes.test.js +0 -143
  157. package/dist/esm/framework/implementation/ContainerLifetimes.test.js.map +0 -1
  158. package/dist/esm/framework/implementation/DecoratorSupport.d.ts +0 -31
  159. package/dist/esm/framework/implementation/DecoratorSupport.js +0 -87
  160. package/dist/esm/framework/implementation/DecoratorSupport.js.map +0 -1
  161. package/dist/esm/framework/implementation/LoadAs.js +0 -7
  162. package/dist/esm/framework/implementation/LoadAs.js.map +0 -1
  163. package/dist/esm/framework/implementation/Parameter.js +0 -49
  164. package/dist/esm/framework/implementation/Parameter.js.map +0 -1
  165. package/dist/esm/framework/implementation/Parameter.test.d.ts +0 -1
  166. package/dist/esm/framework/implementation/Parameter.test.js +0 -17
  167. package/dist/esm/framework/implementation/Parameter.test.js.map +0 -1
  168. package/dist/esm/framework/implementation/SimpleDecoratorTest.test.d.ts +0 -1
  169. package/dist/esm/framework/implementation/SimpleDecoratorTest.test.js +0 -67
  170. package/dist/esm/framework/implementation/SimpleDecoratorTest.test.js.map +0 -1
  171. package/dist/esm/framework/implementation/SingletonTest.test.d.ts +0 -1
  172. package/dist/esm/framework/implementation/SingletonTest.test.js +0 -74
  173. package/dist/esm/framework/implementation/SingletonTest.test.js.map +0 -1
  174. package/dist/esm/framework/interface/Container.js +0 -2
  175. package/dist/esm/framework/interface/Container.js.map +0 -1
  176. package/dist/esm/index.d.ts +0 -18
  177. package/dist/esm/index.js +0 -15
  178. package/dist/esm/index.js.map +0 -1
  179. package/dist/esm/jest.config.d.ts +0 -3
  180. package/dist/esm/jest.config.js +0 -7
  181. package/dist/esm/jest.config.js.map +0 -1
@@ -1,74 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- // SingletonTest.test.ts - Minimal test for singleton functionality
8
- import 'reflect-metadata';
9
- import { describe, it, expect, beforeEach } from '@jest/globals';
10
- import { createContainer } from "./Container";
11
- import { Component } from '../decorators/Component';
12
- import { LoadAs } from "./LoadAs";
13
- describe('Singleton and Decorator Test', () => {
14
- let container;
15
- beforeEach(() => {
16
- container = createContainer();
17
- });
18
- it('should handle singleton with manual registration', async () => {
19
- class TestService {
20
- constructor() {
21
- this.value = Math.random();
22
- }
23
- }
24
- // Register with manual singleton option
25
- container.registerClass(TestService, { loadAs: LoadAs.Singleton });
26
- // Get two instances
27
- const instance1 = await container.instance(TestService);
28
- const instance2 = await container.instance(TestService);
29
- // Should be same instance
30
- expect(instance1).toBe(instance2);
31
- });
32
- it('should maintain scoped instances within same container', async () => {
33
- class ScopedService {
34
- constructor() {
35
- this.value = Math.random();
36
- }
37
- }
38
- // Register with manual scoped option
39
- container.registerClass(ScopedService, { loadAs: LoadAs.Scoped });
40
- // Get two instances from same container
41
- const instance1 = await container.instance(ScopedService);
42
- const instance2 = await container.instance(ScopedService);
43
- // Should be same instance within same container
44
- expect(instance1).toBe(instance2);
45
- });
46
- it('should handle singleton with decorator', async () => {
47
- let SingletonWithDecorator = class SingletonWithDecorator {
48
- constructor() {
49
- this.value = Math.random();
50
- }
51
- };
52
- SingletonWithDecorator = __decorate([
53
- Component({ scope: LoadAs.Singleton })
54
- ], SingletonWithDecorator);
55
- // Check metadata - try both string and symbol keys
56
- const metadataSymbol = Reflect.getMetadata(Symbol('ioc:component:options'), SingletonWithDecorator);
57
- const metadataString = Reflect.getMetadata('ComponentOptions', SingletonWithDecorator);
58
- console.log('Metadata keys:', Reflect.getMetadataKeys(SingletonWithDecorator));
59
- console.log('Metadata for SingletonWithDecorator (symbol):', metadataSymbol);
60
- console.log('Metadata for SingletonWithDecorator (string):', metadataString);
61
- // Manual registration with singleton scope
62
- container.registerClass(SingletonWithDecorator, { loadAs: LoadAs.Singleton });
63
- // Get two instances
64
- const instance1 = await container.instance(SingletonWithDecorator);
65
- const instance2 = await container.instance(SingletonWithDecorator);
66
- // Log instance details
67
- console.log('Instance 1:', instance1);
68
- console.log('Instance 2:', instance2);
69
- console.log('Same instance?', instance1 === instance2);
70
- // Should be same instance
71
- expect(instance1).toBe(instance2);
72
- });
73
- });
74
- //# sourceMappingURL=SingletonTest.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SingletonTest.test.js","sourceRoot":"","sources":["../../../../framework/implementation/SingletonTest.test.ts"],"names":[],"mappings":";;;;;;AAAA,mEAAmE;AACnE,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,QAAQ,CAAC,8BAA8B,EAAE,GAAG,EAAE;IAC1C,IAAI,SAAqB,CAAC;IAE1B,UAAU,CAAC,GAAG,EAAE;QACZ,SAAS,GAAG,eAAe,EAAE,CAAC;IAClC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,kDAAkD,EAAE,KAAK,IAAI,EAAE;QAC9D,MAAM,WAAW;YAAjB;gBACI,UAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC1B,CAAC;SAAA;QAED,wCAAwC;QACxC,SAAS,CAAC,aAAa,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QAEnE,oBAAoB;QACpB,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QACxD,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;QAExD,0BAA0B;QAC1B,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wDAAwD,EAAE,KAAK,IAAI,EAAE;QACpE,MAAM,aAAa;YAAnB;gBACI,UAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC1B,CAAC;SAAA;QAED,qCAAqC;QACrC,SAAS,CAAC,aAAa,CAAC,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,CAAC;QAElE,wCAAwC;QACxC,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC1D,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;QAE1D,gDAAgD;QAChD,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,wCAAwC,EAAE,KAAK,IAAI,EAAE;QAEpD,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;YAA5B;gBACI,UAAK,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;YAC1B,CAAC;SAAA,CAAA;QAFK,sBAAsB;YAD3B,SAAS,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC;WACjC,sBAAsB,CAE3B;QAED,mDAAmD;QACnD,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,sBAAsB,CAAC,CAAC;QACpG,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,CAAC;QAEvF,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,OAAO,CAAC,eAAe,CAAC,sBAAsB,CAAC,CAAC,CAAC;QAC/E,OAAO,CAAC,GAAG,CAAC,+CAA+C,EAAE,cAAc,CAAC,CAAC;QAC7E,OAAO,CAAC,GAAG,CAAC,+CAA+C,EAAE,cAAc,CAAC,CAAC;QAE7E,2CAA2C;QAC3C,SAAS,CAAC,aAAa,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,SAAS,EAAE,CAAC,CAAC;QAE9E,oBAAoB;QACpB,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;QACnE,MAAM,SAAS,GAAG,MAAM,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC,CAAC;QAEnE,uBAAuB;QACvB,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;QACtC,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,SAAS,KAAK,SAAS,CAAC,CAAC;QAEvD,0BAA0B;QAC1B,MAAM,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACtC,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=Container.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Container.js","sourceRoot":"","sources":["../../../../framework/interface/Container.ts"],"names":[],"mappings":""}
@@ -1,18 +0,0 @@
1
- import 'reflect-metadata';
2
- import { createContainer } from "./framework/implementation/Container";
3
- import { Container } from "./framework/implementation/Container";
4
- import { LoadAs } from "./framework/implementation/LoadAs";
5
- import { Parameter } from "./framework/implementation/Parameter";
6
- import { IContainer, IContainerClient, IContainerSetup } from "./framework/interface/Container";
7
- import { NotAClassDefinitionError, ParameterNotFoundError, DependencyNotFoundError, InstanceNotCreatedError, CircularDependencyError } from "./framework/errors/ContainerErrors";
8
- import { Component, Inject } from "./framework/decorators/index";
9
- export { IContainerSetup };
10
- export { IContainerClient };
11
- export { IContainer };
12
- export { LoadAs };
13
- export { Parameter };
14
- export { Container };
15
- export { NotAClassDefinitionError, ParameterNotFoundError, DependencyNotFoundError, InstanceNotCreatedError, CircularDependencyError };
16
- export { Component, Inject };
17
- export { createContainer } from "./framework/implementation/Container";
18
- export default createContainer;
package/dist/esm/index.js DELETED
@@ -1,15 +0,0 @@
1
- import 'reflect-metadata';
2
- import { createContainer } from "./framework/implementation/Container";
3
- import { Container } from "./framework/implementation/Container";
4
- import { LoadAs } from "./framework/implementation/LoadAs";
5
- import { Parameter } from "./framework/implementation/Parameter";
6
- import { NotAClassDefinitionError, ParameterNotFoundError, DependencyNotFoundError, InstanceNotCreatedError, CircularDependencyError } from "./framework/errors/ContainerErrors";
7
- import { Component, Inject } from "./framework/decorators/index";
8
- export { LoadAs };
9
- export { Parameter };
10
- export { Container };
11
- export { NotAClassDefinitionError, ParameterNotFoundError, DependencyNotFoundError, InstanceNotCreatedError, CircularDependencyError };
12
- export { Component, Inject };
13
- export { createContainer } from "./framework/implementation/Container";
14
- export default createContainer;
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAA;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sCAAsC,CAAA;AAEhE,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAA;AAChL,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,8BAA8B,CAAA;AAKhE,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,EAAE,SAAS,EAAE,CAAA;AACpB,OAAO,EAAE,SAAS,EAAE,CAAA;AACpB,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,uBAAuB,EAAE,CAAA;AACtI,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,CAAA;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAA;AACtE,eAAe,eAAe,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { JestConfigWithTsJest } from 'ts-jest';
2
- declare const jestConfig: JestConfigWithTsJest;
3
- export default jestConfig;
@@ -1,7 +0,0 @@
1
- const jestConfig = {
2
- preset: 'ts-jest',
3
- testEnvironment: 'node',
4
- testPathIgnorePatterns: ['/node_modules/', '/dist/'],
5
- };
6
- export default jestConfig;
7
- //# sourceMappingURL=jest.config.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"jest.config.js","sourceRoot":"","sources":["../../jest.config.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,GAAyB;IACvC,MAAM,EAAE,SAAS;IACjB,eAAe,EAAE,MAAM;IACvB,sBAAsB,EAAE,CAAC,gBAAgB,EAAE,QAAQ,CAAC;CACrD,CAAC;AAEF,eAAe,UAAU,CAAC"}