Comparing version 1.2.7 to 1.2.8
11
mime.js
@@ -26,2 +26,7 @@ var path = require('path'); | ||
for (var i = 0; i < exts.length; i++) { | ||
if (process.env.DEBUG && this.types[exts]) { | ||
console.warn(this._loading.replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' + | ||
this.types[exts] + ' to ' + type); | ||
} | ||
this.types[exts[i]] = type; | ||
@@ -46,2 +51,4 @@ } | ||
Mime.prototype.load = function(file) { | ||
this._loading = file; | ||
// Read file and split into lines | ||
@@ -59,2 +66,4 @@ var map = {}, | ||
this.define(map); | ||
this._loading = null; | ||
}; | ||
@@ -105,4 +114,4 @@ | ||
} | ||
} | ||
}; | ||
module.exports = mime; |
@@ -21,3 +21,3 @@ { | ||
"repository": {"url": "https://github.com/broofa/node-mime", "type": "git"}, | ||
"version": "1.2.7" | ||
"version": "1.2.8" | ||
} |
Sorry, the diff of this file is not supported yet
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
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
63614
134
2