@jsenv/github-check-run 0.0.8 → 0.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/github-check-run",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "Interact with GitHub check rest API",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -110,6 +110,8 @@ ${error.stack}`);
110
110
  const error = new Error(`unexpected response status.
111
111
  --- response status ---
112
112
  ${response.status}
113
+ --- response statusText ---
114
+ ${response.statusText}
113
115
  --- expected response status ---
114
116
  ${Object.keys(responseStatusHandlers).join(", ")}
115
117
  --- request method ---
@@ -185,7 +185,7 @@ ${JSON.stringify(body, null, " ")}`);
185
185
  pendingAbortController.signal.onabort = resolve;
186
186
  setTimeout(resolve, msBetweenProgressCalls);
187
187
  });
188
- if (pendingAbortController.signal.aborted) {
188
+ if (pendingAbortController && pendingAbortController.signal.aborted) {
189
189
  return;
190
190
  }
191
191
  pendingAbortController = null;