compressible
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,3 +7,3 @@ module.exports = compressible | ||
compressible.regex = | ||
compressible.regexp = /json|text|javascript|dart|ecmascript|xml/ | ||
compressible.regexp = /json|text|xml/ | ||
@@ -25,3 +25,4 @@ compressible.get = get | ||
} | ||
var spec = compressible.specs[type.split(';')[0]] | ||
var i = type.indexOf(';') | ||
, spec = compressible.specs[~i ? type.slice(0, i) : type] | ||
return spec ? spec : { | ||
@@ -28,0 +29,0 @@ compressible: compressible.regex.test(type), |
{ | ||
"name": "compressible", | ||
"description": "Compressible Content-Type / mime checking", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"author": { | ||
@@ -11,3 +11,3 @@ "name": "Jonathan Ong", | ||
}, | ||
"contributors": { | ||
"contributors": [{ | ||
"name": "Jeremiah Senkpiel", | ||
@@ -17,3 +17,3 @@ "email": "fishrock123@rocketmail.com", | ||
"twitter": "https://twitter.com/fishrock123" | ||
}, | ||
}], | ||
"license": "MIT", | ||
@@ -41,5 +41,5 @@ "repository": { | ||
"scripts": { | ||
"test": "mocha --reporter spec", | ||
"posttest": "mocha --reporter spec bench.js" | ||
"test": "mocha --reporter spec test/compressible.js", | ||
"posttest": "mocha --reporter spec test/benchmarks.js" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
31905
719