Run npm audit
This syncs our dependencies to the latest version. There is still
a reported vulnerability in postcss, but we are luckily unaffected.
However, we can't upgrade postcss yet, as stylelint requires it
and can not use postcss 8 yet:
https://github.com/stylelint/stylelint/issues/4942#issuecomment-823513767
Also updated manage_node_deps.py to not run the full install when
running `ls`, to allow for easier inspection of our dependency graph.
R=jacktfranklin@chromium.org
Bug: none
Change-Id: I1c9e4836fca25500e2e7277ec82b13bf2b881dca
Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2887731
Commit-Queue: Tim van der Lippe <tvanderlippe@chromium.org>
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
Reviewed-by: Jack Franklin <jacktfranklin@chromium.org>
diff --git a/node_modules/stylelint/lib/assignDisabledRanges.js b/node_modules/stylelint/lib/assignDisabledRanges.js
index c0ab00a..78d6c10 100644
--- a/node_modules/stylelint/lib/assignDisabledRanges.js
+++ b/node_modules/stylelint/lib/assignDisabledRanges.js
@@ -72,16 +72,16 @@
return;
}
- const next = comment.next();
+ const nextComment = comment.next();
// If any of these conditions are not met, do not merge comments.
if (
!(
isInlineComment(comment) &&
isStylelintCommand(comment) &&
- next &&
- next.type === 'comment' &&
- (comment.text.includes('--') || next.text.startsWith('--'))
+ nextComment &&
+ nextComment.type === 'comment' &&
+ (comment.text.includes('--') || nextComment.text.startsWith('--'))
)
) {
checkComment(comment);
@@ -92,8 +92,7 @@
let lastLine = (comment.source && comment.source.end && comment.source.end.line) || 0;
const fullComment = comment.clone();
- /** @type {PostcssComment} */
- let current = next;
+ let current = nextComment;
while (isInlineComment(current) && !isStylelintCommand(current)) {
const currentLine = (current.source && current.source.end && current.source.end.line) || 0;
@@ -107,8 +106,6 @@
}
inlineEnd = current;
- // TODO: Issue #4985
- // eslint-disable-next-line no-shadow
const next = current.next();
if (!next || next.type !== 'comment') break;