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.7.1 to 1.8.0

5

build/src/common.d.ts

@@ -41,2 +41,7 @@ /// <reference types="node" />

maxContentLength?: number;
/**
* The maximum number of redirects to follow. Defaults to 20.
*/
maxRedirects?: number;
follow?: number;
params?: any;

@@ -43,0 +48,0 @@ paramsSerializer?: (params: {

2

build/src/gaxios.d.ts

@@ -20,3 +20,3 @@ import { GaxiosOptions, GaxiosPromise } from './common';

/**
* Validate the options, and massage them to match the fetch format.
* Validates the options, and merges them with defaults.
* @param opts The original options passed from the client.

@@ -23,0 +23,0 @@ */

@@ -112,3 +112,3 @@ "use strict";

/**
* Validate the options, and massage them to match the fetch format.
* Validates the options, and merges them with defaults.
* @param opts The original options passed from the client.

@@ -129,2 +129,5 @@ */

}
if (typeof options.maxRedirects === 'number') {
opts.follow = options.maxRedirects;
}
opts.headers = opts.headers || {};

@@ -131,0 +134,0 @@ if (opts.data) {

{
"name": "gaxios",
"version": "1.7.1",
"version": "1.8.0",
"description": "A simple common HTTP client specifically for Google APIs and services.",

@@ -5,0 +5,0 @@ "main": "build/src/index.js",

@@ -63,2 +63,6 @@ # gaxios

// The max number of HTTP redirects to follow.
// Defaults to 100.
maxRedirects: 100,
// The querystring parameters that will be encoded using `qs` and

@@ -65,0 +69,0 @@ // appended to the url

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc