@contrast/route-coverage 1.11.0 → 1.11.1

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.
@@ -182,6 +182,8 @@ module.exports = function init(core) {
182
182
 
183
183
  ['http', 'https', 'spdy'].forEach((name) => {
184
184
  depHooks.resolve({ name }, (module) => {
185
+ if (!module.Server?.prototype) return;
186
+
185
187
  patcher.patch(module.Server.prototype, 'listen', {
186
188
  name: `${name}.Server.prototype.listen`,
187
189
  patchType,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/route-coverage",
3
- "version": "1.11.0",
3
+ "version": "1.11.1",
4
4
  "description": "Handles route discovery and observation",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -17,6 +17,6 @@
17
17
  "test": "../scripts/test.sh"
18
18
  },
19
19
  "dependencies": {
20
- "@contrast/common": "1.15.0"
20
+ "@contrast/common": "1.15.1"
21
21
  }
22
22
  }