Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: refactor parser results [SL-2116] (#6)
BREAKING CHANGE: pointers are no longer exposed * feat: bump @stoplight/types * feat: adjust parseWithPointers to new IParserResult * refactor: remove parsing options * fix: wrong end line for some nodes * fix: tslint issues * feat: point to actual node instead of its parent * fix: first lines * fix: errors are mapped to correct lines * refactor: getJsonPathForPosition and getLocationForJsonPath * fix: match lines properly * fix: potential TypeError * fix: getLocationForJsonPath should support sequences * fix: get endPosition for correct node * fix: cast segment to numbers when approriate * fix: mappings might be an empty array * chore: typing adjustment * refactor: fix codeclimate issue * chore: remove comments * feat: point to nearest key * refactor: findNodeAtOffset => findClosestScalar * chore: re-rexport new functions
- Loading branch information