@secrecy/lib 1.51.0-feat-improvements.3 → 1.51.0-feat-improvements.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.
|
@@ -382,15 +382,17 @@ export class SecrecyCloudClient {
|
|
|
382
382
|
...missingContents.map((data) => ({
|
|
383
383
|
id: data.id,
|
|
384
384
|
size: data.size,
|
|
385
|
+
sizeEncrypted: data.sizeEncrypted,
|
|
385
386
|
storageType: data.storageType,
|
|
386
387
|
})),
|
|
387
388
|
...cachedData.map((data) => ({
|
|
388
389
|
id: data.id,
|
|
389
390
|
size: data.size,
|
|
391
|
+
sizeEncrypted: data.sizeEncrypted,
|
|
390
392
|
storageType: data.storageType,
|
|
391
393
|
})),
|
|
392
394
|
];
|
|
393
|
-
const allDataContentsBytes = Number(allDataContents.reduce((curr, next) => curr + next.size, 0n));
|
|
395
|
+
const allDataContentsBytes = Number(allDataContents.reduce((curr, next) => curr + (next.sizeEncrypted ?? next.size), 0n));
|
|
394
396
|
const progressParts = {};
|
|
395
397
|
return Promise.all(missingContents.map(async (missingContent) => {
|
|
396
398
|
return this._handleDataContent({
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@secrecy/lib",
|
|
3
3
|
"author": "Anonymize <anonymize@gmail.com>",
|
|
4
4
|
"description": "Anonymize Secrecy Library",
|
|
5
|
-
"version": "1.51.0-feat-improvements.
|
|
5
|
+
"version": "1.51.0-feat-improvements.4",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "https://github.com/anonymize-org/lib.git"
|