@swagger-api/apidom-parser-adapter-arazzo-json-1 1.0.0-beta.43 → 1.0.0-beta.44

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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.0.0-beta.44](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2025-07-07)
7
+
8
+ **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-arazzo-json-1
9
+
6
10
  # [1.0.0-beta.43](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2025-06-13)
7
11
 
8
12
  **Note:** Version bump only for package @swagger-api/apidom-parser-adapter-arazzo-json-1
@@ -20170,7 +20170,8 @@ visitor, {
20170
20170
  nodeTypeGetter = getNodeType,
20171
20171
  nodePredicate = isNode,
20172
20172
  nodeCloneFn = cloneNode,
20173
- detectCycles = true
20173
+ detectCycles = true,
20174
+ detectCyclesCallback = null
20174
20175
  } = {}) => {
20175
20176
  const visitorKeys = keyMap || {};
20176
20177
  let stack;
@@ -20242,6 +20243,10 @@ visitor, {
20242
20243
 
20243
20244
  // cycle detected; skipping over a sub-tree to avoid recursion
20244
20245
  if (detectCycles && ancestors.includes(node)) {
20246
+ if (typeof detectCyclesCallback === 'function') {
20247
+ // @ts-ignore
20248
+ detectCyclesCallback(node, key, parent, path, ancestors);
20249
+ }
20245
20250
  path.pop();
20246
20251
  continue;
20247
20252
  }
@@ -20344,7 +20349,8 @@ visitor, {
20344
20349
  nodeTypeGetter = getNodeType,
20345
20350
  nodePredicate = isNode,
20346
20351
  nodeCloneFn = cloneNode,
20347
- detectCycles = true
20352
+ detectCycles = true,
20353
+ detectCyclesCallback = null
20348
20354
  } = {}) => {
20349
20355
  const visitorKeys = keyMap || {};
20350
20356
  let stack;
@@ -20415,6 +20421,10 @@ visitor, {
20415
20421
 
20416
20422
  // cycle detected; skipping over a sub-tree to avoid recursion
20417
20423
  if (detectCycles && ancestors.includes(node)) {
20424
+ if (typeof detectCyclesCallback === 'function') {
20425
+ // @ts-ignore
20426
+ detectCyclesCallback(node, key, parent, path, ancestors);
20427
+ }
20418
20428
  path.pop();
20419
20429
  continue;
20420
20430
  }