@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/index.js
CHANGED
|
@@ -472,10 +472,11 @@ module.exports = __toCommonJS(index_exports);
|
|
|
472
472
|
// src/dmv2/utils/stackTrace.ts
|
|
473
473
|
function shouldSkipStackLine(line) {
|
|
474
474
|
return line.includes("node_modules") || // Skip npm installed packages (prod)
|
|
475
|
-
line.includes("internal
|
|
475
|
+
line.includes("node:internal") || // Skip Node.js internals (modern format)
|
|
476
|
+
line.includes("internal/modules") || // Skip Node.js internals (older format)
|
|
476
477
|
line.includes("ts-node") || // Skip TypeScript execution
|
|
477
|
-
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
478
|
-
line.includes("\\ts-moose-lib\\");
|
|
478
|
+
line.includes("/ts-moose-lib/src/") || // Skip dev/linked moose-lib src (Unix)
|
|
479
|
+
line.includes("\\ts-moose-lib\\src\\");
|
|
479
480
|
}
|
|
480
481
|
function parseStackLine(line) {
|
|
481
482
|
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
@@ -578,12 +579,12 @@ var TypedBase = class {
|
|
|
578
579
|
this.validators = validators;
|
|
579
580
|
this.allowExtraFields = allowExtraFields ?? false;
|
|
580
581
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
582
|
+
if (!this.metadata.source) {
|
|
583
|
+
const stack = new Error().stack;
|
|
584
|
+
if (stack) {
|
|
585
|
+
const info = getSourceFileInfo(stack);
|
|
586
|
+
this.metadata.source = { file: info.file, line: info.line };
|
|
587
|
+
}
|
|
587
588
|
}
|
|
588
589
|
}
|
|
589
590
|
};
|
|
@@ -1021,7 +1022,8 @@ var OlapTable = class extends TypedBase {
|
|
|
1021
1022
|
* @private
|
|
1022
1023
|
*/
|
|
1023
1024
|
createConfigHash(clickhouseConfig) {
|
|
1024
|
-
const
|
|
1025
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
1026
|
+
const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
|
|
1025
1027
|
return (0, import_node_crypto.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
|
|
1026
1028
|
}
|
|
1027
1029
|
/**
|
|
@@ -1046,10 +1048,11 @@ var OlapTable = class extends TypedBase {
|
|
|
1046
1048
|
} catch (error) {
|
|
1047
1049
|
}
|
|
1048
1050
|
}
|
|
1051
|
+
const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
|
|
1049
1052
|
const client = getClickhouseClient2({
|
|
1050
1053
|
username: clickhouseConfig.username,
|
|
1051
1054
|
password: clickhouseConfig.password,
|
|
1052
|
-
database:
|
|
1055
|
+
database: effectiveDatabase,
|
|
1053
1056
|
useSSL: clickhouseConfig.useSSL ? "true" : "false",
|
|
1054
1057
|
host: clickhouseConfig.host,
|
|
1055
1058
|
port: clickhouseConfig.port
|