file-type
Advanced tools
Comparing version 14.5.0 to 14.6.0
@@ -136,3 +136,4 @@ /// <reference types="node"/> | ||
| 'eps' | ||
| 'lzh'; | ||
| 'lzh' | ||
| 'pgp'; | ||
@@ -262,3 +263,4 @@ type MimeType = | ||
| 'image/avif' | ||
| 'application/x-lzh-compressed'; | ||
| 'application/x-lzh-compressed' | ||
| 'application/pgp-encrypted'; | ||
@@ -265,0 +267,0 @@ interface FileTypeResult { |
@@ -1285,2 +1285,9 @@ 'use strict'; | ||
if (checkString('-----BEGIN PGP MESSAGE-----')) { | ||
return { | ||
ext: 'pgp', | ||
mime: 'application/pgp-encrypted' | ||
}; | ||
} | ||
// Check for MPEG header at different starting offsets | ||
@@ -1287,0 +1294,0 @@ for (let start = 0; start < 2 && start < (buffer.length - 16); start++) { |
{ | ||
"name": "file-type", | ||
"version": "14.5.0", | ||
"version": "14.6.0", | ||
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer", | ||
@@ -179,3 +179,4 @@ "license": "MIT", | ||
"eps", | ||
"lzh" | ||
"lzh", | ||
"pgp" | ||
], | ||
@@ -182,0 +183,0 @@ "devDependencies": { |
@@ -403,2 +403,3 @@ # file-type [![Build Status](https://travis-ci.com/sindresorhus/file-type.svg?branch=master)](https://travis-ci.ocomrg/sindresorhus/file-type) | ||
- [`lzh`](https://en.wikipedia.org/wiki/LHA_(file_format)) - LZH archive | ||
- [`pgp`](https://en.wikipedia.org/wiki/Pretty_Good_Privacy) - Pretty Good Privacy | ||
@@ -405,0 +406,0 @@ *Pull requests are welcome for additional commonly used file types.* |
@@ -134,3 +134,4 @@ 'use strict'; | ||
'eps', | ||
'lzh' | ||
'lzh', | ||
'pgp' | ||
], | ||
@@ -260,4 +261,5 @@ mimeTypes: [ | ||
'image/avif', | ||
'application/x-lzh-compressed' | ||
'application/x-lzh-compressed', | ||
'application/pgp-encrypted' | ||
] | ||
}; |
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
72099
1978
430