Socket
Socket
Sign inDemoInstall

file-type

Package Overview
Dependencies
Maintainers
2
Versions
149
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 2.0.2 to 2.0.3

6

index.js

@@ -53,3 +53,3 @@ 'use strict';

mime: 'image/vnd.ms-photo'
}
};
}

@@ -123,3 +123,3 @@

// needs to be before the `webm` check
if (buf.slice(31, 39).toString() === 'matroska') {
if (buf[31] === 0x6d && buf[32] === 0x61 && buf[33] === 0x74 && buf[34] === 0x72 && buf[35] === 0x6f && buf[36] === 0x73 && buf[37] === 0x6b && buf[38] === 0x61) {
return {

@@ -177,3 +177,3 @@ ext: 'mkv',

mime: 'audio/m4a'
}
};
}

@@ -180,0 +180,0 @@

{
"name": "file-type",
"version": "2.0.2",
"version": "2.0.3",
"description": "Detect the file type of a Buffer/Uint8Array",

@@ -5,0 +5,0 @@ "license": "MIT",

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