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 12.3.0 to 12.3.1

6

index.js

@@ -122,5 +122,5 @@ 'use strict';

check([0x49, 0x49, 0x2A, 0x00]) &&
(check([0x10, 0xFB, 0x86, 0x01], {offset: 4}) ||
check([0x08, 0x00, 0x00, 0x00, 0x13, 0x00], {offset: 4}) ||
check([0x08, 0x00, 0x00, 0x00, 0x12, 0x00], {offset: 4}))
(check([0x10, 0xFB, 0x86, 0x01], {offset: 4}) || check([0x08, 0x00, 0x00, 0x00], {offset: 4})) &&
// This pattern differentiates ARW from other TIFF-ish file types:
check([0x00, 0xFE, 0x00, 0x04, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x03, 0x01], {offset: 9})
) {

@@ -127,0 +127,0 @@ return {

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

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

@@ -60,9 +60,9 @@ # file-type [![Build Status](https://travis-ci.org/sindresorhus/file-type.svg?branch=master)](https://travis-ci.org/sindresorhus/file-type)

const stream = await fileType.stream(stream.pipeline(read, decipher));
const fileTypeStream = await fileType.stream(stream.pipeline(read, decipher));
console.log(stream.fileType);
console.log(fileTypeStream.fileType);
//=> {ext: 'mov', mime: 'video/quicktime'}
const write = fs.createWriteStream(`decrypted.${stream.fileType.ext}`);
stream.pipe(write);
const write = fs.createWriteStream(`decrypted.${fileTypeStream.fileType.ext}`);
fileTypeStream.pipe(write);
})();

@@ -69,0 +69,0 @@ ```

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