@lacrous/omnicloud 0.2.17 → 0.2.18
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.
- package/package.json +4 -4
- package/server/index.js +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lacrous/omnicloud",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.18",
|
|
4
4
|
"description": "SDK and core building blocks for OmniCloud — self-hosted cloud storage powered by your Telegram account.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
"prisma": "^6.2.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@omnicloud/core": "0.2.
|
|
52
|
-
"@omnicloud/shared": "0.2.
|
|
53
|
-
"@omnicloud/telegram": "0.2.
|
|
51
|
+
"@omnicloud/core": "0.2.18",
|
|
52
|
+
"@omnicloud/shared": "0.2.18",
|
|
53
|
+
"@omnicloud/telegram": "0.2.18",
|
|
54
54
|
"@types/node": "^22.10.0",
|
|
55
55
|
"esbuild": "0.25.12",
|
|
56
56
|
"tsup": "^8.3.0",
|
package/server/index.js
CHANGED
|
@@ -4777,6 +4777,7 @@ function registerFileRoutes(app2, container2) {
|
|
|
4777
4777
|
const part = await request.file();
|
|
4778
4778
|
if (!part) throw new ValidationError('A multipart body with a "file" field is required');
|
|
4779
4779
|
if (!part.filename) throw new ValidationError("The uploaded file has no filename");
|
|
4780
|
+
const operationId = operationIdFrom(request.headers, part.fields);
|
|
4780
4781
|
const record = await withSpooledUpload(
|
|
4781
4782
|
part,
|
|
4782
4783
|
maxUploadBytes,
|
|
@@ -4784,7 +4785,8 @@ function registerFileRoutes(app2, container2) {
|
|
|
4784
4785
|
folderId: null,
|
|
4785
4786
|
name: part.filename,
|
|
4786
4787
|
spooled,
|
|
4787
|
-
replaceFileId: id
|
|
4788
|
+
replaceFileId: id,
|
|
4789
|
+
operationId
|
|
4788
4790
|
})
|
|
4789
4791
|
);
|
|
4790
4792
|
return reply.send({ file: toFileDTO(record) });
|
|
@@ -5030,7 +5032,7 @@ function encryptionCheck(configured) {
|
|
|
5030
5032
|
}
|
|
5031
5033
|
|
|
5032
5034
|
// ../../apps/api/src/routes/storage.ts
|
|
5033
|
-
var VERSION = "0.2.
|
|
5035
|
+
var VERSION = "0.2.18";
|
|
5034
5036
|
function registerStorageRoutes(app2, container2) {
|
|
5035
5037
|
app2.get("/api/health", async () => {
|
|
5036
5038
|
const database = await probeDatabase(container2);
|