@jefuriiij/synthra 0.1.7 → 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.
- package/README.md +209 -179
- package/dist/cli/index.js +1026 -988
- package/dist/cli/index.js.map +1 -1
- package/dist/dashboard/index.js +840 -840
- package/dist/dashboard/index.js.map +1 -1
- package/dist/server/index.js +3 -2
- package/dist/server/index.js.map +1 -1
- package/package.json +65 -65
package/dist/server/index.js
CHANGED
|
@@ -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
|
-
|
|
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
|