cache-manager
Advanced tools
Comparing version 3.6.2 to 3.6.3
@@ -0,1 +1,4 @@ | ||
- 3.6.3 2022-05-20 | ||
- Remove import from the code in order to be able to bundle and minify the module (#191) - @ricardomozartlino | ||
- 3.6.2 2022-05-19 | ||
@@ -2,0 +5,0 @@ - Use lodash.cloneDeep npm instead of full lodash. (#190). - @ricardomozartlino |
@@ -5,4 +5,8 @@ /** @module cacheManager/caching */ | ||
var utils = require('./utils'); | ||
var memory = require('./stores/memory.js'); | ||
var none = require('./stores/none.js'); | ||
var parseWrapArguments = utils.parseWrapArguments; | ||
var bundledStores = {memory, none}; | ||
/** | ||
@@ -29,3 +33,3 @@ * Generic caching interface that wraps any caching library with a compatible interface. | ||
var storeName = args.store || 'memory'; | ||
self.store = require('./stores/' + storeName + '.js').create(args); | ||
self.store = bundledStores[storeName].create(args); | ||
} | ||
@@ -32,0 +36,0 @@ |
{ | ||
"name": "cache-manager", | ||
"version": "3.6.2", | ||
"version": "3.6.3", | ||
"description": "Cache module for Node.js", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
81074
1630
0
109
2
5
0
21