We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ea5fa4 commit 406bdb0Copy full SHA for 406bdb0
src/getPackageResolution.ts
@@ -36,7 +36,7 @@ export function getPackageResolution({
36
"package.json",
37
)).version as string
38
const indexOfPlus = installedVersionLong.indexOf('+');
39
- const installedVersion = indexOfPlus === 0 ? installedVersionLong : installedVersionLong.substring(0, indexOfPlus)
+ const installedVersion = indexOfPlus === -1 ? installedVersionLong : installedVersionLong.substring(0, indexOfPlus)
40
41
const entries = Object.entries(appLockFile.object).filter(
42
([k, v]) =>
0 commit comments