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

@types/lru-cache

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/lru-cache - npm Package Compare versions

Comparing version 7.4.0 to 7.5.0

31

lru-cache/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for lru-cache 7.4
// Type definitions for lru-cache 7.5
// Project: https://github.com/isaacs/node-lru-cache

@@ -9,3 +9,3 @@ // Definitions by: Bart van der Schoor <https://github.com/Bartvds>

declare class LRUCache<K, V> implements Iterable<[K, V]> {
constructor(options?: LRUCache.Options<K, V>);
constructor(options: LRUCache.Options<K, V>);

@@ -104,3 +104,4 @@ /**

/**
* Return a generator yielding the keys in the cache.
* Return a generator yielding the keys in the cache,
* in order from most recently used to least recently used.
*/

@@ -110,11 +111,31 @@ keys(): Generator<K>;

/**
* Return a generator yielding [key, value] pairs.
* Return a generator yielding the keys in the cache,
* in order from least recently used to most recently used.
*/
rkeys(): Generator<K>;
/**
* Return a generator yielding the values in the cache,
* in order from most recently used to least recently used.
*/
values(): Generator<V>;
/**
* Return an array of the entries in the cache.
* Return a generator yielding the values in the cache,
* in order from least recently used to most recently used.
*/
rvalues(): Generator<V>;
/**
* Return a generator yielding `[key, value]` pairs,
* in order from most recently used to least recently used.
*/
entries(): Generator<[K, V]>;
/**
* Return a generator yielding `[key, value]` pairs,
* in order from least recently used to most recently used.
*/
rentries(): Generator<[K, V]>;
[Symbol.iterator](): Iterator<[K, V]>;

@@ -121,0 +142,0 @@

6

lru-cache/package.json
{
"name": "@types/lru-cache",
"version": "7.4.0",
"version": "7.5.0",
"description": "TypeScript definitions for lru-cache",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lru-cache",

"dependencies": {},
"typesPublisherContentHash": "8d213ce8de5a5b4ef35693ff4826d605e1cd328af7fc776964a345d3c5898edc",
"typeScriptVersion": "3.8"
"typesPublisherContentHash": "fa37136c1ffa5c8ed262e0ddd15faf5f262606e7d3b1f9a7920d32f9c0ba15e9",
"typeScriptVersion": "3.9"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Wed, 23 Feb 2022 18:31:55 GMT
* Last updated: Thu, 17 Mar 2022 20:31:47 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: none

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