5etools-utils 0.1.22 → 0.1.23

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.
Files changed (2) hide show
  1. package/lib/TestJson.js +2 -0
  2. package/package.json +3 -2
package/lib/TestJson.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import * as path from "path";
2
2
 
3
3
  import Ajv from "ajv";
4
+ import addFormats from "ajv-formats"
4
5
  import * as jsonSourceMap from "json-source-map";
5
6
 
6
7
  import * as uf from "./UtilFs.js";
@@ -29,6 +30,7 @@ class JsonTester {
29
30
  this._ajv = new Ajv({
30
31
  allowUnionTypes: true,
31
32
  });
33
+ addFormats(this._ajv);
32
34
 
33
35
  this._ajv.addKeyword({
34
36
  keyword: "version",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "5etools-utils",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "Shared utilities for the 5etools ecosystem.",
5
5
  "type": "module",
6
6
  "main": "lib/Api.js",
@@ -27,7 +27,8 @@
27
27
  "homepage": "https://github.com/TheGiddyLimit/5etools-utils#readme",
28
28
  "dependencies": {
29
29
  "ajv": "^8.11.0",
30
- "json-source-map": "^0.6.1"
30
+ "json-source-map": "^0.6.1",
31
+ "ajv-formats": "^2.1.1"
31
32
  },
32
33
  "devDependencies": {
33
34
  "eslint": "^8.11.0"