snow-ai 0.4.13 ā 0.4.14
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/cli.js +2 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -36,10 +36,11 @@ let execAsync;
|
|
|
36
36
|
// Check for updates asynchronously
|
|
37
37
|
async function checkForUpdates(currentVersion) {
|
|
38
38
|
try {
|
|
39
|
-
const { stdout } = await execAsync('npm view snow-ai version', {
|
|
39
|
+
const { stdout } = await execAsync('npm view snow-ai version --registry https://registry.npmjs.org', {
|
|
40
40
|
encoding: 'utf8',
|
|
41
41
|
});
|
|
42
42
|
const latestVersion = stdout.trim();
|
|
43
|
+
// Simple string comparison - force registry fetch ensures no cache issues
|
|
43
44
|
if (latestVersion && latestVersion !== currentVersion) {
|
|
44
45
|
console.log('\nš Update available!');
|
|
45
46
|
console.log(` Current version: ${currentVersion}`);
|