Closed fraxken closed 1 year ago
The warning parsing-error is missing from the warnings list: https://github.com/NodeSecure/js-x-ray/blob/master/src/warnings.js#L4
parsing-error
The following code must not crash
import * as jsxray from "@nodesecure/js-x-ray"; import * as i18n from "@nodesecure/i18n"; console.log(i18n.getTokenSync(jsxray.warnings["parsing-error"].i18n));
Also please update the README example to use getTokenSync instead of getToken
getTokenSync
getToken
Hi @fraxken , unless I'm mistaken, it seems that this issue has already been dealt with by Hubert .
@fabnguess yes you right
The warning
parsing-error
is missing from the warnings list: https://github.com/NodeSecure/js-x-ray/blob/master/src/warnings.js#L4The following code must not crash
Also please update the README example to use
getTokenSync
instead ofgetToken