You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

file-type

Package Overview
Dependencies
Maintainers
1
Versions
146
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.1.0 to 18.2.0

6

core.d.ts

@@ -146,3 +146,4 @@ import type {Readable as ReadableStream} from 'node:stream';

| 'pst'
| 'dwg';
| 'dwg'
| 'parquet';

@@ -286,3 +287,4 @@ export type MimeType =

| 'application/vnd.ms-outlook'
| 'image/vnd.dwg';
| 'image/vnd.dwg'
| 'application/x-parquet';

@@ -289,0 +291,0 @@ export type FileTypeResult = {

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

if (this.checkString('PAR1')) {
return {
ext: 'parquet',
mime: 'application/x-parquet',
};
}
// -- 5-byte signatures --

@@ -820,0 +827,0 @@

{
"name": "file-type",
"version": "18.1.0",
"version": "18.2.0",
"description": "Detect the file type of a Buffer/Uint8Array/ArrayBuffer",

@@ -199,3 +199,4 @@ "license": "MIT",

"pst",
"dwg"
"dwg",
"parquet"
],

@@ -202,0 +203,0 @@ "dependencies": {

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

- [`otf`](https://en.wikipedia.org/wiki/OpenType) - OpenType font
- [`parquet`](https://en.wikipedia.org/wiki/Apache_Parquet) - Apache Parquet
- [`pcap`](https://wiki.wireshark.org/Development/LibpcapFileFormat) - Libpcap File Format

@@ -445,0 +446,0 @@ - [`pdf`](https://en.wikipedia.org/wiki/Portable_Document_Format) - Portable Document Format

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

'dwg',
'parquet',
];

@@ -285,2 +286,3 @@

'image/vnd.dwg',
'application/x-parquet',
];
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc