@nestjs/common 9.2.0 → 9.2.1
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/Readme.md +3 -1
- package/cache/cache.providers.js +7 -2
- package/package.json +1 -1
- package/tsconfig.build.json +10 -0
package/Readme.md
CHANGED
|
@@ -78,7 +78,9 @@ Nest is an MIT-licensed open source project. It can grow thanks to the sponsors
|
|
|
78
78
|
<td>
|
|
79
79
|
<a href="https://jetbrains.com/" target="_blank"><img src="https://nestjs.com/img/jetbrains-logo.svg" width="110" valign="middle" /></a></td><td>
|
|
80
80
|
<a href="https://snyk.co/nestjs" target="_blank"><img src="https://nestjs.com/img/snyk-logo-black.png" width="185" valign="middle" /></a></td><td>
|
|
81
|
-
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td
|
|
81
|
+
<a href="https://fuseautotech.com/" target="_blank"><img src="https://nestjs.com/img/fuse-logo.svg" width="105" valign="middle" /></a></td>
|
|
82
|
+
<td>
|
|
83
|
+
<a href="https://ridicorp.com/career/" target="_blank"><img src="https://nestjs.com/img/ridi-logo.svg" width="105" valign="middle" /></a></td></</tr></table>
|
|
82
84
|
|
|
83
85
|
#### Silver Sponsors
|
|
84
86
|
|
package/cache/cache.providers.js
CHANGED
|
@@ -22,8 +22,13 @@ function createCacheManager() {
|
|
|
22
22
|
}
|
|
23
23
|
let cache = 'memory';
|
|
24
24
|
default_options_1.defaultCacheOptions.ttl *= 1000;
|
|
25
|
-
if (typeof store === 'object'
|
|
26
|
-
|
|
25
|
+
if (typeof store === 'object') {
|
|
26
|
+
if ('create' in store) {
|
|
27
|
+
cache = store.create;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
cache = store;
|
|
31
|
+
}
|
|
27
32
|
}
|
|
28
33
|
else if (typeof store === 'function') {
|
|
29
34
|
cache = store;
|
package/package.json
CHANGED