@types/apicache
Advanced tools
Comparing version 1.6.1 to 1.6.2
@@ -7,2 +7,3 @@ // Type definitions for apicache 1.6 | ||
import { RedisClient } from 'redis'; | ||
import * as express from 'express'; | ||
@@ -72,4 +73,6 @@ export const id: number; | ||
redisClient?: RedisClient | undefined; | ||
/** if true, req.path will be used as cache key instead of req.url. Defaults to false */ | ||
jsonp?: boolean | undefined; | ||
/** appendKey takes the req/res objects and returns a custom value to extend the cache key */ | ||
appendKey?: any; | ||
appendKey?: ((req: express.Request, res: express.Response) => string) | Array<(keyof express.Request)> | undefined; | ||
/** list of headers that should never be cached */ | ||
@@ -89,2 +92,7 @@ headerBlacklist?: string[] | undefined; | ||
} | undefined; | ||
/** Event callbacks */ | ||
events?: { | ||
/** Expire callback triggered by redis client is used. Defaults to empty function */ | ||
expire: (err: (Error | null), reply: number) => void | undefined, | ||
} | undefined; | ||
/** | ||
@@ -94,2 +102,6 @@ * enable/disable performance tracking... WARNING: super cool feature, but may cause memory overhead issues | ||
trackPerformance?: boolean | undefined; | ||
/** | ||
* if true, "cache-control: no-cache" header is respected to bypass cache. Defaults to false | ||
*/ | ||
respectCacheControl?: boolean | undefined; | ||
} |
{ | ||
"name": "@types/apicache", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "TypeScript definitions for apicache", | ||
@@ -23,6 +23,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/apicache", | ||
"dependencies": { | ||
"@types/express": "*", | ||
"@types/redis": "^2.8.0" | ||
}, | ||
"typesPublisherContentHash": "2f84a734009e9c324e73ddbce77f87002dfca8e9edcfdeebcba800b8004588c8", | ||
"typeScriptVersion": "3.8" | ||
"typesPublisherContentHash": "854e0834f3e0c3e149198badd957036f4c29d963f3fd7117bb0ca75c5735ea10", | ||
"typeScriptVersion": "4.3" | ||
} |
@@ -11,4 +11,4 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 09 Dec 2021 09:01:21 GMT | ||
* Dependencies: [@types/redis](https://npmjs.com/package/@types/redis) | ||
* Last updated: Thu, 08 Jun 2023 20:32:58 GMT | ||
* Dependencies: [@types/express](https://npmjs.com/package/@types/express), [@types/redis](https://npmjs.com/package/@types/redis) | ||
* Global values: none | ||
@@ -15,0 +15,0 @@ |
6482
91
2
+ Added@types/express@*
+ Added@types/body-parser@1.19.5(transitive)
+ Added@types/connect@3.4.38(transitive)
+ Added@types/express@5.0.0(transitive)
+ Added@types/express-serve-static-core@5.0.5(transitive)
+ Added@types/http-errors@2.0.4(transitive)
+ Added@types/mime@1.3.5(transitive)
+ Added@types/qs@6.9.18(transitive)
+ Added@types/range-parser@1.2.7(transitive)
+ Added@types/send@0.17.4(transitive)
+ Added@types/serve-static@1.15.7(transitive)