querysub 0.32.0 → 0.33.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.32.0",
3
+ "version": "0.33.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",
@@ -295,6 +295,7 @@ async function runHeartbeatAuditLoop() {
295
295
  });
296
296
  }
297
297
 
298
+ // NOTE: Not just dead nodes, but also nodes that are unreachable, such as developer nodes.
298
299
  let deadNodes = new Map<string, number>();
299
300
  async function fastMemorySync() {
300
301
  let aliveNodes = new Set(Array.from(allNodeIds2).filter(x => x !== getOurNodeId()));
package/src/config.ts CHANGED
@@ -54,5 +54,8 @@ export function authorityRaw() {
54
54
  }
55
55
 
56
56
  export function isPublic() {
57
+ if (!isNode()) {
58
+ return !location.hostname.startsWith("noproxy.");
59
+ }
57
60
  return !!yargObj.public;
58
61
  }