querysub 0.717.0 → 0.719.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.717.0",
3
+ "version": "0.719.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",
@@ -8,6 +8,11 @@ import { FindConfig } from "sliftutils/storage/IArchives";
8
8
 
9
9
  export const STORAGE_ACCOUNT = "root";
10
10
 
11
+ // The values here aren't IPs, they're just store names (the folder names on the storage servers). If an IP changes, NEVER change these values, only add the new hostname as a key pointing at the existing name.
12
+ const STORE_NAME_HOSTNAMES: { [hostname: string]: string | undefined } = {
13
+ "99-255-70-23.querysubtest.com": "99-250-124-91.querysubtest.com",
14
+ };
15
+
11
16
 
12
17
  function createSourceWindows(
13
18
  overrides: Partial<RemoteConfigBase>,
@@ -60,7 +65,7 @@ function archiveBuilder(bucket: string, overrides: Partial<RemoteConfigBase>) {
60
65
  url: currentUrls[i],
61
66
  route: [routeStart, routeEnd],
62
67
  // IMPORTANT! name decides where our files are stored. We can't have two things writing to the same folder at the same time. But it also means if we reuse the name, then it has to be the same data.
63
- name: url.hostname.replaceAll(/[^a-z0-9-]/g, "_") + "_v" + config.routeVersion + "_" + routeStart + "_" + routeEnd,
68
+ name: (STORE_NAME_HOSTNAMES[url.hostname] || url.hostname).replaceAll(/[^a-z0-9-]/g, "_") + "_v" + config.routeVersion + "_" + routeStart + "_" + routeEnd,
64
69
  });
65
70
  }
66
71
  }
@@ -91,7 +96,7 @@ function archiveBuilder(bucket: string, overrides: Partial<RemoteConfigBase>) {
91
96
  ]);
92
97
 
93
98
  return createArchives({
94
- version: 30,
99
+ version: 31,
95
100
  sources,
96
101
  });
97
102
  }