@lelouchhe/webagent 0.1.9 → 0.2.1

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/lib/types.js DELETED
@@ -1,13 +0,0 @@
1
- // --- Utility ---
2
- export function errorMessage(err) {
3
- if (err instanceof Error)
4
- return err.message;
5
- if (typeof err === "string")
6
- return err;
7
- try {
8
- return JSON.stringify(err);
9
- }
10
- catch {
11
- return String(err);
12
- }
13
- }