testaro 53.0.4 → 53.0.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.
Files changed (2) hide show
  1. package/netWatch.js +3 -7
  2. package/package.json +1 -1
package/netWatch.js CHANGED
@@ -153,7 +153,7 @@ exports.netWatch = async (isForever, intervalInSeconds, isCertTolerant = true) =
153
153
  console.log(`${logStart}no job to do`);
154
154
  resolve(true);
155
155
  }
156
- // Otherwise, i.e. if it is a job:
156
+ // Otherwise, if it is a job:
157
157
  else if (id) {
158
158
  // Check it for validity.
159
159
  const jobInvalidity = isValidJob(contentObj);
@@ -217,9 +217,7 @@ exports.netWatch = async (isForever, intervalInSeconds, isCertTolerant = true) =
217
217
  }
218
218
  // Otherwise, i.e. if it is not JSON:
219
219
  catch(error) {
220
- // Abort the watch.
221
- abort = true;
222
- // Report it.
220
+ // Report this.
223
221
  console.log(
224
222
  `ERROR: ${reportLogStart}status ${repResponse.statusCode}, error message ${error.message}, and response ${content.slice(0, 1000)}\n`
225
223
  );
@@ -253,10 +251,8 @@ exports.netWatch = async (isForever, intervalInSeconds, isCertTolerant = true) =
253
251
  }
254
252
  // Otherwise, i.e. if it is not JSON:
255
253
  catch(error) {
256
- // Abort the watch.
257
- abort = true;
258
254
  // Report this.
259
- console.log(`ERROR: Job request got non-JSON response (${error.message})`);
255
+ console.log(`ERROR: ${logStart}status ${response.statusCode}, error message ${error.message}, and non-JSON response ${content.slice(0, 1000)}\n`);
260
256
  resolve(true);
261
257
  };
262
258
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testaro",
3
- "version": "53.0.4",
3
+ "version": "53.0.6",
4
4
  "description": "Run 1000 web accessibility tests from 11 tools and get a standardized report",
5
5
  "main": "index.js",
6
6
  "scripts": {