@514labs/moose-lib 0.6.280 → 0.6.281

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,13 @@ 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\\") || // Skip dev/linked moose-lib src (Windows)
370
+ line.includes("/ts-moose-lib/dist/") || // Skip dev/linked moose-lib dist (Unix)
371
+ line.includes("\\ts-moose-lib\\dist\\");
369
372
  }
370
373
  function parseStackLine(line) {
371
374
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -468,12 +471,12 @@ var TypedBase = class {
468
471
  this.validators = validators;
469
472
  this.allowExtraFields = allowExtraFields ?? false;
470
473
  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;
474
+ if (!this.metadata.source) {
475
+ const stack = new Error().stack;
476
+ if (stack) {
477
+ const info = getSourceFileInfo(stack);
478
+ this.metadata.source = { file: info.file, line: info.line };
479
+ }
477
480
  }
478
481
  }
479
482
  };