chore: update lock files

This commit is contained in:
Zephyrrus 2020-12-24 10:21:19 +02:00
parent d6813fa912
commit 13825ddae6
5 changed files with 1433 additions and 38 deletions

1432
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -46,7 +46,7 @@
"dumper.js": "^1.3.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.4",
"express": "^4.16.4",
"express": "^4.17.1",
"express-rate-limit": "^3.4.0",
"ffmpeg-generate-video-preview": "^1.0.3",
"file-saver": "^2.0.1",

View File

@ -25,20 +25,14 @@ class uploadPOST extends Route {
// console.log('Chunk', chunk);
const chunkOutput = path.join(__dirname,
'..',
'..',
'..',
'..',
'../../../../',
process.env.UPLOAD_FOLDER,
'chunks',
uuid);
const chunkDir = await jetpack.list(chunkOutput);
const ext = path.extname(chunkDir[0]);
const output = path.join(__dirname,
'..',
'..',
'..',
'..',
'../../../../',
process.env.UPLOAD_FOLDER,
`${filename}${ext || ''}`);
chunkDir.sort();
@ -49,10 +43,7 @@ class uploadPOST extends Route {
for (let i = 0; i < chunkDir.length; i++) {
const dir = path.join(__dirname,
'..',
'..',
'..',
'..',
'../../../../',
process.env.UPLOAD_FOLDER,
'chunks',
uuid,

View File

@ -30,7 +30,7 @@ class ThumbUtil {
}
static async generateThumbnailForImage(filename, output) {
const filePath = path.join(__dirname, '..', '..', '..', process.env.UPLOAD_FOLDER, filename);
const filePath = path.join(__dirname, '../../../', process.env.UPLOAD_FOLDER, filename);
const file = await jetpack.readAsync(filePath, 'buffer');
await sharp(file)
@ -44,7 +44,7 @@ class ThumbUtil {
}
static async generateThumbnailForVideo(filename, output) {
const filePath = path.join(__dirname, '..', '..', '..', process.env.UPLOAD_FOLDER, filename);
const filePath = path.join(__dirname, '../../../', process.env.UPLOAD_FOLDER, filename);
ffmpeg(filePath)
.thumbnail({

View File

@ -2225,12 +2225,12 @@ browserslist@^4.0.0, browserslist@^4.11.0, browserslist@^4.6.4, browserslist@^4.
node-releases "^1.1.53"
pkg-up "^2.0.0"
buefy@^0.8.20:
version "0.8.20"
resolved "https://registry.yarnpkg.com/buefy/-/buefy-0.8.20.tgz#75708800548220654575903d031a81fc8575b7f3"
integrity sha512-pg8Cn0m9cjqp2/vaKT4VIfU8KIumuX/gAT1GtearXRs56+kKqAPx3j9O8cm9W6P4jPUCHajKX6H8AqD0ram2Bg==
buefy@^0.9.3:
version "0.9.3"
resolved "https://registry.yarnpkg.com/buefy/-/buefy-0.9.3.tgz#c33b3309e9458ca5fe3ef14955e4bc2df7a0e3e2"
integrity sha512-Xqfo3ppeBo8Fwhb2fLwWnpkIC/1thPErU7DX3HksxTHxrSMixJ2BYkf3f6aWv4Ffx/FWX5UHnUrgtT7o7slnDA==
dependencies:
bulma "0.7.5"
bulma "0.9.0"
buffer-equal-constant-time@1.0.1:
version "1.0.1"
@ -2279,10 +2279,10 @@ builtin-status-codes@^3.0.0:
resolved "https://registry.yarnpkg.com/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz#85982878e21b98e1c66425e03d0174788f569ee8"
integrity sha1-hZgoeOIbmOHGZCXgPQF0eI9Wnug=
bulma@0.7.5:
version "0.7.5"
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.7.5.tgz#35066c37f82c088b68f94450be758fc00a967208"
integrity sha512-cX98TIn0I6sKba/DhW0FBjtaDpxTelU166pf7ICXpCCuplHWyu6C9LYZmL5PEsnePIeJaiorsTEzzNk3Tsm1hw==
bulma@0.9.0:
version "0.9.0"
resolved "https://registry.yarnpkg.com/bulma/-/bulma-0.9.0.tgz#948c5445a49e9d7546f0826cb3820d17178a814f"
integrity sha512-rV75CJkubNUroAt0qCRkjznZLoaXq/ctfMXsMvKSL84UetbSyx5REl96e8GoQ04G4Tkw0XF3STECffTOQrbzOQ==
busboy@^0.2.11, busboy@^0.2.14:
version "0.2.14"