Skip to content

Commit e2737a2

Browse files
committed
Fix comparison operator in package version retrieval in versions.ts
1 parent 9b55610 commit e2737a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/versions.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export const commands = {
247247
}
248248

249249
if (!pkgVersion) {
250-
const pkg = data.find((d) => d.id === pkgId);
250+
const pkg = data.find((d) => String(d.id) === String(pkgId));
251251
if (pkg) {
252252
pkgVersion = pkg.name;
253253
}

0 commit comments

Comments
 (0)