bun-dev-server 0.9.4 → 0.9.5

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.
@@ -119,5 +119,5 @@ export interface BunServeConfig {
119
119
  /**
120
120
  * Static bun responses
121
121
  */
122
- static?: Record<`/${string}`, Response>;
122
+ routes?: Record<`/${string}`, Response>;
123
123
  }
package/dist/index.js CHANGED
@@ -1195,9 +1195,9 @@ async function startBunDevServer(serverConfig, importMeta) {
1195
1195
  port: finalConfig.port,
1196
1196
  development: true,
1197
1197
  tls: finalConfig.tls,
1198
- static: {
1198
+ routes: {
1199
1199
  "/favicon.ico": withCORSHeaders(new Response("", { status: 404 })),
1200
- ...finalConfig.static
1200
+ ...finalConfig.routes
1201
1201
  },
1202
1202
  async fetch(req, server) {
1203
1203
  if (req.method === "OPTIONS") {
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  "exports": {
25
25
  ".": "./dist/index.js"
26
26
  },
27
- "version": "0.9.4",
27
+ "version": "0.9.5",
28
28
  "module": "index.ts",
29
29
  "type": "module",
30
30
  "license": "MIT",
@@ -32,7 +32,7 @@
32
32
  "build": "bun run ./build.ts"
33
33
  },
34
34
  "devDependencies": {
35
- "@types/bun": "^1.2.2"
35
+ "@types/bun": "^1.2.4"
36
36
  },
37
37
  "peerDependencies": {
38
38
  "typescript": "^5.7.3"