@clipboard-health/ai-rules 2.20.10 → 2.20.11
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/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.toErrorMessage = toErrorMessage;
|
|
4
|
-
// Prefer stack over message for Error instances to
|
|
4
|
+
// Prefer stack over message for Error instances to preserve debugging context.
|
|
5
5
|
function toErrorMessage(error) {
|
|
6
6
|
return error instanceof Error ? (error.stack ?? error.message) : String(error);
|
|
7
7
|
}
|