@jsenv/plugin-supervisor 1.4.8 → 1.4.9
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/js/supervisor.js
CHANGED
|
@@ -1184,11 +1184,10 @@ window.__supervisor__ = (() => {
|
|
|
1184
1184
|
const {
|
|
1185
1185
|
constructor
|
|
1186
1186
|
} = value;
|
|
1187
|
-
if (constructor === "Object") {
|
|
1188
|
-
return value.name || "Error";
|
|
1189
|
-
}
|
|
1190
1187
|
if (constructor) {
|
|
1191
|
-
|
|
1188
|
+
if (constructor.name !== "Object") {
|
|
1189
|
+
return constructor.name;
|
|
1190
|
+
}
|
|
1192
1191
|
}
|
|
1193
1192
|
return value.name || "Error";
|
|
1194
1193
|
};
|
package/package.json
CHANGED
package/src/client/supervisor.js
CHANGED
|
@@ -1263,11 +1263,10 @@ window.__supervisor__ = (() => {
|
|
|
1263
1263
|
|
|
1264
1264
|
const getErrorName = (value) => {
|
|
1265
1265
|
const { constructor } = value;
|
|
1266
|
-
if (constructor === "Object") {
|
|
1267
|
-
return value.name || "Error";
|
|
1268
|
-
}
|
|
1269
1266
|
if (constructor) {
|
|
1270
|
-
|
|
1267
|
+
if (constructor.name !== "Object") {
|
|
1268
|
+
return constructor.name;
|
|
1269
|
+
}
|
|
1271
1270
|
}
|
|
1272
1271
|
return value.name || "Error";
|
|
1273
1272
|
};
|