@nestjs/core 10.0.3 → 10.0.5

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.
@@ -2,6 +2,7 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.InterceptorsConsumer = void 0;
4
4
  const shared_utils_1 = require("@nestjs/common/utils/shared.utils");
5
+ const async_hooks_1 = require("async_hooks");
5
6
  const rxjs_1 = require("rxjs");
6
7
  const operators_1 = require("rxjs/operators");
7
8
  const execution_context_host_1 = require("../helpers/execution-context-host");
@@ -14,7 +15,7 @@ class InterceptorsConsumer {
14
15
  context.setType(type);
15
16
  const nextFn = async (i = 0) => {
16
17
  if (i >= interceptors.length) {
17
- return this.transformDeferred(next);
18
+ return (0, rxjs_1.defer)(async_hooks_1.AsyncResource.bind(() => this.transformDeferred(next)));
18
19
  }
19
20
  const handler = {
20
21
  handle: () => (0, rxjs_1.from)(nextFn(i + 1)).pipe((0, operators_1.mergeAll)()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/core",
3
- "version": "10.0.3",
3
+ "version": "10.0.5",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@core)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -32,11 +32,11 @@
32
32
  "fast-safe-stringify": "2.1.1",
33
33
  "iterare": "1.2.1",
34
34
  "path-to-regexp": "3.2.0",
35
- "tslib": "2.5.3",
35
+ "tslib": "2.6.0",
36
36
  "uid": "2.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@nestjs/common": "10.0.3"
39
+ "@nestjs/common": "10.0.5"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@nestjs/common": "^10.0.0",