vovk-ajv 0.0.0-draft.65 → 0.0.0-draft.66

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/index.js +1 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -11,6 +11,7 @@ const ajv_i18n_1 = __importDefault(require("ajv-i18n"));
11
11
  const ajv_errors_1 = __importDefault(require("ajv-errors"));
12
12
  const vovk_1 = require("vovk");
13
13
  const createAjv = (options, target) => {
14
+ // TODO auto-detect by https://json-schema.org/draft-07/schema, https://json-schema.org/draft/2020-12/schema
14
15
  const AjvClass = target === 'draft-2020-12' ? _2020_1.default : ajv_1.Ajv;
15
16
  const ajv = new AjvClass({ allErrors: true, ...options });
16
17
  (0, ajv_formats_1.default)(ajv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vovk-ajv",
3
- "version": "0.0.0-draft.65",
3
+ "version": "0.0.0-draft.66",
4
4
  "description": "Local validation for JSON schemas for vovk-zod and other validation libraries for Vovk.ts",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -33,6 +33,6 @@
33
33
  "ajv-i18n": "^4.2.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "vovk": "^3.0.0-draft.240"
36
+ "vovk": "^3.0.0-draft.241"
37
37
  }
38
38
  }