@hyperjump/json-schema 1.9.0 → 1.9.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.
Files changed (2) hide show
  1. package/lib/output.js +3 -3
  2. package/package.json +1 -1
package/lib/output.js CHANGED
@@ -1,4 +1,4 @@
1
- import { allNodes } from "./instance.js";
1
+ import * as Instance from "./instance.js";
2
2
 
3
3
 
4
4
  const outputFormats = {};
@@ -23,13 +23,13 @@ outputFormats.BASIC = (instance) => {
23
23
  if (!instance.valid) {
24
24
  output.errors = [];
25
25
 
26
- for (const child of allNodes(instance)) {
26
+ for (const child of Instance.allNodes(instance)) {
27
27
  for (const [absoluteKeywordLocation, keyword] of Object.entries(child.errors).reverse()) {
28
28
  if (!child.valid) {
29
29
  output.errors.unshift({
30
30
  keyword,
31
31
  absoluteKeywordLocation,
32
- instanceLocation: child.uri(),
32
+ instanceLocation: Instance.uri(child),
33
33
  valid: child.valid
34
34
  });
35
35
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperjump/json-schema",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "A JSON Schema validator with support for custom keywords, vocabularies, and dialects",
5
5
  "type": "module",
6
6
  "main": "./stable/index.js",