Skip to content

Commit 19a4b97

Browse files
committedMay 10, 2017
Merge branch 'master' of github.com:broofa/node-mime
2 parents 76e8766 + 89d499e commit 19a4b97

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed
 

‎mime.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ Mime.prototype.define = function (map) {
2222
for (var type in map) {
2323
var exts = map[type];
2424
for (var i = 0; i < exts.length; i++) {
25-
if (process.env.DEBUG_MIME && this.types[exts]) {
26-
console.warn(this._loading.replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' +
27-
this.types[exts] + ' to ' + type);
25+
if (process.env.DEBUG_MIME && this.types[exts[i]]) {
26+
console.warn((this._loading || "define()").replace(/.*\//, ''), 'changes "' + exts[i] + '" extension type from ' +
27+
this.types[exts[i]] + ' to ' + type);
2828
}
2929

3030
this.types[exts[i]] = type;

‎package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
"url": "http://github.com/broofa",
55
"email": "robert@broofa.com"
66
},
7-
"scripts": {
8-
"test": "node test.js"
9-
},
107
"bin": {
118
"mime": "cli.js"
129
},
@@ -21,7 +18,7 @@
2118
"license": "MIT",
2219
"dependencies": {},
2320
"devDependencies": {
24-
"mime-db": "^1.2.0"
21+
"mime-db": "^1.22.0"
2522
},
2623
"scripts": {
2724
"prepublish": "node build/build.js > types.json",

0 commit comments

Comments
 (0)
Please sign in to comment.