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 a1f8c1c commit 0ea5fa4Copy full SHA for 0ea5fa4
src/getPackageResolution.ts
@@ -35,7 +35,8 @@ export function getPackageResolution({
35
resolve(appPath, packageDetails.path),
36
"package.json",
37
)).version as string
38
- const installedVersion = installedVersionLong.substring(0, installedVersionLong.indexOf('+'))
+ const indexOfPlus = installedVersionLong.indexOf('+');
39
+ const installedVersion = indexOfPlus === 0 ? installedVersionLong : installedVersionLong.substring(0, indexOfPlus)
40
41
const entries = Object.entries(appLockFile.object).filter(
42
([k, v]) =>
0 commit comments