@514labs/moose-lib 0.6.280-ci-6-g9ba15e89 → 0.6.280-ci-4-g08b597f6

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.
@@ -362,13 +362,10 @@ var init_runtime = __esm({
362
362
  // src/dmv2/utils/stackTrace.ts
363
363
  function shouldSkipStackLine(line) {
364
364
  return line.includes("node_modules") || // Skip npm installed packages (prod)
365
- line.includes("node:internal") || // Skip Node.js internals (modern format)
366
- line.includes("internal/modules") || // Skip Node.js internals (older format)
365
+ line.includes("internal/modules") || // Skip Node.js internals
367
366
  line.includes("ts-node") || // Skip TypeScript execution
368
- line.includes("/ts-moose-lib/src/") || // Skip dev/linked moose-lib src (Unix)
369
- line.includes("\\ts-moose-lib\\src\\") || // Skip dev/linked moose-lib src (Windows)
370
- line.includes("/ts-moose-lib/dist/") || // Skip dev/linked moose-lib dist (Unix)
371
- line.includes("\\ts-moose-lib\\dist\\");
367
+ line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
368
+ line.includes("\\ts-moose-lib\\");
372
369
  }
373
370
  function parseStackLine(line) {
374
371
  const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
@@ -471,12 +468,12 @@ var TypedBase = class {
471
468
  this.validators = validators;
472
469
  this.allowExtraFields = allowExtraFields ?? false;
473
470
  this.metadata = config?.metadata ? { ...config.metadata } : {};
474
- if (!this.metadata.source) {
475
- const stack = new Error().stack;
476
- if (stack) {
477
- const info = getSourceFileInfo(stack);
478
- this.metadata.source = { file: info.file, line: info.line };
479
- }
471
+ const stack = new Error().stack;
472
+ if (stack) {
473
+ const info = getSourceFileInfo(stack);
474
+ this.metadata.source = { file: info.file, line: info.line };
475
+ } else {
476
+ this.metadata.source = void 0;
480
477
  }
481
478
  }
482
479
  };