mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-09-11 21:47:09 +03:00
Upgrade server dependencies
This commit is contained in:
parent
4511437e19
commit
523990dbe6
@ -2,6 +2,4 @@ import { RegisterClientOptions } from './register-client-option.model'
|
|||||||
|
|
||||||
export interface ClientScript {
|
export interface ClientScript {
|
||||||
register: (options: RegisterClientOptions) => Promise<any>
|
register: (options: RegisterClientOptions) => Promise<any>
|
||||||
|
|
||||||
unregister: () => Promise<any>
|
|
||||||
}
|
}
|
||||||
|
22
package.json
22
package.json
@ -109,19 +109,19 @@
|
|||||||
"config": "^3.0.0",
|
"config": "^3.0.0",
|
||||||
"cookie-parser": "^1.4.3",
|
"cookie-parser": "^1.4.3",
|
||||||
"cors": "^2.8.1",
|
"cors": "^2.8.1",
|
||||||
"create-torrent": "^3.24.5",
|
"create-torrent": "^4.0.0",
|
||||||
"deep-object-diff": "^1.1.0",
|
"deep-object-diff": "^1.1.0",
|
||||||
"express": "^4.12.4",
|
"express": "^4.12.4",
|
||||||
"express-oauth-server": "^2.0.0",
|
"express-oauth-server": "^2.0.0",
|
||||||
"express-rate-limit": "^4.0.4",
|
"express-rate-limit": "^4.0.4",
|
||||||
"express-validator": "^5.0.0",
|
"express-validator": "^6.1.1",
|
||||||
"flat": "^4.1.0",
|
"flat": "^4.1.0",
|
||||||
"fluent-ffmpeg": "^2.1.0",
|
"fluent-ffmpeg": "^2.1.0",
|
||||||
"fs-extra": "^8.0.1",
|
"fs-extra": "^8.0.1",
|
||||||
"helmet": "^3.12.1",
|
"helmet": "^3.12.1",
|
||||||
"http-signature": "^1.2.0",
|
"http-signature": "^1.2.0",
|
||||||
"ip-anonymize": "^0.1.0",
|
"ip-anonymize": "^0.1.0",
|
||||||
"ipaddr.js": "1.9.0",
|
"ipaddr.js": "1.9.1",
|
||||||
"is-cidr": "^3.0.0",
|
"is-cidr": "^3.0.0",
|
||||||
"iso-639-3": "^1.0.1",
|
"iso-639-3": "^1.0.1",
|
||||||
"js-yaml": "^3.5.4",
|
"js-yaml": "^3.5.4",
|
||||||
@ -133,7 +133,7 @@
|
|||||||
"morgan": "^1.5.3",
|
"morgan": "^1.5.3",
|
||||||
"multer": "^1.1.0",
|
"multer": "^1.1.0",
|
||||||
"nodemailer": "^6.0.0",
|
"nodemailer": "^6.0.0",
|
||||||
"parse-torrent": "^6.0.0",
|
"parse-torrent": "^7.0.0",
|
||||||
"password-generator": "^2.0.2",
|
"password-generator": "^2.0.2",
|
||||||
"pem": "^1.12.3",
|
"pem": "^1.12.3",
|
||||||
"pfeed": "^1.1.6",
|
"pfeed": "^1.1.6",
|
||||||
@ -143,17 +143,17 @@
|
|||||||
"reflect-metadata": "^0.1.12",
|
"reflect-metadata": "^0.1.12",
|
||||||
"request": "^2.81.0",
|
"request": "^2.81.0",
|
||||||
"scripty": "^1.5.0",
|
"scripty": "^1.5.0",
|
||||||
"sequelize": "5.8.7",
|
"sequelize": "5.10.2",
|
||||||
"sequelize-typescript": "1.0.0-beta.2",
|
"sequelize-typescript": "1.0.0-beta.2",
|
||||||
"sharp": "^0.22.0",
|
"sharp": "^0.22.0",
|
||||||
"sitemap": "^2.1.0",
|
"sitemap": "^2",
|
||||||
"socket.io": "^2.2.0",
|
"socket.io": "^2.2.0",
|
||||||
"srt-to-vtt": "^1.1.2",
|
"srt-to-vtt": "^1.1.2",
|
||||||
"useragent": "^2.3.0",
|
"useragent": "^2.3.0",
|
||||||
"uuid": "^3.1.0",
|
"uuid": "^3.1.0",
|
||||||
"validator": "^11.0.0",
|
"validator": "^11.0.0",
|
||||||
"webfinger.js": "^2.6.6",
|
"webfinger.js": "^2.6.6",
|
||||||
"webtorrent": "^0.103.0",
|
"webtorrent": "^0.105.1",
|
||||||
"winston": "3.2.1",
|
"winston": "3.2.1",
|
||||||
"ws": "^7.0.0",
|
"ws": "^7.0.0",
|
||||||
"youtube-dl": "^2.0.0"
|
"youtube-dl": "^2.0.0"
|
||||||
@ -174,7 +174,7 @@
|
|||||||
"@types/express": "^4.0.35",
|
"@types/express": "^4.0.35",
|
||||||
"@types/express-rate-limit": "^3.3.0",
|
"@types/express-rate-limit": "^3.3.0",
|
||||||
"@types/fluent-ffmpeg": "^2.1.8",
|
"@types/fluent-ffmpeg": "^2.1.8",
|
||||||
"@types/fs-extra": "^7.0.0",
|
"@types/fs-extra": "^8.0.0",
|
||||||
"@types/libxmljs": "^0.18.0",
|
"@types/libxmljs": "^0.18.0",
|
||||||
"@types/lodash": "^4.14.64",
|
"@types/lodash": "^4.14.64",
|
||||||
"@types/magnet-uri": "^5.1.1",
|
"@types/magnet-uri": "^5.1.1",
|
||||||
@ -200,9 +200,9 @@
|
|||||||
"chai-json-schema": "^1.5.0",
|
"chai-json-schema": "^1.5.0",
|
||||||
"chai-xml": "^0.3.2",
|
"chai-xml": "^0.3.2",
|
||||||
"concurrently": "^4.1.0",
|
"concurrently": "^4.1.0",
|
||||||
"husky": "^2.4.0",
|
"husky": "^3.0.1",
|
||||||
"libxmljs": "0.19.5",
|
"libxmljs": "0.19.5",
|
||||||
"lint-staged": "^8.0.4",
|
"lint-staged": "^9.2.0",
|
||||||
"maildev": "^1.0.0-rc3",
|
"maildev": "^1.0.0-rc3",
|
||||||
"marked-man": "^0.6.0",
|
"marked-man": "^0.6.0",
|
||||||
"mocha": "^6.0.0",
|
"mocha": "^6.0.0",
|
||||||
@ -212,7 +212,7 @@
|
|||||||
"source-map-support": "^0.5.0",
|
"source-map-support": "^0.5.0",
|
||||||
"supertest": "^4.0.2",
|
"supertest": "^4.0.2",
|
||||||
"swagger-cli": "^2.2.0",
|
"swagger-cli": "^2.2.0",
|
||||||
"ts-node": "8.2.0",
|
"ts-node": "8.3.0",
|
||||||
"tslint": "^5.7.0",
|
"tslint": "^5.7.0",
|
||||||
"tslint-config-standard": "^8.0.1",
|
"tslint-config-standard": "^8.0.1",
|
||||||
"typescript": "^3.4.3",
|
"typescript": "^3.4.3",
|
||||||
|
@ -1,11 +1,12 @@
|
|||||||
import { eachSeries } from 'async'
|
import { eachSeries } from 'async'
|
||||||
import { NextFunction, Request, RequestHandler, Response } from 'express'
|
import { NextFunction, Request, RequestHandler, Response } from 'express'
|
||||||
import { retryTransactionWrapper } from '../helpers/database-utils'
|
import { retryTransactionWrapper } from '../helpers/database-utils'
|
||||||
|
import { ValidationChain } from 'express-validator'
|
||||||
|
|
||||||
// Syntactic sugar to avoid try/catch in express controllers
|
// Syntactic sugar to avoid try/catch in express controllers
|
||||||
// Thanks: https://medium.com/@Abazhenov/using-async-await-in-express-with-node-8-b8af872c0016
|
// Thanks: https://medium.com/@Abazhenov/using-async-await-in-express-with-node-8-b8af872c0016
|
||||||
|
|
||||||
export type RequestPromiseHandler = (req: Request, res: Response, next: NextFunction) => Promise<any>
|
export type RequestPromiseHandler = ValidationChain | ((req: Request, res: Response, next: NextFunction) => Promise<any>)
|
||||||
|
|
||||||
function asyncMiddleware (fun: RequestPromiseHandler | RequestPromiseHandler[]) {
|
function asyncMiddleware (fun: RequestPromiseHandler | RequestPromiseHandler[]) {
|
||||||
return (req: Request, res: Response, next: NextFunction) => {
|
return (req: Request, res: Response, next: NextFunction) => {
|
||||||
@ -21,7 +22,7 @@ function asyncMiddleware (fun: RequestPromiseHandler | RequestPromiseHandler[])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function asyncRetryTransactionMiddleware (fun: RequestPromiseHandler) {
|
function asyncRetryTransactionMiddleware (fun: (req: Request, res: Response, next: NextFunction) => Promise<any>) {
|
||||||
return (req: Request, res: Response, next: NextFunction) => {
|
return (req: Request, res: Response, next: NextFunction) => {
|
||||||
return Promise.resolve(
|
return Promise.resolve(
|
||||||
retryTransactionWrapper(fun, req, res, next)
|
retryTransactionWrapper(fun, req, res, next)
|
||||||
|
@ -264,7 +264,7 @@ and republish it on NPM. Remember that the PeerTube index will take into account
|
|||||||
|
|
||||||
## Plugin & Theme hooks/helpers API
|
## Plugin & Theme hooks/helpers API
|
||||||
|
|
||||||
See the dedicated documentation: https://docs.joinpeertube.org/#/api-plugins
|
See the dedicated documentation: whttps://docs.joinpeertube.org/#/api-plugins
|
||||||
|
|
||||||
|
|
||||||
## Tips
|
## Tips
|
||||||
|
Loading…
Reference in New Issue
Block a user