-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Dependencies upgrade #3380
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Dependencies upgrade #3380
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
f08ced6
Update cookie to 1.0.2
T4rk1n 30103ea
update renderer build deps
T4rk1n b8ae8da
Replace vulnerable request with native fetch for html scripts
T4rk1n cd3e2a4
update html build deps
T4rk1n 62ccfd8
update lerna
T4rk1n def70be
update core deps
T4rk1n 8117334
update styled-jsx
T4rk1n e9dddc1
update table deps
T4rk1n 6deb92e
Fix no ouptut on error & use lts/iron on build windows.
T4rk1n 8f50759
Revert "Fix no ouptut on error & use lts/iron on build windows."
T4rk1n a66a076
nvm use before commands
T4rk1n dec82f8
run windows html build separate
T4rk1n File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
1,729 changes: 949 additions & 780 deletions
1,729
components/dash-core-components/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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
1,558 changes: 464 additions & 1,094 deletions
1,558
components/dash-html-components/package-lock.json
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
|
||
const fs = require('fs'); | ||
const cheerio = require('cheerio'); | ||
const request = require('request'); | ||
|
||
const refUrl = 'https://developer.mozilla.org/en-US/docs/Web/HTML/Element'; | ||
const dataPath = './data/elements.txt'; | ||
|
@@ -63,14 +62,21 @@ function extractElements($) { | |
}, []); | ||
} | ||
|
||
request(refUrl, (error, response, html) => { | ||
if (error) { | ||
fetch(refUrl) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same question as above - how does this tie to dep upgrade? |
||
.then(response => { | ||
if (!response.ok) { | ||
throw new Error(`HTTP error! status: ${response.status}`); | ||
} | ||
return response.text(); | ||
}) | ||
.then(html => { | ||
const $ = cheerio.load(html); | ||
const elements = extractElements($); | ||
const out = elements.join('\n'); | ||
|
||
fs.writeFileSync(dataPath, out); | ||
}) | ||
.catch(error => { | ||
console.error(error); | ||
process.exit(-1); | ||
} | ||
const $ = cheerio.load(html); | ||
const elements = extractElements($); | ||
const out = elements.join('\n'); | ||
|
||
fs.writeFileSync(dataPath, out); | ||
}); | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why is this in with dependencies upgrade? (not arguing against it, just don't understand)
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.
The request dependency keeps on having security vulnerability and there was no resolving from updating, fetch has been natively available since node v18 so I opted to replace it instead.