@actual-app/sync-server 25.10.0-nightly.20250922 → 25.10.0-nightly.20250924
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/build/src/app-sync.js +10 -3
- package/package.json +2 -2
package/build/src/app-sync.js
CHANGED
|
@@ -8,6 +8,7 @@ import { getAccountDb } from './account-db.js';
|
|
|
8
8
|
import { FileNotFound } from './app-sync/errors.js';
|
|
9
9
|
import { File, FilesService, FileUpdate, } from './app-sync/services/files-service.js';
|
|
10
10
|
import { validateSyncedFile, validateUploadedFile, } from './app-sync/validation.js';
|
|
11
|
+
import { config } from './load-config.js';
|
|
11
12
|
import * as simpleSync from './sync-simple.js';
|
|
12
13
|
import { errorMiddleware, requestLoggerMiddleware, validateSessionMiddleware, } from './util/middlewares.js';
|
|
13
14
|
import { getPathForUserFile, getPathForGroupFile } from './util/paths.js';
|
|
@@ -15,9 +16,15 @@ const app = express();
|
|
|
15
16
|
app.use(validateSessionMiddleware);
|
|
16
17
|
app.use(errorMiddleware);
|
|
17
18
|
app.use(requestLoggerMiddleware);
|
|
18
|
-
app.use(express.raw({
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
app.use(express.raw({
|
|
20
|
+
type: 'application/actual-sync',
|
|
21
|
+
limit: `${config.get('upload.fileSizeSyncLimitMB')}mb`,
|
|
22
|
+
}));
|
|
23
|
+
app.use(express.raw({
|
|
24
|
+
type: 'application/encrypted-file',
|
|
25
|
+
limit: `${config.get('upload.syncEncryptedFileSizeLimitMB')}mb`,
|
|
26
|
+
}));
|
|
27
|
+
app.use(express.json({ limit: `${config.get('upload.fileSizeLimitMB')}mb` }));
|
|
21
28
|
export { app as handlers };
|
|
22
29
|
const OK_RESPONSE = { status: 'ok' };
|
|
23
30
|
function boolToInt(deleted) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@actual-app/sync-server",
|
|
3
|
-
"version": "25.10.0-nightly.
|
|
3
|
+
"version": "25.10.0-nightly.20250924",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "actual syncing server",
|
|
6
6
|
"bin": {
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@actual-app/crdt": "2.1.0",
|
|
31
|
-
"@actual-app/web": "25.10.0-nightly.
|
|
31
|
+
"@actual-app/web": "25.10.0-nightly.20250924",
|
|
32
32
|
"bcrypt": "^6.0.0",
|
|
33
33
|
"better-sqlite3": "^12.2.0",
|
|
34
34
|
"convict": "^6.2.4",
|