mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-08-17 17:30:32 +03:00
Upgrade server dep'
This commit is contained in:
parent
83ff548125
commit
5182473faf
16
package.json
16
package.json
@ -114,10 +114,10 @@
|
||||
"ip-anonymize": "^0.1.0",
|
||||
"ipaddr.js": "2.0.0",
|
||||
"is-cidr": "^4.0.0",
|
||||
"iso-639-3": "^2.0.0",
|
||||
"iso-639-3": "2.2.0",
|
||||
"jimp": "^0.16.0",
|
||||
"js-yaml": "^4.0.0",
|
||||
"jsonld": "~4.0.1",
|
||||
"jsonld": "~5.2.0",
|
||||
"lodash": "^4.17.10",
|
||||
"lru-cache": "^6.0.0",
|
||||
"magnet-uri": "^6.1.0",
|
||||
@ -140,10 +140,10 @@
|
||||
"reflect-metadata": "^0.1.12",
|
||||
"sanitize-html": "2.x",
|
||||
"scripty": "^2.0.0",
|
||||
"sequelize": "6.5.0",
|
||||
"sequelize": "6.6.2",
|
||||
"sequelize-typescript": "^2.0.0-beta.1",
|
||||
"sitemap": "^6.1.0",
|
||||
"socket.io": "^3.0.2",
|
||||
"socket.io": "^4.0.1",
|
||||
"sql-formatter": "^4.0.0-beta.0",
|
||||
"srt-to-vtt": "^1.1.2",
|
||||
"tsconfig-paths": "^3.9.0",
|
||||
@ -152,7 +152,7 @@
|
||||
"uuid": "^8.1.0",
|
||||
"validator": "^13.0.0",
|
||||
"webfinger.js": "^2.6.6",
|
||||
"webtorrent": "^0.115.1",
|
||||
"webtorrent": "^0.116.1",
|
||||
"winston": "3.3.3",
|
||||
"ws": "^7.0.0",
|
||||
"youtube-dl": "^3.0.2"
|
||||
@ -178,7 +178,7 @@
|
||||
"@types/lodash": "^4.14.64",
|
||||
"@types/lru-cache": "^5.1.0",
|
||||
"@types/magnet-uri": "^5.1.1",
|
||||
"@types/maildev": "^0.0.1",
|
||||
"@types/maildev": "^0.0.2",
|
||||
"@types/memoizee": "^0.4.2",
|
||||
"@types/mkdirp": "^1.0.0",
|
||||
"@types/mocha": "^8.0.3",
|
||||
@ -204,7 +204,7 @@
|
||||
"eslint-config-standard-with-typescript": "^20.0.0",
|
||||
"eslint-plugin-import": "^2.20.1",
|
||||
"eslint-plugin-node": "^11.0.0",
|
||||
"eslint-plugin-promise": "^4.2.1",
|
||||
"eslint-plugin-promise": "^5.1.0",
|
||||
"eslint-plugin-standard": "^5.0.0",
|
||||
"fast-xml-parser": "^3.19.0",
|
||||
"maildev": "^1.0.0-rc3",
|
||||
@ -212,7 +212,7 @@
|
||||
"marked-man": "^0.7.0",
|
||||
"mocha": "^8.0.1",
|
||||
"nodemon": "^2.0.1",
|
||||
"socket.io-client": "^3.0.2",
|
||||
"socket.io-client": "^4.0.1",
|
||||
"source-map-support": "^0.5.0",
|
||||
"supertest": "^6.0.1",
|
||||
"swagger-cli": "^4.0.2",
|
||||
|
@ -13,7 +13,7 @@ function asyncMiddleware (fun: RequestPromiseHandler | RequestPromiseHandler[])
|
||||
return (req: Request, res: Response, next: NextFunction) => {
|
||||
if (Array.isArray(fun) === true) {
|
||||
return eachSeries(fun as RequestHandler[], (f, cb) => {
|
||||
Promise.resolve(f(req, res, cb))
|
||||
Promise.resolve(f(req, res, err => cb(err)))
|
||||
.catch(err => next(err))
|
||||
}, next)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user