Comparing version 1.0.3 to 1.0.4
@@ -91,3 +91,4 @@ "use strict"; | ||
try { | ||
if (res.headers.get('content-type') === 'application/json') { | ||
if (res.headers.has('content-type') && | ||
res.headers.get('content-type').includes('application/json')) { | ||
return res.json(); | ||
@@ -100,2 +101,3 @@ } | ||
catch (_a) { | ||
// ignore the error | ||
} | ||
@@ -102,0 +104,0 @@ }); |
{ | ||
"name": "gaxios", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple common HTTP client specifically for Google APIs and services.", | ||
@@ -33,5 +33,6 @@ "main": "build/src/index.js", | ||
"@types/node-fetch": "^2.1.2", | ||
"@types/sinon": "^7.0.0", | ||
"assert-rejects": "^1.0.0", | ||
"codecov": "^3.0.4", | ||
"gts": "^0.8.0", | ||
"gts": "^0.9.0", | ||
"mocha": "^5.2.0", | ||
@@ -41,4 +42,5 @@ "nock": "^9.6.0", | ||
"semistandard": "^13.0.1", | ||
"sinon": "^7.1.1", | ||
"source-map-support": "^0.5.6", | ||
"typescript": "~3.1.5" | ||
"typescript": "~3.2.0" | ||
}, | ||
@@ -45,0 +47,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
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
42928
482
16