@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.
@@ -419,10 +419,11 @@ 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("internal/modules") || // Skip Node.js internals
422
+ line.includes("node:internal") || // Skip Node.js internals (modern format)
423
+ line.includes("internal/modules") || // Skip Node.js internals (older format)
423
424
  line.includes("ts-node") || // Skip TypeScript execution
424
- line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
425
- line.includes("\\ts-moose-lib\\");
425
+ line.includes("/ts-moose-lib/src/") || // Skip dev/linked moose-lib src (Unix)
426
+ line.includes("\\ts-moose-lib\\src\\");
426
427
  }
427
428
  function parseStackLine(line) {
428
429
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -525,12 +526,12 @@ var TypedBase = class {
525
526
  this.validators = validators;
526
527
  this.allowExtraFields = allowExtraFields ?? false;
527
528
  this.metadata = config?.metadata ? { ...config.metadata } : {};
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;
529
+ if (!this.metadata.source) {
530
+ const stack = new Error().stack;
531
+ if (stack) {
532
+ const info = getSourceFileInfo(stack);
533
+ this.metadata.source = { file: info.file, line: info.line };
534
+ }
534
535
  }
535
536
  }
536
537
  };
@@ -850,7 +851,8 @@ var OlapTable = class extends TypedBase {
850
851
  * @private
851
852
  */
852
853
  createConfigHash(clickhouseConfig) {
853
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
854
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
855
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
854
856
  return (0, import_node_crypto2.createHash)("sha256").update(configString).digest("hex").substring(0, 16);
855
857
  }
856
858
  /**
@@ -875,10 +877,11 @@ var OlapTable = class extends TypedBase {
875
877
  } catch (error) {
876
878
  }
877
879
  }
880
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
878
881
  const client = getClickhouseClient2({
879
882
  username: clickhouseConfig.username,
880
883
  password: clickhouseConfig.password,
881
- database: clickhouseConfig.database,
884
+ database: effectiveDatabase,
882
885
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
883
886
  host: clickhouseConfig.host,
884
887
  port: clickhouseConfig.port