@514labs/moose-lib 0.6.278 → 0.6.279-ci-1-g10e6ab2a
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 +10 -9
- package/dist/browserCompatible.js.map +1 -1
- package/dist/browserCompatible.mjs +10 -9
- package/dist/browserCompatible.mjs.map +1 -1
- package/dist/dmv2/index.js +10 -9
- package/dist/dmv2/index.js.map +1 -1
- package/dist/dmv2/index.mjs +10 -9
- package/dist/dmv2/index.mjs.map +1 -1
- package/dist/index.js +10 -9
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -428,10 +428,11 @@ 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
|
|
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\\");
|
|
435
436
|
}
|
|
436
437
|
function parseStackLine(line) {
|
|
437
438
|
const match = line.match(/\((.*):(\d+):(\d+)\)/) || line.match(/at (.*):(\d+):(\d+)/);
|
|
@@ -534,12 +535,12 @@ var TypedBase = class {
|
|
|
534
535
|
this.validators = validators;
|
|
535
536
|
this.allowExtraFields = allowExtraFields ?? false;
|
|
536
537
|
this.metadata = config?.metadata ? { ...config.metadata } : {};
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
538
|
+
if (!this.metadata.source) {
|
|
539
|
+
const stack = new Error().stack;
|
|
540
|
+
if (stack) {
|
|
541
|
+
const info = getSourceFileInfo(stack);
|
|
542
|
+
this.metadata.source = { file: info.file, line: info.line };
|
|
543
|
+
}
|
|
543
544
|
}
|
|
544
545
|
}
|
|
545
546
|
};
|