@514labs/moose-lib 0.6.239-ci-1-gf12f5383 → 0.6.239-ci-3-ga812e148
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/dmv2/index.mjs
CHANGED
|
@@ -493,6 +493,9 @@ function createMaterializedView(options) {
|
|
|
493
493
|
AS ${options.select}`.trim();
|
|
494
494
|
}
|
|
495
495
|
|
|
496
|
+
// src/dmv2/internal.ts
|
|
497
|
+
import process2 from "process";
|
|
498
|
+
|
|
496
499
|
// src/index.ts
|
|
497
500
|
init_commons();
|
|
498
501
|
|
|
@@ -535,6 +538,7 @@ var DEFAULT_CSV_CONFIG = {
|
|
|
535
538
|
|
|
536
539
|
// src/dmv2/internal.ts
|
|
537
540
|
init_commons();
|
|
541
|
+
var isClientOnlyMode = process2.env.MOOSE_CLIENT_ONLY === "true";
|
|
538
542
|
var moose_internal = {
|
|
539
543
|
tables: /* @__PURE__ */ new Map(),
|
|
540
544
|
streams: /* @__PURE__ */ new Map(),
|
|
@@ -698,7 +702,7 @@ var OlapTable = class extends TypedBase {
|
|
|
698
702
|
this.name = name;
|
|
699
703
|
const tables = getMooseInternal().tables;
|
|
700
704
|
const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
|
|
701
|
-
if (tables.has(registryKey)) {
|
|
705
|
+
if (!isClientOnlyMode && tables.has(registryKey)) {
|
|
702
706
|
throw new Error(
|
|
703
707
|
`OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
|
|
704
708
|
);
|