@nestjs/core 10.3.5 → 10.3.7

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.
@@ -44,12 +44,12 @@ class ContextUtils {
44
44
  : () => null;
45
45
  }
46
46
  getContextFactory(contextType, instance, callback) {
47
- const contextFactory = (args) => {
48
- const ctx = new execution_context_host_1.ExecutionContextHost(args, instance && instance.constructor, callback);
47
+ const type = instance && instance.constructor;
48
+ return (args) => {
49
+ const ctx = new execution_context_host_1.ExecutionContextHost(args, type, callback);
49
50
  ctx.setType(contextType);
50
51
  return ctx;
51
52
  };
52
- return contextFactory;
53
53
  }
54
54
  }
55
55
  exports.ContextUtils = ContextUtils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/core",
3
- "version": "10.3.5",
3
+ "version": "10.3.7",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@core)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "license": "MIT",
@@ -36,7 +36,7 @@
36
36
  "uid": "2.0.2"
37
37
  },
38
38
  "devDependencies": {
39
- "@nestjs/common": "10.3.5"
39
+ "@nestjs/common": "10.3.7"
40
40
  },
41
41
  "peerDependencies": {
42
42
  "@nestjs/common": "^10.0.0",