diff --git a/packages/util-stream/package.json b/packages/util-stream/package.json index 8892bf2d8e9..b8717256ea8 100644 --- a/packages/util-stream/package.json +++ b/packages/util-stream/package.json @@ -55,20 +55,20 @@ "dist-*/**" ], "browser": { - "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser", "./dist-es/checksum/createChecksumStream": "./dist-es/checksum/createChecksumStream.browser", + "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser", "./dist-es/headStream": "./dist-es/headStream.browser", "./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser", "./dist-es/splitStream": "./dist-es/splitStream.browser" }, "react-native": { - "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser", "./dist-es/checksum/createChecksumStream": "./dist-es/checksum/createChecksumStream.browser", + "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser", "./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser", "./dist-es/headStream": "./dist-es/headStream.browser", "./dist-es/splitStream": "./dist-es/splitStream.browser", - "./dist-cjs/getAwsChunkedEncodingStream": "./dist-cjs/getAwsChunkedEncodingStream.browser", "./dist-cjs/checksum/createChecksumStream": "./dist-cjs/checksum/createChecksumStream.browser", + "./dist-cjs/getAwsChunkedEncodingStream": "./dist-cjs/getAwsChunkedEncodingStream.browser", "./dist-cjs/sdk-stream-mixin": "./dist-cjs/sdk-stream-mixin.browser", "./dist-cjs/headStream": "./dist-cjs/headStream.browser", "./dist-cjs/splitStream": "./dist-cjs/splitStream.browser" diff --git a/packages/util-stream/src/checksum/createChecksumStream.browser.ts b/packages/util-stream/src/checksum/createChecksumStream.browser.ts index 711c8a2f01b..7dc69867552 100644 --- a/packages/util-stream/src/checksum/createChecksumStream.browser.ts +++ b/packages/util-stream/src/checksum/createChecksumStream.browser.ts @@ -114,7 +114,7 @@ export const createChecksumStream = ({ * * @extends ReadableStream */ -export class ChecksumStream {} +export function ChecksumStream(): void {} if (typeof ReadableStream === "function") { ChecksumStream.prototype = Object.create(ReadableStream.prototype);