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

@tusbar/cache-control

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tusbar/cache-control - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

8

index.js

@@ -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": {

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