@jon49/sw 0.14.3 → 0.14.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.
@@ -10,9 +10,10 @@ function streamResponse(response: { body: Generator, headers?: any }): Response
10
10
  if (typeof x === "string")
11
11
  controller.enqueue(encoder.encode(x))
12
12
  }
13
- controller.close()
14
13
  } catch (error) {
15
14
  console.error(error)
15
+ } finally {
16
+ controller.close()
16
17
  }
17
18
  }
18
19
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jon49/sw",
3
- "version": "0.14.3",
3
+ "version": "0.14.4",
4
4
  "description": "Packages for MVC service workers.",
5
5
  "type": "module",
6
6
  "files": [