@514labs/moose-lib 0.6.279-ci-3-g98c26437 → 0.6.279-ci-9-gaf2329aa

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