Skip to content

Update BaseNpmLockHandler to handle latest pacakge-lock.json file#4749

Draft
uttam282005 wants to merge 2 commits intoaboutcode-org:developfrom
uttam282005:upgrade-package-lock.json-parse
Draft

Update BaseNpmLockHandler to handle latest pacakge-lock.json file#4749
uttam282005 wants to merge 2 commits intoaboutcode-org:developfrom
uttam282005:upgrade-package-lock.json-parse

Conversation

@uttam282005
Copy link
Contributor

Fixes #3493
add support for file indirections in version field

from official npm docs for package-lock.json file (version: 11.10.0 latest)
docs

Dependency objects have the following fields-
version: a specifier that varies depending on the nature of the package, and is usable in fetching a new copy of it.
bundled dependencies: Regardless of source, this is a version number that is purely for informational purposes.
registry sources: This is a version number. (eg, 1.2.3)
git sources: This is a git specifier with resolved committish. (eg, git+https://example.com/foo/bar#115311855adb0789a0466714ed48a1499ffea97e)
http tarball sources: This is the URL of the tarball. (eg, https://example.com/example-1.3.0.tgz)
local tarball sources: This is the file URL of the tarball. (eg file:///opt/storage/example-1.3.0.tgz)
local link sources: This is the file URL of the link. (eg file:libs/our-module)

Tasks

  • Reviewed contribution guidelines
  • PR is descriptively titled 📑 and links the original issue above 🔗
  • Tests pass -- look for a green checkbox ✔️ a few minutes after opening your PR
    Run tests locally to check for errors.
  • Commits are in uniquely-named feature branch and has no merge conflicts 📁
  • Updated documentation pages (if applicable)
  • Updated CHANGELOG.rst (if applicable)

@uttam282005 uttam282005 reopened this Feb 16, 2026
@uttam282005 uttam282005 changed the title Update npm lock file parser to handle latest pacakge-lock.json file Update <code>BaseNpmLockHandler<code> to handle latest pacakge-lock.json file Feb 16, 2026
@uttam282005 uttam282005 changed the title Update <code>BaseNpmLockHandler<code> to handle latest pacakge-lock.json file Update BaseNpmLockHandler to handle latest pacakge-lock.json file Feb 16, 2026
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.

Ensure we can collect the latest package-lock.json including file indirections for versions

1 participant