@nestjs/common 9.3.2 → 9.3.4
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
CHANGED
|
@@ -11,7 +11,6 @@
|
|
|
11
11
|
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/l/@nestjs/core.svg" alt="Package License" /></a>
|
|
12
12
|
<a href="https://www.npmjs.com/~nestjscore" target="_blank"><img src="https://img.shields.io/npm/dm/@nestjs/common.svg" alt="NPM Downloads" /></a>
|
|
13
13
|
<a href="https://circleci.com/gh/nestjs/nest" target="_blank"><img src="https://img.shields.io/circleci/build/github/nestjs/nest/master" alt="CircleCI" /></a>
|
|
14
|
-
<a href="https://coveralls.io/github/nestjs/nest?branch=master" target="_blank"><img src="https://coveralls.io/repos/github/nestjs/nest/badge.svg?branch=master#9" alt="Coverage" /></a>
|
|
15
14
|
<a href="https://discord.gg/G7Qnnhy" target="_blank"><img src="https://img.shields.io/badge/discord-online-brightgreen.svg" alt="Discord"/></a>
|
|
16
15
|
<a href="https://opencollective.com/nest#backer" target="_blank"><img src="https://opencollective.com/nest/backers/badge.svg" alt="Backers on Open Collective" /></a>
|
|
17
16
|
<a href="https://opencollective.com/nest#sponsor" target="_blank"><img src="https://opencollective.com/nest/sponsors/badge.svg" alt="Sponsors on Open Collective" /></a>
|
|
@@ -5,6 +5,7 @@ const tslib_1 = require("tslib");
|
|
|
5
5
|
const rxjs_1 = require("rxjs");
|
|
6
6
|
const operators_1 = require("rxjs/operators");
|
|
7
7
|
const decorators_1 = require("../../decorators");
|
|
8
|
+
const file_stream_1 = require("../../file-stream");
|
|
8
9
|
const logger_service_1 = require("../../services/logger.service");
|
|
9
10
|
const shared_utils_1 = require("../../utils/shared.utils");
|
|
10
11
|
const cache_constants_1 = require("../cache.constants");
|
|
@@ -37,6 +38,9 @@ let CacheInterceptor = class CacheInterceptor {
|
|
|
37
38
|
? await ttlValueOrFactory(context)
|
|
38
39
|
: ttlValueOrFactory;
|
|
39
40
|
return next.handle().pipe((0, operators_1.tap)(async (response) => {
|
|
41
|
+
if (response instanceof file_stream_1.StreamableFile) {
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
40
44
|
const args = (0, shared_utils_1.isNil)(ttl) ? [key, response] : [key, response, { ttl }];
|
|
41
45
|
try {
|
|
42
46
|
await this.cacheManager.set(...args);
|