@514labs/moose-lib 0.6.239-ci-3-g6e595e05 → 0.6.239-ci-3-ga812e148

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/dist/index.mjs CHANGED
@@ -623,6 +623,7 @@ init_commons();
623
623
  function getSourceDir() {
624
624
  return process2.env.MOOSE_SOURCE_DIR || "app";
625
625
  }
626
+ var isClientOnlyMode = process2.env.MOOSE_CLIENT_ONLY === "true";
626
627
  var moose_internal = {
627
628
  tables: /* @__PURE__ */ new Map(),
628
629
  streams: /* @__PURE__ */ new Map(),
@@ -819,7 +820,7 @@ var OlapTable = class extends TypedBase {
819
820
  this.name = name;
820
821
  const tables = getMooseInternal().tables;
821
822
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
822
- if (tables.has(registryKey)) {
823
+ if (!isClientOnlyMode && tables.has(registryKey)) {
823
824
  throw new Error(
824
825
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
825
826
  );