@tsofist/schema-forge 3.3.1 → 3.3.2
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.
|
@@ -12,7 +12,7 @@ function dereferenceSchema(raw, options = {}) {
|
|
|
12
12
|
const seen = new WeakMap();
|
|
13
13
|
const { throwOnDereferenceFailure = true, onDereferenceFailure } = options;
|
|
14
14
|
function resolve(current, path) {
|
|
15
|
-
if (current
|
|
15
|
+
if (current == undefined || typeof current !== 'object')
|
|
16
16
|
return current;
|
|
17
17
|
// Circular
|
|
18
18
|
if (seen.has(current))
|