mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-04 02:09:37 +02:00
Type models
This commit is contained in:
parent
65fcc3119c
commit
e02643f32e
76 changed files with 1710 additions and 816 deletions
|
@ -1,4 +1,5 @@
|
|||
import { pseudoRandomBytes } from 'crypto'
|
||||
import { join } from 'path'
|
||||
|
||||
import { logger } from './logger'
|
||||
|
||||
|
@ -42,6 +43,11 @@ function getFormatedObjects (objects, objectsTotal) {
|
|||
}
|
||||
}
|
||||
|
||||
function root () {
|
||||
// We are in /dist/helpers/utils.js
|
||||
return join(__dirname, '..', '..', '..')
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
|
@ -50,5 +56,6 @@ export {
|
|||
cleanForExit,
|
||||
generateRandomString,
|
||||
isTestInstance,
|
||||
getFormatedObjects
|
||||
getFormatedObjects,
|
||||
root
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue