file-type
Advanced tools
Comparing version 10.7.1 to 10.8.0
10
index.js
@@ -457,4 +457,3 @@ 'use strict'; | ||
if ( | ||
check([0x66, 0x74, 0x79, 0x70, 0x4D, 0x34, 0x41], {offset: 4}) || | ||
check([0x4D, 0x34, 0x41, 0x20]) | ||
check([0x66, 0x74, 0x79, 0x70, 0x4D, 0x34, 0x41], {offset: 4}) | ||
) { | ||
@@ -912,2 +911,9 @@ return { // MPEG-4 layer 3 (audio) | ||
if (check([0xD4, 0xC3, 0xB2, 0xA1]) || check([0xA1, 0xB2, 0xC3, 0xD4])) { | ||
return { | ||
ext: 'pcap', | ||
mime: 'application/vnd.tcpdump.pcap' | ||
}; | ||
} | ||
return null; | ||
@@ -914,0 +920,0 @@ }; |
{ | ||
"name": "file-type", | ||
"version": "10.7.1", | ||
"version": "10.8.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array", | ||
@@ -119,3 +119,4 @@ "license": "MIT", | ||
"ics", | ||
"glb" | ||
"glb", | ||
"pcap" | ||
], | ||
@@ -122,0 +123,0 @@ "devDependencies": { |
@@ -184,2 +184,3 @@ # file-type [](https://travis-ci.org/sindresorhus/file-type) | ||
- [`glb`](https://github.com/KhronosGroup/glTF) - GL Transmission Format | ||
- [`pcap`](https://wiki.wireshark.org/Development/LibpcapFileFormat) - Libpcap File Format | ||
@@ -186,0 +187,0 @@ *SVG isn't included as it requires the whole file to be read, but you can get it [here](https://github.com/sindresorhus/is-svg).* |
29500
802
205