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 17.0.2 to 17.1.0

2

core.d.ts

@@ -52,2 +52,3 @@ import {Readable as ReadableStream} from 'node:stream';

| 'mobi'
| 'elf'
| 'exe'

@@ -199,2 +200,3 @@ | 'swf'

| 'application/pdf'
| 'application/x-elf'
| 'application/x-msdownload'

@@ -201,0 +203,0 @@ | 'application/x-shockwave-flash'

@@ -217,2 +217,9 @@ import {Buffer} from 'node:buffer';

if (this.check([0x7F, 0x45, 0x4C, 0x46])) {
return {
ext: 'elf',
mime: 'application/x-elf',
};
}
if (this.check([0x47, 0x49, 0x46])) {

@@ -481,2 +488,3 @@ return {

case 'avif':
case 'avis':
return {ext: 'avif', mime: 'image/avif'};

@@ -483,0 +491,0 @@ case 'mif1':

3

package.json
{
"name": "file-type",
"version": "17.0.2",
"version": "17.1.0",
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer",

@@ -54,2 +54,3 @@ "license": "MIT",

"exif",
"elf",
"exe",

@@ -56,0 +57,0 @@ "binary",

@@ -374,2 +374,3 @@ # file-type

- [`mobi`](https://en.wikipedia.org/wiki/Mobipocket) - Mobipocket
- [`elf`](https://en.wikipedia.org/wiki/Executable_and_Linkable_Format) - Unix Executable and Linkable Format
- [`exe`](https://en.wikipedia.org/wiki/.exe) - Executable file

@@ -376,0 +377,0 @@ - [`swf`](https://en.wikipedia.org/wiki/SWF) - Adobe Flash Player file

@@ -50,2 +50,3 @@ export const extensions = [

'epub',
'elf',
'exe',

@@ -197,2 +198,3 @@ 'swf',

'application/pdf',
'application/x-elf',
'application/x-msdownload',

@@ -199,0 +201,0 @@ 'application/x-shockwave-flash',

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