Comparing version 4.0.0 to 4.0.1
@@ -33,2 +33,3 @@ 'use strict'; | ||
const value = this.oldCache.get(key); | ||
this.oldCache.delete(key); | ||
this._set(key, value); | ||
@@ -35,0 +36,0 @@ return value; |
{ | ||
"name": "quick-lru", | ||
"version": "4.0.0", | ||
"version": "4.0.1", | ||
"description": "Simple \"Least Recently Used\" (LRU) cache", | ||
@@ -38,3 +38,3 @@ "license": "MIT", | ||
"coveralls": "^3.0.3", | ||
"nyc": "^13.3.0", | ||
"nyc": "^14.1.1", | ||
"tsd": "^0.7.2", | ||
@@ -41,0 +41,0 @@ "xo": "^0.24.0" |
@@ -36,3 +36,3 @@ # quick-lru [![Build Status](https://travis-ci.org/sindresorhus/quick-lru.svg?branch=master)](https://travis-ci.org/sindresorhus/quick-lru) [![Coverage Status](https://coveralls.io/repos/github/sindresorhus/quick-lru/badge.svg?branch=master)](https://coveralls.io/github/sindresorhus/quick-lru?branch=master) | ||
### new QuickLRU([options]) | ||
### new QuickLRU(options?) | ||
@@ -43,3 +43,3 @@ Returns a new instance. | ||
Type: `Object` | ||
Type: `object` | ||
@@ -96,6 +96,1 @@ #### maxSize | ||
The stored item count. | ||
## License | ||
MIT © [Sindre Sorhus](https://sindresorhus.com) |
162
7469
94