mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-08-17 17:30:32 +03:00
Update server dependencies
This commit is contained in:
parent
e4fc3697ac
commit
3d2e4f0371
34
package.json
34
package.json
@ -86,24 +86,24 @@
|
||||
"@babel/parser": "^7.17.8",
|
||||
"@node-oauth/oauth2-server": "^4.2.0",
|
||||
"@opentelemetry/api": "^1.1.0",
|
||||
"@opentelemetry/api-metrics": "^0.31.0",
|
||||
"@opentelemetry/api-metrics": "^0.32.0",
|
||||
"@opentelemetry/exporter-jaeger": "^1.3.1",
|
||||
"@opentelemetry/exporter-prometheus": "~0.31.0",
|
||||
"@opentelemetry/instrumentation": "^0.31.0",
|
||||
"@opentelemetry/instrumentation-dns": "^0.29.0",
|
||||
"@opentelemetry/instrumentation-express": "^0.30.0",
|
||||
"@opentelemetry/instrumentation-fs": "^0.4.0",
|
||||
"@opentelemetry/instrumentation-http": "^0.31.0",
|
||||
"@opentelemetry/instrumentation-pg": "^0.30.0",
|
||||
"@opentelemetry/instrumentation-redis-4": "^0.31.0",
|
||||
"@opentelemetry/exporter-prometheus": "~0.32.0",
|
||||
"@opentelemetry/instrumentation": "^0.32.0",
|
||||
"@opentelemetry/instrumentation-dns": "^0.30.0",
|
||||
"@opentelemetry/instrumentation-express": "^0.31.0",
|
||||
"@opentelemetry/instrumentation-fs": "^0.5.0",
|
||||
"@opentelemetry/instrumentation-http": "^0.32.0",
|
||||
"@opentelemetry/instrumentation-pg": "^0.31.0",
|
||||
"@opentelemetry/instrumentation-redis-4": "^0.32.0",
|
||||
"@opentelemetry/resources": "^1.3.1",
|
||||
"@opentelemetry/sdk-metrics-base": "~0.31.0",
|
||||
"@opentelemetry/sdk-metrics": "^0.32.0",
|
||||
"@opentelemetry/sdk-trace-base": "^1.3.1",
|
||||
"@opentelemetry/sdk-trace-node": "^1.3.1",
|
||||
"@opentelemetry/semantic-conventions": "^1.3.1",
|
||||
"@peertube/feed": "^5.0.1",
|
||||
"@peertube/http-signature": "^1.7.0",
|
||||
"@uploadx/core": "^5.1.2",
|
||||
"@uploadx/core": "^6.0.0",
|
||||
"async-lru": "^1.1.1",
|
||||
"bcrypt": "5.0.1",
|
||||
"bencode": "^2.0.2",
|
||||
@ -127,7 +127,7 @@
|
||||
"fluent-ffmpeg": "^2.1.0",
|
||||
"fs-extra": "^10.0.0",
|
||||
"got": "^11.8.2",
|
||||
"helmet": "^5.0.1",
|
||||
"helmet": "^6.0.0",
|
||||
"hpagent": "^1.0.0",
|
||||
"http-problem-details": "^0.1.5",
|
||||
"ip-anonymize": "^0.1.0",
|
||||
@ -136,7 +136,7 @@
|
||||
"iso-639-3": "2.2.0",
|
||||
"jimp": "^0.16.0",
|
||||
"js-yaml": "^4.0.0",
|
||||
"jsonld": "~6.0.0",
|
||||
"jsonld": "~8.1.0",
|
||||
"lodash": "^4.17.10",
|
||||
"lru-cache": "^7.13.0",
|
||||
"magnet-uri": "^6.1.0",
|
||||
@ -160,12 +160,12 @@
|
||||
"redis": "^4.0.1",
|
||||
"reflect-metadata": "^0.1.12",
|
||||
"sanitize-html": "2.x",
|
||||
"sequelize": "6.21.3",
|
||||
"sequelize": "6.21.6",
|
||||
"sequelize-typescript": "^2.0.0-beta.1",
|
||||
"short-uuid": "^4.2.0",
|
||||
"sitemap": "^7.0.0",
|
||||
"socket.io": "^4.0.1",
|
||||
"sql-formatter": "^8.1.0",
|
||||
"sql-formatter": "^10.6.0",
|
||||
"srt-to-vtt": "^1.1.2",
|
||||
"tsconfig-paths": "^4.0.0",
|
||||
"tslib": "^2.0.0",
|
||||
@ -173,7 +173,7 @@
|
||||
"validator": "^13.0.0",
|
||||
"webfinger.js": "^2.6.6",
|
||||
"webtorrent": "^1.0.0",
|
||||
"winston": "3.8.1",
|
||||
"winston": "3.8.2",
|
||||
"ws": "^8.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
@ -187,7 +187,7 @@
|
||||
"@types/chai": "^4.0.4",
|
||||
"@types/chai-json-schema": "^1.4.3",
|
||||
"@types/chai-xml": "^0.3.1",
|
||||
"@types/config": "^0.0.41",
|
||||
"@types/config": "^3.3.0",
|
||||
"@types/create-torrent": "^5.0.0",
|
||||
"@types/express": "4.17.9",
|
||||
"@types/fluent-ffmpeg": "^2.1.16",
|
||||
|
@ -24,6 +24,7 @@ const contextStore: { [ id in ContextType ]: (string | { [ id: string ]: string
|
||||
subtitleLanguage: 'sc:subtitleLanguage',
|
||||
sensitive: 'as:sensitive',
|
||||
language: 'sc:inLanguage',
|
||||
identifier: 'sc:identifier',
|
||||
|
||||
// TODO: remove in a few versions, introduced in 4.2
|
||||
icons: 'as:icon',
|
||||
|
@ -2,8 +2,8 @@ import { readdir } from 'fs-extra'
|
||||
import { constants, PerformanceObserver } from 'perf_hooks'
|
||||
import * as process from 'process'
|
||||
import { Meter, ObservableResult } from '@opentelemetry/api-metrics'
|
||||
import { ExplicitBucketHistogramAggregation } from '@opentelemetry/sdk-metrics-base'
|
||||
import { View } from '@opentelemetry/sdk-metrics-base/build/src/view/View'
|
||||
import { ExplicitBucketHistogramAggregation } from '@opentelemetry/sdk-metrics'
|
||||
import { View } from '@opentelemetry/sdk-metrics/build/src/view/View'
|
||||
import { logger } from '@server/helpers/logger'
|
||||
|
||||
// Thanks to https://github.com/siimon/prom-client
|
||||
|
@ -1,7 +1,7 @@
|
||||
import { Application, Request, Response } from 'express'
|
||||
import { Meter, metrics } from '@opentelemetry/api-metrics'
|
||||
import { PrometheusExporter } from '@opentelemetry/exporter-prometheus'
|
||||
import { MeterProvider } from '@opentelemetry/sdk-metrics-base'
|
||||
import { MeterProvider } from '@opentelemetry/sdk-metrics'
|
||||
import { logger } from '@server/helpers/logger'
|
||||
import { CONFIG } from '@server/initializers/config'
|
||||
import { MVideoImmutable } from '@server/types/models'
|
||||
|
@ -169,11 +169,11 @@ describe('Test resumable upload', function () {
|
||||
it('Should not accept more chunks than expected with an invalid content length/content range', async function () {
|
||||
const uploadId = await prepareUpload({ size: 1500 })
|
||||
|
||||
// Content length check seems to have changed in v16
|
||||
if (process.version.startsWith('v16')) {
|
||||
// Content length check can be different depending on the node version
|
||||
try {
|
||||
await sendChunks({ pathUploadId: uploadId, expectedStatus: HttpStatusCode.CONFLICT_409, contentLength: 1000 })
|
||||
await checkFileSize(uploadId, 1000)
|
||||
} else {
|
||||
await checkFileSize(uploadId, 0)
|
||||
} catch {
|
||||
await sendChunks({ pathUploadId: uploadId, expectedStatus: HttpStatusCode.BAD_REQUEST_400, contentLength: 1000 })
|
||||
await checkFileSize(uploadId, 0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user