Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updtr crashes when (git) URLs as depencency are used #87

Open
VanTanev opened this issue Aug 28, 2020 · 0 comments
Open

updtr crashes when (git) URLs as depencency are used #87

VanTanev opened this issue Aug 28, 2020 · 0 comments

Comments

@VanTanev
Copy link

Given a config like:

  "devDependencies": {
    "@types/jest": "^26.0.5",
    "@types/node": "^14.0.23",
    "bats": "https://github.com/bats-core/bats-core/archive/v1.2.1.tar.gz",
    "bats-assert": "git+https://github.com/bats-core/bats-assert.git",
    "bats-file": "git+https://github.com/bats-core/bats-file.git",
    "bats-support": "git+https://github.com/bats-core/bats-support.git",
    "jest": "^26.1.0",
    "prettier": "^2.0.5",
    "tiny-invariant": "^1.1.0",
    "ts-jest": "^26.1.3",
    "typescript": "^4.0.0-beta"
  }

Updtr fails with:

$ npx updtr
npx: installed 75 in 2.897s
Looking for outdated modules...
> npm outdated --json --depth=0 
⠹

 ERROR  Invalid Version: remote
    at new SemVer (/home/ivan/.npm/_npx/11875/lib/node_modules/updtr/node_modules/semver/semver.js:323:11)
    at compare (/home/ivan/.npm/_npx/11875/lib/node_modules/updtr/node_modules/semver/semver.js:614:10)
    at Function.lte (/home/ivan/.npm/_npx/11875/lib/node_modules/updtr/node_modules/semver/semver.js:668:10)
    at Object.test (/home/ivan/.npm/_npx/11875/lib/node_modules/updtr/dist/index.js:841:10)
    at /home/ivan/.npm/_npx/11875/lib/node_modules/updtr/dist/index.js:866:28
    at Array.findIndex (<anonymous>)
    at filterUpdateTask (/home/ivan/.npm/_npx/11875/lib/node_modules/updtr/dist/index.js:865:35)
    at /home/ivan/.npm/_npx/11875/lib/node_modules/updtr/dist/index.js:921:5
    at Array.map (<anonymous>)
    at /home/ivan/.npm/_npx/11875/lib/node_modules/updtr/dist/index.js:920:42
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

No branches or pull requests

1 participant