diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/helpers/peertube-crypto.ts | 2 | ||||
-rw-r--r-- | server/helpers/requests.ts | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index 66060bde2..44d90d9f1 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts | |||
@@ -12,7 +12,7 @@ const bcryptComparePromise = promisify2<any, string, boolean>(compare) | |||
12 | const bcryptGenSaltPromise = promisify1<number, string>(genSalt) | 12 | const bcryptGenSaltPromise = promisify1<number, string>(genSalt) |
13 | const bcryptHashPromise = promisify2<any, string | number, string>(hash) | 13 | const bcryptHashPromise = promisify2<any, string | number, string>(hash) |
14 | 14 | ||
15 | const httpSignature = require('http-signature') | 15 | const httpSignature = require('@peertube/http-signature') |
16 | 16 | ||
17 | async function createPrivateAndPublicKeys () { | 17 | async function createPrivateAndPublicKeys () { |
18 | logger.info('Generating a RSA key...') | 18 | logger.info('Generating a RSA key...') |
diff --git a/server/helpers/requests.ts b/server/helpers/requests.ts index d93f55776..799034b90 100644 --- a/server/helpers/requests.ts +++ b/server/helpers/requests.ts | |||
@@ -9,7 +9,7 @@ import { processImage } from './image-utils' | |||
9 | import { logger } from './logger' | 9 | import { logger } from './logger' |
10 | import { getProxy, isProxyEnabled } from './proxy' | 10 | import { getProxy, isProxyEnabled } from './proxy' |
11 | 11 | ||
12 | const httpSignature = require('http-signature') | 12 | const httpSignature = require('@peertube/http-signature') |
13 | 13 | ||
14 | export interface PeerTubeRequestError extends Error { | 14 | export interface PeerTubeRequestError extends Error { |
15 | statusCode?: number | 15 | statusCode?: number |