@514labs/moose-lib 0.6.272-ci-1-gdc968567 → 0.6.272-ci-32-g1ea9e11d

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
  };