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'
function normalizeTargetUrl (url: string) {
let normalizedUrl = url.replace(/\/+$/, '')
- if (!normalizedUrl.startsWith('http://') || !normalizedUrl.startsWith('https://')) {
+ if (!normalizedUrl.startsWith('http://') && !normalizedUrl.startsWith('https://')) {
normalizedUrl = 'https://' + normalizedUrl
}