@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.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 (
|
|
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 (
|
|
2427
|
+
if (sqlResources.has(name)) {
|
|
2429
2428
|
throw new Error(`SqlResource with name ${name} already exists`);
|
|
2430
2429
|
}
|
|
2431
2430
|
sqlResources.set(name, this);
|