@514labs/moose-lib 0.6.271 → 0.6.272-ci-1-gdc968567
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 +14 -11
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +14 -11
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +14 -11
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +14 -11
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +14 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -11
- 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/dmv2/index.mjs
CHANGED
|
@@ -362,10 +362,11 @@ var init_runtime = __esm({
|
|
|
362
362
|
// src/dmv2/utils/stackTrace.ts
|
|
363
363
|
function shouldSkipStackLine(line) {
|
|
364
364
|
return line.includes("node_modules") || // Skip npm installed packages (prod)
|
|
365
|
-
line.includes("internal
|
|
365
|
+
line.includes("node:internal") || // Skip Node.js internals (modern format)
|
|
366
|
+
line.includes("internal/modules") || // Skip Node.js internals (older format)
|
|
366
367
|
line.includes("ts-node") || // Skip TypeScript execution
|
|
367
|
-
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
368
|
-
line.includes("\\ts-moose-lib\\");
|
|
368
|
+
line.includes("/ts-moose-lib/src/") || // Skip dev/linked moose-lib src (Unix)
|
|
369
|
+
line.includes("\\ts-moose-lib\\src\\");
|
|
369
370
|
}
|
|
370
371
|
function parseStackLine(line) {
|
|
371
372
|
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
@@ -468,12 +469,12 @@ var TypedBase = class {
|
|
|
468
469
|
this.validators = validators;
|
|
469
470
|
this.allowExtraFields = allowExtraFields ?? false;
|
|
470
471
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
472
|
+
if (!this.metadata.source) {
|
|
473
|
+
const stack = new Error().stack;
|
|
474
|
+
if (stack) {
|
|
475
|
+
const info = getSourceFileInfo(stack);
|
|
476
|
+
this.metadata.source = { file: info.file, line: info.line };
|
|
477
|
+
}
|
|
477
478
|
}
|
|
478
479
|
}
|
|
479
480
|
};
|
|
@@ -796,7 +797,8 @@ var OlapTable = class extends TypedBase {
|
|
|
796
797
|
* @private
|
|
797
798
|
*/
|
|
798
799
|
createConfigHash(clickhouseConfig) {
|
|
799
|
-
const
|
|
800
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
801
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
800
802
|
return createHash2("sha256").update(configString).digest("hex").substring(0, 16);
|
|
801
803
|
}
|
|
802
804
|
/**
|
|
@@ -821,10 +823,11 @@ var OlapTable = class extends TypedBase {
|
|
|
821
823
|
} catch (error) {
|
|
822
824
|
}
|
|
823
825
|
}
|
|
826
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
824
827
|
const client = getClickhouseClient2({
|
|
825
828
|
username: clickhouseConfig.username,
|
|
826
829
|
password: clickhouseConfig.password,
|
|
827
|
-
database:
|
|
830
|
+
database: effectiveDatabase,
|
|
828
831
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
829
832
|
host: clickhouseConfig.host,
|
|
830
833
|
port: clickhouseConfig.port
|