cc-api-next
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -28,4 +28,2 @@ const fetch = require('isomorphic-unfetch'); | ||
const { headers } = config; | ||
if (!config.method) { | ||
@@ -45,3 +43,3 @@ config.method = 'get'; | ||
const handleResponse = response => { | ||
switch (headers['Content-Type']) { | ||
switch (response.headers.get('Content-Type').split(';')[0]) { | ||
case 'application/octet-stream': | ||
@@ -48,0 +46,0 @@ case 'application/pdf': |
{ | ||
"name": "cc-api-next", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "cc api next", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2700
73