@mondart/nestjs-common-module 1.1.9 → 1.1.10

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,5 +2,7 @@ export declare class EnvValidator {
2
2
  private readonly envSchemaClass;
3
3
  private readonly extendedClasses;
4
4
  constructor(envSchemaClass: any, extendedClasses: any[]);
5
- validate(configuration: Record<string, unknown>): object;
5
+ validate(configuration: Record<string, unknown>): {
6
+ [x: string]: unknown;
7
+ };
6
8
  }
@@ -23,7 +23,10 @@ class EnvValidator {
23
23
  if (errors.length > 0) {
24
24
  throw new Error(errors.toString());
25
25
  }
26
- return finalConfig;
26
+ return {
27
+ ...configuration,
28
+ ...finalConfig,
29
+ };
27
30
  }
28
31
  }
29
32
  exports.EnvValidator = EnvValidator;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondart/nestjs-common-module",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "description": "",
5
5
  "author": {
6
6
  "name": "Mondart"