@jefuriiij/synthra 0.1.8 → 0.1.9

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.
@@ -613,7 +613,7 @@ async function buildGraph(root, parsed) {
613
613
  };
614
614
  }
615
615
  function buildSymbolIndex(graph) {
616
- const out = {};
616
+ const out = /* @__PURE__ */ Object.create(null);
617
617
  for (const node of graph.nodes) {
618
618
  if (node.kind !== "symbol") continue;
619
619
  const list = out[node.name] ?? (out[node.name] = []);
@@ -1424,7 +1424,8 @@ async function writeSymbolIndex(path, index) {
1424
1424
  await writeJson(path, index, true);
1425
1425
  }
1426
1426
  async function readSymbolIndex(path) {
1427
- return readJson(path);
1427
+ const parsed = await readJson(path);
1428
+ return Object.assign(/* @__PURE__ */ Object.create(null), parsed);
1428
1429
  }
1429
1430
 
1430
1431
  // src/shared/paths.ts