@technicity/data-service-generator 0.22.2-next.1 → 0.22.2

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.
@@ -308,6 +308,7 @@ async function getSDKSource(input, specialCaseUuidColumn, supplementClientOpts,
308
308
  const runtime = this.runtime;
309
309
  const eventTarget = this.eventTarget;
310
310
  const onHandlerMap = this.onHandlerMap;
311
+ const passBeforeValueToAfterCallback = this.passBeforeValueToAfterCallback;
311
312
  return {
312
313
  $queryRaw: queryRaw,
313
314
  $commit: commit,
@@ -517,7 +518,9 @@ function getMethodSourceGetOne(x, findOnes, isTransaction) {
517
518
  skipCache: param2?.skipCache,
518
519
  eventTarget: ${isTransaction ? "eventTarget" : "this.eventTarget"},
519
520
  ${isTransaction ? "dbCall," : ""}
520
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
521
+ passBeforeValueToAfterCallback: ${isTransaction
522
+ ? "passBeforeValueToAfterCallback"
523
+ : "this.passBeforeValueToAfterCallback"},
521
524
  }
522
525
  );
523
526
  }`;
@@ -539,7 +542,9 @@ function getMethodSourceGetList(x, isTransaction) {
539
542
  skipCache: param2?.skipCache,
540
543
  eventTarget: ${isTransaction ? "eventTarget" : "this.eventTarget"},
541
544
  ${isTransaction ? "dbCall," : ""}
542
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
545
+ passBeforeValueToAfterCallback: ${isTransaction
546
+ ? "passBeforeValueToAfterCallback"
547
+ : "this.passBeforeValueToAfterCallback"},
543
548
  }
544
549
  );
545
550
  }`;
@@ -561,7 +566,9 @@ function getMethodSourceGetListPaginated(x, isTransaction) {
561
566
  skipCache: param2?.skipCache,
562
567
  eventTarget: ${isTransaction ? "eventTarget" : "this.eventTarget"},
563
568
  ${isTransaction ? "dbCall," : ""}
564
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
569
+ passBeforeValueToAfterCallback: ${isTransaction
570
+ ? "passBeforeValueToAfterCallback"
571
+ : "this.passBeforeValueToAfterCallback"},
565
572
  }
566
573
  );
567
574
  }`;
@@ -584,7 +591,9 @@ function getMethodSourcePostOne(x, specialCaseUuidColumn, isTransaction) {
584
591
  asyncLocalStorage,
585
592
  sdk: this,
586
593
  ${isTransaction ? "dbCall," : ""}
587
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
594
+ passBeforeValueToAfterCallback: ${isTransaction
595
+ ? "passBeforeValueToAfterCallback"
596
+ : "this.passBeforeValueToAfterCallback"},
588
597
  });
589
598
  }`;
590
599
  }
@@ -620,7 +629,9 @@ return ${isTransaction ? "runtime" : "this.runtime"}.resolve({
620
629
  asyncLocalStorage,
621
630
  sdk: this,
622
631
  ${isTransaction ? "dbCall," : ""}
623
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
632
+ passBeforeValueToAfterCallback: ${isTransaction
633
+ ? "passBeforeValueToAfterCallback"
634
+ : "this.passBeforeValueToAfterCallback"},
624
635
  });
625
636
  }`;
626
637
  }
@@ -657,7 +668,9 @@ function getMethodSourcePatchList(x, isTransaction) {
657
668
  asyncLocalStorage,
658
669
  sdk: this,
659
670
  ${isTransaction ? "dbCall," : ""}
660
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
671
+ passBeforeValueToAfterCallback: ${isTransaction
672
+ ? "passBeforeValueToAfterCallback"
673
+ : "this.passBeforeValueToAfterCallback"},
661
674
  });
662
675
  }`;
663
676
  }
@@ -690,7 +703,9 @@ function getMethodSourceDeleteOne(x, findOnes, isTransaction) {
690
703
  asyncLocalStorage,
691
704
  sdk: this,
692
705
  ${isTransaction ? "dbCall," : ""}
693
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
706
+ passBeforeValueToAfterCallback: ${isTransaction
707
+ ? "passBeforeValueToAfterCallback"
708
+ : "this.passBeforeValueToAfterCallback"},
694
709
  });
695
710
  }`;
696
711
  }
@@ -722,7 +737,9 @@ function getMethodSourceDeleteList(x, isTransaction) {
722
737
  asyncLocalStorage,
723
738
  sdk: this,
724
739
  ${isTransaction ? "dbCall," : ""}
725
- passBeforeValueToAfterCallback: this.passBeforeValueToAfterCallback,
740
+ passBeforeValueToAfterCallback: ${isTransaction
741
+ ? "passBeforeValueToAfterCallback"
742
+ : "this.passBeforeValueToAfterCallback"},
726
743
  });
727
744
  }`;
728
745
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@technicity/data-service-generator",
3
- "version": "0.22.2-next.1",
3
+ "version": "0.22.2",
4
4
  "main": "./dist/index.js",
5
5
  "files": [
6
6
  "dist"
@@ -22,7 +22,7 @@
22
22
  "ioredis": "^5.2.4",
23
23
  "join-monster": "git+https://github.com/apalm/join-monster.git#9b244fae1bdba0666d9875f6b9e0dff5f027aa69",
24
24
  "json-schema-to-typescript": "10.1.5",
25
- "lodash": "^4.17.20",
25
+ "lodash": "^4.17.23",
26
26
  "loglevel": "^1.8.1",
27
27
  "mysql2": "^3.10.1",
28
28
  "prettier": "^2.1.2",
@@ -47,6 +47,7 @@
47
47
  "typescript": "5.5.2"
48
48
  },
49
49
  "resolutions": {
50
- "tar-fs": "2.1.3"
50
+ "tar-fs": "2.1.3",
51
+ "lodash": "^4.17.23"
51
52
  }
52
53
  }