🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

cacheability

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cacheability - npm Package Compare versions

Comparing version

to
0.0.59

7

lib/main/cacheability/index.d.ts

@@ -6,3 +6,5 @@ import { CacheControl, CacheHeaders, Metadata } from "../types";

* A utility class to parse, store and print http cache headers.
*
* ```typescript
* import { Cacheability } from "cacheability";
* const cacheability = new Cacheability();

@@ -28,2 +30,3 @@ * ```

* instance is still valid, by comparing it to the current timestamp.
*
* ```typescript

@@ -38,2 +41,3 @@ * cacheability.parseCacheControl("public, max-age=3");

* ```
*
*/

@@ -47,2 +51,3 @@ checkTTL(): boolean;

* cacheability instance's metadata property.
*
* ```typescript

@@ -66,2 +71,3 @@ * const {

* The data is stored on the cacheability instance's metadata property.
*
* ```typescript

@@ -85,2 +91,3 @@ * const headers = new Headers({

* are derived from the TTL stored in the metadata.
*
* ```typescript

@@ -87,0 +94,0 @@ * cacheability.parseCacheControl("public, max-age=60, s-maxage=60");

2

package.json
{
"name": "cacheability",
"version": "0.0.57",
"version": "0.0.59",
"description": "A utility class to parse, store and print http cache headers.",

@@ -5,0 +5,0 @@ "author": "Dylan Aubrey <dylanaubrey@gmail.com>",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet