send
Advanced tools
Comparing version 0.17.1 to 0.17.2
@@ -0,1 +1,11 @@ | ||
0.17.2 / 2021-12-11 | ||
=================== | ||
* pref: ignore empty http tokens | ||
* deps: http-errors@1.8.1 | ||
- deps: inherits@2.0.4 | ||
- deps: toidentifier@1.0.1 | ||
- deps: setprototypeof@1.2.0 | ||
* deps: ms@2.1.3 | ||
0.17.1 / 2019-05-10 | ||
@@ -2,0 +12,0 @@ =================== |
10
index.js
@@ -438,3 +438,3 @@ /*! | ||
return fresh(this.req.headers, { | ||
'etag': this.res.getHeader('ETag'), | ||
etag: this.res.getHeader('ETag'), | ||
'last-modified': this.res.getHeader('Last-Modified') | ||
@@ -1100,3 +1100,5 @@ }) | ||
case 0x2c: /* , */ | ||
list.push(str.substring(start, end)) | ||
if (start !== end) { | ||
list.push(str.substring(start, end)) | ||
} | ||
start = end = i + 1 | ||
@@ -1111,3 +1113,5 @@ break | ||
// final token | ||
list.push(str.substring(start, end)) | ||
if (start !== end) { | ||
list.push(str.substring(start, end)) | ||
} | ||
@@ -1114,0 +1118,0 @@ return list |
{ | ||
"name": "send", | ||
"description": "Better streaming static file server with Range and conditional-GET support", | ||
"version": "0.17.1", | ||
"version": "0.17.2", | ||
"author": "TJ Holowaychuk <tj@vision-media.ca>", | ||
@@ -26,5 +26,5 @@ "contributors": [ | ||
"fresh": "0.5.2", | ||
"http-errors": "~1.7.2", | ||
"http-errors": "1.8.1", | ||
"mime": "1.6.0", | ||
"ms": "2.1.1", | ||
"ms": "2.1.3", | ||
"on-finished": "~2.3.0", | ||
@@ -36,12 +36,12 @@ "range-parser": "~1.2.1", | ||
"after": "0.8.2", | ||
"eslint": "5.16.0", | ||
"eslint-config-standard": "12.0.0", | ||
"eslint-plugin-import": "2.17.2", | ||
"eslint-plugin-markdown": "1.0.0", | ||
"eslint-plugin-node": "8.0.1", | ||
"eslint-plugin-promise": "4.1.1", | ||
"eslint-plugin-standard": "4.0.0", | ||
"istanbul": "0.4.5", | ||
"mocha": "6.1.4", | ||
"supertest": "4.0.2" | ||
"eslint": "7.32.0", | ||
"eslint-config-standard": "14.1.1", | ||
"eslint-plugin-import": "2.25.3", | ||
"eslint-plugin-markdown": "2.2.1", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-promise": "5.2.0", | ||
"eslint-plugin-standard": "4.1.0", | ||
"mocha": "9.1.3", | ||
"nyc": "15.1.0", | ||
"supertest": "6.1.6" | ||
}, | ||
@@ -58,7 +58,7 @@ "files": [ | ||
"scripts": { | ||
"lint": "eslint --plugin markdown --ext js,md .", | ||
"lint": "eslint .", | ||
"test": "mocha --check-leaks --reporter spec --bail", | ||
"test-ci": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --check-leaks --reporter spec", | ||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --check-leaks --reporter dot" | ||
"test-ci": "nyc --reporter=lcov --reporter=text npm test", | ||
"test-cov": "nyc --reporter=html --reporter=text npm test" | ||
} | ||
} |
@@ -5,3 +5,3 @@ # send | ||
[![NPM Downloads][npm-downloads-image]][npm-url] | ||
[![Linux Build][travis-image]][travis-url] | ||
[![Linux Build][github-actions-ci-image]][github-actions-ci-url] | ||
[![Windows Build][appveyor-image]][appveyor-url] | ||
@@ -30,4 +30,2 @@ [![Test Coverage][coveralls-image]][coveralls-url] | ||
<!-- eslint-disable no-unused-vars --> | ||
```js | ||
@@ -92,3 +90,3 @@ var send = require('send') | ||
Enable or diable the `immutable` directive in the `Cache-Control` response | ||
Enable or disable the `immutable` directive in the `Cache-Control` response | ||
header, defaults to `false`. If set to `true`, the `maxAge` option should | ||
@@ -326,2 +324,4 @@ also be specified to enable caching. The `immutable` directive will prevent | ||
[coveralls-url]: https://coveralls.io/r/pillarjs/send?branch=master | ||
[github-actions-ci-image]: https://badgen.net/github/checks/pillarjs/send/master?label=ci | ||
[github-actions-ci-url]: https://github.com/pillarjs/send/actions?query=workflow%3Aci | ||
[node-image]: https://badgen.net/npm/node/send | ||
@@ -332,3 +332,1 @@ [node-url]: https://nodejs.org/en/download/ | ||
[npm-version-image]: https://badgen.net/npm/v/send | ||
[travis-image]: https://badgen.net/travis/pillarjs/send/master?label=linux | ||
[travis-url]: https://travis-ci.org/pillarjs/send |
48373
938
328
+ Addedhttp-errors@1.8.1(transitive)
+ Addedms@2.1.3(transitive)
+ Addedsetprototypeof@1.2.0(transitive)
+ Addedtoidentifier@1.0.1(transitive)
- Removedhttp-errors@1.7.3(transitive)
- Removedms@2.1.1(transitive)
- Removedsetprototypeof@1.1.1(transitive)
- Removedtoidentifier@1.0.0(transitive)
Updatedhttp-errors@1.8.1
Updatedms@2.1.3