@noatgnu/cupcake-vanilla 1.2.3 → 1.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1812,10 +1812,8 @@ class ChunkedUploadService extends BaseApiService {
|
|
|
1812
1812
|
}
|
|
1813
1813
|
const hasher = new jsSHA('SHA-256', 'ARRAYBUFFER');
|
|
1814
1814
|
const arrayBufferPromise = request.file.arrayBuffer();
|
|
1815
|
-
arrayBufferPromise.
|
|
1815
|
+
return from(arrayBufferPromise).pipe(switchMap((arrayBuffer) => {
|
|
1816
1816
|
hasher.update(arrayBuffer);
|
|
1817
|
-
});
|
|
1818
|
-
return from(arrayBufferPromise).pipe(switchMap(() => {
|
|
1819
1817
|
const hash = hasher.getHash('HEX');
|
|
1820
1818
|
formData.append('sha256', hash);
|
|
1821
1819
|
if (request.uploadSessionId) {
|