Security patches and version bumps
parent
f9a26cd631
commit
57b3b029e1
|
@ -1,9 +1,9 @@
|
||||||
const express = require('express')
|
const express = require('express')
|
||||||
|
|
||||||
const router = new express.Router()
|
const router = new express.Router()
|
||||||
const {sanitizeParam} = require('express-validator/filter')
|
const {param} = require('express-validator')
|
||||||
const config = require('../../../application/config')
|
const config = require('../../../application/config')
|
||||||
const sanitizeAddress = sanitizeParam('address').customSanitizer(
|
const sanitizeAddress = param('address').customSanitizer(
|
||||||
(value, {req}) => {
|
(value, {req}) => {
|
||||||
return req.params.address
|
return req.params.address
|
||||||
.replace(/[^A-Za-z0-9_.+@-]/g, '') // Remove special characters
|
.replace(/[^A-Za-z0-9_.+@-]/g, '') // Remove special characters
|
||||||
|
|
|
@ -2,7 +2,7 @@ const express = require('express')
|
||||||
|
|
||||||
const router = new express.Router()
|
const router = new express.Router()
|
||||||
const randomWord = require('random-word')
|
const randomWord = require('random-word')
|
||||||
const {check, validationResult} = require('express-validator/check')
|
const {check, validationResult} = require('express-validator')
|
||||||
const config = require('../../../application/config')
|
const config = require('../../../application/config')
|
||||||
|
|
||||||
router.get('/', (req, res, _next) => {
|
router.get('/', (req, res, _next) => {
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
37
package.json
37
package.json
|
@ -8,30 +8,31 @@
|
||||||
"debug": "node --nolazy --inspect-brk=9229 ./app.js"
|
"debug": "node --nolazy --inspect-brk=9229 ./app.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"array.prototype.flatmap": "^1.2.1",
|
"array.prototype.flatmap": "^1.3.2",
|
||||||
"async-retry": "^1.2.3",
|
"async-retry": "^1.3.3",
|
||||||
"compression": "^1.7.3",
|
"compression": "^1.7.4",
|
||||||
"debug": "^2.6.9",
|
"debug": "^2.6.9",
|
||||||
"express": "~4.16.0",
|
"express": "^4.19.2",
|
||||||
"express-validator": "^5.3.1",
|
"express-validator": "^7.2.0",
|
||||||
"helmet": "^3.16.0",
|
"helmet": "^3.23.3",
|
||||||
"http-errors": "~1.6.2",
|
"http-errors": "~1.6.2",
|
||||||
"imap-simple": "^4.3.0",
|
"imap-simple": "^1.6.3",
|
||||||
"lodash": "^4.17.13",
|
"lodash": "^4.17.21",
|
||||||
"mailparser": "^2.4.3",
|
"mailparser": "^3.7.1",
|
||||||
"mem": "^4.2.0",
|
"mem": "^4.3.0",
|
||||||
"mnemonist": "^0.27.2",
|
"mnemonist": "^0.27.2",
|
||||||
"moment": "^2.24.0",
|
"moment": "^2.30.1",
|
||||||
"morgan": "~1.9.0",
|
"morgan": "~1.9.0",
|
||||||
"nodemailer": "^5.1.1",
|
"nodemailer": "^6.9.15",
|
||||||
"p-series": "^2.0.0",
|
"p-series": "^2.1.0",
|
||||||
"random-word": "^2.0.0",
|
"random-word": "^2.0.0",
|
||||||
"sanitize-html": "^1.20.0",
|
"sanitize-html": "^2.13.0",
|
||||||
"socket.io": "^2.2.0",
|
"semver": "^7.6.3",
|
||||||
"twig": "~0.10.3"
|
"socket.io": "^4.7.5",
|
||||||
|
"twig": "^0.10.3"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"xo": "^0.24.0"
|
"xo": "^0.59.3"
|
||||||
},
|
},
|
||||||
"xo": {
|
"xo": {
|
||||||
"semicolon": false,
|
"semicolon": false,
|
||||||
|
@ -58,6 +59,6 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "10.x"
|
"node": "22.x"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue