diff options
author | Chocobozzz <me@florianbigard.com> | 2023-02-16 11:56:58 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-02-16 11:56:58 +0100 |
commit | e65ef81cf51746616182a822bd6933bf0d16717a (patch) | |
tree | ff9e715b50eb690b8fbb5263cf1371d9f8103ff1 /shared | |
parent | 5bfe684e76d32a7745671635f8a75f932bd522e4 (diff) | |
download | PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.gz PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.tar.zst PeerTube-e65ef81cf51746616182a822bd6933bf0d16717a.zip |
Update server dependencies
Diffstat (limited to 'shared')
-rw-r--r-- | shared/models/server/peertube-problem-document.model.ts | 2 | ||||
-rw-r--r-- | shared/server-commands/server/server.ts | 2 | ||||
-rw-r--r-- | shared/server-commands/server/servers.ts | 4 | ||||
-rw-r--r-- | shared/typescript-utils/types.ts | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/shared/models/server/peertube-problem-document.model.ts b/shared/models/server/peertube-problem-document.model.ts index 8dd96f7a3..83d9cea9b 100644 --- a/shared/models/server/peertube-problem-document.model.ts +++ b/shared/models/server/peertube-problem-document.model.ts | |||
@@ -2,7 +2,7 @@ import { HttpStatusCode } from '../../models' | |||
2 | import { OAuth2ErrorCode, ServerErrorCode } from './server-error-code.enum' | 2 | import { OAuth2ErrorCode, ServerErrorCode } from './server-error-code.enum' |
3 | 3 | ||
4 | export interface PeerTubeProblemDocumentData { | 4 | export interface PeerTubeProblemDocumentData { |
5 | 'invalid-params'?: Record<string, Object> | 5 | 'invalid-params'?: Record<string, object> |
6 | 6 | ||
7 | originUrl?: string | 7 | originUrl?: string |
8 | 8 | ||
diff --git a/shared/server-commands/server/server.ts b/shared/server-commands/server/server.ts index 793fae3a8..d7e751581 100644 --- a/shared/server-commands/server/server.ts +++ b/shared/server-commands/server/server.ts | |||
@@ -201,7 +201,7 @@ export class PeerTubeServer { | |||
201 | return join(root(), testDirectory, directoryName) | 201 | return join(root(), testDirectory, directoryName) |
202 | } | 202 | } |
203 | 203 | ||
204 | async flushAndRun (configOverride?: Object, options: RunServerOptions = {}) { | 204 | async flushAndRun (configOverride?: object, options: RunServerOptions = {}) { |
205 | await ServersCommand.flushTests(this.internalServerNumber) | 205 | await ServersCommand.flushTests(this.internalServerNumber) |
206 | 206 | ||
207 | return this.run(configOverride, options) | 207 | return this.run(configOverride, options) |
diff --git a/shared/server-commands/server/servers.ts b/shared/server-commands/server/servers.ts index 29f01774d..b2b61adb3 100644 --- a/shared/server-commands/server/servers.ts +++ b/shared/server-commands/server/servers.ts | |||
@@ -2,7 +2,7 @@ import { ensureDir } from 'fs-extra' | |||
2 | import { isGithubCI } from '@shared/core-utils' | 2 | import { isGithubCI } from '@shared/core-utils' |
3 | import { PeerTubeServer, RunServerOptions } from './server' | 3 | import { PeerTubeServer, RunServerOptions } from './server' |
4 | 4 | ||
5 | async function createSingleServer (serverNumber: number, configOverride?: Object, options: RunServerOptions = {}) { | 5 | async function createSingleServer (serverNumber: number, configOverride?: object, options: RunServerOptions = {}) { |
6 | const server = new PeerTubeServer({ serverNumber }) | 6 | const server = new PeerTubeServer({ serverNumber }) |
7 | 7 | ||
8 | await server.flushAndRun(configOverride, options) | 8 | await server.flushAndRun(configOverride, options) |
@@ -10,7 +10,7 @@ async function createSingleServer (serverNumber: number, configOverride?: Object | |||
10 | return server | 10 | return server |
11 | } | 11 | } |
12 | 12 | ||
13 | function createMultipleServers (totalServers: number, configOverride?: Object, options: RunServerOptions = {}) { | 13 | function createMultipleServers (totalServers: number, configOverride?: object, options: RunServerOptions = {}) { |
14 | const serverPromises: Promise<PeerTubeServer>[] = [] | 14 | const serverPromises: Promise<PeerTubeServer>[] = [] |
15 | 15 | ||
16 | for (let i = 1; i <= totalServers; i++) { | 16 | for (let i = 1; i <= totalServers; i++) { |
diff --git a/shared/typescript-utils/types.ts b/shared/typescript-utils/types.ts index bd2a97b98..57cc23f1f 100644 --- a/shared/typescript-utils/types.ts +++ b/shared/typescript-utils/types.ts | |||
@@ -27,7 +27,7 @@ export type DeepPartial<T> = { | |||
27 | : DeepPartial<T[P]> | 27 | : DeepPartial<T[P]> |
28 | } | 28 | } |
29 | 29 | ||
30 | type Primitive = string | Function | number | boolean | Symbol | undefined | null | 30 | type Primitive = string | Function | number | boolean | symbol | undefined | null |
31 | export type DeepOmitHelper<T, K extends keyof T> = { | 31 | export type DeepOmitHelper<T, K extends keyof T> = { |
32 | [P in K]: // extra level of indirection needed to trigger homomorhic behavior | 32 | [P in K]: // extra level of indirection needed to trigger homomorhic behavior |
33 | T[P] extends infer TP // distribute over unions | 33 | T[P] extends infer TP // distribute over unions |