Skip to content

Commit 14fa50b

Browse files
authored
fix: missing parsing_error in warnings list (#131)
1 parent c18d7ec commit 14fa50b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ We make a call to `i18n` through the package `NodeSecure/i18n` to get the transl
117117
import * as jsxray from "@nodesecure/js-x-ray";
118118
import * as i18n from "@nodesecure/i18n";
119119

120-
console.log(i18n.getToken(jsxray.warnings["parsing-error"].i18n));
120+
console.log(i18n.getTokenSync(jsxray.warnings["parsing-error"].i18n));
121121
```
122122

123123
## Warnings Legends

src/warnings.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
import * as utils from "./utils.js";
33

44
export const warnings = Object.freeze({
5-
"ast-error": {
6-
i18n: "sast_warnings.ast_error",
5+
"parsing-error": {
6+
i18n: "sast_warnings.parsing_error",
77
severity: "Information"
88
},
99
"unsafe-import": {

0 commit comments

Comments
 (0)