Comparing version 0.8.0 to 0.8.1
{ | ||
"name": "material", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "A lightweight implementation of Material Design Components for the web - ES6", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,3 +24,3 @@ const request = async (url, method = 'GET', body = null, headers = {}, signal = null, debug = false) => { | ||
if (!response.ok) { | ||
throw new Error(`Network response was not ok! ${response.status}`) | ||
console.log('Error', response) | ||
} | ||
@@ -35,4 +35,7 @@ | ||
} catch (error) { | ||
console.error('There has been a problem with your fetch operation:', error) | ||
return { error } | ||
if (headers.Accept === 'text/xml') { | ||
return error | ||
} else { | ||
return { error } | ||
} | ||
} | ||
@@ -39,0 +42,0 @@ } |
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
10601
454300