@babel/runtime-corejs3
Version:
babel's modular runtime helpers with core-js@3 polyfilling
7 lines • 311 B
JavaScript
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;