@514labs/moose-lib 0.6.272-ci-1-gdc968567 → 0.6.272-ci-32-g1ea9e11d
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/browserCompatible.js +9 -10
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +9 -10
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +9 -10
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +9 -10
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -472,11 +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("
|
|
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/
|
|
479
|
-
line.includes("\\ts-moose-lib\\
|
|
477
|
+
line.includes("/ts-moose-lib/") || // Skip dev/linked moose-lib (Unix)
|
|
478
|
+
line.includes("\\ts-moose-lib\\");
|
|
480
479
|
}
|
|
481
480
|
function parseStackLine(line) {
|
|
482
481
|
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
@@ -579,12 +578,12 @@ var TypedBase = class {
|
|
|
579
578
|
this.validators = validators;
|
|
580
579
|
this.allowExtraFields = allowExtraFields ?? false;
|
|
581
580
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
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;
|
|
588
587
|
}
|
|
589
588
|
}
|
|
590
589
|
};
|