5etools-utils 0.1.23 → 0.1.24
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/lib/TestJson.js +2 -2
- package/package.json +2 -2
package/lib/TestJson.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as path from "path";
|
|
2
2
|
|
|
3
|
-
import
|
|
3
|
+
import Ajv2020 from "ajv/dist/2020.js";
|
|
4
4
|
import addFormats from "ajv-formats"
|
|
5
5
|
import * as jsonSourceMap from "json-source-map";
|
|
6
6
|
|
|
@@ -27,7 +27,7 @@ class JsonTester {
|
|
|
27
27
|
this._fnGetSchemaId = fnGetSchemaId;
|
|
28
28
|
|
|
29
29
|
// region Set up validator
|
|
30
|
-
this._ajv = new
|
|
30
|
+
this._ajv = new Ajv2020({
|
|
31
31
|
allowUnionTypes: true,
|
|
32
32
|
});
|
|
33
33
|
addFormats(this._ajv);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "5etools-utils",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.24",
|
|
4
4
|
"description": "Shared utilities for the 5etools ecosystem.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/Api.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"homepage": "https://github.com/TheGiddyLimit/5etools-utils#readme",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"ajv": "^8.11.
|
|
29
|
+
"ajv": "^8.11.2",
|
|
30
30
|
"json-source-map": "^0.6.1",
|
|
31
31
|
"ajv-formats": "^2.1.1"
|
|
32
32
|
},
|