From 5842a85424e9d1233c460a61ed03193ed0201638 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 26 Oct 2021 15:08:58 +0200 Subject: Remove unnecessary package https://github.com/standard/standard/issues/1316 --- server/helpers/peertube-crypto.ts | 2 +- server/helpers/requests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'server/helpers') 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(compare) const bcryptGenSaltPromise = promisify1(genSalt) const bcryptHashPromise = promisify2(hash) -const httpSignature = require('http-signature') +const httpSignature = require('@peertube/http-signature') async function createPrivateAndPublicKeys () { 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' import { logger } from './logger' import { getProxy, isProxyEnabled } from './proxy' -const httpSignature = require('http-signature') +const httpSignature = require('@peertube/http-signature') export interface PeerTubeRequestError extends Error { statusCode?: number -- cgit v1.2.3