spice-js 2.5.32 → 2.5.33

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/index.js CHANGED
@@ -135,7 +135,8 @@ class Spice {
135
135
  formLimit: "1gb",
136
136
  multipart: true,
137
137
  formidable: {
138
- uploadDir: "./storage/uploads"
138
+ uploadDir: "./storage/uploads",
139
+ maxFileSize: 1024 * 1024 * 1024
139
140
  }
140
141
  }));
141
142
  app.use(convert(Validate()));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "spice-js",
3
- "version": "2.5.32",
3
+ "version": "2.5.33",
4
4
  "description": "spice",
5
5
  "main": "build/index.js",
6
6
  "repository": {
@@ -23,12 +23,9 @@ module.exports = async function () {
23
23
  if (task.enabled) {
24
24
  await addTask(task);
25
25
  }
26
-
27
26
  });
28
27
  }
29
-
30
28
  resolve({})
31
-
32
29
  } catch (e) {
33
30
  reject(e);
34
31
  }
package/src/index.js CHANGED
@@ -65,6 +65,7 @@ export default class Spice {
65
65
  multipart: true,
66
66
  formidable: {
67
67
  uploadDir: "./storage/uploads",
68
+ maxFileSize: 1024 * 1024 * 1024, // 1GB
68
69
  },
69
70
  })
70
71
  );