Socket
Socket
Sign inDemoInstall

gaxios

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gaxios - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

4

build/src/gaxios.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc