hono-utils 0.3.4 → 0.3.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.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -14262,14 +14262,14 @@ var createTypedClient = () => {
|
|
|
14262
14262
|
const { detail, statusCode } = err;
|
|
14263
14263
|
status = _nullishCoalesce(statusCode, () => ( 500));
|
|
14264
14264
|
if (!detail) {
|
|
14265
|
-
_optionalChain([
|
|
14265
|
+
_optionalChain([options, 'access', _196 => _196.errorHandler, 'optionalCall', _197 => _197(500, {
|
|
14266
14266
|
message: "Fetch malformed"
|
|
14267
14267
|
})]);
|
|
14268
14268
|
throw new (0, _httpexception.HTTPException)(500, { message: "Fetch malformed" });
|
|
14269
14269
|
}
|
|
14270
14270
|
}
|
|
14271
14271
|
_optionalChain([callbacks, 'optionalAccess', _198 => _198.onError, 'optionalCall', _199 => _199(errorBody, responseHeaders)]);
|
|
14272
|
-
_optionalChain([
|
|
14272
|
+
_optionalChain([options, 'access', _200 => _200.errorHandler, 'optionalCall', _201 => _201(status, errorBody)]);
|
|
14273
14273
|
throw new (0, _httpexception.HTTPException)(status, errorBody);
|
|
14274
14274
|
} finally {
|
|
14275
14275
|
_optionalChain([callbacks, 'optionalAccess', _202 => _202.onEnd, 'optionalCall', _203 => _203()]);
|