file-type
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -53,3 +53,3 @@ 'use strict'; | ||
mime: 'image/vnd.ms-photo' | ||
} | ||
}; | ||
} | ||
@@ -123,3 +123,3 @@ | ||
// needs to be before the `webm` check | ||
if (buf.slice(31, 39).toString() === 'matroska') { | ||
if (buf[31] === 0x6d && buf[32] === 0x61 && buf[33] === 0x74 && buf[34] === 0x72 && buf[35] === 0x6f && buf[36] === 0x73 && buf[37] === 0x6b && buf[38] === 0x61) { | ||
return { | ||
@@ -177,3 +177,3 @@ ext: 'mkv', | ||
mime: 'audio/m4a' | ||
} | ||
}; | ||
} | ||
@@ -180,0 +180,0 @@ |
{ | ||
"name": "file-type", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9712