@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.
package/dist/index.js CHANGED
@@ -472,13 +472,10 @@ module.exports = __toCommonJS(index_exports);
472
472
  // src/dmv2/utils/stackTrace.ts
473
473
  function shouldSkipStackLine(line) {
474
474
  return line.includes("node_modules") || // Skip npm installed packages (prod)
475
- line.includes("node:internal") || // Skip Node.js internals (modern format)
476
- line.includes("internal/modules") || // Skip Node.js internals (older format)
475
+ line.includes("internal/modules") || // Skip Node.js internals
477
476
  line.includes("ts-node") || // Skip TypeScript execution
478
- line.includes("/ts-moose-lib/src/") || // Skip dev/linked moose-lib src (Unix)
479
- line.includes("\\ts-moose-lib\\src\\") || // Skip dev/linked moose-lib src (Windows)
480
- line.includes("/ts-moose-lib/dist/") || // Skip dev/linked moose-lib dist (Unix)
481
- line.includes("\\ts-moose-lib\\dist\\");
477
+ line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
478
+ line.includes("\\ts-moose-lib\\");
482
479
  }
483
480
  function parseStackLine(line) {
484
481
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -581,12 +578,12 @@ var TypedBase = class {
581
578
  this.validators = validators;
582
579
  this.allowExtraFields = allowExtraFields ?? false;
583
580
  this.metadata = config?.metadata ? { ...config.metadata } : {};
584
- if (!this.metadata.source) {
585
- const stack = new Error().stack;
586
- if (stack) {
587
- const info = getSourceFileInfo(stack);
588
- this.metadata.source = { file: info.file, line: info.line };
589
- }
581
+ const stack = new Error().stack;
582
+ if (stack) {
583
+ const info = getSourceFileInfo(stack);
584
+ this.metadata.source = { file: info.file, line: info.line };
585
+ } else {
586
+ this.metadata.source = void 0;
590
587
  }
591
588
  }
592
589
  };