@kaito-http/core 4.0.0-beta.27 → 4.0.0-beta.28
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/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1228,6 +1228,9 @@ var Router = class _Router {
|
|
|
1228
1228
|
const parsed = route.openapi.schema.serialize(result);
|
|
1229
1229
|
return head.toResponse(parsed);
|
|
1230
1230
|
}
|
|
1231
|
+
if (result === void 0) {
|
|
1232
|
+
return head.toResponse(null);
|
|
1233
|
+
}
|
|
1231
1234
|
return head.toResponse(result);
|
|
1232
1235
|
} catch (e) {
|
|
1233
1236
|
const error = WrappedError.maybe(e);
|
package/dist/index.js
CHANGED
|
@@ -256,6 +256,9 @@ var Router = class _Router {
|
|
|
256
256
|
const parsed = route.openapi.schema.serialize(result);
|
|
257
257
|
return head.toResponse(parsed);
|
|
258
258
|
}
|
|
259
|
+
if (result === void 0) {
|
|
260
|
+
return head.toResponse(null);
|
|
261
|
+
}
|
|
259
262
|
return head.toResponse(result);
|
|
260
263
|
} catch (e) {
|
|
261
264
|
const error = WrappedError.maybe(e);
|