@cadenza.io/service 1.15.1 → 1.15.2
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.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -492,7 +492,7 @@ var ServiceRegistry = class _ServiceRegistry {
|
|
|
492
492
|
return true;
|
|
493
493
|
},
|
|
494
494
|
"Handles service not responding"
|
|
495
|
-
).doOn("meta.fetch.handshake_failed", "meta.socket_client.disconnected");
|
|
495
|
+
).doOn("meta.fetch.handshake_failed", "meta.socket_client.disconnected.*");
|
|
496
496
|
this.handleServiceHandshakeTask = CadenzaService.createMetaTask(
|
|
497
497
|
"Handle service handshake",
|
|
498
498
|
(ctx, emit) => {
|
|
@@ -1044,7 +1044,7 @@ var RestController = class _RestController {
|
|
|
1044
1044
|
);
|
|
1045
1045
|
app.use((req, res, next) => {
|
|
1046
1046
|
new import_rate_limiter_flexible.RateLimiterMemory({
|
|
1047
|
-
points:
|
|
1047
|
+
points: 1e3,
|
|
1048
1048
|
duration: 300
|
|
1049
1049
|
}).consume(req.ip).then(() => next()).catch(
|
|
1050
1050
|
() => res.status(429).json({ error: "Too many requests" })
|