@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.
@@ -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 (_Weaver.canonicalJson(graphAnnotation.body) !== _Weaver.canonicalJson(viewAnnotation.body)) {
10138
+ if (bodyKey(graphAnnotation) !== bodyKey(viewAnnotation)) {
10138
10139
  return "annotation-body-mismatch";
10139
10140
  }
10140
10141
  }