file-type
Advanced tools
Comparing version 2.11.0 to 2.12.0
@@ -121,2 +121,9 @@ 'use strict'; | ||
if (buf[0] === 0x78 && buf[1] === 0x01) { | ||
return { | ||
ext: 'dmg', | ||
mime: 'application/x-apple-diskimage' | ||
}; | ||
} | ||
if ((buf[0] === 0x0 && buf[1] === 0x0 && buf[2] === 0x0 && (buf[3] === 0x18 || buf[3] === 0x20) && buf[4] === 0x66 && buf[5] === 0x74 && buf[6] === 0x79 && buf[7] === 0x70) || (buf[0] === 0x33 && buf[1] === 0x67 && buf[2] === 0x70 && buf[3] === 0x35) || (buf[0] === 0x0 && buf[1] === 0x0 && buf[2] === 0x0 && buf[3] === 0x1C && buf[4] === 0x66 && buf[5] === 0x74 && buf[6] === 0x79 && buf[7] === 0x70 && buf[8] === 0x6D && buf[9] === 0x70 && buf[10] === 0x34 && buf[11] === 0x32 && buf[16] === 0x6D && buf[17] === 0x70 && buf[18] === 0x34 && buf[19] === 0x31 && buf[20] === 0x6D && buf[21] === 0x70 && buf[22] === 0x34 && buf[23] === 0x32 && buf[24] === 0x69 && buf[25] === 0x73 && buf[26] === 0x6F && buf[27] === 0x6D)) { | ||
@@ -123,0 +130,0 @@ return { |
{ | ||
"name": "file-type", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -61,2 +61,3 @@ "license": "MIT", | ||
"7z", | ||
"dmg", | ||
"mp4", | ||
@@ -63,0 +64,0 @@ "m4v", |
@@ -112,2 +112,3 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type) | ||
- `7z` | ||
- `dmg` | ||
- `mp4` | ||
@@ -114,0 +115,0 @@ - `m4v` |
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
14734
316
151