querysub 0.25.0 → 0.26.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.25.0",
3
+ "version": "0.26.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",
@@ -169,7 +169,7 @@ export async function publishMachineARecords() {
169
169
  // and not set public (such as the FunctionRunner). SO... just ignore this, leaving the records as
170
170
  // public, even though the current run doesn't have public set.
171
171
  if (process.argv[1].includes("server.ts")) {
172
- console.log(yellow(`Current process is not marked as public, but machine previous had public services. NOT publishing A records to point to 127.0.0.1, which will make service inaccessible if the port is not forwarded open on the public ip.`));
172
+ console.log(yellow(`Current process is not marked as public, but machine previous had public services. NOT publishing A records to point to 127.0.0.1, which will make service inaccessible if the port is not port forwarded (or open). I recommend using noproxy.DOMAIN.com to access the server. 127-0-0-1.DOMAIN.com might work as well.`));
173
173
  }
174
174
  return;
175
175
  }
@@ -194,12 +194,11 @@ class NodePathAuthorities {
194
194
  private async watchAuthorityPaths() {
195
195
  await onNodeDiscoveryReady();
196
196
 
197
- onReadyReady = (nodeId, time) => {
197
+ onReadReady = (nodeId, time) => {
198
198
  let obj = this.authorities.get(nodeId);
199
199
  if (!obj) {
200
- // HACK: Sometimes when a node is first added we can't identify it yet. I THINK this is because
201
- // we haven't learned to trust the key, or... something? Hmm...
202
- // ingestNewNodeIds([nodeId], []);
200
+ // Might as well use this to add the node, if we don't know about it yet.
201
+ ingestNewNodeIds([nodeId], []);
203
202
  return;
204
203
  }
205
204
  obj.isReadReady = time;
@@ -936,7 +935,7 @@ function authoritiesMightOverlap(other: AuthorityPath, current: AuthorityPath):
936
935
 
937
936
 
938
937
 
939
- let onReadyReady = (nodeId: string, time: number) => { };
938
+ let onReadReady = (nodeId: string, time: number) => { };
940
939
  class PathControllerBase {
941
940
  public async getAuthorityPaths() {
942
941
  return pathValueAuthority2.getSelfAuthorities();
@@ -953,7 +952,7 @@ class PathControllerBase {
953
952
  public async broadcastReadReady(time: number) {
954
953
  let nodeIdCaller = IdentityController_getCurrentReconnectNodeIdAssert();
955
954
  console.log(magenta(`Received ready broadcast`), { nodeIdCaller });
956
- onReadyReady(nodeIdCaller, time);
955
+ onReadReady(nodeIdCaller, time);
957
956
  }
958
957
  }
959
958
  const PathController = SocketFunction.register(
@@ -185,7 +185,7 @@ export class NodeViewer extends qreact.Component {
185
185
  }
186
186
 
187
187
  let builtinGroups = {
188
- "Default": ["buttons", "devToolsURL", "nodeId", "ip", "uptime", "loadTime", "Heap", "All Memory", "Blocking Lag", "port", "threadId", "machineId", "apiError", "live_entryPoint"],
188
+ "Default": ["buttons", "devToolsURL", "nodeId", "ip", "uptime", "loadTime", "Heap", "Buffers", "All Memory", "Blocking Lag", "port", "threadId", "machineId", "apiError", "live_entryPoint"],
189
189
  };
190
190
  // Column => group
191
191
  let builtInGroupsLookup = new Map<string, string>();