UNPKG

@babel/runtime

Version:
7 lines • 311 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); }); } module.exports = _processResponse, module.exports.__esModule = true, module.exports["default"] = module.exports;