Comparing version 3.0.3 to 3.0.4
@@ -9,3 +9,3 @@ // Generated by CoffeeScript 1.9.3 | ||
(function() { | ||
var MimeTypes, defineProperty, extname, extractTypeRegExp, isArray, isFunction, isString, mediaTyper, minimatch, textTypeRegExp, | ||
var MimeTypes, defineProperty, extractTypeRegExp, isArray, isFunction, isString, mediaTyper, minimatch, path, textTypeRegExp, | ||
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; }; | ||
@@ -25,3 +25,3 @@ | ||
extname = require('path-ex').extname; | ||
path = require('path.js'); | ||
@@ -157,6 +157,6 @@ extractTypeRegExp = /^\s*([^;\s]*)(?:;|\s|$)/; | ||
MimeTypes.prototype.lookup = function(path) { | ||
MimeTypes.prototype.lookup = function(aPath) { | ||
var extension, result; | ||
if (path && isString(path)) { | ||
extension = extname('x.' + path).toLowerCase().substr(1); | ||
if (aPath && isString(aPath)) { | ||
extension = path.extname('x.' + aPath).toLowerCase().substr(1); | ||
if (extension) { | ||
@@ -163,0 +163,0 @@ result = this.types[extension]; |
{ | ||
"name": "mime-type", | ||
"description": "the custom more powerful mime-type utility can work with mime-db.", | ||
"version": "3.0.3", | ||
"version": "3.0.4", | ||
"contributors": [ | ||
@@ -21,3 +21,3 @@ "Riceball LEE https://github.com/snowyu", | ||
"minimatch": "^2.0.8", | ||
"path-ex": "0.0.1", | ||
"path.js": "^1.0.4", | ||
"util-ex": "^0.3.4" | ||
@@ -24,0 +24,0 @@ }, |
Sorry, the diff of this file is not supported yet
26195
+ Addedpath.js@^1.0.4
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedpath.js@1.0.7(transitive)
- Removedpath-ex@0.0.1
- Removedpath-ex@0.0.1(transitive)