@jsenv/test 1.7.4 → 1.7.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.
@@ -4861,7 +4861,7 @@ const githubAnnotationFromError = (
4861
4861
  title: `Error while executing ${executionInfo.fileRelativeUrl} on ${executionInfo.runtimeName}@${executionInfo.runtimeVersion}`,
4862
4862
  };
4863
4863
  const exception = asException(error, { rootDirectoryUrl });
4864
- if (typeof exception.site.line === "number") {
4864
+ if (exception.site && typeof exception.site.line === "number") {
4865
4865
  annotation.path = urlToRelativeUrl(exception.site.url, rootDirectoryUrl);
4866
4866
  annotation.start_line = exception.site.line;
4867
4867
  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.5",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -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;