pi-readseek 0.5.4 → 0.5.6
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 +2 -2
- package/src/readseek-settings.ts +7 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-readseek",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
4
4
|
"description": "Pi extension for readseek-backed hash-anchored read/edit/grep, structural code maps, structural search, and file exploration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"node": ">=20.0.0"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@jarkkojs/readseek": "^0.5.
|
|
42
|
+
"@jarkkojs/readseek": "^0.5.1",
|
|
43
43
|
"diff": "^8.0.3",
|
|
44
44
|
"xxhash-wasm": "^1.1.0"
|
|
45
45
|
},
|
package/src/readseek-settings.ts
CHANGED
|
@@ -143,8 +143,13 @@ function validateSettings(raw: unknown, source: string): ReadSeekSettingsResult
|
|
|
143
143
|
return { settings, warnings };
|
|
144
144
|
}
|
|
145
145
|
if (!("readseek" in raw)) {
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
const misplaced = READSEEK_KEYS.filter((key) => key in raw);
|
|
147
|
+
if (misplaced.length > 0) {
|
|
148
|
+
warnings.push({
|
|
149
|
+
source,
|
|
150
|
+
path: misplaced[0],
|
|
151
|
+
message: `Readseek setting at top level: move ${misplaced.join(", ")} under "readseek"`,
|
|
152
|
+
});
|
|
148
153
|
}
|
|
149
154
|
return { settings, warnings };
|
|
150
155
|
}
|