@tusbar/cache-control
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -103,7 +103,7 @@ const HEADER_REGEXP = /([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?/g | ||
if (this.maxAge) { | ||
if (typeof this.maxAge === 'number') { | ||
tokens.push(`${STRINGS.maxAge}=${this.maxAge}`) | ||
} | ||
if (this.sharedMaxAge) { | ||
if (typeof this.sharedMaxAge === 'number') { | ||
tokens.push(`${STRINGS.sharedMaxAge}=${this.sharedMaxAge}`) | ||
@@ -113,3 +113,3 @@ } | ||
if (this.maxStale) { | ||
if (this.maxStaleDuration) { | ||
if (typeof this.maxStaleDuration === 'number') { | ||
tokens.push(`${STRINGS.maxStale}=${this.maxStaleDuration}`) | ||
@@ -121,3 +121,3 @@ } else { | ||
if (this.minFresh) { | ||
if (typeof this.minFresh === 'number') { | ||
tokens.push(`${STRINGS.minFresh}=${this.minFresh}`) | ||
@@ -124,0 +124,0 @@ } |
{ | ||
"name": "@tusbar/cache-control", | ||
"public": true, | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Format and parse HTTP Cache-Control header", | ||
@@ -22,7 +22,7 @@ "main": "index.js", | ||
"devDependencies": { | ||
"ava": "^1.0.1", | ||
"ava": "^3.2.0", | ||
"codecov": "^3.0.0", | ||
"lerna-changelog": "0.8.2", | ||
"nyc": "^13.1.0", | ||
"xo": "^0.24.0" | ||
"lerna-changelog": "1.0.0", | ||
"nyc": "^15.0.0", | ||
"xo": "^0.25.3" | ||
}, | ||
@@ -29,0 +29,0 @@ "nyc": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8819