updtr crashes when (git) URLs as depencency are used
VanTanev opened this issue · comments
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