Socket
Socket
Sign inDemoInstall

file-type

Package Overview
Dependencies
11
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 18.7.0 to 19.0.0

2

core.d.ts

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

| 'video/vnd.avi'
| 'audio/vnd.wave'
| 'audio/wav'
| 'audio/qcelp'

@@ -198,0 +198,0 @@ | 'audio/x-ms-asf'

import {Buffer} from 'node:buffer';
import * as Token from 'token-types';
import * as strtok3 from 'strtok3/core'; // eslint-disable-line n/file-extension-in-import
import * as strtok3 from 'strtok3/core';
import {

@@ -797,3 +797,3 @@ stringToBytes,

const rawValue = await tokenizer.readToken(new Token.StringType(element.len, 'utf-8'));
return rawValue.replace(/\00.*$/g, ''); // Return DocType
return rawValue.replaceAll(/\00.*$/g, ''); // Return DocType
}

@@ -839,3 +839,3 @@

ext: 'wav',
mime: 'audio/vnd.wave',
mime: 'audio/wav',
};

@@ -842,0 +842,0 @@ }

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

@@ -23,3 +23,3 @@ "license": "MIT",

"engines": {
"node": ">=14.16"
"node": ">=18"
},

@@ -220,8 +220,8 @@ "scripts": {

"@tokenizer/token": "^0.3.0",
"@types/node": "^20.1.2",
"ava": "^5.2.0",
"@types/node": "^20.10.7",
"ava": "^6.0.1",
"commonmark": "^0.30.0",
"noop-stream": "^1.0.0",
"tsd": "^0.28.1",
"xo": "^0.54.2"
"tsd": "^0.30.3",
"xo": "^0.56.0"
},

@@ -233,2 +233,5 @@ "xo": {

],
"ignores": [
"fixture"
],
"rules": {

@@ -235,0 +238,0 @@ "no-inner-declarations": "warn",

@@ -192,3 +192,3 @@ export const extensions = [

'video/vnd.avi',
'audio/vnd.wave',
'audio/wav',
'audio/qcelp',

@@ -195,0 +195,0 @@ 'audio/x-ms-asf',

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