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", "cheerio": "0.22.0",
"commander": "2.19.0", "commander": "2.19.0",
"express": "4.16.4", "express": "4.16.4",
"file-type": "10.1.0", "file-type": "10.4.0",
"filenamify": "2.1.0", "filenamify": "2.1.0",
"fs-extra": "7.0.1", "fs-extra": "7.0.1",
"irc-framework": "4.0.0", "irc-framework": "4.0.0",

View File

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

View File

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