Socket
Socket
Sign inDemoInstall

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 17.1.2 to 17.1.3

6

core.js

@@ -657,3 +657,3 @@ import {Buffer} from 'node:buffer';

while ((msb & mask) === 0) {
while ((msb & mask) === 0 && mask !== 0) {
++ic;

@@ -679,3 +679,3 @@ mask >>= 1;

async function readChildren(level, children) {
async function readChildren(children) {
while (children > 0) {

@@ -694,3 +694,3 @@ const element = await readElement();

const re = await readElement();
const docType = await readChildren(1, re.len);
const docType = await readChildren(re.len);

@@ -697,0 +697,0 @@ switch (docType) {

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

@@ -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