New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@luolapeikko/cache-types

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@luolapeikko/cache-types - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

17

dist/index.d.ts

@@ -166,2 +166,17 @@ /**

export type { IAsyncCache, ICache };
/**
* Cache events map.
* @version 0.0.3
* @example
* class MyCache extends EventEmitter<CacheEventsMap<string>> {}
*/
type CacheEventsMap<Payload, Key = string> = {
get: [key: Key];
set: [key: Key, payload: Payload, expires: Date | undefined];
delete: [key: Key];
has: [key: Key];
expire: [key: Key, payload: Payload];
clear: [];
};
export type { CacheEventsMap, IAsyncCache, ICache };

2

package.json
{
"name": "@luolapeikko/cache-types",
"version": "0.0.2",
"version": "0.0.3",
"description": "Typescript cache interfaces",

@@ -5,0 +5,0 @@ "type": "module",

Sorry, the diff of this file is not supported yet

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