@apidevtools/json-schema-ref-parser 11.7.1 → 11.7.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.
@@ -140,7 +140,7 @@ function dereference$Ref($ref, path, pathFromRoot, parents, processedObjects, de
140
140
  const shouldResolveOnCwd = isExternalRef && options?.dereference?.externalReferenceResolution === "root";
141
141
  const $refPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);
142
142
  const cache = dereferencedCache.get($refPath);
143
- if (cache) {
143
+ if (cache && !cache.circular) {
144
144
  const refKeys = Object.keys($ref);
145
145
  if (refKeys.length > 1) {
146
146
  const extraKeys = {};
@@ -190,7 +190,7 @@ function dereference$Ref<S extends object = JSONSchema, O extends ParserOptions<
190
190
  const $refPath = url.resolve(shouldResolveOnCwd ? url.cwd() : path, $ref.$ref);
191
191
 
192
192
  const cache = dereferencedCache.get($refPath);
193
- if (cache) {
193
+ if (cache && !cache.circular) {
194
194
  const refKeys = Object.keys($ref);
195
195
  if (refKeys.length > 1) {
196
196
  const extraKeys = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apidevtools/json-schema-ref-parser",
3
- "version": "11.7.1",
3
+ "version": "11.7.2",
4
4
  "description": "Parse, Resolve, and Dereference JSON Schema $ref pointers",
5
5
  "keywords": [
6
6
  "json",