diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-26 15:08:58 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-26 15:08:58 +0200 |
commit | 5842a85424e9d1233c460a61ed03193ed0201638 (patch) | |
tree | 0ee3d8a2b10533b0c7d75d7398a7df18bb2a655c /server/helpers | |
parent | 950b3ce7f0f8356192b7db7bbe4d507b6d92bf96 (diff) | |
download | PeerTube-5842a85424e9d1233c460a61ed03193ed0201638.tar.gz PeerTube-5842a85424e9d1233c460a61ed03193ed0201638.tar.zst PeerTube-5842a85424e9d1233c460a61ed03193ed0201638.zip |
Remove unnecessary package
https://github.com/standard/standard/issues/1316
Diffstat (limited to 'server/helpers')
-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 |