bun-plugin-stx 0.2.805 → 0.2.807
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/README.md +16 -0
- package/dist/serve.d.ts +1 -0
- package/dist/serve.js +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1090,3 +1090,19 @@ The documentation will include:
|
|
|
1090
1090
|
|
|
1091
1091
|
This makes it easy for developers to understand how to use your web components in their HTML.
|
|
1092
1092
|
|
|
1093
|
+
## Request body limits
|
|
1094
|
+
|
|
1095
|
+
The programmatic server accepts an HTTP body budget in bytes:
|
|
1096
|
+
|
|
1097
|
+
```typescript
|
|
1098
|
+
import { serve } from 'bun-plugin-stx/serve'
|
|
1099
|
+
|
|
1100
|
+
await serve({
|
|
1101
|
+
patterns: ['resources/views'],
|
|
1102
|
+
maxRequestBodySize: 64 * 1024 * 1024,
|
|
1103
|
+
})
|
|
1104
|
+
```
|
|
1105
|
+
|
|
1106
|
+
The budget includes multipart framing. Omitting it keeps Bun's default. Upload
|
|
1107
|
+
handlers still validate each file against their own limits.
|
|
1108
|
+
|
package/dist/serve.d.ts
CHANGED
package/dist/serve.js
CHANGED
|
@@ -11209,6 +11209,7 @@ ${block}`;
|
|
|
11209
11209
|
function listen(listenPort, reusePort, hostname) {
|
|
11210
11210
|
return bunServe({
|
|
11211
11211
|
port: listenPort,
|
|
11212
|
+
...options.maxRequestBodySize === undefined ? {} : { maxRequestBodySize: options.maxRequestBodySize },
|
|
11212
11213
|
...hostname ? { hostname } : {},
|
|
11213
11214
|
reusePort,
|
|
11214
11215
|
idleTimeout: production ? 120 : 0,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bun-plugin-stx",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.807",
|
|
5
5
|
"description": "A Bun plugin that allows for using Laravel Blade-like syntax.",
|
|
6
6
|
"author": "Chris Breuer <chris@stacksjs.org>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"typecheck": "bun tsc --noEmit"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@stacksjs/stx": "0.2.
|
|
78
|
-
"stx-router": "0.2.
|
|
77
|
+
"@stacksjs/stx": "0.2.807",
|
|
78
|
+
"stx-router": "0.2.807"
|
|
79
79
|
}
|
|
80
80
|
}
|