Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fresh

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fresh - npm Package Compare versions

Comparing version 0.2.4 to 0.3.0

24

HISTORY.md

@@ -0,5 +1,10 @@

0.3.0 / 2015-05-12
==================
* Add weak `ETag` matching support
0.2.4 / 2014-09-07
==================
* Support Node.js 0.6
* Support Node.js 0.6

@@ -9,3 +14,3 @@ 0.2.3 / 2014-09-07

* Move repository to jshttp
* Move repository to jshttp

@@ -15,3 +20,3 @@ 0.2.2 / 2014-02-19

* Revert "Fix for blank page on Safari reload"
* Revert "Fix for blank page on Safari reload"

@@ -21,3 +26,3 @@ 0.2.1 / 2014-01-29

* fix: support max-age=0 for end-to-end revalidation
* Fix for blank page on Safari reload

@@ -27,2 +32,11 @@ 0.2.0 / 2013-08-11

* fix: return false for no-cache
* Return stale for `Cache-Control: no-cache`
0.1.0 / 2012-06-15
==================
* Add `If-None-Match: *` support
0.0.1 / 2012-06-10
==================
* Initial release

@@ -43,3 +43,7 @@

// if-none-match
if (noneMatch) etagMatches = ~noneMatch.indexOf(etag) || '*' == noneMatch[0];
if (noneMatch) {
etagMatches = noneMatch.some(function (match) {
return match === '*' || match === etag || match === 'W/' + etag;
});
}

@@ -54,2 +58,2 @@ // if-modified-since

return !! (etagMatches && notModified);
}
}
{
"name": "fresh",
"description": "HTTP response freshness testing",
"version": "0.2.4",
"version": "0.3.0",
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",
"contributors": [
"Douglas Christopher Wilson <doug@somethingdoug.com>",
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
],
"license": "MIT",

@@ -15,5 +19,4 @@ "keywords": [

"devDependencies": {
"istanbul": "0",
"mocha": "1",
"should": "3"
"istanbul": "0.3.9",
"mocha": "1.21.5"
},

@@ -29,6 +32,6 @@ "files": [

"scripts": {
"test": "mocha --reporter spec --require should",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --require should",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter dot --require should"
"test": "mocha --reporter spec --bail --check-leaks test/",
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
}
}

@@ -49,11 +49,11 @@ # fresh

[npm-image]: https://img.shields.io/npm/v/fresh.svg?style=flat
[npm-image]: https://img.shields.io/npm/v/fresh.svg
[npm-url]: https://npmjs.org/package/fresh
[node-version-image]: https://img.shields.io/badge/node.js-%3E%3D_0.6-brightgreen.svg?style=flat
[node-version-image]: https://img.shields.io/node/v/fresh.svg
[node-version-url]: http://nodejs.org/download/
[travis-image]: https://img.shields.io/travis/jshttp/fresh.svg?style=flat
[travis-image]: https://img.shields.io/travis/jshttp/fresh/master.svg
[travis-url]: https://travis-ci.org/jshttp/fresh
[coveralls-image]: https://img.shields.io/coveralls/jshttp/fresh.svg?style=flat
[coveralls-image]: https://img.shields.io/coveralls/jshttp/fresh/master.svg
[coveralls-url]: https://coveralls.io/r/jshttp/fresh?branch=master
[downloads-image]: https://img.shields.io/npm/dm/fresh.svg?style=flat
[downloads-image]: https://img.shields.io/npm/dm/fresh.svg
[downloads-url]: https://npmjs.org/package/fresh
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc