@typeix/di 8.9.2 → 9.0.0-rc.0

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.
@@ -603,7 +603,7 @@ describe("Injector", () => {
603
603
  let returnVal = instance.process();
604
604
  expect(uUID).not.toBeNull();
605
605
  expect(returnVal).toBe(uUID);
606
- expect(spy).toBeCalled();
606
+ expect(spy).toHaveBeenCalled();
607
607
  expect(invocation_count).toBe(1);
608
608
  expect(interceptor_count).toBe(2);
609
609
  expect(result).toEqual([
@@ -704,7 +704,7 @@ describe("Injector", () => {
704
704
  expect(uUID).toBeNull();
705
705
  let returnVal = instance.transform();
706
706
  expect(uUID).not.toBeNull();
707
- expect(spy).toBeCalled();
707
+ expect(spy).toHaveBeenCalled();
708
708
  let _cUID = tUID + "-" + uUID;
709
709
  expect(returnVal).toBe(_cUID);
710
710
  expect(interceptor_count).toBe(2);
@@ -788,7 +788,7 @@ describe("Injector", () => {
788
788
  const instance = injector.get(AService);
789
789
  const spy = jest.spyOn(obj, "handler");
790
790
  expect(instance.process()).toBe("result");
791
- expect(spy).toBeCalled();
791
+ expect(spy).toHaveBeenCalled();
792
792
  expect(invocation_count).toBe(1);
793
793
  expect(interceptor_count).toBe(2);
794
794
  expect(result).toEqual([
@@ -872,7 +872,7 @@ describe("Injector", () => {
872
872
  expect(uUID).toBeNull();
873
873
  let returnVal = await instance.transform();
874
874
  expect(uUID).not.toBeNull();
875
- expect(spy).toBeCalled();
875
+ expect(spy).toHaveBeenCalled();
876
876
  let _cUID = "SECOND-FIRST-" + uUID;
877
877
  expect(returnVal).toBe(_cUID);
878
878
  expect(interceptor_count).toBe(2);
@@ -978,7 +978,7 @@ describe("Injector", () => {
978
978
  expect(uUID).toBeNull();
979
979
  let returnVal = await instance.transform();
980
980
  expect(uUID).not.toBeNull();
981
- expect(spy).toBeCalled();
981
+ expect(spy).toHaveBeenCalled();
982
982
  let _cUID = "SECOND-FIRST-" + uUID;
983
983
  expect(returnVal).toBe(_cUID);
984
984
  expect(interceptor_count).toBe(2);
@@ -1057,7 +1057,7 @@ describe("Injector", () => {
1057
1057
  const instance = injector.get(AService);
1058
1058
  const spy = jest.spyOn(obj, "handler");
1059
1059
  expect(await instance.process()).toBe(1);
1060
- expect(spy).toBeCalled();
1060
+ expect(spy).toHaveBeenCalled();
1061
1061
  expect(invocation_count).toBe(1);
1062
1062
  expect(interceptor_count).toBe(2);
1063
1063
  expect(result).toEqual([
@@ -1121,7 +1121,7 @@ describe("Injector", () => {
1121
1121
  const spy = jest.spyOn(obj, "handler");
1122
1122
  expect((0, metadata_1.hasDecorator)(decorators_1.AsyncInterceptor, AService.prototype, "processAsyncDecorator")).toBe(true);
1123
1123
  expect(await instance.processAsyncDecorator()).toBe(1);
1124
- expect(spy).toBeCalled();
1124
+ expect(spy).toHaveBeenCalled();
1125
1125
  expect(invocation_count).toBe(1);
1126
1126
  expect(interceptor_count).toBe(2);
1127
1127
  expect(result).toEqual([
@@ -1183,7 +1183,7 @@ describe("Injector", () => {
1183
1183
  const instance = injector.get(AService);
1184
1184
  const spy = jest.spyOn(obj, "handler");
1185
1185
  expect(await instance.process()).toBe(1);
1186
- expect(spy).toBeCalled();
1186
+ expect(spy).toHaveBeenCalled();
1187
1187
  expect(invocation_count).toBe(1);
1188
1188
  expect(interceptor_count).toBe(2);
1189
1189
  expect(result).toEqual([
@@ -1242,7 +1242,7 @@ describe("Injector", () => {
1242
1242
  const instance = injector.get(AService);
1243
1243
  const spy = jest.spyOn(obj, "handler");
1244
1244
  expect(await instance.process()).toBe("result");
1245
- expect(spy).toBeCalled();
1245
+ expect(spy).toHaveBeenCalled();
1246
1246
  expect(invocation_count).toBe(1);
1247
1247
  expect(interceptor_count).toBe(2);
1248
1248
  expect(result).toEqual([
@@ -590,7 +590,7 @@ describe("Injector", () => {
590
590
  let returnVal = instance.process();
591
591
  expect(uUID).not.toBeNull();
592
592
  expect(returnVal).toBe(uUID);
593
- expect(spy).toBeCalled();
593
+ expect(spy).toHaveBeenCalled();
594
594
  expect(invocation_count).toBe(1);
595
595
  expect(interceptor_count).toBe(2);
596
596
  expect(interceptor_result).toEqual([
@@ -691,7 +691,7 @@ describe("Injector", () => {
691
691
  expect(uUID).toBeNull();
692
692
  let returnVal = instance.transform();
693
693
  expect(uUID).not.toBeNull();
694
- expect(spy).toBeCalled();
694
+ expect(spy).toHaveBeenCalled();
695
695
  let _cUID = tUID + "-" + uUID;
696
696
  expect(returnVal).toBe(_cUID);
697
697
  expect(interceptor_count).toBe(2);
@@ -775,7 +775,7 @@ describe("Injector", () => {
775
775
  const instance = injector.get(AService);
776
776
  const spy = jest.spyOn(obj, "handler");
777
777
  expect(instance.process()).toBe("result");
778
- expect(spy).toBeCalled();
778
+ expect(spy).toHaveBeenCalled();
779
779
  expect(invocation_count).toBe(1);
780
780
  expect(interceptor_count).toBe(2);
781
781
  expect(interceptor_result).toEqual([
@@ -859,7 +859,7 @@ describe("Injector", () => {
859
859
  expect(uUID).toBeNull();
860
860
  let returnVal = await instance.transform();
861
861
  expect(uUID).not.toBeNull();
862
- expect(spy).toBeCalled();
862
+ expect(spy).toHaveBeenCalled();
863
863
  let _cUID = "SECOND-FIRST-" + uUID;
864
864
  expect(returnVal).toBe(_cUID);
865
865
  expect(interceptor_count).toBe(2);
@@ -965,7 +965,7 @@ describe("Injector", () => {
965
965
  expect(uUID).toBeNull();
966
966
  let returnVal = await instance.transform();
967
967
  expect(uUID).not.toBeNull();
968
- expect(spy).toBeCalled();
968
+ expect(spy).toHaveBeenCalled();
969
969
  let _cUID = "SECOND-FIRST-" + uUID;
970
970
  expect(returnVal).toBe(_cUID);
971
971
  expect(interceptor_count).toBe(2);
@@ -1044,7 +1044,7 @@ describe("Injector", () => {
1044
1044
  const instance = injector.get(AService);
1045
1045
  const spy = jest.spyOn(obj, "handler");
1046
1046
  expect(await instance.process()).toBe(1);
1047
- expect(spy).toBeCalled();
1047
+ expect(spy).toHaveBeenCalled();
1048
1048
  expect(invocation_count).toBe(1);
1049
1049
  expect(interceptor_count).toBe(2);
1050
1050
  expect(interceptor_result).toEqual([
@@ -1108,7 +1108,7 @@ describe("Injector", () => {
1108
1108
  const spy = jest.spyOn(obj, "handler");
1109
1109
  expect((0, metadata_1.hasDecorator)(decorators_1.AsyncInterceptor, AService.prototype, "processAsyncDecorator")).toBe(true);
1110
1110
  expect(await instance.processAsyncDecorator()).toBe(1);
1111
- expect(spy).toBeCalled();
1111
+ expect(spy).toHaveBeenCalled();
1112
1112
  expect(invocation_count).toBe(1);
1113
1113
  expect(interceptor_count).toBe(2);
1114
1114
  expect(interceptor_result).toEqual([
@@ -1170,7 +1170,7 @@ describe("Injector", () => {
1170
1170
  const instance = injector.get(AService);
1171
1171
  const spy = jest.spyOn(obj, "handler");
1172
1172
  expect(await instance.process()).toBe(1);
1173
- expect(spy).toBeCalled();
1173
+ expect(spy).toHaveBeenCalled();
1174
1174
  expect(invocation_count).toBe(1);
1175
1175
  expect(interceptor_count).toBe(2);
1176
1176
  expect(interceptor_result).toEqual([
@@ -1229,7 +1229,7 @@ describe("Injector", () => {
1229
1229
  const instance = injector.get(AService);
1230
1230
  const spy = jest.spyOn(obj, "handler");
1231
1231
  expect(await instance.process()).toBe("result");
1232
- expect(spy).toBeCalled();
1232
+ expect(spy).toHaveBeenCalled();
1233
1233
  expect(invocation_count).toBe(1);
1234
1234
  expect(interceptor_count).toBe(2);
1235
1235
  expect(interceptor_result).toEqual([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeix/di",
3
- "version": "8.9.2",
3
+ "version": "9.0.0-rc.0",
4
4
  "description": "Typescript dependency injection",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -29,14 +29,14 @@
29
29
  },
30
30
  "homepage": "https://typeix.com",
31
31
  "dependencies": {
32
- "@typeix/metadata": "^8.9.2",
33
- "@typeix/utils": "^8.9.2"
32
+ "@typeix/metadata": "^9.0.0-rc.0",
33
+ "@typeix/utils": "^9.0.0-rc.0"
34
34
  },
35
35
  "publishConfig": {
36
36
  "access": "public"
37
37
  },
38
38
  "engines": {
39
- "node": ">=18.0.0"
39
+ "node": "^26.0.0"
40
40
  },
41
- "gitHead": "a9b6917167aa18aac8b3cdf91ee989d51dcdadc3"
41
+ "gitHead": "e9c35a0be178ccd4be82db4e8e41087f7ec588d6"
42
42
  }