mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 10:19:35 +02:00
esModuleInterop to true
This commit is contained in:
parent
40e7ed0714
commit
41fb13c330
208 changed files with 444 additions and 425 deletions
|
@ -9,7 +9,7 @@ import { exec, ExecOptions } from 'child_process'
|
|||
import { BinaryToTextEncoding, createHash, randomBytes } from 'crypto'
|
||||
import { truncate } from 'lodash'
|
||||
import { basename, extname, isAbsolute, join, resolve } from 'path'
|
||||
import * as pem from 'pem'
|
||||
import { createPrivateKey as createPrivateKey_1, getPublicKey as getPublicKey_1 } from 'pem'
|
||||
import { pipeline } from 'stream'
|
||||
import { URL } from 'url'
|
||||
import { promisify } from 'util'
|
||||
|
@ -281,8 +281,8 @@ function promisify2<T, U, A> (func: (arg1: T, arg2: U, cb: (err: any, result: A)
|
|||
}
|
||||
|
||||
const randomBytesPromise = promisify1<number, Buffer>(randomBytes)
|
||||
const createPrivateKey = promisify1<number, { key: string }>(pem.createPrivateKey)
|
||||
const getPublicKey = promisify1<string, { publicKey: string }>(pem.getPublicKey)
|
||||
const createPrivateKey = promisify1<number, { key: string }>(createPrivateKey_1)
|
||||
const getPublicKey = promisify1<string, { publicKey: string }>(getPublicKey_1)
|
||||
const execPromise2 = promisify2<string, any, string>(exec)
|
||||
const execPromise = promisify1<string, string>(exec)
|
||||
const pipelinePromise = promisify(pipeline)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue