milkio 0.0.22 → 0.0.24

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.
@@ -156,7 +156,7 @@ export function defineHttpHandler(app: MilkioApp, options: ExecuteHttpServerOpti
156
156
  }
157
157
  await MiddlewareEvent.handle("beforeHTTPResponse", [middlewareResponse, detail])
158
158
 
159
- response.body = middlewareResponse.value
159
+ if (!response.body) response.body = middlewareResponse.value
160
160
  } catch (error) {
161
161
  const result = hanldeCatchError(error, executeId)
162
162
  if (!response.body) response.body = TSON.stringify(result)
@@ -173,6 +173,9 @@ export function defineHttpHandler(app: MilkioApp, options: ExecuteHttpServerOpti
173
173
  await loggerSubmit(executeId)
174
174
  runtime.execute.executeIds.delete(executeId)
175
175
 
176
+ console.warn('foo', response.body)
177
+
178
+
176
179
  return new Response(response.body, response)
177
180
  }
178
181
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "milkio",
3
3
  "type": "module",
4
4
  "module": "index.ts",
5
- "version": "0.0.22",
5
+ "version": "0.0.24",
6
6
  "peerDependencies": {
7
7
  "typescript": "^5.4.2"
8
8
  },