@asenajs/asena 0.6.2 → 0.6.3
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
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Asena
|
|
6
6
|
|
|
7
|
-
[](https://asena.sh)
|
|
8
8
|
[](https://opensource.org/licenses/MIT)
|
|
9
9
|
[](https://bun.sh)
|
|
10
10
|
|
|
@@ -1,6 +1,27 @@
|
|
|
1
1
|
import type { ServeOptions } from 'bun';
|
|
2
2
|
import type { WSOptions } from '../../server/web/websocket';
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* AsenaServerOptions excludes framework-managed properties from Bun's ServeOptions.
|
|
5
|
+
*
|
|
6
|
+
* Excluded properties (managed internally by AsenaJS):
|
|
7
|
+
* - `fetch`: Managed by HTTP adapter (e.g., HonoAdapter)
|
|
8
|
+
* - `routes`: Managed by AsenaJS routing decorators (@Get, @Post, etc.)
|
|
9
|
+
* - `websocket`: Managed by AsenaWebsocketAdapter
|
|
10
|
+
* - `error`: Managed through AsenaConfig.onError()
|
|
11
|
+
*
|
|
12
|
+
* Available options include:
|
|
13
|
+
* - Network: `hostname`, `port`, `unix`, `reusePort`, `ipv6Only`
|
|
14
|
+
* - Security: `tls`
|
|
15
|
+
* - Performance: `maxRequestBodySize`, `idleTimeout`
|
|
16
|
+
* - Development: `development`, `id`
|
|
17
|
+
*/
|
|
18
|
+
export type AsenaServerOptions = Omit<ServeOptions, 'fetch' | 'routes' | 'websocket' | 'error'>;
|
|
19
|
+
/**
|
|
20
|
+
* Complete configuration for AsenaJS server.
|
|
21
|
+
*
|
|
22
|
+
* @property serveOptions - Bun server options (excluding framework-managed properties)
|
|
23
|
+
* @property wsOptions - AsenaJS WebSocket-specific options
|
|
24
|
+
*/
|
|
4
25
|
export interface AsenaServeOptions {
|
|
5
26
|
serveOptions?: AsenaServerOptions;
|
|
6
27
|
wsOptions?: WSOptions;
|