Skip to content

Commit

Permalink
feat: refactor parser results [SL-2116] (#6)
Browse files Browse the repository at this point in the history
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
P0lip authored Mar 22, 2019
1 parent 1438865 commit 1632d59
Show file tree
Hide file tree
Showing 13 changed files with 1,006 additions and 470 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"test.watch": "yarn test --watch"
},
"dependencies": {
"@stoplight/types": "3.x.x",
"@stoplight/types": "4.x.x",
"lodash": "4.x.x",
"yaml-ast-parser": "0.0.43"
},
Expand Down
Loading

0 comments on commit 1632d59

Please sign in to comment.