@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/browserCompatible.js +2 -6
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +2 -6
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +2 -6
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +2 -6
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -3
- package/dist/index.mjs.map +1 -1
- package/dist/moose-runner.js.map +1 -1
- package/dist/moose-runner.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -638,7 +638,6 @@ init_commons();
|
|
|
638
638
|
function getSourceDir() {
|
|
639
639
|
return process2.env.MOOSE_SOURCE_DIR || "app";
|
|
640
640
|
}
|
|
641
|
-
var isClientOnlyMode = () => process2.env.MOOSE_CLIENT_ONLY === "true";
|
|
642
641
|
var moose_internal = {
|
|
643
642
|
tables: /* @__PURE__ */ new Map(),
|
|
644
643
|
streams: /* @__PURE__ */ new Map(),
|
|
@@ -840,7 +839,7 @@ var OlapTable = class extends TypedBase {
|
|
|
840
839
|
this.name = name;
|
|
841
840
|
const tables = getMooseInternal().tables;
|
|
842
841
|
const registryKey = this.config.version ? `${name}_${this.config.version}` : name;
|
|
843
|
-
if (
|
|
842
|
+
if (tables.has(registryKey)) {
|
|
844
843
|
throw new Error(
|
|
845
844
|
`OlapTable with name ${name} and version ${config?.version ?? "unversioned"} already exists`
|
|
846
845
|
);
|
|
@@ -2322,7 +2321,7 @@ var SqlResource = class {
|
|
|
2322
2321
|
*/
|
|
2323
2322
|
constructor(name, setup, teardown, options) {
|
|
2324
2323
|
const sqlResources = getMooseInternal().sqlResources;
|
|
2325
|
-
if (
|
|
2324
|
+
if (sqlResources.has(name)) {
|
|
2326
2325
|
throw new Error(`SqlResource with name ${name} already exists`);
|
|
2327
2326
|
}
|
|
2328
2327
|
sqlResources.set(name, this);
|