@replit/river 0.13.8 → 0.13.9

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.
@@ -773,12 +773,14 @@ var RiverServer = class {
773
773
  log?.error(
774
774
  `${this.transport.clientId} -- can't create a new procedure stream from a message that doesn't have the stream open bit set`
775
775
  );
776
+ log?.debug(` -> ${JSON.stringify(message)}`);
776
777
  return;
777
778
  }
778
779
  if (!message.procedureName || !message.serviceName) {
779
780
  log?.warn(
780
781
  `${this.transport.clientId} -- missing procedure or service name in stream open message`
781
782
  );
783
+ log?.debug(` -> ${JSON.stringify(message)}`);
782
784
  return;
783
785
  }
784
786
  if (!(message.serviceName in this.services)) {
@@ -839,7 +841,7 @@ var RiverServer = class {
839
841
  const errorHandler = (err) => {
840
842
  const errorMsg = coerceErrorString(err);
841
843
  log?.error(
842
- `${this.transport.clientId} -- procedure ${message.serviceName}.${message.procedureName}:${message.streamId} threw an error: ${errorMsg}`
844
+ `${this.transport.clientId} -- procedure ${message.serviceName}.${message.procedureName}:${message.streamId} threw an uncaught error: ${errorMsg}`
843
845
  );
844
846
  outgoing.push(
845
847
  Err({
@@ -869,12 +869,14 @@ var RiverServer = class {
869
869
  log?.error(
870
870
  `${this.transport.clientId} -- can't create a new procedure stream from a message that doesn't have the stream open bit set`
871
871
  );
872
+ log?.debug(` -> ${JSON.stringify(message)}`);
872
873
  return;
873
874
  }
874
875
  if (!message.procedureName || !message.serviceName) {
875
876
  log?.warn(
876
877
  `${this.transport.clientId} -- missing procedure or service name in stream open message`
877
878
  );
879
+ log?.debug(` -> ${JSON.stringify(message)}`);
878
880
  return;
879
881
  }
880
882
  if (!(message.serviceName in this.services)) {
@@ -935,7 +937,7 @@ var RiverServer = class {
935
937
  const errorHandler = (err) => {
936
938
  const errorMsg = coerceErrorString(err);
937
939
  log?.error(
938
- `${this.transport.clientId} -- procedure ${message.serviceName}.${message.procedureName}:${message.streamId} threw an error: ${errorMsg}`
940
+ `${this.transport.clientId} -- procedure ${message.serviceName}.${message.procedureName}:${message.streamId} threw an uncaught error: ${errorMsg}`
939
941
  );
940
942
  outgoing.push(
941
943
  Err({
@@ -8,7 +8,7 @@ import {
8
8
  createClient,
9
9
  createServer,
10
10
  serializeService
11
- } from "../chunk-E2CP4UWB.js";
11
+ } from "../chunk-KUQ4OT4D.js";
12
12
  import "../chunk-GFRAOY75.js";
13
13
  import "../chunk-H4BYJELI.js";
14
14
  export {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  UNCAUGHT_ERROR,
3
3
  pushable
4
- } from "../chunk-E2CP4UWB.js";
4
+ } from "../chunk-KUQ4OT4D.js";
5
5
  import "../chunk-5IZ2UHWV.js";
6
6
  import {
7
7
  Session,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@replit/river",
3
3
  "description": "It's like tRPC but... with JSON Schema Support, duplex streaming and support for service multiplexing. Transport agnostic!",
4
- "version": "0.13.8",
4
+ "version": "0.13.9",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {