querysub 0.428.0 → 0.429.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.428.0",
3
+ "version": "0.429.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",
@@ -18,8 +18,8 @@ import { getAllAuthoritySpec, getEmptyAuthoritySpec } from "./PathRouterServerAu
18
18
 
19
19
  setImmediate(() => import("../3-path-functions/syncSchema"));
20
20
 
21
- let NETWORK_POLL_INTERVAL = timeInMinute * 5;
22
- let CALL_TIMEOUT = isPublic() ? timeInSecond * 20 : timeInSecond * 3;
21
+ let NETWORK_POLL_INTERVAL = timeInMinute * 1;
22
+ let CALL_TIMEOUT = timeInSecond * 5;
23
23
 
24
24
  export type AuthorityEntry = {
25
25
  nodeId: string;
@@ -636,8 +636,7 @@ export class PathRouter {
636
636
  sort(fullPathMatches, x => preferredNodeIds.has(x.nodeId) ? -1 : 1);
637
637
  sort(allSources, x => isOwnNodeId(x.nodeId) ? -1 : 1);
638
638
  let missingRanges: { start: number; end: number }[] = [{
639
- start: 0,
640
- end: 1,
639
+ ...parentRange
641
640
  }];
642
641
  let usedParts: {
643
642
  nodeId: string;
@@ -1109,4 +1109,5 @@ setImmediate(() => {
1109
1109
  export { pathValueArchives };
1110
1110
 
1111
1111
  (globalThis as any).core = module.exports;
1112
+ (globalThis as any).authorityStorage = authorityStorage;
1112
1113
  (globalThis as any).SocketFunction = SocketFunction;
@@ -486,7 +486,6 @@ export class RemoteWatcher {
486
486
  auditLog("Asking to watch parent path", { path, authorityId, targetNodeThreadId: debugNodeThread(authorityId) });
487
487
  }
488
488
  }
489
-
490
489
  logErrors(RemoteWatcher.REMOTE_WATCH_FUNCTION(config, authorityId));
491
490
  }
492
491
  });