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.3.0 to 18.4.0

2

core.d.ts

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

| 'ace'
| 'avro'
; // eslint-disable-line semi-style

@@ -300,2 +301,3 @@

| 'application/x-ace-compressed'
| 'application/avro'
; // eslint-disable-line semi-style

@@ -302,0 +304,0 @@

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

if (this.check([0x4F, 0x62, 0x6A, 0x01])) {
return {
ext: 'avro',
mime: 'application/avro',
};
}
if (this.checkString('FLIF')) {

@@ -254,0 +261,0 @@ return {

9

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

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

"cpio",
"ace"
"ace",
"avro"
],

@@ -215,3 +216,3 @@ "dependencies": {

"@tokenizer/token": "^0.3.0",
"@types/node": "^18.16.0",
"@types/node": "^20.1.2",
"ava": "^5.2.0",

@@ -221,3 +222,3 @@ "commonmark": "^0.30.0",

"tsd": "^0.28.1",
"xo": "^0.54.1"
"xo": "^0.54.2"
},

@@ -224,0 +225,0 @@ "xo": {

@@ -11,32 +11,2 @@ # file-type

<br>
---
<div align="center">
<p>
<p>
<sup>
<a href="https://github.com/sponsors/sindresorhus">My open source work is supported by the community</a>
</sup>
</p>
<sup>Special thanks to:</sup>
<br>
<br>
<a href="https://bit.io/?utm_campaign=github_repo&utm_medium=referral&utm_content=file-type&utm_source=github">
<div>
<img src="https://sindresorhus.com/assets/thanks/bitio-logo.svg" width="190" alt="bit.io">
</div>
<b>Instant, shareable cloud PostgreSQL database</b>
<div>
<sup>Import any dataset in seconds, share with anyone with a click, try without signing up</sup>
</div>
</a>
</p>
</div>
---
<br>
## Install

@@ -363,2 +333,3 @@

- [`avif`](https://en.wikipedia.org/wiki/AV1#AV1_Image_File_Format_(AVIF)) - AV1 Image File Format
- [`avro`](https://en.wikipedia.org/wiki/Apache_Avro#Avro_Object_Container_File) - Object container file developed by Apache Avro
- [`blend`](https://wiki.blender.org/index.php/Dev:Source/Architecture/File_Format) - Blender project

@@ -365,0 +336,0 @@ - [`bmp`](https://en.wikipedia.org/wiki/BMP_file_format) - Bitmap image file

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

'ace',
'avro',
];

@@ -297,2 +298,3 @@

'application/x-ace-compressed',
'application/avro',
];
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