@replit/river 0.13.6 → 0.13.7

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Connection
3
- } from "./chunk-YXVFITRS.js";
3
+ } from "./chunk-TSEEC3UM.js";
4
4
 
5
5
  // transport/transforms/messageFraming.ts
6
6
  import { Transform } from "node:stream";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Connection
3
- } from "./chunk-YXVFITRS.js";
3
+ } from "./chunk-TSEEC3UM.js";
4
4
 
5
5
  // transport/impls/ws/connection.ts
6
6
  var WebSocketConnection = class extends Connection {
@@ -684,10 +684,10 @@ var Transport = class {
684
684
  }
685
685
  return;
686
686
  }
687
+ session.updateBookkeeping(msg.ack, msg.seq);
687
688
  if (!isAck(msg.controlFlags)) {
688
689
  this.eventDispatcher.dispatchEvent("message", msg);
689
690
  }
690
- session.updateBookkeeping(msg.ack, msg.seq);
691
691
  }
692
692
  /**
693
693
  * Adds a listener to this transport.
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  UdsConnection
3
- } from "../../../chunk-WCSTFZOJ.js";
3
+ } from "../../../chunk-7VOA27YR.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-YXVFITRS.js";
6
+ } from "../../../chunk-TSEEC3UM.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import {
9
9
  log
@@ -598,10 +598,10 @@ var Transport = class {
598
598
  }
599
599
  return;
600
600
  }
601
+ session.updateBookkeeping(msg.ack, msg.seq);
601
602
  if (!isAck(msg.controlFlags)) {
602
603
  this.eventDispatcher.dispatchEvent("message", msg);
603
604
  }
604
- session.updateBookkeeping(msg.ack, msg.seq);
605
605
  }
606
606
  /**
607
607
  * Adds a listener to this transport.
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  UdsConnection
3
- } from "../../../chunk-WCSTFZOJ.js";
3
+ } from "../../../chunk-7VOA27YR.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-YXVFITRS.js";
6
+ } from "../../../chunk-TSEEC3UM.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import {
9
9
  log
@@ -590,10 +590,10 @@ var Transport = class {
590
590
  }
591
591
  return;
592
592
  }
593
+ session.updateBookkeeping(msg.ack, msg.seq);
593
594
  if (!isAck(msg.controlFlags)) {
594
595
  this.eventDispatcher.dispatchEvent("message", msg);
595
596
  }
596
- session.updateBookkeeping(msg.ack, msg.seq);
597
597
  }
598
598
  /**
599
599
  * Adds a listener to this transport.
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-3LGEBL5F.js";
3
+ } from "../../../chunk-KT6GLRGQ.js";
4
4
  import {
5
5
  ClientTransport
6
- } from "../../../chunk-YXVFITRS.js";
6
+ } from "../../../chunk-TSEEC3UM.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import {
9
9
  log
@@ -598,10 +598,10 @@ var Transport = class {
598
598
  }
599
599
  return;
600
600
  }
601
+ session.updateBookkeeping(msg.ack, msg.seq);
601
602
  if (!isAck(msg.controlFlags)) {
602
603
  this.eventDispatcher.dispatchEvent("message", msg);
603
604
  }
604
- session.updateBookkeeping(msg.ack, msg.seq);
605
605
  }
606
606
  /**
607
607
  * Adds a listener to this transport.
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  WebSocketConnection
3
- } from "../../../chunk-3LGEBL5F.js";
3
+ } from "../../../chunk-KT6GLRGQ.js";
4
4
  import {
5
5
  ServerTransport
6
- } from "../../../chunk-YXVFITRS.js";
6
+ } from "../../../chunk-TSEEC3UM.js";
7
7
  import "../../../chunk-GFRAOY75.js";
8
8
  import "../../../chunk-H4BYJELI.js";
9
9
  import "../../../chunk-GZ7HCLLM.js";
@@ -620,10 +620,10 @@ var Transport = class {
620
620
  }
621
621
  return;
622
622
  }
623
+ session.updateBookkeeping(msg.ack, msg.seq);
623
624
  if (!isAck(msg.controlFlags)) {
624
625
  this.eventDispatcher.dispatchEvent("message", msg);
625
626
  }
626
- session.updateBookkeeping(msg.ack, msg.seq);
627
627
  }
628
628
  /**
629
629
  * Adds a listener to this transport.
@@ -5,7 +5,7 @@ import {
5
5
  ServerTransport,
6
6
  Session,
7
7
  Transport
8
- } from "../chunk-YXVFITRS.js";
8
+ } from "../chunk-TSEEC3UM.js";
9
9
  import {
10
10
  OpaqueTransportMessageSchema,
11
11
  TransportMessageSchema
@@ -6,7 +6,7 @@ import "../chunk-5IZ2UHWV.js";
6
6
  import {
7
7
  Session,
8
8
  defaultSessionOptions
9
- } from "../chunk-YXVFITRS.js";
9
+ } from "../chunk-TSEEC3UM.js";
10
10
  import {
11
11
  coerceErrorString
12
12
  } from "../chunk-GFRAOY75.js";
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.6",
4
+ "version": "0.13.7",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -443,10 +443,10 @@ var Transport = class {
443
443
  }
444
444
  return;
445
445
  }
446
+ session.updateBookkeeping(msg.ack, msg.seq);
446
447
  if (!isAck(msg.controlFlags)) {
447
448
  this.eventDispatcher.dispatchEvent("message", msg);
448
449
  }
449
- session.updateBookkeeping(msg.ack, msg.seq);
450
450
  }
451
451
  /**
452
452
  * Adds a listener to this transport.