@jsenv/test 3.3.3 → 3.3.5

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.
@@ -747,7 +747,7 @@ const createAnsi = ({ supported }) => {
747
747
  if (!color) {
748
748
  return text;
749
749
  }
750
- if (text.trim() === "") {
750
+ if (typeof text === "string" && text.trim() === "") {
751
751
  // cannot set color of blank chars
752
752
  return text;
753
753
  }
@@ -5619,7 +5619,9 @@ const renderDetails = (data) => {
5619
5619
  const useNonGreyAnsiColor =
5620
5620
  typeof value === "string" && value.includes("\x1b");
5621
5621
  valueString += " ";
5622
- valueString += useNonGreyAnsiColor ? value : ANSI.color(value, ANSI.GREY);
5622
+ valueString += useNonGreyAnsiColor
5623
+ ? value
5624
+ : ANSI.color(String(value), ANSI.GREY);
5623
5625
  details.push(valueString);
5624
5626
  }
5625
5627
  if (details.length === 0) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/test",
3
- "version": "3.3.3",
3
+ "version": "3.3.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -38,13 +38,13 @@
38
38
  "dependencies": {
39
39
  "@c88/v8-coverage": "0.1.1",
40
40
  "@jsenv/abort": "4.3.0",
41
- "@jsenv/ast": "6.1.3",
42
- "@jsenv/filesystem": "4.7.4",
43
- "@jsenv/github-check-run": "0.1.19",
44
- "@jsenv/humanize": "1.2.1",
45
- "@jsenv/plugin-supervisor": "1.4.15",
41
+ "@jsenv/ast": "6.2.1",
42
+ "@jsenv/filesystem": "4.7.5",
43
+ "@jsenv/github-check-run": "0.1.20",
44
+ "@jsenv/humanize": "1.2.3",
45
+ "@jsenv/plugin-supervisor": "1.5.0",
46
46
  "@jsenv/url-meta": "8.4.2",
47
- "@jsenv/urls": "2.2.9",
47
+ "@jsenv/urls": "2.2.10",
48
48
  "@jsenv/utils": "2.1.1",
49
49
  "istanbul-lib-coverage": "3.2.2",
50
50
  "istanbul-lib-instrument": "6.0.3",
@@ -863,7 +863,9 @@ const renderDetails = (data) => {
863
863
  const useNonGreyAnsiColor =
864
864
  typeof value === "string" && value.includes("\x1b");
865
865
  valueString += " ";
866
- valueString += useNonGreyAnsiColor ? value : ANSI.color(value, ANSI.GREY);
866
+ valueString += useNonGreyAnsiColor
867
+ ? value
868
+ : ANSI.color(String(value), ANSI.GREY);
867
869
  details.push(valueString);
868
870
  }
869
871
  if (details.length === 0) {