@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.
@@ -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/modules") || // Skip Node.js internals
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
- const stack = new Error().stack;
472
- if (stack) {
473
- const info = getSourceFileInfo(stack);
474
- this.metadata.source = { file: info.file, line: info.line };
475
- } else {
476
- this.metadata.source = void 0;
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
  };
@@ -891,7 +892,8 @@ var OlapTable = class extends TypedBase {
891
892
  * @private
892
893
  */
893
894
  createConfigHash(clickhouseConfig) {
894
- const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${clickhouseConfig.database}:${clickhouseConfig.useSSL}`;
895
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
896
+ const configString = `${clickhouseConfig.host}:${clickhouseConfig.port}:${clickhouseConfig.username}:${clickhouseConfig.password}:${effectiveDatabase}:${clickhouseConfig.useSSL}`;
895
897
  return createHash2("sha256").update(configString).digest("hex").substring(0, 16);
896
898
  }
897
899
  /**
@@ -916,10 +918,11 @@ var OlapTable = class extends TypedBase {
916
918
  } catch (error) {
917
919
  }
918
920
  }
921
+ const effectiveDatabase = this.config.database ?? clickhouseConfig.database;
919
922
  const client = getClickhouseClient2({
920
923
  username: clickhouseConfig.username,
921
924
  password: clickhouseConfig.password,
922
- database: clickhouseConfig.database,
925
+ database: effectiveDatabase,
923
926
  useSSL: clickhouseConfig.useSSL ? "true" : "false",
924
927
  host: clickhouseConfig.host,
925
928
  port: clickhouseConfig.port