@514labs/moose-lib 0.6.271-ci-1-g2b350d57 → 0.6.272
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 +13 -12
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +13 -12
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +13 -12
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +13 -12
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +13 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +13 -12
- 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.js
CHANGED
|
@@ -419,11 +419,10 @@ module.exports = __toCommonJS(dmv2_exports);
|
|
|
419
419
|
// src/dmv2/utils/stackTrace.ts
|
|
420
420
|
function shouldSkipStackLine(line) {
|
|
421
421
|
return line.includes("node_modules") || // Skip npm installed packages (prod)
|
|
422
|
-
line.includes("
|
|
423
|
-
line.includes("internal/modules") || // Skip Node.js internals (older format)
|
|
422
|
+
line.includes("internal/modules") || // Skip Node.js internals
|
|
424
423
|
line.includes("ts-node") || // Skip TypeScript execution
|
|
425
|
-
line.includes("/ts-moose-lib/
|
|
426
|
-
line.includes("\\ts-moose-lib\\
|
|
424
|
+
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
425
|
+
line.includes("\\ts-moose-lib\\");
|
|
427
426
|
}
|
|
428
427
|
function parseStackLine(line) {
|
|
429
428
|
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
@@ -526,12 +525,12 @@ var TypedBase = class {
|
|
|
526
525
|
this.validators = validators;
|
|
527
526
|
this.allowExtraFields = allowExtraFields ?? false;
|
|
528
527
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
528
|
+
const stack = new Error().stack;
|
|
529
|
+
if (stack) {
|
|
530
|
+
const info = getSourceFileInfo(stack);
|
|
531
|
+
this.metadata.source = { file: info.file, line: info.line };
|
|
532
|
+
} else {
|
|
533
|
+
this.metadata.source = void 0;
|
|
535
534
|
}
|
|
536
535
|
}
|
|
537
536
|
};
|
|
@@ -851,7 +850,8 @@ var OlapTable = class extends TypedBase {
|
|
|
851
850
|
* @private
|
|
852
851
|
*/
|
|
853
852
|
createConfigHash(clickhouseConfig) {
|
|
854
|
-
const
|
|
853
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
854
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
855
855
|
return (0, import_node_crypto2.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
|
|
856
856
|
}
|
|
857
857
|
/**
|
|
@@ -876,10 +876,11 @@ var OlapTable = class extends TypedBase {
|
|
|
876
876
|
} catch (error) {
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
879
880
|
const client = getClickhouseClient2({
|
|
880
881
|
username: clickhouseConfig.username,
|
|
881
882
|
password: clickhouseConfig.password,
|
|
882
|
-
database:
|
|
883
|
+
database: effectiveDatabase,
|
|
883
884
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
884
885
|
host: clickhouseConfig.host,
|
|
885
886
|
port: clickhouseConfig.port
|