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

@types/apicache

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/apicache - npm Package Compare versions

Comparing version 1.6.1 to 1.6.2

14

apicache/index.d.ts

@@ -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;
}

7

apicache/package.json
{
"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 @@

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