-
Notifications
You must be signed in to change notification settings - Fork 7
feat: rewriting the library in typescript #210
Conversation
@@ -12815,17 +12815,3 @@ Object { | |||
], | |||
} | |||
`; | |||
|
|||
exports[`#validate should colorize errors when \`opts.colorizeErrors\` is present 1`] = ` |
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.
This got removed because we're skipping this test and Jest didn't carry it over when it moved the snapshot. If we ever re-enable this test this snapshot will come back then.
} else if (typeof obj === 'object') { | ||
return 'json'; | ||
} else if (typeof obj === 'string') { | ||
if (obj.match(/\s*{/)) { |
Check failure
Code scanning / CodeQL
Polynomial regular expression used on uncontrolled data
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.
A couple of tiny nits/questions but otherwise looking good!
Co-authored-by: Kanad Gupta <[email protected]>
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.
Small nit, I just realized we run the tsc
build twice in CI. Once here:
oas-normalize/.github/workflows/ci.yml
Line 22 in d739429
- run: npm run build |
And once here, in the test
script:
Line 40 in d739429
"test": "tsc; jest --coverage" |
Will defer to you on which one to keep!
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.
otherwise LGTM 🚀
Removed the |
🧰 Changes
I've rewritten this library in TypeScript. I also pulled in our
jsdoc
standards from@readme/eslint-config
so all methods in the library now have more accessible docs (along with the new TS types that are available).That's it!