@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.
@@ -428,11 +428,10 @@ module.exports = __toCommonJS(browserCompatible_exports);
428
428
  // src/dmv2/utils/stackTrace.ts
429
429
  function shouldSkipStackLine(line) {
430
430
  return line.includes("node_modules") || // Skip npm installed packages (prod)
431
- line.includes("node:internal") || // Skip Node.js internals (modern format)
432
- line.includes("internal/modules") || // Skip Node.js internals (older format)
431
+ line.includes("internal/modules") || // Skip Node.js internals
433
432
  line.includes("ts-node") || // Skip TypeScript execution
434
- line.includes("/ts-moose-lib/src/") || // Skip dev/linked moose-lib src (Unix)
435
- line.includes("\\ts-moose-lib\\src\\");
433
+ line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
434
+ line.includes("\\ts-moose-lib\\");
436
435
  }
437
436
  function parseStackLine(line) {
438
437
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -535,12 +534,12 @@ var TypedBase = class {
535
534
  this.validators = validators;
536
535
  this.allowExtraFields = allowExtraFields ?? false;
537
536
  this.metadata = config?.metadata ? { ...config.metadata } : {};
538
- if (!this.metadata.source) {
539
- const stack = new Error().stack;
540
- if (stack) {
541
- const info = getSourceFileInfo(stack);
542
- this.metadata.source = { file: info.file, line: info.line };
543
- }
537
+ const stack = new Error().stack;
538
+ if (stack) {
539
+ const info = getSourceFileInfo(stack);
540
+ this.metadata.source = { file: info.file, line: info.line };
541
+ } else {
542
+ this.metadata.source = void 0;
544
543
  }
545
544
  }
546
545
  };
@@ -955,7 +954,8 @@ var OlapTable = class extends TypedBase {
955
954
  * @private
956
955
  */
957
956
  createConfigHash(clickhouseConfig) {
958
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
957
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
958
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
959
959
  return (0, import_node_crypto2.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
960
960
  }
961
961
  /**
@@ -980,10 +980,11 @@ var OlapTable = class extends TypedBase {
980
980
  } catch (error) {
981
981
  }
982
982
  }
983
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
983
984
  const client = getClickhouseClient2({
984
985
  username: clickhouseConfig.username,
985
986
  password: clickhouseConfig.password,
986
- database: clickhouseConfig.database,
987
+ database: effectiveDatabase,
987
988
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
988
989
  host: clickhouseConfig.host,
989
990
  port: clickhouseConfig.port