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

tiny-lru

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-lru - npm Package Compare versions

Comparing version 1.4.8 to 1.4.9

0

bower.json

@@ -0,0 +0,0 @@ {

var path = require("path");
module.exports = require(path.join(__dirname, "lib", Number(process.version.replace("v", "").split(".")[0]) >= 6 ? "tiny-lru.es6" : "tiny-lru"));

8

lib/tiny-lru.es6.js

@@ -8,3 +8,3 @@ /**

* @link https://github.com/avoidwork/tiny-lru
* @version 1.4.8
* @version 1.4.9
*/

@@ -137,5 +137,5 @@ "use strict";

item.next = null;
item.previous = this.first;
item.previous = this.first !== key ? this.first : null;
if (this.last === key) {
if (this.last === key && item.previous !== null) {
this.last = item.previous;

@@ -159,3 +159,3 @@ }

if (this.first) {
if (this.first !== key && this.has(this.first)) {
first = this.cache[this.first];

@@ -162,0 +162,0 @@ first.next = key;

@@ -8,3 +8,3 @@ /**

* @link https://github.com/avoidwork/tiny-lru
* @version 1.4.8
* @version 1.4.9
*/

@@ -163,5 +163,5 @@ "use strict";

item.next = null;
item.previous = this.first;
item.previous = this.first !== key ? this.first : null;
if (this.last === key) {
if (this.last === key && item.previous !== null) {
this.last = item.previous;

@@ -185,3 +185,3 @@ }

if (this.first) {
if (this.first !== key && this.has(this.first)) {
first = this.cache[this.first];

@@ -188,0 +188,0 @@ first.next = key;

{
"name": "tiny-lru",
"description": "Tiny LRU cache for Client or Server",
"version": "1.4.8",
"version": "1.4.9",
"homepage": "https://github.com/avoidwork/tiny-lru",

@@ -6,0 +6,0 @@ "author": "Jason Mulligan <jason.mulligan@avoidwork.com>",

@@ -0,0 +0,0 @@ # Tiny LRU

Sorry, the diff of this file is not supported yet

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