@replit/river 0.13.5 → 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.
- package/dist/{chunk-4JFIL3FG.js → chunk-7VOA27YR.js} +1 -1
- package/dist/{chunk-MSJNWNYI.js → chunk-KT6GLRGQ.js} +1 -1
- package/dist/{chunk-WYHD3FN7.js → chunk-TSEEC3UM.js} +4 -4
- package/dist/transport/impls/uds/client.cjs +4 -4
- package/dist/transport/impls/uds/client.js +2 -2
- package/dist/transport/impls/uds/server.cjs +4 -4
- package/dist/transport/impls/uds/server.js +2 -2
- package/dist/transport/impls/ws/client.cjs +4 -4
- package/dist/transport/impls/ws/client.js +2 -2
- package/dist/transport/impls/ws/server.cjs +4 -4
- package/dist/transport/impls/ws/server.js +2 -2
- package/dist/transport/index.cjs +4 -4
- package/dist/transport/index.js +1 -1
- package/dist/util/testHelpers.cjs +3 -3
- package/dist/util/testHelpers.js +1 -1
- package/package.json +1 -1
|
@@ -129,11 +129,11 @@ var Session = class {
|
|
|
129
129
|
if (ok)
|
|
130
130
|
return fullMsg.id;
|
|
131
131
|
log?.info(
|
|
132
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
132
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
133
133
|
);
|
|
134
134
|
} else {
|
|
135
135
|
log?.info(
|
|
136
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
|
|
136
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
139
|
return fullMsg.id;
|
|
@@ -175,7 +175,7 @@ var Session = class {
|
|
|
175
175
|
`${this.from} -- resending ${this.sendBuffer.length} buffered messages`
|
|
176
176
|
);
|
|
177
177
|
for (const msg of this.sendBuffer) {
|
|
178
|
-
log?.debug(`${this.from} -- resending ${
|
|
178
|
+
log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
|
|
179
179
|
const ok = this.connection.send(this.codec.toBuffer(msg));
|
|
180
180
|
if (!ok) {
|
|
181
181
|
const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
|
|
@@ -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.
|
|
@@ -237,11 +237,11 @@ var Session = class {
|
|
|
237
237
|
if (ok)
|
|
238
238
|
return fullMsg.id;
|
|
239
239
|
log?.info(
|
|
240
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
240
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
241
241
|
);
|
|
242
242
|
} else {
|
|
243
243
|
log?.info(
|
|
244
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
|
|
244
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
|
|
245
245
|
);
|
|
246
246
|
}
|
|
247
247
|
return fullMsg.id;
|
|
@@ -283,7 +283,7 @@ var Session = class {
|
|
|
283
283
|
`${this.from} -- resending ${this.sendBuffer.length} buffered messages`
|
|
284
284
|
);
|
|
285
285
|
for (const msg of this.sendBuffer) {
|
|
286
|
-
log?.debug(`${this.from} -- resending ${
|
|
286
|
+
log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
|
|
287
287
|
const ok = this.connection.send(this.codec.toBuffer(msg));
|
|
288
288
|
if (!ok) {
|
|
289
289
|
const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
|
|
@@ -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-
|
|
3
|
+
} from "../../../chunk-7VOA27YR.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-TSEEC3UM.js";
|
|
7
7
|
import "../../../chunk-GFRAOY75.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
@@ -275,11 +275,11 @@ var Session = class {
|
|
|
275
275
|
if (ok)
|
|
276
276
|
return fullMsg.id;
|
|
277
277
|
log?.info(
|
|
278
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
278
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
279
279
|
);
|
|
280
280
|
} else {
|
|
281
281
|
log?.info(
|
|
282
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
|
|
282
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
285
|
return fullMsg.id;
|
|
@@ -321,7 +321,7 @@ var Session = class {
|
|
|
321
321
|
`${this.from} -- resending ${this.sendBuffer.length} buffered messages`
|
|
322
322
|
);
|
|
323
323
|
for (const msg of this.sendBuffer) {
|
|
324
|
-
log?.debug(`${this.from} -- resending ${
|
|
324
|
+
log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
|
|
325
325
|
const ok = this.connection.send(this.codec.toBuffer(msg));
|
|
326
326
|
if (!ok) {
|
|
327
327
|
const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
|
|
@@ -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-
|
|
3
|
+
} from "../../../chunk-7VOA27YR.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-TSEEC3UM.js";
|
|
7
7
|
import "../../../chunk-GFRAOY75.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
@@ -267,11 +267,11 @@ var Session = class {
|
|
|
267
267
|
if (ok)
|
|
268
268
|
return fullMsg.id;
|
|
269
269
|
log?.info(
|
|
270
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
270
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
271
271
|
);
|
|
272
272
|
} else {
|
|
273
273
|
log?.info(
|
|
274
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
|
|
274
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
|
|
275
275
|
);
|
|
276
276
|
}
|
|
277
277
|
return fullMsg.id;
|
|
@@ -313,7 +313,7 @@ var Session = class {
|
|
|
313
313
|
`${this.from} -- resending ${this.sendBuffer.length} buffered messages`
|
|
314
314
|
);
|
|
315
315
|
for (const msg of this.sendBuffer) {
|
|
316
|
-
log?.debug(`${this.from} -- resending ${
|
|
316
|
+
log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
|
|
317
317
|
const ok = this.connection.send(this.codec.toBuffer(msg));
|
|
318
318
|
if (!ok) {
|
|
319
319
|
const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
|
|
@@ -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-
|
|
3
|
+
} from "../../../chunk-KT6GLRGQ.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-TSEEC3UM.js";
|
|
7
7
|
import "../../../chunk-GFRAOY75.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
@@ -275,11 +275,11 @@ var Session = class {
|
|
|
275
275
|
if (ok)
|
|
276
276
|
return fullMsg.id;
|
|
277
277
|
log?.info(
|
|
278
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
278
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
279
279
|
);
|
|
280
280
|
} else {
|
|
281
281
|
log?.info(
|
|
282
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
|
|
282
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
|
|
283
283
|
);
|
|
284
284
|
}
|
|
285
285
|
return fullMsg.id;
|
|
@@ -321,7 +321,7 @@ var Session = class {
|
|
|
321
321
|
`${this.from} -- resending ${this.sendBuffer.length} buffered messages`
|
|
322
322
|
);
|
|
323
323
|
for (const msg of this.sendBuffer) {
|
|
324
|
-
log?.debug(`${this.from} -- resending ${
|
|
324
|
+
log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
|
|
325
325
|
const ok = this.connection.send(this.codec.toBuffer(msg));
|
|
326
326
|
if (!ok) {
|
|
327
327
|
const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
|
|
@@ -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-
|
|
3
|
+
} from "../../../chunk-KT6GLRGQ.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-TSEEC3UM.js";
|
|
7
7
|
import "../../../chunk-GFRAOY75.js";
|
|
8
8
|
import "../../../chunk-H4BYJELI.js";
|
|
9
9
|
import "../../../chunk-GZ7HCLLM.js";
|
package/dist/transport/index.cjs
CHANGED
|
@@ -297,11 +297,11 @@ var Session = class {
|
|
|
297
297
|
if (ok)
|
|
298
298
|
return fullMsg.id;
|
|
299
299
|
log?.info(
|
|
300
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
300
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
301
301
|
);
|
|
302
302
|
} else {
|
|
303
303
|
log?.info(
|
|
304
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
|
|
304
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
|
|
305
305
|
);
|
|
306
306
|
}
|
|
307
307
|
return fullMsg.id;
|
|
@@ -343,7 +343,7 @@ var Session = class {
|
|
|
343
343
|
`${this.from} -- resending ${this.sendBuffer.length} buffered messages`
|
|
344
344
|
);
|
|
345
345
|
for (const msg of this.sendBuffer) {
|
|
346
|
-
log?.debug(`${this.from} -- resending ${
|
|
346
|
+
log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
|
|
347
347
|
const ok = this.connection.send(this.codec.toBuffer(msg));
|
|
348
348
|
if (!ok) {
|
|
349
349
|
const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
|
|
@@ -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.
|
package/dist/transport/index.js
CHANGED
|
@@ -185,11 +185,11 @@ var Session = class {
|
|
|
185
185
|
if (ok)
|
|
186
186
|
return fullMsg.id;
|
|
187
187
|
log?.info(
|
|
188
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
188
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection (id: ${this.connection.debugId}) is probably dead`
|
|
189
189
|
);
|
|
190
190
|
} else {
|
|
191
191
|
log?.info(
|
|
192
|
-
`${this.from} -- failed to send ${fullMsg.id} to ${fullMsg.to}, connection not ready yet`
|
|
192
|
+
`${this.from} -- failed to send ${fullMsg.id} (seq: ${fullMsg.seq}) to ${fullMsg.to}, connection not ready yet`
|
|
193
193
|
);
|
|
194
194
|
}
|
|
195
195
|
return fullMsg.id;
|
|
@@ -231,7 +231,7 @@ var Session = class {
|
|
|
231
231
|
`${this.from} -- resending ${this.sendBuffer.length} buffered messages`
|
|
232
232
|
);
|
|
233
233
|
for (const msg of this.sendBuffer) {
|
|
234
|
-
log?.debug(`${this.from} -- resending ${
|
|
234
|
+
log?.debug(`${this.from} -- resending ${msg.id} (seq: ${msg.seq})`);
|
|
235
235
|
const ok = this.connection.send(this.codec.toBuffer(msg));
|
|
236
236
|
if (!ok) {
|
|
237
237
|
const msg2 = `${this.from} -- failed to send buffered message to ${this.to} in session (id: ${this.debugId}) (if you hit this code path something is seriously wrong)`;
|
package/dist/util/testHelpers.js
CHANGED
package/package.json
CHANGED