UNPKG

@babel/runtime

Version:
7 lines • 238 B
function _processResponse(t, e, r) { return t.then(function (t) { if (t.ok) return t = t[e](), r ? t.then(r) : t; throw TypeError("Fetch failed: " + t.status + " " + t.statusText); }); } export { _processResponse as default };