@514labs/moose-lib 0.6.279-ci-4-g0d9088d6 → 0.6.279-ci-1-g26b4cea0

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,13 +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\\") || // Skip dev/linked moose-lib src (Windows)
436
- line.includes("/ts-moose-lib/dist/") || // Skip dev/linked moose-lib dist (Unix)
437
- line.includes("\\ts-moose-lib\\dist\\");
433
+ line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
434
+ line.includes("\\ts-moose-lib\\");
438
435
  }
439
436
  function parseStackLine(line) {
440
437
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -537,12 +534,12 @@ var TypedBase = class {
537
534
  this.validators = validators;
538
535
  this.allowExtraFields = allowExtraFields ?? false;
539
536
  this.metadata = config?.metadata ? { ...config.metadata } : {};
540
- if (!this.metadata.source) {
541
- const stack = new Error().stack;
542
- if (stack) {
543
- const info = getSourceFileInfo(stack);
544
- this.metadata.source = { file: info.file, line: info.line };
545
- }
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;
546
543
  }
547
544
  }
548
545
  };