@selvajs/server 1.0.1 → 1.0.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/compute/limits.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface ComputeLimits {
|
|
|
48
48
|
/**
|
|
49
49
|
* /api/v1/compute JSON *request* body cap (inputs + values, not the .gh). Must
|
|
50
50
|
* stay <= adapter-node's global `BODY_SIZE_LIMIT` or that backstop rejects
|
|
51
|
-
* first.
|
|
51
|
+
* first. 256 MB matches the `BODY_SIZE_LIMIT=256M` shipped in `.env.example`:
|
|
52
52
|
* a `file` widget embeds geometry as base64 in `values`, so the client's
|
|
53
53
|
* 150 MB raw file inflates to ~200 MB on the wire, plus JSON envelope slack.
|
|
54
54
|
*/
|
package/dist/compute/limits.js
CHANGED
|
@@ -108,7 +108,7 @@ export function resolveComputeLimits(env, logger = noop) {
|
|
|
108
108
|
rateLimitMaxRequests: readPositiveInt(env, 'COMPUTE_RATE_LIMIT_MAX', 120, logger),
|
|
109
109
|
maxDefinitionFileSize,
|
|
110
110
|
maxImageFileSize: readPositiveInt(env, 'MAX_IMAGE_FILE_SIZE_BYTES', 10 * MB, logger),
|
|
111
|
-
computeRequestMaxBytes: readPositiveInt(env, 'COMPUTE_REQUEST_MAX_BYTES',
|
|
111
|
+
computeRequestMaxBytes: readPositiveInt(env, 'COMPUTE_REQUEST_MAX_BYTES', 256 * MB, logger),
|
|
112
112
|
computeResponseMaxBytes: readPositiveInt(env, 'COMPUTE_RESPONSE_MAX_BYTES', 300 * MB, logger),
|
|
113
113
|
remoteDefinitionMaxBytes: maxDefinitionFileSize,
|
|
114
114
|
remoteDefinitionFetchTimeoutMs: readPositiveInt(env, 'REMOTE_DEFINITION_FETCH_TIMEOUT_MS', 30_000, logger),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@selvajs/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Transport-agnostic server building blocks for apps built on the Selva engine (limits, rate limiting, SSRF guard, remote-definition fetch, definition service + render loader); the solve core lives in @selvajs/solve/server",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "VektorNode",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
],
|
|
81
81
|
"dependencies": {
|
|
82
82
|
"@selvajs/compute": "^4.0.1",
|
|
83
|
-
"@selvajs/platform": "^0.
|
|
83
|
+
"@selvajs/platform": "^0.18.0",
|
|
84
84
|
"@selvajs/schemas": "^5.0.0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
}
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@types/node": "^
|
|
99
|
+
"@types/node": "^24.13.3",
|
|
100
100
|
"typescript": "~6.0.3",
|
|
101
101
|
"vitest": "^4.1.10",
|
|
102
102
|
"@selvajs/config": "0.0.4"
|