@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.
- package/dist/index.mjs +24 -6
- 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(
|
|
772
|
+
this.log(
|
|
773
|
+
this.transformLogData(data),
|
|
774
|
+
`${this.name}:${this.action}:queue-push`
|
|
775
|
+
);
|
|
770
776
|
}
|
|
771
777
|
logQueuePull(data) {
|
|
772
|
-
this.log(
|
|
778
|
+
this.log(
|
|
779
|
+
this.transformLogData(data),
|
|
780
|
+
`${this.name}:${this.action}:queue-pull`
|
|
781
|
+
);
|
|
773
782
|
}
|
|
774
783
|
logQueueRetries(data) {
|
|
775
|
-
this.log(
|
|
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(
|
|
793
|
+
this.log(
|
|
794
|
+
this.transformLogData(data),
|
|
795
|
+
`${this.name}:${this.action}:output`
|
|
796
|
+
);
|
|
782
797
|
}
|
|
783
798
|
logError(error) {
|
|
784
|
-
this.log(
|
|
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))
|