compressible
Advanced tools
Comparing version 2.0.10 to 2.0.11
@@ -0,1 +1,6 @@ | ||
2.0.11 / 2017-07-27 | ||
=================== | ||
* deps: mime-db@'>= 1.29.0 < 2' | ||
2.0.10 / 2017-03-23 | ||
@@ -2,0 +7,0 @@ =================== |
@@ -23,4 +23,4 @@ /*! | ||
var compressibleTypeRegExp = /^text\/|\+json$|\+text$|\+xml$/i | ||
var extractTypeRegExp = /^\s*([^;\s]*)(?:;|\s|$)/ | ||
var COMPRESSIBLE_TYPE_REGEXP = /^text\/|\+(?:json|text|xml)$/i | ||
var EXTRACT_TYPE_REGEXP = /^\s*([^;\s]*)(?:;|\s|$)/ | ||
@@ -48,3 +48,3 @@ /** | ||
// strip parameters | ||
var match = extractTypeRegExp.exec(type) | ||
var match = EXTRACT_TYPE_REGEXP.exec(type) | ||
var mime = match && match[1].toLowerCase() | ||
@@ -59,3 +59,3 @@ var data = db[mime] | ||
// fallback to regexp or unknown | ||
return compressibleTypeRegExp.test(mime) || undefined | ||
return COMPRESSIBLE_TYPE_REGEXP.test(mime) || undefined | ||
} |
{ | ||
"name": "compressible", | ||
"description": "Compressible Content-Type / mime checking", | ||
"version": "2.0.10", | ||
"version": "2.0.11", | ||
"contributors": [ | ||
@@ -19,12 +19,14 @@ "Douglas Christopher Wilson <doug@somethingdoug.com>", | ||
"dependencies": { | ||
"mime-db": ">= 1.27.0 < 2" | ||
"mime-db": ">= 1.29.0 < 2" | ||
}, | ||
"devDependencies": { | ||
"eslint": "3.18.0", | ||
"eslint-config-standard": "7.1.0", | ||
"eslint-plugin-markdown": "1.0.0-beta.4", | ||
"eslint": "3.19.0", | ||
"eslint-config-standard": "10.2.1", | ||
"eslint-plugin-import": "2.7.0", | ||
"eslint-plugin-markdown": "1.0.0-beta.6", | ||
"eslint-plugin-node": "5.1.1", | ||
"eslint-plugin-promise": "3.5.0", | ||
"eslint-plugin-standard": "2.1.1", | ||
"istanbul": "0.4.5", | ||
"mocha": "~1.21.5" | ||
"eslint-plugin-standard": "3.0.1", | ||
"mocha": "~1.21.5", | ||
"nyc": "11.0.3" | ||
}, | ||
@@ -43,5 +45,5 @@ "engines": { | ||
"test": "mocha --reporter spec --bail --check-leaks test/", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks", | ||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --check-leaks" | ||
"test-cov": "nyc --reporter=html --reporter=text npm test", | ||
"test-travis": "nyc --reporter=text npm test" | ||
} | ||
} |
6652
9
Updatedmime-db@>= 1.29.0 < 2