@jsenv/plugin-supervisor 1.4.8 → 1.4.10

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.
@@ -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
- return constructor.name;
1188
+ if (constructor.name !== "Object") {
1189
+ return constructor.name;
1190
+ }
1192
1191
  }
1193
1192
  return value.name || "Error";
1194
1193
  };
@@ -289,7 +289,7 @@ const createUnicode = ({
289
289
  return UNICODE;
290
290
  };
291
291
  createUnicode({
292
- supported: isUnicodeSupported(),
292
+ supported: isUnicodeSupported() || process.env.FORCE_UNICODE === "1",
293
293
  ANSI
294
294
  });
295
295
  const formatDefault = v => v;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/plugin-supervisor",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,9 +26,9 @@
26
26
  "/dist/"
27
27
  ],
28
28
  "dependencies": {
29
- "@jsenv/ast": "6.0.6",
30
- "@jsenv/urls": "2.2.6",
31
- "@jsenv/sourcemap": "1.2.9",
29
+ "@jsenv/ast": "6.0.7",
30
+ "@jsenv/urls": "2.2.7",
31
+ "@jsenv/sourcemap": "1.2.10",
32
32
  "launch-editor": "2.8.0"
33
33
  },
34
34
  "scripts": {
@@ -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
- return constructor.name;
1267
+ if (constructor.name !== "Object") {
1268
+ return constructor.name;
1269
+ }
1271
1270
  }
1272
1271
  return value.name || "Error";
1273
1272
  };