Skip to content

Commit 4bfb1da

Browse files
AllanZhengYPsrchase
authored andcommitted
chore: add browser dependencies
1 parent f4405a0 commit 4bfb1da

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

packages/middleware-content-length/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export function contentLengthMiddleware(
1818
): Promise<BuildHandlerOutput<Output>> => {
1919
let request = { ...args.request };
2020
//TODO: cast request with instanceof
21-
if (HttpRequest.isHttpRequest(request)) {
21+
if (HttpRequest.isInstance(request)) {
2222
const { body, headers } = request;
2323
if (
2424
body &&

packages/types/src/unmarshaller.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ export interface ResponseDeserializer<ResponseType> {
2626
<OutputType>(output: ResponseType, protocolName: string): Promise<OutputType>;
2727
}
2828

29-
// /**
30-
// * A function that converts a stream into an array of bytes.
31-
// */
32-
// export interface StreamCollector<StreamType> {
33-
// (stream: StreamType): Promise<Uint8Array>;
34-
// }
29+
/**
30+
* A function that converts a stream into an array of bytes.
31+
*/
32+
export interface StreamCollector<StreamType> {
33+
(stream: StreamType): Promise<Uint8Array>;
34+
}
3535

3636
// /**
3737
// * A function that parses the http response when http status code > 299,

0 commit comments

Comments
 (0)