@vyckr/tachyon 1.1.2 → 1.1.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vyckr/tachyon",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "author": "Chidelma",
5
5
  "repository": {
6
6
  "type": "git",
package/src/client/yon.ts CHANGED
@@ -253,8 +253,10 @@ export default class Yon {
253
253
 
254
254
  for(const route of routes) {
255
255
 
256
+ const file = Bun.file(`${Router.assetsPath}/${route}`)
257
+
256
258
  Router.reqRoutes[`/assets/${route}`] = {
257
- GET: async () => new Response(await Bun.file(`${Router.assetsPath}/${route}`).text())
259
+ GET: async () => new Response(await file.bytes(), { headers: { 'Content-Type': file.type }})
258
260
  }
259
261
  }
260
262
  }