New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mime-type

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mime-type - npm Package Compare versions

Comparing version 5.0.1 to 5.0.2

3

lib/index.js

@@ -19,2 +19,3 @@ "use strict";

const refSources = ['nginx', 'apache', undefined, 'iana'];
const shouldDebug = typeof process === 'object' && process && process.env && process.env.DEBUG_MIME;
MimeType.prototype.dupDefault = 0;

@@ -246,3 +247,3 @@ MimeType.prototype.dupSkip = 1;

if (t !== 'application/octet-stream' && from > to || from === to && t.substr(0, 12) === 'application/') {
if (process && process.env && process.env.DEBUG_MIME) {
if (shouldDebug) {
console.warn("defineMime(" + type + "): the " + extension + " extension is exists on\n" + t + " skipped it.");

@@ -249,0 +250,0 @@ }

{
"name": "mime-type",
"description": "the custom more powerful mime-type utility can work with mime-db.",
"version": "5.0.1",
"version": "5.0.2",
"contributors": [

@@ -6,0 +6,0 @@ "Riceball LEE https://github.com/snowyu",

@@ -14,2 +14,3 @@ import picomatch from 'picomatch/posix'

const refSources = ['nginx', 'apache', undefined, 'iana']
const shouldDebug = typeof process === 'object' && process && process.env && process.env.DEBUG_MIME

@@ -249,3 +250,3 @@ MimeType.prototype.dupDefault = 0;

if (t !== 'application/octet-stream' && from > to || from === to && t.substr(0, 12) === 'application/') {
if (process && process.env && process.env.DEBUG_MIME) {
if (shouldDebug) {
console.warn("defineMime(" + type + "): the " + extension + " extension is exists on\n" + t + " skipped it.");

@@ -252,0 +253,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