querysub 0.621.0 → 0.623.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.621.0",
3
+ "version": "0.623.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",
@@ -1,15 +1,14 @@
1
1
  process.env.PRODUCTION = "true";
2
- // TODO: Add this back
3
- //import "./inject";
2
+ import "./inject";
4
3
 
5
4
  // The storage server entry point (see bin/storageserve.js): sets up the CLI args the sliftutils storage server expects, synchronizes our network trust list into its trust store, and runs its CLI.
6
5
 
7
6
  async function main() {
8
- // TODO: Add this back
9
- // let trustedMachineIds = await getTrustedMachineIds();
10
- // let { setTrustedMachines } = await import("sliftutils/storage/remoteStorage/serverConfig");
11
- // await setTrustedMachines({ account: "root", machineIds: trustedMachineIds });
12
- // console.log(`Synchronized ${trustedMachineIds.length} trusted machines`);
7
+ const { getTrustedMachineIds } = await import("./-d-trust/NetworkTrust2");
8
+ let trustedMachineIds = await getTrustedMachineIds();
9
+ let { setTrustedMachines } = await import("sliftutils/storage/remoteStorage/serverConfig");
10
+ await setTrustedMachines({ account: "root", machineIds: trustedMachineIds });
11
+ console.log(`Synchronized ${trustedMachineIds.length} trusted machines`);
13
12
 
14
13
  await import("sliftutils/storage/remoteStorage/storageServerCli");
15
14
  }