@nestjs/common 10.3.6 → 10.3.8

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.
@@ -35,11 +35,6 @@ const shared_utils_1 = require("../../utils/shared.utils");
35
35
  function Inject(token) {
36
36
  return (target, key, index) => {
37
37
  const type = token || Reflect.getMetadata('design:type', target, key);
38
- if (!type) {
39
- throw new Error(`Token is undefined at index: ${index}. This often occurs due to circular dependencies.
40
- Ensure there are no circular dependencies in your files or barrel files.
41
- For more details, refer to https://trilon.io/blog/avoiding-circular-dependencies-in-nestjs.`);
42
- }
43
38
  if (!(0, shared_utils_1.isUndefined)(index)) {
44
39
  let dependencies = Reflect.getMetadata(constants_1.SELF_DECLARED_DEPS_METADATA, target) || [];
45
40
  dependencies = [...dependencies, { index, param: type }];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestjs/common",
3
- "version": "10.3.6",
3
+ "version": "10.3.8",
4
4
  "description": "Nest - modern, fast, powerful node.js web framework (@common)",
5
5
  "author": "Kamil Mysliwiec",
6
6
  "homepage": "https://nestjs.com",