Comparing version 1.7.1 to 1.8.0
@@ -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: { |
@@ -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
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
50520
587
143