deps: fix high sev warnings

This commit is contained in:
Calvin Montgomery 2023-01-10 20:56:38 -08:00
parent d37e69e1a6
commit fad1da7ab4
3 changed files with 3442 additions and 4572 deletions

8000
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -12,7 +12,7 @@
"@cytube/mediaquery": "github:CyTube/mediaquery#c1dcf792cd6e9977c04c1e96f23315dad5e3294d",
"bcrypt": "^5.0.1",
"bluebird": "^3.7.2",
"body-parser": "^1.19.0",
"body-parser": "^1.20.1",
"cheerio": "^1.0.0-rc.10",
"clone": "^2.1.2",
"compression": "^1.7.4",
@ -20,10 +20,10 @@
"create-error": "^0.3.1",
"csrf": "^3.1.0",
"cytubefilters": "github:calzoneman/cytubefilters#c67b2dab2dc5cc5ed11018819f71273d0f8a1bf5",
"express": "^4.17.1",
"express": "^4.18.2",
"express-minify": "^1.0.0",
"json-typecheck": "^0.1.3",
"knex": "^0.95.2",
"knex": "^2.4.0",
"lodash": "^4.17.21",
"morgan": "^1.10.0",
"mysql": "^2.18.1",
@ -33,8 +33,8 @@
"pug": "^3.0.2",
"redis": "^3.1.1",
"sanitize-html": "^2.7.0",
"serve-static": "^1.14.1",
"socket.io": "^4.5.0",
"serve-static": "^1.15.0",
"socket.io": "^4.5.4",
"source-map-support": "^0.5.19",
"toml": "^3.0.0",
"uuid": "^8.3.2",

View file

@ -169,7 +169,7 @@ export function validate(data) {
validateURL(data.thumbnail);
}
validateSources(data.sources, data);
validateSources(data.sources);
validateAudioTracks(data.audioTracks);
validateTextTracks(data.textTracks);
/*
@ -182,7 +182,7 @@ export function validate(data) {
validateFonts(data.fonts);
}
function validateSources(sources, data) {
function validateSources(sources) {
if (!Array.isArray(sources))
throw new ValidationError('sources must be a list');
if (sources.length === 0)