@514labs/moose-lib 0.6.280 → 0.6.281-ci-1-g8c86e180

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,10 +428,13 @@ 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("internal/modules") || // Skip Node.js internals
431
+ line.includes("node:internal") || // Skip Node.js internals (modern format)
432
+ line.includes("internal/modules") || // Skip Node.js internals (older format)
432
433
  line.includes("ts-node") || // Skip TypeScript execution
433
- line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
434
- line.includes("\\ts-moose-lib\\");
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\\");
435
438
  }
436
439
  function parseStackLine(line) {
437
440
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -534,12 +537,12 @@ var TypedBase = class {
534
537
  this.validators = validators;
535
538
  this.allowExtraFields = allowExtraFields ?? false;
536
539
  this.metadata = config?.metadata ? { ...config.metadata } : {};
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;
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
+ }
543
546
  }
544
547
  }
545
548
  };