Compare commits

...

14 Commits

Author SHA1 Message Date
Douglas Christopher Wilson
357452911d 1.8.0 2016-06-17 12:13:08 -04:00
Douglas Christopher Wilson
fb1c509620 build: support Node.js 6.x 2016-06-16 20:37:26 -04:00
Douglas Christopher Wilson
2e1836e614 build: Node.js@5.11 2016-06-16 20:37:07 -04:00
Douglas Christopher Wilson
ed181e36ed deps: http-errors@~1.5.0 2016-06-16 19:46:25 -04:00
Douglas Christopher Wilson
f99abfe86a build: mocha@2.5.3 2016-06-16 19:44:37 -04:00
Douglas Christopher Wilson
e9ccd54a5d build: istanbul@0.4.3 2016-06-16 19:43:53 -04:00
Douglas Christopher Wilson
972e4d1ced deps: accepts@~1.3.3
fixes #56
2016-06-16 19:42:47 -04:00
Douglas Christopher Wilson
28e28c8352 deps: mime-types@~2.1.11
closes #47
2016-06-16 19:41:07 -04:00
Douglas Christopher Wilson
cd7ab38593 build: cache node_modules on CI 2016-04-17 22:19:04 -04:00
Douglas Christopher Wilson
a8c6d17b08 build: Node.js@5.10 2016-04-17 22:11:58 -04:00
Douglas Christopher Wilson
6cb3ab01a0 build: Node.js@4.4 2016-04-17 22:09:43 -04:00
Douglas Christopher Wilson
11b27ed4d3 build: mocha@2.4.5 2016-02-13 16:09:46 -05:00
Patrick Glynn
5afc181207 Make inline file search case-insensitive
closes #38
closes #45
2016-01-24 18:51:15 -05:00
Douglas Christopher Wilson
8195aa5d6a deps: accepts@~1.3.1 2016-01-24 18:45:30 -05:00
5 changed files with 44 additions and 13 deletions

View File

@@ -6,12 +6,20 @@ node_js:
- "1.8"
- "2.5"
- "3.3"
- "4.2"
- "5.3"
- "4.4"
- "5.11"
- "6.2"
sudo: false
cache:
directories:
- node_modules
before_install:
# Setup Node.js version-specific dependencies
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"
# Update Node.js modules
- "test ! -d node_modules || npm prune"
- "test ! -d node_modules || npm rebuild"
script:
# Run test script, depending on istanbul install
- "test ! -z $(npm -ps ls istanbul) || npm test"

View File

@@ -1,3 +1,21 @@
1.8.0 / 2016-06-17
==================
* Make inline file search case-insensitive
* deps: accepts@~1.3.3
- deps: mime-types@~2.1.11
- deps: negotiator@0.6.1
- perf: improve header parsing speed
* deps: http-errors@~1.5.0
- Use `setprototypeof` module to replace `__proto__` setting
- deps: inherits@2.0.1
- deps: statuses@'>= 1.3.0 < 2'
- perf: enable strict mode
* deps: mime-types@~2.1.11
- Add new mime types
- Update primary extension for `audio/mp4`
- deps: mime-db@~1.23.0
1.7.3 / 2016-01-24
==================

View File

@@ -6,11 +6,16 @@ environment:
- nodejs_version: "1.8"
- nodejs_version: "2.5"
- nodejs_version: "3.3"
- nodejs_version: "4.2"
- nodejs_version: "5.3"
- nodejs_version: "4.4"
- nodejs_version: "5.11"
- nodejs_version: "6.2"
cache:
- node_modules
install:
- ps: Install-Product node $env:nodejs_version
- if "%nodejs_version%" equ "0.8" npm rm --save-dev istanbul
- if exist node_modules npm prune
- if exist node_modules npm rebuild
- npm install
build: off
test_script:

View File

@@ -1,23 +1,23 @@
{
"name": "serve-index",
"description": "Serve directory listings",
"version": "1.7.3",
"version": "1.8.0",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
"license": "MIT",
"repository": "expressjs/serve-index",
"dependencies": {
"accepts": "~1.2.13",
"accepts": "~1.3.3",
"batch": "0.5.3",
"debug": "~2.2.0",
"escape-html": "~1.0.3",
"http-errors": "~1.3.1",
"mime-types": "~2.1.9",
"http-errors": "~1.5.0",
"mime-types": "~2.1.11",
"parseurl": "~1.3.1"
},
"devDependencies": {
"after": "0.8.1",
"istanbul": "0.4.2",
"mocha": "2.3.4",
"istanbul": "0.4.3",
"mocha": "2.5.3",
"supertest": "1.1.0"
},
"files": [

View File

@@ -52,11 +52,11 @@
}
function search() {
var str = $('search').value
, links = $('files').all('a');
var str = $('search').value.toLowerCase();
var links = $('files').all('a');
links.each(function(link){
var text = link.textContent;
var text = link.textContent.toLowerCase();
if ('..' == text) return;
if (str.length && ~text.indexOf(str)) {