Socket
Socket
Sign inDemoInstall

file-type

Package Overview
Dependencies
13
Maintainers
2
Versions
142
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 16.0.1 to 16.1.0

6

core.d.ts

@@ -138,3 +138,4 @@ /// <reference types="node"/>

| 'asar'
| 'stl';
| 'stl'
| 'chm';

@@ -268,3 +269,4 @@ type MimeType =

| 'application/x-asar'
| 'model/stl';
| 'model/stl'
| 'application/vnd.ms-htmlhelp';

@@ -271,0 +273,0 @@ interface FileTypeResult {

@@ -883,2 +883,9 @@ 'use strict';

if (checkString('ITSF')) {
return {
ext: 'chm',
mime: 'application/vnd.ms-htmlhelp'
};
}
// -- 6-byte signatures --

@@ -885,0 +892,0 @@

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

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

"asar",
"stl"
"stl",
"chm"
],

@@ -185,0 +186,0 @@ "devDependencies": {

@@ -1,2 +0,2 @@

# file-type [![Build Status](https://travis-ci.com/sindresorhus/file-type.svg?branch=master)](https://travis-ci.com/github/sindresorhus/file-type)
# file-type

@@ -407,2 +407,3 @@ > Detect the file type of a Buffer/Uint8Array/ArrayBuffer

- [`stl`](https://en.wikipedia.org/wiki/STL_(file_format)) - Standard Tesselated Geometry File Format (ASCII only)
- [`chm`](https://en.wikipedia.org/wiki/Microsoft_Compiled_HTML_Help) - Microsoft Compiled HTML Help

@@ -413,4 +414,4 @@ *Pull requests are welcome for additional commonly used file types.*

- [MS-CFB: Microsoft Compound File Binary File Format based formats](https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-cfb/53989ce4-7b05-4f8d-829b-d08d6148375b), too old and difficult to parse:
- `.doc` - Microsoft Word 97-2003 Document
- `.xls` - Microsoft Excel 97-2003 Document
- `.doc` - Microsoft Word 97-2003 Document
- `.xls` - Microsoft Excel 97-2003 Document
- `.ppt` - Microsoft PowerPoint97-2003 Document

@@ -417,0 +418,0 @@ - `.msi` - Microsoft Windows Installer

@@ -136,3 +136,4 @@ 'use strict';

'asar',
'stl'
'stl',
'chm'
],

@@ -266,4 +267,5 @@ mimeTypes: [

'application/x-asar',
'model/stl'
'model/stl',
'application/vnd.ms-htmlhelp'
]
};
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc