Comparing version 2.0.1-beta.6 to 2.0.1-beta.7
{ | ||
"name": "netlify", | ||
"description": "Netlify Node.js API client", | ||
"version": "2.0.1-beta.6", | ||
"version": "2.0.1-beta.7", | ||
"author": "Netlify Inc.", | ||
@@ -6,0 +6,0 @@ "ava": { |
@@ -83,3 +83,13 @@ const get = require('lodash.get') | ||
// TODO: Use micro-api-client when it supports node-fetch | ||
const response = await fetch(path, opts) | ||
let response | ||
try { | ||
response = await fetch(path, opts) | ||
} catch (e) { | ||
/* istanbul ignore next */ | ||
e.name = 'FetchError' | ||
e.url = path | ||
e.data = Object.assign({}, opts) | ||
delete e.data.Authorization | ||
throw e | ||
} | ||
@@ -86,0 +96,0 @@ const contentType = response.headers.get('Content-Type') |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
47613
997