@secrecy/lib 1.66.0-feat-next15.3 → 1.66.0-feat-next15.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.
@@ -14,6 +14,7 @@ import { kiloToBytes } from '../utils.js';
14
14
  import { fileTypeFromBuffer } from 'file-type';
15
15
  import { encryptName, generateAndEncryptNameAndKey } from '../crypto/domain.js';
16
16
  import { chunkByTotalItems } from '../utils/object.js';
17
+ import axios from 'axios';
17
18
  export class SecrecyCloudClient {
18
19
  #client;
19
20
  #keys;
@@ -191,11 +192,20 @@ export class SecrecyCloudClient {
191
192
  formData.append(key, value);
192
193
  }
193
194
  formData.append('file', new Blob([chunk.data], { type: filetype?.mime }), `${uploadData.id}-${chunk.order}`);
194
- await ky.post(part.url, {
195
- signal,
196
- body: formData,
195
+ // await ky.post(part.url, {
196
+ // signal,
197
+ // body: formData,
198
+ // onUploadProgress: (progressEvent) => {
199
+ // onProgress(part.order, progressEvent)
200
+ // },
201
+ // })
202
+ await axios.post(part.url, formData, {
197
203
  onUploadProgress: (progressEvent) => {
198
- onProgress(part.order, progressEvent);
204
+ onProgress(part.order, {
205
+ percent: progressEvent.progress ?? 0,
206
+ totalBytes: progressEvent.total ?? 0,
207
+ transferredBytes: progressEvent.loaded,
208
+ });
199
209
  },
200
210
  });
201
211
  return uploadDataPartEnd(chunk.md5, chunk.order);
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.66.0-feat-next15.3",
5
+ "version": "1.66.0-feat-next15.4",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "https://github.com/anonymize-org/lib.git"
@@ -55,10 +55,10 @@
55
55
  "@types/bun": "^1.2.21",
56
56
  "@types/jsonwebtoken": "^9.0.10",
57
57
  "@types/spark-md5": "^3.0.5",
58
- "@typescript-eslint/eslint-plugin": "^8.42.0",
59
- "@typescript-eslint/parser": "^8.42.0",
58
+ "@typescript-eslint/eslint-plugin": "^8.43.0",
59
+ "@typescript-eslint/parser": "^8.43.0",
60
60
  "eslint": "^9.35.0",
61
- "eslint-config-love": "^122.0.0",
61
+ "eslint-config-love": "^125.0.0",
62
62
  "eslint-config-prettier": "^10.1.8",
63
63
  "eslint-plugin-import": "^2.32.0",
64
64
  "eslint-plugin-n": "^17.21.3",
@@ -67,7 +67,7 @@
67
67
  "npm-run-all": "^4.1.5",
68
68
  "prettier": "^3.6.2",
69
69
  "rimraf": "^6.0.1",
70
- "semantic-release": "^24.2.7",
70
+ "semantic-release": "^24.2.8",
71
71
  "typedoc": "^0.28.12",
72
72
  "typedoc-plugin-markdown": "^4.8.1",
73
73
  "typedoc-plugin-missing-exports": "^4.1.0",
@@ -79,6 +79,7 @@
79
79
  "@trpc/client": "11.5.1",
80
80
  "@trpc/server": "11.5.1",
81
81
  "@types/libsodium-wrappers-sumo": "^0.7.8",
82
+ "axios": "^1.11.0",
82
83
  "bson": "^6.10.4",
83
84
  "ethers": "^6.15.0",
84
85
  "file-type": "^21.0.0",
@@ -88,6 +89,6 @@
88
89
  "lru-cache": "^11.2.1",
89
90
  "spark-md5": "^3.0.2",
90
91
  "superjson": "2.2.2",
91
- "zod": "4.1.5"
92
+ "zod": "4.1.7"
92
93
  }
93
94
  }