@hyperjump/json-schema 1.6.3 → 1.6.5

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.
@@ -47,7 +47,6 @@ defineVocabulary("https://json-schema.org/draft/2019-09/vocab/applicator", {
47
47
  "not": "https://json-schema.org/keyword/not",
48
48
  "oneOf": "https://json-schema.org/keyword/oneOf",
49
49
  "patternProperties": "https://json-schema.org/keyword/patternProperties",
50
- "prefixItems": "https://json-schema.org/keyword/prefixItems",
51
50
  "properties": "https://json-schema.org/keyword/properties",
52
51
  "propertyNames": "https://json-schema.org/keyword/propertyNames",
53
52
  "unevaluatedItems": "https://json-schema.org/keyword/unevaluatedItems",
package/lib/instance.js CHANGED
@@ -2,7 +2,6 @@ import { append as pointerAppend, get as pointerGet } from "@hyperjump/json-poin
2
2
  import { toAbsoluteIri } from "@hyperjump/uri";
3
3
  import curry from "just-curry-it";
4
4
  import { jsonTypeOf } from "./common.js";
5
- import * as Reference from "./reference.js";
6
5
 
7
6
 
8
7
  export const nil = { id: undefined, pointer: "", instance: undefined, value: undefined };
@@ -27,7 +26,7 @@ export const get = (url, instance = nil) => {
27
26
  };
28
27
 
29
28
  export const uri = (doc) => `${doc.id || ""}#${encodeURI(doc.pointer)}`;
30
- export const value = (doc) => Reference.isReference(doc.value) ? Reference.value(doc.value) : doc.value;
29
+ export const value = (doc) => doc.value;
31
30
  export const has = (key, doc) => key in value(doc);
32
31
  export const typeOf = curry((doc, type) => jsonTypeOf(value(doc), type));
33
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperjump/json-schema",
3
- "version": "1.6.3",
3
+ "version": "1.6.5",
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",