file-type
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -142,2 +142,9 @@ 'use strict'; | ||
if (buf[0] === 0x4D && buf[1] === 0x54 && buf[2] === 0x68 && buf[3] === 0x64) { | ||
return { | ||
ext: 'mid', | ||
mime: 'audio/midi' | ||
}; | ||
} | ||
// needs to be before the `webm` check | ||
@@ -144,0 +151,0 @@ 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) { |
{ | ||
"name": "file-type", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -64,2 +64,3 @@ "license": "MIT", | ||
"m4v", | ||
"mid", | ||
"mkv", | ||
@@ -66,0 +67,0 @@ "webm", |
@@ -115,2 +115,3 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
- `m4v` | ||
- `mid` | ||
- `mkv` | ||
@@ -117,0 +118,0 @@ - `webm` |
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
14124
308
150