@storm-software/workspace-tools 1.66.7 → 1.66.8
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/CHANGELOG.md +12 -0
- package/package.json +1 -1
- package/src/executors/cargo-publish/executor.ts +15 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## 1.66.8 (2024-03-28)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### 🩹 Fixes
|
|
5
|
+
|
|
6
|
+
- **workspace-tools:** Correctly handle all value types in error logging ([4b072154](https://github.com/storm-software/storm-ops/commit/4b072154))
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### ❤️ Thank You
|
|
10
|
+
|
|
11
|
+
- Patrick Sullivan
|
|
12
|
+
|
|
1
13
|
## 1.66.7 (2024-03-28)
|
|
2
14
|
|
|
3
15
|
|
package/package.json
CHANGED
|
@@ -99,9 +99,18 @@ export default async function runExecutor(
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
const formatLog = (message
|
|
103
|
-
typeof message === "
|
|
104
|
-
?
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
const formatLog = (message?: any, name?: string): string =>
|
|
103
|
+
typeof message === "boolean"
|
|
104
|
+
? String(message)
|
|
105
|
+
: !message
|
|
106
|
+
? "<None>"
|
|
107
|
+
: typeof message === "string"
|
|
108
|
+
? `"${message}"`
|
|
109
|
+
: typeof message === "number"
|
|
110
|
+
? message.toString()
|
|
111
|
+
: typeof message === "object"
|
|
112
|
+
? (name ? ` --- ${name} ---\n` : "") +
|
|
113
|
+
Object.keys(message)
|
|
114
|
+
.map((key) => ` - ${key}=${formatLog(message[key])}`)
|
|
115
|
+
.join("\n")
|
|
116
|
+
: JSON.stringify(message);
|