querysub 0.121.0 → 0.122.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.121.0",
3
+ "version": "0.122.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",
@@ -23,7 +23,7 @@ import { LOCAL_DOMAIN_PATH } from "../0-path-value-core/NodePathAuthorities";
23
23
  import { registerPeriodic } from "../diagnostics/periodic";
24
24
  import { remoteWatcher } from "../1-path-client/RemoteWatcher";
25
25
  import { Schema2, Schema2Fncs } from "./schema2";
26
- import { devDebugbreak, getDomain, isPublic } from "../config";
26
+ import { devDebugbreak, getDomain, isDynamicallyLoading, isPublic } from "../config";
27
27
 
28
28
  import type { CallSpec } from "../3-path-functions/PathFunctionRunner";
29
29
  import type { FunctionMetadata } from "../3-path-functions/syncSchema";
@@ -1896,7 +1896,7 @@ export function registerSchemaPrefix(config: {
1896
1896
  if (!list) {
1897
1897
  schemaPrefixes.push(list = { len, prefixes: new Map() });
1898
1898
  }
1899
- if (isNode() && !globalThis.isHotReloading?.()) {
1899
+ if (isNode() && !globalThis.isHotReloading?.() && !isDynamicallyLoading()) {
1900
1900
  if (list.prefixes.has(config.prefixPathStr)) {
1901
1901
  throw new Error(`Prefix matches only work due to only having one version of the code ever load (except for during hot reloading development clientside). If we try to render multiple versions of the same code serverside (ex, because we pre-loaded new code during a deploy), it will break, as we can't distinguish them. ADD GIT HASH TO PREFIX SCHEMAS TO FIX THIS! Tried to double load ${config.prefixPathStr}`);
1902
1902
  }
@@ -110,7 +110,7 @@ export async function registerEdgeNode(config: {
110
110
  //todonext
111
111
  // Testing
112
112
  //hash: gitHash,
113
- hash: "1c222aa091fac592012938172cc1f7d2ee99c7b9",
113
+ hash: "01bf525b650e8ef78c1058905be9992e82164013",
114
114
  });
115
115
  }
116
116