@aptos-labs/aptos-cli 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/bin/aptos +1 -1
  2. 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}-v`;
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}`)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aptos-labs/aptos-cli",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Aptos CLI available from npmjs",
5
5
  "bin": {
6
6
  "aptos": "bin/aptos"