teeny-request
Advanced tools
Comparing version 5.1.2 to 5.1.3
@@ -18,3 +18,3 @@ /*! | ||
import { Agent } from 'https'; | ||
import { Readable, Duplex } from 'stream'; | ||
import { PassThrough, Readable } from 'stream'; | ||
export interface CoreOptions { | ||
@@ -40,3 +40,3 @@ method?: 'GET' | 'POST' | 'PUT' | 'HEAD' | 'OPTIONS' | 'PATCH' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE'; | ||
export declare type Options = OptionsWithUri | OptionsWithUrl; | ||
export interface Request extends Duplex { | ||
export interface Request extends PassThrough { | ||
agent: Agent | false; | ||
@@ -43,0 +43,0 @@ headers: Headers; |
@@ -191,3 +191,3 @@ "use strict"; | ||
// Stream mode | ||
var requestStream_1 = new stream_1.Duplex(); | ||
var requestStream_1 = new stream_1.PassThrough(); | ||
options.compress = false; | ||
@@ -194,0 +194,0 @@ node_fetch_1.default(uri, options).then(function (res) { |
# Changelog | ||
### [5.1.3](https://www.github.com/googleapis/teeny-request/compare/v5.1.2...v5.1.3) (2019-08-06) | ||
### Bug Fixes | ||
* duplex stream does not implement methods like _read ([#64](https://www.github.com/googleapis/teeny-request/issues/64)) ([22ee26c](https://www.github.com/googleapis/teeny-request/commit/22ee26c)) | ||
### [5.1.2](https://www.github.com/googleapis/teeny-request/compare/v5.1.1...v5.1.2) (2019-08-06) | ||
@@ -4,0 +11,0 @@ |
{ | ||
"name": "teeny-request", | ||
"version": "5.1.2", | ||
"version": "5.1.3", | ||
"description": "Like request, but smaller.", | ||
@@ -5,0 +5,0 @@ "main": "./build/src/index.js", |
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
36623