From 1f2067288a45097e63bac0ec78131391026c8bdc Mon Sep 17 00:00:00 2001 From: David Mehren Date: Mon, 6 Sep 2021 16:32:24 +0200 Subject: [PATCH] Explicitly import URL With Yarn PnP, URL is seems to not automatically be part of the global scope. Signed-off-by: David Mehren --- src/frontend-config/frontend-config.dto.ts | 1 + src/frontend-config/frontend-config.service.ts | 1 + src/media/backends/s3-backend.ts | 1 + src/media/backends/webdav-backend.ts | 1 + 4 files changed, 4 insertions(+) diff --git a/src/frontend-config/frontend-config.dto.ts b/src/frontend-config/frontend-config.dto.ts index 6814acf68..edcdb74c7 100644 --- a/src/frontend-config/frontend-config.dto.ts +++ b/src/frontend-config/frontend-config.dto.ts @@ -12,6 +12,7 @@ import { IsUrl, ValidateNested, } from 'class-validator'; +import { URL } from 'url'; import { ServerVersion } from '../monitoring/server-status.dto'; diff --git a/src/frontend-config/frontend-config.service.ts b/src/frontend-config/frontend-config.service.ts index f66342188..cbee7d21e 100644 --- a/src/frontend-config/frontend-config.service.ts +++ b/src/frontend-config/frontend-config.service.ts @@ -4,6 +4,7 @@ * SPDX-License-Identifier: AGPL-3.0-only */ import { Inject, Injectable } from '@nestjs/common'; +import { URL } from 'url'; import appConfiguration, { AppConfig } from '../config/app.config'; import authConfiguration, { AuthConfig } from '../config/auth.config'; diff --git a/src/media/backends/s3-backend.ts b/src/media/backends/s3-backend.ts index ca755b9b2..5995075f2 100644 --- a/src/media/backends/s3-backend.ts +++ b/src/media/backends/s3-backend.ts @@ -5,6 +5,7 @@ */ import { Inject, Injectable } from '@nestjs/common'; import { Client } from 'minio'; +import { URL } from 'url'; import mediaConfiguration, { MediaConfig } from '../../config/media.config'; import { MediaBackendError } from '../../errors/errors'; diff --git a/src/media/backends/webdav-backend.ts b/src/media/backends/webdav-backend.ts index 25a7a6e6c..78b51722e 100644 --- a/src/media/backends/webdav-backend.ts +++ b/src/media/backends/webdav-backend.ts @@ -5,6 +5,7 @@ */ import { Inject, Injectable } from '@nestjs/common'; import fetch, { Response } from 'node-fetch'; +import { URL } from 'url'; import mediaConfiguration, { MediaConfig } from '../../config/media.config'; import { MediaBackendError } from '../../errors/errors';