@glossarist/concept-browser 0.7.125 → 0.7.126

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glossarist/concept-browser",
3
- "version": "0.7.125",
3
+ "version": "0.7.126",
4
4
  "description": "Vue SPA for browsing Glossarist terminology datasets with cross-reference resolution, graph visualization, and multi-language support",
5
5
  "type": "module",
6
6
  "bin": {
@@ -27,7 +27,7 @@ function checkFile(file, dataDir) {
27
27
  const json = JSON.parse(raw);
28
28
  const broken = [];
29
29
  function check(target, field) {
30
- if (!target) return;
30
+ if (!target || typeof target !== "string") return;
31
31
  if (!target.startsWith("http")) return;
32
32
  const { exists, expected } = localPathForUri(target, dataDir);
33
33
  if (!exists) {
@@ -56,7 +56,7 @@ function checkFile(file: string, dataDir: string): BrokenLink[] {
56
56
  const broken: BrokenLink[] = [];
57
57
 
58
58
  function check(target: string | undefined, field: string) {
59
- if (!target) return;
59
+ if (!target || typeof target !== 'string') return;
60
60
  if (!target.startsWith('http')) return; // External links checked separately
61
61
  const { exists, expected } = localPathForUri(target, dataDir);
62
62
  if (!exists) {