file-type
Advanced tools
Comparing version 17.1.2 to 17.1.3
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82459