Skip to content

Commit d38176f

Browse files
author
Bryan Donovan
committed
Merge branch 'release/3.6.3'
2 parents cdf360e + 96a814f commit d38176f

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

History.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
- 3.6.3 2022-05-20
2+
- Remove import from the code in order to be able to bundle and minify the module (#191) - @ricardomozartlino
3+
14
- 3.6.2 2022-05-19
25
- Use lodash.cloneDeep npm instead of full lodash. (#190). - @ricardomozartlino
36

lib/caching.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22
/*jshint maxcomplexity:16*/
33
var CallbackFiller = require('./callback_filler');
44
var utils = require('./utils');
5+
var memory = require('./stores/memory.js');
6+
var none = require('./stores/none.js');
57
var parseWrapArguments = utils.parseWrapArguments;
68

9+
var bundledStores = {memory, none};
10+
711
/**
812
* Generic caching interface that wraps any caching library with a compatible interface.
913
*
@@ -25,7 +29,7 @@ var caching = function(args) {
2529
}
2630
} else {
2731
var storeName = args.store || 'memory';
28-
self.store = require('./stores/' + storeName + '.js').create(args);
32+
self.store = bundledStores[storeName].create(args);
2933
}
3034

3135
// do we handle a cache error the same as a cache miss?

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cache-manager",
3-
"version": "3.6.2",
3+
"version": "3.6.3",
44
"description": "Cache module for Node.js",
55
"main": "index.js",
66
"files": [

0 commit comments

Comments
 (0)