@jsenv/test 3.0.20 → 3.0.21
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/exception.js
CHANGED
|
@@ -884,11 +884,10 @@ const createException = (reason, { rootDirectoryUrl } = {}) => {
|
|
|
884
884
|
|
|
885
885
|
const getErrorName = (value) => {
|
|
886
886
|
const { constructor } = value;
|
|
887
|
-
if (constructor === "Object") {
|
|
888
|
-
return value.name || "Error";
|
|
889
|
-
}
|
|
890
887
|
if (constructor) {
|
|
891
|
-
|
|
888
|
+
if (constructor.name !== "Object") {
|
|
889
|
+
return constructor.name;
|
|
890
|
+
}
|
|
892
891
|
}
|
|
893
892
|
return value.name || "Error";
|
|
894
893
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/test",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@jsenv/filesystem": "4.6.8",
|
|
43
43
|
"@jsenv/github-check-run": "0.1.13",
|
|
44
44
|
"@jsenv/humanize": "1.1.2",
|
|
45
|
-
"@jsenv/plugin-supervisor": "1.4.
|
|
45
|
+
"@jsenv/plugin-supervisor": "1.4.9",
|
|
46
46
|
"@jsenv/url-meta": "8.4.0",
|
|
47
47
|
"@jsenv/urls": "2.2.6",
|
|
48
48
|
"@jsenv/utils": "2.1.1",
|
|
@@ -198,11 +198,10 @@ export const createException = (reason, { rootDirectoryUrl } = {}) => {
|
|
|
198
198
|
|
|
199
199
|
const getErrorName = (value) => {
|
|
200
200
|
const { constructor } = value;
|
|
201
|
-
if (constructor === "Object") {
|
|
202
|
-
return value.name || "Error";
|
|
203
|
-
}
|
|
204
201
|
if (constructor) {
|
|
205
|
-
|
|
202
|
+
if (constructor.name !== "Object") {
|
|
203
|
+
return constructor.name;
|
|
204
|
+
}
|
|
206
205
|
}
|
|
207
206
|
return value.name || "Error";
|
|
208
207
|
};
|