Skip to content

Commit fbc90bd

Browse files
committed
fix(deps): bumped deps
1 parent c3309be commit fbc90bd

6 files changed

Lines changed: 35 additions & 35 deletions

File tree

lib/body.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { createHash } from "crypto";
22

33
import { tap } from "already";
4-
import getStream from "get-stream";
4+
import { buffer as getStreamBuffer } from "get-stream";
55
import * as through2 from "through2";
66
import * as toArrayBuffer from "to-arraybuffer";
77

@@ -221,7 +221,7 @@ export class Body implements IBody
221221
: Promise< Buffer >
222222
{
223223
if ( !this._signal )
224-
return getStream.buffer( readable );
224+
return getStreamBuffer( readable );
225225

226226
// Race the readable against the abort signal
227227
let callback: ( ) => void = ( ) => { };
@@ -236,7 +236,7 @@ export class Body implements IBody
236236
this._ensureNotAborted( );
237237

238238
return await Promise.race( [
239-
getStream.buffer( readable ),
239+
getStreamBuffer( readable ),
240240
onAborted,
241241
] );
242242
}

package.json

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,31 +52,31 @@
5252
"devDependencies": {
5353
"@types/execa": "^2.0.0",
5454
"@types/from2": "^2.3.0",
55-
"@types/jest": "^25.1.4",
56-
"@types/node": "^13.9.1",
57-
"@types/through2": "^2.0.34",
58-
"commitizen": "^4.0.3",
55+
"@types/jest": "^25.2.3",
56+
"@types/node": "^14.6.0",
57+
"@types/through2": "^2.0.36",
58+
"commitizen": "^4.1.2",
5959
"compd": "^1.3.7",
60-
"concurrently": "^5.1.0",
61-
"cz-conventional-changelog": "^3.1.0",
62-
"execa": "^4.0.0",
60+
"concurrently": "^5.3.0",
61+
"cz-conventional-changelog": "^3.2.0",
62+
"execa": "^4.0.3",
6363
"from2": "^2.3.0",
6464
"jest": "^25.1.0",
65-
"mkcert": "^1.2.0",
65+
"mkcert": "^1.3.0",
6666
"rimraf": "^3.0.2",
6767
"ts-jest": "^25.2.1",
68-
"ts-node": "^8.6.2",
69-
"tslint": "^6.1.0",
70-
"typescript": "^3.8.3"
68+
"ts-node": "^8.10.2",
69+
"tslint": "^6.1.3",
70+
"typescript": "^3.9.7"
7171
},
7272
"dependencies": {
73-
"@types/tough-cookie": "^2.3.6",
74-
"already": "^1.12.0",
73+
"@types/tough-cookie": "^4.0.0",
74+
"already": "^1.13.1",
7575
"callguard": "^1.2.1",
76-
"get-stream": "^5.1.0",
77-
"through2": "^3.0.1",
76+
"get-stream": "^6.0.0",
77+
"through2": "^4.0.2",
7878
"to-arraybuffer": "^1.0.1",
79-
"tough-cookie": "^3.0.1"
79+
"tough-cookie": "^4.0.0"
8080
},
8181
"config": {
8282
"commitizen": {

test/fetch-h2/body.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { createHash } from "crypto";
2-
import getStream from "get-stream";
2+
import { buffer as getStreamBuffer } from "get-stream";
33
import * as through2 from "through2";
44

55
import { createIntegrity } from "../lib/utils";
@@ -498,21 +498,21 @@ describe( "body", ( ) =>
498498
it( "handle null", async ( ) =>
499499
{
500500
const body = new DataBody( null );
501-
const data = await getStream.buffer( await body.readable( ) );
501+
const data = await getStreamBuffer( await body.readable( ) );
502502
expect( data.toString( ) ).toBe( "" );
503503
} );
504504

505505
it( "handle string", async ( ) =>
506506
{
507507
const body = new DataBody( "foo" );
508-
const data = await getStream.buffer( await body.readable( ) );
508+
const data = await getStreamBuffer( await body.readable( ) );
509509
expect( data.toString( ) ).toBe( "foo" );
510510
} );
511511

512512
it( "handle buffer", async ( ) =>
513513
{
514514
const body = new DataBody( Buffer.from( "foo" ) );
515-
const data = await getStream.buffer( await body.readable( ) );
515+
const data = await getStreamBuffer( await body.readable( ) );
516516
expect( data.toString( ) ).toBe( "foo" );
517517
} );
518518

@@ -521,7 +521,7 @@ describe( "body", ( ) =>
521521
const stream = through2( );
522522
stream.end( "foo" );
523523
const body = new StreamBody( stream );
524-
const data = await getStream.buffer( await body.readable( ) );
524+
const data = await getStreamBuffer( await body.readable( ) );
525525
expect( data.toString( ) ).toBe( "foo" );
526526
} );
527527
} );

test/fetch-h2/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defer, delay } from "already";
22
import { createHash } from "crypto";
33
import * as from2 from "from2";
4-
import getStream from "get-stream";
4+
import { buffer as getStreamBuffer } from "get-stream";
55
import * as through2 from "through2";
66

77
import { TestData } from "../lib/server-common";
@@ -603,7 +603,7 @@ describe( `generic (${protoVersion})`, ( ) =>
603603

604604
const stream = await response.readable( );
605605

606-
const data = await getStream.buffer( stream );
606+
const data = await getStreamBuffer( stream );
607607

608608
expect( JSON.parse( data.toString( ) ) ).toEqual( testData );
609609

@@ -630,7 +630,7 @@ describe( `generic (${protoVersion})`, ( ) =>
630630

631631
const stream = await response.readable( );
632632

633-
const data = await getStream.buffer( stream );
633+
const data = await getStreamBuffer( stream );
634634

635635
expect( JSON.parse( data.toString( ) ) ).toEqual( testData );
636636

@@ -660,7 +660,7 @@ describe( `generic (${protoVersion})`, ( ) =>
660660

661661
const stream = await response.readable( );
662662

663-
const data = await getStream.buffer( stream );
663+
const data = await getStreamBuffer( stream );
664664

665665
expect( JSON.parse( data.toString( ) ) ).toEqual( testData );
666666

test/lib/server-http1.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { createHash } from "crypto";
1818
import { createBrotliCompress, createDeflate, createGzip } from "zlib";
1919

2020
import { delay } from "already";
21-
import getStream from "get-stream";
21+
import { buffer as getStreamBuffer } from "get-stream";
2222

2323
import {
2424
ignoreError,
@@ -136,7 +136,7 @@ export class ServerHttp1 extends TypedServer< HttpServer | HttpsServer >
136136
[ HTTP2_HEADER_SET_COOKIE ]: [ ],
137137
};
138138

139-
const data = await getStream.buffer( request );
139+
const data = await getStreamBuffer( request );
140140
const json = JSON.parse( data.toString( ) );
141141
json.forEach( ( cookie: any ) =>
142142
{
@@ -180,7 +180,7 @@ export class ServerHttp1 extends TypedServer< HttpServer | HttpsServer >
180180
":status": 200,
181181
};
182182

183-
const data = await getStream.buffer( request );
183+
const data = await getStreamBuffer( request );
184184
const json = JSON.parse( data.toString( ) );
185185

186186
sendHeaders( responseHeaders );

test/lib/server-http2.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import { createHash } from "crypto";
1414
import { createBrotliCompress, createDeflate, createGzip } from "zlib";
1515

1616
import { delay } from "already";
17-
import getStream from "get-stream";
17+
import { buffer as getStreamBuffer } from "get-stream";
1818

1919
import {
2020
ignoreError,
@@ -121,7 +121,7 @@ export class ServerHttp2 extends TypedServer< Http2Server >
121121
[ HTTP2_HEADER_SET_COOKIE ]: [ ],
122122
};
123123

124-
const data = await getStream.buffer( stream );
124+
const data = await getStreamBuffer( stream );
125125
const json = JSON.parse( data.toString( ) );
126126
json.forEach( ( cookie: any ) =>
127127
{
@@ -163,7 +163,7 @@ export class ServerHttp2 extends TypedServer< Http2Server >
163163
":status": 200,
164164
};
165165

166-
const data = await getStream.buffer( stream );
166+
const data = await getStreamBuffer( stream );
167167
const json = JSON.parse( data.toString( ) );
168168

169169
stream.once( "wantTrailers", ( ) =>
@@ -211,7 +211,7 @@ export class ServerHttp2 extends TypedServer< Http2Server >
211211
":status": 200,
212212
};
213213

214-
const data = await getStream.buffer( stream );
214+
const data = await getStreamBuffer( stream );
215215
const json = JSON.parse( data.toString( ) );
216216

217217
json.forEach( ( pushable: any ) =>

0 commit comments

Comments
 (0)