Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

file-type

Package Overview
Dependencies
Maintainers
2
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-type - npm Package Compare versions

Comparing version 14.5.0 to 14.6.0

6

core.d.ts

@@ -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'
]
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc