aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-10-26 15:08:58 +0200
committerChocobozzz <me@florianbigard.com>2021-10-26 15:08:58 +0200
commit5842a85424e9d1233c460a61ed03193ed0201638 (patch)
tree0ee3d8a2b10533b0c7d75d7398a7df18bb2a655c /server/helpers
parent950b3ce7f0f8356192b7db7bbe4d507b6d92bf96 (diff)
downloadPeerTube-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.ts2
-rw-r--r--server/helpers/requests.ts2
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)
12const bcryptGenSaltPromise = promisify1<number, string>(genSalt) 12const bcryptGenSaltPromise = promisify1<number, string>(genSalt)
13const bcryptHashPromise = promisify2<any, string | number, string>(hash) 13const bcryptHashPromise = promisify2<any, string | number, string>(hash)
14 14
15const httpSignature = require('http-signature') 15const httpSignature = require('@peertube/http-signature')
16 16
17async function createPrivateAndPublicKeys () { 17async 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'
9import { logger } from './logger' 9import { logger } from './logger'
10import { getProxy, isProxyEnabled } from './proxy' 10import { getProxy, isProxyEnabled } from './proxy'
11 11
12const httpSignature = require('http-signature') 12const httpSignature = require('@peertube/http-signature')
13 13
14export interface PeerTubeRequestError extends Error { 14export interface PeerTubeRequestError extends Error {
15 statusCode?: number 15 statusCode?: number