querysub 0.131.0 → 0.133.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.131.0",
3
+ "version": "0.133.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",
@@ -293,7 +293,11 @@ async function edgeNodeFunction(config: {
293
293
  let edgeNodes = edgeIndex.edgeNodes;
294
294
 
295
295
  function getNodeDebugString(node: EdgeNodeConfig) {
296
- return `${node.host} | ${node.entryPaths.join(" + ")} | git = ${node.gitHash.slice(0, 16)} | ${node.nodeId} | ${node.public ? "public" : "private"}`;
296
+ let text = `${node.host} | ${node.entryPaths.join(" + ")} | git = ${node.gitHash.slice(0, 16)} | ${node.nodeId} | ${node.public ? "public" : "private"}`;
297
+ if (node.gitHash === edgeIndex.liveHash) {
298
+ text = "LIVE " + text;
299
+ }
300
+ return text;
297
301
  }
298
302
 
299
303
  for (let node of edgeNodes) {
@@ -47,19 +47,6 @@ function getNodeIdFromPath(path: string) {
47
47
  return path.split("_").slice(1).join("_");
48
48
  }
49
49
 
50
- // NOTE: We update this in the update loop
51
- const getEdgeNodesIndex = lazy(async (): Promise<EdgeNodesIndex> => {
52
- await startUpdateLoop();
53
- let edgeNodesIndex = await edgeNodeStorage.get(edgeNodeIndexFile);
54
- let liveHash = await Querysub.commitSynced(() => {
55
- return deploySchema()[getDomain()].deploy.live.hash;
56
- });
57
- if (!edgeNodesIndex) return {
58
- edgeNodes: [],
59
- liveHash,
60
- };
61
- return JSON.parse(edgeNodesIndex.toString());
62
- });
63
50
 
64
51
  export type EdgeNodesIndex = {
65
52
  edgeNodes: EdgeNodeConfig[];
@@ -193,10 +180,10 @@ export const getEdgeNodeConfigURL = lazy(async () => {
193
180
  });
194
181
 
195
182
  const startUpdateLoop = lazy(async () => {
183
+ startEdgeNotifier();
184
+ SocketFunction.expose(EdgeNodeController);
196
185
  await getEdgeNodeConfigURL();
197
186
  await runInfinitePollCallAtStart(UPDATE_POLL_INTERVAL, updateLoop);
198
- SocketFunction.expose(EdgeNodeController);
199
- startEdgeNotifier();
200
187
  });
201
188
 
202
189
  async function updateLoop() {
@@ -235,8 +222,6 @@ async function updateEdgeNodesFile() {
235
222
  console.error(`Failed to parse ${edgeNodeIndexFile}`, { error: e, prevEdgeNodeFile });
236
223
  }
237
224
 
238
- getEdgeNodesIndex.set(Promise.resolve(prevEdgeNodeIndex));
239
-
240
225
  let edgeNodeFiles = await edgeNodeStorage.find("node", { type: "files" });
241
226
  let edgeNodeNodeIds = edgeNodeFiles.map(getNodeIdFromPath);
242
227
 
@@ -83,6 +83,8 @@ export class Table<RowT extends RowType> extends qreact.Component<TableType<RowT
83
83
  if (
84
84
  canHaveChildren(innerContent) && "props" in innerContent
85
85
  && canHaveChildren(innerContent.props)
86
+ // Table can't show gap, so don;t collapse if it has gap.
87
+ && !(attributes.class as string).includes("gap")
86
88
  // NOTE: I'm not sure why we were only elevating the children if we only had 1 child?
87
89
  // Changing this will break things, but it should be better overall.
88
90
  // && "children" in innerContent.props