@tusbar/cache-control
Advanced tools
Comparing version 0.1.1 to 0.2.0
@@ -56,2 +56,6 @@ const HEADER_REGEXP = /([a-zA-Z][a-zA-Z_-]*)\s*(?:=(?:"([^"]*)"|([^ \t",;]*)))?/g | ||
parse(header) { | ||
if (!header || header.length === 0) { | ||
return this | ||
} | ||
const values = {} | ||
@@ -58,0 +62,0 @@ const matches = header.match(HEADER_REGEXP) || [] |
{ | ||
"name": "@tusbar/cache-control", | ||
"public": true, | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Format and parse HTTP Cache-Control header", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "xo" | ||
"test": "nyc ava" | ||
}, | ||
@@ -14,4 +14,13 @@ "repository": "https://github.com/tusbar/cache-control", | ||
"devDependencies": { | ||
"ava": "^0.24.0", | ||
"codecov": "^3.0.0", | ||
"nyc": "^11.4.1", | ||
"xo": "^0.18.2" | ||
}, | ||
"nyc": { | ||
"reporter": [ | ||
"lcov", | ||
"text" | ||
] | ||
}, | ||
"xo": { | ||
@@ -18,0 +27,0 @@ "semicolon": false, |
@@ -1,5 +0,6 @@ | ||
# cache-control | ||
# cache-control [![CircleCI](https://circleci.com/gh/tusbar/cache-control.svg?style=svg)](https://circleci.com/gh/tusbar/cache-control) | ||
[![npm version](https://img.shields.io/npm/v/@tusbar/cache-control.svg)](https://www.npmjs.com/package/@tusbar/cache-control) | ||
[![dependencies Status](https://david-dm.org/tusbar/cachecontrol/status.svg)](https://david-dm.org/tusbar/cachecontrol) | ||
[![codecov](https://codecov.io/gh/tusbar/cache-control/branch/master/graph/badge.svg)](https://codecov.io/gh/tusbar/cache-control) | ||
[![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/sindresorhus/xo) | ||
@@ -6,0 +7,0 @@ |
Sorry, the diff of this file is not supported yet
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
151477
7
305
74
4