Skip to content

Commit 7800b60

Browse files
authored
fix: beta versions being included as latest version (#506)
1 parent d762d63 commit 7800b60

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/versionUtils.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ const createUserdevVersionsValue = (ttl: number = 5 * 60 * 1000): ExpiringValue<
4141
r.json()
4242
);
4343

44-
return json.map((e) => e.name.substring(1)).reverse();
44+
return json
45+
.map((e) => e.name.substring(1))
46+
.filter((e) => !e.includes("beta"))
47+
.reverse();
4548
});
4649
};
4750

0 commit comments

Comments
 (0)