New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cacheable-response

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cacheable-response - npm Package Compare versions

Comparing version

to
1.7.2

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

### [1.7.2](https://github.com/Kikobeats/cacheable-response/compare/v1.7.1...v1.7.2) (2019-09-11)
### [1.7.1](https://github.com/Kikobeats/cacheable-response/compare/v1.7.0...v1.7.1) (2019-09-11)

@@ -7,0 +9,0 @@

5

index.js

@@ -66,3 +66,3 @@ 'use strict'

send,
revalidate = ttl => ttl / 24,
revalidate = ttl => ttl * 0.8,
ttl: defaultTtl = 7200000,

@@ -75,4 +75,3 @@ ...compressOpts

const setHeaders = createSetHeaders({
revalidate:
typeof revalidate === 'function' ? revalidate : () => revalidate
revalidate: typeof revalidate === 'function' ? revalidate : () => revalidate
})

@@ -79,0 +78,0 @@

@@ -5,3 +5,3 @@ {

"homepage": "https://nicedoc.io/Kikobeats/cacheable-response",
"version": "1.7.1",
"version": "1.7.2",
"main": "index.js",

@@ -14,3 +14,6 @@ "author": {

"contributors": [
"whooehoo <whooehoo@yandex.ru>"
{
"name": "whooehoo",
"email": "whooehoo@yandex.ru"
}
],

@@ -17,0 +20,0 @@ "repository": {