Skip to content

chore: add npm lockfile for demos/extractor#926

Merged
vallieres merged 1 commit into
mainfrom
add-lockfiles
May 22, 2026
Merged

chore: add npm lockfile for demos/extractor#926
vallieres merged 1 commit into
mainfrom
add-lockfiles

Conversation

@vallieres
Copy link
Copy Markdown
Contributor

Add missing package-lock.json for demos/extractor and unblock it from .gitignore.

What changed:

  • Remove package-lock.json from demos/extractor/.gitignore
  • Generate demos/extractor/package-lock.json via npm install --package-lock-only

Existing lockfiles already committed (no changes needed):

  • go.sum — Go module checksums
  • model-cli/Cargo.lock — Rust
  • demos/embeddings/package-lock.json — npm

No Python requirements files found; no Terraform .tf files found.

- Remove package-lock.json from demos/extractor/.gitignore
- Add generated package-lock.json (lockfileVersion 3) for demos/extractor

Existing lockfiles already tracked:
- go.sum (Go module checksums)
- model-cli/Cargo.lock (Rust)
- demos/embeddings/package-lock.json (npm)
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes package-lock.json from the .gitignore and adds the lockfile to the repository. A critical security and correctness issue was identified in the package-lock.json file, as it references non-existent versions of express, cors, and multer on the public npm registry, which will prevent reproducible builds and introduces supply chain vulnerabilities.

Comment on lines +11 to +16
"dependencies": {
"cors": "^2.8.5",
"express": "^4.18.2",
"multer": "2.1.1",
"pdf-data-extractor": "^1.0.1"
},
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

security-critical critical

This package-lock.json file appears to be invalid. It references several package versions that do not exist on the public npm registry (registry.npmjs.org). This is a critical issue as it will cause npm ci to fail, preventing reproducible builds, and poses a supply chain security risk.

Specifically:

  • express is resolved to 4.22.2, but this version does not exist. The ^4.18.2 range in package.json should resolve to a valid version like 4.19.2.
  • cors is resolved to 2.8.6, which was a problematic release and is no longer available.
  • multer is pinned to 2.1.1 in package.json, but this version does not exist.

To fix this, please correct the dependencies in package.json (for example, you could use ^1.4.5-lts.1 for multer) and then regenerate the package-lock.json file by running npm install.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

package			relased
express 4.22.2	11 days ago
cors 2.8.6		4 months ago
multer 2.1.1	3 months ago

@vallieres vallieres marked this pull request as ready for review May 20, 2026 20:51
Copy link
Copy Markdown
Contributor

@sourcery-ai sourcery-ai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

@vallieres vallieres merged commit b7b8559 into main May 22, 2026
14 of 16 checks passed
@vallieres vallieres deleted the add-lockfiles branch May 22, 2026 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants