@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/browserCompatible.js +5 -1
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +5 -1
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +5 -1
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +5 -1
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -1
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js +1 -0
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs +1 -0
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
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
|
);
|