@aptos-labs/aptos-cli 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/aptos +1 -1
- package/package.json +1 -1
package/bin/aptos
CHANGED
|
@@ -49,7 +49,7 @@ const executableIsAvailable = (name) => {
|
|
|
49
49
|
// Query the GitHub API to find the latest CLI release. We assume that the CLI is in
|
|
50
50
|
// the last 100 releases so we don't paginate through the releases.
|
|
51
51
|
const getLatestVersionGh = async () => {
|
|
52
|
-
const prefix = `${PNAME}
|
|
52
|
+
const prefix = `${PNAME}-`;
|
|
53
53
|
const response = await (await fetch("https://api.github.com/repos/aptos-labs/aptos-core/releases?per_page=100")).json();
|
|
54
54
|
for (release of response) {
|
|
55
55
|
if (release["tag_name"].startsWith(`${prefix}`)) {
|