@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 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/workspace-tools",
3
- "version": "1.66.7",
3
+ "version": "1.66.8",
4
4
  "private": false,
5
5
  "description": "⚡ A Nx plugin package that contains various executors and generators used in a Storm workspaces.",
6
6
  "keywords": [
@@ -99,9 +99,18 @@ export default async function runExecutor(
99
99
  }
100
100
  }
101
101
 
102
- const formatLog = (message: any): string =>
103
- typeof message === "object"
104
- ? Object.keys(message)
105
- .map((key) => ` - ${key}=${formatLog(message[key])}`)
106
- .join("\n")
107
- : JSON.stringify(message);
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);