querysub 0.148.0 → 0.149.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.148.0",
3
+ "version": "0.149.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",
@@ -209,6 +209,8 @@ async function edgeNodeFunction(config: {
209
209
  };
210
210
  }
211
211
 
212
+ await new Promise(resolve => setTimeout(resolve, 1000 * 10));
213
+
212
214
  let cachedConfig = config.cachedConfig;
213
215
 
214
216
  let liveHashOverride = "";
@@ -267,8 +269,8 @@ async function edgeNodeFunction(config: {
267
269
  async function isNodeAlive(node: EdgeNodeConfig): Promise<boolean> {
268
270
  try {
269
271
  let abortController = new AbortController();
270
- let url = `https://${node.host}?classGuid=RequireController-e2f811f3-14b8-4759-b0d6-73f14516cf1d&functionName=getModules&args=[[]]`;
271
- let response = await fetch(url, { signal: abortController.signal });
272
+ let url = `https://${node.host}?classGuid=RequireController-e2f811f3-14b8-4759-b0d6-73f14516cf1d&functionName=getModules&args=[[]]&cachebuster=${Date.now()}`;
273
+ let response = await fetch(url, { signal: abortController.signal, cache: "no-store" });
272
274
  // Cancel, so we don't use up all of our sockets (we are limited to 6 per domain in chrome)
273
275
  // on non-responsive servers.
274
276
  setTimeout(() => {
@@ -410,11 +412,7 @@ async function edgeNodeFunction(config: {
410
412
  let host = edgeNodeConfig.host;
411
413
  if (!host.endsWith("/")) host += "/";
412
414
  for (let entryPath of edgeNodeConfig.entryPaths) {
413
- try {
414
- await require("https://" + host + entryPath);
415
- } catch (e) {
416
- console.error(e);
417
- }
415
+ await require("https://" + host + entryPath);
418
416
  }
419
417
  }
420
418
  }