Commit 15ff5a0 1 parent 4d8ffc2 commit 15ff5a0 Copy full SHA for 15ff5a0
File tree 2 files changed +6
-11
lines changed
2 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
- * JSON.stringify bugfix for custom objects with ` toJSON() ` method
2
- * Increase WHATWG/WinterCG ` Fetch ` compatibility:
3
- * Add ` Blob `
4
- * Make ` Request ` and ` Response ` instantiable from global scope
5
- * Add missing properties
6
- * Update dependencies
7
- * Minor bugfixes
1
+ * Fix S3 Object Read
Original file line number Diff line number Diff line change @@ -7,16 +7,17 @@ const transformToWebStream = () => {
7
7
} ;
8
8
9
9
async function transformToByteArray ( ) {
10
- return this ;
10
+ return await this . typedArray ( ) ;
11
11
}
12
12
13
13
async function transformToString ( encoding ) {
14
+ const typedArray = await this . typedArray ( ) ;
14
15
if ( encoding === "base64" ) {
15
- return toBase64 ( this ) ;
16
+ return toBase64 ( typedArray ) ;
16
17
} else if ( encoding === "hex" ) {
17
- return toHex ( this ) ;
18
+ return toHex ( typedArray ) ;
18
19
}
19
- return toUtf8 ( this ) ;
20
+ return toUtf8 ( typedArray ) ;
20
21
}
21
22
22
23
export const sdkStreamMixin = ( stream ) =>
You can’t perform that action at this time.
0 commit comments