@replit/river 0.15.5 → 0.15.6
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-EZQFVTBL.js → chunk-37HZIKJO.js} +2 -3
- package/dist/{chunk-EVH5D43D.js → chunk-IZLLS6QJ.js} +1 -1
- package/dist/{chunk-PTRHVS6L.js → chunk-UPMTISRG.js} +1 -1
- package/dist/transport/impls/uds/client.cjs +2 -3
- package/dist/transport/impls/uds/client.js +2 -2
- package/dist/transport/impls/uds/server.cjs +2 -2
- package/dist/transport/impls/uds/server.js +2 -2
- package/dist/transport/impls/ws/client.cjs +2 -3
- package/dist/transport/impls/ws/client.js +2 -2
- package/dist/transport/impls/ws/server.cjs +2 -2
- package/dist/transport/impls/ws/server.js +2 -2
- package/dist/transport/index.cjs +2 -3
- package/dist/transport/index.js +1 -1
- package/dist/util/testHelpers.js +1 -1
- package/package.json +1 -1
|
@@ -296,7 +296,6 @@ var LeakyBucketRateLimit = class {
|
|
|
296
296
|
}
|
|
297
297
|
this.budgetConsumed.set(user, newBudget);
|
|
298
298
|
};
|
|
299
|
-
restoreBudgetForUser();
|
|
300
299
|
const intervalHandle = setInterval(
|
|
301
300
|
restoreBudgetForUser,
|
|
302
301
|
this.options.budgetRestoreIntervalMs
|
|
@@ -328,7 +327,7 @@ var defaultConnectionRetryOptions = {
|
|
|
328
327
|
baseIntervalMs: 250,
|
|
329
328
|
maxJitterMs: 200,
|
|
330
329
|
maxBackoffMs: 32e3,
|
|
331
|
-
attemptBudgetCapacity:
|
|
330
|
+
attemptBudgetCapacity: 5,
|
|
332
331
|
budgetRestoreIntervalMs: 200
|
|
333
332
|
};
|
|
334
333
|
var defaultClientTransportOptions = {
|
|
@@ -513,7 +512,7 @@ var Transport = class {
|
|
|
513
512
|
log?.error(
|
|
514
513
|
`${this.clientId} -- received out-of-order msg (got: ${msg.seq}, wanted: ${session.nextExpectedSeq}), marking connection as dead: ${JSON.stringify(msg)}`
|
|
515
514
|
);
|
|
516
|
-
session.
|
|
515
|
+
session.close();
|
|
517
516
|
}
|
|
518
517
|
return;
|
|
519
518
|
}
|
|
@@ -483,7 +483,6 @@ var LeakyBucketRateLimit = class {
|
|
|
483
483
|
}
|
|
484
484
|
this.budgetConsumed.set(user, newBudget);
|
|
485
485
|
};
|
|
486
|
-
restoreBudgetForUser();
|
|
487
486
|
const intervalHandle = setInterval(
|
|
488
487
|
restoreBudgetForUser,
|
|
489
488
|
this.options.budgetRestoreIntervalMs
|
|
@@ -567,7 +566,7 @@ var defaultConnectionRetryOptions = {
|
|
|
567
566
|
baseIntervalMs: 250,
|
|
568
567
|
maxJitterMs: 200,
|
|
569
568
|
maxBackoffMs: 32e3,
|
|
570
|
-
attemptBudgetCapacity:
|
|
569
|
+
attemptBudgetCapacity: 5,
|
|
571
570
|
budgetRestoreIntervalMs: 200
|
|
572
571
|
};
|
|
573
572
|
var defaultClientTransportOptions = {
|
|
@@ -752,7 +751,7 @@ var Transport = class {
|
|
|
752
751
|
log?.error(
|
|
753
752
|
`${this.clientId} -- received out-of-order msg (got: ${msg.seq}, wanted: ${session.nextExpectedSeq}), marking connection as dead: ${JSON.stringify(msg)}`
|
|
754
753
|
);
|
|
755
|
-
session.
|
|
754
|
+
session.close();
|
|
756
755
|
}
|
|
757
756
|
return;
|
|
758
757
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UdsConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-IZLLS6QJ.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-37HZIKJO.js";
|
|
7
7
|
import "../../../chunk-GFRAOY75.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
@@ -407,7 +407,7 @@ var defaultConnectionRetryOptions = {
|
|
|
407
407
|
baseIntervalMs: 250,
|
|
408
408
|
maxJitterMs: 200,
|
|
409
409
|
maxBackoffMs: 32e3,
|
|
410
|
-
attemptBudgetCapacity:
|
|
410
|
+
attemptBudgetCapacity: 5,
|
|
411
411
|
budgetRestoreIntervalMs: 200
|
|
412
412
|
};
|
|
413
413
|
var defaultClientTransportOptions = {
|
|
@@ -592,7 +592,7 @@ var Transport = class {
|
|
|
592
592
|
log?.error(
|
|
593
593
|
`${this.clientId} -- received out-of-order msg (got: ${msg.seq}, wanted: ${session.nextExpectedSeq}), marking connection as dead: ${JSON.stringify(msg)}`
|
|
594
594
|
);
|
|
595
|
-
session.
|
|
595
|
+
session.close();
|
|
596
596
|
}
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
UdsConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-IZLLS6QJ.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-37HZIKJO.js";
|
|
7
7
|
import "../../../chunk-GFRAOY75.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
@@ -387,7 +387,6 @@ var LeakyBucketRateLimit = class {
|
|
|
387
387
|
}
|
|
388
388
|
this.budgetConsumed.set(user, newBudget);
|
|
389
389
|
};
|
|
390
|
-
restoreBudgetForUser();
|
|
391
390
|
const intervalHandle = setInterval(
|
|
392
391
|
restoreBudgetForUser,
|
|
393
392
|
this.options.budgetRestoreIntervalMs
|
|
@@ -471,7 +470,7 @@ var defaultConnectionRetryOptions = {
|
|
|
471
470
|
baseIntervalMs: 250,
|
|
472
471
|
maxJitterMs: 200,
|
|
473
472
|
maxBackoffMs: 32e3,
|
|
474
|
-
attemptBudgetCapacity:
|
|
473
|
+
attemptBudgetCapacity: 5,
|
|
475
474
|
budgetRestoreIntervalMs: 200
|
|
476
475
|
};
|
|
477
476
|
var defaultClientTransportOptions = {
|
|
@@ -656,7 +655,7 @@ var Transport = class {
|
|
|
656
655
|
log?.error(
|
|
657
656
|
`${this.clientId} -- received out-of-order msg (got: ${msg.seq}, wanted: ${session.nextExpectedSeq}), marking connection as dead: ${JSON.stringify(msg)}`
|
|
658
657
|
);
|
|
659
|
-
session.
|
|
658
|
+
session.close();
|
|
660
659
|
}
|
|
661
660
|
return;
|
|
662
661
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-UPMTISRG.js";
|
|
4
4
|
import {
|
|
5
5
|
ClientTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-37HZIKJO.js";
|
|
7
7
|
import "../../../chunk-GFRAOY75.js";
|
|
8
8
|
import {
|
|
9
9
|
log
|
|
@@ -407,7 +407,7 @@ var defaultConnectionRetryOptions = {
|
|
|
407
407
|
baseIntervalMs: 250,
|
|
408
408
|
maxJitterMs: 200,
|
|
409
409
|
maxBackoffMs: 32e3,
|
|
410
|
-
attemptBudgetCapacity:
|
|
410
|
+
attemptBudgetCapacity: 5,
|
|
411
411
|
budgetRestoreIntervalMs: 200
|
|
412
412
|
};
|
|
413
413
|
var defaultClientTransportOptions = {
|
|
@@ -592,7 +592,7 @@ var Transport = class {
|
|
|
592
592
|
log?.error(
|
|
593
593
|
`${this.clientId} -- received out-of-order msg (got: ${msg.seq}, wanted: ${session.nextExpectedSeq}), marking connection as dead: ${JSON.stringify(msg)}`
|
|
594
594
|
);
|
|
595
|
-
session.
|
|
595
|
+
session.close();
|
|
596
596
|
}
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConnection
|
|
3
|
-
} from "../../../chunk-
|
|
3
|
+
} from "../../../chunk-UPMTISRG.js";
|
|
4
4
|
import {
|
|
5
5
|
ServerTransport
|
|
6
|
-
} from "../../../chunk-
|
|
6
|
+
} from "../../../chunk-37HZIKJO.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
|
@@ -418,7 +418,6 @@ var LeakyBucketRateLimit = class {
|
|
|
418
418
|
}
|
|
419
419
|
this.budgetConsumed.set(user, newBudget);
|
|
420
420
|
};
|
|
421
|
-
restoreBudgetForUser();
|
|
422
421
|
const intervalHandle = setInterval(
|
|
423
422
|
restoreBudgetForUser,
|
|
424
423
|
this.options.budgetRestoreIntervalMs
|
|
@@ -502,7 +501,7 @@ var defaultConnectionRetryOptions = {
|
|
|
502
501
|
baseIntervalMs: 250,
|
|
503
502
|
maxJitterMs: 200,
|
|
504
503
|
maxBackoffMs: 32e3,
|
|
505
|
-
attemptBudgetCapacity:
|
|
504
|
+
attemptBudgetCapacity: 5,
|
|
506
505
|
budgetRestoreIntervalMs: 200
|
|
507
506
|
};
|
|
508
507
|
var defaultClientTransportOptions = {
|
|
@@ -687,7 +686,7 @@ var Transport = class {
|
|
|
687
686
|
log?.error(
|
|
688
687
|
`${this.clientId} -- received out-of-order msg (got: ${msg.seq}, wanted: ${session.nextExpectedSeq}), marking connection as dead: ${JSON.stringify(msg)}`
|
|
689
688
|
);
|
|
690
|
-
session.
|
|
689
|
+
session.close();
|
|
691
690
|
}
|
|
692
691
|
return;
|
|
693
692
|
}
|
package/dist/transport/index.js
CHANGED
package/dist/util/testHelpers.js
CHANGED
package/package.json
CHANGED