@514labs/moose-lib 0.6.279-ci-3-g98c26437 → 0.6.279-ci-9-gaf2329aa

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,13 +419,10 @@ 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("node:internal") || // Skip Node.js internals (modern format)
423
- line.includes("internal/modules") || // Skip Node.js internals (older format)
422
+ line.includes("internal/modules") || // Skip Node.js internals
424
423
  line.includes("ts-node") || // Skip TypeScript execution
425
- line.includes("/ts-moose-lib/src/") || // Skip dev/linked moose-lib src (Unix)
426
- line.includes("\\ts-moose-lib\\src\\") || // Skip dev/linked moose-lib src (Windows)
427
- line.includes("/ts-moose-lib/dist/") || // Skip dev/linked moose-lib dist (Unix)
428
- line.includes("\\ts-moose-lib\\dist\\");
424
+ line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
425
+ line.includes("\\ts-moose-lib\\");
429
426
  }
430
427
  function parseStackLine(line) {
431
428
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -528,12 +525,12 @@ var TypedBase = class {
528
525
  this.validators = validators;
529
526
  this.allowExtraFields = allowExtraFields ?? false;
530
527
  this.metadata = config?.metadata ? { ...config.metadata } : {};
531
- if (!this.metadata.source) {
532
- const stack = new Error().stack;
533
- if (stack) {
534
- const info = getSourceFileInfo(stack);
535
- this.metadata.source = { file: info.file, line: info.line };
536
- }
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;
537
534
  }
538
535
  }
539
536
  };