File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
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
+
1
4
- 3.6.2 2022-05-19
2
5
- Use lodash.cloneDeep npm instead of full lodash. (#190 ). - @ricardomozartlino
3
6
Original file line number Diff line number Diff line change 2
2
/*jshint maxcomplexity:16*/
3
3
var CallbackFiller = require ( './callback_filler' ) ;
4
4
var utils = require ( './utils' ) ;
5
+ var memory = require ( './stores/memory.js' ) ;
6
+ var none = require ( './stores/none.js' ) ;
5
7
var parseWrapArguments = utils . parseWrapArguments ;
6
8
9
+ var bundledStores = { memory, none} ;
10
+
7
11
/**
8
12
* Generic caching interface that wraps any caching library with a compatible interface.
9
13
*
@@ -25,7 +29,7 @@ var caching = function(args) {
25
29
}
26
30
} else {
27
31
var storeName = args . store || 'memory' ;
28
- self . store = require ( './stores/' + storeName + '.js' ) . create ( args ) ;
32
+ self . store = bundledStores [ storeName ] . create ( args ) ;
29
33
}
30
34
31
35
// do we handle a cache error the same as a cache miss?
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " cache-manager" ,
3
- "version" : " 3.6.2 " ,
3
+ "version" : " 3.6.3 " ,
4
4
"description" : " Cache module for Node.js" ,
5
5
"main" : " index.js" ,
6
6
"files" : [
You can’t perform that action at this time.
0 commit comments