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
|
@@ -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
|
}
|