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

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.js CHANGED
@@ -726,6 +726,7 @@ init_commons();
726
726
  function getSourceDir() {
727
727
  return import_process.default.env.MOOSE_SOURCE_DIR || "app";
728
728
  }
729
+ var isClientOnlyMode = import_process.default.env.MOOSE_CLIENT_ONLY === "true";
729
730
  var moose_internal = {
730
731
  tables: /* @__PURE__ */ new Map(),
731
732
  streams: /* @__PURE__ */ new Map(),
@@ -922,7 +923,7 @@ var OlapTable = class extends TypedBase {
922
923
  this.name = name;
923
924
  const tables = getMooseInternal().tables;
924
925
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
925
- if (tables.has(registryKey)) {
926
+ if (!isClientOnlyMode && tables.has(registryKey)) {
926
927
  throw new Error(
927
928
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
928
929
  );