@514labs/moose-lib 0.6.249-ci-2-gc33238f0 → 0.6.249-ci-3-gc31139ef

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
@@ -741,7 +741,6 @@ init_commons();
741
741
  function getSourceDir() {
742
742
  return import_process.default.env.MOOSE_SOURCE_DIR || "app";
743
743
  }
744
- var isClientOnlyMode = () => import_process.default.env.MOOSE_CLIENT_ONLY === "true";
745
744
  var moose_internal = {
746
745
  tables: /* @__PURE__ */ new Map(),
747
746
  streams: /* @__PURE__ */ new Map(),
@@ -943,7 +942,7 @@ var OlapTable = class extends TypedBase {
943
942
  this.name = name;
944
943
  const tables = getMooseInternal().tables;
945
944
  const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
946
- if (!isClientOnlyMode() && tables.has(registryKey)) {
945
+ if (tables.has(registryKey)) {
947
946
  throw new Error(
948
947
  `OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
949
948
  );
@@ -2425,7 +2424,7 @@ var SqlResource = class {
2425
2424
  */
2426
2425
  constructor(name, setup, teardown, options) {
2427
2426
  const sqlResources = getMooseInternal().sqlResources;
2428
- if (!isClientOnlyMode() && sqlResources.has(name)) {
2427
+ if (sqlResources.has(name)) {
2429
2428
  throw new Error(`SqlResource with name ${name} already exists`);
2430
2429
  }
2431
2430
  sqlResources.set(name, this);