@rsdk/nest-tools 2.4.1 → 2.4.2

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/CHANGELOG.md CHANGED
@@ -3,6 +3,16 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.4.2](https://github.com/R-Vision/rsdk/compare/v2.4.2-next.0...v2.4.2) (2023-06-16)
7
+
8
+ **Note:** Version bump only for package @rsdk/nest-tools
9
+
10
+ ## [2.4.2-next.0](https://github.com/R-Vision/rsdk/compare/v2.4.1...v2.4.2-next.0) (2023-06-15)
11
+
12
+ ### Bug Fixes
13
+
14
+ * **eslint-plugin:** normalize tsconfig.lint.json ([25d77cd](https://github.com/R-Vision/rsdk/commit/25d77cd69206fa6e1c79ba6ae27ee89276b0cfa2))
15
+
6
16
  ## [2.4.1](https://github.com/R-Vision/rsdk/compare/v2.4.1-next.2...v2.4.1) (2023-06-15)
7
17
 
8
18
  **Note:** Version bump only for package @rsdk/nest-tools
@@ -13,38 +13,47 @@ class NestDefinition {
13
13
  this.definition = definition;
14
14
  }
15
15
  getProviders() {
16
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
16
17
  return scanner_1.DependenciesScanner.prototype.isDynamicModule(this.definition)
17
18
  ? [
19
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
18
20
  ...this.reflectMetadata(constants_1.MODULE_METADATA.PROVIDERS, this.definition.module),
19
21
  ...(this.definition.providers || []),
20
22
  ]
21
23
  : this.reflectMetadata(constants_1.MODULE_METADATA.PROVIDERS, this.definition);
22
24
  }
23
25
  getImports() {
26
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
24
27
  return scanner_1.DependenciesScanner.prototype.isDynamicModule(this.definition)
25
28
  ? [
29
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
26
30
  ...this.reflectMetadata(constants_1.MODULE_METADATA.IMPORTS, this.definition.module),
27
31
  ...(this.definition.imports || []),
28
32
  ]
29
33
  : this.reflectMetadata(constants_1.MODULE_METADATA.IMPORTS, this.definition);
30
34
  }
31
35
  getControllers() {
36
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
32
37
  return scanner_1.DependenciesScanner.prototype.isDynamicModule(this.definition)
33
38
  ? [
39
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
34
40
  ...this.reflectMetadata(constants_1.MODULE_METADATA.CONTROLLERS, this.definition.module),
35
41
  ...(this.definition.controllers || []),
36
42
  ]
37
43
  : this.reflectMetadata(constants_1.MODULE_METADATA.CONTROLLERS, this.definition);
38
44
  }
39
45
  getExports() {
46
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
40
47
  return scanner_1.DependenciesScanner.prototype.isDynamicModule(this.definition)
41
48
  ? [
49
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
42
50
  ...this.reflectMetadata(constants_1.MODULE_METADATA.EXPORTS, this.definition.module),
43
51
  ...(this.definition.exports || []),
44
52
  ]
45
53
  : this.reflectMetadata(constants_1.MODULE_METADATA.EXPORTS, this.definition);
46
54
  }
47
55
  reflectMetadata(metadataKey, metatype) {
56
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
48
57
  return Reflect.getMetadata(metadataKey, metatype) || [];
49
58
  }
50
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rsdk/nest-tools",
3
- "version": "2.4.1",
3
+ "version": "2.4.2",
4
4
  "license": "Apache License 2.0",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -10,5 +10,5 @@
10
10
  "@nestjs/common": "^9.0.0",
11
11
  "@nestjs/core": "^9.0.0"
12
12
  },
13
- "gitHead": "24a561e769380f4f9fe54a4cb21daeb422156f19"
13
+ "gitHead": "eda467ff4659536e05ed1baea445e5a6a30c056e"
14
14
  }
@@ -12,8 +12,10 @@ export class NestDefinition {
12
12
  constructor(private definition: NestModuleDefinition) {}
13
13
 
14
14
  getProviders(): Provider[] | undefined {
15
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
15
16
  return DependenciesScanner.prototype.isDynamicModule(this.definition)
16
17
  ? [
18
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
17
19
  ...this.reflectMetadata(
18
20
  MODULE_METADATA.PROVIDERS,
19
21
  this.definition.module,
@@ -24,8 +26,10 @@ export class NestDefinition {
24
26
  }
25
27
 
26
28
  getImports(): NestModuleDefinition[] | undefined {
29
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
27
30
  return DependenciesScanner.prototype.isDynamicModule(this.definition)
28
31
  ? [
32
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
29
33
  ...this.reflectMetadata(
30
34
  MODULE_METADATA.IMPORTS,
31
35
  this.definition.module,
@@ -36,8 +40,10 @@ export class NestDefinition {
36
40
  }
37
41
 
38
42
  getControllers(): Type[] | undefined {
43
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
39
44
  return DependenciesScanner.prototype.isDynamicModule(this.definition)
40
45
  ? [
46
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
41
47
  ...this.reflectMetadata(
42
48
  MODULE_METADATA.CONTROLLERS,
43
49
  this.definition.module,
@@ -48,8 +54,10 @@ export class NestDefinition {
48
54
  }
49
55
 
50
56
  getExports(): Type[] | undefined {
57
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
51
58
  return DependenciesScanner.prototype.isDynamicModule(this.definition)
52
59
  ? [
60
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
53
61
  ...this.reflectMetadata(
54
62
  MODULE_METADATA.EXPORTS,
55
63
  this.definition.module,
@@ -60,6 +68,7 @@ export class NestDefinition {
60
68
  }
61
69
 
62
70
  private reflectMetadata<T = any>(metadataKey: string, metatype: Type): T[] {
71
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-return
63
72
  return Reflect.getMetadata(metadataKey, metatype) || [];
64
73
  }
65
74
  }