teeny-request
Advanced tools
Comparing version 5.3.0 to 5.3.1
@@ -61,3 +61,3 @@ "use strict"; | ||
function requestToFetchOptions(reqOpts) { | ||
var options = __assign(__assign({ method: reqOpts.method || 'GET' }, (reqOpts.timeout && { timeout: reqOpts.timeout })), (reqOpts.gzip && { compress: reqOpts.gzip })); | ||
var options = __assign(__assign({ method: reqOpts.method || 'GET' }, (reqOpts.timeout && { timeout: reqOpts.timeout })), (typeof reqOpts.gzip === 'boolean' && { compress: reqOpts.gzip })); | ||
if (typeof reqOpts.json === 'object') { | ||
@@ -64,0 +64,0 @@ // Add Content-type: application/json header |
# Changelog | ||
### [5.3.1](https://www.github.com/googleapis/teeny-request/compare/v5.3.0...v5.3.1) (2019-10-29) | ||
### Bug Fixes | ||
* correctly set compress/gzip option when false ([#95](https://www.github.com/googleapis/teeny-request/issues/95)) ([72ef307](https://www.github.com/googleapis/teeny-request/commit/72ef307364de542af3ef8581572b1897fca2bcf4)) | ||
## [5.3.0](https://www.github.com/googleapis/teeny-request/compare/v5.2.1...v5.3.0) (2019-10-09) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "teeny-request", | ||
"version": "5.3.0", | ||
"version": "5.3.1", | ||
"description": "Like request, but smaller.", | ||
@@ -50,3 +50,3 @@ "main": "./build/src/index.js", | ||
"@types/uuid": "^3.4.4", | ||
"c8": "^5.0.1", | ||
"c8": "^6.0.0", | ||
"codecov": "^3.1.0", | ||
@@ -53,0 +53,0 @@ "gts": "^1.0.0", |
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