@speclynx/apidom-traverse 2.1.0 → 2.2.0

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/src/Path.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { compile as compileJSONPointer } from '@speclynx/apidom-json-pointer';
2
- import { compile as compileJSONPath } from '@swaggerexpert/jsonpath';
2
+ import { NormalizedPath } from '@speclynx/apidom-json-path';
3
3
 
4
4
  /**
5
5
  * Possible return values from a visitor function.
@@ -182,7 +182,7 @@ export class Path {
182
182
  }
183
183
  if (pathFormat === 'jsonpath') {
184
184
  // RFC 9535 Normalized JSONPath
185
- return compileJSONPath(parts);
185
+ return NormalizedPath.from(parts);
186
186
  }
187
187
 
188
188
  // RFC 6901 JSON Pointer