mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-14 15:14:56 -04:00
Explicitly import URL
With Yarn PnP, URL is seems to not automatically be part of the global scope. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
241164261e
commit
1f2067288a
4 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@ import {
|
||||||
IsUrl,
|
IsUrl,
|
||||||
ValidateNested,
|
ValidateNested,
|
||||||
} from 'class-validator';
|
} from 'class-validator';
|
||||||
|
import { URL } from 'url';
|
||||||
|
|
||||||
import { ServerVersion } from '../monitoring/server-status.dto';
|
import { ServerVersion } from '../monitoring/server-status.dto';
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
* SPDX-License-Identifier: AGPL-3.0-only
|
* SPDX-License-Identifier: AGPL-3.0-only
|
||||||
*/
|
*/
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
|
import { URL } from 'url';
|
||||||
|
|
||||||
import appConfiguration, { AppConfig } from '../config/app.config';
|
import appConfiguration, { AppConfig } from '../config/app.config';
|
||||||
import authConfiguration, { AuthConfig } from '../config/auth.config';
|
import authConfiguration, { AuthConfig } from '../config/auth.config';
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import { Client } from 'minio';
|
import { Client } from 'minio';
|
||||||
|
import { URL } from 'url';
|
||||||
|
|
||||||
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
||||||
import { MediaBackendError } from '../../errors/errors';
|
import { MediaBackendError } from '../../errors/errors';
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
*/
|
*/
|
||||||
import { Inject, Injectable } from '@nestjs/common';
|
import { Inject, Injectable } from '@nestjs/common';
|
||||||
import fetch, { Response } from 'node-fetch';
|
import fetch, { Response } from 'node-fetch';
|
||||||
|
import { URL } from 'url';
|
||||||
|
|
||||||
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
import mediaConfiguration, { MediaConfig } from '../../config/media.config';
|
||||||
import { MediaBackendError } from '../../errors/errors';
|
import { MediaBackendError } from '../../errors/errors';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue