@jsenv/test 1.7.4 → 1.7.6

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.
@@ -2032,8 +2032,7 @@ function isUnicodeSupported() {
2032
2032
  return process$1.env.TERM !== 'linux'; // Linux console (kernel)
2033
2033
  }
2034
2034
 
2035
- return Boolean(process$1.env.CI)
2036
- || Boolean(process$1.env.WT_SESSION) // Windows Terminal
2035
+ return Boolean(process$1.env.WT_SESSION) // Windows Terminal
2037
2036
  || Boolean(process$1.env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
2038
2037
  || process$1.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
2039
2038
  || process$1.env.TERM_PROGRAM === 'Terminus-Sublime'
@@ -4861,7 +4860,7 @@ const githubAnnotationFromError = (
4861
4860
  title: `Error while executing ${executionInfo.fileRelativeUrl} on ${executionInfo.runtimeName}@${executionInfo.runtimeVersion}`,
4862
4861
  };
4863
4862
  const exception = asException(error, { rootDirectoryUrl });
4864
- if (typeof exception.site.line === "number") {
4863
+ if (exception.site && typeof exception.site.line === "number") {
4865
4864
  annotation.path = urlToRelativeUrl(exception.site.url, rootDirectoryUrl);
4866
4865
  annotation.start_line = exception.site.line;
4867
4866
  annotation.end_line = exception.site.line;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/test",
3
- "version": "1.7.4",
3
+ "version": "1.7.6",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -34,22 +34,22 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@jsenv/abort": "4.2.4",
37
- "@jsenv/ast": "5.2.0",
37
+ "@jsenv/ast": "5.2.1",
38
38
  "@jsenv/filesystem": "4.3.2",
39
- "@jsenv/log": "3.4.1",
40
- "@jsenv/plugin-supervisor": "1.3.6",
39
+ "@jsenv/log": "3.4.2",
40
+ "@jsenv/plugin-supervisor": "1.3.7",
41
41
  "@jsenv/urls": "2.2.1",
42
42
  "@jsenv/url-meta": "8.1.0",
43
43
  "@jsenv/utils": "2.0.1",
44
- "@jsenv/github-check-run": "0.1.2",
44
+ "@jsenv/github-check-run": "0.1.3",
45
45
  "v8-to-istanbul": "9.1.3",
46
- "istanbul-lib-coverage": "3.2.0",
46
+ "istanbul-lib-coverage": "3.2.1",
47
47
  "istanbul-lib-instrument": "6.0.1",
48
48
  "istanbul-lib-report": "3.0.1",
49
49
  "istanbul-reports": "3.1.6",
50
50
  "@c88/v8-coverage": "0.1.1",
51
51
  "strip-ansi": "7.1.0",
52
- "wrap-ansi": "8.1.0",
52
+ "wrap-ansi": "9.0.0",
53
53
  "pidtree": "0.6.0"
54
54
  }
55
55
  }
@@ -12,7 +12,7 @@ export const githubAnnotationFromError = (
12
12
  title: `Error while executing ${executionInfo.fileRelativeUrl} on ${executionInfo.runtimeName}@${executionInfo.runtimeVersion}`,
13
13
  };
14
14
  const exception = asException(error, { rootDirectoryUrl });
15
- if (typeof exception.site.line === "number") {
15
+ if (exception.site && typeof exception.site.line === "number") {
16
16
  annotation.path = urlToRelativeUrl(exception.site.url, rootDirectoryUrl);
17
17
  annotation.start_line = exception.site.line;
18
18
  annotation.end_line = exception.site.line;