@camperaid/watest 2.3.9 → 2.4.0

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": "@camperaid/watest",
3
- "version": "2.3.9",
3
+ "version": "2.4.0",
4
4
  "description": "Web Application Testsuite",
5
5
  "engines": {
6
6
  "node": ">=14.15.1"
@@ -34,7 +34,8 @@ class Driver extends DriverBase {
34
34
  url = url_or_snippet;
35
35
  }
36
36
  } catch (e) {
37
- if (e.code != 'ERR_INVALID_URL') {
37
+ // Non standard Error.code may not be set to 'ERR_INVALID_URL'.
38
+ if (!(e instanceof TypeError) || !e.message.startsWith('Invalid URL')) {
38
39
  throw e;
39
40
  }
40
41
  }