<gh_stars>100-1000
{"ast":null,"code":"function responseJson(response) {\n  if (!response.ok) throw new Error(response.status + \" \" + response.statusText);\n  return response.json();\n}\n\nexport default function (input, init) {\n  return fetch(input, init).then(responseJson);\n}","map":null,"metadata":{},"sourceType":"module"}