From 005b51b977e624b64107ccd10594920e5a6c264c Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 28 Jan 2020 14:02:47 +0100 Subject: [PATCH] Force node 10 usage --- package.json | 2 +- server.ts | 4 ---- server/tools/peertube-import-videos.ts | 4 ---- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/package.json b/package.json index fed390c82..b416e9501 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "private": true, "licence": "AGPL-3.0", "engines": { - "node": ">=8.x" + "node": ">=10.x" }, "bin": { "peertube": "dist/server/tools/peertube.js" diff --git a/server.ts b/server.ts index 8df3add2c..b14ebf623 100644 --- a/server.ts +++ b/server.ts @@ -1,10 +1,6 @@ import { registerTSPaths } from './server/helpers/register-ts-paths' - registerTSPaths() -// FIXME: https://github.com/nodejs/node/pull/16853 -require('tls').DEFAULT_ECDH_CURVE = 'auto' - import { isTestInstance } from './server/helpers/core-utils' if (isTestInstance()) { require('source-map-support').install() diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts index eaa792763..c7e85b570 100644 --- a/server/tools/peertube-import-videos.ts +++ b/server/tools/peertube-import-videos.ts @@ -1,10 +1,6 @@ import { registerTSPaths } from '../helpers/register-ts-paths' - registerTSPaths() -// FIXME: https://github.com/nodejs/node/pull/16853 -require('tls').DEFAULT_ECDH_CURVE = 'auto' - import * as program from 'commander' import { join } from 'path' import { doRequestAndSaveToFile } from '../helpers/requests' -- 2.25.1