Merge pull request #2878 from thelounge/renovate/file-type-10.x

Update dependency file-type to v10.4.0
This commit is contained in:
Pavel Djundik 2018-11-13 17:00:49 +02:00 committed by GitHub
commit 106092c630
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -44,7 +44,7 @@
"cheerio": "0.22.0",
"commander": "2.19.0",
"express": "4.16.4",
"file-type": "10.1.0",
"file-type": "10.4.0",
"filenamify": "2.1.0",
"fs-extra": "7.0.1",
"irc-framework": "4.0.0",

View file

@ -124,7 +124,7 @@ class Uploader {
let type;
try {
buffer = readChunk.sync(filePath, 0, 4100);
buffer = readChunk.sync(filePath, 0, fileType.minimumBytes);
} catch (e) {
if (e.code === "ENOENT") { // doesn't exist
return;

View file

@ -2864,9 +2864,9 @@ file-entry-cache@^2.0.0:
flat-cache "^1.2.1"
object-assign "^4.0.1"
file-type@10.1.0:
version "10.1.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-10.1.0.tgz#f692a28722e1ac8e206e68fcc2fb032a759d16d0"
file-type@10.4.0:
version "10.4.0"
resolved "https://registry.yarnpkg.com/file-type/-/file-type-10.4.0.tgz#e730e93ffdf30992c0b7d38fc2f15c4371353d44"
filename-reserved-regex@^2.0.0:
version "2.0.0"