@jon49/sw 0.15.4 → 0.15.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.
@@ -148,7 +148,7 @@ async function executeHandler({ url, req, ctx }: ExectuteHandlerOptions): Promis
148
148
  e = [e.message]
149
149
  }
150
150
  if (Array.isArray(e)) {
151
- ctx.messages = e
151
+ ctx.messages = e.map((x: any) => "message" in x ? x.message : String(x))
152
152
  return {
153
153
  status: 204,
154
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jon49/sw",
3
- "version": "0.15.4",
3
+ "version": "0.15.5",
4
4
  "description": "Packages for MVC service workers.",
5
5
  "type": "module",
6
6
  "files": [