Fix/vulnerabilities cheerio - #115
Conversation
|
No need to bump the version numbers. That will happen on publish. |
623e05a to
0358e5d
Compare
|
✔️ done: the versions are no longer modified. |
|
Why are there .nvmrc files? |
|
Because the different package-lock.json have different lockfile versions: 1
or 2.
These versions mean the files where compiled with different versions of
npm, which are linked in nvm to the versions I mentionned in .nvmrc files.
So the presence of these files indicates to nvm (with nvm use) which
version of node to be used in the given directory.
As nvm associates a version of npm to every version of node, it's a way to
both document what node version is to be used in a given project and a way
to load the proper version of nom to run nom install.
Le dim. 5 juin 2022, 02:23, Jonathan Kemp ***@***.***> a
écrit :
… Why are there .nvmrc files?
—
Reply to this email directly, view it on GitHub
<#115 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABJEW2J37TLMD7WM7D3K6ETVNONINANCNFSM5XERQNIA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
|
Sorry for the delayed response on this. I don't want to include all the .nvmrc files so if you can think of another solution, that would be preferred. |
|
Just deleted the files :) |
|
The .nvmrc file in the root is still there. Also, why did the test output change? |
|
Please use js-beautify for the unit test comparisons. Thanks. |
|
Hello @jonkemp, I'm done removing the last in unit tests, html is compared, not js. Do you want I try const expected = String(fs.readFileSync(expectedPath)).replace(/(\r\n|\n|\r)/gm, "");
html.replace(/(\r\n|\n|\r)/gm, "").should.be.equal(expected); |
|
|
|
@jonkemp beautify is now used in tests ✔️ |
| @@ -1,4 +1,4 @@ | |||
| const cheerio = require('cheerio'); | |||
| const cheerio = require('cheerio').default; | |||
`eslint --fix index.js lib/ packages/`
|
Lint error fixed. Note that there are 3 lint warnings left due to complexity, that could be fixed quite easily in a dedicated PR |
|
Thank you @jonkemp ! |
|
Tests are failing locally so as soon as I can get those passing. |
fixes vulnerability on cheerio