Compare commits

...

9 Commits

Author SHA1 Message Date
Douglas Christopher Wilson
a399faa180 1.9.1 2017-09-29 00:23:59 -04:00
Douglas Christopher Wilson
fc6953383f deps: parseurl@~1.3.2 2017-09-29 00:22:44 -04:00
Douglas Christopher Wilson
45dbe4f219 docs: add express.static to the express example
closes #64
2017-09-29 00:20:54 -04:00
Daniel Tschinder
76e3c3af41 deps: debug@2.6.9
closes #65
2017-09-28 23:27:29 -04:00
Douglas Christopher Wilson
da37631e2c build: Node.js@8.3 2017-09-02 20:01:11 -04:00
Douglas Christopher Wilson
3e09fb26f9 build: Node.js@6.11 2017-09-02 19:58:07 -04:00
Douglas Christopher Wilson
0894f8c9ff deps: mime-types@~2.1.17 2017-09-02 19:54:30 -04:00
Douglas Christopher Wilson
a4f1ef3d5e deps: http-errors@~1.6.2 2017-09-02 19:48:04 -04:00
Douglas Christopher Wilson
ccbeaebe69 deps: accepts@~1.3.4 2017-09-02 19:45:33 -04:00
6 changed files with 36 additions and 10 deletions

1
.gitignore vendored
View File

@@ -1,3 +1,4 @@
coverage
node_modules
npm-debug.log
package-lock.json

View File

@@ -8,13 +8,17 @@ node_js:
- "3.3"
- "4.8"
- "5.12"
- "6.10"
- "6.11"
- "7.10"
- "8.3"
sudo: false
cache:
directories:
- node_modules
before_install:
# Skip updating shrinkwrap / lock
- "npm config set shrinkwrap false"
# Setup Node.js version-specific dependencies
- "test $TRAVIS_NODE_VERSION != '0.8' || npm rm --save-dev istanbul"

View File

@@ -1,3 +1,18 @@
1.9.1 / 2017-09-28
==================
* deps: accepts@~1.3.4
- deps: mime-types@~2.1.16
* deps: debug@2.6.9
* deps: http-errors@~1.6.2
- deps: depd@1.1.1
* deps: mime-types@~2.1.17
- Add new mime types
- deps: mime-db@~1.30.0
* deps: parseurl@~1.3.2
- perf: reduce overhead for full URLs
- perf: unroll the "fast-path" `RegExp`
1.9.0 / 2017-05-25
==================

View File

@@ -127,8 +127,12 @@ var serveIndex = require('serve-index')
var app = express()
// Serve URLs like /ftp/thing as public/ftp/thing
app.use('/ftp', serveIndex('public/ftp', {'icons': true}))
app.listen()
// The express.static serves the file contents
// The serveIndex is this module serving the directory
app.use('/ftp', express.static('public/ftp'), serveIndex('public/ftp', {'icons': true}))
// Listen
app.listen(3000)
```
## License

View File

@@ -8,12 +8,14 @@ environment:
- nodejs_version: "3.3"
- nodejs_version: "4.8"
- nodejs_version: "5.12"
- nodejs_version: "6.10"
- nodejs_version: "6.11"
- nodejs_version: "7.10"
- nodejs_version: "8.3"
cache:
- node_modules
install:
- ps: Install-Product node $env:nodejs_version
- npm config set shrinkwrap false
- if "%nodejs_version%" equ "0.8" npm rm --save-dev istanbul
- if exist node_modules npm prune
- if exist node_modules npm rebuild

View File

@@ -1,18 +1,18 @@
{
"name": "serve-index",
"description": "Serve directory listings",
"version": "1.9.0",
"version": "1.9.1",
"author": "Douglas Christopher Wilson <doug@somethingdoug.com>",
"license": "MIT",
"repository": "expressjs/serve-index",
"dependencies": {
"accepts": "~1.3.3",
"accepts": "~1.3.4",
"batch": "0.6.1",
"debug": "2.6.8",
"debug": "2.6.9",
"escape-html": "~1.0.3",
"http-errors": "~1.6.1",
"mime-types": "~2.1.15",
"parseurl": "~1.3.1"
"http-errors": "~1.6.2",
"mime-types": "~2.1.17",
"parseurl": "~1.3.2"
},
"devDependencies": {
"after": "0.8.2",