@protobase/server 0.29.1 → 0.30.0
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/forms/rate-limit.js +3 -2
- package/package.json +4 -4
package/dist/forms/rate-limit.js
CHANGED
|
@@ -3,8 +3,9 @@ import { getIP } from "better-auth/api";
|
|
|
3
3
|
const windowMs = 6e4;
|
|
4
4
|
/**
|
|
5
5
|
* The client a request counts against, as Better Auth's sign-in limit reads it: an `X-Forwarded-For` of one valid
|
|
6
|
-
* address (IPv6 by its /64),
|
|
7
|
-
*
|
|
6
|
+
* address (IPv6 by its /64), which `protobase serve` sets from the connection and its trusted proxies, or `unknown`,
|
|
7
|
+
* one bucket for every request without one (several addresses included, since the leftmost is whatever the client
|
|
8
|
+
* sent). In development and tests a request without one is `127.0.0.1`.
|
|
8
9
|
*/
|
|
9
10
|
const clientAddress = (headers) => getIP(headers, {}) ?? "unknown";
|
|
10
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "The Protobase REST API as a Hono app, with Better Auth sign-in.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@better-auth/passkey": "^1.7.7",
|
|
34
34
|
"@better-auth/sso": "^1.7.7",
|
|
35
|
-
"@protobase/layout": "0.
|
|
36
|
-
"@protobase/query": "0.
|
|
37
|
-
"@protobase/schema": "0.
|
|
35
|
+
"@protobase/layout": "0.30.0",
|
|
36
|
+
"@protobase/query": "0.30.0",
|
|
37
|
+
"@protobase/schema": "0.30.0",
|
|
38
38
|
"@react-email/render": "^2.1.0",
|
|
39
39
|
"@scalar/hono-api-reference": "^0.12.10",
|
|
40
40
|
"@sentry/core": "^11.7.0",
|