-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Upgrade to strip-ansi ^6.0.1 #34383
Upgrade to strip-ansi ^6.0.1 #34383
Conversation
I have looked into the failing tests, but I cannot figure out how my changes should be the cause of the issue. |
Hi @janaagaard75, thanks for the PR and detailed description. I looked into this and older versions of This is also why the lock file didn't change as you suspected. We can still merge this as is. |
I think it would be nice to get this merged even though there is still some work to do before the vulnerability is gone. BTW: How was the issue with failing test solved? |
@janaagaard75 It turns out that the test itself is a flaky test that needs to be fixed. Apologies if it caused any undue headache! |
* master: (24 commits) chore(docs): Release Notes v4.5 (gatsbyjs#34425) chore(docs): Update quick-start guide (gatsbyjs#34445) chore(docs) : Typo fix GatbsyImage -> GatsbyImage (gatsbyjs#34439) perf(gatsby): reuse rootNode & trackedRootNodes caches across instances of graphqlRunner (gatsbyjs#33695) Update media-item-processing.md (gatsbyjs#34434) chore(docs): Update localization doc (gatsbyjs#34429) test(ssr): Fix flakes (gatsbyjs#34443) chore(release): Publish next Revert "docs: Match egghead.io video instructions (gatsbyjs#34315)" (gatsbyjs#34384) fix(gatsby-plugin-manifest): generate icons sequentially (gatsbyjs#34331) Fix misspelling of "precedence" in log message (gatsbyjs#34428) chore(docs): Adjust doc mentions of gatsby-plugin-create-client-paths (gatsbyjs#34424) chore(docs): Update static-folder doc (gatsbyjs#34392) Upgrade to strip-ansi ^6.0.1 (gatsbyjs#34383) chore(gatsby-plugin-create-client-paths): Update client paths plugin readme with migration info (gatsbyjs#34423) chore: Remove deprecated client paths plugin references (gatsbyjs#34422) chore(docs): Old occurrences of gatbyjs.org (gatsbyjs#34402) Update plugins.md to have correct URL for gatsby-plugin-segment-js (gatsbyjs#34397) chore(gatsby): Give option to ignore output from workers and silence validate-engines (gatsbyjs#34416) chore(release): Publish next pre-minor ...
This updates
strip-ansi
to version ^6.0.1 to fix this vulnerability issue: https://www.npmjs.com/advisories/1004946.I don't know how to test this, but would gladly help, if I can get a bit of guidance.
import stripAnsi from 'strip-ansi';
toimport stripAnsi = require('strip-ansi');
. I did not make this change because VSCode only accepted the current syntax, and my experience is that VSCode is usually right about these things. 🙂strip-ansi
to the ESM syntax, and I am unsure if this would work.yarn install
did not updateyarn.lock
, so there are probably still some packages using thestrip-ansi
in the older (and vulnerable) versions.