@tsed/config 8.16.0-rc.5 → 8.16.1

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@tsed/config",
3
3
  "description": "Configuration management for Ts.ED",
4
4
  "type": "module",
5
- "version": "8.16.0-rc.5",
5
+ "version": "8.16.1",
6
6
  "keywords": [
7
7
  "Ts.ED",
8
8
  "Configuration",
@@ -58,14 +58,16 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "ajv": "^8.17.1",
61
+ "ajv-errors": "3.0.0",
62
+ "ajv-formats": "2.1.1",
61
63
  "change-case": "5.4.4",
62
64
  "tslib": "2.7.0"
63
65
  },
64
66
  "devDependencies": {
65
- "@tsed/barrels": "8.16.0-rc.5",
66
- "@tsed/core": "8.16.0-rc.5",
67
- "@tsed/di": "8.16.0-rc.5",
68
- "@tsed/typescript": "8.16.0-rc.5",
67
+ "@tsed/barrels": "8.16.1",
68
+ "@tsed/core": "8.16.1",
69
+ "@tsed/di": "8.16.1",
70
+ "@tsed/typescript": "8.16.1",
69
71
  "@types/js-yaml": "4.0.9",
70
72
  "dotenv": "^16.5.0",
71
73
  "dotenv-expand": "^12.0.2",
@@ -109,8 +111,5 @@
109
111
  },
110
112
  "homepage": "https://github.com/tsedio/tsed/tree/production/packages/config",
111
113
  "author": "Romain Lenzotti",
112
- "license": "MIT",
113
- "publishConfig": {
114
- "tag": "rc"
115
- }
114
+ "license": "MIT"
116
115
  }
@@ -1,4 +1,6 @@
1
1
  import {Ajv, type ErrorObject} from "ajv";
2
+ import AjvErrors from "ajv-errors";
3
+ import AjvFormats from "ajv-formats";
2
4
 
3
5
  const ajv = new Ajv({
4
6
  verbose: false,
@@ -8,6 +10,12 @@ const ajv = new Ajv({
8
10
  allErrors: true
9
11
  });
10
12
 
13
+ // @ts-ignore
14
+ AjvErrors(ajv);
15
+
16
+ // @ts-ignore
17
+ AjvFormats(ajv as any);
18
+
11
19
  class ValidationError extends Error {
12
20
  private errors: ErrorObject[];
13
21