-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve errors diagnostics, narrowing to related words only (#39)
* improve errors diagnostics, narrowing to related words only * improve error diagnostics related to schemas * upgrade to 1.4.2
- Loading branch information
Showing
5 changed files
with
74 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "ts-gql-plugin", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"packageManager": "[email protected]", | ||
"license": "MIT", | ||
"main": "./dist/index.js", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const spaceRelatedChars = new Set([' ', '\n', '\t']); | ||
|
||
export const getCurrentWord = (text: string, start: number): string => { | ||
const currentChar = text[start]; | ||
|
||
if (spaceRelatedChars.has(currentChar)) { | ||
return ''; | ||
} | ||
|
||
return currentChar + getCurrentWord(text, start + 1); | ||
}; |
cc394b5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"with ts-gql-plugin" vs "without ts-gql-plugin" Benchmark
performance impact %: "with ts-gql-plugin" vs "without ts-gql-plugin"
23.02
% (±1.23%
)24.29
% (±2.19%
)1.06
This comment was automatically generated by workflow using github-action-benchmark.