@514labs/moose-lib 0.6.239-ci-1-g1d19a0e4 → 0.6.239-ci-1-g1e5af572

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,7 +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
+ var isClientOnlyMode = () => process2.env.MOOSE_CLIENT_ONLY === "true";
627
627
  var moose_internal = {
628
628
  tables: /* @__PURE__ */ new Map(),
629
629
  streams: /* @__PURE__ */ new Map(),
@@ -820,7 +820,7 @@ var OlapTable = class extends TypedBase {
820
820
  this.name = name;
821
821
  const tables = getMooseInternal().tables;
822
822
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
823
- if (!isClientOnlyMode && tables.has(registryKey)) {
823
+ if (!isClientOnlyMode() && tables.has(registryKey)) {
824
824
  throw new Error(
825
825
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
826
826
  );
@@ -2296,7 +2296,7 @@ var SqlResource = class {
2296
2296
  */
2297
2297
  constructor(name, setup, teardown, options) {
2298
2298
  const sqlResources = getMooseInternal().sqlResources;
2299
- if (!isClientOnlyMode && sqlResources.has(name)) {
2299
+ if (!isClientOnlyMode() && sqlResources.has(name)) {
2300
2300
  throw new Error(`SqlResource with name ${name} already exists`);
2301
2301
  }
2302
2302
  sqlResources.set(name, this);