cursor-doctor 1.1.3 → 1.1.4
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/package.json +1 -1
- package/src/cli.js +1 -1
- package/src/diff.js +2 -2
package/package.json
CHANGED
package/src/cli.js
CHANGED
|
@@ -11,7 +11,7 @@ const { autoFix } = require('./autofix');
|
|
|
11
11
|
const { isLicensed, activateLicense } = require('./license');
|
|
12
12
|
const { fixProject } = require('./fix');
|
|
13
13
|
|
|
14
|
-
const VERSION = '1.1.
|
|
14
|
+
const VERSION = '1.1.4';
|
|
15
15
|
|
|
16
16
|
const RED = '\x1b[31m';
|
|
17
17
|
const YELLOW = '\x1b[33m';
|
package/src/diff.js
CHANGED
|
@@ -2,7 +2,7 @@ const fs = require('fs');
|
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const crypto = require('crypto');
|
|
4
4
|
|
|
5
|
-
const SNAPSHOT_FILE = '.cursor-
|
|
5
|
+
const SNAPSHOT_FILE = '.cursor-doctor-snapshot.json';
|
|
6
6
|
|
|
7
7
|
function hashContent(content) {
|
|
8
8
|
return crypto.createHash('md5').update(content).digest('hex');
|
|
@@ -44,7 +44,7 @@ function saveSnapshot(dir) {
|
|
|
44
44
|
function diffSnapshot(dir) {
|
|
45
45
|
const snapshotPath = path.join(dir, SNAPSHOT_FILE);
|
|
46
46
|
if (!fs.existsSync(snapshotPath)) {
|
|
47
|
-
return { error: 'No snapshot found. Run cursor-
|
|
47
|
+
return { error: 'No snapshot found. Run cursor-doctor diff --save first.' };
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
const saved = JSON.parse(fs.readFileSync(snapshotPath, 'utf-8'));
|