[stable32] Fix npm audit#1061
Conversation
f3d942f to
26ca782
Compare
Signed-off-by: GitHub <noreply@github.com>
26ca782 to
fc40cf0
Compare
|
@coderabbitai review for any suspicious bumps, like dependencies updated without a purpose, because it says "0 unfixable" |
|
Tip For best results, initiate chat on the files or code changes. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
gh pr view 1061 --repo nextcloud/recommendations --json title,body,files -q '.files[].path'
echo "---DIFF package.json---"
gh pr diff 1061 --repo nextcloud/recommendations -- package.json || trueLength of output: 821 🏁 Script executed: #!/bin/bash
set -euo pipefail
gh pr diff 1061 --repo nextcloud/recommendations > /tmp/pr.diff
wc -l /tmp/pr.diff
echo "---package-lock.json diff (name/version lines only)---"
awk '/^diff --git a\/package-lock.json/,/^diff --git a\/(?!package-lock.json)/' /tmp/pr.diff | head -400Length of output: 18293 🏁 Script executed: #!/bin/bash
set -euo pipefail
grep -B2 '"version":' /tmp/pr.diff | grep -E '^\+|^-' | grep '"version"' > /tmp/versions.txt
paste -d'|' <(grep '^-' /tmp/versions.txt) <(grep '^+' /tmp/versions.txt) | head -100
echo "---count---"
grep -c '^-.*"version"' /tmp/pr.diff
grep -c '^+.*"version"' /tmp/pr.diff
echo "---new packages added---"
grep '^\+.*"node_modules/' /tmp/pr.diff
echo "---removed packages---"
grep '^\-.*"node_modules/' /tmp/pr.diffLength of output: 792 🏁 Script executed: #!/bin/bash
set -euo pipefail
echo "---count old/new version lines---"
grep -c '^-.*"version"' /tmp/pr.diff || true
grep -c '^+.*"version"' /tmp/pr.diff || true
echo "---new packages added (node_modules paths)---"
grep '^\+.*"node_modules/' /tmp/pr.diff || true
echo "---removed packages (node_modules paths)---"
grep '^\-.*"node_modules/' /tmp/pr.diff || true
echo "---all version bump pairs---"
python3 - <<'EOF'
import re
with open('/tmp/pr.diff') as f:
lines = f.readlines()
i = 0
pkg = None
for line in lines:
m = re.match(r'^\s*"(node_modules/[^"]+)":\s*\{', line.lstrip('+-'))
if m:
pkg = m.group(1)
m2 = re.match(r'^-\s*"version":\s*"([^"]+)"', line)
if m2 and pkg:
old = m2.group(1)
m3 = re.match(r'^\+\s*"version":\s*"([^"]+)"', line)
if m3 and pkg:
new = m3.group(1)
print(f"{pkg}: {old if 'old' in dir() else '?'} -> {new}")
EOFLength of output: 3853
Babel toolchain (all peer/dev, aligned to a single new baseline 7.29.7): Notable dependency swap:
Other transitive bumps (all patch/minor, no majors):
I didn't find any suspicious, unrelated, or majorly-jumped dependency — all changes are patch/minor bumps to transitive dev/build dependencies, consistent with an |
Audit report
No fixable problems found (0 unfixable, 30 only fixable manually using --force)