Comparing version 1.2.8 to 1.3.0
@@ -30,2 +30,6 @@ import { Agent } from 'https'; | ||
body?: any; | ||
/** | ||
* The maximum size of the http response content in bytes allowed. | ||
*/ | ||
maxContentLength?: number; | ||
params?: any; | ||
@@ -42,2 +46,3 @@ paramsSerializer?: (params: { | ||
retry?: boolean; | ||
size?: number; | ||
} | ||
@@ -44,0 +49,0 @@ /** |
@@ -117,2 +117,5 @@ "use strict"; | ||
} | ||
if (typeof options.maxContentLength === 'number') { | ||
opts.size = options.maxContentLength; | ||
} | ||
opts.headers = opts.headers || {}; | ||
@@ -119,0 +122,0 @@ if (opts.data) { |
{ | ||
"name": "gaxios", | ||
"version": "1.2.8", | ||
"version": "1.3.0", | ||
"description": "A simple common HTTP client specifically for Google APIs and services.", | ||
@@ -5,0 +5,0 @@ "main": "build/src/index.js", |
@@ -59,2 +59,6 @@ # gaxios | ||
// The max size of the http response content in bytes allowed. | ||
// Defaults to `0`, which is the same as unset. | ||
maxContentLength: 2000, | ||
// The querystring parameters that will be encoded using `qs` and | ||
@@ -61,0 +65,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
46271
526
127