@fugood/buttress-server 2.25.2-beta.1 → 2.25.2-beta.4

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.
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Serve a local file from a route.
3
+ *
4
+ * Not elysia's `file()` on Bun: it returns an ElysiaFile, which elysia's
5
+ * adapter dispatches by constructor *name* — and bundling renames the class
6
+ * (always under identifier minification, and under plain bundling whenever
7
+ * another module declares the same symbol). The compiled distribution shipped
8
+ * that way, degrading every file response to `String(response)` — HTTP 200
9
+ * "[object Object]". A BunFile dispatches through the global `Blob` case onto
10
+ * the same `handleFile` path, and globals survive any bundler. The Node
11
+ * fallback runs unbundled from lib/, where `file()` is safe.
12
+ * Covered by scripts/__tests__/bundle-file-response.test.js.
13
+ */
14
+ export declare const fileResponse: (path: string) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fugood/buttress-server",
3
- "version": "2.25.2-beta.1",
3
+ "version": "2.25.2-beta.4",
4
4
  "main": "lib/index.mjs",
5
5
  "types": "lib/index.d.ts",
6
6
  "type": "module",
@@ -69,5 +69,5 @@
69
69
  "tsdown": "^0.22.4",
70
70
  "typescript": "^7.0.2"
71
71
  },
72
- "gitHead": "046cd7e9d4fc8a7b6fab9a556e6cfb32fdfcd4f4"
72
+ "gitHead": "b36d86ed8dda9eb35282a067012bb514881d167d"
73
73
  }