Comparing version 5.0.1 to 5.0.2
@@ -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 @@ } |
417895
18007