@hamak/filesystem-server-api 0.9.3 → 0.9.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.
@@ -12,4 +12,5 @@ exports.DEFAULT_FILESYSTEM_SERVER_CONFIG = {
12
12
  enableFileUpload: false,
13
13
  maxFileSize: 10 * 1024 * 1024, // 10MB
14
14
  mountPath: '/api/workspaces',
15
+ maxRequestBodySize: '10mb',
15
16
  };
@@ -37,6 +37,17 @@ export interface FileSystemServerConfig {
37
37
  * @default "/api/workspaces"
38
38
  */
39
39
  mountPath?: string;
40
+ /**
41
+ * Maximum size of a JSON request body, as a byte count or a body-parser size
42
+ * string (e.g. '10mb').
43
+ *
44
+ * File writes arrive as JSON bodies, so this is the real ceiling on how large
45
+ * a file can be saved. Left unset, body-parser would apply its own 100kb
46
+ * default and reject larger saves with a 413.
47
+ *
48
+ * @default "10mb"
49
+ */
50
+ maxRequestBodySize?: number | string;
40
51
  }
41
52
  /**
42
53
  * Default configuration values
@@ -1 +1 @@
1
- {"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/types/server-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,aAAa,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,OAAO,CAAC,sBAAsB,CAK5E,CAAC"}
1
+ {"version":3,"file":"server-config.d.ts","sourceRoot":"","sources":["../../src/types/server-config.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;;OAGG;IACH,UAAU,EAAE,aAAa,CAAC;IAE1B;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;OASG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACtC;AAED;;GAEG;AACH,eAAO,MAAM,gCAAgC,EAAE,OAAO,CAAC,sBAAsB,CAM5E,CAAC"}
@@ -9,4 +9,5 @@ export const DEFAULT_FILESYSTEM_SERVER_CONFIG = {
9
9
  enableFileUpload: false,
10
10
  maxFileSize: 10 * 1024 * 1024, // 10MB
11
11
  mountPath: '/api/workspaces',
12
+ maxRequestBodySize: '10mb',
12
13
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hamak/filesystem-server-api",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "FileSystem Server API - Backend filesystem server interfaces and contracts",