depngn should handle * for versions without errors
Actual Behavior
If a dependency has * as the version restriction for node, depngn fails with the following error:
Error: Error: Invalid argument not valid semver ('*' received)
at /../depngn/dist/cli.cjs:7519:27
at step (/../depngn/dist/cli.cjs:65:23)
at Object.throw (/../depngn/dist/cli.cjs:46:53)
at rejected (/../depngn/dist/cli.cjs:37:65)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Steps to Reproduce
Use a package that has a * as the version for node
Expected Behavior
depngn should handle
*
for versions without errorsActual Behavior
If a dependency has
*
as the version restriction for node, depngn fails with the following error:Steps to Reproduce
*
as the version for nodedepngn
to run the reportAdditional Information
Setting
*
for the node version is valid, check https://github.com/moment/moment/blob/develop/package.json#L36 for example.It is also listed as an option in the npm docs https://docs.npmjs.com/about-semantic-versioning#using-semantic-versioning-to-specify-update-types-your-package-can-accept (seems like
x
is a valid value)It's also valid in the semver calculator https://semver.npmjs.com
What package manager are you seeing the problem with?
No response
Relevant log output
No response
Code of Conduct