mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
Update webpack stack
This commit is contained in:
parent
8635a2c70c
commit
1840c2f7c9
32 changed files with 424 additions and 77 deletions
|
@ -23,10 +23,6 @@ function createEmptyCallback () {
|
|||
}
|
||||
}
|
||||
|
||||
function isTestInstance () {
|
||||
return process.env.NODE_ENV === 'test'
|
||||
}
|
||||
|
||||
function getFormatedObjects (objects: any[], objectsTotal: number) {
|
||||
const formatedObjects = []
|
||||
|
||||
|
@ -40,18 +36,11 @@ function getFormatedObjects (objects: any[], objectsTotal: number) {
|
|||
}
|
||||
}
|
||||
|
||||
function root () {
|
||||
// We are in /dist/helpers/utils.js
|
||||
return join(__dirname, '..', '..', '..')
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
export {
|
||||
badRequest,
|
||||
createEmptyCallback,
|
||||
generateRandomString,
|
||||
isTestInstance,
|
||||
getFormatedObjects,
|
||||
root
|
||||
getFormatedObjects
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue