@kaathewise/ssg 0.3.0 → 0.3.1

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.ts +5 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaathewise/ssg",
3
3
  "description": "Bun & JSX static site generator",
4
- "version": "0.3.0",
4
+ "version": "0.3.1",
5
5
  "license": "MPL-2.0",
6
6
  "author": "Andrej Kolčin",
7
7
  "type": "module",
package/src/server.ts CHANGED
@@ -89,8 +89,11 @@ function createStream(
89
89
  start(controller): void {
90
90
  clients.add(controller)
91
91
 
92
- // @ts-expect-error
93
- request.signal.addEventListener("abort", () => {
92
+ // workaround because @ts-expect-error doesn't fail for
93
+ // aspartik/website for some reason, breaking the check.
94
+ // biome-ignore lint/suspicious/noExplicitAny: above
95
+ const signal = request.signal as any
96
+ signal.addEventListener("abort", () => {
94
97
  controller.close()
95
98
  clients.delete(controller)
96
99
  })