🐛 Bug fix(es)
try {
// ..blah
} catch (err: unknown)
if (err instanceof WretchError)
// Should now work fine, used to crash with an error of type: "body has already been read"
console.log(await err.response.json());
}
}try {
// ..blah
} catch (err: unknown)
if (err instanceof WretchError)
// Should now work fine, used to crash with an error of type: "body has already been read"
console.log(await err.response.json());
}
}Don't miss a new wretch release
NewReleases is sending notifications on new releases.