@nosana/node 1.1.13 → 1.1.14-rc

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.13",
3
+ "version": "1.1.14-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"
@@ -18,7 +18,8 @@ export async function validateCLIVersion() {
18
18
  }
19
19
  const packageData = await fetch(`https://registry.npmjs.com/${pkg.name}`);
20
20
  const packageJSON = await packageData.json();
21
- const registryLatestVersion = packageJSON['dist-tags']?.latest;
21
+ const distTag = pkg.version.includes('-rc') ? 'next' : 'latest';
22
+ const registryLatestVersion = packageJSON['dist-tags']?.[distTag];
22
23
  if (!registryLatestVersion || typeof registryLatestVersion !== 'string') {
23
24
  throw new Error('Could not retrieve valid package information from npm');
24
25
  }
@@ -42,6 +43,6 @@ export async function validateCLIVersion() {
42
43
  }
43
44
  }
44
45
  catch (error) {
45
- console.log(`${chalk.red("Failed to fetch CLI's minium required version.")}\n${error}`);
46
+ console.log(`${chalk.red("Failed to fetch CLI's minimum required version.")}\n${error}`);
46
47
  }
47
48
  }
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.13",
3
+ "version": "1.1.14-rc",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@nosana/node",
9
- "version": "1.1.13",
9
+ "version": "1.1.14-rc",
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@coral-xyz/anchor": "^0.28.1-beta.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nosana/node",
3
- "version": "1.1.13",
3
+ "version": "1.1.14-rc",
4
4
  "description": "",
5
5
  "bin": {
6
6
  "nosana-node": "./dist/src/index.js"