@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.js CHANGED
@@ -726,7 +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
+ var isClientOnlyMode = () => import_process.default.env.MOOSE_CLIENT_ONLY === "true";
730
730
  var moose_internal = {
731
731
  tables: /* @__PURE__ */ new Map(),
732
732
  streams: /* @__PURE__ */ new Map(),
@@ -923,7 +923,7 @@ var OlapTable = class extends TypedBase {
923
923
  this.name = name;
924
924
  const tables = getMooseInternal().tables;
925
925
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
926
- if (!isClientOnlyMode && tables.has(registryKey)) {
926
+ if (!isClientOnlyMode() && tables.has(registryKey)) {
927
927
  throw new Error(
928
928
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
929
929
  );
@@ -2399,7 +2399,7 @@ var SqlResource = class {
2399
2399
  */
2400
2400
  constructor(name, setup, teardown, options) {
2401
2401
  const sqlResources = getMooseInternal().sqlResources;
2402
- if (!isClientOnlyMode && sqlResources.has(name)) {
2402
+ if (!isClientOnlyMode() && sqlResources.has(name)) {
2403
2403
  throw new Error(`SqlResource with name ${name} already exists`);
2404
2404
  }
2405
2405
  sqlResources.set(name, this);