@develit-io/backend-sdk 9.11.1 → 9.11.3

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 +24 -6
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -765,23 +765,41 @@ function develitWorker(Worker) {
765
765
  data: superjson.stringify(data)
766
766
  });
767
767
  }
768
+ transformLogData(data) {
769
+ return data;
770
+ }
768
771
  logQueuePush(data) {
769
- this.log(data, `${this.name}:${this.action}:queue-push`);
772
+ this.log(
773
+ this.transformLogData(data),
774
+ `${this.name}:${this.action}:queue-push`
775
+ );
770
776
  }
771
777
  logQueuePull(data) {
772
- this.log(data, `${this.name}:${this.action}:queue-pull`);
778
+ this.log(
779
+ this.transformLogData(data),
780
+ `${this.name}:${this.action}:queue-pull`
781
+ );
773
782
  }
774
783
  logQueueRetries(data) {
775
- this.log(data, `${this.name}:${this.action}:queue-retries`);
784
+ this.log(
785
+ this.transformLogData(data),
786
+ `${this.name}:${this.action}:queue-retries`
787
+ );
776
788
  }
777
789
  logInput(data) {
778
- this.log(data, `${this.name}:${this.action}:input`);
790
+ this.log(this.transformLogData(data), `${this.name}:${this.action}:input`);
779
791
  }
780
792
  logOutput(data) {
781
- this.log(data, `${this.name}:${this.action}:output`);
793
+ this.log(
794
+ this.transformLogData(data),
795
+ `${this.name}:${this.action}:output`
796
+ );
782
797
  }
783
798
  logError(error) {
784
- this.log(error, `${this.name}:${this.action}:error`);
799
+ this.log(
800
+ this.transformLogData(error),
801
+ `${this.name}:${this.action}:error`
802
+ );
785
803
  }
786
804
  pushToQueue(queue, message) {
787
805
  if (!Array.isArray(message))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "9.11.1",
3
+ "version": "9.11.3",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",