monastery 1.32.3 → 1.32.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.
- package/changelog.md +2 -0
- package/package.json +1 -1
- package/test/plugin-images.js +4 -4
package/changelog.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.32.4](https://github.com/boycce/monastery/compare/1.32.3...1.32.4) (2022-03-07)
|
|
6
|
+
|
|
5
7
|
### [1.32.3](https://github.com/boycce/monastery/compare/1.32.2...1.32.3) (2022-03-07)
|
|
6
8
|
|
|
7
9
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "monastery",
|
|
3
3
|
"description": "⛪ A straight forward MongoDB ODM built around Monk",
|
|
4
4
|
"author": "Ricky Boyce",
|
|
5
|
-
"version": "1.32.
|
|
5
|
+
"version": "1.32.4",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github:boycce/monastery",
|
|
8
8
|
"homepage": "https://boycce.github.io/monastery/",
|
package/test/plugin-images.js
CHANGED
|
@@ -161,7 +161,7 @@ module.exports = function(monastery, opendb) {
|
|
|
161
161
|
let express = require('express')
|
|
162
162
|
let upload = require('express-fileupload')
|
|
163
163
|
let app = express()
|
|
164
|
-
app.use(upload({ limits: {
|
|
164
|
+
app.use(upload({ limits: { fileSize: 1 * 1000 * 1000, files: 10 }}))
|
|
165
165
|
|
|
166
166
|
app.post('/', function(req, res) {
|
|
167
167
|
// Files exist
|
|
@@ -292,7 +292,7 @@ module.exports = function(monastery, opendb) {
|
|
|
292
292
|
let express = require('express')
|
|
293
293
|
let upload = require('express-fileupload')
|
|
294
294
|
let app = express()
|
|
295
|
-
app.use(upload({ limits: {
|
|
295
|
+
app.use(upload({ limits: { fileSize: 1 * 1000 * 1000, files: 10 }}))
|
|
296
296
|
|
|
297
297
|
app.post('/', function(req, res) {
|
|
298
298
|
req.body.logos = JSON.parse(req.body.logos)
|
|
@@ -368,7 +368,7 @@ module.exports = function(monastery, opendb) {
|
|
|
368
368
|
let express = require('express')
|
|
369
369
|
let upload = require('express-fileupload')
|
|
370
370
|
let app = express()
|
|
371
|
-
app.use(upload({ limits: {
|
|
371
|
+
app.use(upload({ limits: { fileSize: 1 * 1000 * 1000, files: 10 }}))
|
|
372
372
|
|
|
373
373
|
app.post('/', function(req, res) {
|
|
374
374
|
try {
|
|
@@ -426,7 +426,7 @@ module.exports = function(monastery, opendb) {
|
|
|
426
426
|
let express = require('express')
|
|
427
427
|
let upload = require('express-fileupload')
|
|
428
428
|
let app = express()
|
|
429
|
-
app.use(upload({ limits: {
|
|
429
|
+
app.use(upload({ limits: { fileSize: 1000 * 200, files: 10 }}))
|
|
430
430
|
|
|
431
431
|
app.post('/', async (req, res) => {
|
|
432
432
|
let imageSvgBad = { imageSvgBad: req.files.imageSvgBad }
|