nock 13.2.3 → 13.2.4

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.
@@ -54,7 +54,9 @@ class InterceptedRequestRouter {
54
54
  // any timeout in the request options override any timeout in the agent options.
55
55
  // per https://github.com/nodejs/node/pull/21204
56
56
  const timeout =
57
- options.timeout || (options.agent && options.agent.options.timeout)
57
+ options.timeout ||
58
+ (options.agent && options.agent.options && options.agent.options.timeout)
59
+
58
60
  if (timeout) {
59
61
  this.socket.setTimeout(timeout)
60
62
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "testing",
8
8
  "isolation"
9
9
  ],
10
- "version": "13.2.3",
10
+ "version": "13.2.4",
11
11
  "author": "Pedro Teixeira <pedro.teixeira@gmail.com>",
12
12
  "repository": {
13
13
  "type": "git",