@semiont/make-meaning 0.5.26 → 0.5.28
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 +1 -1
- package/dist/index.d.ts +113 -16
- package/dist/index.js +319 -131
- package/dist/index.js.map +1 -1
- package/dist/smelter-main.js +5 -6
- package/dist/smelter-main.js.map +1 -1
- package/dist/weaver-main.js +2 -1
- package/dist/weaver-main.js.map +1 -1
- package/package.json +13 -13
package/dist/weaver-main.js
CHANGED
|
@@ -10130,11 +10130,12 @@ var Weaver = class _Weaver {
|
|
|
10130
10130
|
for (const id of viewIds) {
|
|
10131
10131
|
if (!graphIds.has(id)) return "annotation-set-mismatch";
|
|
10132
10132
|
}
|
|
10133
|
+
const bodyKey = (a) => _Weaver.canonicalJson(a.body ?? []);
|
|
10133
10134
|
const viewById = new Map(annotations.map((a) => [String(a.id), a]));
|
|
10134
10135
|
for (const graphAnnotation of graphAnnotations) {
|
|
10135
10136
|
const viewAnnotation = viewById.get(String(graphAnnotation.id));
|
|
10136
10137
|
if (!viewAnnotation) continue;
|
|
10137
|
-
if (
|
|
10138
|
+
if (bodyKey(graphAnnotation) !== bodyKey(viewAnnotation)) {
|
|
10138
10139
|
return "annotation-body-mismatch";
|
|
10139
10140
|
}
|
|
10140
10141
|
}
|