Skip to content

Commit

Permalink
Fix lint error & bump local dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
torifat committed Apr 11, 2022
1 parent dda37a3 commit 8776d87
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
24 changes: 18 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"prerelease": "npm run build",
"release": "changeset publish",
"format": "prettier --write './src/**/*.js' './.changeset/*.json'",
"lint": "eslint .",
"test": "jest && tsd",
"test-ci": "jest --coverage --colors && tsd",
"prescreenshot": "npm run build:cjs",
Expand Down
7 changes: 1 addition & 6 deletions src/json/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@ export const getPointers = dataPath => {
return dataPath
.split('/')
.slice(1)
.map((pointer) =>
pointer.split('~1')
.join('/')
.split('~0')
.join('~')
);
.map(pointer => pointer.split('~1').join('/').split('~0').join('~'));
};

0 comments on commit 8776d87

Please sign in to comment.