querysub 0.56.0 → 0.58.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.56.0",
3
+ "version": "0.58.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",
@@ -457,7 +457,9 @@ if (isServer()) {
457
457
  // when using management tools to scan the DB (otherwise the entire DB has to go through
458
458
  // our router, which can easily cap it at 15MB/s, because rogers is terrible).
459
459
  // - Only if isNoNetwork, otherwise it causes unnecessary lag.
460
+ console.log(`Start isNoNetwork call at ${Date.now()}`);
460
461
  let isNoNetwork = await NodeDiscoveryController.nodes[browserNodeId].isNoNetwork();
462
+ console.log(`End isNoNetwork call at ${Date.now()}`);
461
463
  if (isNoNetwork && !location.search.includes("nolocalhost")) {
462
464
  let url = new URL("https://" + browserNodeId);
463
465
  url.hostname = "127-0-0-1." + url.hostname;
@@ -526,7 +528,10 @@ class NodeDiscoveryControllerBase {
526
528
  return SocketFunction.mountedNodeId;
527
529
  }
528
530
  public async isNoNetwork() {
529
- return isNoNetwork();
531
+ console.log(`Start isNoNetwork call at ${Date.now()}`);
532
+ let result = isNoNetwork();
533
+ console.log(`End isNoNetwork call at ${Date.now()}`);
534
+ return result;
530
535
  }
531
536
  }
532
537
  const NodeDiscoveryController = SocketFunction.register(