@secrecy/lib 1.37.0 → 1.37.1

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.
@@ -163,13 +163,19 @@ export class SecrecyCloudClient {
163
163
  return uploadData.id;
164
164
  }
165
165
  async uploadDataInCloud({ data, name, nodeId, encryptProgress, uploadProgress, signal, isLite, }) {
166
- const upload = isLite ? this.uploadLiteData : this.uploadData;
167
- const dataId = await upload({
168
- data,
169
- encryptProgress,
170
- uploadProgress,
171
- signal,
172
- });
166
+ const dataId = isLite
167
+ ? await this.uploadLiteData({
168
+ data,
169
+ encryptProgress,
170
+ uploadProgress,
171
+ signal,
172
+ })
173
+ : await this.uploadData({
174
+ data,
175
+ encryptProgress,
176
+ uploadProgress,
177
+ signal,
178
+ });
173
179
  return await this.saveInCloud({
174
180
  dataId,
175
181
  name,
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.37.0",
5
+ "version": "1.37.1",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"