New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

immutable-cache

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

immutable-cache - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+1
-1
package.json
{
"name": "immutable-cache",
"version": "1.0.1",
"version": "1.0.2",
"description": "Immutable.js enabled caching",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -15,3 +15,3 @@ import Immutable from 'immutable';

const SHRINK_RATIO = 0.25;
const SHRINK_THRESCHOLD = 1;
const SHRINK_THRESHOLD = 1;

@@ -82,3 +82,3 @@

if (state.size >= this._props.maxSize * SHRINK_THRESCHOLD) {
if (state.get('map').size >= this._props.maxSize * SHRINK_THRESHOLD) {
newState = removeOldKeys(state);

@@ -85,0 +85,0 @@ }

@@ -67,3 +67,3 @@ import {expect} from 'chai';

let cache = new Cache({
maxSize: 1
maxSize: 2
});

@@ -73,7 +73,9 @@

cache = cache.set('keep', 'value 2');
cache = cache.set('also', 'value 3');
expect(cache.has('discard')).to.equal(false);
expect(cache.has('keep')).to.equal(true);
expect(cache.has('also')).to.equal(true);
});
});

Sorry, the diff of this file is not supported yet