cache-manager 3.5.0 → 3.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/History.md CHANGED
@@ -1,3 +1,12 @@
1
+ - 3.6.2 2022-05-19
2
+ - Use lodash.cloneDeep npm instead of full lodash. (#190). - @ricardomozartlino
3
+
4
+ - 3.6.1 2022-04-07
5
+ - Fix for potential prototype polution exploit in async < 3.2.2 (#186). - @tmbobbins
6
+
7
+ - 3.6.0 2021-11-12
8
+ - Added keyCount() method to memory store (#173). - @css-master
9
+
1
10
  - 3.5.0 2021-11-11
2
11
  - Added dump() and load() methods to memory store (#171). - @jeoy
3
12
 
package/README.md CHANGED
@@ -49,6 +49,8 @@ See the [Express.js cache-manager example app](https://github.com/BryanDonovan/n
49
49
 
50
50
  * [node-cache-manager-memory-store](https://github.com/theogravity/node-cache-manager-memory-store)
51
51
 
52
+ * [node-cache-manager-couchbase](https://github.com/davidepellegatta/node-cache-manager-couchbase)
53
+
52
54
  ## Overview
53
55
 
54
56
  **First**, it includes a `wrap` function that lets you wrap any function in cache.
@@ -1,6 +1,6 @@
1
1
  /*eslint no-unused-vars:0*/
2
2
  var Lru = require("lru-cache");
3
- var cloneDeep = require('lodash/cloneDeep');
3
+ var cloneDeep = require('lodash.clonedeep');
4
4
  var utils = require('../utils');
5
5
  var isObject = utils.isObject;
6
6
 
@@ -186,6 +186,13 @@ var memoryStore = function(args) {
186
186
  }
187
187
  };
188
188
 
189
+ /**
190
+ * This method is not available in the caching modules.
191
+ */
192
+ self.keyCount = function() {
193
+ return lruCache.length;
194
+ };
195
+
189
196
  /**
190
197
  * This method is not available in the caching modules.
191
198
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cache-manager",
3
- "version": "3.5.0",
3
+ "version": "3.6.2",
4
4
  "description": "Cache module for Node.js",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -25,8 +25,8 @@
25
25
  "author": "Bryan Donovan",
26
26
  "license": "MIT",
27
27
  "dependencies": {
28
- "async": "3.2.0",
29
- "lodash": "^4.17.21",
28
+ "async": "3.2.3",
29
+ "lodash.clonedeep": "^4.5.0",
30
30
  "lru-cache": "6.0.0"
31
31
  },
32
32
  "devDependencies": {
@@ -39,4 +39,4 @@
39
39
  "optimist": "0.6.1",
40
40
  "sinon": "9.0.3"
41
41
  }
42
- }
42
+ }