querysub 0.482.0 → 0.483.0

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": "querysub",
3
- "version": "0.482.0",
3
+ "version": "0.483.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -177,6 +177,7 @@ export class PathValueControllerBase {
177
177
  timeIdVersion: value.time.version,
178
178
  sourceNodeId,
179
179
  sourceNodeThreadId: decodeNodeId(sourceNodeId)?.threadId,
180
+ isValid: value.valid,
180
181
  });
181
182
  }
182
183
  }
@@ -404,6 +404,13 @@ class ValidStateComputer {
404
404
  timeIdFull: pathValue.time,
405
405
  });
406
406
  }
407
+ if (valid === false && prevValidState === true) {
408
+ console.info(`Rejecting value that was valid before`, {
409
+ path: pathValue.path,
410
+ timeId: pathValue.time.time,
411
+ timeIdFull: pathValue.time,
412
+ });
413
+ }
407
414
 
408
415
  // IMPORTANT! This means if it didn't previously exist and it's presently rejected, we count that as a change, as it this is going from undefined to false. This is actually very useful, as a lot of places want to know if a write is rejected, so they can display it in the UI for the developer.
409
416
  if (valid === prevValidState) continue;
@@ -743,7 +743,7 @@ class AuthorityPathValueStorage {
743
743
 
744
744
  if (isDebugLogEnabled() && !config?.doNotArchive) {
745
745
  for (let value of newValues) {
746
- auditLog("INGEST VALUE", { path: value.path, timeId: value.time.time, batchTime: now });
746
+ auditLog("INGEST VALUE", { path: value.path, timeId: value.time.time, batchTime: now, isValid: value.valid });
747
747
  }
748
748
  }
749
749
 
@@ -42,7 +42,7 @@ export const createRefAnimation = cacheJSONArgsEqual((id: string, transitionTime
42
42
  let scrollChangeLeft = newScrollOffsetObj.left - prevScrollOffsetLeft;
43
43
  prevScrollOffsetLeft = newScrollOffsetObj.left;
44
44
 
45
- if (!curPrevRect?.width || !newRect.width || curPrevRect.left === newRect.left) {
45
+ if (!curPrevRect?.width || !newRect.width || curPrevRect.left === newRect.left && curPrevRect.top === newRect.top) {
46
46
  return;
47
47
  }
48
48
  elem.style.transform = `translate(${curPrevRect.left - newRect.left - scrollChangeLeft}px, ${curPrevRect.top - newRect.top - scrollChangeTop}px)`;